@feedmepos/mf-connect 0.1.79-prod → 0.1.81-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-daOlxOrt.js → Analytic-D4C4cuzb.js} +11 -11
- package/dist/{App-DoufbXLp.js → App-BKC-UTfE.js} +7 -7
- package/dist/{Bin-CFfzHhNq.js → Bin-B23fmL4B.js} +8 -8
- package/dist/{Broadcast-CYwfxIl_.js → Broadcast-C9kxxthU.js} +18 -18
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BS-Fb5pv.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BEr6i1H7.js} +6 -6
- package/dist/{Card-D2VKUJZk.js → Card-CjmquMQ8.js} +18 -18
- package/dist/{Collections-BtJYJpvq.js → Collections-e324VpKx.js} +7 -7
- package/dist/{Credit-pDMs81o3.js → Credit-7GDoQ6Ch.js} +63 -65
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFVTCINV.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bsz4DfR2.js} +32 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BsYFvVTh.js → EffectSheet.vue_vue_type_style_index_0_lang-CLcPRqzn.js} +33 -34
- package/dist/{Experience-BXnCtSRV.js → Experience-_gbPd2cN.js} +75 -79
- package/dist/{Game-zCiezXmk.js → Game-BotH7q2X.js} +83 -81
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BdLnuVWB.js → ImageInput.vue_vue_type_script_setup_true_lang-BpNCfgI8.js} +1 -1
- package/dist/{Index-CKtP_PmV.js → Index-Dq_dt4zZ.js} +10 -10
- package/dist/{Marketing-BxEK_QBp.js → Marketing-Z2EXHTDq.js} +6 -6
- package/dist/{Member-g-Nc8nRo.js → Member-BZq2ZPU1.js} +10 -10
- package/dist/{MemberList-DVSu_Z6b.js → MemberList-DamLQWem.js} +25 -25
- package/dist/{MemberTransactions-C4m8fchV.js → MemberTransactions-BfGIKXWt.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ML2-tGIa.js → MessageInput.vue_vue_type_script_setup_true_lang-BMLAp7P0.js} +8 -8
- package/dist/{Mission-Dg7u6G5Y.js → Mission-DZBOFfZE.js} +82 -80
- package/dist/{Overview-DVp3pJtE.js → Overview-DKNSKwjw.js} +19 -19
- package/dist/{Point-Dsp_W0A4.js → Point-BTCdwbGb.js} +79 -83
- package/dist/{Promotion-CiI-6R3Q.js → Promotion-BqWbXRrK.js} +32 -32
- package/dist/{Queue-CP3qFiwq.js → Queue-CnHJt7BI.js} +10 -10
- package/dist/{Record-CRiyaYme.js → Record-asuDl00z.js} +8 -8
- package/dist/{Reward-Wk4aoUe-.js → Reward-BqemiBwU.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CGdBnD5E.js → RewardGroup.vue_vue_type_script_setup_true_lang-B98IW85o.js} +12 -12
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CLhsljkL.js → RuleGroup.vue_vue_type_script_setup_true_lang-CVnNlpHa.js} +15 -15
- package/dist/{Segment-CKpIuEKF.js → Segment-Q86KMN-k.js} +23 -23
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-Uk7QNHdX.js → SelectItems.vue_vue_type_script_setup_true_lang-CCjoSgCt.js} +11 -11
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DeCFVR31.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-CttKxzGJ.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cdvv1-NH.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D_pLIyjo.js} +3 -3
- package/dist/{Setting-BbOLfQUW.js → Setting-D-H3wwqK.js} +14 -14
- package/dist/{SettingAdvertisements-p0-byeyl.js → SettingAdvertisements-CLys7tUI.js} +12 -12
- package/dist/{Store-BHC0hueG.js → Store-CDTaq9Cl.js} +21 -21
- package/dist/{StoreRewards-Dy2CEsDt.js → StoreRewards-BDbL39N5.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CEZHJ95s.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BnagjBBu.js} +19 -19
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-B1l5DAlf.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Dk7yazat.js} +1 -1
- package/dist/{Tier-B6JFbq_k.js → Tier-BpDxFiVl.js} +21 -21
- package/dist/{Title-xhdYZz5R.js → Title-BC8toEO3.js} +20 -20
- package/dist/{Transaction-Dd9DuzRR.js → Transaction-Ci7D5pSG.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CiazcKEc.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DfKxwLyD.js} +6 -6
- package/dist/{Voucher-Cp7vNUEK.js → Voucher-vnKyiKiV.js} +16 -16
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-fxY99PHD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CCg8d72J.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DoreMwv7.js → ZodTextField.vue_vue_type_script_setup_true_lang-JTpA5O1m.js} +2 -2
- package/dist/app-1E5G1GpN.js +42523 -0
- package/dist/app.js +1 -1
- package/dist/{business-DFHwuClX.js → business-BUpIHd4Z.js} +1 -1
- package/dist/{campaign-DZ-NFu_a.js → campaign-CZx-8rcc.js} +1 -1
- package/dist/{campaign-Cs-5YZ24.js → campaign-D_l_eCaG.js} +8 -8
- package/dist/{campaign.enum-BpPHOLsq.js → campaign.enum-DzMJ_QtT.js} +1 -1
- package/dist/{campaign.fn-B0bijKMr.js → campaign.fn-BfLZqPyL.js} +62 -62
- package/dist/{collectible.enum-BWfgxOR7.js → collectible.enum-CQB3E2Fm.js} +1 -1
- package/dist/{collection.fn-D-k9-ZL6.js → collection.fn-DkJHn6mL.js} +2 -2
- package/dist/{dto-B0OrF_Mu.js → dto-DUY1vguv.js} +4 -4
- package/dist/{effect-BtYewRXj.js → effect-CpXEk9Dk.js} +1 -1
- package/dist/{email-addresses-DcXNhufh.js → email-addresses-CVWW3Trx.js} +1 -1
- package/dist/{export-BqcrVGVE.js → export-1cM7yPV3.js} +3 -3
- package/dist/{helper-DtqbfVEI.js → helper-DZwCmt7C.js} +1 -1
- package/dist/{index-DA4W6RFV.js → index-BWqzh2C4.js} +3 -3
- package/dist/{index-V05BSEA1.js → index-BhGXbniw.js} +1 -1
- package/dist/{index-DJGsMK2v.js → index-BkpYy6m3.js} +6 -6
- package/dist/{index-C3b7XvYW.js → index-CJQk_hJX.js} +3 -3
- package/dist/{index-UITrfDZG.js → index-CL_mVbcg.js} +1 -1
- package/dist/{index-CNCgOUYU.js → index-CnqIH2O9.js} +1 -1
- package/dist/{index-T7d7eHx6.js → index-Cu69tDgg.js} +626 -608
- package/dist/{index-DUFFgALz.js → index-DcCaSh1B.js} +1 -1
- package/dist/{index-BvTTVqzF.js → index-DikxFmIA.js} +1 -1
- package/dist/{index-DYtRSDy9.js → index-DxGLhSm4.js} +1 -1
- package/dist/{index-BY8V6y3C.js → index-Iwu0Pf7N.js} +1 -1
- package/dist/{index-DYcSI0zj.js → index-UX1BjWKt.js} +2 -2
- package/dist/{index-mgze3alN.js → index-yPNsQag2.js} +3 -3
- package/dist/{index.esm2017-DHwBTNe6.js → index.esm2017-DGkosyWY.js} +1 -1
- package/dist/{loading-CqvrinH-.js → loading-BeO6W824.js} +1 -1
- package/dist/{membership-DkHjl8wI.js → membership-CdkNnSzC.js} +3 -3
- package/dist/{money-PlffPm-A.js → money-BmJpJ3UM.js} +1 -1
- package/dist/{number-DG9caur6.js → number-DNxJZHn4.js} +1 -1
- package/dist/{objectid-jUNuzWI-.js → objectid-Dz4U2FAo.js} +1 -1
- package/dist/{plugins-D3oZ1ayL.js → plugins-BWUWdHwy.js} +3 -3
- package/dist/{reward-D0Q_mk4n.js → reward-Cg4x-YOj.js} +1 -1
- package/dist/{rule-CR-gHdem.js → rule-SBzFsmzN.js} +3 -3
- package/dist/{rule-builder-D6f61BJa.js → rule-builder-C12N5APu.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{template-CsgyjozJ.js → template-B1S6b9tH.js} +5 -5
- package/dist/{timezone-Ct6ys1qy.js → timezone-BdnFtiYJ.js} +1 -1
- package/dist/{trigger-Ba5yuwmD.js → trigger-ZZWC4YWG.js} +5 -5
- package/dist/{user-pKBNrbDR.js → user-DZARAXiI.js} +1 -1
- package/dist/{vue-i18n-DDHeOQeE.js → vue-i18n-DOqqi883.js} +158 -158
- package/dist/{xlsx-BynkLwi_.js → xlsx-BQxGGmFn.js} +1 -1
- package/dist/{zod-BuOqR5ox.js → zod-D_MtMi4T.js} +1 -1
- package/package.json +2 -2
- package/dist/app-C3qRhqNx.js +0 -9684
- package/dist/app-C7D4OBMR.js +0 -57962
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as
|
|
2
|
-
import { z as te } from "./app-
|
|
3
|
-
import { Z as m } from "./zod-
|
|
4
|
-
import { f as
|
|
5
|
-
import { u as T } from "./vue-i18n-
|
|
6
|
-
import { s as O } from "./effect-
|
|
7
|
-
import { p as
|
|
8
|
-
import { e as ne } from "./app-C7D4OBMR.js";
|
|
1
|
+
import { defineComponent as B, ref as P, onMounted as Q, computed as q, resolveComponent as V, openBlock as d, createElementBlock as F, renderSlot as W, toDisplayString as b, createCommentVNode as f, createBlock as u, unref as e, isRef as G, createVNode as w, normalizeClass as Z, watch as X, withCtx as h, resolveDynamicComponent as R, Fragment as _, createElementVNode as C, createTextVNode as ee } from "vue";
|
|
2
|
+
import { z as te, h as le } from "./app-1E5G1GpN.js";
|
|
3
|
+
import { Z as m } from "./zod-D_MtMi4T.js";
|
|
4
|
+
import { f as oe, g as ae } from "./index-UX1BjWKt.js";
|
|
5
|
+
import { u as T } from "./vue-i18n-DOqqi883.js";
|
|
6
|
+
import { s as O } from "./effect-CpXEk9Dk.js";
|
|
7
|
+
import { p as ne } from "./plugins-BWUWdHwy.js";
|
|
9
8
|
const ie = { class: "flex flex-col gap-8" }, de = {
|
|
10
9
|
key: 0,
|
|
11
10
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -52,10 +51,10 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
52
51
|
});
|
|
53
52
|
const l = P(
|
|
54
53
|
i.type ? a.find((r) => r.value === i.type) : (U = i.modelValue) != null && U.validBefore || (A = i.modelValue) != null && A.validAfter ? a[0] : a[1]
|
|
55
|
-
),
|
|
56
|
-
() => i.forCredit ?
|
|
54
|
+
), g = q(
|
|
55
|
+
() => i.forCredit ? oe : ae
|
|
57
56
|
), y = q(() => {
|
|
58
|
-
const r =
|
|
57
|
+
const r = g.value.safeParse(i.modelValue);
|
|
59
58
|
return r.success ? [] : r.error.errors;
|
|
60
59
|
});
|
|
61
60
|
function o(r) {
|
|
@@ -91,7 +90,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
91
90
|
items: a
|
|
92
91
|
}, null, 8, ["modelValue"])),
|
|
93
92
|
e(l).value === "range" ? (d(), F("div", se, [
|
|
94
|
-
|
|
93
|
+
w(Y, {
|
|
95
94
|
"model-value": {
|
|
96
95
|
startDate: ($ = t.modelValue) != null && $.validAfter ? new Date((j = t.modelValue) == null ? void 0 : j.validAfter).toISOString() : null,
|
|
97
96
|
endDate: (E = t.modelValue) != null && E.validAfter ? new Date(((M = t.modelValue) == null ? void 0 : M.validBefore) || "").toISOString() : null
|
|
@@ -144,14 +143,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
144
143
|
key: 3,
|
|
145
144
|
text: e(n)("connect.template.validity_option.expire_follow_first_receive")
|
|
146
145
|
}, null, 8, ["text"])) : f("", !0),
|
|
147
|
-
|
|
146
|
+
w(I, {
|
|
148
147
|
text: t.helperText || (((z = i.modelValue) == null ? void 0 : z.validForDay) === 0 ? e(n)("connect.template.validity_option.expires_on_same_day") : e(m).helperText(e(y), "")),
|
|
149
148
|
state: t.helperText ? "error" : ((H = i.modelValue) == null ? void 0 : H.validForDay) === 0 ? "warning" : e(m).helperState(e(y), "")
|
|
150
149
|
}, null, 8, ["text", "state"])
|
|
151
150
|
]);
|
|
152
151
|
};
|
|
153
152
|
}
|
|
154
|
-
}), ue = { class: "space-y-8" },
|
|
153
|
+
}), ue = { class: "space-y-8" }, Se = /* @__PURE__ */ B({
|
|
155
154
|
__name: "CollectibleOptionInput",
|
|
156
155
|
props: {
|
|
157
156
|
modelValue: {
|
|
@@ -173,9 +172,9 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
173
172
|
setup(t, { emit: S }) {
|
|
174
173
|
const { t: n } = T(), i = t, v = S, a = P(i.modelValue ?? {});
|
|
175
174
|
return X(a, () => v("update:model-value", a.value)), (c, l) => {
|
|
176
|
-
const
|
|
175
|
+
const g = V("FmSwitch"), y = V("FmStepperField");
|
|
177
176
|
return d(), F("div", ue, [
|
|
178
|
-
t.isMission ? f("", !0) : (d(), u(
|
|
177
|
+
t.isMission ? f("", !0) : (d(), u(g, {
|
|
179
178
|
key: 0,
|
|
180
179
|
label: e(n)("connect.template.enable_transfer"),
|
|
181
180
|
"label-placement": "right",
|
|
@@ -186,14 +185,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
186
185
|
key: 1,
|
|
187
186
|
class: Z(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
|
|
188
187
|
}, [
|
|
189
|
-
|
|
188
|
+
w(y, {
|
|
190
189
|
modelValue: e(a).maxPerUser,
|
|
191
190
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).maxPerUser = o),
|
|
192
191
|
"show-steppers": !1,
|
|
193
192
|
rules: [e(m).ruleAtPath(t.schema, "maxPerUser")],
|
|
194
193
|
"helper-text": e(n)("connect.template.leave_empty_unlimited")
|
|
195
194
|
}, {
|
|
196
|
-
label:
|
|
195
|
+
label: h(() => [
|
|
197
196
|
(d(), u(R(
|
|
198
197
|
e(m).toInputLabel(
|
|
199
198
|
e(m).typeAtPath(t.schema, "maxPerUser"),
|
|
@@ -211,7 +210,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
211
210
|
rules: [e(m).ruleAtPath(t.schema, "maxReceive")],
|
|
212
211
|
"helper-text": e(n)("connect.template.leave_empty_unlimited")
|
|
213
212
|
}, {
|
|
214
|
-
label:
|
|
213
|
+
label: h(() => [
|
|
215
214
|
(d(), u(R(
|
|
216
215
|
e(m).toInputLabel(
|
|
217
216
|
e(m).typeAtPath(t.schema, "maxReceive"),
|
|
@@ -223,14 +222,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
223
222
|
}, 8, ["modelValue", "rules", "helper-text"]))
|
|
224
223
|
], 2)),
|
|
225
224
|
t.isMission ? f("", !0) : (d(), F(_, { key: 2 }, [
|
|
226
|
-
|
|
225
|
+
w(y, {
|
|
227
226
|
modelValue: e(a).maxUse,
|
|
228
227
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => e(a).maxUse = o),
|
|
229
228
|
"append-text": "use(s)",
|
|
230
229
|
"show-steppers": !1,
|
|
231
230
|
rules: [e(m).ruleAtPath(t.schema, "maxUse")]
|
|
232
231
|
}, {
|
|
233
|
-
label:
|
|
232
|
+
label: h(() => [
|
|
234
233
|
(d(), u(R(
|
|
235
234
|
e(m).toInputLabel(
|
|
236
235
|
e(m).typeAtPath(t.schema, "maxUse"),
|
|
@@ -248,7 +247,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
248
247
|
"show-steppers": !1,
|
|
249
248
|
rules: [e(m).ruleAtPath(t.schema, "cooldown")]
|
|
250
249
|
}, {
|
|
251
|
-
label:
|
|
250
|
+
label: h(() => [
|
|
252
251
|
(d(), u(R(
|
|
253
252
|
e(m).toInputLabel(
|
|
254
253
|
e(m).typeAtPath(t.schema, "cooldown"),
|
|
@@ -258,7 +257,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
258
257
|
]),
|
|
259
258
|
_: 1
|
|
260
259
|
}, 8, ["modelValue", "rules"])) : f("", !0),
|
|
261
|
-
|
|
260
|
+
w(re, {
|
|
262
261
|
modelValue: e(a).validityOption,
|
|
263
262
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => e(a).validityOption = o),
|
|
264
263
|
label: e(n)("connect.template.validity_option.title")
|
|
@@ -270,7 +269,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
270
269
|
}), ce = { class: "space-y-8" }, pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, fe = {
|
|
271
270
|
key: 1,
|
|
272
271
|
class: "border-1 rounded-md flex gap-16 items-center justify-between px-16 py-12"
|
|
273
|
-
}, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" },
|
|
272
|
+
}, ve = { class: "fm-typo-en-body-lg-400" }, ye = { class: "text-fm-color-typo-secondary" }, Ue = /* @__PURE__ */ B({
|
|
274
273
|
__name: "EffectSheet",
|
|
275
274
|
props: {
|
|
276
275
|
modelValue: { type: Object },
|
|
@@ -282,10 +281,10 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
282
281
|
setup(t, { emit: S }) {
|
|
283
282
|
const { t: n } = T(), i = S, v = P(!1);
|
|
284
283
|
async function a(c) {
|
|
285
|
-
c.stopPropagation(), await
|
|
284
|
+
c.stopPropagation(), await ne.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
|
|
286
285
|
}
|
|
287
286
|
return (c, l) => {
|
|
288
|
-
const
|
|
287
|
+
const g = V("FmButton"), y = V("FmSideSheet");
|
|
289
288
|
return d(), u(y, {
|
|
290
289
|
"max-width": 550,
|
|
291
290
|
header: e(n)("connect.effect.title"),
|
|
@@ -295,7 +294,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
295
294
|
l[3] || (l[3] = (o) => v.value = o)
|
|
296
295
|
]
|
|
297
296
|
}, {
|
|
298
|
-
"side-sheet-button":
|
|
297
|
+
"side-sheet-button": h(() => {
|
|
299
298
|
var o, k, U, A;
|
|
300
299
|
return [
|
|
301
300
|
C("div", ce, [
|
|
@@ -305,13 +304,13 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
305
304
|
C("div", null, b((o = e(O)(t.modelValue)) == null ? void 0 : o.type), 1),
|
|
306
305
|
C("div", ye, b((k = e(O)(t.modelValue)) == null ? void 0 : k.adjustment) + " " + b(e(n)("connect.effect.with")) + " " + b((U = e(O)(t.modelValue)) == null ? void 0 : U.requirements) + " " + b((A = e(O)(t.modelValue)) == null ? void 0 : A.maxCap), 1)
|
|
307
306
|
]),
|
|
308
|
-
g
|
|
307
|
+
w(g, {
|
|
309
308
|
icon: "delete",
|
|
310
309
|
"icon-color": "neutral-gray-400",
|
|
311
310
|
variant: "tertiary",
|
|
312
311
|
onClick: a
|
|
313
312
|
})
|
|
314
|
-
])) : (d(), u(
|
|
313
|
+
])) : (d(), u(g, {
|
|
315
314
|
key: 0,
|
|
316
315
|
label: e(n)("connect.effect.title"),
|
|
317
316
|
icon: "add",
|
|
@@ -322,11 +321,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
322
321
|
])
|
|
323
322
|
];
|
|
324
323
|
}),
|
|
325
|
-
"side-sheet-footer":
|
|
324
|
+
"side-sheet-footer": h(() => [...l[4] || (l[4] = [
|
|
326
325
|
ee(b(void 0), -1)
|
|
327
326
|
])]),
|
|
328
|
-
default:
|
|
329
|
-
|
|
327
|
+
default: h(() => [
|
|
328
|
+
w(e(le), {
|
|
330
329
|
class: "fm-effect-sheet",
|
|
331
330
|
title: "",
|
|
332
331
|
"can-set-auto-apply": t.canSetAutoApply,
|
|
@@ -342,7 +341,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
342
341
|
}
|
|
343
342
|
});
|
|
344
343
|
export {
|
|
345
|
-
|
|
346
|
-
|
|
344
|
+
Ue as _,
|
|
345
|
+
Se as a,
|
|
347
346
|
re as b
|
|
348
347
|
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as
|
|
1
|
+
import { defineComponent as E, ref as S, computed as U, onMounted as j, resolveComponent as m, openBlock as p, createElementBlock as _, Fragment as h, createVNode as i, unref as o, createElementVNode as n, withCtx as x, renderList as M, createBlock as w, resolveDynamicComponent as H, toDisplayString as g, h as q } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as G, components as J } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Q } from "./plugins-
|
|
5
|
-
import { u as W } from "./loading-
|
|
6
|
-
import { u as X } from "./business-
|
|
7
|
-
import { u as Y, c as
|
|
8
|
-
import { a as L, b as V, g as Z } from "./campaign-
|
|
9
|
-
import { u as ee } from "./vue-i18n-
|
|
4
|
+
import { p as Q } from "./plugins-BWUWdHwy.js";
|
|
5
|
+
import { u as W } from "./loading-BeO6W824.js";
|
|
6
|
+
import { u as X } from "./business-BUpIHd4Z.js";
|
|
7
|
+
import { u as Y, c as y } from "./campaign-CZx-8rcc.js";
|
|
8
|
+
import { a as L, b as V, g as Z } from "./campaign-D_l_eCaG.js";
|
|
9
|
+
import { u as ee } from "./vue-i18n-DOqqi883.js";
|
|
10
10
|
import { _ as te } from "./FilterChip.vue_vue_type_script_setup_true_lang-DaU-9GzO.js";
|
|
11
|
-
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as
|
|
13
|
-
const
|
|
11
|
+
import { _ as oe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bsz4DfR2.js";
|
|
12
|
+
import { u as ae } from "./template-B1S6b9tH.js";
|
|
13
|
+
const ne = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-center justify-between w-full" }, se = { class: "flex gap-8 overflow-x-auto" }, ie = { class: "space-y-8" }, ce = { class: "flex w-full gap-4 items-center" }, le = { class: "space-y-4" }, me = { class: "fm-typo-en-body-lg-600" }, de = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, pe = { class: "flex flex-col gap-16 text-center" }, ue = { class: "fm-typo-en-title-sm-800" }, fe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ve = /* @__PURE__ */ E({
|
|
14
14
|
__name: "Experience",
|
|
15
|
-
setup(
|
|
15
|
+
setup(ge) {
|
|
16
16
|
const { t: r } = ee(), P = {
|
|
17
17
|
label: r("connect.program.common.actions.create", {
|
|
18
18
|
type: r("connect.program.experience.title").toLowerCase()
|
|
@@ -20,18 +20,18 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
20
20
|
value: "create",
|
|
21
21
|
isPrimary: !0,
|
|
22
22
|
prependIcon: "add"
|
|
23
|
-
}, B =
|
|
23
|
+
}, B = ae("POINT", G()), I = X(), d = Y(), { global: T, minor: b } = W, s = S({
|
|
24
24
|
searchKey: "",
|
|
25
25
|
location: []
|
|
26
26
|
});
|
|
27
27
|
function $(e) {
|
|
28
28
|
const t = s.value.location;
|
|
29
29
|
return !t || t.length === 0 || !e.targetLocation ? !0 : Array.isArray(t) ? t.some((l) => {
|
|
30
|
-
var
|
|
31
|
-
return (
|
|
30
|
+
var c;
|
|
31
|
+
return (c = e == null ? void 0 : e.targetLocation) == null ? void 0 : c.includes(l);
|
|
32
32
|
}) : e.targetLocation.includes(t);
|
|
33
33
|
}
|
|
34
|
-
const
|
|
34
|
+
const u = U(
|
|
35
35
|
() => d.campaigns.experience.filter((e) => $(e))
|
|
36
36
|
), K = [
|
|
37
37
|
{
|
|
@@ -58,16 +58,16 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
58
58
|
icon: "delete",
|
|
59
59
|
iconColor: "neutral-gray-400",
|
|
60
60
|
onClick: (t) => {
|
|
61
|
-
t.stopPropagation(),
|
|
61
|
+
t.stopPropagation(), v(e.row.original);
|
|
62
62
|
}
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
-
],
|
|
67
|
-
async function
|
|
68
|
-
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await
|
|
66
|
+
], C = S();
|
|
67
|
+
async function v(e) {
|
|
68
|
+
await Q.remove(`Are you sure you want to remove ${e.name}?`) && await b(
|
|
69
69
|
async () => {
|
|
70
|
-
await
|
|
70
|
+
await y.delete(e._id), await d.read("POINT");
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
message: `Removing ${e.name}`,
|
|
@@ -75,24 +75,24 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
}
|
|
78
|
-
async function
|
|
78
|
+
async function f(e) {
|
|
79
79
|
e ? await t() : B.open(async (l) => {
|
|
80
80
|
await t(l);
|
|
81
81
|
});
|
|
82
82
|
async function t(l) {
|
|
83
|
-
var
|
|
84
|
-
(
|
|
83
|
+
var c;
|
|
84
|
+
(c = C.value) == null || c.showSheet(
|
|
85
85
|
!0,
|
|
86
86
|
"POINT",
|
|
87
|
-
e ? await
|
|
87
|
+
e ? await y.readById(e._id) : void 0,
|
|
88
88
|
l
|
|
89
89
|
);
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
async function N(e) {
|
|
93
|
-
await
|
|
93
|
+
await b(
|
|
94
94
|
async () => {
|
|
95
|
-
e.campaign._id ? await
|
|
95
|
+
e.campaign._id ? await y.update(e.campaign._id, e) : await y.create(e), await d.read("POINT");
|
|
96
96
|
},
|
|
97
97
|
{
|
|
98
98
|
message: r("connect.program.common.update.updating", {
|
|
@@ -110,79 +110,75 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
110
110
|
await d.read("POINT");
|
|
111
111
|
});
|
|
112
112
|
}), (e, t) => {
|
|
113
|
-
const l = m("FmPageHead"),
|
|
114
|
-
return p(), _(
|
|
115
|
-
|
|
113
|
+
const l = m("FmPageHead"), c = m("FmSearch"), A = m("FmTable"), F = m("FmButton"), O = m("FmListItem"), R = m("FmList"), D = m("FmCard");
|
|
114
|
+
return p(), _(h, null, [
|
|
115
|
+
i(l, {
|
|
116
116
|
title: o(r)("connect.program.experience.title"),
|
|
117
|
-
actions: o(
|
|
118
|
-
"onClick:action": t[0] || (t[0] = () =>
|
|
117
|
+
actions: o(u).length > 0 ? [P] : [],
|
|
118
|
+
"onClick:action": t[0] || (t[0] = () => f())
|
|
119
119
|
}, null, 8, ["title", "actions"]),
|
|
120
|
-
|
|
121
|
-
c
|
|
120
|
+
n("div", ne, [
|
|
121
|
+
i(c, {
|
|
122
122
|
modelValue: o(s).searchKey,
|
|
123
|
-
"onUpdate:modelValue": t[1] || (t[1] = (
|
|
124
|
-
class: "hidden xs:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
123
|
+
"onUpdate:modelValue": t[1] || (t[1] = (a) => o(s).searchKey = a),
|
|
124
|
+
class: "hidden xs:!block sm:!block border-b-2 border-fm-color-neutral-gray-100",
|
|
125
125
|
placeholder: o(r)("connect.program.common.search"),
|
|
126
126
|
collapsible: ""
|
|
127
127
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
128
|
-
o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
128
|
+
o(d).campaigns.experience && o(d).campaigns.experience.length > 0 ? (p(), _(h, { key: 0 }, [
|
|
129
|
+
n("div", re, [
|
|
130
|
+
n("div", se, [
|
|
131
|
+
i(te, {
|
|
132
132
|
label: `${o(r)("connect.common.location")}: `,
|
|
133
133
|
"right-icon": "keyboard_arrow_down",
|
|
134
134
|
modelValue: o(s).location,
|
|
135
|
-
"onUpdate:modelValue": t[2] || (t[2] = (
|
|
135
|
+
"onUpdate:modelValue": t[2] || (t[2] = (a) => o(s).location = a),
|
|
136
136
|
icon: "storefront",
|
|
137
137
|
"show-item-label": !0,
|
|
138
138
|
items: o(I).locationOptions
|
|
139
139
|
}, null, 8, ["label", "modelValue", "items"])
|
|
140
140
|
]),
|
|
141
|
-
c
|
|
141
|
+
i(c, {
|
|
142
142
|
modelValue: o(s).searchKey,
|
|
143
|
-
"onUpdate:modelValue": t[3] || (t[3] = (
|
|
144
|
-
class: "xs:hidden",
|
|
143
|
+
"onUpdate:modelValue": t[3] || (t[3] = (a) => o(s).searchKey = a),
|
|
144
|
+
class: "xs:hidden sm:hidden",
|
|
145
145
|
placeholder: "search",
|
|
146
146
|
collapsible: ""
|
|
147
147
|
}, null, 8, ["modelValue"])
|
|
148
148
|
]),
|
|
149
|
-
|
|
150
|
-
class: "xs:hidden",
|
|
151
|
-
"row-data": o(
|
|
149
|
+
i(A, {
|
|
150
|
+
class: "xs:hidden sm:hidden",
|
|
151
|
+
"row-data": o(u),
|
|
152
152
|
"column-defs": K,
|
|
153
153
|
"search-value": o(s).searchKey,
|
|
154
154
|
"column-filter": [],
|
|
155
|
-
onRowClick: t[4] || (t[4] = (
|
|
156
|
-
"hide-footer": o(
|
|
155
|
+
onRowClick: t[4] || (t[4] = (a) => f(a.original)),
|
|
156
|
+
"hide-footer": o(u).length < 10
|
|
157
157
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
158
|
-
|
|
159
|
-
default:
|
|
160
|
-
(p(!0), _(
|
|
161
|
-
(
|
|
162
|
-
), (
|
|
163
|
-
key:
|
|
164
|
-
onClick: (k) =>
|
|
158
|
+
i(R, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
159
|
+
default: x(() => [
|
|
160
|
+
(p(!0), _(h, null, M(o(u).filter(
|
|
161
|
+
(a) => a.name.toLowerCase().includes(o(s).searchKey.toLowerCase())
|
|
162
|
+
), (a) => (p(), w(O, {
|
|
163
|
+
key: a._id.toString(),
|
|
164
|
+
onClick: (k) => f(a),
|
|
165
165
|
class: "py-12 px-16 flex items-center justify-between border-b border-fm-color-neutral-gray-100"
|
|
166
166
|
}, {
|
|
167
|
-
default:
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
(p(), w(H(o(L)(
|
|
171
|
-
a("div", le, u(n.currentReceive ?? 0) + " used ", 1)
|
|
167
|
+
default: x(() => [
|
|
168
|
+
n("div", ie, [
|
|
169
|
+
n("div", ce, [
|
|
170
|
+
(p(), w(H(o(L)(a))))
|
|
172
171
|
]),
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
])
|
|
177
|
-
a("div", ue, u(o(r)("connect.program.experience.received", {
|
|
178
|
-
count: n.currentReceive ?? 0
|
|
179
|
-
})), 1)
|
|
172
|
+
n("div", le, [
|
|
173
|
+
n("div", me, g(a.name), 1),
|
|
174
|
+
n("div", de, g(o(V)(a)), 1)
|
|
175
|
+
])
|
|
180
176
|
]),
|
|
181
|
-
|
|
177
|
+
i(F, {
|
|
182
178
|
icon: "delete",
|
|
183
179
|
"icon-color": "neutral-gray-400",
|
|
184
180
|
variant: "tertiary",
|
|
185
|
-
onClick: (k) => (k.stopPropagation(),
|
|
181
|
+
onClick: (k) => (k.stopPropagation(), v(a))
|
|
186
182
|
}, null, 8, ["onClick"])
|
|
187
183
|
]),
|
|
188
184
|
_: 2
|
|
@@ -195,27 +191,27 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
195
191
|
variant: "outlined",
|
|
196
192
|
class: "w-full flex flex-col items-center justify-center gap-y-24 p-24"
|
|
197
193
|
}, {
|
|
198
|
-
default:
|
|
199
|
-
t[6] || (t[6] =
|
|
194
|
+
default: x(() => [
|
|
195
|
+
t[6] || (t[6] = n("img", {
|
|
200
196
|
src: z,
|
|
201
197
|
class: "aspect-square w-[150px]"
|
|
202
198
|
}, null, -1)),
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
199
|
+
n("div", pe, [
|
|
200
|
+
n("div", ue, g(o(r)("connect.program.experience.empty_state.title")), 1),
|
|
201
|
+
n("div", fe, g(o(r)("connect.program.experience.empty_state.description")), 1)
|
|
206
202
|
]),
|
|
207
|
-
|
|
203
|
+
i(F, {
|
|
208
204
|
variant: "primary",
|
|
209
205
|
label: "Create experience program",
|
|
210
206
|
icon: "add",
|
|
211
|
-
onClick: t[5] || (t[5] = (
|
|
207
|
+
onClick: t[5] || (t[5] = (a) => f())
|
|
212
208
|
})
|
|
213
209
|
]),
|
|
214
210
|
_: 1
|
|
215
211
|
})),
|
|
216
|
-
|
|
212
|
+
i(oe, {
|
|
217
213
|
ref_key: "sheetRef",
|
|
218
|
-
ref:
|
|
214
|
+
ref: C,
|
|
219
215
|
"onSubmit:modelValue": N
|
|
220
216
|
}, null, 512)
|
|
221
217
|
])
|
|
@@ -224,5 +220,5 @@ const ae = { class: "px-24 flex flex-col gap-y-16" }, re = { class: "flex items-
|
|
|
224
220
|
}
|
|
225
221
|
});
|
|
226
222
|
export {
|
|
227
|
-
|
|
223
|
+
Ve as default
|
|
228
224
|
};
|