@feedmepos/mf-connect 0.1.126-prod → 0.1.127-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-DRHHPaMz.js → App-CLrxVFgX.js} +224 -216
- package/dist/AuditLogs-DYlfToAk.js +2016 -0
- package/dist/{Bin-FkcYLSTm.js → Bin-C0CugBW4.js} +8 -8
- package/dist/{Broadcast-Cgqp_BMa.js → Broadcast-DhVQa_WW.js} +22 -21
- package/dist/{CampaignAnalytic-kKZ_BwW0.js → CampaignAnalytic-6jeG5U90.js} +97 -97
- package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CX0mWLjO.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Cxydrkof.js} +9 -10
- package/dist/{Card-Bu1y37hV.js → Card-cpLj34Oy.js} +23 -23
- package/dist/{Collections-B3mJkBCT.js → Collections-CdRpJuHO.js} +197 -185
- package/dist/{Credit-Bn-2EcVy.js → Credit-E_N_yfnJ.js} +21 -20
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-Cz7pZ7LD.js → DateRangeChip.vue_vue_type_script_setup_true_lang-Dq-2vUqT.js} +1 -1
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-CSXO2bYC.js +4584 -0
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-B7XBiv4l.js → EffectSheet.vue_vue_type_style_index_0_lang-BeQZjLIw.js} +33 -33
- package/dist/{Experience-CunbmoAu.js → Experience-D9i0ax4C.js} +32 -31
- package/dist/{FileSaver.min-ChFSxYyS.js → FileSaver.min-BOE2RBne.js} +1 -1
- package/dist/{Game-dFDwx_UJ.js → Game-CirwX_l1.js} +19 -18
- package/dist/{GiftCardSetup-DYpEqqX0.js → GiftCardSetup-DpJb_azW.js} +31 -31
- package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DxJdI6gc.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-ff6Nfvxe.js} +140 -128
- package/dist/{Goals-DuZzgM_K.js → Goals-TejbPs-I.js} +4 -4
- package/dist/Grab-CeUX-LlF.js +301 -0
- package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-lDulspkF.js → ImageInput.vue_vue_type_script_setup_true_lang-CnZzRDGS.js} +1 -1
- package/dist/{Index-BxB2ohT0.js → Index-gqWBDZBN.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-9sKJE1A5.js → LocationPicker.vue_vue_type_script_setup_true_lang-CzobgD7L.js} +1 -1
- package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-CxBNYzcz.js → LottieAnimation.vue_vue_type_script_setup_true_lang-DgeD1RQq.js} +1 -1
- package/dist/{LoyaltyDashboard-DQzGvQ7j.js → LoyaltyDashboard-R22oQHTd.js} +82 -82
- package/dist/{MainLayout-MAZ1S06H.js → MainLayout-pJBEBaM-.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-CeF3LU-N.js → MainLayout.vue_vue_type_script_setup_true_lang-IX_utv2Z.js} +3 -3
- package/dist/{Marketing-ACF6F7be.js → Marketing-5gMwO1jV.js} +4 -4
- package/dist/{MarketingMaterialEdit-B8NfkoHg.js → MarketingMaterialEdit-BaHNX_qE.js} +214 -211
- package/dist/{Member-rLxDUOr8.js → Member-Cd0oraEq.js} +7 -7
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-DzyM1fW_.js +1322 -0
- package/dist/{MemberImportHistory-BuG6DmdV.js → MemberImportHistory-C_RkY3fg.js} +7 -7
- package/dist/{MemberList-CC6zm_I6.js → MemberList-CJK1akUC.js} +103 -105
- package/dist/{MemberTransactions-Bw2xu6jZ.js → MemberTransactions-DP6schuy.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-Cav8gQUK.js → MessageInput.vue_vue_type_script_setup_true_lang-BaivunRx.js} +12 -12
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-8wdY4FnI.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DOdYyPp2.js} +1 -1
- package/dist/{Mission-DnEcbALs.js → Mission-DJ40IcG9.js} +22 -21
- package/dist/{Overview-DShFohlk.js → Overview-CaQlLSBg.js} +145 -144
- package/dist/{Overview-COytI5xN.js → Overview-DXHjNmIO.js} +21 -21
- package/dist/{Point-CWYwlx0i.js → Point-D0Qqmgai.js} +22 -21
- package/dist/{Promotion-LBrQYtad.js → Promotion-CQU2-tpG.js} +137 -131
- package/dist/{Queue-DKg5EvDM.js → Queue-B-Uki3qh.js} +46 -46
- package/dist/{Record--lYpawLN.js → Record-BvQ0nVja.js} +9 -9
- package/dist/{Review-C4pNmJ7n.js → Review-DMfBPU_D.js} +2 -2
- package/dist/ReviewFacebookCallback-Bq6JQ7LR.js +225 -0
- package/dist/{ReviewGoogleCallback-ge8fL_A-.js → ReviewGoogleCallback-Bg9PFxog.js} +5 -5
- package/dist/{Reward-B67r1Bpz.js → Reward-CNC0z98e.js} +16 -16
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-Bt0Kx2--.js → RewardGroup.vue_vue_type_script_setup_true_lang-DXr-5wJE.js} +14 -14
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-OznhirAU.js +1923 -0
- package/dist/{Segment-DeSC3z5G.js → Segment-V0ZQJkN-.js} +304 -307
- package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DdjC7X1V.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-BmFp2pst.js} +15 -15
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-Crys59UO.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-C0IbEZMG.js} +4 -4
- package/dist/{Setting-DiDcMU5E.js → Setting-DCb6IIrk.js} +17 -17
- package/dist/{SettingAdvertisements-3wMI9egH.js → SettingAdvertisements-Dc9XfzVl.js} +12 -12
- package/dist/Settings-BIjIfmFI.js +286 -0
- package/dist/{Store-DgefqByH.js → Store-DkoB_5IF.js} +29 -29
- package/dist/{StoreRewards-CS2h5RVB.js → StoreRewards-a4ujLMfY.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-gPR8sn4k.js → StoreTransactions.vue_vue_type_script_setup_true_lang-UbMY0RzG.js} +25 -25
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-BWjb1wHV.js +7007 -0
- package/dist/{Tier-Cye6888q.js → Tier-1WKuUirS.js} +2583 -688
- package/dist/{Title-B1eJh5oy.js → Title-CznZg4jL.js} +96 -95
- package/dist/{Transaction-ouzdsBUx.js → Transaction-DBRQDmA3.js} +2 -2
- package/dist/{Upselling-CdQd2Fuk.js → Upselling-CjZvUUqn.js} +3 -3
- package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BSlxe1Hf.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DS4hdSE9.js} +26 -26
- package/dist/{Voucher-CJJt8VlJ.js → Voucher-Di6VhoSM.js} +19 -19
- package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-BzbNaK6H.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BjSzCnBw.js} +12 -12
- package/dist/{WhatsappAccount-DIxSP6Tp.js → WhatsappAccount-DdXadlHI.js} +6 -6
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-L9Y5lAft.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-Cnlvi-GG.js} +1 -1
- package/dist/WhatsappBot-DwhQmZLJ.js +882 -0
- package/dist/{WhatsappBotLogs-D8IfLHk3.js → WhatsappBotLogs-BAglKUAZ.js} +66 -66
- package/dist/WhatsappBotSettings-DslJTj2X.js +945 -0
- package/dist/{WhatsappLayout-3rWwmGRd.js → WhatsappLayout-14847AOz.js} +3 -3
- package/dist/{WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-C3N-loYJ.js → WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-otzgv6Jh.js} +3 -3
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-D1dORvMi.js → ZodTextField.vue_vue_type_script_setup_true_lang-BEY-LOVu.js} +2 -2
- package/dist/{app-BXqas0p1.js → app-KbxCI4gY.js} +4204 -3400
- package/dist/app.js +4 -3
- package/dist/{base.export-DQCZiS2E.js → base.export-DH8OxNrx.js} +2 -2
- package/dist/business-DuKNr9P7.js +83 -0
- package/dist/{campaign-C2X6aa7B.js → campaign-DR5xHhgA.js} +31 -25
- package/dist/{campaign-DASPASQ0.js → campaign-Ddv-RZgo.js} +121 -94
- package/dist/{campaign.enum-BqekIiiN.js → campaign.enum-DsaSpHDQ.js} +3 -2
- package/dist/campaign.fn-CJlEovlZ.js +776 -0
- package/dist/{collectible.enum-Liy2wH3s.js → collectible.enum-CDHT9uk3.js} +1 -1
- package/dist/{collection.fn-C7jNdh0A.js → collection.fn-DTZs-hUX.js} +2 -2
- package/dist/{currency-BvBM_Io9.js → currency-1-Yhpyv5.js} +1 -1
- package/dist/duplicateCampaign-BncSxYSg.js +51 -0
- package/dist/{effect-BA1yh6Mj.js → effect-TTD5--LN.js} +1 -1
- package/dist/{email-addresses-haS5P7hq.js → email-addresses-pxXp67Al.js} +2 -2
- package/dist/{feature-flag-B4bJnuei.js → feature-flag-CFVZl4ed.js} +84 -84
- package/dist/google-BQK68wbe.js +5 -0
- package/dist/{helper-BtTBvFuA.js → helper-BC_Cl5VR.js} +1 -1
- package/dist/{index-ChGZ_S3V.js → index-42Wl_5UE.js} +1 -1
- package/dist/{index-Dm2Dvxph.js → index-BRl7Besd.js} +23 -23
- package/dist/{index-DAtVp1NI.js → index-BxUMqeaY.js} +2700 -2614
- package/dist/{index-Dg972Dfv.js → index-ByFFDLTo.js} +1 -1
- package/dist/{index-DtbR7I4C.js → index-CBKbnJRo.js} +9 -9
- package/dist/index-CGtlXLTG.js +10767 -0
- package/dist/{index-CH-uRaZH.js → index-CRKdLbXL.js} +71 -52
- package/dist/{index-B1dAoOWi.js → index-CaHkqz0W.js} +19 -6
- package/dist/{index-DeomfIu9.js → index-CcXMYJxc.js} +609 -252
- package/dist/{index-B6A6sHpy.js → index-CkiP4iG6.js} +1 -1
- package/dist/{index-g_SHjVWE.js → index-D1iOPNg3.js} +1 -1
- package/dist/{index-D-D0s8PB.js → index-D2Nq0UoL.js} +381 -235
- package/dist/index-D4nA0Z7e.js +19528 -0
- package/dist/{index-BV-YiCDM.js → index-DHw8wo7T.js} +2 -2
- package/dist/{index-C2rjmdar.js → index-DKOoRHPf.js} +4 -4
- package/dist/{index-Q-iHraJ3.js → index-DcbPYZkw.js} +26 -19
- package/dist/{index-C7UBk5gq.js → index-DjwrfZk3.js} +35 -17
- package/dist/{index-BvFq5REc.js → index-EuZfRdBT.js} +10 -10
- package/dist/{index-CJ-BZCvB.js → index-H4XJDOoT.js} +1315 -1243
- package/dist/{index-CXznvd79.js → index-ImU7YXN7.js} +4 -4
- package/dist/{index-BRTy6G9c.js → index-N4EzkcEu.js} +2 -2
- package/dist/{index-CBfVFFME.js → index-j7eLKJK3.js} +198 -198
- package/dist/{index.esm2017-B7iE1Ggr.js → index.esm2017-CBo4j3U1.js} +93 -93
- package/dist/{loading-BvlSfSVK.js → loading-COAu2l7W.js} +1 -1
- package/dist/{lodash-Daey2k0N.js → lodash-Bu1ipIkR.js} +1 -1
- package/dist/{member-import-CF9aym_y.js → member-import-CkiTJIqy.js} +2 -2
- package/dist/{membership-DfG-fl80.js → membership-BSEeYyiz.js} +3 -3
- package/dist/{money-SBIQhxqf.js → money-BOaGQSGa.js} +1 -1
- package/dist/{number-Cp1bFK9U.js → number-B2AC2EMT.js} +1 -1
- package/dist/objectid-BKw48v5L.js +145 -0
- package/dist/{onboarding-bjc7C8O-.js → onboarding-ClA8xAnH.js} +25 -25
- package/dist/{onboardingSetup-BAu9TDI6.js → onboardingSetup-DHjnq0H1.js} +2 -2
- package/dist/{plugins-Def73Eyk.js → plugins-DewN43sP.js} +3 -3
- package/dist/{reward-KecVeztH.js → reward-deDdPQiR.js} +1 -1
- package/dist/{rule-kMIC0vOi.js → rule-B8ifutnO.js} +572 -492
- package/dist/style.css +1 -1
- package/dist/template-z3VMmWei.js +227 -0
- package/dist/timezone-BxJDy-bY.js +19 -0
- package/dist/{transaction.fn-Bjy5utxD.js → transaction.fn-CBBhq01K.js} +2 -2
- package/dist/{trigger-DnnOJVUi.js → trigger-B_quLwWr.js} +9 -9
- package/dist/{useMarketingMaterialActions-DMrNOpok.js → useMarketingMaterialActions-DqoRLx1M.js} +4 -4
- package/dist/{usePagination-BCY4a-dh.js → usePagination-Q1fPttcp.js} +1 -1
- package/dist/{user-BTc0S1Vx.js → user-Bw6h9xn-.js} +1 -1
- package/dist/vue-i18n-DpCS1FnK.js +2365 -0
- package/dist/{xlsx-DR5oLrEs.js → xlsx--toeD6hC.js} +1 -1
- package/dist/{zod-CMq39HWn.js → zod-BkNAcpay.js} +1 -1
- package/package.json +6 -2
- package/dist/EditCampaignSheet.vue_vue_type_script_setup_true_lang-DIUEjCFW.js +0 -3638
- package/dist/MemberDetailSheet.vue_vue_type_script_setup_true_lang-Bq3UKX7v.js +0 -1308
- package/dist/ReviewFacebookCallback-BYXwKQNG.js +0 -238
- package/dist/RuleGroup.vue_vue_type_script_setup_true_lang-fLtn32Rw.js +0 -1884
- package/dist/Settings-BR6Y1DBZ.js +0 -179
- package/dist/TargetLocationInput.vue_vue_type_script_setup_true_lang-Cjnkpd1j.js +0 -142
- package/dist/WhatsappBot-BXxoaz7-.js +0 -878
- package/dist/WhatsappBotSettings-Bq9C7pNZ.js +0 -704
- package/dist/business-RsRhXSh8.js +0 -82
- package/dist/campaign.fn-BEX99lsa.js +0 -776
- package/dist/google-C3S8u0mT.js +0 -4
- package/dist/index-C_H8jFYf.js +0 -2743
- package/dist/index-D9zjHXFU.js +0 -27551
- package/dist/objectid-BMRA1fIL.js +0 -145
- package/dist/rule-builder-DgU6P24U.js +0 -102
- package/dist/template-BH9vS8A9.js +0 -275
- package/dist/timezone-CMX1sJ0a.js +0 -20
- package/dist/vue-i18n-7BKLPLxj.js +0 -2365
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as j } from "./vue-i18n-
|
|
1
|
+
import { defineComponent as G, resolveComponent as y, openBlock as n, createElementBlock as p, createElementVNode as s, toDisplayString as l, unref as c, createVNode as h, computed as g, createCommentVNode as k, Fragment as T, renderList as Y, normalizeClass as ee, createTextVNode as te, createBlock as S, ref as w, h as F, watch as J, onBeforeUnmount as xe, withCtx as K, withDirectives as ve, vShow as fe } from "vue";
|
|
2
|
+
import { u as j } from "./vue-i18n-DpCS1FnK.js";
|
|
3
3
|
import { useCoreStore as he } from "@feedmepos/mf-common";
|
|
4
4
|
import { components as ge } from "@feedmepos/ui-library";
|
|
5
|
-
import { S as we } from "./index-
|
|
6
|
-
import { w as Q } from "./index-
|
|
5
|
+
import { S as we } from "./index-EuZfRdBT.js";
|
|
6
|
+
import { w as Q } from "./index-DjwrfZk3.js";
|
|
7
7
|
import { _ as ye } from "./remy-icon-BhUGu2NI.js";
|
|
8
|
-
import { _ as be } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-
|
|
9
|
-
import {
|
|
10
|
-
import { m as _e } from "./index-
|
|
11
|
-
const Be = { 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" }, ke = { 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" }, Ce = { class: "flex-1 group-open:hidden" }, Fe = { class: "flex-1 hidden group-open:inline" }, Ae = { class: "px-[10px] pt-[2px] pb-[8px] text-[13px] leading-[18px] whitespace-pre-wrap break-words" },
|
|
8
|
+
import { _ as be } from "./WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-otzgv6Jh.js";
|
|
9
|
+
import { F as X } from "./timezone-BxJDy-bY.js";
|
|
10
|
+
import { m as _e } from "./index-CkiP4iG6.js";
|
|
11
|
+
const Be = { 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" }, ke = { 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" }, Ce = { class: "flex-1 group-open:hidden" }, Fe = { class: "flex-1 hidden group-open:inline" }, Ae = { class: "px-[10px] pt-[2px] pb-[8px] text-[13px] leading-[18px] whitespace-pre-wrap break-words" }, Ne = /* @__PURE__ */ G({
|
|
12
12
|
__name: "ThoughtBubble",
|
|
13
13
|
props: {
|
|
14
14
|
text: {}
|
|
@@ -37,11 +37,11 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
37
37
|
]);
|
|
38
38
|
};
|
|
39
39
|
}
|
|
40
|
-
}),
|
|
40
|
+
}), $e = { class: "border border-fm-color-neutral-gray-100 rounded-[16px] bg-fm-color-neutral-white overflow-hidden" }, Me = { class: "flex items-center gap-[10px] px-[16px] py-[10px] border-b border-fm-color-neutral-gray-100 flex-wrap" }, Ie = {
|
|
41
41
|
key: 0,
|
|
42
42
|
"aria-hidden": "true",
|
|
43
43
|
class: "w-[28px] h-[28px] rounded-full bg-fm-color-neutral-gray-100 text-fm-color-typo-secondary text-[12px] font-semibold flex items-center justify-center shrink-0"
|
|
44
|
-
},
|
|
44
|
+
}, De = {
|
|
45
45
|
key: 1,
|
|
46
46
|
class: "min-w-0 flex-1"
|
|
47
47
|
}, Se = { class: "text-[14px] font-semibold leading-[20px] break-words" }, Te = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary break-words" }, ze = ["datetime"], Le = { class: "flex flex-col gap-[10px] px-[16px] py-[12px]" }, Ee = {
|
|
@@ -50,7 +50,7 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
50
50
|
}, Ve = {
|
|
51
51
|
key: 0,
|
|
52
52
|
class: "text-[11px] text-fm-color-typo-tertiary"
|
|
53
|
-
}, Ue = ["datetime"],
|
|
53
|
+
}, Ue = ["datetime"], Ye = ["disabled", "title"], Ge = { class: "w-[24px] h-[24px] rounded-full bg-fm-color-secondary-plum/10 text-fm-color-secondary-plum flex items-center justify-center shrink-0" }, je = { class: "flex flex-col min-w-0" }, Oe = { class: "text-[13px] leading-[18px] font-semibold" }, Re = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary whitespace-pre-wrap break-words" }, We = /* @__PURE__ */ G({
|
|
54
54
|
__name: "WhatsappLogConversation",
|
|
55
55
|
props: {
|
|
56
56
|
conversation: {},
|
|
@@ -65,13 +65,13 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
65
65
|
() => o.conversation.customerName || o.conversation.phoneNumber || a("connect.whatsappBot.logs.unknownCustomer")
|
|
66
66
|
), v = g(
|
|
67
67
|
() => o.conversation.customerName ? o.conversation.customerName.trim().split(/\s+/).slice(0, 2).map((f) => Array.from(f)[0]).join("").toLocaleUpperCase(u.value) : "?"
|
|
68
|
-
),
|
|
68
|
+
), D = g(
|
|
69
69
|
() => new Intl.DateTimeFormat(u.value, {
|
|
70
70
|
dateStyle: "medium",
|
|
71
71
|
timeStyle: "short",
|
|
72
72
|
timeZone: o.timezone
|
|
73
73
|
})
|
|
74
|
-
),
|
|
74
|
+
), N = g(
|
|
75
75
|
() => new Intl.DateTimeFormat(u.value, {
|
|
76
76
|
hour: "2-digit",
|
|
77
77
|
minute: "2-digit",
|
|
@@ -84,21 +84,21 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
84
84
|
return (_ = f.reaction) != null && _.removed ? a("connect.whatsappBot.logs.reactionRemoved") : f.text ? f.text : a("connect.whatsappBot.logs.mediaMessage", { type: f.messageType });
|
|
85
85
|
}
|
|
86
86
|
return (f, _) => {
|
|
87
|
-
const
|
|
88
|
-
return n(), p("article",
|
|
87
|
+
const $ = y("FmIcon");
|
|
88
|
+
return n(), p("article", $e, [
|
|
89
89
|
s("header", Me, [
|
|
90
|
-
r.showCustomer ? (n(), p("div",
|
|
91
|
-
r.showCustomer ? (n(), p("div",
|
|
90
|
+
r.showCustomer ? (n(), p("div", Ie, l(v.value), 1)) : k("", !0),
|
|
91
|
+
r.showCustomer ? (n(), p("div", De, [
|
|
92
92
|
s("h2", Se, l(C.value), 1),
|
|
93
93
|
s("p", Te, l(r.conversation.phoneNumber || c(a)("connect.whatsappBot.phoneUnavailable")) + " · " + l(c(a)("connect.whatsappBot.logs.via", { name: r.accountName })), 1)
|
|
94
94
|
])) : k("", !0),
|
|
95
95
|
s("time", {
|
|
96
96
|
datetime: r.group.lastCreatedAt,
|
|
97
97
|
class: "text-[12px] text-fm-color-typo-tertiary tabular-nums"
|
|
98
|
-
}, l(
|
|
98
|
+
}, l(D.value.format(new Date(r.group.lastCreatedAt))), 9, ze)
|
|
99
99
|
]),
|
|
100
100
|
s("ol", Le, [
|
|
101
|
-
(n(!0), p(T, null,
|
|
101
|
+
(n(!0), p(T, null, Y(r.group.logs, (i) => (n(), p("li", {
|
|
102
102
|
key: i.id,
|
|
103
103
|
class: "flex flex-col gap-[4px] min-w-0"
|
|
104
104
|
}, [
|
|
@@ -115,9 +115,9 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
115
115
|
s("time", {
|
|
116
116
|
datetime: i.timestamp,
|
|
117
117
|
class: "float-right mt-[6px] ml-[10px] text-[11px] leading-[14px] text-fm-color-typo-tertiary tabular-nums"
|
|
118
|
-
}, l(
|
|
118
|
+
}, l(N.value.format(new Date(i.timestamp))), 9, Ue)
|
|
119
119
|
], 2)
|
|
120
|
-
], 64)) : i.type === "thought" ? (n(), S(
|
|
120
|
+
], 64)) : i.type === "thought" ? (n(), S(Ne, {
|
|
121
121
|
key: 1,
|
|
122
122
|
text: i.text
|
|
123
123
|
}, null, 8, ["text"])) : i.type === "escalate" ? (n(), p("button", {
|
|
@@ -128,26 +128,26 @@ const Be = { class: "group self-end min-w-[min(280px,100%)] max-w-[80%] rounded-
|
|
|
128
128
|
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",
|
|
129
129
|
onClick: _[0] || (_[0] = (z) => r.conversation.clientId && A("notificationGroup", r.conversation.clientId))
|
|
130
130
|
}, [
|
|
131
|
-
s("span",
|
|
132
|
-
h(
|
|
131
|
+
s("span", Ge, [
|
|
132
|
+
h($, {
|
|
133
133
|
name: "group",
|
|
134
134
|
size: "sm"
|
|
135
135
|
})
|
|
136
136
|
]),
|
|
137
137
|
s("span", je, [
|
|
138
|
-
s("span",
|
|
139
|
-
s("span",
|
|
138
|
+
s("span", Oe, l(c(a)("connect.whatsappBot.logs.escalated")), 1),
|
|
139
|
+
s("span", Re, l(c(a)("connect.whatsappBot.logs.reason", {
|
|
140
140
|
reason: i.reason
|
|
141
141
|
})), 1)
|
|
142
142
|
])
|
|
143
|
-
], 8,
|
|
143
|
+
], 8, Ye)) : k("", !0)
|
|
144
144
|
]))), 128))
|
|
145
145
|
])
|
|
146
146
|
]);
|
|
147
147
|
};
|
|
148
148
|
}
|
|
149
149
|
});
|
|
150
|
-
function
|
|
150
|
+
function Ze(r, b) {
|
|
151
151
|
const o = /* @__PURE__ */ new Map(), A = [...r].sort(
|
|
152
152
|
(a, u) => Date.parse(a.createdAt) - Date.parse(u.createdAt) || q(a) - q(u) || a.id.localeCompare(u.id)
|
|
153
153
|
);
|
|
@@ -167,7 +167,7 @@ function Re(r, b) {
|
|
|
167
167
|
function q(r) {
|
|
168
168
|
return r.type === "thought" ? 1 : r.type === "escalate" ? 2 : r.isFromMe ? 3 : 0;
|
|
169
169
|
}
|
|
170
|
-
const
|
|
170
|
+
const Pe = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w-0 flex-1" }, Je = { class: "text-[16px] font-semibold leading-[24px] break-words" }, Ke = { class: "text-[12px] leading-[16px] text-fm-color-typo-tertiary break-words" }, Qe = { class: "max-h-[240px] overflow-y-auto" }, Xe = {
|
|
171
171
|
key: 0,
|
|
172
172
|
role: "alert",
|
|
173
173
|
class: "text-[14px] text-fm-color-typo-error"
|
|
@@ -186,7 +186,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
186
186
|
}, at = { class: "text-[20px] font-semibold" }, nt = { class: "max-w-[420px] text-[14px] leading-[20px] text-fm-color-typo-secondary" }, st = {
|
|
187
187
|
key: 4,
|
|
188
188
|
class: "w-full max-w-[880px] min-w-0 flex flex-col gap-[12px]"
|
|
189
|
-
}, lt = { key: 5 }, gt = /* @__PURE__ */
|
|
189
|
+
}, lt = { key: 5 }, gt = /* @__PURE__ */ G({
|
|
190
190
|
__name: "WhatsappBotLogs",
|
|
191
191
|
props: {
|
|
192
192
|
accounts: {}
|
|
@@ -194,7 +194,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
194
194
|
setup(r) {
|
|
195
195
|
const b = r, { t: o, locale: A } = j(), a = he(), u = g(() => we.getBusinessId() ?? ""), C = g(
|
|
196
196
|
() => X[a.currentCountry.value || "MY"] ?? X.MY
|
|
197
|
-
), v = w([]),
|
|
197
|
+
), v = w([]), D = w(""), N = w([]), m = w(), f = w([]), _ = w([]), $ = w(!0), i = w(""), z = w(), E = w(!1), M = w("");
|
|
198
198
|
let B;
|
|
199
199
|
const oe = g(
|
|
200
200
|
() => new Intl.DateTimeFormat(A.value, {
|
|
@@ -203,10 +203,10 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
203
203
|
timeZone: C.value
|
|
204
204
|
})
|
|
205
205
|
);
|
|
206
|
-
function
|
|
206
|
+
function O(e) {
|
|
207
207
|
return e.customerName || e.phoneNumber || o("connect.whatsappBot.logs.unknownCustomer");
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function R(e) {
|
|
210
210
|
var d;
|
|
211
211
|
const t = e.lastMessage;
|
|
212
212
|
return t ? (d = t.reaction) != null && d.removed ? o("connect.whatsappBot.logs.reactionRemoved") : t.text || o("connect.whatsappBot.logs.mediaMessage", { type: t.messageType }) : o("connect.whatsappBot.logs.noMessages");
|
|
@@ -214,7 +214,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
214
214
|
function L(e) {
|
|
215
215
|
var d;
|
|
216
216
|
const t = (d = b.accounts.find(
|
|
217
|
-
(
|
|
217
|
+
(I) => I.clientId === e
|
|
218
218
|
)) == null ? void 0 : d.account;
|
|
219
219
|
return (t == null ? void 0 : t.businessName) || (t == null ? void 0 : t.name) || (t == null ? void 0 : t.phoneNumber) || o("connect.whatsappBot.logs.unknownAccount", { id: (e == null ? void 0 : e.slice(-6)) ?? "" });
|
|
220
220
|
}
|
|
@@ -226,8 +226,8 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
226
226
|
...v.value
|
|
227
227
|
])
|
|
228
228
|
].map((e) => ({ clientId: e, label: L(e) }))
|
|
229
|
-
),
|
|
230
|
-
const e =
|
|
229
|
+
), W = g(() => {
|
|
230
|
+
const e = D.value.trim().toLocaleLowerCase();
|
|
231
231
|
return ae.value.filter(
|
|
232
232
|
(t) => t.label.toLocaleLowerCase().includes(e)
|
|
233
233
|
);
|
|
@@ -237,8 +237,8 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
237
237
|
return e.length === 1 ? t = L(e[0]) : e.length > 1 && (t = o("connect.whatsappBot.logs.selectedAccounts", {
|
|
238
238
|
count: e.length
|
|
239
239
|
})), o("connect.whatsappBot.logs.accountFilter", { name: t });
|
|
240
|
-
}),
|
|
241
|
-
() =>
|
|
240
|
+
}), Z = g(
|
|
241
|
+
() => Ze(f.value, C.value)
|
|
242
242
|
), se = g(() => [
|
|
243
243
|
{
|
|
244
244
|
id: "customer",
|
|
@@ -258,7 +258,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
258
258
|
t.stopPropagation(), H(e);
|
|
259
259
|
}
|
|
260
260
|
},
|
|
261
|
-
|
|
261
|
+
O(e)
|
|
262
262
|
),
|
|
263
263
|
F(
|
|
264
264
|
"p",
|
|
@@ -280,9 +280,9 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
280
280
|
"p",
|
|
281
281
|
{
|
|
282
282
|
class: "truncate text-fm-color-typo-secondary",
|
|
283
|
-
title:
|
|
283
|
+
title: R(e.original)
|
|
284
284
|
},
|
|
285
|
-
|
|
285
|
+
R(e.original)
|
|
286
286
|
),
|
|
287
287
|
meta: { maxWidth: "400px" }
|
|
288
288
|
},
|
|
@@ -318,8 +318,8 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
318
318
|
}
|
|
319
319
|
z.value = t, E.value = !0;
|
|
320
320
|
}
|
|
321
|
-
function
|
|
322
|
-
B == null || B.abort(), m.value = void 0, f.value = [],
|
|
321
|
+
function P() {
|
|
322
|
+
B == null || B.abort(), m.value = void 0, f.value = [], $.value = !1, i.value = "", M.value = "";
|
|
323
323
|
}
|
|
324
324
|
function H(e) {
|
|
325
325
|
m.value = e, M.value = "", V();
|
|
@@ -327,9 +327,9 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
327
327
|
async function V() {
|
|
328
328
|
B == null || B.abort();
|
|
329
329
|
const e = new AbortController();
|
|
330
|
-
B = e,
|
|
330
|
+
B = e, $.value = !0, i.value = "", f.value = [];
|
|
331
331
|
const t = m.value;
|
|
332
|
-
t || (
|
|
332
|
+
t || (N.value = []);
|
|
333
333
|
try {
|
|
334
334
|
if (!u.value)
|
|
335
335
|
throw new Error(o("connect.whatsappBot.errors.selectBusiness"));
|
|
@@ -347,10 +347,10 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
347
347
|
e.signal
|
|
348
348
|
);
|
|
349
349
|
if (e.signal.aborted) return;
|
|
350
|
-
|
|
350
|
+
N.value = d, _.value = [
|
|
351
351
|
.../* @__PURE__ */ new Set([
|
|
352
352
|
..._.value,
|
|
353
|
-
...d.map((
|
|
353
|
+
...d.map((I) => I.clientId).filter((I) => I !== null)
|
|
354
354
|
])
|
|
355
355
|
];
|
|
356
356
|
}
|
|
@@ -359,21 +359,21 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
359
359
|
t ? "connect.whatsappBot.logs.loadError" : "connect.whatsappBot.logs.conversationsLoadError"
|
|
360
360
|
));
|
|
361
361
|
} finally {
|
|
362
|
-
e.signal.aborted || (
|
|
362
|
+
e.signal.aborted || ($.value = !1);
|
|
363
363
|
}
|
|
364
364
|
}
|
|
365
365
|
return J(u, () => {
|
|
366
|
-
v.value = [],
|
|
366
|
+
v.value = [], D.value = "", _.value = [], E.value = !1, z.value = void 0, M.value = "";
|
|
367
367
|
}), J(
|
|
368
368
|
[u, () => v.value.join(",")],
|
|
369
369
|
() => {
|
|
370
|
-
|
|
370
|
+
P(), V();
|
|
371
371
|
},
|
|
372
372
|
{ immediate: !0 }
|
|
373
373
|
), xe(() => B == null ? void 0 : B.abort()), (e, t) => {
|
|
374
|
-
const d = y("FmButton"),
|
|
374
|
+
const d = y("FmButton"), I = y("FmAvatar"), ce = y("FmChip"), ie = y("FmSearch"), pe = y("FmMenuDivider"), U = y("FmMenuItem"), ue = y("FmMenu"), me = y("FmCircularProgress"), de = y("FmTable");
|
|
375
375
|
return n(), p(T, null, [
|
|
376
|
-
s("section",
|
|
376
|
+
s("section", Pe, [
|
|
377
377
|
s("div", {
|
|
378
378
|
class: ee(["flex items-center gap-[12px] flex-wrap", m.value ? "max-w-[880px]" : ""])
|
|
379
379
|
}, [
|
|
@@ -383,14 +383,14 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
383
383
|
icon: "chevron_left",
|
|
384
384
|
"aria-label": c(o)("connect.whatsappBot.logs.backToConversations"),
|
|
385
385
|
class: "!h-[36px] !w-[36px] !rounded-[8px] shrink-0",
|
|
386
|
-
onClick:
|
|
386
|
+
onClick: P
|
|
387
387
|
}, null, 8, ["aria-label"]),
|
|
388
|
-
h(
|
|
388
|
+
h(I, {
|
|
389
389
|
name: m.value.customerName || "?",
|
|
390
390
|
size: "md"
|
|
391
391
|
}, null, 8, ["name"]),
|
|
392
392
|
s("div", He, [
|
|
393
|
-
s("h2", Je, l(
|
|
393
|
+
s("h2", Je, l(O(m.value)), 1),
|
|
394
394
|
s("p", Ke, l(m.value.phoneNumber || c(o)("connect.whatsappBot.phoneUnavailable")) + " · " + l(c(o)("connect.whatsappBot.logs.via", {
|
|
395
395
|
name: L(m.value.clientId)
|
|
396
396
|
})), 1)
|
|
@@ -409,8 +409,8 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
409
409
|
]),
|
|
410
410
|
default: K(() => [
|
|
411
411
|
h(ie, {
|
|
412
|
-
modelValue:
|
|
413
|
-
"onUpdate:modelValue": t[0] || (t[0] = (x) =>
|
|
412
|
+
modelValue: D.value,
|
|
413
|
+
"onUpdate:modelValue": t[0] || (t[0] = (x) => D.value = x),
|
|
414
414
|
placeholder: c(o)("connect.whatsappBot.logs.searchAccounts")
|
|
415
415
|
}, null, 8, ["modelValue", "placeholder"]),
|
|
416
416
|
h(pe),
|
|
@@ -421,14 +421,14 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
421
421
|
onClick: t[1] || (t[1] = (x) => v.value = [])
|
|
422
422
|
}, null, 8, ["label", "model-value"]),
|
|
423
423
|
s("div", Qe, [
|
|
424
|
-
(n(!0), p(T, null,
|
|
424
|
+
(n(!0), p(T, null, Y(W.value, (x) => (n(), S(U, {
|
|
425
425
|
key: x.clientId,
|
|
426
426
|
label: x.label,
|
|
427
427
|
"model-value": v.value.includes(x.clientId),
|
|
428
428
|
"has-checkbox": "",
|
|
429
429
|
onClick: (rt) => le(x.clientId)
|
|
430
430
|
}, null, 8, ["label", "model-value", "onClick"]))), 128)),
|
|
431
|
-
|
|
431
|
+
W.value.length ? k("", !0) : (n(), S(U, {
|
|
432
432
|
key: 0,
|
|
433
433
|
label: c(o)("connect.whatsappBot.logs.noMatchingAccounts"),
|
|
434
434
|
disabled: ""
|
|
@@ -441,13 +441,13 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
441
441
|
variant: "plain",
|
|
442
442
|
"prepend-icon": "refresh",
|
|
443
443
|
label: c(o)("connect.whatsappBot.logs.refresh"),
|
|
444
|
-
disabled:
|
|
444
|
+
disabled: $.value,
|
|
445
445
|
class: "ml-auto",
|
|
446
446
|
onClick: t[2] || (t[2] = (x) => V())
|
|
447
447
|
}, null, 8, ["label", "disabled"])
|
|
448
448
|
], 2),
|
|
449
449
|
M.value ? (n(), p("p", Xe, l(M.value), 1)) : k("", !0),
|
|
450
|
-
|
|
450
|
+
$.value ? (n(), p("output", qe, [
|
|
451
451
|
h(me),
|
|
452
452
|
te(" " + l(c(o)(
|
|
453
453
|
m.value ? "connect.whatsappBot.logs.loading" : "connect.whatsappBot.logs.conversationsLoading"
|
|
@@ -460,7 +460,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
460
460
|
label: c(o)("connect.whatsappBot.tryAgain"),
|
|
461
461
|
onClick: t[3] || (t[3] = (x) => V())
|
|
462
462
|
}, null, 8, ["label"])
|
|
463
|
-
])) : (m.value ? !
|
|
463
|
+
])) : (m.value ? !Z.value.length : !N.value.length) ? (n(), p("div", ot, [
|
|
464
464
|
s("h2", at, l(c(o)(
|
|
465
465
|
m.value ? "connect.whatsappBot.logs.emptyTitle" : "connect.whatsappBot.logs.conversationsEmptyTitle"
|
|
466
466
|
)), 1),
|
|
@@ -468,7 +468,7 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
468
468
|
m.value ? "connect.whatsappBot.logs.emptyDescription" : "connect.whatsappBot.logs.conversationsEmptyDescription"
|
|
469
469
|
)), 1)
|
|
470
470
|
])) : m.value ? (n(), p("div", st, [
|
|
471
|
-
(n(!0), p(T, null,
|
|
471
|
+
(n(!0), p(T, null, Y(Z.value, (x) => (n(), S(We, {
|
|
472
472
|
key: x.date,
|
|
473
473
|
conversation: m.value,
|
|
474
474
|
group: x,
|
|
@@ -478,20 +478,20 @@ const Ze = { class: "mt-[20px] flex flex-col gap-[16px]" }, He = { class: "min-w
|
|
|
478
478
|
onNotificationGroup: re
|
|
479
479
|
}, null, 8, ["conversation", "group", "account-name", "timezone"]))), 128))
|
|
480
480
|
])) : k("", !0),
|
|
481
|
-
|
|
481
|
+
N.value.length ? ve((n(), p("div", lt, [
|
|
482
482
|
h(de, {
|
|
483
483
|
"aria-label": c(o)("connect.whatsappBot.logs.conversations"),
|
|
484
|
-
"row-data":
|
|
484
|
+
"row-data": N.value,
|
|
485
485
|
"column-defs": se.value,
|
|
486
486
|
"page-size": 10,
|
|
487
|
-
"hide-footer":
|
|
487
|
+
"hide-footer": N.value.length <= 10,
|
|
488
488
|
"shrink-at": !1,
|
|
489
489
|
"auto-reset-page-index": "",
|
|
490
490
|
"row-class-name": "cursor-pointer",
|
|
491
491
|
onRowClick: t[4] || (t[4] = (x) => H(x.original))
|
|
492
492
|
}, null, 8, ["aria-label", "row-data", "column-defs", "hide-footer"])
|
|
493
493
|
], 512)), [
|
|
494
|
-
[fe, !m.value &&
|
|
494
|
+
[fe, !m.value && !$.value && !i.value]
|
|
495
495
|
]) : k("", !0)
|
|
496
496
|
]),
|
|
497
497
|
z.value ? (n(), S(be, {
|