@feedmepos/mf-connect 0.1.124-prod → 0.1.126-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-B_Yp6cvN.js} +224 -216
- package/dist/AuditLogs-C1U17evK.js +2016 -0
- package/dist/{Bin-C_pkPgIo.js → Bin-CmIpEIwe.js} +8 -8
- package/dist/{Broadcast-6ZJzdY0b.js → Broadcast-DkV4BdU_.js} +22 -21
- package/dist/{CampaignAnalytic-CLd5ecQe.js → CampaignAnalytic-Dkwo_lpB.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C4OWhhAx.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Ch8Gblw6.js} +9 -10
- package/dist/{Card-CkS8F43U.js → Card-DXCkG34M.js} +23 -23
- package/dist/{Collections-BA9I-dDz.js → Collections-CybPfSO4.js} +197 -185
- package/dist/{Credit-CXm0A-qe.js → Credit-B-KUzWsX.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DzsHTlrN.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CWHYeYVD.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-C86llTFR.js +4439 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zSPUBUSz.js → EffectSheet.vue_vue_type_style_index_0_lang-nMcH6y5e.js} +33 -33
- package/dist/{Experience-Bq4ykqTJ.js → Experience-Q2NHpa-V.js} +32 -31
- package/dist/{FileSaver.min-BtBxrIBi.js → FileSaver.min-CKw2rn-J.js} +1 -1
- package/dist/{Game-DpLFmP-G.js → Game-lZvkg04z.js} +19 -18
- package/dist/{GiftCardSetup-BqOqEUim.js → GiftCardSetup-CPRju80_.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B06xj5q7.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-Ci686UoB.js} +7 -7
- package/dist/{Goals-DMlNeiUc.js → Goals-asGsUeVv.js} +4 -4
- package/dist/Grab-BjFLSMpE.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-DPWRgxG_.js → ImageInput.vue_vue_type_script_setup_true_lang-nk87zPWH.js} +1 -1
- package/dist/{Index-Cw07jj0k.js → Index-DIasPS4Y.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-CLjjquVP.js → LocationPicker.vue_vue_type_script_setup_true_lang-DkOn8p1v.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DHOShJQp.js → LottieAnimation.vue_vue_type_script_setup_true_lang-BdSkxiP-.js} +1 -1
- package/dist/{LoyaltyDashboard-DzSiK6M7.js → LoyaltyDashboard-DlCsZ3YX.js} +15 -15
- package/dist/{MainLayout-1EF680_j.js → MainLayout-DLObnTAA.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Df9pBgH9.js → MainLayout.vue_vue_type_script_setup_true_lang-DigSZKt1.js} +3 -3
- package/dist/{Marketing-T-epFsvG.js → Marketing-JflPW-w9.js} +4 -4
- package/dist/{MarketingMaterialEdit-CVhPfyEp.js → MarketingMaterialEdit-fSAB3YVb.js} +214 -211
- package/dist/{Member-BUZOPyQR.js → Member-CzNahXTj.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-zURjtl1z.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-bqWUIbMG.js} +40 -48
- package/dist/{MemberImportHistory-DGz9i6L7.js → MemberImportHistory--r_A_2Es.js} +7 -7
- package/dist/{MemberList-CNdSrzBa.js → MemberList-CQZQ4sN8.js} +103 -105
- package/dist/{MemberTransactions-CdQMuQsd.js → MemberTransactions-BPg9JaUA.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CWKVXeCa.js → MessageInput.vue_vue_type_script_setup_true_lang-BhIFChx-.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-xZitIoXE.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-CdGSNqEp.js} +1 -1
- package/dist/{Mission-CYxgMBPt.js → Mission-CYCB3YQc.js} +22 -21
- package/dist/{Overview-qZ1KKw9D.js → Overview-B5ylMBHT.js} +145 -144
- package/dist/{Overview-DSm8AfDB.js → Overview-DuNuUYYq.js} +21 -21
- package/dist/{Point-BGlbT9OK.js → Point-DG-Uwj25.js} +22 -21
- package/dist/{Promotion-CtlrUFa8.js → Promotion-DqxBQ1yO.js} +137 -131
- package/dist/{Queue-Dc_z9MKc.js → Queue-Cy8LGt_Y.js} +46 -46
- package/dist/{Record-DVKrhFwJ.js → Record-CzXbu41w.js} +9 -9
- package/dist/{Review-Bh8Tw_QU.js → Review-7VL6gIqp.js} +2 -2
- package/dist/ReviewFacebookCallback-BwzuPmrz.js +225 -0
- package/dist/{ReviewGoogleCallback-CsSCz_C5.js → ReviewGoogleCallback-1JXR_f5O.js} +5 -5
- package/dist/{Reward-DY1Q3m1w.js → Reward-BKhUDEu3.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-4A91EkSW.js → RewardGroup.vue_vue_type_script_setup_true_lang-DjjCytWF.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-Vg7pRGIz.js +1923 -0
- package/dist/{Segment-D6LchJFl.js → Segment-DdHDJhaS.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CSAtkMnJ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-9kGUkHMi.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Co1MQoVq.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DeFw0px7.js} +4 -4
- package/dist/{Setting-UkdSKiUb.js → Setting-DZKGXw-i.js} +17 -17
- package/dist/{SettingAdvertisements-DK97gcus.js → SettingAdvertisements-BBNs8tCw.js} +12 -12
- package/dist/Settings-9v0hnBJZ.js +286 -0
- package/dist/{Store-2VVStL5_.js → Store-C8IlE4IH.js} +29 -29
- package/dist/{StoreRewards-f3Pyb9hu.js → StoreRewards-DWygRLR1.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BmnyPSVT.js → StoreTransactions.vue_vue_type_script_setup_true_lang-CeYYws6P.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BiN3uRJ_.js +7007 -0
- package/dist/{Tier-D4Of9P17.js → Tier-7RoxGHsP.js} +2583 -688
- package/dist/{Title-Cg6X9UkB.js → Title-0q2Z4HIe.js} +96 -95
- package/dist/{Transaction-LJbjQnj_.js → Transaction-CFasERdg.js} +2 -2
- package/dist/{Upselling-B-VwbtjT.js → Upselling-DM9R6pYw.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DqH6Upx-.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-BDjwcgnc.js} +26 -26
- package/dist/{Voucher-BJG6VKXt.js → Voucher-BkzW2hVV.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-7kYeJthi.js → VoucherEditor.vue_vue_type_script_setup_true_lang-DaE4xa3x.js} +12 -12
- package/dist/{WhatsappAccount-Dc1fJWWj.js → WhatsappAccount-C3WpDF9O.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BV0Bsl7a.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BxC_3h52.js} +1 -1
- package/dist/{WhatsappBot-Coq1WP96.js → WhatsappBot-DZb-Dn3s.js} +6 -6
- package/dist/WhatsappBotLogs--KskC32Z.js +509 -0
- package/dist/WhatsappBotSettings-Dns_PqVE.js +945 -0
- package/dist/{WhatsappLayout-x9Ovpu6e.js → WhatsappLayout-NIrFGbId.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DZlT0uLW.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BfD5hHc7.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DSJncfI_.js → ZodTextField.vue_vue_type_script_setup_true_lang-CJGxy7gf.js} +2 -2
- package/dist/{app-BMFxxLUm.js → app-B9nLnoBt.js} +4497 -3667
- package/dist/app.js +4 -3
- package/dist/{base.export-LmQ51u5f.js → base.export-CBzNea0v.js} +2 -2
- package/dist/{business-DZWViiMC.js → business-aT2zslwu.js} +1 -1
- package/dist/{campaign-DZDGbR4W.js → campaign-B6nTwt17.js} +121 -94
- package/dist/{campaign-C9xvGyrL.js → campaign-BDCLKFwN.js} +31 -25
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Dx-Zo68Q.js} +2 -1
- package/dist/campaign.fn-Ck1t5C1T.js +776 -0
- package/dist/{collection.fn-DrNrla0B.js → collection.fn-CDna_VLD.js} +2 -2
- package/dist/{currency-BZv2gSlF.js → currency-Baum67Wz.js} +1 -1
- package/dist/duplicateCampaign-BwrMZgaV.js +51 -0
- package/dist/{effect-CvumfBMY.js → effect-CeJbflOK.js} +1 -1
- package/dist/{email-addresses-79tPeI4j.js → email-addresses-Y3vF73J0.js} +2 -2
- package/dist/{feature-flag-CYXnrECh.js → feature-flag-zn6Ql9tv.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-DFjsyjri.js → helper-DZvnn-yx.js} +1 -1
- package/dist/{index-CcCiEG6N.js → index-B20FfbEE.js} +1 -1
- package/dist/{index-DWZzsJHU.js → index-B22ojkMy.js} +2 -2
- package/dist/{index-I9lmcd2w.js → index-B3LCTMwV.js} +68 -54
- package/dist/{index-C43KoLej.js → index-B5H4znfe.js} +4 -4
- package/dist/{index-C5bC2n8X.js → index-BL2zQnXK.js} +3 -3
- package/dist/{index-MhAbTpBy.js → index-BYUEPfbP.js} +23 -23
- package/dist/{index-CA7oIW_T.js → index-BqniSMV6.js} +197 -197
- package/dist/{index-CAWnce4u.js → index-CDRTiAEu.js} +1 -1
- package/dist/{index-_-nCOZ1D.js → index-CMs3aIA6.js} +19 -6
- package/dist/{index-BiPRZRyE.js → index-CPi3Qwmj.js} +2699 -2613
- package/dist/{index-Ba1t5vQv.js → index-DCR1GFCA.js} +380 -234
- package/dist/{index-C6ZTa-eq.js → index-DHNhIloU.js} +1 -1
- package/dist/{index-CBd91xYU.js → index-DJIt5tXC.js} +7 -7
- package/dist/index-DXKJsqgW.js +104 -0
- package/dist/{index-CNzQ3FLi.js → index-DXyOBtgF.js} +1 -1
- package/dist/{index-Bnane9cm.js → index-Da0-7h2j.js} +1 -1
- package/dist/{index-C6Rx7pjc.js → index-DkBOM8za.js} +608 -251
- package/dist/{index-CW4rNV1_.js → index-FgM7b2Sw.js} +2 -2
- package/dist/{index-DZrX13oF.js → index-juXxYQ_a.js} +1314 -1242
- package/dist/{index-Bt-n8QuD.js → index-njg4JLa-.js} +9 -9
- package/dist/{index-B_8PAyia.js → index-r_T5o_hF.js} +2 -2
- package/dist/{index.esm2017-DtTjnHHc.js → index.esm2017-Dtk7BscN.js} +57 -57
- package/dist/{loading-DkqEFbrR.js → loading-PoODMkQD.js} +1 -1
- package/dist/{lodash-BxU_5gPB.js → lodash-TthNgH98.js} +1 -1
- package/dist/{member-import-B3NBqSF6.js → member-import-D7zs0Jvh.js} +22 -13
- package/dist/{membership-Dr5BxoL-.js → membership-Cab-iWQ1.js} +2 -2
- package/dist/{money-D58xuACG.js → money-9Q306M3g.js} +1 -1
- package/dist/{number-C9CiD5ci.js → number-D9M3D435.js} +1 -1
- package/dist/objectid-DKvQl6FD.js +145 -0
- package/dist/{onboarding-BssUSfGQ.js → onboarding-D5LKUHVI.js} +25 -25
- package/dist/{onboardingSetup-Dc_lD-K8.js → onboardingSetup-D0jsS6w5.js} +2 -2
- package/dist/{plugins-D7Xjefvk.js → plugins-CDTKQ1Pg.js} +3 -3
- package/dist/{reward-CACqYkQp.js → reward-De3e9vYS.js} +1 -1
- package/dist/{rule-BRaTrwKz.js → rule-trVJgEOe.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-Bj3Tb6bP.js +227 -0
- package/dist/{timezone-CgVEOC5i.js → timezone-DkuByUmb.js} +1 -1
- package/dist/{transaction.fn-C64l_ja_.js → transaction.fn-CPE-oQhA.js} +2 -2
- package/dist/{trigger-d2RIqXLt.js → trigger-C6oM-8pe.js} +9 -9
- package/dist/{useMarketingMaterialActions-Drf2MY9h.js → useMarketingMaterialActions-C5scdJQp.js} +4 -4
- package/dist/{usePagination-IUw34YLE.js → usePagination-CIuTHSSG.js} +1 -1
- package/dist/{user-ClGyYHyS.js → user-Bdlgn2yo.js} +1 -1
- package/dist/vue-i18n-DEpDI-dt.js +2365 -0
- package/dist/{xlsx-HvtVSofi.js → xlsx-CvecxUOG.js} +1 -1
- package/dist/{zod-IPdjFU_b.js → zod-bniyeWdY.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/WhatsappBotSettings-fNRFecJX.js +0 -704
- package/dist/campaign.fn-OVkj0QLu.js +0 -776
- 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
|
-
};
|