@feedmepos/mf-connect 0.1.71-prod → 0.1.72-prod
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-DIzZEv_G.js → Analytic-CxQKbOnR.js} +163 -163
- package/dist/{App-DrnbBc_l.js → App-C0HCgYW2.js} +7 -7
- package/dist/{Bin-Bt_ru3Gd.js → Bin-BFx6j8vs.js} +8 -8
- package/dist/{Broadcast-Bn5ZjKqo.js → Broadcast-CUfwWq6_.js} +8 -8
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BojGwK_6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-2oosZTlv.js} +6 -6
- package/dist/{Card-sBhDvBXT.js → Card-DsMVa01V.js} +16 -16
- package/dist/{Collections-Duct2pSH.js → Collections-DSbNXU78.js} +7 -7
- package/dist/{Credit-D3mJTvRc.js → Credit-Dp-tSMfE.js} +8 -8
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-_60iFOeG.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BW7V_Nsq.js} +817 -794
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-D7QHcodO.js +348 -0
- package/dist/{Experience-CIGwlErx.js → Experience-DkQbI88m.js} +8 -8
- package/dist/{Game-Canf-7L-.js → Game-BJvtVGC7.js} +9 -9
- package/dist/{Index-25eVdVm7.js → Index-BcHe2Qqe.js} +10 -10
- package/dist/{Marketing-krqaA6fv.js → Marketing-BaYjdZpb.js} +6 -6
- package/dist/{Member-Bt0NaXiS.js → Member-BzrcLN4X.js} +10 -10
- package/dist/{MemberList-CXk-T9r2.js → MemberList-_uD6WR--.js} +25 -25
- package/dist/{MemberTransactions-Dg-A6a0v.js → MemberTransactions-DIG5noli.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DtpDrupj.js → MessageInput.vue_vue_type_script_setup_true_lang-Cm4jVJBM.js} +7 -7
- package/dist/{Mission-CsxpvhsB.js → Mission-B0h7ECrd.js} +9 -9
- package/dist/{Overview-BUlq3MuQ.js → Overview-BfjTYcaf.js} +18 -18
- package/dist/{Point-DvPTk5wL.js → Point-yBqZgf08.js} +8 -8
- package/dist/{Promotion-BWygpn4X.js → Promotion-Bh8yiwPe.js} +9 -9
- package/dist/{Queue-iD4D04Z-.js → Queue-CMMyxmWP.js} +10 -10
- package/dist/{Record-CritfdkX.js → Record-DSLpbGVk.js} +8 -8
- package/dist/{Reward-DuZ73-kd.js → Reward-BzAIdcgx.js} +15 -15
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B1073xkE.js → RewardGroup.vue_vue_type_script_setup_true_lang-DoGsPRbi.js} +11 -11
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-1CJRrkoS.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7qMLC2M.js} +595 -591
- package/dist/{Segment-C8rNVlEi.js → Segment-BVH3YC8I.js} +22 -22
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-BmWRTRMe.js → SelectItems.vue_vue_type_script_setup_true_lang-BkHWRVba.js} +2 -2
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-BaP2tykA.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D-4QjkWh.js} +11 -11
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CqICTY8X.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CzCSXHge.js} +3 -3
- package/dist/{Setting-BwLCOkXJ.js → Setting-CFLtqHFJ.js} +12 -12
- package/dist/{SettingAdvertisements-Bjw1RSKB.js → SettingAdvertisements-CvFG5Fun.js} +11 -11
- package/dist/{Store-DEtsM22Y.js → Store-CHcszdPx.js} +19 -19
- package/dist/{StoreRewards-DVzCi6nY.js → StoreRewards-BXrXO3Cg.js} +13 -13
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DKWElE0N.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Clou5scZ.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-CS_3d3zl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-BEpXudTV.js} +1 -1
- package/dist/{Tier-qUFmMLZe.js → Tier-98o6YCz1.js} +19 -19
- package/dist/{Title-Qk0xODw6.js → Title-BmvCMh9F.js} +18 -18
- package/dist/{Transaction-Be-VAdL0.js → Transaction-D07dnpCB.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Lcgh9b36.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DHvItthe.js} +6 -6
- package/dist/{Voucher-DjiXcyL2.js → Voucher-BX5Dy6oL.js} +12 -12
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-BlXCP_IR.js +421 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B0KU6cW2.js → ZodTextField.vue_vue_type_script_setup_true_lang-TkZAyKkk.js} +1 -1
- package/dist/{app-BYt1acSS.js → app-7Ivt_7kS.js} +1974 -914
- package/dist/{app-CVDxFFOq.js → app-C98aAmiY.js} +1 -1
- package/dist/app.js +1 -1
- package/dist/{business-COPU_15m.js → business-B55rTB5S.js} +1 -1
- package/dist/{campaign-CANP8DZ7.js → campaign-RS-eYMBW.js} +1 -1
- package/dist/campaign-dSphYCws.js +226 -0
- package/dist/{campaign.enum-YFcT9qdL.js → campaign.enum-BZRXf9TI.js} +1 -1
- package/dist/{campaign.fn-CF0vxr00.js → campaign.fn-D_b763b6.js} +82 -82
- package/dist/{collectible.enum-CKyUdzxK.js → collectible.enum-ANnJMtnj.js} +1 -1
- package/dist/{collection.fn-CLGxII_6.js → collection.fn-BObHG1bS.js} +2 -2
- package/dist/{dto-D2FwEDQQ.js → dto-BA2PX6Mi.js} +4 -4
- package/dist/{effect-C_AEVoTp.js → effect-DDAGMMzr.js} +1 -1
- package/dist/{email-addresses-BWnpaUzY.js → email-addresses-jx17hvtN.js} +1 -1
- package/dist/{export-7MCVnb85.js → export-DI_2PZhY.js} +3 -3
- package/dist/{helper-BwCpzGpj.js → helper-ApDLcgT1.js} +1 -1
- package/dist/{index-doXz2Xnd.js → index-B5J1HBw3.js} +1 -1
- package/dist/{index-B776PH8X.js → index-BCOxYH7r.js} +1 -1
- package/dist/{index-CY9fLTpI.js → index-BbNMr2Lt.js} +3 -3
- package/dist/{index-BWctDnVc.js → index-C1tcqVNm.js} +3 -3
- package/dist/{index-B7v1Tn5m.js → index-CEeIezsZ.js} +1 -1
- package/dist/{index-D_Yyiihg.js → index-CN0ree8J.js} +1 -1
- package/dist/{index-DhJ4RwuN.js → index-Cl85lvDM.js} +1 -1
- package/dist/{index-BRPLDaar.js → index-CtpRdZKH.js} +2 -2
- package/dist/{index-BCcnESMx.js → index-DUfWM7U3.js} +1023 -1023
- package/dist/{index-CvWUVGAn.js → index-D_9bRGRa.js} +1 -1
- package/dist/{index-BdTNXQvR.js → index-Dg6gbVXO.js} +1 -1
- package/dist/{index-vEDs6OGV.js → index-Dpe36Jv6.js} +4 -4
- package/dist/{index-DMD1qL3R.js → index-DtB1XLw6.js} +183 -178
- package/dist/{index.esm2017-BwgUTaPG.js → index.esm2017-CcAT1nnu.js} +1 -1
- package/dist/{loading-CpAYlxoG.js → loading-Hh5FSOP9.js} +1 -1
- package/dist/{membership-CgJ7PFUR.js → membership-DXQf9Mj3.js} +3 -3
- package/dist/{money-CQGmkTRp.js → money-OBHKTSCa.js} +1 -1
- package/dist/{number-B_oM4a_k.js → number-DTqujv4j.js} +1 -1
- package/dist/{objectid-Dwu4f87A.js → objectid-BkZDKSpn.js} +1 -1
- package/dist/{campaign-DRXh3QJ1.js → plugins-CQqQawn6.js} +784 -776
- package/dist/{reward-CAhovk_1.js → reward-n9uPwsH1.js} +1 -1
- package/dist/{rule-b2BC4jY8.js → rule-BgsibUNE.js} +3 -3
- package/dist/{rule-builder-w8uO1XAF.js → rule-builder-BkzqGukH.js} +1 -1
- package/dist/template-gXT-yGOY.js +188 -0
- package/dist/{timezone-Di5x-2AC.js → timezone-X-iXAUqa.js} +1 -1
- package/dist/{trigger-B9EDmE6z.js → trigger-DEZuV7Fw.js} +4 -4
- package/dist/{user-BCB96Qct.js → user-DG_FfcGk.js} +1 -1
- package/dist/{vue-i18n-DddYl0c6.js → vue-i18n-BB1YkgAs.js} +317 -317
- package/dist/{xlsx-Dj8VVXnA.js → xlsx-CJQa9ako.js} +166 -166
- package/package.json +1 -1
- package/dist/EffectSheet.vue_vue_type_style_index_0_lang-Sk5ub0FZ.js +0 -348
- package/dist/VoucherEditor.vue_vue_type_script_setup_true_lang-DHySLFcf.js +0 -419
- package/dist/plugins-Bo72kWn7.js +0 -208
- package/dist/template-DDBscrPK.js +0 -190
package/package.json
CHANGED
|
@@ -1,348 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as O, onMounted as Q, computed as H, resolveComponent as y, openBlock as i, createElementBlock as x, renderSlot as W, toDisplayString as w, createCommentVNode as v, createBlock as c, unref as e, isRef as q, createVNode as F, normalizeClass as G, watch as X, withCtx as b, resolveDynamicComponent as D, Fragment as _, createElementVNode as U, createTextVNode as ee } from "vue";
|
|
2
|
-
import { z as te } from "./app-BYt1acSS.js";
|
|
3
|
-
import { Z as u } from "./zod-Bg2FbC-D.js";
|
|
4
|
-
import { f as le, g as oe } from "./index-BRPLDaar.js";
|
|
5
|
-
import { u as Z } from "./vue-i18n-DddYl0c6.js";
|
|
6
|
-
import { s as R } from "./effect-C_AEVoTp.js";
|
|
7
|
-
import { p as ae } from "./plugins-Bo72kWn7.js";
|
|
8
|
-
import { e as ne } from "./app-CVDxFFOq.js";
|
|
9
|
-
const ie = { class: "flex flex-col gap-8" }, de = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "fm-typo-en-body-lg-600"
|
|
12
|
-
}, se = { key: 1 }, me = {
|
|
13
|
-
key: 2,
|
|
14
|
-
class: "space-y-16"
|
|
15
|
-
}, re = /* @__PURE__ */ P({
|
|
16
|
-
__name: "ValidityInput",
|
|
17
|
-
props: {
|
|
18
|
-
label: {
|
|
19
|
-
type: String
|
|
20
|
-
},
|
|
21
|
-
disabled: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !1
|
|
24
|
-
},
|
|
25
|
-
type: {
|
|
26
|
-
type: String,
|
|
27
|
-
default: void 0
|
|
28
|
-
},
|
|
29
|
-
modelValue: {
|
|
30
|
-
type: Object,
|
|
31
|
-
required: !0
|
|
32
|
-
},
|
|
33
|
-
forCredit: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
default: !1
|
|
36
|
-
},
|
|
37
|
-
helperText: {
|
|
38
|
-
type: String
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
emits: ["update:model-value"],
|
|
42
|
-
setup(t, { emit: g }) {
|
|
43
|
-
var A, B;
|
|
44
|
-
const { t: s } = Z(), l = t, S = g, o = [
|
|
45
|
-
{ label: s("connect.template.validity_option.date_range"), value: "range" },
|
|
46
|
-
{ label: s("connect.template.validity_option.custom"), value: "custom" }
|
|
47
|
-
], a = O(!1);
|
|
48
|
-
Q(() => {
|
|
49
|
-
a.value = l.modelValue && Object.entries(l.modelValue).filter(
|
|
50
|
-
([p, r]) => p != "followFirstReceive" && r != null
|
|
51
|
-
).length > 0;
|
|
52
|
-
});
|
|
53
|
-
const n = O(
|
|
54
|
-
l.type ? o.find((p) => p.value === l.type) : (A = l.modelValue) != null && A.validBefore || (B = l.modelValue) != null && B.validAfter ? o[0] : o[1]
|
|
55
|
-
), h = H(
|
|
56
|
-
() => l.forCredit ? le : oe
|
|
57
|
-
), m = H(() => {
|
|
58
|
-
const p = h.value.safeParse(l.modelValue);
|
|
59
|
-
return p.success ? [] : p.error.errors;
|
|
60
|
-
});
|
|
61
|
-
function d(p) {
|
|
62
|
-
S("update:model-value", p);
|
|
63
|
-
}
|
|
64
|
-
function C(p) {
|
|
65
|
-
var r, k;
|
|
66
|
-
if (p.value == "range")
|
|
67
|
-
return d({
|
|
68
|
-
followFirstReceive: (r = l.modelValue) == null ? void 0 : r.followFirstReceive,
|
|
69
|
-
validAfter: void 0,
|
|
70
|
-
validBefore: void 0
|
|
71
|
-
});
|
|
72
|
-
if (p.value == "custom")
|
|
73
|
-
return a.value = !1, d({
|
|
74
|
-
validForDay: (k = l.modelValue) == null ? void 0 : k.validForDay
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
return (p, r) => {
|
|
78
|
-
var I, $, j, E, M, N, L, z;
|
|
79
|
-
const k = y("FmButtonGroup"), Y = y("FmSimpleDateRangePicker"), J = y("FmSwitch"), K = y("FmStepperField"), T = y("FmHelperText");
|
|
80
|
-
return i(), x("div", ie, [
|
|
81
|
-
W(p.$slots, "label", {}, () => [
|
|
82
|
-
t.label ? (i(), x("div", de, w(t.label), 1)) : v("", !0)
|
|
83
|
-
]),
|
|
84
|
-
t.type ? v("", !0) : (i(), c(k, {
|
|
85
|
-
key: 0,
|
|
86
|
-
modelValue: e(n),
|
|
87
|
-
"onUpdate:modelValue": [
|
|
88
|
-
r[0] || (r[0] = (f) => q(n) ? n.value = f : null),
|
|
89
|
-
r[1] || (r[1] = (f) => C(f))
|
|
90
|
-
],
|
|
91
|
-
items: o
|
|
92
|
-
}, null, 8, ["modelValue"])),
|
|
93
|
-
e(n).value === "range" ? (i(), x("div", se, [
|
|
94
|
-
F(Y, {
|
|
95
|
-
"model-value": {
|
|
96
|
-
startDate: (I = t.modelValue) != null && I.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
|
|
97
|
-
endDate: (j = t.modelValue) != null && j.validAfter ? new Date(((E = t.modelValue) == null ? void 0 : E.validBefore) || "").toISOString() : null
|
|
98
|
-
},
|
|
99
|
-
"onUpdate:modelValue": r[2] || (r[2] = (f) => {
|
|
100
|
-
var V;
|
|
101
|
-
d({
|
|
102
|
-
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive,
|
|
103
|
-
validAfter: new Date(f.startDate).toISOString(),
|
|
104
|
-
validBefore: new Date(f.endDate).toISOString()
|
|
105
|
-
});
|
|
106
|
-
})
|
|
107
|
-
}, null, 8, ["model-value"])
|
|
108
|
-
])) : e(n).value === "custom" ? (i(), x("div", me, [
|
|
109
|
-
t.forCredit ? v("", !0) : (i(), c(J, {
|
|
110
|
-
key: 0,
|
|
111
|
-
"model-value": e(a),
|
|
112
|
-
label: e(s)("connect.template.validity_option.expire"),
|
|
113
|
-
"label-placement": "right",
|
|
114
|
-
"onUpdate:modelValue": r[3] || (r[3] = (f) => {
|
|
115
|
-
var V;
|
|
116
|
-
a.value = f, d({
|
|
117
|
-
validForDay: f ? 1 : void 0,
|
|
118
|
-
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
|
|
119
|
-
});
|
|
120
|
-
})
|
|
121
|
-
}, null, 8, ["model-value", "label"])),
|
|
122
|
-
e(a) || t.forCredit ? (i(), c(K, {
|
|
123
|
-
key: 1,
|
|
124
|
-
label: e(s)("connect.template.validity_option.after_day"),
|
|
125
|
-
class: G([{
|
|
126
|
-
"opacity-50 pointer-events-none": !e(a) && !t.forCredit
|
|
127
|
-
}, "mt-[-4px]"]),
|
|
128
|
-
"max-fraction-digits": 0,
|
|
129
|
-
disabled: !e(a) && !t.forCredit,
|
|
130
|
-
"show-steppers": !1,
|
|
131
|
-
max: 99999,
|
|
132
|
-
"append-text": e(s)("connect.template.validity_option.days"),
|
|
133
|
-
"model-value": ((M = l.modelValue) == null ? void 0 : M.validForDay) ?? null,
|
|
134
|
-
"onUpdate:modelValue": r[4] || (r[4] = (f) => {
|
|
135
|
-
var V;
|
|
136
|
-
return d({
|
|
137
|
-
validForDay: f == null ? void 0 : parseInt(f.toString()),
|
|
138
|
-
followFirstReceive: (V = l.modelValue) == null ? void 0 : V.followFirstReceive
|
|
139
|
-
});
|
|
140
|
-
})
|
|
141
|
-
}, null, 8, ["label", "class", "disabled", "append-text", "model-value"])) : v("", !0)
|
|
142
|
-
])) : v("", !0),
|
|
143
|
-
((N = l.modelValue) == null ? void 0 : N.followFirstReceive) === !0 && e(a) ? (i(), c(T, {
|
|
144
|
-
key: 3,
|
|
145
|
-
text: e(s)("connect.template.validity_option.expire_follow_first_receive")
|
|
146
|
-
}, null, 8, ["text"])) : v("", !0),
|
|
147
|
-
F(T, {
|
|
148
|
-
text: t.helperText || (((L = l.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(s)("connect.template.validity_option.expires_on_same_day") : e(u).helperText(e(m), "")),
|
|
149
|
-
state: t.helperText ? "error" : ((z = l.modelValue) == null ? void 0 : z.validForDay) === 0 ? "warning" : e(u).helperState(e(m), "")
|
|
150
|
-
}, null, 8, ["text", "state"])
|
|
151
|
-
]);
|
|
152
|
-
};
|
|
153
|
-
}
|
|
154
|
-
}), ue = { class: "space-y-8" }, he = /* @__PURE__ */ P({
|
|
155
|
-
__name: "CollectibleOptionInput",
|
|
156
|
-
props: {
|
|
157
|
-
modelValue: {
|
|
158
|
-
type: Object
|
|
159
|
-
},
|
|
160
|
-
noCampaign: {
|
|
161
|
-
type: Boolean
|
|
162
|
-
},
|
|
163
|
-
schema: {
|
|
164
|
-
type: Object,
|
|
165
|
-
default: () => te.any()
|
|
166
|
-
},
|
|
167
|
-
isMission: {
|
|
168
|
-
type: Boolean,
|
|
169
|
-
default: !1
|
|
170
|
-
}
|
|
171
|
-
},
|
|
172
|
-
emits: ["update:model-value"],
|
|
173
|
-
setup(t, { emit: g }) {
|
|
174
|
-
const { t: s } = Z(), l = t, S = g, o = O(l.modelValue ?? {});
|
|
175
|
-
return X(o, () => S("update:model-value", o.value)), (a, n) => {
|
|
176
|
-
const h = y("FmSwitch"), m = y("FmStepperField");
|
|
177
|
-
return i(), x("div", ue, [
|
|
178
|
-
t.isMission ? v("", !0) : (i(), c(h, {
|
|
179
|
-
key: 0,
|
|
180
|
-
label: e(s)("connect.template.enable_transfer"),
|
|
181
|
-
"label-placement": "right",
|
|
182
|
-
modelValue: e(o).enableTransfer,
|
|
183
|
-
"onUpdate:modelValue": n[0] || (n[0] = (d) => e(o).enableTransfer = d)
|
|
184
|
-
}, null, 8, ["label", "modelValue"])),
|
|
185
|
-
t.noCampaign ? v("", !0) : (i(), x("div", {
|
|
186
|
-
key: 1,
|
|
187
|
-
class: G(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
|
|
188
|
-
}, [
|
|
189
|
-
F(m, {
|
|
190
|
-
modelValue: e(o).maxPerUser,
|
|
191
|
-
"onUpdate:modelValue": n[1] || (n[1] = (d) => e(o).maxPerUser = d),
|
|
192
|
-
"show-steppers": !1,
|
|
193
|
-
rules: [e(u).ruleAtPath(t.schema, "maxPerUser")],
|
|
194
|
-
"helper-text": e(s)("connect.template.leave_empty_unlimited")
|
|
195
|
-
}, {
|
|
196
|
-
label: b(() => [
|
|
197
|
-
(i(), c(D(
|
|
198
|
-
e(u).toInputLabel(
|
|
199
|
-
e(u).typeAtPath(t.schema, "maxPerUser"),
|
|
200
|
-
e(s)("connect.template.max_per_user")
|
|
201
|
-
)
|
|
202
|
-
)))
|
|
203
|
-
]),
|
|
204
|
-
_: 1
|
|
205
|
-
}, 8, ["modelValue", "rules", "helper-text"]),
|
|
206
|
-
t.isMission ? v("", !0) : (i(), c(m, {
|
|
207
|
-
key: 0,
|
|
208
|
-
modelValue: e(o).maxReceive,
|
|
209
|
-
"onUpdate:modelValue": n[2] || (n[2] = (d) => e(o).maxReceive = d),
|
|
210
|
-
"show-steppers": !1,
|
|
211
|
-
rules: [e(u).ruleAtPath(t.schema, "maxReceive")],
|
|
212
|
-
"helper-text": e(s)("connect.template.leave_empty_unlimited")
|
|
213
|
-
}, {
|
|
214
|
-
label: b(() => [
|
|
215
|
-
(i(), c(D(
|
|
216
|
-
e(u).toInputLabel(
|
|
217
|
-
e(u).typeAtPath(t.schema, "maxReceive"),
|
|
218
|
-
e(s)("connect.template.max_distribute")
|
|
219
|
-
)
|
|
220
|
-
)))
|
|
221
|
-
]),
|
|
222
|
-
_: 1
|
|
223
|
-
}, 8, ["modelValue", "rules", "helper-text"]))
|
|
224
|
-
], 2)),
|
|
225
|
-
t.isMission ? v("", !0) : (i(), x(_, { key: 2 }, [
|
|
226
|
-
F(m, {
|
|
227
|
-
modelValue: e(o).maxUse,
|
|
228
|
-
"onUpdate:modelValue": n[3] || (n[3] = (d) => e(o).maxUse = d),
|
|
229
|
-
"append-text": "use(s)",
|
|
230
|
-
"show-steppers": !1,
|
|
231
|
-
rules: [e(u).ruleAtPath(t.schema, "maxUse")]
|
|
232
|
-
}, {
|
|
233
|
-
label: b(() => [
|
|
234
|
-
(i(), c(D(
|
|
235
|
-
e(u).toInputLabel(
|
|
236
|
-
e(u).typeAtPath(t.schema, "maxUse"),
|
|
237
|
-
e(s)("connect.template.usage_count")
|
|
238
|
-
)
|
|
239
|
-
)))
|
|
240
|
-
]),
|
|
241
|
-
_: 1
|
|
242
|
-
}, 8, ["modelValue", "rules"]),
|
|
243
|
-
e(o).maxUse && e(o).maxUse > 1 ? (i(), c(m, {
|
|
244
|
-
key: 0,
|
|
245
|
-
modelValue: e(o).cooldown,
|
|
246
|
-
"onUpdate:modelValue": n[4] || (n[4] = (d) => e(o).cooldown = d),
|
|
247
|
-
"append-text": "minute(s)",
|
|
248
|
-
"show-steppers": !1,
|
|
249
|
-
rules: [e(u).ruleAtPath(t.schema, "cooldown")]
|
|
250
|
-
}, {
|
|
251
|
-
label: b(() => [
|
|
252
|
-
(i(), c(D(
|
|
253
|
-
e(u).toInputLabel(
|
|
254
|
-
e(u).typeAtPath(t.schema, "cooldown"),
|
|
255
|
-
e(s)("connect.template.cooldown")
|
|
256
|
-
)
|
|
257
|
-
)))
|
|
258
|
-
]),
|
|
259
|
-
_: 1
|
|
260
|
-
}, 8, ["modelValue", "rules"])) : v("", !0),
|
|
261
|
-
F(re, {
|
|
262
|
-
modelValue: e(o).validityOption,
|
|
263
|
-
"onUpdate:modelValue": n[5] || (n[5] = (d) => e(o).validityOption = d),
|
|
264
|
-
label: e(s)("connect.template.validity_option.title")
|
|
265
|
-
}, null, 8, ["modelValue", "label"])
|
|
266
|
-
], 64))
|
|
267
|
-
]);
|
|
268
|
-
};
|
|
269
|
-
}
|
|
270
|
-
}), pe = { class: "space-y-8" }, ce = {
|
|
271
|
-
key: 1,
|
|
272
|
-
class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
|
|
273
|
-
}, fe = { class: "fm-typo-en-body-lg-400" }, ve = { class: "text-fm-color-typo-secondary" }, Ae = /* @__PURE__ */ P({
|
|
274
|
-
__name: "EffectSheet",
|
|
275
|
-
props: {
|
|
276
|
-
modelValue: { type: Object },
|
|
277
|
-
canSetAutoApply: {
|
|
278
|
-
type: Boolean
|
|
279
|
-
}
|
|
280
|
-
},
|
|
281
|
-
emits: ["update:model-value"],
|
|
282
|
-
setup(t, { emit: g }) {
|
|
283
|
-
const s = g, l = O(!1);
|
|
284
|
-
async function S(o) {
|
|
285
|
-
o.stopPropagation(), await ae.remove("Are you sure you want to remove this effect?") && s("update:model-value", null);
|
|
286
|
-
}
|
|
287
|
-
return (o, a) => {
|
|
288
|
-
const n = y("FmButton"), h = y("FmSideSheet");
|
|
289
|
-
return i(), c(h, {
|
|
290
|
-
"max-width": 550,
|
|
291
|
-
header: "Apply discount",
|
|
292
|
-
modelValue: e(l),
|
|
293
|
-
"onUpdate:modelValue": [
|
|
294
|
-
a[2] || (a[2] = (m) => q(l) ? l.value = m : null),
|
|
295
|
-
a[3] || (a[3] = (m) => l.value = m)
|
|
296
|
-
]
|
|
297
|
-
}, {
|
|
298
|
-
"side-sheet-button": b(() => {
|
|
299
|
-
var m, d, C, A;
|
|
300
|
-
return [
|
|
301
|
-
U("div", pe, [
|
|
302
|
-
a[4] || (a[4] = U("div", { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, " Configure the discount you want to offer your customer. ", -1)),
|
|
303
|
-
t.modelValue ? (i(), x("div", ce, [
|
|
304
|
-
U("div", fe, [
|
|
305
|
-
U("div", null, w((m = e(R)(t.modelValue)) == null ? void 0 : m.type), 1),
|
|
306
|
-
U("div", ve, w((d = e(R)(t.modelValue)) == null ? void 0 : d.adjustment) + " with " + w((C = e(R)(t.modelValue)) == null ? void 0 : C.requirements) + " " + w((A = e(R)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
|
|
307
|
-
]),
|
|
308
|
-
F(n, {
|
|
309
|
-
icon: "delete",
|
|
310
|
-
"icon-color": "neutral-gray-400",
|
|
311
|
-
variant: "tertiary",
|
|
312
|
-
onClick: S
|
|
313
|
-
})
|
|
314
|
-
])) : (i(), c(n, {
|
|
315
|
-
key: 0,
|
|
316
|
-
label: "Apply discount",
|
|
317
|
-
icon: "add",
|
|
318
|
-
"icon-color": "primary",
|
|
319
|
-
variant: "secondary",
|
|
320
|
-
class: "border-fm-color-primary text-fm-color-primary"
|
|
321
|
-
}))
|
|
322
|
-
])
|
|
323
|
-
];
|
|
324
|
-
}),
|
|
325
|
-
"side-sheet-footer": b(() => [...a[5] || (a[5] = [
|
|
326
|
-
ee(w(void 0), -1)
|
|
327
|
-
])]),
|
|
328
|
-
default: b(() => [
|
|
329
|
-
F(e(ne), {
|
|
330
|
-
class: "fm-effect-sheet",
|
|
331
|
-
title: "",
|
|
332
|
-
"can-set-auto-apply": t.canSetAutoApply,
|
|
333
|
-
"disable-effects": t.canSetAutoApply ? ["PAYMENT"] : void 0,
|
|
334
|
-
"initial-value": t.modelValue,
|
|
335
|
-
onOnConfirm: a[0] || (a[0] = (m) => (s("update:model-value", m), l.value = !1)),
|
|
336
|
-
onOnCancel: a[1] || (a[1] = (m) => l.value = !1)
|
|
337
|
-
}, null, 8, ["can-set-auto-apply", "disable-effects", "initial-value"])
|
|
338
|
-
]),
|
|
339
|
-
_: 1
|
|
340
|
-
}, 8, ["modelValue"]);
|
|
341
|
-
};
|
|
342
|
-
}
|
|
343
|
-
});
|
|
344
|
-
export {
|
|
345
|
-
Ae as _,
|
|
346
|
-
he as a,
|
|
347
|
-
re as b
|
|
348
|
-
};
|