@feedmepos/mf-connect 0.1.98-beta.7 → 0.1.98-beta.71
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-BonFFUVJ.js → App-B-Onur9k.js} +812 -666
- package/dist/{AuditLogs-CaQisyMC.js → AuditLogs-BnEeKG1C.js} +14 -13
- package/dist/{Bin-Mu8gAiHw.js → Bin-BH9_nATR.js} +8 -8
- package/dist/Broadcast-Gt2ZLLpZ.js +302 -0
- package/dist/CampaignAnalytic-BT6zTgNk.js +1830 -0
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BoLZVrCU.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-nNLLEzii.js} +6 -5
- package/dist/Card-dD52oor7.js +1084 -0
- package/dist/{Collections-CByXxRW_.js → Collections-7bwYNl3M.js} +14 -13
- package/dist/Credit-qZdlqXqR.js +286 -0
- package/dist/DateRangeChip.vue_vue_type_script_setup_true_lang-DeNn_k19.js +53 -0
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C09W9Qja.js +4213 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BXsAX1Xa.js → EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js} +35 -35
- package/dist/{Experience-B7J-aqPK.js → Experience-CAaWgWXP.js} +112 -86
- package/dist/{FileSaver.min-D_F_MSZt.js → FileSaver.min-BpfY6VnX.js} +1 -1
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js +138 -0
- package/dist/Game-fhrbFb_5.js +356 -0
- package/dist/GiftCardSetup-CTwmNKim.js +736 -0
- package/dist/{Grab-C45MmlD9.js → Grab-BnPfb92x.js} +33 -32
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CPPcB3PC.js → ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js} +1 -1
- package/dist/{Index-vQ6uP49O.js → Index-DRwvmm_j.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cj3hN3tg.js → LocationPicker.vue_vue_type_script_setup_true_lang-Ya4r9NNE.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DU9eIein.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CDwtqqLQ.js} +1 -1
- package/dist/LoyaltyDashboard-8jn6SIWo.js +2865 -0
- package/dist/MainLayout-Bf42AcB1.js +143 -0
- package/dist/{Marketing-B6xMdQvW.js → Marketing-DruTMjiR.js} +7 -6
- package/dist/{MarketingMaterialEdit-0cZN4bek.js → MarketingMaterialEdit-moEHd_gP.js} +15 -14
- package/dist/Member-C9VTQqIm.js +654 -0
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DEsVSWmv.js +1279 -0
- package/dist/MemberImportHistory-DZVwya9v.js +187 -0
- package/dist/MemberList-KusIfy1u.js +334 -0
- package/dist/{MemberTransactions-Bg-ziZy8.js → MemberTransactions-msyjdzlI.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-jbDJkbZh.js → MessageInput.vue_vue_type_script_setup_true_lang-DbV-m3cC.js} +5928 -5644
- package/dist/MetricInfoTooltip.vue_vue_type_script_setup_true_lang-1DYGpJnD.js +40 -0
- package/dist/Mission-CUUxpBUF.js +360 -0
- package/dist/{Overview-nsyJGSCq.js → Overview-C9jyKXHX.js} +21 -20
- package/dist/Overview-CYKoF8Hp.js +1316 -0
- package/dist/Point-CPpQ07yp.js +288 -0
- package/dist/Promotion-CJ95m9Qb.js +423 -0
- package/dist/{Queue-Dkipt6fw.js → Queue-CX39ILh_.js} +14 -13
- package/dist/{Record-BFqx6vM-.js → Record-6I0qyXB5.js} +9 -9
- package/dist/Review-DoWu2XNT.js +45 -0
- package/dist/ReviewFacebookCallback-Co-5TnI7.js +238 -0
- package/dist/ReviewGoogleCallback-Ca7ZuMcF.js +213 -0
- package/dist/{Reward-DjFEE7I_.js → Reward-Cx_N6qBJ.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BzZ6VH80.js → RewardGroup.vue_vue_type_script_setup_true_lang-Cn5Yp37p.js} +14 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-A9jQX4jt.js → RuleGroup.vue_vue_type_script_setup_true_lang-M0c67Dyl.js} +196 -186
- package/dist/{Segment-BAjdUfZ6.js → Segment-Bx0EW966.js} +275 -276
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CAQPFzRH.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-ahvrEUGa.js} +37 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Gkz8jhES.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C7zSfZdl.js} +4 -4
- package/dist/{Setting-BK7y0XC-.js → Setting-DzEK3dWj.js} +14 -14
- package/dist/{SettingAdvertisements-DfQ645xr.js → SettingAdvertisements-BNALbI88.js} +12 -12
- package/dist/Settings-Cw85-xzq.js +230 -0
- package/dist/Store-BSqW1gwf.js +2612 -0
- package/dist/{StoreRewards-usHKOGmB.js → StoreRewards-CJXnS8Qf.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-C6tUwHEj.js +1329 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DrcWUZuR.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js} +2 -2
- package/dist/{Tier-BF3V430O.js → Tier-DfitNxp2.js} +2580 -754
- package/dist/{Title-DwPuqKfJ.js → Title-QCbtOvKB.js} +39 -37
- package/dist/Transaction-dOCzlidD.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DToNRTJS.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Be5X1C-Y.js} +26 -26
- package/dist/{Voucher-DnhVIl_o.js → Voucher-BfoCDwjg.js} +156 -133
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Btb3UZCn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-0EIYoZ0F.js} +118 -124
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-EFUW9DMY.js → ZodTextField.vue_vue_type_script_setup_true_lang-UdStgKbX.js} +2 -2
- package/dist/{app-i3r-6ZVm.js → app-BxTElIm-.js} +45168 -37577
- package/dist/app.js +1 -1
- package/dist/base.export-BmUK8hMh.js +75 -0
- package/dist/{business-i0Gxk7gG.js → business-DjAiT8tR.js} +5 -5
- package/dist/campaign-DlR3KF9m.js +368 -0
- package/dist/campaign-tAmQNoq7.js +100 -0
- package/dist/{campaign.enum-CbUTfxek.js → campaign.enum-BjwEQd11.js} +1 -1
- package/dist/{campaign.fn-BjHSIDd1.js → campaign.fn-C6kWWIQx.js} +53 -53
- package/dist/{collectible.enum-DN7E_kHg.js → collectible.enum-BrtXpT9S.js} +1 -1
- package/dist/collection.fn-CDhfM3Eq.js +26 -0
- package/dist/currency-10nX5QnT.js +7 -0
- package/dist/{duplicateCampaign-DmdJQEIA.js → duplicateCampaign-6oMZOvfM.js} +11 -11
- package/dist/{effect-DM4AzeQl.js → effect-T4YzuTc5.js} +1 -1
- package/dist/{email-addresses-BlqVJhwZ.js → email-addresses-BjODnJMM.js} +209 -201
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-CkdISSVP.js → helper-BCl5r5yZ.js} +1 -1
- package/dist/{index-DgzNGQgE.js → index-B9ZMIUMa.js} +2083 -2559
- package/dist/{index-CB7ytKOE.js → index-BBsK7TUw.js} +1588 -1522
- package/dist/index-BQk6zTgf.js +32437 -0
- package/dist/index-Bd4clHfr.js +901 -0
- package/dist/index-BeVWchv7.js +14550 -0
- package/dist/index-Bht1Z11w.js +72 -0
- package/dist/{index-FD50UHqf.js → index-BiolIgqR.js} +105 -123
- package/dist/{index-Cl8t41Sk.js → index-BxU--5J5.js} +5 -5
- package/dist/index-Bz6oSli7.js +151 -0
- package/dist/index-C5IfNJUl.js +53 -0
- package/dist/{index-BWsj6lCJ.js → index-CRvUvCMA.js} +14 -14
- package/dist/{index-B6xi1soU.js → index-CnaQt4Pn.js} +1 -1
- package/dist/{index-4EtrCy_K.js → index-Ctja--IE.js} +4 -4
- package/dist/{index-D6qeYVNz.js → index-D8rGhchh.js} +1 -1
- package/dist/{index-BrboOmPq.js → index-DJdTDF9C.js} +347 -216
- package/dist/index-DXiJa8Cw.js +137 -0
- package/dist/{index-CxdLExX0.js → index-DeQKLilv.js} +24 -9
- package/dist/{index-vI-ndGu_.js → index-DhtKt4OL.js} +5 -5
- package/dist/{index.esm2017-BX5CyKoc.js → index.esm2017-CEOegJjn.js} +132 -132
- package/dist/{loading-DTKDhqew.js → loading-Dx4SCvZY.js} +1 -1
- package/dist/{lodash-CCPBsqhe.js → lodash-Dq8OKCKK.js} +1 -1
- package/dist/member-import-DX-jn2uk.js +187 -0
- package/dist/membership-CltAa-gH.js +274 -0
- package/dist/{money-wMK3QkZ5.js → money-DsaAjJTI.js} +1 -1
- package/dist/{number-DjKVlWn0.js → number-DmhHKYgY.js} +1 -1
- package/dist/objectid-BdNv-dZX.js +145 -0
- package/dist/{plugins-D25PaNJk.js → plugins-BFKVM3uC.js} +13 -12
- package/dist/remy-Qz_pNsUS.js +13 -0
- package/dist/{reward-E63jqJHm.js → reward--SjvIeyy.js} +1 -1
- package/dist/{rule-RVvPtAnk.js → rule-CAKdNobZ.js} +335 -275
- package/dist/style.css +1 -1
- package/dist/{template-zNxOQaqe.js → template-Cfxc5eM8.js} +6 -6
- package/dist/timezone-D2b-V5XD.js +20 -0
- package/dist/transaction.fn-B5mLY7bz.js +71 -0
- package/dist/{trigger-BXV02FhP.js → trigger-DvYcjRBZ.js} +17 -17
- package/dist/useMarketingMaterialActions-DtqnjMSt.js +96 -0
- package/dist/{usePagination-BPcPhEnp.js → usePagination-DKX24g31.js} +1 -1
- package/dist/{user-Bd8S7R5u.js → user-fWb1NxGO.js} +1 -1
- package/dist/vue-i18n-wJReAVJw.js +2365 -0
- package/dist/{xlsx-_tQC9Ezf.js → xlsx-Mthhu4JR.js} +440 -440
- package/dist/{zod-C1j2GLZP.js → zod-CVpVUgBZ.js} +1 -1
- package/package.json +10 -6
- package/dist/Broadcast-Cy-i-WOT.js +0 -266
- package/dist/Card-f2XOtWxp.js +0 -910
- package/dist/Credit-CcZF4aQS.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-C7KZ8GMx.js +0 -3377
- package/dist/FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js +0 -129
- package/dist/Game-CUW7NeVG.js +0 -330
- package/dist/LoyaltyDashboard-GqyUwvXz.js +0 -1082
- package/dist/MainLayout-R5NxIBR-.js +0 -41
- package/dist/Member-CC5F6Bmz.js +0 -280
- package/dist/MemberList-Cq4zxopX.js +0 -1601
- package/dist/Mission-DcCZ6tAG.js +0 -334
- package/dist/Point-D1vLd5hL.js +0 -262
- package/dist/Promotion-Cv7MW5RJ.js +0 -397
- package/dist/Review-CKhakUMe.js +0 -1123
- package/dist/ReviewFacebookCallback-xgRpXQAg.js +0 -243
- package/dist/ReviewGoogleCallback-Cqi_43qi.js +0 -208
- package/dist/SelectItems.vue_vue_type_script_setup_true_lang-DDqK4kV1.js +0 -181
- package/dist/Store-uTRQ6KbC.js +0 -1996
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Bb2sTsuA.js +0 -1130
- package/dist/Transaction-CnTEfMGU.js +0 -39
- package/dist/campaign-CbMlARNI.js +0 -219
- package/dist/campaign-f7FT91GR.js +0 -277
- package/dist/export-DQR-0lmK.js +0 -97
- package/dist/index-COrXX9MR.js +0 -52
- package/dist/index-CWiaP-aV.js +0 -28900
- package/dist/index-jVfDVEtz.js +0 -85
- package/dist/membership-rifuatxU.js +0 -255
- package/dist/objectid-DjpWkCxH.js +0 -145
- package/dist/useMarketingMaterialActions-5TFNqZVo.js +0 -107
- package/dist/vue-i18n-CgMK-TaC.js +0 -2365
|
@@ -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-wJReAVJw.js";
|
|
3
|
+
import { c as j } from "./index-BQk6zTgf.js";
|
|
4
|
+
import { g as W, F as Y } from "./index-BBsK7TUw.js";
|
|
5
|
+
import { C as ee } from "./membership-CltAa-gH.js";
|
|
6
|
+
import { Z as x } from "./zod-CVpVUgBZ.js";
|
|
7
|
+
import { S as te } from "./app-BxTElIm-.js";
|
|
8
|
+
import { u as le } from "./business-DjAiT8tR.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-UdStgKbX.js";
|
|
11
|
+
import { _ as ae } from "./ImageInput.vue_vue_type_script_setup_true_lang-BySju1oT.js";
|
|
12
|
+
import { _ as ie, a as se } from "./EffectSheet.vue_vue_type_style_index_0_lang-Bz1HRBMa.js";
|
|
13
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-iylphGuV.js";
|
|
14
|
+
import { i as re } from "./helper-BCl5r5yZ.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" && !!((E = (
|
|
137
|
+
const v = L(
|
|
138
|
+
((b = t.modelValue) == null ? void 0 : b.type) === "PROPORTIONAL" && !!((E = (_ = t.modelValue) == null ? void 0 : _.property) != null && E.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": ((E = (
|
|
401
|
+
"model-value": ((E = (_ = e(t).extras) == null ? void 0 : _.targetLocation) == null ? void 0 : E.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
|
}
|
|
@@ -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-CVpVUgBZ.js";
|
|
3
|
+
import { u as V } from "./vue-i18n-wJReAVJw.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"
|