@fctc/sme-widget-ui 1.1.7 → 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 +961 -839
- package/dist/index.mjs +858 -736
- package/dist/widgets.d.mts +5 -1
- package/dist/widgets.d.ts +5 -1
- package/dist/widgets.js +950 -826
- package/dist/widgets.mjs +847 -724
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4974,16 +4974,16 @@ var AddIcon = () => {
|
|
|
4974
4974
|
"svg",
|
|
4975
4975
|
{
|
|
4976
4976
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4977
|
+
width: "16",
|
|
4978
|
+
height: "16",
|
|
4979
|
+
viewBox: "0 0 16 16",
|
|
4977
4980
|
fill: "none",
|
|
4978
|
-
viewBox: "0 0 24 24",
|
|
4979
|
-
stroke: "currentColor",
|
|
4980
4981
|
children: /* @__PURE__ */ jsx(
|
|
4981
4982
|
"path",
|
|
4982
4983
|
{
|
|
4983
|
-
|
|
4984
|
-
|
|
4985
|
-
|
|
4986
|
-
d: "M12 4v16m8-8H4"
|
|
4984
|
+
d: "M8.09961 4.30078V7.90039H11.7002V8.10059H8.09961V11.7012H7.89941V8.10059H4.2998V7.90039H7.89941V4.30078H8.09961Z",
|
|
4985
|
+
fill: "#060606",
|
|
4986
|
+
stroke: "currentColor"
|
|
4987
4987
|
}
|
|
4988
4988
|
)
|
|
4989
4989
|
}
|
|
@@ -6379,222 +6379,14 @@ var ZipIcon = () => {
|
|
|
6379
6379
|
);
|
|
6380
6380
|
};
|
|
6381
6381
|
|
|
6382
|
-
// src/icons/empty-data.tsx
|
|
6383
|
-
import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6384
|
-
var EmptyData = ({ className }) => {
|
|
6385
|
-
return /* @__PURE__ */ jsxs17(
|
|
6386
|
-
"svg",
|
|
6387
|
-
{
|
|
6388
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
6389
|
-
width: "120",
|
|
6390
|
-
height: "140",
|
|
6391
|
-
viewBox: "0 0 120 140",
|
|
6392
|
-
fill: "none",
|
|
6393
|
-
children: [
|
|
6394
|
-
/* @__PURE__ */ jsxs17("g", { clipPath: "url(#clip0_5603_10527)", children: [
|
|
6395
|
-
/* @__PURE__ */ jsx32("g", { filter: "url(#filter0_d_5603_10527)", children: /* @__PURE__ */ jsx32(
|
|
6396
|
-
"path",
|
|
6397
|
-
{
|
|
6398
|
-
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",
|
|
6399
|
-
fill: "black"
|
|
6400
|
-
}
|
|
6401
|
-
) }),
|
|
6402
|
-
/* @__PURE__ */ jsx32(
|
|
6403
|
-
"path",
|
|
6404
|
-
{
|
|
6405
|
-
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",
|
|
6406
|
-
fill: className
|
|
6407
|
-
}
|
|
6408
|
-
),
|
|
6409
|
-
/* @__PURE__ */ jsx32(
|
|
6410
|
-
"mask",
|
|
6411
|
-
{
|
|
6412
|
-
id: "mask0_5603_10527",
|
|
6413
|
-
maskUnits: "userSpaceOnUse",
|
|
6414
|
-
x: "4",
|
|
6415
|
-
y: "12",
|
|
6416
|
-
width: "112",
|
|
6417
|
-
height: "123",
|
|
6418
|
-
children: /* @__PURE__ */ jsx32(
|
|
6419
|
-
"path",
|
|
6420
|
-
{
|
|
6421
|
-
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",
|
|
6422
|
-
fill: "white"
|
|
6423
|
-
}
|
|
6424
|
-
)
|
|
6425
|
-
}
|
|
6426
|
-
),
|
|
6427
|
-
/* @__PURE__ */ jsxs17("g", { mask: "url(#mask0_5603_10527)", children: [
|
|
6428
|
-
/* @__PURE__ */ jsx32(
|
|
6429
|
-
"path",
|
|
6430
|
-
{
|
|
6431
|
-
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",
|
|
6432
|
-
fill: "white"
|
|
6433
|
-
}
|
|
6434
|
-
),
|
|
6435
|
-
/* @__PURE__ */ jsx32(
|
|
6436
|
-
"path",
|
|
6437
|
-
{
|
|
6438
|
-
fillRule: "evenodd",
|
|
6439
|
-
clipRule: "evenodd",
|
|
6440
|
-
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",
|
|
6441
|
-
stroke: "#A1ACBA",
|
|
6442
|
-
strokeWidth: "2"
|
|
6443
|
-
}
|
|
6444
|
-
)
|
|
6445
|
-
] }),
|
|
6446
|
-
/* @__PURE__ */ jsx32(
|
|
6447
|
-
"mask",
|
|
6448
|
-
{
|
|
6449
|
-
id: "mask1_5603_10527",
|
|
6450
|
-
maskUnits: "userSpaceOnUse",
|
|
6451
|
-
x: "4",
|
|
6452
|
-
y: "12",
|
|
6453
|
-
width: "112",
|
|
6454
|
-
height: "123",
|
|
6455
|
-
children: /* @__PURE__ */ jsx32(
|
|
6456
|
-
"path",
|
|
6457
|
-
{
|
|
6458
|
-
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",
|
|
6459
|
-
fill: "white"
|
|
6460
|
-
}
|
|
6461
|
-
)
|
|
6462
|
-
}
|
|
6463
|
-
),
|
|
6464
|
-
/* @__PURE__ */ jsx32("g", { mask: "url(#mask1_5603_10527)", children: /* @__PURE__ */ jsx32(
|
|
6465
|
-
"path",
|
|
6466
|
-
{
|
|
6467
|
-
fillRule: "evenodd",
|
|
6468
|
-
clipRule: "evenodd",
|
|
6469
|
-
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",
|
|
6470
|
-
stroke: "#A1ACBA",
|
|
6471
|
-
strokeWidth: "2"
|
|
6472
|
-
}
|
|
6473
|
-
) }),
|
|
6474
|
-
/* @__PURE__ */ jsx32(
|
|
6475
|
-
"mask",
|
|
6476
|
-
{
|
|
6477
|
-
id: "mask2_5603_10527",
|
|
6478
|
-
maskUnits: "userSpaceOnUse",
|
|
6479
|
-
x: "4",
|
|
6480
|
-
y: "12",
|
|
6481
|
-
width: "112",
|
|
6482
|
-
height: "123",
|
|
6483
|
-
children: /* @__PURE__ */ jsx32(
|
|
6484
|
-
"path",
|
|
6485
|
-
{
|
|
6486
|
-
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",
|
|
6487
|
-
fill: "white"
|
|
6488
|
-
}
|
|
6489
|
-
)
|
|
6490
|
-
}
|
|
6491
|
-
),
|
|
6492
|
-
/* @__PURE__ */ jsx32("g", { mask: "url(#mask2_5603_10527)", children: /* @__PURE__ */ jsxs17("g", { opacity: "0.07", children: [
|
|
6493
|
-
/* @__PURE__ */ jsx32("path", { d: "M73.716 93H27V99.214H73.716V93Z", fill: "black" }),
|
|
6494
|
-
/* @__PURE__ */ jsx32("path", { d: "M95.812 101.699H27V107.913H95.812V101.699Z", fill: "black" }),
|
|
6495
|
-
/* @__PURE__ */ jsx32("path", { d: "M69.297 113.506H27V119.72H69.297V113.506Z", fill: "black" }),
|
|
6496
|
-
/* @__PURE__ */ jsx32("path", { d: "M79.398 124.07H27V130.284H79.398V124.07Z", fill: "black" })
|
|
6497
|
-
] }) }),
|
|
6498
|
-
/* @__PURE__ */ jsx32(
|
|
6499
|
-
"path",
|
|
6500
|
-
{
|
|
6501
|
-
d: "M17 16L8 7M22 11V2M5 22H14",
|
|
6502
|
-
stroke: "#A1ACBA",
|
|
6503
|
-
strokeWidth: "2",
|
|
6504
|
-
strokeLinecap: "round"
|
|
6505
|
-
}
|
|
6506
|
-
),
|
|
6507
|
-
/* @__PURE__ */ jsx32(
|
|
6508
|
-
"path",
|
|
6509
|
-
{
|
|
6510
|
-
d: "M44 62.998C60.5 71.998 77 62.998 77 62.998",
|
|
6511
|
-
stroke: "#A1ACBA",
|
|
6512
|
-
strokeWidth: "2",
|
|
6513
|
-
strokeLinecap: "round",
|
|
6514
|
-
strokeLinejoin: "round"
|
|
6515
|
-
}
|
|
6516
|
-
),
|
|
6517
|
-
/* @__PURE__ */ jsx32(
|
|
6518
|
-
"path",
|
|
6519
|
-
{
|
|
6520
|
-
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",
|
|
6521
|
-
fill: "#A1ACBA"
|
|
6522
|
-
}
|
|
6523
|
-
),
|
|
6524
|
-
/* @__PURE__ */ jsx32(
|
|
6525
|
-
"path",
|
|
6526
|
-
{
|
|
6527
|
-
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",
|
|
6528
|
-
fill: "#A1ACBA"
|
|
6529
|
-
}
|
|
6530
|
-
)
|
|
6531
|
-
] }),
|
|
6532
|
-
/* @__PURE__ */ jsxs17("defs", { children: [
|
|
6533
|
-
/* @__PURE__ */ jsxs17(
|
|
6534
|
-
"filter",
|
|
6535
|
-
{
|
|
6536
|
-
id: "filter0_d_5603_10527",
|
|
6537
|
-
x: "0",
|
|
6538
|
-
y: "20.6133",
|
|
6539
|
-
width: "120",
|
|
6540
|
-
height: "120",
|
|
6541
|
-
filterUnits: "userSpaceOnUse",
|
|
6542
|
-
colorInterpolationFilters: "sRGB",
|
|
6543
|
-
children: [
|
|
6544
|
-
/* @__PURE__ */ jsx32("feFlood", { "flood-opacity": "0", result: "BackgroundImageFix" }),
|
|
6545
|
-
/* @__PURE__ */ jsx32(
|
|
6546
|
-
"feColorMatrix",
|
|
6547
|
-
{
|
|
6548
|
-
in: "SourceAlpha",
|
|
6549
|
-
type: "matrix",
|
|
6550
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",
|
|
6551
|
-
result: "hardAlpha"
|
|
6552
|
-
}
|
|
6553
|
-
),
|
|
6554
|
-
/* @__PURE__ */ jsx32("feOffset", { dy: "2" }),
|
|
6555
|
-
/* @__PURE__ */ jsx32("feGaussianBlur", { stdDeviation: "2" }),
|
|
6556
|
-
/* @__PURE__ */ jsx32(
|
|
6557
|
-
"feColorMatrix",
|
|
6558
|
-
{
|
|
6559
|
-
type: "matrix",
|
|
6560
|
-
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.106063 0"
|
|
6561
|
-
}
|
|
6562
|
-
),
|
|
6563
|
-
/* @__PURE__ */ jsx32(
|
|
6564
|
-
"feBlend",
|
|
6565
|
-
{
|
|
6566
|
-
mode: "normal",
|
|
6567
|
-
in2: "BackgroundImageFix",
|
|
6568
|
-
result: "effect1_dropShadow_5603_10527"
|
|
6569
|
-
}
|
|
6570
|
-
),
|
|
6571
|
-
/* @__PURE__ */ jsx32(
|
|
6572
|
-
"feBlend",
|
|
6573
|
-
{
|
|
6574
|
-
mode: "normal",
|
|
6575
|
-
in: "SourceGraphic",
|
|
6576
|
-
in2: "effect1_dropShadow_5603_10527",
|
|
6577
|
-
result: "shape"
|
|
6578
|
-
}
|
|
6579
|
-
)
|
|
6580
|
-
]
|
|
6581
|
-
}
|
|
6582
|
-
),
|
|
6583
|
-
/* @__PURE__ */ jsx32("clipPath", { id: "clip0_5603_10527", children: /* @__PURE__ */ jsx32("rect", { width: "120", height: "140", fill: "white" }) })
|
|
6584
|
-
] })
|
|
6585
|
-
]
|
|
6586
|
-
}
|
|
6587
|
-
);
|
|
6588
|
-
};
|
|
6589
|
-
|
|
6590
6382
|
// src/icons/loading-icon.tsx
|
|
6591
|
-
import { jsx as
|
|
6383
|
+
import { jsx as jsx32, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
6592
6384
|
var LoadingIcon = ({
|
|
6593
6385
|
width = 15,
|
|
6594
6386
|
height = 15,
|
|
6595
6387
|
...props
|
|
6596
6388
|
}) => {
|
|
6597
|
-
return /* @__PURE__ */
|
|
6389
|
+
return /* @__PURE__ */ jsx32(
|
|
6598
6390
|
"svg",
|
|
6599
6391
|
{
|
|
6600
6392
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6609,8 +6401,8 @@ var LoadingIcon = ({
|
|
|
6609
6401
|
background: "transparent"
|
|
6610
6402
|
},
|
|
6611
6403
|
...props,
|
|
6612
|
-
children: /* @__PURE__ */
|
|
6613
|
-
/* @__PURE__ */
|
|
6404
|
+
children: /* @__PURE__ */ jsxs17("g", { children: [
|
|
6405
|
+
/* @__PURE__ */ jsx32(
|
|
6614
6406
|
"circle",
|
|
6615
6407
|
{
|
|
6616
6408
|
strokeDasharray: "141.37166941154067 49.12388980384689",
|
|
@@ -6620,7 +6412,7 @@ var LoadingIcon = ({
|
|
|
6620
6412
|
fill: "none",
|
|
6621
6413
|
cy: "50",
|
|
6622
6414
|
cx: "50",
|
|
6623
|
-
children: /* @__PURE__ */
|
|
6415
|
+
children: /* @__PURE__ */ jsx32(
|
|
6624
6416
|
"animateTransform",
|
|
6625
6417
|
{
|
|
6626
6418
|
keyTimes: "0;1",
|
|
@@ -6633,15 +6425,15 @@ var LoadingIcon = ({
|
|
|
6633
6425
|
)
|
|
6634
6426
|
}
|
|
6635
6427
|
),
|
|
6636
|
-
/* @__PURE__ */
|
|
6428
|
+
/* @__PURE__ */ jsx32("g", {})
|
|
6637
6429
|
] })
|
|
6638
6430
|
}
|
|
6639
6431
|
);
|
|
6640
6432
|
};
|
|
6641
6433
|
|
|
6642
6434
|
// src/icons/paid-icon.tsx
|
|
6643
|
-
import { jsx as
|
|
6644
|
-
var PaidIcon = () => /* @__PURE__ */
|
|
6435
|
+
import { jsx as jsx33, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
6436
|
+
var PaidIcon = () => /* @__PURE__ */ jsxs18(
|
|
6645
6437
|
"svg",
|
|
6646
6438
|
{
|
|
6647
6439
|
width: "208",
|
|
@@ -6650,15 +6442,15 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6650
6442
|
fill: "none",
|
|
6651
6443
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6652
6444
|
children: [
|
|
6653
|
-
/* @__PURE__ */
|
|
6654
|
-
/* @__PURE__ */
|
|
6445
|
+
/* @__PURE__ */ jsxs18("g", { opacity: "0.5", filter: "url(#filter0_d_615_26793)", children: [
|
|
6446
|
+
/* @__PURE__ */ jsx33(
|
|
6655
6447
|
"path",
|
|
6656
6448
|
{
|
|
6657
6449
|
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",
|
|
6658
6450
|
fill: "#11A52B"
|
|
6659
6451
|
}
|
|
6660
6452
|
),
|
|
6661
|
-
/* @__PURE__ */
|
|
6453
|
+
/* @__PURE__ */ jsx33(
|
|
6662
6454
|
"path",
|
|
6663
6455
|
{
|
|
6664
6456
|
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",
|
|
@@ -6666,7 +6458,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6666
6458
|
strokeWidth: "0.773087"
|
|
6667
6459
|
}
|
|
6668
6460
|
),
|
|
6669
|
-
/* @__PURE__ */
|
|
6461
|
+
/* @__PURE__ */ jsx33(
|
|
6670
6462
|
"path",
|
|
6671
6463
|
{
|
|
6672
6464
|
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",
|
|
@@ -6674,7 +6466,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6674
6466
|
strokeWidth: "3.09235"
|
|
6675
6467
|
}
|
|
6676
6468
|
),
|
|
6677
|
-
/* @__PURE__ */
|
|
6469
|
+
/* @__PURE__ */ jsx33(
|
|
6678
6470
|
"path",
|
|
6679
6471
|
{
|
|
6680
6472
|
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",
|
|
@@ -6682,7 +6474,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6682
6474
|
strokeWidth: "0.773087"
|
|
6683
6475
|
}
|
|
6684
6476
|
),
|
|
6685
|
-
/* @__PURE__ */
|
|
6477
|
+
/* @__PURE__ */ jsx33("foreignObject", { x: "-10.1151", y: "14.174", width: "228.426", height: "145.071", children: /* @__PURE__ */ jsx33(
|
|
6686
6478
|
"div",
|
|
6687
6479
|
{
|
|
6688
6480
|
style: {
|
|
@@ -6693,7 +6485,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6693
6485
|
}
|
|
6694
6486
|
}
|
|
6695
6487
|
) }),
|
|
6696
|
-
/* @__PURE__ */
|
|
6488
|
+
/* @__PURE__ */ jsx33(
|
|
6697
6489
|
"rect",
|
|
6698
6490
|
{
|
|
6699
6491
|
"data-figma-bg-blur-radius": "15.4617",
|
|
@@ -6705,7 +6497,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6705
6497
|
fillOpacity: "0.4"
|
|
6706
6498
|
}
|
|
6707
6499
|
),
|
|
6708
|
-
/* @__PURE__ */
|
|
6500
|
+
/* @__PURE__ */ jsx33(
|
|
6709
6501
|
"rect",
|
|
6710
6502
|
{
|
|
6711
6503
|
x: "-0.493769",
|
|
@@ -6718,7 +6510,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6718
6510
|
strokeWidth: "0.773087"
|
|
6719
6511
|
}
|
|
6720
6512
|
),
|
|
6721
|
-
/* @__PURE__ */
|
|
6513
|
+
/* @__PURE__ */ jsx33(
|
|
6722
6514
|
"path",
|
|
6723
6515
|
{
|
|
6724
6516
|
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",
|
|
@@ -6726,8 +6518,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6726
6518
|
}
|
|
6727
6519
|
)
|
|
6728
6520
|
] }),
|
|
6729
|
-
/* @__PURE__ */
|
|
6730
|
-
/* @__PURE__ */
|
|
6521
|
+
/* @__PURE__ */ jsxs18("defs", { children: [
|
|
6522
|
+
/* @__PURE__ */ jsxs18(
|
|
6731
6523
|
"filter",
|
|
6732
6524
|
{
|
|
6733
6525
|
id: "filter0_d_615_26793",
|
|
@@ -6738,8 +6530,8 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6738
6530
|
filterUnits: "userSpaceOnUse",
|
|
6739
6531
|
colorInterpolationFilters: "sRGB",
|
|
6740
6532
|
children: [
|
|
6741
|
-
/* @__PURE__ */
|
|
6742
|
-
/* @__PURE__ */
|
|
6533
|
+
/* @__PURE__ */ jsx33("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }),
|
|
6534
|
+
/* @__PURE__ */ jsx33(
|
|
6743
6535
|
"feColorMatrix",
|
|
6744
6536
|
{
|
|
6745
6537
|
in: "SourceAlpha",
|
|
@@ -6748,17 +6540,17 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6748
6540
|
result: "hardAlpha"
|
|
6749
6541
|
}
|
|
6750
6542
|
),
|
|
6751
|
-
/* @__PURE__ */
|
|
6752
|
-
/* @__PURE__ */
|
|
6753
|
-
/* @__PURE__ */
|
|
6754
|
-
/* @__PURE__ */
|
|
6543
|
+
/* @__PURE__ */ jsx33("feOffset", { dy: "4" }),
|
|
6544
|
+
/* @__PURE__ */ jsx33("feGaussianBlur", { stdDeviation: "2" }),
|
|
6545
|
+
/* @__PURE__ */ jsx33("feComposite", { in2: "hardAlpha", operator: "out" }),
|
|
6546
|
+
/* @__PURE__ */ jsx33(
|
|
6755
6547
|
"feColorMatrix",
|
|
6756
6548
|
{
|
|
6757
6549
|
type: "matrix",
|
|
6758
6550
|
values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"
|
|
6759
6551
|
}
|
|
6760
6552
|
),
|
|
6761
|
-
/* @__PURE__ */
|
|
6553
|
+
/* @__PURE__ */ jsx33(
|
|
6762
6554
|
"feBlend",
|
|
6763
6555
|
{
|
|
6764
6556
|
mode: "normal",
|
|
@@ -6766,7 +6558,7 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6766
6558
|
result: "effect1_dropShadow_615_26793"
|
|
6767
6559
|
}
|
|
6768
6560
|
),
|
|
6769
|
-
/* @__PURE__ */
|
|
6561
|
+
/* @__PURE__ */ jsx33(
|
|
6770
6562
|
"feBlend",
|
|
6771
6563
|
{
|
|
6772
6564
|
mode: "normal",
|
|
@@ -6778,12 +6570,12 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6778
6570
|
]
|
|
6779
6571
|
}
|
|
6780
6572
|
),
|
|
6781
|
-
/* @__PURE__ */
|
|
6573
|
+
/* @__PURE__ */ jsx33(
|
|
6782
6574
|
"clipPath",
|
|
6783
6575
|
{
|
|
6784
6576
|
id: "bgblur_0_615_26793_clip_path",
|
|
6785
6577
|
transform: "translate(10.1151 -14.174)",
|
|
6786
|
-
children: /* @__PURE__ */
|
|
6578
|
+
children: /* @__PURE__ */ jsx33(
|
|
6787
6579
|
"rect",
|
|
6788
6580
|
{
|
|
6789
6581
|
width: "193.593",
|
|
@@ -6800,9 +6592,9 @@ var PaidIcon = () => /* @__PURE__ */ jsxs19(
|
|
|
6800
6592
|
);
|
|
6801
6593
|
|
|
6802
6594
|
// src/icons/placeholder-icon.tsx
|
|
6803
|
-
import { jsx as
|
|
6595
|
+
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
6804
6596
|
var PlaceHolderIcon = () => {
|
|
6805
|
-
return /* @__PURE__ */
|
|
6597
|
+
return /* @__PURE__ */ jsx34(
|
|
6806
6598
|
"svg",
|
|
6807
6599
|
{
|
|
6808
6600
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6811,7 +6603,7 @@ var PlaceHolderIcon = () => {
|
|
|
6811
6603
|
height: "256.000000pt",
|
|
6812
6604
|
viewBox: "0 0 256.000000 256.000000",
|
|
6813
6605
|
preserveAspectRatio: "xMidYMid meet",
|
|
6814
|
-
children: /* @__PURE__ */
|
|
6606
|
+
children: /* @__PURE__ */ jsx34(
|
|
6815
6607
|
"g",
|
|
6816
6608
|
{
|
|
6817
6609
|
transform: "translate(0.000000,256.000000) scale(0.100000,-0.100000)",
|
|
@@ -6824,13 +6616,13 @@ var PlaceHolderIcon = () => {
|
|
|
6824
6616
|
};
|
|
6825
6617
|
|
|
6826
6618
|
// src/icons/google-icon.tsx
|
|
6827
|
-
import { jsx as
|
|
6619
|
+
import { jsx as jsx35, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
6828
6620
|
var GoogleIcon = ({
|
|
6829
6621
|
width = 20,
|
|
6830
6622
|
height = 20,
|
|
6831
6623
|
...props
|
|
6832
6624
|
}) => {
|
|
6833
|
-
return /* @__PURE__ */
|
|
6625
|
+
return /* @__PURE__ */ jsxs19(
|
|
6834
6626
|
"svg",
|
|
6835
6627
|
{
|
|
6836
6628
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -6841,28 +6633,28 @@ var GoogleIcon = ({
|
|
|
6841
6633
|
height,
|
|
6842
6634
|
...props,
|
|
6843
6635
|
children: [
|
|
6844
|
-
/* @__PURE__ */
|
|
6636
|
+
/* @__PURE__ */ jsx35(
|
|
6845
6637
|
"path",
|
|
6846
6638
|
{
|
|
6847
6639
|
fill: "#fbc02d",
|
|
6848
6640
|
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"
|
|
6849
6641
|
}
|
|
6850
6642
|
),
|
|
6851
|
-
/* @__PURE__ */
|
|
6643
|
+
/* @__PURE__ */ jsx35(
|
|
6852
6644
|
"path",
|
|
6853
6645
|
{
|
|
6854
6646
|
fill: "#e53935",
|
|
6855
6647
|
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"
|
|
6856
6648
|
}
|
|
6857
6649
|
),
|
|
6858
|
-
/* @__PURE__ */
|
|
6650
|
+
/* @__PURE__ */ jsx35(
|
|
6859
6651
|
"path",
|
|
6860
6652
|
{
|
|
6861
6653
|
fill: "#4caf50",
|
|
6862
6654
|
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"
|
|
6863
6655
|
}
|
|
6864
6656
|
),
|
|
6865
|
-
/* @__PURE__ */
|
|
6657
|
+
/* @__PURE__ */ jsx35(
|
|
6866
6658
|
"path",
|
|
6867
6659
|
{
|
|
6868
6660
|
fill: "#1565c0",
|
|
@@ -6875,9 +6667,9 @@ var GoogleIcon = ({
|
|
|
6875
6667
|
};
|
|
6876
6668
|
|
|
6877
6669
|
// src/icons/eye-closed-icon.tsx
|
|
6878
|
-
import { jsx as
|
|
6670
|
+
import { jsx as jsx36, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
6879
6671
|
var EyeClosedIcon = () => {
|
|
6880
|
-
return /* @__PURE__ */
|
|
6672
|
+
return /* @__PURE__ */ jsxs20(
|
|
6881
6673
|
"svg",
|
|
6882
6674
|
{
|
|
6883
6675
|
width: "20",
|
|
@@ -6886,7 +6678,7 @@ var EyeClosedIcon = () => {
|
|
|
6886
6678
|
fill: "none",
|
|
6887
6679
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6888
6680
|
children: [
|
|
6889
|
-
/* @__PURE__ */
|
|
6681
|
+
/* @__PURE__ */ jsx36(
|
|
6890
6682
|
"path",
|
|
6891
6683
|
{
|
|
6892
6684
|
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",
|
|
@@ -6894,7 +6686,7 @@ var EyeClosedIcon = () => {
|
|
|
6894
6686
|
strokeWidth: "1.5"
|
|
6895
6687
|
}
|
|
6896
6688
|
),
|
|
6897
|
-
/* @__PURE__ */
|
|
6689
|
+
/* @__PURE__ */ jsx36(
|
|
6898
6690
|
"path",
|
|
6899
6691
|
{
|
|
6900
6692
|
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",
|
|
@@ -6902,7 +6694,7 @@ var EyeClosedIcon = () => {
|
|
|
6902
6694
|
strokeWidth: "1.5"
|
|
6903
6695
|
}
|
|
6904
6696
|
),
|
|
6905
|
-
/* @__PURE__ */
|
|
6697
|
+
/* @__PURE__ */ jsx36(
|
|
6906
6698
|
"line",
|
|
6907
6699
|
{
|
|
6908
6700
|
x1: "4",
|
|
@@ -7774,11 +7566,11 @@ var usePagination = ({
|
|
|
7774
7566
|
};
|
|
7775
7567
|
|
|
7776
7568
|
// src/icons/common.tsx
|
|
7777
|
-
import { jsx as
|
|
7778
|
-
var IcArrow = () => /* @__PURE__ */
|
|
7569
|
+
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
7570
|
+
var IcArrow = () => /* @__PURE__ */ jsx37("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 320 512", children: /* @__PURE__ */ jsx37("path", { d: "M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z" }) });
|
|
7779
7571
|
|
|
7780
7572
|
// src/widgets/advanced/pagination/pagination-view.tsx
|
|
7781
|
-
import { jsx as
|
|
7573
|
+
import { jsx as jsx38, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
7782
7574
|
var PaginationView = (props) => {
|
|
7783
7575
|
const {
|
|
7784
7576
|
displayPageNumberDots,
|
|
@@ -7811,25 +7603,25 @@ var PaginationView = (props) => {
|
|
|
7811
7603
|
let lastPage = paginationRange[paginationRange.length - 1];
|
|
7812
7604
|
const startPage = currentPage * pageSize + 1;
|
|
7813
7605
|
const endPage = Math.min((currentPage + 1) * pageSize, totalCount);
|
|
7814
|
-
return /* @__PURE__ */
|
|
7815
|
-
!displayPageNumberDots && /* @__PURE__ */
|
|
7606
|
+
return /* @__PURE__ */ jsxs21("ul", { className: `pagination-container rounded-lg ${className}`, children: [
|
|
7607
|
+
!displayPageNumberDots && /* @__PURE__ */ jsxs21("li", { className: "pagination-item px-0", children: [
|
|
7816
7608
|
startPage,
|
|
7817
7609
|
" - ",
|
|
7818
7610
|
endPage,
|
|
7819
7611
|
" / ",
|
|
7820
7612
|
totalCount
|
|
7821
7613
|
] }),
|
|
7822
|
-
/* @__PURE__ */
|
|
7614
|
+
/* @__PURE__ */ jsx38(
|
|
7823
7615
|
"li",
|
|
7824
7616
|
{
|
|
7825
7617
|
className: `pagination-item ${currentPage === 0 && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
|
|
7826
7618
|
onClick: onPrevious,
|
|
7827
|
-
children: /* @__PURE__ */
|
|
7619
|
+
children: /* @__PURE__ */ jsx38("div", { className: "arrow left", children: /* @__PURE__ */ jsx38(IcArrow, {}) })
|
|
7828
7620
|
}
|
|
7829
7621
|
),
|
|
7830
7622
|
displayPageNumberDots && paginationRange.map((pageNumber) => {
|
|
7831
7623
|
if (pageNumber === DOTS) {
|
|
7832
|
-
return /* @__PURE__ */
|
|
7624
|
+
return /* @__PURE__ */ jsx38(
|
|
7833
7625
|
"li",
|
|
7834
7626
|
{
|
|
7835
7627
|
className: "pagination-item dots",
|
|
@@ -7838,7 +7630,7 @@ var PaginationView = (props) => {
|
|
|
7838
7630
|
"pagination" + pageNumber
|
|
7839
7631
|
);
|
|
7840
7632
|
}
|
|
7841
|
-
return /* @__PURE__ */
|
|
7633
|
+
return /* @__PURE__ */ jsx38(
|
|
7842
7634
|
"li",
|
|
7843
7635
|
{
|
|
7844
7636
|
className: `pagination-item ${pageNumber - 1 === currentPage && "selected"}`,
|
|
@@ -7848,12 +7640,12 @@ var PaginationView = (props) => {
|
|
|
7848
7640
|
"pagination" + pageNumber
|
|
7849
7641
|
);
|
|
7850
7642
|
}),
|
|
7851
|
-
/* @__PURE__ */
|
|
7643
|
+
/* @__PURE__ */ jsx38(
|
|
7852
7644
|
"li",
|
|
7853
7645
|
{
|
|
7854
7646
|
className: `pagination-item ${currentPage + 1 === lastPage && "disabled"} ${!displayPageNumberDots && "hide-dots"}`,
|
|
7855
7647
|
onClick: onNext,
|
|
7856
|
-
children: /* @__PURE__ */
|
|
7648
|
+
children: /* @__PURE__ */ jsx38("div", { className: "arrow rotate-180", children: /* @__PURE__ */ jsx38(IcArrow, {}) })
|
|
7857
7649
|
}
|
|
7858
7650
|
)
|
|
7859
7651
|
] });
|
|
@@ -10583,7 +10375,7 @@ var vi_default = {
|
|
|
10583
10375
|
cancel: "H\u1EE7y",
|
|
10584
10376
|
save: "L\u01B0u",
|
|
10585
10377
|
my_profile: "H\u1ED3 s\u01A1 c\u1EE7a t\xF4i",
|
|
10586
|
-
empty_data: "
|
|
10378
|
+
empty_data: "D\u1EEF li\u1EC7u tr\u1ED1ng",
|
|
10587
10379
|
Settings: "C\xE0i \u0111\u1EB7t",
|
|
10588
10380
|
settings: "C\xE0i \u0111\u1EB7t",
|
|
10589
10381
|
payment_method: "Ph\u01B0\u01A1ng th\u1EE9c thanh to\xE1n",
|
|
@@ -12011,7 +11803,7 @@ instance.use(Browser).use(initReactI18next).init({
|
|
|
12011
11803
|
var i18n_default = instance;
|
|
12012
11804
|
|
|
12013
11805
|
// src/widgets/advanced/table/table-group.tsx
|
|
12014
|
-
import { Fragment as Fragment2, jsx as
|
|
11806
|
+
import { Fragment as Fragment2, jsx as jsx39, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
12015
11807
|
var TableGroup = (props) => {
|
|
12016
11808
|
const {
|
|
12017
11809
|
handleExpandChildGroup,
|
|
@@ -12042,42 +11834,42 @@ var TableGroup = (props) => {
|
|
|
12042
11834
|
pageGroup,
|
|
12043
11835
|
setPageGroup
|
|
12044
11836
|
} = props;
|
|
12045
|
-
return /* @__PURE__ */
|
|
12046
|
-
/* @__PURE__ */
|
|
11837
|
+
return /* @__PURE__ */ jsxs22(Fragment2, { children: [
|
|
11838
|
+
/* @__PURE__ */ jsxs22(
|
|
12047
11839
|
"tr",
|
|
12048
11840
|
{
|
|
12049
11841
|
draggable: true,
|
|
12050
11842
|
className: "border-b border-[#e8e8e8] cursor-pointer hover:bg-gray-50 relative z-10",
|
|
12051
11843
|
onClick: handleExpandChildGroup,
|
|
12052
11844
|
children: [
|
|
12053
|
-
/* @__PURE__ */
|
|
11845
|
+
/* @__PURE__ */ jsx39(
|
|
12054
11846
|
"td",
|
|
12055
11847
|
{
|
|
12056
11848
|
colSpan: colEmptyGroup.fromStart ?? 1,
|
|
12057
11849
|
style: { display: "table-cell" },
|
|
12058
11850
|
className: "relative z-20 w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-normal text-gray-900 h-[53px]",
|
|
12059
|
-
children: /* @__PURE__ */
|
|
11851
|
+
children: /* @__PURE__ */ jsxs22(
|
|
12060
11852
|
"div",
|
|
12061
11853
|
{
|
|
12062
11854
|
style: { paddingLeft: leftPadding },
|
|
12063
11855
|
className: `flex items-center justify-between gap-2 font-medium ml-2 z-21`,
|
|
12064
11856
|
children: [
|
|
12065
|
-
/* @__PURE__ */
|
|
12066
|
-
/* @__PURE__ */
|
|
11857
|
+
/* @__PURE__ */ jsxs22("div", { className: "flex items-center gap-2", children: [
|
|
11858
|
+
/* @__PURE__ */ jsx39(
|
|
12067
11859
|
TriangleIcon,
|
|
12068
11860
|
{
|
|
12069
11861
|
className: `w-2 h-2 text-button_primary ${isShowGroup && isQueryFetched ? "rotate-180" : "rotate-90"}`
|
|
12070
11862
|
}
|
|
12071
11863
|
),
|
|
12072
|
-
/* @__PURE__ */
|
|
11864
|
+
/* @__PURE__ */ jsx39("span", { className: "capitalize", children: nameGroupWithCount && nameGroupWithCount !== null ? nameGroupWithCount : i18n_default.t("no") }, nameGroupWithCount)
|
|
12073
11865
|
] }),
|
|
12074
|
-
/* @__PURE__ */
|
|
11866
|
+
/* @__PURE__ */ jsx39(
|
|
12075
11867
|
"div",
|
|
12076
11868
|
{
|
|
12077
11869
|
onClick: (e3) => {
|
|
12078
11870
|
e3.stopPropagation();
|
|
12079
11871
|
},
|
|
12080
|
-
children: isShowGroup && dataResponse?.length >= 10 && !dataResponse?.groups && /* @__PURE__ */
|
|
11872
|
+
children: isShowGroup && dataResponse?.length >= 10 && !dataResponse?.groups && /* @__PURE__ */ jsx39(
|
|
12081
11873
|
PaginationView,
|
|
12082
11874
|
{
|
|
12083
11875
|
className: "pagination-bar !bg-transparent absolute z-[100] right-0 top-1/2 -translate-y-1/2",
|
|
@@ -12097,7 +11889,7 @@ var TableGroup = (props) => {
|
|
|
12097
11889
|
),
|
|
12098
11890
|
columns?.map((col) => {
|
|
12099
11891
|
if (col.field.type === "monetary" && typeof row[col.key] === "number" || col.field.aggregator === "sum") {
|
|
12100
|
-
return /* @__PURE__ */
|
|
11892
|
+
return /* @__PURE__ */ jsx39(
|
|
12101
11893
|
"td",
|
|
12102
11894
|
{
|
|
12103
11895
|
className: "w-max whitespace-nowrap border-b border-gray-200 p-3 text-sm font-bold text-gray-900",
|
|
@@ -12115,7 +11907,7 @@ var TableGroup = (props) => {
|
|
|
12115
11907
|
]
|
|
12116
11908
|
}
|
|
12117
11909
|
),
|
|
12118
|
-
isShowGroup && (isQueryFetched || isPlaceholderData) && /* @__PURE__ */
|
|
11910
|
+
isShowGroup && (isQueryFetched || isPlaceholderData) && /* @__PURE__ */ jsx39(
|
|
12119
11911
|
TableBodyRow,
|
|
12120
11912
|
{
|
|
12121
11913
|
columns: columnsGroup,
|
|
@@ -12139,7 +11931,7 @@ var TableGroup = (props) => {
|
|
|
12139
11931
|
|
|
12140
11932
|
// src/widgets/advanced/table/table-row.tsx
|
|
12141
11933
|
import { useEffect as useEffect3, useMemo as useMemo3, useRef as useRef3 } from "react";
|
|
12142
|
-
import { Fragment as Fragment3, jsx as
|
|
11934
|
+
import { Fragment as Fragment3, jsx as jsx40, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
12143
11935
|
var Row = (props) => {
|
|
12144
11936
|
const {
|
|
12145
11937
|
row,
|
|
@@ -12204,17 +11996,17 @@ var Row = (props) => {
|
|
|
12204
11996
|
false;
|
|
12205
11997
|
}
|
|
12206
11998
|
}, [checkedAll]);
|
|
12207
|
-
return /* @__PURE__ */
|
|
11999
|
+
return /* @__PURE__ */ jsx40(
|
|
12208
12000
|
"tr",
|
|
12209
12001
|
{
|
|
12210
12002
|
"data-row-id": row?.id,
|
|
12211
12003
|
className: `border-b border-[#e8e8e8] cursor-pointer`,
|
|
12212
|
-
children: /* @__PURE__ */
|
|
12213
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
12004
|
+
children: /* @__PURE__ */ jsxs23(Fragment3, { children: [
|
|
12005
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx40(
|
|
12214
12006
|
"td",
|
|
12215
12007
|
{
|
|
12216
12008
|
className: `column w-max whitespace-nowrap p-3 border-b border-gray-200 text-sm font-normal text-gray-900`,
|
|
12217
|
-
children: /* @__PURE__ */
|
|
12009
|
+
children: /* @__PURE__ */ jsx40(
|
|
12218
12010
|
"input",
|
|
12219
12011
|
{
|
|
12220
12012
|
type: "checkbox",
|
|
@@ -12227,9 +12019,9 @@ var Row = (props) => {
|
|
|
12227
12019
|
),
|
|
12228
12020
|
columns?.filter((val) => val?.optional !== "hide").map((col, index4) => {
|
|
12229
12021
|
if (row?.display_type === "line_section" && col.key !== "display_name") {
|
|
12230
|
-
return /* @__PURE__ */
|
|
12022
|
+
return /* @__PURE__ */ jsx40("td", {});
|
|
12231
12023
|
}
|
|
12232
|
-
return /* @__PURE__ */
|
|
12024
|
+
return /* @__PURE__ */ jsx40(
|
|
12233
12025
|
"td",
|
|
12234
12026
|
{
|
|
12235
12027
|
colSpan: 1,
|
|
@@ -12248,7 +12040,7 @@ var Row = (props) => {
|
|
|
12248
12040
|
`${col.name}____${index4}`
|
|
12249
12041
|
);
|
|
12250
12042
|
}),
|
|
12251
|
-
typeof onAddRow === "function" && row?.display_type !== "line_section" && /* @__PURE__ */
|
|
12043
|
+
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(
|
|
12252
12044
|
"button",
|
|
12253
12045
|
{
|
|
12254
12046
|
type: "button",
|
|
@@ -12256,7 +12048,7 @@ var Row = (props) => {
|
|
|
12256
12048
|
onClick: () => {
|
|
12257
12049
|
onRemoveRow(indexRow);
|
|
12258
12050
|
},
|
|
12259
|
-
children: /* @__PURE__ */
|
|
12051
|
+
children: /* @__PURE__ */ jsx40(DeleteIcon, {})
|
|
12260
12052
|
}
|
|
12261
12053
|
) }) })
|
|
12262
12054
|
] })
|
|
@@ -12266,7 +12058,7 @@ var Row = (props) => {
|
|
|
12266
12058
|
};
|
|
12267
12059
|
|
|
12268
12060
|
// src/widgets/advanced/table/table-body.tsx
|
|
12269
|
-
import { jsx as
|
|
12061
|
+
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
12270
12062
|
var TableBodyRow = (props) => {
|
|
12271
12063
|
const {
|
|
12272
12064
|
rows,
|
|
@@ -12288,8 +12080,6 @@ var TableBodyRow = (props) => {
|
|
|
12288
12080
|
onAddRow,
|
|
12289
12081
|
onRemoveRow,
|
|
12290
12082
|
checked,
|
|
12291
|
-
isForm,
|
|
12292
|
-
typeCo,
|
|
12293
12083
|
selectedRowKeys,
|
|
12294
12084
|
tableGroupController,
|
|
12295
12085
|
groupByList,
|
|
@@ -12297,10 +12087,8 @@ var TableBodyRow = (props) => {
|
|
|
12297
12087
|
isAutoSelect,
|
|
12298
12088
|
isEditTable
|
|
12299
12089
|
} = props;
|
|
12300
|
-
|
|
12301
|
-
|
|
12302
|
-
return rows && rows?.length > 0 ? rows?.map((row, index4) => {
|
|
12303
|
-
return typeTable === "group" ? /* @__PURE__ */ jsx42(
|
|
12090
|
+
return rows && rows?.length > 0 && rows?.map((row, index4) => {
|
|
12091
|
+
return typeTable === "group" ? /* @__PURE__ */ jsx41(
|
|
12304
12092
|
TableGroup,
|
|
12305
12093
|
{
|
|
12306
12094
|
columns,
|
|
@@ -12324,7 +12112,7 @@ var TableBodyRow = (props) => {
|
|
|
12324
12112
|
selectedRowKeys
|
|
12325
12113
|
},
|
|
12326
12114
|
`record-group-${index4}`
|
|
12327
|
-
) : /* @__PURE__ */
|
|
12115
|
+
) : /* @__PURE__ */ jsx41(
|
|
12328
12116
|
Row,
|
|
12329
12117
|
{
|
|
12330
12118
|
row,
|
|
@@ -12348,20 +12136,11 @@ var TableBodyRow = (props) => {
|
|
|
12348
12136
|
},
|
|
12349
12137
|
`record-${index4}`
|
|
12350
12138
|
);
|
|
12351
|
-
})
|
|
12352
|
-
"div",
|
|
12353
|
-
{
|
|
12354
|
-
className: `flex flex-col items-center justify-center gap-3 ${typeCo === "form" ? "my-6" : "my-2"}`,
|
|
12355
|
-
children: [
|
|
12356
|
-
/* @__PURE__ */ jsx42(EmptyData, { className: colorPrimary }),
|
|
12357
|
-
/* @__PURE__ */ jsx42("div", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
|
|
12358
|
-
]
|
|
12359
|
-
}
|
|
12360
|
-
) }) });
|
|
12139
|
+
});
|
|
12361
12140
|
};
|
|
12362
12141
|
var TableBody = (props) => {
|
|
12363
12142
|
const [isAutoSelect, setIsAutoSelect] = useState2(false);
|
|
12364
|
-
return /* @__PURE__ */
|
|
12143
|
+
return /* @__PURE__ */ jsx41("tbody", { className: "overflow-hidden", children: /* @__PURE__ */ jsx41(
|
|
12365
12144
|
TableBodyRow,
|
|
12366
12145
|
{
|
|
12367
12146
|
...props,
|
|
@@ -12374,7 +12153,7 @@ var TableBody = (props) => {
|
|
|
12374
12153
|
// src/widgets/advanced/table/table-filter.tsx
|
|
12375
12154
|
import { useEffect as useEffect4, useRef as useRef4, useState as useState3 } from "react";
|
|
12376
12155
|
import { createPortal } from "react-dom";
|
|
12377
|
-
import { jsx as
|
|
12156
|
+
import { jsx as jsx42, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
12378
12157
|
var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
12379
12158
|
const [openTableFilter, setOpenTableFilter] = useState3();
|
|
12380
12159
|
const [filterPosition, setFilterPosition] = useState3(null);
|
|
@@ -12406,7 +12185,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12406
12185
|
window.removeEventListener("resize", updatePosition);
|
|
12407
12186
|
};
|
|
12408
12187
|
}, [filterRef, openTableFilter]);
|
|
12409
|
-
return /* @__PURE__ */
|
|
12188
|
+
return /* @__PURE__ */ jsxs24(
|
|
12410
12189
|
"div",
|
|
12411
12190
|
{
|
|
12412
12191
|
ref: filterRef,
|
|
@@ -12415,7 +12194,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12415
12194
|
},
|
|
12416
12195
|
className: "w-fit absolute top-[50%] translate-y-[-50%] right-[10px] ms-auto z-[32] bg-[#eff1f2]",
|
|
12417
12196
|
children: [
|
|
12418
|
-
/* @__PURE__ */
|
|
12197
|
+
/* @__PURE__ */ jsx42(
|
|
12419
12198
|
"button",
|
|
12420
12199
|
{
|
|
12421
12200
|
type: "button",
|
|
@@ -12423,7 +12202,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12423
12202
|
onClick: () => {
|
|
12424
12203
|
setOpenTableFilter(!openTableFilter);
|
|
12425
12204
|
},
|
|
12426
|
-
children: /* @__PURE__ */
|
|
12205
|
+
children: /* @__PURE__ */ jsxs24(
|
|
12427
12206
|
"svg",
|
|
12428
12207
|
{
|
|
12429
12208
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -12432,42 +12211,42 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12432
12211
|
viewBox: "0 0 16 16",
|
|
12433
12212
|
fill: "none",
|
|
12434
12213
|
children: [
|
|
12435
|
-
/* @__PURE__ */
|
|
12214
|
+
/* @__PURE__ */ jsx42(
|
|
12436
12215
|
"path",
|
|
12437
12216
|
{
|
|
12438
12217
|
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",
|
|
12439
12218
|
fill: "#1F1F1F"
|
|
12440
12219
|
}
|
|
12441
12220
|
),
|
|
12442
|
-
/* @__PURE__ */
|
|
12221
|
+
/* @__PURE__ */ jsx42(
|
|
12443
12222
|
"path",
|
|
12444
12223
|
{
|
|
12445
12224
|
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",
|
|
12446
12225
|
fill: "#1F1F1F"
|
|
12447
12226
|
}
|
|
12448
12227
|
),
|
|
12449
|
-
/* @__PURE__ */
|
|
12228
|
+
/* @__PURE__ */ jsx42(
|
|
12450
12229
|
"path",
|
|
12451
12230
|
{
|
|
12452
12231
|
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",
|
|
12453
12232
|
fill: "#1F1F1F"
|
|
12454
12233
|
}
|
|
12455
12234
|
),
|
|
12456
|
-
/* @__PURE__ */
|
|
12235
|
+
/* @__PURE__ */ jsx42(
|
|
12457
12236
|
"path",
|
|
12458
12237
|
{
|
|
12459
12238
|
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",
|
|
12460
12239
|
fill: "black"
|
|
12461
12240
|
}
|
|
12462
12241
|
),
|
|
12463
|
-
/* @__PURE__ */
|
|
12242
|
+
/* @__PURE__ */ jsx42(
|
|
12464
12243
|
"path",
|
|
12465
12244
|
{
|
|
12466
12245
|
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",
|
|
12467
12246
|
fill: "black"
|
|
12468
12247
|
}
|
|
12469
12248
|
),
|
|
12470
|
-
/* @__PURE__ */
|
|
12249
|
+
/* @__PURE__ */ jsx42(
|
|
12471
12250
|
"path",
|
|
12472
12251
|
{
|
|
12473
12252
|
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",
|
|
@@ -12480,15 +12259,15 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12480
12259
|
}
|
|
12481
12260
|
),
|
|
12482
12261
|
filterPosition && openTableFilter && createPortal(
|
|
12483
|
-
/* @__PURE__ */
|
|
12262
|
+
/* @__PURE__ */ jsx42(
|
|
12484
12263
|
"div",
|
|
12485
12264
|
{
|
|
12486
12265
|
ref: filterPopupRef,
|
|
12487
12266
|
style: { top: filterPosition?.top, right: filterPosition?.right },
|
|
12488
12267
|
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",
|
|
12489
12268
|
children: columns?.filter((val) => val?.optional !== void 0)?.map((item) => {
|
|
12490
|
-
return /* @__PURE__ */
|
|
12491
|
-
/* @__PURE__ */
|
|
12269
|
+
return /* @__PURE__ */ jsxs24("div", { className: "flex items-center gap-2", children: [
|
|
12270
|
+
/* @__PURE__ */ jsx42(
|
|
12492
12271
|
"input",
|
|
12493
12272
|
{
|
|
12494
12273
|
type: "checkbox",
|
|
@@ -12498,7 +12277,7 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12498
12277
|
className: "cursor-pointer"
|
|
12499
12278
|
}
|
|
12500
12279
|
),
|
|
12501
|
-
/* @__PURE__ */
|
|
12280
|
+
/* @__PURE__ */ jsx42(
|
|
12502
12281
|
"label",
|
|
12503
12282
|
{
|
|
12504
12283
|
htmlFor: `${item.name}`,
|
|
@@ -12518,14 +12297,14 @@ var TableFilter = ({ columns, onToggleColumnOptional }) => {
|
|
|
12518
12297
|
};
|
|
12519
12298
|
|
|
12520
12299
|
// src/widgets/advanced/table/table-footer.tsx
|
|
12521
|
-
import { jsx as
|
|
12300
|
+
import { jsx as jsx43, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
12522
12301
|
var TableFooter = ({ onAddRow, rows }) => {
|
|
12523
12302
|
const emptyData = rows?.length <= 0;
|
|
12524
|
-
return /* @__PURE__ */
|
|
12303
|
+
return /* @__PURE__ */ jsx43("tfoot", { children: /* @__PURE__ */ jsx43("tr", { className: `relative ${emptyData ? " h-20" : "h-14"}`, children: /* @__PURE__ */ jsx43(
|
|
12525
12304
|
"td",
|
|
12526
12305
|
{
|
|
12527
12306
|
className: `absolute left-0 p-0 right-0 flex items-center ${emptyData ? "justify-center" : "justify-start"}`,
|
|
12528
|
-
children: /* @__PURE__ */
|
|
12307
|
+
children: /* @__PURE__ */ jsxs25(
|
|
12529
12308
|
"button",
|
|
12530
12309
|
{
|
|
12531
12310
|
type: "button",
|
|
@@ -12535,7 +12314,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12535
12314
|
},
|
|
12536
12315
|
className: `button-primary m-2 flex ${!emptyData ? "!bg-white border border-primary " : ""}`,
|
|
12537
12316
|
children: [
|
|
12538
|
-
/* @__PURE__ */
|
|
12317
|
+
/* @__PURE__ */ jsxs25(
|
|
12539
12318
|
"svg",
|
|
12540
12319
|
{
|
|
12541
12320
|
style: {
|
|
@@ -12548,14 +12327,14 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12548
12327
|
viewBox: "0 0 20 20",
|
|
12549
12328
|
fill: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
12550
12329
|
children: [
|
|
12551
|
-
/* @__PURE__ */
|
|
12330
|
+
/* @__PURE__ */ jsx43(
|
|
12552
12331
|
"path",
|
|
12553
12332
|
{
|
|
12554
12333
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
12555
12334
|
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"
|
|
12556
12335
|
}
|
|
12557
12336
|
),
|
|
12558
|
-
/* @__PURE__ */
|
|
12337
|
+
/* @__PURE__ */ jsx43(
|
|
12559
12338
|
"path",
|
|
12560
12339
|
{
|
|
12561
12340
|
className: `${!emptyData ? "fill-primary" : "fill-white"} `,
|
|
@@ -12574,7 +12353,7 @@ var TableFooter = ({ onAddRow, rows }) => {
|
|
|
12574
12353
|
};
|
|
12575
12354
|
|
|
12576
12355
|
// src/widgets/advanced/table/table-head.tsx
|
|
12577
|
-
import { jsx as
|
|
12356
|
+
import { jsx as jsx44, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12578
12357
|
var TableHead = (props) => {
|
|
12579
12358
|
const {
|
|
12580
12359
|
handleCheckBoxAll,
|
|
@@ -12584,7 +12363,7 @@ var TableHead = (props) => {
|
|
|
12584
12363
|
onRemoveRow,
|
|
12585
12364
|
onToggleColumnOptional
|
|
12586
12365
|
} = props;
|
|
12587
|
-
return /* @__PURE__ */
|
|
12366
|
+
return /* @__PURE__ */ jsx44("thead", { className: "relative z-10", children: /* @__PURE__ */ jsxs26(
|
|
12588
12367
|
"tr",
|
|
12589
12368
|
{
|
|
12590
12369
|
style: {
|
|
@@ -12596,11 +12375,11 @@ var TableHead = (props) => {
|
|
|
12596
12375
|
},
|
|
12597
12376
|
className: "border-b border-[rgba(66,66,66,0.12)] bg-white",
|
|
12598
12377
|
children: [
|
|
12599
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
12378
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx44(
|
|
12600
12379
|
"th",
|
|
12601
12380
|
{
|
|
12602
12381
|
className: ` table-checkbox-row w-[2%] text-left font-medium uppercase text-gray-500 p-3`,
|
|
12603
|
-
children: /* @__PURE__ */
|
|
12382
|
+
children: /* @__PURE__ */ jsx44(
|
|
12604
12383
|
"input",
|
|
12605
12384
|
{
|
|
12606
12385
|
type: "checkbox",
|
|
@@ -12612,17 +12391,17 @@ var TableHead = (props) => {
|
|
|
12612
12391
|
}
|
|
12613
12392
|
),
|
|
12614
12393
|
columns?.filter((value) => value?.optional !== "hide")?.map((col, index4) => {
|
|
12615
|
-
return /* @__PURE__ */
|
|
12394
|
+
return /* @__PURE__ */ jsx44(
|
|
12616
12395
|
"th",
|
|
12617
12396
|
{
|
|
12618
12397
|
className: `column whitespace-nowrap text-left p-3 text-sm font-semibold capitalize text-[#060606]`,
|
|
12619
|
-
children: /* @__PURE__ */
|
|
12398
|
+
children: /* @__PURE__ */ jsx44("div", { className: "cursor-pointer flex justify-between items-center gap-[4px] w-full min-w-max group", children: col.title })
|
|
12620
12399
|
},
|
|
12621
12400
|
"table-head-" + index4
|
|
12622
12401
|
);
|
|
12623
12402
|
}),
|
|
12624
|
-
typeof onRemoveRow === "function" && /* @__PURE__ */
|
|
12625
|
-
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */
|
|
12403
|
+
typeof onRemoveRow === "function" && /* @__PURE__ */ jsx44("th", { className: "relative p-2 w-[35px]" }),
|
|
12404
|
+
columns && Array.isArray(columns) && columns?.some((column2) => column2?.optional) && /* @__PURE__ */ jsx44(
|
|
12626
12405
|
"th",
|
|
12627
12406
|
{
|
|
12628
12407
|
style: {
|
|
@@ -12630,7 +12409,7 @@ var TableHead = (props) => {
|
|
|
12630
12409
|
right: 0
|
|
12631
12410
|
},
|
|
12632
12411
|
className: `column whitespace-nowrap text-left p-3 text-sm font-medium capitalize text-[#121212] min-w-[40px] sticky right-[0px] bg-[#eff1f2]`,
|
|
12633
|
-
children: /* @__PURE__ */
|
|
12412
|
+
children: /* @__PURE__ */ jsx44(
|
|
12634
12413
|
TableFilter,
|
|
12635
12414
|
{
|
|
12636
12415
|
columns,
|
|
@@ -12644,6 +12423,349 @@ var TableHead = (props) => {
|
|
|
12644
12423
|
) });
|
|
12645
12424
|
};
|
|
12646
12425
|
|
|
12426
|
+
// src/icons/empty-table-icon.tsx
|
|
12427
|
+
import { jsx as jsx45, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
12428
|
+
var IcEmptyTable = ({ isForm }) => {
|
|
12429
|
+
return isForm ? /* @__PURE__ */ jsxs27(
|
|
12430
|
+
"svg",
|
|
12431
|
+
{
|
|
12432
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
12433
|
+
width: "216",
|
|
12434
|
+
height: "140",
|
|
12435
|
+
viewBox: "0 0 216 140",
|
|
12436
|
+
fill: "none",
|
|
12437
|
+
children: [
|
|
12438
|
+
/* @__PURE__ */ jsxs27("g", { "clip-path": "url(#clip0_2454_28950)", children: [
|
|
12439
|
+
/* @__PURE__ */ jsx45("path", { d: "M215.5 0H0.5V140H215.5V0Z", fill: "white" }),
|
|
12440
|
+
/* @__PURE__ */ jsx45(
|
|
12441
|
+
"path",
|
|
12442
|
+
{
|
|
12443
|
+
d: "M64.5 0V140",
|
|
12444
|
+
stroke: "#EEEFF1",
|
|
12445
|
+
"stroke-width": "0.8",
|
|
12446
|
+
"stroke-miterlimit": "10",
|
|
12447
|
+
"stroke-dasharray": "3 3"
|
|
12448
|
+
}
|
|
12449
|
+
),
|
|
12450
|
+
/* @__PURE__ */ jsx45(
|
|
12451
|
+
"path",
|
|
12452
|
+
{
|
|
12453
|
+
d: "M151.5 0V140",
|
|
12454
|
+
stroke: "#EEEFF1",
|
|
12455
|
+
"stroke-width": "0.8",
|
|
12456
|
+
"stroke-miterlimit": "10",
|
|
12457
|
+
"stroke-dasharray": "3 3"
|
|
12458
|
+
}
|
|
12459
|
+
),
|
|
12460
|
+
/* @__PURE__ */ jsx45(
|
|
12461
|
+
"path",
|
|
12462
|
+
{
|
|
12463
|
+
d: "M215.5 24H0.5",
|
|
12464
|
+
stroke: "#EEEFF1",
|
|
12465
|
+
"stroke-width": "0.8",
|
|
12466
|
+
"stroke-miterlimit": "10",
|
|
12467
|
+
"stroke-dasharray": "3 3"
|
|
12468
|
+
}
|
|
12469
|
+
),
|
|
12470
|
+
/* @__PURE__ */ jsx45(
|
|
12471
|
+
"path",
|
|
12472
|
+
{
|
|
12473
|
+
d: "M215.5 50H0.5",
|
|
12474
|
+
stroke: "#EEEFF1",
|
|
12475
|
+
"stroke-width": "0.8",
|
|
12476
|
+
"stroke-miterlimit": "10",
|
|
12477
|
+
"stroke-dasharray": "3 3"
|
|
12478
|
+
}
|
|
12479
|
+
),
|
|
12480
|
+
/* @__PURE__ */ jsx45(
|
|
12481
|
+
"path",
|
|
12482
|
+
{
|
|
12483
|
+
d: "M215.5 88H0.5",
|
|
12484
|
+
stroke: "#EEEFF1",
|
|
12485
|
+
"stroke-width": "0.8",
|
|
12486
|
+
"stroke-miterlimit": "10",
|
|
12487
|
+
"stroke-dasharray": "3 3"
|
|
12488
|
+
}
|
|
12489
|
+
),
|
|
12490
|
+
/* @__PURE__ */ jsx45(
|
|
12491
|
+
"path",
|
|
12492
|
+
{
|
|
12493
|
+
d: "M215.5 114H0.5",
|
|
12494
|
+
stroke: "#EEEFF1",
|
|
12495
|
+
"stroke-width": "0.8",
|
|
12496
|
+
"stroke-miterlimit": "10",
|
|
12497
|
+
"stroke-dasharray": "3 3"
|
|
12498
|
+
}
|
|
12499
|
+
),
|
|
12500
|
+
/* @__PURE__ */ jsx45(
|
|
12501
|
+
"path",
|
|
12502
|
+
{
|
|
12503
|
+
d: "M199.5 0V140",
|
|
12504
|
+
stroke: "#EEEFF1",
|
|
12505
|
+
"stroke-width": "0.8",
|
|
12506
|
+
"stroke-miterlimit": "10"
|
|
12507
|
+
}
|
|
12508
|
+
),
|
|
12509
|
+
/* @__PURE__ */ jsx45(
|
|
12510
|
+
"path",
|
|
12511
|
+
{
|
|
12512
|
+
d: "M16.5 0V140",
|
|
12513
|
+
stroke: "#EEEFF1",
|
|
12514
|
+
"stroke-width": "0.8",
|
|
12515
|
+
"stroke-miterlimit": "10"
|
|
12516
|
+
}
|
|
12517
|
+
),
|
|
12518
|
+
/* @__PURE__ */ jsx45(
|
|
12519
|
+
"path",
|
|
12520
|
+
{
|
|
12521
|
+
d: "M0.5 16H215.5",
|
|
12522
|
+
stroke: "#EEEFF1",
|
|
12523
|
+
"stroke-width": "0.8",
|
|
12524
|
+
"stroke-miterlimit": "10"
|
|
12525
|
+
}
|
|
12526
|
+
),
|
|
12527
|
+
/* @__PURE__ */ jsx45(
|
|
12528
|
+
"path",
|
|
12529
|
+
{
|
|
12530
|
+
d: "M0.5 124H215.5",
|
|
12531
|
+
stroke: "#EEEFF1",
|
|
12532
|
+
"stroke-width": "0.8",
|
|
12533
|
+
"stroke-miterlimit": "10"
|
|
12534
|
+
}
|
|
12535
|
+
),
|
|
12536
|
+
/* @__PURE__ */ jsx45(
|
|
12537
|
+
"path",
|
|
12538
|
+
{
|
|
12539
|
+
opacity: "0.6",
|
|
12540
|
+
d: "M85.3696 59.4442L85.9782 60.2035C86.1008 60.3564 86.3827 60.1962 86.5084 59.9022L87.8918 56.6641",
|
|
12541
|
+
stroke: "#5C5E63",
|
|
12542
|
+
"stroke-width": "0.6",
|
|
12543
|
+
"stroke-linecap": "round",
|
|
12544
|
+
"stroke-linejoin": "round"
|
|
12545
|
+
}
|
|
12546
|
+
),
|
|
12547
|
+
/* @__PURE__ */ jsx45(
|
|
12548
|
+
"path",
|
|
12549
|
+
{
|
|
12550
|
+
opacity: "0.6",
|
|
12551
|
+
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",
|
|
12552
|
+
stroke: "#5C5E63",
|
|
12553
|
+
"stroke-width": "0.6",
|
|
12554
|
+
"stroke-linecap": "round",
|
|
12555
|
+
"stroke-linejoin": "round"
|
|
12556
|
+
}
|
|
12557
|
+
),
|
|
12558
|
+
/* @__PURE__ */ jsx45(
|
|
12559
|
+
"path",
|
|
12560
|
+
{
|
|
12561
|
+
opacity: "0.6",
|
|
12562
|
+
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",
|
|
12563
|
+
stroke: "#5C5E63",
|
|
12564
|
+
"stroke-width": "0.6",
|
|
12565
|
+
"stroke-linecap": "round",
|
|
12566
|
+
"stroke-linejoin": "round"
|
|
12567
|
+
}
|
|
12568
|
+
),
|
|
12569
|
+
/* @__PURE__ */ jsx45(
|
|
12570
|
+
"path",
|
|
12571
|
+
{
|
|
12572
|
+
opacity: "0.6",
|
|
12573
|
+
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",
|
|
12574
|
+
stroke: "#5C5E63",
|
|
12575
|
+
"stroke-width": "0.6",
|
|
12576
|
+
"stroke-linecap": "round",
|
|
12577
|
+
"stroke-linejoin": "round"
|
|
12578
|
+
}
|
|
12579
|
+
),
|
|
12580
|
+
/* @__PURE__ */ jsx45(
|
|
12581
|
+
"path",
|
|
12582
|
+
{
|
|
12583
|
+
opacity: "0.6",
|
|
12584
|
+
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",
|
|
12585
|
+
stroke: "#5C5E63",
|
|
12586
|
+
"stroke-width": "0.6",
|
|
12587
|
+
"stroke-linecap": "round",
|
|
12588
|
+
"stroke-linejoin": "round"
|
|
12589
|
+
}
|
|
12590
|
+
),
|
|
12591
|
+
/* @__PURE__ */ jsx45(
|
|
12592
|
+
"path",
|
|
12593
|
+
{
|
|
12594
|
+
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",
|
|
12595
|
+
fill: "white"
|
|
12596
|
+
}
|
|
12597
|
+
),
|
|
12598
|
+
/* @__PURE__ */ jsx45(
|
|
12599
|
+
"path",
|
|
12600
|
+
{
|
|
12601
|
+
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",
|
|
12602
|
+
stroke: "#9FA1A7",
|
|
12603
|
+
"stroke-width": "0.6",
|
|
12604
|
+
"stroke-linecap": "round",
|
|
12605
|
+
"stroke-linejoin": "round"
|
|
12606
|
+
}
|
|
12607
|
+
),
|
|
12608
|
+
/* @__PURE__ */ jsx45(
|
|
12609
|
+
"path",
|
|
12610
|
+
{
|
|
12611
|
+
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",
|
|
12612
|
+
stroke: "#5C5E63",
|
|
12613
|
+
"stroke-linecap": "round",
|
|
12614
|
+
"stroke-linejoin": "round"
|
|
12615
|
+
}
|
|
12616
|
+
),
|
|
12617
|
+
/* @__PURE__ */ jsx45(
|
|
12618
|
+
"path",
|
|
12619
|
+
{
|
|
12620
|
+
opacity: "0.6",
|
|
12621
|
+
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",
|
|
12622
|
+
stroke: "#5C5E63",
|
|
12623
|
+
"stroke-width": "0.6",
|
|
12624
|
+
"stroke-linecap": "round",
|
|
12625
|
+
"stroke-linejoin": "round"
|
|
12626
|
+
}
|
|
12627
|
+
),
|
|
12628
|
+
/* @__PURE__ */ jsx45(
|
|
12629
|
+
"path",
|
|
12630
|
+
{
|
|
12631
|
+
opacity: "0.6",
|
|
12632
|
+
d: "M95.3696 59.4441L95.9782 60.2034C96.1008 60.3564 96.3827 60.1962 96.5084 59.9021L97.8918 56.6641",
|
|
12633
|
+
stroke: "#5C5E63",
|
|
12634
|
+
"stroke-width": "0.6",
|
|
12635
|
+
"stroke-linecap": "round",
|
|
12636
|
+
"stroke-linejoin": "round"
|
|
12637
|
+
}
|
|
12638
|
+
),
|
|
12639
|
+
/* @__PURE__ */ jsx45(
|
|
12640
|
+
"path",
|
|
12641
|
+
{
|
|
12642
|
+
opacity: "0.6",
|
|
12643
|
+
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",
|
|
12644
|
+
stroke: "#5C5E63",
|
|
12645
|
+
"stroke-width": "0.6",
|
|
12646
|
+
"stroke-linecap": "round",
|
|
12647
|
+
"stroke-linejoin": "round"
|
|
12648
|
+
}
|
|
12649
|
+
),
|
|
12650
|
+
/* @__PURE__ */ jsx45(
|
|
12651
|
+
"path",
|
|
12652
|
+
{
|
|
12653
|
+
opacity: "0.6",
|
|
12654
|
+
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",
|
|
12655
|
+
stroke: "#5C5E63",
|
|
12656
|
+
"stroke-width": "0.6",
|
|
12657
|
+
"stroke-linecap": "round",
|
|
12658
|
+
"stroke-linejoin": "round"
|
|
12659
|
+
}
|
|
12660
|
+
),
|
|
12661
|
+
/* @__PURE__ */ jsx45(
|
|
12662
|
+
"path",
|
|
12663
|
+
{
|
|
12664
|
+
opacity: "0.6",
|
|
12665
|
+
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",
|
|
12666
|
+
stroke: "#5C5E63",
|
|
12667
|
+
"stroke-width": "0.6",
|
|
12668
|
+
"stroke-linecap": "round",
|
|
12669
|
+
"stroke-linejoin": "round"
|
|
12670
|
+
}
|
|
12671
|
+
),
|
|
12672
|
+
/* @__PURE__ */ jsx45(
|
|
12673
|
+
"path",
|
|
12674
|
+
{
|
|
12675
|
+
opacity: "0.6",
|
|
12676
|
+
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",
|
|
12677
|
+
stroke: "#5C5E63",
|
|
12678
|
+
"stroke-width": "0.6",
|
|
12679
|
+
"stroke-linecap": "round",
|
|
12680
|
+
"stroke-linejoin": "round"
|
|
12681
|
+
}
|
|
12682
|
+
),
|
|
12683
|
+
/* @__PURE__ */ jsx45(
|
|
12684
|
+
"path",
|
|
12685
|
+
{
|
|
12686
|
+
opacity: "0.6",
|
|
12687
|
+
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",
|
|
12688
|
+
stroke: "#5C5E63",
|
|
12689
|
+
"stroke-width": "0.6",
|
|
12690
|
+
"stroke-linecap": "round",
|
|
12691
|
+
"stroke-linejoin": "round"
|
|
12692
|
+
}
|
|
12693
|
+
),
|
|
12694
|
+
/* @__PURE__ */ jsx45(
|
|
12695
|
+
"path",
|
|
12696
|
+
{
|
|
12697
|
+
opacity: "0.6",
|
|
12698
|
+
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",
|
|
12699
|
+
stroke: "#5C5E63",
|
|
12700
|
+
"stroke-width": "0.6",
|
|
12701
|
+
"stroke-linecap": "round",
|
|
12702
|
+
"stroke-linejoin": "round"
|
|
12703
|
+
}
|
|
12704
|
+
),
|
|
12705
|
+
/* @__PURE__ */ jsx45(
|
|
12706
|
+
"path",
|
|
12707
|
+
{
|
|
12708
|
+
opacity: "0.6",
|
|
12709
|
+
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",
|
|
12710
|
+
stroke: "#5C5E63",
|
|
12711
|
+
"stroke-width": "0.6",
|
|
12712
|
+
"stroke-linecap": "round",
|
|
12713
|
+
"stroke-linejoin": "round"
|
|
12714
|
+
}
|
|
12715
|
+
),
|
|
12716
|
+
/* @__PURE__ */ jsx45(
|
|
12717
|
+
"path",
|
|
12718
|
+
{
|
|
12719
|
+
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",
|
|
12720
|
+
fill: "white"
|
|
12721
|
+
}
|
|
12722
|
+
),
|
|
12723
|
+
/* @__PURE__ */ jsx45(
|
|
12724
|
+
"path",
|
|
12725
|
+
{
|
|
12726
|
+
"fill-rule": "evenodd",
|
|
12727
|
+
"clip-rule": "evenodd",
|
|
12728
|
+
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",
|
|
12729
|
+
fill: "white"
|
|
12730
|
+
}
|
|
12731
|
+
),
|
|
12732
|
+
/* @__PURE__ */ jsx45(
|
|
12733
|
+
"path",
|
|
12734
|
+
{
|
|
12735
|
+
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",
|
|
12736
|
+
stroke: "#9FA1A7",
|
|
12737
|
+
"stroke-width": "0.6",
|
|
12738
|
+
"stroke-linecap": "round",
|
|
12739
|
+
"stroke-linejoin": "round"
|
|
12740
|
+
}
|
|
12741
|
+
)
|
|
12742
|
+
] }),
|
|
12743
|
+
/* @__PURE__ */ jsx45("defs", { children: /* @__PURE__ */ jsx45("clipPath", { id: "clip0_2454_28950", children: /* @__PURE__ */ jsx45(
|
|
12744
|
+
"rect",
|
|
12745
|
+
{
|
|
12746
|
+
width: "215",
|
|
12747
|
+
height: "140",
|
|
12748
|
+
fill: "white",
|
|
12749
|
+
transform: "translate(0.5)"
|
|
12750
|
+
}
|
|
12751
|
+
) }) })
|
|
12752
|
+
]
|
|
12753
|
+
}
|
|
12754
|
+
) : /* @__PURE__ */ jsx45("img", { src: "public/images/empty-table.png", alt: "", className: "w-full" });
|
|
12755
|
+
};
|
|
12756
|
+
|
|
12757
|
+
// src/widgets/advanced/table/empty-table.tsx
|
|
12758
|
+
import { jsx as jsx46, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12759
|
+
var EmptyTable = ({ isForm }) => {
|
|
12760
|
+
return /* @__PURE__ */ jsxs28("div", { className: `flex flex-col items-center justify-center gap-6 `, children: [
|
|
12761
|
+
/* @__PURE__ */ jsx46(IcEmptyTable, { isForm }),
|
|
12762
|
+
/* @__PURE__ */ jsxs28("div", { children: [
|
|
12763
|
+
/* @__PURE__ */ jsx46("p", {}),
|
|
12764
|
+
/* @__PURE__ */ jsx46("p", { className: "text-xl font-extrabold", children: i18n_default.t("empty_data") })
|
|
12765
|
+
] })
|
|
12766
|
+
] });
|
|
12767
|
+
};
|
|
12768
|
+
|
|
12647
12769
|
// node_modules/react-hook-form/dist/index.esm.mjs
|
|
12648
12770
|
import React from "react";
|
|
12649
12771
|
var isCheckBoxInput = (element) => element.type === "checkbox";
|
|
@@ -14458,10 +14580,10 @@ function s2(o3, s4, t3) {
|
|
|
14458
14580
|
|
|
14459
14581
|
// src/widgets/advanced/login/shared/button.tsx
|
|
14460
14582
|
import * as React2 from "react";
|
|
14461
|
-
import { jsx as
|
|
14583
|
+
import { jsx as jsx47 } from "react/jsx-runtime";
|
|
14462
14584
|
var Button = React2.forwardRef(
|
|
14463
14585
|
({ className = "", isLoading = false, type = "button", children, ...props }, ref) => {
|
|
14464
|
-
return /* @__PURE__ */
|
|
14586
|
+
return /* @__PURE__ */ jsx47(
|
|
14465
14587
|
"button",
|
|
14466
14588
|
{
|
|
14467
14589
|
className: `${`inline-flex items-center justify-center rounded-md text-sm font-medium
|
|
@@ -14471,7 +14593,7 @@ var Button = React2.forwardRef(
|
|
|
14471
14593
|
ref,
|
|
14472
14594
|
type,
|
|
14473
14595
|
...props,
|
|
14474
|
-
children: isLoading ? /* @__PURE__ */
|
|
14596
|
+
children: isLoading ? /* @__PURE__ */ jsx47(LoadingIcon, { width: 20, height: 20 }) : children
|
|
14475
14597
|
}
|
|
14476
14598
|
);
|
|
14477
14599
|
}
|
|
@@ -14480,7 +14602,7 @@ Button.displayName = "Button";
|
|
|
14480
14602
|
|
|
14481
14603
|
// src/widgets/advanced/login/shared/text-input.tsx
|
|
14482
14604
|
import { useState as useState4 } from "react";
|
|
14483
|
-
import { jsx as
|
|
14605
|
+
import { jsx as jsx48, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
14484
14606
|
function TextInput(props) {
|
|
14485
14607
|
const {
|
|
14486
14608
|
className,
|
|
@@ -14497,14 +14619,14 @@ function TextInput(props) {
|
|
|
14497
14619
|
return /* @__PURE__ */ jsxs29("div", { className: `flex justify-center gap-2 flex-col ${className}`, children: [
|
|
14498
14620
|
label && /* @__PURE__ */ jsxs29("label", { className: "text-[#262626] text-sm leading-5 font-semibold", children: [
|
|
14499
14621
|
label,
|
|
14500
|
-
required ? /* @__PURE__ */
|
|
14622
|
+
required ? /* @__PURE__ */ jsx48("span", { className: "text-[#ff4d4f]", children: "*" }) : ""
|
|
14501
14623
|
] }),
|
|
14502
14624
|
/* @__PURE__ */ jsxs29(
|
|
14503
14625
|
"div",
|
|
14504
14626
|
{
|
|
14505
14627
|
className: `flex h-14 w-full items-center border border-[#E0E0E0] px-4 py-3 ${inputWrapperClassName}`,
|
|
14506
14628
|
children: [
|
|
14507
|
-
/* @__PURE__ */
|
|
14629
|
+
/* @__PURE__ */ jsx48(
|
|
14508
14630
|
"input",
|
|
14509
14631
|
{
|
|
14510
14632
|
className: "flex-1 outline-none placeholder:text-[14px] placeholder:text-[#ABACAE]",
|
|
@@ -14513,18 +14635,18 @@ function TextInput(props) {
|
|
|
14513
14635
|
...register(name2)
|
|
14514
14636
|
}
|
|
14515
14637
|
),
|
|
14516
|
-
type === "password" && /* @__PURE__ */
|
|
14638
|
+
type === "password" && /* @__PURE__ */ jsx48(
|
|
14517
14639
|
"span",
|
|
14518
14640
|
{
|
|
14519
14641
|
onClick: () => setShowPassword(!showPassword),
|
|
14520
14642
|
className: "focus:outline-none",
|
|
14521
|
-
children: showPassword ? /* @__PURE__ */
|
|
14643
|
+
children: showPassword ? /* @__PURE__ */ jsx48(EyeClosedIcon, {}) : /* @__PURE__ */ jsx48(EyeIcon, {})
|
|
14522
14644
|
}
|
|
14523
14645
|
)
|
|
14524
14646
|
]
|
|
14525
14647
|
}
|
|
14526
14648
|
),
|
|
14527
|
-
errors?.[name2]?.message && /* @__PURE__ */
|
|
14649
|
+
errors?.[name2]?.message && /* @__PURE__ */ jsx48(
|
|
14528
14650
|
"p",
|
|
14529
14651
|
{
|
|
14530
14652
|
className: `text-[12px] origin-top transition-all text-red-500 ${errors?.[name2] ? "h-4" : "h-0 -mt-1"}`,
|
|
@@ -14536,7 +14658,7 @@ function TextInput(props) {
|
|
|
14536
14658
|
|
|
14537
14659
|
// src/widgets/advanced/login/provider/credential/form-options/index.tsx
|
|
14538
14660
|
import { useEffect as useEffect5 } from "react";
|
|
14539
|
-
import { jsx as
|
|
14661
|
+
import { jsx as jsx49, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
14540
14662
|
var STAY_LOGIN_IN = "stayLoginIn";
|
|
14541
14663
|
function FormOptions({
|
|
14542
14664
|
forgotPasswordUrl,
|
|
@@ -14564,7 +14686,7 @@ function FormOptions({
|
|
|
14564
14686
|
}, []);
|
|
14565
14687
|
return /* @__PURE__ */ jsxs30("div", { className: "flex justify-between items-center text-[#005aa9] text-sm leading-5 font-medium select-none", children: [
|
|
14566
14688
|
/* @__PURE__ */ jsxs30("label", { className: "flex gap-3", children: [
|
|
14567
|
-
/* @__PURE__ */
|
|
14689
|
+
/* @__PURE__ */ jsx49(
|
|
14568
14690
|
"input",
|
|
14569
14691
|
{
|
|
14570
14692
|
checked: stayLoginIn,
|
|
@@ -14573,14 +14695,14 @@ function FormOptions({
|
|
|
14573
14695
|
onChange: handleCheckboxChange
|
|
14574
14696
|
}
|
|
14575
14697
|
),
|
|
14576
|
-
/* @__PURE__ */
|
|
14698
|
+
/* @__PURE__ */ jsx49("p", { children: "Duy tr\xEC \u0111\u0103ng nh\u1EADp" })
|
|
14577
14699
|
] }),
|
|
14578
|
-
!hideForgotPassword && /* @__PURE__ */
|
|
14700
|
+
!hideForgotPassword && /* @__PURE__ */ jsx49("a", { href: forgotPasswordUrl, className: "underline", children: "Qu\xEAn m\u1EADt kh\u1EA9u?" })
|
|
14579
14701
|
] });
|
|
14580
14702
|
}
|
|
14581
14703
|
|
|
14582
14704
|
// src/widgets/advanced/login/provider/credential/index.tsx
|
|
14583
|
-
import { Fragment as Fragment4, jsx as
|
|
14705
|
+
import { Fragment as Fragment4, jsx as jsx50, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
14584
14706
|
var CredentialLogin = (props) => {
|
|
14585
14707
|
const {
|
|
14586
14708
|
shouldRenderDivider,
|
|
@@ -14609,7 +14731,7 @@ var CredentialLogin = (props) => {
|
|
|
14609
14731
|
className: `flex w-full h-fit flex-col gap-10`,
|
|
14610
14732
|
children: [
|
|
14611
14733
|
/* @__PURE__ */ jsxs31("div", { className: "flex flex-col gap-6", children: [
|
|
14612
|
-
/* @__PURE__ */
|
|
14734
|
+
/* @__PURE__ */ jsx50(
|
|
14613
14735
|
TextInput,
|
|
14614
14736
|
{
|
|
14615
14737
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14622,7 +14744,7 @@ var CredentialLogin = (props) => {
|
|
|
14622
14744
|
errors
|
|
14623
14745
|
}
|
|
14624
14746
|
),
|
|
14625
|
-
/* @__PURE__ */
|
|
14747
|
+
/* @__PURE__ */ jsx50(
|
|
14626
14748
|
TextInput,
|
|
14627
14749
|
{
|
|
14628
14750
|
inputWrapperClassName: "py-2.5 h-[42px] rounded",
|
|
@@ -14635,7 +14757,7 @@ var CredentialLogin = (props) => {
|
|
|
14635
14757
|
errors
|
|
14636
14758
|
}
|
|
14637
14759
|
),
|
|
14638
|
-
/* @__PURE__ */
|
|
14760
|
+
/* @__PURE__ */ jsx50(
|
|
14639
14761
|
FormOptions,
|
|
14640
14762
|
{
|
|
14641
14763
|
forgotPasswordUrl,
|
|
@@ -14645,7 +14767,7 @@ var CredentialLogin = (props) => {
|
|
|
14645
14767
|
}
|
|
14646
14768
|
)
|
|
14647
14769
|
] }),
|
|
14648
|
-
/* @__PURE__ */
|
|
14770
|
+
/* @__PURE__ */ jsx50("div", { className: "flex flex-col gap-6", children: /* @__PURE__ */ jsx50(
|
|
14649
14771
|
Button,
|
|
14650
14772
|
{
|
|
14651
14773
|
type: "submit",
|
|
@@ -14658,14 +14780,14 @@ var CredentialLogin = (props) => {
|
|
|
14658
14780
|
}
|
|
14659
14781
|
),
|
|
14660
14782
|
shouldRenderDivider && /* @__PURE__ */ jsxs31("div", { className: "flex justify-center relative", children: [
|
|
14661
|
-
/* @__PURE__ */
|
|
14662
|
-
/* @__PURE__ */
|
|
14783
|
+
/* @__PURE__ */ jsx50("div", { className: "absolute inset-x-0 top-[calc(50%-0.5px)] h-[0.8px] bg-gray-300" }),
|
|
14784
|
+
/* @__PURE__ */ jsx50("span", { className: "relative font-medium text-sm inline-block bg-white px-2.5 text-[#6e6e6e]", children: "ho\u1EB7c" })
|
|
14663
14785
|
] })
|
|
14664
14786
|
] });
|
|
14665
14787
|
};
|
|
14666
14788
|
|
|
14667
14789
|
// src/widgets/advanced/login/provider/google/google-btn/index.tsx
|
|
14668
|
-
import { jsx as
|
|
14790
|
+
import { jsx as jsx51, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
14669
14791
|
function GoogleButton(props) {
|
|
14670
14792
|
const { onLoginGoogle, db } = props;
|
|
14671
14793
|
return /* @__PURE__ */ jsxs32(
|
|
@@ -14674,39 +14796,39 @@ function GoogleButton(props) {
|
|
|
14674
14796
|
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",
|
|
14675
14797
|
onClick: () => onLoginGoogle?.(db),
|
|
14676
14798
|
children: [
|
|
14677
|
-
/* @__PURE__ */
|
|
14678
|
-
/* @__PURE__ */
|
|
14799
|
+
/* @__PURE__ */ jsx51(GoogleIcon, { className: "google-icon" }),
|
|
14800
|
+
/* @__PURE__ */ jsx51("span", { className: "google-title font-bold text-base", children: "\u0110\u0103ng nh\u1EADp v\u1EDBi google" })
|
|
14679
14801
|
]
|
|
14680
14802
|
}
|
|
14681
14803
|
);
|
|
14682
14804
|
}
|
|
14683
14805
|
|
|
14684
14806
|
// src/widgets/advanced/login/provider/google/redirect/index.tsx
|
|
14685
|
-
import { Fragment as Fragment5, jsx as
|
|
14807
|
+
import { Fragment as Fragment5, jsx as jsx52 } from "react/jsx-runtime";
|
|
14686
14808
|
function SocialRedirect(props) {
|
|
14687
14809
|
const { db, onLoginSocial } = props;
|
|
14688
14810
|
onLoginSocial && onLoginSocial(String(db));
|
|
14689
|
-
return /* @__PURE__ */
|
|
14811
|
+
return /* @__PURE__ */ jsx52(Fragment5, {});
|
|
14690
14812
|
}
|
|
14691
14813
|
|
|
14692
14814
|
// src/widgets/advanced/login/provider/google/index.tsx
|
|
14693
|
-
import { Fragment as Fragment6, jsx as
|
|
14815
|
+
import { Fragment as Fragment6, jsx as jsx53, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
14694
14816
|
var GoogleLogin = ({ db, onLoginSocial, onLoginGoogle }) => {
|
|
14695
14817
|
return /* @__PURE__ */ jsxs33(Fragment6, { children: [
|
|
14696
|
-
/* @__PURE__ */
|
|
14697
|
-
/* @__PURE__ */
|
|
14818
|
+
/* @__PURE__ */ jsx53(GoogleButton, { db, onLoginGoogle }),
|
|
14819
|
+
/* @__PURE__ */ jsx53(SocialRedirect, { db, onLoginSocial })
|
|
14698
14820
|
] });
|
|
14699
14821
|
};
|
|
14700
14822
|
|
|
14701
14823
|
// src/widgets/advanced/login/index.tsx
|
|
14702
|
-
import { jsx as
|
|
14824
|
+
import { jsx as jsx54, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
14703
14825
|
var LoginProviderMapping = {
|
|
14704
14826
|
google: GoogleLogin
|
|
14705
14827
|
};
|
|
14706
14828
|
var Login = (props) => {
|
|
14707
14829
|
const { providers = [], forgotPasswordUrl = "/", db, onLoginSocial, onLoginGoogle } = props;
|
|
14708
14830
|
return /* @__PURE__ */ jsxs34("div", { className: "w-full space-y-8", children: [
|
|
14709
|
-
/* @__PURE__ */
|
|
14831
|
+
/* @__PURE__ */ jsx54(
|
|
14710
14832
|
CredentialLogin,
|
|
14711
14833
|
{
|
|
14712
14834
|
...props,
|
|
@@ -14716,7 +14838,7 @@ var Login = (props) => {
|
|
|
14716
14838
|
),
|
|
14717
14839
|
providers.map((provider, index4) => {
|
|
14718
14840
|
const ProviderComp = LoginProviderMapping[provider];
|
|
14719
|
-
return /* @__PURE__ */
|
|
14841
|
+
return /* @__PURE__ */ jsx54(
|
|
14720
14842
|
ProviderComp,
|
|
14721
14843
|
{
|
|
14722
14844
|
db,
|
|
@@ -14730,7 +14852,7 @@ var Login = (props) => {
|
|
|
14730
14852
|
};
|
|
14731
14853
|
|
|
14732
14854
|
// src/widgets/advanced/search/popup-filter/index.tsx
|
|
14733
|
-
import { jsx as
|
|
14855
|
+
import { jsx as jsx55, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
14734
14856
|
var PopupFilter = ({
|
|
14735
14857
|
handleAddTagSearch,
|
|
14736
14858
|
removeSearchItems,
|
|
@@ -14740,7 +14862,7 @@ var PopupFilter = ({
|
|
|
14740
14862
|
setGroupBy,
|
|
14741
14863
|
fields
|
|
14742
14864
|
}) => {
|
|
14743
|
-
return /* @__PURE__ */
|
|
14865
|
+
return /* @__PURE__ */ jsx55(
|
|
14744
14866
|
"div",
|
|
14745
14867
|
{
|
|
14746
14868
|
style: {
|
|
@@ -14757,15 +14879,15 @@ var PopupFilter = ({
|
|
|
14757
14879
|
children: [
|
|
14758
14880
|
filterBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "filter-by w-full px-3", children: [
|
|
14759
14881
|
/* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14760
|
-
/* @__PURE__ */
|
|
14761
|
-
/* @__PURE__ */
|
|
14882
|
+
/* @__PURE__ */ jsx55(FilterIcon, { className: "filter-by-icon text-primary" }),
|
|
14883
|
+
/* @__PURE__ */ jsx55("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("filter_by") })
|
|
14762
14884
|
] }),
|
|
14763
14885
|
filterBy?.reduce((acc, item, index4, array) => {
|
|
14764
14886
|
const prevItem = array[index4 - 1];
|
|
14765
14887
|
const isDifferentGroup = prevItem && prevItem?.group_index !== item?.group_index;
|
|
14766
14888
|
const isExist = item?.active;
|
|
14767
14889
|
if (isDifferentGroup) {
|
|
14768
|
-
acc.push(/* @__PURE__ */
|
|
14890
|
+
acc.push(/* @__PURE__ */ jsx55("hr", { className: "my-2" }, "separator-" + index4));
|
|
14769
14891
|
}
|
|
14770
14892
|
acc.push(
|
|
14771
14893
|
/* @__PURE__ */ jsxs35(
|
|
@@ -14793,8 +14915,8 @@ var PopupFilter = ({
|
|
|
14793
14915
|
});
|
|
14794
14916
|
},
|
|
14795
14917
|
children: [
|
|
14796
|
-
isExist && /* @__PURE__ */
|
|
14797
|
-
/* @__PURE__ */
|
|
14918
|
+
isExist && /* @__PURE__ */ jsx55(CheckIcon, {}),
|
|
14919
|
+
/* @__PURE__ */ jsx55("span", { className: "text-sm", children: item?.string ?? item?.help })
|
|
14798
14920
|
]
|
|
14799
14921
|
},
|
|
14800
14922
|
"filter-" + index4
|
|
@@ -14803,11 +14925,11 @@ var PopupFilter = ({
|
|
|
14803
14925
|
return acc;
|
|
14804
14926
|
}, [])
|
|
14805
14927
|
] }),
|
|
14806
|
-
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */
|
|
14928
|
+
filterBy?.length > 0 && groupBy?.length > 0 && /* @__PURE__ */ jsx55("div", { className: "h-['initial'] w-[1px] bg-[#dee2e6]" }),
|
|
14807
14929
|
groupBy?.length > 0 && /* @__PURE__ */ jsxs35("div", { className: "group-by w-full px-3", children: [
|
|
14808
14930
|
/* @__PURE__ */ jsxs35("div", { className: "flex w-fit items-center justify-start gap-2 px-3 py-1", children: [
|
|
14809
|
-
/* @__PURE__ */
|
|
14810
|
-
/* @__PURE__ */
|
|
14931
|
+
/* @__PURE__ */ jsx55(GroupByIcon, { className: "group-by-icon text-primary" }),
|
|
14932
|
+
/* @__PURE__ */ jsx55("span", { className: "font-bold text-sm text-[#212529]", children: instance.t("group_by") })
|
|
14811
14933
|
] }),
|
|
14812
14934
|
groupBy?.map((item, index4) => {
|
|
14813
14935
|
const isExist = item?.active;
|
|
@@ -14836,8 +14958,8 @@ var PopupFilter = ({
|
|
|
14836
14958
|
},
|
|
14837
14959
|
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)]"}`,
|
|
14838
14960
|
children: [
|
|
14839
|
-
isExist && /* @__PURE__ */
|
|
14840
|
-
/* @__PURE__ */
|
|
14961
|
+
isExist && /* @__PURE__ */ jsx55(CheckIcon, {}),
|
|
14962
|
+
/* @__PURE__ */ jsx55("span", { className: "text-sm", children: item?.string })
|
|
14841
14963
|
]
|
|
14842
14964
|
},
|
|
14843
14965
|
"groupby-" + index4 + 1
|
|
@@ -14856,7 +14978,7 @@ import { useEffect as useEffect6, useState as useState5 } from "react";
|
|
|
14856
14978
|
|
|
14857
14979
|
// src/widgets/advanced/search/tag-search/index.tsx
|
|
14858
14980
|
import { Fragment as Fragment7 } from "react";
|
|
14859
|
-
import { Fragment as Fragment8, jsx as
|
|
14981
|
+
import { Fragment as Fragment8, jsx as jsx56, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
14860
14982
|
var TagSearch = ({
|
|
14861
14983
|
removeSearchItems,
|
|
14862
14984
|
selectedTags,
|
|
@@ -14871,10 +14993,10 @@ var TagSearch = ({
|
|
|
14871
14993
|
{
|
|
14872
14994
|
className: "flex min-h-full overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
14873
14995
|
children: [
|
|
14874
|
-
/* @__PURE__ */
|
|
14875
|
-
/* @__PURE__ */
|
|
14996
|
+
/* @__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, {}) }),
|
|
14997
|
+
/* @__PURE__ */ jsx56("div", { className: "pl-2 align-middle text-[#495057] text-[14px]", children: tag.values.map((value, idx) => {
|
|
14876
14998
|
return /* @__PURE__ */ jsxs36(Fragment7, { children: [
|
|
14877
|
-
/* @__PURE__ */
|
|
14999
|
+
/* @__PURE__ */ jsx56("span", { children: value }),
|
|
14878
15000
|
idx < tag.values.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
14879
15001
|
" ",
|
|
14880
15002
|
instance.t("or"),
|
|
@@ -14882,7 +15004,7 @@ var TagSearch = ({
|
|
|
14882
15004
|
] })
|
|
14883
15005
|
] }, idx);
|
|
14884
15006
|
}) }),
|
|
14885
|
-
/* @__PURE__ */
|
|
15007
|
+
/* @__PURE__ */ jsx56(
|
|
14886
15008
|
"button",
|
|
14887
15009
|
{
|
|
14888
15010
|
className: "px-2 text-sm font-bold",
|
|
@@ -14899,7 +15021,7 @@ var TagSearch = ({
|
|
|
14899
15021
|
);
|
|
14900
15022
|
}
|
|
14901
15023
|
},
|
|
14902
|
-
children: /* @__PURE__ */
|
|
15024
|
+
children: /* @__PURE__ */ jsx56(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
14903
15025
|
}
|
|
14904
15026
|
)
|
|
14905
15027
|
]
|
|
@@ -14907,26 +15029,26 @@ var TagSearch = ({
|
|
|
14907
15029
|
"selected-tag-" + index4
|
|
14908
15030
|
);
|
|
14909
15031
|
} else if (tag?.type === "group_by") {
|
|
14910
|
-
return /* @__PURE__ */
|
|
15032
|
+
return /* @__PURE__ */ jsx56(
|
|
14911
15033
|
"div",
|
|
14912
15034
|
{
|
|
14913
15035
|
className: "flex min-h-full overflow-hidden",
|
|
14914
|
-
children: /* @__PURE__ */
|
|
15036
|
+
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(
|
|
14915
15037
|
(value, indexValue) => value?.strings?.length > 0 && /* @__PURE__ */ jsxs36(
|
|
14916
15038
|
"div",
|
|
14917
15039
|
{
|
|
14918
15040
|
className: "flex gap-2 overflow-hidden rounded bg-[#E9ECEF] hover:shadow-xl",
|
|
14919
15041
|
children: [
|
|
14920
|
-
/* @__PURE__ */
|
|
15042
|
+
/* @__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, {}) }),
|
|
14921
15043
|
value?.strings?.map((string, idx) => /* @__PURE__ */ jsxs36(Fragment8, { children: [
|
|
14922
|
-
/* @__PURE__ */
|
|
15044
|
+
/* @__PURE__ */ jsx56("span", { children: string }),
|
|
14923
15045
|
idx < value?.strings.length - 1 && /* @__PURE__ */ jsxs36("span", { className: "text-sm italic text-[#495057] text-opacity-50", children: [
|
|
14924
15046
|
" ",
|
|
14925
15047
|
"> ",
|
|
14926
15048
|
" "
|
|
14927
15049
|
] })
|
|
14928
15050
|
] })),
|
|
14929
|
-
/* @__PURE__ */
|
|
15051
|
+
/* @__PURE__ */ jsx56(
|
|
14930
15052
|
"button",
|
|
14931
15053
|
{
|
|
14932
15054
|
className: "pr-2 text-sm font-bold",
|
|
@@ -14935,7 +15057,7 @@ var TagSearch = ({
|
|
|
14935
15057
|
typeof removeSearchItems === "function" && removeSearchItems(`${SearchType.GROUP}`);
|
|
14936
15058
|
}
|
|
14937
15059
|
},
|
|
14938
|
-
children: /* @__PURE__ */
|
|
15060
|
+
children: /* @__PURE__ */ jsx56(CloseIcon, { className: "size-4 cursor-pointer" })
|
|
14939
15061
|
}
|
|
14940
15062
|
)
|
|
14941
15063
|
]
|
|
@@ -14952,7 +15074,7 @@ var TagSearch = ({
|
|
|
14952
15074
|
};
|
|
14953
15075
|
|
|
14954
15076
|
// src/widgets/advanced/search/search-list/index.tsx
|
|
14955
|
-
import { jsx as
|
|
15077
|
+
import { jsx as jsx57, jsxs as jsxs37 } from "react/jsx-runtime";
|
|
14956
15078
|
var SearchList = ({
|
|
14957
15079
|
handleAddTagSearch,
|
|
14958
15080
|
handleMouseEnter,
|
|
@@ -14961,7 +15083,7 @@ var SearchList = ({
|
|
|
14961
15083
|
searchString,
|
|
14962
15084
|
hoveredIndexSearchList
|
|
14963
15085
|
}) => {
|
|
14964
|
-
return /* @__PURE__ */
|
|
15086
|
+
return /* @__PURE__ */ jsx57(
|
|
14965
15087
|
"div",
|
|
14966
15088
|
{
|
|
14967
15089
|
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`,
|
|
@@ -14992,12 +15114,12 @@ var SearchList = ({
|
|
|
14992
15114
|
children: [
|
|
14993
15115
|
instance.t("search"),
|
|
14994
15116
|
" ",
|
|
14995
|
-
/* @__PURE__ */
|
|
15117
|
+
/* @__PURE__ */ jsx57("span", { className: "font-bold", children: searchItem?.title }),
|
|
14996
15118
|
" ",
|
|
14997
15119
|
instance.t("for"),
|
|
14998
15120
|
":",
|
|
14999
15121
|
" ",
|
|
15000
|
-
/* @__PURE__ */
|
|
15122
|
+
/* @__PURE__ */ jsx57("span", { className: "custom-input-result text-primary font-bold italic", children: searchString })
|
|
15001
15123
|
]
|
|
15002
15124
|
},
|
|
15003
15125
|
"header-" + index4 + 1
|
|
@@ -15008,7 +15130,7 @@ var SearchList = ({
|
|
|
15008
15130
|
};
|
|
15009
15131
|
|
|
15010
15132
|
// src/widgets/advanced/search/search-item/index.tsx
|
|
15011
|
-
import { Fragment as Fragment9, jsx as
|
|
15133
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs38 } from "react/jsx-runtime";
|
|
15012
15134
|
var Search = ({
|
|
15013
15135
|
removeSearchItems,
|
|
15014
15136
|
selectedTags,
|
|
@@ -15111,9 +15233,9 @@ var Search = ({
|
|
|
15111
15233
|
ref: popupFilterRef,
|
|
15112
15234
|
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)]`,
|
|
15113
15235
|
children: [
|
|
15114
|
-
/* @__PURE__ */
|
|
15236
|
+
/* @__PURE__ */ jsx58("div", { className: "size-5", children: /* @__PURE__ */ jsx58(SearchIcon, {}) }),
|
|
15115
15237
|
/* @__PURE__ */ jsxs38("div", { className: "flex flex-1 flex-wrap items-center gap-[8px]", children: [
|
|
15116
|
-
/* @__PURE__ */
|
|
15238
|
+
/* @__PURE__ */ jsx58(
|
|
15117
15239
|
TagSearch,
|
|
15118
15240
|
{
|
|
15119
15241
|
removeSearchItems,
|
|
@@ -15122,7 +15244,7 @@ var Search = ({
|
|
|
15122
15244
|
setFilterBy
|
|
15123
15245
|
}
|
|
15124
15246
|
),
|
|
15125
|
-
/* @__PURE__ */
|
|
15247
|
+
/* @__PURE__ */ jsx58(
|
|
15126
15248
|
"input",
|
|
15127
15249
|
{
|
|
15128
15250
|
value: searchString,
|
|
@@ -15135,7 +15257,7 @@ var Search = ({
|
|
|
15135
15257
|
onKeyUp: (e3) => e3.preventDefault()
|
|
15136
15258
|
}
|
|
15137
15259
|
),
|
|
15138
|
-
/* @__PURE__ */
|
|
15260
|
+
/* @__PURE__ */ jsx58(
|
|
15139
15261
|
SearchList,
|
|
15140
15262
|
{
|
|
15141
15263
|
handleAddTagSearch,
|
|
@@ -15154,8 +15276,8 @@ var Search = ({
|
|
|
15154
15276
|
setShowPopupFilter((prev2) => !prev2);
|
|
15155
15277
|
},
|
|
15156
15278
|
children: [
|
|
15157
|
-
/* @__PURE__ */
|
|
15158
|
-
/* @__PURE__ */
|
|
15279
|
+
/* @__PURE__ */ jsx58("div", { className: "w-[1px] h-[28px] bg-[var(--stroke-default)]" }),
|
|
15280
|
+
/* @__PURE__ */ jsx58(
|
|
15159
15281
|
ChevronBottomIcon,
|
|
15160
15282
|
{
|
|
15161
15283
|
className: `h-5 w-5 min-w-fit transition-all ${showPopupFilter ? "rotate-180 " : ""}`
|
|
@@ -15164,7 +15286,7 @@ var Search = ({
|
|
|
15164
15286
|
]
|
|
15165
15287
|
}
|
|
15166
15288
|
),
|
|
15167
|
-
showPopupFilter && /* @__PURE__ */
|
|
15289
|
+
showPopupFilter && /* @__PURE__ */ jsx58(
|
|
15168
15290
|
PopupFilter,
|
|
15169
15291
|
{
|
|
15170
15292
|
handleAddTagSearch,
|
|
@@ -15183,16 +15305,16 @@ var Search = ({
|
|
|
15183
15305
|
};
|
|
15184
15306
|
|
|
15185
15307
|
// src/widgets/basic/active-badge-field/active-badge.tsx
|
|
15186
|
-
import { Fragment as Fragment10, jsx as
|
|
15308
|
+
import { Fragment as Fragment10, jsx as jsx59 } from "react/jsx-runtime";
|
|
15187
15309
|
var ActiveBadgeField = (props) => {
|
|
15188
15310
|
const {
|
|
15189
15311
|
type,
|
|
15190
15312
|
className
|
|
15191
15313
|
} = props;
|
|
15192
|
-
if (type === void 0) return /* @__PURE__ */
|
|
15314
|
+
if (type === void 0) return /* @__PURE__ */ jsx59(Fragment10, {});
|
|
15193
15315
|
const typeStyle = type ? "text-green-500" : "text-red-500";
|
|
15194
15316
|
const text = type ? i18n_default.t("active") : i18n_default.t("in_active");
|
|
15195
|
-
return /* @__PURE__ */
|
|
15317
|
+
return /* @__PURE__ */ jsx59("div", { className: `${typeStyle} ${className}`, children: text });
|
|
15196
15318
|
};
|
|
15197
15319
|
|
|
15198
15320
|
// node_modules/react-tooltip/dist/react-tooltip.min.mjs
|
|
@@ -16999,14 +17121,14 @@ var M = e2.forwardRef(({ id: t3, anchorId: l2, anchorSelect: n4, content: i3, ht
|
|
|
16999
17121
|
// src/widgets/common/modal-layer.tsx
|
|
17000
17122
|
import { Fragment as Fragment11 } from "react";
|
|
17001
17123
|
import { Dialog, DialogPanel, Transition } from "@headlessui/react";
|
|
17002
|
-
import { jsx as
|
|
17124
|
+
import { jsx as jsx60, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
17003
17125
|
var ModalLayer = ({
|
|
17004
17126
|
isOpen,
|
|
17005
17127
|
onClose,
|
|
17006
17128
|
title,
|
|
17007
17129
|
children
|
|
17008
17130
|
}) => {
|
|
17009
|
-
return /* @__PURE__ */
|
|
17131
|
+
return /* @__PURE__ */ jsx60(
|
|
17010
17132
|
Transition,
|
|
17011
17133
|
{
|
|
17012
17134
|
show: isOpen,
|
|
@@ -17017,22 +17139,22 @@ var ModalLayer = ({
|
|
|
17017
17139
|
leaveFrom: "transform scale-100 opacity-100",
|
|
17018
17140
|
leaveTo: "transform scale-95 opacity-0",
|
|
17019
17141
|
as: Fragment11,
|
|
17020
|
-
children: /* @__PURE__ */
|
|
17021
|
-
/* @__PURE__ */
|
|
17022
|
-
/* @__PURE__ */
|
|
17142
|
+
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: [
|
|
17143
|
+
/* @__PURE__ */ jsx60("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
17144
|
+
/* @__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: [
|
|
17023
17145
|
/* @__PURE__ */ jsxs39(
|
|
17024
17146
|
"div",
|
|
17025
17147
|
{
|
|
17026
17148
|
className: `flex justify-between items-center border-[rgba(0,0,0,0.1)] pb-2`,
|
|
17027
17149
|
children: [
|
|
17028
|
-
title && /* @__PURE__ */
|
|
17029
|
-
/* @__PURE__ */
|
|
17150
|
+
title && /* @__PURE__ */ jsx60("div", { id: "modal-title", className: "text-[20px] font-semibold", children: title }),
|
|
17151
|
+
/* @__PURE__ */ jsx60(
|
|
17030
17152
|
"button",
|
|
17031
17153
|
{
|
|
17032
17154
|
onClick: onClose,
|
|
17033
17155
|
"aria-label": "Close",
|
|
17034
17156
|
className: "ml-auto absolute top-[16px] right-[16px] !cursor-pointer",
|
|
17035
|
-
children: /* @__PURE__ */
|
|
17157
|
+
children: /* @__PURE__ */ jsx60(CloseIcon, {})
|
|
17036
17158
|
}
|
|
17037
17159
|
)
|
|
17038
17160
|
]
|
|
@@ -17046,7 +17168,7 @@ var ModalLayer = ({
|
|
|
17046
17168
|
};
|
|
17047
17169
|
|
|
17048
17170
|
// src/widgets/common/modal-confirm.tsx
|
|
17049
|
-
import { jsx as
|
|
17171
|
+
import { jsx as jsx61, jsxs as jsxs40 } from "react/jsx-runtime";
|
|
17050
17172
|
var ModalConfirm = ({
|
|
17051
17173
|
name: name2,
|
|
17052
17174
|
isShowModal,
|
|
@@ -17067,8 +17189,8 @@ var ModalConfirm = ({
|
|
|
17067
17189
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
17068
17190
|
disabled: isLoading,
|
|
17069
17191
|
children: [
|
|
17070
|
-
isLoading && /* @__PURE__ */
|
|
17071
|
-
/* @__PURE__ */
|
|
17192
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
17193
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "duplicating" : "duplicate") })
|
|
17072
17194
|
]
|
|
17073
17195
|
}
|
|
17074
17196
|
);
|
|
@@ -17081,8 +17203,8 @@ var ModalConfirm = ({
|
|
|
17081
17203
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
17082
17204
|
disabled: isLoading,
|
|
17083
17205
|
children: [
|
|
17084
|
-
isLoading && /* @__PURE__ */
|
|
17085
|
-
/* @__PURE__ */
|
|
17206
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
17207
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "archiving" : "save_archive") })
|
|
17086
17208
|
]
|
|
17087
17209
|
}
|
|
17088
17210
|
);
|
|
@@ -17095,8 +17217,8 @@ var ModalConfirm = ({
|
|
|
17095
17217
|
className: "button-primary flex-1 cursor-pointer flex items-center justify-center gap-2",
|
|
17096
17218
|
disabled: isLoading,
|
|
17097
17219
|
children: [
|
|
17098
|
-
isLoading && /* @__PURE__ */
|
|
17099
|
-
/* @__PURE__ */
|
|
17220
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
17221
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "unarchiving" : "save_unarchive") })
|
|
17100
17222
|
]
|
|
17101
17223
|
}
|
|
17102
17224
|
);
|
|
@@ -17109,8 +17231,8 @@ var ModalConfirm = ({
|
|
|
17109
17231
|
className: "button-primary flex-1 flex items-center justify-center gap-2",
|
|
17110
17232
|
disabled: isLoading,
|
|
17111
17233
|
children: [
|
|
17112
|
-
isLoading && /* @__PURE__ */
|
|
17113
|
-
/* @__PURE__ */
|
|
17234
|
+
isLoading && /* @__PURE__ */ jsx61(LoadingIcon, {}),
|
|
17235
|
+
/* @__PURE__ */ jsx61("span", { children: i18n_default.t(isLoading ? "deleting" : "delete_button") })
|
|
17114
17236
|
]
|
|
17115
17237
|
}
|
|
17116
17238
|
);
|
|
@@ -17118,13 +17240,13 @@ var ModalConfirm = ({
|
|
|
17118
17240
|
break;
|
|
17119
17241
|
}
|
|
17120
17242
|
};
|
|
17121
|
-
return /* @__PURE__ */
|
|
17243
|
+
return /* @__PURE__ */ jsx61(ModalLayer, { isOpen: isShowModal, onClose, children: /* @__PURE__ */ jsxs40("div", { className: "mx-auto flex flex-col items-center justify-center gap-4", children: [
|
|
17122
17244
|
/* @__PURE__ */ jsxs40("div", { className: "flex flex-col gap-[4px] items-center", children: [
|
|
17123
|
-
/* @__PURE__ */
|
|
17124
|
-
/* @__PURE__ */
|
|
17245
|
+
/* @__PURE__ */ jsx61("div", { className: "text-[18px] font-bold", children: title }),
|
|
17246
|
+
/* @__PURE__ */ jsx61("p", { className: "text-[16px]", children: content })
|
|
17125
17247
|
] }),
|
|
17126
17248
|
/* @__PURE__ */ jsxs40("div", { className: "flex justify-center items-center gap-2 w-full", children: [
|
|
17127
|
-
/* @__PURE__ */
|
|
17249
|
+
/* @__PURE__ */ jsx61(
|
|
17128
17250
|
"button",
|
|
17129
17251
|
{
|
|
17130
17252
|
type: "button",
|
|
@@ -17141,7 +17263,7 @@ var ModalConfirm = ({
|
|
|
17141
17263
|
// src/widgets/common/modal-detail.tsx
|
|
17142
17264
|
import { useState as useState6 } from "react";
|
|
17143
17265
|
import { createPortal as createPortal2 } from "react-dom";
|
|
17144
|
-
import { Fragment as Fragment12, jsx as
|
|
17266
|
+
import { Fragment as Fragment12, jsx as jsx62, jsxs as jsxs41 } from "react/jsx-runtime";
|
|
17145
17267
|
var ModalDetail = ({
|
|
17146
17268
|
idToolTip,
|
|
17147
17269
|
title,
|
|
@@ -17163,9 +17285,9 @@ var ModalDetail = ({
|
|
|
17163
17285
|
window.location.href = `/form/menu?model=${model}&id=${idForm}`;
|
|
17164
17286
|
};
|
|
17165
17287
|
return createPortal2(
|
|
17166
|
-
/* @__PURE__ */
|
|
17167
|
-
/* @__PURE__ */
|
|
17168
|
-
/* @__PURE__ */
|
|
17288
|
+
/* @__PURE__ */ jsx62(Fragment12, { children: showModalDetail && /* @__PURE__ */ jsxs41("div", { className: "fixed bottom-0 left-0 right-0 top-0 z-[100]", children: [
|
|
17289
|
+
/* @__PURE__ */ jsx62("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
17290
|
+
/* @__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: [
|
|
17169
17291
|
/* @__PURE__ */ jsxs41("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
17170
17292
|
/* @__PURE__ */ jsxs41(
|
|
17171
17293
|
"div",
|
|
@@ -17174,7 +17296,7 @@ var ModalDetail = ({
|
|
|
17174
17296
|
className: "text-[20px] cursor-pointer font-semibold flex items-stretch gap-2",
|
|
17175
17297
|
children: [
|
|
17176
17298
|
i18n_default.t("detail_button"),
|
|
17177
|
-
/* @__PURE__ */
|
|
17299
|
+
/* @__PURE__ */ jsx62(
|
|
17178
17300
|
"button",
|
|
17179
17301
|
{
|
|
17180
17302
|
onClick: handleNavigateDetail,
|
|
@@ -17185,9 +17307,9 @@ var ModalDetail = ({
|
|
|
17185
17307
|
]
|
|
17186
17308
|
}
|
|
17187
17309
|
),
|
|
17188
|
-
/* @__PURE__ */
|
|
17310
|
+
/* @__PURE__ */ jsx62("button", { onClick: handleToggleModal, className: "cursor-pointer", children: /* @__PURE__ */ jsx62(CloseIcon, { className: "h-5 w-5" }) })
|
|
17189
17311
|
] }),
|
|
17190
|
-
/* @__PURE__ */
|
|
17312
|
+
/* @__PURE__ */ jsx62("div", { className: "flex-1 overflow-auto", children: typeof renderDetail === "function" && renderDetail({
|
|
17191
17313
|
id: idForm,
|
|
17192
17314
|
aid,
|
|
17193
17315
|
model,
|
|
@@ -17202,7 +17324,7 @@ var ModalDetail = ({
|
|
|
17202
17324
|
|
|
17203
17325
|
// src/widgets/common/loading-normal.tsx
|
|
17204
17326
|
import { useEffect as useEffect7, useState as useState7 } from "react";
|
|
17205
|
-
import { jsx as
|
|
17327
|
+
import { jsx as jsx63, jsxs as jsxs42 } from "react/jsx-runtime";
|
|
17206
17328
|
var LayerLoading = () => {
|
|
17207
17329
|
const [activeIndex, setActiveIndex] = useState7(0);
|
|
17208
17330
|
useEffect7(() => {
|
|
@@ -17211,21 +17333,21 @@ var LayerLoading = () => {
|
|
|
17211
17333
|
}, 200);
|
|
17212
17334
|
return () => clearInterval(interval);
|
|
17213
17335
|
}, []);
|
|
17214
|
-
return /* @__PURE__ */
|
|
17215
|
-
/* @__PURE__ */
|
|
17336
|
+
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: [
|
|
17337
|
+
/* @__PURE__ */ jsx63("div", { className: "loading-container", children: [...Array(6)].map((_2, index4) => /* @__PURE__ */ jsx63(
|
|
17216
17338
|
"div",
|
|
17217
17339
|
{
|
|
17218
17340
|
className: `loading-item ${index4 === activeIndex ? "active" : ""}`
|
|
17219
17341
|
},
|
|
17220
17342
|
index4
|
|
17221
17343
|
)) }),
|
|
17222
|
-
/* @__PURE__ */
|
|
17344
|
+
/* @__PURE__ */ jsx63("div", { className: "text-[rgba(45,45,45,1)] text-xl font-semibold tracking-[-1%]", children: i18n_default.t("loading") })
|
|
17223
17345
|
] }) }) });
|
|
17224
17346
|
};
|
|
17225
17347
|
|
|
17226
17348
|
// src/widgets/common/loading-small.tsx
|
|
17227
17349
|
import { useEffect as useEffect8, useState as useState8 } from "react";
|
|
17228
|
-
import { jsx as
|
|
17350
|
+
import { jsx as jsx64 } from "react/jsx-runtime";
|
|
17229
17351
|
var LoadingSmall = () => {
|
|
17230
17352
|
const [activeIndex, setActiveIndex] = useState8(0);
|
|
17231
17353
|
useEffect8(() => {
|
|
@@ -17234,7 +17356,7 @@ var LoadingSmall = () => {
|
|
|
17234
17356
|
}, 200);
|
|
17235
17357
|
return () => clearInterval(interval);
|
|
17236
17358
|
}, []);
|
|
17237
|
-
return /* @__PURE__ */
|
|
17359
|
+
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(
|
|
17238
17360
|
"div",
|
|
17239
17361
|
{
|
|
17240
17362
|
className: `loading-item-small ${index4 === activeIndex ? "active" : ""}`
|
|
@@ -17245,7 +17367,7 @@ var LoadingSmall = () => {
|
|
|
17245
17367
|
|
|
17246
17368
|
// src/widgets/common/video-player.tsx
|
|
17247
17369
|
import { useRef as useRef5, useState as useState9 } from "react";
|
|
17248
|
-
import { jsx as
|
|
17370
|
+
import { jsx as jsx65, jsxs as jsxs43 } from "react/jsx-runtime";
|
|
17249
17371
|
var VideoPlayer = ({ src }) => {
|
|
17250
17372
|
const [isPlaying, setIsPlaying] = useState9(false);
|
|
17251
17373
|
const videoRef = useRef5(null);
|
|
@@ -17273,7 +17395,7 @@ var VideoPlayer = ({ src }) => {
|
|
|
17273
17395
|
}
|
|
17274
17396
|
};
|
|
17275
17397
|
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: [
|
|
17276
|
-
/* @__PURE__ */
|
|
17398
|
+
/* @__PURE__ */ jsx65(
|
|
17277
17399
|
"video",
|
|
17278
17400
|
{
|
|
17279
17401
|
ref: videoRef,
|
|
@@ -17285,20 +17407,20 @@ var VideoPlayer = ({ src }) => {
|
|
|
17285
17407
|
children: "Your browser does not support the video tag."
|
|
17286
17408
|
}
|
|
17287
17409
|
),
|
|
17288
|
-
/* @__PURE__ */
|
|
17289
|
-
/* @__PURE__ */
|
|
17410
|
+
/* @__PURE__ */ jsx65("div", { className: "absolute inset-0 flex items-center justify-center bg-black/50 p-2" }),
|
|
17411
|
+
/* @__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, {}) }) })
|
|
17290
17412
|
] });
|
|
17291
17413
|
};
|
|
17292
17414
|
|
|
17293
17415
|
// src/widgets/common/render-files.tsx
|
|
17294
|
-
import { jsx as
|
|
17416
|
+
import { jsx as jsx66, jsxs as jsxs44 } from "react/jsx-runtime";
|
|
17295
17417
|
var ImageItem = ({ filename, checksum, index: index4, src = null, useGetImage }) => {
|
|
17296
17418
|
const { data: image } = useGetImage({
|
|
17297
17419
|
data: { filename, checksum },
|
|
17298
17420
|
queryKey: [`get-image-${""}`],
|
|
17299
17421
|
src
|
|
17300
17422
|
});
|
|
17301
|
-
return /* @__PURE__ */
|
|
17423
|
+
return /* @__PURE__ */ jsx66("div", { className: "relative group group/file", children: /* @__PURE__ */ jsx66(
|
|
17302
17424
|
"img",
|
|
17303
17425
|
{
|
|
17304
17426
|
src: image || src,
|
|
@@ -17319,23 +17441,23 @@ var FileItem = (props) => {
|
|
|
17319
17441
|
useGetImage
|
|
17320
17442
|
} = props;
|
|
17321
17443
|
const fileTypeIcon = {
|
|
17322
|
-
"application/pdf": /* @__PURE__ */
|
|
17323
|
-
"application/zip": /* @__PURE__ */
|
|
17324
|
-
"application/x-zip-compressed": /* @__PURE__ */
|
|
17325
|
-
"application/vnd.ms-excel": /* @__PURE__ */
|
|
17326
|
-
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */
|
|
17444
|
+
"application/pdf": /* @__PURE__ */ jsx66(PdfIcon, {}),
|
|
17445
|
+
"application/zip": /* @__PURE__ */ jsx66(ZipIcon, {}),
|
|
17446
|
+
"application/x-zip-compressed": /* @__PURE__ */ jsx66(ZipIcon, {}),
|
|
17447
|
+
"application/vnd.ms-excel": /* @__PURE__ */ jsx66(ExcelIcon, {}),
|
|
17448
|
+
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": /* @__PURE__ */ jsx66(ExcelIcon, {})
|
|
17327
17449
|
};
|
|
17328
17450
|
const renderFile = () => {
|
|
17329
17451
|
if (mimetype?.includes("image") || mimetype?.includes("img") || checkIsImageLink(src)) {
|
|
17330
|
-
return /* @__PURE__ */
|
|
17452
|
+
return /* @__PURE__ */ jsx66(ImageItem, { ...props });
|
|
17331
17453
|
} else if (mimetype?.includes("video")) {
|
|
17332
|
-
return /* @__PURE__ */
|
|
17454
|
+
return /* @__PURE__ */ jsx66(VideoPlayer, { ...props });
|
|
17333
17455
|
} else {
|
|
17334
17456
|
return /* @__PURE__ */ jsxs44("div", { className: "flex bg-gray-200 items-center p-2 gap-2 overflow-hidden", children: [
|
|
17335
17457
|
fileTypeIcon[mimetype],
|
|
17336
17458
|
/* @__PURE__ */ jsxs44("div", { children: [
|
|
17337
|
-
/* @__PURE__ */
|
|
17338
|
-
/* @__PURE__ */
|
|
17459
|
+
/* @__PURE__ */ jsx66("p", { className: "text-[#0A0D14] font-medium", children: filename }),
|
|
17460
|
+
/* @__PURE__ */ jsx66("span", { className: "text-[12px]", children: formatFileSize(size4) })
|
|
17339
17461
|
] })
|
|
17340
17462
|
] });
|
|
17341
17463
|
}
|
|
@@ -17346,20 +17468,20 @@ var FileItem = (props) => {
|
|
|
17346
17468
|
className: "flex relative items-center overflow-hidden justify-between group rounded-md w-fit group/file",
|
|
17347
17469
|
children: [
|
|
17348
17470
|
renderFile(),
|
|
17349
|
-
handleRemoveFile && /* @__PURE__ */
|
|
17471
|
+
handleRemoveFile && /* @__PURE__ */ jsx66(
|
|
17350
17472
|
"div",
|
|
17351
17473
|
{
|
|
17352
17474
|
onClick: () => handleRemoveFile(index4),
|
|
17353
17475
|
className: "cursor-pointer absolute right-0 top-0 p-2 hidden group-hover/file:block bg-[rgba(0,0,0,0.2)]",
|
|
17354
|
-
children: /* @__PURE__ */
|
|
17476
|
+
children: /* @__PURE__ */ jsx66(DeleteIcon, {})
|
|
17355
17477
|
}
|
|
17356
17478
|
),
|
|
17357
|
-
!handleRemoveFile && /* @__PURE__ */
|
|
17479
|
+
!handleRemoveFile && /* @__PURE__ */ jsx66(
|
|
17358
17480
|
"span",
|
|
17359
17481
|
{
|
|
17360
17482
|
onClick: (e3) => handleFileDownload(e3, src, filename),
|
|
17361
17483
|
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)]",
|
|
17362
|
-
children: /* @__PURE__ */
|
|
17484
|
+
children: /* @__PURE__ */ jsx66(DownloadIcon, {})
|
|
17363
17485
|
}
|
|
17364
17486
|
)
|
|
17365
17487
|
]
|
|
@@ -17398,8 +17520,8 @@ var RenderFiles = ({ selectedFiles, setSelectedFiles, useGetImage }) => {
|
|
|
17398
17520
|
e3.stopPropagation();
|
|
17399
17521
|
downloadFile(url, name2);
|
|
17400
17522
|
};
|
|
17401
|
-
return /* @__PURE__ */
|
|
17402
|
-
return /* @__PURE__ */
|
|
17523
|
+
return /* @__PURE__ */ jsx66("div", { className: "mt-3 flex flex-wrap w-full gap-2", children: selectedFiles.map((file, index4) => {
|
|
17524
|
+
return /* @__PURE__ */ jsx66("div", { className: "relative group/file", children: /* @__PURE__ */ jsx66(
|
|
17403
17525
|
FileItem,
|
|
17404
17526
|
{
|
|
17405
17527
|
...file,
|
|
@@ -17601,7 +17723,7 @@ var po = $2(K("zoom"));
|
|
|
17601
17723
|
var uo = $2(K("flip"));
|
|
17602
17724
|
|
|
17603
17725
|
// src/widgets/common/select-files.tsx
|
|
17604
|
-
import { Fragment as Fragment13, jsx as
|
|
17726
|
+
import { Fragment as Fragment13, jsx as jsx67, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
17605
17727
|
var ButtonSelectFiles = ({
|
|
17606
17728
|
fileInputRef,
|
|
17607
17729
|
selectedFiles,
|
|
@@ -17699,7 +17821,7 @@ var ButtonSelectFiles = ({
|
|
|
17699
17821
|
}
|
|
17700
17822
|
};
|
|
17701
17823
|
return /* @__PURE__ */ jsxs45(Fragment13, { children: [
|
|
17702
|
-
isPending ? /* @__PURE__ */
|
|
17824
|
+
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(
|
|
17703
17825
|
"button",
|
|
17704
17826
|
{
|
|
17705
17827
|
type: "button",
|
|
@@ -17707,12 +17829,12 @@ var ButtonSelectFiles = ({
|
|
|
17707
17829
|
className: `w-fit h-[24px] flex gap-2 items-center text-black rounded-full overflow-hidden transition-all ${isPending ? "cursor-not-allowed" : "cursor-pointer"}`,
|
|
17708
17830
|
onClick: () => fileInputRef.current.click(),
|
|
17709
17831
|
children: [
|
|
17710
|
-
/* @__PURE__ */
|
|
17711
|
-
/* @__PURE__ */
|
|
17832
|
+
/* @__PURE__ */ jsx67(AttachIcon, {}),
|
|
17833
|
+
/* @__PURE__ */ jsx67("span", { children: i18n_default.t("upload_file_placeholder") })
|
|
17712
17834
|
]
|
|
17713
17835
|
}
|
|
17714
17836
|
),
|
|
17715
|
-
/* @__PURE__ */
|
|
17837
|
+
/* @__PURE__ */ jsx67(
|
|
17716
17838
|
"input",
|
|
17717
17839
|
{
|
|
17718
17840
|
type: "file",
|
|
@@ -17727,7 +17849,7 @@ var ButtonSelectFiles = ({
|
|
|
17727
17849
|
};
|
|
17728
17850
|
|
|
17729
17851
|
// src/widgets/basic/avatar-field/avatar.tsx
|
|
17730
|
-
import { Fragment as Fragment14, jsx as
|
|
17852
|
+
import { Fragment as Fragment14, jsx as jsx68, jsxs as jsxs46 } from "react/jsx-runtime";
|
|
17731
17853
|
var AvatarField = (props) => {
|
|
17732
17854
|
const {
|
|
17733
17855
|
isForm = false,
|
|
@@ -17752,7 +17874,7 @@ var AvatarField = (props) => {
|
|
|
17752
17874
|
fontSize: `${size4 / 2.5}px`
|
|
17753
17875
|
};
|
|
17754
17876
|
return /* @__PURE__ */ jsxs46(Fragment14, { children: [
|
|
17755
|
-
isForm && allowShowDetail && /* @__PURE__ */
|
|
17877
|
+
isForm && allowShowDetail && /* @__PURE__ */ jsx68(
|
|
17756
17878
|
ModalDetail,
|
|
17757
17879
|
{
|
|
17758
17880
|
idToolTip: `avatar-widget-id-${id}`,
|
|
@@ -17763,7 +17885,7 @@ var AvatarField = (props) => {
|
|
|
17763
17885
|
place: "top-start"
|
|
17764
17886
|
}
|
|
17765
17887
|
),
|
|
17766
|
-
allowShowDetail && /* @__PURE__ */
|
|
17888
|
+
allowShowDetail && /* @__PURE__ */ jsx68(
|
|
17767
17889
|
M,
|
|
17768
17890
|
{
|
|
17769
17891
|
id: `avatar-widget-id-${id}`,
|
|
@@ -17772,7 +17894,7 @@ var AvatarField = (props) => {
|
|
|
17772
17894
|
className: "z-20"
|
|
17773
17895
|
}
|
|
17774
17896
|
),
|
|
17775
|
-
avatarSrc ? /* @__PURE__ */
|
|
17897
|
+
avatarSrc ? /* @__PURE__ */ jsx68(
|
|
17776
17898
|
"img",
|
|
17777
17899
|
{
|
|
17778
17900
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -17780,7 +17902,7 @@ var AvatarField = (props) => {
|
|
|
17780
17902
|
className: "uppercase font-medium rounded-md flex items-center justify-center cursor-pointer size-[26px]",
|
|
17781
17903
|
alt: "Avatar"
|
|
17782
17904
|
}
|
|
17783
|
-
) : /* @__PURE__ */
|
|
17905
|
+
) : /* @__PURE__ */ jsx68("div", { children: /* @__PURE__ */ jsx68(
|
|
17784
17906
|
"div",
|
|
17785
17907
|
{
|
|
17786
17908
|
"data-tooltip-id": `avatar-widget-id-${id}`,
|
|
@@ -17793,7 +17915,7 @@ var AvatarField = (props) => {
|
|
|
17793
17915
|
};
|
|
17794
17916
|
|
|
17795
17917
|
// src/widgets/basic/binary-field/binary.tsx
|
|
17796
|
-
import { jsx as
|
|
17918
|
+
import { jsx as jsx69, jsxs as jsxs47 } from "react/jsx-runtime";
|
|
17797
17919
|
var BinaryField = (props) => {
|
|
17798
17920
|
const {
|
|
17799
17921
|
name: name2,
|
|
@@ -17813,41 +17935,41 @@ var BinaryField = (props) => {
|
|
|
17813
17935
|
checkIsImageLink: checkIsImageLink2,
|
|
17814
17936
|
getImageBase64WithMimeType
|
|
17815
17937
|
} = props;
|
|
17816
|
-
return /* @__PURE__ */
|
|
17938
|
+
return /* @__PURE__ */ jsx69(
|
|
17817
17939
|
Controller,
|
|
17818
17940
|
{
|
|
17819
17941
|
name: name2 ?? "",
|
|
17820
17942
|
control: methods.control,
|
|
17821
17943
|
render: ({ field }) => {
|
|
17822
17944
|
const renderImage = initialImage || selectedImage;
|
|
17823
|
-
return /* @__PURE__ */
|
|
17945
|
+
return /* @__PURE__ */ jsx69(
|
|
17824
17946
|
"div",
|
|
17825
17947
|
{
|
|
17826
17948
|
ref: binaryRef,
|
|
17827
17949
|
className: "relative flex w-fit items-center gap-4 rounded-lg shadow-md mb-11",
|
|
17828
17950
|
children: renderImage ? /* @__PURE__ */ jsxs47("div", { className: "relative group", children: [
|
|
17829
|
-
renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */
|
|
17951
|
+
renderImage && checkIsImageLink2(renderImage) ? /* @__PURE__ */ jsx69(
|
|
17830
17952
|
"img",
|
|
17831
17953
|
{
|
|
17832
17954
|
src: renderImage,
|
|
17833
17955
|
alt: "Selected",
|
|
17834
17956
|
className: "h-32 w-32 max-w-fit rounded-lg object-contain"
|
|
17835
17957
|
}
|
|
17836
|
-
) : renderImage ? /* @__PURE__ */
|
|
17958
|
+
) : renderImage ? /* @__PURE__ */ jsx69(
|
|
17837
17959
|
"img",
|
|
17838
17960
|
{
|
|
17839
17961
|
src: getImageBase64WithMimeType(renderImage) ?? void 0,
|
|
17840
17962
|
alt: "Selected",
|
|
17841
17963
|
className: "h-32 w-32 max-w-fit rounded-lg object-contain"
|
|
17842
17964
|
}
|
|
17843
|
-
) : /* @__PURE__ */
|
|
17844
|
-
!isInsideTable && !readonly && /* @__PURE__ */
|
|
17965
|
+
) : /* @__PURE__ */ jsx69(PlaceHolderIcon, {}),
|
|
17966
|
+
!isInsideTable && !readonly && /* @__PURE__ */ jsx69(
|
|
17845
17967
|
"button",
|
|
17846
17968
|
{
|
|
17847
17969
|
type: "button",
|
|
17848
17970
|
onClick: () => handleRemoveImage(field.onChange),
|
|
17849
17971
|
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",
|
|
17850
|
-
children: /* @__PURE__ */
|
|
17972
|
+
children: /* @__PURE__ */ jsx69(DeleteIcon, {})
|
|
17851
17973
|
}
|
|
17852
17974
|
)
|
|
17853
17975
|
] }) : /* @__PURE__ */ jsxs47(
|
|
@@ -17856,8 +17978,8 @@ var BinaryField = (props) => {
|
|
|
17856
17978
|
htmlFor: inputId,
|
|
17857
17979
|
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"}`,
|
|
17858
17980
|
children: [
|
|
17859
|
-
/* @__PURE__ */
|
|
17860
|
-
/* @__PURE__ */
|
|
17981
|
+
/* @__PURE__ */ jsx69("div", { className: "w-[48px] h-[48px]", children: /* @__PURE__ */ jsx69(AddIcon, {}) }),
|
|
17982
|
+
/* @__PURE__ */ jsx69(
|
|
17861
17983
|
"input",
|
|
17862
17984
|
{
|
|
17863
17985
|
id: inputId,
|
|
@@ -17880,7 +18002,7 @@ var BinaryField = (props) => {
|
|
|
17880
18002
|
};
|
|
17881
18003
|
|
|
17882
18004
|
// src/widgets/basic/button-badge-field/button-badge.tsx
|
|
17883
|
-
import { jsx as
|
|
18005
|
+
import { jsx as jsx70 } from "react/jsx-runtime";
|
|
17884
18006
|
var ButtonBadgeField = (props) => {
|
|
17885
18007
|
const { defaultValue, selection, value, formValues, domainHelper } = props;
|
|
17886
18008
|
const decorationSuccess = props["decoration-success"] && domainHelper.checkDomain(formValues, props["decoration-success"]);
|
|
@@ -17912,11 +18034,11 @@ var ButtonBadgeField = (props) => {
|
|
|
17912
18034
|
return item ? item[1] : "";
|
|
17913
18035
|
};
|
|
17914
18036
|
const label = getLabel(defaultValue ?? value);
|
|
17915
|
-
return label ? /* @__PURE__ */
|
|
18037
|
+
return label ? /* @__PURE__ */ jsx70("div", { className: buttonClass, children: i18n_default.t(label) }) : null;
|
|
17916
18038
|
};
|
|
17917
18039
|
|
|
17918
18040
|
// src/widgets/basic/button-field/button.tsx
|
|
17919
|
-
import { Fragment as Fragment15, jsx as
|
|
18041
|
+
import { Fragment as Fragment15, jsx as jsx71, jsxs as jsxs48 } from "react/jsx-runtime";
|
|
17920
18042
|
var ButtonField = (props) => {
|
|
17921
18043
|
const {
|
|
17922
18044
|
func,
|
|
@@ -17926,7 +18048,7 @@ var ButtonField = (props) => {
|
|
|
17926
18048
|
disable,
|
|
17927
18049
|
type = "submit"
|
|
17928
18050
|
} = props;
|
|
17929
|
-
return /* @__PURE__ */
|
|
18051
|
+
return /* @__PURE__ */ jsx71(Fragment15, { children: !loading ? /* @__PURE__ */ jsx71(
|
|
17930
18052
|
"button",
|
|
17931
18053
|
{
|
|
17932
18054
|
type,
|
|
@@ -17944,7 +18066,7 @@ var ButtonField = (props) => {
|
|
|
17944
18066
|
children: [
|
|
17945
18067
|
i18n_default.t("loading"),
|
|
17946
18068
|
" ",
|
|
17947
|
-
/* @__PURE__ */
|
|
18069
|
+
/* @__PURE__ */ jsx71(LoadingIcon, {})
|
|
17948
18070
|
]
|
|
17949
18071
|
}
|
|
17950
18072
|
) });
|
|
@@ -17952,7 +18074,7 @@ var ButtonField = (props) => {
|
|
|
17952
18074
|
|
|
17953
18075
|
// src/widgets/basic/char-field/char.tsx
|
|
17954
18076
|
import { useEffect as useEffect9 } from "react";
|
|
17955
|
-
import { Fragment as Fragment16, jsx as
|
|
18077
|
+
import { Fragment as Fragment16, jsx as jsx72, jsxs as jsxs49 } from "react/jsx-runtime";
|
|
17956
18078
|
var CharField = (props) => {
|
|
17957
18079
|
const {
|
|
17958
18080
|
name: name2,
|
|
@@ -17978,9 +18100,9 @@ var CharField = (props) => {
|
|
|
17978
18100
|
} = props;
|
|
17979
18101
|
if (!isForm) {
|
|
17980
18102
|
const propValue = value || defaultValue;
|
|
17981
|
-
return /* @__PURE__ */
|
|
18103
|
+
return /* @__PURE__ */ jsx72("span", { children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
17982
18104
|
}
|
|
17983
|
-
return /* @__PURE__ */
|
|
18105
|
+
return /* @__PURE__ */ jsx72(
|
|
17984
18106
|
Controller,
|
|
17985
18107
|
{
|
|
17986
18108
|
name: name2 ?? "",
|
|
@@ -18016,7 +18138,7 @@ var CharField = (props) => {
|
|
|
18016
18138
|
const realValue = typeof value2 === "string" || typeof value2 === "number" ? String(value2) : "";
|
|
18017
18139
|
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) : "";
|
|
18018
18140
|
return /* @__PURE__ */ jsxs49(Fragment16, { children: [
|
|
18019
|
-
/* @__PURE__ */
|
|
18141
|
+
/* @__PURE__ */ jsx72(
|
|
18020
18142
|
"textarea",
|
|
18021
18143
|
{
|
|
18022
18144
|
value: displayValue,
|
|
@@ -18075,7 +18197,7 @@ var CharField = (props) => {
|
|
|
18075
18197
|
`
|
|
18076
18198
|
}
|
|
18077
18199
|
),
|
|
18078
|
-
isEditTable ? /* @__PURE__ */
|
|
18200
|
+
isEditTable ? /* @__PURE__ */ jsx72(Fragment16, {}) : /* @__PURE__ */ jsx72(Fragment16, { children: error2 && /* @__PURE__ */ jsx72("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message }) })
|
|
18079
18201
|
] });
|
|
18080
18202
|
}
|
|
18081
18203
|
}
|
|
@@ -18083,7 +18205,7 @@ var CharField = (props) => {
|
|
|
18083
18205
|
};
|
|
18084
18206
|
|
|
18085
18207
|
// src/widgets/basic/checkbox-field/checkbox.tsx
|
|
18086
|
-
import { jsx as
|
|
18208
|
+
import { jsx as jsx73 } from "react/jsx-runtime";
|
|
18087
18209
|
var CheckboxField = (props) => {
|
|
18088
18210
|
const {
|
|
18089
18211
|
name: name2,
|
|
@@ -18098,9 +18220,9 @@ var CheckboxField = (props) => {
|
|
|
18098
18220
|
} = props;
|
|
18099
18221
|
if (!isForm) {
|
|
18100
18222
|
if (name2 === "is_active" || name2 === "active") {
|
|
18101
|
-
return /* @__PURE__ */
|
|
18223
|
+
return /* @__PURE__ */ jsx73(ActiveBadgeField, { type: value });
|
|
18102
18224
|
} else {
|
|
18103
|
-
return /* @__PURE__ */
|
|
18225
|
+
return /* @__PURE__ */ jsx73(
|
|
18104
18226
|
"input",
|
|
18105
18227
|
{
|
|
18106
18228
|
type: "checkbox",
|
|
@@ -18111,12 +18233,12 @@ var CheckboxField = (props) => {
|
|
|
18111
18233
|
);
|
|
18112
18234
|
}
|
|
18113
18235
|
}
|
|
18114
|
-
return /* @__PURE__ */
|
|
18236
|
+
return /* @__PURE__ */ jsx73(
|
|
18115
18237
|
Controller,
|
|
18116
18238
|
{
|
|
18117
18239
|
name: name2 ?? "",
|
|
18118
18240
|
control: methods?.control,
|
|
18119
|
-
render: ({ field }) => /* @__PURE__ */
|
|
18241
|
+
render: ({ field }) => /* @__PURE__ */ jsx73(
|
|
18120
18242
|
"div",
|
|
18121
18243
|
{
|
|
18122
18244
|
className: "flex items-center gap-2",
|
|
@@ -18129,7 +18251,7 @@ var CheckboxField = (props) => {
|
|
|
18129
18251
|
onChange2(name2 ?? "", checked);
|
|
18130
18252
|
}
|
|
18131
18253
|
},
|
|
18132
|
-
children: /* @__PURE__ */
|
|
18254
|
+
children: /* @__PURE__ */ jsx73(
|
|
18133
18255
|
"input",
|
|
18134
18256
|
{
|
|
18135
18257
|
...field,
|
|
@@ -18157,7 +18279,7 @@ var CheckboxField = (props) => {
|
|
|
18157
18279
|
|
|
18158
18280
|
// src/widgets/basic/color-field/color-wrapper.tsx
|
|
18159
18281
|
import { useEffect as useEffect10, useRef as useRef6, useState as useState10 } from "react";
|
|
18160
|
-
import { Fragment as Fragment17, jsx as
|
|
18282
|
+
import { Fragment as Fragment17, jsx as jsx74, jsxs as jsxs50 } from "react/jsx-runtime";
|
|
18161
18283
|
var ColorWrapper = (props) => {
|
|
18162
18284
|
const {
|
|
18163
18285
|
colors: colors2,
|
|
@@ -18184,8 +18306,8 @@ var ColorWrapper = (props) => {
|
|
|
18184
18306
|
document.removeEventListener("mousedown", handleClickOutside);
|
|
18185
18307
|
};
|
|
18186
18308
|
}, []);
|
|
18187
|
-
return /* @__PURE__ */
|
|
18188
|
-
/* @__PURE__ */
|
|
18309
|
+
return /* @__PURE__ */ jsx74("div", { ref: pickColorsRef, children: showFullColors ? /* @__PURE__ */ jsx74("div", { className: "flex gap-2", children: COLORS.map((color) => /* @__PURE__ */ jsxs50("div", { children: [
|
|
18310
|
+
/* @__PURE__ */ jsx74(
|
|
18189
18311
|
"button",
|
|
18190
18312
|
{
|
|
18191
18313
|
"data-tooltip-id": `${color?.color}${color?.id}`,
|
|
@@ -18199,7 +18321,7 @@ var ColorWrapper = (props) => {
|
|
|
18199
18321
|
}
|
|
18200
18322
|
}
|
|
18201
18323
|
),
|
|
18202
|
-
/* @__PURE__ */
|
|
18324
|
+
/* @__PURE__ */ jsx74(
|
|
18203
18325
|
M,
|
|
18204
18326
|
{
|
|
18205
18327
|
className: "",
|
|
@@ -18209,7 +18331,7 @@ var ColorWrapper = (props) => {
|
|
|
18209
18331
|
}
|
|
18210
18332
|
)
|
|
18211
18333
|
] }, color?.id)) }) : /* @__PURE__ */ jsxs50(Fragment17, { children: [
|
|
18212
|
-
/* @__PURE__ */
|
|
18334
|
+
/* @__PURE__ */ jsx74(
|
|
18213
18335
|
"button",
|
|
18214
18336
|
{
|
|
18215
18337
|
"data-tooltip-id": `${selectedColor?.id}${selectedColor?.name}`,
|
|
@@ -18222,7 +18344,7 @@ var ColorWrapper = (props) => {
|
|
|
18222
18344
|
style: { backgroundColor: selectedColor?.color }
|
|
18223
18345
|
}
|
|
18224
18346
|
),
|
|
18225
|
-
/* @__PURE__ */
|
|
18347
|
+
/* @__PURE__ */ jsx74(
|
|
18226
18348
|
M,
|
|
18227
18349
|
{
|
|
18228
18350
|
place: "top",
|
|
@@ -18234,13 +18356,13 @@ var ColorWrapper = (props) => {
|
|
|
18234
18356
|
};
|
|
18235
18357
|
|
|
18236
18358
|
// src/widgets/basic/color-field/color.tsx
|
|
18237
|
-
import { jsx as
|
|
18359
|
+
import { jsx as jsx75 } from "react/jsx-runtime";
|
|
18238
18360
|
var ColorField = (props) => {
|
|
18239
18361
|
const { value, isForm, name: name2, methods, onChange: onChange2, savePickColor } = props;
|
|
18240
18362
|
if (!isForm) {
|
|
18241
|
-
return /* @__PURE__ */
|
|
18363
|
+
return /* @__PURE__ */ jsx75(ColorWrapper, { savePickColor, defaultColor: value, colors: COLORS });
|
|
18242
18364
|
}
|
|
18243
|
-
return /* @__PURE__ */
|
|
18365
|
+
return /* @__PURE__ */ jsx75(
|
|
18244
18366
|
Controller,
|
|
18245
18367
|
{
|
|
18246
18368
|
name: name2 ?? "",
|
|
@@ -18250,7 +18372,7 @@ var ColorField = (props) => {
|
|
|
18250
18372
|
field.onChange(color?.id);
|
|
18251
18373
|
onChange2 && onChange2(name2 ?? "", color?.id);
|
|
18252
18374
|
};
|
|
18253
|
-
return /* @__PURE__ */
|
|
18375
|
+
return /* @__PURE__ */ jsx75(
|
|
18254
18376
|
ColorWrapper,
|
|
18255
18377
|
{
|
|
18256
18378
|
savePickColor: handlePickColorChange,
|
|
@@ -18265,7 +18387,7 @@ var ColorField = (props) => {
|
|
|
18265
18387
|
|
|
18266
18388
|
// src/widgets/basic/copy-link-buttton/copy-link.tsx
|
|
18267
18389
|
import { useEffect as useEffect11 } from "react";
|
|
18268
|
-
import { jsx as
|
|
18390
|
+
import { jsx as jsx76, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
18269
18391
|
var CopyLinkButtonField = (props) => {
|
|
18270
18392
|
const {
|
|
18271
18393
|
isForm,
|
|
@@ -18283,9 +18405,9 @@ var CopyLinkButtonField = (props) => {
|
|
|
18283
18405
|
propValue
|
|
18284
18406
|
} = props;
|
|
18285
18407
|
if (!isForm) {
|
|
18286
|
-
return /* @__PURE__ */
|
|
18408
|
+
return /* @__PURE__ */ jsx76("div", { className: "truncate max-w-[300px]", children: propValue && typeof propValue === "object" ? propValue.display_name : propValue });
|
|
18287
18409
|
}
|
|
18288
|
-
return /* @__PURE__ */
|
|
18410
|
+
return /* @__PURE__ */ jsx76(
|
|
18289
18411
|
Controller,
|
|
18290
18412
|
{
|
|
18291
18413
|
name: name2 ?? "",
|
|
@@ -18305,7 +18427,7 @@ var CopyLinkButtonField = (props) => {
|
|
|
18305
18427
|
}, [value]);
|
|
18306
18428
|
return /* @__PURE__ */ jsxs51("div", { className: "relative", children: [
|
|
18307
18429
|
/* @__PURE__ */ jsxs51("div", { className: "flex relative field", children: [
|
|
18308
|
-
/* @__PURE__ */
|
|
18430
|
+
/* @__PURE__ */ jsx76(
|
|
18309
18431
|
"input",
|
|
18310
18432
|
{
|
|
18311
18433
|
value: typeof value === "string" || typeof value === "number" ? String(value) : "",
|
|
@@ -18346,17 +18468,17 @@ var CopyLinkButtonField = (props) => {
|
|
|
18346
18468
|
`
|
|
18347
18469
|
}
|
|
18348
18470
|
),
|
|
18349
|
-
readonly && value && /* @__PURE__ */
|
|
18471
|
+
readonly && value && /* @__PURE__ */ jsx76(
|
|
18350
18472
|
"button",
|
|
18351
18473
|
{
|
|
18352
18474
|
className: "cursor-pointer",
|
|
18353
18475
|
type: "button",
|
|
18354
18476
|
onClick: () => handleCopyToClipboard(propValue),
|
|
18355
|
-
children: isCopied ? /* @__PURE__ */
|
|
18477
|
+
children: isCopied ? /* @__PURE__ */ jsx76(CheckIcon, {}) : /* @__PURE__ */ jsx76(CopyIcon, {})
|
|
18356
18478
|
}
|
|
18357
18479
|
)
|
|
18358
18480
|
] }),
|
|
18359
|
-
error2 && /* @__PURE__ */
|
|
18481
|
+
error2 && /* @__PURE__ */ jsx76("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
18360
18482
|
] });
|
|
18361
18483
|
}
|
|
18362
18484
|
}
|
|
@@ -22297,7 +22419,7 @@ function useEffectEvent(callback) {
|
|
|
22297
22419
|
}
|
|
22298
22420
|
|
|
22299
22421
|
// node_modules/react-datepicker/node_modules/@floating-ui/react/dist/floating-ui.react.mjs
|
|
22300
|
-
import { jsx as
|
|
22422
|
+
import { jsx as jsx77, jsxs as jsxs52, Fragment as Fragment18 } from "react/jsx-runtime";
|
|
22301
22423
|
import * as ReactDOM2 from "react-dom";
|
|
22302
22424
|
|
|
22303
22425
|
// node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs
|
|
@@ -22711,18 +22833,18 @@ var FloatingArrow = /* @__PURE__ */ React8.forwardRef(function FloatingArrow2(pr
|
|
|
22711
22833
|
transform: [rotation, transform].filter((t3) => !!t3).join(" "),
|
|
22712
22834
|
...restStyle
|
|
22713
22835
|
},
|
|
22714
|
-
children: [computedStrokeWidth > 0 && /* @__PURE__ */
|
|
22836
|
+
children: [computedStrokeWidth > 0 && /* @__PURE__ */ jsx77("path", {
|
|
22715
22837
|
clipPath: "url(#" + clipPathId + ")",
|
|
22716
22838
|
fill: "none",
|
|
22717
22839
|
stroke,
|
|
22718
22840
|
strokeWidth: computedStrokeWidth + (d ? 0 : 1),
|
|
22719
22841
|
d: dValue
|
|
22720
|
-
}), /* @__PURE__ */
|
|
22842
|
+
}), /* @__PURE__ */ jsx77("path", {
|
|
22721
22843
|
stroke: computedStrokeWidth && !d ? rest.fill : "none",
|
|
22722
22844
|
d: dValue
|
|
22723
|
-
}), /* @__PURE__ */
|
|
22845
|
+
}), /* @__PURE__ */ jsx77("clipPath", {
|
|
22724
22846
|
id: clipPathId,
|
|
22725
|
-
children: /* @__PURE__ */
|
|
22847
|
+
children: /* @__PURE__ */ jsx77("rect", {
|
|
22726
22848
|
x: -halfStrokeWidth,
|
|
22727
22849
|
y: halfStrokeWidth * (isCustomShape ? -1 : 1),
|
|
22728
22850
|
width: width + computedStrokeWidth,
|
|
@@ -28655,7 +28777,7 @@ var Emotion$1 = Emotion;
|
|
|
28655
28777
|
import * as React12 from "react";
|
|
28656
28778
|
var import_extends2 = __toESM(require_extends());
|
|
28657
28779
|
var import_hoist_non_react_statics = __toESM(require_hoist_non_react_statics_cjs());
|
|
28658
|
-
var
|
|
28780
|
+
var jsx78 = function jsx79(type, props) {
|
|
28659
28781
|
var args = arguments;
|
|
28660
28782
|
if (props == null || !hasOwn.call(props, "css")) {
|
|
28661
28783
|
return React12.createElement.apply(void 0, args);
|
|
@@ -28673,7 +28795,7 @@ var jsx77 = function jsx78(type, props) {
|
|
|
28673
28795
|
var JSX;
|
|
28674
28796
|
/* @__PURE__ */ (function(_JSX) {
|
|
28675
28797
|
})(JSX || (JSX = _jsx.JSX || (_jsx.JSX = {})));
|
|
28676
|
-
})(
|
|
28798
|
+
})(jsx78 || (jsx78 = {}));
|
|
28677
28799
|
function css() {
|
|
28678
28800
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
28679
28801
|
args[_key] = arguments[_key];
|
|
@@ -29081,7 +29203,7 @@ var MenuPlacer = function MenuPlacer2(props) {
|
|
|
29081
29203
|
};
|
|
29082
29204
|
var Menu = function Menu2(props) {
|
|
29083
29205
|
var children = props.children, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
29084
|
-
return
|
|
29206
|
+
return jsx78("div", _extends({}, getStyleProps(props, "menu", {
|
|
29085
29207
|
menu: true
|
|
29086
29208
|
}), {
|
|
29087
29209
|
ref: innerRef
|
|
@@ -29103,7 +29225,7 @@ var menuListCSS = function menuListCSS2(_ref4, unstyled) {
|
|
|
29103
29225
|
};
|
|
29104
29226
|
var MenuList = function MenuList2(props) {
|
|
29105
29227
|
var children = props.children, innerProps = props.innerProps, innerRef = props.innerRef, isMulti = props.isMulti;
|
|
29106
|
-
return
|
|
29228
|
+
return jsx78("div", _extends({}, getStyleProps(props, "menuList", {
|
|
29107
29229
|
"menu-list": true,
|
|
29108
29230
|
"menu-list--is-multi": isMulti
|
|
29109
29231
|
}), {
|
|
@@ -29123,7 +29245,7 @@ var noOptionsMessageCSS = noticeCSS;
|
|
|
29123
29245
|
var loadingMessageCSS = noticeCSS;
|
|
29124
29246
|
var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
29125
29247
|
var _ref6$children = _ref6.children, children = _ref6$children === void 0 ? "No options" : _ref6$children, innerProps = _ref6.innerProps, restProps = _objectWithoutProperties(_ref6, _excluded$3);
|
|
29126
|
-
return
|
|
29248
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
29127
29249
|
children,
|
|
29128
29250
|
innerProps
|
|
29129
29251
|
}), "noOptionsMessage", {
|
|
@@ -29133,7 +29255,7 @@ var NoOptionsMessage = function NoOptionsMessage2(_ref6) {
|
|
|
29133
29255
|
};
|
|
29134
29256
|
var LoadingMessage = function LoadingMessage2(_ref7) {
|
|
29135
29257
|
var _ref7$children = _ref7.children, children = _ref7$children === void 0 ? "Loading..." : _ref7$children, innerProps = _ref7.innerProps, restProps = _objectWithoutProperties(_ref7, _excluded2$1);
|
|
29136
|
-
return
|
|
29258
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
29137
29259
|
children,
|
|
29138
29260
|
innerProps
|
|
29139
29261
|
}), "loadingMessage", {
|
|
@@ -29196,7 +29318,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
29196
29318
|
runAutoUpdate();
|
|
29197
29319
|
}, [runAutoUpdate]);
|
|
29198
29320
|
if (!appendTo && menuPosition !== "fixed" || !computedPosition) return null;
|
|
29199
|
-
var menuWrapper =
|
|
29321
|
+
var menuWrapper = jsx78("div", _extends({
|
|
29200
29322
|
ref: setMenuPortalElement
|
|
29201
29323
|
}, getStyleProps(_objectSpread2(_objectSpread2({}, props), {}, {
|
|
29202
29324
|
offset: computedPosition.offset,
|
|
@@ -29205,7 +29327,7 @@ var MenuPortal = function MenuPortal2(props) {
|
|
|
29205
29327
|
}), "menuPortal", {
|
|
29206
29328
|
"menu-portal": true
|
|
29207
29329
|
}), innerProps), children);
|
|
29208
|
-
return
|
|
29330
|
+
return jsx78(PortalPlacementContext.Provider, {
|
|
29209
29331
|
value: portalPlacementContext
|
|
29210
29332
|
}, appendTo ? /* @__PURE__ */ createPortal4(menuWrapper, appendTo) : menuWrapper);
|
|
29211
29333
|
};
|
|
@@ -29221,7 +29343,7 @@ var containerCSS = function containerCSS2(_ref3) {
|
|
|
29221
29343
|
};
|
|
29222
29344
|
var SelectContainer = function SelectContainer2(props) {
|
|
29223
29345
|
var children = props.children, innerProps = props.innerProps, isDisabled = props.isDisabled, isRtl = props.isRtl;
|
|
29224
|
-
return
|
|
29346
|
+
return jsx78("div", _extends({}, getStyleProps(props, "container", {
|
|
29225
29347
|
"--is-disabled": isDisabled,
|
|
29226
29348
|
"--is-rtl": isRtl
|
|
29227
29349
|
}), innerProps), children);
|
|
@@ -29242,7 +29364,7 @@ var valueContainerCSS = function valueContainerCSS2(_ref23, unstyled) {
|
|
|
29242
29364
|
};
|
|
29243
29365
|
var ValueContainer = function ValueContainer2(props) {
|
|
29244
29366
|
var children = props.children, innerProps = props.innerProps, isMulti = props.isMulti, hasValue = props.hasValue;
|
|
29245
|
-
return
|
|
29367
|
+
return jsx78("div", _extends({}, getStyleProps(props, "valueContainer", {
|
|
29246
29368
|
"value-container": true,
|
|
29247
29369
|
"value-container--is-multi": isMulti,
|
|
29248
29370
|
"value-container--has-value": hasValue
|
|
@@ -29258,7 +29380,7 @@ var indicatorsContainerCSS = function indicatorsContainerCSS2() {
|
|
|
29258
29380
|
};
|
|
29259
29381
|
var IndicatorsContainer = function IndicatorsContainer2(props) {
|
|
29260
29382
|
var children = props.children, innerProps = props.innerProps;
|
|
29261
|
-
return
|
|
29383
|
+
return jsx78("div", _extends({}, getStyleProps(props, "indicatorsContainer", {
|
|
29262
29384
|
indicators: true
|
|
29263
29385
|
}), innerProps), children);
|
|
29264
29386
|
};
|
|
@@ -29279,7 +29401,7 @@ var _ref2 = process.env.NODE_ENV === "production" ? {
|
|
|
29279
29401
|
};
|
|
29280
29402
|
var Svg = function Svg2(_ref3) {
|
|
29281
29403
|
var size4 = _ref3.size, props = _objectWithoutProperties(_ref3, _excluded$2);
|
|
29282
|
-
return
|
|
29404
|
+
return jsx78("svg", _extends({
|
|
29283
29405
|
height: size4,
|
|
29284
29406
|
width: size4,
|
|
29285
29407
|
viewBox: "0 0 20 20",
|
|
@@ -29289,16 +29411,16 @@ var Svg = function Svg2(_ref3) {
|
|
|
29289
29411
|
}, props));
|
|
29290
29412
|
};
|
|
29291
29413
|
var CrossIcon = function CrossIcon2(props) {
|
|
29292
|
-
return
|
|
29414
|
+
return jsx78(Svg, _extends({
|
|
29293
29415
|
size: 20
|
|
29294
|
-
}, props),
|
|
29416
|
+
}, props), jsx78("path", {
|
|
29295
29417
|
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"
|
|
29296
29418
|
}));
|
|
29297
29419
|
};
|
|
29298
29420
|
var DownChevron = function DownChevron2(props) {
|
|
29299
|
-
return
|
|
29421
|
+
return jsx78(Svg, _extends({
|
|
29300
29422
|
size: 20
|
|
29301
|
-
}, props),
|
|
29423
|
+
}, props), jsx78("path", {
|
|
29302
29424
|
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"
|
|
29303
29425
|
}));
|
|
29304
29426
|
};
|
|
@@ -29319,18 +29441,18 @@ var baseCSS = function baseCSS2(_ref3, unstyled) {
|
|
|
29319
29441
|
var dropdownIndicatorCSS = baseCSS;
|
|
29320
29442
|
var DropdownIndicator = function DropdownIndicator2(props) {
|
|
29321
29443
|
var children = props.children, innerProps = props.innerProps;
|
|
29322
|
-
return
|
|
29444
|
+
return jsx78("div", _extends({}, getStyleProps(props, "dropdownIndicator", {
|
|
29323
29445
|
indicator: true,
|
|
29324
29446
|
"dropdown-indicator": true
|
|
29325
|
-
}), innerProps), children ||
|
|
29447
|
+
}), innerProps), children || jsx78(DownChevron, null));
|
|
29326
29448
|
};
|
|
29327
29449
|
var clearIndicatorCSS = baseCSS;
|
|
29328
29450
|
var ClearIndicator = function ClearIndicator2(props) {
|
|
29329
29451
|
var children = props.children, innerProps = props.innerProps;
|
|
29330
|
-
return
|
|
29452
|
+
return jsx78("div", _extends({}, getStyleProps(props, "clearIndicator", {
|
|
29331
29453
|
indicator: true,
|
|
29332
29454
|
"clear-indicator": true
|
|
29333
|
-
}), innerProps), children ||
|
|
29455
|
+
}), innerProps), children || jsx78(CrossIcon, null));
|
|
29334
29456
|
};
|
|
29335
29457
|
var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
29336
29458
|
var isDisabled = _ref4.isDisabled, _ref4$theme = _ref4.theme, baseUnit2 = _ref4$theme.spacing.baseUnit, colors2 = _ref4$theme.colors;
|
|
@@ -29346,7 +29468,7 @@ var indicatorSeparatorCSS = function indicatorSeparatorCSS2(_ref4, unstyled) {
|
|
|
29346
29468
|
};
|
|
29347
29469
|
var IndicatorSeparator = function IndicatorSeparator2(props) {
|
|
29348
29470
|
var innerProps = props.innerProps;
|
|
29349
|
-
return
|
|
29471
|
+
return jsx78("span", _extends({}, innerProps, getStyleProps(props, "indicatorSeparator", {
|
|
29350
29472
|
"indicator-separator": true
|
|
29351
29473
|
})));
|
|
29352
29474
|
};
|
|
@@ -29370,7 +29492,7 @@ var loadingIndicatorCSS = function loadingIndicatorCSS2(_ref5, unstyled) {
|
|
|
29370
29492
|
};
|
|
29371
29493
|
var LoadingDot = function LoadingDot2(_ref6) {
|
|
29372
29494
|
var delay = _ref6.delay, offset4 = _ref6.offset;
|
|
29373
|
-
return
|
|
29495
|
+
return jsx78("span", {
|
|
29374
29496
|
css: /* @__PURE__ */ css({
|
|
29375
29497
|
animation: "".concat(loadingDotAnimations, " 1s ease-in-out ").concat(delay, "ms infinite;"),
|
|
29376
29498
|
backgroundColor: "currentColor",
|
|
@@ -29385,20 +29507,20 @@ var LoadingDot = function LoadingDot2(_ref6) {
|
|
|
29385
29507
|
};
|
|
29386
29508
|
var LoadingIndicator = function LoadingIndicator2(_ref7) {
|
|
29387
29509
|
var innerProps = _ref7.innerProps, isRtl = _ref7.isRtl, _ref7$size = _ref7.size, size4 = _ref7$size === void 0 ? 4 : _ref7$size, restProps = _objectWithoutProperties(_ref7, _excluded2);
|
|
29388
|
-
return
|
|
29510
|
+
return jsx78("div", _extends({}, getStyleProps(_objectSpread2(_objectSpread2({}, restProps), {}, {
|
|
29389
29511
|
innerProps,
|
|
29390
29512
|
isRtl,
|
|
29391
29513
|
size: size4
|
|
29392
29514
|
}), "loadingIndicator", {
|
|
29393
29515
|
indicator: true,
|
|
29394
29516
|
"loading-indicator": true
|
|
29395
|
-
}), innerProps),
|
|
29517
|
+
}), innerProps), jsx78(LoadingDot, {
|
|
29396
29518
|
delay: 0,
|
|
29397
29519
|
offset: isRtl
|
|
29398
|
-
}),
|
|
29520
|
+
}), jsx78(LoadingDot, {
|
|
29399
29521
|
delay: 160,
|
|
29400
29522
|
offset: true
|
|
29401
|
-
}),
|
|
29523
|
+
}), jsx78(LoadingDot, {
|
|
29402
29524
|
delay: 320,
|
|
29403
29525
|
offset: !isRtl
|
|
29404
29526
|
}));
|
|
@@ -29430,7 +29552,7 @@ var css$1 = function css2(_ref3, unstyled) {
|
|
|
29430
29552
|
};
|
|
29431
29553
|
var Control = function Control2(props) {
|
|
29432
29554
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, innerRef = props.innerRef, innerProps = props.innerProps, menuIsOpen = props.menuIsOpen;
|
|
29433
|
-
return
|
|
29555
|
+
return jsx78("div", _extends({
|
|
29434
29556
|
ref: innerRef
|
|
29435
29557
|
}, getStyleProps(props, "control", {
|
|
29436
29558
|
control: true,
|
|
@@ -29452,15 +29574,15 @@ var groupCSS = function groupCSS2(_ref3, unstyled) {
|
|
|
29452
29574
|
};
|
|
29453
29575
|
var Group = function Group2(props) {
|
|
29454
29576
|
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;
|
|
29455
|
-
return
|
|
29577
|
+
return jsx78("div", _extends({}, getStyleProps(props, "group", {
|
|
29456
29578
|
group: true
|
|
29457
|
-
}), innerProps),
|
|
29579
|
+
}), innerProps), jsx78(Heading, _extends({}, headingProps, {
|
|
29458
29580
|
selectProps,
|
|
29459
29581
|
theme,
|
|
29460
29582
|
getStyles,
|
|
29461
29583
|
getClassNames,
|
|
29462
29584
|
cx
|
|
29463
|
-
}), label),
|
|
29585
|
+
}), label), jsx78("div", null, children));
|
|
29464
29586
|
};
|
|
29465
29587
|
var groupHeadingCSS = function groupHeadingCSS2(_ref23, unstyled) {
|
|
29466
29588
|
var _ref2$theme = _ref23.theme, colors2 = _ref2$theme.colors, spacing2 = _ref2$theme.spacing;
|
|
@@ -29482,7 +29604,7 @@ var GroupHeading = function GroupHeading2(props) {
|
|
|
29482
29604
|
var _cleanCommonProps = cleanCommonProps(props);
|
|
29483
29605
|
_cleanCommonProps.data;
|
|
29484
29606
|
var innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded$1);
|
|
29485
|
-
return
|
|
29607
|
+
return jsx78("div", _extends({}, getStyleProps(props, "groupHeading", {
|
|
29486
29608
|
"group-heading": true
|
|
29487
29609
|
}), innerProps));
|
|
29488
29610
|
};
|
|
@@ -29534,11 +29656,11 @@ var inputStyle = function inputStyle2(isHidden) {
|
|
|
29534
29656
|
var Input = function Input2(props) {
|
|
29535
29657
|
var cx = props.cx, value = props.value;
|
|
29536
29658
|
var _cleanCommonProps = cleanCommonProps(props), innerRef = _cleanCommonProps.innerRef, isDisabled = _cleanCommonProps.isDisabled, isHidden = _cleanCommonProps.isHidden, inputClassName = _cleanCommonProps.inputClassName, innerProps = _objectWithoutProperties(_cleanCommonProps, _excluded3);
|
|
29537
|
-
return
|
|
29659
|
+
return jsx78("div", _extends({}, getStyleProps(props, "input", {
|
|
29538
29660
|
"input-container": true
|
|
29539
29661
|
}), {
|
|
29540
29662
|
"data-value": value || ""
|
|
29541
|
-
}),
|
|
29663
|
+
}), jsx78("input", _extends({
|
|
29542
29664
|
className: cx({
|
|
29543
29665
|
input: true
|
|
29544
29666
|
}, inputClassName),
|
|
@@ -29592,35 +29714,35 @@ var multiValueRemoveCSS = function multiValueRemoveCSS2(_ref3, unstyled) {
|
|
|
29592
29714
|
};
|
|
29593
29715
|
var MultiValueGeneric = function MultiValueGeneric2(_ref4) {
|
|
29594
29716
|
var children = _ref4.children, innerProps = _ref4.innerProps;
|
|
29595
|
-
return
|
|
29717
|
+
return jsx78("div", innerProps, children);
|
|
29596
29718
|
};
|
|
29597
29719
|
var MultiValueContainer = MultiValueGeneric;
|
|
29598
29720
|
var MultiValueLabel = MultiValueGeneric;
|
|
29599
29721
|
function MultiValueRemove(_ref5) {
|
|
29600
29722
|
var children = _ref5.children, innerProps = _ref5.innerProps;
|
|
29601
|
-
return
|
|
29723
|
+
return jsx78("div", _extends({
|
|
29602
29724
|
role: "button"
|
|
29603
|
-
}, innerProps), children ||
|
|
29725
|
+
}, innerProps), children || jsx78(CrossIcon, {
|
|
29604
29726
|
size: 14
|
|
29605
29727
|
}));
|
|
29606
29728
|
}
|
|
29607
29729
|
var MultiValue = function MultiValue2(props) {
|
|
29608
29730
|
var children = props.children, components2 = props.components, data = props.data, innerProps = props.innerProps, isDisabled = props.isDisabled, removeProps3 = props.removeProps, selectProps = props.selectProps;
|
|
29609
29731
|
var Container = components2.Container, Label = components2.Label, Remove = components2.Remove;
|
|
29610
|
-
return
|
|
29732
|
+
return jsx78(Container, {
|
|
29611
29733
|
data,
|
|
29612
29734
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValue", {
|
|
29613
29735
|
"multi-value": true,
|
|
29614
29736
|
"multi-value--is-disabled": isDisabled
|
|
29615
29737
|
})), innerProps),
|
|
29616
29738
|
selectProps
|
|
29617
|
-
},
|
|
29739
|
+
}, jsx78(Label, {
|
|
29618
29740
|
data,
|
|
29619
29741
|
innerProps: _objectSpread2({}, getStyleProps(props, "multiValueLabel", {
|
|
29620
29742
|
"multi-value__label": true
|
|
29621
29743
|
})),
|
|
29622
29744
|
selectProps
|
|
29623
|
-
}, children),
|
|
29745
|
+
}, children), jsx78(Remove, {
|
|
29624
29746
|
data,
|
|
29625
29747
|
innerProps: _objectSpread2(_objectSpread2({}, getStyleProps(props, "multiValueRemove", {
|
|
29626
29748
|
"multi-value__remove": true
|
|
@@ -29653,7 +29775,7 @@ var optionCSS = function optionCSS2(_ref3, unstyled) {
|
|
|
29653
29775
|
};
|
|
29654
29776
|
var Option = function Option2(props) {
|
|
29655
29777
|
var children = props.children, isDisabled = props.isDisabled, isFocused = props.isFocused, isSelected = props.isSelected, innerRef = props.innerRef, innerProps = props.innerProps;
|
|
29656
|
-
return
|
|
29778
|
+
return jsx78("div", _extends({}, getStyleProps(props, "option", {
|
|
29657
29779
|
option: true,
|
|
29658
29780
|
"option--is-disabled": isDisabled,
|
|
29659
29781
|
"option--is-focused": isFocused,
|
|
@@ -29677,7 +29799,7 @@ var placeholderCSS = function placeholderCSS2(_ref3, unstyled) {
|
|
|
29677
29799
|
};
|
|
29678
29800
|
var Placeholder = function Placeholder2(props) {
|
|
29679
29801
|
var children = props.children, innerProps = props.innerProps;
|
|
29680
|
-
return
|
|
29802
|
+
return jsx78("div", _extends({}, getStyleProps(props, "placeholder", {
|
|
29681
29803
|
placeholder: true
|
|
29682
29804
|
}), innerProps), children);
|
|
29683
29805
|
};
|
|
@@ -29699,7 +29821,7 @@ var css3 = function css4(_ref3, unstyled) {
|
|
|
29699
29821
|
};
|
|
29700
29822
|
var SingleValue = function SingleValue2(props) {
|
|
29701
29823
|
var children = props.children, isDisabled = props.isDisabled, innerProps = props.innerProps;
|
|
29702
|
-
return
|
|
29824
|
+
return jsx78("div", _extends({}, getStyleProps(props, "singleValue", {
|
|
29703
29825
|
"single-value": true,
|
|
29704
29826
|
"single-value--is-disabled": isDisabled
|
|
29705
29827
|
}), innerProps), children);
|
|
@@ -29801,7 +29923,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
|
|
|
29801
29923
|
toString: _EMOTION_STRINGIFIED_CSS_ERROR__$2
|
|
29802
29924
|
};
|
|
29803
29925
|
var A11yText = function A11yText2(props) {
|
|
29804
|
-
return
|
|
29926
|
+
return jsx78("span", _extends({
|
|
29805
29927
|
css: _ref
|
|
29806
29928
|
}, props));
|
|
29807
29929
|
};
|
|
@@ -29936,18 +30058,18 @@ var LiveRegion = function LiveRegion2(props) {
|
|
|
29936
30058
|
}
|
|
29937
30059
|
return guidanceMsg;
|
|
29938
30060
|
}, [ariaLabel, focusedOption, focusedValue, isMulti, isOptionDisabled3, isSearchable, menuIsOpen, messages, selectValue, tabSelectsValue, isInitialFocus]);
|
|
29939
|
-
var ScreenReaderText =
|
|
30061
|
+
var ScreenReaderText = jsx78(Fragment21, null, jsx78("span", {
|
|
29940
30062
|
id: "aria-selection"
|
|
29941
|
-
}, ariaSelected),
|
|
30063
|
+
}, ariaSelected), jsx78("span", {
|
|
29942
30064
|
id: "aria-focused"
|
|
29943
|
-
}, ariaFocused),
|
|
30065
|
+
}, ariaFocused), jsx78("span", {
|
|
29944
30066
|
id: "aria-results"
|
|
29945
|
-
}, ariaResults),
|
|
30067
|
+
}, ariaResults), jsx78("span", {
|
|
29946
30068
|
id: "aria-guidance"
|
|
29947
30069
|
}, ariaGuidance));
|
|
29948
|
-
return
|
|
30070
|
+
return jsx78(Fragment21, null, jsx78(A11yText$1, {
|
|
29949
30071
|
id
|
|
29950
|
-
}, isInitialFocus && ScreenReaderText),
|
|
30072
|
+
}, isInitialFocus && ScreenReaderText), jsx78(A11yText$1, {
|
|
29951
30073
|
"aria-live": ariaLive,
|
|
29952
30074
|
"aria-atomic": "false",
|
|
29953
30075
|
"aria-relevant": "additions text",
|
|
@@ -30260,7 +30382,7 @@ var _excluded4 = ["innerRef"];
|
|
|
30260
30382
|
function DummyInput(_ref3) {
|
|
30261
30383
|
var innerRef = _ref3.innerRef, props = _objectWithoutProperties(_ref3, _excluded4);
|
|
30262
30384
|
var filteredProps = removeProps(props, "onExited", "in", "enter", "exit", "appear");
|
|
30263
|
-
return
|
|
30385
|
+
return jsx78("input", _extends({
|
|
30264
30386
|
ref: innerRef
|
|
30265
30387
|
}, filteredProps, {
|
|
30266
30388
|
css: /* @__PURE__ */ css({
|
|
@@ -30502,7 +30624,7 @@ function ScrollManager(_ref3) {
|
|
|
30502
30624
|
setScrollCaptureTarget(element);
|
|
30503
30625
|
setScrollLockTarget(element);
|
|
30504
30626
|
};
|
|
30505
|
-
return
|
|
30627
|
+
return jsx78(Fragment21, null, lockEnabled && jsx78("div", {
|
|
30506
30628
|
onClick: blurSelectInput,
|
|
30507
30629
|
css: _ref2$1
|
|
30508
30630
|
}), children(targetRef));
|
|
@@ -30521,7 +30643,7 @@ var _ref22 = process.env.NODE_ENV === "production" ? {
|
|
|
30521
30643
|
};
|
|
30522
30644
|
var RequiredInput = function RequiredInput2(_ref3) {
|
|
30523
30645
|
var name2 = _ref3.name, onFocus2 = _ref3.onFocus;
|
|
30524
|
-
return
|
|
30646
|
+
return jsx78("input", {
|
|
30525
30647
|
required: true,
|
|
30526
30648
|
name: name2,
|
|
30527
30649
|
tabIndex: -1,
|
|
@@ -32111,7 +32233,7 @@ var StateManagedSelect$1 = StateManagedSelect;
|
|
|
32111
32233
|
|
|
32112
32234
|
// src/widgets/basic/date-field/date.tsx
|
|
32113
32235
|
var import_moment2 = __toESM(require_moment());
|
|
32114
|
-
import { Fragment as Fragment22, jsx as
|
|
32236
|
+
import { Fragment as Fragment22, jsx as jsx80, jsxs as jsxs53 } from "react/jsx-runtime";
|
|
32115
32237
|
var DateField = (props) => {
|
|
32116
32238
|
const {
|
|
32117
32239
|
name: name2,
|
|
@@ -32139,7 +32261,7 @@ var DateField = (props) => {
|
|
|
32139
32261
|
} = props;
|
|
32140
32262
|
const InputDateCustom = forwardRef6(
|
|
32141
32263
|
({ onClick, className, onChange: onChange2, isForm: isForm2, defaultValue }, ref) => /* @__PURE__ */ jsxs53("label", { className: `flex ${className}`, children: [
|
|
32142
|
-
/* @__PURE__ */
|
|
32264
|
+
/* @__PURE__ */ jsx80(
|
|
32143
32265
|
"input",
|
|
32144
32266
|
{
|
|
32145
32267
|
className: "bg-transparent w-full focus-visible:outline-none",
|
|
@@ -32153,13 +32275,13 @@ var DateField = (props) => {
|
|
|
32153
32275
|
value: defaultValue && (0, import_moment2.default)(defaultValue).isValid() ? (0, import_moment2.default)(defaultValue).add(7, "hours").format(formatDate2) : ""
|
|
32154
32276
|
}
|
|
32155
32277
|
),
|
|
32156
|
-
isForm2 && /* @__PURE__ */
|
|
32278
|
+
isForm2 && /* @__PURE__ */ jsx80(CalandarIcon, {})
|
|
32157
32279
|
] })
|
|
32158
32280
|
);
|
|
32159
32281
|
if (!isForm && !isEditTable) {
|
|
32160
|
-
return /* @__PURE__ */
|
|
32282
|
+
return /* @__PURE__ */ jsx80("span", { children: value && (0, import_moment2.default)(value).isValid() ? (0, import_moment2.default)(value).add(7, "hours").format(formatDate2) : "" });
|
|
32161
32283
|
} else {
|
|
32162
|
-
return /* @__PURE__ */
|
|
32284
|
+
return /* @__PURE__ */ jsx80(
|
|
32163
32285
|
Controller,
|
|
32164
32286
|
{
|
|
32165
32287
|
name: name2 || "",
|
|
@@ -32182,7 +32304,7 @@ var DateField = (props) => {
|
|
|
32182
32304
|
}, [value, clearErrors, name2]);
|
|
32183
32305
|
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;
|
|
32184
32306
|
return /* @__PURE__ */ jsxs53(Fragment22, { children: [
|
|
32185
|
-
/* @__PURE__ */
|
|
32307
|
+
/* @__PURE__ */ jsx80(
|
|
32186
32308
|
DatePicker,
|
|
32187
32309
|
{
|
|
32188
32310
|
selected: selectedDate,
|
|
@@ -32230,7 +32352,7 @@ var DateField = (props) => {
|
|
|
32230
32352
|
minDate: typeof minNowValue === "boolean" && minNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(minNowValue) ? minNowValue.toDate() : void 0,
|
|
32231
32353
|
maxDate: typeof maxNowValue === "boolean" && maxNowValue === true ? (0, import_moment2.default)(/* @__PURE__ */ new Date()).toDate() : import_moment2.default.isMoment(maxNowValue) ? maxNowValue.toDate() : void 0,
|
|
32232
32354
|
showTimeInput: showTime,
|
|
32233
|
-
customInput: /* @__PURE__ */
|
|
32355
|
+
customInput: /* @__PURE__ */ jsx80(
|
|
32234
32356
|
InputDateCustom,
|
|
32235
32357
|
{
|
|
32236
32358
|
isForm,
|
|
@@ -32257,7 +32379,7 @@ var DateField = (props) => {
|
|
|
32257
32379
|
justifyContent: "center"
|
|
32258
32380
|
},
|
|
32259
32381
|
children: [
|
|
32260
|
-
/* @__PURE__ */
|
|
32382
|
+
/* @__PURE__ */ jsx80(
|
|
32261
32383
|
"button",
|
|
32262
32384
|
{
|
|
32263
32385
|
onClick: decreaseMonth,
|
|
@@ -32265,7 +32387,7 @@ var DateField = (props) => {
|
|
|
32265
32387
|
children: "<"
|
|
32266
32388
|
}
|
|
32267
32389
|
),
|
|
32268
|
-
/* @__PURE__ */
|
|
32390
|
+
/* @__PURE__ */ jsx80(
|
|
32269
32391
|
StateManagedSelect$1,
|
|
32270
32392
|
{
|
|
32271
32393
|
classNames: {
|
|
@@ -32291,7 +32413,7 @@ var DateField = (props) => {
|
|
|
32291
32413
|
autoFocus: true
|
|
32292
32414
|
}
|
|
32293
32415
|
),
|
|
32294
|
-
/* @__PURE__ */
|
|
32416
|
+
/* @__PURE__ */ jsx80(
|
|
32295
32417
|
StateManagedSelect$1,
|
|
32296
32418
|
{
|
|
32297
32419
|
classNames: {
|
|
@@ -32319,7 +32441,7 @@ var DateField = (props) => {
|
|
|
32319
32441
|
}))
|
|
32320
32442
|
}
|
|
32321
32443
|
),
|
|
32322
|
-
/* @__PURE__ */
|
|
32444
|
+
/* @__PURE__ */ jsx80(
|
|
32323
32445
|
"button",
|
|
32324
32446
|
{
|
|
32325
32447
|
onClick: increaseMonth,
|
|
@@ -32332,7 +32454,7 @@ var DateField = (props) => {
|
|
|
32332
32454
|
)
|
|
32333
32455
|
}
|
|
32334
32456
|
),
|
|
32335
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
32457
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx80("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32336
32458
|
] });
|
|
32337
32459
|
}
|
|
32338
32460
|
}
|
|
@@ -32341,7 +32463,7 @@ var DateField = (props) => {
|
|
|
32341
32463
|
};
|
|
32342
32464
|
|
|
32343
32465
|
// src/widgets/basic/download-binary-field/download-binary.tsx
|
|
32344
|
-
import { jsx as
|
|
32466
|
+
import { jsx as jsx81, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
32345
32467
|
var DownLoadBinaryField = (props) => {
|
|
32346
32468
|
const { handleFileDownload } = props;
|
|
32347
32469
|
return /* @__PURE__ */ jsxs54(
|
|
@@ -32351,15 +32473,15 @@ var DownLoadBinaryField = (props) => {
|
|
|
32351
32473
|
onClick: handleFileDownload,
|
|
32352
32474
|
className: "flex items-center gap-1 text-blue-700",
|
|
32353
32475
|
children: [
|
|
32354
|
-
/* @__PURE__ */
|
|
32355
|
-
/* @__PURE__ */
|
|
32476
|
+
/* @__PURE__ */ jsx81(DownloadIcon, {}),
|
|
32477
|
+
/* @__PURE__ */ jsx81("span", { className: "text-sm italic underline", children: i18n_default.t("download_file") })
|
|
32356
32478
|
]
|
|
32357
32479
|
}
|
|
32358
32480
|
);
|
|
32359
32481
|
};
|
|
32360
32482
|
|
|
32361
32483
|
// src/widgets/basic/download-file-field/download-file.tsx
|
|
32362
|
-
import { jsx as
|
|
32484
|
+
import { jsx as jsx82, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
32363
32485
|
var DownloadFileField = (props) => {
|
|
32364
32486
|
const {
|
|
32365
32487
|
readonly,
|
|
@@ -32378,8 +32500,8 @@ var DownloadFileField = (props) => {
|
|
|
32378
32500
|
htmlFor: inputId,
|
|
32379
32501
|
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",
|
|
32380
32502
|
children: [
|
|
32381
|
-
file ? /* @__PURE__ */
|
|
32382
|
-
/* @__PURE__ */
|
|
32503
|
+
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" }),
|
|
32504
|
+
/* @__PURE__ */ jsx82(
|
|
32383
32505
|
"input",
|
|
32384
32506
|
{
|
|
32385
32507
|
id: inputId,
|
|
@@ -32393,7 +32515,7 @@ var DownloadFileField = (props) => {
|
|
|
32393
32515
|
]
|
|
32394
32516
|
}
|
|
32395
32517
|
),
|
|
32396
|
-
file && /* @__PURE__ */
|
|
32518
|
+
file && /* @__PURE__ */ jsx82(
|
|
32397
32519
|
"button",
|
|
32398
32520
|
{
|
|
32399
32521
|
onClick: handleFileDownload,
|
|
@@ -32407,7 +32529,7 @@ var DownloadFileField = (props) => {
|
|
|
32407
32529
|
|
|
32408
32530
|
// src/widgets/basic/dropdown-field/dropdown.tsx
|
|
32409
32531
|
import { useState as useState15 } from "react";
|
|
32410
|
-
import { jsx as
|
|
32532
|
+
import { jsx as jsx83, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
32411
32533
|
var DropdownField = (props) => {
|
|
32412
32534
|
const {
|
|
32413
32535
|
options: options2,
|
|
@@ -32434,17 +32556,17 @@ var DropdownField = (props) => {
|
|
|
32434
32556
|
className: `flex items-center gap-2 px-3 py-1 bg-white border rounded-lg cursor-pointer ${buttonClassName}`,
|
|
32435
32557
|
children: [
|
|
32436
32558
|
selectedValue?.icon,
|
|
32437
|
-
/* @__PURE__ */
|
|
32438
|
-
/* @__PURE__ */
|
|
32559
|
+
/* @__PURE__ */ jsx83("span", { children: selectedValue?.label }),
|
|
32560
|
+
/* @__PURE__ */ jsx83(ChevronBottomIcon, { className: "h-4 w-4" })
|
|
32439
32561
|
]
|
|
32440
32562
|
}
|
|
32441
32563
|
),
|
|
32442
|
-
open && /* @__PURE__ */
|
|
32564
|
+
open && /* @__PURE__ */ jsx83(
|
|
32443
32565
|
"div",
|
|
32444
32566
|
{
|
|
32445
32567
|
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}`,
|
|
32446
32568
|
onClick: (e3) => e3.stopPropagation(),
|
|
32447
|
-
children: options2.map((option, index4) => /* @__PURE__ */
|
|
32569
|
+
children: options2.map((option, index4) => /* @__PURE__ */ jsx83(
|
|
32448
32570
|
"div",
|
|
32449
32571
|
{
|
|
32450
32572
|
onClick: () => {
|
|
@@ -32464,7 +32586,7 @@ var DropdownField = (props) => {
|
|
|
32464
32586
|
};
|
|
32465
32587
|
|
|
32466
32588
|
// src/widgets/basic/fee-field/fee.tsx
|
|
32467
|
-
import { Fragment as Fragment23, jsx as
|
|
32589
|
+
import { Fragment as Fragment23, jsx as jsx84, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
32468
32590
|
var FeeField = (props) => {
|
|
32469
32591
|
const { value, formValues } = props;
|
|
32470
32592
|
const totalAmount = formatNumberOnly(parseFloat(value?.total_amount)) + " VND";
|
|
@@ -32483,7 +32605,7 @@ var FeeField = (props) => {
|
|
|
32483
32605
|
sub?.name,
|
|
32484
32606
|
":"
|
|
32485
32607
|
] }),
|
|
32486
|
-
/* @__PURE__ */
|
|
32608
|
+
/* @__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" })
|
|
32487
32609
|
] }),
|
|
32488
32610
|
sub?.tax_groups.map((group) => /* @__PURE__ */ jsxs57(
|
|
32489
32611
|
"div",
|
|
@@ -32494,7 +32616,7 @@ var FeeField = (props) => {
|
|
|
32494
32616
|
group?.group_name,
|
|
32495
32617
|
":"
|
|
32496
32618
|
] }),
|
|
32497
|
-
/* @__PURE__ */
|
|
32619
|
+
/* @__PURE__ */ jsx84("div", { className: "text-[14px] leading-[21px] text-[rgb(73,80,87)] text-right", children: formatNumberOnly(parseFloat(group?.tax_amount ?? 0)) + " VND" })
|
|
32498
32620
|
]
|
|
32499
32621
|
},
|
|
32500
32622
|
`tax_groups_${group?.id}`
|
|
@@ -32507,34 +32629,34 @@ var FeeField = (props) => {
|
|
|
32507
32629
|
i18n_default.t("total"),
|
|
32508
32630
|
":"
|
|
32509
32631
|
] }),
|
|
32510
|
-
/* @__PURE__ */
|
|
32632
|
+
/* @__PURE__ */ jsx84("div", { className: "text-xl leading-[21px] font-bold text-[rgb(73,80,87)] text-right ", children: totalAmount })
|
|
32511
32633
|
] }),
|
|
32512
32634
|
/* @__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: [
|
|
32513
32635
|
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
32514
32636
|
i18n_default.t("paid_amount"),
|
|
32515
32637
|
":"
|
|
32516
32638
|
] }),
|
|
32517
|
-
/* @__PURE__ */
|
|
32639
|
+
/* @__PURE__ */ jsx84("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: paid_amount })
|
|
32518
32640
|
] }),
|
|
32519
32641
|
/* @__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: [
|
|
32520
32642
|
/* @__PURE__ */ jsxs57("div", { className: "text-[14px] leading-[21px] text-right", children: [
|
|
32521
32643
|
i18n_default.t("remanining_amount"),
|
|
32522
32644
|
":"
|
|
32523
32645
|
] }),
|
|
32524
|
-
/* @__PURE__ */
|
|
32646
|
+
/* @__PURE__ */ jsx84("div", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right ", children: remaining_amount })
|
|
32525
32647
|
] })
|
|
32526
32648
|
] });
|
|
32527
32649
|
};
|
|
32528
32650
|
|
|
32529
32651
|
// src/widgets/basic/file-upload-field/file-upload.tsx
|
|
32530
32652
|
import { useEffect as useEffect16, useRef as useRef14, useState as useState16 } from "react";
|
|
32531
|
-
import { jsx as
|
|
32653
|
+
import { jsx as jsx85, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
32532
32654
|
var FileUploadField = (props) => {
|
|
32533
32655
|
const { name: name2, methods, isForm, model, required, idForm, widget, useUploadImage, useUploadFile, useGetImage, isBase64File } = props;
|
|
32534
32656
|
const fileInputRef = useRef14(null);
|
|
32535
32657
|
const [selectedFiles, setSelectedFiles] = useState16([]);
|
|
32536
32658
|
const [uploadError, setUploadError] = useState16();
|
|
32537
|
-
return /* @__PURE__ */
|
|
32659
|
+
return /* @__PURE__ */ jsx85(
|
|
32538
32660
|
Controller,
|
|
32539
32661
|
{
|
|
32540
32662
|
name: name2 || "",
|
|
@@ -32560,7 +32682,7 @@ var FileUploadField = (props) => {
|
|
|
32560
32682
|
}
|
|
32561
32683
|
}, [selectedFiles]);
|
|
32562
32684
|
return /* @__PURE__ */ jsxs58("div", { children: [
|
|
32563
|
-
selectedFiles.length > 0 && /* @__PURE__ */
|
|
32685
|
+
selectedFiles.length > 0 && /* @__PURE__ */ jsx85(
|
|
32564
32686
|
RenderFiles,
|
|
32565
32687
|
{
|
|
32566
32688
|
selectedFiles,
|
|
@@ -32568,8 +32690,8 @@ var FileUploadField = (props) => {
|
|
|
32568
32690
|
useGetImage
|
|
32569
32691
|
}
|
|
32570
32692
|
),
|
|
32571
|
-
uploadError && /* @__PURE__ */
|
|
32572
|
-
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */
|
|
32693
|
+
uploadError && /* @__PURE__ */ jsx85("div", { className: "text-[#de4747]", children: uploadError }),
|
|
32694
|
+
(widget === "many2many_binary" || widget !== "many2many_binary" && selectedFiles?.length === 0) && /* @__PURE__ */ jsx85(
|
|
32573
32695
|
ButtonSelectFiles,
|
|
32574
32696
|
{
|
|
32575
32697
|
fileInputRef,
|
|
@@ -32584,7 +32706,7 @@ var FileUploadField = (props) => {
|
|
|
32584
32706
|
useUploadFile
|
|
32585
32707
|
}
|
|
32586
32708
|
),
|
|
32587
|
-
error2 && /* @__PURE__ */
|
|
32709
|
+
error2 && /* @__PURE__ */ jsx85("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32588
32710
|
] });
|
|
32589
32711
|
}
|
|
32590
32712
|
}
|
|
@@ -32593,7 +32715,7 @@ var FileUploadField = (props) => {
|
|
|
32593
32715
|
|
|
32594
32716
|
// src/widgets/basic/float-field/float.tsx
|
|
32595
32717
|
import { useEffect as useEffect17, useRef as useRef15, useState as useState17 } from "react";
|
|
32596
|
-
import { Fragment as Fragment24, jsx as
|
|
32718
|
+
import { Fragment as Fragment24, jsx as jsx86, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
32597
32719
|
var FloatField = (props) => {
|
|
32598
32720
|
const {
|
|
32599
32721
|
name: name2,
|
|
@@ -32611,9 +32733,9 @@ var FloatField = (props) => {
|
|
|
32611
32733
|
} = props;
|
|
32612
32734
|
const { t: t3 } = useTranslation();
|
|
32613
32735
|
if (!isForm && !isEditTable) {
|
|
32614
|
-
return /* @__PURE__ */
|
|
32736
|
+
return /* @__PURE__ */ jsx86("span", { children: formatFloatNumber(propValue ?? defaultValue) });
|
|
32615
32737
|
}
|
|
32616
|
-
return /* @__PURE__ */
|
|
32738
|
+
return /* @__PURE__ */ jsx86(
|
|
32617
32739
|
Controller,
|
|
32618
32740
|
{
|
|
32619
32741
|
name: name2 ?? "",
|
|
@@ -32715,7 +32837,7 @@ var FloatField = (props) => {
|
|
|
32715
32837
|
isDirtyRef.current = false;
|
|
32716
32838
|
};
|
|
32717
32839
|
return /* @__PURE__ */ jsxs59(Fragment24, { children: [
|
|
32718
|
-
/* @__PURE__ */
|
|
32840
|
+
/* @__PURE__ */ jsx86(
|
|
32719
32841
|
"input",
|
|
32720
32842
|
{
|
|
32721
32843
|
ref: inputRef,
|
|
@@ -32735,7 +32857,7 @@ var FloatField = (props) => {
|
|
|
32735
32857
|
`
|
|
32736
32858
|
}
|
|
32737
32859
|
),
|
|
32738
|
-
error2 && !isEditTable && /* @__PURE__ */
|
|
32860
|
+
error2 && !isEditTable && /* @__PURE__ */ jsx86("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
32739
32861
|
] });
|
|
32740
32862
|
}
|
|
32741
32863
|
}
|
|
@@ -32744,7 +32866,7 @@ var FloatField = (props) => {
|
|
|
32744
32866
|
|
|
32745
32867
|
// src/widgets/basic/float-time-field/float-time.tsx
|
|
32746
32868
|
import { useState as useState18 } from "react";
|
|
32747
|
-
import { Fragment as Fragment25, jsx as
|
|
32869
|
+
import { Fragment as Fragment25, jsx as jsx87, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
32748
32870
|
var FloatTimeField = (props) => {
|
|
32749
32871
|
const {
|
|
32750
32872
|
name: name2,
|
|
@@ -32759,9 +32881,9 @@ var FloatTimeField = (props) => {
|
|
|
32759
32881
|
} = props;
|
|
32760
32882
|
if (!isForm) {
|
|
32761
32883
|
const formatValue = value ?? 0;
|
|
32762
|
-
return /* @__PURE__ */
|
|
32884
|
+
return /* @__PURE__ */ jsx87("span", { children: convertFloatToTime(formatValue) });
|
|
32763
32885
|
}
|
|
32764
|
-
return /* @__PURE__ */
|
|
32886
|
+
return /* @__PURE__ */ jsx87(
|
|
32765
32887
|
Controller,
|
|
32766
32888
|
{
|
|
32767
32889
|
name: name2 ?? "",
|
|
@@ -32824,7 +32946,7 @@ var FloatTimeField = (props) => {
|
|
|
32824
32946
|
onBlur();
|
|
32825
32947
|
};
|
|
32826
32948
|
return /* @__PURE__ */ jsxs60(Fragment25, { children: [
|
|
32827
|
-
/* @__PURE__ */
|
|
32949
|
+
/* @__PURE__ */ jsx87(
|
|
32828
32950
|
"input",
|
|
32829
32951
|
{
|
|
32830
32952
|
type: "text",
|
|
@@ -32856,7 +32978,7 @@ var FloatTimeField = (props) => {
|
|
|
32856
32978
|
readOnly: readonly
|
|
32857
32979
|
}
|
|
32858
32980
|
),
|
|
32859
|
-
(error2 || errors) && /* @__PURE__ */
|
|
32981
|
+
(error2 || errors) && /* @__PURE__ */ jsx87("div", { className: "text-red-500 text-sm", children: error2?.message || errors })
|
|
32860
32982
|
] });
|
|
32861
32983
|
}
|
|
32862
32984
|
}
|
|
@@ -32865,7 +32987,7 @@ var FloatTimeField = (props) => {
|
|
|
32865
32987
|
|
|
32866
32988
|
// src/widgets/basic/html-field/html.tsx
|
|
32867
32989
|
import { useEffect as useEffect18, useRef as useRef16 } from "react";
|
|
32868
|
-
import { jsx as
|
|
32990
|
+
import { jsx as jsx88 } from "react/jsx-runtime";
|
|
32869
32991
|
var HtmlField = (props) => {
|
|
32870
32992
|
const {
|
|
32871
32993
|
name: name2,
|
|
@@ -32878,9 +33000,9 @@ var HtmlField = (props) => {
|
|
|
32878
33000
|
} = props;
|
|
32879
33001
|
const divRef = useRef16(null);
|
|
32880
33002
|
if (!isForm) {
|
|
32881
|
-
return /* @__PURE__ */
|
|
33003
|
+
return /* @__PURE__ */ jsx88("div", { dangerouslySetInnerHTML: { __html: value || defaultValue || "" } });
|
|
32882
33004
|
}
|
|
32883
|
-
return /* @__PURE__ */
|
|
33005
|
+
return /* @__PURE__ */ jsx88(
|
|
32884
33006
|
Controller,
|
|
32885
33007
|
{
|
|
32886
33008
|
name: name2 ?? "",
|
|
@@ -32899,7 +33021,7 @@ var HtmlField = (props) => {
|
|
|
32899
33021
|
onChange2(newValue, "");
|
|
32900
33022
|
}
|
|
32901
33023
|
};
|
|
32902
|
-
return /* @__PURE__ */
|
|
33024
|
+
return /* @__PURE__ */ jsx88(
|
|
32903
33025
|
"div",
|
|
32904
33026
|
{
|
|
32905
33027
|
ref: divRef,
|
|
@@ -32918,12 +33040,12 @@ var HtmlField = (props) => {
|
|
|
32918
33040
|
};
|
|
32919
33041
|
|
|
32920
33042
|
// src/widgets/basic/image-field/image.tsx
|
|
32921
|
-
import { jsx as
|
|
33043
|
+
import { jsx as jsx89 } from "react/jsx-runtime";
|
|
32922
33044
|
var ImageField = (props) => {
|
|
32923
33045
|
const { value, type, name: name2 } = props;
|
|
32924
33046
|
if (!value) return null;
|
|
32925
33047
|
if (type === "url") {
|
|
32926
|
-
return /* @__PURE__ */
|
|
33048
|
+
return /* @__PURE__ */ jsx89(
|
|
32927
33049
|
"img",
|
|
32928
33050
|
{
|
|
32929
33051
|
src: `https://api.vitrust.app/c2${value}`,
|
|
@@ -32933,21 +33055,21 @@ var ImageField = (props) => {
|
|
|
32933
33055
|
}
|
|
32934
33056
|
);
|
|
32935
33057
|
}
|
|
32936
|
-
return /* @__PURE__ */
|
|
33058
|
+
return /* @__PURE__ */ jsx89("div", { id: "qr-code", children: /* @__PURE__ */ jsx89("img", { src: `data:image/png;base64,${value}`, alt: "QR Code" }) });
|
|
32937
33059
|
};
|
|
32938
33060
|
|
|
32939
33061
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
32940
33062
|
import { useEffect as useEffect19 } from "react";
|
|
32941
33063
|
|
|
32942
33064
|
// src/widgets/basic/information-field/information.tsx
|
|
32943
|
-
import { Fragment as Fragment26, jsx as
|
|
33065
|
+
import { Fragment as Fragment26, jsx as jsx90, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
32944
33066
|
var InfomationField = (props) => {
|
|
32945
33067
|
const { value, isForm = false, showName = true, stringToColor } = props;
|
|
32946
33068
|
if (!value || Array.isArray(value) && value.length === 0) {
|
|
32947
|
-
return /* @__PURE__ */
|
|
33069
|
+
return /* @__PURE__ */ jsx90(Fragment26, {});
|
|
32948
33070
|
}
|
|
32949
33071
|
const inforValues = Array.isArray(value) ? value : [value];
|
|
32950
|
-
return /* @__PURE__ */
|
|
33072
|
+
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(
|
|
32951
33073
|
AvatarField,
|
|
32952
33074
|
{
|
|
32953
33075
|
id: item.id,
|
|
@@ -32957,7 +33079,7 @@ var InfomationField = (props) => {
|
|
|
32957
33079
|
},
|
|
32958
33080
|
item.id
|
|
32959
33081
|
)) : /* @__PURE__ */ jsxs61("div", { className: "flex gap-2 items-center w-max", children: [
|
|
32960
|
-
/* @__PURE__ */
|
|
33082
|
+
/* @__PURE__ */ jsx90(
|
|
32961
33083
|
AvatarField,
|
|
32962
33084
|
{
|
|
32963
33085
|
avatarSrc: inforValues[0].image_256,
|
|
@@ -32967,12 +33089,12 @@ var InfomationField = (props) => {
|
|
|
32967
33089
|
stringToColor
|
|
32968
33090
|
}
|
|
32969
33091
|
),
|
|
32970
|
-
showName && /* @__PURE__ */
|
|
33092
|
+
showName && /* @__PURE__ */ jsx90("span", { className: "capitalize", children: inforValues[0].display_name })
|
|
32971
33093
|
] }) });
|
|
32972
33094
|
};
|
|
32973
33095
|
|
|
32974
33096
|
// src/widgets/basic/many2many-tags-field/many2many-tags.tsx
|
|
32975
|
-
import { jsx as
|
|
33097
|
+
import { jsx as jsx91, jsxs as jsxs62 } from "react/jsx-runtime";
|
|
32976
33098
|
var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
32977
33099
|
const { selectProps, data, menuList } = props;
|
|
32978
33100
|
const { relation } = selectProps;
|
|
@@ -32982,7 +33104,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
32982
33104
|
)
|
|
32983
33105
|
)?.[0]?.action?.id;
|
|
32984
33106
|
return /* @__PURE__ */ jsxs62("div", { className: "flex items-center gap-2 relative mr-2 group", children: [
|
|
32985
|
-
/* @__PURE__ */
|
|
33107
|
+
/* @__PURE__ */ jsx91(
|
|
32986
33108
|
AvatarField,
|
|
32987
33109
|
{
|
|
32988
33110
|
id: data?.id,
|
|
@@ -32994,8 +33116,8 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
32994
33116
|
stringToColor
|
|
32995
33117
|
}
|
|
32996
33118
|
),
|
|
32997
|
-
/* @__PURE__ */
|
|
32998
|
-
/* @__PURE__ */
|
|
33119
|
+
/* @__PURE__ */ jsx91("span", { className: "capitalize", children: data?.label ?? data?.display_name }),
|
|
33120
|
+
/* @__PURE__ */ jsx91(
|
|
32999
33121
|
"span",
|
|
33000
33122
|
{
|
|
33001
33123
|
className: "absolute !cursor-pointer -top-1 -right-1 font-medium bg-white rounded-full !shadow-lg hidden group-hover:block",
|
|
@@ -33003,7 +33125,7 @@ var CustomMultiValue = ({ stringToColor, ...props }) => {
|
|
|
33003
33125
|
e3.stopPropagation();
|
|
33004
33126
|
props.removeProps.onClick();
|
|
33005
33127
|
},
|
|
33006
|
-
children: /* @__PURE__ */
|
|
33128
|
+
children: /* @__PURE__ */ jsx91(CloseIcon, {})
|
|
33007
33129
|
}
|
|
33008
33130
|
)
|
|
33009
33131
|
] });
|
|
@@ -33028,7 +33150,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33028
33150
|
stringToColor
|
|
33029
33151
|
} = props;
|
|
33030
33152
|
const CustomSelect = ({ ...rest }) => {
|
|
33031
|
-
return /* @__PURE__ */
|
|
33153
|
+
return /* @__PURE__ */ jsx91(StateManagedSelect$1, { relation, ...rest });
|
|
33032
33154
|
};
|
|
33033
33155
|
if (!isForm) {
|
|
33034
33156
|
const optionValue = Array.isArray(value) ? value.map((item) => ({
|
|
@@ -33036,7 +33158,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33036
33158
|
value: item.id,
|
|
33037
33159
|
label: item.name ?? item.display_name
|
|
33038
33160
|
})) : [];
|
|
33039
|
-
return /* @__PURE__ */
|
|
33161
|
+
return /* @__PURE__ */ jsx91(
|
|
33040
33162
|
InfomationField,
|
|
33041
33163
|
{
|
|
33042
33164
|
value: optionValue || null,
|
|
@@ -33045,7 +33167,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33045
33167
|
}
|
|
33046
33168
|
);
|
|
33047
33169
|
}
|
|
33048
|
-
return /* @__PURE__ */
|
|
33170
|
+
return /* @__PURE__ */ jsx91(
|
|
33049
33171
|
Controller,
|
|
33050
33172
|
{
|
|
33051
33173
|
name: name2 ?? "",
|
|
@@ -33070,7 +33192,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33070
33192
|
clearErrors(name2);
|
|
33071
33193
|
};
|
|
33072
33194
|
return /* @__PURE__ */ jsxs62("div", { className: "group", children: [
|
|
33073
|
-
/* @__PURE__ */
|
|
33195
|
+
/* @__PURE__ */ jsx91(
|
|
33074
33196
|
CustomSelect,
|
|
33075
33197
|
{
|
|
33076
33198
|
relation,
|
|
@@ -33128,7 +33250,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33128
33250
|
})
|
|
33129
33251
|
},
|
|
33130
33252
|
components: isUser ? {
|
|
33131
|
-
MultiValue: (multiValueProps) => /* @__PURE__ */
|
|
33253
|
+
MultiValue: (multiValueProps) => /* @__PURE__ */ jsx91(
|
|
33132
33254
|
CustomMultiValue,
|
|
33133
33255
|
{
|
|
33134
33256
|
...multiValueProps,
|
|
@@ -33143,7 +33265,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33143
33265
|
},
|
|
33144
33266
|
field?.value
|
|
33145
33267
|
),
|
|
33146
|
-
isEditTable && error2 && /* @__PURE__ */
|
|
33268
|
+
isEditTable && error2 && /* @__PURE__ */ jsx91("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33147
33269
|
] });
|
|
33148
33270
|
}
|
|
33149
33271
|
}
|
|
@@ -33152,7 +33274,7 @@ var Many2ManyTagField = (props) => {
|
|
|
33152
33274
|
|
|
33153
33275
|
// src/widgets/basic/monetary-field/monetary.tsx
|
|
33154
33276
|
import { useEffect as useEffect20 } from "react";
|
|
33155
|
-
import { Fragment as Fragment27, jsx as
|
|
33277
|
+
import { Fragment as Fragment27, jsx as jsx92, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
33156
33278
|
var MonetaryField = (props) => {
|
|
33157
33279
|
const {
|
|
33158
33280
|
name: name2,
|
|
@@ -33176,21 +33298,21 @@ var MonetaryField = (props) => {
|
|
|
33176
33298
|
string,
|
|
33177
33299
|
":"
|
|
33178
33300
|
] }),
|
|
33179
|
-
/* @__PURE__ */
|
|
33301
|
+
/* @__PURE__ */ jsx92("span", { className: "text-lg leading-[21px] font-semibold text-[rgb(73,80,87)] text-right", children: `${formatNumberOnly(parseFloat(value ?? defaultValue))} VND` })
|
|
33180
33302
|
] });
|
|
33181
33303
|
}
|
|
33182
33304
|
if (!isForm) {
|
|
33183
33305
|
const currencySymbol = widget === "monetary" ? formValues?.currency_id?.symbol : "VND";
|
|
33184
33306
|
if (widget === "monetary" && !formValues?.currency_id) {
|
|
33185
|
-
return /* @__PURE__ */
|
|
33307
|
+
return /* @__PURE__ */ jsx92("span", { children: `${formatNumberOnly(
|
|
33186
33308
|
parseFloat(String(value ?? defaultValue))
|
|
33187
33309
|
)} VND` });
|
|
33188
33310
|
}
|
|
33189
|
-
return /* @__PURE__ */
|
|
33311
|
+
return /* @__PURE__ */ jsx92("span", { children: `${formatNumberOnly(
|
|
33190
33312
|
parseFloat(value ?? defaultValue)
|
|
33191
33313
|
)} ${currencySymbol}` });
|
|
33192
33314
|
}
|
|
33193
|
-
return /* @__PURE__ */
|
|
33315
|
+
return /* @__PURE__ */ jsx92(
|
|
33194
33316
|
Controller,
|
|
33195
33317
|
{
|
|
33196
33318
|
name: name2 ?? "",
|
|
@@ -33213,7 +33335,7 @@ var MonetaryField = (props) => {
|
|
|
33213
33335
|
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]`;
|
|
33214
33336
|
const readonlyClass = readonly ? "!cursor-not-allowed border-transparent text-[#5c5a5a]" : "!cursor-pointer border-[#f7f7f7] text-[#525866]";
|
|
33215
33337
|
return /* @__PURE__ */ jsxs63(Fragment27, { children: [
|
|
33216
|
-
/* @__PURE__ */
|
|
33338
|
+
/* @__PURE__ */ jsx92(
|
|
33217
33339
|
"input",
|
|
33218
33340
|
{
|
|
33219
33341
|
value: formatNumberOnly(value2),
|
|
@@ -33247,7 +33369,7 @@ var MonetaryField = (props) => {
|
|
|
33247
33369
|
className: `${baseClasses} ${editableClass} ${readonlyClass}`
|
|
33248
33370
|
}
|
|
33249
33371
|
),
|
|
33250
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
33372
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx92("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33251
33373
|
] });
|
|
33252
33374
|
}
|
|
33253
33375
|
}
|
|
@@ -33255,14 +33377,14 @@ var MonetaryField = (props) => {
|
|
|
33255
33377
|
};
|
|
33256
33378
|
|
|
33257
33379
|
// src/widgets/basic/paid-badged-field/paid-badged.tsx
|
|
33258
|
-
import { jsx as
|
|
33380
|
+
import { jsx as jsx93 } from "react/jsx-runtime";
|
|
33259
33381
|
var PaidBadgedField = () => {
|
|
33260
|
-
return /* @__PURE__ */
|
|
33382
|
+
return /* @__PURE__ */ jsx93("div", { className: "absolute z-[4] right-4 top-4", children: /* @__PURE__ */ jsx93(PaidIcon, {}) });
|
|
33261
33383
|
};
|
|
33262
33384
|
|
|
33263
33385
|
// src/widgets/basic/priority-field/rating-star.tsx
|
|
33264
33386
|
import React16, { useEffect as useEffect21, useState as useState19 } from "react";
|
|
33265
|
-
import { jsx as
|
|
33387
|
+
import { jsx as jsx94, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
33266
33388
|
var RatingStarField = (props) => {
|
|
33267
33389
|
const {
|
|
33268
33390
|
label,
|
|
@@ -33297,7 +33419,7 @@ var RatingStarField = (props) => {
|
|
|
33297
33419
|
setHover(0);
|
|
33298
33420
|
setRating(0);
|
|
33299
33421
|
};
|
|
33300
|
-
return /* @__PURE__ */
|
|
33422
|
+
return /* @__PURE__ */ jsx94(
|
|
33301
33423
|
"div",
|
|
33302
33424
|
{
|
|
33303
33425
|
className: "flex gap-1 cursor-pointer w-fit",
|
|
@@ -33308,16 +33430,16 @@ var RatingStarField = (props) => {
|
|
|
33308
33430
|
const fillColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "white" : rating >= starValue ? "#f3cc00" : "white";
|
|
33309
33431
|
const strokeColor = hover > 0 ? hover >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)" : rating >= starValue ? "#f3cc00" : "rgba(73,80,87,0.76)";
|
|
33310
33432
|
return /* @__PURE__ */ jsxs64(React16.Fragment, { children: [
|
|
33311
|
-
/* @__PURE__ */
|
|
33433
|
+
/* @__PURE__ */ jsx94(
|
|
33312
33434
|
"div",
|
|
33313
33435
|
{
|
|
33314
33436
|
onMouseEnter: () => handleHover(starValue),
|
|
33315
33437
|
onClick: () => handleClick(starValue),
|
|
33316
33438
|
"data-tooltip-id": `${id}-${starValue}`,
|
|
33317
|
-
children: /* @__PURE__ */
|
|
33439
|
+
children: /* @__PURE__ */ jsx94(StarIcon, { fill: fillColor, stroke: strokeColor })
|
|
33318
33440
|
}
|
|
33319
33441
|
),
|
|
33320
|
-
/* @__PURE__ */
|
|
33442
|
+
/* @__PURE__ */ jsx94(
|
|
33321
33443
|
M,
|
|
33322
33444
|
{
|
|
33323
33445
|
className: "z-50",
|
|
@@ -33333,7 +33455,7 @@ var RatingStarField = (props) => {
|
|
|
33333
33455
|
};
|
|
33334
33456
|
|
|
33335
33457
|
// src/widgets/basic/priority-field/priority.tsx
|
|
33336
|
-
import { jsx as
|
|
33458
|
+
import { jsx as jsx95 } from "react/jsx-runtime";
|
|
33337
33459
|
var PriorityField = (props) => {
|
|
33338
33460
|
const {
|
|
33339
33461
|
isForm,
|
|
@@ -33349,7 +33471,7 @@ var PriorityField = (props) => {
|
|
|
33349
33471
|
const label = viewData?.models?.[model]?.[name ?? ""]?.string ?? name;
|
|
33350
33472
|
const defaultPriority = parseInt(value) + 1;
|
|
33351
33473
|
if (!isForm) {
|
|
33352
|
-
return /* @__PURE__ */
|
|
33474
|
+
return /* @__PURE__ */ jsx95(
|
|
33353
33475
|
RatingStarField,
|
|
33354
33476
|
{
|
|
33355
33477
|
label,
|
|
@@ -33360,7 +33482,7 @@ var PriorityField = (props) => {
|
|
|
33360
33482
|
}
|
|
33361
33483
|
);
|
|
33362
33484
|
}
|
|
33363
|
-
return /* @__PURE__ */
|
|
33485
|
+
return /* @__PURE__ */ jsx95(
|
|
33364
33486
|
Controller,
|
|
33365
33487
|
{
|
|
33366
33488
|
name: name ?? "",
|
|
@@ -33370,7 +33492,7 @@ var PriorityField = (props) => {
|
|
|
33370
33492
|
field.onChange(String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
33371
33493
|
onChange2?.(name ?? "", String(value2 - 1 <= 0 ? 0 : value2 - 1));
|
|
33372
33494
|
};
|
|
33373
|
-
return /* @__PURE__ */
|
|
33495
|
+
return /* @__PURE__ */ jsx95(
|
|
33374
33496
|
RatingStarField,
|
|
33375
33497
|
{
|
|
33376
33498
|
label,
|
|
@@ -33387,7 +33509,7 @@ var PriorityField = (props) => {
|
|
|
33387
33509
|
|
|
33388
33510
|
// src/widgets/basic/radio-group-field/radio-group.tsx
|
|
33389
33511
|
import { useEffect as useEffect22 } from "react";
|
|
33390
|
-
import { jsx as
|
|
33512
|
+
import { jsx as jsx96, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
33391
33513
|
var RadioGroupField = (props) => {
|
|
33392
33514
|
const {
|
|
33393
33515
|
name: name2,
|
|
@@ -33406,13 +33528,13 @@ var RadioGroupField = (props) => {
|
|
|
33406
33528
|
}
|
|
33407
33529
|
}, [selection, name2, setValue]);
|
|
33408
33530
|
if (!methods) return null;
|
|
33409
|
-
return /* @__PURE__ */
|
|
33531
|
+
return /* @__PURE__ */ jsx96(
|
|
33410
33532
|
Controller,
|
|
33411
33533
|
{
|
|
33412
33534
|
name: name2 ?? "",
|
|
33413
33535
|
control: methods.control,
|
|
33414
|
-
render: ({ field }) => /* @__PURE__ */
|
|
33415
|
-
/* @__PURE__ */
|
|
33536
|
+
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: [
|
|
33537
|
+
/* @__PURE__ */ jsx96(
|
|
33416
33538
|
"input",
|
|
33417
33539
|
{
|
|
33418
33540
|
type: "radio",
|
|
@@ -33431,7 +33553,7 @@ var RadioGroupField = (props) => {
|
|
|
33431
33553
|
className: "custom-radio"
|
|
33432
33554
|
}
|
|
33433
33555
|
),
|
|
33434
|
-
/* @__PURE__ */
|
|
33556
|
+
/* @__PURE__ */ jsx96("label", { htmlFor: String(select[0]), children: select[1] })
|
|
33435
33557
|
] }, select[0])) })
|
|
33436
33558
|
}
|
|
33437
33559
|
);
|
|
@@ -33439,7 +33561,7 @@ var RadioGroupField = (props) => {
|
|
|
33439
33561
|
|
|
33440
33562
|
// src/widgets/basic/remaining-days-field/remaining-days.tsx
|
|
33441
33563
|
var import_moment3 = __toESM(require_moment());
|
|
33442
|
-
import { jsx as
|
|
33564
|
+
import { jsx as jsx97, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
33443
33565
|
var RemainingDaysField = (props) => {
|
|
33444
33566
|
const {
|
|
33445
33567
|
value,
|
|
@@ -33451,13 +33573,13 @@ var RemainingDaysField = (props) => {
|
|
|
33451
33573
|
const adjustedValue = (0, import_moment3.default)(value).add(7, "hours");
|
|
33452
33574
|
const isFuture = adjustedValue.isAfter((0, import_moment3.default)());
|
|
33453
33575
|
return /* @__PURE__ */ jsxs66("div", { className: isForm ? "mb-4" : "", children: [
|
|
33454
|
-
/* @__PURE__ */
|
|
33455
|
-
/* @__PURE__ */
|
|
33576
|
+
/* @__PURE__ */ jsx97(M, { id: `remainingDays_${value}`, place: "top", content: string }),
|
|
33577
|
+
/* @__PURE__ */ jsx97(
|
|
33456
33578
|
"div",
|
|
33457
33579
|
{
|
|
33458
33580
|
"data-tooltip-id": `remainingDays_${value}`,
|
|
33459
33581
|
className: "flex items-center w-fit cursor-context-menu",
|
|
33460
|
-
children: /* @__PURE__ */
|
|
33582
|
+
children: /* @__PURE__ */ jsx97(
|
|
33461
33583
|
"div",
|
|
33462
33584
|
{
|
|
33463
33585
|
className: `text-sm font-semibold ${isFuture ? "text-[rgba(73,80,87,0.76)]" : "text-red-700"}`,
|
|
@@ -33470,7 +33592,7 @@ var RemainingDaysField = (props) => {
|
|
|
33470
33592
|
};
|
|
33471
33593
|
|
|
33472
33594
|
// src/widgets/basic/select-dropdown-field/select-dropdown.tsx
|
|
33473
|
-
import { Fragment as Fragment28, jsx as
|
|
33595
|
+
import { Fragment as Fragment28, jsx as jsx98, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
33474
33596
|
var SelectDropdownField = (props) => {
|
|
33475
33597
|
const {
|
|
33476
33598
|
selection,
|
|
@@ -33491,9 +33613,9 @@ var SelectDropdownField = (props) => {
|
|
|
33491
33613
|
label: val[1]
|
|
33492
33614
|
})) : [];
|
|
33493
33615
|
if (!isForm && !isEditTable) {
|
|
33494
|
-
return /* @__PURE__ */
|
|
33616
|
+
return /* @__PURE__ */ jsx98("span", { children: options2?.find((item) => item?.value === value)?.label });
|
|
33495
33617
|
} else {
|
|
33496
|
-
return /* @__PURE__ */
|
|
33618
|
+
return /* @__PURE__ */ jsx98(
|
|
33497
33619
|
Controller,
|
|
33498
33620
|
{
|
|
33499
33621
|
name: name2 || "",
|
|
@@ -33528,7 +33650,7 @@ var SelectDropdownField = (props) => {
|
|
|
33528
33650
|
}
|
|
33529
33651
|
};
|
|
33530
33652
|
return /* @__PURE__ */ jsxs67(Fragment28, { children: [
|
|
33531
|
-
/* @__PURE__ */
|
|
33653
|
+
/* @__PURE__ */ jsx98("div", { className: "group", children: /* @__PURE__ */ jsx98(
|
|
33532
33654
|
StateManagedSelect$1,
|
|
33533
33655
|
{
|
|
33534
33656
|
...commonProps,
|
|
@@ -33571,11 +33693,11 @@ var SelectDropdownField = (props) => {
|
|
|
33571
33693
|
menuPortalTarget: typeof window !== "undefined" ? document.body : null,
|
|
33572
33694
|
components: {
|
|
33573
33695
|
IndicatorSeparator: () => null,
|
|
33574
|
-
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */
|
|
33696
|
+
DropdownIndicator: (props2) => readonly || !isEditTable ? null : /* @__PURE__ */ jsx98(components.DropdownIndicator, { ...props2 })
|
|
33575
33697
|
}
|
|
33576
33698
|
}
|
|
33577
33699
|
) }),
|
|
33578
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
33700
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx98("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33579
33701
|
] });
|
|
33580
33702
|
}
|
|
33581
33703
|
}
|
|
@@ -33584,7 +33706,7 @@ var SelectDropdownField = (props) => {
|
|
|
33584
33706
|
};
|
|
33585
33707
|
|
|
33586
33708
|
// src/widgets/basic/textarea-field/textarea.tsx
|
|
33587
|
-
import { jsx as
|
|
33709
|
+
import { jsx as jsx99 } from "react/jsx-runtime";
|
|
33588
33710
|
var TextAreaField = (props) => {
|
|
33589
33711
|
const {
|
|
33590
33712
|
methods,
|
|
@@ -33608,9 +33730,9 @@ var TextAreaField = (props) => {
|
|
|
33608
33730
|
}
|
|
33609
33731
|
}) : {};
|
|
33610
33732
|
if (!isForm) {
|
|
33611
|
-
return /* @__PURE__ */
|
|
33733
|
+
return /* @__PURE__ */ jsx99("span", { children: value && typeof value === "object" ? value.display_name : value });
|
|
33612
33734
|
}
|
|
33613
|
-
return /* @__PURE__ */
|
|
33735
|
+
return /* @__PURE__ */ jsx99(
|
|
33614
33736
|
"textarea",
|
|
33615
33737
|
{
|
|
33616
33738
|
...formProps,
|
|
@@ -33626,7 +33748,7 @@ var TextAreaField = (props) => {
|
|
|
33626
33748
|
};
|
|
33627
33749
|
|
|
33628
33750
|
// src/widgets/basic/toggle-button-field/toggle-button.tsx
|
|
33629
|
-
import { jsx as
|
|
33751
|
+
import { jsx as jsx100, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
33630
33752
|
var ToggleButtonField = (props) => {
|
|
33631
33753
|
const {
|
|
33632
33754
|
name: name2,
|
|
@@ -33636,13 +33758,13 @@ var ToggleButtonField = (props) => {
|
|
|
33636
33758
|
onChange: onChange2,
|
|
33637
33759
|
methods
|
|
33638
33760
|
} = props;
|
|
33639
|
-
return /* @__PURE__ */
|
|
33761
|
+
return /* @__PURE__ */ jsx100(
|
|
33640
33762
|
Controller,
|
|
33641
33763
|
{
|
|
33642
33764
|
name: name2 ?? "",
|
|
33643
33765
|
control: methods?.control,
|
|
33644
|
-
render: ({ field }) => /* @__PURE__ */
|
|
33645
|
-
/* @__PURE__ */
|
|
33766
|
+
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: [
|
|
33767
|
+
/* @__PURE__ */ jsx100(
|
|
33646
33768
|
"input",
|
|
33647
33769
|
{
|
|
33648
33770
|
...field,
|
|
@@ -33661,12 +33783,12 @@ var ToggleButtonField = (props) => {
|
|
|
33661
33783
|
checked: field.value ?? false
|
|
33662
33784
|
}
|
|
33663
33785
|
),
|
|
33664
|
-
/* @__PURE__ */
|
|
33786
|
+
/* @__PURE__ */ jsx100(
|
|
33665
33787
|
"span",
|
|
33666
33788
|
{
|
|
33667
33789
|
className: `absolute top-0 left-0 right-0 bottom-0 rounded-full transition duration-300
|
|
33668
33790
|
${field.value ? "bg-primary" : "bg-gray-300"}`,
|
|
33669
|
-
children: /* @__PURE__ */
|
|
33791
|
+
children: /* @__PURE__ */ jsx100(
|
|
33670
33792
|
"span",
|
|
33671
33793
|
{
|
|
33672
33794
|
className: `absolute left-[2px] bottom-[2px] w-4 h-4 bg-white rounded-full transition duration-300
|
|
@@ -33682,7 +33804,7 @@ var ToggleButtonField = (props) => {
|
|
|
33682
33804
|
|
|
33683
33805
|
// src/widgets/basic/integer-field/integer.tsx
|
|
33684
33806
|
import { useEffect as useEffect23, useRef as useRef17, useState as useState20 } from "react";
|
|
33685
|
-
import { Fragment as Fragment29, jsx as
|
|
33807
|
+
import { Fragment as Fragment29, jsx as jsx101, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
33686
33808
|
var IntegerField = (props) => {
|
|
33687
33809
|
const {
|
|
33688
33810
|
name: name2,
|
|
@@ -33700,9 +33822,9 @@ var IntegerField = (props) => {
|
|
|
33700
33822
|
} = props;
|
|
33701
33823
|
if (!isForm) {
|
|
33702
33824
|
const displayValue = value ?? defaultValue;
|
|
33703
|
-
return /* @__PURE__ */
|
|
33825
|
+
return /* @__PURE__ */ jsx101("span", { children: typeof displayValue === "object" ? JSON.stringify(displayValue) : formatNumberOnly(displayValue) });
|
|
33704
33826
|
}
|
|
33705
|
-
return /* @__PURE__ */
|
|
33827
|
+
return /* @__PURE__ */ jsx101(
|
|
33706
33828
|
Controller,
|
|
33707
33829
|
{
|
|
33708
33830
|
name: name2 || "",
|
|
@@ -33781,7 +33903,7 @@ var IntegerField = (props) => {
|
|
|
33781
33903
|
clearErrors(name2);
|
|
33782
33904
|
};
|
|
33783
33905
|
return /* @__PURE__ */ jsxs69(Fragment29, { children: [
|
|
33784
|
-
/* @__PURE__ */
|
|
33906
|
+
/* @__PURE__ */ jsx101(
|
|
33785
33907
|
"input",
|
|
33786
33908
|
{
|
|
33787
33909
|
ref: inputRef,
|
|
@@ -33815,7 +33937,7 @@ var IntegerField = (props) => {
|
|
|
33815
33937
|
`
|
|
33816
33938
|
}
|
|
33817
33939
|
),
|
|
33818
|
-
error2 && isEditTable && /* @__PURE__ */
|
|
33940
|
+
error2 && isEditTable && /* @__PURE__ */ jsx101("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
33819
33941
|
] });
|
|
33820
33942
|
}
|
|
33821
33943
|
}
|
|
@@ -33823,7 +33945,7 @@ var IntegerField = (props) => {
|
|
|
33823
33945
|
};
|
|
33824
33946
|
|
|
33825
33947
|
// src/widgets/basic/status-dropdown-field/status-dropdown.tsx
|
|
33826
|
-
import { jsx as
|
|
33948
|
+
import { jsx as jsx102, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
33827
33949
|
var StatusDropdownField = (props) => {
|
|
33828
33950
|
const {
|
|
33829
33951
|
buttonRef,
|
|
@@ -33841,7 +33963,7 @@ var StatusDropdownField = (props) => {
|
|
|
33841
33963
|
ref: buttonRef,
|
|
33842
33964
|
className: isForm ? "absolute top-7 right-6 z-10" : void 0,
|
|
33843
33965
|
children: [
|
|
33844
|
-
/* @__PURE__ */
|
|
33966
|
+
/* @__PURE__ */ jsx102(
|
|
33845
33967
|
"button",
|
|
33846
33968
|
{
|
|
33847
33969
|
type: "button",
|
|
@@ -33849,7 +33971,7 @@ var StatusDropdownField = (props) => {
|
|
|
33849
33971
|
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"}`
|
|
33850
33972
|
}
|
|
33851
33973
|
),
|
|
33852
|
-
isOpen && /* @__PURE__ */
|
|
33974
|
+
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) => {
|
|
33853
33975
|
const isActive = item[0] == state;
|
|
33854
33976
|
return /* @__PURE__ */ jsxs70(
|
|
33855
33977
|
"div",
|
|
@@ -33857,15 +33979,15 @@ var StatusDropdownField = (props) => {
|
|
|
33857
33979
|
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" : ""}`,
|
|
33858
33980
|
onClick: () => handleClick(item[0]),
|
|
33859
33981
|
children: [
|
|
33860
|
-
/* @__PURE__ */
|
|
33982
|
+
/* @__PURE__ */ jsx102("div", { className: "w-4 h-4", children: isActive && /* @__PURE__ */ jsx102(CheckIcon, {}) }),
|
|
33861
33983
|
/* @__PURE__ */ jsxs70("div", { className: "flex items-center gap-2", children: [
|
|
33862
|
-
/* @__PURE__ */
|
|
33984
|
+
/* @__PURE__ */ jsx102(
|
|
33863
33985
|
"div",
|
|
33864
33986
|
{
|
|
33865
33987
|
className: `rounded-full size-4 shadow-[inset_0_0_0_1px_rgba(0,0,0,0.2)] !border-none ${colors2[item[0]]}`
|
|
33866
33988
|
}
|
|
33867
33989
|
),
|
|
33868
|
-
/* @__PURE__ */
|
|
33990
|
+
/* @__PURE__ */ jsx102("span", { className: "text-sm", children: item[1] })
|
|
33869
33991
|
] })
|
|
33870
33992
|
]
|
|
33871
33993
|
},
|
|
@@ -33879,7 +34001,7 @@ var StatusDropdownField = (props) => {
|
|
|
33879
34001
|
|
|
33880
34002
|
// src/widgets/basic/many2many-field/many2many.tsx
|
|
33881
34003
|
import { createPortal as createPortal5 } from "react-dom";
|
|
33882
|
-
import { jsx as
|
|
34004
|
+
import { jsx as jsx103, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
33883
34005
|
var Many2ManyField = (props) => {
|
|
33884
34006
|
const {
|
|
33885
34007
|
aid,
|
|
@@ -33939,8 +34061,8 @@ var Many2ManyField = (props) => {
|
|
|
33939
34061
|
},
|
|
33940
34062
|
className: "fixed bottom-0 left-0 right-0 top-0",
|
|
33941
34063
|
children: [
|
|
33942
|
-
/* @__PURE__ */
|
|
33943
|
-
/* @__PURE__ */
|
|
34064
|
+
/* @__PURE__ */ jsx103("div", { className: "absolute inset-0 bg-[rgba(27,27,27,0.48)]" }),
|
|
34065
|
+
/* @__PURE__ */ jsx103("div", { className: "absolute inset-0 overflow-auto px-6 flex justify-center items-center", children: /* @__PURE__ */ jsxs71(
|
|
33944
34066
|
"div",
|
|
33945
34067
|
{
|
|
33946
34068
|
style: {
|
|
@@ -33949,11 +34071,11 @@ var Many2ManyField = (props) => {
|
|
|
33949
34071
|
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",
|
|
33950
34072
|
children: [
|
|
33951
34073
|
/* @__PURE__ */ jsxs71("div", { className: "flex justify-between items-center border-b border-[rgba(0,0,0,0.1)] pb-2", children: [
|
|
33952
|
-
/* @__PURE__ */
|
|
33953
|
-
/* @__PURE__ */
|
|
34074
|
+
/* @__PURE__ */ jsx103("div", { className: "text-[20px] font-semibold", children: title }),
|
|
34075
|
+
/* @__PURE__ */ jsx103("button", { className: "cursor-pointer", onClick: onClose, children: /* @__PURE__ */ jsx103(CloseIcon, {}) })
|
|
33954
34076
|
] }),
|
|
33955
34077
|
/* @__PURE__ */ jsxs71("div", { className: "grid grid-cols-3 gap-2 items-center py-2", children: [
|
|
33956
|
-
/* @__PURE__ */
|
|
34078
|
+
/* @__PURE__ */ jsx103("div", { className: "col-span-3 sm:col-span-2 flex-1", children: /* @__PURE__ */ jsx103(
|
|
33957
34079
|
Search,
|
|
33958
34080
|
{
|
|
33959
34081
|
removeSearchItems,
|
|
@@ -33986,7 +34108,7 @@ var Many2ManyField = (props) => {
|
|
|
33986
34108
|
clearSearch
|
|
33987
34109
|
}
|
|
33988
34110
|
) }),
|
|
33989
|
-
/* @__PURE__ */
|
|
34111
|
+
/* @__PURE__ */ jsx103(
|
|
33990
34112
|
PaginationView,
|
|
33991
34113
|
{
|
|
33992
34114
|
className: "pagination-bar col-span-3 sm:col-span-1 justify-end flex-1",
|
|
@@ -34003,20 +34125,20 @@ var Many2ManyField = (props) => {
|
|
|
34003
34125
|
}
|
|
34004
34126
|
)
|
|
34005
34127
|
] }),
|
|
34006
|
-
!isDataLoading && isDataFetched || isPlaceholderData ? /* @__PURE__ */
|
|
34128
|
+
!isDataLoading && isDataFetched || isPlaceholderData ? /* @__PURE__ */ jsx103("div", { className: "relative overflow-y-auto", children: /* @__PURE__ */ jsx103("div", { className: "relative h-full w-full", children: /* @__PURE__ */ jsx103(
|
|
34007
34129
|
"div",
|
|
34008
34130
|
{
|
|
34009
34131
|
className: `border-y h-full border-solid border-[#dbe0e6] rounded-[10px] relative w-full overflow-hidden`,
|
|
34010
|
-
children: /* @__PURE__ */
|
|
34132
|
+
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(
|
|
34011
34133
|
"div",
|
|
34012
34134
|
{
|
|
34013
34135
|
className: `flex w-full items-center h-full overflow-auto `,
|
|
34014
|
-
children: /* @__PURE__ */
|
|
34136
|
+
children: /* @__PURE__ */ jsx103("div", { className: "w-full h-full max-w-full", children: /* @__PURE__ */ jsxs71(
|
|
34015
34137
|
"table",
|
|
34016
34138
|
{
|
|
34017
34139
|
className: `relative w-full bg-white custom-dropdown `,
|
|
34018
34140
|
children: [
|
|
34019
|
-
/* @__PURE__ */
|
|
34141
|
+
/* @__PURE__ */ jsx103(
|
|
34020
34142
|
TableHead,
|
|
34021
34143
|
{
|
|
34022
34144
|
columns,
|
|
@@ -34026,7 +34148,7 @@ var Many2ManyField = (props) => {
|
|
|
34026
34148
|
handleCheckBoxAll
|
|
34027
34149
|
}
|
|
34028
34150
|
),
|
|
34029
|
-
/* @__PURE__ */
|
|
34151
|
+
/* @__PURE__ */ jsx103(
|
|
34030
34152
|
TableBody,
|
|
34031
34153
|
{
|
|
34032
34154
|
columns,
|
|
@@ -34066,9 +34188,9 @@ var Many2ManyField = (props) => {
|
|
|
34066
34188
|
}
|
|
34067
34189
|
) }) })
|
|
34068
34190
|
}
|
|
34069
|
-
) }) }) : /* @__PURE__ */
|
|
34191
|
+
) }) }) : /* @__PURE__ */ jsx103(LayerLoading, {}),
|
|
34070
34192
|
/* @__PURE__ */ jsxs71("div", { className: "flex items-center gap-2 mt-auto", children: [
|
|
34071
|
-
isDisplayCheckbox && /* @__PURE__ */
|
|
34193
|
+
isDisplayCheckbox && /* @__PURE__ */ jsx103(
|
|
34072
34194
|
"button",
|
|
34073
34195
|
{
|
|
34074
34196
|
disabled: selectedRowKeys?.length === 0,
|
|
@@ -34078,7 +34200,7 @@ var Many2ManyField = (props) => {
|
|
|
34078
34200
|
children: instance.t("choose")
|
|
34079
34201
|
}
|
|
34080
34202
|
),
|
|
34081
|
-
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */
|
|
34203
|
+
optionsObject && "no_create" in optionsObject && optionsObject?.no_create === false && /* @__PURE__ */ jsx103(
|
|
34082
34204
|
"button",
|
|
34083
34205
|
{
|
|
34084
34206
|
type: "button",
|
|
@@ -34094,7 +34216,7 @@ var Many2ManyField = (props) => {
|
|
|
34094
34216
|
children: instance.t("new")
|
|
34095
34217
|
}
|
|
34096
34218
|
),
|
|
34097
|
-
/* @__PURE__ */
|
|
34219
|
+
/* @__PURE__ */ jsx103(
|
|
34098
34220
|
"button",
|
|
34099
34221
|
{
|
|
34100
34222
|
type: "button",
|
|
@@ -34116,7 +34238,7 @@ var Many2ManyField = (props) => {
|
|
|
34116
34238
|
|
|
34117
34239
|
// src/widgets/basic/many2one-field/many2one.tsx
|
|
34118
34240
|
import React17, { useEffect as useEffect24, useMemo as useMemo9 } from "react";
|
|
34119
|
-
import { Fragment as Fragment30, jsx as
|
|
34241
|
+
import { Fragment as Fragment30, jsx as jsx104, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
34120
34242
|
var CustomMenuList = (props) => {
|
|
34121
34243
|
const { options: options2, children, selectProps } = props;
|
|
34122
34244
|
const { setIsShowModalMany2Many, searchable } = selectProps;
|
|
@@ -34175,7 +34297,7 @@ var Many2OneField = (props) => {
|
|
|
34175
34297
|
if (!isForm && !isEditTable) {
|
|
34176
34298
|
const id = propValue && typeof propValue === "object" && "id" in propValue ? propValue.id : propValue;
|
|
34177
34299
|
return /* @__PURE__ */ jsxs72(Fragment30, { children: [
|
|
34178
|
-
allowShowDetail && /* @__PURE__ */
|
|
34300
|
+
allowShowDetail && /* @__PURE__ */ jsx104(
|
|
34179
34301
|
ModalDetail,
|
|
34180
34302
|
{
|
|
34181
34303
|
idToolTip: String(name2) + Number(index4),
|
|
@@ -34188,7 +34310,7 @@ var Many2OneField = (props) => {
|
|
|
34188
34310
|
renderDetail
|
|
34189
34311
|
}
|
|
34190
34312
|
),
|
|
34191
|
-
/* @__PURE__ */
|
|
34313
|
+
/* @__PURE__ */ jsx104(
|
|
34192
34314
|
"span",
|
|
34193
34315
|
{
|
|
34194
34316
|
className: "cursor-pointer",
|
|
@@ -34199,13 +34321,13 @@ var Many2OneField = (props) => {
|
|
|
34199
34321
|
)
|
|
34200
34322
|
] });
|
|
34201
34323
|
}
|
|
34202
|
-
return /* @__PURE__ */
|
|
34324
|
+
return /* @__PURE__ */ jsx104(Fragment30, { children: /* @__PURE__ */ jsx104(
|
|
34203
34325
|
"div",
|
|
34204
34326
|
{
|
|
34205
34327
|
id: name2,
|
|
34206
34328
|
"data-tooltip-id": name2,
|
|
34207
34329
|
className: `inline-block w-full ${readonly && "cursor-not-allowed"}`,
|
|
34208
|
-
children: /* @__PURE__ */
|
|
34330
|
+
children: /* @__PURE__ */ jsx104(
|
|
34209
34331
|
Controller,
|
|
34210
34332
|
{
|
|
34211
34333
|
name: name2 ?? "",
|
|
@@ -34227,7 +34349,7 @@ var Many2OneField = (props) => {
|
|
|
34227
34349
|
}
|
|
34228
34350
|
}, [selectedOption]);
|
|
34229
34351
|
return /* @__PURE__ */ jsxs72("div", { className: "group", children: [
|
|
34230
|
-
/* @__PURE__ */
|
|
34352
|
+
/* @__PURE__ */ jsx104(
|
|
34231
34353
|
StateManagedSelect$1,
|
|
34232
34354
|
{
|
|
34233
34355
|
menuShouldScrollIntoView: false,
|
|
@@ -34279,7 +34401,7 @@ var Many2OneField = (props) => {
|
|
|
34279
34401
|
})
|
|
34280
34402
|
},
|
|
34281
34403
|
components: {
|
|
34282
|
-
MenuList: (menuListProps) => /* @__PURE__ */
|
|
34404
|
+
MenuList: (menuListProps) => /* @__PURE__ */ jsx104(
|
|
34283
34405
|
CustomMenuList,
|
|
34284
34406
|
{
|
|
34285
34407
|
...menuListProps,
|
|
@@ -34290,13 +34412,13 @@ var Many2OneField = (props) => {
|
|
|
34290
34412
|
}
|
|
34291
34413
|
),
|
|
34292
34414
|
IndicatorSeparator: () => null,
|
|
34293
|
-
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */
|
|
34415
|
+
DropdownIndicator: (props2) => readonly ? null : /* @__PURE__ */ jsx104(components.DropdownIndicator, { ...props2 })
|
|
34294
34416
|
},
|
|
34295
34417
|
isDisabled: readonly,
|
|
34296
34418
|
noOptionsMessage: () => instance.t(isFetching ? "loading" : "no-available")
|
|
34297
34419
|
}
|
|
34298
34420
|
),
|
|
34299
|
-
!isEditTable && error2 && /* @__PURE__ */
|
|
34421
|
+
!isEditTable && error2 && /* @__PURE__ */ jsx104("p", { className: "text-[#de4747] text-sm mt-1", children: error2.message })
|
|
34300
34422
|
] });
|
|
34301
34423
|
}
|
|
34302
34424
|
}
|
|
@@ -34306,7 +34428,7 @@ var Many2OneField = (props) => {
|
|
|
34306
34428
|
};
|
|
34307
34429
|
|
|
34308
34430
|
// src/widgets/basic/status-bar-field/duration/duration.tsx
|
|
34309
|
-
import { jsx as
|
|
34431
|
+
import { jsx as jsx105, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
34310
34432
|
var StatusbarDurationField = (props) => {
|
|
34311
34433
|
const {
|
|
34312
34434
|
disabled,
|
|
@@ -34316,12 +34438,12 @@ var StatusbarDurationField = (props) => {
|
|
|
34316
34438
|
defaultValue,
|
|
34317
34439
|
setModalStatus
|
|
34318
34440
|
} = props;
|
|
34319
|
-
return /* @__PURE__ */
|
|
34441
|
+
return /* @__PURE__ */ jsx105(
|
|
34320
34442
|
"div",
|
|
34321
34443
|
{
|
|
34322
34444
|
className: `w-full items-center rounded-[10px] !flex flex-col-reverse justify-center lg:!justify-end lg:!flex-row gap-y-[15px]`,
|
|
34323
34445
|
children: /* @__PURE__ */ jsxs73("div", { className: "flex items-center gap-[24px]", children: [
|
|
34324
|
-
/* @__PURE__ */
|
|
34446
|
+
/* @__PURE__ */ jsx105("div", { className: "flex items-center", children: dataResponse && dataResponse?.records?.filter((item) => !item?.fold || item.id == defaultValue)?.map((option, index4) => {
|
|
34325
34447
|
const value = option?.id === defaultValue;
|
|
34326
34448
|
return /* @__PURE__ */ jsxs73(
|
|
34327
34449
|
"label",
|
|
@@ -34333,7 +34455,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34333
34455
|
${index4 === dataResponse?.records?.length - 1 ? "rounded-r-xl" : "rounded-none"}
|
|
34334
34456
|
`,
|
|
34335
34457
|
children: [
|
|
34336
|
-
/* @__PURE__ */
|
|
34458
|
+
/* @__PURE__ */ jsx105(
|
|
34337
34459
|
"input",
|
|
34338
34460
|
{
|
|
34339
34461
|
type: "radio",
|
|
@@ -34343,7 +34465,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34343
34465
|
}
|
|
34344
34466
|
),
|
|
34345
34467
|
option?.name,
|
|
34346
|
-
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */
|
|
34468
|
+
index4 !== dataResponse?.records?.length - 1 && /* @__PURE__ */ jsx105(
|
|
34347
34469
|
"div",
|
|
34348
34470
|
{
|
|
34349
34471
|
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]
|
|
@@ -34364,8 +34486,8 @@ var StatusbarDurationField = (props) => {
|
|
|
34364
34486
|
onClick: () => setModalStatus(!modelStatus),
|
|
34365
34487
|
className: "w-[24px] h-[24px] cursor-pointer relative",
|
|
34366
34488
|
children: [
|
|
34367
|
-
/* @__PURE__ */
|
|
34368
|
-
modelStatus && /* @__PURE__ */
|
|
34489
|
+
/* @__PURE__ */ jsx105(MoreIcon, {}),
|
|
34490
|
+
modelStatus && /* @__PURE__ */ jsx105(
|
|
34369
34491
|
"div",
|
|
34370
34492
|
{
|
|
34371
34493
|
onClick: (e3) => e3.stopPropagation(),
|
|
@@ -34374,7 +34496,7 @@ var StatusbarDurationField = (props) => {
|
|
|
34374
34496
|
(item) => item?.fold && item.id !== defaultValue
|
|
34375
34497
|
)?.map((option) => {
|
|
34376
34498
|
const value = option?.id === defaultValue;
|
|
34377
|
-
return /* @__PURE__ */
|
|
34499
|
+
return /* @__PURE__ */ jsx105(
|
|
34378
34500
|
"div",
|
|
34379
34501
|
{
|
|
34380
34502
|
className: `py-[4px] px-[16px] hover:bg-[#f8f9f9] ${value ? "bg-primary" : "bg-[#F1F6F1]"}`,
|
|
@@ -34396,11 +34518,11 @@ var StatusbarDurationField = (props) => {
|
|
|
34396
34518
|
|
|
34397
34519
|
// src/widgets/basic/status-bar-field/option/option.tsx
|
|
34398
34520
|
import { useMemo as useMemo10 } from "react";
|
|
34399
|
-
import { jsx as
|
|
34521
|
+
import { jsx as jsx106, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
34400
34522
|
var StatusBarOptionField = (props) => {
|
|
34401
34523
|
const { selection, defaultValue } = props;
|
|
34402
34524
|
const memoizedStatusOptions = useMemo10(() => selection, [selection]);
|
|
34403
|
-
return /* @__PURE__ */
|
|
34525
|
+
return /* @__PURE__ */ jsx106("div", { className: "flex items-center flex-wrap", children: memoizedStatusOptions?.map((option, index4) => {
|
|
34404
34526
|
const value = option?.[0] === defaultValue;
|
|
34405
34527
|
return /* @__PURE__ */ jsxs74(
|
|
34406
34528
|
"label",
|
|
@@ -34411,9 +34533,9 @@ var StatusBarOptionField = (props) => {
|
|
|
34411
34533
|
${index4 === memoizedStatusOptions?.length - 1 ? "rounded-r-xl!" : "rounded-none"}
|
|
34412
34534
|
`,
|
|
34413
34535
|
children: [
|
|
34414
|
-
/* @__PURE__ */
|
|
34536
|
+
/* @__PURE__ */ jsx106("input", { type: "radio", checked: value, className: "hidden", disabled: true }),
|
|
34415
34537
|
option[1],
|
|
34416
|
-
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */
|
|
34538
|
+
!(index4 === memoizedStatusOptions?.length - 1) && /* @__PURE__ */ jsx106(
|
|
34417
34539
|
"div",
|
|
34418
34540
|
{
|
|
34419
34541
|
className: `absolute top-[5px] z-[2] -right-4 w-[30px] h-[30px] border-t-4 border-r-4 border-white transform rotate-45
|
|
@@ -34429,7 +34551,7 @@ var StatusBarOptionField = (props) => {
|
|
|
34429
34551
|
};
|
|
34430
34552
|
|
|
34431
34553
|
// src/widgets/basic/date-option-field/date-option.tsx
|
|
34432
|
-
import { jsx as
|
|
34554
|
+
import { jsx as jsx107, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
34433
34555
|
var DateOptionField = (props) => {
|
|
34434
34556
|
const {
|
|
34435
34557
|
name: name2,
|
|
@@ -34440,7 +34562,7 @@ var DateOptionField = (props) => {
|
|
|
34440
34562
|
string,
|
|
34441
34563
|
onChange: onChange2
|
|
34442
34564
|
} = props;
|
|
34443
|
-
return /* @__PURE__ */
|
|
34565
|
+
return /* @__PURE__ */ jsx107(
|
|
34444
34566
|
Controller,
|
|
34445
34567
|
{
|
|
34446
34568
|
name: name2 ?? "",
|
|
@@ -34452,7 +34574,7 @@ var DateOptionField = (props) => {
|
|
|
34452
34574
|
${field.value ? "bg-primary text-white border-primary" : "bg-white text-black border-[#f7f7f7]"}
|
|
34453
34575
|
${readonly ? "opacity-50 pointer-events-none" : ""}`,
|
|
34454
34576
|
children: [
|
|
34455
|
-
/* @__PURE__ */
|
|
34577
|
+
/* @__PURE__ */ jsx107(
|
|
34456
34578
|
"input",
|
|
34457
34579
|
{
|
|
34458
34580
|
type: "checkbox",
|
|
@@ -34509,7 +34631,7 @@ export {
|
|
|
34509
34631
|
DownloadFileField,
|
|
34510
34632
|
DownloadIcon,
|
|
34511
34633
|
DropdownField,
|
|
34512
|
-
|
|
34634
|
+
EmptyTable,
|
|
34513
34635
|
ExcelIcon,
|
|
34514
34636
|
ExportIcon,
|
|
34515
34637
|
EyeClosedIcon,
|