@materialui-reactjs/admin 1.0.4 → 1.0.5

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,31 +1,31 @@
1
1
  import { n as e } from "./Env-DRXhvUcb.js";
2
2
  import { _ as t, b as n, c as r, g as i, i as a, t as o, v as s, y as c } from "./Common-C_ZhT4L6.js";
3
- import { n as l, t as u } from "./Validator-DjZz2bJs.js";
4
- import { t as d } from "./UDragFile-CAiSfTsp.js";
5
- import { t as f } from "./SpinnerLoader-h8RDIarB.js";
6
- import { a as p, c as m, d as h, i as g, l as _, n as v, o as y, r as b, s as x, t as S, u as C } from "./HeaderUpdate-lrSYWsKp.js";
7
- import w, { createRef as T } from "react";
8
- import { Fragment as E, jsx as D, jsxs as O } from "react/jsx-runtime";
9
- import { Form as k, Link as A } from "react-router-dom";
10
- import { Helmet as j } from "react-helmet-async";
3
+ import { n as l, r as u, t as d } from "./Validator-CXYkI7vJ.js";
4
+ import { t as f } from "./UDragFile-CAiSfTsp.js";
5
+ import { t as p } from "./SpinnerLoader-h8RDIarB.js";
6
+ import { a as m, c as h, d as g, i as _, l as v, n as y, o as b, r as x, s as S, t as C, u as w } from "./HeaderUpdate-CYN7fndV.js";
7
+ import T, { createRef as E } from "react";
8
+ import { Fragment as D, jsx as O, jsxs as k } from "react/jsx-runtime";
9
+ import { Form as A, Link as j } from "react-router-dom";
10
+ import { Helmet as M } from "react-helmet-async";
11
11
  //#region src/hook/detail.ts
