@fctc/sme-widget-ui 1.9.4 → 1.9.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icons.d.mts +3 -1
- package/dist/icons.d.ts +3 -1
- package/dist/icons.js +72 -39
- package/dist/icons.mjs +71 -39
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +423 -599
- package/dist/index.mjs +407 -583
- package/dist/utils.js +2 -2
- package/dist/utils.mjs +2 -2
- package/dist/widgets.d.mts +2 -10
- package/dist/widgets.d.ts +2 -10
- package/dist/widgets.js +340 -611
- package/dist/widgets.mjs +325 -595
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6938,46 +6938,77 @@ var ImageIcon = () => {
|
|
|
6938
6938
|
"svg",
|
|
6939
6939
|
{
|
|
6940
6940
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6941
|
-
|
|
6942
|
-
|
|
6943
|
-
|
|
6944
|
-
|
|
6941
|
+
width: "22",
|
|
6942
|
+
height: "23",
|
|
6943
|
+
viewBox: "0 0 22 23",
|
|
6944
|
+
fill: "none",
|
|
6945
6945
|
children: [
|
|
6946
|
-
/* @__PURE__ */
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
"
|
|
6950
|
-
|
|
6951
|
-
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
|
|
6956
|
-
|
|
6957
|
-
|
|
6958
|
-
|
|
6959
|
-
|
|
6960
|
-
|
|
6961
|
-
|
|
6962
|
-
|
|
6963
|
-
|
|
6964
|
-
|
|
6965
|
-
|
|
6966
|
-
|
|
6967
|
-
|
|
6968
|
-
|
|
6969
|
-
|
|
6970
|
-
|
|
6971
|
-
|
|
6972
|
-
|
|
6973
|
-
|
|
6974
|
-
|
|
6975
|
-
|
|
6976
|
-
|
|
6977
|
-
|
|
6978
|
-
|
|
6979
|
-
|
|
6980
|
-
|
|
6946
|
+
/* @__PURE__ */ jsx38(
|
|
6947
|
+
"path",
|
|
6948
|
+
{
|
|
6949
|
+
d: "M22 5.36046V17.6395C21.9989 18.9283 21.4865 20.1639 20.5752 21.0752C19.6639 21.9865 18.4283 22.4989 17.1395 22.5H4.86047C4.32055 22.5016 3.78427 22.4116 3.27442 22.2339C2.31857 21.9038 1.48947 21.2838 0.902556 20.4603C0.315646 19.6368 0.000149319 18.6508 0 17.6395V5.36046C0.00108389 4.07172 0.513515 2.83607 1.42479 1.92479C2.33607 1.01351 3.57172 0.501084 4.86047 0.5H17.1395C18.4283 0.501084 19.6639 1.01351 20.5752 1.92479C21.4865 2.83607 21.9989 4.07172 22 5.36046Z",
|
|
6950
|
+
fill: "#E6F7FF"
|
|
6951
|
+
}
|
|
6952
|
+
),
|
|
6953
|
+
/* @__PURE__ */ jsx38(
|
|
6954
|
+
"path",
|
|
6955
|
+
{
|
|
6956
|
+
d: "M13.75 18.4995V22.2495H5C4.47235 22.251 3.94826 22.1631 3.45 21.9895C2.51588 21.6669 1.70561 21.061 1.13204 20.2562C0.558472 19.4514 0.250146 18.4878 0.25 17.4995V14.7695L3.41 12.6595C3.88229 12.3434 4.44129 12.1822 5.00937 12.1984C5.57745 12.2145 6.1264 12.4071 6.58 12.7495L10.07 15.3695L13.45 17.8995C13.5438 17.9687 13.6199 18.0592 13.672 18.1635C13.7241 18.2678 13.7509 18.3829 13.75 18.4995Z",
|
|
6957
|
+
fill: "#70D5B8"
|
|
6958
|
+
}
|
|
6959
|
+
),
|
|
6960
|
+
/* @__PURE__ */ jsx38(
|
|
6961
|
+
"path",
|
|
6962
|
+
{
|
|
6963
|
+
d: "M7.625 8.625C9.00571 8.625 10.125 7.50571 10.125 6.125C10.125 4.74429 9.00571 3.625 7.625 3.625C6.24429 3.625 5.125 4.74429 5.125 6.125C5.125 7.50571 6.24429 8.625 7.625 8.625Z",
|
|
6964
|
+
fill: "#FFD44D"
|
|
6965
|
+
}
|
|
6966
|
+
),
|
|
6967
|
+
/* @__PURE__ */ jsx38(
|
|
6968
|
+
"path",
|
|
6969
|
+
{
|
|
6970
|
+
d: "M21.7492 12.5393V17.4993C21.7482 18.7588 21.2474 19.9663 20.3568 20.8569C19.4662 21.7475 18.2587 22.2483 16.9992 22.2493H4.99922C4.47157 22.2509 3.94748 22.163 3.44922 21.9893L14.4492 10.9893C14.8555 10.5799 15.3808 10.3092 15.95 10.2158C16.5192 10.1224 17.1034 10.2112 17.6192 10.4693L21.7492 12.5393Z",
|
|
6971
|
+
fill: "#13BF8A"
|
|
6972
|
+
}
|
|
6973
|
+
)
|
|
6974
|
+
]
|
|
6975
|
+
}
|
|
6976
|
+
);
|
|
6977
|
+
};
|
|
6978
|
+
|
|
6979
|
+
// src/icons/video-icon.tsx
|
|
6980
|
+
import { jsx as jsx39, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
6981
|
+
var VideoIcon = () => {
|
|
6982
|
+
return /* @__PURE__ */ jsxs21(
|
|
6983
|
+
"svg",
|
|
6984
|
+
{
|
|
6985
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6986
|
+
width: "22",
|
|
6987
|
+
height: "21",
|
|
6988
|
+
viewBox: "0 0 22 21",
|
|
6989
|
+
fill: "none",
|
|
6990
|
+
children: [
|
|
6991
|
+
/* @__PURE__ */ jsx39(
|
|
6992
|
+
"path",
|
|
6993
|
+
{
|
|
6994
|
+
d: "M22.0001 2.10859L22.0001 18.8914C22.0001 19.7798 21.2799 20.5 20.3915 20.5H1.61054C0.722142 20.5 0.00195312 19.7798 0.00195312 18.8914V2.10859C0.00195312 1.22019 0.722143 0.5 1.61054 0.5H20.3915C21.2799 0.5 22.0001 1.22019 22.0001 2.10859Z",
|
|
6995
|
+
fill: "#435E88"
|
|
6996
|
+
}
|
|
6997
|
+
),
|
|
6998
|
+
/* @__PURE__ */ jsx39(
|
|
6999
|
+
"path",
|
|
7000
|
+
{
|
|
7001
|
+
d: "M21.9974 2.10515L21.9981 18.8914C21.9981 19.7782 21.2797 20.5 20.3895 20.5H1.60863C0.721846 20.5 0 19.7782 0 18.8914L20.3888 0.5C21.2791 0.5 21.9974 1.21832 21.9974 2.10515Z",
|
|
7002
|
+
fill: "#33527D"
|
|
7003
|
+
}
|
|
7004
|
+
),
|
|
7005
|
+
/* @__PURE__ */ jsx39(
|
|
7006
|
+
"path",
|
|
7007
|
+
{
|
|
7008
|
+
d: "M3.96875 14.8779C4.15191 14.8782 4.30078 15.0267 4.30078 15.21V17.123C4.30078 17.3063 4.15191 17.4549 3.96875 17.4551H2.05469C1.87133 17.4551 1.72266 17.3064 1.72266 17.123V15.21C1.72266 15.0266 1.87133 14.8779 2.05469 14.8779H3.96875ZM19.9492 14.8779C20.1326 14.8779 20.2812 15.0266 20.2812 15.21V17.123C20.2812 17.3064 20.1326 17.4551 19.9492 17.4551H18.0361C17.8528 17.4551 17.7041 17.3064 17.7041 17.123V15.21C17.7041 15.0266 17.8528 14.8779 18.0361 14.8779H19.9492ZM8.59473 7.55566C8.59499 7.0953 9.10791 6.82103 9.49121 7.07617L14.1484 10.1758C14.4914 10.4041 14.4914 10.9084 14.1484 11.1367L9.49121 14.2363C9.10788 14.4915 8.59493 14.2173 8.59473 13.7568V7.55566ZM3.96875 10.6592C4.15175 10.6594 4.30052 10.8072 4.30078 10.9902V12.9043C4.30078 13.0875 4.15191 13.2361 3.96875 13.2363H2.05469C1.87133 13.2363 1.72266 13.0877 1.72266 12.9043V10.9902C1.72292 10.8071 1.87149 10.6592 2.05469 10.6592H3.96875ZM19.9492 10.6592C20.1324 10.6592 20.281 10.8071 20.2812 10.9902V12.9043C20.2812 13.0877 20.1326 13.2363 19.9492 13.2363H18.0361C17.8528 13.2363 17.7041 13.0877 17.7041 12.9043V10.9902C17.7044 10.8071 17.8529 10.6592 18.0361 10.6592H19.9492ZM3.96875 6.4375C4.15177 6.43773 4.30055 6.58651 4.30078 6.76953V8.68359C4.30078 8.86681 4.15191 9.0154 3.96875 9.01562H2.05469C1.87133 9.01562 1.72266 8.86695 1.72266 8.68359V6.76953C1.72289 6.58637 1.87147 6.4375 2.05469 6.4375H3.96875ZM19.9492 6.4375C20.1324 6.4375 20.281 6.58637 20.2812 6.76953V8.68359C20.2812 8.86695 20.1326 9.01562 19.9492 9.01562H18.0361C17.8528 9.01562 17.7041 8.86695 17.7041 8.68359V6.76953C17.7043 6.58637 17.8529 6.4375 18.0361 6.4375H19.9492ZM3.96875 2.21875C4.15181 2.21898 4.3006 2.36771 4.30078 2.55078V4.46484C4.30078 4.64806 4.15191 4.79665 3.96875 4.79688H2.05469C1.87133 4.79688 1.72266 4.6482 1.72266 4.46484V2.55078C1.72283 2.36757 1.87144 2.21875 2.05469 2.21875H3.96875ZM19.9492 2.21875C20.1325 2.21875 20.2811 2.36757 20.2812 2.55078V4.46484C20.2812 4.6482 20.1326 4.79688 19.9492 4.79688H18.0361C17.8528 4.79688 17.7041 4.6482 17.7041 4.46484V2.55078C17.7043 2.36757 17.8529 2.21875 18.0361 2.21875H19.9492Z",
|
|
7009
|
+
fill: "white"
|
|
7010
|
+
}
|
|
7011
|
+
)
|
|
6981
7012
|
]
|
|
6982
7013
|
}
|
|
6983
7014
|
);
|
|
@@ -10009,8 +10040,8 @@ var en_default = {
|
|
|
10009
10040
|
download_file: "Download this file",
|
|
10010
10041
|
upload_success: "Upload file success",
|
|
10011
10042
|
upload_failure: "Upload file failure",
|
|
10012
|
-
file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP
|
|
10013
|
-
file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP
|
|
10043
|
+
file_accept_single: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and each file should be up to 10MB.",
|
|
10044
|
+
file_accept_total: "Only JPEG, PNG, PDF, MP4, XLS, XLXS, ZIP formats are allowed, and total should be up to 50MB.",
|
|
10014
10045
|
must_required: "is required",
|
|
10015
10046
|
invalid_number: "Invalid number",
|
|
10016
10047
|
active: "Active",
|
|
@@ -10041,7 +10072,7 @@ instance.use(Browser).use(initReactI18next).init({
|
|
|
10041
10072
|
var i18n_default = instance;
|
|
10042
10073
|
|
|
10043
10074
|
// src/provider/index.tsx
|
|
10044
|
-
import { jsx as
|
|
10075
|
+
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
10045
10076
|
var I18nContext2 = createContext2(null);
|
|
10046
10077
|
var I18nProvider = ({
|
|
10047
10078
|
children,
|
|
@@ -10053,7 +10084,7 @@ var I18nProvider = ({
|
|
|
10053
10084
|
}
|
|
10054
10085
|
}, [lang]);
|
|
10055
10086
|
const { t: t3 } = useTranslation();
|
|
10056
|
-
return /* @__PURE__ */
|
|
10087
|
+
return /* @__PURE__ */ jsx40(
|
|
10057
10088
|
I18nContext2.Provider,
|
|
10058
10089
|
{
|
|
10059
10090
|
value: {
|
|
@@ -10061,7 +10092,7 @@ var I18nProvider = ({
|
|
|
10061
10092
|
t: t3,
|
|
10062
10093
|
changeLanguage: i18n_default.changeLanguage
|
|
10063
10094
|
},
|
|
10064
|
-
children: /* @__PURE__ */
|
|
10095
|
+
children: /* @__PURE__ */ jsx40(I18nextProvider, { i18n: i18n_default, children })
|
|
10065
10096
|
}
|
|
10066
10097
|
);
|
|
10067
10098
|
};
|
|
@@ -10629,11 +10660,11 @@ var usePagination = ({
|
|
|
10629
10660
|
};
|
|
10630
10661
|
|
|
10631
10662
|
// src/icons/common.tsx
|
|
10632
|
-
import { jsx as
|
|
10633
|
-
var IcArrow = () => /* @__PURE__ */
|
|
10663
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
10664
|
+
var IcArrow = () => /* @__PURE__ */ jsx41("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx41("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
|
|
10634
10665
|
|
|
10635
10666
|
// src/widgets/advanced/pagination/pagination-view.tsx
|
|
10636
|
-
import { jsx as
|
|
10667
|
+
import { jsx as jsx42, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
10637
10668
|
var PaginationView = (props) => {
|
|
10638
10669
|
const {
|
|
10639
10670
|
displayPageNumberDots,
|
|
@@ -10666,25 +10697,25 @@ var PaginationView = (props) => {
|
|
|
10666
10697
|
let lastPage = paginationRange[paginationRange.length - 1];
|
|
10667
10698
|
const startPage = currentPage * pageSize + 1;
|
|
10668
10699
|
const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
|
|
10669
|
-
return /* @__PURE__ */
|
|
10670
|
-
!displayPageNumberDots && /* @__PURE__ */
|
|
10700
|
+
return /* @__PURE__ */ jsxs22("ul", { className: `pagination-container rounded-lg ${className}`, children: [
|
|
10701
|
+
!displayPageNumberDots && /* @__PURE__ */ jsxs22("li", { className: "pagination-item px-0", children: [
|
|
10671
10702
|
startPage,
|
|
10672
10703
|
" - ",
|
|
10673
10704
|
endPage,
|
|
10674
10705
|
" / ",
|
|
10675
10706
|
totalCount
|
|
10676
10707
|
] }),
|
|
10677
|
-
/* @__PURE__ */
|
|
10708
|
+
/* @__PURE__ */ jsx42(
|
|
10678
10709
|
"li",
|
|
10679
10710
|
{
|
|
10680
10711
|
className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
|
|
10681
10712
|
onClick: onPrevious,
|
|
10682
|
-
children: /* @__PURE__ */
|
|
10713
|
+
children: /* @__PURE__ */ jsx42("div", { className: "arrow left", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
|
|
10683
10714
|
}
|
|
10684
10715
|
),
|
|
10685
10716
|
displayPageNumberDots && paginationRange.map((pageNumber) => {
|
|
10686
10717
|
if (pageNumber === DOTS) {
|
|
10687
|
-
return /* @__PURE__ */
|
|
10718
|
+
return /* @__PURE__ */ jsx42(
|
|
10688
10719
|
"li",
|
|
10689
10720
|
{
|
|
10690
10721
|
className: "pagination-item dots",
|
|
@@ -10693,7 +10724,7 @@ var PaginationView = (props) => {
|
|
|
10693
10724
|
"pagination" + pageNumber
|
|
10694
10725
|
);
|
|
10695
10726
|
}
|
|
10696
|
-
return /* @__PURE__ */
|
|
10727
|
+
return /* @__PURE__ */ jsx42(
|
|
10697
10728
|
"li",
|
|
10698
10729
|
{
|
|
10699
10730
|
className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
|
|
@@ -10703,12 +10734,12 @@ var PaginationView = (props) => {
|
|
|
10703
10734
|
"pagination" + pageNumber
|
|
10704
10735
|
);
|
|
10705
10736
|
}),
|
|
10706
|
-
/* @__PURE__ */
|
|
10737
|
+
/* @__PURE__ */ jsx42(
|
|
10707
10738
|
"li",
|
|
10708
10739
|
{
|
|
10709
10740
|
className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
|
|
10710
10741
|
onClick: onNext,
|
|
10711
|
-
children: /* @__PURE__ */
|
|
10742
|
+
children: /* @__PURE__ */ jsx42("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx42(IcArrow, {}) })
|
|
10712
10743
|
}
|
|
10713
10744
|
)
|
|
10714
10745
|
] });
|
|
@@ -10718,7 +10749,7 @@ var PaginationView = (props) => {
|
|
|
10718
10749
|
import { useState as useState3 } from "react";
|
|
10719
10750
|
|
|
10720
10751
|
// src/widgets/advanced/table/table-group.tsx
|
|
10721
|
-
import { Fragment as Fragment2, jsx as
|
|
10752
|
+
import { Fragment as Fragment2, jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
10722
10753
|
var TableGroup = (props) => {
|
|
10723
10754
|
const { t: t3 } = useI18n();
|
|
10724
10755
|
const {
|
|
@@ -10768,28 +10799,28 @@ var TableGroup = (props) => {
|
|
|
10768
10799
|
setSelectedRowKeys
|
|
10769
10800
|
});
|
|
10770
10801
|
const leftPadding = level > 1 ? level * 8 + "px" : "0px";
|
|
10771
|
-
return /* @__PURE__ */
|
|
10772
|
-
/* @__PURE__ */
|
|
10802
|
+
return /* @__PURE__ */ jsxs23(Fragment2, { children: [
|
|
10803
|
+
/* @__PURE__ */ jsxs23(
|
|
10773
10804
|
"tr",
|
|
10774
10805
|
{
|
|
10775
10806
|
draggable: true,
|
|
10776
10807
|
className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative",
|
|
10777
10808
|
onClick: onExpandChildGroup,
|
|
10778
10809
|
children: [
|
|
10779
|
-
/* @__PURE__ */
|
|
10810
|
+
/* @__PURE__ */ jsx43(
|
|
10780
10811
|
"td",
|
|
10781
10812
|
{
|
|
10782
10813
|
colSpan: colEmptyGroup.fromStart ?? 1,
|
|
10783
10814
|
style: { display: "table-cell" },
|
|
10784
10815
|
className: "relative w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
|
|
10785
|
-
children: /* @__PURE__ */
|
|
10816
|
+
children: /* @__PURE__ */ jsxs23(
|
|
10786
10817
|
"div",
|
|
10787
10818
|
{
|
|
10788
10819
|
style: { paddingLeft: leftPadding },
|
|
10789
10820
|
className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
|
|
10790
10821
|
children: [
|
|
10791
|
-
/* @__PURE__ */
|
|
10792
|
-
/* @__PURE__ */
|
|
10822
|
+
/* @__PURE__ */ jsxs23("div", { className: "flex items-center gap-2", children: [
|
|
10823
|
+
/* @__PURE__ */ jsx43(
|
|
10793
10824
|
TriangleIcon,
|
|
10794
10825
|
{
|
|
10795
10826
|
style: {
|
|
@@ -10798,15 +10829,15 @@ var TableGroup = (props) => {
|
|
|
10798
10829
|
className: `w-2 h-2 text-button_primary `
|
|
10799
10830
|
}
|
|
10800
10831
|
),
|
|
10801
|
-
/* @__PURE__ */
|
|
10832
|
+
/* @__PURE__ */ jsx43("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : t3("no") }, nameGroupWithCount)
|
|
10802
10833
|
] }),
|
|
10803
|
-
/* @__PURE__ */
|
|
10834
|
+
/* @__PURE__ */ jsx43(
|
|
10804
10835
|
"div",
|
|
10805
10836
|
{
|
|
10806
10837
|
onClick: (e3) => {
|
|
10807
10838
|
e3.stopPropagation();
|
|
10808
10839
|
},
|
|
10809
|
-
children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */
|
|
10840
|
+
children: isShowGroup && dataGroup?.length >= 10 && !dataGroup?.groups && /* @__PURE__ */ jsx43(
|
|
10810
10841
|
PaginationView,
|
|
10811
10842
|
{
|
|
10812
10843
|
className: "pagination-bar !bg-transparent absolute right-0 top-1/2 -translate-y-1/2",
|
|
@@ -10827,7 +10858,7 @@ var TableGroup = (props) => {
|
|
|
10827
10858
|
columns?.map((col) => {
|
|
10828
10859
|
if (col?.optional === "hide") return;
|
|
10829
10860
|
if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
|
|
10830
|
-
return /* @__PURE__ */
|
|
10861
|
+
return /* @__PURE__ */ jsx43(
|
|
10831
10862
|
"td",
|
|
10832
10863
|
{
|
|
10833
10864
|
className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
|
|
@@ -10845,7 +10876,7 @@ var TableGroup = (props) => {
|
|
|
10845
10876
|
]
|
|
10846
10877
|
}
|
|
10847
10878
|
),
|
|
10848
|
-
isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */
|
|
10879
|
+
isShowGroup && dataGroup && (isDataGroupFetched || isDataPlaceHolder) && /* @__PURE__ */ jsx43(
|
|
10849
10880
|
TableBodyRow,
|
|
10850
10881
|
{
|
|
10851
10882
|
columns: columnsGroup,
|
|
@@ -10875,7 +10906,7 @@ var TableGroup = (props) => {
|
|
|
10875
10906
|
|
|
10876
10907
|
// src/widgets/advanced/table/table-row.tsx
|
|
10877
10908
|
import { useEffect as useEffect5, useMemo as useMemo3, useRef as useRef4 } from "react";
|
|
10878
|
-
import { Fragment as Fragment3, jsx as
|
|
10909
|
+
import { Fragment as Fragment3, jsx as jsx44, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
10879
10910
|
var Row = (props) => {
|
|
10880
10911
|
const {
|
|
10881
10912
|
row,
|
|
@@ -10941,17 +10972,17 @@ var Row = (props) => {
|
|
|
10941
10972
|
setIsAutoSelect(false);
|
|
10942
10973
|
}
|
|
10943
10974
|
}, [checkedAll]);
|
|
10944
|
-
return /* @__PURE__ */
|
|
10975
|
+
return /* @__PURE__ */ jsx44(
|
|
10945
10976
|
"tr",
|
|
10946
10977
|
{
|
|
10947
10978
|
"data-row-id": row?.id,
|
|
10948
10979
|
className: `border-b border-[#e8e8e8] cursor-pointer`,
|
|
10949
|
-
children: /* @__PURE__ */
|
|
10950
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
10980
|
+
children: /* @__PURE__ */ jsxs24(Fragment3, { children: [
|
|
10981
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx44(
|
|
10951
10982
|
"td",
|
|
10952
10983
|
{
|
|
10953
10984
|
className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
|
|
10954
|
-
children: /* @__PURE__ */
|
|
10985
|
+
children: /* @__PURE__ */ jsx44(
|
|
10955
10986
|
"input",
|
|
10956
10987
|
{
|
|
10957
10988
|
type: "checkbox",
|
|
@@ -10964,9 +10995,9 @@ var Row = (props) => {
|
|
|
10964
10995
|
),
|
|
10965
10996
|
columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
|
|
10966
10997
|
if (row?.display_type === "line_section" && col.key !== "display_name") {
|
|
10967
|
-
return /* @__PURE__ */
|
|
10998
|
+
return /* @__PURE__ */ jsx44("td", {});
|
|
10968
10999
|
}
|
|
10969
|
-
return /* @__PURE__ */
|
|
11000
|
+
return /* @__PURE__ */ jsx44(
|
|
10970
11001
|
"td",
|
|
10971
11002
|
{
|
|
10972
11003
|
colSpan: 1,
|
|
@@ -10985,7 +11016,7 @@ var Row = (props) => {
|
|
|
10985
11016
|
`${col.name}____${index4}`
|
|
10986
11017
|
);
|
|
10987
11018
|
}),
|
|
10988
|
-
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */
|
|
11019
|
+
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx44("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx44("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx44(
|
|
10989
11020
|
"button",
|
|
10990
11021
|
{
|
|
10991
11022
|
type: "button",
|
|
@@ -10993,7 +11024,7 @@ var Row = (props) => {
|
|
|
10993
11024
|
onClick: () => {
|
|
10994
11025
|
onRemoveRow(indexRow);
|
|
10995
11026
|
},
|
|
10996
|
-
children: /* @__PURE__ */
|
|
11027
|
+
children: /* @__PURE__ */ jsx44(DeleteIcon, {})
|
|
10997
11028
|
}
|
|
10998
11029
|
) }) })
|
|
10999
11030
|
] })
|
|
@@ -11003,7 +11034,7 @@ var Row = (props) => {
|
|
|
11003
11034
|
};
|
|
11004
11035
|
|
|
11005
11036
|
// src/widgets/advanced/table/table-body.tsx
|
|
11006
|
-
import { jsx as
|
|
11037
|
+
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
11007
11038
|
var TableBodyRow = (props) => {
|
|
11008
11039
|
const {
|
|
11009
11040
|
rows,
|
|
@@ -11033,7 +11064,7 @@ var TableBodyRow = (props) => {
|
|
|
11033
11064
|
isEditTable
|
|
11034
11065
|
} = props;
|
|
11035
11066
|
return rows && rows?.length > 0 && rows?.map((row, index4) => {
|
|
11036
|
-
return typeTable === "group" ? /* @__PURE__ */
|
|
11067
|
+
return typeTable === "group" ? /* @__PURE__ */ jsx45(
|
|
11037
11068
|
TableGroup,
|
|
11038
11069
|
{
|
|
11039
11070
|
columns,
|
|
@@ -11058,7 +11089,7 @@ var TableBodyRow = (props) => {
|
|
|
11058
11089
|
onClickRow
|
|
11059
11090
|
},
|
|
11060
11091
|
`record-group-${index4}`
|
|
11061
|
-
) : /* @__PURE__ */
|
|
11092
|
+
) : /* @__PURE__ */ jsx45(
|
|
11062
11093
|
Row,
|
|
11063
11094
|
{
|
|
11064
11095
|
row,
|
|
@@ -11086,7 +11117,7 @@ var TableBodyRow = (props) => {
|
|
|
11086
11117
|
};
|
|
11087
11118
|
var TableBody = (props) => {
|
|
11088
11119
|
const [isAutoSelect, setIsAutoSelect] = useState3(false);
|
|
11089
|
-
return /* @__PURE__ */
|
|
11120
|
+
return /* @__PURE__ */ jsx45("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx45(
|
|
11090
11121
|
TableBodyRow,
|
|
11091
11122
|
{
|
|
11092
11123
|
...props,
|
|
@@ -11099,7 +11130,7 @@ var TableBody = (props) => {
|
|
|
11099
11130
|
// src/widgets/advanced/table/table-filter.tsx
|
|
11100
11131
|
import { useEffect as useEffect6, useRef as useRef5, useState as useState4 } from "react";
|
|
11101
11132
|
import { createPortal } from "react-dom";
|
|
11102
|
-
import { jsx as
|
|
11133
|
+
import { jsx as jsx46, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
11103
11134
|
var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
11104
11135
|
const [openTableFilter, setOpenTableFilter] = useState4();
|
|
11105
11136
|
const [filterPosition, setFilterPosition] = useState4(null);
|
|
@@ -11131,7 +11162,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11131
11162
|
window.removeEventListener("resize", updatePosition);
|
|
11132
11163
|
};
|
|
11133
11164
|
}, [filterRef, openTableFilter]);
|
|
11134
|
-
return /* @__PURE__ */
|
|
11165
|
+
return /* @__PURE__ */ jsxs25(
|
|
11135
11166
|
"div",
|
|
11136
11167
|
{
|
|
11137
11168
|
ref: filterRef,
|
|
@@ -11140,7 +11171,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11140
11171
|
},
|
|
11141
11172
|
className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-white",
|
|
11142
11173
|
children: [
|
|
11143
|
-
/* @__PURE__ */
|
|
11174
|
+
/* @__PURE__ */ jsx46(
|
|
11144
11175
|
"button",
|
|
11145
11176
|
{
|
|
11146
11177
|
type: "button",
|
|
@@ -11148,7 +11179,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11148
11179
|
onClick: () => {
|
|
11149
11180
|
setOpenTableFilter(!openTableFilter);
|
|
11150
11181
|
},
|
|
11151
|
-
children: /* @__PURE__ */
|
|
11182
|
+
children: /* @__PURE__ */ jsxs25(
|
|
11152
11183
|
"svg",
|
|
11153
11184
|
{
|
|
11154
11185
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11157,42 +11188,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11157
11188
|
viewBox: "0 0 16 16",
|
|
11158
11189
|
fill: "none",
|
|
11159
11190
|
children: [
|
|
11160
|
-
/* @__PURE__ */
|
|
11191
|
+
/* @__PURE__ */ jsx46(
|
|
11161
11192
|
"path",
|
|
11162
11193
|
{
|
|
11163
11194
|
d: "M14.6665 4.83301H10.6665C10.3932 4.83301 10.1665 4.60634 10.1665 4.33301C10.1665 4.05967 10.3932 3.83301 10.6665 3.83301H14.6665C14.9398 3.83301 15.1665 4.05967 15.1665 4.33301C15.1665 4.60634 14.9398 4.83301 14.6665 4.83301Z",
|
|
11164
11195
|
fill: "#1F1F1F"
|
|
11165
11196
|
}
|
|
11166
11197
|
),
|
|
11167
|
-
/* @__PURE__ */
|
|
11198
|
+
/* @__PURE__ */ jsx46(
|
|
11168
11199
|
"path",
|
|
11169
11200
|
{
|
|
11170
11201
|
d: "M4.00016 4.83301H1.3335C1.06016 4.83301 0.833496 4.60634 0.833496 4.33301C0.833496 4.05967 1.06016 3.83301 1.3335 3.83301H4.00016C4.2735 3.83301 4.50016 4.05967 4.50016 4.33301C4.50016 4.60634 4.2735 4.83301 4.00016 4.83301Z",
|
|
11171
11202
|
fill: "#1F1F1F"
|
|
11172
11203
|
}
|
|
11173
11204
|
),
|
|
11174
|
-
/* @__PURE__ */
|
|
11205
|
+
/* @__PURE__ */ jsx46(
|
|
11175
11206
|
"path",
|
|
11176
11207
|
{
|
|
11177
11208
|
d: "M6.66683 7.16667C5.10683 7.16667 3.8335 5.89333 3.8335 4.33333C3.8335 2.77333 5.10683 1.5 6.66683 1.5C8.22683 1.5 9.50016 2.77333 9.50016 4.33333C9.50016 5.89333 8.22683 7.16667 6.66683 7.16667ZM6.66683 2.5C5.6535 2.5 4.8335 3.32 4.8335 4.33333C4.8335 5.34667 5.6535 6.16667 6.66683 6.16667C7.68016 6.16667 8.50016 5.34667 8.50016 4.33333C8.50016 3.32 7.68016 2.5 6.66683 2.5Z",
|
|
11178
11209
|
fill: "#1F1F1F"
|
|
11179
11210
|
}
|
|
11180
11211
|
),
|
|
11181
|
-
/* @__PURE__ */
|
|
11212
|
+
/* @__PURE__ */ jsx46(
|
|
11182
11213
|
"path",
|
|
11183
11214
|
{
|
|
11184
11215
|
d: "M14.6667 12.167H12C11.7267 12.167 11.5 11.9403 11.5 11.667C11.5 11.3937 11.7267 11.167 12 11.167H14.6667C14.94 11.167 15.1667 11.3937 15.1667 11.667C15.1667 11.9403 14.94 12.167 14.6667 12.167Z",
|
|
11185
11216
|
fill: "black"
|
|
11186
11217
|
}
|
|
11187
11218
|
),
|
|
11188
|
-
/* @__PURE__ */
|
|
11219
|
+
/* @__PURE__ */ jsx46(
|
|
11189
11220
|
"path",
|
|
11190
11221
|
{
|
|
11191
11222
|
d: "M5.3335 12.167H1.3335C1.06016 12.167 0.833496 11.9403 0.833496 11.667C0.833496 11.3937 1.06016 11.167 1.3335 11.167H5.3335C5.60683 11.167 5.8335 11.3937 5.8335 11.667C5.8335 11.9403 5.60683 12.167 5.3335 12.167Z",
|
|
11192
11223
|
fill: "black"
|
|
11193
11224
|
}
|
|
11194
11225
|
),
|
|
11195
|
-
/* @__PURE__ */
|
|
11226
|
+
/* @__PURE__ */ jsx46(
|
|
11196
11227
|
"path",
|
|
11197
11228
|
{
|
|
11198
11229
|
d: "M9.33333 14.4997C7.77333 14.4997 6.5 13.2263 6.5 11.6663C6.5 10.1063 7.77333 8.83301 9.33333 8.83301C10.8933 8.83301 12.1667 10.1063 12.1667 11.6663C12.1667 13.2263 10.8933 14.4997 9.33333 14.4997ZM9.33333 9.83301C8.32 9.83301 7.5 10.653 7.5 11.6663C7.5 12.6797 8.32 13.4997 9.33333 13.4997C10.3467 13.4997 11.1667 12.6797 11.1667 11.6663C11.1667 10.653 10.3467 9.83301 9.33333 9.83301Z",
|
|
@@ -11205,7 +11236,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11205
11236
|
}
|
|
11206
11237
|
),
|
|
11207
11238
|
filterPosition && openTableFilter && createPortal(
|
|
11208
|
-
/* @__PURE__ */
|
|
11239
|
+
/* @__PURE__ */ jsx46(
|
|
11209
11240
|
"div",
|
|
11210
11241
|
{
|
|
11211
11242
|
ref: filterPopupRef,
|
|
@@ -11216,8 +11247,8 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11216
11247
|
},
|
|
11217
11248
|
className: "absolute z-[9999] flex w-[250px] h-auto max-h-[800%] overflow-auto flex-col gap-[16px] rounded-[8px] bg-[#fff] px-[24px] py-[16px] shadow-md",
|
|
11218
11249
|
children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
|
|
11219
|
-
return /* @__PURE__ */
|
|
11220
|
-
/* @__PURE__ */
|
|
11250
|
+
return /* @__PURE__ */ jsxs25("div", { className: "flex items-center gap-2", children: [
|
|
11251
|
+
/* @__PURE__ */ jsx46(
|
|
11221
11252
|
"input",
|
|
11222
11253
|
{
|
|
11223
11254
|
type: "checkbox",
|
|
@@ -11227,7 +11258,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11227
11258
|
className: "cursor-pointer"
|
|
11228
11259
|
}
|
|
11229
11260
|
),
|
|
11230
|
-
/* @__PURE__ */
|
|
11261
|
+
/* @__PURE__ */ jsx46(
|
|
11231
11262
|
"label",
|
|
11232
11263
|
{
|
|
11233
11264
|
htmlFor: `${item.name}`,
|
|
@@ -11247,14 +11278,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
11247
11278
|
};
|
|
11248
11279
|
|
|
11249
11280
|
// src/widgets/advanced/table/table-footer.tsx
|
|
11250
|
-
import { jsx as
|
|
11281
|
+
import { jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
11251
11282
|
var TableFooter = ({ onAddRow, rows }) => {
|
|
11252
11283
|
const emptyData = rows?.length <= 0;
|
|
11253
|
-
return /* @__PURE__ */
|
|
11284
|
+
return /* @__PURE__ */ jsx47("tfoot", { children: /* @__PURE__ */ jsx47("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx47(
|
|
11254
11285
|
"td",
|
|
11255
11286
|
{
|
|
11256
11287
|
className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
|
|
11257
|
-
children: /* @__PURE__ */
|
|
11288
|
+
children: /* @__PURE__ */ jsxs26(
|
|
11258
11289
|
"button",
|
|
11259
11290
|
{
|
|
11260
11291
|
type: "button",
|
|
@@ -11264,7 +11295,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
11264
11295
|
},
|
|
11265
11296
|
className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
|
|
11266
11297
|
children: [
|
|
11267
|
-
/* @__PURE__ */
|
|
11298
|
+
/* @__PURE__ */ jsxs26(
|
|
11268
11299
|
"svg",
|
|
11269
11300
|
{
|
|
11270
11301
|
style: {
|
|
@@ -11277,14 +11308,14 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
11277
11308
|
viewBox: "0 0 20 20",
|
|
11278
11309
|
fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
11279
11310
|
children: [
|
|
11280
|
-
/* @__PURE__ */
|
|
11311
|
+
/* @__PURE__ */ jsx47(
|
|
11281
11312
|
"path",
|
|
11282
11313
|
{
|
|
11283
11314
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
11284
11315
|
d: "M15 10.625H5C4.65833 10.625 4.375 10.3417 4.375 10C4.375 9.65833 4.65833 9.375 5 9.375H15C15.3417 9.375 15.625 9.65833 15.625 10C15.625 10.3417 15.3417 10.625 15 10.625Z"
|
|
11285
11316
|
}
|
|
11286
11317
|
),
|
|
11287
|
-
/* @__PURE__ */
|
|
11318
|
+
/* @__PURE__ */ jsx47(
|
|
11288
11319
|
"path",
|
|
11289
11320
|
{
|
|
11290
11321
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
@@ -13104,8 +13135,7 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
13104
13135
|
});
|
|
13105
13136
|
|
|
13106
13137
|
// src/widgets/advanced/table/table-head.tsx
|
|
13107
|
-
import {
|
|
13108
|
-
import { Fragment as Fragment4, jsx as jsx47, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
13138
|
+
import { Fragment as Fragment4, jsx as jsx48, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
13109
13139
|
var TableHead = (props) => {
|
|
13110
13140
|
const {
|
|
13111
13141
|
handleCheckBoxAll,
|
|
@@ -13115,7 +13145,7 @@ var TableHead = (props) => {
|
|
|
13115
13145
|
onRemoveRow,
|
|
13116
13146
|
onToggleColumnOptional
|
|
13117
13147
|
} = props;
|
|
13118
|
-
return /* @__PURE__ */
|
|
13148
|
+
return /* @__PURE__ */ jsx48("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs27(
|
|
13119
13149
|
"tr",
|
|
13120
13150
|
{
|
|
13121
13151
|
style: {
|
|
@@ -13127,11 +13157,11 @@ var TableHead = (props) => {
|
|
|
13127
13157
|
},
|
|
13128
13158
|
className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
|
|
13129
13159
|
children: [
|
|
13130
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
13160
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx48(
|
|
13131
13161
|
"th",
|
|
13132
13162
|
{
|
|
13133
13163
|
className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
|
|
13134
|
-
children: /* @__PURE__ */
|
|
13164
|
+
children: /* @__PURE__ */ jsx48(
|
|
13135
13165
|
"input",
|
|
13136
13166
|
{
|
|
13137
13167
|
type: "checkbox",
|
|
@@ -13143,36 +13173,32 @@ var TableHead = (props) => {
|
|
|
13143
13173
|
}
|
|
13144
13174
|
),
|
|
13145
13175
|
columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
|
|
13146
|
-
return /* @__PURE__ */
|
|
13176
|
+
return /* @__PURE__ */ jsx48(
|
|
13147
13177
|
"th",
|
|
13148
13178
|
{
|
|
13149
|
-
"data-rtc-resizable": col?.name,
|
|
13150
13179
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
13151
|
-
children: /* @__PURE__ */
|
|
13180
|
+
children: /* @__PURE__ */ jsxs27("div", { className: "cursor-pointer flex items-center gap-[4px] w-full min-w-max group relative", children: [
|
|
13152
13181
|
col.title,
|
|
13153
|
-
col?.field?.help && /* @__PURE__ */
|
|
13154
|
-
|
|
13155
|
-
|
|
13156
|
-
|
|
13157
|
-
{
|
|
13158
|
-
|
|
13159
|
-
|
|
13160
|
-
|
|
13161
|
-
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13165
|
-
|
|
13166
|
-
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
}
|
|
13172
|
-
),
|
|
13173
|
-
document.body
|
|
13182
|
+
col?.field?.help && /* @__PURE__ */ jsxs27(Fragment4, { children: [
|
|
13183
|
+
/* @__PURE__ */ jsx48(
|
|
13184
|
+
M,
|
|
13185
|
+
{
|
|
13186
|
+
style: {
|
|
13187
|
+
padding: "6px 12px",
|
|
13188
|
+
fontSize: "12px",
|
|
13189
|
+
borderRadius: "4px",
|
|
13190
|
+
maxWidth: "200%",
|
|
13191
|
+
whiteSpace: "wrap",
|
|
13192
|
+
fontWeight: 400,
|
|
13193
|
+
textTransform: "none"
|
|
13194
|
+
},
|
|
13195
|
+
id: `field-help-${col?.field?.name}`,
|
|
13196
|
+
content: col?.field?.help,
|
|
13197
|
+
place: "top",
|
|
13198
|
+
className: "z-30"
|
|
13199
|
+
}
|
|
13174
13200
|
),
|
|
13175
|
-
/* @__PURE__ */
|
|
13201
|
+
/* @__PURE__ */ jsx48(
|
|
13176
13202
|
"span",
|
|
13177
13203
|
{
|
|
13178
13204
|
style: {
|
|
@@ -13191,8 +13217,8 @@ var TableHead = (props) => {
|
|
|
13191
13217
|
"table-head-" + index4
|
|
13192
13218
|
);
|
|
13193
13219
|
}),
|
|
13194
|
-
typeof onRemoveRow === "function" && /* @__PURE__ */
|
|
13195
|
-
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */
|
|
13220
|
+
typeof onRemoveRow === "function" && /* @__PURE__ */ jsx48("th", { className: "relative p-2 w-[35px]" }),
|
|
13221
|
+
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx48(
|
|
13196
13222
|
"th",
|
|
13197
13223
|
{
|
|
13198
13224
|
style: {
|
|
@@ -13200,7 +13226,7 @@ var TableHead = (props) => {
|
|
|
13200
13226
|
right: 0
|
|
13201
13227
|
},
|
|
13202
13228
|
className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-white`,
|
|
13203
|
-
children: /* @__PURE__ */
|
|
13229
|
+
children: /* @__PURE__ */ jsx48(
|
|
13204
13230
|
TableFilter,
|
|
13205
13231
|
{
|
|
13206
13232
|
columns,
|
|
@@ -13215,9 +13241,9 @@ var TableHead = (props) => {
|
|
|
13215
13241
|
};
|
|
13216
13242
|
|
|
13217
13243
|
// src/icons/empty-table-icon.tsx
|
|
13218
|
-
import { jsx as
|
|
13244
|
+
import { jsx as jsx49, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
13219
13245
|
var IcEmptyTable = () => {
|
|
13220
|
-
return /* @__PURE__ */
|
|
13246
|
+
return /* @__PURE__ */ jsxs28(
|
|
13221
13247
|
"svg",
|
|
13222
13248
|
{
|
|
13223
13249
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -13226,9 +13252,9 @@ var IcEmptyTable = () => {
|
|
|
13226
13252
|
viewBox: "0 0 216 140",
|
|
13227
13253
|
fill: "none",
|
|
13228
13254
|
children: [
|
|
13229
|
-
/* @__PURE__ */
|
|
13230
|
-
/* @__PURE__ */
|
|
13231
|
-
/* @__PURE__ */
|
|
13255
|
+
/* @__PURE__ */ jsxs28("g", { clipPath: "url(#clip0_2454_28950)", children: [
|
|
13256
|
+
/* @__PURE__ */ jsx49("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
|
|
13257
|
+
/* @__PURE__ */ jsx49(
|
|
13232
13258
|
"path",
|
|
13233
13259
|
{
|
|
13234
13260
|
d: "M64.5 0V140",
|
|
@@ -13238,7 +13264,7 @@ var IcEmptyTable = () => {
|
|
|
13238
13264
|
strokeDasharray: "3 3"
|
|
13239
13265
|
}
|
|
13240
13266
|
),
|
|
13241
|
-
/* @__PURE__ */
|
|
13267
|
+
/* @__PURE__ */ jsx49(
|
|
13242
13268
|
"path",
|
|
13243
13269
|
{
|
|
13244
13270
|
d: "M151.5 0V140",
|
|
@@ -13248,7 +13274,7 @@ var IcEmptyTable = () => {
|
|
|
13248
13274
|
strokeDasharray: "3 3"
|
|
13249
13275
|
}
|
|
13250
13276
|
),
|
|
13251
|
-
/* @__PURE__ */
|
|
13277
|
+
/* @__PURE__ */ jsx49(
|
|
13252
13278
|
"path",
|
|
13253
13279
|
{
|
|
13254
13280
|
d: "M215.5 24H0.5",
|
|
@@ -13258,7 +13284,7 @@ var IcEmptyTable = () => {
|
|
|
13258
13284
|
strokeDasharray: "3 3"
|
|
13259
13285
|
}
|
|
13260
13286
|
),
|
|
13261
|
-
/* @__PURE__ */
|
|
13287
|
+
/* @__PURE__ */ jsx49(
|
|
13262
13288
|
"path",
|
|
13263
13289
|
{
|
|
13264
13290
|
d: "M215.5 50H0.5",
|
|
@@ -13268,7 +13294,7 @@ var IcEmptyTable = () => {
|
|
|
13268
13294
|
strokeDasharray: "3 3"
|
|
13269
13295
|
}
|
|
13270
13296
|
),
|
|
13271
|
-
/* @__PURE__ */
|
|
13297
|
+
/* @__PURE__ */ jsx49(
|
|
13272
13298
|
"path",
|
|
13273
13299
|
{
|
|
13274
13300
|
d: "M215.5 88H0.5",
|
|
@@ -13278,7 +13304,7 @@ var IcEmptyTable = () => {
|
|
|
13278
13304
|
strokeDasharray: "3 3"
|
|
13279
13305
|
}
|
|
13280
13306
|
),
|
|
13281
|
-
/* @__PURE__ */
|
|
13307
|
+
/* @__PURE__ */ jsx49(
|
|
13282
13308
|
"path",
|
|
13283
13309
|
{
|
|
13284
13310
|
d: "M215.5 114H0.5",
|
|
@@ -13288,7 +13314,7 @@ var IcEmptyTable = () => {
|
|
|
13288
13314
|
strokeDasharray: "3 3"
|
|
13289
13315
|
}
|
|
13290
13316
|
),
|
|
13291
|
-
/* @__PURE__ */
|
|
13317
|
+
/* @__PURE__ */ jsx49(
|
|
13292
13318
|
"path",
|
|
13293
13319
|
{
|
|
13294
13320
|
d: "M199.5 0V140",
|
|
@@ -13297,7 +13323,7 @@ var IcEmptyTable = () => {
|
|
|
13297
13323
|
strokeMiterlimit: "10"
|
|
13298
13324
|
}
|
|
13299
13325
|
),
|
|
13300
|
-
/* @__PURE__ */
|
|
13326
|
+
/* @__PURE__ */ jsx49(
|
|
13301
13327
|
"path",
|
|
13302
13328
|
{
|
|
13303
13329
|
d: "M16.5 0V140",
|
|
@@ -13306,7 +13332,7 @@ var IcEmptyTable = () => {
|
|
|
13306
13332
|
strokeMiterlimit: "10"
|
|
13307
13333
|
}
|
|
13308
13334
|
),
|
|
13309
|
-
/* @__PURE__ */
|
|
13335
|
+
/* @__PURE__ */ jsx49(
|
|
13310
13336
|
"path",
|
|
13311
13337
|
{
|
|
13312
13338
|
d: "M0.5 16H215.5",
|
|
@@ -13315,7 +13341,7 @@ var IcEmptyTable = () => {
|
|
|
13315
13341
|
strokeMiterlimit: "10"
|
|
13316
13342
|
}
|
|
13317
13343
|
),
|
|
13318
|
-
/* @__PURE__ */
|
|
13344
|
+
/* @__PURE__ */ jsx49(
|
|
13319
13345
|
"path",
|
|
13320
13346
|
{
|
|
13321
13347
|
d: "M0.5 124H215.5",
|
|
@@ -13324,7 +13350,7 @@ var IcEmptyTable = () => {
|
|
|
13324
13350
|
strokeMiterlimit: "10"
|
|
13325
13351
|
}
|
|
13326
13352
|
),
|
|
13327
|
-
/* @__PURE__ */
|
|
13353
|
+
/* @__PURE__ */ jsx49(
|
|
13328
13354
|
"path",
|
|
13329
13355
|
{
|
|
13330
13356
|
opacity: "0.6",
|
|
@@ -13335,7 +13361,7 @@ var IcEmptyTable = () => {
|
|
|
13335
13361
|
strokeLinejoin: "round"
|
|
13336
13362
|
}
|
|
13337
13363
|
),
|
|
13338
|
-
/* @__PURE__ */
|
|
13364
|
+
/* @__PURE__ */ jsx49(
|
|
13339
13365
|
"path",
|
|
13340
13366
|
{
|
|
13341
13367
|
opacity: "0.6",
|
|
@@ -13346,7 +13372,7 @@ var IcEmptyTable = () => {
|
|
|
13346
13372
|
strokeLinejoin: "round"
|
|
13347
13373
|
}
|
|
13348
13374
|
),
|
|
13349
|
-
/* @__PURE__ */
|
|
13375
|
+
/* @__PURE__ */ jsx49(
|
|
13350
13376
|
"path",
|
|
13351
13377
|
{
|
|
13352
13378
|
opacity: "0.6",
|
|
@@ -13357,7 +13383,7 @@ var IcEmptyTable = () => {
|
|
|
13357
13383
|
strokeLinejoin: "round"
|
|
13358
13384
|
}
|
|
13359
13385
|
),
|
|
13360
|
-
/* @__PURE__ */
|
|
13386
|
+
/* @__PURE__ */ jsx49(
|
|
13361
13387
|
"path",
|
|
13362
13388
|
{
|
|
13363
13389
|
opacity: "0.6",
|
|
@@ -13368,7 +13394,7 @@ var IcEmptyTable = () => {
|
|
|
13368
13394
|
strokeLinejoin: "round"
|
|
13369
13395
|
}
|
|
13370
13396
|
),
|
|
13371
|
-
/* @__PURE__ */
|
|
13397
|
+
/* @__PURE__ */ jsx49(
|
|
13372
13398
|
"path",
|
|
13373
13399
|
{
|
|
13374
13400
|
opacity: "0.6",
|
|
@@ -13379,14 +13405,14 @@ var IcEmptyTable = () => {
|
|
|
13379
13405
|
strokeLinejoin: "round"
|
|
13380
13406
|
}
|
|
13381
13407
|
),
|
|
13382
|
-
/* @__PURE__ */
|
|
13408
|
+
/* @__PURE__ */ jsx49(
|
|
13383
13409
|
"path",
|
|
13384
13410
|
{
|
|
13385
13411
|
d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
|
|
13386
13412
|
fill: "white"
|
|
13387
13413
|
}
|
|
13388
13414
|
),
|
|
13389
|
-
/* @__PURE__ */
|
|
13415
|
+
/* @__PURE__ */ jsx49(
|
|
13390
13416
|
"path",
|
|
13391
13417
|
{
|
|
13392
13418
|
d: "M85 50.5007L87.7503 52.132M132.081 26.7061C131.991 26.6565 131.887 26.6302 131.773 26.6289C131.503 26.6259 131.15 26.8298 130.444 27.2376L87.7502 52.0455L87.7503 114.001",
|
|
@@ -13396,7 +13422,7 @@ var IcEmptyTable = () => {
|
|
|
13396
13422
|
strokeLinejoin: "round"
|
|
13397
13423
|
}
|
|
13398
13424
|
),
|
|
13399
|
-
/* @__PURE__ */
|
|
13425
|
+
/* @__PURE__ */ jsx49(
|
|
13400
13426
|
"path",
|
|
13401
13427
|
{
|
|
13402
13428
|
d: "M132.285 26.7744C132.222 26.6683 132.14 26.5872 132.042 26.5334L129.519 25.0772C129.429 25.0276 129.325 25.0013 129.211 25C128.942 24.9971 128.588 25.201 127.882 25.6087L86.5178 49.4905C85.8115 49.8983 85.4583 50.1021 85.1886 50.4166C84.9513 50.6932 84.7584 51.0274 84.6375 51.3712C84.5 51.762 84.5 52.1698 84.5 52.9854V110.942C84.5 111.758 84.5 112.166 84.6375 112.398C84.7003 112.504 84.7827 112.585 84.8806 112.639L87.4028 114.095C87.4932 114.145 87.5969 114.171 87.7108 114.172C87.9806 114.175 88.3337 113.971 89.04 113.563L130.404 89.6817C131.111 89.2739 131.464 89.07 131.734 88.7556C131.971 88.479 132.164 88.1448 132.285 87.801C132.422 87.4102 132.422 87.0023 132.422 86.1868V28.2298C132.422 27.4143 132.422 27.0066 132.285 26.7744Z",
|
|
@@ -13405,7 +13431,7 @@ var IcEmptyTable = () => {
|
|
|
13405
13431
|
strokeLinejoin: "round"
|
|
13406
13432
|
}
|
|
13407
13433
|
),
|
|
13408
|
-
/* @__PURE__ */
|
|
13434
|
+
/* @__PURE__ */ jsx49(
|
|
13409
13435
|
"path",
|
|
13410
13436
|
{
|
|
13411
13437
|
opacity: "0.6",
|
|
@@ -13416,7 +13442,7 @@ var IcEmptyTable = () => {
|
|
|
13416
13442
|
strokeLinejoin: "round"
|
|
13417
13443
|
}
|
|
13418
13444
|
),
|
|
13419
|
-
/* @__PURE__ */
|
|
13445
|
+
/* @__PURE__ */ jsx49(
|
|
13420
13446
|
"path",
|
|
13421
13447
|
{
|
|
13422
13448
|
opacity: "0.6",
|
|
@@ -13427,7 +13453,7 @@ var IcEmptyTable = () => {
|
|
|
13427
13453
|
strokeLinejoin: "round"
|
|
13428
13454
|
}
|
|
13429
13455
|
),
|
|
13430
|
-
/* @__PURE__ */
|
|
13456
|
+
/* @__PURE__ */ jsx49(
|
|
13431
13457
|
"path",
|
|
13432
13458
|
{
|
|
13433
13459
|
opacity: "0.6",
|
|
@@ -13438,7 +13464,7 @@ var IcEmptyTable = () => {
|
|
|
13438
13464
|
strokeLinejoin: "round"
|
|
13439
13465
|
}
|
|
13440
13466
|
),
|
|
13441
|
-
/* @__PURE__ */
|
|
13467
|
+
/* @__PURE__ */ jsx49(
|
|
13442
13468
|
"path",
|
|
13443
13469
|
{
|
|
13444
13470
|
opacity: "0.6",
|
|
@@ -13449,7 +13475,7 @@ var IcEmptyTable = () => {
|
|
|
13449
13475
|
strokeLinejoin: "round"
|
|
13450
13476
|
}
|
|
13451
13477
|
),
|
|
13452
|
-
/* @__PURE__ */
|
|
13478
|
+
/* @__PURE__ */ jsx49(
|
|
13453
13479
|
"path",
|
|
13454
13480
|
{
|
|
13455
13481
|
opacity: "0.6",
|
|
@@ -13460,7 +13486,7 @@ var IcEmptyTable = () => {
|
|
|
13460
13486
|
strokeLinejoin: "round"
|
|
13461
13487
|
}
|
|
13462
13488
|
),
|
|
13463
|
-
/* @__PURE__ */
|
|
13489
|
+
/* @__PURE__ */ jsx49(
|
|
13464
13490
|
"path",
|
|
13465
13491
|
{
|
|
13466
13492
|
opacity: "0.6",
|
|
@@ -13471,7 +13497,7 @@ var IcEmptyTable = () => {
|
|
|
13471
13497
|
strokeLinejoin: "round"
|
|
13472
13498
|
}
|
|
13473
13499
|
),
|
|
13474
|
-
/* @__PURE__ */
|
|
13500
|
+
/* @__PURE__ */ jsx49(
|
|
13475
13501
|
"path",
|
|
13476
13502
|
{
|
|
13477
13503
|
opacity: "0.6",
|
|
@@ -13482,7 +13508,7 @@ var IcEmptyTable = () => {
|
|
|
13482
13508
|
strokeLinejoin: "round"
|
|
13483
13509
|
}
|
|
13484
13510
|
),
|
|
13485
|
-
/* @__PURE__ */
|
|
13511
|
+
/* @__PURE__ */ jsx49(
|
|
13486
13512
|
"path",
|
|
13487
13513
|
{
|
|
13488
13514
|
opacity: "0.6",
|
|
@@ -13493,7 +13519,7 @@ var IcEmptyTable = () => {
|
|
|
13493
13519
|
strokeLinejoin: "round"
|
|
13494
13520
|
}
|
|
13495
13521
|
),
|
|
13496
|
-
/* @__PURE__ */
|
|
13522
|
+
/* @__PURE__ */ jsx49(
|
|
13497
13523
|
"path",
|
|
13498
13524
|
{
|
|
13499
13525
|
opacity: "0.6",
|
|
@@ -13504,14 +13530,14 @@ var IcEmptyTable = () => {
|
|
|
13504
13530
|
strokeLinejoin: "round"
|
|
13505
13531
|
}
|
|
13506
13532
|
),
|
|
13507
|
-
/* @__PURE__ */
|
|
13533
|
+
/* @__PURE__ */ jsx49(
|
|
13508
13534
|
"path",
|
|
13509
13535
|
{
|
|
13510
13536
|
d: "M114.191 31.968C113.467 32.3862 112.814 32.4107 112.354 32.1116C111.929 31.8356 111.669 31.2839 111.669 30.5118C111.669 29.4663 111.287 28.7441 110.676 28.433C110.112 28.1458 109.352 28.209 108.516 28.6915C106.775 29.6968 105.363 32.1417 105.363 34.1523C105.363 35.7608 104.234 37.7167 102.841 38.5209L99.6884 40.3412C97.5989 41.5475 95.905 44.4814 95.905 46.8941C95.905 47.0871 95.9701 47.225 96.0762 47.294L96.1036 47.3098C96.0942 47.3051 96.0851 47.2998 96.0762 47.294L93.5814 45.8536C93.4591 45.7914 93.3828 45.647 93.3828 45.4379C93.3828 43.0252 95.0767 40.0913 97.1661 38.885L100.319 37.0647C101.712 36.2605 102.841 34.3046 102.841 32.6961C102.841 30.6855 104.253 28.2406 105.994 27.2353C106.83 26.7528 107.59 26.6896 108.154 26.9768L110.676 28.433C111.287 28.7441 111.669 29.4663 111.669 30.5118L114.822 28.6915C115.825 28.1125 116.736 28.0367 117.413 28.3813L119.936 29.8374C119.259 29.4928 118.347 29.5687 117.344 30.1477L114.191 31.968Z",
|
|
13511
13537
|
fill: "white"
|
|
13512
13538
|
}
|
|
13513
13539
|
),
|
|
13514
|
-
/* @__PURE__ */
|
|
13540
|
+
/* @__PURE__ */ jsx49(
|
|
13515
13541
|
"path",
|
|
13516
13542
|
{
|
|
13517
13543
|
"fill-rule": "evenodd",
|
|
@@ -13520,7 +13546,7 @@ var IcEmptyTable = () => {
|
|
|
13520
13546
|
fill: "white"
|
|
13521
13547
|
}
|
|
13522
13548
|
),
|
|
13523
|
-
/* @__PURE__ */
|
|
13549
|
+
/* @__PURE__ */ jsx49(
|
|
13524
13550
|
"path",
|
|
13525
13551
|
{
|
|
13526
13552
|
d: "M112.328 31.8616C112.788 32.1606 113.441 32.1362 114.165 31.718M114.165 31.718L117.318 29.8977M114.165 31.718C112.772 32.5222 111.643 31.8702 111.643 30.2617M117.318 29.8977C118.321 29.3186 119.233 29.2429 119.91 29.5874L117.387 28.1312C116.71 27.7867 115.799 27.8624 114.796 28.4415L111.643 30.2617M117.318 29.8977C119.407 28.6913 121.101 29.6693 121.101 32.082C121.101 32.4841 120.819 32.9731 120.471 33.1741L96.5097 47.0081C96.1614 47.2091 95.8791 47.0462 95.8791 46.644M111.643 30.2617C111.643 28.2512 110.231 27.4362 108.49 28.4415M95.8791 46.644C95.8791 46.8532 95.9554 46.9976 96.0777 47.0598L93.5555 45.6036C93.4332 45.5414 93.3569 45.397 93.3569 45.1878C93.3569 42.7751 95.0507 39.8413 97.1402 38.6349L100.293 36.8147C101.686 36.0104 102.815 34.0545 102.815 32.4461C102.815 30.4355 104.227 27.9906 105.968 26.9853C106.804 26.5027 107.563 26.4396 108.128 26.7267L110.65 28.183C110.086 27.8958 109.326 27.959 108.49 28.4415M95.8791 46.644C95.8791 44.2313 97.573 41.2975 99.6624 40.0911L102.815 38.2709C104.208 37.4666 105.337 35.5107 105.337 33.9023C105.337 31.8917 106.749 29.4468 108.49 28.4415M109.751 31.3539C109.751 32.1581 109.186 33.1361 108.49 33.5382C107.794 33.9403 107.229 33.6143 107.229 32.8101C107.229 32.0059 107.794 31.0279 108.49 30.6258C109.186 30.2237 109.751 30.5497 109.751 31.3539Z",
|
|
@@ -13531,7 +13557,7 @@ var IcEmptyTable = () => {
|
|
|
13531
13557
|
}
|
|
13532
13558
|
)
|
|
13533
13559
|
] }),
|
|
13534
|
-
/* @__PURE__ */
|
|
13560
|
+
/* @__PURE__ */ jsx49("defs", { children: /* @__PURE__ */ jsx49("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx49(
|
|
13535
13561
|
"rect",
|
|
13536
13562
|
{
|
|
13537
13563
|
width: "215",
|
|
@@ -13546,14 +13572,14 @@ var IcEmptyTable = () => {
|
|
|
13546
13572
|
};
|
|
13547
13573
|
|
|
13548
13574
|
// src/widgets/advanced/table/empty-table.tsx
|
|
13549
|
-
import { jsx as
|
|
13575
|
+
import { jsx as jsx50, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
13550
13576
|
var EmptyTable = () => {
|
|
13551
13577
|
const { t: t3 } = useI18n();
|
|
13552
|
-
return /* @__PURE__ */
|
|
13553
|
-
/* @__PURE__ */
|
|
13554
|
-
/* @__PURE__ */
|
|
13555
|
-
/* @__PURE__ */
|
|
13556
|
-
/* @__PURE__ */
|
|
13578
|
+
return /* @__PURE__ */ jsxs29("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
|
|
13579
|
+
/* @__PURE__ */ jsx50(IcEmptyTable, {}),
|
|
13580
|
+
/* @__PURE__ */ jsxs29("div", { children: [
|
|
13581
|
+
/* @__PURE__ */ jsx50("p", {}),
|
|
13582
|
+
/* @__PURE__ */ jsx50("p", { className: "text-xl font-extrabold", children: t3("empty_data") })
|
|
13557
13583
|
] })
|
|
13558
13584
|
] });
|
|
13559
13585
|
};
|
|
@@ -15372,10 +15398,10 @@ function s3(o3, s4, t3) {
|
|
|
15372
15398
|
|
|
15373
15399
|
// src/widgets/advanced/login/shared/button.tsx
|
|
15374
15400
|
import * as React2 from "react";
|
|
15375
|
-
import { jsx as
|
|
15401
|
+
import { jsx as jsx51 } from "react/jsx-runtime";
|
|
15376
15402
|
var Button = React2.forwardRef(
|
|
15377
15403
|
({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
|
|
15378
|
-
return /* @__PURE__ */
|
|
15404
|
+
return /* @__PURE__ */ jsx51(
|
|
15379
15405
|
"button",
|
|
15380
15406
|
{
|
|
15381
15407
|
className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
@@ -15385,7 +15411,7 @@ var Button = React2.forwardRef(
|
|
|
15385
15411
|
ref,
|
|
15386
15412
|
type,
|
|
15387
15413
|
...props,
|
|
15388
|
-
children: isLoading ? /* @__PURE__ */
|
|
15414
|
+
children: isLoading ? /* @__PURE__ */ jsx51(LoadingIcon, { width: 20, height: 20 }) : children
|
|
15389
15415
|
}
|
|
15390
15416
|
);
|
|
15391
15417
|
}
|
|
@@ -15394,7 +15420,7 @@ Button.displayName = "Button";
|
|
|
15394
15420
|
|
|
15395
15421
|
// src/widgets/advanced/login/shared/text-input.tsx
|
|
15396
15422
|
import { useState as useState5 } from "react";
|
|
15397
|
-
import { jsx as
|
|
15423
|
+
import { jsx as jsx52, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
15398
15424
|
function TextInput(props) {
|
|
15399
15425
|
const {
|
|
15400
15426
|
className,
|
|
@@ -15408,17 +15434,17 @@ function TextInput(props) {
|
|
|
15408
15434
|
required
|
|
15409
15435
|
} = props;
|
|
15410
15436
|
const [showPassword, setShowPassword] = useState5(false);
|
|
15411
|
-
return /* @__PURE__ */
|
|
15412
|
-
label && /* @__PURE__ */
|
|
15437
|
+
return /* @__PURE__ */ jsxs30("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
|
|
15438
|
+
label && /* @__PURE__ */ jsxs30("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
|
|
15413
15439
|
label,
|
|
15414
|
-
required ? /* @__PURE__ */
|
|
15440
|
+
required ? /* @__PURE__ */ jsx52("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
|
|
15415
15441
|
] }),
|
|
15416
|
-
/* @__PURE__ */
|
|
15442
|
+
/* @__PURE__ */ jsxs30(
|
|
15417
15443
|
"div",
|
|
15418
15444
|
{
|
|
15419
15445
|
className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
|
|
15420
15446
|
children: [
|
|
15421
|
-
/* @__PURE__ */
|
|
15447
|
+
/* @__PURE__ */ jsx52(
|
|
15422
15448
|
"input",
|
|
15423
15449
|
{
|
|
15424
15450
|
className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
|
|
@@ -15427,18 +15453,18 @@ function TextInput(props) {
|
|
|
15427
15453
|
...register(name2)
|
|
15428
15454
|
}
|
|
15429
15455
|
),
|
|
15430
|
-
type === "password" && /* @__PURE__ */
|
|
15456
|
+
type === "password" && /* @__PURE__ */ jsx52(
|
|
15431
15457
|
"span",
|
|
15432
15458
|
{
|
|
15433
15459
|
onClick: () => setShowPassword(!showPassword),
|
|
15434
15460
|
className: "focus:outline-none",
|
|
15435
|
-
children: showPassword ? /* @__PURE__ */
|
|
15461
|
+
children: showPassword ? /* @__PURE__ */ jsx52(EyeClosedIcon, {}) : /* @__PURE__ */ jsx52(EyeIcon, {})
|
|
15436
15462
|
}
|
|
15437
15463
|
)
|
|
15438
15464
|
]
|
|
15439
15465
|
}
|
|
15440
15466
|
),
|
|
15441
|
-
errors?.[name2]?.message && /* @__PURE__ */
|
|
15467
|
+
errors?.[name2]?.message && /* @__PURE__ */ jsx52(
|
|
15442
15468
|
"p",
|
|
15443
15469
|
{
|
|
15444
15470
|
className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
|
|
@@ -15450,7 +15476,7 @@ function TextInput(props) {
|
|
|
15450
15476
|
|
|
15451
15477
|
// src/widgets/advanced/login/provider/credential/form-options/index.tsx
|
|
15452
15478
|
import { useEffect as useEffect7 } from "react";
|
|
15453
|
-
import { jsx as
|
|
15479
|
+
import { jsx as jsx53, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
15454
15480
|
var STAY_LOGIN_IN = "stayLoginIn";
|
|
15455
15481
|
function FormOptions({
|
|
15456
15482
|
forgotPasswordUrl,
|
|
@@ -15476,9 +15502,9 @@ function FormOptions({
|
|
|
15476
15502
|
useEffect7(() => {
|
|
15477
15503
|
localStorage.setItem(STAY_LOGIN_IN, "false");
|
|
15478
15504
|
}, []);
|
|
15479
|
-
return /* @__PURE__ */
|
|
15480
|
-
/* @__PURE__ */
|
|
15481
|
-
/* @__PURE__ */
|
|
15505
|
+
return /* @__PURE__ */ jsxs31("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
|
|
15506
|
+
/* @__PURE__ */ jsxs31("label", { className: "flex gap-3", children: [
|
|
15507
|
+
/* @__PURE__ */ jsx53(
|
|
15482
15508
|
"input",
|
|
15483
15509
|
{
|
|
15484
15510
|
checked: stayLoginIn,
|
|
@@ -15487,14 +15513,14 @@ function FormOptions({
|
|
|
15487
15513
|
onChange: handleCheckboxChange
|
|
15488
15514
|
}
|
|
15489
15515
|
),
|
|
15490
|
-
/* @__PURE__ */
|
|
15516
|
+
/* @__PURE__ */ jsx53("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
|
|
15491
15517
|
] }),
|
|
15492
|
-
!hideForgotPassword && /* @__PURE__ */
|
|
15518
|
+
!hideForgotPassword && /* @__PURE__ */ jsx53("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
15493
15519
|
] });
|
|
15494
15520
|
}
|
|
15495
15521
|
|
|
15496
15522
|
// src/widgets/advanced/login/provider/credential/index.tsx
|
|
15497
|
-
import { Fragment as Fragment5, jsx as
|
|
15523
|
+
import { Fragment as Fragment5, jsx as jsx54, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
15498
15524
|
var CredentialLogin = (props) => {
|
|
15499
15525
|
const {
|
|
15500
15526
|
shouldRenderDivider,
|
|
@@ -15514,16 +15540,16 @@ var CredentialLogin = (props) => {
|
|
|
15514
15540
|
mode: "onChange",
|
|
15515
15541
|
resolver: s3(loginSchema)
|
|
15516
15542
|
});
|
|
15517
|
-
return /* @__PURE__ */
|
|
15518
|
-
/* @__PURE__ */
|
|
15543
|
+
return /* @__PURE__ */ jsxs32(Fragment5, { children: [
|
|
15544
|
+
/* @__PURE__ */ jsxs32(
|
|
15519
15545
|
"form",
|
|
15520
15546
|
{
|
|
15521
15547
|
onSubmit: handleSubmit(onSubmit ?? (() => {
|
|
15522
15548
|
})),
|
|
15523
15549
|
className: `flex w-full h-fit flex-col gap-10`,
|
|
15524
15550
|
children: [
|
|
15525
|
-
/* @__PURE__ */
|
|
15526
|
-
/* @__PURE__ */
|
|
15551
|
+
/* @__PURE__ */ jsxs32("div", { className: "flex flex-col gap-6", children: [
|
|
15552
|
+
/* @__PURE__ */ jsx54(
|
|
15527
15553
|
TextInput,
|
|
15528
15554
|
{
|
|
15529
15555
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -15536,7 +15562,7 @@ var CredentialLogin = (props) => {
|
|
|
15536
15562
|
errors
|
|
15537
15563
|
}
|
|
15538
15564
|
),
|
|
15539
|
-
/* @__PURE__ */
|
|
15565
|
+
/* @__PURE__ */ jsx54(
|
|
15540
15566
|
TextInput,
|
|
15541
15567
|
{
|
|
15542
15568
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -15549,7 +15575,7 @@ var CredentialLogin = (props) => {
|
|
|
15549
15575
|
errors
|
|
15550
15576
|
}
|
|
15551
15577
|
),
|
|
15552
|
-
/* @__PURE__ */
|
|
15578
|
+
/* @__PURE__ */ jsx54(
|
|
15553
15579
|
FormOptions,
|
|
15554
15580
|
{
|
|
15555
15581
|
forgotPasswordUrl,
|
|
@@ -15559,7 +15585,7 @@ var CredentialLogin = (props) => {
|
|
|
15559
15585
|
}
|
|
15560
15586
|
)
|
|
15561
15587
|
] }),
|
|
15562
|
-
/* @__PURE__ */
|
|
15588
|
+
/* @__PURE__ */ jsx54("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx54(
|
|
15563
15589
|
Button,
|
|
15564
15590
|
{
|
|
15565
15591
|
type: "submit",
|
|
@@ -15571,56 +15597,56 @@ var CredentialLogin = (props) => {
|
|
|
15571
15597
|
]
|
|
15572
15598
|
}
|
|
15573
15599
|
),
|
|
15574
|
-
shouldRenderDivider && /* @__PURE__ */
|
|
15575
|
-
/* @__PURE__ */
|
|
15576
|
-
/* @__PURE__ */
|
|
15600
|
+
shouldRenderDivider && /* @__PURE__ */ jsxs32("div", { className: "flex justify-center relative", children: [
|
|
15601
|
+
/* @__PURE__ */ jsx54("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
|
|
15602
|
+
/* @__PURE__ */ jsx54("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
|
|
15577
15603
|
] })
|
|
15578
15604
|
] });
|
|
15579
15605
|
};
|
|
15580
15606
|
|
|
15581
15607
|
// src/widgets/advanced/login/provider/google/google-btn/index.tsx
|
|
15582
|
-
import { jsx as
|
|
15608
|
+
import { jsx as jsx55, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
15583
15609
|
function GoogleButton(props) {
|
|
15584
15610
|
const { onLoginGoogle, db } = props;
|
|
15585
|
-
return /* @__PURE__ */
|
|
15611
|
+
return /* @__PURE__ */ jsxs33(
|
|
15586
15612
|
"button",
|
|
15587
15613
|
{
|
|
15588
15614
|
className: "google-wrapper w-full active:scale-[0.97] cursor-pointer hover:bg-gray-100 scale-100 transition-all gap-2 p-4 border border-[#e5e7eb] rounded-[10px] flex items-center justify-center bg-white",
|
|
15589
15615
|
onClick: () => onLoginGoogle?.(db),
|
|
15590
15616
|
children: [
|
|
15591
|
-
/* @__PURE__ */
|
|
15592
|
-
/* @__PURE__ */
|
|
15617
|
+
/* @__PURE__ */ jsx55(GoogleIcon, { className: "google-icon" }),
|
|
15618
|
+
/* @__PURE__ */ jsx55("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
|
|
15593
15619
|
]
|
|
15594
15620
|
}
|
|
15595
15621
|
);
|
|
15596
15622
|
}
|
|
15597
15623
|
|
|
15598
15624
|
// src/widgets/advanced/login/provider/google/redirect/index.tsx
|
|
15599
|
-
import { Fragment as Fragment6, jsx as
|
|
15625
|
+
import { Fragment as Fragment6, jsx as jsx56 } from "react/jsx-runtime";
|
|
15600
15626
|
function SocialRedirect(props) {
|
|
15601
15627
|
const { db, onLoginSocial } = props;
|
|
15602
15628
|
onLoginSocial && onLoginSocial(String(db));
|
|
15603
|
-
return /* @__PURE__ */
|
|
15629
|
+
return /* @__PURE__ */ jsx56(Fragment6, {});
|
|
15604
15630
|
}
|
|
15605
15631
|
|
|
15606
15632
|
// src/widgets/advanced/login/provider/google/index.tsx
|
|
15607
|
-
import { Fragment as Fragment7, jsx as
|
|
15633
|
+
import { Fragment as Fragment7, jsx as jsx57, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
15608
15634
|
var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
|
|
15609
|
-
return /* @__PURE__ */
|
|
15610
|
-
/* @__PURE__ */
|
|
15611
|
-
/* @__PURE__ */
|
|
15635
|
+
return /* @__PURE__ */ jsxs34(Fragment7, { children: [
|
|
15636
|
+
/* @__PURE__ */ jsx57(GoogleButton, { db, onLoginGoogle }),
|
|
15637
|
+
/* @__PURE__ */ jsx57(SocialRedirect, { db, onLoginSocial })
|
|
15612
15638
|
] });
|
|
15613
15639
|
};
|
|
15614
15640
|
|
|
15615
15641
|
// src/widgets/advanced/login/index.tsx
|
|
15616
|
-
import { jsx as
|
|
15642
|
+
import { jsx as jsx58, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
15617
15643
|
var LoginProviderMapping = {
|
|
15618
15644
|
google: GoogleLogin
|
|
15619
15645
|
};
|
|
15620
15646
|
var Login = (props) => {
|
|
15621
15647
|
const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
|
|
15622
|
-
return /* @__PURE__ */
|
|
15623
|
-
/* @__PURE__ */
|
|
15648
|
+
return /* @__PURE__ */ jsxs35("div", { className: "w-full space-y-8", children: [
|
|
15649
|
+
/* @__PURE__ */ jsx58(
|
|
15624
15650
|
CredentialLogin,
|
|
15625
15651
|
{
|
|
15626
15652
|
...props,
|
|
@@ -15630,7 +15656,7 @@ var Login = (props) => {
|
|
|
15630
15656
|
),
|
|
15631
15657
|
providers.map((provider, index4) => {
|
|
15632
15658
|
const ProviderComp = LoginProviderMapping[provider];
|
|
15633
|
-
return /* @__PURE__ */
|
|
15659
|
+
return /* @__PURE__ */ jsx58(
|
|
15634
15660
|
ProviderComp,
|
|
15635
15661
|
{
|
|
15636
15662
|
db,
|
|
@@ -15644,7 +15670,7 @@ var Login = (props) => {
|
|
|
15644
15670
|
};
|
|
15645
15671
|
|
|
15646
15672
|
// src/widgets/advanced/search/popup-filter/index.tsx
|
|
15647
|
-
import { jsx as
|
|
15673
|
+
import { jsx as jsx59, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
15648
15674
|
var PopupFilter = ({
|
|
15649
15675
|
handleAddTagSearch,
|
|
15650
15676
|
removeSearchItems,
|
|
@@ -15655,7 +15681,7 @@ var PopupFilter = ({
|
|
|
15655
15681
|
fields
|
|
15656
15682
|
}) => {
|
|
15657
15683
|
const { t: t3 } = useI18n();
|
|
15658
|
-
return /* @__PURE__ */
|
|
15684
|
+
return /* @__PURE__ */ jsx59(
|
|
15659
15685
|
"div",
|
|
15660
15686
|
{
|
|
15661
15687
|
style: {
|
|
@@ -15665,25 +15691,25 @@ var PopupFilter = ({
|
|
|
15665
15691
|
zIndex: 33
|
|
15666
15692
|
},
|
|
15667
15693
|
className: "popup-filter w-full overflow-x-auto rounded-lg border border-[var(--stroke-default)] bg-white shadow-xl",
|
|
15668
|
-
children: /* @__PURE__ */
|
|
15694
|
+
children: /* @__PURE__ */ jsxs36(
|
|
15669
15695
|
"div",
|
|
15670
15696
|
{
|
|
15671
15697
|
className: `flex py-3 ${(filterBy?.length === 0 || groupBy?.length === 0) && "!grid-cols-1"}`,
|
|
15672
15698
|
children: [
|
|
15673
|
-
filterBy?.length > 0 && /* @__PURE__ */
|
|
15674
|
-
/* @__PURE__ */
|
|
15675
|
-
/* @__PURE__ */
|
|
15676
|
-
/* @__PURE__ */
|
|
15699
|
+
filterBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "filter-by w-full px-3", children: [
|
|
15700
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
15701
|
+
/* @__PURE__ */ jsx59(FilterIcon, { className: "filter-by-icon text-primary" }),
|
|
15702
|
+
/* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("filter_by") })
|
|
15677
15703
|
] }),
|
|
15678
15704
|
filterBy?.reduce((acc, item, index4, array) => {
|
|
15679
15705
|
const prevItem = array[index4 - 1];
|
|
15680
15706
|
const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
|
|
15681
15707
|
const isExist = item?.active;
|
|
15682
15708
|
if (isDifferentGroup) {
|
|
15683
|
-
acc.push(/* @__PURE__ */
|
|
15709
|
+
acc.push(/* @__PURE__ */ jsx59("hr", { className: "my-2" }, "separator-" + index4));
|
|
15684
15710
|
}
|
|
15685
15711
|
acc.push(
|
|
15686
|
-
/* @__PURE__ */
|
|
15712
|
+
/* @__PURE__ */ jsxs36(
|
|
15687
15713
|
"button",
|
|
15688
15714
|
{
|
|
15689
15715
|
className: `filter-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "filter-by-checked font-semibold " : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
|
|
@@ -15708,8 +15734,8 @@ var PopupFilter = ({
|
|
|
15708
15734
|
});
|
|
15709
15735
|
},
|
|
15710
15736
|
children: [
|
|
15711
|
-
isExist && /* @__PURE__ */
|
|
15712
|
-
/* @__PURE__ */
|
|
15737
|
+
isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
|
|
15738
|
+
/* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string ?? item?.help })
|
|
15713
15739
|
]
|
|
15714
15740
|
},
|
|
15715
15741
|
"filter-" + index4
|
|
@@ -15718,16 +15744,16 @@ var PopupFilter = ({
|
|
|
15718
15744
|
return acc;
|
|
15719
15745
|
}, [])
|
|
15720
15746
|
] }),
|
|
15721
|
-
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */
|
|
15722
|
-
groupBy?.length > 0 && /* @__PURE__ */
|
|
15723
|
-
/* @__PURE__ */
|
|
15724
|
-
/* @__PURE__ */
|
|
15725
|
-
/* @__PURE__ */
|
|
15747
|
+
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx59("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
|
|
15748
|
+
groupBy?.length > 0 && /* @__PURE__ */ jsxs36("div", { className: "group-by w-full px-3", children: [
|
|
15749
|
+
/* @__PURE__ */ jsxs36("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
15750
|
+
/* @__PURE__ */ jsx59(GroupByIcon, { className: "group-by-icon text-primary" }),
|
|
15751
|
+
/* @__PURE__ */ jsx59("span", { className: "font-bold text-sm text-[#212529]", children: t3("group_by") })
|
|
15726
15752
|
] }),
|
|
15727
15753
|
groupBy?.map((item, index4) => {
|
|
15728
15754
|
const isExist = item?.active;
|
|
15729
15755
|
if (!item.string) return;
|
|
15730
|
-
return /* @__PURE__ */
|
|
15756
|
+
return /* @__PURE__ */ jsxs36(
|
|
15731
15757
|
"button",
|
|
15732
15758
|
{
|
|
15733
15759
|
onClick: () => {
|
|
@@ -15751,8 +15777,8 @@ var PopupFilter = ({
|
|
|
15751
15777
|
},
|
|
15752
15778
|
className: `group-by-item w-full flex items-center gap-2 bg-white px-3 py-1 text-left cursor-pointer ${isExist ? "group-by-checked font-semibold" : "hover:!bg-[rgba(0,0,0,0.08)]"}`,
|
|
15753
15779
|
children: [
|
|
15754
|
-
isExist && /* @__PURE__ */
|
|
15755
|
-
/* @__PURE__ */
|
|
15780
|
+
isExist && /* @__PURE__ */ jsx59(CheckIcon, {}),
|
|
15781
|
+
/* @__PURE__ */ jsx59("span", { className: "text-sm", children: item?.string })
|
|
15756
15782
|
]
|
|
15757
15783
|
},
|
|
15758
15784
|
"groupby-" + index4 + 1
|
|
@@ -15771,7 +15797,7 @@ import { useEffect as useEffect8, useState as useState6 } from "react";
|
|
|
15771
15797
|
|
|
15772
15798
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
15773
15799
|
import { Fragment as Fragment8 } from "react";
|
|
15774
|
-
import { Fragment as Fragment9, jsx as
|
|
15800
|
+
import { Fragment as Fragment9, jsx as jsx60, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
15775
15801
|
var TagSearch = ({
|
|
15776
15802
|
removeSearchItems,
|
|
15777
15803
|
selectedTags,
|
|
@@ -15782,23 +15808,23 @@ var TagSearch = ({
|
|
|
15782
15808
|
return selectedTags?.length > 0 && selectedTags?.map((tag, index4) => {
|
|
15783
15809
|
if (tag?.values?.length > 0) {
|
|
15784
15810
|
if (tag?.type !== "group_by") {
|
|
15785
|
-
return /* @__PURE__ */
|
|
15811
|
+
return /* @__PURE__ */ jsxs37(
|
|
15786
15812
|
"div",
|
|
15787
15813
|
{
|
|
15788
15814
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15789
15815
|
children: [
|
|
15790
|
-
/* @__PURE__ */
|
|
15791
|
-
/* @__PURE__ */
|
|
15792
|
-
return /* @__PURE__ */
|
|
15793
|
-
/* @__PURE__ */
|
|
15794
|
-
idx < tag.values.length - 1 && /* @__PURE__ */
|
|
15816
|
+
/* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: tag?.type === SearchType.SEARCH ? tag?.title : /* @__PURE__ */ jsx60(FilterIcon, {}) }),
|
|
15817
|
+
/* @__PURE__ */ jsx60("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
|
|
15818
|
+
return /* @__PURE__ */ jsxs37(Fragment8, { children: [
|
|
15819
|
+
/* @__PURE__ */ jsx60("span", { children: value }),
|
|
15820
|
+
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15795
15821
|
" ",
|
|
15796
15822
|
instance.t("or"),
|
|
15797
15823
|
" "
|
|
15798
15824
|
] })
|
|
15799
15825
|
] }, idx);
|
|
15800
15826
|
}) }),
|
|
15801
|
-
/* @__PURE__ */
|
|
15827
|
+
/* @__PURE__ */ jsx60(
|
|
15802
15828
|
"button",
|
|
15803
15829
|
{
|
|
15804
15830
|
className: "px-2 text-sm font-bold",
|
|
@@ -15815,7 +15841,7 @@ var TagSearch = ({
|
|
|
15815
15841
|
);
|
|
15816
15842
|
}
|
|
15817
15843
|
},
|
|
15818
|
-
children: /* @__PURE__ */
|
|
15844
|
+
children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15819
15845
|
}
|
|
15820
15846
|
)
|
|
15821
15847
|
]
|
|
@@ -15823,26 +15849,26 @@ var TagSearch = ({
|
|
|
15823
15849
|
"selected-tag-" + index4
|
|
15824
15850
|
);
|
|
15825
15851
|
} else if (tag?.type === "group_by") {
|
|
15826
|
-
return /* @__PURE__ */
|
|
15852
|
+
return /* @__PURE__ */ jsx60(
|
|
15827
15853
|
"div",
|
|
15828
15854
|
{
|
|
15829
15855
|
className: "flex min-h-full overflow-hidden",
|
|
15830
|
-
children: /* @__PURE__ */
|
|
15831
|
-
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */
|
|
15856
|
+
children: /* @__PURE__ */ jsx60("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
|
|
15857
|
+
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs37(
|
|
15832
15858
|
"div",
|
|
15833
15859
|
{
|
|
15834
15860
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
15835
15861
|
children: [
|
|
15836
|
-
/* @__PURE__ */
|
|
15837
|
-
value?.strings?.map((string, idx) => /* @__PURE__ */
|
|
15838
|
-
/* @__PURE__ */
|
|
15839
|
-
idx < value?.strings.length - 1 && /* @__PURE__ */
|
|
15862
|
+
/* @__PURE__ */ jsx60("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx60(GroupByIcon, {}) }),
|
|
15863
|
+
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs37(Fragment9, { children: [
|
|
15864
|
+
/* @__PURE__ */ jsx60("span", { children: string }),
|
|
15865
|
+
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs37("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
15840
15866
|
" ",
|
|
15841
15867
|
"> ",
|
|
15842
15868
|
" "
|
|
15843
15869
|
] })
|
|
15844
15870
|
] })),
|
|
15845
|
-
/* @__PURE__ */
|
|
15871
|
+
/* @__PURE__ */ jsx60(
|
|
15846
15872
|
"button",
|
|
15847
15873
|
{
|
|
15848
15874
|
className: "pr-2 text-sm font-bold",
|
|
@@ -15857,7 +15883,7 @@ var TagSearch = ({
|
|
|
15857
15883
|
);
|
|
15858
15884
|
}
|
|
15859
15885
|
},
|
|
15860
|
-
children: /* @__PURE__ */
|
|
15886
|
+
children: /* @__PURE__ */ jsx60(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
15861
15887
|
}
|
|
15862
15888
|
)
|
|
15863
15889
|
]
|
|
@@ -15874,7 +15900,7 @@ var TagSearch = ({
|
|
|
15874
15900
|
};
|
|
15875
15901
|
|
|
15876
15902
|
// src/widgets/advanced/search/search-list/index.tsx
|
|
15877
|
-
import { jsx as
|
|
15903
|
+
import { jsx as jsx61, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
15878
15904
|
var SearchList = ({
|
|
15879
15905
|
handleAddTagSearch,
|
|
15880
15906
|
handleMouseEnter,
|
|
@@ -15884,7 +15910,7 @@ var SearchList = ({
|
|
|
15884
15910
|
hoveredIndexSearchList
|
|
15885
15911
|
}) => {
|
|
15886
15912
|
const { t: t3 } = useI18n();
|
|
15887
|
-
return /* @__PURE__ */
|
|
15913
|
+
return /* @__PURE__ */ jsx61(
|
|
15888
15914
|
"div",
|
|
15889
15915
|
{
|
|
15890
15916
|
style: {
|
|
@@ -15896,7 +15922,7 @@ var SearchList = ({
|
|
|
15896
15922
|
if (!validateAndParseDate(searchString, searchItem?.type === "datetime"))
|
|
15897
15923
|
return;
|
|
15898
15924
|
}
|
|
15899
|
-
return /* @__PURE__ */
|
|
15925
|
+
return /* @__PURE__ */ jsxs38(
|
|
15900
15926
|
"button",
|
|
15901
15927
|
{
|
|
15902
15928
|
onClick: () => {
|
|
@@ -15918,12 +15944,12 @@ var SearchList = ({
|
|
|
15918
15944
|
children: [
|
|
15919
15945
|
t3("search"),
|
|
15920
15946
|
" ",
|
|
15921
|
-
/* @__PURE__ */
|
|
15947
|
+
/* @__PURE__ */ jsx61("span", { className: "font-bold", children: searchItem?.title }),
|
|
15922
15948
|
" ",
|
|
15923
15949
|
t3("for"),
|
|
15924
15950
|
":",
|
|
15925
15951
|
" ",
|
|
15926
|
-
/* @__PURE__ */
|
|
15952
|
+
/* @__PURE__ */ jsx61(
|
|
15927
15953
|
"span",
|
|
15928
15954
|
{
|
|
15929
15955
|
style: {
|
|
@@ -15943,7 +15969,7 @@ var SearchList = ({
|
|
|
15943
15969
|
};
|
|
15944
15970
|
|
|
15945
15971
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15946
|
-
import { Fragment as Fragment10, jsx as
|
|
15972
|
+
import { Fragment as Fragment10, jsx as jsx62, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
15947
15973
|
var Search = ({
|
|
15948
15974
|
removeSearchItems,
|
|
15949
15975
|
selectedTags,
|
|
@@ -16060,15 +16086,15 @@ var Search = ({
|
|
|
16060
16086
|
setDidInit(true);
|
|
16061
16087
|
setIsReadyFormatDomain(true);
|
|
16062
16088
|
}, [aid, filterBy, fieldsList]);
|
|
16063
|
-
return /* @__PURE__ */
|
|
16089
|
+
return /* @__PURE__ */ jsxs39(
|
|
16064
16090
|
"div",
|
|
16065
16091
|
{
|
|
16066
16092
|
ref: popupFilterRef,
|
|
16067
16093
|
className: `search gap-[8px] p-2 items-center flex !order-3 xl:!order-2 bg-white custom-search-input relative flex-1 xl:min-w-[480px] xl:flex-1 rounded-[10px] shadow-[0px_1px_3px_rgba(16,24,40,0.1),0px_1px_2px_rgba(16,24,40,0.06)] min-h-[40px] border border-[var(--stroke-default)]`,
|
|
16068
16094
|
children: [
|
|
16069
|
-
/* @__PURE__ */
|
|
16070
|
-
/* @__PURE__ */
|
|
16071
|
-
/* @__PURE__ */
|
|
16095
|
+
/* @__PURE__ */ jsx62("div", { className: "size-5", children: /* @__PURE__ */ jsx62(SearchIcon, {}) }),
|
|
16096
|
+
/* @__PURE__ */ jsxs39("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
16097
|
+
/* @__PURE__ */ jsx62(
|
|
16072
16098
|
TagSearch,
|
|
16073
16099
|
{
|
|
16074
16100
|
removeSearchItems,
|
|
@@ -16078,7 +16104,7 @@ var Search = ({
|
|
|
16078
16104
|
setGroupBy
|
|
16079
16105
|
}
|
|
16080
16106
|
),
|
|
16081
|
-
/* @__PURE__ */
|
|
16107
|
+
/* @__PURE__ */ jsx62(
|
|
16082
16108
|
"input",
|
|
16083
16109
|
{
|
|
16084
16110
|
value: searchString,
|
|
@@ -16091,7 +16117,7 @@ var Search = ({
|
|
|
16091
16117
|
onKeyUp: (e3) => e3.preventDefault()
|
|
16092
16118
|
}
|
|
16093
16119
|
),
|
|
16094
|
-
/* @__PURE__ */
|
|
16120
|
+
/* @__PURE__ */ jsx62(
|
|
16095
16121
|
SearchList,
|
|
16096
16122
|
{
|
|
16097
16123
|
handleAddTagSearch,
|
|
@@ -16100,8 +16126,8 @@ var Search = ({
|
|
|
16100
16126
|
}
|
|
16101
16127
|
)
|
|
16102
16128
|
] }),
|
|
16103
|
-
(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */
|
|
16104
|
-
/* @__PURE__ */
|
|
16129
|
+
(showFiltersGroups || filterBy?.length > 0 || groupBy?.length > 0) && /* @__PURE__ */ jsxs39(Fragment10, { children: [
|
|
16130
|
+
/* @__PURE__ */ jsxs39(
|
|
16105
16131
|
"div",
|
|
16106
16132
|
{
|
|
16107
16133
|
className: `flex h-full gap-2 cursor-pointer items-center justify-center max-w-fit`,
|
|
@@ -16110,8 +16136,8 @@ var Search = ({
|
|
|
16110
16136
|
setShowPopupFilter((prev2) => !prev2);
|
|
16111
16137
|
},
|
|
16112
16138
|
children: [
|
|
16113
|
-
/* @__PURE__ */
|
|
16114
|
-
/* @__PURE__ */
|
|
16139
|
+
/* @__PURE__ */ jsx62("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
|
|
16140
|
+
/* @__PURE__ */ jsx62(
|
|
16115
16141
|
ChevronBottomIcon,
|
|
16116
16142
|
{
|
|
16117
16143
|
className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
|
|
@@ -16120,7 +16146,7 @@ var Search = ({
|
|
|
16120
16146
|
]
|
|
16121
16147
|
}
|
|
16122
16148
|
),
|
|
16123
|
-
showPopupFilter && /* @__PURE__ */
|
|
16149
|
+
showPopupFilter && /* @__PURE__ */ jsx62(
|
|
16124
16150
|
PopupFilter,
|
|
16125
16151
|
{
|
|
16126
16152
|
handleAddTagSearch,
|
|
@@ -16139,30 +16165,30 @@ var Search = ({
|
|
|
16139
16165
|
};
|
|
16140
16166
|
|
|
16141
16167
|
// src/widgets/basic/active-badge-field/active-badge.tsx
|
|
16142
|
-
import { Fragment as Fragment11, jsx as
|
|
16168
|
+
import { Fragment as Fragment11, jsx as jsx63 } from "react/jsx-runtime";
|
|
16143
16169
|
var ActiveBadgeField = (props) => {
|
|
16144
16170
|
const { t: t3 } = useI18n();
|
|
16145
16171
|
const {
|
|
16146
16172
|
type,
|
|
16147
16173
|
className
|
|
16148
16174
|
} = props;
|
|
16149
|
-
if (type === void 0) return /* @__PURE__ */
|
|
16175
|
+
if (type === void 0) return /* @__PURE__ */ jsx63(Fragment11, {});
|
|
16150
16176
|
const typeStyle = type ? "text-green-500" : "text-red-500";
|
|
16151
16177
|
const text = type ? t3("active") : t3("in_active");
|
|
16152
|
-
return /* @__PURE__ */
|
|
16178
|
+
return /* @__PURE__ */ jsx63("div", { className: `${typeStyle} ${className}`, children: text });
|
|
16153
16179
|
};
|
|
16154
16180
|
|
|
16155
16181
|
// src/widgets/common/modal-layer.tsx
|
|
16156
16182
|
import { Fragment as Fragment12 } from "react";
|
|
16157
16183
|
import { Dialog, DialogPanel, Transition } from "@headlessui/react";
|
|
16158
|
-
import { jsx as
|
|
16184
|
+
import { jsx as jsx64, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
16159
16185
|
var ModalLayer = ({
|
|
16160
16186
|
isOpen,
|
|
16161
16187
|
onClose,
|
|
16162
16188
|
title,
|
|
16163
16189
|
children
|
|
16164
16190
|
}) => {
|
|
16165
|
-
return /* @__PURE__ */
|
|
16191
|
+
return /* @__PURE__ */ jsx64(
|
|
16166
16192
|
Transition,
|
|
16167
16193
|
{
|
|
16168
16194
|
show: isOpen,
|
|
@@ -16173,22 +16199,22 @@ var ModalLayer = ({
|
|
|
16173
16199
|
leaveFrom: "transform scale-100 opacity-100",
|
|
16174
16200
|
leaveTo: "transform scale-95 opacity-0",
|
|
16175
16201
|
as: Fragment12,
|
|
16176
|
-
children: /* @__PURE__ */
|
|
16177
|
-
/* @__PURE__ */
|
|
16178
|
-
/* @__PURE__ */
|
|
16179
|
-
/* @__PURE__ */
|
|
16202
|
+
children: /* @__PURE__ */ jsx64(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx64(DialogPanel, { children: /* @__PURE__ */ jsxs40("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
|
|
16203
|
+
/* @__PURE__ */ jsx64("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16204
|
+
/* @__PURE__ */ jsx64("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs40("div", { className: " relative z-[1] mx-auto my-[88px] p-4 flex flex-col gap-2 max-w-[1000px] transform rounded-xl bg-[#FFF]", children: [
|
|
16205
|
+
/* @__PURE__ */ jsxs40(
|
|
16180
16206
|
"div",
|
|
16181
16207
|
{
|
|
16182
16208
|
className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
|
|
16183
16209
|
children: [
|
|
16184
|
-
title && /* @__PURE__ */
|
|
16185
|
-
/* @__PURE__ */
|
|
16210
|
+
title && /* @__PURE__ */ jsx64("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
|
|
16211
|
+
/* @__PURE__ */ jsx64(
|
|
16186
16212
|
"button",
|
|
16187
16213
|
{
|
|
16188
16214
|
onClick: onClose,
|
|
16189
16215
|
"aria-label": "Close",
|
|
16190
16216
|
className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
|
|
16191
|
-
children: /* @__PURE__ */
|
|
16217
|
+
children: /* @__PURE__ */ jsx64(CloseIcon, {})
|
|
16192
16218
|
}
|
|
16193
16219
|
)
|
|
16194
16220
|
]
|
|
@@ -16202,7 +16228,7 @@ var ModalLayer = ({
|
|
|
16202
16228
|
};
|
|
16203
16229
|
|
|
16204
16230
|
// src/widgets/common/modal-confirm.tsx
|
|
16205
|
-
import { jsx as
|
|
16231
|
+
import { jsx as jsx65, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
16206
16232
|
var ModalConfirm = ({
|
|
16207
16233
|
name: name2,
|
|
16208
16234
|
isShowModal,
|
|
@@ -16216,7 +16242,7 @@ var ModalConfirm = ({
|
|
|
16216
16242
|
const renderButtonAction = (name3) => {
|
|
16217
16243
|
switch (name3) {
|
|
16218
16244
|
case "duplicate":
|
|
16219
|
-
return /* @__PURE__ */
|
|
16245
|
+
return /* @__PURE__ */ jsxs41(
|
|
16220
16246
|
"button",
|
|
16221
16247
|
{
|
|
16222
16248
|
type: "button",
|
|
@@ -16224,13 +16250,13 @@ var ModalConfirm = ({
|
|
|
16224
16250
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16225
16251
|
disabled: isLoading,
|
|
16226
16252
|
children: [
|
|
16227
|
-
isLoading && /* @__PURE__ */
|
|
16228
|
-
/* @__PURE__ */
|
|
16253
|
+
isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
|
|
16254
|
+
/* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "duplicating" : "duplicate") })
|
|
16229
16255
|
]
|
|
16230
16256
|
}
|
|
16231
16257
|
);
|
|
16232
16258
|
case "archive":
|
|
16233
|
-
return /* @__PURE__ */
|
|
16259
|
+
return /* @__PURE__ */ jsxs41(
|
|
16234
16260
|
"button",
|
|
16235
16261
|
{
|
|
16236
16262
|
type: "button",
|
|
@@ -16238,13 +16264,13 @@ var ModalConfirm = ({
|
|
|
16238
16264
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16239
16265
|
disabled: isLoading,
|
|
16240
16266
|
children: [
|
|
16241
|
-
isLoading && /* @__PURE__ */
|
|
16242
|
-
/* @__PURE__ */
|
|
16267
|
+
isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
|
|
16268
|
+
/* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "archiving" : "save_archive") })
|
|
16243
16269
|
]
|
|
16244
16270
|
}
|
|
16245
16271
|
);
|
|
16246
16272
|
case "unarchive":
|
|
16247
|
-
return /* @__PURE__ */
|
|
16273
|
+
return /* @__PURE__ */ jsxs41(
|
|
16248
16274
|
"button",
|
|
16249
16275
|
{
|
|
16250
16276
|
type: "button",
|
|
@@ -16252,13 +16278,13 @@ var ModalConfirm = ({
|
|
|
16252
16278
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16253
16279
|
disabled: isLoading,
|
|
16254
16280
|
children: [
|
|
16255
|
-
isLoading && /* @__PURE__ */
|
|
16256
|
-
/* @__PURE__ */
|
|
16281
|
+
isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
|
|
16282
|
+
/* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "unarchiving" : "save_unarchive") })
|
|
16257
16283
|
]
|
|
16258
16284
|
}
|
|
16259
16285
|
);
|
|
16260
16286
|
case "delete":
|
|
16261
|
-
return /* @__PURE__ */
|
|
16287
|
+
return /* @__PURE__ */ jsxs41(
|
|
16262
16288
|
"button",
|
|
16263
16289
|
{
|
|
16264
16290
|
type: "button",
|
|
@@ -16266,8 +16292,8 @@ var ModalConfirm = ({
|
|
|
16266
16292
|
className: "button-primary flex-1 flex items-center justify-center gap-2",
|
|
16267
16293
|
disabled: isLoading,
|
|
16268
16294
|
children: [
|
|
16269
|
-
isLoading && /* @__PURE__ */
|
|
16270
|
-
/* @__PURE__ */
|
|
16295
|
+
isLoading && /* @__PURE__ */ jsx65(LoadingIcon, {}),
|
|
16296
|
+
/* @__PURE__ */ jsx65("span", { children: t3(isLoading ? "deleting" : "delete_button") })
|
|
16271
16297
|
]
|
|
16272
16298
|
}
|
|
16273
16299
|
);
|
|
@@ -16275,13 +16301,13 @@ var ModalConfirm = ({
|
|
|
16275
16301
|
break;
|
|
16276
16302
|
}
|
|
16277
16303
|
};
|
|
16278
|
-
return /* @__PURE__ */
|
|
16279
|
-
/* @__PURE__ */
|
|
16280
|
-
/* @__PURE__ */
|
|
16281
|
-
/* @__PURE__ */
|
|
16304
|
+
return /* @__PURE__ */ jsx65(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs41("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
|
|
16305
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex flex-col gap-[4px] items-center", children: [
|
|
16306
|
+
/* @__PURE__ */ jsx65("div", { className: "text-[18px] font-bold", children: title }),
|
|
16307
|
+
/* @__PURE__ */ jsx65("p", { className: "text-[16px]", children: content })
|
|
16282
16308
|
] }),
|
|
16283
|
-
/* @__PURE__ */
|
|
16284
|
-
/* @__PURE__ */
|
|
16309
|
+
/* @__PURE__ */ jsxs41("div", { className: "flex justify-center items-center gap-2 w-full", children: [
|
|
16310
|
+
/* @__PURE__ */ jsx65(
|
|
16285
16311
|
"button",
|
|
16286
16312
|
{
|
|
16287
16313
|
type: "button",
|
|
@@ -16297,8 +16323,8 @@ var ModalConfirm = ({
|
|
|
16297
16323
|
|
|
16298
16324
|
// src/widgets/common/modal-detail.tsx
|
|
16299
16325
|
import { useState as useState7 } from "react";
|
|
16300
|
-
import { createPortal as
|
|
16301
|
-
import { Fragment as Fragment13, jsx as
|
|
16326
|
+
import { createPortal as createPortal2 } from "react-dom";
|
|
16327
|
+
import { Fragment as Fragment13, jsx as jsx66, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
16302
16328
|
var ModalDetail = ({
|
|
16303
16329
|
idToolTip,
|
|
16304
16330
|
title,
|
|
@@ -16320,19 +16346,19 @@ var ModalDetail = ({
|
|
|
16320
16346
|
sessionStorage.setItem("actionData", JSON.stringify(actionData));
|
|
16321
16347
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
16322
16348
|
};
|
|
16323
|
-
return
|
|
16324
|
-
/* @__PURE__ */
|
|
16325
|
-
/* @__PURE__ */
|
|
16326
|
-
/* @__PURE__ */
|
|
16327
|
-
/* @__PURE__ */
|
|
16328
|
-
/* @__PURE__ */
|
|
16349
|
+
return createPortal2(
|
|
16350
|
+
/* @__PURE__ */ jsx66(Fragment13, { children: showModalDetail && /* @__PURE__ */ jsxs42("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
16351
|
+
/* @__PURE__ */ jsx66("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16352
|
+
/* @__PURE__ */ jsx66("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs42("div", { className: "relative z-[1] max-w-full p-4 flex flex-col gap-4 w-[1000px] transform rounded-3xl bg-[#FFF] h-[90%]", children: [
|
|
16353
|
+
/* @__PURE__ */ jsxs42("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
16354
|
+
/* @__PURE__ */ jsxs42(
|
|
16329
16355
|
"div",
|
|
16330
16356
|
{
|
|
16331
16357
|
id: "modal-detail",
|
|
16332
16358
|
className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
|
|
16333
16359
|
children: [
|
|
16334
16360
|
t3("detail_button"),
|
|
16335
|
-
/* @__PURE__ */
|
|
16361
|
+
/* @__PURE__ */ jsx66(
|
|
16336
16362
|
"button",
|
|
16337
16363
|
{
|
|
16338
16364
|
onClick: handleNavigateDetail,
|
|
@@ -16343,9 +16369,9 @@ var ModalDetail = ({
|
|
|
16343
16369
|
]
|
|
16344
16370
|
}
|
|
16345
16371
|
),
|
|
16346
|
-
/* @__PURE__ */
|
|
16372
|
+
/* @__PURE__ */ jsx66("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx66(CloseIcon, { className: "h-5 w-5" }) })
|
|
16347
16373
|
] }),
|
|
16348
|
-
/* @__PURE__ */
|
|
16374
|
+
/* @__PURE__ */ jsx66("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
|
|
16349
16375
|
id: idForm,
|
|
16350
16376
|
aid,
|
|
16351
16377
|
model,
|
|
@@ -16360,7 +16386,7 @@ var ModalDetail = ({
|
|
|
16360
16386
|
|
|
16361
16387
|
// src/widgets/common/loading-normal.tsx
|
|
16362
16388
|
import { useEffect as useEffect9, useState as useState8 } from "react";
|
|
16363
|
-
import { jsx as
|
|
16389
|
+
import { jsx as jsx67, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
16364
16390
|
var LayerLoading = () => {
|
|
16365
16391
|
const { t: t3 } = useI18n();
|
|
16366
16392
|
const [activeIndex, setActiveIndex] = useState8(0);
|
|
@@ -16370,21 +16396,21 @@ var LayerLoading = () => {
|
|
|
16370
16396
|
}, 200);
|
|
16371
16397
|
return () => clearInterval(interval);
|
|
16372
16398
|
}, []);
|
|
16373
|
-
return /* @__PURE__ */
|
|
16374
|
-
/* @__PURE__ */
|
|
16399
|
+
return /* @__PURE__ */ jsx67("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx67("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs43("div", { className: "flex justify-center flex-col items-center gap-12", children: [
|
|
16400
|
+
/* @__PURE__ */ jsx67("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx67(
|
|
16375
16401
|
"div",
|
|
16376
16402
|
{
|
|
16377
16403
|
className: `loading-item ${index4 === activeIndex ? "active" : ""}`
|
|
16378
16404
|
},
|
|
16379
16405
|
index4
|
|
16380
16406
|
)) }),
|
|
16381
|
-
/* @__PURE__ */
|
|
16407
|
+
/* @__PURE__ */ jsx67("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: t3("loading") })
|
|
16382
16408
|
] }) }) });
|
|
16383
16409
|
};
|
|
16384
16410
|
|
|
16385
16411
|
// src/widgets/common/loading-small.tsx
|
|
16386
16412
|
import { useEffect as useEffect10, useState as useState9 } from "react";
|
|
16387
|
-
import { jsx as
|
|
16413
|
+
import { jsx as jsx68 } from "react/jsx-runtime";
|
|
16388
16414
|
var LoadingSmall = () => {
|
|
16389
16415
|
const [activeIndex, setActiveIndex] = useState9(0);
|
|
16390
16416
|
useEffect10(() => {
|
|
@@ -16393,7 +16419,7 @@ var LoadingSmall = () => {
|
|
|
16393
16419
|
}, 200);
|
|
16394
16420
|
return () => clearInterval(interval);
|
|
16395
16421
|
}, []);
|
|
16396
|
-
return /* @__PURE__ */
|
|
16422
|
+
return /* @__PURE__ */ jsx68("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx68("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx68("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx68(
|
|
16397
16423
|
"div",
|
|
16398
16424
|
{
|
|
16399
16425
|
className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
|
|
@@ -16402,255 +16428,6 @@ var LoadingSmall = () => {
|
|
|
16402
16428
|
)) }) }) }) });
|
|
16403
16429
|
};
|
|
16404
16430
|
|
|
16405
|
-
// src/widgets/common/video-player.tsx
|
|
16406
|
-
import { useRef as useRef6, useState as useState10 } from "react";
|
|
16407
|
-
import { jsx as jsx68, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
16408
|
-
var VideoPlayer = ({ src }) => {
|
|
16409
|
-
const [isPlaying, setIsPlaying] = useState10(false);
|
|
16410
|
-
const videoRef = useRef6(null);
|
|
16411
|
-
const handlePlayPause = () => {
|
|
16412
|
-
if (videoRef.current) {
|
|
16413
|
-
if (isPlaying) {
|
|
16414
|
-
videoRef.current.pause();
|
|
16415
|
-
} else {
|
|
16416
|
-
videoRef.current.play();
|
|
16417
|
-
}
|
|
16418
|
-
setIsPlaying(!isPlaying);
|
|
16419
|
-
}
|
|
16420
|
-
};
|
|
16421
|
-
const handleFullScreen = () => {
|
|
16422
|
-
if (videoRef.current) {
|
|
16423
|
-
if (videoRef.current.requestFullscreen) {
|
|
16424
|
-
videoRef.current.requestFullscreen();
|
|
16425
|
-
} else if (videoRef.current.webkitRequestFullscreen) {
|
|
16426
|
-
;
|
|
16427
|
-
videoRef.current.webkitRequestFullscreen();
|
|
16428
|
-
} else if (videoRef.current.msRequestFullscreen) {
|
|
16429
|
-
;
|
|
16430
|
-
videoRef.current.msRequestFullscreen();
|
|
16431
|
-
}
|
|
16432
|
-
}
|
|
16433
|
-
};
|
|
16434
|
-
return /* @__PURE__ */ jsxs43("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
|
|
16435
|
-
/* @__PURE__ */ jsx68(
|
|
16436
|
-
"video",
|
|
16437
|
-
{
|
|
16438
|
-
ref: videoRef,
|
|
16439
|
-
src,
|
|
16440
|
-
className: "w-full rounded-lg",
|
|
16441
|
-
onClick: handlePlayPause,
|
|
16442
|
-
width: 300,
|
|
16443
|
-
height: 300,
|
|
16444
|
-
children: "Your browser does not support the video tag."
|
|
16445
|
-
}
|
|
16446
|
-
),
|
|
16447
|
-
/* @__PURE__ */ jsx68("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
|
|
16448
|
-
/* @__PURE__ */ jsx68("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx68("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx68(PlayIcon, {}) }) })
|
|
16449
|
-
] });
|
|
16450
|
-
};
|
|
16451
|
-
|
|
16452
|
-
// src/widgets/common/render-files.tsx
|
|
16453
|
-
import { jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
16454
|
-
var ImageItem = ({
|
|
16455
|
-
filename,
|
|
16456
|
-
checksum,
|
|
16457
|
-
index: index4,
|
|
16458
|
-
src = null,
|
|
16459
|
-
useGetImage,
|
|
16460
|
-
size: size4,
|
|
16461
|
-
id,
|
|
16462
|
-
envFile,
|
|
16463
|
-
accessToken
|
|
16464
|
-
}) => {
|
|
16465
|
-
const { data: image } = useGetImage({
|
|
16466
|
-
data: { filename, checksum },
|
|
16467
|
-
queryKey: [`get-image-${""}`],
|
|
16468
|
-
src
|
|
16469
|
-
});
|
|
16470
|
-
return /* @__PURE__ */ jsx69("div", { className: "relative group group/file", children: image || src ? /* @__PURE__ */ jsx69(
|
|
16471
|
-
"img",
|
|
16472
|
-
{
|
|
16473
|
-
src: image || src,
|
|
16474
|
-
alt: filename,
|
|
16475
|
-
className: "w-32 h-32 object-cover rounded-md cursor-pointer"
|
|
16476
|
-
}
|
|
16477
|
-
) : /* @__PURE__ */ jsxs44(
|
|
16478
|
-
"div",
|
|
16479
|
-
{
|
|
16480
|
-
onClick: (e3) => {
|
|
16481
|
-
e3?.stopPropagation();
|
|
16482
|
-
downloadFile(
|
|
16483
|
-
`${envFile}api/v2/web/content/${id}?download=true`,
|
|
16484
|
-
filename,
|
|
16485
|
-
accessToken
|
|
16486
|
-
);
|
|
16487
|
-
},
|
|
16488
|
-
style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
|
|
16489
|
-
className: "flex items-center p-2 gap-2 overflow-hidden",
|
|
16490
|
-
children: [
|
|
16491
|
-
/* @__PURE__ */ jsx69(ImageIcon, {}),
|
|
16492
|
-
/* @__PURE__ */ jsxs44("div", { children: [
|
|
16493
|
-
/* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
|
|
16494
|
-
size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
|
|
16495
|
-
] })
|
|
16496
|
-
]
|
|
16497
|
-
}
|
|
16498
|
-
) }, index4);
|
|
16499
|
-
};
|
|
16500
|
-
var FileItem = (props) => {
|
|
16501
|
-
const {
|
|
16502
|
-
filename,
|
|
16503
|
-
index: index4,
|
|
16504
|
-
handleRemoveFile,
|
|
16505
|
-
handleFileDownload,
|
|
16506
|
-
src,
|
|
16507
|
-
mimetype,
|
|
16508
|
-
size: size4,
|
|
16509
|
-
useGetImage,
|
|
16510
|
-
id,
|
|
16511
|
-
envFile,
|
|
16512
|
-
accessToken
|
|
16513
|
-
} = props;
|
|
16514
|
-
const fileTypeIcon = {
|
|
16515
|
-
"application/pdf": /* @__PURE__ */ jsx69(PdfIcon, {}),
|
|
16516
|
-
"application/zip": /* @__PURE__ */ jsx69(ZipIcon, {}),
|
|
16517
|
-
"application/x-zip-compressed": /* @__PURE__ */ jsx69(ZipIcon, {}),
|
|
16518
|
-
"application/vnd.ms-excel": /* @__PURE__ */ jsx69(ExcelIcon, {}),
|
|
16519
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx69(ExcelIcon, {})
|
|
16520
|
-
};
|
|
16521
|
-
const renderFile = () => {
|
|
16522
|
-
if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
|
|
16523
|
-
return /* @__PURE__ */ jsx69(ImageItem, { ...props, useGetImage });
|
|
16524
|
-
} else if (mimetype?.includes("video")) {
|
|
16525
|
-
return /* @__PURE__ */ jsx69(VideoPlayer, { ...props });
|
|
16526
|
-
} else {
|
|
16527
|
-
return /* @__PURE__ */ jsxs44(
|
|
16528
|
-
"div",
|
|
16529
|
-
{
|
|
16530
|
-
onClick: (e3) => {
|
|
16531
|
-
if (accessToken) {
|
|
16532
|
-
e3?.stopPropagation();
|
|
16533
|
-
downloadFile(
|
|
16534
|
-
`${envFile}api/v2/web/content/${id}?download=true`,
|
|
16535
|
-
filename,
|
|
16536
|
-
accessToken
|
|
16537
|
-
);
|
|
16538
|
-
}
|
|
16539
|
-
},
|
|
16540
|
-
style: { backgroundColor: "#E5E7EB", cursor: "pointer" },
|
|
16541
|
-
className: "flex items-center p-2 gap-2 overflow-hidden",
|
|
16542
|
-
children: [
|
|
16543
|
-
fileTypeIcon[mimetype],
|
|
16544
|
-
/* @__PURE__ */ jsxs44("div", { children: [
|
|
16545
|
-
/* @__PURE__ */ jsx69("p", { className: "text-[#0A0D14] font-medium", children: filename }),
|
|
16546
|
-
size4 && /* @__PURE__ */ jsx69("span", { className: "text-[12px]", children: formatFileSize(size4) })
|
|
16547
|
-
] })
|
|
16548
|
-
]
|
|
16549
|
-
}
|
|
16550
|
-
);
|
|
16551
|
-
}
|
|
16552
|
-
};
|
|
16553
|
-
return /* @__PURE__ */ jsxs44(
|
|
16554
|
-
"div",
|
|
16555
|
-
{
|
|
16556
|
-
className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit",
|
|
16557
|
-
children: [
|
|
16558
|
-
renderFile(),
|
|
16559
|
-
handleRemoveFile && /* @__PURE__ */ jsx69(
|
|
16560
|
-
"div",
|
|
16561
|
-
{
|
|
16562
|
-
style: {
|
|
16563
|
-
position: "absolute",
|
|
16564
|
-
top: 0,
|
|
16565
|
-
right: 0,
|
|
16566
|
-
backgroundColor: "rgba(0,0,0,0.2)"
|
|
16567
|
-
},
|
|
16568
|
-
onClick: () => handleRemoveFile(index4),
|
|
16569
|
-
className: "cursor-pointer p-2 hidden group-hover:block",
|
|
16570
|
-
children: /* @__PURE__ */ jsx69(DeleteIcon, {})
|
|
16571
|
-
}
|
|
16572
|
-
),
|
|
16573
|
-
!handleRemoveFile && /* @__PURE__ */ jsx69(
|
|
16574
|
-
"span",
|
|
16575
|
-
{
|
|
16576
|
-
style: {
|
|
16577
|
-
position: "absolute",
|
|
16578
|
-
top: 0,
|
|
16579
|
-
right: 0,
|
|
16580
|
-
backgroundColor: "rgba(0,0,0,0.2)",
|
|
16581
|
-
zIndex: 10
|
|
16582
|
-
},
|
|
16583
|
-
onClick: (e3) => handleFileDownload(e3, src, filename),
|
|
16584
|
-
className: "hidden group-hover:block cursor-pointer p-2 text-white ",
|
|
16585
|
-
children: /* @__PURE__ */ jsx69(DownloadIcon, {})
|
|
16586
|
-
}
|
|
16587
|
-
)
|
|
16588
|
-
]
|
|
16589
|
-
},
|
|
16590
|
-
index4
|
|
16591
|
-
);
|
|
16592
|
-
};
|
|
16593
|
-
var downloadFile = async (url, filename, accessToken) => {
|
|
16594
|
-
try {
|
|
16595
|
-
const response = accessToken ? await fetch(url, {
|
|
16596
|
-
method: "GET",
|
|
16597
|
-
headers: {
|
|
16598
|
-
Authorization: `Bearer ${accessToken}`
|
|
16599
|
-
}
|
|
16600
|
-
}) : await fetch(url);
|
|
16601
|
-
if (response.ok) {
|
|
16602
|
-
const blob = await response.blob();
|
|
16603
|
-
const urlBlob = window.URL.createObjectURL(blob);
|
|
16604
|
-
const link = document.createElement("a");
|
|
16605
|
-
link.href = urlBlob;
|
|
16606
|
-
link.download = filename || "downloaded-file";
|
|
16607
|
-
document.body.appendChild(link);
|
|
16608
|
-
link.click();
|
|
16609
|
-
document.body.removeChild(link);
|
|
16610
|
-
window.URL.revokeObjectURL(urlBlob);
|
|
16611
|
-
} else {
|
|
16612
|
-
console.error("File download failed:", response.statusText);
|
|
16613
|
-
}
|
|
16614
|
-
} catch (error2) {
|
|
16615
|
-
console.error("File download failed:", error2);
|
|
16616
|
-
}
|
|
16617
|
-
};
|
|
16618
|
-
var RenderFiles = ({
|
|
16619
|
-
selectedFiles,
|
|
16620
|
-
setSelectedFiles,
|
|
16621
|
-
useGetImage,
|
|
16622
|
-
envFile,
|
|
16623
|
-
accessToken
|
|
16624
|
-
}) => {
|
|
16625
|
-
const handleRemoveFile = (index4) => {
|
|
16626
|
-
if (setSelectedFiles) {
|
|
16627
|
-
const files = selectedFiles.filter((_2, i3) => i3 !== index4);
|
|
16628
|
-
setSelectedFiles(files);
|
|
16629
|
-
}
|
|
16630
|
-
};
|
|
16631
|
-
const handleFileDownload = (e3, url, name2) => {
|
|
16632
|
-
e3.stopPropagation();
|
|
16633
|
-
downloadFile(url, name2);
|
|
16634
|
-
};
|
|
16635
|
-
return /* @__PURE__ */ jsx69("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
|
|
16636
|
-
return /* @__PURE__ */ jsx69("div", { className: "relative group/file", children: /* @__PURE__ */ jsx69(
|
|
16637
|
-
FileItem,
|
|
16638
|
-
{
|
|
16639
|
-
...file,
|
|
16640
|
-
src: file?.datas,
|
|
16641
|
-
filename: file?.display_name ?? file?.name ?? file?.filename,
|
|
16642
|
-
id: file?.id,
|
|
16643
|
-
index: index4,
|
|
16644
|
-
handleRemoveFile: setSelectedFiles && handleRemoveFile,
|
|
16645
|
-
handleFileDownload,
|
|
16646
|
-
useGetImage,
|
|
16647
|
-
envFile,
|
|
16648
|
-
accessToken
|
|
16649
|
-
}
|
|
16650
|
-
) }, file?.id ?? index4);
|
|
16651
|
-
}) });
|
|
16652
|
-
};
|
|
16653
|
-
|
|
16654
16431
|
// node_modules/react-toastify/dist/index.mjs
|
|
16655
16432
|
import { isValidElement as $t } from "react";
|
|
16656
16433
|
import ut, { useEffect as Rt, useLayoutEffect as Bt, useRef as zt } from "react";
|
|
@@ -16837,7 +16614,7 @@ var po = $2(K("zoom"));
|
|
|
16837
16614
|
var uo = $2(K("flip"));
|
|
16838
16615
|
|
|
16839
16616
|
// src/widgets/common/select-files.tsx
|
|
16840
|
-
import { Fragment as Fragment14, jsx as
|
|
16617
|
+
import { Fragment as Fragment14, jsx as jsx69, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
16841
16618
|
var ButtonSelectFiles = ({
|
|
16842
16619
|
fileInputRef,
|
|
16843
16620
|
selectedFiles,
|
|
@@ -16850,7 +16627,8 @@ var ButtonSelectFiles = ({
|
|
|
16850
16627
|
useUploadFile,
|
|
16851
16628
|
env,
|
|
16852
16629
|
service,
|
|
16853
|
-
user
|
|
16630
|
+
user,
|
|
16631
|
+
isText
|
|
16854
16632
|
}) => {
|
|
16855
16633
|
const { t: t3 } = useI18n();
|
|
16856
16634
|
const ALLOWED_TYPES = [
|
|
@@ -16861,8 +16639,7 @@ var ButtonSelectFiles = ({
|
|
|
16861
16639
|
"application/zip",
|
|
16862
16640
|
"application/x-zip-compressed",
|
|
16863
16641
|
"application/vnd.ms-excel",
|
|
16864
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
16865
|
-
"application/json"
|
|
16642
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
|
|
16866
16643
|
];
|
|
16867
16644
|
const MAX_FILE_SIZE = 10 * 1024 * 1024;
|
|
16868
16645
|
const MAX_TOTAL_SIZE = 50 * 1024 * 1024;
|
|
@@ -16941,8 +16718,8 @@ var ButtonSelectFiles = ({
|
|
|
16941
16718
|
await handleUpload(formData, serivce, xNode);
|
|
16942
16719
|
}
|
|
16943
16720
|
};
|
|
16944
|
-
return /* @__PURE__ */
|
|
16945
|
-
isPending ? /* @__PURE__ */
|
|
16721
|
+
return /* @__PURE__ */ jsxs44(Fragment14, { children: [
|
|
16722
|
+
isPending ? /* @__PURE__ */ jsx69(Fragment14, { children: /* @__PURE__ */ jsx69("span", { className: "text-sm text-gray-500", children: t3("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs44(
|
|
16946
16723
|
"button",
|
|
16947
16724
|
{
|
|
16948
16725
|
type: "button",
|
|
@@ -16950,12 +16727,12 @@ var ButtonSelectFiles = ({
|
|
|
16950
16727
|
className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
16951
16728
|
onClick: () => fileInputRef.current.click(),
|
|
16952
16729
|
children: [
|
|
16953
|
-
/* @__PURE__ */
|
|
16954
|
-
/* @__PURE__ */
|
|
16730
|
+
/* @__PURE__ */ jsx69(AttachIcon, {}),
|
|
16731
|
+
isText && /* @__PURE__ */ jsx69("span", { children: t3("upload_file_placeholder") })
|
|
16955
16732
|
]
|
|
16956
16733
|
}
|
|
16957
16734
|
),
|
|
16958
|
-
/* @__PURE__ */
|
|
16735
|
+
/* @__PURE__ */ jsx69(
|
|
16959
16736
|
"input",
|
|
16960
16737
|
{
|
|
16961
16738
|
type: "file",
|
|
@@ -16963,12 +16740,59 @@ var ButtonSelectFiles = ({
|
|
|
16963
16740
|
style: { display: "none" },
|
|
16964
16741
|
onChange: handleOnChange,
|
|
16965
16742
|
multiple: true,
|
|
16966
|
-
accept: ".jpeg,.jpg,.png,.pdf,.
|
|
16743
|
+
accept: ".jpeg,.jpg,.png,.pdf,.mp4,.zip,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, application/vnd.ms-excel"
|
|
16967
16744
|
}
|
|
16968
16745
|
)
|
|
16969
16746
|
] });
|
|
16970
16747
|
};
|
|
16971
16748
|
|
|
16749
|
+
// src/widgets/common/video-player.tsx
|
|
16750
|
+
import { useRef as useRef6, useState as useState10 } from "react";
|
|
16751
|
+
import { jsx as jsx70, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
16752
|
+
var VideoPlayer = ({ src }) => {
|
|
16753
|
+
const [isPlaying, setIsPlaying] = useState10(false);
|
|
16754
|
+
const videoRef = useRef6(null);
|
|
16755
|
+
const handlePlayPause = () => {
|
|
16756
|
+
if (videoRef.current) {
|
|
16757
|
+
if (isPlaying) {
|
|
16758
|
+
videoRef.current.pause();
|
|
16759
|
+
} else {
|
|
16760
|
+
videoRef.current.play();
|
|
16761
|
+
}
|
|
16762
|
+
setIsPlaying(!isPlaying);
|
|
16763
|
+
}
|
|
16764
|
+
};
|
|
16765
|
+
const handleFullScreen = () => {
|
|
16766
|
+
if (videoRef.current) {
|
|
16767
|
+
if (videoRef.current.requestFullscreen) {
|
|
16768
|
+
videoRef.current.requestFullscreen();
|
|
16769
|
+
} else if (videoRef.current.webkitRequestFullscreen) {
|
|
16770
|
+
;
|
|
16771
|
+
videoRef.current.webkitRequestFullscreen();
|
|
16772
|
+
} else if (videoRef.current.msRequestFullscreen) {
|
|
16773
|
+
;
|
|
16774
|
+
videoRef.current.msRequestFullscreen();
|
|
16775
|
+
}
|
|
16776
|
+
}
|
|
16777
|
+
};
|
|
16778
|
+
return /* @__PURE__ */ jsxs45("div", { className: "relative flex aspect-square h-[120px] w-[120px] items-center justify-center overflow-hidden rounded-lg max-sm:h-auto max-sm:w-full", children: [
|
|
16779
|
+
/* @__PURE__ */ jsx70(
|
|
16780
|
+
"video",
|
|
16781
|
+
{
|
|
16782
|
+
ref: videoRef,
|
|
16783
|
+
src,
|
|
16784
|
+
className: "w-full rounded-lg",
|
|
16785
|
+
onClick: handlePlayPause,
|
|
16786
|
+
width: 300,
|
|
16787
|
+
height: 300,
|
|
16788
|
+
children: "Your browser does not support the video tag."
|
|
16789
|
+
}
|
|
16790
|
+
),
|
|
16791
|
+
/* @__PURE__ */ jsx70("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
|
|
16792
|
+
/* @__PURE__ */ jsx70("div", { className: "absolute left-[50%] top-[50%] flex h-8 w-8 -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-full bg-[#FFFFFF33] p-[6px]", children: /* @__PURE__ */ jsx70("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx70(PlayIcon, {}) }) })
|
|
16793
|
+
] });
|
|
16794
|
+
};
|
|
16795
|
+
|
|
16972
16796
|
// src/widgets/basic/avatar-field/avatar.tsx
|
|
16973
16797
|
import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
16974
16798
|
var AvatarField = (props) => {
|
|
@@ -28073,7 +27897,7 @@ function _taggedTemplateLiteral(e3, t3) {
|
|
|
28073
27897
|
|
|
28074
27898
|
// node_modules/react-select/dist/index-641ee5b8.esm.js
|
|
28075
27899
|
import { useContext as useContext9, useRef as useRef13, useState as useState15, useMemo as useMemo7, useCallback as useCallback7, createContext as createContext5 } from "react";
|
|
28076
|
-
import { createPortal as
|
|
27900
|
+
import { createPortal as createPortal4 } from "react-dom";
|
|
28077
27901
|
|
|
28078
27902
|
// node_modules/use-isomorphic-layout-effect/dist/use-isomorphic-layout-effect.esm.js
|
|
28079
27903
|
import { useLayoutEffect as useLayoutEffect4 } from "react";
|
|
@@ -28576,7 +28400,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28576
28400
|
}), innerProps), children);
|
|
28577
28401
|
return jsx81(PortalPlacementContext.Provider, {
|
|
28578
28402
|
value: portalPlacementContext
|
|
28579
|
-
}, appendTo ? /* @__PURE__ */
|
|
28403
|
+
}, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
|
|
28580
28404
|
};
|
|
28581
28405
|
var containerCSS = function containerCSS2(_ref3) {
|
|
28582
28406
|
var isDisabled = _ref3.isDisabled, isRtl = _ref3.isRtl;
|
|
@@ -33416,7 +33240,7 @@ var StatusDropdownField = (props) => {
|
|
|
33416
33240
|
};
|
|
33417
33241
|
|
|
33418
33242
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
33419
|
-
import { createPortal as
|
|
33243
|
+
import { createPortal as createPortal5 } from "react-dom";
|
|
33420
33244
|
import { useEffect as useEffect26 } from "react";
|
|
33421
33245
|
import { jsx as jsx106, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
33422
33246
|
var Many2ManyField = (props) => {
|
|
@@ -33491,7 +33315,7 @@ var Many2ManyField = (props) => {
|
|
|
33491
33315
|
typeof setGroupByList === "function" && setGroupByList(null);
|
|
33492
33316
|
};
|
|
33493
33317
|
}, [selectedTags]);
|
|
33494
|
-
return
|
|
33318
|
+
return createPortal5(
|
|
33495
33319
|
/* @__PURE__ */ jsxs71(
|
|
33496
33320
|
"div",
|
|
33497
33321
|
{
|
|
@@ -34259,7 +34083,6 @@ export {
|
|
|
34259
34083
|
RadioGroupField,
|
|
34260
34084
|
RatingStarField,
|
|
34261
34085
|
RemainingDaysField,
|
|
34262
|
-
RenderFiles,
|
|
34263
34086
|
ResetIcon,
|
|
34264
34087
|
Row,
|
|
34265
34088
|
Search,
|
|
@@ -34281,6 +34104,7 @@ export {
|
|
|
34281
34104
|
TriangleIcon,
|
|
34282
34105
|
UnArchiveIcon,
|
|
34283
34106
|
VectorIcon,
|
|
34107
|
+
VideoIcon,
|
|
34284
34108
|
VideoPlayer,
|
|
34285
34109
|
ZipIcon,
|
|
34286
34110
|
checkIsImageLink,
|