@feedmepos/mf-connect 0.1.114-prod → 0.1.115-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/README.md +66 -1
- package/dist/{App-DMYXrCc7.js → App-43mZfFAr.js} +700 -654
- package/dist/AuditLogs-BPpdm96t.js +2016 -0
- package/dist/{Bin-CHZolo56.js → Bin-CA7v180Y.js} +8 -8
- package/dist/Broadcast-qmdifF2Y.js +306 -0
- package/dist/{CampaignAnalytic-DgZvsUoF.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C42uL_JO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-wRFTJwJ9.js → Card-D8icsk7L.js} +25 -24
- package/dist/{Collections-9G-_9Etz.js → Collections--THcD-E_.js} +197 -185
- package/dist/{Credit-Bl7IDMCU.js → Credit-JrbtVMBp.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BVLJeofG.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js +4442 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-Q1f6EQW3.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +32 -32
- package/dist/{Experience-Cs2iViLv.js → Experience-CFeRqBoj.js} +32 -31
- package/dist/{FileSaver.min-B3Levdbu.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-oXURgzan.js → Game-CPxq6Ex3.js} +19 -18
- package/dist/{GiftCardSetup-C2Wu-dRl.js → GiftCardSetup-D0esVZDp.js} +75 -75
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Da2e89Um.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-B_xEM7gf.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/Grab-BWzdN_cd.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BRJR1heE.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-kuT6W6R_.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-7JqHfSk-.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CI_4S7tW.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-CqxHdZcm.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/MainLayout-DwnjGXh6.js +4 -0
- package/dist/{MainLayout-CAERFIms.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +5 -4
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/MarketingMaterialEdit-BbgFtrYP.js +1037 -0
- package/dist/{Member-B8VZEn9t.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-B31lVLKh.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +43 -50
- package/dist/{MemberImportHistory-D9tgHnTS.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-Hw_xQY1i.js → MemberList-13Owa1fj.js} +103 -105
- package/dist/{MemberTransactions-DiBO4plw.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CbFt5X89.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +4228 -4176
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BE_-Ed4z.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-DpYei3aF.js → Mission-Ci-UzXSu.js} +22 -21
- package/dist/{Overview-CARquJCS.js → Overview-CKxSfAGF.js} +145 -144
- package/dist/{Overview-BFQMmyT6.js → Overview-CXen9Ram.js} +23 -22
- package/dist/{Point-Dd2ykwNv.js → Point-CR3YOaag.js} +22 -21
- package/dist/{Promotion-DXl-W7np.js → Promotion-tw3J4ul-.js} +137 -131
- package/dist/{Queue-Cd3N-4iB.js → Queue-BZGA5ZXt.js} +47 -46
- package/dist/{Record-C3HdDsh5.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Bif3Ub9Z.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/ReviewFacebookCallback-BnMF6Arh.js +225 -0
- package/dist/{ReviewGoogleCallback-i-RNLlLm.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-DHxzrR_7.js → Reward-jlA_7cxz.js} +29 -29
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-DcrFlcSo.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +16 -15
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js +1923 -0
- package/dist/{Segment-Cjpxordk.js → Segment-C1Bwm--Q.js} +290 -291
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-6u21xBu6.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +31 -30
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BOXVzfer.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/Setting-CDM4RhLW.js +574 -0
- package/dist/{SettingAdvertisements-aog5fz32.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/Settings-D-0tvZRr.js +286 -0
- package/dist/{Store-Bq3kw1l2.js → Store-C56dXtc4.js} +31 -30
- package/dist/{StoreRewards-ZGXKEM09.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js +1319 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js +7007 -0
- package/dist/{Tier-CfgpEHY7.js → Tier-D4CPZqw7.js} +2576 -687
- package/dist/{Title-B2itYWeD.js → Title-DCbwhUic.js} +94 -92
- package/dist/{Transaction-hJ5ygIcf.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-8BgGlpTh.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +26 -26
- package/dist/{Voucher-TG47pGR3.js → Voucher-rrVbNZKR.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CjuXCTxg.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +16 -16
- package/dist/WhatsappAccount-oJDo5zTr.js +159 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js +39 -0
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/WhatsappBotLogs-D3uT4EiB.js +372 -0
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/WhatsappLayout-C639d2HP.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js +253 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BRs-gbP0.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-tPHYkJcQ.js → app-CgimGODl.js} +10610 -8223
- package/dist/app.js +4 -3
- package/dist/{base.export-BHDVnGj2.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/browser-BSAOEeIM.js +1478 -0
- package/dist/{business-HLyWfrXY.js → business-Bu5TqSA0.js} +1 -1
- package/dist/campaign-BFIXSgdJ.js +400 -0
- package/dist/{campaign-5zFgUNLw.js → campaign-zJxttSIk.js} +31 -25
- package/dist/{campaign.enum-BOkDnP2g.js → campaign.enum-Dx-Zo68Q.js} +3 -2
- package/dist/{campaign.fn-BIAoVtJj.js → campaign.fn-gvjlcEfe.js} +78 -78
- package/dist/{collectible.enum-BbZSAfys.js → collectible.enum-Liy2wH3s.js} +1 -1
- package/dist/{collection.fn-DPSgBHnz.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BVrMqU6-.js → currency-BpbQvbm8.js} +1 -1
- package/dist/duplicateCampaign-CvsvjRE9.js +51 -0
- package/dist/{effect-BBifVx76.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-9C7xHTNv.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/feature-flag-BJ_eyKsq.js +868 -0
- package/dist/feature-flag-Bo-k5sIG.js +50 -0
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-C08jyQNK.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-Dhyqf1s8.js → index-B6kU3PkV.js} +2700 -2613
- package/dist/{index-BgwZGunW.js → index-BAtUrtqM.js} +19 -6
- package/dist/index-BKsxIwbi.js +14571 -0
- package/dist/{index-DZ-q5O-V.js → index-BdEXUNoG.js} +4 -4
- package/dist/{index-hIUtD2eY.js → index-Bhl5IRXy.js} +11 -10
- package/dist/{index-kCbkOivd.js → index-BpTIulTX.js} +1 -1
- package/dist/index-C-iwb2Ln.js +109 -0
- package/dist/{index-Ciw2TZxV.js → index-CCEXSPxk.js} +8 -7
- package/dist/{index-CUle4c2B.js → index-CIej31pF.js} +4 -3
- package/dist/{index-ihw-WFCa.js → index-CQ8XFbBk.js} +2 -2
- package/dist/index-C_H8jFYf.js +2743 -0
- package/dist/{index-CEe1kJ0T.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-C_WoO58V.js → index-CuREApMc.js} +8 -7
- package/dist/{index-NJSI4wX4.js → index-D0JK99Ko.js} +693 -231
- package/dist/{index-DnRMNmUA.js → index-DKxN1mMS.js} +396 -232
- package/dist/index-DQ8JJhxs.js +74 -0
- package/dist/{index-D24Q28cH.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-Yo0tP8KJ.js → index-DqGs6RJG.js} +683 -581
- package/dist/{index-B_334Y_i.js → index-DwU3fsLW.js} +29 -15
- package/dist/{index-hSRM1smQ.js → index-LygS9WsG.js} +8028 -10767
- package/dist/{index-96ZiAKj_.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-Dk-jg0wN.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-hN99SQTb.js → index.esm2017-DZi9IQPS.js} +209 -209
- package/dist/{loading-CVuY4vQ4.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-GFl9_FMH.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-CshTzabx.js → member-import-DAIxTIiu.js} +6 -5
- package/dist/{membership-S0KES3Ex.js → membership-BZmljFhF.js} +3 -3
- package/dist/{money-JxdX8ru4.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-BRLwa-mB.js → number-C2jPLJr2.js} +1 -1
- package/dist/objectid-C-wocWKI.js +145 -0
- package/dist/{onboarding-BSKYeyP7.js → onboarding-oRfy_g05.js} +25 -25
- package/dist/{onboardingSetup-BqT52VRm.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-BR_wmMFJ.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{MarketingMaterialEdit-BvIthCHG.js → remy-icon-BhUGu2NI.js} +2 -1031
- package/dist/{reward-CpCGg_W2.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-Dbg9e8MO.js → rule-BgJnPjkI.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-BZyFhr73.js +188 -0
- package/dist/{timezone-CDVa-xPr.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-DrTBoF9T.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-wqGwQfB2.js → trigger-DXJCGT0q.js} +8 -8
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-fODgpZZ8.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DaLUK1dk.js → user-B3gXcAIy.js} +1 -1
- package/dist/vue-i18n-DWGiC_vs.js +2365 -0
- package/dist/{xlsx-Bl4_Dtrq.js → xlsx-CCaDUTgW.js} +651 -651
- package/dist/{zod-CAzWyVqj.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +12 -3
- package/dist/Broadcast-ByWvxVhW.js +0 -271
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DGpQfV5T.js +0 -2431
- package/dist/Marketing-KgcwGErU.js +0 -236
- package/dist/ReviewFacebookCallback-mJF54-9l.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-39f3I4BB.js +0 -1883
- package/dist/Setting-Dl9MelHz.js +0 -2036
- package/dist/Settings-DvCCClIP.js +0 -179
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DscLAF0p.js +0 -1264
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-l_v4FHO0.js +0 -142
- package/dist/campaign-awCRccgX.js +0 -228
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-CoNJdOx7.js +0 -51
- package/dist/objectid-CEHN25HN.js +0 -145
- package/dist/rule-builder-BEIjxsE0.js +0 -102
- package/dist/template-CS-lExgI.js +0 -236
- package/dist/useMarketingMaterialActions-DC0gIyIZ.js +0 -96
- package/dist/vue-i18n-Dx-KXojZ.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-Brid2wnu.js";
|
|
3
|
+
import { u as Q } from "./business-Bu5TqSA0.js";
|
|
4
|
+
import { components as x, useSnackbar as X } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as O } from "./vue-i18n-DWGiC_vs.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-CgimGODl.js";
|
|
9
|
+
import { useRouter as oe } from "vue-router";
|
|
10
|
+
import { r as $ } from "./index-Bhl5IRXy.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,36 +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-CCEXSPxk.js";
|
|
5
|
+
import { u as ot } from "./loading-Brid2wnu.js";
|
|
6
|
+
import { u as Xe, C as Ie } from "./membership-BZmljFhF.js";
|
|
7
|
+
import { t as ut, u as mt, v as pt, w as Qe, x as ft, y as yt } from "./index-DqGs6RJG.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-C1epw3Kv.js";
|
|
10
|
+
import { c as _e } from "./index-LygS9WsG.js";
|
|
11
|
+
import { u as ve } from "./vue-i18n-DWGiC_vs.js";
|
|
12
|
+
import { Z as ie, g as ae, a as se } from "./zod-CPwjOxvW.js";
|
|
13
|
+
import { z as re, R as Ae } from "./app-CgimGODl.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-C39_95SZ.js";
|
|
16
|
+
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-CUsr9vB0.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-B6kU3PkV.js";
|
|
19
|
+
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.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-
|
|
29
|
-
import "./index-
|
|
30
|
-
import
|
|
31
|
-
import { m as
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
21
|
+
import { z as Ct, a as St } from "./money-cLcyGcSZ.js";
|
|
22
|
+
import { f as Ft } from "./currency-BpbQvbm8.js";
|
|
23
|
+
import { F as wt } from "./number-C2jPLJr2.js";
|
|
24
|
+
import { a as $t, t as kt } from "./helper-CkfjBgMM.js";
|
|
25
|
+
import "./index-feCrYhi6.js";
|
|
26
|
+
import "./index-D0JK99Ko.js";
|
|
27
|
+
import "./index-DKxN1mMS.js";
|
|
28
|
+
import "./index-CuREApMc.js";
|
|
29
|
+
import "./index-C-iwb2Ln.js";
|
|
30
|
+
import "./index-CIej31pF.js";
|
|
31
|
+
import { m as Pt } from "./index-CQ8XFbBk.js";
|
|
32
|
+
import { m as De } from "./index-BAtUrtqM.js";
|
|
33
|
+
import { g as Ke } from "./index-CfQuYqXn.js";
|
|
34
|
+
import { u as Vt } from "./business-Bu5TqSA0.js";
|
|
34
35
|
import { useRouter as Tt } from "vue-router";
|
|
35
36
|
function nt(b) {
|
|
36
37
|
return _e.DineroFactory(b).toUnit();
|
|
@@ -599,7 +600,7 @@ const Yt = {
|
|
|
599
600
|
};
|
|
600
601
|
}
|
|
601
602
|
});
|
|
602
|
-
var Xt = { mode: "
|
|
603
|
+
var Xt = { mode: "development", appMode: "mf" };
|
|
603
604
|
const Zt = { class: "space-y-8" }, Qt = {
|
|
604
605
|
key: 0,
|
|
605
606
|
class: "space-y-16"
|
|
@@ -2116,14 +2117,14 @@ const vn = { class: "grid lg:grid-cols-2 gap-32 items-center" }, hn = { class: "
|
|
|
2116
2117
|
};
|
|
2117
2118
|
}
|
|
2118
2119
|
});
|
|
2119
|
-
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/" };
|
|
2120
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 = {
|
|
2121
2122
|
key: 1,
|
|
2122
2123
|
class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary"
|
|
2123
2124
|
}, jn = {
|
|
2124
2125
|
key: 1,
|
|
2125
2126
|
class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24"
|
|
2126
|
-
}, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" },
|
|
2127
|
+
}, qn = { class: "flex gap-8 items-center" }, Gn = { class: "fm-typo-en-body-lg-600" }, Kn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Hn = { class: "flex flex-col gap-16 text-center" }, zn = { class: "fm-typo-en-title-sm-800" }, Wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, Ta = /* @__PURE__ */ Y({
|
|
2127
2128
|
__name: "Store",
|
|
2128
2129
|
setup(b) {
|
|
2129
2130
|
const { t: a } = ve(), d = {
|
|
@@ -2624,5 +2625,5 @@ const Bn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary max-w-[
|
|
|
2624
2625
|
}
|
|
2625
2626
|
});
|
|
2626
2627
|
export {
|
|
2627
|
-
|
|
2628
|
+
Ta as default
|
|
2628
2629
|
};
|
|
@@ -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-feCrYhi6.js";
|
|
5
|
+
import { u as ae } from "./loading-Brid2wnu.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-BZmljFhF.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-CUsr9vB0.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-DWGiC_vs.js";
|
|
10
|
+
import { F as ie } from "./index-B6kU3PkV.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 {
|
|
19
|
-
import { i as fe, F as ye, h as j, t as we } from "./helper-
|
|
13
|
+
import { u as le } from "./business-Bu5TqSA0.js";
|
|
14
|
+
import { Z as h } from "./zod-CPwjOxvW.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js";
|
|
18
|
+
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-CkfjBgMM.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-BAtUrtqM.js";
|
|
22
|
+
import { R as L } from "./app-CgimGODl.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|