@feedmepos/mf-connect 0.1.117-dev → 0.1.118-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-BpcsgH7K.js → App-BHcTqLff.js} +89 -97
- package/dist/{Bin-Cm0wjQeR.js → Bin-DWhXJmHo.js} +8 -8
- package/dist/{Broadcast-BoJaHqnO.js → Broadcast-Ct1DL8Pd.js} +21 -22
- package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-BSEKCM-4.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BxRg2Wu8.js} +10 -9
- package/dist/{Card-BfkMcFaG.js → Card-B7DwrAPH.js} +23 -23
- package/dist/{Collections-RXmxQbII.js → Collections-BJw4JJq_.js} +185 -197
- package/dist/{Credit-CsRPM1jv.js → Credit-BteIGXkp.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CSFwIzOS.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BJotVIKM.js +3496 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang-BDZ21UHA.js} +30 -30
- package/dist/{Experience-BC8Pj-v9.js → Experience-C_VQVfJX.js} +31 -32
- package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-CMiQUZQE.js} +1 -1
- package/dist/{Game-DJXNHFBs.js → Game-BiHMrMBF.js} +18 -19
- package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-DtJIm6oI.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BKGnPAEj.js} +7 -7
- package/dist/{Goals-DSZwKpds.js → Goals-B7VjLMDT.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js} +1 -1
- package/dist/{Index-Cbi0bquE.js → Index-D_DIHKZG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DSwB0Ubn.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-dk8_eVwd.js} +1 -1
- package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DOgHeJdK.js} +15 -15
- package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-CfYgoXLS.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-Bz2LGHUd.js} +3 -3
- package/dist/{Marketing-B7cZGsO-.js → Marketing-B6TCrwaR.js} +4 -4
- package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-Bu3a9NGj.js} +211 -214
- package/dist/{Member-BGTrRVdq.js → Member-X51KrYXV.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CYU21JaO.js} +48 -40
- package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-CHd9fx7E.js} +7 -7
- package/dist/{MemberList-EjY5dgwt.js → MemberList-D4L3bSlw.js} +105 -103
- package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CEgjfhnX.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-YZQkKG66.js} +1 -1
- package/dist/{Mission-BFHYb4aT.js → Mission-BEVtvY0-.js} +21 -22
- package/dist/{Overview-d5U37aot.js → Overview-4QRkldza.js} +144 -145
- package/dist/{Overview-BVNyQxFL.js → Overview-DVoXXZ16.js} +21 -21
- package/dist/{Point-CXkqH02Z.js → Point-BJmebaL9.js} +21 -22
- package/dist/{Promotion-DdxNvlOO.js → Promotion-DWZZBofu.js} +131 -137
- package/dist/{Queue-C96oNKyP.js → Queue-DLdsyhCT.js} +46 -46
- package/dist/{Record-Bj2e2Y4i.js → Record-QOD3XELf.js} +9 -9
- package/dist/{Review-CJK5S1oI.js → Review-CKmhyuqj.js} +2 -2
- package/dist/ReviewFacebookCallback-C6DlaJ_j.js +238 -0
- package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-CDriVQPZ.js} +5 -5
- package/dist/{Reward-Dh2YI0Xb.js → Reward-DftoZfPN.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-ZgYX2QwC.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DHmBwLNP.js +1884 -0
- package/dist/{Segment-FYvtCkqH.js → Segment-URdB0lnl.js} +307 -304
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DmI2LAsz.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BCEgZzA4.js} +4 -4
- package/dist/{Setting-CUAWjCqa.js → Setting-BDIHH2Wk.js} +148 -159
- package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkJYZnIN.js} +12 -12
- package/dist/Settings-9gaegvYJ.js +179 -0
- package/dist/{Store-BAXwiyvx.js → Store-CV0kYncl.js} +29 -29
- package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-30kSkAZ_.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dgwyk3NA.js +1265 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js +142 -0
- package/dist/{Tier-BmAOzRHL.js → Tier-DiQSC3iv.js} +688 -2576
- package/dist/{Title-DMxiUg30.js → Title-DixxpjAg.js} +95 -96
- package/dist/{Transaction-CF6hXEpN.js → Transaction-DQK4LUGD.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CL-GKkuD.js} +26 -26
- package/dist/{Voucher-DrtITxq-.js → Voucher-CSVlk_Hr.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CiSoy0Ky.js} +12 -12
- package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-CQYbv2Ew.js} +66 -64
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DjgRo9iA.js} +1 -1
- package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DdO9Bfvh.js} +324 -322
- package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-CjjWJGND.js} +11 -11
- package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-DYGx-kRr.js} +287 -288
- package/dist/{WhatsappLayout-DeQTPuF6.js → WhatsappLayout-B6k_79Kl.js} +3 -3
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DTUytfe5.js +261 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-DdCUr_Zm.js} +2 -2
- package/dist/{app-BjdLqYQq.js → app-CqQeNnGq.js} +3382 -4110
- package/dist/app.js +3 -4
- package/dist/{base.export-B68z5BF6.js → base.export-Dls5LQeu.js} +2 -2
- package/dist/{business-D9fgkHxb.js → business-gvLSQklz.js} +1 -1
- package/dist/{campaign-Dw_ujovr.js → campaign-BqazvOUj.js} +94 -121
- package/dist/{campaign-eMaPX8r6.js → campaign-Cd6GmA4U.js} +25 -31
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-C0oMb1fs.js} +99 -99
- package/dist/{collection.fn-CCOWtB-c.js → collection.fn-CERMsFPh.js} +2 -2
- package/dist/{currency-CTLKReFC.js → currency-IkiKiNg1.js} +1 -1
- package/dist/{effect-CTI1ZH57.js → effect-j_T62HBN.js} +1 -1
- package/dist/{email-addresses-B74e3bnB.js → email-addresses-CN1kPlEj.js} +2 -2
- package/dist/{feature-flag-DVdEaChJ.js → feature-flag-DDfyOLsv.js} +88 -88
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-as9K-piK.js → helper-DVUe13eh.js} +1 -1
- package/dist/{index-BW7FoVEA.js → index-9RBtEPPj.js} +1 -1
- package/dist/{index-Czg-2Ni0.js → index-BmIfGArh.js} +3 -3
- package/dist/{index-DKI8401o.js → index-BvkqHehI.js} +7 -7
- package/dist/{index-B0h0iYWP.js → index-BvoOJdfc.js} +2 -2
- package/dist/{index-CWLOcQ6j.js → index-C-IajuP1.js} +9 -9
- package/dist/{index-3LjKJhQa.js → index-COuLtOaw.js} +1 -1
- package/dist/{index-QHqcSN2q.js → index-CPyK4a5J.js} +4 -4
- package/dist/{index-BbVbqe4Y.js → index-CWGbeg5X.js} +6 -19
- package/dist/{index-CHU3UePP.js → index-C_SaKemI.js} +1 -1
- package/dist/{index-BEKMTiFb.js → index-Cjy0SXCn.js} +197 -197
- package/dist/{index-C5V6u2Qd.js → index-DALsfLV7.js} +2613 -2699
- package/dist/{index-CQxkDpX0.js → index-DMiaWY0s.js} +581 -682
- package/dist/{index-B_wRpO02.js → index-D_1pnadB.js} +15 -29
- package/dist/{index-TAoQpeLQ.js → index-DzbVgUEP.js} +1 -1
- package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
- package/dist/{index-wsCCqwdr.js → index-UJHdDEG1.js} +2 -2
- package/dist/{index-DcZiikOH.js → index-ep_Kxxid.js} +2 -2
- package/dist/{index-BhTrG89b.js → index-fNYUguDQ.js} +232 -389
- package/dist/{index-Ba719MYq.js → index-jS16KX9p.js} +1 -1
- package/dist/{index-Ckz6u3ac.js → index-k7FFxt_M.js} +2 -2
- package/dist/{index-8mBfDn3M.js → index-lzQ6ehOk.js} +251 -608
- package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-vJKhLfdu.js} +177 -177
- package/dist/{loading-x6IScY4K.js → loading-jZV2Dm--.js} +1 -1
- package/dist/{lodash-nwnDizYo.js → lodash-C2pLek0l.js} +1 -1
- package/dist/{member-import-C-b01Tyd.js → member-import-BKI7soRD.js} +1 -1
- package/dist/{membership-DfarOMtO.js → membership-smdlFpPr.js} +2 -2
- package/dist/{money-CFn-jR4W.js → money-5XyTnYwW.js} +1 -1
- package/dist/{number-CSlyDL2x.js → number-DHU9qJJQ.js} +1 -1
- package/dist/objectid-jT5g6pGt.js +145 -0
- package/dist/{onboarding-DyaFaaF2.js → onboarding-C_5pyGx-.js} +25 -25
- package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-Bd1V-Ipy.js} +2 -2
- package/dist/{plugins-DEHr0UOe.js → plugins-D1Ru-da5.js} +3 -3
- package/dist/{reward-Du_Pv-4p.js → reward-BqPl68Xk.js} +1 -1
- package/dist/{rule-DfqmQTVK.js → rule-WBrRXwL-.js} +492 -572
- package/dist/rule-builder-DAlSbaWh.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DDquG4Xc.js +236 -0
- package/dist/{timezone-_4tabIaK.js → timezone-O4qrCDcK.js} +1 -1
- package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-CY_F8Nb8.js} +2 -2
- package/dist/{trigger-Dipr6btC.js → trigger-D-vySeIB.js} +8 -8
- package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-kA6SLHy_.js} +4 -4
- package/dist/{usePagination-D6RZ18zS.js → usePagination-AYE_RJH2.js} +1 -1
- package/dist/{user-BCexQj3Q.js → user-DJcMkYXP.js} +1 -1
- package/dist/vue-i18n-kXHiDb_1.js +2365 -0
- package/dist/{xlsx-BTxt_Jg6.js → xlsx--s3hBdDk.js} +224 -224
- package/dist/{zod-T4wMYjWT.js → zod-IpHRbxaJ.js} +1 -1
- package/package.json +2 -6
- package/dist/AuditLogs-BNnUiVnD.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js +0 -4442
- package/dist/Grab-DDc7e-AC.js +0 -301
- package/dist/ReviewFacebookCallback-ChG7TRy5.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js +0 -1923
- package/dist/Settings-D2gFPvmW.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js +0 -7007
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
- package/dist/duplicateCampaign-BcpBfUGL.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-zcT6ESET.js +0 -145
- package/dist/template-CcbNF4PF.js +0 -188
- package/dist/vue-i18n-DXvyTCZf.js +0 -2365
|
@@ -1,63 +1,63 @@
|
|
|
1
|
-
import { defineComponent as
|
|
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
2
|
import { h as Ue } from "./moment-D7p2TMB-.js";
|
|
3
|
-
import { Z as ce } from "./zod-
|
|
4
|
-
import { useDialog as
|
|
5
|
-
import { u as Fe } from "./loading-
|
|
3
|
+
import { Z as ce } from "./zod-IpHRbxaJ.js";
|
|
4
|
+
import { useDialog as de } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as Fe } from "./loading-jZV2Dm--.js";
|
|
6
6
|
import { u as Ae } from "./app-wDQR6dpb.js";
|
|
7
|
-
import { u as
|
|
8
|
-
import { u as pe } from "./membership-
|
|
9
|
-
import { P as
|
|
10
|
-
import { m as Pe, b as
|
|
11
|
-
import { _ as
|
|
12
|
-
import { c as fe, p as Me, f as O } from "./plugins-
|
|
7
|
+
import { u as G, l as ue } from "./business-gvLSQklz.js";
|
|
8
|
+
import { u as pe } from "./membership-smdlFpPr.js";
|
|
9
|
+
import { P as z } from "./index-BmIfGArh.js";
|
|
10
|
+
import { m as Pe, b as $e } from "./index-fNYUguDQ.js";
|
|
11
|
+
import { _ as Se } from "./ImageInput.vue_vue_type_script_setup_true_lang-C9ecPgpJ.js";
|
|
12
|
+
import { c as fe, p as Me, f as O } from "./plugins-D1Ru-da5.js";
|
|
13
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-
|
|
15
|
-
import { u as
|
|
16
|
-
import { M as Te, b as
|
|
17
|
-
import { useCoreStore as
|
|
18
|
-
import { useRouter as
|
|
19
|
-
import { R as He } from "./app-
|
|
20
|
-
import { m as
|
|
21
|
-
import { S as re } from "./index-
|
|
14
|
+
import { p as De, r as Ie, _ as Ee } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-CDUhH6wp.js";
|
|
15
|
+
import { u as ge } from "./vue-i18n-kXHiDb_1.js";
|
|
16
|
+
import { M as Te, b as Be } from "./MessageInput.vue_vue_type_script_setup_true_lang-zsaig_yK.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-CqQeNnGq.js";
|
|
20
|
+
import { m as Q } from "./index-CWGbeg5X.js";
|
|
21
|
+
import { S as re } from "./index-BvkqHehI.js";
|
|
22
22
|
import { o as Oe } from "./objectId-dwaoBfJX.js";
|
|
23
23
|
import { a as je } from "./object-BYyQ0PZp.js";
|
|
24
|
-
async function qe(
|
|
24
|
+
async function qe(g, x = 350) {
|
|
25
25
|
try {
|
|
26
|
-
return await Le.toDataURL(
|
|
26
|
+
return await Le.toDataURL(g, {
|
|
27
27
|
width: x,
|
|
28
28
|
margin: 0
|
|
29
29
|
});
|
|
30
|
-
} catch (
|
|
31
|
-
console.error(
|
|
30
|
+
} catch (v) {
|
|
31
|
+
console.error(v);
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
var Xe = { authUrl: "https://portal-v2
|
|
35
|
-
const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt-16" },
|
|
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
36
|
__name: "LinkDeviceDialog",
|
|
37
|
-
setup(
|
|
38
|
-
const x =
|
|
39
|
-
var
|
|
40
|
-
return `https://${(
|
|
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
41
|
});
|
|
42
|
-
async function F(
|
|
43
|
-
const a = await ue.getOtp(
|
|
42
|
+
async function F(m) {
|
|
43
|
+
const a = await ue.getOtp(m);
|
|
44
44
|
return `${o.value}?link-device=${a.otp}`;
|
|
45
45
|
}
|
|
46
|
-
async function A(
|
|
47
|
-
const a = await F(
|
|
46
|
+
async function A(m) {
|
|
47
|
+
const a = await F(m);
|
|
48
48
|
b.value = a, p.value = await qe(a);
|
|
49
49
|
}
|
|
50
|
-
return
|
|
50
|
+
return me(async () => {
|
|
51
51
|
if (await x.readLocations(), !x.locations.length) {
|
|
52
52
|
h.close();
|
|
53
53
|
return;
|
|
54
54
|
}
|
|
55
|
-
const
|
|
56
|
-
y.value =
|
|
57
|
-
}), (
|
|
55
|
+
const m = x.locations[0]._id;
|
|
56
|
+
y.value = m, await A(m);
|
|
57
|
+
}), (m, a) => {
|
|
58
58
|
const _ = u("FmIcon"), P = u("FmSelect"), w = u("FmButton"), n = u("FmCard");
|
|
59
|
-
return f(),
|
|
60
|
-
default:
|
|
59
|
+
return f(), N(n, { class: "p-24 max-w-[350px]" }, {
|
|
60
|
+
default: S(() => [
|
|
61
61
|
t("div", ze, [
|
|
62
62
|
a[3] || (a[3] = t("div", null, [
|
|
63
63
|
t("div", { class: "fm-typo-en-title-sm-800" }, "Link device"),
|
|
@@ -65,7 +65,7 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
|
|
|
65
65
|
], -1)),
|
|
66
66
|
c(_, {
|
|
67
67
|
name: "close",
|
|
68
|
-
onClick: a[0] || (a[0] = (
|
|
68
|
+
onClick: a[0] || (a[0] = ($) => e(h).close()),
|
|
69
69
|
class: "cursor-pointer"
|
|
70
70
|
})
|
|
71
71
|
]),
|
|
@@ -73,21 +73,21 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
|
|
|
73
73
|
c(P, {
|
|
74
74
|
modelValue: e(y),
|
|
75
75
|
"onUpdate:modelValue": [
|
|
76
|
-
a[1] || (a[1] = (
|
|
76
|
+
a[1] || (a[1] = ($) => W(y) ? y.value = $ : null),
|
|
77
77
|
A
|
|
78
78
|
],
|
|
79
79
|
label: "Select Location",
|
|
80
|
-
items: e(x).locationItems.filter((
|
|
80
|
+
items: e(x).locationItems.filter(($) => !!$.value)
|
|
81
81
|
}, null, 8, ["modelValue", "items"]),
|
|
82
82
|
t("img", {
|
|
83
83
|
src: e(p),
|
|
84
84
|
class: "aspect-square w-full"
|
|
85
|
-
}, null, 8,
|
|
85
|
+
}, null, 8, Ye),
|
|
86
86
|
c(w, {
|
|
87
87
|
class: "mx-auto",
|
|
88
88
|
variant: "plain",
|
|
89
89
|
icon: "content_copy",
|
|
90
|
-
onClick: a[2] || (a[2] = (
|
|
90
|
+
onClick: a[2] || (a[2] = ($) => e(fe)(e(b)))
|
|
91
91
|
})
|
|
92
92
|
])
|
|
93
93
|
]),
|
|
@@ -95,21 +95,21 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
|
|
|
95
95
|
});
|
|
96
96
|
};
|
|
97
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__ */
|
|
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
99
|
__name: "AllowedPhoneCountriesSelect",
|
|
100
100
|
props: {
|
|
101
101
|
modelValue: {}
|
|
102
102
|
},
|
|
103
103
|
emits: ["update:modelValue"],
|
|
104
|
-
setup(
|
|
105
|
-
const { t:
|
|
106
|
-
const
|
|
107
|
-
return
|
|
108
|
-
(a) => a.name.toLowerCase().includes(
|
|
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
109
|
);
|
|
110
110
|
});
|
|
111
|
-
function o(
|
|
112
|
-
const _ =
|
|
111
|
+
function o(m, a) {
|
|
112
|
+
const _ = m ? De([...h.modelValue || []], a) : Ie(h.modelValue || y, a);
|
|
113
113
|
p("update:modelValue", _);
|
|
114
114
|
}
|
|
115
115
|
const F = E(() => {
|
|
@@ -117,64 +117,64 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
|
|
|
117
117
|
const a = ((_ = h.modelValue) == null ? void 0 : _.slice(0, 5).map(
|
|
118
118
|
(P) => {
|
|
119
119
|
var w;
|
|
120
|
-
return ((w =
|
|
120
|
+
return ((w = z.find((n) => n.phoneCode === P)) == null ? void 0 : w.name) || P;
|
|
121
121
|
}
|
|
122
122
|
)) || [];
|
|
123
123
|
return h.modelValue && h.modelValue.length > 5 && a.push(`+${h.modelValue.length - 5} more`), a;
|
|
124
124
|
}), A = E(() => {
|
|
125
|
-
const
|
|
126
|
-
return Array.isArray(
|
|
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
127
|
});
|
|
128
|
-
return
|
|
129
|
-
|
|
130
|
-
}), (
|
|
131
|
-
const _ = u("FmChip"), P = u("FmField"), w = u("FmTextField"), n = u("FmCheckbox"),
|
|
132
|
-
return f(),
|
|
133
|
-
c(
|
|
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
134
|
modelValue: e(b),
|
|
135
|
-
"onUpdate:modelValue": a[2] || (a[2] = (
|
|
136
|
-
onMenuChanged: a[3] || (a[3] = (
|
|
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
137
|
placement: "top-end"
|
|
138
138
|
}, {
|
|
139
|
-
"menu-button":
|
|
139
|
+
"menu-button": S(() => [
|
|
140
140
|
c(P, {
|
|
141
141
|
"append-icon": e(b) ? "expand_more" : "expand_less",
|
|
142
142
|
class: "!h-auto"
|
|
143
143
|
}, {
|
|
144
|
-
default:
|
|
145
|
-
|
|
146
|
-
(f(!0),
|
|
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
147
|
key: I,
|
|
148
|
-
label:
|
|
148
|
+
label: d,
|
|
149
149
|
class: "max-w-[130px] text-ellipsis"
|
|
150
150
|
}, null, 8, ["label"]))), 128))
|
|
151
|
-
])) : (f(),
|
|
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
152
|
]),
|
|
153
153
|
_: 1
|
|
154
154
|
}, 8, ["append-icon"])
|
|
155
155
|
]),
|
|
156
|
-
default:
|
|
156
|
+
default: S(() => [
|
|
157
157
|
c(w, {
|
|
158
158
|
modelValue: e(U),
|
|
159
|
-
"onUpdate:modelValue": a[0] || (a[0] = (
|
|
160
|
-
placeholder: e(
|
|
159
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => W(U) ? U.value = d : null),
|
|
160
|
+
placeholder: e(v)("connect.setting.allowedPhoneCountries.searchCountries"),
|
|
161
161
|
class: "my-8"
|
|
162
162
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
163
163
|
c(n, {
|
|
164
164
|
class: "my-8",
|
|
165
165
|
value: null,
|
|
166
|
-
indeterminate:
|
|
167
|
-
label: e(
|
|
168
|
-
"model-value":
|
|
169
|
-
"onUpdate:modelValue": a[1] || (a[1] = (
|
|
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
170
|
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
171
|
-
(f(!0),
|
|
171
|
+
(f(!0), k(B, null, Z(e(D), (d) => (f(), N(n, {
|
|
172
172
|
class: "my-8",
|
|
173
|
-
key:
|
|
174
|
-
value:
|
|
175
|
-
label: `${
|
|
176
|
-
"model-value": !
|
|
177
|
-
"onUpdate:modelValue": (I) => o(I,
|
|
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
178
|
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
179
179
|
]),
|
|
180
180
|
_: 1
|
|
@@ -184,20 +184,20 @@ const ze = { class: "flex items-start" }, Qe = { class: "flex flex-col gap-16 mt
|
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
var Y = { authUrl: "https://portal-v2
|
|
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
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
189
|
key: 0,
|
|
190
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" },
|
|
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
192
|
__name: "Setting",
|
|
193
|
-
setup(
|
|
194
|
-
const x =
|
|
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
195
|
(r) => !r || r.length >= 6 || "Invalid URL format, please enter at least 6 characters",
|
|
196
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
197
|
], _ = Y.appUrl, P = E(() => {
|
|
198
198
|
var r;
|
|
199
199
|
return `https://${(r = o.value) == null ? void 0 : r.business}.${_}/user?join=true`;
|
|
200
|
-
}), w =
|
|
200
|
+
}), w = V(), { t: n } = ge(), $ = h.currentCountry.value || "MY", d = [
|
|
201
201
|
"user.name",
|
|
202
202
|
"user.gender",
|
|
203
203
|
"user.birthday",
|
|
@@ -206,15 +206,15 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
206
206
|
].filter(
|
|
207
207
|
(r) => {
|
|
208
208
|
var l;
|
|
209
|
-
return !((l = Te[
|
|
209
|
+
return !((l = Te[$]) != null && l.includes(r));
|
|
210
210
|
}
|
|
211
|
-
), I =
|
|
211
|
+
), I = V(
|
|
212
212
|
n("connect.setting.sms.welcomeMessage")
|
|
213
213
|
);
|
|
214
|
-
async function
|
|
214
|
+
async function ve() {
|
|
215
215
|
D.open({
|
|
216
216
|
title: "",
|
|
217
|
-
dialogComponent:
|
|
217
|
+
dialogComponent: We,
|
|
218
218
|
closeButton: !1
|
|
219
219
|
});
|
|
220
220
|
}
|
|
@@ -236,14 +236,14 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
236
236
|
async function he() {
|
|
237
237
|
await b(
|
|
238
238
|
async () => {
|
|
239
|
-
var
|
|
239
|
+
var R;
|
|
240
240
|
const r = je(o.value);
|
|
241
|
-
|
|
242
|
-
const l =
|
|
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
243
|
w.value === null && l.image ? await O.delete(O.coverImagePath()) : w.value && (l.image = await O.update(
|
|
244
244
|
O.coverImagePath(),
|
|
245
245
|
w.value
|
|
246
|
-
)), await
|
|
246
|
+
)), await Q.update(l), await y.readMembership(), o.value = y.membership;
|
|
247
247
|
},
|
|
248
248
|
{
|
|
249
249
|
message: "Updating membership",
|
|
@@ -252,7 +252,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
252
252
|
);
|
|
253
253
|
}
|
|
254
254
|
async function be() {
|
|
255
|
-
const r = await
|
|
255
|
+
const r = await Q.getEmailAddresses();
|
|
256
256
|
console.log(r), F.value = r, A.value = r.find((l) => l.default.includes("Marketing"));
|
|
257
257
|
}
|
|
258
258
|
async function _e() {
|
|
@@ -265,11 +265,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
265
265
|
const r = `${Y.licensePortalUrl}settings?businessId=${re.businessId}`;
|
|
266
266
|
console.log("Opening", r), window.open(r, "_blank");
|
|
267
267
|
}
|
|
268
|
-
return
|
|
268
|
+
return me(async () => {
|
|
269
269
|
await U(async () => {
|
|
270
270
|
await p.readPremium(), await p.readLocations(), await p.readLocationDevices(), await y.readMembership(), await be(), o.value = y.membership;
|
|
271
271
|
try {
|
|
272
|
-
const { content: r } = await
|
|
272
|
+
const { content: r } = await Q.getDefaultWelcomeMessage();
|
|
273
273
|
r && (I.value = r);
|
|
274
274
|
} catch (r) {
|
|
275
275
|
console.error("Failed to load default welcome message", r);
|
|
@@ -277,9 +277,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
277
277
|
});
|
|
278
278
|
}), (r, l) => {
|
|
279
279
|
var te, ne, oe, le, se, ae, ie;
|
|
280
|
-
const
|
|
281
|
-
return f(),
|
|
282
|
-
c(
|
|
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
283
|
title: e(n)("connect.setting.title"),
|
|
284
284
|
class: "xs:hidden"
|
|
285
285
|
}, null, 8, ["title"]),
|
|
@@ -290,7 +290,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
290
290
|
variant: "tertiary"
|
|
291
291
|
})
|
|
292
292
|
]),
|
|
293
|
-
e(o) ? (f(),
|
|
293
|
+
e(o) ? (f(), k("div", lt, [
|
|
294
294
|
t("div", st, [
|
|
295
295
|
t("div", at, i(e(n)("connect.setting.basicInfo.title")), 1),
|
|
296
296
|
t("div", it, [
|
|
@@ -309,10 +309,10 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
309
309
|
placeholder: e(o).business.toString(),
|
|
310
310
|
"onUpdate:modelValue": l[2] || (l[2] = (s) => e(o).url = s)
|
|
311
311
|
}, {
|
|
312
|
-
prepend:
|
|
312
|
+
prepend: S(() => [...l[14] || (l[14] = [
|
|
313
313
|
T(" https:// ", -1)
|
|
314
314
|
])]),
|
|
315
|
-
append:
|
|
315
|
+
append: S(() => [
|
|
316
316
|
T(" ." + i(e(_)) + " ", 1),
|
|
317
317
|
c(M, {
|
|
318
318
|
icon: "content_copy",
|
|
@@ -322,7 +322,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
322
322
|
]),
|
|
323
323
|
_: 1
|
|
324
324
|
}, 8, ["model-value", "label", "helper-text", "placeholder"]),
|
|
325
|
-
c(
|
|
325
|
+
c(Se, {
|
|
326
326
|
label: "Cover image",
|
|
327
327
|
class: "w-2/3 xs:w-full",
|
|
328
328
|
"image-fit": "cover",
|
|
@@ -338,17 +338,17 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
338
338
|
variant: "plain",
|
|
339
339
|
icon: "link",
|
|
340
340
|
label: e(n)("connect.setting.counterApp.linkDevice"),
|
|
341
|
-
onClick:
|
|
341
|
+
onClick: ve
|
|
342
342
|
}, null, 8, ["label"]),
|
|
343
|
-
(f(!0),
|
|
343
|
+
(f(!0), k(B, null, Z(e(p).locationDevices, (s, C) => (f(), N(j, {
|
|
344
344
|
key: C,
|
|
345
345
|
variant: "outlined",
|
|
346
346
|
class: "flex items-center justify-between px-16 py-12"
|
|
347
347
|
}, {
|
|
348
|
-
default:
|
|
348
|
+
default: S(() => [
|
|
349
349
|
t("div", null, [
|
|
350
|
-
t("p",
|
|
351
|
-
t("p",
|
|
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
352
|
"D MMM YYYY"
|
|
353
353
|
)), 1),
|
|
354
354
|
t("p", ut, i(e(n)("connect.setting.counterApp.device.linkedLocation")) + " " + i(e(p).locations.find((L) => L._id == s.location).name), 1)
|
|
@@ -365,18 +365,18 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
365
365
|
t("div", pt, [
|
|
366
366
|
t("div", ft, [
|
|
367
367
|
T(i(e(n)("connect.setting.advertisement.title")) + " ", 1),
|
|
368
|
-
c(
|
|
368
|
+
c(J, { variant: "premium" })
|
|
369
369
|
]),
|
|
370
370
|
c(j, {
|
|
371
371
|
variant: "outlined",
|
|
372
372
|
class: "p-16 flex items-center justify-between"
|
|
373
373
|
}, {
|
|
374
|
-
default:
|
|
374
|
+
default: S(() => {
|
|
375
375
|
var s;
|
|
376
376
|
return [
|
|
377
377
|
t("div", null, [
|
|
378
|
-
t("div",
|
|
379
|
-
t("div",
|
|
378
|
+
t("div", gt, i(e(n)("connect.setting.advertisement.manageAd")), 1),
|
|
379
|
+
t("div", vt, i(e(n)("connect.setting.advertisement.activeAdsShowing", {
|
|
380
380
|
count: ((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0
|
|
381
381
|
})), 1)
|
|
382
382
|
]),
|
|
@@ -395,7 +395,7 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
395
395
|
})
|
|
396
396
|
]),
|
|
397
397
|
t("div", yt, [
|
|
398
|
-
l[
|
|
398
|
+
l[15] || (l[15] = t("div", { class: "fm-typo-en-title-sm-800" }, "SMS", -1)),
|
|
399
399
|
c(H, {
|
|
400
400
|
"model-value": ((te = e(o)) == null ? void 0 : te.brand) || "",
|
|
401
401
|
"max-length": 15,
|
|
@@ -406,23 +406,23 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
406
406
|
}),
|
|
407
407
|
"onUpdate:modelValue": l[5] || (l[5] = (s) => e(o).brand = s)
|
|
408
408
|
}, null, 8, ["model-value", "label", "helper-text"]),
|
|
409
|
-
c(
|
|
409
|
+
c(Be, {
|
|
410
410
|
modelValue: e(o).welcomeMessage,
|
|
411
411
|
"onUpdate:modelValue": l[6] || (l[6] = (s) => e(o).welcomeMessage = s),
|
|
412
412
|
"hide-credit-card": !0,
|
|
413
|
-
variables: e(
|
|
413
|
+
variables: e(d),
|
|
414
414
|
placeholder: e(I)
|
|
415
415
|
}, null, 8, ["modelValue", "variables", "placeholder"])
|
|
416
416
|
]),
|
|
417
417
|
t("div", ht, [
|
|
418
|
-
l[
|
|
418
|
+
l[16] || (l[16] = t("div", { class: "fm-typo-en-title-sm-800" }, "Email", -1)),
|
|
419
419
|
t("div", bt, i(e(n)("connect.setting.email.description")), 1),
|
|
420
|
-
e(F).length ?
|
|
420
|
+
e(F).length ? X("", !0) : (f(), N(M, {
|
|
421
421
|
key: 0,
|
|
422
422
|
onClick: _e,
|
|
423
423
|
label: e(n)("connect.setting.email.addNewAddress")
|
|
424
424
|
}, null, 8, ["label"])),
|
|
425
|
-
e(F).length ? (f(),
|
|
425
|
+
e(F).length ? (f(), k(B, { key: 1 }, [
|
|
426
426
|
c(Ce, {
|
|
427
427
|
"model-value": ((le = (oe = e(o)) == null ? void 0 : oe.email) == null ? void 0 : le.from) || null,
|
|
428
428
|
label: e(n)("connect.setting.email.fromAddress"),
|
|
@@ -435,10 +435,10 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
435
435
|
var C, L;
|
|
436
436
|
(C = e(o)) != null && C.email || (e(o).email = {
|
|
437
437
|
from: s,
|
|
438
|
-
name: (L = e(F).find((
|
|
438
|
+
name: (L = e(F).find((q) => q.emailAddress == s)) == null ? void 0 : L.name
|
|
439
439
|
}), e(o).email.from = s || null;
|
|
440
440
|
}),
|
|
441
|
-
rules: [e(ce).ruleAtPath(e(
|
|
441
|
+
rules: [e(ce).ruleAtPath(e(m), "email.from")]
|
|
442
442
|
}, null, 8, ["model-value", "label", "items", "placeholder", "rules"]),
|
|
443
443
|
c(H, {
|
|
444
444
|
"model-value": ((ae = (se = e(o)) == null ? void 0 : se.email) == null ? void 0 : ae.name) || null,
|
|
@@ -451,9 +451,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
451
451
|
name: s
|
|
452
452
|
}), e(o).email.name = s || null;
|
|
453
453
|
}),
|
|
454
|
-
rules: [e(ce).ruleAtPath(e(
|
|
454
|
+
rules: [e(ce).ruleAtPath(e(m), "email.name")]
|
|
455
455
|
}, null, 8, ["model-value", "label", "placeholder", "rules"])
|
|
456
|
-
], 64)) :
|
|
456
|
+
], 64)) : X("", !0)
|
|
457
457
|
]),
|
|
458
458
|
t("div", _t, [
|
|
459
459
|
t("div", wt, i(e(n)("connect.setting.whatsapp.title")), 1),
|
|
@@ -465,11 +465,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
465
465
|
}, null, 8, ["label"])
|
|
466
466
|
]),
|
|
467
467
|
t("div", xt, [
|
|
468
|
-
t("div",
|
|
468
|
+
t("div", kt, [
|
|
469
469
|
T(i(e(n)("connect.setting.freeCredit.title")) + " ", 1),
|
|
470
|
-
t("span",
|
|
470
|
+
t("span", Vt, i(e(n)("connect.setting.freeCredit.posVersion")), 1)
|
|
471
471
|
]),
|
|
472
|
-
c(
|
|
472
|
+
c(ee, {
|
|
473
473
|
"model-value": e(o).freeCreditAsDiscount ?? !1,
|
|
474
474
|
"onUpdate:modelValue": l[10] || (l[10] = (s) => e(o).freeCreditAsDiscount = s),
|
|
475
475
|
label: e(n)("connect.setting.freeCredit.title"),
|
|
@@ -481,9 +481,9 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
481
481
|
t("div", Ut, [
|
|
482
482
|
t("div", Ft, [
|
|
483
483
|
T(i(e(n)("connect.setting.memberCard.title")) + " ", 1),
|
|
484
|
-
c(
|
|
484
|
+
c(J, { variant: "premium" })
|
|
485
485
|
]),
|
|
486
|
-
c(
|
|
486
|
+
c(ee, {
|
|
487
487
|
"model-value": e(o).cardEnable ?? !1,
|
|
488
488
|
"onUpdate:modelValue": l[11] || (l[11] = (s) => e(o).cardEnable = s),
|
|
489
489
|
label: "",
|
|
@@ -494,69 +494,58 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
494
494
|
}, null, 8, ["model-value", "sublabel", "disabled"])
|
|
495
495
|
]),
|
|
496
496
|
t("div", At, [
|
|
497
|
-
|
|
498
|
-
c(q, {
|
|
499
|
-
"model-value": e(o).autoRevertReward ?? !1,
|
|
500
|
-
"onUpdate:modelValue": l[12] || (l[12] = (s) => e(o).autoRevertReward = s),
|
|
501
|
-
label: "",
|
|
502
|
-
sublabel: "When enabled, rewards are automatically revert when if a refund is processed in POS",
|
|
503
|
-
"label-placement": "right",
|
|
504
|
-
value: ""
|
|
505
|
-
}, null, 8, ["model-value"])
|
|
506
|
-
]),
|
|
507
|
-
t("div", Pt, [
|
|
508
|
-
t("div", St, i(e(n)("connect.setting.location.title")), 1),
|
|
497
|
+
t("div", Pt, i(e(n)("connect.setting.location.title")), 1),
|
|
509
498
|
c(Ee, {
|
|
510
499
|
label: e(n)("connect.setting.location.selectLabel"),
|
|
511
500
|
"model-value": e(o).targetLocation ?? null,
|
|
512
|
-
"onUpdate:modelValue": l[
|
|
501
|
+
"onUpdate:modelValue": l[12] || (l[12] = (s) => e(o).targetLocation = s)
|
|
513
502
|
}, null, 8, ["label", "model-value"])
|
|
514
503
|
]),
|
|
515
504
|
t("div", $t, [
|
|
516
|
-
t("div",
|
|
517
|
-
t("div",
|
|
505
|
+
t("div", St, i(e(n)("connect.setting.allowedPhoneCountries.title")), 1),
|
|
506
|
+
t("div", Mt, i(e(n)("connect.setting.allowedPhoneCountries.description")), 1),
|
|
518
507
|
c(tt, {
|
|
519
508
|
modelValue: e(o).allowedPhoneCountries,
|
|
520
|
-
"onUpdate:modelValue": l[
|
|
509
|
+
"onUpdate:modelValue": l[13] || (l[13] = (s) => e(o).allowedPhoneCountries = s)
|
|
521
510
|
}, null, 8, ["modelValue"])
|
|
522
511
|
]),
|
|
523
|
-
t("div",
|
|
512
|
+
t("div", Lt, [
|
|
524
513
|
c(M, {
|
|
525
514
|
label: e(n)("connect.setting.action.update"),
|
|
526
515
|
type: "button",
|
|
527
516
|
onClick: he,
|
|
528
|
-
disabled: !!e(
|
|
529
|
-
loading: !!e(
|
|
517
|
+
disabled: !!e(v).loadingQueue.length,
|
|
518
|
+
loading: !!e(v).loadingQueue.length
|
|
530
519
|
}, null, 8, ["label", "disabled", "loading"])
|
|
531
520
|
])
|
|
532
521
|
])
|
|
533
522
|
]),
|
|
534
|
-
t("div",
|
|
523
|
+
t("div", Dt, [
|
|
535
524
|
c(j, {
|
|
536
525
|
variant: "outlined",
|
|
537
526
|
class: "flex flex-col p-24 gap-8"
|
|
538
527
|
}, {
|
|
539
|
-
default:
|
|
528
|
+
default: S(() => {
|
|
540
529
|
var s, C, L;
|
|
541
530
|
return [
|
|
542
|
-
t("div",
|
|
531
|
+
t("div", It, i(e(n)("connect.setting.summary.title")), 1),
|
|
543
532
|
c(xe, { class: "my-4" }),
|
|
544
533
|
t("div", null, [
|
|
545
|
-
t("div",
|
|
546
|
-
t("div",
|
|
534
|
+
t("div", Et, i(e(n)("connect.setting.summary.name")), 1),
|
|
535
|
+
t("div", Tt, i(e(o).name), 1)
|
|
547
536
|
]),
|
|
548
537
|
t("div", null, [
|
|
549
538
|
t("div", Bt, i(e(n)("connect.setting.summary.advertisement")), 1),
|
|
550
539
|
t("div", Nt, i((((s = e(o).advertisements) == null ? void 0 : s.length) ?? 0) || e(n)("connect.setting.summary.noAds")), 1)
|
|
551
540
|
]),
|
|
552
541
|
t("div", null, [
|
|
553
|
-
t("div",
|
|
554
|
-
t("div",
|
|
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)
|
|
555
544
|
]),
|
|
556
545
|
t("div", null, [
|
|
557
|
-
t("div",
|
|
558
|
-
t("div",
|
|
559
|
-
(
|
|
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
|
|
560
549
|
).join(", ")), 1)
|
|
561
550
|
])
|
|
562
551
|
];
|
|
@@ -564,11 +553,11 @@ const nt = { class: "hidden xs:!flex items-center justify-between px-16 py-12 bo
|
|
|
564
553
|
_: 1
|
|
565
554
|
})
|
|
566
555
|
])
|
|
567
|
-
])) :
|
|
556
|
+
])) : X("", !0)
|
|
568
557
|
], 64);
|
|
569
558
|
};
|
|
570
559
|
}
|
|
571
560
|
});
|
|
572
561
|
export {
|
|
573
|
-
|
|
562
|
+
fn as default
|
|
574
563
|
};
|