@esic-lab/data-core-ui 0.0.77 → 0.0.78

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/index.js CHANGED
@@ -402,8 +402,6 @@ __export(index_exports, {
402
402
  TertiaryButton: () => TertiaryButton,
403
403
  TextAreaInput: () => TextAreaInput,
404
404
  TextInput: () => TextInput,
405
- TimePickerBasic: () => TimePickerBasic,
406
- TimePickerRangePicker: () => TimePickerRangePicker,
407
405
  TopNavBar: () => TopNavBar,
408
406
  messageError: () => messageError,
409
407
  messageInfo: () => messageInfo,
@@ -1787,114 +1785,9 @@ function DatePickerRange({
1787
1785
  ] });
1788
1786
  }
1789
1787
 
1790
- // src/TimePicker/TimePickerBasic/TimePickerBasic.tsx
1788
+ // src/ColorPicker/ColorPickerBasic/ColorPicker.tsx
1791
1789
  var import_antd8 = require("antd");
1792
- var import_dayjs3 = __toESM(require_dayjs_min());
1793
- var import_th_TH = __toESM(require("antd/locale/th_TH.js"));
1794
1790
  var import_jsx_runtime26 = require("react/jsx-runtime");
1795
- function TimePickerBasic({
1796
- value,
1797
- onChange,
1798
- required,
1799
- label,
1800
- error,
1801
- placeholder,
1802
- disabled,
1803
- className
1804
- }) {
1805
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1806
- import_antd8.ConfigProvider,
1807
- {
1808
- locale: import_th_TH.default,
1809
- theme: {
1810
- token: {
1811
- fontFamily: "Kanit"
1812
- }
1813
- },
1814
- children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "container-input", children: [
1815
- /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
1816
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "body-1", children: label }),
1817
- " ",
1818
- required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-red-500", children: "*" })
1819
- ] }),
1820
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1821
- import_antd8.TimePicker,
1822
- {
1823
- format: "HH:mm",
1824
- className: `body-1 w-full ${className ?? ""}`,
1825
- value: value ? (0, import_dayjs3.default)(value) : null,
1826
- placeholder,
1827
- onChange: (time) => {
1828
- onChange(time ? time.toDate() : null);
1829
- },
1830
- allowClear: true,
1831
- disabled
1832
- }
1833
- ),
1834
- error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-red-500 caption-1", children: error })
1835
- ] })
1836
- }
1837
- );
1838
- }
1839
-
1840
- // src/TimePicker/TimePickerRangePicker/TimerPickerRangePicker.tsx
1841
- var import_antd9 = require("antd");
1842
- var import_dayjs4 = __toESM(require_dayjs_min());
1843
- var import_th_TH2 = __toESM(require("antd/locale/th_TH.js"));
1844
- var import_jsx_runtime27 = require("react/jsx-runtime");
1845
- function TimePickerRangePicker({
1846
- value,
1847
- onChange,
1848
- placeholder = ["\u0E40\u0E23\u0E34\u0E48\u0E21\u0E15\u0E49\u0E19", "\u0E2A\u0E34\u0E49\u0E19\u0E2A\u0E38\u0E14"],
1849
- label,
1850
- required,
1851
- error,
1852
- disabled,
1853
- className
1854
- }) {
1855
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1856
- import_antd9.ConfigProvider,
1857
- {
1858
- locale: import_th_TH2.default,
1859
- theme: {
1860
- token: {
1861
- fontFamily: "Kanit"
1862
- }
1863
- },
1864
- children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "container-input", children: [
1865
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
1866
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "body-1", children: label }),
1867
- " ",
1868
- required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-red-500", children: "*" })
1869
- ] }),
1870
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
1871
- import_antd9.TimePicker.RangePicker,
1872
- {
1873
- format: "HH:mm",
1874
- value: value ? [value[0] ? (0, import_dayjs4.default)(value[0]) : null, value[1] ? (0, import_dayjs4.default)(value[1]) : null] : null,
1875
- placeholder,
1876
- className: `body-1 w-full ${className ?? ""}`,
1877
- onChange: (dates, dateStrings) => {
1878
- if (!dates) {
1879
- onChange(null);
1880
- } else {
1881
- onChange([dates[0] ? dates[0].toDate() : null, dates[1] ? dates[1].toDate() : null]);
1882
- }
1883
- },
1884
- allowClear: true,
1885
- disabled,
1886
- showNow: true
1887
- }
1888
- ),
1889
- error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-red-500 caption-1", children: error })
1890
- ] })
1891
- }
1892
- );
1893
- }
1894
-
1895
- // src/ColorPicker/ColorPickerBasic/ColorPicker.tsx
1896
- var import_antd10 = require("antd");
1897
- var import_jsx_runtime28 = require("react/jsx-runtime");
1898
1791
  function ColorPickerBasic({
1899
1792
  value,
1900
1793
  onChange,
@@ -1907,8 +1800,8 @@ function ColorPickerBasic({
1907
1800
  className,
1908
1801
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35"
1909
1802
  }) {
1910
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1911
- import_antd10.ConfigProvider,
1803
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1804
+ import_antd8.ConfigProvider,
1912
1805
  {
1913
1806
  theme: {
1914
1807
  token: {
@@ -1916,14 +1809,14 @@ function ColorPickerBasic({
1916
1809
  fontSize: 16
1917
1810
  }
1918
1811
  },
1919
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "container-input", children: [
1920
- /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
1921
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "body-1", children: label }),
1812
+ children: /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { className: "container-input", children: [
1813
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("div", { children: [
1814
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "body-1", children: label }),
1922
1815
  " ",
1923
- required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-red-500", children: "*" })
1816
+ required && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "text-red-500", children: "*" })
1924
1817
  ] }),
1925
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
1926
- import_antd10.ColorPicker,
1818
+ /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
1819
+ import_antd8.ColorPicker,
1927
1820
  {
1928
1821
  defaultFormat,
1929
1822
  className: `body-1 w-full ${className ?? ""}`,
@@ -1934,9 +1827,9 @@ function ColorPickerBasic({
1934
1827
  showText: (color) => {
1935
1828
  const hex = color.toHexString();
1936
1829
  if (!value) {
1937
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { children: placeholder });
1830
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { children: placeholder });
1938
1831
  }
1939
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("span", { children: [
1832
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)("span", { children: [
1940
1833
  "(",
1941
1834
  hex,
1942
1835
  ")"
@@ -1945,14 +1838,14 @@ function ColorPickerBasic({
1945
1838
  disabled
1946
1839
  }
1947
1840
  ),
1948
- error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-red-500 caption-1", children: error })
1841
+ error && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("p", { className: "text-red-500 caption-1", children: error })
1949
1842
  ] })
1950
1843
  }
1951
1844
  );
1952
1845
  }
1953
1846
 
1954
1847
  // src/ColorPicker/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
1955
- var import_antd11 = require("antd");
1848
+ var import_antd9 = require("antd");
1956
1849
 
1957
1850
  // node_modules/@babel/runtime/helpers/esm/typeof.js
1958
1851
  function _typeof(o) {
@@ -2654,7 +2547,7 @@ var greyDark = ["#151515", "#1f1f1f", "#2d2d2d", "#393939", "#494949", "#5a5a5a"
2654
2547
  greyDark.primary = greyDark[5];
2655
2548
 
2656
2549
  // src/ColorPicker/ColorPalettePickerBasic/ColorPalettePickerBasic.tsx
2657
- var import_jsx_runtime29 = require("react/jsx-runtime");
2550
+ var import_jsx_runtime27 = require("react/jsx-runtime");
2658
2551
  function genPresets(presets = presetPalettes) {
2659
2552
  return Object.entries(presets).map(([label, colors]) => ({
2660
2553
  label,
@@ -2675,14 +2568,14 @@ function ColorPalettePickerBasic({
2675
2568
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E2A\u0E35",
2676
2569
  onClear
2677
2570
  }) {
2678
- const { token } = import_antd11.theme.useToken();
2571
+ const { token } = import_antd9.theme.useToken();
2679
2572
  const presets = genPresets({
2680
2573
  primary: generate(token.colorPrimary),
2681
2574
  red,
2682
2575
  green
2683
2576
  });
2684
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2685
- import_antd11.ConfigProvider,
2577
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2578
+ import_antd9.ConfigProvider,
2686
2579
  {
2687
2580
  theme: {
2688
2581
  token: {
@@ -2690,14 +2583,14 @@ function ColorPalettePickerBasic({
2690
2583
  fontSize: 16
2691
2584
  }
2692
2585
  },
2693
- children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "container-input", children: [
2694
- /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
2695
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "body-1", children: label }),
2586
+ children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { className: "container-input", children: [
2587
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("div", { children: [
2588
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "body-1", children: label }),
2696
2589
  " ",
2697
- required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-red-500", children: "*" })
2590
+ required && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "text-red-500", children: "*" })
2698
2591
  ] }),
2699
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2700
- import_antd11.ColorPicker,
2592
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
2593
+ import_antd9.ColorPicker,
2701
2594
  {
2702
2595
  defaultFormat,
2703
2596
  className: `body-1 w-full ${className ?? ""}`,
@@ -2709,9 +2602,9 @@ function ColorPalettePickerBasic({
2709
2602
  showText: (color) => {
2710
2603
  const hex = color.toHexString();
2711
2604
  if (!value) {
2712
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: placeholder });
2605
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { children: placeholder });
2713
2606
  }
2714
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("span", { children: [
2607
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)("span", { children: [
2715
2608
  "(",
2716
2609
  hex,
2717
2610
  ")"
@@ -2721,15 +2614,15 @@ function ColorPalettePickerBasic({
2721
2614
  onClear
2722
2615
  }
2723
2616
  ),
2724
- error && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-red-500 caption-1", children: error })
2617
+ error && /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("p", { className: "text-red-500 caption-1", children: error })
2725
2618
  ] })
2726
2619
  }
2727
2620
  );
2728
2621
  }
2729
2622
 
2730
2623
  // src/Select/SelectField/SelectField.tsx
2731
- var import_antd12 = require("antd");
2732
- var import_jsx_runtime30 = require("react/jsx-runtime");
2624
+ var import_antd10 = require("antd");
2625
+ var import_jsx_runtime28 = require("react/jsx-runtime");
2733
2626
  function SelectField({
2734
2627
  value,
2735
2628
  onChange,
@@ -2749,8 +2642,8 @@ function SelectField({
2749
2642
  size = "middle",
2750
2643
  allowClear = true
2751
2644
  }) {
2752
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2753
- import_antd12.ConfigProvider,
2645
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2646
+ import_antd10.ConfigProvider,
2754
2647
  {
2755
2648
  theme: {
2756
2649
  token: {
@@ -2758,14 +2651,14 @@ function SelectField({
2758
2651
  fontSize: 16
2759
2652
  }
2760
2653
  },
2761
- children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "container-input", children: [
2762
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2763
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "body-1", children: label }),
2654
+ children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { className: "container-input", children: [
2655
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)("div", { children: [
2656
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "body-1", children: label }),
2764
2657
  " ",
2765
- required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-red-500", children: "*" })
2658
+ required && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("span", { className: "text-red-500", children: "*" })
2766
2659
  ] }),
2767
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2768
- import_antd12.Select,
2660
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2661
+ import_antd10.Select,
2769
2662
  {
2770
2663
  size,
2771
2664
  showSearch: true,
@@ -2780,7 +2673,7 @@ function SelectField({
2780
2673
  options,
2781
2674
  mode,
2782
2675
  onSearch: handleSearch,
2783
- prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2676
+ prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
2784
2677
  "span",
2785
2678
  {
2786
2679
  style: {
@@ -2797,15 +2690,15 @@ function SelectField({
2797
2690
  onClear
2798
2691
  }
2799
2692
  ),
2800
- error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-red-500 caption-1", children: error })
2693
+ error && /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("p", { className: "text-red-500 caption-1", children: error })
2801
2694
  ] })
2802
2695
  }
2803
2696
  );
2804
2697
  }
2805
2698
 
2806
2699
  // src/Select/SelectFieldGroup/SelectFieldGroup.tsx
2807
- var import_antd13 = require("antd");
2808
- var import_jsx_runtime31 = require("react/jsx-runtime");
2700
+ var import_antd11 = require("antd");
2701
+ var import_jsx_runtime29 = require("react/jsx-runtime");
2809
2702
  function SelectFieldGroup({
2810
2703
  value,
2811
2704
  onChange,
@@ -2824,22 +2717,22 @@ function SelectFieldGroup({
2824
2717
  size = "middle",
2825
2718
  allowClear = true
2826
2719
  }) {
2827
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2828
- import_antd13.ConfigProvider,
2720
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2721
+ import_antd11.ConfigProvider,
2829
2722
  {
2830
2723
  theme: {
2831
2724
  token: {
2832
2725
  fontFamily: "Kanit"
2833
2726
  }
2834
2727
  },
2835
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "container-input", children: [
2836
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
2837
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "body-1", children: label }),
2728
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { className: "container-input", children: [
2729
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)("div", { children: [
2730
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "body-1", children: label }),
2838
2731
  " ",
2839
- required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-red-500", children: "*" })
2732
+ required && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "text-red-500", children: "*" })
2840
2733
  ] }),
2841
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2842
- import_antd13.Select,
2734
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2735
+ import_antd11.Select,
2843
2736
  {
2844
2737
  size,
2845
2738
  showSearch: true,
@@ -2854,7 +2747,7 @@ function SelectFieldGroup({
2854
2747
  options,
2855
2748
  mode,
2856
2749
  onSearch: handleSearch,
2857
- prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2750
+ prefix: prefix ? /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
2858
2751
  "span",
2859
2752
  {
2860
2753
  style: {
@@ -2870,16 +2763,16 @@ function SelectFieldGroup({
2870
2763
  allowClear
2871
2764
  }
2872
2765
  ),
2873
- error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-red-500 caption-1", children: error })
2766
+ error && /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("p", { className: "text-red-500 caption-1", children: error })
2874
2767
  ] })
2875
2768
  }
2876
2769
  );
2877
2770
  }
2878
2771
 
2879
2772
  // src/Select/SelectFieldStatus/SelectFieldStatus.tsx
2880
- var import_antd14 = require("antd");
2773
+ var import_antd12 = require("antd");
2881
2774
  var import_icons = require("@ant-design/icons");
2882
- var import_jsx_runtime32 = require("react/jsx-runtime");
2775
+ var import_jsx_runtime30 = require("react/jsx-runtime");
2883
2776
  function SelectFieldStatus({
2884
2777
  value,
2885
2778
  onChange,
@@ -2894,8 +2787,8 @@ function SelectFieldStatus({
2894
2787
  allowClear = false
2895
2788
  }) {
2896
2789
  const selectedItem = options?.find((s) => s.value === value);
2897
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2898
- import_antd14.ConfigProvider,
2790
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2791
+ import_antd12.ConfigProvider,
2899
2792
  {
2900
2793
  theme: {
2901
2794
  components: {
@@ -2910,18 +2803,18 @@ function SelectFieldStatus({
2910
2803
  fontFamily: "Kanit"
2911
2804
  }
2912
2805
  },
2913
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "container-input", children: [
2914
- /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
2915
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "body-1", children: label }),
2806
+ children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { className: "container-input", children: [
2807
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("div", { children: [
2808
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "body-1", children: label }),
2916
2809
  " ",
2917
- required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-red-500", children: "*" })
2810
+ required && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "text-red-500", children: "*" })
2918
2811
  ] }),
2919
- /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2920
- import_antd14.Select,
2812
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
2813
+ import_antd12.Select,
2921
2814
  {
2922
2815
  size,
2923
2816
  disabled,
2924
- suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_icons.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2817
+ suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_icons.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2925
2818
  value: value ? value : void 0,
2926
2819
  onChange,
2927
2820
  className: `body-3 custom-select flex justify-center w-full ${className ?? ""} `,
@@ -2933,14 +2826,14 @@ function SelectFieldStatus({
2933
2826
  allowClear
2934
2827
  }
2935
2828
  ),
2936
- error && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-red-500 caption-1", children: error })
2829
+ error && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("p", { className: "text-red-500 caption-1", children: error })
2937
2830
  ] })
2938
2831
  }
2939
2832
  );
2940
2833
  }
2941
2834
 
2942
2835
  // src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
2943
- var import_antd15 = require("antd");
2836
+ var import_antd13 = require("antd");
2944
2837
 
2945
2838
  // src/Select/SelectFieldStatusReport/StatusReportMockup.ts
2946
2839
  var status = [
@@ -2950,7 +2843,7 @@ var status = [
2950
2843
 
2951
2844
  // src/Select/SelectFieldStatusReport/SelectFieldStatusReport.tsx
2952
2845
  var import_icons2 = require("@ant-design/icons");
2953
- var import_jsx_runtime33 = require("react/jsx-runtime");
2846
+ var import_jsx_runtime31 = require("react/jsx-runtime");
2954
2847
  function SelectFieldStatusReport({
2955
2848
  value,
2956
2849
  onChange,
@@ -2965,8 +2858,8 @@ function SelectFieldStatusReport({
2965
2858
  allowClear = false
2966
2859
  }) {
2967
2860
  const selectedItem = status.find((s) => s.value === value);
2968
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2969
- import_antd15.ConfigProvider,
2861
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2862
+ import_antd13.ConfigProvider,
2970
2863
  {
2971
2864
  theme: {
2972
2865
  components: {
@@ -2981,18 +2874,18 @@ function SelectFieldStatusReport({
2981
2874
  fontFamily: "Kanit"
2982
2875
  }
2983
2876
  },
2984
- children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "container-input", children: [
2985
- /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
2986
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "body-1", children: label }),
2877
+ children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { className: "container-input", children: [
2878
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)("div", { children: [
2879
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "body-1", children: label }),
2987
2880
  " ",
2988
- required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-red-500", children: "*" })
2881
+ required && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("span", { className: "text-red-500", children: "*" })
2989
2882
  ] }),
2990
- /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
2991
- import_antd15.Select,
2883
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
2884
+ import_antd13.Select,
2992
2885
  {
2993
2886
  size,
2994
2887
  disabled,
2995
- suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_icons2.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2888
+ suffixIcon: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_icons2.DownOutlined, { style: { color: value ? "#fff" : "#D9D9D9" } }),
2996
2889
  value: value ? value : void 0,
2997
2890
  onChange,
2998
2891
  className: `body-3 custom-select flex justify-center w-full ${className ?? ""}`,
@@ -3004,16 +2897,16 @@ function SelectFieldStatusReport({
3004
2897
  allowClear
3005
2898
  }
3006
2899
  ),
3007
- error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-red-500 caption-1", children: error })
2900
+ error && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)("p", { className: "text-red-500 caption-1", children: error })
3008
2901
  ] })
3009
2902
  }
3010
2903
  );
3011
2904
  }
3012
2905
 
3013
2906
  // src/Select/SelectFieldTag/SelectFieldTag.tsx
3014
- var import_antd16 = require("antd");
2907
+ var import_antd14 = require("antd");
3015
2908
  var import_react10 = require("react");
3016
- var import_jsx_runtime34 = require("react/jsx-runtime");
2909
+ var import_jsx_runtime32 = require("react/jsx-runtime");
3017
2910
  function SelectFieldTag({
3018
2911
  label,
3019
2912
  required,
@@ -3048,22 +2941,22 @@ function SelectFieldTag({
3048
2941
  }
3049
2942
  onChange?.([]);
3050
2943
  };
3051
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3052
- import_antd16.ConfigProvider,
2944
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2945
+ import_antd14.ConfigProvider,
3053
2946
  {
3054
2947
  theme: {
3055
2948
  token: {
3056
2949
  fontFamily: "Kanit"
3057
2950
  }
3058
2951
  },
3059
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "container-input", children: [
3060
- /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { children: [
3061
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "body-1", children: label }),
2952
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { className: "container-input", children: [
2953
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsxs)("div", { children: [
2954
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "body-1", children: label }),
3062
2955
  " ",
3063
- required && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("span", { className: "text-red-500", children: "*" })
2956
+ required && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("span", { className: "text-red-500", children: "*" })
3064
2957
  ] }),
3065
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3066
- import_antd16.Select,
2958
+ /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
2959
+ import_antd14.Select,
3067
2960
  {
3068
2961
  size,
3069
2962
  mode: "tags",
@@ -3082,7 +2975,7 @@ function SelectFieldTag({
3082
2975
  onClear
3083
2976
  }
3084
2977
  ),
3085
- error && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("p", { className: "text-red-500 caption-1", children: error })
2978
+ error && /* @__PURE__ */ (0, import_jsx_runtime32.jsx)("p", { className: "text-red-500 caption-1", children: error })
3086
2979
  ] })
3087
2980
  }
3088
2981
  );
@@ -3090,9 +2983,9 @@ function SelectFieldTag({
3090
2983
 
3091
2984
  // src/Select/SelectCustom/SelectCustom.tsx
3092
2985
  var import_icons_react8 = require("@tabler/icons-react");
3093
- var import_antd17 = require("antd");
2986
+ var import_antd15 = require("antd");
3094
2987
  var import_react11 = require("react");
3095
- var import_jsx_runtime35 = require("react/jsx-runtime");
2988
+ var import_jsx_runtime33 = require("react/jsx-runtime");
3096
2989
  function SelectCustom({
3097
2990
  label = "\u0E02\u0E49\u0E2D\u0E21\u0E39\u0E25\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23",
3098
2991
  placeholder = "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01",
@@ -3123,8 +3016,8 @@ function SelectCustom({
3123
3016
  });
3124
3017
  };
3125
3018
  const filteredOptions = options.filter((opt) => !valueList.includes(opt.value)).map((opt) => ({ value: opt.value, label: opt.label }));
3126
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3127
- import_antd17.ConfigProvider,
3019
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3020
+ import_antd15.ConfigProvider,
3128
3021
  {
3129
3022
  theme: {
3130
3023
  token: {
@@ -3132,14 +3025,14 @@ function SelectCustom({
3132
3025
  fontSize: 16
3133
3026
  }
3134
3027
  },
3135
- children: /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "container-input", children: [
3136
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { children: [
3137
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "body-1", children: label }),
3028
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "container-input", children: [
3029
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { children: [
3030
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "body-1", children: label }),
3138
3031
  " ",
3139
- required && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-red-500", children: "*" })
3032
+ required && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("span", { className: "text-red-500", children: "*" })
3140
3033
  ] }),
3141
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3142
- import_antd17.Select,
3034
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3035
+ import_antd15.Select,
3143
3036
  {
3144
3037
  size,
3145
3038
  value: value ? value : void 0,
@@ -3151,20 +3044,20 @@ function SelectCustom({
3151
3044
  allowClear
3152
3045
  }
3153
3046
  ),
3154
- error && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-red-500 caption-1", children: error }),
3155
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-full p-[2px] overflow-y-auto", children: valueList.map((v, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3047
+ error && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { className: "text-red-500 caption-1", children: error }),
3048
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "w-full p-[2px] overflow-y-auto", children: valueList.map((v, index) => /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)(
3156
3049
  "div",
3157
3050
  {
3158
3051
  className: "flex justify-between items-center py-[2px] body-1",
3159
3052
  children: [
3160
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-row gap-[8px]", children: [
3161
- /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("p", { children: [
3053
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("div", { className: "flex flex-row gap-[8px]", children: [
3054
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsxs)("p", { children: [
3162
3055
  index + 1,
3163
3056
  "."
3164
3057
  ] }),
3165
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { children: v })
3058
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("p", { children: v })
3166
3059
  ] }),
3167
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3060
+ /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3168
3061
  import_icons_react8.IconTrash,
3169
3062
  {
3170
3063
  className: "cursor-pointer",
@@ -3181,7 +3074,7 @@ function SelectCustom({
3181
3074
  }
3182
3075
 
3183
3076
  // src/SortFilter/SortFilter.tsx
3184
- var import_antd18 = require("antd");
3077
+ var import_antd16 = require("antd");
3185
3078
  var import_icons3 = require("@ant-design/icons");
3186
3079
 
3187
3080
  // src/SortFilter/DataMockSortFilter.ts
@@ -3214,7 +3107,7 @@ var quarters = [
3214
3107
  // src/SortFilter/SortFilter.tsx
3215
3108
  var import_react12 = require("react");
3216
3109
  var import_icons_react9 = require("@tabler/icons-react");
3217
- var import_jsx_runtime36 = require("react/jsx-runtime");
3110
+ var import_jsx_runtime34 = require("react/jsx-runtime");
3218
3111
  function SortFilter({
3219
3112
  showYear = true,
3220
3113
  showQuarter = true,
@@ -3225,20 +3118,20 @@ function SortFilter({
3225
3118
  const [yearValue, setYearValue] = (0, import_react12.useState)();
3226
3119
  const [monthValue, setMonthValue] = (0, import_react12.useState)();
3227
3120
  const [quarterValue, setQuartersValue] = (0, import_react12.useState)();
3228
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3229
- import_antd18.ConfigProvider,
3121
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3122
+ import_antd16.ConfigProvider,
3230
3123
  {
3231
3124
  theme: {
3232
3125
  token: {
3233
3126
  fontFamily: "Kanit"
3234
3127
  }
3235
3128
  },
3236
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "w-full flex items-center justify-between", children: [
3237
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "w-full flex gap-[10px]", children: [
3238
- showYear && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3129
+ children: /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-full flex items-center justify-between", children: [
3130
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "w-full flex gap-[10px]", children: [
3131
+ showYear && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3239
3132
  SelectField,
3240
3133
  {
3241
- prefix: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.CalendarOutlined, {}),
3134
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons3.CalendarOutlined, {}),
3242
3135
  onChange: setYearValue,
3243
3136
  options: years.map((s) => ({
3244
3137
  value: s.value,
@@ -3248,10 +3141,10 @@ function SortFilter({
3248
3141
  value: yearValue
3249
3142
  }
3250
3143
  ) }),
3251
- showMonth && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3144
+ showMonth && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3252
3145
  SelectField,
3253
3146
  {
3254
- prefix: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.CalendarOutlined, {}),
3147
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons3.CalendarOutlined, {}),
3255
3148
  onChange: setMonthValue,
3256
3149
  options: months.map((s) => ({
3257
3150
  value: s.value,
@@ -3261,10 +3154,10 @@ function SortFilter({
3261
3154
  placeholder: "\u0E01\u0E23\u0E38\u0E13\u0E32\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E40\u0E14\u0E37\u0E2D\u0E19"
3262
3155
  }
3263
3156
  ) }),
3264
- showQuarter && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3157
+ showQuarter && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "w-[200px]", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3265
3158
  SelectField,
3266
3159
  {
3267
- prefix: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_icons3.CalendarOutlined, {}),
3160
+ prefix: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_icons3.CalendarOutlined, {}),
3268
3161
  onChange: setQuartersValue,
3269
3162
  options: quarters.map((s) => ({
3270
3163
  value: s.value,
@@ -3275,8 +3168,8 @@ function SortFilter({
3275
3168
  }
3276
3169
  ) })
3277
3170
  ] }),
3278
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "flex gap-[10px]", children: [
3279
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3171
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)("div", { className: "flex gap-[10px]", children: [
3172
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3280
3173
  import_icons_react9.IconSortDescending,
3281
3174
  {
3282
3175
  size: 24,
@@ -3284,7 +3177,7 @@ function SortFilter({
3284
3177
  onClick: onSortClick
3285
3178
  }
3286
3179
  ),
3287
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3180
+ /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3288
3181
  import_icons_react9.IconFilter,
3289
3182
  {
3290
3183
  size: 24,
@@ -3301,7 +3194,7 @@ function SortFilter({
3301
3194
  // src/Upload/FileUploader/FileUploader.tsx
3302
3195
  var import_icons_react10 = require("@tabler/icons-react");
3303
3196
  var import_react13 = require("react");
3304
- var import_jsx_runtime37 = require("react/jsx-runtime");
3197
+ var import_jsx_runtime35 = require("react/jsx-runtime");
3305
3198
  function FileUploader({
3306
3199
  onUpload,
3307
3200
  onError,
@@ -3387,10 +3280,10 @@ function FileUploader({
3387
3280
  }
3388
3281
  if (inputRef.current) inputRef.current.value = "";
3389
3282
  };
3390
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "w-full", children: [
3391
- label && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "body-1", children: label }),
3392
- !readOnly && /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: uploaderWidth, children: [
3393
- mode === "upload" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3283
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "w-full", children: [
3284
+ label && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "body-1", children: label }),
3285
+ !readOnly && /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: uploaderWidth, children: [
3286
+ mode === "upload" ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3394
3287
  "button",
3395
3288
  {
3396
3289
  type: "button",
@@ -3398,16 +3291,16 @@ function FileUploader({
3398
3291
  className: `h-[34px] flex justify-center items-center gap-2 w-full rounded-[2px] border border-gray-200 body-1
3399
3292
  ${disabled ? "cursor-not-allowed text-gray-400 bg-gray-100" : "cursor-pointer hover:text-primary-400 hover:border-primary-200 duration-300"}`,
3400
3293
  disabled: disabled ? disabled : uploading,
3401
- children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3402
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Loader, { size: 15 }),
3294
+ children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3295
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Loader, { size: 15 }),
3403
3296
  " \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
3404
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(import_jsx_runtime37.Fragment, { children: [
3405
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react10.IconUpload, { size: 15, className: "text-gray-400" }),
3297
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3298
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons_react10.IconUpload, { size: 15, className: "text-gray-400" }),
3406
3299
  " ",
3407
3300
  uploadText
3408
3301
  ] })
3409
3302
  }
3410
- ) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3303
+ ) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3411
3304
  "div",
3412
3305
  {
3413
3306
  className: `w-full min-h-[120px] flex justify-center items-center border-2 border-dashed rounded-md p-4 transition-colors body-1
@@ -3421,17 +3314,17 @@ function FileUploader({
3421
3314
  },
3422
3315
  onDragLeave: () => setDragActive(false),
3423
3316
  onDrop: handleDrop,
3424
- children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex justify-center items-center gap-2", children: [
3425
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(Loader, { size: 15 }),
3317
+ children: uploading ? /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex justify-center items-center gap-2", children: [
3318
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(Loader, { size: 15 }),
3426
3319
  " \u0E01\u0E33\u0E25\u0E31\u0E07\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14"
3427
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
3428
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react10.IconUpload, { size: 20 }),
3429
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "body-1", children: "\u0E04\u0E25\u0E34\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14" }),
3430
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "text-gray-400 body-3", children: "\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E1A\u0E1A\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E32\u0E22\u0E44\u0E1F\u0E25\u0E4C" })
3320
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex flex-col items-center gap-2", children: [
3321
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons_react10.IconUpload, { size: 20 }),
3322
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "body-1", children: "\u0E04\u0E25\u0E34\u0E01\u0E2B\u0E23\u0E37\u0E2D\u0E25\u0E32\u0E01\u0E44\u0E1F\u0E25\u0E4C\u0E21\u0E32\u0E17\u0E35\u0E48\u0E1A\u0E23\u0E34\u0E40\u0E27\u0E13\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14" }),
3323
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "text-gray-400 body-3", children: "\u0E23\u0E2D\u0E07\u0E23\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E2D\u0E31\u0E1B\u0E42\u0E2B\u0E25\u0E14\u0E41\u0E1A\u0E1A\u0E40\u0E14\u0E35\u0E48\u0E22\u0E27\u0E2B\u0E23\u0E37\u0E2D\u0E2B\u0E25\u0E32\u0E22\u0E44\u0E1F\u0E25\u0E4C" })
3431
3324
  ] })
3432
3325
  }
3433
3326
  ),
3434
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3327
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3435
3328
  "input",
3436
3329
  {
3437
3330
  type: "file",
@@ -3444,8 +3337,8 @@ function FileUploader({
3444
3337
  }
3445
3338
  )
3446
3339
  ] }),
3447
- description && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "text-gray-400 body-4", children: description }),
3448
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: `mt-[8px] ${attachWidth}`, children: filesToDisplay.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "flex flex-col rounded-[6px] body-1 border-[1px] border-gray-300", children: filesToDisplay.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
3340
+ description && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("p", { className: "text-gray-400 body-4", children: description }),
3341
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: `mt-[8px] ${attachWidth}`, children: filesToDisplay.length !== 0 && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "flex flex-col rounded-[6px] body-1 border-[1px] border-gray-300", children: filesToDisplay.map((file, index) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3449
3342
  "div",
3450
3343
  {
3451
3344
  className: `flex px-[16px] hover:bg-primary-50 hover:cursor-pointer
@@ -3455,11 +3348,11 @@ function FileUploader({
3455
3348
  ${index !== 0 ? "pt-[16px]" : ""}`,
3456
3349
  onClick: () => onClickFile && onClickFile(file),
3457
3350
  children: [
3458
- /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
3459
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "w-[24px] h-[24px] flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_icons_react10.IconFileDescription, { size: 20 }) }),
3460
- /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "truncate", children: file.name || file.fileName })
3351
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)("div", { className: "flex gap-2 overflow-hidden", children: [
3352
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("div", { className: "w-[24px] h-[24px] flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_icons_react10.IconFileDescription, { size: 20 }) }),
3353
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)("span", { className: "truncate", children: file.name || file.fileName })
3461
3354
  ] }),
3462
- !readOnly && !disabled && /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3355
+ !readOnly && !disabled && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
3463
3356
  import_icons_react10.IconTrash,
3464
3357
  {
3465
3358
  size: 20,
@@ -3499,9 +3392,9 @@ function messageLoading(content, duration) {
3499
3392
  }
3500
3393
 
3501
3394
  // src/Breadcrumb/Breadcrumb.tsx
3502
- var import_antd19 = require("antd");
3503
- var import_antd20 = require("antd");
3504
- var import_jsx_runtime38 = require("react/jsx-runtime");
3395
+ var import_antd17 = require("antd");
3396
+ var import_antd18 = require("antd");
3397
+ var import_jsx_runtime36 = require("react/jsx-runtime");
3505
3398
  function Breadcrumbs({
3506
3399
  items,
3507
3400
  separator,
@@ -3509,16 +3402,16 @@ function Breadcrumbs({
3509
3402
  classname,
3510
3403
  params
3511
3404
  }) {
3512
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3513
- import_antd19.ConfigProvider,
3405
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3406
+ import_antd17.ConfigProvider,
3514
3407
  {
3515
3408
  theme: {
3516
3409
  token: {
3517
3410
  fontFamily: "Kanit"
3518
3411
  }
3519
3412
  },
3520
- children: /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3521
- import_antd20.Breadcrumb,
3413
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3414
+ import_antd18.Breadcrumb,
3522
3415
  {
3523
3416
  items,
3524
3417
  separator,
@@ -3532,8 +3425,8 @@ function Breadcrumbs({
3532
3425
  }
3533
3426
 
3534
3427
  // src/HeadingPage/HeadingPage.tsx
3535
- var import_antd21 = require("antd");
3536
- var import_jsx_runtime39 = require("react/jsx-runtime");
3428
+ var import_antd19 = require("antd");
3429
+ var import_jsx_runtime37 = require("react/jsx-runtime");
3537
3430
  function HeadingPage({ Heading }) {
3538
3431
  const today = (/* @__PURE__ */ new Date()).toLocaleDateString("th-TH", {
3539
3432
  weekday: "long",
@@ -3541,17 +3434,17 @@ function HeadingPage({ Heading }) {
3541
3434
  month: "long",
3542
3435
  year: "numeric"
3543
3436
  });
3544
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3545
- import_antd21.ConfigProvider,
3437
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
3438
+ import_antd19.ConfigProvider,
3546
3439
  {
3547
3440
  theme: {
3548
3441
  token: {
3549
3442
  fontFamily: "Kanit"
3550
3443
  }
3551
3444
  },
3552
- children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex flex-col gap-[10px] px-[20px] py-[10px]", children: [
3553
- /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "headline-5", children: Heading }),
3554
- /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("p", { className: "body-1", children: [
3445
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "flex flex-col gap-[10px] px-[20px] py-[10px]", children: [
3446
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("p", { className: "headline-5", children: Heading }),
3447
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("p", { className: "body-1", children: [
3555
3448
  " \u0E27\u0E31\u0E19\u0E19\u0E35\u0E49 ",
3556
3449
  today
3557
3450
  ] })
@@ -3561,9 +3454,9 @@ function HeadingPage({ Heading }) {
3561
3454
  }
3562
3455
 
3563
3456
  // src/Progress/ProgressBar.tsx
3564
- var import_antd22 = require("antd");
3457
+ var import_antd20 = require("antd");
3565
3458
  var import_react14 = require("react");
3566
- var import_jsx_runtime40 = require("react/jsx-runtime");
3459
+ var import_jsx_runtime38 = require("react/jsx-runtime");
3567
3460
  function ProgressBar({
3568
3461
  percent = 0,
3569
3462
  size = "default",
@@ -3594,17 +3487,17 @@ function ProgressBar({
3594
3487
  observer.observe(inner);
3595
3488
  return () => observer.disconnect();
3596
3489
  }, []);
3597
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3598
- import_antd22.ConfigProvider,
3490
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3491
+ import_antd20.ConfigProvider,
3599
3492
  {
3600
3493
  theme: {
3601
3494
  token: {
3602
3495
  fontFamily: "Kanit"
3603
3496
  }
3604
3497
  },
3605
- children: /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)("div", { className: "relative w-full", ref: progressRef, children: [
3606
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3607
- import_antd22.Progress,
3498
+ children: /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)("div", { className: "relative w-full", ref: progressRef, children: [
3499
+ /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3500
+ import_antd20.Progress,
3608
3501
  {
3609
3502
  className: "w-full",
3610
3503
  percent,
@@ -3619,7 +3512,7 @@ function ProgressBar({
3619
3512
  strokeColor
3620
3513
  }
3621
3514
  ),
3622
- barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3515
+ barWidth > 0 && isCheckPoints && type !== "circle" && checkpoints.map((cp) => /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3623
3516
  "div",
3624
3517
  {
3625
3518
  className: "checkpoint absolute top-0",
@@ -3641,7 +3534,7 @@ function ProgressBar({
3641
3534
  }
3642
3535
 
3643
3536
  // src/KpiSection/KpiSection.tsx
3644
- var import_antd23 = require("antd");
3537
+ var import_antd21 = require("antd");
3645
3538
  var import_react16 = require("react");
3646
3539
 
3647
3540
  // src/KpiSection/hooks/useGetKpiSection.ts
@@ -3792,7 +3685,7 @@ function useGetKpiSection() {
3792
3685
 
3793
3686
  // src/KpiSection/KpiSection.tsx
3794
3687
  var import_icons_react11 = require("@tabler/icons-react");
3795
- var import_jsx_runtime41 = require("react/jsx-runtime");
3688
+ var import_jsx_runtime39 = require("react/jsx-runtime");
3796
3689
  function KpiSection({ type, onChangeKpiList }) {
3797
3690
  const {
3798
3691
  handleAddKpi,
@@ -3812,7 +3705,7 @@ function KpiSection({ type, onChangeKpiList }) {
3812
3705
  itemErrors,
3813
3706
  setItemErrors
3814
3707
  } = useGetKpiSection();
3815
- const [messageApi2, messageContainer] = import_antd23.message.useMessage();
3708
+ const [messageApi2, messageContainer] = import_antd21.message.useMessage();
3816
3709
  const [hasShownError, setHasShownError] = (0, import_react16.useState)(false);
3817
3710
  (0, import_react16.useEffect)(() => {
3818
3711
  setMessageApi(messageApi2);
@@ -3822,8 +3715,8 @@ function KpiSection({ type, onChangeKpiList }) {
3822
3715
  onChangeKpiList(kpiList);
3823
3716
  }
3824
3717
  }, [kpiList]);
3825
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3826
- import_antd23.ConfigProvider,
3718
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3719
+ import_antd21.ConfigProvider,
3827
3720
  {
3828
3721
  theme: {
3829
3722
  token: {
@@ -3831,11 +3724,11 @@ function KpiSection({ type, onChangeKpiList }) {
3831
3724
  fontSize: 16
3832
3725
  }
3833
3726
  },
3834
- children: /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "container-input", children: [
3727
+ children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "container-input", children: [
3835
3728
  messageContainer,
3836
- type === "number" && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "space-y-4", children: [
3837
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-[1fr_200px_200px_50px] w-full gap-[24px] items-start", children: [
3838
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3729
+ type === "number" && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "space-y-4", children: [
3730
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "grid grid-cols-[1fr_200px_200px_50px] w-full gap-[24px] items-start", children: [
3731
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3839
3732
  InputField,
3840
3733
  {
3841
3734
  value: nameKpi,
@@ -3847,7 +3740,7 @@ function KpiSection({ type, onChangeKpiList }) {
3847
3740
  error: errors.nameKpi
3848
3741
  }
3849
3742
  ),
3850
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3743
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3851
3744
  InputField,
3852
3745
  {
3853
3746
  value: kpiValue,
@@ -3871,7 +3764,7 @@ function KpiSection({ type, onChangeKpiList }) {
3871
3764
  error: errors.kpiValue
3872
3765
  }
3873
3766
  ),
3874
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3767
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3875
3768
  InputField,
3876
3769
  {
3877
3770
  value: unitValue,
@@ -3883,7 +3776,7 @@ function KpiSection({ type, onChangeKpiList }) {
3883
3776
  error: errors.unitValue
3884
3777
  }
3885
3778
  ),
3886
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3779
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3887
3780
  import_icons_react11.IconCirclePlus,
3888
3781
  {
3889
3782
  className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
@@ -3892,17 +3785,17 @@ function KpiSection({ type, onChangeKpiList }) {
3892
3785
  }
3893
3786
  ) })
3894
3787
  ] }),
3895
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3788
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3896
3789
  "div",
3897
3790
  {
3898
3791
  className: "grid grid-cols-[30px_1fr_100px_120px_80px] items-start py-2 body-1 gap-[8px]",
3899
3792
  children: [
3900
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3793
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3901
3794
  index + 1,
3902
3795
  "."
3903
3796
  ] }),
3904
- kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
3905
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3797
+ kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
3798
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3906
3799
  InputField,
3907
3800
  {
3908
3801
  value: kpi.name,
@@ -3912,7 +3805,7 @@ function KpiSection({ type, onChangeKpiList }) {
3912
3805
  error: itemErrors[kpi.id]?.name
3913
3806
  }
3914
3807
  ),
3915
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3808
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3916
3809
  InputField,
3917
3810
  {
3918
3811
  value: kpi.value?.toString(),
@@ -3937,7 +3830,7 @@ function KpiSection({ type, onChangeKpiList }) {
3937
3830
  error: itemErrors[kpi.id]?.value
3938
3831
  }
3939
3832
  ),
3940
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3833
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3941
3834
  InputField,
3942
3835
  {
3943
3836
  value: kpi.unit,
@@ -3947,29 +3840,29 @@ function KpiSection({ type, onChangeKpiList }) {
3947
3840
  error: itemErrors[kpi.id]?.unit
3948
3841
  }
3949
3842
  ),
3950
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3843
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3951
3844
  "div",
3952
3845
  {
3953
3846
  className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.value || !!itemErrors[kpi.id]?.unit || !!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
3954
3847
  children: [
3955
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3848
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3956
3849
  import_icons_react11.IconCheck,
3957
3850
  {
3958
3851
  className: "w-[30px] h-[30px] cursor-pointer",
3959
3852
  onClick: () => handleSave(kpi.id, type)
3960
3853
  }
3961
3854
  ),
3962
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
3855
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
3963
3856
  ]
3964
3857
  }
3965
3858
  )
3966
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
3967
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "body-1", children: kpi.name }),
3968
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "body-1", children: kpi.value }),
3969
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "body-1", children: kpi.unit }),
3970
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3971
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
3972
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
3859
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
3860
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "body-1", children: kpi.name }),
3861
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "body-1", children: kpi.value }),
3862
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "body-1", children: kpi.unit }),
3863
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3864
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
3865
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
3973
3866
  ] })
3974
3867
  ] })
3975
3868
  ]
@@ -3977,9 +3870,9 @@ function KpiSection({ type, onChangeKpiList }) {
3977
3870
  kpi.id
3978
3871
  )) })
3979
3872
  ] }),
3980
- type === "text" && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "space-y-4", children: [
3981
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-[1fr_50px] w-full gap-[24px] items-start", children: [
3982
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3873
+ type === "text" && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "space-y-4", children: [
3874
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "grid grid-cols-[1fr_50px] w-full gap-[24px] items-start", children: [
3875
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3983
3876
  InputField,
3984
3877
  {
3985
3878
  value: nameKpi,
@@ -3991,7 +3884,7 @@ function KpiSection({ type, onChangeKpiList }) {
3991
3884
  error: errors.nameKpi
3992
3885
  }
3993
3886
  ),
3994
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3887
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { className: `flex justify-end mt-[28px]`, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3995
3888
  import_icons_react11.IconCirclePlus,
3996
3889
  {
3997
3890
  className: "w-[40px] h-[40px] cursor-pointer hover:scale-110 transition",
@@ -4000,13 +3893,13 @@ function KpiSection({ type, onChangeKpiList }) {
4000
3893
  }
4001
3894
  ) })
4002
3895
  ] }),
4003
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "grid grid-cols-[30px_1fr_80px] items-start py-2 body-1 gap-[8px]", children: [
4004
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
3896
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("div", { children: kpiList.map((kpi, index) => /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "grid grid-cols-[30px_1fr_80px] items-start py-2 body-1 gap-[8px]", children: [
3897
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("p", { className: `body-1 ${kpi.isEditing ? "mt-[12px]" : ""}`, children: [
4005
3898
  index + 1,
4006
3899
  "."
4007
3900
  ] }),
4008
- kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4009
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3901
+ kpi.isEditing ? /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
3902
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4010
3903
  InputField,
4011
3904
  {
4012
3905
  value: kpi.name,
@@ -4016,27 +3909,27 @@ function KpiSection({ type, onChangeKpiList }) {
4016
3909
  error: itemErrors[kpi.id]?.name
4017
3910
  }
4018
3911
  ),
4019
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
3912
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
4020
3913
  "div",
4021
3914
  {
4022
3915
  className: `flex gap-2 justify-end self-center ${!!itemErrors[kpi.id]?.name ? "mt-[-12px]" : ""}`,
4023
3916
  children: [
4024
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3917
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
4025
3918
  import_icons_react11.IconCheck,
4026
3919
  {
4027
3920
  className: "w-[30px] h-[30px] cursor-pointer",
4028
3921
  onClick: () => handleSave(kpi.id, type)
4029
3922
  }
4030
3923
  ),
4031
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
3924
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconX, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleCancel(kpi.id) })
4032
3925
  ]
4033
3926
  }
4034
3927
  )
4035
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4036
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "body-1", children: kpi.name }),
4037
- /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex gap-3 justify-end", children: [
4038
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
4039
- /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
3928
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_jsx_runtime39.Fragment, { children: [
3929
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("p", { className: "body-1", children: kpi.name }),
3930
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)("div", { className: "flex gap-3 justify-end", children: [
3931
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconPencil, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleEdit(kpi.id) }),
3932
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_icons_react11.IconTrash, { className: "w-[30px] h-[30px] cursor-pointer", onClick: () => handleDelete(kpi.id) })
4040
3933
  ] })
4041
3934
  ] })
4042
3935
  ] }, kpi.id)) })
@@ -4047,17 +3940,17 @@ function KpiSection({ type, onChangeKpiList }) {
4047
3940
  }
4048
3941
 
4049
3942
  // src/Modal/Modal/Modal.tsx
4050
- var import_antd24 = require("antd");
4051
- var import_jsx_runtime42 = require("react/jsx-runtime");
3943
+ var import_antd22 = require("antd");
3944
+ var import_jsx_runtime40 = require("react/jsx-runtime");
4052
3945
  function AntDModal({ children, isOpen, width, onCancel }) {
4053
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_antd24.Modal, { open: isOpen, onCancel, width, centered: true, footer: null, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { children }) }) });
3946
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(import_antd22.Modal, { open: isOpen, onCancel, width, centered: true, footer: null, children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)("div", { children }) }) });
4054
3947
  }
4055
3948
 
4056
3949
  // src/Indicator/Indicator/Indicator.tsx
4057
3950
  var import_icons_react12 = require("@tabler/icons-react");
4058
3951
  var import_react17 = require("react");
4059
- var import_antd25 = require("antd");
4060
- var import_jsx_runtime43 = require("react/jsx-runtime");
3952
+ var import_antd23 = require("antd");
3953
+ var import_jsx_runtime41 = require("react/jsx-runtime");
4061
3954
  function Indicator({
4062
3955
  option = [
4063
3956
  { value: "TEXT", label: "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21" },
@@ -4183,14 +4076,14 @@ function Indicator({
4183
4076
  [name]: value
4184
4077
  }));
4185
4078
  };
4186
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "w-full", children: [
4187
- /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4079
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "w-full", children: [
4080
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4188
4081
  "div",
4189
4082
  {
4190
4083
  className: `space-x-2 grid ${valueSwitch === "TEXT" ? `grid-cols-[140px_1fr_50px]` : `grid-cols-[140px_1fr_200px_200px_50px]`} items-start`,
4191
4084
  children: [
4192
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(SwitchSelect, { option, onClick: handleClick, value: valueSwitch, label: "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17", required: true }),
4193
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4085
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SwitchSelect, { option, onClick: handleClick, value: valueSwitch, label: "\u0E1B\u0E23\u0E30\u0E40\u0E20\u0E17", required: true }),
4086
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4194
4087
  InputField,
4195
4088
  {
4196
4089
  label: type === "TARGET" ? "\u0E0A\u0E37\u0E48\u0E2D\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" : `\u0E0A\u0E37\u0E48\u0E2D\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14${type === "OUTPUT" ? "\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" : "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C"}`,
@@ -4205,8 +4098,8 @@ function Indicator({
4205
4098
  error: addError.textValue
4206
4099
  }
4207
4100
  ),
4208
- valueSwitch === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4209
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4101
+ valueSwitch === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4102
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4210
4103
  InputFieldNumber,
4211
4104
  {
4212
4105
  label: type === "TARGET" ? "\u0E04\u0E48\u0E32\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" : `\u0E04\u0E48\u0E32\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22${type === "OUTPUT" ? "\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" : "\u0E1C\u0E25\u0E25\u0E31\u0E1E\u0E18\u0E4C"}`,
@@ -4222,7 +4115,7 @@ function Indicator({
4222
4115
  error: addError.numberValue
4223
4116
  }
4224
4117
  ),
4225
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4118
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4226
4119
  InputField,
4227
4120
  {
4228
4121
  label: `\u0E2B\u0E19\u0E48\u0E27\u0E22`,
@@ -4238,19 +4131,19 @@ function Indicator({
4238
4131
  }
4239
4132
  )
4240
4133
  ] }),
4241
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons_react12.IconCirclePlus, { onClick: handleAddIndicator, className: "mt-8 cursor-pointer", size: 32 })
4134
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react12.IconCirclePlus, { onClick: handleAddIndicator, className: "mt-8 cursor-pointer", size: 32 })
4242
4135
  ]
4243
4136
  }
4244
4137
  ),
4245
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_jsx_runtime43.Fragment, { children: arrayData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4138
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_jsx_runtime41.Fragment, { children: arrayData.map((item, index) => /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
4246
4139
  "div",
4247
4140
  {
4248
4141
  className: `space-y-2 grid ${item.inputType === "TEXT" ? `grid-cols-[140px_1fr_50px_50px]` : `grid-cols-[140px_1fr_200px_150px_50px_50px]`} items-start`,
4249
4142
  children: [
4250
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2", children: item.inputType === "TEXT" ? "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21" : "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02" }),
4251
- index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4252
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4253
- import_antd25.Input,
4143
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2", children: item.inputType === "TEXT" ? "\u0E02\u0E49\u0E2D\u0E04\u0E27\u0E32\u0E21" : "\u0E15\u0E31\u0E27\u0E40\u0E25\u0E02" }),
4144
+ index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4145
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4146
+ import_antd23.Input,
4254
4147
  {
4255
4148
  className: "body-1 mt-2",
4256
4149
  variant: "underlined",
@@ -4262,12 +4155,12 @@ function Indicator({
4262
4155
  }
4263
4156
  }
4264
4157
  ),
4265
- editError.textValue && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-red-500 caption-1", children: editError.textValue })
4266
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2", children: item.textValue }),
4267
- item.inputType === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4268
- index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4269
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4270
- import_antd25.Input,
4158
+ editError.textValue && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-red-500 caption-1", children: editError.textValue })
4159
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2", children: item.textValue }),
4160
+ item.inputType === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(import_jsx_runtime41.Fragment, { children: [
4161
+ index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4162
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4163
+ import_antd23.Input,
4271
4164
  {
4272
4165
  type: "number",
4273
4166
  className: "body-1 mt-2",
@@ -4280,11 +4173,11 @@ function Indicator({
4280
4173
  }
4281
4174
  }
4282
4175
  ),
4283
- editError.numberValue && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-red-500 caption-1", children: editError.numberValue })
4284
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2", children: item.numberValue }),
4285
- index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4286
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4287
- import_antd25.Input,
4176
+ editError.numberValue && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-red-500 caption-1", children: editError.numberValue })
4177
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2", children: item.numberValue }),
4178
+ index === editIndex ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex flex-col gap-[8px]", children: [
4179
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4180
+ import_antd23.Input,
4288
4181
  {
4289
4182
  className: "body-1 mt-2",
4290
4183
  variant: "underlined",
@@ -4296,20 +4189,20 @@ function Indicator({
4296
4189
  }
4297
4190
  }
4298
4191
  ),
4299
- editError.unit && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("p", { className: "text-red-500 caption-1", children: editError.unit })
4300
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2", children: item.unit })
4192
+ editError.unit && /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("p", { className: "text-red-500 caption-1", children: editError.unit })
4193
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2", children: item.unit })
4301
4194
  ] }),
4302
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2 flex", children: editIndex !== null ? editIndex === index ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex", children: [
4303
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4195
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2 flex", children: editIndex !== null ? editIndex === index ? /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)("div", { className: "flex", children: [
4196
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4304
4197
  import_icons_react12.IconCheck,
4305
4198
  {
4306
4199
  className: "cursor-pointer text-green-600",
4307
4200
  onClick: () => handleConfirmEditIndicator(index)
4308
4201
  }
4309
4202
  ),
4310
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons_react12.IconX, { className: "cursor-pointer text-red-600", onClick: handleCancelEditIndicator })
4203
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons_react12.IconX, { className: "cursor-pointer text-red-600", onClick: handleCancelEditIndicator })
4311
4204
  ] }) : void 0 : false }),
4312
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "body-1 mt-2 cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4205
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)("div", { className: "body-1 mt-2 cursor-pointer", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
4313
4206
  import_icons_react12.IconTrash,
4314
4207
  {
4315
4208
  onClick: () => {
@@ -4332,7 +4225,7 @@ function Indicator({
4332
4225
  // src/FilterPopUp/FilterPopUp.tsx
4333
4226
  var import_icons_react13 = require("@tabler/icons-react");
4334
4227
  var import_react18 = require("react");
4335
- var import_jsx_runtime44 = require("react/jsx-runtime");
4228
+ var import_jsx_runtime42 = require("react/jsx-runtime");
4336
4229
  var FilterPopUp = (filter) => {
4337
4230
  const [isAction, setIsAction] = (0, import_react18.useState)(true);
4338
4231
  const [filterArray, setFilterArray] = (0, import_react18.useState)([""]);
@@ -4342,20 +4235,20 @@ var FilterPopUp = (filter) => {
4342
4235
  const handleSubmitFilter = () => {
4343
4236
  filter.handleSearch(filterArray);
4344
4237
  };
4345
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "relative", children: [
4346
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("button", { className: "flex px-2 py-1 rounded-lg border-1", onClick: () => setIsAction(!isAction), children: [
4347
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons_react13.IconFilter, {}),
4238
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "relative", children: [
4239
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("button", { className: "flex px-2 py-1 rounded-lg border-1", onClick: () => setIsAction(!isAction), children: [
4240
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons_react13.IconFilter, {}),
4348
4241
  "filter"
4349
4242
  ] }),
4350
- isAction ? /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "absolute bg-white p-5 rounded-lg shadow-2xl w-[600px]", children: [
4351
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex justify-end", children: [
4352
- /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex justify-end text-nowrap gap-2", children: [
4353
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GhostButton, { title: "\u0E43\u0E0A\u0E49\u0E1F\u0E34\u0E25\u0E40\u0E15\u0E2D\u0E23\u0E4C", onClick: handleSubmitFilter, iconLeft: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons_react13.IconCheck, {}) }),
4354
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(GhostButton, { title: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14", onClick: handleClearFilter, iconLeft: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_icons_react13.IconTrash, {}) })
4243
+ isAction ? /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "absolute bg-white p-5 rounded-lg shadow-2xl w-[600px]", children: [
4244
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex justify-end", children: [
4245
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)("div", { className: "flex justify-end text-nowrap gap-2", children: [
4246
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GhostButton, { title: "\u0E43\u0E0A\u0E49\u0E1F\u0E34\u0E25\u0E40\u0E15\u0E2D\u0E23\u0E4C", onClick: handleSubmitFilter, iconLeft: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons_react13.IconCheck, {}) }),
4247
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(GhostButton, { title: "\u0E25\u0E49\u0E32\u0E07\u0E17\u0E31\u0E49\u0E07\u0E2B\u0E21\u0E14", onClick: handleClearFilter, iconLeft: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(import_icons_react13.IconTrash, {}) })
4355
4248
  ] }),
4356
4249
  ""
4357
4250
  ] }),
4358
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4251
+ /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
4359
4252
  SelectCustom,
4360
4253
  {
4361
4254
  options: filter.selectionFilter,
@@ -4370,8 +4263,8 @@ var FilterPopUp = (filter) => {
4370
4263
  // src/ProfileSelect/ProfileSelect/ProfileSelect.tsx
4371
4264
  var import_react19 = require("react");
4372
4265
  var import_icons_react14 = require("@tabler/icons-react");
4373
- var import_antd26 = require("antd");
4374
- var import_jsx_runtime45 = require("react/jsx-runtime");
4266
+ var import_antd24 = require("antd");
4267
+ var import_jsx_runtime43 = require("react/jsx-runtime");
4375
4268
  function ProfileSelect({
4376
4269
  allUser,
4377
4270
  assignUser,
@@ -4431,22 +4324,22 @@ function ProfileSelect({
4431
4324
  const isSearching = normalizedSearch.length > 0;
4432
4325
  const noResult = filteredAssigned.length === 0 && filteredUnassigned.length === 0;
4433
4326
  const noUserOption = allUser.length === 0 && !isSearching;
4434
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { ref: containerRef, className: "relative body-1", children: [
4435
- mode === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4327
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { ref: containerRef, className: "relative body-1", children: [
4328
+ mode === "icon" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4436
4329
  import_icons_react14.IconUsers,
4437
4330
  {
4438
4331
  size: 40,
4439
4332
  className: "p-2 border rounded cursor-pointer bg-white",
4440
4333
  onClick: () => setIsShowSelect(!isShowSelect)
4441
4334
  }
4442
- ) }) : mode === "showAssign" ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4335
+ ) }) : mode === "showAssign" ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4443
4336
  "div",
4444
4337
  {
4445
4338
  className: `w-full h-[40px] flex items-center p-2 cursor-pointer ${className}`,
4446
4339
  onClick: () => setIsShowSelect(!isShowSelect),
4447
- children: visibleUsers.length === 0 ? placeholder ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "body-1 text-gray-400 select-none", children: placeholder }) : null : /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4448
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex -space-x-2", children: visibleUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("label", { className: "relative group cursor-pointer", children: [
4449
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4340
+ children: visibleUsers.length === 0 ? placeholder ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "body-1 text-gray-400 select-none", children: placeholder }) : null : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4341
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex -space-x-2", children: visibleUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex items-center", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("label", { className: "relative group cursor-pointer", children: [
4342
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4450
4343
  "img",
4451
4344
  {
4452
4345
  src: user.profile,
@@ -4459,7 +4352,7 @@ function ProfileSelect({
4459
4352
  className: "border border-white group-hover:border-3 group-hover:border-red-500 transition"
4460
4353
  }
4461
4354
  ),
4462
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4355
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4463
4356
  "span",
4464
4357
  {
4465
4358
  className: "absolute top-0 right-0 -translate-y-2 translate-x-2 \r\n rounded-full bg-white opacity-0 group-hover:opacity-100 \r\n border-3 z-10 border-red-500 flex items-center justify-center transition",
@@ -4467,11 +4360,11 @@ function ProfileSelect({
4467
4360
  e.stopPropagation();
4468
4361
  onUpdateAssignUser(user, "remove");
4469
4362
  },
4470
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons_react14.IconX, { className: "w-4 h-4 text-red-500" })
4363
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons_react14.IconX, { className: "w-4 h-4 text-red-500" })
4471
4364
  }
4472
4365
  )
4473
4366
  ] }) }, user.id)) }),
4474
- showPlus && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4367
+ showPlus && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4475
4368
  "div",
4476
4369
  {
4477
4370
  className: "border border-white flex items-center justify-center bg-gray-300 text-black text-sm ml-2",
@@ -4488,8 +4381,8 @@ function ProfileSelect({
4488
4381
  )
4489
4382
  ] })
4490
4383
  }
4491
- ) : /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: `w-full h-[40px] flex -space-x-2 p-2 ${className}`, children: [
4492
- visibleUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center ", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("label", { className: "relative group ", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4384
+ ) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: `w-full h-[40px] flex -space-x-2 p-2 ${className}`, children: [
4385
+ visibleUsers.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex items-center ", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("label", { className: "relative group ", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4493
4386
  "img",
4494
4387
  {
4495
4388
  src: user.profile,
@@ -4502,7 +4395,7 @@ function ProfileSelect({
4502
4395
  className: "border border-white transition"
4503
4396
  }
4504
4397
  ) }) }, user.id)),
4505
- showPlus && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4398
+ showPlus && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4506
4399
  "div",
4507
4400
  {
4508
4401
  className: "border border-white flex items-center justify-center bg-gray-300 text-black text-sm",
@@ -4518,16 +4411,16 @@ function ProfileSelect({
4518
4411
  }
4519
4412
  )
4520
4413
  ] }),
4521
- isShowSelect ? /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4414
+ isShowSelect ? /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4522
4415
  "div",
4523
4416
  {
4524
4417
  className: "absolute top-12 min-w-[261px] max-w-[400px] w-full h-[314px] p-2 text-xs border-1 rounded-sm z-20 bg-white",
4525
4418
  ref: selectRef,
4526
4419
  children: [
4527
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "flex border-1 rounded-md p-2 gap-2 items-center", children: [
4528
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons_react14.IconSearch, {}),
4529
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4530
- import_antd26.Input,
4420
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "flex border-1 rounded-md p-2 gap-2 items-center", children: [
4421
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons_react14.IconSearch, {}),
4422
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4423
+ import_antd24.Input,
4531
4424
  {
4532
4425
  variant: "borderless",
4533
4426
  placeholder: "\u0E04\u0E49\u0E19\u0E2B\u0E32\u0E0A\u0E37\u0E48\u0E2D",
@@ -4537,16 +4430,16 @@ function ProfileSelect({
4537
4430
  }
4538
4431
  )
4539
4432
  ] }),
4540
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "overflow-y-auto h-[250px] pt-2 px-4 body-3", children: noUserOption ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center h-full text-gray-400 select-none", children: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E04\u0E19\u0E43\u0E2B\u0E49\u0E40\u0E25\u0E37\u0E2D\u0E01" }) : isSearching && noResult ? /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "flex items-center justify-center h-full text-gray-400 select-none", children: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E1C\u0E39\u0E49\u0E04\u0E19\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32" }) : /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4541
- filteredAssigned.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4542
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mb-1", children: "\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01" }),
4543
- filteredAssigned.map((user) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4433
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "overflow-y-auto h-[250px] pt-2 px-4 body-3", children: noUserOption ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex items-center justify-center h-full text-gray-400 select-none", children: "\u0E22\u0E31\u0E07\u0E44\u0E21\u0E48\u0E21\u0E35\u0E1C\u0E39\u0E49\u0E04\u0E19\u0E43\u0E2B\u0E49\u0E40\u0E25\u0E37\u0E2D\u0E01" }) : isSearching && noResult ? /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "flex items-center justify-center h-full text-gray-400 select-none", children: "\u0E44\u0E21\u0E48\u0E1E\u0E1A\u0E1C\u0E39\u0E49\u0E04\u0E19\u0E17\u0E35\u0E48\u0E15\u0E23\u0E07\u0E01\u0E31\u0E1A\u0E01\u0E32\u0E23\u0E04\u0E49\u0E19\u0E2B\u0E32" }) : /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4434
+ filteredAssigned.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4435
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mb-1", children: "\u0E2A\u0E21\u0E32\u0E0A\u0E34\u0E01\u0E17\u0E35\u0E48\u0E40\u0E25\u0E37\u0E2D\u0E01" }),
4436
+ filteredAssigned.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4544
4437
  "button",
4545
4438
  {
4546
4439
  className: "flex items-center group my-1 w-full p-1 rounded hover:bg-gray-100",
4547
4440
  children: [
4548
- /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("div", { className: "relative cursor-pointer", children: [
4549
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4441
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)("div", { className: "relative cursor-pointer", children: [
4442
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4550
4443
  "img",
4551
4444
  {
4552
4445
  src: user.profile,
@@ -4559,30 +4452,30 @@ function ProfileSelect({
4559
4452
  className: "border-3 border-red-500"
4560
4453
  }
4561
4454
  ),
4562
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4455
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4563
4456
  "span",
4564
4457
  {
4565
4458
  className: "absolute top-0 right-0 -translate-y-2 translate-x-2 \r\n rounded-full bg-white opacity-0 group-hover:opacity-100 \r\n border-3 border-red-500 flex items-center justify-center transition",
4566
4459
  onClick: () => onUpdateAssignUser(user, "remove"),
4567
- children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(import_icons_react14.IconX, { className: "text-red-500", size: 15 })
4460
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_icons_react14.IconX, { className: "text-red-500", size: 15 })
4568
4461
  }
4569
4462
  )
4570
4463
  ] }),
4571
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "ml-2", children: user.name })
4464
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "ml-2", children: user.name })
4572
4465
  ]
4573
4466
  },
4574
4467
  user.id
4575
4468
  ))
4576
4469
  ] }),
4577
- filteredUnassigned.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(import_jsx_runtime45.Fragment, { children: [
4578
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { className: "mt-2", children: "\u0E1C\u0E39\u0E49\u0E04\u0E19" }),
4579
- filteredUnassigned.map((user) => /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)(
4470
+ filteredUnassigned.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
4471
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: "mt-2", children: "\u0E1C\u0E39\u0E49\u0E04\u0E19" }),
4472
+ filteredUnassigned.map((user) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
4580
4473
  "button",
4581
4474
  {
4582
4475
  className: "flex items-center my-1 hover:bg-gray-100 w-full p-1 rounded",
4583
4476
  onClick: () => onUpdateAssignUser(user),
4584
4477
  children: [
4585
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4478
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
4586
4479
  "img",
4587
4480
  {
4588
4481
  src: user.profile,
@@ -4595,7 +4488,7 @@ function ProfileSelect({
4595
4488
  className: "border"
4596
4489
  }
4597
4490
  ),
4598
- /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { className: "ml-2", children: user.name })
4491
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("span", { className: "ml-2", children: user.name })
4599
4492
  ]
4600
4493
  },
4601
4494
  user.id
@@ -4611,7 +4504,7 @@ function ProfileSelect({
4611
4504
  // src/Button/QRCode/QRCode.tsx
4612
4505
  var import_react20 = require("react");
4613
4506
  var import_qrcode = __toESM(require("qrcode"));
4614
- var import_jsx_runtime46 = require("react/jsx-runtime");
4507
+ var import_jsx_runtime44 = require("react/jsx-runtime");
4615
4508
  var QRCodeGenerator = ({
4616
4509
  url,
4617
4510
  previewSize = 200,
@@ -4711,20 +4604,20 @@ var QRCodeGenerator = ({
4711
4604
  a.click();
4712
4605
  a.remove();
4713
4606
  };
4714
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4607
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4715
4608
  "div",
4716
4609
  {
4717
4610
  style: { display: "inline-flex", flexDirection: "column", gap: 8 },
4718
4611
  className: "justify-center items-center",
4719
4612
  children: [
4720
- url === "" ? /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4613
+ url === "" ? /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4721
4614
  "div",
4722
4615
  {
4723
4616
  className: "border-1 p-2 mb-2",
4724
4617
  style: { width: `${previewSize}px`, height: `${previewSize}px` }
4725
4618
  }
4726
- ) : /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("canvas", { ref: canvasRef, className: "border-1 p-2 mb-2" }),
4727
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
4619
+ ) : /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("canvas", { ref: canvasRef, className: "border-1 p-2 mb-2" }),
4620
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4728
4621
  "div",
4729
4622
  {
4730
4623
  style: {
@@ -4735,8 +4628,8 @@ var QRCodeGenerator = ({
4735
4628
  },
4736
4629
  className: "flex-col",
4737
4630
  children: [
4738
- /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)("div", { className: "flex gap-2 mx-2", children: [
4739
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "border-1 p-2 rounded-md flex flex-col w-1/2 text-sm text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4631
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)("div", { className: "flex gap-2 mx-2", children: [
4632
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("label", { className: "border-1 p-2 rounded-md flex flex-col w-1/2 text-sm text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4740
4633
  SelectField,
4741
4634
  {
4742
4635
  label: "\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A",
@@ -4745,7 +4638,7 @@ var QRCodeGenerator = ({
4745
4638
  options: typeOption
4746
4639
  }
4747
4640
  ) }),
4748
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("label", { className: "border-1 p-2 rounded-md flex flex-col w-1/2 text-sm text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4641
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("label", { className: "border-1 p-2 rounded-md flex flex-col w-1/2 text-sm text-gray-400", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4749
4642
  SelectField,
4750
4643
  {
4751
4644
  label: "\u0E02\u0E19\u0E32\u0E14 (px)",
@@ -4755,7 +4648,7 @@ var QRCodeGenerator = ({
4755
4648
  }
4756
4649
  ) })
4757
4650
  ] }),
4758
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
4651
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4759
4652
  PrimaryButton,
4760
4653
  {
4761
4654
  onClick: download,
@@ -4773,11 +4666,11 @@ var QRCodeGenerator = ({
4773
4666
  };
4774
4667
 
4775
4668
  // src/TabPropject/TabProject/TabProject.tsx
4776
- var import_antd27 = require("antd");
4777
- var import_jsx_runtime47 = require("react/jsx-runtime");
4669
+ var import_antd25 = require("antd");
4670
+ var import_jsx_runtime45 = require("react/jsx-runtime");
4778
4671
  function TabProject({ tabOption, now, onChange }) {
4779
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4780
- import_antd27.ConfigProvider,
4672
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4673
+ import_antd25.ConfigProvider,
4781
4674
  {
4782
4675
  theme: {
4783
4676
  token: {
@@ -4793,16 +4686,16 @@ function TabProject({ tabOption, now, onChange }) {
4793
4686
  }
4794
4687
  }
4795
4688
  },
4796
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4797
- import_antd27.Tabs,
4689
+ children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4690
+ import_antd25.Tabs,
4798
4691
  {
4799
4692
  activeKey: now,
4800
4693
  onChange,
4801
4694
  items: tabOption.map((item) => ({
4802
4695
  key: item.key,
4803
- label: /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("span", { className: "tab-label flex gap-2 items-center body-1", children: [
4696
+ label: /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)("span", { className: "tab-label flex gap-2 items-center body-1", children: [
4804
4697
  item.icon,
4805
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("span", { children: item.label })
4698
+ /* @__PURE__ */ (0, import_jsx_runtime45.jsx)("span", { children: item.label })
4806
4699
  ] })
4807
4700
  }))
4808
4701
  }
@@ -4814,7 +4707,7 @@ function TabProject({ tabOption, now, onChange }) {
4814
4707
  // src/Chart/BarChart/BarChart.tsx
4815
4708
  var import_react21 = require("react");
4816
4709
  var d3 = __toESM(require("d3"));
4817
- var import_jsx_runtime48 = require("react/jsx-runtime");
4710
+ var import_jsx_runtime46 = require("react/jsx-runtime");
4818
4711
  var defaultMargin = { top: 30, right: 200, bottom: 36, left: 50 };
4819
4712
  var defaultColorPalette = [
4820
4713
  "#4E79A7",
@@ -4996,7 +4889,7 @@ var BarChart = ({
4996
4889
  (0, import_react21.useEffect)(() => {
4997
4890
  render();
4998
4891
  }, [data, height, margin, modeLabel, xDomain.toString(), yDomain.toString()]);
4999
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { ref: containerRef, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
4892
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("div", { ref: containerRef, style: { width: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(
5000
4893
  "svg",
5001
4894
  {
5002
4895
  ref: svgRef,
@@ -5004,10 +4897,10 @@ var BarChart = ({
5004
4897
  "aria-label": "Bar chart",
5005
4898
  style: { display: "block", width: "100%", height },
5006
4899
  children: [
5007
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("title", { children: "Bar chart" }),
5008
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("g", { ref: gRef, transform: `translate(${margin.left},${margin.top})` }),
5009
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("g", { ref: xAxisRef }),
5010
- /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("g", { ref: yAxisRef })
4900
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("title", { children: "Bar chart" }),
4901
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { ref: gRef, transform: `translate(${margin.left},${margin.top})` }),
4902
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { ref: xAxisRef }),
4903
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)("g", { ref: yAxisRef })
5011
4904
  ]
5012
4905
  }
5013
4906
  ) });
@@ -5016,7 +4909,7 @@ var BarChart = ({
5016
4909
  // src/Chart/PieChart/PieChart.tsx
5017
4910
  var import_react22 = __toESM(require("react"));
5018
4911
  var d32 = __toESM(require("d3"));
5019
- var import_jsx_runtime49 = require("react/jsx-runtime");
4912
+ var import_jsx_runtime47 = require("react/jsx-runtime");
5020
4913
  var defaultColors = d32.schemeCategory10;
5021
4914
  var PieChart = ({
5022
4915
  title,
@@ -5050,15 +4943,15 @@ var PieChart = ({
5050
4943
  return `${percentage}%`;
5051
4944
  });
5052
4945
  }, [data, width, height]);
5053
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
5054
- title && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "body-2", children: title }),
5055
- description && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("p", { className: "caption-1", children: description }),
5056
- /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "flex", children: [
5057
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("svg", { ref: svgRef }),
5058
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex flex-col gap-2 body-3 pl-[200px]", children: dataSide.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center body-2", children: [
5059
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "w-[20px] h-[20px]", style: { backgroundColor: d.color } }),
5060
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: d.label }),
5061
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { children: d.value })
4946
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { children: [
4947
+ title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "body-2", children: title }),
4948
+ description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("p", { className: "caption-1", children: description }),
4949
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "flex", children: [
4950
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("svg", { ref: svgRef }),
4951
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "flex flex-col gap-2 body-3 pl-[200px]", children: dataSide.map((d, i) => /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "grid grid-cols-3 gap-2 items-center body-2", children: [
4952
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { className: "w-[20px] h-[20px]", style: { backgroundColor: d.color } }),
4953
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children: d.label }),
4954
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)("div", { children: d.value })
5062
4955
  ] }, i)) })
5063
4956
  ] })
5064
4957
  ] });
@@ -5070,7 +4963,7 @@ var d33 = __toESM(require("d3"));
5070
4963
  var import_date_fns3 = require("date-fns");
5071
4964
  var import_locale3 = require("date-fns/locale");
5072
4965
  var import_icons_react15 = require("@tabler/icons-react");
5073
- var import_jsx_runtime50 = require("react/jsx-runtime");
4966
+ var import_jsx_runtime48 = require("react/jsx-runtime");
5074
4967
  var LAYOUT = {
5075
4968
  barHeight: 40,
5076
4969
  barSpacing: 10,
@@ -5090,27 +4983,27 @@ var STATUS_META = {
5090
4983
  IN_PROGRESS: {
5091
4984
  color: "#FFC654",
5092
4985
  label: "\u0E01\u0E33\u0E25\u0E31\u0E07\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23",
5093
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons_react15.IconHourglassEmpty, { className: "text-[#FFC654]" })
4986
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconHourglassEmpty, { className: "text-[#FFC654]" })
5094
4987
  },
5095
4988
  CANCELLED: {
5096
4989
  color: "#D2D5DB",
5097
4990
  label: "\u0E22\u0E01\u0E40\u0E25\u0E34\u0E01",
5098
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons_react15.IconCircleX, { className: "text-[#D2D5DB]" })
4991
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconCircleX, { className: "text-[#D2D5DB]" })
5099
4992
  },
5100
4993
  SUCCESS: {
5101
4994
  color: "#81CF92",
5102
4995
  label: "\u0E14\u0E33\u0E40\u0E19\u0E34\u0E19\u0E01\u0E32\u0E23\u0E41\u0E25\u0E49\u0E27\u0E40\u0E2A\u0E23\u0E47\u0E08",
5103
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
4996
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
5104
4997
  },
5105
4998
  COMPLETED: {
5106
4999
  color: "#81CF92",
5107
5000
  label: "\u0E40\u0E2A\u0E23\u0E47\u0E08\u0E2A\u0E34\u0E49\u0E19",
5108
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
5001
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconRosetteDiscountCheck, { className: "text-[#81CF92]" })
5109
5002
  },
5110
5003
  DELAY: {
5111
5004
  color: "#F4827E",
5112
5005
  label: "\u0E25\u0E48\u0E32\u0E0A\u0E49\u0E32",
5113
- icon: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_icons_react15.IconClockExclamation, { className: "text-[#F4827E]" })
5006
+ icon: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_icons_react15.IconClockExclamation, { className: "text-[#F4827E]" })
5114
5007
  }
5115
5008
  };
5116
5009
  var roundedRectPath = (x, y, width, height, radius) => `M${x + radius},${y} H${x + width} V${y + height} H${x + radius} A${radius},${radius},0,0,1,${x},${y + height - radius} V${y + radius} A${radius},${radius},0,0,1,${x + radius},${y}`;
@@ -5153,7 +5046,7 @@ var ProjectRow = ({ element, barHeight, barSpacing, mode }) => {
5153
5046
  const statusLabel = getStatusLabel(safeStatus);
5154
5047
  const statusIcon = STATUS_META[safeStatus]?.icon;
5155
5048
  const toBuddhistDate = (d) => new Date(d.getFullYear() + 543, d.getMonth(), d.getDate());
5156
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5049
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5157
5050
  "div",
5158
5051
  {
5159
5052
  style: {
@@ -5164,8 +5057,8 @@ var ProjectRow = ({ element, barHeight, barSpacing, mode }) => {
5164
5057
  },
5165
5058
  className: "body-1 grid grid-cols-[1fr_100px_130px] px-8 gap-2",
5166
5059
  children: [
5167
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { className: `grid ${mode === "project" ? "grid-cols-[10px_1fr]" : "grid-cols-[1fr]"} items-center gap-2`, children: [
5168
- mode === "project" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5060
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: `grid ${mode === "project" ? "grid-cols-[10px_1fr]" : "grid-cols-[1fr]"} items-center gap-2`, children: [
5061
+ mode === "project" && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5169
5062
  "div",
5170
5063
  {
5171
5064
  style: {
@@ -5174,12 +5067,12 @@ var ProjectRow = ({ element, barHeight, barSpacing, mode }) => {
5174
5067
  className: "w-[10px] h-[10px] rounded-full"
5175
5068
  }
5176
5069
  ),
5177
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "line-clamp-1 break-words text-[#333]", title: element.label, children: element.label })
5070
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "line-clamp-1 break-words text-[#333]", title: element.label, children: element.label })
5178
5071
  ] }),
5179
- mode === "project" ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: safeEndDate ? (0, import_date_fns3.format)(toBuddhistDate(safeEndDate), "dd MMM yyyy", { locale: import_locale3.th }) : "-" }) : /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: `Q${(0, import_date_fns3.getQuarter)(
5072
+ mode === "project" ? /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: safeEndDate ? (0, import_date_fns3.format)(toBuddhistDate(safeEndDate), "dd MMM yyyy", { locale: import_locale3.th }) : "-" }) : /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: `Q${(0, import_date_fns3.getQuarter)(
5180
5073
  safeEndDate ?? /* @__PURE__ */ new Date()
5181
5074
  )}/${(safeEndDate?.getFullYear() ?? 0) + 543}` }),
5182
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("button", { className: "rounded-md subtitile-1 flex gap-2 align-start", children: [
5075
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("button", { className: "rounded-md subtitile-1 flex gap-2 align-start", children: [
5183
5076
  statusIcon,
5184
5077
  statusLabel
5185
5078
  ] })
@@ -5188,7 +5081,7 @@ var ProjectRow = ({ element, barHeight, barSpacing, mode }) => {
5188
5081
  element.id
5189
5082
  );
5190
5083
  };
5191
- var RowOverlay = ({ data, barHeight, barSpacing, totalHeaderHeight }) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5084
+ var RowOverlay = ({ data, barHeight, barSpacing, totalHeaderHeight }) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5192
5085
  "div",
5193
5086
  {
5194
5087
  style: {
@@ -5202,7 +5095,7 @@ var RowOverlay = ({ data, barHeight, barSpacing, totalHeaderHeight }) => /* @__P
5202
5095
  children: data.map((_, i) => {
5203
5096
  if (i === 0) return null;
5204
5097
  const yPos = i * (barHeight + barSpacing) - barSpacing / 2;
5205
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5098
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5206
5099
  "div",
5207
5100
  {
5208
5101
  className: "",
@@ -5401,7 +5294,7 @@ var GanttChart = ({
5401
5294
  headersGroupLayer1Height,
5402
5295
  headersGroupLayer2Height
5403
5296
  ]);
5404
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5297
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5405
5298
  "div",
5406
5299
  {
5407
5300
  className: "body-1",
@@ -5415,7 +5308,7 @@ var GanttChart = ({
5415
5308
  backgroundColor: "#fff",
5416
5309
  overflow: "hidden"
5417
5310
  },
5418
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5311
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5419
5312
  "div",
5420
5313
  {
5421
5314
  style: {
@@ -5426,7 +5319,7 @@ var GanttChart = ({
5426
5319
  position: "relative"
5427
5320
  },
5428
5321
  children: [
5429
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "z-2", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5322
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "z-2", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5430
5323
  RowOverlay,
5431
5324
  {
5432
5325
  data: data.length > 10 ? data : ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10"],
@@ -5435,7 +5328,7 @@ var GanttChart = ({
5435
5328
  totalHeaderHeight
5436
5329
  }
5437
5330
  ) }),
5438
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5331
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5439
5332
  "div",
5440
5333
  {
5441
5334
  ref: leftPanelRef,
@@ -5449,8 +5342,8 @@ var GanttChart = ({
5449
5342
  zIndex: 2
5450
5343
  },
5451
5344
  children: [
5452
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ref: dataContainerRef, children: [
5453
- /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(
5345
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { ref: dataContainerRef, children: [
5346
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(
5454
5347
  "div",
5455
5348
  {
5456
5349
  className: "grid body-2 grid-cols-[1fr_100px_130px] gap-2 px-8 border-b bg-white",
@@ -5463,13 +5356,13 @@ var GanttChart = ({
5463
5356
  zIndex: 5
5464
5357
  },
5465
5358
  children: [
5466
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: "\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23" }),
5467
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E2A\u0E48\u0E07" }),
5468
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { children: "\u0E2A\u0E16\u0E32\u0E19\u0E30" })
5359
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: "\u0E42\u0E04\u0E23\u0E07\u0E01\u0E32\u0E23" }),
5360
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: "\u0E01\u0E33\u0E2B\u0E19\u0E14\u0E2A\u0E48\u0E07" }),
5361
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { children: "\u0E2A\u0E16\u0E32\u0E19\u0E30" })
5469
5362
  ]
5470
5363
  }
5471
5364
  ),
5472
- data.map((element) => /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5365
+ data.map((element) => /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5473
5366
  ProjectRow,
5474
5367
  {
5475
5368
  mode,
@@ -5480,7 +5373,7 @@ var GanttChart = ({
5480
5373
  element.id
5481
5374
  ))
5482
5375
  ] }),
5483
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("div", { className: "z-3", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5376
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("div", { className: "z-3", children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5484
5377
  RowOverlay,
5485
5378
  {
5486
5379
  data,
@@ -5492,7 +5385,7 @@ var GanttChart = ({
5492
5385
  ]
5493
5386
  }
5494
5387
  ),
5495
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5388
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5496
5389
  "div",
5497
5390
  {
5498
5391
  style: {
@@ -5501,7 +5394,7 @@ var GanttChart = ({
5501
5394
  position: "relative",
5502
5395
  overflow: "visible"
5503
5396
  },
5504
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
5397
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
5505
5398
  "div",
5506
5399
  {
5507
5400
  style: {
@@ -5510,7 +5403,7 @@ var GanttChart = ({
5510
5403
  width: "max-content",
5511
5404
  zIndex: 1
5512
5405
  },
5513
- children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)("svg", { ref: svgRef })
5406
+ children: /* @__PURE__ */ (0, import_jsx_runtime48.jsx)("svg", { ref: svgRef })
5514
5407
  }
5515
5408
  )
5516
5409
  }
@@ -5525,16 +5418,16 @@ var GanttChart = ({
5525
5418
  // src/CardKPI/CardKPI/CardKPI.tsx
5526
5419
  var import_icons_react16 = require("@tabler/icons-react");
5527
5420
  var import_react24 = require("react");
5528
- var import_jsx_runtime51 = require("react/jsx-runtime");
5421
+ var import_jsx_runtime49 = require("react/jsx-runtime");
5529
5422
  function KPIRow({ item }) {
5530
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5423
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5531
5424
  "div",
5532
5425
  {
5533
- className: `w-full grid body-3 py-2 items-center pl-2 ${item.inputType === "NUMBER" ? "grid-cols-[1fr_100px_50px]" : "grid-cols-[1fr_50px]"}`,
5426
+ className: `w-full grid body-3 gap-2 py-2 items-center pl-2 ${item.inputType === "NUMBER" ? "grid-cols-[1fr_100px_50px]" : "grid-cols-[1fr_50px]"}`,
5534
5427
  children: [
5535
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "line-clamp-2", children: item.textValue }),
5536
- item.inputType === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "flex", children: `${item.currentValue}/${item.numberValue} ${item.unit}` }),
5537
- item.inputType === "NUMBER" ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ProgressBar, { percent: Math.floor(item.currentValue * 100 / (item.numberValue ?? 1)), type: "circle", checkpoints: [0] }) }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_jsx_runtime51.Fragment, { children: item.currentValue !== 0 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons_react16.IconRosetteDiscountCheck, { className: "text-green-500 flex justify-center w-full", size: 30 }) : /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_icons_react16.IconHourglassEmpty, { className: "text-yellow-500 flex justify-center w-full", size: 30 }) })
5428
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "line-clamp-2 w-full", children: item.textValue }),
5429
+ item.inputType === "NUMBER" && /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "line-clamp-2", children: `${item.currentValue}/${item.numberValue} ${item.unit}` }),
5430
+ item.inputType === "NUMBER" ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ProgressBar, { percent: Math.floor(item.currentValue * 100 / (item.numberValue ?? 1)), type: "circle", checkpoints: [0] }) }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_jsx_runtime49.Fragment, { children: item.currentValue !== 0 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons_react16.IconRosetteDiscountCheck, { className: "text-green-500 flex justify-center w-full", size: 30 }) : /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_icons_react16.IconHourglassEmpty, { className: "text-yellow-500 flex justify-center w-full", size: 30 }) })
5538
5431
  ]
5539
5432
  }
5540
5433
  );
@@ -5547,15 +5440,15 @@ function CardKPI({
5547
5440
  projectId
5548
5441
  }) {
5549
5442
  const [isOpen, setIsOpen] = (0, import_react24.useState)(false);
5550
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
5443
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
5551
5444
  "div",
5552
5445
  {
5553
5446
  className: `border-10 p-4 rounded-md w-[420px] h-[450px] relative`,
5554
5447
  style: { borderColor: dataItem.projectColor },
5555
5448
  children: [
5556
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "grid grid-cols-[1fr_70px] justify-between items-center", children: [
5557
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "line-clamp-2 subtitle-2 ", children: dataItem.name }),
5558
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5449
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "grid grid-cols-[1fr_70px] justify-between items-center", children: [
5450
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "line-clamp-2 subtitle-2 ", children: dataItem.name }),
5451
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "flex justify-end", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5559
5452
  "button",
5560
5453
  {
5561
5454
  type: "button",
@@ -5565,41 +5458,41 @@ function CardKPI({
5565
5458
  }
5566
5459
  ) })
5567
5460
  ] }),
5568
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "my-2 body-1", children: [
5569
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "translate-y-2", children: "\u0E23\u0E49\u0E2D\u0E22\u0E25\u0E30\u0E02\u0E2D\u0E07\u0E01\u0E34\u0E08\u0E01\u0E23\u0E23\u0E21" }),
5570
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(ProgressBar, { percent: overallPercent, type: "line", checkpoints: [0] })
5461
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "my-2 body-1", children: [
5462
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "translate-y-2", children: "\u0E23\u0E49\u0E2D\u0E22\u0E25\u0E30\u0E02\u0E2D\u0E07\u0E01\u0E34\u0E08\u0E01\u0E23\u0E23\u0E21" }),
5463
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ProgressBar, { percent: overallPercent, type: "line", checkpoints: [0] })
5571
5464
  ] }),
5572
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "border-b", children: [
5573
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "body-2 ", children: "\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" }),
5465
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "border-b", children: [
5466
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "body-2 ", children: "\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" }),
5574
5467
  indicator.filter((ind) => ind.indicatorType === "TARGET").map((item, index) => {
5575
5468
  if (index === 2) return;
5576
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(KPIRow, { item });
5469
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(KPIRow, { item });
5577
5470
  })
5578
5471
  ] }),
5579
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "pt-2", children: [
5580
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "body-2 ", children: "\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" }),
5472
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "pt-2", children: [
5473
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "body-2 ", children: "\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" }),
5581
5474
  indicator.filter((ind) => ind.indicatorType === "OUTPUT").map((item, index) => {
5582
5475
  if (index === 2) return;
5583
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(KPIRow, { item });
5476
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(KPIRow, { item });
5584
5477
  })
5585
5478
  ] }),
