@feedmepos/mf-connect 0.1.122-dev → 0.1.122-prod
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{App-Otfhp3H1.js → App-BKnL7b6M.js} +493 -502
- package/dist/{Bin-B5aee7-4.js → Bin-BqqQF1h_.js} +8 -8
- package/dist/{Broadcast-BAQl4nEs.js → Broadcast-U5rJmhdd.js} +21 -22
- package/dist/{CampaignAnalytic-mc0rWnt4.js → CampaignAnalytic-ClwXxxzE.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C06IzthB.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DyeoWFcd.js} +9 -8
- package/dist/{Card-CoeclAye.js → Card-DKikDYES.js} +22 -22
- package/dist/{Collections-DIamDQDK.js → Collections-CD0xjFqI.js} +185 -197
- package/dist/{Credit-CoIPdhRy.js → Credit-BWcvFlb2.js} +20 -21
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-nI2oXZiR.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B2RizWP8.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D38JB0FV.js +3493 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BZ42IxXy.js → EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js} +16 -16
- package/dist/{Experience-bJSkl9Xm.js → Experience-dqXYj1Fv.js} +31 -32
- package/dist/{FileSaver.min-CFKCOdNt.js → FileSaver.min-DdJMn696.js} +1 -1
- package/dist/{Game-DMoyicRl.js → Game-BGQXqzck.js} +18 -19
- package/dist/{GiftCardSetup-B28jebxX.js → GiftCardSetup-C3MR25fp.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-il1_TmfZ.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-9dL1kVPG.js} +7 -7
- package/dist/{Goals-B9XRX-to.js → Goals-DA2jHEZa.js} +4 -4
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZH5In2V.js → ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js} +1 -1
- package/dist/{Index-BgGZBhf8.js → Index-WOvryalE.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-M6eRk_nC.js → LocationPicker.vue_vue_type_script_setup_true_lang-Bu1DjV9M.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DQCpH8dV.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DiLtSIXt.js} +1 -1
- package/dist/{LoyaltyDashboard-B-vMpAdx.js → LoyaltyDashboard-BKN2vBqc.js} +15 -15
- package/dist/{MainLayout-rv2xd7Yc.js → MainLayout-DizL-dxl.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BMwNt98l.js → MainLayout.vue_vue_type_script_setup_true_lang-El0YeLnE.js} +3 -3
- package/dist/{Marketing-Wu2M2xPV.js → Marketing-B77EoiCf.js} +4 -4
- package/dist/{MarketingMaterialEdit-C5s0grZF.js → MarketingMaterialEdit-C_qFEur7.js} +211 -214
- package/dist/{Member-D02_98Yo.js → Member-TYDrU3Tk.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DGVDww0P.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BuzMeXR9.js} +47 -39
- package/dist/{MemberImportHistory-ZqjppSHQ.js → MemberImportHistory-l7dVJdEH.js} +7 -7
- package/dist/{MemberList-DpWX6mT9.js → MemberList-DiuyeJx_.js} +105 -103
- package/dist/{MemberTransactions-BiE7FtKT.js → MemberTransactions-BJ27Gd5P.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DUtNRTNB.js → MessageInput.vue_vue_type_script_setup_true_lang-so7LWtlv.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DD5GkLoA.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DgE7HPsT.js} +1 -1
- package/dist/{Mission-D3uyaxrt.js → Mission-C63hh8Ra.js} +21 -22
- package/dist/{Overview-C80up9Cz.js → Overview-CVdvQK6q.js} +20 -20
- package/dist/{Overview-Dzs2l9dt.js → Overview-DP-4Kpuj.js} +144 -145
- package/dist/{Point-CtyqLefg.js → Point-DXH4kJNQ.js} +21 -22
- package/dist/{Promotion-C1pB_Mup.js → Promotion-Cn-wAx6m.js} +131 -137
- package/dist/{Queue-DkmBLRMM.js → Queue-CEEUE-UT.js} +45 -45
- package/dist/{Record-B5onEmZr.js → Record-BFIjLKJD.js} +9 -9
- package/dist/{Review-fkpAgnWl.js → Review-BMRfKri0.js} +2 -2
- package/dist/ReviewFacebookCallback-CPYIC3RS.js +238 -0
- package/dist/{ReviewGoogleCallback-Cj9zmCme.js → ReviewGoogleCallback-Cflqv5Z5.js} +5 -5
- package/dist/{Reward-BNt4rJXG.js → Reward-C-qGtzpu.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-CJbD7izQ.js → RewardGroup.vue_vue_type_script_setup_true_lang-kxJ5i8xe.js} +13 -13
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BlRmshrE.js +1884 -0
- package/dist/{Segment-9weq5m6d.js → Segment-Bx1pfw4Q.js} +306 -303
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-j_DlD4Uz.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-vuH9xdOi.js} +14 -14
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Bq1XKmWl.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-CZHpyimI.js} +4 -4
- package/dist/Setting-CEcpuE_O.js +578 -0
- package/dist/{SettingAdvertisements-BdXfSnNM.js → SettingAdvertisements-CZlIQ5m_.js} +12 -12
- package/dist/Settings-CPLibjQy.js +179 -0
- package/dist/{Store-D3cAsGJ6.js → Store-BhZulzuc.js} +28 -28
- package/dist/{StoreRewards-C2y1M4Ps.js → StoreRewards-CvYgJVFU.js} +15 -15
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-Dqj5zIgi.js +1297 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js +142 -0
- package/dist/{Tier-Dci8VbpH.js → Tier-BPPSaEe0.js} +687 -2575
- package/dist/{Title-D4BpqJPQ.js → Title-CccRUVZV.js} +94 -95
- package/dist/{Transaction-1biUZvIt.js → Transaction-ULzAt-u7.js} +2 -2
- package/dist/Upselling-D2tSUTkE.js +200 -0
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-D7W1cxlp.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CoqrSuWu.js} +26 -26
- package/dist/{Voucher-DSygKr_u.js → Voucher-Cz7IMRNl.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-JL1V_LbU.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BaxHZN76.js} +12 -12
- package/dist/{WhatsappAccount-CZ-js350.js → WhatsappAccount-BsxVHiZZ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBiqtHgs.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DJnkGMF1.js} +1 -1
- package/dist/{WhatsappBot-Bygdlech.js → WhatsappBot-sd6erVZk.js} +6 -6
- package/dist/{WhatsappBotLogs-BFLRYeQf.js → WhatsappBotLogs-DNbGWyOY.js} +6 -6
- package/dist/{WhatsappBotSettings-COZEGQxT.js → WhatsappBotSettings-DXa_e7-a.js} +4 -4
- package/dist/{WhatsappLayout-DEzbS1SP.js → WhatsappLayout-DvBPIB5f.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DUX8zJnw.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CRDouGvj.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BJFYIRZl.js → ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js} +2 -2
- package/dist/{app-gGao9t7Z.js → app-4x06ItoL.js} +15017 -14861
- package/dist/app.js +3 -4
- package/dist/{base.export-cVWgL6vy.js → base.export-DS0xThWi.js} +2 -2
- package/dist/{business-DbDh-BxN.js → business-D0I7G-5H.js} +1 -1
- package/dist/{campaign-B9tq1vZv.js → campaign-BuJCjEH-.js} +94 -121
- package/dist/{campaign-D8jV7hA8.js → campaign-CC9U7rkr.js} +28 -34
- package/dist/{campaign.enum-Dx-Zo68Q.js → campaign.enum-BqekIiiN.js} +1 -2
- package/dist/campaign.fn-CLUOgMgc.js +776 -0
- package/dist/{collection.fn-DBfMa_P2.js → collection.fn-CUifllLR.js} +2 -2
- package/dist/{currency-SZSbDgAr.js → currency-BPhBDOpt.js} +1 -1
- package/dist/{effect-CVTuOMbk.js → effect-DKHOR-B3.js} +1 -1
- package/dist/{email-addresses-DpVS_e0D.js → email-addresses-B-VEReRV.js} +25 -25
- package/dist/{feature-flag-orm4I4-0.js → feature-flag-Cjl6gaO5.js} +185 -171
- package/dist/google-C3S8u0mT.js +4 -0
- package/dist/{helper-Ct1_-IEp.js → helper-CBLh1PWR.js} +1 -1
- package/dist/{index-Clg5CVmr.js → index-BBsqcXfJ.js} +1 -1
- package/dist/{index-NN_GXe7Q.js → index-B_iKSOXp.js} +1 -1
- package/dist/{index-BeGbQvrb.js → index-BwgjSrwa.js} +2 -2
- package/dist/{index-DW5cDL7l.js → index-BzKKNuLc.js} +2 -2
- package/dist/{index-Bz2GhZNd.js → index-C1QA2M4I.js} +10 -10
- package/dist/{index-uIOAK7Yt.js → index-CGcWs8B5.js} +462 -533
- package/dist/{index-CrluLS6Q.js → index-CWJi_hw-.js} +2 -2
- package/dist/{index-BUDFQtMG.js → index-D3B392A3.js} +3 -3
- package/dist/{index-CONIxgEK.js → index-DL_UYO4J.js} +234 -380
- package/dist/{index-B6hbCvzb.js → index-DenQ8DV4.js} +1 -1
- package/dist/{index-BOoNJIJh.js → index-Djf4TpYV.js} +23 -23
- package/dist/{index-DBpHsVZR.js → index-EpqQFMu2.js} +2614 -2699
- package/dist/{index-MlhU8ucu.js → index-Ob5I-Sex.js} +1 -1
- package/dist/{index-BXXLVdgj.js → index-RMsQnHez.js} +1 -1
- package/dist/{index-COAgKj0v.js → index-ZTC5k9Jb.js} +6 -19
- package/dist/{index-B2GJ653R.js → index-bc7bIIVP.js} +197 -197
- package/dist/{index-DFePTLAw.js → index-kClA31M9.js} +10 -10
- package/dist/{index-vfdh50L9.js → index-nnmfOPuw.js} +4 -4
- package/dist/{index-DCuUA8EI.js → index-umYXnOWc.js} +251 -608
- package/dist/{index-DwofBI5n.js → index-vqUiCeKb.js} +1 -1
- package/dist/{index.esm2017-ZSQn8C-d.js → index.esm2017-DMKkHR06.js} +111 -111
- package/dist/{loading-B-xDCOdo.js → loading-Cb4RgEo7.js} +1 -1
- package/dist/{lodash-DFW9UbwC.js → lodash-CMazTe9d.js} +1 -1
- package/dist/{member-import-J0fm9uzH.js → member-import-Df1y7FvX.js} +1 -1
- package/dist/{membership-B8KWhxBD.js → membership-yvDb2HS8.js} +2 -2
- package/dist/{money-CSIA5h2F.js → money-rs9shyUy.js} +1 -1
- package/dist/{number-mHKvdu_x.js → number-Ecq6MjRx.js} +1 -1
- package/dist/objectid-BVri-Vim.js +145 -0
- package/dist/{onboarding-CbvpduVK.js → onboarding-DugmLfNG.js} +36 -36
- package/dist/{onboardingSetup-pQHr4ATi.js → onboardingSetup-DMzNxJC4.js} +2 -2
- package/dist/{plugins-D_LhWxFb.js → plugins-CvhBJQEK.js} +3 -3
- package/dist/{reward-CFEIG_Fc.js → reward-BGUOUKZn.js} +1 -1
- package/dist/{rule-Dqxm0TiU.js → rule-C87YbT3F.js} +492 -572
- package/dist/rule-builder-lzMi7irV.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-BfFSbH04.js +275 -0
- package/dist/{timezone-CijbubTV.js → timezone-uP_heouv.js} +1 -1
- package/dist/{transaction.fn-Bg5w0js6.js → transaction.fn-CiGhIgzP.js} +2 -2
- package/dist/{trigger-Z2ynsa7k.js → trigger-dOOSh-Yp.js} +9 -9
- package/dist/{useMarketingMaterialActions-Dgm-u9Nu.js → useMarketingMaterialActions-BRenBblP.js} +4 -4
- package/dist/{usePagination-Dlw4BUF1.js → usePagination-DNOc8GFS.js} +1 -1
- package/dist/{user-BRNDlg4h.js → user-DTAGYy-F.js} +1 -1
- package/dist/vue-i18n-D8wuxuA4.js +2365 -0
- package/dist/{xlsx-CnlrcvXS.js → xlsx-BU0bDwTF.js} +1 -1
- package/dist/{zod-DPWT8J03.js → zod-mPFqdty8.js} +1 -1
- package/package.json +3 -7
- package/dist/AuditLogs-C4DQ624f.js +0 -2016
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CXNf6M-7.js +0 -4439
- package/dist/Grab-CNXLDEKx.js +0 -301
- package/dist/ReviewFacebookCallback-CLeQP52t.js +0 -225
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-ie0okvmi.js +0 -1923
- package/dist/Setting-DadiBCUq.js +0 -574
- package/dist/Settings-SF-Ai88W.js +0 -286
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-DX8nrBZd.js +0 -1319
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CjBucvpJ.js +0 -7007
- package/dist/Upselling-BTqqiZlc.js +0 -1032
- package/dist/campaign.fn-DiQIanat.js +0 -776
- package/dist/duplicateCampaign-3K1VYqMD.js +0 -51
- package/dist/google-BQK68wbe.js +0 -5
- package/dist/objectid-BVNgDFLu.js +0 -145
- package/dist/template-BKPcMDwU.js +0 -227
- package/dist/vue-i18n-h2H0nxj-.js +0 -2365
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { defineComponent as N, useSlots as U, openBlock as r, createElementBlock as l, createElementVNode as s, normalizeClass as $, unref as e, toDisplayString as y, createCommentVNode as m, Fragment as b, createBlock as E, createVNode as w, renderSlot as T, ref as x, computed as B, onMounted as G, withCtx as O, renderList as C, createStaticVNode as z } from "vue";
|
|
2
|
+
import { u as A } from "./loading-Cb4RgEo7.js";
|
|
3
|
+
import { u as M } from "./business-D0I7G-5H.js";
|
|
4
|
+
import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as R } from "./vue-i18n-D8wuxuA4.js";
|
|
6
|
+
import { g as j } from "./google-C3S8u0mT.js";
|
|
7
|
+
import { R as D } from "./app-4x06ItoL.js";
|
|
8
|
+
import { useRouter as H } from "vue-router";
|
|
9
|
+
import { r as h } from "./index-kClA31M9.js";
|
|
10
|
+
const P = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, q = ["src"], J = { class: "flex flex-col flex-1 gap-1 min-w-0" }, K = { class: "fm-typo-en-body-md-600 capitalize" }, Q = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
|
|
13
|
+
}, X = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400" }, Y = /* @__PURE__ */ N({
|
|
14
|
+
__name: "ReviewSource",
|
|
15
|
+
props: {
|
|
16
|
+
icon: {},
|
|
17
|
+
name: {},
|
|
18
|
+
connected: { type: Boolean },
|
|
19
|
+
subtitle: {},
|
|
20
|
+
syncing: { type: Boolean },
|
|
21
|
+
tokenExpired: { type: Boolean }
|
|
22
|
+
},
|
|
23
|
+
emits: ["connect", "sync"],
|
|
24
|
+
setup(o, { emit: p }) {
|
|
25
|
+
const u = p, { t: i } = R(), g = U();
|
|
26
|
+
return (c, a) => (r(), l("div", P, [
|
|
27
|
+
s("div", {
|
|
28
|
+
class: $(["flex items-center gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
29
|
+
}, [
|
|
30
|
+
s("img", {
|
|
31
|
+
src: o.icon,
|
|
32
|
+
class: "w-10 h-10 shrink-0"
|
|
33
|
+
}, null, 8, q),
|
|
34
|
+
s("div", J, [
|
|
35
|
+
s("span", K, y(o.name), 1),
|
|
36
|
+
o.subtitle || !o.connected ? (r(), l("span", Q, y(o.connected ? o.subtitle : e(i)("connect.review.notConnected")), 1)) : m("", !0)
|
|
37
|
+
]),
|
|
38
|
+
o.connected ? (r(), l(b, { key: 0 }, [
|
|
39
|
+
o.tokenExpired ? (r(), E(e(f).FmChip, {
|
|
40
|
+
key: 0,
|
|
41
|
+
label: e(i)("connect.review.expired"),
|
|
42
|
+
variant: "critical"
|
|
43
|
+
}, null, 8, ["label"])) : m("", !0),
|
|
44
|
+
w(e(f).FmButton, {
|
|
45
|
+
variant: "secondary",
|
|
46
|
+
"prepend-icon": "refresh",
|
|
47
|
+
label: e(i)("connect.review.reconnect"),
|
|
48
|
+
onClick: a[0] || (a[0] = (v) => u("connect"))
|
|
49
|
+
}, null, 8, ["label"]),
|
|
50
|
+
o.tokenExpired ? m("", !0) : (r(), E(e(f).FmButton, {
|
|
51
|
+
key: 1,
|
|
52
|
+
variant: "primary",
|
|
53
|
+
"prepend-icon": "sync",
|
|
54
|
+
label: e(i)("connect.review.sync"),
|
|
55
|
+
loading: o.syncing,
|
|
56
|
+
onClick: a[1] || (a[1] = (v) => u("sync"))
|
|
57
|
+
}, null, 8, ["label", "loading"]))
|
|
58
|
+
], 64)) : m("", !0)
|
|
59
|
+
], 2),
|
|
60
|
+
o.connected ? m("", !0) : (r(), l("div", {
|
|
61
|
+
key: 0,
|
|
62
|
+
class: $(["flex items-center justify-between gap-12 p-16", e(g).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
63
|
+
}, [
|
|
64
|
+
s("span", X, y(e(i)("connect.review.connectHint", { name: o.name })), 1),
|
|
65
|
+
w(e(f).FmButton, {
|
|
66
|
+
"prepend-icon": "add",
|
|
67
|
+
label: e(i)("connect.review.connect"),
|
|
68
|
+
onClick: a[2] || (a[2] = (v) => u("connect"))
|
|
69
|
+
}, null, 8, ["label"])
|
|
70
|
+
], 2)),
|
|
71
|
+
T(c.$slots, "default")
|
|
72
|
+
]));
|
|
73
|
+
}
|
|
74
|
+
}), Z = { class: "p-24 flex flex-col gap-8" }, ee = { class: "flex flex-col flex-1 min-w-0" }, ne = { class: "fm-typo-en-body-lg-600 truncate" }, oe = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, me = /* @__PURE__ */ N({
|
|
75
|
+
__name: "Settings",
|
|
76
|
+
setup(o) {
|
|
77
|
+
const { t: p } = R(), u = W(), i = H(), g = M(), c = x(null), a = x(!1);
|
|
78
|
+
x(!1);
|
|
79
|
+
const v = B(
|
|
80
|
+
() => {
|
|
81
|
+
var n;
|
|
82
|
+
return c.value ? ((n = c.value.google) == null ? void 0 : n.accessToken) === null : !1;
|
|
83
|
+
}
|
|
84
|
+
);
|
|
85
|
+
B(
|
|
86
|
+
() => {
|
|
87
|
+
var n;
|
|
88
|
+
return c.value ? ((n = c.value.facebook) == null ? void 0 : n.token) === null : !1;
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
function _(n) {
|
|
92
|
+
const t = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
|
|
93
|
+
return `${window.location.origin}${t}${n}`;
|
|
94
|
+
}
|
|
95
|
+
async function S() {
|
|
96
|
+
await A.minor(async () => {
|
|
97
|
+
c.value = await h.getSource();
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
function V(n) {
|
|
101
|
+
var t;
|
|
102
|
+
return (t = g.locations.find(
|
|
103
|
+
(d) => d._id.toString() === n
|
|
104
|
+
)) == null ? void 0 : t.name;
|
|
105
|
+
}
|
|
106
|
+
function F() {
|
|
107
|
+
u.open({
|
|
108
|
+
message: p("connect.review.syncSuccess"),
|
|
109
|
+
type: "success"
|
|
110
|
+
}), i.push({ name: D["$connect-REVIEW_OVERVIEW"] });
|
|
111
|
+
}
|
|
112
|
+
async function I() {
|
|
113
|
+
var n, t;
|
|
114
|
+
a.value = !0;
|
|
115
|
+
try {
|
|
116
|
+
await h.syncGoogleReviews(), F();
|
|
117
|
+
} catch (d) {
|
|
118
|
+
if (await S(), ((t = (n = c.value) == null ? void 0 : n.google) == null ? void 0 : t.accessToken) === null) {
|
|
119
|
+
u.open({
|
|
120
|
+
message: p("connect.review.tokenExpired"),
|
|
121
|
+
type: "error"
|
|
122
|
+
});
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
throw d;
|
|
126
|
+
} finally {
|
|
127
|
+
a.value = !1;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
async function L() {
|
|
131
|
+
const n = _("/review/google/callback"), { callbackUrl: t } = await h.getOauthUrl("google", n);
|
|
132
|
+
window.location.href = t;
|
|
133
|
+
}
|
|
134
|
+
return G(() => {
|
|
135
|
+
S(), g.readLocations();
|
|
136
|
+
}), (n, t) => (r(), l("div", Z, [
|
|
137
|
+
e(c) ? (r(), l(b, { key: 0 }, [
|
|
138
|
+
w(Y, {
|
|
139
|
+
icon: e(j),
|
|
140
|
+
name: "google",
|
|
141
|
+
connected: !!e(c).google,
|
|
142
|
+
syncing: e(a),
|
|
143
|
+
"token-expired": e(v),
|
|
144
|
+
onConnect: L,
|
|
145
|
+
onSync: I
|
|
146
|
+
}, {
|
|
147
|
+
default: O(() => {
|
|
148
|
+
var d;
|
|
149
|
+
return [
|
|
150
|
+
(r(!0), l(b, null, C((d = e(c).google) == null ? void 0 : d.locations, (k) => (r(), l("div", {
|
|
151
|
+
key: k.googleLocationName,
|
|
152
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
153
|
+
}, [
|
|
154
|
+
w(e(f).FmIcon, {
|
|
155
|
+
name: "location_on",
|
|
156
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
157
|
+
}),
|
|
158
|
+
s("div", ee, [
|
|
159
|
+
s("span", ne, y(k.displayName), 1),
|
|
160
|
+
s("span", oe, y(V(k.locationId)), 1)
|
|
161
|
+
])
|
|
162
|
+
]))), 128))
|
|
163
|
+
];
|
|
164
|
+
}),
|
|
165
|
+
_: 1
|
|
166
|
+
}, 8, ["icon", "connected", "syncing", "token-expired"]),
|
|
167
|
+
m("", !0)
|
|
168
|
+
], 64)) : (r(), l(b, { key: 1 }, C(["google", "facebook"], (d) => s("div", {
|
|
169
|
+
key: d,
|
|
170
|
+
class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
|
|
171
|
+
}, [...t[0] || (t[0] = [
|
|
172
|
+
z('<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)
|
|
173
|
+
])])), 64))
|
|
174
|
+
]));
|
|
175
|
+
}
|
|
176
|
+
});
|
|
177
|
+
export {
|
|
178
|
+
me as default
|
|
179
|
+
};
|
|
@@ -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-C1QA2M4I.js";
|
|
5
|
+
import { u as ot } from "./loading-Cb4RgEo7.js";
|
|
6
|
+
import { u as Xe, C as Ie } from "./membership-yvDb2HS8.js";
|
|
7
|
+
import { p as ut, q as mt, r as pt, s as Qe, t as ft, u as yt } from "./index-CGcWs8B5.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-CMazTe9d.js";
|
|
10
|
+
import { c as _e } from "./index-D3B392A3.js";
|
|
11
|
+
import { u as ve } from "./vue-i18n-D8wuxuA4.js";
|
|
12
|
+
import { Z as ie, g as ae, a as se } from "./zod-mPFqdty8.js";
|
|
13
|
+
import { z as re, R as Ae } from "./app-4x06ItoL.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-B6BvSACt.js";
|
|
16
|
+
import { c as bt, p as Ee, n as vt, f as Ge } from "./plugins-CvhBJQEK.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-EpqQFMu2.js";
|
|
19
|
+
import { _ as xt } from "./ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.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-rs9shyUy.js";
|
|
22
|
+
import { f as Ft } from "./currency-BPhBDOpt.js";
|
|
23
|
+
import { F as wt } from "./number-Ecq6MjRx.js";
|
|
24
|
+
import { a as $t, t as kt } from "./helper-CBLh1PWR.js";
|
|
25
|
+
import "./index-RMsQnHez.js";
|
|
26
|
+
import "./index-DL_UYO4J.js";
|
|
27
|
+
import "./index-umYXnOWc.js";
|
|
28
|
+
import "./index-BwgjSrwa.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-Ob5I-Sex.js";
|
|
31
|
+
import { m as Pt } from "./index-CWJi_hw-.js";
|
|
32
|
+
import { m as De } from "./index-ZTC5k9Jb.js";
|
|
33
|
+
import { g as Ke } from "./index-B_iKSOXp.js";
|
|
34
|
+
import { u as Vt } from "./business-D0I7G-5H.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: "production", 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
|
|
2120
|
+
var et = { 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/" };
|
|
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-RMsQnHez.js";
|
|
5
|
+
import { u as ae } from "./loading-Cb4RgEo7.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-yvDb2HS8.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-CvhBJQEK.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-D8wuxuA4.js";
|
|
10
|
+
import { F as ie } from "./index-EpqQFMu2.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-D0I7G-5H.js";
|
|
14
|
+
import { Z as h } from "./zod-mPFqdty8.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-B6BvSACt.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-_rlsNocb.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang--Ii9ejFG.js";
|
|
18
|
+
import { b as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-Hr10pgqD.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-CBLh1PWR.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-ZTC5k9Jb.js";
|
|
22
|
+
import { R as L } from "./app-4x06ItoL.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|