@enyxs/wikex-components 0.11.15 → 0.11.16

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.
@@ -1,4 +1,14 @@
1
+ type RegistrationKind = 'consultation' | 'partner';
2
+ declare const registrationRegions: Record<string, string>;
3
+ declare const partnerTypes: Record<string, string>;
4
+ declare const partnerExperiences: Record<string, string>;
1
5
  type ConsultationSubmission = {
6
+ kind: RegistrationKind;
7
+ region: string;
8
+ partner: string;
9
+ experience: string;
10
+ sources: string[];
11
+ otherSource: string;
2
12
  submissionId: string;
3
13
  name: string;
4
14
  phone: string;
@@ -34,4 +44,4 @@ type ConsultationList = {
34
44
  pageSize: number;
35
45
  };
36
46
 
37
- export { type Consultation, type ConsultationList, type ConsultationStatus, type ConsultationSubmission, consultationCapitals, consultationCities, consultationStatuses };
47
+ export { type Consultation, type ConsultationList, type ConsultationStatus, type ConsultationSubmission, type RegistrationKind, consultationCapitals, consultationCities, consultationStatuses, partnerExperiences, partnerTypes, registrationRegions };
@@ -1,4 +1,14 @@
1
+ type RegistrationKind = 'consultation' | 'partner';
2
+ declare const registrationRegions: Record<string, string>;
3
+ declare const partnerTypes: Record<string, string>;
4
+ declare const partnerExperiences: Record<string, string>;
1
5
  type ConsultationSubmission = {
6
+ kind: RegistrationKind;
7
+ region: string;
8
+ partner: string;
9
+ experience: string;
10
+ sources: string[];
11
+ otherSource: string;
2
12
  submissionId: string;
3
13
  name: string;
4
14
  phone: string;
@@ -34,4 +44,4 @@ type ConsultationList = {
34
44
  pageSize: number;
35
45
  };
36
46
 
37
- export { type Consultation, type ConsultationList, type ConsultationStatus, type ConsultationSubmission, consultationCapitals, consultationCities, consultationStatuses };
47
+ export { type Consultation, type ConsultationList, type ConsultationStatus, type ConsultationSubmission, type RegistrationKind, consultationCapitals, consultationCities, consultationStatuses, partnerExperiences, partnerTypes, registrationRegions };
@@ -22,9 +22,22 @@ var consultation_model_exports = {};
22
22
  __export(consultation_model_exports, {
23
23
  consultationCapitals: () => consultationCapitals,
24
24
  consultationCities: () => consultationCities,
25
- consultationStatuses: () => consultationStatuses
25
+ consultationStatuses: () => consultationStatuses,
26
+ partnerExperiences: () => partnerExperiences,
27
+ partnerTypes: () => partnerTypes,
28
+ registrationRegions: () => registrationRegions
26
29
  });
27
30
  module.exports = __toCommonJS(consultation_model_exports);
31
+ var registrationRegions = {
32
+ north: "Khu v\u1EF1c mi\u1EC1n B\u1EAFc",
33
+ "north-central": "Khu v\u1EF1c B\u1EAFc Trung B\u1ED9",
34
+ central: "Khu v\u1EF1c mi\u1EC1n Trung",
35
+ highlands: "Khu v\u1EF1c T\xE2y Nguy\xEAn",
36
+ south: "Khu v\u1EF1c mi\u1EC1n Nam",
37
+ mekong: "Khu v\u1EF1c mi\u1EC1n T\xE2y"
38
+ };
39
+ var partnerTypes = { individual: "C\xE1 nh\xE2n", broker: "M\xF4i gi\u1EDBi t\xE0i ch\xEDnh", professional: "Chuy\xEAn vi\xEAn m\xF4i gi\u1EDBi", other: "Kh\xE1c" };
40
+ var partnerExperiences = { none: "Ch\u01B0a c\xF3 kinh nghi\u1EC7m", under1: "D\u01B0\u1EDBi 1 n\u0103m", oneTo3: "1\u20133 n\u0103m", over3: "Tr\xEAn 3 n\u0103m", other: "Kh\xE1c" };
28
41
  var consultationStatuses = {
29
42
  new: "M\u1EDBi",
30
43
  contacted: "\u0110\xE3 li\xEAn h\u1EC7",
@@ -37,6 +50,9 @@ var consultationCapitals = { "under-10m": "D\u01B0\u1EDBi 10 tri\u1EC7u", "10m-3
37
50
  0 && (module.exports = {
38
51
  consultationCapitals,
39
52
  consultationCities,
40
- consultationStatuses
53
+ consultationStatuses,
54
+ partnerExperiences,
55
+ partnerTypes,
56
+ registrationRegions
41
57
  });
42
58
  //# sourceMappingURL=consultation-model.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/consultation-model.ts"],"sourcesContent":["export type ConsultationSubmission = {\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAcO,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;","names":[]}
1
+ {"version":3,"sources":["../src/consultation-model.ts"],"sourcesContent":["export type RegistrationKind = 'consultation' | 'partner';\nexport const registrationRegions: Record<string, string> = {\n north: 'Khu vực miền Bắc', 'north-central': 'Khu vực Bắc Trung Bộ', central: 'Khu vực miền Trung',\n highlands: 'Khu vực Tây Nguyên', south: 'Khu vực miền Nam', mekong: 'Khu vực miền Tây',\n};\nexport const partnerTypes: Record<string, string> = { individual: 'Cá nhân', broker: 'Môi giới tài chính', professional: 'Chuyên viên môi giới', other: 'Khác' };\nexport const partnerExperiences: Record<string, string> = { none: 'Chưa có kinh nghiệm', under1: 'Dưới 1 năm', oneTo3: '1–3 năm', over3: 'Trên 3 năm', other: 'Khác' };\nexport type ConsultationSubmission = {\n kind: RegistrationKind;\n region: string;\n partner: string;\n experience: string;\n sources: string[];\n otherSource: string;\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,sBAA8C;AAAA,EACzD,OAAO;AAAA,EAAoB,iBAAiB;AAAA,EAAwB,SAAS;AAAA,EAC7E,WAAW;AAAA,EAAsB,OAAO;AAAA,EAAoB,QAAQ;AACtE;AACO,IAAM,eAAuC,EAAE,YAAY,iBAAW,QAAQ,oCAAsB,cAAc,sCAAwB,OAAO,UAAO;AACxJ,IAAM,qBAA6C,EAAE,MAAM,oCAAuB,QAAQ,6BAAc,QAAQ,qBAAW,OAAO,sBAAc,OAAO,UAAO;AAqB9J,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;","names":[]}
@@ -1,4 +1,14 @@
1
1
  // src/consultation-model.ts
2
+ var registrationRegions = {
3
+ north: "Khu v\u1EF1c mi\u1EC1n B\u1EAFc",
4
+ "north-central": "Khu v\u1EF1c B\u1EAFc Trung B\u1ED9",
5
+ central: "Khu v\u1EF1c mi\u1EC1n Trung",
6
+ highlands: "Khu v\u1EF1c T\xE2y Nguy\xEAn",
7
+ south: "Khu v\u1EF1c mi\u1EC1n Nam",
8
+ mekong: "Khu v\u1EF1c mi\u1EC1n T\xE2y"
9
+ };
10
+ var partnerTypes = { individual: "C\xE1 nh\xE2n", broker: "M\xF4i gi\u1EDBi t\xE0i ch\xEDnh", professional: "Chuy\xEAn vi\xEAn m\xF4i gi\u1EDBi", other: "Kh\xE1c" };
11
+ var partnerExperiences = { none: "Ch\u01B0a c\xF3 kinh nghi\u1EC7m", under1: "D\u01B0\u1EDBi 1 n\u0103m", oneTo3: "1\u20133 n\u0103m", over3: "Tr\xEAn 3 n\u0103m", other: "Kh\xE1c" };
2
12
  var consultationStatuses = {
3
13
  new: "M\u1EDBi",
4
14
  contacted: "\u0110\xE3 li\xEAn h\u1EC7",
@@ -10,6 +20,9 @@ var consultationCapitals = { "under-10m": "D\u01B0\u1EDBi 10 tri\u1EC7u", "10m-3
10
20
  export {
11
21
  consultationCapitals,
12
22
  consultationCities,
13
- consultationStatuses
23
+ consultationStatuses,
24
+ partnerExperiences,
25
+ partnerTypes,
26
+ registrationRegions
14
27
  };
15
28
  //# sourceMappingURL=consultation-model.mjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/consultation-model.ts"],"sourcesContent":["export type ConsultationSubmission = {\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";AAcO,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;","names":[]}
1
+ {"version":3,"sources":["../src/consultation-model.ts"],"sourcesContent":["export type RegistrationKind = 'consultation' | 'partner';\nexport const registrationRegions: Record<string, string> = {\n north: 'Khu vực miền Bắc', 'north-central': 'Khu vực Bắc Trung Bộ', central: 'Khu vực miền Trung',\n highlands: 'Khu vực Tây Nguyên', south: 'Khu vực miền Nam', mekong: 'Khu vực miền Tây',\n};\nexport const partnerTypes: Record<string, string> = { individual: 'Cá nhân', broker: 'Môi giới tài chính', professional: 'Chuyên viên môi giới', other: 'Khác' };\nexport const partnerExperiences: Record<string, string> = { none: 'Chưa có kinh nghiệm', under1: 'Dưới 1 năm', oneTo3: '1–3 năm', over3: 'Trên 3 năm', other: 'Khác' };\nexport type ConsultationSubmission = {\n kind: RegistrationKind;\n region: string;\n partner: string;\n experience: string;\n sources: string[];\n otherSource: string;\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";AACO,IAAM,sBAA8C;AAAA,EACzD,OAAO;AAAA,EAAoB,iBAAiB;AAAA,EAAwB,SAAS;AAAA,EAC7E,WAAW;AAAA,EAAsB,OAAO;AAAA,EAAoB,QAAQ;AACtE;AACO,IAAM,eAAuC,EAAE,YAAY,iBAAW,QAAQ,oCAAsB,cAAc,sCAAwB,OAAO,UAAO;AACxJ,IAAM,qBAA6C,EAAE,MAAM,oCAAuB,QAAQ,6BAAc,QAAQ,qBAAW,OAAO,sBAAc,OAAO,UAAO;AAqB9J,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;","names":[]}
@@ -1,8 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ConsultationList, ConsultationStatus, Consultation } from './consultation-model.mjs';
3
- export { ConsultationSubmission } from './consultation-model.mjs';
3
+ export { ConsultationSubmission, RegistrationKind } from './consultation-model.mjs';
4
4
 
5
5
  type ConsultationManagerProps = {
6
+ kind?: 'consultation' | 'partner';
6
7
  data: ConsultationList;
7
8
  search: string;
8
9
  status: ConsultationStatus | '';
@@ -22,6 +23,6 @@ type ConsultationManagerProps = {
22
23
  onDelete: (item: Consultation) => Promise<void>;
23
24
  onDismissNotice: () => void;
24
25
  };
25
- declare function ConsultationManager({ data, search, status, loading, busy, canWrite, notice, onSearch, onStatus, onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps): react.JSX.Element;
26
+ declare function ConsultationManager({ kind, data, search, status, loading, busy, canWrite, notice, onSearch, onStatus, onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps): react.JSX.Element;
26
27
 
27
28
  export { Consultation, ConsultationList, ConsultationManager, type ConsultationManagerProps, ConsultationStatus };
@@ -1,8 +1,9 @@
1
1
  import * as react from 'react';
2
2
  import { ConsultationList, ConsultationStatus, Consultation } from './consultation-model.js';
3
- export { ConsultationSubmission } from './consultation-model.js';
3
+ export { ConsultationSubmission, RegistrationKind } from './consultation-model.js';
4
4
 
5
5
  type ConsultationManagerProps = {
6
+ kind?: 'consultation' | 'partner';
6
7
  data: ConsultationList;
7
8
  search: string;
8
9
  status: ConsultationStatus | '';
@@ -22,6 +23,6 @@ type ConsultationManagerProps = {
22
23
  onDelete: (item: Consultation) => Promise<void>;
23
24
  onDismissNotice: () => void;
24
25
  };
25
- declare function ConsultationManager({ data, search, status, loading, busy, canWrite, notice, onSearch, onStatus, onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps): react.JSX.Element;
26
+ declare function ConsultationManager({ kind, data, search, status, loading, busy, canWrite, notice, onSearch, onStatus, onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps): react.JSX.Element;
26
27
 
27
28
  export { Consultation, ConsultationList, ConsultationManager, type ConsultationManagerProps, ConsultationStatus };
@@ -30,6 +30,16 @@ var import_react = require("react");
30
30
  var import_material = require("@mui/material");
31
31
 
32
32
  // src/consultation-model.ts
33
+ var registrationRegions = {
34
+ north: "Khu v\u1EF1c mi\u1EC1n B\u1EAFc",
35
+ "north-central": "Khu v\u1EF1c B\u1EAFc Trung B\u1ED9",
36
+ central: "Khu v\u1EF1c mi\u1EC1n Trung",
37
+ highlands: "Khu v\u1EF1c T\xE2y Nguy\xEAn",
38
+ south: "Khu v\u1EF1c mi\u1EC1n Nam",
39
+ mekong: "Khu v\u1EF1c mi\u1EC1n T\xE2y"
40
+ };
41
+ var partnerTypes = { individual: "C\xE1 nh\xE2n", broker: "M\xF4i gi\u1EDBi t\xE0i ch\xEDnh", professional: "Chuy\xEAn vi\xEAn m\xF4i gi\u1EDBi", other: "Kh\xE1c" };
42
+ var partnerExperiences = { none: "Ch\u01B0a c\xF3 kinh nghi\u1EC7m", under1: "D\u01B0\u1EDBi 1 n\u0103m", oneTo3: "1\u20133 n\u0103m", over3: "Tr\xEAn 3 n\u0103m", other: "Kh\xE1c" };
33
43
  var consultationStatuses = {
34
44
  new: "M\u1EDBi",
35
45
  contacted: "\u0110\xE3 li\xEAn h\u1EC7",
@@ -45,6 +55,7 @@ var date = (value) => new Intl.DateTimeFormat("vi-VN", { timeZone: "Asia/Ho_Chi_
45
55
  var city = (value) => consultationCities[value] || value || "Ch\u01B0a cung c\u1EA5p";
46
56
  var capital = (value) => consultationCapitals[value] || value || "Ch\u01B0a cung c\u1EA5p";
47
57
  function ConsultationManager({
58
+ kind = "consultation",
48
59
  data,
49
60
  search,
50
61
  status,
@@ -61,6 +72,8 @@ function ConsultationManager({
61
72
  onDelete,
62
73
  onDismissNotice
63
74
  }) {
75
+ const isPartner = kind === "partner";
76
+ const title = isPartner ? "\u0110\u0103ng k\xFD \u0111\u1ED1i t\xE1c \u2014 Wikex VN" : "\u0110\u0103ng k\xFD t\u01B0 v\u1EA5n \u2014 Trang ch\u1EE7";
64
77
  const [editing, setEditing] = (0, import_react.useState)(null);
65
78
  const [deleting, setDeleting] = (0, import_react.useState)(null);
66
79
  const [draftStatus, setDraftStatus] = (0, import_react.useState)("new");
@@ -68,12 +81,12 @@ function ConsultationManager({
68
81
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 3, sx: { minWidth: 0 }, children: [
69
82
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: { xs: "column", sm: "row" }, gap: 2, justifyContent: "space-between", alignItems: { sm: "center" }, children: [
70
83
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 1, children: [
71
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "h4", children: "\u0110\u0103ng k\xFD t\u01B0 v\u1EA5n" }),
84
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "h4", children: title }),
72
85
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", color: "text.secondary", children: "Th\xF4ng tin t\u1EEB form \u0111\u0103ng k\xFD tr\xEAn website. Theo d\xF5i li\xEAn h\u1EC7 v\xE0 ghi ch\xFA x\u1EED l\xFD." })
73
86
  ] }),
74
87
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { variant: "outlined", disabled: loading || busy, onClick: onReload, children: "T\u1EA3i l\u1EA1i danh s\xE1ch" })
75
88
  ] }),
76
- !canWrite && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: "info", children: "B\u1EA1n c\xF3 quy\u1EC1n xem \u0111\u0103ng k\xFD. C\u1EA7n quy\u1EC1n ch\u1EC9nh s\u1EEDa \u0111\u0103ng k\xFD t\u01B0 v\u1EA5n \u0111\u1EC3 c\u1EADp nh\u1EADt ho\u1EB7c x\xF3a." }),
89
+ !canWrite && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: "info", children: "B\u1EA1n c\xF3 quy\u1EC1n xem \u0111\u0103ng k\xFD. C\u1EA7n quy\u1EC1n ch\u1EC9nh s\u1EEDa \u0111\u0103ng k\xFD \u0111\u1EC3 c\u1EADp nh\u1EADt ho\u1EB7c x\xF3a." }),
77
90
  notice && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: notice.severity, onClose: onDismissNotice, children: notice.message }),
78
91
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Card, { sx: { p: 3 }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: { xs: "column", sm: "row" }, spacing: 2, children: [
79
92
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TextField, { size: "small", fullWidth: true, label: "T\xECm theo t\xEAn, \u0111i\u1EC7n tho\u1EA1i ho\u1EB7c email", value: search, disabled: busy, onChange: (event) => onSearch(event.target.value) }),
@@ -83,8 +96,8 @@ function ConsultationManager({
83
96
  ] })
84
97
  ] }) }),
85
98
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { "aria-busy": loading, sx: { opacity: loading ? 0.65 : 1 }, children: [
86
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Box, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Table, { "aria-label": "Danh s\xE1ch \u0111\u0103ng k\xFD t\u01B0 v\u1EA5n", sx: { minWidth: 1050 }, children: [
87
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableRow, { children: ["Kh\xE1ch h\xE0ng", "\u0110i\u1EC7n tho\u1EA1i / Email", "Khu v\u1EF1c", "Th\u1ECB tr\u01B0\u1EDDng / V\u1ED1n", "Tr\u1EA1ng th\xE1i", "Ng\xE0y g\u1EEDi", "Thao t\xE1c"].map((title) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: title }, title)) }) }),
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Box, { sx: { overflowX: "auto" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Table, { "aria-label": title, sx: { minWidth: 1050 }, children: [
100
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableRow, { children: ["Kh\xE1ch h\xE0ng", "\u0110i\u1EC7n tho\u1EA1i / Email", "Khu v\u1EF1c", isPartner ? "\u0110\u1ED1i t\xE1c / Kinh nghi\u1EC7m" : "Th\u1ECB tr\u01B0\u1EDDng / V\u1ED1n", "Tr\u1EA1ng th\xE1i", "Ng\xE0y g\u1EEDi", "Thao t\xE1c"].map((title2) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: title2 }, title2)) }) }),
88
101
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableBody, { children: [
89
102
  data.items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableRow, { children: [
90
103
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableCell, { sx: { maxWidth: 220, overflowWrap: "anywhere" }, children: [
@@ -95,15 +108,18 @@ function ConsultationManager({
95
108
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", children: item.phone }),
96
109
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", color: "text.secondary", children: item.email })
97
110
  ] }),
98
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: city(item.city) }),
99
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.TableCell, { sx: { maxWidth: 220, overflowWrap: "anywhere" }, children: [
111
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: isPartner ? registrationRegions[item.region] || "Ch\u01B0a cung c\u1EA5p" : city(item.city) }),
112
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { sx: { maxWidth: 220, overflowWrap: "anywhere" }, children: isPartner ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", children: partnerTypes[item.partner] || "Ch\u01B0a cung c\u1EA5p" }),
114
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", children: partnerExperiences[item.experience] || "Ch\u01B0a cung c\u1EA5p" })
115
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
100
116
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", children: item.markets.join(", ") || "Ch\u01B0a cung c\u1EA5p" }),
101
117
  item.otherMarket && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { variant: "body2", children: [
102
118
  "Kh\xE1c: ",
103
119
  item.otherMarket
104
120
  ] }),
105
121
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", color: "text.secondary", children: capital(item.capital) })
106
- ] }),
122
+ ] }) }),
107
123
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Chip, { size: "small", label: consultationStatuses[item.status], color: item.status === "new" ? "warning" : item.status === "completed" ? "success" : "default" }) }),
108
124
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { sx: { whiteSpace: "nowrap" }, children: date(item.createdAt) }),
109
125
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: "row", spacing: 1, children: [
@@ -135,70 +151,123 @@ function ConsultationManager({
135
151
  }
136
152
  )
137
153
  ] }),
