@feedmepos/mf-connect 0.1.38-beta.95 → 0.1.38-beta.98
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Analytic-ClNBzH0-.js → Analytic-Cmmsj4GL.js} +13 -13
- package/dist/{App-BYYCR70G.js → App-X8JUheTB.js} +7 -7
- package/dist/{AuditLogs-Do1BqAh6.js → AuditLogs-Am7feSao.js} +9 -9
- package/dist/{Bin-RjB5lqOt.js → Bin-CkQNnA-g.js} +8 -8
- package/dist/{Broadcast-BH87IX67.js → Broadcast-ZO3ztKsj.js} +9 -9
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1SgkRkw.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B6_I4twl.js} +6 -6
- package/dist/{Card-CNe9XUHH.js → Card-BCPHRAJr.js} +18 -18
- package/dist/{Collections-lSN93UK2.js → Collections-DWuTstxd.js} +7 -7
- package/dist/{Credit-BSUutjTN.js → Credit-C1997yt1.js} +9 -9
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CPefl7VV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-_6MxlAxf.js} +33 -33
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CzLMbYGB.js → EffectSheet.vue_vue_type_style_index_0_lang-Bdw9FRi5.js} +6 -6
- package/dist/{Experience-BSuperA9.js → Experience-DWi1PbhY.js} +9 -9
- package/dist/{FileSaver.min-CKVujfXA.js → FileSaver.min-DDxdY8PO.js} +1 -1
- package/dist/{Game-BoQT3LSd.js → Game-BfSqEFif.js} +10 -10
- package/dist/{Grab-n13T0fDp.js → Grab-CfEpIuRy.js} +8 -8
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BT3JooLp.js → ImageInput.vue_vue_type_script_setup_true_lang-B0YvP43y.js} +1 -1
- package/dist/{Index-BPGZLNlz.js → Index-Bsr_7Lf6.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-D2dEkZzA.js → LocationPicker.vue_vue_type_script_setup_true_lang-DywlTAP4.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BiVIkK5g.js → LottieAnimation.vue_vue_type_script_setup_true_lang-XY-LoAga.js} +1 -1
- package/dist/{MainLayout-BKiINcfj.js → MainLayout-DhLqseD3.js} +1 -1
- package/dist/{Marketing-oOyAG5nz.js → Marketing-JLdmgwHa.js} +4 -4
- package/dist/{MarketingMaterialEdit-C3r4xZgn.js → MarketingMaterialEdit-R8iU_vwo.js} +6 -6
- package/dist/{Member-CLZfAfxb.js → Member-CjcsTmx9.js} +11 -11
- package/dist/{MemberList-CENSraOX.js → MemberList-47UJBrBC.js} +26 -26
- package/dist/{MemberTransactions-C4m1Bcu1.js → MemberTransactions-ojm2_POc.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Ee_1wJHS.js → MessageInput.vue_vue_type_script_setup_true_lang-CwL3CuhK.js} +3616 -3613
- package/dist/{Mission-mmhMMp1t.js → Mission-EKIaaBgF.js} +10 -10
- package/dist/{Overview-CrKRNsaV.js → Overview-GTvI7se0.js} +18 -18
- package/dist/{Point-QA8jBWSa.js → Point-C_LiPWtG.js} +9 -9
- package/dist/{Promotion-Co6zYVHq.js → Promotion-CUUineSb.js} +10 -10
- package/dist/{Queue-D7Pkm_4s.js → Queue-DJc2n8_h.js} +10 -10
- package/dist/{Record-L5LLMZHt.js → Record-bzSkHUZY.js} +9 -9
- package/dist/Review-DGrND2U0.js +692 -0
- package/dist/{ReviewFacebookCallback-DnCmYy9S.js → ReviewFacebookCallback-Cl2Iv6Yt.js} +39 -39
- package/dist/{ReviewGoogleCallback-D6lS5jn7.js → ReviewGoogleCallback-B1ScyrkD.js} +4 -4
- package/dist/{Reward-BpgKE6dk.js → Reward-BqTHw8PX.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DUFAlWir.js → RewardGroup.vue_vue_type_script_setup_true_lang-q3ZO18r6.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BkytXNO2.js → RuleGroup.vue_vue_type_script_setup_true_lang-o9AVUR98.js} +14 -14
- package/dist/{Segment-COk0MJzr.js → Segment-CxjPyWVc.js} +24 -24
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-CSXMhjst.js → SelectItems.vue_vue_type_script_setup_true_lang-DV7zm7-m.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CNOzJqXR.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5g_vl23.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXaH_Tt0.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BXcN2LX8.js} +4 -4
- package/dist/{Setting-DZXUWu6L.js → Setting-CnbTydur.js} +449 -441
- package/dist/{SettingAdvertisements-CzfTJ17s.js → SettingAdvertisements-0KxvOuNS.js} +12 -12
- package/dist/{Store-B8L1EdOT.js → Store-DCYi9tBd.js} +21 -21
- package/dist/{StoreRewards-BpJbbbW5.js → StoreRewards-DtupzWtO.js} +203 -200
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-OMYC8ljy.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Bj2YGF8r.js} +21 -21
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BDNhBCJb.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CWuZ64Ej.js} +2 -2
- package/dist/{Tier-D98VwNdC.js → Tier-mXDWVyOh.js} +23 -23
- package/dist/{Title-DEfQ7NMe.js → Title-8mH7yu0A.js} +20 -20
- package/dist/{Transaction-Bd4nS9Ai.js → Transaction-B8yVmt2I.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BRTYTzNF.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DEihnT0t.js} +6 -6
- package/dist/{Voucher-CxYWeWGh.js → Voucher-DRcHLG1a.js} +13 -13
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BEUr2Qzn.js → VoucherEditor.vue_vue_type_script_setup_true_lang-C7Sxj_Z5.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CoVkJ7jY.js → ZodTextField.vue_vue_type_script_setup_true_lang-DJSNeUwi.js} +2 -2
- package/dist/{app-BNDMm2kI.js → app-BoN-DjbO.js} +227 -227
- package/dist/app.js +1 -1
- package/dist/{business-DCYM-74Q.js → business-CLr23aV0.js} +1 -1
- package/dist/{campaign-YBHBVUng.js → campaign-BfiTO1X2.js} +1 -1
- package/dist/{campaign-BiaIKz1Q.js → campaign-Db2CDtUO.js} +8 -8
- package/dist/{campaign.enum-CBPzeYMr.js → campaign.enum-DXFktsU-.js} +1 -1
- package/dist/{campaign.fn-Cy_rArfJ.js → campaign.fn-Cd6etiJk.js} +207 -207
- package/dist/{collectible.enum-CeA4YQYM.js → collectible.enum-BvR6Act_.js} +1 -1
- package/dist/{collection.fn-D45buMNb.js → collection.fn-BYrE69Mx.js} +2 -2
- package/dist/{dto-B62ATFpB.js → dto-09bFA2ak.js} +17 -17
- package/dist/{duplicateCampaign-WImp_6Xs.js → duplicateCampaign-y3eI3xL8.js} +2 -2
- package/dist/{effect-zMFtElAL.js → effect-fFbq8rS2.js} +1 -1
- package/dist/{email-addresses-D6P9xKPB.js → email-addresses-BaO2JIrl.js} +2 -2
- package/dist/{export-CRs_yVhl.js → export-BSmegpBx.js} +3 -3
- package/dist/{helper-RhWjQqTm.js → helper-CTwktYqy.js} +1 -1
- package/dist/{index-DDMoQaSc.js → index-44YnPS-2.js} +1 -1
- package/dist/{index-CvlwpTKX.js → index-C39blIPy.js} +6 -1
- package/dist/{index-Dii-DHJ2.js → index-CxKomdCz.js} +4 -4
- package/dist/{index-CgYajQbi.js → index-DI0uj4vF.js} +1 -1
- package/dist/{index-Cy5MFD-0.js → index-DRhIpyOT.js} +1 -1
- package/dist/{index-DeBBhbzk.js → index-DeCJGK1Q.js} +1 -1
- package/dist/{index-nPixknUi.js → index-DhYKVUSb.js} +2 -2
- package/dist/{index-h1TWWcPC.js → index-DmPId6MB.js} +3 -3
- package/dist/{index-n5n83HPj.js → index-Dp9WPErb.js} +1 -1
- package/dist/{index-B7cTB-PJ.js → index-DpaRTpHD.js} +3 -3
- package/dist/index-Dr1YvZ4P.js +48 -0
- package/dist/{index-iKdjWDgI.js → index-Dwu6WniS.js} +145 -147
- package/dist/{index-C272QcbD.js → index-d22vtyVf.js} +3 -3
- package/dist/{index.esm2017-BmcwXC9r.js → index.esm2017-Z2kwppPX.js} +37 -37
- package/dist/{loading-DerlV3vs.js → loading-CO7pFgcU.js} +1 -1
- package/dist/{lodash-BISvQ6OQ.js → lodash-CKkm7yoC.js} +1 -1
- package/dist/{membership-B8kRPYWq.js → membership-EYuMqKtt.js} +3 -3
- package/dist/{money-DNQGbbvj.js → money-CxWj48Wm.js} +1 -1
- package/dist/{number-I5LWbf8Y.js → number-DZHCx5Go.js} +1 -1
- package/dist/{objectid-p2vFUDoW.js → objectid-mZMF8pti.js} +5 -5
- package/dist/{plugins-Bv7VdsSc.js → plugins-_dpHP1gj.js} +3 -3
- package/dist/{reward-CB7aZjtn.js → reward-D1-Jp6t6.js} +1 -1
- package/dist/{rule-DRcXbvy1.js → rule-CKxKnTFS.js} +3 -3
- package/dist/rule-builder-DhnS-k1_.js +126 -0
- package/dist/{template-ltzns_fo.js → template-C2L0Elsh.js} +6 -6
- package/dist/{timezone-BnsVYcxC.js → timezone-CQUmqwM9.js} +2 -2
- package/dist/{trigger-DR8YN2wo.js → trigger-CIPa0S6u.js} +5 -5
- package/dist/{useMarketingMaterialActions-3BXMnWw5.js → useMarketingMaterialActions-Bq-Uy836.js} +3 -3
- package/dist/{usePagination-DHUS-0Vw.js → usePagination-BqmoP8ab.js} +1 -1
- package/dist/{user-BBZDjft2.js → user-CkAxgDHp.js} +1 -1
- package/dist/{vue-i18n-CCYEvHJA.js → vue-i18n-5y9oDx95.js} +357 -357
- package/dist/{xlsx-qWbyVF7x.js → xlsx-Dy95Mli3.js} +1 -1
- package/dist/{zod-C5h1V9iY.js → zod-CF1kthTf.js} +1 -1
- package/package.json +1 -1
- package/dist/Review-ClpuFAlW.js +0 -621
- package/dist/index-D6uAAAq3.js +0 -48
- package/dist/rule-builder-BetO8JaI.js +0 -102
|
@@ -1,181 +1,184 @@
|
|
|
1
|
-
import { defineComponent as Z, ref as
|
|
1
|
+
import { defineComponent as Z, ref as A, computed as q, onMounted as z, resolveComponent as F, openBlock as y, createBlock as E, unref as e, isRef as ee, withCtx as V, createElementVNode as s, createVNode as c, createElementBlock as D, createTextVNode as te, resolveDynamicComponent as N, toDisplayString as H, Fragment as W, createCommentVNode as P, h as C } from "vue";
|
|
2
2
|
import { _ as oe } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index-
|
|
5
|
-
import { u as ae } from "./loading-
|
|
6
|
-
import { C as Q, u as
|
|
7
|
-
import { p as
|
|
4
|
+
import "./index-44YnPS-2.js";
|
|
5
|
+
import { u as ae } from "./loading-CO7pFgcU.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-EYuMqKtt.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-_dpHP1gj.js";
|
|
8
8
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as
|
|
10
|
-
import { F as
|
|
11
|
-
import { c as
|
|
9
|
+
import { u as se } from "./vue-i18n-5y9oDx95.js";
|
|
10
|
+
import { F as ie } from "./index-DmPId6MB.js";
|
|
11
|
+
import { c as re } from "./object-qECH92oz.js";
|
|
12
12
|
import { u as Y } from "./app-wDQR6dpb.js";
|
|
13
|
-
import { u as le } from "./business-
|
|
14
|
-
import { Z as h } from "./zod-
|
|
15
|
-
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
-
import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
19
|
-
import { i as fe, F as ye, h as j, t as we } from "./helper-
|
|
13
|
+
import { u as le } from "./business-CLr23aV0.js";
|
|
14
|
+
import { Z as h } from "./zod-CF1kthTf.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-DJSNeUwi.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-B0YvP43y.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CWuZ64Ej.js";
|
|
18
|
+
import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-Bdw9FRi5.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-CTwktYqy.js";
|
|
20
20
|
import { useRouter as ge } from "vue-router";
|
|
21
|
-
import { m as G } from "./index-
|
|
22
|
-
import { R as
|
|
23
|
-
|
|
21
|
+
import { m as G } from "./index-C39blIPy.js";
|
|
22
|
+
import { R as L } from "./app-BoN-DjbO.js";
|
|
23
|
+
function ve(w) {
|
|
24
|
+
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
|
+
}
|
|
26
|
+
const be = {
|
|
24
27
|
key: 0,
|
|
25
28
|
class: "flex flex-col space-y-16 pr-12"
|
|
26
|
-
},
|
|
29
|
+
}, Re = { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, _e = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary flex items-center justify-between" }, xe = { class: "flex items-center gap-8" }, Ce = /* @__PURE__ */ Z({
|
|
27
30
|
__name: "EditRewardSheet",
|
|
28
31
|
emits: ["update"],
|
|
29
|
-
setup(
|
|
30
|
-
const
|
|
32
|
+
setup(w, { expose: i, emit: k }) {
|
|
33
|
+
const U = k, u = le(), l = X(), g = A(!1), n = A(), S = A(), O = A(!1), v = ie, b = q(
|
|
31
34
|
() => {
|
|
32
35
|
var d;
|
|
33
|
-
return Q[((d =
|
|
36
|
+
return Q[((d = n.value) == null ? void 0 : d.type) || "VOUCHER"];
|
|
34
37
|
}
|
|
35
|
-
),
|
|
36
|
-
const d =
|
|
38
|
+
), R = q(() => {
|
|
39
|
+
const d = v.safeParse(n.value);
|
|
37
40
|
return d.success ? [] : d.error.errors;
|
|
38
41
|
});
|
|
39
42
|
function M() {
|
|
40
|
-
const d =
|
|
43
|
+
const d = v.safeParse(n.value);
|
|
41
44
|
if (d.success) {
|
|
42
45
|
const a = { ...d.data };
|
|
43
|
-
|
|
46
|
+
O.value && (a.capabilities = ye), U("update", a);
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
|
-
function
|
|
49
|
+
function I(d, a, T = {
|
|
47
50
|
isStoreReward: !1,
|
|
48
51
|
type: "VOUCHER"
|
|
49
52
|
}) {
|
|
50
|
-
|
|
53
|
+
g.value = d, d && (S.value = void 0, O.value = T.isFeedvibe ?? !1, n.value = a || fe(T.type, {
|
|
51
54
|
business: l.currentBusiness.value._id,
|
|
52
|
-
noCampaign:
|
|
55
|
+
noCampaign: T.isStoreReward == !0
|
|
53
56
|
}));
|
|
54
57
|
}
|
|
55
58
|
return z(async () => {
|
|
56
59
|
await u.readLocations();
|
|
57
|
-
}),
|
|
58
|
-
showSheet:
|
|
59
|
-
data:
|
|
60
|
-
rewardImage:
|
|
60
|
+
}), i({
|
|
61
|
+
showSheet: I,
|
|
62
|
+
data: n,
|
|
63
|
+
rewardImage: S
|
|
61
64
|
}), (d, a) => {
|
|
62
|
-
const
|
|
65
|
+
const T = F("FmTextarea"), t = F("FmHelperText"), o = F("FmButton"), m = F("FmSideSheet");
|
|
63
66
|
return y(), E(m, {
|
|
64
67
|
"max-width": 560,
|
|
65
|
-
modelValue: e(
|
|
66
|
-
"onUpdate:modelValue": a[7] || (a[7] = (p) => ee(
|
|
68
|
+
modelValue: e(g),
|
|
69
|
+
"onUpdate:modelValue": a[7] || (a[7] = (p) => ee(g) ? g.value = p : null),
|
|
67
70
|
header: "Store setting"
|
|
68
71
|
}, {
|
|
69
|
-
"side-sheet-footer":
|
|
70
|
-
|
|
72
|
+
"side-sheet-footer": V(() => [
|
|
73
|
+
s("div", xe, [
|
|
71
74
|
c(o, {
|
|
72
75
|
label: "Submit",
|
|
73
76
|
onClick: M,
|
|
74
|
-
disabled: e(
|
|
77
|
+
disabled: e(R).length > 0 || e(Y)().isLoading,
|
|
75
78
|
loading: e(Y)().isLoading
|
|
76
79
|
}, null, 8, ["disabled", "loading"]),
|
|
77
80
|
c(o, {
|
|
78
81
|
label: "Cancel",
|
|
79
|
-
onClick: a[6] || (a[6] = (p) =>
|
|
82
|
+
onClick: a[6] || (a[6] = (p) => I(!1)),
|
|
80
83
|
variant: "tertiary"
|
|
81
84
|
})
|
|
82
85
|
])
|
|
83
86
|
]),
|
|
84
|
-
default:
|
|
85
|
-
var p,
|
|
87
|
+
default: V(() => {
|
|
88
|
+
var p, _, x;
|
|
86
89
|
return [
|
|
87
|
-
e(
|
|
88
|
-
|
|
90
|
+
e(n) ? (y(), D("div", be, [
|
|
91
|
+
s("div", Re, [
|
|
89
92
|
a[8] || (a[8] = te(" Reward information ", -1)),
|
|
90
|
-
(y(), E(N(e(
|
|
93
|
+
(y(), E(N(e(b).chip())))
|
|
91
94
|
]),
|
|
92
95
|
c(de, {
|
|
93
|
-
modelValue: e(
|
|
94
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
95
|
-
label: `${e(
|
|
96
|
-
schema: e(h).typeAtPath(e(
|
|
96
|
+
modelValue: e(n).name,
|
|
97
|
+
"onUpdate:modelValue": a[0] || (a[0] = (r) => e(n).name = r),
|
|
98
|
+
label: `${e(b).name} name`,
|
|
99
|
+
schema: e(h).typeAtPath(e(v), "name", [e(n).type])
|
|
97
100
|
}, null, 8, ["modelValue", "label", "schema"]),
|
|
98
|
-
c(
|
|
101
|
+
c(T, {
|
|
99
102
|
class: "!mb-[-16px]",
|
|
100
|
-
modelValue: e(
|
|
101
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
102
|
-
rules: [e(h).ruleAtPath(e(
|
|
103
|
+
modelValue: e(n).description,
|
|
104
|
+
"onUpdate:modelValue": a[1] || (a[1] = (r) => e(n).description = r),
|
|
105
|
+
rules: [e(h).ruleAtPath(e(v), "description", [e(n).type])]
|
|
103
106
|
}, {
|
|
104
|
-
label:
|
|
107
|
+
label: V(() => [
|
|
105
108
|
(y(), E(N(
|
|
106
109
|
e(h).toInputLabel(
|
|
107
|
-
e(h).typeAtPath(e(
|
|
108
|
-
`${e(
|
|
110
|
+
e(h).typeAtPath(e(v), "description", [e(n).type]),
|
|
111
|
+
`${e(b).name} description`
|
|
109
112
|
)
|
|
110
113
|
)))
|
|
111
114
|
]),
|
|
112
115
|
_: 1
|
|
113
116
|
}, 8, ["modelValue", "rules"]),
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
+
s("div", _e, [
|
|
118
|
+
s("div", null, H(e(b).name) + " description should not exceed 200 characters. ", 1),
|
|
119
|
+
s("div", null, H(((p = e(n).description) == null ? void 0 : p.length) ?? 0) + "/200", 1)
|
|
117
120
|
]),
|
|
118
121
|
c(ce, {
|
|
119
122
|
class: "w-1/2 xs:w-2/3",
|
|
120
123
|
"aspect-ratio": "16/9",
|
|
121
|
-
file: e(
|
|
122
|
-
thumbnail: e(
|
|
123
|
-
"onUpdate:file": a[2] || (a[2] = async (
|
|
124
|
-
|
|
124
|
+
file: e(S) ?? void 0,
|
|
125
|
+
thumbnail: e(n).image ?? void 0,
|
|
126
|
+
"onUpdate:file": a[2] || (a[2] = async (r) => {
|
|
127
|
+
S.value = r, r || (e(n).image = null);
|
|
125
128
|
})
|
|
126
129
|
}, {
|
|
127
|
-
label:
|
|
130
|
+
label: V(() => [
|
|
128
131
|
(y(), E(N(
|
|
129
132
|
e(h).toInputLabel(
|
|
130
|
-
e(h).typeAtPath(e(
|
|
131
|
-
`${e(
|
|
133
|
+
e(h).typeAtPath(e(v), "image", [e(n).type]),
|
|
134
|
+
`${e(b).name} image`
|
|
132
135
|
)
|
|
133
136
|
)))
|
|
134
137
|
]),
|
|
135
138
|
_: 1
|
|
136
139
|
}, 8, ["file", "thumbnail"]),
|
|
137
|
-
e(
|
|
138
|
-
a[9] || (a[9] =
|
|
140
|
+
e(n).type === "VOUCHER" ? (y(), D(W, { key: 0 }, [
|
|
141
|
+
a[9] || (a[9] = s("div", { class: "fm-typo-en-title-sm-800" }, "Discount", -1)),
|
|
139
142
|
c(pe, {
|
|
140
|
-
"model-value": e(
|
|
141
|
-
"onUpdate:modelValue": a[3] || (a[3] = (
|
|
142
|
-
e(
|
|
143
|
+
"model-value": e(n).extras.effect,
|
|
144
|
+
"onUpdate:modelValue": a[3] || (a[3] = (r) => {
|
|
145
|
+
e(n).extras.effect = r;
|
|
143
146
|
})
|
|
144
147
|
}, null, 8, ["model-value"]),
|
|
145
|
-
e(
|
|
148
|
+
e(n).extras.effect == null ? (y(), E(t, {
|
|
146
149
|
key: 0,
|
|
147
150
|
class: "!mt-8",
|
|
148
151
|
text: "Effect is required",
|
|
149
152
|
state: "error"
|
|
150
|
-
})) :
|
|
151
|
-
a[10] || (a[10] =
|
|
153
|
+
})) : P("", !0),
|
|
154
|
+
a[10] || (a[10] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, " Usage configuration ", -1)),
|
|
152
155
|
c(ue, {
|
|
153
|
-
"model-value": e(
|
|
154
|
-
"no-campaign": e(
|
|
155
|
-
"onUpdate:modelValue": a[4] || (a[4] = (
|
|
156
|
-
schema: e(h).typeAtPath(e(
|
|
156
|
+
"model-value": e(n).options,
|
|
157
|
+
"no-campaign": e(n).noCampaign,
|
|
158
|
+
"onUpdate:modelValue": a[4] || (a[4] = (r) => e(n).options = r),
|
|
159
|
+
schema: e(h).typeAtPath(e(v), "options", ["VOUCHER"])
|
|
157
160
|
}, null, 8, ["model-value", "no-campaign", "schema"])
|
|
158
|
-
], 64)) :
|
|
159
|
-
a[11] || (a[11] =
|
|
160
|
-
e(
|
|
161
|
+
], 64)) : P("", !0),
|
|
162
|
+
a[11] || (a[11] = s("div", { class: "fm-typo-en-title-sm-800 !mb-[-8px]" }, "Availability", -1)),
|
|
163
|
+
e(n).type === "VOUCHER" ? (y(), E(me, {
|
|
161
164
|
key: 1,
|
|
162
|
-
"model-value": ((
|
|
165
|
+
"model-value": ((x = (_ = e(n).extras) == null ? void 0 : _.targetLocation) == null ? void 0 : x.map(String)) ?? null,
|
|
163
166
|
type: "select",
|
|
164
|
-
"onUpdate:modelValue": a[5] || (a[5] = (
|
|
165
|
-
e(
|
|
167
|
+
"onUpdate:modelValue": a[5] || (a[5] = (r) => {
|
|
168
|
+
e(n).extras.targetLocation = r;
|
|
166
169
|
}),
|
|
167
170
|
rules: [
|
|
168
|
-
e(h).ruleAtPath(e(
|
|
171
|
+
e(h).ruleAtPath(e(v), "extras.targetLocation", ["VOUCHER"])
|
|
169
172
|
]
|
|
170
|
-
}, null, 8, ["model-value", "rules"])) :
|
|
171
|
-
])) :
|
|
173
|
+
}, null, 8, ["model-value", "rules"])) : P("", !0)
|
|
174
|
+
])) : P("", !0)
|
|
172
175
|
];
|
|
173
176
|
}),
|
|
174
177
|
_: 1
|
|
175
178
|
}, 8, ["modelValue"]);
|
|
176
179
|
};
|
|
177
180
|
}
|
|
178
|
-
}),
|
|
181
|
+
}), Fe = { class: "flex flex-nowrap gap-x-2 grow h-full" }, Se = { class: "flex flex-col grow p-24" }, he = { class: "grow pb-16 pr-16 pt-6 w-full" }, Ee = { class: "gap-24 grid grid-cols-1 lg:grid-cols-2" }, Ve = /* @__PURE__ */ Z({
|
|
179
182
|
__name: "RewardTypeDialog",
|
|
180
183
|
props: {
|
|
181
184
|
onOk: {
|
|
@@ -183,42 +186,42 @@ const ve = {
|
|
|
183
186
|
required: !0
|
|
184
187
|
}
|
|
185
188
|
},
|
|
186
|
-
setup(
|
|
187
|
-
const
|
|
188
|
-
function
|
|
189
|
-
|
|
189
|
+
setup(w) {
|
|
190
|
+
const i = J(), k = w;
|
|
191
|
+
function U(u) {
|
|
192
|
+
k.onOk(u), i.close();
|
|
190
193
|
}
|
|
191
194
|
return (u, l) => {
|
|
192
|
-
const
|
|
193
|
-
return y(), E(
|
|
194
|
-
default:
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
l[4] || (l[4] =
|
|
198
|
-
|
|
199
|
-
|
|
195
|
+
const g = F("FmCard");
|
|
196
|
+
return y(), E(g, { class: "max-w-6xl" }, {
|
|
197
|
+
default: V(() => [
|
|
198
|
+
s("div", Fe, [
|
|
199
|
+
s("div", Se, [
|
|
200
|
+
l[4] || (l[4] = s("div", { class: "space-y-4" }, [
|
|
201
|
+
s("div", { class: "fm-typo-en-title-sm-800" }, "Store rewards"),
|
|
202
|
+
s("div", { class: "text-fm-color-typo-secondary fm-typo-en-body-md-400" }, " Select a reward type to get started. ")
|
|
200
203
|
], -1)),
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
c(
|
|
204
|
+
s("div", he, [
|
|
205
|
+
s("div", Ee, [
|
|
206
|
+
c(g, {
|
|
204
207
|
variant: "outlined",
|
|
205
208
|
class: "box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8",
|
|
206
|
-
onClick: l[0] || (l[0] = (
|
|
209
|
+
onClick: l[0] || (l[0] = (n) => U("general"))
|
|
207
210
|
}, {
|
|
208
|
-
default:
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
default: V(() => [...l[2] || (l[2] = [
|
|
212
|
+
s("div", { class: "fm-typo-en-title-sm-800" }, "General Reward", -1),
|
|
213
|
+
s("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " A standard voucher reward that can be freely edited and managed. ", -1)
|
|
211
214
|
])]),
|
|
212
215
|
_: 1
|
|
213
216
|
}),
|
|
214
|
-
c(
|
|
217
|
+
c(g, {
|
|
215
218
|
variant: "outlined",
|
|
216
219
|
class: "box-border cursor-pointer h-full p-16 scroll-p-4 space-y-8",
|
|
217
|
-
onClick: l[1] || (l[1] = (
|
|
220
|
+
onClick: l[1] || (l[1] = (n) => U("feedvibe"))
|
|
218
221
|
}, {
|
|
219
|
-
default:
|
|
220
|
-
|
|
221
|
-
|
|
222
|
+
default: V(() => [...l[3] || (l[3] = [
|
|
223
|
+
s("div", { class: "fm-typo-en-title-sm-800" }, "FeedVibe Reward", -1),
|
|
224
|
+
s("div", { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, " A locked reward for FeedVibe bundles. Cannot be edited or deleted after creation. ", -1)
|
|
222
225
|
])]),
|
|
223
226
|
_: 1
|
|
224
227
|
})
|
|
@@ -231,20 +234,20 @@ const ve = {
|
|
|
231
234
|
});
|
|
232
235
|
};
|
|
233
236
|
}
|
|
234
|
-
}),
|
|
237
|
+
}), Oe = { class: "px-24 flex flex-col gap-y-16" }, Te = { class: "flex items-center justify-between w-full" }, ke = { class: "flex flex-col gap-16 text-center" }, Ue = { class: "fm-typo-en-title-sm-800" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, ot = /* @__PURE__ */ Z({
|
|
235
238
|
__name: "StoreRewards",
|
|
236
|
-
setup(
|
|
237
|
-
const { t:
|
|
238
|
-
label:
|
|
239
|
+
setup(w) {
|
|
240
|
+
const { t: i } = se(), k = J(), U = {
|
|
241
|
+
label: i("connect.storeRewards.create"),
|
|
239
242
|
value: "create",
|
|
240
243
|
isPrimary: !0,
|
|
241
244
|
prependIcon: "add"
|
|
242
|
-
}, u =
|
|
245
|
+
}, u = ne(), l = X(), { global: g, minor: n } = ae, S = ge(), O = A({
|
|
243
246
|
searchKey: "",
|
|
244
247
|
columnFilters: []
|
|
245
|
-
}),
|
|
248
|
+
}), v = [
|
|
246
249
|
{
|
|
247
|
-
header:
|
|
250
|
+
header: i("connect.storeRewards.table.name"),
|
|
248
251
|
accessorFn: (t) => t.name,
|
|
249
252
|
cell(t) {
|
|
250
253
|
const o = t.row.original, m = j(
|
|
@@ -253,10 +256,10 @@ const ve = {
|
|
|
253
256
|
"selectable",
|
|
254
257
|
!1
|
|
255
258
|
);
|
|
256
|
-
return
|
|
257
|
-
|
|
259
|
+
return C("div", { class: "flex items-center gap-8" }, [
|
|
260
|
+
C("span", {}, o.name),
|
|
258
261
|
...m ? [
|
|
259
|
-
|
|
262
|
+
C($.FmChip, {
|
|
260
263
|
label: "Feedvibe",
|
|
261
264
|
class: "text-fm-color-primary bg-fm-color-system-warning-100",
|
|
262
265
|
compact: !0
|
|
@@ -267,30 +270,30 @@ const ve = {
|
|
|
267
270
|
},
|
|
268
271
|
{
|
|
269
272
|
id: "type",
|
|
270
|
-
header:
|
|
273
|
+
header: i("connect.storeRewards.table.type"),
|
|
271
274
|
accessorFn: (t) => t.type,
|
|
272
275
|
cell(t) {
|
|
273
276
|
return Q[t.row.original.type].chip();
|
|
274
277
|
}
|
|
275
278
|
},
|
|
276
279
|
{
|
|
277
|
-
header:
|
|
280
|
+
header: i("connect.storeRewards.table.validity"),
|
|
278
281
|
accessorFn: (t) => we(
|
|
279
282
|
"validityOption" in t.options ? t.options.validityOption || {} : {}
|
|
280
283
|
)
|
|
281
284
|
},
|
|
282
285
|
{
|
|
283
|
-
header:
|
|
286
|
+
header: i("connect.storeRewards.table.used"),
|
|
284
287
|
meta: {
|
|
285
288
|
textAlign: "left"
|
|
286
289
|
},
|
|
287
290
|
accessorFn: (t) => t.currentReceive ?? 0
|
|
288
291
|
},
|
|
289
292
|
{
|
|
290
|
-
header:
|
|
293
|
+
header: i("connect.storeRewards.table.actions"),
|
|
291
294
|
cell(t) {
|
|
292
|
-
return
|
|
293
|
-
|
|
295
|
+
return C("div", { class: "flex items-center justify-end gap-4" }, [
|
|
296
|
+
C(
|
|
294
297
|
$.FmMenu,
|
|
295
298
|
{
|
|
296
299
|
placement: "bottom-end",
|
|
@@ -299,13 +302,13 @@ const ve = {
|
|
|
299
302
|
}
|
|
300
303
|
},
|
|
301
304
|
{
|
|
302
|
-
"menu-button": () =>
|
|
305
|
+
"menu-button": () => C($.FmButton, {
|
|
303
306
|
icon: "more_vert",
|
|
304
307
|
iconColor: "neutral-gray-400",
|
|
305
308
|
variant: "tertiary"
|
|
306
309
|
}),
|
|
307
310
|
default: () => [
|
|
308
|
-
|
|
311
|
+
C($.FmMenuItem, {
|
|
309
312
|
label: "View collections",
|
|
310
313
|
onClick: async (o) => {
|
|
311
314
|
o.stopPropagation(), M(t.row.original._id);
|
|
@@ -316,15 +319,15 @@ const ve = {
|
|
|
316
319
|
"STORE_BUNDLE:FEEDVIBE",
|
|
317
320
|
"deletable"
|
|
318
321
|
) ? [
|
|
319
|
-
|
|
322
|
+
C(
|
|
320
323
|
$.FmMenuItem,
|
|
321
324
|
{
|
|
322
325
|
onClick: async (o) => {
|
|
323
|
-
o.stopPropagation(),
|
|
326
|
+
o.stopPropagation(), I(t.row.original);
|
|
324
327
|
}
|
|
325
328
|
},
|
|
326
329
|
{
|
|
327
|
-
label:
|
|
330
|
+
label: C(
|
|
328
331
|
"div",
|
|
329
332
|
{
|
|
330
333
|
class: "text-fm-color-typo-error fm-typo-en-body-md-400"
|
|
@@ -340,42 +343,42 @@ const ve = {
|
|
|
340
343
|
]);
|
|
341
344
|
}
|
|
342
345
|
}
|
|
343
|
-
],
|
|
346
|
+
], b = q(
|
|
344
347
|
() => u.bundleRewards.filter((t) => t.type == "VOUCHER")
|
|
345
|
-
),
|
|
348
|
+
), R = A();
|
|
346
349
|
function M(t) {
|
|
347
|
-
|
|
348
|
-
name:
|
|
350
|
+
S.push({
|
|
351
|
+
name: L["$connect-STORE_REWARD_COLLECTIONS"],
|
|
349
352
|
params: { id: t }
|
|
350
353
|
});
|
|
351
354
|
}
|
|
352
|
-
async function
|
|
355
|
+
async function I(t) {
|
|
353
356
|
if (t.type === "TITLE") {
|
|
354
|
-
await
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
) && await
|
|
357
|
+
await B.confirm(
|
|
358
|
+
i("connect.storeRewards.remove.message"),
|
|
359
|
+
i("connect.storeRewards.remove.title"),
|
|
360
|
+
i("connect.storeRewards.remove.action")
|
|
361
|
+
) && await S.push({ name: L["$connect-PROGRAM_TITLE"] });
|
|
359
362
|
return;
|
|
360
363
|
}
|
|
361
|
-
await
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
) && await
|
|
364
|
+
await B.remove(
|
|
365
|
+
i("connect.storeRewards.delete.confirm"),
|
|
366
|
+
i("connect.storeRewards.delete.title")
|
|
367
|
+
) && await n(
|
|
365
368
|
async () => {
|
|
366
369
|
await G.deleteReward(t._id), await u.readMembership(), await u.readRewards();
|
|
367
370
|
},
|
|
368
371
|
{
|
|
369
|
-
message:
|
|
370
|
-
successMessage:
|
|
372
|
+
message: i("connect.storeRewards.delete.message"),
|
|
373
|
+
successMessage: i("connect.storeRewards.delete.success")
|
|
371
374
|
}
|
|
372
375
|
);
|
|
373
376
|
}
|
|
374
377
|
function d() {
|
|
375
378
|
return new Promise((t) => {
|
|
376
|
-
|
|
379
|
+
k.open({
|
|
377
380
|
title: "Create reward",
|
|
378
|
-
dialogComponent:
|
|
381
|
+
dialogComponent: C(Ve, {
|
|
379
382
|
onOk: (o) => {
|
|
380
383
|
t(o);
|
|
381
384
|
}
|
|
@@ -386,14 +389,14 @@ const ve = {
|
|
|
386
389
|
});
|
|
387
390
|
}
|
|
388
391
|
async function a(t) {
|
|
389
|
-
var
|
|
390
|
-
const o = t ?
|
|
392
|
+
var _, x, r;
|
|
393
|
+
const o = t ? re(u.bundleRewards.find((f) => f._id === t)) : void 0, m = ve((_ = l.sessionUser.value) == null ? void 0 : _.role), p = !!o && !j(
|
|
391
394
|
o.capabilities,
|
|
392
395
|
"STORE_BUNDLE:FEEDVIBE",
|
|
393
396
|
"editable"
|
|
394
397
|
);
|
|
395
398
|
if (p && !m) {
|
|
396
|
-
await
|
|
399
|
+
await B.confirm(
|
|
397
400
|
"This reward is managed by FeedVibe and cannot be edited.",
|
|
398
401
|
"Cannot edit reward",
|
|
399
402
|
"OK"
|
|
@@ -401,42 +404,42 @@ const ve = {
|
|
|
401
404
|
return;
|
|
402
405
|
}
|
|
403
406
|
if ((o == null ? void 0 : o.type) === "TITLE") {
|
|
404
|
-
await
|
|
407
|
+
await B.confirm(
|
|
405
408
|
"You cannot edit a title here, please edit it at the Program > Title section.",
|
|
406
409
|
"Update reward",
|
|
407
410
|
"Go to title section"
|
|
408
|
-
) && await
|
|
411
|
+
) && await S.push({ name: L["$connect-PROGRAM_TITLE"] });
|
|
409
412
|
return;
|
|
410
413
|
}
|
|
411
414
|
if (!o) {
|
|
412
415
|
const f = await d();
|
|
413
416
|
if (!f) return;
|
|
414
|
-
(
|
|
417
|
+
(x = R.value) == null || x.showSheet(!0, void 0, {
|
|
415
418
|
isStoreReward: !0,
|
|
416
419
|
type: "VOUCHER",
|
|
417
420
|
isFeedvibe: f === "feedvibe"
|
|
418
421
|
});
|
|
419
422
|
return;
|
|
420
423
|
}
|
|
421
|
-
(
|
|
424
|
+
(r = R.value) == null || r.showSheet(!0, o, {
|
|
422
425
|
isStoreReward: !0,
|
|
423
426
|
type: "VOUCHER",
|
|
424
427
|
// Preserve the FeedVibe lock when an admin edits a locked reward.
|
|
425
428
|
isFeedvibe: p
|
|
426
429
|
});
|
|
427
430
|
}
|
|
428
|
-
async function
|
|
431
|
+
async function T(t) {
|
|
429
432
|
let o = !1;
|
|
430
433
|
t._id && t.type === "VOUCHER" && await new Promise((m) => {
|
|
431
|
-
|
|
434
|
+
k.open({
|
|
432
435
|
title: "Confirmation",
|
|
433
|
-
message:
|
|
436
|
+
message: i("connect.campaign.voucher.updateConfirm.message"),
|
|
434
437
|
primaryActions: {
|
|
435
|
-
text:
|
|
438
|
+
text: i("connect.campaign.voucher.updateConfirm.updateAll"),
|
|
436
439
|
close: !0
|
|
437
440
|
},
|
|
438
441
|
secondaryActions: {
|
|
439
|
-
text:
|
|
442
|
+
text: i("connect.campaign.voucher.updateConfirm.updateFuture"),
|
|
440
443
|
close: !0
|
|
441
444
|
}
|
|
442
445
|
}).onPrimary(async () => {
|
|
@@ -444,19 +447,19 @@ const ve = {
|
|
|
444
447
|
}).onSecondary(async () => {
|
|
445
448
|
m();
|
|
446
449
|
});
|
|
447
|
-
}), await
|
|
450
|
+
}), await n(
|
|
448
451
|
async () => {
|
|
449
|
-
var m, p,
|
|
450
|
-
(m =
|
|
452
|
+
var m, p, _, x;
|
|
453
|
+
(m = R.value) != null && m.rewardImage && t.image ? await K.delete(t.image) : (p = R.value) != null && p.rewardImage && (t.image = await K.update(
|
|
451
454
|
t.image || K.collectibleImagePath(
|
|
452
455
|
void 0,
|
|
453
|
-
|
|
456
|
+
R.value.rewardImage
|
|
454
457
|
),
|
|
455
|
-
(
|
|
458
|
+
(_ = R.value) == null ? void 0 : _.rewardImage
|
|
456
459
|
)), t._id ? await G.updateReward(t._id, {
|
|
457
460
|
...t,
|
|
458
461
|
updateCollection: o
|
|
459
|
-
}) : await G.createReward(t), await u.readRewards(), (
|
|
462
|
+
}) : await G.createReward(t), await u.readRewards(), (x = R.value) == null || x.showSheet(!1);
|
|
460
463
|
},
|
|
461
464
|
{
|
|
462
465
|
message: "Updating reward",
|
|
@@ -465,67 +468,67 @@ const ve = {
|
|
|
465
468
|
);
|
|
466
469
|
}
|
|
467
470
|
return z(async () => {
|
|
468
|
-
await
|
|
471
|
+
await g(async () => {
|
|
469
472
|
await u.readMembership(), await u.readRewards();
|
|
470
473
|
});
|
|
471
474
|
}), (t, o) => {
|
|
472
|
-
const m =
|
|
473
|
-
return y(),
|
|
475
|
+
const m = F("FmPageHead"), p = F("FmSearch"), _ = F("FmTable"), x = F("FmButton"), r = F("FmCard");
|
|
476
|
+
return y(), D(W, null, [
|
|
474
477
|
c(m, {
|
|
475
|
-
title: e(
|
|
476
|
-
description: e(
|
|
477
|
-
actions: [
|
|
478
|
+
title: e(i)("connect.storeRewards.title"),
|
|
479
|
+
description: e(i)("connect.storeRewards.description"),
|
|
480
|
+
actions: [U],
|
|
478
481
|
"back-button": !0,
|
|
479
482
|
"onClick:action": o[0] || (o[0] = () => a()),
|
|
480
|
-
"onClick:back": o[1] || (o[1] = () => e(
|
|
483
|
+
"onClick:back": o[1] || (o[1] = () => e(S).push({ name: e(L)["$connect-STORE"] }))
|
|
481
484
|
}, null, 8, ["title", "description", "actions"]),
|
|
482
|
-
|
|
483
|
-
e(
|
|
484
|
-
|
|
485
|
-
o[6] || (o[6] =
|
|
485
|
+
s("div", Oe, [
|
|
486
|
+
e(b) && e(b).length > 0 ? (y(), D(W, { key: 0 }, [
|
|
487
|
+
s("div", Te, [
|
|
488
|
+
o[6] || (o[6] = s("div", { class: "flex gap-8" }, null, -1)),
|
|
486
489
|
c(p, {
|
|
487
|
-
modelValue: e(
|
|
488
|
-
"onUpdate:modelValue": o[2] || (o[2] = (f) => e(
|
|
490
|
+
modelValue: e(O).searchKey,
|
|
491
|
+
"onUpdate:modelValue": o[2] || (o[2] = (f) => e(O).searchKey = f),
|
|
489
492
|
class: "",
|
|
490
493
|
placeholder: "search",
|
|
491
494
|
collapsible: ""
|
|
492
495
|
}, null, 8, ["modelValue"])
|
|
493
496
|
]),
|
|
494
|
-
c(
|
|
495
|
-
"row-data": e(
|
|
496
|
-
"column-defs":
|
|
497
|
-
"search-value": e(
|
|
498
|
-
"column-filter": e(
|
|
497
|
+
c(_, {
|
|
498
|
+
"row-data": e(b),
|
|
499
|
+
"column-defs": v,
|
|
500
|
+
"search-value": e(O).searchKey,
|
|
501
|
+
"column-filter": e(O).columnFilters,
|
|
499
502
|
onRowClick: o[3] || (o[3] = (f) => a(f.original._id)),
|
|
500
|
-
"hide-footer": e(
|
|
503
|
+
"hide-footer": e(b).length < 10
|
|
501
504
|
}, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
|
|
502
|
-
], 64)) : (y(), E(
|
|
505
|
+
], 64)) : (y(), E(r, {
|
|
503
506
|
key: 1,
|
|
504
507
|
variant: "outlined",
|
|
505
508
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
506
509
|
}, {
|
|
507
|
-
default:
|
|
508
|
-
o[7] || (o[7] =
|
|
510
|
+
default: V(() => [
|
|
511
|
+
o[7] || (o[7] = s("img", {
|
|
509
512
|
src: oe,
|
|
510
513
|
class: "aspect-square w-[150px]"
|
|
511
514
|
}, null, -1)),
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
+
s("div", ke, [
|
|
516
|
+
s("div", Ue, H(e(i)("connect.storeRewards.empty.title")), 1),
|
|
517
|
+
s("div", Ae, H(e(i)("connect.storeRewards.empty.description")), 1)
|
|
515
518
|
]),
|
|
516
|
-
c(
|
|
519
|
+
c(x, {
|
|
517
520
|
variant: "primary",
|
|
518
|
-
label: e(
|
|
521
|
+
label: e(i)("connect.storeRewards.empty.action"),
|
|
519
522
|
onClick: o[4] || (o[4] = (f) => a()),
|
|
520
523
|
icon: "add"
|
|
521
524
|
}, null, 8, ["label"])
|
|
522
525
|
]),
|
|
523
526
|
_: 1
|
|
524
527
|
})),
|
|
525
|
-
c(
|
|
528
|
+
c(Ce, {
|
|
526
529
|
ref_key: "rewardSheetRef",
|
|
527
|
-
ref:
|
|
528
|
-
onUpdate: o[5] || (o[5] = (f) =>
|
|
530
|
+
ref: R,
|
|
531
|
+
onUpdate: o[5] || (o[5] = (f) => T(f))
|
|
529
532
|
}, null, 512)
|
|
530
533
|
])
|
|
531
534
|
], 64);
|
|
@@ -533,5 +536,5 @@ const ve = {
|
|
|
533
536
|
}
|
|
534
537
|
});
|
|
535
538
|
export {
|
|
536
|
-
|
|
539
|
+
ot as default
|
|
537
540
|
};
|