@feedmepos/mf-connect 0.1.117-dev → 0.1.118-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.
Files changed (135) hide show
  1. package/README.md +12 -8
  2. package/dist/{App-BpcsgH7K.js → App-CBFNBDb2.js} +275 -275
  3. package/dist/{AuditLogs-BNnUiVnD.js → AuditLogs-BtSA8b08.js} +13 -13
  4. package/dist/{Bin-Cm0wjQeR.js → Bin-CjmS_Tfn.js} +8 -8
  5. package/dist/{Broadcast-BoJaHqnO.js → Broadcast-BeePmZa1.js} +12 -12
  6. package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-CZlnyvOi.js} +7 -7
  7. package/dist/{CampaignTypeDialog.vue_vue_type_script_setup_true_lang-BXylK6Ze.js → CampaignTypeDialog.vue_vue_type_script_setup_true_lang-Du3Ah4HP.js} +9 -9
  8. package/dist/{Card-BfkMcFaG.js → Card-C8SzQQ0z.js} +23 -23
  9. package/dist/{Collections-RXmxQbII.js → Collections-BXNWTSZH.js} +8 -8
  10. package/dist/{Credit-CsRPM1jv.js → Credit-CK0-0yD1.js} +12 -12
  11. package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
  12. package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js} +1042 -1045
  13. package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +6 -6
  14. package/dist/{Experience-BC8Pj-v9.js → Experience-CWJaj62g.js} +13 -13
  15. package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-lV9H82L5.js} +1 -1
  16. package/dist/{Game-DJXNHFBs.js → Game-zBV1LYAg.js} +13 -13
  17. package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-Cnq9353j.js} +10 -10
  18. package/dist/{GoalPickerPanel.vue_vue_type_script_setup_true_lang-C-AiJdui.js → GoalPickerPanel.vue_vue_type_script_setup_true_lang-CdgSBdrX.js} +7 -7
  19. package/dist/{Goals-DSZwKpds.js → Goals-Utk08egN.js} +4 -4
  20. package/dist/{Grab-DDc7e-AC.js → Grab-DwMmWmbT.js} +9 -9
  21. package/dist/{ImageInput.vue_vue_type_script_setup_true_lang-BZb-H4fM.js → ImageInput.vue_vue_type_script_setup_true_lang-CNPeU9xm.js} +1 -1
  22. package/dist/{Index-Cbi0bquE.js → Index-Bjgs18xf.js} +10 -10
  23. package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
  24. package/dist/{LottieAnimation.vue_vue_type_script_setup_true_lang-Bt9CO_QR.js → LottieAnimation.vue_vue_type_script_setup_true_lang-Dy_oWJaZ.js} +1 -1
  25. package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
  26. package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-DlDZQJfy.js} +1 -1
  27. package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +3 -3
  28. package/dist/{Marketing-B7cZGsO-.js → Marketing-B0iKlHP-.js} +4 -4
  29. package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-BNHxVb8A.js} +6 -6
  30. package/dist/{Member-BGTrRVdq.js → Member-Bcm3_pWB.js} +7 -7
  31. package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +24 -24
  32. package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-AQgLzB3g.js} +7 -7
  33. package/dist/{MemberList-EjY5dgwt.js → MemberList-CkMTo2uD.js} +14 -14
  34. package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CxLCVjvw.js} +1 -1
  35. package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +10 -10
  36. package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
  37. package/dist/{Mission-BFHYb4aT.js → Mission-CQS1CoDN.js} +14 -14
  38. package/dist/{Overview-BVNyQxFL.js → Overview-NQ287sgq.js} +21 -21
  39. package/dist/{Overview-d5U37aot.js → Overview-UG1IjY7-.js} +4 -4
  40. package/dist/{Point-CXkqH02Z.js → Point-krMa_mb1.js} +14 -14
  41. package/dist/{Promotion-DdxNvlOO.js → Promotion-vFBmJSti.js} +14 -14
  42. package/dist/{Queue-C96oNKyP.js → Queue-BusxSPt-.js} +13 -13
  43. package/dist/{Record-Bj2e2Y4i.js → Record-DjKqn0za.js} +9 -9
  44. package/dist/{Review-CJK5S1oI.js → Review-CqLp8l7U.js} +2 -2
  45. package/dist/{ReviewFacebookCallback-ChG7TRy5.js → ReviewFacebookCallback-D2kMSVFC.js} +5 -5
  46. package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
  47. package/dist/Reward-FeSxgzuS.js +444 -0
  48. package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +14 -14
  49. package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js → RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js} +15 -15
  50. package/dist/{Segment-FYvtCkqH.js → Segment-Nj59F9Nr.js} +26 -26
  51. package/dist/{SendCollectionSheet.vue_vue_type_script_setup_true_lang-DPZZz2e0.js → SendCollectionSheet.vue_vue_type_script_setup_true_lang-Kg9m-0DS.js} +15 -15
  52. package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
  53. package/dist/{Setting-CUAWjCqa.js → Setting-CCIzNxv-.js} +14 -14
  54. package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
  55. package/dist/{Settings-D2gFPvmW.js → Settings-CYjKGCpa.js} +5 -5
  56. package/dist/{Store-BAXwiyvx.js → Store-Bp8Zkzi2.js} +27 -27
  57. package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-DXW5nVyW.js} +15 -15
  58. package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js} +25 -25
  59. package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js} +2 -2
  60. package/dist/{Tier-BmAOzRHL.js → Tier-B8Utn9Qb.js} +27 -27
  61. package/dist/{Title-DMxiUg30.js → Title-CwaNSFer.js} +23 -23
  62. package/dist/{Transaction-CF6hXEpN.js → Transaction-ieciAdXP.js} +2 -2
  63. package/dist/{UserRuleGroup.vue_vue_type_script_setup_true_lang-BON_t0dL.js → UserRuleGroup.vue_vue_type_script_setup_true_lang-CMwZl4E6.js} +6 -6
  64. package/dist/{Voucher-DrtITxq-.js → Voucher-BKfujj6r.js} +18 -18
  65. package/dist/{VoucherEditor.vue_vue_type_script_setup_true_lang-1DZOzJKx.js → VoucherEditor.vue_vue_type_script_setup_true_lang-CkH-rNqZ.js} +12 -12
  66. package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-D73WDP7a.js} +66 -64
  67. package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js} +1 -1
  68. package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DTWZAXhi.js} +324 -322
  69. package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-DtDcrjs9.js} +11 -11
  70. package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-7_mH9U4y.js} +287 -288
  71. package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
  72. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
  73. package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
  74. package/dist/{app-BjdLqYQq.js → app-DX7OWVY2.js} +528 -524
  75. package/dist/app.js +1 -1
  76. package/dist/{base.export-B68z5BF6.js → base.export-bamzzexi.js} +2 -2
  77. package/dist/{business-D9fgkHxb.js → business-D3U9HSu9.js} +1 -1
  78. package/dist/{campaign-Dw_ujovr.js → campaign-BqRf2VUO.js} +8 -8
  79. package/dist/{campaign-eMaPX8r6.js → campaign-CKfeN2xN.js} +2 -2
  80. package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-DQe5LZuT.js} +38 -38
  81. package/dist/{collection.fn-CCOWtB-c.js → collection.fn-BcGqExuE.js} +2 -2
  82. package/dist/{currency-CTLKReFC.js → currency-sjMYWoI8.js} +1 -1
  83. package/dist/{duplicateCampaign-BcpBfUGL.js → duplicateCampaign-CJF3ZLNd.js} +2 -2
  84. package/dist/{effect-CTI1ZH57.js → effect-Cv8ugBR3.js} +1 -1
  85. package/dist/{email-addresses-B74e3bnB.js → email-addresses-CWqtseTn.js} +2 -2
  86. package/dist/{feature-flag-DVdEaChJ.js → feature-flag-BIh6MM4i.js} +159 -159
  87. package/dist/{helper-as9K-piK.js → helper-WnxOxoRK.js} +1 -1
  88. package/dist/{index-CHU3UePP.js → index-5TTGGDnF.js} +1 -1
  89. package/dist/{index-Ba719MYq.js → index-B3CkAr-6.js} +1 -1
  90. package/dist/{index-Czg-2Ni0.js → index-B9XVyhtC.js} +3 -3
  91. package/dist/{index-BW7FoVEA.js → index-BGguMtc0.js} +1 -1
  92. package/dist/{index-BbVbqe4Y.js → index-Bdg48Cus.js} +2 -2
  93. package/dist/{index-B_wRpO02.js → index-BoAmM8QH.js} +2 -2
  94. package/dist/{index-TAoQpeLQ.js → index-BtmVXdRR.js} +1 -1
  95. package/dist/{index-3LjKJhQa.js → index-CDTETsXQ.js} +1 -1
  96. package/dist/{index-DKI8401o.js → index-CeafUn1o.js} +2 -2
  97. package/dist/{index-QHqcSN2q.js → index-CiSTQhs9.js} +1 -1
  98. package/dist/{index-C5V6u2Qd.js → index-ClvaVYkG.js} +2 -2
  99. package/dist/{index-CWLOcQ6j.js → index-CnsSd5Dg.js} +9 -9
  100. package/dist/{index-B0h0iYWP.js → index-D3yYjyaj.js} +2 -2
  101. package/dist/{index-8mBfDn3M.js → index-DDzi_-Lu.js} +7 -7
  102. package/dist/{index-Ckz6u3ac.js → index-DOgDR_QH.js} +2 -2
  103. package/dist/{index-BEKMTiFb.js → index-DqZX-A6e.js} +3 -3
  104. package/dist/{index-DcZiikOH.js → index-DxhNNZ-a.js} +2 -2
  105. package/dist/{index-wsCCqwdr.js → index-DzYFQGSw.js} +2 -2
  106. package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
  107. package/dist/{index-CQxkDpX0.js → index-iiWxryxo.js} +4 -4
  108. package/dist/{index-BhTrG89b.js → index-qI1yx02a.js} +4 -4
  109. package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-GI2alVO5.js} +1 -1
  110. package/dist/{loading-x6IScY4K.js → loading-Qx5K2WL0.js} +1 -1
  111. package/dist/{lodash-nwnDizYo.js → lodash-CeSjJptg.js} +1 -1
  112. package/dist/{member-import-C-b01Tyd.js → member-import-Cq8G7SsW.js} +1 -1
  113. package/dist/{membership-DfarOMtO.js → membership-BbeavSNs.js} +2 -2
  114. package/dist/{money-CFn-jR4W.js → money-D8YIFaGA.js} +1 -1
  115. package/dist/{number-CSlyDL2x.js → number-DAubZ5bt.js} +1 -1
  116. package/dist/{objectid-zcT6ESET.js → objectid-DeXFWDMh.js} +6 -6
  117. package/dist/{onboarding-DyaFaaF2.js → onboarding-SyFxaTJY.js} +3 -3
  118. package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-CLpHlBn8.js} +2 -2
  119. package/dist/{plugins-DEHr0UOe.js → plugins-BHuaMEYA.js} +3 -3
  120. package/dist/{reward-Du_Pv-4p.js → reward-dYWnmAC8.js} +1 -1
  121. package/dist/{rule-DfqmQTVK.js → rule-BVsfOP2h.js} +10 -10
  122. package/dist/{template-CcbNF4PF.js → template-BcdtbhUJ.js} +6 -6
  123. package/dist/{timezone-_4tabIaK.js → timezone-CUc7q5Ii.js} +1 -1
  124. package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-jF9u_cBy.js} +2 -2
  125. package/dist/{trigger-Dipr6btC.js → trigger-COlbQlaB.js} +5 -5
  126. package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-Dq6-gsOW.js} +4 -4
  127. package/dist/{usePagination-D6RZ18zS.js → usePagination-BYZB6ORK.js} +1 -1
  128. package/dist/{user-BCexQj3Q.js → user-DK7L8VFR.js} +1 -1
  129. package/dist/{vue-i18n-DXvyTCZf.js → vue-i18n-CDSTH7g5.js} +162 -162
  130. package/dist/{xlsx-BTxt_Jg6.js → xlsx-CKxXlDzD.js} +1 -1
  131. package/dist/{zod-T4wMYjWT.js → zod-DjtAaF0U.js} +1 -1
  132. package/package.json +1 -1
  133. package/dist/Reward-Dh2YI0Xb.js +0 -442
  134. package/dist/WhatsappLayout-DeQTPuF6.js +0 -21
  135. package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
