first commit

This commit is contained in:
2025-08-25 12:19:58 +03:30
parent f798e8e35c
commit 2f6a7242c4
20 changed files with 885 additions and 1302 deletions

View File

@@ -184,7 +184,7 @@ const isQuickRepliesVisible = computed(() => {
if (activeForm.value !== null) return false;
if (isConfirmationActive.value) return false;
if (isWebSearchEnabled.value) return false;
if (pendingConfirmationFormId.value !== null) return false;
if (pendingConfirmationFormId.value !== null) return false;
return true;
});
@@ -405,14 +405,14 @@ const handleMultiFormResponse = (userResponse) => {
const form = forms[activeMultiForm.value];
const currentStep = form.steps[currentFormStep.value];
multiFormData.value[currentStep.id] = userResponse;
if (pendingConfirmationFormId.value) {
confirmationData.value = { ...confirmationData.value, ...multiFormData.value };
return {
completed: true,
return {
completed: true,
data: confirmationData.value,
showConfirmationAgain: true
};
@@ -686,7 +686,7 @@ const handleConfirmation = (confirmed, message) => {
} else {
showConfirmation.value = false;
showStepSelection.value = true;
messageQueue.value.push({
sender: "bot",
type: "step-selection",
@@ -733,7 +733,7 @@ const handleMultiFormOptionClick = (stepId, option) => {
if (formResponse.completed) {
const form = forms[activeMultiForm.value];
if (formResponse.showConfirmationAgain) {
messageQueue.value.push({
sender: "bot",