@ctlyst.id/internal-ui 3.4.6 → 3.5.1

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -45,14 +45,14 @@ __export(src_exports, {
45
45
  AlertAction: () => AlertAction,
46
46
  AlertClose: () => AlertClose,
47
47
  AlertDescription: () => AlertDescription,
48
- AlertDialog: () => import_react53.AlertDialog,
49
- AlertDialogBody: () => import_react53.ModalBody,
50
- AlertDialogCloseButton: () => import_react53.ModalCloseButton,
51
- AlertDialogContent: () => import_react53.AlertDialogContent,
52
- AlertDialogFooter: () => import_react53.ModalFooter,
53
- AlertDialogHeader: () => import_react53.ModalHeader,
54
- AlertDialogOverlay: () => import_react53.ModalOverlay,
55
- AlertDialogProps: () => import_react53.AlertDialogProps,
48
+ AlertDialog: () => import_react54.AlertDialog,
49
+ AlertDialogBody: () => import_react54.ModalBody,
50
+ AlertDialogCloseButton: () => import_react54.ModalCloseButton,
51
+ AlertDialogContent: () => import_react54.AlertDialogContent,
52
+ AlertDialogFooter: () => import_react54.ModalFooter,
53
+ AlertDialogHeader: () => import_react54.ModalHeader,
54
+ AlertDialogOverlay: () => import_react54.ModalOverlay,
55
+ AlertDialogProps: () => import_react54.AlertDialogProps,
56
56
  AlertIcon: () => AlertIcon,
57
57
  AlertTitle: () => AlertTitle,
58
58
  Anchor: () => Anchor,
@@ -63,18 +63,18 @@ __export(src_exports, {
63
63
  AvatarGroupProps: () => import_react91.AvatarGroupProps,
64
64
  AvatarProps: () => import_react91.AvatarProps,
65
65
  Badge: () => badge_default,
66
- Box: () => import_react50.Box,
67
- BoxProps: () => import_react50.BoxProps,
66
+ Box: () => import_react51.Box,
67
+ BoxProps: () => import_react51.BoxProps,
68
68
  BreadCrumb: () => bread_crumb_default,
69
69
  Button: () => button_default,
70
70
  ButtonGroup: () => import_react10.ButtonGroup,
71
71
  ButtonGroupProps: () => import_react10.ButtonGroupProps,
72
72
  CHECKBOX_STATE: () => CHECKBOX_STATE,
73
73
  Card: () => card_default,
74
- Center: () => import_react50.Center,
74
+ Center: () => import_react51.Center,
75
75
  ChakraProvider: () => import_react101.ChakraProvider,
76
76
  ChakraProviderProps: () => import_react101.ChakraProviderProps,
77
- ChakraTable: () => import_react79.Table,
77
+ ChakraTable: () => import_react80.Table,
78
78
  Checkbox: () => checkbox_default,
79
79
  CheckboxGroup: () => checkbox_group_default,
80
80
  CheckboxGroupContext: () => import_react16.CheckboxGroupContext,
@@ -86,60 +86,61 @@ __export(src_exports, {
86
86
  ClearIndicator: () => ClearIndicator,
87
87
  CloseButton: () => import_react10.CloseButton,
88
88
  CloseButtonProps: () => import_react10.CloseButtonProps,
89
- Code: () => import_react82.Code,
90
- CodeProps: () => import_react82.CodeProps,
89
+ Code: () => import_react83.Code,
90
+ CodeProps: () => import_react83.CodeProps,
91
91
  Collapse: () => import_react91.Collapse,
92
92
  CollapseProps: () => import_react91.CollapseProps,
93
93
  ColorMode: () => import_react101.ColorMode,
94
94
  ColorModeScript: () => import_react101.ColorModeScript,
95
95
  ColorModeScriptProps: () => import_react101.ColorModeScriptProps,
96
- Container: () => import_react50.Container,
97
- ContainerProps: () => import_react50.ContainerProps,
96
+ Container: () => import_react51.Container,
97
+ ContainerProps: () => import_react51.ContainerProps,
98
98
  Counter: () => counter_default,
99
99
  DataTable: () => data_table_default,
100
100
  DatePickerMonth: () => datepicker_month_default,
101
101
  Datepicker: () => datepicker_default,
102
102
  Dialog: () => dialog_default,
103
- Divider: () => import_react50.Divider,
104
- DividerProps: () => import_react50.DividerProps,
105
- Drawer: () => import_react53.Drawer,
106
- DrawerBody: () => import_react53.ModalBody,
107
- DrawerCloseButton: () => import_react53.ModalCloseButton,
108
- DrawerContent: () => import_react53.DrawerContent,
109
- DrawerContentProps: () => import_react53.DrawerContentProps,
110
- DrawerFooter: () => import_react53.ModalFooter,
111
- DrawerHeader: () => import_react53.ModalHeader,
112
- DrawerOverlay: () => import_react53.ModalOverlay,
113
- DrawerProps: () => import_react53.DrawerProps,
103
+ Divider: () => import_react51.Divider,
104
+ DividerProps: () => import_react51.DividerProps,
105
+ Drawer: () => import_react54.Drawer,
106
+ DrawerBody: () => import_react54.ModalBody,
107
+ DrawerCloseButton: () => import_react54.ModalCloseButton,
108
+ DrawerContent: () => import_react54.DrawerContent,
109
+ DrawerContentProps: () => import_react54.DrawerContentProps,
110
+ DrawerFooter: () => import_react54.ModalFooter,
111
+ DrawerHeader: () => import_react54.ModalHeader,
112
+ DrawerOverlay: () => import_react54.ModalOverlay,
113
+ DrawerProps: () => import_react54.DrawerProps,
114
114
  DropdownIndicator: () => DropdownIndicator,
115
115
  EmptyState: () => empty_state_default,
116
+ ErrorCode: () => error_code_default,
116
117
  Fade: () => import_react91.Fade,
117
118
  FadeProps: () => import_react91.FadeProps,
118
119
  Field: () => field_default,
119
- Flex: () => import_react50.Flex,
120
- FlexProps: () => import_react50.FlexProps,
120
+ Flex: () => import_react51.Flex,
121
+ FlexProps: () => import_react51.FlexProps,
121
122
  FormControl: () => import_react25.FormControl,
122
123
  FormControlProps: () => import_react25.FormControlProps,
123
124
  FormErrorMessage: () => import_react25.FormErrorMessage,
124
125
  FormHelperText: () => import_react25.FormHelperText,
125
126
  FormLabel: () => import_react25.FormLabel,
126
127
  FormLabelProps: () => import_react25.FormLabelProps,
127
- Grid: () => import_react50.Grid,
128
- GridItem: () => import_react50.GridItem,
129
- GridItemProps: () => import_react50.GridItemProps,
130
- GridProps: () => import_react50.GridProps,
131
- HStack: () => import_react50.HStack,
128
+ Grid: () => import_react51.Grid,
129
+ GridItem: () => import_react51.GridItem,
130
+ GridItemProps: () => import_react51.GridItemProps,
131
+ GridProps: () => import_react51.GridProps,
132
+ HStack: () => import_react51.HStack,
132
133
  Header: () => Header,
133
- Heading: () => import_react82.Heading,
134
- HeadingProps: () => import_react82.HeadingProps,
134
+ Heading: () => import_react83.Heading,
135
+ HeadingProps: () => import_react83.HeadingProps,
135
136
  Hide: () => import_react91.Hide,
136
137
  HideProps: () => import_react91.HideProps,
137
- Icon: () => import_react49.Icon,
138
+ Icon: () => import_react50.Icon,
138
139
  IconButton: () => import_react10.IconButton,
139
140
  IconButtonProps: () => import_react10.IconButtonProps,
140
- IconProps: () => import_react49.IconProps,
141
- Image: () => import_react49.Image,
142
- ImageProps: () => import_react49.ImageProps,
141
+ IconProps: () => import_react50.IconProps,
142
+ Image: () => import_react50.Image,
143
+ ImageProps: () => import_react50.ImageProps,
143
144
  Img: () => import_react91.Img,
144
145
  ImgProps: () => import_react91.ImgProps,
145
146
  InputAddonLeft: () => InputAddonLeft,
@@ -158,32 +159,32 @@ __export(src_exports, {
158
159
  InputRightAddonProps: () => import_react25.InputRightAddonProps,
159
160
  InputRightElement: () => import_react25.InputRightElement,
160
161
  InputRightElementProps: () => import_react25.InputRightElementProps,
161
- Link: () => import_react82.Link,
162
- LinkProps: () => import_react82.LinkProps,
163
- List: () => import_react51.List,
164
- ListIcon: () => import_react51.ListIcon,
165
- ListItem: () => import_react51.ListItem,
166
- ListItemProps: () => import_react51.ListItemProps,
167
- ListProps: () => import_react51.ListProps,
162
+ Link: () => import_react83.Link,
163
+ LinkProps: () => import_react83.LinkProps,
164
+ List: () => import_react52.List,
165
+ ListIcon: () => import_react52.ListIcon,
166
+ ListItem: () => import_react52.ListItem,
167
+ ListItemProps: () => import_react52.ListItemProps,
168
+ ListProps: () => import_react52.ListProps,
168
169
  Loader: () => loader_default,
169
170
  Logo: () => Logo,
170
171
  MainMenu: () => navigation_default,
171
- Modal: () => import_react53.Modal,
172
+ Modal: () => import_react54.Modal,
172
173
  ModalBackButton: () => modal_back_button_default,
173
- ModalBody: () => import_react53.ModalBody,
174
- ModalBodyProps: () => import_react53.ModalBodyProps,
175
- ModalCloseButton: () => import_react53.ModalCloseButton,
176
- ModalContent: () => import_react53.ModalContent,
177
- ModalContentProps: () => import_react53.ModalContentProps,
178
- ModalContextProvider: () => import_react53.ModalContextProvider,
179
- ModalFocusScope: () => import_react53.ModalFocusScope,
180
- ModalFooter: () => import_react53.ModalFooter,
181
- ModalFooterProps: () => import_react53.ModalFooterProps,
182
- ModalHeader: () => import_react53.ModalHeader,
183
- ModalHeaderProps: () => import_react53.ModalHeaderProps,
184
- ModalOverlay: () => import_react53.ModalOverlay,
185
- ModalOverlayProps: () => import_react53.ModalOverlayProps,
186
- ModalProps: () => import_react53.ModalProps,
174
+ ModalBody: () => import_react54.ModalBody,
175
+ ModalBodyProps: () => import_react54.ModalBodyProps,
176
+ ModalCloseButton: () => import_react54.ModalCloseButton,
177
+ ModalContent: () => import_react54.ModalContent,
178
+ ModalContentProps: () => import_react54.ModalContentProps,
179
+ ModalContextProvider: () => import_react54.ModalContextProvider,
180
+ ModalFocusScope: () => import_react54.ModalFocusScope,
181
+ ModalFooter: () => import_react54.ModalFooter,
182
+ ModalFooterProps: () => import_react54.ModalFooterProps,
183
+ ModalHeader: () => import_react54.ModalHeader,
184
+ ModalHeaderProps: () => import_react54.ModalHeaderProps,
185
+ ModalOverlay: () => import_react54.ModalOverlay,
186
+ ModalOverlayProps: () => import_react54.ModalOverlayProps,
187
+ ModalProps: () => import_react54.ModalProps,
187
188
  MultiDatePickerMonth: () => multi_datepicker_month_default,
188
189
  MultiValue: () => MultiValue,
189
190
  MultiValueRemove: () => MultiValueRemove,
@@ -191,46 +192,46 @@ __export(src_exports, {
191
192
  Navbar: () => Navbar,
192
193
  NavigationBar: () => navigation_bar_default,
193
194
  NoOptionsMessage: () => NoOptionsMessage,
194
- OrderedList: () => import_react51.OrderedList,
195
+ OrderedList: () => import_react52.OrderedList,
195
196
  Pagination: () => pagination_default,
196
197
  PaginationDetail: () => pagination_detail_default,
197
198
  PaginationFilter: () => pagination_filter_default,
198
- PinInput: () => import_react62.PinInput,
199
- PinInputContext: () => import_react62.PinInputContext,
200
- PinInputDescendantsProvider: () => import_react62.PinInputDescendantsProvider,
201
- PinInputField: () => import_react62.PinInputField,
202
- PinInputFieldProps: () => import_react62.PinInputFieldProps,
203
- PinInputProps: () => import_react62.PinInputProps,
204
- PinInputProvider: () => import_react62.PinInputProvider,
205
- Popover: () => import_react63.Popover,
206
- PopoverAnchor: () => import_react63.PopoverAnchor,
207
- PopoverArrow: () => import_react63.PopoverArrow,
208
- PopoverArrowProps: () => import_react63.PopoverArrowProps,
209
- PopoverBody: () => import_react63.PopoverBody,
210
- PopoverBodyProps: () => import_react63.PopoverBodyProps,
211
- PopoverCloseButton: () => import_react63.PopoverCloseButton,
212
- PopoverContent: () => import_react63.PopoverContent,
213
- PopoverContentProps: () => import_react63.PopoverContentProps,
214
- PopoverFooter: () => import_react63.PopoverFooter,
215
- PopoverFooterProps: () => import_react63.PopoverFooterProps,
216
- PopoverHeader: () => import_react63.PopoverHeader,
217
- PopoverHeaderProps: () => import_react63.PopoverHeaderProps,
218
- PopoverProps: () => import_react63.PopoverProps,
219
- PopoverTrigger: () => import_react63.PopoverTrigger,
220
- Portal: () => import_react63.Portal,
221
- PortalProps: () => import_react63.PortalProps,
199
+ PinInput: () => import_react63.PinInput,
200
+ PinInputContext: () => import_react63.PinInputContext,
201
+ PinInputDescendantsProvider: () => import_react63.PinInputDescendantsProvider,
202
+ PinInputField: () => import_react63.PinInputField,
203
+ PinInputFieldProps: () => import_react63.PinInputFieldProps,
204
+ PinInputProps: () => import_react63.PinInputProps,
205
+ PinInputProvider: () => import_react63.PinInputProvider,
206
+ Popover: () => import_react64.Popover,
207
+ PopoverAnchor: () => import_react64.PopoverAnchor,
208
+ PopoverArrow: () => import_react64.PopoverArrow,
209
+ PopoverArrowProps: () => import_react64.PopoverArrowProps,
210
+ PopoverBody: () => import_react64.PopoverBody,
211
+ PopoverBodyProps: () => import_react64.PopoverBodyProps,
212
+ PopoverCloseButton: () => import_react64.PopoverCloseButton,
213
+ PopoverContent: () => import_react64.PopoverContent,
214
+ PopoverContentProps: () => import_react64.PopoverContentProps,
215
+ PopoverFooter: () => import_react64.PopoverFooter,
216
+ PopoverFooterProps: () => import_react64.PopoverFooterProps,
217
+ PopoverHeader: () => import_react64.PopoverHeader,
218
+ PopoverHeaderProps: () => import_react64.PopoverHeaderProps,
219
+ PopoverProps: () => import_react64.PopoverProps,
220
+ PopoverTrigger: () => import_react64.PopoverTrigger,
221
+ Portal: () => import_react64.Portal,
222
+ PortalProps: () => import_react64.PortalProps,
222
223
  Profile: () => Profile,
223
- Progress: () => import_react64.Progress,
224
- ProgressFilledTrackProps: () => import_react64.ProgressFilledTrackProps,
225
- ProgressLabel: () => import_react64.ProgressLabel,
226
- ProgressLabelProps: () => import_react64.ProgressLabelProps,
227
- ProgressProps: () => import_react64.ProgressProps,
228
- ProgressTrackProps: () => import_react64.ProgressTrackProps,
224
+ Progress: () => import_react65.Progress,
225
+ ProgressFilledTrackProps: () => import_react65.ProgressFilledTrackProps,
226
+ ProgressLabel: () => import_react65.ProgressLabel,
227
+ ProgressLabelProps: () => import_react65.ProgressLabelProps,
228
+ ProgressProps: () => import_react65.ProgressProps,
229
+ ProgressTrackProps: () => import_react65.ProgressTrackProps,
229
230
  Provider: () => provider_default,
230
231
  ProviderContext: () => ProviderContext,
231
232
  Radio: () => Radio,
232
233
  RadioGroup: () => RadioGroup,
233
- RadioGroupContext: () => import_react67.RadioGroupContext,
234
+ RadioGroupContext: () => import_react68.RadioGroupContext,
234
235
  Rating: () => rating_default,
235
236
  RequiredIndicator: () => import_react25.RequiredIndicator,
236
237
  RequiredIndicatorProps: () => import_react25.RequiredIndicatorProps,
@@ -246,15 +247,15 @@ __export(src_exports, {
246
247
  Sidebar: () => Sidebar,
247
248
  SidebarHeader: () => SidebarHeader,
248
249
  SidebarMenu: () => SidebarMenu,
249
- SimpleGrid: () => import_react50.SimpleGrid,
250
+ SimpleGrid: () => import_react51.SimpleGrid,
250
251
  Skeleton: () => import_react5.Skeleton,
251
252
  Slide: () => import_react91.Slide,
252
253
  SlideFade: () => import_react91.SlideFade,
253
254
  SlideFadeProps: () => import_react91.SlideFadeProps,
254
255
  SlideProps: () => import_react91.SlideProps,
255
- Spacer: () => import_react50.Spacer,
256
- Stack: () => import_react50.Stack,
257
- StackProps: () => import_react50.StackProps,
256
+ Spacer: () => import_react51.Spacer,
257
+ Stack: () => import_react51.Stack,
258
+ StackProps: () => import_react51.StackProps,
258
259
  Step: () => import_react91.Step,
259
260
  StepDescription: () => import_react91.StepDescription,
260
261
  StepIcon: () => import_react91.StepIcon,
@@ -266,39 +267,39 @@ __export(src_exports, {
266
267
  Stepper: () => import_react91.Stepper,
267
268
  Switch: () => switch_default,
268
269
  Tab: () => tab_default,
269
- TabIndicator: () => import_react81.TabIndicator,
270
- TabIndicatorProps: () => import_react81.TabIndicatorProps,
271
- TabList: () => import_react81.TabList,
272
- TabListProps: () => import_react81.TabListProps,
273
- TabPanel: () => import_react81.TabPanel,
274
- TabPanelProps: () => import_react81.TabPanelProps,
275
- TabPanels: () => import_react81.TabPanels,
276
- TabPanelsProps: () => import_react81.TabPanelsProps,
277
- TabProps: () => import_react81.TabProps,
278
- TableBodyProps: () => import_react79.TableBodyProps,
279
- TableCellProps: () => import_react79.TableCellProps,
280
- TableColumnHeaderProps: () => import_react79.TableColumnHeaderProps,
281
- TableHeadProps: () => import_react79.TableHeadProps,
282
- TableProps: () => import_react79.TableProps,
283
- TableRowProps: () => import_react79.TableRowProps,
284
- Tabs: () => import_react81.Tabs,
285
- TabsDescendantsProvider: () => import_react81.TabsDescendantsProvider,
286
- TabsProps: () => import_react81.TabsProps,
287
- TabsProvider: () => import_react81.TabsProvider,
288
- Tbody: () => import_react79.Tbody,
289
- Td: () => import_react79.Td,
290
- Text: () => import_react82.Text,
291
- TextProps: () => import_react82.TextProps,
270
+ TabIndicator: () => import_react82.TabIndicator,
271
+ TabIndicatorProps: () => import_react82.TabIndicatorProps,
272
+ TabList: () => import_react82.TabList,
273
+ TabListProps: () => import_react82.TabListProps,
274
+ TabPanel: () => import_react82.TabPanel,
275
+ TabPanelProps: () => import_react82.TabPanelProps,
276
+ TabPanels: () => import_react82.TabPanels,
277
+ TabPanelsProps: () => import_react82.TabPanelsProps,
278
+ TabProps: () => import_react82.TabProps,
279
+ TableBodyProps: () => import_react80.TableBodyProps,
280
+ TableCellProps: () => import_react80.TableCellProps,
281
+ TableColumnHeaderProps: () => import_react80.TableColumnHeaderProps,
282
+ TableHeadProps: () => import_react80.TableHeadProps,
283
+ TableProps: () => import_react80.TableProps,
284
+ TableRowProps: () => import_react80.TableRowProps,
285
+ Tabs: () => import_react82.Tabs,
286
+ TabsDescendantsProvider: () => import_react82.TabsDescendantsProvider,
287
+ TabsProps: () => import_react82.TabsProps,
288
+ TabsProvider: () => import_react82.TabsProvider,
289
+ Tbody: () => import_react80.Tbody,
290
+ Td: () => import_react80.Td,
291
+ Text: () => import_react83.Text,
292
+ TextProps: () => import_react83.TextProps,
292
293
  TextareaField: () => textarea_default,
293
- Th: () => import_react79.Th,
294
- Thead: () => import_react79.Thead,
294
+ Th: () => import_react80.Th,
295
+ Thead: () => import_react80.Thead,
295
296
  ThemeTypings: () => import_styled_system12.ThemeTypings,
296
297
  Time: () => Time,
297
298
  TimeInput: () => TimeInput2,
298
299
  ToastContainer: () => import_react_toastify2.ToastContainer,
299
300
  Tooltip: () => Tooltip,
300
- Tr: () => import_react79.Tr,
301
- UnorderedList: () => import_react51.UnorderedList,
301
+ Tr: () => import_react80.Tr,
302
+ UnorderedList: () => import_react52.UnorderedList,
302
303
  Uploader: () => uploader_default,
303
304
  UseBreakpointOptions: () => import_react91.UseBreakpointOptions,
304
305
  UseCheckboxGroupProps: () => import_react16.UseCheckboxGroupProps,
@@ -309,39 +310,42 @@ __export(src_exports, {
309
310
  UseImageProps: () => import_react91.UseImageProps,
310
311
  UseImageReturn: () => import_react91.UseImageReturn,
311
312
  UseMediaQueryOptions: () => import_react91.UseMediaQueryOptions,
312
- UseModalProps: () => import_react53.UseModalProps,
313
- UseModalReturn: () => import_react53.UseModalReturn,
314
- UsePinInputFieldProps: () => import_react62.UsePinInputFieldProps,
315
- UsePinInputProps: () => import_react62.UsePinInputProps,
316
- UsePinInputReturn: () => import_react62.UsePinInputReturn,
313
+ UseModalProps: () => import_react54.UseModalProps,
314
+ UseModalReturn: () => import_react54.UseModalReturn,
315
+ UsePinInputFieldProps: () => import_react63.UsePinInputFieldProps,
316
+ UsePinInputProps: () => import_react63.UsePinInputProps,
317
+ UsePinInputReturn: () => import_react63.UsePinInputReturn,
317
318
  UseQueryProps: () => import_react91.UseQueryProps,
318
- UseRadioGroupReturn: () => import_react67.UseRadioGroupReturn,
319
- UseRadioProps: () => import_react67.UseRadioProps,
320
- UseRadioReturn: () => import_react67.UseRadioReturn,
321
- UseTabListProps: () => import_react81.UseTabListProps,
322
- UseTabListReturn: () => import_react81.UseTabListReturn,
323
- UseTabOptions: () => import_react81.UseTabOptions,
324
- UseTabPanelsProps: () => import_react81.UseTabPanelsProps,
325
- UseTabProps: () => import_react81.UseTabProps,
326
- UseTabsProps: () => import_react81.UseTabsProps,
327
- UseTabsReturn: () => import_react81.UseTabsReturn,
328
- VStack: () => import_react50.VStack,
319
+ UseRadioGroupReturn: () => import_react68.UseRadioGroupReturn,
320
+ UseRadioProps: () => import_react68.UseRadioProps,
321
+ UseRadioReturn: () => import_react68.UseRadioReturn,
322
+ UseTabListProps: () => import_react82.UseTabListProps,
323
+ UseTabListReturn: () => import_react82.UseTabListReturn,
324
+ UseTabOptions: () => import_react82.UseTabOptions,
325
+ UseTabPanelsProps: () => import_react82.UseTabPanelsProps,
326
+ UseTabProps: () => import_react82.UseTabProps,
327
+ UseTabsProps: () => import_react82.UseTabsProps,
328
+ UseTabsReturn: () => import_react82.UseTabsReturn,
329
+ VStack: () => import_react51.VStack,
329
330
  Version: () => Version,
330
331
  VisuallyHidden: () => import_react91.VisuallyHidden,
331
332
  VisuallyHiddenInput: () => import_react91.VisuallyHiddenInput,
332
333
  VoilaLogo: () => VoilaLogo,
333
- Wrap: () => import_react50.Wrap,
334
- WrapItem: () => import_react50.WrapItem,
335
- WrapItemProps: () => import_react50.WrapItemProps,
336
- WrapProps: () => import_react50.WrapProps,
334
+ Wrap: () => import_react51.Wrap,
335
+ WrapItem: () => import_react51.WrapItem,
336
+ WrapItemProps: () => import_react51.WrapItemProps,
337
+ WrapProps: () => import_react51.WrapProps,
337
338
  XMSLogo: () => XMSLogo,
338
339
  createExtendTheme: () => createExtendTheme,
340
+ defaultOnHandleRejections: () => defaultOnHandleRejections,
341
+ dimensionValidator: () => dimensionValidator,
339
342
  extendTheme: () => import_react104.extendTheme,
340
343
  forwardRef: () => import_react104.forwardRef,
341
344
  getSelectAllCheckboxState: () => getSelectAllCheckboxState,
342
345
  getTheme: () => getTheme,
343
346
  id: () => id,
344
347
  isCellDisabled: () => isCellDisabled,
348
+ isRatioEqual: () => isRatioEqual,
345
349
  selectStyles: () => selectStyles,
346
350
  theme: () => theme4,
347
351
  themeSelect: () => themeSelect,
@@ -365,35 +369,35 @@ __export(src_exports, {
365
369
  useDataTable: () => useDataTable,
366
370
  useDimensions: () => import_react103.useDimensions,
367
371
  useDisclosure: () => import_react103.useDisclosure,
368
- useDrawerContext: () => import_react53.useDrawerContext,
372
+ useDrawerContext: () => import_react54.useDrawerContext,
369
373
  useFetcher: () => useFetcher,
370
374
  useImage: () => import_react91.useImage,
371
375
  useInternalUI: () => useInternalUI,
372
376
  useMergeRefs: () => import_react103.useMergeRefs,
373
- useModal: () => import_react53.useModal,
374
- useModalContext: () => import_react53.useModalContext,
375
- useModalStyles: () => import_react53.useModalStyles,
377
+ useModal: () => import_react54.useModal,
378
+ useModalContext: () => import_react54.useModalContext,
379
+ useModalStyles: () => import_react54.useModalStyles,
376
380
  useOutsideClick: () => import_react103.useOutsideClick,
377
- usePinInput: () => import_react62.usePinInput,
378
- usePinInputContext: () => import_react62.usePinInputContext,
379
- usePinInputField: () => import_react62.usePinInputField,
380
- useProgressStyles: () => import_react64.useProgressStyles,
381
+ usePinInput: () => import_react63.usePinInput,
382
+ usePinInputContext: () => import_react63.usePinInputContext,
383
+ usePinInputField: () => import_react63.usePinInputField,
384
+ useProgressStyles: () => import_react65.useProgressStyles,
381
385
  useQuery: () => import_react91.useQuery,
382
- useRadio: () => import_react67.useRadio,
383
- useRadioGroup: () => import_react67.useRadioGroup,
384
- useRadioGroupContext: () => import_react67.useRadioGroupContext,
386
+ useRadio: () => import_react68.useRadio,
387
+ useRadioGroup: () => import_react68.useRadioGroup,
388
+ useRadioGroupContext: () => import_react68.useRadioGroupContext,
385
389
  useSteps: () => import_react91.useSteps,
386
- useTab: () => import_react81.useTab,
387
- useTabIndicator: () => import_react81.useTabIndicator,
388
- useTabList: () => import_react81.useTabList,
389
- useTabPanel: () => import_react81.useTabPanel,
390
- useTabPanels: () => import_react81.useTabPanels,
391
- useTabs: () => import_react81.useTabs,
392
- useTabsContext: () => import_react81.useTabsContext,
393
- useTabsDescendant: () => import_react81.useTabsDescendant,
394
- useTabsDescendants: () => import_react81.useTabsDescendants,
395
- useTabsDescendantsContext: () => import_react81.useTabsDescendantsContext,
396
- useTabsStyles: () => import_react81.useTabsStyles,
390
+ useTab: () => import_react82.useTab,
391
+ useTabIndicator: () => import_react82.useTabIndicator,
392
+ useTabList: () => import_react82.useTabList,
393
+ useTabPanel: () => import_react82.useTabPanel,
394
+ useTabPanels: () => import_react82.useTabPanels,
395
+ useTabs: () => import_react82.useTabs,
396
+ useTabsContext: () => import_react82.useTabsContext,
397
+ useTabsDescendant: () => import_react82.useTabsDescendant,
398
+ useTabsDescendants: () => import_react82.useTabsDescendants,
399
+ useTabsDescendantsContext: () => import_react82.useTabsDescendantsContext,
400
+ useTabsStyles: () => import_react82.useTabsStyles,
397
401
  useTheme: () => import_react103.useTheme,
398
402
  useToast: () => useToast,
399
403
  useToken: () => import_react103.useToken
@@ -1631,6 +1635,7 @@ var data_table_default = DataTable;
1631
1635
  var import_react33 = require("@chakra-ui/react");
1632
1636
  var import_shared_utils8 = require("@chakra-ui/shared-utils");
1633
1637
  var import_internal_icon6 = require("@ctlyst.id/internal-icon");
1638
+ var import_react34 = require("@floating-ui/react");
1634
1639
  var import_react_datepicker = __toESM(require("react-datepicker"));
1635
1640
 
1636
1641
  // ../../node_modules/.pnpm/date-fns@3.6.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.mjs
@@ -2283,16 +2288,10 @@ var Styles = ({ showHeader }) => {
2283
2288
  .react-datepicker-popper {
2284
2289
  z-index: 1;
2285
2290
  }
2286
- .react-datepicker-popper[data-placement^=bottom] {
2287
- padding-top: 10px;
2288
- }
2289
2291
  .react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle, .react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle {
2290
2292
  left: auto;
2291
2293
  right: 50px;
2292
2294
  }
2293
- .react-datepicker-popper[data-placement^=top] {
2294
- padding-bottom: 10px;
2295
- }
2296
2295
  .react-datepicker-popper[data-placement^=right] {
2297
2296
  padding-left: 8px;
2298
2297
  }
@@ -3093,17 +3092,29 @@ var Datepicker = ({
3093
3092
  const hasMultipleMonthShow = ((_b = props == null ? void 0 : props.monthsShown) != null ? _b : 1) < 2;
3094
3093
  const component = /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_jsx_runtime27.Fragment, { children: [
3095
3094
  /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(styles_default, { showHeader: !hasMultipleMonthShow }),
3096
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3095
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(field_default, { label, isRequired, isError, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3097
3096
  import_react_datepicker.default,
3098
3097
  {
3099
3098
  id: id2,
3100
3099
  name,
3101
3100
  selected,
3101
+ popperModifiers: [
3102
+ (0, import_react34.offset)(4),
3103
+ {
3104
+ name: "placement",
3105
+ fn: (state) => {
3106
+ const { placement, y } = state;
3107
+ return {
3108
+ ...state,
3109
+ y: placement.startsWith("bottom") ? y - 10 : y + 10
3110
+ // condition for auto placement
3111
+ };
3112
+ }
3113
+ }
3114
+ ],
3102
3115
  customInput: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
3103
3116
  input_field_default,
3104
3117
  {
3105
- label,
3106
- isRequired,
3107
3118
  autoComplete: "off",
3108
3119
  isError,
3109
3120
  addOnRight: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(import_react20.InputRightElement, { alignSelf: "center", bottom: 0, flexDir: "row-reverse", width: "auto", mr: 2, gap: 2, children: [
@@ -3138,7 +3149,7 @@ var Datepicker = ({
3138
3149
  ...getTimeProps(),
3139
3150
  ...props
3140
3151
  }
3141
- )
3152
+ ) })
3142
3153
  ] });
3143
3154
  if (props.inline) {
3144
3155
  return component;
@@ -3163,18 +3174,18 @@ Datepicker.defaultProps = {
3163
3174
  var datepicker_default = Datepicker;
3164
3175
 
3165
3176
  // src/components/datepicker/components/datepicker-month/datepicker-month.tsx
3166
- var import_react34 = require("@chakra-ui/react");
3167
- var import_react35 = require("@emotion/react");
3168
- var import_react36 = __toESM(require("react"));
3177
+ var import_react35 = require("@chakra-ui/react");
3178
+ var import_react36 = require("@emotion/react");
3179
+ var import_react37 = __toESM(require("react"));
3169
3180
  var import_jsx_runtime28 = require("react/jsx-runtime");
3170
3181
  var DatePickerMonth = ({ onChange, min, max, ...props }) => {
3171
- const [date, setDate] = import_react36.default.useState(null);
3182
+ const [date, setDate] = import_react37.default.useState(null);
3172
3183
  return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3173
- import_react34.Box,
3184
+ import_react35.Box,
3174
3185
  {
3175
3186
  fontSize: "12px",
3176
3187
  lineHeight: "18px",
3177
- css: import_react35.css`
3188
+ css: import_react36.css`
3178
3189
  input[type='date']::-webkit-inner-spin-button,
3179
3190
  input[type='date']::-webkit-calendar-picker-indicator {
3180
3191
  display: none;
@@ -3185,7 +3196,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
3185
3196
  }
3186
3197
  `,
3187
3198
  children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
3188
- import_react34.Input,
3199
+ import_react35.Input,
3189
3200
  {
3190
3201
  "data-test-id": props["data-test-id"],
3191
3202
  type: "date",
@@ -3198,7 +3209,7 @@ var DatePickerMonth = ({ onChange, min, max, ...props }) => {
3198
3209
  min,
3199
3210
  max,
3200
3211
  required: true,
3201
- css: import_react35.css`
3212
+ css: import_react36.css`
3202
3213
  border: 1px solid transparent;
3203
3214
 
3204
3215
  &:focus,
@@ -3222,11 +3233,11 @@ DatePickerMonth.defaultProps = {
3222
3233
  var datepicker_month_default = DatePickerMonth;
3223
3234
 
3224
3235
  // src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
3225
- var import_react37 = require("@chakra-ui/react");
3236
+ var import_react38 = require("@chakra-ui/react");
3226
3237
  var import_styled = __toESM(require("@emotion/styled"));
3227
- var import_react38 = __toESM(require("react"));
3238
+ var import_react39 = __toESM(require("react"));
3228
3239
  var import_jsx_runtime29 = require("react/jsx-runtime");
3229
- var MultiDateWrapper = (0, import_styled.default)(import_react37.Box)`
3240
+ var MultiDateWrapper = (0, import_styled.default)(import_react38.Box)`
3230
3241
  display: flex;
3231
3242
  align-items: center;
3232
3243
  width: fit-content;
@@ -3241,7 +3252,7 @@ var MultiDatePickerMonth = ({
3241
3252
  min = "2020-01-01",
3242
3253
  max = "2020-12-31"
3243
3254
  }) => {
3244
- const [date, setDate] = import_react38.default.useState([null, null]);
3255
+ const [date, setDate] = import_react39.default.useState([null, null]);
3245
3256
  return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(MultiDateWrapper, { isError, children: [
3246
3257
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3247
3258
  datepicker_month_default,
@@ -3255,7 +3266,7 @@ var MultiDatePickerMonth = ({
3255
3266
  max
3256
3267
  }
3257
3268
  ),
3258
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react37.Box, { children: "-" }),
3269
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react38.Box, { children: "-" }),
3259
3270
  /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
3260
3271
  datepicker_month_default,
3261
3272
  {
@@ -3278,7 +3289,7 @@ MultiDatePickerMonth.defaultProps = {
3278
3289
  var multi_datepicker_month_default = MultiDatePickerMonth;
3279
3290
 
3280
3291
  // src/components/dialog/components/dialog.tsx
3281
- var import_react39 = require("@chakra-ui/react");
3292
+ var import_react40 = require("@chakra-ui/react");
3282
3293
  var import_jsx_runtime30 = require("react/jsx-runtime");
3283
3294
  var Dialog = ({
3284
3295
  title,
@@ -3289,12 +3300,12 @@ var Dialog = ({
3289
3300
  isOverlayClickable,
3290
3301
  ...props
3291
3302
  }) => {
3292
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.Modal, { ...props, children: [
3293
- isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
3294
- /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react39.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
3295
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
3296
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalBody, { p: 4, textStyle: "text.md", children: content }),
3297
- /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react39.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
3303
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react40.Modal, { ...props, children: [
3304
+ isModalOverlay && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalOverlay, { pointerEvents: isOverlayClickable ? "auto" : "none" }),
3305
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(import_react40.ModalContent, { bgColor: "neutral.50", fontFamily: "Poppins", width, minW: "400px", children: [
3306
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalHeader, { bgColor: "neutral.200", py: 2, px: 4, borderTopRadius: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "normal", children: title }) }),
3307
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalBody, { p: 4, textStyle: "text.md", children: content }),
3308
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react40.ModalFooter, { bgColor: "neutral.200", p: 4, borderBottomRadius: "sm", children: footer })
3298
3309
  ] })
3299
3310
  ] });
3300
3311
  };
@@ -3309,7 +3320,7 @@ var dialog_default = Dialog;
3309
3320
  var Icon2 = __toESM(require("@ctlyst.id/internal-icon"));
3310
3321
 
3311
3322
  // src/components/empty-state/components/layout.tsx
3312
- var import_react40 = require("@chakra-ui/react");
3323
+ var import_react41 = require("@chakra-ui/react");
3313
3324
  var import_jsx_runtime31 = require("react/jsx-runtime");
3314
3325
  var EmptyState = (props) => {
3315
3326
  const { icon, title, description, buttonText, onClick } = props;
@@ -3318,13 +3329,13 @@ var EmptyState = (props) => {
3318
3329
  onClick();
3319
3330
  }
3320
3331
  };
3321
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react40.VStack, { textAlign: "center", children: [
3332
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react41.VStack, { textAlign: "center", children: [
3322
3333
  icon,
3323
- /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react40.VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
3324
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.lg", fontWeight: "bold", children: title }),
3325
- /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Text, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
3334
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsxs)(import_react41.VStack, { spacing: 2, textAlign: "center", mt: 3, children: [
3335
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Text, { textStyle: "text.lg", fontWeight: "bold", children: title }),
3336
+ /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Text, { textStyle: "text.md", color: "black.medium", whiteSpace: "pre-wrap", children: description })
3326
3337
  ] }),
3327
- buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Box, { mt: 3, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react40.Button, { size: "lg", "data-test-id": "CT_component-action-button", onClick: handleClick, children: buttonText }) })
3338
+ buttonText && /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Box, { mt: 3, children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(import_react41.Button, { size: "lg", "data-test-id": "CT_component-action-button", onClick: handleClick, children: buttonText }) })
3328
3339
  ] }) });
3329
3340
  };
3330
3341
  var layout_default = EmptyState;
@@ -3401,28 +3412,28 @@ EmptyState2.NotAuthorize = EmptyStateNotAuthorize;
3401
3412
  var empty_state_default = EmptyState2;
3402
3413
 
3403
3414
  // src/components/header/components/header.tsx
3404
- var import_react47 = require("@chakra-ui/react");
3415
+ var import_react48 = require("@chakra-ui/react");
3405
3416
 
3406
3417
  // src/components/header/components/logo.tsx
3407
- var import_react41 = require("@chakra-ui/react");
3418
+ var import_react42 = require("@chakra-ui/react");
3408
3419
  var import_jsx_runtime33 = require("react/jsx-runtime");
3409
3420
  var Logo = ({ url, imageUrl, height }) => {
3410
3421
  if (url)
3411
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
3412
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react41.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
3422
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Box, { as: "a", href: url, cursor: "pointer", target: "_self", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" }) });
3423
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react42.Image, { w: "initial", h: height != null ? height : 9, maxH: height != null ? height : 9, src: imageUrl, alt: imageUrl, objectFit: "contain" });
3413
3424
  };
3414
3425
  var XMSLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3415
- import_react41.Image,
3426
+ import_react42.Image,
3416
3427
  {
3417
3428
  height: 8,
3418
- src: (0, import_react41.useColorModeValue)("https://assets.voila.id/xms/logo-xms.jpg", "https://assets.voila.id/xms/logo-xms-dark.png")
3429
+ src: (0, import_react42.useColorModeValue)("https://assets.voila.id/xms/logo-xms.jpg", "https://assets.voila.id/xms/logo-xms-dark.png")
3419
3430
  }
3420
3431
  );
3421
3432
  var VoilaLogo = () => /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
3422
- import_react41.Image,
3433
+ import_react42.Image,
3423
3434
  {
3424
3435
  src: "https://assets.voila.id/xms/logo-voila-black.png?v=1",
3425
- filter: (0, import_react41.useColorModeValue)("none", "invert(1)"),
3436
+ filter: (0, import_react42.useColorModeValue)("none", "invert(1)"),
3426
3437
  maxW: 24
3427
3438
  }
3428
3439
  );
@@ -3432,16 +3443,16 @@ Logo.defaultProps = {
3432
3443
  };
3433
3444
 
3434
3445
  // src/components/header/components/profile.tsx
3435
- var import_react44 = require("@chakra-ui/react");
3446
+ var import_react45 = require("@chakra-ui/react");
3436
3447
  var import_fi2 = require("react-icons/fi");
3437
3448
 
3438
3449
  // src/components/nav-item/components/nav-item.tsx
3439
- var import_react42 = require("@chakra-ui/react");
3450
+ var import_react43 = require("@chakra-ui/react");
3440
3451
  var import_shared_utils9 = require("@chakra-ui/shared-utils");
3441
3452
  var import_jsx_runtime34 = require("react/jsx-runtime");
3442
3453
  var NavItem = ({ children, isActive, isChild, isDisabled, ...props }) => {
3443
3454
  return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
3444
- import_react42.Link,
3455
+ import_react43.Link,
3445
3456
  {
3446
3457
  "data-test-id": props["data-test-id"],
3447
3458
  opacity: isDisabled ? "0.3" : "initial",
@@ -3481,7 +3492,7 @@ NavItem.defaultProps = {
3481
3492
  };
3482
3493
 
3483
3494
  // src/components/tooltip/components/tooltip.tsx
3484
- var import_react43 = require("@chakra-ui/react");
3495
+ var import_react44 = require("@chakra-ui/react");
3485
3496
  var import_jsx_runtime35 = require("react/jsx-runtime");
3486
3497
  var Tooltip = (props) => {
3487
3498
  const {
@@ -3494,7 +3505,7 @@ var Tooltip = (props) => {
3494
3505
  fontWeight = "400"
3495
3506
  } = props;
3496
3507
  const content = ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
3497
- import_react43.PopoverContent,
3508
+ import_react44.PopoverContent,
3498
3509
  {
3499
3510
  "data-test-id": "",
3500
3511
  border: "none",
@@ -3508,15 +3519,15 @@ var Tooltip = (props) => {
3508
3519
  onClose();
3509
3520
  },
3510
3521
  children: [
3511
- props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverArrow, { color, bg, shadow: "none" }),
3512
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverBody, { color, ...props, fontWeight, children: props.label })
3522
+ props.hasArrow && /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverArrow, { color, bg, shadow: "none" }),
3523
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverBody, { color, ...props, fontWeight, children: props.label })
3513
3524
  ]
3514
3525
  }
3515
3526
  );
3516
- return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3517
- /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.PopoverTrigger, { children }),
3518
- props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Portal, { children: content({ onClose }) }) : content({ onClose })
3519
- ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react43.Tooltip, { ...props, children });
3527
+ return props.isInteractive === true ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Popover, { trigger: "hover", placement: props.placement, ...props.popoverProps, children: ({ onClose }) => /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(import_jsx_runtime35.Fragment, { children: [
3528
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.PopoverTrigger, { children }),
3529
+ props.portal ? /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Portal, { children: content({ onClose }) }) : content({ onClose })
3530
+ ] }) }) : /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(import_react44.Tooltip, { ...props, children });
3520
3531
  };
3521
3532
 
3522
3533
  // src/components/header/components/profile.tsx
@@ -3532,10 +3543,10 @@ var Profile = ({
3532
3543
  ...props
3533
3544
  }) => {
3534
3545
  var _a, _b;
3535
- const { isOpen, onToggle, onClose } = (0, import_react44.useDisclosure)();
3536
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Popover, { placement: "bottom-end", isOpen, onClose, children: [
3546
+ const { isOpen, onToggle, onClose } = (0, import_react45.useDisclosure)();
3547
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Popover, { placement: "bottom-end", isOpen, onClose, children: [
3537
3548
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3538
- import_react44.Box,
3549
+ import_react45.Box,
3539
3550
  {
3540
3551
  "data-test-id": "CTA_Navbar_Profile_wrapper",
3541
3552
  as: "button",
@@ -3551,14 +3562,14 @@ var Profile = ({
3551
3562
  onClick: onToggle,
3552
3563
  color,
3553
3564
  ...props,
3554
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.HStack, { children: [
3555
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
3556
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
3557
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { alignItems: "center", children: [
3565
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.HStack, { children: [
3566
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.VStack, { alignItems: "flex-end", spacing: "0", ml: "2", color, children: [
3567
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", mb: "1", children: data == null ? void 0 : data.email }),
3568
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Flex, { alignItems: "center", children: [
3558
3569
  (data == null ? void 0 : data.userRole) && /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_jsx_runtime36.Fragment, { children: [
3559
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
3570
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.userRole) || "user" }),
3560
3571
  !!((_a = data.office) == null ? void 0 : _a.length) && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3561
- import_react44.Box,
3572
+ import_react45.Box,
3562
3573
  {
3563
3574
  className: "catalyst_header-profile-divider",
3564
3575
  h: "3",
@@ -3568,17 +3579,17 @@ var Profile = ({
3568
3579
  }
3569
3580
  )
3570
3581
  ] }),
3571
- typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Flex, { align: "center", justify: "center", children: [
3572
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: data.office[0] }),
3582
+ typeof (data == null ? void 0 : data.office) === "object" ? /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Flex, { align: "center", justify: "center", children: [
3583
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: data.office[0] }),
3573
3584
  data.office.length > 1 && /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
3574
3585
  Tooltip,
3575
3586
  {
3576
3587
  isInteractive: true,
3577
3588
  hasArrow: true,
3578
3589
  p: "2",
3579
- label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Box, { children: [
3580
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: "Akses Office:" }),
3581
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { children: data.office.sort().join(", ") })
3590
+ label: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Box, { children: [
3591
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { children: "Akses Office:" }),
3592
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { children: data.office.sort().join(", ") })
3582
3593
  ] }),
3583
3594
  textAlign: "left",
3584
3595
  placement: "bottom-end",
@@ -3589,7 +3600,7 @@ var Profile = ({
3589
3600
  },
3590
3601
  width: 300,
3591
3602
  ...officeContainer,
3592
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3603
+ children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
3593
3604
  badge_default,
3594
3605
  {
3595
3606
  rounded: "full",
@@ -3606,18 +3617,18 @@ var Profile = ({
3606
3617
  ) })
3607
3618
  }
3608
3619
  )
3609
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
3620
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { textStyle: "text.xs", children: (data == null ? void 0 : data.office) || "office" })
3610
3621
  ] })
3611
3622
  ] }),
3612
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Box, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Avatar, { size: "sm", bg: brandColor, color: "white", name: (_b = data == null ? void 0 : data.name) != null ? _b : data == null ? void 0 : data.email }) }) })
3623
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Box, { border: "2px solid", borderColor: "transparent", className: "catalyst-header-avatar", rounded: "full", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Avatar, { size: "sm", bg: brandColor, color: "white", name: (_b = data == null ? void 0 : data.name) != null ? _b : data == null ? void 0 : data.email }) }) })
3613
3624
  ] })
3614
3625
  }
3615
3626
  ),
3616
- children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.PopoverContent, { bg: "white", maxW: 200, children: [
3617
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverArrow, { bg: "white" }),
3618
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavItem, { "data-test-id": "CTA_Navbar_logout-button", onClick: onLogout, rounded: "none", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react44.Box, { display: "flex", alignItems: "center", children: [
3627
+ children || /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.PopoverContent, { bg: "white", maxW: 200, children: [
3628
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverArrow, { bg: "white" }),
3629
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(NavItem, { "data-test-id": "CTA_Navbar_logout-button", onClick: onLogout, rounded: "none", px: "4", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(import_react45.Box, { display: "flex", alignItems: "center", children: [
3619
3630
  /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_fi2.FiPower, {}),
3620
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react44.Text, { ml: "2", children: "Logout" })
3631
+ /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react45.Text, { ml: "2", children: "Logout" })
3621
3632
  ] }) }) })
3622
3633
  ] })
3623
3634
  ] });
@@ -3630,17 +3641,17 @@ Profile.defaultProps = {
3630
3641
  };
3631
3642
 
3632
3643
  // src/components/header/components/switch-mode.tsx
3633
- var import_react45 = require("@chakra-ui/react");
3644
+ var import_react46 = require("@chakra-ui/react");
3634
3645
  var import_fi3 = require("react-icons/fi");
3635
3646
  var import_jsx_runtime37 = require("react/jsx-runtime");
3636
3647
  var SwitchMode = () => {
3637
- const { colorMode, toggleColorMode } = (0, import_react45.useColorMode)();
3638
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react45.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiSun, { size: 20 }) });
3648
+ const { colorMode, toggleColorMode } = (0, import_react46.useColorMode)();
3649
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react46.Box, { "data-test-id": "rhYuTDCiWkFqr96upiEEh", mx: 5, onClick: toggleColorMode, cursor: "pointer", children: colorMode === "light" ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiMoon, { size: 20 }) : /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_fi3.FiSun, { size: 20 }) });
3639
3650
  };
3640
3651
  var switch_mode_default = SwitchMode;
3641
3652
 
3642
3653
  // src/components/header/components/version.tsx
3643
- var import_react46 = require("@chakra-ui/react");
3654
+ var import_react47 = require("@chakra-ui/react");
3644
3655
 
3645
3656
  // src/components/header/utils/formatter.ts
3646
3657
  function environmentName(env) {
@@ -3678,7 +3689,7 @@ var Version = ({
3678
3689
  }
3679
3690
  ) : version,
3680
3691
  !hideEnv && environmentName(environment) !== null && version && /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
3681
- import_react46.Box,
3692
+ import_react47.Box,
3682
3693
  {
3683
3694
  background: "primary.50",
3684
3695
  color: "primary.500",
@@ -3718,8 +3729,8 @@ var Header = ({
3718
3729
  bg = "white",
3719
3730
  versionStyle,
3720
3731
  ...props
3721
- }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react47.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3722
- import_react47.Flex,
3732
+ }) => /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react48.Flex, { minH: 15, bg, shadow: "raised", px: 6, py: 3, alignItems: "center", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
3733
+ import_react48.Flex,
3723
3734
  {
3724
3735
  h: "auto",
3725
3736
  w: "full",
@@ -3727,11 +3738,11 @@ var Header = ({
3727
3738
  justifyContent: !mainLogo ? "flex-end" : "space-between",
3728
3739
  pos: "relative",
3729
3740
  children: [
3730
- mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
3741
+ mainLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.Flex, { alignItems: "center", children: [
3731
3742
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: mainLogo, height: mainLogoSize }),
3732
3743
  children && children
3733
3744
  ] }),
3734
- centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
3745
+ centerLogo && /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.HStack, { w: "fit-content", spacing: 2, alignItems: "center", pos: "absolute", left: "50%", transform: "translate(-50%,0)", children: [
3735
3746
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Logo, { url: urlLogo, imageUrl: centerLogo, height: centerLogoSize }),
3736
3747
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
3737
3748
  Version,
@@ -3744,7 +3755,7 @@ var Header = ({
3744
3755
  }
3745
3756
  )
3746
3757
  ] }),
3747
- profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react47.Flex, { alignItems: "center", children: [
3758
+ profile || /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(import_react48.Flex, { alignItems: "center", children: [
3748
3759
  !hideSwitchMode && /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(switch_mode_default, {}),
3749
3760
  /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(Profile, { color: props.color, brandColor, data, onLogout })
3750
3761
  ] })
@@ -3768,11 +3779,11 @@ Header.defaultProps = {
3768
3779
  };
3769
3780
 
3770
3781
  // src/components/header/components/navbar.tsx
3771
- var import_react48 = require("@chakra-ui/react");
3782
+ var import_react49 = require("@chakra-ui/react");
3772
3783
  var import_jsx_runtime40 = require("react/jsx-runtime");
3773
3784
  var Navbar = ({ bg = "white", children, ...props }) => {
3774
3785
  return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
3775
- import_react48.Flex,
3786
+ import_react49.Flex,
3776
3787
  {
3777
3788
  minH: "15",
3778
3789
  h: "15",
@@ -3792,21 +3803,21 @@ var Navbar = ({ bg = "white", children, ...props }) => {
3792
3803
  Navbar.displayName = "Navbar";
3793
3804
 
3794
3805
  // src/components/image/index.ts
3795
- var import_react49 = require("@chakra-ui/react");
3806
+ var import_react50 = require("@chakra-ui/react");
3796
3807
 
3797
3808
  // src/components/layouting/index.ts
3798
- var import_react50 = require("@chakra-ui/react");
3809
+ var import_react51 = require("@chakra-ui/react");
3799
3810
 
3800
3811
  // src/components/list/index.tsx
3801
- var import_react51 = require("@chakra-ui/react");
3812
+ var import_react52 = require("@chakra-ui/react");
3802
3813
 
3803
3814
  // src/components/modal/components/modal-back-button.tsx
3804
3815
  var import_icons3 = require("@chakra-ui/icons");
3805
- var import_react52 = require("@chakra-ui/react");
3816
+ var import_react53 = require("@chakra-ui/react");
3806
3817
  var import_jsx_runtime41 = require("react/jsx-runtime");
3807
3818
  var ModalBackButton = ({ onClick }) => {
3808
3819
  return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
3809
- import_react52.IconButton,
3820
+ import_react53.IconButton,
3810
3821
  {
3811
3822
  icon: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(import_icons3.ChevronLeftIcon, { w: "4.5", h: "4.5" }),
3812
3823
  size: "sm",
@@ -3826,12 +3837,12 @@ var ModalBackButton = ({ onClick }) => {
3826
3837
  var modal_back_button_default = ModalBackButton;
3827
3838
 
3828
3839
  // src/components/modal/index.ts
3829
- var import_react53 = require("@chakra-ui/react");
3840
+ var import_react54 = require("@chakra-ui/react");
3830
3841
 
3831
3842
  // src/components/navigation/components/navigation.tsx
3832
- var import_react54 = require("@chakra-ui/react");
3843
+ var import_react55 = require("@chakra-ui/react");
3833
3844
  var Icon5 = __toESM(require("@ctlyst.id/internal-icon"));
3834
- var import_react55 = require("@emotion/react");
3845
+ var import_react56 = require("@emotion/react");
3835
3846
 
3836
3847
  // src/components/navigation/components/mapping-icon.tsx
3837
3848
  var Icon4 = __toESM(require("@ctlyst.id/internal-icon"));
@@ -3854,8 +3865,8 @@ var mappingIcon = /* @__PURE__ */ new Map([
3854
3865
  // src/components/navigation/components/navigation.tsx
3855
3866
  var import_jsx_runtime43 = require("react/jsx-runtime");
3856
3867
  var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3857
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3858
- import_react54.Flex,
3868
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Box, { borderRadius: "md", overflowX: "auto", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3869
+ import_react55.Flex,
3859
3870
  {
3860
3871
  bg: "white",
3861
3872
  w: "full",
@@ -3869,9 +3880,9 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3869
3880
  children: navigations == null ? void 0 : navigations.map((navigation) => {
3870
3881
  const isActive = activePath.startsWith(navigation.navLink || "");
3871
3882
  const activeBg = isActive ? "primary.500" : void 0;
3872
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
3873
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3874
- import_react54.Button,
3883
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Popover, { trigger: "hover", placement: "bottom-start", children: ({ isOpen }) => /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(import_jsx_runtime43.Fragment, { children: [
3884
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3885
+ import_react55.Button,
3875
3886
  {
3876
3887
  h: 7.5,
3877
3888
  p: 2,
@@ -3888,10 +3899,10 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3888
3899
  children: navigation.title
3889
3900
  }
3890
3901
  ) }),
3891
- navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3892
- import_react54.PopoverContent,
3902
+ navigation.children && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Box, { zIndex: "popover", children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3903
+ import_react55.PopoverContent,
3893
3904
  {
3894
- bg: (0, import_react54.useColorModeValue)("white", "ebony-clay.800"),
3905
+ bg: (0, import_react55.useColorModeValue)("white", "ebony-clay.800"),
3895
3906
  maxW: 250,
3896
3907
  border: "none",
3897
3908
  borderRadius: "md",
@@ -3901,7 +3912,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3901
3912
  const isLocalLink = host === navHost;
3902
3913
  const isActiveSub = activePath === navLink;
3903
3914
  return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3904
- import_react54.Link,
3915
+ import_react55.Link,
3905
3916
  {
3906
3917
  as: isLocalLink ? as : void 0,
3907
3918
  href: link,
@@ -3909,7 +3920,7 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3909
3920
  textDecoration: "none"
3910
3921
  },
3911
3922
  children: /* @__PURE__ */ (0, import_jsx_runtime43.jsxs)(
3912
- import_react54.Box,
3923
+ import_react55.Box,
3913
3924
  {
3914
3925
  display: "flex",
3915
3926
  position: "relative",
@@ -3917,24 +3928,24 @@ var Navigation = ({ navigations, activePath, as, host, ...props }) => {
3917
3928
  cursor: "pointer",
3918
3929
  transition: "padding 0.35s ease 0s",
3919
3930
  _hover: {
3920
- backgroundColor: (0, import_react54.useColorModeValue)("dove-gray.50", "mirage.900"),
3921
- color: (0, import_react54.useColorModeValue)("primary.500", "dove-gray.600"),
3931
+ backgroundColor: (0, import_react55.useColorModeValue)("dove-gray.50", "mirage.900"),
3932
+ color: (0, import_react55.useColorModeValue)("primary.500", "dove-gray.600"),
3922
3933
  px: 5,
3923
3934
  py: 4,
3924
3935
  _first: { borderTopRadius: "md" },
3925
3936
  _last: { borderBottomRadius: "md" }
3926
3937
  },
3927
3938
  color: isActiveSub ? "primary.500" : "inherit",
3928
- css: import_react55.css`
3939
+ css: import_react56.css`
3929
3940
  border-spacing: 4px;
3930
3941
  `,
3931
3942
  px: 6,
3932
3943
  py: 4,
3933
3944
  children: [
3934
3945
  mappingIcon.get(navigation.title),
3935
- /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react54.Text, { fontSize: "text.sm", ml: 3, children: title }),
3946
+ /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(import_react55.Text, { fontSize: "text.sm", ml: 3, children: title }),
3936
3947
  isActiveSub && /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
3937
- import_react54.Box,
3948
+ import_react55.Box,
3938
3949
  {
3939
3950
  width: 0.5,
3940
3951
  height: 8,
@@ -3967,7 +3978,7 @@ Navigation.defaultProps = {
3967
3978
  var navigation_default = Navigation;
3968
3979
 
3969
3980
  // src/components/navigation/components/navigation-bar.tsx
3970
- var import_react56 = require("@chakra-ui/react");
3981
+ var import_react57 = require("@chakra-ui/react");
3971
3982
  var Icon6 = __toESM(require("@ctlyst.id/internal-icon"));
3972
3983
  var import_jsx_runtime44 = require("react/jsx-runtime");
3973
3984
  var NavigationBar = ({
@@ -3984,8 +3995,8 @@ var NavigationBar = ({
3984
3995
  }
3985
3996
  return subMenu.navHost + subMenu.navLink;
3986
3997
  };
3987
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3988
- import_react56.Flex,
3998
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Box, { hidden: isFetched && navigations === void 0, "data-test-id": "CT_component_navigation_cms", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
3999
+ import_react57.Flex,
3989
4000
  {
3990
4001
  bg: "white",
3991
4002
  w: "full",
@@ -4001,9 +4012,9 @@ var NavigationBar = ({
4001
4012
  const childMenu = item.children.filter((subMenu) => asPath == null ? void 0 : asPath.includes(subMenu.navLink));
4002
4013
  const isActive = pathname == null ? void 0 : pathname.startsWith((_a = childMenu[0]) == null ? void 0 : _a.navLink);
4003
4014
  const activeBg = isActive ? "primary.500" : void 0;
4004
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
4005
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4006
- import_react56.Button,
4015
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Popover, { isLazy: true, trigger: "hover", placement: "bottom-start", openDelay: 100, closeDelay: 100, children: ({ isOpen, onClose }) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_jsx_runtime44.Fragment, { children: [
4016
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
4017
+ import_react57.Button,
4007
4018
  {
4008
4019
  h: 7.5,
4009
4020
  p: 2,
@@ -4020,8 +4031,8 @@ var NavigationBar = ({
4020
4031
  children: item.title
4021
4032
  }
4022
4033
  ) }),
4023
- item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4024
- import_react56.Link,
4034
+ item.children && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.PopoverContent, { bg: "white", boxShadow: "raised", borderRadius: "md", py: 1, width: 240, children: item.children.map((subMenu) => /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(
4035
+ import_react57.Link,
4025
4036
  {
4026
4037
  href: urlMenu(subMenu),
4027
4038
  display: "flex",
@@ -4038,7 +4049,7 @@ var NavigationBar = ({
4038
4049
  "data-test-id": `CT_component_navigation_link-${item.id}`,
4039
4050
  children: [
4040
4051
  mappingIcon2.get(item.title),
4041
- /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react56.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
4052
+ /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(import_react57.Text, { textStyle: "text-sm", ml: 3, children: subMenu.title })
4042
4053
  ]
4043
4054
  },
4044
4055
  subMenu.id
@@ -4055,18 +4066,18 @@ var navigation_bar_default = NavigationBar;
4055
4066
 
4056
4067
  // src/components/pagination/components/pagination.tsx
4057
4068
  var import_icons4 = require("@chakra-ui/icons");
4058
- var import_react59 = require("@chakra-ui/react");
4069
+ var import_react60 = require("@chakra-ui/react");
4059
4070
 
4060
4071
  // src/components/pagination/components/pagination-button.tsx
4061
- var import_react57 = require("@chakra-ui/react");
4072
+ var import_react58 = require("@chakra-ui/react");
4062
4073
  var import_jsx_runtime45 = require("react/jsx-runtime");
4063
- var PaginationButton = (0, import_react57.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
4064
- const btnBg = (0, import_react57.useColorModeValue)("neutral.300", "mirage.900");
4065
- const btnColor = (0, import_react57.useColorModeValue)("black.high", "primary.300");
4066
- const btnNotActiveBg = (0, import_react57.useColorModeValue)("secondary.50", "primary.500");
4067
- const btnNotActiveColor = (0, import_react57.useColorModeValue)("primary.500", "white");
4074
+ var PaginationButton = (0, import_react58.forwardRef)(({ className, style, isActive, children, ...rest }, ref) => {
4075
+ const btnBg = (0, import_react58.useColorModeValue)("neutral.300", "mirage.900");
4076
+ const btnColor = (0, import_react58.useColorModeValue)("black.high", "primary.300");
4077
+ const btnNotActiveBg = (0, import_react58.useColorModeValue)("secondary.50", "primary.500");
4078
+ const btnNotActiveColor = (0, import_react58.useColorModeValue)("primary.500", "white");
4068
4079
  return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
4069
- import_react57.Button,
4080
+ import_react58.Button,
4070
4081
  {
4071
4082
  "data-test-id": "Pagination-Button",
4072
4083
  ref,
@@ -4091,7 +4102,7 @@ var PaginationButton = (0, import_react57.forwardRef)(({ className, style, isAct
4091
4102
  color: "neutral.300"
4092
4103
  },
4093
4104
  _disabled: {
4094
- background: (0, import_react57.useColorModeValue)("neutral.300", "mirage.900"),
4105
+ background: (0, import_react58.useColorModeValue)("neutral.300", "mirage.900"),
4095
4106
  color: "neutral.600",
4096
4107
  pointerEvents: "none"
4097
4108
  },
@@ -4107,7 +4118,7 @@ PaginationButton.defaultProps = {
4107
4118
  var pagination_button_default = PaginationButton;
4108
4119
 
4109
4120
  // src/components/pagination/components/pagination-button-trigger.tsx
4110
- var import_react58 = require("@chakra-ui/react");
4121
+ var import_react59 = require("@chakra-ui/react");
4111
4122
  var import_jsx_runtime46 = require("react/jsx-runtime");
4112
4123
  var PaginationButtonTrigger = ({
4113
4124
  color,
@@ -4116,7 +4127,7 @@ var PaginationButtonTrigger = ({
4116
4127
  visuallyHidden,
4117
4128
  icon
4118
4129
  }) => /* @__PURE__ */ (0, import_jsx_runtime46.jsxs)(pagination_button_default, { "data-test-id": "DLVCc_fBK35spHm5WxjcJ", color, isDisabled, onClick, children: [
4119
- /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react58.VisuallyHidden, { children: visuallyHidden }),
4130
+ /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react59.VisuallyHidden, { children: visuallyHidden }),
4120
4131
  icon
4121
4132
  ] });
4122
4133
  PaginationButtonTrigger.defaultProps = {
@@ -4131,8 +4142,8 @@ var pagination_button_trigger_default = PaginationButtonTrigger;
4131
4142
  // src/components/pagination/components/pagination.tsx
4132
4143
  var import_jsx_runtime47 = require("react/jsx-runtime");
4133
4144
  var Pagination = ({ className, current, total, onSelect }) => {
4134
- const btnColorDisabled = (0, import_react59.useColorModeValue)("secondary.100", "primary.500");
4135
- const btnColor = (0, import_react59.useColorModeValue)("primary.500", "secondary.100");
4145
+ const btnColorDisabled = (0, import_react60.useColorModeValue)("secondary.100", "primary.500");
4146
+ const btnColor = (0, import_react60.useColorModeValue)("primary.500", "secondary.100");
4136
4147
  const disabledPrevious = current === 1;
4137
4148
  const previousButtonColor = disabledPrevious ? btnColorDisabled : btnColor;
4138
4149
  const disabledNext = current === total;
@@ -4159,8 +4170,8 @@ var Pagination = ({ className, current, total, onSelect }) => {
4159
4170
  }
4160
4171
  return pageButtons;
4161
4172
  };
4162
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { className, display: "inline-flex", alignItems: "center", children: [
4163
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4173
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react60.Box, { className, display: "inline-flex", alignItems: "center", children: [
4174
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Box, { mr: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4164
4175
  pagination_button_trigger_default,
4165
4176
  {
4166
4177
  "data-test-id": "Pagination-Button",
@@ -4171,7 +4182,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
4171
4182
  icon: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_icons4.ArrowLeftIcon, { width: 2 })
4172
4183
  }
4173
4184
  ) }),
4174
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react59.Box, { bg: "neutral.300", borderRadius: "full", children: [
4185
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(import_react60.Box, { bg: "neutral.300", borderRadius: "full", children: [
4175
4186
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4176
4187
  pagination_button_trigger_default,
4177
4188
  {
@@ -4190,7 +4201,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
4190
4201
  "data-test-id": "Pagination-Button",
4191
4202
  isActive: page === current,
4192
4203
  onClick: () => typeof page === "number" ? handleSelectPage(page) : null,
4193
- children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
4204
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Text, { scale: 300, fontSize: "text.sm", lineHeight: 18, fontWeight: 500, children: page })
4194
4205
  },
4195
4206
  page
4196
4207
  );
@@ -4207,7 +4218,7 @@ var Pagination = ({ className, current, total, onSelect }) => {
4207
4218
  }
4208
4219
  )
4209
4220
  ] }),
4210
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react59.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4221
+ /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react60.Box, { ml: 1, children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
4211
4222
  pagination_button_trigger_default,
4212
4223
  {
4213
4224
  "data-test-id": "Pagination-Button",
@@ -4228,7 +4239,7 @@ Pagination.displayName = "Pagination";
4228
4239
  var pagination_default = Pagination;
4229
4240
 
4230
4241
  // src/components/pagination/components/pagination-detail.tsx
4231
- var import_react60 = require("@chakra-ui/react");
4242
+ var import_react61 = require("@chakra-ui/react");
4232
4243
  var import_jsx_runtime48 = require("react/jsx-runtime");
4233
4244
  var PaginationDetail = ({
4234
4245
  page,
@@ -4239,12 +4250,12 @@ var PaginationDetail = ({
4239
4250
  lineHeight = 18,
4240
4251
  ...rest
4241
4252
  }) => {
4242
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react60.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
4253
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(import_react61.Text, { scale, fontSize, lineHeight, ...rest, children: `${(page - 1) * limit + 1}-${limit * page < length ? limit * page : length} dari ${length} item` });
4243
4254
  };
4244
4255
  var pagination_detail_default = PaginationDetail;
4245
4256
 
4246
4257
  // src/components/pagination/components/pagination-filter.tsx
4247
- var import_react61 = require("@chakra-ui/react");
4258
+ var import_react62 = require("@chakra-ui/react");
4248
4259
  var React9 = __toESM(require("react"));
4249
4260
  var import_fi4 = require("react-icons/fi");
4250
4261
  var import_jsx_runtime49 = require("react/jsx-runtime");
@@ -4256,10 +4267,10 @@ var PaginationFilter = ({
4256
4267
  ...rest
4257
4268
  }) => {
4258
4269
  const [value, setValue] = React9.useState(limit);
4259
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react61.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
4260
- /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react61.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react61.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
4270
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(import_react62.Box, { display: "flex", flexDirection: "row", alignItems: "center", children: [
4271
+ /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(import_react62.Text, { fontSize: "text.sm", lineHeight: 18, color: (0, import_react62.useColorModeValue)("neutral.900", "white"), ...rest, children: label }),
4261
4272
  /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
4262
- import_react61.Select,
4273
+ import_react62.Select,
4263
4274
  {
4264
4275
  textAlign: "center",
4265
4276
  size: "xs",
@@ -4289,22 +4300,22 @@ PaginationFilter.defaultProps = {
4289
4300
  var pagination_filter_default = PaginationFilter;
4290
4301
 
4291
4302
  // src/components/pin-input/index.ts
4292
- var import_react62 = require("@chakra-ui/react");
4303
+ var import_react63 = require("@chakra-ui/react");
4293
4304
 
4294
4305
  // src/components/popover/index.ts
4295
- var import_react63 = require("@chakra-ui/react");
4306
+ var import_react64 = require("@chakra-ui/react");
4296
4307
 
4297
4308
  // src/components/progress/index.ts
4298
- var import_react64 = require("@chakra-ui/react");
4309
+ var import_react65 = require("@chakra-ui/react");
4299
4310
 
4300
4311
  // src/components/radio/components/radio.tsx
4301
- var import_react65 = require("@chakra-ui/react");
4312
+ var import_react66 = require("@chakra-ui/react");
4302
4313
  var import_jsx_runtime50 = require("react/jsx-runtime");
4303
4314
  var Radio = ({ isError = false, helpText, errorText, children, isDisabled, ...rest }) => {
4304
4315
  const variant = isError ? "errors" : "unstyled";
4305
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react65.Box, { children: [
4306
- /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
4307
- isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react65.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
4316
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)(import_react66.Box, { children: [
4317
+ /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { display: "flex", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Radio, { variant, ...rest, isDisabled, children: children && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.sm", color: isDisabled ? "black.medium" : "black.high", children }) }) }),
4318
+ isError && errorText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.xs", color: "danger.500", children: errorText }) }) : helpText ? /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Box, { mt: "2", ml: "6", children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(import_react66.Text, { as: "span", display: "block", textStyle: "text.xs", color: "black.medium", children: helpText }) }) : null
4308
4319
  ] });
4309
4320
  };
4310
4321
  Radio.displayName = "Radio";
@@ -4315,7 +4326,7 @@ Radio.defaultProps = {
4315
4326
  };
4316
4327
 
4317
4328
  // src/components/radio/components/radio-group.tsx
4318
- var import_react66 = require("@chakra-ui/react");
4329
+ var import_react67 = require("@chakra-ui/react");
4319
4330
  var import_jsx_runtime51 = require("react/jsx-runtime");
4320
4331
  var RadioGroup = ({
4321
4332
  children,
@@ -4325,7 +4336,7 @@ var RadioGroup = ({
4325
4336
  errorMessage,
4326
4337
  ...props
4327
4338
  }) => {
4328
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.Box, { mt: "2", mb: "1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react66.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
4339
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(field_default, { ...props, label, leftHelperText: helpText, isError, errorMessage, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.Box, { mt: "2", mb: "1", children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.RadioGroup, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(import_react67.Stack, { spacing: [1, "16px"], direction: ["column", "row"], children }) }) }) });
4329
4340
  };
4330
4341
  RadioGroup.displayName = "RadioGroup";
4331
4342
  RadioGroup.defaultProps = {
@@ -4335,34 +4346,34 @@ RadioGroup.defaultProps = {
4335
4346
  };
4336
4347
 
4337
4348
  // src/components/radio/index.ts
4338
- var import_react67 = require("@chakra-ui/react");
4349
+ var import_react68 = require("@chakra-ui/react");
4339
4350
 
4340
4351
  // src/components/rating/components/rating.tsx
4341
- var import_react68 = require("@chakra-ui/react");
4352
+ var import_react69 = require("@chakra-ui/react");
4342
4353
  var import_internal_icon7 = require("@ctlyst.id/internal-icon");
4343
4354
  var import_jsx_runtime52 = require("react/jsx-runtime");
4344
4355
  var Rating = ({ value }) => {
4345
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react68.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_internal_icon7.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
4356
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_react69.Grid, { gap: "4px", display: "flex", children: [...Array(5)].map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(import_internal_icon7.Rating, { color: i < value ? "#FFA230" : "#E0E0E0", size: 24 })) });
4346
4357
  };
4347
4358
  var rating_default = Rating;
4348
4359
 
4349
4360
  // src/components/select/components/select.tsx
4350
- var import_react72 = require("@chakra-ui/react");
4361
+ var import_react73 = require("@chakra-ui/react");
4351
4362
  var import_system7 = require("@chakra-ui/system");
4352
4363
  var Icon7 = __toESM(require("@ctlyst.id/internal-icon"));
4353
4364
  var import_react_select = __toESM(require("react-select"));
4354
4365
 
4355
4366
  // src/config/theme/foundations/shadows.ts
4356
- var import_react69 = require("@chakra-ui/react");
4367
+ var import_react70 = require("@chakra-ui/react");
4357
4368
  var shadows = {
4358
- ...import_react69.theme.shadows,
4369
+ ...import_react70.theme.shadows,
4359
4370
  raised: "0px 4px 20px rgba(0, 0, 0, 0.05)"
4360
4371
  };
4361
4372
 
4362
4373
  // src/config/theme/foundations/sizes.ts
4363
- var import_react70 = require("@chakra-ui/react");
4374
+ var import_react71 = require("@chakra-ui/react");
4364
4375
  var sizes = {
4365
- ...import_react70.theme.sizes,
4376
+ ...import_react71.theme.sizes,
4366
4377
  4.5: "1.125rem",
4367
4378
  9.5: "2.375rem",
4368
4379
  18: "4.5rem",
@@ -4372,9 +4383,9 @@ var sizes = {
4372
4383
  };
4373
4384
 
4374
4385
  // src/config/theme/foundations/spacing.ts
4375
- var import_react71 = require("@chakra-ui/react");
4386
+ var import_react72 = require("@chakra-ui/react");
4376
4387
  var spacing = {
4377
- ...import_react71.theme.space,
4388
+ ...import_react72.theme.space,
4378
4389
  4.5: "1.125rem",
4379
4390
  9.5: "2.375rem",
4380
4391
  18: "4.5rem",
@@ -4734,13 +4745,13 @@ function ClearIndicator(props) {
4734
4745
  return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.ClearIndicator, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 4, color: hasValue ? "black.medium" : "neutral.400" }) });
4735
4746
  }
4736
4747
  function MultiValue(props) {
4737
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react72.Badge, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4748
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValue, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react73.Badge, { pr: 0, variant: "neutral-light", children: props == null ? void 0 : props.data.label }) });
4738
4749
  }
4739
4750
  function MultiValueRemove(props) {
4740
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react72.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4751
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react_select.components.MultiValueRemove, { ...props, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react73.Flex, { align: "center", justify: "center", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon7.Close, { size: 2.5, color: "inherit" }) }) });
4741
4752
  }
4742
4753
  function NoOptionsMessage(props) {
4743
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react72.Center, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4754
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(import_react73.Center, { textStyle: "text.xs", py: "1.5", color: "black.medium", children: (props == null ? void 0 : props.options.length) === 0 ? "Opsi tidak tersedia" : "Hasil tidak ditemukan" });
4744
4755
  }
4745
4756
  function Select2({
4746
4757
  styles,
@@ -4848,7 +4859,7 @@ function SelectCreatable({ styles, isError = false, ...rest }) {
4848
4859
  }
4849
4860
 
4850
4861
  // src/components/select/components/select-with-checkbox.tsx
4851
- var import_react73 = require("@chakra-ui/react");
4862
+ var import_react74 = require("@chakra-ui/react");
4852
4863
  var import_system11 = require("@chakra-ui/system");
4853
4864
  var import_react_select2 = __toESM(require("react-select"));
4854
4865
  var import_jsx_runtime57 = require("react/jsx-runtime");
@@ -4911,7 +4922,7 @@ var InputOption = ({
4911
4922
  innerProps: props,
4912
4923
  ...rest,
4913
4924
  children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
4914
- import_react73.Flex,
4925
+ import_react74.Flex,
4915
4926
  {
4916
4927
  alignItems: "center",
4917
4928
  width: "100%",
@@ -4920,15 +4931,15 @@ var InputOption = ({
4920
4931
  cursor: isDisabled ? "not-allowed" : "default",
4921
4932
  children: [
4922
4933
  (data == null ? void 0 : data.selectAllCheckbox) ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
4923
- import_react73.Checkbox,
4934
+ import_react74.Checkbox,
4924
4935
  {
4925
4936
  isChecked: checkedState === CHECKBOX_STATE.CHECKED,
4926
4937
  isIndeterminate: checkedState === CHECKBOX_STATE.INDETERMINATE,
4927
4938
  isDisabled,
4928
4939
  "data-test-id": "CT_component_select-checkbox_select-all-option"
4929
4940
  }
4930
- ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
4931
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react73.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
4941
+ ) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react74.Checkbox, { isChecked: isSelected, "data-test-id": "CT_component_select-checkbox_option-checkbox" }),
4942
+ /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react74.Text, { textStyle: "text.sm", "data-test-id": `select-checkbox-option-label-${data.value}`, children })
4932
4943
  ]
4933
4944
  }
4934
4945
  )
@@ -5000,13 +5011,13 @@ var SelectCheckbox = (props) => {
5000
5011
  var select_with_checkbox_default = SelectCheckbox;
5001
5012
 
5002
5013
  // src/components/sidebar/components/sidebar.tsx
5003
- var import_react74 = require("@chakra-ui/react");
5014
+ var import_react75 = require("@chakra-ui/react");
5004
5015
  var import_framer_motion = require("framer-motion");
5005
5016
  var import_jsx_runtime58 = require("react/jsx-runtime");
5006
5017
  var Sidebar = ({ isCollapse, children, ...props }) => {
5007
5018
  const { width = "220px" } = props;
5008
5019
  return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
5009
- import_react74.Flex,
5020
+ import_react75.Flex,
5010
5021
  {
5011
5022
  position: "relative",
5012
5023
  as: import_framer_motion.motion.div,
@@ -5026,13 +5037,13 @@ var Sidebar = ({ isCollapse, children, ...props }) => {
5026
5037
  Sidebar.displayName = "Sidebar";
5027
5038
 
5028
5039
  // src/components/sidebar/components/sidebar-header.tsx
5029
- var import_react75 = require("@chakra-ui/react");
5040
+ var import_react76 = require("@chakra-ui/react");
5030
5041
  var import_internal_icon8 = require("@ctlyst.id/internal-icon");
5031
5042
  var import_framer_motion2 = require("framer-motion");
5032
5043
  var import_jsx_runtime59 = require("react/jsx-runtime");
5033
5044
  var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5034
5045
  return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5035
- import_react75.Box,
5046
+ import_react76.Box,
5036
5047
  {
5037
5048
  px: "2",
5038
5049
  color: "neutral.900",
@@ -5042,7 +5053,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5042
5053
  color: "primary.500"
5043
5054
  },
5044
5055
  children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
5045
- import_react75.Flex,
5056
+ import_react76.Flex,
5046
5057
  {
5047
5058
  "data-test-id": "nLkz69YipW818FioeAxVI",
5048
5059
  direction: "row",
@@ -5052,7 +5063,7 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5052
5063
  cursor: "pointer",
5053
5064
  children: [
5054
5065
  /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5055
- import_react75.Box,
5066
+ import_react76.Box,
5056
5067
  {
5057
5068
  as: import_framer_motion2.motion.div,
5058
5069
  boxSize: "4",
@@ -5063,8 +5074,8 @@ var SidebarHeader = ({ isCollapse, setCollapse, title }) => {
5063
5074
  children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_internal_icon8.ArrowRight, { size: 4, color: "inherit" })
5064
5075
  }
5065
5076
  ),
5066
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react75.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5067
- import_react75.Text,
5077
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_framer_motion2.AnimatePresence, { children: !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(import_react76.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(
5078
+ import_react76.Text,
5068
5079
  {
5069
5080
  as: import_framer_motion2.motion.div,
5070
5081
  w: "max-content",
@@ -5090,32 +5101,32 @@ SidebarHeader.defaultProps = {
5090
5101
  };
5091
5102
 
5092
5103
  // src/components/sidebar/components/sidebar-menu.tsx
5093
- var import_react76 = require("@chakra-ui/react");
5104
+ var import_react77 = require("@chakra-ui/react");
5094
5105
  var Icon8 = __toESM(require("@ctlyst.id/internal-icon"));
5095
5106
  var import_framer_motion3 = require("framer-motion");
5096
5107
  var import_jsx_runtime60 = require("react/jsx-runtime");
5097
5108
  var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, setActive, active }) => {
5098
5109
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5099
- import_react76.Box,
5110
+ import_react77.Box,
5100
5111
  {
5101
5112
  as: import_framer_motion3.motion.div,
5102
5113
  transitionTimingFunction: "linear",
5103
5114
  initial: { padding: "8px" },
5104
5115
  animate: { padding: isCollapse ? "8px 16px" : "8px" },
5105
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5116
+ children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Accordion, { index: menu.findIndex((item) => item.children.some((child) => child.navLink === active)), children: menu.map((item) => {
5106
5117
  const isActive = active == null ? void 0 : active.includes(item.navLink);
5107
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
5118
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.AccordionItem, { mt: "4", children: ({ isExpanded }) => {
5108
5119
  const isOpenOptions = isCollapse || !isCollapse && !isExpanded;
5109
5120
  const noChild = !item.children.length;
5110
5121
  const offsetStyle = isCollapse ? noChild ? [-5, 16] : [-1, 16] : [-1, 8];
5111
5122
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
5112
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5123
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Popover, { trigger: "hover", placement: "right-start", offset: offsetStyle, children: ({ isOpen, onClose }) => {
5113
5124
  const activeOption = isOpen ? "primary.50" : "white";
5114
5125
  const backgroundColor = isOpen && !isActive ? "primary.50" : "primary.100";
5115
5126
  const activeParent = isActive ? backgroundColor : activeOption;
5116
5127
  return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_jsx_runtime60.Fragment, { children: [
5117
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5118
- import_react76.AccordionButton,
5128
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverTrigger, { children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5129
+ import_react77.AccordionButton,
5119
5130
  {
5120
5131
  "data-test-id": `CTA_button-accordion-${item.title}`,
5121
5132
  p: "0",
@@ -5133,9 +5144,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5133
5144
  position: "relative",
5134
5145
  ...itemStyles,
5135
5146
  children: [
5136
- mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5147
+ mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5137
5148
  !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5138
- import_react76.Box,
5149
+ import_react77.Box,
5139
5150
  {
5140
5151
  display: "flex",
5141
5152
  w: "full",
@@ -5149,9 +5160,9 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5149
5160
  animate: { opacity: 1, x: 0 },
5150
5161
  exit: { opacity: 0, x: 16 },
5151
5162
  children: [
5152
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5163
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { h: "3.5", position: "relative", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) }),
5153
5164
  !!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5154
- import_react76.Box,
5165
+ import_react77.Box,
5155
5166
  {
5156
5167
  display: "flex",
5157
5168
  boxSize: "3",
@@ -5171,12 +5182,12 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5171
5182
  },
5172
5183
  item.id
5173
5184
  ) }, item.id),
5174
- isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react76.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5175
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react76.Box, { display: "flex", alignItems: "center", children: [
5185
+ isOpenOptions && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Portal, { children: item.children.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react77.PopoverContent, { w: "176px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: [
5186
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverHeader, { borderColor: "neutral.300", textStyle: "text.xs", p: "2", children: mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(import_react77.Box, { display: "flex", alignItems: "center", children: [
5176
5187
  mappingIcon2.get(item.icon || ""),
5177
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { as: "span", ml: "2", children: item.title })
5188
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { as: "span", ml: "2", children: item.title })
5178
5189
  ] }) }),
5179
- !!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5190
+ !!item.children.length && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverBody, { pb: "1", px: "0", pt: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5180
5191
  NavItem,
5181
5192
  {
5182
5193
  "data-test-id": `CTA_Sidebar-popover-item-${submenu.id}`,
@@ -5192,7 +5203,7 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5192
5203
  },
5193
5204
  submenu.id
5194
5205
  )) })
5195
- ] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5206
+ ] }) : isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverContent, { w: "174px", borderColor: "neutral.200", bg: "white", rounded: "sm", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.PopoverBody, { py: "1", px: "0", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
5196
5207
  NavItem,
5197
5208
  {
5198
5209
  "data-test-id": `CTA_Sidebar-popover-item-${item.id}`,
@@ -5205,15 +5216,15 @@ var SidebarMenu = ({ menu, isCollapse, mappingIcon: mappingIcon2, itemStyles, se
5205
5216
  rounded: "none",
5206
5217
  ...itemStyles,
5207
5218
  children: [
5208
- mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5209
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5219
+ mappingIcon2 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { display: "flex", boxSize: "3", transition: "50ms linear", children: mappingIcon2.get(item.icon || "") }),
5220
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Box, { h: "3.5", position: "relative", ml: "2", children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.Text, { textStyle: "text.xs", w: "max-content", position: "absolute", children: item.title }) })
5210
5221
  ]
5211
5222
  },
5212
5223
  item.id
5213
5224
  ) }) }) })
5214
5225
  ] });
5215
5226
  } }, item.id),
5216
- !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react76.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5227
+ !isCollapse && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react77.AccordionPanel, { mt: "1", p: "0", children: item.children.map((submenu) => /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
5217
5228
  NavItem,
5218
5229
  {
5219
5230
  mt: "1",
@@ -5239,16 +5250,16 @@ SidebarMenu.defaultProps = {
5239
5250
  };
5240
5251
 
5241
5252
  // src/components/switch/components/switch.tsx
5242
- var import_react77 = require("@chakra-ui/react");
5253
+ var import_react78 = require("@chakra-ui/react");
5243
5254
  var import_shared_utils10 = require("@chakra-ui/shared-utils");
5244
5255
  var import_internal_icon9 = require("@ctlyst.id/internal-icon");
5245
- var import_react78 = require("react");
5256
+ var import_react79 = require("react");
5246
5257
  var import_jsx_runtime61 = require("react/jsx-runtime");
5247
- var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5248
- const styles = (0, import_react77.useMultiStyleConfig)("Switch", props);
5249
- const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react77.omitThemingProps)(props);
5250
- const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react77.useCheckbox)(ownProps);
5251
- const containerStyles = (0, import_react78.useMemo)(
5258
+ var Switch = (0, import_react78.forwardRef)(function Switch2(props, ref) {
5259
+ const styles = (0, import_react78.useMultiStyleConfig)("Switch", props);
5260
+ const { spacing: spacing2 = "0.5rem", children, ...ownProps } = (0, import_react78.omitThemingProps)(props);
5261
+ const { state, getInputProps, getCheckboxProps, getRootProps, getLabelProps } = (0, import_react78.useCheckbox)(ownProps);
5262
+ const containerStyles = (0, import_react79.useMemo)(
5252
5263
  () => ({
5253
5264
  display: "inline-block",
5254
5265
  position: "relative",
@@ -5258,7 +5269,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5258
5269
  }),
5259
5270
  [styles.container]
5260
5271
  );
5261
- const trackStyles = (0, import_react78.useMemo)(
5272
+ const trackStyles = (0, import_react79.useMemo)(
5262
5273
  () => ({
5263
5274
  display: "inline-flex",
5264
5275
  flexShrink: 0,
@@ -5270,7 +5281,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5270
5281
  }),
5271
5282
  [styles.track]
5272
5283
  );
5273
- const labelStyles = (0, import_react78.useMemo)(
5284
+ const labelStyles = (0, import_react79.useMemo)(
5274
5285
  () => ({
5275
5286
  userSelect: "none",
5276
5287
  marginStart: spacing2,
@@ -5287,7 +5298,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5287
5298
  return iconSize[value];
5288
5299
  };
5289
5300
  return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(
5290
- import_react77.chakra.label,
5301
+ import_react78.chakra.label,
5291
5302
  {
5292
5303
  ...getRootProps(),
5293
5304
  display: "flex",
@@ -5296,13 +5307,13 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5296
5307
  __css: containerStyles,
5297
5308
  children: [
5298
5309
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", { "data-test-id": "", className: "chakra-switch__input", ...getInputProps({}, ref) }),
5299
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
5300
- /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react77.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
5310
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react78.chakra.span, { ...getCheckboxProps(), className: "chakra-switch__track", pos: "relative", __css: trackStyles, children: [
5311
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(import_react78.Flex, { gap: 1, pos: "absolute", top: "50%", left: "50%", transform: "translate(-50%, -50%)", children: [
5301
5312
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Check, { color: "white", size: getIconSize(props.size) }),
5302
5313
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_internal_icon9.Close, { color: state.isDisabled ? "neutral.600" : "neutral.900", size: getIconSize(props.size) })
5303
5314
  ] }),
5304
5315
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5305
- import_react77.chakra.span,
5316
+ import_react78.chakra.span,
5306
5317
  {
5307
5318
  __css: styles.thumb,
5308
5319
  className: "chakra-switch__thumb",
@@ -5312,7 +5323,7 @@ var Switch = (0, import_react77.forwardRef)(function Switch2(props, ref) {
5312
5323
  )
5313
5324
  ] }),
5314
5325
  children && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
5315
- import_react77.chakra.span,
5326
+ import_react78.chakra.span,
5316
5327
  {
5317
5328
  className: "chakra-switch__label",
5318
5329
  color: state.isDisabled ? "black.low" : "black.high",
@@ -5332,18 +5343,18 @@ Switch.defaultProps = {
5332
5343
  var switch_default = Switch;
5333
5344
 
5334
5345
  // src/components/table/index.tsx
5335
- var import_react79 = require("@chakra-ui/react");
5346
+ var import_react80 = require("@chakra-ui/react");
5336
5347
 
5337
5348
  // src/components/tabs/components/tab.tsx
5338
- var import_react80 = require("@chakra-ui/react");
5349
+ var import_react81 = require("@chakra-ui/react");
5339
5350
  var import_jsx_runtime62 = require("react/jsx-runtime");
5340
- var Tab = (0, import_react80.forwardRef)((props, ref) => {
5351
+ var Tab = (0, import_react81.forwardRef)((props, ref) => {
5341
5352
  var _a, _b;
5342
- const tabProps = (0, import_react80.useTab)({ ...props, ref });
5353
+ const tabProps = (0, import_react81.useTab)({ ...props, ref });
5343
5354
  const isSelected = !!tabProps["aria-selected"];
5344
- const styles = (0, import_react80.useMultiStyleConfig)("Tabs", tabProps);
5355
+ const styles = (0, import_react81.useMultiStyleConfig)("Tabs", tabProps);
5345
5356
  return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(
5346
- import_react80.Button,
5357
+ import_react81.Button,
5347
5358
  {
5348
5359
  "data-test-id": props["data-test-id"],
5349
5360
  p: 4,
@@ -5368,7 +5379,7 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
5368
5379
  },
5369
5380
  __css: styles.tab,
5370
5381
  ...tabProps,
5371
- children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react80.Flex, { alignItems: "center", children: [
5382
+ children: /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)(import_react81.Flex, { alignItems: "center", children: [
5372
5383
  (_a = props.leftAddon) == null ? void 0 : _a.call(props, { isSelected }),
5373
5384
  tabProps.children,
5374
5385
  (_b = props.rightAddon) == null ? void 0 : _b.call(props, { isSelected })
@@ -5379,39 +5390,39 @@ var Tab = (0, import_react80.forwardRef)((props, ref) => {
5379
5390
  var tab_default = Tab;
5380
5391
 
5381
5392
  // src/components/tabs/index.ts
5382
- var import_react81 = require("@chakra-ui/react");
5393
+ var import_react82 = require("@chakra-ui/react");
5383
5394
 
5384
5395
  // src/components/text/index.ts
5385
- var import_react82 = require("@chakra-ui/react");
5396
+ var import_react83 = require("@chakra-ui/react");
5386
5397
 
5387
5398
  // src/components/time-input/components/index.tsx
5388
- var import_react84 = require("@chakra-ui/react");
5399
+ var import_react85 = require("@chakra-ui/react");
5389
5400
  var import_internal_icon10 = require("@ctlyst.id/internal-icon");
5390
- var import_react85 = require("react");
5401
+ var import_react86 = require("react");
5391
5402
 
5392
5403
  // src/components/time-input/components/integration.tsx
5393
5404
  var import_timescape = require("@zamiru/timescape");
5394
5405
  var import_timescape2 = require("@zamiru/timescape");
5395
- var import_react83 = require("react");
5406
+ var import_react84 = require("react");
5396
5407
  var useTimescape = (options = {}) => {
5397
5408
  var _a;
5398
5409
  const { date, onChangeDate, ...rest } = options;
5399
- const [manager] = (0, import_react83.useState)(() => new import_timescape.TimescapeManager(date, rest));
5400
- const onChangeDateRef = (0, import_react83.useRef)(onChangeDate);
5401
- (0, import_react83.useLayoutEffect)(() => {
5410
+ const [manager] = (0, import_react84.useState)(() => new import_timescape.TimescapeManager(date, rest));
5411
+ const onChangeDateRef = (0, import_react84.useRef)(onChangeDate);
5412
+ (0, import_react84.useLayoutEffect)(() => {
5402
5413
  onChangeDateRef.current = onChangeDate;
5403
5414
  }, [onChangeDate]);
5404
- const [optionsState, update] = (0, import_react83.useState)(() => ({
5415
+ const [optionsState, update] = (0, import_react84.useState)(() => ({
5405
5416
  date,
5406
5417
  ...rest
5407
5418
  }));
5408
- (0, import_react83.useEffect)(() => {
5419
+ (0, import_react84.useEffect)(() => {
5409
5420
  manager.resync();
5410
5421
  return () => {
5411
5422
  manager.remove();
5412
5423
  };
5413
5424
  }, [manager]);
5414
- (0, import_react83.useEffect)(() => {
5425
+ (0, import_react84.useEffect)(() => {
5415
5426
  return manager.on("changeDate", (nextDate) => {
5416
5427
  var _a2;
5417
5428
  (_a2 = onChangeDateRef.current) == null ? void 0 : _a2.call(onChangeDateRef, nextDate);
@@ -5419,7 +5430,7 @@ var useTimescape = (options = {}) => {
5419
5430
  });
5420
5431
  }, [manager]);
5421
5432
  const timestamp = (_a = optionsState.date) == null ? void 0 : _a.getTime();
5422
- (0, import_react83.useEffect)(() => {
5433
+ (0, import_react84.useEffect)(() => {
5423
5434
  manager.date = timestamp;
5424
5435
  manager.minDate = optionsState.minDate;
5425
5436
  manager.maxDate = optionsState.maxDate;
@@ -5475,9 +5486,9 @@ var Time = class {
5475
5486
  return `${this.hours}:${this.minutes}:${this.seconds}`;
5476
5487
  }
5477
5488
  };
5478
- var InputTimeArea = (0, import_react84.forwardRef)((props, ref) => {
5489
+ var InputTimeArea = (0, import_react85.forwardRef)((props, ref) => {
5479
5490
  return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5480
- import_react84.Input,
5491
+ import_react85.Input,
5481
5492
  {
5482
5493
  _focusWithin: {
5483
5494
  bg: "neutral.300"
@@ -5495,7 +5506,7 @@ var InputTimeArea = (0, import_react84.forwardRef)((props, ref) => {
5495
5506
  }
5496
5507
  );
5497
5508
  });
5498
- var TimeInput2 = (0, import_react84.forwardRef)(
5509
+ var TimeInput2 = (0, import_react85.forwardRef)(
5499
5510
  ({
5500
5511
  config: config2,
5501
5512
  label,
@@ -5521,7 +5532,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5521
5532
  date,
5522
5533
  ...config2
5523
5534
  });
5524
- (0, import_react85.useEffect)(() => {
5535
+ (0, import_react86.useEffect)(() => {
5525
5536
  var _a, _b, _c, _d, _e, _f;
5526
5537
  timeValue.hours = (_b = (_a = options == null ? void 0 : options.date) == null ? void 0 : _a.getHours()) != null ? _b : 0;
5527
5538
  timeValue.minutes = (_d = (_c = options == null ? void 0 : options.date) == null ? void 0 : _c.getMinutes()) != null ? _d : 0;
@@ -5530,7 +5541,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5530
5541
  onChangeTime(timeValue);
5531
5542
  }
5532
5543
  }, [options.date]);
5533
- (0, import_react85.useImperativeHandle)(ref, () => ({
5544
+ (0, import_react86.useImperativeHandle)(ref, () => ({
5534
5545
  focus() {
5535
5546
  _manager.focusField("hours");
5536
5547
  }
@@ -5551,7 +5562,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5551
5562
  };
5552
5563
  };
5553
5564
  const { outlineColor, focusColor } = getProperties();
5554
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react84.Box, { ...boxProps, ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5565
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react85.Box, { ...boxProps, ...rootProps, children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5555
5566
  field_default,
5556
5567
  {
5557
5568
  isError,
@@ -5561,7 +5572,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5561
5572
  isDisabled,
5562
5573
  isSuccess,
5563
5574
  children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
5564
- import_react84.Box,
5575
+ import_react85.Box,
5565
5576
  {
5566
5577
  transition: "all 0.15s",
5567
5578
  boxShadow: "none",
@@ -5572,7 +5583,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5572
5583
  borderColor: focusColor
5573
5584
  },
5574
5585
  children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(
5575
- import_react84.InputGroup,
5586
+ import_react85.InputGroup,
5576
5587
  {
5577
5588
  borderRadius: "sm",
5578
5589
  backgroundColor: isDisabled ? "neutral.300" : "white.high",
@@ -5580,7 +5591,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5580
5591
  alignItems: "center",
5581
5592
  gap: 3,
5582
5593
  children: [
5583
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react84.Flex, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
5594
+ /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(import_react85.Flex, { gap: "1px", width: "100%", alignItems: "center", pl: 2, children: [
5584
5595
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { ...hoursProps }),
5585
5596
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: ":" }),
5586
5597
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { ...getInputProps("minutes") }),
@@ -5588,7 +5599,7 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5588
5599
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("span", { children: ":" }),
5589
5600
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(InputTimeArea, { ...getInputProps("seconds") })
5590
5601
  ] }),
5591
- options.hour12 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react84.Input, { p: 0, ...getInputProps("am/pm") })
5602
+ options.hour12 && /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react85.Input, { p: 0, ...getInputProps("am/pm") })
5592
5603
  ] }),
5593
5604
  /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_internal_icon10.Clock, { color: "neutral.400", size: 4 }),
5594
5605
  addOnRight
@@ -5603,15 +5614,15 @@ var TimeInput2 = (0, import_react84.forwardRef)(
5603
5614
  );
5604
5615
 
5605
5616
  // src/components/toast/components/toast.tsx
5606
- var import_react87 = require("@chakra-ui/react");
5617
+ var import_react88 = require("@chakra-ui/react");
5607
5618
  var import_react_toastify = require("react-toastify");
5608
5619
 
5609
5620
  // src/components/toast/components/styles.tsx
5610
- var import_react86 = require("@emotion/react");
5621
+ var import_react87 = require("@emotion/react");
5611
5622
  var import_jsx_runtime64 = require("react/jsx-runtime");
5612
5623
  var Styles2 = () => {
5613
5624
  return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
5614
- import_react86.Global,
5625
+ import_react87.Global,
5615
5626
  {
5616
5627
  styles: `
5617
5628
  .Toastify__toast-container {
@@ -5664,7 +5675,7 @@ var renderIcon = (icon, type) => {
5664
5675
  return icon;
5665
5676
  };
5666
5677
  var useToast = () => {
5667
- const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react87.useToken)("colors", [
5678
+ const [primary500, neutral500, info500, danger500, warning500, success500] = (0, import_react88.useToken)("colors", [
5668
5679
  "primary.500",
5669
5680
  "neutral.500",
5670
5681
  "info.500",
@@ -5675,13 +5686,13 @@ var useToast = () => {
5675
5686
  const content = (icon, message, link) => {
5676
5687
  return /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_jsx_runtime65.Fragment, { children: [
5677
5688
  /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(styles_default2, {}),
5678
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react87.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
5679
- /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react87.Flex, { alignItems: "center", children: [
5680
- icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react87.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5681
- /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react87.chakra.span, { noOfLines: 2, children: message })
5689
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { justifyContent: "space-between", alignItems: "center", gap: 4, children: [
5690
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsxs)(import_react88.Flex, { alignItems: "center", children: [
5691
+ icon && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { mr: 2, w: 4, h: 4, children: renderIcon(icon, "default") }),
5692
+ /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(import_react88.chakra.span, { noOfLines: 2, children: message })
5682
5693
  ] }),
5683
5694
  link && /* @__PURE__ */ (0, import_jsx_runtime65.jsx)(
5684
- import_react87.Link,
5695
+ import_react88.Link,
5685
5696
  {
5686
5697
  href: link.url,
5687
5698
  textDecoration: "underline",
@@ -5760,9 +5771,9 @@ var useToast = () => {
5760
5771
  var import_react_toastify2 = require("react-toastify");
5761
5772
 
5762
5773
  // src/components/uploader/components/uploader.tsx
5763
- var import_react88 = require("@chakra-ui/react");
5774
+ var import_react89 = require("@chakra-ui/react");
5764
5775
  var import_internal_icon11 = require("@ctlyst.id/internal-icon");
5765
- var import_react89 = require("react");
5776
+ var import_react90 = require("react");
5766
5777
  var import_react_dropzone = require("react-dropzone");
5767
5778
 
5768
5779
  // src/components/uploader/constants.ts
@@ -5791,9 +5802,48 @@ var concatList = (list) => {
5791
5802
  };
5792
5803
  var formatValidationMessage = (extension) => `Foto harus dalam format ${concatList(extension.map((ext) => `.${ext}`))}.`;
5793
5804
 
5805
+ // src/components/uploader/utils/error-code.ts
5806
+ var ErrorCode = /* @__PURE__ */ ((ErrorCode2) => {
5807
+ ErrorCode2["FileInvalidType"] = "file-invalid-type";
5808
+ ErrorCode2["FileTooLarge"] = "file-too-large";
5809
+ ErrorCode2["FileTooSmall"] = "file-too-small";
5810
+ ErrorCode2["TooManyFiles"] = "too-many-files";
5811
+ ErrorCode2["FileInvalidDimension"] = "file-invalid-dimension";
5812
+ return ErrorCode2;
5813
+ })(ErrorCode || {});
5814
+ var error_code_default = ErrorCode;
5815
+
5816
+ // src/components/uploader/utils/handler.ts
5817
+ var defaultOnHandleRejections = (fileRejection, config2, handleRejection) => {
5818
+ var _a, _b, _c, _d;
5819
+ const { file, errors: errors3 } = fileRejection[0];
5820
+ switch (errors3[0].code) {
5821
+ case error_code_default.FileInvalidType: {
5822
+ const fileFormat = file.name.split(".").pop();
5823
+ if (!(config2 == null ? void 0 : config2.acceptFormat)) return;
5824
+ if (!((_a = config2 == null ? void 0 : config2.acceptFormat) == null ? void 0 : _a.validate.includes(fileFormat))) {
5825
+ handleRejection(
5826
+ (_d = (_b = config2.acceptFormat) == null ? void 0 : _b.message) != null ? _d : formatValidationMessage((_c = config2.acceptFormat) == null ? void 0 : _c.validate),
5827
+ file,
5828
+ null
5829
+ );
5830
+ }
5831
+ break;
5832
+ }
5833
+ case error_code_default.FileTooLarge: {
5834
+ if (config2.maxFileSize) {
5835
+ handleRejection(config2.maxFileSize.message, file, null);
5836
+ }
5837
+ break;
5838
+ }
5839
+ default:
5840
+ handleRejection(errors3[0].message, file, null);
5841
+ break;
5842
+ }
5843
+ };
5844
+
5794
5845
  // src/components/uploader/components/uploader.tsx
5795
5846
  var import_jsx_runtime66 = require("react/jsx-runtime");
5796
- var import_react90 = require("react");
5797
5847
  var Uploader = ({
5798
5848
  onHandleUploadFile,
5799
5849
  onHandleRejections,
@@ -5820,12 +5870,12 @@ var Uploader = ({
5820
5870
  errorText,
5821
5871
  isShowReupload = true,
5822
5872
  size: size2 = "lg",
5873
+ validatorExt,
5823
5874
  ...props
5824
5875
  }) => {
5825
- const inputRef = (0, import_react89.useRef)(null);
5826
- const [filePreview, setFilePreview] = (0, import_react89.useState)();
5876
+ const [filePreview, setFilePreview] = (0, import_react90.useState)();
5827
5877
  const toast2 = useToast();
5828
- const handleRejection = (0, import_react89.useCallback)(
5878
+ const handleRejection = (0, import_react90.useCallback)(
5829
5879
  (message, file, image) => {
5830
5880
  if (onHandleRejections) {
5831
5881
  onHandleRejections(file, image);
@@ -5837,33 +5887,21 @@ var Uploader = ({
5837
5887
  // eslint-disable-next-line react-hooks/exhaustive-deps
5838
5888
  [onHandleRejections]
5839
5889
  );
5840
- const onDrop = (0, import_react89.useCallback)(
5890
+ const onDropAccepted = (0, import_react90.useCallback)(
5841
5891
  (files) => {
5842
- var _a;
5843
5892
  const file = files[0];
5844
- const fileFormat = file.name.split(".").pop();
5845
- if (!(acceptFormat == null ? void 0 : acceptFormat.validate.includes(fileFormat))) {
5846
- return handleRejection((_a = acceptFormat.message) != null ? _a : formatValidationMessage(acceptFormat.validate), file, null);
5847
- }
5848
5893
  const imageUrl = URL.createObjectURL(file);
5849
5894
  const img = new Image();
5850
5895
  img.src = imageUrl;
5851
5896
  img.onload = () => {
5852
- var _a2;
5853
5897
  const imgWidth = img.width;
5854
5898
  const imgheight = img.height;
5855
5899
  if (customValidation && customValidation(file, img) !== null) {
5856
5900
  return handleRejection(customValidation(file, img), file, img);
5857
5901
  }
5858
- if (!acceptFormat.validate.includes(fileFormat)) {
5859
- return handleRejection((_a2 = acceptFormat.message) != null ? _a2 : formatValidationMessage(acceptFormat.validate), file, img);
5860
- }
5861
5902
  if (dimension && (imgWidth !== dimension.validate[0] || imgheight !== dimension.validate[1])) {
5862
5903
  return handleRejection(dimension.message, file, img);
5863
5904
  }
5864
- if (maxFileSize && file.size > maxFileSize.validate) {
5865
- return handleRejection(maxFileSize.message, file, null);
5866
- }
5867
5905
  onHandleUploadFile == null ? void 0 : onHandleUploadFile(file, img);
5868
5906
  setFilePreview(URL.createObjectURL(file));
5869
5907
  return null;
@@ -5872,35 +5910,60 @@ var Uploader = ({
5872
5910
  },
5873
5911
  [acceptFormat, customValidation, dimension, handleRejection, maxFileSize, onHandleUploadFile]
5874
5912
  );
5875
- const { getRootProps, getInputProps, isDragActive, acceptedFiles } = (0, import_react_dropzone.useDropzone)({
5876
- onDrop,
5913
+ const onDropRejected = (0, import_react90.useCallback)((fileRejections) => {
5914
+ defaultOnHandleRejections(fileRejections, { acceptFormat, maxFileSize }, handleRejection);
5915
+ }, []);
5916
+ const validator = (0, import_react90.useCallback)(
5917
+ (file) => {
5918
+ if (validatorExt) {
5919
+ const result = [];
5920
+ validatorExt.forEach((validatorFn) => {
5921
+ const error = validatorFn(file);
5922
+ if (Array.isArray(error)) {
5923
+ result.push(...error);
5924
+ } else if (error) result.push(error);
5925
+ });
5926
+ return result;
5927
+ }
5928
+ return null;
5929
+ },
5930
+ [validatorExt]
5931
+ );
5932
+ const { getRootProps, getInputProps, isDragActive, acceptedFiles, open } = (0, import_react_dropzone.useDropzone)({
5933
+ onDropAccepted,
5934
+ onDropRejected,
5935
+ accept: {
5936
+ "image/*": [...acceptFormat.validate]
5937
+ },
5877
5938
  maxFiles: 1,
5939
+ maxSize: maxFileSize == null ? void 0 : maxFileSize.validate,
5878
5940
  noClick: isDisabled,
5879
- noDrag: isDisabled
5941
+ noDrag: isDisabled,
5942
+ validator
5880
5943
  });
5881
5944
  const renderHelperText = () => {
5882
5945
  if (Array.isArray(helperText)) {
5883
5946
  return /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5884
- import_react88.UnorderedList,
5947
+ import_react89.UnorderedList,
5885
5948
  {
5886
5949
  pl: 2,
5887
5950
  fontSize: 12,
5888
5951
  color: "black.medium",
5889
5952
  "data-test-id": "CT_component_base-image-uploader_helperText",
5890
- children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.ListItem, { children: text2 }, text2))
5953
+ children: helperText.map((text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.ListItem, { children: text2 }, text2))
5891
5954
  }
5892
5955
  );
5893
5956
  }
5894
5957
  return helperText;
5895
5958
  };
5896
- const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Box, { mb: 2, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Text, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
5959
+ const renderErrorText = (text2) => /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Box, { mb: 2, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Text, { textStyle: "text.xs", color: "danger.500", children: text2 }) });
5897
5960
  const handleRemove = (e) => {
5898
5961
  e.stopPropagation();
5899
5962
  setFilePreview(void 0);
5900
5963
  onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
5901
5964
  acceptedFiles.pop();
5902
5965
  };
5903
- (0, import_react89.useEffect)(() => {
5966
+ (0, import_react90.useEffect)(() => {
5904
5967
  if (value) {
5905
5968
  if (typeof value === "string") {
5906
5969
  setFilePreview(value);
@@ -5916,16 +5979,16 @@ var Uploader = ({
5916
5979
  const color = isDisabled ? "neutral.500" : "primary.500";
5917
5980
  const containerHeight = !isSmall ? "160px" : "120px";
5918
5981
  const cursorType = filePreview ? "initial" : "pointer";
5919
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react88.FormControl, { isRequired, children: [
5982
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.FormControl, { isRequired, children: [
5920
5983
  label && typeof label === "string" ? (
5921
5984
  // eslint-disable-next-line react/jsx-no-useless-fragment
5922
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react88.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, {}), fontSize: "text.sm", children: [
5923
- isRequired && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.RequiredIndicator, { mr: 1, ml: 0 }),
5985
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.FormLabel, { requiredIndicator: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, {}), fontSize: "text.sm", children: [
5986
+ isRequired && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.RequiredIndicator, { mr: 1, ml: 0 }),
5924
5987
  label
5925
5988
  ] })
5926
5989
  ) : label,
5927
5990
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5928
- import_react88.Flex,
5991
+ import_react89.Flex,
5929
5992
  {
5930
5993
  minH: containerHeight,
5931
5994
  maxW: !isSmall ? "full" : "120px",
@@ -5942,8 +6005,8 @@ var Uploader = ({
5942
6005
  ...props,
5943
6006
  ...getRootProps(),
5944
6007
  children: [
5945
- filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5946
- import_react88.Button,
6008
+ filePreview && isShowCloseButton && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Box, { position: "absolute", top: 1, right: 1, children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6009
+ import_react89.Button,
5947
6010
  {
5948
6011
  "data-test-id": `CT_component_base-image-uploader_remove-image${testId ? `_${testId}` : ""}`,
5949
6012
  "aria-label": "remove-image",
@@ -5960,15 +6023,15 @@ var Uploader = ({
5960
6023
  children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon11.Close, { size: 3, color: "white" })
5961
6024
  }
5962
6025
  ) }),
5963
- filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5964
- import_react88.Flex,
6026
+ filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Box, { w: "full", children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6027
+ import_react89.Flex,
5965
6028
  {
5966
6029
  position: "relative",
5967
6030
  "data-test-id": `CT_component_base-image-uploader_image-preview${testId ? `_${testId}` : ""}`,
5968
6031
  justify: "center",
5969
6032
  align: "center",
5970
6033
  children: /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5971
- import_react88.Image,
6034
+ import_react89.Image,
5972
6035
  {
5973
6036
  h: size2 === "lg" ? "120" : "100",
5974
6037
  src: filePreview,
@@ -5978,11 +6041,11 @@ var Uploader = ({
5978
6041
  )
5979
6042
  }
5980
6043
  ) }),
5981
- !filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react88.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
6044
+ !filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_jsx_runtime66.Fragment, { children: isDragActive ? /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Text, { children: dragActiveText != null ? dragActiveText : messages.dragActive }) : /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.Flex, { gap: 2, flexDirection: "column", alignItems: "center", color: isError ? "danger.500" : color, children: [
5982
6045
  size2 === "sm" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_internal_icon11.Plus, { size: 6, color }),
5983
- /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react88.Box, { children: [
6046
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react89.Box, { children: [
5984
6047
  !filePreview && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
5985
- import_react88.Heading,
6048
+ import_react89.Heading,
5986
6049
  {
5987
6050
  fontWeight: "400",
5988
6051
  fontSize: size2 === "sm" ? "text.md" : "text.xl",
@@ -5991,33 +6054,27 @@ var Uploader = ({
5991
6054
  children: uploadFileText && size2 === "lg" ? uploadFileText : "Upload"
5992
6055
  }
5993
6056
  ),
5994
- size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Text, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
6057
+ size2 === "lg" && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Text, { fontSize: 12, children: filePreview ? dragReplaceText != null ? dragReplaceText : messages.dragReplace : dragInActiveText != null ? dragInActiveText : messages.dragInActive })
5995
6058
  ] })
5996
6059
  ] }) })
5997
6060
  ]
5998
6061
  }
5999
6062
  ),
6000
- /* @__PURE__ */ (0, import_react90.createElement)(
6063
+ /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6001
6064
  "input",
6002
6065
  {
6003
6066
  ...getInputProps(),
6004
- key: Math.random(),
6005
- ref: inputRef,
6006
- accept: "image/*",
6007
6067
  "data-test-id": `CT_component_base-image-uploader_change-img${testId ? `_${testId}` : ""}`
6008
6068
  }
6009
6069
  ),
6010
- filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react88.Flex, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6011
- import_react88.Button,
6070
+ filePreview && !isSmall && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(import_react89.Flex, { align: "center", justify: "center", my: 2, children: isShowReupload && /* @__PURE__ */ (0, import_jsx_runtime66.jsx)(
6071
+ import_react89.Button,
6012
6072
  {
6013
6073
  "data-test-id": `CT_component_base-image-uploader_change-img-btn${testId ? `_${testId}` : ""}`,
6014
6074
  type: "button",
6015
6075
  size: "sm",
6016
6076
  variant: "outline",
6017
- onClick: () => {
6018
- var _a;
6019
- (_a = inputRef == null ? void 0 : inputRef.current) == null ? void 0 : _a.click();
6020
- },
6077
+ onClick: open,
6021
6078
  children: "Ubah Foto"
6022
6079
  }
6023
6080
  ) }),
@@ -6027,6 +6084,36 @@ var Uploader = ({
6027
6084
  };
6028
6085
  var uploader_default = Uploader;
6029
6086
 
6087
+ // src/components/uploader/utils/is-ratio-equal.ts
6088
+ var isRatioEqual = (base, img) => {
6089
+ const baseRatio = (base.width / base.height).toFixed(2);
6090
+ const imgRatio = (img.width / img.height).toFixed(2);
6091
+ return baseRatio === imgRatio;
6092
+ };
6093
+
6094
+ // src/components/uploader/components/validator.ts
6095
+ var dimensionValidator = (dimension, message) => {
6096
+ return (file) => {
6097
+ const imageUrl = URL.createObjectURL(file);
6098
+ const img = new Image();
6099
+ img.src = imageUrl;
6100
+ img.onload = () => {
6101
+ };
6102
+ const isRatioValid = isRatioEqual(
6103
+ { width: dimension[0], height: dimension[1] },
6104
+ { width: img.width, height: img.height }
6105
+ );
6106
+ console.log("log", isRatioValid);
6107
+ if (isRatioValid) {
6108
+ return null;
6109
+ }
6110
+ return {
6111
+ code: error_code_default.FileInvalidDimension,
6112
+ message: message != null ? message : "File has invalid dimension"
6113
+ };
6114
+ };
6115
+ };
6116
+
6030
6117
  // src/components/index.ts
6031
6118
  var import_react91 = require("@chakra-ui/react");
6032
6119
 
@@ -7816,6 +7903,7 @@ var import_react104 = require("@chakra-ui/react");
7816
7903
  DrawerProps,
7817
7904
  DropdownIndicator,
7818
7905
  EmptyState,
7906
+ ErrorCode,
7819
7907
  Fade,
7820
7908
  FadeProps,
7821
7909
  Field,
@@ -8039,12 +8127,15 @@ var import_react104 = require("@chakra-ui/react");
8039
8127
  WrapProps,
8040
8128
  XMSLogo,
8041
8129
  createExtendTheme,
8130
+ defaultOnHandleRejections,
8131
+ dimensionValidator,
8042
8132
  extendTheme,
8043
8133
  forwardRef,
8044
8134
  getSelectAllCheckboxState,
8045
8135
  getTheme,
8046
8136
  id,
8047
8137
  isCellDisabled,
8138
+ isRatioEqual,
8048
8139
  selectStyles,
8049
8140
  theme,
8050
8141
  themeSelect,