@feedmepos/mf-connect 0.1.98-beta.84 → 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-2gK-7sDH.js → App-BxA547CP.js} +409 -403
- package/dist/{AuditLogs-DsvvAt8f.js → AuditLogs-DjsuO-ou.js} +13 -13
- package/dist/{Bin-f4C6ymIq.js → Bin-Cp1JuoPV.js} +8 -8
- package/dist/{Broadcast-tdqUBB_9.js → Broadcast-C-dZ7I7J.js} +12 -12
- package/dist/{CampaignAnalytic-BI7qfGV2.js → CampaignAnalytic-CeJrlblr.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CGAIYHt6.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-DNshyt4k.js} +8 -8
- package/dist/{Card-CBU8ZOFT.js → Card-BRkDbHgP.js} +23 -23
- package/dist/{Collections-DWPcYM4M.js → Collections-KGkn4jVg.js} +8 -8
- package/dist/{Credit-Cq12WUk_.js → Credit-CYtdA8LR.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BwpYtfRw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-B_GGXmKj.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-C7b6aFq3.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CC84YrQj.js} +36 -35
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-KkAGKKsV.js → EffectSheet.vue_vue_type_style_index_0_lang-Y8euxc9u.js} +6 -6
- package/dist/{Experience-BuIgMiB3.js → Experience-DyCWhTIc.js} +13 -13
- package/dist/{FileSaver.min-DS15uUce.js → FileSaver.min-sifwJvOC.js} +1 -1
- package/dist/{Game-_NIMd0cY.js → Game-D2dtBGMx.js} +13 -13
- package/dist/{GiftCardSetup-Bw_8x29B.js → GiftCardSetup-4_wPeuGx.js} +73 -61
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B1sHLgFd.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DaXZiLCz.js} +7 -7
- package/dist/{Goals-BE_FaHh-.js → Goals-BZriqe6a.js} +4 -4
- package/dist/{Grab-CIIr5EZR.js → Grab-DE43gcBH.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-fg6xOcnj.js → ImageInput.vue_vue_type_script_setup_true_lang-BSmoRIp3.js} +1 -1
- package/dist/{Index-BiShzj-5.js → Index-3-__a-F8.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-DQXs_qw9.js → LocationPicker.vue_vue_type_script_setup_true_lang-DMFmuJHS.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-B6NRhdWR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-aCBsAVgf.js} +1 -1
- package/dist/{LoyaltyDashboard-B5AG4nLL.js → LoyaltyDashboard-BxqVkHWZ.js} +24 -23
- package/dist/MainLayout-VDwSL1-n.js +4 -0
- package/dist/{MainLayout-DxqoiKXJ.js → MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js} +4 -4
- package/dist/{Marketing-rtJPqmHZ.js → Marketing-BkTXd2kV.js} +4 -4
- package/dist/{MarketingMaterialEdit-DZbsKiMW.js → MarketingMaterialEdit-DCmGVhn1.js} +6 -6
- package/dist/{Member-B_4IU8GD.js → Member-BZ-cZyCC.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CtQiWe15.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DeRvNRsk.js} +24 -24
- package/dist/{MemberImportHistory-DepqkpDF.js → MemberImportHistory-CunTfazI.js} +7 -7
- package/dist/{MemberList-RbR2vpfv.js → MemberList-H8H9xzMg.js} +14 -14
- package/dist/{MemberTransactions-BXJy6Ism.js → MemberTransactions-B1GTs17R.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-0OCCIP0v.js → MessageInput.vue_vue_type_script_setup_true_lang-C2K_acoB.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DnECpLmj.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-BCRSJoq7.js} +1 -1
- package/dist/{Mission-CMNVAn_S.js → Mission-CNXUBVI4.js} +14 -14
- package/dist/{Overview-C05OOSXQ.js → Overview-CiIMyx-_.js} +21 -21
- package/dist/{Overview-C-QEY2MS.js → Overview-CwoDIRXD.js} +4 -4
- package/dist/{Point-XEJSumy7.js → Point-BpFvqe5M.js} +14 -14
- package/dist/{Promotion-DfzE_BnO.js → Promotion-DwcxXXS3.js} +14 -14
- package/dist/{Queue-D4Td8Bgv.js → Queue-CI9PtRqs.js} +13 -13
- package/dist/{Record-DgkTuKc4.js → Record-Cl73WIoN.js} +9 -9
- package/dist/{Review-8ZMji0fb.js → Review-BQL9TzxZ.js} +2 -2
- package/dist/{ReviewFacebookCallback-Ve87-GyX.js → ReviewFacebookCallback-BVcW6zNJ.js} +5 -5
- package/dist/{ReviewGoogleCallback-DRpVe1uq.js → ReviewGoogleCallback-peKv_-nP.js} +5 -5
- package/dist/{Reward-CEhr7Ns0.js → Reward-6rLOoOkv.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-w3QixigS.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZ2OWRik.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-CnTY1iff.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7GKzELx.js} +15 -15
- package/dist/{Segment-CeMerVn4.js → Segment-DnrCf_-F.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CQ038K1l.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyYWf2RR.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Cq5ywNFY.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C-GxdVOH.js} +4 -4
- package/dist/{Setting-Rge2DsP0.js → Setting-BlU3XioB.js} +14 -14
- package/dist/{SettingAdvertisements-YXLfS10e.js → SettingAdvertisements-CW9KUQAk.js} +12 -12
- package/dist/{Settings-Cnp1yLCt.js → Settings-DfKCItWN.js} +5 -5
- package/dist/{Store-BqNd-YZA.js → Store-Dh90RjUg.js} +780 -771
- package/dist/{StoreRewards-CtFg932k.js → StoreRewards-BmEJZR1O.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DSLRZ4_T.js → StoreTransactions.vue_vue_type_script_setup_true_lang-C-Efc4SV.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-ViE-riFl.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bv0_e1wk.js} +2 -2
- package/dist/{Tier-77bfKMw8.js → Tier-C7EiLGJW.js} +27 -27
- package/dist/{Title-ExsDsweT.js → Title-DPf-0vrF.js} +23 -23
- package/dist/{Transaction-rtSeIIw0.js → Transaction-DsAk9Gb9.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CRBQ9Fda.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Csojc1fI.js} +6 -6
- package/dist/{Voucher-BkZtSGlP.js → Voucher-BKp9CMMe.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-4PYSnlPB.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-BuKmIjV8.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-CZfhn5Jq.js → ZodTextField.vue_vue_type_script_setup_true_lang-D6Z-3QOR.js} +2 -2
- package/dist/{app-Bc6LqwtE.js → app-BiUEivOU.js} +316 -316
- package/dist/app.js +1 -1
- package/dist/{base.export-Btj8Rg8X.js → base.export-Bvf3GR9p.js} +2 -2
- package/dist/{business-D764zw_0.js → business-DgmJwclv.js} +5 -5
- package/dist/{campaign-BQup_7UA.js → campaign-C9TU71PO.js} +8 -8
- package/dist/{campaign-z0b9Kjkw.js → campaign-DxjYod5y.js} +2 -2
- package/dist/{campaign.fn-CFw7_K_I.js → campaign.fn-BGdwcW0r.js} +2 -2
- package/dist/{collection.fn-C4U4ilHh.js → collection.fn-B9t79SwE.js} +2 -2
- package/dist/{currency-ByFTp6eT.js → currency-K9kgZvJm.js} +1 -1
- package/dist/{duplicateCampaign-CbmUt1Lo.js → duplicateCampaign-CLeVibNm.js} +2 -2
- package/dist/{effect-DsO-mw9A.js → effect-Bj5p3FOF.js} +1 -1
- package/dist/{email-addresses-CL-EMr73.js → email-addresses-CUpmh5j3.js} +2 -2
- package/dist/feature-flag-Dfon0BoK.js +18 -0
- package/dist/{helper-Avy2CxJa.js → helper-iVOlqZr5.js} +1 -1
- package/dist/{index-QesgyoGt.js → index-BIqP1bQh.js} +2 -2
- package/dist/{index-BOX-kv2H.js → index-BRk5I8NE.js} +1 -1
- package/dist/{index-DJBDlwI0.js → index-C57WFxg7.js} +2 -2
- package/dist/{index-0iobnNos.js → index-C641kFzY.js} +1 -1
- package/dist/{index-CqHP5Wpq.js → index-CGctGLsw.js} +1 -1
- package/dist/{index-DUiP6eMM.js → index-COB25nai.js} +583 -576
- package/dist/{index-BYJfzCGF.js → index-CedoUPYn.js} +2 -2
- package/dist/index-Cfr0vxa5.js +1775 -0
- package/dist/{index-BaRq5efe.js → index-Cq0kWJ_W.js} +2 -2
- package/dist/{index-4Gb9FUwx.js → index-D6CbkBm6.js} +3 -3
- package/dist/{index-DLWc6jN6.js → index-DAcwqenP.js} +7 -7
- package/dist/{index-6kHtFMu_.js → index-DJQVYP1Z.js} +1 -1
- package/dist/{index-DIEsCZpR.js → index-DUr59xHS.js} +2 -2
- package/dist/{index-DKVgQIxK.js → index-DXNB9FHg.js} +2 -2
- package/dist/{index-DopAV1p0.js → index-DgkRREfK.js} +18 -14
- package/dist/{index-DV97WJgE.js → index-Dhd9eEjz.js} +1 -1
- package/dist/{index-C_ZRQxuy.js → index-FcdiLtUc.js} +9 -9
- package/dist/{index-Dw1JLMxf.js → index-HctLGyyi.js} +4 -4
- package/dist/{index-BwbjP4YO.js → index-MVfpQsRI.js} +4 -3
- package/dist/{index-BtlTdbMh.js → index-YV22ZWWA.js} +2 -2
- package/dist/{index-BGYPv4nh.js → index-dEfSQ43r.js} +1 -1
- package/dist/{index-BqBHO03o.js → index-onmieavP.js} +5975 -7746
- package/dist/{index.esm2017-6fTAB2zC.js → index.esm2017-BUZxOBD5.js} +1 -1
- package/dist/{loading-Ctv0pifD.js → loading-D3jN17Xy.js} +1 -1
- package/dist/{lodash-voP8B3y-.js → lodash-DvKbipfn.js} +1 -1
- package/dist/{member-import-Cnclh9kc.js → member-import-BuytQk0w.js} +1 -1
- package/dist/{membership-BFw22ljB.js → membership-Beh_I5Kj.js} +2 -2
- package/dist/{money-UKkYKlYB.js → money-C3v95tda.js} +1 -1
- package/dist/{number-C3ZVrlnG.js → number-Cc7Yq2nP.js} +1 -1
- package/dist/{objectid-cm0MpmhJ.js → objectid-fKMrrct7.js} +8 -8
- package/dist/{onboarding-DPlyVNxC.js → onboarding-DJgY8HJr.js} +3 -3
- package/dist/{onboardingSetup-DNxWR49X.js → onboardingSetup-DJJLdr11.js} +2 -2
- package/dist/{plugins-CmODURCb.js → plugins-CcGeLF_l.js} +3 -3
- package/dist/{reward-PFP-zWBV.js → reward-4aAVrRc8.js} +1 -1
- package/dist/{rule-O6gC43w9.js → rule-D6x2GyGw.js} +10 -10
- package/dist/{template-C3wE6QI8.js → template-Dafdx5YI.js} +6 -6
- package/dist/{timezone-h8QjEIVE.js → timezone-BDIlVTOp.js} +1 -1
- package/dist/{transaction.fn-CMLlNsBi.js → transaction.fn-CBVylmzu.js} +2 -2
- package/dist/{trigger-rwKj95on.js → trigger-ChNg0oG9.js} +5 -5
- package/dist/{useMarketingMaterialActions-DFhA_QMl.js → useMarketingMaterialActions-LSsbTrFn.js} +3 -3
- package/dist/{usePagination-DG6Ztr9a.js → usePagination-CqPRf6q3.js} +1 -1
- package/dist/{user-B8GnAjaS.js → user-6kqmEFbR.js} +1 -1
- package/dist/{vue-i18n-Bc5Ls0lk.js → vue-i18n-BJ_ZHWvK.js} +109 -109
- package/dist/{xlsx-CKvgpuVs.js → xlsx-CWXvmWqg.js} +1 -1
- package/dist/{zod-Bt021IY2.js → zod-DBefBbjY.js} +1 -1
- package/package.json +1 -1
- package/dist/WhatsappAccount-BHhjnuXB.js +0 -325
- package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DKFevg6y.js +0 -80
- package/dist/WhatsappBot-DDDfDb-u.js +0 -566
- package/dist/WhatsappBotTickets-D1fGYaRQ.js +0 -153
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
import { defineComponent as U, ref as h, computed as $, watch as L, onBeforeUnmount as R, resolveComponent as w, openBlock as n, createElementBlock as l, createElementVNode as s, toDisplayString as r, unref as c, createVNode as g, createTextVNode as b, createCommentVNode as B, Fragment as T, renderList as z } from "vue";
|
|
2
|
+
import { u as M } from "./vue-i18n-BJ_ZHWvK.js";
|
|
3
|
+
import { S as A } from "./index-Cfr0vxa5.js";
|
|
4
|
+
import { w as W } from "./index-Cq0kWJ_W.js";
|
|
5
|
+
const G = { class: "mt-[20px] w-full flex flex-col gap-[16px]" }, H = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary" }, J = {
|
|
6
|
+
key: 0,
|
|
7
|
+
role: "status",
|
|
8
|
+
class: "flex items-center gap-[6px] text-[14px] text-fm-color-typo-success"
|
|
9
|
+
}, K = {
|
|
10
|
+
key: 1,
|
|
11
|
+
role: "status",
|
|
12
|
+
class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
|
|
13
|
+
}, O = {
|
|
14
|
+
key: 0,
|
|
15
|
+
class: "flex items-center gap-[12px] flex-wrap"
|
|
16
|
+
}, Q = {
|
|
17
|
+
role: "alert",
|
|
18
|
+
class: "text-[14px] text-fm-color-typo-error"
|
|
19
|
+
}, X = {
|
|
20
|
+
key: 1,
|
|
21
|
+
role: "alert",
|
|
22
|
+
class: "text-[14px] text-fm-color-typo-error"
|
|
23
|
+
}, Y = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "border border-fm-color-neutral-gray-200 rounded-[16px] px-[24px] py-[56px] flex flex-col items-center text-center gap-[8px]"
|
|
26
|
+
}, Z = { class: "text-[20px] font-semibold" }, q = { class: "max-w-[420px] text-[14px] leading-[20px] text-fm-color-typo-secondary" }, ee = {
|
|
27
|
+
key: 3,
|
|
28
|
+
class: "flex flex-col gap-[12px]"
|
|
29
|
+
}, te = {
|
|
30
|
+
"aria-hidden": "true",
|
|
31
|
+
class: "w-[40px] h-[40px] rounded-full overflow-hidden bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary text-[14px] font-semibold flex items-center justify-center flex-shrink-0 self-start"
|
|
32
|
+
}, oe = ["src", "onError"], se = { key: 1 }, re = { class: "flex-1 min-w-[200px] flex flex-col gap-[2px]" }, ae = { class: "flex items-center gap-[8px] flex-wrap" }, ne = { class: "text-[14px] leading-[20px] font-semibold break-words" }, le = { class: "flex items-center gap-[6px] rounded-[6px] px-[8px] py-[2px] text-[12px] font-semibold bg-fm-color-system-warning-100 text-fm-color-typo-warning" }, ce = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary break-words" }, pe = { class: "mt-[6px] text-[14px] leading-[20px] text-fm-color-typo-secondary whitespace-pre-wrap break-words" }, ie = { class: "flex items-center gap-[16px] ml-auto flex-wrap" }, de = ["datetime"], he = /* @__PURE__ */ U({
|
|
33
|
+
__name: "WhatsappBotTickets",
|
|
34
|
+
props: {
|
|
35
|
+
tickets: {},
|
|
36
|
+
loading: { type: Boolean },
|
|
37
|
+
error: {}
|
|
38
|
+
},
|
|
39
|
+
emits: ["retry", "resolved"],
|
|
40
|
+
setup(m, { emit: F }) {
|
|
41
|
+
const E = m, k = F, { t: o, locale: S } = M(), i = h(""), u = h(""), d = h(""), y = h({});
|
|
42
|
+
let x, v;
|
|
43
|
+
const I = $(
|
|
44
|
+
() => [...E.tickets].sort((t, a) => a.updatedAt.localeCompare(t.updatedAt))
|
|
45
|
+
);
|
|
46
|
+
function _(t) {
|
|
47
|
+
return t.customerName || t.phoneNumber || t.customerLid;
|
|
48
|
+
}
|
|
49
|
+
function D(t) {
|
|
50
|
+
return t.customerName ? t.customerName.trim().split(/\s+/).slice(0, 2).map((a) => Array.from(a)[0]).join("").toUpperCase() : "?";
|
|
51
|
+
}
|
|
52
|
+
function V(t) {
|
|
53
|
+
return new Intl.DateTimeFormat(S.value, {
|
|
54
|
+
dateStyle: "medium",
|
|
55
|
+
timeStyle: "short"
|
|
56
|
+
}).format(new Date(t));
|
|
57
|
+
}
|
|
58
|
+
async function j(t) {
|
|
59
|
+
if (i.value) return;
|
|
60
|
+
const a = A.getBusinessId();
|
|
61
|
+
if (!a || t.businessId !== a) return;
|
|
62
|
+
const p = new AbortController();
|
|
63
|
+
x = p, i.value = t.id, u.value = "", d.value = "", clearTimeout(v);
|
|
64
|
+
try {
|
|
65
|
+
if (await W.resolveTicket(a, t.id, p.signal), p.signal.aborted) return;
|
|
66
|
+
k("resolved", t.id), d.value = o("connect.whatsappBot.tickets.resolvedMessage", {
|
|
67
|
+
name: _(t)
|
|
68
|
+
}), v = setTimeout(() => d.value = "", 3e3);
|
|
69
|
+
} catch (f) {
|
|
70
|
+
p.signal.aborted || (u.value = f instanceof Error ? f.message : o("connect.whatsappBot.tickets.resolveError"));
|
|
71
|
+
} finally {
|
|
72
|
+
p.signal.aborted || (i.value = "");
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
function C() {
|
|
76
|
+
x == null || x.abort(), clearTimeout(v), i.value = "", u.value = "", d.value = "", y.value = {};
|
|
77
|
+
}
|
|
78
|
+
return L(() => A.getBusinessId(), C), R(C), (t, a) => {
|
|
79
|
+
const p = w("FmIcon"), f = w("FmCircularProgress"), N = w("FmButton");
|
|
80
|
+
return n(), l("section", G, [
|
|
81
|
+
s("p", H, r(c(o)("connect.whatsappBot.tickets.description")), 1),
|
|
82
|
+
d.value ? (n(), l("p", J, [
|
|
83
|
+
g(p, {
|
|
84
|
+
name: "check",
|
|
85
|
+
size: "sm"
|
|
86
|
+
}),
|
|
87
|
+
b(" " + r(d.value), 1)
|
|
88
|
+
])) : B("", !0),
|
|
89
|
+
m.loading ? (n(), l("div", K, [
|
|
90
|
+
g(f),
|
|
91
|
+
b(" " + r(c(o)("connect.whatsappBot.tickets.loading")), 1)
|
|
92
|
+
])) : (n(), l(T, { key: 2 }, [
|
|
93
|
+
m.error ? (n(), l("div", O, [
|
|
94
|
+
s("p", Q, r(m.error), 1),
|
|
95
|
+
g(N, {
|
|
96
|
+
variant: "secondary",
|
|
97
|
+
label: c(o)("connect.whatsappBot.tryAgain"),
|
|
98
|
+
"prepend-icon": "refresh",
|
|
99
|
+
onClick: a[0] || (a[0] = (e) => k("retry"))
|
|
100
|
+
}, null, 8, ["label"])
|
|
101
|
+
])) : B("", !0),
|
|
102
|
+
u.value ? (n(), l("p", X, r(u.value), 1)) : B("", !0),
|
|
103
|
+
!I.value.length && !m.error ? (n(), l("div", Y, [
|
|
104
|
+
s("h2", Z, r(c(o)("connect.whatsappBot.tickets.empty.open.title")), 1),
|
|
105
|
+
s("p", q, r(c(o)("connect.whatsappBot.tickets.empty.open.description")), 1)
|
|
106
|
+
])) : (n(), l("ul", ee, [
|
|
107
|
+
(n(!0), l(T, null, z(I.value, (e) => (n(), l("li", {
|
|
108
|
+
key: e.id,
|
|
109
|
+
class: "border border-fm-color-neutral-gray-100 rounded-[16px] bg-fm-color-neutral-white p-[16px] flex items-center gap-[12px] flex-wrap"
|
|
110
|
+
}, [
|
|
111
|
+
s("div", te, [
|
|
112
|
+
e.profileImage && y.value[e.id] !== e.profileImage ? (n(), l("img", {
|
|
113
|
+
key: 0,
|
|
114
|
+
src: e.profileImage,
|
|
115
|
+
alt: "",
|
|
116
|
+
class: "w-full h-full object-cover",
|
|
117
|
+
referrerpolicy: "no-referrer",
|
|
118
|
+
onError: (P) => y.value[e.id] = e.profileImage ?? ""
|
|
119
|
+
}, null, 40, oe)) : (n(), l("span", se, r(D(e)), 1))
|
|
120
|
+
]),
|
|
121
|
+
s("div", re, [
|
|
122
|
+
s("div", ae, [
|
|
123
|
+
s("span", ne, r(_(e)), 1),
|
|
124
|
+
s("span", le, [
|
|
125
|
+
a[1] || (a[1] = s("span", { class: "w-[6px] h-[6px] rounded-full bg-current" }, null, -1)),
|
|
126
|
+
b(" " + r(c(o)("connect.whatsappBot.tickets.paused")), 1)
|
|
127
|
+
])
|
|
128
|
+
]),
|
|
129
|
+
s("p", ce, r(e.phoneNumber || c(o)("connect.whatsappBot.phoneUnavailable")), 1),
|
|
130
|
+
s("p", pe, r(e.source === "staff" ? c(o)("connect.whatsappBot.tickets.staffReason") : c(o)("connect.whatsappBot.tickets.botReason", {
|
|
131
|
+
reason: e.reason
|
|
132
|
+
})), 1)
|
|
133
|
+
]),
|
|
134
|
+
s("div", ie, [
|
|
135
|
+
s("time", {
|
|
136
|
+
datetime: e.updatedAt,
|
|
137
|
+
class: "text-[12px] text-fm-color-typo-tertiary tabular-nums"
|
|
138
|
+
}, r(c(o)("connect.whatsappBot.tickets.pausedSince", {
|
|
139
|
+
date: V(e.updatedAt)
|
|
140
|
+
})), 9, de),
|
|
141
|
+
g(N, {
|
|
142
|
+
variant: "secondary",
|
|
143
|
+
"prepend-icon": "check",
|
|
144
|
+
label: c(o)("connect.whatsappBot.tickets.resolve"),
|
|
145
|
+
"aria-label": c(o)("connect.whatsappBot.tickets.resolveCustomer", {
|
|
146
|
+
name: _(e)
|
|
147
|
+
}),
|
|
148
|
+
loading: i.value === e.id,
|
|
149
|
+
disabled: !!i.value,
|
|
150
|
+
onClick: (P) => j(e)
|
|
151
|
+
}, null, 8, ["label", "aria-label", "loading", "disabled", "onClick"])
|
|
152
|
+
])
|
|
153
|
+
]))), 128))
|
|
154
|
+
]))
|
|
155
|
+
], 64))
|
|
156
|
+
]);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
export {
|
|
161
|
+
he as default
|
|
162
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineComponent as r, computed as a, watch as m, openBlock as n, createBlock as c, createCommentVNode as p } from "vue";
|
|
2
|
+
import { useRouter as s } from "vue-router";
|
|
3
|
+
import { i } from "./feature-flag-Dfon0BoK.js";
|
|
4
|
+
import { R as u } from "./app-BiUEivOU.js";
|
|
5
|
+
import { _ } from "./MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js";
|
|
6
|
+
const C = /* @__PURE__ */ r({
|
|
7
|
+
__name: "WhatsappLayout",
|
|
8
|
+
setup(f) {
|
|
9
|
+
const o = s(), e = a(i);
|
|
10
|
+
return m(
|
|
11
|
+
e,
|
|
12
|
+
(t) => {
|
|
13
|
+
t || o.replace({ name: u["$connect-ANALYTIC"] });
|
|
14
|
+
},
|
|
15
|
+
{ immediate: !0 }
|
|
16
|
+
), (t, d) => e.value ? (n(), c(_, { key: 0 })) : p("", !0);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
export {
|
|
20
|
+
C as default
|
|
21
|
+
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as f, useAttrs as y, resolveComponent as b, openBlock as l, createBlock as v, mergeProps as x, unref as t, createSlots as g, withCtx as h, createElementVNode as a, toDisplayString as n, renderSlot as k, createElementBlock as F, createCommentVNode as S } from "vue";
|
|
2
|
-
import { Z as d } from "./zod-
|
|
3
|
-
import { u as V } from "./vue-i18n-
|
|
2
|
+
import { Z as d } from "./zod-DBefBbjY.js";
|
|
3
|
+
import { u as V } from "./vue-i18n-BJ_ZHWvK.js";
|
|
4
4
|
const B = { class: "fm-typo-en-body-lg-400 flex gap-4 text-fm-color-typo-primary items-center" }, C = {
|
|
5
5
|
key: 0,
|
|
6
6
|
class: "text-fm-color-typo-tertiary"
|