@feedmepos/mf-connect 0.1.123-prod → 0.1.124-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-BOQIQ8Jz.js → App-C7BnLHSt.js} +502 -493
- package/dist/AuditLogs-BPKQdFga.js +2016 -0
- package/dist/{Bin-BethwelP.js → Bin-Bq7yY0I2.js} +8 -8
- package/dist/{Broadcast-CHIXRBHf.js → Broadcast-D52rPmVl.js} +22 -21
- package/dist/{CampaignAnalytic-BaEeAhnr.js → CampaignAnalytic-DpiWtzIp.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CYo7Rpes.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js} +8 -9
- package/dist/{Card-C075nS85.js → Card-BQc7vud2.js} +22 -22
- package/dist/{Collections-BsQ_kcoJ.js → Collections--VzkneGp.js} +197 -185
- package/dist/{Credit-BsZlyp-x.js → Credit-DhfAcw-p.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CcytVckH.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Da4snauu.js → EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js} +16 -16
- package/dist/{Experience-B9iubxQ5.js → Experience-CUwbHfo5.js} +32 -31
- package/dist/{FileSaver.min-1XYUiJrd.js → FileSaver.min-DvZpiwMd.js} +1 -1
- package/dist/{Game-B3ZTJcjj.js → Game-CI5-y0JJ.js} +19 -18
- package/dist/{GiftCardSetup-DpLDBOS2.js → GiftCardSetup-CGacqQ0j.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-hNbexVdE.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js} +7 -7
- package/dist/{Goals--dysejOz.js → Goals-fqJY9iMx.js} +4 -4
- package/dist/Grab-CAx1cCE4.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BI1EQciE.js → ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js} +1 -1
- package/dist/{Index-v2J17JTP.js → Index-CT1Gnjsv.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-B1vTvUTW.js → LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Dz0VI7PT.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js} +1 -1
- package/dist/{LoyaltyDashboard-BI_khH0P.js → LoyaltyDashboard-IJIDEBWf.js} +15 -15
- package/dist/{MainLayout-On2p0hEA.js → MainLayout-BMghr-wf.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-DSdJORyW.js → MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js} +3 -3
- package/dist/{Marketing-Pqa4USnd.js → Marketing-Ckr9cp3w.js} +4 -4
- package/dist/{MarketingMaterialEdit-IRRsEF8W.js → MarketingMaterialEdit-BIZnE8CY.js} +214 -211
- package/dist/{Member-p1zyrY20.js → Member-d1nPxr74.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +1281 -0
- package/dist/{MemberImportHistory-BwkJJj_u.js → MemberImportHistory-CxX9iYhV.js} +7 -7
- package/dist/{MemberList-Ci8K7HI4.js → MemberList-DUzYpxhj.js} +103 -105
- package/dist/{MemberTransactions-D8xLWGcw.js → MemberTransactions-BFM3ybeo.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CvCuVDR-.js → MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DzrAjDGZ.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js} +1 -1
- package/dist/{Mission-JpI-0kHJ.js → Mission-De9BF5wb.js} +22 -21
- package/dist/{Overview-92S0hiOS.js → Overview-DeHo3gef.js} +145 -144
- package/dist/{Overview-BXCQnl4x.js → Overview-Pmxqv6qp.js} +20 -20
- package/dist/{Point-krrZWESo.js → Point-DE_Cc85N.js} +22 -21
- package/dist/{Promotion-BjlFWrMI.js → Promotion-cZDzgho4.js} +137 -131
- package/dist/{Queue-FW3I2guh.js → Queue-DmDbrtTk.js} +45 -45
- package/dist/{Record-Hj3_FQp6.js → Record-uxNNOvmK.js} +9 -9
- package/dist/{Review-CBL5Wga7.js → Review-CIIn_Bdx.js} +2 -2
- package/dist/ReviewFacebookCallback-CO6FxHzc.js +225 -0
- package/dist/{ReviewGoogleCallback-CAqc1gmT.js → ReviewGoogleCallback-B7kmGwb_.js} +5 -5
- package/dist/{Reward-UN-LYZPR.js → Reward-Bj1snFu8.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C4deW4H6.js → RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js +1923 -0
- package/dist/{Segment-D9ehFadR.js → Segment-BgJgWa6C.js} +303 -306
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D7PbDKI7.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-DWXfOk-I.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js} +4 -4
- package/dist/Setting-DpEI72mW.js +574 -0
- package/dist/{SettingAdvertisements-BNWTSQ14.js → SettingAdvertisements-vdUtIXwC.js} +12 -12
- package/dist/Settings-C6yJ1WEB.js +286 -0
- package/dist/{Store-vRzLqmIu.js → Store-DgltT0RA.js} +28 -28
- package/dist/{StoreRewards-DitATf4s.js → StoreRewards-BXH_5cYL.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js +7007 -0
- package/dist/{Tier-B0JGxXei.js → Tier-CqfHGUX0.js} +2575 -687
- package/dist/{Title-DBLK191p.js → Title-B5VnUNiS.js} +95 -94
- package/dist/{Transaction-CUthGjH1.js → Transaction-BZh1Q9Lj.js} +2 -2
- package/dist/Upselling-Cf24ub-9.js +1055 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CUCR6aEY.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js} +26 -26
- package/dist/{Voucher-DsyOteEs.js → Voucher-CZJdV2Ok.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Ddbutv4Y.js → VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js} +12 -12
- package/dist/{WhatsappAccount-PWKWg15w.js → WhatsappAccount-DsRilNC5.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-HUSiUfoc.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js} +1 -1
- package/dist/{WhatsappBot-CMFcJj1b.js → WhatsappBot-CpzMaTss.js} +6 -6
- package/dist/{WhatsappBotLogs-CVOw3VxD.js → WhatsappBotLogs-DRF8VufQ.js} +6 -6
- package/dist/{WhatsappBotSettings-ouG9rSoI.js → WhatsappBotSettings-DSUPGC-p.js} +4 -4
- package/dist/{WhatsappLayout-CHtKQYog.js → WhatsappLayout-BCWYcQmD.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-B0tpwJ9B.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CEytppMm.js → ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js} +2 -2
- package/dist/{app-CZGZKKye.js → app-BQeODViN.js} +14861 -15017
- package/dist/app.js +4 -3
- package/dist/{base.export-Cxm_LrqA.js → base.export-kSFLDDoC.js} +2 -2
- package/dist/{business-CieIljvm.js → business-EP-Do3Ew.js} +1 -1
- package/dist/{campaign-DhN6zKES.js → campaign-BjnUPowX.js} +34 -28
- package/dist/{campaign-DWClF3jI.js → campaign-C8GgaCub.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-DQ--gL4B.js +776 -0
- package/dist/{collection.fn-Cep8tuk5.js → collection.fn-BhXecwh5.js} +2 -2
- package/dist/{currency-DhwsYY32.js → currency-CGMNh1Q_.js} +1 -1
- package/dist/duplicateCampaign-icqF8Na9.js +51 -0
- package/dist/{effect-BwOOpJRh.js → effect-Bc6oGIWd.js} +1 -1
- package/dist/{email-addresses-DZB2oj9y.js → email-addresses-B3KWfUMk.js} +25 -25
- package/dist/{feature-flag-BSpbhSMn.js → feature-flag-HhjvSuDm.js} +171 -185
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-D_4T4gbM.js → helper-D1BYvcED.js} +1 -1
- package/dist/{index-DgCpTG1m.js → index-BIBcfAw5.js} +1 -1
- package/dist/{index-BpnjNIh1.js → index-BkevK_Hp.js} +1 -1
- package/dist/{index-D5OOlgos.js → index-Br2SLVsn.js} +608 -251
- package/dist/{index-BYipoHQc.js → index-Bunp1bt_.js} +1 -1
- package/dist/{index-BDKVZZR0.js → index-C-46QHFh.js} +380 -234
- package/dist/{index-MCyDYhZI.js → index-C3MK8Twg.js} +1 -1
- package/dist/{index-DVir0ptH.js → index-CsYTLmPa.js} +4 -4
- package/dist/{index-Dh815w-7.js → index-D2TnjKPP.js} +23 -23
- package/dist/{index-CyYV4eem.js → index-DCC3pLug.js} +19 -6
- package/dist/{index-X5Gzu80O.js → index-DOSuhtdE.js} +1 -1
- package/dist/{index-FrOuWhLi.js → index-DeqpfWLa.js} +3 -3
- package/dist/{index-Df4ox2zj.js → index-DiCgGQoC.js} +2 -2
- package/dist/{index-tUxF4g8G.js → index-GQv1_jaJ.js} +2 -2
- package/dist/{index-rcMo_-nr.js → index-Ptcqv0W6.js} +2 -2
- package/dist/{index-CY88cQHU.js → index-VLFerh-X.js} +10 -10
- package/dist/{index-DcTRgcug.js → index-VyoufKYY.js} +1 -1
- package/dist/{index-BtN3vRvA.js → index-Yw4M7v7m.js} +2699 -2614
- package/dist/{index-DcO1O6fl.js → index-cPPWotJe.js} +10 -10
- package/dist/{index-FKxe6jKI.js → index-gMrtUwSD.js} +316 -316
- package/dist/{index-CIJKKs_J.js → index-oIo5Cful.js} +533 -462
- package/dist/{index.esm2017-DSF7lxrn.js → index.esm2017-DUZpLdEB.js} +93 -93
- package/dist/{loading-B4qq_74t.js → loading-DhpcQgdj.js} +1 -1
- package/dist/{lodash-BuScZ_TM.js → lodash-r4AR7GJC.js} +1 -1
- package/dist/{member-import-DyM1Xskc.js → member-import-CogEef9H.js} +1 -1
- package/dist/{membership-C77S6FIb.js → membership-BQFkjRjs.js} +2 -2
- package/dist/{money-Dcr44NhN.js → money-Ifqd4pyC.js} +1 -1
- package/dist/{number-C2u_79r4.js → number-C9Tw_Ncm.js} +1 -1
- package/dist/objectid-D7dqM1a3.js +145 -0
- package/dist/{onboarding-Chxkor1U.js → onboarding-D4dm_rxU.js} +36 -36
- package/dist/{onboardingSetup-BvL9lW9U.js → onboardingSetup-DtNZUoRr.js} +2 -2
- package/dist/{plugins-dnLWrrhC.js → plugins-DGI9Fkiu.js} +3 -3
- package/dist/{reward-DVHKTXQL.js → reward-DTtejZqM.js} +1 -1
- package/dist/{rule-IYgreBdC.js → rule-C4N3ce3c.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-YhWRyNGp.js +227 -0
- package/dist/{timezone-Cdp7cU32.js → timezone-5rYhX7XZ.js} +1 -1
- package/dist/{transaction.fn-kl4EZybB.js → transaction.fn-Ba_U7HdT.js} +2 -2
- package/dist/{trigger-C1m8eupI.js → trigger-B8I1aO6Y.js} +9 -9
- package/dist/{useMarketingMaterialActions-m5OLWGoL.js → useMarketingMaterialActions-CTOFHmlL.js} +4 -4
- package/dist/{usePagination-DX82vEDi.js → usePagination-3wAPVCOp.js} +1 -1
- package/dist/{user-DBndrlMY.js → user-Ds4DW_-Y.js} +1 -1
- package/dist/vue-i18n-Bqlt_-jA.js +2365 -0
- package/dist/{xlsx-ColLmoRB.js → xlsx-xlOCvuAq.js} +166 -166
- package/dist/{zod-CHmP8TTi.js → zod-GVNjvrpT.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-qX_uFelR.js +0 -3493
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DyvEDRBE.js +0 -1308
- package/dist/ReviewFacebookCallback-31bFMGu3.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BbzRH7BF.js +0 -1884
- package/dist/Setting-DGoNxCsO.js +0 -578
- package/dist/Settings-CQ67orRm.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DEP0FuoM.js +0 -1297
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DndMZr1k.js +0 -142
- package/dist/Upselling-CZLmpsdx.js +0 -200
- package/dist/campaign.fn-CKTsVS5U.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-nYLSIO_I.js +0 -145
- package/dist/rule-builder-QC_xPC4L.js +0 -102
- package/dist/template-COvkfF2w.js +0 -275
- package/dist/vue-i18n-FBUIkfn5.js +0 -2365
package/dist/Setting-DGoNxCsO.js
DELETED
|
@@ -1,578 +0,0 @@
|
|
|
1
|
-
import { defineComponent as J, ref as U, computed as D, onMounted as me, resolveComponent as p, openBlock as f, createBlock as B, withCtx as P, createElementVNode as t, createVNode as c, unref as e, isRef as Z, watch as Ue, createElementBlock as C, toDisplayString as i, Fragment as T, renderList as G, createTextVNode as E, createCommentVNode as O } from "vue";
|
|
2
|
-
import { h as Fe } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as re } from "./zod-CHmP8TTi.js";
|
|
4
|
-
import { useDialog as ue } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Ae } from "./loading-B4qq_74t.js";
|
|
6
|
-
import { u as Pe } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as K, l as pe } from "./business-CieIljvm.js";
|
|
8
|
-
import { u as fe } from "./membership-C77S6FIb.js";
|
|
9
|
-
import { P as Q } from "./index-FrOuWhLi.js";
|
|
10
|
-
import { m as Se, b as $e } from "./index-BDKVZZR0.js";
|
|
11
|
-
import { _ as Me } from "./ImageInput.vue_vue_type_script_setup_true_lang-BI1EQciE.js";
|
|
12
|
-
import { c as ve, p as Le, f as j } from "./plugins-dnLWrrhC.js";
|
|
13
|
-
import { b as De } from "./browser-BSAOEeIM.js";
|
|
14
|
-
import { p as Re, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-DndMZr1k.js";
|
|
15
|
-
import { u as ge } from "./vue-i18n-FBUIkfn5.js";
|
|
16
|
-
import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-CvCuVDR-.js";
|
|
17
|
-
import { useCoreStore as Ne } from "@feedmepos/mf-common";
|
|
18
|
-
import { useRouter as He } from "vue-router";
|
|
19
|
-
import { R as Oe } from "./app-CZGZKKye.js";
|
|
20
|
-
import { b as je } from "./feature-flag-BSpbhSMn.js";
|
|
21
|
-
import { m as W } from "./index-CyYV4eem.js";
|
|
22
|
-
import { S as de } from "./index-DcO1O6fl.js";
|
|
23
|
-
import { o as qe } from "./objectId-dwaoBfJX.js";
|
|
24
|
-
import { a as Xe } from "./object-BYyQ0PZp.js";
|
|
25
|
-
async function ze(v, x = 350) {
|
|
26
|
-
try {
|
|
27
|
-
return await De.toDataURL(v, {
|
|
28
|
-
width: x,
|
|
29
|
-
margin: 0
|
|
30
|
-
});
|
|
31
|
-
} catch (g) {
|
|
32
|
-
console.error(g);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
var Qe = { 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/" };
|
|
36
|
-
const We = { class: "flex items-start" }, Ye = { class: "flex flex-col gap-16 mt-16" }, Ze = ["src"], Ge = /* @__PURE__ */ J({
|
|
37
|
-
__name: "LinkDeviceDialog",
|
|
38
|
-
setup(v) {
|
|
39
|
-
const x = K(), g = fe(), y = ue(), L = U(), m = U(), h = Qe.crmUrl, b = U(), S = D(() => g.membership), R = D(() => {
|
|
40
|
-
var r, a;
|
|
41
|
-
return `https://${(r = S.value) != null && r.url ? S.value.url : (a = S.value) == null ? void 0 : a.business}.${h}`;
|
|
42
|
-
});
|
|
43
|
-
async function n(r) {
|
|
44
|
-
const a = await pe.getOtp(r);
|
|
45
|
-
return `${R.value}?link-device=${a.otp}`;
|
|
46
|
-
}
|
|
47
|
-
async function k(r) {
|
|
48
|
-
const a = await n(r);
|
|
49
|
-
b.value = a, L.value = await ze(a);
|
|
50
|
-
}
|
|
51
|
-
return me(async () => {
|
|
52
|
-
if (await x.readLocations(), !x.locations.length) {
|
|
53
|
-
y.close();
|
|
54
|
-
return;
|
|
55
|
-
}
|
|
56
|
-
const r = x.locations[0]._id;
|
|
57
|
-
m.value = r, await k(r);
|
|
58
|
-
}), (r, a) => {
|
|
59
|
-
const V = p("FmIcon"), F = p("FmSelect"), A = p("FmButton"), _ = p("FmCard");
|
|
60
|
-
return f(), B(_, { class: "p-24 max-w-[350px]" }, {
|
|
61
|
-
default: P(() => [
|
|
62
|
-
t("div", We, [
|
|
63
|
-
a[3] || (a[3] = t("div", null, [
|
|
64
|
-
t("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
65
|
-
t("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
66
|
-
], -1)),
|
|
67
|
-
c(V, {
|
|
68
|
-
name: "close",
|
|
69
|
-
onClick: a[0] || (a[0] = (o) => e(y).close()),
|
|
70
|
-
class: "cursor-pointer"
|
|
71
|
-
})
|
|
72
|
-
]),
|
|
73
|
-
t("div", Ye, [
|
|
74
|
-
c(F, {
|
|
75
|
-
modelValue: e(m),
|
|
76
|
-
"onUpdate:modelValue": [
|
|
77
|
-
a[1] || (a[1] = (o) => Z(m) ? m.value = o : null),
|
|
78
|
-
k
|
|
79
|
-
],
|
|
80
|
-
label: "Select Location",
|
|
81
|
-
items: e(x).locationItems.filter((o) => !!o.value)
|
|
82
|
-
}, null, 8, ["modelValue", "items"]),
|
|
83
|
-
t("img", {
|
|
84
|
-
src: e(L),
|
|
85
|
-
class: "aspect-square w-full"
|
|
86
|
-
}, null, 8, Ze),
|
|
87
|
-
c(A, {
|
|
88
|
-
class: "mx-auto",
|
|
89
|
-
variant: "plain",
|
|
90
|
-
icon: "content_copy",
|
|
91
|
-
onClick: a[2] || (a[2] = (o) => e(ve)(e(b)))
|
|
92
|
-
})
|
|
93
|
-
])
|
|
94
|
-
]),
|
|
95
|
-
_: 1
|
|
96
|
-
});
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
}), Ke = { class: "space-y-4" }, Je = { key: 0 }, et = { key: 1 }, tt = { key: 2 }, ot = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, nt = /* @__PURE__ */ J({
|
|
100
|
-
__name: "AllowedPhoneCountriesSelect",
|
|
101
|
-
props: {
|
|
102
|
-
modelValue: {}
|
|
103
|
-
},
|
|
104
|
-
emits: ["update:modelValue"],
|
|
105
|
-
setup(v, { emit: x }) {
|
|
106
|
-
const { t: g } = ge(), y = v, L = x, m = [...new Set(Q.map((r) => r.phoneCode))], h = U(""), b = U(!1), S = D(() => {
|
|
107
|
-
const r = h.value.toLowerCase();
|
|
108
|
-
return Q.filter(
|
|
109
|
-
(a) => a.name.toLowerCase().includes(r) || a.phoneCode.toLowerCase().includes(r)
|
|
110
|
-
);
|
|
111
|
-
});
|
|
112
|
-
function R(r, a) {
|
|
113
|
-
const V = r ? Re([...y.modelValue || []], a) : Ie(y.modelValue || m, a);
|
|
114
|
-
L("update:modelValue", V);
|
|
115
|
-
}
|
|
116
|
-
const n = D(() => {
|
|
117
|
-
var V;
|
|
118
|
-
const a = ((V = y.modelValue) == null ? void 0 : V.slice(0, 5).map(
|
|
119
|
-
(F) => {
|
|
120
|
-
var A;
|
|
121
|
-
return ((A = Q.find((_) => _.phoneCode === F)) == null ? void 0 : A.name) || F;
|
|
122
|
-
}
|
|
123
|
-
)) || [];
|
|
124
|
-
return y.modelValue && y.modelValue.length > 5 && a.push(`+${y.modelValue.length - 5} more`), a;
|
|
125
|
-
}), k = D(() => {
|
|
126
|
-
const r = y.modelValue;
|
|
127
|
-
return Array.isArray(r) && r.length === 0 ? g("connect.setting.allowedPhoneCountries.helper.noneAllowed") : r == null ? g("connect.setting.allowedPhoneCountries.helper.allAllowed") : g("connect.setting.allowedPhoneCountries.helper.selectedOnly");
|
|
128
|
-
});
|
|
129
|
-
return Ue(b, (r) => {
|
|
130
|
-
r && (h.value = "");
|
|
131
|
-
}), (r, a) => {
|
|
132
|
-
const V = p("FmChip"), F = p("FmField"), A = p("FmTextField"), _ = p("FmCheckbox"), o = p("FmMenu");
|
|
133
|
-
return f(), C("div", Ke, [
|
|
134
|
-
c(o, {
|
|
135
|
-
modelValue: e(b),
|
|
136
|
-
"onUpdate:modelValue": a[2] || (a[2] = (u) => Z(b) ? b.value = u : null),
|
|
137
|
-
onMenuChanged: a[3] || (a[3] = (u) => b.value = u),
|
|
138
|
-
placement: "top-end"
|
|
139
|
-
}, {
|
|
140
|
-
"menu-button": P(() => [
|
|
141
|
-
c(F, {
|
|
142
|
-
"append-icon": e(b) ? "expand_more" : "expand_less",
|
|
143
|
-
class: "!h-auto"
|
|
144
|
-
}, {
|
|
145
|
-
default: P(() => [
|
|
146
|
-
v.modelValue ? v.modelValue.length ? (f(), C("div", tt, [
|
|
147
|
-
(f(!0), C(T, null, G(e(n), (u, I) => (f(), B(V, {
|
|
148
|
-
key: I,
|
|
149
|
-
label: u,
|
|
150
|
-
class: "max-w-[130px] text-ellipsis"
|
|
151
|
-
}, null, 8, ["label"]))), 128))
|
|
152
|
-
])) : (f(), C("div", et, i(e(g)("connect.setting.allowedPhoneCountries.noCountries")), 1)) : (f(), C("div", Je, i(e(g)("connect.setting.allowedPhoneCountries.allCountries")), 1))
|
|
153
|
-
]),
|
|
154
|
-
_: 1
|
|
155
|
-
}, 8, ["append-icon"])
|
|
156
|
-
]),
|
|
157
|
-
default: P(() => [
|
|
158
|
-
c(A, {
|
|
159
|
-
modelValue: e(h),
|
|
160
|
-
"onUpdate:modelValue": a[0] || (a[0] = (u) => Z(h) ? h.value = u : null),
|
|
161
|
-
placeholder: e(g)("connect.setting.allowedPhoneCountries.searchCountries"),
|
|
162
|
-
class: "my-8"
|
|
163
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
164
|
-
c(_, {
|
|
165
|
-
class: "my-8",
|
|
166
|
-
value: null,
|
|
167
|
-
indeterminate: v.modelValue != null && v.modelValue.length > 0 && v.modelValue.length < m.length,
|
|
168
|
-
label: e(g)("connect.setting.allowedPhoneCountries.allCountries"),
|
|
169
|
-
"model-value": v.modelValue == null || v.modelValue.length === m.length,
|
|
170
|
-
"onUpdate:modelValue": a[1] || (a[1] = (u) => L("update:modelValue", u ? null : []))
|
|
171
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
172
|
-
(f(!0), C(T, null, G(e(S), (u) => (f(), B(_, {
|
|
173
|
-
class: "my-8",
|
|
174
|
-
key: u.iso2,
|
|
175
|
-
value: u.phoneCode,
|
|
176
|
-
label: `${u.name} (${u.phoneCode})`,
|
|
177
|
-
"model-value": !v.modelValue || v.modelValue.includes(u.phoneCode),
|
|
178
|
-
"onUpdate:modelValue": (I) => R(I, u.phoneCode)
|
|
179
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
180
|
-
]),
|
|
181
|
-
_: 1
|
|
182
|
-
}, 8, ["modelValue"]),
|
|
183
|
-
t("div", ot, i(e(k)), 1)
|
|
184
|
-
]);
|
|
185
|
-
};
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
var Y = { 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/" };
|
|
189
|
-
const lt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, st = { class: "fm-typo-en-title-md-800" }, at = {
|
|
190
|
-
key: 0,
|
|
191
|
-
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
192
|
-
}, it = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, ct = { class: "fm-typo-en-title-sm-800" }, rt = { class: "space-y-24" }, dt = { class: "space-y-8" }, mt = { class: "fm-typo-en-title-sm-800" }, ut = { class: "fm-typo-body-lg-400" }, pt = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, ft = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, vt = { class: "space-y-8" }, gt = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, yt = { class: "fm-typo-en-body-lg-600" }, ht = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, bt = { class: "space-y-8" }, _t = { class: "space-y-8" }, wt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Ct = { class: "space-y-8" }, xt = { class: "fm-typo-en-title-sm-800" }, kt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Vt = { class: "space-y-8" }, Ut = { class: "fm-typo-en-title-sm-800" }, Ft = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, At = { class: "space-y-8" }, Pt = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, St = {
|
|
193
|
-
key: 0,
|
|
194
|
-
class: "space-y-8"
|
|
195
|
-
}, $t = { class: "space-y-8" }, Mt = { class: "fm-typo-en-title-sm-800" }, Lt = { class: "space-y-8" }, Dt = { class: "fm-typo-en-title-sm-800" }, Rt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, It = { class: "flex justify-end pb-24" }, Et = { class: "col-span-1 space-y-8 xs:hidden" }, Tt = { class: "fm-typo-en-body-lg-600" }, Bt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Nt = { class: "fm-typo-en-body-lg-600" }, Ht = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ot = { class: "fm-typo-en-body-lg-600" }, jt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, qt = { class: "fm-typo-en-body-lg-600" }, Xt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, zt = { class: "fm-typo-en-body-lg-600" }, ho = /* @__PURE__ */ J({
|
|
196
|
-
__name: "Setting",
|
|
197
|
-
setup(v) {
|
|
198
|
-
const x = He(), g = je(), y = Pe(), L = Ne(), m = K(), h = fe(), { global: b, minor: S } = Ae, R = ue(), n = U(), k = U([]), r = U(null), a = Se, V = [
|
|
199
|
-
(d) => !d || d.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
200
|
-
(d) => !d || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(d) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
201
|
-
], F = Y.appUrl, A = D(() => {
|
|
202
|
-
var d;
|
|
203
|
-
return `https://${(d = n.value) == null ? void 0 : d.business}.${F}/user?join=true`;
|
|
204
|
-
}), _ = U(), { t: o } = ge(), u = L.currentCountry.value || "MY", I = [
|
|
205
|
-
"user.name",
|
|
206
|
-
"user.gender",
|
|
207
|
-
"user.birthday",
|
|
208
|
-
"user.phoneNumber",
|
|
209
|
-
"membership.url"
|
|
210
|
-
].filter(
|
|
211
|
-
(d) => {
|
|
212
|
-
var l;
|
|
213
|
-
return !((l = Te[u]) != null && l.includes(d));
|
|
214
|
-
}
|
|
215
|
-
), ee = U(
|
|
216
|
-
o("connect.setting.sms.welcomeMessage")
|
|
217
|
-
);
|
|
218
|
-
async function ye() {
|
|
219
|
-
R.open({
|
|
220
|
-
title: "",
|
|
221
|
-
dialogComponent: Ge,
|
|
222
|
-
closeButton: !1
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
async function he(d) {
|
|
226
|
-
await Le.remove(
|
|
227
|
-
"Are you sure you want to unlink this device?",
|
|
228
|
-
"Unlink device",
|
|
229
|
-
"Unlink"
|
|
230
|
-
) && await S(
|
|
231
|
-
async () => {
|
|
232
|
-
await pe.unregisterDevice(d), await m.readLocationDevices();
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
message: "Unlinking device",
|
|
236
|
-
successMessage: "Unlinked device successfully"
|
|
237
|
-
}
|
|
238
|
-
);
|
|
239
|
-
}
|
|
240
|
-
async function be() {
|
|
241
|
-
await S(
|
|
242
|
-
async () => {
|
|
243
|
-
var N;
|
|
244
|
-
const d = Xe(n.value);
|
|
245
|
-
console.log(n.value), d.welcomeMessage && !((N = d.welcomeMessage) != null && N.content) && (d.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
246
|
-
const l = $e.parse(d);
|
|
247
|
-
_.value === null && l.image ? await j.delete(j.coverImagePath()) : _.value && (l.image = await j.update(
|
|
248
|
-
j.coverImagePath(),
|
|
249
|
-
_.value
|
|
250
|
-
)), await W.update(l), await h.readMembership(), n.value = h.membership;
|
|
251
|
-
},
|
|
252
|
-
{
|
|
253
|
-
message: "Updating membership",
|
|
254
|
-
successMessage: "Membership updated successfully"
|
|
255
|
-
}
|
|
256
|
-
);
|
|
257
|
-
}
|
|
258
|
-
async function _e() {
|
|
259
|
-
const d = await W.getEmailAddresses();
|
|
260
|
-
console.log(d), k.value = d, r.value = d.find((l) => l.default.includes("Marketing"));
|
|
261
|
-
}
|
|
262
|
-
async function we() {
|
|
263
|
-
window.open(
|
|
264
|
-
`${Y.licensePortalUrl}business/${de.businessId}/settings`,
|
|
265
|
-
"_blank"
|
|
266
|
-
);
|
|
267
|
-
}
|
|
268
|
-
async function Ce() {
|
|
269
|
-
const d = `${Y.licensePortalUrl}settings?businessId=${de.businessId}`;
|
|
270
|
-
console.log("Opening", d), window.open(d, "_blank");
|
|
271
|
-
}
|
|
272
|
-
return me(async () => {
|
|
273
|
-
await b(async () => {
|
|
274
|
-
await m.readPremium(), await m.readLocations(), await m.readLocationDevices(), await h.readMembership(), await _e(), n.value = h.membership;
|
|
275
|
-
try {
|
|
276
|
-
const { content: d } = await W.getDefaultWelcomeMessage();
|
|
277
|
-
d && (ee.value = d);
|
|
278
|
-
} catch (d) {
|
|
279
|
-
console.error("Failed to load default welcome message", d);
|
|
280
|
-
}
|
|
281
|
-
});
|
|
282
|
-
}), (d, l) => {
|
|
283
|
-
var oe, ne, le, se, ae, ie, ce;
|
|
284
|
-
const N = p("FmPageHead"), $ = p("FmButton"), H = p("FmTextField"), q = p("FmCard"), te = p("FmPill"), xe = p("FmSelect"), X = p("FmSwitch"), ke = p("FmMenuDivider");
|
|
285
|
-
return f(), C(T, null, [
|
|
286
|
-
c(N, {
|
|
287
|
-
title: e(o)("connect.setting.title"),
|
|
288
|
-
class: "xs:hidden"
|
|
289
|
-
}, null, 8, ["title"]),
|
|
290
|
-
t("div", lt, [
|
|
291
|
-
t("div", st, i(e(o)("connect.setting.basicInfo.title")), 1),
|
|
292
|
-
c($, {
|
|
293
|
-
icon: "info",
|
|
294
|
-
variant: "tertiary"
|
|
295
|
-
})
|
|
296
|
-
]),
|
|
297
|
-
e(n) ? (f(), C("div", at, [
|
|
298
|
-
t("div", it, [
|
|
299
|
-
t("div", ct, i(e(o)("connect.setting.basicInfo.title")), 1),
|
|
300
|
-
t("div", rt, [
|
|
301
|
-
c(H, {
|
|
302
|
-
label: e(o)("connect.setting.basicInfo.membershipTitle"),
|
|
303
|
-
modelValue: e(n).name,
|
|
304
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e(n).name = s)
|
|
305
|
-
}, null, 8, ["label", "modelValue"]),
|
|
306
|
-
c(H, {
|
|
307
|
-
disabled: !0,
|
|
308
|
-
"model-value": e(n).business,
|
|
309
|
-
rules: V,
|
|
310
|
-
required: !0,
|
|
311
|
-
label: e(o)("connect.setting.basicInfo.memberAppUrl"),
|
|
312
|
-
"helper-text": e(A),
|
|
313
|
-
placeholder: e(n).business.toString(),
|
|
314
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) => e(n).url = s)
|
|
315
|
-
}, {
|
|
316
|
-
prepend: P(() => [...l[15] || (l[15] = [
|
|
317
|
-
E(" https:// ", -1)
|
|
318
|
-
])]),
|
|
319
|
-
append: P(() => [
|
|
320
|
-
E(" ." + i(e(F)) + " ", 1),
|
|
321
|
-
c($, {
|
|
322
|
-
icon: "content_copy",
|
|
323
|
-
variant: "tertiary",
|
|
324
|
-
onClick: l[1] || (l[1] = (s) => e(ve)(e(A)))
|
|
325
|
-
})
|
|
326
|
-
]),
|
|
327
|
-
_: 1
|
|
328
|
-
}, 8, ["model-value", "label", "helper-text", "placeholder"]),
|
|
329
|
-
c(Me, {
|
|
330
|
-
label: "Cover image",
|
|
331
|
-
class: "w-2/3 xs:w-full",
|
|
332
|
-
"image-fit": "cover",
|
|
333
|
-
"aspect-ratio": "3/1",
|
|
334
|
-
thumbnail: e(n).image || void 0,
|
|
335
|
-
"onUpdate:file": l[3] || (l[3] = async (s) => {
|
|
336
|
-
_.value = s, s || (e(n).image = null);
|
|
337
|
-
})
|
|
338
|
-
}, null, 8, ["thumbnail"]),
|
|
339
|
-
t("div", dt, [
|
|
340
|
-
t("div", mt, i(e(o)("connect.setting.counterApp.title")), 1),
|
|
341
|
-
c($, {
|
|
342
|
-
variant: "plain",
|
|
343
|
-
icon: "link",
|
|
344
|
-
label: e(o)("connect.setting.counterApp.linkDevice"),
|
|
345
|
-
onClick: ye
|
|
346
|
-
}, null, 8, ["label"]),
|
|
347
|
-
(f(!0), C(T, null, G(e(m).locationDevices, (s, w) => (f(), B(q, {
|
|
348
|
-
key: w,
|
|
349
|
-
variant: "outlined",
|
|
350
|
-
class: "flex items-center justify-between px-16 py-12"
|
|
351
|
-
}, {
|
|
352
|
-
default: P(() => [
|
|
353
|
-
t("div", null, [
|
|
354
|
-
t("p", ut, i(s.name || `Device ${s._id}`), 1),
|
|
355
|
-
t("p", pt, i(e(o)("connect.setting.counterApp.device.activationDate")) + " " + i(e(Fe)(e(qe)(s._id.toString())).format(
|
|
356
|
-
"D MMM YYYY"
|
|
357
|
-
)), 1),
|
|
358
|
-
t("p", ft, i(e(o)("connect.setting.counterApp.device.linkedLocation")) + " " + i(e(m).locations.find((M) => M._id == s.location).name), 1)
|
|
359
|
-
]),
|
|
360
|
-
c($, {
|
|
361
|
-
icon: "link_off",
|
|
362
|
-
variant: "tertiary",
|
|
363
|
-
onClick: (M) => he(s._id)
|
|
364
|
-
}, null, 8, ["onClick"])
|
|
365
|
-
]),
|
|
366
|
-
_: 2
|
|
367
|
-
}, 1024))), 128))
|
|
368
|
-
]),
|
|
369
|
-
t("div", vt, [
|
|
370
|
-
t("div", gt, [
|
|
371
|
-
E(i(e(o)("connect.setting.advertisement.title")) + " ", 1),
|
|
372
|
-
c(te, { variant: "premium" })
|
|
373
|
-
]),
|
|
374
|
-
c(q, {
|
|
375
|
-
variant: "outlined",
|
|
376
|
-
class: "p-16 flex items-center justify-between"
|
|
377
|
-
}, {
|
|
378
|
-
default: P(() => {
|
|
379
|
-
var s;
|
|
380
|
-
return [
|
|
381
|
-
t("div", null, [
|
|
382
|
-
t("div", yt, i(e(o)("connect.setting.advertisement.manageAd")), 1),
|
|
383
|
-
t("div", ht, i(e(o)("connect.setting.advertisement.activeAdsShowing", {
|
|
384
|
-
count: ((s = e(n).advertisements) == null ? void 0 : s.length) ?? 0
|
|
385
|
-
})), 1)
|
|
386
|
-
]),
|
|
387
|
-
c($, {
|
|
388
|
-
label: e(o)("connect.setting.advertisement.manage"),
|
|
389
|
-
icon: "arrow_forward",
|
|
390
|
-
"icon-position": "right",
|
|
391
|
-
disabled: !e(m).isPremium,
|
|
392
|
-
onClick: l[4] || (l[4] = (w) => e(x).push({
|
|
393
|
-
name: e(Oe)["$connect-SETTING_ADVERTISEMENTS"]
|
|
394
|
-
}))
|
|
395
|
-
}, null, 8, ["label", "disabled"])
|
|
396
|
-
];
|
|
397
|
-
}),
|
|
398
|
-
_: 1
|
|
399
|
-
})
|
|
400
|
-
]),
|
|
401
|
-
t("div", bt, [
|
|
402
|
-
l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
403
|
-
c(H, {
|
|
404
|
-
"model-value": ((oe = e(n)) == null ? void 0 : oe.brand) || "",
|
|
405
|
-
"max-length": 15,
|
|
406
|
-
label: e(o)("connect.setting.sms.brandName"),
|
|
407
|
-
"show-word-count": "",
|
|
408
|
-
"helper-text": e(o)("connect.setting.sms.messageFormat", {
|
|
409
|
-
brand: ((ne = e(n)) == null ? void 0 : ne.brand) || ""
|
|
410
|
-
}),
|
|
411
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) => e(n).brand = s)
|
|
412
|
-
}, null, 8, ["model-value", "label", "helper-text"]),
|
|
413
|
-
c(Be, {
|
|
414
|
-
modelValue: e(n).welcomeMessage,
|
|
415
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) => e(n).welcomeMessage = s),
|
|
416
|
-
"hide-credit-card": !0,
|
|
417
|
-
variables: e(I),
|
|
418
|
-
placeholder: e(ee)
|
|
419
|
-
}, null, 8, ["modelValue", "variables", "placeholder"])
|
|
420
|
-
]),
|
|
421
|
-
t("div", _t, [
|
|
422
|
-
l[17] || (l[17] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
423
|
-
t("div", wt, i(e(o)("connect.setting.email.description")), 1),
|
|
424
|
-
e(k).length ? O("", !0) : (f(), B($, {
|
|
425
|
-
key: 0,
|
|
426
|
-
onClick: we,
|
|
427
|
-
label: e(o)("connect.setting.email.addNewAddress")
|
|
428
|
-
}, null, 8, ["label"])),
|
|
429
|
-
e(k).length ? (f(), C(T, { key: 1 }, [
|
|
430
|
-
c(xe, {
|
|
431
|
-
"model-value": ((se = (le = e(n)) == null ? void 0 : le.email) == null ? void 0 : se.from) || null,
|
|
432
|
-
label: e(o)("connect.setting.email.fromAddress"),
|
|
433
|
-
items: e(k).map((s) => ({
|
|
434
|
-
label: s.emailAddress,
|
|
435
|
-
value: s.emailAddress
|
|
436
|
-
})),
|
|
437
|
-
placeholder: e(r) ? e(r).emailAddress : e(o)("connect.setting.email.noAddressAvailable"),
|
|
438
|
-
"onUpdate:modelValue": l[7] || (l[7] = (s) => {
|
|
439
|
-
var w, M;
|
|
440
|
-
(w = e(n)) != null && w.email || (e(n).email = {
|
|
441
|
-
from: s,
|
|
442
|
-
name: (M = e(k).find((z) => z.emailAddress == s)) == null ? void 0 : M.name
|
|
443
|
-
}), e(n).email.from = s || null;
|
|
444
|
-
}),
|
|
445
|
-
rules: [e(re).ruleAtPath(e(a), "email.from")]
|
|
446
|
-
}, null, 8, ["model-value", "label", "items", "placeholder", "rules"]),
|
|
447
|
-
c(H, {
|
|
448
|
-
"model-value": ((ie = (ae = e(n)) == null ? void 0 : ae.email) == null ? void 0 : ie.name) || null,
|
|
449
|
-
label: e(o)("connect.setting.email.senderName"),
|
|
450
|
-
disabled: "",
|
|
451
|
-
placeholder: ((ce = e(r)) == null ? void 0 : ce.name) || null,
|
|
452
|
-
"onUpdate:modelValue": l[8] || (l[8] = (s) => {
|
|
453
|
-
var w;
|
|
454
|
-
(w = e(n)) != null && w.email || (e(n).email = {
|
|
455
|
-
name: s
|
|
456
|
-
}), e(n).email.name = s || null;
|
|
457
|
-
}),
|
|
458
|
-
rules: [e(re).ruleAtPath(e(a), "email.name")]
|
|
459
|
-
}, null, 8, ["model-value", "label", "placeholder", "rules"])
|
|
460
|
-
], 64)) : O("", !0)
|
|
461
|
-
]),
|
|
462
|
-
t("div", Ct, [
|
|
463
|
-
t("div", xt, i(e(o)("connect.setting.whatsapp.title")), 1),
|
|
464
|
-
t("div", kt, i(e(o)("connect.setting.whatsapp.description")), 1),
|
|
465
|
-
c($, {
|
|
466
|
-
label: e(o)("connect.setting.whatsapp.manageChannel"),
|
|
467
|
-
icon: "open_in_new",
|
|
468
|
-
onClick: l[9] || (l[9] = (s) => Ce())
|
|
469
|
-
}, null, 8, ["label"])
|
|
470
|
-
]),
|
|
471
|
-
t("div", Vt, [
|
|
472
|
-
t("div", Ut, [
|
|
473
|
-
E(i(e(o)("connect.setting.freeCredit.title")) + " ", 1),
|
|
474
|
-
t("span", Ft, i(e(o)("connect.setting.freeCredit.posVersion")), 1)
|
|
475
|
-
]),
|
|
476
|
-
c(X, {
|
|
477
|
-
"model-value": e(n).freeCreditAsDiscount ?? !1,
|
|
478
|
-
"onUpdate:modelValue": l[10] || (l[10] = (s) => e(n).freeCreditAsDiscount = s),
|
|
479
|
-
label: e(o)("connect.setting.freeCredit.title"),
|
|
480
|
-
sublabel: e(o)("connect.setting.freeCredit.description"),
|
|
481
|
-
"label-placement": "right",
|
|
482
|
-
value: ""
|
|
483
|
-
}, null, 8, ["model-value", "label", "sublabel"])
|
|
484
|
-
]),
|
|
485
|
-
t("div", At, [
|
|
486
|
-
t("div", Pt, [
|
|
487
|
-
E(i(e(o)("connect.setting.memberCard.title")) + " ", 1),
|
|
488
|
-
c(te, { variant: "premium" })
|
|
489
|
-
]),
|
|
490
|
-
c(X, {
|
|
491
|
-
"model-value": e(n).cardEnable ?? !1,
|
|
492
|
-
"onUpdate:modelValue": l[11] || (l[11] = (s) => e(n).cardEnable = s),
|
|
493
|
-
label: "",
|
|
494
|
-
sublabel: e(o)("connect.setting.memberCard.description"),
|
|
495
|
-
"label-placement": "right",
|
|
496
|
-
value: "",
|
|
497
|
-
disabled: !e(m).isPremium
|
|
498
|
-
}, null, 8, ["model-value", "sublabel", "disabled"])
|
|
499
|
-
]),
|
|
500
|
-
e(g)() === "on" ? (f(), C("div", St, [
|
|
501
|
-
l[18] || (l[18] = t("div", { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, " Auto Revert Reward ", -1)),
|
|
502
|
-
c(X, {
|
|
503
|
-
"model-value": e(n).autoRevertReward ?? !1,
|
|
504
|
-
"onUpdate:modelValue": l[12] || (l[12] = (s) => e(n).autoRevertReward = s),
|
|
505
|
-
label: "",
|
|
506
|
-
sublabel: "When enabled, rewards are automatically reverted when a refund is processed in POS",
|
|
507
|
-
"label-placement": "right",
|
|
508
|
-
value: ""
|
|
509
|
-
}, null, 8, ["model-value"])
|
|
510
|
-
])) : O("", !0),
|
|
511
|
-
t("div", $t, [
|
|
512
|
-
t("div", Mt, i(e(o)("connect.setting.location.title")), 1),
|
|
513
|
-
c(Ee, {
|
|
514
|
-
label: e(o)("connect.setting.location.selectLabel"),
|
|
515
|
-
"model-value": e(n).targetLocation ?? null,
|
|
516
|
-
"onUpdate:modelValue": l[13] || (l[13] = (s) => e(n).targetLocation = s)
|
|
517
|
-
}, null, 8, ["label", "model-value"])
|
|
518
|
-
]),
|
|
519
|
-
t("div", Lt, [
|
|
520
|
-
t("div", Dt, i(e(o)("connect.setting.allowedPhoneCountries.title")), 1),
|
|
521
|
-
t("div", Rt, i(e(o)("connect.setting.allowedPhoneCountries.description")), 1),
|
|
522
|
-
c(nt, {
|
|
523
|
-
modelValue: e(n).allowedPhoneCountries,
|
|
524
|
-
"onUpdate:modelValue": l[14] || (l[14] = (s) => e(n).allowedPhoneCountries = s)
|
|
525
|
-
}, null, 8, ["modelValue"])
|
|
526
|
-
]),
|
|
527
|
-
t("div", It, [
|
|
528
|
-
c($, {
|
|
529
|
-
label: e(o)("connect.setting.action.update"),
|
|
530
|
-
type: "button",
|
|
531
|
-
onClick: be,
|
|
532
|
-
disabled: !!e(y).loadingQueue.length,
|
|
533
|
-
loading: !!e(y).loadingQueue.length
|
|
534
|
-
}, null, 8, ["label", "disabled", "loading"])
|
|
535
|
-
])
|
|
536
|
-
])
|
|
537
|
-
]),
|
|
538
|
-
t("div", Et, [
|
|
539
|
-
c(q, {
|
|
540
|
-
variant: "outlined",
|
|
541
|
-
class: "flex flex-col p-24 gap-8"
|
|
542
|
-
}, {
|
|
543
|
-
default: P(() => {
|
|
544
|
-
var s, w, M;
|
|
545
|
-
return [
|
|
546
|
-
t("div", Tt, i(e(o)("connect.setting.summary.title")), 1),
|
|
547
|
-
c(ke, { class: "my-4" }),
|
|
548
|
-
t("div", null, [
|
|
549
|
-
t("div", Bt, i(e(o)("connect.setting.summary.name")), 1),
|
|
550
|
-
t("div", Nt, i(e(n).name), 1)
|
|
551
|
-
]),
|
|
552
|
-
t("div", null, [
|
|
553
|
-
t("div", Ht, i(e(o)("connect.setting.summary.advertisement")), 1),
|
|
554
|
-
t("div", Ot, i((((s = e(n).advertisements) == null ? void 0 : s.length) ?? 0) || e(o)("connect.setting.summary.noAds")), 1)
|
|
555
|
-
]),
|
|
556
|
-
t("div", null, [
|
|
557
|
-
t("div", jt, i(e(o)("connect.setting.summary.freeCredit")), 1),
|
|
558
|
-
t("div", qt, i(e(n).freeCreditAsDiscount ? e(o)("connect.setting.summary.enabled") : e(o)("connect.setting.summary.disabled")), 1)
|
|
559
|
-
]),
|
|
560
|
-
t("div", null, [
|
|
561
|
-
t("div", Xt, i(e(o)("connect.setting.summary.locations")), 1),
|
|
562
|
-
t("div", zt, i(!e(n).targetLocation || e(n).targetLocation.length == e(K)().locations.length ? e(o)("connect.setting.summary.allLocations") : (M = (w = e(n)) == null ? void 0 : w.targetLocation) == null ? void 0 : M.map(
|
|
563
|
-
(z) => e(m).locations.find((Ve) => Ve._id == z).name
|
|
564
|
-
).join(", ")), 1)
|
|
565
|
-
])
|
|
566
|
-
];
|
|
567
|
-
}),
|
|
568
|
-
_: 1
|
|
569
|
-
})
|
|
570
|
-
])
|
|
571
|
-
])) : O("", !0)
|
|
572
|
-
], 64);
|
|
573
|
-
};
|
|
574
|
-
}
|
|
575
|
-
});
|
|
576
|
-
export {
|
|
577
|
-
ho as default
|
|
578
|
-
};
|