spotlibs-components 0.1.13 → 0.1.14

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.mjs CHANGED
@@ -1,28 +1,30 @@
1
1
  "use client";
2
- import { Thumblock, IconFilePDF, IconFileCSV, IconFileJPG } from './chunk-F6KSEYVB.mjs';
3
- export { AnalisisRisikoKreditNasabahIcon, AppendixIcon, BgBuilding, BgPerson, ChecklistDokumenPaketKreditIcon, CreditRiskRatingIcon, DefaultAvatarIcon, DefaultImageIcon, DokumenPenjagaanIcon, EmptyDataIcon, FilePdfIcon, IconFileCSV, IconFileDocx, IconFileDrive, IconFileJPG, IconFilePDF, IconFileXls, IconOnProcess, InformasiKursIcon, InformasiNasabahIcon, InformationIcon, MatriksRiskDanMitigationIcon, NoInternetConnectionIcon, NotulenRapatPraKomiteIcon, OfferingLetterIcon, PengajuanDanFasilitasKreditIcon, ProfitabilitasDanHubunganNasabahIcon, RekeningEscrowIcon, RekeningOprasionalIcon, RekeningTujuanIcon, RekomendasiPutusanIcon, RingkasanEksekutifIcon, ThumbDialogConfirm, ThumbDialogSuccess, ThumbDialogWarning, ThumbDialogWarningV2, ThumbModalError, ThumbOnProgress, ThumbSendFailed, ThumbSendSuccess, Thumblock } from './chunk-F6KSEYVB.mjs';
2
+ import { Thumblock, WarningHero, ErrorHero, SuccessHero, IconFilePDF, IconFileCSV, IconFileJPG } from './chunk-WDRSX6IA.mjs';
3
+ export { AnalisisRisikoKreditNasabahIcon, AppendixIcon, BgBuilding, BgPerson, ChecklistDokumenPaketKreditIcon, CreditRiskRatingIcon, DefaultAvatarIcon, DefaultImageIcon, DokumenPenjagaanIcon, EmptyDataIcon, ErrorHero, FilePdfIcon, IconFileCSV, IconFileDocx, IconFileDrive, IconFileJPG, IconFilePDF, IconFileXls, IconOnProcess, InformasiKursIcon, InformasiNasabahIcon, InformationIcon, MatriksRiskDanMitigationIcon, NoInternetConnectionIcon, NotulenRapatPraKomiteIcon, OfferingLetterIcon, PengajuanDanFasilitasKreditIcon, ProfitabilitasDanHubunganNasabahIcon, RekeningEscrowIcon, RekeningOprasionalIcon, RekeningTujuanIcon, RekomendasiPutusanIcon, RingkasanEksekutifIcon, SentSuccessfullyHero, SuccessHero, ThumbOnProgress, ThumbSendFailed, Thumblock, WarningHero, WarningOutlineHero } from './chunk-WDRSX6IA.mjs';
4
4
  import { errorState, callAsset } from './chunk-UFE7HFT2.mjs';
5
5
  import { __spreadValues, __spreadProps, __objRest } from './chunk-YOSPWY5K.mjs';
6
6
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
7
7
  import React4, { useMemo, useState, useCallback, isValidElement, createElement, useEffect, useRef, Fragment as Fragment$1, useId } from 'react';
8
- import KeyboardArrowRightRaw from '@mui/icons-material/KeyboardArrowRight';
9
- import KeyboardArrowLeftRaw from '@mui/icons-material/KeyboardArrowLeft';
10
- import IconButtonRaw from '@mui/material/IconButton';
11
8
  import AlertRaw from '@mui/material/Alert';
12
9
  import AlertTitleRaw from '@mui/material/AlertTitle';
13
10
  import BoxRaw from '@mui/material/Box';
14
11
  import MuiTypographyRaw from '@mui/material/Typography';
15
- import { IconSquareCheckFilled, IconSquare, IconSquareMinusFilled, IconArrowsUpDown, IconArrowUp, IconArrowDown, IconAlertCircle, IconCalendarWeekFilled, IconUpload as IconUpload$1, IconAlertTriangle, IconInfoCircle, IconCircleCheck, IconXboxXFilled, IconTrash as IconTrash$1 } from '@tabler/icons-react';
12
+ import { IconSquareCheckFilled, IconSquare, IconSquareMinusFilled, IconArrowsUpDown, IconArrowUp, IconArrowDown, IconAlertCircle, IconX, IconAlertCircleFilled, IconCalendarWeekFilled, IconUpload as IconUpload$1, IconAlertTriangle, IconCircleCheck, IconInfoCircle, IconXboxXFilled, IconTrash as IconTrash$1, IconHelpCircle } from '@tabler/icons-react';
16
13
  import ButtonBaseRaw from '@mui/material/ButtonBase';
14
+ import SkeletonRaw from '@mui/material/Skeleton';
15
+ import SwitchRaw from '@mui/material/Switch';
16
+ import { styled } from '@mui/material/styles';
17
17
  import MuiCardRaw from '@mui/material/Card';
18
18
  import CollapseRaw from '@mui/material/Collapse';
19
+ import IconButtonRaw from '@mui/material/IconButton';
19
20
  import KeyboardArrowDownIconRaw from '@mui/icons-material/KeyboardArrowDown';
20
21
  import KeyboardArrowUpIconRaw from '@mui/icons-material/KeyboardArrowUp';
21
- import SwitchRaw from '@mui/material/Switch';
22
- import { styled } from '@mui/material/styles';
22
+ import { Watermark } from '@hirohe/react-watermark';
23
+ import SnackbarRaw from '@mui/material/Snackbar';
23
24
  import MuiCheckboxRaw from '@mui/material/Checkbox';
24
25
  import FormControlLabelRaw from '@mui/material/FormControlLabel';
25
26
  import FormGroupRaw from '@mui/material/FormGroup';
27
+ import { useController, useForm } from 'react-hook-form';
26
28
  import PropTypes3 from 'prop-types';
27
29
  import CircularProgressRaw from '@mui/material/CircularProgress';
28
30
  import PaperRaw from '@mui/material/Paper';
@@ -33,7 +35,8 @@ import TableContainerRaw from '@mui/material/TableContainer';
33
35
  import TableHeadRaw from '@mui/material/TableHead';
34
36
  import TablePaginationRaw from '@mui/material/TablePagination';
35
37
  import TableRowRaw from '@mui/material/TableRow';
36
- import { useController, useForm } from 'react-hook-form';
38
+ import KeyboardArrowRightRaw from '@mui/icons-material/KeyboardArrowRight';
39
+ import KeyboardArrowLeftRaw from '@mui/icons-material/KeyboardArrowLeft';
37
40
  import dayjs from 'dayjs';
38
41
  import TextFieldRaw from '@mui/material/TextField';
39
42
  import PopoverRaw from '@mui/material/Popover';
@@ -2152,32 +2155,6 @@ var ArrowFrameOutlineUpIcon = ({ color }) => /* @__PURE__ */ jsx("svg", { width:
2152
2155
  var ArrowFrameOutlineRightIcon = ({ color }) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M11 9L14 12L11 15M12 3C19.2 3 21 4.8 21 12C21 19.2 19.2 21 12 21C4.8 21 3 19.2 3 12C3 4.8 4.8 3 12 3Z", stroke: color || "#999999", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) });
2153
2156
  var ArrowFrameOutlineDownIcon = ({ color }) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M15 11L12 14L9 11M12 3C19.2 3 21 4.8 21 12C21 19.2 19.2 21 12 21C4.8 21 3 19.2 3 12C3 4.8 4.8 3 12 3Z", stroke: color || "#999999", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) });
2154
2157
  var ArrowFrameOutlineLeftIcon = ({ color }) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ jsx("path", { d: "M13 15L10 12L13 9M12 3C19.2 3 21 4.8 21 12C21 19.2 19.2 21 12 21C4.8 21 3 19.2 3 12C3 4.8 4.8 3 12 3Z", stroke: color || "#999999", strokeWidth: "1.8", strokeLinecap: "round", strokeLinejoin: "round" }) });
2155
- var _a, _b;
2156
- var KeyboardArrowRight = (_b = (_a = KeyboardArrowRightRaw) == null ? void 0 : _a.default) != null ? _b : KeyboardArrowRightRaw;
2157
- var _a2, _b2;
2158
- var KeyboardArrowLeft = (_b2 = (_a2 = KeyboardArrowLeftRaw) == null ? void 0 : _a2.default) != null ? _b2 : KeyboardArrowLeftRaw;
2159
- var _a3, _b3;
2160
- var IconButton = (_b3 = (_a3 = IconButtonRaw) == null ? void 0 : _a3.default) != null ? _b3 : IconButtonRaw;
2161
- var ServerSidePaginationActions = (props) => {
2162
- const { page, onPageChange, rowsPerPage, currentPageData } = props;
2163
- const handleBackButtonClick = () => {
2164
- onPageChange(null, page - 1);
2165
- };
2166
- const handleNextButtonClick = () => {
2167
- onPageChange(null, page + 1);
2168
- };
2169
- return /* @__PURE__ */ jsxs(Fragment, { children: [
2170
- /* @__PURE__ */ jsx(IconButton, { onClick: handleBackButtonClick, disabled: page === 0, children: /* @__PURE__ */ jsx(KeyboardArrowLeft, {}) }),
2171
- /* @__PURE__ */ jsx(
2172
- IconButton,
2173
- {
2174
- onClick: handleNextButtonClick,
2175
- disabled: !(currentPageData == null ? void 0 : currentPageData.length) || (currentPageData == null ? void 0 : currentPageData.length) < rowsPerPage,
2176
- children: /* @__PURE__ */ jsx(KeyboardArrowRight, {})
2177
- }
2178
- )
2179
- ] });
2180
- };
2181
2158
 
2182
2159
  // src/components/atoms/colors/derived/derived.jsx
