@fctc/sme-widget-ui 1.1.6 → 1.1.8
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/.babelrc +7 -0
- package/dist/.editorconfig +10 -0
- package/dist/.eslintignore +6 -0
- package/dist/.eslintrc.cjs +66 -0
- package/dist/.gitattributes +4 -0
- package/dist/.prettierrc +4 -0
- package/dist/icons.d.mts +1 -5
- package/dist/icons.d.ts +1 -5
- package/dist/icons.js +49 -259
- package/dist/icons.mjs +49 -258
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +962 -843
- package/dist/index.mjs +859 -740
- package/dist/widgets.d.mts +5 -1
- package/dist/widgets.d.ts +5 -1
- package/dist/widgets.js +951 -830
- package/dist/widgets.mjs +848 -728
- package/package.json +1 -1
package/dist/widgets.mjs
CHANGED
|
@@ -5871,16 +5871,16 @@ var AddIcon = () => {
|
|
|
5871
5871
|
"svg",
|
|
5872
5872
|
{
|
|
5873
5873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5874
|
+
width: "16",
|
|
5875
|
+
height: "16",
|
|
5876
|
+
viewBox: "0 0 16 16",
|
|
5874
5877
|
fill: "none",
|
|
5875
|
-
viewBox: "0 0 24 24",
|
|
5876
|
-
stroke: "currentColor",
|
|
5877
5878
|
children: /* @__PURE__ */ jsx3(
|
|
5878
5879
|
"path",
|
|
5879
5880
|
{
|
|
5880
|
-
|
|
5881
|
-
|
|
5882
|
-
|
|
5883
|
-
d: "M12 4v16m8-8H4"
|
|
5881
|
+
d: "M8.09961 4.30078V7.90039H11.7002V8.10059H8.09961V11.7012H7.89941V8.10059H4.2998V7.90039H7.89941V4.30078H8.09961Z",
|
|
5882
|
+
fill: "#060606",
|
|
5883
|
+
stroke: "currentColor"
|
|
5884
5884
|
}
|
|
5885
5885
|
)
|
|
5886
5886
|
}
|
|
@@ -6979,222 +6979,14 @@ var ZipIcon = () => {
|
|
|
6979
6979
|
);
|
|
6980
6980
|
};
|
|
6981
6981
|
|
|
6982
|
-
// src/icons/empty-data.tsx
|
|
6983
|
-
import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
6984
|
-
var EmptyData = ({ className }) => {
|
|
6985
|
-
return /* @__PURE__ */ jsxs18(
|
|
6986
|
-
"svg",
|
|
6987
|
-
{
|
|
6988
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6989
|
-
width: "120",
|
|
6990
|
-
height: "140",
|
|
6991
|
-
viewBox: "0 0 120 140",
|
|
6992
|
-
fill: "none",
|
|
6993
|
-
children: [
|
|
6994
|
-
/* @__PURE__ */ jsxs18("g", { clipPath: "url(#clip0_5603_10527)", children: [
|
|
6995
|
-
/* @__PURE__ */ jsx34("g", { filter: "url(#filter0_d_5603_10527)", children: /* @__PURE__ */ jsx34(
|
|
6996
|
-
"path",
|
|
6997
|
-
{
|
|
6998
|
-
d: "M60 134.613C90.9279 134.613 116 109.541 116 78.6133C116 47.6853 90.9279 22.6133 60 22.6133C29.0721 22.6133 4 47.6853 4 78.6133C4 109.541 29.0721 134.613 60 134.613Z",
|
|
6999
|
-
fill: "black"
|
|
7000
|
-
}
|
|
7001
|
-
) }),
|
|
7002
|
-
/* @__PURE__ */ jsx34(
|
|
7003
|
-
"path",
|
|
7004
|
-
{
|
|
7005
|
-
d: "M60 134.613C90.9279 134.613 116 109.541 116 78.6133C116 47.6853 90.9279 22.6133 60 22.6133C29.0721 22.6133 4 47.6853 4 78.6133C4 109.541 29.0721 134.613 60 134.613Z",
|
|
7006
|
-
fill: className
|
|
7007
|
-
}
|
|
7008
|
-
),
|
|
7009
|
-
/* @__PURE__ */ jsx34(
|
|
7010
|
-
"mask",
|
|
7011
|
-
{
|
|
7012
|
-
id: "mask0_5603_10527",
|
|
7013
|
-
maskUnits: "userSpaceOnUse",
|
|
7014
|
-
x: "4",
|
|
7015
|
-
y: "12",
|
|
7016
|
-
width: "112",
|
|
7017
|
-
height: "123",
|
|
7018
|
-
children: /* @__PURE__ */ jsx34(
|
|
7019
|
-
"path",
|
|
7020
|
-
{
|
|
7021
|
-
d: "M60 134.807C90.9279 134.807 116 109.672 116 78.6667C116 71.6607 116 49.4384 116 12H4C4 35.7741 4 57.9964 4 78.6667C4 109.672 29.0721 134.807 60 134.807Z",
|
|
7022
|
-
fill: "white"
|
|
7023
|
-
}
|
|
7024
|
-
)
|
|
7025
|
-
}
|
|
7026
|
-
),
|
|
7027
|
-
/* @__PURE__ */ jsxs18("g", { mask: "url(#mask0_5603_10527)", children: [
|
|
7028
|
-
/* @__PURE__ */ jsx34(
|
|
7029
|
-
"path",
|
|
7030
|
-
{
|
|
7031
|
-
d: "M26 18.0156H88.3146L104.5 34.557V126.83C104.5 136.219 96.8888 143.83 87.5 143.83H35C25.6112 143.83 18 136.219 18 126.83V26.0156C18 21.5973 21.5817 18.0156 26 18.0156Z",
|
|
7032
|
-
fill: "white"
|
|
7033
|
-
}
|
|
7034
|
-
),
|
|
7035
|
-
/* @__PURE__ */ jsx34(
|
|
7036
|
-
"path",
|
|
7037
|
-
{
|
|
7038
|
-
fillRule: "evenodd",
|
|
7039
|
-
clipRule: "evenodd",
|
|
7040
|
-
d: "M103.5 34.9648L87.894 19.0156H26C22.134 19.0156 19 22.1496 19 26.0156V126.83C19 135.667 26.1634 142.83 35 142.83H87.5C96.3366 142.83 103.5 135.667 103.5 126.83V34.9648Z",
|
|
7041
|
-
stroke: "#A1ACBA",
|
|
7042
|
-
strokeWidth: "2"
|
|
7043
|
-
}
|
|
7044
|
-
)
|
|
7045
|
-
] }),
|
|
7046
|
-
/* @__PURE__ */ jsx34(
|
|
7047
|
-
"mask",
|
|
7048
|
-
{
|
|
7049
|
-
id: "mask1_5603_10527",
|
|
7050
|
-
maskUnits: "userSpaceOnUse",
|
|
7051
|
-
x: "4",
|
|
7052
|
-
y: "12",
|
|
7053
|
-
width: "112",
|
|
7054
|
-
height: "123",
|
|
7055
|
-
children: /* @__PURE__ */ jsx34(
|
|
7056
|
-
"path",
|
|
7057
|
-
{
|
|
7058
|
-
d: "M60 134.807C90.9279 134.807 116 109.672 116 78.6667C116 71.6607 116 49.4384 116 12H4C4 35.7741 4 57.9964 4 78.6667C4 109.672 29.0721 134.807 60 134.807Z",
|
|
7059
|
-
fill: "white"
|
|
7060
|
-
}
|
|
7061
|
-
)
|
|
7062
|
-
}
|
|
7063
|
-
),
|
|
7064
|
-
/* @__PURE__ */ jsx34("g", { mask: "url(#mask1_5603_10527)", children: /* @__PURE__ */ jsx34(
|
|
7065
|
-
"path",
|
|
7066
|
-
{
|
|
7067
|
-
fillRule: "evenodd",
|
|
7068
|
-
clipRule: "evenodd",
|
|
7069
|
-
d: "M88.5551 21.0492C88.4677 24.6469 88.2887 30.1381 88.4772 30.8534C88.6312 31.4377 88.9325 31.8932 89.6508 32.6114C90.0981 33.0588 90.6275 33.3883 91.2851 33.6303C92.3846 34.0348 93.835 34.2036 96.1219 34.2236C96.8735 34.2302 99.5444 34.1863 101.662 34.1562L88.5551 21.0492Z",
|
|
7070
|
-
stroke: "#A1ACBA",
|
|
7071
|
-
strokeWidth: "2"
|
|
7072
|
-
}
|
|
7073
|
-
) }),
|
|
7074
|
-
/* @__PURE__ */ jsx34(
|
|
7075
|
-
"mask",
|
|
7076
|
-
{
|
|
7077
|
-
id: "mask2_5603_10527",
|
|
7078
|
-
maskUnits: "userSpaceOnUse",
|
|
7079
|
-
x: "4",
|
|
7080
|
-
y: "12",
|
|
7081
|
-
width: "112",
|
|
7082
|
-
height: "123",
|
|
7083
|
-
children: /* @__PURE__ */ jsx34(
|
|
7084
|
-
"path",
|
|
7085
|
-
{
|
|
7086
|
-
d: "M60 134.807C90.9279 134.807 116 109.672 116 78.6667C116 71.6607 116 49.4384 116 12H4C4 35.7741 4 57.9964 4 78.6667C4 109.672 29.0721 134.807 60 134.807Z",
|
|
7087
|
-
fill: "white"
|
|
7088
|
-
}
|
|
7089
|
-
)
|
|
7090
|
-
}
|
|
7091
|
-
),
|
|
7092
|
-
/* @__PURE__ */ jsx34("g", { mask: "url(#mask2_5603_10527)", children: /* @__PURE__ */ jsxs18("g", { opacity: "0.07", children: [
|
|
7093
|
-
/* @__PURE__ */ jsx34("path", { d: "M73.716 93H27V99.214H73.716V93Z", fill: "black" }),
|
|
7094
|
-
/* @__PURE__ */ jsx34("path", { d: "M95.812 101.699H27V107.913H95.812V101.699Z", fill: "black" }),
|
|
7095
|
-
/* @__PURE__ */ jsx34("path", { d: "M69.297 113.506H27V119.72H69.297V113.506Z", fill: "black" }),
|
|
7096
|
-
/* @__PURE__ */ jsx34("path", { d: "M79.398 124.07H27V130.284H79.398V124.07Z", fill: "black" })
|
|
7097
|
-
] }) }),
|
|
7098
|
-
/* @__PURE__ */ jsx34(
|
|
7099
|
-
"path",
|
|
7100
|
-
{
|
|
7101
|
-
d: "M17 16L8 7M22 11V2M5 22H14",
|
|
7102
|
-
stroke: "#A1ACBA",
|
|
7103
|
-
strokeWidth: "2",
|
|
7104
|
-
strokeLinecap: "round"
|
|
7105
|
-
}
|
|
7106
|
-
),
|
|
7107
|
-
/* @__PURE__ */ jsx34(
|
|
7108
|
-
"path",
|
|
7109
|
-
{
|
|
7110
|
-
d: "M44 62.998C60.5 71.998 77 62.998 77 62.998",
|
|
7111
|
-
stroke: "#A1ACBA",
|
|
7112
|
-
strokeWidth: "2",
|
|
7113
|
-
strokeLinecap: "round",
|
|
7114
|
-
strokeLinejoin: "round"
|
|
7115
|
-
}
|
|
7116
|
-
),
|
|
7117
|
-
/* @__PURE__ */ jsx34(
|
|
7118
|
-
"path",
|
|
7119
|
-
{
|
|
7120
|
-
d: "M80.5 53.998C82.433 53.998 84 52.431 84 50.498C84 48.5651 82.433 46.998 80.5 46.998C78.567 46.998 77 48.5651 77 50.498C77 52.431 78.567 53.998 80.5 53.998Z",
|
|
7121
|
-
fill: "#A1ACBA"
|
|
7122
|
-
}
|
|
7123
|
-
),
|
|
7124
|
-
/* @__PURE__ */ jsx34(
|
|
7125
|
-
"path",
|
|
7126
|
-
{
|
|
7127
|
-
d: "M40.5 53.998C42.433 53.998 44 52.431 44 50.498C44 48.5651 42.433 46.998 40.5 46.998C38.567 46.998 37 48.5651 37 50.498C37 52.431 38.567 53.998 40.5 53.998Z",
|
|
7128
|
-
fill: "#A1ACBA"
|
|
7129
|
-
}
|
|
7130
|
-
)
|
|
7131
|
-
] }),
|
|
7132
|
-
/* @__PURE__ */ jsxs18("defs", { children: [
|
|
7133
|
-
/* @__PURE__ */ jsxs18(
|
|
7134
|
-
"filter",
|
|
7135
|
-
{
|
|
7136
|
-
id: "filter0_d_5603_10527",
|
|
7137
|
-
x: "0",
|
|
7138
|
-
y: "20.6133",
|
|
7139
|
-
width: "120",
|
|
7140
|
-
height: "120",
|
|
7141
|
-
filterUnits: "userSpaceOnUse",
|
|
7142
|
-
colorInterpolationFilters: "sRGB",
|
|
7143
|
-
children: [
|
|
7144
|
-
/* @__PURE__ */ jsx34("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
|
7145
|
-
/* @__PURE__ */ jsx34(
|
|
7146
|
-
"feColorMatrix",
|
|
7147
|
-
{
|
|
7148
|
-
in: "SourceAlpha",
|
|
7149
|
-
type: "matrix",
|
|
7150
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
7151
|
-
result: "hardAlpha"
|
|
7152
|
-
}
|
|
7153
|
-
),
|
|
7154
|
-
/* @__PURE__ */ jsx34("feOffset", { dy: "2" }),
|
|
7155
|
-
/* @__PURE__ */ jsx34("feGaussianBlur", { stdDeviation: "2" }),
|
|
7156
|
-
/* @__PURE__ */ jsx34(
|
|
7157
|
-
"feColorMatrix",
|
|
7158
|
-
{
|
|
7159
|
-
type: "matrix",
|
|
7160
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.106063 0"
|
|
7161
|
-
}
|
|
7162
|
-
),
|
|
7163
|
-
/* @__PURE__ */ jsx34(
|
|
7164
|
-
"feBlend",
|
|
7165
|
-
{
|
|
7166
|
-
mode: "normal",
|
|
7167
|
-
in2: "BackgroundImageFix",
|
|
7168
|
-
result: "effect1_dropShadow_5603_10527"
|
|
7169
|
-
}
|
|
7170
|
-
),
|
|
7171
|
-
/* @__PURE__ */ jsx34(
|
|
7172
|
-
"feBlend",
|
|
7173
|
-
{
|
|
7174
|
-
mode: "normal",
|
|
7175
|
-
in: "SourceGraphic",
|
|
7176
|
-
in2: "effect1_dropShadow_5603_10527",
|
|
7177
|
-
result: "shape"
|
|
7178
|
-
}
|
|
7179
|
-
)
|
|
7180
|
-
]
|
|
7181
|
-
}
|
|
7182
|
-
),
|
|
7183
|
-
/* @__PURE__ */ jsx34("clipPath", { id: "clip0_5603_10527", children: /* @__PURE__ */ jsx34("rect", { width: "120", height: "140", fill: "white" }) })
|
|
7184
|
-
] })
|
|
7185
|
-
]
|
|
7186
|
-
}
|
|
7187
|
-
);
|
|
7188
|
-
};
|
|
7189
|
-
|
|
7190
6982
|
// src/icons/loading-icon.tsx
|
|
7191
|
-
import { jsx as
|
|
6983
|
+
import { jsx as jsx34, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
7192
6984
|
var LoadingIcon = ({
|
|
7193
6985
|
width = 15,
|
|
7194
6986
|
height = 15,
|
|
7195
6987
|
...props
|
|
7196
6988
|
}) => {
|
|
7197
|
-
return /* @__PURE__ */
|
|
6989
|
+
return /* @__PURE__ */ jsx34(
|
|
7198
6990
|
"svg",
|
|
7199
6991
|
{
|
|
7200
6992
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7209,8 +7001,8 @@ var LoadingIcon = ({
|
|
|
7209
7001
|
background: "transparent"
|
|
7210
7002
|
},
|
|
7211
7003
|
...props,
|
|
7212
|
-
children: /* @__PURE__ */
|
|
7213
|
-
/* @__PURE__ */
|
|
7004
|
+
children: /* @__PURE__ */ jsxs18("g", { children: [
|
|
7005
|
+
/* @__PURE__ */ jsx34(
|
|
7214
7006
|
"circle",
|
|
7215
7007
|
{
|
|
7216
7008
|
strokeDasharray: "141.37166941154067 49.12388980384689",
|
|
@@ -7220,7 +7012,7 @@ var LoadingIcon = ({
|
|
|
7220
7012
|
fill: "none",
|
|
7221
7013
|
cy: "50",
|
|
7222
7014
|
cx: "50",
|
|
7223
|
-
children: /* @__PURE__ */
|
|
7015
|
+
children: /* @__PURE__ */ jsx34(
|
|
7224
7016
|
"animateTransform",
|
|
7225
7017
|
{
|
|
7226
7018
|
keyTimes: "0;1",
|
|
@@ -7233,15 +7025,15 @@ var LoadingIcon = ({
|
|
|
7233
7025
|
)
|
|
7234
7026
|
}
|
|
7235
7027
|
),
|
|
7236
|
-
/* @__PURE__ */
|
|
7028
|
+
/* @__PURE__ */ jsx34("g", {})
|
|
7237
7029
|
] })
|
|
7238
7030
|
}
|
|
7239
7031
|
);
|
|
7240
7032
|
};
|
|
7241
7033
|
|
|
7242
7034
|
// src/icons/paid-icon.tsx
|
|
7243
|
-
import { jsx as
|
|
7244
|
-
var PaidIcon = () => /* @__PURE__ */
|
|
7035
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
7036
|
+
var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
7245
7037
|
"svg",
|
|
7246
7038
|
{
|
|
7247
7039
|
width: "208",
|
|
@@ -7250,15 +7042,15 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7250
7042
|
fill: "none",
|
|
7251
7043
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7252
7044
|
children: [
|
|
7253
|
-
/* @__PURE__ */
|
|
7254
|
-
/* @__PURE__ */
|
|
7045
|
+
/* @__PURE__ */ jsxs19("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
|
|
7046
|
+
/* @__PURE__ */ jsx35(
|
|
7255
7047
|
"path",
|
|
7256
7048
|
{
|
|
7257
7049
|
d: "M188.334 85.5C188.334 132.72 150.126 171 102.994 171C55.8622 171 17.6543 132.72 17.6543 85.5C17.6543 38.2797 55.8622 0 102.994 0C150.126 0 188.334 38.2797 188.334 85.5ZM27.8951 85.5C27.8951 127.054 61.5181 160.74 102.994 160.74C144.47 160.74 178.093 127.054 178.093 85.5C178.093 43.9461 144.47 10.26 102.994 10.26C61.5181 10.26 27.8951 43.9461 27.8951 85.5Z",
|
|
7258
7050
|
fill: "#11A52B"
|
|
7259
7051
|
}
|
|
7260
7052
|
),
|
|
7261
|
-
/* @__PURE__ */
|
|
7053
|
+
/* @__PURE__ */ jsx35(
|
|
7262
7054
|
"path",
|
|
7263
7055
|
{
|
|
7264
7056
|
d: "M174.679 85.4997C174.679 45.8346 142.585 13.6797 102.994 13.6797C63.4033 13.6797 31.3086 45.8346 31.3086 85.4997C31.3086 125.165 63.4033 157.32 102.994 157.32",
|
|
@@ -7266,7 +7058,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7266
7058
|
strokeWidth: "0.773087"
|
|
7267
7059
|
}
|
|
7268
7060
|
),
|
|
7269
|
-
/* @__PURE__ */
|
|
7061
|
+
/* @__PURE__ */ jsx35(
|
|
7270
7062
|
"path",
|
|
7271
7063
|
{
|
|
7272
7064
|
d: "M102.994 35.748C130.416 35.7482 152.651 58.0211 152.651 85.502C152.651 112.983 130.417 135.256 102.994 135.256C75.5717 135.256 53.3359 112.983 53.3359 85.502C53.336 58.021 75.5717 35.748 102.994 35.748Z",
|
|
@@ -7274,7 +7066,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7274
7066
|
strokeWidth: "3.09235"
|
|
7275
7067
|
}
|
|
7276
7068
|
),
|
|
7277
|
-
/* @__PURE__ */
|
|
7069
|
+
/* @__PURE__ */ jsx35(
|
|
7278
7070
|
"path",
|
|
7279
7071
|
{
|
|
7280
7072
|
d: "M58.6172 85.0721C58.6172 109.863 78.6764 129.96 103.421 129.96C128.165 129.96 148.224 109.863 148.224 85.0721C148.224 60.2814 128.165 40.1846 103.421 40.1846",
|
|
@@ -7282,7 +7074,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7282
7074
|
strokeWidth: "0.773087"
|
|
7283
7075
|
}
|
|
7284
7076
|
),
|
|
7285
|
-
/* @__PURE__ */
|
|
7077
|
+
/* @__PURE__ */ jsx35("foreignObject", { x: "-10.1151", y: "14.174", width: "228.426", height: "145.071", children: /* @__PURE__ */ jsx35(
|
|
7286
7078
|
"div",
|
|
7287
7079
|
{
|
|
7288
7080
|
style: {
|
|
@@ -7293,7 +7085,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7293
7085
|
}
|
|
7294
7086
|
}
|
|
7295
7087
|
) }),
|
|
7296
|
-
/* @__PURE__ */
|
|
7088
|
+
/* @__PURE__ */ jsx35(
|
|
7297
7089
|
"rect",
|
|
7298
7090
|
{
|
|
7299
7091
|
"data-figma-bg-blur-radius": "15.4617",
|
|
@@ -7305,7 +7097,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7305
7097
|
fillOpacity: "0.4"
|
|
7306
7098
|
}
|
|
7307
7099
|
),
|
|
7308
|
-
/* @__PURE__ */
|
|
7100
|
+
/* @__PURE__ */ jsx35(
|
|
7309
7101
|
"rect",
|
|
7310
7102
|
{
|
|
7311
7103
|
x: "-0.493769",
|
|
@@ -7318,7 +7110,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7318
7110
|
strokeWidth: "0.773087"
|
|
7319
7111
|
}
|
|
7320
7112
|
),
|
|
7321
|
-
/* @__PURE__ */
|
|
7113
|
+
/* @__PURE__ */ jsx35(
|
|
7322
7114
|
"path",
|
|
7323
7115
|
{
|
|
7324
7116
|
d: "M42.9378 114.799L38.9753 116.182L37.8626 113.135L41.6873 111.8C42.5194 111.509 43.1724 111.124 43.6462 110.644C44.1231 110.157 44.3931 109.544 44.4562 108.806C44.5224 108.061 44.3613 107.157 43.9728 106.093C43.5844 105.029 43.125 104.234 42.5948 103.708C42.0628 103.177 41.4531 102.875 40.7657 102.8C40.0814 102.719 39.3135 102.827 38.4619 103.124L34.6228 104.464L33.5101 101.417L37.5307 100.013C39.0451 99.4847 40.4571 99.3255 41.7668 99.5359C43.0795 99.7397 44.2356 100.291 45.2349 101.191C46.2326 102.085 47.0118 103.3 47.5725 104.836C48.135 106.376 48.3208 107.804 48.13 109.119C47.944 110.432 47.41 111.577 46.5279 112.552C45.644 113.523 44.4474 114.272 42.9378 114.799ZM35.6365 100.675L41.0364 115.462L37.444 116.717L32.0441 101.929L35.6365 100.675ZM32.948 110.544L32.2256 108.566L39.7515 105.938L40.4739 107.917L32.948 110.544ZM55.5834 110.596C54.8722 110.844 54.1977 110.946 53.5601 110.903C52.9254 110.853 52.3606 110.643 51.8655 110.273C51.3735 109.897 50.9939 109.343 50.7267 108.611C50.5017 107.995 50.4207 107.437 50.4838 106.938C50.5468 106.438 50.7211 105.989 51.0066 105.591C51.2922 105.193 51.6595 104.839 52.1086 104.531C52.556 104.217 53.0539 103.937 53.6024 103.692C54.2151 103.412 54.7036 103.174 55.0678 102.976C55.4303 102.774 55.6766 102.582 55.8069 102.401C55.9402 102.213 55.9655 102.006 55.8829 101.78L55.8697 101.744C55.7344 101.373 55.5016 101.132 55.1713 101.019C54.8411 100.906 54.4582 100.926 54.0228 101.078C53.5535 101.242 53.213 101.475 53.0014 101.777C52.7897 102.078 52.7102 102.421 52.7629 102.804L49.4476 103.831C49.2983 103.124 49.3278 102.435 49.536 101.765C49.7473 101.089 50.1508 100.476 50.7464 99.926C51.3451 99.3697 52.1428 98.9175 53.1395 98.5695C53.8507 98.3212 54.5371 98.1766 55.1986 98.1356C55.8583 98.0898 56.4687 98.1481 57.0298 98.3104C57.5892 98.4679 58.0733 98.7331 58.4822 99.1059C58.896 99.4771 59.2101 99.9563 59.4245 100.544L62.1772 108.082L58.8388 109.247L58.2745 107.702L58.1874 107.733C58.1262 108.177 57.9882 108.584 57.7734 108.952C57.5635 109.318 57.2743 109.639 56.9057 109.914C56.5419 110.188 56.1011 110.415 55.5834 110.596ZM55.8356 107.902C56.2178 107.769 56.5332 107.572 56.7817 107.312C57.0351 107.049 57.2046 106.751 57.29 106.418C57.3736 106.079 57.3496 105.729 57.2177 105.368L56.8328 104.314C56.7505 104.403 56.6447 104.494 56.5154 104.588C56.3909 104.68 56.251 104.775 56.0957 104.873C55.9404 104.97 55.7786 105.065 55.6101 105.156C55.4416 105.248 55.2795 105.334 55.1238 105.415C54.8093 105.585 54.5538 105.766 54.3571 105.96C54.1653 106.152 54.039 106.359 53.9783 106.581C53.9206 106.796 53.9357 107.024 54.0236 107.265C54.1572 107.631 54.3897 107.864 54.7213 107.966C55.0577 108.065 55.4292 108.044 55.8356 107.902ZM50.7826 98.0084L48.9267 98.64C48.5699 97.6628 48.5347 96.842 48.8212 96.1775C49.1077 95.5131 49.5863 95.061 50.2571 94.8214C50.6151 94.6964 50.941 94.6478 51.2348 94.6755C51.5317 94.6967 51.805 94.7505 52.0548 94.837C52.3076 94.9169 52.5398 94.9851 52.7513 95.0416C52.966 95.0915 53.17 95.0826 53.3635 95.0151C53.6376 94.914 53.8039 94.7419 53.8624 94.499C53.9241 94.2495 53.8949 93.953 53.775 93.6096L55.6045 92.9953C55.9433 93.9679 55.9736 94.7904 55.6954 95.4628C55.4155 96.1304 54.9426 96.5832 54.2767 96.8211C53.9107 96.9543 53.5785 97.0079 53.2798 96.9819C52.9812 96.9559 52.7103 96.9012 52.4671 96.8178C52.2288 96.7328 52.0047 96.6645 51.795 96.6129C51.5835 96.5565 51.3761 96.5637 51.1729 96.6347C50.9358 96.7174 50.7799 96.8804 50.705 97.1237C50.6284 97.3621 50.6543 97.657 50.7826 98.0084ZM70.9801 92.5039L71.9293 95.1034L64.8969 97.5585L63.9477 94.9591L70.9801 92.5039ZM64.4507 91.7875L67.9995 90.5486L71.7462 100.809C71.8253 101.026 71.9233 101.19 72.0403 101.301C72.1603 101.405 72.2986 101.463 72.4552 101.473C72.61 101.479 72.7817 101.449 72.9704 101.383C73.1059 101.336 73.2442 101.274 73.3854 101.197C73.5297 101.115 73.637 101.05 73.7074 101.004L75.1752 103.365C75.0234 103.472 74.8059 103.616 74.5226 103.796C74.2442 103.975 73.8956 104.148 73.4769 104.316C72.6587 104.645 71.9099 104.798 71.2305 104.775C70.5541 104.745 69.9681 104.537 69.4726 104.151C68.9819 103.763 68.6043 103.192 68.3397 102.438L64.4507 91.7875ZM78.3194 95.3148L80.6291 101.64L77.0802 102.879L71.6804 88.0912L75.1131 86.8928L77.2066 92.626L77.33 92.5829C77.332 91.8115 77.5481 91.1336 77.9784 90.5492C78.4135 89.9631 79.0472 89.5248 79.8794 89.2342C80.6632 88.9606 81.4086 88.8957 82.1158 89.0396C82.8212 89.1787 83.4478 89.5054 83.9956 90.0197C84.5483 90.5323 84.9752 91.2083 85.2762 92.0476L87.8574 99.1165L84.3086 100.356L81.9804 93.9797C81.7603 93.3619 81.4297 92.9345 80.9886 92.6977C80.5476 92.4609 80.0416 92.4422 79.4707 92.6415C79.0981 92.7716 78.799 92.9683 78.5733 93.2316C78.3507 93.4884 78.2141 93.7939 78.1634 94.1481C78.1175 94.5006 78.1695 94.8895 78.3194 95.3148ZM93.2838 97.4338C92.5725 97.6821 91.8981 97.7846 91.2604 97.7413C90.6258 97.6915 90.0609 97.4816 89.5658 97.1117C89.0738 96.7353 88.6942 96.1813 88.427 95.4496C88.202 94.8334 88.121 94.2755 88.1841 93.7759C88.2471 93.2763 88.4214 92.8274 88.707 92.4292C88.9925 92.031 89.3598 91.6775 89.809 91.3688C90.2563 91.0552 90.7543 90.7755 91.3028 90.5297C91.9155 90.2507 92.4039 90.0123 92.7682 89.8146C93.1306 89.6121 93.3769 89.4203 93.5072 89.2391C93.6405 89.0515 93.6658 88.8445 93.5832 88.6183L93.57 88.5822C93.4347 88.2115 93.2019 87.9698 92.8716 87.8572C92.5414 87.7445 92.1585 87.7642 91.7231 87.9162C91.2538 88.0801 90.9133 88.3129 90.7017 88.6148C90.4901 88.9166 90.4106 89.2591 90.4632 89.6424L87.148 90.6695C86.9986 89.9618 87.0281 89.2731 87.2363 88.6034C87.4476 87.9272 87.8511 87.3142 88.4467 86.7643C89.0455 86.2079 89.8432 85.7557 90.8398 85.4078C91.5511 85.1595 92.2374 85.0148 92.8989 84.9739C93.5586 84.9281 94.169 84.9864 94.7301 85.1487C95.2895 85.3062 95.7737 85.5713 96.1826 85.9442C96.5963 86.3153 96.9104 86.7946 97.1248 87.3818L99.8775 94.9202L96.5391 96.0856L95.9748 94.5404L95.8878 94.5708C95.8265 95.0156 95.6885 95.4219 95.4738 95.79C95.2639 96.1563 94.9746 96.4771 94.606 96.7524C94.2422 97.0259 93.8014 97.2531 93.2838 97.4338ZM93.5359 94.7406C93.9181 94.6072 94.2335 94.4102 94.4821 94.1498C94.7355 93.8876 94.9049 93.5897 94.9903 93.2559C95.074 92.9174 95.0499 92.5676 94.918 92.2065L94.5331 91.1523C94.4508 91.2407 94.345 91.332 94.2157 91.4259C94.0912 91.5183 93.9513 91.6132 93.7961 91.7109C93.6408 91.8085 93.4789 91.903 93.3104 91.9944C93.142 92.0857 92.9799 92.1722 92.8242 92.2537C92.5097 92.4232 92.2541 92.6047 92.0574 92.7982C91.8656 92.99 91.7393 93.1969 91.6786 93.4189C91.6209 93.6344 91.636 93.8625 91.7239 94.1032C91.8575 94.469 92.0901 94.7026 92.4217 94.804C92.7581 94.9036 93.1295 94.8825 93.5359 94.7406ZM103.287 86.5984L105.596 92.9236L102.047 94.1626L97.9976 83.0717L101.372 81.8936L102.116 83.9298L102.239 83.8867C102.238 83.1218 102.465 82.443 102.919 81.8501C103.372 81.2524 104.01 80.81 104.832 80.5229C105.616 80.2492 106.36 80.1876 107.064 80.338C107.771 80.4819 108.399 80.811 108.946 81.3253C109.497 81.8331 109.922 82.5043 110.222 83.3387L112.803 90.4077L109.254 91.6467L106.926 85.2709C106.706 84.653 106.373 84.2265 105.927 83.9914C105.486 83.7546 104.985 83.7342 104.423 83.9301C104.051 84.0602 103.752 84.2569 103.526 84.5202C103.303 84.777 103.169 85.0817 103.123 85.4342C103.082 85.785 103.137 86.1731 103.287 86.5984ZM116.239 82.0764L118.549 88.4017L115 89.6406L109.6 74.8528L113.033 73.6544L115.126 79.3876L115.25 79.3445C115.252 78.5731 115.468 77.8952 115.898 77.3108C116.333 76.7247 116.967 76.2864 117.799 75.9958C118.583 75.7222 119.329 75.6573 120.036 75.8012C120.741 75.9403 121.368 76.267 121.916 76.7813C122.468 77.2939 122.895 77.9699 123.196 78.8092L125.777 85.8781L122.228 87.1171L119.9 80.7413C119.68 80.1234 119.35 79.6961 118.908 79.4593C118.467 79.2225 117.961 79.2038 117.391 79.4031C117.018 79.5332 116.719 79.7299 116.493 79.9932C116.271 80.25 116.134 80.5555 116.083 80.9097C116.037 81.2622 116.089 81.6511 116.239 82.0764ZM134.626 70.2843L135.575 72.8837L128.542 75.3389L127.593 72.7394L134.626 70.2843ZM128.096 69.5679L131.645 68.329L135.392 78.5895C135.471 78.8061 135.569 78.9699 135.686 79.0811C135.806 79.1857 135.944 79.2433 136.101 79.2537C136.255 79.2594 136.427 79.2293 136.616 79.1634C136.751 79.1161 136.89 79.0543 137.031 78.9778C137.175 78.8949 137.283 78.8303 137.353 78.784L138.821 81.1454C138.669 81.2526 138.451 81.3964 138.168 81.5767C137.89 81.7554 137.541 81.9286 137.122 82.0965C136.304 82.4255 135.555 82.5784 134.876 82.5551C134.2 82.5253 133.614 82.3174 133.118 81.9314C132.627 81.5437 132.25 80.9726 131.985 80.2183L128.096 69.5679ZM145.646 79.1776C144.476 79.5864 143.382 79.6994 142.366 79.5168C141.354 79.3276 140.463 78.884 139.696 78.1859C138.931 77.4813 138.341 76.561 137.927 75.425C137.51 74.2841 137.37 73.2067 137.507 72.1928C137.647 71.1724 138.049 70.2778 138.712 69.509C139.378 68.7337 140.297 68.1417 141.467 67.7329C142.638 67.3242 143.73 67.2144 144.743 67.4035C145.759 67.5862 146.649 68.0298 147.414 68.7344C148.181 69.4324 148.773 70.3519 149.19 71.4927C149.605 72.6288 149.742 73.707 149.602 74.7275C149.465 75.7414 149.063 76.636 148.397 77.4113C147.734 78.1801 146.817 78.7688 145.646 79.1776ZM144.695 76.5056C145.121 76.3569 145.434 76.1011 145.634 75.7382C145.835 75.3752 145.928 74.9356 145.914 74.4194C145.905 73.9016 145.789 73.3394 145.568 72.7328C145.343 72.1167 145.066 71.6054 144.738 71.199C144.414 70.791 144.057 70.5085 143.667 70.3516C143.277 70.1947 142.869 70.1905 142.444 70.3392C142.003 70.4929 141.678 70.7529 141.468 71.1193C141.263 71.4839 141.165 71.9252 141.174 72.4431C141.188 72.9592 141.308 73.5254 141.533 74.1416C141.754 74.7481 142.027 75.2554 142.35 75.6635C142.679 76.0698 143.04 76.3506 143.435 76.5059C143.835 76.6594 144.255 76.6593 144.695 76.5056ZM156.231 75.4581C155.52 75.7064 154.845 75.8088 154.207 75.7655C153.573 75.7157 153.008 75.5059 152.513 75.136C152.021 74.7596 151.641 74.2055 151.374 73.4738C151.149 72.8577 151.068 72.2998 151.131 71.8002C151.194 71.3005 151.368 70.8516 151.654 70.4534C151.939 70.0552 152.307 69.7018 152.756 69.393C153.203 69.0794 153.701 68.7998 154.25 68.554C154.862 68.275 155.351 68.0366 155.715 67.8389C156.078 67.6364 156.324 67.4445 156.454 67.2634C156.587 67.0757 156.613 66.8688 156.53 66.6425L156.517 66.6064C156.382 66.2358 156.149 65.9941 155.819 65.8814C155.488 65.7688 155.106 65.7885 154.67 65.9405C154.201 66.1043 153.86 66.3372 153.649 66.639C153.437 66.9408 153.358 67.2834 153.41 67.6666L150.095 68.6938C149.946 67.9861 149.975 67.2974 150.183 66.6277C150.395 65.9514 150.798 65.3384 151.394 64.7885C151.992 64.2322 152.79 63.78 153.787 63.432C154.498 63.1837 155.184 63.0391 155.846 62.9981C156.506 62.9523 157.116 63.0106 157.677 63.1729C158.236 63.3304 158.721 63.5956 159.13 63.9684C159.543 64.3396 159.857 64.8188 160.072 65.4061L162.824 72.9444L159.486 74.1099L158.922 72.5647L158.835 72.5951C158.773 73.0398 158.635 73.4462 158.421 73.8142C158.211 74.1806 157.922 74.5014 157.553 74.7766C157.189 75.0502 156.748 75.2773 156.231 75.4581ZM156.483 72.7649C156.865 72.6314 157.18 72.4345 157.429 72.174C157.682 71.9119 157.852 71.6139 157.937 71.2802C158.021 70.9416 157.997 70.5918 157.865 70.2308L157.48 69.1766C157.398 69.265 157.292 69.3562 157.163 69.4502C157.038 69.5425 156.898 69.6375 156.743 69.7351C156.588 69.8327 156.426 69.9272 156.257 70.0186C156.089 70.11 155.927 70.1964 155.771 70.2779C155.457 70.4474 155.201 70.6289 155.004 70.8224C154.813 71.0142 154.686 71.2211 154.626 71.4431C154.568 71.6587 154.583 71.8868 154.671 72.1275C154.804 72.4933 155.037 72.7269 155.369 72.8282C155.705 72.9279 156.076 72.9068 156.483 72.7649ZM152.222 62.5535L152.499 58.7852L155.642 57.6882L154.639 61.7098L152.222 62.5535ZM166.234 64.6226L168.543 70.9479L164.994 72.1868L160.945 61.096L164.319 59.9178L165.063 61.954L165.186 61.911C165.185 61.1461 165.412 60.4672 165.866 59.8744C166.319 59.2767 166.957 58.8343 167.779 58.5471C168.563 58.2735 169.307 58.2119 170.011 58.3623C170.718 58.5062 171.346 58.8353 171.893 59.3496C172.444 59.8574 172.869 60.5285 173.169 61.363L175.75 68.432L172.201 69.6709L169.873 63.2951C169.653 62.6773 169.32 62.2508 168.874 62.0157C168.433 61.7789 167.932 61.7585 167.37 61.9544C166.998 62.0844 166.699 62.2811 166.473 62.5445C166.25 62.8013 166.116 63.106 166.07 63.4585C166.029 63.8093 166.084 64.1973 166.234 64.6226Z",
|
|
@@ -7326,8 +7118,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7326
7118
|
}
|
|
7327
7119
|
)
|
|
7328
7120
|
] }),
|
|
7329
|
-
/* @__PURE__ */
|
|
7330
|
-
/* @__PURE__ */
|
|
7121
|
+
/* @__PURE__ */ jsxs19("defs", { children: [
|
|
7122
|
+
/* @__PURE__ */ jsxs19(
|
|
7331
7123
|
"filter",
|
|
7332
7124
|
{
|
|
7333
7125
|
id: "filter0_d_615_26793",
|
|
@@ -7338,8 +7130,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7338
7130
|
filterUnits: "userSpaceOnUse",
|
|
7339
7131
|
colorInterpolationFilters: "sRGB",
|
|
7340
7132
|
children: [
|
|
7341
|
-
/* @__PURE__ */
|
|
7342
|
-
/* @__PURE__ */
|
|
7133
|
+
/* @__PURE__ */ jsx35("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
7134
|
+
/* @__PURE__ */ jsx35(
|
|
7343
7135
|
"feColorMatrix",
|
|
7344
7136
|
{
|
|
7345
7137
|
in: "SourceAlpha",
|
|
@@ -7348,17 +7140,17 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7348
7140
|
result: "hardAlpha"
|
|
7349
7141
|
}
|
|
7350
7142
|
),
|
|
7351
|
-
/* @__PURE__ */
|
|
7352
|
-
/* @__PURE__ */
|
|
7353
|
-
/* @__PURE__ */
|
|
7354
|
-
/* @__PURE__ */
|
|
7143
|
+
/* @__PURE__ */ jsx35("feOffset", { dy: "4" }),
|
|
7144
|
+
/* @__PURE__ */ jsx35("feGaussianBlur", { stdDeviation: "2" }),
|
|
7145
|
+
/* @__PURE__ */ jsx35("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
7146
|
+
/* @__PURE__ */ jsx35(
|
|
7355
7147
|
"feColorMatrix",
|
|
7356
7148
|
{
|
|
7357
7149
|
type: "matrix",
|
|
7358
7150
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
|
|
7359
7151
|
}
|
|
7360
7152
|
),
|
|
7361
|
-
/* @__PURE__ */
|
|
7153
|
+
/* @__PURE__ */ jsx35(
|
|
7362
7154
|
"feBlend",
|
|
7363
7155
|
{
|
|
7364
7156
|
mode: "normal",
|
|
@@ -7366,7 +7158,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7366
7158
|
result: "effect1_dropShadow_615_26793"
|
|
7367
7159
|
}
|
|
7368
7160
|
),
|
|
7369
|
-
/* @__PURE__ */
|
|
7161
|
+
/* @__PURE__ */ jsx35(
|
|
7370
7162
|
"feBlend",
|
|
7371
7163
|
{
|
|
7372
7164
|
mode: "normal",
|
|
@@ -7378,12 +7170,12 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7378
7170
|
]
|
|
7379
7171
|
}
|
|
7380
7172
|
),
|
|
7381
|
-
/* @__PURE__ */
|
|
7173
|
+
/* @__PURE__ */ jsx35(
|
|
7382
7174
|
"clipPath",
|
|
7383
7175
|
{
|
|
7384
7176
|
id: "bgblur_0_615_26793_clip_path",
|
|
7385
7177
|
transform: "translate(10.1151 -14.174)",
|
|
7386
|
-
children: /* @__PURE__ */
|
|
7178
|
+
children: /* @__PURE__ */ jsx35(
|
|
7387
7179
|
"rect",
|
|
7388
7180
|
{
|
|
7389
7181
|
width: "193.593",
|
|
@@ -7400,9 +7192,9 @@ var PaidIcon = () => /* @__PURE__ */ jsxs20(
|
|
|
7400
7192
|
);
|
|
7401
7193
|
|
|
7402
7194
|
// src/icons/placeholder-icon.tsx
|
|
7403
|
-
import { jsx as
|
|
7195
|
+
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
7404
7196
|
var PlaceHolderIcon = () => {
|
|
7405
|
-
return /* @__PURE__ */
|
|
7197
|
+
return /* @__PURE__ */ jsx36(
|
|
7406
7198
|
"svg",
|
|
7407
7199
|
{
|
|
7408
7200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7411,7 +7203,7 @@ var PlaceHolderIcon = () => {
|
|
|
7411
7203
|
height: "256.000000pt",
|
|
7412
7204
|
viewBox: "0 0 256.000000 256.000000",
|
|
7413
7205
|
preserveAspectRatio: "xMidYMid meet",
|
|
7414
|
-
children: /* @__PURE__ */
|
|
7206
|
+
children: /* @__PURE__ */ jsx36(
|
|
7415
7207
|
"g",
|
|
7416
7208
|
{
|
|
7417
7209
|
transform: "translate(0.000000,256.000000) scale(0.100000,-0.100000)",
|
|
@@ -7424,13 +7216,13 @@ var PlaceHolderIcon = () => {
|
|
|
7424
7216
|
};
|
|
7425
7217
|
|
|
7426
7218
|
// src/icons/google-icon.tsx
|
|
7427
|
-
import { jsx as
|
|
7219
|
+
import { jsx as jsx37, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
7428
7220
|
var GoogleIcon = ({
|
|
7429
7221
|
width = 20,
|
|
7430
7222
|
height = 20,
|
|
7431
7223
|
...props
|
|
7432
7224
|
}) => {
|
|
7433
|
-
return /* @__PURE__ */
|
|
7225
|
+
return /* @__PURE__ */ jsxs20(
|
|
7434
7226
|
"svg",
|
|
7435
7227
|
{
|
|
7436
7228
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7441,28 +7233,28 @@ var GoogleIcon = ({
|
|
|
7441
7233
|
height,
|
|
7442
7234
|
...props,
|
|
7443
7235
|
children: [
|
|
7444
|
-
/* @__PURE__ */
|
|
7236
|
+
/* @__PURE__ */ jsx37(
|
|
7445
7237
|
"path",
|
|
7446
7238
|
{
|
|
7447
7239
|
fill: "#fbc02d",
|
|
7448
7240
|
d: "M43.611,20.083H42V20H24v8h11.303c-1.649,4.657-6.08,8-11.303,8c-6.627,0-12-5.373-12-12 s5.373-12,12-12c3.059,0,5.842,1.154,7.961,3.039l5.657-5.657C34.046,6.053,29.268,4,24,4C12.955,4,4,12.955,4,24s8.955,20,20,20 s20-8.955,20-20C44,22.659,43.862,21.35,43.611,20.083z"
|
|
7449
7241
|
}
|
|
7450
7242
|
),
|
|
7451
|
-
/* @__PURE__ */
|
|
7243
|
+
/* @__PURE__ */ jsx37(
|
|
7452
7244
|
"path",
|
|
7453
7245
|
{
|
|
7454
7246
|
fill: "#e53935",
|
|
7455
7247
|
d: "M6.306,14.691l6.571,4.819C14.655,15.108,18.961,12,24,12c3.059,0,5.842,1.154,7.961,3.039 l5.657-5.657C34.046,6.053,29.268,4,24,4C16.318,4,9.656,8.337,6.306,14.691z"
|
|
7456
7248
|
}
|
|
7457
7249
|
),
|
|
7458
|
-
/* @__PURE__ */
|
|
7250
|
+
/* @__PURE__ */ jsx37(
|
|
7459
7251
|
"path",
|
|
7460
7252
|
{
|
|
7461
7253
|
fill: "#4caf50",
|
|
7462
7254
|
d: "M24,44c5.166,0,9.86-1.977,13.409-5.192l-6.19-5.238C29.211,35.091,26.715,36,24,36 c-5.202,0-9.619-3.317-11.283-7.946l-6.522,5.025C9.505,39.556,16.227,44,24,44z"
|
|
7463
7255
|
}
|
|
7464
7256
|
),
|
|
7465
|
-
/* @__PURE__ */
|
|
7257
|
+
/* @__PURE__ */ jsx37(
|
|
7466
7258
|
"path",
|
|
7467
7259
|
{
|
|
7468
7260
|
fill: "#1565c0",
|
|
@@ -7475,9 +7267,9 @@ var GoogleIcon = ({
|
|
|
7475
7267
|
};
|
|
7476
7268
|
|
|
7477
7269
|
// src/icons/eye-closed-icon.tsx
|
|
7478
|
-
import { jsx as
|
|
7270
|
+
import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
7479
7271
|
var EyeClosedIcon = () => {
|
|
7480
|
-
return /* @__PURE__ */
|
|
7272
|
+
return /* @__PURE__ */ jsxs21(
|
|
7481
7273
|
"svg",
|
|
7482
7274
|
{
|
|
7483
7275
|
width: "20",
|
|
@@ -7486,7 +7278,7 @@ var EyeClosedIcon = () => {
|
|
|
7486
7278
|
fill: "none",
|
|
7487
7279
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7488
7280
|
children: [
|
|
7489
|
-
/* @__PURE__ */
|
|
7281
|
+
/* @__PURE__ */ jsx38(
|
|
7490
7282
|
"path",
|
|
7491
7283
|
{
|
|
7492
7284
|
d: "M2.72904 13.5776C2.02076 12.6574 1.66663 12.1974 1.66663 10.8312C1.66663 9.46507 2.02076 9.00499 2.72904 8.08483C4.14326 6.24752 6.51505 4.16455 9.99996 4.16455C13.4849 4.16455 15.8567 6.24752 17.2709 8.08483C17.9792 9.00499 18.3333 9.46507 18.3333 10.8312C18.3333 12.1974 17.9792 12.6574 17.2709 13.5776C15.8567 15.4149 13.4849 17.4979 9.99996 17.4979C6.51505 17.4979 4.14326 15.4149 2.72904 13.5776Z",
|
|
@@ -7494,7 +7286,7 @@ var EyeClosedIcon = () => {
|
|
|
7494
7286
|
strokeWidth: "1.5"
|
|
7495
7287
|
}
|
|
7496
7288
|
),
|
|
7497
|
-
/* @__PURE__ */
|
|
7289
|
+
/* @__PURE__ */ jsx38(
|
|
7498
7290
|
"path",
|
|
7499
7291
|
{
|
|
7500
7292
|
d: "M12.5 10.8311C12.5 12.2118 11.3807 13.3311 10 13.3311C8.61929 13.3311 7.5 12.2118 7.5 10.8311C7.5 9.45034 8.61929 8.33105 10 8.33105C11.3807 8.33105 12.5 9.45034 12.5 10.8311Z",
|
|
@@ -7502,7 +7294,7 @@ var EyeClosedIcon = () => {
|
|
|
7502
7294
|
strokeWidth: "1.5"
|
|
7503
7295
|
}
|
|
7504
7296
|
),
|
|
7505
|
-
/* @__PURE__ */
|
|
7297
|
+
/* @__PURE__ */ jsx38(
|
|
7506
7298
|
"line",
|
|
7507
7299
|
{
|
|
7508
7300
|
x1: "4",
|
|
@@ -10240,7 +10032,7 @@ var vi_default = {
|
|
|
10240
10032
|
cancel: "H\u1EE7y",
|
|
10241
10033
|
save: "L\u01B0u",
|
|
10242
10034
|
my_profile: "H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",
|
|
10243
|
-
empty_data: "
|
|
10035
|
+
empty_data: "D\u1EEF li\u1EC7u tr\u1ED1ng",
|
|
10244
10036
|
Settings: "C\xE0i \u0111\u1EB7t",
|
|
10245
10037
|
settings: "C\xE0i \u0111\u1EB7t",
|
|
10246
10038
|
payment_method: "Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",
|
|
@@ -11668,7 +11460,7 @@ instance.use(Browser).use(initReactI18next).init({
|
|
|
11668
11460
|
var i18n_default = instance;
|
|
11669
11461
|
|
|
11670
11462
|
// src/widgets/advanced/table/table-group.tsx
|
|
11671
|
-
import { Fragment as Fragment2, jsx as
|
|
11463
|
+
import { Fragment as Fragment2, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
11672
11464
|
var TableGroup = (props) => {
|
|
11673
11465
|
const {
|
|
11674
11466
|
handleExpandChildGroup,
|
|
@@ -11699,42 +11491,42 @@ var TableGroup = (props) => {
|
|
|
11699
11491
|
pageGroup,
|
|
11700
11492
|
setPageGroup
|
|
11701
11493
|
} = props;
|
|
11702
|
-
return /* @__PURE__ */
|
|
11703
|
-
/* @__PURE__ */
|
|
11494
|
+
return /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
11495
|
+
/* @__PURE__ */ jsxs22(
|
|
11704
11496
|
"tr",
|
|
11705
11497
|
{
|
|
11706
11498
|
draggable: true,
|
|
11707
11499
|
className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative z-10",
|
|
11708
11500
|
onClick: handleExpandChildGroup,
|
|
11709
11501
|
children: [
|
|
11710
|
-
/* @__PURE__ */
|
|
11502
|
+
/* @__PURE__ */ jsx39(
|
|
11711
11503
|
"td",
|
|
11712
11504
|
{
|
|
11713
11505
|
colSpan: colEmptyGroup.fromStart ?? 1,
|
|
11714
11506
|
style: { display: "table-cell" },
|
|
11715
11507
|
className: "relative z-20 w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
|
|
11716
|
-
children: /* @__PURE__ */
|
|
11508
|
+
children: /* @__PURE__ */ jsxs22(
|
|
11717
11509
|
"div",
|
|
11718
11510
|
{
|
|
11719
11511
|
style: { paddingLeft: leftPadding },
|
|
11720
11512
|
className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
|
|
11721
11513
|
children: [
|
|
11722
|
-
/* @__PURE__ */
|
|
11723
|
-
/* @__PURE__ */
|
|
11514
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
|
|
11515
|
+
/* @__PURE__ */ jsx39(
|
|
11724
11516
|
TriangleIcon,
|
|
11725
11517
|
{
|
|
11726
11518
|
className: `w-2 h-2 text-button_primary ${isShowGroup && isQueryFetched ? "rotate-180" : "rotate-90"}`
|
|
11727
11519
|
}
|
|
11728
11520
|
),
|
|
11729
|
-
/* @__PURE__ */
|
|
11521
|
+
/* @__PURE__ */ jsx39("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : i18n_default.t("no") }, nameGroupWithCount)
|
|
11730
11522
|
] }),
|
|
11731
|
-
/* @__PURE__ */
|
|
11523
|
+
/* @__PURE__ */ jsx39(
|
|
11732
11524
|
"div",
|
|
11733
11525
|
{
|
|
11734
11526
|
onClick: (e3) => {
|
|
11735
11527
|
e3.stopPropagation();
|
|
11736
11528
|
},
|
|
11737
|
-
children: isShowGroup && dataResponse?.length >= 10 && !dataResponse?.groups && /* @__PURE__ */
|
|
11529
|
+
children: isShowGroup && dataResponse?.length >= 10 && !dataResponse?.groups && /* @__PURE__ */ jsx39(
|
|
11738
11530
|
PaginationView,
|
|
11739
11531
|
{
|
|
11740
11532
|
className: "pagination-bar !bg-transparent absolute z-[100] right-0 top-1/2 -translate-y-1/2",
|
|
@@ -11754,7 +11546,7 @@ var TableGroup = (props) => {
|
|
|
11754
11546
|
),
|
|
11755
11547
|
columns?.map((col) => {
|
|
11756
11548
|
if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
|
|
11757
|
-
return /* @__PURE__ */
|
|
11549
|
+
return /* @__PURE__ */ jsx39(
|
|
11758
11550
|
"td",
|
|
11759
11551
|
{
|
|
11760
11552
|
className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
|
|
@@ -11772,7 +11564,7 @@ var TableGroup = (props) => {
|
|
|
11772
11564
|
]
|
|
11773
11565
|
}
|
|
11774
11566
|
),
|
|
11775
|
-
isShowGroup && (isQueryFetched || isPlaceholderData) && /* @__PURE__ */
|
|
11567
|
+
isShowGroup && (isQueryFetched || isPlaceholderData) && /* @__PURE__ */ jsx39(
|
|
11776
11568
|
TableBodyRow,
|
|
11777
11569
|
{
|
|
11778
11570
|
columns: columnsGroup,
|
|
@@ -11796,7 +11588,7 @@ var TableGroup = (props) => {
|
|
|
11796
11588
|
|
|
11797
11589
|
// src/widgets/advanced/table/table-row.tsx
|
|
11798
11590
|
import { useEffect as useEffect2, useMemo as useMemo3, useRef as useRef2 } from "react";
|
|
11799
|
-
import { Fragment as Fragment3, jsx as
|
|
11591
|
+
import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11800
11592
|
var Row = (props) => {
|
|
11801
11593
|
const {
|
|
11802
11594
|
row,
|
|
@@ -11861,17 +11653,17 @@ var Row = (props) => {
|
|
|
11861
11653
|
false;
|
|
11862
11654
|
}
|
|
11863
11655
|
}, [checkedAll]);
|
|
11864
|
-
return /* @__PURE__ */
|
|
11656
|
+
return /* @__PURE__ */ jsx40(
|
|
11865
11657
|
"tr",
|
|
11866
11658
|
{
|
|
11867
11659
|
"data-row-id": row?.id,
|
|
11868
11660
|
className: `border-b border-[#e8e8e8] cursor-pointer`,
|
|
11869
|
-
children: /* @__PURE__ */
|
|
11870
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
11661
|
+
children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
|
|
11662
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx40(
|
|
11871
11663
|
"td",
|
|
11872
11664
|
{
|
|
11873
11665
|
className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
|
|
11874
|
-
children: /* @__PURE__ */
|
|
11666
|
+
children: /* @__PURE__ */ jsx40(
|
|
11875
11667
|
"input",
|
|
11876
11668
|
{
|
|
11877
11669
|
type: "checkbox",
|
|
@@ -11884,9 +11676,9 @@ var Row = (props) => {
|
|
|
11884
11676
|
),
|
|
11885
11677
|
columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
|
|
11886
11678
|
if (row?.display_type === "line_section" && col.key !== "display_name") {
|
|
11887
|
-
return /* @__PURE__ */
|
|
11679
|
+
return /* @__PURE__ */ jsx40("td", {});
|
|
11888
11680
|
}
|
|
11889
|
-
return /* @__PURE__ */
|
|
11681
|
+
return /* @__PURE__ */ jsx40(
|
|
11890
11682
|
"td",
|
|
11891
11683
|
{
|
|
11892
11684
|
colSpan: 1,
|
|
@@ -11905,7 +11697,7 @@ var Row = (props) => {
|
|
|
11905
11697
|
`${col.name}____${index4}`
|
|
11906
11698
|
);
|
|
11907
11699
|
}),
|
|
11908
|
-
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */
|
|
11700
|
+
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */ jsx40("td", { className: "relative p-2 w-[35px]", children: /* @__PURE__ */ jsx40("div", { className: "h-full w-full flex items-center justify-end cursor-pointer", children: /* @__PURE__ */ jsx40(
|
|
11909
11701
|
"button",
|
|
11910
11702
|
{
|
|
11911
11703
|
type: "button",
|
|
@@ -11913,7 +11705,7 @@ var Row = (props) => {
|
|
|
11913
11705
|
onClick: () => {
|
|
11914
11706
|
onRemoveRow(indexRow);
|
|
11915
11707
|
},
|
|
11916
|
-
children: /* @__PURE__ */
|
|
11708
|
+
children: /* @__PURE__ */ jsx40(DeleteIcon, {})
|
|
11917
11709
|
}
|
|
11918
11710
|
) }) })
|
|
11919
11711
|
] })
|
|
@@ -11923,7 +11715,7 @@ var Row = (props) => {
|
|
|
11923
11715
|
};
|
|
11924
11716
|
|
|
11925
11717
|
// src/widgets/advanced/table/table-body.tsx
|
|
11926
|
-
import { jsx as
|
|
11718
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
11927
11719
|
var TableBodyRow = (props) => {
|
|
11928
11720
|
const {
|
|
11929
11721
|
rows,
|
|
@@ -11945,8 +11737,6 @@ var TableBodyRow = (props) => {
|
|
|
11945
11737
|
onAddRow,
|
|
11946
11738
|
onRemoveRow,
|
|
11947
11739
|
checked,
|
|
11948
|
-
isForm,
|
|
11949
|
-
typeCo,
|
|
11950
11740
|
selectedRowKeys,
|
|
11951
11741
|
tableGroupController,
|
|
11952
11742
|
groupByList,
|
|
@@ -11954,10 +11744,8 @@ var TableBodyRow = (props) => {
|
|
|
11954
11744
|
isAutoSelect,
|
|
11955
11745
|
isEditTable
|
|
11956
11746
|
} = props;
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
return rows && rows?.length > 0 ? rows?.map((row, index4) => {
|
|
11960
|
-
return typeTable === "group" ? /* @__PURE__ */ jsx42(
|
|
11747
|
+
return rows && rows?.length > 0 && rows?.map((row, index4) => {
|
|
11748
|
+
return typeTable === "group" ? /* @__PURE__ */ jsx41(
|
|
11961
11749
|
TableGroup,
|
|
11962
11750
|
{
|
|
11963
11751
|
columns,
|
|
@@ -11981,7 +11769,7 @@ var TableBodyRow = (props) => {
|
|
|
11981
11769
|
selectedRowKeys
|
|
11982
11770
|
},
|
|
11983
11771
|
`record-group-${index4}`
|
|
11984
|
-
) : /* @__PURE__ */
|
|
11772
|
+
) : /* @__PURE__ */ jsx41(
|
|
11985
11773
|
Row,
|
|
11986
11774
|
{
|
|
11987
11775
|
row,
|
|
@@ -12005,20 +11793,11 @@ var TableBodyRow = (props) => {
|
|
|
12005
11793
|
},
|
|
12006
11794
|
`record-${index4}`
|
|
12007
11795
|
);
|
|
12008
|
-
})
|
|
12009
|
-
"div",
|
|
12010
|
-
{
|
|
12011
|
-
className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-2"}`,
|
|
12012
|
-
children: [
|
|
12013
|
-
/* @__PURE__ */ jsx42(EmptyData, { className: colorPrimary }),
|
|
12014
|
-
/* @__PURE__ */ jsx42("div", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
|
|
12015
|
-
]
|
|
12016
|
-
}
|
|
12017
|
-
) }) });
|
|
11796
|
+
});
|
|
12018
11797
|
};
|
|
12019
11798
|
var TableBody = (props) => {
|
|
12020
11799
|
const [isAutoSelect, setIsAutoSelect] = useState2(false);
|
|
12021
|
-
return /* @__PURE__ */
|
|
11800
|
+
return /* @__PURE__ */ jsx41("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx41(
|
|
12022
11801
|
TableBodyRow,
|
|
12023
11802
|
{
|
|
12024
11803
|
...props,
|
|
@@ -12065,7 +11844,7 @@ var useClickOutside = ({
|
|
|
12065
11844
|
};
|
|
12066
11845
|
|
|
12067
11846
|
// src/widgets/advanced/table/table-filter.tsx
|
|
12068
|
-
import { jsx as
|
|
11847
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
12069
11848
|
var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
12070
11849
|
const [openTableFilter, setOpenTableFilter] = useState3();
|
|
12071
11850
|
const [filterPosition, setFilterPosition] = useState3(null);
|
|
@@ -12097,7 +11876,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12097
11876
|
window.removeEventListener("resize", updatePosition);
|
|
12098
11877
|
};
|
|
12099
11878
|
}, [filterRef, openTableFilter]);
|
|
12100
|
-
return /* @__PURE__ */
|
|
11879
|
+
return /* @__PURE__ */ jsxs24(
|
|
12101
11880
|
"div",
|
|
12102
11881
|
{
|
|
12103
11882
|
ref: filterRef,
|
|
@@ -12106,7 +11885,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12106
11885
|
},
|
|
12107
11886
|
className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-[#eff1f2]",
|
|
12108
11887
|
children: [
|
|
12109
|
-
/* @__PURE__ */
|
|
11888
|
+
/* @__PURE__ */ jsx42(
|
|
12110
11889
|
"button",
|
|
12111
11890
|
{
|
|
12112
11891
|
type: "button",
|
|
@@ -12114,7 +11893,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12114
11893
|
onClick: () => {
|
|
12115
11894
|
setOpenTableFilter(!openTableFilter);
|
|
12116
11895
|
},
|
|
12117
|
-
children: /* @__PURE__ */
|
|
11896
|
+
children: /* @__PURE__ */ jsxs24(
|
|
12118
11897
|
"svg",
|
|
12119
11898
|
{
|
|
12120
11899
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12123,42 +11902,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12123
11902
|
viewBox: "0 0 16 16",
|
|
12124
11903
|
fill: "none",
|
|
12125
11904
|
children: [
|
|
12126
|
-
/* @__PURE__ */
|
|
11905
|
+
/* @__PURE__ */ jsx42(
|
|
12127
11906
|
"path",
|
|
12128
11907
|
{
|
|
12129
11908
|
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",
|
|
12130
11909
|
fill: "#1F1F1F"
|
|
12131
11910
|
}
|
|
12132
11911
|
),
|
|
12133
|
-
/* @__PURE__ */
|
|
11912
|
+
/* @__PURE__ */ jsx42(
|
|
12134
11913
|
"path",
|
|
12135
11914
|
{
|
|
12136
11915
|
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",
|
|
12137
11916
|
fill: "#1F1F1F"
|
|
12138
11917
|
}
|
|
12139
11918
|
),
|
|
12140
|
-
/* @__PURE__ */
|
|
11919
|
+
/* @__PURE__ */ jsx42(
|
|
12141
11920
|
"path",
|
|
12142
11921
|
{
|
|
12143
11922
|
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",
|
|
12144
11923
|
fill: "#1F1F1F"
|
|
12145
11924
|
}
|
|
12146
11925
|
),
|
|
12147
|
-
/* @__PURE__ */
|
|
11926
|
+
/* @__PURE__ */ jsx42(
|
|
12148
11927
|
"path",
|
|
12149
11928
|
{
|
|
12150
11929
|
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",
|
|
12151
11930
|
fill: "black"
|
|
12152
11931
|
}
|
|
12153
11932
|
),
|
|
12154
|
-
/* @__PURE__ */
|
|
11933
|
+
/* @__PURE__ */ jsx42(
|
|
12155
11934
|
"path",
|
|
12156
11935
|
{
|
|
12157
11936
|
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",
|
|
12158
11937
|
fill: "black"
|
|
12159
11938
|
}
|
|
12160
11939
|
),
|
|
12161
|
-
/* @__PURE__ */
|
|
11940
|
+
/* @__PURE__ */ jsx42(
|
|
12162
11941
|
"path",
|
|
12163
11942
|
{
|
|
12164
11943
|
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",
|
|
@@ -12171,15 +11950,15 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12171
11950
|
}
|
|
12172
11951
|
),
|
|
12173
11952
|
filterPosition && openTableFilter && createPortal(
|
|
12174
|
-
/* @__PURE__ */
|
|
11953
|
+
/* @__PURE__ */ jsx42(
|
|
12175
11954
|
"div",
|
|
12176
11955
|
{
|
|
12177
11956
|
ref: filterPopupRef,
|
|
12178
11957
|
style: { top: filterPosition?.top, right: filterPosition?.right },
|
|
12179
11958
|
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",
|
|
12180
11959
|
children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
|
|
12181
|
-
return /* @__PURE__ */
|
|
12182
|
-
/* @__PURE__ */
|
|
11960
|
+
return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
|
|
11961
|
+
/* @__PURE__ */ jsx42(
|
|
12183
11962
|
"input",
|
|
12184
11963
|
{
|
|
12185
11964
|
type: "checkbox",
|
|
@@ -12189,7 +11968,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12189
11968
|
className: "cursor-pointer"
|
|
12190
11969
|
}
|
|
12191
11970
|
),
|
|
12192
|
-
/* @__PURE__ */
|
|
11971
|
+
/* @__PURE__ */ jsx42(
|
|
12193
11972
|
"label",
|
|
12194
11973
|
{
|
|
12195
11974
|
htmlFor: `${item.name}`,
|
|
@@ -12209,14 +11988,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12209
11988
|
};
|
|
12210
11989
|
|
|
12211
11990
|
// src/widgets/advanced/table/table-footer.tsx
|
|
12212
|
-
import { jsx as
|
|
11991
|
+
import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
12213
11992
|
var TableFooter = ({ onAddRow, rows }) => {
|
|
12214
11993
|
const emptyData = rows?.length <= 0;
|
|
12215
|
-
return /* @__PURE__ */
|
|
11994
|
+
return /* @__PURE__ */ jsx43("tfoot", { children: /* @__PURE__ */ jsx43("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx43(
|
|
12216
11995
|
"td",
|
|
12217
11996
|
{
|
|
12218
11997
|
className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
|
|
12219
|
-
children: /* @__PURE__ */
|
|
11998
|
+
children: /* @__PURE__ */ jsxs25(
|
|
12220
11999
|
"button",
|
|
12221
12000
|
{
|
|
12222
12001
|
type: "button",
|
|
@@ -12226,7 +12005,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12226
12005
|
},
|
|
12227
12006
|
className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
|
|
12228
12007
|
children: [
|
|
12229
|
-
/* @__PURE__ */
|
|
12008
|
+
/* @__PURE__ */ jsxs25(
|
|
12230
12009
|
"svg",
|
|
12231
12010
|
{
|
|
12232
12011
|
style: {
|
|
@@ -12239,14 +12018,14 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12239
12018
|
viewBox: "0 0 20 20",
|
|
12240
12019
|
fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
12241
12020
|
children: [
|
|
12242
|
-
/* @__PURE__ */
|
|
12021
|
+
/* @__PURE__ */ jsx43(
|
|
12243
12022
|
"path",
|
|
12244
12023
|
{
|
|
12245
12024
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
12246
12025
|
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"
|
|
12247
12026
|
}
|
|
12248
12027
|
),
|
|
12249
|
-
/* @__PURE__ */
|
|
12028
|
+
/* @__PURE__ */ jsx43(
|
|
12250
12029
|
"path",
|
|
12251
12030
|
{
|
|
12252
12031
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
@@ -12265,7 +12044,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12265
12044
|
};
|
|
12266
12045
|
|
|
12267
12046
|
// src/widgets/advanced/table/table-head.tsx
|
|
12268
|
-
import { jsx as
|
|
12047
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12269
12048
|
var TableHead = (props) => {
|
|
12270
12049
|
const {
|
|
12271
12050
|
handleCheckBoxAll,
|
|
@@ -12275,7 +12054,7 @@ var TableHead = (props) => {
|
|
|
12275
12054
|
onRemoveRow,
|
|
12276
12055
|
onToggleColumnOptional
|
|
12277
12056
|
} = props;
|
|
12278
|
-
return /* @__PURE__ */
|
|
12057
|
+
return /* @__PURE__ */ jsx44("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
|
|
12279
12058
|
"tr",
|
|
12280
12059
|
{
|
|
12281
12060
|
style: {
|
|
@@ -12287,11 +12066,11 @@ var TableHead = (props) => {
|
|
|
12287
12066
|
},
|
|
12288
12067
|
className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
|
|
12289
12068
|
children: [
|
|
12290
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
12069
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx44(
|
|
12291
12070
|
"th",
|
|
12292
12071
|
{
|
|
12293
12072
|
className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
|
|
12294
|
-
children: /* @__PURE__ */
|
|
12073
|
+
children: /* @__PURE__ */ jsx44(
|
|
12295
12074
|
"input",
|
|
12296
12075
|
{
|
|
12297
12076
|
type: "checkbox",
|
|
@@ -12303,17 +12082,17 @@ var TableHead = (props) => {
|
|
|
12303
12082
|
}
|
|
12304
12083
|
),
|
|
12305
12084
|
columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
|
|
12306
|
-
return /* @__PURE__ */
|
|
12085
|
+
return /* @__PURE__ */ jsx44(
|
|
12307
12086
|
"th",
|
|
12308
12087
|
{
|
|
12309
12088
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12310
|
-
children: /* @__PURE__ */
|
|
12089
|
+
children: /* @__PURE__ */ jsx44("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full min-w-max group", children: col.title })
|
|
12311
12090
|
},
|
|
12312
12091
|
"table-head-" + index4
|
|
12313
12092
|
);
|
|
12314
12093
|
}),
|
|
12315
|
-
typeof onRemoveRow === "function" && /* @__PURE__ */
|
|
12316
|
-
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */
|
|
12094
|
+
typeof onRemoveRow === "function" && /* @__PURE__ */ jsx44("th", { className: "relative p-2 w-[35px]" }),
|
|
12095
|
+
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx44(
|
|
12317
12096
|
"th",
|
|
12318
12097
|
{
|
|
12319
12098
|
style: {
|
|
@@ -12321,7 +12100,7 @@ var TableHead = (props) => {
|
|
|
12321
12100
|
right: 0
|
|
12322
12101
|
},
|
|
12323
12102
|
className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-[#eff1f2]`,
|
|
12324
|
-
children: /* @__PURE__ */
|
|
12103
|
+
children: /* @__PURE__ */ jsx44(
|
|
12325
12104
|
TableFilter,
|
|
12326
12105
|
{
|
|
12327
12106
|
columns,
|
|
@@ -12335,6 +12114,349 @@ var TableHead = (props) => {
|
|
|
12335
12114
|
) });
|
|
12336
12115
|
};
|
|
12337
12116
|
|
|
12117
|
+
// src/icons/empty-table-icon.tsx
|
|
12118
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12119
|
+
var IcEmptyTable = ({ isForm }) => {
|
|
12120
|
+
return isForm ? /* @__PURE__ */ jsxs27(
|
|
12121
|
+
"svg",
|
|
12122
|
+
{
|
|
12123
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12124
|
+
width: "216",
|
|
12125
|
+
height: "140",
|
|
12126
|
+
viewBox: "0 0 216 140",
|
|
12127
|
+
fill: "none",
|
|
12128
|
+
children: [
|
|
12129
|
+
/* @__PURE__ */ jsxs27("g", { "clip-path": "url(#clip0_2454_28950)", children: [
|
|
12130
|
+
/* @__PURE__ */ jsx45("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
|
|
12131
|
+
/* @__PURE__ */ jsx45(
|
|
12132
|
+
"path",
|
|
12133
|
+
{
|
|
12134
|
+
d: "M64.5 0V140",
|
|
12135
|
+
stroke: "#EEEFF1",
|
|
12136
|
+
"stroke-width": "0.8",
|
|
12137
|
+
"stroke-miterlimit": "10",
|
|
12138
|
+
"stroke-dasharray": "3 3"
|
|
12139
|
+
}
|
|
12140
|
+
),
|
|
12141
|
+
/* @__PURE__ */ jsx45(
|
|
12142
|
+
"path",
|
|
12143
|
+
{
|
|
12144
|
+
d: "M151.5 0V140",
|
|
12145
|
+
stroke: "#EEEFF1",
|
|
12146
|
+
"stroke-width": "0.8",
|
|
12147
|
+
"stroke-miterlimit": "10",
|
|
12148
|
+
"stroke-dasharray": "3 3"
|
|
12149
|
+
}
|
|
12150
|
+
),
|
|
12151
|
+
/* @__PURE__ */ jsx45(
|
|
12152
|
+
"path",
|
|
12153
|
+
{
|
|
12154
|
+
d: "M215.5 24H0.5",
|
|
12155
|
+
stroke: "#EEEFF1",
|
|
12156
|
+
"stroke-width": "0.8",
|
|
12157
|
+
"stroke-miterlimit": "10",
|
|
12158
|
+
"stroke-dasharray": "3 3"
|
|
12159
|
+
}
|
|
12160
|
+
),
|
|
12161
|
+
/* @__PURE__ */ jsx45(
|
|
12162
|
+
"path",
|
|
12163
|
+
{
|
|
12164
|
+
d: "M215.5 50H0.5",
|
|
12165
|
+
stroke: "#EEEFF1",
|
|
12166
|
+
"stroke-width": "0.8",
|
|
12167
|
+
"stroke-miterlimit": "10",
|
|
12168
|
+
"stroke-dasharray": "3 3"
|
|
12169
|
+
}
|
|
12170
|
+
),
|
|
12171
|
+
/* @__PURE__ */ jsx45(
|
|
12172
|
+
"path",
|
|
12173
|
+
{
|
|
12174
|
+
d: "M215.5 88H0.5",
|
|
12175
|
+
stroke: "#EEEFF1",
|
|
12176
|
+
"stroke-width": "0.8",
|
|
12177
|
+
"stroke-miterlimit": "10",
|
|
12178
|
+
"stroke-dasharray": "3 3"
|
|
12179
|
+
}
|
|
12180
|
+
),
|
|
12181
|
+
/* @__PURE__ */ jsx45(
|
|
12182
|
+
"path",
|
|
12183
|
+
{
|
|
12184
|
+
d: "M215.5 114H0.5",
|
|
12185
|
+
stroke: "#EEEFF1",
|
|
12186
|
+
"stroke-width": "0.8",
|
|
12187
|
+
"stroke-miterlimit": "10",
|
|
12188
|
+
"stroke-dasharray": "3 3"
|
|
12189
|
+
}
|
|
12190
|
+
),
|
|
12191
|
+
/* @__PURE__ */ jsx45(
|
|
12192
|
+
"path",
|
|
12193
|
+
{
|
|
12194
|
+
d: "M199.5 0V140",
|
|
12195
|
+
stroke: "#EEEFF1",
|
|
12196
|
+
"stroke-width": "0.8",
|
|
12197
|
+
"stroke-miterlimit": "10"
|
|
12198
|
+
}
|
|
12199
|
+
),
|
|
12200
|
+
/* @__PURE__ */ jsx45(
|
|
12201
|
+
"path",
|
|
12202
|
+
{
|
|
12203
|
+
d: "M16.5 0V140",
|
|
12204
|
+
stroke: "#EEEFF1",
|
|
12205
|
+
"stroke-width": "0.8",
|
|
12206
|
+
"stroke-miterlimit": "10"
|
|
12207
|
+
}
|
|
12208
|
+
),
|
|
12209
|
+
/* @__PURE__ */ jsx45(
|
|
12210
|
+
"path",
|
|
12211
|
+
{
|
|
12212
|
+
d: "M0.5 16H215.5",
|
|
12213
|
+
stroke: "#EEEFF1",
|
|
12214
|
+
"stroke-width": "0.8",
|
|
12215
|
+
"stroke-miterlimit": "10"
|
|
12216
|
+
}
|
|
12217
|
+
),
|
|
12218
|
+
/* @__PURE__ */ jsx45(
|
|
12219
|
+
"path",
|
|
12220
|
+
{
|
|
12221
|
+
d: "M0.5 124H215.5",
|
|
12222
|
+
stroke: "#EEEFF1",
|
|
12223
|
+
"stroke-width": "0.8",
|
|
12224
|
+
"stroke-miterlimit": "10"
|
|
12225
|
+
}
|
|
12226
|
+
),
|
|
12227
|
+
/* @__PURE__ */ jsx45(
|
|
12228
|
+
"path",
|
|
12229
|
+
{
|
|
12230
|
+
opacity: "0.6",
|
|
12231
|
+
d: "M85.3696 59.4442L85.9782 60.2035C86.1008 60.3564 86.3827 60.1962 86.5084 59.9022L87.8918 56.6641",
|
|
12232
|
+
stroke: "#5C5E63",
|
|
12233
|
+
"stroke-width": "0.6",
|
|
12234
|
+
"stroke-linecap": "round",
|
|
12235
|
+
"stroke-linejoin": "round"
|
|
12236
|
+
}
|
|
12237
|
+
),
|
|
12238
|
+
/* @__PURE__ */ jsx45(
|
|
12239
|
+
"path",
|
|
12240
|
+
{
|
|
12241
|
+
opacity: "0.6",
|
|
12242
|
+
d: "M115.636 39.734L94.1971 52.1117C93.5007 52.5139 92.936 53.4918 92.936 54.296V55.0242C92.936 55.8284 93.5007 56.1544 94.1971 55.7523L115.636 43.3745C116.333 42.9724 116.897 41.9944 116.897 41.1902V40.4621C116.897 39.6579 116.333 39.3319 115.636 39.734Z",
|
|
12243
|
+
stroke: "#5C5E63",
|
|
12244
|
+
"stroke-width": "0.6",
|
|
12245
|
+
"stroke-linecap": "round",
|
|
12246
|
+
"stroke-linejoin": "round"
|
|
12247
|
+
}
|
|
12248
|
+
),
|
|
12249
|
+
/* @__PURE__ */ jsx45(
|
|
12250
|
+
"path",
|
|
12251
|
+
{
|
|
12252
|
+
opacity: "0.6",
|
|
12253
|
+
d: "M115.636 52.8395L94.1971 65.2172C93.5007 65.6193 92.936 66.5973 92.936 67.4015V68.1296C92.936 68.9339 93.5007 69.2598 94.1971 68.8577L115.636 56.48C116.333 56.0779 116.897 55.0999 116.897 54.2957V53.5676C116.897 52.7633 116.333 52.4373 115.636 52.8395Z",
|
|
12254
|
+
stroke: "#5C5E63",
|
|
12255
|
+
"stroke-width": "0.6",
|
|
12256
|
+
"stroke-linecap": "round",
|
|
12257
|
+
"stroke-linejoin": "round"
|
|
12258
|
+
}
|
|
12259
|
+
),
|
|
12260
|
+
/* @__PURE__ */ jsx45(
|
|
12261
|
+
"path",
|
|
12262
|
+
{
|
|
12263
|
+
opacity: "0.6",
|
|
12264
|
+
d: "M115.636 65.9449L94.1971 78.3227C93.5007 78.7248 92.936 79.7027 92.936 80.507V81.2351C92.936 82.0393 93.5007 82.3653 94.1971 81.9632L115.636 69.5854C116.333 69.1833 116.897 68.2054 116.897 67.4011V66.673C116.897 65.8688 116.333 65.5428 115.636 65.9449Z",
|
|
12265
|
+
stroke: "#5C5E63",
|
|
12266
|
+
"stroke-width": "0.6",
|
|
12267
|
+
"stroke-linecap": "round",
|
|
12268
|
+
"stroke-linejoin": "round"
|
|
12269
|
+
}
|
|
12270
|
+
),
|
|
12271
|
+
/* @__PURE__ */ jsx45(
|
|
12272
|
+
"path",
|
|
12273
|
+
{
|
|
12274
|
+
opacity: "0.6",
|
|
12275
|
+
d: "M115.636 79.0504L94.1971 91.4281C93.5007 91.8303 92.936 92.8082 92.936 93.6125V94.3406C92.936 95.1448 93.5007 95.4708 94.1971 95.0687L115.636 82.6909C116.333 82.2888 116.897 81.3108 116.897 80.5066V79.7785C116.897 78.9743 116.333 78.6483 115.636 79.0504Z",
|
|
12276
|
+
stroke: "#5C5E63",
|
|
12277
|
+
"stroke-width": "0.6",
|
|
12278
|
+
"stroke-linecap": "round",
|
|
12279
|
+
"stroke-linejoin": "round"
|
|
12280
|
+
}
|
|
12281
|
+
),
|
|
12282
|
+
/* @__PURE__ */ jsx45(
|
|
12283
|
+
"path",
|
|
12284
|
+
{
|
|
12285
|
+
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",
|
|
12286
|
+
fill: "white"
|
|
12287
|
+
}
|
|
12288
|
+
),
|
|
12289
|
+
/* @__PURE__ */ jsx45(
|
|
12290
|
+
"path",
|
|
12291
|
+
{
|
|
12292
|
+
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",
|
|
12293
|
+
stroke: "#9FA1A7",
|
|
12294
|
+
"stroke-width": "0.6",
|
|
12295
|
+
"stroke-linecap": "round",
|
|
12296
|
+
"stroke-linejoin": "round"
|
|
12297
|
+
}
|
|
12298
|
+
),
|
|
12299
|
+
/* @__PURE__ */ jsx45(
|
|
12300
|
+
"path",
|
|
12301
|
+
{
|
|
12302
|
+
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",
|
|
12303
|
+
stroke: "#5C5E63",
|
|
12304
|
+
"stroke-linecap": "round",
|
|
12305
|
+
"stroke-linejoin": "round"
|
|
12306
|
+
}
|
|
12307
|
+
),
|
|
12308
|
+
/* @__PURE__ */ jsx45(
|
|
12309
|
+
"path",
|
|
12310
|
+
{
|
|
12311
|
+
opacity: "0.6",
|
|
12312
|
+
d: "M96.6305 54.2962L96.6305 54.2962C94.541 55.5025 92.8472 58.4364 92.8472 60.8491V60.8491C92.8472 63.2618 94.541 64.2398 96.6305 63.0334L96.6305 63.0334C98.72 61.827 100.414 58.8932 100.414 56.4805V56.4805C100.414 54.0677 98.72 53.0898 96.6305 54.2962Z",
|
|
12313
|
+
stroke: "#5C5E63",
|
|
12314
|
+
"stroke-width": "0.6",
|
|
12315
|
+
"stroke-linecap": "round",
|
|
12316
|
+
"stroke-linejoin": "round"
|
|
12317
|
+
}
|
|
12318
|
+
),
|
|
12319
|
+
/* @__PURE__ */ jsx45(
|
|
12320
|
+
"path",
|
|
12321
|
+
{
|
|
12322
|
+
opacity: "0.6",
|
|
12323
|
+
d: "M95.3696 59.4441L95.9782 60.2034C96.1008 60.3564 96.3827 60.1962 96.5084 59.9021L97.8918 56.6641",
|
|
12324
|
+
stroke: "#5C5E63",
|
|
12325
|
+
"stroke-width": "0.6",
|
|
12326
|
+
"stroke-linecap": "round",
|
|
12327
|
+
"stroke-linejoin": "round"
|
|
12328
|
+
}
|
|
12329
|
+
),
|
|
12330
|
+
/* @__PURE__ */ jsx45(
|
|
12331
|
+
"path",
|
|
12332
|
+
{
|
|
12333
|
+
opacity: "0.6",
|
|
12334
|
+
d: "M96.6305 67.4016L96.6305 67.4016C94.541 68.608 92.8472 71.5418 92.8472 73.9545V73.9546C92.8472 76.3673 94.541 77.3452 96.6305 76.1389L96.6305 76.1389C98.72 74.9325 100.414 71.9987 100.414 69.5859V69.5859C100.414 67.1732 98.72 66.1953 96.6305 67.4016Z",
|
|
12335
|
+
stroke: "#5C5E63",
|
|
12336
|
+
"stroke-width": "0.6",
|
|
12337
|
+
"stroke-linecap": "round",
|
|
12338
|
+
"stroke-linejoin": "round"
|
|
12339
|
+
}
|
|
12340
|
+
),
|
|
12341
|
+
/* @__PURE__ */ jsx45(
|
|
12342
|
+
"path",
|
|
12343
|
+
{
|
|
12344
|
+
opacity: "0.6",
|
|
12345
|
+
d: "M96.6305 80.5071L96.6305 80.5071C94.541 81.7135 92.8472 84.6473 92.8472 87.06V87.06C92.8472 89.4727 94.541 90.4507 96.6305 89.2443L96.6305 89.2443C98.72 88.038 100.414 85.1041 100.414 82.6914V82.6914C100.414 80.2787 98.72 79.3007 96.6305 80.5071Z",
|
|
12346
|
+
stroke: "#5C5E63",
|
|
12347
|
+
"stroke-width": "0.6",
|
|
12348
|
+
"stroke-linecap": "round",
|
|
12349
|
+
"stroke-linejoin": "round"
|
|
12350
|
+
}
|
|
12351
|
+
),
|
|
12352
|
+
/* @__PURE__ */ jsx45(
|
|
12353
|
+
"path",
|
|
12354
|
+
{
|
|
12355
|
+
opacity: "0.6",
|
|
12356
|
+
d: "M96.6305 93.6126L96.6305 93.6126C94.541 94.8189 92.8472 97.7528 92.8472 100.165V100.165C92.8472 102.578 94.541 103.556 96.6305 102.35L96.6305 102.35C98.72 101.143 100.414 98.2096 100.414 95.7969V95.7969C100.414 93.3842 98.72 92.4062 96.6305 93.6126Z",
|
|
12357
|
+
stroke: "#5C5E63",
|
|
12358
|
+
"stroke-width": "0.6",
|
|
12359
|
+
"stroke-linecap": "round",
|
|
12360
|
+
"stroke-linejoin": "round"
|
|
12361
|
+
}
|
|
12362
|
+
),
|
|
12363
|
+
/* @__PURE__ */ jsx45(
|
|
12364
|
+
"path",
|
|
12365
|
+
{
|
|
12366
|
+
opacity: "0.6",
|
|
12367
|
+
d: "M125.636 39.734L104.197 52.1117C103.501 52.5139 102.936 53.4918 102.936 54.296V55.0242C102.936 55.8284 103.501 56.1544 104.197 55.7523L125.636 43.3745C126.333 42.9724 126.897 41.9944 126.897 41.1902V40.4621C126.897 39.6579 126.333 39.3319 125.636 39.734Z",
|
|
12368
|
+
stroke: "#5C5E63",
|
|
12369
|
+
"stroke-width": "0.6",
|
|
12370
|
+
"stroke-linecap": "round",
|
|
12371
|
+
"stroke-linejoin": "round"
|
|
12372
|
+
}
|
|
12373
|
+
),
|
|
12374
|
+
/* @__PURE__ */ jsx45(
|
|
12375
|
+
"path",
|
|
12376
|
+
{
|
|
12377
|
+
opacity: "0.6",
|
|
12378
|
+
d: "M125.636 52.8395L104.197 65.2172C103.501 65.6193 102.936 66.5973 102.936 67.4015V68.1296C102.936 68.9339 103.501 69.2598 104.197 68.8577L125.636 56.48C126.333 56.0779 126.897 55.0999 126.897 54.2957V53.5676C126.897 52.7633 126.333 52.4373 125.636 52.8395Z",
|
|
12379
|
+
stroke: "#5C5E63",
|
|
12380
|
+
"stroke-width": "0.6",
|
|
12381
|
+
"stroke-linecap": "round",
|
|
12382
|
+
"stroke-linejoin": "round"
|
|
12383
|
+
}
|
|
12384
|
+
),
|
|
12385
|
+
/* @__PURE__ */ jsx45(
|
|
12386
|
+
"path",
|
|
12387
|
+
{
|
|
12388
|
+
opacity: "0.6",
|
|
12389
|
+
d: "M125.636 65.9449L104.197 78.3227C103.501 78.7248 102.936 79.7027 102.936 80.507V81.2351C102.936 82.0393 103.501 82.3653 104.197 81.9632L125.636 69.5854C126.333 69.1833 126.897 68.2054 126.897 67.4011V66.673C126.897 65.8688 126.333 65.5428 125.636 65.9449Z",
|
|
12390
|
+
stroke: "#5C5E63",
|
|
12391
|
+
"stroke-width": "0.6",
|
|
12392
|
+
"stroke-linecap": "round",
|
|
12393
|
+
"stroke-linejoin": "round"
|
|
12394
|
+
}
|
|
12395
|
+
),
|
|
12396
|
+
/* @__PURE__ */ jsx45(
|
|
12397
|
+
"path",
|
|
12398
|
+
{
|
|
12399
|
+
opacity: "0.6",
|
|
12400
|
+
d: "M125.636 79.0504L104.197 91.4281C103.501 91.8303 102.936 92.8082 102.936 93.6125V94.3406C102.936 95.1448 103.501 95.4708 104.197 95.0687L125.636 82.6909C126.333 82.2888 126.897 81.3108 126.897 80.5066V79.7785C126.897 78.9743 126.333 78.6483 125.636 79.0504Z",
|
|
12401
|
+
stroke: "#5C5E63",
|
|
12402
|
+
"stroke-width": "0.6",
|
|
12403
|
+
"stroke-linecap": "round",
|
|
12404
|
+
"stroke-linejoin": "round"
|
|
12405
|
+
}
|
|
12406
|
+
),
|
|
12407
|
+
/* @__PURE__ */ jsx45(
|
|
12408
|
+
"path",
|
|
12409
|
+
{
|
|
12410
|
+
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",
|
|
12411
|
+
fill: "white"
|
|
12412
|
+
}
|
|
12413
|
+
),
|
|
12414
|
+
/* @__PURE__ */ jsx45(
|
|
12415
|
+
"path",
|
|
12416
|
+
{
|
|
12417
|
+
"fill-rule": "evenodd",
|
|
12418
|
+
"clip-rule": "evenodd",
|
|
12419
|
+
d: "M105.337 33.9031C105.337 31.8925 106.749 29.4476 108.49 28.4423C110.231 27.437 111.643 28.252 111.643 30.2625C111.643 31.871 112.772 32.523 114.165 31.7188L117.318 29.8985C119.407 28.6921 121.101 29.6701 121.101 32.0828C121.101 32.4849 120.819 32.9739 120.471 33.1749L96.5095 47.0089C96.1612 47.2099 95.8789 47.047 95.8789 46.6448C95.8789 44.2321 97.5728 41.2983 99.6622 40.0919L102.815 38.2717C104.208 37.4674 105.337 35.5115 105.337 33.9031ZM108.49 33.539C109.186 33.1369 109.751 32.1589 109.751 31.3547C109.751 30.5505 109.186 30.2245 108.49 30.6266C107.794 31.0287 107.229 32.0067 107.229 32.8109C107.229 33.6151 107.794 33.9411 108.49 33.539Z",
|
|
12420
|
+
fill: "white"
|
|
12421
|
+
}
|
|
12422
|
+
),
|
|
12423
|
+
/* @__PURE__ */ jsx45(
|
|
12424
|
+
"path",
|
|
12425
|
+
{
|
|
12426
|
+
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",
|
|
12427
|
+
stroke: "#9FA1A7",
|
|
12428
|
+
"stroke-width": "0.6",
|
|
12429
|
+
"stroke-linecap": "round",
|
|
12430
|
+
"stroke-linejoin": "round"
|
|
12431
|
+
}
|
|
12432
|
+
)
|
|
12433
|
+
] }),
|
|
12434
|
+
/* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsx45("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx45(
|
|
12435
|
+
"rect",
|
|
12436
|
+
{
|
|
12437
|
+
width: "215",
|
|
12438
|
+
height: "140",
|
|
12439
|
+
fill: "white",
|
|
12440
|
+
transform: "translate(0.5)"
|
|
12441
|
+
}
|
|
12442
|
+
) }) })
|
|
12443
|
+
]
|
|
12444
|
+
}
|
|
12445
|
+
) : /* @__PURE__ */ jsx45("img", { src: "public/images/empty-table.png", alt: "", className: "w-full" });
|
|
12446
|
+
};
|
|
12447
|
+
|
|
12448
|
+
// src/widgets/advanced/table/empty-table.tsx
|
|
12449
|
+
import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12450
|
+
var EmptyTable = ({ isForm }) => {
|
|
12451
|
+
return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
|
|
12452
|
+
/* @__PURE__ */ jsx46(IcEmptyTable, { isForm }),
|
|
12453
|
+
/* @__PURE__ */ jsxs28("div", { children: [
|
|
12454
|
+
/* @__PURE__ */ jsx46("p", {}),
|
|
12455
|
+
/* @__PURE__ */ jsx46("p", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
|
|
12456
|
+
] })
|
|
12457
|
+
] });
|
|
12458
|
+
};
|
|
12459
|
+
|
|
12338
12460
|
// node_modules/react-hook-form/dist/index.esm.mjs
|
|
12339
12461
|
import React from "react";
|
|
12340
12462
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
@@ -14149,10 +14271,10 @@ function s2(o3, s4, t3) {
|
|
|
14149
14271
|
|
|
14150
14272
|
// src/widgets/advanced/login/shared/button.tsx
|
|
14151
14273
|
import * as React2 from "react";
|
|
14152
|
-
import { jsx as
|
|
14274
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
14153
14275
|
var Button = React2.forwardRef(
|
|
14154
14276
|
({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
|
|
14155
|
-
return /* @__PURE__ */
|
|
14277
|
+
return /* @__PURE__ */ jsx47(
|
|
14156
14278
|
"button",
|
|
14157
14279
|
{
|
|
14158
14280
|
className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
@@ -14162,7 +14284,7 @@ var Button = React2.forwardRef(
|
|
|
14162
14284
|
ref,
|
|
14163
14285
|
type,
|
|
14164
14286
|
...props,
|
|
14165
|
-
children: isLoading ? /* @__PURE__ */
|
|
14287
|
+
children: isLoading ? /* @__PURE__ */ jsx47(LoadingIcon, { width: 20, height: 20 }) : children
|
|
14166
14288
|
}
|
|
14167
14289
|
);
|
|
14168
14290
|
}
|
|
@@ -14171,7 +14293,7 @@ Button.displayName = "Button";
|
|
|
14171
14293
|
|
|
14172
14294
|
// src/widgets/advanced/login/shared/text-input.tsx
|
|
14173
14295
|
import { useState as useState4 } from "react";
|
|
14174
|
-
import { jsx as
|
|
14296
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
14175
14297
|
function TextInput(props) {
|
|
14176
14298
|
const {
|
|
14177
14299
|
className,
|
|
@@ -14188,14 +14310,14 @@ function TextInput(props) {
|
|
|
14188
14310
|
return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
|
|
14189
14311
|
label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
|
|
14190
14312
|
label,
|
|
14191
|
-
required ? /* @__PURE__ */
|
|
14313
|
+
required ? /* @__PURE__ */ jsx48("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
|
|
14192
14314
|
] }),
|
|
14193
14315
|
/* @__PURE__ */ jsxs29(
|
|
14194
14316
|
"div",
|
|
14195
14317
|
{
|
|
14196
14318
|
className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
|
|
14197
14319
|
children: [
|
|
14198
|
-
/* @__PURE__ */
|
|
14320
|
+
/* @__PURE__ */ jsx48(
|
|
14199
14321
|
"input",
|
|
14200
14322
|
{
|
|
14201
14323
|
className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
|
|
@@ -14204,18 +14326,18 @@ function TextInput(props) {
|
|
|
14204
14326
|
...register(name2)
|
|
14205
14327
|
}
|
|
14206
14328
|
),
|
|
14207
|
-
type === "password" && /* @__PURE__ */
|
|
14329
|
+
type === "password" && /* @__PURE__ */ jsx48(
|
|
14208
14330
|
"span",
|
|
14209
14331
|
{
|
|
14210
14332
|
onClick: () => setShowPassword(!showPassword),
|
|
14211
14333
|
className: "focus:outline-none",
|
|
14212
|
-
children: showPassword ? /* @__PURE__ */
|
|
14334
|
+
children: showPassword ? /* @__PURE__ */ jsx48(EyeClosedIcon, {}) : /* @__PURE__ */ jsx48(EyeIcon, {})
|
|
14213
14335
|
}
|
|
14214
14336
|
)
|
|
14215
14337
|
]
|
|
14216
14338
|
}
|
|
14217
14339
|
),
|
|
14218
|
-
errors?.[name2]?.message && /* @__PURE__ */
|
|
14340
|
+
errors?.[name2]?.message && /* @__PURE__ */ jsx48(
|
|
14219
14341
|
"p",
|
|
14220
14342
|
{
|
|
14221
14343
|
className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
|
|
@@ -14227,7 +14349,7 @@ function TextInput(props) {
|
|
|
14227
14349
|
|
|
14228
14350
|
// src/widgets/advanced/login/provider/credential/form-options/index.tsx
|
|
14229
14351
|
import { useEffect as useEffect5 } from "react";
|
|
14230
|
-
import { jsx as
|
|
14352
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
14231
14353
|
var STAY_LOGIN_IN = "stayLoginIn";
|
|
14232
14354
|
function FormOptions({
|
|
14233
14355
|
forgotPasswordUrl,
|
|
@@ -14255,7 +14377,7 @@ function FormOptions({
|
|
|
14255
14377
|
}, []);
|
|
14256
14378
|
return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
|
|
14257
14379
|
/* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
|
|
14258
|
-
/* @__PURE__ */
|
|
14380
|
+
/* @__PURE__ */ jsx49(
|
|
14259
14381
|
"input",
|
|
14260
14382
|
{
|
|
14261
14383
|
checked: stayLoginIn,
|
|
@@ -14264,9 +14386,9 @@ function FormOptions({
|
|
|
14264
14386
|
onChange: handleCheckboxChange
|
|
14265
14387
|
}
|
|
14266
14388
|
),
|
|
14267
|
-
/* @__PURE__ */
|
|
14389
|
+
/* @__PURE__ */ jsx49("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
|
|
14268
14390
|
] }),
|
|
14269
|
-
!hideForgotPassword && /* @__PURE__ */
|
|
14391
|
+
!hideForgotPassword && /* @__PURE__ */ jsx49("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
14270
14392
|
] });
|
|
14271
14393
|
}
|
|
14272
14394
|
|
|
@@ -14282,7 +14404,7 @@ var loginSchema = z.object({
|
|
|
14282
14404
|
});
|
|
14283
14405
|
|
|
14284
14406
|
// src/widgets/advanced/login/provider/credential/index.tsx
|
|
14285
|
-
import { Fragment as Fragment4, jsx as
|
|
14407
|
+
import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
14286
14408
|
var CredentialLogin = (props) => {
|
|
14287
14409
|
const {
|
|
14288
14410
|
shouldRenderDivider,
|
|
@@ -14311,7 +14433,7 @@ var CredentialLogin = (props) => {
|
|
|
14311
14433
|
className: `flex w-full h-fit flex-col gap-10`,
|
|
14312
14434
|
children: [
|
|
14313
14435
|
/* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
|
|
14314
|
-
/* @__PURE__ */
|
|
14436
|
+
/* @__PURE__ */ jsx50(
|
|
14315
14437
|
TextInput,
|
|
14316
14438
|
{
|
|
14317
14439
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14324,7 +14446,7 @@ var CredentialLogin = (props) => {
|
|
|
14324
14446
|
errors
|
|
14325
14447
|
}
|
|
14326
14448
|
),
|
|
14327
|
-
/* @__PURE__ */
|
|
14449
|
+
/* @__PURE__ */ jsx50(
|
|
14328
14450
|
TextInput,
|
|
14329
14451
|
{
|
|
14330
14452
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14337,7 +14459,7 @@ var CredentialLogin = (props) => {
|
|
|
14337
14459
|
errors
|
|
14338
14460
|
}
|
|
14339
14461
|
),
|
|
14340
|
-
/* @__PURE__ */
|
|
14462
|
+
/* @__PURE__ */ jsx50(
|
|
14341
14463
|
FormOptions,
|
|
14342
14464
|
{
|
|
14343
14465
|
forgotPasswordUrl,
|
|
@@ -14347,7 +14469,7 @@ var CredentialLogin = (props) => {
|
|
|
14347
14469
|
}
|
|
14348
14470
|
)
|
|
14349
14471
|
] }),
|
|
14350
|
-
/* @__PURE__ */
|
|
14472
|
+
/* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx50(
|
|
14351
14473
|
Button,
|
|
14352
14474
|
{
|
|
14353
14475
|
type: "submit",
|
|
@@ -14360,14 +14482,14 @@ var CredentialLogin = (props) => {
|
|
|
14360
14482
|
}
|
|
14361
14483
|
),
|
|
14362
14484
|
shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
|
|
14363
|
-
/* @__PURE__ */
|
|
14364
|
-
/* @__PURE__ */
|
|
14485
|
+
/* @__PURE__ */ jsx50("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
|
|
14486
|
+
/* @__PURE__ */ jsx50("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
|
|
14365
14487
|
] })
|
|
14366
14488
|
] });
|
|
14367
14489
|
};
|
|
14368
14490
|
|
|
14369
14491
|
// src/widgets/advanced/login/provider/google/google-btn/index.tsx
|
|
14370
|
-
import { jsx as
|
|
14492
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
14371
14493
|
function GoogleButton(props) {
|
|
14372
14494
|
const { onLoginGoogle, db } = props;
|
|
14373
14495
|
return /* @__PURE__ */ jsxs32(
|
|
@@ -14376,39 +14498,39 @@ function GoogleButton(props) {
|
|
|
14376
14498
|
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",
|
|
14377
14499
|
onClick: () => onLoginGoogle?.(db),
|
|
14378
14500
|
children: [
|
|
14379
|
-
/* @__PURE__ */
|
|
14380
|
-
/* @__PURE__ */
|
|
14501
|
+
/* @__PURE__ */ jsx51(GoogleIcon, { className: "google-icon" }),
|
|
14502
|
+
/* @__PURE__ */ jsx51("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
|
|
14381
14503
|
]
|
|
14382
14504
|
}
|
|
14383
14505
|
);
|
|
14384
14506
|
}
|
|
14385
14507
|
|
|
14386
14508
|
// src/widgets/advanced/login/provider/google/redirect/index.tsx
|
|
14387
|
-
import { Fragment as Fragment5, jsx as
|
|
14509
|
+
import { Fragment as Fragment5, jsx as jsx52 } from "react/jsx-runtime";
|
|
14388
14510
|
function SocialRedirect(props) {
|
|
14389
14511
|
const { db, onLoginSocial } = props;
|
|
14390
14512
|
onLoginSocial && onLoginSocial(String(db));
|
|
14391
|
-
return /* @__PURE__ */
|
|
14513
|
+
return /* @__PURE__ */ jsx52(Fragment5, {});
|
|
14392
14514
|
}
|
|
14393
14515
|
|
|
14394
14516
|
// src/widgets/advanced/login/provider/google/index.tsx
|
|
14395
|
-
import { Fragment as Fragment6, jsx as
|
|
14517
|
+
import { Fragment as Fragment6, jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
14396
14518
|
var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
|
|
14397
14519
|
return /* @__PURE__ */ jsxs33(Fragment6, { children: [
|
|
14398
|
-
/* @__PURE__ */
|
|
14399
|
-
/* @__PURE__ */
|
|
14520
|
+
/* @__PURE__ */ jsx53(GoogleButton, { db, onLoginGoogle }),
|
|
14521
|
+
/* @__PURE__ */ jsx53(SocialRedirect, { db, onLoginSocial })
|
|
14400
14522
|
] });
|
|
14401
14523
|
};
|
|
14402
14524
|
|
|
14403
14525
|
// src/widgets/advanced/login/index.tsx
|
|
14404
|
-
import { jsx as
|
|
14526
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
14405
14527
|
var LoginProviderMapping = {
|
|
14406
14528
|
google: GoogleLogin
|
|
14407
14529
|
};
|
|
14408
14530
|
var Login = (props) => {
|
|
14409
14531
|
const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
|
|
14410
14532
|
return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
|
|
14411
|
-
/* @__PURE__ */
|
|
14533
|
+
/* @__PURE__ */ jsx54(
|
|
14412
14534
|
CredentialLogin,
|
|
14413
14535
|
{
|
|
14414
14536
|
...props,
|
|
@@ -14418,7 +14540,7 @@ var Login = (props) => {
|
|
|
14418
14540
|
),
|
|
14419
14541
|
providers.map((provider, index4) => {
|
|
14420
14542
|
const ProviderComp = LoginProviderMapping[provider];
|
|
14421
|
-
return /* @__PURE__ */
|
|
14543
|
+
return /* @__PURE__ */ jsx54(
|
|
14422
14544
|
ProviderComp,
|
|
14423
14545
|
{
|
|
14424
14546
|
db,
|
|
@@ -14432,7 +14554,7 @@ var Login = (props) => {
|
|
|
14432
14554
|
};
|
|
14433
14555
|
|
|
14434
14556
|
// src/widgets/advanced/search/popup-filter/index.tsx
|
|
14435
|
-
import { jsx as
|
|
14557
|
+
import { jsx as jsx55, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
14436
14558
|
var PopupFilter = ({
|
|
14437
14559
|
handleAddTagSearch,
|
|
14438
14560
|
removeSearchItems,
|
|
@@ -14442,7 +14564,7 @@ var PopupFilter = ({
|
|
|
14442
14564
|
setGroupBy,
|
|
14443
14565
|
fields
|
|
14444
14566
|
}) => {
|
|
14445
|
-
return /* @__PURE__ */
|
|
14567
|
+
return /* @__PURE__ */ jsx55(
|
|
14446
14568
|
"div",
|
|
14447
14569
|
{
|
|
14448
14570
|
style: {
|
|
@@ -14459,15 +14581,15 @@ var PopupFilter = ({
|
|
|
14459
14581
|
children: [
|
|
14460
14582
|
filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
|
|
14461
14583
|
/* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14462
|
-
/* @__PURE__ */
|
|
14463
|
-
/* @__PURE__ */
|
|
14584
|
+
/* @__PURE__ */ jsx55(FilterIcon, { className: "filter-by-icon text-primary" }),
|
|
14585
|
+
/* @__PURE__ */ jsx55("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
|
|
14464
14586
|
] }),
|
|
14465
14587
|
filterBy?.reduce((acc, item, index4, array) => {
|
|
14466
14588
|
const prevItem = array[index4 - 1];
|
|
14467
14589
|
const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
|
|
14468
14590
|
const isExist = item?.active;
|
|
14469
14591
|
if (isDifferentGroup) {
|
|
14470
|
-
acc.push(/* @__PURE__ */
|
|
14592
|
+
acc.push(/* @__PURE__ */ jsx55("hr", { className: "my-2" }, "separator-" + index4));
|
|
14471
14593
|
}
|
|
14472
14594
|
acc.push(
|
|
14473
14595
|
/* @__PURE__ */ jsxs35(
|
|
@@ -14495,8 +14617,8 @@ var PopupFilter = ({
|
|
|
14495
14617
|
});
|
|
14496
14618
|
},
|
|
14497
14619
|
children: [
|
|
14498
|
-
isExist && /* @__PURE__ */
|
|
14499
|
-
/* @__PURE__ */
|
|
14620
|
+
isExist && /* @__PURE__ */ jsx55(CheckIcon, {}),
|
|
14621
|
+
/* @__PURE__ */ jsx55("span", { className: "text-sm", children: item?.string ?? item?.help })
|
|
14500
14622
|
]
|
|
14501
14623
|
},
|
|
14502
14624
|
"filter-" + index4
|
|
@@ -14505,11 +14627,11 @@ var PopupFilter = ({
|
|
|
14505
14627
|
return acc;
|
|
14506
14628
|
}, [])
|
|
14507
14629
|
] }),
|
|
14508
|
-
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */
|
|
14630
|
+
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx55("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
|
|
14509
14631
|
groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
|
|
14510
14632
|
/* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14511
|
-
/* @__PURE__ */
|
|
14512
|
-
/* @__PURE__ */
|
|
14633
|
+
/* @__PURE__ */ jsx55(GroupByIcon, { className: "group-by-icon text-primary" }),
|
|
14634
|
+
/* @__PURE__ */ jsx55("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
|
|
14513
14635
|
] }),
|
|
14514
14636
|
groupBy?.map((item, index4) => {
|
|
14515
14637
|
const isExist = item?.active;
|
|
@@ -14538,8 +14660,8 @@ var PopupFilter = ({
|
|
|
14538
14660
|
},
|
|
14539
14661
|
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)]"}`,
|
|
14540
14662
|
children: [
|
|
14541
|
-
isExist && /* @__PURE__ */
|
|
14542
|
-
/* @__PURE__ */
|
|
14663
|
+
isExist && /* @__PURE__ */ jsx55(CheckIcon, {}),
|
|
14664
|
+
/* @__PURE__ */ jsx55("span", { className: "text-sm", children: item?.string })
|
|
14543
14665
|
]
|
|
14544
14666
|
},
|
|
14545
14667
|
"groupby-" + index4 + 1
|
|
@@ -14558,7 +14680,7 @@ import { useEffect as useEffect6, useState as useState5 } from "react";
|
|
|
14558
14680
|
|
|
14559
14681
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
14560
14682
|
import { Fragment as Fragment7 } from "react";
|
|
14561
|
-
import { Fragment as Fragment8, jsx as
|
|
14683
|
+
import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14562
14684
|
var TagSearch = ({
|
|
14563
14685
|
removeSearchItems,
|
|
14564
14686
|
selectedTags,
|
|
@@ -14573,10 +14695,10 @@ var TagSearch = ({
|
|
|
14573
14695
|
{
|
|
14574
14696
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
14575
14697
|
children: [
|
|
14576
|
-
/* @__PURE__ */
|
|
14577
|
-
/* @__PURE__ */
|
|
14698
|
+
/* @__PURE__ */ jsx56("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__ */ jsx56(FilterIcon, {}) }),
|
|
14699
|
+
/* @__PURE__ */ jsx56("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
|
|
14578
14700
|
return /* @__PURE__ */ jsxs36(Fragment7, { children: [
|
|
14579
|
-
/* @__PURE__ */
|
|
14701
|
+
/* @__PURE__ */ jsx56("span", { children: value }),
|
|
14580
14702
|
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
14581
14703
|
" ",
|
|
14582
14704
|
instance.t("or"),
|
|
@@ -14584,7 +14706,7 @@ var TagSearch = ({
|
|
|
14584
14706
|
] })
|
|
14585
14707
|
] }, idx);
|
|
14586
14708
|
}) }),
|
|
14587
|
-
/* @__PURE__ */
|
|
14709
|
+
/* @__PURE__ */ jsx56(
|
|
14588
14710
|
"button",
|
|
14589
14711
|
{
|
|
14590
14712
|
className: "px-2 text-sm font-bold",
|
|
@@ -14601,7 +14723,7 @@ var TagSearch = ({
|
|
|
14601
14723
|
);
|
|
14602
14724
|
}
|
|
14603
14725
|
},
|
|
14604
|
-
children: /* @__PURE__ */
|
|
14726
|
+
children: /* @__PURE__ */ jsx56(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
14605
14727
|
}
|
|
14606
14728
|
)
|
|
14607
14729
|
]
|
|
@@ -14609,26 +14731,26 @@ var TagSearch = ({
|
|
|
14609
14731
|
"selected-tag-" + index4
|
|
14610
14732
|
);
|
|
14611
14733
|
} else if (tag?.type === "group_by") {
|
|
14612
|
-
return /* @__PURE__ */
|
|
14734
|
+
return /* @__PURE__ */ jsx56(
|
|
14613
14735
|
"div",
|
|
14614
14736
|
{
|
|
14615
14737
|
className: "flex min-h-full overflow-hidden",
|
|
14616
|
-
children: /* @__PURE__ */
|
|
14738
|
+
children: /* @__PURE__ */ jsx56("div", { className: "flex flex-wrap items-center gap-2 align-middle text-[#495057] text-[14px]", children: tag?.values?.length > 0 && tag?.values.map(
|
|
14617
14739
|
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
|
|
14618
14740
|
"div",
|
|
14619
14741
|
{
|
|
14620
14742
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
14621
14743
|
children: [
|
|
14622
|
-
/* @__PURE__ */
|
|
14744
|
+
/* @__PURE__ */ jsx56("div", { className: "bg-primary flex items-center justify-center px-2 text-sm font-semibold leading-[1.5] text-white", children: /* @__PURE__ */ jsx56(GroupByIcon, {}) }),
|
|
14623
14745
|
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment8, { children: [
|
|
14624
|
-
/* @__PURE__ */
|
|
14746
|
+
/* @__PURE__ */ jsx56("span", { children: string }),
|
|
14625
14747
|
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
14626
14748
|
" ",
|
|
14627
14749
|
"> ",
|
|
14628
14750
|
" "
|
|
14629
14751
|
] })
|
|
14630
14752
|
] })),
|
|
14631
|
-
/* @__PURE__ */
|
|
14753
|
+
/* @__PURE__ */ jsx56(
|
|
14632
14754
|
"button",
|
|
14633
14755
|
{
|
|
14634
14756
|
className: "pr-2 text-sm font-bold",
|
|
@@ -14637,7 +14759,7 @@ var TagSearch = ({
|
|
|
14637
14759
|
typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`);
|
|
14638
14760
|
}
|
|
14639
14761
|
},
|
|
14640
|
-
children: /* @__PURE__ */
|
|
14762
|
+
children: /* @__PURE__ */ jsx56(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
14641
14763
|
}
|
|
14642
14764
|
)
|
|
14643
14765
|
]
|
|
@@ -14654,7 +14776,7 @@ var TagSearch = ({
|
|
|
14654
14776
|
};
|
|
14655
14777
|
|
|
14656
14778
|
// src/widgets/advanced/search/search-list/index.tsx
|
|
14657
|
-
import { jsx as
|
|
14779
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14658
14780
|
var SearchList = ({
|
|
14659
14781
|
handleAddTagSearch,
|
|
14660
14782
|
handleMouseEnter,
|
|
@@ -14663,7 +14785,7 @@ var SearchList = ({
|
|
|
14663
14785
|
searchString,
|
|
14664
14786
|
hoveredIndexSearchList
|
|
14665
14787
|
}) => {
|
|
14666
|
-
return /* @__PURE__ */
|
|
14788
|
+
return /* @__PURE__ */ jsx57(
|
|
14667
14789
|
"div",
|
|
14668
14790
|
{
|
|
14669
14791
|
className: `${searchString === "" ? "hidden" : "block"} absolute left-0 right-0 top-[calc(100%_+_5px)] z-[31] w-full overflow-x-auto rounded-[0.25rem] border-none bg-white shadow-lg`,
|
|
@@ -14694,12 +14816,12 @@ var SearchList = ({
|
|
|
14694
14816
|
children: [
|
|
14695
14817
|
instance.t("search"),
|
|
14696
14818
|
" ",
|
|
14697
|
-
/* @__PURE__ */
|
|
14819
|
+
/* @__PURE__ */ jsx57("span", { className: "font-bold", children: searchItem?.title }),
|
|
14698
14820
|
" ",
|
|
14699
14821
|
instance.t("for"),
|
|
14700
14822
|
":",
|
|
14701
14823
|
" ",
|
|
14702
|
-
/* @__PURE__ */
|
|
14824
|
+
/* @__PURE__ */ jsx57("span", { className: "custom-input-result text-primary font-bold italic", children: searchString })
|
|
14703
14825
|
]
|
|
14704
14826
|
},
|
|
14705
14827
|
"header-" + index4 + 1
|
|
@@ -14710,7 +14832,7 @@ var SearchList = ({
|
|
|
14710
14832
|
};
|
|
14711
14833
|
|
|
14712
14834
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
14713
|
-
import { Fragment as Fragment9, jsx as
|
|
14835
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
14714
14836
|
var Search = ({
|
|
14715
14837
|
removeSearchItems,
|
|
14716
14838
|
selectedTags,
|
|
@@ -14813,9 +14935,9 @@ var Search = ({
|
|
|
14813
14935
|
ref: popupFilterRef,
|
|
14814
14936
|
className: `search gap-[8px] p-2 items-center ${selectedRowKeys?.length <= 0 ? "flex" : "hidden"} !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)]`,
|
|
14815
14937
|
children: [
|
|
14816
|
-
/* @__PURE__ */
|
|
14938
|
+
/* @__PURE__ */ jsx58("div", { className: "size-5", children: /* @__PURE__ */ jsx58(SearchIcon, {}) }),
|
|
14817
14939
|
/* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
14818
|
-
/* @__PURE__ */
|
|
14940
|
+
/* @__PURE__ */ jsx58(
|
|
14819
14941
|
TagSearch,
|
|
14820
14942
|
{
|
|
14821
14943
|
removeSearchItems,
|
|
@@ -14824,7 +14946,7 @@ var Search = ({
|
|
|
14824
14946
|
setFilterBy
|
|
14825
14947
|
}
|
|
14826
14948
|
),
|
|
14827
|
-
/* @__PURE__ */
|
|
14949
|
+
/* @__PURE__ */ jsx58(
|
|
14828
14950
|
"input",
|
|
14829
14951
|
{
|
|
14830
14952
|
value: searchString,
|
|
@@ -14837,7 +14959,7 @@ var Search = ({
|
|
|
14837
14959
|
onKeyUp: (e3) => e3.preventDefault()
|
|
14838
14960
|
}
|
|
14839
14961
|
),
|
|
14840
|
-
/* @__PURE__ */
|
|
14962
|
+
/* @__PURE__ */ jsx58(
|
|
14841
14963
|
SearchList,
|
|
14842
14964
|
{
|
|
14843
14965
|
handleAddTagSearch,
|
|
@@ -14856,8 +14978,8 @@ var Search = ({
|
|
|
14856
14978
|
setShowPopupFilter((prev2) => !prev2);
|
|
14857
14979
|
},
|
|
14858
14980
|
children: [
|
|
14859
|
-
/* @__PURE__ */
|
|
14860
|
-
/* @__PURE__ */
|
|
14981
|
+
/* @__PURE__ */ jsx58("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
|
|
14982
|
+
/* @__PURE__ */ jsx58(
|
|
14861
14983
|
ChevronBottomIcon,
|
|
14862
14984
|
{
|
|
14863
14985
|
className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
|
|
@@ -14866,7 +14988,7 @@ var Search = ({
|
|
|
14866
14988
|
]
|
|
14867
14989
|
}
|
|
14868
14990
|
),
|
|
14869
|
-
showPopupFilter && /* @__PURE__ */
|
|
14991
|
+
showPopupFilter && /* @__PURE__ */ jsx58(
|
|
14870
14992
|
PopupFilter,
|
|
14871
14993
|
{
|
|
14872
14994
|
handleAddTagSearch,
|
|
@@ -14885,16 +15007,16 @@ var Search = ({
|
|
|
14885
15007
|
};
|
|
14886
15008
|
|
|
14887
15009
|
// src/widgets/basic/active-badge-field/active-badge.tsx
|
|
14888
|
-
import { Fragment as Fragment10, jsx as
|
|
15010
|
+
import { Fragment as Fragment10, jsx as jsx59 } from "react/jsx-runtime";
|
|
14889
15011
|
var ActiveBadgeField = (props) => {
|
|
14890
15012
|
const {
|
|
14891
15013
|
type,
|
|
14892
15014
|
className
|
|
14893
15015
|
} = props;
|
|
14894
|
-
if (type === void 0) return /* @__PURE__ */
|
|
15016
|
+
if (type === void 0) return /* @__PURE__ */ jsx59(Fragment10, {});
|
|
14895
15017
|
const typeStyle = type ? "text-green-500" : "text-red-500";
|
|
14896
15018
|
const text = type ? i18n_default.t("active") : i18n_default.t("in_active");
|
|
14897
|
-
return /* @__PURE__ */
|
|
15019
|
+
return /* @__PURE__ */ jsx59("div", { className: `${typeStyle} ${className}`, children: text });
|
|
14898
15020
|
};
|
|
14899
15021
|
|
|
14900
15022
|
// node_modules/react-tooltip/dist/react-tooltip.min.mjs
|
|
@@ -16701,14 +16823,14 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
16701
16823
|
// src/widgets/common/modal-layer.tsx
|
|
16702
16824
|
import { Fragment as Fragment11 } from "react";
|
|
16703
16825
|
import { Dialog, DialogPanel, Transition } from "@headlessui/react";
|
|
16704
|
-
import { jsx as
|
|
16826
|
+
import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
16705
16827
|
var ModalLayer = ({
|
|
16706
16828
|
isOpen,
|
|
16707
16829
|
onClose,
|
|
16708
16830
|
title,
|
|
16709
16831
|
children
|
|
16710
16832
|
}) => {
|
|
16711
|
-
return /* @__PURE__ */
|
|
16833
|
+
return /* @__PURE__ */ jsx60(
|
|
16712
16834
|
Transition,
|
|
16713
16835
|
{
|
|
16714
16836
|
show: isOpen,
|
|
@@ -16719,22 +16841,22 @@ var ModalLayer = ({
|
|
|
16719
16841
|
leaveFrom: "transform scale-100 opacity-100",
|
|
16720
16842
|
leaveTo: "transform scale-95 opacity-0",
|
|
16721
16843
|
as: Fragment11,
|
|
16722
|
-
children: /* @__PURE__ */
|
|
16723
|
-
/* @__PURE__ */
|
|
16724
|
-
/* @__PURE__ */
|
|
16844
|
+
children: /* @__PURE__ */ jsx60(Dialog, { onClose, "aria-labelledby": "modal-title", children: /* @__PURE__ */ jsx60(DialogPanel, { children: /* @__PURE__ */ jsxs39("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[500]", children: [
|
|
16845
|
+
/* @__PURE__ */ jsx60("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16846
|
+
/* @__PURE__ */ jsx60("div", { className: "flex items-center justify-center mx-4 absolute inset-0 overflow-auto", children: /* @__PURE__ */ jsxs39("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: [
|
|
16725
16847
|
/* @__PURE__ */ jsxs39(
|
|
16726
16848
|
"div",
|
|
16727
16849
|
{
|
|
16728
16850
|
className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
|
|
16729
16851
|
children: [
|
|
16730
|
-
title && /* @__PURE__ */
|
|
16731
|
-
/* @__PURE__ */
|
|
16852
|
+
title && /* @__PURE__ */ jsx60("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
|
|
16853
|
+
/* @__PURE__ */ jsx60(
|
|
16732
16854
|
"button",
|
|
16733
16855
|
{
|
|
16734
16856
|
onClick: onClose,
|
|
16735
16857
|
"aria-label": "Close",
|
|
16736
16858
|
className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
|
|
16737
|
-
children: /* @__PURE__ */
|
|
16859
|
+
children: /* @__PURE__ */ jsx60(CloseIcon, {})
|
|
16738
16860
|
}
|
|
16739
16861
|
)
|
|
16740
16862
|
]
|
|
@@ -16748,7 +16870,7 @@ var ModalLayer = ({
|
|
|
16748
16870
|
};
|
|
16749
16871
|
|
|
16750
16872
|
// src/widgets/common/modal-confirm.tsx
|
|
16751
|
-
import { jsx as
|
|
16873
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
16752
16874
|
var ModalConfirm = ({
|
|
16753
16875
|
name: name2,
|
|
16754
16876
|
isShowModal,
|
|
@@ -16769,8 +16891,8 @@ var ModalConfirm = ({
|
|
|
16769
16891
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16770
16892
|
disabled: isLoading,
|
|
16771
16893
|
children: [
|
|
16772
|
-
isLoading && /* @__PURE__ */
|
|
16773
|
-
/* @__PURE__ */
|
|
16894
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
16895
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "duplicating" : "duplicate") })
|
|
16774
16896
|
]
|
|
16775
16897
|
}
|
|
16776
16898
|
);
|
|
@@ -16783,8 +16905,8 @@ var ModalConfirm = ({
|
|
|
16783
16905
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16784
16906
|
disabled: isLoading,
|
|
16785
16907
|
children: [
|
|
16786
|
-
isLoading && /* @__PURE__ */
|
|
16787
|
-
/* @__PURE__ */
|
|
16908
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
16909
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "archiving" : "save_archive") })
|
|
16788
16910
|
]
|
|
16789
16911
|
}
|
|
16790
16912
|
);
|
|
@@ -16797,8 +16919,8 @@ var ModalConfirm = ({
|
|
|
16797
16919
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
16798
16920
|
disabled: isLoading,
|
|
16799
16921
|
children: [
|
|
16800
|
-
isLoading && /* @__PURE__ */
|
|
16801
|
-
/* @__PURE__ */
|
|
16922
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
16923
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "unarchiving" : "save_unarchive") })
|
|
16802
16924
|
]
|
|
16803
16925
|
}
|
|
16804
16926
|
);
|
|
@@ -16811,8 +16933,8 @@ var ModalConfirm = ({
|
|
|
16811
16933
|
className: "button-primary flex-1 flex items-center justify-center gap-2",
|
|
16812
16934
|
disabled: isLoading,
|
|
16813
16935
|
children: [
|
|
16814
|
-
isLoading && /* @__PURE__ */
|
|
16815
|
-
/* @__PURE__ */
|
|
16936
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
16937
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "deleting" : "delete_button") })
|
|
16816
16938
|
]
|
|
16817
16939
|
}
|
|
16818
16940
|
);
|
|
@@ -16820,13 +16942,13 @@ var ModalConfirm = ({
|
|
|
16820
16942
|
break;
|
|
16821
16943
|
}
|
|
16822
16944
|
};
|
|
16823
|
-
return /* @__PURE__ */
|
|
16945
|
+
return /* @__PURE__ */ jsx61(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
|
|
16824
16946
|
/* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
|
|
16825
|
-
/* @__PURE__ */
|
|
16826
|
-
/* @__PURE__ */
|
|
16947
|
+
/* @__PURE__ */ jsx61("div", { className: "text-[18px] font-bold", children: title }),
|
|
16948
|
+
/* @__PURE__ */ jsx61("p", { className: "text-[16px]", children: content })
|
|
16827
16949
|
] }),
|
|
16828
16950
|
/* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
|
|
16829
|
-
/* @__PURE__ */
|
|
16951
|
+
/* @__PURE__ */ jsx61(
|
|
16830
16952
|
"button",
|
|
16831
16953
|
{
|
|
16832
16954
|
type: "button",
|
|
@@ -16843,7 +16965,7 @@ var ModalConfirm = ({
|
|
|
16843
16965
|
// src/widgets/common/modal-detail.tsx
|
|
16844
16966
|
import { useState as useState6 } from "react";
|
|
16845
16967
|
import { createPortal as createPortal2 } from "react-dom";
|
|
16846
|
-
import { Fragment as Fragment12, jsx as
|
|
16968
|
+
import { Fragment as Fragment12, jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
16847
16969
|
var ModalDetail = ({
|
|
16848
16970
|
idToolTip,
|
|
16849
16971
|
title,
|
|
@@ -16865,9 +16987,9 @@ var ModalDetail = ({
|
|
|
16865
16987
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
16866
16988
|
};
|
|
16867
16989
|
return createPortal2(
|
|
16868
|
-
/* @__PURE__ */
|
|
16869
|
-
/* @__PURE__ */
|
|
16870
|
-
/* @__PURE__ */
|
|
16990
|
+
/* @__PURE__ */ jsx62(Fragment12, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
16991
|
+
/* @__PURE__ */ jsx62("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
16992
|
+
/* @__PURE__ */ jsx62("div", { className: "absolute inset-0 overflow-auto flex flex-col justify-center items-center px-5", children: /* @__PURE__ */ jsxs41("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: [
|
|
16871
16993
|
/* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
16872
16994
|
/* @__PURE__ */ jsxs41(
|
|
16873
16995
|
"div",
|
|
@@ -16876,7 +16998,7 @@ var ModalDetail = ({
|
|
|
16876
16998
|
className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
|
|
16877
16999
|
children: [
|
|
16878
17000
|
i18n_default.t("detail_button"),
|
|
16879
|
-
/* @__PURE__ */
|
|
17001
|
+
/* @__PURE__ */ jsx62(
|
|
16880
17002
|
"button",
|
|
16881
17003
|
{
|
|
16882
17004
|
onClick: handleNavigateDetail,
|
|
@@ -16887,9 +17009,9 @@ var ModalDetail = ({
|
|
|
16887
17009
|
]
|
|
16888
17010
|
}
|
|
16889
17011
|
),
|
|
16890
|
-
/* @__PURE__ */
|
|
17012
|
+
/* @__PURE__ */ jsx62("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx62(CloseIcon, { className: "h-5 w-5" }) })
|
|
16891
17013
|
] }),
|
|
16892
|
-
/* @__PURE__ */
|
|
17014
|
+
/* @__PURE__ */ jsx62("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
|
|
16893
17015
|
id: idForm,
|
|
16894
17016
|
aid,
|
|
16895
17017
|
model,
|
|
@@ -16904,7 +17026,7 @@ var ModalDetail = ({
|
|
|
16904
17026
|
|
|
16905
17027
|
// src/widgets/common/loading-normal.tsx
|
|
16906
17028
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
16907
|
-
import { jsx as
|
|
17029
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
16908
17030
|
var LayerLoading = () => {
|
|
16909
17031
|
const [activeIndex, setActiveIndex] = useState7(0);
|
|
16910
17032
|
useEffect7(() => {
|
|
@@ -16913,21 +17035,21 @@ var LayerLoading = () => {
|
|
|
16913
17035
|
}, 200);
|
|
16914
17036
|
return () => clearInterval(interval);
|
|
16915
17037
|
}, []);
|
|
16916
|
-
return /* @__PURE__ */
|
|
16917
|
-
/* @__PURE__ */
|
|
17038
|
+
return /* @__PURE__ */ jsx63("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx63("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsxs42("div", { className: "flex justify-center flex-col items-center gap-12", children: [
|
|
17039
|
+
/* @__PURE__ */ jsx63("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx63(
|
|
16918
17040
|
"div",
|
|
16919
17041
|
{
|
|
16920
17042
|
className: `loading-item ${index4 === activeIndex ? "active" : ""}`
|
|
16921
17043
|
},
|
|
16922
17044
|
index4
|
|
16923
17045
|
)) }),
|
|
16924
|
-
/* @__PURE__ */
|
|
17046
|
+
/* @__PURE__ */ jsx63("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: i18n_default.t("loading") })
|
|
16925
17047
|
] }) }) });
|
|
16926
17048
|
};
|
|
16927
17049
|
|
|
16928
17050
|
// src/widgets/common/loading-small.tsx
|
|
16929
17051
|
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
16930
|
-
import { jsx as
|
|
17052
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
16931
17053
|
var LoadingSmall = () => {
|
|
16932
17054
|
const [activeIndex, setActiveIndex] = useState8(0);
|
|
16933
17055
|
useEffect8(() => {
|
|
@@ -16936,7 +17058,7 @@ var LoadingSmall = () => {
|
|
|
16936
17058
|
}, 200);
|
|
16937
17059
|
return () => clearInterval(interval);
|
|
16938
17060
|
}, []);
|
|
16939
|
-
return /* @__PURE__ */
|
|
17061
|
+
return /* @__PURE__ */ jsx64("div", { className: "my-auto flex-1 h-full flex justify-center items-center", children: /* @__PURE__ */ jsx64("div", { className: "flex justify-center items-center", children: /* @__PURE__ */ jsx64("div", { className: "flex justify-center flex-col items-center gap-12", children: /* @__PURE__ */ jsx64("div", { className: "loading-container-small", children: [...Array(4)].map((_2, index4) => /* @__PURE__ */ jsx64(
|
|
16940
17062
|
"div",
|
|
16941
17063
|
{
|
|
16942
17064
|
className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
|
|
@@ -16947,7 +17069,7 @@ var LoadingSmall = () => {
|
|
|
16947
17069
|
|
|
16948
17070
|
// src/widgets/common/video-player.tsx
|
|
16949
17071
|
import { useRef as useRef5, useState as useState9 } from "react";
|
|
16950
|
-
import { jsx as
|
|
17072
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
16951
17073
|
var VideoPlayer = ({ src }) => {
|
|
16952
17074
|
const [isPlaying, setIsPlaying] = useState9(false);
|
|
16953
17075
|
const videoRef = useRef5(null);
|
|
@@ -16975,7 +17097,7 @@ var VideoPlayer = ({ src }) => {
|
|
|
16975
17097
|
}
|
|
16976
17098
|
};
|
|
16977
17099
|
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: [
|
|
16978
|
-
/* @__PURE__ */
|
|
17100
|
+
/* @__PURE__ */ jsx65(
|
|
16979
17101
|
"video",
|
|
16980
17102
|
{
|
|
16981
17103
|
ref: videoRef,
|
|
@@ -16987,20 +17109,20 @@ var VideoPlayer = ({ src }) => {
|
|
|
16987
17109
|
children: "Your browser does not support the video tag."
|
|
16988
17110
|
}
|
|
16989
17111
|
),
|
|
16990
|
-
/* @__PURE__ */
|
|
16991
|
-
/* @__PURE__ */
|
|
17112
|
+
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
|
|
17113
|
+
/* @__PURE__ */ jsx65("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__ */ jsx65("button", { type: "button", onClick: handleFullScreen, children: /* @__PURE__ */ jsx65(PlayIcon, {}) }) })
|
|
16992
17114
|
] });
|
|
16993
17115
|
};
|
|
16994
17116
|
|
|
16995
17117
|
// src/widgets/common/render-files.tsx
|
|
16996
|
-
import { jsx as
|
|
17118
|
+
import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
16997
17119
|
var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
|
|
16998
17120
|
const { data: image } = useGetImage({
|
|
16999
17121
|
data: { filename, checksum },
|
|
17000
17122
|
queryKey: [`get-image-${""}`],
|
|
17001
17123
|
src
|
|
17002
17124
|
});
|
|
17003
|
-
return /* @__PURE__ */
|
|
17125
|
+
return /* @__PURE__ */ jsx66("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx66(
|
|
17004
17126
|
"img",
|
|
17005
17127
|
{
|
|
17006
17128
|
src: image || src,
|
|
@@ -17021,23 +17143,23 @@ var FileItem = (props) => {
|
|
|
17021
17143
|
useGetImage
|
|
17022
17144
|
} = props;
|
|
17023
17145
|
const fileTypeIcon = {
|
|
17024
|
-
"application/pdf": /* @__PURE__ */
|
|
17025
|
-
"application/zip": /* @__PURE__ */
|
|
17026
|
-
"application/x-zip-compressed": /* @__PURE__ */
|
|
17027
|
-
"application/vnd.ms-excel": /* @__PURE__ */
|
|
17028
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */
|
|
17146
|
+
"application/pdf": /* @__PURE__ */ jsx66(PdfIcon, {}),
|
|
17147
|
+
"application/zip": /* @__PURE__ */ jsx66(ZipIcon, {}),
|
|
17148
|
+
"application/x-zip-compressed": /* @__PURE__ */ jsx66(ZipIcon, {}),
|
|
17149
|
+
"application/vnd.ms-excel": /* @__PURE__ */ jsx66(ExcelIcon, {}),
|
|
17150
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx66(ExcelIcon, {})
|
|
17029
17151
|
};
|
|
17030
17152
|
const renderFile = () => {
|
|
17031
17153
|
if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
|
|
17032
|
-
return /* @__PURE__ */
|
|
17154
|
+
return /* @__PURE__ */ jsx66(ImageItem, { ...props });
|
|
17033
17155
|
} else if (mimetype?.includes("video")) {
|
|
17034
|
-
return /* @__PURE__ */
|
|
17156
|
+
return /* @__PURE__ */ jsx66(VideoPlayer, { ...props });
|
|
17035
17157
|
} else {
|
|
17036
17158
|
return /* @__PURE__ */ jsxs44("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
|
|
17037
17159
|
fileTypeIcon[mimetype],
|
|
17038
17160
|
/* @__PURE__ */ jsxs44("div", { children: [
|
|
17039
|
-
/* @__PURE__ */
|
|
17040
|
-
/* @__PURE__ */
|
|
17161
|
+
/* @__PURE__ */ jsx66("p", { className: "text-[#0A0D14] font-medium", children: filename }),
|
|
17162
|
+
/* @__PURE__ */ jsx66("span", { className: "text-[12px]", children: formatFileSize(size4) })
|
|
17041
17163
|
] })
|
|
17042
17164
|
] });
|
|
17043
17165
|
}
|
|
@@ -17048,20 +17170,20 @@ var FileItem = (props) => {
|
|
|
17048
17170
|
className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
|
|
17049
17171
|
children: [
|
|
17050
17172
|
renderFile(),
|
|
17051
|
-
handleRemoveFile && /* @__PURE__ */
|
|
17173
|
+
handleRemoveFile && /* @__PURE__ */ jsx66(
|
|
17052
17174
|
"div",
|
|
17053
17175
|
{
|
|
17054
17176
|
onClick: () => handleRemoveFile(index4),
|
|
17055
17177
|
className: "cursor-pointer absolute right-0 top-0 p-2 hidden group-hover/file:block bg-[rgba(0,0,0,0.2)]",
|
|
17056
|
-
children: /* @__PURE__ */
|
|
17178
|
+
children: /* @__PURE__ */ jsx66(DeleteIcon, {})
|
|
17057
17179
|
}
|
|
17058
17180
|
),
|
|
17059
|
-
!handleRemoveFile && /* @__PURE__ */
|
|
17181
|
+
!handleRemoveFile && /* @__PURE__ */ jsx66(
|
|
17060
17182
|
"span",
|
|
17061
17183
|
{
|
|
17062
17184
|
onClick: (e3) => handleFileDownload(e3, src, filename),
|
|
17063
17185
|
className: "absolute top-0 right-0 z-10 hidden group-hover/file:block cursor-pointer p-2 text-white bg-[rgba(0,0,0,0.2)]",
|
|
17064
|
-
children: /* @__PURE__ */
|
|
17186
|
+
children: /* @__PURE__ */ jsx66(DownloadIcon, {})
|
|
17065
17187
|
}
|
|
17066
17188
|
)
|
|
17067
17189
|
]
|
|
@@ -17100,8 +17222,8 @@ var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
|
|
|
17100
17222
|
e3.stopPropagation();
|
|
17101
17223
|
downloadFile(url, name2);
|
|
17102
17224
|
};
|
|
17103
|
-
return /* @__PURE__ */
|
|
17104
|
-
return /* @__PURE__ */
|
|
17225
|
+
return /* @__PURE__ */ jsx66("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
|
|
17226
|
+
return /* @__PURE__ */ jsx66("div", { className: "relative group/file", children: /* @__PURE__ */ jsx66(
|
|
17105
17227
|
FileItem,
|
|
17106
17228
|
{
|
|
17107
17229
|
...file,
|
|
@@ -17303,7 +17425,7 @@ var po = $2(K("zoom"));
|
|
|
17303
17425
|
var uo = $2(K("flip"));
|
|
17304
17426
|
|
|
17305
17427
|
// src/widgets/common/select-files.tsx
|
|
17306
|
-
import { Fragment as Fragment13, jsx as
|
|
17428
|
+
import { Fragment as Fragment13, jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
17307
17429
|
var ButtonSelectFiles = ({
|
|
17308
17430
|
fileInputRef,
|
|
17309
17431
|
selectedFiles,
|
|
@@ -17401,7 +17523,7 @@ var ButtonSelectFiles = ({
|
|
|
17401
17523
|
}
|
|
17402
17524
|
};
|
|
17403
17525
|
return /* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
17404
|
-
isPending ? /* @__PURE__ */
|
|
17526
|
+
isPending ? /* @__PURE__ */ jsx67(Fragment13, { children: /* @__PURE__ */ jsx67("span", { className: "text-sm text-gray-500", children: i18n_default.t("\u0110ang t\u1EA3i l\xEAn...") }) }) : /* @__PURE__ */ jsxs45(
|
|
17405
17527
|
"button",
|
|
17406
17528
|
{
|
|
17407
17529
|
type: "button",
|
|
@@ -17409,12 +17531,12 @@ var ButtonSelectFiles = ({
|
|
|
17409
17531
|
className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
17410
17532
|
onClick: () => fileInputRef.current.click(),
|
|
17411
17533
|
children: [
|
|
17412
|
-
/* @__PURE__ */
|
|
17413
|
-
/* @__PURE__ */
|
|
17534
|
+
/* @__PURE__ */ jsx67(AttachIcon, {}),
|
|
17535
|
+
/* @__PURE__ */ jsx67("span", { children: i18n_default.t("upload_file_placeholder") })
|
|
17414
17536
|
]
|
|
17415
17537
|
}
|
|
17416
17538
|
),
|
|
17417
|
-
/* @__PURE__ */
|
|
17539
|
+
/* @__PURE__ */ jsx67(
|
|
17418
17540
|
"input",
|
|
17419
17541
|
{
|
|
17420
17542
|
type: "file",
|
|
@@ -17429,7 +17551,7 @@ var ButtonSelectFiles = ({
|
|
|
17429
17551
|
};
|
|
17430
17552
|
|
|
17431
17553
|
// src/widgets/basic/avatar-field/avatar.tsx
|
|
17432
|
-
import { Fragment as Fragment14, jsx as
|
|
17554
|
+
import { Fragment as Fragment14, jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
17433
17555
|
var AvatarField = (props) => {
|
|
17434
17556
|
const {
|
|
17435
17557
|
isForm = false,
|
|
@@ -17454,7 +17576,7 @@ var AvatarField = (props) => {
|
|
|
17454
17576
|
fontSize: `${size4 / 2.5}px`
|
|
17455
17577
|
};
|
|
17456
17578
|
return /* @__PURE__ */ jsxs46(Fragment14, { children: [
|
|
17457
|
-
isForm && allowShowDetail && /* @__PURE__ */
|
|
17579
|
+
isForm && allowShowDetail && /* @__PURE__ */ jsx68(
|
|
17458
17580
|
ModalDetail,
|
|
17459
17581
|
{
|
|
17460
17582
|
idToolTip: `avatar-widget-id-${id}`,
|
|
@@ -17465,7 +17587,7 @@ var AvatarField = (props) => {
|
|
|
17465
17587
|
place: "top-start"
|
|
17466
17588
|
}
|
|
17467
17589
|
),
|
|
17468
|
-
allowShowDetail && /* @__PURE__ */
|
|
17590
|
+
allowShowDetail && /* @__PURE__ */ jsx68(
|
|
17469
17591
|
M,
|
|
17470
17592
|
{
|
|
17471
17593
|
id: `avatar-widget-id-${id}`,
|
|
@@ -17474,7 +17596,7 @@ var AvatarField = (props) => {
|
|
|
17474
17596
|
className: "z-20"
|
|
17475
17597
|
}
|
|
17476
17598
|
),
|
|
17477
|
-
avatarSrc ? /* @__PURE__ */
|
|
17599
|
+
avatarSrc ? /* @__PURE__ */ jsx68(
|
|
17478
17600
|
"img",
|
|
17479
17601
|
{
|
|
17480
17602
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -17482,7 +17604,7 @@ var AvatarField = (props) => {
|
|
|
17482
17604
|
className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
|
|
17483
17605
|
alt: "Avatar"
|
|
17484
17606
|
}
|
|
17485
|
-
) : /* @__PURE__ */
|
|
17607
|
+
) : /* @__PURE__ */ jsx68("div", { children: /* @__PURE__ */ jsx68(
|
|
17486
17608
|
"div",
|
|
17487
17609
|
{
|
|
17488
17610
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -17495,7 +17617,7 @@ var AvatarField = (props) => {
|
|
|
17495
17617
|
};
|
|
17496
17618
|
|
|
17497
17619
|
// src/widgets/basic/binary-field/binary.tsx
|
|
17498
|
-
import { jsx as
|
|
17620
|
+
import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
17499
17621
|
var BinaryField = (props) => {
|
|
17500
17622
|
const {
|
|
17501
17623
|
name: name2,
|
|
@@ -17515,41 +17637,41 @@ var BinaryField = (props) => {
|
|
|
17515
17637
|
checkIsImageLink: checkIsImageLink2,
|
|
17516
17638
|
getImageBase64WithMimeType
|
|
17517
17639
|
} = props;
|
|
17518
|
-
return /* @__PURE__ */
|
|
17640
|
+
return /* @__PURE__ */ jsx69(
|
|
17519
17641
|
Controller,
|
|
17520
17642
|
{
|
|
17521
17643
|
name: name2 ?? "",
|
|
17522
17644
|
control: methods.control,
|
|
17523
17645
|
render: ({ field }) => {
|
|
17524
17646
|
const renderImage = initialImage || selectedImage;
|
|
17525
|
-
return /* @__PURE__ */
|
|
17647
|
+
return /* @__PURE__ */ jsx69(
|
|
17526
17648
|
"div",
|
|
17527
17649
|
{
|
|
17528
17650
|
ref: binaryRef,
|
|
17529
17651
|
className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
|
|
17530
17652
|
children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
|
|
17531
|
-
renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */
|
|
17653
|
+
renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx69(
|
|
17532
17654
|
"img",
|
|
17533
17655
|
{
|
|
17534
17656
|
src: renderImage,
|
|
17535
17657
|
alt: "Selected",
|
|
17536
17658
|
className: "h-32 w-32 max-w-fit rounded-lg object-contain"
|
|
17537
17659
|
}
|
|
17538
|
-
) : renderImage ? /* @__PURE__ */
|
|
17660
|
+
) : renderImage ? /* @__PURE__ */ jsx69(
|
|
17539
17661
|
"img",
|
|
17540
17662
|
{
|
|
17541
17663
|
src: getImageBase64WithMimeType(renderImage) ?? void 0,
|
|
17542
17664
|
alt: "Selected",
|
|
17543
17665
|
className: "h-32 w-32 max-w-fit rounded-lg object-contain"
|
|
17544
17666
|
}
|
|
17545
|
-
) : /* @__PURE__ */
|
|
17546
|
-
!isInsideTable && !readonly && /* @__PURE__ */
|
|
17667
|
+
) : /* @__PURE__ */ jsx69(PlaceHolderIcon, {}),
|
|
17668
|
+
!isInsideTable && !readonly && /* @__PURE__ */ jsx69(
|
|
17547
17669
|
"button",
|
|
17548
17670
|
{
|
|
17549
17671
|
type: "button",
|
|
17550
17672
|
onClick: () => handleRemoveImage(field.onChange),
|
|
17551
17673
|
className: "hidden group-hover:block absolute right-0 bottom-0 mr-1 mb-1 rounded-full bg-white p-1 transition-colors duration-300 hover:bg-red-600",
|
|
17552
|
-
children: /* @__PURE__ */
|
|
17674
|
+
children: /* @__PURE__ */ jsx69(DeleteIcon, {})
|
|
17553
17675
|
}
|
|
17554
17676
|
)
|
|
17555
17677
|
] }) : /* @__PURE__ */ jsxs47(
|
|
@@ -17558,8 +17680,8 @@ var BinaryField = (props) => {
|
|
|
17558
17680
|
htmlFor: inputId,
|
|
17559
17681
|
className: `flex h-32 w-32 cursor-pointer items-center justify-center rounded-lg border-4 border-dashed border-gray-300 bg-white transition-colors duration-300 hover:bg-gray-200 ${readonly && "pointer-events-none"}`,
|
|
17560
17682
|
children: [
|
|
17561
|
-
/* @__PURE__ */
|
|
17562
|
-
/* @__PURE__ */
|
|
17683
|
+
/* @__PURE__ */ jsx69("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ jsx69(AddIcon, {}) }),
|
|
17684
|
+
/* @__PURE__ */ jsx69(
|
|
17563
17685
|
"input",
|
|
17564
17686
|
{
|
|
17565
17687
|
id: inputId,
|
|
@@ -17582,7 +17704,7 @@ var BinaryField = (props) => {
|
|
|
17582
17704
|
};
|
|
17583
17705
|
|
|
17584
17706
|
// src/widgets/basic/button-badge-field/button-badge.tsx
|
|
17585
|
-
import { jsx as
|
|
17707
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
17586
17708
|
var ButtonBadgeField = (props) => {
|
|
17587
17709
|
const { defaultValue, selection, value, formValues, domainHelper } = props;
|
|
17588
17710
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
@@ -17614,11 +17736,11 @@ var ButtonBadgeField = (props) => {
|
|
|
17614
17736
|
return item ? item[1] : "";
|
|
17615
17737
|
};
|
|
17616
17738
|
const label = getLabel(defaultValue ?? value);
|
|
17617
|
-
return label ? /* @__PURE__ */
|
|
17739
|
+
return label ? /* @__PURE__ */ jsx70("div", { className: buttonClass, children: i18n_default.t(label) }) : null;
|
|
17618
17740
|
};
|
|
17619
17741
|
|
|
17620
17742
|
// src/widgets/basic/button-field/button.tsx
|
|
17621
|
-
import { Fragment as Fragment15, jsx as
|
|
17743
|
+
import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
17622
17744
|
var ButtonField = (props) => {
|
|
17623
17745
|
const {
|
|
17624
17746
|
func,
|
|
@@ -17628,7 +17750,7 @@ var ButtonField = (props) => {
|
|
|
17628
17750
|
disable,
|
|
17629
17751
|
type = "submit"
|
|
17630
17752
|
} = props;
|
|
17631
|
-
return /* @__PURE__ */
|
|
17753
|
+
return /* @__PURE__ */ jsx71(Fragment15, { children: !loading ? /* @__PURE__ */ jsx71(
|
|
17632
17754
|
"button",
|
|
17633
17755
|
{
|
|
17634
17756
|
type,
|
|
@@ -17646,7 +17768,7 @@ var ButtonField = (props) => {
|
|
|
17646
17768
|
children: [
|
|
17647
17769
|
i18n_default.t("loading"),
|
|
17648
17770
|
" ",
|
|
17649
|
-
/* @__PURE__ */
|
|
17771
|
+
/* @__PURE__ */ jsx71(LoadingIcon, {})
|
|
17650
17772
|
]
|
|
17651
17773
|
}
|
|
17652
17774
|
) });
|
|
@@ -17654,7 +17776,7 @@ var ButtonField = (props) => {
|
|
|
17654
17776
|
|
|
17655
17777
|
// src/widgets/basic/char-field/char.tsx
|
|
17656
17778
|
import { useEffect as useEffect9 } from "react";
|
|
17657
|
-
import { Fragment as Fragment16, jsx as
|
|
17779
|
+
import { Fragment as Fragment16, jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
17658
17780
|
var CharField = (props) => {
|
|
17659
17781
|
const {
|
|
17660
17782
|
name: name2,
|
|
@@ -17680,9 +17802,9 @@ var CharField = (props) => {
|
|
|
17680
17802
|
} = props;
|
|
17681
17803
|
if (!isForm) {
|
|
17682
17804
|
const propValue = value || defaultValue;
|
|
17683
|
-
return /* @__PURE__ */
|
|
17805
|
+
return /* @__PURE__ */ jsx72("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
17684
17806
|
}
|
|
17685
|
-
return /* @__PURE__ */
|
|
17807
|
+
return /* @__PURE__ */ jsx72(
|
|
17686
17808
|
Controller,
|
|
17687
17809
|
{
|
|
17688
17810
|
name: name2 ?? "",
|
|
@@ -17718,7 +17840,7 @@ var CharField = (props) => {
|
|
|
17718
17840
|
const realValue = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "";
|
|
17719
17841
|
const displayValue = (widget === "access_token" || widget === "refresh_token") && typeof realValue === "string" && !isDirty ? "*".repeat(realValue?.length) : widget === "private_secret_key" && formValues?.id && typeof formValues?.id === "number" && !isDirty && typeof realValue === "string" ? `${realValue?.slice(0, 4)}${realValue?.length > 4 ? "*".repeat(realValue?.length - 4) : ""}` : typeof realValue === "string" || typeof realValue === "number" ? String(realValue) : "";
|
|
17720
17842
|
return /* @__PURE__ */ jsxs49(Fragment16, { children: [
|
|
17721
|
-
/* @__PURE__ */
|
|
17843
|
+
/* @__PURE__ */ jsx72(
|
|
17722
17844
|
"textarea",
|
|
17723
17845
|
{
|
|
17724
17846
|
value: displayValue,
|
|
@@ -17777,7 +17899,7 @@ var CharField = (props) => {
|
|
|
17777
17899
|
`
|
|
17778
17900
|
}
|
|
17779
17901
|
),
|
|
17780
|
-
isEditTable ? /* @__PURE__ */
|
|
17902
|
+
isEditTable ? /* @__PURE__ */ jsx72(Fragment16, {}) : /* @__PURE__ */ jsx72(Fragment16, { children: error2 && /* @__PURE__ */ jsx72("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
|
|
17781
17903
|
] });
|
|
17782
17904
|
}
|
|
17783
17905
|
}
|
|
@@ -17785,7 +17907,7 @@ var CharField = (props) => {
|
|
|
17785
17907
|
};
|
|
17786
17908
|
|
|
17787
17909
|
// src/widgets/basic/checkbox-field/checkbox.tsx
|
|
17788
|
-
import { jsx as
|
|
17910
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
17789
17911
|
var CheckboxField = (props) => {
|
|
17790
17912
|
const {
|
|
17791
17913
|
name: name2,
|
|
@@ -17800,9 +17922,9 @@ var CheckboxField = (props) => {
|
|
|
17800
17922
|
} = props;
|
|
17801
17923
|
if (!isForm) {
|
|
17802
17924
|
if (name2 === "is_active" || name2 === "active") {
|
|
17803
|
-
return /* @__PURE__ */
|
|
17925
|
+
return /* @__PURE__ */ jsx73(ActiveBadgeField, { type: value });
|
|
17804
17926
|
} else {
|
|
17805
|
-
return /* @__PURE__ */
|
|
17927
|
+
return /* @__PURE__ */ jsx73(
|
|
17806
17928
|
"input",
|
|
17807
17929
|
{
|
|
17808
17930
|
type: "checkbox",
|
|
@@ -17813,12 +17935,12 @@ var CheckboxField = (props) => {
|
|
|
17813
17935
|
);
|
|
17814
17936
|
}
|
|
17815
17937
|
}
|
|
17816
|
-
return /* @__PURE__ */
|
|
17938
|
+
return /* @__PURE__ */ jsx73(
|
|
17817
17939
|
Controller,
|
|
17818
17940
|
{
|
|
17819
17941
|
name: name2 ?? "",
|
|
17820
17942
|
control: methods?.control,
|
|
17821
|
-
render: ({ field }) => /* @__PURE__ */
|
|
17943
|
+
render: ({ field }) => /* @__PURE__ */ jsx73(
|
|
17822
17944
|
"div",
|
|
17823
17945
|
{
|
|
17824
17946
|
className: "flex items-center gap-2",
|
|
@@ -17831,7 +17953,7 @@ var CheckboxField = (props) => {
|
|
|
17831
17953
|
onChange2(name2 ?? "", checked);
|
|
17832
17954
|
}
|
|
17833
17955
|
},
|
|
17834
|
-
children: /* @__PURE__ */
|
|
17956
|
+
children: /* @__PURE__ */ jsx73(
|
|
17835
17957
|
"input",
|
|
17836
17958
|
{
|
|
17837
17959
|
...field,
|
|
@@ -17859,7 +17981,7 @@ var CheckboxField = (props) => {
|
|
|
17859
17981
|
|
|
17860
17982
|
// src/widgets/basic/color-field/color-wrapper.tsx
|
|
17861
17983
|
import { useEffect as useEffect10, useRef as useRef6, useState as useState10 } from "react";
|
|
17862
|
-
import { Fragment as Fragment17, jsx as
|
|
17984
|
+
import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
17863
17985
|
var ColorWrapper = (props) => {
|
|
17864
17986
|
const {
|
|
17865
17987
|
colors: colors2,
|
|
@@ -17886,8 +18008,8 @@ var ColorWrapper = (props) => {
|
|
|
17886
18008
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
17887
18009
|
};
|
|
17888
18010
|
}, []);
|
|
17889
|
-
return /* @__PURE__ */
|
|
17890
|
-
/* @__PURE__ */
|
|
18011
|
+
return /* @__PURE__ */ jsx74("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx74("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
|
|
18012
|
+
/* @__PURE__ */ jsx74(
|
|
17891
18013
|
"button",
|
|
17892
18014
|
{
|
|
17893
18015
|
"data-tooltip-id": `${color?.color}${color?.id}`,
|
|
@@ -17901,7 +18023,7 @@ var ColorWrapper = (props) => {
|
|
|
17901
18023
|
}
|
|
17902
18024
|
}
|
|
17903
18025
|
),
|
|
17904
|
-
/* @__PURE__ */
|
|
18026
|
+
/* @__PURE__ */ jsx74(
|
|
17905
18027
|
M,
|
|
17906
18028
|
{
|
|
17907
18029
|
className: "",
|
|
@@ -17911,7 +18033,7 @@ var ColorWrapper = (props) => {
|
|
|
17911
18033
|
}
|
|
17912
18034
|
)
|
|
17913
18035
|
] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment17, { children: [
|
|
17914
|
-
/* @__PURE__ */
|
|
18036
|
+
/* @__PURE__ */ jsx74(
|
|
17915
18037
|
"button",
|
|
17916
18038
|
{
|
|
17917
18039
|
"data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
|
|
@@ -17924,7 +18046,7 @@ var ColorWrapper = (props) => {
|
|
|
17924
18046
|
style: { backgroundColor: selectedColor?.color }
|
|
17925
18047
|
}
|
|
17926
18048
|
),
|
|
17927
|
-
/* @__PURE__ */
|
|
18049
|
+
/* @__PURE__ */ jsx74(
|
|
17928
18050
|
M,
|
|
17929
18051
|
{
|
|
17930
18052
|
place: "top",
|
|
@@ -17936,13 +18058,13 @@ var ColorWrapper = (props) => {
|
|
|
17936
18058
|
};
|
|
17937
18059
|
|
|
17938
18060
|
// src/widgets/basic/color-field/color.tsx
|
|
17939
|
-
import { jsx as
|
|
18061
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
17940
18062
|
var ColorField = (props) => {
|
|
17941
18063
|
const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
|
|
17942
18064
|
if (!isForm) {
|
|
17943
|
-
return /* @__PURE__ */
|
|
18065
|
+
return /* @__PURE__ */ jsx75(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
|
|
17944
18066
|
}
|
|
17945
|
-
return /* @__PURE__ */
|
|
18067
|
+
return /* @__PURE__ */ jsx75(
|
|
17946
18068
|
Controller,
|
|
17947
18069
|
{
|
|
17948
18070
|
name: name2 ?? "",
|
|
@@ -17952,7 +18074,7 @@ var ColorField = (props) => {
|
|
|
17952
18074
|
field.onChange(color?.id);
|
|
17953
18075
|
onChange2 && onChange2(name2 ?? "", color?.id);
|
|
17954
18076
|
};
|
|
17955
|
-
return /* @__PURE__ */
|
|
18077
|
+
return /* @__PURE__ */ jsx75(
|
|
17956
18078
|
ColorWrapper,
|
|
17957
18079
|
{
|
|
17958
18080
|
savePickColor: handlePickColorChange,
|
|
@@ -17967,7 +18089,7 @@ var ColorField = (props) => {
|
|
|
17967
18089
|
|
|
17968
18090
|
// src/widgets/basic/copy-link-buttton/copy-link.tsx
|
|
17969
18091
|
import { useEffect as useEffect11 } from "react";
|
|
17970
|
-
import { jsx as
|
|
18092
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
17971
18093
|
var CopyLinkButtonField = (props) => {
|
|
17972
18094
|
const {
|
|
17973
18095
|
isForm,
|
|
@@ -17985,9 +18107,9 @@ var CopyLinkButtonField = (props) => {
|
|
|
17985
18107
|
propValue
|
|
17986
18108
|
} = props;
|
|
17987
18109
|
if (!isForm) {
|
|
17988
|
-
return /* @__PURE__ */
|
|
18110
|
+
return /* @__PURE__ */ jsx76("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
17989
18111
|
}
|
|
17990
|
-
return /* @__PURE__ */
|
|
18112
|
+
return /* @__PURE__ */ jsx76(
|
|
17991
18113
|
Controller,
|
|
17992
18114
|
{
|
|
17993
18115
|
name: name2 ?? "",
|
|
@@ -18007,7 +18129,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
18007
18129
|
}, [value]);
|
|
18008
18130
|
return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
|
|
18009
18131
|
/* @__PURE__ */ jsxs51("div", { className: "flex relative field", children: [
|
|
18010
|
-
/* @__PURE__ */
|
|
18132
|
+
/* @__PURE__ */ jsx76(
|
|
18011
18133
|
"input",
|
|
18012
18134
|
{
|
|
18013
18135
|
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
@@ -18048,17 +18170,17 @@ var CopyLinkButtonField = (props) => {
|
|
|
18048
18170
|
`
|
|
18049
18171
|
}
|
|
18050
18172
|
),
|
|
18051
|
-
readonly && value && /* @__PURE__ */
|
|
18173
|
+
readonly && value && /* @__PURE__ */ jsx76(
|
|
18052
18174
|
"button",
|
|
18053
18175
|
{
|
|
18054
18176
|
className: "cursor-pointer",
|
|
18055
18177
|
type: "button",
|
|
18056
18178
|
onClick: () => handleCopyToClipboard(propValue),
|
|
18057
|
-
children: isCopied ? /* @__PURE__ */
|
|
18179
|
+
children: isCopied ? /* @__PURE__ */ jsx76(CheckIcon, {}) : /* @__PURE__ */ jsx76(CopyIcon, {})
|
|
18058
18180
|
}
|
|
18059
18181
|
)
|
|
18060
18182
|
] }),
|
|
18061
|
-
error2 && /* @__PURE__ */
|
|
18183
|
+
error2 && /* @__PURE__ */ jsx76("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
18062
18184
|
] });
|
|
18063
18185
|
}
|
|
18064
18186
|
}
|
|
@@ -21999,7 +22121,7 @@ function useEffectEvent(callback) {
|
|
|
21999
22121
|
}
|
|
22000
22122
|
|
|
22001
22123
|
// node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
|
|
22002
|
-
import { jsx as
|
|
22124
|
+
import { jsx as jsx77, jsxs as jsxs52, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
22003
22125
|
import * as ReactDOM2 from "react-dom";
|
|
22004
22126
|
|
|
22005
22127
|
// node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
@@ -22413,18 +22535,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
|
|
|
22413
22535
|
transform: [rotation, transform].filter((t3) => !!t3).join(" "),
|
|
22414
22536
|
...restStyle
|
|
22415
22537
|
},
|
|
22416
|
-
children: [computedStrokeWidth > 0 && /* @__PURE__ */
|
|
22538
|
+
children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx77("path", {
|
|
22417
22539
|
clipPath: "url(#" + clipPathId + ")",
|
|
22418
22540
|
fill: "none",
|
|
22419
22541
|
stroke,
|
|
22420
22542
|
strokeWidth: computedStrokeWidth + (d ? 0 : 1),
|
|
22421
22543
|
d: dValue
|
|
22422
|
-
}), /* @__PURE__ */
|
|
22544
|
+
}), /* @__PURE__ */ jsx77("path", {
|
|
22423
22545
|
stroke: computedStrokeWidth && !d ? rest.fill : "none",
|
|
22424
22546
|
d: dValue
|
|
22425
|
-
}), /* @__PURE__ */
|
|
22547
|
+
}), /* @__PURE__ */ jsx77("clipPath", {
|
|
22426
22548
|
id: clipPathId,
|
|
22427
|
-
children: /* @__PURE__ */
|
|
22549
|
+
children: /* @__PURE__ */ jsx77("rect", {
|
|
22428
22550
|
x: -halfStrokeWidth,
|
|
22429
22551
|
y: halfStrokeWidth * (isCustomShape ? -1 : 1),
|
|
22430
22552
|
width: width + computedStrokeWidth,
|
|
@@ -28357,7 +28479,7 @@ var Emotion$1 = Emotion;
|
|
|
28357
28479
|
import * as React12 from "react";
|
|
28358
28480
|
var import_extends2 = __toESM(require_extends());
|
|
28359
28481
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
28360
|
-
var
|
|
28482
|
+
var jsx78 = function jsx79(type, props) {
|
|
28361
28483
|
var args = arguments;
|
|
28362
28484
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
28363
28485
|
return React12.createElement.apply(void 0, args);
|
|
@@ -28375,7 +28497,7 @@ var jsx77 = function jsx78(type, props) {
|
|
|
28375
28497
|
var JSX;
|
|
28376
28498
|
/* @__PURE__ */ (function(_JSX) {
|
|
28377
28499
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
28378
|
-
})(
|
|
28500
|
+
})(jsx78 || (jsx78 = {}));
|
|
28379
28501
|
function css() {
|
|
28380
28502
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28381
28503
|
args[_key] = arguments[_key];
|
|
@@ -28783,7 +28905,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
28783
28905
|
};
|
|
28784
28906
|
var Menu = function Menu2(props) {
|
|
28785
28907
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
28786
|
-
return
|
|
28908
|
+
return jsx78("div", _extends({}, getStyleProps(props, "menu", {
|
|
28787
28909
|
menu: true
|
|
28788
28910
|
}), {
|
|
28789
28911
|
ref: innerRef
|
|
@@ -28805,7 +28927,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
28805
28927
|
};
|
|
28806
28928
|
var MenuList = function MenuList2(props) {
|
|
28807
28929
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
28808
|
-
return
|
|
28930
|
+
return jsx78("div", _extends({}, getStyleProps(props, "menuList", {
|
|
28809
28931
|
"menu-list": true,
|
|
28810
28932
|
"menu-list--is-multi": isMulti
|
|
28811
28933
|
}), {
|
|
@@ -28825,7 +28947,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
28825
28947
|
var loadingMessageCSS = noticeCSS;
|
|
28826
28948
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
28827
28949
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
28828
|
-
return
|
|
28950
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
28829
28951
|
children,
|
|
28830
28952
|
innerProps
|
|
28831
28953
|
}), "noOptionsMessage", {
|
|
@@ -28835,7 +28957,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
28835
28957
|
};
|
|
28836
28958
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
28837
28959
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
28838
|
-
return
|
|
28960
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
28839
28961
|
children,
|
|
28840
28962
|
innerProps
|
|
28841
28963
|
}), "loadingMessage", {
|
|
@@ -28898,7 +29020,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28898
29020
|
runAutoUpdate();
|
|
28899
29021
|
}, [runAutoUpdate]);
|
|
28900
29022
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
28901
|
-
var menuWrapper =
|
|
29023
|
+
var menuWrapper = jsx78("div", _extends({
|
|
28902
29024
|
ref: setMenuPortalElement
|
|
28903
29025
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
28904
29026
|
offset: computedPosition.offset,
|
|
@@ -28907,7 +29029,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
28907
29029
|
}), "menuPortal", {
|
|
28908
29030
|
"menu-portal": true
|
|
28909
29031
|
}), innerProps), children);
|
|
28910
|
-
return
|
|
29032
|
+
return jsx78(PortalPlacementContext.Provider, {
|
|
28911
29033
|
value: portalPlacementContext
|
|
28912
29034
|
}, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
|
|
28913
29035
|
};
|
|
@@ -28923,7 +29045,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
28923
29045
|
};
|
|
28924
29046
|
var SelectContainer = function SelectContainer2(props) {
|
|
28925
29047
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
28926
|
-
return
|
|
29048
|
+
return jsx78("div", _extends({}, getStyleProps(props, "container", {
|
|
28927
29049
|
"--is-disabled": isDisabled,
|
|
28928
29050
|
"--is-rtl": isRtl
|
|
28929
29051
|
}), innerProps), children);
|
|
@@ -28944,7 +29066,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
28944
29066
|
};
|
|
28945
29067
|
var ValueContainer = function ValueContainer2(props) {
|
|
28946
29068
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
28947
|
-
return
|
|
29069
|
+
return jsx78("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
28948
29070
|
"value-container": true,
|
|
28949
29071
|
"value-container--is-multi": isMulti,
|
|
28950
29072
|
"value-container--has-value": hasValue
|
|
@@ -28960,7 +29082,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
28960
29082
|
};
|
|
28961
29083
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
28962
29084
|
var children = props.children, innerProps = props.innerProps;
|
|
28963
|
-
return
|
|
29085
|
+
return jsx78("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
28964
29086
|
indicators: true
|
|
28965
29087
|
}), innerProps), children);
|
|
28966
29088
|
};
|
|
@@ -28981,7 +29103,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
28981
29103
|
};
|
|
28982
29104
|
var Svg = function Svg2(_ref3) {
|
|
28983
29105
|
var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
28984
|
-
return
|
|
29106
|
+
return jsx78("svg", _extends({
|
|
28985
29107
|
height: size4,
|
|
28986
29108
|
width: size4,
|
|
28987
29109
|
viewBox: "0 0 20 20",
|
|
@@ -28991,16 +29113,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
28991
29113
|
}, props));
|
|
28992
29114
|
};
|
|
28993
29115
|
var CrossIcon = function CrossIcon2(props) {
|
|
28994
|
-
return
|
|
29116
|
+
return jsx78(Svg, _extends({
|
|
28995
29117
|
size: 20
|
|
28996
|
-
}, props),
|
|
29118
|
+
}, props), jsx78("path", {
|
|
28997
29119
|
d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"
|
|
28998
29120
|
}));
|
|
28999
29121
|
};
|
|
29000
29122
|
var DownChevron = function DownChevron2(props) {
|
|
29001
|
-
return
|
|
29123
|
+
return jsx78(Svg, _extends({
|
|
29002
29124
|
size: 20
|
|
29003
|
-
}, props),
|
|
29125
|
+
}, props), jsx78("path", {
|
|
29004
29126
|
d: "M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"
|
|
29005
29127
|
}));
|
|
29006
29128
|
};
|
|
@@ -29021,18 +29143,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
29021
29143
|
var dropdownIndicatorCSS = baseCSS;
|
|
29022
29144
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
29023
29145
|
var children = props.children, innerProps = props.innerProps;
|
|
29024
|
-
return
|
|
29146
|
+
return jsx78("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
29025
29147
|
indicator: true,
|
|
29026
29148
|
"dropdown-indicator": true
|
|
29027
|
-
}), innerProps), children ||
|
|
29149
|
+
}), innerProps), children || jsx78(DownChevron, null));
|
|
29028
29150
|
};
|
|
29029
29151
|
var clearIndicatorCSS = baseCSS;
|
|
29030
29152
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
29031
29153
|
var children = props.children, innerProps = props.innerProps;
|
|
29032
|
-
return
|
|
29154
|
+
return jsx78("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
29033
29155
|
indicator: true,
|
|
29034
29156
|
"clear-indicator": true
|
|
29035
|
-
}), innerProps), children ||
|
|
29157
|
+
}), innerProps), children || jsx78(CrossIcon, null));
|
|
29036
29158
|
};
|
|
29037
29159
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
29038
29160
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -29048,7 +29170,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
29048
29170
|
};
|
|
29049
29171
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
29050
29172
|
var innerProps = props.innerProps;
|
|
29051
|
-
return
|
|
29173
|
+
return jsx78("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
29052
29174
|
"indicator-separator": true
|
|
29053
29175
|
})));
|
|
29054
29176
|
};
|
|
@@ -29072,7 +29194,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
29072
29194
|
};
|
|
29073
29195
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
29074
29196
|
var delay = _ref6.delay, offset4 = _ref6.offset;
|
|
29075
|
-
return
|
|
29197
|
+
return jsx78("span", {
|
|
29076
29198
|
css: /* @__PURE__ */ css({
|
|
29077
29199
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
29078
29200
|
backgroundColor: "currentColor",
|
|
@@ -29087,20 +29209,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
29087
29209
|
};
|
|
29088
29210
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
29089
29211
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
29090
|
-
return
|
|
29212
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
29091
29213
|
innerProps,
|
|
29092
29214
|
isRtl,
|
|
29093
29215
|
size: size4
|
|
29094
29216
|
}), "loadingIndicator", {
|
|
29095
29217
|
indicator: true,
|
|
29096
29218
|
"loading-indicator": true
|
|
29097
|
-
}), innerProps),
|
|
29219
|
+
}), innerProps), jsx78(LoadingDot, {
|
|
29098
29220
|
delay: 0,
|
|
29099
29221
|
offset: isRtl
|
|
29100
|
-
}),
|
|
29222
|
+
}), jsx78(LoadingDot, {
|
|
29101
29223
|
delay: 160,
|
|
29102
29224
|
offset: true
|
|
29103
|
-
}),
|
|
29225
|
+
}), jsx78(LoadingDot, {
|
|
29104
29226
|
delay: 320,
|
|
29105
29227
|
offset: !isRtl
|
|
29106
29228
|
}));
|
|
@@ -29132,7 +29254,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
29132
29254
|
};
|
|
29133
29255
|
var Control = function Control2(props) {
|
|
29134
29256
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
29135
|
-
return
|
|
29257
|
+
return jsx78("div", _extends({
|
|
29136
29258
|
ref: innerRef
|
|
29137
29259
|
}, getStyleProps(props, "control", {
|
|
29138
29260
|
control: true,
|
|
@@ -29154,15 +29276,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
29154
29276
|
};
|
|
29155
29277
|
var Group = function Group2(props) {
|
|
29156
29278
|
var children = props.children, cx = props.cx, getStyles = props.getStyles, getClassNames = props.getClassNames, Heading = props.Heading, headingProps = props.headingProps, innerProps = props.innerProps, label = props.label, theme = props.theme, selectProps = props.selectProps;
|
|
29157
|
-
return
|
|
29279
|
+
return jsx78("div", _extends({}, getStyleProps(props, "group", {
|
|
29158
29280
|
group: true
|
|
29159
|
-
}), innerProps),
|
|
29281
|
+
}), innerProps), jsx78(Heading, _extends({}, headingProps, {
|
|
29160
29282
|
selectProps,
|
|
29161
29283
|
theme,
|
|
29162
29284
|
getStyles,
|
|
29163
29285
|
getClassNames,
|
|
29164
29286
|
cx
|
|
29165
|
-
}), label),
|
|
29287
|
+
}), label), jsx78("div", null, children));
|
|
29166
29288
|
};
|
|
29167
29289
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
29168
29290
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -29184,7 +29306,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
29184
29306
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
29185
29307
|
_cleanCommonProps.data;
|
|
29186
29308
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
29187
|
-
return
|
|
29309
|
+
return jsx78("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
29188
29310
|
"group-heading": true
|
|
29189
29311
|
}), innerProps));
|
|
29190
29312
|
};
|
|
@@ -29236,11 +29358,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
29236
29358
|
var Input = function Input2(props) {
|
|
29237
29359
|
var cx = props.cx, value = props.value;
|
|
29238
29360
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
29239
|
-
return
|
|
29361
|
+
return jsx78("div", _extends({}, getStyleProps(props, "input", {
|
|
29240
29362
|
"input-container": true
|
|
29241
29363
|
}), {
|
|
29242
29364
|
"data-value": value || ""
|
|
29243
|
-
}),
|
|
29365
|
+
}), jsx78("input", _extends({
|
|
29244
29366
|
className: cx({
|
|
29245
29367
|
input: true
|
|
29246
29368
|
}, inputClassName),
|
|
@@ -29294,35 +29416,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
29294
29416
|
};
|
|
29295
29417
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
29296
29418
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
29297
|
-
return
|
|
29419
|
+
return jsx78("div", innerProps, children);
|
|
29298
29420
|
};
|
|
29299
29421
|
var MultiValueContainer = MultiValueGeneric;
|
|
29300
29422
|
var MultiValueLabel = MultiValueGeneric;
|
|
29301
29423
|
function MultiValueRemove(_ref5) {
|
|
29302
29424
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
29303
|
-
return
|
|
29425
|
+
return jsx78("div", _extends({
|
|
29304
29426
|
role: "button"
|
|
29305
|
-
}, innerProps), children ||
|
|
29427
|
+
}, innerProps), children || jsx78(CrossIcon, {
|
|
29306
29428
|
size: 14
|
|
29307
29429
|
}));
|
|
29308
29430
|
}
|
|
29309
29431
|
var MultiValue = function MultiValue2(props) {
|
|
29310
29432
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
29311
29433
|
var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
|
|
29312
|
-
return
|
|
29434
|
+
return jsx78(Container, {
|
|
29313
29435
|
data,
|
|
29314
29436
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
29315
29437
|
"multi-value": true,
|
|
29316
29438
|
"multi-value--is-disabled": isDisabled
|
|
29317
29439
|
})), innerProps),
|
|
29318
29440
|
selectProps
|
|
29319
|
-
},
|
|
29441
|
+
}, jsx78(Label, {
|
|
29320
29442
|
data,
|
|
29321
29443
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
29322
29444
|
"multi-value__label": true
|
|
29323
29445
|
})),
|
|
29324
29446
|
selectProps
|
|
29325
|
-
}, children),
|
|
29447
|
+
}, children), jsx78(Remove, {
|
|
29326
29448
|
data,
|
|
29327
29449
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
29328
29450
|
"multi-value__remove": true
|
|
@@ -29355,7 +29477,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
29355
29477
|
};
|
|
29356
29478
|
var Option = function Option2(props) {
|
|
29357
29479
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
29358
|
-
return
|
|
29480
|
+
return jsx78("div", _extends({}, getStyleProps(props, "option", {
|
|
29359
29481
|
option: true,
|
|
29360
29482
|
"option--is-disabled": isDisabled,
|
|
29361
29483
|
"option--is-focused": isFocused,
|
|
@@ -29379,7 +29501,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
29379
29501
|
};
|
|
29380
29502
|
var Placeholder = function Placeholder2(props) {
|
|
29381
29503
|
var children = props.children, innerProps = props.innerProps;
|
|
29382
|
-
return
|
|
29504
|
+
return jsx78("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
29383
29505
|
placeholder: true
|
|
29384
29506
|
}), innerProps), children);
|
|
29385
29507
|
};
|
|
@@ -29401,7 +29523,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
29401
29523
|
};
|
|
29402
29524
|
var SingleValue = function SingleValue2(props) {
|
|
29403
29525
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
29404
|
-
return
|
|
29526
|
+
return jsx78("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
29405
29527
|
"single-value": true,
|
|
29406
29528
|
"single-value--is-disabled": isDisabled
|
|
29407
29529
|
}), innerProps), children);
|
|
@@ -29503,7 +29625,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
29503
29625
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
29504
29626
|
};
|
|
29505
29627
|
var A11yText = function A11yText2(props) {
|
|
29506
|
-
return
|
|
29628
|
+
return jsx78("span", _extends({
|
|
29507
29629
|
css: _ref
|
|
29508
29630
|
}, props));
|
|
29509
29631
|
};
|
|
@@ -29638,18 +29760,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
29638
29760
|
}
|
|
29639
29761
|
return guidanceMsg;
|
|
29640
29762
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
29641
|
-
var ScreenReaderText =
|
|
29763
|
+
var ScreenReaderText = jsx78(Fragment21, null, jsx78("span", {
|
|
29642
29764
|
id: "aria-selection"
|
|
29643
|
-
}, ariaSelected),
|
|
29765
|
+
}, ariaSelected), jsx78("span", {
|
|
29644
29766
|
id: "aria-focused"
|
|
29645
|
-
}, ariaFocused),
|
|
29767
|
+
}, ariaFocused), jsx78("span", {
|
|
29646
29768
|
id: "aria-results"
|
|
29647
|
-
}, ariaResults),
|
|
29769
|
+
}, ariaResults), jsx78("span", {
|
|
29648
29770
|
id: "aria-guidance"
|
|
29649
29771
|
}, ariaGuidance));
|
|
29650
|
-
return
|
|
29772
|
+
return jsx78(Fragment21, null, jsx78(A11yText$1, {
|
|
29651
29773
|
id
|
|
29652
|
-
}, isInitialFocus && ScreenReaderText),
|
|
29774
|
+
}, isInitialFocus && ScreenReaderText), jsx78(A11yText$1, {
|
|
29653
29775
|
"aria-live": ariaLive,
|
|
29654
29776
|
"aria-atomic": "false",
|
|
29655
29777
|
"aria-relevant": "additions text",
|
|
@@ -29962,7 +30084,7 @@ var _excluded4 = ["innerRef"];
|
|
|
29962
30084
|
function DummyInput(_ref3) {
|
|
29963
30085
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
29964
30086
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
29965
|
-
return
|
|
30087
|
+
return jsx78("input", _extends({
|
|
29966
30088
|
ref: innerRef
|
|
29967
30089
|
}, filteredProps, {
|
|
29968
30090
|
css: /* @__PURE__ */ css({
|
|
@@ -30204,7 +30326,7 @@ function ScrollManager(_ref3) {
|
|
|
30204
30326
|
setScrollCaptureTarget(element);
|
|
30205
30327
|
setScrollLockTarget(element);
|
|
30206
30328
|
};
|
|
30207
|
-
return
|
|
30329
|
+
return jsx78(Fragment21, null, lockEnabled && jsx78("div", {
|
|
30208
30330
|
onClick: blurSelectInput,
|
|
30209
30331
|
css: _ref2$1
|
|
30210
30332
|
}), children(targetRef));
|
|
@@ -30223,7 +30345,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
30223
30345
|
};
|
|
30224
30346
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
30225
30347
|
var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
30226
|
-
return
|
|
30348
|
+
return jsx78("input", {
|
|
30227
30349
|
required: true,
|
|
30228
30350
|
name: name2,
|
|
30229
30351
|
tabIndex: -1,
|
|
@@ -31813,7 +31935,7 @@ var StateManagedSelect$1 = StateManagedSelect;
|
|
|
31813
31935
|
|
|
31814
31936
|
// src/widgets/basic/date-field/date.tsx
|
|
31815
31937
|
var import_moment2 = __toESM(require_moment());
|
|
31816
|
-
import { Fragment as Fragment22, jsx as
|
|
31938
|
+
import { Fragment as Fragment22, jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
31817
31939
|
var DateField = (props) => {
|
|
31818
31940
|
const {
|
|
31819
31941
|
name: name2,
|
|
@@ -31841,7 +31963,7 @@ var DateField = (props) => {
|
|
|
31841
31963
|
} = props;
|
|
31842
31964
|
const InputDateCustom = forwardRef6(
|
|
31843
31965
|
({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
|
|
31844
|
-
/* @__PURE__ */
|
|
31966
|
+
/* @__PURE__ */ jsx80(
|
|
31845
31967
|
"input",
|
|
31846
31968
|
{
|
|
31847
31969
|
className: "bg-transparent w-full focus-visible:outline-none",
|
|
@@ -31855,13 +31977,13 @@ var DateField = (props) => {
|
|
|
31855
31977
|
value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
|
|
31856
31978
|
}
|
|
31857
31979
|
),
|
|
31858
|
-
isForm2 && /* @__PURE__ */
|
|
31980
|
+
isForm2 && /* @__PURE__ */ jsx80(CalandarIcon, {})
|
|
31859
31981
|
] })
|
|
31860
31982
|
);
|
|
31861
31983
|
if (!isForm && !isEditTable) {
|
|
31862
|
-
return /* @__PURE__ */
|
|
31984
|
+
return /* @__PURE__ */ jsx80("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
|
|
31863
31985
|
} else {
|
|
31864
|
-
return /* @__PURE__ */
|
|
31986
|
+
return /* @__PURE__ */ jsx80(
|
|
31865
31987
|
Controller,
|
|
31866
31988
|
{
|
|
31867
31989
|
name: name2 || "",
|
|
@@ -31884,7 +32006,7 @@ var DateField = (props) => {
|
|
|
31884
32006
|
}, [value, clearErrors, name2]);
|
|
31885
32007
|
const selectedDate = !methods ? value && (0, import_moment2.default)(value, formatDateParse).isValid() ? (0, import_moment2.default)(value, formatDateParse).add(7, "hours").toDate() : null : field?.value && (0, import_moment2.default)(field.value, formatDateParse).isValid() ? (0, import_moment2.default)(field.value, formatDateParse).add(7, "hours").toDate() : null;
|
|
31886
32008
|
return /* @__PURE__ */ jsxs53(Fragment22, { children: [
|
|
31887
|
-
/* @__PURE__ */
|
|
32009
|
+
/* @__PURE__ */ jsx80(
|
|
31888
32010
|
DatePicker,
|
|
31889
32011
|
{
|
|
31890
32012
|
selected: selectedDate,
|
|
@@ -31932,7 +32054,7 @@ var DateField = (props) => {
|
|
|
31932
32054
|
minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
|
|
31933
32055
|
maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
|
|
31934
32056
|
showTimeInput: showTime,
|
|
31935
|
-
customInput: /* @__PURE__ */
|
|
32057
|
+
customInput: /* @__PURE__ */ jsx80(
|
|
31936
32058
|
InputDateCustom,
|
|
31937
32059
|
{
|
|
31938
32060
|
isForm,
|
|
@@ -31959,7 +32081,7 @@ var DateField = (props) => {
|
|
|
31959
32081
|
justifyContent: "center"
|
|
31960
32082
|
},
|
|
31961
32083
|
children: [
|
|
31962
|
-
/* @__PURE__ */
|
|
32084
|
+
/* @__PURE__ */ jsx80(
|
|
31963
32085
|
"button",
|
|
31964
32086
|
{
|
|
31965
32087
|
onClick: decreaseMonth,
|
|
@@ -31967,7 +32089,7 @@ var DateField = (props) => {
|
|
|
31967
32089
|
children: "<"
|
|
31968
32090
|
}
|
|
31969
32091
|
),
|
|
31970
|
-
/* @__PURE__ */
|
|
32092
|
+
/* @__PURE__ */ jsx80(
|
|
31971
32093
|
StateManagedSelect$1,
|
|
31972
32094
|
{
|
|
31973
32095
|
classNames: {
|
|
@@ -31993,7 +32115,7 @@ var DateField = (props) => {
|
|
|
31993
32115
|
autoFocus: true
|
|
31994
32116
|
}
|
|
31995
32117
|
),
|
|
31996
|
-
/* @__PURE__ */
|
|
32118
|
+
/* @__PURE__ */ jsx80(
|
|
31997
32119
|
StateManagedSelect$1,
|
|
31998
32120
|
{
|
|
31999
32121
|
classNames: {
|
|
@@ -32021,7 +32143,7 @@ var DateField = (props) => {
|
|
|
32021
32143
|
}))
|
|
32022
32144
|
}
|
|
32023
32145
|
),
|
|
32024
|
-
/* @__PURE__ */
|
|
32146
|
+
/* @__PURE__ */ jsx80(
|
|
32025
32147
|
"button",
|
|
32026
32148
|
{
|
|
32027
32149
|
onClick: increaseMonth,
|
|
@@ -32034,7 +32156,7 @@ var DateField = (props) => {
|
|
|
32034
32156
|
)
|
|
32035
32157
|
}
|
|
32036
32158
|
),
|
|
32037
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
32159
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32038
32160
|
] });
|
|
32039
32161
|
}
|
|
32040
32162
|
}
|
|
@@ -32043,7 +32165,7 @@ var DateField = (props) => {
|
|
|
32043
32165
|
};
|
|
32044
32166
|
|
|
32045
32167
|
// src/widgets/basic/download-binary-field/download-binary.tsx
|
|
32046
|
-
import { jsx as
|
|
32168
|
+
import { jsx as jsx81, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
32047
32169
|
var DownLoadBinaryField = (props) => {
|
|
32048
32170
|
const { handleFileDownload } = props;
|
|
32049
32171
|
return /* @__PURE__ */ jsxs54(
|
|
@@ -32053,15 +32175,15 @@ var DownLoadBinaryField = (props) => {
|
|
|
32053
32175
|
onClick: handleFileDownload,
|
|
32054
32176
|
className: "flex items-center gap-1 text-blue-700",
|
|
32055
32177
|
children: [
|
|
32056
|
-
/* @__PURE__ */
|
|
32057
|
-
/* @__PURE__ */
|
|
32178
|
+
/* @__PURE__ */ jsx81(DownloadIcon, {}),
|
|
32179
|
+
/* @__PURE__ */ jsx81("span", { className: "text-sm italic underline", children: i18n_default.t("download_file") })
|
|
32058
32180
|
]
|
|
32059
32181
|
}
|
|
32060
32182
|
);
|
|
32061
32183
|
};
|
|
32062
32184
|
|
|
32063
32185
|
// src/widgets/basic/download-file-field/download-file.tsx
|
|
32064
|
-
import { jsx as
|
|
32186
|
+
import { jsx as jsx82, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
32065
32187
|
var DownloadFileField = (props) => {
|
|
32066
32188
|
const {
|
|
32067
32189
|
readonly,
|
|
@@ -32080,8 +32202,8 @@ var DownloadFileField = (props) => {
|
|
|
32080
32202
|
htmlFor: inputId,
|
|
32081
32203
|
className: "flex cursor-pointer items-center justify-center rounded-lg border-2 border-gray-300 bg-white px-3 py-2 transition-colors duration-300 hover:bg-gray-200",
|
|
32082
32204
|
children: [
|
|
32083
|
-
file ? /* @__PURE__ */
|
|
32084
|
-
/* @__PURE__ */
|
|
32205
|
+
file ? /* @__PURE__ */ jsx82("div", { className: "flex items-center gap-2", children: /* @__PURE__ */ jsx82("span", { className: "cursor-pointer text-lg", children: file.name }) }) : /* @__PURE__ */ jsx82("span", { className: "cursor-pointer text-lg", children: placeholder || "Upload File" }),
|
|
32206
|
+
/* @__PURE__ */ jsx82(
|
|
32085
32207
|
"input",
|
|
32086
32208
|
{
|
|
32087
32209
|
id: inputId,
|
|
@@ -32095,7 +32217,7 @@ var DownloadFileField = (props) => {
|
|
|
32095
32217
|
]
|
|
32096
32218
|
}
|
|
32097
32219
|
),
|
|
32098
|
-
file && /* @__PURE__ */
|
|
32220
|
+
file && /* @__PURE__ */ jsx82(
|
|
32099
32221
|
"button",
|
|
32100
32222
|
{
|
|
32101
32223
|
onClick: handleFileDownload,
|
|
@@ -32109,7 +32231,7 @@ var DownloadFileField = (props) => {
|
|
|
32109
32231
|
|
|
32110
32232
|
// src/widgets/basic/dropdown-field/dropdown.tsx
|
|
32111
32233
|
import { useState as useState15 } from "react";
|
|
32112
|
-
import { jsx as
|
|
32234
|
+
import { jsx as jsx83, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
32113
32235
|
var DropdownField = (props) => {
|
|
32114
32236
|
const {
|
|
32115
32237
|
options: options2,
|
|
@@ -32136,17 +32258,17 @@ var DropdownField = (props) => {
|
|
|
32136
32258
|
className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
|
|
32137
32259
|
children: [
|
|
32138
32260
|
selectedValue?.icon,
|
|
32139
|
-
/* @__PURE__ */
|
|
32140
|
-
/* @__PURE__ */
|
|
32261
|
+
/* @__PURE__ */ jsx83("span", { children: selectedValue?.label }),
|
|
32262
|
+
/* @__PURE__ */ jsx83(ChevronBottomIcon, { className: "h-4 w-4" })
|
|
32141
32263
|
]
|
|
32142
32264
|
}
|
|
32143
32265
|
),
|
|
32144
|
-
open && /* @__PURE__ */
|
|
32266
|
+
open && /* @__PURE__ */ jsx83(
|
|
32145
32267
|
"div",
|
|
32146
32268
|
{
|
|
32147
32269
|
className: `absolute left-0 top-[calc(100%_+_4px)] z-50 bg-white overflow-hidden rounded-lg border border-[#dbe0e6] shadow-md text-sub-600 h-auto !min-h-fit text-xs !leading-5 !font-bold ${dropdownClassName}`,
|
|
32148
32270
|
onClick: (e3) => e3.stopPropagation(),
|
|
32149
|
-
children: options2.map((option, index4) => /* @__PURE__ */
|
|
32271
|
+
children: options2.map((option, index4) => /* @__PURE__ */ jsx83(
|
|
32150
32272
|
"div",
|
|
32151
32273
|
{
|
|
32152
32274
|
onClick: () => {
|
|
@@ -32166,7 +32288,7 @@ var DropdownField = (props) => {
|
|
|
32166
32288
|
};
|
|
32167
32289
|
|
|
32168
32290
|
// src/widgets/basic/fee-field/fee.tsx
|
|
32169
|
-
import { Fragment as Fragment23, jsx as
|
|
32291
|
+
import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
32170
32292
|
var FeeField = (props) => {
|
|
32171
32293
|
const { value, formValues } = props;
|
|
32172
32294
|
const totalAmount = formatNumberOnly(parseFloat(value?.total_amount)) + " VND";
|
|
@@ -32185,7 +32307,7 @@ var FeeField = (props) => {
|
|
|
32185
32307
|
sub?.name,
|
|
32186
32308
|
":"
|
|
32187
32309
|
] }),
|
|
32188
|
-
/* @__PURE__ */
|
|
32310
|
+
/* @__PURE__ */ jsx84("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right font-semibold", children: formatNumberOnly(parseFloat(sub?.base_amount ?? 0)) + " VND" })
|
|
32189
32311
|
] }),
|
|
32190
32312
|
sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
|
|
32191
32313
|
"div",
|
|
@@ -32196,7 +32318,7 @@ var FeeField = (props) => {
|
|
|
32196
32318
|
group?.group_name,
|
|
32197
32319
|
":"
|
|
32198
32320
|
] }),
|
|
32199
|
-
/* @__PURE__ */
|
|
32321
|
+
/* @__PURE__ */ jsx84("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
|
|
32200
32322
|
]
|
|
32201
32323
|
},
|
|
32202
32324
|
`tax_groups_${group?.id}`
|
|
@@ -32209,34 +32331,34 @@ var FeeField = (props) => {
|
|
|
32209
32331
|
i18n_default.t("total"),
|
|
32210
32332
|
":"
|
|
32211
32333
|
] }),
|
|
32212
|
-
/* @__PURE__ */
|
|
32334
|
+
/* @__PURE__ */ jsx84("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
|
|
32213
32335
|
] }),
|
|
32214
32336
|
/* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 pt-2 lg:mt-5 lg:pt-5 border-t border-[#c4c4c4ee]", children: [
|
|
32215
32337
|
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
32216
32338
|
i18n_default.t("paid_amount"),
|
|
32217
32339
|
":"
|
|
32218
32340
|
] }),
|
|
32219
|
-
/* @__PURE__ */
|
|
32341
|
+
/* @__PURE__ */ jsx84("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
|
|
32220
32342
|
] }),
|
|
32221
32343
|
/* @__PURE__ */ jsxs57("div", { className: "grid grid-cols-2 gap-x-4 gap-y-2 min-w-[300px] max-w-fit ml-auto mt-2 lg:mt-3", children: [
|
|
32222
32344
|
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
32223
32345
|
i18n_default.t("remanining_amount"),
|
|
32224
32346
|
":"
|
|
32225
32347
|
] }),
|
|
32226
|
-
/* @__PURE__ */
|
|
32348
|
+
/* @__PURE__ */ jsx84("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
|
|
32227
32349
|
] })
|
|
32228
32350
|
] });
|
|
32229
32351
|
};
|
|
32230
32352
|
|
|
32231
32353
|
// src/widgets/basic/file-upload-field/file-upload.tsx
|
|
32232
32354
|
import { useEffect as useEffect16, useRef as useRef14, useState as useState16 } from "react";
|
|
32233
|
-
import { jsx as
|
|
32355
|
+
import { jsx as jsx85, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
32234
32356
|
var FileUploadField = (props) => {
|
|
32235
32357
|
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32236
32358
|
const fileInputRef = useRef14(null);
|
|
32237
32359
|
const [selectedFiles, setSelectedFiles] = useState16([]);
|
|
32238
32360
|
const [uploadError, setUploadError] = useState16();
|
|
32239
|
-
return /* @__PURE__ */
|
|
32361
|
+
return /* @__PURE__ */ jsx85(
|
|
32240
32362
|
Controller,
|
|
32241
32363
|
{
|
|
32242
32364
|
name: name2 || "",
|
|
@@ -32262,7 +32384,7 @@ var FileUploadField = (props) => {
|
|
|
32262
32384
|
}
|
|
32263
32385
|
}, [selectedFiles]);
|
|
32264
32386
|
return /* @__PURE__ */ jsxs58("div", { children: [
|
|
32265
|
-
selectedFiles.length > 0 && /* @__PURE__ */
|
|
32387
|
+
selectedFiles.length > 0 && /* @__PURE__ */ jsx85(
|
|
32266
32388
|
RenderFiles,
|
|
32267
32389
|
{
|
|
32268
32390
|
selectedFiles,
|
|
@@ -32270,8 +32392,8 @@ var FileUploadField = (props) => {
|
|
|
32270
32392
|
useGetImage
|
|
32271
32393
|
}
|
|
32272
32394
|
),
|
|
32273
|
-
uploadError && /* @__PURE__ */
|
|
32274
|
-
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */
|
|
32395
|
+
uploadError && /* @__PURE__ */ jsx85("div", { className: "text-[#de4747]", children: uploadError }),
|
|
32396
|
+
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx85(
|
|
32275
32397
|
ButtonSelectFiles,
|
|
32276
32398
|
{
|
|
32277
32399
|
fileInputRef,
|
|
@@ -32286,7 +32408,7 @@ var FileUploadField = (props) => {
|
|
|
32286
32408
|
useUploadFile
|
|
32287
32409
|
}
|
|
32288
32410
|
),
|
|
32289
|
-
error2 && /* @__PURE__ */
|
|
32411
|
+
error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32290
32412
|
] });
|
|
32291
32413
|
}
|
|
32292
32414
|
}
|
|
@@ -32295,7 +32417,7 @@ var FileUploadField = (props) => {
|
|
|
32295
32417
|
|
|
32296
32418
|
// src/widgets/basic/float-field/float.tsx
|
|
32297
32419
|
import { useEffect as useEffect17, useRef as useRef15, useState as useState17 } from "react";
|
|
32298
|
-
import { Fragment as Fragment24, jsx as
|
|
32420
|
+
import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
32299
32421
|
var FloatField = (props) => {
|
|
32300
32422
|
const {
|
|
32301
32423
|
name: name2,
|
|
@@ -32311,11 +32433,11 @@ var FloatField = (props) => {
|
|
|
32311
32433
|
isEditTable,
|
|
32312
32434
|
onChange: handleOnchange
|
|
32313
32435
|
} = props;
|
|
32314
|
-
const { t: t3 } =
|
|
32436
|
+
const { t: t3 } = useTranslation();
|
|
32315
32437
|
if (!isForm && !isEditTable) {
|
|
32316
|
-
return /* @__PURE__ */
|
|
32438
|
+
return /* @__PURE__ */ jsx86("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32317
32439
|
}
|
|
32318
|
-
return /* @__PURE__ */
|
|
32440
|
+
return /* @__PURE__ */ jsx86(
|
|
32319
32441
|
Controller,
|
|
32320
32442
|
{
|
|
32321
32443
|
name: name2 ?? "",
|
|
@@ -32417,7 +32539,7 @@ var FloatField = (props) => {
|
|
|
32417
32539
|
isDirtyRef.current = false;
|
|
32418
32540
|
};
|
|
32419
32541
|
return /* @__PURE__ */ jsxs59(Fragment24, { children: [
|
|
32420
|
-
/* @__PURE__ */
|
|
32542
|
+
/* @__PURE__ */ jsx86(
|
|
32421
32543
|
"input",
|
|
32422
32544
|
{
|
|
32423
32545
|
ref: inputRef,
|
|
@@ -32437,19 +32559,16 @@ var FloatField = (props) => {
|
|
|
32437
32559
|
`
|
|
32438
32560
|
}
|
|
32439
32561
|
),
|
|
32440
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
32562
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx86("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32441
32563
|
] });
|
|
32442
32564
|
}
|
|
32443
32565
|
}
|
|
32444
32566
|
);
|
|
32445
32567
|
};
|
|
32446
|
-
function useI18n() {
|
|
32447
|
-
throw new Error("Function not implemented.");
|
|
32448
|
-
}
|
|
32449
32568
|
|
|
32450
32569
|
// src/widgets/basic/float-time-field/float-time.tsx
|
|
32451
32570
|
import { useState as useState18 } from "react";
|
|
32452
|
-
import { Fragment as Fragment25, jsx as
|
|
32571
|
+
import { Fragment as Fragment25, jsx as jsx87, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
32453
32572
|
var FloatTimeField = (props) => {
|
|
32454
32573
|
const {
|
|
32455
32574
|
name: name2,
|
|
@@ -32464,9 +32583,9 @@ var FloatTimeField = (props) => {
|
|
|
32464
32583
|
} = props;
|
|
32465
32584
|
if (!isForm) {
|
|
32466
32585
|
const formatValue = value ?? 0;
|
|
32467
|
-
return /* @__PURE__ */
|
|
32586
|
+
return /* @__PURE__ */ jsx87("span", { children: convertFloatToTime(formatValue) });
|
|
32468
32587
|
}
|
|
32469
|
-
return /* @__PURE__ */
|
|
32588
|
+
return /* @__PURE__ */ jsx87(
|
|
32470
32589
|
Controller,
|
|
32471
32590
|
{
|
|
32472
32591
|
name: name2 ?? "",
|
|
@@ -32529,7 +32648,7 @@ var FloatTimeField = (props) => {
|
|
|
32529
32648
|
onBlur();
|
|
32530
32649
|
};
|
|
32531
32650
|
return /* @__PURE__ */ jsxs60(Fragment25, { children: [
|
|
32532
|
-
/* @__PURE__ */
|
|
32651
|
+
/* @__PURE__ */ jsx87(
|
|
32533
32652
|
"input",
|
|
32534
32653
|
{
|
|
32535
32654
|
type: "text",
|
|
@@ -32561,7 +32680,7 @@ var FloatTimeField = (props) => {
|
|
|
32561
32680
|
readOnly: readonly
|
|
32562
32681
|
}
|
|
32563
32682
|
),
|
|
32564
|
-
(error2 || errors) && /* @__PURE__ */
|
|
32683
|
+
(error2 || errors) && /* @__PURE__ */ jsx87("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
|
|
32565
32684
|
] });
|
|
32566
32685
|
}
|
|
32567
32686
|
}
|
|
@@ -32570,7 +32689,7 @@ var FloatTimeField = (props) => {
|
|
|
32570
32689
|
|
|
32571
32690
|
// src/widgets/basic/html-field/html.tsx
|
|
32572
32691
|
import { useEffect as useEffect18, useRef as useRef16 } from "react";
|
|
32573
|
-
import { jsx as
|
|
32692
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
32574
32693
|
var HtmlField = (props) => {
|
|
32575
32694
|
const {
|
|
32576
32695
|
name: name2,
|
|
@@ -32583,9 +32702,9 @@ var HtmlField = (props) => {
|
|
|
32583
32702
|
} = props;
|
|
32584
32703
|
const divRef = useRef16(null);
|
|
32585
32704
|
if (!isForm) {
|
|
32586
|
-
return /* @__PURE__ */
|
|
32705
|
+
return /* @__PURE__ */ jsx88("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
|
|
32587
32706
|
}
|
|
32588
|
-
return /* @__PURE__ */
|
|
32707
|
+
return /* @__PURE__ */ jsx88(
|
|
32589
32708
|
Controller,
|
|
32590
32709
|
{
|
|
32591
32710
|
name: name2 ?? "",
|
|
@@ -32604,7 +32723,7 @@ var HtmlField = (props) => {
|
|
|
32604
32723
|
onChange2(newValue, "");
|
|
32605
32724
|
}
|
|
32606
32725
|
};
|
|
32607
|
-
return /* @__PURE__ */
|
|
32726
|
+
return /* @__PURE__ */ jsx88(
|
|
32608
32727
|
"div",
|
|
32609
32728
|
{
|
|
32610
32729
|
ref: divRef,
|
|
@@ -32623,12 +32742,12 @@ var HtmlField = (props) => {
|
|
|
32623
32742
|
};
|
|
32624
32743
|
|
|
32625
32744
|
// src/widgets/basic/image-field/image.tsx
|
|
32626
|
-
import { jsx as
|
|
32745
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
32627
32746
|
var ImageField = (props) => {
|
|
32628
32747
|
const { value, type, name: name2 } = props;
|
|
32629
32748
|
if (!value) return null;
|
|
32630
32749
|
if (type === "url") {
|
|
32631
|
-
return /* @__PURE__ */
|
|
32750
|
+
return /* @__PURE__ */ jsx89(
|
|
32632
32751
|
"img",
|
|
32633
32752
|
{
|
|
32634
32753
|
src: `https://api.vitrust.app/c2${value}`,
|
|
@@ -32638,21 +32757,21 @@ var ImageField = (props) => {
|
|
|
32638
32757
|
}
|
|
32639
32758
|
);
|
|
32640
32759
|
}
|
|
32641
|
-
return /* @__PURE__ */
|
|
32760
|
+
return /* @__PURE__ */ jsx89("div", { id: "qr-code", children: /* @__PURE__ */ jsx89("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
|
|
32642
32761
|
};
|
|
32643
32762
|
|
|
32644
32763
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
32645
32764
|
import { useEffect as useEffect19 } from "react";
|
|
32646
32765
|
|
|
32647
32766
|
// src/widgets/basic/information-field/information.tsx
|
|
32648
|
-
import { Fragment as Fragment26, jsx as
|
|
32767
|
+
import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
32649
32768
|
var InfomationField = (props) => {
|
|
32650
32769
|
const { value, isForm = false, showName = true, stringToColor } = props;
|
|
32651
32770
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
32652
|
-
return /* @__PURE__ */
|
|
32771
|
+
return /* @__PURE__ */ jsx90(Fragment26, {});
|
|
32653
32772
|
}
|
|
32654
32773
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
32655
|
-
return /* @__PURE__ */
|
|
32774
|
+
return /* @__PURE__ */ jsx90("div", { className: "group relative flex items-center gap-1 rounded-lg transition-shadow duration-300", children: inforValues.length > 1 ? inforValues.map((item) => /* @__PURE__ */ jsx90(
|
|
32656
32775
|
AvatarField,
|
|
32657
32776
|
{
|
|
32658
32777
|
id: item.id,
|
|
@@ -32662,7 +32781,7 @@ var InfomationField = (props) => {
|
|
|
32662
32781
|
},
|
|
32663
32782
|
item.id
|
|
32664
32783
|
)) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
|
|
32665
|
-
/* @__PURE__ */
|
|
32784
|
+
/* @__PURE__ */ jsx90(
|
|
32666
32785
|
AvatarField,
|
|
32667
32786
|
{
|
|
32668
32787
|
avatarSrc: inforValues[0].image_256,
|
|
@@ -32672,12 +32791,12 @@ var InfomationField = (props) => {
|
|
|
32672
32791
|
stringToColor
|
|
32673
32792
|
}
|
|
32674
32793
|
),
|
|
32675
|
-
showName && /* @__PURE__ */
|
|
32794
|
+
showName && /* @__PURE__ */ jsx90("span", { className: "capitalize", children: inforValues[0].display_name })
|
|
32676
32795
|
] }) });
|
|
32677
32796
|
};
|
|
32678
32797
|
|
|
32679
32798
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
32680
|
-
import { jsx as
|
|
32799
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
32681
32800
|
var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
32682
32801
|
const { selectProps, data, menuList } = props;
|
|
32683
32802
|
const { relation } = selectProps;
|
|
@@ -32687,7 +32806,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
32687
32806
|
)
|
|
32688
32807
|
)?.[0]?.action?.id;
|
|
32689
32808
|
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
|
|
32690
|
-
/* @__PURE__ */
|
|
32809
|
+
/* @__PURE__ */ jsx91(
|
|
32691
32810
|
AvatarField,
|
|
32692
32811
|
{
|
|
32693
32812
|
id: data?.id,
|
|
@@ -32699,8 +32818,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
32699
32818
|
stringToColor
|
|
32700
32819
|
}
|
|
32701
32820
|
),
|
|
32702
|
-
/* @__PURE__ */
|
|
32703
|
-
/* @__PURE__ */
|
|
32821
|
+
/* @__PURE__ */ jsx91("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
|
|
32822
|
+
/* @__PURE__ */ jsx91(
|
|
32704
32823
|
"span",
|
|
32705
32824
|
{
|
|
32706
32825
|
className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
|
|
@@ -32708,7 +32827,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
32708
32827
|
e3.stopPropagation();
|
|
32709
32828
|
props.removeProps.onClick();
|
|
32710
32829
|
},
|
|
32711
|
-
children: /* @__PURE__ */
|
|
32830
|
+
children: /* @__PURE__ */ jsx91(CloseIcon, {})
|
|
32712
32831
|
}
|
|
32713
32832
|
)
|
|
32714
32833
|
] });
|
|
@@ -32733,7 +32852,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32733
32852
|
stringToColor
|
|
32734
32853
|
} = props;
|
|
32735
32854
|
const CustomSelect = ({ ...rest }) => {
|
|
32736
|
-
return /* @__PURE__ */
|
|
32855
|
+
return /* @__PURE__ */ jsx91(StateManagedSelect$1, { relation, ...rest });
|
|
32737
32856
|
};
|
|
32738
32857
|
if (!isForm) {
|
|
32739
32858
|
const optionValue = Array.isArray(value) ? value.map((item) => ({
|
|
@@ -32741,7 +32860,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32741
32860
|
value: item.id,
|
|
32742
32861
|
label: item.name ?? item.display_name
|
|
32743
32862
|
})) : [];
|
|
32744
|
-
return /* @__PURE__ */
|
|
32863
|
+
return /* @__PURE__ */ jsx91(
|
|
32745
32864
|
InfomationField,
|
|
32746
32865
|
{
|
|
32747
32866
|
value: optionValue || null,
|
|
@@ -32750,7 +32869,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32750
32869
|
}
|
|
32751
32870
|
);
|
|
32752
32871
|
}
|
|
32753
|
-
return /* @__PURE__ */
|
|
32872
|
+
return /* @__PURE__ */ jsx91(
|
|
32754
32873
|
Controller,
|
|
32755
32874
|
{
|
|
32756
32875
|
name: name2 ?? "",
|
|
@@ -32775,7 +32894,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32775
32894
|
clearErrors(name2);
|
|
32776
32895
|
};
|
|
32777
32896
|
return /* @__PURE__ */ jsxs62("div", { className: "group", children: [
|
|
32778
|
-
/* @__PURE__ */
|
|
32897
|
+
/* @__PURE__ */ jsx91(
|
|
32779
32898
|
CustomSelect,
|
|
32780
32899
|
{
|
|
32781
32900
|
relation,
|
|
@@ -32833,7 +32952,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32833
32952
|
})
|
|
32834
32953
|
},
|
|
32835
32954
|
components: isUser ? {
|
|
32836
|
-
MultiValue: (multiValueProps) => /* @__PURE__ */
|
|
32955
|
+
MultiValue: (multiValueProps) => /* @__PURE__ */ jsx91(
|
|
32837
32956
|
CustomMultiValue,
|
|
32838
32957
|
{
|
|
32839
32958
|
...multiValueProps,
|
|
@@ -32848,7 +32967,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32848
32967
|
},
|
|
32849
32968
|
field?.value
|
|
32850
32969
|
),
|
|
32851
|
-
isEditTable && error2 && /* @__PURE__ */
|
|
32970
|
+
isEditTable && error2 && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32852
32971
|
] });
|
|
32853
32972
|
}
|
|
32854
32973
|
}
|
|
@@ -32857,7 +32976,7 @@ var Many2ManyTagField = (props) => {
|
|
|
32857
32976
|
|
|
32858
32977
|
// src/widgets/basic/monetary-field/monetary.tsx
|
|
32859
32978
|
import { useEffect as useEffect20 } from "react";
|
|
32860
|
-
import { Fragment as Fragment27, jsx as
|
|
32979
|
+
import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
32861
32980
|
var MonetaryField = (props) => {
|
|
32862
32981
|
const {
|
|
32863
32982
|
name: name2,
|
|
@@ -32881,21 +33000,21 @@ var MonetaryField = (props) => {
|
|
|
32881
33000
|
string,
|
|
32882
33001
|
":"
|
|
32883
33002
|
] }),
|
|
32884
|
-
/* @__PURE__ */
|
|
33003
|
+
/* @__PURE__ */ jsx92("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
|
|
32885
33004
|
] });
|
|
32886
33005
|
}
|
|
32887
33006
|
if (!isForm) {
|
|
32888
33007
|
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
|
|
32889
33008
|
if (widget === "monetary" && !formValues?.currency_id) {
|
|
32890
|
-
return /* @__PURE__ */
|
|
33009
|
+
return /* @__PURE__ */ jsx92("span", { children: `${formatNumberOnly(
|
|
32891
33010
|
parseFloat(String(value ?? defaultValue))
|
|
32892
33011
|
)} VND` });
|
|
32893
33012
|
}
|
|
32894
|
-
return /* @__PURE__ */
|
|
33013
|
+
return /* @__PURE__ */ jsx92("span", { children: `${formatNumberOnly(
|
|
32895
33014
|
parseFloat(value ?? defaultValue)
|
|
32896
33015
|
)} ${currencySymbol}` });
|
|
32897
33016
|
}
|
|
32898
|
-
return /* @__PURE__ */
|
|
33017
|
+
return /* @__PURE__ */ jsx92(
|
|
32899
33018
|
Controller,
|
|
32900
33019
|
{
|
|
32901
33020
|
name: name2 ?? "",
|
|
@@ -32918,7 +33037,7 @@ var MonetaryField = (props) => {
|
|
|
32918
33037
|
const editableClass = isEditTable ? `${error2 ? "hover:border-b-[1px] hover:border-b-[#de4747]" : "hover:border-b-[1px] hover:border-b-primary"} outline-0 hover:!outline-none` : `focus:ring-0 focus:!outline-none focus:border-[1px] focus:border-primary outline-0 bg-[#f7f7f7] border border-[#f7f7f7] rounded-[10px]`;
|
|
32919
33038
|
const readonlyClass = readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]";
|
|
32920
33039
|
return /* @__PURE__ */ jsxs63(Fragment27, { children: [
|
|
32921
|
-
/* @__PURE__ */
|
|
33040
|
+
/* @__PURE__ */ jsx92(
|
|
32922
33041
|
"input",
|
|
32923
33042
|
{
|
|
32924
33043
|
value: formatNumberOnly(value2),
|
|
@@ -32952,7 +33071,7 @@ var MonetaryField = (props) => {
|
|
|
32952
33071
|
className: `${baseClasses} ${editableClass} ${readonlyClass}`
|
|
32953
33072
|
}
|
|
32954
33073
|
),
|
|
32955
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
33074
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx92("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32956
33075
|
] });
|
|
32957
33076
|
}
|
|
32958
33077
|
}
|
|
@@ -32960,14 +33079,14 @@ var MonetaryField = (props) => {
|
|
|
32960
33079
|
};
|
|
32961
33080
|
|
|
32962
33081
|
// src/widgets/basic/paid-badged-field/paid-badged.tsx
|
|
32963
|
-
import { jsx as
|
|
33082
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
32964
33083
|
var PaidBadgedField = () => {
|
|
32965
|
-
return /* @__PURE__ */
|
|
33084
|
+
return /* @__PURE__ */ jsx93("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx93(PaidIcon, {}) });
|
|
32966
33085
|
};
|
|
32967
33086
|
|
|
32968
33087
|
// src/widgets/basic/priority-field/rating-star.tsx
|
|
32969
33088
|
import React16, { useEffect as useEffect21, useState as useState19 } from "react";
|
|
32970
|
-
import { jsx as
|
|
33089
|
+
import { jsx as jsx94, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
32971
33090
|
var RatingStarField = (props) => {
|
|
32972
33091
|
const {
|
|
32973
33092
|
label,
|
|
@@ -33002,7 +33121,7 @@ var RatingStarField = (props) => {
|
|
|
33002
33121
|
setHover(0);
|
|
33003
33122
|
setRating(0);
|
|
33004
33123
|
};
|
|
33005
|
-
return /* @__PURE__ */
|
|
33124
|
+
return /* @__PURE__ */ jsx94(
|
|
33006
33125
|
"div",
|
|
33007
33126
|
{
|
|
33008
33127
|
className: "flex gap-1 cursor-pointer w-fit",
|
|
@@ -33013,16 +33132,16 @@ var RatingStarField = (props) => {
|
|
|
33013
33132
|
const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
|
|
33014
33133
|
const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
|
|
33015
33134
|
return /* @__PURE__ */ jsxs64(React16.Fragment, { children: [
|
|
33016
|
-
/* @__PURE__ */
|
|
33135
|
+
/* @__PURE__ */ jsx94(
|
|
33017
33136
|
"div",
|
|
33018
33137
|
{
|
|
33019
33138
|
onMouseEnter: () => handleHover(starValue),
|
|
33020
33139
|
onClick: () => handleClick(starValue),
|
|
33021
33140
|
"data-tooltip-id": `${id}-${starValue}`,
|
|
33022
|
-
children: /* @__PURE__ */
|
|
33141
|
+
children: /* @__PURE__ */ jsx94(StarIcon, { fill: fillColor, stroke: strokeColor })
|
|
33023
33142
|
}
|
|
33024
33143
|
),
|
|
33025
|
-
/* @__PURE__ */
|
|
33144
|
+
/* @__PURE__ */ jsx94(
|
|
33026
33145
|
M,
|
|
33027
33146
|
{
|
|
33028
33147
|
className: "z-50",
|
|
@@ -33038,7 +33157,7 @@ var RatingStarField = (props) => {
|
|
|
33038
33157
|
};
|
|
33039
33158
|
|
|
33040
33159
|
// src/widgets/basic/priority-field/priority.tsx
|
|
33041
|
-
import { jsx as
|
|
33160
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
33042
33161
|
var PriorityField = (props) => {
|
|
33043
33162
|
const {
|
|
33044
33163
|
isForm,
|
|
@@ -33054,7 +33173,7 @@ var PriorityField = (props) => {
|
|
|
33054
33173
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
33055
33174
|
const defaultPriority = parseInt(value) + 1;
|
|
33056
33175
|
if (!isForm) {
|
|
33057
|
-
return /* @__PURE__ */
|
|
33176
|
+
return /* @__PURE__ */ jsx95(
|
|
33058
33177
|
RatingStarField,
|
|
33059
33178
|
{
|
|
33060
33179
|
label,
|
|
@@ -33065,7 +33184,7 @@ var PriorityField = (props) => {
|
|
|
33065
33184
|
}
|
|
33066
33185
|
);
|
|
33067
33186
|
}
|
|
33068
|
-
return /* @__PURE__ */
|
|
33187
|
+
return /* @__PURE__ */ jsx95(
|
|
33069
33188
|
Controller,
|
|
33070
33189
|
{
|
|
33071
33190
|
name: name ?? "",
|
|
@@ -33075,7 +33194,7 @@ var PriorityField = (props) => {
|
|
|
33075
33194
|
field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
33076
33195
|
onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
33077
33196
|
};
|
|
33078
|
-
return /* @__PURE__ */
|
|
33197
|
+
return /* @__PURE__ */ jsx95(
|
|
33079
33198
|
RatingStarField,
|
|
33080
33199
|
{
|
|
33081
33200
|
label,
|
|
@@ -33092,7 +33211,7 @@ var PriorityField = (props) => {
|
|
|
33092
33211
|
|
|
33093
33212
|
// src/widgets/basic/radio-group-field/radio-group.tsx
|
|
33094
33213
|
import { useEffect as useEffect22 } from "react";
|
|
33095
|
-
import { jsx as
|
|
33214
|
+
import { jsx as jsx96, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
33096
33215
|
var RadioGroupField = (props) => {
|
|
33097
33216
|
const {
|
|
33098
33217
|
name: name2,
|
|
@@ -33111,13 +33230,13 @@ var RadioGroupField = (props) => {
|
|
|
33111
33230
|
}
|
|
33112
33231
|
}, [selection, name2, setValue]);
|
|
33113
33232
|
if (!methods) return null;
|
|
33114
|
-
return /* @__PURE__ */
|
|
33233
|
+
return /* @__PURE__ */ jsx96(
|
|
33115
33234
|
Controller,
|
|
33116
33235
|
{
|
|
33117
33236
|
name: name2 ?? "",
|
|
33118
33237
|
control: methods.control,
|
|
33119
|
-
render: ({ field }) => /* @__PURE__ */
|
|
33120
|
-
/* @__PURE__ */
|
|
33238
|
+
render: ({ field }) => /* @__PURE__ */ jsx96("div", { className: "flex items-center gap-[10px] pb-4", children: selection?.map((select) => /* @__PURE__ */ jsxs65("div", { className: "flex items-center gap-1", children: [
|
|
33239
|
+
/* @__PURE__ */ jsx96(
|
|
33121
33240
|
"input",
|
|
33122
33241
|
{
|
|
33123
33242
|
type: "radio",
|
|
@@ -33136,7 +33255,7 @@ var RadioGroupField = (props) => {
|
|
|
33136
33255
|
className: "custom-radio"
|
|
33137
33256
|
}
|
|
33138
33257
|
),
|
|
33139
|
-
/* @__PURE__ */
|
|
33258
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: String(select[0]), children: select[1] })
|
|
33140
33259
|
] }, select[0])) })
|
|
33141
33260
|
}
|
|
33142
33261
|
);
|
|
@@ -33144,7 +33263,7 @@ var RadioGroupField = (props) => {
|
|
|
33144
33263
|
|
|
33145
33264
|
// src/widgets/basic/remaining-days-field/remaining-days.tsx
|
|
33146
33265
|
var import_moment3 = __toESM(require_moment());
|
|
33147
|
-
import { jsx as
|
|
33266
|
+
import { jsx as jsx97, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
33148
33267
|
var RemainingDaysField = (props) => {
|
|
33149
33268
|
const {
|
|
33150
33269
|
value,
|
|
@@ -33156,13 +33275,13 @@ var RemainingDaysField = (props) => {
|
|
|
33156
33275
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
33157
33276
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
33158
33277
|
return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
|
|
33159
|
-
/* @__PURE__ */
|
|
33160
|
-
/* @__PURE__ */
|
|
33278
|
+
/* @__PURE__ */ jsx97(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
33279
|
+
/* @__PURE__ */ jsx97(
|
|
33161
33280
|
"div",
|
|
33162
33281
|
{
|
|
33163
33282
|
"data-tooltip-id": `remainingDays_${value}`,
|
|
33164
33283
|
className: "flex items-center w-fit cursor-context-menu",
|
|
33165
|
-
children: /* @__PURE__ */
|
|
33284
|
+
children: /* @__PURE__ */ jsx97(
|
|
33166
33285
|
"div",
|
|
33167
33286
|
{
|
|
33168
33287
|
className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
|
|
@@ -33175,7 +33294,7 @@ var RemainingDaysField = (props) => {
|
|
|
33175
33294
|
};
|
|
33176
33295
|
|
|
33177
33296
|
// src/widgets/basic/select-dropdown-field/select-dropdown.tsx
|
|
33178
|
-
import { Fragment as Fragment28, jsx as
|
|
33297
|
+
import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
33179
33298
|
var SelectDropdownField = (props) => {
|
|
33180
33299
|
const {
|
|
33181
33300
|
selection,
|
|
@@ -33196,9 +33315,9 @@ var SelectDropdownField = (props) => {
|
|
|
33196
33315
|
label: val[1]
|
|
33197
33316
|
})) : [];
|
|
33198
33317
|
if (!isForm && !isEditTable) {
|
|
33199
|
-
return /* @__PURE__ */
|
|
33318
|
+
return /* @__PURE__ */ jsx98("span", { children: options2?.find((item) => item?.value === value)?.label });
|
|
33200
33319
|
} else {
|
|
33201
|
-
return /* @__PURE__ */
|
|
33320
|
+
return /* @__PURE__ */ jsx98(
|
|
33202
33321
|
Controller,
|
|
33203
33322
|
{
|
|
33204
33323
|
name: name2 || "",
|
|
@@ -33233,7 +33352,7 @@ var SelectDropdownField = (props) => {
|
|
|
33233
33352
|
}
|
|
33234
33353
|
};
|
|
33235
33354
|
return /* @__PURE__ */ jsxs67(Fragment28, { children: [
|
|
33236
|
-
/* @__PURE__ */
|
|
33355
|
+
/* @__PURE__ */ jsx98("div", { className: "group", children: /* @__PURE__ */ jsx98(
|
|
33237
33356
|
StateManagedSelect$1,
|
|
33238
33357
|
{
|
|
33239
33358
|
...commonProps,
|
|
@@ -33276,11 +33395,11 @@ var SelectDropdownField = (props) => {
|
|
|
33276
33395
|
menuPortalTarget: typeof window !== "undefined" ? document.body : null,
|
|
33277
33396
|
components: {
|
|
33278
33397
|
IndicatorSeparator: () => null,
|
|
33279
|
-
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */
|
|
33398
|
+
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx98(components.DropdownIndicator, { ...props2 })
|
|
33280
33399
|
}
|
|
33281
33400
|
}
|
|
33282
33401
|
) }),
|
|
33283
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
33402
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx98("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33284
33403
|
] });
|
|
33285
33404
|
}
|
|
33286
33405
|
}
|
|
@@ -33289,7 +33408,7 @@ var SelectDropdownField = (props) => {
|
|
|
33289
33408
|
};
|
|
33290
33409
|
|
|
33291
33410
|
// src/widgets/basic/textarea-field/textarea.tsx
|
|
33292
|
-
import { jsx as
|
|
33411
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
33293
33412
|
var TextAreaField = (props) => {
|
|
33294
33413
|
const {
|
|
33295
33414
|
methods,
|
|
@@ -33313,9 +33432,9 @@ var TextAreaField = (props) => {
|
|
|
33313
33432
|
}
|
|
33314
33433
|
}) : {};
|
|
33315
33434
|
if (!isForm) {
|
|
33316
|
-
return /* @__PURE__ */
|
|
33435
|
+
return /* @__PURE__ */ jsx99("span", { children: value && typeof value === "object" ? value.display_name : value });
|
|
33317
33436
|
}
|
|
33318
|
-
return /* @__PURE__ */
|
|
33437
|
+
return /* @__PURE__ */ jsx99(
|
|
33319
33438
|
"textarea",
|
|
33320
33439
|
{
|
|
33321
33440
|
...formProps,
|
|
@@ -33331,7 +33450,7 @@ var TextAreaField = (props) => {
|
|
|
33331
33450
|
};
|
|
33332
33451
|
|
|
33333
33452
|
// src/widgets/basic/toggle-button-field/toggle-button.tsx
|
|
33334
|
-
import { jsx as
|
|
33453
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
33335
33454
|
var ToggleButtonField = (props) => {
|
|
33336
33455
|
const {
|
|
33337
33456
|
name: name2,
|
|
@@ -33341,13 +33460,13 @@ var ToggleButtonField = (props) => {
|
|
|
33341
33460
|
onChange: onChange2,
|
|
33342
33461
|
methods
|
|
33343
33462
|
} = props;
|
|
33344
|
-
return /* @__PURE__ */
|
|
33463
|
+
return /* @__PURE__ */ jsx100(
|
|
33345
33464
|
Controller,
|
|
33346
33465
|
{
|
|
33347
33466
|
name: name2 ?? "",
|
|
33348
33467
|
control: methods?.control,
|
|
33349
|
-
render: ({ field }) => /* @__PURE__ */
|
|
33350
|
-
/* @__PURE__ */
|
|
33468
|
+
render: ({ field }) => /* @__PURE__ */ jsx100("div", { className: "inline-flex items-center w-[34px]", children: /* @__PURE__ */ jsxs68("label", { className: "relative inline-block w-9 h-5 cursor-pointer", children: [
|
|
33469
|
+
/* @__PURE__ */ jsx100(
|
|
33351
33470
|
"input",
|
|
33352
33471
|
{
|
|
33353
33472
|
...field,
|
|
@@ -33366,12 +33485,12 @@ var ToggleButtonField = (props) => {
|
|
|
33366
33485
|
checked: field.value ?? false
|
|
33367
33486
|
}
|
|
33368
33487
|
),
|
|
33369
|
-
/* @__PURE__ */
|
|
33488
|
+
/* @__PURE__ */ jsx100(
|
|
33370
33489
|
"span",
|
|
33371
33490
|
{
|
|
33372
33491
|
className: `absolute top-0 left-0 right-0 bottom-0 rounded-full transition duration-300
|
|
33373
33492
|
${field.value ? "bg-primary" : "bg-gray-300"}`,
|
|
33374
|
-
children: /* @__PURE__ */
|
|
33493
|
+
children: /* @__PURE__ */ jsx100(
|
|
33375
33494
|
"span",
|
|
33376
33495
|
{
|
|
33377
33496
|
className: `absolute left-[2px] bottom-[2px] w-4 h-4 bg-white rounded-full transition duration-300
|
|
@@ -33387,7 +33506,7 @@ var ToggleButtonField = (props) => {
|
|
|
33387
33506
|
|
|
33388
33507
|
// src/widgets/basic/integer-field/integer.tsx
|
|
33389
33508
|
import { useEffect as useEffect23, useRef as useRef17, useState as useState20 } from "react";
|
|
33390
|
-
import { Fragment as Fragment29, jsx as
|
|
33509
|
+
import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
33391
33510
|
var IntegerField = (props) => {
|
|
33392
33511
|
const {
|
|
33393
33512
|
name: name2,
|
|
@@ -33405,9 +33524,9 @@ var IntegerField = (props) => {
|
|
|
33405
33524
|
} = props;
|
|
33406
33525
|
if (!isForm) {
|
|
33407
33526
|
const displayValue = value ?? defaultValue;
|
|
33408
|
-
return /* @__PURE__ */
|
|
33527
|
+
return /* @__PURE__ */ jsx101("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
|
|
33409
33528
|
}
|
|
33410
|
-
return /* @__PURE__ */
|
|
33529
|
+
return /* @__PURE__ */ jsx101(
|
|
33411
33530
|
Controller,
|
|
33412
33531
|
{
|
|
33413
33532
|
name: name2 || "",
|
|
@@ -33486,7 +33605,7 @@ var IntegerField = (props) => {
|
|
|
33486
33605
|
clearErrors(name2);
|
|
33487
33606
|
};
|
|
33488
33607
|
return /* @__PURE__ */ jsxs69(Fragment29, { children: [
|
|
33489
|
-
/* @__PURE__ */
|
|
33608
|
+
/* @__PURE__ */ jsx101(
|
|
33490
33609
|
"input",
|
|
33491
33610
|
{
|
|
33492
33611
|
ref: inputRef,
|
|
@@ -33520,7 +33639,7 @@ var IntegerField = (props) => {
|
|
|
33520
33639
|
`
|
|
33521
33640
|
}
|
|
33522
33641
|
),
|
|
33523
|
-
error2 && isEditTable && /* @__PURE__ */
|
|
33642
|
+
error2 && isEditTable && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33524
33643
|
] });
|
|
33525
33644
|
}
|
|
33526
33645
|
}
|
|
@@ -33528,7 +33647,7 @@ var IntegerField = (props) => {
|
|
|
33528
33647
|
};
|
|
33529
33648
|
|
|
33530
33649
|
// src/widgets/basic/status-dropdown-field/status-dropdown.tsx
|
|
33531
|
-
import { jsx as
|
|
33650
|
+
import { jsx as jsx102, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
33532
33651
|
var StatusDropdownField = (props) => {
|
|
33533
33652
|
const {
|
|
33534
33653
|
buttonRef,
|
|
@@ -33546,7 +33665,7 @@ var StatusDropdownField = (props) => {
|
|
|
33546
33665
|
ref: buttonRef,
|
|
33547
33666
|
className: isForm ? "absolute top-7 right-6 z-10" : void 0,
|
|
33548
33667
|
children: [
|
|
33549
|
-
/* @__PURE__ */
|
|
33668
|
+
/* @__PURE__ */ jsx102(
|
|
33550
33669
|
"button",
|
|
33551
33670
|
{
|
|
33552
33671
|
type: "button",
|
|
@@ -33554,7 +33673,7 @@ var StatusDropdownField = (props) => {
|
|
|
33554
33673
|
className: `transition-all rounded-full size-5 cursor-pointer shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] focus:!shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-[#dbe0e6] ${state == "normal" ? "bg-[#e9ecef]" : state == "done" ? "bg-primary" : "bg-red-500"}`
|
|
33555
33674
|
}
|
|
33556
33675
|
),
|
|
33557
|
-
isOpen && /* @__PURE__ */
|
|
33676
|
+
isOpen && /* @__PURE__ */ jsx102("div", { className: "absolute w-[200px] top-full bg-white transition-all right-0 flex flex-col rounded-lg z-10 shadow-md border !border-[#dbe0e6] overflow-hidden", children: selection?.map((item, index4) => {
|
|
33558
33677
|
const isActive = item[0] == state;
|
|
33559
33678
|
return /* @__PURE__ */ jsxs70(
|
|
33560
33679
|
"div",
|
|
@@ -33562,15 +33681,15 @@ var StatusDropdownField = (props) => {
|
|
|
33562
33681
|
className: `cursor-pointer relative hover:bg-gray-200 pl-[12px] pr-[20px] py-[5px] flex items-center justify-start gap-2 ${isActive ? "bg-gray-100" : ""}`,
|
|
33563
33682
|
onClick: () => handleClick(item[0]),
|
|
33564
33683
|
children: [
|
|
33565
|
-
/* @__PURE__ */
|
|
33684
|
+
/* @__PURE__ */ jsx102("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx102(CheckIcon, {}) }),
|
|
33566
33685
|
/* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
|
|
33567
|
-
/* @__PURE__ */
|
|
33686
|
+
/* @__PURE__ */ jsx102(
|
|
33568
33687
|
"div",
|
|
33569
33688
|
{
|
|
33570
33689
|
className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
|
|
33571
33690
|
}
|
|
33572
33691
|
),
|
|
33573
|
-
/* @__PURE__ */
|
|
33692
|
+
/* @__PURE__ */ jsx102("span", { className: "text-sm", children: item[1] })
|
|
33574
33693
|
] })
|
|
33575
33694
|
]
|
|
33576
33695
|
},
|
|
@@ -33584,7 +33703,7 @@ var StatusDropdownField = (props) => {
|
|
|
33584
33703
|
|
|
33585
33704
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
33586
33705
|
import { createPortal as createPortal5 } from "react-dom";
|
|
33587
|
-
import { jsx as
|
|
33706
|
+
import { jsx as jsx103, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
33588
33707
|
var Many2ManyField = (props) => {
|
|
33589
33708
|
const {
|
|
33590
33709
|
aid,
|
|
@@ -33644,8 +33763,8 @@ var Many2ManyField = (props) => {
|
|
|
33644
33763
|
},
|
|
33645
33764
|
className: "fixed bottom-0 left-0 right-0 top-0",
|
|
33646
33765
|
children: [
|
|
33647
|
-
/* @__PURE__ */
|
|
33648
|
-
/* @__PURE__ */
|
|
33766
|
+
/* @__PURE__ */ jsx103("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
33767
|
+
/* @__PURE__ */ jsx103("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
|
|
33649
33768
|
"div",
|
|
33650
33769
|
{
|
|
33651
33770
|
style: {
|
|
@@ -33654,11 +33773,11 @@ var Many2ManyField = (props) => {
|
|
|
33654
33773
|
className: "relative p-4 flex flex-col gap-2 max-w-full lg:max-w-[1000px] lg:min-w-[1000px] transform rounded-3xl bg-[#FFF] min-h-[90%] max-h-[90%] h-fit",
|
|
33655
33774
|
children: [
|
|
33656
33775
|
/* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
33657
|
-
/* @__PURE__ */
|
|
33658
|
-
/* @__PURE__ */
|
|
33776
|
+
/* @__PURE__ */ jsx103("div", { className: "text-[20px] font-semibold", children: title }),
|
|
33777
|
+
/* @__PURE__ */ jsx103("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx103(CloseIcon, {}) })
|
|
33659
33778
|
] }),
|
|
33660
33779
|
/* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
|
|
33661
|
-
/* @__PURE__ */
|
|
33780
|
+
/* @__PURE__ */ jsx103("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx103(
|
|
33662
33781
|
Search,
|
|
33663
33782
|
{
|
|
33664
33783
|
removeSearchItems,
|
|
@@ -33691,7 +33810,7 @@ var Many2ManyField = (props) => {
|
|
|
33691
33810
|
clearSearch
|
|
33692
33811
|
}
|
|
33693
33812
|
) }),
|
|
33694
|
-
/* @__PURE__ */
|
|
33813
|
+
/* @__PURE__ */ jsx103(
|
|
33695
33814
|
PaginationView,
|
|
33696
33815
|
{
|
|
33697
33816
|
className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
|
|
@@ -33708,20 +33827,20 @@ var Many2ManyField = (props) => {
|
|
|
33708
33827
|
}
|
|
33709
33828
|
)
|
|
33710
33829
|
] }),
|
|
33711
|
-
!isDataLoading && isDataFetched || isPlaceholderData ? /* @__PURE__ */
|
|
33830
|
+
!isDataLoading && isDataFetched || isPlaceholderData ? /* @__PURE__ */ jsx103("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx103("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx103(
|
|
33712
33831
|
"div",
|
|
33713
33832
|
{
|
|
33714
33833
|
className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
|
|
33715
|
-
children: /* @__PURE__ */
|
|
33834
|
+
children: /* @__PURE__ */ jsx103("div", { className: "flex flex-col gap-[16px] w-full h-full", children: /* @__PURE__ */ jsx103("div", { className: `relative w-full h-full`, children: /* @__PURE__ */ jsx103(
|
|
33716
33835
|
"div",
|
|
33717
33836
|
{
|
|
33718
33837
|
className: `flex w-full items-center h-full overflow-auto `,
|
|
33719
|
-
children: /* @__PURE__ */
|
|
33838
|
+
children: /* @__PURE__ */ jsx103("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
|
|
33720
33839
|
"table",
|
|
33721
33840
|
{
|
|
33722
33841
|
className: `relative w-full bg-white custom-dropdown `,
|
|
33723
33842
|
children: [
|
|
33724
|
-
/* @__PURE__ */
|
|
33843
|
+
/* @__PURE__ */ jsx103(
|
|
33725
33844
|
TableHead,
|
|
33726
33845
|
{
|
|
33727
33846
|
columns,
|
|
@@ -33731,7 +33850,7 @@ var Many2ManyField = (props) => {
|
|
|
33731
33850
|
handleCheckBoxAll
|
|
33732
33851
|
}
|
|
33733
33852
|
),
|
|
33734
|
-
/* @__PURE__ */
|
|
33853
|
+
/* @__PURE__ */ jsx103(
|
|
33735
33854
|
TableBody,
|
|
33736
33855
|
{
|
|
33737
33856
|
columns,
|
|
@@ -33771,9 +33890,9 @@ var Many2ManyField = (props) => {
|
|
|
33771
33890
|
}
|
|
33772
33891
|
) }) })
|
|
33773
33892
|
}
|
|
33774
|
-
) }) }) : /* @__PURE__ */
|
|
33893
|
+
) }) }) : /* @__PURE__ */ jsx103(LayerLoading, {}),
|
|
33775
33894
|
/* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
|
|
33776
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
33895
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx103(
|
|
33777
33896
|
"button",
|
|
33778
33897
|
{
|
|
33779
33898
|
disabled: selectedRowKeys?.length === 0,
|
|
@@ -33783,7 +33902,7 @@ var Many2ManyField = (props) => {
|
|
|
33783
33902
|
children: instance.t("choose")
|
|
33784
33903
|
}
|
|
33785
33904
|
),
|
|
33786
|
-
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */
|
|
33905
|
+
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx103(
|
|
33787
33906
|
"button",
|
|
33788
33907
|
{
|
|
33789
33908
|
type: "button",
|
|
@@ -33799,7 +33918,7 @@ var Many2ManyField = (props) => {
|
|
|
33799
33918
|
children: instance.t("new")
|
|
33800
33919
|
}
|
|
33801
33920
|
),
|
|
33802
|
-
/* @__PURE__ */
|
|
33921
|
+
/* @__PURE__ */ jsx103(
|
|
33803
33922
|
"button",
|
|
33804
33923
|
{
|
|
33805
33924
|
type: "button",
|
|
@@ -33821,7 +33940,7 @@ var Many2ManyField = (props) => {
|
|
|
33821
33940
|
|
|
33822
33941
|
// src/widgets/basic/many2one-field/many2one.tsx
|
|
33823
33942
|
import React17, { useEffect as useEffect24, useMemo as useMemo9 } from "react";
|
|
33824
|
-
import { Fragment as Fragment30, jsx as
|
|
33943
|
+
import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
33825
33944
|
var CustomMenuList = (props) => {
|
|
33826
33945
|
const { options: options2, children, selectProps } = props;
|
|
33827
33946
|
const { setIsShowModalMany2Many, searchable } = selectProps;
|
|
@@ -33880,7 +33999,7 @@ var Many2OneField = (props) => {
|
|
|
33880
33999
|
if (!isForm && !isEditTable) {
|
|
33881
34000
|
const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue.id : propValue;
|
|
33882
34001
|
return /* @__PURE__ */ jsxs72(Fragment30, { children: [
|
|
33883
|
-
allowShowDetail && /* @__PURE__ */
|
|
34002
|
+
allowShowDetail && /* @__PURE__ */ jsx104(
|
|
33884
34003
|
ModalDetail,
|
|
33885
34004
|
{
|
|
33886
34005
|
idToolTip: String(name2) + Number(index4),
|
|
@@ -33893,7 +34012,7 @@ var Many2OneField = (props) => {
|
|
|
33893
34012
|
renderDetail
|
|
33894
34013
|
}
|
|
33895
34014
|
),
|
|
33896
|
-
/* @__PURE__ */
|
|
34015
|
+
/* @__PURE__ */ jsx104(
|
|
33897
34016
|
"span",
|
|
33898
34017
|
{
|
|
33899
34018
|
className: "cursor-pointer",
|
|
@@ -33904,13 +34023,13 @@ var Many2OneField = (props) => {
|
|
|
33904
34023
|
)
|
|
33905
34024
|
] });
|
|
33906
34025
|
}
|
|
33907
|
-
return /* @__PURE__ */
|
|
34026
|
+
return /* @__PURE__ */ jsx104(Fragment30, { children: /* @__PURE__ */ jsx104(
|
|
33908
34027
|
"div",
|
|
33909
34028
|
{
|
|
33910
34029
|
id: name2,
|
|
33911
34030
|
"data-tooltip-id": name2,
|
|
33912
34031
|
className: `inline-block w-full ${readonly && "cursor-not-allowed"}`,
|
|
33913
|
-
children: /* @__PURE__ */
|
|
34032
|
+
children: /* @__PURE__ */ jsx104(
|
|
33914
34033
|
Controller,
|
|
33915
34034
|
{
|
|
33916
34035
|
name: name2 ?? "",
|
|
@@ -33932,7 +34051,7 @@ var Many2OneField = (props) => {
|
|
|
33932
34051
|
}
|
|
33933
34052
|
}, [selectedOption]);
|
|
33934
34053
|
return /* @__PURE__ */ jsxs72("div", { className: "group", children: [
|
|
33935
|
-
/* @__PURE__ */
|
|
34054
|
+
/* @__PURE__ */ jsx104(
|
|
33936
34055
|
StateManagedSelect$1,
|
|
33937
34056
|
{
|
|
33938
34057
|
menuShouldScrollIntoView: false,
|
|
@@ -33984,7 +34103,7 @@ var Many2OneField = (props) => {
|
|
|
33984
34103
|
})
|
|
33985
34104
|
},
|
|
33986
34105
|
components: {
|
|
33987
|
-
MenuList: (menuListProps) => /* @__PURE__ */
|
|
34106
|
+
MenuList: (menuListProps) => /* @__PURE__ */ jsx104(
|
|
33988
34107
|
CustomMenuList,
|
|
33989
34108
|
{
|
|
33990
34109
|
...menuListProps,
|
|
@@ -33995,13 +34114,13 @@ var Many2OneField = (props) => {
|
|
|
33995
34114
|
}
|
|
33996
34115
|
),
|
|
33997
34116
|
IndicatorSeparator: () => null,
|
|
33998
|
-
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */
|
|
34117
|
+
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx104(components.DropdownIndicator, { ...props2 })
|
|
33999
34118
|
},
|
|
34000
34119
|
isDisabled: readonly,
|
|
34001
34120
|
noOptionsMessage: () => instance.t(isFetching ? "loading" : "no-available")
|
|
34002
34121
|
}
|
|
34003
34122
|
),
|
|
34004
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
34123
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
34005
34124
|
] });
|
|
34006
34125
|
}
|
|
34007
34126
|
}
|
|
@@ -34011,7 +34130,7 @@ var Many2OneField = (props) => {
|
|
|
34011
34130
|
};
|
|
34012
34131
|
|
|
34013
34132
|
// src/widgets/basic/status-bar-field/duration/duration.tsx
|
|
34014
|
-
import { jsx as
|
|
34133
|
+
import { jsx as jsx105, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
34015
34134
|
var StatusbarDurationField = (props) => {
|
|
34016
34135
|
const {
|
|
34017
34136
|
disabled,
|
|
@@ -34021,12 +34140,12 @@ var StatusbarDurationField = (props) => {
|
|
|
34021
34140
|
defaultValue,
|
|
34022
34141
|
setModalStatus
|
|
34023
34142
|
} = props;
|
|
34024
|
-
return /* @__PURE__ */
|
|
34143
|
+
return /* @__PURE__ */ jsx105(
|
|
34025
34144
|
"div",
|
|
34026
34145
|
{
|
|
34027
34146
|
className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
|
|
34028
34147
|
children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
|
|
34029
|
-
/* @__PURE__ */
|
|
34148
|
+
/* @__PURE__ */ jsx105("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
|
|
34030
34149
|
const value = option?.id === defaultValue;
|
|
34031
34150
|
return /* @__PURE__ */ jsxs73(
|
|
34032
34151
|
"label",
|
|
@@ -34038,7 +34157,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34038
34157
|
${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
|
|
34039
34158
|
`,
|
|
34040
34159
|
children: [
|
|
34041
|
-
/* @__PURE__ */
|
|
34160
|
+
/* @__PURE__ */ jsx105(
|
|
34042
34161
|
"input",
|
|
34043
34162
|
{
|
|
34044
34163
|
type: "radio",
|
|
@@ -34048,7 +34167,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34048
34167
|
}
|
|
34049
34168
|
),
|
|
34050
34169
|
option?.name,
|
|
34051
|
-
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */
|
|
34170
|
+
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx105(
|
|
34052
34171
|
"div",
|
|
34053
34172
|
{
|
|
34054
34173
|
className: `absolute top-[5px] bg-[#dee2e6] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45 group-hover:bg-[#ced4da]
|
|
@@ -34069,8 +34188,8 @@ var StatusbarDurationField = (props) => {
|
|
|
34069
34188
|
onClick: () => setModalStatus(!modelStatus),
|
|
34070
34189
|
className: "w-[24px] h-[24px] cursor-pointer relative",
|
|
34071
34190
|
children: [
|
|
34072
|
-
/* @__PURE__ */
|
|
34073
|
-
modelStatus && /* @__PURE__ */
|
|
34191
|
+
/* @__PURE__ */ jsx105(MoreIcon, {}),
|
|
34192
|
+
modelStatus && /* @__PURE__ */ jsx105(
|
|
34074
34193
|
"div",
|
|
34075
34194
|
{
|
|
34076
34195
|
onClick: (e3) => e3.stopPropagation(),
|
|
@@ -34079,7 +34198,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34079
34198
|
(item) => item?.fold && item.id !== defaultValue
|
|
34080
34199
|
)?.map((option) => {
|
|
34081
34200
|
const value = option?.id === defaultValue;
|
|
34082
|
-
return /* @__PURE__ */
|
|
34201
|
+
return /* @__PURE__ */ jsx105(
|
|
34083
34202
|
"div",
|
|
34084
34203
|
{
|
|
34085
34204
|
className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
|
|
@@ -34101,11 +34220,11 @@ var StatusbarDurationField = (props) => {
|
|
|
34101
34220
|
|
|
34102
34221
|
// src/widgets/basic/status-bar-field/option/option.tsx
|
|
34103
34222
|
import { useMemo as useMemo10 } from "react";
|
|
34104
|
-
import { jsx as
|
|
34223
|
+
import { jsx as jsx106, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
34105
34224
|
var StatusBarOptionField = (props) => {
|
|
34106
34225
|
const { selection, defaultValue } = props;
|
|
34107
34226
|
const memoizedStatusOptions = useMemo10(() => selection, [selection]);
|
|
34108
|
-
return /* @__PURE__ */
|
|
34227
|
+
return /* @__PURE__ */ jsx106("div", { className: "flex items-center flex-wrap", children: memoizedStatusOptions?.map((option, index4) => {
|
|
34109
34228
|
const value = option?.[0] === defaultValue;
|
|
34110
34229
|
return /* @__PURE__ */ jsxs74(
|
|
34111
34230
|
"label",
|
|
@@ -34116,9 +34235,9 @@ var StatusBarOptionField = (props) => {
|
|
|
34116
34235
|
${index4 === memoizedStatusOptions?.length - 1 ? "rounded-r-xl!" : "rounded-none"}
|
|
34117
34236
|
`,
|
|
34118
34237
|
children: [
|
|
34119
|
-
/* @__PURE__ */
|
|
34238
|
+
/* @__PURE__ */ jsx106("input", { type: "radio", checked: value, className: "hidden", disabled: true }),
|
|
34120
34239
|
option[1],
|
|
34121
|
-
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */
|
|
34240
|
+
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx106(
|
|
34122
34241
|
"div",
|
|
34123
34242
|
{
|
|
34124
34243
|
className: `absolute top-[5px] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45
|
|
@@ -34134,7 +34253,7 @@ var StatusBarOptionField = (props) => {
|
|
|
34134
34253
|
};
|
|
34135
34254
|
|
|
34136
34255
|
// src/widgets/basic/date-option-field/date-option.tsx
|
|
34137
|
-
import { jsx as
|
|
34256
|
+
import { jsx as jsx107, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
34138
34257
|
var DateOptionField = (props) => {
|
|
34139
34258
|
const {
|
|
34140
34259
|
name: name2,
|
|
@@ -34145,7 +34264,7 @@ var DateOptionField = (props) => {
|
|
|
34145
34264
|
string,
|
|
34146
34265
|
onChange: onChange2
|
|
34147
34266
|
} = props;
|
|
34148
|
-
return /* @__PURE__ */
|
|
34267
|
+
return /* @__PURE__ */ jsx107(
|
|
34149
34268
|
Controller,
|
|
34150
34269
|
{
|
|
34151
34270
|
name: name2 ?? "",
|
|
@@ -34157,7 +34276,7 @@ var DateOptionField = (props) => {
|
|
|
34157
34276
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
34158
34277
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
34159
34278
|
children: [
|
|
34160
|
-
/* @__PURE__ */
|
|
34279
|
+
/* @__PURE__ */ jsx107(
|
|
34161
34280
|
"input",
|
|
34162
34281
|
{
|
|
34163
34282
|
type: "checkbox",
|
|
@@ -34199,6 +34318,7 @@ export {
|
|
|
34199
34318
|
DownLoadBinaryField,
|
|
34200
34319
|
DownloadFileField,
|
|
34201
34320
|
DropdownField,
|
|
34321
|
+
EmptyTable,
|
|
34202
34322
|
FeeField,
|
|
34203
34323
|
FileUploadField,
|
|
34204
34324
|
FloatField,
|