138
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Dialog, { open: Boolean(editing), onClose: () => !busy && setEditing(null), fullWidth: true, maxWidth: "sm", children: [
139
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogTitle, { children: "Chi ti\u1EBFt \u0111\u0103ng k\xFD t\u01B0 v\u1EA5n" }),
140
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 2, sx: { pt: 1 }, children: [
141
- notice?.severity === "error" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: "error", children: notice.message }),
142
- editing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 0.75, sx: { overflowWrap: "anywhere" }, children: [
143
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
144
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "H\u1ECD v\xE0 t\xEAn:" }),
145
- " ",
146
- editing.name
147
- ] }),
148
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
149
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "\u0110i\u1EC7n tho\u1EA1i:" }),
150
- " ",
151
- editing.phone
152
- ] }),
153
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
154
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "Email:" }),
155
- " ",
156
- editing.email
157
- ] }),
158
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
159
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "Khu v\u1EF1c:" }),
160
- " ",
161
- city(editing.city)
162
- ] }),
163
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
164
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "Th\u1ECB tr\u01B0\u1EDDng:" }),
165
- " ",
166
- editing.markets.join(", ") || "Ch\u01B0a cung c\u1EA5p",
167
- editing.otherMarket ? ` \xB7 Kh\xE1c: ${editing.otherMarket}` : ""
168
- ] }),
169
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
170
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "S\u1ED1 v\u1ED1n:" }),
171
- " ",
172
- capital(editing.capital)
154
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
155
+ import_material.Dialog,
156
+ {
157
+ open: Boolean(editing),
158
+ onClose: () => !busy && setEditing(null),
159
+ fullWidth: true,
160
+ maxWidth: "md",
161
+ "aria-labelledby": "registration-detail-title",
162
+ slotProps: { paper: { sx: { borderRadius: 3, m: { xs: 1.5, sm: 4 }, width: { xs: "calc(100% - 24px)", sm: "100%" }, maxHeight: "calc(100% - 32px)" } } },
163
+ children: [
164
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogTitle, { id: "registration-detail-title", sx: { px: { xs: 2.5, sm: 3 }, pt: 3, pb: 2 }, children: [
165
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "span", variant: "overline", color: "text.secondary", children: isPartner ? "\u0110\u0103ng k\xFD \u0111\u1ED1i t\xE1c" : "\u0110\u0103ng k\xFD t\u01B0 v\u1EA5n" }),
166
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: "row", spacing: 2, alignItems: "center", sx: { mt: 1 }, children: [
167
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Avatar, { sx: { width: 52, height: 52, bgcolor: "primary.lighter", color: "primary.dark", fontWeight: 700 }, children: editing?.name.trim().split(/\s+/).slice(-2).map((part) => part[0]).join("").toUpperCase() }),
168
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { sx: { minWidth: 0, flex: 1 }, children: [
169
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "span", variant: "h5", sx: { display: "block", overflowWrap: "anywhere" }, children: editing?.name }),
170
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { component: "span", variant: "body2", color: "text.secondary", children: [
171
+ isPartner ? "Wikex VN" : "Trang ch\u1EE7",
172
+ " \xB7 ",
173
+ editing && date(editing.createdAt)
174
+ ] })
175
+ ] })
176
+ ] })
173
177
  ] }),
