@feedmepos/mf-connect 0.1.122-prod → 0.1.123-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-BKnL7b6M.js → App-BHqbxq_5.js} +502 -493
- package/dist/AuditLogs-FB5BGl_F.js +2016 -0
- package/dist/{Bin-BqqQF1h_.js → Bin-Bc5C_yvE.js} +8 -8
- package/dist/{Broadcast-U5rJmhdd.js → Broadcast-CEJc8daU.js} +22 -21
- package/dist/{CampaignAnalytic-ClwXxxzE.js → CampaignAnalytic-wUhISw-Z.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DyeoWFcd.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BlLw8Tb5.js} +8 -9
- package/dist/{Card-DKikDYES.js → Card-uviAfIRX.js} +22 -22
- package/dist/{Collections-CD0xjFqI.js → Collections-COA2uZGw.js} +197 -185
- package/dist/{Credit-BWcvFlb2.js → Credit-Dh4GleW1.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B2RizWP8.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DM-uzm4_.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-9fDPd8x9.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js → EffectSheet.vue_vue_type_style_index_0_lang-DorkQcT5.js} +16 -16
- package/dist/{Experience-dqXYj1Fv.js → Experience-oOmPXIh-.js} +32 -31
- package/dist/{FileSaver.min-DdJMn696.js → FileSaver.min-_q7Dx4wn.js} +1 -1
- package/dist/{Game-BGQXqzck.js → Game-BTfpDAXf.js} +19 -18
- package/dist/{GiftCardSetup-C3MR25fp.js → GiftCardSetup-FhOKl3OA.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-9dL1kVPG.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BWP_vdpd.js} +7 -7
- package/dist/{Goals-DA2jHEZa.js → Goals-A5qHITPJ.js} +4 -4
- package/dist/Grab-D7BOmVRB.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js → ImageInput.vue_vue_type_script_setup_true_lang-CqkwVS2r.js} +1 -1
- package/dist/{Index-WOvryalE.js → Index-CuSQjKgG.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Bu1DjV9M.js → LocationPicker.vue_vue_type_script_setup_true_lang-D6bURd7V.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DiLtSIXt.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C3Nt5VLS.js} +1 -1
- package/dist/{LoyaltyDashboard-BKN2vBqc.js → LoyaltyDashboard-B66W2agI.js} +15 -15
- package/dist/{MainLayout-DizL-dxl.js → MainLayout-CguQ_XOG.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-El0YeLnE.js → MainLayout.vue_vue_type_script_setup_true_lang-ByHEOOgE.js} +3 -3
- package/dist/{Marketing-B77EoiCf.js → Marketing-DsRvHFfJ.js} +4 -4
- package/dist/{MarketingMaterialEdit-C_qFEur7.js → MarketingMaterialEdit-DLqupGle.js} +214 -211
- package/dist/{Member-TYDrU3Tk.js → Member-BlRWRmf7.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-BuzMeXR9.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-GZ5gUgb8.js} +39 -47
- package/dist/{MemberImportHistory-l7dVJdEH.js → MemberImportHistory-DxpuDRx4.js} +7 -7
- package/dist/{MemberList-DiuyeJx_.js → MemberList-DnKQ0nCm.js} +103 -105
- package/dist/{MemberTransactions-BJ27Gd5P.js → MemberTransactions-bs3canOe.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js → MessageInput.vue_vue_type_script_setup_true_lang-DRU6aeH8.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DgE7HPsT.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BYH3qzyb.js} +1 -1
- package/dist/{Mission-C63hh8Ra.js → Mission-DHXh7T93.js} +22 -21
- package/dist/{Overview-DP-4Kpuj.js → Overview-CVQBgphM.js} +145 -144
- package/dist/{Overview-CVdvQK6q.js → Overview-UAF9JSio.js} +20 -20
- package/dist/{Point-DXH4kJNQ.js → Point-C6wv1uzT.js} +22 -21
- package/dist/{Promotion-Cn-wAx6m.js → Promotion-CeZRHUed.js} +137 -131
- package/dist/{Queue-CEEUE-UT.js → Queue-BxTSJ6LA.js} +45 -45
- package/dist/{Record-BFIjLKJD.js → Record-DoOyOT7I.js} +9 -9
- package/dist/{Review-BMRfKri0.js → Review-BSpjwVxg.js} +2 -2
- package/dist/ReviewFacebookCallback-CMAQ_PXJ.js +225 -0
- package/dist/{ReviewGoogleCallback-Cflqv5Z5.js → ReviewGoogleCallback-D---BE3G.js} +5 -5
- package/dist/{Reward-C-qGtzpu.js → Reward-BC2PCxwA.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-kxJ5i8xe.js → RewardGroup.vue_vue_type_script_setup_true_lang-VV8I4Pnl.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DmOKmXkP.js +1923 -0
- package/dist/{Segment-Bx1pfw4Q.js → Segment-CcRapIdF.js} +303 -306
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-vuH9xdOi.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D9Ino3uS.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CZHpyimI.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C42YDmfw.js} +4 -4
- package/dist/Setting-CTWV-j-u.js +574 -0
- package/dist/{SettingAdvertisements-CZlIQ5m_.js → SettingAdvertisements-1WCqp0FF.js} +12 -12
- package/dist/Settings-BxgqmIBl.js +286 -0
- package/dist/{Store-BhZulzuc.js → Store-uhCU5WYY.js} +28 -28
- package/dist/{StoreRewards-CvYgJVFU.js → StoreRewards-DjgbbZsB.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-BgT5nChN.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BAUBxdV2.js +7007 -0
- package/dist/{Tier-BPPSaEe0.js → Tier-B6sp_dj5.js} +2575 -687
- package/dist/{Title-CccRUVZV.js → Title-Dew9vKN4.js} +95 -94
- package/dist/{Transaction-ULzAt-u7.js → Transaction-ITefNWob.js} +2 -2
- package/dist/Upselling-AMpfgEvH.js +1042 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CoqrSuWu.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B4LP8LZ-.js} +26 -26
- package/dist/{Voucher-Cz7IMRNl.js → Voucher-CRP6KY1f.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BaxHZN76.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BZEJecca.js} +12 -12
- package/dist/{WhatsappAccount-BsxVHiZZ.js → WhatsappAccount-MkutDvBs.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DJnkGMF1.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-vDLl0J7v.js} +1 -1
- package/dist/{WhatsappBot-sd6erVZk.js → WhatsappBot-B0m21qPb.js} +6 -6
- package/dist/{WhatsappBotLogs-DNbGWyOY.js → WhatsappBotLogs-BHyoUuef.js} +6 -6
- package/dist/{WhatsappBotSettings-DXa_e7-a.js → WhatsappBotSettings-BbiHQ3Qb.js} +4 -4
- package/dist/{WhatsappLayout-DvBPIB5f.js → WhatsappLayout-yq05I3IA.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CRDouGvj.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BrjbWgKf.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js → ZodTextField.vue_vue_type_script_setup_true_lang-CLiZ6jd6.js} +2 -2
- package/dist/{app-4x06ItoL.js → app-Ce3Q-VS4.js} +14861 -15017
- package/dist/app.js +4 -3
- package/dist/{base.export-DS0xThWi.js → base.export-Ds3PiiHA.js} +2 -2
- package/dist/{business-D0I7G-5H.js → business-CfxfaERu.js} +1 -1
- package/dist/{campaign-BuJCjEH-.js → campaign-COuKKIRA.js} +121 -94
- package/dist/{campaign-CC9U7rkr.js → campaign-CtX-q7KI.js} +34 -28
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-oUqhH0SU.js +776 -0
- package/dist/{collection.fn-CUifllLR.js → collection.fn-PhjmENfo.js} +2 -2
- package/dist/{currency-BPhBDOpt.js → currency-DmSaw6iQ.js} +1 -1
- package/dist/duplicateCampaign-DzF45eaZ.js +51 -0
- package/dist/{effect-DKHOR-B3.js → effect-sAKjjlrO.js} +1 -1
- package/dist/{email-addresses-B-VEReRV.js → email-addresses-jSqlPLwS.js} +25 -25
- package/dist/{feature-flag-Cjl6gaO5.js → feature-flag-Dvz3D7kC.js} +171 -185
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-CBLh1PWR.js → helper-Dn6pU0yd.js} +1 -1
- package/dist/{index-DL_UYO4J.js → index--A062GN8.js} +380 -234
- package/dist/{index-DenQ8DV4.js → index-2B_HRy_7.js} +1 -1
- package/dist/{index-umYXnOWc.js → index-8wWIydMw.js} +608 -251
- package/dist/{index-C1QA2M4I.js → index-Aqx0Hc_6.js} +10 -10
- package/dist/{index-kClA31M9.js → index-B_GA0PSb.js} +10 -10
- package/dist/{index-bc7bIIVP.js → index-B_aWWeg9.js} +197 -197
- package/dist/{index-Djf4TpYV.js → index-BiBBY6Sk.js} +23 -23
- package/dist/{index-vqUiCeKb.js → index-BoFxBf97.js} +1 -1
- package/dist/{index-B_iKSOXp.js → index-BrqespAR.js} +1 -1
- package/dist/{index-BwgjSrwa.js → index-Bu2uqM4e.js} +2 -2
- package/dist/{index-BzKKNuLc.js → index-C4O-Fym0.js} +2 -2
- package/dist/{index-BBsqcXfJ.js → index-C8fp9YtA.js} +1 -1
- package/dist/{index-Ob5I-Sex.js → index-CRFiQOrt.js} +1 -1
- package/dist/{index-RMsQnHez.js → index-CUaL0i4I.js} +1 -1
- package/dist/{index-EpqQFMu2.js → index-Cgg1NNfN.js} +2699 -2614
- package/dist/{index-ZTC5k9Jb.js → index-CjAhwLNW.js} +19 -6
- package/dist/{index-CWJi_hw-.js → index-D6wQPKHc.js} +2 -2
- package/dist/{index-nnmfOPuw.js → index-DFAceV6T.js} +4 -4
- package/dist/{index-CGcWs8B5.js → index-bGITzW-d.js} +533 -462
- package/dist/{index-D3B392A3.js → index-pCmNLjIj.js} +3 -3
- package/dist/{index.esm2017-DMKkHR06.js → index.esm2017-ChJMTCyQ.js} +93 -93
- package/dist/{loading-Cb4RgEo7.js → loading-DhiMqWJA.js} +1 -1
- package/dist/{lodash-CMazTe9d.js → lodash-CCBK4pXz.js} +1 -1
- package/dist/{member-import-Df1y7FvX.js → member-import-BUvsg-Lu.js} +1 -1
- package/dist/{membership-yvDb2HS8.js → membership-7X3Uc50t.js} +2 -2
- package/dist/{money-rs9shyUy.js → money-D5EIeVr_.js} +1 -1
- package/dist/{number-Ecq6MjRx.js → number-Bj7X6VoA.js} +1 -1
- package/dist/objectid-CzFM8vy5.js +145 -0
- package/dist/{onboarding-DugmLfNG.js → onboarding-0mA1gXrv.js} +36 -36
- package/dist/{onboardingSetup-DMzNxJC4.js → onboardingSetup-BBPg-cAT.js} +2 -2
- package/dist/{plugins-CvhBJQEK.js → plugins-bprg7ahs.js} +3 -3
- package/dist/{reward-BGUOUKZn.js → reward-WTxymIQH.js} +1 -1
- package/dist/{rule-C87YbT3F.js → rule-hJuK8Yqw.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-wt4Q2S3f.js +227 -0
- package/dist/{timezone-uP_heouv.js → timezone-BWkDzpwA.js} +1 -1
- package/dist/{transaction.fn-CiGhIgzP.js → transaction.fn-DzwtEBIZ.js} +2 -2
- package/dist/{trigger-dOOSh-Yp.js → trigger-D6hitqvM.js} +9 -9
- package/dist/{useMarketingMaterialActions-BRenBblP.js → useMarketingMaterialActions-ByWwvQRt.js} +4 -4
- package/dist/{usePagination-DNOc8GFS.js → usePagination-Mr6qWVOa.js} +1 -1
- package/dist/{user-DTAGYy-F.js → user-Dpl2lhox.js} +1 -1
- package/dist/vue-i18n-BEFR04bc.js +2365 -0
- package/dist/{xlsx-BU0bDwTF.js → xlsx-Cu5ybiy4.js} +1 -1
- package/dist/{zod-mPFqdty8.js → zod-CcKqtEqX.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D38JB0FV.js +0 -3493
- package/dist/ReviewFacebookCallback-CPYIC3RS.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BlRmshrE.js +0 -1884
- package/dist/Setting-CEcpuE_O.js +0 -578
- package/dist/Settings-CPLibjQy.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dqj5zIgi.js +0 -1297
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js +0 -142
- package/dist/Upselling-D2tSUTkE.js +0 -200
- package/dist/campaign.fn-CLUOgMgc.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/objectid-BVri-Vim.js +0 -145
- package/dist/rule-builder-lzMi7irV.js +0 -102
- package/dist/template-BfFSbH04.js +0 -275
- package/dist/vue-i18n-D8wuxuA4.js +0 -2365
|
@@ -0,0 +1,286 @@
|
|
|
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-DhiMqWJA.js";
|
|
3
|
+
import { u as Q } from "./business-CfxfaERu.js";
|
|
4
|
+
import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as O } from "./vue-i18n-BEFR04bc.js";
|
|
6
|
+
import { h as A } from "./moment-D7p2TMB-.js";
|
|
7
|
+
import { g as Z, f as ee } from "./google-BQK68wbe.js";
|
|
8
|
+
import { R as ne } from "./app-Ce3Q-VS4.js";
|
|
9
|
+
import { useRouter as oe } from "vue-router";
|
|
10
|
+
import { r as $ } from "./index-B_GA0PSb.js";
|
|
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
|
+
key: 1,
|
|
13
|
+
class: "truncate"
|
|
14
|
+
}, ue = {
|
|
15
|
+
key: 2,
|
|
16
|
+
class: "truncate"
|
|
17
|
+
}, de = {
|
|
18
|
+
key: 1,
|
|
19
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
|
|
20
|
+
}, me = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, H = /* @__PURE__ */ M({
|
|
21
|
+
__name: "ReviewSource",
|
|
22
|
+
props: {
|
|
23
|
+
icon: {},
|
|
24
|
+
name: {},
|
|
25
|
+
connected: { type: Boolean },
|
|
26
|
+
subtitle: {},
|
|
27
|
+
syncing: { type: Boolean },
|
|
28
|
+
tokenExpired: { type: Boolean },
|
|
29
|
+
lastSyncTime: {}
|
|
30
|
+
},
|
|
31
|
+
emits: ["connect", "sync"],
|
|
32
|
+
setup(r, { emit: h }) {
|
|
33
|
+
const f = r, S = h, { t: l } = O(), c = G(), k = F(null);
|
|
34
|
+
z(
|
|
35
|
+
() => f.syncing,
|
|
36
|
+
(i) => {
|
|
37
|
+
i && (k.value = /* @__PURE__ */ new Date());
|
|
38
|
+
},
|
|
39
|
+
{ immediate: !0 }
|
|
40
|
+
);
|
|
41
|
+
const p = b(
|
|
42
|
+
() => f.lastSyncTime ? A(f.lastSyncTime) : null
|
|
43
|
+
), T = b(() => {
|
|
44
|
+
var i;
|
|
45
|
+
return ((i = p.value) == null ? void 0 : i.fromNow()) ?? "";
|
|
46
|
+
}), B = b(
|
|
47
|
+
() => {
|
|
48
|
+
var i;
|
|
49
|
+
return ((i = p.value) == null ? void 0 : i.format("D MMM YYYY, HH:mm")) ?? "";
|
|
50
|
+
}
|
|
51
|
+
), I = b(
|
|
52
|
+
() => A(k.value ?? void 0).format("HH:mm")
|
|
53
|
+
), u = b(() => f.syncing ? "syncing" : p.value ? "synced" : "never");
|
|
54
|
+
return (i, m) => (t(), s("div", te, [
|
|
55
|
+
a("div", {
|
|
56
|
+
class: N(["flex items-center gap-12 p-16", e(c).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
57
|
+
}, [
|
|
58
|
+
a("img", {
|
|
59
|
+
src: r.icon,
|
|
60
|
+
class: "w-10 h-10 shrink-0"
|
|
61
|
+
}, null, 8, ce),
|
|
62
|
+
a("div", ae, [
|
|
63
|
+
a("span", se, d(r.name), 1),
|
|
64
|
+
r.connected ? (t(), s("div", {
|
|
65
|
+
key: 0,
|
|
66
|
+
class: N(["flex items-center gap-8 fm-typo-en-body-sm-400 truncate", {
|
|
67
|
+
"text-fm-color-typo-secondary": u.value !== "syncing",
|
|
68
|
+
"text-fm-color-typo-warning": u.value === "syncing"
|
|
69
|
+
}])
|
|
70
|
+
}, [
|
|
71
|
+
a("span", {
|
|
72
|
+
class: N(["w-8 h-8 rounded-full shrink-0", {
|
|
73
|
+
"bg-fm-color-system-success-400": u.value === "synced",
|
|
74
|
+
"bg-fm-color-primary": u.value === "syncing",
|
|
75
|
+
"bg-fm-color-neutral-gray-300": u.value === "never"
|
|
76
|
+
}])
|
|
77
|
+
}, null, 2),
|
|
78
|
+
u.value === "synced" ? (t(), s(w, { key: 0 }, [
|
|
79
|
+
a("span", re, d(e(l)("connect.review.lastSynced", { relative: T.value })), 1),
|
|
80
|
+
m[3] || (m[3] = a("span", { class: "text-fm-color-neutral-gray-300" }, "·", -1)),
|
|
81
|
+
a("span", le, d(B.value), 1)
|
|
82
|
+
], 64)) : u.value === "syncing" ? (t(), s("span", ie, d(e(l)("connect.review.syncingNow", { time: I.value })), 1)) : (t(), s("span", ue, d(e(l)("connect.review.neverSynced")), 1))
|
|
83
|
+
], 2)) : (t(), s("span", de, d(r.subtitle || e(l)("connect.review.notConnected")), 1))
|
|
84
|
+
]),
|
|
85
|
+
r.connected ? (t(), s(w, { key: 0 }, [
|
|
86
|
+
r.tokenExpired ? (t(), U(e(x).FmChip, {
|
|
87
|
+
key: 0,
|
|
88
|
+
label: e(l)("connect.review.expired"),
|
|
89
|
+
variant: "critical"
|
|
90
|
+
}, null, 8, ["label"])) : C("", !0),
|
|
91
|
+
E(e(x).FmButton, {
|
|
92
|
+
variant: "secondary",
|
|
93
|
+
"prepend-icon": "refresh",
|
|
94
|
+
label: e(l)("connect.review.reconnect"),
|
|
95
|
+
onClick: m[0] || (m[0] = (_) => S("connect"))
|
|
96
|
+
}, null, 8, ["label"]),
|
|
97
|
+
r.tokenExpired ? C("", !0) : (t(), U(e(x).FmButton, {
|
|
98
|
+
key: 1,
|
|
99
|
+
variant: "primary",
|
|
100
|
+
"prepend-icon": "sync",
|
|
101
|
+
label: e(l)("connect.review.sync"),
|
|
102
|
+
loading: r.syncing,
|
|
103
|
+
onClick: m[1] || (m[1] = (_) => S("sync"))
|
|
104
|
+
}, null, 8, ["label", "loading"]))
|
|
105
|
+
], 64)) : C("", !0)
|
|
106
|
+
], 2),
|
|
107
|
+
r.connected ? C("", !0) : (t(), s("div", {
|
|
108
|
+
key: 0,
|
|
109
|
+
class: N(["flex items-center justify-between gap-12 p-16", e(c).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
110
|
+
}, [
|
|
111
|
+
a("span", me, d(e(l)("connect.review.connectHint", { name: r.name })), 1),
|
|
112
|
+
E(e(x).FmButton, {
|
|
113
|
+
"prepend-icon": "add",
|
|
114
|
+
label: e(l)("connect.review.connect"),
|
|
115
|
+
onClick: m[2] || (m[2] = (_) => S("connect"))
|
|
116
|
+
}, null, 8, ["label"])
|
|
117
|
+
], 2)),
|
|
118
|
+
W(i.$slots, "default")
|
|
119
|
+
]));
|
|
120
|
+
}
|
|
121
|
+
}), ye = { class: "p-24 flex flex-col gap-8" }, fe = { class: "flex flex-col flex-1 min-w-0" }, ge = { class: "fm-typo-en-body-lg-600 truncate" }, pe = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, ve = ["src"], be = { class: "flex flex-col flex-1 min-w-0" }, ke = { class: "fm-typo-en-body-lg-600 truncate" }, we = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, Te = /* @__PURE__ */ M({
|
|
122
|
+
__name: "Settings",
|
|
123
|
+
setup(r) {
|
|
124
|
+
const { t: h } = O(), f = X(), S = oe(), l = Q(), c = F(null), k = F(!1), p = F(!1), T = b(
|
|
125
|
+
() => {
|
|
126
|
+
var n;
|
|
127
|
+
return c.value ? ((n = c.value.google) == null ? void 0 : n.accessToken) === null : !1;
|
|
128
|
+
}
|
|
129
|
+
), B = b(
|
|
130
|
+
() => {
|
|
131
|
+
var n;
|
|
132
|
+
return c.value ? ((n = c.value.facebook) == null ? void 0 : n.token) === null : !1;
|
|
133
|
+
}
|
|
134
|
+
);
|
|
135
|
+
function I(n) {
|
|
136
|
+
const o = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
|
|
137
|
+
return `${window.location.origin}${o}${n}`;
|
|
138
|
+
}
|
|
139
|
+
async function u() {
|
|
140
|
+
await K.minor(async () => {
|
|
141
|
+
c.value = await $.getSource();
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
function i(n) {
|
|
145
|
+
var o;
|
|
146
|
+
return (o = l.locations.find(
|
|
147
|
+
(g) => g._id.toString() === n
|
|
148
|
+
)) == null ? void 0 : o.name;
|
|
149
|
+
}
|
|
150
|
+
function m(n) {
|
|
151
|
+
return n.map((o) => i(o)).filter((o) => o !== void 0).join(", ");
|
|
152
|
+
}
|
|
153
|
+
function _() {
|
|
154
|
+
f.open({
|
|
155
|
+
message: h("connect.review.syncSuccess"),
|
|
156
|
+
type: "success"
|
|
157
|
+
}), S.push({ name: ne["$connect-REVIEW_OVERVIEW"] });
|
|
158
|
+
}
|
|
159
|
+
async function P() {
|
|
160
|
+
var n, o;
|
|
161
|
+
k.value = !0;
|
|
162
|
+
try {
|
|
163
|
+
await $.syncGoogleReviews(), _();
|
|
164
|
+
} catch (g) {
|
|
165
|
+
if (await u(), ((o = (n = c.value) == null ? void 0 : n.google) == null ? void 0 : o.accessToken) === null) {
|
|
166
|
+
f.open({
|
|
167
|
+
message: h("connect.review.tokenExpired"),
|
|
168
|
+
type: "error"
|
|
169
|
+
});
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
throw g;
|
|
173
|
+
} finally {
|
|
174
|
+
k.value = !1;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
async function Y() {
|
|
178
|
+
var n, o;
|
|
179
|
+
p.value = !0;
|
|
180
|
+
try {
|
|
181
|
+
await $.syncFacebookReviews(), _();
|
|
182
|
+
} catch (g) {
|
|
183
|
+
if (await u(), ((o = (n = c.value) == null ? void 0 : n.facebook) == null ? void 0 : o.token) === null) {
|
|
184
|
+
f.open({
|
|
185
|
+
message: h("connect.review.tokenExpired"),
|
|
186
|
+
type: "error"
|
|
187
|
+
});
|
|
188
|
+
return;
|
|
189
|
+
}
|
|
190
|
+
throw g;
|
|
191
|
+
} finally {
|
|
192
|
+
p.value = !1;
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
async function j() {
|
|
196
|
+
const n = I("/review/google/callback"), { callbackUrl: o } = await $.getOauthUrl("google", n);
|
|
197
|
+
window.location.href = o;
|
|
198
|
+
}
|
|
199
|
+
async function D() {
|
|
200
|
+
const n = I("/review/facebook/callback"), { callbackUrl: o } = await $.getOauthUrl("facebook", n);
|
|
201
|
+
window.location.href = o;
|
|
202
|
+
}
|
|
203
|
+
return q(() => {
|
|
204
|
+
u(), l.readLocations();
|
|
205
|
+
}), (n, o) => {
|
|
206
|
+
var g, V;
|
|
207
|
+
return t(), s("div", ye, [
|
|
208
|
+
e(c) ? (t(), s(w, { key: 0 }, [
|
|
209
|
+
E(H, {
|
|
210
|
+
icon: e(Z),
|
|
211
|
+
name: "google",
|
|
212
|
+
connected: !!e(c).google,
|
|
213
|
+
syncing: e(k),
|
|
214
|
+
"token-expired": e(T),
|
|
215
|
+
"last-sync-time": (g = e(c).google) == null ? void 0 : g.lastSyncTime,
|
|
216
|
+
onConnect: j,
|
|
217
|
+
onSync: P
|
|
218
|
+
}, {
|
|
219
|
+
default: L(() => {
|
|
220
|
+
var v;
|
|
221
|
+
return [
|
|
222
|
+
(t(!0), s(w, null, R((v = e(c).google) == null ? void 0 : v.locations, (y) => (t(), s("div", {
|
|
223
|
+
key: y.googleLocationName,
|
|
224
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
225
|
+
}, [
|
|
226
|
+
E(e(x).FmIcon, {
|
|
227
|
+
name: "location_on",
|
|
228
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
229
|
+
}),
|
|
230
|
+
a("div", fe, [
|
|
231
|
+
a("span", ge, d(y.displayName), 1),
|
|
232
|
+
a("span", pe, d(i(y.locationId)), 1)
|
|
233
|
+
])
|
|
234
|
+
]))), 128))
|
|
235
|
+
];
|
|
236
|
+
}),
|
|
237
|
+
_: 1
|
|
238
|
+
}, 8, ["icon", "connected", "syncing", "token-expired", "last-sync-time"]),
|
|
239
|
+
E(H, {
|
|
240
|
+
icon: e(ee),
|
|
241
|
+
name: "facebook",
|
|
242
|
+
connected: !!e(c).facebook,
|
|
243
|
+
syncing: e(p),
|
|
244
|
+
"token-expired": e(B),
|
|
245
|
+
"last-sync-time": (V = e(c).facebook) == null ? void 0 : V.lastSyncTime,
|
|
246
|
+
onConnect: D,
|
|
247
|
+
onSync: Y
|
|
248
|
+
}, {
|
|
249
|
+
default: L(() => {
|
|
250
|
+
var v;
|
|
251
|
+
return [
|
|
252
|
+
(t(!0), s(w, null, R((v = e(c).facebook) == null ? void 0 : v.pages, (y) => (t(), s("div", {
|
|
253
|
+
key: y.facebookPageId,
|
|
254
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
255
|
+
}, [
|
|
256
|
+
y.pageProfileImageUrl ? (t(), s("img", {
|
|
257
|
+
key: 0,
|
|
258
|
+
src: y.pageProfileImageUrl,
|
|
259
|
+
class: "w-10 h-10 rounded-full shrink-0 object-cover"
|
|
260
|
+
}, null, 8, ve)) : (t(), U(e(x).FmIcon, {
|
|
261
|
+
key: 1,
|
|
262
|
+
name: "person",
|
|
263
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
264
|
+
})),
|
|
265
|
+
a("div", be, [
|
|
266
|
+
a("span", ke, d(y.pageName), 1),
|
|
267
|
+
a("span", we, d(m(y.locationIds)), 1)
|
|
268
|
+
])
|
|
269
|
+
]))), 128))
|
|
270
|
+
];
|
|
271
|
+
}),
|
|
272
|
+
_: 1
|
|
273
|
+
}, 8, ["icon", "connected", "syncing", "token-expired", "last-sync-time"])
|
|
274
|
+
], 64)) : (t(), s(w, { key: 1 }, R(["google", "facebook"], (v) => a("div", {
|
|
275
|
+
key: v,
|
|
276
|
+
class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
|
|
277
|
+
}, [...o[0] || (o[0] = [
|
|
278
|
+
J('<div class="animate-pulse flex items-center gap-12"><div class="w-10 h-10 rounded-full bg-fm-color-neutral-gray-100 shrink-0"></div><div class="flex-1 min-w-0 space-y-8"><div class="h-16 w-20 rounded bg-fm-color-neutral-gray-100"></div><div class="h-12 w-full max-w-[160px] rounded bg-fm-color-neutral-gray-100"></div></div><div class="h-32 w-24 rounded bg-fm-color-neutral-gray-100 shrink-0"></div></div>', 1)
|
|
279
|
+
])])), 64))
|
|
280
|
+
]);
|
|
281
|
+
};
|
|
282
|
+
}
|
|
283
|
+
});
|
|
284
|
+
export {
|
|
285
|
+
Te as default
|
|
286
|
+
};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import { defineComponent as Y, computed as D, resolveComponent as v, openBlock as m, createBlock as R, withCtx as I, createElementVNode as n, toDisplayString as w, createVNode as l, createCommentVNode as M, createElementBlock as T, unref as e, Fragment as z, renderList as ce, ref as O, isRef as be, reactive as lt, onMounted as Ne, watch as We, toRaw as it, createTextVNode as ee, h as rt, normalizeStyle as tt, normalizeClass as we } from "vue";
|
|
2
2
|
import { _ as ct } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as Ye, useDialogChild as Je, components as dt } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as q, e as Le, S as He } from "./index-
|
|
5
|
-
import { u as ot } from "./loading-
|
|
6
|
-
import { u as Xe, C as Ie } from "./membership-
|
|
7
|
-
import {
|
|
4
|
+
import { c as q, e as Le, S as He } from "./index-Aqx0Hc_6.js";
|
|
5
|
+
import { u as ot } from "./loading-DhiMqWJA.js";
|
|
6
|
+
import { u as Xe, C as Ie } from "./membership-7X3Uc50t.js";
|
|
7
|
+
import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-bGITzW-d.js";
|
|
8
8
|
import { a as gt, c as qe } from "./object-BYyQ0PZp.js";
|
|
9
|
-
import { _ as pe } from "./lodash-
|
|
10
|
-
import { c as _e } from "./index-
|
|
11
|
-
import { u as ve } from "./vue-i18n-
|
|
12
|
-
import { Z as ie, g as ae, a as se } from "./zod-
|
|
13
|
-
import { z as re, R as Ae } from "./app-
|
|
9
|
+
import { _ as pe } from "./lodash-CCBK4pXz.js";
|
|
10
|
+
import { c as _e } from "./index-pCmNLjIj.js";
|
|
11
|
+
import { u as ve } from "./vue-i18n-BEFR04bc.js";
|
|
12
|
+
import { Z as ie, g as ae, a as se } from "./zod-CcKqtEqX.js";
|
|
13
|
+
import { z as re, R as Ae } from "./app-Ce3Q-VS4.js";
|
|
14
14
|
import { u as je } from "./app-wDQR6dpb.js";
|
|
15
|
-
import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-
|
|
15
|
+
import { _ as ye } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CLiZ6jd6.js";
|
|
16
|
+
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-bprg7ahs.js";
|
|
17
17
|
import { J as Ze } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as ht } from "./index-
|
|
19
|
-
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as ht } from "./index-Cgg1NNfN.js";
|
|
19
|
+
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-CqkwVS2r.js";
|
|
20
20
|
import { _ as _t } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
-
import { z as Ct, a as St } from "./money-
|
|
22
|
-
import { f as Ft } from "./currency-
|
|
23
|
-
import { F as wt } from "./number-
|
|
24
|
-
import { a as $t, t as kt } from "./helper-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import "./index
|
|
28
|
-
import "./index-
|
|
21
|
+
import { z as Ct, a as St } from "./money-D5EIeVr_.js";
|
|
22
|
+
import { f as Ft } from "./currency-DmSaw6iQ.js";
|
|
23
|
+
import { F as wt } from "./number-Bj7X6VoA.js";
|
|
24
|
+
import { a as $t, t as kt } from "./helper-Dn6pU0yd.js";
|
|
25
|
+
import "./index-CUaL0i4I.js";
|
|
26
|
+
import "./index-8wWIydMw.js";
|
|
27
|
+
import "./index--A062GN8.js";
|
|
28
|
+
import "./index-Bu2uqM4e.js";
|
|
29
29
|
import "./index-I9lmcd2w.js";
|
|
30
|
-
import "./index-
|
|
31
|
-
import { m as Pt } from "./index-
|
|
32
|
-
import { m as De } from "./index-
|
|
33
|
-
import { g as Ke } from "./index-
|
|
34
|
-
import { u as Vt } from "./business-
|
|
30
|
+
import "./index-CRFiQOrt.js";
|
|
31
|
+
import { m as Pt } from "./index-D6wQPKHc.js";
|
|
32
|
+
import { m as De } from "./index-CjAhwLNW.js";
|
|
33
|
+
import { g as Ke } from "./index-BrqespAR.js";
|
|
34
|
+
import { u as Vt } from "./business-CfxfaERu.js";
|
|
35
35
|
import { useRouter as Tt } from "vue-router";
|
|
36
36
|
function nt(b) {
|
|
37
37
|
return _e.DineroFactory(b).toUnit();
|
|
@@ -600,7 +600,7 @@ const Yt = {
|
|
|
600
600
|
};
|
|
601
601
|
}
|
|
602
602
|
});
|
|
603
|
-
var Xt = { mode: "
|
|
603
|
+
var Xt = { mode: "development", appMode: "mf" };
|
|
604
604
|
const Zt = { class: "space-y-8" }, Qt = {
|
|
605
605
|
key: 0,
|
|
606
606
|
class: "space-y-16"
|
|
@@ -2117,7 +2117,7 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
|
|
|
2117
2117
|
};
|
|
2118
2118
|
}
|
|
2119
2119
|
});
|
|
2120
|
-
var et = { authUrl: "https://portal-v2.feedmeapi.com/", slackWebhookUrl: "https://hooks.slack.com/services/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", appUrl: "
|
|
2120
|
+
var et = { 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/" };
|
|
2121
2121
|
const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[640px]" }, Nn = { class: "px-24 flex flex-col gap-y-16" }, Mn = { class: "space-y-8 py-12" }, On = { class: "flex gap-8 items-center" }, Ln = { class: "fm-typo-en-body-lg-600" }, An = {
|
|
2122
2122
|
key: 1,
|
|
2123
2123
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { defineComponent as Z, ref as A, computed as q, onMounted as z, resolveComponent as F, openBlock as y, createBlock as E, unref as e, isRef as ee, withCtx as V, createElementVNode as s, createVNode as c, createElementBlock as D, createTextVNode as te, resolveDynamicComponent as N, toDisplayString as H, Fragment as W, createCommentVNode as P, h as C } from "vue";
|
|
2
2
|
import { _ as oe } from "./campaign-CpzFl8Vr.js";
|
|
3
3
|
import { useDialog as J, components as $ } from "@feedmepos/ui-library";
|
|
4
|
-
import "./index-
|
|
5
|
-
import { u as ae } from "./loading-
|
|
6
|
-
import { C as Q, u as ne } from "./membership-
|
|
7
|
-
import { p as B, f as K } from "./plugins-
|
|
4
|
+
import "./index-CUaL0i4I.js";
|
|
5
|
+
import { u as ae } from "./loading-DhiMqWJA.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-7X3Uc50t.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-bprg7ahs.js";
|
|
8
8
|
import { useCoreStore as X } from "@feedmepos/mf-common";
|
|
9
|
-
import { u as se } from "./vue-i18n-
|
|
10
|
-
import { F as ie } from "./index-
|
|
9
|
+
import { u as se } from "./vue-i18n-BEFR04bc.js";
|
|
10
|
+
import { F as ie } from "./index-Cgg1NNfN.js";
|
|
11
11
|
import { c as re } from "./object-BYyQ0PZp.js";
|
|
12
12
|
import { u as Y } from "./app-wDQR6dpb.js";
|
|
13
|
-
import { u as le } from "./business-
|
|
14
|
-
import { Z as h } from "./zod-
|
|
15
|
-
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
17
|
-
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang
|
|
18
|
-
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-
|
|
19
|
-
import { i as fe, F as ye, h as j, t as we } from "./helper-
|
|
13
|
+
import { u as le } from "./business-CfxfaERu.js";
|
|
14
|
+
import { Z as h } from "./zod-CcKqtEqX.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CLiZ6jd6.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-CqkwVS2r.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-BAUBxdV2.js";
|
|
18
|
+
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-DorkQcT5.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-Dn6pU0yd.js";
|
|
20
20
|
import { useRouter as ge } from "vue-router";
|
|
21
|
-
import { m as G } from "./index-
|
|
22
|
-
import { R as L } from "./app-
|
|
21
|
+
import { m as G } from "./index-CjAhwLNW.js";
|
|
22
|
+
import { R as L } from "./app-Ce3Q-VS4.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|