@feedmepos/mf-connect 0.1.110-prod → 0.1.112-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/{App-BIuwkgjE.js → App-CFJcQZEE.js} +522 -500
- package/dist/{Bin-B6PDvhj7.js → Bin-DaqUNsSV.js} +8 -8
- package/dist/{Broadcast-BsUYu9Kq.js → Broadcast-CdAN6JCa.js} +82 -79
- package/dist/{CampaignAnalytic-D0_Kh2Sv.js → CampaignAnalytic-CpP7lgTX.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-bfMr_7XS.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BQiQVQBN.js} +49 -31
- package/dist/Card-Bmz5p5Pq.js +1085 -0
- package/dist/{Collections-B0umkbKL.js → Collections-BKND60cK.js} +9 -9
- package/dist/{Credit-DMrHYtmf.js → Credit-DQ_tDm8l.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-IuEHozwd.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CCwpsEWf.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C06_qwVx.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bn-lauCv.js} +34 -32
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CHCLAOYT.js → EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js} +6 -6
- package/dist/{Experience-3xvTI41j.js → Experience-BOE6jLIS.js} +86 -83
- package/dist/{FileSaver.min-CEjHOYSg.js → FileSaver.min-D0CP0E3N.js} +1 -1
- package/dist/{Game-Drkfnm94.js → Game-B-8by2dp.js} +12 -12
- package/dist/GiftCardSetup-CdqZd1ee.js +748 -0
- package/dist/GoalPickerPanel.vue_vue_type_script_setup_true_lang-BVTu4uTR.js +424 -0
- package/dist/Goals-xFHNbwt7.js +247 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BYIIaPD9.js → ImageInput.vue_vue_type_script_setup_true_lang-B5Z1AZRV.js} +1 -1
- package/dist/{Index-BNfZ-mAu.js → Index-t6veJ0lU.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CqJLimu2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Deeanc8z.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BnMjqLMU.js → LottieAnimation.vue_vue_type_script_setup_true_lang-B8qOJYoS.js} +1 -1
- package/dist/{LoyaltyDashboard-BmRdWFCw.js → LoyaltyDashboard-DXNBsnM5.js} +1216 -1170
- package/dist/{MainLayout-m4H59w6_.js → MainLayout-CmCboaEn.js} +3 -3
- package/dist/{Marketing-BqdCdc76.js → Marketing-DCq9O5eb.js} +4 -4
- package/dist/{MarketingMaterialEdit-UjCEMJ7c.js → MarketingMaterialEdit-CGLxanxm.js} +6 -6
- package/dist/{Member-BbpQizye.js → Member-BCYmEmhD.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BbL7cw4g.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-Djrfmj9g.js} +26 -24
- package/dist/{MemberImportHistory-FYMyd_uX.js → MemberImportHistory-D-5NAOfo.js} +7 -7
- package/dist/{MemberList-CFtv0HI5.js → MemberList-IySTKOT_.js} +14 -14
- package/dist/{MemberTransactions-BYpugGs7.js → MemberTransactions-BgQZvc5O.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CDzQ0rnK.js → MessageInput.vue_vue_type_script_setup_true_lang-N8PCSKBx.js} +3369 -3290
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BlhwugZQ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_JNdYsBu.js} +1 -1
- package/dist/{Mission-BMhY1kl1.js → Mission-DtaTKWE2.js} +83 -80
- package/dist/{Overview-BmZelkd_.js → Overview-D-uC2-Pi.js} +4 -4
- package/dist/{Overview-E0KL28Fc.js → Overview-DVMdPa97.js} +57 -55
- package/dist/{Point-BX5p9ZVF.js → Point-jnPIgHMZ.js} +119 -110
- package/dist/{Promotion-D662WYaR.js → Promotion-mdQg-RSh.js} +89 -86
- package/dist/{Queue-CI5rumWZ.js → Queue-D8YY1lbn.js} +20 -18
- package/dist/{Record-DRZVEW0I.js → Record-Dh-rN7a0.js} +9 -9
- package/dist/{Review-yMVGBErp.js → Review-C8B-SIR8.js} +2 -2
- package/dist/{ReviewFacebookCallback-Docv-Uil.js → ReviewFacebookCallback-C3eyH0pS.js} +5 -5
- package/dist/{ReviewGoogleCallback-3xVh_G7M.js → ReviewGoogleCallback-pNF2ICvQ.js} +5 -5
- package/dist/{Reward-lzBLyu0x.js → Reward-D7KPnzXt.js} +35 -35
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bs32tPvC.js → RewardGroup.vue_vue_type_script_setup_true_lang-C87CDjxP.js} +25 -23
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-fNwFSHL1.js → RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js} +17 -15
- package/dist/{Segment-BRPf66q8.js → Segment-Ct8JRTjV.js} +32 -30
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQmbCewC.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-w-UpWetC.js} +38 -36
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-fHX_ftax.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BbEX2h2u.js} +4 -4
- package/dist/{Setting-D5k2jymY.js → Setting-C3Binnn_.js} +56 -56
- package/dist/{SettingAdvertisements-1Oc29mzb.js → SettingAdvertisements-BrB-dGPs.js} +12 -12
- package/dist/{Settings-B3OCofxq.js → Settings-D6h2QM6X.js} +5 -5
- package/dist/Store-EKPfHEmY.js +2622 -0
- package/dist/{StoreRewards-C7_RKZ00.js → StoreRewards-B208ENOi.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dy7_GFoi.js +1264 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BW-HTNMr.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-B2KJeL5Y.js} +2 -2
- package/dist/{Tier-8pGUR8GA.js → Tier-CjYiCZy_.js} +342 -338
- package/dist/{Title-DnYVX2k8.js → Title-BXkVolaL.js} +34 -32
- package/dist/Transaction-D1T3aIC3.js +45 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-ATWU025y.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js} +6 -6
- package/dist/Voucher-DnQ8jNjI.js +837 -0
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-C1dCFS2S.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CbUdt4GK.js → ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js} +2 -2
- package/dist/{app-DoUnw6pe.js → app-BtGohMqA.js} +6211 -5092
- package/dist/app.js +1 -1
- package/dist/base.export-DulNMo7e.js +75 -0
- package/dist/{business-B-PlsFIY.js → business-Bla8vvZH.js} +1 -1
- package/dist/{campaign-yUUxyk0R.js → campaign-BIPNFBY5.js} +2 -2
- package/dist/{campaign-GkMET7FI.js → campaign-DYqAyRCY.js} +8 -8
- package/dist/{campaign.enum-DbPiwqfi.js → campaign.enum-liUaxkcy.js} +1 -1
- package/dist/{campaign.fn-CF5mOcSE.js → campaign.fn-J7hYcX_7.js} +98 -98
- package/dist/{collectible.enum-CbOzGIud.js → collectible.enum-C0FfRMrW.js} +1 -1
- package/dist/{collection.fn-BByCTXVz.js → collection.fn-DdDMfaFO.js} +2 -2
- package/dist/currency-BrVnqxQ1.js +7 -0
- package/dist/{effect-jriAOaEq.js → effect-gfVmfrm9.js} +1 -1
- package/dist/{email-addresses-DH4xgace.js → email-addresses-Dy8NFNBw.js} +2 -2
- package/dist/{helper-CQjM35T_.js → helper-CMhQctQK.js} +1 -1
- package/dist/{index-v3DTwO9s.js → index-B6x6s8mu.js} +1805 -2128
- package/dist/{index-iZDBfoRk.js → index-BOZ3oVHd.js} +2 -2
- package/dist/{index-MtVkfI7s.js → index-BqKrePY8.js} +3 -3
- package/dist/{index-BLOFQAMK.js → index-C5rRuwhC.js} +1 -1
- package/dist/{index-BHYKmUkc.js → index-C67-z1uf.js} +11 -6
- package/dist/{index-CptAtzHf.js → index-CLiJUFmJ.js} +2 -2
- package/dist/{index-DEmV6_BZ.js → index-CUFuU2eJ.js} +10 -8
- package/dist/index-CZqwIQXi.js +738 -0
- package/dist/{index-D1vRPik1.js → index-CghtzuVO.js} +1 -1
- package/dist/{index-DszI88g9.js → index-Culx-Z9v.js} +20 -14
- package/dist/{index-Dr68iOIO.js → index-D1T4Yf4t.js} +1 -1
- package/dist/{index-Duqxyi9L.js → index-D6RDVy95.js} +1112 -34
- package/dist/index-DKmtDBKS.js +53 -0
- package/dist/{index-De9f7Fwe.js → index-Dalmv1m4.js} +5 -5
- package/dist/{index-DKZEN-aI.js → index-DvW-3flw.js} +4 -3
- package/dist/{index-CCBpqK6M.js → index-dyMdi0Rt.js} +1 -1
- package/dist/index-otcusTFM.js +171 -0
- package/dist/{index-BlKeV6aM.js → index-qJOEwQ_z.js} +4 -1
- package/dist/{index-BPTCREXM.js → index-v1exQSyU.js} +1 -1
- package/dist/{index.esm2017-DvOnDQUA.js → index.esm2017-BLKRIlb9.js} +1 -1
- package/dist/{loading-DO3WUS3q.js → loading-BkJ3h_4U.js} +1 -1
- package/dist/{lodash-6izwukKR.js → lodash-C0Kbs8lQ.js} +1 -1
- package/dist/{member-import-hKbS-7lM.js → member-import-trpK8l8R.js} +1 -1
- package/dist/{membership-buZOqdNV.js → membership-TV1CoyKQ.js} +3 -3
- package/dist/{money-WR6-v2Bl.js → money-BM-DK9iD.js} +1 -1
- package/dist/{number-CjEejmUn.js → number-BclgE86R.js} +1 -1
- package/dist/{objectid-BvtNS241.js → objectid-C2XvpEgx.js} +12 -12
- package/dist/onboarding-BLuoXyCY.js +131 -0
- package/dist/onboardingSetup-BLmLAgIV.js +17 -0
- package/dist/{plugins-BLcKp-ww.js → plugins-3_mD58dh.js} +3 -3
- package/dist/{reward-DCNR2-_F.js → reward-Bo4szVCU.js} +1 -1
- package/dist/{rule-BsdMlDuH.js → rule-Bwy5-zD7.js} +3 -3
- package/dist/{rule-builder-C2z6Ki1X.js → rule-builder-Co_1uuj4.js} +1 -1
- package/dist/{template-DuuTNfO4.js → template-fImyGLa7.js} +7 -7
- package/dist/{timezone-nMBfnPp_.js → timezone-DQ7TNXmV.js} +1 -1
- package/dist/{transaction.fn-CYC2Uh5Y.js → transaction.fn-OT7ucfCB.js} +2 -2
- package/dist/{trigger-CtlvsU7_.js → trigger-BJKHGcNG.js} +14 -14
- package/dist/{useMarketingMaterialActions-Dec-VZh7.js → useMarketingMaterialActions-BX3C1Gga.js} +3 -3
- package/dist/{usePagination-DvJ9IfI_.js → usePagination-Qp0qoWBj.js} +1 -1
- package/dist/{user-CYOAXuDw.js → user-BcE3fiEa.js} +1 -1
- package/dist/{vue-i18n-Cy0bIZpQ.js → vue-i18n-BQmB8Ex1.js} +99 -99
- package/dist/{xlsx-Ct_b6gSU.js → xlsx-DYZ421PG.js} +584 -584
- package/dist/{zod-DZR76_dr.js → zod-DestzeIp.js} +1 -1
- package/package.json +1 -1
- package/dist/Card-D5sknDf_.js +0 -910
- package/dist/Store-B8WVn8ZA.js +0 -1997
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CmqgxDJ6.js +0 -1008
- package/dist/Transaction-YJkVkePM.js +0 -39
- package/dist/Voucher-BcCzreI3.js +0 -443
- package/dist/export-CN3lbc2j.js +0 -97
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { defineComponent as X, ref as x, computed as H, resolveComponent as w, openBlock as b, createBlock as h, unref as t, isRef as Z, withCtx as A, createElementVNode as f, createVNode as d, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as
|
|
1
|
+
import { defineComponent as X, ref as x, computed as H, resolveComponent as w, openBlock as b, createBlock as h, unref as t, isRef as Z, withCtx as A, createElementVNode as f, createVNode as d, createCommentVNode as k, createElementBlock as M, Fragment as Y, h as _, onMounted as q, toDisplayString as B } from "vue";
|
|
2
2
|
import { _ as z } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as Q, components as L } from "@feedmepos/ui-library";
|
|
4
|
-
import { u as G } from "./loading-
|
|
5
|
-
import { u as J, C as ee } from "./membership-
|
|
6
|
-
import { f as j, p as te } from "./plugins-
|
|
7
|
-
import { u as oe } from "./vue-i18n-
|
|
4
|
+
import { u as G } from "./loading-BkJ3h_4U.js";
|
|
5
|
+
import { u as J, C as ee } from "./membership-TV1CoyKQ.js";
|
|
6
|
+
import { f as j, p as te } from "./plugins-3_mD58dh.js";
|
|
7
|
+
import { u as oe } from "./vue-i18n-BQmB8Ex1.js";
|
|
8
8
|
import { c as ae } from "./object-BYyQ0PZp.js";
|
|
9
|
-
import { Z as
|
|
10
|
-
import "./index-
|
|
11
|
-
import {
|
|
9
|
+
import { Z as F } from "./zod-DestzeIp.js";
|
|
10
|
+
import "./index-BqKrePY8.js";
|
|
11
|
+
import { a as N } from "./index-Dalmv1m4.js";
|
|
12
12
|
import { useCoreStore as le } from "@feedmepos/mf-common";
|
|
13
|
-
import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-
|
|
14
|
-
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
13
|
+
import { _ as ne, a as ie } from "./VoucherEditor.vue_vue_type_script_setup_true_lang-Z9GDpO4z.js";
|
|
14
|
+
import { b as re } from "./EffectSheet.vue_vue_type_style_index_0_lang-wUV_beN0.js";
|
|
15
15
|
import { J as K } from "./JsonViewer-v8_C7l5N.js";
|
|
16
|
-
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { i as de } from "./helper-
|
|
18
|
-
import { u as pe, r as P } from "./reward-
|
|
19
|
-
import "./index-
|
|
20
|
-
import { C as ce } from "./campaign.fn-
|
|
21
|
-
import { e as me } from "./effect-
|
|
16
|
+
import { _ as se } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js";
|
|
17
|
+
import { i as de } from "./helper-CMhQctQK.js";
|
|
18
|
+
import { u as pe, r as P } from "./reward-Bo4szVCU.js";
|
|
19
|
+
import "./index-C5rRuwhC.js";
|
|
20
|
+
import { C as ce } from "./campaign.fn-J7hYcX_7.js";
|
|
21
|
+
import { e as me } from "./effect-gfVmfrm9.js";
|
|
22
22
|
import { useRouter as ue } from "vue-router";
|
|
23
|
-
import { R as ye } from "./app-
|
|
23
|
+
import { R as ye } from "./app-BtGohMqA.js";
|
|
24
24
|
const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__ */ X({
|
|
25
25
|
__name: "EditRewardSheet",
|
|
26
26
|
emits: ["update"],
|
|
@@ -39,7 +39,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
39
39
|
const l = R.value.safeParse(a.value);
|
|
40
40
|
return l.success ? [] : l.error.errors;
|
|
41
41
|
});
|
|
42
|
-
function
|
|
42
|
+
function O(l, e) {
|
|
43
43
|
l && (y.value = void 0, a.value = e), v.value = l;
|
|
44
44
|
}
|
|
45
45
|
const D = I;
|
|
@@ -93,7 +93,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
93
93
|
}
|
|
94
94
|
const V = x();
|
|
95
95
|
return n({
|
|
96
|
-
showSheet:
|
|
96
|
+
showSheet: O
|
|
97
97
|
}), (l, e) => {
|
|
98
98
|
const o = w("FmSelect"), i = w("FmForm"), m = w("FmButton"), g = w("FmSideSheet");
|
|
99
99
|
return b(), h(g, {
|
|
@@ -137,8 +137,8 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
137
137
|
modelValue: t(a).name,
|
|
138
138
|
"onUpdate:modelValue": e[0] || (e[0] = (s) => t(a).name = s),
|
|
139
139
|
label: "Reward Name",
|
|
140
|
-
schema: t(
|
|
141
|
-
"error-text": t(
|
|
140
|
+
schema: t(F).typeAtPath(t(R), "name", []),
|
|
141
|
+
"error-text": t(F).helperText(t(u), "name")
|
|
142
142
|
}, null, 8, ["modelValue", "schema", "error-text"]),
|
|
143
143
|
d(o, {
|
|
144
144
|
label: "Reward Type",
|
|
@@ -168,12 +168,12 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
168
168
|
key: 0,
|
|
169
169
|
class: "mt-[-8px]",
|
|
170
170
|
rules: [
|
|
171
|
-
t(
|
|
171
|
+
t(F).ruleAtPath(t(R), "option.earningOption", [
|
|
172
172
|
t(a).option.type
|
|
173
173
|
])
|
|
174
174
|
],
|
|
175
|
-
"helper-state": t(
|
|
176
|
-
"error-text": t(
|
|
175
|
+
"helper-state": t(F).helperState(t(u), "option.earningOption"),
|
|
176
|
+
"error-text": t(F).helperText(t(u), "option.earningOption"),
|
|
177
177
|
"fixed-type": !0,
|
|
178
178
|
"model-value": t(a).option.earningOption,
|
|
179
179
|
"onUpdate:modelValue": e[1] || (e[1] = (s) => t(a).option.earningOption = s)
|
|
@@ -188,7 +188,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
188
188
|
)) == null ? void 0 : E.raw.type) === "CREDIT",
|
|
189
189
|
type: t(a).option.type === "VOUCHER" ? "range" : "custom",
|
|
190
190
|
rules: [
|
|
191
|
-
t(
|
|
191
|
+
t(F).ruleAtPath(t(R), "option.validityOption", [
|
|
192
192
|
t(a).option.type
|
|
193
193
|
])
|
|
194
194
|
],
|
|
@@ -224,7 +224,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
224
224
|
}, p = J(), C = pe(), { global: v, minor: a } = G, y = ue(), R = Q(), u = x({
|
|
225
225
|
searchKey: "",
|
|
226
226
|
columnFilters: []
|
|
227
|
-
}),
|
|
227
|
+
}), O = H(() => C.rewards);
|
|
228
228
|
function D(e) {
|
|
229
229
|
y.push({
|
|
230
230
|
name: ye["$connect-STORE_REWARD_COLLECTIONS"],
|
|
@@ -260,8 +260,8 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
260
260
|
{
|
|
261
261
|
header: n("connect.storeRewards.table.actions"),
|
|
262
262
|
cell(e) {
|
|
263
|
-
return
|
|
264
|
-
|
|
263
|
+
return _("div", { class: "flex items-center justify-end gap-4" }, [
|
|
264
|
+
_(
|
|
265
265
|
L.FmMenu,
|
|
266
266
|
{
|
|
267
267
|
placement: "bottom-end",
|
|
@@ -270,13 +270,13 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
270
270
|
}
|
|
271
271
|
},
|
|
272
272
|
{
|
|
273
|
-
"menu-button": () =>
|
|
273
|
+
"menu-button": () => _(L.FmButton, {
|
|
274
274
|
icon: "more_vert",
|
|
275
275
|
iconColor: "neutral-gray-400",
|
|
276
276
|
variant: "tertiary"
|
|
277
277
|
}),
|
|
278
278
|
default: () => [
|
|
279
|
-
e.row.original.option.type === "VOUCHER" &&
|
|
279
|
+
e.row.original.option.type === "VOUCHER" && _(L.FmMenuItem, {
|
|
280
280
|
label: "View collections",
|
|
281
281
|
onClick: async (o) => {
|
|
282
282
|
o.stopPropagation(), D(
|
|
@@ -284,7 +284,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
284
284
|
);
|
|
285
285
|
}
|
|
286
286
|
}),
|
|
287
|
-
|
|
287
|
+
_(
|
|
288
288
|
L.FmMenuItem,
|
|
289
289
|
{
|
|
290
290
|
onClick: async (o) => {
|
|
@@ -292,7 +292,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
292
292
|
}
|
|
293
293
|
},
|
|
294
294
|
{
|
|
295
|
-
label:
|
|
295
|
+
label: _(
|
|
296
296
|
"div",
|
|
297
297
|
{
|
|
298
298
|
class: "text-fm-color-typo-error fm-typo-en-body-md-400"
|
|
@@ -385,7 +385,7 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
385
385
|
})
|
|
386
386
|
}, null, 8, ["title", "actions"]),
|
|
387
387
|
f("div", ve, [
|
|
388
|
-
t(
|
|
388
|
+
t(O) && t(O).length > 0 ? (b(), M(Y, { key: 0 }, [
|
|
389
389
|
f("div", ge, [
|
|
390
390
|
o[6] || (o[6] = f("div", { class: "flex gap-8" }, null, -1)),
|
|
391
391
|
d(m, {
|
|
@@ -397,12 +397,12 @@ const fe = { class: "flex gap-8 items-center justify-start" }, we = /* @__PURE__
|
|
|
397
397
|
}, null, 8, ["modelValue"])
|
|
398
398
|
]),
|
|
399
399
|
d(g, {
|
|
400
|
-
"row-data": t(
|
|
400
|
+
"row-data": t(O),
|
|
401
401
|
"column-defs": S,
|
|
402
402
|
"search-value": t(u).searchKey,
|
|
403
403
|
"column-filter": t(u).columnFilters,
|
|
404
404
|
onRowClick: o[3] || (o[3] = (c) => V(c.original)),
|
|
405
|
-
"hide-footer": t(
|
|
405
|
+
"hide-footer": t(O).length < 10
|
|
406
406
|
}, null, 8, ["row-data", "search-value", "column-filter", "hide-footer"])
|
|
407
407
|
], 64)) : (b(), h(E, {
|
|
408
408
|
key: 1,
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
import { ref as p, defineComponent as T, computed as x, resolveComponent as y, openBlock as U, createBlock as G, unref as e, isRef as $, withCtx as b, createElementVNode as v, createVNode as u, toDisplayString as j } from "vue";
|
|
2
|
-
import { u as B } from "./loading-
|
|
2
|
+
import { u as B } from "./loading-BkJ3h_4U.js";
|
|
3
3
|
import { J as P } from "./JsonViewer-v8_C7l5N.js";
|
|
4
|
-
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
5
|
-
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-
|
|
6
|
-
import { Z as L } from "./zod-
|
|
4
|
+
import { _ as D } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js";
|
|
5
|
+
import { _ as I } from "./UserRuleGroup.vue_vue_type_script_setup_true_lang-flUDCSA5.js";
|
|
6
|
+
import { Z as L } from "./zod-DestzeIp.js";
|
|
7
7
|
import { u as V } from "./app-wDQR6dpb.js";
|
|
8
8
|
import { defineStore as N } from "pinia";
|
|
9
|
-
import { r as k } from "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import
|
|
14
|
-
import "./index-
|
|
15
|
-
import
|
|
9
|
+
import { r as k } from "./index-D1T4Yf4t.js";
|
|
10
|
+
import "./index-B6x6s8mu.js";
|
|
11
|
+
import "./index-BqKrePY8.js";
|
|
12
|
+
import "./index-DvW-3flw.js";
|
|
13
|
+
import "./index-CZqwIQXi.js";
|
|
14
|
+
import { d as E } from "./index-D6RDVy95.js";
|
|
15
|
+
import "./index-Dalmv1m4.js";
|
|
16
|
+
import "./index-otcusTFM.js";
|
|
17
|
+
import { u as J } from "./vue-i18n-BQmB8Ex1.js";
|
|
16
18
|
import { c as C } from "./object-BYyQ0PZp.js";
|
|
17
19
|
import { useDialog as Z } from "@feedmepos/ui-library";
|
|
18
20
|
const A = N("mf-connect-referral", () => {
|
|
19
21
|
const h = p();
|
|
20
22
|
return {
|
|
21
23
|
readReferralProgram: async () => {
|
|
22
|
-
const
|
|
23
|
-
h.value =
|
|
24
|
+
const m = await k.read();
|
|
25
|
+
h.value = m;
|
|
24
26
|
},
|
|
25
27
|
referralProgram: h
|
|
26
28
|
};
|
|
27
29
|
}), H = { class: "flex flex-col space-y-16 pr-12" }, M = { class: "fm-typo-en-title-sm-800" }, O = { class: "flex items-center gap-8" }, W = /* @__PURE__ */ T({
|
|
28
30
|
__name: "EditReferralTierSheet",
|
|
29
31
|
emits: ["update"],
|
|
30
|
-
setup(h, { expose: _, emit:
|
|
31
|
-
const { t: n } = J(),
|
|
32
|
+
setup(h, { expose: _, emit: m }) {
|
|
33
|
+
const { t: n } = J(), c = m, s = p(!1), a = p({}), i = p(-1), w = A(), o = E.superRefine((r, t) => {
|
|
32
34
|
r.name.length >= 50 && t.addIssue({
|
|
33
35
|
code: "custom",
|
|
34
36
|
message: "Name must be less than 50 characters"
|
|
@@ -39,7 +41,7 @@ const A = N("mf-connect-referral", () => {
|
|
|
39
41
|
});
|
|
40
42
|
function R() {
|
|
41
43
|
const r = o.safeParse(a.value);
|
|
42
|
-
r.success &&
|
|
44
|
+
r.success && c("update", i.value, r.data);
|
|
43
45
|
}
|
|
44
46
|
function d(r, t) {
|
|
45
47
|
var f;
|
|
@@ -102,12 +104,12 @@ const A = N("mf-connect-referral", () => {
|
|
|
102
104
|
}, 8, ["modelValue", "header"]);
|
|
103
105
|
};
|
|
104
106
|
}
|
|
105
|
-
}),
|
|
107
|
+
}), fe = /* @__PURE__ */ T({
|
|
106
108
|
__name: "RewardGroup",
|
|
107
109
|
setup(h, { expose: _ }) {
|
|
108
|
-
const { minor:
|
|
110
|
+
const { minor: m } = B, n = Z(), c = A(), s = x(() => {
|
|
109
111
|
var o;
|
|
110
|
-
return ((o =
|
|
112
|
+
return ((o = c.referralProgram) == null ? void 0 : o.reward) ?? [];
|
|
111
113
|
}), a = p(null);
|
|
112
114
|
function i(o) {
|
|
113
115
|
var l;
|
|
@@ -118,7 +120,7 @@ const A = N("mf-connect-referral", () => {
|
|
|
118
120
|
});
|
|
119
121
|
async function w(o, l) {
|
|
120
122
|
var r;
|
|
121
|
-
const R = o == -1 ? s.value.length : o, d = C(
|
|
123
|
+
const R = o == -1 ? s.value.length : o, d = C(c.referralProgram);
|
|
122
124
|
d.reward[R] = l;
|
|
123
125
|
let g = !1;
|
|
124
126
|
await new Promise((t) => {
|
|
@@ -132,8 +134,8 @@ const A = N("mf-connect-referral", () => {
|
|
|
132
134
|
}).onSecondary(async () => {
|
|
133
135
|
t();
|
|
134
136
|
});
|
|
135
|
-
}), await
|
|
136
|
-
await k.update({ ...d, updateReferralRecord: g }), await
|
|
137
|
+
}), await m(async () => {
|
|
138
|
+
await k.update({ ...d, updateReferralRecord: g }), await c.readReferralProgram();
|
|
137
139
|
}), (r = a.value) == null || r.showSheet(!1);
|
|
138
140
|
}
|
|
139
141
|
return (o, l) => (U(), G(W, {
|
|
@@ -144,6 +146,6 @@ const A = N("mf-connect-referral", () => {
|
|
|
144
146
|
}
|
|
145
147
|
});
|
|
146
148
|
export {
|
|
147
|
-
|
|
149
|
+
fe as _,
|
|
148
150
|
A as u
|
|
149
151
|
};
|
|
@@ -1,21 +1,23 @@
|
|
|
1
1
|
import { defineComponent as P, computed as M, resolveComponent as _, openBlock as r, createElementBlock as V, createElementVNode as C, createVNode as c, unref as e, createTextVNode as ne, toDisplayString as A, withCtx as B, onMounted as Z, createBlock as f, createCommentVNode as N, ref as W, Fragment as q, renderList as $, normalizeClass as K, watch as be, resolveDynamicComponent as me, onBeforeMount as pe, isRef as fe, createSlots as ce } from "vue";
|
|
2
|
-
import { m as ge, C as _e, n as ke, d as he, o as Ee } from "./index-
|
|
3
|
-
import { R as O, a as Ve } from "./rule-builder-
|
|
2
|
+
import { m as ge, C as _e, n as ke, d as he, o as Ee } from "./index-BqKrePY8.js";
|
|
3
|
+
import { R as O, a as Ve } from "./rule-builder-Co_1uuj4.js";
|
|
4
4
|
import { useDialog as ue, useDialogChild as ye, useSnackbar as Se } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as G } from "./vue-i18n-
|
|
6
|
-
import { a as Te, R as F, S as Fe, C as j, W as xe, T as ie, O as de } from "./rule-
|
|
7
|
-
import { p as Ue } from "./plugins-
|
|
5
|
+
import { u as G } from "./vue-i18n-BQmB8Ex1.js";
|
|
6
|
+
import { a as Te, R as F, S as Fe, C as j, W as xe, T as ie, O as de } from "./rule-Bwy5-zD7.js";
|
|
7
|
+
import { p as Ue } from "./plugins-3_mD58dh.js";
|
|
8
8
|
import { h as ae } from "./moment-D7p2TMB-.js";
|
|
9
|
-
import { z as Re, S as Ce } from "./app-
|
|
10
|
-
import { u as X } from "./membership-
|
|
11
|
-
import { u as te } from "./business-
|
|
12
|
-
import "./index-
|
|
9
|
+
import { z as Re, S as Ce } from "./app-BtGohMqA.js";
|
|
10
|
+
import { u as X } from "./membership-TV1CoyKQ.js";
|
|
11
|
+
import { u as te } from "./business-Bla8vvZH.js";
|
|
12
|
+
import "./index-DvW-3flw.js";
|
|
13
13
|
import { _ as w } from "./CustomSelect.vue_vue_type_script_setup_true_lang-Du7fRSZC.js";
|
|
14
14
|
import { c as ve } from "./object-BYyQ0PZp.js";
|
|
15
|
-
import { Z as le } from "./zod-
|
|
16
|
-
import "./index-
|
|
17
|
-
import "./index-
|
|
18
|
-
import "./index-
|
|
15
|
+
import { Z as le } from "./zod-DestzeIp.js";
|
|
16
|
+
import "./index-B6x6s8mu.js";
|
|
17
|
+
import "./index-CZqwIQXi.js";
|
|
18
|
+
import "./index-D6RDVy95.js";
|
|
19
|
+
import "./index-Dalmv1m4.js";
|
|
20
|
+
import "./index-otcusTFM.js";
|
|
19
21
|
const Ye = { class: "flex items-center justify-between" }, Oe = { class: "flex items-center gap-8 xs:flex-wrap" }, we = { class: "text-fm-color-primary line-clamp-1 text-ellipsis" }, De = /* @__PURE__ */ P({
|
|
20
22
|
__name: "RuleEntry",
|
|
21
23
|
props: {
|
|
@@ -1789,7 +1791,7 @@ const qe = [
|
|
|
1789
1791
|
});
|
|
1790
1792
|
};
|
|
1791
1793
|
}
|
|
1792
|
-
}), ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" },
|
|
1794
|
+
}), ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, $t = /* @__PURE__ */ P({
|
|
1793
1795
|
__name: "RuleGroup",
|
|
1794
1796
|
props: {
|
|
1795
1797
|
triggerType: {
|
|
@@ -1876,6 +1878,6 @@ const qe = [
|
|
|
1876
1878
|
}
|
|
1877
1879
|
});
|
|
1878
1880
|
export {
|
|
1879
|
-
|
|
1881
|
+
$t as _,
|
|
1880
1882
|
re as a
|
|
1881
1883
|
};
|
|
@@ -1,38 +1,40 @@
|
|
|
1
1
|
import { defineComponent as le, ref as W, resolveComponent as x, openBlock as r, createElementBlock as k, createElementVNode as s, createVNode as d, unref as e, createCommentVNode as K, withCtx as $, Fragment as Z, renderList as me, createBlock as V, toDisplayString as D, normalizeClass as ce, computed as O, onMounted as we, isRef as Te, createSlots as Ee, h as B, onBeforeMount as De } from "vue";
|
|
2
2
|
import { _ as $e } from "./campaign-CpzFl8Vr.js";
|
|
3
|
-
import { n as Ae, p as Pe } from "./plugins-
|
|
4
|
-
import { u as Re } from "./loading-
|
|
3
|
+
import { n as Ae, p as Pe } from "./plugins-3_mD58dh.js";
|
|
4
|
+
import { u as Re } from "./loading-BkJ3h_4U.js";
|
|
5
5
|
import { FmButtonVariant as re, useSnackbar as Ne, components as ae } from "@feedmepos/ui-library";
|
|
6
|
-
import { u as Fe, _ as Ce } from "./usePagination-
|
|
7
|
-
import { u as pe } from "./vue-i18n-
|
|
8
|
-
import {
|
|
9
|
-
import "./index-
|
|
10
|
-
import { F as
|
|
11
|
-
import "./index-
|
|
12
|
-
import "./index-
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
6
|
+
import { u as Fe, _ as Ce } from "./usePagination-Qp0qoWBj.js";
|
|
7
|
+
import { u as pe } from "./vue-i18n-BQmB8Ex1.js";
|
|
8
|
+
import { g as Be, h as U, D as Ue, i as Ve } from "./index-B6x6s8mu.js";
|
|
9
|
+
import "./index-BqKrePY8.js";
|
|
10
|
+
import { F as ye, z as Le } from "./index-DvW-3flw.js";
|
|
11
|
+
import { a as ge } from "./index-CZqwIQXi.js";
|
|
12
|
+
import "./index-D6RDVy95.js";
|
|
13
|
+
import "./index-Dalmv1m4.js";
|
|
14
|
+
import "./index-otcusTFM.js";
|
|
15
|
+
import { u as de, w as ke } from "./xlsx-DYZ421PG.js";
|
|
16
|
+
import { e as Ye, M as ze } from "./email-addresses-Dy8NFNBw.js";
|
|
17
|
+
import { Z as Oe } from "./zod-DestzeIp.js";
|
|
16
18
|
import { u as je } from "./app-wDQR6dpb.js";
|
|
17
|
-
import { R as ve } from "./rule-builder-
|
|
18
|
-
import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
19
|
-
import { _ as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-
|
|
20
|
-
import { u as He, v as Ke, w as Je } from "./index.esm2017-
|
|
21
|
-
import { F as Qe } from "./FileSaver.min-
|
|
19
|
+
import { R as ve } from "./rule-builder-Co_1uuj4.js";
|
|
20
|
+
import { _ as qe } from "./ZodTextField.vue_vue_type_script_setup_true_lang-Dcw8Oi-t.js";
|
|
21
|
+
import { _ as Ge } from "./RuleGroup.vue_vue_type_script_setup_true_lang-D1S2sLOK.js";
|
|
22
|
+
import { u as He, v as Ke, w as Je } from "./index.esm2017-BLKRIlb9.js";
|
|
23
|
+
import { F as Qe } from "./FileSaver.min-D0CP0E3N.js";
|
|
22
24
|
import { h as se } from "./moment-D7p2TMB-.js";
|
|
23
|
-
import { s as z, u as We } from "./membership-
|
|
25
|
+
import { s as z, u as We } from "./membership-TV1CoyKQ.js";
|
|
24
26
|
import { o as Ze } from "./objectId-dwaoBfJX.js";
|
|
25
27
|
import { J as Xe } from "./JsonViewer-v8_C7l5N.js";
|
|
26
|
-
import { u as Ie } from "./business-
|
|
27
|
-
import { f as et } from "./number-
|
|
28
|
-
import { t as tt } from "./money-
|
|
29
|
-
import "./index-
|
|
28
|
+
import { u as Ie } from "./business-Bla8vvZH.js";
|
|
29
|
+
import { f as et } from "./number-BclgE86R.js";
|
|
30
|
+
import { t as tt } from "./money-BM-DK9iD.js";
|
|
31
|
+
import "./index-C5rRuwhC.js";
|
|
30
32
|
import { useRouter as ot } from "vue-router";
|
|
31
|
-
import { m as _e } from "./index-
|
|
32
|
-
import { R as Se } from "./app-
|
|
33
|
+
import { m as _e } from "./index-CLiJUFmJ.js";
|
|
34
|
+
import { R as Se } from "./app-BtGohMqA.js";
|
|
33
35
|
const nt = Be.extend({
|
|
34
|
-
_id:
|
|
35
|
-
business:
|
|
36
|
+
_id: ye.optional(),
|
|
37
|
+
business: ye.optional(),
|
|
36
38
|
file: Le.any().nullish()
|
|
37
39
|
});
|
|
38
40
|
var at = { firebase: { apiKey: "AIzaSyA_isPR1-9bX7UmRiJIhsIRNNwdn6DdmW4", authDomain: "feedme-253402.firebaseapp.com", databaseURL: "https://feedme-253402.firebaseio.com", projectId: "feedme-253402", storageBucket: "image.feedme.cc", messagingSenderId: "128512026847", appId: "1:128512026847:web:7c5c8ab7e8b90502dc616a", measurementId: "G-LTKS7N2HQS" }, assetBucketUrl: "static.feedme.cc", importFilesBucketUrl: "feedme-253402.appspot.com", clientId: "d5f8840d63dbb758b6c4ee2a5e8b013d15dd25e242c457481326062b83962476" };
|
|
@@ -582,7 +584,7 @@ const Nt = {
|
|
|
582
584
|
)}`
|
|
583
585
|
};
|
|
584
586
|
}
|
|
585
|
-
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100",
|
|
587
|
+
}, Bt = { class: "flex items-center" }, Ut = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Vt = { class: "px-24 flex flex-col gap-y-16" }, Lt = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, Yt = { class: "flex flex-wrap items-center gap-8" }, zt = { class: "fm-typo-en-body-md-600" }, Ot = { class: "fm-typo-en-body-md-600 text-fm-color-typo-secondary" }, jt = { class: "flex flex-col gap-16 text-center" }, qt = { class: "fm-typo-en-title-sm-800" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, be = "text-fm-color-typo-info bg-fm-color-system-info-100", Mo = /* @__PURE__ */ le({
|
|
586
588
|
__name: "Segment",
|
|
587
589
|
setup(t) {
|
|
588
590
|
const { minor: f } = Re, { t: c } = pe(), M = Ie(), { mapMemberExportRow: b } = Nt, _ = Ne(), u = ot(), T = W(0);
|
|
@@ -817,7 +819,7 @@ const Nt = {
|
|
|
817
819
|
onAction: async () => {
|
|
818
820
|
await u.push({
|
|
819
821
|
name: Se["$connect-QUEUE"],
|
|
820
|
-
query: { type: [
|
|
822
|
+
query: { type: [ge.enum.SEGMENTATION_IMPORTED] }
|
|
821
823
|
});
|
|
822
824
|
}
|
|
823
825
|
});
|
|
@@ -877,7 +879,7 @@ const Nt = {
|
|
|
877
879
|
case "queue":
|
|
878
880
|
u.push({
|
|
879
881
|
name: Se["$connect-QUEUE"],
|
|
880
|
-
query: { type: [
|
|
882
|
+
query: { type: [ge.enum.SEGMENTATION_IMPORTED] }
|
|
881
883
|
});
|
|
882
884
|
break;
|
|
883
885
|
case "start-default-segments":
|
|
@@ -1011,5 +1013,5 @@ const Nt = {
|
|
|
1011
1013
|
}
|
|
1012
1014
|
});
|
|
1013
1015
|
export {
|
|
1014
|
-
|
|
1016
|
+
Mo as default
|
|
1015
1017
|
};
|
|
@@ -1,34 +1,36 @@
|
|
|
1
|
-
import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as S, createElementVNode as
|
|
2
|
-
import { u as O } from "./loading-
|
|
3
|
-
import { p as Z } from "./plugins-
|
|
1
|
+
import { defineComponent as L, ref as p, computed as C, onMounted as P, resolveComponent as i, openBlock as $, createBlock as D, unref as e, isRef as H, withCtx as S, createElementVNode as b, createVNode as c, toDisplayString as w } from "vue";
|
|
2
|
+
import { u as O } from "./loading-BkJ3h_4U.js";
|
|
3
|
+
import { p as Z } from "./plugins-3_mD58dh.js";
|
|
4
4
|
import { u as q } from "./app-wDQR6dpb.js";
|
|
5
|
-
import { m as z } from "./index-
|
|
6
|
-
import {
|
|
7
|
-
import "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import "./index-
|
|
10
|
-
import "./index-
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
|
|
5
|
+
import { m as z } from "./index-CLiJUFmJ.js";
|
|
6
|
+
import { a as G } from "./index-B6x6s8mu.js";
|
|
7
|
+
import "./index-BqKrePY8.js";
|
|
8
|
+
import "./index-DvW-3flw.js";
|
|
9
|
+
import "./index-CZqwIQXi.js";
|
|
10
|
+
import "./index-D6RDVy95.js";
|
|
11
|
+
import "./index-Dalmv1m4.js";
|
|
12
|
+
import "./index-otcusTFM.js";
|
|
13
|
+
import { Z as d } from "./zod-DestzeIp.js";
|
|
14
|
+
import { z as Y } from "./app-BtGohMqA.js";
|
|
15
|
+
import { u as j } from "./vue-i18n-BQmB8Ex1.js";
|
|
16
|
+
import { c as J } from "./index-C67-z1uf.js";
|
|
17
|
+
const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-400" }, W = { class: "flex items-center gap-8" }, Se = /* @__PURE__ */ L({
|
|
16
18
|
__name: "SendCollectionSheet",
|
|
17
19
|
emits: ["success"],
|
|
18
20
|
setup(X, { expose: V, emit: I }) {
|
|
19
|
-
const { t:
|
|
21
|
+
const { t: m } = j(), { minor: k } = O, A = I, n = p({
|
|
20
22
|
memberId: [],
|
|
21
23
|
amount: 1,
|
|
22
24
|
ref: ""
|
|
23
|
-
}), h = p(null), f = p(),
|
|
25
|
+
}), h = p(null), f = p(), v = p([]), r = p(!1), _ = p(), T = G.extend({
|
|
24
26
|
ref: Y.string().max(50, "Reference must be at most 50 characters").optional()
|
|
25
27
|
}), F = C(() => {
|
|
26
28
|
var a;
|
|
27
29
|
switch ((a = h.value) == null ? void 0 : a.type) {
|
|
28
30
|
case "MISSION":
|
|
29
|
-
return
|
|
31
|
+
return m("connect.sendCollectionSheet.stamp");
|
|
30
32
|
case "GAME":
|
|
31
|
-
return
|
|
33
|
+
return m("connect.sendCollectionSheet.game_token");
|
|
32
34
|
default:
|
|
33
35
|
return "Unknown";
|
|
34
36
|
}
|
|
@@ -54,28 +56,28 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
54
56
|
search: a,
|
|
55
57
|
descending: !1
|
|
56
58
|
});
|
|
57
|
-
|
|
59
|
+
v.value = t.resources.map((s) => ({
|
|
58
60
|
label: `${s.name} (${s.phoneNumber})`,
|
|
59
61
|
value: s._id
|
|
60
62
|
}));
|
|
61
|
-
const
|
|
62
|
-
await new Promise((s) => setTimeout(s,
|
|
63
|
+
const l = 100;
|
|
64
|
+
await new Promise((s) => setTimeout(s, l));
|
|
63
65
|
}
|
|
64
66
|
async function U() {
|
|
65
67
|
var t;
|
|
66
68
|
await Z.confirm(
|
|
67
|
-
|
|
69
|
+
m("connect.sendCollectionSheet.confirmation_message", {
|
|
68
70
|
amount: n.value.amount,
|
|
69
71
|
type: F.value,
|
|
70
|
-
memberName: f.value ? (t =
|
|
72
|
+
memberName: f.value ? (t = v.value.find((l) => l.value === f.value)) == null ? void 0 : t.label : "Unknown Member"
|
|
71
73
|
}),
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
74
|
+
m("connect.common.confirm"),
|
|
75
|
+
m("connect.common.confirm"),
|
|
76
|
+
m("connect.common.cancel")
|
|
75
77
|
) && await k(
|
|
76
78
|
async () => {
|
|
77
|
-
var
|
|
78
|
-
await J.sendStamp((
|
|
79
|
+
var l;
|
|
80
|
+
await J.sendStamp((l = h.value) == null ? void 0 : l._id.toString(), {
|
|
79
81
|
memberId: n.value.memberId,
|
|
80
82
|
amount: n.value.amount,
|
|
81
83
|
ref: n.value.ref
|
|
@@ -93,11 +95,11 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
93
95
|
}), P(async () => {
|
|
94
96
|
await y("");
|
|
95
97
|
}), (a, t) => {
|
|
96
|
-
const
|
|
98
|
+
const l = i("FmCard"), s = i("FmSelect"), B = i("FmStepperField"), N = i("FmTextField"), E = i("FmForm"), x = i("FmButton"), R = i("FmSideSheet");
|
|
97
99
|
return $(), D(R, {
|
|
98
100
|
"max-width": 560,
|
|
99
101
|
"dismiss-away": !0,
|
|
100
|
-
header: e(
|
|
102
|
+
header: e(m)("connect.sendCollectionSheet.title", {
|
|
101
103
|
type: e(F)
|
|
102
104
|
}),
|
|
103
105
|
modelValue: e(r),
|
|
@@ -107,7 +109,7 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
107
109
|
]
|
|
108
110
|
}, {
|
|
109
111
|
"side-sheet-footer": S(() => [
|
|
110
|
-
|
|
112
|
+
b("div", W, [
|
|
111
113
|
c(x, {
|
|
112
114
|
label: "Send",
|
|
113
115
|
loading: e(q)().isLoading,
|
|
@@ -133,15 +135,15 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
133
135
|
blameFormChildOnValidationFailed: ""
|
|
134
136
|
}, {
|
|
135
137
|
default: S(() => [
|
|
136
|
-
c(
|
|
138
|
+
c(l, {
|
|
137
139
|
variant: "outlined",
|
|
138
140
|
class: "p-16"
|
|
139
141
|
}, {
|
|
140
142
|
default: S(() => {
|
|
141
143
|
var o;
|
|
142
144
|
return [
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
b("div", K, w(e(m)("connect.campaign.common.campaign")), 1),
|
|
146
|
+
b("div", Q, w((o = e(h)) == null ? void 0 : o.name), 1)
|
|
145
147
|
];
|
|
146
148
|
}),
|
|
147
149
|
_: 1
|
|
@@ -153,7 +155,7 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
153
155
|
}),
|
|
154
156
|
label: "Select member",
|
|
155
157
|
searchable: "",
|
|
156
|
-
items: e(
|
|
158
|
+
items: e(v),
|
|
157
159
|
onSearch: y,
|
|
158
160
|
rules: [(o) => !!o || "Member is required"],
|
|
159
161
|
"helper-text": "Type to search member",
|
|
@@ -184,5 +186,5 @@ const K = { class: "fm-typo-en-body-lg-600" }, Q = { class: "fm-typo-en-body-lg-
|
|
|
184
186
|
}
|
|
185
187
|
});
|
|
186
188
|
export {
|
|
187
|
-
|
|
189
|
+
Se as _
|
|
188
190
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { defineComponent as O, ref as p, computed as g, watch as T, onMounted as q, resolveComponent as x, openBlock as I, createBlock as G, unref as t, isRef as k, withCtx as z, createElementVNode as n, createVNode as s, toDisplayString as f, createElementBlock as H, createCommentVNode as K } from "vue";
|
|
2
2
|
import { J as Q } from "./JsonViewer-v8_C7l5N.js";
|
|
3
3
|
import { _ as F } from "./FmTableSelection.vue_vue_type_script_setup_true_lang-DzcUc0_w.js";
|
|
4
|
-
import { u as W } from "./loading-
|
|
4
|
+
import { u as W } from "./loading-BkJ3h_4U.js";
|
|
5
5
|
import { u as X } from "./app-wDQR6dpb.js";
|
|
6
|
-
import { l as Y } from "./lodash-
|
|
7
|
-
import { m as Z } from "./index-
|
|
8
|
-
import { c as ee } from "./index-
|
|
6
|
+
import { l as Y } from "./lodash-C0Kbs8lQ.js";
|
|
7
|
+
import { m as Z } from "./index-CLiJUFmJ.js";
|
|
8
|
+
import { c as ee } from "./index-C67-z1uf.js";
|
|
9
9
|
const ae = { class: "space-y-16" }, te = { class: "fm-typo-en-body-md-600" }, oe = { class: "flex items-center justify-end" }, le = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "basis-72 bg-white flex items-center justify-between px-24 pt-6 border-t border-fm-color-border"
|