@feedmepos/mf-connect 0.1.114-dev → 0.1.115-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-CIWTDYuZ.js → App-43mZfFAr.js} +11 -11
- package/dist/{AuditLogs-BluLDXu9.js → AuditLogs-BPpdm96t.js} +13 -13
- package/dist/{Bin-jS6pM4L3.js → Bin-CA7v180Y.js} +8 -8
- package/dist/{Broadcast-DBqsSZ0S.js → Broadcast-qmdifF2Y.js} +12 -12
- package/dist/{CampaignAnalytic-DJrjXD4H.js → CampaignAnalytic-xnrDxqaH.js} +7 -7
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CzwigRLi.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-zjk-QdtX.js} +9 -9
- package/dist/{Card-B10nLilL.js → Card-D8icsk7L.js} +23 -23
- package/dist/{Collections-BN42A73p.js → Collections--THcD-E_.js} +8 -8
- package/dist/{Credit-0SS26HGE.js → Credit-JrbtVMBp.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-B3wozBFs.js → DateRangeChip.vue_vue_type_script_setup_true_lang-DrwKtnE5.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BRd5RVYe.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-DgdAlHU7.js} +36 -36
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-zV9dLCWp.js → EffectSheet.vue_vue_type_style_index_0_lang-hVgqWdD0.js} +6 -6
- package/dist/{Experience-D7qPzsrc.js → Experience-CFeRqBoj.js} +13 -13
- package/dist/{FileSaver.min-BKWoklMK.js → FileSaver.min-CCXIBm58.js} +1 -1
- package/dist/{Game-BoYMwfog.js → Game-CPxq6Ex3.js} +13 -13
- package/dist/{GiftCardSetup-B87O0xzo.js → GiftCardSetup-D0esVZDp.js} +10 -10
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-B3uGbEFY.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CJ1-vL-K.js} +7 -7
- package/dist/{Goals-CVxf3xCA.js → Goals-DaKI6uXt.js} +4 -4
- package/dist/{Grab-mGL1Mue_.js → Grab-BWzdN_cd.js} +9 -9
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-HipBZ1_T.js → ImageInput.vue_vue_type_script_setup_true_lang-BOnL0GxM.js} +1 -1
- package/dist/{Index-Dptuy-6c.js → Index-2kENoaZm.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Cjc4UeKz.js → LocationPicker.vue_vue_type_script_setup_true_lang-BtWnJKU_.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bh0ari3f.js → LottieAnimation.vue_vue_type_script_setup_true_lang-CX_Sspu5.js} +1 -1
- package/dist/{LoyaltyDashboard-BxhI6RAE.js → LoyaltyDashboard-CB93Fz8u.js} +15 -15
- package/dist/{MainLayout-YfDxvZXl.js → MainLayout-DwnjGXh6.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-BgXpznbi.js → MainLayout.vue_vue_type_script_setup_true_lang-Du8fw5v_.js} +3 -3
- package/dist/Marketing-DCco__2F.js +273 -0
- package/dist/{MarketingMaterialEdit-DkOEy_L-.js → MarketingMaterialEdit-BbgFtrYP.js} +6 -6
- package/dist/{Member-DufbKDOh.js → Member-B--nYyr0.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-CU8EmBxy.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-BBlzO7Db.js} +24 -24
- package/dist/{MemberImportHistory-DlFN-uQl.js → MemberImportHistory-D52Y4RTC.js} +7 -7
- package/dist/{MemberList-B344n8I4.js → MemberList-13Owa1fj.js} +14 -14
- package/dist/{MemberTransactions-BS7H640M.js → MemberTransactions-CpXEWNbq.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CxDtXvwd.js → MessageInput.vue_vue_type_script_setup_true_lang-DlELjFM0.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-lY0jlyOG.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-C_y0rM8c.js} +1 -1
- package/dist/{Mission-D2ed_oKn.js → Mission-Ci-UzXSu.js} +14 -14
- package/dist/{Overview-CLh_T6YY.js → Overview-CKxSfAGF.js} +4 -4
- package/dist/{Overview-DJa-hXDC.js → Overview-CXen9Ram.js} +21 -21
- package/dist/{Point-DAPeg1VD.js → Point-CR3YOaag.js} +14 -14
- package/dist/{Promotion-CPPCMMFl.js → Promotion-tw3J4ul-.js} +14 -14
- package/dist/{Queue-BcPwCRcM.js → Queue-BZGA5ZXt.js} +13 -13
- package/dist/{Record-C5XKn--g.js → Record-BTevVXnT.js} +9 -9
- package/dist/{Review-Cc51luIv.js → Review-BU7c8ZF0.js} +2 -2
- package/dist/{ReviewFacebookCallback-BSGInFB8.js → ReviewFacebookCallback-BnMF6Arh.js} +5 -5
- package/dist/{ReviewGoogleCallback-C1gY4vcP.js → ReviewGoogleCallback-xpdPHSdg.js} +5 -5
- package/dist/{Reward-k1R3hLiF.js → Reward-jlA_7cxz.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-BGbbGVK4.js → RewardGroup.vue_vue_type_script_setup_true_lang-D3z_n42G.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-Coh3L11L.js → RuleGroup.vue_vue_type_script_setup_true_lang-CsHxqH9h.js} +15 -15
- package/dist/{Segment-DsBnIvje.js → Segment-C1Bwm--Q.js} +26 -26
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-CMKpvXN-.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-B6apgWTM.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-LyAtRMs8.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-B7m2F9UV.js} +4 -4
- package/dist/{Setting-BRueNgc4.js → Setting-CDM4RhLW.js} +14 -14
- package/dist/{SettingAdvertisements-BrVcQyhF.js → SettingAdvertisements-4XEAJzlL.js} +12 -12
- package/dist/{Settings-fOvXd29Z.js → Settings-D-0tvZRr.js} +5 -5
- package/dist/{Store-rrh2pIHH.js → Store-C56dXtc4.js} +27 -27
- package/dist/{StoreRewards-D-jivVKr.js → StoreRewards-DQ1Q6WS6.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-CvQXsZbH.js → StoreTransactions.vue_vue_type_script_setup_true_lang-LLD91Rz6.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DbnY9VE9.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-Bvy4NJMd.js} +2 -2
- package/dist/{Tier-DJiLtw3M.js → Tier-D4CPZqw7.js} +27 -27
- package/dist/{Title-s0bzA7yZ.js → Title-DCbwhUic.js} +23 -23
- package/dist/{Transaction-CQ-CJ_eh.js → Transaction-C5LrasXr.js} +2 -2
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-Bfy8SZH1.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Cl9b4mrK.js} +6 -6
- package/dist/{Voucher-9vydRET7.js → Voucher-rrVbNZKR.js} +18 -18
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Dq7veRL5.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BIq227nz.js} +12 -12
- package/dist/{WhatsappAccount-D12Hvzfl.js → WhatsappAccount-oJDo5zTr.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BrZEDi6O.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-aCQCYFYq.js} +1 -1
- package/dist/WhatsappBot-Cl64wG_F.js +876 -0
- package/dist/{WhatsappBotLogs-CK_V_iT5.js → WhatsappBotLogs-D3uT4EiB.js} +64 -64
- package/dist/WhatsappBotSettings-Cs1lLxh-.js +705 -0
- package/dist/{WhatsappLayout-bOyNHGUI.js → WhatsappLayout-C639d2HP.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-Cytrffdh.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-96t_eUzk.js → ZodTextField.vue_vue_type_script_setup_true_lang-C39_95SZ.js} +2 -2
- package/dist/{app-DV3e2LkD.js → app-CgimGODl.js} +214 -214
- package/dist/app.js +1 -1
- package/dist/{base.export-DQUUtGmy.js → base.export-D2P6HFvo.js} +2 -2
- package/dist/{business-BZ0boE-5.js → business-Bu5TqSA0.js} +1 -1
- package/dist/{campaign-CsfFq2S-.js → campaign-BFIXSgdJ.js} +8 -8
- package/dist/{campaign-DMrtYWcs.js → campaign-zJxttSIk.js} +2 -2
- package/dist/{campaign.fn-C-CdNNdR.js → campaign.fn-gvjlcEfe.js} +20 -20
- package/dist/{collection.fn-C-rryKSc.js → collection.fn-DOm0HsSh.js} +2 -2
- package/dist/{currency-BOd9iVZV.js → currency-BpbQvbm8.js} +1 -1
- package/dist/{duplicateCampaign-ey_rW0Bz.js → duplicateCampaign-CvsvjRE9.js} +2 -2
- package/dist/{effect-BP6Hkxmj.js → effect-D-GtNB3n.js} +1 -1
- package/dist/{email-addresses-CO61QAq0.js → email-addresses-BKMoAtMi.js} +2 -2
- package/dist/{feature-flag-Bq1SgbYC.js → feature-flag-BJ_eyKsq.js} +1 -1
- package/dist/{feature-flag-lvPP0ED-.js → feature-flag-Bo-k5sIG.js} +1 -1
- package/dist/{helper-BRpts-M-.js → helper-CkfjBgMM.js} +1 -1
- package/dist/{index-CoROn5OA.js → index-B6kU3PkV.js} +2 -2
- package/dist/{index-B0RavybO.js → index-BAtUrtqM.js} +2 -2
- package/dist/{index-Bn19rfby.js → index-BKsxIwbi.js} +3 -3
- package/dist/{index-R5WS21OL.js → index-BdEXUNoG.js} +1 -1
- package/dist/{index-BV5aPSYo.js → index-Bhl5IRXy.js} +9 -9
- package/dist/{index-Cj-eugzc.js → index-BpTIulTX.js} +1 -1
- package/dist/{index-RwNlbTO8.js → index-C-iwb2Ln.js} +49 -55
- package/dist/{index-03WIXl-H.js → index-CCEXSPxk.js} +2 -2
- package/dist/{index-CsBjAM3E.js → index-CIej31pF.js} +1 -1
- package/dist/{index-DucKyzrD.js → index-CQ8XFbBk.js} +2 -2
- package/dist/{index-Bk20uvPY.js → index-CfQuYqXn.js} +1 -1
- package/dist/{index-D3wGTCWf.js → index-CuREApMc.js} +2 -2
- package/dist/{index-DIZLkVe0.js → index-D0JK99Ko.js} +9 -8
- package/dist/{index-_Cj-bsd_.js → index-DKxN1mMS.js} +4 -4
- package/dist/{index-ZRE89TKq.js → index-DQ8JJhxs.js} +15 -21
- package/dist/{index-D1t4_KaG.js → index-DUAZOMVJ.js} +1 -1
- package/dist/{index-D41kjcrZ.js → index-DqGs6RJG.js} +4 -4
- package/dist/{index-VYI0zWNC.js → index-DwU3fsLW.js} +2 -2
- package/dist/{index-CrBhcMaL.js → index-LygS9WsG.js} +3 -3
- package/dist/{index-BDNkoALK.js → index-feCrYhi6.js} +1 -1
- package/dist/{index-mToWKHVs.js → index-zTvr2GR4.js} +2 -2
- package/dist/{index.esm2017-B_Sag8Pg.js → index.esm2017-DZi9IQPS.js} +1 -1
- package/dist/{loading-C5fVI0ry.js → loading-Brid2wnu.js} +1 -1
- package/dist/{lodash-COo8_xCU.js → lodash-C1epw3Kv.js} +1 -1
- package/dist/{member-import-I_pKwUfF.js → member-import-DAIxTIiu.js} +1 -1
- package/dist/{membership-BgfH9Kva.js → membership-BZmljFhF.js} +2 -2
- package/dist/{money-Cr07YDlV.js → money-cLcyGcSZ.js} +1 -1
- package/dist/{number-DFsj0dkh.js → number-C2jPLJr2.js} +1 -1
- package/dist/{objectid-Cu89BzwI.js → objectid-C-wocWKI.js} +6 -6
- package/dist/{onboarding-DlkJCm-5.js → onboarding-oRfy_g05.js} +3 -3
- package/dist/{onboardingSetup-BEhVj613.js → onboardingSetup-BLD6m8HY.js} +2 -2
- package/dist/{plugins-CPTtiKqf.js → plugins-CUsr9vB0.js} +3 -3
- package/dist/{reward-DqY0mQ_5.js → reward-UOT03odb.js} +1 -1
- package/dist/{rule-mJJ48eKw.js → rule-BgJnPjkI.js} +10 -10
- package/dist/{template-C1QftpDG.js → template-BZyFhr73.js} +6 -6
- package/dist/{timezone-BBgBHels.js → timezone-BXA4wq7Y.js} +1 -1
- package/dist/{transaction.fn-Sr0hj3kY.js → transaction.fn-CQ4fpRt3.js} +2 -2
- package/dist/{trigger-PUP0mwKM.js → trigger-DXJCGT0q.js} +5 -5
- package/dist/useMarketingMaterialActions-B-Wib5ga.js +125 -0
- package/dist/{usePagination-Be6nIQ9y.js → usePagination-Pp4okWr8.js} +1 -1
- package/dist/{user-DBSYzG_9.js → user-B3gXcAIy.js} +1 -1
- package/dist/{vue-i18n-C6c2jsH3.js → vue-i18n-DWGiC_vs.js} +158 -158
- package/dist/{xlsx-Bfo19lFv.js → xlsx-CCaDUTgW.js} +1 -1
- package/dist/{zod-CihbDg3N.js → zod-CPwjOxvW.js} +1 -1
- package/package.json +1 -1
- package/dist/Marketing-C2cVJacf.js +0 -236
- package/dist/WhatsappBot-o5b_0CnB.js +0 -629
- package/dist/WhatsappBotSettings-BooibLUg.js +0 -694
- package/dist/useMarketingMaterialActions-faslwaHd.js +0 -96
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { defineComponent as T, resolveComponent as k, openBlock as
|
|
2
|
-
import { u as E } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as T, resolveComponent as k, openBlock as l, createElementBlock as d, createElementVNode as s, toDisplayString as i, unref as u, createVNode as _, computed as w, Fragment as M, renderList as V, createCommentVNode as $, normalizeClass as ee, createTextVNode as P, createBlock as I, ref as b, watch as G, onBeforeUnmount as te, withCtx as O } from "vue";
|
|
2
|
+
import { u as E } from "./vue-i18n-DWGiC_vs.js";
|
|
3
3
|
import { useCoreStore as oe } from "@feedmepos/mf-common";
|
|
4
|
-
import { S as ne } from "./index-
|
|
5
|
-
import { w as ae } from "./index-
|
|
4
|
+
import { S as ne } from "./index-CCEXSPxk.js";
|
|
5
|
+
import { w as ae } from "./index-DQ8JJhxs.js";
|
|
6
6
|
import { _ as se } from "./remy-icon-BhUGu2NI.js";
|
|
7
|
-
import { _ as le } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-
|
|
8
|
-
import { C as U } from "./timezone-
|
|
9
|
-
import { m as re } from "./index-
|
|
7
|
+
import { _ as le } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DpPxWp2x.js";
|
|
8
|
+
import { C as U } from "./timezone-BXA4wq7Y.js";
|
|
9
|
+
import { m as re } from "./index-DUAZOMVJ.js";
|
|
10
10
|
const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-[12px] rounded-br-[4px] bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary" }, ie = { class: "flex items-center gap-[4px] min-h-[28px] px-[10px] py-[4px] text-[11px] font-medium cursor-pointer list-none rounded-[12px] focus-visible:outline-fm-color-primary" }, pe = { class: "flex-1 group-open:hidden" }, ue = { class: "flex-1 hidden group-open:inline" }, me = { class: "px-[10px] pt-[2px] pb-[8px] text-[13px] leading-[18px] whitespace-pre-wrap break-words" }, de = /* @__PURE__ */ T({
|
|
11
11
|
__name: "ThoughtBubble",
|
|
12
12
|
props: {
|
|
@@ -16,7 +16,7 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
16
16
|
const { t: v } = E();
|
|
17
17
|
return (n, g) => {
|
|
18
18
|
const c = k("FmIcon");
|
|
19
|
-
return
|
|
19
|
+
return l(), d("details", ce, [
|
|
20
20
|
s("summary", ie, [
|
|
21
21
|
g[0] || (g[0] = s("img", {
|
|
22
22
|
src: se,
|
|
@@ -24,8 +24,8 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
24
24
|
"aria-hidden": "true",
|
|
25
25
|
class: "w-[16px] h-[16px] shrink-0"
|
|
26
26
|
}, null, -1)),
|
|
27
|
-
s("span", pe, i(
|
|
28
|
-
s("span", ue, i(
|
|
27
|
+
s("span", pe, i(u(v)("connect.whatsappBot.logs.thought")), 1),
|
|
28
|
+
s("span", ue, i(u(v)("connect.whatsappBot.logs.hideThought")), 1),
|
|
29
29
|
_(c, {
|
|
30
30
|
name: "keyboard_arrow_down",
|
|
31
31
|
size: "sm",
|
|
@@ -56,7 +56,7 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
56
56
|
setup(m, { emit: v }) {
|
|
57
57
|
const n = m, g = v, { t: c, locale: t } = E(), o = w(
|
|
58
58
|
() => n.conversation.customerName || n.conversation.phoneNumber || c("connect.whatsappBot.logs.unknownCustomer")
|
|
59
|
-
),
|
|
59
|
+
), p = w(
|
|
60
60
|
() => n.conversation.customerName ? n.conversation.customerName.trim().split(/\s+/).slice(0, 2).map((f) => Array.from(f)[0]).join("").toLocaleUpperCase(t.value) : "?"
|
|
61
61
|
), A = w(
|
|
62
62
|
() => new Intl.DateTimeFormat(t.value, {
|
|
@@ -78,12 +78,12 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
78
78
|
}
|
|
79
79
|
return (f, B) => {
|
|
80
80
|
const N = k("FmIcon");
|
|
81
|
-
return
|
|
81
|
+
return l(), d("article", xe, [
|
|
82
82
|
s("header", fe, [
|
|
83
|
-
s("div", he, i(
|
|
83
|
+
s("div", he, i(p.value), 1),
|
|
84
84
|
s("div", ve, [
|
|
85
85
|
s("h2", ge, i(o.value), 1),
|
|
86
|
-
s("p", ye, i(m.conversation.phoneNumber ||
|
|
86
|
+
s("p", ye, i(m.conversation.phoneNumber || u(c)("connect.whatsappBot.phoneUnavailable")) + " · " + i(u(c)("connect.whatsappBot.logs.via", { name: m.accountName })), 1)
|
|
87
87
|
]),
|
|
88
88
|
s("time", {
|
|
89
89
|
datetime: m.conversation.lastCreatedAt,
|
|
@@ -91,34 +91,34 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
91
91
|
}, i(A.value.format(new Date(m.conversation.lastCreatedAt))), 9, _e)
|
|
92
92
|
]),
|
|
93
93
|
s("ol", we, [
|
|
94
|
-
(
|
|
95
|
-
key:
|
|
94
|
+
(l(!0), d(M, null, V(m.conversation.logs, (r) => (l(), d("li", {
|
|
95
|
+
key: r.id,
|
|
96
96
|
class: "flex flex-col gap-[4px] min-w-0"
|
|
97
97
|
}, [
|
|
98
|
-
|
|
99
|
-
|
|
98
|
+
r.type === "message" ? (l(), d(M, { key: 0 }, [
|
|
99
|
+
r.isFromMe && !r.isFromBot ? (l(), d("span", be, i(u(c)("connect.whatsappBot.logs.sentByStaff")), 1)) : $("", !0),
|
|
100
100
|
s("div", {
|
|
101
101
|
class: ee([
|
|
102
102
|
"px-[10px] py-[6px] text-[14px] leading-[20px] whitespace-pre-wrap break-words min-w-0",
|
|
103
|
-
|
|
103
|
+
r.isFromMe ? "self-end max-w-[80%] bg-fm-color-primary-oats rounded-[12px] rounded-br-[4px]" : "self-start max-w-[75%] bg-[#F7F7F7] rounded-[12px] rounded-bl-[4px]"
|
|
104
104
|
])
|
|
105
105
|
}, [
|
|
106
|
-
P(i(h(
|
|
107
|
-
|
|
106
|
+
P(i(h(r)) + " ", 1),
|
|
107
|
+
r.isEdit ? (l(), d("span", ke, " (" + i(u(c)("connect.whatsappBot.logs.edited")) + ") ", 1)) : $("", !0),
|
|
108
108
|
s("time", {
|
|
109
|
-
datetime:
|
|
109
|
+
datetime: r.timestamp,
|
|
110
110
|
class: "float-right mt-[6px] ml-[10px] text-[11px] leading-[14px] text-fm-color-typo-tertiary tabular-nums"
|
|
111
|
-
}, i(y.value.format(new Date(
|
|
111
|
+
}, i(y.value.format(new Date(r.timestamp))), 9, Be)
|
|
112
112
|
], 2)
|
|
113
|
-
], 64)) :
|
|
113
|
+
], 64)) : r.type === "thought" ? (l(), I(de, {
|
|
114
114
|
key: 1,
|
|
115
|
-
text:
|
|
116
|
-
}, null, 8, ["text"])) :
|
|
115
|
+
text: r.text
|
|
116
|
+
}, null, 8, ["text"])) : r.type === "escalate" ? (l(), d("button", {
|
|
117
117
|
key: 2,
|
|
118
118
|
type: "button",
|
|
119
|
-
title:
|
|
119
|
+
title: u(c)("connect.whatsappBot.logs.openNotificationGroup"),
|
|
120
120
|
class: "self-end flex items-start gap-[8px] max-w-[80%] py-[8px] pr-[12px] pl-[8px] border border-fm-color-neutral-gray-200 rounded-[8px] text-left hover:bg-fm-color-neutral-gray-100/50 focus-visible:outline-fm-color-primary",
|
|
121
|
-
onClick: (C) => g("notificationGroup",
|
|
121
|
+
onClick: (C) => g("notificationGroup", r.clientId)
|
|
122
122
|
}, [
|
|
123
123
|
s("span", Fe, [
|
|
124
124
|
_(N, {
|
|
@@ -127,9 +127,9 @@ const ce = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
127
127
|
})
|
|
128
128
|
]),
|
|
129
129
|
s("span", Ae, [
|
|
130
|
-
s("span", Ne, i(
|
|
131
|
-
s("span", $e, i(
|
|
132
|
-
reason:
|
|
130
|
+
s("span", Ne, i(u(c)("connect.whatsappBot.logs.escalated")), 1),
|
|
131
|
+
s("span", $e, i(u(c)("connect.whatsappBot.logs.reason", {
|
|
132
|
+
reason: r.reason
|
|
133
133
|
})), 1)
|
|
134
134
|
])
|
|
135
135
|
], 8, Ce)) : $("", !0)
|
|
@@ -147,8 +147,8 @@ function Me(m, v) {
|
|
|
147
147
|
const o = JSON.stringify([
|
|
148
148
|
t.accountLid || t.clientId,
|
|
149
149
|
t.chatJid
|
|
150
|
-
]),
|
|
151
|
-
t.customerName && (
|
|
150
|
+
]), p = g.get(o) ?? { name: "", phone: "" };
|
|
151
|
+
t.customerName && (p.name = t.customerName), t.phoneNumber && (p.phone = t.phoneNumber), g.set(o, p);
|
|
152
152
|
const A = re.tz(t.createdAt, v).format("YYYY-MM-DD"), y = `${o}:${A}`, h = n.get(y);
|
|
153
153
|
h ? (h.logs.push(t), h.lastCreatedAt = t.createdAt, h.clientId = t.clientId) : n.set(y, {
|
|
154
154
|
id: y,
|
|
@@ -162,10 +162,10 @@ function Me(m, v) {
|
|
|
162
162
|
});
|
|
163
163
|
}
|
|
164
164
|
for (const t of n.values()) {
|
|
165
|
-
const o = t.logs[0],
|
|
165
|
+
const o = t.logs[0], p = g.get(
|
|
166
166
|
JSON.stringify([o.accountLid || o.clientId, o.chatJid])
|
|
167
167
|
);
|
|
168
|
-
t.customerName = (
|
|
168
|
+
t.customerName = (p == null ? void 0 : p.name) ?? "", t.phoneNumber = (p == null ? void 0 : p.phone) ?? "";
|
|
169
169
|
}
|
|
170
170
|
return [...n.values()].sort(
|
|
171
171
|
(t, o) => Date.parse(o.lastCreatedAt) - Date.parse(t.lastCreatedAt)
|
|
@@ -202,7 +202,7 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
202
202
|
setup(m) {
|
|
203
203
|
const v = m, { t: n } = E(), g = oe(), c = w(() => ne.getBusinessId() ?? ""), t = w(
|
|
204
204
|
() => U[g.currentCountry.value || "MY"] ?? U.MY
|
|
205
|
-
), o = b([]),
|
|
205
|
+
), o = b([]), p = b(""), A = b([]), y = b([]), h = b(!0), f = b(""), B = b(), N = b(!1), r = b("");
|
|
206
206
|
let C;
|
|
207
207
|
function S(a) {
|
|
208
208
|
var F;
|
|
@@ -211,7 +211,7 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
211
211
|
)) == null ? void 0 : F.account;
|
|
212
212
|
return (e == null ? void 0 : e.businessName) || (e == null ? void 0 : e.name) || (e == null ? void 0 : e.phoneNumber) || n("connect.whatsappBot.logs.unknownAccount", { id: a.slice(-6) });
|
|
213
213
|
}
|
|
214
|
-
const
|
|
214
|
+
const Z = w(
|
|
215
215
|
() => [
|
|
216
216
|
.../* @__PURE__ */ new Set([
|
|
217
217
|
...v.accounts.map((a) => a.clientId),
|
|
@@ -220,11 +220,11 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
220
220
|
])
|
|
221
221
|
].map((a) => ({ clientId: a, label: S(a) }))
|
|
222
222
|
), J = w(() => {
|
|
223
|
-
const a =
|
|
224
|
-
return
|
|
223
|
+
const a = p.value.trim().toLocaleLowerCase();
|
|
224
|
+
return Z.value.filter(
|
|
225
225
|
(e) => e.label.toLocaleLowerCase().includes(a)
|
|
226
226
|
);
|
|
227
|
-
}),
|
|
227
|
+
}), R = w(() => {
|
|
228
228
|
const a = o.value, e = a.length ? a.length === 1 ? S(a[0]) : n("connect.whatsappBot.logs.selectedAccounts", {
|
|
229
229
|
count: a.length
|
|
230
230
|
}) : n("connect.whatsappBot.logs.allAccounts");
|
|
@@ -236,12 +236,12 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
236
236
|
o.value = o.value.includes(a) ? o.value.filter((e) => e !== a) : [...o.value, a];
|
|
237
237
|
}
|
|
238
238
|
function K(a) {
|
|
239
|
-
|
|
239
|
+
r.value = "";
|
|
240
240
|
const e = v.accounts.find(
|
|
241
241
|
(F) => F.clientId === a
|
|
242
242
|
);
|
|
243
243
|
if (!e) {
|
|
244
|
-
|
|
244
|
+
r.value = n("connect.whatsappBot.errors.accountNotFound");
|
|
245
245
|
return;
|
|
246
246
|
}
|
|
247
247
|
B.value = e, N.value = !0;
|
|
@@ -272,14 +272,14 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
272
272
|
}
|
|
273
273
|
}
|
|
274
274
|
return G(c, () => {
|
|
275
|
-
o.value = [],
|
|
275
|
+
o.value = [], p.value = "", y.value = [], N.value = !1, B.value = void 0, r.value = "";
|
|
276
276
|
}), G(
|
|
277
277
|
[c, () => o.value.join(",")],
|
|
278
278
|
() => void D(),
|
|
279
279
|
{ immediate: !0 }
|
|
280
280
|
), te(() => C == null ? void 0 : C.abort()), (a, e) => {
|
|
281
281
|
const F = k("FmChip"), L = k("FmSearch"), Q = k("FmMenuDivider"), z = k("FmMenuItem"), X = k("FmMenu"), j = k("FmButton"), q = k("FmCircularProgress");
|
|
282
|
-
return
|
|
282
|
+
return l(), d(M, null, [
|
|
283
283
|
s("section", Se, [
|
|
284
284
|
s("div", De, [
|
|
285
285
|
_(X, {
|
|
@@ -288,35 +288,35 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
288
288
|
}, {
|
|
289
289
|
"menu-button": O(() => [
|
|
290
290
|
_(F, {
|
|
291
|
-
label:
|
|
291
|
+
label: R.value,
|
|
292
292
|
"right-icon": "keyboard_arrow_down",
|
|
293
293
|
class: "text-fm-color-typo-secondary cursor-pointer"
|
|
294
294
|
}, null, 8, ["label"])
|
|
295
295
|
]),
|
|
296
296
|
default: O(() => [
|
|
297
297
|
_(L, {
|
|
298
|
-
modelValue:
|
|
299
|
-
"onUpdate:modelValue": e[0] || (e[0] = (x) =>
|
|
300
|
-
placeholder:
|
|
298
|
+
modelValue: p.value,
|
|
299
|
+
"onUpdate:modelValue": e[0] || (e[0] = (x) => p.value = x),
|
|
300
|
+
placeholder: u(n)("connect.whatsappBot.logs.searchAccounts")
|
|
301
301
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
302
302
|
_(Q),
|
|
303
303
|
_(z, {
|
|
304
|
-
label:
|
|
304
|
+
label: u(n)("connect.whatsappBot.logs.allAccounts"),
|
|
305
305
|
"model-value": !o.value.length,
|
|
306
306
|
"has-checkbox": "",
|
|
307
307
|
onClick: e[1] || (e[1] = (x) => o.value = [])
|
|
308
308
|
}, null, 8, ["label", "model-value"]),
|
|
309
309
|
s("div", Le, [
|
|
310
|
-
(
|
|
310
|
+
(l(!0), d(M, null, V(J.value, (x) => (l(), I(z, {
|
|
311
311
|
key: x.clientId,
|
|
312
312
|
label: x.label,
|
|
313
313
|
"model-value": o.value.includes(x.clientId),
|
|
314
314
|
"has-checkbox": "",
|
|
315
315
|
onClick: (Oe) => H(x.clientId)
|
|
316
316
|
}, null, 8, ["label", "model-value", "onClick"]))), 128)),
|
|
317
|
-
J.value.length ? $("", !0) : (
|
|
317
|
+
J.value.length ? $("", !0) : (l(), I(z, {
|
|
318
318
|
key: 0,
|
|
319
|
-
label:
|
|
319
|
+
label: u(n)("connect.whatsappBot.logs.noMatchingAccounts"),
|
|
320
320
|
disabled: ""
|
|
321
321
|
}, null, 8, ["label"]))
|
|
322
322
|
])
|
|
@@ -326,38 +326,38 @@ const Se = { class: "mt-[20px] flex flex-col gap-[16px]" }, De = { class: "flex
|
|
|
326
326
|
_(j, {
|
|
327
327
|
variant: "plain",
|
|
328
328
|
"prepend-icon": "refresh",
|
|
329
|
-
label:
|
|
329
|
+
label: u(n)("connect.whatsappBot.logs.refresh"),
|
|
330
330
|
disabled: h.value,
|
|
331
331
|
class: "ml-auto",
|
|
332
332
|
onClick: e[2] || (e[2] = (x) => D())
|
|
333
333
|
}, null, 8, ["label", "disabled"])
|
|
334
334
|
]),
|
|
335
|
-
|
|
336
|
-
h.value ? (
|
|
335
|
+
r.value ? (l(), d("p", ze, i(r.value), 1)) : $("", !0),
|
|
336
|
+
h.value ? (l(), d("div", Ve, [
|
|
337
337
|
_(q),
|
|
338
|
-
P(" " + i(
|
|
339
|
-
])) : f.value ? (
|
|
338
|
+
P(" " + i(u(n)("connect.whatsappBot.logs.loading")), 1)
|
|
339
|
+
])) : f.value ? (l(), d("div", Te, [
|
|
340
340
|
s("p", Ee, i(f.value), 1),
|
|
341
341
|
_(j, {
|
|
342
342
|
variant: "secondary",
|
|
343
343
|
"prepend-icon": "refresh",
|
|
344
|
-
label:
|
|
344
|
+
label: u(n)("connect.whatsappBot.tryAgain"),
|
|
345
345
|
onClick: e[3] || (e[3] = (x) => D())
|
|
346
346
|
}, null, 8, ["label"])
|
|
347
|
-
])) : Y.value.length ? (
|
|
348
|
-
(
|
|
347
|
+
])) : Y.value.length ? (l(), d("div", Ge, [
|
|
348
|
+
(l(!0), d(M, null, V(Y.value, (x) => (l(), I(Ie, {
|
|
349
349
|
key: x.id,
|
|
350
350
|
conversation: x,
|
|
351
351
|
"account-name": S(x.clientId),
|
|
352
352
|
timezone: t.value,
|
|
353
353
|
onNotificationGroup: K
|
|
354
354
|
}, null, 8, ["conversation", "account-name", "timezone"]))), 128))
|
|
355
|
-
])) : (
|
|
356
|
-
s("h2", Ye, i(
|
|
357
|
-
s("p", je, i(
|
|
355
|
+
])) : (l(), d("div", Je, [
|
|
356
|
+
s("h2", Ye, i(u(n)("connect.whatsappBot.logs.emptyTitle")), 1),
|
|
357
|
+
s("p", je, i(u(n)("connect.whatsappBot.logs.emptyDescription")), 1)
|
|
358
358
|
]))
|
|
359
359
|
]),
|
|
360
|
-
B.value ? (
|
|
360
|
+
B.value ? (l(), I(le, {
|
|
361
361
|
key: 0,
|
|
362
362
|
modelValue: N.value,
|
|
363
363
|
"onUpdate:modelValue": e[4] || (e[4] = (x) => N.value = x),
|