@feedmepos/mf-connect 0.1.117-dev → 0.1.118-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-BpcsgH7K.js → App-BHcTqLff.js} +89 -97
- package/dist/{Bin-Cm0wjQeR.js → Bin-DWhXJmHo.js} +8 -8
- package/dist/{Broadcast-BoJaHqnO.js → Broadcast-Ct1DL8Pd.js} +21 -22
- package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
- package/dist/{Card-BfkMcFaG.js → Card-B7DwrAPH.js} +23 -23
- package/dist/{Collections-RXmxQbII.js → Collections-BJw4JJq_.js} +185 -197
- package/dist/{Credit-CsRPM1jv.js → Credit-BteIGXkp.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +3496 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +30 -30
- package/dist/{Experience-BC8Pj-v9.js → Experience-C_VQVfJX.js} +31 -32
- package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-CMiQUZQE.js} +1 -1
- package/dist/{Game-DJXNHFBs.js → Game-BiHMrMBF.js} +18 -19
- package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-DtJIm6oI.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
- package/dist/{Goals-DSZwKpds.js → Goals-B7VjLMDT.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
- package/dist/{Index-Cbi0bquE.js → Index-D_DIHKZG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
- package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
- package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-CfYgoXLS.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +3 -3
- package/dist/{Marketing-B7cZGsO-.js → Marketing-B6TCrwaR.js} +4 -4
- package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-Bu3a9NGj.js} +211 -214
- package/dist/{Member-BGTrRVdq.js → Member-X51KrYXV.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +48 -40
- package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-CHd9fx7E.js} +7 -7
- package/dist/{MemberList-EjY5dgwt.js → MemberList-D4L3bSlw.js} +105 -103
- package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CEgjfhnX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
- package/dist/{Mission-BFHYb4aT.js → Mission-BEVtvY0-.js} +21 -22
- package/dist/{Overview-d5U37aot.js → Overview-4QRkldza.js} +144 -145
- package/dist/{Overview-BVNyQxFL.js → Overview-DVoXXZ16.js} +21 -21
- package/dist/{Point-CXkqH02Z.js → Point-BJmebaL9.js} +21 -22
- package/dist/{Promotion-DdxNvlOO.js → Promotion-DWZZBofu.js} +131 -137
- package/dist/{Queue-C96oNKyP.js → Queue-DLdsyhCT.js} +46 -46
- package/dist/{Record-Bj2e2Y4i.js → Record-QOD3XELf.js} +9 -9
- package/dist/{Review-CJK5S1oI.js → Review-CKmhyuqj.js} +2 -2
- package/dist/ReviewFacebookCallback-C6DlaJ_j.js +238 -0
- package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
- package/dist/{Reward-Dh2YI0Xb.js → Reward-DftoZfPN.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +1884 -0
- package/dist/{Segment-FYvtCkqH.js → Segment-URdB0lnl.js} +307 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
- package/dist/{Setting-CUAWjCqa.js → Setting-BDIHH2Wk.js} +148 -159
- package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
- package/dist/Settings-9gaegvYJ.js +179 -0
- package/dist/{Store-BAXwiyvx.js → Store-CV0kYncl.js} +29 -29
- package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-30kSkAZ_.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +142 -0
- package/dist/{Tier-BmAOzRHL.js → Tier-DiQSC3iv.js} +688 -2576
- package/dist/{Title-DMxiUg30.js → Title-DixxpjAg.js} +95 -96
- package/dist/{Transaction-CF6hXEpN.js → Transaction-DQK4LUGD.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +26 -26
- package/dist/{Voucher-DrtITxq-.js → Voucher-CSVlk_Hr.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +12 -12
- package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-CQYbv2Ew.js} +66 -64
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js} +1 -1
- package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DdO9Bfvh.js} +324 -322
- package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-CjjWJGND.js} +11 -11
- package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-DYGx-kRr.js} +287 -288
- package/dist/{WhatsappLayout-DeQTPuF6.js → WhatsappLayout-B6k_79Kl.js} +3 -3
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
- package/dist/{app-BjdLqYQq.js → app-CqQeNnGq.js} +3382 -4110
- package/dist/app.js +3 -4
- package/dist/{base.export-B68z5BF6.js → base.export-Dls5LQeu.js} +2 -2
- package/dist/{business-D9fgkHxb.js → business-gvLSQklz.js} +1 -1
- package/dist/{campaign-Dw_ujovr.js → campaign-BqazvOUj.js} +94 -121
- package/dist/{campaign-eMaPX8r6.js → campaign-Cd6GmA4U.js} +25 -31
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-C0oMb1fs.js} +99 -99
- package/dist/{collection.fn-CCOWtB-c.js → collection.fn-CERMsFPh.js} +2 -2
- package/dist/{currency-CTLKReFC.js → currency-IkiKiNg1.js} +1 -1
- package/dist/{effect-CTI1ZH57.js → effect-j_T62HBN.js} +1 -1
- package/dist/{email-addresses-B74e3bnB.js → email-addresses-CN1kPlEj.js} +2 -2
- package/dist/{feature-flag-DVdEaChJ.js → feature-flag-DDfyOLsv.js} +88 -88
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-as9K-piK.js → helper-DVUe13eh.js} +1 -1
- package/dist/{index-BW7FoVEA.js → index-9RBtEPPj.js} +1 -1
- package/dist/{index-Czg-2Ni0.js → index-BmIfGArh.js} +3 -3
- package/dist/{index-DKI8401o.js → index-BvkqHehI.js} +7 -7
- package/dist/{index-B0h0iYWP.js → index-BvoOJdfc.js} +2 -2
- package/dist/{index-CWLOcQ6j.js → index-C-IajuP1.js} +9 -9
- package/dist/{index-3LjKJhQa.js → index-COuLtOaw.js} +1 -1
- package/dist/{index-QHqcSN2q.js → index-CPyK4a5J.js} +4 -4
- package/dist/{index-BbVbqe4Y.js → index-CWGbeg5X.js} +6 -19
- package/dist/{index-CHU3UePP.js → index-C_SaKemI.js} +1 -1
- package/dist/{index-BEKMTiFb.js → index-Cjy0SXCn.js} +197 -197
- package/dist/{index-C5V6u2Qd.js → index-DALsfLV7.js} +2613 -2699
- package/dist/{index-CQxkDpX0.js → index-DMiaWY0s.js} +581 -682
- package/dist/{index-B_wRpO02.js → index-D_1pnadB.js} +15 -29
- package/dist/{index-TAoQpeLQ.js → index-DzbVgUEP.js} +1 -1
- package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
- package/dist/{index-wsCCqwdr.js → index-UJHdDEG1.js} +2 -2
- package/dist/{index-DcZiikOH.js → index-ep_Kxxid.js} +2 -2
- package/dist/{index-BhTrG89b.js → index-fNYUguDQ.js} +232 -389
- package/dist/{index-Ba719MYq.js → index-jS16KX9p.js} +1 -1
- package/dist/{index-Ckz6u3ac.js → index-k7FFxt_M.js} +2 -2
- package/dist/{index-8mBfDn3M.js → index-lzQ6ehOk.js} +251 -608
- package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-vJKhLfdu.js} +177 -177
- package/dist/{loading-x6IScY4K.js → loading-jZV2Dm--.js} +1 -1
- package/dist/{lodash-nwnDizYo.js → lodash-C2pLek0l.js} +1 -1
- package/dist/{member-import-C-b01Tyd.js → member-import-BKI7soRD.js} +1 -1
- package/dist/{membership-DfarOMtO.js → membership-smdlFpPr.js} +2 -2
- package/dist/{money-CFn-jR4W.js → money-5XyTnYwW.js} +1 -1
- package/dist/{number-CSlyDL2x.js → number-DHU9qJJQ.js} +1 -1
- package/dist/objectid-jT5g6pGt.js +145 -0
- package/dist/{onboarding-DyaFaaF2.js → onboarding-C_5pyGx-.js} +25 -25
- package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
- package/dist/{plugins-DEHr0UOe.js → plugins-D1Ru-da5.js} +3 -3
- package/dist/{reward-Du_Pv-4p.js → reward-BqPl68Xk.js} +1 -1
- package/dist/{rule-DfqmQTVK.js → rule-WBrRXwL-.js} +492 -572
- package/dist/rule-builder-DAlSbaWh.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DDquG4Xc.js +236 -0
- package/dist/{timezone-_4tabIaK.js → timezone-O4qrCDcK.js} +1 -1
- package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-CY_F8Nb8.js} +2 -2
- package/dist/{trigger-Dipr6btC.js → trigger-D-vySeIB.js} +8 -8
- package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-kA6SLHy_.js} +4 -4
- package/dist/{usePagination-D6RZ18zS.js → usePagination-AYE_RJH2.js} +1 -1
- package/dist/{user-BCexQj3Q.js → user-DJcMkYXP.js} +1 -1
- package/dist/vue-i18n-kXHiDb_1.js +2365 -0
- package/dist/{xlsx-BTxt_Jg6.js → xlsx--s3hBdDk.js} +224 -224
- package/dist/{zod-T4wMYjWT.js → zod-IpHRbxaJ.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BNnUiVnD.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +0 -4442
- package/dist/Grab-DDc7e-AC.js +0 -301
- package/dist/ReviewFacebookCallback-ChG7TRy5.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +0 -1923
- package/dist/Settings-D2gFPvmW.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +0 -7007
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
- package/dist/duplicateCampaign-BcpBfUGL.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-zcT6ESET.js +0 -145
- package/dist/template-CcbNF4PF.js +0 -188
- package/dist/vue-i18n-DXvyTCZf.js +0 -2365
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { defineComponent as B, ref as O, onMounted as Q, computed as G, resolveComponent as x, openBlock as d, createElementBlock as b, renderSlot as W, toDisplayString as V, createCommentVNode as f, createBlock as u, unref as e, isRef as q, createVNode as
|
|
2
|
-
import { z as te,
|
|
3
|
-
import { Z as r } from "./zod-
|
|
4
|
-
import {
|
|
5
|
-
import { u as I } from "./vue-i18n-
|
|
6
|
-
import { s as
|
|
7
|
-
import { p as ne } from "./plugins-
|
|
1
|
+
import { defineComponent as B, ref as O, onMounted as Q, computed as G, resolveComponent as x, openBlock as d, createElementBlock as b, renderSlot as W, toDisplayString as V, createCommentVNode as f, createBlock as u, unref as e, isRef as q, createVNode as h, normalizeClass as Z, watch as X, withCtx as w, resolveDynamicComponent as P, Fragment as _, createElementVNode as k, createTextVNode as ee } from "vue";
|
|
2
|
+
import { z as te, f as le } from "./app-CqQeNnGq.js";
|
|
3
|
+
import { Z as r } from "./zod-IpHRbxaJ.js";
|
|
4
|
+
import { g as oe, f as ae } from "./index-DALsfLV7.js";
|
|
5
|
+
import { u as I } from "./vue-i18n-kXHiDb_1.js";
|
|
6
|
+
import { s as S } from "./effect-j_T62HBN.js";
|
|
7
|
+
import { p as ne } from "./plugins-D1Ru-da5.js";
|
|
8
8
|
const ie = { class: "flex flex-col gap-8" }, de = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "fm-typo-en-body-lg-600"
|
|
@@ -51,10 +51,10 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
51
51
|
});
|
|
52
52
|
const l = O(
|
|
53
53
|
i.type ? a.find((m) => m.value === i.type) : (U = i.modelValue) != null && U.validBefore || (A = i.modelValue) != null && A.validAfter ? a[0] : a[1]
|
|
54
|
-
),
|
|
54
|
+
), g = G(
|
|
55
55
|
() => i.forCredit ? oe : ae
|
|
56
56
|
), y = G(() => {
|
|
57
|
-
const m =
|
|
57
|
+
const m = g.value.safeParse(i.modelValue);
|
|
58
58
|
return m.success ? [] : m.error.errors;
|
|
59
59
|
});
|
|
60
60
|
function o(m) {
|
|
@@ -90,7 +90,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
90
90
|
items: a
|
|
91
91
|
}, null, 8, ["modelValue"])),
|
|
92
92
|
e(l).value === "range" ? (d(), b("div", se, [
|
|
93
|
-
|
|
93
|
+
h(Y, {
|
|
94
94
|
"model-value": {
|
|
95
95
|
startDate: (E = t.modelValue) != null && E.validAfter ? new Date(($ = t.modelValue) == null ? void 0 : $.validAfter).toISOString() : null,
|
|
96
96
|
endDate: (j = t.modelValue) != null && j.validAfter ? new Date(((M = t.modelValue) == null ? void 0 : M.validBefore) || "").toISOString() : null
|
|
@@ -143,7 +143,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
143
143
|
key: 3,
|
|
144
144
|
text: e(n)("connect.template.validity_option.expire_follow_first_receive")
|
|
145
145
|
}, null, 8, ["text"])) : f("", !0),
|
|
146
|
-
|
|
146
|
+
h(T, {
|
|
147
147
|
text: t.helperText || (((L = i.modelValue) == null ? void 0 : L.validForDay) === 0 ? e(n)("connect.template.validity_option.expires_on_same_day") : e(r).helperText(e(y), "")),
|
|
148
148
|
state: t.helperText ? "error" : ((z = i.modelValue) == null ? void 0 : z.validForDay) === 0 ? "warning" : e(r).helperState(e(y), "")
|
|
149
149
|
}, null, 8, ["text", "state"])
|
|
@@ -172,9 +172,9 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
172
172
|
setup(t, { emit: C }) {
|
|
173
173
|
const { t: n } = I(), i = t, v = C, a = O(i.modelValue ?? {});
|
|
174
174
|
return X(a, () => v("update:model-value", a.value)), (c, l) => {
|
|
175
|
-
const
|
|
175
|
+
const g = x("FmSwitch"), y = x("FmStepperField");
|
|
176
176
|
return d(), b("div", ue, [
|
|
177
|
-
t.isMission ? f("", !0) : (d(), u(
|
|
177
|
+
t.isMission ? f("", !0) : (d(), u(g, {
|
|
178
178
|
key: 0,
|
|
179
179
|
label: e(n)("connect.template.enable_transfer"),
|
|
180
180
|
"label-placement": "right",
|
|
@@ -185,14 +185,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
185
185
|
key: 1,
|
|
186
186
|
class: Z(["grid gap-16", t.isMission ? "" : "grid-cols-2"])
|
|
187
187
|
}, [
|
|
188
|
-
|
|
188
|
+
h(y, {
|
|
189
189
|
modelValue: e(a).maxPerUser,
|
|
190
190
|
"onUpdate:modelValue": l[1] || (l[1] = (o) => e(a).maxPerUser = o),
|
|
191
191
|
"show-steppers": !1,
|
|
192
192
|
rules: [e(r).ruleAtPath(t.schema, "maxPerUser")],
|
|
193
193
|
"helper-text": e(n)("connect.template.leave_empty_unlimited")
|
|
194
194
|
}, {
|
|
195
|
-
label:
|
|
195
|
+
label: w(() => [
|
|
196
196
|
(d(), u(P(
|
|
197
197
|
e(r).toInputLabel(
|
|
198
198
|
e(r).typeAtPath(t.schema, "maxPerUser"),
|
|
@@ -210,7 +210,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
210
210
|
rules: [e(r).ruleAtPath(t.schema, "maxReceive")],
|
|
211
211
|
"helper-text": e(n)("connect.template.leave_empty_unlimited")
|
|
212
212
|
}, {
|
|
213
|
-
label:
|
|
213
|
+
label: w(() => [
|
|
214
214
|
(d(), u(P(
|
|
215
215
|
e(r).toInputLabel(
|
|
216
216
|
e(r).typeAtPath(t.schema, "maxReceive"),
|
|
@@ -222,14 +222,14 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
222
222
|
}, 8, ["modelValue", "rules", "helper-text"]))
|
|
223
223
|
], 2)),
|
|
224
224
|
t.isMission ? f("", !0) : (d(), b(_, { key: 2 }, [
|
|
225
|
-
|
|
225
|
+
h(y, {
|
|
226
226
|
modelValue: e(a).maxUse,
|
|
227
227
|
"onUpdate:modelValue": l[3] || (l[3] = (o) => e(a).maxUse = o),
|
|
228
228
|
"append-text": "use(s)",
|
|
229
229
|
"show-steppers": !1,
|
|
230
230
|
rules: [e(r).ruleAtPath(t.schema, "maxUse")]
|
|
231
231
|
}, {
|
|
232
|
-
label:
|
|
232
|
+
label: w(() => [
|
|
233
233
|
(d(), u(P(
|
|
234
234
|
e(r).toInputLabel(
|
|
235
235
|
e(r).typeAtPath(t.schema, "maxUse"),
|
|
@@ -247,7 +247,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
247
247
|
"show-steppers": !1,
|
|
248
248
|
rules: [e(r).ruleAtPath(t.schema, "cooldown")]
|
|
249
249
|
}, {
|
|
250
|
-
label:
|
|
250
|
+
label: w(() => [
|
|
251
251
|
(d(), u(P(
|
|
252
252
|
e(r).toInputLabel(
|
|
253
253
|
e(r).typeAtPath(t.schema, "cooldown"),
|
|
@@ -257,7 +257,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
257
257
|
]),
|
|
258
258
|
_: 1
|
|
259
259
|
}, 8, ["modelValue", "rules"])) : f("", !0),
|
|
260
|
-
|
|
260
|
+
h(re, {
|
|
261
261
|
modelValue: e(a).validityOption,
|
|
262
262
|
"onUpdate:modelValue": l[5] || (l[5] = (o) => e(a).validityOption = o),
|
|
263
263
|
label: e(n)("connect.template.validity_option.title")
|
|
@@ -287,7 +287,7 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
287
287
|
c.stopPropagation(), await ne.remove(n("connect.effect.removeConfirm")) && i("update:model-value", null);
|
|
288
288
|
}
|
|
289
289
|
return (c, l) => {
|
|
290
|
-
const
|
|
290
|
+
const g = x("FmButton"), y = x("FmSideSheet");
|
|
291
291
|
return d(), u(y, {
|
|
292
292
|
"max-width": 550,
|
|
293
293
|
header: e(n)("connect.effect.title"),
|
|
@@ -297,24 +297,24 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
297
297
|
l[3] || (l[3] = (o) => v.value = o)
|
|
298
298
|
]
|
|
299
299
|
}, {
|
|
300
|
-
"side-sheet-button":
|
|
300
|
+
"side-sheet-button": w(() => {
|
|
301
301
|
var o, D, U, A, m, s;
|
|
302
302
|
return [
|
|
303
303
|
k("div", ce, [
|
|
304
304
|
k("div", pe, V(e(n)("connect.effect.description")), 1),
|
|
305
305
|
t.modelValue ? (d(), b("div", fe, [
|
|
306
306
|
k("div", ve, [
|
|
307
|
-
k("div", null, V((o = e(
|
|
308
|
-
k("div", ye, V((D = e(
|
|
309
|
-
(m = e(
|
|
307
|
+
k("div", null, V((o = e(S)(t.modelValue)) == null ? void 0 : o.type), 1),
|
|
308
|
+
k("div", ye, V((D = e(S)(t.modelValue)) == null ? void 0 : D.adjustment) + " " + V(e(n)("connect.effect.with")) + " " + V((U = e(S)(t.modelValue)) == null ? void 0 : U.requirements) + " " + V((A = e(S)(t.modelValue)) == null ? void 0 : A.maxCap), 1),
|
|
309
|
+
(m = e(S)(t.modelValue)) != null && m.posHint ? (d(), b("div", Ve, V((s = e(S)(t.modelValue)) == null ? void 0 : s.posHint), 1)) : f("", !0)
|
|
310
310
|
]),
|
|
311
|
-
|
|
311
|
+
h(g, {
|
|
312
312
|
icon: "delete",
|
|
313
313
|
"icon-color": "neutral-gray-400",
|
|
314
314
|
variant: "tertiary",
|
|
315
315
|
onClick: a
|
|
316
316
|
})
|
|
317
|
-
])) : (d(), u(
|
|
317
|
+
])) : (d(), u(g, {
|
|
318
318
|
key: 0,
|
|
319
319
|
label: e(n)("connect.effect.title"),
|
|
320
320
|
icon: "add",
|
|
@@ -325,11 +325,11 @@ const ie = { class: "flex flex-col gap-8" }, de = {
|
|
|
325
325
|
])
|
|
326
326
|
];
|
|
327
327
|
}),
|
|
328
|
-
"side-sheet-footer":
|
|
328
|
+
"side-sheet-footer": w(() => [...l[4] || (l[4] = [
|
|
329
329
|
ee(V(void 0), -1)
|
|
330
330
|
])]),
|
|
331
|
-
default:
|
|
332
|
-
|
|
331
|
+
default: w(() => [
|
|
332
|
+
h(e(le), {
|
|
333
333
|
class: "fm-effect-sheet",
|
|
334
334
|
title: "",
|
|
335
335
|
"can-set-auto-apply": t.canSetAutoApply,
|
|
@@ -1,32 +1,31 @@
|
|
|
1
1
|
import { defineComponent as q, ref as E, computed as G, onMounted as Y, resolveComponent as m, openBlock as d, createElementBlock as C, Fragment as v, createVNode as s, unref as o, createElementVNode as n, withCtx as b, renderList as z, createBlock as k, resolveDynamicComponent as J, toDisplayString as w, h as x } from "vue";
|
|
2
2
|
import { _ as Q } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as W, components as F } from "@feedmepos/ui-library";
|
|
4
|
-
import { p as Z } from "./plugins-
|
|
5
|
-
import { u as ee } from "./loading-
|
|
6
|
-
import { u as te } from "./business-
|
|
7
|
-
import { u as oe } from "./campaign-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import { u as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { _ as
|
|
13
|
-
import
|
|
14
|
-
import "./
|
|
15
|
-
import { u as me } from "./onboardingSetup-DQt91O9f.js";
|
|
4
|
+
import { p as Z } from "./plugins-D1Ru-da5.js";
|
|
5
|
+
import { u as ee } from "./loading-jZV2Dm--.js";
|
|
6
|
+
import { u as te } from "./business-gvLSQklz.js";
|
|
7
|
+
import { u as oe } from "./campaign-Cd6GmA4U.js";
|
|
8
|
+
import { a as B, b as N, g as ae } from "./campaign-BqazvOUj.js";
|
|
9
|
+
import { u as ne, c as re, p as ie } from "./template-DDquG4Xc.js";
|
|
10
|
+
import { u as se } from "./vue-i18n-kXHiDb_1.js";
|
|
11
|
+
import { _ as ce } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as le } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js";
|
|
13
|
+
import "./index-jS16KX9p.js";
|
|
14
|
+
import { u as me } from "./onboardingSetup-Bd1V-Ipy.js";
|
|
16
15
|
import { useRouter as pe } from "vue-router";
|
|
17
|
-
import { c as
|
|
18
|
-
import { R as ue } from "./app-
|
|
19
|
-
const de = { class: "px-24 flex flex-col gap-y-16" },
|
|
16
|
+
import { c as g } from "./index-ep_Kxxid.js";
|
|
17
|
+
import { R as ue } from "./app-CqQeNnGq.js";
|
|
18
|
+
const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-center justify-between w-full" }, fe = { class: "flex gap-8 overflow-x-auto" }, ye = { class: "space-y-8" }, _e = { class: "flex w-full gap-4 items-center" }, he = { class: "space-y-4" }, we = { class: "fm-typo-en-body-lg-600" }, xe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ce = { class: "flex items-center gap-8" }, ve = { class: "flex flex-col gap-16 text-center" }, be = { class: "fm-typo-en-title-sm-800" }, ke = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, je = /* @__PURE__ */ q({
|
|
20
19
|
__name: "Experience",
|
|
21
20
|
setup(Fe) {
|
|
22
|
-
const { t: r } =
|
|
21
|
+
const { t: r } = se(), T = pe(), V = {
|
|
23
22
|
label: r("connect.program.common.actions.create", {
|
|
24
23
|
type: r("connect.program.experience.title").toLowerCase()
|
|
25
24
|
}),
|
|
26
25
|
value: "create",
|
|
27
26
|
isPrimary: !0,
|
|
28
27
|
prependIcon: "add"
|
|
29
|
-
}, R =
|
|
28
|
+
}, R = ne("POINT", W()), A = te(), p = oe(), { global: O, minor: P } = ee, c = E({
|
|
30
29
|
searchKey: "",
|
|
31
30
|
location: []
|
|
32
31
|
});
|
|
@@ -37,7 +36,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
37
36
|
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
38
37
|
}) : e.targetLocation.includes(t);
|
|
39
38
|
}
|
|
40
|
-
const
|
|
39
|
+
const f = G(
|
|
41
40
|
() => p.campaigns.experience.filter((e) => $(e))
|
|
42
41
|
), D = [
|
|
43
42
|
{
|
|
@@ -91,7 +90,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
91
90
|
async function S(e) {
|
|
92
91
|
await Z.remove(`Are you sure you want to remove ${e.name}?`) && await P(
|
|
93
92
|
async () => {
|
|
94
|
-
await
|
|
93
|
+
await g.delete(e._id), await p.read("POINT");
|
|
95
94
|
},
|
|
96
95
|
{
|
|
97
96
|
message: `Removing ${e.name}`,
|
|
@@ -108,7 +107,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
108
107
|
(i = y.value) == null || i.showSheet(
|
|
109
108
|
!0,
|
|
110
109
|
"POINT",
|
|
111
|
-
e ? await
|
|
110
|
+
e ? await g.readById(e._id) : void 0,
|
|
112
111
|
l
|
|
113
112
|
);
|
|
114
113
|
}
|
|
@@ -121,9 +120,9 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
121
120
|
}
|
|
122
121
|
async function L(e) {
|
|
123
122
|
var i;
|
|
124
|
-
if (!await
|
|
123
|
+
if (!await re(e.name))
|
|
125
124
|
return;
|
|
126
|
-
const t = await
|
|
125
|
+
const t = await g.readById(e._id), l = ie(t, {
|
|
127
126
|
keepCollectible: !0
|
|
128
127
|
});
|
|
129
128
|
(i = y.value) == null || i.showSheet(
|
|
@@ -136,7 +135,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
136
135
|
async function K(e) {
|
|
137
136
|
await P(
|
|
138
137
|
async () => {
|
|
139
|
-
e.campaign._id ? await
|
|
138
|
+
e.campaign._id ? await g.update(e.campaign._id, e) : await g.create(e), await p.read("POINT");
|
|
140
139
|
},
|
|
141
140
|
{
|
|
142
141
|
message: r("connect.program.common.update.updating", {
|
|
@@ -160,7 +159,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
160
159
|
return d(), C(v, null, [
|
|
161
160
|
s(l, {
|
|
162
161
|
title: o(r)("connect.program.experience.title"),
|
|
163
|
-
actions: o(
|
|
162
|
+
actions: o(f).length > 0 ? [V] : [],
|
|
164
163
|
"onClick:action": t[0] || (t[0] = () => _())
|
|
165
164
|
}, null, 8, ["title", "actions"]),
|
|
166
165
|
n("div", de, [
|
|
@@ -172,9 +171,9 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
172
171
|
collapsible: ""
|
|
173
172
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
174
173
|
o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (d(), C(v, { key: 0 }, [
|
|
175
|
-
n("div",
|
|
176
|
-
n("div",
|
|
177
|
-
s(
|
|
174
|
+
n("div", ge, [
|
|
175
|
+
n("div", fe, [
|
|
176
|
+
s(ce, {
|
|
178
177
|
label: `${o(r)("connect.common.location")}: `,
|
|
179
178
|
"right-icon": "keyboard_arrow_down",
|
|
180
179
|
modelValue: o(c).location,
|
|
@@ -194,16 +193,16 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
194
193
|
]),
|
|
195
194
|
s(U, {
|
|
196
195
|
class: "xs:hidden sm:hidden",
|
|
197
|
-
"row-data": o(
|
|
196
|
+
"row-data": o(f),
|
|
198
197
|
"column-defs": D,
|
|
199
198
|
"search-value": o(c).searchKey,
|
|
200
199
|
"column-filter": [],
|
|
201
200
|
onRowClick: t[4] || (t[4] = (a) => _(a.original)),
|
|
202
|
-
"hide-footer": o(
|
|
201
|
+
"hide-footer": o(f).length < 10
|
|
203
202
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
204
203
|
s(H, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
205
204
|
default: b(() => [
|
|
206
|
-
(d(!0), C(v, null, z(o(
|
|
205
|
+
(d(!0), C(v, null, z(o(f).filter(
|
|
207
206
|
(a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
|
|
208
207
|
), (a) => (d(), k(j, {
|
|
209
208
|
key: a._id.toString(),
|
|
@@ -273,7 +272,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
273
272
|
]),
|
|
274
273
|
_: 1
|
|
275
274
|
})),
|
|
276
|
-
s(
|
|
275
|
+
s(le, {
|
|
277
276
|
ref_key: "sheetRef",
|
|
278
277
|
ref: y,
|
|
279
278
|
"onSubmit:modelValue": K
|
|
@@ -284,5 +283,5 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-
|
|
|
284
283
|
}
|
|
285
284
|
});
|
|
286
285
|
export {
|
|
287
|
-
|
|
286
|
+
je as default
|
|
288
287
|
};
|
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { defineComponent as J, ref as A, computed as Q, onMounted as X, resolveComponent as m, openBlock as f, createElementBlock as P, Fragment as R, createVNode as r, unref as o, withCtx as b, createElementVNode as n, toDisplayString as g, renderList as Z, createBlock as V, resolveDynamicComponent as ee, h as l } from "vue";
|
|
2
2
|
import { _ as te } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as oe, components as y } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as ae, p as ne } from "./plugins-
|
|
5
|
-
import { u as ie } from "./loading-
|
|
6
|
-
import { u as re } from "./business-
|
|
7
|
-
import { u as se } from "./campaign-
|
|
8
|
-
import {
|
|
9
|
-
import { c as ce, p as me } from "./
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import
|
|
15
|
-
import "./index-Ba719MYq.js";
|
|
4
|
+
import { c as ae, p as ne } from "./plugins-D1Ru-da5.js";
|
|
5
|
+
import { u as ie } from "./loading-jZV2Dm--.js";
|
|
6
|
+
import { u as re } from "./business-gvLSQklz.js";
|
|
7
|
+
import { u as se } from "./campaign-Cd6GmA4U.js";
|
|
8
|
+
import { a as T, b as U, g as le } from "./campaign-BqazvOUj.js";
|
|
9
|
+
import { c as ce, p as me, u as de } from "./template-DDquG4Xc.js";
|
|
10
|
+
import { _ as ue } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as pe } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js";
|
|
12
|
+
import { u as fe } from "./vue-i18n-kXHiDb_1.js";
|
|
13
|
+
import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js";
|
|
14
|
+
import "./index-jS16KX9p.js";
|
|
16
15
|
import { useRouter as ye } from "vue-router";
|
|
17
|
-
import { c as h } from "./index-
|
|
18
|
-
import { R as _e } from "./app-
|
|
19
|
-
const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Ce = { class: "px-24 flex flex-col gap-y-16" }, ve = { class: "flex items-center justify-between w-full" }, xe = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, Fe = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-8" }, Ve = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
16
|
+
import { c as h } from "./index-ep_Kxxid.js";
|
|
17
|
+
import { R as _e } from "./app-CqQeNnGq.js";
|
|
18
|
+
const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-600 fm-step-title line-clamp-2 mr-8" }, Ce = { class: "px-24 flex flex-col gap-y-16" }, ve = { class: "flex items-center justify-between w-full" }, xe = { class: "flex gap-8 overflow-x-auto" }, be = { class: "space-y-8" }, ke = { class: "flex w-full gap-4 items-center" }, Fe = { class: "space-y-4" }, Se = { class: "fm-typo-en-body-lg-600" }, Ae = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Pe = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Re = { class: "flex items-center gap-8" }, Ve = { class: "flex flex-col gap-16 text-center" }, Le = { class: "fm-typo-en-title-sm-800" }, Be = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Qe = /* @__PURE__ */ J({
|
|
20
19
|
__name: "Game",
|
|
21
20
|
setup(Ee) {
|
|
22
21
|
const { t: d } = fe(), D = ye(), I = {
|
|
@@ -26,7 +25,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
26
25
|
value: "create",
|
|
27
26
|
isPrimary: !0,
|
|
28
27
|
prependIcon: "add"
|
|
29
|
-
}, L = oe(), K =
|
|
28
|
+
}, L = oe(), K = de("GAME", L), w = re(), u = se(), { global: j, minor: B } = ie, c = A({
|
|
30
29
|
searchKey: "",
|
|
31
30
|
location: []
|
|
32
31
|
});
|
|
@@ -231,7 +230,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
231
230
|
o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), P(R, { key: 0 }, [
|
|
232
231
|
n("div", ve, [
|
|
233
232
|
n("div", xe, [
|
|
234
|
-
r(
|
|
233
|
+
r(ue, {
|
|
235
234
|
label: `${o(d)("connect.common.location")}: `,
|
|
236
235
|
"right-icon": "keyboard_arrow_down",
|
|
237
236
|
modelValue: o(c).location,
|
|
@@ -337,7 +336,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
337
336
|
]),
|
|
338
337
|
_: 1
|
|
339
338
|
})),
|
|
340
|
-
r(
|
|
339
|
+
r(pe, {
|
|
341
340
|
ref_key: "sheetRef",
|
|
342
341
|
ref: k,
|
|
343
342
|
"onSubmit:modelValue": H
|
|
@@ -352,5 +351,5 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
352
351
|
}
|
|
353
352
|
});
|
|
354
353
|
export {
|
|
355
|
-
|
|
354
|
+
Qe as default
|
|
356
355
|
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as rt, computed as p, ref as d, onMounted as ct, resolveComponent as x, openBlock as u, createElementBlock as m, unref as e, createBlock as J, createCommentVNode as g, createElementVNode as n, createVNode as r, toDisplayString as s, withCtx as P, isRef as b, Fragment as R, renderList as K, normalizeClass as Y, withDirectives as it, withKeys as dt, vModelText as ut, createTextVNode as de } from "vue";
|
|
2
|
-
import { u as mt } from "./loading-
|
|
2
|
+
import { u as mt } from "./loading-jZV2Dm--.js";
|
|
3
3
|
import { u as ft } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { n as M, f as L } from "./plugins-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { g as ue } from "./index-
|
|
7
|
-
import { c as pt } from "./index-
|
|
8
|
-
import { S as Fe } from "./index-
|
|
9
|
-
import { b as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-
|
|
4
|
+
import { n as M, f as L } from "./plugins-D1Ru-da5.js";
|
|
5
|
+
import "./index-jS16KX9p.js";
|
|
6
|
+
import { g as ue } from "./index-C_SaKemI.js";
|
|
7
|
+
import { c as pt } from "./index-ep_Kxxid.js";
|
|
8
|
+
import { S as Fe } from "./index-BvkqHehI.js";
|
|
9
|
+
import { b as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js";
|
|
10
10
|
import { J as gt } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as At } from "./vue-i18n-
|
|
11
|
+
import { u as Q, v as Te, w as yt, x as bt, y as _t, G as W, z as xt, A as Ct, B as ke, C as me, E as ht } from "./index-DMiaWY0s.js";
|
|
12
|
+
import { u as At } from "./vue-i18n-kXHiDb_1.js";
|
|
13
13
|
import { useRouter as Dt, useRoute as Et } from "vue-router";
|
|
14
|
-
import { R as Mt } from "./app-
|
|
15
|
-
var
|
|
16
|
-
const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start gap-12 py-24" }, kt = { class: "flex flex-col gap-4" },
|
|
14
|
+
import { R as Mt } from "./app-CqQeNnGq.js";
|
|
15
|
+
var we = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "member.feedme.cc", crmUrl: "crm.feedme.cc", paymentPortalUrl: "https://portal.feedme.cc/payment/payout-account", licensePortalUrl: "https://license.feedme.cc/", marketingV1Portal: "https://marketing-v1.feedme.cc", voucherAppUrl: "https://voucher.feedme.cc/" };
|
|
16
|
+
const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start gap-12 py-24" }, kt = { class: "flex flex-col gap-4" }, wt = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, St = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Nt = { class: "flex flex-col gap-16 max-w-[860px]" }, Ut = { class: "flex gap-12" }, Vt = { class: "flex flex-col gap-4" }, It = { class: "fm-typo-en-body-lg-600" }, Pt = { class: "flex gap-12" }, Rt = { class: "flex flex-col gap-4" }, Lt = { class: "fm-typo-en-body-lg-600" }, Gt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ht = { class: "flex flex-wrap items-start gap-12" }, $t = ["src"], Ot = ["aria-label", "title", "onClick"], Xt = { class: "absolute bottom-4 left-4 px-8 py-2 rounded-sm bg-fm-color-neutral-white fm-typo-en-body-sm-600" }, Bt = { class: "flex gap-12" }, zt = { class: "flex flex-col gap-4" }, jt = { class: "fm-typo-en-body-lg-600" }, Jt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Kt = { class: "flex flex-col gap-8" }, Wt = ["onClick"], Zt = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "w-[9px] h-[9px] rounded-full bg-fm-color-primary"
|
|
19
19
|
}, qt = { class: "flex-1" }, Yt = { class: "block fm-typo-en-body-md-600" }, Qt = { class: "block fm-typo-en-body-md-400 text-fm-color-typo-secondary mt-2" }, eo = {
|
|
@@ -31,10 +31,10 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
31
31
|
}, Eo = {
|
|
32
32
|
key: 1,
|
|
33
33
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-error"
|
|
34
|
-
}, Mo = { class: "flex gap-12" }, Fo = { class: "flex flex-col gap-4" }, To = { class: "fm-typo-en-body-lg-600" }, ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
34
|
+
}, Mo = { class: "flex gap-12" }, Fo = { class: "flex flex-col gap-4" }, To = { class: "fm-typo-en-body-lg-600" }, ko = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, wo = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "flex items-start gap-12 p-16 rounded-md bg-fm-color-system-info-100"
|
|
37
|
-
},
|
|
37
|
+
}, So = { class: "flex-1 fm-typo-en-body-md-400 text-fm-color-typo-primary" }, No = { class: "flex items-center gap-12" }, Uo = { class: "fm-typo-en-body-md-500" }, Vo = { class: "flex flex-col gap-8" }, Io = { class: "fm-typo-en-body-md-600" }, Po = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ro = { class: "flex flex-col gap-16 rounded-md border-1 border-fm-color-neutral-gray-300 p-16" }, Lo = {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary"
|
|
40
40
|
}, Go = {
|
|
@@ -52,12 +52,12 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
52
52
|
}, qo = { class: "w-40 h-40 rounded-sm flex-none grid place-items-center bg-fm-color-neutral-gray-100" }, Yo = { class: "flex-1 min-w-0" }, Qo = ["href"], en = {
|
|
53
53
|
key: 0,
|
|
54
54
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
55
|
-
}, tn = { class: "flex items-center justify-end gap-8 pt-8" },
|
|
55
|
+
}, tn = { class: "flex items-center justify-end gap-8 pt-8" }, Se = 5e6, on = 5e6, _n = /* @__PURE__ */ rt({
|
|
56
56
|
__name: "GiftCardSetup",
|
|
57
57
|
setup(nn) {
|
|
58
58
|
const { t: l } = At(), { global: Ne, minor: ee } = mt, Ue = Dt(), Ve = Et(), G = p(() => Ve.params.id || null), H = p(() => !!G.value), F = d(""), h = d([]);
|
|
59
59
|
let fe = /* @__PURE__ */ new Set();
|
|
60
|
-
const pe = /* @__PURE__ */ new Set(), Ie = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/gif"]), A = d("DEFAULT"), $ = d(16), T = d(Q().charset), O = d("GC"), X = d(""), ve = d(0), ge = [10, 20, 30, 50, 100], f = d([]), k = d(""), D = d(!1),
|
|
60
|
+
const pe = /* @__PURE__ */ new Set(), Ie = /* @__PURE__ */ new Set(["image/png", "image/jpeg", "image/gif"]), A = d("DEFAULT"), $ = d(16), T = d(Q().charset), O = d("GC"), X = d(""), ve = d(0), ge = [10, 20, 30, 50, 100], f = d([]), k = d(""), D = d(!1), w = d(10), S = d(100), ye = d(!1), B = d(!0), be = `https://${Fe.getBusinessId()}.${we.appUrl}/member/gift-cards`, N = d(
|
|
61
61
|
Te(be)
|
|
62
62
|
), E = d("SMS"), v = d(["SMS"]), te = d({
|
|
63
63
|
SMS: !0,
|
|
@@ -90,7 +90,7 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
90
90
|
}
|
|
91
91
|
}, _e = p(
|
|
92
92
|
() => Z.value.filter((t) => !t.available).map((t) => t.label)
|
|
93
|
-
), Re = `${
|
|
93
|
+
), Re = `${we.licensePortalUrl}settings?businessId=${Fe.businessId}`;
|
|
94
94
|
function Le(t) {
|
|
95
95
|
if (!(!te.value[t] && !v.value.includes(t)) && (v.value = v.value.includes(t) ? v.value.filter((o) => o !== t) : [...v.value, t], !v.value.includes(E.value))) {
|
|
96
96
|
const o = v.value[0];
|
|
@@ -177,7 +177,7 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
177
177
|
}
|
|
178
178
|
f.value = [...f.value, t].sort((o, c) => o - c), k.value = "";
|
|
179
179
|
}
|
|
180
|
-
const ae = p(() => f.value.length === 0 && !D.value ? l("connect.store.giftCard.errorNoAmount") : D.value && Number(
|
|
180
|
+
const ae = p(() => f.value.length === 0 && !D.value ? l("connect.store.giftCard.errorNoAmount") : D.value && Number(w.value) > Number(S.value) ? l("connect.store.giftCard.errorRange") : null), Je = p(
|
|
181
181
|
() => F.value.trim() ? null : l("connect.store.giftCard.errorNoName")
|
|
182
182
|
), se = p(
|
|
183
183
|
() => v.value.length ? null : l("connect.store.giftCard.errorNoChannel")
|
|
@@ -213,7 +213,7 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
213
213
|
);
|
|
214
214
|
}
|
|
215
215
|
function Ze(t) {
|
|
216
|
-
const o = Ie.has(t.type) && t.size <=
|
|
216
|
+
const o = Ie.has(t.type) && t.size <= Se;
|
|
217
217
|
return o || M.error(l("connect.store.giftCard.invalidDesignFile")), o;
|
|
218
218
|
}
|
|
219
219
|
async function qe(t) {
|
|
@@ -266,8 +266,8 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
266
266
|
denominations: f.value.map(Number),
|
|
267
267
|
anyAmount: D.value ? {
|
|
268
268
|
enabled: !0,
|
|
269
|
-
min: Number(
|
|
270
|
-
max: Number(
|
|
269
|
+
min: Number(w.value),
|
|
270
|
+
max: Number(S.value)
|
|
271
271
|
} : null,
|
|
272
272
|
channels: v.value,
|
|
273
273
|
allowPersonalMessage: B.value,
|
|
@@ -278,7 +278,7 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
278
278
|
}
|
|
279
279
|
function ot(t) {
|
|
280
280
|
var y, C, I, q;
|
|
281
|
-
F.value = t.name, h.value = [...t.designs ?? []], fe = new Set(h.value), f.value = [...t.denominations ?? []], D.value = !!((y = t.anyAmount) != null && y.enabled),
|
|
281
|
+
F.value = t.name, h.value = [...t.designs ?? []], fe = new Set(h.value), f.value = [...t.denominations ?? []], D.value = !!((y = t.anyAmount) != null && y.enabled), w.value = ((C = t.anyAmount) == null ? void 0 : C.min) ?? 10, S.value = ((I = t.anyAmount) == null ? void 0 : I.max) ?? 100, v.value = (q = t.channels) != null && q.length ? [...t.channels] : ["SMS"], B.value = t.allowPersonalMessage ?? !0, N.value = structuredClone(
|
|
282
282
|
t.deliveryMessages ?? Te(be)
|
|
283
283
|
), E.value = v.value[0] ?? "SMS";
|
|
284
284
|
const o = t.numberFormat, c = !o || o.prefix === "GC" && Number(o.length) === 16;
|
|
@@ -323,8 +323,8 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
323
323
|
onClick: ie
|
|
324
324
|
}),
|
|
325
325
|
n("div", kt, [
|
|
326
|
-
n("h1",
|
|
327
|
-
n("p",
|
|
326
|
+
n("h1", wt, s(e(H) ? e(l)("connect.store.giftCard.editTitle") : e(l)("connect.store.giftCard.createTitle")), 1),
|
|
327
|
+
n("p", St, s(e(l)("connect.store.giftCard.pageSubtitle")), 1)
|
|
328
328
|
])
|
|
329
329
|
]),
|
|
330
330
|
n("div", Nt, [
|
|
@@ -385,7 +385,7 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
385
385
|
]))), 128)),
|
|
386
386
|
r(q, {
|
|
387
387
|
accept: ".png, .jpg, .jpeg, .gif",
|
|
388
|
-
"max-file-size":
|
|
388
|
+
"max-file-size": Se,
|
|
389
389
|
"content-class": "w-[179px] h-[115px]",
|
|
390
390
|
onFileUpload: Ke
|
|
391
391
|
})
|
|
@@ -543,15 +543,15 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
543
543
|
]),
|
|
544
544
|
e(D) ? (u(), m("div", Do, [
|
|
545
545
|
r(y, {
|
|
546
|
-
modelValue: e(
|
|
547
|
-
"onUpdate:modelValue": o[8] || (o[8] = (a) => b(
|
|
546
|
+
modelValue: e(w),
|
|
547
|
+
"onUpdate:modelValue": o[8] || (o[8] = (a) => b(w) ? w.value = a : null),
|
|
548
548
|
type: "number",
|
|
549
549
|
label: e(l)("connect.store.giftCard.min"),
|
|
550
550
|
class: "flex-1"
|
|
551
551
|
}, null, 8, ["modelValue", "label"]),
|
|
552
552
|
r(y, {
|
|
553
|
-
modelValue: e(
|
|
554
|
-
"onUpdate:modelValue": o[9] || (o[9] = (a) => b(
|
|
553
|
+
modelValue: e(S),
|
|
554
|
+
"onUpdate:modelValue": o[9] || (o[9] = (a) => b(S) ? S.value = a : null),
|
|
555
555
|
type: "number",
|
|
556
556
|
label: e(l)("connect.store.giftCard.max"),
|
|
557
557
|
"helper-text": `Up to RM${e(me)}`,
|
|
@@ -576,12 +576,12 @@ const Ft = { class: "relative px-24 pb-40" }, Tt = { class: "flex items-start ga
|
|
|
576
576
|
n("div", ko, s(e(l)("connect.store.giftCard.sendingHint")), 1)
|
|
577
577
|
])
|
|
578
578
|
]),
|
|
579
|
-
e(ye) ? g("", !0) : (u(), m("div",
|
|
579
|
+
e(ye) ? g("", !0) : (u(), m("div", wo, [
|
|
580
580
|
r(I, {
|
|
581
581
|
name: "info",
|
|
582
582
|
class: "text-fm-color-system-info-400 flex-none"
|
|
583
583
|
}),
|
|
584
|
-
n("div",
|
|
584
|
+
n("div", So, s(e(l)("connect.store.giftCard.broadcastNotice")), 1),
|
|
585
585
|
r(c, {
|
|
586
586
|
icon: "close",
|
|
587
587
|
variant: "tertiary",
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { defineComponent as A, resolveComponent as k, openBlock as o, createBlock as p, withCtx as w, createElementVNode as c, unref as t, createVNode as x, ref as ee, computed as I, toDisplayString as h, createElementBlock as r, Fragment as L, renderList as T, createCommentVNode as f, normalizeClass as me, isRef as pe } from "vue";
|
|
2
|
-
import { u as K } from "./vue-i18n-
|
|
2
|
+
import { u as K } from "./vue-i18n-kXHiDb_1.js";
|
|
3
3
|
import { useRouter as be } from "vue-router";
|
|
4
|
-
import { S as fe } from "./index-
|
|
5
|
-
import "./index-
|
|
6
|
-
import { n as te } from "./plugins-
|
|
7
|
-
import { u as ne } from "./business-
|
|
8
|
-
import { u as U, e as ye, i as ge, p as _e, g as oe, o as ve, d as xe, c as he } from "./onboarding-
|
|
9
|
-
import { R as Z } from "./app-
|
|
4
|
+
import { S as fe } from "./index-BvkqHehI.js";
|
|
5
|
+
import "./index-jS16KX9p.js";
|
|
6
|
+
import { n as te } from "./plugins-D1Ru-da5.js";
|
|
7
|
+
import { u as ne } from "./business-gvLSQklz.js";
|
|
8
|
+
import { u as U, e as ye, i as ge, p as _e, g as oe, o as ve, d as xe, c as he } from "./onboarding-C_5pyGx-.js";
|
|
9
|
+
import { R as Z } from "./app-CqQeNnGq.js";
|
|
10
10
|
const ke = ["aria-label"], M = /* @__PURE__ */ A({
|
|
11
11
|
__name: "SectionChip",
|
|
12
12
|
props: {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent as ee, ref as P, computed as u, onMounted as te, onBeforeUnmount as oe, resolveComponent as g, openBlock as n, createElementBlock as s, Fragment as h, createVNode as p, unref as e, createElementVNode as a, toDisplayString as i, createBlock as y, createCommentVNode as f, renderList as L, withCtx as H } from "vue";
|
|
2
2
|
import { h as ne } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { u as ae } from "./vue-i18n-
|
|
3
|
+
import { u as ae } from "./vue-i18n-kXHiDb_1.js";
|
|
4
4
|
import { useRouter as le } from "vue-router";
|
|
5
|
-
import { n as se } from "./plugins-
|
|
6
|
-
import { u as ie, h as ce, p as re, b as de, r as me, d as ue, c as pe } from "./onboarding-
|
|
7
|
-
import { _ as fe, a as ve } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-
|
|
5
|
+
import { n as se } from "./plugins-D1Ru-da5.js";
|
|
6
|
+
import { u as ie, h as ce, p as re, b as de, r as me, d as ue, c as pe } from "./onboarding-C_5pyGx-.js";
|
|
7
|
+
import { _ as fe, a as ve } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js";
|
|
8
8
|
const ye = { class: "px-24 pb-24 flex flex-col gap-24" }, _e = {
|
|
9
9
|
key: 0,
|
|
10
10
|
class: "flex justify-center py-40"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { openBlock as l, createElementBlock as o, createElementVNode as r, defineComponent as $, ref as b, onMounted as I, resolveComponent as f, renderSlot as x, toDisplayString as s, createCommentVNode as h, normalizeStyle as V, unref as i, Fragment as w, createVNode as F, withCtx as g, createTextVNode as p, normalizeClass as z, createBlock as k } from "vue";
|
|
2
|
-
import { u as R } from "./vue-i18n-
|
|
2
|
+
import { u as R } from "./vue-i18n-kXHiDb_1.js";
|
|
3
3
|
import { _ as H } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
4
4
|
const N = {}, D = { class: "animate-pulse flex space-x-4 bg-gray-300 dark:bg-gray-700 items-center justify-center rounded w-full h-full" };
|
|
5
5
|
function L(e, d) {
|