@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.
Files changed (137) hide show
  1. package/README.md +9 -1
  2. package/dist/{App-DoYDNru4.js → App-BxA547CP.js} +409 -403
  3. package/dist/{AuditLogs-qHYp6lM4.js → AuditLogs-DjsuO-ou.js} +13 -13
  4. package/dist/{Bin-CJvPHkvE.js → Bin-Cp1JuoPV.js} +8 -8
  5. package/dist/{Broadcast-D6ECVLby.js → Broadcast-C-dZ7I7J.js} +12 -12
  6. package/dist/{CampaignAnalytic-DbAO0BOB.js → CampaignAnalytic-CeJrlblr.js} +7 -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
  8. package/dist/{Card-DbQcw0mC.js → Card-BRkDbHgP.js} +23 -23
  9. package/dist/{Collections-BFStwoAg.js → Collections-KGkn4jVg.js} +8 -8
  10. package/dist/{Credit-BVFgG__U.js → Credit-CYtdA8LR.js} +12 -12
  11. 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
  12. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BBTJuWd_.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CC84YrQj.js} +36 -35
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-BCWbz73-.js → EffectSheet.vue_vue_type_style_index_0_lang-Y8euxc9u.js} +6 -6
  14. package/dist/{Experience-CK_YnT2w.js → Experience-DyCWhTIc.js} +13 -13
  15. package/dist/{FileSaver.min-CawPE0hc.js → FileSaver.min-sifwJvOC.js} +1 -1
  16. package/dist/{Game-DrYm5UCq.js → Game-D2dtBGMx.js} +13 -13
  17. package/dist/{GiftCardSetup-CeB4uHzh.js → GiftCardSetup-4_wPeuGx.js} +73 -61
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DRyzcwuk.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DaXZiLCz.js} +7 -7
  19. package/dist/{Goals-DDssCeP8.js → Goals-BZriqe6a.js} +4 -4
  20. package/dist/{Grab-BruNklz5.js → Grab-DE43gcBH.js} +9 -9
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-JIeTaPKV.js → ImageInput.vue_vue_type_script_setup_true_lang-BSmoRIp3.js} +1 -1
  22. package/dist/{Index-Qk1esxkY.js → Index-3-__a-F8.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Dblb8rtE.js → LocationPicker.vue_vue_type_script_setup_true_lang-DMFmuJHS.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-XepGx2h_.js → LottieAnimation.vue_vue_type_script_setup_true_lang-aCBsAVgf.js} +1 -1
  25. package/dist/{LoyaltyDashboard-VxKYWHoz.js → LoyaltyDashboard-BxqVkHWZ.js} +24 -23
  26. package/dist/MainLayout-VDwSL1-n.js +4 -0
  27. package/dist/{MainLayout-P6XTHUGB.js → MainLayout.vue_vue_type_script_setup_true_lang-DKwbltBD.js} +4 -4
  28. package/dist/{Marketing-CTYdcJfZ.js → Marketing-BkTXd2kV.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-D-1tqOR_.js → MarketingMaterialEdit-DCmGVhn1.js} +6 -6
  30. package/dist/{Member-Dxuq4ZCO.js → Member-BZ-cZyCC.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-vIdcxago.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-DeRvNRsk.js} +24 -24
  32. package/dist/{MemberImportHistory-DcofsjnB.js → MemberImportHistory-CunTfazI.js} +7 -7
  33. package/dist/{MemberList-DQ7MGqA_.js → MemberList-H8H9xzMg.js} +14 -14
  34. package/dist/{MemberTransactions--5lBgWBw.js → MemberTransactions-B1GTs17R.js} +1 -1
  35. 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
  36. 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
  37. package/dist/{Mission-C77jQ0ak.js → Mission-CNXUBVI4.js} +14 -14
  38. package/dist/{Overview-B4G2MVEP.js → Overview-CiIMyx-_.js} +21 -21
  39. package/dist/{Overview-BTDsp_z4.js → Overview-CwoDIRXD.js} +4 -4
  40. package/dist/{Point-CcU9cSwd.js → Point-BpFvqe5M.js} +14 -14
  41. package/dist/{Promotion-BWUpBOOf.js → Promotion-DwcxXXS3.js} +14 -14
  42. package/dist/{Queue-BrMy2YTd.js → Queue-CI9PtRqs.js} +13 -13
  43. package/dist/{Record-CeK0K1Yl.js → Record-Cl73WIoN.js} +9 -9
  44. package/dist/{Review-C3rRbudC.js → Review-BQL9TzxZ.js} +2 -2
  45. package/dist/{ReviewFacebookCallback-DrDIi4eL.js → ReviewFacebookCallback-BVcW6zNJ.js} +5 -5
  46. package/dist/{ReviewGoogleCallback-BXQeRqiH.js → ReviewGoogleCallback-peKv_-nP.js} +5 -5
  47. package/dist/{Reward-nBH1xNNR.js → Reward-6rLOoOkv.js} +16 -16
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-uBaqphhg.js → RewardGroup.vue_vue_type_script_setup_true_lang-CZ2OWRik.js} +14 -14
  49. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-DmPpapkp.js → RuleGroup.vue_vue_type_script_setup_true_lang-B7GKzELx.js} +15 -15
  50. package/dist/{Segment-B3pAFkuH.js → Segment-DnrCf_-F.js} +26 -26
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-Bz13JYlQ.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-DyYWf2RR.js} +15 -15
  52. 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
  53. package/dist/{Setting-NGYZe9J1.js → Setting-BlU3XioB.js} +14 -14
  54. package/dist/{SettingAdvertisements-9N8x4lIo.js → SettingAdvertisements-CW9KUQAk.js} +12 -12
  55. package/dist/{Settings-BKJBdYbG.js → Settings-DfKCItWN.js} +5 -5
  56. package/dist/{Store-CnMsvn0G.js → Store-Dh90RjUg.js} +780 -771
  57. package/dist/{StoreRewards-B0DPGAEq.js → StoreRewards-BmEJZR1O.js} +15 -15
  58. 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
  59. 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
  60. package/dist/{Tier-DFn6wpLy.js → Tier-C7EiLGJW.js} +27 -27
  61. package/dist/{Title-BeM9d4fj.js → Title-DPf-0vrF.js} +23 -23
  62. package/dist/{Transaction-DXIDbCJV.js → Transaction-DsAk9Gb9.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-CcoMCIWr.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-Csojc1fI.js} +6 -6
  64. package/dist/{Voucher-D18h9vy8.js → Voucher-BKp9CMMe.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-Dyzo3qNu.js → VoucherEditor.vue_vue_type_script_setup_true_lang-Cpn8legF.js} +12 -12
  66. package/dist/WhatsappAccount-DjAL89Re.js +342 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-D25DVRXA.js +97 -0
  68. package/dist/WhatsappBot-CSy_Z1bz.js +581 -0
  69. package/dist/{WhatsappBotSettings-DPBqHZXW.js → WhatsappBotSettings-CxcuCZ-V.js} +4 -4
  70. package/dist/WhatsappBotTickets-DS7_jaE3.js +162 -0
  71. package/dist/WhatsappLayout-Db3329On.js +21 -0
  72. 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
  73. package/dist/{app-DqMmw6WJ.js → app-BiUEivOU.js} +74 -69
  74. package/dist/app.js +1 -1
  75. package/dist/{base.export-BoqiarPy.js → base.export-Bvf3GR9p.js} +2 -2
  76. package/dist/{business-CcxL-gF3.js → business-DgmJwclv.js} +5 -5
  77. package/dist/{campaign-BE2lgjRF.js → campaign-C9TU71PO.js} +8 -8
  78. package/dist/{campaign-MBz26iMH.js → campaign-DxjYod5y.js} +2 -2
  79. package/dist/{campaign.fn-D5LT2U39.js → campaign.fn-BGdwcW0r.js} +116 -116
  80. package/dist/{collection.fn-CpJyr6Y_.js → collection.fn-B9t79SwE.js} +2 -2
  81. package/dist/{currency-kViea7ZW.js → currency-K9kgZvJm.js} +1 -1
  82. package/dist/{duplicateCampaign-DwFhnGNW.js → duplicateCampaign-CLeVibNm.js} +2 -2
  83. package/dist/{effect-OEQJ_NOd.js → effect-Bj5p3FOF.js} +1 -1
  84. package/dist/{email-addresses-BiqNmeSY.js → email-addresses-CUpmh5j3.js} +2 -2
  85. package/dist/feature-flag-Dfon0BoK.js +18 -0
  86. package/dist/{helper-qe6OtfMQ.js → helper-iVOlqZr5.js} +1 -1
  87. package/dist/{index-C4tRz5aW.js → index-BIqP1bQh.js} +2 -2
  88. package/dist/{index-DNLDqugg.js → index-BRk5I8NE.js} +1 -1
  89. package/dist/{index-BCVOoMJ1.js → index-C57WFxg7.js} +2 -2
  90. package/dist/{index-CDL5im4n.js → index-C641kFzY.js} +1 -1
  91. package/dist/{index-DWW4rV5u.js → index-CGctGLsw.js} +1 -1
  92. package/dist/{index-BjJnzBgb.js → index-COB25nai.js} +583 -576
  93. package/dist/{index-IdvPib7v.js → index-CedoUPYn.js} +2 -2
  94. package/dist/index-Cfr0vxa5.js +1775 -0
  95. package/dist/{index-BCXUZHQr.js → index-Cq0kWJ_W.js} +2 -2
  96. package/dist/{index-uxpFoeBR.js → index-D6CbkBm6.js} +3 -3
  97. package/dist/{index-B2JXMepI.js → index-DAcwqenP.js} +7 -7
  98. package/dist/{index-B6mE0q8e.js → index-DJQVYP1Z.js} +1 -1
  99. package/dist/{index-CM0g-9-V.js → index-DUr59xHS.js} +2 -2
  100. package/dist/{index-CnHeoO9f.js → index-DXNB9FHg.js} +2 -2
  101. package/dist/{index-DopAV1p0.js → index-DgkRREfK.js} +18 -14
  102. package/dist/{index-C01w59Sf.js → index-Dhd9eEjz.js} +1 -1
  103. package/dist/{index-DCO-4L0t.js → index-FcdiLtUc.js} +9 -9
  104. package/dist/{index-B5-ebn1k.js → index-HctLGyyi.js} +4 -4
  105. package/dist/{index-DSkhLfAT.js → index-MVfpQsRI.js} +4 -3
  106. package/dist/{index-DZIBSUS_.js → index-YV22ZWWA.js} +2 -2
  107. package/dist/{index-BivO-FMW.js → index-dEfSQ43r.js} +1 -1
  108. package/dist/{index-CXafRDRN.js → index-onmieavP.js} +5975 -7746
  109. package/dist/{index.esm2017-JBUZVF0b.js → index.esm2017-BUZxOBD5.js} +1 -1
  110. package/dist/{loading-BWIBiviO.js → loading-D3jN17Xy.js} +1 -1
  111. package/dist/{lodash-BzPqU7SK.js → lodash-DvKbipfn.js} +1 -1
  112. package/dist/{member-import-Bf5_v2rw.js → member-import-BuytQk0w.js} +1 -1
  113. package/dist/{membership-D_wss7NM.js → membership-Beh_I5Kj.js} +2 -2
  114. package/dist/{money-Bh3-N1sf.js → money-C3v95tda.js} +1 -1
  115. package/dist/{number-BbQ0fzK1.js → number-Cc7Yq2nP.js} +1 -1
  116. package/dist/{objectid-DXuwIDWq.js → objectid-fKMrrct7.js} +9 -9
  117. package/dist/{onboarding-DspO-Me0.js → onboarding-DJgY8HJr.js} +3 -3
  118. package/dist/{onboardingSetup-MufLiFPA.js → onboardingSetup-DJJLdr11.js} +2 -2
  119. package/dist/{plugins-JFwonds1.js → plugins-CcGeLF_l.js} +3 -3
  120. package/dist/{reward-DgsTibBz.js → reward-4aAVrRc8.js} +1 -1
  121. package/dist/{rule-C9wt-ChP.js → rule-D6x2GyGw.js} +10 -10
  122. package/dist/style.css +1 -1
  123. package/dist/{template-DelWr_nw.js → template-Dafdx5YI.js} +6 -6
  124. package/dist/{timezone-tn-KM65h.js → timezone-BDIlVTOp.js} +1 -1
  125. package/dist/{transaction.fn-n9smufaW.js → transaction.fn-CBVylmzu.js} +2 -2
  126. package/dist/{trigger-C26nxLCh.js → trigger-ChNg0oG9.js} +5 -5
  127. package/dist/{useMarketingMaterialActions-IM2MsMTk.js → useMarketingMaterialActions-LSsbTrFn.js} +3 -3
  128. package/dist/{usePagination-Dtz2hc5n.js → usePagination-CqPRf6q3.js} +1 -1
  129. package/dist/{user-BkwDIIp3.js → user-6kqmEFbR.js} +1 -1
  130. package/dist/{vue-i18n-Dnb3kew0.js → vue-i18n-BJ_ZHWvK.js} +314 -314
  131. package/dist/{xlsx-be-7IH2e.js → xlsx-CWXvmWqg.js} +1 -1
  132. package/dist/{zod-CAhiOJ1R.js → zod-DBefBbjY.js} +1 -1
  133. package/package.json +1 -1
  134. package/dist/WhatsappAccount-Be38M23T.js +0 -325
  135. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-DBS9_rbY.js +0 -80
  136. package/dist/WhatsappBot-lyaORqV6.js +0 -561
  137. package/dist/WhatsappBotTickets-D_3v1pKU.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-CAhiOJ1R.js";
3
- import { u as V } from "./vue-i18n-Dnb3kew0.js";
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"