5586
- indicator.filter((item) => item.indicatorType === "TARGET").length > 2 || indicator.filter((item) => item.indicatorType === "OUTPUT").length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "bottom-0 right-1/2 absolute text-gray-300", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5479
+ indicator.filter((item) => item.indicatorType === "TARGET").length > 2 || indicator.filter((item) => item.indicatorType === "OUTPUT").length > 2 ? /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "bottom-0 right-1/2 absolute text-gray-300", children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5587
5480
  import_icons_react16.IconDots,
5588
5481
  {
5589
5482
  className: "cursor-pointer",
5590
5483
  onClick: () => setIsOpen(true)
5591
5484
  }
5592
5485
  ) }) : void 0,
5593
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5486
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5594
5487
  AntDModal,
5595
5488
  {
5596
5489
  isOpen,
5597
5490
  onCancel: () => setIsOpen(false),
5598
5491
  width: 600,
5599
- children: /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "mt-10", children: [
5600
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "grid grid-cols-[1fr_100px] justify-between items-center subtitle-2 ", children: [
5601
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: "font-medium line-clamp-2", children: dataItem.name }),
5602
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
5492
+ children: /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "mt-10", children: [
5493
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "grid grid-cols-[1fr_100px] justify-between items-center subtitle-2 ", children: [
5494
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { className: "font-medium line-clamp-2", children: dataItem.name }),
5495
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
5603
5496
  "button",
5604
5497
  {
5605
5498
  type: "button",
@@ -5609,17 +5502,17 @@ function CardKPI({
5609
5502
  }
5610
5503
  )
5611
5504
  ] }),
