@feedmepos/mf-connect 0.1.98-beta.86 → 0.1.98-beta.89

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 (143) hide show
  1. package/README.md +62 -5
  2. package/dist/{App-C3brXgJH.js → App-D4hRwK-o.js} +586 -569
  3. package/dist/{AuditLogs-CknggPMD.js → AuditLogs-D_PrLKVP.js} +13 -13
  4. package/dist/{Bin-BOE-Liwr.js → Bin-DF_1hlo5.js} +8 -8
  5. package/dist/{Broadcast-BStqQOUT.js → Broadcast-D81xkQ0B.js} +12 -12
  6. package/dist/{CampaignAnalytic-Dga32CpH.js → CampaignAnalytic-960oR5Nw.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-CldyOaCt.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-WOfSfATi.js} +8 -8
  8. package/dist/{Card-CQxp73o4.js → Card-nF9lexRS.js} +23 -23
  9. package/dist/{Collections-BRms0YoR.js → Collections-CJbGLkwm.js} +8 -8
  10. package/dist/{Credit-DW7Vq-01.js → Credit-tfInnpDW.js} +12 -12
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-BXK40fTr.js → DateRangeChip.vue_vue_type_script_setup_true_lang-CAPxB3r7.js} +1 -1
  12. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-Bv2r2gFI.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-BM2UlBtj.js} +35 -36
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-TBjXJglM.js → EffectSheet.vue_vue_type_style_index_0_lang-BfrzJxWQ.js} +6 -6
  14. package/dist/{Experience-C_H8mmJJ.js → Experience-2uX3ESg5.js} +13 -13
  15. package/dist/{FileSaver.min-C5N6-O4l.js → FileSaver.min-DqWpgesn.js} +1 -1
  16. package/dist/{Game-LgNoMtbs.js → Game-BQtHns1v.js} +13 -13
  17. package/dist/{GiftCardSetup-DmL416w3.js → GiftCardSetup-B4I83SkJ.js} +10 -10
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-DqDerUNT.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-DujMhaOh.js} +7 -7
  19. package/dist/{Goals-D-maM_jj.js → Goals-DSkXACjH.js} +4 -4
  20. package/dist/{Grab-DKbgjw7e.js → Grab-ArpQ-7LU.js} +9 -9
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZ3UDnkx.js → ImageInput.vue_vue_type_script_setup_true_lang-GdfKNEdQ.js} +1 -1
  22. package/dist/{Index-_cZDq1HS.js → Index-Bb8k7ofl.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-Chm-x4fo.js → LocationPicker.vue_vue_type_script_setup_true_lang-tHLWrX4C.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Ez1QV7ON.js → LottieAnimation.vue_vue_type_script_setup_true_lang-C5E_mvcD.js} +1 -1
  25. package/dist/{LoyaltyDashboard-D1B3MjhC.js → LoyaltyDashboard-C-U8HulY.js} +23 -24
  26. package/dist/MainLayout-TV3HyBYh.js +4 -0
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-Bf-Kvl5W.js → MainLayout.vue_vue_type_script_setup_true_lang-lO1k_OLo.js} +5 -4
  28. package/dist/{Marketing-C4apg5nO.js → Marketing-CWe_R_3E.js} +4 -4
  29. package/dist/MarketingMaterialEdit-TGP6o6Vv.js +1037 -0
  30. package/dist/{Member-B2W3wm1r.js → Member-DDZ8TLLZ.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-l3edYke6.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CweUf6Iv.js} +24 -24
  32. package/dist/{MemberImportHistory-C3i6ekKS.js → MemberImportHistory-Til1afm1.js} +7 -7
  33. package/dist/{MemberList-CsIsMafE.js → MemberList-uoSeAZlO.js} +14 -14
  34. package/dist/{MemberTransactions-Cdndq5ic.js → MemberTransactions-MxJWI1es.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-BtVvv1xd.js → MessageInput.vue_vue_type_script_setup_true_lang-B4H67Tvb.js} +10 -10
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DwXsAI7F.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DhHMIgza.js} +1 -1
  37. package/dist/{Mission-Fa1VYYZa.js → Mission-C_hcFlzC.js} +14 -14
  38. package/dist/{Overview-DSmO8LtX.js → Overview-B3ugdY_2.js} +4 -4
  39. package/dist/{Overview-oxeTbsQ8.js → Overview-Bxe-Kfci.js} +21 -21
  40. package/dist/{Point-CWpQn9W_.js → Point-BBVTyXIL.js} +14 -14
  41. package/dist/{Promotion-CoYdDRod.js → Promotion-D-44JTkv.js} +14 -14
  42. package/dist/{Queue-Bij3hgY2.js → Queue-BNjlzhJ_.js} +13 -13
  43. package/dist/{Record-Be2TI_X_.js → Record-C34UZ1q6.js} +9 -9
  44. package/dist/{Review-C-QnIayC.js → Review-C4iuNBR7.js} +2 -2
  45. package/dist/{ReviewFacebookCallback-CPyXfHvB.js → ReviewFacebookCallback-Bsp6WSaQ.js} +5 -5
  46. package/dist/{ReviewGoogleCallback-BPNB0btT.js → ReviewGoogleCallback-Ddqe1tZZ.js} +5 -5
  47. package/dist/{Reward-RyaVdYyZ.js → Reward-CjybtjcT.js} +16 -16
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-C2ebKu-S.js → RewardGroup.vue_vue_type_script_setup_true_lang-Do_obBgC.js} +14 -14
  49. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-BZ_wN3Gj.js → RuleGroup.vue_vue_type_script_setup_true_lang-BiGexpsh.js} +15 -15
  50. package/dist/{Segment-CE7Ca2Zo.js → Segment-BU5W9wBQ.js} +26 -26
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-vODQiSna.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Buih6X5R.js} +15 -15
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-CgI_qWVw.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-DN-VwmTf.js} +4 -4
  53. package/dist/{Setting-BC6ir0DR.js → Setting-BsCkMHQZ.js} +14 -14
  54. package/dist/{SettingAdvertisements-DLmxEwdG.js → SettingAdvertisements-CTTFCozw.js} +12 -12
  55. package/dist/{Settings-CF78Ug2K.js → Settings-D3_nrJff.js} +5 -5
  56. package/dist/{Store-CZTZTO1x.js → Store-DRWKc7Q7.js} +29 -30
  57. package/dist/{StoreRewards-BdtlvNcm.js → StoreRewards-_4iqQsak.js} +15 -15
  58. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-DSKYWLE_.js → StoreTransactions.vue_vue_type_script_setup_true_lang-Db4fakO6.js} +25 -25
  59. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DsQiBOV4.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CAO3Ycxn.js} +2 -2
  60. package/dist/{Tier-5eUYHhoX.js → Tier-Cj_4Z8PG.js} +27 -27
  61. package/dist/{Title-ibn2JnRB.js → Title-Bjg44PZP.js} +23 -23
  62. package/dist/{Transaction-BZzL13MU.js → Transaction-DbehbwRK.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-DUv9nFqV.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-DeMdcwb2.js} +6 -6
  64. package/dist/{Voucher-B6qYDcnp.js → Voucher-DARWiV1M.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-CI7NwvnH.js → VoucherEditor.vue_vue_type_script_setup_true_lang-BYNjq7K0.js} +12 -12
  66. package/dist/WhatsappAccount-CBx-FoRb.js +158 -0
  67. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BFUOuRGy.js +39 -0
  68. package/dist/{WhatsappBot-BhrP6JnO.js → WhatsappBot-MSJq0pE4.js} +229 -221
  69. package/dist/WhatsappBotLogs-CEyUngzi.js +372 -0
  70. package/dist/WhatsappBotSettings-NIE8NeN4.js +387 -0
  71. package/dist/{WhatsappBotTickets-DJnC4c2j.js → WhatsappBotTickets-OCmEkzeD.js} +3 -3
  72. package/dist/WhatsappLayout-DLPLalle.js +21 -0
  73. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-D_bVWePp.js +195 -0
  74. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-C2nesHNf.js → ZodTextField.vue_vue_type_script_setup_true_lang-HVcTakep.js} +2 -2
  75. package/dist/{app-C5bfcrJd.js → app-CsPUjtBR.js} +670 -522
  76. package/dist/app.js +1 -1
  77. package/dist/{base.export-0man_ZSH.js → base.export-CSSDz0q9.js} +2 -2
  78. package/dist/{business-BW09R8w1.js → business-BwGS0vma.js} +5 -5
  79. package/dist/{campaign-Dxbvq3Zl.js → campaign-Bw44Blhh.js} +8 -8
  80. package/dist/{campaign-gSM8Uzyl.js → campaign-CwfENerv.js} +2 -2
  81. package/dist/{campaign.fn-CzNJtky2.js → campaign.fn-Bx7g_BvU.js} +31 -31
  82. package/dist/{collection.fn-BVUdafur.js → collection.fn-Ba8-HPHO.js} +2 -2
  83. package/dist/{currency-CcWkcszY.js → currency-CO5xQCxT.js} +1 -1
  84. package/dist/{duplicateCampaign-DDfAc-AY.js → duplicateCampaign-C2FQFuzl.js} +2 -2
  85. package/dist/{effect-Dn7anzDq.js → effect-BUxZHyCk.js} +1 -1
  86. package/dist/{email-addresses-BRRFCqW3.js → email-addresses-CfdqSZi6.js} +2 -2
  87. package/dist/feature-flag-DpIT0Nh2.js +50 -0
  88. package/dist/{helper-DPI5b1e1.js → helper-miVbMaVy.js} +1 -1
  89. package/dist/{index-D9SBKZvv.js → index-BC30mczi.js} +9 -9
  90. package/dist/{index-ZLyACIvN.js → index-Bshl0e-c.js} +2 -2
  91. package/dist/{index-_EvVNmhF.js → index-CMGEBPm-.js} +7746 -5975
  92. package/dist/{index-DtZ450Y-.js → index-CNX6rFiO.js} +3 -3
  93. package/dist/{index-CeDuysyp.js → index-CW07TXqO.js} +2 -2
  94. package/dist/{index-Dv9W26wg.js → index-CYVDCxVj.js} +1 -1
  95. package/dist/{index-Bi4203Wb.js → index-Co3X9LyE.js} +1 -1
  96. package/dist/{index-DPS6iW7Q.js → index-CxzJwolN.js} +1 -1
  97. package/dist/{index-D8rPhlZa.js → index-CyMrx8XA.js} +1 -1
  98. package/dist/{index-KNE2wEbP.js → index-D6RtVzN9.js} +2 -2
  99. package/dist/{index-CoFJoIox.js → index-DIOb3eOI.js} +14 -14
  100. package/dist/{index-BsSqDkI8.js → index-DSwOhkYZ.js} +2 -2
  101. package/dist/{index-U6kp2_A3.js → index-DgnQ18-j.js} +1 -1
  102. package/dist/{index-BBLmqV8g.js → index-Dy7VtHTZ.js} +3 -3
  103. package/dist/{index-xLDLoo67.js → index-L7SBt-2D.js} +19 -13
  104. package/dist/index-RwNlbTO8.js +115 -0
  105. package/dist/{index-BQ-9m3Ro.js → index-Se-R3ekJ.js} +2 -2
  106. package/dist/{index-BLQbc3Rv.js → index-bJ2Ur1Yd.js} +1 -1
  107. package/dist/{index-LSYjttVr.js → index-gP-EJA-Y.js} +2 -2
  108. package/dist/{index-ButxHAMi.js → index-mBHnjwCf.js} +10 -10
  109. package/dist/{index-sVyIf_p-.js → index-nZUfIfsn.js} +4 -4
  110. package/dist/{index.esm2017-DQJ6E2gu.js → index.esm2017-DlOLsAJL.js} +1 -1
  111. package/dist/{loading-DOyd2D4O.js → loading-BEDz7eTi.js} +1 -1
  112. package/dist/{lodash-BLqC3Cwx.js → lodash-Bx7d35Zs.js} +1 -1
  113. package/dist/{member-import-x7Vw0b3w.js → member-import-D4zgQyJX.js} +1 -1
  114. package/dist/{membership-CE9vEP2d.js → membership-VJBDeKcE.js} +2 -2
  115. package/dist/{money-CX-ZAEDu.js → money-Dh0agFMv.js} +1 -1
  116. package/dist/{number-CSungdQc.js → number-D2coZpxW.js} +1 -1
  117. package/dist/{objectid-DwEAf7Cc.js → objectid-DVSB63oC.js} +10 -10
  118. package/dist/{onboarding-BAJgDH9y.js → onboarding-CLwhjKAL.js} +3 -3
  119. package/dist/{onboardingSetup-GvIYNiAE.js → onboardingSetup-78evK8yB.js} +2 -2
  120. package/dist/{plugins-B1AphVoU.js → plugins-CKViI6Y3.js} +3 -3
  121. package/dist/{MarketingMaterialEdit-Dcjzvwfv.js → remy-icon-BhUGu2NI.js} +2 -1034
  122. package/dist/{reward-D2zC58M2.js → reward-Drd9EaxJ.js} +1 -1
  123. package/dist/{rule-CxoPKAlI.js → rule-Dr21X2h0.js} +10 -10
  124. package/dist/{template-KRS1NbWX.js → template-yVg3lQKo.js} +6 -6
  125. package/dist/{timezone-CW8sKc69.js → timezone-CGlmgCYo.js} +1 -1
  126. package/dist/{transaction.fn-Djbx8lHM.js → transaction.fn-outAFFwM.js} +2 -2
  127. package/dist/{trigger-RkjkEHrL.js → trigger-C1GL_8pm.js} +7 -7
  128. package/dist/{useMarketingMaterialActions-BUnl-bFY.js → useMarketingMaterialActions-D8MIFnMy.js} +3 -3
  129. package/dist/{usePagination-vdRzCfJw.js → usePagination-Dlx9q4a8.js} +1 -1
  130. package/dist/useWhatsappAccount-1Yy7aaA9.js +62 -0
  131. package/dist/{user-CamDVkKA.js → user-BtORKvTK.js} +1 -1
  132. package/dist/{vue-i18n-DwgfDwGn.js → vue-i18n-CkZqjA2G.js} +355 -355
  133. package/dist/{xlsx-DkuYe2Jz.js → xlsx-HAQ29LQq.js} +1 -1
  134. package/dist/{zod-BDeUQtCa.js → zod-DByiKRxr.js} +1 -1
  135. package/package.json +1 -1
  136. package/dist/MainLayout-C115sjz6.js +0 -4
  137. package/dist/WhatsappAccount-CodbP5kY.js +0 -342
  138. package/dist/WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-BAgSc0i4.js +0 -97
  139. package/dist/WhatsappBotSettings-CjDKw25J.js +0 -394
  140. package/dist/WhatsappLayout-BgW1ASQE.js +0 -21
  141. package/dist/feature-flag-D2MJ8eLY.js +0 -18
  142. package/dist/index-BVdImOs0.js +0 -1775
  143. package/dist/index-DgkRREfK.js +0 -72
