@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.
- package/README.md +12 -8
- package/dist/{App-BpcsgH7K.js → App-CBFNBDb2.js} +275 -275
- package/dist/{AuditLogs-BNnUiVnD.js → AuditLogs-BtSA8b08.js} +13 -13
- package/dist/{Bin-Cm0wjQeR.js → Bin-CjmS_Tfn.js} +8 -8
- package/dist/{Broadcast-BoJaHqnO.js → Broadcast-BeePmZa1.js} +12 -12
- package/dist/{CampaignAnalytic-Eg4xZW0B.js → CampaignAnalytic-CZlnyvOi.js} +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
- package/dist/{Card-BfkMcFaG.js → Card-C8SzQQ0z.js} +23 -23
- package/dist/{Collections-RXmxQbII.js → Collections-BXNWTSZH.js} +8 -8
- package/dist/{Credit-CsRPM1jv.js → Credit-CK0-0yD1.js} +12 -12
- package/dist/{DateRangeChip.vue_vue_type_script_setup_true_lang-D2tvK7pw.js → DateRangeChip.vue_vue_type_script_setup_true_lang-BXYpYC7Y.js} +1 -1
- package/dist/{EditCampaignSheet.vue_vue_type_script_setup_true_lang-BgPeHurN.js → EditCampaignSheet.vue_vue_type_script_setup_true_lang-CdpnNDzR.js} +1042 -1045
- package/dist/{EffectSheet.vue_vue_type_style_index_0_lang-CUx8UIIq.js → EffectSheet.vue_vue_type_style_index_0_lang--Oyj3KYg.js} +6 -6
- package/dist/{Experience-BC8Pj-v9.js → Experience-CWJaj62g.js} +13 -13
- package/dist/{FileSaver.min-DzmoQFA0.js → FileSaver.min-lV9H82L5.js} +1 -1
- package/dist/{Game-DJXNHFBs.js → Game-zBV1LYAg.js} +13 -13
- package/dist/{GiftCardSetup-_0n8lU-t.js → GiftCardSetup-Cnq9353j.js} +10 -10
- 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
- package/dist/{Goals-DSZwKpds.js → Goals-Utk08egN.js} +4 -4
- package/dist/{Grab-DDc7e-AC.js → Grab-DwMmWmbT.js} +9 -9
- 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
- package/dist/{Index-Cbi0bquE.js → Index-Bjgs18xf.js} +10 -10
- package/dist/{LocationPicker.vue_vue_type_script_setup_true_lang-GLhMtvzi.js → LocationPicker.vue_vue_type_script_setup_true_lang-DWnf4lXH.js} +1 -1
- 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
- package/dist/{LoyaltyDashboard-fK90c27A.js → LoyaltyDashboard-DmUfujX_.js} +15 -15
- package/dist/{MainLayout-Bf-l9yL4.js → MainLayout-DlDZQJfy.js} +1 -1
- package/dist/{MainLayout.vue_vue_type_script_setup_true_lang-COR6YYYI.js → MainLayout.vue_vue_type_script_setup_true_lang-yAflY70k.js} +3 -3
- package/dist/{Marketing-B7cZGsO-.js → Marketing-B0iKlHP-.js} +4 -4
- package/dist/{MarketingMaterialEdit-5IcV2ct6.js → MarketingMaterialEdit-BNHxVb8A.js} +6 -6
- package/dist/{Member-BGTrRVdq.js → Member-Bcm3_pWB.js} +7 -7
- package/dist/{MemberDetailSheet.vue_vue_type_script_setup_true_lang-DJr2hV2W.js → MemberDetailSheet.vue_vue_type_script_setup_true_lang-CPp4OpOx.js} +24 -24
- package/dist/{MemberImportHistory--FxkTJmu.js → MemberImportHistory-AQgLzB3g.js} +7 -7
- package/dist/{MemberList-EjY5dgwt.js → MemberList-CkMTo2uD.js} +14 -14
- package/dist/{MemberTransactions-Oia7LIFK.js → MemberTransactions-CxLCVjvw.js} +1 -1
- package/dist/{MessageInput.vue_vue_type_script_setup_true_lang-CLOQZCYy.js → MessageInput.vue_vue_type_script_setup_true_lang-4N20f8Sj.js} +10 -10
- package/dist/{MetricInfoTooltip.vue_vue_type_script_setup_true_lang-Ev3bB8cg.js → MetricInfoTooltip.vue_vue_type_script_setup_true_lang-DghbYpSQ.js} +1 -1
- package/dist/{Mission-BFHYb4aT.js → Mission-CQS1CoDN.js} +14 -14
- package/dist/{Overview-BVNyQxFL.js → Overview-NQ287sgq.js} +21 -21
- package/dist/{Overview-d5U37aot.js → Overview-UG1IjY7-.js} +4 -4
- package/dist/{Point-CXkqH02Z.js → Point-krMa_mb1.js} +14 -14
- package/dist/{Promotion-DdxNvlOO.js → Promotion-vFBmJSti.js} +14 -14
- package/dist/{Queue-C96oNKyP.js → Queue-BusxSPt-.js} +13 -13
- package/dist/{Record-Bj2e2Y4i.js → Record-DjKqn0za.js} +9 -9
- package/dist/{Review-CJK5S1oI.js → Review-CqLp8l7U.js} +2 -2
- package/dist/{ReviewFacebookCallback-ChG7TRy5.js → ReviewFacebookCallback-D2kMSVFC.js} +5 -5
- package/dist/{ReviewGoogleCallback-Dmk4VyGA.js → ReviewGoogleCallback-B1cHR-o2.js} +5 -5
- package/dist/Reward-FeSxgzuS.js +444 -0
- package/dist/{RewardGroup.vue_vue_type_script_setup_true_lang-U47m3AAn.js → RewardGroup.vue_vue_type_script_setup_true_lang-CCxVjBsO.js} +14 -14
- package/dist/{RuleGroup.vue_vue_type_script_setup_true_lang-2L6ZGMW7.js → RuleGroup.vue_vue_type_script_setup_true_lang-U403emCF.js} +15 -15
- package/dist/{Segment-FYvtCkqH.js → Segment-Nj59F9Nr.js} +26 -26
- 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
- package/dist/{SendVoucherSheet.vue_vue_type_script_setup_true_lang-D8wBgLlS.js → SendVoucherSheet.vue_vue_type_script_setup_true_lang-BLbDApPL.js} +4 -4
- package/dist/{Setting-CUAWjCqa.js → Setting-CCIzNxv-.js} +14 -14
- package/dist/{SettingAdvertisements-COIQwUD6.js → SettingAdvertisements-CkPyAg5y.js} +12 -12
- package/dist/{Settings-D2gFPvmW.js → Settings-CYjKGCpa.js} +5 -5
- package/dist/{Store-BAXwiyvx.js → Store-Bp8Zkzi2.js} +27 -27
- package/dist/{StoreRewards-2mUavtUg.js → StoreRewards-DXW5nVyW.js} +15 -15
- package/dist/{StoreTransactions.vue_vue_type_script_setup_true_lang-5g3yIL1a.js → StoreTransactions.vue_vue_type_script_setup_true_lang-BYVezFI2.js} +25 -25
- package/dist/{TargetLocationInput.vue_vue_type_script_setup_true_lang-DHi4rdT1.js → TargetLocationInput.vue_vue_type_script_setup_true_lang-CS6b1cM3.js} +2 -2
- package/dist/{Tier-BmAOzRHL.js → Tier-B8Utn9Qb.js} +27 -27
- package/dist/{Title-DMxiUg30.js → Title-CwaNSFer.js} +23 -23
- package/dist/{Transaction-CF6hXEpN.js → Transaction-ieciAdXP.js} +2 -2
- 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
- package/dist/{Voucher-DrtITxq-.js → Voucher-BKfujj6r.js} +18 -18
- 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
- package/dist/{WhatsappAccount-Bb0Y7ikk.js → WhatsappAccount-D73WDP7a.js} +66 -64
- package/dist/{WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-CPlyzkp4.js → WhatsappAccountStatusLabel.vue_vue_type_script_setup_true_lang-C3L7vWZE.js} +1 -1
- package/dist/{WhatsappBot-DNvvaPey.js → WhatsappBot-DTWZAXhi.js} +324 -322
- package/dist/{WhatsappBotLogs-C8M-1pvv.js → WhatsappBotLogs-DtDcrjs9.js} +11 -11
- package/dist/{WhatsappBotSettings-D6egqUyU.js → WhatsappBotSettings-7_mH9U4y.js} +287 -288
- package/dist/WhatsappLayout-BVpaFJ8H.js +21 -0
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-CMeaNKJt.js +261 -0
- package/dist/{ZodTextField.vue_vue_type_script_setup_true_lang-CKZscSjU.js → ZodTextField.vue_vue_type_script_setup_true_lang-BO1zA9AR.js} +2 -2
- package/dist/{app-BjdLqYQq.js → app-DX7OWVY2.js} +528 -524
- package/dist/app.js +1 -1
- package/dist/{base.export-B68z5BF6.js → base.export-bamzzexi.js} +2 -2
- package/dist/{business-D9fgkHxb.js → business-D3U9HSu9.js} +1 -1
- package/dist/{campaign-Dw_ujovr.js → campaign-BqRf2VUO.js} +8 -8
- package/dist/{campaign-eMaPX8r6.js → campaign-CKfeN2xN.js} +2 -2
- package/dist/{campaign.fn-DFjGNvmN.js → campaign.fn-DQe5LZuT.js} +38 -38
- package/dist/{collection.fn-CCOWtB-c.js → collection.fn-BcGqExuE.js} +2 -2
- package/dist/{currency-CTLKReFC.js → currency-sjMYWoI8.js} +1 -1
- package/dist/{duplicateCampaign-BcpBfUGL.js → duplicateCampaign-CJF3ZLNd.js} +2 -2
- package/dist/{effect-CTI1ZH57.js → effect-Cv8ugBR3.js} +1 -1
- package/dist/{email-addresses-B74e3bnB.js → email-addresses-CWqtseTn.js} +2 -2
- package/dist/{feature-flag-DVdEaChJ.js → feature-flag-BIh6MM4i.js} +159 -159
- package/dist/{helper-as9K-piK.js → helper-WnxOxoRK.js} +1 -1
- package/dist/{index-CHU3UePP.js → index-5TTGGDnF.js} +1 -1
- package/dist/{index-Ba719MYq.js → index-B3CkAr-6.js} +1 -1
- package/dist/{index-Czg-2Ni0.js → index-B9XVyhtC.js} +3 -3
- package/dist/{index-BW7FoVEA.js → index-BGguMtc0.js} +1 -1
- package/dist/{index-BbVbqe4Y.js → index-Bdg48Cus.js} +2 -2
- package/dist/{index-B_wRpO02.js → index-BoAmM8QH.js} +2 -2
- package/dist/{index-TAoQpeLQ.js → index-BtmVXdRR.js} +1 -1
- package/dist/{index-3LjKJhQa.js → index-CDTETsXQ.js} +1 -1
- package/dist/{index-DKI8401o.js → index-CeafUn1o.js} +2 -2
- package/dist/{index-QHqcSN2q.js → index-CiSTQhs9.js} +1 -1
- package/dist/{index-C5V6u2Qd.js → index-ClvaVYkG.js} +2 -2
- package/dist/{index-CWLOcQ6j.js → index-CnsSd5Dg.js} +9 -9
- package/dist/{index-B0h0iYWP.js → index-D3yYjyaj.js} +2 -2
- package/dist/{index-8mBfDn3M.js → index-DDzi_-Lu.js} +7 -7
- package/dist/{index-Ckz6u3ac.js → index-DOgDR_QH.js} +2 -2
- package/dist/{index-BEKMTiFb.js → index-DqZX-A6e.js} +3 -3
- package/dist/{index-DcZiikOH.js → index-DxhNNZ-a.js} +2 -2
- package/dist/{index-wsCCqwdr.js → index-DzYFQGSw.js} +2 -2
- package/dist/{index-C-iwb2Ln.js → index-I9lmcd2w.js} +2 -2
- package/dist/{index-CQxkDpX0.js → index-iiWxryxo.js} +4 -4
- package/dist/{index-BhTrG89b.js → index-qI1yx02a.js} +4 -4
- package/dist/{index.esm2017-DL6rTGDW.js → index.esm2017-GI2alVO5.js} +1 -1
- package/dist/{loading-x6IScY4K.js → loading-Qx5K2WL0.js} +1 -1
- package/dist/{lodash-nwnDizYo.js → lodash-CeSjJptg.js} +1 -1
- package/dist/{member-import-C-b01Tyd.js → member-import-Cq8G7SsW.js} +1 -1
- package/dist/{membership-DfarOMtO.js → membership-BbeavSNs.js} +2 -2
- package/dist/{money-CFn-jR4W.js → money-D8YIFaGA.js} +1 -1
- package/dist/{number-CSlyDL2x.js → number-DAubZ5bt.js} +1 -1
- package/dist/{objectid-zcT6ESET.js → objectid-DeXFWDMh.js} +6 -6
- package/dist/{onboarding-DyaFaaF2.js → onboarding-SyFxaTJY.js} +3 -3
- package/dist/{onboardingSetup-DQt91O9f.js → onboardingSetup-CLpHlBn8.js} +2 -2
- package/dist/{plugins-DEHr0UOe.js → plugins-BHuaMEYA.js} +3 -3
- package/dist/{reward-Du_Pv-4p.js → reward-dYWnmAC8.js} +1 -1
- package/dist/{rule-DfqmQTVK.js → rule-BVsfOP2h.js} +10 -10
- package/dist/{template-CcbNF4PF.js → template-BcdtbhUJ.js} +6 -6
- package/dist/{timezone-_4tabIaK.js → timezone-CUc7q5Ii.js} +1 -1
- package/dist/{transaction.fn-C46PHwCV.js → transaction.fn-jF9u_cBy.js} +2 -2
- package/dist/{trigger-Dipr6btC.js → trigger-COlbQlaB.js} +5 -5
- package/dist/{useMarketingMaterialActions-BAw2ZjeF.js → useMarketingMaterialActions-Dq6-gsOW.js} +4 -4
- package/dist/{usePagination-D6RZ18zS.js → usePagination-BYZB6ORK.js} +1 -1
- package/dist/{user-BCexQj3Q.js → user-DK7L8VFR.js} +1 -1
- package/dist/{vue-i18n-DXvyTCZf.js → vue-i18n-CDSTH7g5.js} +162 -162
- package/dist/{xlsx-BTxt_Jg6.js → xlsx-CKxXlDzD.js} +1 -1
- package/dist/{zod-T4wMYjWT.js → zod-DjtAaF0U.js} +1 -1
- package/package.json +1 -1
- package/dist/Reward-Dh2YI0Xb.js +0 -442
- package/dist/WhatsappLayout-DeQTPuF6.js +0 -21
- package/dist/WhatsappNotificationGroupDialog.vue_vue_type_script_setup_true_lang-DI0pcHcE.js +0 -253
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { u as U } from "./vue-i18n-
|
|
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
|
|
5
|
-
import { S as Q } from "./index-
|
|
6
|
-
import { w as Y } from "./index-
|
|
7
|
-
import { p as
|
|
8
|
-
const
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
27
|
-
const n = H(
|
|
28
|
-
return (s, o) => (a(),
|
|
29
|
-
e("div",
|
|
30
|
-
e("h2",
|
|
31
|
-
e("p",
|
|
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",
|
|
33
|
+
e("div", ke, [
|
|
34
34
|
q(e("textarea", {
|
|
35
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
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(
|
|
38
|
+
placeholder: t(m)("connect.whatsappBot.botSettings.placeholder"),
|
|
39
39
|
maxlength: t(J),
|
|
40
|
-
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,
|
|
43
|
+
}, null, 8, Se), [
|
|
44
44
|
[re, n.value]
|
|
45
45
|
]),
|
|
46
|
-
e("p",
|
|
46
|
+
e("p", $e, l(n.value.length) + " / " + l(t(J)), 1)
|
|
47
47
|
])
|
|
48
48
|
]));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
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
|
-
},
|
|
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(
|
|
70
|
-
const
|
|
71
|
-
function
|
|
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
|
|
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(),
|
|
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",
|
|
93
|
+
e("thead", Fe, [
|
|
94
94
|
e("tr", null, [
|
|
95
|
-
e("th",
|
|
96
|
-
e("th",
|
|
97
|
-
e("th",
|
|
98
|
-
e("th",
|
|
99
|
-
e("span",
|
|
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",
|
|
104
|
-
(a(!0),
|
|
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",
|
|
108
|
+
e("td", Le, [
|
|
109
109
|
e("span", {
|
|
110
110
|
class: "block truncate",
|
|
111
|
-
title:
|
|
112
|
-
}, l(
|
|
111
|
+
title: b(r)
|
|
112
|
+
}, l(b(r)), 9, Oe)
|
|
113
113
|
]),
|
|
114
|
-
e("td",
|
|
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,
|
|
118
|
+
}, l(r.phoneNumber || t(s)("connect.whatsappBot.phoneUnavailable")), 9, Me)
|
|
119
119
|
]),
|
|
120
|
-
e("td",
|
|
120
|
+
e("td", Re, [
|
|
121
121
|
e("time", {
|
|
122
122
|
datetime: r.updatedAt,
|
|
123
|
-
title:
|
|
123
|
+
title: u(r.updatedAt),
|
|
124
124
|
class: "block truncate"
|
|
125
|
-
}, l(
|
|
125
|
+
}, l(u(r.updatedAt)), 9, We)
|
|
126
126
|
]),
|
|
127
|
-
e("td",
|
|
127
|
+
e("td", ze, [
|
|
128
128
|
e("button", {
|
|
129
129
|
type: "button",
|
|
130
130
|
"aria-label": t(s)("connect.whatsappBot.excludedAccounts.removeAccount", {
|
|
131
|
-
name:
|
|
131
|
+
name: b(r)
|
|
132
132
|
}),
|
|
133
|
-
disabled: !!
|
|
134
|
-
"aria-busy":
|
|
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) =>
|
|
136
|
+
onClick: (T) => m("remove", r)
|
|
137
137
|
}, [
|
|
138
|
-
|
|
138
|
+
p.removingId === r.id ? (a(), P(w, {
|
|
139
139
|
key: 0,
|
|
140
140
|
size: "md",
|
|
141
141
|
"aria-hidden": "true"
|
|
142
|
-
})) : (a(),
|
|
143
|
-
], 8,
|
|
142
|
+
})) : (a(), i("span", Ge, l(t(s)("connect.common.remove")), 1))
|
|
143
|
+
], 8, He)
|
|
144
144
|
])
|
|
145
145
|
]))), 128))
|
|
146
146
|
])
|
|
147
|
-
], 8,
|
|
147
|
+
], 8, Ie)
|
|
148
148
|
]);
|
|
149
149
|
};
|
|
150
150
|
}
|
|
151
|
-
}),
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
165
|
+
}, Ze = {
|
|
167
166
|
key: 0,
|
|
168
167
|
class: "flex flex-wrap items-center gap-[12px]"
|
|
169
|
-
},
|
|
168
|
+
}, qe = {
|
|
170
169
|
role: "alert",
|
|
171
170
|
class: "text-[14px] text-fm-color-typo-error"
|
|
172
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
181
|
+
}, ct = {
|
|
183
182
|
key: 1,
|
|
184
183
|
class: "px-[24px] py-[40px] text-center text-[14px] text-fm-color-typo-secondary"
|
|
185
|
-
},
|
|
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(
|
|
194
|
-
const
|
|
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 =
|
|
197
|
-
() => [...
|
|
198
|
-
), T =
|
|
199
|
-
async function
|
|
200
|
-
if (
|
|
201
|
-
const
|
|
202
|
-
if (!
|
|
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,
|
|
203
|
+
w = B, u.value = x.id, f.value = "";
|
|
205
204
|
try {
|
|
206
205
|
if (await Y.removeExcludedAccount(
|
|
207
|
-
|
|
208
|
-
|
|
206
|
+
v,
|
|
207
|
+
x.id,
|
|
209
208
|
B.signal
|
|
210
209
|
), B.signal.aborted) return;
|
|
211
|
-
s("removed",
|
|
210
|
+
s("removed", x.id), b.open({
|
|
212
211
|
type: "success",
|
|
213
212
|
message: o("connect.whatsappBot.excludedAccounts.removed", {
|
|
214
|
-
name:
|
|
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"),
|
|
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 || (
|
|
219
|
+
B.signal.aborted || (u.value = "");
|
|
221
220
|
}
|
|
222
221
|
}
|
|
223
222
|
function g() {
|
|
224
|
-
w == null || w.abort(),
|
|
223
|
+
w == null || w.abort(), u.value = "", f.value = "", h.value = !1;
|
|
225
224
|
}
|
|
226
|
-
return ce(() => Q.getBusinessId(), g), ie(g), (
|
|
225
|
+
return ce(() => Q.getBusinessId(), g), ie(g), (x, v) => {
|
|
227
226
|
const B = $("FmCircularProgress"), I = $("FmButton"), G = $("FmIcon"), K = $("FmDialog");
|
|
228
|
-
return a(),
|
|
229
|
-
e("section",
|
|
230
|
-
e("div",
|
|
231
|
-
e("h2",
|
|
232
|
-
e("p",
|
|
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(),
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
])) : (a(),
|
|
239
|
-
|
|
240
|
-
e("p",
|
|
241
|
-
|
|
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:
|
|
246
|
+
onClick: v[0] || (v[0] = (V) => s("retry"))
|
|
248
247
|
}, null, 8, ["label"])
|
|
249
248
|
])) : _("", !0),
|
|
250
|
-
!r.value.length && !
|
|
251
|
-
e("h3",
|
|
252
|
-
e("p",
|
|
253
|
-
])) : r.value.length ? (a(),
|
|
254
|
-
|
|
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":
|
|
257
|
-
onRemove:
|
|
255
|
+
"removing-id": u.value,
|
|
256
|
+
onRemove: C
|
|
258
257
|
}, null, 8, ["accounts", "removing-id"]),
|
|
259
|
-
r.value.length > T.value.length ? (a(),
|
|
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:
|
|
262
|
+
onClick: v[1] || (v[1] = (V) => h.value = !0)
|
|
264
263
|
}, [
|
|
265
|
-
|
|
264
|
+
N(l(t(o)("connect.whatsappBot.excludedAccounts.showAll", {
|
|
266
265
|
count: r.value.length
|
|
267
266
|
})) + " ", 1),
|
|
268
|
-
|
|
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
|
-
|
|
276
|
+
S(K, {
|
|
278
277
|
modelValue: h.value,
|
|
279
|
-
"onUpdate:modelValue":
|
|
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",
|
|
287
|
-
e("h2",
|
|
288
|
-
e("p",
|
|
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(),
|
|
293
|
-
r.value.length ? (a(),
|
|
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":
|
|
297
|
-
onRemove:
|
|
298
|
-
}, null, 8, ["accounts", "removing-id"])) : (a(),
|
|
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
|
-
}),
|
|
304
|
+
}), dt = {
|
|
306
305
|
"aria-labelledby": "knowledge-base-title",
|
|
307
306
|
class: "flex flex-col gap-[10px]"
|
|
308
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
313
|
+
}, gt = {
|
|
315
314
|
key: 1,
|
|
316
315
|
class: "text-[14px] text-fm-color-typo-secondary"
|
|
317
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
339
|
-
const n =
|
|
340
|
-
() => s.value === null ? null :
|
|
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
|
|
343
|
-
n.disabled ||
|
|
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 || (
|
|
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"),
|
|
350
|
-
return a(),
|
|
351
|
-
e("div",
|
|
352
|
-
e("h2",
|
|
353
|
-
e("p",
|
|
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",
|
|
356
|
-
(a(!0),
|
|
357
|
-
key:
|
|
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 ===
|
|
359
|
+
"aria-expanded": s.value === x,
|
|
361
360
|
"aria-controls": "knowledge-topic-editor",
|
|
362
|
-
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 ===
|
|
365
|
-
|
|
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: (
|
|
368
|
-
}, l(g.title.trim() || t(o)("connect.whatsappBot.botSettings.knowledgeBase.untitled")), 11,
|
|
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:
|
|
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:
|
|
372
|
+
onClick: u
|
|
374
373
|
}, [
|
|
375
|
-
|
|
374
|
+
S(r, {
|
|
376
375
|
name: "add",
|
|
377
376
|
size: "sm"
|
|
378
377
|
}),
|
|
379
|
-
|
|
380
|
-
], 8,
|
|
378
|
+
N(" " + l(t(o)("connect.whatsappBot.botSettings.knowledgeBase.addTopic")), 1)
|
|
379
|
+
], 8, bt)
|
|
381
380
|
]),
|
|
382
|
-
|
|
383
|
-
|
|
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
|
-
|
|
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
|
-
|
|
392
|
-
modelValue:
|
|
393
|
-
"onUpdate:modelValue": w[0] || (w[0] = (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(
|
|
397
|
-
disabled:
|
|
395
|
+
"max-length": t(be),
|
|
396
|
+
disabled: p.disabled
|
|
398
397
|
}, null, 8, ["modelValue", "label", "placeholder", "max-length", "disabled"]),
|
|
399
|
-
e("div",
|
|
400
|
-
e("label",
|
|
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) =>
|
|
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:
|
|
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,
|
|
413
|
-
[re,
|
|
411
|
+
}, null, 8, _t), [
|
|
412
|
+
[re, b.value.description]
|
|
414
413
|
]),
|
|
415
|
-
e("p",
|
|
414
|
+
e("p", wt, l(b.value.description.length) + " / " + l(t(se)), 1)
|
|
416
415
|
]),
|
|
417
|
-
|
|
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:
|
|
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
|
-
}),
|
|
430
|
+
}), kt = {
|
|
432
431
|
"aria-labelledby": "response-speed-title",
|
|
433
432
|
class: "flex flex-col gap-[12px]"
|
|
434
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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(
|
|
464
|
-
const n = H(
|
|
462
|
+
setup(p) {
|
|
463
|
+
const n = H(p, "modelValue"), { t: m } = U();
|
|
465
464
|
return (s, o) => {
|
|
466
|
-
const
|
|
467
|
-
return a(),
|
|
468
|
-
e("div",
|
|
469
|
-
e("h2",
|
|
470
|
-
e("p",
|
|
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",
|
|
473
|
-
(a(!0),
|
|
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:
|
|
479
|
-
disabled:
|
|
477
|
+
value: u,
|
|
478
|
+
disabled: p.disabled,
|
|
480
479
|
class: "sr-only peer"
|
|
481
|
-
}, null, 8,
|
|
482
|
-
[
|
|
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 ===
|
|
487
|
-
|
|
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",
|
|
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 ===
|
|
494
|
+
n.value === u ? "border-fm-color-primary" : "border-fm-color-neutral-gray-300"
|
|
496
495
|
])
|
|
497
496
|
}, [
|
|
498
|
-
n.value ===
|
|
497
|
+
n.value === u ? (a(), i("span", Ct)) : _("", !0)
|
|
499
498
|
], 2),
|
|
500
|
-
|
|
499
|
+
N(" " + l(t(m)(`connect.whatsappBot.botSettings.responseSpeed.${u}.label`)), 1)
|
|
501
500
|
]),
|
|
502
|
-
e("span",
|
|
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",
|
|
505
|
+
e("p", Vt, l(t(m)(
|
|
507
506
|
`connect.whatsappBot.botSettings.responseSpeed.${n.value}.detail`
|
|
508
507
|
)), 1),
|
|
509
|
-
n.value === "immediate" ? (a(),
|
|
510
|
-
|
|
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
|
-
|
|
514
|
+
N(" " + l(t(m)("connect.whatsappBot.botSettings.responseSpeed.immediateWarning")), 1)
|
|
516
515
|
])) : _("", !0)
|
|
517
516
|
]);
|
|
518
517
|
};
|
|
519
518
|
}
|
|
520
|
-
}),
|
|
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]" },
|
|
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
|
-
},
|
|
526
|
+
}, zt = { class: "flex items-center justify-end gap-[12px] flex-wrap" }, Yt = /* @__PURE__ */ O({
|
|
529
527
|
__name: "WhatsappBotSettings",
|
|
530
|
-
setup(
|
|
531
|
-
const { t: n } = U(),
|
|
532
|
-
() =>
|
|
533
|
-
(
|
|
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
|
-
),
|
|
540
|
-
() => o.value !==
|
|
541
|
-
),
|
|
542
|
-
() => !g.value ||
|
|
543
|
-
), te =
|
|
544
|
-
() => !g.value ||
|
|
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(
|
|
548
|
-
B.value =
|
|
549
|
-
...
|
|
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
|
-
|
|
553
|
-
|
|
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
|
|
556
|
-
A =
|
|
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
|
|
562
|
+
const k = await Y.getSettings(
|
|
561
563
|
s.value,
|
|
562
|
-
|
|
564
|
+
c.signal
|
|
563
565
|
);
|
|
564
|
-
if (
|
|
565
|
-
B.value =
|
|
566
|
-
} catch (
|
|
567
|
-
|
|
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
|
-
|
|
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
|
|
577
|
+
function ue(d) {
|
|
579
578
|
B.value = B.value.filter(
|
|
580
|
-
(
|
|
579
|
+
(c) => c.id !== d
|
|
581
580
|
), R(!0);
|
|
582
581
|
}
|
|
583
|
-
async function
|
|
582
|
+
async function me() {
|
|
584
583
|
if (te.value) return;
|
|
585
584
|
clearTimeout(M), A == null || A.abort();
|
|
586
|
-
const
|
|
587
|
-
A =
|
|
588
|
-
const
|
|
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
|
|
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
|
-
|
|
596
|
+
d.signal
|
|
598
597
|
);
|
|
599
|
-
if (
|
|
600
|
-
oe(
|
|
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 (
|
|
605
|
-
|
|
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
|
-
|
|
606
|
+
d.signal.aborted || (x.value = !1, le());
|
|
608
607
|
}
|
|
609
608
|
}
|
|
610
|
-
async function
|
|
611
|
-
if (
|
|
612
|
-
const
|
|
613
|
-
!await
|
|
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
|
-
) ||
|
|
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
|
-
}), (
|
|
623
|
-
const
|
|
624
|
-
return a(),
|
|
625
|
-
|
|
626
|
-
k
|
|
627
|
-
|
|
628
|
-
])) : (a(),
|
|
629
|
-
g.value ? (a(),
|
|
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":
|
|
633
|
-
disabled:
|
|
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(),
|
|
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:
|
|
642
|
-
onRemoved:
|
|
640
|
+
onRetry: c[1] || (c[1] = (F) => R(!0)),
|
|
641
|
+
onRemoved: ue
|
|
643
642
|
}, null, 8, ["accounts", "error"])) : _("", !0)
|
|
644
643
|
]),
|
|
645
|
-
e("details",
|
|
646
|
-
e("summary",
|
|
647
|
-
|
|
648
|
-
|
|
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",
|
|
656
|
-
g.value ? (a(),
|
|
654
|
+
e("div", Rt, [
|
|
655
|
+
g.value ? (a(), P(Bt, {
|
|
657
656
|
key: 0,
|
|
658
|
-
modelValue:
|
|
659
|
-
"onUpdate:modelValue":
|
|
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":
|
|
662
|
-
disabled:
|
|
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(),
|
|
663
|
+
g.value ? (a(), P(Nt, {
|
|
665
664
|
key: 1,
|
|
666
665
|
modelValue: r.value,
|
|
667
|
-
"onUpdate:modelValue":
|
|
668
|
-
disabled:
|
|
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
|
-
|
|
674
|
-
g.value ? _("", !0) : (a(),
|
|
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:
|
|
678
|
+
onClick: c[5] || (c[5] = (F) => R())
|
|
680
679
|
}, null, 8, ["label"])),
|
|
681
|
-
e("div",
|
|
682
|
-
|
|
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:
|
|
685
|
+
disabled: V.value,
|
|
687
686
|
class: "!rounded-full !px-[20px] [&_.label]:text-[14px]",
|
|
688
|
-
onClick:
|
|
687
|
+
onClick: xe
|
|
689
688
|
}, null, 8, ["label", "disabled"]),
|
|
690
|
-
|
|
689
|
+
S(j, {
|
|
691
690
|
label: t(n)("connect.common.save"),
|
|
692
691
|
disabled: te.value,
|
|
693
|
-
loading:
|
|
692
|
+
loading: x.value,
|
|
694
693
|
class: "!rounded-full !px-[20px] [&_.label]:text-[14px]",
|
|
695
|
-
onClick:
|
|
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
|
-
|
|
703
|
+
Yt as default
|
|
705
704
|
};
|