@feedmepos/mf-connect 0.1.98-beta.8 → 0.1.98-beta.80
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-DsB2o1oB.js → App-DievprEi.js} +853 -683
- package/dist/{AuditLogs-BcfgiYnJ.js → AuditLogs-DrdqOhZL.js} +16 -13
- package/dist/{Bin-DMr7K8Kj.js → Bin-Ci2k3z77.js} +8 -8
- package/dist/Broadcast-CpDMAG1o.js +306 -0
- package/dist/CampaignAnalytic-uRyGaLaN.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CwGoEBsW.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DtGe2Og1.js} +8 -5
- package/dist/Card-tb98Kyr-.js +1086 -0
- package/dist/{Collections-B0uGC2FE.js → Collections-P1S5WjnJ.js} +14 -13
- package/dist/Credit-DwK7JYf-.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-Cyk0iIsd.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-8r29jKh9.js +4432 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-DJLxGk7W.js → EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js} +36 -36
- package/dist/Experience-BejtRlOj.js +288 -0
- package/dist/{FileSaver.min-BlA0oZEC.js → FileSaver.min-C-hmBaHm.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-n8qL896g.js +356 -0
- package/dist/GiftCardSetup-Bgsfcu7N.js +736 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-CzL68PPP.js +424 -0
- package/dist/Goals-BB8LJlq3.js +247 -0
- package/dist/{Grab-DmmwrGzk.js → Grab-COq3Ujst.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DNtLW0yQ.js → ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js} +1 -1
- package/dist/{Index-m7l4insz.js → Index-BdkIinaE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B9sJ-M20.js → LocationPicker.vue_vue_type_script_setup_true_lang-DsWv3DVb.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dsg2sWjF.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DvOzGF8c.js} +1 -1
- package/dist/LoyaltyDashboard-D4Jtpw0n.js +2911 -0
- package/dist/MainLayout-Ca-Xm3eZ.js +143 -0
- package/dist/{Marketing-C9pSIdBU.js → Marketing-Cpe4s7NZ.js} +7 -6
- package/dist/{MarketingMaterialEdit-BEF2T9LR.js → MarketingMaterialEdit-nTeS9VVx.js} +15 -14
- package/dist/Member-DgGZ4Cdg.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-_O3B-FIA.js +1281 -0
- package/dist/MemberImportHistory-rdlbDVWU.js +187 -0
- package/dist/MemberList-BC4aRJTt.js +334 -0
- package/dist/{MemberTransactions-CAut1TQb.js → MemberTransactions-BFfdTttp.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-1AuHixPC.js → MessageInput.vue_vue_type_script_setup_true_lang-DXajAQy9.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8xVDzdO3.js +40 -0
- package/dist/Mission-BWCNKTjU.js +363 -0
- package/dist/Overview--Q7vzhNK.js +1316 -0
- package/dist/{Overview-DOJj4XvO.js → Overview-i02Wnyjn.js} +23 -20
- package/dist/Point-CiWxqny5.js +297 -0
- package/dist/Promotion-B0G9qfBm.js +426 -0
- package/dist/{Queue-55G2gtP5.js → Queue-YfwgYmzH.js} +16 -13
- package/dist/{Record-DNPI02c6.js → Record-CCuwrPKW.js} +9 -9
- package/dist/Review-ymsfdh7Q.js +45 -0
- package/dist/ReviewFacebookCallback-DyDExWvP.js +238 -0
- package/dist/ReviewGoogleCallback-DNyg3n2S.js +213 -0
- package/dist/{Reward-CnP8R2pS.js → Reward-BKIb0ezH.js} +28 -28
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BN71h9IK.js → RewardGroup.vue_vue_type_script_setup_true_lang-DPaaNgpr.js} +26 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CtB9Ls5-.js → RuleGroup.vue_vue_type_script_setup_true_lang-BLFLybFn.js} +198 -186
- package/dist/{Segment-CxiQnnyj.js → Segment-D5_pp7fh.js} +278 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-B1vj5f7T.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BLLjIA-D.js} +45 -42
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-cWx0G3nM.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BRIcZwnU.js} +4 -4
- package/dist/Setting-CD78gIMU.js +574 -0
- package/dist/{SettingAdvertisements-Vt7w1WN3.js → SettingAdvertisements-C2AIT4s4.js} +12 -12
- package/dist/Settings-DI_tryQV.js +230 -0
- package/dist/Store-BV2JTRNZ.js +2615 -0
- package/dist/{StoreRewards-DILeipMG.js → StoreRewards-Bk55YXyO.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BZZ1fqwg.js +1331 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-C7lVeybl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js} +2 -2
- package/dist/{Tier-BAZ1xuKL.js → Tier-CO2K30Ew.js} +2576 -757
- package/dist/{Title-CcNAt47f.js → Title-qProQh3T.js} +41 -37
- package/dist/Transaction-qL5L-fE_.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-hUjQVZ_U.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Co1BPScS.js} +26 -26
- package/dist/Voucher-VFD1LY9Y.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CTQDxc5l.js → VoucherEditor.vue_vue_type_script_setup_true_lang-9QyTl7iq.js} +118 -124
- package/dist/WhatsappAccount-CxSGqm7H.js +325 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D8L6izf0.js +96 -0
- package/dist/WhatsappBot-C4Oz7Xwv.js +441 -0
- package/dist/WhatsappBotSettings-CKqaWzwE.js +136 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DuRKA4cj.js → ZodTextField.vue_vue_type_script_setup_true_lang-Bcsi94dw.js} +2 -2
- package/dist/{app-Z-UKRG5V.js → app-BEYzXWZO.js} +50954 -42517
- package/dist/app.js +1 -1
- package/dist/base.export-S_82Elmg.js +75 -0
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-C7EF6cKC.js → business-DH7djUl8.js} +5 -5
- package/dist/campaign-DlHDgoFX.js +100 -0
- package/dist/campaign-k_WHxsOR.js +400 -0
- package/dist/{campaign.enum-BNN2gLFY.js → campaign.enum-Dx-Zo68Q.js} +1 -1
- package/dist/{campaign.fn-Bd34dVnx.js → campaign.fn-B-4JRzft.js} +67 -67
- package/dist/{collectible.enum-DO9HdJGH.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/collection.fn-zQwWDzZT.js +26 -0
- package/dist/currency-CQVHXBFe.js +7 -0
- package/dist/{duplicateCampaign-2ODeDw3a.js → duplicateCampaign-YTXMbJTj.js} +11 -11
- package/dist/{effect-BcB8IlTI.js → effect-CQkVLHWi.js} +1 -1
- package/dist/{email-addresses-BcTeU4Sh.js → email-addresses-BIoVbPGC.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-BSgrCJRv.js → helper-BCkTvF4m.js} +1 -1
- package/dist/{index-CoHWpylO.js → index-B-bQnb0_.js} +2115 -2557
- package/dist/index-BAJOC43K.js +14550 -0
- package/dist/{index-HXiYGO4_.js → index-BFIHEBnX.js} +6343 -7693
- package/dist/{index-VlFWaBrg.js → index-BJIQe3QJ.js} +1 -1
- package/dist/{index-BpI-BI4H.js → index-BJkRTH5T.js} +4 -4
- package/dist/index-BOJogkKQ.js +172 -0
- package/dist/{index-BoYEqLif.js → index-BRPajAkE.js} +1517 -263
- package/dist/{index-CsoBDon4.js → index-BTkxgos0.js} +1590 -1523
- package/dist/index-BUP4aHq8.js +32438 -0
- package/dist/index-BYvnqARr.js +902 -0
- package/dist/{index-hlyg-wxV.js → index-Bonq819P.js} +1 -1
- package/dist/{index-CIBPhxlC.js → index-C6mOI2Pp.js} +105 -123
- package/dist/{index-Bf6jNZit.js → index-CDIe15AY.js} +24 -9
- package/dist/index-CTrcdIkt.js +137 -0
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/index-CpnchVe1.js +74 -0
- package/dist/index-D5AR7A5e.js +151 -0
- package/dist/index-D7-Q86HI.js +54 -0
- package/dist/index-DdOj8Hew.js +53 -0
- package/dist/{index-iMPtFp54.js → index-Dvqguh2B.js} +10 -9
- package/dist/{index-Bm0QPucw.js → index-hAKRfE-4.js} +14 -14
- package/dist/index-o2Ga_qaX.js +39 -0
- package/dist/{index.esm2017-CM7OnEyP.js → index.esm2017-D0fhMMPG.js} +128 -128
- package/dist/{loading-CSXr0Yqz.js → loading-C686AMVG.js} +1 -1
- package/dist/{lodash-Bh7XKI-R.js → lodash-CANlWUWW.js} +1 -1
- package/dist/member-import-UzJ6ByIS.js +188 -0
- package/dist/membership-DCVzFaFy.js +274 -0
- package/dist/{money-BZIST_m9.js → money-DuazwoX7.js} +1 -1
- package/dist/{number-DXLR2w95.js → number-B2HFiV0g.js} +1 -1
- package/dist/objectid-Bq-oVMdP.js +145 -0
- package/dist/onboarding-BxvNxz-9.js +131 -0
- package/dist/onboardingSetup-CcvKmyx8.js +17 -0
- package/dist/{plugins-4FlbwoES.js → plugins-C39O5j42.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-DUbl79bZ.js → reward-HYt-2nxt.js} +1 -1
- package/dist/{rule-BQUoZ4l_.js → rule-3xNIYM7z.js} +337 -275
- package/dist/style.css +1 -1
- package/dist/{template-BoiSG7G7.js → template-D37Z_b0m.js} +6 -6
- package/dist/timezone-JwnQgpaU.js +20 -0
- package/dist/transaction.fn-C5vswLI_.js +71 -0
- package/dist/{trigger-D5g5m6tT.js → trigger-Bc6s2cvq.js} +17 -17
- package/dist/useMarketingMaterialActions-DMGyAXcy.js +96 -0
- package/dist/{usePagination-DHePBBoR.js → usePagination-DLOOwiiY.js} +1 -1
- package/dist/{user-C_ToSo-g.js → user-CTIGugVF.js} +1 -1
- package/dist/{vue-i18n-BcYh6_51.js → vue-i18n-Dpic36zz.js} +287 -287
- package/dist/{xlsx-h4G1C-xj.js → xlsx-CT9_1SFr.js} +786 -786
- package/dist/{zod-CgigfJar.js → zod-CGVrMcDl.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-C9akM-TB.js +0 -266
- package/dist/Card-DRkIYs0M.js +0 -910
- package/dist/Credit-V5YA_hGx.js +0 -260
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-eIoPtgO5.js +0 -58
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CYQMXARx.js +0 -3377
- package/dist/Experience-WTWy5yY6.js +0 -259
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-BwOfTCW5.js +0 -330
- package/dist/LoyaltyDashboard-CJdhYiea.js +0 -1082
- package/dist/MainLayout-Du5kZOtA.js +0 -41
- package/dist/Member-DUV_vbPI.js +0 -280
- package/dist/MemberList-Ye4nOk-i.js +0 -1601
- package/dist/Mission-BBmCGpt8.js +0 -334
- package/dist/Point-Bzg6hi6o.js +0 -262
- package/dist/Promotion-BMXIp_ef.js +0 -397
- package/dist/Review-CYNPPxYU.js +0 -1141
- package/dist/ReviewFacebookCallback-0SUkKAaC.js +0 -243
- package/dist/ReviewGoogleCallback-BZEzx68n.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-C4vohf6c.js +0 -181
- package/dist/Setting-jHAjccod.js +0 -2047
- package/dist/Store-Cu-hKmVa.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CGz6CTWA.js +0 -1130
- package/dist/Transaction-D7DO3dKQ.js +0 -39
- package/dist/Voucher-Cq-n1CaC.js +0 -421
- package/dist/campaign--MjoY1Mn.js +0 -219
- package/dist/campaign-DHBuP4UA.js +0 -277
- package/dist/export-CjB7qxZ9.js +0 -97
- package/dist/index-BIAjmMga.js +0 -85
- package/dist/index-Bv4MBLQ5.js +0 -52
- package/dist/index-hbyCVNa7.js +0 -30289
- package/dist/membership-CfredTm3.js +0 -255
- package/dist/objectid-Dg4ZodlT.js +0 -145
- package/dist/useMarketingMaterialActions-B-Jlw2Z9.js +0 -107
|
@@ -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 {
|
|
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 J, createVNode as m, createTextVNode as U, toDisplayString as f, createElementVNode as s, unref as e, computed as N, createElementBlock as S, Fragment as w, renderList as K, normalizeClass as Q, createCommentVNode as T, resolveDynamicComponent as H } from "vue";
|
|
2
|
+
import { u as G } from "./vue-i18n-Dpic36zz.js";
|
|
3
|
+
import { c as j } from "./index-BUP4aHq8.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-BTkxgos0.js";
|
|
5
|
+
import { C as ee } from "./membership-DCVzFaFy.js";
|
|
6
|
+
import { Z as x } from "./zod-CGVrMcDl.js";
|
|
7
|
+
import { S as te } from "./app-BEYzXWZO.js";
|
|
8
|
+
import { u as le } from "./business-DH7djUl8.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 {
|
|
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-Bcsi94dw.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BmLclEyi.js";
|
|
12
|
+
import { b as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-BML_-v8I.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BrEzWVrH.js";
|
|
14
|
+
import { i as re } from "./helper-BCkTvF4m.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: I }) {
|
|
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 = I;
|
|
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
|
-
J(
|
|
39
|
+
J(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" }, Se = { class: "xs:!block flex gap-16 items-center" }, Te = { 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: I }) {
|
|
98
|
+
var b, E, _;
|
|
99
|
+
const C = le(), { t: l } = G(), t = o, u = I, 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" && !!((_ = (E = t.modelValue) == null ? void 0 : E.property) != null && _.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"), M = g("FmPill"), Z = g("FmButton"), q = g("FmRadioGroup"), z = g("FmHelperText");
|
|
143
|
+
return p(), S("div", de, [
|
|
150
144
|
s("div", pe, [
|
|
151
|
-
(
|
|
152
|
-
var
|
|
153
|
-
return
|
|
145
|
+
(p(!0), S(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(), S(w, { key: 1 }, [
|
|
182
176
|
s("div", be, f(e(l)("connect.campaign.earningOption.spendingType")), 1),
|
|
183
177
|
m(q, {
|
|
184
|
-
"model-value": e(
|
|
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) ? T("", !0) : (p(), S("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
245
|
m(M, { 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(), S("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
260
|
m(Z, {
|
|
267
|
-
label: (
|
|
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,31 +267,31 @@ 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", Se, [
|
|
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
|
-
s("div",
|
|
288
|
-
m(
|
|
281
|
+
s("div", Te, f(e(l)("connect.campaign.earningOption.forEvery")), 1),
|
|
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
|
])
|
|
300
|
-
])) :
|
|
294
|
+
])) : T("", !0)
|
|
301
295
|
];
|
|
302
296
|
}),
|
|
303
297
|
_: 1
|
|
@@ -305,18 +299,18 @@ const ue = { class: "flex justify-end gap-8 w-full" }, ce = /* @__PURE__ */ B({
|
|
|
305
299
|
]),
|
|
306
300
|
_: 1
|
|
307
301
|
}, 8, ["model-value"])
|
|
308
|
-
], 64)) :
|
|
302
|
+
], 64)) : T("", !0)
|
|
309
303
|
]),
|
|
310
|
-
o.errorText || e(n).length > 0 ? (
|
|
304
|
+
o.errorText || e(n).length > 0 ? (p(), O(z, {
|
|
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
|
-
}, null, 8, ["text"])) :
|
|
309
|
+
}, null, 8, ["text"])) : T("", !0)
|
|
316
310
|
]);
|
|
317
311
|
};
|
|
318
312
|
}
|
|
319
|
-
}),
|
|
313
|
+
}), Ie = { 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: I }) {
|
|
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 = I;
|
|
331
|
+
return (c, n) => {
|
|
332
|
+
var b, E, _;
|
|
333
|
+
const P = g("FmTextarea"), v = g("FmHelperText");
|
|
334
|
+
return p(), S(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", Ie, [
|
|
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,29 +382,29 @@ 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"),
|
|
395
389
|
state: "error"
|
|
396
|
-
}, null, 8, ["text"])) :
|
|
390
|
+
}, null, 8, ["text"])) : T("", !0),
|
|
397
391
|
n[8] || (n[8] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Usage configuration", -1)),
|
|
398
392
|
m(se, {
|
|
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": ((_ = (E = e(t).extras) == null ? void 0 : E.targetLocation) == null ? void 0 : _.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(
|
|
413
|
-
}, null, 8, ["model-value", "rules"])) :
|
|
406
|
+
rules: [e(x).ruleAtPath(e(u), "extras.targetLocation")]
|
|
407
|
+
}, null, 8, ["model-value", "rules"])) : T("", !0)
|
|
414
408
|
], 64);
|
|
415
409
|
};
|
|
416
410
|
}
|