@@ -0,0 +1,387 @@
1
+ import { defineComponent as L, mergeModels as U, useModel as A, resolveComponent as k, openBlock as c, createElementBlock as p, createElementVNode as r, toDisplayString as m, unref as e, createVNode as g, computed as E, Fragment as N, renderList as X, normalizeClass as D, createTextVNode as O, createCommentVNode as T, withDirectives as Y, vModelRadio as Z, ref as f, watch as ee, onBeforeUnmount as te, createBlock as oe } from "vue";
2
+ import { u as M } from "./vue-i18n-CkZqjA2G.js";
3
+ import { useSnackbar as ae } from "@feedmepos/ui-library";
4
+ import { F as j, a as C, b as le, c as se, d as ne, e as $, f as re } from "./index-RwNlbTO8.js";
5
+ import { S as ie } from "./index-CMGEBPm-.js";
6
+ import { w as z } from "./index-L7SBt-2D.js";
7
+ import { p as ce } from "./plugins-CKViI6Y3.js";
8
+ const de = { class: "flex flex-col gap-[16px]" }, pe = { class: "flex flex-col gap-[4px]" }, ue = { class: "text-[16px] leading-[24px] font-semibold" }, me = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary" }, ve = /* @__PURE__ */ L({
9
+ __name: "BotInstructions",
10
+ props: /* @__PURE__ */ U({
11
+ disabled: { type: Boolean }
12
+ }, {
13
+ modelValue: { required: !0 },
14
+ modelModifiers: {}
15
+ }),
16
+ emits: ["update:modelValue"],
17
+ setup(d) {
18
+ const o = A(d, "modelValue"), { t: a } = M();
19
+ return (i, t) => {
20
+ const v = k("FmTextarea");
21
+ return c(), p("div", de, [
22
+ r("div", pe, [
23
+ r("h2", ue, m(e(a)("connect.whatsappBot.botSettings.instructions")), 1),
24
+ r("p", me, m(e(a)("connect.whatsappBot.botSettings.description")), 1)
25
+ ]),
26
+ g(v, {
27
+ modelValue: o.value,
28
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => o.value = n),
29
+ "aria-label": e(a)("connect.whatsappBot.botSettings.instructions"),
30
+ placeholder: e(a)("connect.whatsappBot.botSettings.placeholder"),
31
+ "max-length": e(j),
32
+ disabled: d.disabled,
33
+ "show-word-count": "",
34
+ class: "bot-instructions-textarea"
35
+ }, null, 8, ["modelValue", "aria-label", "placeholder", "max-length", "disabled"])
36
+ ]);
37
+ };
38
+ }
39
+ }), xe = {
40
+ "aria-labelledby": "knowledge-base-title",
41
+ class: "border-t-[1px] border-fm-color-neutral-gray-100 pt-[20px] flex flex-col gap-[12px]"
42
+ }, be = { class: "flex flex-col gap-[4px]" }, ge = {
43
+ id: "knowledge-base-title",
44
+ class: "text-[16px] leading-[24px] font-semibold"
45
+ }, fe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary" }, he = { class: "flex flex-wrap gap-[8px]" }, _e = ["title", "aria-expanded", "disabled", "onClick"], ye = ["disabled"], we = {
46
+ key: 0,
47
+ class: "text-[14px] text-fm-color-typo-tertiary"
48
+ }, Se = {
49
+ key: 1,
50
+ class: "text-[14px] text-fm-color-typo-secondary"
51
+ }, Be = /* @__PURE__ */ L({
52
+ __name: "KnowledgeBase",
53
+ props: /* @__PURE__ */ U({
54
+ disabled: { type: Boolean }
55
+ }, {
56
+ modelValue: {
57
+ required: !0
58
+ },
59
+ modelModifiers: {},
60
+ activeTopicIndex: {
61
+ required: !0
62
+ },
63
+ activeTopicIndexModifiers: {}
64
+ }),
65
+ emits: ["update:modelValue", "update:activeTopicIndex"],
66
+ setup(d) {
67
+ const o = d, a = A(d, "modelValue"), i = A(d, "activeTopicIndex"), { t } = M(), v = E(
68
+ () => i.value === null ? null : a.value[i.value]
69
+ );
70
+ function n() {
71
+ o.disabled || a.value.length >= C || (a.value.push({ title: "", description: "" }), i.value = a.value.length - 1);
72
+ }
73
+ function _() {
74
+ o.disabled || i.value === null || (a.value.splice(i.value, 1), i.value = null);
75
+ }
76
+ return (y, w) => {
77
+ const h = k("FmIcon"), F = k("FmTextField"), P = k("FmTextarea"), S = k("FmButton");
78
+ return c(), p("section", xe, [
79
+ r("div", be, [
80
+ r("h2", ge, m(e(t)("connect.whatsappBot.botSettings.knowledgeBase.title")), 1),
81
+ r("p", fe, m(e(t)("connect.whatsappBot.botSettings.knowledgeBase.description")), 1)
82
+ ]),
83
+ r("div", he, [
84
+ (c(!0), p(N, null, X(a.value, (u, x) => (c(), p("button", {
85
+ key: x,
86
+ type: "button",
87
+ title: u.title.trim() || e(t)("connect.whatsappBot.botSettings.knowledgeBase.untitled"),
88
+ "aria-expanded": i.value === x,
89
+ "aria-controls": "knowledge-topic-editor",
90
+ disabled: d.disabled,
91
+ class: D(["h-[32px] max-w-[240px] rounded-[8px] border-[1px] px-[12px] truncate text-[14px] font-medium transition-colors focus-visible:ring-2 focus-visible:ring-fm-color-primary disabled:opacity-60", [
92
+ i.value === x ? "border-fm-color-primary bg-fm-color-primary-oats text-fm-color-primary" : "border-fm-color-neutral-gray-200 bg-fm-color-neutral-white",
93
+ d.disabled ? "cursor-default" : "cursor-pointer hover:border-fm-color-primary"
94
+ ]]),
95
+ onClick: (H) => i.value = i.value === x ? null : x
96
+ }, m(u.title.trim() || e(t)("connect.whatsappBot.botSettings.knowledgeBase.untitled")), 11, _e))), 128)),
97
+ r("button", {
98
+ type: "button",
99
+ disabled: d.disabled || a.value.length >= e(C),
100
+ class: "h-[32px] rounded-[8px] border-[1px] border-dashed border-fm-color-neutral-gray-200 bg-fm-color-neutral-white px-[12px] flex items-center gap-[6px] text-[14px] font-semibold text-fm-color-primary hover:border-fm-color-primary focus-visible:ring-2 focus-visible:ring-fm-color-primary disabled:opacity-60 disabled:cursor-default",
101
+ onClick: n
102
+ }, [
103
+ g(h, {
104
+ name: "add",
105
+ size: "sm"
106
+ }),
107
+ O(" " + m(e(t)("connect.whatsappBot.botSettings.knowledgeBase.addTopic")), 1)
108
+ ], 8, ye)
109
+ ]),
110
+ a.value.length === 0 ? (c(), p("p", we, m(e(t)("connect.whatsappBot.botSettings.knowledgeBase.empty")), 1)) : T("", !0),
111
+ a.value.length >= e(C) ? (c(), p("p", Se, m(e(t)("connect.whatsappBot.botSettings.knowledgeBase.topicLimit", {
112
+ count: e(C)
113
+ })), 1)) : T("", !0),
114
+ v.value ? (c(), p("div", {
115
+ id: "knowledge-topic-editor",
116
+ key: i.value ?? void 0,
117
+ class: "rounded-[8px] border-[1px] border-fm-color-neutral-gray-100 p-[16px] flex flex-col gap-[12px]"
118
+ }, [
119
+ g(F, {
120
+ modelValue: v.value.title,
121
+ "onUpdate:modelValue": w[0] || (w[0] = (u) => v.value.title = u),
122
+ label: e(t)("connect.whatsappBot.botSettings.knowledgeBase.titleLabel"),
123
+ placeholder: e(t)("connect.whatsappBot.botSettings.knowledgeBase.titlePlaceholder"),
124
+ "max-length": e(le),
125
+ disabled: d.disabled
126
+ }, null, 8, ["modelValue", "label", "placeholder", "max-length", "disabled"]),
127
+ g(P, {
128
+ modelValue: v.value.description,
129
+ "onUpdate:modelValue": w[1] || (w[1] = (u) => v.value.description = u),
130
+ label: e(t)("connect.whatsappBot.botSettings.knowledgeBase.descriptionLabel"),
131
+ placeholder: e(t)(
132
+ "connect.whatsappBot.botSettings.knowledgeBase.descriptionPlaceholder"
133
+ ),
134
+ "max-length": e(se),
135
+ disabled: d.disabled,
136
+ "show-word-count": "",
137
+ class: "bot-instructions-textarea"
138
+ }, null, 8, ["modelValue", "label", "placeholder", "max-length", "disabled"]),
139
+ g(S, {
140
+ variant: "plain",
141
+ size: "sm",
142
+ "prepend-icon": "delete",
143
+ "text-color": "typo-error",
144
+ label: e(t)("connect.whatsappBot.botSettings.knowledgeBase.removeTopic"),
145
+ disabled: d.disabled,
146
+ class: "self-start",
147
+ onClick: _
148
+ }, null, 8, ["label", "disabled"])
149
+ ])) : T("", !0)
150
+ ]);
151
+ };
152
+ }
153
+ }), ke = {
154
+ "aria-labelledby": "response-speed-title",
155
+ class: "border-t-[1px] border-fm-color-neutral-gray-100 pt-[20px] flex flex-col gap-[12px]"
156
+ }, Te = { class: "flex flex-col gap-[4px]" }, Ve = {
157
+ id: "response-speed-title",
158
+ class: "text-[16px] leading-[24px] font-semibold"
159
+ }, Fe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary" }, Ie = {
160
+ role: "radiogroup",
161
+ "aria-labelledby": "response-speed-title",
162
+ "aria-describedby": "response-speed-detail",
163
+ class: "grid grid-cols-[repeat(auto-fit,minmax(150px,1fr))] gap-[8px]"
164
+ }, Ee = ["value", "disabled"], Pe = { class: "flex items-center gap-[8px] text-[14px] leading-[20px] font-semibold" }, Ce = {
165
+ key: 0,
166
+ class: "w-[8px] h-[8px] rounded-full bg-fm-color-primary"
167
+ }, $e = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, Ae = {
168
+ id: "response-speed-detail",
169
+ "aria-live": "polite",
170
+ class: "text-[14px] leading-[20px] text-fm-color-typo-secondary"
171
+ }, Ne = {
172
+ key: 0,
173
+ class: "rounded-[8px] bg-fm-color-system-warning-100 px-[12px] py-[10px] flex items-start gap-[10px] text-[14px] leading-[20px]"
174
+ }, Oe = /* @__PURE__ */ L({
175
+ __name: "ResponseSpeed",
176
+ props: /* @__PURE__ */ U({
177
+ disabled: { type: Boolean }
178
+ }, {
179
+ modelValue: {
180
+ required: !0
181
+ },
182
+ modelModifiers: {}
183
+ }),
184
+ emits: ["update:modelValue"],
185
+ setup(d) {
186
+ const o = A(d, "modelValue"), { t: a } = M();
187
+ return (i, t) => {
188
+ const v = k("FmIcon");
189
+ return c(), p("section", ke, [
190
+ r("div", Te, [
191
+ r("h2", Ve, m(e(a)("connect.whatsappBot.botSettings.responseSpeed.title")), 1),
192
+ r("p", Fe, m(e(a)("connect.whatsappBot.botSettings.responseSpeed.description")), 1)
193
+ ]),
194
+ r("div", Ie, [
195
+ (c(!0), p(N, null, X(e(ne), (n) => (c(), p("label", { key: n }, [
196
+ Y(r("input", {
197
+ "onUpdate:modelValue": t[0] || (t[0] = (_) => o.value = _),
198
+ type: "radio",
199
+ name: "response-speed",
200
+ value: n,
201
+ disabled: d.disabled,
202
+ class: "sr-only peer"
203
+ }, null, 8, Ee), [
204
+ [Z, o.value]
205
+ ]),
206
+ r("span", {
207
+ class: D(["h-full border-[1px] rounded-[8px] p-[12px] flex flex-col gap-[4px] transition-colors peer-focus-visible:ring-2 peer-focus-visible:ring-fm-color-primary", [
208
+ o.value === n ? "border-fm-color-primary bg-fm-color-primary-oats" : "border-fm-color-neutral-gray-200 bg-fm-color-neutral-white",
209
+ d.disabled ? "cursor-default opacity-60" : "cursor-pointer hover:border-fm-color-primary"
210
+ ]])
211
+ }, [
212
+ r("span", Pe, [
213
+ r("span", {
214
+ "aria-hidden": "true",
215
+ class: D([
216
+ "w-[16px] h-[16px] shrink-0 rounded-full border-[1.5px] bg-fm-color-neutral-white flex items-center justify-center",
217
+ o.value === n ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
218
+ ])
219
+ }, [
220
+ o.value === n ? (c(), p("span", Ce)) : T("", !0)
221
+ ], 2),
222
+ O(" " + m(e(a)(`connect.whatsappBot.botSettings.responseSpeed.${n}.label`)), 1)
223
+ ]),
224
+ r("span", $e, m(e(a)(`connect.whatsappBot.botSettings.responseSpeed.${n}.hint`)), 1)
225
+ ], 2)
226
+ ]))), 128))
227
+ ]),
228
+ r("p", Ae, m(e(a)(
229
+ `connect.whatsappBot.botSettings.responseSpeed.${o.value}.detail`
230
+ )), 1),
231
+ o.value === "immediate" ? (c(), p("div", Ne, [
232
+ g(v, {
233
+ name: "warning",
234
+ size: "sm",
235
+ class: "mt-[2px] shrink-0 text-fm-color-typo-warning"
236
+ }),
237
+ O(" " + m(e(a)("connect.whatsappBot.botSettings.responseSpeed.immediateWarning")), 1)
238
+ ])) : T("", !0)
239
+ ]);
240
+ };
241
+ }
242
+ }), Le = { class: "mt-[24px] w-full flex flex-col gap-[20px]" }, Me = {
243
+ key: 0,
244
+ role: "status",
245
+ class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
246
+ }, We = {
247
+ key: 1,
248
+ role: "alert",
249
+ class: "text-[14px] text-fm-color-typo-error"
250
+ }, De = { class: "flex items-center justify-end gap-[12px] flex-wrap" }, je = /* @__PURE__ */ L({
251
+ __name: "WhatsappBotSettings",
252
+ setup(d) {
253
+ const { t: o } = M(), a = ae(), i = E(() => ie.getBusinessId() ?? ""), t = f(""), v = f(""), n = f([]), _ = f([]), y = f(null), w = E(
254
+ () => n.value.filter(
255
+ (l) => l.title.trim() || l.description.trim()
256
+ )
257
+ ), h = f(
258
+ $
259
+ ), F = f(
260
+ $
261
+ ), P = f(!0), S = f(!1), u = f(!1), x = f(""), H = j, J = E(
262
+ () => t.value !== v.value || h.value !== F.value || JSON.stringify(n.value) !== JSON.stringify(_.value)
263
+ ), W = E(
264
+ () => !S.value || u.value || !J.value
265
+ ), R = E(
266
+ () => !S.value || u.value || t.value.length > H || !re.safeParse(w.value).success
267
+ );
268
+ let b;
269
+ function G(l) {
270
+ t.value = l.botInstructions, v.value = l.botInstructions, h.value = l.responseSpeed, F.value = l.responseSpeed, n.value = l.knowledgeBase.map((s) => ({ ...s })), _.value = l.knowledgeBase.map((s) => ({
271
+ ...s
272
+ }));
273
+ }
274
+ async function K() {
275
+ b == null || b.abort();
276
+ const l = new AbortController();
277
+ b = l, P.value = !0, S.value = !1, u.value = !1, x.value = "", t.value = "", v.value = "", h.value = $, F.value = $, n.value = [], _.value = [], y.value = null;
278
+ try {
279
+ if (!i.value)
280
+ throw new Error(o("connect.whatsappBot.errors.selectBusiness"));
281
+ const s = await z.getSettings(
282
+ i.value,
283
+ l.signal
284
+ );
285
+ if (l.signal.aborted) return;
286
+ G(s), S.value = !0;
287
+ } catch (s) {
288
+ l.signal.aborted || (x.value = s instanceof Error ? s.message : o("connect.whatsappBot.errors.loadSettings"));
289
+ } finally {
290
+ l.signal.aborted || (P.value = !1);
291
+ }
292
+ }
293
+ async function q() {
294
+ if (R.value) return;
295
+ b == null || b.abort();
296
+ const l = new AbortController();
297
+ b = l, u.value = !0, x.value = "";
298
+ const s = y.value === null ? void 0 : n.value[y.value], I = s ? w.value.indexOf(s) : -1;
299
+ try {
300
+ const B = await z.saveSettings(
301
+ i.value,
302
+ {
303
+ botInstructions: t.value,
304
+ responseSpeed: h.value,
305
+ knowledgeBase: w.value
306
+ },
307
+ l.signal
308
+ );
309
+ if (l.signal.aborted) return;
310
+ G(B), y.value = I < 0 ? null : I, a.open({
311
+ type: "success",
312
+ message: o("connect.whatsappBot.botSettings.saved")
313
+ });
314
+ } catch (B) {
315
+ l.signal.aborted || (x.value = B instanceof Error ? B.message : o("connect.whatsappBot.errors.saveSettings"), a.open({ type: "error", message: x.value }));
316
+ } finally {
317
+ l.signal.aborted || (u.value = !1);
318
+ }
319
+ }
320
+ async function Q() {
321
+ if (W.value) return;
322
+ const l = b;
323
+ !await ce.confirm(
324
+ o("connect.whatsappBot.botSettings.discardChangesMessage"),
325
+ o("connect.whatsappBot.botSettings.discardChangesTitle"),
326
+ o("connect.common.confirm"),
327
+ o("connect.common.cancel")
328
+ ) || W.value || b !== l || (t.value = v.value, h.value = F.value, n.value = _.value.map((I) => ({ ...I })), y.value = null);
329
+ }
330
+ return ee(i, K, { immediate: !0 }), te(() => {
331
+ b == null || b.abort();
332
+ }), (l, s) => {
333
+ const I = k("FmCircularProgress"), B = k("FmButton");
334
+ return c(), p("div", Le, [
335
+ P.value ? (c(), p("div", Me, [
336
+ g(I),
337
+ O(" " + m(e(o)("connect.whatsappBot.botSettings.loading")), 1)
338
+ ])) : (c(), p(N, { key: 1 }, [
339
+ S.value ? (c(), p(N, { key: 0 }, [
340
+ g(ve, {
341
+ modelValue: t.value,
342
+ "onUpdate:modelValue": s[0] || (s[0] = (V) => t.value = V),
343
+ disabled: u.value
344
+ }, null, 8, ["modelValue", "disabled"]),
345
+ g(Be, {
346
+ modelValue: n.value,
347
+ "onUpdate:modelValue": s[1] || (s[1] = (V) => n.value = V),
348
+ "active-topic-index": y.value,
349
+ "onUpdate:activeTopicIndex": s[2] || (s[2] = (V) => y.value = V),
350
+ disabled: u.value
351
+ }, null, 8, ["modelValue", "active-topic-index", "disabled"]),
352
+ g(Oe, {
353
+ modelValue: h.value,
354
+ "onUpdate:modelValue": s[3] || (s[3] = (V) => h.value = V),
355
+ disabled: u.value
356
+ }, null, 8, ["modelValue", "disabled"])
357
+ ], 64)) : T("", !0),
358
+ x.value ? (c(), p("p", We, m(x.value), 1)) : T("", !0),
359
+ S.value ? T("", !0) : (c(), oe(B, {
360
+ key: 2,
361
+ class: "self-start",
362
+ label: e(o)("connect.whatsappBot.tryAgain"),
363
+ "prepend-icon": "refresh",
364
+ onClick: K
365
+ }, null, 8, ["label"])),
366
+ r("div", De, [
367
+ g(B, {
368
+ variant: "secondary",
369
+ label: e(o)("connect.common.cancel"),
370
+ disabled: W.value,
371
+ onClick: Q
372
+ }, null, 8, ["label", "disabled"]),
373
+ g(B, {
374
+ label: e(o)("connect.common.save"),
375
+ disabled: R.value,
376
+ loading: u.value,
377
+ onClick: q
378
+ }, null, 8, ["label", "disabled", "loading"])
379
+ ])
380
+ ], 64))
381
+ ]);
382
+ };
383
+ }
384
+ });
385
+ export {
386
+ je as default
387
+ };
@@ -1,7 +1,7 @@
1
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-DwgfDwGn.js";
3
- import { S as A } from "./index-BVdImOs0.js";
4
- import { w as W } from "./index-xLDLoo67.js";
2
+ import { u as M } from "./vue-i18n-CkZqjA2G.js";
3
+ import { S as A } from "./index-CMGEBPm-.js";
4
+ import { w as W } from "./index-L7SBt-2D.js";
5
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
6
  key: 0,
