@feedmepos/mf-connect 0.1.38-beta.9 → 0.1.38-beta.92
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-3MN2saaU.js → Analytic-CWhVZ2N2.js} +31 -32
- package/dist/{App-Co8X5Wdy.js → App-BzHDZ550.js} +741 -728
- package/dist/AuditLogs-DjJOfxWr.js +2013 -0
- package/dist/{Bin-8a56ZDib.js → Bin-H9Mc0kOX.js} +10 -10
- package/dist/Broadcast-BlKv9pTl.js +266 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVXlfq31.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Bfpr1EuT.js} +6 -6
- package/dist/{Card-B8_09LJu.js → Card-ByEYCMZi.js} +145 -140
- package/dist/Collections-BjlqpQR0.js +540 -0
- package/dist/Credit-DyBVTpfr.js +260 -0
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js +128 -0
- package/dist/DateInput.vue_vue_type_script_setup_true_lang-BN4Q5Y3l.js +54 -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-DP50lRfA.js +3120 -0
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-BCQxJpVP.js +351 -0
- package/dist/Experience-Cf6lxdu_.js +259 -0
- package/dist/{FileSaver.min-NlMItPOc.js → FileSaver.min-BIgeA5yw.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +129 -0
- package/dist/FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js +52 -0
- package/dist/Game-CCgsa5as.js +330 -0
- package/dist/Grab-oIvB2uUc.js +300 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-BuiY288K.js} +49 -48
- package/dist/{Index-DLF71mx_.js → Index--bmiSYq2.js} +54 -54
- package/dist/LocationPicker.vue_vue_type_script_setup_true_lang-BQMZvHq2.js +48 -0
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CyGJxUol.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Bj6wuosW.js} +1 -1
- package/dist/{MainLayout-B1aJoR95.js → MainLayout-DTva8da3.js} +1 -1
- package/dist/Marketing-D-5rvdRJ.js +236 -0
- package/dist/MarketingMaterialEdit-CZvsnFG5.js +1036 -0
- package/dist/{Member-Bkw4aqtv.js → Member-CxKA1iM1.js} +38 -37
- package/dist/{MemberList-a3PdVYB3.js → MemberList-CmBZ6w5v.js} +485 -489
- package/dist/{MemberTransactions-CPDBd-n3.js → MemberTransactions-Dc9uE1Jy.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-pbN8pN1m.js → MessageInput.vue_vue_type_script_setup_true_lang-DiOsNoiJ.js} +10392 -9967
- package/dist/Mission-D9ruHJsQ.js +334 -0
- package/dist/{Overview-De97NDoe.js → Overview-B4eiwvqi.js} +34 -34
- package/dist/Point-MXmcuDtD.js +262 -0
- package/dist/Promotion-CBoCcEhJ.js +397 -0
- package/dist/{Queue-ISVZxCE2.js → Queue-if5Lji0q.js} +18 -18
- package/dist/{Record-2FMByNC6.js → Record-XLXvSqlF.js} +15 -14
- package/dist/Review-BKIkmxLd.js +621 -0
- package/dist/ReviewFacebookCallback-B6TIL_H7.js +243 -0
- package/dist/ReviewGoogleCallback-D3sQbfuc.js +213 -0
- package/dist/{Reward-DPRyQ37x.js → Reward-DaymLqOP.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Ba7-3bL-.js → RewardGroup.vue_vue_type_script_setup_true_lang-cGyeUFlK.js} +13 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BOJdm376.js +1912 -0
- package/dist/Segment-o7srzt8o.js +1015 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-DZbyDVid.js → SelectItems.vue_vue_type_script_setup_true_lang-DnA83SVT.js} +23 -23
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-ioMFYIwK.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RKn_DhW0.js} +12 -12
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-mzGtatEl.js +226 -0
- package/dist/Setting-Clbp5X2E.js +2039 -0
- package/dist/SettingAdvertisements-D9KTw00Q.js +264 -0
- package/dist/Store-DApDz7rO.js +1996 -0
- package/dist/StoreRewards-DTraNhDh.js +537 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BusvWI37.js +1130 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-D5HOiiLG.js +7007 -0
- package/dist/{Tier-CwRj0oJ1.js → Tier-BWiO5an3.js} +562 -480
- package/dist/{Title-EII5OxSP.js → Title-Dur74Of5.js} +151 -149
- package/dist/{Transaction-1MTkAfej.js → Transaction-x3fZwXdy.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BlQVWQHJ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-9XLlfUdp.js} +7 -7
- package/dist/Voucher-DH7x7NAS.js +421 -0
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-CNn4GR2l.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CTeGK4bk.js → ZodTextField.vue_vue_type_script_setup_true_lang-W-qWPW20.js} +2 -2
- package/dist/app-IRmnrMb8.js +59647 -0
- package/dist/app.js +1 -1
- package/dist/{business-DjnN-J4U.js → business-BZG7VHN8.js} +11 -8
- package/dist/campaign-BUvMmYOk.js +219 -0
- package/dist/campaign-BeRxvBzZ.js +254 -0
- package/dist/campaign.enum-BmFHrnub.js +26 -0
- package/dist/campaign.fn-B0sgTkC-.js +776 -0
- package/dist/{collectible.enum-r6N115Lu.js → collectible.enum-J0aolcpF.js} +1 -1
- package/dist/{collection.fn-CSsfVv26.js → collection.fn-BOhZm8S0.js} +2 -2
- package/dist/dto-CSNH3rWF.js +222 -0
- package/dist/duplicateCampaign-CAOL6p7n.js +51 -0
- package/dist/effect-DTL3F8d_.js +89 -0
- package/dist/{email-addresses-D8uheCCF.js → email-addresses-Bw8rSTHa.js} +2 -2
- package/dist/{export-Ver6WiX6.js → export-CY5VAxnU.js} +4 -4
- package/dist/{helper-Bg4xoFbh.js → helper-1sIKNm6C.js} +22 -7
- package/dist/{index-Dn_bmcns.js → index-BX_igCG6.js} +3 -3
- package/dist/index-B_-tEYD0.js +3625 -0
- package/dist/{index-BZZ4iF4-.js → index-BultP2zY.js} +23 -12
- package/dist/index-CAIsxBzT.js +48 -0
- package/dist/index-CVbL8J7-.js +85 -0
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/{index-D4JOeJJJ.js → index-D4Bx6J2q.js} +1 -1
- package/dist/{index-hJUxCNsF.js → index-DO2AYnVc.js} +1 -1
- package/dist/index-DPmqQmoC.js +30289 -0
- package/dist/{index-CNhr0_Zx.js → index-DoupH575.js} +617 -191
- package/dist/{index-Bb0CHeNx.js → index-DpXwZYX4.js} +3 -3
- package/dist/{index-BPQyQc4q.js → index-Gr5htFUW.js} +1 -1
- package/dist/index-KC-9_cY4.js +8910 -0
- package/dist/index-nMxh2OZ2.js +28900 -0
- package/dist/{index.esm2017-hK1Mi9yY.js → index.esm2017-0cVB_6L1.js} +122 -122
- package/dist/{loading-kIQFOTwH.js → loading-BUAN8WyV.js} +4 -3
- package/dist/{lodash-B5I3zXaY.js → lodash-C7OD0MNW.js} +1 -1
- package/dist/{membership--xR-HZoa.js → membership-CZkPkDiM.js} +38 -18
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-c-ITXnlg.js → money-CdTox5sS.js} +1 -1
- package/dist/{number-DfZSBLOY.js → number-CxHO_EhJ.js} +1 -1
- package/dist/objectid-DL2GZe9v.js +145 -0
- package/dist/{campaign-BpJ1O6KS.js → plugins-BR4hQ6yY.js} +677 -699
- package/dist/remy-D_Deb3ue.js +13 -0
- package/dist/{reward-CE0ifMHS.js → reward-DWwwkcS3.js} +1 -1
- package/dist/{rule-DrjdmpaB.js → rule-CY_w8dsS.js} +505 -487
- package/dist/rule-builder-DMdUBkxB.js +102 -0
- package/dist/string-Gcy5IM_H.js +32 -0
- package/dist/style.css +11 -2
- package/dist/template-tuIzBpOC.js +188 -0
- package/dist/timezone-Dt3UFIE2.js +1156 -0
- package/dist/trigger-B9pWO76n.js +213 -0
- package/dist/useMarketingMaterialActions-C7XoKutU.js +96 -0
- package/dist/usePagination-Dvqiv0Ms.js +220 -0
- package/dist/{user-Cl3IotYV.js → user-DlrL0A8u.js} +15 -14
- package/dist/{vue-i18n-DKh0SMhL.js → vue-i18n-B2srUL0h.js} +449 -449
- package/dist/{xlsx-BDBzdOuM.js → xlsx-B9pnBbNc.js} +1 -1
- package/dist/{zod-Bg2FbC-D.js → zod-CO0ds3MB.js} +32 -31
- package/package.json +14 -6
- package/dist/AuditLogs-DTq6IAuc.js +0 -1887
- package/dist/Broadcast-UreS5Kiq.js +0 -227
- package/dist/Collections-B0I5ULxR.js +0 -465
- package/dist/Credit-B4Ad8DWP.js +0 -222
- package/dist/CustomSelect.vue_vue_type_script_setup_true_lang-DLnvDVgf.js +0 -108
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjgACf9F.js +0 -2185
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-y5JnuIev.js +0 -347
- package/dist/Experience-xO5KpTTm.js +0 -223
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js +0 -114
- package/dist/Game-ChgrVvz5.js +0 -278
- package/dist/Marketing-BlmRXSGl.js +0 -20073
- package/dist/Mission-B07wK0HX.js +0 -296
- package/dist/Point-Ckj9QIeH.js +0 -226
- package/dist/Promotion-aGNCOeRN.js +0 -289
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DWj-421v.js +0 -1751
- package/dist/Segment-CRMNJ11X.js +0 -882
- package/dist/SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cfp8XXdO.js +0 -147
- package/dist/Setting-c0FWRZsD.js +0 -1936
- package/dist/Store-Bm1_15s8.js +0 -1842
- package/dist/StoreRewards-BCQHHfay.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CfTF2l-D.js +0 -1029
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-rvhoxo0w.js +0 -139
- package/dist/Voucher-CYvjCb-v.js +0 -384
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-63Jr71dJ.js +0 -419
- package/dist/_commonjsHelpers-BkfeUUK-.js +0 -28
- package/dist/app-BJLHk8ao.js +0 -33357
- package/dist/app-BzIk1ojT.js +0 -7086
- package/dist/campaign-BHNS5kXt.js +0 -96
- package/dist/campaign.enum-CJDWE_Om.js +0 -20
- package/dist/campaign.fn-C0HQE9uh.js +0 -758
- package/dist/dto-Byq51uVH.js +0 -214
- package/dist/effect-Do3yTM-_.js +0 -78
- package/dist/index-B1V9UnI9.js +0 -76
- package/dist/index-BM9CWjC6.js +0 -38
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-D6VxioBg.js +0 -30038
- package/dist/index-DGKlRWn3.js +0 -32260
- package/dist/index-DLKyOu7W.js +0 -8861
- package/dist/index-DyYF6HYL.js +0 -121
- package/dist/index-UXtH44XQ.js +0 -3120
- package/dist/objectid-DKbha9-x.js +0 -145
- package/dist/plugins-DtakupKW.js +0 -208
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
- package/dist/rule-builder-B_hCyq3x.js +0 -89
- package/dist/template-WI4a-lFY.js +0 -190
- package/dist/trigger-DieDHht3.js +0 -144
- package/dist/usePagination-BeF5K3M7.js +0 -223
|
@@ -1,289 +0,0 @@
|
|
|
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-DtakupKW.js";
|
|
5
|
-
import { u as ne } from "./loading-kIQFOTwH.js";
|
|
6
|
-
import { u as ae } from "./business-DjnN-J4U.js";
|
|
7
|
-
import { u as se } from "./campaign-BHNS5kXt.js";
|
|
8
|
-
import { u as re } from "./vue-i18n-DKh0SMhL.js";
|
|
9
|
-
import { g as ie, a as V } from "./campaign-BpJ1O6KS.js";
|
|
10
|
-
import { e as I } from "./effect-Do3yTM-_.js";
|
|
11
|
-
import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-DjgACf9F.js";
|
|
12
|
-
import { u as ce } from "./template-WI4a-lFY.js";
|
|
13
|
-
import { _ as B } from "./FilterChip.vue_vue_type_script_setup_true_lang-d8rh38tD.js";
|
|
14
|
-
import { c as d } from "./index-DyYF6HYL.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
|
-
};
|