12
- var M = (e, t) => {
12
+ var N = (e) => {
13
13
  e.preventDefault();
14
- let { name: n, type: r, value: i } = e.target;
15
- if (r === "file") {
16
- let r = e.target.files;
17
- t[n] = r ? r[0] : null;
18
- } else t[n] = i;
19
- return t;
20
- }, N = (e, t, n, r, i, a) => {
14
+ let { name: t, type: n, value: r } = e.target;
15
+ if (n === "file") {
16
+ let n = e.target.files;
17
+ return { [t]: n ? n[0] : null };
18
+ }
19
+ return { [t]: r };
20
+ }, P = (e, t, n, r, i, a) => {
21
21
  if (!a) return !1;
22
22
  if (a == 1) return !0;
23
23
  for (let o of e) {
24
24
  if (o.module == t && o.controller == n && o.action == r && o.code == i && o.status !== 1) return o.isPer;
25
- if (o.subs && o.subs.length > 0 && !N(o.subs, t, n, r, i, a)) return !1;
25
+ if (o.subs && o.subs.length > 0 && !P(o.subs, t, n, r, i, a)) return !1;
26
26
  }
27
27
  return !0;
28
- }, { API_URL: P, ADMIN_URI: F } = await e(), I = class extends w.Component {
28
+ }, { API_URL: F, ADMIN_URI: I } = await e(), L = class extends T.Component {
29
29
  effectRan = !1;
30
30
  module = "admins";
31
31
  controller = "";
@@ -37,16 +37,17 @@ var M = (e, t) => {
37
37
  };
38
38
  title = "";
39
39
  cUri = "";
40
- cLink = F + this.cUri;
41
- API_URL = P;
42
- ADMIN_URI = F;
40
+ cLink = I + this.cUri;
41
+ API_URL = F;
42
+ ADMIN_URI = I;
43
43
  getDataUrl = "";
44
44
  ctype = "application/json";
45
45
  fluid = !1;
46
46
  isBackUri = !0;
47
- renderForm = () => /* @__PURE__ */ D(E, {});
47
+ debug = !1;
48
+ renderForm = () => /* @__PURE__ */ O(D, {});
48
49
  syncPermissionsAndState = async () => {
49
- let { menuData: e, user: t } = this.props, n = { isDetail: N(e, this.module, this.controller, "detail", 0, t.groupId) };
50
+ let { menuData: e, user: t } = this.props, n = { isDetail: P(e, this.module, this.controller, "detail", 0, t.groupId) };
50
51
  this.setState(n, async () => {
51
52
  let e = r();
52
53
  if (e && n.isDetail) {
@@ -73,7 +74,7 @@ var M = (e, t) => {
73
74
  }
74
75
  componentDidMountAfter = async () => {};
75
76
  renderHeaderDetail() {
76
- return /* @__PURE__ */ D(b, {
77
+ return /* @__PURE__ */ O(x, {
77
78
  adminUri: this.ADMIN_URI,
78
79
  title: this.title,
79
80
  cUri: this.cUri
@@ -81,23 +82,23 @@ var M = (e, t) => {
81
82
  }
82
83
  handleChange = async (e) => {
83
84
  e.preventDefault();
84
- let t = await M(e, { ...this.state.formValue });
85
- this.setState((e) => ({ formValue: {
85
+ let t = N(e);
86
+ this.debug && console.log("handleChange:", e.target.name, e.target.value), this.setState((e) => ({ formValue: {
86
87
  ...e.formValue,
87
88
  ...t
88
89
  } }));
89
90
  };
90
91
  render() {
91
92
  let { isDetail: e, item: t } = this.state;
92
- return e ? t === !1 ? /* @__PURE__ */ D(g, {
93
+ return e ? t === !1 ? /* @__PURE__ */ O(_, {
93
94
  cUriTitle: this.title,
94
95
  cUri: this.cUri,
95
96
  title: this.title + " | Chi tiết"
96
- }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("title", { children: this.title }) }), /* @__PURE__ */ O("div", {
97
+ }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ O("title", { children: this.title }) }), /* @__PURE__ */ k("div", {
97
98
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
98
- children: [this.renderHeaderDetail(), /* @__PURE__ */ D("div", {
99
+ children: [this.renderHeaderDetail(), /* @__PURE__ */ O("div", {
99
100
  className: "position-relative",
100
- children: /* @__PURE__ */ D(f, {
101
+ children: /* @__PURE__ */ O(p, {
101
102
  loading: !t,
102
103
  style: {
103
104
  minHeight: 200,
@@ -106,22 +107,22 @@ var M = (e, t) => {
106
107
  children: this.renderForm()
107
108
  })
108
109
  })]
109
- })] }) : /* @__PURE__ */ D(p, {
110
+ })] }) : /* @__PURE__ */ O(m, {
110
111
  cUriTitle: this.title,
111
112
  cUri: this.cUri,
112
113
  title: this.title + " | Chi tiết",
113
114
  fluid: this.fluid
114
115
  });
115
116
  }
116
- }, L = (e, t) => {
117
+ }, R = (e) => {
117
118
  e.preventDefault();
118
- let { name: n, type: r, value: i } = e.target;
119
- if (r === "file") {
120
- let r = e.target.files;
121
- t[n] = r ? r[0] : null;
122
- } else t[n] = i;
123
- return t;
124
- }, { API_URL: R, ADMIN_URI: z } = await e(), B = class extends w.Component {
119
+ let { name: t, type: n, value: r } = e.target;
120
+ if (n === "file") {
121
+ let n = e.target.files;
122
+ return { [t]: n ? n[0] : null };
123
+ }
124
+ return { [t]: r };
125
+ }, { API_URL: z, ADMIN_URI: B } = await e(), V = class extends T.Component {
125
126
  effectRan = !1;
126
127
  module = "admins";
127
128
  controller = "";
@@ -134,33 +135,34 @@ var M = (e, t) => {
134
135
  };
135
136
  title = "";
136
137
  cUri = "";
137
- cLink = z + this.cUri;
138
- API_URL = R;
139
- ADMIN_URI = z;
138
+ cLink = B + this.cUri;
139
+ API_URL = z;
140
+ ADMIN_URI = B;
140
141
  getDataUrl = "";
141
142
  editUrl = "";
142
143
  createUrl = "";
143
144
  ctype = "application/json";
144
145
  fluid = !1;
145
146
  isBackUri = !1;
146
- renderForm = () => /* @__PURE__ */ D(E, {});
147
- renderAfterForm = () => /* @__PURE__ */ D(E, {});
147
+ debug = !1;
148
+ renderForm = () => /* @__PURE__ */ O(D, {});
149
+ renderAfterForm = () => /* @__PURE__ */ O(D, {});
148
150
  handleChange = async (e) => {
149
151
  e.preventDefault();
150
- let t = await L(e, { ...this.state.formValue });
151
- this.setState((e) => ({ formValue: {
152
+ let t = R(e);
153
+ this.debug && console.log("handleChange:", e.target.name, e.target.value), this.setState((e) => ({ formValue: {
152
154
  ...e.formValue,
153
155
  ...t
154
156
  } }));
155
157
  };
156
158
  syncPermissionsAndState = async () => {
157
- let { menuData: e, user: t } = this.props, n = { isDetail: N(e, this.module, this.controller, "detail", 0, t.groupId) };
159
+ let { menuData: e, user: t } = this.props, n = { isDetail: P(e, this.module, this.controller, "detail", 0, t.groupId) };
158
160
  this.setState(n, async () => {
159
161
  let e = (await o(this.getDataUrl, { table: this.table }, "GET", "application/json", !1))?.data;
160
162
  this.setState({
161
163
  item: e || !1,
162
164
  formValue: e ? { ...e } : {}
163
- }), new u("#fieldUpdate").run();
165
+ }), new d("#fieldUpdate").run();
164
166
  });
165
167
  };
166
168
  async initDidMount() {
@@ -177,7 +179,7 @@ var M = (e, t) => {
177
179
  componentDidMountAfter = async () => {};
178
180
  handleSubmit = async (e) => {
179
181
  e.preventDefault();
180
- let { formValue: t } = this.state, r = new u("#fieldUpdate");
182
+ let { formValue: t } = this.state, r = new d("#fieldUpdate");
181
183
  if (!r.hasErrors() && !r.isIncomplete()) {
182
184
  n("#fieldUpdate", !0);
183
185
  try {
@@ -201,7 +203,7 @@ var M = (e, t) => {
201
203
  };
202
204
  afterSubmit = async (e) => {};
203
205
  renderHeaderUpdate() {
204
- return /* @__PURE__ */ D(S, {
206
+ return /* @__PURE__ */ O(C, {
205
207
  adminUri: this.ADMIN_URI,
206
208
  title: this.title,
207
209
  cUri: this.cUri,
@@ -210,16 +212,16 @@ var M = (e, t) => {
210
212
  }
211
213
  render() {
212
214
  let { isDetail: e, item: t } = this.state;
213
- return e === !1 ? /* @__PURE__ */ D(p, {
215
+ return e === !1 ? /* @__PURE__ */ O(m, {
214
216
  cUriTitle: this.title,
215
217
  cUri: this.cUri,
216
218
  title: this.title,
217
219
  fluid: this.fluid
218
- }) : /* @__PURE__ */ O(E, { children: [
219
- /* @__PURE__ */ D(j, { children: /* @__PURE__ */ O("title", { children: [this.title, " | Tùy chỉnh dữ liệu"] }) }),
220
- /* @__PURE__ */ D("div", {
220
+ }) : /* @__PURE__ */ k(D, { children: [
221
+ /* @__PURE__ */ O(M, { children: /* @__PURE__ */ k("title", { children: [this.title, " | Tùy chỉnh dữ liệu"] }) }),
222
+ /* @__PURE__ */ O("div", {
221
223
  className: `position-relative mb-3 ${this.fluid ? "container-fluid" : "container"}`,
222
- children: /* @__PURE__ */ D(k, {
224
+ children: /* @__PURE__ */ O(A, {
223
225
  id: "fieldUpdate",
224
226
  className: "position-relative",
225
227
  method: "post",
@@ -227,7 +229,7 @@ var M = (e, t) => {
227
229
  "data-toggle": "validator",
228
230
  role: "form",
229
231
  onSubmit: this.handleSubmit,
230
- children: /* @__PURE__ */ O(f, {
232
+ children: /* @__PURE__ */ k(p, {
231
233
  loading: !t,
232
234
  style: {
233
235
  minHeight: 200,
@@ -240,7 +242,7 @@ var M = (e, t) => {
240
242
  this.renderAfterForm()
241
243
  ] });
242
244
  }
243
- }, { API_URL: V, ADMIN_URI: H } = await e(), U = class extends w.Component {
245
+ }, { API_URL: H, ADMIN_URI: U } = await e(), W = class extends T.Component {
244
246
  module = "admins";
245
247
  controller = "";
246
248
  state = {
@@ -251,9 +253,9 @@ var M = (e, t) => {
251
253
  };
252
254
  title = "";
253
255
  cUri = "";
254
- cLink = H + this.cUri;
255
- API_URL = V;
256
- ADMIN_URI = H;
256
+ cLink = U + this.cUri;
257
+ API_URL = H;
258
+ ADMIN_URI = U;
257
259
  importUrl = "";
258
260
  importFile = "assetorigin.xlsx";
259
261
  ctype = "multipart/form-data";
@@ -274,11 +276,11 @@ var M = (e, t) => {
274
276
  };
275
277
  syncPermissionsAndState = () => {
276
278
  let { menuData: e, user: t } = this.props, n = {
277
- isCre: N(e, this.module, this.controller, "update", 0, t.groupId),
278
- isEdit: N(e, this.module, this.controller, "update", 1, t.groupId)
279
+ isCre: P(e, this.module, this.controller, "update", 0, t.groupId),
280
+ isEdit: P(e, this.module, this.controller, "update", 1, t.groupId)
279
281
  };
280
282
  this.setState(n, async () => {
281
- new u("#itemImport").run();
283
+ new d("#itemImport").run();
282
284
  });
283
285
  };
284
286
  async initDidMount() {
@@ -294,7 +296,7 @@ var M = (e, t) => {
294
296
  componentDidMountAfter = async () => {};
295
297
  handleSubmit = async (e) => {
296
298
  e.preventDefault();
297
- let { formValue: t } = this.state, r = new u("#itemImport");
299
+ let { formValue: t } = this.state, r = new d("#itemImport");
298
300
  if (!r.hasErrors() && !r.isIncomplete()) {
299
301
  n("#itemImport", !0);
300
302
  try {
@@ -307,7 +309,7 @@ var M = (e, t) => {
307
309
  }
308
310
  }
309
311
  };
310
- renderForm = () => /* @__PURE__ */ D(E, { children: /* @__PURE__ */ D(d, {
312
+ renderForm = () => /* @__PURE__ */ O(D, { children: /* @__PURE__ */ O(f, {
311
313
  onChange: this.handleChange,
312
314
  label: "Import excel",
313
315
  name: "importfile",
@@ -315,18 +317,18 @@ var M = (e, t) => {
315
317
  }) });
316
318
  render() {
317
319
  let { isCre: e, isEdit: t } = this.state;
318
- return e === !1 && t === !1 ? /* @__PURE__ */ D(p, {
320
+ return e === !1 && t === !1 ? /* @__PURE__ */ O(m, {
319
321
  cUriTitle: this.title,
320
322
  cUri: this.cUri,
321
323
  title: this.title + " | Import",
322
324
  fluid: this.fluid
323
- }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ O("title", { children: [
325
+ }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ k("title", { children: [
324
326
  this.title,
325
327
  " | ",
326
328
  "Import"
327
- ] }) }), /* @__PURE__ */ D("div", {
329
+ ] }) }), /* @__PURE__ */ O("div", {
328
330
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
329
- children: /* @__PURE__ */ O(k, {
331
+ children: /* @__PURE__ */ k(A, {
330
332
  id: "itemImport",
331
333
  className: "position-relative",
332
334
  action: this.importUrl,
@@ -335,71 +337,71 @@ var M = (e, t) => {
335
337
  "data-toggle": "validator",
336
338
  role: "form",
337
339
  onSubmit: this.handleSubmit,
338
- children: [/* @__PURE__ */ O("div", {
340
+ children: [/* @__PURE__ */ k("div", {
339
341
  className: "navbar navbar-main navbar-expand-lg px-0 shadow-none border-radius-xl py-3",
340
- children: [/* @__PURE__ */ D("nav", {
342
+ children: [/* @__PURE__ */ O("nav", {
341
343
  "aria-label": "breadcrumb",
342
- children: /* @__PURE__ */ O("ol", {
344
+ children: /* @__PURE__ */ k("ol", {
343
345
  className: "breadcrumb bg-transparent m-0 p-0",
344
346
  children: [
345
- /* @__PURE__ */ D("li", {
347
+ /* @__PURE__ */ O("li", {
346
348
  className: "breadcrumb-item",
347
- children: /* @__PURE__ */ D(A, {
349
+ children: /* @__PURE__ */ O(j, {
348
350
  className: "text-white",
349
351
  to: this.ADMIN_URI || "/",
350
- children: /* @__PURE__ */ D("i", { className: "fal fa-home" })
352
+ children: /* @__PURE__ */ O("i", { className: "fal fa-home" })
351
353
  })
352
354
  }),
353
- /* @__PURE__ */ D("li", {
355
+ /* @__PURE__ */ O("li", {
354
356
  className: "breadcrumb-item",
355
- children: /* @__PURE__ */ D(A, {
357
+ children: /* @__PURE__ */ O(j, {
356
358
  className: "text-white",
357
359
  to: this.cUri,
358
360
  children: this.title
359
361
  })
360
362
  }),
361
- /* @__PURE__ */ D("li", {
363
+ /* @__PURE__ */ O("li", {
362
364
  className: "breadcrumb-item text-white active",
363
365
  "aria-current": "page",
364
366
  children: "Import"
365
367
  })
366
368
  ]
367
369
  })
368
- }), /* @__PURE__ */ O("div", {
370
+ }), /* @__PURE__ */ k("div", {
369
371
  className: "ms-auto",
370
- children: [/* @__PURE__ */ D(A, {
372
+ children: [/* @__PURE__ */ O(j, {
371
373
  target: "_blank",
372
374
  to: this.API_URL + "/importfile/" + this.importFile,
373
375
  className: "btn btn-sm btn-icon btn-info me-2",
374
376
  title: "Tải xuống biểu mẫu",
375
- children: /* @__PURE__ */ D("i", {
377
+ children: /* @__PURE__ */ O("i", {
376
378
  className: "material-icons text-white position-relative text-lg",
377
379
  children: "file_download"
378
380
  })
379
- }), /* @__PURE__ */ D(A, {
381
+ }), /* @__PURE__ */ O(j, {
380
382
  to: this.cUri,
381
383
  className: "btn btn-sm btn-icon btn-secondary",
382
384
  title: "Trở lại",
383
- children: /* @__PURE__ */ D("i", {
385
+ children: /* @__PURE__ */ O("i", {
384
386
  className: "material-icons text-white position-relative text-lg",
385
387
  children: "reply"
386
388
  })
387
389
  })]
388
390
  })]
389
- }), /* @__PURE__ */ D("div", {
391
+ }), /* @__PURE__ */ O("div", {
390
392
  className: "card",
391
- children: /* @__PURE__ */ D("div", {
393
+ children: /* @__PURE__ */ O("div", {
392
394
  className: "card-body pb-0",
393
- children: /* @__PURE__ */ D("div", {
395
+ children: /* @__PURE__ */ O("div", {
394
396
  className: "row justify-content-center",
395
- children: /* @__PURE__ */ O("div", {
397
+ children: /* @__PURE__ */ k("div", {
396
398
  className: "col-md-8 pt-5 pb-4",
397
399
  children: [
398
- /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
400
+ /* @__PURE__ */ O("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
399
401
  this.renderForm(),
400
- /* @__PURE__ */ D("div", {
402
+ /* @__PURE__ */ O("div", {
401
403
  className: "w-100 d-flex",
402
- children: /* @__PURE__ */ D("button", {
404
+ children: /* @__PURE__ */ O("button", {
403
405
  title: "Import",
404
406
  type: "submit",
405
407
  className: "btn btn-success mb-4 mx-auto",
@@ -414,7 +416,7 @@ var M = (e, t) => {
414
416
  })
415
417
  })] });
416
418
  }
417
- }, { API_URL: W, ADMIN_URI: G } = await e(), K = class extends w.Component {
419
+ }, { API_URL: G, ADMIN_URI: K } = await e(), q = class extends T.Component {
418
420
  effectRan = !1;
419
421
  fluid = !1;
420
422
  module = "admins";
@@ -453,9 +455,9 @@ var M = (e, t) => {
453
455
  "del"
454
456
  ];
455
457
  cUri = "";
456
- cLink = G + this.cUri;
457
- API_URL = W;
458
- ADMIN_URI = G;
458
+ cLink = K + this.cUri;
459
+ API_URL = G;
460
+ ADMIN_URI = K;
459
461
  getDataUrl = "";
460
462
  deleteUrl = "";
461
463
  copyUrl = "";
@@ -464,7 +466,7 @@ var M = (e, t) => {
464
466
  handleChange = async (e) => {
465
467
  try {
466
468
  e.preventDefault();
467
- let { name: t } = e.target, n = await x(e, this.state.data.filter || {});
469
+ let { name: t } = e.target, n = await v(e, this.state.data.filter || {});
468
470
  if (t === "pageLen") {
469
471
  await this.setFilter(n);
470
472
  let e = n ? a(n) : "";
@@ -480,7 +482,7 @@ var M = (e, t) => {
480
482
  handleSearchForm = async (e) => {
481
483
  try {
482
484
  e.preventDefault();
483
- let t = await _(this.state.data.filter || {}, this.cUri, this.props.navigate);
485
+ let t = await h(this.state.data.filter || {}, this.cUri, this.props.navigate);
484
486
  await this.setFilter(t), await this.fetchData();
485
487
  } catch (e) {
486
488
  console.log(e);
@@ -489,7 +491,7 @@ var M = (e, t) => {
489
491
  handleClickPage = async (e) => {
490
492
  try {
491
493
  e.preventDefault();
492
- let t = await m(e, this.state.data.filter || {}, this.cUri, this.props.navigate);
494
+ let t = await S(e, this.state.data.filter || {}, this.cUri, this.props.navigate);
493
495
  await this.setFilter(t), await this.fetchData();
494
496
  } catch (e) {
495
497
  s(e.message);
@@ -546,7 +548,7 @@ var M = (e, t) => {
546
548
  }
547
549
  fetchData = async () => {
548
550
  try {
549
- let e = await y(this.state.data.filter || {}, this.getDataUrl);
551
+ let e = await b(this.state.data.filter || {}, this.getDataUrl);
550
552
  if (!e || !("items" in e)) return;
551
553
  this.setState({
552
554
  data: {
@@ -565,12 +567,12 @@ var M = (e, t) => {
565
567
  });
566
568
  syncPermissionsAndState = async () => {
567
569
  let { menuData: e, user: t } = this.props, n = {
568
- isCre: this.activeMethod.includes("cre") ? N(e, this.module, this.controller, "update", 0, t.groupId) : !1,
569
- isEdit: this.activeMethod.includes("edit") ? N(e, this.module, this.controller, "update", 1, t.groupId) : !1,
570
- isDel: this.activeMethod.includes("del") ? N(e, this.module, this.controller, "delete", 0, t.groupId) : !1,
571
- isDelOne: this.activeMethod.includes("delone") ? N(e, this.module, this.controller, "delete", 1, t.groupId) : !1,
572
- isIndex: this.activeMethod.includes("ind") ? N(e, this.module, this.controller, "index", 0, t.groupId) : !1,
573
- isDetail: this.activeMethod.includes("det") ? N(e, this.module, this.controller, "detail", 0, t.groupId) : !1,
570
+ isCre: this.activeMethod.includes("cre") ? P(e, this.module, this.controller, "update", 0, t.groupId) : !1,
571
+ isEdit: this.activeMethod.includes("edit") ? P(e, this.module, this.controller, "update", 1, t.groupId) : !1,
572
+ isDel: this.activeMethod.includes("del") ? P(e, this.module, this.controller, "delete", 0, t.groupId) : !1,
573
+ isDelOne: this.activeMethod.includes("delone") ? P(e, this.module, this.controller, "delete", 1, t.groupId) : !1,
574
+ isIndex: this.activeMethod.includes("ind") ? P(e, this.module, this.controller, "index", 0, t.groupId) : !1,
575
+ isDetail: this.activeMethod.includes("det") ? P(e, this.module, this.controller, "detail", 0, t.groupId) : !1,
574
576
  isImport: !!this.activeMethod.includes("imp"),
575
577
  isExport: !!this.activeMethod.includes("exp"),
576
578
  isCopy: !!this.activeMethod.includes("cpy")
@@ -608,7 +610,7 @@ var M = (e, t) => {
608
610
  }
609
611
  componentDidMountAfter = async () => {};
610
612
  renderHeaderIndex() {
611
- return /* @__PURE__ */ D(v, {
613
+ return /* @__PURE__ */ O(y, {
612
614
  adminUri: this.ADMIN_URI,
613
615
  title: this.title,
614
616
  cUri: this.cUri,
@@ -623,41 +625,41 @@ var M = (e, t) => {
623
625
  onDelete: this.handleDelete
624
626
  });
625
627
  }
626
- renderTable = () => /* @__PURE__ */ D(E, {});
627
- renderSearch = () => /* @__PURE__ */ D(E, {});
628
+ renderTable = () => /* @__PURE__ */ O(D, {});
629
+ renderSearch = () => /* @__PURE__ */ O(D, {});
628
630
  render() {
629
631
  let { isIndex: e, data: t, loading: n } = this.state;
630
- return e === !1 ? /* @__PURE__ */ D(p, {
632
+ return e === !1 ? /* @__PURE__ */ O(m, {
631
633
  cUriTitle: this.title,
632
634
  cUri: this.cUri,
633
635
  title: this.title,
634
636
  fluid: this.fluid
635
- }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("title", { children: this.title }) }), /* @__PURE__ */ D(f, {
637
+ }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ O("title", { children: this.title }) }), /* @__PURE__ */ O(p, {
636
638
  loading: n,
637
- children: e && /* @__PURE__ */ O("div", {
639
+ children: e && /* @__PURE__ */ k("div", {
638
640
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
639
- children: [this.renderHeaderIndex(), /* @__PURE__ */ D("div", {
641
+ children: [this.renderHeaderIndex(), /* @__PURE__ */ O("div", {
640
642
  className: "card position-relative",
641
- children: /* @__PURE__ */ D("div", {
643
+ children: /* @__PURE__ */ O("div", {
642
644
  className: "card-body",
643
645
  style: { minHeight: "200px" },
644
- children: /* @__PURE__ */ O("div", {
646
+ children: /* @__PURE__ */ k("div", {
645
647
  className: "searchForm",
646
648
  children: [
647
- /* @__PURE__ */ D("form", {
649
+ /* @__PURE__ */ O("form", {
648
650
  onSubmit: this.handleSearchForm,
649
651
  children: this.renderSearch()
650
652
  }),
651
- t.items.length ? /* @__PURE__ */ D(C, {
653
+ t.items.length ? /* @__PURE__ */ O(w, {
652
654
  data: t,
653
655
  onChange: this.handleChange,
654
656
  onClickPage: this.handleClickPage
655
657
  }) : "",
656
- /* @__PURE__ */ D("div", {
658
+ /* @__PURE__ */ O("div", {
657
659
  className: "table-responsive mt-2",
658
660
  children: this.renderTable()
659
661
  }),
660
- t.items.length ? /* @__PURE__ */ D(C, {
662
+ t.items.length ? /* @__PURE__ */ O(w, {
661
663
  data: t,
662
664
  onChange: this.handleChange,
663
665
  onClickPage: this.handleClickPage
@@ -669,78 +671,78 @@ var M = (e, t) => {
669
671
  })
670
672
  })] });
671
673
  }
672
- }, q = ({ adminUri: e, cUri: t, title: n, itemId: r, isSave: i = !0, titleAction: a }) => /* @__PURE__ */ O("div", {
674
+ }, J = ({ adminUri: e, cUri: t, title: n, itemId: r, isSave: i = !0, titleAction: a }) => /* @__PURE__ */ k("div", {
673
675
  className: "navbar navbar-main navbar-expand-lg px-0 shadow-none border-radius-xl py-3",
674
- children: [/* @__PURE__ */ D("nav", {
676
+ children: [/* @__PURE__ */ O("nav", {
675
677
  "aria-label": "breadcrumb",
676
- children: /* @__PURE__ */ O("ol", {
678
+ children: /* @__PURE__ */ k("ol", {
677
679
  className: "breadcrumb bg-transparent m-0 p-0",
678
680
  children: [
679
- /* @__PURE__ */ D("li", {
681
+ /* @__PURE__ */ O("li", {
680
682
  className: "breadcrumb-item",
681
- children: /* @__PURE__ */ D(A, {
683
+ children: /* @__PURE__ */ O(j, {
682
684
  className: "text-white",
683
685
  to: e || "/",
684
- children: /* @__PURE__ */ D("i", { className: "fal fa-home" })
686
+ children: /* @__PURE__ */ O("i", { className: "fal fa-home" })
685
687
  })
686
688
  }),
687
- /* @__PURE__ */ D("li", {
689
+ /* @__PURE__ */ O("li", {
688
690
  className: "breadcrumb-item",
689
- children: /* @__PURE__ */ D(A, {
691
+ children: /* @__PURE__ */ O(j, {
690
692
  className: "text-white",
691
693
  to: t,
692
694
  children: n
693
695
  })
694
696
  }),
695
- /* @__PURE__ */ D("li", {
697
+ /* @__PURE__ */ O("li", {
696
698
  className: "breadcrumb-item text-white active",
697
699
  "aria-current": "page",
698
700
  children: a ?? (r ? "Chỉnh sửa" : "Thêm mới")
699
701
  })
700
702
  ]
701
703
  })
702
- }), /* @__PURE__ */ O("div", {
704
+ }), /* @__PURE__ */ k("div", {
703
705
  className: "ms-auto",
704
- children: [i && /* @__PURE__ */ D(h, {
706
+ children: [i && /* @__PURE__ */ O(g, {
705
707
  title: "Lưu lại",
706
- children: /* @__PURE__ */ D("button", {
708
+ children: /* @__PURE__ */ O("button", {
707
709
  type: "submit",
708
710
  className: "btn btn-sm btn-icon btn-success me-1",
709
- children: /* @__PURE__ */ D("i", {
711
+ children: /* @__PURE__ */ O("i", {
710
712
  className: "material-icons text-white position-relative text-lg",
711
713
  children: "save"
712
714
  })
713
715
  })
714
- }), /* @__PURE__ */ D(h, {
716
+ }), /* @__PURE__ */ O(g, {
715
717
  title: "Trở lại",
716
- children: /* @__PURE__ */ D(A, {
718
+ children: /* @__PURE__ */ O(j, {
717
719
  to: t,
718
720
  className: "btn btn-sm btn-icon btn-secondary",
719
- children: /* @__PURE__ */ D("i", {
721
+ children: /* @__PURE__ */ O("i", {
720
722
  className: "material-icons text-white position-relative text-lg",
721
723
  children: "reply"
722
724
  })
723
725
  })
724
726
  })]
725
727
  })]
726
- }), J = ({ title: e = "", cUri: t = "", fluid: n = !1, cUriTitle: r = "" }) => /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("title", { children: e || "Truy cập không được phép" }) }), /* @__PURE__ */ O("div", {
728
+ }), Y = ({ title: e = "", cUri: t = "", fluid: n = !1, cUriTitle: r = "" }) => /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ O("title", { children: e || "Truy cập không được phép" }) }), /* @__PURE__ */ k("div", {
727
729
  className: `${n ? "container-fluid" : "container"}`,
728
- children: [/* @__PURE__ */ D("div", {
730
+ children: [/* @__PURE__ */ O("div", {
729
731
  className: "navbar navbar-main navbar-expand-lg px-0 shadow-none border-radius-xl py-3",
730
- children: /* @__PURE__ */ D("nav", {
732
+ children: /* @__PURE__ */ O("nav", {
731
733
  "aria-label": "breadcrumb",
732
- children: /* @__PURE__ */ O("ol", {
734
+ children: /* @__PURE__ */ k("ol", {
733
735
  className: "breadcrumb bg-transparent m-0 p-0",
734
- children: [/* @__PURE__ */ D("li", {
736
+ children: [/* @__PURE__ */ O("li", {
735
737
  className: "breadcrumb-item",
736
- children: /* @__PURE__ */ D(A, {
738
+ children: /* @__PURE__ */ O(j, {
737
739
  className: "text-white",
738
740
  to: "/",
739
- children: /* @__PURE__ */ D("i", { className: "fal fa-home" })
741
+ children: /* @__PURE__ */ O("i", { className: "fal fa-home" })
740
742
  })
741
- }), /* @__PURE__ */ D("li", {
743
+ }), /* @__PURE__ */ O("li", {
742
744
  className: "breadcrumb-item",
743
- children: /* @__PURE__ */ D(A, {
745
+ children: /* @__PURE__ */ O(j, {
744
746
  className: "text-white",
745
747
  to: t,
746
748
  children: r
@@ -748,25 +750,25 @@ var M = (e, t) => {
748
750
  })]
749
751
  })
750
752
  })
751
- }), /* @__PURE__ */ D("div", {
753
+ }), /* @__PURE__ */ O("div", {
752
754
  style: { minHeight: "50vh" },
753
755
  className: "d-flex align-items-center",
754
- children: /* @__PURE__ */ O("div", {
756
+ children: /* @__PURE__ */ k("div", {
755
757
  className: "m-auto text-center",
756
758
  children: [
757
- /* @__PURE__ */ D("h1", {
759
+ /* @__PURE__ */ O("h1", {
758
760
  className: "display-1 text-bolder text-white",
759
761
  children: "403"
760
762
  }),
761
- /* @__PURE__ */ D("h2", {
763
+ /* @__PURE__ */ O("h2", {
762
764
  className: "text-white",
763
765
  children: "Truy cập không được phép"
764
766
  }),
765
- /* @__PURE__ */ D("p", {
767
+ /* @__PURE__ */ O("p", {
766
768
  className: "lead text-white",
767
769
  children: "Xin lỗi, bạn không có quyền truy cập vào trang này."
768
770
  }),
769
- /* @__PURE__ */ D(A, {
771
+ /* @__PURE__ */ O(j, {
770
772
  to: "/",
771
773
  className: "btn btn-outline-white mt-4",
772
774
  children: "trang chủ"
@@ -774,24 +776,24 @@ var M = (e, t) => {
774
776
  ]
775
777
  })
776
778
  })]
777
- })] }), Y = ({ title: e = "", cUri: t = "", fluid: n = !1, cUriTitle: r = "" }) => /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ D("title", { children: e || "Không tìm thấy dữ liệu" }) }), /* @__PURE__ */ O("div", {
779
+ })] }), X = ({ title: e = "", cUri: t = "", fluid: n = !1, cUriTitle: r = "" }) => /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ O("title", { children: e || "Không tìm thấy dữ liệu" }) }), /* @__PURE__ */ k("div", {
778
780
  className: `${n ? "container-fluid" : "container"}`,
779
- children: [/* @__PURE__ */ D("div", {
781
+ children: [/* @__PURE__ */ O("div", {
780
782
  className: "navbar navbar-main navbar-expand-lg px-0 shadow-none border-radius-xl py-3",
781
- children: /* @__PURE__ */ D("nav", {
783
+ children: /* @__PURE__ */ O("nav", {
782
784
  "aria-label": "breadcrumb",
783
- children: /* @__PURE__ */ O("ol", {
785
+ children: /* @__PURE__ */ k("ol", {
784
786
  className: "breadcrumb bg-transparent m-0 p-0",
785
- children: [/* @__PURE__ */ D("li", {
787
+ children: [/* @__PURE__ */ O("li", {
786
788
  className: "breadcrumb-item",
787
- children: /* @__PURE__ */ D(A, {
789
+ children: /* @__PURE__ */ O(j, {
788
790
  className: "text-white",
789
791
  to: "/",
790
- children: /* @__PURE__ */ D("i", { className: "fal fa-home" })
792
+ children: /* @__PURE__ */ O("i", { className: "fal fa-home" })
791
793
  })
792
- }), /* @__PURE__ */ D("li", {
794
+ }), /* @__PURE__ */ O("li", {
793
795
  className: "breadcrumb-item",
794
- children: /* @__PURE__ */ D(A, {
796
+ children: /* @__PURE__ */ O(j, {
795
797
  className: "text-white",
796
798
  to: t,
797
799
  children: r
@@ -799,25 +801,25 @@ var M = (e, t) => {
799
801
  })]
800
802
  })
801
803
  })
802
- }), /* @__PURE__ */ D("div", {
804
+ }), /* @__PURE__ */ O("div", {
803
805
  style: { minHeight: "50vh" },
804
806
  className: "d-flex align-items-center",
805
- children: /* @__PURE__ */ O("div", {
807
+ children: /* @__PURE__ */ k("div", {
806
808
  className: "m-auto text-center",
807
809
  children: [
808
- /* @__PURE__ */ D("h1", {
810
+ /* @__PURE__ */ O("h1", {
809
811
  className: "display-1 text-bolder text-white",
810
812
  children: "404"
811
813
  }),
812
- /* @__PURE__ */ D("h2", {
814
+ /* @__PURE__ */ O("h2", {
813
815
  className: "text-white",
814
816
  children: "Không tìm thấy dữ liệu"
815
817
  }),
816
- /* @__PURE__ */ D("p", {
818
+ /* @__PURE__ */ O("p", {
817
819
  className: "lead text-white",
818
820
  children: "Xin lỗi, dữ liệu của bạn không được tìm thấy"
819
821
  }),
820
- /* @__PURE__ */ D(A, {
822
+ /* @__PURE__ */ O(j, {
821
823
  to: "/",
822
824
  className: "btn btn-outline-white mt-4",
823
825
  children: "trang chủ"
@@ -825,7 +827,7 @@ var M = (e, t) => {
825
827
  ]
826
828
  })
827
829
  })]
828
- })] }), { API_URL: X, ADMIN_URI: Z } = await e(), Q = class extends w.Component {
830
+ })] }), { API_URL: Z, ADMIN_URI: Q } = await e(), $ = class extends T.Component {
829
831
  effectRan = !1;
830
832
  module = "admins";
831
833
  controller = "";
@@ -840,9 +842,9 @@ var M = (e, t) => {
840
842
  };
841
843
  title = "";
842
844
  cUri = "";
843
- cLink = Z + this.cUri;
844
- API_URL = X;
845
- ADMIN_URI = Z;
845
+ cLink = Q + this.cUri;
846
+ API_URL = Z;
847
+ ADMIN_URI = Q;
846
848
  getDataUrl = "";
847
849
  editUrl = "";
848
850
  createUrl = "";
@@ -850,24 +852,22 @@ var M = (e, t) => {
850
852
  formRef;
851
853
  fluid = !1;
852
854
  isBackUri = !0;
855
+ debug = !1;
853
856
  constructor(e) {
854
- super(e), this.formRef = w.createRef();
857
+ super(e), this.formRef = T.createRef();
855
858
  }
856
- renderForm = () => /* @__PURE__ */ D(E, {});
857
- renderAfterForm = () => /* @__PURE__ */ D(E, {});
858
- handleChange = async (e) => {
859
+ renderForm = () => /* @__PURE__ */ O(D, {});
860
+ renderAfterForm = () => /* @__PURE__ */ O(D, {});
861
+ handleChange = (e) => {
859
862
  e.preventDefault();
860
- let t = await l(e, { ...this.state.formValue });
861
- this.setState((e) => ({ formValue: {
862
- ...e.formValue,
863
- ...t
864
- } }));
863
+ let t = u(e);
864
+ this.setState((e) => ({ formValue: l(e.formValue, t) }));
865
865
  };
866
866
  syncPermissionsAndState = async () => {
867
867
  let { menuData: e, user: t } = this.props, n = {
868
- isCre: N(e, this.module, this.controller, "update", 0, t.groupId),
869
- isEdit: N(e, this.module, this.controller, "update", 1, t.groupId),
870
- isDetail: N(e, this.module, this.controller, "detail", 0, t.groupId)
868
+ isCre: P(e, this.module, this.controller, "update", 0, t.groupId),
869
+ isEdit: P(e, this.module, this.controller, "update", 1, t.groupId),
870
+ isDetail: P(e, this.module, this.controller, "detail", 0, t.groupId)
871
871
  };
872
872
  this.setState(n, async () => {
873
873
  let e = r();
@@ -877,11 +877,11 @@ var M = (e, t) => {
877
877
  item: t || !1,
878
878
  formValue: t ? JSON.parse(JSON.stringify(t)) : {}
879
879
  }, async () => {
880
- this.setState({ loading: !1 }), await this.componentDidMountAfter(), this.formRef.current && new u(this.formRef.current).run();
880
+ this.setState({ loading: !1 }), await this.componentDidMountAfter(), this.formRef.current && new d(this.formRef.current).run();
881
881
  });
882
882
  } else {
883
883
  if (this.setState({ loading: !1 }), await this.componentDidMountAfter(), !this.formRef.current) return;
884
- new u(this.formRef.current).run();
884
+ new d(this.formRef.current).run();
885
885
  }
886
886
  });
887
887
  };
@@ -902,7 +902,7 @@ var M = (e, t) => {
902
902
  });
903
903
  handleSubmit = async (e) => {
904
904
  e.preventDefault();
905
- let { item: t, formValue: n } = this.state, r = Number(t?.id), i = new u(this.formRef.current);
905
+ let { item: t, formValue: n } = this.state, r = Number(t?.id), i = new d(this.formRef.current);
906
906
  !i.hasErrors() && !i.isIncomplete() && this.formRef.current && this.beforeSubmit().then(async () => {
907
907
  this.setState({ loading: !0 });
908
908
  try {
@@ -925,7 +925,7 @@ var M = (e, t) => {
925
925
  };
926
926
  afterSubmit = async (e) => {};
927
927
  renderHeaderUpdate() {
928
- return /* @__PURE__ */ D(q, {
928
+ return /* @__PURE__ */ O(J, {
929
929
  adminUri: this.ADMIN_URI,
930
930
  title: this.title,
931
931
  cUri: this.cUri,
@@ -934,24 +934,24 @@ var M = (e, t) => {
934
934
  }
935
935
  render() {
936
936
  let e = r(), { isCre: t, isEdit: n, isDetail: a, item: o } = this.state;
937
- return t === !1 && n === !1 && a === !1 || t === !1 && e === 0 || (n === !1 || a === !1) && e ? /* @__PURE__ */ D(J, {
937
+ return t === !1 && n === !1 && a === !1 || t === !1 && e === 0 || (n === !1 || a === !1) && e ? /* @__PURE__ */ O(Y, {
938
938
  cUriTitle: this.title,
939
939
  cUri: this.cUri,
940
940
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới"),
941
941
  fluid: this.fluid
942
- }) : e && o === !1 ? /* @__PURE__ */ D(Y, {
942
+ }) : e && o === !1 ? /* @__PURE__ */ O(X, {
943
943
  cUriTitle: this.title,
944
944
  cUri: this.cUri,
945
945
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới")
946
- }) : /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ O("title", { children: [
946
+ }) : /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ k("title", { children: [
947
947
  this.title,
948
948
  " | ",
949
949
  o?.id ? "Chỉnh sửa" : "Thêm mới"
950
- ] }) }), /* @__PURE__ */ O("div", {
950
+ ] }) }), /* @__PURE__ */ k("div", {
951
951
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
952
952
  children: [
953
- /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
954
- /* @__PURE__ */ D(k, {
953
+ /* @__PURE__ */ O("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
954
+ /* @__PURE__ */ O(A, {
955
955
  ref: this.formRef,
956
956
  className: "position-relative",
957
957
  method: "post",
@@ -959,7 +959,7 @@ var M = (e, t) => {
959
959
  "data-toggle": "validator",
960
960
  role: "form",
961
961
  onSubmit: this.handleSubmit,
962
- children: /* @__PURE__ */ O(f, {
962
+ children: /* @__PURE__ */ k(p, {
963
963
  loading: !!this.state.loading,
964
964
  style: {
965
965
  minHeight: 200,
@@ -972,37 +972,37 @@ var M = (e, t) => {
972
972
  ]
973
973
  })] });
974
974
  }
975
- }, $ = class extends Q {
975
+ }, ee = class extends $ {
976
976
  urlUpdateDetail = "";
977
977
  render() {
978
978
  let e = r(), { isCre: t, isEdit: n, isDetail: a, item: o } = this.state;
979
- return t === !1 && n === !1 && a === !1 || t === !1 && e === 0 || (n === !1 || a === !1) && e ? /* @__PURE__ */ D(J, {
979
+ return t === !1 && n === !1 && a === !1 || t === !1 && e === 0 || (n === !1 || a === !1) && e ? /* @__PURE__ */ O(Y, {
980
980
  cUriTitle: this.title,
981
981
  cUri: this.cUri,
982
982
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới"),
983
983
  fluid: this.fluid
984
- }) : e && o === !1 ? /* @__PURE__ */ D(Y, {
984
+ }) : e && o === !1 ? /* @__PURE__ */ O(X, {
985
985
  cUriTitle: this.title,
986
986
  cUri: this.cUri,
987
987
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới")
988
- }) : (e && o || !e) && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ O("title", { children: [
988
+ }) : (e && o || !e) && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ k("title", { children: [
989
989
  this.title,
990
990
  " | ",
991
991
  o?.id ? "Chỉnh sửa" : "Thêm mới"
992
- ] }) }), /* @__PURE__ */ O("div", {
992
+ ] }) }), /* @__PURE__ */ k("div", {
993
993
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
994
994
  children: [
995
- /* @__PURE__ */ D(q, {
995
+ /* @__PURE__ */ O(J, {
996
996
  adminUri: this.ADMIN_URI,
997
997
  title: this.title,
998
998
  cUri: this.cUri,
999
999
  isSave: !1,
1000
1000
  itemId: o?.id
1001
1001
  }),
1002
- /* @__PURE__ */ D("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
1003
- /* @__PURE__ */ D("div", {
1002
+ /* @__PURE__ */ O("div", { dangerouslySetInnerHTML: { __html: i(this.state.error) } }),
1003
+ /* @__PURE__ */ O("div", {
1004
1004
  className: "position-relative",
1005
- children: /* @__PURE__ */ D(f, {
1005
+ children: /* @__PURE__ */ O(p, {
1006
1006
  loading: !!this.state.loading,
1007
1007
  style: {
1008
1008
  minHeight: 200,
@@ -1025,7 +1025,7 @@ var M = (e, t) => {
1025
1025
  }
1026
1026
  };
1027
1027
  editDetailAfter = async (e) => {};
1028
- }, ee = class extends Q {
1028
+ }, te = class extends $ {
1029
1029
  urlGetDeTableList = "";
1030
1030
  urlGetDeTable = "";
1031
1031
  urlCreDeTable = "";
@@ -1034,30 +1034,30 @@ var M = (e, t) => {
1034
1034
  modalRef;
1035
1035
  isBackUri = !1;
1036
1036
  constructor(e) {
1037
- super(e), this.modalRef = T();
1037
+ super(e), this.modalRef = E();
1038
1038
  }
1039
1039
  async fetchDataDetails() {
1040
1040
  return {};
1041
1041
  }
1042
1042
  render() {
1043
1043
  let e = r(), { isCre: t, isEdit: n, isDetail: i, item: a } = this.state;
1044
- return t === !1 && n === !1 && i === !1 || t === !1 && e === 0 || (n === !1 || i === !1) && e ? /* @__PURE__ */ D(J, {
1044
+ return t === !1 && n === !1 && i === !1 || t === !1 && e === 0 || (n === !1 || i === !1) && e ? /* @__PURE__ */ O(Y, {
1045
1045
  cUriTitle: this.title,
1046
1046
  cUri: this.cUri,
1047
1047
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới"),
1048
1048
  fluid: this.fluid
1049
- }) : e && a === !1 ? /* @__PURE__ */ D(Y, {
1049
+ }) : e && a === !1 ? /* @__PURE__ */ O(X, {
1050
1050
  cUriTitle: this.title,
1051
1051
  cUri: this.cUri,
1052
1052
  title: this.title + " | " + (e ? "Chỉnh sửa" : "Thêm mới")
1053
- }) : (e && a || !e) && /* @__PURE__ */ O(E, { children: [/* @__PURE__ */ D(j, { children: /* @__PURE__ */ O("title", { children: [
1053
+ }) : (e && a || !e) && /* @__PURE__ */ k(D, { children: [/* @__PURE__ */ O(M, { children: /* @__PURE__ */ k("title", { children: [
1054
1054
  this.title,
1055
1055
  " | ",
1056
1056
  a?.id ? "Chỉnh sửa" : "Thêm mới"
1057
- ] }) }), /* @__PURE__ */ O("div", {
1057
+ ] }) }), /* @__PURE__ */ k("div", {
1058
1058
  className: `mb-3 ${this.fluid ? "container-fluid" : "container"}`,
1059
1059
  children: [
1060
- /* @__PURE__ */ D(q, {
1060
+ /* @__PURE__ */ O(J, {
1061
1061
  adminUri: this.ADMIN_URI,
1062
1062
  title: this.title,
1063
1063
  cUri: this.cUri,
@@ -1070,13 +1070,13 @@ var M = (e, t) => {
1070
1070
  })] });
1071
1071
  }
1072
1072
  renderDeTable() {
1073
- return /* @__PURE__ */ D(E, {});
1073
+ return /* @__PURE__ */ O(D, {});
1074
1074
  }
1075
- renderModalDeBody = (e, t) => /* @__PURE__ */ D(E, {});
1075
+ renderModalDeBody = (e, t) => /* @__PURE__ */ O(D, {});
1076
1076
  handleDetailSubmit = async (e) => {
1077
1077
  e.preventDefault();
1078
1078
  };
1079
1079
  editDetailAfter = async (e) => {};
1080
1080
  };
1081
1081
  //#endregion
1082
- export { U as a, K as i, $ as n, B as o, Q as r, I as s, ee as t };
1082
+ export { W as a, q as i, ee as n, V as o, $ as r, L as s, te as t };