@feedmepos/mf-connect 0.1.0-beta.70 → 0.1.0-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/{Analytic-DEQUEGlq.js → Analytic-CnF_WeRZ.js} +11 -11
- package/dist/{App-CcoU2SAx.js → App-DJwSTuRa.js} +10 -10
- package/dist/{AuditLogs-CiB6u06w.js → AuditLogs-RarW2PHL.js} +8 -8
- package/dist/{Bin-C2_1m5RT.js → Bin-BaixTvHW.js} +8 -8
- package/dist/{Broadcast-TotIXDuJ.js → Broadcast-8DEAMhyM.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CixQu3Pr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DPXoOupI.js} +6 -6
- package/dist/{Card-Ce-_xMgS.js → Card-DRwLZ-Mn.js} +15 -15
- package/dist/{Collections-DKva6Doi.js → Collections-WsPM9v03.js} +5 -5
- package/dist/{Credit-BVUxIJ6C.js → Credit-DMxRdTzt.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BKEumoan.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js} +28 -28
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ah4bz-qR.js → EffectSheet.vue_vue_type_style_index_0_lang-CuJ8curT.js} +6 -6
- package/dist/{Experience-DV3384o0.js → Experience-B0BV4Tc_.js} +9 -9
- package/dist/{Game-DY83ti52.js → Game-Bu6kJJHx.js} +10 -10
- package/dist/{Index-DEIaZ-2H.js → Index-CX-aPFQt.js} +10 -10
- package/dist/{Marketing-C2RwIlrg.js → Marketing-CiVFwl6S.js} +6 -6
- package/dist/{Member-D4fc-wzd.js → Member-DZfTtt13.js} +5 -5
- package/dist/{MemberList-DSMI6t_D.js → MemberList-CscwsZnv.js} +24 -24
- package/dist/{MemberTransactions-wXUlbbRq.js → MemberTransactions-BWNs6bUm.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DYS0klKm.js → MessageInput.vue_vue_type_script_setup_true_lang-BrbRudIU.js} +17 -20
- package/dist/{Mission-P_KLDEpg.js → Mission-CyJ-9Qfl.js} +10 -10
- package/dist/{Overview-8vc0f1D7.js → Overview-DLyt6VId.js} +17 -17
- package/dist/{Point-B4Y0Pq60.js → Point-Cc_0-RKm.js} +9 -9
- package/dist/Promotion-KqA8nev2.js +289 -0
- package/dist/{Queue-BlPA7PNH.js → Queue-i8--zps9.js} +48 -43
- package/dist/{Record-Cl1qXSSk.js → Record-CLUO1JVc.js} +7 -7
- package/dist/{Reward-jy6-W1Eh.js → Reward-BEdUKQ3M.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-d5JNNNHf.js → RewardGroup.vue_vue_type_script_setup_true_lang-B9vnSbWj.js} +11 -11
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-B8zw1TmO.js +1727 -0
- package/dist/{Segment-B36Nrvxs.js → Segment-B8sYajZG.js} +14 -14
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-jN0xUFNR.js → SelectItems.vue_vue_type_script_setup_true_lang-CmmI5Vwl.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLFTNooB.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CIcXjbJG.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-H_Sehhgf.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DY3FMuIf.js} +3 -3
- package/dist/{Setting-AgQf2X4W.js → Setting-DT8dRb2A.js} +10 -10
- package/dist/{Store-D3Mm0pan.js → Store-BhsPWRkR.js} +18 -18
- package/dist/{StoreRewards-L0VLWz8l.js → StoreRewards-Cx2WDZ3p.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-Zl_cXXSD.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Byb7GOoh.js} +37 -37
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-b4mfueTj.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Cb-FGTO9.js} +1 -1
- package/dist/{Tier-DQq-375x.js → Tier-kQy1vGwo.js} +19 -19
- package/dist/{Title-OJxuBvaa.js → Title-DKv8FqpX.js} +19 -19
- package/dist/{Transaction-vgsYRfD7.js → Transaction-CSLllOgl.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cwi0mvC3.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CvpBdNBn.js} +6 -6
- package/dist/{Voucher-BFwLaoxe.js → Voucher-BP6fmSwu.js} +12 -12
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DNUBaNtJ.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CxQEg_HW.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-ms40eptZ.js → ZodTextField.vue_vue_type_script_setup_true_lang-aurdXO2X.js} +1 -1
- package/dist/{app-D7C3Fxfi.js → app-B3qgrQOd.js} +36 -34
- package/dist/{app-BQFTJ_hE.js → app-s3iL79De.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/business-DG2w8U-i.js +79 -0
- package/dist/{campaign-UQ8kMVeC.js → campaign-BP6Rz-AH.js} +9 -9
- package/dist/{campaign-BkxTDfsK.js → campaign-WPRZ4BRF.js} +2 -2
- package/dist/{campaign.enum-BdT-e9h9.js → campaign.enum-CoqrWNTZ.js} +1 -1
- package/dist/campaign.fn-BRPigTOA.js +758 -0
- package/dist/{collectible.enum-C8kd17Tz.js → collectible.enum-Dy4sxF43.js} +1 -1
- package/dist/{collection.fn-BIw1Y_tv.js → collection.fn-DGnLyYgV.js} +2 -2
- package/dist/{dto-CwzAhB8x.js → dto-xZ9I6-Jr.js} +4 -4
- package/dist/{effect-CJcvLlKG.js → effect-C0XoYTus.js} +1 -1
- package/dist/{email-addresses-BCJTQPT0.js → email-addresses-CJ87c7W1.js} +1 -1
- package/dist/{export-URRwle1z.js → export-qlV-AbEl.js} +3 -3
- package/dist/{helper-DccnE6zn.js → helper-DzYe8aNx.js} +1 -1
- package/dist/{index-ghSGvG-m.js → index-4vdSri7m.js} +6 -6
- package/dist/{index-C3lpXz_P.js → index-BfSj7cUl.js} +1 -1
- package/dist/{index-BiIZ7X6d.js → index-Bj0ULpXi.js} +1264 -1264
- package/dist/{index-D4MX9e5q.js → index-BnZ4yaMH.js} +1 -1
- package/dist/{index-EOPRlB9V.js → index-Bo5DJXxs.js} +3 -3
- package/dist/{index-CFA3EqId.js → index-BuvJH6SU.js} +1 -1
- package/dist/{index-DrE9VkxR.js → index-C2GEs8di.js} +1 -1
- package/dist/{index-BsRJ4kVb.js → index-CJuOTcCE.js} +1 -1
- package/dist/{index-CPRN3irj.js → index-DReysUPw.js} +4 -4
- package/dist/{index-FcxOGFKj.js → index-DgCjRb3o.js} +1 -1
- package/dist/{index-CaxFS90M.js → index-IwITtvVu.js} +1 -1
- package/dist/{index-OScGm4mF.js → index-n3wiQlbk.js} +2 -2
- package/dist/{index.esm2017-CE1CQHrP.js → index.esm2017-CkJhTmme.js} +175 -175
- package/dist/{loading-B8zghYbj.js → loading-DwJdwl4G.js} +1 -1
- package/dist/{membership-DoJMF2T6.js → membership-DvPK3h8f.js} +3 -3
- package/dist/{money-CTR0rXZw.js → money-C_WIbr_x.js} +1 -1
- package/dist/{number-Bhgz9eFP.js → number-ZeVoGhzP.js} +1 -1
- package/dist/objectid-8lkX6otO.js +145 -0
- package/dist/{plugins-B5mQ7CHT.js → plugins-D20keyDW.js} +1189 -1189
- package/dist/{reward-DicsEEHe.js → reward-CqnMEq_w.js} +1 -1
- package/dist/{rule-s8siRar1.js → rule-D7htGgWz.js} +3 -3
- package/dist/{rule-builder-BWb4JTrd.js → rule-builder-BbJpYQ0n.js} +1 -1
- package/dist/{template-Qb5ozfLa.js → template-BWQCVHm7.js} +4 -4
- package/dist/{trigger-Bsb3Kj35.js → trigger-DMuv0_O7.js} +4 -4
- package/dist/{user-DJ8aHRaM.js → user-C_v2C0qN.js} +1 -1
- package/dist/vue-i18n-N8_TEEd0.js +2365 -0
- package/dist/{xlsx-2QxyDFwt.js → xlsx-CsPDNSTo.js} +1 -1
- package/package.json +1 -1
- package/dist/Promotion-C1CbesgZ.js +0 -255
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DYul_Nu8.js +0 -1640
- package/dist/business-vzpvmTdG.js +0 -78
- package/dist/campaign.fn-lc4ZhFCU.js +0 -758
- package/dist/objectid-DdVJrRBw.js +0 -145
- package/dist/vue-i18n-BG2U7GtN.js +0 -2365
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as
|
|
2
|
-
import { p as W } from "./plugins-
|
|
3
|
-
import { A as Y } from "./index-
|
|
1
|
+
import { defineComponent as j, shallowRef as N, openBlock as p, createElementBlock as M, normalizeStyle as O, ref as V, resolveComponent as g, createBlock as E, unref as s, isRef as P, withCtx as x, createVNode as h, createElementVNode as v, createCommentVNode as T, withDirectives as A, vShow as U, computed as q, onMounted as G, Fragment as L, createTextVNode as J, toDisplayString as z, renderList as K } from "vue";
|
|
2
|
+
import { p as W } from "./plugins-D20keyDW.js";
|
|
3
|
+
import { A as Y } from "./index-DReysUPw.js";
|
|
4
4
|
import { _ as Z } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
5
5
|
import { _ as Q, S as X } from "./LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js";
|
|
6
6
|
import { c as ee } from "./object-qECH92oz.js";
|
|
@@ -44,7 +44,7 @@ const te = {
|
|
|
44
44
|
"membership.url": {
|
|
45
45
|
name: "Membership URL"
|
|
46
46
|
}
|
|
47
|
-
},
|
|
47
|
+
}, we = {
|
|
48
48
|
MY: ["user.phoneNumber", "membership.url"]
|
|
49
49
|
}, ne = "https://editor.unlayer.com/embed.js?2", R = [];
|
|
50
50
|
let H = !1;
|
|
@@ -148,7 +148,7 @@ const re = j({
|
|
|
148
148
|
}
|
|
149
149
|
}), le = ["id"];
|
|
150
150
|
function de(e, n, i, u, y, r) {
|
|
151
|
-
return p(),
|
|
151
|
+
return p(), M("div", {
|
|
152
152
|
id: e.id,
|
|
153
153
|
class: "unlayer-editor",
|
|
154
154
|
style: O({ minHeight: e.minHeight })
|
|
@@ -189,7 +189,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
189
189
|
return n({
|
|
190
190
|
showSheet: S
|
|
191
191
|
}), (o, a) => {
|
|
192
|
-
const c = g("FmButton"),
|
|
192
|
+
const c = g("FmButton"), w = g("FmTextField"), _ = g("FmSideSheet");
|
|
193
193
|
return p(), E(_, {
|
|
194
194
|
modelValue: s(u),
|
|
195
195
|
"onUpdate:modelValue": a[4] || (a[4] = (d) => P(u) ? u.value = d : null),
|
|
@@ -212,14 +212,14 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
212
212
|
width: 100,
|
|
213
213
|
height: 100
|
|
214
214
|
}, null, 8, ["json"])),
|
|
215
|
-
|
|
215
|
+
A(h(w, {
|
|
216
216
|
label: "Email title",
|
|
217
217
|
modelValue: s(f).title,
|
|
218
218
|
"onUpdate:modelValue": a[0] || (a[0] = (d) => s(f).title = d)
|
|
219
219
|
}, null, 8, ["modelValue"]), [
|
|
220
|
-
[
|
|
220
|
+
[U, s(r)]
|
|
221
221
|
]),
|
|
222
|
-
|
|
222
|
+
A(h(ue, {
|
|
223
223
|
class: "flex-1",
|
|
224
224
|
ref_key: "editorRef",
|
|
225
225
|
ref: y,
|
|
@@ -229,7 +229,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
229
229
|
r.value = !0, b.design && ((d = s(y)) == null || d.loadDesign(s(ee)(b.design)));
|
|
230
230
|
})
|
|
231
231
|
}, null, 512), [
|
|
232
|
-
[
|
|
232
|
+
[U, s(r)]
|
|
233
233
|
])
|
|
234
234
|
])
|
|
235
235
|
]),
|
|
@@ -358,10 +358,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
358
358
|
/[\u4e00-\u9fff\u3040-\u30ff\u3400-\u4dbf]/.test(c) || /[{}\\~\[\]|\^€]/.test(c) ? t += 2 : t += 1;
|
|
359
359
|
}
|
|
360
360
|
return `Character used: ${t} ≈ ${Math.ceil(t / 160)} SMS (Every 160 characters will be sent as 1 SMS)`;
|
|
361
|
-
}), S = [
|
|
362
|
-
{ label: "SMS" }
|
|
363
|
-
// { label: 'EMAIL' }
|
|
364
|
-
];
|
|
361
|
+
}), S = [{ label: "SMS" }, { label: "EMAIL" }];
|
|
365
362
|
return G(() => {
|
|
366
363
|
u("update:model-value", {
|
|
367
364
|
...i.modelValue,
|
|
@@ -369,8 +366,8 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
369
366
|
}), i.modelValue || r("");
|
|
370
367
|
}), (l, t) => {
|
|
371
368
|
var d, F, $, k, C;
|
|
372
|
-
const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"),
|
|
373
|
-
return p(),
|
|
369
|
+
const o = g("FmButtonGroup"), a = g("FmButton"), c = g("FmTextarea"), w = g("FmMenuItem"), _ = g("FmMenu");
|
|
370
|
+
return p(), M("div", he, [
|
|
374
371
|
e.allowEmail ? (p(), E(o, {
|
|
375
372
|
key: 0,
|
|
376
373
|
items: S,
|
|
@@ -384,7 +381,7 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
384
381
|
"onUpdate:design": t[1] || (t[1] = (m) => {
|
|
385
382
|
r(m, "EMAIL");
|
|
386
383
|
})
|
|
387
|
-
}, null, 8, ["design", "title"])) : (p(),
|
|
384
|
+
}, null, 8, ["design", "title"])) : (p(), M(L, { key: 2 }, [
|
|
388
385
|
v("div", fe, [
|
|
389
386
|
t[2] || (t[2] = v("div", { class: "fm-typo-en-body-lg-400" }, "Add message", -1)),
|
|
390
387
|
h(a, {
|
|
@@ -418,11 +415,11 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
418
415
|
})
|
|
419
416
|
]),
|
|
420
417
|
default: x(() => [
|
|
421
|
-
(p(!0),
|
|
418
|
+
(p(!0), M(L, null, K(e.variables.filter(
|
|
422
419
|
(m) => e.triggerType == "SCHEDULE" ? !m.startsWith("transaction.") : !0
|
|
423
420
|
), (m) => {
|
|
424
421
|
var I;
|
|
425
|
-
return p(), E(
|
|
422
|
+
return p(), E(w, {
|
|
426
423
|
key: m,
|
|
427
424
|
label: ((I = s(te)[m]) == null ? void 0 : I.name) || m,
|
|
428
425
|
onClick: (be) => {
|
|
@@ -442,6 +439,6 @@ const ue = /* @__PURE__ */ Z(re, [["render", de], ["__scopeId", "data-v-a9a2bb94
|
|
|
442
439
|
}
|
|
443
440
|
});
|
|
444
441
|
export {
|
|
445
|
-
|
|
442
|
+
we as M,
|
|
446
443
|
_e as _
|
|
447
444
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as H, ref as w, computed as q, h as l, onMounted as z, resolveComponent as m, openBlock as p, createElementBlock as x, Fragment as v, createVNode as c, unref as t, createElementVNode as s, withCtx as C, renderList as W, createBlock as b, resolveDynamicComponent as G, toDisplayString as u } from "vue";
|
|
2
2
|
import { _ as J } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Q } from "./loading-
|
|
4
|
-
import { g as X, a as B, b as P } from "./campaign-
|
|
5
|
-
import { a as Y, p as Z } from "./plugins-
|
|
6
|
-
import { u as ee } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
3
|
+
import { u as Q } from "./loading-DwJdwl4G.js";
|
|
4
|
+
import { g as X, a as B, b as P } from "./campaign-BP6Rz-AH.js";
|
|
5
|
+
import { a as Y, p as Z } from "./plugins-D20keyDW.js";
|
|
6
|
+
import { u as ee } from "./business-DG2w8U-i.js";
|
|
7
|
+
import { u as oe } from "./campaign-WPRZ4BRF.js";
|
|
8
8
|
import { useDialog as te, components as _ } from "@feedmepos/ui-library";
|
|
9
9
|
import { _ as ne } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { u as ae } from "./template-
|
|
11
|
-
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
10
|
+
import { u as ae } from "./template-BWQCVHm7.js";
|
|
11
|
+
import { _ as se } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js";
|
|
12
12
|
import { s as ie } from "./index-CsaQJMAR.js";
|
|
13
|
-
import { u as ce } from "./vue-i18n-
|
|
14
|
-
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-
|
|
15
|
-
import { c as h } from "./index-
|
|
13
|
+
import { u as ce } from "./vue-i18n-N8_TEEd0.js";
|
|
14
|
+
import { _ as re } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-CIcXjbJG.js";
|
|
15
|
+
import { c as h } from "./index-BnZ4yaMH.js";
|
|
16
16
|
const le = { class: "px-24 flex flex-col gap-y-16" }, me = { class: "flex items-center justify-between w-full" }, de = { class: "flex gap-8 overflow-x-auto" }, pe = { class: "space-y-8" }, ue = { class: "flex w-full gap-4 items-center" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "space-y-4" }, ye = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, we = { class: "flex flex-col gap-16 text-center" }, xe = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Oe = /* @__PURE__ */ H({
|
|
17
17
|
__name: "Mission",
|
|
18
18
|
setup(Ce) {
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { defineComponent as q, resolveComponent as w, openBlock as C, createElementBlock as B, Fragment as Y, createVNode as c, withCtx as V, createElementVNode as a, toDisplayString as O, unref as r, renderSlot as ve, ref as k, computed as G, watch as ie, createBlock as j, isRef as J, resolveDynamicComponent as ne, renderList as re, normalizeClass as de, createTextVNode as ce, createCommentVNode as z, h as te, onMounted as _e } from "vue";
|
|
2
2
|
import { _ as ge } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { u as Z } from "./vue-i18n-
|
|
4
|
-
import { u as ue } from "./loading-
|
|
5
|
-
import { c as we, p as K } from "./plugins-
|
|
3
|
+
import { u as Z } from "./vue-i18n-N8_TEEd0.js";
|
|
4
|
+
import { u as ue } from "./loading-DwJdwl4G.js";
|
|
5
|
+
import { c as we, p as K } from "./plugins-D20keyDW.js";
|
|
6
6
|
import { J as X } from "./JsonViewer-v8_C7l5N.js";
|
|
7
7
|
import { Z as N } from "./zod-Bg2FbC-D.js";
|
|
8
8
|
import { u as W } from "./app-wDQR6dpb.js";
|
|
9
|
-
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { u as me } from "./reward-
|
|
11
|
-
import { a as be, b as xe } from "./index-
|
|
12
|
-
import { j as le, k as se } from "./index-
|
|
13
|
-
import "./index-
|
|
14
|
-
import "./index-
|
|
15
|
-
import "./index-
|
|
16
|
-
import { C as fe } from "./membership-
|
|
17
|
-
import { t as ee } from "./helper-
|
|
9
|
+
import { u as Q, _ as ye } from "./RewardGroup.vue_vue_type_script_setup_true_lang-B9vnSbWj.js";
|
|
10
|
+
import { u as me } from "./reward-CqnMEq_w.js";
|
|
11
|
+
import { a as be, b as xe } from "./index-4vdSri7m.js";
|
|
12
|
+
import { j as le, k as se } from "./index-DReysUPw.js";
|
|
13
|
+
import "./index-n3wiQlbk.js";
|
|
14
|
+
import "./index-BfSj7cUl.js";
|
|
15
|
+
import "./index-Bo5DJXxs.js";
|
|
16
|
+
import { C as fe } from "./membership-DvPK3h8f.js";
|
|
17
|
+
import { t as ee } from "./helper-DzYe8aNx.js";
|
|
18
18
|
import { c as H } from "./object-qECH92oz.js";
|
|
19
19
|
import { useDialog as Ce, components as oe } from "@feedmepos/ui-library";
|
|
20
|
-
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
21
|
-
import { T as Se, _ as ke, a as Fe } from "./trigger-
|
|
22
|
-
import { O as $e } from "./objectid-
|
|
23
|
-
import { r as pe } from "./index-
|
|
24
|
-
import { u as Pe } from "./business-
|
|
20
|
+
import { _ as Re } from "./ZodTextField.vue_vue_type_script_setup_true_lang-aurdXO2X.js";
|
|
21
|
+
import { T as Se, _ as ke, a as Fe } from "./trigger-DMuv0_O7.js";
|
|
22
|
+
import { O as $e } from "./objectid-8lkX6otO.js";
|
|
23
|
+
import { r as pe } from "./index-C2GEs8di.js";
|
|
24
|
+
import { u as Pe } from "./business-DG2w8U-i.js";
|
|
25
25
|
const Ve = { class: "flex items-center justify-between flex-1 xs:hidden" }, Ie = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, Te = { class: "flex-1" }, Ue = { class: "flex items-center gap-8" }, Ae = { class: "fm-typo-en-title-sm-800" }, Le = { class: "flex gap-8 items-center" }, Ee = { class: "space-y-4 hidden xs:block border-b border-fm-color-neutral-gray-100 px-16 flex-1 pb-24" }, Be = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-x-24 h-[80px] p-8 flex-1" }, je = { class: "flex-1 space-y-4" }, De = { class: "fm-typo-en-body-lg-600" }, Ge = /* @__PURE__ */ q({
|
|
26
26
|
__name: "ReferralRewadGroupCard",
|
|
27
27
|
props: {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { defineComponent as j, ref as P, computed as A, h as E, onMounted as M, resolveComponent as l, openBlock as d, createElementBlock as b, Fragment as w, createVNode as r, unref as t, withCtx as y, createElementVNode as n, toDisplayString as c, renderList as H, createBlock as C, resolveDynamicComponent as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y } from "./campaign-
|
|
8
|
-
import { g as Z, a as V, b as I } from "./campaign-
|
|
4
|
+
import { p as Q } from "./plugins-D20keyDW.js";
|
|
5
|
+
import { u as W } from "./loading-DwJdwl4G.js";
|
|
6
|
+
import { u as X } from "./business-DG2w8U-i.js";
|
|
7
|
+
import { u as Y } from "./campaign-WPRZ4BRF.js";
|
|
8
|
+
import { g as Z, a as V, b as I } from "./campaign-BP6Rz-AH.js";
|
|
9
9
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { u as oe } from "./template-
|
|
12
|
-
import { u as ae } from "./vue-i18n-
|
|
13
|
-
import { c as _ } from "./index-
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js";
|
|
11
|
+
import { u as oe } from "./template-BWQCVHm7.js";
|
|
12
|
+
import { u as ae } from "./vue-i18n-N8_TEEd0.js";
|
|
13
|
+
import { c as _ } from "./index-BnZ4yaMH.js";
|
|
14
14
|
const ne = { class: "flex items-center" }, se = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, ie = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, le = { class: "flex gap-8 overflow-x-auto" }, ce = { 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" }, pe = { class: "space-y-4" }, ue = { class: "fm-typo-en-body-lg-600" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ye = { class: "flex flex-col gap-16 text-center" }, _e = { class: "fm-typo-en-title-sm-800" }, he = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ke = /* @__PURE__ */ j({
|
|
15
15
|
__name: "Point",
|
|
16
16
|
setup(be) {
|
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import { defineComponent as J, ref as S, computed as Q, h as W, onMounted as X, resolveComponent as m, openBlock as u, createElementBlock as w, Fragment as v, createVNode as l, unref as a, createElementVNode as r, withCtx as b, renderList as Y, createBlock as x, resolveDynamicComponent as Z, toDisplayString as _ } from "vue";
|
|
2
|
+
import { _ as ee } from "./campaign-CpzFl8Vr.js";
|
|
3
|
+
import { useDialog as oe, components as te } from "@feedmepos/ui-library";
|
|
4
|
+
import { c as O, p as L } from "./plugins-D20keyDW.js";
|
|
5
|
+
import { u as ne } from "./loading-DwJdwl4G.js";
|
|
6
|
+
import { u as ae } from "./business-DG2w8U-i.js";
|
|
7
|
+
import { u as se } from "./campaign-WPRZ4BRF.js";
|
|
8
|
+
import { u as re } from "./vue-i18n-N8_TEEd0.js";
|
|
9
|
+
import { g as ie, a as V } from "./campaign-BP6Rz-AH.js";
|
|
10
|
+
import { e as I } from "./effect-C0XoYTus.js";
|
|
11
|
+
import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bcj6o4Xi.js";
|
|
12
|
+
import { u as ce } from "./template-BWQCVHm7.js";
|
|
13
|
+
import { _ as B } from "./FilterChip.vue_vue_type_script_setup_true_lang-BrPLkFX8.js";
|
|
14
|
+
import { c as d } from "./index-BnZ4yaMH.js";
|
|
15
|
+
const me = { class: "px-24 flex flex-col gap-y-16" }, pe = { class: "flex items-center justify-between w-full" }, ue = { class: "flex gap-8 overflow-x-auto" }, de = { class: "space-y-8" }, fe = { class: "flex w-full gap-4 items-center" }, ye = { class: "space-y-4" }, ge = { class: "fm-typo-en-body-lg-600" }, _e = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, he = { class: "flex flex-col gap-16 text-center" }, we = { class: "fm-typo-en-title-sm-800" }, ve = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ J({
|
|
16
|
+
__name: "Promotion",
|
|
17
|
+
setup(be) {
|
|
18
|
+
const { t: n } = re(), M = {
|
|
19
|
+
label: n("connect.promotion.createCampaign"),
|
|
20
|
+
value: "create",
|
|
21
|
+
isPrimary: !0,
|
|
22
|
+
prependIcon: "add"
|
|
23
|
+
}, R = {
|
|
24
|
+
label: "Force sync",
|
|
25
|
+
value: "sync",
|
|
26
|
+
isPrimary: !1,
|
|
27
|
+
prependIcon: "refresh"
|
|
28
|
+
}, A = ce("PROMOTION", oe()), C = ae(), f = se(), { global: K, minor: h } = ne, N = [
|
|
29
|
+
{
|
|
30
|
+
label: "Bill promotion",
|
|
31
|
+
value: "BILL"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
label: "Item promotion",
|
|
35
|
+
value: "ITEM"
|
|
36
|
+
}
|
|
37
|
+
], s = S({
|
|
38
|
+
searchKey: "",
|
|
39
|
+
location: [],
|
|
40
|
+
effectType: []
|
|
41
|
+
});
|
|
42
|
+
function $(e) {
|
|
43
|
+
const o = s.value.location;
|
|
44
|
+
return !o || o.length === 0 || !e.targetLocation ? !0 : Array.isArray(o) ? o.some((c) => {
|
|
45
|
+
var i;
|
|
46
|
+
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(c);
|
|
47
|
+
}) : e.targetLocation.includes(o);
|
|
48
|
+
}
|
|
49
|
+
function U(e) {
|
|
50
|
+
var i, g;
|
|
51
|
+
const o = s.value.effectType;
|
|
52
|
+
if (!o || o.length === 0) return !0;
|
|
53
|
+
const c = (g = (i = e.effect) == null ? void 0 : i.options) == null ? void 0 : g.target;
|
|
54
|
+
return o.includes(c);
|
|
55
|
+
}
|
|
56
|
+
const p = Q(
|
|
57
|
+
() => f.campaigns.promotion.filter(
|
|
58
|
+
(e) => $(e) && U(e)
|
|
59
|
+
)
|
|
60
|
+
), D = [
|
|
61
|
+
{
|
|
62
|
+
header: n("connect.promotion.promotionTitle"),
|
|
63
|
+
accessorFn: (e) => e.name
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
header: n("connect.promotion.status"),
|
|
67
|
+
accessorFn: (e) => ie(e),
|
|
68
|
+
cell(e) {
|
|
69
|
+
return V(e.row.original);
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
header: n("connect.promotion.type"),
|
|
74
|
+
accessorFn: (e) => `${O.title(e.effect.options.target)} promotion`
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
header: n("connect.promotion.summary"),
|
|
78
|
+
accessorFn: (e) => I(e.effect)
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
header: n("connect.promotion.actions"),
|
|
82
|
+
cell(e) {
|
|
83
|
+
return W(te.FmButton, {
|
|
84
|
+
variant: "tertiary",
|
|
85
|
+
icon: "delete",
|
|
86
|
+
iconColor: "neutral-gray-400",
|
|
87
|
+
onClick: (o) => {
|
|
88
|
+
o.stopPropagation(), k(e.row.original);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
], F = S();
|
|
94
|
+
async function k(e) {
|
|
95
|
+
await L.remove(
|
|
96
|
+
n("connect.promotion.confirmRemove", { name: e.name })
|
|
97
|
+
) && await h(
|
|
98
|
+
async () => {
|
|
99
|
+
await d.delete(e._id), await f.read("PROMOTION");
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
message: n("connect.promotion.removing", { name: e.name }),
|
|
103
|
+
successMessage: n("connect.promotion.removedSuccessfully", {
|
|
104
|
+
name: e.name
|
|
105
|
+
})
|
|
106
|
+
}
|
|
107
|
+
);
|
|
108
|
+
}
|
|
109
|
+
async function y(e) {
|
|
110
|
+
e ? await o() : A.open(async (c) => {
|
|
111
|
+
await o(c);
|
|
112
|
+
});
|
|
113
|
+
async function o(c) {
|
|
114
|
+
var i;
|
|
115
|
+
(i = F.value) == null || i.showSheet(
|
|
116
|
+
!0,
|
|
117
|
+
"PROMOTION",
|
|
118
|
+
e ? await d.readById(e._id) : void 0,
|
|
119
|
+
c
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
async function E(e) {
|
|
124
|
+
await h(
|
|
125
|
+
async () => {
|
|
126
|
+
e.campaign._id ? await d.update(e.campaign._id, e) : await d.create(e), await f.read("PROMOTION");
|
|
127
|
+
},
|
|
128
|
+
{
|
|
129
|
+
message: n(
|
|
130
|
+
e.campaign._id ? "connect.promotion.updating" : "connect.promotion.creating"
|
|
131
|
+
),
|
|
132
|
+
successMessage: n(
|
|
133
|
+
e.campaign._id ? "connect.promotion.updatedSuccessfully" : "connect.promotion.createdSuccessfully"
|
|
134
|
+
)
|
|
135
|
+
}
|
|
136
|
+
);
|
|
137
|
+
}
|
|
138
|
+
async function j(e) {
|
|
139
|
+
switch (e) {
|
|
140
|
+
case "create":
|
|
141
|
+
y();
|
|
142
|
+
break;
|
|
143
|
+
case "sync":
|
|
144
|
+
await L.confirm(
|
|
145
|
+
"Are you sure you want to synchronize all promotions to POS?",
|
|
146
|
+
"Force sync"
|
|
147
|
+
) && h(
|
|
148
|
+
async () => {
|
|
149
|
+
await d.syncAllPromotion();
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
message: "Syncing promotions...",
|
|
153
|
+
successMessage: "All promotions synced"
|
|
154
|
+
}
|
|
155
|
+
);
|
|
156
|
+
break;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return X(async () => {
|
|
160
|
+
await K(async () => {
|
|
161
|
+
await C.readLocations(), await f.read("PROMOTION");
|
|
162
|
+
});
|
|
163
|
+
}), (e, o) => {
|
|
164
|
+
const c = m("FmPageHead"), i = m("FmSearch"), g = m("FmTable"), H = m("FmChip"), T = m("FmButton"), q = m("FmListItem"), z = m("FmList"), G = m("FmCard");
|
|
165
|
+
return u(), w(v, null, [
|
|
166
|
+
l(c, {
|
|
167
|
+
title: a(n)("connect.promotion.title"),
|
|
168
|
+
actions: a(p).length > 0 ? [M, R] : [],
|
|
169
|
+
"onClick:action": j
|
|
170
|
+
}, null, 8, ["title", "actions"]),
|
|
171
|
+
r("div", me, [
|
|
172
|
+
l(i, {
|
|
173
|
+
modelValue: s.value.searchKey,
|
|
174
|
+
"onUpdate:modelValue": o[0] || (o[0] = (t) => s.value.searchKey = t),
|
|
175
|
+
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
176
|
+
placeholder: a(n)("connect.promotion.search"),
|
|
177
|
+
collapsible: ""
|
|
178
|
+
}, null, 8, ["modelValue", "placeholder"]),
|
|
179
|
+
a(p) && a(p).length > 0 ? (u(), w(v, { key: 0 }, [
|
|
180
|
+
r("div", pe, [
|
|
181
|
+
r("div", ue, [
|
|
182
|
+
l(B, {
|
|
183
|
+
label: `${a(n)("connect.common.location")}: `,
|
|
184
|
+
"right-icon": "keyboard_arrow_down",
|
|
185
|
+
modelValue: s.value.location,
|
|
186
|
+
"onUpdate:modelValue": o[1] || (o[1] = (t) => s.value.location = t),
|
|
187
|
+
icon: "storefront",
|
|
188
|
+
"show-item-label": !0,
|
|
189
|
+
items: a(C).locationOptions
|
|
190
|
+
}, null, 8, ["label", "modelValue", "items"]),
|
|
191
|
+
l(B, {
|
|
192
|
+
label: "Type:",
|
|
193
|
+
"right-icon": "keyboard_arrow_down",
|
|
194
|
+
modelValue: s.value.effectType,
|
|
195
|
+
"onUpdate:modelValue": o[2] || (o[2] = (t) => s.value.effectType = t),
|
|
196
|
+
icon: "filter_list",
|
|
197
|
+
"show-item-label": !0,
|
|
198
|
+
items: N
|
|
199
|
+
}, null, 8, ["modelValue"])
|
|
200
|
+
]),
|
|
201
|
+
l(i, {
|
|
202
|
+
modelValue: s.value.searchKey,
|
|
203
|
+
"onUpdate:modelValue": o[3] || (o[3] = (t) => s.value.searchKey = t),
|
|
204
|
+
class: "xs:hidden",
|
|
205
|
+
placeholder: "search",
|
|
206
|
+
collapsible: ""
|
|
207
|
+
}, null, 8, ["modelValue"])
|
|
208
|
+
]),
|
|
209
|
+
l(g, {
|
|
210
|
+
class: "xs:hidden",
|
|
211
|
+
"row-data": a(p),
|
|
212
|
+
"column-defs": D,
|
|
213
|
+
"search-value": s.value.searchKey,
|
|
214
|
+
"column-filter": [],
|
|
215
|
+
onRowClick: o[4] || (o[4] = (t) => y(t.original)),
|
|
216
|
+
"hide-footer": a(p).length < 10
|
|
217
|
+
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
218
|
+
l(z, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
219
|
+
default: b(() => [
|
|
220
|
+
(u(!0), w(v, null, Y(a(p).filter(
|
|
221
|
+
(t) => t.name.toLowerCase().includes(s.value.searchKey.toLowerCase())
|
|
222
|
+
), (t) => (u(), x(q, {
|
|
223
|
+
key: t._id.toString(),
|
|
224
|
+
onClick: (P) => y(t),
|
|
225
|
+
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
226
|
+
}, {
|
|
227
|
+
default: b(() => [
|
|
228
|
+
r("div", de, [
|
|
229
|
+
r("div", fe, [
|
|
230
|
+
(u(), x(Z(a(V)(t)))),
|
|
231
|
+
l(H, {
|
|
232
|
+
class: "!text-fm-color-typo-info !bg-fm-color-system-info-100",
|
|
233
|
+
compact: !0,
|
|
234
|
+
label: `${a(O).title(t.effect.options.target)} promotion`
|
|
235
|
+
}, null, 8, ["label"])
|
|
236
|
+
]),
|
|
237
|
+
r("div", ye, [
|
|
238
|
+
r("div", ge, _(t.name), 1),
|
|
239
|
+
r("div", _e, _(a(I)(t.effect)), 1)
|
|
240
|
+
])
|
|
241
|
+
]),
|
|
242
|
+
l(T, {
|
|
243
|
+
icon: "delete",
|
|
244
|
+
"icon-color": "neutral-gray-400",
|
|
245
|
+
variant: "tertiary",
|
|
246
|
+
onClick: (P) => (P.stopPropagation(), k(t))
|
|
247
|
+
}, null, 8, ["onClick"])
|
|
248
|
+
]),
|
|
249
|
+
_: 2
|
|
250
|
+
}, 1032, ["onClick"]))), 128))
|
|
251
|
+
]),
|
|
252
|
+
_: 1
|
|
253
|
+
})
|
|
254
|
+
], 64)) : (u(), x(G, {
|
|
255
|
+
key: 1,
|
|
256
|
+
variant: "outlined",
|
|
257
|
+
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
258
|
+
}, {
|
|
259
|
+
default: b(() => [
|
|
260
|
+
o[6] || (o[6] = r("img", {
|
|
261
|
+
src: ee,
|
|
262
|
+
class: "aspect-square w-[150px]"
|
|
263
|
+
}, null, -1)),
|
|
264
|
+
r("div", he, [
|
|
265
|
+
r("div", we, _(a(n)("connect.promotion.createPromotionCampaign")), 1),
|
|
266
|
+
r("div", ve, _(a(n)("connect.promotion.description")), 1)
|
|
267
|
+
]),
|
|
268
|
+
l(T, {
|
|
269
|
+
variant: "primary",
|
|
270
|
+
label: a(n)("connect.promotion.createPromotionCampaign"),
|
|
271
|
+
icon: "add",
|
|
272
|
+
onClick: o[5] || (o[5] = (t) => y())
|
|
273
|
+
}, null, 8, ["label"])
|
|
274
|
+
]),
|
|
275
|
+
_: 1
|
|
276
|
+
}))
|
|
277
|
+
]),
|
|
278
|
+
l(le, {
|
|
279
|
+
ref_key: "sheetRef",
|
|
280
|
+
ref: F,
|
|
281
|
+
"onSubmit:modelValue": E
|
|
282
|
+
}, null, 512)
|
|
283
|
+
], 64);
|
|
284
|
+
};
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
export {
|
|
288
|
+
Ae as default
|
|
289
|
+
};
|