7
7
  role: "status",
@@ -0,0 +1,21 @@
1
+ import { defineComponent as n, watch as s, unref as a, openBlock as o, createBlock as r, createCommentVNode as p } from "vue";
2
+ import { useRouter as c } from "vue-router";
3
+ import { _ as u, a as _ } from "./MainLayout.vue_vue_type_script_setup_true_lang-lO1k_OLo.js";
4
+ import { u as f } from "./feature-flag-DpIT0Nh2.js";
5
+ import { R as i } from "./app-CsPUjtBR.js";
6
+ const y = /* @__PURE__ */ n({
7
+ __name: "WhatsappLayout",
8
+ setup(d) {
9
+ const m = c(), e = f();
10
+ return s(
11
+ () => e.loaded && !e.whatsappBotEnabled,
12
+ (t) => {
13
+ t && m.replace({ name: i["$connect-ANALYTIC"] });
14
+ },
15
+ { immediate: !0 }
16
+ ), (t, l) => a(e).loaded ? a(e).whatsappBotEnabled ? (o(), r(_, { key: 1 })) : p("", !0) : (o(), r(u, { key: 0 }));
17
+ }
18
+ });
19
+ export {
20
+ y as default
21
+ };
@@ -0,0 +1,195 @@
1
+ import { defineComponent as M, mergeModels as S, useModel as U, computed as W, ref as l, watch as j, onBeforeUnmount as P, resolveComponent as v, openBlock as r, createBlock as $, withCtx as N, createElementVNode as e, toDisplayString as t, unref as n, createElementBlock as d, createVNode as G, createTextVNode as C, Fragment as z, renderList as H, createCommentVNode as F } from "vue";
2
+ import { u as J } from "./vue-i18n-CkZqjA2G.js";
3
+ import { b as K } from "./browser-BSAOEeIM.js";
4
+ import { S as O, a as I } from "./index-CMGEBPm-.js";
5
+ import { w as Q } from "./index-L7SBt-2D.js";
6
+ import { u as X } from "./useWhatsappAccount-1Yy7aaA9.js";
7
+ const Y = { class: "min-w-0 flex flex-col" }, Z = { class: "text-[18px] leading-[24px] font-semibold" }, ee = { class: "text-[13px] leading-[18px] text-fm-color-typo-secondary break-words" }, oe = {
8
+ key: 0,
9
+ role: "status",
10
+ class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
11
+ }, te = {
12
+ key: 1,
13
+ class: "py-[40px] flex flex-col items-center text-center gap-[16px]"
14
+ }, ne = {
15
+ role: "alert",
16
+ class: "text-[14px] text-fm-color-typo-error"
17
+ }, ae = {
18
+ key: 2,
19
+ class: "grid grid-cols-[minmax(0,1fr)_226px] xs:grid-cols-1 gap-[32px] p-[8px] xs:p-[0px]"
20
+ }, se = { class: "min-w-0 flex flex-col gap-[20px] text-[14px] leading-[20px]" }, ie = { class: "text-fm-color-typo-secondary" }, le = { class: "flex flex-col gap-[10px]" }, re = { class: "text-[12px] leading-[16px] font-semibold uppercase tracking-[0.06em] text-fm-color-typo-secondary" }, ce = { class: "flex flex-col gap-[10px]" }, pe = { class: "flex flex-col gap-[6px]" }, ue = {
21
+ id: "whatsapp-group-invite-link-label",
22
+ class: "font-medium text-fm-color-typo-secondary"
23
+ }, de = { class: "flex items-center gap-[8px] border border-fm-color-neutral-gray-200 rounded-[8px] pl-[12px] pr-[4px] py-[4px]" }, fe = {
24
+ id: "whatsapp-group-invite-link",
25
+ role: "textbox",
26
+ "aria-readonly": "true",
27
+ "aria-labelledby": "whatsapp-group-invite-link-label",
28
+ tabindex: "0",
29
+ class: "flex-1 min-w-0 h-[32px] overflow-x-auto overflow-y-hidden whitespace-nowrap text-[13px] leading-[32px] font-mono bg-fm-color-neutral-white rounded-[4px] focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary"
30
+ }, xe = ["disabled"], me = {
31
+ key: 0,
32
+ role: "status",
33
+ class: "sr-only"
34
+ }, he = {
35
+ key: 1,
36
+ role: "alert",
37
+ class: "text-[12px] leading-[16px] text-fm-color-typo-error"
38
+ }, ve = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, ge = { class: "flex flex-col items-center gap-[12px] w-[226px] xs:justify-self-center" }, _e = { class: "border border-fm-color-neutral-gray-100 rounded-[12px] overflow-hidden" }, ye = ["src", "alt"], we = ["href"], Le = /* @__PURE__ */ M({
39
+ __name: "WhatsappNotificationGroupDialog",
40
+ props: /* @__PURE__ */ S({
41
+ account: {}
42
+ }, {
43
+ modelValue: { type: Boolean, required: !0 },
44
+ modelModifiers: {}
45
+ }),
46
+ emits: ["update:modelValue"],
47
+ setup(L) {
48
+ const g = L, _ = U(L, "modelValue"), { t: o } = J(), m = W(() => O.getBusinessId() ?? ""), { name: T, phoneNumber: D } = X(() => g.account), i = l(), y = l(""), w = l(!1), c = l(""), p = l(!1), f = l(!1), x = l("");
49
+ let u, b;
50
+ function B() {
51
+ u == null || u.abort(), clearTimeout(b), p.value = !1, f.value = !1;
52
+ }
53
+ async function V() {
54
+ B();
55
+ const a = new AbortController();
56
+ u = a, w.value = !0, c.value = "", x.value = "", i.value = void 0, y.value = "";
57
+ try {
58
+ if (!m.value)
59
+ throw new Error(o("connect.whatsappBot.errors.selectBusiness"));
60
+ const s = await Q.getNotificationGroup(
61
+ m.value,
62
+ g.account.clientId,
63
+ a.signal
64
+ );
65
+ if (a.signal.aborted) return;
66
+ const k = await K.toDataURL(s.inviteLink, {
67
+ width: 224,
68
+ margin: 2,
69
+ errorCorrectionLevel: "M"
70
+ });
71
+ if (a.signal.aborted) return;
72
+ i.value = s, y.value = k;
73
+ } catch (s) {
74
+ if (a.signal.aborted) return;
75
+ s instanceof I && s.status === 409 ? c.value = o("connect.whatsappBot.notificationGroup.notReady") : s instanceof I && s.status === 404 ? c.value = o("connect.whatsappBot.errors.accountNotFound") : c.value = m.value ? o("connect.whatsappBot.errors.loadGroup") : o("connect.whatsappBot.errors.selectBusiness");
76
+ } finally {
77
+ a.signal.aborted || (w.value = !1);
78
+ }
79
+ }
80
+ async function q() {
81
+ if (!i.value || !u || f.value) return;
82
+ const a = u;
83
+ f.value = !0, p.value = !1, x.value = "", clearTimeout(b);
84
+ try {
85
+ if (await navigator.clipboard.writeText(i.value.inviteLink), a.signal.aborted) return;
86
+ p.value = !0, b = setTimeout(() => {
87
+ p.value = !1;
88
+ }, 2e3);
89
+ } catch {
90
+ a.signal.aborted || (x.value = o("connect.whatsappBot.errors.copyGroupLink"));
91
+ } finally {
92
+ a.signal.aborted || (f.value = !1);
93
+ }
94
+ }
95
+ return j(
96
+ [_, m, () => g.account.clientId],
97
+ ([a]) => {
98
+ a ? V() : B();
99
+ },
100
+ { immediate: !0 }
101
+ ), P(B), (a, s) => {
102
+ const k = v("FmCircularProgress"), A = v("FmButton"), E = v("FmIcon"), R = v("FmDialog");
103
+ return r(), $(R, {
104
+ modelValue: _.value,
105
+ "onUpdate:modelValue": s[0] || (s[0] = (h) => _.value = h),
106
+ "min-width": "min(720px, calc(100% - 32px))",
107
+ "max-width": "720px",
108
+ "max-height": "90vh",
109
+ "dismiss-away": ""
110
+ }, {
111
+ "dialog-header": N(() => [
112
+ e("div", Y, [
113
+ e("h2", Z, t(n(o)("connect.whatsappBot.notificationGroup.dialogTitle")), 1),
114
+ e("p", ee, t(n(T)) + " · " + t(n(D)), 1)
115
+ ])
116
+ ]),
117
+ default: N(() => [
118
+ w.value ? (r(), d("div", oe, [
119
+ G(k),
120
+ C(" " + t(n(o)("connect.whatsappBot.notificationGroup.loading")), 1)
121
+ ])) : c.value ? (r(), d("div", te, [
122
+ e("p", ne, t(c.value), 1),
123
+ G(A, {
124
+ label: n(o)("connect.whatsappBot.tryAgain"),
125
+ "prepend-icon": "refresh",
126
+ onClick: V
127
+ }, null, 8, ["label"])
128
+ ])) : i.value ? (r(), d("div", ae, [
129
+ e("div", se, [
130
+ e("p", ie, t(n(o)("connect.whatsappBot.notificationGroup.scanDescription")), 1),
131
+ e("div", le, [
132
+ e("h3", re, t(n(o)("connect.whatsappBot.notificationGroup.postsTitle")), 1),
133
+ e("ul", ce, [
134
+ (r(), d(z, null, H(["unanswered", "staffRequests", "humanRequests"], (h) => e("li", {
135
+ key: h,
136
+ class: "flex gap-[10px]"
137
+ }, [
138
+ s[1] || (s[1] = e("span", {
139
+ "aria-hidden": "true",
140
+ class: "w-[6px] h-[6px] rounded-full bg-fm-color-primary shrink-0 mt-[7px]"
141
+ }, null, -1)),
142
+ C(" " + t(n(o)(`connect.whatsappBot.notificationGroup.posts.${h}`)), 1)
143
+ ])), 64))
144
+ ])
145
+ ]),
146
+ e("div", pe, [
147
+ e("span", ue, t(n(o)("connect.whatsappBot.notificationGroup.inviteLink")), 1),
148
+ e("div", de, [
149
+ e("div", fe, t(i.value.inviteLink), 1),
150
+ e("button", {
151
+ type: "button",
152
+ disabled: f.value,
153
+ class: "shrink-0 h-[32px] px-[12px] rounded-[6px] bg-fm-color-neutral-gray-100 text-[13px] font-semibold hover:bg-fm-color-neutral-gray-200 disabled:opacity-50 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary",
154
+ onClick: q
155
+ }, t(n(o)(
156
+ `connect.whatsappBot.notificationGroup.${p.value ? "copied" : "copy"}`
157
+ )), 9, xe)
158
+ ]),
159
+ p.value ? (r(), d("span", me, t(n(o)("connect.whatsappBot.notificationGroup.copied")), 1)) : F("", !0),
160
+ x.value ? (r(), d("p", he, t(x.value), 1)) : F("", !0),
161
+ e("p", ve, t(n(o)("connect.whatsappBot.notificationGroup.shareNote")), 1)
162
+ ])
163
+ ]),
164
+ e("div", ge, [
165
+ e("div", _e, [
166
+ e("img", {
167
+ src: y.value,
168
+ alt: n(o)("connect.whatsappBot.notificationGroup.qrAlt"),
169
+ width: "224",
170
+ height: "224"
171
+ }, null, 8, ye)
172
+ ]),
173
+ e("a", {
174
+ href: i.value.inviteLink,
175
+ target: "_blank",
176
+ rel: "noopener noreferrer",
177
+ class: "w-full h-[40px] flex items-center justify-center gap-[6px] rounded-full bg-fm-color-primary text-fm-color-typo-white text-[14px] font-semibold no-underline hover:opacity-90 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary focus-visible:ring-offset-[2px]"
178
+ }, [
179
+ C(t(n(o)("connect.whatsappBot.notificationGroup.openWhatsapp")) + " ", 1),
180
+ G(E, {
181
+ name: "open_in_new",
182
+ size: "sm"
183
+ })
184
+ ], 8, we)
185
+ ])
186
+ ])) : F("", !0)
187
+ ]),
188
+ _: 1
189
+ }, 8, ["modelValue"]);
190
+ };
191
+ }
192
+ });
193
+ export {
194
+ Le as _
195
+ };
@@ -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-BDeUQtCa.js";
3
- import { u as V } from "./vue-i18n-DwgfDwGn.js";
2
+ import { Z as d } from "./zod-DByiKRxr.js";
3
+ import { u as V } from "./vue-i18n-CkZqjA2G.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"