@feedmepos/mf-connect 0.1.124-prod → 0.1.125-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-DMh2xABv.js → App-lOnYYWzx.js} +224 -216
- package/dist/AuditLogs-C5aMzrhF.js +2016 -0
- package/dist/{Bin-C_pkPgIo.js → Bin-Dk0rAESN.js} +8 -8
- package/dist/{Broadcast-6ZJzdY0b.js → Broadcast-BBNpuceo.js} +22 -21
- package/dist/{CampaignAnalytic-CLd5ecQe.js → CampaignAnalytic-BgROt0Yu.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CrgCuB45.js} +9 -10
- package/dist/{Card-CkS8F43U.js → Card-fSEJaQmL.js} +23 -23
- package/dist/{Collections-BA9I-dDz.js → Collections-DVM1dOOo.js} +197 -185
- package/dist/{Credit-CXm0A-qe.js → Credit-CNDYRDiK.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Cup-EvR6.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CJ90EwzB.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js → EffectSheet.vue_vue_type_style_index_0_lang-JQmGeS__.js} +33 -33
- package/dist/{Experience-Bq4ykqTJ.js → Experience-Bqfx1Gjq.js} +32 -31
- package/dist/{FileSaver.min-BtBxrIBi.js → FileSaver.min-B4Jv2-PR.js} +1 -1
- package/dist/{Game-DpLFmP-G.js → Game-DmbJYYaC.js} +19 -18
- package/dist/{GiftCardSetup-BqOqEUim.js → GiftCardSetup-DHxDI5hU.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BfrjE7gE.js} +7 -7
- package/dist/{Goals-DMlNeiUc.js → Goals-B-3PoUlx.js} +4 -4
- package/dist/Grab-BRfVvqAr.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js → ImageInput.vue_vue_type_script_setup_true_lang-TUlgTblc.js} +1 -1
- package/dist/{Index-Cw07jj0k.js → Index-vfYiu7G1.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js → LocationPicker.vue_vue_type_script_setup_true_lang-BKdq7bw2.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DUAKzHgZ.js} +1 -1
- package/dist/{LoyaltyDashboard-DzSiK6M7.js → LoyaltyDashboard-CHEIpAHw.js} +15 -15
- package/dist/{MainLayout-1EF680_j.js → MainLayout-Cf1lEoHL.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js → MainLayout.vue_vue_type_script_setup_true_lang-DwNxuVHy.js} +3 -3
- package/dist/{Marketing-T-epFsvG.js → Marketing-BBF8mHSo.js} +4 -4
- package/dist/{MarketingMaterialEdit-CVhPfyEp.js → MarketingMaterialEdit-COTHaH08.js} +214 -211
- package/dist/{Member-BUZOPyQR.js → Member-BEyxcsNI.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DLSsOeLt.js} +40 -48
- package/dist/{MemberImportHistory-DGz9i6L7.js → MemberImportHistory-zs8VJsoI.js} +7 -7
- package/dist/{MemberList-CNdSrzBa.js → MemberList-2-qKmm5p.js} +103 -105
- package/dist/{MemberTransactions-CdQMuQsd.js → MemberTransactions-DOsMBs30.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js → MessageInput.vue_vue_type_script_setup_true_lang-DBl4cf8X.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CtqBL-Ky.js} +1 -1
- package/dist/{Mission-CYxgMBPt.js → Mission-Bo7tuR13.js} +22 -21
- package/dist/{Overview-DSm8AfDB.js → Overview-BrGVMqE1.js} +21 -21
- package/dist/{Overview-qZ1KKw9D.js → Overview-CnoidK6U.js} +145 -144
- package/dist/{Point-BGlbT9OK.js → Point-DJ2-HEmx.js} +22 -21
- package/dist/{Promotion-CtlrUFa8.js → Promotion-D7Q3EY3d.js} +137 -131
- package/dist/{Queue-Dc_z9MKc.js → Queue-CLXhXQeU.js} +46 -46
- package/dist/{Record-DVKrhFwJ.js → Record-CCF7K-pJ.js} +9 -9
- package/dist/{Review-Bh8Tw_QU.js → Review-BZH_tGDe.js} +2 -2
- package/dist/ReviewFacebookCallback-Bs-oiDMC.js +225 -0
- package/dist/{ReviewGoogleCallback-CsSCz_C5.js → ReviewGoogleCallback-eHLJko2f.js} +5 -5
- package/dist/{Reward-DY1Q3m1w.js → Reward-ea05o2qi.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js → RewardGroup.vue_vue_type_script_setup_true_lang-Csa8UPMS.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-DW3NDgHq.js +1923 -0
- package/dist/{Segment-D6LchJFl.js → Segment-z3BAGTqr.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-D4H86p3o.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-x8dMt8PF.js} +4 -4
- package/dist/{Setting-UkdSKiUb.js → Setting-D0nKTgej.js} +17 -17
- package/dist/{SettingAdvertisements-DK97gcus.js → SettingAdvertisements-BUGsMAdi.js} +12 -12
- package/dist/Settings-C2loJXla.js +286 -0
- package/dist/{Store-2VVStL5_.js → Store-CbhAyr1j.js} +29 -29
- package/dist/{StoreRewards-f3Pyb9hu.js → StoreRewards-DHt64JEN.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CQ7I8Zli.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-ylUyqix_.js +7007 -0
- package/dist/{Tier-D4Of9P17.js → Tier-CH5DwMYW.js} +2583 -688
- package/dist/{Title-Cg6X9UkB.js → Title-DNLw_rOp.js} +96 -95
- package/dist/{Transaction-LJbjQnj_.js → Transaction-DCuU6B7G.js} +2 -2
- package/dist/{Upselling-B-VwbtjT.js → Upselling-DBsfEEvV.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-f-j87AZA.js} +26 -26
- package/dist/{Voucher-BJG6VKXt.js → Voucher-BVztDyI0.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CrYrxFVi.js} +12 -12
- package/dist/{WhatsappAccount-Dc1fJWWj.js → WhatsappAccount-CobyTNkp.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C-pbY0Zv.js} +1 -1
- package/dist/{WhatsappBot-Coq1WP96.js → WhatsappBot-xc4QD061.js} +6 -6
- package/dist/WhatsappBotLogs-eiDWJkN7.js +509 -0
- package/dist/{WhatsappBotSettings-fNRFecJX.js → WhatsappBotSettings-D4cMFn3z.js} +65 -65
- package/dist/{WhatsappLayout-x9Ovpu6e.js → WhatsappLayout-C8DejCWo.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CZNpggfQ.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js → ZodTextField.vue_vue_type_script_setup_true_lang-C6TJ4hxh.js} +2 -2
- package/dist/{app-BMFxxLUm.js → app-Bik4hlr7.js} +4310 -3520
- package/dist/app.js +4 -3
- package/dist/{base.export-LmQ51u5f.js → base.export-BRw8QzdM.js} +2 -2
- package/dist/{business-DZWViiMC.js → business-Dv2S3X12.js} +1 -1
- package/dist/{campaign-C9xvGyrL.js → campaign-CNDBsfeQ.js} +31 -25
- package/dist/{campaign-DZDGbR4W.js → campaign-witQNfmZ.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/{campaign.fn-OVkj0QLu.js → campaign.fn-Dr4w5BrO.js} +105 -105
- package/dist/{collection.fn-DrNrla0B.js → collection.fn-C0Dx5_1j.js} +2 -2
- package/dist/{currency-BZv2gSlF.js → currency-lP50Csky.js} +1 -1
- package/dist/duplicateCampaign-BfLxdQWg.js +51 -0
- package/dist/{effect-CvumfBMY.js → effect-6bi20cxS.js} +1 -1
- package/dist/{email-addresses-79tPeI4j.js → email-addresses-BmujKG-l.js} +2 -2
- package/dist/{feature-flag-CYXnrECh.js → feature-flag-DdxBiP1p.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-DFjsyjri.js → helper-DSmzzBjW.js} +1 -1
- package/dist/{index-Bnane9cm.js → index-2JiR1s6M.js} +1 -1
- package/dist/{index-CNzQ3FLi.js → index-373LDTQ7.js} +1 -1
- package/dist/{index-C6Rx7pjc.js → index-83SeIfhc.js} +608 -251
- package/dist/{index-CA7oIW_T.js → index-B0Ddw1na.js} +197 -197
- package/dist/index-BD3HIAoL.js +86 -0
- package/dist/{index-C43KoLej.js → index-BNdhRCyN.js} +4 -4
- package/dist/{index-CcCiEG6N.js → index-BTud0ICl.js} +1 -1
- package/dist/{index-B_8PAyia.js → index-BYlnybS9.js} +2 -2
- package/dist/{index-_-nCOZ1D.js → index-CCVnmv0l.js} +19 -6
- package/dist/{index-BiPRZRyE.js → index-CEscBR6G.js} +2699 -2613
- package/dist/{index-DZrX13oF.js → index-CFhazRum.js} +1314 -1242
- package/dist/{index-I9lmcd2w.js → index-CH-uRaZH.js} +56 -53
- package/dist/{index-Bt-n8QuD.js → index-CH1MpmvS.js} +9 -9
- package/dist/{index-CAWnce4u.js → index-CRd8uD-d.js} +1 -1
- package/dist/{index-DWZzsJHU.js → index-CdQGmMRo.js} +2 -2
- package/dist/{index-Ba1t5vQv.js → index-Cei8qPkg.js} +380 -234
- package/dist/{index-C6ZTa-eq.js → index-D-Ln1G1Y.js} +1 -1
- package/dist/{index-MhAbTpBy.js → index-DGctCMca.js} +23 -23
- package/dist/{index-CW4rNV1_.js → index-DGz2Y25B.js} +2 -2
- package/dist/{index-C5bC2n8X.js → index-DMT5xoCz.js} +3 -3
- package/dist/{index-CBd91xYU.js → index-DjlmY7Od.js} +7 -7
- package/dist/{index.esm2017-DtTjnHHc.js → index.esm2017-BcULj0z4.js} +57 -57
- package/dist/{loading-DkqEFbrR.js → loading-DmCJ1FiL.js} +1 -1
- package/dist/{lodash-BxU_5gPB.js → lodash-FEhiisF1.js} +1 -1
- package/dist/{member-import-B3NBqSF6.js → member-import-BLxPVKon.js} +22 -13
- package/dist/{membership-Dr5BxoL-.js → membership-Dq3LSd35.js} +2 -2
- package/dist/{money-D58xuACG.js → money-D2RIG9zm.js} +1 -1
- package/dist/{number-C9CiD5ci.js → number-D87ngEVu.js} +1 -1
- package/dist/objectid-CuPXVpKE.js +145 -0
- package/dist/{onboarding-BssUSfGQ.js → onboarding-YlSAcar0.js} +25 -25
- package/dist/{onboardingSetup-Dc_lD-K8.js → onboardingSetup-qgS6ktSi.js} +2 -2
- package/dist/{plugins-D7Xjefvk.js → plugins-B3B_2EiB.js} +3 -3
- package/dist/{reward-CACqYkQp.js → reward-BtEe_1ZU.js} +1 -1
- package/dist/{rule-BRaTrwKz.js → rule-PmdBF8Cb.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-D6wO9_aV.js +227 -0
- package/dist/{timezone-CgVEOC5i.js → timezone-DPnmvzUK.js} +1 -1
- package/dist/{transaction.fn-C64l_ja_.js → transaction.fn-BavSYDYI.js} +2 -2
- package/dist/{trigger-d2RIqXLt.js → trigger-CsIScoNI.js} +9 -9
- package/dist/{useMarketingMaterialActions-Drf2MY9h.js → useMarketingMaterialActions-CHBfA7iR.js} +4 -4
- package/dist/{usePagination-IUw34YLE.js → usePagination-DXPBbII4.js} +1 -1
- package/dist/{user-ClGyYHyS.js → user-B8js0aIx.js} +1 -1
- package/dist/vue-i18n-R6DAeTzc.js +2365 -0
- package/dist/{xlsx-HvtVSofi.js → xlsx-CYugHPG9.js} +1 -1
- package/dist/{zod-IPdjFU_b.js → zod-BEFViLGC.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C5INV6R7.js +0 -3493
- package/dist/ReviewFacebookCallback-ZZ0pxplM.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-JA0XIgqb.js +0 -1884
- package/dist/Settings-BFcVswDS.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-CCWNzg4p.js +0 -142
- package/dist/WhatsappBotLogs-EH9PQVn9.js +0 -372
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-C-pVo6PI.js +0 -74
- package/dist/objectid-CgTtbB6Q.js +0 -145
- package/dist/rule-builder-DZOASGFD.js +0 -102
- package/dist/template-DdeVPIBt.js +0 -275
- package/dist/vue-i18n-Cby9s0nj.js +0 -2365
|
@@ -1,179 +0,0 @@
|
|
|
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-DkqEFbrR.js";
|
|
3
|
-
import { u as M } from "./business-DZWViiMC.js";
|
|
4
|
-
import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as R } from "./vue-i18n-Cby9s0nj.js";
|
|
6
|
-
import { g as j } from "./google-C3S8u0mT.js";
|
|
7
|
-
import { R as D } from "./app-BMFxxLUm.js";
|
|
8
|
-
import { useRouter as H } from "vue-router";
|
|
9
|
-
import { r as h } from "./index-Bt-n8QuD.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,142 +0,0 @@
|
|
|
1
|
-
import { defineComponent as N, ref as U, computed as w, watch as M, resolveComponent as v, openBlock as a, createElementBlock as i, Fragment as p, toDisplayString as F, createCommentVNode as T, createElementVNode as j, createVNode as h, unref as n, renderList as S, createBlock as k, isRef as $, withCtx as C } from "vue";
|
|
2
|
-
import { u as q } from "./business-DZWViiMC.js";
|
|
3
|
-
import { u as D } from "./vue-i18n-Cby9s0nj.js";
|
|
4
|
-
function K(l, s, o) {
|
|
5
|
-
return l.some(
|
|
6
|
-
o instanceof Function ? o : (u) => u === s
|
|
7
|
-
) || l.push(s), l;
|
|
8
|
-
}
|
|
9
|
-
function O(l, s, o) {
|
|
10
|
-
return l.filter(
|
|
11
|
-
o instanceof Function ? (u) => !o(u) : (u) => u !== s
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
const R = {
|
|
15
|
-
key: 0,
|
|
16
|
-
class: "fm-typo-en-body-lg-400"
|
|
17
|
-
}, z = {
|
|
18
|
-
key: 1,
|
|
19
|
-
class: "space-y-4"
|
|
20
|
-
}, A = { key: 0 }, G = { key: 1 }, H = { key: 2 }, W = /* @__PURE__ */ N({
|
|
21
|
-
__name: "TargetLocationInput",
|
|
22
|
-
props: {
|
|
23
|
-
label: {
|
|
24
|
-
type: String
|
|
25
|
-
},
|
|
26
|
-
type: {
|
|
27
|
-
type: String,
|
|
28
|
-
default: "select"
|
|
29
|
-
},
|
|
30
|
-
modelValue: {
|
|
31
|
-
type: Object,
|
|
32
|
-
required: !0
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
emits: ["update:model-value"],
|
|
36
|
-
setup(l, { emit: s }) {
|
|
37
|
-
const o = q(), { t: u } = D(), c = l, r = U(""), B = w(() => o.locations.filter(
|
|
38
|
-
(d) => {
|
|
39
|
-
var t;
|
|
40
|
-
return d.name.toLowerCase().includes(r.value.toLowerCase()) || ((t = d == null ? void 0 : d.code) == null ? void 0 : t.toLowerCase().includes(r.value.toLowerCase()));
|
|
41
|
-
}
|
|
42
|
-
)), b = s;
|
|
43
|
-
function L(d, t) {
|
|
44
|
-
const m = d ? K(c.modelValue || [], t.toString()) : O(
|
|
45
|
-
c.modelValue || o.locations.map((g) => g._id.toString()),
|
|
46
|
-
t.toString()
|
|
47
|
-
);
|
|
48
|
-
return b("update:model-value", m);
|
|
49
|
-
}
|
|
50
|
-
const V = U(!1), I = w(() => {
|
|
51
|
-
var m, g;
|
|
52
|
-
const t = ((m = c.modelValue) == null ? void 0 : m.slice(0, 5).map((f) => {
|
|
53
|
-
var y;
|
|
54
|
-
return ((y = o.locationById(f)) == null ? void 0 : y.name) || f;
|
|
55
|
-
})) || [];
|
|
56
|
-
return c.modelValue && ((g = c.modelValue) == null ? void 0 : g.length) > 5 && t.push(`+${c.modelValue.length - 5} more`), t;
|
|
57
|
-
});
|
|
58
|
-
return M(V, (d) => {
|
|
59
|
-
d && (r.value = "");
|
|
60
|
-
}), (d, t) => {
|
|
61
|
-
const m = v("FmCheckbox"), g = v("FmChip"), f = v("FmField"), y = v("FmTextField"), E = v("FmMenu");
|
|
62
|
-
return a(), i(p, null, [
|
|
63
|
-
l.label ? (a(), i("div", R, F(l.label), 1)) : T("", !0),
|
|
64
|
-
l.type === "checkbox" ? (a(), i("div", z, [
|
|
65
|
-
j("div", null, [
|
|
66
|
-
h(m, {
|
|
67
|
-
value: null,
|
|
68
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
69
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
70
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
71
|
-
"onUpdate:modelValue": t[0] || (t[0] = (e) => b("update:model-value", e ? null : []))
|
|
72
|
-
}, null, 8, ["indeterminate", "label", "model-value"])
|
|
73
|
-
]),
|
|
74
|
-
(a(!0), i(p, null, S(n(o).locations, (e) => (a(), i("div", {
|
|
75
|
-
key: e._id.toString()
|
|
76
|
-
}, [
|
|
77
|
-
h(m, {
|
|
78
|
-
value: e._id.toString(),
|
|
79
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
80
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
81
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
82
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"])
|
|
83
|
-
]))), 128))
|
|
84
|
-
])) : (a(), k(E, {
|
|
85
|
-
key: 2,
|
|
86
|
-
modelValue: n(V),
|
|
87
|
-
"onUpdate:modelValue": t[3] || (t[3] = (e) => $(V) ? V.value = e : null),
|
|
88
|
-
onMenuChanged: t[4] || (t[4] = (e) => V.value = e),
|
|
89
|
-
placement: "top-end"
|
|
90
|
-
}, {
|
|
91
|
-
"menu-button": C(() => [
|
|
92
|
-
h(f, {
|
|
93
|
-
"append-icon": n(V) ? "expand_more" : "expand_less",
|
|
94
|
-
class: "!h-auto"
|
|
95
|
-
}, {
|
|
96
|
-
default: C(() => [
|
|
97
|
-
!l.modelValue || l.modelValue.length == n(o).locations.length ? (a(), i("div", A, F(n(u)("connect.setting.location.allLocations")), 1)) : l.modelValue.length ? (a(), i("div", H, [
|
|
98
|
-
(a(!0), i(p, null, S(n(I), (e) => (a(), k(g, {
|
|
99
|
-
key: e,
|
|
100
|
-
label: e,
|
|
101
|
-
class: "max-w-[130px] text-ellipsis"
|
|
102
|
-
}, null, 8, ["label"]))), 128))
|
|
103
|
-
])) : (a(), i("div", G, F(n(u)("connect.setting.location.noLocations")), 1))
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["append-icon"])
|
|
107
|
-
]),
|
|
108
|
-
default: C(() => [
|
|
109
|
-
h(y, {
|
|
110
|
-
modelValue: n(r),
|
|
111
|
-
"onUpdate:modelValue": t[1] || (t[1] = (e) => $(r) ? r.value = e : null),
|
|
112
|
-
placeholder: n(u)("connect.setting.location.searchLocations"),
|
|
113
|
-
class: "my-8"
|
|
114
|
-
}, null, 8, ["modelValue", "placeholder"]),
|
|
115
|
-
h(m, {
|
|
116
|
-
class: "my-8",
|
|
117
|
-
value: null,
|
|
118
|
-
indeterminate: l.modelValue != null && l.modelValue.length > 0 && l.modelValue.length < n(o).locations.length,
|
|
119
|
-
label: n(u)("connect.setting.location.allLocations"),
|
|
120
|
-
"model-value": l.modelValue == null || l.modelValue.length === n(o).locations.length,
|
|
121
|
-
"onUpdate:modelValue": t[2] || (t[2] = (e) => b("update:model-value", e ? null : []))
|
|
122
|
-
}, null, 8, ["indeterminate", "label", "model-value"]),
|
|
123
|
-
(a(!0), i(p, null, S(n(B), (e) => (a(), k(m, {
|
|
124
|
-
class: "my-8",
|
|
125
|
-
key: e._id.toString(),
|
|
126
|
-
value: e._id.toString(),
|
|
127
|
-
label: `${e.code ? `${e.code} - ` : ""} ${e.name}`,
|
|
128
|
-
"model-value": !l.modelValue || l.modelValue.includes(e._id.toString()),
|
|
129
|
-
"onUpdate:modelValue": (x) => L(x, e._id.toString())
|
|
130
|
-
}, null, 8, ["value", "label", "model-value", "onUpdate:modelValue"]))), 128))
|
|
131
|
-
]),
|
|
132
|
-
_: 1
|
|
133
|
-
}, 8, ["modelValue"]))
|
|
134
|
-
], 64);
|
|
135
|
-
};
|
|
136
|
-
}
|
|
137
|
-
});
|
|
138
|
-
export {
|
|
139
|
-
W as _,
|
|
140
|
-
K as p,
|
|
141
|
-
O as r
|
|
142
|
-
};
|