@feedmepos/mf-connect 0.1.127-prod → 0.1.128-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-BMF6m0GU.js → App-CPSC0ccq.js} +224 -216
- package/dist/AuditLogs-CgrYStwa.js +2016 -0
- package/dist/{Bin-Dkn-CjZE.js → Bin-Cn7sCPql.js} +8 -8
- package/dist/{Broadcast-DqaP4ON2.js → Broadcast-bR7HAyV2.js} +22 -21
- package/dist/{CampaignAnalytic-2Iuxh8-x.js → CampaignAnalytic-Dnpw_Jwo.js} +97 -97
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-C8MlNehK.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-HaWMLA4s.js} +9 -10
- package/dist/{Card-Cv9eldq8.js → Card-BE3Y0KHF.js} +23 -23
- package/dist/{Collections-CK-hxHpa.js → Collections-CLSp9Uah.js} +197 -185
- package/dist/{Credit-CDE4ACVm.js → Credit-DgMyKROt.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-CTvIDOWy.js → DateRangeChip.vue_vue_type_script_setup_true_lang-D8eCQE4D.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-BB2gszsG.js +4584 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CuPhm1uG.js → EffectSheet.vue_vue_type_style_index_0_lang-CXw7yS8N.js} +33 -33
- package/dist/{Experience-lLK_RR69.js → Experience-CCeRbvIe.js} +32 -31
- package/dist/{FileSaver.min-zDxJKfBO.js → FileSaver.min-D8Rw2VVN.js} +1 -1
- package/dist/{Game-DCdfJkil.js → Game-CYGg8vWQ.js} +19 -18
- package/dist/{GiftCardSetup-DfF1OpFk.js → GiftCardSetup-rzea90xr.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-Dbx9bwJM.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-BFUBfL-S.js} +140 -128
- package/dist/{Goals-t0wbcWxG.js → Goals-BnZfK7a3.js} +4 -4
- package/dist/Grab-BRbn6ffm.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-Bur6iCYa.js → ImageInput.vue_vue_type_script_setup_true_lang-Cw2imjlQ.js} +1 -1
- package/dist/{Index-BUF8U-h8.js → Index-DjZi_lVg.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-kIOc-Px5.js → LocationPicker.vue_vue_type_script_setup_true_lang-B1q4NtuM.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-DRmLpXsg.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CUjzbMcb.js} +1 -1
- package/dist/{LoyaltyDashboard-8laUXBGQ.js → LoyaltyDashboard-C3TZSSQz.js} +82 -82
- package/dist/{MainLayout-BeuKKVNP.js → MainLayout-uNGpBpJi.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-C7E3h_Zr.js → MainLayout.vue_vue_type_script_setup_true_lang-0PcswtGl.js} +3 -3
- package/dist/{Marketing-DZG0oIs-.js → Marketing-SXmxcw3-.js} +4 -4
- package/dist/{MarketingMaterialEdit--RDayaUN.js → MarketingMaterialEdit-DK0tjHpF.js} +214 -211
- package/dist/{Member-DeEQr2ef.js → Member-BFSwupq6.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dvcasf5O.js +1322 -0
- package/dist/{MemberImportHistory-DMXVl1qI.js → MemberImportHistory-z12l_IAQ.js} +7 -7
- package/dist/{MemberList-zqeFDkEZ.js → MemberList-DfN7ur0J.js} +103 -105
- package/dist/{MemberTransactions-BBQPNfFG.js → MemberTransactions-Bntt4bRR.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-C_8yL5GL.js → MessageInput.vue_vue_type_script_setup_true_lang-ComtYItw.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-9r-eGARm.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-_Imnj16x.js} +1 -1
- package/dist/{Mission-TO8w3ucB.js → Mission-CvpeYVjB.js} +22 -21
- package/dist/{Overview-CPUpEzPd.js → Overview-BkaFC5La.js} +21 -21
- package/dist/{Overview-D6YBYVxK.js → Overview-BtTkltlY.js} +145 -144
- package/dist/{Point-BSq4CRcb.js → Point-CpNAFABM.js} +22 -21
- package/dist/{Promotion-DgPNNfk7.js → Promotion-B_vD_9UF.js} +137 -131
- package/dist/{Queue-CYyabVYT.js → Queue-D5jDhI0f.js} +46 -46
- package/dist/{Record-n7s29IZH.js → Record-EsNXzy4D.js} +9 -9
- package/dist/{Review-DIYulCVl.js → Review-ByMrkymf.js} +2 -2
- package/dist/ReviewFacebookCallback-BDl6NBkw.js +225 -0
- package/dist/{ReviewGoogleCallback-CnESXIH-.js → ReviewGoogleCallback-BzU-hUy5.js} +5 -5
- package/dist/{Reward-D_L2DgT9.js → Reward-kxAuVGDE.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Dsk2VqB8.js → RewardGroup.vue_vue_type_script_setup_true_lang-i9B1R3XP.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-D3MZsh4A.js +1923 -0
- package/dist/{Segment-BbGE6AOZ.js → Segment-C5SJs7al.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-xrdOyWX8.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-RIerABcb.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CTsORsDg.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8jS4gee.js} +4 -4
- package/dist/{Setting-B9i2ufr7.js → Setting-zmlu3QcR.js} +17 -17
- package/dist/{SettingAdvertisements-Cuczz1wK.js → SettingAdvertisements-DewXGZoE.js} +12 -12
- package/dist/Settings-5HU_uY6B.js +286 -0
- package/dist/{Store-CoxREXJ-.js → Store-CiTwDcgr.js} +29 -29
- package/dist/{StoreRewards-CzkznvA1.js → StoreRewards-DaOJxsVm.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-BtwDM2Fr.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BTqxeKR4.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-DlFCI1BT.js +7007 -0
- package/dist/{Tier-DyOlzjE0.js → Tier-lNI7GWMP.js} +2583 -688
- package/dist/{Title-C3__B-bw.js → Title-CDxDztnl.js} +96 -95
- package/dist/{Transaction-B_v-lbed.js → Transaction-CcsUvIns.js} +2 -2
- package/dist/{Upselling-D_5nBzIN.js → Upselling-BDirPkWX.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CE5eo992.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-hqzfBpop.js} +26 -26
- package/dist/{Voucher-KxXwge4O.js → Voucher-CJDo5U_P.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-nbLXmJ5Q.js → VoucherEditor.vue_vue_type_script_setup_true_lang-WjsLHh_E.js} +12 -12
- package/dist/{WhatsappAccount-C8kinTmg.js → WhatsappAccount-CQBti7RJ.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-ydBfMtzM.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DVNZ774z.js} +1 -1
- package/dist/WhatsappBot-91lIlikm.js +882 -0
- package/dist/{WhatsappBotLogs-Dm0HJh_f.js → WhatsappBotLogs-PQTwT8e5.js} +66 -66
- package/dist/{WhatsappBotSettings-BNZcj26j.js → WhatsappBotSettings-CUES9UL-.js} +5 -5
- package/dist/{WhatsappLayout-BvBN7H-y.js → WhatsappLayout-pZGYJj0J.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-BzKwTs9R.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DAoonwsO.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-BY8t6jtW.js → ZodTextField.vue_vue_type_script_setup_true_lang-HEIeZYCP.js} +2 -2
- package/dist/{app-uud8OgB9.js → app--pRyBODF.js} +4159 -3395
- package/dist/app.js +4 -3
- package/dist/{base.export-Bfxt84QY.js → base.export-CSdCmt-6.js} +2 -2
- package/dist/business-BtEfH8Mt.js +83 -0
- package/dist/{campaign-CWyU-r8u.js → campaign-CwQjWU63.js} +121 -94
- package/dist/{campaign-6WrFDF05.js → campaign-t9ubUkjB.js} +31 -25
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-Damu7hgo.js} +3 -2
- package/dist/campaign.fn-D3_OzyyQ.js +776 -0
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-C8LbgIQ7.js} +1 -1
- package/dist/{collection.fn-CO-YhhUM.js → collection.fn-BV7pDqa5.js} +2 -2
- package/dist/{currency-kWhKZnhN.js → currency-pS0xeJA6.js} +1 -1
- package/dist/duplicateCampaign-19CDT2kM.js +51 -0
- package/dist/{effect-CjSyUbur.js → effect-B532leFF.js} +1 -1
- package/dist/{email-addresses-C_yrJd12.js → email-addresses-CKkT_5O5.js} +2 -2
- package/dist/{feature-flag-DcM82jeJ.js → feature-flag-25oDCLLB.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-G8MwkrFo.js → helper-DxOj04aq.js} +1 -1
- package/dist/{index-3axft-Vz.js → index-B3sR1LMa.js} +10 -10
- package/dist/{index-ivVytFih.js → index-BCgTcZ7c.js} +609 -252
- package/dist/{index-BXSokNlS.js → index-BFJ2FmB4.js} +18 -18
- package/dist/{index-CiFPNxgn.js → index-BHnMLtU2.js} +381 -235
- package/dist/{index-6Ey495tl.js → index-BLRv_4gJ.js} +1 -1
- package/dist/index-BViMt33t.js +10767 -0
- package/dist/{index-Dv5Ja20d.js → index-BX6lcJDB.js} +1 -1
- package/dist/{index-CVVLKJj_.js → index-C6pr4oIv.js} +1315 -1243
- package/dist/{index-Dkud56R0.js → index-C7wVaeC1.js} +1 -1
- package/dist/{index-DgT4P2_R.js → index-CBYY3VEG.js} +2700 -2614
- package/dist/{index-sPf1Rhez.js → index-C_qmnOKQ.js} +9 -9
- package/dist/{index-CqvjZF-j.js → index-ClD2-18P.js} +19 -6
- package/dist/{index-h2p2DjKy.js → index-DBT1f1M3.js} +2 -2
- package/dist/{index-BNjHmUyd.js → index-DBzCfWxW.js} +2 -2
- package/dist/{index-Cj85mCmr.js → index-DEENB4la.js} +664 -664
- package/dist/{index-B3LCTMwV.js → index-DSAEs8u0.js} +68 -60
- package/dist/{index-L_2hhvso.js → index-DVlo0TO9.js} +23 -23
- package/dist/index-DiYuhtNS.js +19528 -0
- package/dist/{index-Ba4Q_XWF.js → index-Diw9710S.js} +4 -4
- package/dist/{index-CxyO5j1a.js → index-DqQ1q8sX.js} +26 -19
- package/dist/{index-RtamQHhy.js → index-ip2EqUEW.js} +1 -1
- package/dist/{index-DGrPvdRc.js → index-uCkkfjE3.js} +4 -4
- package/dist/{index.esm2017-DiUbRDfz.js → index.esm2017-DRrIFPLo.js} +57 -57
- package/dist/{loading-BdpH3z-q.js → loading--SZI7Tpo.js} +1 -1
- package/dist/{lodash-DcC4G06s.js → lodash-BZqvXM_P.js} +1 -1
- package/dist/{member-import-C99OxU-w.js → member-import-Bmt1OdRW.js} +2 -2
- package/dist/{membership-O5EN0QMl.js → membership-BTFpH7Mg.js} +3 -3
- package/dist/{money-CYS7zoiT.js → money-BVtlYyxo.js} +1 -1
- package/dist/{number-D_C66osx.js → number-DrOdGSrF.js} +1 -1
- package/dist/objectid-DdJFC6TI.js +145 -0
- package/dist/{onboarding-DGx34lkW.js → onboarding-BjcSBC8v.js} +25 -25
- package/dist/{onboardingSetup-ALOoxDHE.js → onboardingSetup-Dcv8i8qd.js} +2 -2
- package/dist/{plugins-CVh8eTG-.js → plugins-Iw52rJ1s.js} +3 -3
- package/dist/{reward-8sP3d8ie.js → reward-DF9tE7iA.js} +1 -1
- package/dist/{rule-BGMBiCRZ.js → rule-rCPhlgAq.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-v1F1rvUU.js +227 -0
- package/dist/timezone-BxJDy-bY.js +19 -0
- package/dist/{transaction.fn-Dmla3R1q.js → transaction.fn-Cp3ylqFD.js} +2 -2
- package/dist/{trigger-CArDddXr.js → trigger-O6JvCms4.js} +9 -9
- package/dist/{useMarketingMaterialActions-BX5Ynq8O.js → useMarketingMaterialActions-Cnadk3AO.js} +4 -4
- package/dist/{usePagination-BdgLVPuo.js → usePagination-C5lSxdqt.js} +1 -1
- package/dist/{user-BgTKHjea.js → user-B7iv0TRE.js} +1 -1
- package/dist/vue-i18n-CYFvlTTS.js +2365 -0
- package/dist/{xlsx-WIRNQZAx.js → xlsx-DTJ6bUKL.js} +166 -166
- package/dist/{zod-Dh_CVWJN.js → zod-cIIx_Ng9.js} +1 -1
- package/package.json +7 -3
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DUJKivXA.js +0 -3638
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Dmf4WtSt.js +0 -1308
- package/dist/ReviewFacebookCallback-D07x5BnV.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-BjyiiTSY.js +0 -1884
- package/dist/Settings-CCSXjpUC.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-tSfwcDBG.js +0 -142
- package/dist/WhatsappBot-BuD45ou8.js +0 -878
- package/dist/business-77FEeeil.js +0 -82
- package/dist/campaign.fn-Ci_av9lZ.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-BqHB3euS.js +0 -27551
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/objectid-Dd0NRad7.js +0 -145
- package/dist/rule-builder-DcPK2oqo.js +0 -102
- package/dist/template-Bku-aSPA.js +0 -275
- package/dist/timezone-DML8BuIK.js +0 -20
- package/dist/vue-i18n-DMEbesBm.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-BdpH3z-q.js";
|
|
3
|
-
import { u as M } from "./business-77FEeeil.js";
|
|
4
|
-
import { components as f, useSnackbar as W } from "@feedmepos/ui-library";
|
|
5
|
-
import { u as R } from "./vue-i18n-DMEbesBm.js";
|
|
6
|
-
import { g as j } from "./google-C3S8u0mT.js";
|
|
7
|
-
import { R as D } from "./app-uud8OgB9.js";
|
|
8
|
-
import { useRouter as H } from "vue-router";
|
|
9
|
-
import { r as h } from "./index-sPf1Rhez.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-77FEeeil.js";
|
|
3
|
-
import { u as D } from "./vue-i18n-DMEbesBm.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
|
-
};
|