@@ -1,20 +1,20 @@
1
- import { defineComponent as L, mergeModels as Z, useModel as H, openBlock as a, createElementBlock as c, createElementVNode as e, toDisplayString as l, unref as t, withDirectives as q, vModelText as re, resolveComponent as $, Fragment as O, renderList as ee, createBlock as N, ref as y, computed as V, watch as ce, onBeforeUnmount as ie, createCommentVNode as _, createVNode as k, createTextVNode as D, withCtx as ae, normalizeClass as X, vModelRadio as xe } from "vue";
2
- import { u as U } from "./vue-i18n-DXvyTCZf.js";
1
+ import { defineComponent as O, mergeModels as Z, useModel as H, openBlock as a, createElementBlock as i, createElementVNode as e, toDisplayString as l, unref as t, withDirectives as q, vModelText as re, resolveComponent as $, Fragment as L, renderList as ee, createBlock as P, ref as y, computed as E, watch as ce, onBeforeUnmount as ie, createCommentVNode as _, createVNode as S, createTextVNode as N, withCtx as ae, normalizeClass as X, vModelRadio as fe } from "vue";
2
+ import { u as U } from "./vue-i18n-CDSTH7g5.js";
3
3
  import { useSnackbar as de } from "@feedmepos/ui-library";
4
- import { F as J, a as W, b as fe, c as se, d as ve, e as z, f as be } from "./index-C-iwb2Ln.js";
5
- import { S as Q } from "./index-DKI8401o.js";
6
- import { w as Y } from "./index-wsCCqwdr.js";
7
- import { p as ge } from "./plugins-DEHr0UOe.js";
8
- const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col gap-[2px]" }, _e = {
4
+ import { F as J, a as W, b as be, c as se, d as ve, e as z, f as ge } from "./index-I9lmcd2w.js";
5
+ import { S as Q } from "./index-CeafUn1o.js";
6
+ import { w as Y } from "./index-DzYFQGSw.js";
7
+ import { p as he } from "./plugins-BHuaMEYA.js";
8
+ const ye = { class: "flex flex-col gap-[10px]" }, _e = { class: "flex flex-col gap-[2px]" }, we = {
9
9
  id: "whatsapp-bot-instructions-title",
10
10
  class: "text-[16px] leading-[24px] font-semibold"
11
- }, we = {
11
+ }, Be = {
12
12
  id: "whatsapp-bot-instructions-description",
13
13
  class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]"
