@feedmepos/mf-connect 0.1.38-beta.23 → 0.1.38-beta.25
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-xMxbAEul.js → Analytic-CnNFr3FF.js} +14 -14
- package/dist/{App-DkBJoQa2.js → App-Bs4Lgw2l.js} +7 -7
- package/dist/{AuditLogs-CkpffM8N.js → AuditLogs-BLoAipFo.js} +11 -11
- package/dist/{Bin-D3JHC66F.js → Bin-CGTdlBny.js} +8 -8
- package/dist/{Broadcast-eCxNA0EG.js → Broadcast-B3W5RzRy.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BMrLc0hX.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B2Rodvvf.js} +6 -6
- package/dist/{Card-CaOvpWvL.js → Card-CkP5_s5B.js} +18 -18
- package/dist/{Collections-CxScAHZl.js → Collections-Czp-eFqo.js} +7 -7
- package/dist/{Credit-BnPpMq8q.js → Credit-BcaIvY_C.js} +11 -11
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BEnaGmCW.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CD_HmVtT.js} +63 -62
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJhtUAk_.js → EffectSheet.vue_vue_type_style_index_0_lang-CeJtGIq8.js} +20 -20
- package/dist/{Experience-nMxubr1P.js → Experience-CqpT4RKC.js} +9 -9
- package/dist/{Game-C8pHAp1o.js → Game-BU19eUZe.js} +10 -10
- package/dist/Grab-DrgKhQ-n.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-rWUkV9gn.js → ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js} +8 -8
- package/dist/{Index-COHMtBIi.js → Index-j750egzP.js} +54 -54
- package/dist/{Marketing-C3R9Rw4y.js → Marketing-DxBCWgGW.js} +10 -10
- package/dist/{Member-gjwH9kPr.js → Member-BlpnS-gt.js} +10 -10
- package/dist/{MemberList-Bg_zsGbz.js → MemberList-XolPpdeh.js} +31 -31
- package/dist/{MemberTransactions-7aZsIeZL.js → MemberTransactions-mE7RmB-H.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtPV3l4w.js → MessageInput.vue_vue_type_script_setup_true_lang-CnIWWNgD.js} +9 -9
- package/dist/{Mission-DqAahrB0.js → Mission-BtavZVDY.js} +10 -10
- package/dist/{Overview-_b_4mLBe.js → Overview-AnvTfXXo.js} +21 -21
- package/dist/{Point-CsMZA2do.js → Point-Bw1G73vZ.js} +9 -9
- package/dist/{Promotion-j4_gUzqi.js → Promotion-By1szSrB.js} +10 -10
- package/dist/{Queue-MOdvEl5u.js → Queue-CDNcLHGr.js} +11 -11
- package/dist/{Record-BQIQBdc6.js → Record-D7CLYo3F.js} +9 -9
- package/dist/{Reward-DABAfCmo.js → Reward-BfCNtJE1.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-D-BK8GZ4.js → RewardGroup.vue_vue_type_script_setup_true_lang-BIsAuAN2.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-ClwtUvs9.js → RuleGroup.vue_vue_type_script_setup_true_lang-DFZsY5Wx.js} +185 -185
- package/dist/{Segment-DSpcce-q.js → Segment-Cx4Y8niG.js} +232 -232
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CZu-7I-8.js → SelectItems.vue_vue_type_script_setup_true_lang-BZ_J5OFJ.js} +14 -14
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D5Oc0pqy.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BJGAnjDZ.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-7NWmWQjo.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CJ5lkVPN.js} +3 -3
- package/dist/{Setting-DTFpHJd7.js → Setting-CZ-ZoCbx.js} +17 -17
- package/dist/{Store-mAraPykq.js → Store-BEolF_8B.js} +34 -34
- package/dist/{StoreRewards-C1Cw1Nij.js → StoreRewards-Dad1Zg2s.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-C_igl8vi.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BioIIRWp.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-D3c0qO9i.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-DFck5Zap.js} +1 -1
- package/dist/{Tier-B7AUECOs.js → Tier-DkMdCg4f.js} +21 -21
- package/dist/{Title-DWw4-4cE.js → Title-CE4vkjCt.js} +20 -20
- package/dist/{Transaction-ClZvbeDP.js → Transaction-DQOdYA5y.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Cen_yXF7.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CLIhaeAY.js} +6 -6
- package/dist/{Voucher-BBYDF1GX.js → Voucher-BNCkPTeD.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Vscwqd3r.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BCG4LuXq.js} +86 -86
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C2yUE0Cq.js → ZodTextField.vue_vue_type_script_setup_true_lang-DZPz72YM.js} +1 -1
- package/dist/{app-DLdolyB3.js → app-CGyViOA2.js} +41 -34
- package/dist/app-DuuQV4iK.js +57962 -0
- package/dist/app.js +1 -1
- package/dist/{business-D900a5Tb.js → business-CT9f5Mcu.js} +1 -1
- package/dist/{campaign-D_F3xj3O.js → campaign-DruWV9_z.js} +9 -9
- package/dist/{campaign-DXo7F7aH.js → campaign-QNfednQV.js} +2 -2
- package/dist/{campaign.enum-CG0IjpL0.js → campaign.enum-BfqWuf2f.js} +1 -1
- package/dist/{campaign.fn-B6f4zAed.js → campaign.fn-CdyLr0Xa.js} +3 -3
- package/dist/{collectible.enum-0jg7mZtz.js → collectible.enum-C4SBy9ie.js} +1 -1
- package/dist/{collection.fn-BDcZoQfR.js → collection.fn-DGmard-T.js} +2 -2
- package/dist/{dto-Diu2Xl3e.js → dto-AdHaYlrt.js} +4 -4
- package/dist/{effect-DvIk5Cg6.js → effect-BxLYXWa0.js} +1 -1
- package/dist/{email-addresses-DQf3ZdZP.js → email-addresses-BywpJOyH.js} +1 -1
- package/dist/{export-WSVAzeqR.js → export-CaCjWJbv.js} +3 -3
- package/dist/{helper-CzsKE573.js → helper-1sDGGcCs.js} +1 -1
- package/dist/{index-DMg2pJLu.js → index-AYw2MTFM.js} +1 -1
- package/dist/{index-D3wppWii.js → index-BGWAVguX.js} +1 -1
- package/dist/{index-D-VZHYyP.js → index-BWINkCFC.js} +1 -1
- package/dist/{index-B6Kbxgky.js → index-Ce7luA3z.js} +1 -1
- package/dist/{index-DPyNXHg6.js → index-Cur9hyPV.js} +2 -2
- package/dist/{index-B6KkRHaV.js → index-DJZ-kqpE.js} +1 -1
- package/dist/{index-DlwPVNEv.js → index-DKsWTRyN.js} +18 -9
- package/dist/{index-Bej-AJUB.js → index-DOeqRIlL.js} +3 -3
- package/dist/{index-1-H1oqKb.js → index-DWRBSads.js} +1 -1
- package/dist/{index-D1fzmeG6.js → index-DZ3vwqCm.js} +1 -1
- package/dist/{index-__X1c_dR.js → index-ILVT0cch.js} +6 -6
- package/dist/{index-uJ-YdKV1.js → index-J-gYw1zz.js} +3 -3
- package/dist/{index-CErvxcDp.js → index-_mZAUf_O.js} +1 -1
- package/dist/{index-DWN3abQr.js → index-xV0yJaxT.js} +3 -3
- package/dist/{index.esm2017-shNT9EQF.js → index.esm2017-Bo-H9Epv.js} +1 -1
- package/dist/{loading-CBKMbqM5.js → loading-Bqjqslgf.js} +1 -1
- package/dist/{membership-DQa8yaY2.js → membership-CqhEppfS.js} +3 -3
- package/dist/{money-IYgOL6F1.js → money-CooAqk_P.js} +1 -1
- package/dist/{number-DXdhRp2S.js → number-C6cARyqZ.js} +1 -1
- package/dist/{objectid-DABStWGB.js → objectid-DiYL018Z.js} +8 -8
- package/dist/{plugins-DXwZ_v63.js → plugins-BaVr4Awd.js} +2 -2
- package/dist/{reward-DYiYZcJC.js → reward-43EpLVnK.js} +1 -1
- package/dist/{rule-Beum_Zy5.js → rule-CECnGrxI.js} +3 -3
- package/dist/{rule-builder-BLNgIsjE.js → rule-builder-C58mHAaP.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-C5PTDFfm.js → template-CMZziR_-.js} +5 -5
- package/dist/{timezone-PLVeOMdC.js → timezone-DpcMMfGn.js} +1 -1
- package/dist/{trigger-B0u2ZuY-.js → trigger-D99PwOLC.js} +4 -4
- package/dist/usePagination-Ds-cuHop.js +223 -0
- package/dist/{user-BlM3HCwC.js → user-C1NEGH5J.js} +1 -1
- package/dist/{vue-i18n-CwrnHMwQ.js → vue-i18n-CzjqSUwt.js} +157 -157
- package/dist/{xlsx-BAbyCaI0.js → xlsx-DOkzrP7b.js} +1 -1
- package/package.json +4 -4
- package/dist/Grab-DjTma0rb.js +0 -282
- package/dist/app-9boJd9tw.js +0 -33357
- package/dist/usePagination-BeF5K3M7.js +0 -223
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { defineComponent as A, ref as w, resolveComponent as c, openBlock as d, createBlock as F, withCtx as f, renderSlot as q, createVNode as m, createTextVNode as S, toDisplayString as I, createElementVNode as n, computed as N, createElementBlock as h, Fragment as U, renderList as z, unref as e, normalizeClass as J, createCommentVNode as P, resolveDynamicComponent as H } from "vue";
|
|
2
|
-
import { c as X } from "./index-
|
|
3
|
-
import { e as K, F as Q } from "./index-
|
|
4
|
-
import { C as W } from "./membership-
|
|
2
|
+
import { c as X } from "./index-J-gYw1zz.js";
|
|
3
|
+
import { e as K, F as Q } from "./index-Cur9hyPV.js";
|
|
4
|
+
import { C as W } from "./membership-CqhEppfS.js";
|
|
5
5
|
import { Z as g } from "./zod-Bg2FbC-D.js";
|
|
6
|
-
import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-
|
|
7
|
-
import { u as ee } from "./business-
|
|
6
|
+
import { _ as Y } from "./SelectItems.vue_vue_type_script_setup_true_lang-BZ_J5OFJ.js";
|
|
7
|
+
import { u as ee } from "./business-CT9f5Mcu.js";
|
|
8
8
|
import { useCoreStore as te } from "@feedmepos/mf-common";
|
|
9
|
-
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
12
|
-
import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
13
|
-
import { u as me } from "./vue-i18n-
|
|
14
|
-
import { i as re } from "./helper-
|
|
9
|
+
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DZPz72YM.js";
|
|
10
|
+
import { _ as oe } from "./ImageInput.vue_vue_type_script_setup_true_lang-D1KQpDGg.js";
|
|
11
|
+
import { _ as ae, a as ne } from "./EffectSheet.vue_vue_type_style_index_0_lang-CeJtGIq8.js";
|
|
12
|
+
import { _ as se } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DFck5Zap.js";
|
|
13
|
+
import { u as me } from "./vue-i18n-CzjqSUwt.js";
|
|
14
|
+
import { i as re } from "./helper-1sDGGcCs.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -19,15 +19,15 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
19
19
|
filterItems: { type: Function }
|
|
20
20
|
},
|
|
21
21
|
emits: ["confirm"],
|
|
22
|
-
setup(
|
|
22
|
+
setup(o, { emit: T }) {
|
|
23
23
|
const O = w(), s = w(!1);
|
|
24
24
|
function l() {
|
|
25
|
-
var
|
|
26
|
-
(
|
|
25
|
+
var i;
|
|
26
|
+
(i = O.value) == null || i.onConfirm();
|
|
27
27
|
}
|
|
28
28
|
const y = T;
|
|
29
|
-
return (
|
|
30
|
-
const
|
|
29
|
+
return (i, x) => {
|
|
30
|
+
const a = c("FmField"), v = c("FmButton"), R = c("FmSideSheet");
|
|
31
31
|
return d(), F(R, {
|
|
32
32
|
modelValue: s.value,
|
|
33
33
|
"onUpdate:modelValue": x[1] || (x[1] = (b) => s.value = b),
|
|
@@ -37,10 +37,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
37
37
|
"max-width": 560
|
|
38
38
|
}, {
|
|
39
39
|
"side-sheet-button": f(() => [
|
|
40
|
-
q(
|
|
41
|
-
m(
|
|
40
|
+
q(i.$slots, "side-sheet-button", {}, () => [
|
|
41
|
+
m(a, { class: "text-fm-color-typo-tertiary cursor-pointer" }, {
|
|
42
42
|
default: f(() => [
|
|
43
|
-
S(I(
|
|
43
|
+
S(I(o.modelValue.length) + " item(s) selected ", 1)
|
|
44
44
|
]),
|
|
45
45
|
_: 1
|
|
46
46
|
})
|
|
@@ -66,8 +66,8 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
66
66
|
"max-height": 0,
|
|
67
67
|
ref_key: "selectItemRef",
|
|
68
68
|
ref: O,
|
|
69
|
-
"initial-value":
|
|
70
|
-
"filter-items":
|
|
69
|
+
"initial-value": o.modelValue,
|
|
70
|
+
"filter-items": o.filterItems,
|
|
71
71
|
"on-complete": (b) => {
|
|
72
72
|
y("confirm", b), s.value = !1;
|
|
73
73
|
}
|
|
@@ -83,7 +83,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
83
83
|
}, ge = { class: "fm-typo-en-body-lg-400" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = {
|
|
84
84
|
key: 0,
|
|
85
85
|
class: "pt-8 space-y-8"
|
|
86
|
-
}, Fe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Ce = { class: "xs:!block flex gap-16 items-center" },
|
|
86
|
+
}, Fe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Ce = { class: "xs:!block flex gap-16 items-center" }, De = /* @__PURE__ */ A({
|
|
87
87
|
__name: "EarningOptionInput",
|
|
88
88
|
props: {
|
|
89
89
|
modelValue: {
|
|
@@ -100,9 +100,9 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
emits: ["update:model-value"],
|
|
103
|
-
setup(
|
|
103
|
+
setup(o, { emit: T }) {
|
|
104
104
|
var R, b, k;
|
|
105
|
-
const O = ee(), s =
|
|
105
|
+
const O = ee(), s = o, l = T, y = [
|
|
106
106
|
{
|
|
107
107
|
label: "Based on spending",
|
|
108
108
|
sublabel: "Customers earn rewards based on how much they spend.",
|
|
@@ -116,7 +116,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
116
116
|
].filter((p) => {
|
|
117
117
|
var t, C;
|
|
118
118
|
return s.fixedType || ((C = (t = s.extras) == null ? void 0 : t.campaign) == null ? void 0 : C.event.type) != "BILL_COMPLETED" ? p.value == "FIXED" : !0;
|
|
119
|
-
}),
|
|
119
|
+
}), i = N(() => {
|
|
120
120
|
var t, C;
|
|
121
121
|
const p = s.extras && "configs" in s.extras ? s.extras.configs.type : (t = s.extras) == null ? void 0 : t.campaign.type;
|
|
122
122
|
return (((C = W[p]) == null ? void 0 : C.name) || "reward").toLowerCase();
|
|
@@ -124,7 +124,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
124
124
|
const p = K.safeParse(s.modelValue);
|
|
125
125
|
return p.success ? [] : p.error.errors;
|
|
126
126
|
});
|
|
127
|
-
function
|
|
127
|
+
function a(p) {
|
|
128
128
|
var t;
|
|
129
129
|
p != ((t = s.modelValue) == null ? void 0 : t.type) && l(
|
|
130
130
|
"update:model-value",
|
|
@@ -142,20 +142,20 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
142
142
|
((R = s.modelValue) == null ? void 0 : R.type) === "PROPORTIONAL" && !!((k = (b = s.modelValue) == null ? void 0 : b.property) != null && k.length) || !1
|
|
143
143
|
);
|
|
144
144
|
return (p, t) => {
|
|
145
|
-
var
|
|
145
|
+
var B, D, _;
|
|
146
146
|
const C = c("FmCard"), $ = c("FmStepperField"), L = c("FmRadio"), j = c("FmPill"), G = c("FmButton"), M = c("FmRadioGroup"), Z = c("FmHelperText");
|
|
147
147
|
return d(), h("div", de, [
|
|
148
148
|
n("div", pe, [
|
|
149
149
|
(d(!0), h(U, null, z(e(y), (r) => {
|
|
150
|
-
var V,
|
|
150
|
+
var V, u;
|
|
151
151
|
return d(), F(C, {
|
|
152
152
|
variant: "outlined",
|
|
153
153
|
class: J(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-2", {
|
|
154
154
|
"col-span-2": e(y).length == 1,
|
|
155
|
-
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((V =
|
|
156
|
-
"hover:bg-fm-color-opacity-sm": ((
|
|
155
|
+
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((V = o.modelValue) == null ? void 0 : V.type) === r.value,
|
|
156
|
+
"hover:bg-fm-color-opacity-sm": ((u = o.modelValue) == null ? void 0 : u.type) != r.value
|
|
157
157
|
}]),
|
|
158
|
-
onClick: (E) =>
|
|
158
|
+
onClick: (E) => a(r.value),
|
|
159
159
|
key: r.value
|
|
160
160
|
}, {
|
|
161
161
|
default: f(() => [
|
|
@@ -167,22 +167,22 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
167
167
|
}), 128))
|
|
168
168
|
]),
|
|
169
169
|
n("div", ye, [
|
|
170
|
-
((
|
|
170
|
+
((B = o.modelValue) == null ? void 0 : B.type) === "FIXED" ? (d(), F($, {
|
|
171
171
|
key: 0,
|
|
172
|
-
label: `Receive ${e(
|
|
172
|
+
label: `Receive ${e(i)}(s)`,
|
|
173
173
|
class: "flex-1",
|
|
174
|
-
"model-value": ((
|
|
174
|
+
"model-value": ((D = o.modelValue) == null ? void 0 : D.amount) ?? null,
|
|
175
175
|
"onUpdate:modelValue": t[0] || (t[0] = (r) => l("update:model-value", {
|
|
176
|
-
...
|
|
176
|
+
...o.modelValue ?? { type: "FIXED" },
|
|
177
177
|
amount: r
|
|
178
178
|
}))
|
|
179
|
-
}, null, 8, ["label", "model-value"])) : ((
|
|
179
|
+
}, null, 8, ["label", "model-value"])) : ((_ = o.modelValue) == null ? void 0 : _.type) === "PROPORTIONAL" ? (d(), h(U, { key: 1 }, [
|
|
180
180
|
t[11] || (t[11] = n("div", { class: "fm-typo-en-body-lg-600" }, "Spending type", -1)),
|
|
181
181
|
m(M, {
|
|
182
182
|
"model-value": e(v),
|
|
183
183
|
"onUpdate:modelValue": t[6] || (t[6] = (r) => {
|
|
184
184
|
e(v) != r && (l("update:model-value", {
|
|
185
|
-
...
|
|
185
|
+
...o.modelValue ?? {
|
|
186
186
|
type: "PROPORTIONAL",
|
|
187
187
|
amount: 1,
|
|
188
188
|
every: 1
|
|
@@ -195,23 +195,23 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
195
195
|
default: f(() => [
|
|
196
196
|
m(L, {
|
|
197
197
|
label: "Amount spent",
|
|
198
|
-
sublabel: `Receive ${e(
|
|
198
|
+
sublabel: `Receive ${e(i)} by amount spent`,
|
|
199
199
|
value: !1
|
|
200
200
|
}, {
|
|
201
201
|
label: f(() => {
|
|
202
202
|
var r, V;
|
|
203
203
|
return [
|
|
204
204
|
t[8] || (t[8] = n("div", { class: "fm-typo-en-body-lg-400" }, "Amount spent", -1)),
|
|
205
|
-
n("div", ve, " Receive " + I(e(
|
|
205
|
+
n("div", ve, " Receive " + I(e(i)) + " by amount spent ", 1),
|
|
206
206
|
e(v) ? P("", !0) : (d(), h("div", be, [
|
|
207
207
|
m($, {
|
|
208
|
-
label: `Receive ${e(
|
|
208
|
+
label: `Receive ${e(i)}(s)`,
|
|
209
209
|
inputmode: "decimal",
|
|
210
210
|
class: "flex-1",
|
|
211
|
-
"model-value": ((r =
|
|
212
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
213
|
-
...
|
|
214
|
-
amount:
|
|
211
|
+
"model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
|
|
212
|
+
"onUpdate:modelValue": t[1] || (t[1] = (u) => l("update:model-value", {
|
|
213
|
+
...o.modelValue ?? { type: "FIXED" },
|
|
214
|
+
amount: u
|
|
215
215
|
}))
|
|
216
216
|
}, null, 8, ["label", "model-value"]),
|
|
217
217
|
t[7] || (t[7] = n("div", { class: "xs:py-4 text-center" }, "for every", -1)),
|
|
@@ -219,10 +219,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
219
219
|
label: `Amount spend (${e(X.Config).getCountry().currency.symbol})`,
|
|
220
220
|
class: "flex-1",
|
|
221
221
|
inputmode: "decimal",
|
|
222
|
-
"model-value": ((V =
|
|
223
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
224
|
-
...
|
|
225
|
-
every:
|
|
222
|
+
"model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
|
|
223
|
+
"onUpdate:modelValue": t[2] || (t[2] = (u) => l("update:model-value", {
|
|
224
|
+
...o.modelValue,
|
|
225
|
+
every: u
|
|
226
226
|
}))
|
|
227
227
|
}, {
|
|
228
228
|
prepend: f(() => [
|
|
@@ -237,7 +237,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
237
237
|
}, 8, ["sublabel"]),
|
|
238
238
|
m(L, {
|
|
239
239
|
label: "Product bought",
|
|
240
|
-
sublabel: `Receive ${e(
|
|
240
|
+
sublabel: `Receive ${e(i)} by product bought`,
|
|
241
241
|
value: !0,
|
|
242
242
|
disabled: !e(O).isPremium
|
|
243
243
|
}, {
|
|
@@ -245,24 +245,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
245
245
|
var r, V;
|
|
246
246
|
return [
|
|
247
247
|
n("div", ge, [
|
|
248
|
-
t[9] || (t[9] = S(" Product bought ")),
|
|
248
|
+
t[9] || (t[9] = S(" Product bought ", -1)),
|
|
249
249
|
m(j, { variant: "premium" })
|
|
250
250
|
]),
|
|
251
|
-
n("div", xe, " Receive " + I(e(
|
|
251
|
+
n("div", xe, " Receive " + I(e(i)) + " by product bought ", 1),
|
|
252
252
|
e(v) ? (d(), h("div", Ve, [
|
|
253
253
|
n("div", Fe, [
|
|
254
254
|
m(ie, {
|
|
255
255
|
"model-value": s.modelValue.property || [],
|
|
256
|
-
onConfirm: t[3] || (t[3] = (
|
|
257
|
-
...
|
|
258
|
-
property:
|
|
256
|
+
onConfirm: t[3] || (t[3] = (u) => l("update:model-value", {
|
|
257
|
+
...o.modelValue,
|
|
258
|
+
property: u
|
|
259
259
|
}))
|
|
260
260
|
}, {
|
|
261
261
|
"side-sheet-button": f(() => {
|
|
262
|
-
var
|
|
262
|
+
var u, E;
|
|
263
263
|
return [
|
|
264
264
|
m(G, {
|
|
265
|
-
label: (
|
|
265
|
+
label: (u = s.modelValue.property) != null && u.length ? `${(E = s.modelValue.property) == null ? void 0 : E.length} product(s) selected` : "Select product",
|
|
266
266
|
icon: "link",
|
|
267
267
|
variant: "secondary"
|
|
268
268
|
}, null, 8, ["label"])
|
|
@@ -274,24 +274,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
274
274
|
n("div", Ce, [
|
|
275
275
|
m($, {
|
|
276
276
|
inputmode: "decimal",
|
|
277
|
-
label: `Receive ${e(
|
|
277
|
+
label: `Receive ${e(i)}(s)`,
|
|
278
278
|
class: "flex-1",
|
|
279
|
-
"model-value": ((r =
|
|
280
|
-
"onUpdate:modelValue": t[4] || (t[4] = (
|
|
281
|
-
...
|
|
282
|
-
amount:
|
|
279
|
+
"model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
|
|
280
|
+
"onUpdate:modelValue": t[4] || (t[4] = (u) => l("update:model-value", {
|
|
281
|
+
...o.modelValue ?? { type: "FIXED" },
|
|
282
|
+
amount: u
|
|
283
283
|
}))
|
|
284
284
|
}, null, 8, ["label", "model-value"]),
|
|
285
285
|
t[10] || (t[10] = n("div", { class: "xs:py-4 text-center" }, "for every", -1)),
|
|
286
286
|
m($, {
|
|
287
287
|
label: "Item purchased",
|
|
288
288
|
class: "flex-1",
|
|
289
|
-
"model-value": ((V =
|
|
289
|
+
"model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
|
|
290
290
|
inputmode: "numeric",
|
|
291
291
|
"max-fraction-digits": 0,
|
|
292
|
-
"onUpdate:modelValue": t[5] || (t[5] = (
|
|
293
|
-
...
|
|
294
|
-
every:
|
|
292
|
+
"onUpdate:modelValue": t[5] || (t[5] = (u) => l("update:model-value", {
|
|
293
|
+
...o.modelValue,
|
|
294
|
+
every: u
|
|
295
295
|
}))
|
|
296
296
|
}, null, 8, ["model-value"])
|
|
297
297
|
])
|
|
@@ -305,16 +305,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
305
305
|
}, 8, ["model-value"])
|
|
306
306
|
], 64)) : P("", !0)
|
|
307
307
|
]),
|
|
308
|
-
|
|
308
|
+
o.errorText || e(x).length > 0 ? (d(), F(Z, {
|
|
309
309
|
key: 0,
|
|
310
310
|
class: "!mt-4",
|
|
311
|
-
text:
|
|
311
|
+
text: o.errorText || e(g).helperText(e(x), ""),
|
|
312
312
|
state: "error"
|
|
313
313
|
}, null, 8, ["text"])) : P("", !0)
|
|
314
314
|
]);
|
|
315
315
|
};
|
|
316
316
|
}
|
|
317
|
-
}), Ie = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" },
|
|
317
|
+
}), Ie = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, _e = /* @__PURE__ */ A({
|
|
318
318
|
__name: "VoucherEditor",
|
|
319
319
|
props: {
|
|
320
320
|
modelValue: {
|
|
@@ -325,27 +325,27 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
325
325
|
}
|
|
326
326
|
},
|
|
327
327
|
emits: ["update:model-value", "update:reward-image"],
|
|
328
|
-
setup(
|
|
328
|
+
setup(o, { emit: T }) {
|
|
329
329
|
const { t: O } = me(), l = w(
|
|
330
|
-
|
|
330
|
+
o.modelValue ?? re("VOUCHER", {
|
|
331
331
|
business: te().currentBusiness.value._id,
|
|
332
332
|
name: ""
|
|
333
333
|
})
|
|
334
|
-
), y = Q,
|
|
335
|
-
return (x,
|
|
334
|
+
), y = Q, i = T;
|
|
335
|
+
return (x, a) => {
|
|
336
336
|
var b, k, p;
|
|
337
337
|
const v = c("FmTextarea"), R = c("FmHelperText");
|
|
338
338
|
return d(), h(U, null, [
|
|
339
339
|
m(le, {
|
|
340
340
|
modelValue: e(l).name,
|
|
341
|
-
"onUpdate:modelValue":
|
|
341
|
+
"onUpdate:modelValue": a[0] || (a[0] = (t) => e(l).name = t),
|
|
342
342
|
label: "Voucher name",
|
|
343
343
|
schema: e(g).typeAtPath(e(y), "name", [e(l).type])
|
|
344
344
|
}, null, 8, ["modelValue", "schema"]),
|
|
345
345
|
m(v, {
|
|
346
346
|
class: "!mb-[-16px]",
|
|
347
347
|
modelValue: e(l).description,
|
|
348
|
-
"onUpdate:modelValue":
|
|
348
|
+
"onUpdate:modelValue": a[1] || (a[1] = (t) => e(l).description = t),
|
|
349
349
|
rules: [e(g).ruleAtPath(e(y), "description", [e(l).type])]
|
|
350
350
|
}, {
|
|
351
351
|
label: f(() => [
|
|
@@ -359,16 +359,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
359
359
|
_: 1
|
|
360
360
|
}, 8, ["modelValue", "rules"]),
|
|
361
361
|
n("div", Ie, [
|
|
362
|
-
|
|
362
|
+
a[6] || (a[6] = n("div", null, "Voucher description should not exceed 200 characters.", -1)),
|
|
363
363
|
n("div", null, I(((b = e(l).description) == null ? void 0 : b.length) ?? 0) + "/200", 1)
|
|
364
364
|
]),
|
|
365
365
|
m(oe, {
|
|
366
366
|
class: "w-1/2 xs:w-2/3",
|
|
367
367
|
"aspect-ratio": "16/9",
|
|
368
|
-
file:
|
|
368
|
+
file: o.rewardImage ?? void 0,
|
|
369
369
|
thumbnail: e(l).image ?? void 0,
|
|
370
|
-
"onUpdate:file":
|
|
371
|
-
|
|
370
|
+
"onUpdate:file": a[2] || (a[2] = async (t) => {
|
|
371
|
+
i("update:reward-image", t), t || (e(l).image = null);
|
|
372
372
|
})
|
|
373
373
|
}, {
|
|
374
374
|
label: f(() => [
|
|
@@ -381,10 +381,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
381
381
|
]),
|
|
382
382
|
_: 1
|
|
383
383
|
}, 8, ["file", "thumbnail"]),
|
|
384
|
-
|
|
384
|
+
a[7] || (a[7] = n("div", { class: "fm-typo-en-title-sm-800" }, "Discount", -1)),
|
|
385
385
|
m(ae, {
|
|
386
386
|
"model-value": e(l).extras.effect,
|
|
387
|
-
"onUpdate:modelValue":
|
|
387
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => e(l).extras.effect = t)
|
|
388
388
|
}, null, 8, ["model-value"]),
|
|
389
389
|
e(l).extras.effect == null ? (d(), F(R, {
|
|
390
390
|
key: 0,
|
|
@@ -392,19 +392,19 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
392
392
|
text: e(O)("connect.campaign.common.effect_required"),
|
|
393
393
|
state: "error"
|
|
394
394
|
}, null, 8, ["text"])) : P("", !0),
|
|
395
|
-
|
|
395
|
+
a[8] || (a[8] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Usage configuration", -1)),
|
|
396
396
|
m(ne, {
|
|
397
397
|
"model-value": e(l).options,
|
|
398
398
|
"no-campaign": e(l).noCampaign,
|
|
399
|
-
"onUpdate:modelValue":
|
|
399
|
+
"onUpdate:modelValue": a[4] || (a[4] = (t) => e(l).options = t),
|
|
400
400
|
schema: e(g).typeAtPath(e(y), "options", ["VOUCHER"])
|
|
401
401
|
}, null, 8, ["model-value", "no-campaign", "schema"]),
|
|
402
|
-
|
|
402
|
+
a[9] || (a[9] = n("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
|
|
403
403
|
e(l).type === "VOUCHER" ? (d(), F(se, {
|
|
404
404
|
key: 1,
|
|
405
405
|
"model-value": ((p = (k = e(l).extras) == null ? void 0 : k.targetLocation) == null ? void 0 : p.map(String)) ?? null,
|
|
406
406
|
type: "select",
|
|
407
|
-
"onUpdate:modelValue":
|
|
407
|
+
"onUpdate:modelValue": a[5] || (a[5] = (t) => {
|
|
408
408
|
e(l).extras.targetLocation = t;
|
|
409
409
|
}),
|
|
410
410
|
rules: [e(g).ruleAtPath(e(y), "extras.targetLocation")]
|
|
@@ -414,6 +414,6 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ie = /* @__PURE__ */ A({
|
|
|
414
414
|
}
|
|
415
415
|
});
|
|
416
416
|
export {
|
|
417
|
-
|
|
418
|
-
|
|
417
|
+
De as _,
|
|
418
|
+
_e as a
|
|
419
419
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
|
|
2
2
|
import { Z as d } from "./zod-Bg2FbC-D.js";
|
|
3
|
-
import { u as V } from "./vue-i18n-
|
|
3
|
+
import { u as V } from "./vue-i18n-CzjqSUwt.js";
|
|
4
4
|
const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-fm-color-typo-tertiary"
|