@feedmepos/mf-connect 0.1.38-beta.2 → 0.1.39-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-D8WCDkga.js +427 -0
- package/dist/{App-D11A2JY1.js → App-CTnXtg1W.js} +352 -364
- package/dist/{Bin-9wV4Ah3M.js → Bin-BY6-bvFj.js} +8 -8
- package/dist/{Broadcast-I3BtSk8V.js → Broadcast-5VTEIQAr.js} +40 -40
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-XJqTXbKr.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BuAQxEM4.js} +18 -18
- package/dist/{Card-CqALG5RM.js → Card-8ivdV-Qz.js} +159 -159
- package/dist/{Collections-rg3SzoUb.js → Collections-CFszRHmE.js} +91 -103
- package/dist/{Credit-BNn1sYZv.js → Credit-DFslY__4.js} +74 -74
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-PJ8q72XH.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js} +488 -489
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Sww7KNle.js → EffectSheet.vue_vue_type_style_index_0_lang-Ci_bp7GH.js} +94 -94
- package/dist/{Experience-D_Qm8SUj.js → Experience-BxfiZNlY.js} +41 -41
- package/dist/{Game-CKXgXm6Q.js → Game-0FZJcLmj.js} +31 -31
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-ByhTB9Ie.js +144 -0
- package/dist/{Index-D4DGfUHd.js → Index-ByeKKbuM.js} +10 -10
- package/dist/Marketing-C7F4abzg.js +319 -0
- package/dist/{Member-B55vWHDd.js → Member-DP0fLSIV.js} +64 -64
- package/dist/MemberList-DFW2bMbr.js +1606 -0
- package/dist/MemberOverview-C2n9oJZh.js +58 -0
- package/dist/{MemberTransactions-CP5EI-W0.js → MemberTransactions-CW62fvgx.js} +1 -1
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-iJXNbgsB.js +455 -0
- package/dist/{Mission-CFvhROuB.js → Mission-DEgQHJw6.js} +21 -21
- package/dist/{Overview-4273yNwL.js → Overview-5jDtZKi8.js} +335 -335
- package/dist/{Point-B_-_C919.js → Point-D2lB1-xB.js} +41 -41
- package/dist/{Promotion-D2S3COxk.js → Promotion-Diz1gIa0.js} +42 -42
- package/dist/{Queue-BmS1Oi-C.js → Queue-DIAuq7HG.js} +51 -51
- package/dist/{Record-DRBl0M8g.js → Record-T608yda1.js} +9 -9
- package/dist/{Reward-8056NmfK.js → Reward-fZzHrHCW.js} +173 -173
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJ_WC2gV.js → RewardGroup.vue_vue_type_script_setup_true_lang-YOKVfimM.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DqNQl_nz.js → RuleGroup.vue_vue_type_script_setup_true_lang-C3_lmBe5.js} +431 -431
- package/dist/Segment-DDQIzsrk.js +882 -0
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-4nNkkklE.js → SelectItems.vue_vue_type_script_setup_true_lang-B5oUf91Q.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dnf2oxOG.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C2U6Kzvx.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLYP-5U9.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRmqgxES.js} +3 -3
- package/dist/{Setting-BrJfYoru.js → Setting-CQNyXmp4.js} +432 -432
- package/dist/{Store-Bpl_4yZW.js → Store-CIA1Rtsg.js} +210 -210
- package/dist/StoreRewards-D5zlE6cE.js +423 -0
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BkTYngJ_.js +995 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-QucRaI08.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-D8l3fQyz.js} +1 -1
- package/dist/{Tier-_LnXg3n6.js → Tier-jFXVOje_.js} +106 -106
- package/dist/{Title-B7AGStvx.js → Title-DVpZ1YMK.js} +131 -133
- package/dist/{Transaction-Chxv6V7u.js → Transaction-BF_wmok6.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CzXNmobp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cex1Z43W.js} +6 -6
- package/dist/{Voucher-C5z2kOq9.js → Voucher-CaBMU5w0.js} +37 -37
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BXt2fLOD.js +419 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BlXzEWA6.js → ZodTextField.vue_vue_type_script_setup_true_lang-CtHjWpUe.js} +1 -1
- package/dist/{app-BVojNX0w.js → app-CPhyKlyf.js} +1 -1
- package/dist/{app-7cvPyHJ7.js → app-DuIzRGvb.js} +124 -161
- package/dist/app.js +3 -4
- package/dist/{business-CmxV69wT.js → business-TTvv3aTz.js} +1 -1
- package/dist/{campaign-Dq5C_no-.js → campaign-BiMCoAzx.js} +3 -5
- package/dist/{campaign-CT_cNJEL.js → campaign-CjEVStN1.js} +9 -9
- package/dist/{campaign.enum-dp7yHKzF.js → campaign.enum-DpYmj9jp.js} +1 -1
- package/dist/campaign.fn-DJ6J98jS.js +758 -0
- package/dist/{collectible.enum-DxbB4DxT.js → collectible.enum-Cgmm_s-C.js} +1 -1
- package/dist/{collection.fn-CNZRdUgy.js → collection.fn-BsYCNgfJ.js} +2 -2
- package/dist/{dto-CT9zZbv9.js → dto-DgmHIlZ2.js} +4 -4
- package/dist/{effect-FIlOEC4H.js → effect-DnAVIDFy.js} +1 -1
- package/dist/{email-addresses-Ba7xImfX.js → email-addresses-CMRgb6Uv.js} +1 -1
- package/dist/{export-uzjZFNF9.js → export-DtarK6IJ.js} +3 -3
- package/dist/{helper-D4sAZde0.js → helper-BKZghMbF.js} +1 -1
- package/dist/{index-l2F5MnLF.js → index-2OAcPmuQ.js} +1 -1
- package/dist/{index-BI3m1Ehv.js → index-B0YZKHyu.js} +3 -3
- package/dist/{index-CH3z92VV.js → index-B5oXFFlO.js} +1 -1
- package/dist/{index-CvBcve-r.js → index-BQ3KHJXX.js} +1 -1
- package/dist/{index-B9pl4zRZ.js → index-B_893fH7.js} +79 -179
- package/dist/{index-CNJLP3D5.js → index-BoR-BOFw.js} +1 -1
- package/dist/{index-DNxa8Rqx.js → index-C7rl1eHp.js} +449 -516
- package/dist/{index-BXz54M1s.js → index-CBcbwf0k.js} +1 -1
- package/dist/{index-CS3Jmojj.js → index-CIztuDE4.js} +2462 -2453
- package/dist/{index-D5rvMvzx.js → index-CK67enPK.js} +1 -1
- package/dist/index-CuvNtC_M.js +61 -0
- package/dist/index-D2uZzjpn.js +44 -0
- package/dist/{index-CUfS9Kp1.js → index-DWdAUovq.js} +9 -9
- package/dist/{index-CONvJfKv.js → index-DkWcEDHA.js} +1 -1
- package/dist/{index-BjU8LVUC.js → index-VHu8hYtE.js} +385 -376
- package/dist/{index.esm2017-ATcsD5N4.js → index.esm2017-DkwLmmR_.js} +127 -127
- package/dist/{loading-BWGQSrCB.js → loading-BFkEqWR6.js} +1 -1
- package/dist/{membership-Cc4OZ8-U.js → membership-D0eN3i_T.js} +3 -3
- package/dist/{money-D7p8nfun.js → money-DS9ZQwSP.js} +1 -1
- package/dist/{number-CMJjC4qz.js → number-C8Gt93v9.js} +1 -1
- package/dist/objectid-Cr99eTPd.js +145 -0
- package/dist/{plugins-eQis66QR.js → plugins-DK_ue6Xa.js} +2 -2
- package/dist/{reward-DrnzbG20.js → reward-CW2dSLDW.js} +1 -1
- package/dist/{rule-CtRxkYXB.js → rule-CebKyXSm.js} +3 -3
- package/dist/{rule-builder-Di9RIYHF.js → rule-builder-kQq14RfN.js} +17 -17
- package/dist/style.css +1 -1
- package/dist/{template-C3UfY0v5.js → template-CxUxlb6-.js} +64 -64
- package/dist/{trigger-C9U7Zgad.js → trigger-RqJo06KA.js} +4 -4
- package/dist/{usePagination-BeF5K3M7.js → usePagination-JoYaROkV.js} +85 -85
- package/dist/{user-D7n9yYmO.js → user-DhV5Iy52.js} +1 -1
- package/dist/{vue-i18n-Bz45zC04.js → vue-i18n-BtvUK9hI.js} +419 -419
- package/dist/{xlsx-D4S4qbcZ.js → xlsx-WnLDq4qn.js} +381 -381
- package/package.json +3 -9
- package/dist/Analytic-BjSfI2Ff.js +0 -761
- package/dist/AuditLogs-DWCFYoRg.js +0 -1887
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-BUzUIIUW.js +0 -58
- package/dist/ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js +0 -144
- package/dist/Marketing-Dn9A1vgH.js +0 -20073
- package/dist/MemberList-BWTG9Ohy.js +0 -1606
- package/dist/MemberOverview-wL_ailso.js +0 -58
- package/dist/MessageInput.vue_vue_type_script_setup_true_lang-D--_An-f.js +0 -60279
- package/dist/Segment-Bzq-pyhc.js +0 -882
- package/dist/StoreRewards-Cu7n7Pjz.js +0 -423
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-T3Wo2maC.js +0 -1029
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DdGMrk2C.js +0 -419
- package/dist/campaign.fn-BYZgKDN7.js +0 -758
- package/dist/index-CsaQJMAR.js +0 -66
- package/dist/index-CwsMG2cV.js +0 -56
- package/dist/objectid-D5T27iny.js +0 -145
- package/dist/remy-vue-client-Cpppk9h-.js +0 -1693
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as
|
|
2
|
-
import { z as te } from "./app-
|
|
1
|
+
import { defineComponent as P, ref as C, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, 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 O, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
+
import { z as te } from "./app-DuIzRGvb.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 R } from "./effect-
|
|
7
|
-
import { p as ae } from "./plugins-
|
|
8
|
-
import { O as ne } from "./app-
|
|
4
|
+
import { f as le, g as oe } from "./index-DWdAUovq.js";
|
|
5
|
+
import { u as Z } from "./vue-i18n-BtvUK9hI.js";
|
|
6
|
+
import { s as R } from "./effect-DnAVIDFy.js";
|
|
7
|
+
import { p as ae } from "./plugins-DK_ue6Xa.js";
|
|
8
|
+
import { O as ne } from "./app-CPhyKlyf.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: h }) {
|
|
43
43
|
var A, B;
|
|
44
|
-
const { t:
|
|
45
|
-
{ label:
|
|
46
|
-
{ label:
|
|
47
|
-
],
|
|
44
|
+
const { t: s } = Z(), l = t, g = h, o = [
|
|
45
|
+
{ label: s("connect.template.validity_option.date_range"), value: "range" },
|
|
46
|
+
{ label: s("connect.template.validity_option.custom"), value: "custom" }
|
|
47
|
+
], d = C(!1);
|
|
48
48
|
Q(() => {
|
|
49
|
-
|
|
49
|
+
d.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 a = C(
|
|
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
|
+
), S = H(
|
|
56
56
|
() => l.forCredit ? le : oe
|
|
57
57
|
), m = H(() => {
|
|
58
|
-
const p =
|
|
58
|
+
const p = S.value.safeParse(l.modelValue);
|
|
59
59
|
return p.success ? [] : p.error.errors;
|
|
60
60
|
});
|
|
61
|
-
function
|
|
62
|
-
|
|
61
|
+
function n(p) {
|
|
62
|
+
g("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 n({
|
|
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 d.value = !1, n({
|
|
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 i(), x("div", ie, [
|
|
81
81
|
W(p.$slots, "label", {}, () => [
|
|
82
|
-
t.label ? (
|
|
82
|
+
t.label ? (i(), x("div", se, w(t.label), 1)) : v("", !0)
|
|
83
83
|
]),
|
|
84
|
-
t.type ? v("", !0) : (
|
|
84
|
+
t.type ? v("", !0) : (i(), f(D, {
|
|
85
85
|
key: 0,
|
|
86
|
-
modelValue: e(
|
|
86
|
+
modelValue: e(a),
|
|
87
87
|
"onUpdate:modelValue": [
|
|
88
|
-
r[0] || (r[0] = (c) => q(
|
|
88
|
+
r[0] || (r[0] = (c) => q(a) ? a.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(a).value === "range" ? (i(), 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
|
+
n({
|
|
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(a).value === "custom" ? (i(), x("div", me, [
|
|
109
109
|
b(J, {
|
|
110
|
-
"model-value": e(
|
|
111
|
-
label: e(
|
|
110
|
+
"model-value": e(d),
|
|
111
|
+
label: e(s)("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
|
+
d.value = c, n({
|
|
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(d) ? (i(), f(K, {
|
|
122
122
|
key: 0,
|
|
123
|
-
label: e(
|
|
123
|
+
label: e(s)("connect.template.validity_option.after_day"),
|
|
124
124
|
class: G([{
|
|
125
|
-
"opacity-50 pointer-events-none": !e(
|
|
125
|
+
"opacity-50 pointer-events-none": !e(d)
|
|
126
126
|
}, "mt-[-4px]"]),
|
|
127
127
|
"max-fraction-digits": 0,
|
|
128
|
-
disabled: !e(
|
|
128
|
+
disabled: !e(d),
|
|
129
129
|
"show-steppers": !1,
|
|
130
130
|
max: 99999,
|
|
131
|
-
"append-text": e(
|
|
131
|
+
"append-text": e(s)("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 n({
|
|
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(d) ? (i(), f(T, {
|
|
143
143
|
key: 3,
|
|
144
|
-
text: e(
|
|
144
|
+
text: e(s)("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(s)("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" }, Ae = /* @__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: h }) {
|
|
173
|
+
const { t: s } = Z(), l = t, g = h, o = C(l.modelValue ?? {});
|
|
174
|
+
return X(o, () => g("update:model-value", o.value)), (d, a) => {
|
|
175
|
+
const S = y("FmSwitch"), m = y("FmStepperField");
|
|
176
|
+
return i(), x("div", ue, [
|
|
177
|
+
t.isMission ? v("", !0) : (i(), f(S, {
|
|
178
178
|
key: 0,
|
|
179
|
-
label: e(
|
|
179
|
+
label: e(s)("connect.template.enable_transfer"),
|
|
180
180
|
"label-placement": "right",
|
|
181
181
|
modelValue: e(o).enableTransfer,
|
|
182
|
-
"onUpdate:modelValue":
|
|
182
|
+
"onUpdate:modelValue": a[0] || (a[0] = (n) => e(o).enableTransfer = n)
|
|
183
183
|
}, null, 8, ["label", "modelValue"])),
|
|
184
|
-
t.noCampaign ? v("", !0) : (
|
|
184
|
+
t.noCampaign ? v("", !0) : (i(), 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": a[1] || (a[1] = (n) => e(o).maxPerUser = n),
|
|
191
191
|
"show-steppers": !1,
|
|
192
192
|
rules: [e(u).ruleAtPath(t.schema, "maxPerUser")],
|
|
193
|
-
"helper-text": e(
|
|
193
|
+
"helper-text": e(s)("connect.template.leave_empty_unlimited")
|
|
194
194
|
}, {
|
|
195
195
|
label: F(() => [
|
|
196
|
-
(
|
|
196
|
+
(i(), f(O(
|
|
197
197
|
e(u).toInputLabel(
|
|
198
198
|
e(u).typeAtPath(t.schema, "maxPerUser"),
|
|
199
|
-
e(
|
|
199
|
+
e(s)("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) : (i(), f(m, {
|
|
206
206
|
key: 0,
|
|
207
207
|
modelValue: e(o).maxReceive,
|
|
208
|
-
"onUpdate:modelValue":
|
|
208
|
+
"onUpdate:modelValue": a[2] || (a[2] = (n) => e(o).maxReceive = n),
|
|
209
209
|
"show-steppers": !1,
|
|
210
210
|
rules: [e(u).ruleAtPath(t.schema, "maxReceive")],
|
|
211
|
-
"helper-text": e(
|
|
211
|
+
"helper-text": e(s)("connect.template.leave_empty_unlimited")
|
|
212
212
|
}, {
|
|
213
213
|
label: F(() => [
|
|
214
|
-
(
|
|
214
|
+
(i(), f(O(
|
|
215
215
|
e(u).toInputLabel(
|
|
216
216
|
e(u).typeAtPath(t.schema, "maxReceive"),
|
|
217
|
-
e(
|
|
217
|
+
e(s)("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) : (i(), x(_, { key: 2 }, [
|
|
225
225
|
b(m, {
|
|
226
226
|
modelValue: e(o).maxUse,
|
|
227
|
-
"onUpdate:modelValue":
|
|
227
|
+
"onUpdate:modelValue": a[3] || (a[3] = (n) => e(o).maxUse = n),
|
|
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
|
+
(i(), f(O(
|
|
234
234
|
e(u).toInputLabel(
|
|
235
235
|
e(u).typeAtPath(t.schema, "maxUse"),
|
|
236
|
-
e(
|
|
236
|
+
e(s)("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 ? (i(), f(m, {
|
|
243
243
|
key: 0,
|
|
244
244
|
modelValue: e(o).cooldown,
|
|
245
|
-
"onUpdate:modelValue":
|
|
245
|
+
"onUpdate:modelValue": a[4] || (a[4] = (n) => e(o).cooldown = n),
|
|
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
|
+
(i(), f(O(
|
|
252
252
|
e(u).toInputLabel(
|
|
253
253
|
e(u).typeAtPath(t.schema, "cooldown"),
|
|
254
|
-
e(
|
|
254
|
+
e(s)("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": a[5] || (a[5] = (n) => e(o).validityOption = n),
|
|
263
|
+
label: e(s)("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 = /* @__PURE__ */ U("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1), fe = {
|
|
270
270
|
key: 1,
|
|
271
271
|
class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
|
|
272
|
-
},
|
|
272
|
+
}, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ue = /* @__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: h }) {
|
|
282
|
+
const s = h, l = C(!1);
|
|
283
|
+
async function g(o) {
|
|
284
|
+
o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && s("update:model-value", null);
|
|
285
285
|
}
|
|
286
|
-
return (o,
|
|
287
|
-
const
|
|
288
|
-
return
|
|
286
|
+
return (o, d) => {
|
|
287
|
+
const a = y("FmButton"), S = y("FmSideSheet");
|
|
288
|
+
return i(), f(S, {
|
|
289
289
|
"max-width": 550,
|
|
290
290
|
header: "Apply discount",
|
|
291
291
|
modelValue: e(l),
|
|
292
292
|
"onUpdate:modelValue": [
|
|
293
|
-
|
|
294
|
-
|
|
293
|
+
d[2] || (d[2] = (m) => q(l) ? l.value = m : null),
|
|
294
|
+
d[3] || (d[3] = (m) => l.value = m)
|
|
295
295
|
]
|
|
296
296
|
}, {
|
|
297
297
|
"side-sheet-button": F(() => {
|
|
298
|
-
var m,
|
|
298
|
+
var m, n, k, A;
|
|
299
299
|
return [
|
|
300
300
|
U("div", pe, [
|
|
301
|
-
|
|
302
|
-
t.modelValue ? (
|
|
303
|
-
U("div",
|
|
301
|
+
ce,
|
|
302
|
+
t.modelValue ? (i(), x("div", fe, [
|
|
303
|
+
U("div", ve, [
|
|
304
304
|
U("div", null, w((m = e(R)(t.modelValue)) == null ? void 0 : m.type), 1),
|
|
305
|
-
U("div",
|
|
305
|
+
U("div", ye, w((n = e(R)(t.modelValue)) == null ? void 0 : n.adjustment) + " with " + w((k = e(R)(t.modelValue)) == null ? void 0 : k.requirements) + " " + w((A = e(R)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
|
|
306
306
|
]),
|
|
307
|
-
b(
|
|
307
|
+
b(a, {
|
|
308
308
|
icon: "delete",
|
|
309
309
|
"icon-color": "neutral-gray-400",
|
|
310
310
|
variant: "tertiary",
|
|
311
|
-
onClick:
|
|
311
|
+
onClick: g
|
|
312
312
|
})
|
|
313
|
-
])) : (
|
|
313
|
+
])) : (i(), f(a, {
|
|
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(() =>
|
|
324
|
+
"side-sheet-footer": F(() => [
|
|
325
325
|
ee(w(void 0))
|
|
326
|
-
])
|
|
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: d[0] || (d[0] = (m) => (s("update:model-value", m), l.value = !1)),
|
|
335
|
+
onOnCancel: d[1] || (d[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
|
+
Ue as _,
|
|
345
|
+
Ae as a,
|
|
346
346
|
re as b
|
|
347
347
|
};
|
|
@@ -1,19 +1,22 @@
|
|
|
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-DK_ue6Xa.js";
|
|
5
|
+
import { u as Q } from "./loading-BFkEqWR6.js";
|
|
6
|
+
import { u as W } from "./business-TTvv3aTz.js";
|
|
7
|
+
import { u as X } from "./campaign-BiMCoAzx.js";
|
|
8
|
+
import { a as L, b as V, g as Y } from "./campaign-CjEVStN1.js";
|
|
9
|
+
import { u as Z } from "./vue-i18n-BtvUK9hI.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 =
|
|
11
|
+
import { _ as te } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BvCLYtJ3.js";
|
|
12
|
+
import { u as oe } from "./template-CxUxlb6-.js";
|
|
13
|
+
import { c as g } from "./index-CK67enPK.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 = /* @__PURE__ */ n("img", {
|
|
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({
|
|
15
18
|
__name: "Experience",
|
|
16
|
-
setup(
|
|
19
|
+
setup(_e) {
|
|
17
20
|
const { t: s } = Z(), I = {
|
|
18
21
|
label: s("connect.program.common.actions.create", {
|
|
19
22
|
type: s("connect.program.experience.title").toLowerCase()
|
|
@@ -52,8 +55,8 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
52
55
|
variant: "tertiary",
|
|
53
56
|
icon: "delete",
|
|
54
57
|
iconColor: "neutral-gray-400",
|
|
55
|
-
onClick: (
|
|
56
|
-
|
|
58
|
+
onClick: (a) => {
|
|
59
|
+
a.stopPropagation(), C(e.row.original);
|
|
57
60
|
}
|
|
58
61
|
});
|
|
59
62
|
}
|
|
@@ -71,10 +74,10 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
71
74
|
);
|
|
72
75
|
}
|
|
73
76
|
async function y(e) {
|
|
74
|
-
e ? await
|
|
75
|
-
await
|
|
77
|
+
e ? await a() : P.open(async (d) => {
|
|
78
|
+
await a(d);
|
|
76
79
|
});
|
|
77
|
-
async function
|
|
80
|
+
async function a(d) {
|
|
78
81
|
var u;
|
|
79
82
|
(u = b.value) == null || u.showSheet(
|
|
80
83
|
!0,
|
|
@@ -104,18 +107,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
104
107
|
await T(async () => {
|
|
105
108
|
await l.read("POINT");
|
|
106
109
|
});
|
|
107
|
-
}), (e,
|
|
110
|
+
}), (e, a) => {
|
|
108
111
|
const d = i("FmPageHead"), u = i("FmSearch"), R = i("FmTable"), F = i("FmButton"), $ = i("FmListItem"), O = i("FmList"), A = i("FmCard");
|
|
109
112
|
return m(), _(x, null, [
|
|
110
113
|
c(d, {
|
|
111
114
|
title: t(s)("connect.program.experience.title"),
|
|
112
115
|
actions: t(f).length > 0 ? [I] : [],
|
|
113
|
-
"onClick:action":
|
|
116
|
+
"onClick:action": a[0] || (a[0] = () => y())
|
|
114
117
|
}, null, 8, ["title", "actions"]),
|
|
115
118
|
n("div", ae, [
|
|
116
119
|
c(u, {
|
|
117
120
|
modelValue: t(r).searchKey,
|
|
118
|
-
"onUpdate:modelValue":
|
|
121
|
+
"onUpdate:modelValue": a[1] || (a[1] = (o) => t(r).searchKey = o),
|
|
119
122
|
class: "hidden xs:block border-b-2 border-fm-color-neutral-gray-100",
|
|
120
123
|
placeholder: t(s)("connect.program.common.search"),
|
|
121
124
|
collapsible: ""
|
|
@@ -125,7 +128,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
125
128
|
n("div", se, [
|
|
126
129
|
c(ee, {
|
|
127
130
|
modelValue: t(r).location,
|
|
128
|
-
"onUpdate:modelValue":
|
|
131
|
+
"onUpdate:modelValue": a[2] || (a[2] = (o) => t(r).location = o),
|
|
129
132
|
label: "Location: ",
|
|
130
133
|
"show-item-label": !0,
|
|
131
134
|
icon: "storefront",
|
|
@@ -135,7 +138,7 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
135
138
|
]),
|
|
136
139
|
c(u, {
|
|
137
140
|
modelValue: t(r).searchKey,
|
|
138
|
-
"onUpdate:modelValue":
|
|
141
|
+
"onUpdate:modelValue": a[3] || (a[3] = (o) => t(r).searchKey = o),
|
|
139
142
|
class: "xs:hidden",
|
|
140
143
|
placeholder: "search",
|
|
141
144
|
collapsible: ""
|
|
@@ -147,37 +150,37 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
147
150
|
"column-defs": K,
|
|
148
151
|
"search-value": t(r).searchKey,
|
|
149
152
|
"column-filter": [],
|
|
150
|
-
onRowClick:
|
|
153
|
+
onRowClick: a[4] || (a[4] = (o) => y(o.original)),
|
|
151
154
|
"hide-footer": t(f).length < 10
|
|
152
155
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
153
156
|
c(O, { class: "hidden xs:flex flex-col mx-[-24px]" }, {
|
|
154
157
|
default: h(() => [
|
|
155
158
|
(m(!0), _(x, null, j(t(f).filter(
|
|
156
|
-
(
|
|
157
|
-
), (
|
|
158
|
-
key:
|
|
159
|
-
onClick: (k) => y(
|
|
159
|
+
(o) => o.name.toLowerCase().includes(t(r).searchKey.toLowerCase())
|
|
160
|
+
), (o) => (m(), w($, {
|
|
161
|
+
key: o._id.toString(),
|
|
162
|
+
onClick: (k) => y(o),
|
|
160
163
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
161
164
|
}, {
|
|
162
165
|
default: h(() => [
|
|
163
166
|
n("div", re, [
|
|
164
167
|
n("div", ce, [
|
|
165
|
-
(m(), w(M(t(L)(
|
|
166
|
-
n("div", ie, p(
|
|
168
|
+
(m(), w(M(t(L)(o)))),
|
|
169
|
+
n("div", ie, p(o.currentReceive ?? 0) + " used ", 1)
|
|
167
170
|
]),
|
|
168
171
|
n("div", le, [
|
|
169
|
-
n("div", me, p(
|
|
170
|
-
n("div", pe, p(t(V)(
|
|
172
|
+
n("div", me, p(o.name), 1),
|
|
173
|
+
n("div", pe, p(t(V)(o)), 1)
|
|
171
174
|
]),
|
|
172
175
|
n("div", de, p(t(s)("connect.program.experience.received", {
|
|
173
|
-
count:
|
|
176
|
+
count: o.currentReceive ?? 0
|
|
174
177
|
})), 1)
|
|
175
178
|
]),
|
|
176
179
|
c(F, {
|
|
177
180
|
icon: "delete",
|
|
178
181
|
"icon-color": "neutral-gray-400",
|
|
179
182
|
variant: "tertiary",
|
|
180
|
-
onClick: (k) => (k.stopPropagation(), C(
|
|
183
|
+
onClick: (k) => (k.stopPropagation(), C(o))
|
|
181
184
|
}, null, 8, ["onClick"])
|
|
182
185
|
]),
|
|
183
186
|
_: 2
|
|
@@ -191,19 +194,16 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, ne = { class: "flex items-
|
|
|
191
194
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
192
195
|
}, {
|
|
193
196
|
default: h(() => [
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
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)
|
|
197
|
+
ue,
|
|
198
|
+
n("div", fe, [
|
|
199
|
+
n("div", ye, p(t(s)("connect.program.experience.empty_state.title")), 1),
|
|
200
|
+
n("div", ge, 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: a[5] || (a[5] = (o) => 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
|
+
Be as default
|
|
223
223
|
};
|