@feedmepos/mf-connect 0.1.124-dev → 0.1.125-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-C7BnLHSt.js → App-lOnYYWzx.js} +454 -455
- package/dist/{AuditLogs-BPKQdFga.js → AuditLogs-C5aMzrhF.js} +13 -13
- package/dist/{Bin-Bq7yY0I2.js → Bin-Dk0rAESN.js} +8 -8
- package/dist/{Broadcast-D52rPmVl.js → Broadcast-BBNpuceo.js} +12 -12
- package/dist/{CampaignAnalytic-DpiWtzIp.js → CampaignAnalytic-BgROt0Yu.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-B1eAAN64.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js} +9 -9
- package/dist/{Card-BQc7vud2.js → Card-fSEJaQmL.js} +23 -23
- package/dist/{Collections--VzkneGp.js → Collections-DVM1dOOo.js} +8 -8
- package/dist/{Credit-DhfAcw-p.js → Credit-CNDYRDiK.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2Csdg-3.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-DFz_2GZ1.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js} +36 -36
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Cr2_XbyY.js → EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js} +24 -24
- package/dist/{Experience-CUwbHfo5.js → Experience-Bqfx1Gjq.js} +13 -13
- package/dist/{FileSaver.min-DvZpiwMd.js → FileSaver.min-B4Jv2-PR.js} +1 -1
- package/dist/{Game-CI5-y0JJ.js → Game-DmbJYYaC.js} +13 -13
- package/dist/{GiftCardSetup-CGacqQ0j.js → GiftCardSetup-DHxDI5hU.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B6POxDLJ.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js} +7 -7
- package/dist/{Goals-fqJY9iMx.js → Goals-B-3PoUlx.js} +4 -4
- package/dist/{Grab-CAx1cCE4.js → Grab-BRfVvqAr.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DTKf7uR-.js → ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js} +1 -1
- package/dist/{Index-CT1Gnjsv.js → Index-vfYiu7G1.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BRQ12Yum.js → LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BRzuWJ1Y.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js} +1 -1
- package/dist/{LoyaltyDashboard-IJIDEBWf.js → LoyaltyDashboard-CHEIpAHw.js} +15 -15
- package/dist/{MainLayout-BMghr-wf.js → MainLayout-Cf1lEoHL.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BitJKgvd.js → MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js} +3 -3
- package/dist/{Marketing-Ckr9cp3w.js → Marketing-BBF8mHSo.js} +4 -4
- package/dist/{MarketingMaterialEdit-BIZnE8CY.js → MarketingMaterialEdit-COTHaH08.js} +6 -6
- package/dist/{Member-d1nPxr74.js → Member-BEyxcsNI.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js +1300 -0
- package/dist/{MemberImportHistory-CxX9iYhV.js → MemberImportHistory-zs8VJsoI.js} +7 -7
- package/dist/{MemberList-DUzYpxhj.js → MemberList-2-qKmm5p.js} +14 -14
- package/dist/{MemberTransactions-BFM3ybeo.js → MemberTransactions-DOsMBs30.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-B5j0YBix.js → MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DsSHSbBB.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js} +1 -1
- package/dist/{Mission-De9BF5wb.js → Mission-Bo7tuR13.js} +14 -14
- package/dist/{Overview-Pmxqv6qp.js → Overview-BrGVMqE1.js} +21 -21
- package/dist/{Overview-DeHo3gef.js → Overview-CnoidK6U.js} +4 -4
- package/dist/{Point-DE_Cc85N.js → Point-DJ2-HEmx.js} +14 -14
- package/dist/{Promotion-cZDzgho4.js → Promotion-D7Q3EY3d.js} +14 -14
- package/dist/{Queue-DmDbrtTk.js → Queue-CLXhXQeU.js} +13 -13
- package/dist/{Record-uxNNOvmK.js → Record-CCF7K-pJ.js} +9 -9
- package/dist/{Review-CIIn_Bdx.js → Review-BZH_tGDe.js} +2 -2
- package/dist/{ReviewFacebookCallback-CO6FxHzc.js → ReviewFacebookCallback-Bs-oiDMC.js} +5 -5
- package/dist/{ReviewGoogleCallback-B7kmGwb_.js → ReviewGoogleCallback-eHLJko2f.js} +5 -5
- package/dist/{Reward-Bj1snFu8.js → Reward-ea05o2qi.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BO-36dE4.js → RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-b7ZEMd4s.js → RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js} +15 -15
- package/dist/{Segment-BgJgWa6C.js → Segment-z3BAGTqr.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-D2TDoZgQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CEBH11hR.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js} +4 -4
- package/dist/Setting-D0nKTgej.js +578 -0
- package/dist/{SettingAdvertisements-vdUtIXwC.js → SettingAdvertisements-BUGsMAdi.js} +12 -12
- package/dist/{Settings-C6yJ1WEB.js → Settings-C2loJXla.js} +5 -5
- package/dist/{Store-DgltT0RA.js → Store-CbhAyr1j.js} +27 -27
- package/dist/{StoreRewards-BXH_5cYL.js → StoreRewards-DHt64JEN.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js +1297 -0
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DjCO9U0c.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js} +2 -2
- package/dist/{Tier-CqfHGUX0.js → Tier-CH5DwMYW.js} +122 -115
- package/dist/{Title-B5VnUNiS.js → Title-DNLw_rOp.js} +23 -23
- package/dist/{Transaction-BZh1Q9Lj.js → Transaction-DCuU6B7G.js} +2 -2
- package/dist/Upselling-DBsfEEvV.js +214 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Buj7CRlQ.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js} +6 -6
- package/dist/{Voucher-CZJdV2Ok.js → Voucher-BVztDyI0.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-65x2VrpD.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js} +12 -12
- package/dist/{WhatsappAccount-DsRilNC5.js → WhatsappAccount-CobyTNkp.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Bn26qwx5.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js} +1 -1
- package/dist/{WhatsappBot-CpzMaTss.js → WhatsappBot-xc4QD061.js} +6 -6
- package/dist/WhatsappBotLogs-eiDWJkN7.js +509 -0
- package/dist/{WhatsappBotSettings-DSUPGC-p.js → WhatsappBotSettings-D4cMFn3z.js} +65 -65
- package/dist/{WhatsappLayout-BCWYcQmD.js → WhatsappLayout-C8DejCWo.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DyxyISRP.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-Db-Z7cY_.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js} +2 -2
- package/dist/{app-BQeODViN.js → app-Bik4hlr7.js} +14726 -13780
- package/dist/app.js +1 -1
- package/dist/{base.export-kSFLDDoC.js → base.export-BRw8QzdM.js} +2 -2
- package/dist/{business-EP-Do3Ew.js → business-Dv2S3X12.js} +1 -1
- package/dist/{campaign-BjnUPowX.js → campaign-CNDBsfeQ.js} +6 -6
- package/dist/{campaign-C8GgaCub.js → campaign-witQNfmZ.js} +8 -8
- package/dist/{campaign.fn-DQ--gL4B.js → campaign.fn-Dr4w5BrO.js} +31 -31
- package/dist/{collection.fn-BhXecwh5.js → collection.fn-C0Dx5_1j.js} +2 -2
- package/dist/{currency-CGMNh1Q_.js → currency-lP50Csky.js} +1 -1
- package/dist/{duplicateCampaign-icqF8Na9.js → duplicateCampaign-BfLxdQWg.js} +2 -2
- package/dist/{effect-Bc6oGIWd.js → effect-6bi20cxS.js} +1 -1
- package/dist/{email-addresses-B3KWfUMk.js → email-addresses-BmujKG-l.js} +25 -25
- package/dist/{feature-flag-HhjvSuDm.js → feature-flag-DdxBiP1p.js} +200 -186
- package/dist/{helper-D1BYvcED.js → helper-DSmzzBjW.js} +1 -1
- package/dist/{index-BkevK_Hp.js → index-2JiR1s6M.js} +1 -1
- package/dist/{index-C3MK8Twg.js → index-373LDTQ7.js} +1 -1
- package/dist/{index-Br2SLVsn.js → index-83SeIfhc.js} +7 -7
- package/dist/{index-gMrtUwSD.js → index-B0Ddw1na.js} +129 -129
- package/dist/index-BD3HIAoL.js +86 -0
- package/dist/{index-CsYTLmPa.js → index-BNdhRCyN.js} +1 -1
- package/dist/{index-DOSuhtdE.js → index-BTud0ICl.js} +1 -1
- package/dist/{index-GQv1_jaJ.js → index-BYlnybS9.js} +2 -2
- package/dist/{index-DCC3pLug.js → index-CCVnmv0l.js} +2 -2
- package/dist/{index-Yw4M7v7m.js → index-CEscBR6G.js} +3 -2
- package/dist/{index-oIo5Cful.js → index-CFhazRum.js} +1048 -1047
- package/dist/{index-I9lmcd2w.js → index-CH-uRaZH.js} +56 -53
- package/dist/{index-VLFerh-X.js → index-CH1MpmvS.js} +11 -11
- package/dist/{index-Bunp1bt_.js → index-CRd8uD-d.js} +1 -1
- package/dist/{index-DiCgGQoC.js → index-CdQGmMRo.js} +2 -2
- package/dist/{index-C-46QHFh.js → index-Cei8qPkg.js} +4 -4
- package/dist/{index-BIBcfAw5.js → index-D-Ln1G1Y.js} +1 -1
- package/dist/{index-D2TnjKPP.js → index-DGctCMca.js} +2 -2
- package/dist/{index-Ptcqv0W6.js → index-DGz2Y25B.js} +2 -2
- package/dist/{index-DeqpfWLa.js → index-DMT5xoCz.js} +3 -3
- package/dist/{index-cPPWotJe.js → index-DjlmY7Od.js} +5 -5
- package/dist/{index.esm2017-DUZpLdEB.js → index.esm2017-BcULj0z4.js} +1 -1
- package/dist/{loading-DhpcQgdj.js → loading-DmCJ1FiL.js} +1 -1
- package/dist/{lodash-r4AR7GJC.js → lodash-FEhiisF1.js} +1 -1
- package/dist/{member-import-CogEef9H.js → member-import-BLxPVKon.js} +22 -13
- package/dist/{membership-BQFkjRjs.js → membership-Dq3LSd35.js} +2 -2
- package/dist/{money-Ifqd4pyC.js → money-D2RIG9zm.js} +1 -1
- package/dist/{number-C9Tw_Ncm.js → number-D87ngEVu.js} +1 -1
- package/dist/objectid-CuPXVpKE.js +145 -0
- package/dist/{onboarding-D4dm_rxU.js → onboarding-YlSAcar0.js} +20 -20
- package/dist/{onboardingSetup-DtNZUoRr.js → onboardingSetup-qgS6ktSi.js} +2 -2
- package/dist/{plugins-DGI9Fkiu.js → plugins-B3B_2EiB.js} +3 -3
- package/dist/{reward-DTtejZqM.js → reward-BtEe_1ZU.js} +1 -1
- package/dist/{rule-C4N3ce3c.js → rule-PmdBF8Cb.js} +10 -10
- package/dist/{template-YhWRyNGp.js → template-D6wO9_aV.js} +6 -6
- package/dist/{timezone-5rYhX7XZ.js → timezone-DPnmvzUK.js} +1 -1
- package/dist/{transaction.fn-Ba_U7HdT.js → transaction.fn-BavSYDYI.js} +2 -2
- package/dist/{trigger-B8I1aO6Y.js → trigger-CsIScoNI.js} +5 -5
- package/dist/{useMarketingMaterialActions-CTOFHmlL.js → useMarketingMaterialActions-CHBfA7iR.js} +4 -4
- package/dist/{usePagination-3wAPVCOp.js → usePagination-DXPBbII4.js} +1 -1
- package/dist/{user-Ds4DW_-Y.js → user-B8js0aIx.js} +1 -1
- package/dist/{vue-i18n-Bqlt_-jA.js → vue-i18n-R6DAeTzc.js} +193 -193
- package/dist/{xlsx-xlOCvuAq.js → xlsx-CYugHPG9.js} +166 -166
- package/dist/{zod-GVNjvrpT.js → zod-BEFViLGC.js} +1 -1
- package/package.json +1 -1
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DI4XM_rJ.js +0 -1281
- package/dist/Setting-DpEI72mW.js +0 -574
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DqlluwMB.js +0 -1319
- package/dist/Upselling-Cf24ub-9.js +0 -1055
- package/dist/WhatsappBotLogs-DRF8VufQ.js +0 -372
- package/dist/index-VyoufKYY.js +0 -74
- package/dist/objectid-D7dqM1a3.js +0 -145
|
@@ -0,0 +1,578 @@
|
|
|
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-BEFViLGC.js";
|
|
4
|
+
import { useDialog as ue } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as Ae } from "./loading-DmCJ1FiL.js";
|
|
6
|
+
import { u as Pe } from "./app-wDQR6dpb.js";
|
|
7
|
+
import { u as K, l as pe } from "./business-Dv2S3X12.js";
|
|
8
|
+
import { u as fe } from "./membership-Dq3LSd35.js";
|
|
9
|
+
import { P as Q } from "./index-DMT5xoCz.js";
|
|
10
|
+
import { m as Se, b as $e } from "./index-Cei8qPkg.js";
|
|
11
|
+
import { _ as Me } from "./ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js";
|
|
12
|
+
import { c as ve, p as Le, f as j } from "./plugins-B3B_2EiB.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-ylUyqix_.js";
|
|
15
|
+
import { u as ge } from "./vue-i18n-R6DAeTzc.js";
|
|
16
|
+
import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.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-Bik4hlr7.js";
|
|
20
|
+
import { b as je } from "./feature-flag-DdxBiP1p.js";
|
|
21
|
+
import { m as W } from "./index-CCVnmv0l.js";
|
|
22
|
+
import { S as de } from "./index-DjlmY7Od.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-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/" };
|
|
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-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/" };
|
|
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
|
+
};
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import { defineComponent as J, ref as y, computed as z, onMounted as K, resolveComponent as A, openBlock as u, createElementBlock as b, createElementVNode as s, createVNode as d, createTextVNode as W, toDisplayString as v, unref as e, withCtx as k, createBlock as B, Fragment as Y, renderList as Z, createCommentVNode as N, isRef as ee } from "vue";
|
|
2
|
-
import { u as te } from "./loading-
|
|
2
|
+
import { u as te } from "./loading-DmCJ1FiL.js";
|
|
3
3
|
import { u as ne } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { u as se } from "./business-
|
|
5
|
-
import { u as oe } from "./membership-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { b as ae } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { f as D, p as ie } from "./plugins-
|
|
11
|
-
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ce } from "./vue-i18n-
|
|
4
|
+
import { u as se } from "./business-Dv2S3X12.js";
|
|
5
|
+
import { u as oe } from "./membership-Dq3LSd35.js";
|
|
6
|
+
import "./index-DMT5xoCz.js";
|
|
7
|
+
import { b as ae } from "./index-Cei8qPkg.js";
|
|
8
|
+
import "./index-2JiR1s6M.js";
|
|
9
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js";
|
|
10
|
+
import { f as D, p as ie } from "./plugins-B3B_2EiB.js";
|
|
11
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js";
|
|
12
|
+
import { u as ce } from "./vue-i18n-R6DAeTzc.js";
|
|
13
13
|
import { useRouter as de } from "vue-router";
|
|
14
|
-
import { m as me } from "./index-
|
|
15
|
-
import { R as ue } from "./app-
|
|
14
|
+
import { m as me } from "./index-CCVnmv0l.js";
|
|
15
|
+
import { R as ue } from "./app-Bik4hlr7.js";
|
|
16
16
|
import { a as ve } from "./object-BYyQ0PZp.js";
|
|
17
17
|
const pe = { class: "min-h-screen bg-fm-color-neutral-gray-50" }, fe = { class: "bg-white border-b border-fm-color-neutral-gray-100 sticky top-0 z-10" }, ge = { class: "px-24 py-16 flex items-center justify-between" }, _e = { class: "flex items-center gap-16" }, he = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, be = {
|
|
18
18
|
key: 0,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { defineComponent as M, useSlots as G, ref as F, watch as z, computed as b, openBlock as t, createElementBlock as s, createElementVNode as a, normalizeClass as N, unref as e, toDisplayString as d, Fragment as w, createBlock as U, createCommentVNode as C, createVNode as E, renderSlot as W, onMounted as q, withCtx as L, renderList as R, createStaticVNode as J } from "vue";
|
|
2
|
-
import { u as K } from "./loading-
|
|
3
|
-
import { u as Q } from "./business-
|
|
2
|
+
import { u as K } from "./loading-DmCJ1FiL.js";
|
|
3
|
+
import { u as Q } from "./business-Dv2S3X12.js";
|
|
4
4
|
import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as O } from "./vue-i18n-
|
|
5
|
+
import { u as O } from "./vue-i18n-R6DAeTzc.js";
|
|
6
6
|
import { h as A } from "./moment-D7p2TMB-.js";
|
|
7
7
|
import { g as Z, f as ee } from "./google-BQK68wbe.js";
|
|
8
|
-
import { R as ne } from "./app-
|
|
8
|
+
import { R as ne } from "./app-Bik4hlr7.js";
|
|
9
9
|
import { useRouter as oe } from "vue-router";
|
|
10
|
-
import { r as $ } from "./index-
|
|
10
|
+
import { r as $ } from "./index-CH1MpmvS.js";
|
|
11
11
|
const te = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, ce = ["src"], ae = { class: "flex flex-col flex-1 gap-4 min-w-0" }, se = { class: "fm-typo-en-body-md-600 capitalize" }, re = { class: "truncate" }, le = { class: "truncate" }, ie = {
|
|
12
12
|
key: 1,
|
|
13
13
|
class: "truncate"
|