@feedmepos/mf-connect 0.1.98-beta.57 → 0.1.98-beta.59
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/{App-BO2Eyrad.js → App-EPMWVhRl.js} +8 -8
- package/dist/{AuditLogs-CduIANMo.js → AuditLogs-DGfgg_B0.js} +11 -11
- package/dist/{Bin-QF11ntmi.js → Bin-CAoKk2Qu.js} +8 -8
- package/dist/{Broadcast-BTM4RQ69.js → Broadcast-DeaN6hHR.js} +11 -11
- package/dist/{CampaignAnalytic-ClDZaoE6.js → CampaignAnalytic-DVmErhEK.js} +510 -506
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-dZqVizdR.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BVdCt9UN.js} +6 -6
- package/dist/{Card-Q1UzqccH.js → Card-DEaJvF6q.js} +21 -21
- package/dist/{Collections-CJXgekb9.js → Collections-B_G2R-pT.js} +8 -8
- package/dist/{Credit--59mQFS2.js → Credit-Bxbo5feT.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DgX09eKJ.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CbXXEb_b.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CHZ-Bb7m.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CULi_DuX.js} +54 -55
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BDn3DDAD.js → EffectSheet.vue_vue_type_style_index_0_lang-CqTVK4kx.js} +12 -12
- package/dist/{Experience-Co4JhNR2.js → Experience-C5n7DOny.js} +12 -12
- package/dist/{FileSaver.min-5YaSibh7.js → FileSaver.min-CmvwRmjQ.js} +1 -1
- package/dist/{Game-Clajtl0A.js → Game-CV2kGDYk.js} +13 -13
- package/dist/{GiftCardSetup-D8aAX5Hg.js → GiftCardSetup-Du0JaAOY.js} +9 -9
- package/dist/{Grab-f9NlRetE.js → Grab-D-tMg9Xk.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-D1IrKRz8.js → ImageInput.vue_vue_type_script_setup_true_lang-BzOJjs_7.js} +1 -1
- package/dist/{Index-DkfGmK1a.js → Index-FgWeYPvB.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DnXFpSbG.js → LocationPicker.vue_vue_type_script_setup_true_lang-DZAi88YS.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DUvd2kQ3.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BzWtxWET.js} +1 -1
- package/dist/{LoyaltyDashboard-Cv5WHOM5.js → LoyaltyDashboard-ovoxVpEh.js} +17 -17
- package/dist/{MainLayout-DPP0WH2J.js → MainLayout-DT2sd1UQ.js} +3 -3
- package/dist/{Marketing-DTzUSHMW.js → Marketing-B8eY1Mz8.js} +4 -4
- package/dist/{MarketingMaterialEdit-EQdRBYe_.js → MarketingMaterialEdit-9lMMK6wr.js} +6 -6
- package/dist/{Member-mmPtQpcJ.js → Member-BBQDC7qH.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CaykyGpo.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BfqxFlWd.js} +23 -23
- package/dist/{MemberImportHistory-CosGWK6J.js → MemberImportHistory-2FCTkHkQ.js} +7 -7
- package/dist/{MemberList-B25FChyx.js → MemberList-BsxZ9Caq.js} +14 -14
- package/dist/{MemberTransactions-C1Iwr2PC.js → MemberTransactions-D1vVtuKx.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Dy76Hi7S.js → MessageInput.vue_vue_type_script_setup_true_lang-odhcQ_g1.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BjKY7d9t.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-ELm3_clS.js} +1 -1
- package/dist/{Mission-DBFYv752.js → Mission-C28mUqvH.js} +13 -13
- package/dist/{Overview-tQE2krzT.js → Overview-DeBS_7vN.js} +19 -19
- package/dist/{Overview-DkvQdk3p.js → Overview-DyogLHhx.js} +4 -4
- package/dist/{Point-DFGLdpqH.js → Point-Bv9593In.js} +12 -12
- package/dist/{Promotion-B0TPgTRJ.js → Promotion-BQfEbQkK.js} +13 -13
- package/dist/{Queue-Pai-jb9x.js → Queue-BsA_SIPG.js} +11 -11
- package/dist/{Record-BNOdMHa9.js → Record-CaNv-a5D.js} +9 -9
- package/dist/{Review-BUfQIAIP.js → Review-jKKOChip.js} +2 -2
- package/dist/{ReviewFacebookCallback-D6jfeakg.js → ReviewFacebookCallback-DRVDBPBQ.js} +5 -5
- package/dist/{ReviewGoogleCallback-Ctl8DNMj.js → ReviewGoogleCallback-BSUkwi1N.js} +5 -5
- package/dist/{Reward-Bfk-Yt4h.js → Reward-CLvkIAFR.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-c48TxM6-.js → RewardGroup.vue_vue_type_script_setup_true_lang-C8We6wGX.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-nJoAjC4P.js → RuleGroup.vue_vue_type_script_setup_true_lang-uYcE0jWt.js} +68 -75
- package/dist/{Segment-CzL0P-1e.js → Segment-DpRd1m-s.js} +24 -24
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DcMiX5P8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B8gyDyD2.js} +13 -13
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-1ADUHq-4.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BhMPpjCt.js} +4 -4
- package/dist/{Setting-B8dkbZ7G.js → Setting-d3jG5J7g.js} +14 -14
- package/dist/{SettingAdvertisements-z-Nx97_Q.js → SettingAdvertisements-D7oRdpHs.js} +12 -12
- package/dist/{Settings-Bj7Sgsxv.js → Settings-CEZAzSFA.js} +5 -5
- package/dist/{Store-BibnCePN.js → Store-Df7Oj7Dr.js} +25 -25
- package/dist/{StoreRewards-s_1EUC35.js → StoreRewards-DEQWavMf.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-WqQHMVgu.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BwDMj8_l.js} +24 -24
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-Dh3A-USI.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BSM-9-ni.js} +2 -2
- package/dist/{Tier-DSIHI9NJ.js → Tier-BsBHMN0i.js} +141 -144
- package/dist/{Title-Cl3K5L3e.js → Title-CUj_GhCA.js} +21 -21
- package/dist/{Transaction-CS0rtyng.js → Transaction-8Osuak54.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Z-8TTRPC.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BoZzhVxU.js} +6 -6
- package/dist/{Voucher-CR_w7fqQ.js → Voucher-B9TFCpE0.js} +14 -14
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-WsAmkz61.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DqwrIEBF.js} +115 -121
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BBSyDPhQ.js → ZodTextField.vue_vue_type_script_setup_true_lang-BFqTGaiN.js} +2 -2
- package/dist/{app-xUS3J9z2.js → app-JaMrl1Q3.js} +24648 -24383
- package/dist/app.js +1 -1
- package/dist/{base.export-DK6-6AZL.js → base.export-C-XjeO_8.js} +2 -2
- package/dist/{business-DzXKekqM.js → business-qX066mkW.js} +1 -1
- package/dist/{campaign-BLRQqfj4.js → campaign-DAqkMrCh.js} +8 -8
- package/dist/{campaign-B6DZ0Vj0.js → campaign-DcxZvdiX.js} +2 -2
- package/dist/{campaign.enum-DGPxPvey.js → campaign.enum-qJ9W4VTb.js} +1 -1
- package/dist/{campaign.fn-DksaoBjs.js → campaign.fn-C_W3zAbu.js} +162 -162
- package/dist/{collectible.enum-J15b2Jl2.js → collectible.enum-cS4F2xlG.js} +1 -1
- package/dist/{collection.fn-CKReS8ra.js → collection.fn-BsC5X2cl.js} +2 -2
- package/dist/{currency-q6M_hk-7.js → currency-DS_9mv_r.js} +1 -1
- package/dist/{duplicateCampaign-CdvzdrHQ.js → duplicateCampaign-BLynLq03.js} +11 -11
- package/dist/{effect-CyAwjL7O.js → effect-eqhKpbLr.js} +1 -1
- package/dist/{email-addresses-BWcWQegr.js → email-addresses-w9Jhh9jb.js} +2 -2
- package/dist/{helper-DjKrL_4r.js → helper-DnJGcKGJ.js} +1 -1
- package/dist/{index-zbhhxeLU.js → index-3XuFPLyU.js} +7 -7
- package/dist/{index-BkqVgRzY.js → index-BUftE5lT.js} +1 -1
- package/dist/{index-CGtNEWtn.js → index-BfwzTOs6.js} +1 -1
- package/dist/{index-D9K94RyI.js → index-BjgdP3hm.js} +4 -5
- package/dist/{index-xgOeAWKf.js → index-Bou4dwLI.js} +1 -1
- package/dist/{index-DOLjFevA.js → index-BpAcxrzl.js} +1 -1
- package/dist/{index-DIjHN6qv.js → index-C2jIeb7J.js} +1 -1
- package/dist/{index-BRKM71-O.js → index-C3zKTv5Y.js} +3 -3
- package/dist/{index-DKZwHlaX.js → index-C7q0a9DM.js} +1 -1
- package/dist/{index-DunfF8Ht.js → index-C99Zc-Vi.js} +2 -2
- package/dist/{index-D4cliPZ8.js → index-CW90K2Di.js} +5 -5
- package/dist/{index-CuYqhHzD.js → index-CfL9lKtR.js} +2 -2
- package/dist/{index-DSqT-Q4v.js → index-DQu_MaSm.js} +1 -1
- package/dist/{index-gwKw1aNK.js → index-Db5_EuHB.js} +5 -5
- package/dist/{index-D1enMqka.js → index-DwvbwfkH.js} +3 -3
- package/dist/{index-DSpG12an.js → index-E53ZVbQF.js} +6 -6
- package/dist/{index-Cux9v7uP.js → index-iYcCV_pn.js} +3 -3
- package/dist/{index-B02qZDQl.js → index-vUdF4o96.js} +2 -2
- package/dist/{index.esm2017-BUXgQjc4.js → index.esm2017-fD_yn74v.js} +1 -1
- package/dist/{loading-JXWN1mlR.js → loading-D0ISq3i1.js} +1 -1
- package/dist/{lodash-BAs6aERf.js → lodash-DpkQx-iA.js} +1 -1
- package/dist/{member-import-C9T8InBc.js → member-import-BWHMGlEk.js} +1 -1
- package/dist/membership-DUGWL41O.js +274 -0
- package/dist/{money-JjwvMRyS.js → money-IiR3bJjv.js} +1 -1
- package/dist/{number-DN2HZqPg.js → number-DQj3ZaBn.js} +1 -1
- package/dist/{objectid-mKRbFu1z.js → objectid-0QTNkJtB.js} +7 -7
- package/dist/{plugins-BLbiKHAu.js → plugins-Dy6ENTEO.js} +3 -3
- package/dist/{reward-BxZGVpM2.js → reward-C44IabhB.js} +1 -1
- package/dist/{rule-CZafBeMP.js → rule-_e1tnZLU.js} +8 -8
- package/dist/style.css +1 -1
- package/dist/{template-C1a6vJYx.js → template-DTM6E2ym.js} +6 -6
- package/dist/{timezone-C6Gli671.js → timezone-DKvRUDVT.js} +1 -1
- package/dist/{transaction.fn-C4TR2679.js → transaction.fn-BOBilrwc.js} +1 -1
- package/dist/{trigger-CR-PIXPO.js → trigger-BOpVvQBM.js} +5 -5
- package/dist/{useMarketingMaterialActions-BgyP0DyO.js → useMarketingMaterialActions-B1TUZegb.js} +3 -3
- package/dist/{usePagination-CodnCuRS.js → usePagination-D2aiyXMK.js} +1 -1
- package/dist/{user-opdeV_ks.js → user-BgRV4fLO.js} +1 -1
- package/dist/{vue-i18n-CCRzsQae.js → vue-i18n-CA3hRpIg.js} +583 -583
- package/dist/{xlsx-UBnlo3Sn.js → xlsx-5tGMBewT.js} +440 -440
- package/dist/{zod-BEd8s7kE.js → zod-UhNNazW6.js} +1 -1
- package/package.json +3 -4
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DK2ZbMVT.js +0 -181
- package/dist/membership-CdIORwnn.js +0 -255
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { defineComponent as B, ref as
|
|
2
|
-
import { u as G } from "./vue-i18n-
|
|
3
|
-
import { c as j } from "./index-
|
|
4
|
-
import { g as W, F as Y } from "./index-
|
|
5
|
-
import { C as ee } from "./membership-
|
|
6
|
-
import { Z as
|
|
7
|
-
import {
|
|
8
|
-
import { u as le } from "./business-
|
|
1
|
+
import { defineComponent as B, ref as L, resolveComponent as g, openBlock as p, createBlock as O, withCtx as y, renderSlot as z, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as T, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as I, resolveDynamicComponent as H } from "vue";
|
|
2
|
+
import { u as G } from "./vue-i18n-CA3hRpIg.js";
|
|
3
|
+
import { c as j } from "./index-CfL9lKtR.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-DwvbwfkH.js";
|
|
5
|
+
import { C as ee } from "./membership-DUGWL41O.js";
|
|
6
|
+
import { Z as x } from "./zod-UhNNazW6.js";
|
|
7
|
+
import { J as te } from "./app-JaMrl1Q3.js";
|
|
8
|
+
import { u as le } from "./business-qX066mkW.js";
|
|
9
9
|
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
10
|
-
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
11
|
-
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
13
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { i as re } from "./helper-
|
|
10
|
+
import { _ as ne } from "./ZodTextField.vue_vue_type_script_setup_true_lang-BFqTGaiN.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BzOJjs_7.js";
|
|
12
|
+
import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-CqTVK4kx.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BSM-9-ni.js";
|
|
14
|
+
import { i as re } from "./helper-DnJGcKGJ.js";
|
|
15
15
|
const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
16
16
|
__name: "MenuSheet",
|
|
17
17
|
props: {
|
|
@@ -19,25 +19,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
19
19
|
filterItems: { type: Function }
|
|
20
20
|
},
|
|
21
21
|
emits: ["confirm"],
|
|
22
|
-
setup(o, { emit:
|
|
23
|
-
const C =
|
|
22
|
+
setup(o, { emit: _ }) {
|
|
23
|
+
const C = L([]), l = L(!1);
|
|
24
24
|
function t() {
|
|
25
|
-
|
|
26
|
-
(v = C.value) == null || v.onConfirm();
|
|
25
|
+
u("confirm", C.value), l.value = !1;
|
|
27
26
|
}
|
|
28
|
-
const u =
|
|
29
|
-
return (
|
|
30
|
-
const n = g("FmField"),
|
|
31
|
-
return
|
|
27
|
+
const u = _;
|
|
28
|
+
return (h, c) => {
|
|
29
|
+
const n = g("FmField"), P = g("FmButton"), v = g("FmSideSheet");
|
|
30
|
+
return p(), O(v, {
|
|
32
31
|
modelValue: l.value,
|
|
33
|
-
"onUpdate:modelValue":
|
|
32
|
+
"onUpdate:modelValue": c[2] || (c[2] = (b) => l.value = b),
|
|
34
33
|
title: "Select Items",
|
|
35
34
|
"close-button": !1,
|
|
36
35
|
"dismiss-away": !0,
|
|
37
36
|
"max-width": 560
|
|
38
37
|
}, {
|
|
39
38
|
"side-sheet-button": y(() => [
|
|
40
|
-
|
|
39
|
+
z(h.$slots, "side-sheet-button", {}, () => [
|
|
41
40
|
m(n, { class: "text-fm-color-typo-tertiary cursor-pointer" }, {
|
|
42
41
|
default: y(() => [
|
|
43
42
|
U(f(o.modelValue.length) + " item(s) selected ", 1)
|
|
@@ -48,12 +47,12 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
48
47
|
]),
|
|
49
48
|
"side-sheet-footer": y(() => [
|
|
50
49
|
s("div", ue, [
|
|
51
|
-
m(
|
|
50
|
+
m(P, {
|
|
52
51
|
variant: "tertiary",
|
|
53
|
-
onClick:
|
|
52
|
+
onClick: c[1] || (c[1] = (b) => l.value = !1),
|
|
54
53
|
label: "Cancel"
|
|
55
54
|
}),
|
|
56
|
-
m(
|
|
55
|
+
m(P, {
|
|
57
56
|
variant: "primary",
|
|
58
57
|
onClick: t,
|
|
59
58
|
label: "Confirm"
|
|
@@ -61,17 +60,12 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
61
60
|
])
|
|
62
61
|
]),
|
|
63
62
|
default: y(() => [
|
|
64
|
-
m(te, {
|
|
63
|
+
m(e(te), {
|
|
65
64
|
class: "h-full",
|
|
66
|
-
"max-height": 0,
|
|
67
|
-
ref_key: "selectItemRef",
|
|
68
|
-
ref: C,
|
|
69
65
|
"initial-value": o.modelValue,
|
|
70
66
|
"filter-items": o.filterItems,
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
}, null, 8, ["initial-value", "filter-items", "on-complete"])
|
|
67
|
+
onChange: c[0] || (c[0] = (b) => C.value = b)
|
|
68
|
+
}, null, 8, ["initial-value", "filter-items"])
|
|
75
69
|
]),
|
|
76
70
|
_: 3
|
|
77
71
|
}, 8, ["modelValue"]);
|
|
@@ -80,10 +74,10 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
80
74
|
}), de = { class: "space-y-24" }, pe = { class: "grid grid-cols-2 gap-16" }, fe = { class: "fm-typo-en-title-sm-800" }, ge = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, ye = { class: "space-y-16" }, be = { class: "fm-typo-en-body-lg-600" }, ve = { class: "fm-typo-en-body-lg-400" }, xe = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ve = {
|
|
81
75
|
key: 0,
|
|
82
76
|
class: "xs:!block flex gap-16 items-center pt-8"
|
|
83
|
-
}, Oe = { class: "xs:py-4 text-center" }, Fe = { class: "fm-typo-en-body-lg-400" },
|
|
77
|
+
}, Oe = { class: "xs:py-4 text-center" }, Fe = { class: "fm-typo-en-body-lg-400" }, Ce = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, he = {
|
|
84
78
|
key: 0,
|
|
85
79
|
class: "pt-8 space-y-8"
|
|
86
|
-
},
|
|
80
|
+
}, Pe = { class: "flex items-center gap-16 xs:block xs:space-y-8 w-fit" }, Te = { class: "xs:!block flex gap-16 items-center" }, Ie = { class: "xs:py-4 text-center" }, je = /* @__PURE__ */ B({
|
|
87
81
|
__name: "EarningOptionInput",
|
|
88
82
|
props: {
|
|
89
83
|
modelValue: {
|
|
@@ -100,9 +94,9 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
100
94
|
}
|
|
101
95
|
},
|
|
102
96
|
emits: ["update:model-value"],
|
|
103
|
-
setup(o, { emit:
|
|
104
|
-
var b,
|
|
105
|
-
const C = le(), { t: l } = G(), t = o, u =
|
|
97
|
+
setup(o, { emit: _ }) {
|
|
98
|
+
var b, E, S;
|
|
99
|
+
const C = le(), { t: l } = G(), t = o, u = _, h = N(
|
|
106
100
|
() => [
|
|
107
101
|
{
|
|
108
102
|
label: l("connect.campaign.earningOption.type.PROPORTIONAL.label"),
|
|
@@ -115,18 +109,18 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
115
109
|
value: "FIXED"
|
|
116
110
|
}
|
|
117
111
|
].filter((a) => {
|
|
118
|
-
var i,
|
|
119
|
-
return t.fixedType || ((
|
|
112
|
+
var i, F;
|
|
113
|
+
return t.fixedType || ((F = (i = t.extras) == null ? void 0 : i.campaign) == null ? void 0 : F.event.type) != "BILL_COMPLETED" ? a.value == "FIXED" : !0;
|
|
120
114
|
})
|
|
121
|
-
),
|
|
122
|
-
var i,
|
|
115
|
+
), c = N(() => {
|
|
116
|
+
var i, F;
|
|
123
117
|
const a = t.extras && "configs" in t.extras ? t.extras.configs.type : (i = t.extras) == null ? void 0 : i.campaign.type;
|
|
124
|
-
return (((
|
|
118
|
+
return (((F = ee[a]) == null ? void 0 : F.name) || "reward").toLowerCase();
|
|
125
119
|
}), n = N(() => {
|
|
126
120
|
const a = W.safeParse(t.modelValue);
|
|
127
121
|
return a.success ? [] : a.error.errors;
|
|
128
122
|
});
|
|
129
|
-
function
|
|
123
|
+
function P(a) {
|
|
130
124
|
var i;
|
|
131
125
|
a != ((i = t.modelValue) == null ? void 0 : i.type) && u(
|
|
132
126
|
"update:model-value",
|
|
@@ -140,24 +134,24 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
140
134
|
}
|
|
141
135
|
);
|
|
142
136
|
}
|
|
143
|
-
const
|
|
144
|
-
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((
|
|
137
|
+
const v = L(
|
|
138
|
+
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((S = (E = t.modelValue) == null ? void 0 : E.property) != null && S.length) || !1
|
|
145
139
|
);
|
|
146
140
|
return (a, i) => {
|
|
147
141
|
var D, $, X;
|
|
148
|
-
const
|
|
149
|
-
return
|
|
142
|
+
const F = g("FmCard"), R = g("FmStepperField"), A = g("FmRadio"), J = g("FmPill"), M = g("FmButton"), Z = g("FmRadioGroup"), q = g("FmHelperText");
|
|
143
|
+
return p(), T("div", de, [
|
|
150
144
|
s("div", pe, [
|
|
151
|
-
(
|
|
152
|
-
var
|
|
153
|
-
return
|
|
145
|
+
(p(!0), T(w, null, K(e(h), (r) => {
|
|
146
|
+
var V, d;
|
|
147
|
+
return p(), O(F, {
|
|
154
148
|
variant: "outlined",
|
|
155
149
|
class: Q(["p-16 space-y-8 h-full cursor-pointer select-none xs:col-span-2", {
|
|
156
|
-
"col-span-2": e(
|
|
157
|
-
"border-fm-color-primary bg-fm-color-system-warning-100 hover:border-[var(--fm-color-system-orange-300)]": ((
|
|
158
|
-
"hover:bg-fm-color-opacity-sm": ((
|
|
150
|
+
"col-span-2": e(h).length == 1,
|
|
151
|
+
"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,
|
|
152
|
+
"hover:bg-fm-color-opacity-sm": ((d = o.modelValue) == null ? void 0 : d.type) != r.value
|
|
159
153
|
}]),
|
|
160
|
-
onClick: (
|
|
154
|
+
onClick: (k) => P(r.value),
|
|
161
155
|
key: r.value
|
|
162
156
|
}, {
|
|
163
157
|
default: y(() => [
|
|
@@ -169,21 +163,21 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
169
163
|
}), 128))
|
|
170
164
|
]),
|
|
171
165
|
s("div", ye, [
|
|
172
|
-
((D = o.modelValue) == null ? void 0 : D.type) === "FIXED" ? (
|
|
166
|
+
((D = o.modelValue) == null ? void 0 : D.type) === "FIXED" ? (p(), O(R, {
|
|
173
167
|
key: 0,
|
|
174
|
-
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(
|
|
168
|
+
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
|
|
175
169
|
class: "flex-1",
|
|
176
170
|
"model-value": (($ = o.modelValue) == null ? void 0 : $.amount) ?? null,
|
|
177
171
|
"onUpdate:modelValue": i[0] || (i[0] = (r) => u("update:model-value", {
|
|
178
172
|
...o.modelValue ?? { type: "FIXED" },
|
|
179
173
|
amount: r
|
|
180
174
|
}))
|
|
181
|
-
}, null, 8, ["label", "model-value"])) : ((X = o.modelValue) == null ? void 0 : X.type) === "PROPORTIONAL" ? (
|
|
175
|
+
}, null, 8, ["label", "model-value"])) : ((X = o.modelValue) == null ? void 0 : X.type) === "PROPORTIONAL" ? (p(), T(w, { key: 1 }, [
|
|
182
176
|
s("div", be, f(e(l)("connect.campaign.earningOption.spendingType")), 1),
|
|
183
|
-
m(
|
|
184
|
-
"model-value": e(
|
|
177
|
+
m(Z, {
|
|
178
|
+
"model-value": e(v),
|
|
185
179
|
"onUpdate:modelValue": i[6] || (i[6] = (r) => {
|
|
186
|
-
e(
|
|
180
|
+
e(v) != r && (u("update:model-value", {
|
|
187
181
|
...o.modelValue ?? {
|
|
188
182
|
type: "PROPORTIONAL",
|
|
189
183
|
amount: 1,
|
|
@@ -191,40 +185,40 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
191
185
|
},
|
|
192
186
|
property: r ? [] : void 0,
|
|
193
187
|
every: 1
|
|
194
|
-
}),
|
|
188
|
+
}), v.value = r);
|
|
195
189
|
})
|
|
196
190
|
}, {
|
|
197
191
|
default: y(() => [
|
|
198
192
|
m(A, {
|
|
199
193
|
label: e(l)("connect.campaign.earningOption.amountSpent.label"),
|
|
200
|
-
sublabel: e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(
|
|
194
|
+
sublabel: e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(c) }),
|
|
201
195
|
value: !1
|
|
202
196
|
}, {
|
|
203
197
|
label: y(() => {
|
|
204
|
-
var r,
|
|
198
|
+
var r, V;
|
|
205
199
|
return [
|
|
206
200
|
s("div", ve, f(e(l)("connect.campaign.earningOption.amountSpent.label")), 1),
|
|
207
|
-
s("div", xe, f(e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(
|
|
208
|
-
e(
|
|
209
|
-
m(
|
|
210
|
-
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(
|
|
201
|
+
s("div", xe, f(e(l)("connect.campaign.earningOption.amountSpent.sublabel", { configName: e(c) })), 1),
|
|
202
|
+
e(v) ? I("", !0) : (p(), T("div", Ve, [
|
|
203
|
+
m(R, {
|
|
204
|
+
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
|
|
211
205
|
inputmode: "decimal",
|
|
212
206
|
class: "flex-1",
|
|
213
207
|
"model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
|
|
214
|
-
"onUpdate:modelValue": i[1] || (i[1] = (
|
|
208
|
+
"onUpdate:modelValue": i[1] || (i[1] = (d) => u("update:model-value", {
|
|
215
209
|
...o.modelValue ?? { type: "FIXED" },
|
|
216
|
-
amount:
|
|
210
|
+
amount: d
|
|
217
211
|
}))
|
|
218
212
|
}, null, 8, ["label", "model-value"]),
|
|
219
213
|
s("div", Oe, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
|
|
220
|
-
m(
|
|
214
|
+
m(R, {
|
|
221
215
|
label: e(l)("connect.campaign.earningOption.amountSpend", { currency: e(j.Config).getCountry().currency.symbol }),
|
|
222
216
|
class: "flex-1",
|
|
223
217
|
inputmode: "decimal",
|
|
224
|
-
"model-value": ((
|
|
225
|
-
"onUpdate:modelValue": i[2] || (i[2] = (
|
|
218
|
+
"model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
|
|
219
|
+
"onUpdate:modelValue": i[2] || (i[2] = (d) => u("update:model-value", {
|
|
226
220
|
...o.modelValue,
|
|
227
|
-
every:
|
|
221
|
+
every: d
|
|
228
222
|
}))
|
|
229
223
|
}, {
|
|
230
224
|
prepend: y(() => [
|
|
@@ -239,32 +233,32 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
239
233
|
}, 8, ["label", "sublabel"]),
|
|
240
234
|
m(A, {
|
|
241
235
|
label: e(l)("connect.campaign.earningOption.productBought.label"),
|
|
242
|
-
sublabel: e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(
|
|
236
|
+
sublabel: e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(c) }),
|
|
243
237
|
value: !0,
|
|
244
238
|
disabled: !e(C).isPremium
|
|
245
239
|
}, {
|
|
246
240
|
label: y(() => {
|
|
247
|
-
var r,
|
|
241
|
+
var r, V;
|
|
248
242
|
return [
|
|
249
243
|
s("div", Fe, [
|
|
250
244
|
U(f(e(l)("connect.campaign.earningOption.productBought.label")) + " ", 1),
|
|
251
|
-
m(
|
|
245
|
+
m(J, { variant: "premium" })
|
|
252
246
|
]),
|
|
253
|
-
s("div",
|
|
254
|
-
e(
|
|
255
|
-
s("div",
|
|
247
|
+
s("div", Ce, f(e(l)("connect.campaign.earningOption.productBought.sublabel", { configName: e(c) })), 1),
|
|
248
|
+
e(v) ? (p(), T("div", he, [
|
|
249
|
+
s("div", Pe, [
|
|
256
250
|
m(ce, {
|
|
257
251
|
"model-value": t.modelValue.property || [],
|
|
258
|
-
onConfirm: i[3] || (i[3] = (
|
|
252
|
+
onConfirm: i[3] || (i[3] = (d) => u("update:model-value", {
|
|
259
253
|
...o.modelValue,
|
|
260
|
-
property:
|
|
254
|
+
property: d
|
|
261
255
|
}))
|
|
262
256
|
}, {
|
|
263
257
|
"side-sheet-button": y(() => {
|
|
264
|
-
var
|
|
258
|
+
var d, k;
|
|
265
259
|
return [
|
|
266
|
-
m(
|
|
267
|
-
label: (
|
|
260
|
+
m(M, {
|
|
261
|
+
label: (d = t.modelValue.property) != null && d.length ? e(l)("connect.campaign.earningOption.productsSelected", { count: (k = t.modelValue.property) == null ? void 0 : k.length }) : e(l)("connect.campaign.earningOption.selectProduct"),
|
|
268
262
|
icon: "link",
|
|
269
263
|
variant: "secondary"
|
|
270
264
|
}, null, 8, ["label"])
|
|
@@ -273,27 +267,27 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
273
267
|
_: 1
|
|
274
268
|
}, 8, ["model-value"])
|
|
275
269
|
]),
|
|
276
|
-
s("div",
|
|
277
|
-
m(
|
|
270
|
+
s("div", Te, [
|
|
271
|
+
m(R, {
|
|
278
272
|
inputmode: "decimal",
|
|
279
|
-
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(
|
|
273
|
+
label: e(l)("connect.campaign.earningOption.receiveLabel", { configName: e(c) }),
|
|
280
274
|
class: "flex-1",
|
|
281
275
|
"model-value": ((r = o.modelValue) == null ? void 0 : r.amount) ?? null,
|
|
282
|
-
"onUpdate:modelValue": i[4] || (i[4] = (
|
|
276
|
+
"onUpdate:modelValue": i[4] || (i[4] = (d) => u("update:model-value", {
|
|
283
277
|
...o.modelValue ?? { type: "FIXED" },
|
|
284
|
-
amount:
|
|
278
|
+
amount: d
|
|
285
279
|
}))
|
|
286
280
|
}, null, 8, ["label", "model-value"]),
|
|
287
281
|
s("div", Ie, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
|
|
288
|
-
m(
|
|
282
|
+
m(R, {
|
|
289
283
|
label: e(l)("connect.campaign.earningOption.itemPurchased"),
|
|
290
284
|
class: "flex-1",
|
|
291
|
-
"model-value": ((
|
|
285
|
+
"model-value": ((V = o.modelValue) == null ? void 0 : V.every) ?? null,
|
|
292
286
|
inputmode: "numeric",
|
|
293
287
|
"max-fraction-digits": 0,
|
|
294
|
-
"onUpdate:modelValue": i[5] || (i[5] = (
|
|
288
|
+
"onUpdate:modelValue": i[5] || (i[5] = (d) => u("update:model-value", {
|
|
295
289
|
...o.modelValue,
|
|
296
|
-
every:
|
|
290
|
+
every: d
|
|
297
291
|
}))
|
|
298
292
|
}, null, 8, ["label", "model-value"])
|
|
299
293
|
])
|
|
@@ -307,16 +301,16 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
307
301
|
}, 8, ["model-value"])
|
|
308
302
|
], 64)) : I("", !0)
|
|
309
303
|
]),
|
|
310
|
-
o.errorText || e(n).length > 0 ? (
|
|
304
|
+
o.errorText || e(n).length > 0 ? (p(), O(q, {
|
|
311
305
|
key: 0,
|
|
312
306
|
class: "!mt-4",
|
|
313
|
-
text: o.errorText || e(
|
|
307
|
+
text: o.errorText || e(x).helperText(e(n), ""),
|
|
314
308
|
state: "error"
|
|
315
309
|
}, null, 8, ["text"])) : I("", !0)
|
|
316
310
|
]);
|
|
317
311
|
};
|
|
318
312
|
}
|
|
319
|
-
}),
|
|
313
|
+
}), _e = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, Ge = /* @__PURE__ */ B({
|
|
320
314
|
__name: "VoucherEditor",
|
|
321
315
|
props: {
|
|
322
316
|
modelValue: {
|
|
@@ -327,40 +321,40 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
327
321
|
}
|
|
328
322
|
},
|
|
329
323
|
emits: ["update:model-value", "update:reward-image"],
|
|
330
|
-
setup(o, { emit:
|
|
331
|
-
const { t: C } = G(), t =
|
|
324
|
+
setup(o, { emit: _ }) {
|
|
325
|
+
const { t: C } = G(), t = L(
|
|
332
326
|
o.modelValue ?? re("VOUCHER", {
|
|
333
327
|
business: oe().currentBusiness.value._id,
|
|
334
328
|
name: ""
|
|
335
329
|
})
|
|
336
|
-
), u = Y,
|
|
337
|
-
return (
|
|
338
|
-
var b,
|
|
339
|
-
const
|
|
340
|
-
return
|
|
330
|
+
), u = Y, h = _;
|
|
331
|
+
return (c, n) => {
|
|
332
|
+
var b, E, S;
|
|
333
|
+
const P = g("FmTextarea"), v = g("FmHelperText");
|
|
334
|
+
return p(), T(w, null, [
|
|
341
335
|
m(ne, {
|
|
342
336
|
modelValue: e(t).name,
|
|
343
337
|
"onUpdate:modelValue": n[0] || (n[0] = (a) => e(t).name = a),
|
|
344
338
|
label: "Voucher name",
|
|
345
|
-
schema: e(
|
|
339
|
+
schema: e(x).typeAtPath(e(u), "name", [e(t).type])
|
|
346
340
|
}, null, 8, ["modelValue", "schema"]),
|
|
347
|
-
m(
|
|
341
|
+
m(P, {
|
|
348
342
|
class: "!mb-[-16px]",
|
|
349
343
|
modelValue: e(t).description,
|
|
350
344
|
"onUpdate:modelValue": n[1] || (n[1] = (a) => e(t).description = a),
|
|
351
|
-
rules: [e(
|
|
345
|
+
rules: [e(x).ruleAtPath(e(u), "description", [e(t).type])]
|
|
352
346
|
}, {
|
|
353
347
|
label: y(() => [
|
|
354
|
-
(
|
|
355
|
-
e(
|
|
356
|
-
e(
|
|
348
|
+
(p(), O(H(
|
|
349
|
+
e(x).toInputLabel(
|
|
350
|
+
e(x).typeAtPath(e(u), "description", [e(t).type]),
|
|
357
351
|
"Voucher description"
|
|
358
352
|
)
|
|
359
353
|
)))
|
|
360
354
|
]),
|
|
361
355
|
_: 1
|
|
362
356
|
}, 8, ["modelValue", "rules"]),
|
|
363
|
-
s("div",
|
|
357
|
+
s("div", _e, [
|
|
364
358
|
n[6] || (n[6] = s("div", null, "Voucher description should not exceed 200 characters.", -1)),
|
|
365
359
|
s("div", null, f(((b = e(t).description) == null ? void 0 : b.length) ?? 0) + "/200", 1)
|
|
366
360
|
]),
|
|
@@ -370,13 +364,13 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
370
364
|
file: o.rewardImage ?? void 0,
|
|
371
365
|
thumbnail: e(t).image ?? void 0,
|
|
372
366
|
"onUpdate:file": n[2] || (n[2] = async (a) => {
|
|
373
|
-
|
|
367
|
+
h("update:reward-image", a), a || (e(t).image = null);
|
|
374
368
|
})
|
|
375
369
|
}, {
|
|
376
370
|
label: y(() => [
|
|
377
|
-
(
|
|
378
|
-
e(
|
|
379
|
-
e(
|
|
371
|
+
(p(), O(H(
|
|
372
|
+
e(x).toInputLabel(
|
|
373
|
+
e(x).typeAtPath(e(u), "image", [e(t).type]),
|
|
380
374
|
"Voucher image"
|
|
381
375
|
)
|
|
382
376
|
)))
|
|
@@ -388,7 +382,7 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
388
382
|
"model-value": e(t).extras.effect,
|
|
389
383
|
"onUpdate:modelValue": n[3] || (n[3] = (a) => e(t).extras.effect = a)
|
|
390
384
|
}, null, 8, ["model-value"]),
|
|
391
|
-
e(t).extras.effect == null ? (
|
|
385
|
+
e(t).extras.effect == null ? (p(), O(v, {
|
|
392
386
|
key: 0,
|
|
393
387
|
class: "!mt-8",
|
|
394
388
|
text: e(C)("connect.campaign.common.effect_required"),
|
|
@@ -399,17 +393,17 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
399
393
|
"model-value": e(t).options,
|
|
400
394
|
"no-campaign": e(t).noCampaign,
|
|
401
395
|
"onUpdate:modelValue": n[4] || (n[4] = (a) => e(t).options = a),
|
|
402
|
-
schema: e(
|
|
396
|
+
schema: e(x).typeAtPath(e(u), "options", ["VOUCHER"])
|
|
403
397
|
}, null, 8, ["model-value", "no-campaign", "schema"]),
|
|
404
398
|
n[9] || (n[9] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
|
|
405
|
-
e(t).type === "VOUCHER" ? (
|
|
399
|
+
e(t).type === "VOUCHER" ? (p(), O(me, {
|
|
406
400
|
key: 1,
|
|
407
|
-
"model-value": ((
|
|
401
|
+
"model-value": ((S = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : S.map(String)) ?? null,
|
|
408
402
|
type: "select",
|
|
409
403
|
"onUpdate:modelValue": n[5] || (n[5] = (a) => {
|
|
410
404
|
e(t).extras.targetLocation = a;
|
|
411
405
|
}),
|
|
412
|
-
rules: [e(
|
|
406
|
+
rules: [e(x).ruleAtPath(e(u), "extras.targetLocation")]
|
|
413
407
|
}, null, 8, ["model-value", "rules"])) : I("", !0)
|
|
414
408
|
], 64);
|
|
415
409
|
};
|
|
@@ -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
|
-
import { Z as d } from "./zod-
|
|
3
|
-
import { u as V } from "./vue-i18n-
|
|
2
|
+
import { Z as d } from "./zod-UhNNazW6.js";
|
|
3
|
+
import { u as V } from "./vue-i18n-CA3hRpIg.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"
|