@feedmepos/mf-connect 0.1.98-beta.9 → 0.1.99-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/Analytic-CmlJa1WX.js +426 -0
- package/dist/{App-CwMrP0Q-.js → App-D0thRELq.js} +807 -673
- package/dist/{Bin-sSw4Gatd.js → Bin-DnkPcZdC.js} +8 -8
- package/dist/{Broadcast-DH2Fpb-O.js → Broadcast-o6nSQOsx.js} +17 -18
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cd47Mrej.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BPGzh4u8.js} +6 -5
- package/dist/{Card-D4YJZ_I8.js → Card-zjezSaRB.js} +19 -19
- package/dist/{Collections--8QcjuAp.js → Collections-48W_jFFS.js} +185 -197
- package/dist/{Credit-DgF3qd52.js → Credit-CYaCjNVK.js} +53 -54
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-D3SnYlQ0.js +2223 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BgHApZqm.js → EffectSheet.vue_vue_type_style_index_0_lang-CbpKQj-r.js} +6 -6
- package/dist/{Experience-DxtkVeS9.js → Experience-HmfLlywu.js} +34 -35
- package/dist/{FileSaver.min-BtPuPAIo.js → FileSaver.min-cDraiw9g.js} +1 -1
- package/dist/{Game-CbcrkUBh.js → Game-DHLdDQRi.js} +15 -16
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-CqoO7N7r.js → ImageInput.vue_vue_type_script_setup_true_lang-DZrmFruC.js} +1 -1
- package/dist/{Index-BzPX7mr1.js → Index-CMm5L1Ph.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-mI-5po-a.js → LocationPicker.vue_vue_type_script_setup_true_lang-B6tGeGGC.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DyP3ipwX.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CV4V9qlc.js} +1 -1
- package/dist/{MainLayout-gxkaZeZ-.js → MainLayout-iru8naVF.js} +1 -1
- package/dist/{Marketing-BlMjT0cP.js → Marketing-AP8z-pA0.js} +4 -4
- package/dist/{MarketingMaterialEdit-v0vGn3Lz.js → MarketingMaterialEdit-HYTdiTvs.js} +211 -214
- package/dist/{Member-BBUlAPqZ.js → Member-N_ks2GiW.js} +20 -20
- package/dist/{MemberList-DZJhULFD.js → MemberList-Cj8EfN0q.js} +51 -50
- package/dist/{MemberTransactions-CTBoDEg4.js → MemberTransactions-DUj4Fq6M.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-nlYOP9gZ.js → MessageInput.vue_vue_type_script_setup_true_lang-ZD6_8BzX.js} +11 -11
- package/dist/{Mission-D_xjOnWO.js → Mission-DfZ0brqC.js} +34 -35
- package/dist/{Overview-C5-uSEJH.js → Overview-BnFPQbSg.js} +19 -19
- package/dist/Overview-kB_HApIc.js +969 -0
- package/dist/{Point-BmVyG_i-.js → Point-PsWJEEsn.js} +29 -30
- package/dist/{Promotion-BWmTkHyw.js → Promotion-BsNT1kOG.js} +105 -111
- package/dist/{Queue-Do2XlY5H.js → Queue-Cgw3PgEi.js} +43 -43
- package/dist/{Record-BIzUOikr.js → Record-DwzoIz3R.js} +10 -10
- package/dist/Review-kF2wLu5o.js +46 -0
- package/dist/ReviewFacebookCallback-B6RjqR5T.js +238 -0
- package/dist/ReviewGoogleCallback-DjLK1b4-.js +213 -0
- package/dist/{Reward-gCpIJIq9.js → Reward-C8O5U2NU.js} +17 -17
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dkyz-W9m.js → RewardGroup.vue_vue_type_script_setup_true_lang-BqKABBF1.js} +12 -12
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DvNyurCW.js +1888 -0
- package/dist/{Segment-CZrzY2st.js → Segment-BtmeNQnL.js} +78 -77
- package/dist/{SelectItems.vue_vue_type_script_setup_true_lang-B1qAMtkn.js → SelectItems.vue_vue_type_script_setup_true_lang-P4wy1bqG.js} +3 -3
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Dc36wzB0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DQ93AOeI.js} +12 -12
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-BtnF-BPt.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B3P7Ob40.js} +4 -4
- package/dist/{Setting-JrI4ttI1.js → Setting-D1SQ6TKF.js} +248 -259
- package/dist/{SettingAdvertisements-iOOpEUlI.js → SettingAdvertisements-pUTX9uu3.js} +13 -13
- package/dist/Settings-Bbd3cMNH.js +228 -0
- package/dist/{Store-DbXKThJn.js → Store-Dgc-J8Q7.js} +24 -24
- package/dist/{StoreRewards-CfkwVw7d.js → StoreRewards-CJ090vEj.js} +16 -16
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-B35vDFFq.js +1067 -0
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-5Aazsvfa.js +142 -0
- package/dist/{Tier-BVrAqpWt.js → Tier-CKGyFDiY.js} +469 -544
- package/dist/{Title-DhumBh-S.js → Title-DXRex7t9.js} +92 -93
- package/dist/{Transaction-BQLge28p.js → Transaction-B1eC-Gln.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CSPaj2uN.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-B2GABNUx.js} +6 -6
- package/dist/{Voucher-DeB4YhvL.js → Voucher-Omh_kYVH.js} +27 -28
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BjUFEIlS.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DD2WD_Vt.js} +12 -12
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BzrPUcC9.js → ZodTextField.vue_vue_type_script_setup_true_lang-CAtzo8zL.js} +2 -2
- package/dist/{app-BHIG18wW.js → app-D8i8XAyR.js} +1439 -1406
- package/dist/app.js +3 -4
- package/dist/{business-CCmy2VBj.js → business-6gZtKQ8L.js} +1 -1
- package/dist/{campaign-DiFdvcPE.js → campaign-DIgbywUy.js} +64 -114
- package/dist/{campaign-jofcGLi8.js → campaign-MPUFwgli.js} +7 -13
- package/dist/{campaign.enum-CBp5IeWz.js → campaign.enum-CSlbGhc-.js} +2 -3
- package/dist/{campaign.fn-BZ0Ivuwi.js → campaign.fn-BvxZt-0r.js} +65 -65
- package/dist/{collectible.enum-frp5wluZ.js → collectible.enum-20LKRFir.js} +1 -1
- package/dist/collection.fn-03oGQuF_.js +26 -0
- package/dist/dto-C5_Te4gk.js +216 -0
- package/dist/{effect-BegkMXTr.js → effect-CkurpNMu.js} +1 -1
- package/dist/{email-addresses-B0t3BKV6.js → email-addresses-CR8pgurp.js} +2 -2
- package/dist/{export-CGrchnsA.js → export-CfDeISbW.js} +3 -3
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-CIYSBZvt.js → helper-BQYvN6FL.js} +1 -1
- package/dist/{index-Dg_OJTxE.js → index-6FvsyekG.js} +1 -1
- package/dist/index-ARC-NYFZ.js +55 -0
- package/dist/{index-Cv0pq7A_.js → index-C9j6OhgK.js} +302 -634
- package/dist/{index-BPh_k5rA.js → index-CH_QL_76.js} +3 -3
- package/dist/{index-DdAl4SK2.js → index-CJUzQG6t.js} +26 -17
- package/dist/{index-PmoP3mXP.js → index-Cv-DbZdw.js} +7 -7
- package/dist/{index-D4_JDL9j.js → index-D6wOnTAl.js} +3 -3
- package/dist/{index-CixwNfnv.js → index-D8vmbFE5.js} +1 -1
- package/dist/{index-DcE-11T-.js → index-DW7H-3z4.js} +1275 -1506
- package/dist/{index-C_6y8OES.js → index-Dcxjgr6s.js} +1 -1
- package/dist/{index-CF1RNy12.js → index-Dz130JVH.js} +1 -1
- package/dist/{index-BBgVfqVf.js → index-ERqXuFvQ.js} +1 -1
- package/dist/{index-C-2YkeBp.js → index-hTgJrZR8.js} +1968 -1996
- package/dist/{index.esm2017-QGfAIiCc.js → index.esm2017-DY9Lrb0O.js} +184 -184
- package/dist/{loading-Cql_LElt.js → loading-EnU7K0k3.js} +1 -1
- package/dist/{lodash-PMdIVUsY.js → lodash-Cr7KdLib.js} +1 -1
- package/dist/{membership-BHD1GQ45.js → membership-B1eIzQDB.js} +3 -3
- package/dist/{money-CASVly6f.js → money-DpUzzEJj.js} +1 -1
- package/dist/{number-dMI2x0jy.js → number-DAz9zOKI.js} +1 -1
- package/dist/object-qECH92oz.js +26 -0
- package/dist/objectid-LXOkMCkM.js +145 -0
- package/dist/{plugins-CnEVta3V.js → plugins-DJ13vaqz.js} +95 -94
- package/dist/{reward-vdrNMYrF.js → reward-Cmx_swM1.js} +1 -1
- package/dist/{rule-BLXUDFEw.js → rule-BCzySyr6.js} +487 -505
- package/dist/rule-builder-CDkWYBLG.js +102 -0
- package/dist/style.css +1 -1
- package/dist/template-DfnYZzoa.js +236 -0
- package/dist/{index-DzQCyuGA.js → timezone-Beb0XkZC.js} +20 -21
- package/dist/{trigger-Ccrh378a.js → trigger-BfQprjI-.js} +5 -5
- package/dist/{useMarketingMaterialActions-BQLBRa3G.js → useMarketingMaterialActions-CagN58AP.js} +3 -3
- package/dist/{usePagination-BjsffqjT.js → usePagination-XyeJR5ws.js} +1 -1
- package/dist/{user-B5jS1GLb.js → user-l2YG1VjD.js} +1 -1
- package/dist/{vue-i18n-CCjHlB6z.js → vue-i18n-DJXhpQga.js} +391 -391
- package/dist/{xlsx-DmBOvA2N.js → xlsx-DypdT1NW.js} +1 -1
- package/dist/{zod-DrYZ6KS4.js → zod-BM5P7Bti.js} +1 -1
- package/package.json +4 -8
- package/dist/AuditLogs-CAtlilma.js +0 -2013
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bpr9KuHW.js +0 -3377
- package/dist/Grab-CDhmMNsL.js +0 -300
- package/dist/LoyaltyDashboard-BFjI3IWT.js +0 -1082
- package/dist/Review-D9cFDrhN.js +0 -1192
- package/dist/ReviewFacebookCallback-DbE8_6D3.js +0 -243
- package/dist/ReviewGoogleCallback-LMZgyopt.js +0 -208
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BEqgU70M.js +0 -1911
- package/dist/StoreTransactions.vue_vue_type_script_setup_true_lang-CNC_jNgW.js +0 -1130
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BBlCR4pN.js +0 -7007
- package/dist/duplicateCampaign-CxuNftok.js +0 -51
- package/dist/index-Dc-I4Jr-.js +0 -67
- package/dist/object-BYyQ0PZp.js +0 -18
- package/dist/objectid-Db_4Ays3.js +0 -145
- package/dist/template-CRjkIq3e.js +0 -188
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { defineComponent as J, ref as y, computed as z, onMounted as K, resolveComponent as A, openBlock as u, createElementBlock as b, createElementVNode as s, createVNode as d, createTextVNode as W, toDisplayString as v, unref as e, withCtx as k, createBlock as B, Fragment as Y, renderList as Z, createCommentVNode as N, isRef as ee } from "vue";
|
|
2
|
-
import { u as te } from "./loading-
|
|
2
|
+
import { u as te } from "./loading-EnU7K0k3.js";
|
|
3
3
|
import { u as ne } from "./app-wDQR6dpb.js";
|
|
4
|
-
import { u as se } from "./business-
|
|
5
|
-
import { u as oe } from "./membership-
|
|
6
|
-
import "./index-
|
|
7
|
-
import { l as ae } from "./index-
|
|
8
|
-
import "./index-
|
|
9
|
-
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
10
|
-
import { f as D, p as ie } from "./plugins-
|
|
11
|
-
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-
|
|
12
|
-
import { u as ce } from "./vue-i18n-
|
|
4
|
+
import { u as se } from "./business-6gZtKQ8L.js";
|
|
5
|
+
import { u as oe } from "./membership-B1eIzQDB.js";
|
|
6
|
+
import "./index-CH_QL_76.js";
|
|
7
|
+
import { l as ae } from "./index-DW7H-3z4.js";
|
|
8
|
+
import "./index-Dz130JVH.js";
|
|
9
|
+
import { _ as le } from "./ImageInput.vue_vue_type_script_setup_true_lang-DZrmFruC.js";
|
|
10
|
+
import { f as D, p as ie } from "./plugins-DJ13vaqz.js";
|
|
11
|
+
import { _ as re } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-5Aazsvfa.js";
|
|
12
|
+
import { u as ce } from "./vue-i18n-DJXhpQga.js";
|
|
13
13
|
import { useRouter as de } from "vue-router";
|
|
14
|
-
import { m as me } from "./index-
|
|
15
|
-
import { R as ue } from "./app-
|
|
16
|
-
import { a as ve } from "./object-
|
|
14
|
+
import { m as me } from "./index-6FvsyekG.js";
|
|
15
|
+
import { R as ue } from "./app-D8i8XAyR.js";
|
|
16
|
+
import { a as ve } from "./object-qECH92oz.js";
|
|
17
17
|
const pe = { class: "min-h-screen bg-fm-color-neutral-gray-50" }, fe = { class: "bg-white border-b border-fm-color-neutral-gray-100 sticky top-0 z-10" }, ge = { class: "px-24 py-16 flex items-center justify-between" }, _e = { class: "flex items-center gap-16" }, he = { class: "fm-typo-en-title-md-800 flex items-center gap-8" }, ye = { class: "fm-typo-en-body-sm-400 text-fm-color-typo-secondary" }, be = {
|
|
18
18
|
key: 0,
|
|
19
19
|
class: "px-24 py-24"
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { defineComponent as U, useSlots as z, openBlock as t, createElementBlock as a, createElementVNode as l, normalizeClass as A, unref as o, toDisplayString as g, createCommentVNode as _, Fragment as k, createBlock as w, createVNode as x, renderSlot as M, ref as S, computed as B, onMounted as W, withCtx as C, renderList as E, createStaticVNode as D } from "vue";
|
|
2
|
+
import { u as q } from "./loading-EnU7K0k3.js";
|
|
3
|
+
import { u as H } from "./business-6gZtKQ8L.js";
|
|
4
|
+
import { components as y, useSnackbar as J } from "@feedmepos/ui-library";
|
|
5
|
+
import { u as R } from "./vue-i18n-DJXhpQga.js";
|
|
6
|
+
import { g as K, f as Q } from "./google-BQK68wbe.js";
|
|
7
|
+
import { R as X } from "./app-D8i8XAyR.js";
|
|
8
|
+
import { useRouter as Y } from "vue-router";
|
|
9
|
+
import { r as b } from "./index-CJUzQG6t.js";
|
|
10
|
+
const Z = { class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white overflow-hidden" }, ee = ["src"], oe = { class: "flex flex-col flex-1 min-w-0" }, ne = { class: "fm-typo-en-body-md-600 capitalize" }, te = {
|
|
11
|
+
key: 0,
|
|
12
|
+
class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate"
|
|
13
|
+
}, N = /* @__PURE__ */ U({
|
|
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(i, { emit: p }) {
|
|
25
|
+
const u = p, { t: f } = R(), v = z();
|
|
26
|
+
return (c, s) => (t(), a("div", Z, [
|
|
27
|
+
l("div", {
|
|
28
|
+
class: A(["flex items-center gap-12 p-16", o(v).default ? "border-b border-fm-color-neutral-gray-100" : ""])
|
|
29
|
+
}, [
|
|
30
|
+
l("img", {
|
|
31
|
+
src: i.icon,
|
|
32
|
+
class: "w-10 h-10 shrink-0"
|
|
33
|
+
}, null, 8, ee),
|
|
34
|
+
l("div", oe, [
|
|
35
|
+
l("span", ne, g(i.name), 1),
|
|
36
|
+
i.subtitle ? (t(), a("span", te, g(i.subtitle), 1)) : _("", !0)
|
|
37
|
+
]),
|
|
38
|
+
i.connected ? (t(), a(k, { key: 0 }, [
|
|
39
|
+
i.tokenExpired ? (t(), w(o(y).FmChip, {
|
|
40
|
+
key: 0,
|
|
41
|
+
label: o(f)("connect.review.expired"),
|
|
42
|
+
variant: "critical"
|
|
43
|
+
}, null, 8, ["label"])) : _("", !0),
|
|
44
|
+
x(o(y).FmButton, {
|
|
45
|
+
variant: "secondary",
|
|
46
|
+
"prepend-icon": "refresh",
|
|
47
|
+
label: o(f)("connect.review.reconnect"),
|
|
48
|
+
onClick: s[0] || (s[0] = (m) => u("connect"))
|
|
49
|
+
}, null, 8, ["label"]),
|
|
50
|
+
i.tokenExpired ? _("", !0) : (t(), w(o(y).FmButton, {
|
|
51
|
+
key: 1,
|
|
52
|
+
variant: "primary",
|
|
53
|
+
"prepend-icon": "sync",
|
|
54
|
+
label: o(f)("connect.review.sync"),
|
|
55
|
+
loading: i.syncing,
|
|
56
|
+
onClick: s[1] || (s[1] = (m) => u("sync"))
|
|
57
|
+
}, null, 8, ["label", "loading"]))
|
|
58
|
+
], 64)) : (t(), w(o(y).FmButton, {
|
|
59
|
+
key: 1,
|
|
60
|
+
"prepend-icon": "add",
|
|
61
|
+
label: o(f)("connect.review.connect"),
|
|
62
|
+
onClick: s[2] || (s[2] = (m) => u("connect"))
|
|
63
|
+
}, null, 8, ["label"]))
|
|
64
|
+
], 2),
|
|
65
|
+
M(c.$slots, "default")
|
|
66
|
+
]));
|
|
67
|
+
}
|
|
68
|
+
}), ce = { class: "p-24 flex flex-col gap-8" }, re = { class: "flex flex-col flex-1 min-w-0" }, ae = { class: "fm-typo-en-body-lg-600 truncate" }, le = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, se = ["src"], ie = { class: "flex flex-col flex-1 min-w-0" }, de = { class: "fm-typo-en-body-lg-600 truncate" }, ue = { class: "fm-typo-en-body-sm-400 text-fm-color-neutral-gray-400 truncate" }, xe = /* @__PURE__ */ U({
|
|
69
|
+
__name: "Settings",
|
|
70
|
+
setup(i) {
|
|
71
|
+
const { t: p } = R(), u = J(), f = Y(), v = H(), c = S(null), s = S(!1), m = S(!1), V = B(
|
|
72
|
+
() => {
|
|
73
|
+
var e;
|
|
74
|
+
return c.value ? ((e = c.value.google) == null ? void 0 : e.accessToken) === null : !1;
|
|
75
|
+
}
|
|
76
|
+
), L = B(
|
|
77
|
+
() => {
|
|
78
|
+
var e;
|
|
79
|
+
return c.value ? ((e = c.value.facebook) == null ? void 0 : e.token) === null : !1;
|
|
80
|
+
}
|
|
81
|
+
);
|
|
82
|
+
function $(e) {
|
|
83
|
+
const n = window.location.pathname.replace(/\/review(?:\/.*)?$/, "");
|
|
84
|
+
return `${window.location.origin}${n}${e}`;
|
|
85
|
+
}
|
|
86
|
+
async function h() {
|
|
87
|
+
await q.minor(async () => {
|
|
88
|
+
c.value = await b.getSource();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function I(e) {
|
|
92
|
+
var n;
|
|
93
|
+
return (n = v.locations.find(
|
|
94
|
+
(r) => r._id.toString() === e
|
|
95
|
+
)) == null ? void 0 : n.name;
|
|
96
|
+
}
|
|
97
|
+
function T(e) {
|
|
98
|
+
return e.map((n) => I(n)).filter((n) => n !== void 0).join(", ");
|
|
99
|
+
}
|
|
100
|
+
function F() {
|
|
101
|
+
u.open({
|
|
102
|
+
message: p("connect.review.syncSuccess"),
|
|
103
|
+
type: "success"
|
|
104
|
+
}), f.push({ name: X["$connect-REVIEW_OVERVIEW"] });
|
|
105
|
+
}
|
|
106
|
+
async function O() {
|
|
107
|
+
var e, n;
|
|
108
|
+
s.value = !0;
|
|
109
|
+
try {
|
|
110
|
+
await b.syncGoogleReviews(), F();
|
|
111
|
+
} catch (r) {
|
|
112
|
+
if (await h(), ((n = (e = c.value) == null ? void 0 : e.google) == null ? void 0 : n.accessToken) === null) {
|
|
113
|
+
u.open({
|
|
114
|
+
message: p("connect.review.tokenExpired"),
|
|
115
|
+
type: "error"
|
|
116
|
+
});
|
|
117
|
+
return;
|
|
118
|
+
}
|
|
119
|
+
throw r;
|
|
120
|
+
} finally {
|
|
121
|
+
s.value = !1;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
async function P() {
|
|
125
|
+
var e, n;
|
|
126
|
+
m.value = !0;
|
|
127
|
+
try {
|
|
128
|
+
await b.syncFacebookReviews(), F();
|
|
129
|
+
} catch (r) {
|
|
130
|
+
if (await h(), ((n = (e = c.value) == null ? void 0 : e.facebook) == null ? void 0 : n.token) === null) {
|
|
131
|
+
u.open({
|
|
132
|
+
message: p("connect.review.tokenExpired"),
|
|
133
|
+
type: "error"
|
|
134
|
+
});
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
throw r;
|
|
138
|
+
} finally {
|
|
139
|
+
m.value = !1;
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
async function G() {
|
|
143
|
+
const e = $("/review/google/callback"), { callbackUrl: n } = await b.getOauthUrl("google", e);
|
|
144
|
+
window.location.href = n;
|
|
145
|
+
}
|
|
146
|
+
async function j() {
|
|
147
|
+
const e = $("/review/facebook/callback"), { callbackUrl: n } = await b.getOauthUrl("facebook", e);
|
|
148
|
+
window.location.href = n;
|
|
149
|
+
}
|
|
150
|
+
return W(() => {
|
|
151
|
+
h(), v.readLocations();
|
|
152
|
+
}), (e, n) => (t(), a("div", ce, [
|
|
153
|
+
o(c) ? (t(), a(k, { key: 0 }, [
|
|
154
|
+
x(N, {
|
|
155
|
+
icon: o(K),
|
|
156
|
+
name: "google",
|
|
157
|
+
connected: !!o(c).google,
|
|
158
|
+
syncing: o(s),
|
|
159
|
+
"token-expired": o(V),
|
|
160
|
+
onConnect: G,
|
|
161
|
+
onSync: O
|
|
162
|
+
}, {
|
|
163
|
+
default: C(() => {
|
|
164
|
+
var r;
|
|
165
|
+
return [
|
|
166
|
+
(t(!0), a(k, null, E((r = o(c).google) == null ? void 0 : r.locations, (d) => (t(), a("div", {
|
|
167
|
+
key: d.googleLocationName,
|
|
168
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
169
|
+
}, [
|
|
170
|
+
x(o(y).FmIcon, {
|
|
171
|
+
name: "location_on",
|
|
172
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
173
|
+
}),
|
|
174
|
+
l("div", re, [
|
|
175
|
+
l("span", ae, g(d.displayName), 1),
|
|
176
|
+
l("span", le, g(I(d.locationId)), 1)
|
|
177
|
+
])
|
|
178
|
+
]))), 128))
|
|
179
|
+
];
|
|
180
|
+
}),
|
|
181
|
+
_: 1
|
|
182
|
+
}, 8, ["icon", "connected", "syncing", "token-expired"]),
|
|
183
|
+
x(N, {
|
|
184
|
+
icon: o(Q),
|
|
185
|
+
name: "facebook",
|
|
186
|
+
connected: !!o(c).facebook,
|
|
187
|
+
syncing: o(m),
|
|
188
|
+
"token-expired": o(L),
|
|
189
|
+
onConnect: j,
|
|
190
|
+
onSync: P
|
|
191
|
+
}, {
|
|
192
|
+
default: C(() => {
|
|
193
|
+
var r;
|
|
194
|
+
return [
|
|
195
|
+
(t(!0), a(k, null, E((r = o(c).facebook) == null ? void 0 : r.pages, (d) => (t(), a("div", {
|
|
196
|
+
key: d.facebookPageId,
|
|
197
|
+
class: "flex items-center gap-12 px-16 py-12 border-b border-fm-color-neutral-gray-100 last:border-b-0"
|
|
198
|
+
}, [
|
|
199
|
+
d.pageProfileImageUrl ? (t(), a("img", {
|
|
200
|
+
key: 0,
|
|
201
|
+
src: d.pageProfileImageUrl,
|
|
202
|
+
class: "w-10 h-10 rounded-full shrink-0 object-cover"
|
|
203
|
+
}, null, 8, se)) : (t(), w(o(y).FmIcon, {
|
|
204
|
+
key: 1,
|
|
205
|
+
name: "person",
|
|
206
|
+
class: "text-fm-color-neutral-gray-300 shrink-0"
|
|
207
|
+
})),
|
|
208
|
+
l("div", ie, [
|
|
209
|
+
l("span", de, g(d.pageName), 1),
|
|
210
|
+
l("span", ue, g(T(d.locationIds)), 1)
|
|
211
|
+
])
|
|
212
|
+
]))), 128))
|
|
213
|
+
];
|
|
214
|
+
}),
|
|
215
|
+
_: 1
|
|
216
|
+
}, 8, ["icon", "connected", "syncing", "token-expired"])
|
|
217
|
+
], 64)) : (t(), a(k, { key: 1 }, E(["google", "facebook"], (r) => l("div", {
|
|
218
|
+
key: r,
|
|
219
|
+
class: "rounded-lg border border-fm-color-neutral-gray-200 bg-white p-16"
|
|
220
|
+
}, [...n[0] || (n[0] = [
|
|
221
|
+
D('<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)
|
|
222
|
+
])])), 64))
|
|
223
|
+
]));
|
|
224
|
+
}
|
|
225
|
+
});
|
|
226
|
+
export {
|
|
227
|
+
xe as default
|
|
228
|
+
};
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import { defineComponent as te, computed as L, resolveComponent as S, openBlock as x, createBlock as O, withCtx as B, createElementVNode as F, toDisplayString as K, createVNode as r, createCommentVNode as E, createElementBlock as D, unref as e, Fragment as Y, renderList as ce, ref as N, isRef as re, reactive as ze, onMounted as he, watch as Pe, toRaw as Je, createTextVNode as me, h as Ge } from "vue";
|
|
2
2
|
import { _ as Xe } from "./tier-BJDhpH6X.js";
|
|
3
3
|
import { useDialog as je, useDialogChild as Le, components as Ze } from "@feedmepos/ui-library";
|
|
4
|
-
import { c as A, e as _e, S as Qe } from "./index-
|
|
5
|
-
import { u as Ke } from "./loading-
|
|
6
|
-
import { u as ke, C as ye } from "./membership-
|
|
7
|
-
import { n as et, o as tt, p as nt, q as Ae, r as ot } from "./index-
|
|
8
|
-
import { a as at, c as Fe } from "./object-
|
|
9
|
-
import { _ as ae } from "./lodash-
|
|
10
|
-
import { c as ue } from "./index-
|
|
11
|
-
import { u as xe } from "./vue-i18n-
|
|
12
|
-
import { Z as Q, g as G, a as X } from "./zod-
|
|
13
|
-
import { z as ee, R as lt } from "./app-
|
|
4
|
+
import { c as A, e as _e, S as Qe } from "./index-Cv-DbZdw.js";
|
|
5
|
+
import { u as Ke } from "./loading-EnU7K0k3.js";
|
|
6
|
+
import { u as ke, C as ye } from "./membership-B1eIzQDB.js";
|
|
7
|
+
import { n as et, o as tt, p as nt, q as Ae, r as ot } from "./index-DW7H-3z4.js";
|
|
8
|
+
import { a as at, c as Fe } from "./object-qECH92oz.js";
|
|
9
|
+
import { _ as ae } from "./lodash-Cr7KdLib.js";
|
|
10
|
+
import { c as ue } from "./index-CH_QL_76.js";
|
|
11
|
+
import { u as xe } from "./vue-i18n-DJXhpQga.js";
|
|
12
|
+
import { Z as Q, g as G, a as X } from "./zod-BM5P7Bti.js";
|
|
13
|
+
import { z as ee, R as lt } from "./app-D8i8XAyR.js";
|
|
14
14
|
import { u as Se } from "./app-wDQR6dpb.js";
|
|
15
|
-
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-
|
|
16
|
-
import { c as st, p as pe, n as rt, f as Ve } from "./plugins-
|
|
15
|
+
import { _ as le } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CAtzo8zL.js";
|
|
16
|
+
import { c as st, p as pe, n as rt, f as Ve } from "./plugins-DJ13vaqz.js";
|
|
17
17
|
import { J as Te } from "./JsonViewer-v8_C7l5N.js";
|
|
18
|
-
import { _ as it } from "./index-
|
|
19
|
-
import { _ as dt } from "./ImageInput.vue_vue_type_script_setup_true_lang-
|
|
18
|
+
import { _ as it } from "./index-hTgJrZR8.js";
|
|
19
|
+
import { _ as dt } from "./ImageInput.vue_vue_type_script_setup_true_lang-DZrmFruC.js";
|
|
20
20
|
import { _ as ut } from "./ChipMenu.vue_vue_type_script_setup_true_lang-BPpZZNkr.js";
|
|
21
|
-
import { z as ct, a as mt } from "./money-
|
|
22
|
-
import { F as pt } from "./number-
|
|
23
|
-
import { a as ft, t as yt } from "./helper-
|
|
24
|
-
import "./index-
|
|
25
|
-
import "./index-
|
|
26
|
-
import "./index-
|
|
27
|
-
import { m as bt } from "./index-
|
|
28
|
-
import { m as ge } from "./index-
|
|
21
|
+
import { z as ct, a as mt } from "./money-DpUzzEJj.js";
|
|
22
|
+
import { F as pt } from "./number-DAz9zOKI.js";
|
|
23
|
+
import { a as ft, t as yt } from "./helper-BQYvN6FL.js";
|
|
24
|
+
import "./index-Dz130JVH.js";
|
|
25
|
+
import "./index-C9j6OhgK.js";
|
|
26
|
+
import "./index-D6wOnTAl.js";
|
|
27
|
+
import { m as bt } from "./index-ERqXuFvQ.js";
|
|
28
|
+
import { m as ge } from "./index-6FvsyekG.js";
|
|
29
29
|
import { useRouter as gt } from "vue-router";
|
|
30
30
|
function He(C) {
|
|
31
31
|
return ue.DineroFactory(C).toUnit();
|
|
@@ -594,7 +594,7 @@ const Dt = {
|
|
|
594
594
|
};
|
|
595
595
|
}
|
|
596
596
|
});
|
|
597
|
-
var Mt = { mode: "
|
|
597
|
+
var Mt = { mode: "production", appMode: "mf" };
|
|
598
598
|
const At = { class: "space-y-8" }, Et = {
|
|
599
599
|
key: 0,
|
|
600
600
|
class: "space-y-16"
|
|
@@ -1633,7 +1633,7 @@ async function Ee({
|
|
|
1633
1633
|
}) {
|
|
1634
1634
|
return C ? !0 : (await _() && o(!0), !1);
|
|
1635
1635
|
}
|
|
1636
|
-
var hn = { authUrl: "https://portal-v2
|
|
1636
|
+
var hn = { 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/" };
|
|
1637
1637
|
const xn = { class: "px-24 flex flex-col gap-y-16" }, Cn = { class: "flex gap-8 items-center" }, _n = { class: "fm-typo-en-body-lg-600" }, Sn = { class: "grid sm:grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-24" }, Fn = { class: "flex flex-col gap-16 text-center" }, Vn = { class: "fm-typo-en-title-sm-800" }, wn = { class: "fm-typo-en-body-md-400 text-fm-color-typo-secondary" }, no = /* @__PURE__ */ te({
|
|
1638
1638
|
__name: "Store",
|
|
1639
1639
|
setup(C) {
|
|
@@ -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-Dz130JVH.js";
|
|
5
|
+
import { u as ae } from "./loading-EnU7K0k3.js";
|
|
6
|
+
import { C as Q, u as ne } from "./membership-B1eIzQDB.js";
|
|
7
|
+
import { p as B, f as K } from "./plugins-DJ13vaqz.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-
|
|
11
|
-
import { c as re } from "./object-
|
|
9
|
+
import { u as se } from "./vue-i18n-DJXhpQga.js";
|
|
10
|
+
import { F as ie } from "./index-hTgJrZR8.js";
|
|
11
|
+
import { c as re } from "./object-qECH92oz.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 { _ 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-6gZtKQ8L.js";
|
|
14
|
+
import { Z as h } from "./zod-BM5P7Bti.js";
|
|
15
|
+
import { _ as de } from "./ZodTextField.vue_vue_type_script_setup_true_lang-CAtzo8zL.js";
|
|
16
|
+
import { _ as ce } from "./ImageInput.vue_vue_type_script_setup_true_lang-DZrmFruC.js";
|
|
17
|
+
import { _ as me } from "./TargetLocationInput.vue_vue_type_script_setup_true_lang-5Aazsvfa.js";
|
|
18
|
+
import { _ as pe, a as ue } from "./EffectSheet.vue_vue_type_style_index_0_lang-CbpKQj-r.js";
|
|
19
|
+
import { i as fe, F as ye, h as j, t as we } from "./helper-BQYvN6FL.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-6FvsyekG.js";
|
|
22
|
+
import { R as L } from "./app-D8i8XAyR.js";
|
|
23
23
|
function ve(w) {
|
|
24
24
|
return !!(w != null && w.isAdmin) || !!(w != null && w.isStaff);
|
|
25
25
|
}
|