aq-fe-framework 0.1.114 → 0.1.115
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.
@@ -6673,43 +6673,47 @@ function AQCard({
|
|
6673
6673
|
] });
|
6674
6674
|
}
|
6675
6675
|
|
6676
|
-
// src/components/DataDisplay/
|
6676
|
+
// src/components/DataDisplay/IconText/MyIconText.tsx
|
6677
6677
|
import { Group as Group9, Text as Text8 } from "@mantine/core";
|
6678
6678
|
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
6679
|
+
|
6680
|
+
// src/components/DataDisplay/KeyLabel/MyKeyLabel.tsx
|
6681
|
+
import { Group as Group10, Text as Text9 } from "@mantine/core";
|
6682
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
6679
6683
|
function MyKeyLabel({ keyLabel, label }) {
|
6680
|
-
return /* @__PURE__ */
|
6681
|
-
/* @__PURE__ */
|
6684
|
+
return /* @__PURE__ */ jsxs26(Group10, { gap: 5, children: [
|
6685
|
+
/* @__PURE__ */ jsxs26(Text9, { fw: "bold", children: [
|
6682
6686
|
keyLabel,
|
6683
6687
|
":"
|
6684
6688
|
] }),
|
6685
|
-
/* @__PURE__ */
|
6689
|
+
/* @__PURE__ */ jsx47(Text9, { children: label })
|
6686
6690
|
] });
|
6687
6691
|
}
|
6688
6692
|
|
6689
6693
|
// src/components/DataDisplay/NumberFormatter/MyNumberFormatter.tsx
|
6690
6694
|
import { NumberFormatter } from "@mantine/core";
|
6691
|
-
import { jsx as
|
6695
|
+
import { jsx as jsx48 } from "react/jsx-runtime";
|
6692
6696
|
function MyNumberFormatter(_a) {
|
6693
6697
|
var rest = __objRest(_a, []);
|
6694
|
-
return /* @__PURE__ */
|
6698
|
+
return /* @__PURE__ */ jsx48(NumberFormatter, __spreadValues({ thousandSeparator: true, suffix: " VN\u0110" }, rest));
|
6695
6699
|
}
|
6696
6700
|
|
6697
6701
|
// src/components/DataDisplay/StatCard/AQStatCard1.tsx
|
6698
|
-
import { Box as Box2, Button as Button13, Flex as Flex3, Group as
|
6702
|
+
import { Box as Box2, Button as Button13, Flex as Flex3, Group as Group11, Paper as Paper6, Text as Text10 } from "@mantine/core";
|
6699
6703
|
import { IconArrowDownRight, IconArrowUpRight } from "@tabler/icons-react";
|
6700
|
-
import { Fragment as Fragment11, jsx as
|
6704
|
+
import { Fragment as Fragment11, jsx as jsx49, jsxs as jsxs27 } from "react/jsx-runtime";
|
6701
6705
|
function AQStatCard1({ title: title3, value, unit = "", description, icons, diff }) {
|
6702
|
-
return /* @__PURE__ */
|
6706
|
+
return /* @__PURE__ */ jsx49(Fragment11, { children: /* @__PURE__ */ jsxs27(
|
6703
6707
|
Paper6,
|
6704
6708
|
{
|
6705
6709
|
withBorder: true,
|
6706
6710
|
p: "md",
|
6707
6711
|
radius: "md",
|
6708
6712
|
children: [
|
6709
|
-
/* @__PURE__ */
|
6710
|
-
/* @__PURE__ */
|
6711
|
-
/* @__PURE__ */
|
6712
|
-
|
6713
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6714
|
+
/* @__PURE__ */ jsxs27(Flex3, { direction: "column", children: [
|
6715
|
+
/* @__PURE__ */ jsx49(
|
6716
|
+
Text10,
|
6713
6717
|
{
|
6714
6718
|
tt: "uppercase",
|
6715
6719
|
size: "lg",
|
@@ -6717,53 +6721,53 @@ function AQStatCard1({ title: title3, value, unit = "", description, icons, diff
|
|
6717
6721
|
children: title3
|
6718
6722
|
}
|
6719
6723
|
),
|
6720
|
-
unit == "" ? /* @__PURE__ */
|
6724
|
+
unit == "" ? /* @__PURE__ */ jsxs27(Text10, { size: "xs", style: { visibility: "hidden" }, children: [
|
6721
6725
|
"\u0110\u01A1n v\u1ECB: ",
|
6722
|
-
/* @__PURE__ */
|
6723
|
-
] }) : /* @__PURE__ */
|
6726
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6727
|
+
] }) : /* @__PURE__ */ jsxs27(Text10, { size: "xs", children: [
|
6724
6728
|
"\u0110\u01A1n v\u1ECB: ",
|
6725
|
-
/* @__PURE__ */
|
6729
|
+
/* @__PURE__ */ jsx49("strong", { children: unit })
|
6726
6730
|
] })
|
6727
6731
|
] }),
|
6728
|
-
/* @__PURE__ */
|
6732
|
+
/* @__PURE__ */ jsx49(Box2, { children: icons })
|
6729
6733
|
] }),
|
6730
|
-
/* @__PURE__ */
|
6731
|
-
|
6734
|
+
/* @__PURE__ */ jsxs27(
|
6735
|
+
Group11,
|
6732
6736
|
{
|
6733
6737
|
mt: "5",
|
6734
6738
|
align: "flex-end",
|
6735
6739
|
gap: "xs",
|
6736
6740
|
children: [
|
6737
|
-
/* @__PURE__ */
|
6738
|
-
|
6741
|
+
/* @__PURE__ */ jsx49(
|
6742
|
+
Text10,
|
6739
6743
|
{
|
6740
6744
|
fw: 700,
|
6741
6745
|
fz: "h1",
|
6742
6746
|
children: value
|
6743
6747
|
}
|
6744
6748
|
),
|
6745
|
-
/* @__PURE__ */
|
6746
|
-
|
6749
|
+
/* @__PURE__ */ jsxs27(
|
6750
|
+
Text10,
|
6747
6751
|
{
|
6748
6752
|
mb: "2",
|
6749
6753
|
c: diff > 0 ? "teal" : "red",
|
6750
6754
|
fz: "h2",
|
6751
6755
|
fw: 500,
|
6752
6756
|
children: [
|
6753
|
-
/* @__PURE__ */
|
6757
|
+
/* @__PURE__ */ jsxs27("span", { children: [
|
6754
6758
|
diff,
|
6755
6759
|
"%"
|
6756
6760
|
] }),
|
6757
|
-
diff > 0 ? /* @__PURE__ */
|
6761
|
+
diff > 0 ? /* @__PURE__ */ jsx49(IconArrowUpRight, {}) : /* @__PURE__ */ jsx49(IconArrowDownRight, {})
|
6758
6762
|
]
|
6759
6763
|
}
|
6760
6764
|
)
|
6761
6765
|
]
|
6762
6766
|
}
|
6763
6767
|
),
|
6764
|
-
/* @__PURE__ */
|
6765
|
-
/* @__PURE__ */
|
6766
|
-
/* @__PURE__ */
|
6768
|
+
/* @__PURE__ */ jsxs27(Group11, { justify: "space-between", children: [
|
6769
|
+
/* @__PURE__ */ jsx49(Text10, { tt: "uppercase", fz: "xs", c: "dimmed", children: description }),
|
6770
|
+
/* @__PURE__ */ jsx49(
|
6767
6771
|
Button13,
|
6768
6772
|
{
|
6769
6773
|
variant: "light",
|
@@ -6805,8 +6809,8 @@ function FaviconSetter() {
|
|
6805
6809
|
}
|
6806
6810
|
|
6807
6811
|
// src/components/Inputs/Fieldset/MyFieldset.tsx
|
6808
|
-
import { Box as Box3, Fieldset as Fieldset4, Text as
|
6809
|
-
import { jsx as
|
6812
|
+
import { Box as Box3, Fieldset as Fieldset4, Text as Text11 } from "@mantine/core";
|
6813
|
+
import { jsx as jsx50 } from "react/jsx-runtime";
|
6810
6814
|
function MyFieldset(_a) {
|
6811
6815
|
var _b = _a, {
|
6812
6816
|
children,
|
@@ -6815,17 +6819,17 @@ function MyFieldset(_a) {
|
|
6815
6819
|
"children",
|
6816
6820
|
"title"
|
6817
6821
|
]);
|
6818
|
-
return /* @__PURE__ */
|
6822
|
+
return /* @__PURE__ */ jsx50(
|
6819
6823
|
Fieldset4,
|
6820
6824
|
__spreadProps(__spreadValues({}, rest), {
|
6821
|
-
legend: /* @__PURE__ */
|
6825
|
+
legend: /* @__PURE__ */ jsx50(
|
6822
6826
|
Box3,
|
6823
6827
|
{
|
6824
6828
|
bg: "blue.4",
|
6825
6829
|
px: "xs",
|
6826
6830
|
py: 2,
|
6827
6831
|
style: { borderRadius: 4 },
|
6828
|
-
children: /* @__PURE__ */
|
6832
|
+
children: /* @__PURE__ */ jsx50(Text11, { c: "white", fw: 500, children: title3 })
|
6829
6833
|
}
|
6830
6834
|
),
|
6831
6835
|
children
|
@@ -6835,10 +6839,10 @@ function MyFieldset(_a) {
|
|
6835
6839
|
|
6836
6840
|
// src/components/Inputs/TextArea/MyTextArea.tsx
|
6837
6841
|
import { Textarea } from "@mantine/core";
|
6838
|
-
import { jsx as
|
6842
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
6839
6843
|
function MyTextArea(_a) {
|
6840
6844
|
var _b = _a, { label } = _b, rest = __objRest(_b, ["label"]);
|
6841
|
-
return /* @__PURE__ */
|
6845
|
+
return /* @__PURE__ */ jsx51(Textarea, __spreadValues({ label, placeholder: label ? `Nh\u1EADp ${label == null ? void 0 : label.toLowerCase()}` : "" }, rest));
|
6842
6846
|
}
|
6843
6847
|
|
6844
6848
|
// src/components/Inputs/TextEditor/MyTextEditor.tsx
|
@@ -6854,7 +6858,7 @@ import Underline from "@tiptap/extension-underline";
|
|
6854
6858
|
import { useEditor } from "@tiptap/react";
|
6855
6859
|
import StarterKit from "@tiptap/starter-kit";
|
6856
6860
|
import { useEffect as useEffect6, useState as useState7 } from "react";
|
6857
|
-
import { jsx as
|
6861
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
6858
6862
|
function MyTextEditor(_a) {
|
6859
6863
|
var _b = _a, {
|
6860
6864
|
autoHiddenToolBar = false,
|
@@ -6956,43 +6960,43 @@ function MyTextEditor(_a) {
|
|
6956
6960
|
editor.commands.setContent(value);
|
6957
6961
|
}
|
6958
6962
|
}, [value, editor]);
|
6959
|
-
return /* @__PURE__ */
|
6960
|
-
/* @__PURE__ */
|
6961
|
-
/* @__PURE__ */
|
6962
|
-
/* @__PURE__ */
|
6963
|
-
/* @__PURE__ */
|
6964
|
-
/* @__PURE__ */
|
6965
|
-
/* @__PURE__ */
|
6966
|
-
/* @__PURE__ */
|
6967
|
-
/* @__PURE__ */
|
6968
|
-
/* @__PURE__ */
|
6963
|
+
return /* @__PURE__ */ jsx52(Input.Wrapper, { label, flex: 1, error, withAsterisk, children: /* @__PURE__ */ jsxs28(RichTextEditor, { editor, style: { border: error && "1px solid #e03131" }, children: [
|
6964
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.Toolbar, { hidden: hiddenToolBar, sticky: true, stickyOffset: 60, children: [
|
6965
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6966
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Bold, {}),
|
6967
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Italic, {}),
|
6968
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Underline, {}),
|
6969
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Strikethrough, {}),
|
6970
|
+
/* @__PURE__ */ jsx52(RichTextEditor.ClearFormatting, {}),
|
6971
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Highlight, {}),
|
6972
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Code, {})
|
6969
6973
|
] }),
|
6970
|
-
/* @__PURE__ */
|
6971
|
-
/* @__PURE__ */
|
6972
|
-
/* @__PURE__ */
|
6973
|
-
/* @__PURE__ */
|
6974
|
-
/* @__PURE__ */
|
6974
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6975
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H1, {}),
|
6976
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H2, {}),
|
6977
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H3, {}),
|
6978
|
+
/* @__PURE__ */ jsx52(RichTextEditor.H4, {})
|
6975
6979
|
] }),
|
6976
|
-
/* @__PURE__ */
|
6977
|
-
/* @__PURE__ */
|
6978
|
-
/* @__PURE__ */
|
6979
|
-
/* @__PURE__ */
|
6980
|
-
/* @__PURE__ */
|
6981
|
-
/* @__PURE__ */
|
6982
|
-
/* @__PURE__ */
|
6980
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6981
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Blockquote, {}),
|
6982
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Hr, {}),
|
6983
|
+
/* @__PURE__ */ jsx52(RichTextEditor.BulletList, {}),
|
6984
|
+
/* @__PURE__ */ jsx52(RichTextEditor.OrderedList, {}),
|
6985
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Subscript, {}),
|
6986
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Superscript, {})
|
6983
6987
|
] }),
|
6984
|
-
/* @__PURE__ */
|
6985
|
-
/* @__PURE__ */
|
6986
|
-
/* @__PURE__ */
|
6988
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6989
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Link, {}),
|
6990
|
+
/* @__PURE__ */ jsx52(RichTextEditor.Unlink, {})
|
6987
6991
|
] }),
|
6988
|
-
/* @__PURE__ */
|
6989
|
-
/* @__PURE__ */
|
6990
|
-
/* @__PURE__ */
|
6991
|
-
/* @__PURE__ */
|
6992
|
-
/* @__PURE__ */
|
6992
|
+
/* @__PURE__ */ jsxs28(RichTextEditor.ControlsGroup, { children: [
|
6993
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignLeft, {}),
|
6994
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignCenter, {}),
|
6995
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignJustify, {}),
|
6996
|
+
/* @__PURE__ */ jsx52(RichTextEditor.AlignRight, {})
|
6993
6997
|
] })
|
6994
6998
|
] }),
|
6995
|
-
/* @__PURE__ */
|
6999
|
+
/* @__PURE__ */ jsx52(
|
6996
7000
|
ScrollArea2.Autosize,
|
6997
7001
|
{
|
6998
7002
|
onMouseDown: () => {
|
@@ -7007,7 +7011,7 @@ function MyTextEditor(_a) {
|
|
7007
7011
|
setHiddenToolBar(false);
|
7008
7012
|
},
|
7009
7013
|
style: { cursor: "text", maxHeight: "400px" },
|
7010
|
-
children: /* @__PURE__ */
|
7014
|
+
children: /* @__PURE__ */ jsx52(RichTextEditor.Content, { mih: contentHeight })
|
7011
7015
|
}
|
7012
7016
|
)
|
7013
7017
|
] }) });
|
@@ -7019,12 +7023,12 @@ import {
|
|
7019
7023
|
AppShell,
|
7020
7024
|
Badge as Badge2,
|
7021
7025
|
Divider as Divider2,
|
7022
|
-
Group as
|
7026
|
+
Group as Group12,
|
7023
7027
|
Image as Image3,
|
7024
7028
|
NavLink,
|
7025
7029
|
ScrollArea as ScrollArea3,
|
7026
7030
|
Select as Select4,
|
7027
|
-
Text as
|
7031
|
+
Text as Text12,
|
7028
7032
|
TextInput as TextInput2,
|
7029
7033
|
Tooltip as Tooltip5
|
7030
7034
|
} from "@mantine/core";
|
@@ -7038,22 +7042,22 @@ import {
|
|
7038
7042
|
} from "@tabler/icons-react";
|
7039
7043
|
import Link3 from "next/link";
|
7040
7044
|
import { usePathname as usePathname2 } from "next/navigation";
|
7041
|
-
import { Fragment as Fragment12, jsx as
|
7045
|
+
import { Fragment as Fragment12, jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
7042
7046
|
function getRightSection(status) {
|
7043
7047
|
if (status === "Prototype")
|
7044
|
-
return /* @__PURE__ */
|
7048
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "pink", circle: true, children: "P" });
|
7045
7049
|
if (status === "New")
|
7046
|
-
return /* @__PURE__ */
|
7050
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", circle: true, children: "N" });
|
7047
7051
|
if (status === "Menu")
|
7048
|
-
return /* @__PURE__ */
|
7052
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "gray", circle: true, children: "M" });
|
7049
7053
|
if (status === "Change")
|
7050
|
-
return /* @__PURE__ */
|
7054
|
+
return /* @__PURE__ */ jsx53(Badge2, { styles: { root: { cursor: "pointer" } }, radius: "xs", color: "green", circle: true, children: "C" });
|
7051
7055
|
return null;
|
7052
7056
|
}
|
7053
7057
|
function RenderNavLinks({ items }) {
|
7054
7058
|
const basicAppShellStore = useS_BasicAppShell();
|
7055
7059
|
const pathName = usePathname2();
|
7056
|
-
return /* @__PURE__ */
|
7060
|
+
return /* @__PURE__ */ jsx53(Fragment12, { children: items.map((item, index) => /* @__PURE__ */ jsx53(
|
7057
7061
|
NavLink,
|
7058
7062
|
{
|
7059
7063
|
active: item.link === pathName.split("/")[2],
|
@@ -7070,7 +7074,7 @@ function RenderNavLinks({ items }) {
|
|
7070
7074
|
basicAppShellStore.setProperty("title", item.label);
|
7071
7075
|
}
|
7072
7076
|
},
|
7073
|
-
children: item.links && /* @__PURE__ */
|
7077
|
+
children: item.links && /* @__PURE__ */ jsx53(RenderNavLinks, { items: item.links })
|
7074
7078
|
},
|
7075
7079
|
index
|
7076
7080
|
)) });
|
@@ -7128,7 +7132,7 @@ function BasicAppShell({ children, menu }) {
|
|
7128
7132
|
const basicAppShellStore = useS_BasicAppShell();
|
7129
7133
|
const media = useMediaQuery("(min-width: 72em)");
|
7130
7134
|
const selectMedia = useMediaQuery("(min-width: 80em)");
|
7131
|
-
return /* @__PURE__ */
|
7135
|
+
return /* @__PURE__ */ jsxs29(
|
7132
7136
|
AppShell,
|
7133
7137
|
{
|
7134
7138
|
header: { height: 60 },
|
@@ -7142,51 +7146,51 @@ function BasicAppShell({ children, menu }) {
|
|
7142
7146
|
},
|
7143
7147
|
padding: "md",
|
7144
7148
|
children: [
|
7145
|
-
/* @__PURE__ */
|
7146
|
-
/* @__PURE__ */
|
7147
|
-
media ? /* @__PURE__ */
|
7148
|
-
/* @__PURE__ */
|
7149
|
-
/* @__PURE__ */
|
7149
|
+
/* @__PURE__ */ jsxs29(AppShell.Header, { children: [
|
7150
|
+
/* @__PURE__ */ jsx53(MyAppSpotlight, { menu }),
|
7151
|
+
media ? /* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", align: "center", children: [
|
7152
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", children: [
|
7153
|
+
/* @__PURE__ */ jsx53(
|
7150
7154
|
Tooltip5,
|
7151
7155
|
{
|
7152
7156
|
label: basicAppShellStore.state.opened ? "\u1EA8n thanh menu" : "Hi\u1EC7n thanh menu",
|
7153
|
-
children: /* @__PURE__ */
|
7157
|
+
children: /* @__PURE__ */ jsx53(
|
7154
7158
|
ActionIcon10,
|
7155
7159
|
{
|
7156
7160
|
size: "lg",
|
7157
7161
|
radius: "md",
|
7158
7162
|
variant: "default",
|
7159
7163
|
onClick: basicAppShellStore.toggle,
|
7160
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7164
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7161
7165
|
}
|
7162
7166
|
)
|
7163
7167
|
}
|
7164
7168
|
),
|
7165
|
-
/* @__PURE__ */
|
7169
|
+
/* @__PURE__ */ jsx53(Tooltip5, { label: "\u0110\xF3ng t\u1EA5t c\u1EA3 menu", children: /* @__PURE__ */ jsx53(
|
7166
7170
|
ActionIcon10,
|
7167
7171
|
{
|
7168
7172
|
size: "lg",
|
7169
7173
|
radius: "md",
|
7170
7174
|
variant: "default",
|
7171
7175
|
onClick: () => basicAppShellStore.clearGroupMenuOpenId(),
|
7172
|
-
children: /* @__PURE__ */
|
7176
|
+
children: /* @__PURE__ */ jsx53(IconLibraryMinus, {})
|
7173
7177
|
}
|
7174
7178
|
) })
|
7175
7179
|
] }),
|
7176
|
-
/* @__PURE__ */
|
7177
|
-
|
7180
|
+
/* @__PURE__ */ jsx53(
|
7181
|
+
Group12,
|
7178
7182
|
{
|
7179
7183
|
style: {
|
7180
7184
|
position: "absolute",
|
7181
7185
|
left: "50%",
|
7182
7186
|
transform: "translateX(-50%)"
|
7183
7187
|
},
|
7184
|
-
children: /* @__PURE__ */
|
7188
|
+
children: /* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` })
|
7185
7189
|
}
|
7186
7190
|
),
|
7187
|
-
/* @__PURE__ */
|
7188
|
-
/* @__PURE__ */
|
7189
|
-
/* @__PURE__ */
|
7191
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7192
|
+
/* @__PURE__ */ jsx53(Text12, { children: "H\u1ECDc k\u1EF3 l\xE0m vi\u1EC7c" }),
|
7193
|
+
/* @__PURE__ */ jsx53(
|
7190
7194
|
Select4,
|
7191
7195
|
{
|
7192
7196
|
w: selectMedia ? 245 : 150,
|
@@ -7198,24 +7202,24 @@ function BasicAppShell({ children, menu }) {
|
|
7198
7202
|
]
|
7199
7203
|
}
|
7200
7204
|
),
|
7201
|
-
/* @__PURE__ */
|
7205
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7202
7206
|
] })
|
7203
7207
|
] }) : (
|
7204
7208
|
// For mobile screens - simplified layout
|
7205
|
-
/* @__PURE__ */
|
7206
|
-
/* @__PURE__ */
|
7209
|
+
/* @__PURE__ */ jsxs29(Group12, { h: "100%", px: "md", justify: "space-between", children: [
|
7210
|
+
/* @__PURE__ */ jsx53(
|
7207
7211
|
ActionIcon10,
|
7208
7212
|
{
|
7209
7213
|
size: "lg",
|
7210
7214
|
radius: "md",
|
7211
7215
|
variant: "default",
|
7212
7216
|
onClick: basicAppShellStore.toggle,
|
7213
|
-
children: basicAppShellStore.state.opened ? /* @__PURE__ */
|
7217
|
+
children: basicAppShellStore.state.opened ? /* @__PURE__ */ jsx53(IconLayoutSidebarLeftExpand, {}) : /* @__PURE__ */ jsx53(IconLayoutSidebarLeftCollapse, {})
|
7214
7218
|
}
|
7215
7219
|
),
|
7216
|
-
/* @__PURE__ */
|
7217
|
-
/* @__PURE__ */
|
7218
|
-
/* @__PURE__ */
|
7220
|
+
/* @__PURE__ */ jsx53(Text12, { c: "green", fw: "bold", size: "sm", children: `${basicAppShellStore.state.moduleCode} - ${basicAppShellStore.state.moduleName}` }),
|
7221
|
+
/* @__PURE__ */ jsxs29(Group12, { children: [
|
7222
|
+
/* @__PURE__ */ jsx53(
|
7219
7223
|
Select4,
|
7220
7224
|
{
|
7221
7225
|
w: 100,
|
@@ -7228,13 +7232,13 @@ function BasicAppShell({ children, menu }) {
|
|
7228
7232
|
]
|
7229
7233
|
}
|
7230
7234
|
),
|
7231
|
-
/* @__PURE__ */
|
7235
|
+
/* @__PURE__ */ jsx53(MySwitchTheme, {})
|
7232
7236
|
] })
|
7233
7237
|
] })
|
7234
7238
|
)
|
7235
7239
|
] }),
|
7236
|
-
/* @__PURE__ */
|
7237
|
-
/* @__PURE__ */
|
7240
|
+
/* @__PURE__ */ jsxs29(AppShell.Navbar, { children: [
|
7241
|
+
/* @__PURE__ */ jsx53(
|
7238
7242
|
TextInput2,
|
7239
7243
|
{
|
7240
7244
|
mt: "md",
|
@@ -7242,18 +7246,18 @@ function BasicAppShell({ children, menu }) {
|
|
7242
7246
|
mx: 10,
|
7243
7247
|
component: "button",
|
7244
7248
|
onClick: spotlight2.open,
|
7245
|
-
leftSection: /* @__PURE__ */
|
7249
|
+
leftSection: /* @__PURE__ */ jsx53(IconSearch2, {}),
|
7246
7250
|
children: "T\xECm ki\u1EBFm (Ctrl + K)"
|
7247
7251
|
}
|
7248
7252
|
),
|
7249
|
-
/* @__PURE__ */
|
7250
|
-
/* @__PURE__ */
|
7251
|
-
/* @__PURE__ */
|
7252
|
-
/* @__PURE__ */
|
7253
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { grow: true, component: ScrollArea3, p: 5, children: [
|
7254
|
+
/* @__PURE__ */ jsx53(RenderNavLinks, { items: menu }),
|
7255
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7256
|
+
/* @__PURE__ */ jsx53(F_authenticate_Logout, {})
|
7253
7257
|
] }),
|
7254
|
-
/* @__PURE__ */
|
7255
|
-
/* @__PURE__ */
|
7256
|
-
/* @__PURE__ */
|
7258
|
+
/* @__PURE__ */ jsxs29(AppShell.Section, { p: "md", children: [
|
7259
|
+
/* @__PURE__ */ jsx53(Divider2, {}),
|
7260
|
+
/* @__PURE__ */ jsx53(
|
7257
7261
|
Image3,
|
7258
7262
|
{
|
7259
7263
|
fit: "contain",
|
@@ -7267,7 +7271,7 @@ function BasicAppShell({ children, menu }) {
|
|
7267
7271
|
)
|
7268
7272
|
] })
|
7269
7273
|
] }),
|
7270
|
-
/* @__PURE__ */
|
7274
|
+
/* @__PURE__ */ jsx53(
|
7271
7275
|
AppShell.Main,
|
7272
7276
|
{
|
7273
7277
|
bg: "light-dark(var(--mantine-color-gray-1), var(--mantine-color-dark-8))",
|
@@ -7322,10 +7326,10 @@ function utils_layout_getItemsWithoutLinks(menu) {
|
|
7322
7326
|
|
7323
7327
|
// src/components/Layouts/Container/MyContainer.tsx
|
7324
7328
|
import { Container, Flex as Flex4 } from "@mantine/core";
|
7325
|
-
import { jsx as
|
7329
|
+
import { jsx as jsx54 } from "react/jsx-runtime";
|
7326
7330
|
function MyContainer(_a) {
|
7327
7331
|
var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
|
7328
|
-
return /* @__PURE__ */
|
7332
|
+
return /* @__PURE__ */ jsx54(Container, __spreadProps(__spreadValues({ fluid: true }, rest), { children: /* @__PURE__ */ jsx54(Flex4, { direction: "column", children }) }));
|
7329
7333
|
}
|
7330
7334
|
|
7331
7335
|
// src/constants/object/color.ts
|
@@ -7343,10 +7347,10 @@ import {
|
|
7343
7347
|
Container as Container2,
|
7344
7348
|
Divider as Divider3,
|
7345
7349
|
Drawer,
|
7346
|
-
Group as
|
7350
|
+
Group as Group13,
|
7347
7351
|
Image as Image4,
|
7348
7352
|
ScrollArea as ScrollArea4,
|
7349
|
-
Text as
|
7353
|
+
Text as Text13,
|
7350
7354
|
TextInput as TextInput3,
|
7351
7355
|
ThemeIcon,
|
7352
7356
|
UnstyledButton,
|
@@ -7378,7 +7382,7 @@ function useHeaderMegaMenuStore() {
|
|
7378
7382
|
}
|
7379
7383
|
|
7380
7384
|
// src/components/Layouts/HeaderMegaMenu/HeaderMegaMenu.tsx
|
7381
|
-
import { jsx as
|
7385
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
7382
7386
|
var mockdata = [
|
7383
7387
|
{
|
7384
7388
|
icon: IconCode,
|
@@ -7416,27 +7420,27 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7416
7420
|
const [linksOpened, { toggle: toggleLinks }] = useDisclosure10(false);
|
7417
7421
|
const HeaderMegaMenuStore = useHeaderMegaMenuStore();
|
7418
7422
|
const theme = useMantineTheme();
|
7419
|
-
const links = mockdata.map((item) => /* @__PURE__ */
|
7420
|
-
/* @__PURE__ */
|
7421
|
-
/* @__PURE__ */
|
7422
|
-
/* @__PURE__ */
|
7423
|
-
/* @__PURE__ */
|
7423
|
+
const links = mockdata.map((item) => /* @__PURE__ */ jsx55(UnstyledButton, { className: css_default2.subLink, children: /* @__PURE__ */ jsxs30(Group13, { wrap: "nowrap", align: "flex-start", children: [
|
7424
|
+
/* @__PURE__ */ jsx55(ThemeIcon, { size: 34, variant: "default", radius: "md", children: /* @__PURE__ */ jsx55(item.icon, { size: 22, color: theme.colors.blue[6] }) }),
|
7425
|
+
/* @__PURE__ */ jsxs30("div", { children: [
|
7426
|
+
/* @__PURE__ */ jsx55(Text13, { size: "sm", fw: 500, children: item.title }),
|
7427
|
+
/* @__PURE__ */ jsx55(Text13, { size: "xs", c: "dimmed", children: item.description })
|
7424
7428
|
] })
|
7425
7429
|
] }) }, item.title));
|
7426
|
-
return /* @__PURE__ */
|
7427
|
-
/* @__PURE__ */
|
7428
|
-
/* @__PURE__ */
|
7429
|
-
/* @__PURE__ */
|
7430
|
-
/* @__PURE__ */
|
7430
|
+
return /* @__PURE__ */ jsxs30(Box4, { children: [
|
7431
|
+
/* @__PURE__ */ jsx55("header", { className: css_default2.header, children: /* @__PURE__ */ jsxs30(Group13, { justify: "space-between", h: "100%", children: [
|
7432
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7433
|
+
/* @__PURE__ */ jsx55(Image4, { src: "/imgs/0/IMG0LogoAQTech.png", h: 30, alt: "", w: "auto" }),
|
7434
|
+
/* @__PURE__ */ jsx55(Group13, { h: "100%", gap: 5, visibleFrom: "sm", children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx55(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) })
|
7431
7435
|
] }),
|
7432
|
-
/* @__PURE__ */
|
7433
|
-
/* @__PURE__ */
|
7434
|
-
/* @__PURE__ */
|
7436
|
+
/* @__PURE__ */ jsxs30(Group13, { children: [
|
7437
|
+
/* @__PURE__ */ jsx55(TextInput3, { placeholder: "T\xECm ki\u1EBFm", leftSection: /* @__PURE__ */ jsx55(IconSearch3, {}), radius: "xl", w: "250px" }),
|
7438
|
+
/* @__PURE__ */ jsx55(MySwitchTheme, {})
|
7435
7439
|
] }),
|
7436
|
-
/* @__PURE__ */
|
7440
|
+
/* @__PURE__ */ jsx55(Burger, { opened: drawerOpened, onClick: toggleDrawer, hiddenFrom: "sm" })
|
7437
7441
|
] }) }),
|
7438
|
-
/* @__PURE__ */
|
7439
|
-
/* @__PURE__ */
|
7442
|
+
/* @__PURE__ */ jsx55(Container2, { fluid: true, pt: "sm", pb: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, mih: "93vh", children }),
|
7443
|
+
/* @__PURE__ */ jsx55(
|
7440
7444
|
Drawer,
|
7441
7445
|
{
|
7442
7446
|
opened: drawerOpened,
|
@@ -7446,10 +7450,10 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7446
7450
|
title: "Navigation",
|
7447
7451
|
hiddenFrom: "sm",
|
7448
7452
|
zIndex: 1e6,
|
7449
|
-
children: /* @__PURE__ */
|
7450
|
-
/* @__PURE__ */
|
7451
|
-
/* @__PURE__ */
|
7452
|
-
/* @__PURE__ */
|
7453
|
+
children: /* @__PURE__ */ jsxs30(ScrollArea4, { h: "calc(100vh - 80px", mx: "-md", children: [
|
7454
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" }),
|
7455
|
+
/* @__PURE__ */ jsx55(MyFlexColumn, { h: "100%", gap: 0, children: menus == null ? void 0 : menus.map((item, idx) => /* @__PURE__ */ jsx55(Button14, { component: Link4, href: item.href, variant: HeaderMegaMenuStore.state.name == item.label ? "light" : "subtle", onClick: () => HeaderMegaMenuStore.setState({ name: item.label }), children: item.label }, idx)) }),
|
7456
|
+
/* @__PURE__ */ jsx55(Divider3, { my: "sm" })
|
7453
7457
|
] })
|
7454
7458
|
}
|
7455
7459
|
)
|
@@ -7457,8 +7461,8 @@ function HeaderMegaMenu({ children, menus }) {
|
|
7457
7461
|
}
|
7458
7462
|
|
7459
7463
|
// src/components/Layouts/PageContent/MyPageContent.tsx
|
7460
|
-
import { Code, Container as Container3, Divider as Divider4, Group as
|
7461
|
-
import { jsx as
|
7464
|
+
import { Code, Container as Container3, Divider as Divider4, Group as Group14, Indicator, Title } from "@mantine/core";
|
7465
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
7462
7466
|
var getStatusColor = (status) => {
|
7463
7467
|
switch (status) {
|
7464
7468
|
case "Prototype":
|
@@ -7471,7 +7475,7 @@ var getStatusColor = (status) => {
|
|
7471
7475
|
};
|
7472
7476
|
var PageTitle = ({ title: title3, status }) => {
|
7473
7477
|
const color = getStatusColor(status);
|
7474
|
-
return /* @__PURE__ */
|
7478
|
+
return /* @__PURE__ */ jsx56(Indicator, { label: status, size: 16, inline: true, color, disabled: !status, pt: 6, children: /* @__PURE__ */ jsx56(Title, { order: 4, children: title3 }) });
|
7475
7479
|
};
|
7476
7480
|
function MyPageContent({
|
7477
7481
|
leftTopBar,
|
@@ -7483,69 +7487,69 @@ function MyPageContent({
|
|
7483
7487
|
}) {
|
7484
7488
|
const basicAppShellStore = useS_BasicAppShell();
|
7485
7489
|
const finalTitle = title3 || basicAppShellStore.state.title;
|
7486
|
-
return /* @__PURE__ */
|
7487
|
-
/* @__PURE__ */
|
7488
|
-
/* @__PURE__ */
|
7489
|
-
canBack && /* @__PURE__ */
|
7490
|
-
/* @__PURE__ */
|
7490
|
+
return /* @__PURE__ */ jsxs31(Container3, { p: 0, fluid: true, children: [
|
7491
|
+
/* @__PURE__ */ jsxs31(Group14, { justify: "space-between", children: [
|
7492
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7493
|
+
canBack && /* @__PURE__ */ jsx56(MyButtonRouterBack, {}),
|
7494
|
+
/* @__PURE__ */ jsx56(PageTitle, { title: finalTitle, status }),
|
7491
7495
|
leftTopBar
|
7492
7496
|
] }),
|
7493
|
-
/* @__PURE__ */
|
7497
|
+
/* @__PURE__ */ jsxs31(Group14, { children: [
|
7494
7498
|
rightTopBar,
|
7495
|
-
/* @__PURE__ */
|
7499
|
+
/* @__PURE__ */ jsx56(Code, { color: "var(--mantine-color-blue-light)", children: basicAppShellStore.state.menuCode })
|
7496
7500
|
] })
|
7497
7501
|
] }),
|
7498
|
-
/* @__PURE__ */
|
7502
|
+
/* @__PURE__ */ jsx56(Divider4, { my: "xs" }),
|
7499
7503
|
children
|
7500
7504
|
] });
|
7501
7505
|
}
|
7502
7506
|
|
7503
7507
|
// src/components/Layouts/Tab/MyTab.tsx
|
7504
7508
|
import { rem, Space as Space4, Tabs } from "@mantine/core";
|
7505
|
-
import { jsx as
|
7509
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
7506
7510
|
function MyTab(_a) {
|
7507
7511
|
var _b = _a, { tabList, children } = _b, rest = __objRest(_b, ["tabList", "children"]);
|
7508
7512
|
const iconStyle = { width: rem(20), height: rem(20) };
|
7509
|
-
return /* @__PURE__ */
|
7510
|
-
/* @__PURE__ */
|
7511
|
-
return /* @__PURE__ */
|
7513
|
+
return /* @__PURE__ */ jsxs32(Tabs, __spreadProps(__spreadValues({ defaultValue: tabList[0].label }, rest), { children: [
|
7514
|
+
/* @__PURE__ */ jsx57(Tabs.List, { children: tabList.map((item, idx) => {
|
7515
|
+
return /* @__PURE__ */ jsx57(Tabs.Tab, { value: item.label, leftSection: item.icon && /* @__PURE__ */ jsx57(item.icon, { style: iconStyle }), children: item.label }, idx);
|
7512
7516
|
}) }),
|
7513
|
-
/* @__PURE__ */
|
7517
|
+
/* @__PURE__ */ jsx57(Space4, { my: "md" }),
|
7514
7518
|
children
|
7515
7519
|
] }));
|
7516
7520
|
}
|
7517
7521
|
|
7518
7522
|
// src/components/RESTAPIComponents/DataTableSelect/MyDataTableSelect.tsx
|
7519
|
-
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as
|
7523
|
+
import { ActionIcon as ActionIcon11, Button as Button15, Fieldset as Fieldset5, Group as Group15, Modal as Modal11 } from "@mantine/core";
|
7520
7524
|
import { useDisclosure as useDisclosure11 } from "@mantine/hooks";
|
7521
7525
|
import { IconX as IconX2 } from "@tabler/icons-react";
|
7522
|
-
import { jsx as
|
7526
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
7523
7527
|
function MyDataTableSelect(_a) {
|
7524
7528
|
var _b = _a, { modalSize, renderTopToolbarCustomActions, data, selectButtonlabel, listState, columns, listLabel } = _b, rest = __objRest(_b, ["modalSize", "renderTopToolbarCustomActions", "data", "selectButtonlabel", "listState", "columns", "listLabel"]);
|
7525
7529
|
const disc = useDisclosure11(false);
|
7526
7530
|
if (data == void 0) return "\u0110ang t\u1EA3i...";
|
7527
|
-
return /* @__PURE__ */
|
7528
|
-
/* @__PURE__ */
|
7531
|
+
return /* @__PURE__ */ jsxs33(Fieldset5, { legend: listLabel ? listLabel : "Danh s\xE1ch", children: [
|
7532
|
+
/* @__PURE__ */ jsx58(
|
7529
7533
|
MyDataTable,
|
7530
7534
|
__spreadValues({
|
7531
7535
|
renderTopToolbarCustomActions: ({ table }) => {
|
7532
|
-
return /* @__PURE__ */
|
7536
|
+
return /* @__PURE__ */ jsxs33(Group15, { children: [
|
7533
7537
|
renderTopToolbarCustomActions && renderTopToolbarCustomActions({ table }),
|
7534
|
-
/* @__PURE__ */
|
7538
|
+
/* @__PURE__ */ jsx58(Button15, { onClick: disc[1].open, children: selectButtonlabel || "Ch\u1ECDn t\u1EEB danh s\xE1ch" })
|
7535
7539
|
] });
|
7536
7540
|
},
|
7537
7541
|
columns,
|
7538
7542
|
data: listState[0],
|
7539
7543
|
renderRowActions: ({ row }) => {
|
7540
|
-
return /* @__PURE__ */
|
7544
|
+
return /* @__PURE__ */ jsx58(MyCenterFull, { children: /* @__PURE__ */ jsx58(ActionIcon11, { color: "red", onClick: () => listState[1].remove(row.index), children: /* @__PURE__ */ jsx58(IconX2, {}) }) });
|
7541
7545
|
}
|
7542
7546
|
}, rest)
|
7543
7547
|
),
|
7544
|
-
/* @__PURE__ */
|
7548
|
+
/* @__PURE__ */ jsx58(Modal11, { opened: disc[0], onClose: disc[1].close, size: modalSize || "80%", children: /* @__PURE__ */ jsx58(
|
7545
7549
|
MyDataTable,
|
7546
7550
|
__spreadValues({
|
7547
7551
|
renderTopToolbarCustomActions: ({ table }) => {
|
7548
|
-
return /* @__PURE__ */
|
7552
|
+
return /* @__PURE__ */ jsx58(Button15, { onClick: () => {
|
7549
7553
|
table.getSelectedRowModel().rows.map((item) => listState[1].append(item.original));
|
7550
7554
|
disc[1].close();
|
7551
7555
|
}, children: "Ch\u1ECDn" });
|
@@ -7561,7 +7565,7 @@ function MyDataTableSelect(_a) {
|
|
7561
7565
|
// src/components/RESTAPIComponents/SelectAPIGet/MySelectAPIGet.tsx
|
7562
7566
|
import { Select as Select5 } from "@mantine/core";
|
7563
7567
|
import { useQuery as useQuery4 } from "@tanstack/react-query";
|
7564
|
-
import { jsx as
|
7568
|
+
import { jsx as jsx59 } from "react/jsx-runtime";
|
7565
7569
|
function MySelectAPIGet(_a) {
|
7566
7570
|
var _b = _a, { apiGet, label = "", dataMapper } = _b, rest = __objRest(_b, ["apiGet", "label", "dataMapper"]);
|
7567
7571
|
var _a2;
|
@@ -7580,7 +7584,7 @@ function MySelectAPIGet(_a) {
|
|
7580
7584
|
label: `${item.code}-${item.name}`
|
7581
7585
|
};
|
7582
7586
|
});
|
7583
|
-
return /* @__PURE__ */
|
7587
|
+
return /* @__PURE__ */ jsx59(
|
7584
7588
|
Select5,
|
7585
7589
|
__spreadValues({
|
7586
7590
|
label,
|
@@ -7595,7 +7599,7 @@ import { useNextCalendarApp as useNextCalendarApp2, ScheduleXCalendar as Schedul
|
|
7595
7599
|
import { createEventsServicePlugin as createEventsServicePlugin2 } from "@schedule-x/events-service";
|
7596
7600
|
import { useState as useState8 } from "react";
|
7597
7601
|
import { createEventModalPlugin as createEventModalPlugin2 } from "@schedule-x/event-modal";
|
7598
|
-
import { jsx as
|
7602
|
+
import { jsx as jsx60 } from "react/jsx-runtime";
|
7599
7603
|
function MyScheduleX({
|
7600
7604
|
values,
|
7601
7605
|
timeGridEvent,
|
@@ -7620,7 +7624,7 @@ function MyScheduleX({
|
|
7620
7624
|
events: values,
|
7621
7625
|
plugins: [eventsService, eventModalPlugin]
|
7622
7626
|
});
|
7623
|
-
return /* @__PURE__ */
|
7627
|
+
return /* @__PURE__ */ jsx60(
|
7624
7628
|
ScheduleXCalendar2,
|
7625
7629
|
{
|
7626
7630
|
calendarApp: calendar,
|
@@ -7634,9 +7638,9 @@ function MyScheduleX({
|
|
7634
7638
|
|
7635
7639
|
// src/components/Skeletons/SkeletonTable/MySkeletonTable.tsx
|
7636
7640
|
import { Skeleton } from "@mantine/core";
|
7637
|
-
import { jsx as
|
7641
|
+
import { jsx as jsx61 } from "react/jsx-runtime";
|
7638
7642
|
function MySkeletonTable({ h: h4 = 500 }) {
|
7639
|
-
return /* @__PURE__ */
|
7643
|
+
return /* @__PURE__ */ jsx61(Skeleton, { h: h4 });
|
7640
7644
|
}
|
7641
7645
|
|
7642
7646
|
// src/constants/object/documentTypes.ts
|
@@ -7651,7 +7655,7 @@ var OBJECT_DOCUMENT_TYPES = {
|
|
7651
7655
|
|
7652
7656
|
// src/modules-features/admin/core/core12196/F_core12196_Create.tsx
|
7653
7657
|
import { useForm as useForm2 } from "@mantine/form";
|
7654
|
-
import { jsx as
|
7658
|
+
import { jsx as jsx62, jsxs as jsxs34 } from "react/jsx-runtime";
|
7655
7659
|
function F_core12196_Create({ FormTypeId }) {
|
7656
7660
|
const form = useForm2({
|
7657
7661
|
mode: "uncontrolled",
|
@@ -7663,7 +7667,7 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7663
7667
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
7664
7668
|
}
|
7665
7669
|
});
|
7666
|
-
return /* @__PURE__ */
|
7670
|
+
return /* @__PURE__ */ jsxs34(
|
7667
7671
|
MyButtonCreate,
|
7668
7672
|
{
|
7669
7673
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -7675,28 +7679,28 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7675
7679
|
}));
|
7676
7680
|
},
|
7677
7681
|
children: [
|
7678
|
-
/* @__PURE__ */
|
7682
|
+
/* @__PURE__ */ jsx62(
|
7679
7683
|
MyTextInput,
|
7680
7684
|
__spreadValues({
|
7681
7685
|
withAsterisk: true,
|
7682
7686
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
7683
7687
|
}, form.getInputProps("decisionCode"))
|
7684
7688
|
),
|
7685
|
-
/* @__PURE__ */
|
7689
|
+
/* @__PURE__ */ jsx62(
|
7686
7690
|
MyDateInput,
|
7687
7691
|
__spreadValues({
|
7688
7692
|
withAsterisk: true,
|
7689
7693
|
label: "Ng\xE0y ban h\xE0nh"
|
7690
7694
|
}, form.getInputProps("promulgateDate"))
|
7691
7695
|
),
|
7692
|
-
/* @__PURE__ */
|
7696
|
+
/* @__PURE__ */ jsx62(
|
7693
7697
|
MyTextInput,
|
7694
7698
|
__spreadValues({
|
7695
7699
|
withAsterisk: true,
|
7696
7700
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
7697
7701
|
}, form.getInputProps("name"))
|
7698
7702
|
),
|
7699
|
-
/* @__PURE__ */
|
7703
|
+
/* @__PURE__ */ jsx62(
|
7700
7704
|
F_core18256_Select,
|
7701
7705
|
__spreadValues({
|
7702
7706
|
withAsterisk: true,
|
@@ -7704,14 +7708,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7704
7708
|
documentTypeId: FormTypeId
|
7705
7709
|
}, form.getInputProps("documentAttributeId"))
|
7706
7710
|
),
|
7707
|
-
/* @__PURE__ */
|
7711
|
+
/* @__PURE__ */ jsx62(
|
7708
7712
|
MyFileInput,
|
7709
7713
|
__spreadValues({
|
7710
7714
|
withAsterisk: true,
|
7711
7715
|
label: "V\u0103n b\u1EA3n"
|
7712
7716
|
}, form.getInputProps("file"))
|
7713
7717
|
),
|
7714
|
-
/* @__PURE__ */
|
7718
|
+
/* @__PURE__ */ jsx62(
|
7715
7719
|
MyNumberInput,
|
7716
7720
|
__spreadValues({
|
7717
7721
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -7724,14 +7728,14 @@ function F_core12196_Create({ FormTypeId }) {
|
|
7724
7728
|
|
7725
7729
|
// src/modules-features/admin/core/core12196/F_core12196.tsx
|
7726
7730
|
import { Paper as Paper7, Space as Space5 } from "@mantine/core";
|
7727
|
-
import { jsx as
|
7731
|
+
import { jsx as jsx63, jsxs as jsxs35 } from "react/jsx-runtime";
|
7728
7732
|
function F_core12196({
|
7729
7733
|
FormTypeId
|
7730
7734
|
}) {
|
7731
|
-
return /* @__PURE__ */
|
7732
|
-
/* @__PURE__ */
|
7733
|
-
/* @__PURE__ */
|
7734
|
-
/* @__PURE__ */
|
7735
|
+
return /* @__PURE__ */ jsxs35(Paper7, { p: "md", children: [
|
7736
|
+
/* @__PURE__ */ jsx63(MyFlexEnd, { children: /* @__PURE__ */ jsx63(F_core12196_Create, { FormTypeId }) }),
|
7737
|
+
/* @__PURE__ */ jsx63(Space5, {}),
|
7738
|
+
/* @__PURE__ */ jsx63(F_core12196_Read, { FormTypeId })
|
7735
7739
|
] });
|
7736
7740
|
}
|
7737
7741
|
|
@@ -7742,7 +7746,7 @@ import { useMemo as useMemo4 } from "react";
|
|
7742
7746
|
// src/modules-features/admin/core/core16209/F_core16209_Create.tsx
|
7743
7747
|
import { FileInput as FileInput4, Textarea as Textarea2 } from "@mantine/core";
|
7744
7748
|
import { useForm as useForm3 } from "@mantine/form";
|
7745
|
-
import { jsx as
|
7749
|
+
import { jsx as jsx64, jsxs as jsxs36 } from "react/jsx-runtime";
|
7746
7750
|
function F_core16209_Create({
|
7747
7751
|
RefinementTypeId
|
7748
7752
|
}) {
|
@@ -7757,7 +7761,7 @@ function F_core16209_Create({
|
|
7757
7761
|
endDate: (value, values) => value && values.startDate && new Date(value) > new Date(values.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7758
7762
|
}
|
7759
7763
|
});
|
7760
|
-
return /* @__PURE__ */
|
7764
|
+
return /* @__PURE__ */ jsxs36(
|
7761
7765
|
MyButtonCreate,
|
7762
7766
|
{
|
7763
7767
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -7770,43 +7774,43 @@ function F_core16209_Create({
|
|
7770
7774
|
}));
|
7771
7775
|
},
|
7772
7776
|
children: [
|
7773
|
-
/* @__PURE__ */
|
7777
|
+
/* @__PURE__ */ jsx64(
|
7774
7778
|
MyDateInput,
|
7775
7779
|
__spreadValues({
|
7776
7780
|
withAsterisk: true,
|
7777
7781
|
label: "Ng\xE0y h\u1ECDp"
|
7778
7782
|
}, form.getInputProps("meetingDate"))
|
7779
7783
|
),
|
7780
|
-
/* @__PURE__ */
|
7784
|
+
/* @__PURE__ */ jsx64(
|
7781
7785
|
MyTextInput,
|
7782
7786
|
__spreadValues({
|
7783
7787
|
withAsterisk: true,
|
7784
7788
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7785
7789
|
}, form.getInputProps("departmentName"))
|
7786
7790
|
),
|
7787
|
-
/* @__PURE__ */
|
7791
|
+
/* @__PURE__ */ jsx64(
|
7788
7792
|
MyTextInput,
|
7789
7793
|
__spreadValues({
|
7790
7794
|
withAsterisk: true,
|
7791
7795
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7792
7796
|
}, form.getInputProps("description"))
|
7793
7797
|
),
|
7794
|
-
/* @__PURE__ */
|
7795
|
-
/* @__PURE__ */
|
7798
|
+
/* @__PURE__ */ jsx64(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7799
|
+
/* @__PURE__ */ jsx64(
|
7796
7800
|
MyDateInput,
|
7797
7801
|
__spreadValues({
|
7798
7802
|
withAsterisk: true,
|
7799
7803
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7800
7804
|
}, form.getInputProps("startDate"))
|
7801
7805
|
),
|
7802
|
-
/* @__PURE__ */
|
7806
|
+
/* @__PURE__ */ jsx64(
|
7803
7807
|
MyDateInput,
|
7804
7808
|
__spreadValues({
|
7805
7809
|
withAsterisk: true,
|
7806
7810
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7807
7811
|
}, form.getInputProps("endDate"))
|
7808
7812
|
),
|
7809
|
-
/* @__PURE__ */
|
7813
|
+
/* @__PURE__ */ jsx64(
|
7810
7814
|
FileInput4,
|
7811
7815
|
__spreadValues({
|
7812
7816
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7814,19 +7818,19 @@ function F_core16209_Create({
|
|
7814
7818
|
label: "T\xE0i li\u1EC7u"
|
7815
7819
|
}, form.getInputProps("file"))
|
7816
7820
|
),
|
7817
|
-
/* @__PURE__ */
|
7821
|
+
/* @__PURE__ */ jsx64(Textarea2, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7818
7822
|
]
|
7819
7823
|
}
|
7820
7824
|
);
|
7821
7825
|
}
|
7822
7826
|
|
7823
7827
|
// src/modules-features/admin/core/core16209/F_core16209_Delete.tsx
|
7824
|
-
import { jsx as
|
7828
|
+
import { jsx as jsx65 } from "react/jsx-runtime";
|
7825
7829
|
function F_core16209_Delete({
|
7826
7830
|
id,
|
7827
7831
|
contextData
|
7828
7832
|
}) {
|
7829
|
-
return /* @__PURE__ */
|
7833
|
+
return /* @__PURE__ */ jsx65(
|
7830
7834
|
MyActionIconDelete,
|
7831
7835
|
{
|
7832
7836
|
contextData,
|
@@ -7838,7 +7842,7 @@ function F_core16209_Delete({
|
|
7838
7842
|
// src/modules-features/admin/core/core16209/F_core16209_Update.tsx
|
7839
7843
|
import { FileInput as FileInput5, Textarea as Textarea3 } from "@mantine/core";
|
7840
7844
|
import { useForm as useForm4 } from "@mantine/form";
|
7841
|
-
import { jsx as
|
7845
|
+
import { jsx as jsx66, jsxs as jsxs37 } from "react/jsx-runtime";
|
7842
7846
|
function F_core16209_Update({ values }) {
|
7843
7847
|
var _a;
|
7844
7848
|
const form = useForm4({
|
@@ -7861,7 +7865,7 @@ function F_core16209_Update({ values }) {
|
|
7861
7865
|
endDate: (value, values2) => value && values2.startDate && new Date(value) > new Date(values2.startDate) ? null : "Ng\xE0y k\u1EBFt th\xFAc ph\u1EA3i l\u1EDBn h\u01A1n ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7862
7866
|
}
|
7863
7867
|
});
|
7864
|
-
return /* @__PURE__ */
|
7868
|
+
return /* @__PURE__ */ jsxs37(
|
7865
7869
|
MyActionIconUpdate,
|
7866
7870
|
{
|
7867
7871
|
form,
|
@@ -7871,43 +7875,43 @@ function F_core16209_Update({ values }) {
|
|
7871
7875
|
}));
|
7872
7876
|
},
|
7873
7877
|
children: [
|
7874
|
-
/* @__PURE__ */
|
7878
|
+
/* @__PURE__ */ jsx66(
|
7875
7879
|
MyDateInput,
|
7876
7880
|
__spreadValues({
|
7877
7881
|
withAsterisk: true,
|
7878
7882
|
label: "Ng\xE0y h\u1ECDp"
|
7879
7883
|
}, form.getInputProps("meetingDate"))
|
7880
7884
|
),
|
7881
|
-
/* @__PURE__ */
|
7885
|
+
/* @__PURE__ */ jsx66(
|
7882
7886
|
MyTextInput,
|
7883
7887
|
__spreadValues({
|
7884
7888
|
withAsterisk: true,
|
7885
7889
|
label: "\u0110\u01A1n v\u1ECB y\xEAu c\u1EA7u"
|
7886
7890
|
}, form.getInputProps("departmentName"))
|
7887
7891
|
),
|
7888
|
-
/* @__PURE__ */
|
7892
|
+
/* @__PURE__ */ jsx66(
|
7889
7893
|
MyTextInput,
|
7890
7894
|
__spreadValues({
|
7891
7895
|
withAsterisk: true,
|
7892
7896
|
label: "N\u1ED9i dung c\u1EA3i ti\u1EBFn"
|
7893
7897
|
}, form.getInputProps("description"))
|
7894
7898
|
),
|
7895
|
-
/* @__PURE__ */
|
7896
|
-
/* @__PURE__ */
|
7899
|
+
/* @__PURE__ */ jsx66(MyTextInput, __spreadValues({ label: "K\u1EBFt lu\u1EADn" }, form.getInputProps("conclusion"))),
|
7900
|
+
/* @__PURE__ */ jsx66(
|
7897
7901
|
MyDateInput,
|
7898
7902
|
__spreadValues({
|
7899
7903
|
withAsterisk: true,
|
7900
7904
|
label: "Ng\xE0y b\u1EAFt \u0111\u1EA7u"
|
7901
7905
|
}, form.getInputProps("startDate"))
|
7902
7906
|
),
|
7903
|
-
/* @__PURE__ */
|
7907
|
+
/* @__PURE__ */ jsx66(
|
7904
7908
|
MyDateInput,
|
7905
7909
|
__spreadValues({
|
7906
7910
|
withAsterisk: true,
|
7907
7911
|
label: "Ng\xE0y k\u1EBFt th\xFAc"
|
7908
7912
|
}, form.getInputProps("endDate"))
|
7909
7913
|
),
|
7910
|
-
/* @__PURE__ */
|
7914
|
+
/* @__PURE__ */ jsx66(
|
7911
7915
|
FileInput5,
|
7912
7916
|
__spreadValues({
|
7913
7917
|
placeholder: "T\u1EA3i l\xEAn t\xE0i li\u1EC7u",
|
@@ -7915,14 +7919,14 @@ function F_core16209_Update({ values }) {
|
|
7915
7919
|
label: "T\xE0i li\u1EC7u"
|
7916
7920
|
}, form.getInputProps("file"))
|
7917
7921
|
),
|
7918
|
-
/* @__PURE__ */
|
7922
|
+
/* @__PURE__ */ jsx66(Textarea3, __spreadValues({ label: "Ghi ch\xFA" }, form.getInputProps("note")))
|
7919
7923
|
]
|
7920
7924
|
}
|
7921
7925
|
);
|
7922
7926
|
}
|
7923
7927
|
|
7924
7928
|
// src/modules-features/admin/core/core16209/F_core16209.tsx
|
7925
|
-
import { jsx as
|
7929
|
+
import { jsx as jsx67, jsxs as jsxs38 } from "react/jsx-runtime";
|
7926
7930
|
function F_core16209({ RefinementTypeId }) {
|
7927
7931
|
const query = useQuery5({
|
7928
7932
|
queryKey: ["F_core16209_Read"],
|
@@ -7955,7 +7959,7 @@ function F_core16209({ RefinementTypeId }) {
|
|
7955
7959
|
{
|
7956
7960
|
header: "File",
|
7957
7961
|
accessorFn: (row) => {
|
7958
|
-
return /* @__PURE__ */
|
7962
|
+
return /* @__PURE__ */ jsx67(MyCenterFull, { children: /* @__PURE__ */ jsx67(MyButtonViewPDF, { id: row.id }) });
|
7959
7963
|
}
|
7960
7964
|
}
|
7961
7965
|
],
|
@@ -7963,16 +7967,16 @@ function F_core16209({ RefinementTypeId }) {
|
|
7963
7967
|
);
|
7964
7968
|
if (query.isLoading) return "Loading...";
|
7965
7969
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
7966
|
-
return /* @__PURE__ */
|
7970
|
+
return /* @__PURE__ */ jsx67(
|
7967
7971
|
MyDataTable,
|
7968
7972
|
{
|
7969
7973
|
columns,
|
7970
7974
|
data: query.data,
|
7971
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
7975
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx67(F_core16209_Create, { RefinementTypeId }),
|
7972
7976
|
renderRowActions: ({ row }) => {
|
7973
|
-
return /* @__PURE__ */
|
7974
|
-
/* @__PURE__ */
|
7975
|
-
/* @__PURE__ */
|
7977
|
+
return /* @__PURE__ */ jsxs38(MyCenterFull, { children: [
|
7978
|
+
/* @__PURE__ */ jsx67(F_core16209_Update, { values: row.original }),
|
7979
|
+
/* @__PURE__ */ jsx67(
|
7976
7980
|
F_core16209_Delete,
|
7977
7981
|
{
|
7978
7982
|
id: row.original.id,
|
@@ -7994,7 +7998,7 @@ import { useMemo as useMemo5 } from "react";
|
|
7994
7998
|
|
7995
7999
|
// src/modules-features/admin/core/core18256/F_core18256_Create.tsx
|
7996
8000
|
import { useForm as useForm5 } from "@mantine/form";
|
7997
|
-
import { jsx as
|
8001
|
+
import { jsx as jsx68, jsxs as jsxs39 } from "react/jsx-runtime";
|
7998
8002
|
function F_core18256_Create({ documentType }) {
|
7999
8003
|
const form = useForm5({
|
8000
8004
|
mode: "uncontrolled",
|
@@ -8007,16 +8011,16 @@ function F_core18256_Create({ documentType }) {
|
|
8007
8011
|
name: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8008
8012
|
}
|
8009
8013
|
});
|
8010
|
-
return /* @__PURE__ */
|
8011
|
-
/* @__PURE__ */
|
8012
|
-
/* @__PURE__ */
|
8014
|
+
return /* @__PURE__ */ jsxs39(MyButtonCreate, { objectName: "Lo\u1EA1i v\u0103n b\u1EA3n", form, onSubmit: (values) => baseAxios_default.post("/DocumentAttribute/Create", values), children: [
|
8015
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8016
|
+
/* @__PURE__ */ jsx68(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8013
8017
|
] });
|
8014
8018
|
}
|
8015
8019
|
|
8016
8020
|
// src/modules-features/admin/core/core18256/F_core18256_Delete.tsx
|
8017
|
-
import { jsx as
|
8021
|
+
import { jsx as jsx69 } from "react/jsx-runtime";
|
8018
8022
|
function F_core18256_Delete({ id }) {
|
8019
|
-
return /* @__PURE__ */
|
8023
|
+
return /* @__PURE__ */ jsx69(
|
8020
8024
|
MyActionIconDelete,
|
8021
8025
|
{
|
8022
8026
|
onSubmit: async () => await baseAxios_default.post("/DocumentAttribute/Delete", { id })
|
@@ -8026,19 +8030,19 @@ function F_core18256_Delete({ id }) {
|
|
8026
8030
|
|
8027
8031
|
// src/modules-features/admin/core/core18256/F_core18256_Update.tsx
|
8028
8032
|
import { useForm as useForm6 } from "@mantine/form";
|
8029
|
-
import { jsx as
|
8033
|
+
import { jsx as jsx70, jsxs as jsxs40 } from "react/jsx-runtime";
|
8030
8034
|
function F_core18256_Update({ values }) {
|
8031
8035
|
const form = useForm6({
|
8032
8036
|
initialValues: values
|
8033
8037
|
});
|
8034
|
-
return /* @__PURE__ */
|
8035
|
-
/* @__PURE__ */
|
8036
|
-
/* @__PURE__ */
|
8038
|
+
return /* @__PURE__ */ jsxs40(MyActionIconUpdate, { form, onSubmit: async (values2) => await baseAxios_default.post("/DocumentAttribute/Update", values2), children: [
|
8039
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "M\xE3 lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("code"))),
|
8040
|
+
/* @__PURE__ */ jsx70(MyTextInput, __spreadValues({ label: "T\xEAn lo\u1EA1i v\u0103n b\u1EA3n" }, form.getInputProps("name")))
|
8037
8041
|
] });
|
8038
8042
|
}
|
8039
8043
|
|
8040
8044
|
// src/modules-features/admin/core/core18256/F_core18256_Read.tsx
|
8041
|
-
import { jsx as
|
8045
|
+
import { jsx as jsx71, jsxs as jsxs41 } from "react/jsx-runtime";
|
8042
8046
|
function F_core18256_Read({ documentType }) {
|
8043
8047
|
const documentAttributeQuery = useQuery6({
|
8044
8048
|
queryKey: ["F_core18256_Read", documentType],
|
@@ -8063,17 +8067,17 @@ function F_core18256_Read({ documentType }) {
|
|
8063
8067
|
);
|
8064
8068
|
if (documentAttributeQuery.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
8065
8069
|
if (documentAttributeQuery.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8066
|
-
return /* @__PURE__ */
|
8070
|
+
return /* @__PURE__ */ jsx71(
|
8067
8071
|
MyDataTable,
|
8068
8072
|
{
|
8069
8073
|
columns,
|
8070
8074
|
enableRowNumbers: true,
|
8071
8075
|
data: documentAttributeQuery.data,
|
8072
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
8076
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx71(F_core18256_Create, { documentType }),
|
8073
8077
|
renderRowActions: ({ row }) => {
|
8074
|
-
return /* @__PURE__ */
|
8075
|
-
/* @__PURE__ */
|
8076
|
-
/* @__PURE__ */
|
8078
|
+
return /* @__PURE__ */ jsxs41(MyCenterFull, { children: [
|
8079
|
+
/* @__PURE__ */ jsx71(F_core18256_Update, { values: row.original }),
|
8080
|
+
/* @__PURE__ */ jsx71(F_core18256_Delete, { id: row.original.id })
|
8077
8081
|
] });
|
8078
8082
|
}
|
8079
8083
|
}
|
@@ -8081,23 +8085,23 @@ function F_core18256_Read({ documentType }) {
|
|
8081
8085
|
}
|
8082
8086
|
|
8083
8087
|
// src/modules-features/admin/core/core18256/F_core18256.tsx
|
8084
|
-
import { jsx as
|
8088
|
+
import { jsx as jsx72, jsxs as jsxs42 } from "react/jsx-runtime";
|
8085
8089
|
var tabData = [
|
8086
8090
|
{ label: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh" },
|
8087
8091
|
{ label: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c" },
|
8088
8092
|
{ label: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu" }
|
8089
8093
|
];
|
8090
8094
|
function F_core18256() {
|
8091
|
-
return /* @__PURE__ */
|
8092
|
-
/* @__PURE__ */
|
8093
|
-
/* @__PURE__ */
|
8094
|
-
/* @__PURE__ */
|
8095
|
+
return /* @__PURE__ */ jsxs42(MyTab, { tabList: tabData, children: [
|
8096
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "1. V\u0103n b\u1EA3n quy \u0111\u1ECBnh", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Regulations }) }),
|
8097
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "2. Quy tr\xECnh x\u1EED l\xFD c\xF4ng vi\u1EC7c", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Workflow }) }),
|
8098
|
+
/* @__PURE__ */ jsx72(Tabs2.Panel, { value: "3. Danh m\u1EE5c bi\u1EC3u m\u1EABu", children: /* @__PURE__ */ jsx72(F_core18256_Read, { documentType: OBJECT_DOCUMENT_TYPES.Form }) })
|
8095
8099
|
] });
|
8096
8100
|
}
|
8097
8101
|
|
8098
8102
|
// src/modules-features/admin/core/core26965/F_core26965_Create.tsx
|
8099
8103
|
import { useForm as useForm7 } from "@mantine/form";
|
8100
|
-
import { jsx as
|
8104
|
+
import { jsx as jsx73, jsxs as jsxs43 } from "react/jsx-runtime";
|
8101
8105
|
function F_core26965_Create({
|
8102
8106
|
RegulationsTypeId
|
8103
8107
|
}) {
|
@@ -8111,7 +8115,7 @@ function F_core26965_Create({
|
|
8111
8115
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8112
8116
|
}
|
8113
8117
|
});
|
8114
|
-
return /* @__PURE__ */
|
8118
|
+
return /* @__PURE__ */ jsxs43(
|
8115
8119
|
MyButtonCreate,
|
8116
8120
|
{
|
8117
8121
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8123,28 +8127,28 @@ function F_core26965_Create({
|
|
8123
8127
|
}));
|
8124
8128
|
},
|
8125
8129
|
children: [
|
8126
|
-
/* @__PURE__ */
|
8130
|
+
/* @__PURE__ */ jsx73(
|
8127
8131
|
MyTextInput,
|
8128
8132
|
__spreadValues({
|
8129
8133
|
withAsterisk: true,
|
8130
8134
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8131
8135
|
}, form.getInputProps("decisionCode"))
|
8132
8136
|
),
|
8133
|
-
/* @__PURE__ */
|
8137
|
+
/* @__PURE__ */ jsx73(
|
8134
8138
|
MyDateInput,
|
8135
8139
|
__spreadValues({
|
8136
8140
|
withAsterisk: true,
|
8137
8141
|
label: "Ng\xE0y ban h\xE0nh"
|
8138
8142
|
}, form.getInputProps("promulgateDate"))
|
8139
8143
|
),
|
8140
|
-
/* @__PURE__ */
|
8144
|
+
/* @__PURE__ */ jsx73(
|
8141
8145
|
MyTextInput,
|
8142
8146
|
__spreadValues({
|
8143
8147
|
withAsterisk: true,
|
8144
8148
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8145
8149
|
}, form.getInputProps("name"))
|
8146
8150
|
),
|
8147
|
-
/* @__PURE__ */
|
8151
|
+
/* @__PURE__ */ jsx73(
|
8148
8152
|
F_core18256_Select,
|
8149
8153
|
__spreadValues({
|
8150
8154
|
withAsterisk: true,
|
@@ -8152,14 +8156,14 @@ function F_core26965_Create({
|
|
8152
8156
|
documentTypeId: RegulationsTypeId
|
8153
8157
|
}, form.getInputProps("documentAttributeId"))
|
8154
8158
|
),
|
8155
|
-
/* @__PURE__ */
|
8159
|
+
/* @__PURE__ */ jsx73(
|
8156
8160
|
MyFileInput,
|
8157
8161
|
__spreadValues({
|
8158
8162
|
withAsterisk: true,
|
8159
8163
|
label: "V\u0103n b\u1EA3n"
|
8160
8164
|
}, form.getInputProps("file"))
|
8161
8165
|
),
|
8162
|
-
/* @__PURE__ */
|
8166
|
+
/* @__PURE__ */ jsx73(
|
8163
8167
|
MyNumberInput,
|
8164
8168
|
__spreadValues({
|
8165
8169
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8176,12 +8180,12 @@ import { useQuery as useQuery7 } from "@tanstack/react-query";
|
|
8176
8180
|
import { useMemo as useMemo6 } from "react";
|
8177
8181
|
|
8178
8182
|
// src/modules-features/admin/core/core26965/F_core26965_Delete.tsx
|
8179
|
-
import { jsx as
|
8183
|
+
import { jsx as jsx74 } from "react/jsx-runtime";
|
8180
8184
|
function F_core26965_Delete({
|
8181
8185
|
id,
|
8182
8186
|
contextData
|
8183
8187
|
}) {
|
8184
|
-
return /* @__PURE__ */
|
8188
|
+
return /* @__PURE__ */ jsx74(
|
8185
8189
|
MyActionIconDelete,
|
8186
8190
|
{
|
8187
8191
|
contextData,
|
@@ -8192,7 +8196,7 @@ function F_core26965_Delete({
|
|
8192
8196
|
|
8193
8197
|
// src/modules-features/admin/core/core26965/F_core26965_Update.tsx
|
8194
8198
|
import { useForm as useForm8 } from "@mantine/form";
|
8195
|
-
import { jsx as
|
8199
|
+
import { jsx as jsx75, jsxs as jsxs44 } from "react/jsx-runtime";
|
8196
8200
|
function F_core26965_Update({
|
8197
8201
|
values,
|
8198
8202
|
RegulationsTypeId
|
@@ -8214,7 +8218,7 @@ function F_core26965_Update({
|
|
8214
8218
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8215
8219
|
}
|
8216
8220
|
});
|
8217
|
-
return /* @__PURE__ */
|
8221
|
+
return /* @__PURE__ */ jsxs44(
|
8218
8222
|
MyActionIconUpdate,
|
8219
8223
|
{
|
8220
8224
|
form,
|
@@ -8224,28 +8228,28 @@ function F_core26965_Update({
|
|
8224
8228
|
}));
|
8225
8229
|
},
|
8226
8230
|
children: [
|
8227
|
-
/* @__PURE__ */
|
8231
|
+
/* @__PURE__ */ jsx75(
|
8228
8232
|
MyTextInput,
|
8229
8233
|
__spreadValues({
|
8230
8234
|
withAsterisk: true,
|
8231
8235
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8232
8236
|
}, form.getInputProps("decisionCode"))
|
8233
8237
|
),
|
8234
|
-
/* @__PURE__ */
|
8238
|
+
/* @__PURE__ */ jsx75(
|
8235
8239
|
MyDateInput,
|
8236
8240
|
__spreadValues({
|
8237
8241
|
withAsterisk: true,
|
8238
8242
|
label: "Ng\xE0y ban h\xE0nh"
|
8239
8243
|
}, form.getInputProps("promulgateDate"))
|
8240
8244
|
),
|
8241
|
-
/* @__PURE__ */
|
8245
|
+
/* @__PURE__ */ jsx75(
|
8242
8246
|
MyTextInput,
|
8243
8247
|
__spreadValues({
|
8244
8248
|
withAsterisk: true,
|
8245
8249
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8246
8250
|
}, form.getInputProps("name"))
|
8247
8251
|
),
|
8248
|
-
/* @__PURE__ */
|
8252
|
+
/* @__PURE__ */ jsx75(
|
8249
8253
|
F_core18256_Select,
|
8250
8254
|
__spreadValues({
|
8251
8255
|
withAsterisk: true,
|
@@ -8253,14 +8257,14 @@ function F_core26965_Update({
|
|
8253
8257
|
documentTypeId: RegulationsTypeId
|
8254
8258
|
}, form.getInputProps("documentAttributeId"))
|
8255
8259
|
),
|
8256
|
-
/* @__PURE__ */
|
8260
|
+
/* @__PURE__ */ jsx75(
|
8257
8261
|
MyFileInput,
|
8258
8262
|
__spreadValues({
|
8259
8263
|
withAsterisk: true,
|
8260
8264
|
label: "V\u0103n b\u1EA3n"
|
8261
8265
|
}, form.getInputProps("file"))
|
8262
8266
|
),
|
8263
|
-
/* @__PURE__ */
|
8267
|
+
/* @__PURE__ */ jsx75(
|
8264
8268
|
MyNumberInput,
|
8265
8269
|
__spreadValues({
|
8266
8270
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8272,7 +8276,7 @@ function F_core26965_Update({
|
|
8272
8276
|
}
|
8273
8277
|
|
8274
8278
|
// src/modules-features/admin/core/core26965/F_core26965_Read.tsx
|
8275
|
-
import { jsx as
|
8279
|
+
import { jsx as jsx76, jsxs as jsxs45 } from "react/jsx-runtime";
|
8276
8280
|
function F_core26965_Read({
|
8277
8281
|
RegulationsTypeId
|
8278
8282
|
}) {
|
@@ -8290,8 +8294,8 @@ function F_core26965_Read({
|
|
8290
8294
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8291
8295
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8292
8296
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8293
|
-
return /* @__PURE__ */
|
8294
|
-
return /* @__PURE__ */
|
8297
|
+
return /* @__PURE__ */ jsx76(Blockquote2, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8298
|
+
return /* @__PURE__ */ jsx76(MyFlexColumn, { children: /* @__PURE__ */ jsx76(
|
8295
8299
|
Accordion2,
|
8296
8300
|
{
|
8297
8301
|
variant: "contained",
|
@@ -8302,7 +8306,7 @@ function F_core26965_Read({
|
|
8302
8306
|
}
|
8303
8307
|
),
|
8304
8308
|
multiple: true,
|
8305
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8309
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx76(
|
8306
8310
|
SubRead2,
|
8307
8311
|
{
|
8308
8312
|
name: item.name,
|
@@ -8345,7 +8349,7 @@ function SubRead2({
|
|
8345
8349
|
{
|
8346
8350
|
header: "File",
|
8347
8351
|
accessorFn: (row) => {
|
8348
|
-
return /* @__PURE__ */
|
8352
|
+
return /* @__PURE__ */ jsx76(MyCenterFull, { children: /* @__PURE__ */ jsx76(MyButtonViewPDF, { id: row.id }) });
|
8349
8353
|
}
|
8350
8354
|
}
|
8351
8355
|
],
|
@@ -8353,22 +8357,22 @@ function SubRead2({
|
|
8353
8357
|
);
|
8354
8358
|
if (documentQuery.isLoading) return "Loading...";
|
8355
8359
|
if (documentQuery.isError) return "Error!";
|
8356
|
-
return /* @__PURE__ */
|
8357
|
-
/* @__PURE__ */
|
8358
|
-
/* @__PURE__ */
|
8360
|
+
return /* @__PURE__ */ jsxs45(Accordion2.Item, { value: documentType.toString(), children: [
|
8361
|
+
/* @__PURE__ */ jsx76(Accordion2.Control, { children: name }),
|
8362
|
+
/* @__PURE__ */ jsx76(Accordion2.Panel, { children: /* @__PURE__ */ jsx76(
|
8359
8363
|
MyDataTable,
|
8360
8364
|
{
|
8361
8365
|
columns,
|
8362
8366
|
data: documentQuery.data,
|
8363
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8364
|
-
/* @__PURE__ */
|
8367
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs45(MyCenterFull, { children: [
|
8368
|
+
/* @__PURE__ */ jsx76(
|
8365
8369
|
F_core26965_Update,
|
8366
8370
|
{
|
8367
8371
|
RegulationsTypeId,
|
8368
8372
|
values: row.original
|
8369
8373
|
}
|
8370
8374
|
),
|
8371
|
-
/* @__PURE__ */
|
8375
|
+
/* @__PURE__ */ jsx76(
|
8372
8376
|
F_core26965_Delete,
|
8373
8377
|
{
|
8374
8378
|
id: row.original.id,
|
@@ -8383,18 +8387,18 @@ function SubRead2({
|
|
8383
8387
|
|
8384
8388
|
// src/modules-features/admin/core/core26965/F_core26965.tsx
|
8385
8389
|
import { Paper as Paper8, Space as Space6 } from "@mantine/core";
|
8386
|
-
import { jsx as
|
8390
|
+
import { jsx as jsx77, jsxs as jsxs46 } from "react/jsx-runtime";
|
8387
8391
|
function F_core26965({ RegulationsTypeId }) {
|
8388
|
-
return /* @__PURE__ */
|
8389
|
-
/* @__PURE__ */
|
8390
|
-
/* @__PURE__ */
|
8391
|
-
/* @__PURE__ */
|
8392
|
+
return /* @__PURE__ */ jsxs46(Paper8, { p: "md", children: [
|
8393
|
+
/* @__PURE__ */ jsx77(MyFlexEnd, { children: /* @__PURE__ */ jsx77(F_core26965_Create, { RegulationsTypeId }) }),
|
8394
|
+
/* @__PURE__ */ jsx77(Space6, {}),
|
8395
|
+
/* @__PURE__ */ jsx77(F_core26965_Read, { RegulationsTypeId })
|
8392
8396
|
] });
|
8393
8397
|
}
|
8394
8398
|
|
8395
8399
|
// src/modules-features/admin/core/core27311/F_core27311_Create.tsx
|
8396
8400
|
import { useForm as useForm9 } from "@mantine/form";
|
8397
|
-
import { jsx as
|
8401
|
+
import { jsx as jsx78, jsxs as jsxs47 } from "react/jsx-runtime";
|
8398
8402
|
function F_core27311_Create({
|
8399
8403
|
WorkflowTypeId
|
8400
8404
|
}) {
|
@@ -8408,7 +8412,7 @@ function F_core27311_Create({
|
|
8408
8412
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8409
8413
|
}
|
8410
8414
|
});
|
8411
|
-
return /* @__PURE__ */
|
8415
|
+
return /* @__PURE__ */ jsxs47(
|
8412
8416
|
MyButtonCreate,
|
8413
8417
|
{
|
8414
8418
|
objectName: "V\u0103n b\u1EA3n quy \u0111\u1ECBnh t\u1ED5 ch\u1EE9c",
|
@@ -8420,28 +8424,28 @@ function F_core27311_Create({
|
|
8420
8424
|
}));
|
8421
8425
|
},
|
8422
8426
|
children: [
|
8423
|
-
/* @__PURE__ */
|
8427
|
+
/* @__PURE__ */ jsx78(
|
8424
8428
|
MyTextInput,
|
8425
8429
|
__spreadValues({
|
8426
8430
|
withAsterisk: true,
|
8427
8431
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8428
8432
|
}, form.getInputProps("decisionCode"))
|
8429
8433
|
),
|
8430
|
-
/* @__PURE__ */
|
8434
|
+
/* @__PURE__ */ jsx78(
|
8431
8435
|
MyDateInput,
|
8432
8436
|
__spreadValues({
|
8433
8437
|
withAsterisk: true,
|
8434
8438
|
label: "Ng\xE0y ban h\xE0nh"
|
8435
8439
|
}, form.getInputProps("promulgateDate"))
|
8436
8440
|
),
|
8437
|
-
/* @__PURE__ */
|
8441
|
+
/* @__PURE__ */ jsx78(
|
8438
8442
|
MyTextInput,
|
8439
8443
|
__spreadValues({
|
8440
8444
|
withAsterisk: true,
|
8441
8445
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8442
8446
|
}, form.getInputProps("name"))
|
8443
8447
|
),
|
8444
|
-
/* @__PURE__ */
|
8448
|
+
/* @__PURE__ */ jsx78(
|
8445
8449
|
F_core18256_Select,
|
8446
8450
|
__spreadValues({
|
8447
8451
|
withAsterisk: true,
|
@@ -8449,14 +8453,14 @@ function F_core27311_Create({
|
|
8449
8453
|
documentTypeId: WorkflowTypeId
|
8450
8454
|
}, form.getInputProps("documentAttributeId"))
|
8451
8455
|
),
|
8452
|
-
/* @__PURE__ */
|
8456
|
+
/* @__PURE__ */ jsx78(
|
8453
8457
|
MyFileInput,
|
8454
8458
|
__spreadValues({
|
8455
8459
|
withAsterisk: true,
|
8456
8460
|
label: "V\u0103n b\u1EA3n"
|
8457
8461
|
}, form.getInputProps("file"))
|
8458
8462
|
),
|
8459
|
-
/* @__PURE__ */
|
8463
|
+
/* @__PURE__ */ jsx78(
|
8460
8464
|
MyNumberInput,
|
8461
8465
|
__spreadValues({
|
8462
8466
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8473,12 +8477,12 @@ import { useQuery as useQuery8 } from "@tanstack/react-query";
|
|
8473
8477
|
import { useMemo as useMemo7 } from "react";
|
8474
8478
|
|
8475
8479
|
// src/modules-features/admin/core/core27311/F_core27311_Delete.tsx
|
8476
|
-
import { jsx as
|
8480
|
+
import { jsx as jsx79 } from "react/jsx-runtime";
|
8477
8481
|
function F_core27311_Delete({
|
8478
8482
|
id,
|
8479
8483
|
contextData
|
8480
8484
|
}) {
|
8481
|
-
return /* @__PURE__ */
|
8485
|
+
return /* @__PURE__ */ jsx79(
|
8482
8486
|
MyActionIconDelete,
|
8483
8487
|
{
|
8484
8488
|
contextData,
|
@@ -8489,7 +8493,7 @@ function F_core27311_Delete({
|
|
8489
8493
|
|
8490
8494
|
// src/modules-features/admin/core/core27311/F_core27311_Update.tsx
|
8491
8495
|
import { useForm as useForm10 } from "@mantine/form";
|
8492
|
-
import { jsx as
|
8496
|
+
import { jsx as jsx80, jsxs as jsxs48 } from "react/jsx-runtime";
|
8493
8497
|
function F_core27311_Update({
|
8494
8498
|
values,
|
8495
8499
|
WorkflowTypeId
|
@@ -8511,7 +8515,7 @@ function F_core27311_Update({
|
|
8511
8515
|
file: (value) => value ? null : "T\u1EC7p \u0111\xEDnh k\xE8m kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
8512
8516
|
}
|
8513
8517
|
});
|
8514
|
-
return /* @__PURE__ */
|
8518
|
+
return /* @__PURE__ */ jsxs48(
|
8515
8519
|
MyActionIconUpdate,
|
8516
8520
|
{
|
8517
8521
|
form,
|
@@ -8521,28 +8525,28 @@ function F_core27311_Update({
|
|
8521
8525
|
}));
|
8522
8526
|
},
|
8523
8527
|
children: [
|
8524
|
-
/* @__PURE__ */
|
8528
|
+
/* @__PURE__ */ jsx80(
|
8525
8529
|
MyTextInput,
|
8526
8530
|
__spreadValues({
|
8527
8531
|
withAsterisk: true,
|
8528
8532
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
8529
8533
|
}, form.getInputProps("decisionCode"))
|
8530
8534
|
),
|
8531
|
-
/* @__PURE__ */
|
8535
|
+
/* @__PURE__ */ jsx80(
|
8532
8536
|
MyDateInput,
|
8533
8537
|
__spreadValues({
|
8534
8538
|
withAsterisk: true,
|
8535
8539
|
label: "Ng\xE0y ban h\xE0nh"
|
8536
8540
|
}, form.getInputProps("promulgateDate"))
|
8537
8541
|
),
|
8538
|
-
/* @__PURE__ */
|
8542
|
+
/* @__PURE__ */ jsx80(
|
8539
8543
|
MyTextInput,
|
8540
8544
|
__spreadValues({
|
8541
8545
|
withAsterisk: true,
|
8542
8546
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
8543
8547
|
}, form.getInputProps("name"))
|
8544
8548
|
),
|
8545
|
-
/* @__PURE__ */
|
8549
|
+
/* @__PURE__ */ jsx80(
|
8546
8550
|
F_core18256_Select,
|
8547
8551
|
__spreadValues({
|
8548
8552
|
withAsterisk: true,
|
@@ -8550,14 +8554,14 @@ function F_core27311_Update({
|
|
8550
8554
|
documentTypeId: WorkflowTypeId
|
8551
8555
|
}, form.getInputProps("documentAttributeId"))
|
8552
8556
|
),
|
8553
|
-
/* @__PURE__ */
|
8557
|
+
/* @__PURE__ */ jsx80(
|
8554
8558
|
MyFileInput,
|
8555
8559
|
__spreadValues({
|
8556
8560
|
withAsterisk: true,
|
8557
8561
|
label: "V\u0103n b\u1EA3n"
|
8558
8562
|
}, form.getInputProps("file"))
|
8559
8563
|
),
|
8560
|
-
/* @__PURE__ */
|
8564
|
+
/* @__PURE__ */ jsx80(
|
8561
8565
|
MyNumberInput,
|
8562
8566
|
__spreadValues({
|
8563
8567
|
label: "Th\u1EE9 t\u1EF1 hi\u1EC3n th\u1ECB tr\xEAn danh s\xE1ch"
|
@@ -8569,7 +8573,7 @@ function F_core27311_Update({
|
|
8569
8573
|
}
|
8570
8574
|
|
8571
8575
|
// src/modules-features/admin/core/core27311/F_core27311_Read.tsx
|
8572
|
-
import { jsx as
|
8576
|
+
import { jsx as jsx81, jsxs as jsxs49 } from "react/jsx-runtime";
|
8573
8577
|
function F_core27311_Read({
|
8574
8578
|
WorkflowTypeId
|
8575
8579
|
}) {
|
@@ -8587,8 +8591,8 @@ function F_core27311_Read({
|
|
8587
8591
|
if (documentAttributeQuery.isLoading) return "Loading...";
|
8588
8592
|
if (documentAttributeQuery.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
8589
8593
|
if (((_a = documentAttributeQuery.data) == null ? void 0 : _a.length) == 0)
|
8590
|
-
return /* @__PURE__ */
|
8591
|
-
return /* @__PURE__ */
|
8594
|
+
return /* @__PURE__ */ jsx81(Blockquote3, { color: "yellow", children: "Ch\u01B0a c\xF3 lo\u1EA1i v\u0103n b\u1EA3n" });
|
8595
|
+
return /* @__PURE__ */ jsx81(MyFlexColumn, { children: /* @__PURE__ */ jsx81(
|
8592
8596
|
Accordion3,
|
8593
8597
|
{
|
8594
8598
|
variant: "contained",
|
@@ -8599,7 +8603,7 @@ function F_core27311_Read({
|
|
8599
8603
|
}
|
8600
8604
|
),
|
8601
8605
|
multiple: true,
|
8602
|
-
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */
|
8606
|
+
children: (_c = documentAttributeQuery.data) == null ? void 0 : _c.map((item, idx) => /* @__PURE__ */ jsx81(
|
8603
8607
|
SubRead3,
|
8604
8608
|
{
|
8605
8609
|
name: item.name,
|
@@ -8642,7 +8646,7 @@ function SubRead3({
|
|
8642
8646
|
{
|
8643
8647
|
header: "File",
|
8644
8648
|
accessorFn: (row) => {
|
8645
|
-
return /* @__PURE__ */
|
8649
|
+
return /* @__PURE__ */ jsx81(MyCenterFull, { children: /* @__PURE__ */ jsx81(MyButtonViewPDF, { id: row.id }) });
|
8646
8650
|
}
|
8647
8651
|
}
|
8648
8652
|
],
|
@@ -8650,22 +8654,22 @@ function SubRead3({
|
|
8650
8654
|
);
|
8651
8655
|
if (documentQuery.isLoading) return "Loading...";
|
8652
8656
|
if (documentQuery.isError) return "Error!";
|
8653
|
-
return /* @__PURE__ */
|
8654
|
-
/* @__PURE__ */
|
8655
|
-
/* @__PURE__ */
|
8657
|
+
return /* @__PURE__ */ jsxs49(Accordion3.Item, { value: documentType.toString(), children: [
|
8658
|
+
/* @__PURE__ */ jsx81(Accordion3.Control, { children: name }),
|
8659
|
+
/* @__PURE__ */ jsx81(Accordion3.Panel, { children: /* @__PURE__ */ jsx81(
|
8656
8660
|
MyDataTable,
|
8657
8661
|
{
|
8658
8662
|
columns,
|
8659
8663
|
data: documentQuery.data,
|
8660
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
8661
|
-
/* @__PURE__ */
|
8664
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs49(MyCenterFull, { children: [
|
8665
|
+
/* @__PURE__ */ jsx81(
|
8662
8666
|
F_core27311_Update,
|
8663
8667
|
{
|
8664
8668
|
WorkflowTypeId,
|
8665
8669
|
values: row.original
|
8666
8670
|
}
|
8667
8671
|
),
|
8668
|
-
/* @__PURE__ */
|
8672
|
+
/* @__PURE__ */ jsx81(
|
8669
8673
|
F_core27311_Delete,
|
8670
8674
|
{
|
8671
8675
|
id: row.original.id,
|
@@ -8680,34 +8684,34 @@ function SubRead3({
|
|
8680
8684
|
|
8681
8685
|
// src/modules-features/admin/core/core27311/F_core27311.tsx
|
8682
8686
|
import { Paper as Paper9, Space as Space7 } from "@mantine/core";
|
8683
|
-
import { jsx as
|
8687
|
+
import { jsx as jsx82, jsxs as jsxs50 } from "react/jsx-runtime";
|
8684
8688
|
function F_core27311({
|
8685
8689
|
WorkflowTypeId
|
8686
8690
|
}) {
|
8687
|
-
return /* @__PURE__ */
|
8688
|
-
/* @__PURE__ */
|
8689
|
-
/* @__PURE__ */
|
8690
|
-
/* @__PURE__ */
|
8691
|
+
return /* @__PURE__ */ jsxs50(Paper9, { p: "md", children: [
|
8692
|
+
/* @__PURE__ */ jsx82(MyFlexEnd, { children: /* @__PURE__ */ jsx82(F_core27311_Create, { WorkflowTypeId }) }),
|
8693
|
+
/* @__PURE__ */ jsx82(Space7, {}),
|
8694
|
+
/* @__PURE__ */ jsx82(F_core27311_Read, { WorkflowTypeId })
|
8691
8695
|
] });
|
8692
8696
|
}
|
8693
8697
|
|
8694
8698
|
// src/modules-features/admin/core/core35923/F_core35923.tsx
|
8695
8699
|
import { Grid } from "@mantine/core";
|
8696
|
-
import { jsx as
|
8700
|
+
import { jsx as jsx83, jsxs as jsxs51 } from "react/jsx-runtime";
|
8697
8701
|
function F_core35923() {
|
8698
|
-
return /* @__PURE__ */
|
8699
|
-
/* @__PURE__ */
|
8700
|
-
/* @__PURE__ */
|
8701
|
-
/* @__PURE__ */
|
8702
|
-
/* @__PURE__ */
|
8703
|
-
/* @__PURE__ */
|
8704
|
-
/* @__PURE__ */
|
8705
|
-
/* @__PURE__ */
|
8706
|
-
/* @__PURE__ */
|
8707
|
-
/* @__PURE__ */
|
8708
|
-
/* @__PURE__ */
|
8702
|
+
return /* @__PURE__ */ jsxs51(MyFieldset, { title: "C\u1EADp nh\u1EADt th\xF4ng tin \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n", children: [
|
8703
|
+
/* @__PURE__ */ jsxs51(Grid, { children: [
|
8704
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 5 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "M\xE3 module", disabled: true }) }),
|
8705
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn module" }) }),
|
8706
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: 12, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" }) }),
|
8707
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Email" }) }),
|
8708
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }) }),
|
8709
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y \u0111\u0103ng k\xFD" }) }),
|
8710
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyTextInput, { label: "Ng\xE0y h\u1EBFt h\u1EA1n" }) }),
|
8711
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Favicon (16px x 16px)" }) }),
|
8712
|
+
/* @__PURE__ */ jsx83(Grid.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx83(MyFileInput, { label: "Logo (330px x 115px)" }) })
|
8709
8713
|
] }),
|
8710
|
-
/* @__PURE__ */
|
8714
|
+
/* @__PURE__ */ jsx83(MyFlexEnd, { children: /* @__PURE__ */ jsx83(MyButton, { crudType: "save" }) })
|
8711
8715
|
] });
|
8712
8716
|
}
|
8713
8717
|
|
@@ -8768,7 +8772,7 @@ function utils_core83092_mergePage(arr1, arr2) {
|
|
8768
8772
|
}
|
8769
8773
|
|
8770
8774
|
// src/modules-features/admin/core/core38677/F_core38677_ReadUser.tsx
|
8771
|
-
import { jsx as
|
8775
|
+
import { jsx as jsx84 } from "react/jsx-runtime";
|
8772
8776
|
function F_core38677_ReadUser() {
|
8773
8777
|
const store = useS_core83092();
|
8774
8778
|
const query = useQ_Account_GetAdminAccount();
|
@@ -8801,7 +8805,7 @@ function F_core38677_ReadUser() {
|
|
8801
8805
|
}, [query.data]);
|
8802
8806
|
if (query.isLoading) return "Loading...";
|
8803
8807
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
8804
|
-
return /* @__PURE__ */
|
8808
|
+
return /* @__PURE__ */ jsx84(Container4, { fluid: true, children: /* @__PURE__ */ jsx84(
|
8805
8809
|
MyDataTable,
|
8806
8810
|
{
|
8807
8811
|
columns,
|
@@ -8837,7 +8841,7 @@ function useQ_Account_GetAdminAccount() {
|
|
8837
8841
|
// src/modules-features/admin/core/core38677/F_core38677_Save.tsx
|
8838
8842
|
import { useMutation as useMutation5 } from "@tanstack/react-query";
|
8839
8843
|
import { useEffect as useEffect8, useState as useState10 } from "react";
|
8840
|
-
import { jsx as
|
8844
|
+
import { jsx as jsx85 } from "react/jsx-runtime";
|
8841
8845
|
function F_core38677_Save() {
|
8842
8846
|
const store = useS_core83092();
|
8843
8847
|
const disable = useState10(false);
|
@@ -8866,7 +8870,7 @@ function F_core38677_Save() {
|
|
8866
8870
|
}
|
8867
8871
|
disable[1](false);
|
8868
8872
|
}, [store.state.rolePermissions]);
|
8869
|
-
return /* @__PURE__ */
|
8873
|
+
return /* @__PURE__ */ jsx85(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
8870
8874
|
}
|
8871
8875
|
|
8872
8876
|
// src/data/menuData.ts
|
@@ -8901,11 +8905,11 @@ var menuData = [
|
|
8901
8905
|
];
|
8902
8906
|
|
8903
8907
|
// src/modules-features/admin/core/core38677/F_core38677_ViewMenuPermissions.tsx
|
8904
|
-
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as
|
8908
|
+
import { Checkbox as Checkbox3, Flex as Flex5, ScrollArea as ScrollArea5, Table as Table3, Text as Text14 } from "@mantine/core";
|
8905
8909
|
import { IconEdit as IconEdit5, IconEyeUp, IconFileExport as IconFileExport2, IconPlus as IconPlus5, IconPrinter as IconPrinter3, IconTrash as IconTrash5 } from "@tabler/icons-react";
|
8906
8910
|
import { useQuery as useQuery10 } from "@tanstack/react-query";
|
8907
8911
|
import React2, { useEffect as useEffect9, useState as useState11 } from "react";
|
8908
|
-
import { jsx as
|
8912
|
+
import { jsx as jsx86, jsxs as jsxs52 } from "react/jsx-runtime";
|
8909
8913
|
var title = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
8910
8914
|
function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
8911
8915
|
var _a, _b;
|
@@ -8920,8 +8924,8 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8920
8924
|
store.setProperty("rolePermissions", query.data);
|
8921
8925
|
}, [query.data]);
|
8922
8926
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
8923
|
-
return /* @__PURE__ */
|
8924
|
-
/* @__PURE__ */
|
8927
|
+
return /* @__PURE__ */ jsx86(ScrollArea5.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs52(Table3, { children: [
|
8928
|
+
/* @__PURE__ */ jsx86(
|
8925
8929
|
Table3.Thead,
|
8926
8930
|
{
|
8927
8931
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -8932,90 +8936,90 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
8932
8936
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
8933
8937
|
border: "1px solid var(--mantine-color-gray-4)"
|
8934
8938
|
},
|
8935
|
-
children: /* @__PURE__ */
|
8936
|
-
/* @__PURE__ */
|
8937
|
-
/* @__PURE__ */
|
8938
|
-
/* @__PURE__ */
|
8939
|
+
children: /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
8940
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: title }),
|
8941
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8942
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
8939
8943
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
8940
8944
|
} }),
|
8941
|
-
/* @__PURE__ */
|
8945
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8942
8946
|
"Xem",
|
8943
|
-
/* @__PURE__ */
|
8947
|
+
/* @__PURE__ */ jsx86(IconEyeUp, { color: "gray" })
|
8944
8948
|
] })
|
8945
8949
|
] }) }),
|
8946
|
-
/* @__PURE__ */
|
8947
|
-
/* @__PURE__ */
|
8950
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8951
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
8948
8952
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
8949
8953
|
} }),
|
8950
|
-
/* @__PURE__ */
|
8954
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8951
8955
|
"Th\xEAm",
|
8952
|
-
/* @__PURE__ */
|
8956
|
+
/* @__PURE__ */ jsx86(IconPlus5, { color: "blue" })
|
8953
8957
|
] })
|
8954
8958
|
] }) }),
|
8955
|
-
/* @__PURE__ */
|
8956
|
-
/* @__PURE__ */
|
8959
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8960
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
8957
8961
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
8958
8962
|
} }),
|
8959
|
-
/* @__PURE__ */
|
8963
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8960
8964
|
"S\u1EEDa",
|
8961
|
-
/* @__PURE__ */
|
8965
|
+
/* @__PURE__ */ jsx86(IconEdit5, { color: "var(--mantine-color-yellow-8)" })
|
8962
8966
|
] })
|
8963
8967
|
] }) }),
|
8964
|
-
/* @__PURE__ */
|
8965
|
-
/* @__PURE__ */
|
8968
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8969
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
8966
8970
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
8967
8971
|
} }),
|
8968
|
-
/* @__PURE__ */
|
8972
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8969
8973
|
"X\xF3a",
|
8970
|
-
/* @__PURE__ */
|
8974
|
+
/* @__PURE__ */ jsx86(IconTrash5, { color: "var(--mantine-color-red-8)" })
|
8971
8975
|
] })
|
8972
8976
|
] }) }),
|
8973
|
-
/* @__PURE__ */
|
8974
|
-
/* @__PURE__ */
|
8977
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8978
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
8975
8979
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
8976
8980
|
} }),
|
8977
|
-
/* @__PURE__ */
|
8981
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8978
8982
|
"In",
|
8979
|
-
/* @__PURE__ */
|
8983
|
+
/* @__PURE__ */ jsx86(IconPrinter3, { color: "var(--mantine-color-cyan-8)" })
|
8980
8984
|
] })
|
8981
8985
|
] }) }),
|
8982
|
-
/* @__PURE__ */
|
8983
|
-
/* @__PURE__ */
|
8986
|
+
/* @__PURE__ */ jsx86(Table3.Th, { children: /* @__PURE__ */ jsxs52(Flex5, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
8987
|
+
/* @__PURE__ */ jsx86(Checkbox3, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
8984
8988
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
8985
8989
|
} }),
|
8986
|
-
/* @__PURE__ */
|
8990
|
+
/* @__PURE__ */ jsxs52(MyFlexRow, { gap: 3, children: [
|
8987
8991
|
"Xu\u1EA5t",
|
8988
|
-
/* @__PURE__ */
|
8992
|
+
/* @__PURE__ */ jsx86(IconFileExport2, { color: "var(--mantine-color-green-8)" })
|
8989
8993
|
] })
|
8990
8994
|
] }) })
|
8991
8995
|
] })
|
8992
8996
|
}
|
8993
8997
|
),
|
8994
|
-
/* @__PURE__ */
|
8995
|
-
if (item.links == void 0) return /* @__PURE__ */
|
8996
|
-
/* @__PURE__ */
|
8997
|
-
/* @__PURE__ */
|
8998
|
-
/* @__PURE__ */
|
8999
|
-
/* @__PURE__ */
|
9000
|
-
/* @__PURE__ */
|
9001
|
-
/* @__PURE__ */
|
9002
|
-
/* @__PURE__ */
|
8998
|
+
/* @__PURE__ */ jsx86(Table3.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
8999
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9000
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item.label }),
|
9001
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9002
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9003
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9004
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9005
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) }),
|
9006
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(Checkbox3, {}) }) })
|
9003
9007
|
] }, idx);
|
9004
|
-
return /* @__PURE__ */
|
9005
|
-
/* @__PURE__ */
|
9008
|
+
return /* @__PURE__ */ jsxs52(React2.Fragment, { children: [
|
9009
|
+
/* @__PURE__ */ jsx86(Table3.Tr, { children: /* @__PURE__ */ jsx86(
|
9006
9010
|
Table3.Td,
|
9007
9011
|
{
|
9008
9012
|
colSpan: 7,
|
9009
9013
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
9010
|
-
children: /* @__PURE__ */
|
9014
|
+
children: /* @__PURE__ */ jsx86(Text14, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
9011
9015
|
}
|
9012
9016
|
) }, item.label),
|
9013
9017
|
item.links.map(
|
9014
9018
|
(item2, idx2) => {
|
9015
9019
|
var _a2, _b2, _c, _d, _e, _f;
|
9016
|
-
return /* @__PURE__ */
|
9017
|
-
/* @__PURE__ */
|
9018
|
-
/* @__PURE__ */
|
9020
|
+
return /* @__PURE__ */ jsxs52(Table3.Tr, { children: [
|
9021
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: item2.label }),
|
9022
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9019
9023
|
Checkbox3,
|
9020
9024
|
{
|
9021
9025
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -9026,7 +9030,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9026
9030
|
}
|
9027
9031
|
}
|
9028
9032
|
) }) }),
|
9029
|
-
/* @__PURE__ */
|
9033
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9030
9034
|
Checkbox3,
|
9031
9035
|
{
|
9032
9036
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -9037,7 +9041,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9037
9041
|
}
|
9038
9042
|
}
|
9039
9043
|
) }) }),
|
9040
|
-
/* @__PURE__ */
|
9044
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9041
9045
|
Checkbox3,
|
9042
9046
|
{
|
9043
9047
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -9048,7 +9052,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9048
9052
|
}
|
9049
9053
|
}
|
9050
9054
|
) }) }),
|
9051
|
-
/* @__PURE__ */
|
9055
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9052
9056
|
Checkbox3,
|
9053
9057
|
{
|
9054
9058
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -9059,7 +9063,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9059
9063
|
}
|
9060
9064
|
}
|
9061
9065
|
) }) }),
|
9062
|
-
/* @__PURE__ */
|
9066
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9063
9067
|
Checkbox3,
|
9064
9068
|
{
|
9065
9069
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -9070,7 +9074,7 @@ function F_core38677_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
9070
9074
|
}
|
9071
9075
|
}
|
9072
9076
|
) }) }),
|
9073
|
-
/* @__PURE__ */
|
9077
|
+
/* @__PURE__ */ jsx86(Table3.Td, { children: /* @__PURE__ */ jsx86(MyCenterFull, { children: /* @__PURE__ */ jsx86(
|
9074
9078
|
Checkbox3,
|
9075
9079
|
{
|
9076
9080
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -9126,13 +9130,13 @@ function useGetUserPermission() {
|
|
9126
9130
|
}
|
9127
9131
|
|
9128
9132
|
// src/modules-features/admin/core/core38677/F_core38677.tsx
|
9129
|
-
import { jsx as
|
9133
|
+
import { jsx as jsx87, jsxs as jsxs53 } from "react/jsx-runtime";
|
9130
9134
|
function F_core38677({ menuData: menuData2 }) {
|
9131
|
-
return /* @__PURE__ */
|
9132
|
-
/* @__PURE__ */
|
9133
|
-
/* @__PURE__ */
|
9134
|
-
/* @__PURE__ */
|
9135
|
-
/* @__PURE__ */
|
9135
|
+
return /* @__PURE__ */ jsxs53(Grid2, { grow: true, children: [
|
9136
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 4, children: /* @__PURE__ */ jsx87(F_core38677_ReadUser, {}) }),
|
9137
|
+
/* @__PURE__ */ jsx87(Grid2.Col, { span: 8, children: /* @__PURE__ */ jsxs53(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
9138
|
+
/* @__PURE__ */ jsx87(ScrollArea6.Autosize, { h: "100%", children: /* @__PURE__ */ jsx87(Paper10, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx87(F_core38677_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
9139
|
+
/* @__PURE__ */ jsx87(F_core38677_Save, {})
|
9136
9140
|
] }) })
|
9137
9141
|
] });
|
9138
9142
|
}
|
@@ -9144,7 +9148,7 @@ import { useMemo as useMemo9 } from "react";
|
|
9144
9148
|
// src/modules-features/admin/core/core40207/F_core40207_Create.tsx
|
9145
9149
|
import { FileInput as FileInput6 } from "@mantine/core";
|
9146
9150
|
import { useForm as useForm11 } from "@mantine/form";
|
9147
|
-
import { jsx as
|
9151
|
+
import { jsx as jsx88, jsxs as jsxs54 } from "react/jsx-runtime";
|
9148
9152
|
function F_core40207_Create({ GuidelineTypeId }) {
|
9149
9153
|
const form = useForm11({
|
9150
9154
|
mode: "uncontrolled",
|
@@ -9154,7 +9158,7 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9154
9158
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9155
9159
|
}
|
9156
9160
|
});
|
9157
|
-
return /* @__PURE__ */
|
9161
|
+
return /* @__PURE__ */ jsxs54(
|
9158
9162
|
MyButtonCreate,
|
9159
9163
|
{
|
9160
9164
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -9167,21 +9171,21 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9167
9171
|
}));
|
9168
9172
|
},
|
9169
9173
|
children: [
|
9170
|
-
/* @__PURE__ */
|
9174
|
+
/* @__PURE__ */ jsx88(
|
9171
9175
|
MyTextInput,
|
9172
9176
|
__spreadValues({
|
9173
9177
|
withAsterisk: true,
|
9174
9178
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9175
9179
|
}, form.getInputProps("code"))
|
9176
9180
|
),
|
9177
|
-
/* @__PURE__ */
|
9181
|
+
/* @__PURE__ */ jsx88(
|
9178
9182
|
MyTextInput,
|
9179
9183
|
__spreadValues({
|
9180
9184
|
withAsterisk: true,
|
9181
9185
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9182
9186
|
}, form.getInputProps("name"))
|
9183
9187
|
),
|
9184
|
-
/* @__PURE__ */
|
9188
|
+
/* @__PURE__ */ jsx88(
|
9185
9189
|
FileInput6,
|
9186
9190
|
__spreadValues({
|
9187
9191
|
withAsterisk: true,
|
@@ -9195,12 +9199,12 @@ function F_core40207_Create({ GuidelineTypeId }) {
|
|
9195
9199
|
}
|
9196
9200
|
|
9197
9201
|
// src/modules-features/admin/core/core40207/F_core40207_Delete.tsx
|
9198
|
-
import { jsx as
|
9202
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
9199
9203
|
function F_core40207_Delete({
|
9200
9204
|
id,
|
9201
9205
|
contextData
|
9202
9206
|
}) {
|
9203
|
-
return /* @__PURE__ */
|
9207
|
+
return /* @__PURE__ */ jsx89(
|
9204
9208
|
MyActionIconDelete,
|
9205
9209
|
{
|
9206
9210
|
contextData,
|
@@ -9212,7 +9216,7 @@ function F_core40207_Delete({
|
|
9212
9216
|
// src/modules-features/admin/core/core40207/F_core40207_Update.tsx
|
9213
9217
|
import { FileInput as FileInput7 } from "@mantine/core";
|
9214
9218
|
import { useForm as useForm12 } from "@mantine/form";
|
9215
|
-
import { jsx as
|
9219
|
+
import { jsx as jsx90, jsxs as jsxs55 } from "react/jsx-runtime";
|
9216
9220
|
function F_core40207_Update({ values }) {
|
9217
9221
|
var _a;
|
9218
9222
|
const form = useForm12({
|
@@ -9229,7 +9233,7 @@ function F_core40207_Update({ values }) {
|
|
9229
9233
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
9230
9234
|
}
|
9231
9235
|
});
|
9232
|
-
return /* @__PURE__ */
|
9236
|
+
return /* @__PURE__ */ jsxs55(
|
9233
9237
|
MyActionIconUpdate,
|
9234
9238
|
{
|
9235
9239
|
form,
|
@@ -9239,21 +9243,21 @@ function F_core40207_Update({ values }) {
|
|
9239
9243
|
}));
|
9240
9244
|
},
|
9241
9245
|
children: [
|
9242
|
-
/* @__PURE__ */
|
9246
|
+
/* @__PURE__ */ jsx90(
|
9243
9247
|
MyTextInput,
|
9244
9248
|
__spreadValues({
|
9245
9249
|
withAsterisk: true,
|
9246
9250
|
label: "M\xE3 t\xE0i li\u1EC7u"
|
9247
9251
|
}, form.getInputProps("code"))
|
9248
9252
|
),
|
9249
|
-
/* @__PURE__ */
|
9253
|
+
/* @__PURE__ */ jsx90(
|
9250
9254
|
MyTextInput,
|
9251
9255
|
__spreadValues({
|
9252
9256
|
withAsterisk: true,
|
9253
9257
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
9254
9258
|
}, form.getInputProps("name"))
|
9255
9259
|
),
|
9256
|
-
/* @__PURE__ */
|
9260
|
+
/* @__PURE__ */ jsx90(
|
9257
9261
|
FileInput7,
|
9258
9262
|
__spreadValues({
|
9259
9263
|
withAsterisk: true,
|
@@ -9267,7 +9271,7 @@ function F_core40207_Update({ values }) {
|
|
9267
9271
|
}
|
9268
9272
|
|
9269
9273
|
// src/modules-features/admin/core/core40207/F_core40207_Read.tsx
|
9270
|
-
import { jsx as
|
9274
|
+
import { jsx as jsx91, jsxs as jsxs56 } from "react/jsx-runtime";
|
9271
9275
|
function F_core40207_Read({ GuidelineTypeId }) {
|
9272
9276
|
const query = useQuery11({
|
9273
9277
|
queryKey: ["F_core40207_Read"],
|
@@ -9292,7 +9296,7 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9292
9296
|
{
|
9293
9297
|
header: "File",
|
9294
9298
|
accessorFn: (row) => {
|
9295
|
-
return /* @__PURE__ */
|
9299
|
+
return /* @__PURE__ */ jsx91(MyCenterFull, { children: /* @__PURE__ */ jsx91(MyButtonViewPDF, { id: row.id }) });
|
9296
9300
|
}
|
9297
9301
|
}
|
9298
9302
|
],
|
@@ -9300,16 +9304,16 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9300
9304
|
);
|
9301
9305
|
if (query.isLoading) return "Loading...";
|
9302
9306
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
9303
|
-
return /* @__PURE__ */
|
9307
|
+
return /* @__PURE__ */ jsx91(
|
9304
9308
|
MyDataTable,
|
9305
9309
|
{
|
9306
9310
|
columns,
|
9307
9311
|
data: query.data,
|
9308
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9312
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx91(F_core40207_Create, { GuidelineTypeId }),
|
9309
9313
|
renderRowActions: ({ row }) => {
|
9310
|
-
return /* @__PURE__ */
|
9311
|
-
/* @__PURE__ */
|
9312
|
-
/* @__PURE__ */
|
9314
|
+
return /* @__PURE__ */ jsxs56(MyCenterFull, { children: [
|
9315
|
+
/* @__PURE__ */ jsx91(F_core40207_Update, { values: row.original }),
|
9316
|
+
/* @__PURE__ */ jsx91(
|
9313
9317
|
F_core40207_Delete,
|
9314
9318
|
{
|
9315
9319
|
id: row.original.id,
|
@@ -9323,21 +9327,21 @@ function F_core40207_Read({ GuidelineTypeId }) {
|
|
9323
9327
|
}
|
9324
9328
|
|
9325
9329
|
// src/modules-features/admin/core/core40207/F_core40207.tsx
|
9326
|
-
import { jsx as
|
9330
|
+
import { jsx as jsx92 } from "react/jsx-runtime";
|
9327
9331
|
function F_core40207({ GuidelineTypeId }) {
|
9328
|
-
return /* @__PURE__ */
|
9332
|
+
return /* @__PURE__ */ jsx92(F_core40207_Read, { GuidelineTypeId });
|
9329
9333
|
}
|
9330
9334
|
|
9331
9335
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9332
|
-
import { Group as
|
9336
|
+
import { Group as Group16 } from "@mantine/core";
|
9333
9337
|
import { useQuery as useQuery12 } from "@tanstack/react-query";
|
9334
9338
|
import { useMemo as useMemo10 } from "react";
|
9335
9339
|
|
9336
9340
|
// src/modules-features/admin/core/core47643/F_core47643_Delete.tsx
|
9337
|
-
import { jsx as
|
9341
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
9338
9342
|
var ENDPOINT = "/Role/Delete";
|
9339
9343
|
function F_core47643_Delete({ values }) {
|
9340
|
-
return /* @__PURE__ */
|
9344
|
+
return /* @__PURE__ */ jsx93(
|
9341
9345
|
MyActionIconDelete,
|
9342
9346
|
{
|
9343
9347
|
contextData: values.code,
|
@@ -9348,28 +9352,28 @@ function F_core47643_Delete({ values }) {
|
|
9348
9352
|
|
9349
9353
|
// src/modules-features/admin/core/core47643/F_core47643_Form.tsx
|
9350
9354
|
import { useForm as useForm13 } from "@mantine/form";
|
9351
|
-
import { jsx as
|
9355
|
+
import { jsx as jsx94, jsxs as jsxs57 } from "react/jsx-runtime";
|
9352
9356
|
function F_core47643_Form({ values }) {
|
9353
9357
|
const form = useForm13({
|
9354
9358
|
mode: "uncontrolled",
|
9355
9359
|
initialValues: values
|
9356
9360
|
});
|
9357
|
-
if (values) return /* @__PURE__ */
|
9361
|
+
if (values) return /* @__PURE__ */ jsxs57(MyActionIconUpdate, { form, onSubmit: async () => {
|
9358
9362
|
return await baseAxios_default.post("/Role/Update", form.getValues());
|
9359
9363
|
}, children: [
|
9360
|
-
/* @__PURE__ */
|
9361
|
-
/* @__PURE__ */
|
9364
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ readOnly: true, variant: "filled", label: "M\xE3" }, form.getInputProps("code"))),
|
9365
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9362
9366
|
] });
|
9363
|
-
return /* @__PURE__ */
|
9367
|
+
return /* @__PURE__ */ jsxs57(MyButtonCreate, { form, onSubmit: async () => {
|
9364
9368
|
return await baseAxios_default.post("/Role/Create", form.getValues());
|
9365
9369
|
}, children: [
|
9366
|
-
/* @__PURE__ */
|
9367
|
-
/* @__PURE__ */
|
9370
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "M\xE3" }, form.getInputProps("code"))),
|
9371
|
+
/* @__PURE__ */ jsx94(MyTextInput, __spreadValues({ label: "Quy\u1EC1n" }, form.getInputProps("name")))
|
9368
9372
|
] });
|
9369
9373
|
}
|
9370
9374
|
|
9371
9375
|
// src/modules-features/admin/core/core47643/F_core47643_Read.tsx
|
9372
|
-
import { jsx as
|
9376
|
+
import { jsx as jsx95, jsxs as jsxs58 } from "react/jsx-runtime";
|
9373
9377
|
function F_core47643_Read() {
|
9374
9378
|
const query = useQ_core47643_GetAdminRole();
|
9375
9379
|
const columns = useMemo10(() => [
|
@@ -9384,15 +9388,15 @@ function F_core47643_Read() {
|
|
9384
9388
|
], []);
|
9385
9389
|
if (query.isLoading) return "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...";
|
9386
9390
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
9387
|
-
return /* @__PURE__ */
|
9391
|
+
return /* @__PURE__ */ jsx95(
|
9388
9392
|
MyDataTable,
|
9389
9393
|
{
|
9390
9394
|
data: query.data,
|
9391
9395
|
columns,
|
9392
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9393
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9394
|
-
/* @__PURE__ */
|
9395
|
-
/* @__PURE__ */
|
9396
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx95(Group16, { children: /* @__PURE__ */ jsx95(F_core47643_Form, {}) }),
|
9397
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs58(MyCenterFull, { children: [
|
9398
|
+
/* @__PURE__ */ jsx95(F_core47643_Form, { values: row.original }),
|
9399
|
+
/* @__PURE__ */ jsx95(F_core47643_Delete, { values: row.original })
|
9396
9400
|
] })
|
9397
9401
|
}
|
9398
9402
|
);
|
@@ -9409,9 +9413,9 @@ function useQ_core47643_GetAdminRole() {
|
|
9409
9413
|
}
|
9410
9414
|
|
9411
9415
|
// src/modules-features/admin/core/core47643/F_core47643.tsx
|
9412
|
-
import { jsx as
|
9416
|
+
import { jsx as jsx96 } from "react/jsx-runtime";
|
9413
9417
|
function F_core47643() {
|
9414
|
-
return /* @__PURE__ */
|
9418
|
+
return /* @__PURE__ */ jsx96(MyPageContent, { title: "Danh m\u1EE5c quy\u1EC1n", canBack: true, children: /* @__PURE__ */ jsx96(F_core47643_Read, {}) });
|
9415
9419
|
}
|
9416
9420
|
|
9417
9421
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
@@ -9435,7 +9439,7 @@ function useS_core60524() {
|
|
9435
9439
|
}
|
9436
9440
|
|
9437
9441
|
// src/modules-features/admin/core/core60524/F_core60524_Save.tsx
|
9438
|
-
import { jsx as
|
9442
|
+
import { jsx as jsx97 } from "react/jsx-runtime";
|
9439
9443
|
function F_core60524_Save({
|
9440
9444
|
form
|
9441
9445
|
}) {
|
@@ -9469,7 +9473,7 @@ function F_core60524_Save({
|
|
9469
9473
|
}
|
9470
9474
|
});
|
9471
9475
|
}
|
9472
|
-
return /* @__PURE__ */
|
9476
|
+
return /* @__PURE__ */ jsx97(
|
9473
9477
|
MyButton,
|
9474
9478
|
{
|
9475
9479
|
disabled: !form.isDirty(),
|
@@ -9480,7 +9484,7 @@ function F_core60524_Save({
|
|
9480
9484
|
}
|
9481
9485
|
|
9482
9486
|
// src/modules-features/admin/core/core60524/F_core60524_Form.tsx
|
9483
|
-
import { jsx as
|
9487
|
+
import { jsx as jsx98, jsxs as jsxs59 } from "react/jsx-runtime";
|
9484
9488
|
function F_core60524_Form() {
|
9485
9489
|
const query = useQ_AQ_GetAQModule();
|
9486
9490
|
const form = useForm14({
|
@@ -9511,14 +9515,14 @@ function F_core60524_Form() {
|
|
9511
9515
|
form.setInitialValues(values);
|
9512
9516
|
form.setValues(values);
|
9513
9517
|
}, [query.data]);
|
9514
|
-
return /* @__PURE__ */
|
9515
|
-
/* @__PURE__ */
|
9516
|
-
/* @__PURE__ */
|
9517
|
-
/* @__PURE__ */
|
9518
|
-
/* @__PURE__ */
|
9519
|
-
/* @__PURE__ */
|
9520
|
-
/* @__PURE__ */
|
9521
|
-
/* @__PURE__ */
|
9518
|
+
return /* @__PURE__ */ jsxs59(Paper11, { p: "md", children: [
|
9519
|
+
/* @__PURE__ */ jsxs59(Grid3, { children: [
|
9520
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: 5, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("code")), { label: "M\xE3 module", disabled: true })) }),
|
9521
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 7 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("name")), { label: "T\xEAn module" })) }),
|
9522
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: 12, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("officelName")), { label: "T\xEAn \u0111\u01A1n v\u1ECB ch\u1EE7 qu\u1EA3n" })) }),
|
9523
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({}, form.getInputProps("email")), { label: "Email" })) }),
|
9524
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(MyTextInput, __spreadProps(__spreadValues({ isPhoneNumber: true }, form.getInputProps("phoneNumber")), { label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" })) }),
|
9525
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9522
9526
|
MyDateInput,
|
9523
9527
|
{
|
9524
9528
|
value: form.getValues().registrationDate,
|
@@ -9526,7 +9530,7 @@ function F_core60524_Form() {
|
|
9526
9530
|
label: "Ng\xE0y \u0111\u0103ng k\xFD"
|
9527
9531
|
}
|
9528
9532
|
) }),
|
9529
|
-
/* @__PURE__ */
|
9533
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9530
9534
|
MyDateInput,
|
9531
9535
|
{
|
9532
9536
|
value: form.getValues().limiteDate,
|
@@ -9534,7 +9538,7 @@ function F_core60524_Form() {
|
|
9534
9538
|
label: "Ng\xE0y h\u1EBFt h\u1EA1n"
|
9535
9539
|
}
|
9536
9540
|
) }),
|
9537
|
-
/* @__PURE__ */
|
9541
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9538
9542
|
MyFileInput,
|
9539
9543
|
{
|
9540
9544
|
accept: "image/png,image/jpeg",
|
@@ -9546,7 +9550,7 @@ function F_core60524_Form() {
|
|
9546
9550
|
}
|
9547
9551
|
}
|
9548
9552
|
) }),
|
9549
|
-
/* @__PURE__ */
|
9553
|
+
/* @__PURE__ */ jsx98(Grid3.Col, { span: { base: 12, md: 6 }, children: /* @__PURE__ */ jsx98(
|
9550
9554
|
MyFileInput,
|
9551
9555
|
{
|
9552
9556
|
accept: "image/png,image/jpeg",
|
@@ -9559,18 +9563,18 @@ function F_core60524_Form() {
|
|
9559
9563
|
}
|
9560
9564
|
) })
|
9561
9565
|
] }),
|
9562
|
-
/* @__PURE__ */
|
9566
|
+
/* @__PURE__ */ jsx98(MyFlexEnd, { children: /* @__PURE__ */ jsx98(F_core60524_Save, { form }) })
|
9563
9567
|
] });
|
9564
9568
|
}
|
9565
9569
|
|
9566
9570
|
// src/modules-features/admin/core/core60524/F_core60524.tsx
|
9567
|
-
import { jsx as
|
9571
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
9568
9572
|
function F_core60524({ AQModuleId }) {
|
9569
9573
|
const store = useS_core60524();
|
9570
9574
|
useEffect11(() => {
|
9571
9575
|
store.setProperty("AQModuleId", AQModuleId);
|
9572
9576
|
}, []);
|
9573
|
-
return /* @__PURE__ */
|
9577
|
+
return /* @__PURE__ */ jsx99(F_core60524_Form, {});
|
9574
9578
|
}
|
9575
9579
|
|
9576
9580
|
// src/constants/enum/ENUM_EMAILCONFIG.ts
|
@@ -9589,7 +9593,7 @@ import { useMemo as useMemo11 } from "react";
|
|
9589
9593
|
// src/modules-features/admin/core/core64229/F_core64229_Form.tsx
|
9590
9594
|
import { PasswordInput } from "@mantine/core";
|
9591
9595
|
import { useForm as useForm15 } from "@mantine/form";
|
9592
|
-
import { jsx as
|
9596
|
+
import { jsx as jsx100, jsxs as jsxs60 } from "react/jsx-runtime";
|
9593
9597
|
function F_core64229_Form({ values }) {
|
9594
9598
|
const form = useForm15({
|
9595
9599
|
mode: "uncontrolled",
|
@@ -9615,27 +9619,27 @@ function F_core64229_Form({ values }) {
|
|
9615
9619
|
"password": formValues.password
|
9616
9620
|
});
|
9617
9621
|
}
|
9618
|
-
if (values) return /* @__PURE__ */
|
9622
|
+
if (values) return /* @__PURE__ */ jsx100(
|
9619
9623
|
MyActionIconUpdate,
|
9620
9624
|
{
|
9621
9625
|
form,
|
9622
9626
|
onSubmit: handleSubmit,
|
9623
|
-
children: /* @__PURE__ */
|
9627
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9624
9628
|
}
|
9625
9629
|
);
|
9626
|
-
return /* @__PURE__ */
|
9630
|
+
return /* @__PURE__ */ jsx100(
|
9627
9631
|
MyButtonCreate,
|
9628
9632
|
{
|
9629
9633
|
form,
|
9630
9634
|
onSubmit: handleSubmit,
|
9631
|
-
children: /* @__PURE__ */
|
9635
|
+
children: /* @__PURE__ */ jsx100(FormInput, { form })
|
9632
9636
|
}
|
9633
9637
|
);
|
9634
9638
|
}
|
9635
9639
|
function FormInput({ form }) {
|
9636
9640
|
var _a, _b;
|
9637
|
-
return /* @__PURE__ */
|
9638
|
-
/* @__PURE__ */
|
9641
|
+
return /* @__PURE__ */ jsxs60(MyFlexColumn, { children: [
|
9642
|
+
/* @__PURE__ */ jsx100(
|
9639
9643
|
MySelect,
|
9640
9644
|
__spreadProps(__spreadValues({
|
9641
9645
|
label: "Ph\xE2n h\u1EC7",
|
@@ -9644,25 +9648,25 @@ function FormInput({ form }) {
|
|
9644
9648
|
value: (_a = form.getValues().emailModule) == null ? void 0 : _a.toString()
|
9645
9649
|
})
|
9646
9650
|
),
|
9647
|
-
/* @__PURE__ */
|
9651
|
+
/* @__PURE__ */ jsx100(
|
9648
9652
|
MyTextInput,
|
9649
9653
|
__spreadValues({
|
9650
9654
|
label: "Host mail server"
|
9651
9655
|
}, form.getInputProps("hostMailServer"))
|
9652
9656
|
),
|
9653
|
-
/* @__PURE__ */
|
9657
|
+
/* @__PURE__ */ jsx100(
|
9654
9658
|
MyNumberInput,
|
9655
9659
|
__spreadValues({
|
9656
9660
|
label: "Outgoing port"
|
9657
9661
|
}, form.getInputProps("outgoingPort"))
|
9658
9662
|
),
|
9659
|
-
/* @__PURE__ */
|
9663
|
+
/* @__PURE__ */ jsx100(
|
9660
9664
|
MyNumberInput,
|
9661
9665
|
__spreadValues({
|
9662
9666
|
label: "Incoming port"
|
9663
9667
|
}, form.getInputProps("incomingPort"))
|
9664
9668
|
),
|
9665
|
-
/* @__PURE__ */
|
9669
|
+
/* @__PURE__ */ jsx100(
|
9666
9670
|
MySelect,
|
9667
9671
|
{
|
9668
9672
|
label: "SSL",
|
@@ -9671,13 +9675,13 @@ function FormInput({ form }) {
|
|
9671
9675
|
onChange: (e4) => form.setFieldValue("sll", e4 == "true" ? true : false)
|
9672
9676
|
}
|
9673
9677
|
),
|
9674
|
-
/* @__PURE__ */
|
9678
|
+
/* @__PURE__ */ jsx100(
|
9675
9679
|
MyTextInput,
|
9676
9680
|
__spreadValues({
|
9677
9681
|
label: "Username"
|
9678
9682
|
}, form.getInputProps("userName"))
|
9679
9683
|
),
|
9680
|
-
/* @__PURE__ */
|
9684
|
+
/* @__PURE__ */ jsx100(
|
9681
9685
|
PasswordInput,
|
9682
9686
|
__spreadValues({
|
9683
9687
|
label: "Password",
|
@@ -9688,9 +9692,9 @@ function FormInput({ form }) {
|
|
9688
9692
|
}
|
9689
9693
|
|
9690
9694
|
// src/modules-features/admin/core/core64229/F_core64229_Delete.tsx
|
9691
|
-
import { jsx as
|
9695
|
+
import { jsx as jsx101 } from "react/jsx-runtime";
|
9692
9696
|
function F_core64229_Delete({ values }) {
|
9693
|
-
return /* @__PURE__ */
|
9697
|
+
return /* @__PURE__ */ jsx101(
|
9694
9698
|
MyActionIconDelete,
|
9695
9699
|
{
|
9696
9700
|
contextData: values == null ? void 0 : values.code,
|
@@ -9704,7 +9708,7 @@ function F_core64229_Delete({ values }) {
|
|
9704
9708
|
}
|
9705
9709
|
|
9706
9710
|
// src/modules-features/admin/core/core64229/F_core64229_Read.tsx
|
9707
|
-
import { jsx as
|
9711
|
+
import { jsx as jsx102, jsxs as jsxs61 } from "react/jsx-runtime";
|
9708
9712
|
function F_core64229_Read() {
|
9709
9713
|
const query = useQuery13({
|
9710
9714
|
queryKey: ["F_core64229_Read"],
|
@@ -9749,39 +9753,39 @@ function F_core64229_Read() {
|
|
9749
9753
|
}
|
9750
9754
|
], []);
|
9751
9755
|
if (query.isLoading) return "\u0110ang t\u1EA3i";
|
9752
|
-
return /* @__PURE__ */
|
9756
|
+
return /* @__PURE__ */ jsx102(
|
9753
9757
|
MyDataTable,
|
9754
9758
|
{
|
9755
9759
|
columns,
|
9756
9760
|
data: query.data,
|
9757
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
9758
|
-
renderRowActions: ({ row }) => /* @__PURE__ */
|
9759
|
-
/* @__PURE__ */
|
9760
|
-
/* @__PURE__ */
|
9761
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx102(F_core64229_Form, {}),
|
9762
|
+
renderRowActions: ({ row }) => /* @__PURE__ */ jsxs61(MyCenterFull, { children: [
|
9763
|
+
/* @__PURE__ */ jsx102(F_core64229_Form, { values: row.original }),
|
9764
|
+
/* @__PURE__ */ jsx102(F_core64229_Delete, { values: row.original })
|
9761
9765
|
] })
|
9762
9766
|
}
|
9763
9767
|
);
|
9764
9768
|
}
|
9765
9769
|
|
9766
9770
|
// src/modules-features/admin/core/core64229/F_core64229.tsx
|
9767
|
-
import { jsx as
|
9771
|
+
import { jsx as jsx103 } from "react/jsx-runtime";
|
9768
9772
|
function F_core64229() {
|
9769
|
-
return /* @__PURE__ */
|
9773
|
+
return /* @__PURE__ */ jsx103(F_core64229_Read, {});
|
9770
9774
|
}
|
9771
9775
|
|
9772
9776
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9773
|
-
import { Button as Button17, Group as
|
9777
|
+
import { Button as Button17, Group as Group18 } from "@mantine/core";
|
9774
9778
|
import { IconShield } from "@tabler/icons-react";
|
9775
9779
|
import { useQuery as useQuery15 } from "@tanstack/react-query";
|
9776
9780
|
import { useRouter as useRouter3 } from "next/navigation";
|
9777
9781
|
import { useMemo as useMemo13, useState as useState13 } from "react";
|
9778
9782
|
|
9779
9783
|
// src/modules-features/admin/core/core71678/F_core71678_ChangePermission.tsx
|
9780
|
-
import { Button as Button16, Fieldset as Fieldset6, Group as
|
9784
|
+
import { Button as Button16, Fieldset as Fieldset6, Group as Group17, Table as Table4 } from "@mantine/core";
|
9781
9785
|
import { useDisclosure as useDisclosure12 } from "@mantine/hooks";
|
9782
9786
|
import { useMutation as useMutation7, useQuery as useQuery14, useQueryClient as useQueryClient5 } from "@tanstack/react-query";
|
9783
9787
|
import { useEffect as useEffect12, useMemo as useMemo12, useState as useState12 } from "react";
|
9784
|
-
import { jsx as
|
9788
|
+
import { jsx as jsx104, jsxs as jsxs62 } from "react/jsx-runtime";
|
9785
9789
|
function F_core71678_ChangePermission({ user }) {
|
9786
9790
|
const disc = useDisclosure12();
|
9787
9791
|
const queryClient = useQueryClient5();
|
@@ -9828,32 +9832,32 @@ function F_core71678_ChangePermission({ user }) {
|
|
9828
9832
|
}, {});
|
9829
9833
|
setRowSelection(result);
|
9830
9834
|
}, []);
|
9831
|
-
return /* @__PURE__ */
|
9832
|
-
/* @__PURE__ */
|
9835
|
+
return /* @__PURE__ */ jsxs62(MyButtonModal, { modalSize: "xl", disclosure: disc, title: "Ch\u1ECDn quy\u1EC1n cho ng\u01B0\u1EDDi d\xF9ng", label: "S\u1EEDa quy\u1EC1n", children: [
|
9836
|
+
/* @__PURE__ */ jsx104(
|
9833
9837
|
Table4,
|
9834
9838
|
{
|
9835
9839
|
w: "100%",
|
9836
9840
|
variant: "vertical",
|
9837
9841
|
layout: "fixed",
|
9838
|
-
children: /* @__PURE__ */
|
9839
|
-
/* @__PURE__ */
|
9840
|
-
/* @__PURE__ */
|
9841
|
-
/* @__PURE__ */
|
9842
|
+
children: /* @__PURE__ */ jsxs62(Table4.Tbody, { children: [
|
9843
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9844
|
+
/* @__PURE__ */ jsx104(Table4.Th, { w: 160, children: "H\u1ECD v\xE0 t\xEAn:" }),
|
9845
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.fullName })
|
9842
9846
|
] }),
|
9843
|
-
/* @__PURE__ */
|
9844
|
-
/* @__PURE__ */
|
9845
|
-
/* @__PURE__ */
|
9847
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9848
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "T\xEAn \u0111\u0103ng nh\u1EADp:" }),
|
9849
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.userName })
|
9846
9850
|
] }),
|
9847
|
-
/* @__PURE__ */
|
9848
|
-
/* @__PURE__ */
|
9849
|
-
/* @__PURE__ */
|
9851
|
+
/* @__PURE__ */ jsxs62(Table4.Tr, { children: [
|
9852
|
+
/* @__PURE__ */ jsx104(Table4.Th, { children: "Email:" }),
|
9853
|
+
/* @__PURE__ */ jsx104(Table4.Td, { children: user.email })
|
9850
9854
|
] })
|
9851
9855
|
] })
|
9852
9856
|
}
|
9853
9857
|
),
|
9854
9858
|
query.isLoading && "\u0110ang t\u1EA3i d\u1EEF li\u1EC7u...",
|
9855
9859
|
query.isError && "L\u1ED7i khi t\u1EA3i d\u1EEF li\u1EC7u...",
|
9856
|
-
/* @__PURE__ */
|
9860
|
+
/* @__PURE__ */ jsx104(Fieldset6, { legend: "Ch\u1ECDn quy\u1EC1n", children: /* @__PURE__ */ jsx104(
|
9857
9861
|
MyDataTable,
|
9858
9862
|
{
|
9859
9863
|
enableRowSelection: true,
|
@@ -9877,13 +9881,13 @@ function F_core71678_ChangePermission({ user }) {
|
|
9877
9881
|
data: query.data
|
9878
9882
|
}
|
9879
9883
|
) }),
|
9880
|
-
/* @__PURE__ */
|
9884
|
+
/* @__PURE__ */ jsx104(Group17, { justify: "flex-end", mt: 24, children: /* @__PURE__ */ jsx104(Button16, { onClick: handleSave, children: "L\u01B0u" }) })
|
9881
9885
|
] });
|
9882
9886
|
}
|
9883
9887
|
|
9884
9888
|
// src/modules-features/admin/core/core71678/F_core71678_Create.tsx
|
9885
9889
|
import { useForm as useForm16 } from "@mantine/form";
|
9886
|
-
import { jsx as
|
9890
|
+
import { jsx as jsx105, jsxs as jsxs63 } from "react/jsx-runtime";
|
9887
9891
|
var ENDPOINT2 = "/Account/create";
|
9888
9892
|
function F_core71678_Create() {
|
9889
9893
|
const form = useForm16({
|
@@ -9911,21 +9915,21 @@ function F_core71678_Create() {
|
|
9911
9915
|
AQModuleId: 1002
|
9912
9916
|
}));
|
9913
9917
|
}
|
9914
|
-
return /* @__PURE__ */
|
9915
|
-
/* @__PURE__ */
|
9916
|
-
/* @__PURE__ */
|
9917
|
-
/* @__PURE__ */
|
9918
|
-
/* @__PURE__ */
|
9919
|
-
/* @__PURE__ */
|
9920
|
-
/* @__PURE__ */
|
9918
|
+
return /* @__PURE__ */ jsxs63(MyButtonCreate, { form, onSubmit: handleSubmit, objectName: "ng\u01B0\u1EDDi d\xF9ng", children: [
|
9919
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9920
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9921
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "M\u1EADt kh\u1EA9u" }, form.getInputProps("password"))),
|
9922
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9923
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9924
|
+
/* @__PURE__ */ jsx105(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9921
9925
|
] });
|
9922
9926
|
}
|
9923
9927
|
|
9924
9928
|
// src/modules-features/admin/core/core71678/F_core71678_Delete.tsx
|
9925
|
-
import { jsx as
|
9929
|
+
import { jsx as jsx106 } from "react/jsx-runtime";
|
9926
9930
|
var ENDPOINT3 = "/Account/delete";
|
9927
9931
|
function F_core71678_Delete({ id, code }) {
|
9928
|
-
return /* @__PURE__ */
|
9932
|
+
return /* @__PURE__ */ jsx106(
|
9929
9933
|
MyActionIconDelete,
|
9930
9934
|
{
|
9931
9935
|
contextData: code,
|
@@ -9937,7 +9941,7 @@ function F_core71678_Delete({ id, code }) {
|
|
9937
9941
|
// src/modules-features/admin/core/core71678/F_core71678_Update.tsx
|
9938
9942
|
import { useForm as useForm17 } from "@mantine/form";
|
9939
9943
|
import { useEffect as useEffect13 } from "react";
|
9940
|
-
import { jsx as
|
9944
|
+
import { jsx as jsx107, jsxs as jsxs64 } from "react/jsx-runtime";
|
9941
9945
|
function F_core71678_Update({ user }) {
|
9942
9946
|
const form = useForm17({
|
9943
9947
|
initialValues: user
|
@@ -9945,7 +9949,7 @@ function F_core71678_Update({ user }) {
|
|
9945
9949
|
useEffect13(() => {
|
9946
9950
|
console.log(form.values);
|
9947
9951
|
}, [form.values]);
|
9948
|
-
return /* @__PURE__ */
|
9952
|
+
return /* @__PURE__ */ jsx107(MyActionIconUpdate, { form, onSubmit: async (values) => {
|
9949
9953
|
return await baseAxios_default.post(
|
9950
9954
|
"/Account/update",
|
9951
9955
|
__spreadProps(__spreadValues({}, values), {
|
@@ -9957,17 +9961,17 @@ function F_core71678_Update({ user }) {
|
|
9957
9961
|
workingUnitId: null
|
9958
9962
|
})
|
9959
9963
|
);
|
9960
|
-
}, children: /* @__PURE__ */
|
9961
|
-
/* @__PURE__ */
|
9962
|
-
/* @__PURE__ */
|
9963
|
-
/* @__PURE__ */
|
9964
|
-
/* @__PURE__ */
|
9965
|
-
/* @__PURE__ */
|
9964
|
+
}, children: /* @__PURE__ */ jsxs64(MyFlexColumn, { children: [
|
9965
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "M\xE3 t\xE0i kho\u1EA3n" }, form.getInputProps("code"))),
|
9966
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ disabled: true, label: "T\xEAn t\xE0i kho\u1EA3n" }, form.getInputProps("userName"))),
|
9967
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "H\u1ECD v\xE0 t\xEAn" }, form.getInputProps("fullName"))),
|
9968
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "Email" }, form.getInputProps("email"))),
|
9969
|
+
/* @__PURE__ */ jsx107(MyTextInput, __spreadValues({ label: "S\u1ED1 \u0111i\u1EC7n tho\u1EA1i" }, form.getInputProps("phoneNumber")))
|
9966
9970
|
] }) });
|
9967
9971
|
}
|
9968
9972
|
|
9969
9973
|
// src/modules-features/admin/core/core71678/F_core71678_Read.tsx
|
9970
|
-
import { jsx as
|
9974
|
+
import { jsx as jsx108, jsxs as jsxs65 } from "react/jsx-runtime";
|
9971
9975
|
var ENDPOINT4 = "/Account/GetAdminAccount";
|
9972
9976
|
function F_core71678_Read() {
|
9973
9977
|
const router = useRouter3();
|
@@ -9999,25 +10003,25 @@ function F_core71678_Read() {
|
|
9999
10003
|
},
|
10000
10004
|
{
|
10001
10005
|
header: "Quy\u1EC1n",
|
10002
|
-
accessorFn: (row) => /* @__PURE__ */
|
10006
|
+
accessorFn: (row) => /* @__PURE__ */ jsx108(F_core71678_ChangePermission, { user: row })
|
10003
10007
|
}
|
10004
10008
|
],
|
10005
10009
|
[]
|
10006
10010
|
);
|
10007
10011
|
if (AllUserQuery.isLoading) return "Loading...";
|
10008
|
-
return /* @__PURE__ */
|
10012
|
+
return /* @__PURE__ */ jsx108(
|
10009
10013
|
MyDataTable,
|
10010
10014
|
{
|
10011
10015
|
columns,
|
10012
10016
|
data: AllUserQuery.data,
|
10013
10017
|
renderTopToolbarCustomActions: () => {
|
10014
|
-
return /* @__PURE__ */
|
10015
|
-
/* @__PURE__ */
|
10016
|
-
/* @__PURE__ */
|
10018
|
+
return /* @__PURE__ */ jsxs65(Group18, { children: [
|
10019
|
+
/* @__PURE__ */ jsx108(F_core71678_Create, {}),
|
10020
|
+
/* @__PURE__ */ jsx108(
|
10017
10021
|
Button17,
|
10018
10022
|
{
|
10019
10023
|
color: "violet",
|
10020
|
-
leftSection: /* @__PURE__ */
|
10024
|
+
leftSection: /* @__PURE__ */ jsx108(IconShield, {}),
|
10021
10025
|
onClick: () => {
|
10022
10026
|
router.push("core47643");
|
10023
10027
|
},
|
@@ -10027,9 +10031,9 @@ function F_core71678_Read() {
|
|
10027
10031
|
] });
|
10028
10032
|
},
|
10029
10033
|
renderRowActions: ({ row }) => {
|
10030
|
-
return /* @__PURE__ */
|
10031
|
-
/* @__PURE__ */
|
10032
|
-
/* @__PURE__ */
|
10034
|
+
return /* @__PURE__ */ jsxs65(MyCenterFull, { children: [
|
10035
|
+
/* @__PURE__ */ jsx108(F_core71678_Update, { user: row.original }),
|
10036
|
+
/* @__PURE__ */ jsx108(F_core71678_Delete, { id: row.original.id, code: row.original.code })
|
10033
10037
|
] });
|
10034
10038
|
}
|
10035
10039
|
}
|
@@ -10037,9 +10041,9 @@ function F_core71678_Read() {
|
|
10037
10041
|
}
|
10038
10042
|
|
10039
10043
|
// src/modules-features/admin/core/core71678/F_core71678.tsx
|
10040
|
-
import { jsx as
|
10044
|
+
import { jsx as jsx109 } from "react/jsx-runtime";
|
10041
10045
|
function F_core71678() {
|
10042
|
-
return /* @__PURE__ */
|
10046
|
+
return /* @__PURE__ */ jsx109(F_core71678_Read, {});
|
10043
10047
|
}
|
10044
10048
|
|
10045
10049
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
@@ -10049,7 +10053,7 @@ import { useMemo as useMemo14 } from "react";
|
|
10049
10053
|
// src/modules-features/admin/core/core76318/F_core76318_Create.tsx
|
10050
10054
|
import { FileInput as FileInput8 } from "@mantine/core";
|
10051
10055
|
import { useForm as useForm18 } from "@mantine/form";
|
10052
|
-
import { jsx as
|
10056
|
+
import { jsx as jsx110, jsxs as jsxs66 } from "react/jsx-runtime";
|
10053
10057
|
function F_core76318_Create({ SecurityTypeId }) {
|
10054
10058
|
const form = useForm18({
|
10055
10059
|
mode: "uncontrolled",
|
@@ -10060,7 +10064,7 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10060
10064
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10061
10065
|
}
|
10062
10066
|
});
|
10063
|
-
return /* @__PURE__ */
|
10067
|
+
return /* @__PURE__ */ jsxs66(
|
10064
10068
|
MyButtonCreate,
|
10065
10069
|
{
|
10066
10070
|
objectName: "v\u0103n b\u1EA3n",
|
@@ -10073,28 +10077,28 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10073
10077
|
}));
|
10074
10078
|
},
|
10075
10079
|
children: [
|
10076
|
-
/* @__PURE__ */
|
10080
|
+
/* @__PURE__ */ jsx110(
|
10077
10081
|
MyTextInput,
|
10078
10082
|
__spreadValues({
|
10079
10083
|
withAsterisk: true,
|
10080
10084
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10081
10085
|
}, form.getInputProps("decisionCode"))
|
10082
10086
|
),
|
10083
|
-
/* @__PURE__ */
|
10087
|
+
/* @__PURE__ */ jsx110(
|
10084
10088
|
MyDateInput,
|
10085
10089
|
__spreadValues({
|
10086
10090
|
withAsterisk: true,
|
10087
10091
|
label: "Ng\xE0y ban h\xE0nh"
|
10088
10092
|
}, form.getInputProps("promulgateDate"))
|
10089
10093
|
),
|
10090
|
-
/* @__PURE__ */
|
10094
|
+
/* @__PURE__ */ jsx110(
|
10091
10095
|
MyTextInput,
|
10092
10096
|
__spreadValues({
|
10093
10097
|
withAsterisk: true,
|
10094
10098
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10095
10099
|
}, form.getInputProps("name"))
|
10096
10100
|
),
|
10097
|
-
/* @__PURE__ */
|
10101
|
+
/* @__PURE__ */ jsx110(
|
10098
10102
|
FileInput8,
|
10099
10103
|
__spreadValues({
|
10100
10104
|
withAsterisk: true,
|
@@ -10108,12 +10112,12 @@ function F_core76318_Create({ SecurityTypeId }) {
|
|
10108
10112
|
}
|
10109
10113
|
|
10110
10114
|
// src/modules-features/admin/core/core76318/F_core76318_Delete.tsx
|
10111
|
-
import { jsx as
|
10115
|
+
import { jsx as jsx111 } from "react/jsx-runtime";
|
10112
10116
|
function F_core76318_Delete({
|
10113
10117
|
id,
|
10114
10118
|
contextData
|
10115
10119
|
}) {
|
10116
|
-
return /* @__PURE__ */
|
10120
|
+
return /* @__PURE__ */ jsx111(
|
10117
10121
|
MyActionIconDelete,
|
10118
10122
|
{
|
10119
10123
|
contextData,
|
@@ -10125,7 +10129,7 @@ function F_core76318_Delete({
|
|
10125
10129
|
// src/modules-features/admin/core/core76318/F_core76318_Update.tsx
|
10126
10130
|
import { FileInput as FileInput9, TextInput as TextInput5 } from "@mantine/core";
|
10127
10131
|
import { useForm as useForm19 } from "@mantine/form";
|
10128
|
-
import { jsx as
|
10132
|
+
import { jsx as jsx112, jsxs as jsxs67 } from "react/jsx-runtime";
|
10129
10133
|
function F_core76318_Update({ values }) {
|
10130
10134
|
var _a;
|
10131
10135
|
const form = useForm19({
|
@@ -10144,7 +10148,7 @@ function F_core76318_Update({ values }) {
|
|
10144
10148
|
file: (value) => value ? null : "Kh\xF4ng \u0111\u01B0\u1EE3c \u0111\u1EC3 tr\u1ED1ng"
|
10145
10149
|
}
|
10146
10150
|
});
|
10147
|
-
return /* @__PURE__ */
|
10151
|
+
return /* @__PURE__ */ jsxs67(
|
10148
10152
|
MyActionIconUpdate,
|
10149
10153
|
{
|
10150
10154
|
form,
|
@@ -10154,28 +10158,28 @@ function F_core76318_Update({ values }) {
|
|
10154
10158
|
}));
|
10155
10159
|
},
|
10156
10160
|
children: [
|
10157
|
-
/* @__PURE__ */
|
10161
|
+
/* @__PURE__ */ jsx112(
|
10158
10162
|
TextInput5,
|
10159
10163
|
__spreadValues({
|
10160
10164
|
withAsterisk: true,
|
10161
10165
|
label: "S\u1ED1 quy \u0111\u1ECBnh"
|
10162
10166
|
}, form.getInputProps("decisionCode"))
|
10163
10167
|
),
|
10164
|
-
/* @__PURE__ */
|
10168
|
+
/* @__PURE__ */ jsx112(
|
10165
10169
|
MyDateInput,
|
10166
10170
|
__spreadValues({
|
10167
10171
|
withAsterisk: true,
|
10168
10172
|
label: "Ng\xE0y ban h\xE0nh"
|
10169
10173
|
}, form.getInputProps("promulgateDate"))
|
10170
10174
|
),
|
10171
|
-
/* @__PURE__ */
|
10175
|
+
/* @__PURE__ */ jsx112(
|
10172
10176
|
TextInput5,
|
10173
10177
|
__spreadValues({
|
10174
10178
|
withAsterisk: true,
|
10175
10179
|
label: "T\xEAn t\xE0i li\u1EC7u"
|
10176
10180
|
}, form.getInputProps("name"))
|
10177
10181
|
),
|
10178
|
-
/* @__PURE__ */
|
10182
|
+
/* @__PURE__ */ jsx112(
|
10179
10183
|
FileInput9,
|
10180
10184
|
__spreadValues({
|
10181
10185
|
withAsterisk: true,
|
@@ -10188,7 +10192,7 @@ function F_core76318_Update({ values }) {
|
|
10188
10192
|
}
|
10189
10193
|
|
10190
10194
|
// src/modules-features/admin/core/core76318/F_core76318_Read.tsx
|
10191
|
-
import { jsx as
|
10195
|
+
import { jsx as jsx113, jsxs as jsxs68 } from "react/jsx-runtime";
|
10192
10196
|
function F_core76318_Read({ SecurityTypeId }) {
|
10193
10197
|
const query = useQuery16({
|
10194
10198
|
queryKey: ["F_core76318_Read"],
|
@@ -10217,7 +10221,7 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10217
10221
|
{
|
10218
10222
|
header: "File",
|
10219
10223
|
accessorFn: (row) => {
|
10220
|
-
return /* @__PURE__ */
|
10224
|
+
return /* @__PURE__ */ jsx113(MyCenterFull, { children: /* @__PURE__ */ jsx113(MyButtonViewPDF, { id: row.id }) });
|
10221
10225
|
}
|
10222
10226
|
}
|
10223
10227
|
],
|
@@ -10225,17 +10229,17 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10225
10229
|
);
|
10226
10230
|
if (query.isLoading) return "Loading...";
|
10227
10231
|
if (query.isError) return "c\xF3 l\u1ED7i x\u1EA3y ra!";
|
10228
|
-
return /* @__PURE__ */
|
10232
|
+
return /* @__PURE__ */ jsx113(
|
10229
10233
|
MyDataTable,
|
10230
10234
|
{
|
10231
10235
|
columns,
|
10232
10236
|
data: query.data,
|
10233
|
-
renderTopToolbarCustomActions: () => /* @__PURE__ */
|
10237
|
+
renderTopToolbarCustomActions: () => /* @__PURE__ */ jsx113(F_core76318_Create, { SecurityTypeId }),
|
10234
10238
|
renderRowActions: ({ row }) => {
|
10235
10239
|
var _a;
|
10236
|
-
return /* @__PURE__ */
|
10237
|
-
/* @__PURE__ */
|
10238
|
-
/* @__PURE__ */
|
10240
|
+
return /* @__PURE__ */ jsxs68(MyCenterFull, { children: [
|
10241
|
+
/* @__PURE__ */ jsx113(F_core76318_Update, { values: row.original }),
|
10242
|
+
/* @__PURE__ */ jsx113(
|
10239
10243
|
F_core76318_Delete,
|
10240
10244
|
{
|
10241
10245
|
id: row.original.id,
|
@@ -10249,9 +10253,9 @@ function F_core76318_Read({ SecurityTypeId }) {
|
|
10249
10253
|
}
|
10250
10254
|
|
10251
10255
|
// src/modules-features/admin/core/core76318/F_core76318.tsx
|
10252
|
-
import { jsx as
|
10256
|
+
import { jsx as jsx114 } from "react/jsx-runtime";
|
10253
10257
|
function F_core76318({ SecurityTypeId }) {
|
10254
|
-
return /* @__PURE__ */
|
10258
|
+
return /* @__PURE__ */ jsx114(F_core76318_Read, { SecurityTypeId });
|
10255
10259
|
}
|
10256
10260
|
|
10257
10261
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
@@ -10261,7 +10265,7 @@ import { Grid as Grid4, Paper as Paper12, ScrollArea as ScrollArea8 } from "@man
|
|
10261
10265
|
import { Container as Container5 } from "@mantine/core";
|
10262
10266
|
import { useQuery as useQuery17 } from "@tanstack/react-query";
|
10263
10267
|
import { useEffect as useEffect14, useMemo as useMemo15, useState as useState14 } from "react";
|
10264
|
-
import { jsx as
|
10268
|
+
import { jsx as jsx115 } from "react/jsx-runtime";
|
10265
10269
|
function F_core83092_ReadUser() {
|
10266
10270
|
const store = useS_core83092();
|
10267
10271
|
const query = useQ_core83092_Account_GetAdminAccount();
|
@@ -10294,7 +10298,7 @@ function F_core83092_ReadUser() {
|
|
10294
10298
|
}, [query.data]);
|
10295
10299
|
if (query.isLoading) return "Loading...";
|
10296
10300
|
if (query.isError) return "C\xF3 l\u1ED7i x\u1EA3y ra!";
|
10297
|
-
return /* @__PURE__ */
|
10301
|
+
return /* @__PURE__ */ jsx115(Container5, { fluid: true, w: "100%", children: /* @__PURE__ */ jsx115(
|
10298
10302
|
MyDataTable,
|
10299
10303
|
{
|
10300
10304
|
columns,
|
@@ -10330,7 +10334,7 @@ function useQ_core83092_Account_GetAdminAccount() {
|
|
10330
10334
|
// src/modules-features/admin/core/core83092/F_core83092_Save.tsx
|
10331
10335
|
import { useMutation as useMutation8 } from "@tanstack/react-query";
|
10332
10336
|
import { useEffect as useEffect15, useState as useState15 } from "react";
|
10333
|
-
import { jsx as
|
10337
|
+
import { jsx as jsx116 } from "react/jsx-runtime";
|
10334
10338
|
function F_core83092_Save() {
|
10335
10339
|
const store = useS_core83092();
|
10336
10340
|
const disable = useState15(false);
|
@@ -10359,15 +10363,15 @@ function F_core83092_Save() {
|
|
10359
10363
|
}
|
10360
10364
|
disable[1](false);
|
10361
10365
|
}, [store.state.rolePermissions]);
|
10362
|
-
return /* @__PURE__ */
|
10366
|
+
return /* @__PURE__ */ jsx116(MyButton, { disabled: disable[0], crudType: "save", onClick: handleSave });
|
10363
10367
|
}
|
10364
10368
|
|
10365
10369
|
// src/modules-features/admin/core/core83092/F_core83092_ViewMenuPermissions.tsx
|
10366
|
-
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as
|
10370
|
+
import { Checkbox as Checkbox4, Flex as Flex6, ScrollArea as ScrollArea7, Table as Table5, Text as Text15 } from "@mantine/core";
|
10367
10371
|
import { IconEdit as IconEdit6, IconEyeUp as IconEyeUp2, IconFileExport as IconFileExport3, IconPlus as IconPlus6, IconPrinter as IconPrinter4, IconTrash as IconTrash6 } from "@tabler/icons-react";
|
10368
10372
|
import { useQuery as useQuery18 } from "@tanstack/react-query";
|
10369
10373
|
import React4, { useEffect as useEffect16, useState as useState16 } from "react";
|
10370
|
-
import { jsx as
|
10374
|
+
import { jsx as jsx117, jsxs as jsxs69 } from "react/jsx-runtime";
|
10371
10375
|
var title2 = "Danh s\xE1ch ch\u1EE9c n\u0103ng";
|
10372
10376
|
function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
10373
10377
|
var _a, _b;
|
@@ -10382,8 +10386,8 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10382
10386
|
store.setProperty("rolePermissions", query.data);
|
10383
10387
|
}, [query.data]);
|
10384
10388
|
if (((_a = list[0]) == null ? void 0 : _a.length) == 0) return "\u0110ang t\u1EA3i...";
|
10385
|
-
return /* @__PURE__ */
|
10386
|
-
/* @__PURE__ */
|
10389
|
+
return /* @__PURE__ */ jsx117(ScrollArea7.Autosize, { h: "70vh", children: /* @__PURE__ */ jsxs69(Table5, { children: [
|
10390
|
+
/* @__PURE__ */ jsx117(
|
10387
10391
|
Table5.Thead,
|
10388
10392
|
{
|
10389
10393
|
bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))",
|
@@ -10394,90 +10398,90 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10394
10398
|
boxShadow: "0px 4px 6px rgba(0, 0, 0, 0.1)",
|
10395
10399
|
border: "1px solid var(--mantine-color-gray-4)"
|
10396
10400
|
},
|
10397
|
-
children: /* @__PURE__ */
|
10398
|
-
/* @__PURE__ */
|
10399
|
-
/* @__PURE__ */
|
10400
|
-
/* @__PURE__ */
|
10401
|
+
children: /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10402
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: title2 }),
|
10403
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10404
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isRead"), onChange: (e4) => {
|
10401
10405
|
store.toogleAllPermissionWithType("isRead", e4.target.checked);
|
10402
10406
|
} }),
|
10403
|
-
/* @__PURE__ */
|
10407
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10404
10408
|
"Xem",
|
10405
|
-
/* @__PURE__ */
|
10409
|
+
/* @__PURE__ */ jsx117(IconEyeUp2, { color: "gray" })
|
10406
10410
|
] })
|
10407
10411
|
] }) }),
|
10408
|
-
/* @__PURE__ */
|
10409
|
-
/* @__PURE__ */
|
10412
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10413
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isCreate"), onChange: (e4) => {
|
10410
10414
|
store.toogleAllPermissionWithType("isCreate", e4.target.checked);
|
10411
10415
|
} }),
|
10412
|
-
/* @__PURE__ */
|
10416
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10413
10417
|
"Th\xEAm",
|
10414
|
-
/* @__PURE__ */
|
10418
|
+
/* @__PURE__ */ jsx117(IconPlus6, { color: "blue" })
|
10415
10419
|
] })
|
10416
10420
|
] }) }),
|
10417
|
-
/* @__PURE__ */
|
10418
|
-
/* @__PURE__ */
|
10421
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10422
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isUpdate"), onChange: (e4) => {
|
10419
10423
|
store.toogleAllPermissionWithType("isUpdate", e4.target.checked);
|
10420
10424
|
} }),
|
10421
|
-
/* @__PURE__ */
|
10425
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10422
10426
|
"S\u1EEDa",
|
10423
|
-
/* @__PURE__ */
|
10427
|
+
/* @__PURE__ */ jsx117(IconEdit6, { color: "var(--mantine-color-yellow-8)" })
|
10424
10428
|
] })
|
10425
10429
|
] }) }),
|
10426
|
-
/* @__PURE__ */
|
10427
|
-
/* @__PURE__ */
|
10430
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10431
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isDelete"), onChange: (e4) => {
|
10428
10432
|
store.toogleAllPermissionWithType("isDelete", e4.target.checked);
|
10429
10433
|
} }),
|
10430
|
-
/* @__PURE__ */
|
10434
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10431
10435
|
"X\xF3a",
|
10432
|
-
/* @__PURE__ */
|
10436
|
+
/* @__PURE__ */ jsx117(IconTrash6, { color: "var(--mantine-color-red-8)" })
|
10433
10437
|
] })
|
10434
10438
|
] }) }),
|
10435
|
-
/* @__PURE__ */
|
10436
|
-
/* @__PURE__ */
|
10439
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10440
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isPrint"), onChange: (e4) => {
|
10437
10441
|
store.toogleAllPermissionWithType("isPrint", e4.target.checked);
|
10438
10442
|
} }),
|
10439
|
-
/* @__PURE__ */
|
10443
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10440
10444
|
"In",
|
10441
|
-
/* @__PURE__ */
|
10445
|
+
/* @__PURE__ */ jsx117(IconPrinter4, { color: "var(--mantine-color-cyan-8)" })
|
10442
10446
|
] })
|
10443
10447
|
] }) }),
|
10444
|
-
/* @__PURE__ */
|
10445
|
-
/* @__PURE__ */
|
10448
|
+
/* @__PURE__ */ jsx117(Table5.Th, { children: /* @__PURE__ */ jsxs69(Flex6, { gap: 3, direction: "column", justify: "center", align: "center", children: [
|
10449
|
+
/* @__PURE__ */ jsx117(Checkbox4, { checked: store.isAllPermission("isExport"), onChange: (e4) => {
|
10446
10450
|
store.toogleAllPermissionWithType("isExport", e4.target.checked);
|
10447
10451
|
} }),
|
10448
|
-
/* @__PURE__ */
|
10452
|
+
/* @__PURE__ */ jsxs69(MyFlexRow, { gap: 3, children: [
|
10449
10453
|
"Xu\u1EA5t",
|
10450
|
-
/* @__PURE__ */
|
10454
|
+
/* @__PURE__ */ jsx117(IconFileExport3, { color: "var(--mantine-color-green-8)" })
|
10451
10455
|
] })
|
10452
10456
|
] }) })
|
10453
10457
|
] })
|
10454
10458
|
}
|
10455
10459
|
),
|
10456
|
-
/* @__PURE__ */
|
10457
|
-
if (item.links == void 0) return /* @__PURE__ */
|
10458
|
-
/* @__PURE__ */
|
10459
|
-
/* @__PURE__ */
|
10460
|
-
/* @__PURE__ */
|
10461
|
-
/* @__PURE__ */
|
10462
|
-
/* @__PURE__ */
|
10463
|
-
/* @__PURE__ */
|
10464
|
-
/* @__PURE__ */
|
10460
|
+
/* @__PURE__ */ jsx117(Table5.Tbody, { bg: "light-dark(var(--mantine-color-white), var(--mantine-color-dark-8))", children: (_b = list[0]) == null ? void 0 : _b.map((item, idx) => {
|
10461
|
+
if (item.links == void 0) return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10462
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item.label }),
|
10463
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10464
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10465
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10466
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10467
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) }),
|
10468
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(Checkbox4, {}) }) })
|
10465
10469
|
] }, idx);
|
10466
|
-
return /* @__PURE__ */
|
10467
|
-
/* @__PURE__ */
|
10470
|
+
return /* @__PURE__ */ jsxs69(React4.Fragment, { children: [
|
10471
|
+
/* @__PURE__ */ jsx117(Table5.Tr, { children: /* @__PURE__ */ jsx117(
|
10468
10472
|
Table5.Td,
|
10469
10473
|
{
|
10470
10474
|
colSpan: 7,
|
10471
10475
|
bg: OBJECT_COlORS.mantineBackgroundBlueLight,
|
10472
|
-
children: /* @__PURE__ */
|
10476
|
+
children: /* @__PURE__ */ jsx117(Text15, { fs: "oblique", size: "sm", fw: "bold", children: item.label })
|
10473
10477
|
}
|
10474
10478
|
) }, item.label),
|
10475
10479
|
item.links.map(
|
10476
10480
|
(item2, idx2) => {
|
10477
10481
|
var _a2, _b2, _c, _d, _e, _f;
|
10478
|
-
return /* @__PURE__ */
|
10479
|
-
/* @__PURE__ */
|
10480
|
-
/* @__PURE__ */
|
10482
|
+
return /* @__PURE__ */ jsxs69(Table5.Tr, { children: [
|
10483
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: item2.label }),
|
10484
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10481
10485
|
Checkbox4,
|
10482
10486
|
{
|
10483
10487
|
checked: ((_a2 = store.findByPageId(item2.pageId)) == null ? void 0 : _a2.isRead) || false,
|
@@ -10488,7 +10492,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10488
10492
|
}
|
10489
10493
|
}
|
10490
10494
|
) }) }),
|
10491
|
-
/* @__PURE__ */
|
10495
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10492
10496
|
Checkbox4,
|
10493
10497
|
{
|
10494
10498
|
checked: ((_b2 = store.findByPageId(item2.pageId)) == null ? void 0 : _b2.isCreate) || false,
|
@@ -10499,7 +10503,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10499
10503
|
}
|
10500
10504
|
}
|
10501
10505
|
) }) }),
|
10502
|
-
/* @__PURE__ */
|
10506
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10503
10507
|
Checkbox4,
|
10504
10508
|
{
|
10505
10509
|
checked: ((_c = store.findByPageId(item2.pageId)) == null ? void 0 : _c.isUpdate) || false,
|
@@ -10510,7 +10514,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10510
10514
|
}
|
10511
10515
|
}
|
10512
10516
|
) }) }),
|
10513
|
-
/* @__PURE__ */
|
10517
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10514
10518
|
Checkbox4,
|
10515
10519
|
{
|
10516
10520
|
checked: ((_d = store.findByPageId(item2.pageId)) == null ? void 0 : _d.isDelete) || false,
|
@@ -10521,7 +10525,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10521
10525
|
}
|
10522
10526
|
}
|
10523
10527
|
) }) }),
|
10524
|
-
/* @__PURE__ */
|
10528
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10525
10529
|
Checkbox4,
|
10526
10530
|
{
|
10527
10531
|
checked: ((_e = store.findByPageId(item2.pageId)) == null ? void 0 : _e.isPrint) || false,
|
@@ -10532,7 +10536,7 @@ function F_core83092_ViewMenuPermissions({ menuData: menuData2 }) {
|
|
10532
10536
|
}
|
10533
10537
|
}
|
10534
10538
|
) }) }),
|
10535
|
-
/* @__PURE__ */
|
10539
|
+
/* @__PURE__ */ jsx117(Table5.Td, { children: /* @__PURE__ */ jsx117(MyCenterFull, { children: /* @__PURE__ */ jsx117(
|
10536
10540
|
Checkbox4,
|
10537
10541
|
{
|
10538
10542
|
checked: ((_f = store.findByPageId(item2.pageId)) == null ? void 0 : _f.isExport) || false,
|
@@ -10588,72 +10592,72 @@ function useGetUserPermission2({ menuData: menuData2 }) {
|
|
10588
10592
|
}
|
10589
10593
|
|
10590
10594
|
// src/modules-features/admin/core/core83092/F_core83092.tsx
|
10591
|
-
import { jsx as
|
10595
|
+
import { jsx as jsx118, jsxs as jsxs70 } from "react/jsx-runtime";
|
10592
10596
|
function F_core83092({ menuData: menuData2 }) {
|
10593
|
-
return /* @__PURE__ */
|
10594
|
-
/* @__PURE__ */
|
10595
|
-
/* @__PURE__ */
|
10596
|
-
/* @__PURE__ */
|
10597
|
-
/* @__PURE__ */
|
10597
|
+
return /* @__PURE__ */ jsxs70(Grid4, { grow: true, children: [
|
10598
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 4, children: /* @__PURE__ */ jsx118(F_core83092_ReadUser, {}) }),
|
10599
|
+
/* @__PURE__ */ jsx118(Grid4.Col, { span: 8, children: /* @__PURE__ */ jsxs70(MyFlexColumn, { h: "80vh", flex: 1, children: [
|
10600
|
+
/* @__PURE__ */ jsx118(ScrollArea8.Autosize, { h: "100%", children: /* @__PURE__ */ jsx118(Paper12, { p: "md", bg: OBJECT_COlORS.mantineBackgroundSecondary, children: /* @__PURE__ */ jsx118(F_core83092_ViewMenuPermissions, { menuData: menuData2 }) }) }),
|
10601
|
+
/* @__PURE__ */ jsx118(F_core83092_Save, {})
|
10598
10602
|
] }) })
|
10599
10603
|
] });
|
10600
10604
|
}
|
10601
10605
|
|
10602
10606
|
// src/modules-features/admin/core/MainDashboard/BarChart_CourseStatus.tsx
|
10603
10607
|
import { BarChart } from "@mantine/charts";
|
10604
|
-
import { Group as
|
10605
|
-
import { Fragment as Fragment13, jsx as
|
10608
|
+
import { Group as Group19, Paper as Paper13, Text as Text16, useMantineColorScheme as useMantineColorScheme2 } from "@mantine/core";
|
10609
|
+
import { Fragment as Fragment13, jsx as jsx119, jsxs as jsxs71 } from "react/jsx-runtime";
|
10606
10610
|
|
10607
10611
|
// src/modules-features/admin/core/MainDashboard/BarChart_ExamStatus.tsx
|
10608
10612
|
import { BarChart as BarChart2 } from "@mantine/charts";
|
10609
|
-
import { Group as
|
10610
|
-
import { Fragment as Fragment14, jsx as
|
10613
|
+
import { Group as Group20, Paper as Paper14, Text as Text17, useMantineColorScheme as useMantineColorScheme3 } from "@mantine/core";
|
10614
|
+
import { Fragment as Fragment14, jsx as jsx120, jsxs as jsxs72 } from "react/jsx-runtime";
|
10611
10615
|
|
10612
10616
|
// src/modules-features/admin/core/MainDashboard/BarChart_RevenueByAcademicYear.tsx
|
10613
10617
|
import { BarChart as BarChart3 } from "@mantine/charts";
|
10614
|
-
import { Group as
|
10615
|
-
import { Fragment as Fragment15, jsx as
|
10618
|
+
import { Group as Group21, Paper as Paper15, Text as Text18, useMantineColorScheme as useMantineColorScheme4 } from "@mantine/core";
|
10619
|
+
import { Fragment as Fragment15, jsx as jsx121, jsxs as jsxs73 } from "react/jsx-runtime";
|
10616
10620
|
|
10617
10621
|
// src/modules-features/admin/core/MainDashboard/BarChart_StudentStatusIn30Days.tsx
|
10618
10622
|
import { BarChart as BarChart4 } from "@mantine/charts";
|
10619
|
-
import { Group as
|
10620
|
-
import { Fragment as Fragment16, jsx as
|
10623
|
+
import { Group as Group22, Paper as Paper16, Text as Text19, useMantineColorScheme as useMantineColorScheme5 } from "@mantine/core";
|
10624
|
+
import { Fragment as Fragment16, jsx as jsx122, jsxs as jsxs74 } from "react/jsx-runtime";
|
10621
10625
|
|
10622
10626
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseDropOutPercentage.tsx
|
10623
10627
|
import { BarChart as BarChart5 } from "@mantine/charts";
|
10624
|
-
import { Group as
|
10625
|
-
import { jsx as
|
10628
|
+
import { Group as Group23, Paper as Paper17, Text as Text20, useMantineColorScheme as useMantineColorScheme6 } from "@mantine/core";
|
10629
|
+
import { jsx as jsx123, jsxs as jsxs75 } from "react/jsx-runtime";
|
10626
10630
|
|
10627
10631
|
// src/modules-features/admin/core/MainDashboard/HBarChart_CourseProgressPercentage.tsx
|
10628
10632
|
import { BarChart as BarChart6 } from "@mantine/charts";
|
10629
|
-
import { Group as
|
10630
|
-
import { jsx as
|
10633
|
+
import { Group as Group24, Paper as Paper18, Text as Text21, useMantineColorScheme as useMantineColorScheme7 } from "@mantine/core";
|
10634
|
+
import { jsx as jsx124, jsxs as jsxs76 } from "react/jsx-runtime";
|
10631
10635
|
|
10632
10636
|
// src/modules-features/admin/core/MainDashboard/LineChart_RevenueIn12Months.tsx
|
10633
10637
|
import { LineChart } from "@mantine/charts";
|
10634
|
-
import { Group as
|
10635
|
-
import { Fragment as Fragment17, jsx as
|
10638
|
+
import { Group as Group25, Paper as Paper19, Text as Text22 } from "@mantine/core";
|
10639
|
+
import { Fragment as Fragment17, jsx as jsx125, jsxs as jsxs77 } from "react/jsx-runtime";
|
10636
10640
|
|
10637
10641
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByDiscountIn3Months.tsx
|
10638
10642
|
import { LineChart as LineChart2 } from "@mantine/charts";
|
10639
|
-
import { Group as
|
10640
|
-
import { Fragment as Fragment18, jsx as
|
10643
|
+
import { Group as Group26, Paper as Paper20, Text as Text23 } from "@mantine/core";
|
10644
|
+
import { Fragment as Fragment18, jsx as jsx126, jsxs as jsxs78 } from "react/jsx-runtime";
|
10641
10645
|
|
10642
10646
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalRevenueByVoucherIn3Months.tsx
|
10643
10647
|
import { LineChart as LineChart3 } from "@mantine/charts";
|
10644
|
-
import { Group as
|
10645
|
-
import { Fragment as Fragment19, jsx as
|
10648
|
+
import { Group as Group27, Paper as Paper21, Text as Text24 } from "@mantine/core";
|
10649
|
+
import { Fragment as Fragment19, jsx as jsx127, jsxs as jsxs79 } from "react/jsx-runtime";
|
10646
10650
|
|
10647
10651
|
// src/modules-features/admin/core/MainDashboard/LineChart_TotalStudentIn12Months.tsx
|
10648
10652
|
import { LineChart as LineChart4 } from "@mantine/charts";
|
10649
|
-
import { Group as
|
10650
|
-
import { Fragment as Fragment20, jsx as
|
10653
|
+
import { Group as Group28, Paper as Paper22, Text as Text25 } from "@mantine/core";
|
10654
|
+
import { Fragment as Fragment20, jsx as jsx128, jsxs as jsxs80 } from "react/jsx-runtime";
|
10651
10655
|
|
10652
10656
|
// src/modules-features/admin/core/MainDashboard/ViewDiscountStat.tsx
|
10653
|
-
import { Center as Center4, Progress, Space as Space8, Text as
|
10657
|
+
import { Center as Center4, Progress, Space as Space8, Text as Text26 } from "@mantine/core";
|
10654
10658
|
import { PieChart } from "@mantine/charts";
|
10655
10659
|
import { useMemo as useMemo16 } from "react";
|
10656
|
-
import { Fragment as Fragment21, jsx as
|
10660
|
+
import { Fragment as Fragment21, jsx as jsx129, jsxs as jsxs81 } from "react/jsx-runtime";
|
10657
10661
|
function getRandomColor(seed) {
|
10658
10662
|
const random = Math.sin(seed) * 1e4;
|
10659
10663
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -10831,7 +10835,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10831
10835
|
header: "M\xE0u",
|
10832
10836
|
accessorKey: "color",
|
10833
10837
|
accessorFn(originalRow) {
|
10834
|
-
return /* @__PURE__ */
|
10838
|
+
return /* @__PURE__ */ jsx129("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
10835
10839
|
},
|
10836
10840
|
minSize: 30,
|
10837
10841
|
maxSize: 30
|
@@ -10846,7 +10850,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10846
10850
|
header: "%",
|
10847
10851
|
accessorKey: "used",
|
10848
10852
|
accessorFn(originalRow) {
|
10849
|
-
return /* @__PURE__ */
|
10853
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10850
10854
|
(originalRow.used / totalDisountCode * 100).toFixed(0),
|
10851
10855
|
"%"
|
10852
10856
|
] }) }) });
|
@@ -10861,10 +10865,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10861
10865
|
return originalRow.used;
|
10862
10866
|
},
|
10863
10867
|
Cell: ({ row }) => {
|
10864
|
-
return /* @__PURE__ */
|
10865
|
-
/* @__PURE__ */
|
10868
|
+
return /* @__PURE__ */ jsxs81(Fragment21, { children: [
|
10869
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsxs81(Text26, { children: [
|
10866
10870
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
10867
|
-
/* @__PURE__ */
|
10871
|
+
/* @__PURE__ */ jsxs81("strong", { children: [
|
10868
10872
|
row.original.used,
|
10869
10873
|
" / ",
|
10870
10874
|
row.original.total
|
@@ -10873,7 +10877,7 @@ function PieChart_DiscountUsedPercentage() {
|
|
10873
10877
|
(row.original.used / row.original.total * 100).toFixed(2),
|
10874
10878
|
"%)"
|
10875
10879
|
] }) }),
|
10876
|
-
/* @__PURE__ */
|
10880
|
+
/* @__PURE__ */ jsx129(Progress, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
10877
10881
|
] });
|
10878
10882
|
},
|
10879
10883
|
minSize: 50,
|
@@ -10882,9 +10886,9 @@ function PieChart_DiscountUsedPercentage() {
|
|
10882
10886
|
],
|
10883
10887
|
[]
|
10884
10888
|
);
|
10885
|
-
return /* @__PURE__ */
|
10886
|
-
/* @__PURE__ */
|
10887
|
-
/* @__PURE__ */
|
10889
|
+
return /* @__PURE__ */ jsx129(Fragment21, { children: /* @__PURE__ */ jsxs81(MyFlexColumn, { children: [
|
10890
|
+
/* @__PURE__ */ jsx129(Text26, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng chi\u1EBFt kh\u1EA5u h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
10891
|
+
/* @__PURE__ */ jsx129(Center4, { children: /* @__PURE__ */ jsx129(
|
10888
10892
|
PieChart,
|
10889
10893
|
{
|
10890
10894
|
startAngle: 90,
|
@@ -10897,8 +10901,8 @@ function PieChart_DiscountUsedPercentage() {
|
|
10897
10901
|
data: data_used_discountCode
|
10898
10902
|
}
|
10899
10903
|
) }),
|
10900
|
-
/* @__PURE__ */
|
10901
|
-
/* @__PURE__ */
|
10904
|
+
/* @__PURE__ */ jsx129(Space8, { mt: 5 }),
|
10905
|
+
/* @__PURE__ */ jsx129(
|
10902
10906
|
MyDataTable,
|
10903
10907
|
{
|
10904
10908
|
data: mockData,
|
@@ -10913,10 +10917,10 @@ function PieChart_DiscountUsedPercentage() {
|
|
10913
10917
|
}
|
10914
10918
|
|
10915
10919
|
// src/modules-features/admin/core/MainDashboard/ViewVoucherStat.tsx
|
10916
|
-
import { Center as Center5, Progress as Progress2, Space as Space9, Text as
|
10920
|
+
import { Center as Center5, Progress as Progress2, Space as Space9, Text as Text27 } from "@mantine/core";
|
10917
10921
|
import { PieChart as PieChart2 } from "@mantine/charts";
|
10918
10922
|
import { useMemo as useMemo17 } from "react";
|
10919
|
-
import { Fragment as Fragment22, jsx as
|
10923
|
+
import { Fragment as Fragment22, jsx as jsx130, jsxs as jsxs82 } from "react/jsx-runtime";
|
10920
10924
|
function getRandomColor2(seed) {
|
10921
10925
|
const random = Math.sin(seed) * 1e4;
|
10922
10926
|
const color = `#${Math.floor((random - Math.floor(random)) * 16777215).toString(16).padStart(6, "0")}`;
|
@@ -11094,7 +11098,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11094
11098
|
header: "M\xE0u",
|
11095
11099
|
accessorKey: "color",
|
11096
11100
|
accessorFn(originalRow) {
|
11097
|
-
return /* @__PURE__ */
|
11101
|
+
return /* @__PURE__ */ jsx130("div", { style: { width: 20, height: 20, backgroundColor: originalRow.color } });
|
11098
11102
|
},
|
11099
11103
|
minSize: 30,
|
11100
11104
|
maxSize: 30
|
@@ -11109,7 +11113,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11109
11113
|
header: "%",
|
11110
11114
|
accessorKey: "used",
|
11111
11115
|
accessorFn(originalRow) {
|
11112
|
-
return /* @__PURE__ */
|
11116
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11113
11117
|
(originalRow.used / totalVoucherCode * 100).toFixed(0),
|
11114
11118
|
"%"
|
11115
11119
|
] }) }) });
|
@@ -11124,10 +11128,10 @@ function PieChart_VoucherUsedPercentage() {
|
|
11124
11128
|
return originalRow.used;
|
11125
11129
|
},
|
11126
11130
|
Cell: ({ row }) => {
|
11127
|
-
return /* @__PURE__ */
|
11128
|
-
/* @__PURE__ */
|
11131
|
+
return /* @__PURE__ */ jsxs82(Fragment22, { children: [
|
11132
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsxs82(Text27, { children: [
|
11129
11133
|
"\u0110\xE3 s\u1EED d\u1EE5ng: ",
|
11130
|
-
/* @__PURE__ */
|
11134
|
+
/* @__PURE__ */ jsxs82("strong", { children: [
|
11131
11135
|
row.original.used,
|
11132
11136
|
" / ",
|
11133
11137
|
row.original.total
|
@@ -11136,7 +11140,7 @@ function PieChart_VoucherUsedPercentage() {
|
|
11136
11140
|
(row.original.used / row.original.total * 100).toFixed(2),
|
11137
11141
|
"%)"
|
11138
11142
|
] }) }),
|
11139
|
-
/* @__PURE__ */
|
11143
|
+
/* @__PURE__ */ jsx130(Progress2, { color: "yellow", radius: "xs", size: "lg", value: row.original.used / row.original.total * 100 })
|
11140
11144
|
] });
|
11141
11145
|
},
|
11142
11146
|
minSize: 50,
|
@@ -11145,9 +11149,9 @@ function PieChart_VoucherUsedPercentage() {
|
|
11145
11149
|
],
|
11146
11150
|
[]
|
11147
11151
|
);
|
11148
|
-
return /* @__PURE__ */
|
11149
|
-
/* @__PURE__ */
|
11150
|
-
/* @__PURE__ */
|
11152
|
+
return /* @__PURE__ */ jsx130(Fragment22, { children: /* @__PURE__ */ jsxs82(MyFlexColumn, { children: [
|
11153
|
+
/* @__PURE__ */ jsx130(Text27, { mb: "20", children: "Bi\u1EC3u \u0111\u1ED3 ph\u1EA7n tr\u0103m s\u1EED d\u1EE5ng m\xE3 gi\u1EA3m gi\xE1 h\u1ECDc vi\xEAn trong 60 ng\xE0y qua" }),
|
11154
|
+
/* @__PURE__ */ jsx130(Center5, { children: /* @__PURE__ */ jsx130(
|
11151
11155
|
PieChart2,
|
11152
11156
|
{
|
11153
11157
|
startAngle: 90,
|
@@ -11160,8 +11164,8 @@ function PieChart_VoucherUsedPercentage() {
|
|
11160
11164
|
data: data_used_discountCode2
|
11161
11165
|
}
|
11162
11166
|
) }),
|
11163
|
-
/* @__PURE__ */
|
11164
|
-
/* @__PURE__ */
|
11167
|
+
/* @__PURE__ */ jsx130(Space9, { mt: 5 }),
|
11168
|
+
/* @__PURE__ */ jsx130(
|
11165
11169
|
MyDataTable,
|
11166
11170
|
{
|
11167
11171
|
data: mockData2,
|
@@ -11193,20 +11197,20 @@ function useS_authenticate() {
|
|
11193
11197
|
}
|
11194
11198
|
|
11195
11199
|
// src/modules-features/authenticate/F_authenticate_Logout.tsx
|
11196
|
-
import { jsx as
|
11200
|
+
import { jsx as jsx131 } from "react/jsx-runtime";
|
11197
11201
|
function F_authenticate_Logout({ redirectURL = "/auth/login" }) {
|
11198
11202
|
const router = useRouter4();
|
11199
11203
|
const S_Authenticate = useS_authenticate();
|
11200
|
-
return /* @__PURE__ */
|
11204
|
+
return /* @__PURE__ */ jsx131(Button18, { onClick: () => {
|
11201
11205
|
S_Authenticate.setProperty("token", "");
|
11202
11206
|
router.replace(redirectURL);
|
11203
|
-
}, leftSection: /* @__PURE__ */
|
11207
|
+
}, leftSection: /* @__PURE__ */ jsx131(IconLogout, {}), fullWidth: true, justify: "start", variant: "subtle", children: "\u0110\u0103ng xu\u1EA5t" });
|
11204
11208
|
}
|
11205
11209
|
|
11206
11210
|
// src/modules-features/authenticate/F_authenticate_SplashPage.tsx
|
11207
11211
|
import { useRouter as useRouter5 } from "next/navigation";
|
11208
11212
|
import { useEffect as useEffect17 } from "react";
|
11209
|
-
import { jsx as
|
11213
|
+
import { jsx as jsx132 } from "react/jsx-runtime";
|
11210
11214
|
function F_authenticate_SplashPage() {
|
11211
11215
|
const router = useRouter5();
|
11212
11216
|
const S_Authenticate = useS_authenticate();
|
@@ -11217,7 +11221,7 @@ function F_authenticate_SplashPage() {
|
|
11217
11221
|
}
|
11218
11222
|
router.push("/admin/core71678");
|
11219
11223
|
}, [S_Authenticate.state.token]);
|
11220
|
-
return /* @__PURE__ */
|
11224
|
+
return /* @__PURE__ */ jsx132(MyBoxesBackground, { title: "H\u1EC7 th\u1ED1ng th\xF4ng tin qu\u1EA3n l\xED \u0111\xE0o t\u1EA1o ng\u1EAFn h\u1EA1n" });
|
11221
11225
|
}
|
11222
11226
|
|
11223
11227
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
@@ -11228,10 +11232,10 @@ import {
|
|
11228
11232
|
Center as Center6,
|
11229
11233
|
Checkbox as Checkbox5,
|
11230
11234
|
Flex as Flex7,
|
11231
|
-
Group as
|
11235
|
+
Group as Group29,
|
11232
11236
|
Paper as Paper23,
|
11233
11237
|
PasswordInput as PasswordInput2,
|
11234
|
-
Text as
|
11238
|
+
Text as Text28,
|
11235
11239
|
TextInput as TextInput6,
|
11236
11240
|
Title as Title2
|
11237
11241
|
} from "@mantine/core";
|
@@ -11246,7 +11250,7 @@ import { useState as useState17 } from "react";
|
|
11246
11250
|
var css_default3 = {};
|
11247
11251
|
|
11248
11252
|
// src/modules-features/authenticate/F_authenticate_Login/F_authenticate_Login.tsx
|
11249
|
-
import { jsx as
|
11253
|
+
import { jsx as jsx133, jsxs as jsxs83 } from "react/jsx-runtime";
|
11250
11254
|
function F_authenticate_Login({
|
11251
11255
|
loginInfo,
|
11252
11256
|
redirectUrlAfterLogin = "/admin/dashboard",
|
@@ -11299,21 +11303,21 @@ function F_authenticate_Login({
|
|
11299
11303
|
}
|
11300
11304
|
});
|
11301
11305
|
}
|
11302
|
-
return /* @__PURE__ */
|
11306
|
+
return /* @__PURE__ */ jsx133(
|
11303
11307
|
BackgroundImage,
|
11304
11308
|
{
|
11305
11309
|
src: backgroundImage,
|
11306
11310
|
h: "100vh",
|
11307
|
-
children: /* @__PURE__ */
|
11308
|
-
/* @__PURE__ */
|
11309
|
-
/* @__PURE__ */
|
11310
|
-
/* @__PURE__ */
|
11311
|
+
children: /* @__PURE__ */ jsx133(Center6, { h: "100vh", children: /* @__PURE__ */ jsxs83(Paper23, { withBorder: true, w: 400, m: "md", shadow: "md", p: 30, mt: 30, radius: "md", children: [
|
11312
|
+
/* @__PURE__ */ jsxs83(Flex7, { direction: "column", mb: "md", children: [
|
11313
|
+
/* @__PURE__ */ jsx133(Title2, { ta: "center", className: css_default3.title, children: "\u0110\u0103ng nh\u1EADp!" }),
|
11314
|
+
/* @__PURE__ */ jsxs83(Text28, { c: "dimmed", size: "sm", ta: "center", mt: 5, children: [
|
11311
11315
|
"B\u1EA1n g\u1EB7p v\u1EA5n \u0111\u1EC1 k\u1EF9 thu\u1EADt?\xA0",
|
11312
|
-
/* @__PURE__ */
|
11316
|
+
/* @__PURE__ */ jsx133(Anchor2, { size: "sm", component: "button", children: "V\xE0o link n\xE0y" })
|
11313
11317
|
] })
|
11314
11318
|
] }),
|
11315
|
-
/* @__PURE__ */
|
11316
|
-
/* @__PURE__ */
|
11319
|
+
/* @__PURE__ */ jsx133("form", { onSubmit: form.onSubmit(async (values) => handleSubmit(values.username, values.password)), children: /* @__PURE__ */ jsxs83(MyFlexColumn, { children: [
|
11320
|
+
/* @__PURE__ */ jsx133(
|
11317
11321
|
TextInput6,
|
11318
11322
|
__spreadProps(__spreadValues({}, form.getInputProps("username")), {
|
11319
11323
|
label: "T\xE0i kho\u1EA3n",
|
@@ -11321,7 +11325,7 @@ function F_authenticate_Login({
|
|
11321
11325
|
withAsterisk: true
|
11322
11326
|
})
|
11323
11327
|
),
|
11324
|
-
/* @__PURE__ */
|
11328
|
+
/* @__PURE__ */ jsx133(
|
11325
11329
|
PasswordInput2,
|
11326
11330
|
__spreadProps(__spreadValues({}, form.getInputProps("password")), {
|
11327
11331
|
label: "M\u1EADt kh\u1EA9u",
|
@@ -11329,11 +11333,11 @@ function F_authenticate_Login({
|
|
11329
11333
|
withAsterisk: true
|
11330
11334
|
})
|
11331
11335
|
),
|
11332
|
-
/* @__PURE__ */
|
11333
|
-
/* @__PURE__ */
|
11334
|
-
/* @__PURE__ */
|
11336
|
+
/* @__PURE__ */ jsxs83(Group29, { justify: "space-between", children: [
|
11337
|
+
/* @__PURE__ */ jsx133(Checkbox5, { label: "L\u01B0u \u0111\u0103ng nh\u1EADp" }),
|
11338
|
+
/* @__PURE__ */ jsx133(Anchor2, { component: Link5, href: "quen-mat-khau", size: "sm", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
11335
11339
|
] }),
|
11336
|
-
/* @__PURE__ */
|
11340
|
+
/* @__PURE__ */ jsx133(
|
11337
11341
|
Button19,
|
11338
11342
|
{
|
11339
11343
|
loading: loadingState[0],
|