@feedmepos/mf-connect 0.1.121-prod → 0.1.122-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-C4T5UWGw.js → App-BKnL7b6M.js} +10 -10
- package/dist/{Bin-ude598pY.js → Bin-BqqQF1h_.js} +8 -8
- package/dist/{Broadcast-BtJbmDzX.js → Broadcast-U5rJmhdd.js} +11 -11
- package/dist/{CampaignAnalytic-DxC_sgPy.js → CampaignAnalytic-ClwXxxzE.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CBy6cXYx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DyeoWFcd.js} +9 -9
- package/dist/{Card-B6Qt_KqI.js → Card-DKikDYES.js} +22 -22
- package/dist/{Collections-BCsbhQJM.js → Collections-CD0xjFqI.js} +9 -9
- package/dist/{Credit-CCl-UjVj.js → Credit-BWcvFlb2.js} +11 -11
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DE_JYKS8.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B2RizWP8.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-CReXb9gY.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-D38JB0FV.js} +36 -36
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-D_wHxBmj.js → EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js} +6 -6
- package/dist/{Experience-BZfx679t.js → Experience-dqXYj1Fv.js} +12 -12
- package/dist/{FileSaver.min-aAU7_riE.js → FileSaver.min-DdJMn696.js} +1 -1
- package/dist/{Game-L-RmEmNY.js → Game-BGQXqzck.js} +12 -12
- package/dist/{GiftCardSetup-BA_I83wm.js → GiftCardSetup-C3MR25fp.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-CtiPxBgn.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-9dL1kVPG.js} +7 -7
- package/dist/{Goals-Dur5LKYk.js → Goals-DA2jHEZa.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js → ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js} +1 -1
- package/dist/{Index-_sUu1gDp.js → Index-WOvryalE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-BgweoLh2.js → LocationPicker.vue_vue_type_script_setup_true_lang-Bu1DjV9M.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-BjvB1fab.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DiLtSIXt.js} +1 -1
- package/dist/{LoyaltyDashboard-DgLAdZiP.js → LoyaltyDashboard-BKN2vBqc.js} +15 -15
- package/dist/{MainLayout-DOXx217V.js → MainLayout-DizL-dxl.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BwT0vGID.js → MainLayout.vue_vue_type_script_setup_true_lang-El0YeLnE.js} +3 -3
- package/dist/{Marketing-CoBYtHdr.js → Marketing-B77EoiCf.js} +4 -4
- package/dist/{MarketingMaterialEdit-R2jgDJKr.js → MarketingMaterialEdit-C_qFEur7.js} +6 -6
- package/dist/{Member-CQicHGEK.js → Member-TYDrU3Tk.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BY57N2OM.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BuzMeXR9.js} +23 -23
- package/dist/{MemberImportHistory-C_xDFYQh.js → MemberImportHistory-l7dVJdEH.js} +7 -7
- package/dist/{MemberList-DaOsohKg.js → MemberList-DiuyeJx_.js} +14 -14
- package/dist/{MemberTransactions-DOCrHQ2s.js → MemberTransactions-BJ27Gd5P.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-ep7Yqi5n.js → MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CTorzIeM.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DgE7HPsT.js} +1 -1
- package/dist/{Mission-BeNYiQ9K.js → Mission-C63hh8Ra.js} +13 -13
- package/dist/{Overview-8QoQ_gHU.js → Overview-CVdvQK6q.js} +20 -20
- package/dist/{Overview-BMXpAv-n.js → Overview-DP-4Kpuj.js} +4 -4
- package/dist/{Point-Dyq5SXT2.js → Point-DXH4kJNQ.js} +13 -13
- package/dist/{Promotion-BLAsz0mu.js → Promotion-Cn-wAx6m.js} +13 -13
- package/dist/{Queue-qmf3ymVp.js → Queue-CEEUE-UT.js} +12 -12
- package/dist/{Record-DMqhKlIc.js → Record-BFIjLKJD.js} +9 -9
- package/dist/{Review-DDGtAXxX.js → Review-BMRfKri0.js} +2 -2
- package/dist/{ReviewFacebookCallback-jCP7vNJ3.js → ReviewFacebookCallback-CPYIC3RS.js} +5 -5
- package/dist/{ReviewGoogleCallback-kIu4wO-x.js → ReviewGoogleCallback-Cflqv5Z5.js} +5 -5
- package/dist/{Reward-B9eyzyk7.js → Reward-C-qGtzpu.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-B5oNDez7.js → RewardGroup.vue_vue_type_script_setup_true_lang-kxJ5i8xe.js} +13 -13
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Cyo98lN8.js → RuleGroup.vue_vue_type_script_setup_true_lang-BlRmshrE.js} +15 -15
- package/dist/{Segment-CSenE8-8.js → Segment-Bx1pfw4Q.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-gUmEIxLj.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-vuH9xdOi.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-5m7qY393.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CZHpyimI.js} +4 -4
- package/dist/Setting-CEcpuE_O.js +578 -0
- package/dist/{SettingAdvertisements-B7NU1mTE.js → SettingAdvertisements-CZlIQ5m_.js} +12 -12
- package/dist/{Settings-CSeRLtGl.js → Settings-CPLibjQy.js} +5 -5
- package/dist/{Store-BouP_m9K.js → Store-BhZulzuc.js} +26 -26
- package/dist/{StoreRewards-NX24LqS_.js → StoreRewards-CvYgJVFU.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-B2zDGFAw.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Dqj5zIgi.js} +67 -35
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js → TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js} +2 -2
- package/dist/{Tier-Cg5KAErk.js → Tier-BPPSaEe0.js} +25 -25
- package/dist/{Title-BcziCAh4.js → Title-CccRUVZV.js} +23 -23
- package/dist/{Transaction-DK0Splad.js → Transaction-ULzAt-u7.js} +2 -2
- package/dist/{Upselling-1RSD_l_k.js → Upselling-D2tSUTkE.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-C-mg8LqR.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CoqrSuWu.js} +6 -6
- package/dist/{Voucher-DX6-GX17.js → Voucher-Cz7IMRNl.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7KZNW6gS.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BaxHZN76.js} +12 -12
- package/dist/{WhatsappAccount-qbnBp7mv.js → WhatsappAccount-BsxVHiZZ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BAw8wUAu.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DJnkGMF1.js} +1 -1
- package/dist/{WhatsappBot-Dkx24HI7.js → WhatsappBot-sd6erVZk.js} +6 -6
- package/dist/{WhatsappBotLogs-CR9RPc-1.js → WhatsappBotLogs-DNbGWyOY.js} +6 -6
- package/dist/{WhatsappBotSettings-DF97RSSV.js → WhatsappBotSettings-DXa_e7-a.js} +4 -4
- package/dist/{WhatsappLayout-JAye9JZI.js → WhatsappLayout-DvBPIB5f.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-toCNd_Ip.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CRDouGvj.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DvMdQKET.js → ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js} +2 -2
- package/dist/{app-O2-Xtjxu.js → app-4x06ItoL.js} +67 -67
- package/dist/app.js +1 -1
- package/dist/{base.export-0NAAWE2x.js → base.export-DS0xThWi.js} +2 -2
- package/dist/{business-DO-6gAei.js → business-D0I7G-5H.js} +1 -1
- package/dist/{campaign-CKpTYx8r.js → campaign-BuJCjEH-.js} +8 -8
- package/dist/{campaign-CjtbytTA.js → campaign-CC9U7rkr.js} +2 -2
- package/dist/{campaign.fn-DNva0Lzi.js → campaign.fn-CLUOgMgc.js} +83 -83
- package/dist/{collection.fn-DgVYvv2u.js → collection.fn-CUifllLR.js} +2 -2
- package/dist/{currency-RCSoljIc.js → currency-BPhBDOpt.js} +1 -1
- package/dist/{effect-Cic-yJ5a.js → effect-DKHOR-B3.js} +1 -1
- package/dist/{email-addresses-Cz7nxyM7.js → email-addresses-B-VEReRV.js} +2 -2
- package/dist/{feature-flag-BHFUKA3S.js → feature-flag-Cjl6gaO5.js} +190 -176
- package/dist/{helper-H_gC1vRi.js → helper-CBLh1PWR.js} +1 -1
- package/dist/{index-B-RKMcrS.js → index-BBsqcXfJ.js} +1 -1
- package/dist/{index-C-vDa3pL.js → index-B_iKSOXp.js} +1 -1
- package/dist/{index-BFxCHHSQ.js → index-BwgjSrwa.js} +2 -2
- package/dist/{index-BEFoWcsk.js → index-BzKKNuLc.js} +2 -2
- package/dist/{index-bMAgU-Xo.js → index-C1QA2M4I.js} +2 -2
- package/dist/{index-G8S_j3nj.js → index-CGcWs8B5.js} +555 -525
- package/dist/{index-BU-CbflW.js → index-CWJi_hw-.js} +2 -2
- package/dist/{index-CTDzF7d_.js → index-D3B392A3.js} +3 -3
- package/dist/{index-DZBbFrO4.js → index-DL_UYO4J.js} +113 -102
- package/dist/{index-DVt628Qh.js → index-DenQ8DV4.js} +1 -1
- package/dist/index-Djf4TpYV.js +69 -0
- package/dist/{index-D5_gAcWw.js → index-EpqQFMu2.js} +3 -2
- package/dist/{index-DVIKJ8Fi.js → index-Ob5I-Sex.js} +1 -1
- package/dist/{index-zsTY_sDR.js → index-RMsQnHez.js} +1 -1
- package/dist/{index-rQ30JRKa.js → index-ZTC5k9Jb.js} +1 -1
- package/dist/{index-DlRDCDW-.js → index-bc7bIIVP.js} +3 -3
- package/dist/{index-ka7lQ9t1.js → index-kClA31M9.js} +8 -8
- package/dist/{index-CSNMZuv4.js → index-nnmfOPuw.js} +1 -1
- package/dist/{index-GJRqAxuJ.js → index-umYXnOWc.js} +8 -8
- package/dist/{index-DRuHmNoi.js → index-vqUiCeKb.js} +1 -1
- package/dist/{index.esm2017-Cf5e9e4I.js → index.esm2017-DMKkHR06.js} +37 -37
- package/dist/{loading-Q15eugE9.js → loading-Cb4RgEo7.js} +1 -1
- package/dist/{lodash-B9y2Z6FT.js → lodash-CMazTe9d.js} +1 -1
- package/dist/{member-import-B7-pNlAu.js → member-import-Df1y7FvX.js} +1 -1
- package/dist/{membership-FjTQN8-W.js → membership-yvDb2HS8.js} +2 -2
- package/dist/{money-DpnjYb20.js → money-rs9shyUy.js} +1 -1
- package/dist/{number-DQpgkGJp.js → number-Ecq6MjRx.js} +1 -1
- package/dist/{objectid-DDT17fUp.js → objectid-BVri-Vim.js} +9 -9
- package/dist/{onboarding-j-EtZDu5.js → onboarding-DugmLfNG.js} +3 -3
- package/dist/{onboardingSetup-B4yc4Acp.js → onboardingSetup-DMzNxJC4.js} +2 -2
- package/dist/{plugins-TZdigPwR.js → plugins-CvhBJQEK.js} +3 -3
- package/dist/{reward-BpRIHbOy.js → reward-BGUOUKZn.js} +1 -1
- package/dist/{rule-PjQfvtJP.js → rule-C87YbT3F.js} +3 -3
- package/dist/{rule-builder-Vloq9R4R.js → rule-builder-lzMi7irV.js} +1 -1
- package/dist/{template-CeZkljlm.js → template-BfFSbH04.js} +7 -7
- package/dist/{timezone-BmgCN50d.js → timezone-uP_heouv.js} +1 -1
- package/dist/{transaction.fn-C9wUfIRo.js → transaction.fn-CiGhIgzP.js} +2 -2
- package/dist/{trigger-D9XVMrkP.js → trigger-dOOSh-Yp.js} +5 -5
- package/dist/{useMarketingMaterialActions-2_HeLxeK.js → useMarketingMaterialActions-BRenBblP.js} +4 -4
- package/dist/{usePagination-Do3Rw4mx.js → usePagination-DNOc8GFS.js} +1 -1
- package/dist/{user-CJpvF5mn.js → user-DTAGYy-F.js} +1 -1
- package/dist/{vue-i18n-CJsKXxJX.js → vue-i18n-D8wuxuA4.js} +333 -333
- package/dist/{xlsx-CaTmMdcM.js → xlsx-BU0bDwTF.js} +440 -440
- package/dist/{zod-BcPs1As4.js → zod-mPFqdty8.js} +1 -1
- package/package.json +1 -1
- package/dist/Setting-CshEhFJ0.js +0 -563
- package/dist/index-Dw5ikwFR.js +0 -55
package/package.json
CHANGED
package/dist/Setting-CshEhFJ0.js
DELETED
|
@@ -1,563 +0,0 @@
|
|
|
1
|
-
import { defineComponent as K, ref as V, computed as E, onMounted as me, resolveComponent as u, openBlock as f, createBlock as N, withCtx as S, createElementVNode as t, createVNode as c, unref as e, isRef as W, watch as Ve, createElementBlock as k, toDisplayString as i, Fragment as B, renderList as Z, createTextVNode as T, createCommentVNode as X } from "vue";
|
|
2
|
-
import { h as Ue } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as ce } from "./zod-BcPs1As4.js";
|
|
4
|
-
import { useDialog as de } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as Fe } from "./loading-Q15eugE9.js";
|
|
6
|
-
import { u as Ae } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as G, l as ue } from "./business-DO-6gAei.js";
|
|
8
|
-
import { u as pe } from "./membership-FjTQN8-W.js";
|
|
9
|
-
import { P as z } from "./index-CTDzF7d_.js";
|
|
10
|
-
import { m as Pe, b as $e } from "./index-DZBbFrO4.js";
|
|
11
|
-
import { _ as Se } from "./ImageInput.vue_vue_type_script_setup_true_lang-ALdW6e1t.js";
|
|
12
|
-
import { c as fe, p as Me, f as O } from "./plugins-TZdigPwR.js";
|
|
13
|
-
import { b as Le } from "./browser-BSAOEeIM.js";
|
|
14
|
-
import { p as De, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-IGh7Kiot.js";
|
|
15
|
-
import { u as ge } from "./vue-i18n-CJsKXxJX.js";
|
|
16
|
-
import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-ep7Yqi5n.js";
|
|
17
|
-
import { useCoreStore as Ne } from "@feedmepos/mf-common";
|
|
18
|
-
import { useRouter as Re } from "vue-router";
|
|
19
|
-
import { R as He } from "./app-O2-Xtjxu.js";
|
|
20
|
-
import { m as Q } from "./index-rQ30JRKa.js";
|
|
21
|
-
import { S as re } from "./index-bMAgU-Xo.js";
|
|
22
|
-
import { o as Oe } from "./objectId-dwaoBfJX.js";
|
|
23
|
-
import { a as je } from "./object-BYyQ0PZp.js";
|
|
24
|
-
async function qe(g, x = 350) {
|
|
25
|
-
try {
|
|
26
|
-
return await Le.toDataURL(g, {
|
|
27
|
-
width: x,
|
|
28
|
-
margin: 0
|
|
29
|
-
});
|
|
30
|
-
} catch (v) {
|
|
31
|
-
console.error(v);
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
var Xe = { 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/" };
|
|
35
|
-
const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt-16" }, Ye = ["src"], We = /* @__PURE__ */ K({
|
|
36
|
-
__name: "LinkDeviceDialog",
|
|
37
|
-
setup(g) {
|
|
38
|
-
const x = G(), v = pe(), h = de(), p = V(), y = V(), U = Xe.crmUrl, b = V(), D = E(() => v.membership), o = E(() => {
|
|
39
|
-
var m, a;
|
|
40
|
-
return `https://${(m = D.value) != null && m.url ? D.value.url : (a = D.value) == null ? void 0 : a.business}.${U}`;
|
|
41
|
-
});
|
|
42
|
-
async function F(m) {
|
|
43
|
-
const a = await ue.getOtp(m);
|
|
44
|
-
return `${o.value}?link-device=${a.otp}`;
|
|
45
|
-
}
|
|
46
|
-
async function A(m) {
|
|
47
|
-
const a = await F(m);
|
|
48
|
-
b.value = a, p.value = await qe(a);
|
|
49
|
-
}
|
|
50
|
-
return me(async () => {
|
|
51
|
-
if (await x.readLocations(), !x.locations.length) {
|
|
52
|
-
h.close();
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
const m = x.locations[0]._id;
|
|
56
|
-
y.value = m, await A(m);
|
|
57
|
-
}), (m, a) => {
|
|
58
|
-
const _ = u("FmIcon"), P = u("FmSelect"), w = u("FmButton"), n = u("FmCard");
|
|
59
|
-
return f(), N(n, { class: "p-24 max-w-[350px]" }, {
|
|
60
|
-
default: S(() => [
|
|
61
|
-
t("div", ze, [
|
|
62
|
-
a[3] || (a[3] = t("div", null, [
|
|
63
|
-
t("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
64
|
-
t("div", { class: "fm-typo-en-body-sm-400" }, " Open your camera on your device to link counter app. ")
|
|
65
|
-
], -1)),
|
|
66
|
-
c(_, {
|
|
67
|
-
name: "close",
|
|
68
|
-
onClick: a[0] || (a[0] = ($) => e(h).close()),
|
|
69
|
-
class: "cursor-pointer"
|
|
70
|
-
})
|
|
71
|
-
]),
|
|
72
|
-
t("div", Qe, [
|
|
73
|
-
c(P, {
|
|
74
|
-
modelValue: e(y),
|
|
75
|
-
"onUpdate:modelValue": [
|
|
76
|
-
a[1] || (a[1] = ($) => W(y) ? y.value = $ : null),
|
|
77
|
-
A
|
|
78
|
-
],
|
|
79
|
-
label: "Select Location",
|
|
80
|
-
items: e(x).locationItems.filter(($) => !!$.value)
|
|
81
|
-
}, null, 8, ["modelValue", "items"]),
|
|
82
|
-
t("img", {
|
|
83
|
-
src: e(p),
|
|
84
|
-
class: "aspect-square w-full"
|
|
85
|
-
}, null, 8, Ye),
|
|
86
|
-
c(w, {
|
|
87
|
-
class: "mx-auto",
|
|
88
|
-
variant: "plain",
|
|
89
|
-
icon: "content_copy",
|
|
90
|
-
onClick: a[2] || (a[2] = ($) => e(fe)(e(b)))
|
|
91
|
-
})
|
|
92
|
-
])
|
|
93
|
-
]),
|
|
94
|
-
_: 1
|
|
95
|
-
});
|
|
96
|
-
};
|
|
97
|
-
}
|
|
98
|
-
}), Ze = { class: "space-y-4" }, Ge = { key: 0 }, Ke = { key: 1 }, Je = { key: 2 }, et = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, tt = /* @__PURE__ */ K({
|
|
99
|
-
__name: "AllowedPhoneCountriesSelect",
|
|
100
|
-
props: {
|
|
101
|
-
modelValue: {}
|
|
102
|
-
},
|
|
103
|
-
emits: ["update:modelValue"],
|
|
104
|
-
setup(g, { emit: x }) {
|
|
105
|
-
const { t: v } = ge(), h = g, p = x, y = [...new Set(z.map((m) => m.phoneCode))], U = V(""), b = V(!1), D = E(() => {
|
|
106
|
-
const m = U.value.toLowerCase();
|
|
107
|
-
return z.filter(
|
|
108
|
-
(a) => a.name.toLowerCase().includes(m) || a.phoneCode.toLowerCase().includes(m)
|
|
109
|
-
);
|
|
110
|
-
});
|
|
111
|
-
function o(m, a) {
|
|
112
|
-
const _ = m ? De([...h.modelValue || []], a) : Ie(h.modelValue || y, a);
|
|
113
|
-
p("update:modelValue", _);
|
|
114
|
-
}
|
|
115
|
-
const F = E(() => {
|
|
116
|
-
var _;
|
|
117
|
-
const a = ((_ = h.modelValue) == null ? void 0 : _.slice(0, 5).map(
|
|
118
|
-
(P) => {
|
|
119
|
-
var w;
|
|
120
|
-
return ((w = z.find((n) => n.phoneCode === P)) == null ? void 0 : w.name) || P;
|
|
121
|
-
}
|
|
122
|
-
)) || [];
|
|
123
|
-
return h.modelValue && h.modelValue.length > 5 && a.push(`+${h.modelValue.length - 5} more`), a;
|
|
124
|
-
}), A = E(() => {
|
|
125
|
-
const m = h.modelValue;
|
|
126
|
-
return Array.isArray(m) && m.length === 0 ? v("connect.setting.allowedPhoneCountries.helper.noneAllowed") : m == null ? v("connect.setting.allowedPhoneCountries.helper.allAllowed") : v("connect.setting.allowedPhoneCountries.helper.selectedOnly");
|
|
127
|
-
});
|
|
128
|
-
return Ve(b, (m) => {
|
|
129
|
-
m && (U.value = "");
|
|
130
|
-
}), (m, a) => {
|
|
131
|
-
const _ = u("FmChip"), P = u("FmField"), w = u("FmTextField"), n = u("FmCheckbox"), $ = u("FmMenu");
|
|
132
|
-
return f(), k("div", Ze, [
|
|
133
|
-
c($, {
|
|
134
|
-
modelValue: e(b),
|
|
135
|
-
"onUpdate:modelValue": a[2] || (a[2] = (d) => W(b) ? b.value = d : null),
|
|
136
|
-
onMenuChanged: a[3] || (a[3] = (d) => b.value = d),
|
|
137
|
-
placement: "top-end"
|
|
138
|
-
}, {
|
|
139
|
-
"menu-button": S(() => [
|
|
140
|
-
c(P, {
|
|
141
|
-
"append-icon": e(b) ? "expand_more" : "expand_less",
|
|
142
|
-
class: "!h-auto"
|
|
143
|
-
}, {
|
|
144
|
-
default: S(() => [
|
|
145
|
-
g.modelValue ? g.modelValue.length ? (f(), k("div", Je, [
|
|
146
|
-
(f(!0), k(B, null, Z(e(F), (d, I) => (f(), N(_, {
|
|
147
|
-
key: I,
|
|
148
|
-
label: d,
|
|
149
|
-
class: "max-w-[130px] text-ellipsis"
|
|
150
|
-
}, null, 8, ["label"]))), 128))
|
|
151
|
-
])) : (f(), k("div", Ke, i(e(v)("connect.setting.allowedPhoneCountries.noCountries")), 1)) : (f(), k("div", Ge, i(e(v)("connect.setting.allowedPhoneCountries.allCountries")), 1))
|
|
152
|
-
]),
|
|
153
|
-
_: 1
|
|
154
|
-
}, 8, ["append-icon"])
|
|
155
|
-
]),
|
|
156
|
-
default: S(() => [
|
|
157
|
-
c(w, {
|
|
158
|
-
modelValue: e(U),
|
|
159
|
-
"onUpdate:modelValue": a[0] || (a[0] = (d) => W(U) ? U.value = d : null),
|
|
160
|
-
placeholder: e(v)("connect.setting.allowedPhoneCountries.searchCountries"),
|
|
161
|
-
class: "my-8"
|
|
162
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
163
|
-
c(n, {
|
|
164
|
-
class: "my-8",
|
|
165
|
-
value: null,
|
|
166
|
-
indeterminate: g.modelValue != null && g.modelValue.length > 0 && g.modelValue.length < y.length,
|
|
167
|
-
label: e(v)("connect.setting.allowedPhoneCountries.allCountries"),
|
|
168
|
-
"model-value": g.modelValue == null || g.modelValue.length === y.length,
|
|
169
|
-
"onUpdate:modelValue": a[1] || (a[1] = (d) => p("update:modelValue", d ? null : []))
|
|
170
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
171
|
-
(f(!0), k(B, null, Z(e(D), (d) => (f(), N(n, {
|
|
172
|
-
class: "my-8",
|
|
173
|
-
key: d.iso2,
|
|
174
|
-
value: d.phoneCode,
|
|
175
|
-
label: `${d.name} (${d.phoneCode})`,
|
|
176
|
-
"model-value": !g.modelValue || g.modelValue.includes(d.phoneCode),
|
|
177
|
-
"onUpdate:modelValue": (I) => o(I, d.phoneCode)
|
|
178
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
179
|
-
]),
|
|
180
|
-
_: 1
|
|
181
|
-
}, 8, ["modelValue"]),
|
|
182
|
-
t("div", et, i(e(A)), 1)
|
|
183
|
-
]);
|
|
184
|
-
};
|
|
185
|
-
}
|
|
186
|
-
});
|
|
187
|
-
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/" };
|
|
188
|
-
const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 border-b border-fm-color-neutral-gray-100" }, ot = { class: "fm-typo-en-title-md-800" }, lt = {
|
|
189
|
-
key: 0,
|
|
190
|
-
class: "px-24 gap-32 grid grid-cols-3 xs:pt-16"
|
|
191
|
-
}, st = { class: "col-span-2 flex flex-col xs:col-span-3 space-y-8" }, at = { class: "fm-typo-en-title-sm-800" }, it = { class: "space-y-24" }, ct = { class: "space-y-8" }, rt = { class: "fm-typo-en-title-sm-800" }, mt = { class: "fm-typo-body-lg-400" }, dt = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, ut = { class: "fm-typo-body-md-400 text-fm-color-typo-secondary" }, pt = { class: "space-y-8" }, ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, gt = { class: "fm-typo-en-body-lg-600" }, vt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, yt = { class: "space-y-8" }, ht = { class: "space-y-8" }, bt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, _t = { class: "space-y-8" }, wt = { class: "fm-typo-en-title-sm-800" }, Ct = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, xt = { class: "space-y-8" }, kt = { class: "fm-typo-en-title-sm-800" }, Vt = { class: "fm-typo-en-body-md-400 text-fm-color-typo-error" }, Ut = { class: "space-y-8" }, Ft = { class: "fm-typo-en-title-sm-800 flex items-center gap-8" }, At = { class: "space-y-8" }, Pt = { class: "fm-typo-en-title-sm-800" }, $t = { class: "space-y-8" }, St = { class: "fm-typo-en-title-sm-800" }, Mt = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, Lt = { class: "flex justify-end pb-24" }, Dt = { class: "col-span-1 space-y-8 xs:hidden" }, It = { class: "fm-typo-en-body-lg-600" }, Et = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, 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" }, Rt = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, Ht = { class: "fm-typo-en-body-lg-600" }, Ot = { class: "fm-typo-en-body-lg-400 text-fm-color-typo-secondary" }, jt = { class: "fm-typo-en-body-lg-600" }, fn = /* @__PURE__ */ K({
|
|
192
|
-
__name: "Setting",
|
|
193
|
-
setup(g) {
|
|
194
|
-
const x = Re(), v = Ae(), h = Ne(), p = G(), y = pe(), { global: U, minor: b } = Fe, D = de(), o = V(), F = V([]), A = V(null), m = Pe, a = [
|
|
195
|
-
(r) => !r || r.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
196
|
-
(r) => !r || new RegExp(/^[a-z0-9][a-z0-9\-]{4,}[a-z0-9]$/).test(r) || "Invalid URL format, url should start with a letter or number and can only include lowercase letters, numbers, or hyphens"
|
|
197
|
-
], _ = Y.appUrl, P = E(() => {
|
|
198
|
-
var r;
|
|
199
|
-
return `https://${(r = o.value) == null ? void 0 : r.business}.${_}/user?join=true`;
|
|
200
|
-
}), w = V(), { t: n } = ge(), $ = h.currentCountry.value || "MY", d = [
|
|
201
|
-
"user.name",
|
|
202
|
-
"user.gender",
|
|
203
|
-
"user.birthday",
|
|
204
|
-
"user.phoneNumber",
|
|
205
|
-
"membership.url"
|
|
206
|
-
].filter(
|
|
207
|
-
(r) => {
|
|
208
|
-
var l;
|
|
209
|
-
return !((l = Te[$]) != null && l.includes(r));
|
|
210
|
-
}
|
|
211
|
-
), I = V(
|
|
212
|
-
n("connect.setting.sms.welcomeMessage")
|
|
213
|
-
);
|
|
214
|
-
async function ve() {
|
|
215
|
-
D.open({
|
|
216
|
-
title: "",
|
|
217
|
-
dialogComponent: We,
|
|
218
|
-
closeButton: !1
|
|
219
|
-
});
|
|
220
|
-
}
|
|
221
|
-
async function ye(r) {
|
|
222
|
-
await Me.remove(
|
|
223
|
-
"Are you sure you want to unlink this device?",
|
|
224
|
-
"Unlink device",
|
|
225
|
-
"Unlink"
|
|
226
|
-
) && await b(
|
|
227
|
-
async () => {
|
|
228
|
-
await ue.unregisterDevice(r), await p.readLocationDevices();
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
message: "Unlinking device",
|
|
232
|
-
successMessage: "Unlinked device successfully"
|
|
233
|
-
}
|
|
234
|
-
);
|
|
235
|
-
}
|
|
236
|
-
async function he() {
|
|
237
|
-
await b(
|
|
238
|
-
async () => {
|
|
239
|
-
var R;
|
|
240
|
-
const r = je(o.value);
|
|
241
|
-
r.welcomeMessage && !((R = r.welcomeMessage) != null && R.content) && (r.welcomeMessage.content = "Hi there, you have been invited to join our membership");
|
|
242
|
-
const l = $e.parse(r);
|
|
243
|
-
w.value === null && l.image ? await O.delete(O.coverImagePath()) : w.value && (l.image = await O.update(
|
|
244
|
-
O.coverImagePath(),
|
|
245
|
-
w.value
|
|
246
|
-
)), await Q.update(l), await y.readMembership(), o.value = y.membership;
|
|
247
|
-
},
|
|
248
|
-
{
|
|
249
|
-
message: "Updating membership",
|
|
250
|
-
successMessage: "Membership updated successfully"
|
|
251
|
-
}
|
|
252
|
-
);
|
|
253
|
-
}
|
|
254
|
-
async function be() {
|
|
255
|
-
const r = await Q.getEmailAddresses();
|
|
256
|
-
console.log(r), F.value = r, A.value = r.find((l) => l.default.includes("Marketing"));
|
|
257
|
-
}
|
|
258
|
-
async function _e() {
|
|
259
|
-
window.open(
|
|
260
|
-
`${Y.licensePortalUrl}business/${re.businessId}/settings`,
|
|
261
|
-
"_blank"
|
|
262
|
-
);
|
|
263
|
-
}
|
|
264
|
-
async function we() {
|
|
265
|
-
const r = `${Y.licensePortalUrl}settings?businessId=${re.businessId}`;
|
|
266
|
-
console.log("Opening", r), window.open(r, "_blank");
|
|
267
|
-
}
|
|
268
|
-
return me(async () => {
|
|
269
|
-
await U(async () => {
|
|
270
|
-
await p.readPremium(), await p.readLocations(), await p.readLocationDevices(), await y.readMembership(), await be(), o.value = y.membership;
|
|
271
|
-
try {
|
|
272
|
-
const { content: r } = await Q.getDefaultWelcomeMessage();
|
|
273
|
-
r && (I.value = r);
|
|
274
|
-
} catch (r) {
|
|
275
|
-
console.error("Failed to load default welcome message", r);
|
|
276
|
-
}
|
|
277
|
-
});
|
|
278
|
-
}), (r, l) => {
|
|
279
|
-
var te, ne, oe, le, se, ae, ie;
|
|
280
|
-
const R = u("FmPageHead"), M = u("FmButton"), H = u("FmTextField"), j = u("FmCard"), J = u("FmPill"), Ce = u("FmSelect"), ee = u("FmSwitch"), xe = u("FmMenuDivider");
|
|
281
|
-
return f(), k(B, null, [
|
|
282
|
-
c(R, {
|
|
283
|
-
title: e(n)("connect.setting.title"),
|
|
284
|
-
class: "xs:hidden"
|
|
285
|
-
}, null, 8, ["title"]),
|
|
286
|
-
t("div", nt, [
|
|
287
|
-
t("div", ot, i(e(n)("connect.setting.basicInfo.title")), 1),
|
|
288
|
-
c(M, {
|
|
289
|
-
icon: "info",
|
|
290
|
-
variant: "tertiary"
|
|
291
|
-
})
|
|
292
|
-
]),
|
|
293
|
-
e(o) ? (f(), k("div", lt, [
|
|
294
|
-
t("div", st, [
|
|
295
|
-
t("div", at, i(e(n)("connect.setting.basicInfo.title")), 1),
|
|
296
|
-
t("div", it, [
|
|
297
|
-
c(H, {
|
|
298
|
-
label: e(n)("connect.setting.basicInfo.membershipTitle"),
|
|
299
|
-
modelValue: e(o).name,
|
|
300
|
-
"onUpdate:modelValue": l[0] || (l[0] = (s) => e(o).name = s)
|
|
301
|
-
}, null, 8, ["label", "modelValue"]),
|
|
302
|
-
c(H, {
|
|
303
|
-
disabled: !0,
|
|
304
|
-
"model-value": e(o).business,
|
|
305
|
-
rules: a,
|
|
306
|
-
required: !0,
|
|
307
|
-
label: e(n)("connect.setting.basicInfo.memberAppUrl"),
|
|
308
|
-
"helper-text": e(P),
|
|
309
|
-
placeholder: e(o).business.toString(),
|
|
310
|
-
"onUpdate:modelValue": l[2] || (l[2] = (s) => e(o).url = s)
|
|
311
|
-
}, {
|
|
312
|
-
prepend: S(() => [...l[14] || (l[14] = [
|
|
313
|
-
T(" https:// ", -1)
|
|
314
|
-
])]),
|
|
315
|
-
append: S(() => [
|
|
316
|
-
T(" ." + i(e(_)) + " ", 1),
|
|
317
|
-
c(M, {
|
|
318
|
-
icon: "content_copy",
|
|
319
|
-
variant: "tertiary",
|
|
320
|
-
onClick: l[1] || (l[1] = (s) => e(fe)(e(P)))
|
|
321
|
-
})
|
|
322
|
-
]),
|
|
323
|
-
_: 1
|
|
324
|
-
}, 8, ["model-value", "label", "helper-text", "placeholder"]),
|
|
325
|
-
c(Se, {
|
|
326
|
-
label: "Cover image",
|
|
327
|
-
class: "w-2/3 xs:w-full",
|
|
328
|
-
"image-fit": "cover",
|
|
329
|
-
"aspect-ratio": "3/1",
|
|
330
|
-
thumbnail: e(o).image || void 0,
|
|
331
|
-
"onUpdate:file": l[3] || (l[3] = async (s) => {
|
|
332
|
-
w.value = s, s || (e(o).image = null);
|
|
333
|
-
})
|
|
334
|
-
}, null, 8, ["thumbnail"]),
|
|
335
|
-
t("div", ct, [
|
|
336
|
-
t("div", rt, i(e(n)("connect.setting.counterApp.title")), 1),
|
|
337
|
-
c(M, {
|
|
338
|
-
variant: "plain",
|
|
339
|
-
icon: "link",
|
|
340
|
-
label: e(n)("connect.setting.counterApp.linkDevice"),
|
|
341
|
-
onClick: ve
|
|
342
|
-
}, null, 8, ["label"]),
|
|
343
|
-
(f(!0), k(B, null, Z(e(p).locationDevices, (s, C) => (f(), N(j, {
|
|
344
|
-
key: C,
|
|
345
|
-
variant: "outlined",
|
|
346
|
-
class: "flex items-center justify-between px-16 py-12"
|
|
347
|
-
}, {
|
|
348
|
-
default: S(() => [
|
|
349
|
-
t("div", null, [
|
|
350
|
-
t("p", mt, i(s.name || `Device ${s._id}`), 1),
|
|
351
|
-
t("p", dt, i(e(n)("connect.setting.counterApp.device.activationDate")) + " " + i(e(Ue)(e(Oe)(s._id.toString())).format(
|
|
352
|
-
"D MMM YYYY"
|
|
353
|
-
)), 1),
|
|
354
|
-
t("p", ut, i(e(n)("connect.setting.counterApp.device.linkedLocation")) + " " + i(e(p).locations.find((L) => L._id == s.location).name), 1)
|
|
355
|
-
]),
|
|
356
|
-
c(M, {
|
|
357
|
-
icon: "link_off",
|
|
358
|
-
variant: "tertiary",
|
|
359
|
-
onClick: (L) => ye(s._id)
|
|
360
|
-
}, null, 8, ["onClick"])
|
|
361
|
-
]),
|
|
362
|
-
_: 2
|
|
363
|
-
}, 1024))), 128))
|
|
364
|
-
]),
|
|
365
|
-
t("div", pt, [
|
|
366
|
-
t("div", ft, [
|
|
367
|
-
T(i(e(n)("connect.setting.advertisement.title")) + " ", 1),
|
|
368
|
-
c(J, { variant: "premium" })
|
|
369
|
-
]),
|
|
370
|
-
c(j, {
|
|
371
|
-
variant: "outlined",
|
|
372
|
-
class: "p-16 flex items-center justify-between"
|
|
373
|
-
}, {
|
|
374
|
-
default: S(() => {
|
|
375
|
-
var s;
|
|
376
|
-
return [
|
|
377
|
-
t("div", null, [
|
|
378
|
-
t("div", gt, i(e(n)("connect.setting.advertisement.manageAd")), 1),
|
|
379
|
-
t("div", vt, i(e(n)("connect.setting.advertisement.activeAdsShowing", {
|
|
380
|
-
count: ((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0
|
|
381
|
-
})), 1)
|
|
382
|
-
]),
|
|
383
|
-
c(M, {
|
|
384
|
-
label: e(n)("connect.setting.advertisement.manage"),
|
|
385
|
-
icon: "arrow_forward",
|
|
386
|
-
"icon-position": "right",
|
|
387
|
-
disabled: !e(p).isPremium,
|
|
388
|
-
onClick: l[4] || (l[4] = (C) => e(x).push({
|
|
389
|
-
name: e(He)["$connect-SETTING_ADVERTISEMENTS"]
|
|
390
|
-
}))
|
|
391
|
-
}, null, 8, ["label", "disabled"])
|
|
392
|
-
];
|
|
393
|
-
}),
|
|
394
|
-
_: 1
|
|
395
|
-
})
|
|
396
|
-
]),
|
|
397
|
-
t("div", yt, [
|
|
398
|
-
l[15] || (l[15] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
399
|
-
c(H, {
|
|
400
|
-
"model-value": ((te = e(o)) == null ? void 0 : te.brand) || "",
|
|
401
|
-
"max-length": 15,
|
|
402
|
-
label: e(n)("connect.setting.sms.brandName"),
|
|
403
|
-
"show-word-count": "",
|
|
404
|
-
"helper-text": e(n)("connect.setting.sms.messageFormat", {
|
|
405
|
-
brand: ((ne = e(o)) == null ? void 0 : ne.brand) || ""
|
|
406
|
-
}),
|
|
407
|
-
"onUpdate:modelValue": l[5] || (l[5] = (s) => e(o).brand = s)
|
|
408
|
-
}, null, 8, ["model-value", "label", "helper-text"]),
|
|
409
|
-
c(Be, {
|
|
410
|
-
modelValue: e(o).welcomeMessage,
|
|
411
|
-
"onUpdate:modelValue": l[6] || (l[6] = (s) => e(o).welcomeMessage = s),
|
|
412
|
-
"hide-credit-card": !0,
|
|
413
|
-
variables: e(d),
|
|
414
|
-
placeholder: e(I)
|
|
415
|
-
}, null, 8, ["modelValue", "variables", "placeholder"])
|
|
416
|
-
]),
|
|
417
|
-
t("div", ht, [
|
|
418
|
-
l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
419
|
-
t("div", bt, i(e(n)("connect.setting.email.description")), 1),
|
|
420
|
-
e(F).length ? X("", !0) : (f(), N(M, {
|
|
421
|
-
key: 0,
|
|
422
|
-
onClick: _e,
|
|
423
|
-
label: e(n)("connect.setting.email.addNewAddress")
|
|
424
|
-
}, null, 8, ["label"])),
|
|
425
|
-
e(F).length ? (f(), k(B, { key: 1 }, [
|
|
426
|
-
c(Ce, {
|
|
427
|
-
"model-value": ((le = (oe = e(o)) == null ? void 0 : oe.email) == null ? void 0 : le.from) || null,
|
|
428
|
-
label: e(n)("connect.setting.email.fromAddress"),
|
|
429
|
-
items: e(F).map((s) => ({
|
|
430
|
-
label: s.emailAddress,
|
|
431
|
-
value: s.emailAddress
|
|
432
|
-
})),
|
|
433
|
-
placeholder: e(A) ? e(A).emailAddress : e(n)("connect.setting.email.noAddressAvailable"),
|
|
434
|
-
"onUpdate:modelValue": l[7] || (l[7] = (s) => {
|
|
435
|
-
var C, L;
|
|
436
|
-
(C = e(o)) != null && C.email || (e(o).email = {
|
|
437
|
-
from: s,
|
|
438
|
-
name: (L = e(F).find((q) => q.emailAddress == s)) == null ? void 0 : L.name
|
|
439
|
-
}), e(o).email.from = s || null;
|
|
440
|
-
}),
|
|
441
|
-
rules: [e(ce).ruleAtPath(e(m), "email.from")]
|
|
442
|
-
}, null, 8, ["model-value", "label", "items", "placeholder", "rules"]),
|
|
443
|
-
c(H, {
|
|
444
|
-
"model-value": ((ae = (se = e(o)) == null ? void 0 : se.email) == null ? void 0 : ae.name) || null,
|
|
445
|
-
label: e(n)("connect.setting.email.senderName"),
|
|
446
|
-
disabled: "",
|
|
447
|
-
placeholder: ((ie = e(A)) == null ? void 0 : ie.name) || null,
|
|
448
|
-
"onUpdate:modelValue": l[8] || (l[8] = (s) => {
|
|
449
|
-
var C;
|
|
450
|
-
(C = e(o)) != null && C.email || (e(o).email = {
|
|
451
|
-
name: s
|
|
452
|
-
}), e(o).email.name = s || null;
|
|
453
|
-
}),
|
|
454
|
-
rules: [e(ce).ruleAtPath(e(m), "email.name")]
|
|
455
|
-
}, null, 8, ["model-value", "label", "placeholder", "rules"])
|
|
456
|
-
], 64)) : X("", !0)
|
|
457
|
-
]),
|
|
458
|
-
t("div", _t, [
|
|
459
|
-
t("div", wt, i(e(n)("connect.setting.whatsapp.title")), 1),
|
|
460
|
-
t("div", Ct, i(e(n)("connect.setting.whatsapp.description")), 1),
|
|
461
|
-
c(M, {
|
|
462
|
-
label: e(n)("connect.setting.whatsapp.manageChannel"),
|
|
463
|
-
icon: "open_in_new",
|
|
464
|
-
onClick: l[9] || (l[9] = (s) => we())
|
|
465
|
-
}, null, 8, ["label"])
|
|
466
|
-
]),
|
|
467
|
-
t("div", xt, [
|
|
468
|
-
t("div", kt, [
|
|
469
|
-
T(i(e(n)("connect.setting.freeCredit.title")) + " ", 1),
|
|
470
|
-
t("span", Vt, i(e(n)("connect.setting.freeCredit.posVersion")), 1)
|
|
471
|
-
]),
|
|
472
|
-
c(ee, {
|
|
473
|
-
"model-value": e(o).freeCreditAsDiscount ?? !1,
|
|
474
|
-
"onUpdate:modelValue": l[10] || (l[10] = (s) => e(o).freeCreditAsDiscount = s),
|
|
475
|
-
label: e(n)("connect.setting.freeCredit.title"),
|
|
476
|
-
sublabel: e(n)("connect.setting.freeCredit.description"),
|
|
477
|
-
"label-placement": "right",
|
|
478
|
-
value: ""
|
|
479
|
-
}, null, 8, ["model-value", "label", "sublabel"])
|
|
480
|
-
]),
|
|
481
|
-
t("div", Ut, [
|
|
482
|
-
t("div", Ft, [
|
|
483
|
-
T(i(e(n)("connect.setting.memberCard.title")) + " ", 1),
|
|
484
|
-
c(J, { variant: "premium" })
|
|
485
|
-
]),
|
|
486
|
-
c(ee, {
|
|
487
|
-
"model-value": e(o).cardEnable ?? !1,
|
|
488
|
-
"onUpdate:modelValue": l[11] || (l[11] = (s) => e(o).cardEnable = s),
|
|
489
|
-
label: "",
|
|
490
|
-
sublabel: e(n)("connect.setting.memberCard.description"),
|
|
491
|
-
"label-placement": "right",
|
|
492
|
-
value: "",
|
|
493
|
-
disabled: !e(p).isPremium
|
|
494
|
-
}, null, 8, ["model-value", "sublabel", "disabled"])
|
|
495
|
-
]),
|
|
496
|
-
t("div", At, [
|
|
497
|
-
t("div", Pt, i(e(n)("connect.setting.location.title")), 1),
|
|
498
|
-
c(Ee, {
|
|
499
|
-
label: e(n)("connect.setting.location.selectLabel"),
|
|
500
|
-
"model-value": e(o).targetLocation ?? null,
|
|
501
|
-
"onUpdate:modelValue": l[12] || (l[12] = (s) => e(o).targetLocation = s)
|
|
502
|
-
}, null, 8, ["label", "model-value"])
|
|
503
|
-
]),
|
|
504
|
-
t("div", $t, [
|
|
505
|
-
t("div", St, i(e(n)("connect.setting.allowedPhoneCountries.title")), 1),
|
|
506
|
-
t("div", Mt, i(e(n)("connect.setting.allowedPhoneCountries.description")), 1),
|
|
507
|
-
c(tt, {
|
|
508
|
-
modelValue: e(o).allowedPhoneCountries,
|
|
509
|
-
"onUpdate:modelValue": l[13] || (l[13] = (s) => e(o).allowedPhoneCountries = s)
|
|
510
|
-
}, null, 8, ["modelValue"])
|
|
511
|
-
]),
|
|
512
|
-
t("div", Lt, [
|
|
513
|
-
c(M, {
|
|
514
|
-
label: e(n)("connect.setting.action.update"),
|
|
515
|
-
type: "button",
|
|
516
|
-
onClick: he,
|
|
517
|
-
disabled: !!e(v).loadingQueue.length,
|
|
518
|
-
loading: !!e(v).loadingQueue.length
|
|
519
|
-
}, null, 8, ["label", "disabled", "loading"])
|
|
520
|
-
])
|
|
521
|
-
])
|
|
522
|
-
]),
|
|
523
|
-
t("div", Dt, [
|
|
524
|
-
c(j, {
|
|
525
|
-
variant: "outlined",
|
|
526
|
-
class: "flex flex-col p-24 gap-8"
|
|
527
|
-
}, {
|
|
528
|
-
default: S(() => {
|
|
529
|
-
var s, C, L;
|
|
530
|
-
return [
|
|
531
|
-
t("div", It, i(e(n)("connect.setting.summary.title")), 1),
|
|
532
|
-
c(xe, { class: "my-4" }),
|
|
533
|
-
t("div", null, [
|
|
534
|
-
t("div", Et, i(e(n)("connect.setting.summary.name")), 1),
|
|
535
|
-
t("div", Tt, i(e(o).name), 1)
|
|
536
|
-
]),
|
|
537
|
-
t("div", null, [
|
|
538
|
-
t("div", Bt, i(e(n)("connect.setting.summary.advertisement")), 1),
|
|
539
|
-
t("div", Nt, i((((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0) || e(n)("connect.setting.summary.noAds")), 1)
|
|
540
|
-
]),
|
|
541
|
-
t("div", null, [
|
|
542
|
-
t("div", Rt, i(e(n)("connect.setting.summary.freeCredit")), 1),
|
|
543
|
-
t("div", Ht, i(e(o).freeCreditAsDiscount ? e(n)("connect.setting.summary.enabled") : e(n)("connect.setting.summary.disabled")), 1)
|
|
544
|
-
]),
|
|
545
|
-
t("div", null, [
|
|
546
|
-
t("div", Ot, i(e(n)("connect.setting.summary.locations")), 1),
|
|
547
|
-
t("div", jt, i(!e(o).targetLocation || e(o).targetLocation.length == e(G)().locations.length ? e(n)("connect.setting.summary.allLocations") : (L = (C = e(o)) == null ? void 0 : C.targetLocation) == null ? void 0 : L.map(
|
|
548
|
-
(q) => e(p).locations.find((ke) => ke._id == q).name
|
|
549
|
-
).join(", ")), 1)
|
|
550
|
-
])
|
|
551
|
-
];
|
|
552
|
-
}),
|
|
553
|
-
_: 1
|
|
554
|
-
})
|
|
555
|
-
])
|
|
556
|
-
])) : X("", !0)
|
|
557
|
-
], 64);
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
export {
|
|
562
|
-
fn as default
|
|
563
|
-
};
|
package/dist/index-Dw5ikwFR.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { g as t, d as n, S as o, b as c } from "./index-bMAgU-Xo.js";
|
|
2
|
-
const a = () => {
|
|
3
|
-
const e = o.getBusinessId();
|
|
4
|
-
if (!e) throw new Error("Invalid business ID");
|
|
5
|
-
return c(`businesses/${e}/transactions`, {
|
|
6
|
-
noIdRequired: !0
|
|
7
|
-
});
|
|
8
|
-
}, d = {
|
|
9
|
-
async readAll(e, r) {
|
|
10
|
-
const s = t(
|
|
11
|
-
await a().get("", {
|
|
12
|
-
params: { ...e, ...r }
|
|
13
|
-
})
|
|
14
|
-
);
|
|
15
|
-
return {
|
|
16
|
-
meta: s.meta,
|
|
17
|
-
resources: s.resources
|
|
18
|
-
};
|
|
19
|
-
},
|
|
20
|
-
async readAllCursor(e, r) {
|
|
21
|
-
const s = t(
|
|
22
|
-
await a().get("cursor", {
|
|
23
|
-
params: { ...e, ...r }
|
|
24
|
-
})
|
|
25
|
-
);
|
|
26
|
-
return {
|
|
27
|
-
meta: s.meta,
|
|
28
|
-
resources: s.resources
|
|
29
|
-
};
|
|
30
|
-
},
|
|
31
|
-
async readStoreTransactions(e, r) {
|
|
32
|
-
const s = t(
|
|
33
|
-
await a().get("/store", {
|
|
34
|
-
params: { ...e, ...r }
|
|
35
|
-
})
|
|
36
|
-
);
|
|
37
|
-
return {
|
|
38
|
-
meta: s.meta,
|
|
39
|
-
resources: s.resources
|
|
40
|
-
};
|
|
41
|
-
},
|
|
42
|
-
async readBills(e, r, s) {
|
|
43
|
-
return (await n("").get(
|
|
44
|
-
`/restaurants/${e}/receipt?start=${r}&end=${s}`
|
|
45
|
-
)).data;
|
|
46
|
-
},
|
|
47
|
-
async readPurchaseCountByMember(e) {
|
|
48
|
-
return t(
|
|
49
|
-
await a().get(`/store/${e}`)
|
|
50
|
-
);
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
export {
|
|
54
|
-
d as t
|
|
55
|
-
};
|