@feedmepos/mf-connect 0.1.98-beta.83 → 0.1.98-beta.85
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/README.md +9 -1
- package/dist/{App-DoYDNru4.js → App-BxA547CP.js} +409 -403
- package/dist/{AuditLogs-qHYp6lM4.js → AuditLogs-DjsuO-ou.js} +13 -13
- package/dist/{Bin-CJvPHkvE.js → Bin-Cp1JuoPV.js} +8 -8
- package/dist/{Broadcast-D6ECVLby.js → Broadcast-C-dZ7I7J.js} +12 -12
- package/dist/{CampaignAnalytic-DbAO0BOB.js → CampaignAnalytic-CeJrlblr.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-UnagFqxE.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DNshyt4k.js} +8 -8
- package/dist/{Card-DbQcw0mC.js → Card-BRkDbHgP.js} +23 -23
- package/dist/{Collections-BFStwoAg.js → Collections-KGkn4jVg.js} +8 -8
- package/dist/{Credit-BVFgG__U.js → Credit-CYtdA8LR.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-DXrDsiLw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B_GGXmKj.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BBTJuWd_.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CC84YrQj.js} +36 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCWbz73-.js → EffectSheet.vue_vue_type_style_index_0_lang-Y8euxc9u.js} +6 -6
- package/dist/{Experience-CK_YnT2w.js → Experience-DyCWhTIc.js} +13 -13
- package/dist/{FileSaver.min-CawPE0hc.js → FileSaver.min-sifwJvOC.js} +1 -1
- package/dist/{Game-DrYm5UCq.js → Game-D2dtBGMx.js} +13 -13
- package/dist/{GiftCardSetup-CeB4uHzh.js → GiftCardSetup-4_wPeuGx.js} +73 -61
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DRyzcwuk.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DaXZiLCz.js} +7 -7
- package/dist/{Goals-DDssCeP8.js → Goals-BZriqe6a.js} +4 -4
- package/dist/{Grab-BruNklz5.js → Grab-DE43gcBH.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-JIeTaPKV.js → ImageInput.vue_vue_type_script_setup_true_lang-BSmoRIp3.js} +1 -1
- package/dist/{Index-Qk1esxkY.js → Index-3-__a-F8.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dblb8rtE.js → LocationPicker.vue_vue_type_script_setup_true_lang-DMFmuJHS.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-XepGx2h_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-aCBsAVgf.js} +1 -1
- package/dist/{LoyaltyDashboard-VxKYWHoz.js → LoyaltyDashboard-BxqVkHWZ.js} +24 -23
- package/dist/MainLayout-VDwSL1-n.js +4 -0
- package/dist/{MainLayout-P6XTHUGB.js → MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js} +4 -4
- package/dist/{Marketing-CTYdcJfZ.js → Marketing-BkTXd2kV.js} +4 -4
- package/dist/{MarketingMaterialEdit-D-1tqOR_.js → MarketingMaterialEdit-DCmGVhn1.js} +6 -6
- package/dist/{Member-Dxuq4ZCO.js → Member-BZ-cZyCC.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-vIdcxago.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DeRvNRsk.js} +24 -24
- package/dist/{MemberImportHistory-DcofsjnB.js → MemberImportHistory-CunTfazI.js} +7 -7
- package/dist/{MemberList-DQ7MGqA_.js → MemberList-H8H9xzMg.js} +14 -14
- package/dist/{MemberTransactions--5lBgWBw.js → MemberTransactions-B1GTs17R.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-DHst8mwG.js → MessageInput.vue_vue_type_script_setup_true_lang-C2K_acoB.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Bb-tOtHg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BCRSJoq7.js} +1 -1
- package/dist/{Mission-C77jQ0ak.js → Mission-CNXUBVI4.js} +14 -14
- package/dist/{Overview-B4G2MVEP.js → Overview-CiIMyx-_.js} +21 -21
- package/dist/{Overview-BTDsp_z4.js → Overview-CwoDIRXD.js} +4 -4
- package/dist/{Point-CcU9cSwd.js → Point-BpFvqe5M.js} +14 -14
- package/dist/{Promotion-BWUpBOOf.js → Promotion-DwcxXXS3.js} +14 -14
- package/dist/{Queue-BrMy2YTd.js → Queue-CI9PtRqs.js} +13 -13
- package/dist/{Record-CeK0K1Yl.js → Record-Cl73WIoN.js} +9 -9
- package/dist/{Review-C3rRbudC.js → Review-BQL9TzxZ.js} +2 -2
- package/dist/{ReviewFacebookCallback-DrDIi4eL.js → ReviewFacebookCallback-BVcW6zNJ.js} +5 -5
- package/dist/{ReviewGoogleCallback-BXQeRqiH.js → ReviewGoogleCallback-peKv_-nP.js} +5 -5
- package/dist/{Reward-nBH1xNNR.js → Reward-6rLOoOkv.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-uBaqphhg.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZ2OWRik.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DmPpapkp.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7GKzELx.js} +15 -15
- package/dist/{Segment-B3pAFkuH.js → Segment-DnrCf_-F.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bz13JYlQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyYWf2RR.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Ct8y-moB.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C-GxdVOH.js} +4 -4
- package/dist/{Setting-NGYZe9J1.js → Setting-BlU3XioB.js} +14 -14
- package/dist/{SettingAdvertisements-9N8x4lIo.js → SettingAdvertisements-CW9KUQAk.js} +12 -12
- package/dist/{Settings-BKJBdYbG.js → Settings-DfKCItWN.js} +5 -5
- package/dist/{Store-CnMsvn0G.js → Store-Dh90RjUg.js} +780 -771
- package/dist/{StoreRewards-B0DPGAEq.js → StoreRewards-BmEJZR1O.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-D__oi--Z.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C-Efc4SV.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-BRJIcmLs.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bv0_e1wk.js} +2 -2
- package/dist/{Tier-DFn6wpLy.js → Tier-C7EiLGJW.js} +27 -27
- package/dist/{Title-BeM9d4fj.js → Title-DPf-0vrF.js} +23 -23
- package/dist/{Transaction-DXIDbCJV.js → Transaction-DsAk9Gb9.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CcoMCIWr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Csojc1fI.js} +6 -6
- package/dist/{Voucher-D18h9vy8.js → Voucher-BKp9CMMe.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Dyzo3qNu.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cpn8legF.js} +12 -12
- package/dist/WhatsappAccount-DjAL89Re.js +342 -0
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D25DVRXA.js +97 -0
- package/dist/WhatsappBot-CSy_Z1bz.js +581 -0
- package/dist/{WhatsappBotSettings-DPBqHZXW.js → WhatsappBotSettings-CxcuCZ-V.js} +4 -4
- package/dist/WhatsappBotTickets-DS7_jaE3.js +162 -0
- package/dist/WhatsappLayout-Db3329On.js +21 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-DL7rIl_N.js → ZodTextField.vue_vue_type_script_setup_true_lang-D6Z-3QOR.js} +2 -2
- package/dist/{app-DqMmw6WJ.js → app-BiUEivOU.js} +74 -69
- package/dist/app.js +1 -1
- package/dist/{base.export-BoqiarPy.js → base.export-Bvf3GR9p.js} +2 -2
- package/dist/{business-CcxL-gF3.js → business-DgmJwclv.js} +5 -5
- package/dist/{campaign-BE2lgjRF.js → campaign-C9TU71PO.js} +8 -8
- package/dist/{campaign-MBz26iMH.js → campaign-DxjYod5y.js} +2 -2
- package/dist/{campaign.fn-D5LT2U39.js → campaign.fn-BGdwcW0r.js} +116 -116
- package/dist/{collection.fn-CpJyr6Y_.js → collection.fn-B9t79SwE.js} +2 -2
- package/dist/{currency-kViea7ZW.js → currency-K9kgZvJm.js} +1 -1
- package/dist/{duplicateCampaign-DwFhnGNW.js → duplicateCampaign-CLeVibNm.js} +2 -2
- package/dist/{effect-OEQJ_NOd.js → effect-Bj5p3FOF.js} +1 -1
- package/dist/{email-addresses-BiqNmeSY.js → email-addresses-CUpmh5j3.js} +2 -2
- package/dist/feature-flag-Dfon0BoK.js +18 -0
- package/dist/{helper-qe6OtfMQ.js → helper-iVOlqZr5.js} +1 -1
- package/dist/{index-C4tRz5aW.js → index-BIqP1bQh.js} +2 -2
- package/dist/{index-DNLDqugg.js → index-BRk5I8NE.js} +1 -1
- package/dist/{index-BCVOoMJ1.js → index-C57WFxg7.js} +2 -2
- package/dist/{index-CDL5im4n.js → index-C641kFzY.js} +1 -1
- package/dist/{index-DWW4rV5u.js → index-CGctGLsw.js} +1 -1
- package/dist/{index-BjJnzBgb.js → index-COB25nai.js} +583 -576
- package/dist/{index-IdvPib7v.js → index-CedoUPYn.js} +2 -2
- package/dist/index-Cfr0vxa5.js +1775 -0
- package/dist/{index-BCXUZHQr.js → index-Cq0kWJ_W.js} +2 -2
- package/dist/{index-uxpFoeBR.js → index-D6CbkBm6.js} +3 -3
- package/dist/{index-B2JXMepI.js → index-DAcwqenP.js} +7 -7
- package/dist/{index-B6mE0q8e.js → index-DJQVYP1Z.js} +1 -1
- package/dist/{index-CM0g-9-V.js → index-DUr59xHS.js} +2 -2
- package/dist/{index-CnHeoO9f.js → index-DXNB9FHg.js} +2 -2
- package/dist/{index-DopAV1p0.js → index-DgkRREfK.js} +18 -14
- package/dist/{index-C01w59Sf.js → index-Dhd9eEjz.js} +1 -1
- package/dist/{index-DCO-4L0t.js → index-FcdiLtUc.js} +9 -9
- package/dist/{index-B5-ebn1k.js → index-HctLGyyi.js} +4 -4
- package/dist/{index-DSkhLfAT.js → index-MVfpQsRI.js} +4 -3
- package/dist/{index-DZIBSUS_.js → index-YV22ZWWA.js} +2 -2
- package/dist/{index-BivO-FMW.js → index-dEfSQ43r.js} +1 -1
- package/dist/{index-CXafRDRN.js → index-onmieavP.js} +5975 -7746
- package/dist/{index.esm2017-JBUZVF0b.js → index.esm2017-BUZxOBD5.js} +1 -1
- package/dist/{loading-BWIBiviO.js → loading-D3jN17Xy.js} +1 -1
- package/dist/{lodash-BzPqU7SK.js → lodash-DvKbipfn.js} +1 -1
- package/dist/{member-import-Bf5_v2rw.js → member-import-BuytQk0w.js} +1 -1
- package/dist/{membership-D_wss7NM.js → membership-Beh_I5Kj.js} +2 -2
- package/dist/{money-Bh3-N1sf.js → money-C3v95tda.js} +1 -1
- package/dist/{number-BbQ0fzK1.js → number-Cc7Yq2nP.js} +1 -1
- package/dist/{objectid-DXuwIDWq.js → objectid-fKMrrct7.js} +9 -9
- package/dist/{onboarding-DspO-Me0.js → onboarding-DJgY8HJr.js} +3 -3
- package/dist/{onboardingSetup-MufLiFPA.js → onboardingSetup-DJJLdr11.js} +2 -2
- package/dist/{plugins-JFwonds1.js → plugins-CcGeLF_l.js} +3 -3
- package/dist/{reward-DgsTibBz.js → reward-4aAVrRc8.js} +1 -1
- package/dist/{rule-C9wt-ChP.js → rule-D6x2GyGw.js} +10 -10
- package/dist/style.css +1 -1
- package/dist/{template-DelWr_nw.js → template-Dafdx5YI.js} +6 -6
- package/dist/{timezone-tn-KM65h.js → timezone-BDIlVTOp.js} +1 -1
- package/dist/{transaction.fn-n9smufaW.js → transaction.fn-CBVylmzu.js} +2 -2
- package/dist/{trigger-C26nxLCh.js → trigger-ChNg0oG9.js} +5 -5
- package/dist/{useMarketingMaterialActions-IM2MsMTk.js → useMarketingMaterialActions-LSsbTrFn.js} +3 -3
- package/dist/{usePagination-Dtz2hc5n.js → usePagination-CqPRf6q3.js} +1 -1
- package/dist/{user-BkwDIIp3.js → user-6kqmEFbR.js} +1 -1
- package/dist/{vue-i18n-Dnb3kew0.js → vue-i18n-BJ_ZHWvK.js} +314 -314
- package/dist/{xlsx-be-7IH2e.js → xlsx-CWXvmWqg.js} +1 -1
- package/dist/{zod-CAhiOJ1R.js → zod-DBefBbjY.js} +1 -1
- package/package.json +1 -1
- package/dist/WhatsappAccount-Be38M23T.js +0 -325
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBS9_rbY.js +0 -80
- package/dist/WhatsappBot-lyaORqV6.js +0 -561
- package/dist/WhatsappBotTickets-D_3v1pKU.js +0 -153
|
@@ -1,561 +0,0 @@
|
|
|
1
|
-
import { defineComponent as R, ref as w, computed as H, watch as L, onBeforeUnmount as K, resolveComponent as y, openBlock as n, createElementBlock as f, createElementVNode as t, normalizeClass as U, unref as e, toDisplayString as l, createBlock as C, withCtx as I, createTextVNode as z, createVNode as A, createCommentVNode as O, withModifiers as ae, Fragment as Q, renderList as Y, useModel as se, mergeProps as le, createSlots as re } from "vue";
|
|
2
|
-
import { u as G } from "./vue-i18n-Dnb3kew0.js";
|
|
3
|
-
import { useRouter as ce } from "vue-router";
|
|
4
|
-
import { S as j } from "./index-CXafRDRN.js";
|
|
5
|
-
import { w as M } from "./index-BCXUZHQr.js";
|
|
6
|
-
import { u as ie, _ as pe, w as ue } from "./WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBS9_rbY.js";
|
|
7
|
-
import { R as k } from "./app-DqMmw6WJ.js";
|
|
8
|
-
import { b as de } from "./browser-BSAOEeIM.js";
|
|
9
|
-
const me = { class: "flex items-center gap-[12px]" }, fe = { class: "min-w-0 flex-1" }, xe = ["title"], ve = { key: 1 }, he = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary break-all" }, _e = { class: "relative z-10 flex shrink-0 items-center gap-[12px]" }, ge = ["aria-label", "title", "disabled", "aria-busy"], be = { class: "flex items-center justify-between flex-wrap gap-[8px] border-t border-fm-color-neutral-gray-100 pt-[12px]" }, ye = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "text-[12px] text-fm-color-typo-secondary"
|
|
12
|
-
}, we = {
|
|
13
|
-
key: 0,
|
|
14
|
-
role: "alert",
|
|
15
|
-
class: "text-[14px] text-fm-color-typo-error"
|
|
16
|
-
}, Be = /* @__PURE__ */ R({
|
|
17
|
-
__name: "WhatsappAccountCard",
|
|
18
|
-
props: {
|
|
19
|
-
account: {}
|
|
20
|
-
},
|
|
21
|
-
emits: ["removed"],
|
|
22
|
-
setup(F, { emit: i }) {
|
|
23
|
-
const a = F, x = i, { t: u, locale: p } = G(), r = w(!1), v = w("");
|
|
24
|
-
let d;
|
|
25
|
-
const { name: $, phoneNumber: P, initials: g, state: E, avatarColor: W } = ie(
|
|
26
|
-
() => a.account
|
|
27
|
-
), m = H(() => E.value === "connected"), c = H(() => ({
|
|
28
|
-
name: k["$connect-WHATSAPP_ACCOUNT"],
|
|
29
|
-
params: { clientId: a.account.clientId }
|
|
30
|
-
}));
|
|
31
|
-
function h(V) {
|
|
32
|
-
return new Intl.DateTimeFormat(p.value, {
|
|
33
|
-
year: "numeric",
|
|
34
|
-
month: "short",
|
|
35
|
-
day: "numeric"
|
|
36
|
-
}).format(new Date(V));
|
|
37
|
-
}
|
|
38
|
-
async function _() {
|
|
39
|
-
if (r.value) return;
|
|
40
|
-
const V = j.getBusinessId();
|
|
41
|
-
if (!V) {
|
|
42
|
-
v.value = u("connect.whatsappBot.errors.selectBusiness");
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
const b = a.account.clientId, B = new AbortController();
|
|
46
|
-
d = B, r.value = !0, v.value = "";
|
|
47
|
-
try {
|
|
48
|
-
await M.deleteClient(V, b, B.signal), B.signal.aborted || x("removed", b);
|
|
49
|
-
} catch {
|
|
50
|
-
B.signal.aborted || (v.value = u("connect.whatsappBot.errors.removeAccount"));
|
|
51
|
-
} finally {
|
|
52
|
-
d === B && (d = void 0, r.value = !1);
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
function S() {
|
|
56
|
-
d == null || d.abort(), d = void 0, r.value = !1, v.value = "";
|
|
57
|
-
}
|
|
58
|
-
return L(() => j.getBusinessId(), S), K(S), (V, b) => {
|
|
59
|
-
const B = y("RouterLink"), s = y("FmIcon"), o = y("FmCircularProgress");
|
|
60
|
-
return n(), f("li", null, [
|
|
61
|
-
t("div", {
|
|
62
|
-
class: U(["relative h-full border border-fm-color-neutral-gray-100 rounded-[16px] p-[20px] flex flex-col gap-[16px] bg-fm-color-neutral-white text-fm-color-typo-primary", {
|
|
63
|
-
"cursor-pointer transition-shadow hover:border-fm-color-neutral-gray-200 hover:fm-shadow-light-100": m.value
|
|
64
|
-
}])
|
|
65
|
-
}, [
|
|
66
|
-
t("div", me, [
|
|
67
|
-
t("div", {
|
|
68
|
-
"aria-hidden": "true",
|
|
69
|
-
class: U(["w-[48px] h-[48px] rounded-full shrink-0 flex items-center justify-center text-[16px] font-semibold text-fm-color-typo-white", e(W)])
|
|
70
|
-
}, l(e(g)), 3),
|
|
71
|
-
t("div", fe, [
|
|
72
|
-
t("h2", {
|
|
73
|
-
class: "text-[16px] leading-[24px] font-semibold truncate",
|
|
74
|
-
title: e($)
|
|
75
|
-
}, [
|
|
76
|
-
m.value ? (n(), C(B, {
|
|
77
|
-
key: 0,
|
|
78
|
-
to: c.value,
|
|
79
|
-
class: "text-inherit no-underline after:absolute after:inset-0 after:rounded-[16px] focus-visible:outline-none focus-visible:after:ring-[2px] focus-visible:after:ring-fm-color-primary focus-visible:after:ring-offset-[2px]"
|
|
80
|
-
}, {
|
|
81
|
-
default: I(() => [
|
|
82
|
-
z(l(e($)), 1)
|
|
83
|
-
]),
|
|
84
|
-
_: 1
|
|
85
|
-
}, 8, ["to"])) : (n(), f("span", ve, l(e($)), 1))
|
|
86
|
-
], 8, xe),
|
|
87
|
-
t("p", he, l(e(P)), 1)
|
|
88
|
-
]),
|
|
89
|
-
t("div", _e, [
|
|
90
|
-
m.value ? (n(), C(B, {
|
|
91
|
-
key: 0,
|
|
92
|
-
to: c.value,
|
|
93
|
-
"aria-label": e(u)("connect.common.edit"),
|
|
94
|
-
title: e(u)("connect.common.edit"),
|
|
95
|
-
class: "w-[32px] h-[32px] flex items-center justify-center rounded-[8px] text-fm-color-typo-tertiary no-underline transition-colors hover:bg-fm-color-neutral-gray-100 hover:text-fm-color-typo-primary focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
|
|
96
|
-
}, {
|
|
97
|
-
default: I(() => [
|
|
98
|
-
A(s, {
|
|
99
|
-
name: "edit",
|
|
100
|
-
size: "sm",
|
|
101
|
-
outline: "",
|
|
102
|
-
"aria-hidden": "true"
|
|
103
|
-
})
|
|
104
|
-
]),
|
|
105
|
-
_: 1
|
|
106
|
-
}, 8, ["to", "aria-label", "title"])) : O("", !0),
|
|
107
|
-
t("button", {
|
|
108
|
-
type: "button",
|
|
109
|
-
"aria-label": e(u)("connect.common.remove"),
|
|
110
|
-
title: e(u)("connect.common.remove"),
|
|
111
|
-
disabled: r.value,
|
|
112
|
-
"aria-busy": r.value,
|
|
113
|
-
class: "w-[32px] h-[32px] flex items-center justify-center rounded-[8px] text-fm-color-typo-tertiary transition-colors hover:bg-fm-color-system-error-100 hover:text-fm-color-typo-error focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary disabled:cursor-wait disabled:opacity-50",
|
|
114
|
-
onClick: ae(_, ["stop"])
|
|
115
|
-
}, [
|
|
116
|
-
r.value ? (n(), C(o, {
|
|
117
|
-
key: 0,
|
|
118
|
-
size: "md",
|
|
119
|
-
"aria-hidden": "true"
|
|
120
|
-
})) : (n(), C(s, {
|
|
121
|
-
key: 1,
|
|
122
|
-
name: "delete",
|
|
123
|
-
size: "sm",
|
|
124
|
-
outline: "",
|
|
125
|
-
"aria-hidden": "true"
|
|
126
|
-
}))
|
|
127
|
-
], 8, ge)
|
|
128
|
-
])
|
|
129
|
-
]),
|
|
130
|
-
t("div", be, [
|
|
131
|
-
A(pe, { state: e(E) }, null, 8, ["state"]),
|
|
132
|
-
m.value && F.account.connectedAt ? (n(), f("span", ye, l(e(u)("connect.whatsappBot.connectedSince", {
|
|
133
|
-
date: h(F.account.connectedAt)
|
|
134
|
-
})), 1)) : O("", !0)
|
|
135
|
-
]),
|
|
136
|
-
v.value ? (n(), f("p", we, l(v.value), 1)) : O("", !0)
|
|
137
|
-
], 2)
|
|
138
|
-
]);
|
|
139
|
-
};
|
|
140
|
-
}
|
|
141
|
-
}), Te = { class: "mt-[24px] grid grid-cols-[repeat(auto-fill,minmax(280px,1fr))] xs:grid-cols-1 gap-[16px]" }, ke = /* @__PURE__ */ R({
|
|
142
|
-
__name: "WhatsappAccountList",
|
|
143
|
-
props: {
|
|
144
|
-
accounts: {}
|
|
145
|
-
},
|
|
146
|
-
emits: ["removed"],
|
|
147
|
-
setup(F, { emit: i }) {
|
|
148
|
-
const a = i;
|
|
149
|
-
return (x, u) => (n(), f("ul", Te, [
|
|
150
|
-
(n(!0), f(Q, null, Y(F.accounts, (p) => (n(), C(Be, {
|
|
151
|
-
key: p.clientId,
|
|
152
|
-
account: p,
|
|
153
|
-
onRemoved: u[0] || (u[0] = (r) => a("removed", r))
|
|
154
|
-
}, null, 8, ["account"]))), 128))
|
|
155
|
-
]));
|
|
156
|
-
}
|
|
157
|
-
}), Ae = { class: "text-[18px] font-semibold" }, Ce = {
|
|
158
|
-
key: 0,
|
|
159
|
-
role: "status",
|
|
160
|
-
class: "flex flex-col items-center text-center gap-[8px] px-[8px] py-[40px]"
|
|
161
|
-
}, $e = { class: "text-[18px] font-semibold" }, Pe = { class: "text-[14px] text-fm-color-typo-secondary break-all" }, Se = {
|
|
162
|
-
key: 1,
|
|
163
|
-
class: "grid grid-cols-[minmax(0,1fr)_232px] xs:grid-cols-1 gap-[32px] p-[8px] xs:p-[0px]"
|
|
164
|
-
}, Ie = { class: "flex flex-col gap-[20px] text-[14px] leading-[20px]" }, Fe = { class: "text-fm-color-typo-secondary" }, Ee = { class: "flex flex-col gap-[14px]" }, We = { class: "w-[22px] h-[22px] shrink-0 rounded-full bg-fm-color-neutral-gray-100 flex items-center justify-center text-[12px] font-semibold" }, Ve = { key: 0 }, De = { class: "font-semibold" }, Ne = { class: "font-semibold" }, Oe = { class: "font-semibold" }, je = { class: "font-semibold" }, He = { key: 3 }, Me = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, Re = { class: "relative w-[232px] h-[232px] xs:justify-self-center border border-fm-color-neutral-gray-100 rounded-xl flex items-center justify-center overflow-hidden" }, Le = {
|
|
165
|
-
key: 0,
|
|
166
|
-
role: "status",
|
|
167
|
-
class: "flex flex-col items-center gap-[12px] text-[13px]"
|
|
168
|
-
}, Ue = {
|
|
169
|
-
key: 1,
|
|
170
|
-
class: "flex flex-col items-center text-center gap-[12px] p-[12px]"
|
|
171
|
-
}, ze = {
|
|
172
|
-
role: "alert",
|
|
173
|
-
class: "text-[14px] text-fm-color-typo-error"
|
|
174
|
-
}, Ge = ["src", "alt"], Ke = {
|
|
175
|
-
key: 3,
|
|
176
|
-
role: "status",
|
|
177
|
-
"aria-live": "polite",
|
|
178
|
-
class: "absolute inset-0 bg-fm-color-neutral-white/90 flex flex-col items-center justify-center gap-[10px] text-[13px] font-medium"
|
|
179
|
-
}, Qe = /* @__PURE__ */ R({
|
|
180
|
-
__name: "WhatsappConnectDialog",
|
|
181
|
-
props: {
|
|
182
|
-
modelValue: { type: Boolean, required: !0 },
|
|
183
|
-
modelModifiers: {}
|
|
184
|
-
},
|
|
185
|
-
emits: ["update:modelValue"],
|
|
186
|
-
setup(F) {
|
|
187
|
-
const i = se(F, "modelValue"), { t: a } = G(), x = w(""), u = w(!1), p = w(""), r = w(!1), v = w();
|
|
188
|
-
let d, $, P;
|
|
189
|
-
function g() {
|
|
190
|
-
d == null || d.abort(), clearTimeout($), $ = void 0, clearTimeout(P), P = void 0;
|
|
191
|
-
}
|
|
192
|
-
async function E(m, c, h) {
|
|
193
|
-
if (!h.aborted) {
|
|
194
|
-
try {
|
|
195
|
-
const _ = await M.getClient(m, c, h);
|
|
196
|
-
if (h.aborted) return;
|
|
197
|
-
if (r.value = _.status === "connected" || _.status === "connecting" && _.connectedAt !== null, _.status === "connected" && _.profileStatus === "ready") {
|
|
198
|
-
g(), r.value = !1, v.value = _, P = setTimeout(() => {
|
|
199
|
-
i.value = !1;
|
|
200
|
-
}, 1800);
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
if (_.status === "disconnected") {
|
|
204
|
-
g(), r.value = !1, x.value = "", p.value = a("connect.whatsappBot.errors.qrExpired");
|
|
205
|
-
return;
|
|
206
|
-
}
|
|
207
|
-
} catch {
|
|
208
|
-
}
|
|
209
|
-
h.aborted || ($ = setTimeout(() => {
|
|
210
|
-
E(m, c, h);
|
|
211
|
-
}, 2e3));
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
async function W() {
|
|
215
|
-
g();
|
|
216
|
-
const m = new AbortController();
|
|
217
|
-
d = m, x.value = "", p.value = "", r.value = !1, v.value = void 0, u.value = !0;
|
|
218
|
-
try {
|
|
219
|
-
const c = j.getBusinessId();
|
|
220
|
-
if (!c)
|
|
221
|
-
throw new Error(a("connect.whatsappBot.errors.selectBusiness"));
|
|
222
|
-
const h = await M.createClient(
|
|
223
|
-
c,
|
|
224
|
-
m.signal
|
|
225
|
-
), _ = await de.toDataURL(h.qr, {
|
|
226
|
-
width: 224,
|
|
227
|
-
margin: 2,
|
|
228
|
-
errorCorrectionLevel: "M"
|
|
229
|
-
});
|
|
230
|
-
m.signal.aborted || (x.value = _, E(c, h.clientId, m.signal));
|
|
231
|
-
} catch (c) {
|
|
232
|
-
m.signal.aborted || (p.value = c instanceof Error ? c.message : a("connect.whatsappBot.errors.loadQr"));
|
|
233
|
-
} finally {
|
|
234
|
-
m.signal.aborted || (u.value = !1);
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
return L(
|
|
238
|
-
i,
|
|
239
|
-
(m) => {
|
|
240
|
-
m ? W() : g();
|
|
241
|
-
},
|
|
242
|
-
{ immediate: !0 }
|
|
243
|
-
), K(g), (m, c) => {
|
|
244
|
-
const h = y("i18n-t"), _ = y("FmCircularProgress"), S = y("FmButton"), V = y("FmDialog");
|
|
245
|
-
return n(), C(V, {
|
|
246
|
-
modelValue: i.value,
|
|
247
|
-
"onUpdate:modelValue": c[0] || (c[0] = (b) => i.value = b),
|
|
248
|
-
"min-width": "min(720px, calc(100% - 32px))",
|
|
249
|
-
"max-width": "720px",
|
|
250
|
-
"max-height": "90vh",
|
|
251
|
-
"dismiss-away": ""
|
|
252
|
-
}, {
|
|
253
|
-
"dialog-header": I(() => [
|
|
254
|
-
t("h2", Ae, l(e(a)("connect.whatsappBot.connectAccount")), 1)
|
|
255
|
-
]),
|
|
256
|
-
default: I(() => {
|
|
257
|
-
var b, B, s;
|
|
258
|
-
return [
|
|
259
|
-
v.value ? (n(), f("div", Ce, [
|
|
260
|
-
c[1] || (c[1] = t("div", {
|
|
261
|
-
"aria-hidden": "true",
|
|
262
|
-
class: "w-[64px] h-[64px] rounded-full bg-fm-color-system-success-100 text-fm-color-typo-success flex items-center justify-center mb-[8px]"
|
|
263
|
-
}, [
|
|
264
|
-
t("svg", {
|
|
265
|
-
width: "32",
|
|
266
|
-
height: "32",
|
|
267
|
-
viewBox: "0 0 24 24",
|
|
268
|
-
fill: "none",
|
|
269
|
-
stroke: "currentColor",
|
|
270
|
-
"stroke-width": "2.2",
|
|
271
|
-
"stroke-linecap": "round",
|
|
272
|
-
"stroke-linejoin": "round"
|
|
273
|
-
}, [
|
|
274
|
-
t("path", { d: "M20 6 9 17l-5-5" })
|
|
275
|
-
])
|
|
276
|
-
], -1)),
|
|
277
|
-
t("h3", $e, l(e(a)("connect.whatsappBot.accountConnected")), 1),
|
|
278
|
-
t("p", Pe, l(((b = v.value.account) == null ? void 0 : b.businessName) || ((B = v.value.account) == null ? void 0 : B.name) || e(a)("connect.whatsappBot.unnamedAccount")) + " · " + l(((s = v.value.account) == null ? void 0 : s.phoneNumber) || e(a)("connect.whatsappBot.phoneUnavailable")), 1)
|
|
279
|
-
])) : (n(), f("div", Se, [
|
|
280
|
-
t("div", Ie, [
|
|
281
|
-
t("p", Fe, l(e(a)("connect.whatsappBot.scanDescription")), 1),
|
|
282
|
-
t("ol", Ee, [
|
|
283
|
-
(n(), f(Q, null, Y(4, (o) => t("li", {
|
|
284
|
-
key: o,
|
|
285
|
-
class: "flex gap-[12px]"
|
|
286
|
-
}, [
|
|
287
|
-
t("span", We, l(o), 1),
|
|
288
|
-
o === 1 ? (n(), f("span", Ve, l(e(a)("connect.whatsappBot.steps.openApp")), 1)) : o === 2 ? (n(), C(h, {
|
|
289
|
-
key: 1,
|
|
290
|
-
keypath: "connect.whatsappBot.steps.openSettings",
|
|
291
|
-
tag: "span",
|
|
292
|
-
scope: "global"
|
|
293
|
-
}, {
|
|
294
|
-
menu: I(() => [
|
|
295
|
-
t("b", De, l(e(a)("connect.whatsappBot.menu")), 1)
|
|
296
|
-
]),
|
|
297
|
-
settings: I(() => [
|
|
298
|
-
t("b", Ne, l(e(a)("connect.whatsappBot.settings")), 1)
|
|
299
|
-
]),
|
|
300
|
-
_: 1
|
|
301
|
-
})) : o === 3 ? (n(), C(h, {
|
|
302
|
-
key: 2,
|
|
303
|
-
keypath: "connect.whatsappBot.steps.linkDevice",
|
|
304
|
-
tag: "span",
|
|
305
|
-
scope: "global"
|
|
306
|
-
}, {
|
|
307
|
-
linkedDevices: I(() => [
|
|
308
|
-
t("b", Oe, l(e(a)("connect.whatsappBot.linkedDevices")), 1)
|
|
309
|
-
]),
|
|
310
|
-
linkDevice: I(() => [
|
|
311
|
-
t("b", je, l(e(a)("connect.whatsappBot.linkDevice")), 1)
|
|
312
|
-
]),
|
|
313
|
-
_: 1
|
|
314
|
-
})) : (n(), f("span", He, l(e(a)("connect.whatsappBot.steps.scanQr")), 1))
|
|
315
|
-
])), 64))
|
|
316
|
-
]),
|
|
317
|
-
t("p", Me, l(e(a)("connect.whatsappBot.connectionNote")), 1)
|
|
318
|
-
]),
|
|
319
|
-
t("div", Re, [
|
|
320
|
-
u.value ? (n(), f("div", Le, [
|
|
321
|
-
A(_),
|
|
322
|
-
z(l(e(a)("connect.whatsappBot.generatingQr")), 1)
|
|
323
|
-
])) : p.value ? (n(), f("div", Ue, [
|
|
324
|
-
t("p", ze, l(p.value), 1),
|
|
325
|
-
A(S, {
|
|
326
|
-
label: e(a)("connect.whatsappBot.tryAgain"),
|
|
327
|
-
"prepend-icon": "refresh",
|
|
328
|
-
onClick: W
|
|
329
|
-
}, null, 8, ["label"])
|
|
330
|
-
])) : x.value ? (n(), f("img", {
|
|
331
|
-
key: 2,
|
|
332
|
-
src: x.value,
|
|
333
|
-
alt: e(a)("connect.whatsappBot.qrAlt"),
|
|
334
|
-
width: "224",
|
|
335
|
-
height: "224",
|
|
336
|
-
class: U({ "opacity-20": r.value })
|
|
337
|
-
}, null, 10, Ge)) : O("", !0),
|
|
338
|
-
r.value ? (n(), f("div", Ke, [
|
|
339
|
-
A(_),
|
|
340
|
-
z(" " + l(e(a)("connect.whatsappBot.connecting")), 1)
|
|
341
|
-
])) : O("", !0)
|
|
342
|
-
])
|
|
343
|
-
]))
|
|
344
|
-
];
|
|
345
|
-
}),
|
|
346
|
-
_: 1
|
|
347
|
-
}, 8, ["modelValue"]);
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
}), Ze = { class: "mt-[24px] border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[8px]" }, Je = { class: "text-[20px] leading-[28px] font-bold" }, Xe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary max-w-[420px]" }, Ye = /* @__PURE__ */ R({
|
|
351
|
-
__name: "WhatsappEmptyState",
|
|
352
|
-
emits: ["connect"],
|
|
353
|
-
setup(F, { emit: i }) {
|
|
354
|
-
const a = i, { t: x } = G();
|
|
355
|
-
return (u, p) => {
|
|
356
|
-
const r = y("FmButton");
|
|
357
|
-
return n(), f("div", Ze, [
|
|
358
|
-
p[1] || (p[1] = t("div", { class: "w-[72px] h-[72px] rounded-full bg-fm-color-primary-oats text-fm-color-primary flex items-center justify-center mb-[12px]" }, [
|
|
359
|
-
t("svg", {
|
|
360
|
-
width: "34",
|
|
361
|
-
height: "34",
|
|
362
|
-
viewBox: "0 0 24 24",
|
|
363
|
-
fill: "none",
|
|
364
|
-
stroke: "currentColor",
|
|
365
|
-
"stroke-width": "1.6",
|
|
366
|
-
"stroke-linecap": "round",
|
|
367
|
-
"stroke-linejoin": "round",
|
|
368
|
-
"aria-hidden": "true"
|
|
369
|
-
}, [
|
|
370
|
-
t("path", { d: "M7.9 20A9 9 0 1 0 4 16.1L2 22Z" }),
|
|
371
|
-
t("path", { d: "M9 10h.01M12 10h.01M15 10h.01" })
|
|
372
|
-
])
|
|
373
|
-
], -1)),
|
|
374
|
-
t("h2", Je, l(e(x)("connect.whatsappBot.emptyTitle")), 1),
|
|
375
|
-
t("p", Xe, l(e(x)("connect.whatsappBot.emptyDescription")), 1),
|
|
376
|
-
A(r, {
|
|
377
|
-
class: "mt-[16px]",
|
|
378
|
-
label: e(x)("connect.whatsappBot.connectAccountCta"),
|
|
379
|
-
"prepend-icon": "add",
|
|
380
|
-
onClick: p[0] || (p[0] = (v) => a("connect"))
|
|
381
|
-
}, null, 8, ["label"])
|
|
382
|
-
]);
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
}), qe = { class: "px-[24px] xs:px-[12px] pt-[20px] pb-[40px] text-fm-color-typo-primary" }, et = { class: "flex items-center justify-between gap-[16px] flex-wrap min-h-[40px]" }, tt = { class: "flex items-center gap-8" }, ot = { class: "text-[24px] leading-[32px] font-semibold tracking-[-0.01em]" }, nt = {
|
|
386
|
-
key: 2,
|
|
387
|
-
role: "status",
|
|
388
|
-
class: "mt-[24px] py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
389
|
-
}, at = {
|
|
390
|
-
key: 3,
|
|
391
|
-
class: "mt-[24px] border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[16px]"
|
|
392
|
-
}, st = {
|
|
393
|
-
role: "alert",
|
|
394
|
-
class: "text-[14px] text-fm-color-typo-error"
|
|
395
|
-
}, ft = /* @__PURE__ */ R({
|
|
396
|
-
__name: "WhatsappBot",
|
|
397
|
-
setup(F) {
|
|
398
|
-
const { t: i } = G(), a = ce(), x = w([]), u = w(!0), p = w("");
|
|
399
|
-
let r, v;
|
|
400
|
-
const d = w([]), $ = w(!0), P = w("");
|
|
401
|
-
let g, E;
|
|
402
|
-
const W = H(
|
|
403
|
-
() => x.value.filter((s) => ue(s) !== void 0)
|
|
404
|
-
), m = H(() => [
|
|
405
|
-
{
|
|
406
|
-
label: i("connect.whatsappBot.accounts"),
|
|
407
|
-
value: k["$connect-WHATSAPP_BOT"],
|
|
408
|
-
badge: W.value.length
|
|
409
|
-
},
|
|
410
|
-
{
|
|
411
|
-
label: i("connect.whatsappBot.settings"),
|
|
412
|
-
value: k["$connect-WHATSAPP_BOT_SETTINGS"]
|
|
413
|
-
},
|
|
414
|
-
{
|
|
415
|
-
label: i("connect.whatsappBot.tickets.title"),
|
|
416
|
-
value: k["$connect-WHATSAPP_BOT_TICKETS"],
|
|
417
|
-
badge: d.value.length
|
|
418
|
-
}
|
|
419
|
-
]), c = H(() => {
|
|
420
|
-
const s = a.currentRoute.value.name;
|
|
421
|
-
return s === k["$connect-WHATSAPP_BOT_SETTINGS"] || s === k["$connect-WHATSAPP_BOT_TICKETS"] ? s : k["$connect-WHATSAPP_BOT"];
|
|
422
|
-
});
|
|
423
|
-
async function h(s = !1) {
|
|
424
|
-
clearTimeout(E), g == null || g.abort();
|
|
425
|
-
const o = new AbortController();
|
|
426
|
-
g = o, s || ($.value = !0, P.value = "");
|
|
427
|
-
try {
|
|
428
|
-
const T = j.getBusinessId();
|
|
429
|
-
if (!T)
|
|
430
|
-
throw new Error(i("connect.whatsappBot.errors.selectBusiness"));
|
|
431
|
-
const N = await M.listTickets(T, o.signal);
|
|
432
|
-
o.signal.aborted || (d.value = N, P.value = "");
|
|
433
|
-
} catch (T) {
|
|
434
|
-
o.signal.aborted || (P.value = T instanceof Error ? T.message : i("connect.whatsappBot.tickets.loadError"));
|
|
435
|
-
} finally {
|
|
436
|
-
o.signal.aborted || ($.value = !1, E = setTimeout(() => void h(!0), 1e4));
|
|
437
|
-
}
|
|
438
|
-
}
|
|
439
|
-
function _(s) {
|
|
440
|
-
d.value = d.value.filter((o) => o.id !== s), h(!0);
|
|
441
|
-
}
|
|
442
|
-
async function S(s = !1) {
|
|
443
|
-
clearTimeout(v), r == null || r.abort();
|
|
444
|
-
const o = new AbortController();
|
|
445
|
-
r = o, s || (u.value = !0, p.value = "");
|
|
446
|
-
try {
|
|
447
|
-
const T = j.getBusinessId();
|
|
448
|
-
if (!T)
|
|
449
|
-
throw new Error(i("connect.whatsappBot.errors.selectBusiness"));
|
|
450
|
-
const N = await M.listClients(T, o.signal);
|
|
451
|
-
o.signal.aborted || (x.value = N, p.value = "");
|
|
452
|
-
} catch (T) {
|
|
453
|
-
!o.signal.aborted && !s && (p.value = T instanceof Error ? T.message : i("connect.whatsappBot.errors.loadSessions"));
|
|
454
|
-
} finally {
|
|
455
|
-
o.signal.aborted || (u.value = !1, v = setTimeout(() => void S(!0), 1e4));
|
|
456
|
-
}
|
|
457
|
-
}
|
|
458
|
-
function V(s) {
|
|
459
|
-
x.value = x.value.filter(
|
|
460
|
-
(o) => o.clientId !== s
|
|
461
|
-
), S(!0);
|
|
462
|
-
}
|
|
463
|
-
const b = w(!1);
|
|
464
|
-
function B(s) {
|
|
465
|
-
(s === k["$connect-WHATSAPP_BOT"] || s === k["$connect-WHATSAPP_BOT_SETTINGS"] || s === k["$connect-WHATSAPP_BOT_TICKETS"]) && a.push({ name: s });
|
|
466
|
-
}
|
|
467
|
-
return L(b, (s) => {
|
|
468
|
-
s || S();
|
|
469
|
-
}), L(
|
|
470
|
-
() => j.getBusinessId(),
|
|
471
|
-
() => {
|
|
472
|
-
b.value = !1, x.value = [], d.value = [], S(), h();
|
|
473
|
-
},
|
|
474
|
-
{ immediate: !0 }
|
|
475
|
-
), K(() => {
|
|
476
|
-
r == null || r.abort(), clearTimeout(v), g == null || g.abort(), clearTimeout(E);
|
|
477
|
-
}), (s, o) => {
|
|
478
|
-
const T = y("FmPill"), N = y("FmButton"), q = y("FmBadge"), ee = y("FmTab"), te = y("FmTabs"), Z = y("RouterView"), oe = y("FmCircularProgress");
|
|
479
|
-
return n(), f(Q, null, [
|
|
480
|
-
t("div", qe, [
|
|
481
|
-
t("div", et, [
|
|
482
|
-
t("div", tt, [
|
|
483
|
-
t("h1", ot, l(e(i)("connect.navigation.whatsappBot")), 1),
|
|
484
|
-
A(T, { variant: "beta" })
|
|
485
|
-
]),
|
|
486
|
-
c.value === e(k)["$connect-WHATSAPP_BOT"] && W.value.length ? (n(), C(N, {
|
|
487
|
-
key: 0,
|
|
488
|
-
label: e(i)("connect.whatsappBot.connectAccountCta"),
|
|
489
|
-
"prepend-icon": "add",
|
|
490
|
-
onClick: o[0] || (o[0] = (D) => b.value = !0)
|
|
491
|
-
}, null, 8, ["label"])) : O("", !0)
|
|
492
|
-
]),
|
|
493
|
-
A(te, {
|
|
494
|
-
"model-value": c.value,
|
|
495
|
-
items: m.value,
|
|
496
|
-
role: "tablist",
|
|
497
|
-
"aria-label": e(i)("connect.navigation.whatsappBot"),
|
|
498
|
-
class: "mt-[16px] border-b border-fm-color-neutral-gray-100"
|
|
499
|
-
}, {
|
|
500
|
-
default: I(({ label: D, value: J, badge: X, tabsProps: ne }) => [
|
|
501
|
-
A(ee, le(ne, {
|
|
502
|
-
"model-value": c.value,
|
|
503
|
-
label: D,
|
|
504
|
-
value: J,
|
|
505
|
-
"onUpdate:modelValue": B
|
|
506
|
-
}), re({ _: 2 }, [
|
|
507
|
-
X ? {
|
|
508
|
-
name: "append",
|
|
509
|
-
fn: I(() => [
|
|
510
|
-
A(q, {
|
|
511
|
-
value: X,
|
|
512
|
-
variant: "neutral",
|
|
513
|
-
inline: "",
|
|
514
|
-
class: U(
|
|
515
|
-
c.value === J ? "bg-fm-color-primary-oats text-fm-color-primary" : "bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary"
|
|
516
|
-
)
|
|
517
|
-
}, null, 8, ["value", "class"])
|
|
518
|
-
]),
|
|
519
|
-
key: "0"
|
|
520
|
-
} : void 0
|
|
521
|
-
]), 1040, ["model-value", "label", "value"])
|
|
522
|
-
]),
|
|
523
|
-
_: 1
|
|
524
|
-
}, 8, ["model-value", "items", "aria-label"]),
|
|
525
|
-
c.value === e(k)["$connect-WHATSAPP_BOT_SETTINGS"] ? (n(), C(Z, { key: 0 })) : c.value === e(k)["$connect-WHATSAPP_BOT_TICKETS"] ? (n(), C(Z, {
|
|
526
|
-
key: 1,
|
|
527
|
-
tickets: d.value,
|
|
528
|
-
loading: $.value,
|
|
529
|
-
error: P.value,
|
|
530
|
-
onRetry: o[1] || (o[1] = (D) => h()),
|
|
531
|
-
onResolved: _
|
|
532
|
-
}, null, 8, ["tickets", "loading", "error"])) : u.value ? (n(), f("div", nt, [
|
|
533
|
-
A(oe),
|
|
534
|
-
z(" " + l(e(i)("connect.whatsappBot.loadingSessions")), 1)
|
|
535
|
-
])) : p.value ? (n(), f("div", at, [
|
|
536
|
-
t("p", st, l(p.value), 1),
|
|
537
|
-
A(N, {
|
|
538
|
-
label: e(i)("connect.whatsappBot.tryAgain"),
|
|
539
|
-
"prepend-icon": "refresh",
|
|
540
|
-
onClick: o[2] || (o[2] = (D) => S())
|
|
541
|
-
}, null, 8, ["label"])
|
|
542
|
-
])) : W.value.length ? (n(), C(ke, {
|
|
543
|
-
key: 4,
|
|
544
|
-
accounts: W.value,
|
|
545
|
-
onRemoved: V
|
|
546
|
-
}, null, 8, ["accounts"])) : (n(), C(Ye, {
|
|
547
|
-
key: 5,
|
|
548
|
-
onConnect: o[3] || (o[3] = (D) => b.value = !0)
|
|
549
|
-
}))
|
|
550
|
-
]),
|
|
551
|
-
A(Qe, {
|
|
552
|
-
modelValue: b.value,
|
|
553
|
-
"onUpdate:modelValue": o[4] || (o[4] = (D) => b.value = D)
|
|
554
|
-
}, null, 8, ["modelValue"])
|
|
555
|
-
], 64);
|
|
556
|
-
};
|
|
557
|
-
}
|
|
558
|
-
});
|
|
559
|
-
export {
|
|
560
|
-
ft as default
|
|
561
|
-
};
|