2183
2160
  var DerivedColor = {
@@ -2232,8 +2209,8 @@ var DerivedColor = {
2232
2209
  color_icon_danger: PrimitiveColor.color_red_500,
2233
2210
  color_icon_warning: PrimitiveColor.color_yellow_600
2234
2211
  };
2235
- var _a4, _b4;
2236
- var Box = (_b4 = (_a4 = BoxRaw) == null ? void 0 : _a4.default) != null ? _b4 : BoxRaw;
2212
+ var _a, _b;
2213
+ var Box = (_b = (_a = BoxRaw) == null ? void 0 : _a.default) != null ? _b : BoxRaw;
2237
2214
  var Radius = {
2238
2215
  radius_0: "0px",
2239
2216
  radius_1: "4px",
@@ -2242,18 +2219,18 @@ var Radius = {
2242
2219
  radius_4: "16px",
2243
2220
  radius_x: "999px"
2244
2221
  };
2245
- var RadiusToken = (_a107) => {
2246
- var _b107 = _a107, {
2222
+ var RadiusToken = (_a126) => {
2223
+ var _b126 = _a126, {
2247
2224
  radius = "radius_0",
2248
2225
  children,
2249
2226
  sx = {}
2250
- } = _b107, rest = __objRest(_b107, [
2227
+ } = _b126, rest = __objRest(_b126, [
2251
2228
  "radius",
2252
2229
  "children",
2253
2230
  "sx"
2254
2231
  ]);
2255
- var _a108;
2256
- const borderRadius = (_a108 = Radius[radius]) != null ? _a108 : Radius.radius_0;
2232
+ var _a127;
2233
+ const borderRadius = (_a127 = Radius[radius]) != null ? _a127 : Radius.radius_0;
2257
2234
  return /* @__PURE__ */ jsx(
2258
2235
  Box,
2259
2236
  __spreadProps(__spreadValues({
@@ -2271,8 +2248,8 @@ var RadiusToken = (_a107) => {
2271
2248
  );
2272
2249
  };
2273
2250
  var radius_default = RadiusToken;
2274
- var _a5, _b5;
2275
- var MuiTypography = (_b5 = (_a5 = MuiTypographyRaw) == null ? void 0 : _a5.default) != null ? _b5 : MuiTypographyRaw;
2251
+ var _a2, _b2;
2252
+ var MuiTypography = (_b2 = (_a2 = MuiTypographyRaw) == null ? void 0 : _a2.default) != null ? _b2 : MuiTypographyRaw;
2276
2253
  var BASE_LINE_HEIGHT = 1.4;
2277
2254
  var LETTER_SPACING = "0px";
2278
2255
  var TYPOGRAPHY_COLORS = {
@@ -2394,12 +2371,12 @@ var VariantStyles = {
2394
2371
  fontWeight: 400
2395
2372
  }
2396
2373
  };
2397
- var BaseTypography = (_a107) => {
2398
- var _b107 = _a107, {
2374
+ var BaseTypography = (_a126) => {
2375
+ var _b126 = _a126, {
2399
2376
  variant = "body1_regular.default",
2400
2377
  children,
2401
2378
  sx
2402
- } = _b107, props = __objRest(_b107, [
2379
+ } = _b126, props = __objRest(_b126, [
2403
2380
  "variant",
2404
2381
  "children",
2405
2382
  "sx"
@@ -2434,8 +2411,8 @@ var BaseTypography = (_a107) => {
2434
2411
  })
2435
2412
  );
2436
2413
  };
2437
- var _a6, _b6;
2438
- var Box2 = (_b6 = (_a6 = BoxRaw) == null ? void 0 : _a6.default) != null ? _b6 : BoxRaw;
2414
+ var _a3, _b3;
2415
+ var Box2 = (_b3 = (_a3 = BoxRaw) == null ? void 0 : _a3.default) != null ? _b3 : BoxRaw;
2439
2416
  var SpacingToken = {
2440
2417
  spacing0: "0px",
2441
2418
  spacing1: "4px",
@@ -2467,17 +2444,17 @@ var CONTENT_SPACING_TOKENS = {
2467
2444
  }
2468
2445
  };
2469
2446
  var resolveSpacingValue = (value, tokens) => {
2470
- var _a107;
2447
+ var _a126;
2471
2448
  if (typeof value === "number") return `${value}px`;
2472
- if (typeof value === "string") return (_a107 = tokens[value]) != null ? _a107 : value;
2449
+ if (typeof value === "string") return (_a126 = tokens[value]) != null ? _a126 : value;
2473
2450
  return 0;
2474
2451
  };
2475
- var Spacing = (_a107) => {
2476
- var _b107 = _a107, {
2452
+ var Spacing = (_a126) => {
2453
+ var _b126 = _a126, {
2477
2454
  size = "spacing2",
2478
2455
  axis = "vertical",
2479
2456
  sx = {}
2480
- } = _b107, rest = __objRest(_b107, [
2457
+ } = _b126, rest = __objRest(_b126, [
2481
2458
  "size",
2482
2459
  "axis",
2483
2460
  "sx"
@@ -2491,22 +2468,22 @@ var Spacing = (_a107) => {
2491
2468
  }, rest)
2492
2469
  );
2493
2470
  };
2494
- var ContentSpacing = (_a107) => {
2495
- var _b107 = _a107, {
2471
+ var ContentSpacing = (_a126) => {
2472
+ var _b126 = _a126, {
2496
2473
  size = "spacing_2",
2497
2474
  breakpoint = "web",
2498
2475
  children,
2499
2476
  sx = {}
2500
- } = _b107, rest = __objRest(_b107, [
2477
+ } = _b126, rest = __objRest(_b126, [
2501
2478
  "size",
2502
2479
  "breakpoint",
2503
2480
  "children",
2504
2481
  "sx"
2505
2482
  ]);
2506
- var _a108;
2483
+ var _a127;
2507
2484
  const token = typeof size === "string" ? CONTENT_SPACING_TOKENS[size] : size;
2508
2485
  if (!token) return null;
2509
- const value = (_a108 = token[breakpoint]) != null ? _a108 : token.web;
2486
+ const value = (_a127 = token[breakpoint]) != null ? _a127 : token.web;
2510
2487
  return /* @__PURE__ */ jsx(
2511
2488
  Box2,
2512
2489
  __spreadProps(__spreadValues({
@@ -2519,12 +2496,12 @@ var ContentSpacing = (_a107) => {
2519
2496
  );
2520
2497
  };
2521
2498
  var spacing_default = Spacing;
2522
- var _a7, _b7;
2523
- var Alert = (_b7 = (_a7 = AlertRaw) == null ? void 0 : _a7.default) != null ? _b7 : AlertRaw;
2524
- var _a8, _b8;
2525
- var AlertTitle = (_b8 = (_a8 = AlertTitleRaw) == null ? void 0 : _a8.default) != null ? _b8 : AlertTitleRaw;
2526
- var _a9, _b9;
2527
- var Box3 = (_b9 = (_a9 = BoxRaw) == null ? void 0 : _a9.default) != null ? _b9 : BoxRaw;
2499
+ var _a4, _b4;
2500
+ var Alert = (_b4 = (_a4 = AlertRaw) == null ? void 0 : _a4.default) != null ? _b4 : AlertRaw;
2501
+ var _a5, _b5;
2502
+ var AlertTitle = (_b5 = (_a5 = AlertTitleRaw) == null ? void 0 : _a5.default) != null ? _b5 : AlertTitleRaw;
2503
+ var _a6, _b6;
2504
+ var Box3 = (_b6 = (_a6 = BoxRaw) == null ? void 0 : _a6.default) != null ? _b6 : BoxRaw;
2528
2505
  var ALERT_CONFIG = {
2529
2506
  default: {
2530
2507
  bg: PrimitiveColor.color_neutral_200,
@@ -2552,8 +2529,8 @@ var ALERT_CONFIG = {
2552
2529
  defaultIcon: IconAlertTriangle
2553
2530
  }
2554
2531
  };
2555
- var BaseAlert = (_a107) => {
2556
- var _b107 = _a107, {
2532
+ var BaseAlert = (_a126) => {
2533
+ var _b126 = _a126, {
2557
2534
  variant = "default",
2558
2535
  type = "standard",
2559
2536
  title,
@@ -2563,7 +2540,7 @@ var BaseAlert = (_a107) => {
2563
2540
  sx = {},
2564
2541
  onClose,
2565
2542
  childrenSx = {}
2566
- } = _b107, props = __objRest(_b107, [
2543
+ } = _b126, props = __objRest(_b126, [
2567
2544
  "variant",
2568
2545
  "type",
2569
2546
  "title",
@@ -2574,8 +2551,8 @@ var BaseAlert = (_a107) => {
2574
2551
  "onClose",
2575
2552
  "childrenSx"
2576
2553
  ]);
2577
- var _a108;
2578
- const config = (_a108 = ALERT_CONFIG[variant]) != null ? _a108 : ALERT_CONFIG.default;
2554
+ var _a127;
2555
+ const config = (_a127 = ALERT_CONFIG[variant]) != null ? _a127 : ALERT_CONFIG.default;
2579
2556
  const hasChildrenSx = Object.keys(childrenSx).length > 0;
2580
2557
  const renderIcon = useMemo(() => {
2581
2558
  if (!icon) return false;
@@ -2616,8 +2593,8 @@ var BaseAlert = (_a107) => {
2616
2593
  })
2617
2594
  );
2618
2595
  };
2619
- var _a10, _b10;
2620
- var Box4 = (_b10 = (_a10 = BoxRaw) == null ? void 0 : _a10.default) != null ? _b10 : BoxRaw;
2596
+ var _a7, _b7;
2597
+ var Box4 = (_b7 = (_a7 = BoxRaw) == null ? void 0 : _a7.default) != null ? _b7 : BoxRaw;
2621
2598
  var Shadow = {
2622
2599
  elevation_0: {
2623
2600
  shadow: "none",
@@ -2640,12 +2617,12 @@ var Shadow = {
2640
2617
  surface: "#FFFFFF"
2641
2618
  }
2642
2619
  };
2643
- var ShadowToken = (_a107) => {
2644
- var _b107 = _a107, {
2620
+ var ShadowToken = (_a126) => {
2621
+ var _b126 = _a126, {
2645
2622
  level = "elevation_0",
2646
2623
  children,
2647
2624
  sx = {}
2648
- } = _b107, rest = __objRest(_b107, [
2625
+ } = _b126, rest = __objRest(_b126, [
2649
2626
  "level",
2650
2627
  "children",
2651
2628
  "sx"
@@ -2664,10 +2641,10 @@ var ShadowToken = (_a107) => {
2664
2641
  );
2665
2642
  };
2666
2643
  var shadow_default = ShadowToken;
2667
- var _a11, _b11;
2668
- var ButtonBase = (_b11 = (_a11 = ButtonBaseRaw) == null ? void 0 : _a11.default) != null ? _b11 : ButtonBaseRaw;
2669
- var _a12, _b12;
2670
- var Box5 = (_b12 = (_a12 = BoxRaw) == null ? void 0 : _a12.default) != null ? _b12 : BoxRaw;
2644
+ var _a8, _b8;
2645
+ var ButtonBase = (_b8 = (_a8 = ButtonBaseRaw) == null ? void 0 : _a8.default) != null ? _b8 : ButtonBaseRaw;
2646
+ var _a9, _b9;
2647
+ var Box5 = (_b9 = (_a9 = BoxRaw) == null ? void 0 : _a9.default) != null ? _b9 : BoxRaw;
2671
2648
  var WHITE = DerivedColor.color_text_inverse;
2672
2649
  var SIZE_TYPOGRAPHY = {
2673
2650
  large: "body2_regular",
@@ -2737,8 +2714,8 @@ function getHoverColor(primitiveKey) {
2737
2714
  const hoverKey = `${prefix}_${nextLevel}`;
2738
2715
  return PrimitiveColor[hoverKey] || PrimitiveColor[primitiveKey];
2739
2716
  }
2740
- var BaseButton = (_a107) => {
2741
- var _b107 = _a107, {
2717
+ var BaseButton = (_a126) => {
2718
+ var _b126 = _a126, {
2742
2719
  onClick = () => {
2743
2720
  },
2744
2721
  children = null,
@@ -2751,7 +2728,7 @@ var BaseButton = (_a107) => {
2751
2728
  endIcon = null,
2752
2729
  width = "100%",
2753
2730
  sx = {}
2754
- } = _b107, rest = __objRest(_b107, [
2731
+ } = _b126, rest = __objRest(_b126, [
2755
2732
  "onClick",
2756
2733
  "children",
2757
2734
  "variant",
@@ -2771,36 +2748,36 @@ var BaseButton = (_a107) => {
2771
2748
  const customColorValue = useCustom ? PrimitiveColor[customColor] : null;
2772
2749
  const customHoverValue = useCustom ? getHoverColor(customColor) : null;
2773
2750
  const getBackgroundColor = () => {
2774
- var _a108;
2751
+ var _a127;
2775
2752
  if (disabled) return isFill ? DISABLED_BG : "transparent";
2776
2753
  if (useCustom) return isFill ? customColorValue : "transparent";
2777
- if (isFill) return ((_a108 = FILL_COLORS[color]) == null ? void 0 : _a108.bg) || FILL_COLORS.primary.bg;
2754
+ if (isFill) return ((_a127 = FILL_COLORS[color]) == null ? void 0 : _a127.bg) || FILL_COLORS.primary.bg;
2778
2755
  return "transparent";
2779
2756
  };
2780
2757
  const getTextColor = () => {
2781
- var _a108, _b108;
2758
+ var _a127, _b127;
2782
2759
  if (disabled) return DISABLED_TEXT;
2783
2760
  if (isFill) return WHITE;
2784
2761
  if (useCustom) return customColorValue;
2785
- if (isOutline) return ((_a108 = OUTLINE_COLORS[color]) == null ? void 0 : _a108.text) || OUTLINE_COLORS.primary.text;
2786
- if (isText) return ((_b108 = OUTLINE_COLORS[color]) == null ? void 0 : _b108.text) || OUTLINE_COLORS.primary.text;
2762
+ if (isOutline) return ((_a127 = OUTLINE_COLORS[color]) == null ? void 0 : _a127.text) || OUTLINE_COLORS.primary.text;
2763
+ if (isText) return ((_b127 = OUTLINE_COLORS[color]) == null ? void 0 : _b127.text) || OUTLINE_COLORS.primary.text;
2787
2764
  return DerivedColor.color_text_default;
2788
2765
  };
2789
2766
  const getBorderColor = () => {
2790
- var _a108;
2767
+ var _a127;
2791
2768
  if (!isOutline) return "none";
2792
2769
  if (disabled) return `1.5px solid ${DISABLED_BG}`;
2793
2770
  if (useCustom) return `1.5px solid ${customColorValue}`;
2794
- return `1.5px solid ${((_a108 = OUTLINE_COLORS[color]) == null ? void 0 : _a108.border) || OUTLINE_COLORS.primary.border}`;
2771
+ return `1.5px solid ${((_a127 = OUTLINE_COLORS[color]) == null ? void 0 : _a127.border) || OUTLINE_COLORS.primary.border}`;
2795
2772
  };
2796
2773
  const getHoverBg = () => {
2797
- var _a108, _b108;
2774
+ var _a127, _b127;
2798
2775
  if (disabled) return void 0;
2799
2776
  if (useCustom) {
2800
2777
  return isFill ? customHoverValue : customColorValue + "1A";
2801
2778
  }
2802
- if (isFill) return ((_a108 = FILL_COLORS[color]) == null ? void 0 : _a108.hover) || FILL_COLORS.primary.hover;
2803
- if (isOutline) return ((_b108 = OUTLINE_COLORS[color]) == null ? void 0 : _b108.hoverBg) || OUTLINE_COLORS.primary.hoverBg;
2779
+ if (isFill) return ((_a127 = FILL_COLORS[color]) == null ? void 0 : _a127.hover) || FILL_COLORS.primary.hover;
2780
+ if (isOutline) return ((_b127 = OUTLINE_COLORS[color]) == null ? void 0 : _b127.hoverBg) || OUTLINE_COLORS.primary.hoverBg;
2804
2781
  return void 0;
2805
2782
  };
2806
2783
  const getRadius = () => {
@@ -2881,14 +2858,197 @@ var BaseButton = (_a107) => {
2881
2858
  })
2882
2859
  );
2883
2860
  };
2861
+ var _a10, _b10;
2862
+ var Skeleton = (_b10 = (_a10 = SkeletonRaw) == null ? void 0 : _a10.default) != null ? _b10 : SkeletonRaw;
2863
+ var _a11, _b11;
2864
+ var Box6 = (_b11 = (_a11 = BoxRaw) == null ? void 0 : _a11.default) != null ? _b11 : BoxRaw;
2865
+ var BaseSkeleton = (_a126) => {
2866
+ var _b126 = _a126, {
2867
+ variant = "rectangular",
2868
+ animation = "pulse",
2869
+ width,
2870
+ height,
2871
+ count = 1,
2872
+ gap = SpacingToken.spacing2,
2873
+ sx = {}
2874
+ } = _b126, rest = __objRest(_b126, [
2875
+ "variant",
2876
+ "animation",
2877
+ "width",
2878
+ "height",
2879
+ "count",
2880
+ "gap",
2881
+ "sx"
2882
+ ]);
2883
+ const getRadius = () => {
2884
+ switch (variant) {
2885
+ case "circular":
2886
+ return "50%";
2887
+ case "rounded":
2888
+ return Radius.radius_2;
2889
+ case "text":
2890
+ case "rectangular":
2891
+ default:
2892
+ return Radius.radius_0;
2893
+ }
2894
+ };
2895
+ const getDefaultHeight = () => {
2896
+ switch (variant) {
2897
+ case "text":
2898
+ return "1.2em";
2899
+ case "circular":
2900
+ return width || 40;
2901
+ case "rectangular":
2902
+ case "rounded":
2903
+ return height || 60;
2904
+ default:
2905
+ return height;
2906
+ }
2907
+ };
2908
+ const getDefaultWidth = () => {
2909
+ switch (variant) {
2910
+ case "circular":
2911
+ return height || 40;
2912
+ case "text":
2913
+ return "100%";
2914
+ case "rectangular":
2915
+ case "rounded":
2916
+ return width || "100%";
2917
+ default:
2918
+ return width;
2919
+ }
2920
+ };
2921
+ const skeletonProps = __spreadValues({
2922
+ variant: variant === "rounded" ? "rectangular" : variant,
2923
+ animation: animation === "none" ? false : animation,
2924
+ width: getDefaultWidth(),
2925
+ height: getDefaultHeight(),
2926
+ sx: __spreadValues({
2927
+ borderRadius: getRadius()
2928
+ }, sx)
2929
+ }, rest);
2930
+ if (count <= 1) {
2931
+ return /* @__PURE__ */ jsx(Skeleton, __spreadValues({}, skeletonProps));
2932
+ }
2933
+ return /* @__PURE__ */ jsx(Box6, { sx: { display: "flex", flexDirection: "column", gap }, children: Array.from({ length: count }).map((_, index) => /* @__PURE__ */ jsx(Skeleton, __spreadValues({}, skeletonProps), index)) });
2934
+ };
2935
+ var _a12, _b12;
2936
+ var Switch = (_b12 = (_a12 = SwitchRaw) == null ? void 0 : _a12.default) != null ? _b12 : SwitchRaw;
2937
+ var AntSwitch = styled(Switch)(({ theme }) => ({
2938
+ width: "34px",
2939
+ height: "18px",
2940
+ padding: 0,
2941
+ display: "flex",
2942
+ "&:active": {
2943
+ "& .MuiSwitch-thumb": { width: 15 },
2944
+ "& .MuiSwitch-switchBase.Mui-checked": {
2945
+ transform: "translateX(9px)"
2946
+ }
2947
+ },
2948
+ "& .MuiSwitch-switchBase": {
2949
+ padding: SpacingToken.spacing1,
2950
+ "&.Mui-checked": {
2951
+ transform: "translateX(16px)",
2952
+ color: DerivedColor.color_bg_surface,
2953
+ "& + .MuiSwitch-track": {
2954
+ opacity: 1,
2955
+ backgroundColor: DerivedColor.color_bg_brand_primary
2956
+ }
2957
+ }
2958
+ },
2959
+ "& .MuiSwitch-thumb": {
2960
+ boxShadow: "0 2px 4px 0 rgb(0 35 11 / 20%)",
2961
+ width: "10px",
2962
+ height: "10px",
2963
+ borderRadius: Radius.radius_x,
2964
+ transition: theme.transitions.create(["width"], { duration: 200 }),
2965
+ backgroundColor: DerivedColor.color_bg_surface
2966
+ },
2967
+ "& .MuiSwitch-track": {
2968
+ borderRadius: Radius.radius_x,
2969
+ opacity: 1,
2970
+ backgroundColor: theme.palette.mode === "dark" ? DerivedColor.color_text_disabled : DerivedColor.color_text_placeholder,
2971
+ boxSizing: "border-box"
2972
+ }
2973
+ }));
2974
+ var BaseSwitch = ({
2975
+ status = false,
2976
+ label,
2977
+ labelPlacement = "end",
2978
+ // start | end | top | bottom
2979
+ isDisabled = false,
2980
+ onChange
2981
+ }) => {
2982
+ const [checked, setChecked] = useState(status);
2983
+ useEffect(() => {
2984
+ setChecked(status);
2985
+ }, [status]);
2986
+ const handleChange = (event) => {
2987
+ setChecked(event.target.checked);
2988
+ onChange == null ? void 0 : onChange(event);
2989
+ };
2990
+ const layoutMap = {
2991
+ start: {
2992
+ gridAutoFlow: "column dense",
2993
+ direction: "rtl"
2994
+ },
2995
+ end: {
2996
+ gridAutoFlow: "column",
2997
+ direction: "ltr"
2998
+ },
2999
+ top: {
3000
+ gridAutoFlow: "row",
3001
+ direction: "ltr"
3002
+ },
3003
+ bottom: {
3004
+ gridAutoFlow: "row dense",
3005
+ direction: "rtl"
3006
+ }
3007
+ };
3008
+ const layout = layoutMap[labelPlacement] || layoutMap.end;
3009
+ return /* @__PURE__ */ jsxs(
3010
+ "div",
3011
+ {
3012
+ style: {
3013
+ display: "grid",
3014
+ gap: SpacingToken.spacing2,
3015
+ alignItems: "center",
3016
+ justifyItems: "start",
3017
+ gridAutoFlow: layout.gridAutoFlow,
3018
+ direction: layout.direction
3019
+ },
3020
+ children: [
3021
+ /* @__PURE__ */ jsx(
3022
+ AntSwitch,
3023
+ {
3024
+ checked,
3025
+ onChange: handleChange,
3026
+ disabled: isDisabled,
3027
+ inputProps: { "aria-label": "controlled" }
3028
+ }
3029
+ ),
3030
+ label ? /* @__PURE__ */ jsx(
3031
+ "p",
3032
+ {
3033
+ style: __spreadProps(__spreadValues({}, VariantStyles.body1_regular), {
3034
+ color: isDisabled ? DerivedColor.color_text_placeholder : DerivedColor.color_text_default,
3035
+ margin: 0
3036
+ }),
3037
+ children: label
3038
+ }
3039
+ ) : null
3040
+ ]
3041
+ }
3042
+ );
3043
+ };
2884
3044
  var _a13, _b13;
2885
3045
  var MuiCard = (_b13 = (_a13 = MuiCardRaw) == null ? void 0 : _a13.default) != null ? _b13 : MuiCardRaw;
2886
3046
  var _a14, _b14;
2887
- var Box6 = (_b14 = (_a14 = BoxRaw) == null ? void 0 : _a14.default) != null ? _b14 : BoxRaw;
3047
+ var Box7 = (_b14 = (_a14 = BoxRaw) == null ? void 0 : _a14.default) != null ? _b14 : BoxRaw;
2888
3048
  var _a15, _b15;
2889
3049
  var Collapse = (_b15 = (_a15 = CollapseRaw) == null ? void 0 : _a15.default) != null ? _b15 : CollapseRaw;
2890
3050
  var _a16, _b16;
2891
- var IconButton2 = (_b16 = (_a16 = IconButtonRaw) == null ? void 0 : _a16.default) != null ? _b16 : IconButtonRaw;
3051
+ var IconButton = (_b16 = (_a16 = IconButtonRaw) == null ? void 0 : _a16.default) != null ? _b16 : IconButtonRaw;
2892
3052
  var _a17, _b17;
2893
3053
  var KeyboardArrowDownIcon = (_b17 = (_a17 = KeyboardArrowDownIconRaw) == null ? void 0 : _a17.default) != null ? _b17 : KeyboardArrowDownIconRaw;
2894
3054
  var _a18, _b18;
@@ -2900,8 +3060,8 @@ var HEADER_COLORS = {
2900
3060
  warning: DerivedColor.color_bg_warning,
2901
3061
  danger: DerivedColor.color_bg_danger
2902
3062
  };
2903
- var BaseCard = (_a107) => {
2904
- var _b107 = _a107, {
3063
+ var BaseCard = (_a126) => {
3064
+ var _b126 = _a126, {
2905
3065
  variant = "default",
2906
3066
  children = null,
2907
3067
  color = "primary",
@@ -2916,8 +3076,10 @@ var BaseCard = (_a107) => {
2916
3076
  showStartIcon = false,
2917
3077
  showEndIcon = false,
2918
3078
  footer = null,
3079
+ isWatermark = false,
3080
+ watermarkText = "",
2919
3081
  sx = {}
2920
- } = _b107, rest = __objRest(_b107, [
3082
+ } = _b126, rest = __objRest(_b126, [
2921
3083
  "variant",
2922
3084
  "children",
2923
3085
  "color",
@@ -2932,6 +3094,8 @@ var BaseCard = (_a107) => {
2932
3094
  "showStartIcon",
2933
3095
  "showEndIcon",
2934
3096
  "footer",
3097
+ "isWatermark",
3098
+ "watermarkText",
2935
3099
  "sx"
2936
3100
  ]);
2937
3101
  const [open, setOpen] = useState(true);
@@ -2947,12 +3111,25 @@ var BaseCard = (_a107) => {
2947
3111
  borderRadius: Radius.radius_2,
2948
3112
  backgroundColor: cardBg,
2949
3113
  border: `1px solid ${borderColor}`,
2950
- overflow: "visible",
3114
+ overflow: "hidden",
2951
3115
  boxShadow: "none",
2952
- padding: SpacingToken.spacing4
3116
+ padding: SpacingToken.spacing4,
3117
+ position: "relative"
2953
3118
  }, sx)
2954
3119
  }, rest), {
2955
- children
3120
+ children: isWatermark && watermarkText ? /* @__PURE__ */ jsx(
3121
+ Watermark,
3122
+ {
3123
+ text: watermarkText,
3124
+ textColor: "#000000",
3125
+ textSize: 14,
3126
+ opacity: 0.15,
3127
+ gutter: 20,
3128
+ rotate: -30,
3129
+ wrapperStyle: { minHeight: "100px" },
3130
+ children
3131
+ }
3132
+ ) : children
2956
3133
  })
2957
3134
  );
2958
3135
  }
@@ -2969,7 +3146,7 @@ var BaseCard = (_a107) => {
2969
3146
  }, rest), {
2970
3147
  children: [
2971
3148
  /* @__PURE__ */ jsxs(
2972
- Box6,
3149
+ Box7,
2973
3150
  {
2974
3151
  onClick: () => isCollapsible && setOpen(!open),
2975
3152
  sx: {
@@ -2983,11 +3160,11 @@ var BaseCard = (_a107) => {
2983
3160
  borderTopRightRadius: Radius.radius_2
2984
3161
  },
2985
3162
  children: [
2986
- /* @__PURE__ */ jsxs(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
2987
- showStartIcon && startIcon && /* @__PURE__ */ jsx(Box6, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: startIcon }),
2988
- /* @__PURE__ */ jsxs(Box6, { children: [
3163
+ /* @__PURE__ */ jsxs(Box7, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3164
+ showStartIcon && startIcon && /* @__PURE__ */ jsx(Box7, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: startIcon }),
3165
+ /* @__PURE__ */ jsxs(Box7, { children: [
2989
3166
  /* @__PURE__ */ jsx(
2990
- Box6,
3167
+ Box7,
2991
3168
  {
2992
3169
  component: "span",
2993
3170
  sx: {
@@ -3000,7 +3177,7 @@ var BaseCard = (_a107) => {
3000
3177
  }
3001
3178
  ),
3002
3179
  showSubtitle && subtitle && /* @__PURE__ */ jsx(
3003
- Box6,
3180
+ Box7,
3004
3181
  {
3005
3182
  component: "span",
3006
3183
  sx: {
@@ -3015,10 +3192,10 @@ var BaseCard = (_a107) => {
3015
3192
  )
3016
3193
  ] })
3017
3194
  ] }),
3018
- /* @__PURE__ */ jsxs(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3019
- showEndIcon && endIcon && /* @__PURE__ */ jsx(Box6, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: endIcon }),
3195
+ /* @__PURE__ */ jsxs(Box7, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3196
+ showEndIcon && endIcon && /* @__PURE__ */ jsx(Box7, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: endIcon }),
3020
3197
  isCollapsible && /* @__PURE__ */ jsx(
3021
- IconButton2,
3198
+ IconButton,
3022
3199
  {
3023
3200
  size: "small",
3024
3201
  onClick: (e) => {
@@ -3034,13 +3211,25 @@ var BaseCard = (_a107) => {
3034
3211
  }
3035
3212
  ),
3036
3213
  /* @__PURE__ */ jsx(Collapse, { in: !isCollapsible || open, timeout: 300, children: /* @__PURE__ */ jsx(
3037
- Box6,
3214
+ Box7,
3038
3215
  {
3039
3216
  sx: {
3040
3217
  padding: SpacingToken.spacing4,
3041
3218
  backgroundColor: cardBg
3042
3219
  },
3043
- children
3220
+ children: isWatermark && watermarkText ? /* @__PURE__ */ jsx(
3221
+ Watermark,
3222
+ {
3223
+ text: watermarkText,
3224
+ textColor: "#000000",
3225
+ textSize: 14,
3226
+ opacity: 0.15,
3227
+ gutter: 20,
3228
+ rotate: -30,
3229
+ wrapperStyle: { minHeight: "100px" },
3230
+ children
3231
+ }
3232
+ ) : children
3044
3233
  }
3045
3234
  ) })
3046
3235
  ]
@@ -3060,7 +3249,7 @@ var BaseCard = (_a107) => {
3060
3249
  }, rest), {
3061
3250
  children: [
3062
3251
  /* @__PURE__ */ jsxs(
3063
- Box6,
3252
+ Box7,
3064
3253
  {
3065
3254
  onClick: () => isCollapsible && setOpen(!open),
3066
3255
  sx: {
@@ -3074,11 +3263,11 @@ var BaseCard = (_a107) => {
3074
3263
  borderTopRightRadius: Radius.radius_2
3075
3264
  },
3076
3265
  children: [
3077
- /* @__PURE__ */ jsxs(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3078
- showStartIcon && startIcon && /* @__PURE__ */ jsx(Box6, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: startIcon }),
3079
- /* @__PURE__ */ jsxs(Box6, { children: [
3266
+ /* @__PURE__ */ jsxs(Box7, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3267
+ showStartIcon && startIcon && /* @__PURE__ */ jsx(Box7, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: startIcon }),
3268
+ /* @__PURE__ */ jsxs(Box7, { children: [
3080
3269
  /* @__PURE__ */ jsx(
3081
- Box6,
3270
+ Box7,
3082
3271
  {
3083
3272
  component: "span",
3084
3273
  sx: {
@@ -3091,7 +3280,7 @@ var BaseCard = (_a107) => {
3091
3280
  }
3092
3281
  ),
3093
3282
  showSubtitle && subtitle && /* @__PURE__ */ jsx(
3094
- Box6,
3283
+ Box7,
3095
3284
  {
3096
3285
  component: "span",
3097
3286
  sx: {
@@ -3106,10 +3295,10 @@ var BaseCard = (_a107) => {
3106
3295
  )
3107
3296
  ] })
3108
3297
  ] }),
3109
- /* @__PURE__ */ jsxs(Box6, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3110
- showEndIcon && endIcon && /* @__PURE__ */ jsx(Box6, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: endIcon }),
3298
+ /* @__PURE__ */ jsxs(Box7, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
3299
+ showEndIcon && endIcon && /* @__PURE__ */ jsx(Box7, { sx: { display: "flex", alignItems: "center", lineHeight: 0 }, children: endIcon }),
3111
3300
  isCollapsible && /* @__PURE__ */ jsx(
3112
- IconButton2,
3301
+ IconButton,
3113
3302
  {
3114
3303
  size: "small",
3115
3304
  onClick: (e) => {
@@ -3125,17 +3314,29 @@ var BaseCard = (_a107) => {
3125
3314
  }
3126
3315
  ),
3127
3316
  /* @__PURE__ */ jsx(Collapse, { in: !isCollapsible || open, timeout: 300, children: /* @__PURE__ */ jsx(
3128
- Box6,
3317
+ Box7,
3129
3318
  {
3130
3319
  sx: {
3131
3320
  padding: SpacingToken.spacing4,
3132
3321
  backgroundColor: cardBg
3133
3322
  },
3134
- children
3323
+ children: isWatermark && watermarkText ? /* @__PURE__ */ jsx(
3324
+ Watermark,
3325
+ {
3326
+ text: watermarkText,
3327
+ textColor: "#000000",
3328
+ textSize: 14,
3329
+ opacity: 0.15,
3330
+ gutter: 20,
3331
+ rotate: -30,
3332
+ wrapperStyle: { minHeight: "100px" },
3333
+ children
3334
+ }
3335
+ ) : children
3135
3336
  }
3136
3337
  ) }),
3137
3338
  footer && /* @__PURE__ */ jsx(
3138
- Box6,
3339
+ Box7,
3139
3340
  {
3140
3341
  sx: {
3141
3342
  padding: SpacingToken.spacing4,
@@ -3166,133 +3367,136 @@ var BaseCard = (_a107) => {
3166
3367
  );
3167
3368
  };
3168
3369
  var _a19, _b19;
3169
- var Switch = (_b19 = (_a19 = SwitchRaw) == null ? void 0 : _a19.default) != null ? _b19 : SwitchRaw;
3170
- var AntSwitch = styled(Switch)(({ theme }) => ({
3171
- width: "34px",
3172
- height: "18px",
3173
- padding: 0,
3174
- display: "flex",
3175
- "&:active": {
3176
- "& .MuiSwitch-thumb": { width: 15 },
3177
- "& .MuiSwitch-switchBase.Mui-checked": {
3178
- transform: "translateX(9px)"
3179
- }
3370
+ var Snackbar = (_b19 = (_a19 = SnackbarRaw) == null ? void 0 : _a19.default) != null ? _b19 : SnackbarRaw;
3371
+ var _a20, _b20;
3372
+ var Alert2 = (_b20 = (_a20 = AlertRaw) == null ? void 0 : _a20.default) != null ? _b20 : AlertRaw;
3373
+ var _a21, _b21;
3374
+ var IconButton2 = (_b21 = (_a21 = IconButtonRaw) == null ? void 0 : _a21.default) != null ? _b21 : IconButtonRaw;
3375
+ var VARIANT_CONFIG = {
3376
+ success: {
3377
+ bg: PrimitiveColor.color_green_100,
3378
+ text: PrimitiveColor.color_green_700
3180
3379
  },
3181
- "& .MuiSwitch-switchBase": {
3182
- padding: SpacingToken.spacing1,
3183
- "&.Mui-checked": {
3184
- transform: "translateX(16px)",
3185
- color: DerivedColor.color_bg_surface,
3186
- "& + .MuiSwitch-track": {
3187
- opacity: 1,
3188
- backgroundColor: DerivedColor.color_bg_brand_primary
3189
- }
3190
- }
3380
+ error: {
3381
+ bg: PrimitiveColor.color_red_100,
3382
+ text: PrimitiveColor.color_red_700
3191
3383
  },
3192
- "& .MuiSwitch-thumb": {
3193
- boxShadow: "0 2px 4px 0 rgb(0 35 11 / 20%)",
3194
- width: "10px",
3195
- height: "10px",
3196
- borderRadius: Radius.radius_x,
3197
- transition: theme.transitions.create(["width"], { duration: 200 }),
3198
- backgroundColor: DerivedColor.color_bg_surface
3384
+ info: {
3385
+ bg: PrimitiveColor.color_blue_cakrawala_100,
3386
+ text: PrimitiveColor.color_blue_cakrawala_700
3199
3387
  },
3200
- "& .MuiSwitch-track": {
3201
- borderRadius: Radius.radius_x,
3202
- opacity: 1,
3203
- backgroundColor: theme.palette.mode === "dark" ? DerivedColor.color_text_disabled : DerivedColor.color_text_placeholder,
3204
- boxSizing: "border-box"
3388
+ warning: {
3389
+ bg: PrimitiveColor.color_yellow_100,
3390
+ text: PrimitiveColor.color_yellow_700
3391
+ },
3392
+ default: {
3393
+ bg: PrimitiveColor.color_neutral_200,
3394
+ text: PrimitiveColor.color_neutral_900
3205
3395
  }
3206
- }));
3207
- var BaseSwitch = ({
3208
- status = false,
3209
- label,
3210
- labelPlacement = "end",
3211
- // start | end | top | bottom
3212
- isDisabled = false,
3213
- onChange
3214
- }) => {
3215
- const [checked, setChecked] = useState(status);
3216
- useEffect(() => {
3217
- setChecked(status);
3218
- }, [status]);
3219
- const handleChange = (event) => {
3220
- setChecked(event.target.checked);
3221
- onChange == null ? void 0 : onChange(event);
3222
- };
3223
- const layoutMap = {
3224
- start: {
3225
- gridAutoFlow: "column dense",
3226
- direction: "rtl"
3227
- },
3228
- end: {
3229
- gridAutoFlow: "column",
3230
- direction: "ltr"
3231
- },
3232
- top: {
3233
- gridAutoFlow: "row",
3234
- direction: "ltr"
3235
- },
3236
- bottom: {
3237
- gridAutoFlow: "row dense",
3238
- direction: "rtl"
3239
- }
3240
- };
3241
- const layout = layoutMap[labelPlacement] || layoutMap.end;
3242
- return /* @__PURE__ */ jsxs(
3243
- "div",
3244
- {
3245
- style: {
3246
- display: "grid",
3247
- gap: SpacingToken.spacing2,
3248
- alignItems: "center",
3249
- justifyItems: "start",
3250
- gridAutoFlow: layout.gridAutoFlow,
3251
- direction: layout.direction
3252
- },
3253
- children: [
3254
- /* @__PURE__ */ jsx(
3255
- AntSwitch,
3256
- {
3257
- checked,
3258
- onChange: handleChange,
3259
- disabled: isDisabled,
3260
- inputProps: { "aria-label": "controlled" }
3261
- }
3262
- ),
3263
- label ? /* @__PURE__ */ jsx(
3264
- "p",
3265
- {
3266
- style: __spreadProps(__spreadValues({}, VariantStyles.body1_regular), {
3267
- color: isDisabled ? DerivedColor.color_text_placeholder : DerivedColor.color_text_default,
3268
- margin: 0
3269
- }),
3270
- children: label
3271
- }
3272
- ) : null
3273
- ]
3274
- }
3396
+ };
3397
+ var BaseSnackbar = (_a126) => {
3398
+ var _b126 = _a126, {
3399
+ open = false,
3400
+ onClose,
3401
+ message,
3402
+ variant = "info",
3403
+ duration = 3e3,
3404
+ position = { vertical: "top", horizontal: "center" },
3405
+ icon,
3406
+ sx = {}
3407
+ } = _b126, props = __objRest(_b126, [
3408
+ "open",
3409
+ "onClose",
3410
+ "message",
3411
+ "variant",
3412
+ "duration",
3413
+ "position",
3414
+ "icon",
3415
+ "sx"
3416
+ ]);
3417
+ var _a127;
3418
+ const config = (_a127 = VARIANT_CONFIG[variant]) != null ? _a127 : VARIANT_CONFIG.info;
3419
+ const renderIcon = useMemo(() => {
3420
+ if (!icon) return false;
3421
+ if (isValidElement(icon)) return icon;
3422
+ if (typeof icon === "function")
3423
+ return createElement(icon, { size: 20, color: config.text });
3424
+ return false;
3425
+ }, [icon, config]);
3426
+ return /* @__PURE__ */ jsx(
3427
+ Snackbar,
3428
+ __spreadProps(__spreadValues({
3429
+ open,
3430
+ autoHideDuration: duration,
3431
+ onClose,
3432
+ anchorOrigin: position
3433
+ }, props), {
3434
+ children: /* @__PURE__ */ jsx(
3435
+ Alert2,
3436
+ {
3437
+ severity: variant === "default" ? void 0 : variant,
3438
+ variant: "filled",
3439
+ icon: renderIcon,
3440
+ action: onClose ? /* @__PURE__ */ jsx(
3441
+ IconButton2,
3442
+ {
3443
+ "aria-label": "close",
3444
+ onClick: onClose,
3445
+ sx: {
3446
+ color: config.text,
3447
+ p: 0.5
3448
+ },
3449
+ children: /* @__PURE__ */ jsx(IconX, { size: 18 })
3450
+ }
3451
+ ) : null,
3452
+ sx: __spreadValues({
3453
+ backgroundColor: config.bg,
3454
+ color: config.text,
3455
+ borderRadius: Radius.radius_2,
3456
+ boxShadow: "0px 4px 12px rgba(0, 0, 0, 0.15)",
3457
+ alignItems: "center",
3458
+ "& .MuiAlert-icon": {
3459
+ color: config.text
3460
+ },
3461
+ "& .MuiAlert-message": {
3462
+ color: config.text,
3463
+ fontWeight: 500
3464
+ },
3465
+ "& .MuiAlert-action": {
3466
+ pt: 0
3467
+ }
3468
+ }, sx),
3469
+ children: message
3470
+ }
3471
+ )
3472
+ })
3275
3473
  );
3276
3474
  };
3277
- var _a20, _b20;
3278
- var MuiCheckbox = (_b20 = (_a20 = MuiCheckboxRaw) == null ? void 0 : _a20.default) != null ? _b20 : MuiCheckboxRaw;
3279
- var _a21, _b21;
3280
- var FormControlLabel = (_b21 = (_a21 = FormControlLabelRaw) == null ? void 0 : _a21.default) != null ? _b21 : FormControlLabelRaw;
3281
3475
  var _a22, _b22;
3282
- var FormGroup = (_b22 = (_a22 = FormGroupRaw) == null ? void 0 : _a22.default) != null ? _b22 : FormGroupRaw;
3283
- var BaseCheckbox = (_a107) => {
3284
- var _b107 = _a107, {
3285
- checked,
3286
- onChange,
3476
+ var MuiCheckbox = (_b22 = (_a22 = MuiCheckboxRaw) == null ? void 0 : _a22.default) != null ? _b22 : MuiCheckboxRaw;
3477
+ var _a23, _b23;
3478
+ var FormControlLabel = (_b23 = (_a23 = FormControlLabelRaw) == null ? void 0 : _a23.default) != null ? _b23 : FormControlLabelRaw;
3479
+ var _a24, _b24;
3480
+ var FormGroup = (_b24 = (_a24 = FormGroupRaw) == null ? void 0 : _a24.default) != null ? _b24 : FormGroupRaw;
3481
+ var _a25, _b25;
3482
+ var Box8 = (_b25 = (_a25 = BoxRaw) == null ? void 0 : _a25.default) != null ? _b25 : BoxRaw;
3483
+ var BaseCheckbox = (_a126) => {
3484
+ var _b126 = _a126, {
3485
+ name = "",
3486
+ control = null,
3487
+ defaultValue,
3488
+ title,
3287
3489
  options,
3288
3490
  label,
3289
3491
  disabled = false,
3290
3492
  labelPlacement = "end",
3291
3493
  isHorizontal = false,
3292
3494
  sx
3293
- } = _b107, restProps = __objRest(_b107, [
3294
- "checked",
3295
- "onChange",
3495
+ } = _b126, restProps = __objRest(_b126, [
3496
+ "name",
3497
+ "control",
3498
+ "defaultValue",
3499
+ "title",
3296
3500
  "options",
3297
3501
  "label",
3298
3502
  "disabled",
@@ -3300,88 +3504,165 @@ var BaseCheckbox = (_a107) => {
3300
3504
  "isHorizontal",
3301
3505
  "sx"
3302
3506
  ]);
3507
+ var _a127, _b127, _c;
3508
+ const hookForm = control ? useController({ control, name, defaultValue: defaultValue != null ? defaultValue : [] }) : null;
3509
+ const field = hookForm == null ? void 0 : hookForm.field;
3510
+ const formState = hookForm == null ? void 0 : hookForm.formState;
3511
+ const hasError = !!((_a127 = formState == null ? void 0 : formState.errors) == null ? void 0 : _a127[name]);
3512
+ const checkedValue = field ? field.value : restProps.checked;
3513
+ const handleChange = field ? (newVal) => field.onChange(newVal) : restProps.onChange;
3303
3514
  const isGroup = Array.isArray(options);
3304
3515
  const handleGroupChange = (optionValue, nextChecked) => {
3305
- let newChecked = checked ? [...checked] : [];
3516
+ let newChecked = checkedValue ? [...checkedValue] : [];
3306
3517
  if (nextChecked) {
3307
3518
  if (!newChecked.includes(optionValue)) newChecked.push(optionValue);
3308
3519
  } else {
3309
3520
  newChecked = newChecked.filter((v) => v !== optionValue);
3310
3521
  }
3311
- onChange == null ? void 0 : onChange(newChecked);
3522
+ handleChange == null ? void 0 : handleChange(newChecked);
3312
3523
  };
3313
3524
  const handleSingleChange = (e) => {
3314
- onChange == null ? void 0 : onChange(e.target.checked, e);
3525
+ var _a128;
3526
+ if (field) {
3527
+ field.onChange(e.target.checked);
3528
+ } else {
3529
+ (_a128 = restProps.onChange) == null ? void 0 : _a128.call(restProps, e.target.checked, e);
3530
+ }
3315
3531
  };
3532
+ const errorMessage = (_c = (_b127 = formState == null ? void 0 : formState.errors) == null ? void 0 : _b127[name]) == null ? void 0 : _c.message;
3533
+ const iconColor = hasError ? DerivedColor.color_text_danger : DerivedColor.color_border_default;
3534
+ const checkedIconColor = hasError ? DerivedColor.color_text_danger : DerivedColor.color_bg_brand_primary;
3316
3535
  if (isGroup) {
3317
- return /* @__PURE__ */ jsx(FormGroup, { row: isHorizontal, sx: { gap: isHorizontal ? 2 : 0 }, children: options.map((option) => {
3318
- var _a108, _b108;
3319
- return /* @__PURE__ */ jsx(
3320
- FormControlLabel,
3536
+ return /* @__PURE__ */ jsxs(Box8, { children: [
3537
+ title && /* @__PURE__ */ jsx(
3538
+ BaseTypography,
3321
3539
  {
3322
- label: option.label,
3323
- labelPlacement,
3324
- control: /* @__PURE__ */ jsx(
3325
- MuiCheckbox,
3326
- __spreadValues({
3327
- checked: (checked || []).includes(option.value),
3328
- onChange: (e) => handleGroupChange(option.value, e.target.checked),
3329
- icon: /* @__PURE__ */ jsx(IconSquare, { size: 22, color: DerivedColor.color_border_default }),
3330
- checkedIcon: /* @__PURE__ */ jsx(IconSquareCheckFilled, { size: 22, color: ((_a108 = option.disabled) != null ? _a108 : disabled) ? DerivedColor.color_bg_disabled : DerivedColor.color_bg_brand_primary }),
3331
- disabled: (_b108 = option.disabled) != null ? _b108 : disabled,
3332
- sx: __spreadValues({
3333
- ":hover": { backgroundColor: "#C0DBF1" }
3334
- }, sx)
3335
- }, restProps)
3336
- )
3337
- },
3338
- option.value
3339
- );
3340
- }) });
3540
+ variant: "body1_regular.default",
3541
+ sx: {
3542
+ fontWeight: 600,
3543
+ color: hasError ? DerivedColor.color_text_danger : DerivedColor.color_text_default,
3544
+ mb: "4px"
3545
+ },
3546
+ children: title
3547
+ }
3548
+ ),
3549
+ /* @__PURE__ */ jsx(FormGroup, { row: isHorizontal, sx: { gap: isHorizontal ? 2 : 0 }, children: options.map((option) => {
3550
+ var _a128, _b128;
3551
+ return /* @__PURE__ */ jsx(
3552
+ FormControlLabel,
3553
+ {
3554
+ label: option.label,
3555
+ labelPlacement,
3556
+ sx: {
3557
+ "& .MuiFormControlLabel-label": { fontSize: "14px" }
3558
+ },
3559
+ control: /* @__PURE__ */ jsx(
3560
+ MuiCheckbox,
3561
+ __spreadValues({
3562
+ checked: (checkedValue || []).includes(option.value),
3563
+ onChange: (e) => handleGroupChange(option.value, e.target.checked),
3564
+ icon: /* @__PURE__ */ jsx(IconSquare, { size: 22, color: iconColor }),
3565
+ checkedIcon: /* @__PURE__ */ jsx(IconSquareCheckFilled, { size: 22, color: ((_a128 = option.disabled) != null ? _a128 : disabled) ? DerivedColor.color_bg_disabled : checkedIconColor }),
3566
+ disabled: (_b128 = option.disabled) != null ? _b128 : disabled,
3567
+ sx: {
3568
+ ":hover": { backgroundColor: "#C0DBF1" }
3569
+ }
3570
+ }, field ? {} : restProps)
3571
+ )
3572
+ },
3573
+ option.value
3574
+ );
3575
+ }) }),
3576
+ errorMessage && /* @__PURE__ */ jsx(BaseTypography, { variant: "body1_regular.danger", sx: { mt: "4px" }, children: errorMessage })
3577
+ ] });
3341
3578
  }
3342
- return /* @__PURE__ */ jsx(
3343
- FormControlLabel,
3344
- {
3345
- label,
3346
- labelPlacement,
3347
- control: /* @__PURE__ */ jsx(
3348
- MuiCheckbox,
3349
- __spreadValues({
3350
- checked: !!checked,
3351
- onChange: handleSingleChange,
3352
- icon: /* @__PURE__ */ jsx(IconSquare, { size: 22, color: DerivedColor.color_border_default }),
3353
- checkedIcon: /* @__PURE__ */ jsx(IconSquareCheckFilled, { size: 22, color: disabled ? DerivedColor.color_bg_disabled : DerivedColor.color_bg_brand_primary }),
3354
- disabled,
3355
- sx: __spreadValues({
3356
- ":hover": { backgroundColor: "#C0DBF1" }
3357
- }, sx)
3358
- }, restProps)
3359
- )
3360
- }
3361
- );
3579
+ return /* @__PURE__ */ jsxs(Box8, { children: [
3580
+ title && /* @__PURE__ */ jsx(
3581
+ BaseTypography,
3582
+ {
3583
+ variant: "body1_regular.default",
3584
+ sx: {
3585
+ fontWeight: 600,
3586
+ color: hasError ? DerivedColor.color_text_danger : DerivedColor.color_text_default,
3587
+ mb: "4px"
3588
+ },
3589
+ children: title
3590
+ }
3591
+ ),
3592
+ /* @__PURE__ */ jsx(
3593
+ FormControlLabel,
3594
+ {
3595
+ label,
3596
+ labelPlacement,
3597
+ sx: {
3598
+ "& .MuiFormControlLabel-label": { fontSize: "14px" }
3599
+ },
3600
+ control: /* @__PURE__ */ jsx(
3601
+ MuiCheckbox,
3602
+ __spreadValues({
3603
+ checked: !!checkedValue,
3604
+ onChange: handleSingleChange,
3605
+ icon: /* @__PURE__ */ jsx(IconSquare, { size: 22, color: iconColor }),
3606
+ checkedIcon: /* @__PURE__ */ jsx(IconSquareCheckFilled, { size: 22, color: disabled ? DerivedColor.color_bg_disabled : checkedIconColor }),
3607
+ disabled,
3608
+ sx: __spreadValues({
3609
+ ":hover": { backgroundColor: "#C0DBF1" }
3610
+ }, sx)
3611
+ }, field ? {} : restProps)
3612
+ )
3613
+ }
3614
+ ),
3615
+ errorMessage && /* @__PURE__ */ jsx(BaseTypography, { variant: "body1_regular.danger", sx: { mt: "4px" }, children: errorMessage })
3616
+ ] });
3362
3617
  };
3363
- var _a23, _b23;
3364
- var Box7 = (_b23 = (_a23 = BoxRaw) == null ? void 0 : _a23.default) != null ? _b23 : BoxRaw;
3365
- var _a24, _b24;
3366
- var Checkbox = (_b24 = (_a24 = MuiCheckboxRaw) == null ? void 0 : _a24.default) != null ? _b24 : MuiCheckboxRaw;
3367
- var _a25, _b25;
3368
- var CircularProgress = (_b25 = (_a25 = CircularProgressRaw) == null ? void 0 : _a25.default) != null ? _b25 : CircularProgressRaw;
3369
3618
  var _a26, _b26;
3370
- var Paper = (_b26 = (_a26 = PaperRaw) == null ? void 0 : _a26.default) != null ? _b26 : PaperRaw;
3619
+ var KeyboardArrowRight = (_b26 = (_a26 = KeyboardArrowRightRaw) == null ? void 0 : _a26.default) != null ? _b26 : KeyboardArrowRightRaw;
3371
3620
  var _a27, _b27;
3372
- var Table = (_b27 = (_a27 = TableRaw) == null ? void 0 : _a27.default) != null ? _b27 : TableRaw;
3621
+ var KeyboardArrowLeft = (_b27 = (_a27 = KeyboardArrowLeftRaw) == null ? void 0 : _a27.default) != null ? _b27 : KeyboardArrowLeftRaw;
3373
3622
  var _a28, _b28;
3374
- var TableBody = (_b28 = (_a28 = TableBodyRaw) == null ? void 0 : _a28.default) != null ? _b28 : TableBodyRaw;
3623
+ var IconButton3 = (_b28 = (_a28 = IconButtonRaw) == null ? void 0 : _a28.default) != null ? _b28 : IconButtonRaw;
3624
+ var ServerSidePaginationActions = (props) => {
3625
+ const { page, onPageChange, rowsPerPage, currentPageData } = props;
3626
+ const handleBackButtonClick = () => {
3627
+ onPageChange(null, page - 1);
3628
+ };
3629
+ const handleNextButtonClick = () => {
3630
+ onPageChange(null, page + 1);
3631
+ };
3632
+ return /* @__PURE__ */ jsxs(Fragment, { children: [
3633
+ /* @__PURE__ */ jsx(IconButton3, { onClick: handleBackButtonClick, disabled: page === 0, children: /* @__PURE__ */ jsx(KeyboardArrowLeft, {}) }),
3634
+ /* @__PURE__ */ jsx(
3635
+ IconButton3,
3636
+ {
3637
+ onClick: handleNextButtonClick,
3638
+ disabled: !(currentPageData == null ? void 0 : currentPageData.length) || (currentPageData == null ? void 0 : currentPageData.length) < rowsPerPage,
3639
+ children: /* @__PURE__ */ jsx(KeyboardArrowRight, {})
3640
+ }
3641
+ )
3642
+ ] });
3643
+ };
3375
3644
  var _a29, _b29;
3376
- var TableCell = (_b29 = (_a29 = TableCellRaw) == null ? void 0 : _a29.default) != null ? _b29 : TableCellRaw;
3645
+ var Box9 = (_b29 = (_a29 = BoxRaw) == null ? void 0 : _a29.default) != null ? _b29 : BoxRaw;
3377
3646
  var _a30, _b30;
3378
- var TableContainer = (_b30 = (_a30 = TableContainerRaw) == null ? void 0 : _a30.default) != null ? _b30 : TableContainerRaw;
3647
+ var Checkbox = (_b30 = (_a30 = MuiCheckboxRaw) == null ? void 0 : _a30.default) != null ? _b30 : MuiCheckboxRaw;
3379
3648
  var _a31, _b31;
3380
- var TableHead = (_b31 = (_a31 = TableHeadRaw) == null ? void 0 : _a31.default) != null ? _b31 : TableHeadRaw;
3649
+ var CircularProgress = (_b31 = (_a31 = CircularProgressRaw) == null ? void 0 : _a31.default) != null ? _b31 : CircularProgressRaw;
3381
3650
  var _a32, _b32;
3382
- var TablePagination = (_b32 = (_a32 = TablePaginationRaw) == null ? void 0 : _a32.default) != null ? _b32 : TablePaginationRaw;
3651
+ var Paper = (_b32 = (_a32 = PaperRaw) == null ? void 0 : _a32.default) != null ? _b32 : PaperRaw;
3383
3652
  var _a33, _b33;
3384
- var TableRow = (_b33 = (_a33 = TableRowRaw) == null ? void 0 : _a33.default) != null ? _b33 : TableRowRaw;
3653
+ var Table = (_b33 = (_a33 = TableRaw) == null ? void 0 : _a33.default) != null ? _b33 : TableRaw;
3654
+ var _a34, _b34;
3655
+ var TableBody = (_b34 = (_a34 = TableBodyRaw) == null ? void 0 : _a34.default) != null ? _b34 : TableBodyRaw;
3656
+ var _a35, _b35;
3657
+ var TableCell = (_b35 = (_a35 = TableCellRaw) == null ? void 0 : _a35.default) != null ? _b35 : TableCellRaw;
3658
+ var _a36, _b36;
3659
+ var TableContainer = (_b36 = (_a36 = TableContainerRaw) == null ? void 0 : _a36.default) != null ? _b36 : TableContainerRaw;
3660
+ var _a37, _b37;
3661
+ var TableHead = (_b37 = (_a37 = TableHeadRaw) == null ? void 0 : _a37.default) != null ? _b37 : TableHeadRaw;
3662
+ var _a38, _b38;
3663
+ var TablePagination = (_b38 = (_a38 = TablePaginationRaw) == null ? void 0 : _a38.default) != null ? _b38 : TablePaginationRaw;
3664
+ var _a39, _b39;
3665
+ var TableRow = (_b39 = (_a39 = TableRowRaw) == null ? void 0 : _a39.default) != null ? _b39 : TableRowRaw;
3385
3666
  var DEFAULT_COLUMN_WIDTH = 160;
3386
3667
  var HEADER_ROW_HEIGHT = 48;
3387
3668
  var SELECTION_COLUMN_WIDTH = 56;
@@ -3415,13 +3696,13 @@ var compareValue = (a, b) => {
3415
3696
  });
3416
3697
  };
3417
3698
  var getColumnWidth = (column) => {
3418
- var _a107, _b107;
3419
- return Number((_b107 = (_a107 = column.width) != null ? _a107 : column.minWidth) != null ? _b107 : DEFAULT_COLUMN_WIDTH);
3699
+ var _a126, _b126;
3700
+ return Number((_b126 = (_a126 = column.width) != null ? _a126 : column.minWidth) != null ? _b126 : DEFAULT_COLUMN_WIDTH);
3420
3701
  };
3421
3702
  var getStickyLeft = (widths, index) => widths.slice(0, index).reduce((sum, width) => sum + width, 0);
3422
3703
  var getStickyRight = (widths, index) => widths.slice(index + 1).reduce((sum, width) => sum + width, 0);
3423
3704
  var normalizeColumn = (column, index, sortingEnabled) => {
3424
- var _a107, _b107, _c, _d, _e, _f, _g, _h, _i, _j;
3705
+ var _a126, _b126, _c, _d, _e, _f, _g, _h, _i, _j;
3425
3706
  if (typeof column === "string") {
3426
3707
  return {
3427
3708
  id: getLastPathSegment(column) || `column-${index}`,
@@ -3434,7 +3715,7 @@ var normalizeColumn = (column, index, sortingEnabled) => {
3434
3715
  headerAlign: "center"
3435
3716
  };
3436
3717
  }
3437
- const accessorKey = (_c = (_b107 = (_a107 = column.accessorKey) != null ? _a107 : column.key) != null ? _b107 : column.field) != null ? _c : column.id;
3718
+ const accessorKey = (_c = (_b126 = (_a126 = column.accessorKey) != null ? _a126 : column.key) != null ? _b126 : column.field) != null ? _c : column.id;
3438
3719
  const id2 = (_e = (_d = column.id) != null ? _d : getLastPathSegment(accessorKey)) != null ? _e : `column-${index}`;
3439
3720
  return __spreadProps(__spreadValues({
3440
3721
  width: DEFAULT_COLUMN_WIDTH,
@@ -3454,12 +3735,12 @@ var normalizeHeaderRows = (header, columns) => {
3454
3735
  }
3455
3736
  return [
3456
3737
  columns.map((column) => {
3457
- var _a107, _b107;
3738
+ var _a126, _b126;
3458
3739
  return {
3459
3740
  id: column.id,
3460
3741
  key: column.id,
3461
3742
  label: column.header,
3462
- align: (_b107 = (_a107 = column.headerAlign) != null ? _a107 : column.align) != null ? _b107 : "center",
3743
+ align: (_b126 = (_a126 = column.headerAlign) != null ? _a126 : column.align) != null ? _b126 : "center",
3463
3744
  rowSpan: 1
3464
3745
  };
3465
3746
  })
@@ -3468,13 +3749,13 @@ var normalizeHeaderRows = (header, columns) => {
3468
3749
  var buildHeaderLayout = (headerRows) => {
3469
3750
  const occupied = [];
3470
3751
  return headerRows.map((row, rowIndex) => {
3471
- var _a107;
3472
- (_a107 = occupied[rowIndex]) != null ? _a107 : occupied[rowIndex] = [];
3752
+ var _a126;
3753
+ (_a126 = occupied[rowIndex]) != null ? _a126 : occupied[rowIndex] = [];
3473
3754
  let pointer = 0;
3474
3755
  return row.map((cell, cellIndex) => {
3475
- var _a108, _b107, _c, _d, _e, _f, _g;
3756
+ var _a127, _b126, _c, _d, _e, _f, _g;
3476
3757
  while (occupied[rowIndex][pointer]) pointer += 1;
3477
- const colSpan = (_b107 = (_a108 = cell.colSpan) != null ? _a108 : cell.colspan) != null ? _b107 : 1;
3758
+ const colSpan = (_b126 = (_a127 = cell.colSpan) != null ? _a127 : cell.colspan) != null ? _b126 : 1;
3478
3759
  const rowSpan = (_d = (_c = cell.rowSpan) != null ? _c : cell.rowspan) != null ? _d : 1;
3479
3760
  const start = pointer;
3480
3761
  for (let r = rowIndex; r < rowIndex + rowSpan; r += 1) {
@@ -3510,8 +3791,8 @@ var renderSortIcon = (sortKey, sortState) => {
3510
3791
  return sortState.direction === "asc" ? /* @__PURE__ */ jsx(IconArrowUp, { size: 16, color: activeColor }) : /* @__PURE__ */ jsx(IconArrowDown, { size: 16, color: activeColor });
3511
3792
  };
3512
3793
  var getSortField = (column) => {
3513
- var _a107, _b107, _c;
3514
- return (_c = (_b107 = (_a107 = column.sortField) != null ? _a107 : column.accessorKey) != null ? _b107 : column.key) != null ? _c : column.id;
3794
+ var _a126, _b126, _c;
3795
+ return (_c = (_b126 = (_a126 = column.sortField) != null ? _a126 : column.accessorKey) != null ? _b126 : column.key) != null ? _c : column.id;
3515
3796
  };
3516
3797
  var BaseDatatable = ({
3517
3798
  columns = EMPTY_ARRAY,
@@ -3532,7 +3813,7 @@ var BaseDatatable = ({
3532
3813
  containerSx = EMPTY_OBJECT,
3533
3814
  tableSx = EMPTY_OBJECT
3534
3815
  }) => {
3535
- var _a107, _b107, _c, _d, _e;
3816
+ var _a126, _b126, _c, _d, _e;
3536
3817
  const featureConfig = useMemo(
3537
3818
  () => __spreadValues({
3538
3819
  sorting: false,
@@ -3580,7 +3861,7 @@ var BaseDatatable = ({
3580
3861
  const [internalSelectedIds, setInternalSelectedIds] = useState(
3581
3862
  selectionConfig.defaultSelectedRowIds
3582
3863
  );
3583
- const [internalPage, setInternalPage] = useState((_a107 = paginationConfig.page) != null ? _a107 : 0);
3864
+ const [internalPage, setInternalPage] = useState((_a126 = paginationConfig.page) != null ? _a126 : 0);
3584
3865
  const [internalRowsPerPage, setInternalRowsPerPage] = useState(
3585
3866
  paginationConfig.rowsPerPage
3586
3867
  );
@@ -3589,7 +3870,7 @@ var BaseDatatable = ({
3589
3870
  const isRowSelectable = selectionConfig.isRowSelectable;
3590
3871
  const selectionPosition = selectionConfig.position;
3591
3872
  const selectedIds = controlledSelectedIds != null ? controlledSelectedIds : internalSelectedIds;
3592
- const sortState = (_b107 = featureConfig.sortState) != null ? _b107 : internalSortState;
3873
+ const sortState = (_b126 = featureConfig.sortState) != null ? _b126 : internalSortState;
3593
3874
  const currentPage = (_c = pagination.page) != null ? _c : internalPage;
3594
3875
  const currentRowsPerPage = (_d = pagination.rowsPerPage) != null ? _d : internalRowsPerPage;
3595
3876
  const isHeaderInteractive = typeof featureConfig.headerInteractive === "boolean" ? featureConfig.headerInteractive : featureConfig.sorting;
@@ -3626,8 +3907,8 @@ var BaseDatatable = ({
3626
3907
  );
3627
3908
  const resolveRowId = useCallback(
3628
3909
  (row, rowIndex) => {
3629
- var _a108, _b108;
3630
- return (_b108 = (_a108 = getRowId == null ? void 0 : getRowId(row, rowIndex)) != null ? _a108 : row == null ? void 0 : row.id) != null ? _b108 : rowIndex;
3910
+ var _a127, _b127;
3911
+ return (_b127 = (_a127 = getRowId == null ? void 0 : getRowId(row, rowIndex)) != null ? _a127 : row == null ? void 0 : row.id) != null ? _b127 : rowIndex;
3631
3912
  },
3632
3913
  [getRowId]
3633
3914
  );
@@ -3750,17 +4031,17 @@ var BaseDatatable = ({
3750
4031
  ]);
3751
4032
  const handlePaginationPageChange = useCallback(
3752
4033
  (event, nextPage) => {
3753
- var _a108;
4034
+ var _a127;
3754
4035
  if (pagination.page === void 0) {
3755
4036
  setInternalPage(nextPage);
3756
4037
  }
3757
- (_a108 = paginationConfig.onPageChange) == null ? void 0 : _a108.call(paginationConfig, event, nextPage);
4038
+ (_a127 = paginationConfig.onPageChange) == null ? void 0 : _a127.call(paginationConfig, event, nextPage);
3758
4039
  },
3759
4040
  [pagination.page, paginationConfig]
3760
4041
  );
3761
4042
  const handleRowsPerPageChange = useCallback(
3762
4043
  (event) => {
3763
- var _a108;
4044
+ var _a127;
3764
4045
  const nextRowsPerPage = Number(event.target.value);
3765
4046
  if (pagination.rowsPerPage === void 0) {
3766
4047
  setInternalRowsPerPage(nextRowsPerPage);
@@ -3768,15 +4049,15 @@ var BaseDatatable = ({
3768
4049
  if (pagination.page === void 0) {
3769
4050
  setInternalPage(0);
3770
4051
  }
3771
- (_a108 = paginationConfig.onRowsPerPageChange) == null ? void 0 : _a108.call(paginationConfig, event, nextRowsPerPage);
4052
+ (_a127 = paginationConfig.onRowsPerPageChange) == null ? void 0 : _a127.call(paginationConfig, event, nextRowsPerPage);
3772
4053
  },
3773
4054
  [pagination.page, pagination.rowsPerPage, paginationConfig]
3774
4055
  );
3775
4056
  const handleSort = useCallback(
3776
4057
  (cell) => {
3777
- var _a108, _b108, _c2, _d2, _e2, _f;
4058
+ var _a127, _b127, _c2, _d2, _e2, _f;
3778
4059
  if (!featureConfig.sorting) return;
3779
- if (((_a108 = cell.colSpan) != null ? _a108 : 1) > 1 || ((_b108 = cell.rowSpan) != null ? _b108 : 1) > 1) return;
4060
+ if (((_a127 = cell.colSpan) != null ? _a127 : 1) > 1 || ((_b127 = cell.rowSpan) != null ? _b127 : 1) > 1) return;
3780
4061
  const sortKey = (_d2 = (_c2 = cell.sortKey) != null ? _c2 : cell.key) != null ? _d2 : cell.id;
3781
4062
  const targetColumn = normalizedColumns.find((column) => column.id === sortKey);
3782
4063
  if (!(targetColumn == null ? void 0 : targetColumn.sortable)) return;
@@ -3823,8 +4104,8 @@ var BaseDatatable = ({
3823
4104
  );
3824
4105
  const renderBodyCell = useCallback(
3825
4106
  (column, row, rowIndex, columnIndex, rowId, rowActive, cellOverrides = EMPTY_OBJECT) => {
3826
- var _a108, _b108, _c2, _d2, _e2;
3827
- const resolvedColumn = column.isSelection || column.id === selectionColumn.id ? selectionColumn : (_a108 = visibleColumns.find((item) => item.id === column.id)) != null ? _a108 : column;
4107
+ var _a127, _b127, _c2, _d2, _e2;
4108
+ const resolvedColumn = column.isSelection || column.id === selectionColumn.id ? selectionColumn : (_a127 = visibleColumns.find((item) => item.id === column.id)) != null ? _a127 : column;
3828
4109
  if (resolvedColumn.isSelection) {
3829
4110
  const isSelectable = isRowSelectable ? isRowSelectable(row, rowIndex) : true;
3830
4111
  return /* @__PURE__ */ jsx(
@@ -3847,7 +4128,7 @@ var BaseDatatable = ({
3847
4128
  boxShadow: selectionPosition === "left" && columnIndex === stickyLeftCount - 1 ? `2px 0 6px ${COLORS.stickyShadow}` : selectionPosition === "right" && columnIndex === visibleColumns.length - stickyRightCount ? `-2px 0 6px ${COLORS.stickyShadow}` : "none"
3848
4129
  }, cellOverrides.sx),
3849
4130
  children: /* @__PURE__ */ jsx(
3850
- Box7,
4131
+ Box9,
3851
4132
  {
3852
4133
  sx: {
3853
4134
  display: "flex",
@@ -3880,7 +4161,7 @@ var BaseDatatable = ({
3880
4161
  return /* @__PURE__ */ jsx(
3881
4162
  TableCell,
3882
4163
  {
3883
- align: (_b108 = resolvedColumn.align) != null ? _b108 : "left",
4164
+ align: (_b127 = resolvedColumn.align) != null ? _b127 : "left",
3884
4165
  rowSpan: cellOverrides.rowSpan,
3885
4166
  colSpan: cellOverrides.colSpan,
3886
4167
  sx: __spreadValues(__spreadValues({
@@ -3954,8 +4235,8 @@ var BaseDatatable = ({
3954
4235
  }, tableSx),
3955
4236
  children: [
3956
4237
  /* @__PURE__ */ jsx(TableHead, { children: rowsForHeader.map((row, rowIndex) => /* @__PURE__ */ jsx(TableRow, { children: row.map((cell) => {
3957
- var _a108, _b108, _c2, _d2, _e2, _f, _g, _h, _i;
3958
- const sortKey = (_b108 = (_a108 = cell.sortKey) != null ? _a108 : cell.key) != null ? _b108 : cell.id;
4238
+ var _a127, _b127, _c2, _d2, _e2, _f, _g, _h, _i;
4239
+ const sortKey = (_b127 = (_a127 = cell.sortKey) != null ? _a127 : cell.key) != null ? _b127 : cell.id;
3959
4240
  const targetColumn = normalizedColumns.find((column) => column.id === sortKey);
3960
4241
  const isSortable = featureConfig.sorting && ((_c2 = cell.colSpan) != null ? _c2 : 1) === 1 && ((_d2 = cell.rowSpan) != null ? _d2 : 1) === 1 && (targetColumn == null ? void 0 : targetColumn.sortable);
3961
4242
  const shouldStickLeft = cell.sticky === "left" || cell.end < stickyLeftCount;
@@ -3996,7 +4277,7 @@ var BaseDatatable = ({
3996
4277
  } : void 0
3997
4278
  }),
3998
4279
  children: /* @__PURE__ */ jsxs(
3999
- Box7,
4280
+ Box9,
4000
4281
  {
4001
4282
  sx: {
4002
4283
  display: "flex",
@@ -4015,7 +4296,7 @@ var BaseDatatable = ({
4015
4296
  );
4016
4297
  }) }, `header-${rowIndex}`)) }),
4017
4298
  /* @__PURE__ */ jsx(TableBody, { children: loading ? /* @__PURE__ */ jsx(TableRow, { children: /* @__PURE__ */ jsx(TableCell, { align: "center", colSpan: visibleColumns.length, children: /* @__PURE__ */ jsxs(
4018
- Box7,
4299
+ Box9,
4019
4300
  {
4020
4301
  sx: {
4021
4302
  minHeight: 120,
@@ -4129,26 +4410,26 @@ BaseDatatable.propTypes = {
4129
4410
  tableSx: PropTypes3.object
4130
4411
  };
4131
4412
  React4.memo(BaseDatatable);
4132
- var _a34, _b34;
4133
- var TextField = (_b34 = (_a34 = TextFieldRaw) == null ? void 0 : _a34.default) != null ? _b34 : TextFieldRaw;
4134
- var _a35, _b35;
4135
- var Box8 = (_b35 = (_a35 = BoxRaw) == null ? void 0 : _a35.default) != null ? _b35 : BoxRaw;
4136
- var _a36, _b36;
4137
- var Popover = (_b36 = (_a36 = PopoverRaw) == null ? void 0 : _a36.default) != null ? _b36 : PopoverRaw;
4138
- var _a37, _b37;
4139
- var InputAdornment = (_b37 = (_a37 = InputAdornmentRaw) == null ? void 0 : _a37.default) != null ? _b37 : InputAdornmentRaw;
4140
- var _a38, _b38;
4141
- var IconButton3 = (_b38 = (_a38 = IconButtonRaw) == null ? void 0 : _a38.default) != null ? _b38 : IconButtonRaw;
4142
- var _a39, _b39;
4143
- var Typography = (_b39 = (_a39 = MuiTypographyRaw) == null ? void 0 : _a39.default) != null ? _b39 : MuiTypographyRaw;
4144
4413
  var _a40, _b40;
4145
- var DatePicker = (_b40 = (_a40 = DatePicker$1) == null ? void 0 : _a40.default) != null ? _b40 : DatePicker$1;
4414
+ var TextField = (_b40 = (_a40 = TextFieldRaw) == null ? void 0 : _a40.default) != null ? _b40 : TextFieldRaw;
4146
4415
  var _a41, _b41;
4147
- var DateTimePicker = (_b41 = (_a41 = DateTimePicker$1) == null ? void 0 : _a41.default) != null ? _b41 : DateTimePicker$1;
4416
+ var Box10 = (_b41 = (_a41 = BoxRaw) == null ? void 0 : _a41.default) != null ? _b41 : BoxRaw;
4148
4417
  var _a42, _b42;
4149
- var TimePicker = (_b42 = (_a42 = TimePicker$1) == null ? void 0 : _a42.default) != null ? _b42 : TimePicker$1;
4150
- var BaseDatePicker = (_a107) => {
4151
- var _b107 = _a107, {
4418
+ var Popover = (_b42 = (_a42 = PopoverRaw) == null ? void 0 : _a42.default) != null ? _b42 : PopoverRaw;
4419
+ var _a43, _b43;
4420
+ var InputAdornment = (_b43 = (_a43 = InputAdornmentRaw) == null ? void 0 : _a43.default) != null ? _b43 : InputAdornmentRaw;
4421
+ var _a44, _b44;
4422
+ var IconButton4 = (_b44 = (_a44 = IconButtonRaw) == null ? void 0 : _a44.default) != null ? _b44 : IconButtonRaw;
4423
+ var _a45, _b45;
4424
+ var Typography = (_b45 = (_a45 = MuiTypographyRaw) == null ? void 0 : _a45.default) != null ? _b45 : MuiTypographyRaw;
4425
+ var _a46, _b46;
4426
+ var DatePicker = (_b46 = (_a46 = DatePicker$1) == null ? void 0 : _a46.default) != null ? _b46 : DatePicker$1;
4427
+ var _a47, _b47;
4428
+ var DateTimePicker = (_b47 = (_a47 = DateTimePicker$1) == null ? void 0 : _a47.default) != null ? _b47 : DateTimePicker$1;
4429
+ var _a48, _b48;
4430
+ var TimePicker = (_b48 = (_a48 = TimePicker$1) == null ? void 0 : _a48.default) != null ? _b48 : TimePicker$1;
4431
+ var BaseDatePicker = (_a126) => {
4432
+ var _b126 = _a126, {
4152
4433
  type = "single",
4153
4434
  name,
4154
4435
  control,
@@ -4166,7 +4447,7 @@ var BaseDatePicker = (_a107) => {
4166
4447
  sx = {},
4167
4448
  onChange: onChangeCustom = () => {
4168
4449
  }
4169
- } = _b107, props = __objRest(_b107, [
4450
+ } = _b126, props = __objRest(_b126, [
4170
4451
  "type",
4171
4452
  "name",
4172
4453
  "control",
@@ -4184,13 +4465,13 @@ var BaseDatePicker = (_a107) => {
4184
4465
  "sx",
4185
4466
  "onChange"
4186
4467
  ]);
4187
- var _a108, _b108, _c, _d, _e, _f;
4468
+ var _a127, _b127, _c, _d, _e, _f;
4188
4469
  const { field, formState } = useController({
4189
4470
  name,
4190
4471
  control,
4191
4472
  defaultValue
4192
4473
  });
4193
- const errorMessage = (_c = (_b108 = (_a108 = formState.errors) == null ? void 0 : _a108[name]) == null ? void 0 : _b108.message) == null ? void 0 : _c.toString();
4474
+ const errorMessage = (_c = (_b127 = (_a127 = formState.errors) == null ? void 0 : _a127[name]) == null ? void 0 : _b127.message) == null ? void 0 : _c.toString();
4194
4475
  const [open, setOpen] = useState(false);
4195
4476
  const inputRef = useRef(null);
4196
4477
  const [rangeValue, setRangeValue] = useState(
@@ -4256,14 +4537,15 @@ var BaseDatePicker = (_a107) => {
4256
4537
  }
4257
4538
  }, [type, format]);
4258
4539
  const LabelSection = () => {
4540
+ var _a128;
4259
4541
  if (!title && !subtitle) return null;
4260
- return /* @__PURE__ */ jsxs(Box8, { sx: { display: "flex", gap: SpacingToken.spacing2, px: SpacingToken.spacing2, mb: "4px" }, children: [
4261
- title && /* @__PURE__ */ jsx(Typography, { variant: "body2", sx: { fontWeight: 600, color: DerivedColor.color_text_default }, children: title }),
4542
+ return /* @__PURE__ */ jsxs(Box10, { sx: { display: "flex", gap: SpacingToken.spacing2, mb: "4px" }, children: [
4543
+ title && /* @__PURE__ */ jsx(Typography, { variant: "body2", sx: { fontWeight: 600, color: !!((_a128 = formState.errors) == null ? void 0 : _a128[name]) ? DerivedColor.color_text_danger : DerivedColor.color_text_default }, children: title }),
4262
4544
  subtitle && /* @__PURE__ */ jsx(Typography, { variant: "body2", sx: { color: DerivedColor.color_text_subtle }, children: subtitle })
4263
4545
  ] });
4264
4546
  };
4265
4547
  if (type === "range") {
4266
- return /* @__PURE__ */ jsxs(Box8, { sx, children: [
4548
+ return /* @__PURE__ */ jsxs(Box10, { sx, children: [
4267
4549
  /* @__PURE__ */ jsx(LabelSection, {}),
4268
4550
  /* @__PURE__ */ jsx(
4269
4551
  TextField,
@@ -4271,7 +4553,9 @@ var BaseDatePicker = (_a107) => {
4271
4553
  inputRef,
4272
4554
  fullWidth: true,
4273
4555
  size: "small",
4274
- placeholder,
4556
+ placeholder: placeholder || "DD/MM/YYYY - DD/MM/YYYY",
4557
+ error: !!errorMessage,
4558
+ helperText: errorMessage,
4275
4559
  value: rangeValue.startDate && rangeValue.endDate ? `${dayjs(rangeValue.startDate).format(format)} - ${dayjs(
4276
4560
  rangeValue.endDate
4277
4561
  ).format(format)}` : "",
@@ -4280,24 +4564,51 @@ var BaseDatePicker = (_a107) => {
4280
4564
  sx: {
4281
4565
  "& .MuiOutlinedInput-root": {
4282
4566
  borderRadius: Radius.radius_2,
4283
- cursor: openBy === "field" || openBy === "both" ? "pointer" : "default"
4567
+ fontSize: 14,
4568
+ backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : DerivedColor.color_bg_surface,
4569
+ borderColor: isDisabled ? PrimitiveColor.color_neutral_200 : DerivedColor.color_border_default,
4570
+ cursor: openBy === "field" || openBy === "both" ? "pointer" : "default",
4571
+ "& fieldset": {
4572
+ borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_default
4573
+ },
4574
+ "&:hover fieldset": {
4575
+ borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
4576
+ },
4577
+ "&.Mui-focused fieldset": {
4578
+ borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary,
4579
+ borderWidth: 2
4580
+ }
4581
+ },
4582
+ "& .MuiInputBase-input": {
4583
+ fontSize: 14,
4584
+ "&::placeholder": {
4585
+ fontSize: 14
4586
+ }
4587
+ },
4588
+ "& .MuiFormHelperText-root": {
4589
+ marginLeft: 0,
4590
+ fontSize: 14,
4591
+ letterSpacing: 0
4284
4592
  }
4285
4593
  },
4286
4594
  InputProps: {
4287
4595
  readOnly: true,
4288
- endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
4289
- IconButton3,
4290
- {
4291
- size: "small",
4292
- onClick: (e) => {
4293
- e.stopPropagation();
4294
- if (!isDisabled && (openBy === "icon" || openBy === "both")) setOpen(true);
4295
- },
4296
- disabled: isDisabled,
4297
- sx: { p: "4px" },
4298
- children: /* @__PURE__ */ jsx(IconCalendarWeekFilled, { size: 20, color: DerivedColor.color_icon_brand_primary })
4299
- }
4300
- ) })
4596
+ endAdornment: /* @__PURE__ */ jsxs(InputAdornment, { position: "end", children: [
4597
+ !!errorMessage && /* @__PURE__ */ jsx(IconAlertCircleFilled, { size: 18, color: PrimitiveColor.color_red_500 }),
4598
+ /* @__PURE__ */ jsx(
4599
+ IconButton4,
4600
+ {
4601
+ size: "small",
4602
+ onClick: (e) => {
4603
+ e.stopPropagation();
4604
+ if (!isDisabled && (openBy === "icon" || openBy === "both")) setOpen(true);
4605
+ },
4606
+ disabled: isDisabled,
4607
+ sx: { p: "4px" },
4608
+ children: /* @__PURE__ */ jsx(IconCalendarWeekFilled, { size: 20, color: DerivedColor.color_icon_brand_primary })
4609
+ }
4610
+ )
4611
+ ] })
4301
4612
  }
4302
4613
  }
4303
4614
  ),
@@ -4331,7 +4642,7 @@ var BaseDatePicker = (_a107) => {
4331
4642
  ] });
4332
4643
  }
4333
4644
  const PickerComponent = (_e = pickerConfig.component) != null ? _e : DatePicker;
4334
- return /* @__PURE__ */ jsxs(Box8, { sx, children: [
4645
+ return /* @__PURE__ */ jsxs(Box10, { sx, children: [
4335
4646
  /* @__PURE__ */ jsx(LabelSection, {}),
4336
4647
  /* @__PURE__ */ jsx(
4337
4648
  PickerComponent,
@@ -4350,7 +4661,7 @@ var BaseDatePicker = (_a107) => {
4350
4661
  disableOpenPicker: openBy === "field",
4351
4662
  components: {
4352
4663
  OpenPickerIcon: () => /* @__PURE__ */ jsx(
4353
- IconButton3,
4664
+ IconButton4,
4354
4665
  {
4355
4666
  size: "small",
4356
4667
  onClick: (e) => {
@@ -4368,7 +4679,7 @@ var BaseDatePicker = (_a107) => {
4368
4679
  onChangeCustom(newValue);
4369
4680
  },
4370
4681
  renderInput: (params) => {
4371
- var _a109;
4682
+ var _a128;
4372
4683
  return /* @__PURE__ */ jsx(
4373
4684
  TextField,
4374
4685
  __spreadProps(__spreadValues({}, params), {
@@ -4383,31 +4694,38 @@ var BaseDatePicker = (_a107) => {
4383
4694
  sx: {
4384
4695
  "& .MuiOutlinedInput-root": {
4385
4696
  borderRadius: Radius.radius_2,
4386
- backgroundColor: DerivedColor.color_bg_surface,
4697
+ fontSize: 14,
4698
+ backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : DerivedColor.color_bg_surface,
4387
4699
  cursor: openBy === "field" || openBy === "both" ? "pointer" : "default",
4388
4700
  "& fieldset": {
4389
4701
  borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_default
4390
4702
  },
4391
4703
  "&:hover fieldset": {
4392
- borderColor: DerivedColor.color_border_brand_primary
4704
+ borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
4393
4705
  },
4394
4706
  "&.Mui-focused fieldset": {
4395
- borderColor: DerivedColor.color_border_brand_primary,
4707
+ borderColor: errorMessage ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary,
4396
4708
  borderWidth: 2
4397
4709
  }
4398
4710
  },
4399
4711
  "& .MuiInputBase-input": {
4400
4712
  padding: `${SpacingToken.spacing2} ${SpacingToken.spacing3}`,
4401
- fontSize: "14px"
4713
+ fontSize: 14,
4714
+ "&::placeholder": {
4715
+ fontSize: 14
4716
+ }
4402
4717
  },
4403
4718
  "& .MuiFormHelperText-root": {
4404
- marginLeft: 0
4719
+ marginLeft: 0,
4720
+ fontSize: 14,
4721
+ letterSpacing: 0
4405
4722
  }
4406
4723
  },
4407
4724
  InputProps: __spreadProps(__spreadValues({}, params.InputProps), {
4408
4725
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
4726
+ !!errorMessage && /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(IconAlertCircleFilled, { size: 18, color: DerivedColor.color_icon_danger }) }),
4409
4727
  clearable && field.value && /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
4410
- IconButton3,
4728
+ IconButton4,
4411
4729
  {
4412
4730
  size: "small",
4413
4731
  onClick: handleClear,
@@ -4415,7 +4733,7 @@ var BaseDatePicker = (_a107) => {
4415
4733
  children: /* @__PURE__ */ jsx(CloseIconRaw, { fontSize: "small" })
4416
4734
  }
4417
4735
  ) }),
4418
- (_a109 = params.InputProps) == null ? void 0 : _a109.endAdornment
4736
+ (_a128 = params.InputProps) == null ? void 0 : _a128.endAdornment
4419
4737
  ] })
4420
4738
  })
4421
4739
  })
@@ -4425,12 +4743,12 @@ var BaseDatePicker = (_a107) => {
4425
4743
  )
4426
4744
  ] });
4427
4745
  };
4428
- var _a43, _b43;
4429
- var Box9 = (_b43 = (_a43 = BoxRaw) == null ? void 0 : _a43.default) != null ? _b43 : BoxRaw;
4430
- var _a44, _b44;
4431
- var Chip = (_b44 = (_a44 = ChipRaw) == null ? void 0 : _a44.default) != null ? _b44 : ChipRaw;
4432
- var _a45, _b45;
4433
- var Typography2 = (_b45 = (_a45 = MuiTypographyRaw) == null ? void 0 : _a45.default) != null ? _b45 : MuiTypographyRaw;
4746
+ var _a49, _b49;
4747
+ var Box11 = (_b49 = (_a49 = BoxRaw) == null ? void 0 : _a49.default) != null ? _b49 : BoxRaw;
4748
+ var _a50, _b50;
4749
+ var Chip = (_b50 = (_a50 = ChipRaw) == null ? void 0 : _a50.default) != null ? _b50 : ChipRaw;
4750
+ var _a51, _b51;
4751
+ var Typography2 = (_b51 = (_a51 = MuiTypographyRaw) == null ? void 0 : _a51.default) != null ? _b51 : MuiTypographyRaw;
4434
4752
  var CheckboxOption = (props) => {
4435
4753
  const { isSelected, label, selectOption, data } = props;
4436
4754
  const handleChange = () => {
@@ -4446,8 +4764,8 @@ var CheckboxOption = (props) => {
4446
4764
  }
4447
4765
  ) }));
4448
4766
  };
4449
- var BaseDropdown = (_a107) => {
4450
- var _b107 = _a107, {
4767
+ var BaseDropdown = (_a126) => {
4768
+ var _b126 = _a126, {
4451
4769
  name = "",
4452
4770
  control,
4453
4771
  options = [],
@@ -4471,7 +4789,7 @@ var BaseDropdown = (_a107) => {
4471
4789
  ],
4472
4790
  variant = "select",
4473
4791
  sx = {}
4474
- } = _b107, props = __objRest(_b107, [
4792
+ } = _b126, props = __objRest(_b126, [
4475
4793
  "name",
4476
4794
  "control",
4477
4795
  "options",
@@ -4490,14 +4808,14 @@ var BaseDropdown = (_a107) => {
4490
4808
  "variant",
4491
4809
  "sx"
4492
4810
  ]);
4493
- var _a108;
4811
+ var _a127;
4494
4812
  const { field, formState } = useController({
4495
4813
  name,
4496
4814
  control,
4497
4815
  defaultValue: defaultValue != null ? defaultValue : variant === "checkbox" || isMulti ? [] : null
4498
4816
  });
4499
4817
  const SelectComponent = loadOptions ? AsyncSelect : Select;
4500
- const hasError = !!((_a108 = formState.errors) == null ? void 0 : _a108[name]);
4818
+ const hasError = !!((_a127 = formState.errors) == null ? void 0 : _a127[name]);
4501
4819
  const selectedValues = Array.isArray(field.value) ? field.value : field.value ? [field.value] : [];
4502
4820
  const isCheckboxMode = variant === "checkbox";
4503
4821
  const selectAllChecked = showSelectAll && selectedValues.length === options.length && options.length > 0;
@@ -4506,16 +4824,20 @@ var BaseDropdown = (_a107) => {
4506
4824
  field.onChange(checked ? options : []);
4507
4825
  };
4508
4826
  const handleChange = (val) => {
4509
- var _a109;
4827
+ var _a128;
4510
4828
  field.onChange(val);
4511
- (_a109 = props.onChange) == null ? void 0 : _a109.call(props, val);
4829
+ (_a128 = props.onChange) == null ? void 0 : _a128.call(props, val);
4512
4830
  };
4513
4831
  const customStyles = {
4514
4832
  control: (base, state) => __spreadValues(__spreadProps(__spreadValues({}, base), {
4515
4833
  borderRadius: Radius.radius_2,
4834
+ fontSize: 14,
4516
4835
  backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : PrimitiveColor.color_neutral_50,
4517
- border: hasError ? `1px solid ${PrimitiveColor.color_red_500}` : state.isFocused ? `1px solid ${PrimitiveColor.color_blue_cakrawala_500}` : `1px solid ${PrimitiveColor.color_neutral_300}`,
4518
- boxShadow: "none"
4836
+ border: hasError ? `1px solid ${DerivedColor.color_border_danger}` : state.isFocused ? `2px solid ${DerivedColor.color_border_brand_primary}` : `1px solid ${DerivedColor.color_border_default}`,
4837
+ boxShadow: "none",
4838
+ "&:hover": {
4839
+ borderColor: hasError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
4840
+ }
4519
4841
  }), preventOverflow && { maxHeight: 120, overflowY: "auto" }),
4520
4842
  option: (base, state) => __spreadProps(__spreadValues({}, base), {
4521
4843
  display: "flex",
@@ -4534,19 +4856,19 @@ var BaseDropdown = (_a107) => {
4534
4856
  })
4535
4857
  };
4536
4858
  return /* @__PURE__ */ jsxs(
4537
- Box9,
4859
+ Box11,
4538
4860
  {
4539
4861
  sx: __spreadValues({
4540
- width: 356,
4862
+ width: "100%",
4541
4863
  display: "flex",
4542
4864
  flexDirection: "column",
4543
4865
  gap: SpacingToken.spacing2
4544
4866
  }, sx),
4545
4867
  children: [
4546
- (title || subtitle || showSelectAll) && /* @__PURE__ */ jsxs(Box9, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
4547
- /* @__PURE__ */ jsxs(Box9, { sx: { display: "flex", alignItems: "center", gap: SpacingToken.spacing2 }, children: [
4548
- title && /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: { fontWeight: 600, color: DerivedColor.color_text_default }, children: title }),
4549
- subtitle && /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: { color: DerivedColor.color_text_subtle }, children: subtitle })
4868
+ (title || subtitle || showSelectAll) && /* @__PURE__ */ jsxs(Box11, { sx: { display: "flex", justifyContent: "space-between", alignItems: "center" }, children: [
4869
+ /* @__PURE__ */ jsxs(Box11, { sx: { display: "flex", alignItems: "center", gap: SpacingToken.spacing2 }, children: [
4870
+ title && /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: { fontWeight: 600, fontSize: 14, color: hasError ? DerivedColor.color_text_danger : DerivedColor.color_text_default }, children: title }),
4871
+ subtitle && /* @__PURE__ */ jsx(Typography2, { variant: "body2", sx: { fontSize: 14, color: DerivedColor.color_text_subtle }, children: subtitle })
4550
4872
  ] }),
4551
4873
  showSelectAll && /* @__PURE__ */ jsx(
4552
4874
  BaseCheckbox,
@@ -4583,7 +4905,7 @@ var BaseDropdown = (_a107) => {
4583
4905
  }
4584
4906
  })
4585
4907
  ),
4586
- showChip && isMulti && !isCheckboxMode && /* @__PURE__ */ jsx(Box9, { sx: { display: "flex", flexWrap: "wrap", gap: 1, mt: 1 }, children: selectedValues.map((option) => /* @__PURE__ */ jsx(
4908
+ showChip && isMulti && !isCheckboxMode && /* @__PURE__ */ jsx(Box11, { sx: { display: "flex", flexWrap: "wrap", gap: 1, mt: 1 }, children: selectedValues.map((option) => /* @__PURE__ */ jsx(
4587
4909
  Chip,
4588
4910
  {
4589
4911
  label: option.label,
@@ -4603,7 +4925,7 @@ var BaseDropdown = (_a107) => {
4603
4925
  Typography2,
4604
4926
  {
4605
4927
  variant: "caption",
4606
- sx: { color: DerivedColor.color_text_danger, fontSize: 12 },
4928
+ sx: { color: DerivedColor.color_text_danger, fontSize: 14 },
4607
4929
  children: message
4608
4930
  }
4609
4931
  )
@@ -4613,8 +4935,8 @@ var BaseDropdown = (_a107) => {
4613
4935
  }
4614
4936
  );
4615
4937
  };
4616
- var _a46, _b46;
4617
- var Box10 = (_b46 = (_a46 = BoxRaw) == null ? void 0 : _a46.default) != null ? _b46 : BoxRaw;
4938
+ var _a52, _b52;
4939
+ var Box12 = (_b52 = (_a52 = BoxRaw) == null ? void 0 : _a52.default) != null ? _b52 : BoxRaw;
4618
4940
  var BaseDropzone = ({
4619
4941
  autoUpload = false,
4620
4942
  settings = {
@@ -4666,7 +4988,7 @@ var BaseDropzone = ({
4666
4988
  processedCount++;
4667
4989
  if (processedCount === acceptedFiles.length) {
4668
4990
  setFiles((prevFiles) => {
4669
- var _a107;
4991
+ var _a126;
4670
4992
  let updated;
4671
4993
  if (settings.maxFiles === 1) {
4672
4994
  updated = tempFiles.slice(0, 1);
@@ -4677,7 +4999,7 @@ var BaseDropzone = ({
4677
4999
  );
4678
5000
  }
4679
5001
  if (autoUpload) {
4680
- (_a107 = callbacks == null ? void 0 : callbacks.uploadFile) == null ? void 0 : _a107.call(callbacks, updated);
5002
+ (_a126 = callbacks == null ? void 0 : callbacks.uploadFile) == null ? void 0 : _a126.call(callbacks, updated);
4681
5003
  }
4682
5004
  return updated;
4683
5005
  });
@@ -4686,8 +5008,8 @@ var BaseDropzone = ({
4686
5008
  });
4687
5009
  };
4688
5010
  const handleRejected = (rejections) => {
4689
- var _a107, _b107, _c;
4690
- const error = (_c = (_b107 = (_a107 = rejections == null ? void 0 : rejections[0]) == null ? void 0 : _a107.errors) == null ? void 0 : _b107[0]) == null ? void 0 : _c.code;
5011
+ var _a126, _b126, _c;
5012
+ const error = (_c = (_b126 = (_a126 = rejections == null ? void 0 : rejections[0]) == null ? void 0 : _a126.errors) == null ? void 0 : _b126[0]) == null ? void 0 : _c.code;
4691
5013
  if (error === "file-too-large") {
4692
5014
  setErrorMessage(
4693
5015
  "Ukuran file terlalu besar. Maksimal " + settings.maxSize + "MB."
@@ -4701,12 +5023,12 @@ var BaseDropzone = ({
4701
5023
  }
4702
5024
  };
4703
5025
  const removeFile = (index) => {
4704
- var _a107, _b107;
5026
+ var _a126, _b126;
4705
5027
  const removedFile = files[index];
4706
5028
  const updated = files.filter((_, i) => i !== index);
4707
5029
  setFiles(updated);
4708
- (_a107 = callbacks == null ? void 0 : callbacks.removeFile) == null ? void 0 : _a107.call(callbacks, removedFile == null ? void 0 : removedFile.originName);
4709
- (_b107 = callbacks == null ? void 0 : callbacks.uploadFile) == null ? void 0 : _b107.call(callbacks, updated);
5030
+ (_a126 = callbacks == null ? void 0 : callbacks.removeFile) == null ? void 0 : _a126.call(callbacks, removedFile == null ? void 0 : removedFile.originName);
5031
+ (_b126 = callbacks == null ? void 0 : callbacks.uploadFile) == null ? void 0 : _b126.call(callbacks, updated);
4710
5032
  };
4711
5033
  useEffect(() => {
4712
5034
  if (callbacks == null ? void 0 : callbacks.customError) {
@@ -4714,19 +5036,19 @@ var BaseDropzone = ({
4714
5036
  }
4715
5037
  }, [callbacks == null ? void 0 : callbacks.customError]);
4716
5038
  const renderFileIcon = (file) => {
4717
- var _a107, _b107, _c;
4718
- if ((_a107 = file.type) == null ? void 0 : _a107.includes("pdf")) return /* @__PURE__ */ jsx(IconFilePDF, {});
4719
- if ((_b107 = file.type) == null ? void 0 : _b107.includes("csv")) return /* @__PURE__ */ jsx(IconFileCSV, {});
5039
+ var _a126, _b126, _c;
5040
+ if ((_a126 = file.type) == null ? void 0 : _a126.includes("pdf")) return /* @__PURE__ */ jsx(IconFilePDF, {});
5041
+ if ((_b126 = file.type) == null ? void 0 : _b126.includes("csv")) return /* @__PURE__ */ jsx(IconFileCSV, {});
4720
5042
  if ((_c = file.type) == null ? void 0 : _c.includes("image")) return /* @__PURE__ */ jsx(IconFileJPG, {});
4721
5043
  return /* @__PURE__ */ jsx(IconFileJPG, {});
4722
5044
  };
4723
5045
  const PreviewGrid = () => /* @__PURE__ */ jsx(
4724
- Box10,
5046
+ Box12,
4725
5047
  {
4726
5048
  sx: { width: "100%", display: "flex", gap: 2, mt: 3, flexWrap: "wrap" },
4727
- children: files.map((file, index) => /* @__PURE__ */ jsxs(Box10, { sx: { position: "relative", width: 75 }, children: [
5049
+ children: files.map((file, index) => /* @__PURE__ */ jsxs(Box12, { sx: { position: "relative", width: 75 }, children: [
4728
5050
  /* @__PURE__ */ jsx(
4729
- Box10,
5051
+ Box12,
4730
5052
  {
4731
5053
  sx: {
4732
5054
  position: "absolute",
@@ -4740,7 +5062,7 @@ var BaseDropzone = ({
4740
5062
  ),
4741
5063
  renderFileIcon(file),
4742
5064
  /* @__PURE__ */ jsx(
4743
- Box10,
5065
+ Box12,
4744
5066
  {
4745
5067
  sx: __spreadProps(__spreadValues({}, VariantStyles.caption_regular), {
4746
5068
  mt: 1,
@@ -4754,8 +5076,8 @@ var BaseDropzone = ({
4754
5076
  ] }, index))
4755
5077
  }
4756
5078
  );
4757
- const PreviewList = () => /* @__PURE__ */ jsx(Box10, { sx: { mt: 3 }, children: files.map((file, index) => /* @__PURE__ */ jsxs(
4758
- Box10,
5079
+ const PreviewList = () => /* @__PURE__ */ jsx(Box12, { sx: { mt: 3 }, children: files.map((file, index) => /* @__PURE__ */ jsxs(
5080
+ Box12,
4759
5081
  {
4760
5082
  sx: {
4761
5083
  display: "flex",
@@ -4767,10 +5089,10 @@ var BaseDropzone = ({
4767
5089
  mb: 2
4768
5090
  },
4769
5091
  children: [
4770
- /* @__PURE__ */ jsxs(Box10, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
5092
+ /* @__PURE__ */ jsxs(Box12, { sx: { display: "flex", alignItems: "center", gap: 2 }, children: [
4771
5093
  renderFileIcon(file),
4772
5094
  /* @__PURE__ */ jsx(
4773
- Box10,
5095
+ Box12,
4774
5096
  {
4775
5097
  sx: __spreadProps(__spreadValues({}, VariantStyles.body2_regular), {
4776
5098
  maxWidth: 260,
@@ -4782,30 +5104,37 @@ var BaseDropzone = ({
4782
5104
  }
4783
5105
  )
4784
5106
  ] }),
4785
- /* @__PURE__ */ jsx(Box10, { sx: { cursor: "pointer" }, onClick: () => removeFile(index), children: /* @__PURE__ */ jsx(IconTrash$1, { size: 20, color: PrimitiveColor.color_red_500 }) })
5107
+ /* @__PURE__ */ jsx(Box12, { sx: { cursor: "pointer" }, onClick: () => removeFile(index), children: /* @__PURE__ */ jsx(IconTrash$1, { size: 20, color: PrimitiveColor.color_red_500 }) })
4786
5108
  ]
4787
5109
  },
4788
5110
  index
4789
5111
  )) });
4790
- return /* @__PURE__ */ jsxs(Box10, { children: [
5112
+ return /* @__PURE__ */ jsxs(Box12, { children: [
4791
5113
  labels.title && /* @__PURE__ */ jsx(
4792
- Box10,
5114
+ Box12,
4793
5115
  {
4794
- sx: __spreadProps(__spreadValues({}, VariantStyles.body2_semibold), {
5116
+ sx: __spreadProps(__spreadValues({}, VariantStyles.body1_regular), {
5117
+ fontSize: 14,
5118
+ fontWeight: 600,
4795
5119
  mb: 2,
4796
- width: "100%"
5120
+ width: "100%",
5121
+ color: isError ? DerivedColor.color_text_danger : DerivedColor.color_text_default
4797
5122
  }),
4798
5123
  children: labels.title
4799
5124
  }
4800
5125
  ),
4801
5126
  /* @__PURE__ */ jsx(
4802
- Box10,
5127
+ Box12,
4803
5128
  {
4804
5129
  sx: {
4805
- border: `2px ${files.length ? "solid" : "dashed"} ${isError ? PrimitiveColor.color_red_500 : files.length ? PrimitiveColor.color_blue_cakrawala_500 : PrimitiveColor.color_neutral_300}`,
5130
+ border: `2px ${files.length ? "solid" : "dashed"} ${isError ? DerivedColor.color_border_danger : files.length ? DerivedColor.color_border_brand_primary : DerivedColor.color_border_default}`,
4806
5131
  borderRadius: Radius.radius_2,
4807
5132
  padding: SpacingToken.spacing6,
4808
- textAlign: "center"
5133
+ textAlign: "center",
5134
+ transition: "border-color 0.2s",
5135
+ "&:hover": {
5136
+ borderColor: isError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
5137
+ }
4809
5138
  },
4810
5139
  children: /* @__PURE__ */ jsx(
4811
5140
  Dropzone,
@@ -4817,7 +5146,7 @@ var BaseDropzone = ({
4817
5146
  accept: settings.allowedExtensions,
4818
5147
  multiple: !isSingle,
4819
5148
  children: ({ getRootProps, getInputProps }) => /* @__PURE__ */ jsxs(
4820
- Box10,
5149
+ Box12,
4821
5150
  __spreadProps(__spreadValues({}, getRootProps()), {
4822
5151
  sx: {
4823
5152
  cursor: "pointer",
@@ -4831,9 +5160,9 @@ var BaseDropzone = ({
4831
5160
  children: [
4832
5161
  /* @__PURE__ */ jsx("input", __spreadValues({}, getInputProps())),
4833
5162
  /* @__PURE__ */ jsx(IconUpload$1, { size: 32, color: DerivedColor.color_icon_brand_primary }),
4834
- /* @__PURE__ */ jsx(Box10, { sx: __spreadProps(__spreadValues({}, VariantStyles.header1_semibold), { mt: 1 }), children: labels.dropzoneTitle }),
5163
+ /* @__PURE__ */ jsx(Box12, { sx: __spreadProps(__spreadValues({}, VariantStyles.header1_semibold), { mt: 1 }), children: labels.dropzoneTitle }),
4835
5164
  /* @__PURE__ */ jsx(
4836
- Box10,
5165
+ Box12,
4837
5166
  {
4838
5167
  sx: __spreadProps(__spreadValues({}, VariantStyles.body1_regular), {
4839
5168
  color: PrimitiveColor.color_neutral_600,
@@ -4852,7 +5181,7 @@ var BaseDropzone = ({
4852
5181
  }
4853
5182
  ),
4854
5183
  labels.allowedFileLabel && /* @__PURE__ */ jsx(
4855
- Box10,
5184
+ Box12,
4856
5185
  {
4857
5186
  sx: __spreadProps(__spreadValues({}, VariantStyles.caption_regular), {
4858
5187
  color: PrimitiveColor.color_neutral_600,
@@ -4872,15 +5201,17 @@ var BaseDropzone = ({
4872
5201
  ),
4873
5202
  files.length > 0 && (settings.previewType === "list" ? /* @__PURE__ */ jsx(PreviewList, {}) : /* @__PURE__ */ jsx(PreviewGrid, {})),
4874
5203
  isError && /* @__PURE__ */ jsxs(
4875
- Box10,
5204
+ Box12,
4876
5205
  {
4877
- sx: __spreadValues({
5206
+ sx: __spreadProps(__spreadValues({
4878
5207
  display: "flex",
4879
5208
  alignItems: "center",
4880
5209
  gap: 1,
4881
5210
  mt: 2,
4882
- color: PrimitiveColor.color_red_500
4883
- }, VariantStyles.caption_regular),
5211
+ color: DerivedColor.color_text_danger
5212
+ }, VariantStyles.caption_regular), {
5213
+ fontSize: 14
5214
+ }),
4884
5215
  children: [
4885
5216
  /* @__PURE__ */ jsx(IconAlertTriangle, { size: 16 }),
4886
5217
  errorMessage
@@ -4889,43 +5220,39 @@ var BaseDropzone = ({
4889
5220
  )
4890
5221
  ] });
4891
5222
  };
4892
- var _a47, _b47;
4893
- var Radio = (_b47 = (_a47 = RadioRaw) == null ? void 0 : _a47.default) != null ? _b47 : RadioRaw;
4894
- var _a48, _b48;
4895
- var RadioGroup = (_b48 = (_a48 = RadioGroupRaw) == null ? void 0 : _a48.default) != null ? _b48 : RadioGroupRaw;
4896
- var _a49, _b49;
4897
- var FormControlLabel2 = (_b49 = (_a49 = FormControlLabelRaw) == null ? void 0 : _a49.default) != null ? _b49 : FormControlLabelRaw;
4898
- var _a50, _b50;
4899
- var FormControl = (_b50 = (_a50 = FormControlRaw) == null ? void 0 : _a50.default) != null ? _b50 : FormControlRaw;
4900
- var _a51, _b51;
4901
- var Box11 = (_b51 = (_a51 = BoxRaw) == null ? void 0 : _a51.default) != null ? _b51 : BoxRaw;
4902
- var BaseRadioButton = (_a107) => {
4903
- var _b107 = _a107, {
5223
+ var _a53, _b53;
5224
+ var Radio = (_b53 = (_a53 = RadioRaw) == null ? void 0 : _a53.default) != null ? _b53 : RadioRaw;
5225
+ var _a54, _b54;
5226
+ var RadioGroup = (_b54 = (_a54 = RadioGroupRaw) == null ? void 0 : _a54.default) != null ? _b54 : RadioGroupRaw;
5227
+ var _a55, _b55;
5228
+ var FormControlLabel2 = (_b55 = (_a55 = FormControlLabelRaw) == null ? void 0 : _a55.default) != null ? _b55 : FormControlLabelRaw;
5229
+ var _a56, _b56;
5230
+ var FormControl = (_b56 = (_a56 = FormControlRaw) == null ? void 0 : _a56.default) != null ? _b56 : FormControlRaw;
5231
+ var _a57, _b57;
5232
+ var Box13 = (_b57 = (_a57 = BoxRaw) == null ? void 0 : _a57.default) != null ? _b57 : BoxRaw;
5233
+ var BaseRadioButton = (_a126) => {
5234
+ var _b126 = _a126, {
4904
5235
  name = "",
4905
5236
  control = null,
4906
5237
  defaultValue,
4907
- label,
5238
+ title,
4908
5239
  options = [],
4909
- labelVariant: labelVariant = "body2_regular.default",
4910
- errorVariant = "caption_regular.danger",
5240
+ errorVariant: errorVariant = "body1_regular.danger",
4911
5241
  orientation: orientation = "vertical",
4912
- radioColorToken: radioColorToken = "color_blue_cakrawala_500",
4913
5242
  isDisabled: isDisabled,
4914
5243
  useErrorStateHelper: useErrorStateHelper = false,
4915
5244
  sx: sx = {}
4916
- } = _b107, restProps = __objRest(_b107, [
5245
+ } = _b126, restProps = __objRest(_b126, [
4917
5246
  "name",
4918
5247
  "control",
4919
5248
  "defaultValue",
4920
- "label",
5249
+ "title",
4921
5250
  "options",
4922
5251
  /* ================= TYPOGRAPHY ================= */
4923
- "labelVariant",
4924
5252
  "errorVariant",
4925
5253
  /* ================= LAYOUT ================= */
4926
5254
  "orientation",
4927
5255
  /* ================= COLOR TOKEN ================= */
4928
- "radioColorToken",
4929
5256
  /* ================= STATE ================= */
4930
5257
  "isDisabled",
4931
5258
  /* ================= ERROR ================= */
@@ -4933,12 +5260,12 @@ var BaseRadioButton = (_a107) => {
4933
5260
  /* ================= SX ================= */
4934
5261
  "sx"
4935
5262
  ]);
4936
- var _a108, _b108, _c, _d, _e, _f;
5263
+ var _a127, _b127, _c, _d, _e, _f;
4937
5264
  const { field, formState } = useController({ control, name, defaultValue });
4938
5265
  const errorObject = useErrorStateHelper ? errorState(name, formState.errors) : null;
4939
- const errorMessage = ((_a108 = errorObject == null ? void 0 : errorObject.message) == null ? void 0 : _a108.toString()) || ((_c = (_b108 = formState.errors) == null ? void 0 : _b108[name]) == null ? void 0 : _c.message);
4940
- const radioColor = ((_d = PrimitiveColor) == null ? void 0 : _d[radioColorToken]) || PrimitiveColor.color_blue_cakrawala_500;
4941
- const gapValue = (_e = SpacingToken) == null ? void 0 : _e.spacing0;
5266
+ const errorMessage = ((_a127 = errorObject == null ? void 0 : errorObject.message) == null ? void 0 : _a127.toString()) || ((_c = (_b127 = formState.errors) == null ? void 0 : _b127[name]) == null ? void 0 : _c.message);
5267
+ const radioColor = PrimitiveColor.color_blue_cakrawala_500;
5268
+ const gapValue = (_d = SpacingToken) == null ? void 0 : _d.spacing0;
4942
5269
  const isHorizontal = orientation === "horizontal";
4943
5270
  const radioItemSx = {
4944
5271
  minHeight: "36px",
@@ -4949,76 +5276,90 @@ var BaseRadioButton = (_a107) => {
4949
5276
  py: SpacingToken.spacing0,
4950
5277
  borderRadius: Radius.radius_2
4951
5278
  };
4952
- return /* @__PURE__ */ jsx(Box11, { sx, children: /* @__PURE__ */ jsxs(FormControl, { error: !!((_f = formState.errors) == null ? void 0 : _f[name]), children: [
4953
- label && /* @__PURE__ */ jsx(
5279
+ return /* @__PURE__ */ jsxs(Box13, { sx, children: [
5280
+ title && /* @__PURE__ */ jsx(
4954
5281
  BaseTypography,
4955
5282
  {
4956
- variant: labelVariant,
4957
- sx: { mb: gapValue },
4958
- children: label
5283
+ variant: "body1_regular.default",
5284
+ sx: {
5285
+ fontWeight: 600,
5286
+ color: !!((_e = formState.errors) == null ? void 0 : _e[name]) ? DerivedColor.color_text_danger : DerivedColor.color_text_default,
5287
+ mb: "4px"
5288
+ },
5289
+ children: title
4959
5290
  }
4960
5291
  ),
4961
- /* @__PURE__ */ jsx(
4962
- RadioGroup,
4963
- __spreadProps(__spreadValues({
4964
- value: field.value,
4965
- onChange: field.onChange,
4966
- row: isHorizontal,
4967
- sx: { gap: gapValue }
4968
- }, restProps), {
4969
- children: options.length > 0 ? options.map((item, index) => /* @__PURE__ */ jsx(
4970
- FormControlLabel2,
4971
- __spreadValues({
4972
- value: item.value,
4973
- label: item.label,
4974
- disabled: isDisabled != null ? isDisabled : item.isDisabled,
4975
- sx: radioItemSx,
4976
- control: /* @__PURE__ */ jsx(
4977
- Radio,
4978
- {
4979
- sx: {
4980
- "&.Mui-checked": {
4981
- color: radioColor
4982
- },
4983
- "&.Mui-disabled": {
4984
- color: PrimitiveColor.color_neutral_400
4985
- },
4986
- "&.Mui-checked.Mui-disabled": {
4987
- color: PrimitiveColor.color_neutral_400
5292
+ /* @__PURE__ */ jsxs(FormControl, { error: !!((_f = formState.errors) == null ? void 0 : _f[name]), children: [
5293
+ /* @__PURE__ */ jsx(
5294
+ RadioGroup,
5295
+ __spreadProps(__spreadValues({
5296
+ value: field.value,
5297
+ onChange: field.onChange,
5298
+ row: isHorizontal,
5299
+ sx: { gap: gapValue }
5300
+ }, restProps), {
5301
+ children: options.length > 0 ? options.map((item, index) => {
5302
+ var _a128, _b128;
5303
+ return /* @__PURE__ */ jsx(
5304
+ FormControlLabel2,
5305
+ __spreadValues({
5306
+ value: item.value,
5307
+ label: item.label,
5308
+ disabled: isDisabled != null ? isDisabled : item.isDisabled,
5309
+ sx: __spreadProps(__spreadValues({}, radioItemSx), {
5310
+ "& .MuiFormControlLabel-label": {
5311
+ fontSize: "14px"
4988
5312
  }
4989
- }
4990
- }
4991
- )
4992
- }, item),
4993
- `radio-item-${index}`
4994
- )) : "You must provide options props"
4995
- })
4996
- ),
4997
- errorMessage && /* @__PURE__ */ jsx(BaseTypography, { variant: errorVariant, sx: { mt: gapValue }, children: errorMessage })
4998
- ] }) });
5313
+ }),
5314
+ control: /* @__PURE__ */ jsx(
5315
+ Radio,
5316
+ {
5317
+ sx: {
5318
+ "&.Mui-checked": {
5319
+ color: !!((_a128 = formState.errors) == null ? void 0 : _a128[name]) ? DerivedColor.color_text_danger : radioColor
5320
+ },
5321
+ color: !!((_b128 = formState.errors) == null ? void 0 : _b128[name]) ? DerivedColor.color_text_danger : void 0,
5322
+ "&.Mui-disabled": {
5323
+ color: PrimitiveColor.color_neutral_400
5324
+ },
5325
+ "&.Mui-checked.Mui-disabled": {
5326
+ color: PrimitiveColor.color_neutral_400
5327
+ }
5328
+ }
5329
+ }
5330
+ )
5331
+ }, item),
5332
+ `radio-item-${index}`
5333
+ );
5334
+ }) : "You must provide options props"
5335
+ })
5336
+ ),
5337
+ errorMessage && /* @__PURE__ */ jsx(BaseTypography, { variant: errorVariant, sx: { mt: gapValue }, children: errorMessage })
5338
+ ] })
5339
+ ] });
4999
5340
  };
5000
- var _a52, _b52;
5001
- var Check = (_b52 = (_a52 = CheckRaw) == null ? void 0 : _a52.default) != null ? _b52 : CheckRaw;
5002
- var _a53, _b53;
5003
- var CheckIcon = (_b53 = (_a53 = CheckRaw) == null ? void 0 : _a53.default) != null ? _b53 : CheckRaw;
5004
- var _a54, _b54;
5005
- var StepLabel = (_b54 = (_a54 = StepLabelRaw) == null ? void 0 : _a54.default) != null ? _b54 : StepLabelRaw;
5006
- var _a55, _b55;
5007
- var StepConnector = (_b55 = (_a55 = StepConnectorRaw) == null ? void 0 : _a55.default) != null ? _b55 : StepConnectorRaw;
5008
- var _a56, _b56;
5009
- var Step = (_b56 = (_a56 = StepRaw) == null ? void 0 : _a56.default) != null ? _b56 : StepRaw;
5010
- var _a57, _b57;
5011
- var Stepper = (_b57 = (_a57 = StepperRaw) == null ? void 0 : _a57.default) != null ? _b57 : StepperRaw;
5012
5341
  var _a58, _b58;
5013
- var Stack = (_b58 = (_a58 = StackRaw) == null ? void 0 : _a58.default) != null ? _b58 : StackRaw;
5342
+ var Check = (_b58 = (_a58 = CheckRaw) == null ? void 0 : _a58.default) != null ? _b58 : CheckRaw;
5014
5343
  var _a59, _b59;
5015
- var Box12 = (_b59 = (_a59 = BoxRaw) == null ? void 0 : _a59.default) != null ? _b59 : BoxRaw;
5344
+ var CheckIcon = (_b59 = (_a59 = CheckRaw) == null ? void 0 : _a59.default) != null ? _b59 : CheckRaw;
5016
5345
  var _a60, _b60;
5017
- var Typography3 = (_b60 = (_a60 = MuiTypographyRaw) == null ? void 0 : _a60.default) != null ? _b60 : MuiTypographyRaw;
5346
+ var StepLabel = (_b60 = (_a60 = StepLabelRaw) == null ? void 0 : _a60.default) != null ? _b60 : StepLabelRaw;
5018
5347
  var _a61, _b61;
5019
- var Button = (_b61 = (_a61 = ButtonRaw) == null ? void 0 : _a61.default) != null ? _b61 : ButtonRaw;
5348
+ var StepConnector = (_b61 = (_a61 = StepConnectorRaw) == null ? void 0 : _a61.default) != null ? _b61 : StepConnectorRaw;
5020
5349
  var _a62, _b62;
5021
- var Tooltip = (_b62 = (_a62 = TooltipRaw) == null ? void 0 : _a62.default) != null ? _b62 : TooltipRaw;
5350
+ var Step = (_b62 = (_a62 = StepRaw) == null ? void 0 : _a62.default) != null ? _b62 : StepRaw;
5351
+ var _a63, _b63;
5352
+ var Stepper = (_b63 = (_a63 = StepperRaw) == null ? void 0 : _a63.default) != null ? _b63 : StepperRaw;
5353
+ var _a64, _b64;
5354
+ var Stack = (_b64 = (_a64 = StackRaw) == null ? void 0 : _a64.default) != null ? _b64 : StackRaw;
5355
+ var _a65, _b65;
5356
+ var Box14 = (_b65 = (_a65 = BoxRaw) == null ? void 0 : _a65.default) != null ? _b65 : BoxRaw;
5357
+ var _a66, _b66;
5358
+ var Typography3 = (_b66 = (_a66 = MuiTypographyRaw) == null ? void 0 : _a66.default) != null ? _b66 : MuiTypographyRaw;
5359
+ var _a67, _b67;
5360
+ var Button = (_b67 = (_a67 = ButtonRaw) == null ? void 0 : _a67.default) != null ? _b67 : ButtonRaw;
5361
+ var _a68, _b68;
5362
+ var Tooltip = (_b68 = (_a68 = TooltipRaw) == null ? void 0 : _a68.default) != null ? _b68 : TooltipRaw;
5022
5363
  var CustomStepLabel = styled(StepLabel)(({ orientation }) => __spreadValues(__spreadProps(__spreadValues({}, orientation === "vertical" && {
5023
5364
  alignItems: "flex-start",
5024
5365
  "& .MuiStepLabel-labelContainer": {
@@ -5137,8 +5478,8 @@ var CustomProcessIcon = styled(CheckIcon)({
5137
5478
  justifyContent: "center",
5138
5479
  alignItems: "center"
5139
5480
  });
5140
- var HtmlTooltip = styled((_a107) => {
5141
- var _b107 = _a107, { className } = _b107, props = __objRest(_b107, ["className"]);
5481
+ var HtmlTooltip = styled((_a126) => {
5482
+ var _b126 = _a126, { className } = _b126, props = __objRest(_b126, ["className"]);
5142
5483
  return /* @__PURE__ */ jsx(Tooltip, __spreadProps(__spreadValues({}, props), { classes: { popper: className } }));
5143
5484
  })(() => ({
5144
5485
  [`& .${tooltipClasses.tooltip}`]: {
@@ -5166,7 +5507,7 @@ var BaseStepper = ({
5166
5507
  connector: /* @__PURE__ */ jsx(ColorlibConnector, { orientation }),
5167
5508
  orientation,
5168
5509
  children: steps == null ? void 0 : steps.map((step, index) => {
5169
- var _a107;
5510
+ var _a126;
5170
5511
  return /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsx(
5171
5512
  StepLabel,
5172
5513
  {
@@ -5176,9 +5517,9 @@ var BaseStepper = ({
5176
5517
  {
5177
5518
  title: /* @__PURE__ */ jsxs(Fragment$1, { children: [
5178
5519
  /* @__PURE__ */ jsx(Typography3, { color: "inherit", children: step == null ? void 0 : step.title }),
5179
- (_a107 = step == null ? void 0 : step.sublist) == null ? void 0 : _a107.map((list, subIndex) => /* @__PURE__ */ jsx(Box12, { sx: { display: "grid", gap: 1, mt: 0.5 }, children: /* @__PURE__ */ jsxs(Box12, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
5180
- (list == null ? void 0 : list.is_done) === 1 ? /* @__PURE__ */ jsx(Box12, { sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(CustomCheckIcon, {}) }) : /* @__PURE__ */ jsx(Box12, { sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(CustomProcessIcon, {}) }),
5181
- /* @__PURE__ */ jsx(Box12, { children: list == null ? void 0 : list.sublist_title })
5520
+ (_a126 = step == null ? void 0 : step.sublist) == null ? void 0 : _a126.map((list, subIndex) => /* @__PURE__ */ jsx(Box14, { sx: { display: "grid", gap: 1, mt: 0.5 }, children: /* @__PURE__ */ jsxs(Box14, { sx: { display: "flex", gap: 1, alignItems: "center" }, children: [
5521
+ (list == null ? void 0 : list.is_done) === 1 ? /* @__PURE__ */ jsx(Box14, { sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(CustomCheckIcon, {}) }) : /* @__PURE__ */ jsx(Box14, { sx: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ jsx(CustomProcessIcon, {}) }),
5522
+ /* @__PURE__ */ jsx(Box14, { children: list == null ? void 0 : list.sublist_title })
5182
5523
  ] }) }, subIndex))
5183
5524
  ] }),
5184
5525
  children: /* @__PURE__ */ jsx(
@@ -5201,7 +5542,7 @@ var BaseStepper = ({
5201
5542
  }
5202
5543
  ) });
5203
5544
  }
5204
- return /* @__PURE__ */ jsx(Box12, { sx: __spreadValues({ width: "100%" }, sx), children: /* @__PURE__ */ jsx(
5545
+ return /* @__PURE__ */ jsx(Box14, { sx: __spreadValues({ width: "100%" }, sx), children: /* @__PURE__ */ jsx(
5205
5546
  Stepper,
5206
5547
  {
5207
5548
  activeStep,
@@ -5215,7 +5556,7 @@ var BaseStepper = ({
5215
5556
  if (isActive) statusColor = PrimitiveColor.color_blue_cakrawala_500;
5216
5557
  if (isCompleted) statusColor = PrimitiveColor.color_green_500;
5217
5558
  return /* @__PURE__ */ jsx(Step, { children: /* @__PURE__ */ jsx(CustomStepLabel, { orientation, children: /* @__PURE__ */ jsxs(
5218
- Box12,
5559
+ Box14,
5219
5560
  {
5220
5561
  sx: {
5221
5562
  display: "flex",
@@ -5252,16 +5593,16 @@ BaseStepper.propTypes = {
5252
5593
  variant: PropTypes3.oneOf(["simple", "dashboard"]),
5253
5594
  sx: PropTypes3.object
5254
5595
  };
5255
- var _a63, _b63;
5256
- var InputAdornment2 = (_b63 = (_a63 = InputAdornmentRaw) == null ? void 0 : _a63.default) != null ? _b63 : InputAdornmentRaw;
5257
- var _a64, _b64;
5258
- var TextField2 = (_b64 = (_a64 = TextFieldRaw) == null ? void 0 : _a64.default) != null ? _b64 : TextFieldRaw;
5259
- var _a65, _b65;
5260
- var Box13 = (_b65 = (_a65 = BoxRaw) == null ? void 0 : _a65.default) != null ? _b65 : BoxRaw;
5261
- var _a66, _b66;
5262
- var Typography4 = (_b66 = (_a66 = MuiTypographyRaw) == null ? void 0 : _a66.default) != null ? _b66 : MuiTypographyRaw;
5263
- var BaseTextField = (_a107) => {
5264
- var _b107 = _a107, {
5596
+ var _a69, _b69;
5597
+ var InputAdornment2 = (_b69 = (_a69 = InputAdornmentRaw) == null ? void 0 : _a69.default) != null ? _b69 : InputAdornmentRaw;
5598
+ var _a70, _b70;
5599
+ var TextField2 = (_b70 = (_a70 = TextFieldRaw) == null ? void 0 : _a70.default) != null ? _b70 : TextFieldRaw;
5600
+ var _a71, _b71;
5601
+ var Box15 = (_b71 = (_a71 = BoxRaw) == null ? void 0 : _a71.default) != null ? _b71 : BoxRaw;
5602
+ var _a72, _b72;
5603
+ var Typography4 = (_b72 = (_a72 = MuiTypographyRaw) == null ? void 0 : _a72.default) != null ? _b72 : MuiTypographyRaw;
5604
+ var BaseTextField = (_a126) => {
5605
+ var _b126 = _a126, {
5265
5606
  name = "",
5266
5607
  control = null,
5267
5608
  defaultValue,
@@ -5282,7 +5623,7 @@ var BaseTextField = (_a107) => {
5282
5623
  InputProps: externalInputProps,
5283
5624
  inputProps: externalInputPropsLower,
5284
5625
  sx = {}
5285
- } = _b107, props = __objRest(_b107, [
5626
+ } = _b126, props = __objRest(_b126, [
5286
5627
  "name",
5287
5628
  "control",
5288
5629
  "defaultValue",
@@ -5304,7 +5645,7 @@ var BaseTextField = (_a107) => {
5304
5645
  "inputProps",
5305
5646
  "sx"
5306
5647
  ]);
5307
- var _a108, _b108, _c, _d, _e, _f;
5648
+ var _a127, _b127, _c, _d, _e, _f, _g, _h, _i, _j;
5308
5649
  const { field, formState } = useController({ control, name, defaultValue });
5309
5650
  const inputRef = useRef(null);
5310
5651
  const hasMask = !!textMask;
@@ -5397,12 +5738,12 @@ var BaseTextField = (_a107) => {
5397
5738
  return new RegExp(`^[${allowedPattern}\\s]+$`);
5398
5739
  };
5399
5740
  const handleKeyDown = (e) => {
5400
- var _a109, _b109, _c2;
5741
+ var _a128, _b128, _c2;
5401
5742
  if (hasMask) {
5402
5743
  const input = e.target;
5403
5744
  const value = input.value || "";
5404
- const selectionStart = (_a109 = input.selectionStart) != null ? _a109 : value.length;
5405
- const selectionEnd = (_b109 = input.selectionEnd) != null ? _b109 : value.length;
5745
+ const selectionStart = (_a128 = input.selectionStart) != null ? _a128 : value.length;
5746
+ const selectionEnd = (_b128 = input.selectionEnd) != null ? _b128 : value.length;
5406
5747
  const allowedKeys2 = [
5407
5748
  "Tab",
5408
5749
  "Backspace",
@@ -5548,7 +5889,7 @@ var BaseTextField = (_a107) => {
5548
5889
  }
5549
5890
  };
5550
5891
  const handlePaste = (e) => {
5551
- var _a109, _b109;
5892
+ var _a128, _b128;
5552
5893
  if (hasMask) {
5553
5894
  if (isCantPaste) {
5554
5895
  e.preventDefault();
@@ -5557,8 +5898,8 @@ var BaseTextField = (_a107) => {
5557
5898
  const pastedData2 = e.clipboardData.getData("Text") || "";
5558
5899
  const cleaned = sanitizeRaw(pastedData2);
5559
5900
  const input = e.target;
5560
- const selectionStart2 = (_a109 = input.selectionStart) != null ? _a109 : 0;
5561
- const selectionEnd2 = (_b109 = input.selectionEnd) != null ? _b109 : 0;
5901
+ const selectionStart2 = (_a128 = input.selectionStart) != null ? _a128 : 0;
5902
+ const selectionEnd2 = (_b128 = input.selectionEnd) != null ? _b128 : 0;
5562
5903
  const currentRaw = sanitizeRaw(field.value).slice(0, maskSlots);
5563
5904
  let rawArr = currentRaw.split("");
5564
5905
  const xStart = (textMask.slice(0, selectionStart2).match(/x/gi) || []).length;
@@ -5631,20 +5972,24 @@ var BaseTextField = (_a107) => {
5631
5972
  setDisplayValue(newDisplay);
5632
5973
  field.onChange(raw);
5633
5974
  requestAnimationFrame(() => {
5634
- var _a109;
5975
+ var _a128;
5635
5976
  try {
5636
5977
  const caret = computeCaretFromRawLen(raw.length, textMask);
5637
- (_a109 = inputRef.current) == null ? void 0 : _a109.setSelectionRange(caret, caret);
5978
+ (_a128 = inputRef.current) == null ? void 0 : _a128.setSelectionRange(caret, caret);
5638
5979
  } catch (e2) {
5639
5980
  }
5640
5981
  });
5641
5982
  };
5642
- return /* @__PURE__ */ jsxs(Box13, { sx, children: [
5983
+ return /* @__PURE__ */ jsxs(Box15, { sx, children: [
5643
5984
  props.title && /* @__PURE__ */ jsx(
5644
5985
  Typography4,
5645
5986
  {
5646
5987
  variant: "body2",
5647
- sx: { fontWeight: 600, color: DerivedColor.color_text_default, mb: "4px" },
5988
+ sx: {
5989
+ fontWeight: 600,
5990
+ color: !!((_a127 = formState.errors) == null ? void 0 : _a127[name]) ? DerivedColor.color_text_danger : DerivedColor.color_text_default,
5991
+ mb: "4px"
5992
+ },
5648
5993
  children: props.title
5649
5994
  }
5650
5995
  ),
@@ -5654,11 +5999,11 @@ var BaseTextField = (_a107) => {
5654
5999
  id: props.id || `field-${name}`,
5655
6000
  variant: "outlined",
5656
6001
  fullWidth: true,
5657
- error: !!((_a108 = formState.errors) == null ? void 0 : _a108[name]),
6002
+ error: !!((_b127 = formState.errors) == null ? void 0 : _b127[name]),
5658
6003
  helperText: /* @__PURE__ */ jsxs(Fragment, { children: [
5659
- /* @__PURE__ */ jsx(Box13, { component: "span", children: ((_c = (_b108 = formState.errors) == null ? void 0 : _b108[name]) == null ? void 0 : _c.message) || (maxLength && showLength ? `Maksimal ${maxLength} Karakter` : "") }),
5660
- maxLength && showCountHelper && /* @__PURE__ */ jsxs(Box13, { component: "span", sx: { ml: "auto" }, children: [
5661
- ((_d = field.value) == null ? void 0 : _d.length) || 0,
6004
+ /* @__PURE__ */ jsx(Box15, { component: "span", children: ((_d = (_c = formState.errors) == null ? void 0 : _c[name]) == null ? void 0 : _d.message) || (maxLength && showLength ? `Maksimal ${maxLength} Karakter` : "") }),
6005
+ maxLength && showCountHelper && /* @__PURE__ */ jsxs(Box15, { component: "span", sx: { ml: "auto" }, children: [
6006
+ ((_e = field.value) == null ? void 0 : _e.length) || 0,
5662
6007
  "/",
5663
6008
  maxLength
5664
6009
  ] })
@@ -5667,6 +6012,7 @@ var BaseTextField = (_a107) => {
5667
6012
  sx: {
5668
6013
  fontSize: 14,
5669
6014
  ml: 0,
6015
+ letterSpacing: 0,
5670
6016
  display: "flex",
5671
6017
  justifyContent: "space-between"
5672
6018
  }
@@ -5679,19 +6025,37 @@ var BaseTextField = (_a107) => {
5679
6025
  inputProps: __spreadValues({
5680
6026
  maxLength: hasMask ? textMask.length : maxLength
5681
6027
  }, externalInputPropsLower),
6028
+ sx: {
6029
+ "& .MuiOutlinedInput-root": {
6030
+ "& fieldset": {
6031
+ borderColor: !!((_f = formState.errors) == null ? void 0 : _f[name]) ? DerivedColor.color_border_danger : DerivedColor.color_border_default
6032
+ },
6033
+ "&:hover fieldset": {
6034
+ borderColor: !!((_g = formState.errors) == null ? void 0 : _g[name]) ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
6035
+ },
6036
+ "&.Mui-focused fieldset": {
6037
+ borderColor: !!((_h = formState.errors) == null ? void 0 : _h[name]) ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary,
6038
+ borderWidth: 2
6039
+ }
6040
+ }
6041
+ },
5682
6042
  InputProps: __spreadProps(__spreadValues({}, externalInputProps), {
5683
6043
  sx: __spreadValues({
5684
6044
  borderRadius: Radius.radius_2,
6045
+ fontSize: 14,
5685
6046
  backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : PrimitiveColor.color_neutral_50,
5686
- color: isDisabled ? PrimitiveColor.color_neutral_600 : PrimitiveColor.color_neutral_900
6047
+ color: isDisabled ? PrimitiveColor.color_neutral_600 : PrimitiveColor.color_neutral_900,
6048
+ "& input::placeholder": {
6049
+ fontSize: 14
6050
+ }
5687
6051
  }, externalInputProps == null ? void 0 : externalInputProps.sx),
5688
6052
  startAdornment: externalInputProps == null ? void 0 : externalInputProps.startAdornment,
5689
6053
  endAdornment: /* @__PURE__ */ jsxs(Fragment, { children: [
5690
- !!((_e = formState.errors) == null ? void 0 : _e[name]) && /* @__PURE__ */ jsx(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx(IconInfoCircle, { size: 18, color: PrimitiveColor.color_red_500 }) }),
6054
+ !!((_i = formState.errors) == null ? void 0 : _i[name]) && /* @__PURE__ */ jsx(InputAdornment2, { position: "end", children: /* @__PURE__ */ jsx(IconAlertCircleFilled, { size: 18, color: DerivedColor.color_icon_danger }) }),
5691
6055
  externalInputProps == null ? void 0 : externalInputProps.endAdornment
5692
6056
  ] })
5693
6057
  }),
5694
- value: hasMask ? displayValue != null ? displayValue : "" : (_f = field.value) != null ? _f : "",
6058
+ value: hasMask ? displayValue != null ? displayValue : "" : (_j = field.value) != null ? _j : "",
5695
6059
  onChange: hasMask ? handleChangeMasked : field.onChange
5696
6060
  }, props), hasMask ? {} : field)
5697
6061
  ),
@@ -5707,18 +6071,18 @@ var BaseTextField = (_a107) => {
5707
6071
  )
5708
6072
  ] });
5709
6073
  };
5710
- var _a67, _b67;
5711
- var Box14 = (_b67 = (_a67 = BoxRaw) == null ? void 0 : _a67.default) != null ? _b67 : BoxRaw;
5712
- var _a68, _b68;
5713
- var Button2 = (_b68 = (_a68 = ButtonRaw) == null ? void 0 : _a68.default) != null ? _b68 : ButtonRaw;
5714
- var _a69, _b69;
5715
- var Input = (_b69 = (_a69 = InputRaw) == null ? void 0 : _a69.default) != null ? _b69 : InputRaw;
5716
- var _a70, _b70;
5717
- var TextField3 = (_b70 = (_a70 = TextFieldRaw) == null ? void 0 : _a70.default) != null ? _b70 : TextFieldRaw;
5718
- var _a71, _b71;
5719
- var Typography5 = (_b71 = (_a71 = MuiTypographyRaw) == null ? void 0 : _a71.default) != null ? _b71 : MuiTypographyRaw;
5720
- var _a72, _b72;
5721
- var UploadFile = (_b72 = (_a72 = UploadFileRaw) == null ? void 0 : _a72.default) != null ? _b72 : UploadFileRaw;
6074
+ var _a73, _b73;
6075
+ var Box16 = (_b73 = (_a73 = BoxRaw) == null ? void 0 : _a73.default) != null ? _b73 : BoxRaw;
6076
+ var _a74, _b74;
6077
+ var Button2 = (_b74 = (_a74 = ButtonRaw) == null ? void 0 : _a74.default) != null ? _b74 : ButtonRaw;
6078
+ var _a75, _b75;
6079
+ var Input = (_b75 = (_a75 = InputRaw) == null ? void 0 : _a75.default) != null ? _b75 : InputRaw;
6080
+ var _a76, _b76;
6081
+ var TextField3 = (_b76 = (_a76 = TextFieldRaw) == null ? void 0 : _a76.default) != null ? _b76 : TextFieldRaw;
6082
+ var _a77, _b77;
6083
+ var Typography5 = (_b77 = (_a77 = MuiTypographyRaw) == null ? void 0 : _a77.default) != null ? _b77 : MuiTypographyRaw;
6084
+ var _a78, _b78;
6085
+ var UploadFile = (_b78 = (_a78 = UploadFileRaw) == null ? void 0 : _a78.default) != null ? _b78 : UploadFileRaw;
5722
6086
  var TextFieldUpload = ({
5723
6087
  name = "upload",
5724
6088
  control,
@@ -5744,14 +6108,14 @@ var TextFieldUpload = ({
5744
6108
  const [fileSizeError, setFileSizeError] = useState(false);
5745
6109
  const [unsupportedFile, setUnsupportedFile] = useState(false);
5746
6110
  const handleFileChange = (event) => {
5747
- var _a107, _b107;
5748
- const file = (_a107 = event.target.files) == null ? void 0 : _a107[0];
6111
+ var _a126, _b126;
6112
+ const file = (_a126 = event.target.files) == null ? void 0 : _a126[0];
5749
6113
  if (!file) {
5750
6114
  field.onChange("");
5751
6115
  uploadFile == null ? void 0 : uploadFile("", null);
5752
6116
  return;
5753
6117
  }
5754
- const extension = (_b107 = file.name.split(".").pop()) == null ? void 0 : _b107.toLowerCase();
6118
+ const extension = (_b126 = file.name.split(".").pop()) == null ? void 0 : _b126.toLowerCase();
5755
6119
  const acceptedExtensions = accept ? accept.split(",").map((ext) => ext.trim().toLowerCase()) : [];
5756
6120
  if (acceptedExtensions.length > 0 && !acceptedExtensions.includes(`.${extension}`)) {
5757
6121
  setUnsupportedFile(true);
@@ -5772,11 +6136,11 @@ var TextFieldUpload = ({
5772
6136
  };
5773
6137
  const isError = !!fieldState.error || fileSizeError || unsupportedFile;
5774
6138
  const isSuccess = !!field.value && !isError;
5775
- const borderColor = isError ? PrimitiveColor.color_red_500 : isSuccess ? PrimitiveColor.color_blue_cakrawala_500 : PrimitiveColor.color_neutral_300;
6139
+ isError ? PrimitiveColor.color_red_500 : isSuccess ? PrimitiveColor.color_blue_cakrawala_500 : PrimitiveColor.color_neutral_300;
5776
6140
  const helperText = fileSizeError ? `Ukuran file melebihi ${maxSize} MB` : unsupportedFile ? "Format file tidak didukung" : `Format ${accept || "-"} ukuran maks. ${maxSize} MB`;
5777
6141
  const handleButtonClick = () => {
5778
- var _a107;
5779
- (_a107 = inputRef.current) == null ? void 0 : _a107.click();
6142
+ var _a126;
6143
+ (_a126 = inputRef.current) == null ? void 0 : _a126.click();
5780
6144
  };
5781
6145
  const uploadButton = /* @__PURE__ */ jsx(
5782
6146
  Button2,
@@ -5805,29 +6169,30 @@ var TextFieldUpload = ({
5805
6169
  }
5806
6170
  },
5807
6171
  children: /* @__PURE__ */ jsx(
5808
- Typography5,
6172
+ BaseTypography,
5809
6173
  {
5810
- sx: __spreadProps(__spreadValues({}, VariantStyles.body2_regular), {
5811
- fontWeight: 600
5812
- }),
6174
+ variant: "body1_regular.inverse",
6175
+ sx: { fontWeight: 600 },
5813
6176
  children: buttonLabel
5814
6177
  }
5815
6178
  )
5816
6179
  }
5817
6180
  );
5818
- return /* @__PURE__ */ jsxs(Box14, { width: "100%", children: [
6181
+ return /* @__PURE__ */ jsxs(Box16, { width: "100%", children: [
5819
6182
  title && /* @__PURE__ */ jsx(
5820
6183
  Typography5,
5821
6184
  {
5822
6185
  sx: __spreadProps(__spreadValues({}, VariantStyles.body2_regular), {
6186
+ fontSize: 14,
5823
6187
  fontWeight: 600,
5824
- mb: SpacingToken.spacing2
6188
+ mb: SpacingToken.spacing2,
6189
+ color: isError ? DerivedColor.color_text_danger : DerivedColor.color_text_default
5825
6190
  }),
5826
6191
  children: title
5827
6192
  }
5828
6193
  ),
5829
- /* @__PURE__ */ jsxs(Box14, { width: "100%", children: [
5830
- /* @__PURE__ */ jsxs(Box14, { display: "flex", width: "100%", children: [
6194
+ /* @__PURE__ */ jsxs(Box16, { width: "100%", children: [
6195
+ /* @__PURE__ */ jsxs(Box16, { display: "flex", width: "100%", children: [
5831
6196
  buttonPosition === "start" && uploadButton,
5832
6197
  /* @__PURE__ */ jsx(
5833
6198
  TextField3,
@@ -5841,24 +6206,30 @@ var TextFieldUpload = ({
5841
6206
  readOnly: true
5842
6207
  },
5843
6208
  sx: {
5844
- "& .MuiOutlinedInput-root": __spreadValues({
6209
+ "& .MuiOutlinedInput-root": __spreadProps(__spreadValues({
5845
6210
  borderTopLeftRadius: buttonPosition === "start" ? 0 : Radius.radius_2,
5846
6211
  borderBottomLeftRadius: buttonPosition === "start" ? 0 : Radius.radius_2,
5847
6212
  borderTopRightRadius: buttonPosition === "end" ? 0 : Radius.radius_2,
5848
6213
  borderBottomRightRadius: buttonPosition === "end" ? 0 : Radius.radius_2
5849
6214
  }, isDisabled && {
5850
6215
  backgroundColor: PrimitiveColor.color_neutral_200
6216
+ }), {
6217
+ "& fieldset": {
6218
+ borderColor: isError ? DerivedColor.color_border_danger : DerivedColor.color_border_default
6219
+ },
6220
+ "&:hover fieldset": {
6221
+ borderColor: isError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
6222
+ },
6223
+ "&.Mui-focused fieldset": {
6224
+ borderColor: isError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary,
6225
+ borderWidth: 2
6226
+ }
5851
6227
  }),
5852
- "& .MuiOutlinedInput-notchedOutline": {
5853
- borderColor
5854
- },
5855
- "&:hover .MuiOutlinedInput-notchedOutline": {
5856
- boxShadows: 0,
5857
- borderColor
5858
- },
5859
- "& .Mui-focused .MuiOutlinedInput-notchedOutline": {
5860
- borderColor,
5861
- borderWidth: 1
6228
+ "& .MuiInputBase-input": {
6229
+ fontSize: 14,
6230
+ "&::placeholder": {
6231
+ fontSize: 14
6232
+ }
5862
6233
  }
5863
6234
  }
5864
6235
  }
@@ -5866,7 +6237,7 @@ var TextFieldUpload = ({
5866
6237
  buttonPosition === "end" && uploadButton
5867
6238
  ] }),
5868
6239
  /* @__PURE__ */ jsxs(
5869
- Box14,
6240
+ Box16,
5870
6241
  {
5871
6242
  display: "flex",
5872
6243
  alignItems: "center",
@@ -5906,13 +6277,13 @@ function Editor(props) {
5906
6277
  useEffect(() => {
5907
6278
  let cancelled = false;
5908
6279
  async function load() {
5909
- var _a107, _b107, _c, _d, _e, _f, _g;
6280
+ var _a126, _b126, _c, _d, _e, _f, _g;
5910
6281
  const alreadyLoaded = typeof window !== "undefined" && window.tinymce;
5911
6282
  if (!alreadyLoaded) {
5912
6283
  try {
5913
6284
  const tinymceModule = await import('tinymce/tinymce');
5914
6285
  if (typeof window !== "undefined" && !window.tinymce) {
5915
- const core = (_a107 = tinymceModule.default) != null ? _a107 : tinymceModule;
6286
+ const core = (_a126 = tinymceModule.default) != null ? _a126 : tinymceModule;
5916
6287
  if (core && typeof core === "object" && core.tinymce) {
5917
6288
  window.tinymce = core.tinymce;
5918
6289
  } else {
@@ -5964,7 +6335,7 @@ function Editor(props) {
5964
6335
  import('tinymce/skins/content/default/content.min.css'),
5965
6336
  import('tinymce/skins/ui/oxide/content.min.css')
5966
6337
  ]);
5967
- const skinCss = (_b107 = skinMod == null ? void 0 : skinMod.default) != null ? _b107 : "";
6338
+ const skinCss = (_b126 = skinMod == null ? void 0 : skinMod.default) != null ? _b126 : "";
5968
6339
  const contentCss = (_c = contentMod == null ? void 0 : contentMod.default) != null ? _c : "";
5969
6340
  const oxideContentCss = (_d = oxideContentMod == null ? void 0 : oxideContentMod.default) != null ? _d : "";
5970
6341
  const combinedCss = [skinCss, contentCss, oxideContentCss].filter(Boolean).join("\n");
@@ -6004,16 +6375,16 @@ function Editor(props) {
6004
6375
  }
6005
6376
  return /* @__PURE__ */ jsx(TinyEditor, __spreadValues({}, props));
6006
6377
  }
6007
- var _a73, _b73;
6008
- var InputAdornment3 = (_b73 = (_a73 = InputAdornmentRaw) == null ? void 0 : _a73.default) != null ? _b73 : InputAdornmentRaw;
6009
- var _a74, _b74;
6010
- var TextField4 = (_b74 = (_a74 = TextFieldRaw) == null ? void 0 : _a74.default) != null ? _b74 : TextFieldRaw;
6011
- var _a75, _b75;
6012
- var Box15 = (_b75 = (_a75 = BoxRaw) == null ? void 0 : _a75.default) != null ? _b75 : BoxRaw;
6013
- var _a76, _b76;
6014
- var Typography6 = (_b76 = (_a76 = MuiTypographyRaw) == null ? void 0 : _a76.default) != null ? _b76 : MuiTypographyRaw;
6015
- var BaseTextArea = (_a107) => {
6016
- var _b107 = _a107, {
6378
+ var _a79, _b79;
6379
+ var InputAdornment3 = (_b79 = (_a79 = InputAdornmentRaw) == null ? void 0 : _a79.default) != null ? _b79 : InputAdornmentRaw;
6380
+ var _a80, _b80;
6381
+ var TextField4 = (_b80 = (_a80 = TextFieldRaw) == null ? void 0 : _a80.default) != null ? _b80 : TextFieldRaw;
6382
+ var _a81, _b81;
6383
+ var Box17 = (_b81 = (_a81 = BoxRaw) == null ? void 0 : _a81.default) != null ? _b81 : BoxRaw;
6384
+ var _a82, _b82;
6385
+ var Typography6 = (_b82 = (_a82 = MuiTypographyRaw) == null ? void 0 : _a82.default) != null ? _b82 : MuiTypographyRaw;
6386
+ var BaseTextArea = (_a126) => {
6387
+ var _b126 = _a126, {
6017
6388
  name = "",
6018
6389
  control = null,
6019
6390
  defaultValue = "",
@@ -6027,7 +6398,7 @@ var BaseTextArea = (_a107) => {
6027
6398
  init,
6028
6399
  handleImageUpload,
6029
6400
  sx = {}
6030
- } = _b107, props = __objRest(_b107, [
6401
+ } = _b126, props = __objRest(_b126, [
6031
6402
  "name",
6032
6403
  "control",
6033
6404
  "defaultValue",
@@ -6042,8 +6413,8 @@ var BaseTextArea = (_a107) => {
6042
6413
  "handleImageUpload",
6043
6414
  "sx"
6044
6415
  ]);
6045
- var _a108, _b108, _c, _d, _e, _f, _g;
6046
- const computedMaxLength = (_b108 = exactLength != null ? exactLength : maxLength) != null ? _b108 : (_a108 = rules == null ? void 0 : rules.maxLength) == null ? void 0 : _a108.value;
6416
+ var _a127, _b127, _c, _d, _e, _f, _g;
6417
+ const computedMaxLength = (_b127 = exactLength != null ? exactLength : maxLength) != null ? _b127 : (_a127 = rules == null ? void 0 : rules.maxLength) == null ? void 0 : _a127.value;
6047
6418
  const { field, fieldState } = useController({
6048
6419
  control,
6049
6420
  name,
@@ -6081,16 +6452,28 @@ var BaseTextArea = (_a107) => {
6081
6452
  const baseSx = {
6082
6453
  "& .MuiOutlinedInput-root": {
6083
6454
  borderRadius: Radius.radius_3,
6084
- backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : PrimitiveColor.color_neutral_50
6085
- },
6086
- "& .MuiOutlinedInput-notchedOutline": {
6087
- borderColor: hasError ? PrimitiveColor.color_red_500 : PrimitiveColor.color_neutral_300
6455
+ fontSize: 14,
6456
+ backgroundColor: isDisabled ? PrimitiveColor.color_neutral_200 : PrimitiveColor.color_neutral_50,
6457
+ "& fieldset": {
6458
+ borderColor: hasError ? DerivedColor.color_border_danger : DerivedColor.color_border_default
6459
+ },
6460
+ "&:hover fieldset": {
6461
+ borderColor: hasError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary
6462
+ },
6463
+ "&.Mui-focused fieldset": {
6464
+ borderColor: hasError ? DerivedColor.color_border_danger : DerivedColor.color_border_brand_primary,
6465
+ borderWidth: 2
6466
+ }
6088
6467
  },
6089
- "&:hover .MuiOutlinedInput-notchedOutline": {
6090
- borderColor: hasError ? PrimitiveColor.color_red_500 : PrimitiveColor.color_neutral_600
6468
+ "& .MuiInputBase-input, & .MuiInputBase-inputMultiline": {
6469
+ fontSize: 14,
6470
+ "&::placeholder": {
6471
+ fontSize: 14
6472
+ }
6091
6473
  },
6092
6474
  "& .MuiFormHelperText-root": __spreadProps(__spreadValues({}, VariantStyles.caption_regular), {
6093
- color: hasError ? PrimitiveColor.color_red_500 : PrimitiveColor.color_neutral_600,
6475
+ fontSize: 14,
6476
+ color: hasError ? DerivedColor.color_text_danger : PrimitiveColor.color_neutral_600,
6094
6477
  marginLeft: 0,
6095
6478
  marginTop: SpacingToken.spacing1
6096
6479
  })
@@ -6100,20 +6483,18 @@ var BaseTextArea = (_a107) => {
6100
6483
  const editorId = (_e = props.id) != null ? _e : `textarea-${name}-${uniqueSuffix}`;
6101
6484
  const wrapperId = `editor-wrap-${uniqueSuffix}`;
6102
6485
  if (useRichText) {
6103
- return /* @__PURE__ */ jsxs(Box15, { id: wrapperId, sx, children: [
6104
- title && /* @__PURE__ */ jsxs(
6486
+ return /* @__PURE__ */ jsxs(Box17, { id: wrapperId, sx, children: [
6487
+ title && /* @__PURE__ */ jsx(
6105
6488
  Typography6,
6106
6489
  {
6107
6490
  variant: "body2",
6108
- sx: { fontWeight: 600, color: DerivedColor.color_text_default, mb: "4px" },
6109
- children: [
6110
- title,
6111
- " ",
6112
- hasError && /* @__PURE__ */ jsxs(Box15, { component: "small", sx: { color: PrimitiveColor.color_red_500 }, children: [
6113
- "*",
6114
- errorMessage
6115
- ] })
6116
- ]
6491
+ sx: {
6492
+ fontWeight: 600,
6493
+ fontSize: 14,
6494
+ color: hasError ? DerivedColor.color_text_danger : DerivedColor.color_text_default,
6495
+ mb: "4px"
6496
+ },
6497
+ children: title
6117
6498
  }
6118
6499
  ),
6119
6500
  /* @__PURE__ */ jsx("style", { children: `
@@ -6209,7 +6590,7 @@ var BaseTextArea = (_a107) => {
6209
6590
  ] });
6210
6591
  }
6211
6592
  return /* @__PURE__ */ jsxs(
6212
- Box15,
6593
+ Box17,
6213
6594
  {
6214
6595
  sx: __spreadValues({
6215
6596
  display: "flex",
@@ -6221,7 +6602,11 @@ var BaseTextArea = (_a107) => {
6221
6602
  Typography6,
6222
6603
  {
6223
6604
  variant: "body2",
6224
- sx: { fontWeight: 600, color: DerivedColor.color_text_default },
6605
+ sx: {
6606
+ fontWeight: 600,
6607
+ fontSize: 14,
6608
+ color: hasError ? DerivedColor.color_text_danger : DerivedColor.color_text_default
6609
+ },
6225
6610
  children: title
6226
6611
  }
6227
6612
  ),
@@ -6241,7 +6626,7 @@ var BaseTextArea = (_a107) => {
6241
6626
  maxLength: computedMaxLength
6242
6627
  },
6243
6628
  InputProps: {
6244
- endAdornment: hasError && /* @__PURE__ */ jsx(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx(IconInfoCircle, { size: 18, color: PrimitiveColor.color_red_500 }) })
6629
+ endAdornment: hasError && /* @__PURE__ */ jsx(InputAdornment3, { position: "end", children: /* @__PURE__ */ jsx(IconAlertCircleFilled, { size: 18, color: PrimitiveColor.color_red_500 }) })
6245
6630
  }
6246
6631
  }, props), field)
6247
6632
  )
@@ -6249,20 +6634,20 @@ var BaseTextArea = (_a107) => {
6249
6634
  }
6250
6635
  );
6251
6636
  };
6252
- var _a77, _b77;
6253
- var CloseIcon2 = (_b77 = (_a77 = CloseIconRaw) == null ? void 0 : _a77.default) != null ? _b77 : CloseIconRaw;
6254
- var _a78, _b78;
6255
- var Dialog = (_b78 = (_a78 = DialogRaw) == null ? void 0 : _a78.default) != null ? _b78 : DialogRaw;
6256
- var _a79, _b79;
6257
- var DialogTitle = (_b79 = (_a79 = DialogTitleRaw) == null ? void 0 : _a79.default) != null ? _b79 : DialogTitleRaw;
6258
- var _a80, _b80;
6259
- var DialogContent = (_b80 = (_a80 = DialogContentRaw) == null ? void 0 : _a80.default) != null ? _b80 : DialogContentRaw;
6260
- var _a81, _b81;
6261
- var DialogActions = (_b81 = (_a81 = DialogActionsRaw) == null ? void 0 : _a81.default) != null ? _b81 : DialogActionsRaw;
6262
- var _a82, _b82;
6263
- var IconButton4 = (_b82 = (_a82 = IconButtonRaw) == null ? void 0 : _a82.default) != null ? _b82 : IconButtonRaw;
6264
- var BaseModal = (_a107) => {
6265
- var _b107 = _a107, {
6637
+ var _a83, _b83;
6638
+ var CloseIcon2 = (_b83 = (_a83 = CloseIconRaw) == null ? void 0 : _a83.default) != null ? _b83 : CloseIconRaw;
6639
+ var _a84, _b84;
6640
+ var Dialog = (_b84 = (_a84 = DialogRaw) == null ? void 0 : _a84.default) != null ? _b84 : DialogRaw;
6641
+ var _a85, _b85;
6642
+ var DialogTitle = (_b85 = (_a85 = DialogTitleRaw) == null ? void 0 : _a85.default) != null ? _b85 : DialogTitleRaw;
6643
+ var _a86, _b86;
6644
+ var DialogContent = (_b86 = (_a86 = DialogContentRaw) == null ? void 0 : _a86.default) != null ? _b86 : DialogContentRaw;
6645
+ var _a87, _b87;
6646
+ var DialogActions = (_b87 = (_a87 = DialogActionsRaw) == null ? void 0 : _a87.default) != null ? _b87 : DialogActionsRaw;
6647
+ var _a88, _b88;
6648
+ var IconButton5 = (_b88 = (_a88 = IconButtonRaw) == null ? void 0 : _a88.default) != null ? _b88 : IconButtonRaw;
6649
+ var BaseModal = (_a126) => {
6650
+ var _b126 = _a126, {
6266
6651
  open,
6267
6652
  onClose,
6268
6653
  onConfirm,
@@ -6285,7 +6670,7 @@ var BaseModal = (_a107) => {
6285
6670
  align = "center",
6286
6671
  modalWidth = "w-[350px]",
6287
6672
  showCloseIcon = true
6288
- } = _b107, props = __objRest(_b107, [
6673
+ } = _b126, props = __objRest(_b126, [
6289
6674
  "open",
6290
6675
  "onClose",
6291
6676
  "onConfirm",
@@ -6347,7 +6732,7 @@ var BaseModal = (_a107) => {
6347
6732
  PaperProps: { className: modalWidth },
6348
6733
  children: [
6349
6734
  (title || showCloseIcon) && /* @__PURE__ */ jsx(DialogTitle, { sx: { p: SpacingToken.spacing4 }, children: showCloseIcon && /* @__PURE__ */ jsx(
6350
- IconButton4,
6735
+ IconButton5,
6351
6736
  {
6352
6737
  "aria-label": "close",
6353
6738
  onClick: onClose,
@@ -6439,42 +6824,569 @@ BaseModal.propTypes = {
6439
6824
  modalWidth: PropTypes3.string,
6440
6825
  showCloseIcon: PropTypes3.bool
6441
6826
  };
6442
- var _a83, _b83;
6443
- var CloseIcon3 = (_b83 = (_a83 = CloseIconRaw) == null ? void 0 : _a83.default) != null ? _b83 : CloseIconRaw;
6444
- var _a84, _b84;
6445
- var CheckIcon2 = (_b84 = (_a84 = CheckRaw) == null ? void 0 : _a84.default) != null ? _b84 : CheckRaw;
6446
- var _a85, _b85;
6447
- var FailedIcon = (_b85 = (_a85 = CloseIconRaw) == null ? void 0 : _a85.default) != null ? _b85 : CloseIconRaw;
6448
- var _a86, _b86;
6449
- var InfoIcon = (_b86 = (_a86 = InfoIconRaw) == null ? void 0 : _a86.default) != null ? _b86 : InfoIconRaw;
6450
- var _a87, _b87;
6451
- var Dialog2 = (_b87 = (_a87 = DialogRaw) == null ? void 0 : _a87.default) != null ? _b87 : DialogRaw;
6452
- var _a88, _b88;
6453
- var DialogTitle2 = (_b88 = (_a88 = DialogTitleRaw) == null ? void 0 : _a88.default) != null ? _b88 : DialogTitleRaw;
6454
6827
  var _a89, _b89;
6455
- var DialogContent2 = (_b89 = (_a89 = DialogContentRaw) == null ? void 0 : _a89.default) != null ? _b89 : DialogContentRaw;
6828
+ var Dialog2 = (_b89 = (_a89 = DialogRaw) == null ? void 0 : _a89.default) != null ? _b89 : DialogRaw;
6456
6829
  var _a90, _b90;
6457
- var DialogActions2 = (_b90 = (_a90 = DialogActionsRaw) == null ? void 0 : _a90.default) != null ? _b90 : DialogActionsRaw;
6830
+ var DialogContent2 = (_b90 = (_a90 = DialogContentRaw) == null ? void 0 : _a90.default) != null ? _b90 : DialogContentRaw;
6458
6831
  var _a91, _b91;
6459
- var IconButton5 = (_b91 = (_a91 = IconButtonRaw) == null ? void 0 : _a91.default) != null ? _b91 : IconButtonRaw;
6832
+ var DialogActions2 = (_b91 = (_a91 = DialogActionsRaw) == null ? void 0 : _a91.default) != null ? _b91 : DialogActionsRaw;
6460
6833
  var _a92, _b92;
6461
- var Typography7 = (_b92 = (_a92 = MuiTypographyRaw) == null ? void 0 : _a92.default) != null ? _b92 : MuiTypographyRaw;
6834
+ var IconButton6 = (_b92 = (_a92 = IconButtonRaw) == null ? void 0 : _a92.default) != null ? _b92 : IconButtonRaw;
6462
6835
  var _a93, _b93;
6463
- var Box16 = (_b93 = (_a93 = BoxRaw) == null ? void 0 : _a93.default) != null ? _b93 : BoxRaw;
6836
+ var Box18 = (_b93 = (_a93 = BoxRaw) == null ? void 0 : _a93.default) != null ? _b93 : BoxRaw;
6837
+ var ICON_MAP = {
6838
+ success: {
6839
+ Hero: SuccessHero,
6840
+ FallbackIcon: IconCircleCheck,
6841
+ color: PrimitiveColor.color_green_500
6842
+ },
6843
+ error: {
6844
+ Hero: ErrorHero,
6845
+ FallbackIcon: IconAlertCircle,
6846
+ color: PrimitiveColor.color_red_500
6847
+ },
6848
+ info: {
6849
+ Hero: null,
6850
+ FallbackIcon: IconInfoCircle,
6851
+ color: PrimitiveColor.color_blue_cakrawala_500
6852
+ },
6853
+ warning: {
6854
+ Hero: WarningHero,
6855
+ FallbackIcon: IconAlertTriangle,
6856
+ color: PrimitiveColor.color_yellow_500
6857
+ },
6858
+ confirm: {
6859
+ Hero: null,
6860
+ FallbackIcon: IconHelpCircle,
6861
+ color: PrimitiveColor.color_blue_cakrawala_500
6862
+ }
6863
+ };
6864
+ var DEFAULT_TITLES = {
6865
+ success: "Success !",
6866
+ error: "Oops !",
6867
+ warning: "Oops !",
6868
+ info: "Information !",
6869
+ confirm: "Confirmation !"
6870
+ };
6871
+ var ModalAlertDialog = ({
6872
+ open = false,
6873
+ onClose,
6874
+ icon = "info",
6875
+ title = "",
6876
+ description = "",
6877
+ cancelBtnText = "Batal",
6878
+ confirmBtnText = "Ya",
6879
+ cancelBtnProps,
6880
+ confirmBtnProps,
6881
+ showCancelBtn = true,
6882
+ showConfirmBtn = true
6883
+ }) => {
6884
+ const resolvedTitle = title || typeof icon === "string" && DEFAULT_TITLES[icon.toLowerCase()] || "";
6885
+ const renderIcon = () => {
6886
+ if (typeof icon === "string" && ICON_MAP[icon.toLowerCase()]) {
6887
+ const { Hero, FallbackIcon, color } = ICON_MAP[icon.toLowerCase()];
6888
+ if (Hero) {
6889
+ return /* @__PURE__ */ jsx(Box18, { sx: { width: 160, height: 130, display: "flex", alignItems: "center", justifyContent: "center", "& svg": { width: "100%", height: "100%" } }, children: /* @__PURE__ */ jsx(Hero, {}) });
6890
+ }
6891
+ return /* @__PURE__ */ jsx(FallbackIcon, { size: 64, color, stroke: 1.5 });
6892
+ }
6893
+ if (typeof icon === "string" && (icon.startsWith("/") || icon.startsWith("http"))) {
6894
+ return /* @__PURE__ */ jsx(
6895
+ Box18,
6896
+ {
6897
+ component: "img",
6898
+ src: icon,
6899
+ alt: "modal-icon",
6900
+ sx: { width: 120, height: 100, objectFit: "contain" }
6901
+ }
6902
+ );
6903
+ }
6904
+ return /* @__PURE__ */ jsx(IconInfoCircle, { size: 64, color: PrimitiveColor.color_blue_cakrawala_500, stroke: 1.5 });
6905
+ };
6906
+ const handleCancel = () => {
6907
+ if (cancelBtnProps && typeof cancelBtnProps === "function") {
6908
+ cancelBtnProps();
6909
+ } else {
6910
+ onClose == null ? void 0 : onClose();
6911
+ }
6912
+ };
6913
+ const handleConfirm = () => {
6914
+ if (confirmBtnProps && typeof confirmBtnProps === "function") {
6915
+ confirmBtnProps();
6916
+ }
6917
+ onClose == null ? void 0 : onClose();
6918
+ };
6919
+ return /* @__PURE__ */ jsxs(
6920
+ Dialog2,
6921
+ {
6922
+ open,
6923
+ onClose,
6924
+ sx: {
6925
+ "& .MuiDialog-container": {
6926
+ "& .MuiPaper-root": {
6927
+ width: "100%",
6928
+ maxWidth: "350px"
6929
+ },
6930
+ "& .MuiDialog-paper": {
6931
+ borderRadius: Radius.radius_3
6932
+ }
6933
+ }
6934
+ },
6935
+ children: [
6936
+ /* @__PURE__ */ jsx(Box18, { sx: { position: "absolute", right: 8, top: 8 }, children: /* @__PURE__ */ jsx(IconButton6, { onClick: onClose, sx: { color: DerivedColor.color_text_subtle }, children: /* @__PURE__ */ jsx(IconX, { size: 20 }) }) }),
6937
+ /* @__PURE__ */ jsxs(
6938
+ DialogContent2,
6939
+ {
6940
+ sx: {
6941
+ display: "flex",
6942
+ flexDirection: "column",
6943
+ alignItems: "center",
6944
+ textAlign: "center",
6945
+ pt: SpacingToken.spacing6,
6946
+ px: SpacingToken.spacing5,
6947
+ pb: SpacingToken.spacing3,
6948
+ gap: SpacingToken.spacing3
6949
+ },
6950
+ children: [
6951
+ /* @__PURE__ */ jsx(Box18, { sx: { display: "flex", justifyContent: "center", py: 1 }, children: renderIcon() }),
6952
+ resolvedTitle && /* @__PURE__ */ jsx(BaseTypography, { variant: "header1_bold.default", sx: { fontSize: "18px" }, children: resolvedTitle }),
6953
+ description && /* @__PURE__ */ jsx(BaseTypography, { variant: "body2_regular.default", sx: { textAlign: "center" }, children: description })
6954
+ ]
6955
+ }
6956
+ ),
6957
+ (showCancelBtn || showConfirmBtn) && /* @__PURE__ */ jsxs(
6958
+ DialogActions2,
6959
+ {
6960
+ sx: {
6961
+ justifyContent: "center",
6962
+ gap: SpacingToken.spacing2,
6963
+ px: SpacingToken.spacing5,
6964
+ pb: SpacingToken.spacing5,
6965
+ pt: 0
6966
+ },
6967
+ children: [
6968
+ showCancelBtn && /* @__PURE__ */ jsx(
6969
+ BaseButton,
6970
+ {
6971
+ variant: "outline",
6972
+ color: "primary",
6973
+ onClick: handleCancel,
6974
+ width: "auto",
6975
+ sx: { minWidth: "120px", flex: 1 },
6976
+ children: cancelBtnText
6977
+ }
6978
+ ),
6979
+ showConfirmBtn && /* @__PURE__ */ jsx(
6980
+ BaseButton,
6981
+ {
6982
+ variant: "fill",
6983
+ color: "primary",
6984
+ onClick: handleConfirm,
6985
+ width: "auto",
6986
+ sx: { minWidth: "120px", flex: 1 },
6987
+ children: confirmBtnText
6988
+ }
6989
+ )
6990
+ ]
6991
+ }
6992
+ )
6993
+ ]
6994
+ }
6995
+ );
6996
+ };
6997
+ var _modalRef = null;
6998
+ var setModalRef = (ref) => {
6999
+ _modalRef = ref;
7000
+ };
7001
+ var show = (options = {}) => {
7002
+ var _a126;
7003
+ if ((_a126 = _modalRef == null ? void 0 : _modalRef.current) == null ? void 0 : _a126.show) {
7004
+ _modalRef.current.show(options);
7005
+ }
7006
+ };
7007
+ var hide = () => {
7008
+ var _a126;
7009
+ if ((_a126 = _modalRef == null ? void 0 : _modalRef.current) == null ? void 0 : _a126.hide) {
7010
+ _modalRef.current.hide();
7011
+ }
7012
+ };
7013
+ var BaseModalAlert = {
7014
+ show,
7015
+ hide,
7016
+ setModalRef
7017
+ };
7018
+ var BaseModalAlertProvider = () => {
7019
+ const [state, setState] = useState({ open: false });
7020
+ const ref = useRef();
7021
+ const handleShow = useCallback((options) => {
7022
+ setState(__spreadValues({ open: true }, options));
7023
+ }, []);
7024
+ const handleHide = useCallback(() => {
7025
+ setState((prev) => __spreadProps(__spreadValues({}, prev), { open: false }));
7026
+ }, []);
7027
+ ref.current = { show: handleShow, hide: handleHide };
7028
+ useState(() => {
7029
+ BaseModalAlert.setModalRef(ref);
7030
+ });
7031
+ return /* @__PURE__ */ jsx(
7032
+ BaseModalAlertDialog,
7033
+ {
7034
+ open: state.open,
7035
+ onClose: handleHide,
7036
+ icon: state.icon,
7037
+ title: state.title,
7038
+ description: state.description,
7039
+ cancelBtnText: state.cancelBtnText,
7040
+ confirmBtnText: state.confirmBtnText,
7041
+ cancelBtnProps: state.cancelBtnProps,
7042
+ confirmBtnProps: state.confirmBtnProps,
7043
+ showCancelBtn: state.showCancelBtn !== void 0 ? state.showCancelBtn : true,
7044
+ showConfirmBtn: state.showConfirmBtn !== void 0 ? state.showConfirmBtn : true
7045
+ }
7046
+ );
7047
+ };
7048
+ var BaseModalAlertDialog = ModalAlertDialog;
7049
+ var LoadingDots = () => /* @__PURE__ */ jsxs(
7050
+ "svg",
7051
+ {
7052
+ width: "90",
7053
+ height: "28",
7054
+ viewBox: "0 0 90 28",
7055
+ xmlns: "http://www.w3.org/2000/svg",
7056
+ children: [
7057
+ /* @__PURE__ */ jsx("circle", { cx: "14", cy: "14", r: "6", fill: "#F39C12", children: /* @__PURE__ */ jsx(
7058
+ "animateTransform",
7059
+ {
7060
+ attributeName: "transform",
7061
+ type: "translate",
7062
+ values: "0 0;0 -8;0 0",
7063
+ dur: "0.8s",
7064
+ begin: "0s",
7065
+ repeatCount: "indefinite"
7066
+ }
7067
+ ) }),
7068
+ /* @__PURE__ */ jsx("circle", { cx: "32", cy: "14", r: "6", fill: "#E67E22", children: /* @__PURE__ */ jsx(
7069
+ "animateTransform",
7070
+ {
7071
+ attributeName: "transform",
7072
+ type: "translate",
7073
+ values: "0 0;0 -8;0 0",
7074
+ dur: "0.8s",
7075
+ begin: "0.15s",
7076
+ repeatCount: "indefinite"
7077
+ }
7078
+ ) }),
7079
+ /* @__PURE__ */ jsx("circle", { cx: "50", cy: "14", r: "6", fill: "#3498DB", children: /* @__PURE__ */ jsx(
7080
+ "animateTransform",
7081
+ {
7082
+ attributeName: "transform",
7083
+ type: "translate",
7084
+ values: "0 0;0 -8;0 0",
7085
+ dur: "0.8s",
7086
+ begin: "0.30s",
7087
+ repeatCount: "indefinite"
7088
+ }
7089
+ ) }),
7090
+ /* @__PURE__ */ jsx("circle", { cx: "68", cy: "14", r: "6", fill: "#2E86DE", children: /* @__PURE__ */ jsx(
7091
+ "animateTransform",
7092
+ {
7093
+ attributeName: "transform",
7094
+ type: "translate",
7095
+ values: "0 0;0 -8;0 0",
7096
+ dur: "0.8s",
7097
+ begin: "0.45s",
7098
+ repeatCount: "indefinite"
7099
+ }
7100
+ ) })
7101
+ ]
7102
+ }
7103
+ );
6464
7104
  var _a94, _b94;
6465
- var Stepper2 = (_b94 = (_a94 = StepperRaw) == null ? void 0 : _a94.default) != null ? _b94 : StepperRaw;
7105
+ var Dialog3 = (_b94 = (_a94 = DialogRaw) == null ? void 0 : _a94.default) != null ? _b94 : DialogRaw;
6466
7106
  var _a95, _b95;
6467
- var Step2 = (_b95 = (_a95 = StepRaw) == null ? void 0 : _a95.default) != null ? _b95 : StepRaw;
7107
+ var DialogContent3 = (_b95 = (_a95 = DialogContentRaw) == null ? void 0 : _a95.default) != null ? _b95 : DialogContentRaw;
6468
7108
  var _a96, _b96;
6469
- var StepLabel2 = (_b96 = (_a96 = StepLabelRaw) == null ? void 0 : _a96.default) != null ? _b96 : StepLabelRaw;
7109
+ (_b96 = (_a96 = BoxRaw) == null ? void 0 : _a96.default) != null ? _b96 : BoxRaw;
7110
+ var ModalLoadingDialog = ({ open = false }) => {
7111
+ return /* @__PURE__ */ jsx(
7112
+ Dialog3,
7113
+ {
7114
+ open,
7115
+ disableEscapeKeyDown: true,
7116
+ sx: {
7117
+ "& .MuiDialog-container": {
7118
+ "& .MuiPaper-root": {
7119
+ width: "auto",
7120
+ minWidth: "150px"
7121
+ },
7122
+ "& .MuiDialog-paper": {
7123
+ borderRadius: Radius.radius_3
7124
+ }
7125
+ },
7126
+ "& .MuiBackdrop-root": {
7127
+ backgroundColor: "rgba(0, 0, 0, 0.5)"
7128
+ }
7129
+ },
7130
+ children: /* @__PURE__ */ jsxs(
7131
+ DialogContent3,
7132
+ {
7133
+ sx: {
7134
+ display: "flex",
7135
+ flexDirection: "column",
7136
+ alignItems: "center",
7137
+ textAlign: "center",
7138
+ py: SpacingToken.spacing6,
7139
+ px: SpacingToken.spacing5,
7140
+ gap: SpacingToken.spacing3
7141
+ },
7142
+ children: [
7143
+ /* @__PURE__ */ jsx(LoadingDots, {}),
7144
+ /* @__PURE__ */ jsx(BaseTypography, { variant: "body2_regular.subtle", sx: { fontWeight: "bold" }, children: "Loading..." })
7145
+ ]
7146
+ }
7147
+ )
7148
+ }
7149
+ );
7150
+ };
7151
+ var _modalRef2 = null;
7152
+ var setModalRef2 = (ref) => {
7153
+ _modalRef2 = ref;
7154
+ };
7155
+ var show2 = () => {
7156
+ var _a126;
7157
+ if ((_a126 = _modalRef2 == null ? void 0 : _modalRef2.current) == null ? void 0 : _a126.show) {
7158
+ _modalRef2.current.show();
7159
+ }
7160
+ };
7161
+ var hide2 = () => {
7162
+ var _a126;
7163
+ if ((_a126 = _modalRef2 == null ? void 0 : _modalRef2.current) == null ? void 0 : _a126.hide) {
7164
+ _modalRef2.current.hide();
7165
+ }
7166
+ };
7167
+ var BaseModalLoading = {
7168
+ show: show2,
7169
+ hide: hide2,
7170
+ setModalRef: setModalRef2
7171
+ };
7172
+ var BaseModalLoadingProvider = () => {
7173
+ const [open, setOpen] = useState(false);
7174
+ const ref = useRef();
7175
+ const handleShow = useCallback(() => {
7176
+ setOpen(true);
7177
+ }, []);
7178
+ const handleHide = useCallback(() => {
7179
+ setOpen(false);
7180
+ }, []);
7181
+ ref.current = { show: handleShow, hide: handleHide };
7182
+ useState(() => {
7183
+ BaseModalLoading.setModalRef(ref);
7184
+ });
7185
+ return /* @__PURE__ */ jsx(ModalLoadingDialog, { open });
7186
+ };
7187
+ var BaseModalLoadingDialog = ModalLoadingDialog;
6470
7188
  var _a97, _b97;
6471
- var StepContent = (_b97 = (_a97 = StepContentRaw) == null ? void 0 : _a97.default) != null ? _b97 : StepContentRaw;
7189
+ var Dialog4 = (_b97 = (_a97 = DialogRaw) == null ? void 0 : _a97.default) != null ? _b97 : DialogRaw;
6472
7190
  var _a98, _b98;
6473
- var Tooltip2 = (_b98 = (_a98 = TooltipRaw) == null ? void 0 : _a98.default) != null ? _b98 : TooltipRaw;
7191
+ var DialogContent4 = (_b98 = (_a98 = DialogContentRaw) == null ? void 0 : _a98.default) != null ? _b98 : DialogContentRaw;
6474
7192
  var _a99, _b99;
6475
- var CircularProgress2 = (_b99 = (_a99 = CircularProgressRaw) == null ? void 0 : _a99.default) != null ? _b99 : CircularProgressRaw;
6476
- var HtmlTooltip2 = styled((_a107) => {
6477
- var _b107 = _a107, { className } = _b107, props = __objRest(_b107, ["className"]);
7193
+ var DialogActions3 = (_b99 = (_a99 = DialogActionsRaw) == null ? void 0 : _a99.default) != null ? _b99 : DialogActionsRaw;
7194
+ var _a100, _b100;
7195
+ var IconButton7 = (_b100 = (_a100 = IconButtonRaw) == null ? void 0 : _a100.default) != null ? _b100 : IconButtonRaw;
7196
+ var _a101, _b101;
7197
+ var Box20 = (_b101 = (_a101 = BoxRaw) == null ? void 0 : _a101.default) != null ? _b101 : BoxRaw;
7198
+ var HEADER_COLORS2 = {
7199
+ primary: DerivedColor.color_bg_brand_primary,
7200
+ secondary: DerivedColor.color_bg_brand_secondary,
7201
+ success: DerivedColor.color_bg_success,
7202
+ warning: DerivedColor.color_bg_warning,
7203
+ danger: DerivedColor.color_bg_danger
7204
+ };
7205
+ var BaseModalPopup = (_a126) => {
7206
+ var _b126 = _a126, {
7207
+ open = false,
7208
+ onClose,
7209
+ variant = "default",
7210
+ color = "primary",
7211
+ title = "",
7212
+ subtitle = "",
7213
+ startIcon = null,
7214
+ children = null,
7215
+ footer = null,
7216
+ maxWidth = "sm",
7217
+ fullWidth = true,
7218
+ isWatermark = false,
7219
+ watermarkText = "",
7220
+ sx = {}
7221
+ } = _b126, rest = __objRest(_b126, [
7222
+ "open",
7223
+ "onClose",
7224
+ "variant",
7225
+ "color",
7226
+ "title",
7227
+ "subtitle",
7228
+ "startIcon",
7229
+ "children",
7230
+ "footer",
7231
+ "maxWidth",
7232
+ "fullWidth",
7233
+ "isWatermark",
7234
+ "watermarkText",
7235
+ "sx"
7236
+ ]);
7237
+ const headerBg = HEADER_COLORS2[color] || HEADER_COLORS2.primary;
7238
+ const headerTextColor = DerivedColor.color_text_inverse;
7239
+ const contentBg = DerivedColor.color_bg_surface;
7240
+ const borderColor = DerivedColor.color_border_default;
7241
+ const hasHeader = variant === "with-header" || variant === "with-header-footer";
7242
+ const hasFooter = variant === "with-header-footer";
7243
+ const renderContent = () => {
7244
+ if (isWatermark && watermarkText) {
7245
+ return /* @__PURE__ */ jsx(
7246
+ Watermark,
7247
+ {
7248
+ text: watermarkText,
7249
+ textColor: "#000000",
7250
+ textSize: 14,
7251
+ opacity: 0.15,
7252
+ gutter: 20,
7253
+ rotate: -30,
7254
+ wrapperStyle: { minHeight: "100px" },
7255
+ children
7256
+ }
7257
+ );
7258
+ }
7259
+ return children;
7260
+ };
7261
+ return /* @__PURE__ */ jsxs(
7262
+ Dialog4,
7263
+ __spreadProps(__spreadValues({
7264
+ open,
7265
+ onClose,
7266
+ maxWidth,
7267
+ fullWidth,
7268
+ sx: __spreadValues({
7269
+ "& .MuiDialog-paper": {
7270
+ borderRadius: Radius.radius_3,
7271
+ overflow: "hidden"
7272
+ }
7273
+ }, sx)
7274
+ }, rest), {
7275
+ children: [
7276
+ hasHeader ? /* @__PURE__ */ jsxs(
7277
+ Box20,
7278
+ {
7279
+ sx: {
7280
+ backgroundColor: headerBg,
7281
+ padding: SpacingToken.spacing4,
7282
+ display: "flex",
7283
+ alignItems: "center",
7284
+ justifyContent: "space-between"
7285
+ },
7286
+ children: [
7287
+ /* @__PURE__ */ jsxs(Box20, { sx: { display: "flex", alignItems: "center", gap: "8px" }, children: [
7288
+ startIcon && /* @__PURE__ */ jsx(Box20, { sx: { display: "flex", alignItems: "center", lineHeight: 0, color: headerTextColor }, children: startIcon }),
7289
+ /* @__PURE__ */ jsxs(Box20, { children: [
7290
+ /* @__PURE__ */ jsx(
7291
+ Box20,
7292
+ {
7293
+ component: "span",
7294
+ sx: {
7295
+ color: headerTextColor,
7296
+ fontWeight: 700,
7297
+ fontSize: "16px",
7298
+ display: "block"
7299
+ },
7300
+ children: title
7301
+ }
7302
+ ),
7303
+ subtitle && /* @__PURE__ */ jsx(
7304
+ Box20,
7305
+ {
7306
+ component: "span",
7307
+ sx: {
7308
+ color: headerTextColor,
7309
+ fontWeight: 400,
7310
+ fontSize: "13px",
7311
+ display: "block",
7312
+ mt: "2px",
7313
+ opacity: 0.85
7314
+ },
7315
+ children: subtitle
7316
+ }
7317
+ )
7318
+ ] })
7319
+ ] }),
7320
+ /* @__PURE__ */ jsx(IconButton7, { onClick: onClose, sx: { color: headerTextColor }, children: /* @__PURE__ */ jsx(IconX, { size: 20 }) })
7321
+ ]
7322
+ }
7323
+ ) : (
7324
+ /* Default variant: close button top-right only */
7325
+ /* @__PURE__ */ jsx(Box20, { sx: { position: "absolute", right: 8, top: 8, zIndex: 1 }, children: /* @__PURE__ */ jsx(IconButton7, { onClick: onClose, sx: { color: DerivedColor.color_text_subtle }, children: /* @__PURE__ */ jsx(IconX, { size: 20 }) }) })
7326
+ ),
7327
+ /* @__PURE__ */ jsx(
7328
+ DialogContent4,
7329
+ {
7330
+ sx: {
7331
+ backgroundColor: contentBg,
7332
+ padding: SpacingToken.spacing5,
7333
+ pt: hasHeader ? SpacingToken.spacing5 : SpacingToken.spacing6
7334
+ },
7335
+ children: renderContent()
7336
+ }
7337
+ ),
7338
+ hasFooter && footer && /* @__PURE__ */ jsx(
7339
+ DialogActions3,
7340
+ {
7341
+ sx: {
7342
+ backgroundColor: contentBg,
7343
+ borderTop: `1px solid ${borderColor}`,
7344
+ padding: SpacingToken.spacing4,
7345
+ gap: SpacingToken.spacing2
7346
+ },
7347
+ children: footer
7348
+ }
7349
+ )
7350
+ ]
7351
+ })
7352
+ );
7353
+ };
7354
+ var _a102, _b102;
7355
+ var CloseIcon3 = (_b102 = (_a102 = CloseIconRaw) == null ? void 0 : _a102.default) != null ? _b102 : CloseIconRaw;
7356
+ var _a103, _b103;
7357
+ var CheckIcon2 = (_b103 = (_a103 = CheckRaw) == null ? void 0 : _a103.default) != null ? _b103 : CheckRaw;
7358
+ var _a104, _b104;
7359
+ var FailedIcon = (_b104 = (_a104 = CloseIconRaw) == null ? void 0 : _a104.default) != null ? _b104 : CloseIconRaw;
7360
+ var _a105, _b105;
7361
+ var InfoIcon = (_b105 = (_a105 = InfoIconRaw) == null ? void 0 : _a105.default) != null ? _b105 : InfoIconRaw;
7362
+ var _a106, _b106;
7363
+ var Dialog5 = (_b106 = (_a106 = DialogRaw) == null ? void 0 : _a106.default) != null ? _b106 : DialogRaw;
7364
+ var _a107, _b107;
7365
+ var DialogTitle2 = (_b107 = (_a107 = DialogTitleRaw) == null ? void 0 : _a107.default) != null ? _b107 : DialogTitleRaw;
7366
+ var _a108, _b108;
7367
+ var DialogContent5 = (_b108 = (_a108 = DialogContentRaw) == null ? void 0 : _a108.default) != null ? _b108 : DialogContentRaw;
7368
+ var _a109, _b109;
7369
+ var DialogActions4 = (_b109 = (_a109 = DialogActionsRaw) == null ? void 0 : _a109.default) != null ? _b109 : DialogActionsRaw;
7370
+ var _a110, _b110;
7371
+ var IconButton8 = (_b110 = (_a110 = IconButtonRaw) == null ? void 0 : _a110.default) != null ? _b110 : IconButtonRaw;
7372
+ var _a111, _b111;
7373
+ var Typography7 = (_b111 = (_a111 = MuiTypographyRaw) == null ? void 0 : _a111.default) != null ? _b111 : MuiTypographyRaw;
7374
+ var _a112, _b112;
7375
+ var Box21 = (_b112 = (_a112 = BoxRaw) == null ? void 0 : _a112.default) != null ? _b112 : BoxRaw;
7376
+ var _a113, _b113;
7377
+ var Stepper2 = (_b113 = (_a113 = StepperRaw) == null ? void 0 : _a113.default) != null ? _b113 : StepperRaw;
7378
+ var _a114, _b114;
7379
+ var Step2 = (_b114 = (_a114 = StepRaw) == null ? void 0 : _a114.default) != null ? _b114 : StepRaw;
7380
+ var _a115, _b115;
7381
+ var StepLabel2 = (_b115 = (_a115 = StepLabelRaw) == null ? void 0 : _a115.default) != null ? _b115 : StepLabelRaw;
7382
+ var _a116, _b116;
7383
+ var StepContent = (_b116 = (_a116 = StepContentRaw) == null ? void 0 : _a116.default) != null ? _b116 : StepContentRaw;
7384
+ var _a117, _b117;
7385
+ var Tooltip2 = (_b117 = (_a117 = TooltipRaw) == null ? void 0 : _a117.default) != null ? _b117 : TooltipRaw;
7386
+ var _a118, _b118;
7387
+ var CircularProgress2 = (_b118 = (_a118 = CircularProgressRaw) == null ? void 0 : _a118.default) != null ? _b118 : CircularProgressRaw;
7388
+ var HtmlTooltip2 = styled((_a126) => {
7389
+ var _b126 = _a126, { className } = _b126, props = __objRest(_b126, ["className"]);
6478
7390
  return /* @__PURE__ */ jsx(Tooltip2, __spreadProps(__spreadValues({}, props), { classes: { popper: className } }));
6479
7391
  })(({ theme }) => ({
6480
7392
  [`& .${tooltipClasses.tooltip}`]: {
@@ -6521,8 +7433,8 @@ var StepIconWrapper = styled("div")(({ ownerState }) => __spreadValues({
6521
7433
  justifyContent: "center",
6522
7434
  minHeight: ICON_SIZE
6523
7435
  }, ownerState.active && { backgroundColor: "transparent" }));
6524
- var BaseModalStepper = (_a107) => {
6525
- var _b107 = _a107, {
7436
+ var BaseModalStepper = (_a126) => {
7437
+ var _b126 = _a126, {
6526
7438
  open,
6527
7439
  onClose,
6528
7440
  title = "",
@@ -6533,7 +7445,7 @@ var BaseModalStepper = (_a107) => {
6533
7445
  showFooter = true,
6534
7446
  children,
6535
7447
  modalWidth = "max-w-md"
6536
- } = _b107, props = __objRest(_b107, [
7448
+ } = _b126, props = __objRest(_b126, [
6537
7449
  "open",
6538
7450
  "onClose",
6539
7451
  "title",
@@ -6598,14 +7510,14 @@ var BaseModalStepper = (_a107) => {
6598
7510
  icon: PropTypes3.node
6599
7511
  };
6600
7512
  useEffect(() => {
6601
- var _a108;
7513
+ var _a127;
6602
7514
  if (!open) {
6603
7515
  setActiveStep(0);
6604
7516
  return;
6605
7517
  }
6606
7518
  if (stepper.length === 0) return;
6607
7519
  const incrementStep = () => setActiveStep((prev) => prev < stepper.length ? prev + 1 : prev);
6608
- const delay = activeStep > 0 ? ((_a108 = stepper[activeStep - 1]) == null ? void 0 : _a108.responseTime) || 800 : 800;
7520
+ const delay = activeStep > 0 ? ((_a127 = stepper[activeStep - 1]) == null ? void 0 : _a127.responseTime) || 800 : 800;
6609
7521
  const timer = setTimeout(incrementStep, delay);
6610
7522
  return () => clearTimeout(timer);
6611
7523
  }, [activeStep, stepper, open]);
@@ -6638,7 +7550,7 @@ var BaseModalStepper = (_a107) => {
6638
7550
  return href ? /* @__PURE__ */ jsx(Link, { href, children: button }) : button;
6639
7551
  };
6640
7552
  return /* @__PURE__ */ jsxs(
6641
- Dialog2,
7553
+ Dialog5,
6642
7554
  __spreadProps(__spreadValues({
6643
7555
  open,
6644
7556
  onClose: handleClose,
@@ -6655,7 +7567,7 @@ var BaseModalStepper = (_a107) => {
6655
7567
  /* @__PURE__ */ jsxs(DialogTitle2, { sx: { textAlign: "center", pt: 4 }, children: [
6656
7568
  title && /* @__PURE__ */ jsx(Typography7, { style: VariantStyles.header1_bold, children: title }),
6657
7569
  /* @__PURE__ */ jsx(
6658
- IconButton5,
7570
+ IconButton8,
6659
7571
  {
6660
7572
  "aria-label": "close",
6661
7573
  onClick: onClose,
@@ -6669,9 +7581,9 @@ var BaseModalStepper = (_a107) => {
6669
7581
  }
6670
7582
  )
6671
7583
  ] }),
6672
- /* @__PURE__ */ jsxs(DialogContent2, { sx: { px: 4, pb: 3 }, children: [
7584
+ /* @__PURE__ */ jsxs(DialogContent5, { sx: { px: 4, pb: 3 }, children: [
6673
7585
  children ? children : /* @__PURE__ */ jsxs(
6674
- Box16,
7586
+ Box21,
6675
7587
  {
6676
7588
  sx: {
6677
7589
  display: "flex",
@@ -6696,13 +7608,13 @@ var BaseModalStepper = (_a107) => {
6696
7608
  ]
6697
7609
  }
6698
7610
  ),
6699
- /* @__PURE__ */ jsx(Box16, { sx: { width: "100%", maxWidth: 500 }, children: /* @__PURE__ */ jsx(Stepper2, { activeStep, orientation: "vertical", children: stepper.map((step) => /* @__PURE__ */ jsxs(Step2, { children: [
7611
+ /* @__PURE__ */ jsx(Box21, { sx: { width: "100%", maxWidth: 500 }, children: /* @__PURE__ */ jsx(Stepper2, { activeStep, orientation: "vertical", children: stepper.map((step) => /* @__PURE__ */ jsxs(Step2, { children: [
6700
7612
  /* @__PURE__ */ jsx(StepLabel2, { StepIconComponent: ColorlibStepIcon2, children: step.label }),
6701
7613
  /* @__PURE__ */ jsx(StepContent, { children: /* @__PURE__ */ jsx(Typography7, { sx: { fontSize: 14 }, children: step.description }) })
6702
7614
  ] }, step.label)) }) })
6703
7615
  ] }),
6704
7616
  /* @__PURE__ */ jsx(
6705
- DialogActions2,
7617
+ DialogActions4,
6706
7618
  {
6707
7619
  sx: {
6708
7620
  justifyContent: "center",
@@ -6736,25 +7648,25 @@ BaseModalStepper.propTypes = {
6736
7648
  };
6737
7649
  var Countdown = dynamic(
6738
7650
  () => import('react-countdown').then((mod) => {
6739
- var _a107;
6740
- return (_a107 = mod.default) != null ? _a107 : mod;
7651
+ var _a126;
7652
+ return (_a126 = mod.default) != null ? _a126 : mod;
6741
7653
  }),
6742
7654
  { ssr: false }
6743
7655
  );
6744
- var _a100, _b100;
6745
- var CloseIcon4 = (_b100 = (_a100 = CloseIconRaw) == null ? void 0 : _a100.default) != null ? _b100 : CloseIconRaw;
6746
- var _a101, _b101;
6747
- var Dialog3 = (_b101 = (_a101 = DialogRaw) == null ? void 0 : _a101.default) != null ? _b101 : DialogRaw;
6748
- var _a102, _b102;
6749
- var DialogContent3 = (_b102 = (_a102 = DialogContentRaw) == null ? void 0 : _a102.default) != null ? _b102 : DialogContentRaw;
6750
- var _a103, _b103;
6751
- var DialogTitle3 = (_b103 = (_a103 = DialogTitleRaw) == null ? void 0 : _a103.default) != null ? _b103 : DialogTitleRaw;
6752
- var _a104, _b104;
6753
- var IconButton6 = (_b104 = (_a104 = IconButtonRaw) == null ? void 0 : _a104.default) != null ? _b104 : IconButtonRaw;
6754
- var _a105, _b105;
6755
- var Box17 = (_b105 = (_a105 = BoxRaw) == null ? void 0 : _a105.default) != null ? _b105 : BoxRaw;
6756
- var _a106, _b106;
6757
- var Typography8 = (_b106 = (_a106 = MuiTypographyRaw) == null ? void 0 : _a106.default) != null ? _b106 : MuiTypographyRaw;
7656
+ var _a119, _b119;
7657
+ var CloseIcon4 = (_b119 = (_a119 = CloseIconRaw) == null ? void 0 : _a119.default) != null ? _b119 : CloseIconRaw;
7658
+ var _a120, _b120;
7659
+ var Dialog6 = (_b120 = (_a120 = DialogRaw) == null ? void 0 : _a120.default) != null ? _b120 : DialogRaw;
7660
+ var _a121, _b121;
7661
+ var DialogContent6 = (_b121 = (_a121 = DialogContentRaw) == null ? void 0 : _a121.default) != null ? _b121 : DialogContentRaw;
7662
+ var _a122, _b122;
7663
+ var DialogTitle3 = (_b122 = (_a122 = DialogTitleRaw) == null ? void 0 : _a122.default) != null ? _b122 : DialogTitleRaw;
7664
+ var _a123, _b123;
7665
+ var IconButton9 = (_b123 = (_a123 = IconButtonRaw) == null ? void 0 : _a123.default) != null ? _b123 : IconButtonRaw;
7666
+ var _a124, _b124;
7667
+ var Box22 = (_b124 = (_a124 = BoxRaw) == null ? void 0 : _a124.default) != null ? _b124 : BoxRaw;
7668
+ var _a125, _b125;
7669
+ var Typography8 = (_b125 = (_a125 = MuiTypographyRaw) == null ? void 0 : _a125.default) != null ? _b125 : MuiTypographyRaw;
6758
7670
  var otpInputBase = {
6759
7671
  height: 40,
6760
7672
  width: 30,
@@ -6785,7 +7697,7 @@ var NativeOTPInput = ({ value, onChange, numInputs, hasError }) => {
6785
7697
  const digits = value.split("");
6786
7698
  const handleChange = useCallback(
6787
7699
  (index, e) => {
6788
- var _a107;
7700
+ var _a126;
6789
7701
  const val = e.target.value;
6790
7702
  if (!/^\d*$/.test(val)) return;
6791
7703
  const newDigits = [...digits];
@@ -6794,20 +7706,20 @@ var NativeOTPInput = ({ value, onChange, numInputs, hasError }) => {
6794
7706
  const newValue = newDigits.join("");
6795
7707
  onChange(newValue.slice(0, numInputs));
6796
7708
  if (val && index < numInputs - 1) {
6797
- (_a107 = inputRefs.current[index + 1]) == null ? void 0 : _a107.focus();
7709
+ (_a126 = inputRefs.current[index + 1]) == null ? void 0 : _a126.focus();
6798
7710
  }
6799
7711
  },
6800
7712
  [digits, numInputs, onChange]
6801
7713
  );
6802
7714
  const handleKeyDown = useCallback(
6803
7715
  (index, e) => {
6804
- var _a107, _b107, _c;
7716
+ var _a126, _b126, _c;
6805
7717
  if (e.key === "Backspace" && !digits[index] && index > 0) {
6806
- (_a107 = inputRefs.current[index - 1]) == null ? void 0 : _a107.focus();
7718
+ (_a126 = inputRefs.current[index - 1]) == null ? void 0 : _a126.focus();
6807
7719
  }
6808
7720
  if (e.key === "ArrowLeft" && index > 0) {
6809
7721
  e.preventDefault();
6810
- (_b107 = inputRefs.current[index - 1]) == null ? void 0 : _b107.focus();
7722
+ (_b126 = inputRefs.current[index - 1]) == null ? void 0 : _b126.focus();
6811
7723
  }
6812
7724
  if (e.key === "ArrowRight" && index < numInputs - 1) {
6813
7725
  e.preventDefault();
@@ -6818,20 +7730,20 @@ var NativeOTPInput = ({ value, onChange, numInputs, hasError }) => {
6818
7730
  );
6819
7731
  const handlePaste = useCallback(
6820
7732
  (e) => {
6821
- var _a107;
7733
+ var _a126;
6822
7734
  e.preventDefault();
6823
7735
  const pasted = e.clipboardData.getData("text").replace(/\D/g, "").slice(0, numInputs);
6824
7736
  if (!pasted) return;
6825
7737
  onChange(pasted);
6826
7738
  const nextIdx = Math.min(pasted.length, numInputs - 1);
6827
- (_a107 = inputRefs.current[nextIdx]) == null ? void 0 : _a107.focus();
7739
+ (_a126 = inputRefs.current[nextIdx]) == null ? void 0 : _a126.focus();
6828
7740
  },
6829
7741
  [numInputs, onChange]
6830
7742
  );
6831
7743
  useEffect(() => {
6832
7744
  const timer = setTimeout(() => {
6833
- var _a107;
6834
- return (_a107 = inputRefs.current[0]) == null ? void 0 : _a107.focus();
7745
+ var _a126;
7746
+ return (_a126 = inputRefs.current[0]) == null ? void 0 : _a126.focus();
6835
7747
  }, 100);
6836
7748
  return () => clearTimeout(timer);
6837
7749
  }, []);
@@ -6903,7 +7815,7 @@ var BaseModalOTP = ({
6903
7815
  };
6904
7816
  const setOff = () => setCountOn("off");
6905
7817
  return /* @__PURE__ */ jsxs(
6906
- Dialog3,
7818
+ Dialog6,
6907
7819
  {
6908
7820
  open: isOpen,
6909
7821
  onClose: handleClose,
@@ -6918,7 +7830,7 @@ var BaseModalOTP = ({
6918
7830
  },
6919
7831
  children: [
6920
7832
  /* @__PURE__ */ jsx(DialogTitle3, { sx: { p: 0 }, children: /* @__PURE__ */ jsx(
6921
- IconButton6,
7833
+ IconButton9,
6922
7834
  {
6923
7835
  onClick: handleClose,
6924
7836
  sx: {
@@ -6929,8 +7841,8 @@ var BaseModalOTP = ({
6929
7841
  children: /* @__PURE__ */ jsx(CloseIcon4, {})
6930
7842
  }
6931
7843
  ) }),
6932
- /* @__PURE__ */ jsx(DialogContent3, { sx: { p: 0 }, children: /* @__PURE__ */ jsxs(
6933
- Box17,
7844
+ /* @__PURE__ */ jsx(DialogContent6, { sx: { p: 0 }, children: /* @__PURE__ */ jsxs(
7845
+ Box22,
6934
7846
  {
6935
7847
  display: "flex",
6936
7848
  flexDirection: "column",
@@ -6961,7 +7873,7 @@ var BaseModalOTP = ({
6961
7873
  ]
6962
7874
  }
6963
7875
  ),
6964
- /* @__PURE__ */ jsx(Box17, { width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ jsxs(
7876
+ /* @__PURE__ */ jsx(Box22, { width: "100%", display: "flex", justifyContent: "center", children: /* @__PURE__ */ jsxs(
6965
7877
  "form",
6966
7878
  {
6967
7879
  autoComplete: "off",
@@ -7048,6 +7960,6 @@ var BaseModalOTP = ({
7048
7960
  );
7049
7961
  };
7050
7962
 
7051
- export { ArrowFrameOutlineDownIcon, ArrowFrameOutlineLeftIcon, ArrowFrameOutlineRightIcon, ArrowFrameOutlineUpIcon, ArrowLeft, ArrowRight, ArrowStandardDownIcon, ArrowStandardLeftIcon, ArrowStandardRightIcon, ArrowStandardUpIcon, ArrowStandardUpRightIcon, ArrowUpDown, AuctionHammerIcon, BaseAlert, BaseButton, BaseCard, BaseCheckbox, BaseDatatable, BaseDatePicker, BaseDropdown, BaseDropzone, BaseModal, BaseModalOTP, BaseModalStepper, BaseRadioButton, BaseStepper, BaseSwitch, BaseTextArea, BaseTextField, BaseTypography, CONTENT_SPACING_TOKENS, CalculatorIcon, CapsLockOn, CashIcon, CheckboxBorder, CheckboxChecked, ChecklistGreen, CircleCheck, CircleCross, CommentBuble, ContentSpacing, Dashboard, DerivedColor, DocumentNotFound, DownloadDocumentIcon, DownloadIconLarge, DownloadIconSmall, FileOutlineCustom, GenerateDocumentIcon, HandstopSign, HomeAssetIcon, IconAdd, IconBiometricScan, IconBrokenImage, IconCalendar, IconCardOrange, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconConfeti, IconCross, IconCrossLine, IconDeleteBin, IconDocument, IconDocumentAdd, IconDocumentAddOutline, IconDocumentSleve, IconDownloadOutline, IconDuplicate, IconEdit, IconExclamation, IconFile, IconFileOutline, IconFileSleve, IconFingerScan, IconGradingRounded, IconHomeOutlined, IconImage, IconInfo, IconInfoBgPutih, IconInfoHover, IconListDocument, IconModalClose, IconMoney, IconMoneyOne, IconMoneyTwo, IconNoData, IconPeople, IconPeopleGroup, IconPhone, IconPlus, IconProgress, IconRecycle, IconReset, IconSave, IconSaveOutlined, IconSearch, IconSendBlue, IconSendOrange, IconSendWhite, IconSendWhiteFull, IconShuffle, IconTrash, IconTrashOutline, IconUpload, IconUser, IconUserScan, IconVerification, IconWallet, IconWarningTriangle, LoaderIcon, LogoutIcon, MaximizeIcon, MinimizeIcon, MoneyIcon, NotFoundIcon, PersonIcon, PrimitiveColor, Radius, radius_default as RadiusToken, RefreshIcon, ReloadIcon, ServerSidePaginationActions, Shadow, shadow_default as ShadowToken, spacing_default as Spacing, SpacingToken, StepOnProgress, SuffleIcon, TargetDartIcon, TextFieldUpload, ThumbsUp, UploadIcon, UsersIcon, VariantStyles };
7963
+ export { ArrowFrameOutlineDownIcon, ArrowFrameOutlineLeftIcon, ArrowFrameOutlineRightIcon, ArrowFrameOutlineUpIcon, ArrowLeft, ArrowRight, ArrowStandardDownIcon, ArrowStandardLeftIcon, ArrowStandardRightIcon, ArrowStandardUpIcon, ArrowStandardUpRightIcon, ArrowUpDown, AuctionHammerIcon, BaseAlert, BaseButton, BaseCard, BaseCheckbox, BaseDatatable, BaseDatePicker, BaseDropdown, BaseDropzone, BaseModal, BaseModalAlert, BaseModalAlertDialog, BaseModalAlertProvider, BaseModalLoading, BaseModalLoadingDialog, BaseModalLoadingProvider, BaseModalOTP, BaseModalPopup, BaseModalStepper, BaseRadioButton, BaseSkeleton, BaseSnackbar, BaseStepper, BaseSwitch, BaseTextArea, BaseTextField, BaseTypography, CONTENT_SPACING_TOKENS, CalculatorIcon, CapsLockOn, CashIcon, CheckboxBorder, CheckboxChecked, ChecklistGreen, CircleCheck, CircleCross, CommentBuble, ContentSpacing, Dashboard, DerivedColor, DocumentNotFound, DownloadDocumentIcon, DownloadIconLarge, DownloadIconSmall, FileOutlineCustom, GenerateDocumentIcon, HandstopSign, HomeAssetIcon, IconAdd, IconBiometricScan, IconBrokenImage, IconCalendar, IconCardOrange, IconChevronDown, IconChevronLeft, IconChevronRight, IconChevronUp, IconConfeti, IconCross, IconCrossLine, IconDeleteBin, IconDocument, IconDocumentAdd, IconDocumentAddOutline, IconDocumentSleve, IconDownloadOutline, IconDuplicate, IconEdit, IconExclamation, IconFile, IconFileOutline, IconFileSleve, IconFingerScan, IconGradingRounded, IconHomeOutlined, IconImage, IconInfo, IconInfoBgPutih, IconInfoHover, IconListDocument, IconModalClose, IconMoney, IconMoneyOne, IconMoneyTwo, IconNoData, IconPeople, IconPeopleGroup, IconPhone, IconPlus, IconProgress, IconRecycle, IconReset, IconSave, IconSaveOutlined, IconSearch, IconSendBlue, IconSendOrange, IconSendWhite, IconSendWhiteFull, IconShuffle, IconTrash, IconTrashOutline, IconUpload, IconUser, IconUserScan, IconVerification, IconWallet, IconWarningTriangle, LoaderIcon, LogoutIcon, MaximizeIcon, MinimizeIcon, MoneyIcon, NotFoundIcon, PersonIcon, PrimitiveColor, Radius, radius_default as RadiusToken, RefreshIcon, ReloadIcon, ServerSidePaginationActions, Shadow, shadow_default as ShadowToken, spacing_default as Spacing, SpacingToken, StepOnProgress, SuffleIcon, TargetDartIcon, TextFieldUpload, ThumbsUp, UploadIcon, UsersIcon, VariantStyles };
7052
7964
  //# sourceMappingURL=index.mjs.map
7053
7965
  //# sourceMappingURL=index.mjs.map