174
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
175
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "Trang g\u1EEDi:" }),
176
- " ",
177
- editing.sourcePath
178
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogContent, { dividers: true, sx: { px: { xs: 2.5, sm: 3 }, py: 3, bgcolor: "background.neutral" }, children: [
179
+ notice?.severity === "error" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: "error", sx: { mb: 2 }, children: notice.message }),
180
+ editing && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { sx: { display: "grid", gridTemplateColumns: { xs: "1fr", md: "minmax(0, 1.2fr) minmax(0, 1fr)" }, gap: 2.5 }, children: [
181
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 2.5, sx: { minWidth: 0 }, children: [
182
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { variant: "outlined", sx: { p: 2.5, boxShadow: "none" }, children: [
183
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "subtitle1", sx: { mb: 2 }, children: "Th\xF4ng tin li\xEAn h\u1EC7" }),
184
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Box, { component: "dl", sx: { m: 0, display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr" }, gap: 2 }, children: [
185
+ { label: "\u0110i\u1EC7n tho\u1EA1i", value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Link, { href: `tel:${editing.phone.replace(/[^+0-9]/g, "")}`, underline: "hover", color: "text.primary", children: editing.phone }) },
186
+ { label: "Khu v\u1EF1c", value: isPartner ? registrationRegions[editing.region] || "Ch\u01B0a cung c\u1EA5p" : city(editing.city) },
187
+ { label: "Email", value: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Link, { href: `mailto:${editing.email}`, underline: "hover", color: "text.primary", children: editing.email }), full: true }
188
+ ].map((field) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { sx: { minWidth: 0, gridColumn: field.full ? "1 / -1" : void 0 }, children: [
189
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "dt", variant: "caption", color: "text.secondary", sx: { mb: 0.5 }, children: field.label }),
190
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "dd", variant: "body2", sx: { m: 0, fontWeight: 600, overflowWrap: "anywhere" }, children: field.value })
191
+ ] }, field.label)) })
192
+ ] }),
193
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { variant: "outlined", sx: { p: 2.5, boxShadow: "none" }, children: [
194
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "subtitle1", sx: { mb: 2 }, children: isPartner ? "Th\xF4ng tin h\u1EE3p t\xE1c" : "Nhu c\u1EA7u t\u01B0 v\u1EA5n" }),
195
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { component: "dl", sx: { m: 0, display: "grid", gridTemplateColumns: { xs: "1fr", sm: "1fr 1fr" }, gap: 2 }, children: [
196
+ (isPartner ? [
197
+ { label: "\u0110\u1ED1i t\xE1c", value: partnerTypes[editing.partner] || "Ch\u01B0a cung c\u1EA5p" },
198
+ { label: "Kinh nghi\u1EC7m", value: partnerExperiences[editing.experience] || "Ch\u01B0a cung c\u1EA5p" }
199
+ ] : [{ label: "S\u1ED1 v\u1ED1n d\u1EF1 ki\u1EBFn", value: capital(editing.capital) }]).map((field) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { children: [
200
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "dt", variant: "caption", color: "text.secondary", sx: { mb: 0.5 }, children: field.label }),
201
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "dd", variant: "body2", sx: { m: 0, fontWeight: 600, overflowWrap: "anywhere" }, children: field.value })
202
+ ] }, field.label)),
203
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Box, { sx: { gridColumn: "1 / -1", minWidth: 0 }, children: [
204
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { component: "dt", variant: "caption", color: "text.secondary", sx: { mb: 1 }, children: isPartner ? "K\xEAnh \u0111ang c\xF3 s\u1EB5n" : "Th\u1ECB tr\u01B0\u1EDDng quan t\xE2m" }),
205
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Stack, { component: "dd", direction: "row", flexWrap: "wrap", gap: 0.75, sx: { m: 0 }, children: (isPartner ? editing.sources : editing.markets).length ? (isPartner ? editing.sources : editing.markets).map(
206
+ (value, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Chip, { label: value, size: "small", variant: "outlined", sx: { maxWidth: "100%", height: "auto", "& .MuiChip-label": { whiteSpace: "normal", py: 0.5, overflowWrap: "anywhere" } } }, `${value}-${index}`)
207
+ ) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", color: "text.secondary", children: "Ch\u01B0a cung c\u1EA5p" }) }),
208
+ (isPartner ? editing.otherSource : editing.otherMarket) && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { variant: "body2", sx: { mt: 1, overflowWrap: "anywhere" }, children: [
209
+ "Kh\xE1c: ",
210
+ isPartner ? editing.otherSource : editing.otherMarket
211
+ ] })
212
+ ] })
213
+ ] }),
214
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Divider, { sx: { my: 2 } }),
215
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 0.5, children: [
216
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { variant: "caption", color: "text.secondary", children: [
217
+ "Trang g\u1EEDi: ",
218
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Box, { component: "span", sx: { overflowWrap: "anywhere" }, children: editing.sourcePath })
219
+ ] }),
220
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { variant: "caption", color: "text.secondary", children: [
221
+ "Ng\xF4n ng\u1EEF: ",
222
+ editing.language === "en" ? "Ti\u1EBFng Anh" : "Ti\u1EBFng Vi\u1EC7t"
223
+ ] })
224
+ ] })
225
+ ] })
226
+ ] }),
227
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Card, { variant: "outlined", sx: { p: 2.5, boxShadow: "none", alignSelf: "start", minWidth: 0 }, children: [
228
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: "row", gap: 1, justifyContent: "space-between", alignItems: "center", sx: { mb: 1 }, children: [
229
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "subtitle1", children: "X\u1EED l\xFD \u0111\u0103ng k\xFD" }),
230
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Chip, { size: "small", label: consultationStatuses[draftStatus], color: draftStatus === "new" ? "warning" : draftStatus === "completed" ? "success" : draftStatus === "contacted" ? "info" : "default" })
231
+ ] }),
232
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "body2", color: "text.secondary", sx: { mb: 3 }, children: "C\u1EADp nh\u1EADt ti\u1EBFn \u0111\u1ED9 li\xEAn h\u1EC7 v\xE0 ghi ch\xFA cho \u0111\u1ED9i ng\u0169." }),
233
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { spacing: 2.5, children: [
234
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TextField, { fullWidth: true, select: true, label: "Tr\u1EA1ng th\xE1i x\u1EED l\xFD", value: draftStatus, disabled: busy || !canWrite, onChange: (event) => setDraftStatus(event.target.value), children: Object.entries(consultationStatuses).map(([key, label]) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.MenuItem, { value: key, children: label }, key)) }),
235
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
236
+ import_material.TextField,
237
+ {
238
+ fullWidth: true,
239
+ label: "Ghi ch\xFA n\u1ED9i b\u1ED9",
240
+ placeholder: "N\u1ED9i dung trao \u0111\u1ED5i, nhu c\u1EA7u v\xE0 l\u1ECBch h\u1EB9n ti\u1EBFp theo\u2026",
241
+ value: notes,
242
+ disabled: busy || !canWrite,
243
+ multiline: true,
244
+ minRows: 5,
245
+ inputProps: { maxLength: 5e3 },
246
+ helperText: `${notes.length.toLocaleString("vi-VN")} / 5.000 k\xFD t\u1EF1 \xB7 Ch\u1EC9 hi\u1EC3n th\u1ECB trong CMS`,
247
+ onChange: (event) => setNotes(event.target.value)
248
+ }
249
+ ),
250
+ !canWrite && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { variant: "caption", color: "text.secondary", children: "B\u1EA1n ch\u1EC9 c\xF3 quy\u1EC1n xem th\xF4ng tin \u0111\u0103ng k\xFD." })
251
+ ] })
252
+ ] })
253
+ ] })
178
254
  ] }),
