@ctlyst.id/internal-ui 5.5.6 → 5.6.0

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
@@ -1325,6 +1325,8 @@ var DataTable = React5.forwardRef((props, ref) => {
1325
1325
  {
1326
1326
  colSpan: header.colSpan,
1327
1327
  width: `${header.getSize()}px`,
1328
+ _first: { paddingLeft: `${paddingRowX + 8}px` },
1329
+ _last: { paddingRight: `${paddingRowX + 8}px` },
1328
1330
  ...styles == null ? void 0 : styles.tableColumnHeader,
1329
1331
  children: /* @__PURE__ */ jsx24(
1330
1332
  Flex2,
@@ -1339,7 +1341,16 @@ var DataTable = React5.forwardRef((props, ref) => {
1339
1341
  },
1340
1342
  header.id
1341
1343
  )) }, headerGroup.id)) }),
1342
- /* @__PURE__ */ jsx24(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(Td, { width: 210, children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i) }, i)) }, num)) })
1344
+ /* @__PURE__ */ jsx24(Tbody, { children: [...Array(5)].map((num) => /* @__PURE__ */ jsx24(Tr, { mx: "2", children: [...Array(generateColumn().length)].map((i) => /* @__PURE__ */ jsx24(
1345
+ Td,
1346
+ {
1347
+ width: 210,
1348
+ _first: { paddingLeft: `${paddingRowX + 8}px` },
1349
+ _last: { paddingRight: `${paddingRowX + 8}px` },
1350
+ children: /* @__PURE__ */ jsx24(Skeleton2, { startColor: "neutral.100", endColor: "neutral.200", h: "20px", w: "70%" }, i)
1351
+ },
1352
+ i
1353
+ )) }, num)) })
1343
1354
  ] }) : /* @__PURE__ */ jsxs8(Table, { ...styles == null ? void 0 : styles.table, children: [
1344
1355
  /* @__PURE__ */ jsx24(
1345
1356
  Thead,
@@ -4400,6 +4411,60 @@ import { useColorMode as useColorMode2 } from "@chakra-ui/system";
4400
4411
  import * as Icon7 from "@ctlyst.id/internal-icon";
4401
4412
  import ReactSelect, { components as componentRS } from "react-select";
4402
4413
 
4414
+ // src/components/select/components/menu-list-virtualized.tsx
4415
+ import { useVirtualizer } from "@tanstack/react-virtual";
4416
+ import { useRef as useRef3 } from "react";
4417
+ import { jsx as jsx54 } from "react/jsx-runtime";
4418
+ var MenuListVirtualized = (props) => {
4419
+ const { children, estimateSize, overscan, ...virtualizerProps } = props;
4420
+ const childrenArr = Array.isArray(children) ? children : [children];
4421
+ const itemCount = childrenArr.length;
4422
+ const parentRef = useRef3(null);
4423
+ const rowVirtualizer = useVirtualizer({
4424
+ count: itemCount,
4425
+ getScrollElement: () => parentRef.current,
4426
+ estimateSize: estimateSize || (() => 42),
4427
+ overscan: overscan || 5,
4428
+ ...virtualizerProps
4429
+ });
4430
+ return /* @__PURE__ */ jsx54(
4431
+ "div",
4432
+ {
4433
+ ref: parentRef,
4434
+ style: {
4435
+ height: `300px`,
4436
+ width: `100%`,
4437
+ overflow: "auto"
4438
+ },
4439
+ children: /* @__PURE__ */ jsx54(
4440
+ "div",
4441
+ {
4442
+ style: {
4443
+ height: `${rowVirtualizer.getTotalSize()}px`,
4444
+ width: "100%",
4445
+ position: "relative"
4446
+ },
4447
+ children: rowVirtualizer.getVirtualItems().map((virtualRow) => /* @__PURE__ */ jsx54(
4448
+ "div",
4449
+ {
4450
+ style: {
4451
+ position: "absolute",
4452
+ top: 0,
4453
+ left: 0,
4454
+ width: "100%",
4455
+ height: `${virtualRow.size}px`,
4456
+ transform: `translateY(${virtualRow.start}px)`
4457
+ },
4458
+ children: childrenArr[virtualRow.index]
4459
+ },
4460
+ virtualRow.index
4461
+ ))
4462
+ }
4463
+ )
4464
+ }
4465
+ );
4466
+ };
4467
+
4403
4468
  // src/config/theme/foundations/shadows.ts
4404
4469
  import { theme } from "@chakra-ui/react";
4405
4470
  var shadows = {
@@ -4772,22 +4837,22 @@ var themeSelect = (theme5) => {
4772
4837
  };
4773
4838
 
4774
4839
  // src/components/select/components/select.tsx
4775
- import { jsx as jsx54 } from "react/jsx-runtime";
4840
+ import { jsx as jsx55 } from "react/jsx-runtime";
4776
4841
  function DropdownIndicator(props) {
4777
- return /* @__PURE__ */ jsx54(componentRS.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx54(Icon7.ChevronDown, { size: 4, color: "neutral.400" }) });
4842
+ return /* @__PURE__ */ jsx55(componentRS.DropdownIndicator, { ...props, children: /* @__PURE__ */ jsx55(Icon7.ChevronDown, { size: 4, color: "neutral.400" }) });
4778
4843
  }
4779
4844
  function ClearIndicator(props) {
4780
4845
  const { hasValue } = props;
4781
- return /* @__PURE__ */ jsx54(componentRS.ClearIndicator, { ...props, children: /* @__PURE__ */ jsx54(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
4846
+ return /* @__PURE__ */ jsx55(componentRS.ClearIndicator, { ...props, children: /* @__PURE__ */ jsx55(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
4782
4847
  }
4783
4848
  function MultiValue(props) {
4784
- return /* @__PURE__ */ jsx54(componentRS.MultiValue, { ...props, children: /* @__PURE__ */ jsx54(Badge2, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4849
+ return /* @__PURE__ */ jsx55(componentRS.MultiValue, { ...props, children: /* @__PURE__ */ jsx55(Badge2, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4785
4850
  }
4786
4851
  function MultiValueRemove(props) {
4787
- return /* @__PURE__ */ jsx54(componentRS.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx54(Flex11, { align: "center", justify: "center", children: /* @__PURE__ */ jsx54(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4852
+ return /* @__PURE__ */ jsx55(componentRS.MultiValueRemove, { ...props, children: /* @__PURE__ */ jsx55(Flex11, { align: "center", justify: "center", children: /* @__PURE__ */ jsx55(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4788
4853
  }
4789
4854
  function NoOptionsMessage(props) {
4790
- return /* @__PURE__ */ jsx54(Center2, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4855
+ return /* @__PURE__ */ jsx55(Center2, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4791
4856
  }
4792
4857
  function Select2({
4793
4858
  styles,
@@ -4795,8 +4860,9 @@ function Select2({
4795
4860
  ...rest
4796
4861
  }) {
4797
4862
  const { colorMode } = useColorMode2();
4798
- const { components, value, onChange } = rest;
4799
- return /* @__PURE__ */ jsx54(
4863
+ const { components, value, onChange, virtualized } = rest;
4864
+ const renderMenuListVirtualized = (menuProps) => /* @__PURE__ */ jsx55(MenuListVirtualized, { ...menuProps, ...rest.virtualizerProps });
4865
+ return /* @__PURE__ */ jsx55(
4800
4866
  ReactSelect,
4801
4867
  {
4802
4868
  "data-test-id": "",
@@ -4807,6 +4873,9 @@ function Select2({
4807
4873
  MultiValue,
4808
4874
  MultiValueRemove,
4809
4875
  NoOptionsMessage,
4876
+ ...virtualized ? {
4877
+ MenuList: renderMenuListVirtualized
4878
+ } : {},
4810
4879
  ...components
4811
4880
  },
4812
4881
  value,
@@ -4823,7 +4892,7 @@ var select_default = Select2;
4823
4892
  // src/components/select/components/select-async.tsx
4824
4893
  import { useColorMode as useColorMode3 } from "@chakra-ui/system";
4825
4894
  import { AsyncPaginate } from "react-select-async-paginate";
4826
- import { jsx as jsx55 } from "react/jsx-runtime";
4895
+ import { jsx as jsx56 } from "react/jsx-runtime";
4827
4896
  function SelectAsync({
4828
4897
  styles,
4829
4898
  isError = false,
@@ -4831,7 +4900,7 @@ function SelectAsync({
4831
4900
  }) {
4832
4901
  const { colorMode } = useColorMode3();
4833
4902
  const { components } = rest;
4834
- return /* @__PURE__ */ jsx55(
4903
+ return /* @__PURE__ */ jsx56(
4835
4904
  AsyncPaginate,
4836
4905
  {
4837
4906
  classNamePrefix: "react-select",
@@ -4853,10 +4922,10 @@ var select_async_default = SelectAsync;
4853
4922
  // src/components/select/components/select-async-creatable.tsx
4854
4923
  import { useColorMode as useColorMode4 } from "@chakra-ui/system";
4855
4924
  import ReactSelectAsyncCreatable from "react-select/async-creatable";
4856
- import { jsx as jsx56 } from "react/jsx-runtime";
4925
+ import { jsx as jsx57 } from "react/jsx-runtime";
4857
4926
  function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
4858
4927
  const { colorMode } = useColorMode4();
4859
- return /* @__PURE__ */ jsx56(
4928
+ return /* @__PURE__ */ jsx57(
4860
4929
  ReactSelectAsyncCreatable,
4861
4930
  {
4862
4931
  classNamePrefix: "react-select",
@@ -4876,10 +4945,10 @@ function SelectAsyncCreatable({ styles, isError = false, ...rest }) {
4876
4945
  // src/components/select/components/select-creatable.tsx
4877
4946
  import { useColorMode as useColorMode5 } from "@chakra-ui/system";
4878
4947
  import ReactSelectCreatable from "react-select/creatable";
4879
- import { jsx as jsx57 } from "react/jsx-runtime";
4948
+ import { jsx as jsx58 } from "react/jsx-runtime";
4880
4949
  function SelectCreatable({ styles, isError = false, ...rest }) {
4881
4950
  const { colorMode } = useColorMode5();
4882
- return /* @__PURE__ */ jsx57(
4951
+ return /* @__PURE__ */ jsx58(
4883
4952
  ReactSelectCreatable,
4884
4953
  {
4885
4954
  classNamePrefix: "react-select",
@@ -4900,7 +4969,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
4900
4969
  import { Checkbox as Checkbox2, Flex as Flex12, Text as Text14 } from "@chakra-ui/react";
4901
4970
  import { useColorMode as useColorMode6 } from "@chakra-ui/system";
4902
4971
  import ReactSelect2, { components as ComponentRS } from "react-select";
4903
- import { Fragment as Fragment8, jsx as jsx58, jsxs as jsxs24 } from "react/jsx-runtime";
4972
+ import { Fragment as Fragment8, jsx as jsx59, jsxs as jsxs24 } from "react/jsx-runtime";
4904
4973
  var CHECKBOX_STATE = {
4905
4974
  UNCHECKED: 0,
4906
4975
  INDETERMINATE: 1,
@@ -4948,7 +5017,7 @@ var InputOption = ({
4948
5017
  style
4949
5018
  };
4950
5019
  return /* @__PURE__ */ jsxs24(Fragment8, { children: [
4951
- /* @__PURE__ */ jsx58(
5020
+ /* @__PURE__ */ jsx59(
4952
5021
  ComponentRS.Option,
4953
5022
  {
4954
5023
  isMulti: true,
@@ -4968,7 +5037,7 @@ var InputOption = ({
4968
5037
  "data-test-id": "CT_component_select-checkbox_options",
4969
5038
  cursor: isDisabled ? "not-allowed" : "default",
4970
5039
  children: [
4971
- (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx58(
5040
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx59(
4972
5041
  Checkbox2,
4973
5042
  {
4974
5043
  isChecked: checkedState === CHECKBOX_STATE.CHECKED,
@@ -4978,7 +5047,7 @@ var InputOption = ({
4978
5047
  "data-test-id": "CT_component_select-checkbox_select-all-option",
4979
5048
  isInvalid: false
4980
5049
  }
4981
- ) : /* @__PURE__ */ jsx58(
5050
+ ) : /* @__PURE__ */ jsx59(
4982
5051
  Checkbox2,
4983
5052
  {
4984
5053
  pointerEvents: "none",
@@ -4987,13 +5056,13 @@ var InputOption = ({
4987
5056
  isInvalid: false
4988
5057
  }
4989
5058
  ),
4990
- /* @__PURE__ */ jsx58(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
5059
+ /* @__PURE__ */ jsx59(Text14, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
4991
5060
  ]
4992
5061
  }
4993
5062
  )
4994
5063
  }
4995
5064
  ),
4996
- (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx58("hr", {}) : null
5065
+ (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ jsx59("hr", {}) : null
4997
5066
  ] });
4998
5067
  };
4999
5068
  var SelectWithCheckboxBase = ({
@@ -5006,7 +5075,7 @@ var SelectWithCheckboxBase = ({
5006
5075
  ...rest
5007
5076
  }) => {
5008
5077
  const { colorMode } = useColorMode6();
5009
- return /* @__PURE__ */ jsx58(
5078
+ return /* @__PURE__ */ jsx59(
5010
5079
  ReactSelect2,
5011
5080
  {
5012
5081
  "data-test-id": "",
@@ -5025,8 +5094,9 @@ var SelectWithCheckboxBase = ({
5025
5094
  );
5026
5095
  };
5027
5096
  var SelectCheckbox = (props) => {
5028
- const { isMulti, options, value, components, ...rest } = props;
5097
+ const { isMulti, options, value, components, virtualized, ...rest } = props;
5029
5098
  const selectValue = value || [];
5099
+ const renderMenuListVirtualized = (menuProps) => /* @__PURE__ */ jsx59(MenuListVirtualized, { ...menuProps, ...rest.virtualizerProps });
5030
5100
  const defaultComponents = {
5031
5101
  DropdownIndicator,
5032
5102
  ClearIndicator,
@@ -5038,10 +5108,10 @@ var SelectCheckbox = (props) => {
5038
5108
  const optionLength = (options == null ? void 0 : options.length) ? options.length - 1 : 0;
5039
5109
  const selectedValue = isSelected ? CHECKBOX_STATE.CHECKED : CHECKBOX_STATE.UNCHECKED;
5040
5110
  const checkedState = data.selectAllCheckbox ? getSelectAllCheckboxState(selectValue == null ? void 0 : selectValue.length, optionLength) : selectedValue;
5041
- return /* @__PURE__ */ jsx58(InputOption, { ...optionProps, checkedState });
5111
+ return /* @__PURE__ */ jsx59(InputOption, { ...optionProps, checkedState });
5042
5112
  }
5043
5113
  };
5044
- return /* @__PURE__ */ jsx58(
5114
+ return /* @__PURE__ */ jsx59(
5045
5115
  SelectWithCheckboxBase,
5046
5116
  {
5047
5117
  "data-test-id": "",
@@ -5050,6 +5120,9 @@ var SelectCheckbox = (props) => {
5050
5120
  value,
5051
5121
  components: {
5052
5122
  ...defaultComponents,
5123
+ ...virtualized ? {
5124
+ MenuList: renderMenuListVirtualized
5125
+ } : {},
5053
5126
  ...components
5054
5127
  },
5055
5128
  ...rest
@@ -5061,10 +5134,10 @@ var select_with_checkbox_default = SelectCheckbox;
5061
5134
  // src/components/sidebar/components/sidebar.tsx
5062
5135
  import { Flex as Flex13 } from "@chakra-ui/react";
5063
5136
  import { motion } from "framer-motion";
5064
- import { jsx as jsx59 } from "react/jsx-runtime";
5137
+ import { jsx as jsx60 } from "react/jsx-runtime";
5065
5138
  var Sidebar = ({ isCollapse, children, ...props }) => {
5066
5139
  const { width = "220px" } = props;
5067
- return /* @__PURE__ */ jsx59(
5140
+ return /* @__PURE__ */ jsx60(
5068
5141
  Flex13,
5069
5142
  {
5070
5143
  position: "relative",
@@ -5088,9 +5161,9 @@ Sidebar.displayName = "Sidebar";
5088
5161
  import { Box as Box27, Flex as Flex14, Text as Text15 } from "@chakra-ui/react";
5089
5162
  import { ArrowRight } from "@ctlyst.id/internal-icon";
5090
5163
  import { AnimatePresence, motion as motion2 } from "framer-motion";
5091
- import { jsx as jsx60, jsxs as jsxs25 } from "react/jsx-runtime";
5164
+ import { jsx as jsx61, jsxs as jsxs25 } from "react/jsx-runtime";
5092
5165
  var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5093
- return /* @__PURE__ */ jsx60(
5166
+ return /* @__PURE__ */ jsx61(
5094
5167
  Box27,
5095
5168
  {
5096
5169
  px: "2",
@@ -5110,7 +5183,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5110
5183
  onClick: () => setCollapse(!isCollapse),
5111
5184
  cursor: "pointer",
5112
5185
  children: [
5113
- /* @__PURE__ */ jsx60(
5186
+ /* @__PURE__ */ jsx61(
5114
5187
  Box27,
5115
5188
  {
5116
5189
  as: motion2.div,
@@ -5119,10 +5192,10 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5119
5192
  animate: { rotate: isCollapse ? 0 : -180, x: isCollapse ? 8 : 0 },
5120
5193
  transitionTimingFunction: "linear",
5121
5194
  "aria-label": "toggle sidebar",
5122
- children: /* @__PURE__ */ jsx60(ArrowRight, { size: 4, color: "inherit" })
5195
+ children: /* @__PURE__ */ jsx61(ArrowRight, { size: 4, color: "inherit" })
5123
5196
  }
5124
5197
  ),
5125
- /* @__PURE__ */ jsx60(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ jsx60(Box27, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx60(
5198
+ /* @__PURE__ */ jsx61(AnimatePresence, { children: !isCollapse && /* @__PURE__ */ jsx61(Box27, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx61(
5126
5199
  Text15,
5127
5200
  {
5128
5201
  as: motion2.div,
@@ -5166,28 +5239,28 @@ import {
5166
5239
  } from "@chakra-ui/react";
5167
5240
  import * as Icon8 from "@ctlyst.id/internal-icon";
5168
5241
  import { motion as motion3 } from "framer-motion";
5169
- import { Fragment as Fragment9, jsx as jsx61, jsxs as jsxs26 } from "react/jsx-runtime";
5242
+ import { Fragment as Fragment9, jsx as jsx62, jsxs as jsxs26 } from "react/jsx-runtime";
5170
5243
  var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
5171
- return /* @__PURE__ */ jsx61(
5244
+ return /* @__PURE__ */ jsx62(
5172
5245
  Box28,
5173
5246
  {
5174
5247
  as: motion3.div,
5175
5248
  transitionTimingFunction: "linear",
5176
5249
  initial: { padding: "8px" },
5177
5250
  animate: { padding: isCollapse ? "8px 16px" : "8px" },
5178
- children: /* @__PURE__ */ jsx61(Accordion2, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5251
+ children: /* @__PURE__ */ jsx62(Accordion2, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5179
5252
  const isActive = active == null ? void 0 : active.includes(item.navLink);
5180
- return /* @__PURE__ */ jsx61(AccordionItem2, { mt: "4", children: ({ isExpanded }) => {
5253
+ return /* @__PURE__ */ jsx62(AccordionItem2, { mt: "4", children: ({ isExpanded }) => {
5181
5254
  const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
5182
5255
  const noChild = !item.children.length;
5183
5256
  const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
5184
5257
  return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5185
- /* @__PURE__ */ jsx61(Popover6, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5258
+ /* @__PURE__ */ jsx62(Popover6, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5186
5259
  const activeOption = isOpen ? "primary.50" : "white";
5187
5260
  const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
5188
5261
  const activeParent = isActive ? backgroundColor : activeOption;
5189
5262
  return /* @__PURE__ */ jsxs26(Fragment9, { children: [
5190
- /* @__PURE__ */ jsx61(PopoverTrigger6, { children: /* @__PURE__ */ jsx61(
5263
+ /* @__PURE__ */ jsx62(PopoverTrigger6, { children: /* @__PURE__ */ jsx62(
5191
5264
  AccordionButton2,
5192
5265
  {
5193
5266
  "data-test-id": `CTA_button-accordion-${item.title}`,
@@ -5206,7 +5279,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5206
5279
  position: "relative",
5207
5280
  ...itemStyles,
5208
5281
  children: [
5209
- mappingIcon2 && /* @__PURE__ */ jsx61(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5282
+ mappingIcon2 && /* @__PURE__ */ jsx62(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5210
5283
  !isCollapse && /* @__PURE__ */ jsxs26(
5211
5284
  Box28,
5212
5285
  {
@@ -5222,8 +5295,8 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5222
5295
  animate: { opacity: 1, x: 0 },
5223
5296
  exit: { opacity: 0, x: 16 },
5224
5297
  children: [
5225
- /* @__PURE__ */ jsx61(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx61(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5226
- !!item.children.length && /* @__PURE__ */ jsx61(
5298
+ /* @__PURE__ */ jsx62(Box28, { h: "3.5", position: "relative", children: /* @__PURE__ */ jsx62(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5299
+ !!item.children.length && /* @__PURE__ */ jsx62(
5227
5300
  Box28,
5228
5301
  {
5229
5302
  display: "flex",
@@ -5231,7 +5304,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5231
5304
  as: motion3.div,
5232
5305
  transitionTimingFunction: "linear",
5233
5306
  animate: { transform: isExpanded ? "rotate(-180deg)" : "rotate(0)" },
5234
- children: /* @__PURE__ */ jsx61(Icon8.ChevronDown, { size: 3 })
5307
+ children: /* @__PURE__ */ jsx62(Icon8.ChevronDown, { size: 3 })
5235
5308
  }
5236
5309
  )
5237
5310
  ]
@@ -5244,12 +5317,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5244
5317
  },
5245
5318
  item.id
5246
5319
  ) }, item.id),
5247
- isOpenOptions && /* @__PURE__ */ jsx61(Portal4, { children: item.children.length > 0 ? /* @__PURE__ */ jsxs26(PopoverContent6, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5248
- /* @__PURE__ */ jsx61(PopoverHeader2, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ jsxs26(Box28, { display: "flex", alignItems: "center", children: [
5320
+ isOpenOptions && /* @__PURE__ */ jsx62(Portal4, { children: item.children.length > 0 ? /* @__PURE__ */ jsxs26(PopoverContent6, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5321
+ /* @__PURE__ */ jsx62(PopoverHeader2, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ jsxs26(Box28, { display: "flex", alignItems: "center", children: [
5249
5322
  mappingIcon2.get(item.icon || ""),
5250
- /* @__PURE__ */ jsx61(Box28, { as: "span", ml: "2", children: item.title })
5323
+ /* @__PURE__ */ jsx62(Box28, { as: "span", ml: "2", children: item.title })
5251
5324
  ] }) }),
5252
- !!item.children.length && /* @__PURE__ */ jsx61(PopoverBody4, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx61(
5325
+ !!item.children.length && /* @__PURE__ */ jsx62(PopoverBody4, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx62(
5253
5326
  NavItem,
5254
5327
  {
5255
5328
  "data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
@@ -5265,7 +5338,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5265
5338
  },
5266
5339
  submenu.id
5267
5340
  )) })
5268
- ] }) : isCollapse && /* @__PURE__ */ jsx61(PopoverContent6, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ jsx61(PopoverBody4, { py: "1", px: "0", children: /* @__PURE__ */ jsxs26(
5341
+ ] }) : isCollapse && /* @__PURE__ */ jsx62(PopoverContent6, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ jsx62(PopoverBody4, { py: "1", px: "0", children: /* @__PURE__ */ jsxs26(
5269
5342
  NavItem,
5270
5343
  {
5271
5344
  "data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
@@ -5278,22 +5351,22 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5278
5351
  rounded: "none",
5279
5352
  ...itemStyles,
5280
5353
  children: [
5281
- mappingIcon2 && /* @__PURE__ */ jsx61(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5282
- /* @__PURE__ */ jsx61(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx61(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5354
+ mappingIcon2 && /* @__PURE__ */ jsx62(Box28, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5355
+ /* @__PURE__ */ jsx62(Box28, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ jsx62(Text16, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5283
5356
  ]
5284
5357
  },
5285
5358
  item.id
5286
5359
  ) }) }) })
5287
5360
  ] });
5288
5361
  } }, item.id),
5289
- !isCollapse && /* @__PURE__ */ jsx61(
5362
+ !isCollapse && /* @__PURE__ */ jsx62(
5290
5363
  Fade,
5291
5364
  {
5292
5365
  in: true,
5293
5366
  transition: {
5294
5367
  enter: { duration: 0.5 }
5295
5368
  },
5296
- children: /* @__PURE__ */ jsx61(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx61(
5369
+ children: /* @__PURE__ */ jsx62(AccordionPanel2, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ jsx62(
5297
5370
  NavItem,
5298
5371
  {
5299
5372
  mt: "1",
@@ -5325,7 +5398,7 @@ import { chakra as chakra6, Flex as Flex15, forwardRef as forwardRef11, omitThem
5325
5398
  import { cx as cx10, dataAttr } from "@chakra-ui/shared-utils";
5326
5399
  import { Check as Check2, Close as Close5 } from "@ctlyst.id/internal-icon";
5327
5400
  import { useMemo as useMemo3 } from "react";
5328
- import { jsx as jsx62, jsxs as jsxs27 } from "react/jsx-runtime";
5401
+ import { jsx as jsx63, jsxs as jsxs27 } from "react/jsx-runtime";
5329
5402
  var Switch = forwardRef11(function Switch2(props, ref) {
5330
5403
  const styles = useMultiStyleConfig2("Switch", props);
5331
5404
  const { spacing: spacing2 = "0.5rem", children, ...ownProps } = omitThemingProps2(props);
@@ -5377,13 +5450,13 @@ var Switch = forwardRef11(function Switch2(props, ref) {
5377
5450
  className: cx10("chakra-switch", props.className),
5378
5451
  __css: containerStyles,
5379
5452
  children: [
5380
- /* @__PURE__ */ jsx62("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
5453
+ /* @__PURE__ */ jsx63("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
5381
5454
  /* @__PURE__ */ jsxs27(chakra6.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
5382
5455
  /* @__PURE__ */ jsxs27(Flex15, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
5383
- /* @__PURE__ */ jsx62(Check2, { color: "white", size: getIconSize(props.size) }),
5384
- /* @__PURE__ */ jsx62(Close5, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
5456
+ /* @__PURE__ */ jsx63(Check2, { color: "white", size: getIconSize(props.size) }),
5457
+ /* @__PURE__ */ jsx63(Close5, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
5385
5458
  ] }),
5386
- /* @__PURE__ */ jsx62(
5459
+ /* @__PURE__ */ jsx63(
5387
5460
  chakra6.span,
5388
5461
  {
5389
5462
  __css: styles.thumb,
@@ -5393,7 +5466,7 @@ var Switch = forwardRef11(function Switch2(props, ref) {
5393
5466
  }
5394
5467
  )
5395
5468
  ] }),
5396
- children && /* @__PURE__ */ jsx62(
5469
+ children && /* @__PURE__ */ jsx63(
5397
5470
  chakra6.span,
5398
5471
  {
5399
5472
  className: "chakra-switch__label",
@@ -5431,13 +5504,13 @@ import {
5431
5504
 
5432
5505
  // src/components/tabs/components/tab.tsx
5433
5506
  import { Button as Button6, Flex as Flex16, forwardRef as forwardRef12, useMultiStyleConfig as useMultiStyleConfig3, useTab } from "@chakra-ui/react";
5434
- import { jsx as jsx63, jsxs as jsxs28 } from "react/jsx-runtime";
5507
+ import { jsx as jsx64, jsxs as jsxs28 } from "react/jsx-runtime";
5435
5508
  var Tab = forwardRef12((props, ref) => {
5436
5509
  var _a, _b;
5437
5510
  const tabProps = useTab({ ...props, ref });
5438
5511
  const isSelected = !!tabProps["aria-selected"];
5439
5512
  const styles = useMultiStyleConfig3("Tabs", tabProps);
5440
- return /* @__PURE__ */ jsx63(
5513
+ return /* @__PURE__ */ jsx64(
5441
5514
  Button6,
5442
5515
  {
5443
5516
  "data-test-id": props["data-test-id"],
@@ -5522,14 +5595,14 @@ import { marry } from "@zamiru/timescape";
5522
5595
  import {
5523
5596
  useEffect as useEffect2,
5524
5597
  useLayoutEffect,
5525
- useRef as useRef3,
5598
+ useRef as useRef4,
5526
5599
  useState as useState4
5527
5600
  } from "react";
5528
5601
  var useTimescape = (options = {}) => {
5529
5602
  var _a;
5530
5603
  const { date, onChangeDate, ...rest } = options;
5531
5604
  const [manager] = useState4(() => new TimescapeManager(date, rest));
5532
- const onChangeDateRef = useRef3(onChangeDate);
5605
+ const onChangeDateRef = useRef4(onChangeDate);
5533
5606
  useLayoutEffect(() => {
5534
5607
  onChangeDateRef.current = onChangeDate;
5535
5608
  }, [onChangeDate]);
@@ -5593,7 +5666,7 @@ var useTimescape = (options = {}) => {
5593
5666
  };
5594
5667
 
5595
5668
  // src/components/time-input/components/index.tsx
5596
- import { Fragment as Fragment10, jsx as jsx64, jsxs as jsxs29 } from "react/jsx-runtime";
5669
+ import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs29 } from "react/jsx-runtime";
5597
5670
  var timeDigitFormat = (number) => {
5598
5671
  if (number.toString().length === 1) {
5599
5672
  return `0${number}`;
@@ -5618,7 +5691,7 @@ var timeFromString = (timeString) => {
5618
5691
  return new Time(Number(hours), Number(minutes), Number(seconds));
5619
5692
  };
5620
5693
  var InputTimeArea = forwardRef13((props, ref) => {
5621
- return /* @__PURE__ */ jsx64(
5694
+ return /* @__PURE__ */ jsx65(
5622
5695
  Input3,
5623
5696
  {
5624
5697
  _focusWithin: {
@@ -5694,7 +5767,7 @@ var TimeInput2 = forwardRef13(
5694
5767
  };
5695
5768
  };
5696
5769
  const { outlineColor, focusColor } = getProperties();
5697
- return /* @__PURE__ */ jsx64(Box29, { ...boxProps, ...rootProps, children: /* @__PURE__ */ jsx64(
5770
+ return /* @__PURE__ */ jsx65(Box29, { ...boxProps, ...rootProps, children: /* @__PURE__ */ jsx65(
5698
5771
  field_default,
5699
5772
  {
5700
5773
  isError,
@@ -5703,7 +5776,7 @@ var TimeInput2 = forwardRef13(
5703
5776
  errorMessage,
5704
5777
  isDisabled,
5705
5778
  isSuccess,
5706
- children: /* @__PURE__ */ jsx64(
5779
+ children: /* @__PURE__ */ jsx65(
5707
5780
  Box29,
5708
5781
  {
5709
5782
  transition: "all 0.15s",
@@ -5725,16 +5798,16 @@ var TimeInput2 = forwardRef13(
5725
5798
  "data-test-id": `CT_Component_TimeInput${name ? `_${name}` : ""}`,
5726
5799
  children: [
5727
5800
  /* @__PURE__ */ jsxs29(Flex17, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
5728
- /* @__PURE__ */ jsx64(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
5729
- /* @__PURE__ */ jsx64("span", { children: ":" }),
5730
- /* @__PURE__ */ jsx64(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
5801
+ /* @__PURE__ */ jsx65(InputTimeArea, { "data-test-id": "start-time", ...hoursProps }),
5802
+ /* @__PURE__ */ jsx65("span", { children: ":" }),
5803
+ /* @__PURE__ */ jsx65(InputTimeArea, { "data-test-id": "end-time", ...getInputProps("minutes") }),
5731
5804
  seconds && /* @__PURE__ */ jsxs29(Fragment10, { children: [
5732
- /* @__PURE__ */ jsx64("span", { children: ":" }),
5733
- /* @__PURE__ */ jsx64(InputTimeArea, { ...getInputProps("seconds") })
5805
+ /* @__PURE__ */ jsx65("span", { children: ":" }),
5806
+ /* @__PURE__ */ jsx65(InputTimeArea, { ...getInputProps("seconds") })
5734
5807
  ] }),
5735
- options.hour12 && /* @__PURE__ */ jsx64(Input3, { p: 0, ...getInputProps("am/pm") })
5808
+ options.hour12 && /* @__PURE__ */ jsx65(Input3, { p: 0, ...getInputProps("am/pm") })
5736
5809
  ] }),
5737
- /* @__PURE__ */ jsx64(Clock, { color: "neutral.400", size: 4 }),
5810
+ /* @__PURE__ */ jsx65(Clock, { color: "neutral.400", size: 4 }),
5738
5811
  addOnRight
5739
5812
  ]
5740
5813
  }
@@ -5753,9 +5826,9 @@ import { Bounce, toast } from "react-toastify";
5753
5826
 
5754
5827
  // src/components/toast/components/styles.tsx
5755
5828
  import { Global as Global2 } from "@emotion/react";
5756
- import { jsx as jsx65 } from "react/jsx-runtime";
5829
+ import { jsx as jsx66 } from "react/jsx-runtime";
5757
5830
  var Styles2 = () => {
5758
- return /* @__PURE__ */ jsx65(
5831
+ return /* @__PURE__ */ jsx66(
5759
5832
  Global2,
5760
5833
  {
5761
5834
  styles: `
@@ -5790,10 +5863,10 @@ var Styles2 = () => {
5790
5863
  var styles_default2 = Styles2;
5791
5864
 
5792
5865
  // src/components/toast/components/toast.tsx
5793
- import { Fragment as Fragment11, jsx as jsx66, jsxs as jsxs30 } from "react/jsx-runtime";
5866
+ import { Fragment as Fragment11, jsx as jsx67, jsxs as jsxs30 } from "react/jsx-runtime";
5794
5867
  var CustomCloseButton = (props) => {
5795
5868
  const { closeToast } = props;
5796
- return /* @__PURE__ */ jsx66(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: () => closeToast(), children: /* @__PURE__ */ jsx66(Close6, { size: 4, color: "white" }) });
5869
+ return /* @__PURE__ */ jsx67(Box30, { p: 2, mb: 1, alignItems: "center", display: "flex", "data-test-id": "", cursor: "pointer", onClick: () => closeToast(), children: /* @__PURE__ */ jsx67(Close6, { size: 4, color: "white" }) });
5797
5870
  };
5798
5871
  var DEFAULT_OPTIONS = {
5799
5872
  position: "top-right",
@@ -5826,13 +5899,13 @@ var useToast = () => {
5826
5899
  ]);
5827
5900
  const content = (icon, message, link) => {
5828
5901
  return /* @__PURE__ */ jsxs30(Fragment11, { children: [
5829
- /* @__PURE__ */ jsx66(styles_default2, {}),
5902
+ /* @__PURE__ */ jsx67(styles_default2, {}),
5830
5903
  /* @__PURE__ */ jsxs30(Flex18, { justifyContent: "space-between", alignItems: "center", gap: 4, mb: 1, flex: 1, children: [
5831
5904
  /* @__PURE__ */ jsxs30(Flex18, { alignItems: "center", children: [
5832
- icon && /* @__PURE__ */ jsx66(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5833
- /* @__PURE__ */ jsx66(chakra7.span, { noOfLines: 2, children: message })
5905
+ icon && /* @__PURE__ */ jsx67(chakra7.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5906
+ /* @__PURE__ */ jsx67(chakra7.span, { noOfLines: 2, children: message })
5834
5907
  ] }),
5835
- link && /* @__PURE__ */ jsx66(
5908
+ link && /* @__PURE__ */ jsx67(
5836
5909
  Link6,
5837
5910
  {
5838
5911
  as: link.as,
@@ -6014,7 +6087,7 @@ var defaultOnHandleRejections = (fileRejection, config2, handleRejection) => {
6014
6087
  };
6015
6088
 
6016
6089
  // src/components/uploader/components/uploader.tsx
6017
- import { Fragment as Fragment12, jsx as jsx67, jsxs as jsxs31 } from "react/jsx-runtime";
6090
+ import { Fragment as Fragment12, jsx as jsx68, jsxs as jsxs31 } from "react/jsx-runtime";
6018
6091
  var Uploader = ({
6019
6092
  onHandleUploadFile,
6020
6093
  onHandleRejections,
@@ -6147,20 +6220,20 @@ var Uploader = ({
6147
6220
  });
6148
6221
  const renderHelperText = () => {
6149
6222
  if (Array.isArray(helperText)) {
6150
- return /* @__PURE__ */ jsx67(
6223
+ return /* @__PURE__ */ jsx68(
6151
6224
  UnorderedList2,
6152
6225
  {
6153
6226
  pl: 2,
6154
6227
  fontSize: 12,
6155
6228
  color: "black.medium",
6156
6229
  "data-test-id": "CT_component_base-image-uploader_helperText",
6157
- children: helperText.map((text2) => /* @__PURE__ */ jsx67(ListItem2, { children: text2 }, text2))
6230
+ children: helperText.map((text2) => /* @__PURE__ */ jsx68(ListItem2, { children: text2 }, text2))
6158
6231
  }
6159
6232
  );
6160
6233
  }
6161
6234
  return helperText;
6162
6235
  };
6163
- const renderErrorText = (text2) => /* @__PURE__ */ jsx67(Box31, { mb: 2, children: /* @__PURE__ */ jsx67(Text18, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
6236
+ const renderErrorText = (text2) => /* @__PURE__ */ jsx68(Box31, { mb: 2, children: /* @__PURE__ */ jsx68(Text18, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
6164
6237
  const handleRemove = (e) => {
6165
6238
  e.stopPropagation();
6166
6239
  setFilePreview(void 0);
@@ -6194,8 +6267,8 @@ var Uploader = ({
6194
6267
  return /* @__PURE__ */ jsxs31(FormControl4, { isRequired, children: [
6195
6268
  label && typeof label === "string" ? (
6196
6269
  // eslint-disable-next-line react/jsx-no-useless-fragment
6197
- /* @__PURE__ */ jsxs31(FormLabel3, { requiredIndicator: /* @__PURE__ */ jsx67(Fragment12, {}), fontSize: "text.sm", children: [
6198
- isRequired && /* @__PURE__ */ jsx67(RequiredIndicator2, { mr: 1, ml: 0 }),
6270
+ /* @__PURE__ */ jsxs31(FormLabel3, { requiredIndicator: /* @__PURE__ */ jsx68(Fragment12, {}), fontSize: "text.sm", children: [
6271
+ isRequired && /* @__PURE__ */ jsx68(RequiredIndicator2, { mr: 1, ml: 0 }),
6199
6272
  label
6200
6273
  ] })
6201
6274
  ) : label,
@@ -6217,7 +6290,7 @@ var Uploader = ({
6217
6290
  ...props,
6218
6291
  ...getRootProps(),
6219
6292
  children: [
6220
- filePreview && isShowCloseButton && /* @__PURE__ */ jsx67(Box31, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ jsx67(
6293
+ filePreview && isShowCloseButton && /* @__PURE__ */ jsx68(Box31, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ jsx68(
6221
6294
  Button7,
6222
6295
  {
6223
6296
  "data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
@@ -6232,17 +6305,17 @@ var Uploader = ({
6232
6305
  border: "none",
6233
6306
  zIndex: 1,
6234
6307
  onClick: handleRemove,
6235
- children: /* @__PURE__ */ jsx67(X, { size: 3, color: "white" })
6308
+ children: /* @__PURE__ */ jsx68(X, { size: 3, color: "white" })
6236
6309
  }
6237
6310
  ) }),
6238
- filePreview && /* @__PURE__ */ jsx67(Box31, { w: "full", children: /* @__PURE__ */ jsx67(
6311
+ filePreview && /* @__PURE__ */ jsx68(Box31, { w: "full", children: /* @__PURE__ */ jsx68(
6239
6312
  Flex19,
6240
6313
  {
6241
6314
  position: "relative",
6242
6315
  "data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
6243
6316
  justify: "center",
6244
6317
  align: "center",
6245
- children: filePreview.includes("blob") && acceptFile.some(([type]) => typeof type === "string" && type.includes("image/")) ? /* @__PURE__ */ jsx67(
6318
+ children: filePreview.includes("blob") && acceptFile.some(([type]) => typeof type === "string" && type.includes("image/")) ? /* @__PURE__ */ jsx68(
6246
6319
  ChakraImage,
6247
6320
  {
6248
6321
  h: size2 === "lg" ? "120" : "100",
@@ -6250,13 +6323,13 @@ var Uploader = ({
6250
6323
  alt: "uploader-preview",
6251
6324
  objectFit: "contain"
6252
6325
  }
6253
- ) : /* @__PURE__ */ jsx67(Text18, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
6326
+ ) : /* @__PURE__ */ jsx68(Text18, { noOfLines: 3, mx: 2, textAlign: "center", children: filePreview })
6254
6327
  }
6255
6328
  ) }),
6256
- !filePreview && /* @__PURE__ */ jsx67(Fragment12, { children: isDragActive ? /* @__PURE__ */ jsx67(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs31(Flex19, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
6257
- size2 === "sm" && /* @__PURE__ */ jsx67(Plus, { size: 6, color }),
6329
+ !filePreview && /* @__PURE__ */ jsx68(Fragment12, { children: isDragActive ? /* @__PURE__ */ jsx68(Text18, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ jsxs31(Flex19, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
6330
+ size2 === "sm" && /* @__PURE__ */ jsx68(Plus, { size: 6, color }),
6258
6331
  /* @__PURE__ */ jsxs31(Box31, { children: [
6259
- !filePreview && /* @__PURE__ */ jsx67(
6332
+ !filePreview && /* @__PURE__ */ jsx68(
6260
6333
  Heading2,
6261
6334
  {
6262
6335
  fontWeight: "400",
@@ -6266,20 +6339,20 @@ var Uploader = ({
6266
6339
  children: uploadFileText && size2 === "lg" ? uploadFileText : "Upload"
6267
6340
  }
6268
6341
  ),
6269
- size2 === "lg" && /* @__PURE__ */ jsx67(Text18, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
6342
+ size2 === "lg" && /* @__PURE__ */ jsx68(Text18, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
6270
6343
  ] })
6271
6344
  ] }) })
6272
6345
  ]
6273
6346
  }
6274
6347
  ),
6275
- /* @__PURE__ */ jsx67(
6348
+ /* @__PURE__ */ jsx68(
6276
6349
  "input",
6277
6350
  {
6278
6351
  ...getInputProps(),
6279
6352
  "data-test-id": `CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ""}`
6280
6353
  }
6281
6354
  ),
6282
- filePreview && !isSmall && /* @__PURE__ */ jsx67(Flex19, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ jsx67(
6355
+ filePreview && !isSmall && /* @__PURE__ */ jsx68(Flex19, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ jsx68(
6283
6356
  Button7,
6284
6357
  {
6285
6358
  "data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
@@ -8020,9 +8093,9 @@ import { useMemo as useMemo5 } from "react";
8020
8093
 
8021
8094
  // src/provider/components/provider.tsx
8022
8095
  import axios from "axios";
8023
- import { createContext as createContext2, useContext, useEffect as useEffect5, useMemo as useMemo4, useRef as useRef4 } from "react";
8096
+ import { createContext as createContext2, useContext, useEffect as useEffect5, useMemo as useMemo4, useRef as useRef5 } from "react";
8024
8097
  import { ToastContainer as ToastContainer2 } from "react-toastify";
8025
- import { jsx as jsx68, jsxs as jsxs32 } from "react/jsx-runtime";
8098
+ import { jsx as jsx69, jsxs as jsxs32 } from "react/jsx-runtime";
8026
8099
  var ProviderContext = createContext2({
8027
8100
  instance: void 0
8028
8101
  });
@@ -8031,7 +8104,7 @@ var useInternalUI = () => {
8031
8104
  return { instance };
8032
8105
  };
8033
8106
  var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
8034
- const instanceRef = useRef4(axios.create(config2));
8107
+ const instanceRef = useRef5(axios.create(config2));
8035
8108
  useEffect5(() => {
8036
8109
  requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
8037
8110
  instanceRef.current.interceptors.request.use(interceptor);
@@ -8042,7 +8115,7 @@ var Provider = ({ children, config: config2, requestInterceptors, responseInterc
8042
8115
  }, [requestInterceptors, responseInterceptors]);
8043
8116
  const provider = useMemo4(() => ({ instance: instanceRef.current }), []);
8044
8117
  return /* @__PURE__ */ jsxs32(ProviderContext.Provider, { value: provider, children: [
8045
- /* @__PURE__ */ jsx68(ToastContainer2, {}),
8118
+ /* @__PURE__ */ jsx69(ToastContainer2, {}),
8046
8119
  children
8047
8120
  ] });
8048
8121
  };