14
- }, Be = { class: "flex flex-col gap-[6px]" }, ke = ["placeholder", "maxlength", "disabled"], Se = {
14
+ }, ke = { class: "flex flex-col gap-[6px]" }, Se = ["placeholder", "maxlength", "disabled"], $e = {
15
15
  id: "whatsapp-bot-instructions-count",
16
16
  class: "text-right text-[12px] leading-[16px] text-fm-color-typo-tertiary tabular-nums"
17
- }, $e = /* @__PURE__ */ L({
17
+ }, Ae = /* @__PURE__ */ O({
18
18
  __name: "BotInstructions",
19
19
  props: /* @__PURE__ */ Z({
20
20
  disabled: { type: Boolean }
@@ -23,55 +23,55 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
23
23
  modelModifiers: {}
24
24
  }),
25
25
  emits: ["update:modelValue"],
26
- setup(i) {
27
- const n = H(i, "modelValue"), { t: u } = U();
28
- return (s, o) => (a(), c("div", he, [
29
- e("div", ye, [
30
- e("h2", _e, l(t(u)("connect.whatsappBot.botSettings.instructions")), 1),
31
- e("p", we, l(t(u)("connect.whatsappBot.botSettings.description")), 1)
26
+ setup(p) {
27
+ const n = H(p, "modelValue"), { t: m } = U();
28
+ return (s, o) => (a(), i("div", ye, [
29
+ e("div", _e, [
30
+ e("h2", we, l(t(m)("connect.whatsappBot.botSettings.instructions")), 1),
31
+ e("p", Be, l(t(m)("connect.whatsappBot.botSettings.description")), 1)
32
32
  ]),
33
- e("div", Be, [
33
+ e("div", ke, [
34
34
  q(e("textarea", {
35
- "onUpdate:modelValue": o[0] || (o[0] = (v) => n.value = v),
35
+ "onUpdate:modelValue": o[0] || (o[0] = (b) => n.value = b),
36
36
  "aria-labelledby": "whatsapp-bot-instructions-title",
37
37
  "aria-describedby": "whatsapp-bot-instructions-description whatsapp-bot-instructions-count",
38
- placeholder: t(u)("connect.whatsappBot.botSettings.placeholder"),
38
+ placeholder: t(m)("connect.whatsappBot.botSettings.placeholder"),
39
39
  maxlength: t(J),
40
- disabled: i.disabled,
40
+ disabled: p.disabled,
41
41
  rows: "6",
42
42
  class: "block w-full min-h-[136px] resize-y rounded-[8px] border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white p-[12px] text-[14px] leading-[20px] text-fm-color-typo-primary placeholder:text-fm-color-typo-tertiary transition-[border-color,box-shadow] focus:border-fm-color-primary focus:outline-none focus:ring-[4px] focus:ring-fm-color-primary/30 disabled:cursor-not-allowed disabled:bg-fm-color-neutral-gray-100 disabled:text-fm-color-typo-disabled"
43
- }, null, 8, ke), [
43
+ }, null, 8, Se), [
44
44
  [re, n.value]
45
45
  ]),
46
- e("p", Se, l(n.value.length) + " / " + l(t(J)), 1)
46
+ e("p", $e, l(n.value.length) + " / " + l(t(J)), 1)
47
47
  ])
48
48
  ]));
49
49
  }
50
- }), Ae = { class: "overflow-x-auto" }, Te = ["aria-label"], Ie = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-100/30 text-[12px] leading-[16px] text-fm-color-typo-tertiary" }, Fe = {
50
+ }), Te = { class: "overflow-x-auto" }, Ie = ["aria-label"], Fe = { class: "border-b border-fm-color-neutral-gray-100 bg-fm-color-neutral-gray-100/30 text-[12px] leading-[16px] text-fm-color-typo-tertiary" }, Ce = {
51
51
  scope: "col",
52
52
  class: "py-[10px] pl-[16px] pr-[8px] font-semibold"
53
- }, Ce = {
54
- scope: "col",
55
- class: "px-[8px] py-[10px] font-semibold"
56
53
  }, Ee = {
57
54
  scope: "col",
58
55
  class: "px-[8px] py-[10px] font-semibold"
59
56
  }, Ve = {
57
+ scope: "col",
58
+ class: "px-[8px] py-[10px] font-semibold"
59
+ }, Pe = {
60
60
  scope: "col",
61
61
  class: "py-[10px] pl-[8px] pr-[16px]"
62
- }, Pe = { class: "sr-only" }, Ne = { class: "text-[14px] leading-[20px]" }, De = { class: "py-[8px] pl-[16px] pr-[8px] font-medium" }, Oe = ["title"], Le = { class: "px-[8px] py-[8px] text-fm-color-typo-secondary tabular-nums" }, Ue = ["title"], Me = { class: "px-[8px] py-[8px] text-fm-color-typo-tertiary tabular-nums" }, Re = ["datetime", "title"], We = { class: "py-[8px] pl-[8px] pr-[16px]" }, ze = ["aria-label", "disabled", "aria-busy", "onClick"], He = { key: 1 }, ne = /* @__PURE__ */ L({
62
+ }, Ne = { class: "sr-only" }, De = { class: "text-[14px] leading-[20px]" }, Le = { class: "py-[8px] pl-[16px] pr-[8px] font-medium" }, Oe = ["title"], Ue = { class: "px-[8px] py-[8px] text-fm-color-typo-secondary tabular-nums" }, Me = ["title"], Re = { class: "px-[8px] py-[8px] text-fm-color-typo-tertiary tabular-nums" }, We = ["datetime", "title"], ze = { class: "py-[8px] pl-[8px] pr-[16px]" }, He = ["aria-label", "disabled", "aria-busy", "onClick"], Ge = { key: 1 }, ne = /* @__PURE__ */ O({
63
63
  __name: "ExcludedAccountsTable",
64
64
  props: {
65
65
  accounts: {},
66
66
  removingId: {}
67
67
  },
68
68
  emits: ["remove"],
69
- setup(i, { emit: n }) {
70
- const u = n, { t: s, locale: o } = U();
71
- function v(f) {
69
+ setup(p, { emit: n }) {
70
+ const m = n, { t: s, locale: o } = U();
71
+ function b(f) {
72
72
  return f.customerName || f.phoneNumber || f.customerLid;
73
73
  }
74
- function d(f) {
74
+ function u(f) {
75
75
  return new Intl.DateTimeFormat(o.value, {
76
76
  dateStyle: "medium",
77
77
  timeStyle: "short"
@@ -79,7 +79,7 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
79
79
  }
80
80
  return (f, h) => {
81
81
  const w = $("FmCircularProgress");
82
- return a(), c("div", Ae, [
82
+ return a(), i("div", Te, [
83
83
  e("table", {
84
84
  "aria-label": t(s)("connect.whatsappBot.excludedAccounts.title"),
85
85
  class: "w-full min-w-[600px] table-fixed border-collapse text-left"
@@ -90,99 +90,98 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
90
90
  e("col"),
91
91
  e("col", { class: "w-[116px]" })
92
92
  ], -1)),
93
- e("thead", Ie, [
93
+ e("thead", Fe, [
94
94
  e("tr", null, [
95
- e("th", Fe, l(t(s)("connect.whatsappBot.excludedAccounts.name")), 1),
96
- e("th", Ce, l(t(s)("connect.whatsappBot.excludedAccounts.phoneNumber")), 1),
97
- e("th", Ee, l(t(s)("connect.whatsappBot.excludedAccounts.excludedOn")), 1),
98
- e("th", Ve, [
99
- e("span", Pe, l(t(s)("connect.whatsappBot.excludedAccounts.actions")), 1)
95
+ e("th", Ce, l(t(s)("connect.whatsappBot.excludedAccounts.name")), 1),
96
+ e("th", Ee, l(t(s)("connect.whatsappBot.excludedAccounts.phoneNumber")), 1),
97
+ e("th", Ve, l(t(s)("connect.whatsappBot.excludedAccounts.excludedOn")), 1),
98
+ e("th", Pe, [
99
+ e("span", Ne, l(t(s)("connect.whatsappBot.excludedAccounts.actions")), 1)
100
100
  ])
101
101
  ])
102
102
  ]),
103
- e("tbody", Ne, [
104
- (a(!0), c(O, null, ee(i.accounts, (r) => (a(), c("tr", {
103
+ e("tbody", De, [
104
+ (a(!0), i(L, null, ee(p.accounts, (r) => (a(), i("tr", {
105
105
  key: r.id,
106
106
  class: "border-b border-fm-color-neutral-gray-100 last:border-b-0"
107
107
  }, [
108
- e("td", De, [
108
+ e("td", Le, [
109
109
  e("span", {
110
110
  class: "block truncate",
111
- title: v(r)
112
- }, l(v(r)), 9, Oe)
111
+ title: b(r)
112
+ }, l(b(r)), 9, Oe)
113
113
  ]),
114
- e("td", Le, [
114
+ e("td", Ue, [
115
115
  e("span", {
116
116
  class: "block truncate",
117
117
  title: r.phoneNumber || t(s)("connect.whatsappBot.phoneUnavailable")
118
- }, l(r.phoneNumber || t(s)("connect.whatsappBot.phoneUnavailable")), 9, Ue)
118
+ }, l(r.phoneNumber || t(s)("connect.whatsappBot.phoneUnavailable")), 9, Me)
119
119
  ]),
120
- e("td", Me, [
120
+ e("td", Re, [
121
121
  e("time", {
122
122
  datetime: r.updatedAt,
123
- title: d(r.updatedAt),
123
+ title: u(r.updatedAt),
124
124
  class: "block truncate"
125
- }, l(d(r.updatedAt)), 9, Re)
125
+ }, l(u(r.updatedAt)), 9, We)
126
126
  ]),
127
- e("td", We, [
127
+ e("td", ze, [
128
128
  e("button", {
129
129
  type: "button",
130
130
  "aria-label": t(s)("connect.whatsappBot.excludedAccounts.removeAccount", {
131
- name: v(r)
131
+ name: b(r)
132
132
  }),
133
- disabled: !!i.removingId,
134
- "aria-busy": i.removingId === r.id,
133
+ disabled: !!p.removingId,
134
+ "aria-busy": p.removingId === r.id,
135
135
  class: "flex h-[32px] w-[84px] items-center justify-center rounded-[8px] text-[14px] font-semibold text-fm-color-typo-secondary transition-colors hover:bg-fm-color-system-error-100 hover:text-fm-color-typo-error focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary disabled:cursor-wait disabled:opacity-50",
136
- onClick: (T) => u("remove", r)
136
+ onClick: (T) => m("remove", r)
137
137
  }, [
138
- i.removingId === r.id ? (a(), N(w, {
138
+ p.removingId === r.id ? (a(), P(w, {
139
139
  key: 0,
140
140
  size: "md",
141
141
  "aria-hidden": "true"
142
- })) : (a(), c("span", He, l(t(s)("connect.common.remove")), 1))
143
- ], 8, ze)
142
+ })) : (a(), i("span", Ge, l(t(s)("connect.common.remove")), 1))
143
+ ], 8, He)
144
144
  ])
145
145
  ]))), 128))
146
146
  ])
147
- ], 8, Te)
147
+ ], 8, Ie)
148
148
  ]);
149
149
  };
150
150
  }
151
- }), Ge = {
151
+ }), Ke = {
152
152
  id: "whatsapp-excluded-accounts",
153
153
  "aria-labelledby": "whatsapp-excluded-accounts-title",
154
154
  class: "flex min-w-0 flex-col gap-[12px]"
155
- }, Ke = { class: "flex flex-col gap-[2px]" }, je = {
155
+ }, je = { class: "flex flex-col gap-[2px]" }, Xe = {
156
156
  id: "whatsapp-excluded-accounts-title",
157
157
  class: "text-[16px] leading-[24px] font-semibold"
158
- }, Xe = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, Je = {
158
+ }, Je = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, Qe = {
159
159
  key: 0,
160
160
  role: "alert",
161
161
  class: "text-[14px] text-fm-color-typo-error"
162
- }, Qe = {
162
+ }, Ye = {
163
163
  key: 1,
164
- role: "status",
165
164
  class: "flex flex-col items-center gap-[12px] py-[32px] text-[14px] text-fm-color-typo-secondary"
166
- }, Ye = {
165
+ }, Ze = {
167
166
  key: 0,
168
167
  class: "flex flex-wrap items-center gap-[12px]"
169
- }, Ze = {
168
+ }, qe = {
170
169
  role: "alert",
171
170
  class: "text-[14px] text-fm-color-typo-error"
172
- }, qe = {
171
+ }, et = {
173
172
  key: 1,
174
173
  class: "flex flex-col items-center gap-[6px] rounded-[16px] border border-fm-color-neutral-gray-200 px-[24px] py-[32px] text-center"
175
- }, et = { class: "text-[16px] leading-[24px] font-semibold" }, tt = { class: "max-w-[420px] text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, ot = {
174
+ }, tt = { class: "text-[16px] leading-[24px] font-semibold" }, ot = { class: "max-w-[420px] text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, lt = {
176
175
  key: 2,
177
176
  class: "overflow-hidden rounded-[16px] border border-fm-color-neutral-gray-100 bg-fm-color-neutral-white"
178
- }, lt = { class: "flex min-w-0 flex-col" }, at = { class: "text-[18px] leading-[24px] font-semibold" }, st = { class: "text-[14px] leading-[20px] text-fm-color-typo-tertiary" }, nt = {
177
+ }, at = { class: "flex min-w-0 flex-col" }, st = { class: "text-[18px] leading-[24px] font-semibold" }, nt = { class: "text-[14px] leading-[20px] text-fm-color-typo-tertiary" }, rt = {
179
178
  key: 0,
180
179
  role: "alert",
181
180
  class: "mb-[12px] text-[14px] text-fm-color-typo-error"
182
- }, rt = {
181
+ }, ct = {
183
182
  key: 1,
184
183
  class: "px-[24px] py-[40px] text-center text-[14px] text-fm-color-typo-secondary"
185
- }, ct = /* @__PURE__ */ L({
184
+ }, it = /* @__PURE__ */ O({
186
185
  __name: "ExcludedAccounts",
187
186
  props: {
188
187
  accounts: {},
@@ -190,82 +189,82 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
190
189
  error: {}
191
190
  },
192
191
  emits: ["retry", "removed"],
193
- setup(i, { emit: n }) {
194
- const u = i, s = n, { t: o } = U(), v = de(), d = y(""), f = y(""), h = y(!1);
192
+ setup(p, { emit: n }) {
193
+ const m = p, s = n, { t: o } = U(), b = de(), u = y(""), f = y(""), h = y(!1);
195
194
  let w;
196
- const r = V(
197
- () => [...u.accounts].sort((m, b) => b.updatedAt.localeCompare(m.updatedAt))
198
- ), T = V(() => r.value.slice(0, 3));
199
- async function E(m) {
200
- if (d.value) return;
201
- const b = Q.getBusinessId();
202
- if (!b || m.businessId !== b) return;
195
+ const r = E(
196
+ () => [...m.accounts].sort((x, v) => v.updatedAt.localeCompare(x.updatedAt))
197
+ ), T = E(() => r.value.slice(0, 3));
198
+ async function C(x) {
199
+ if (u.value) return;
200
+ const v = Q.getBusinessId();
201
+ if (!v || x.businessId !== v) return;
203
202
  const B = new AbortController();
204
- w = B, d.value = m.id, f.value = "";
203
+ w = B, u.value = x.id, f.value = "";
205
204
  try {
206
205
  if (await Y.removeExcludedAccount(
207
- b,
208
- m.id,
206
+ v,
207
+ x.id,
209
208
  B.signal
210
209
  ), B.signal.aborted) return;
211
- s("removed", m.id), v.open({
210
+ s("removed", x.id), b.open({
212
211
  type: "success",
213
212
  message: o("connect.whatsappBot.excludedAccounts.removed", {
214
- name: m.customerName || m.phoneNumber || m.customerLid
213
+ name: x.customerName || x.phoneNumber || x.customerLid
215
214
  })
216
215
  });
217
216
  } catch (I) {
218
- B.signal.aborted || (f.value = I instanceof Error ? I.message : o("connect.whatsappBot.excludedAccounts.removeError"), v.open({ type: "error", message: f.value }));
217
+ B.signal.aborted || (f.value = I instanceof Error ? I.message : o("connect.whatsappBot.excludedAccounts.removeError"), b.open({ type: "error", message: f.value }));
219
218
  } finally {
220
- B.signal.aborted || (d.value = "");
219
+ B.signal.aborted || (u.value = "");
221
220
  }
222
221
  }
223
222
  function g() {
224
- w == null || w.abort(), d.value = "", f.value = "", h.value = !1;
223
+ w == null || w.abort(), u.value = "", f.value = "", h.value = !1;
225
224
  }
226
- return ce(() => Q.getBusinessId(), g), ie(g), (m, b) => {
225
+ return ce(() => Q.getBusinessId(), g), ie(g), (x, v) => {
227
226
  const B = $("FmCircularProgress"), I = $("FmButton"), G = $("FmIcon"), K = $("FmDialog");
228
- return a(), c(O, null, [
229
- e("section", Ge, [
230
- e("div", Ke, [
231
- e("h2", je, l(t(o)("connect.whatsappBot.excludedAccounts.title")), 1),
232
- e("p", Xe, l(t(o)("connect.whatsappBot.excludedAccounts.description")), 1)
227
+ return a(), i(L, null, [
228
+ e("section", Ke, [
229
+ e("div", je, [
230
+ e("h2", Xe, l(t(o)("connect.whatsappBot.excludedAccounts.title")), 1),
231
+ e("p", Je, l(t(o)("connect.whatsappBot.excludedAccounts.description")), 1)
233
232
  ]),
234
- f.value ? (a(), c("p", Je, l(f.value), 1)) : _("", !0),
235
- i.loading ? (a(), c("div", Qe, [
236
- k(B),
237
- D(" " + l(t(o)("connect.whatsappBot.excludedAccounts.loading")), 1)
238
- ])) : (a(), c(O, { key: 2 }, [
239
- i.error ? (a(), c("div", Ye, [
240
- e("p", Ze, l(i.error), 1),
241
- k(I, {
233
+ f.value ? (a(), i("p", Qe, l(f.value), 1)) : _("", !0),
234
+ p.loading ? (a(), i("output", Ye, [
235
+ S(B),
236
+ N(" " + l(t(o)("connect.whatsappBot.excludedAccounts.loading")), 1)
237
+ ])) : (a(), i(L, { key: 2 }, [
238
+ p.error ? (a(), i("div", Ze, [
239
+ e("p", qe, l(p.error), 1),
240
+ S(I, {
242
241
  variant: "secondary",
243
242
  "border-color": "neutral-gray-200",
244
243
  label: t(o)("connect.whatsappBot.tryAgain"),
245
244
  "prepend-icon": "refresh",
246
245
  class: "!rounded-full [&_.label]:text-[14px]",
247
- onClick: b[0] || (b[0] = (P) => s("retry"))
246
+ onClick: v[0] || (v[0] = (V) => s("retry"))
248
247
  }, null, 8, ["label"])
249
248
  ])) : _("", !0),
250
- !r.value.length && !i.error ? (a(), c("div", qe, [
251
- e("h3", et, l(t(o)("connect.whatsappBot.excludedAccounts.emptyTitle")), 1),
252
- e("p", tt, l(t(o)("connect.whatsappBot.excludedAccounts.emptyDescription")), 1)
253
- ])) : r.value.length ? (a(), c("div", ot, [
254
- k(ne, {
249
+ !r.value.length && !p.error ? (a(), i("div", et, [
250
+ e("h3", tt, l(t(o)("connect.whatsappBot.excludedAccounts.emptyTitle")), 1),
251
+ e("p", ot, l(t(o)("connect.whatsappBot.excludedAccounts.emptyDescription")), 1)
252
+ ])) : r.value.length ? (a(), i("div", lt, [
253
+ S(ne, {
255
254
  accounts: T.value,
256
- "removing-id": d.value,
257
- onRemove: E
255
+ "removing-id": u.value,
256
+ onRemove: C
258
257
  }, null, 8, ["accounts", "removing-id"]),
259
- r.value.length > T.value.length ? (a(), c("button", {
258
+ r.value.length > T.value.length ? (a(), i("button", {
260
259
  key: 0,
261
260
  type: "button",
262
261
  class: "flex min-h-[44px] w-full items-center justify-center gap-[6px] border-t border-fm-color-neutral-gray-100 px-[16px] py-[8px] text-[14px] font-semibold text-fm-color-primary transition-colors hover:bg-fm-color-primary-oats focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-inset focus-visible:ring-fm-color-primary",
263
- onClick: b[1] || (b[1] = (P) => h.value = !0)
262
+ onClick: v[1] || (v[1] = (V) => h.value = !0)
264
263
  }, [
265
- D(l(t(o)("connect.whatsappBot.excludedAccounts.showAll", {
264
+ N(l(t(o)("connect.whatsappBot.excludedAccounts.showAll", {
266
265
  count: r.value.length
267
266
  })) + " ", 1),
268
- k(G, {
267
+ S(G, {
269
268
  name: "chevron_right",
270
269
  size: "sm",
271
270
  "aria-hidden": "true"
@@ -274,53 +273,53 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
274
273
  ])) : _("", !0)
275
274
  ], 64))
276
275
  ]),
277
- k(K, {
276
+ S(K, {
278
277
  modelValue: h.value,
279
- "onUpdate:modelValue": b[2] || (b[2] = (P) => h.value = P),
278
+ "onUpdate:modelValue": v[2] || (v[2] = (V) => h.value = V),
280
279
  "min-width": "min(720px, calc(100% - 32px))",
281
280
  "max-width": "720px",
282
281
  "max-height": "90vh",
283
282
  "dismiss-away": ""
284
283
  }, {
285
284
  "dialog-header": ae(() => [
286
- e("div", lt, [
287
- e("h2", at, l(t(o)("connect.whatsappBot.excludedAccounts.title")), 1),
288
- e("p", st, l(t(o)("connect.whatsappBot.accountCount", r.value.length)), 1)
285
+ e("div", at, [
286
+ e("h2", st, l(t(o)("connect.whatsappBot.excludedAccounts.title")), 1),
287
+ e("p", nt, l(t(o)("connect.whatsappBot.accountCount", r.value.length)), 1)
289
288
  ])
290
289
  ]),
291
290
  default: ae(() => [
292
- f.value ? (a(), c("p", nt, l(f.value), 1)) : _("", !0),
293
- r.value.length ? (a(), N(ne, {
291
+ f.value ? (a(), i("p", rt, l(f.value), 1)) : _("", !0),
292
+ r.value.length ? (a(), P(ne, {
294
293
  key: 2,
295
294
  accounts: r.value,
296
- "removing-id": d.value,
297
- onRemove: E
298
- }, null, 8, ["accounts", "removing-id"])) : (a(), c("p", rt, l(t(o)("connect.whatsappBot.excludedAccounts.emptyTitle")), 1))
295
+ "removing-id": u.value,
296
+ onRemove: C
297
+ }, null, 8, ["accounts", "removing-id"])) : (a(), i("p", ct, l(t(o)("connect.whatsappBot.excludedAccounts.emptyTitle")), 1))
299
298
  ]),
300
299
  _: 1
301
300
  }, 8, ["modelValue"])
302
301
  ], 64);
303
302
  };
304
303
  }
305
- }), it = {
304
+ }), dt = {
306
305
  "aria-labelledby": "knowledge-base-title",
307
306
  class: "flex flex-col gap-[10px]"
308
- }, dt = { class: "flex flex-col gap-[2px]" }, pt = {
307
+ }, pt = { class: "flex flex-col gap-[2px]" }, ut = {
309
308
  id: "knowledge-base-title",
310
309
  class: "text-[16px] leading-[24px] font-semibold"
311
- }, ut = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, mt = { class: "flex flex-wrap gap-[8px]" }, xt = ["title", "aria-expanded", "disabled", "onClick"], ft = ["disabled"], vt = {
310
+ }, mt = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, xt = { class: "flex flex-wrap gap-[8px]" }, ft = ["title", "aria-expanded", "disabled", "onClick"], bt = ["disabled"], vt = {
312
311
  key: 0,
313
312
  class: "text-[14px] text-fm-color-typo-tertiary"
314
- }, bt = {
313
+ }, gt = {
315
314
  key: 1,
316
315
  class: "text-[14px] text-fm-color-typo-secondary"
317
- }, gt = { class: "flex flex-col gap-[6px]" }, ht = {
316
+ }, ht = { class: "flex flex-col gap-[6px]" }, yt = {
318
317
  for: "whatsapp-knowledge-topic-description",
319
318
  class: "text-[14px] leading-[20px] font-medium text-fm-color-typo-secondary"
320
- }, yt = ["placeholder", "maxlength", "disabled"], _t = {
319
+ }, _t = ["placeholder", "maxlength", "disabled"], wt = {
321
320
  id: "whatsapp-knowledge-topic-description-count",
322
321
  class: "text-right text-[12px] leading-[16px] text-fm-color-typo-tertiary tabular-nums"
323
- }, wt = /* @__PURE__ */ L({
322
+ }, Bt = /* @__PURE__ */ O({
324
323
  __name: "KnowledgeBase",
325
324
  props: /* @__PURE__ */ Z({
326
325
  disabled: { type: Boolean }
@@ -335,92 +334,92 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
335
334
  activeTopicIndexModifiers: {}
336
335
  }),
337
336
  emits: ["update:modelValue", "update:activeTopicIndex"],
338
- setup(i) {
339
- const n = i, u = H(i, "modelValue"), s = H(i, "activeTopicIndex"), { t: o } = U(), v = V(
340
- () => s.value === null ? null : u.value[s.value]
337
+ setup(p) {
338
+ const n = p, m = H(p, "modelValue"), s = H(p, "activeTopicIndex"), { t: o } = U(), b = E(
339
+ () => s.value === null ? null : m.value[s.value]
341
340
  );
342
- function d() {
343
- n.disabled || u.value.length >= W || (u.value.push({ title: "", description: "" }), s.value = u.value.length - 1);
341
+ function u() {
342
+ n.disabled || m.value.length >= W || (m.value.push({ title: "", description: "" }), s.value = m.value.length - 1);
344
343
  }
345
344
  function f() {
346
- n.disabled || s.value === null || (u.value.splice(s.value, 1), s.value = null);
345
+ n.disabled || s.value === null || (m.value.splice(s.value, 1), s.value = null);
347
346
  }
348
347
  return (h, w) => {
349
- const r = $("FmIcon"), T = $("FmTextField"), E = $("FmButton");
350
- return a(), c("section", it, [
351
- e("div", dt, [
352
- e("h2", pt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.title")), 1),
353
- e("p", ut, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.description")), 1)
348
+ const r = $("FmIcon"), T = $("FmTextField"), C = $("FmButton");
349
+ return a(), i("section", dt, [
350
+ e("div", pt, [
351
+ e("h2", ut, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.title")), 1),
352
+ e("p", mt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.description")), 1)
354
353
  ]),
355
- e("div", mt, [
356
- (a(!0), c(O, null, ee(u.value, (g, m) => (a(), c("button", {
357
- key: m,
354
+ e("div", xt, [
355
+ (a(!0), i(L, null, ee(m.value, (g, x) => (a(), i("button", {
356
+ key: x,
358
357
  type: "button",
359
358
  title: g.title.trim() || t(o)("connect.whatsappBot.botSettings.knowledgeBase.untitled"),
360
- "aria-expanded": s.value === m,
359
+ "aria-expanded": s.value === x,
361
360
  "aria-controls": "knowledge-topic-editor",
362
- disabled: i.disabled,
361
+ disabled: p.disabled,
363
362
  class: X(["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", [
364
- s.value === m ? "border-fm-color-primary bg-fm-color-primary-oats text-fm-color-primary" : "border-fm-color-neutral-gray-200 bg-fm-color-neutral-white",
365
- i.disabled ? "cursor-default" : "cursor-pointer hover:border-fm-color-primary"
363
+ s.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",
364
+ p.disabled ? "cursor-default" : "cursor-pointer hover:border-fm-color-primary"
366
365
  ]]),
367
- onClick: (b) => s.value = s.value === m ? null : m
368
- }, l(g.title.trim() || t(o)("connect.whatsappBot.botSettings.knowledgeBase.untitled")), 11, xt))), 128)),
366
+ onClick: (v) => s.value = s.value === x ? null : x
367
+ }, l(g.title.trim() || t(o)("connect.whatsappBot.botSettings.knowledgeBase.untitled")), 11, ft))), 128)),
369
368
  e("button", {
370
369
  type: "button",
371
- disabled: i.disabled || u.value.length >= t(W),
370
+ disabled: p.disabled || m.value.length >= t(W),
372
371
  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",
373
- onClick: d
372
+ onClick: u
374
373
  }, [
375
- k(r, {
374
+ S(r, {
376
375
  name: "add",
377
376
  size: "sm"
378
377
  }),
379
- D(" " + l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.addTopic")), 1)
380
- ], 8, ft)
378
+ N(" " + l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.addTopic")), 1)
379
+ ], 8, bt)
381
380
  ]),
382
- u.value.length === 0 ? (a(), c("p", vt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.empty")), 1)) : _("", !0),
383
- u.value.length >= t(W) ? (a(), c("p", bt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.topicLimit", {
381
+ m.value.length === 0 ? (a(), i("p", vt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.empty")), 1)) : _("", !0),
382
+ m.value.length >= t(W) ? (a(), i("p", gt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.topicLimit", {
384
383
  count: t(W)
385
384
  })), 1)) : _("", !0),
386
- v.value ? (a(), c("div", {
385
+ b.value ? (a(), i("div", {
387
386
  id: "knowledge-topic-editor",
388
387
  key: s.value ?? void 0,
389
388
  class: "rounded-[8px] border-[1px] border-fm-color-neutral-gray-100 p-[16px] flex flex-col gap-[10px]"
390
389
  }, [
391
- k(T, {
392
- modelValue: v.value.title,
393
- "onUpdate:modelValue": w[0] || (w[0] = (g) => v.value.title = g),
390
+ S(T, {
391
+ modelValue: b.value.title,
392
+ "onUpdate:modelValue": w[0] || (w[0] = (g) => b.value.title = g),
394
393
  label: t(o)("connect.whatsappBot.botSettings.knowledgeBase.titleLabel"),
395
394
  placeholder: t(o)("connect.whatsappBot.botSettings.knowledgeBase.titlePlaceholder"),
396
- "max-length": t(fe),
397
- disabled: i.disabled
395
+ "max-length": t(be),
396
+ disabled: p.disabled
398
397
  }, null, 8, ["modelValue", "label", "placeholder", "max-length", "disabled"]),
399
- e("div", gt, [
400
- e("label", ht, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.descriptionLabel")), 1),
398
+ e("div", ht, [
399
+ e("label", yt, l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.descriptionLabel")), 1),
401
400
  q(e("textarea", {
402
401
  id: "whatsapp-knowledge-topic-description",
403
- "onUpdate:modelValue": w[1] || (w[1] = (g) => v.value.description = g),
402
+ "onUpdate:modelValue": w[1] || (w[1] = (g) => b.value.description = g),
404
403
  "aria-describedby": "whatsapp-knowledge-topic-description-count",
405
404
  placeholder: t(o)(
406
405
  "connect.whatsappBot.botSettings.knowledgeBase.descriptionPlaceholder"
407
406
  ),
408
407
  maxlength: t(se),
409
- disabled: i.disabled,
408
+ disabled: p.disabled,
410
409
  rows: "5",
411
410
  class: "block w-full min-h-[116px] resize-y rounded-[8px] border border-fm-color-neutral-gray-200 bg-fm-color-neutral-white px-[12px] py-[8px] text-[14px] leading-[20px] text-fm-color-typo-primary placeholder:text-fm-color-typo-tertiary transition-[border-color,box-shadow] focus:border-fm-color-primary focus:outline-none focus:ring-[4px] focus:ring-fm-color-primary/30 disabled:cursor-not-allowed disabled:bg-fm-color-neutral-gray-100 disabled:text-fm-color-typo-disabled"
412
- }, null, 8, yt), [
413
- [re, v.value.description]
411
+ }, null, 8, _t), [
412
+ [re, b.value.description]
414
413
  ]),
415
- e("p", _t, l(v.value.description.length) + " / " + l(t(se)), 1)
414
+ e("p", wt, l(b.value.description.length) + " / " + l(t(se)), 1)
416
415
  ]),
417
- k(E, {
416
+ S(C, {
418
417
  variant: "plain",
419
418
  size: "sm",
420
419
  "prepend-icon": "delete",
421
420
  "text-color": "typo-error",
422
421
  label: t(o)("connect.whatsappBot.botSettings.knowledgeBase.removeTopic"),
423
- disabled: i.disabled,
422
+ disabled: p.disabled,
424
423
  class: "self-start",
425
424
  onClick: f
426
425
  }, null, 8, ["label", "disabled"])
@@ -428,28 +427,28 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
428
427
  ]);
429
428
  };
430
429
  }
431
- }), Bt = {
430
+ }), kt = {
432
431
  "aria-labelledby": "response-speed-title",
433
432
  class: "flex flex-col gap-[12px]"
434
- }, kt = { class: "flex flex-col gap-[2px]" }, St = {
433
+ }, St = { class: "flex flex-col gap-[2px]" }, $t = {
435
434
  id: "response-speed-title",
436
435
  class: "text-[16px] leading-[24px] font-semibold"
437
- }, $t = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, At = {
436
+ }, At = { class: "text-[14px] leading-[20px] text-fm-color-typo-secondary [text-wrap:pretty]" }, Tt = {
438
437
  role: "radiogroup",
439
438
  "aria-labelledby": "response-speed-title",
440
439
  "aria-describedby": "response-speed-detail",
441
440
  class: "grid grid-cols-[repeat(auto-fit,minmax(150px,1fr))] gap-[8px]"
442
- }, Tt = ["value", "disabled"], It = { class: "flex items-center gap-[8px] text-[14px] leading-[20px] font-semibold" }, Ft = {
441
+ }, It = ["value", "disabled"], Ft = { class: "flex items-center gap-[8px] text-[14px] leading-[20px] font-semibold" }, Ct = {
443
442
  key: 0,
444
443
  class: "w-[8px] h-[8px] rounded-full bg-fm-color-primary"
445
- }, Ct = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, Et = {
444
+ }, Et = { class: "text-[12px] leading-[16px] text-fm-color-typo-secondary" }, Vt = {
446
445
  id: "response-speed-detail",
447
446
  "aria-live": "polite",
448
447
  class: "text-[14px] leading-[20px] text-fm-color-typo-secondary"
449
- }, Vt = {
448
+ }, Pt = {
450
449
  key: 0,
451
450
  class: "rounded-[8px] bg-fm-color-system-warning-100 px-[12px] py-[10px] flex items-start gap-[10px] text-[14px] leading-[20px]"
452
- }, Pt = /* @__PURE__ */ L({
451
+ }, Nt = /* @__PURE__ */ O({
453
452
  __name: "ResponseSpeed",
454
453
  props: /* @__PURE__ */ Z({
455
454
  disabled: { type: Boolean }
@@ -460,239 +459,239 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
460
459
  modelModifiers: {}
461
460
  }),
462
461
  emits: ["update:modelValue"],
463
- setup(i) {
464
- const n = H(i, "modelValue"), { t: u } = U();
462
+ setup(p) {
463
+ const n = H(p, "modelValue"), { t: m } = U();
465
464
  return (s, o) => {
466
- const v = $("FmIcon");
467
- return a(), c("section", Bt, [
468
- e("div", kt, [
469
- e("h2", St, l(t(u)("connect.whatsappBot.botSettings.responseSpeed.title")), 1),
470
- e("p", $t, l(t(u)("connect.whatsappBot.botSettings.responseSpeed.description")), 1)
465
+ const b = $("FmIcon");
466
+ return a(), i("section", kt, [
467
+ e("div", St, [
468
+ e("h2", $t, l(t(m)("connect.whatsappBot.botSettings.responseSpeed.title")), 1),
469
+ e("p", At, l(t(m)("connect.whatsappBot.botSettings.responseSpeed.description")), 1)
471
470
  ]),
472
- e("div", At, [
473
- (a(!0), c(O, null, ee(t(ve), (d) => (a(), c("label", { key: d }, [
471
+ e("div", Tt, [
472
+ (a(!0), i(L, null, ee(t(ve), (u) => (a(), i("label", { key: u }, [
474
473
  q(e("input", {
475
474
  "onUpdate:modelValue": o[0] || (o[0] = (f) => n.value = f),
476
475
  type: "radio",
477
476
  name: "response-speed",
478
- value: d,
479
- disabled: i.disabled,
477
+ value: u,
478
+ disabled: p.disabled,
480
479
  class: "sr-only peer"
481
- }, null, 8, Tt), [
482
- [xe, n.value]
480
+ }, null, 8, It), [
481
+ [fe, n.value]
483
482
  ]),
484
483
  e("span", {
485
484
  class: X(["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", [
486
- n.value === d ? "border-fm-color-primary bg-fm-color-primary-oats" : "border-fm-color-neutral-gray-200 bg-fm-color-neutral-white",
487
- i.disabled ? "cursor-default opacity-60" : "cursor-pointer hover:border-fm-color-primary"
485
+ n.value === u ? "border-fm-color-primary bg-fm-color-primary-oats" : "border-fm-color-neutral-gray-200 bg-fm-color-neutral-white",
486
+ p.disabled ? "cursor-default opacity-60" : "cursor-pointer hover:border-fm-color-primary"
488
487
  ]])
489
488
  }, [
490
- e("span", It, [
489
+ e("span", Ft, [
491
490
  e("span", {
492
491
  "aria-hidden": "true",
493
492
  class: X([
494
493
  "w-[16px] h-[16px] shrink-0 rounded-full border-[1.5px] bg-fm-color-neutral-white flex items-center justify-center",
495
- n.value === d ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
494
+ n.value === u ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
496
495
  ])
497
496
  }, [
498
- n.value === d ? (a(), c("span", Ft)) : _("", !0)
497
+ n.value === u ? (a(), i("span", Ct)) : _("", !0)
499
498
  ], 2),
500
- D(" " + l(t(u)(`connect.whatsappBot.botSettings.responseSpeed.${d}.label`)), 1)
499
+ N(" " + l(t(m)(`connect.whatsappBot.botSettings.responseSpeed.${u}.label`)), 1)
501
500
  ]),
502
- e("span", Ct, l(t(u)(`connect.whatsappBot.botSettings.responseSpeed.${d}.hint`)), 1)
501
+ e("span", Et, l(t(m)(`connect.whatsappBot.botSettings.responseSpeed.${u}.hint`)), 1)
503
502
  ], 2)
504
503
  ]))), 128))
505
504
  ]),
506
- e("p", Et, l(t(u)(
505
+ e("p", Vt, l(t(m)(
507
506
  `connect.whatsappBot.botSettings.responseSpeed.${n.value}.detail`
508
507
  )), 1),
509
- n.value === "immediate" ? (a(), c("div", Vt, [
510
- k(v, {
508
+ n.value === "immediate" ? (a(), i("div", Pt, [
509
+ S(b, {
511
510
  name: "warning",
512
511
  size: "sm",
513
512
  class: "mt-[2px] shrink-0 text-fm-color-typo-warning"
514
513
  }),
515
- D(" " + l(t(u)("connect.whatsappBot.botSettings.responseSpeed.immediateWarning")), 1)
514
+ N(" " + l(t(m)("connect.whatsappBot.botSettings.responseSpeed.immediateWarning")), 1)
516
515
  ])) : _("", !0)
517
516
  ]);
518
517
  };
519
518
  }
520
- }), Nt = { class: "mt-[20px] mx-auto w-full min-w-0 flex flex-col gap-[20px]" }, Dt = {
519
+ }), Dt = { class: "mt-[20px] mx-auto w-full min-w-0 flex flex-col gap-[20px]" }, Lt = {
521
520
  key: 0,
522
- role: "status",
523
521
  class: "py-[56px] flex flex-col items-center gap-[12px] text-[14px] text-fm-color-typo-secondary"
524
- }, Ot = { class: "border-t border-fm-color-neutral-gray-100 pt-[20px]" }, Lt = { class: "group border-t border-fm-color-neutral-gray-100 pt-[12px]" }, Ut = { class: "flex h-[36px] w-fit cursor-pointer list-none items-center gap-[8px] rounded-[8px] px-[8px] -ml-[8px] text-[16px] font-semibold transition-colors hover:bg-fm-color-neutral-gray-100 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary [&::-webkit-details-marker]:hidden" }, Mt = { class: "mt-[20px] flex flex-col gap-[20px]" }, Rt = {
522
+ }, Ot = { class: "border-t border-fm-color-neutral-gray-100 pt-[20px]" }, Ut = { class: "group border-t border-fm-color-neutral-gray-100 pt-[12px]" }, Mt = { class: "flex h-[36px] w-fit cursor-pointer list-none items-center gap-[8px] rounded-[8px] px-[8px] -ml-[8px] text-[16px] font-semibold transition-colors hover:bg-fm-color-neutral-gray-100 focus-visible:outline-none focus-visible:ring-[2px] focus-visible:ring-fm-color-primary [&::-webkit-details-marker]:hidden" }, Rt = { class: "mt-[20px] flex flex-col gap-[20px]" }, Wt = {
525
523
  key: 1,
526
524
  role: "alert",
527
525
  class: "text-[14px] text-fm-color-typo-error"
528
- }, Wt = { class: "flex items-center justify-end gap-[12px] flex-wrap" }, Qt = /* @__PURE__ */ L({
526
+ }, zt = { class: "flex items-center justify-end gap-[12px] flex-wrap" }, Yt = /* @__PURE__ */ O({
529
527
  __name: "WhatsappBotSettings",
530
- setup(i) {
531
- const { t: n } = U(), u = de(), s = V(() => Q.getBusinessId() ?? ""), o = y(""), v = y(""), d = y([]), f = y([]), h = y(null), w = V(
532
- () => d.value.filter(
533
- (x) => x.title.trim() || x.description.trim()
528
+ setup(p) {
529
+ const { t: n } = U(), m = de(), s = E(() => Q.getBusinessId() ?? ""), o = y(""), b = y(""), u = y([]), f = y([]), h = y(null), w = E(
530
+ () => u.value.filter(
531
+ (d) => d.title.trim() || d.description.trim()
534
532
  )
535
533
  ), r = y(
536
534
  z
537
535
  ), T = y(
538
536
  z
539
- ), E = y(!0), g = y(!1), m = y(!1), b = y(""), B = y([]), I = y(""), G = J, K = V(
540
- () => o.value !== v.value || r.value !== T.value || JSON.stringify(d.value) !== JSON.stringify(f.value)
541
- ), P = V(
542
- () => !g.value || m.value || !K.value
543
- ), te = V(
544
- () => !g.value || m.value || o.value.length > G || !be.safeParse(w.value).success
537
+ ), C = y(!0), g = y(!1), x = y(!1), v = y(""), B = y([]), I = y(""), G = J, K = E(
538
+ () => o.value !== b.value || r.value !== T.value || JSON.stringify(u.value) !== JSON.stringify(f.value)
539
+ ), V = E(
540
+ () => !g.value || x.value || !K.value
541
+ ), te = E(
542
+ () => !g.value || x.value || o.value.length > G || !ge.safeParse(w.value).success
545
543
  );
546
544
  let A, M;
547
- function oe(x) {
548
- B.value = x.excludedAccounts, o.value = x.botInstructions, v.value = x.botInstructions, r.value = x.responseSpeed, T.value = x.responseSpeed, d.value = x.knowledgeBase.map((p) => ({ ...p })), f.value = x.knowledgeBase.map((p) => ({
549
- ...p
545
+ function oe(d) {
546
+ B.value = d.excludedAccounts, o.value = d.botInstructions, b.value = d.botInstructions, r.value = d.responseSpeed, T.value = d.responseSpeed, u.value = d.knowledgeBase.map((c) => ({ ...c })), f.value = d.knowledgeBase.map((c) => ({
547
+ ...c
550
548
  }));
551
549
  }
552
- async function R(x = !1) {
553
- if (x && m.value) return;
550
+ function pe(d, c) {
551
+ const k = d instanceof Error ? d.message : n("connect.whatsappBot.errors.loadSettings");
552
+ c ? I.value = k : v.value = k;
553
+ }
554
+ async function R(d = !1) {
555
+ if (d && x.value) return;
554
556
  clearTimeout(M), A == null || A.abort();
555
- const p = new AbortController();
556
- A = p, x || (E.value = !0, g.value = !1, m.value = !1, b.value = "", o.value = "", v.value = "", r.value = z, T.value = z, d.value = [], f.value = [], h.value = null, B.value = [], I.value = "");
557
+ const c = new AbortController();
558
+ A = c, d || (C.value = !0, g.value = !1, x.value = !1, v.value = "", o.value = "", b.value = "", r.value = z, T.value = z, u.value = [], f.value = [], h.value = null, B.value = [], I.value = "");
557
559
  try {
558
560
  if (!s.value)
559
561
  throw new Error(n("connect.whatsappBot.errors.selectBusiness"));
560
- const S = await Y.getSettings(
562
+ const k = await Y.getSettings(
561
563
  s.value,
562
- p.signal
564
+ c.signal
563
565
  );
564
- if (p.signal.aborted) return;
565
- B.value = S.excludedAccounts, I.value = "", x || (oe(S), g.value = !0);
566
- } catch (S) {
567
- if (!p.signal.aborted) {
568
- const F = S instanceof Error ? S.message : n("connect.whatsappBot.errors.loadSettings");
569
- x ? I.value = F : b.value = F;
570
- }
566
+ if (c.signal.aborted) return;
567
+ B.value = k.excludedAccounts, I.value = "", d || (oe(k), g.value = !0);
568
+ } catch (k) {
569
+ c.signal.aborted || pe(k, d);
571
570
  } finally {
572
- p.signal.aborted || (E.value = !1, g.value && le());
571
+ c.signal.aborted || (C.value = !1, g.value && le());
573
572
  }
574
573
  }
575
574
  function le() {
576
575
  clearTimeout(M), M = setTimeout(() => void R(!0), 1e4);
577
576
  }
578
- function pe(x) {
577
+ function ue(d) {
579
578
  B.value = B.value.filter(
580
- (p) => p.id !== x
579
+ (c) => c.id !== d
581
580
  ), R(!0);
582
581
  }
583
- async function ue() {
582
+ async function me() {
584
583
  if (te.value) return;
585
584
  clearTimeout(M), A == null || A.abort();
586
- const x = new AbortController();
587
- A = x, m.value = !0, b.value = "";
588
- const p = h.value === null ? void 0 : d.value[h.value], S = p ? w.value.indexOf(p) : -1;
585
+ const d = new AbortController();
586
+ A = d, x.value = !0, v.value = "";
587
+ const c = h.value === null ? void 0 : u.value[h.value], k = c ? w.value.indexOf(c) : -1;
589
588
  try {
590
- const F = await Y.saveSettings(
589
+ const D = await Y.saveSettings(
591
590
  s.value,
592
591
  {
593
592
  botInstructions: o.value,
594
593
  responseSpeed: r.value,
595
594
  knowledgeBase: w.value
596
595
  },
597
- x.signal
596
+ d.signal
598
597
  );
599
- if (x.signal.aborted) return;
600
- oe(F), h.value = S < 0 ? null : S, u.open({
598
+ if (d.signal.aborted) return;
599
+ oe(D), h.value = k < 0 ? null : k, m.open({
601
600
  type: "success",
602
601
  message: n("connect.whatsappBot.botSettings.saved")
603
602
  });
604
- } catch (F) {
605
- x.signal.aborted || (b.value = F instanceof Error ? F.message : n("connect.whatsappBot.errors.saveSettings"), u.open({ type: "error", message: b.value }));
603
+ } catch (D) {
604
+ d.signal.aborted || (v.value = D instanceof Error ? D.message : n("connect.whatsappBot.errors.saveSettings"), m.open({ type: "error", message: v.value }));
606
605
  } finally {
607
- x.signal.aborted || (m.value = !1, le());
606
+ d.signal.aborted || (x.value = !1, le());
608
607
  }
609
608
  }
610
- async function me() {
611
- if (P.value) return;
612
- const x = s.value;
613
- !await ge.confirm(
609
+ async function xe() {
610
+ if (V.value) return;
611
+ const d = s.value;
612
+ !await he.confirm(
614
613
  n("connect.whatsappBot.botSettings.discardChangesMessage"),
615
614
  n("connect.whatsappBot.botSettings.discardChangesTitle"),
616
615
  n("connect.common.confirm"),
617
616
  n("connect.common.cancel")
618
- ) || P.value || s.value !== x || (o.value = v.value, r.value = T.value, d.value = f.value.map((S) => ({ ...S })), h.value = null);
617
+ ) || V.value || s.value !== d || (o.value = b.value, r.value = T.value, u.value = f.value.map((k) => ({ ...k })), h.value = null);
619
618
  }
620
619
  return ce(s, () => void R(), { immediate: !0 }), ie(() => {
621
620
  A == null || A.abort(), clearTimeout(M);
622
- }), (x, p) => {
623
- const S = $("FmCircularProgress"), F = $("FmIcon"), j = $("FmButton");
624
- return a(), c("div", Nt, [
625
- E.value ? (a(), c("div", Dt, [
626
- k(S),
627
- D(" " + l(t(n)("connect.whatsappBot.botSettings.loading")), 1)
628
- ])) : (a(), c(O, { key: 1 }, [
629
- g.value ? (a(), N($e, {
621
+ }), (d, c) => {
622
+ const k = $("FmCircularProgress"), D = $("FmIcon"), j = $("FmButton");
623
+ return a(), i("div", Dt, [
624
+ C.value ? (a(), i("output", Lt, [
625
+ S(k),
626
+ N(" " + l(t(n)("connect.whatsappBot.botSettings.loading")), 1)
627
+ ])) : (a(), i(L, { key: 1 }, [
628
+ g.value ? (a(), P(Ae, {
630
629
  key: 0,
631
630
  modelValue: o.value,
632
- "onUpdate:modelValue": p[0] || (p[0] = (C) => o.value = C),
633
- disabled: m.value
631
+ "onUpdate:modelValue": c[0] || (c[0] = (F) => o.value = F),
632
+ disabled: x.value
634
633
  }, null, 8, ["modelValue", "disabled"])) : _("", !0),
635
634
  e("div", Ot, [
636
- g.value ? (a(), N(ct, {
635
+ g.value ? (a(), P(it, {
637
636
  key: 0,
638
637
  accounts: B.value,
639
638
  loading: !1,
640
639
  error: I.value,
641
- onRetry: p[1] || (p[1] = (C) => R(!0)),
642
- onRemoved: pe
640
+ onRetry: c[1] || (c[1] = (F) => R(!0)),
641
+ onRemoved: ue
643
642
  }, null, 8, ["accounts", "error"])) : _("", !0)
644
643
  ]),
645
- e("details", Lt, [
646
- e("summary", Ut, [
647
- D(l(t(n)("connect.whatsappBot.botSettings.advancedSettings")) + " ", 1),
648
- k(F, {
644
+ e("details", Ut, [
645
+ e("summary", Mt, [
646
+ N(l(t(n)("connect.whatsappBot.botSettings.advancedSettings")) + " ", 1),
647
+ S(D, {
649
648
  name: "keyboard_arrow_down",
650
649
  size: "sm",
651
650
  class: "transition-transform group-open:rotate-180 motion-reduce:transition-none",
652
651
  "aria-hidden": "true"
653
652
  })
654
653
  ]),
655
- e("div", Mt, [
656
- g.value ? (a(), N(wt, {
654
+ e("div", Rt, [
655
+ g.value ? (a(), P(Bt, {
657
656
  key: 0,
658
- modelValue: d.value,
659
- "onUpdate:modelValue": p[2] || (p[2] = (C) => d.value = C),
657
+ modelValue: u.value,
658
+ "onUpdate:modelValue": c[2] || (c[2] = (F) => u.value = F),
660
659
  "active-topic-index": h.value,
661
- "onUpdate:activeTopicIndex": p[3] || (p[3] = (C) => h.value = C),
662
- disabled: m.value
660
+ "onUpdate:activeTopicIndex": c[3] || (c[3] = (F) => h.value = F),
661
+ disabled: x.value
663
662
  }, null, 8, ["modelValue", "active-topic-index", "disabled"])) : _("", !0),
664
- g.value ? (a(), N(Pt, {
663
+ g.value ? (a(), P(Nt, {
665
664
  key: 1,
666
665
  modelValue: r.value,
667
- "onUpdate:modelValue": p[4] || (p[4] = (C) => r.value = C),
668
- disabled: m.value,
666
+ "onUpdate:modelValue": c[4] || (c[4] = (F) => r.value = F),
667
+ disabled: x.value,
669
668
  class: "border-t border-fm-color-neutral-gray-100 pt-[20px]"
670
669
  }, null, 8, ["modelValue", "disabled"])) : _("", !0)
671
670
  ])
672
671
  ]),
673
- b.value ? (a(), c("p", Rt, l(b.value), 1)) : _("", !0),
674
- g.value ? _("", !0) : (a(), N(j, {
672
+ v.value ? (a(), i("p", Wt, l(v.value), 1)) : _("", !0),
673
+ g.value ? _("", !0) : (a(), P(j, {
675
674
  key: 2,
676
675
  class: "self-start !rounded-full [&_.label]:text-[14px]",
677
676
  label: t(n)("connect.whatsappBot.tryAgain"),
678
677
  "prepend-icon": "refresh",
679
- onClick: p[5] || (p[5] = (C) => R())
678
+ onClick: c[5] || (c[5] = (F) => R())
680
679
  }, null, 8, ["label"])),
681
- e("div", Wt, [
682
- k(j, {
680
+ e("div", zt, [
681
+ S(j, {
683
682
  variant: "secondary",
684
683
  "border-color": "neutral-gray-200",
685
684
  label: t(n)("connect.common.cancel"),
686
- disabled: P.value,
685
+ disabled: V.value,
687
686
  class: "!rounded-full !px-[20px] [&_.label]:text-[14px]",
688
- onClick: me
687
+ onClick: xe
689
688
  }, null, 8, ["label", "disabled"]),
690
- k(j, {
689
+ S(j, {
691
690
  label: t(n)("connect.common.save"),
692
691
  disabled: te.value,
693
- loading: m.value,
692
+ loading: x.value,
694
693
  class: "!rounded-full !px-[20px] [&_.label]:text-[14px]",
695
- onClick: ue
694
+ onClick: me
696
695
  }, null, 8, ["label", "disabled", "loading"])
697
696
  ])
698
697
  ], 64))
@@ -701,5 +700,5 @@ const he = { class: "flex flex-col gap-[10px]" }, ye = { class: "flex flex-col g
701
700
  }
702
701
  });
703
702
  export {
704
- Qt as default
703
+ Yt as default
705
704
  };