vhobjects-user 1.1.1 → 1.1.2
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/fesm2015/vhobjects-user.js +1 -1
- package/fesm2015/vhobjects-user.js.map +1 -1
- package/lib/objects/basic/chatbox-ai/user/chatbox-ai/chatbox-ai.component.d.ts +79 -0
- package/lib/objects/basic/chatbox-ai/user/chatbox-ai/chatbox-ai.service.d.ts +342 -0
- package/lib/vhautoweb-objects.module.d.ts +31 -30
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { ElementRef, EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { FunctionService } from 'vhobjects-service/src/services';
|
|
3
|
+
import { ChatboxAIService, ChatTextPart } from './chatbox-ai.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface ChatMessage {
|
|
6
|
+
role: 'user' | 'bot';
|
|
7
|
+
text: Record<string, string>;
|
|
8
|
+
error?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class AtwChatboxAI implements OnInit {
|
|
11
|
+
functionService: FunctionService;
|
|
12
|
+
private platformId;
|
|
13
|
+
private chatboxAIService;
|
|
14
|
+
data: any;
|
|
15
|
+
type: any;
|
|
16
|
+
device: any;
|
|
17
|
+
index: any;
|
|
18
|
+
id_subproject: any;
|
|
19
|
+
hanldleProcessResizeOffset: EventEmitter<any>;
|
|
20
|
+
isComponentExist: ElementRef<HTMLDivElement>;
|
|
21
|
+
scroller: ElementRef<HTMLElement>;
|
|
22
|
+
input: ElementRef<HTMLTextAreaElement>;
|
|
23
|
+
prevHeight: any;
|
|
24
|
+
class: {
|
|
25
|
+
'chatbox-ai': {};
|
|
26
|
+
'chatbox-ai__header': {};
|
|
27
|
+
'chatbox-ai__avatar': {};
|
|
28
|
+
'chatbox-ai__avatar--icon': {};
|
|
29
|
+
'chatbox-ai__heading': {};
|
|
30
|
+
'chatbox-ai__title': {};
|
|
31
|
+
'chatbox-ai__subtitle': {};
|
|
32
|
+
'chatbox-ai__close': {};
|
|
33
|
+
'chatbox-ai__close--icon': {};
|
|
34
|
+
'chatbox-ai__body': {};
|
|
35
|
+
'chatbox-ai__message': {};
|
|
36
|
+
'chatbox-ai__message--bot': {};
|
|
37
|
+
'chatbox-ai__message--typing': {};
|
|
38
|
+
'chatbox-ai__typing-dot': {};
|
|
39
|
+
'chatbox-ai__suggestions': {};
|
|
40
|
+
'chatbox-ai__suggestion': {};
|
|
41
|
+
'chatbox-ai__footer': {};
|
|
42
|
+
'chatbox-ai__input': {};
|
|
43
|
+
'chatbox-ai__send': {};
|
|
44
|
+
'chatbox-ai__send--icon': {};
|
|
45
|
+
};
|
|
46
|
+
config: any;
|
|
47
|
+
staticdata: any;
|
|
48
|
+
isLoading: boolean;
|
|
49
|
+
draft: string;
|
|
50
|
+
messages: ChatMessage[];
|
|
51
|
+
suggestions: string[];
|
|
52
|
+
private partsCache;
|
|
53
|
+
status: string;
|
|
54
|
+
private statusSub?;
|
|
55
|
+
constructor(functionService: FunctionService, platformId: Object, chatboxAIService: ChatboxAIService);
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
ngOnDestroy(): void;
|
|
58
|
+
private getDetailObject;
|
|
59
|
+
onKeydown(event: KeyboardEvent): void;
|
|
60
|
+
send(text?: string): Promise<void>;
|
|
61
|
+
/** Đổi danh sách tin nhắn của giao diện sang dạng backend nhận (bỏ tin báo lỗi, bot -> assistant). */
|
|
62
|
+
private toRequestMessages;
|
|
63
|
+
private scrollToBottom;
|
|
64
|
+
getParts(message: ChatMessage): ChatTextPart[];
|
|
65
|
+
/**
|
|
66
|
+
* Theo dõi dựa trên vị trí, không quan tâm nội dung chuỗi thay đổi
|
|
67
|
+
* @param index
|
|
68
|
+
* @param item
|
|
69
|
+
* @returns
|
|
70
|
+
*/
|
|
71
|
+
trackByIndex(index: number, item: any): number;
|
|
72
|
+
/** Đang ở trang thiết kế: phủ lớp trong suốt để tránh bấm nhầm. */
|
|
73
|
+
get isDesign(): boolean;
|
|
74
|
+
get lockTitle(): string;
|
|
75
|
+
get lockText(): string;
|
|
76
|
+
private text;
|
|
77
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AtwChatboxAI, never>;
|
|
78
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AtwChatboxAI, "atw-chatbox-ai", never, { "data": "data"; "type": "type"; "device": "device"; "index": "index"; "id_subproject": "id_subproject"; }, { "hanldleProcessResizeOffset": "hanldleProcessResizeOffset"; }, never, never>;
|
|
79
|
+
}
|
|
@@ -0,0 +1,342 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
4
|
+
import { NzMessageService } from 'ng-zorro-antd/message';
|
|
5
|
+
import { VhQueryAutoWeb } from 'vhautowebdb';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/**
|
|
8
|
+
* Service làm việc với backend chatbot cho site (sub project) đang làm việc:
|
|
9
|
+
* - Cấu hình AI của site (xem, tạo/cập nhật, xóa, test kết nối): các API `/admin/*`
|
|
10
|
+
* - Đồng bộ danh sách sản phẩm để chatbot trả lời theo dữ liệu của site.
|
|
11
|
+
*
|
|
12
|
+
* `siteId` luôn lấy từ sub project đang làm việc, tại thời điểm gọi API.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* this.chatboxAIService.getConfigAI().subscribe((config) => console.log(config.effective));
|
|
16
|
+
*/
|
|
17
|
+
export declare class ChatboxAIService {
|
|
18
|
+
private http;
|
|
19
|
+
private translateService;
|
|
20
|
+
private nzMessageService;
|
|
21
|
+
private vhQueryAutoWeb;
|
|
22
|
+
/** Địa chỉ gốc của backend chatbot. */
|
|
23
|
+
readonly baseUrl: string;
|
|
24
|
+
private readonly statusRefresh;
|
|
25
|
+
/** Phát mỗi khi cấu hình AI hoặc sản phẩm của site vừa thay đổi, để chatbox kiểm tra lại. */
|
|
26
|
+
readonly statusRefresh$: Observable<void>;
|
|
27
|
+
constructor(http: HttpClient, translateService: TranslateService, nzMessageService: NzMessageService, vhQueryAutoWeb: VhQueryAutoWeb);
|
|
28
|
+
/**
|
|
29
|
+
* Lấy cấu hình AI của site đang làm việc.
|
|
30
|
+
* API key thật không bao giờ được trả về, chỉ có bản che trong `api_key_hint`.
|
|
31
|
+
*/
|
|
32
|
+
getConfigAI(): Observable<ConfigAI>;
|
|
33
|
+
/**
|
|
34
|
+
* Tạo mới hoặc cập nhật cấu hình AI của site (backend dùng chung một xử lý cho PUT và PATCH).
|
|
35
|
+
*
|
|
36
|
+
* - Field **không gửi**: giữ nguyên giá trị cũ.
|
|
37
|
+
* - Field gửi **`null`**: xóa cấu hình riêng, quay về mặc định của server
|
|
38
|
+
* (với `api_key`: xóa key riêng của site).
|
|
39
|
+
* - Tạo site **lần đầu** bắt buộc có `shop_name`.
|
|
40
|
+
*
|
|
41
|
+
* Chỉ gửi các field có trong {@link ConfigAIPayload}. Gửi field lạ (ví dụ cả object `ConfigAI`
|
|
42
|
+
* lấy từ `getConfigAI`) sẽ bị backend từ chối 400.
|
|
43
|
+
*
|
|
44
|
+
* @param putData Các field cần tạo hoặc thay đổi
|
|
45
|
+
* @example
|
|
46
|
+
* this.chatboxAIService
|
|
47
|
+
* .updateConfigAI({ thinking_level: 'low', temperature: null })
|
|
48
|
+
* .subscribe((config) => console.log(config.warnings));
|
|
49
|
+
*/
|
|
50
|
+
updateConfigAI(putData: ConfigAIPayload): Observable<ConfigAI>;
|
|
51
|
+
/**
|
|
52
|
+
* Xóa site: cấu hình AI và toàn bộ danh sách sản phẩm đã đồng bộ. Không thể hoàn tác.
|
|
53
|
+
*/
|
|
54
|
+
deleteConfigAI(): Observable<{
|
|
55
|
+
ok: boolean;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* Test kết nối AI: gửi thử một tin nhắn nhỏ bằng cấu hình **đã lưu** của site
|
|
59
|
+
* (có tốn một lượt gọi AI). Kết quả `ok: false` vẫn là HTTP 200, lý do nằm trong
|
|
60
|
+
* `code`, `message`, `detail`.
|
|
61
|
+
*/
|
|
62
|
+
testConnection(): Observable<TestResultResponse>;
|
|
63
|
+
/** Test AI bằng cấu hình đã lưu của site (POST /admin/sites/:siteId/test). */
|
|
64
|
+
testSite(): Observable<SiteTestResult>;
|
|
65
|
+
/**
|
|
66
|
+
* Đồng bộ danh sách sản phẩm của site lên backend để chatbot trả lời theo dữ liệu này.
|
|
67
|
+
* Mỗi lần gọi sẽ **thay thế toàn bộ** danh sách cũ trên backend.
|
|
68
|
+
*
|
|
69
|
+
* Luồng: lấy dữ liệu (truyền vào hoặc đọc từ DB) -> {@link processData} (chọn lọc và rút gọn cho AI)
|
|
70
|
+
* -> kiểm tra tối đa 300 sản phẩm -> gửi lên. Lỗi được hiện bằng thông báo và hàm trả `false`,
|
|
71
|
+
* không ném lỗi ra ngoài.
|
|
72
|
+
*
|
|
73
|
+
* @param options.products Danh sách sản phẩm có sẵn. Bỏ trống thì đọc từ `getProducts_byFields`
|
|
74
|
+
* @param options.categoryNames Bảng tra tên nhóm hàng theo id, xem {@link ProcessDataOptions}
|
|
75
|
+
* @param options.lang Ngôn ngữ nội dung gửi cho AI (mặc định `'vn'`)
|
|
76
|
+
* @returns `true` nếu đồng bộ thành công
|
|
77
|
+
* @example
|
|
78
|
+
* const ok = await this.chatboxAIService.updateProducts({ categoryNames: { '6aa2...': 'Cụm công nghiệp' } });
|
|
79
|
+
*/
|
|
80
|
+
updateProducts(products?: any[]): Promise<boolean>;
|
|
81
|
+
/**
|
|
82
|
+
* Chế biến dữ liệu sản phẩm gốc trong DB thành dạng gọn cho AI. **Chỉ dùng để gửi cho chatbot**,
|
|
83
|
+
* không sửa dữ liệu gốc và không dùng cho giao diện hay nơi khác.
|
|
84
|
+
*
|
|
85
|
+
* Hàm chỉ **chọn lấy** vài field cần thiết (không gửi cả object), nên các field nhạy cảm như
|
|
86
|
+
* `price_import` (giá nhập), `barcode`, `id_branch` không bao giờ rời khỏi trình duyệt.
|
|
87
|
+
*
|
|
88
|
+
* Quy tắc:
|
|
89
|
+
* - Bỏ sản phẩm ẩn trên web (`webapp_hidden: true`), ngừng kinh doanh (`selling: false`) hoặc không có tên.
|
|
90
|
+
* - `name`: `name_vn` (không có thì `name_gb`).
|
|
91
|
+
* - `price`: giá bán web, rồi giá gốc của đơn vị mặc định, rồi `price_search`; giá 0 coi như **không có giá**.
|
|
92
|
+
* - `stock`: chỉ có khi `availability = 'out_of_stock'` (= 0), còn lại để trống thay vì đoán.
|
|
93
|
+
* - `category`: tra từ `id_categorys` qua `categoryNames`.
|
|
94
|
+
* - `description`: ghép các thông tin riêng (field `fcustom_*`), khuyến mãi, thông số, bảo hành rồi tới mô tả
|
|
95
|
+
* ngắn; đã bỏ HTML và cắt theo `maxDescriptionLength`.
|
|
96
|
+
*
|
|
97
|
+
* @param rawProducts Danh sách sản phẩm gốc trong DB
|
|
98
|
+
* @param options Tùy chọn, xem {@link ProcessDataOptions}
|
|
99
|
+
* @returns Danh sách {@link ProductPayload} sẵn sàng gửi lên backend
|
|
100
|
+
*/
|
|
101
|
+
processData(rawProducts: any[]): Promise<ProductPayload[]>;
|
|
102
|
+
/**
|
|
103
|
+
* Gửi hội thoại cho chatbot của site và nhận câu trả lời của AI.
|
|
104
|
+
* API này công khai (người dùng cuối gọi), **không cần Admin key**, nhưng domain của trang phải nằm
|
|
105
|
+
* trong `allowed_origins` của site, và site phải đã có cấu hình AI + dữ liệu sản phẩm.
|
|
106
|
+
*
|
|
107
|
+
* AI không tự nhớ nên mỗi lần phải gửi kèm lịch sử. Hàm bỏ tin rỗng và chỉ giữ 20 tin gần nhất.
|
|
108
|
+
* Tin cuối cùng phải là của `user`; lời chào của bot ở đầu danh sách sẽ được backend tự bỏ qua.
|
|
109
|
+
*
|
|
110
|
+
* @param history Lịch sử hội thoại, từ cũ đến mới (không đưa tin báo lỗi của giao diện vào)
|
|
111
|
+
* @returns Observable phát ra đúng một chuỗi: câu trả lời của AI
|
|
112
|
+
*/
|
|
113
|
+
sendChatMessage(history: ChatRequestMessage[]): Observable<string>;
|
|
114
|
+
/**
|
|
115
|
+
* Nội dung báo lỗi cho **người dùng cuối** của chatbox khi {@link sendChatMessage} thất bại.
|
|
116
|
+
* Cố ý không tiết lộ chi tiết nội bộ (API key, cấu hình): các lỗi do cấu hình đều quy về
|
|
117
|
+
* "chưa sẵn sàng". Nên `console.warn(error)` để dev chẩn đoán.
|
|
118
|
+
*/
|
|
119
|
+
static getChatErrorMessage(error: unknown): string;
|
|
120
|
+
/**
|
|
121
|
+
* Lấy nội dung lỗi để hiển thị từ lỗi HTTP của backend (`{ error: { code, message } }`).
|
|
122
|
+
* Mất kết nối (status 0) và lỗi khác trả về khóa dịch (translate key).
|
|
123
|
+
* @param error Lỗi bắt được
|
|
124
|
+
* @param fallback Nội dung mặc định khi không đọc được lỗi
|
|
125
|
+
*/
|
|
126
|
+
static getErrorMessage(error: unknown, fallback?: string): string;
|
|
127
|
+
/**
|
|
128
|
+
* siteId của sub project đang làm việc (đọc mỗi lần dùng để luôn đúng khi đổi project).
|
|
129
|
+
* @throws Error nếu không xác định được hoặc không hợp lệ với backend
|
|
130
|
+
*/
|
|
131
|
+
private get siteId();
|
|
132
|
+
/** URL quản trị của site: `/admin/sites/:siteId`. */
|
|
133
|
+
private get configsUrl();
|
|
134
|
+
/** URL đồng bộ sản phẩm của site: `/sites/:siteId/products`. */
|
|
135
|
+
private get productsUrl();
|
|
136
|
+
/**
|
|
137
|
+
* Tạo thông báo dạng message (từ trên xuống). `content` có thể là khóa dịch hoặc chuỗi thường
|
|
138
|
+
* (khóa không tồn tại thì hiển thị nguyên chuỗi).
|
|
139
|
+
* @param type Loại thông báo: `'success' | 'error' | 'warning' | 'info'`
|
|
140
|
+
* @param content Khóa dịch hoặc nội dung thông báo
|
|
141
|
+
* @param duration Thời gian hiển thị (ms)
|
|
142
|
+
* @example
|
|
143
|
+
* this.createMessage('error', 'co_loi_xay_ra_vui_long_thu_lai', 1200);
|
|
144
|
+
*/
|
|
145
|
+
createMessage(type: 'success' | 'error' | 'warning' | 'info', content: string, duration?: number): void;
|
|
146
|
+
/**
|
|
147
|
+
* Thay thế các biến dạng `{{ variable }}` trong template bằng giá trị từ `vars`.
|
|
148
|
+
*
|
|
149
|
+
* @param template - Chuỗi template chứa các placeholder.
|
|
150
|
+
* @param vars - Đối tượng key-value dùng để điền vào template.
|
|
151
|
+
* @param keepMissing - Nếu `true`, giữ nguyên placeholder khi thiếu biến;
|
|
152
|
+
* nếu `false` (mặc định), thay bằng chuỗi rỗng.
|
|
153
|
+
* @returns Chuỗi sau khi nội suy.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* interpolate("Chào {{ name }}, {{ age }}", { name: "Nam" });
|
|
157
|
+
* // "Chào Nam, "
|
|
158
|
+
*
|
|
159
|
+
* interpolate("Chào {{ name }}, {{ age }}", { name: "Nam" }, true);
|
|
160
|
+
* // "Chào Nam, {{ age }}"
|
|
161
|
+
*/
|
|
162
|
+
interpolate(template: string, vars?: Record<string, any>, keepMissing?: boolean): string;
|
|
163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ChatboxAIService, never>;
|
|
164
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ChatboxAIService>;
|
|
165
|
+
}
|
|
166
|
+
/** Đổi HTML thành văn bản thuần (mô tả từ trình soạn thảo chứa rất nhiều thẻ và style, chỉ tốn token). */
|
|
167
|
+
export declare function htmlToText(html: unknown): string;
|
|
168
|
+
/**
|
|
169
|
+
* Link mặc định tới trang chi tiết sản phẩm: `<baseUrl>/<link_detail_page>/<link>`
|
|
170
|
+
* (ví dụ `https://khach.com/san-pham-chi-tiet/ccn-danh-thang-doan-bai`).
|
|
171
|
+
* LƯU Ý: cách ghép này là phỏng đoán theo field `link` và `link_detail_page`; nếu website dùng dạng
|
|
172
|
+
* đường dẫn khác (ví dụ có `#`, thêm mã ngôn ngữ) hãy truyền `productUrl` riêng vào `updateProducts`.
|
|
173
|
+
* Thiếu `baseUrl`, `link` hoặc `link_detail_page` thì trả `undefined` (không đoán).
|
|
174
|
+
*/
|
|
175
|
+
export declare function defaultProductUrl(raw: any, baseUrl: string): string | undefined;
|
|
176
|
+
/**
|
|
177
|
+
* Đổi một sản phẩm trong DB sang dạng gọn cho AI. Trả `null` nếu sản phẩm không nên đưa cho AI
|
|
178
|
+
* (ẩn trên web, ngừng kinh doanh, không có tên). Xem chi tiết quy tắc ở {@link ChatboxAIService.processData}.
|
|
179
|
+
* @param raw Sản phẩm gốc trong DB
|
|
180
|
+
*/
|
|
181
|
+
export declare function toProductPayload(raw: any, categoriesList: any[]): ProductPayload | null;
|
|
182
|
+
/** Một sản phẩm gửi lên backend. Chỉ `name` là bắt buộc; backend tự cắt chuỗi quá dài. */
|
|
183
|
+
export interface ProductPayload {
|
|
184
|
+
id?: string;
|
|
185
|
+
name: string;
|
|
186
|
+
category?: string;
|
|
187
|
+
price?: number;
|
|
188
|
+
stock?: number;
|
|
189
|
+
description?: string;
|
|
190
|
+
/** Đường dẫn trang chi tiết sản phẩm. Chatbot sẽ kèm link này khi nhắc tới sản phẩm. */
|
|
191
|
+
url?: string;
|
|
192
|
+
}
|
|
193
|
+
/** Hãng AI mà backend hỗ trợ. */
|
|
194
|
+
export declare type AIProvider = 'gemini' | 'openai' | 'anthropic' | 'xai' | 'deepseek' | 'mistral' | 'qwen' | 'moonshot' | 'zhipu' | 'cohere' | 'perplexity';
|
|
195
|
+
/** Mức suy luận. `default` = không gửi tham số suy luận cho hãng AI. */
|
|
196
|
+
export declare type ThinkingLevel = 'default' | 'minimal' | 'low' | 'medium' | 'high';
|
|
197
|
+
/** Giá trị thực sự được dùng sau khi gộp cấu hình của site với mặc định trong `.env` của server. */
|
|
198
|
+
export interface ConfigAIEffective {
|
|
199
|
+
provider: AIProvider | null;
|
|
200
|
+
model: string | null;
|
|
201
|
+
base_url: string | null;
|
|
202
|
+
temperature: number;
|
|
203
|
+
thinking_level: string;
|
|
204
|
+
max_output_tokens: number;
|
|
205
|
+
timeout_ms: number;
|
|
206
|
+
rate_limit_per_minute: number;
|
|
207
|
+
/** Nguồn API key đang dùng: của site, mặc định của server, hoặc chưa có. */
|
|
208
|
+
api_key_source: 'site' | 'env' | 'none';
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Cấu hình AI của site do backend trả về (chỉ để đọc).
|
|
212
|
+
* Các field cấu hình có giá trị `null` nghĩa là đang dùng mặc định của server (xem `effective`).
|
|
213
|
+
*/
|
|
214
|
+
export interface ConfigAI {
|
|
215
|
+
site_id: string;
|
|
216
|
+
shop_name: string;
|
|
217
|
+
provider: AIProvider | null;
|
|
218
|
+
model: string | null;
|
|
219
|
+
base_url: string | null;
|
|
220
|
+
has_api_key: boolean;
|
|
221
|
+
/** API key đã che, ví dụ `AIza****7890`. */
|
|
222
|
+
api_key_hint: string | null;
|
|
223
|
+
rate_limit_per_minute: number | null;
|
|
224
|
+
temperature: number | null;
|
|
225
|
+
thinking_level: ThinkingLevel | null;
|
|
226
|
+
max_output_tokens: number | null;
|
|
227
|
+
timeout_ms: number | null;
|
|
228
|
+
external_links: ConfigExternalLinkItem[];
|
|
229
|
+
contact_info: string | null;
|
|
230
|
+
custom_prompt: string | null;
|
|
231
|
+
created_at: string;
|
|
232
|
+
updated_at: string;
|
|
233
|
+
effective?: ConfigAIEffective;
|
|
234
|
+
/** Cảnh báo tham số nào bị bỏ qua hoặc đổi dạng với model đang dùng. */
|
|
235
|
+
warnings: string[];
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Các field được phép gửi khi tạo hoặc cập nhật cấu hình.
|
|
239
|
+
* Không gửi = giữ nguyên, `null` = quay về mặc định của server.
|
|
240
|
+
*/
|
|
241
|
+
export interface ConfigAIPayload {
|
|
242
|
+
shop_name?: string;
|
|
243
|
+
provider?: AIProvider | null;
|
|
244
|
+
model?: string | null;
|
|
245
|
+
/** API key mới (được mã hóa khi lưu). `null` = xóa key riêng của site. */
|
|
246
|
+
api_key?: string | null;
|
|
247
|
+
base_url?: string | null;
|
|
248
|
+
rate_limit_per_minute?: number | null;
|
|
249
|
+
temperature?: number | null;
|
|
250
|
+
thinking_level?: ThinkingLevel | null;
|
|
251
|
+
max_output_tokens?: number | null;
|
|
252
|
+
timeout_ms?: number | null;
|
|
253
|
+
external_links?: ConfigExternalLinkItem[];
|
|
254
|
+
contact_info?: string | null;
|
|
255
|
+
custom_prompt?: string | null;
|
|
256
|
+
}
|
|
257
|
+
export interface ConfigExternalLinkItem {
|
|
258
|
+
label: string;
|
|
259
|
+
url: string;
|
|
260
|
+
}
|
|
261
|
+
/** Một tin nhắn trong hội thoại gửi lên backend (`assistant` là tin của bot). */
|
|
262
|
+
export interface ChatRequestMessage {
|
|
263
|
+
role: 'user' | 'assistant';
|
|
264
|
+
content: string;
|
|
265
|
+
}
|
|
266
|
+
/** Phản hồi của API chat. */
|
|
267
|
+
export interface ChatResponse {
|
|
268
|
+
reply: string;
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Lỗi của API chat, hiển thị cho người dùng cuối. Key là `code` của backend (thêm `NETWORK`
|
|
272
|
+
* cho mất kết nối và `DEFAULT` cho lỗi lạ).
|
|
273
|
+
*/
|
|
274
|
+
export declare const CHAT_ERROR_MESSAGES: Record<string, string>;
|
|
275
|
+
/**
|
|
276
|
+
* Lỗi nằm trong kết quả test kết nối (`TestResultResponse.code`, khi `ok: false`, HTTP vẫn là 200).
|
|
277
|
+
* Key là `code`, value là nội dung hiển thị kèm cách xử lý.
|
|
278
|
+
* Cần dịch đa ngôn ngữ thì đổi value thành khóa dịch (translate key).
|
|
279
|
+
*/
|
|
280
|
+
export declare const TEST_ERROR_MESSAGES: {
|
|
281
|
+
readonly INVALID_API_KEY: "API key không hợp lệ hoặc chưa được cấp quyền. Hãy nhập lại API key của site.";
|
|
282
|
+
readonly RATE_LIMIT: "Hãng AI báo quá tải hoặc đã hết hạn mức. Hãy chờ ít phút rồi thử lại, hoặc nạp thêm hạn mức cho API key.";
|
|
283
|
+
readonly AI_OVERLOADED: "Hãng AI đang quá tải. Hãy thử lại sau ít phút.";
|
|
284
|
+
readonly AI_ERROR: "Hãng AI từ chối yêu cầu, thường do sai tên model hoặc tham số không được hỗ trợ. Hãy xem chi tiết lỗi rồi sửa model hoặc tham số.";
|
|
285
|
+
readonly AI_TIMEOUT: "AI phản hồi quá lâu. Hãy tăng timeout hoặc giảm mức suy luận (thinking level).";
|
|
286
|
+
readonly AI_UNREACHABLE: "Máy chủ không kết nối được tới hãng AI. Hãy kiểm tra mạng của máy chủ và base URL (nếu có).";
|
|
287
|
+
readonly EMPTY_REPLY: "AI không trả về nội dung. Thường do max output tokens quá thấp khi bật suy luận, hãy tăng giá trị này.";
|
|
288
|
+
};
|
|
289
|
+
/** Các `code` có thể xuất hiện trong kết quả test kết nối. */
|
|
290
|
+
export declare type TestErrorCode = keyof typeof TEST_ERROR_MESSAGES;
|
|
291
|
+
/**
|
|
292
|
+
* Lỗi trả về dưới dạng HTTP lỗi (4xx, 5xx) của các API quản trị và đồng bộ sản phẩm,
|
|
293
|
+
* body có dạng `{ error: { code, message } }`. Key là `code`, value là nội dung kèm cách xử lý.
|
|
294
|
+
*
|
|
295
|
+
* Cố ý KHÔNG có `BAD_REQUEST`: lỗi này do dữ liệu gửi lên sai, backend đã trả `message` cụ thể
|
|
296
|
+
* (ví dụ "origin không hợp lệ") nên hiển thị luôn message đó.
|
|
297
|
+
*/
|
|
298
|
+
export declare const ADMIN_ERROR_MESSAGES: Record<string, string>;
|
|
299
|
+
/**
|
|
300
|
+
* Nội dung hiển thị cho một kết quả test thất bại (`ok: false`).
|
|
301
|
+
* Ưu tiên nội dung kèm cách xử lý theo `code`; code lạ thì dùng `message` của backend.
|
|
302
|
+
* @param result Kết quả test kết nối
|
|
303
|
+
*/
|
|
304
|
+
export declare function getTestErrorMessage(result: TestResultResponse): string;
|
|
305
|
+
/** Kết quả test kết nối AI. `ok: false` vẫn là HTTP 200, xem `code`, `message`, `detail`. */
|
|
306
|
+
export interface TestResultResponse {
|
|
307
|
+
status: 'ok' | string;
|
|
308
|
+
latency_ms?: number;
|
|
309
|
+
reply?: string;
|
|
310
|
+
/** Có khi `ok: false`. Giá trị ngoài danh sách vẫn có thể xuất hiện nếu backend thêm lỗi mới. */
|
|
311
|
+
code?: TestErrorCode;
|
|
312
|
+
message?: string;
|
|
313
|
+
/** Nội dung lỗi gốc của hãng AI (đã che API key), để đọc khi cần chẩn đoán. */
|
|
314
|
+
detail?: string | null;
|
|
315
|
+
}
|
|
316
|
+
/** Kết quả của POST /admin/sites/:siteId/test. `ok: false` vẫn là HTTP 200. */
|
|
317
|
+
export interface SiteTestResult {
|
|
318
|
+
ok: boolean;
|
|
319
|
+
latency_ms?: number;
|
|
320
|
+
reply?: string;
|
|
321
|
+
code?: TestErrorCode;
|
|
322
|
+
message?: string;
|
|
323
|
+
detail?: string | null;
|
|
324
|
+
}
|
|
325
|
+
/** Các `code` cho biết site chưa cài đặt xong (chưa tạo site, chưa cấu hình AI, chưa có sản phẩm). */
|
|
326
|
+
export declare const SITE_NOT_READY_CODES: string[];
|
|
327
|
+
/** Lỗi HTTP có phải do site chưa cài đặt xong không. */
|
|
328
|
+
export declare function isSiteNotReadyError(error: unknown): boolean;
|
|
329
|
+
/** Một đoạn của tin nhắn: chữ thường, hoặc chữ có kèm đường dẫn (khi `url` có giá trị). */
|
|
330
|
+
export interface ChatTextPart {
|
|
331
|
+
text: string;
|
|
332
|
+
url?: string;
|
|
333
|
+
}
|
|
334
|
+
/**
|
|
335
|
+
* Tách câu trả lời của chatbot thành các đoạn chữ và link để hiển thị. Nhận dạng `[chữ](https://...)`
|
|
336
|
+
* và link trần `https://...`; chỉ chấp nhận http(s). Không dùng `innerHTML` nên an toàn khi hiển thị.
|
|
337
|
+
* @param text Nội dung tin nhắn của bot
|
|
338
|
+
* @example
|
|
339
|
+
* parseChatLinks('Xem [Áo thun](https://a.com/ao) nhé')
|
|
340
|
+
* // [{ text: 'Xem ' }, { text: 'Áo thun', url: 'https://a.com/ao' }, { text: ' nhé' }]
|
|
341
|
+
*/
|
|
342
|
+
export declare function parseChatLinks(text: string): ChatTextPart[];
|
|
@@ -179,38 +179,39 @@ import * as i177 from "./objects/hotel/booking-selector/user/booking-selector.co
|
|
|
179
179
|
import * as i178 from "./objects/product/payment-method/user/payment-method.component";
|
|
180
180
|
import * as i179 from "./objects/cart/noti-order-success/user/noti-order-success/noti-order-success.component";
|
|
181
181
|
import * as i180 from "./objects/basic/media-list/user/media-list/media-list.component";
|
|
182
|
-
import * as i181 from "./objects/
|
|
183
|
-
import * as i182 from "./objects/
|
|
184
|
-
import * as i183 from "./objects/
|
|
185
|
-
import * as i184 from "./objects/
|
|
186
|
-
import * as i185 from "./objects/website/use-template/user/dialog-use-template/
|
|
187
|
-
import * as i186 from "./objects/website/use-template/user/
|
|
188
|
-
import * as i187 from "./objects/website/use-template/user/
|
|
189
|
-
import * as i188 from "./objects/website/use-template/user/dialog-use-template/
|
|
190
|
-
import * as i189 from "./objects/
|
|
191
|
-
import * as i190 from "
|
|
192
|
-
import * as i191 from "@angular/
|
|
193
|
-
import * as i192 from "
|
|
194
|
-
import * as i193 from "
|
|
195
|
-
import * as i194 from "
|
|
196
|
-
import * as i195 from "
|
|
197
|
-
import * as i196 from "
|
|
198
|
-
import * as i197 from "
|
|
199
|
-
import * as i198 from "
|
|
200
|
-
import * as i199 from "
|
|
201
|
-
import * as i200 from "./
|
|
202
|
-
import * as i201 from "
|
|
203
|
-
import * as i202 from "
|
|
204
|
-
import * as i203 from "
|
|
205
|
-
import * as i204 from "
|
|
206
|
-
import * as i205 from "
|
|
207
|
-
import * as i206 from "./
|
|
208
|
-
import * as i207 from "./objects/
|
|
209
|
-
import * as i208 from "./objects/hotel/booking-
|
|
210
|
-
import * as i209 from "
|
|
182
|
+
import * as i181 from "./objects/basic/chatbox-ai/user/chatbox-ai/chatbox-ai.component";
|
|
183
|
+
import * as i182 from "./objects/product/menu-product/user/add-link/add-link.component";
|
|
184
|
+
import * as i183 from "./objects/cart/delete-cart-product/user/delete-cart-item/delete-cart-item.component";
|
|
185
|
+
import * as i184 from "./objects/recruitment/ordinal-recruitment/user/ordinal-recruitment/ordinal-recruitment.component";
|
|
186
|
+
import * as i185 from "./objects/website/use-template/user/dialog-use-template/dialog-use-template.component";
|
|
187
|
+
import * as i186 from "./objects/website/use-template/user/dialog-use-template/create-hosting/create-hosting.component";
|
|
188
|
+
import * as i187 from "./objects/website/use-template/user/search-phone-code/search-phone-code.component";
|
|
189
|
+
import * as i188 from "./objects/website/use-template/user/dialog-use-template/delete-hosting/delete-hosting.component";
|
|
190
|
+
import * as i189 from "./objects/website/use-template/user/dialog-use-template/deploy-website/deploy-website.component";
|
|
191
|
+
import * as i190 from "./objects/cart/button-payment/qr-banking-modal/qr-banking-modal.component";
|
|
192
|
+
import * as i191 from "@angular/common";
|
|
193
|
+
import * as i192 from "@angular/forms";
|
|
194
|
+
import * as i193 from "vhobjects-service";
|
|
195
|
+
import * as i194 from "@angular/router";
|
|
196
|
+
import * as i195 from "ngx-lottie";
|
|
197
|
+
import * as i196 from "@ckeditor/ckeditor5-angular";
|
|
198
|
+
import * as i197 from "./poup-hover.module";
|
|
199
|
+
import * as i198 from "@ng-bootstrap/ng-bootstrap";
|
|
200
|
+
import * as i199 from "ngx-color-picker";
|
|
201
|
+
import * as i200 from "./vhstringpercent.pipe";
|
|
202
|
+
import * as i201 from "./objects/profiles/profile-user/user/profile-user/profile-user.module";
|
|
203
|
+
import * as i202 from "ng-dynamic-component";
|
|
204
|
+
import * as i203 from "@ngx-translate/core";
|
|
205
|
+
import * as i204 from "./objects/profile-website/user/profile-website/profile-website.module";
|
|
206
|
+
import * as i205 from "@ionic/angular";
|
|
207
|
+
import * as i206 from "./vh-language.pipe";
|
|
208
|
+
import * as i207 from "./objects/product/customize-newField/user/customize-newField.module";
|
|
209
|
+
import * as i208 from "./objects/hotel/booking-hotel-manage/user/booking-hotel-manage.module";
|
|
210
|
+
import * as i209 from "./objects/hotel/booking-flow/user/booking-flow.module";
|
|
211
|
+
import * as i210 from "@angular/material/dialog";
|
|
211
212
|
export declare function playerFactory(): import("lottie-web").LottiePlayer;
|
|
212
213
|
export declare class VhautowebObjectsModule {
|
|
213
214
|
static ɵfac: i0.ɵɵFactoryDeclaration<VhautowebObjectsModule, never>;
|
|
214
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<VhautowebObjectsModule, [typeof i1.AtwButtonCalculateCustom, typeof i2.AtwMapRepeat, typeof i3.AtwDateRepeat, typeof i4.AtwIndexNumber, typeof i5.AtwDescribeCategoryShort, typeof i6.AtwTableOfContent, typeof i7.AtwButtonResetFilter, typeof i8.AtwTotalQuantityFavoriteProducts, typeof i9.AtwButtonFavorite, typeof i10.AtwChooseSubproduct, typeof i11.AtwImageBeforeAfterSlider, typeof i12.AtwTextWarrantyPeriod, typeof i13.AtwCustomizeObject, typeof i14.AtwPopupInteractive, typeof i15.AtwActiveDate, typeof i16.AtwImageVideoDetail, typeof i17.AtwVideoUpload, typeof i18.AtwNewFieldSnimei, typeof i19.AtwButtonActive, typeof i20.AtwTextProductId, typeof i21.AtwPurchaseDate, typeof i22.AtwExpirationDate, typeof i23.AtwMaxActivationDays, typeof i24.AtwTextActive, typeof i25.AtwRemainingTime, typeof i26.AtwExportBill, typeof i27.AtwDateDelivery, typeof i28.AtwDescriptionRecruitment, typeof i29.AtwUseTemplate, typeof i30.AtwButtonSearchSnimei, typeof i31.AtwSearchSnimei, typeof i32.AtwTextImei, typeof i33.AtwButtonLoggedComponent, typeof i34.AtwTextRepeat, typeof i35.AtwImageRepeat, typeof i36.AtwButton, typeof i37.AtwImage, typeof i38.AtwCountDown, typeof i39.AtwIcon, typeof i40.AtwMap, typeof i41.AtwNumberCounting, typeof i42.AtwShape, typeof i43.AtwText, typeof i44.AtwVideo, typeof i45.AtwSearch, typeof i46.AtwPopup, typeof i47.AtwHover, typeof i48.AtwLine, typeof i49.AtwButtonBacktop, typeof i50.AtwTextCollapse, typeof i51.AtwButtonClosePopup, typeof i52.AtwInputEmail, typeof i53.AtwBtnLogin, typeof i54.AtwBtnLoginLogout2States, typeof i55.AtwInputPassword, typeof i56.AtwInputTelephone, typeof i57.AtwInputName, typeof i58.AtwInputAddress, typeof i59.AtwInputContent, typeof i60.AtwButtonRegister, typeof i61.AtwButtonForgotPassword, typeof i62.AtwButtonLogout, typeof i63.AtwUserName, typeof i64.AtwInputNewPassword, typeof i65.AtwInputConfirmPassword, typeof i66.AtwButtonShowForm, typeof i67.AtwButtonSave, typeof i68.AtwButtonConfirm, typeof i69.AtwImageCategory, typeof i70.AtwMenuCategory, typeof i71.AtwTextCategoryName, typeof i72.AtwDescribeCategory, typeof i73.AtwDatePostedNews, typeof i74.AtwDescriptionNews, typeof i75.AtwTextNewsTitle, typeof i76.AtwViewersNews, typeof i77.AtwContentNews, typeof i78.AtwButtonAddToCart, typeof i79.AtwButtonQuantity, typeof i80.AtwButtonViewDetail, typeof i81.AtwCountDownProduct, typeof i82.AtwDetailedDescription, typeof i83.AtwImageDetail, typeof i84.AtwImageProduct, typeof i85.AtwRate, typeof i86.AtwSortProduct, typeof i87.AtwTextBrand, typeof i88.AtwTextDiscount, typeof i89.AtwTextExpire, typeof i90.AtwTextName, typeof i91.AtwTextPrice, typeof i92.AtwTextPriceSale, typeof i93.AtwTextShortDescription, typeof i94.AtwUnits, typeof i95.AtwPopupDetail, typeof i96.AtwRangePrice, typeof i97.AtwMenuProduct, typeof i98.AtwCheckBoxChooseProduct, typeof i99.AtwTotalPriceCart, typeof i100.AtwTotalPriceProduct, typeof i101.AtwButtonQuantityCart, typeof i102.AtwPopupOpenForm, typeof i103.AtwTotalQuantityProducts, typeof i104.AtwButtonPayment, typeof i105.AtwSubTotalPriceCart, typeof i106.AtwFee, typeof i107.AtwDeleteCartProduct, typeof i108.AtwTextProductDiscountValue, typeof i109.AtwTextDiscountValue, typeof i110.AtwMenuHorizontal, typeof i111.AtwMenuVertical, typeof i112.AtwButtonShowModal, typeof i113.AtwMessengerUser, typeof i114.AtwZaloShare, typeof i115.AtwZaloFollow, typeof i116.AtwTotalPriceBill, typeof i117.AtwDateBill, typeof i118.AtwBillCode, typeof i119.AtwPaymentCart, typeof i120.AtwButtonPreview, typeof i121.AtwButtonPreviewImage, typeof i122.AtwDateUpdate, typeof i123.AtwAnimateButton, typeof i124.AtwQuantitySold, typeof i125.AtwWebsiteVersion, typeof i126.AtwNoteBill, typeof i127.AtwNoteProduct, typeof i128.AtwSearchWebsite, typeof i129.AtwSendCV, typeof i130.AtwSendContact, typeof i131.AtwUploadFile, typeof i132.AtwPositionRecruitment, typeof i133.AtwLevelRecruitment, typeof i134.AtwAddressRecruitment, typeof i135.AtwSalaryRecruitment, typeof i136.AtwSpecializedRecruitment, typeof i137.AtwDateExpire, typeof i138.AtwContentRecruitment, typeof i139.AtwTextParagraph, typeof i140.AtwPdfViewer, typeof i141.AtwBackPageButton, typeof i142.AtwSelectAddress, typeof i143.AtwSearchFoods, typeof i144.AtwButtonShowFormLogged, typeof i145.AtwFavorite, typeof i146.AtwDynamicFilter, typeof i147.AtwBreadcrumb, typeof i148.AtwTextCalculateCustom, typeof i149.AtwInputCalculateCustom, typeof i150.AtwSharingSocial, typeof i151.AtwDateCreateProduct, typeof i152.AtwMultiLanguage, typeof i153.AtwButtonRepeat, typeof i154.AtwVideoRepeat, typeof i155.AtwDisplayProperty, typeof i156.AtwChooseProperty, typeof i157.AtwButtonShowModalDetail, typeof i158.AtwBarcode, typeof i159.AtwFlipBook, typeof i160.AtwTextAvailability, typeof i161.AtwButtonOpenLink, typeof i162.AtwPopupRepeat, typeof i163.AtwButtonConfirmOrder, typeof i164.AtwButtonPaymentOnline, typeof i165.AtwButtonOrder, typeof i166.AtwButtonBuyNow, typeof i167.AtwButtonViewDetailCategory, typeof i168.AtwReview, typeof i169.AtwImageDetailRepeat, typeof i170.AtwVideoProduct, typeof i171.AtwSearchSubcategory, typeof i172.AtwListOrder, typeof i173.AtwTabBar, typeof i174.AtwContentPreviewSlider, typeof i175.AtwTextConnectorRowRepeat, typeof i176.AtwBtnBooking, typeof i177.AtwBookingSelector, typeof i178.AtwPaymentMethod, typeof i179.AtwNotiOrderSuccess, typeof i180.AtwMediaList, typeof i181.AddLinkComponent, typeof i182.AtwDeleteCartItem, typeof i183.AtwOrdinalRecruitment, typeof i184.AtwDialogUseTemplate, typeof i185.AtwCreateHosting, typeof i186.SearchPhoneCodeComponent, typeof i187.AtwDeleteHosting, typeof i188.AtwDeployWebsite, typeof i189.AtwQrBankingModal], [typeof i190.CommonModule, typeof i191.FormsModule, typeof i192.NgZorroAntModule, typeof i191.ReactiveFormsModule, typeof i193.RouterModule, typeof i194.LottieModule, typeof i192.MaterialModule, typeof i195.CKEditorModule, typeof i196.PopupHoverComponentModule, typeof i197.NgbCarouselModule, typeof i198.ColorPickerModule, typeof i199.VhStringPercentPipeModule, typeof i200.ProfileUserModule, typeof i201.DynamicModule, typeof i202.TranslateModule, typeof i203.ProfileWebsiteModule, typeof i204.IonicModule, typeof i205.VhLanguagePipeModule, typeof i206.CustomizeNewFieldModule, typeof i207.BookingHotelManageModule, typeof i208.BookingFlowModule, typeof i192.NationalFlagModule, typeof i209.MatDialogModule], [typeof i1.AtwButtonCalculateCustom, typeof i2.AtwMapRepeat, typeof i3.AtwDateRepeat, typeof i4.AtwIndexNumber, typeof i5.AtwDescribeCategoryShort, typeof i6.AtwTableOfContent, typeof i7.AtwButtonResetFilter, typeof i8.AtwTotalQuantityFavoriteProducts, typeof i9.AtwButtonFavorite, typeof i10.AtwChooseSubproduct, typeof i11.AtwImageBeforeAfterSlider, typeof i12.AtwTextWarrantyPeriod, typeof i13.AtwCustomizeObject, typeof i14.AtwPopupInteractive, typeof i15.AtwActiveDate, typeof i16.AtwImageVideoDetail, typeof i17.AtwVideoUpload, typeof i18.AtwNewFieldSnimei, typeof i19.AtwButtonActive, typeof i20.AtwTextProductId, typeof i21.AtwPurchaseDate, typeof i22.AtwExpirationDate, typeof i23.AtwMaxActivationDays, typeof i24.AtwTextActive, typeof i25.AtwRemainingTime, typeof i26.AtwExportBill, typeof i27.AtwDateDelivery, typeof i28.AtwDescriptionRecruitment, typeof i29.AtwUseTemplate, typeof i30.AtwButtonSearchSnimei, typeof i31.AtwSearchSnimei, typeof i32.AtwTextImei, typeof i33.AtwButtonLoggedComponent, typeof i34.AtwTextRepeat, typeof i35.AtwImageRepeat, typeof i36.AtwButton, typeof i37.AtwImage, typeof i38.AtwCountDown, typeof i39.AtwIcon, typeof i40.AtwMap, typeof i41.AtwNumberCounting, typeof i42.AtwShape, typeof i43.AtwText, typeof i44.AtwVideo, typeof i45.AtwSearch, typeof i46.AtwPopup, typeof i47.AtwHover, typeof i48.AtwLine, typeof i49.AtwButtonBacktop, typeof i50.AtwTextCollapse, typeof i51.AtwButtonClosePopup, typeof i52.AtwInputEmail, typeof i53.AtwBtnLogin, typeof i54.AtwBtnLoginLogout2States, typeof i55.AtwInputPassword, typeof i56.AtwInputTelephone, typeof i57.AtwInputName, typeof i58.AtwInputAddress, typeof i59.AtwInputContent, typeof i60.AtwButtonRegister, typeof i61.AtwButtonForgotPassword, typeof i62.AtwButtonLogout, typeof i63.AtwUserName, typeof i64.AtwInputNewPassword, typeof i65.AtwInputConfirmPassword, typeof i66.AtwButtonShowForm, typeof i67.AtwButtonSave, typeof i68.AtwButtonConfirm, typeof i69.AtwImageCategory, typeof i70.AtwMenuCategory, typeof i71.AtwTextCategoryName, typeof i72.AtwDescribeCategory, typeof i73.AtwDatePostedNews, typeof i74.AtwDescriptionNews, typeof i75.AtwTextNewsTitle, typeof i76.AtwViewersNews, typeof i77.AtwContentNews, typeof i78.AtwButtonAddToCart, typeof i79.AtwButtonQuantity, typeof i80.AtwButtonViewDetail, typeof i81.AtwCountDownProduct, typeof i82.AtwDetailedDescription, typeof i83.AtwImageDetail, typeof i84.AtwImageProduct, typeof i85.AtwRate, typeof i86.AtwSortProduct, typeof i87.AtwTextBrand, typeof i88.AtwTextDiscount, typeof i89.AtwTextExpire, typeof i90.AtwTextName, typeof i91.AtwTextPrice, typeof i92.AtwTextPriceSale, typeof i93.AtwTextShortDescription, typeof i94.AtwUnits, typeof i95.AtwPopupDetail, typeof i96.AtwRangePrice, typeof i97.AtwMenuProduct, typeof i98.AtwCheckBoxChooseProduct, typeof i99.AtwTotalPriceCart, typeof i100.AtwTotalPriceProduct, typeof i101.AtwButtonQuantityCart, typeof i102.AtwPopupOpenForm, typeof i103.AtwTotalQuantityProducts, typeof i104.AtwButtonPayment, typeof i105.AtwSubTotalPriceCart, typeof i106.AtwFee, typeof i107.AtwDeleteCartProduct, typeof i108.AtwTextProductDiscountValue, typeof i109.AtwTextDiscountValue, typeof i110.AtwMenuHorizontal, typeof i111.AtwMenuVertical, typeof i112.AtwButtonShowModal, typeof i113.AtwMessengerUser, typeof i114.AtwZaloShare, typeof i115.AtwZaloFollow, typeof i116.AtwTotalPriceBill, typeof i117.AtwDateBill, typeof i118.AtwBillCode, typeof i119.AtwPaymentCart, typeof i120.AtwButtonPreview, typeof i121.AtwButtonPreviewImage, typeof i122.AtwDateUpdate, typeof i123.AtwAnimateButton, typeof i124.AtwQuantitySold, typeof i125.AtwWebsiteVersion, typeof i126.AtwNoteBill, typeof i127.AtwNoteProduct, typeof i128.AtwSearchWebsite, typeof i129.AtwSendCV, typeof i130.AtwSendContact, typeof i131.AtwUploadFile, typeof i132.AtwPositionRecruitment, typeof i133.AtwLevelRecruitment, typeof i134.AtwAddressRecruitment, typeof i135.AtwSalaryRecruitment, typeof i136.AtwSpecializedRecruitment, typeof i137.AtwDateExpire, typeof i138.AtwContentRecruitment, typeof i139.AtwTextParagraph, typeof i140.AtwPdfViewer, typeof i141.AtwBackPageButton, typeof i142.AtwSelectAddress, typeof i143.AtwSearchFoods, typeof i144.AtwButtonShowFormLogged, typeof i145.AtwFavorite, typeof i146.AtwDynamicFilter, typeof i147.AtwBreadcrumb, typeof i148.AtwTextCalculateCustom, typeof i149.AtwInputCalculateCustom, typeof i150.AtwSharingSocial, typeof i151.AtwDateCreateProduct, typeof i152.AtwMultiLanguage, typeof i153.AtwButtonRepeat, typeof i154.AtwVideoRepeat, typeof i155.AtwDisplayProperty, typeof i156.AtwChooseProperty, typeof i157.AtwButtonShowModalDetail, typeof i158.AtwBarcode, typeof i159.AtwFlipBook, typeof i160.AtwTextAvailability, typeof i161.AtwButtonOpenLink, typeof i162.AtwPopupRepeat, typeof i163.AtwButtonConfirmOrder, typeof i164.AtwButtonPaymentOnline, typeof i165.AtwButtonOrder, typeof i166.AtwButtonBuyNow, typeof i167.AtwButtonViewDetailCategory, typeof i168.AtwReview, typeof i169.AtwImageDetailRepeat, typeof i170.AtwVideoProduct, typeof i171.AtwSearchSubcategory, typeof i172.AtwListOrder, typeof i173.AtwTabBar, typeof i174.AtwContentPreviewSlider, typeof i175.AtwTextConnectorRowRepeat, typeof i176.AtwBtnBooking, typeof i177.AtwBookingSelector, typeof i178.AtwPaymentMethod, typeof i179.AtwNotiOrderSuccess, typeof i180.AtwMediaList]>;
|
|
215
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<VhautowebObjectsModule, [typeof i1.AtwButtonCalculateCustom, typeof i2.AtwMapRepeat, typeof i3.AtwDateRepeat, typeof i4.AtwIndexNumber, typeof i5.AtwDescribeCategoryShort, typeof i6.AtwTableOfContent, typeof i7.AtwButtonResetFilter, typeof i8.AtwTotalQuantityFavoriteProducts, typeof i9.AtwButtonFavorite, typeof i10.AtwChooseSubproduct, typeof i11.AtwImageBeforeAfterSlider, typeof i12.AtwTextWarrantyPeriod, typeof i13.AtwCustomizeObject, typeof i14.AtwPopupInteractive, typeof i15.AtwActiveDate, typeof i16.AtwImageVideoDetail, typeof i17.AtwVideoUpload, typeof i18.AtwNewFieldSnimei, typeof i19.AtwButtonActive, typeof i20.AtwTextProductId, typeof i21.AtwPurchaseDate, typeof i22.AtwExpirationDate, typeof i23.AtwMaxActivationDays, typeof i24.AtwTextActive, typeof i25.AtwRemainingTime, typeof i26.AtwExportBill, typeof i27.AtwDateDelivery, typeof i28.AtwDescriptionRecruitment, typeof i29.AtwUseTemplate, typeof i30.AtwButtonSearchSnimei, typeof i31.AtwSearchSnimei, typeof i32.AtwTextImei, typeof i33.AtwButtonLoggedComponent, typeof i34.AtwTextRepeat, typeof i35.AtwImageRepeat, typeof i36.AtwButton, typeof i37.AtwImage, typeof i38.AtwCountDown, typeof i39.AtwIcon, typeof i40.AtwMap, typeof i41.AtwNumberCounting, typeof i42.AtwShape, typeof i43.AtwText, typeof i44.AtwVideo, typeof i45.AtwSearch, typeof i46.AtwPopup, typeof i47.AtwHover, typeof i48.AtwLine, typeof i49.AtwButtonBacktop, typeof i50.AtwTextCollapse, typeof i51.AtwButtonClosePopup, typeof i52.AtwInputEmail, typeof i53.AtwBtnLogin, typeof i54.AtwBtnLoginLogout2States, typeof i55.AtwInputPassword, typeof i56.AtwInputTelephone, typeof i57.AtwInputName, typeof i58.AtwInputAddress, typeof i59.AtwInputContent, typeof i60.AtwButtonRegister, typeof i61.AtwButtonForgotPassword, typeof i62.AtwButtonLogout, typeof i63.AtwUserName, typeof i64.AtwInputNewPassword, typeof i65.AtwInputConfirmPassword, typeof i66.AtwButtonShowForm, typeof i67.AtwButtonSave, typeof i68.AtwButtonConfirm, typeof i69.AtwImageCategory, typeof i70.AtwMenuCategory, typeof i71.AtwTextCategoryName, typeof i72.AtwDescribeCategory, typeof i73.AtwDatePostedNews, typeof i74.AtwDescriptionNews, typeof i75.AtwTextNewsTitle, typeof i76.AtwViewersNews, typeof i77.AtwContentNews, typeof i78.AtwButtonAddToCart, typeof i79.AtwButtonQuantity, typeof i80.AtwButtonViewDetail, typeof i81.AtwCountDownProduct, typeof i82.AtwDetailedDescription, typeof i83.AtwImageDetail, typeof i84.AtwImageProduct, typeof i85.AtwRate, typeof i86.AtwSortProduct, typeof i87.AtwTextBrand, typeof i88.AtwTextDiscount, typeof i89.AtwTextExpire, typeof i90.AtwTextName, typeof i91.AtwTextPrice, typeof i92.AtwTextPriceSale, typeof i93.AtwTextShortDescription, typeof i94.AtwUnits, typeof i95.AtwPopupDetail, typeof i96.AtwRangePrice, typeof i97.AtwMenuProduct, typeof i98.AtwCheckBoxChooseProduct, typeof i99.AtwTotalPriceCart, typeof i100.AtwTotalPriceProduct, typeof i101.AtwButtonQuantityCart, typeof i102.AtwPopupOpenForm, typeof i103.AtwTotalQuantityProducts, typeof i104.AtwButtonPayment, typeof i105.AtwSubTotalPriceCart, typeof i106.AtwFee, typeof i107.AtwDeleteCartProduct, typeof i108.AtwTextProductDiscountValue, typeof i109.AtwTextDiscountValue, typeof i110.AtwMenuHorizontal, typeof i111.AtwMenuVertical, typeof i112.AtwButtonShowModal, typeof i113.AtwMessengerUser, typeof i114.AtwZaloShare, typeof i115.AtwZaloFollow, typeof i116.AtwTotalPriceBill, typeof i117.AtwDateBill, typeof i118.AtwBillCode, typeof i119.AtwPaymentCart, typeof i120.AtwButtonPreview, typeof i121.AtwButtonPreviewImage, typeof i122.AtwDateUpdate, typeof i123.AtwAnimateButton, typeof i124.AtwQuantitySold, typeof i125.AtwWebsiteVersion, typeof i126.AtwNoteBill, typeof i127.AtwNoteProduct, typeof i128.AtwSearchWebsite, typeof i129.AtwSendCV, typeof i130.AtwSendContact, typeof i131.AtwUploadFile, typeof i132.AtwPositionRecruitment, typeof i133.AtwLevelRecruitment, typeof i134.AtwAddressRecruitment, typeof i135.AtwSalaryRecruitment, typeof i136.AtwSpecializedRecruitment, typeof i137.AtwDateExpire, typeof i138.AtwContentRecruitment, typeof i139.AtwTextParagraph, typeof i140.AtwPdfViewer, typeof i141.AtwBackPageButton, typeof i142.AtwSelectAddress, typeof i143.AtwSearchFoods, typeof i144.AtwButtonShowFormLogged, typeof i145.AtwFavorite, typeof i146.AtwDynamicFilter, typeof i147.AtwBreadcrumb, typeof i148.AtwTextCalculateCustom, typeof i149.AtwInputCalculateCustom, typeof i150.AtwSharingSocial, typeof i151.AtwDateCreateProduct, typeof i152.AtwMultiLanguage, typeof i153.AtwButtonRepeat, typeof i154.AtwVideoRepeat, typeof i155.AtwDisplayProperty, typeof i156.AtwChooseProperty, typeof i157.AtwButtonShowModalDetail, typeof i158.AtwBarcode, typeof i159.AtwFlipBook, typeof i160.AtwTextAvailability, typeof i161.AtwButtonOpenLink, typeof i162.AtwPopupRepeat, typeof i163.AtwButtonConfirmOrder, typeof i164.AtwButtonPaymentOnline, typeof i165.AtwButtonOrder, typeof i166.AtwButtonBuyNow, typeof i167.AtwButtonViewDetailCategory, typeof i168.AtwReview, typeof i169.AtwImageDetailRepeat, typeof i170.AtwVideoProduct, typeof i171.AtwSearchSubcategory, typeof i172.AtwListOrder, typeof i173.AtwTabBar, typeof i174.AtwContentPreviewSlider, typeof i175.AtwTextConnectorRowRepeat, typeof i176.AtwBtnBooking, typeof i177.AtwBookingSelector, typeof i178.AtwPaymentMethod, typeof i179.AtwNotiOrderSuccess, typeof i180.AtwMediaList, typeof i181.AtwChatboxAI, typeof i182.AddLinkComponent, typeof i183.AtwDeleteCartItem, typeof i184.AtwOrdinalRecruitment, typeof i185.AtwDialogUseTemplate, typeof i186.AtwCreateHosting, typeof i187.SearchPhoneCodeComponent, typeof i188.AtwDeleteHosting, typeof i189.AtwDeployWebsite, typeof i190.AtwQrBankingModal], [typeof i191.CommonModule, typeof i192.FormsModule, typeof i193.NgZorroAntModule, typeof i192.ReactiveFormsModule, typeof i194.RouterModule, typeof i195.LottieModule, typeof i193.MaterialModule, typeof i196.CKEditorModule, typeof i197.PopupHoverComponentModule, typeof i198.NgbCarouselModule, typeof i199.ColorPickerModule, typeof i200.VhStringPercentPipeModule, typeof i201.ProfileUserModule, typeof i202.DynamicModule, typeof i203.TranslateModule, typeof i204.ProfileWebsiteModule, typeof i205.IonicModule, typeof i206.VhLanguagePipeModule, typeof i207.CustomizeNewFieldModule, typeof i208.BookingHotelManageModule, typeof i209.BookingFlowModule, typeof i193.NationalFlagModule, typeof i210.MatDialogModule], [typeof i1.AtwButtonCalculateCustom, typeof i2.AtwMapRepeat, typeof i3.AtwDateRepeat, typeof i4.AtwIndexNumber, typeof i5.AtwDescribeCategoryShort, typeof i6.AtwTableOfContent, typeof i7.AtwButtonResetFilter, typeof i8.AtwTotalQuantityFavoriteProducts, typeof i9.AtwButtonFavorite, typeof i10.AtwChooseSubproduct, typeof i11.AtwImageBeforeAfterSlider, typeof i12.AtwTextWarrantyPeriod, typeof i13.AtwCustomizeObject, typeof i14.AtwPopupInteractive, typeof i15.AtwActiveDate, typeof i16.AtwImageVideoDetail, typeof i17.AtwVideoUpload, typeof i18.AtwNewFieldSnimei, typeof i19.AtwButtonActive, typeof i20.AtwTextProductId, typeof i21.AtwPurchaseDate, typeof i22.AtwExpirationDate, typeof i23.AtwMaxActivationDays, typeof i24.AtwTextActive, typeof i25.AtwRemainingTime, typeof i26.AtwExportBill, typeof i27.AtwDateDelivery, typeof i28.AtwDescriptionRecruitment, typeof i29.AtwUseTemplate, typeof i30.AtwButtonSearchSnimei, typeof i31.AtwSearchSnimei, typeof i32.AtwTextImei, typeof i33.AtwButtonLoggedComponent, typeof i34.AtwTextRepeat, typeof i35.AtwImageRepeat, typeof i36.AtwButton, typeof i37.AtwImage, typeof i38.AtwCountDown, typeof i39.AtwIcon, typeof i40.AtwMap, typeof i41.AtwNumberCounting, typeof i42.AtwShape, typeof i43.AtwText, typeof i44.AtwVideo, typeof i45.AtwSearch, typeof i46.AtwPopup, typeof i47.AtwHover, typeof i48.AtwLine, typeof i49.AtwButtonBacktop, typeof i50.AtwTextCollapse, typeof i51.AtwButtonClosePopup, typeof i52.AtwInputEmail, typeof i53.AtwBtnLogin, typeof i54.AtwBtnLoginLogout2States, typeof i55.AtwInputPassword, typeof i56.AtwInputTelephone, typeof i57.AtwInputName, typeof i58.AtwInputAddress, typeof i59.AtwInputContent, typeof i60.AtwButtonRegister, typeof i61.AtwButtonForgotPassword, typeof i62.AtwButtonLogout, typeof i63.AtwUserName, typeof i64.AtwInputNewPassword, typeof i65.AtwInputConfirmPassword, typeof i66.AtwButtonShowForm, typeof i67.AtwButtonSave, typeof i68.AtwButtonConfirm, typeof i69.AtwImageCategory, typeof i70.AtwMenuCategory, typeof i71.AtwTextCategoryName, typeof i72.AtwDescribeCategory, typeof i73.AtwDatePostedNews, typeof i74.AtwDescriptionNews, typeof i75.AtwTextNewsTitle, typeof i76.AtwViewersNews, typeof i77.AtwContentNews, typeof i78.AtwButtonAddToCart, typeof i79.AtwButtonQuantity, typeof i80.AtwButtonViewDetail, typeof i81.AtwCountDownProduct, typeof i82.AtwDetailedDescription, typeof i83.AtwImageDetail, typeof i84.AtwImageProduct, typeof i85.AtwRate, typeof i86.AtwSortProduct, typeof i87.AtwTextBrand, typeof i88.AtwTextDiscount, typeof i89.AtwTextExpire, typeof i90.AtwTextName, typeof i91.AtwTextPrice, typeof i92.AtwTextPriceSale, typeof i93.AtwTextShortDescription, typeof i94.AtwUnits, typeof i95.AtwPopupDetail, typeof i96.AtwRangePrice, typeof i97.AtwMenuProduct, typeof i98.AtwCheckBoxChooseProduct, typeof i99.AtwTotalPriceCart, typeof i100.AtwTotalPriceProduct, typeof i101.AtwButtonQuantityCart, typeof i102.AtwPopupOpenForm, typeof i103.AtwTotalQuantityProducts, typeof i104.AtwButtonPayment, typeof i105.AtwSubTotalPriceCart, typeof i106.AtwFee, typeof i107.AtwDeleteCartProduct, typeof i108.AtwTextProductDiscountValue, typeof i109.AtwTextDiscountValue, typeof i110.AtwMenuHorizontal, typeof i111.AtwMenuVertical, typeof i112.AtwButtonShowModal, typeof i113.AtwMessengerUser, typeof i114.AtwZaloShare, typeof i115.AtwZaloFollow, typeof i116.AtwTotalPriceBill, typeof i117.AtwDateBill, typeof i118.AtwBillCode, typeof i119.AtwPaymentCart, typeof i120.AtwButtonPreview, typeof i121.AtwButtonPreviewImage, typeof i122.AtwDateUpdate, typeof i123.AtwAnimateButton, typeof i124.AtwQuantitySold, typeof i125.AtwWebsiteVersion, typeof i126.AtwNoteBill, typeof i127.AtwNoteProduct, typeof i128.AtwSearchWebsite, typeof i129.AtwSendCV, typeof i130.AtwSendContact, typeof i131.AtwUploadFile, typeof i132.AtwPositionRecruitment, typeof i133.AtwLevelRecruitment, typeof i134.AtwAddressRecruitment, typeof i135.AtwSalaryRecruitment, typeof i136.AtwSpecializedRecruitment, typeof i137.AtwDateExpire, typeof i138.AtwContentRecruitment, typeof i139.AtwTextParagraph, typeof i140.AtwPdfViewer, typeof i141.AtwBackPageButton, typeof i142.AtwSelectAddress, typeof i143.AtwSearchFoods, typeof i144.AtwButtonShowFormLogged, typeof i145.AtwFavorite, typeof i146.AtwDynamicFilter, typeof i147.AtwBreadcrumb, typeof i148.AtwTextCalculateCustom, typeof i149.AtwInputCalculateCustom, typeof i150.AtwSharingSocial, typeof i151.AtwDateCreateProduct, typeof i152.AtwMultiLanguage, typeof i153.AtwButtonRepeat, typeof i154.AtwVideoRepeat, typeof i155.AtwDisplayProperty, typeof i156.AtwChooseProperty, typeof i157.AtwButtonShowModalDetail, typeof i158.AtwBarcode, typeof i159.AtwFlipBook, typeof i160.AtwTextAvailability, typeof i161.AtwButtonOpenLink, typeof i162.AtwPopupRepeat, typeof i163.AtwButtonConfirmOrder, typeof i164.AtwButtonPaymentOnline, typeof i165.AtwButtonOrder, typeof i166.AtwButtonBuyNow, typeof i167.AtwButtonViewDetailCategory, typeof i168.AtwReview, typeof i169.AtwImageDetailRepeat, typeof i170.AtwVideoProduct, typeof i171.AtwSearchSubcategory, typeof i172.AtwListOrder, typeof i173.AtwTabBar, typeof i174.AtwContentPreviewSlider, typeof i175.AtwTextConnectorRowRepeat, typeof i176.AtwBtnBooking, typeof i177.AtwBookingSelector, typeof i178.AtwPaymentMethod, typeof i179.AtwNotiOrderSuccess, typeof i180.AtwMediaList, typeof i181.AtwChatboxAI]>;
|
|
215
216
|
static ɵinj: i0.ɵɵInjectorDeclaration<VhautowebObjectsModule>;
|
|
216
217
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -234,6 +234,7 @@ export * from './lib/objects/product/text-availability/user/text-availability.co
|
|
|
234
234
|
export * from './lib/objects/form/button-calculate-custom/user/button-calculate-custom.component';
|
|
235
235
|
export * from './lib/objects/review/user/review/review.component';
|
|
236
236
|
export * from './lib/objects/basic/text-connector-row-repeat/user/text-connector-row-repeat/text-connector-row-repeat.component';
|
|
237
|
+
export * from './lib/objects/basic/chatbox-ai/user/chatbox-ai/chatbox-ai.component';
|
|
237
238
|
export * from './lib/objects/hotel/booking-flow/user/booking-flow.component';
|
|
238
239
|
export * from './lib/objects/hotel/booking-hotel-manage/user/booking-hotel-manage.component';
|
|
239
240
|
export * from './lib/objects/hotel/booking-selector/user/booking-selector.component';
|