@feedmepos/mf-connect 0.1.13-prod → 0.1.14-prod
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-CBEDTJ94.js → Analytic-MRp7gtO3.js} +9 -9
- package/dist/{App-BcrQs0nE.js → App-BU3B2A-F.js} +6 -6
- package/dist/{Broadcast-ClM81ght.js → Broadcast-DmciJlSU.js} +38 -37
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CTwScH9I.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DJPOgBXj.js} +7 -7
- package/dist/{Card-B7_nUT03.js → Card-Dq2cAgTi.js} +15 -15
- package/dist/Collections-B4x4VH1a.js +445 -0
- package/dist/{Credit-DC6pzGIR.js → Credit-CVdT1KBU.js} +57 -56
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DCwaUg09.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BmjXu-U7.js} +27 -27
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D2qCLBp3.js → EffectSheet.vue_vue_type_style_index_0_lang-A_uosv-g.js} +6 -6
- package/dist/{Experience-ClJWQLEB.js → Experience-CEeXWbue.js} +39 -38
- package/dist/{Game-BznCxZXt.js → Game-mx5c5ZhV.js} +46 -45
- package/dist/{Index-D27v-Lqw.js → Index-DQ1qadwz.js} +9 -9
- package/dist/{Marketing-FvYJ_Lt-.js → Marketing-CciBZijv.js} +5 -5
- package/dist/{Member-CQYj0FQK.js → Member-C51SlKxj.js} +4 -4
- package/dist/{MemberList-UIZANV1T.js → MemberList-D1x731cU.js} +14 -14
- package/dist/{MemberTransactions-JKLzrvh6.js → MemberTransactions-BpoTQHFQ.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-_72tx6g3.js → MessageInput.vue_vue_type_script_setup_true_lang-DZu24zwy.js} +2 -2
- package/dist/{Mission-LwSpobZu.js → Mission-LpCnpKYD.js} +35 -34
- package/dist/{Overview-PXshmkPD.js → Overview-DxvOqUao.js} +17 -17
- package/dist/{Point-uaIRQMRW.js → Point-BmI7y6h6.js} +51 -50
- package/dist/{Promotion-qjos6ksl.js → Promotion-MHaOqrwu.js} +34 -33
- package/dist/{Record-qqPaVdrx.js → Record-75BxMATe.js} +6 -6
- package/dist/{Reward-BC6GJ4kD.js → Reward-8VfyFuEt.js} +14 -14
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CF7hNZIU.js → RewardGroup.vue_vue_type_script_setup_true_lang-D12_r-9X.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DQ8rQIwv.js → RuleGroup.vue_vue_type_script_setup_true_lang-BIdBxvN7.js} +13 -13
- package/dist/{Segment-B5E2FdYc.js → Segment-I9FUibZy.js} +13 -13
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Dqz3uAze.js → SelectItems.vue_vue_type_script_setup_true_lang-BGeR0-AG.js} +2 -2
- package/dist/{Setting-CA9PQVKp.js → Setting-B8V2I0EZ.js} +8 -8
- package/dist/{Store-irRFotGI.js → Store-CQkGNSSm.js} +281 -278
- package/dist/{StoreRewards-CcJ8MMvp.js → StoreRewards-DOtjveqw.js} +12 -12
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CcNjdcMX.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Cf9IsQXS.js} +251 -245
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-2i2fDWDC.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DPmeW62s.js} +1 -1
- package/dist/{Tier-CdxK-QtB.js → Tier-DAj_5abZ.js} +19 -19
- package/dist/{Title-Ci_NXdrD.js → Title-DryO4wcO.js} +19 -19
- package/dist/{Transaction-ChKg7UTd.js → Transaction-DpibVFU-.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B3INK4Ue.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DoiPRPPo.js} +6 -6
- package/dist/{Voucher-CDlHku1x.js → Voucher-CSc0_dGX.js} +56 -55
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-D9wqrTVc.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DRnVggfC.js} +10 -10
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Di6QPzfu.js → ZodTextField.vue_vue_type_script_setup_true_lang-BzBcsSYS.js} +1 -1
- package/dist/{app-B9MkUjRo.js → app-BoQTcBOD.js} +28 -28
- package/dist/{app-BmT3kZJr.js → app-BzPle2EI.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-1nKmKs9l.js → business-H9a63ymR.js} +1 -1
- package/dist/{campaign-xn4PhDSV.js → campaign-CR-16mwD.js} +2 -2
- package/dist/{campaign.enum-KwZQ6yBR.js → campaign.enum-DcaetYuk.js} +1 -1
- package/dist/{campaign.fn-CVj38fae.js → campaign.fn-BqGZqM77.js} +110 -110
- package/dist/{collectible.enum-DojcTb50.js → collectible.enum-YKtiwQbt.js} +1 -1
- package/dist/{collection.fn-Bv2EZuA3.js → collection.fn-CI8lSAsC.js} +2 -2
- package/dist/{dto-DP9kIlr_.js → dto-BBLfD0Lh.js} +17 -16
- package/dist/{effect-47JS4i8Q.js → effect-36H79d0n.js} +1 -1
- package/dist/{email-addresses-C6Jvh8MK.js → email-addresses-drrACeqJ.js} +1 -1
- package/dist/{export-BdPv7Hej.js → export-BgnO3lJs.js} +3 -3
- package/dist/{helper-Di0AEV1F.js → helper-CcV9DZXq.js} +1 -1
- package/dist/{index-Dd0IgwOF.js → index-6RqtavHk.js} +4 -4
- package/dist/{index-CPjDZrsE.js → index-B5ii6hOh.js} +1 -1
- package/dist/{index-YAoPUv6z.js → index-BEDXujqZ.js} +1 -1
- package/dist/{index-CVsuhUpe.js → index-BPbhXWRp.js} +7 -7
- package/dist/{index-BUjGxHkM.js → index-BRTpdfj3.js} +3 -3
- package/dist/{index-CDmiwLKd.js → index-CB1CnEOn.js} +1 -1
- package/dist/{index-DHb0pIVR.js → index-CibFRBGu.js} +2 -2
- package/dist/{index-gYvuI9Nk.js → index-Cidu1YZP.js} +3 -3
- package/dist/{index-BZg5tj39.js → index-DLAAi9ur.js} +3039 -3036
- package/dist/{index-D5LMqy6S.js → index-DydNNBhY.js} +1 -1
- package/dist/{index-Be9fjCVp.js → index-ZycLk3NR.js} +1 -1
- package/dist/{index-BPkcvPHp.js → index-mgoYj6L9.js} +1 -1
- package/dist/{index.esm2017-C-O-0X0H.js → index.esm2017-QS_XhcBp.js} +1 -1
- package/dist/{loading-E0zwe5lq.js → loading-LktVwV5k.js} +4 -4
- package/dist/{membership-OECc9rWj.js → membership-7ETvXph3.js} +3 -3
- package/dist/{money-CVSdH00t.js → money-BYszknw8.js} +1 -1
- package/dist/{number-Iu6cix1k.js → number-Dmd4vT4F.js} +1 -1
- package/dist/objectid-BQtSeCVi.js +145 -0
- package/dist/{reward-BH_1xbHQ.js → reward-DJGOX-D1.js} +1 -1
- package/dist/{rule-CbkzOdR3.js → rule-D7jM4gdg.js} +3 -3
- package/dist/{rule-builder-WIEeIoXD.js → rule-builder-FO9UeYUJ.js} +1 -1
- package/dist/{template-Dlo0YPQp.js → template-C4Ddrpk1.js} +4 -4
- package/dist/{trigger-BMknrXKj.js → trigger-w7Q4qOMB.js} +4 -4
- package/dist/{usePagination-B9K_XXDC.js → usePagination-PH1OvyZM.js} +1 -1
- package/dist/{user-CuX5BIg5.js → user-DRPXRVy2.js} +1 -1
- package/dist/{vue-i18n-CrVlAF7z.js → vue-i18n-B49HKiTU.js} +2 -2
- package/package.json +6 -6
- package/dist/Collections-N7LIfZ2D.js +0 -435
- package/dist/objectid-B16Lk1pC.js +0 -145
|
@@ -1,79 +1,80 @@
|
|
|
1
1
|
import { defineComponent as N, ref as S, computed as j, h as M, onMounted as A, resolveComponent as i, openBlock as l, createElementBlock as y, Fragment as h, createVNode as c, unref as t, createElementVNode as n, withCtx as C, renderList as H, createBlock as v, resolveDynamicComponent as q, toDisplayString as g, createCommentVNode as z } from "vue";
|
|
2
2
|
import { _ as G } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as O } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q, u as W } from "./loading-
|
|
5
|
-
import { u as X } from "./business-
|
|
6
|
-
import { u as Y } from "./campaign-
|
|
7
|
-
import { g as
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as _ } from "./index-
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
],
|
|
4
|
+
import { p as Q, u as W } from "./loading-LktVwV5k.js";
|
|
5
|
+
import { u as X } from "./business-H9a63ymR.js";
|
|
6
|
+
import { u as Y } from "./campaign-CR-16mwD.js";
|
|
7
|
+
import { g as Z, a as V, b as L } from "./dto-BBLfD0Lh.js";
|
|
8
|
+
import { u as ee } from "./vue-i18n-B49HKiTU.js";
|
|
9
|
+
import { _ as oe } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
10
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BmjXu-U7.js";
|
|
11
|
+
import { u as ae } from "./template-C4Ddrpk1.js";
|
|
12
|
+
import { c as _ } from "./index-B5ii6hOh.js";
|
|
13
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, se = { class: "flex items-center justify-between w-full" }, re = { class: "flex gap-8 overflow-x-auto" }, ce = { class: "space-y-8" }, ie = { class: "flex w-full gap-4 items-center" }, le = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, me = { class: "space-y-4" }, de = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = { key: 0 }, ye = /* @__PURE__ */ n("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-600" }, " No results found ", -1), ge = [
|
|
14
|
+
ye
|
|
15
|
+
], _e = /* @__PURE__ */ n("img", {
|
|
16
16
|
src: G,
|
|
17
17
|
class: "aspect-square w-[150px]"
|
|
18
|
-
}, null, -1),
|
|
18
|
+
}, null, -1), he = /* @__PURE__ */ n("div", { class: "flex flex-col gap-16 text-center" }, [
|
|
19
19
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-title-sm-800" }, "Create your credit program"),
|
|
20
20
|
/* @__PURE__ */ n("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Credits are virtual money that customers can use to pay for their purchases, similar to cash within your store. ")
|
|
21
|
-
], -1),
|
|
21
|
+
], -1), De = /* @__PURE__ */ N({
|
|
22
22
|
__name: "Credit",
|
|
23
|
-
setup(
|
|
24
|
-
const { t:
|
|
25
|
-
label:
|
|
26
|
-
type:
|
|
23
|
+
setup(Ce) {
|
|
24
|
+
const { t: s } = ee(), I = {
|
|
25
|
+
label: s("connect.program.common.actions.create", {
|
|
26
|
+
type: s("connect.program.credit.title").toLowerCase()
|
|
27
27
|
}),
|
|
28
28
|
value: "create",
|
|
29
29
|
isPrimary: !0,
|
|
30
30
|
prependIcon: "add"
|
|
31
|
-
}, R =
|
|
31
|
+
}, R = ae("CREDIT", J()), B = X(), m = Y(), { global: D, minor: w } = W, r = S({
|
|
32
32
|
searchKey: "",
|
|
33
33
|
location: null
|
|
34
34
|
}), d = j(
|
|
35
35
|
() => m.campaigns.credit.filter(
|
|
36
|
-
(e) => !
|
|
36
|
+
(e) => !r.value.location || !e.targetLocation || e.targetLocation.includes(r.value.location)
|
|
37
37
|
)
|
|
38
38
|
), T = [
|
|
39
39
|
{
|
|
40
|
-
header:
|
|
40
|
+
header: s("connect.program.common.table.title"),
|
|
41
41
|
accessorFn: (e) => e.name
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
|
-
header:
|
|
44
|
+
header: s("connect.program.common.table.status"),
|
|
45
|
+
accessorFn: (e) => Z(e),
|
|
45
46
|
cell(e) {
|
|
46
47
|
return V(e.row.original);
|
|
47
48
|
}
|
|
48
49
|
},
|
|
49
50
|
{
|
|
50
|
-
header:
|
|
51
|
+
header: s("connect.program.common.table.summary"),
|
|
51
52
|
accessorFn: (e) => L(e)
|
|
52
53
|
},
|
|
53
54
|
{
|
|
54
|
-
header:
|
|
55
|
+
header: s("connect.program.common.table.actions"),
|
|
55
56
|
cell(e) {
|
|
56
57
|
return M(O.FmButton, {
|
|
57
58
|
variant: "tertiary",
|
|
58
59
|
icon: "delete",
|
|
59
60
|
iconColor: "neutral-gray-400",
|
|
60
61
|
onClick: (a) => {
|
|
61
|
-
a.stopPropagation(),
|
|
62
|
+
a.stopPropagation(), x(e.row.original);
|
|
62
63
|
}
|
|
63
64
|
});
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
|
-
],
|
|
67
|
-
async function
|
|
67
|
+
], b = S();
|
|
68
|
+
async function x(e) {
|
|
68
69
|
await Q.remove(
|
|
69
|
-
|
|
70
|
+
s("connect.program.common.remove.confirm", { name: e.name })
|
|
70
71
|
) && await w(
|
|
71
72
|
async () => {
|
|
72
73
|
await _.delete(e._id), await m.read("CREDIT");
|
|
73
74
|
},
|
|
74
75
|
{
|
|
75
|
-
message:
|
|
76
|
-
successMessage:
|
|
76
|
+
message: s("connect.program.common.remove.removing", { name: e.name }),
|
|
77
|
+
successMessage: s("connect.program.common.remove.removed", {
|
|
77
78
|
name: e.name
|
|
78
79
|
})
|
|
79
80
|
}
|
|
@@ -85,7 +86,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
85
86
|
});
|
|
86
87
|
async function a(p) {
|
|
87
88
|
var u;
|
|
88
|
-
(u =
|
|
89
|
+
(u = b.value) == null || u.showSheet(
|
|
89
90
|
!0,
|
|
90
91
|
"CREDIT",
|
|
91
92
|
e ? await _.readById(e._id) : void 0,
|
|
@@ -112,24 +113,24 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
112
113
|
const p = i("FmPageHead"), u = i("FmSearch"), K = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), P = i("FmList"), U = i("FmCard");
|
|
113
114
|
return l(), y(h, null, [
|
|
114
115
|
c(p, {
|
|
115
|
-
title: t(
|
|
116
|
+
title: t(s)("connect.program.credit.title"),
|
|
116
117
|
actions: t(d).length > 0 ? [I] : [],
|
|
117
118
|
"onClick:action": a[0] || (a[0] = () => f())
|
|
118
119
|
}, null, 8, ["title", "actions"]),
|
|
119
|
-
n("div",
|
|
120
|
+
n("div", ne, [
|
|
120
121
|
c(u, {
|
|
121
|
-
modelValue: t(
|
|
122
|
-
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(
|
|
122
|
+
modelValue: t(r).searchKey,
|
|
123
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(r).searchKey = o),
|
|
123
124
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
124
125
|
placeholder: "search",
|
|
125
126
|
collapsible: ""
|
|
126
127
|
}, null, 8, ["modelValue"]),
|
|
127
128
|
t(m).campaigns.credit && t(m).campaigns.credit.length > 0 ? (l(), y(h, { key: 0 }, [
|
|
128
|
-
n("div",
|
|
129
|
+
n("div", se, [
|
|
129
130
|
n("div", re, [
|
|
130
|
-
c(
|
|
131
|
-
modelValue: t(
|
|
132
|
-
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(
|
|
131
|
+
c(oe, {
|
|
132
|
+
modelValue: t(r).location,
|
|
133
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(r).location = o),
|
|
133
134
|
label: "Location: ",
|
|
134
135
|
"show-item-label": !0,
|
|
135
136
|
icon: "storefront",
|
|
@@ -138,8 +139,8 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
138
139
|
}, null, 8, ["modelValue", "items"])
|
|
139
140
|
]),
|
|
140
141
|
c(u, {
|
|
141
|
-
modelValue: t(
|
|
142
|
-
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(
|
|
142
|
+
modelValue: t(r).searchKey,
|
|
143
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(r).searchKey = o),
|
|
143
144
|
class: "xs:hidden",
|
|
144
145
|
placeholder: "search",
|
|
145
146
|
collapsible: ""
|
|
@@ -149,7 +150,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
149
150
|
class: "xs:hidden",
|
|
150
151
|
"row-data": t(d),
|
|
151
152
|
"column-defs": T,
|
|
152
|
-
"search-value": t(
|
|
153
|
+
"search-value": t(r).searchKey,
|
|
153
154
|
"column-filter": [],
|
|
154
155
|
onRowClick: a[4] || (a[4] = (o) => f(o.original)),
|
|
155
156
|
"hide-footer": t(d).length < 10
|
|
@@ -157,29 +158,29 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
157
158
|
c(P, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
158
159
|
default: C(() => [
|
|
159
160
|
(l(!0), y(h, null, H(t(d).filter(
|
|
160
|
-
(o) => o.name.toLowerCase().includes(t(
|
|
161
|
+
(o) => o.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
|
|
161
162
|
), (o) => (l(), v($, {
|
|
162
163
|
key: o._id.toString(),
|
|
163
164
|
onClick: (k) => f(o),
|
|
164
165
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
165
166
|
}, {
|
|
166
167
|
default: C(() => [
|
|
167
|
-
n("div",
|
|
168
|
-
n("div",
|
|
168
|
+
n("div", ce, [
|
|
169
|
+
n("div", ie, [
|
|
169
170
|
(l(), v(q(t(V)(o)))),
|
|
170
|
-
n("div",
|
|
171
|
+
n("div", le, g(o.currentReceive ?? 0) + " used ", 1)
|
|
171
172
|
]),
|
|
172
|
-
n("div",
|
|
173
|
-
n("div",
|
|
174
|
-
n("div",
|
|
173
|
+
n("div", me, [
|
|
174
|
+
n("div", de, g(o.name), 1),
|
|
175
|
+
n("div", pe, g(t(L)(o)), 1)
|
|
175
176
|
]),
|
|
176
|
-
n("div",
|
|
177
|
+
n("div", ue, " Credit received: " + g(o.currentReceive ?? 0), 1)
|
|
177
178
|
]),
|
|
178
179
|
c(F, {
|
|
179
180
|
icon: "delete",
|
|
180
181
|
"icon-color": "neutral-gray-400",
|
|
181
182
|
variant: "tertiary",
|
|
182
|
-
onClick: (k) => (k.stopPropagation(),
|
|
183
|
+
onClick: (k) => (k.stopPropagation(), x(o))
|
|
183
184
|
}, null, 8, ["onClick"])
|
|
184
185
|
]),
|
|
185
186
|
_: 2
|
|
@@ -187,15 +188,15 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
187
188
|
]),
|
|
188
189
|
_: 1
|
|
189
190
|
}),
|
|
190
|
-
t(d).length == 0 ? (l(), y("div",
|
|
191
|
+
t(d).length == 0 ? (l(), y("div", fe, ge)) : z("", !0)
|
|
191
192
|
], 64)) : (l(), v(U, {
|
|
192
193
|
key: 1,
|
|
193
194
|
variant: "outlined",
|
|
194
195
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
195
196
|
}, {
|
|
196
197
|
default: C(() => [
|
|
197
|
-
ge,
|
|
198
198
|
_e,
|
|
199
|
+
he,
|
|
199
200
|
c(F, {
|
|
200
201
|
variant: "primary",
|
|
201
202
|
label: "Create credit program",
|
|
@@ -205,9 +206,9 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
205
206
|
]),
|
|
206
207
|
_: 1
|
|
207
208
|
})),
|
|
208
|
-
c(
|
|
209
|
+
c(te, {
|
|
209
210
|
ref_key: "sheetRef",
|
|
210
|
-
ref:
|
|
211
|
+
ref: b,
|
|
211
212
|
"onSubmit:modelValue": E
|
|
212
213
|
}, null, 512)
|
|
213
214
|
])
|
|
@@ -216,5 +217,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
216
217
|
}
|
|
217
218
|
});
|
|
218
219
|
export {
|
|
219
|
-
|
|
220
|
+
De as default
|
|
220
221
|
};
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import { defineComponent, ref, watch, resolveComponent, openBlock, createElementBlock, createVNode, unref, isRef, withCtx, createBlock, createCommentVNode, computed, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString, toRefs, normalizeStyle, resolveDynamicComponent, createSlots } from "vue";
|
|
2
2
|
import { _ } from "./lodash-B5I3zXaY.js";
|
|
3
|
-
import { z } from "./app-
|
|
3
|
+
import { z } from "./app-BoQTcBOD.js";
|
|
4
4
|
import { Z as ZodHelper } from "./zod-Bg2FbC-D.js";
|
|
5
|
-
import {
|
|
6
|
-
import { u as useMembershipStore } from "./membership-
|
|
7
|
-
import { u as useBusinessStore } from "./business-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-
|
|
5
|
+
import { c as getCampaignSummaryObject, d as campaignRefinement, e as CampaignDtos, C as CampaignOptions, f as campaignTransform } from "./dto-BBLfD0Lh.js";
|
|
6
|
+
import { u as useMembershipStore } from "./membership-7ETvXph3.js";
|
|
7
|
+
import { u as useBusinessStore } from "./business-H9a63ymR.js";
|
|
8
|
+
import "./index-CibFRBGu.js";
|
|
9
|
+
import { R as RuleBuilder, a as isRuleEntry } from "./rule-builder-FO9UeYUJ.js";
|
|
10
10
|
import { J as JsonViewer } from "./JsonViewer-v8_C7l5N.js";
|
|
11
11
|
import { h as hooks } from "./moment-BWErdI6_.js";
|
|
12
|
-
import { f as featureVersionMapping } from "./campaign.enum-
|
|
12
|
+
import { f as featureVersionMapping } from "./campaign.enum-DcaetYuk.js";
|
|
13
13
|
import { _ as _sfc_main$o } from "./ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js";
|
|
14
|
-
import { _ as _sfc_main$m, a as _sfc_main$p, b as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
15
|
-
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { p as prompt, c as cases, f as firebaseStorage, u as useLoading } from "./loading-
|
|
19
|
-
import { u as useI18n } from "./vue-i18n-
|
|
20
|
-
import { T as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-
|
|
21
|
-
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
22
|
-
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-
|
|
23
|
-
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
24
|
-
import "./index-
|
|
25
|
-
import { b as FdoCreditLoyaltyReward, c as FdtoRandomReward, d as F_MISSION_TYPE, e as FdoThresholdCreditReward, f as FdtoThresholdReward, g as FdoMission } from "./index-
|
|
26
|
-
import { T as TEMPLATES } from "./index-
|
|
27
|
-
import "./index-
|
|
28
|
-
import "./index-
|
|
29
|
-
import { F as F_GAME_TYPE } from "./collectible.enum-
|
|
14
|
+
import { _ as _sfc_main$m, a as _sfc_main$p, b as _sfc_main$r } from "./EffectSheet.vue_vue_type_style_index_0_lang-A_uosv-g.js";
|
|
15
|
+
import { _ as _sfc_main$q } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DPmeW62s.js";
|
|
16
|
+
import { _ as _sfc_main$t } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-DoiPRPPo.js";
|
|
17
|
+
import { _ as _sfc_main$j, a as _sfc_main$k } from "./RuleGroup.vue_vue_type_script_setup_true_lang-BIdBxvN7.js";
|
|
18
|
+
import { p as prompt, c as cases, f as firebaseStorage, u as useLoading } from "./loading-LktVwV5k.js";
|
|
19
|
+
import { u as useI18n } from "./vue-i18n-B49HKiTU.js";
|
|
20
|
+
import { T as TypeToTriggerOptions, _ as _sfc_main$u, a as _sfc_main$v } from "./trigger-w7Q4qOMB.js";
|
|
21
|
+
import { _ as _sfc_main$s } from "./MessageInput.vue_vue_type_script_setup_true_lang-DZu24zwy.js";
|
|
22
|
+
import { c as calculateNextScheduleAt, S as SummarizeRrule, R as RRule } from "./rule-D7jM4gdg.js";
|
|
23
|
+
import { _ as _sfc_main$l, a as _sfc_main$n } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-DRnVggfC.js";
|
|
24
|
+
import "./index-BRTpdfj3.js";
|
|
25
|
+
import { b as FdoCreditLoyaltyReward, c as FdtoRandomReward, d as F_MISSION_TYPE, e as FdoThresholdCreditReward, f as FdtoThresholdReward, g as FdoMission } from "./index-6RqtavHk.js";
|
|
26
|
+
import { T as TEMPLATES } from "./index-BPbhXWRp.js";
|
|
27
|
+
import "./index-mgoYj6L9.js";
|
|
28
|
+
import "./index-Cidu1YZP.js";
|
|
29
|
+
import { F as F_GAME_TYPE } from "./collectible.enum-YKtiwQbt.js";
|
|
30
30
|
import { useCoreStore } from "@feedmepos/mf-common";
|
|
31
|
-
import { i as initCollectibleConfig } from "./helper-
|
|
32
|
-
import { C as CollectionUtils } from "./collection.fn-
|
|
31
|
+
import { i as initCollectibleConfig } from "./helper-CcV9DZXq.js";
|
|
32
|
+
import { C as CollectionUtils } from "./collection.fn-CI8lSAsC.js";
|
|
33
33
|
import { s as sentenceCase$1 } from "./index-CuvNtC_M.js";
|
|
34
34
|
import { useDialog } from "@feedmepos/ui-library";
|
|
35
|
-
import { u as useCampaignStore } from "./campaign-
|
|
36
|
-
import { S as SvcConfig } from "./index-
|
|
35
|
+
import { u as useCampaignStore } from "./campaign-CR-16mwD.js";
|
|
36
|
+
import { S as SvcConfig } from "./index-DLAAi9ur.js";
|
|
37
37
|
import { a as cleanPF } from "./object-qECH92oz.js";
|
|
38
38
|
const _hoisted_1$g = { class: "space-y-24" }, _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
39
39
|
__name: "TimeRuleGroup",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as P, ref as R, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as h, createCommentVNode as v, createBlock as f, unref as e, isRef as q, createVNode as b, normalizeClass as G, watch as X, withCtx as F, resolveDynamicComponent as D, Fragment as _, createElementVNode as A, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-
|
|
2
|
+
import { z as te } from "./app-BoQTcBOD.js";
|
|
3
3
|
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import { f as le, g as oe } from "./index-
|
|
5
|
-
import { u as Z } from "./vue-i18n-
|
|
6
|
-
import { s as O } from "./effect-
|
|
7
|
-
import { p as ae } from "./loading-
|
|
8
|
-
import { I as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-CibFRBGu.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-B49HKiTU.js";
|
|
6
|
+
import { s as O } from "./effect-36H79d0n.js";
|
|
7
|
+
import { p as ae } from "./loading-LktVwV5k.js";
|
|
8
|
+
import { I as ne } from "./app-BzPle2EI.js";
|
|
9
9
|
const ie = { class: "flex flex-col gap-8" }, se = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as
|
|
1
|
+
import { defineComponent as D, ref as S, computed as E, onMounted as U, resolveComponent as i, openBlock as m, createElementBlock as _, Fragment as x, createVNode as c, unref as t, createElementVNode as n, withCtx as h, renderList as j, createBlock as w, resolveDynamicComponent as M, toDisplayString as p, h as H } from "vue";
|
|
2
2
|
import { _ as q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as z, components as G } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as J, p as Q } from "./loading-
|
|
5
|
-
import { u as W } from "./business-
|
|
6
|
-
import { u as X } from "./campaign-
|
|
7
|
-
import {
|
|
8
|
-
import { u as
|
|
9
|
-
import { _ as
|
|
10
|
-
import { _ as
|
|
11
|
-
import { u as
|
|
12
|
-
import { c as g } from "./index-
|
|
13
|
-
const
|
|
4
|
+
import { u as J, p as Q } from "./loading-LktVwV5k.js";
|
|
5
|
+
import { u as W } from "./business-H9a63ymR.js";
|
|
6
|
+
import { u as X } from "./campaign-CR-16mwD.js";
|
|
7
|
+
import { a as L, b as V, g as Y } from "./dto-BBLfD0Lh.js";
|
|
8
|
+
import { u as Z } from "./vue-i18n-B49HKiTU.js";
|
|
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-BmjXu-U7.js";
|
|
11
|
+
import { u as oe } from "./template-C4Ddrpk1.js";
|
|
12
|
+
import { c as g } from "./index-B5ii6hOh.js";
|
|
13
|
+
const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, re = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, ie = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ue = /* @__PURE__ */ n("img", {
|
|
14
14
|
src: q,
|
|
15
15
|
class: "aspect-square w-[150px]"
|
|
16
|
-
}, null, -1),
|
|
16
|
+
}, null, -1), fe = { class: "flex flex-col gap-16 text-center" }, ye = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = /* @__PURE__ */ D({
|
|
17
17
|
__name: "Experience",
|
|
18
|
-
setup(
|
|
19
|
-
const { t: s } =
|
|
18
|
+
setup(_e) {
|
|
19
|
+
const { t: s } = Z(), I = {
|
|
20
20
|
label: s("connect.program.common.actions.create", {
|
|
21
21
|
type: s("connect.program.experience.title").toLowerCase()
|
|
22
22
|
}),
|
|
23
23
|
value: "create",
|
|
24
24
|
isPrimary: !0,
|
|
25
25
|
prependIcon: "add"
|
|
26
|
-
}, P =
|
|
26
|
+
}, P = oe("POINT", z()), B = W(), l = X(), { global: T, minor: v } = J, r = S({
|
|
27
27
|
searchKey: "",
|
|
28
28
|
location: null
|
|
29
29
|
}), f = E(
|
|
@@ -37,6 +37,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
39
|
header: "Status",
|
|
40
|
+
accessorFn: (e) => Y(e),
|
|
40
41
|
cell(e) {
|
|
41
42
|
return L(e.row.original);
|
|
42
43
|
}
|
|
@@ -72,16 +73,16 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
72
73
|
);
|
|
73
74
|
}
|
|
74
75
|
async function y(e) {
|
|
75
|
-
e ? await a() : P.open(async (
|
|
76
|
-
await a(
|
|
76
|
+
e ? await a() : P.open(async (d) => {
|
|
77
|
+
await a(d);
|
|
77
78
|
});
|
|
78
|
-
async function a(
|
|
79
|
+
async function a(d) {
|
|
79
80
|
var u;
|
|
80
81
|
(u = b.value) == null || u.showSheet(
|
|
81
82
|
!0,
|
|
82
83
|
"POINT",
|
|
83
84
|
e ? await g.readById(e._id) : void 0,
|
|
84
|
-
|
|
85
|
+
d
|
|
85
86
|
);
|
|
86
87
|
}
|
|
87
88
|
}
|
|
@@ -106,14 +107,14 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
106
107
|
await l.read("POINT");
|
|
107
108
|
});
|
|
108
109
|
}), (e, a) => {
|
|
109
|
-
const
|
|
110
|
+
const d = i("FmPageHead"), u = i("FmSearch"), R = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), O = i("FmList"), A = i("FmCard");
|
|
110
111
|
return m(), _(x, null, [
|
|
111
|
-
c(
|
|
112
|
+
c(d, {
|
|
112
113
|
title: t(s)("connect.program.experience.title"),
|
|
113
114
|
actions: t(f).length > 0 ? [I] : [],
|
|
114
115
|
"onClick:action": a[0] || (a[0] = () => y())
|
|
115
116
|
}, null, 8, ["title", "actions"]),
|
|
116
|
-
n("div",
|
|
117
|
+
n("div", ae, [
|
|
117
118
|
c(u, {
|
|
118
119
|
modelValue: t(r).searchKey,
|
|
119
120
|
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(r).searchKey = o),
|
|
@@ -122,9 +123,9 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
122
123
|
collapsible: ""
|
|
123
124
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
124
125
|
t(l).campaigns.experience && t(l).campaigns.experience.length > 0 ? (m(), _(x, { key: 0 }, [
|
|
125
|
-
n("div",
|
|
126
|
-
n("div",
|
|
127
|
-
c(
|
|
126
|
+
n("div", ne, [
|
|
127
|
+
n("div", se, [
|
|
128
|
+
c(ee, {
|
|
128
129
|
modelValue: t(r).location,
|
|
129
130
|
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(r).location = o),
|
|
130
131
|
label: "Location: ",
|
|
@@ -161,16 +162,16 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
161
162
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
162
163
|
}, {
|
|
163
164
|
default: h(() => [
|
|
164
|
-
n("div",
|
|
165
|
-
n("div",
|
|
165
|
+
n("div", re, [
|
|
166
|
+
n("div", ce, [
|
|
166
167
|
(m(), w(M(t(L)(o)))),
|
|
167
|
-
n("div",
|
|
168
|
+
n("div", ie, p(o.currentReceive ?? 0) + " used ", 1)
|
|
168
169
|
]),
|
|
169
|
-
n("div",
|
|
170
|
-
n("div",
|
|
171
|
-
n("div",
|
|
170
|
+
n("div", le, [
|
|
171
|
+
n("div", me, p(o.name), 1),
|
|
172
|
+
n("div", pe, p(t(V)(o)), 1)
|
|
172
173
|
]),
|
|
173
|
-
n("div", de,
|
|
174
|
+
n("div", de, p(t(s)("program.experience.received", {
|
|
174
175
|
count: o.currentReceive ?? 0
|
|
175
176
|
})), 1)
|
|
176
177
|
]),
|
|
@@ -192,10 +193,10 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
192
193
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
193
194
|
}, {
|
|
194
195
|
default: h(() => [
|
|
195
|
-
|
|
196
|
-
n("div",
|
|
197
|
-
n("div",
|
|
198
|
-
n("div",
|
|
196
|
+
ue,
|
|
197
|
+
n("div", fe, [
|
|
198
|
+
n("div", ye, p(t(s)("connect.program.experience.empty_state.title")), 1),
|
|
199
|
+
n("div", ge, p(t(s)("connect.program.experience.empty_state.description")), 1)
|
|
199
200
|
]),
|
|
200
201
|
c(F, {
|
|
201
202
|
variant: "primary",
|
|
@@ -206,7 +207,7 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
206
207
|
]),
|
|
207
208
|
_: 1
|
|
208
209
|
})),
|
|
209
|
-
c(
|
|
210
|
+
c(te, {
|
|
210
211
|
ref_key: "sheetRef",
|
|
211
212
|
ref: b,
|
|
212
213
|
"onSubmit:modelValue": N
|
|
@@ -217,5 +218,5 @@ const oe = { class: "px-24 flex flex-col gap-y-16" }, ae = { class: "flex items-
|
|
|
217
218
|
}
|
|
218
219
|
});
|
|
219
220
|
export {
|
|
220
|
-
|
|
221
|
+
Pe as default
|
|
221
222
|
};
|