@feedmepos/mf-connect 0.1.47-prod → 0.1.48-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-AnuRQDA4.js → Analytic-DrjBaKmx.js} +113 -113
- package/dist/{App-DP_jCyej.js → App-eIaytGsZ.js} +632 -622
- package/dist/{Bin-tL4lF6PB.js → Bin-CVp0eFwl.js} +9 -9
- package/dist/{Broadcast-T2a5tN8R.js → Broadcast-DBgBT6yz.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BgPJCH02.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CugJWeBo.js} +18 -18
- package/dist/{Card-Bi-ODgCc.js → Card-DkP6oJVn.js} +239 -239
- package/dist/{Collections-JHWotZ1I.js → Collections-DYb_aeTW.js} +31 -31
- package/dist/{Credit-DQQCXqS0.js → Credit-WVv_PL5D.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-hxuYl-OQ.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js} +756 -753
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-ECkaQxuI.js → EffectSheet.vue_vue_type_style_index_0_lang-DT3y4k1C.js} +96 -96
- package/dist/{Experience-DzTV21vX.js → Experience-BdH44wBG.js} +41 -41
- package/dist/{Game-DUCx2Dl9.js → Game-C7jxRESY.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js +144 -0
- package/dist/{Index-zynxjOOr.js → Index-DYr1p4sh.js} +54 -54
- package/dist/{Marketing-BBHDVRkR.js → Marketing-Djl27fez.js} +24 -24
- package/dist/{Member-B09bj6C3.js → Member-CWXedfTG.js} +63 -63
- package/dist/MemberList-C2TvGi22.js +1606 -0
- package/dist/MemberOverview-wL_ailso.js +58 -0
- package/dist/{MemberTransactions-DERMSs7o.js → MemberTransactions-BSUocGg9.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CAADF6vv.js → MessageInput.vue_vue_type_script_setup_true_lang-D8xPA6jM.js} +2286 -2220
- package/dist/{Mission-DAv0e_ZH.js → Mission-BVx9Cqi5.js} +20 -20
- package/dist/{Overview-D0rBTEtP.js → Overview-DyXF9zfB.js} +337 -337
- package/dist/{Point-BeBYi1BT.js → Point-ovkgTwZO.js} +41 -41
- package/dist/{Promotion-BSPU5hP9.js → Promotion-B0Q6GItP.js} +42 -42
- package/dist/{Queue-C5IFJ3iE.js → Queue-BAWG1Hh-.js} +12 -12
- package/dist/{Record-CoFSrv7j.js → Record-CTp80g4A.js} +10 -10
- package/dist/{Reward-COIOBOl-.js → Reward-_Jow1lJ7.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B9Tl7hqv.js → RewardGroup.vue_vue_type_script_setup_true_lang-BV8xCejA.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BzsYC3k2.js → RuleGroup.vue_vue_type_script_setup_true_lang-DkDAuGY0.js} +381 -381
- package/dist/{Segment-DF5SrucQ.js → Segment-CsdJ1SjK.js} +327 -327
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BSSfQu3F.js → SelectItems.vue_vue_type_script_setup_true_lang-DH3oIm2t.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DoL_gTKy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DvVrjpxR.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cijyol1Q.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D5gV89Xk.js} +3 -3
- package/dist/Setting-BZRA50LO.js +1936 -0
- package/dist/{Store-E2_0EIy8.js → Store-CFnCN_7-.js} +238 -238
- package/dist/StoreRewards-B_McpBz-.js +423 -0
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DuatzcJ8.js → StoreTransactions.vue_vue_type_script_setup_true_lang-vL0vr-Xn.js} +185 -185
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D_r8I0h7.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-C1ZlLdme.js} +1 -1
- package/dist/{Tier-CEEHsXkC.js → Tier-CCYFu6kJ.js} +106 -106
- package/dist/{Title-BMAWlGeW.js → Title-7Mg-Ml4z.js} +95 -95
- package/dist/{Transaction-CLsceq-O.js → Transaction-BqZrbpZi.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CFLekn9O.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-C6ZwPUD4.js} +6 -6
- package/dist/{Voucher-Cd293WYY.js → Voucher-Yty_7SuS.js} +36 -36
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Bt12t3gB.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B8HHh8HU.js → ZodTextField.vue_vue_type_script_setup_true_lang-C3NHrEIl.js} +1 -1
- package/dist/{app-aVXsWATU.js → app-2EJP4psh.js} +31 -31
- package/dist/app-Dzon--6x.js +57962 -0
- package/dist/app.js +1 -1
- package/dist/{business-DVlHPzaL.js → business-BehG4fR2.js} +1 -1
- package/dist/{campaign-l-u9A514.js → campaign-BpaiTG4f.js} +10 -10
- package/dist/{campaign-D9KeUWA7.js → campaign-CAcP56Sz.js} +2 -2
- package/dist/{campaign.enum-Cud82tES.js → campaign.enum-BWjI8Hop.js} +1 -1
- package/dist/{campaign.fn-C-UojhHv.js → campaign.fn-PVdB1-V1.js} +166 -166
- package/dist/{collectible.enum-PrlUDScv.js → collectible.enum-BYmuqayi.js} +1 -1
- package/dist/{collection.fn-yR-xnV4g.js → collection.fn-CbH8hbWW.js} +2 -2
- package/dist/{dto-Cua1OHMY.js → dto-Dd3Oc4QO.js} +4 -4
- package/dist/{effect-B5-eXNEr.js → effect-DvEQNEl0.js} +1 -1
- package/dist/{email-addresses-BeYh5fr5.js → email-addresses-C-9JrAi8.js} +1 -1
- package/dist/{export-BUF4_DUz.js → export-RWE9Cn-d.js} +4 -4
- package/dist/{helper-CGwOThAl.js → helper-Bl6LdWED.js} +1 -1
- package/dist/{index-Cl2iYM2F.js → index-1bU9cLqV.js} +1 -1
- package/dist/{index-1BGPM6Uy.js → index-BCQMVr1J.js} +1 -1
- package/dist/{index-BmL_b0IR.js → index-Bgnrbk5x.js} +1 -1
- package/dist/{index-knuJv0ti.js → index-Bjf5Z2QE.js} +4 -4
- package/dist/{index-ng2IXlL1.js → index-CFW9ogow.js} +1 -1
- package/dist/{index-DNTd-FNx.js → index-CfgczUMX.js} +2 -2
- package/dist/{index-C-d_4n-1.js → index-CzCqc7ph.js} +1 -1
- package/dist/{index-aMDi62-C.js → index-DX1X6Owa.js} +1 -1
- package/dist/{index-DlFVLRKG.js → index-DZN5WWgq.js} +3 -3
- package/dist/{index-D5KIp8ZB.js → index-DhUvELhc.js} +3 -3
- package/dist/{index-Cx8-ipee.js → index-DpoNuVc-.js} +6 -6
- package/dist/{index-BLdVWQId.js → index-G_XSbrXB.js} +3 -3
- package/dist/{index-hX2mE0gQ.js → index-VVy4GPzJ.js} +1 -1
- package/dist/{index-CB8iWT_p.js → index-wOExBjGo.js} +1 -1
- package/dist/{index.esm2017-D8stWFci.js → index.esm2017-DfgZFSqe.js} +1 -1
- package/dist/{loading-c4b7n9Xp.js → loading-qlqqYGF3.js} +1 -1
- package/dist/{membership-oBIs4sbL.js → membership-Bh_1iu5v.js} +3 -3
- package/dist/{moment-BWErdI6_.js → moment-D7p2TMB-.js} +6 -1
- package/dist/{money-AP24H0gk.js → money-DvTB_Fek.js} +1 -1
- package/dist/{number-CwsAYC_2.js → number-DJQ3gi1P.js} +1 -1
- package/dist/objectid-BKU0cEuv.js +145 -0
- package/dist/{plugins-Dn7JDHi7.js → plugins-DJpBrPbQ.js} +2 -2
- package/dist/{reward-4wdoZeXw.js → reward-DZ4KlN9B.js} +1 -1
- package/dist/{rule-_OJza6tn.js → rule-DV0yCGlq.js} +4 -4
- package/dist/{rule-builder-DmlhHAED.js → rule-builder-D6ihVPNO.js} +1 -1
- package/dist/{template-BSQLFHf4.js → template-ElP-JIFL.js} +63 -63
- package/dist/timezone-FaHjut_D.js +1150 -0
- package/dist/{trigger-DC9tDnI2.js → trigger-D8wnJVTA.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-CCVOptFD.js → user-NWV9KppR.js} +1 -1
- package/dist/{vue-i18n--_Wu1nMj.js → vue-i18n-CkbS-IDD.js} +112 -112
- package/dist/{xlsx-BVMaOi8M.js → xlsx-CdQE5RZi.js} +226 -226
- package/package.json +5 -4
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +0 -144
- package/dist/MemberList-DLSLGQ02.js +0 -1606
- package/dist/MemberOverview-C2n9oJZh.js +0 -58
- package/dist/Setting-Dt0sG_hk.js +0 -1936
- package/dist/StoreRewards-DuSsWnTE.js +0 -423
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-Qc5cCqh5.js +0 -419
- package/dist/app-jRT7vsk_.js +0 -33357
- package/dist/objectid-CVDLTdni.js +0 -145
- package/dist/usePagination-JoYaROkV.js +0 -223
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as P, ref as
|
|
2
|
-
import { z as te } from "./app-
|
|
1
|
+
import { defineComponent as P, ref as O, onMounted as Q, computed as H, resolveComponent as y, openBlock as s, createElementBlock as x, renderSlot as W, toDisplayString as w, 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 R, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
+
import { z as te } from "./app-2EJP4psh.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
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import {
|
|
4
|
+
import { f as le, g as oe } from "./index-CfgczUMX.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-CkbS-IDD.js";
|
|
6
|
+
import { s as C } from "./effect-DvEQNEl0.js";
|
|
7
|
+
import { p as ae } from "./plugins-DJpBrPbQ.js";
|
|
8
|
+
import { e as ne } from "./app-Dzon--6x.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"
|
|
@@ -39,58 +39,58 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
emits: ["update:model-value"],
|
|
42
|
-
setup(t, { emit:
|
|
42
|
+
setup(t, { emit: g }) {
|
|
43
43
|
var A, B;
|
|
44
|
-
const { t:
|
|
45
|
-
{ label:
|
|
46
|
-
{ label:
|
|
47
|
-
],
|
|
44
|
+
const { t: d } = Z(), l = t, S = g, o = [
|
|
45
|
+
{ label: d("connect.template.validity_option.date_range"), value: "range" },
|
|
46
|
+
{ label: d("connect.template.validity_option.custom"), value: "custom" }
|
|
47
|
+
], a = O(!1);
|
|
48
48
|
Q(() => {
|
|
49
|
-
|
|
49
|
+
a.value = l.modelValue && Object.entries(l.modelValue).filter(
|
|
50
50
|
([p, r]) => p != "followFirstReceive" && r != null
|
|
51
51
|
).length > 0;
|
|
52
52
|
});
|
|
53
|
-
const
|
|
53
|
+
const n = O(
|
|
54
54
|
l.type ? o.find((p) => p.value === l.type) : (A = l.modelValue) != null && A.validBefore || (B = l.modelValue) != null && B.validAfter ? o[0] : o[1]
|
|
55
|
-
),
|
|
55
|
+
), h = H(
|
|
56
56
|
() => l.forCredit ? le : oe
|
|
57
57
|
), m = H(() => {
|
|
58
|
-
const p =
|
|
58
|
+
const p = h.value.safeParse(l.modelValue);
|
|
59
59
|
return p.success ? [] : p.error.errors;
|
|
60
60
|
});
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function i(p) {
|
|
62
|
+
S("update:model-value", p);
|
|
63
63
|
}
|
|
64
64
|
function k(p) {
|
|
65
65
|
var r, D;
|
|
66
66
|
if (p.value == "range")
|
|
67
|
-
return
|
|
67
|
+
return i({
|
|
68
68
|
followFirstReceive: (r = l.modelValue) == null ? void 0 : r.followFirstReceive,
|
|
69
69
|
validAfter: void 0,
|
|
70
70
|
validBefore: void 0
|
|
71
71
|
});
|
|
72
72
|
if (p.value == "custom")
|
|
73
|
-
return
|
|
73
|
+
return a.value = !1, i({
|
|
74
74
|
validForDay: (D = l.modelValue) == null ? void 0 : D.validForDay
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
return (p, r) => {
|
|
78
78
|
var I, $, j, E, M, N, L, z;
|
|
79
79
|
const D = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), T = y("FmHelperText");
|
|
80
|
-
return
|
|
80
|
+
return s(), x("div", ie, [
|
|
81
81
|
W(p.$slots, "label", {}, () => [
|
|
82
|
-
t.label ? (
|
|
82
|
+
t.label ? (s(), x("div", se, w(t.label), 1)) : v("", !0)
|
|
83
83
|
]),
|
|
84
|
-
t.type ? v("", !0) : (
|
|
84
|
+
t.type ? v("", !0) : (s(), f(D, {
|
|
85
85
|
key: 0,
|
|
86
|
-
modelValue: e(
|
|
86
|
+
modelValue: e(n),
|
|
87
87
|
"onUpdate:modelValue": [
|
|
88
|
-
r[0] || (r[0] = (c) => q(
|
|
88
|
+
r[0] || (r[0] = (c) => q(n) ? n.value = c : null),
|
|
89
89
|
r[1] || (r[1] = (c) => k(c))
|
|
90
90
|
],
|
|
91
91
|
items: o
|
|
92
92
|
}, null, 8, ["modelValue"])),
|
|
93
|
-
e(
|
|
93
|
+
e(n).value === "range" ? (s(), x("div", de, [
|
|
94
94
|
b(Y, {
|
|
95
95
|
"model-value": {
|
|
96
96
|
startDate: (I = t.modelValue) != null && I.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
|
|
@@ -98,59 +98,59 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
98
98
|
},
|
|
99
99
|
"onUpdate:modelValue": r[2] || (r[2] = (c) => {
|
|
100
100
|
var V;
|
|
101
|
-
|
|
101
|
+
i({
|
|
102
102
|
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive,
|
|
103
103
|
validAfter: new Date(c.startDate).toISOString(),
|
|
104
104
|
validBefore: new Date(c.endDate).toISOString()
|
|
105
105
|
});
|
|
106
106
|
})
|
|
107
107
|
}, null, 8, ["model-value"])
|
|
108
|
-
])) : e(
|
|
108
|
+
])) : e(n).value === "custom" ? (s(), x("div", me, [
|
|
109
109
|
b(J, {
|
|
110
|
-
"model-value": e(
|
|
111
|
-
label: e(
|
|
110
|
+
"model-value": e(a),
|
|
111
|
+
label: e(d)("connect.template.validity_option.expire"),
|
|
112
112
|
"label-placement": "right",
|
|
113
113
|
"onUpdate:modelValue": r[3] || (r[3] = (c) => {
|
|
114
114
|
var V;
|
|
115
|
-
|
|
115
|
+
a.value = c, i({
|
|
116
116
|
validForDay: c ? 1 : void 0,
|
|
117
117
|
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
|
|
118
118
|
});
|
|
119
119
|
})
|
|
120
120
|
}, null, 8, ["model-value", "label"]),
|
|
121
|
-
e(
|
|
121
|
+
e(a) ? (s(), f(K, {
|
|
122
122
|
key: 0,
|
|
123
|
-
label: e(
|
|
123
|
+
label: e(d)("connect.template.validity_option.after_day"),
|
|
124
124
|
class: G([{
|
|
125
|
-
"opacity-50 pointer-events-none": !e(
|
|
125
|
+
"opacity-50 pointer-events-none": !e(a)
|
|
126
126
|
}, "mt-[-4px]"]),
|
|
127
127
|
"max-fraction-digits": 0,
|
|
128
|
-
disabled: !e(
|
|
128
|
+
disabled: !e(a),
|
|
129
129
|
"show-steppers": !1,
|
|
130
130
|
max: 99999,
|
|
131
|
-
"append-text": e(
|
|
131
|
+
"append-text": e(d)("connect.template.validity_option.days"),
|
|
132
132
|
"model-value": ((M = l.modelValue) == null ? void 0 : M.validForDay) ?? null,
|
|
133
133
|
"onUpdate:modelValue": r[4] || (r[4] = (c) => {
|
|
134
134
|
var V;
|
|
135
|
-
return
|
|
135
|
+
return i({
|
|
136
136
|
validForDay: c == null ? void 0 : parseInt(c.toString()),
|
|
137
137
|
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
|
|
138
138
|
});
|
|
139
139
|
})
|
|
140
140
|
}, null, 8, ["label", "class", "disabled", "append-text", "model-value"])) : v("", !0)
|
|
141
141
|
])) : v("", !0),
|
|
142
|
-
((N = l.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(
|
|
142
|
+
((N = l.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(a) ? (s(), f(T, {
|
|
143
143
|
key: 3,
|
|
144
|
-
text: e(
|
|
144
|
+
text: e(d)("connect.template.validity_option.expire_follow_first_receive")
|
|
145
145
|
}, null, 8, ["text"])) : v("", !0),
|
|
146
146
|
b(T, {
|
|
147
|
-
text: t.helperText || (((L = l.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(
|
|
147
|
+
text: t.helperText || (((L = l.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(d)("connect.template.validity_option.expires_on_same_day") : e(u).helperText(e(m), "")),
|
|
148
148
|
state: t.helperText ? "error" : ((z = l.modelValue) == null ? void 0 : z.validForDay) === 0 ? "warning" : e(u).helperState(e(m), "")
|
|
149
149
|
}, null, 8, ["text", "state"])
|
|
150
150
|
]);
|
|
151
151
|
};
|
|
152
152
|
}
|
|
153
|
-
}), ue = { class: "space-y-8" },
|
|
153
|
+
}), ue = { class: "space-y-8" }, he = /* @__PURE__ */ P({
|
|
154
154
|
__name: "CollectibleOptionInput",
|
|
155
155
|
props: {
|
|
156
156
|
modelValue: {
|
|
@@ -169,89 +169,89 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
169
169
|
}
|
|
170
170
|
},
|
|
171
171
|
emits: ["update:model-value"],
|
|
172
|
-
setup(t, { emit:
|
|
173
|
-
const { t:
|
|
174
|
-
return X(o, () =>
|
|
175
|
-
const
|
|
176
|
-
return
|
|
177
|
-
t.isMission ? v("", !0) : (
|
|
172
|
+
setup(t, { emit: g }) {
|
|
173
|
+
const { t: d } = Z(), l = t, S = g, o = O(l.modelValue ?? {});
|
|
174
|
+
return X(o, () => S("update:model-value", o.value)), (a, n) => {
|
|
175
|
+
const h = y("FmSwitch"), m = y("FmStepperField");
|
|
176
|
+
return s(), x("div", ue, [
|
|
177
|
+
t.isMission ? v("", !0) : (s(), f(h, {
|
|
178
178
|
key: 0,
|
|
179
|
-
label: e(
|
|
179
|
+
label: e(d)("connect.template.enable_transfer"),
|
|
180
180
|
"label-placement": "right",
|
|
181
181
|
modelValue: e(o).enableTransfer,
|
|
182
|
-
"onUpdate:modelValue":
|
|
182
|
+
"onUpdate:modelValue": n[0] || (n[0] = (i) => e(o).enableTransfer = i)
|
|
183
183
|
}, null, 8, ["label", "modelValue"])),
|
|
184
|
-
t.noCampaign ? v("", !0) : (
|
|
184
|
+
t.noCampaign ? v("", !0) : (s(), x("div", {
|
|
185
185
|
key: 1,
|
|
186
186
|
class: G(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
|
|
187
187
|
}, [
|
|
188
188
|
b(m, {
|
|
189
189
|
modelValue: e(o).maxPerUser,
|
|
190
|
-
"onUpdate:modelValue":
|
|
190
|
+
"onUpdate:modelValue": n[1] || (n[1] = (i) => e(o).maxPerUser = i),
|
|
191
191
|
"show-steppers": !1,
|
|
192
192
|
rules: [e(u).ruleAtPath(t.schema, "maxPerUser")],
|
|
193
|
-
"helper-text": e(
|
|
193
|
+
"helper-text": e(d)("connect.template.leave_empty_unlimited")
|
|
194
194
|
}, {
|
|
195
195
|
label: F(() => [
|
|
196
|
-
(
|
|
196
|
+
(s(), f(R(
|
|
197
197
|
e(u).toInputLabel(
|
|
198
198
|
e(u).typeAtPath(t.schema, "maxPerUser"),
|
|
199
|
-
e(
|
|
199
|
+
e(d)("connect.template.max_per_user")
|
|
200
200
|
)
|
|
201
201
|
)))
|
|
202
202
|
]),
|
|
203
203
|
_: 1
|
|
204
204
|
}, 8, ["modelValue", "rules", "helper-text"]),
|
|
205
|
-
t.isMission ? v("", !0) : (
|
|
205
|
+
t.isMission ? v("", !0) : (s(), f(m, {
|
|
206
206
|
key: 0,
|
|
207
207
|
modelValue: e(o).maxReceive,
|
|
208
|
-
"onUpdate:modelValue":
|
|
208
|
+
"onUpdate:modelValue": n[2] || (n[2] = (i) => e(o).maxReceive = i),
|
|
209
209
|
"show-steppers": !1,
|
|
210
210
|
rules: [e(u).ruleAtPath(t.schema, "maxReceive")],
|
|
211
|
-
"helper-text": e(
|
|
211
|
+
"helper-text": e(d)("connect.template.leave_empty_unlimited")
|
|
212
212
|
}, {
|
|
213
213
|
label: F(() => [
|
|
214
|
-
(
|
|
214
|
+
(s(), f(R(
|
|
215
215
|
e(u).toInputLabel(
|
|
216
216
|
e(u).typeAtPath(t.schema, "maxReceive"),
|
|
217
|
-
e(
|
|
217
|
+
e(d)("connect.template.max_distribute")
|
|
218
218
|
)
|
|
219
219
|
)))
|
|
220
220
|
]),
|
|
221
221
|
_: 1
|
|
222
222
|
}, 8, ["modelValue", "rules", "helper-text"]))
|
|
223
223
|
], 2)),
|
|
224
|
-
t.isMission ? v("", !0) : (
|
|
224
|
+
t.isMission ? v("", !0) : (s(), x(_, { key: 2 }, [
|
|
225
225
|
b(m, {
|
|
226
226
|
modelValue: e(o).maxUse,
|
|
227
|
-
"onUpdate:modelValue":
|
|
227
|
+
"onUpdate:modelValue": n[3] || (n[3] = (i) => e(o).maxUse = i),
|
|
228
228
|
"append-text": "use(s)",
|
|
229
229
|
"show-steppers": !1,
|
|
230
230
|
rules: [e(u).ruleAtPath(t.schema, "maxUse")]
|
|
231
231
|
}, {
|
|
232
232
|
label: F(() => [
|
|
233
|
-
(
|
|
233
|
+
(s(), f(R(
|
|
234
234
|
e(u).toInputLabel(
|
|
235
235
|
e(u).typeAtPath(t.schema, "maxUse"),
|
|
236
|
-
e(
|
|
236
|
+
e(d)("connect.template.usage_count")
|
|
237
237
|
)
|
|
238
238
|
)))
|
|
239
239
|
]),
|
|
240
240
|
_: 1
|
|
241
241
|
}, 8, ["modelValue", "rules"]),
|
|
242
|
-
e(o).maxUse && e(o).maxUse > 1 ? (
|
|
242
|
+
e(o).maxUse && e(o).maxUse > 1 ? (s(), f(m, {
|
|
243
243
|
key: 0,
|
|
244
244
|
modelValue: e(o).cooldown,
|
|
245
|
-
"onUpdate:modelValue":
|
|
245
|
+
"onUpdate:modelValue": n[4] || (n[4] = (i) => e(o).cooldown = i),
|
|
246
246
|
"append-text": "minute(s)",
|
|
247
247
|
"show-steppers": !1,
|
|
248
248
|
rules: [e(u).ruleAtPath(t.schema, "cooldown")]
|
|
249
249
|
}, {
|
|
250
250
|
label: F(() => [
|
|
251
|
-
(
|
|
251
|
+
(s(), f(R(
|
|
252
252
|
e(u).toInputLabel(
|
|
253
253
|
e(u).typeAtPath(t.schema, "cooldown"),
|
|
254
|
-
e(
|
|
254
|
+
e(d)("connect.template.cooldown")
|
|
255
255
|
)
|
|
256
256
|
)))
|
|
257
257
|
]),
|
|
@@ -259,17 +259,17 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
259
259
|
}, 8, ["modelValue", "rules"])) : v("", !0),
|
|
260
260
|
b(re, {
|
|
261
261
|
modelValue: e(o).validityOption,
|
|
262
|
-
"onUpdate:modelValue":
|
|
263
|
-
label: e(
|
|
262
|
+
"onUpdate:modelValue": n[5] || (n[5] = (i) => e(o).validityOption = i),
|
|
263
|
+
label: e(d)("connect.template.validity_option.title")
|
|
264
264
|
}, null, 8, ["modelValue", "label"])
|
|
265
265
|
], 64))
|
|
266
266
|
]);
|
|
267
267
|
};
|
|
268
268
|
}
|
|
269
|
-
}), pe = { class: "space-y-8" }, ce =
|
|
269
|
+
}), pe = { class: "space-y-8" }, ce = {
|
|
270
270
|
key: 1,
|
|
271
271
|
class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
|
|
272
|
-
},
|
|
272
|
+
}, fe = { class: "fm-typo-en-body-lg-400" }, ve = { class: "text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ P({
|
|
273
273
|
__name: "EffectSheet",
|
|
274
274
|
props: {
|
|
275
275
|
modelValue: { type: Object },
|
|
@@ -278,39 +278,39 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
278
278
|
}
|
|
279
279
|
},
|
|
280
280
|
emits: ["update:model-value"],
|
|
281
|
-
setup(t, { emit:
|
|
282
|
-
const
|
|
283
|
-
async function
|
|
284
|
-
o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") &&
|
|
281
|
+
setup(t, { emit: g }) {
|
|
282
|
+
const d = g, l = O(!1);
|
|
283
|
+
async function S(o) {
|
|
284
|
+
o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && d("update:model-value", null);
|
|
285
285
|
}
|
|
286
|
-
return (o,
|
|
287
|
-
const
|
|
288
|
-
return
|
|
286
|
+
return (o, a) => {
|
|
287
|
+
const n = y("FmButton"), h = y("FmSideSheet");
|
|
288
|
+
return s(), f(h, {
|
|
289
289
|
"max-width": 550,
|
|
290
290
|
header: "Apply discount",
|
|
291
291
|
modelValue: e(l),
|
|
292
292
|
"onUpdate:modelValue": [
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
a[2] || (a[2] = (m) => q(l) ? l.value = m : null),
|
|
294
|
+
a[3] || (a[3] = (m) => l.value = m)
|
|
295
295
|
]
|
|
296
296
|
}, {
|
|
297
297
|
"side-sheet-button": F(() => {
|
|
298
|
-
var m,
|
|
298
|
+
var m, i, k, A;
|
|
299
299
|
return [
|
|
300
300
|
U("div", pe, [
|
|
301
|
-
|
|
302
|
-
t.modelValue ? (
|
|
303
|
-
U("div",
|
|
304
|
-
U("div", null, w((m = e(
|
|
305
|
-
U("div",
|
|
301
|
+
a[4] || (a[4] = U("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1)),
|
|
302
|
+
t.modelValue ? (s(), x("div", ce, [
|
|
303
|
+
U("div", fe, [
|
|
304
|
+
U("div", null, w((m = e(C)(t.modelValue)) == null ? void 0 : m.type), 1),
|
|
305
|
+
U("div", ve, w((i = e(C)(t.modelValue)) == null ? void 0 : i.adjustment) + " with " + w((k = e(C)(t.modelValue)) == null ? void 0 : k.requirements) + " " + w((A = e(C)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
|
|
306
306
|
]),
|
|
307
|
-
b(
|
|
307
|
+
b(n, {
|
|
308
308
|
icon: "delete",
|
|
309
309
|
"icon-color": "neutral-gray-400",
|
|
310
310
|
variant: "tertiary",
|
|
311
|
-
onClick:
|
|
311
|
+
onClick: S
|
|
312
312
|
})
|
|
313
|
-
])) : (
|
|
313
|
+
])) : (s(), f(n, {
|
|
314
314
|
key: 0,
|
|
315
315
|
label: "Apply discount",
|
|
316
316
|
icon: "add",
|
|
@@ -321,9 +321,9 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
321
321
|
])
|
|
322
322
|
];
|
|
323
323
|
}),
|
|
324
|
-
"side-sheet-footer": F(() => [
|
|
325
|
-
ee(w(void 0))
|
|
326
|
-
]),
|
|
324
|
+
"side-sheet-footer": F(() => [...a[5] || (a[5] = [
|
|
325
|
+
ee(w(void 0), -1)
|
|
326
|
+
])]),
|
|
327
327
|
default: F(() => [
|
|
328
328
|
b(e(ne), {
|
|
329
329
|
class: "fm-effect-sheet",
|
|
@@ -331,8 +331,8 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
331
331
|
"can-set-auto-apply": t.canSetAutoApply,
|
|
332
332
|
"disable-effects": t.canSetAutoApply ? ["PAYMENT"] : void 0,
|
|
333
333
|
"initial-value": t.modelValue,
|
|
334
|
-
onOnConfirm:
|
|
335
|
-
onOnCancel:
|
|
334
|
+
onOnConfirm: a[0] || (a[0] = (m) => (d("update:model-value", m), l.value = !1)),
|
|
335
|
+
onOnCancel: a[1] || (a[1] = (m) => l.value = !1)
|
|
336
336
|
}, null, 8, ["can-set-auto-apply", "disable-effects", "initial-value"])
|
|
337
337
|
]),
|
|
338
338
|
_: 1
|
|
@@ -341,7 +341,7 @@ const ie = { class: "flex flex-col gap-8" }, se = {
|
|
|
341
341
|
}
|
|
342
342
|
});
|
|
343
343
|
export {
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
Ae as _,
|
|
345
|
+
he as a,
|
|
346
346
|
re as b
|
|
347
347
|
};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
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 { p as J } from "./plugins-
|
|
5
|
-
import { u as Q } from "./loading-
|
|
6
|
-
import { u as W } from "./business-
|
|
7
|
-
import { u as X } from "./campaign-
|
|
8
|
-
import { a as L, b as V, g as Y } from "./campaign-
|
|
9
|
-
import { u as Z } from "./vue-i18n
|
|
4
|
+
import { p as J } from "./plugins-DJpBrPbQ.js";
|
|
5
|
+
import { u as Q } from "./loading-qlqqYGF3.js";
|
|
6
|
+
import { u as W } from "./business-BehG4fR2.js";
|
|
7
|
+
import { u as X } from "./campaign-CAcP56Sz.js";
|
|
8
|
+
import { a as L, b as V, g as Y } from "./campaign-BpaiTG4f.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-CkbS-IDD.js";
|
|
10
10
|
import { _ as ee } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
11
|
-
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as oe } from "./template-
|
|
13
|
-
import { c as g } from "./index-
|
|
14
|
-
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__ */
|
|
15
|
-
src: q,
|
|
16
|
-
class: "aspect-square w-[150px]"
|
|
17
|
-
}, 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" }, Be = /* @__PURE__ */ D({
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Dt9c2kvf.js";
|
|
12
|
+
import { u as oe } from "./template-ElP-JIFL.js";
|
|
13
|
+
import { c as g } from "./index-BCQMVr1J.js";
|
|
14
|
+
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 = { class: "flex flex-col gap-16 text-center" }, fe = { class: "fm-typo-en-title-sm-800" }, ye = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = /* @__PURE__ */ D({
|
|
18
15
|
__name: "Experience",
|
|
19
|
-
setup(
|
|
16
|
+
setup(ge) {
|
|
20
17
|
const { t: s } = Z(), I = {
|
|
21
18
|
label: s("connect.program.common.actions.create", {
|
|
22
19
|
type: s("connect.program.experience.title").toLowerCase()
|
|
@@ -55,8 +52,8 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
55
52
|
variant: "tertiary",
|
|
56
53
|
icon: "delete",
|
|
57
54
|
iconColor: "neutral-gray-400",
|
|
58
|
-
onClick: (
|
|
59
|
-
|
|
55
|
+
onClick: (o) => {
|
|
56
|
+
o.stopPropagation(), C(e.row.original);
|
|
60
57
|
}
|
|
61
58
|
});
|
|
62
59
|
}
|
|
@@ -74,10 +71,10 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
74
71
|
);
|
|
75
72
|
}
|
|
76
73
|
async function y(e) {
|
|
77
|
-
e ? await
|
|
78
|
-
await
|
|
74
|
+
e ? await o() : P.open(async (d) => {
|
|
75
|
+
await o(d);
|
|
79
76
|
});
|
|
80
|
-
async function
|
|
77
|
+
async function o(d) {
|
|
81
78
|
var u;
|
|
82
79
|
(u = b.value) == null || u.showSheet(
|
|
83
80
|
!0,
|
|
@@ -107,18 +104,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
107
104
|
await T(async () => {
|
|
108
105
|
await l.read("POINT");
|
|
109
106
|
});
|
|
110
|
-
}), (e,
|
|
107
|
+
}), (e, o) => {
|
|
111
108
|
const d = i("FmPageHead"), u = i("FmSearch"), R = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), O = i("FmList"), A = i("FmCard");
|
|
112
109
|
return m(), _(x, null, [
|
|
113
110
|
c(d, {
|
|
114
111
|
title: t(s)("connect.program.experience.title"),
|
|
115
112
|
actions: t(f).length > 0 ? [I] : [],
|
|
116
|
-
"onClick:action":
|
|
113
|
+
"onClick:action": o[0] || (o[0] = () => y())
|
|
117
114
|
}, null, 8, ["title", "actions"]),
|
|
118
115
|
n("div", ae, [
|
|
119
116
|
c(u, {
|
|
120
117
|
modelValue: t(r).searchKey,
|
|
121
|
-
"onUpdate:modelValue":
|
|
118
|
+
"onUpdate:modelValue": o[1] || (o[1] = (a) => t(r).searchKey = a),
|
|
122
119
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
123
120
|
placeholder: t(s)("connect.program.common.search"),
|
|
124
121
|
collapsible: ""
|
|
@@ -128,7 +125,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
128
125
|
n("div", se, [
|
|
129
126
|
c(ee, {
|
|
130
127
|
modelValue: t(r).location,
|
|
131
|
-
"onUpdate:modelValue":
|
|
128
|
+
"onUpdate:modelValue": o[2] || (o[2] = (a) => t(r).location = a),
|
|
132
129
|
label: "Location: ",
|
|
133
130
|
"show-item-label": !0,
|
|
134
131
|
icon: "storefront",
|
|
@@ -138,7 +135,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
138
135
|
]),
|
|
139
136
|
c(u, {
|
|
140
137
|
modelValue: t(r).searchKey,
|
|
141
|
-
"onUpdate:modelValue":
|
|
138
|
+
"onUpdate:modelValue": o[3] || (o[3] = (a) => t(r).searchKey = a),
|
|
142
139
|
class: "xs:hidden",
|
|
143
140
|
placeholder: "search",
|
|
144
141
|
collapsible: ""
|
|
@@ -150,37 +147,37 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
150
147
|
"column-defs": K,
|
|
151
148
|
"search-value": t(r).searchKey,
|
|
152
149
|
"column-filter": [],
|
|
153
|
-
onRowClick:
|
|
150
|
+
onRowClick: o[4] || (o[4] = (a) => y(a.original)),
|
|
154
151
|
"hide-footer": t(f).length < 10
|
|
155
152
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
156
153
|
c(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
157
154
|
default: h(() => [
|
|
158
155
|
(m(!0), _(x, null, j(t(f).filter(
|
|
159
|
-
(
|
|
160
|
-
), (
|
|
161
|
-
key:
|
|
162
|
-
onClick: (k) => y(
|
|
156
|
+
(a) => a.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
|
|
157
|
+
), (a) => (m(), w($, {
|
|
158
|
+
key: a._id.toString(),
|
|
159
|
+
onClick: (k) => y(a),
|
|
163
160
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
164
161
|
}, {
|
|
165
162
|
default: h(() => [
|
|
166
163
|
n("div", re, [
|
|
167
164
|
n("div", ce, [
|
|
168
|
-
(m(), w(M(t(L)(
|
|
169
|
-
n("div", ie, p(
|
|
165
|
+
(m(), w(M(t(L)(a)))),
|
|
166
|
+
n("div", ie, p(a.currentReceive ?? 0) + " used ", 1)
|
|
170
167
|
]),
|
|
171
168
|
n("div", le, [
|
|
172
|
-
n("div", me, p(
|
|
173
|
-
n("div", pe, p(t(V)(
|
|
169
|
+
n("div", me, p(a.name), 1),
|
|
170
|
+
n("div", pe, p(t(V)(a)), 1)
|
|
174
171
|
]),
|
|
175
172
|
n("div", de, p(t(s)("connect.program.experience.received", {
|
|
176
|
-
count:
|
|
173
|
+
count: a.currentReceive ?? 0
|
|
177
174
|
})), 1)
|
|
178
175
|
]),
|
|
179
176
|
c(F, {
|
|
180
177
|
icon: "delete",
|
|
181
178
|
"icon-color": "neutral-gray-400",
|
|
182
179
|
variant: "tertiary",
|
|
183
|
-
onClick: (k) => (k.stopPropagation(), C(
|
|
180
|
+
onClick: (k) => (k.stopPropagation(), C(a))
|
|
184
181
|
}, null, 8, ["onClick"])
|
|
185
182
|
]),
|
|
186
183
|
_: 2
|
|
@@ -194,16 +191,19 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
194
191
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
195
192
|
}, {
|
|
196
193
|
default: h(() => [
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
o[6] || (o[6] = n("img", {
|
|
195
|
+
src: q,
|
|
196
|
+
class: "aspect-square w-[150px]"
|
|
197
|
+
}, null, -1)),
|
|
198
|
+
n("div", ue, [
|
|
199
|
+
n("div", fe, p(t(s)("connect.program.experience.empty_state.title")), 1),
|
|
200
|
+
n("div", ye, p(t(s)("connect.program.experience.empty_state.description")), 1)
|
|
201
201
|
]),
|
|
202
202
|
c(F, {
|
|
203
203
|
variant: "primary",
|
|
204
204
|
label: "Create experience program",
|
|
205
205
|
icon: "add",
|
|
206
|
-
onClick:
|
|
206
|
+
onClick: o[5] || (o[5] = (a) => y())
|
|
207
207
|
})
|
|
208
208
|
]),
|
|
209
209
|
_: 1
|
|
@@ -219,5 +219,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
219
219
|
}
|
|
220
220
|
});
|
|
221
221
|
export {
|
|
222
|
-
|
|
222
|
+
Pe as default
|
|
223
223
|
};
|