179
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Typography, { children: [
180
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)("strong", { children: "Ng\xE0y g\u1EEDi:" }),
181
- " ",
182
- date(editing.createdAt)
255
+ /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogActions, { sx: { px: { xs: 2.5, sm: 3 }, py: 2, gap: 1 }, children: [
256
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { disabled: busy, onClick: () => setEditing(null), children: "\u0110\xF3ng" }),
257
+ canWrite && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { variant: "contained", loading: busy, disabled: busy, onClick: async () => {
258
+ if (!editing) return;
259
+ try {
260
+ await onSave(editing, draftStatus, notes);
261
+ setEditing(null);
262
+ } catch {
263
+ }
264
+ }, children: "L\u01B0u x\u1EED l\xFD" })
183
265
  ] })
184
- ] }),
185
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TextField, { select: true, label: "Tr\u1EA1ng th\xE1i x\u1EED l\xFD", value: draftStatus, disabled: busy || !canWrite, onChange: (event) => setDraftStatus(event.target.value), children: Object.entries(consultationStatuses).map(([key, label]) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.MenuItem, { value: key, children: label }, key)) }),
186
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.TextField, { label: "Ghi ch\xFA n\u1ED9i b\u1ED9", value: notes, disabled: busy || !canWrite, multiline: true, minRows: 4, inputProps: { maxLength: 5e3 }, onChange: (event) => setNotes(event.target.value) })
187
- ] }) }),
188
- /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogActions, { children: [
189
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { disabled: busy, onClick: () => setEditing(null), children: "\u0110\xF3ng" }),
190
- canWrite && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Button, { variant: "contained", loading: busy, disabled: busy, onClick: async () => {
191
- if (!editing) return;
192
- try {
193
- await onSave(editing, draftStatus, notes);
194
- setEditing(null);
195
- } catch {
196
- }
197
- }, children: "L\u01B0u x\u1EED l\xFD" })
198
- ] })
199
- ] }),
266
+ ]
267
+ }
268
+ ),
200
269
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Dialog, { open: Boolean(deleting), onClose: () => !busy && setDeleting(null), children: [
201
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogTitle, { children: "X\xF3a \u0111\u0103ng k\xFD t\u01B0 v\u1EA5n?" }),
270
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.DialogTitle, { children: "X\xF3a \u0111\u0103ng k\xFD?" }),
202
271
  /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.DialogContent, { children: [
203
272
  notice?.severity === "error" && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Alert, { severity: "error", sx: { mb: 2 }, children: notice.message }),
204
273
  "Th\xF4ng tin \u0111\u0103ng k\xFD c\u1EE7a ",
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/consultations.ts","../src/wikex/consultation-manager.tsx","../src/consultation-model.ts"],"sourcesContent":["\"use client\";\nexport { ConsultationManager } from './wikex/consultation-manager';\nexport type { ConsultationManagerProps } from './wikex/consultation-manager';\nexport type { Consultation, ConsultationList, ConsultationStatus, ConsultationSubmission } from './consultation-model';\n","'use client';\n\nimport { useState } from 'react';\nimport { Alert, Box, Button, Card, Chip, Dialog, DialogActions, DialogContent, DialogTitle, MenuItem, Stack, Table, TableBody, TableCell, TableHead, TablePagination, TableRow, TextField, Typography } from '@mui/material';\nimport { consultationStatuses, consultationCities, consultationCapitals } from '../consultation-model';\nimport type { Consultation, ConsultationList, ConsultationStatus } from '../consultation-model';\n\nexport type ConsultationManagerProps = {\n data: ConsultationList;\n search: string;\n status: ConsultationStatus | '';\n loading: boolean;\n busy: boolean;\n canWrite: boolean;\n notice: { severity: 'success' | 'error'; message: string } | null;\n onSearch: (value: string) => void;\n onStatus: (value: ConsultationStatus | '') => void;\n onPage: (page: number) => void;\n onPageSize: (size: number) => void;\n onReload: () => void;\n onSave: (item: Consultation, status: ConsultationStatus, notes: string) => Promise<void>;\n onDelete: (item: Consultation) => Promise<void>;\n onDismissNotice: () => void;\n};\nconst date = (value: string) => new Intl.DateTimeFormat('vi-VN', { timeZone: 'Asia/Ho_Chi_Minh', dateStyle: 'short', timeStyle: 'short' }).format(new Date(value));\nconst city = (value: string) => consultationCities[value] || value || 'Chưa cung cấp';\nconst capital = (value: string) => consultationCapitals[value] || value || 'Chưa cung cấp';\n\nexport function ConsultationManager({ data, search, status, loading, busy, canWrite, notice, onSearch, onStatus,\n onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps) {\n const [editing, setEditing] = useState<Consultation | null>(null);\n const [deleting, setDeleting] = useState<Consultation | null>(null);\n const [draftStatus, setDraftStatus] = useState<ConsultationStatus>('new');\n const [notes, setNotes] = useState('');\n return <Stack spacing={3} sx={{ minWidth: 0 }}>\n <Stack direction={{ xs: 'column', sm: 'row' }} gap={2} justifyContent=\"space-between\" alignItems={{ sm: 'center' }}>\n <Stack spacing={1}><Typography variant=\"h4\">Đăng ký tư vấn</Typography>\n <Typography variant=\"body2\" color=\"text.secondary\">Thông tin từ form đăng ký trên website. Theo dõi liên hệ và ghi chú xử lý.</Typography></Stack>\n <Button variant=\"outlined\" disabled={loading || busy} onClick={onReload}>Tải lại danh sách</Button>\n </Stack>\n {!canWrite && <Alert severity=\"info\">Bạn có quyền xem đăng ký. Cần quyền chỉnh sửa đăng ký tư vấn để cập nhật hoặc xóa.</Alert>}\n {notice && <Alert severity={notice.severity} onClose={onDismissNotice}>{notice.message}</Alert>}\n <Card sx={{ p: 3 }}><Stack direction={{ xs: 'column', sm: 'row' }} spacing={2}>\n <TextField size=\"small\" fullWidth label=\"Tìm theo tên, điện thoại hoặc email\" value={search} disabled={busy} onChange={event => onSearch(event.target.value)} />\n <TextField select size=\"small\" label=\"Trạng thái\" value={status} disabled={busy} sx={{ minWidth: 200 }} onChange={event => onStatus(event.target.value as ConsultationStatus | '')}>\n <MenuItem value=\"\">Tất cả</MenuItem>{Object.entries(consultationStatuses).map(([key, label]) => <MenuItem key={key} value={key}>{label}</MenuItem>)}\n </TextField>\n </Stack></Card>\n <Card aria-busy={loading} sx={{ opacity: loading ? 0.65 : 1 }}>\n <Box sx={{ overflowX: 'auto' }}><Table aria-label=\"Danh sách đăng ký tư vấn\" sx={{ minWidth: 1050 }}>\n <TableHead><TableRow>{['Khách hàng', 'Điện thoại / Email', 'Khu vực', 'Thị trường / Vốn', 'Trạng thái', 'Ngày gửi', 'Thao tác'].map(title => <TableCell key={title}>{title}</TableCell>)}</TableRow></TableHead>\n <TableBody>{data.items.map(item => <TableRow key={item.id}>\n <TableCell sx={{ maxWidth: 220, overflowWrap: 'anywhere' }}><Typography variant=\"subtitle2\">{item.name}</Typography><Typography variant=\"caption\" color=\"text.secondary\">{item.language.toUpperCase()}</Typography></TableCell>\n <TableCell sx={{ maxWidth: 260, overflowWrap: 'anywhere' }}><Typography variant=\"body2\">{item.phone}</Typography><Typography variant=\"body2\" color=\"text.secondary\">{item.email}</Typography></TableCell>\n <TableCell>{city(item.city)}</TableCell>\n <TableCell sx={{ maxWidth: 220, overflowWrap: 'anywhere' }}><Typography variant=\"body2\">{item.markets.join(', ') || 'Chưa cung cấp'}</Typography>{item.otherMarket && <Typography variant=\"body2\">Khác: {item.otherMarket}</Typography>}<Typography variant=\"caption\" color=\"text.secondary\">{capital(item.capital)}</Typography></TableCell>\n <TableCell><Chip size=\"small\" label={consultationStatuses[item.status]} color={item.status === 'new' ? 'warning' : item.status === 'completed' ? 'success' : 'default'} /></TableCell>\n <TableCell sx={{ whiteSpace: 'nowrap' }}>{date(item.createdAt)}</TableCell>\n <TableCell><Stack direction=\"row\" spacing={1}><Button size=\"small\" disabled={busy} onClick={() => { setEditing(item); setDraftStatus(item.status); setNotes(item.notes); }}>Xem / xử lý</Button>{canWrite && <Button size=\"small\" color=\"error\" disabled={busy} onClick={() => setDeleting(item)}>Xóa</Button>}</Stack></TableCell>\n </TableRow>)}{!data.items.length && <TableRow><TableCell colSpan={7} align=\"center\" sx={{ py: 6 }}>{loading ? 'Đang tải đăng ký…' : 'Chưa có đăng ký phù hợp.'}</TableCell></TableRow>}</TableBody>\n </Table></Box>\n <TablePagination component=\"div\" count={data.total} page={data.page - 1} rowsPerPage={data.pageSize}\n rowsPerPageOptions={[10, 25, 50, 100]} labelRowsPerPage=\"Số dòng mỗi trang\" labelDisplayedRows={({ from, to, count }) => `${from}–${to} / ${count}`}\n onPageChange={(_, next) => onPage(next + 1)} onRowsPerPageChange={event => onPageSize(Number(event.target.value))}\n disabled={loading || busy} slotProps={{ select: { native: false }, actions: { previousButton: { 'aria-label': 'Trang trước' }, nextButton: { 'aria-label': 'Trang sau' } } }} />\n </Card>\n <Dialog open={Boolean(editing)} onClose={() => !busy && setEditing(null)} fullWidth maxWidth=\"sm\">\n <DialogTitle>Chi tiết đăng ký tư vấn</DialogTitle><DialogContent><Stack spacing={2} sx={{ pt: 1 }}>\n {notice?.severity === 'error' && <Alert severity=\"error\">{notice.message}</Alert>}\n {editing && <Stack spacing={0.75} sx={{ overflowWrap: 'anywhere' }}>\n <Typography><strong>Họ và tên:</strong> {editing.name}</Typography><Typography><strong>Điện thoại:</strong> {editing.phone}</Typography><Typography><strong>Email:</strong> {editing.email}</Typography>\n <Typography><strong>Khu vực:</strong> {city(editing.city)}</Typography><Typography><strong>Thị trường:</strong> {editing.markets.join(', ') || 'Chưa cung cấp'}{editing.otherMarket ? ` · Khác: ${editing.otherMarket}` : ''}</Typography>\n <Typography><strong>Số vốn:</strong> {capital(editing.capital)}</Typography><Typography><strong>Trang gửi:</strong> {editing.sourcePath}</Typography><Typography><strong>Ngày gửi:</strong> {date(editing.createdAt)}</Typography>\n </Stack>}\n <TextField select label=\"Trạng thái xử lý\" value={draftStatus} disabled={busy || !canWrite} onChange={event => setDraftStatus(event.target.value as ConsultationStatus)}>\n {Object.entries(consultationStatuses).map(([key, label]) => <MenuItem key={key} value={key}>{label}</MenuItem>)}\n </TextField>\n <TextField label=\"Ghi chú nội bộ\" value={notes} disabled={busy || !canWrite} multiline minRows={4} inputProps={{ maxLength: 5000 }} onChange={event => setNotes(event.target.value)} />\n </Stack></DialogContent><DialogActions><Button disabled={busy} onClick={() => setEditing(null)}>Đóng</Button>{canWrite && <Button variant=\"contained\" loading={busy} disabled={busy} onClick={async () => {\n if (!editing) return;\n try { await onSave(editing, draftStatus, notes); setEditing(null); } catch { /* Host reports the error and retains the draft. */ }\n }}>Lưu xử lý</Button>}</DialogActions>\n </Dialog>\n <Dialog open={Boolean(deleting)} onClose={() => !busy && setDeleting(null)}><DialogTitle>Xóa đăng ký tư vấn?</DialogTitle><DialogContent>\n {notice?.severity === 'error' && <Alert severity=\"error\" sx={{ mb: 2 }}>{notice.message}</Alert>}\n Thông tin đăng ký của {deleting?.name} sẽ bị xóa vĩnh viễn.\n </DialogContent><DialogActions><Button disabled={busy} onClick={() => setDeleting(null)}>Hủy</Button><Button color=\"error\" disabled={busy} onClick={async () => {\n if (!deleting) return;\n try { await onDelete(deleting); setDeleting(null); } catch { /* Host reports the error. */ }\n }}>Xóa đăng ký</Button></DialogActions></Dialog>\n </Stack>;\n}\n","export type ConsultationSubmission = {\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,mBAAyB;AACzB,sBAA6M;;;ACWtM,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;;;ADiB1K;AAZN,IAAM,OAAO,CAAC,UAAkB,IAAI,KAAK,eAAe,SAAS,EAAE,UAAU,oBAAoB,WAAW,SAAS,WAAW,QAAQ,CAAC,EAAE,OAAO,IAAI,KAAK,KAAK,CAAC;AACjK,IAAM,OAAO,CAAC,UAAkB,mBAAmB,KAAK,KAAK,SAAS;AACtE,IAAM,UAAU,CAAC,UAAkB,qBAAqB,KAAK,KAAK,SAAS;AAEpE,SAAS,oBAAoB;AAAA,EAAE;AAAA,EAAM;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAU;AAAA,EACrG;AAAA,EAAQ;AAAA,EAAY;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAU;AAAgB,GAA6B;AAC7F,QAAM,CAAC,SAAS,UAAU,QAAI,uBAA8B,IAAI;AAChE,QAAM,CAAC,UAAU,WAAW,QAAI,uBAA8B,IAAI;AAClE,QAAM,CAAC,aAAa,cAAc,QAAI,uBAA6B,KAAK;AACxE,QAAM,CAAC,OAAO,QAAQ,QAAI,uBAAS,EAAE;AACrC,SAAO,6CAAC,yBAAM,SAAS,GAAG,IAAI,EAAE,UAAU,EAAE,GAC1C;AA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GAAG,sBAAG;AAAA,QAAS,4CAAC,0BAAO,OAAM,SAAQ,UAAU,MAAM,SAAS,YAAY;AAC9J,cAAI,CAAC,SAAU;AACf,cAAI;AAAE,kBAAM,SAAS,QAAQ;AAAG,wBAAY,IAAI;AAAA,UAAG,QAAQ;AAAA,UAAgC;AAAA,QAC7F,GAAG,yCAAW;AAAA,SAAS;AAAA,OAAgB;AAAA,KACzC;AACF;","names":[]}
1
+ {"version":3,"sources":["../src/consultations.ts","../src/wikex/consultation-manager.tsx","../src/consultation-model.ts"],"sourcesContent":["\"use client\";\nexport { ConsultationManager } from './wikex/consultation-manager';\nexport type { ConsultationManagerProps } from './wikex/consultation-manager';\nexport type { Consultation, ConsultationList, ConsultationStatus, ConsultationSubmission, RegistrationKind } from './consultation-model';\n","'use client';\n\nimport { useState } from 'react';\nimport { Alert, Avatar, Box, Button, Card, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Link, MenuItem, Stack, Table, TableBody, TableCell, TableHead, TablePagination, TableRow, TextField, Typography } from '@mui/material';\nimport { consultationStatuses, consultationCities, consultationCapitals, registrationRegions, partnerTypes, partnerExperiences } from '../consultation-model';\nimport type { Consultation, ConsultationList, ConsultationStatus } from '../consultation-model';\n\nexport type ConsultationManagerProps = {\n kind?: 'consultation' | 'partner';\n data: ConsultationList;\n search: string;\n status: ConsultationStatus | '';\n loading: boolean;\n busy: boolean;\n canWrite: boolean;\n notice: { severity: 'success' | 'error'; message: string } | null;\n onSearch: (value: string) => void;\n onStatus: (value: ConsultationStatus | '') => void;\n onPage: (page: number) => void;\n onPageSize: (size: number) => void;\n onReload: () => void;\n onSave: (item: Consultation, status: ConsultationStatus, notes: string) => Promise<void>;\n onDelete: (item: Consultation) => Promise<void>;\n onDismissNotice: () => void;\n};\nconst date = (value: string) => new Intl.DateTimeFormat('vi-VN', { timeZone: 'Asia/Ho_Chi_Minh', dateStyle: 'short', timeStyle: 'short' }).format(new Date(value));\nconst city = (value: string) => consultationCities[value] || value || 'Chưa cung cấp';\nconst capital = (value: string) => consultationCapitals[value] || value || 'Chưa cung cấp';\n\nexport function ConsultationManager({ kind = 'consultation', data, search, status, loading, busy, canWrite, notice, onSearch, onStatus,\n onPage, onPageSize, onReload, onSave, onDelete, onDismissNotice }: ConsultationManagerProps) {\n const isPartner = kind === 'partner';\n const title = isPartner ? 'Đăng ký đối tác — Wikex VN' : 'Đăng ký tư vấn — Trang chủ';\n const [editing, setEditing] = useState<Consultation | null>(null);\n const [deleting, setDeleting] = useState<Consultation | null>(null);\n const [draftStatus, setDraftStatus] = useState<ConsultationStatus>('new');\n const [notes, setNotes] = useState('');\n return <Stack spacing={3} sx={{ minWidth: 0 }}>\n <Stack direction={{ xs: 'column', sm: 'row' }} gap={2} justifyContent=\"space-between\" alignItems={{ sm: 'center' }}>\n <Stack spacing={1}><Typography variant=\"h4\">{title}</Typography>\n <Typography variant=\"body2\" color=\"text.secondary\">Thông tin từ form đăng ký trên website. Theo dõi liên hệ và ghi chú xử lý.</Typography></Stack>\n <Button variant=\"outlined\" disabled={loading || busy} onClick={onReload}>Tải lại danh sách</Button>\n </Stack>\n {!canWrite && <Alert severity=\"info\">Bạn có quyền xem đăng ký. Cần quyền chỉnh sửa đăng ký để cập nhật hoặc xóa.</Alert>}\n {notice && <Alert severity={notice.severity} onClose={onDismissNotice}>{notice.message}</Alert>}\n <Card sx={{ p: 3 }}><Stack direction={{ xs: 'column', sm: 'row' }} spacing={2}>\n <TextField size=\"small\" fullWidth label=\"Tìm theo tên, điện thoại hoặc email\" value={search} disabled={busy} onChange={event => onSearch(event.target.value)} />\n <TextField select size=\"small\" label=\"Trạng thái\" value={status} disabled={busy} sx={{ minWidth: 200 }} onChange={event => onStatus(event.target.value as ConsultationStatus | '')}>\n <MenuItem value=\"\">Tất cả</MenuItem>{Object.entries(consultationStatuses).map(([key, label]) => <MenuItem key={key} value={key}>{label}</MenuItem>)}\n </TextField>\n </Stack></Card>\n <Card aria-busy={loading} sx={{ opacity: loading ? 0.65 : 1 }}>\n <Box sx={{ overflowX: 'auto' }}><Table aria-label={title} sx={{ minWidth: 1050 }}>\n <TableHead><TableRow>{['Khách hàng', 'Điện thoại / Email', 'Khu vực', isPartner ? 'Đối tác / Kinh nghiệm' : 'Thị trường / Vốn', 'Trạng thái', 'Ngày gửi', 'Thao tác'].map(title => <TableCell key={title}>{title}</TableCell>)}</TableRow></TableHead>\n <TableBody>{data.items.map(item => <TableRow key={item.id}>\n <TableCell sx={{ maxWidth: 220, overflowWrap: 'anywhere' }}><Typography variant=\"subtitle2\">{item.name}</Typography><Typography variant=\"caption\" color=\"text.secondary\">{item.language.toUpperCase()}</Typography></TableCell>\n <TableCell sx={{ maxWidth: 260, overflowWrap: 'anywhere' }}><Typography variant=\"body2\">{item.phone}</Typography><Typography variant=\"body2\" color=\"text.secondary\">{item.email}</Typography></TableCell>\n <TableCell>{isPartner ? registrationRegions[item.region] || 'Chưa cung cấp' : city(item.city)}</TableCell>\n <TableCell sx={{ maxWidth: 220, overflowWrap: 'anywhere' }}>{isPartner ? <><Typography variant=\"body2\">{partnerTypes[item.partner] || 'Chưa cung cấp'}</Typography><Typography variant=\"caption\">{partnerExperiences[item.experience] || 'Chưa cung cấp'}</Typography></> : <><Typography variant=\"body2\">{item.markets.join(', ') || 'Chưa cung cấp'}</Typography>{item.otherMarket && <Typography variant=\"body2\">Khác: {item.otherMarket}</Typography>}<Typography variant=\"caption\" color=\"text.secondary\">{capital(item.capital)}</Typography></>}</TableCell>\n <TableCell><Chip size=\"small\" label={consultationStatuses[item.status]} color={item.status === 'new' ? 'warning' : item.status === 'completed' ? 'success' : 'default'} /></TableCell>\n <TableCell sx={{ whiteSpace: 'nowrap' }}>{date(item.createdAt)}</TableCell>\n <TableCell><Stack direction=\"row\" spacing={1}><Button size=\"small\" disabled={busy} onClick={() => { setEditing(item); setDraftStatus(item.status); setNotes(item.notes); }}>Xem / xử lý</Button>{canWrite && <Button size=\"small\" color=\"error\" disabled={busy} onClick={() => setDeleting(item)}>Xóa</Button>}</Stack></TableCell>\n </TableRow>)}{!data.items.length && <TableRow><TableCell colSpan={7} align=\"center\" sx={{ py: 6 }}>{loading ? 'Đang tải đăng ký…' : 'Chưa có đăng ký phù hợp.'}</TableCell></TableRow>}</TableBody>\n </Table></Box>\n <TablePagination component=\"div\" count={data.total} page={data.page - 1} rowsPerPage={data.pageSize}\n rowsPerPageOptions={[10, 25, 50, 100]} labelRowsPerPage=\"Số dòng mỗi trang\" labelDisplayedRows={({ from, to, count }) => `${from}–${to} / ${count}`}\n onPageChange={(_, next) => onPage(next + 1)} onRowsPerPageChange={event => onPageSize(Number(event.target.value))}\n disabled={loading || busy} slotProps={{ select: { native: false }, actions: { previousButton: { 'aria-label': 'Trang trước' }, nextButton: { 'aria-label': 'Trang sau' } } }} />\n </Card>\n <Dialog open={Boolean(editing)} onClose={() => !busy && setEditing(null)} fullWidth maxWidth=\"md\"\n aria-labelledby=\"registration-detail-title\"\n slotProps={{ paper: { sx: { borderRadius: 3, m: { xs: 1.5, sm: 4 }, width: { xs: 'calc(100% - 24px)', sm: '100%' }, maxHeight: 'calc(100% - 32px)' } } }}>\n <DialogTitle id=\"registration-detail-title\" sx={{ px: { xs: 2.5, sm: 3 }, pt: 3, pb: 2 }}>\n <Typography component=\"span\" variant=\"overline\" color=\"text.secondary\">{isPartner ? 'Đăng ký đối tác' : 'Đăng ký tư vấn'}</Typography>\n <Stack direction=\"row\" spacing={2} alignItems=\"center\" sx={{ mt: 1 }}>\n <Avatar sx={{ width: 52, height: 52, bgcolor: 'primary.lighter', color: 'primary.dark', fontWeight: 700 }}>\n {editing?.name.trim().split(/\\s+/).slice(-2).map(part => part[0]).join('').toUpperCase()}\n </Avatar>\n <Box sx={{ minWidth: 0, flex: 1 }}>\n <Typography component=\"span\" variant=\"h5\" sx={{ display: 'block', overflowWrap: 'anywhere' }}>{editing?.name}</Typography>\n <Typography component=\"span\" variant=\"body2\" color=\"text.secondary\">{isPartner ? 'Wikex VN' : 'Trang chủ'} · {editing && date(editing.createdAt)}</Typography>\n </Box>\n </Stack>\n </DialogTitle>\n <DialogContent dividers sx={{ px: { xs: 2.5, sm: 3 }, py: 3, bgcolor: 'background.neutral' }}>\n {notice?.severity === 'error' && <Alert severity=\"error\" sx={{ mb: 2 }}>{notice.message}</Alert>}\n {editing && <Box sx={{ display: 'grid', gridTemplateColumns: { xs: '1fr', md: 'minmax(0, 1.2fr) minmax(0, 1fr)' }, gap: 2.5 }}>\n <Stack spacing={2.5} sx={{ minWidth: 0 }}>\n <Card variant=\"outlined\" sx={{ p: 2.5, boxShadow: 'none' }}>\n <Typography variant=\"subtitle1\" sx={{ mb: 2 }}>Thông tin liên hệ</Typography>\n <Box component=\"dl\" sx={{ m: 0, display: 'grid', gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr' }, gap: 2 }}>\n {[\n { label: 'Điện thoại', value: <Link href={`tel:${editing.phone.replace(/[^+0-9]/g, '')}`} underline=\"hover\" color=\"text.primary\">{editing.phone}</Link> },\n { label: 'Khu vực', value: isPartner ? registrationRegions[editing.region] || 'Chưa cung cấp' : city(editing.city) },\n { label: 'Email', value: <Link href={`mailto:${editing.email}`} underline=\"hover\" color=\"text.primary\">{editing.email}</Link>, full: true },\n ].map(field => <Box key={field.label} sx={{ minWidth: 0, gridColumn: field.full ? '1 / -1' : undefined }}>\n <Typography component=\"dt\" variant=\"caption\" color=\"text.secondary\" sx={{ mb: 0.5 }}>{field.label}</Typography>\n <Typography component=\"dd\" variant=\"body2\" sx={{ m: 0, fontWeight: 600, overflowWrap: 'anywhere' }}>{field.value}</Typography>\n </Box>)}\n </Box>\n </Card>\n <Card variant=\"outlined\" sx={{ p: 2.5, boxShadow: 'none' }}>\n <Typography variant=\"subtitle1\" sx={{ mb: 2 }}>{isPartner ? 'Thông tin hợp tác' : 'Nhu cầu tư vấn'}</Typography>\n <Box component=\"dl\" sx={{ m: 0, display: 'grid', gridTemplateColumns: { xs: '1fr', sm: '1fr 1fr' }, gap: 2 }}>\n {(isPartner ? [\n { label: 'Đối tác', value: partnerTypes[editing.partner] || 'Chưa cung cấp' },\n { label: 'Kinh nghiệm', value: partnerExperiences[editing.experience] || 'Chưa cung cấp' },\n ] : [{ label: 'Số vốn dự kiến', value: capital(editing.capital) }]).map(field => <Box key={field.label}>\n <Typography component=\"dt\" variant=\"caption\" color=\"text.secondary\" sx={{ mb: 0.5 }}>{field.label}</Typography>\n <Typography component=\"dd\" variant=\"body2\" sx={{ m: 0, fontWeight: 600, overflowWrap: 'anywhere' }}>{field.value}</Typography>\n </Box>)}\n <Box sx={{ gridColumn: '1 / -1', minWidth: 0 }}>\n <Typography component=\"dt\" variant=\"caption\" color=\"text.secondary\" sx={{ mb: 1 }}>{isPartner ? 'Kênh đang có sẵn' : 'Thị trường quan tâm'}</Typography>\n <Stack component=\"dd\" direction=\"row\" flexWrap=\"wrap\" gap={0.75} sx={{ m: 0 }}>\n {(isPartner ? editing.sources : editing.markets).length ? (isPartner ? editing.sources : editing.markets).map((value, index) =>\n <Chip key={`${value}-${index}`} label={value} size=\"small\" variant=\"outlined\" sx={{ maxWidth: '100%', height: 'auto', '& .MuiChip-label': { whiteSpace: 'normal', py: 0.5, overflowWrap: 'anywhere' } }} />\n ) : <Typography variant=\"body2\" color=\"text.secondary\">Chưa cung cấp</Typography>}\n </Stack>\n {(isPartner ? editing.otherSource : editing.otherMarket) && <Typography variant=\"body2\" sx={{ mt: 1, overflowWrap: 'anywhere' }}>Khác: {isPartner ? editing.otherSource : editing.otherMarket}</Typography>}\n </Box>\n </Box>\n <Divider sx={{ my: 2 }} />\n <Stack spacing={0.5}>\n <Typography variant=\"caption\" color=\"text.secondary\">Trang gửi: <Box component=\"span\" sx={{ overflowWrap: 'anywhere' }}>{editing.sourcePath}</Box></Typography>\n <Typography variant=\"caption\" color=\"text.secondary\">Ngôn ngữ: {editing.language === 'en' ? 'Tiếng Anh' : 'Tiếng Việt'}</Typography>\n </Stack>\n </Card>\n </Stack>\n <Card variant=\"outlined\" sx={{ p: 2.5, boxShadow: 'none', alignSelf: 'start', minWidth: 0 }}>\n <Stack direction=\"row\" gap={1} justifyContent=\"space-between\" alignItems=\"center\" sx={{ mb: 1 }}>\n <Typography variant=\"subtitle1\">Xử lý đăng ký</Typography>\n <Chip size=\"small\" label={consultationStatuses[draftStatus]} color={draftStatus === 'new' ? 'warning' : draftStatus === 'completed' ? 'success' : draftStatus === 'contacted' ? 'info' : 'default'} />\n </Stack>\n <Typography variant=\"body2\" color=\"text.secondary\" sx={{ mb: 3 }}>Cập nhật tiến độ liên hệ và ghi chú cho đội ngũ.</Typography>\n <Stack spacing={2.5}>\n <TextField fullWidth select label=\"Trạng thái xử lý\" value={draftStatus} disabled={busy || !canWrite} onChange={event => setDraftStatus(event.target.value as ConsultationStatus)}>\n {Object.entries(consultationStatuses).map(([key, label]) => <MenuItem key={key} value={key}>{label}</MenuItem>)}\n </TextField>\n <TextField fullWidth label=\"Ghi chú nội bộ\" placeholder=\"Nội dung trao đổi, nhu cầu và lịch hẹn tiếp theo…\" value={notes} disabled={busy || !canWrite} multiline minRows={5}\n inputProps={{ maxLength: 5000 }} helperText={`${notes.length.toLocaleString('vi-VN')} / 5.000 ký tự · Chỉ hiển thị trong CMS`}\n onChange={event => setNotes(event.target.value)} />\n {!canWrite && <Typography variant=\"caption\" color=\"text.secondary\">Bạn chỉ có quyền xem thông tin đăng ký.</Typography>}\n </Stack>\n </Card>\n </Box>}\n </DialogContent>\n <DialogActions sx={{ px: { xs: 2.5, sm: 3 }, py: 2, gap: 1 }}>\n <Button disabled={busy} onClick={() => setEditing(null)}>Đóng</Button>{canWrite && <Button variant=\"contained\" loading={busy} disabled={busy} onClick={async () => {\n if (!editing) return;\n try { await onSave(editing, draftStatus, notes); setEditing(null); } catch { /* Host retains the draft. */ }\n }}>Lưu xử lý</Button>}\n </DialogActions>\n </Dialog>\n <Dialog open={Boolean(deleting)} onClose={() => !busy && setDeleting(null)}><DialogTitle>Xóa đăng ký?</DialogTitle><DialogContent>\n {notice?.severity === 'error' && <Alert severity=\"error\" sx={{ mb: 2 }}>{notice.message}</Alert>}\n Thông tin đăng ký của {deleting?.name} sẽ bị xóa vĩnh viễn.\n </DialogContent><DialogActions><Button disabled={busy} onClick={() => setDeleting(null)}>Hủy</Button><Button color=\"error\" disabled={busy} onClick={async () => {\n if (!deleting) return;\n try { await onDelete(deleting); setDeleting(null); } catch { /* Host reports the error. */ }\n }}>Xóa đăng ký</Button></DialogActions></Dialog>\n </Stack>;\n}\n","export type RegistrationKind = 'consultation' | 'partner';\nexport const registrationRegions: Record<string, string> = {\n north: 'Khu vực miền Bắc', 'north-central': 'Khu vực Bắc Trung Bộ', central: 'Khu vực miền Trung',\n highlands: 'Khu vực Tây Nguyên', south: 'Khu vực miền Nam', mekong: 'Khu vực miền Tây',\n};\nexport const partnerTypes: Record<string, string> = { individual: 'Cá nhân', broker: 'Môi giới tài chính', professional: 'Chuyên viên môi giới', other: 'Khác' };\nexport const partnerExperiences: Record<string, string> = { none: 'Chưa có kinh nghiệm', under1: 'Dưới 1 năm', oneTo3: '1–3 năm', over3: 'Trên 3 năm', other: 'Khác' };\nexport type ConsultationSubmission = {\n kind: RegistrationKind;\n region: string;\n partner: string;\n experience: string;\n sources: string[];\n otherSource: string;\n submissionId: string;\n name: string;\n phone: string;\n email: string;\n city: string;\n markets: string[];\n otherMarket: string;\n capital: string;\n language: 'vi' | 'en';\n sourcePath: string;\n website: string;\n};\n\nexport const consultationStatuses = {\n new: 'Mới', contacted: 'Đã liên hệ', completed: 'Hoàn tất', cancelled: 'Không tiếp tục',\n} as const;\nexport type ConsultationStatus = keyof typeof consultationStatuses;\nexport const consultationCities: Record<string, string> = { 'ho-chi-minh-city': 'TP. Hồ Chí Minh', hanoi: 'Hà Nội', other: 'Khác' };\nexport const consultationCapitals: Record<string, string> = { 'under-10m': 'Dưới 10 triệu', '10m-30m': '10–30 triệu', '30m-100m': '30–100 triệu', 'over-100m': 'Trên 100 triệu' };\nexport type Consultation = Omit<ConsultationSubmission, 'website' | 'submissionId'> & {\n id: string; status: ConsultationStatus; notes: string; createdAt: string; updatedAt: string;\n};\nexport type ConsultationList = { items: Consultation[]; total: number; page: number; pageSize: number };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACEA,mBAAyB;AACzB,sBAAoO;;;ACF7N,IAAM,sBAA8C;AAAA,EACzD,OAAO;AAAA,EAAoB,iBAAiB;AAAA,EAAwB,SAAS;AAAA,EAC7E,WAAW;AAAA,EAAsB,OAAO;AAAA,EAAoB,QAAQ;AACtE;AACO,IAAM,eAAuC,EAAE,YAAY,iBAAW,QAAQ,oCAAsB,cAAc,sCAAwB,OAAO,UAAO;AACxJ,IAAM,qBAA6C,EAAE,MAAM,oCAAuB,QAAQ,6BAAc,QAAQ,qBAAW,OAAO,sBAAc,OAAO,UAAO;AAqB9J,IAAM,uBAAuB;AAAA,EAClC,KAAK;AAAA,EAAO,WAAW;AAAA,EAAc,WAAW;AAAA,EAAY,WAAW;AACzE;AAEO,IAAM,qBAA6C,EAAE,oBAAoB,2BAAmB,OAAO,kBAAU,OAAO,UAAO;AAC3H,IAAM,uBAA+C,EAAE,aAAa,gCAAiB,WAAW,yBAAe,YAAY,0BAAgB,aAAa,yBAAiB;;;ADO1K;AAdN,IAAM,OAAO,CAAC,UAAkB,IAAI,KAAK,eAAe,SAAS,EAAE,UAAU,oBAAoB,WAAW,SAAS,WAAW,QAAQ,CAAC,EAAE,OAAO,IAAI,KAAK,KAAK,CAAC;AACjK,IAAM,OAAO,CAAC,UAAkB,mBAAmB,KAAK,KAAK,SAAS;AACtE,IAAM,UAAU,CAAC,UAAkB,qBAAqB,KAAK,KAAK,SAAS;AAEpE,SAAS,oBAAoB;AAAA,EAAE,OAAO;AAAA,EAAgB;AAAA,EAAM;AAAA,EAAQ;AAAA,EAAQ;AAAA,EAAS;AAAA,EAAM;AAAA,EAAU;AAAA,EAAQ;AAAA,EAAU;AAAA,EAC5H;AAAA,E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