@feedmepos/mf-connect 0.1.119-prod → 0.1.121-dev
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-BN2LKM3u.js → App-DwtaLO6F.js} +147 -135
- package/dist/AuditLogs-s572aHLw.js +2016 -0
- package/dist/{Bin-DpQ1atb7.js → Bin-BBaVggZI.js} +8 -8
- package/dist/{Broadcast-c1ZyYClI.js → Broadcast-CqAQ3EmE.js} +22 -21
- package/dist/{CampaignAnalytic-w1hIlc2r.js → CampaignAnalytic-34bfP8iY.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-D7U6evm1.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BvAAxE3a.js} +8 -9
- package/dist/{Card-De53Xgbe.js → Card-8hlnKnhk.js} +22 -22
- package/dist/{Collections-BL2RD3FU.js → Collections-BJ0-UjKf.js} +197 -185
- package/dist/{Credit-2KvFFcwR.js → Credit-DJNc__yp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CKSs2nYE.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BvilcyyB.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Jy7HkK5Z.js → EffectSheet.vue_vue_type_style_index_0_lang-DFzVuuEy.js} +30 -30
- package/dist/{Experience-Cb0jHtVo.js → Experience-D-cUhjWc.js} +32 -31
- package/dist/{FileSaver.min-UDgZF_Cv.js → FileSaver.min-DKYYse6A.js} +1 -1
- package/dist/{Game-BnysxSMs.js → Game-DdFV90Kp.js} +19 -18
- package/dist/{GiftCardSetup-s1OR6xQq.js → GiftCardSetup-Dz0AN159.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-D108r20x.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.js} +7 -7
- package/dist/{Goals-BAieLPzR.js → Goals-Dg_kAezl.js} +4 -4
- package/dist/Grab-BSQt4deB.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-B9Jgq5Bp.js → ImageInput.vue_vue_type_script_setup_true_lang-B_H1Bgy1.js} +1 -1
- package/dist/{Index-DnX16GAE.js → Index-ZSup3I7J.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DeM-WG6m.js → LocationPicker.vue_vue_type_script_setup_true_lang-DisF-jcd.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BAN69FOS.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BHhjZOYi.js} +1 -1
- package/dist/{LoyaltyDashboard-D8g6OSbC.js → LoyaltyDashboard-D8BhHsaw.js} +15 -15
- package/dist/{MainLayout-DWABjpQn.js → MainLayout-BBnhRxyR.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COp7iulq.js → MainLayout.vue_vue_type_script_setup_true_lang-DFrPlj5u.js} +16 -16
- package/dist/{Marketing-Dagatr0y.js → Marketing-5F9LLn91.js} +4 -4
- package/dist/{MarketingMaterialEdit-DYVzNDpM.js → MarketingMaterialEdit-C7dD4Bzw.js} +214 -211
- package/dist/{Member-DAxdEF_Z.js → Member-Dk4JeGru.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-nBg7Hckj.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-ISolD_Qg.js} +39 -47
- package/dist/{MemberImportHistory-2gx6FnLh.js → MemberImportHistory-C0Ep8L2q.js} +7 -7
- package/dist/{MemberList-By_gGl-J.js → MemberList-BsuPfBgk.js} +103 -105
- package/dist/{MemberTransactions-BEF-4ZNp.js → MemberTransactions-mZ3fHw5O.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Bs8wKx9B.js → MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DN3mWfKj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-caED3JRW.js} +1 -1
- package/dist/{Mission-jg15lBxo.js → Mission-C7DqUOJz.js} +22 -21
- package/dist/{Overview-C7WfdzfV.js → Overview-U201nBVO.js} +20 -20
- package/dist/{Overview-BFKLTAk1.js → Overview-VABLg36G.js} +145 -144
- package/dist/{Point-dv9WgWTQ.js → Point-DU6Ndv35.js} +22 -21
- package/dist/{Promotion-mFPF_8jO.js → Promotion-9UhZXNPb.js} +137 -131
- package/dist/{Queue-BQoR_M5H.js → Queue-CUxMedbd.js} +45 -45
- package/dist/{Record-1JZ1N5iX.js → Record-BIftCQzV.js} +9 -9
- package/dist/{Review-B52AxCeT.js → Review-lyVgTfsP.js} +2 -2
- package/dist/ReviewFacebookCallback-Da5G19bE.js +225 -0
- package/dist/{ReviewGoogleCallback-DO6SVFIC.js → ReviewGoogleCallback-B41PXfsj.js} +5 -5
- package/dist/{Reward-Cp4jPAB0.js → Reward-BMun_Rs4.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DLD6X13Z.js → RewardGroup.vue_vue_type_script_setup_true_lang-3TONrUQu.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHzFgr4h.js +1923 -0
- package/dist/{Segment-DaKw0YXF.js → Segment-1VS7ycXi.js} +303 -306
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bj3OQ_JJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-B1Otak97.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CXY9Wyk9.js} +4 -4
- package/dist/{Setting-DveUrt8J.js → Setting-BdtzvKjt.js} +159 -148
- package/dist/{SettingAdvertisements-QRXOMNnM.js → SettingAdvertisements-BO2l3HBT.js} +12 -12
- package/dist/Settings-CvYawDU5.js +286 -0
- package/dist/{Store-DjdXRw3V.js → Store-DWQz-MgY.js} +28 -28
- package/dist/{StoreRewards-CjlGrc9E.js → StoreRewards-Bfwuqxf-.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CBwmDKAw.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CHzFjo24.js +7007 -0
- package/dist/{Tier-D74Oh2np.js → Tier-CKn-l-wY.js} +2575 -687
- package/dist/{Title-CeeviOW8.js → Title-BXDk69uL.js} +95 -94
- package/dist/{Transaction-CWdw0ITl.js → Transaction-D4HQO4i9.js} +2 -2
- package/dist/Upselling-CikWzKq7.js +1032 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-B9nf-9s0.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-um124o4t.js} +26 -26
- package/dist/{Voucher-C0nNXMtv.js → Voucher-BGIyw4jq.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-DxZLsQq9.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BKyZj5SP.js} +12 -12
- package/dist/{WhatsappAccount-CoLSjCQ2.js → WhatsappAccount-Cd82g_xj.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DkHPlGgT.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DWy8kS66.js} +1 -1
- package/dist/{WhatsappBot-kLb3kUav.js → WhatsappBot-auQhO8zk.js} +6 -6
- package/dist/{WhatsappBotLogs-jcYaHs0t.js → WhatsappBotLogs-CWuJzK9W.js} +6 -6
- package/dist/{WhatsappBotSettings-B6jJD61h.js → WhatsappBotSettings-B8KXMpIF.js} +4 -4
- package/dist/{WhatsappLayout-C24bIjI2.js → WhatsappLayout-DxooAkkL.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-9a_grP76.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CYHmgQ2v.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-i8Wc2mCr.js → ZodTextField.vue_vue_type_script_setup_true_lang-DilxQM_z.js} +2 -2
- package/dist/{app-C06bAZj3.js → app-BG-zK89d.js} +4181 -3401
- package/dist/app.js +4 -3
- package/dist/{base.export-CgNRhKu8.js → base.export-BcMuREGH.js} +2 -2
- package/dist/{business-D23Dt1x4.js → business-9_NOI2V9.js} +1 -1
- package/dist/{campaign-FVcbXtrP.js → campaign-8y_9SvKP.js} +34 -28
- package/dist/{campaign-DfEvGigm.js → campaign-DjBTRZyA.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-COkPH1QE.js +776 -0
- package/dist/{collection.fn-DC1AMI9o.js → collection.fn-yXurU9iv.js} +2 -2
- package/dist/{currency-Bra2RJK4.js → currency-YzyBFtDU.js} +1 -1
- package/dist/duplicateCampaign-dRWioann.js +51 -0
- package/dist/{effect-EL4V3pAu.js → effect-bMGarJZ6.js} +1 -1
- package/dist/{email-addresses-Ddtf1x_y.js → email-addresses-Ciu83j_3.js} +2 -2
- package/dist/{feature-flag-umACX47C.js → feature-flag-H5D1Cob5.js} +70 -70
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-DqDOnLCf.js → helper-BH9HMikb.js} +1 -1
- package/dist/{index-CEh6ryp2.js → index-B7-Uvnfn.js} +19 -6
- package/dist/{index-DuCJtx1m.js → index-BHO82_Ix.js} +1 -1
- package/dist/{index-B_BmgKrh.js → index-BaTnDV-T.js} +2699 -2613
- package/dist/{index-C3hAzzS2.js → index-BvKJM3M2.js} +29 -15
- package/dist/{index-rcfcslIC.js → index-BxwJfT08.js} +197 -197
- package/dist/{index-C6p9Lsvf.js → index-CH-KHkm5.js} +1 -1
- package/dist/{index-B2lqC_hH.js → index-CIOidYvo.js} +1 -1
- package/dist/{index-BzwwXWpZ.js → index-CJAFz9Nn.js} +1 -1
- package/dist/{index-ByVPdKdB.js → index-CooParq-.js} +682 -581
- package/dist/{index-pfmx-Gor.js → index-Cyf05z_2.js} +2 -2
- package/dist/{index-Bvk61_w_.js → index-DYu7ZdQt.js} +1 -1
- package/dist/{index-B3U3KZl0.js → index-DbxiG50D.js} +2 -2
- package/dist/{index-BkKu2G2c.js → index-DkMy7WpU.js} +2 -2
- package/dist/{index-LjoAs_nX.js → index-DpkoCl4z.js} +10 -10
- package/dist/{index-C3lk4GHF.js → index-MWNnMT2T.js} +4 -4
- package/dist/{index-DK9zxpDu.js → index-RvJ5cq__.js} +3 -3
- package/dist/{index-iVbjwKxc.js → index-Ye3qFt34.js} +10 -10
- package/dist/{index-BTjhdlN_.js → index-_giqGuYM.js} +1 -1
- package/dist/{index-TDCPGtW3.js → index-pnM5q4c_.js} +389 -232
- package/dist/{index-BroF2fC8.js → index-taPHgOqE.js} +608 -251
- package/dist/{index.esm2017-DCuQPCX2.js → index.esm2017-CLxZor1Y.js} +111 -111
- package/dist/{loading-CQm1DKWE.js → loading-CsOSUWBd.js} +1 -1
- package/dist/{lodash-C2wVbAap.js → lodash-CshibTzh.js} +1 -1
- package/dist/{member-import-BLEmTRso.js → member-import-BdaGAjjt.js} +1 -1
- package/dist/{membership-XycnxPEW.js → membership-C5JWO1FM.js} +2 -2
- package/dist/{money-DY_QGzd1.js → money-Blt5EM43.js} +1 -1
- package/dist/{number-BHthf4qF.js → number-COm3MiH8.js} +1 -1
- package/dist/objectid-DQTx3-ee.js +145 -0
- package/dist/{onboarding-BOJw54Fn.js → onboarding-BbQDJOOS.js} +36 -36
- package/dist/{onboardingSetup-Cf2u1tXu.js → onboardingSetup-BLISY52M.js} +2 -2
- package/dist/{plugins-DKQeoL_e.js → plugins-De_chCYU.js} +3 -3
- package/dist/{reward-D4RIYSpl.js → reward-Dl8Zoxe_.js} +1 -1
- package/dist/{rule-Ba-s0L_w.js → rule-D6_iss3O.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-Cw6j1cLX.js +224 -0
- package/dist/{timezone-CAc8xi1h.js → timezone-CA5FwOyy.js} +1 -1
- package/dist/{transaction.fn-Cp2hnhyU.js → transaction.fn-DI_NeGQb.js} +2 -2
- package/dist/{trigger-3ebhNBX7.js → trigger-CuymoMM-.js} +9 -9
- package/dist/{useMarketingMaterialActions-6URv8neP.js → useMarketingMaterialActions-Bz0Kgvgd.js} +4 -4
- package/dist/{usePagination-C-fyMmiy.js → usePagination-yb1rupwa.js} +1 -1
- package/dist/{user-T-iXTrYV.js → user-QSKyFaMI.js} +1 -1
- package/dist/vue-i18n-B_qtODCw.js +2365 -0
- package/dist/{xlsx-B8OqaJfb.js → xlsx--RjkGa9A.js} +224 -224
- package/dist/{zod-DZkNj425.js → zod-CmPMd-h0.js} +1 -1
- package/package.json +8 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BXb7v7wc.js +0 -3493
- package/dist/ReviewFacebookCallback-ihTdiI8V.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-pdHRjCt8.js +0 -1884
- package/dist/Settings-D9D-mkBa.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DnwMpqzf.js +0 -1265
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-I5-5BV4h.js +0 -142
- package/dist/campaign.fn-0MNUj1fZ.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-CPCAqIiC.js +0 -145
- package/dist/rule-builder-D0B0DPao.js +0 -102
- package/dist/template-B40I16Yg.js +0 -236
- package/dist/vue-i18n-DzsxJorb.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 w, normalizeClass as Z, watch as X, withCtx as h, resolveDynamicComponent as P, Fragment as _, createElementVNode as k, createTextVNode as ee } from "vue";
|
|
2
|
+
import { z as te, h as le } from "./app-BG-zK89d.js";
|
|
3
|
+
import { Z as r } from "./zod-CmPMd-h0.js";
|
|
4
|
+
import { j as oe, i as ae } from "./index-BaTnDV-T.js";
|
|
5
|
+
import { u as I } from "./vue-i18n-B_qtODCw.js";
|
|
6
|
+
import { s as g } from "./effect-bMGarJZ6.js";
|
|
7
|
+
import { p as ne } from "./plugins-De_chCYU.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
|
+
), S = G(
|
|
55
55
|
() => i.forCredit ? oe : ae
|
|
56
56
|
), y = G(() => {
|
|
57
|
-
const m =
|
|
57
|
+
const m = S.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
|
+
w(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
|
+
w(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 S = 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(S, {
|
|
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
|
+
w(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: h(() => [
|
|
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: h(() => [
|
|
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
|
+
w(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: h(() => [
|
|
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: h(() => [
|
|
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
|
+
w(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 S = 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": h(() => {
|
|
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(g)(t.modelValue)) == null ? void 0 : o.type), 1),
|
|
308
|
+
k("div", ye, V((D = e(g)(t.modelValue)) == null ? void 0 : D.adjustment) + " " + V(e(n)("connect.effect.with")) + " " + V((U = e(g)(t.modelValue)) == null ? void 0 : U.requirements) + " " + V((A = e(g)(t.modelValue)) == null ? void 0 : A.maxCap), 1),
|
|
309
|
+
(m = e(g)(t.modelValue)) != null && m.posHint ? (d(), b("div", Ve, V((s = e(g)(t.modelValue)) == null ? void 0 : s.posHint), 1)) : f("", !0)
|
|
310
310
|
]),
|
|
311
|
-
|
|
311
|
+
w(S, {
|
|
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(S, {
|
|
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": h(() => [...l[4] || (l[4] = [
|
|
329
329
|
ee(V(void 0), -1)
|
|
330
330
|
])]),
|
|
331
|
-
default:
|
|
332
|
-
|
|
331
|
+
default: h(() => [
|
|
332
|
+
w(e(le), {
|
|
333
333
|
class: "fm-effect-sheet",
|
|
334
334
|
title: "",
|
|
335
335
|
"can-set-auto-apply": t.canSetAutoApply,
|
|
@@ -1,31 +1,32 @@
|
|
|
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
|
|
4
|
+
import { p as Z } from "./plugins-De_chCYU.js";
|
|
5
|
+
import { u as ee } from "./loading-CsOSUWBd.js";
|
|
6
|
+
import { u as te } from "./business-9_NOI2V9.js";
|
|
7
|
+
import { u as oe } from "./campaign-8y_9SvKP.js";
|
|
8
|
+
import { b as B, c as N, a as ae } from "./campaign-DjBTRZyA.js";
|
|
9
|
+
import { c as ne, p as re } from "./duplicateCampaign-dRWioann.js";
|
|
10
|
+
import { u as ie } from "./vue-i18n-B_qtODCw.js";
|
|
11
|
+
import { _ as se } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
12
|
+
import { _ as ce } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js";
|
|
13
|
+
import { u as le } from "./template-Cw6j1cLX.js";
|
|
14
|
+
import "./index-CJAFz9Nn.js";
|
|
15
|
+
import { u as me } from "./onboardingSetup-BLISY52M.js";
|
|
15
16
|
import { useRouter as pe } from "vue-router";
|
|
16
|
-
import { c as
|
|
17
|
-
import { R as ue } from "./app-
|
|
18
|
-
const de = { class: "px-24 flex flex-col gap-y-16" },
|
|
17
|
+
import { c as f } from "./index-DkMy7WpU.js";
|
|
18
|
+
import { R as ue } from "./app-BG-zK89d.js";
|
|
19
|
+
const de = { class: "px-24 flex flex-col gap-y-16" }, fe = { class: "flex items-center justify-between w-full" }, ge = { 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" }, He = /* @__PURE__ */ q({
|
|
19
20
|
__name: "Experience",
|
|
20
21
|
setup(Fe) {
|
|
21
|
-
const { t: r } =
|
|
22
|
+
const { t: r } = ie(), T = pe(), V = {
|
|
22
23
|
label: r("connect.program.common.actions.create", {
|
|
23
24
|
type: r("connect.program.experience.title").toLowerCase()
|
|
24
25
|
}),
|
|
25
26
|
value: "create",
|
|
26
27
|
isPrimary: !0,
|
|
27
28
|
prependIcon: "add"
|
|
28
|
-
}, R =
|
|
29
|
+
}, R = le("POINT", W()), A = te(), p = oe(), { global: O, minor: P } = ee, c = E({
|
|
29
30
|
searchKey: "",
|
|
30
31
|
location: []
|
|
31
32
|
});
|
|
@@ -36,7 +37,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
36
37
|
return (i = e == null ? void 0 : e.targetLocation) == null ? void 0 : i.includes(l);
|
|
37
38
|
}) : e.targetLocation.includes(t);
|
|
38
39
|
}
|
|
39
|
-
const
|
|
40
|
+
const g = G(
|
|
40
41
|
() => p.campaigns.experience.filter((e) => $(e))
|
|
41
42
|
), D = [
|
|
42
43
|
{
|
|
@@ -90,7 +91,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
90
91
|
async function S(e) {
|
|
91
92
|
await Z.remove(`Are you sure you want to remove ${e.name}?`) && await P(
|
|
92
93
|
async () => {
|
|
93
|
-
await
|
|
94
|
+
await f.delete(e._id), await p.read("POINT");
|
|
94
95
|
},
|
|
95
96
|
{
|
|
96
97
|
message: `Removing ${e.name}`,
|
|
@@ -107,7 +108,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
107
108
|
(i = y.value) == null || i.showSheet(
|
|
108
109
|
!0,
|
|
109
110
|
"POINT",
|
|
110
|
-
e ? await
|
|
111
|
+
e ? await f.readById(e._id) : void 0,
|
|
111
112
|
l
|
|
112
113
|
);
|
|
113
114
|
}
|
|
@@ -120,9 +121,9 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
120
121
|
}
|
|
121
122
|
async function L(e) {
|
|
122
123
|
var i;
|
|
123
|
-
if (!await
|
|
124
|
+
if (!await ne(e.name))
|
|
124
125
|
return;
|
|
125
|
-
const t = await
|
|
126
|
+
const t = await f.readById(e._id), l = re(t, {
|
|
126
127
|
keepCollectible: !0
|
|
127
128
|
});
|
|
128
129
|
(i = y.value) == null || i.showSheet(
|
|
@@ -135,7 +136,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
135
136
|
async function K(e) {
|
|
136
137
|
await P(
|
|
137
138
|
async () => {
|
|
138
|
-
e.campaign._id ? await
|
|
139
|
+
e.campaign._id ? await f.update(e.campaign._id, e) : await f.create(e), await p.read("POINT");
|
|
139
140
|
},
|
|
140
141
|
{
|
|
141
142
|
message: r("connect.program.common.update.updating", {
|
|
@@ -159,7 +160,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
159
160
|
return d(), C(v, null, [
|
|
160
161
|
s(l, {
|
|
161
162
|
title: o(r)("connect.program.experience.title"),
|
|
162
|
-
actions: o(
|
|
163
|
+
actions: o(g).length > 0 ? [V] : [],
|
|
163
164
|
"onClick:action": t[0] || (t[0] = () => _())
|
|
164
165
|
}, null, 8, ["title", "actions"]),
|
|
165
166
|
n("div", de, [
|
|
@@ -171,9 +172,9 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
171
172
|
collapsible: ""
|
|
172
173
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
173
174
|
o(p).campaigns.experience && o(p).campaigns.experience.length > 0 ? (d(), C(v, { key: 0 }, [
|
|
174
|
-
n("div",
|
|
175
|
-
n("div",
|
|
176
|
-
s(
|
|
175
|
+
n("div", fe, [
|
|
176
|
+
n("div", ge, [
|
|
177
|
+
s(se, {
|
|
177
178
|
label: `${o(r)("connect.common.location")}: `,
|
|
178
179
|
"right-icon": "keyboard_arrow_down",
|
|
179
180
|
modelValue: o(c).location,
|
|
@@ -193,16 +194,16 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
193
194
|
]),
|
|
194
195
|
s(U, {
|
|
195
196
|
class: "xs:hidden sm:hidden",
|
|
196
|
-
"row-data": o(
|
|
197
|
+
"row-data": o(g),
|
|
197
198
|
"column-defs": D,
|
|
198
199
|
"search-value": o(c).searchKey,
|
|
199
200
|
"column-filter": [],
|
|
200
201
|
onRowClick: t[4] || (t[4] = (a) => _(a.original)),
|
|
201
|
-
"hide-footer": o(
|
|
202
|
+
"hide-footer": o(g).length < 10
|
|
202
203
|
}, null, 8, ["row-data", "search-value", "hide-footer"]),
|
|
203
204
|
s(H, { class: "hidden xs:!flex sm:!flex flex-col mx-[-24px]" }, {
|
|
204
205
|
default: b(() => [
|
|
205
|
-
(d(!0), C(v, null, z(o(
|
|
206
|
+
(d(!0), C(v, null, z(o(g).filter(
|
|
206
207
|
(a) => a.name.toLowerCase().includes(o(c).searchKey.toLowerCase())
|
|
207
208
|
), (a) => (d(), k(j, {
|
|
208
209
|
key: a._id.toString(),
|
|
@@ -272,7 +273,7 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
272
273
|
]),
|
|
273
274
|
_: 1
|
|
274
275
|
})),
|
|
275
|
-
s(
|
|
276
|
+
s(ce, {
|
|
276
277
|
ref_key: "sheetRef",
|
|
277
278
|
ref: y,
|
|
278
279
|
"onSubmit:modelValue": K
|
|
@@ -283,5 +284,5 @@ const de = { class: "px-24 flex flex-col gap-y-16" }, ge = { class: "flex items-
|
|
|
283
284
|
}
|
|
284
285
|
});
|
|
285
286
|
export {
|
|
286
|
-
|
|
287
|
+
He as default
|
|
287
288
|
};
|
|
@@ -1,21 +1,22 @@
|
|
|
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
|
|
10
|
-
import { _ as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { u as
|
|
13
|
-
import {
|
|
14
|
-
import "./
|
|
4
|
+
import { c as ae, p as ne } from "./plugins-De_chCYU.js";
|
|
5
|
+
import { u as ie } from "./loading-CsOSUWBd.js";
|
|
6
|
+
import { u as re } from "./business-9_NOI2V9.js";
|
|
7
|
+
import { u as se } from "./campaign-8y_9SvKP.js";
|
|
8
|
+
import { b as T, c as U, a as le } from "./campaign-DjBTRZyA.js";
|
|
9
|
+
import { c as ce, p as me } from "./duplicateCampaign-dRWioann.js";
|
|
10
|
+
import { _ as de } from "./FilterChip.vue_vue_type_script_setup_true_lang-3bH-tZAm.js";
|
|
11
|
+
import { _ as ue } from "./EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSjOHBhA.js";
|
|
12
|
+
import { u as pe } from "./template-Cw6j1cLX.js";
|
|
13
|
+
import { u as fe } from "./vue-i18n-B_qtODCw.js";
|
|
14
|
+
import { _ as ge } from "./SendCollectionSheet.vue_vue_type_script_setup_true_lang-C5iJSlxi.js";
|
|
15
|
+
import "./index-CJAFz9Nn.js";
|
|
15
16
|
import { useRouter as ye } from "vue-router";
|
|
16
|
-
import { c as h } from "./index-
|
|
17
|
-
import { R as _e } from "./app-
|
|
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" },
|
|
17
|
+
import { c as h } from "./index-DkMy7WpU.js";
|
|
18
|
+
import { R as _e } from "./app-BG-zK89d.js";
|
|
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" }, Xe = /* @__PURE__ */ J({
|
|
19
20
|
__name: "Game",
|
|
20
21
|
setup(Ee) {
|
|
21
22
|
const { t: d } = fe(), D = ye(), I = {
|
|
@@ -25,7 +26,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
25
26
|
value: "create",
|
|
26
27
|
isPrimary: !0,
|
|
27
28
|
prependIcon: "add"
|
|
28
|
-
}, L = oe(), K =
|
|
29
|
+
}, L = oe(), K = pe("GAME", L), w = re(), u = se(), { global: j, minor: B } = ie, c = A({
|
|
29
30
|
searchKey: "",
|
|
30
31
|
location: []
|
|
31
32
|
});
|
|
@@ -230,7 +231,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
230
231
|
o(u).campaigns.token && o(u).campaigns.token.length > 0 ? (f(), P(R, { key: 0 }, [
|
|
231
232
|
n("div", ve, [
|
|
232
233
|
n("div", xe, [
|
|
233
|
-
r(
|
|
234
|
+
r(de, {
|
|
234
235
|
label: `${o(d)("connect.common.location")}: `,
|
|
235
236
|
"right-icon": "keyboard_arrow_down",
|
|
236
237
|
modelValue: o(c).location,
|
|
@@ -336,7 +337,7 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
336
337
|
]),
|
|
337
338
|
_: 1
|
|
338
339
|
})),
|
|
339
|
-
r(
|
|
340
|
+
r(ue, {
|
|
340
341
|
ref_key: "sheetRef",
|
|
341
342
|
ref: k,
|
|
342
343
|
"onSubmit:modelValue": H
|
|
@@ -351,5 +352,5 @@ const he = { class: "flex items-center" }, we = { class: "fm-typo-en-title-md-60
|
|
|
351
352
|
}
|
|
352
353
|
});
|
|
353
354
|
export {
|
|
354
|
-
|
|
355
|
+
Xe as default
|
|
355
356
|
};
|
|
@@ -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-CsOSUWBd.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-De_chCYU.js";
|
|
5
|
+
import "./index-CJAFz9Nn.js";
|
|
6
|
+
import { g as ue } from "./index-CIOidYvo.js";
|
|
7
|
+
import { c as pt } from "./index-DkMy7WpU.js";
|
|
8
|
+
import { S as Fe } from "./index-Ye3qFt34.js";
|
|
9
|
+
import { b as vt } from "./MessageInput.vue_vue_type_script_setup_true_lang-1weyRM8c.js";
|
|
10
10
|
import { J as gt } from "./JsonViewer-v8_C7l5N.js";
|
|
11
|
-
import {
|
|
12
|
-
import { u as At } from "./vue-i18n-
|
|
11
|
+
import { z as Q, A as Te, B as yt, C as bt, E as _t, G as W, H as xt, I as Ct, J as ke, K as me, L as ht } from "./index-CooParq-.js";
|
|
12
|
+
import { u as At } from "./vue-i18n-B_qtODCw.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-BG-zK89d.js";
|
|
15
|
+
var Se = { authUrl: "https://portal-v2-dev.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "feedmedev.vip", crmUrl: "crm.feedmedev.cc", paymentPortalUrl: "https://portal.feedmedev.cc/payment/payout-account", licensePortalUrl: "https://license.feedmedev.cc/", marketingV1Portal: "https://marketing-v1.feedmedev.cc", voucherAppUrl: "https://voucher.feedmedev.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" }, St = { class: "fm-typo-en-title-md-800 text-fm-color-typo-primary" }, wt = { 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" }, So = {
|
|
35
35
|
key: 0,
|
|
36
36
|
class: "flex items-start gap-12 p-16 rounded-md bg-fm-color-system-info-100"
|
|
37
|
-
},
|
|
37
|
+
}, wo = { 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" }, we = 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), S = d(10), w = d(100), ye = d(!1), B = d(!0), be = `https://${Fe.getBusinessId()}.${Se.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 = `${Se.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(S.value) > Number(w.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 <= we;
|
|
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(S.value),
|
|
270
|
+
max: Number(w.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), S.value = ((C = t.anyAmount) == null ? void 0 : C.min) ?? 10, w.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", St, s(e(H) ? e(l)("connect.store.giftCard.editTitle") : e(l)("connect.store.giftCard.createTitle")), 1),
|
|
327
|
+
n("p", wt, 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": we,
|
|
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(S),
|
|
547
|
+
"onUpdate:modelValue": o[8] || (o[8] = (a) => b(S) ? S.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(w),
|
|
554
|
+
"onUpdate:modelValue": o[9] || (o[9] = (a) => b(w) ? w.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", So, [
|
|
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", wo, 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-B_qtODCw.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-Ye3qFt34.js";
|
|
5
|
+
import "./index-CJAFz9Nn.js";
|
|
6
|
+
import { n as te } from "./plugins-De_chCYU.js";
|
|
7
|
+
import { u as ne } from "./business-9_NOI2V9.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-BbQDJOOS.js";
|
|
9
|
+
import { R as Z } from "./app-BG-zK89d.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-B_qtODCw.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-De_chCYU.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-BbQDJOOS.js";
|
|
7
|
+
import { _ as fe, a as ve } from "./GoalPickerPanel.vue_vue_type_script_setup_true_lang-GCp3IFaC.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"
|