5612
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: "p-4", children: [
5613
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
5614
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "body-1 border-b", children: "\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" }),
5505
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { className: "p-4", children: [
5506
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
5507
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "body-1 border-b", children: "\u0E01\u0E25\u0E38\u0E48\u0E21\u0E40\u0E1B\u0E49\u0E32\u0E2B\u0E21\u0E32\u0E22" }),
5615
5508
  indicator.filter((ind) => ind.indicatorType === "TARGET").map((item, index) => {
5616
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(KPIRow, { item });
5509
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(KPIRow, { item });
5617
5510
  })
5618
5511
  ] }),
5619
- /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { children: [
5620
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { className: "body-1 border-b", children: "\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" }),
5512
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)("div", { children: [
5513
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("span", { className: "body-1 border-b", children: "\u0E15\u0E31\u0E27\u0E0A\u0E35\u0E49\u0E27\u0E31\u0E14\u0E1C\u0E25\u0E1C\u0E25\u0E34\u0E15" }),
5621
5514
  indicator.filter((ind) => ind.indicatorType === "OUTPUT").map((item, index) => {
5622
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(KPIRow, { item });
5515
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(KPIRow, { item });
5623
5516
  })
5624
5517
  ] })
5625
5518
  ] })
@@ -5679,8 +5572,6 @@ function CardKPI({
5679
5572
  TertiaryButton,
5680
5573
  TextAreaInput,
5681
5574
  TextInput,
5682
- TimePickerBasic,
5683
- TimePickerRangePicker,
5684
5575
  TopNavBar,
5685
5576
  messageError,
5686
5577
  messageInfo,