@ctlyst.id/internal-ui 5.6.5 → 5.6.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -341,9 +341,27 @@ var badge_default = Badge;
341
341
  // src/components/breadcrumb/components/bread-crumb.tsx
342
342
  import { Box as Box4, Breadcrumb, BreadcrumbItem, BreadcrumbLink, Flex, IconButton, Text } from "@chakra-ui/react";
343
343
  import { ChevronLeft, ChevronsRight, Home } from "@ctlyst.id/internal-icon";
344
+ import { useEffect, useState } from "react";
344
345
  import { Fragment, jsx as jsx14, jsxs } from "react/jsx-runtime";
345
- var BreadCrumb = (props) => {
346
- const { title, children, parents, className, disableHome, spacing: spacing2 = 2, backButton, homeButton, hideTitle } = props;
346
+ var BreadCrumb = ({
347
+ title,
348
+ children,
349
+ parents,
350
+ className,
351
+ disableHome,
352
+ spacing: spacing2 = 2,
353
+ backButton,
354
+ homeButton,
355
+ hideTitle,
356
+ as
357
+ }) => {
358
+ const [hasPreviousPage, setHasPreviousPage] = useState(false);
359
+ useEffect(() => {
360
+ if (window === void 0) return;
361
+ if (window.history.length > 1) {
362
+ setHasPreviousPage(true);
363
+ }
364
+ }, []);
347
365
  return /* @__PURE__ */ jsxs(
348
366
  Box4,
349
367
  {
@@ -367,7 +385,8 @@ var BreadCrumb = (props) => {
367
385
  minW: "9",
368
386
  bg: "white",
369
387
  variant: "ghost",
370
- "aria-label": "Edit",
388
+ "aria-label": "Back",
389
+ isDisabled: !hasPreviousPage,
371
390
  icon: /* @__PURE__ */ jsx14(ChevronLeft, { size: 5 }),
372
391
  onClick: backButton
373
392
  }
@@ -385,33 +404,19 @@ var BreadCrumb = (props) => {
385
404
  pr: "4",
386
405
  spacing: spacing2,
387
406
  children: [
388
- /* @__PURE__ */ jsx14(BreadcrumbItem, { children: /* @__PURE__ */ jsx14(
407
+ /* @__PURE__ */ jsx14(BreadcrumbItem, { children: disableHome ? /* @__PURE__ */ jsx14(BreadcrumbLink, { cursor: "default", children: /* @__PURE__ */ jsx14(Box4, { boxSize: "3.5", children: /* @__PURE__ */ jsx14(Home, { size: 3.5, color: "neutral.600" }) }) }) : /* @__PURE__ */ jsx14(BreadcrumbLink, { "data-test-id": "", as, href: "/", onClick: homeButton, children: /* @__PURE__ */ jsx14(Box4, { boxSize: "3.5", children: /* @__PURE__ */ jsx14(Home, { size: 3.5, color: "primary.500" }) }) }) }),
408
+ parents == null ? void 0 : parents.map((parent) => /* @__PURE__ */ jsx14(BreadcrumbItem, { children: parent.disable || !parent.link ? /* @__PURE__ */ jsx14(BreadcrumbLink, { cursor: "default", children: /* @__PURE__ */ jsx14(Text, { color: "neutral.600", textStyle: "text.sm", children: parent.name }) }) : /* @__PURE__ */ jsx14(
389
409
  BreadcrumbLink,
390
410
  {
391
411
  "data-test-id": "",
392
- alignItems: "center",
393
- href: homeButton || disableHome ? void 0 : "/",
394
- style: { ...disableHome && { cursor: "default" } },
395
- onClick: homeButton,
396
- children: /* @__PURE__ */ jsx14(Box4, { boxSize: "3.5", children: /* @__PURE__ */ jsx14(Home, { size: 3.5, color: "primary.500" }) })
397
- }
398
- ) }),
399
- parents == null ? void 0 : parents.map((val) => /* @__PURE__ */ jsx14(BreadcrumbItem, { children: /* @__PURE__ */ jsx14(
400
- BreadcrumbLink,
401
- {
402
- "data-test-id": "",
403
- href: !val.disable && val.link ? val.link : void 0,
404
- onClick: val.onClick,
405
- style: {
406
- ...val.disable && {
407
- cursor: "default"
408
- }
409
- },
412
+ as,
413
+ href: parent.link,
414
+ onClick: parent.onClick,
410
415
  _hover: { textDecoration: "none" },
411
- children: /* @__PURE__ */ jsx14(Text, { color: val.disable ? "neutral.600" : "primary.500", textStyle: "text.sm", children: val.name })
416
+ children: /* @__PURE__ */ jsx14(Text, { color: "primary.500", textStyle: "text.sm", children: parent.name })
412
417
  }
413
- ) }, val.name)),
414
- /* @__PURE__ */ jsx14(BreadcrumbItem, { children: /* @__PURE__ */ jsx14(BreadcrumbLink, { _hover: { textDecor: "none", cursor: "default" }, children: /* @__PURE__ */ jsx14(Text, { color: "neutral.600", textStyle: "text.sm", children: title }) }) })
418
+ ) }, parent.name)),
419
+ /* @__PURE__ */ jsx14(BreadcrumbItem, { isCurrentPage: true, children: /* @__PURE__ */ jsx14(BreadcrumbLink, { cursor: "default", children: /* @__PURE__ */ jsx14(Text, { color: "neutral.600", textStyle: "text.sm", children: title }) }) })
415
420
  ]
416
421
  }
417
422
  )
@@ -425,7 +430,7 @@ BreadCrumb.defaultProps = {
425
430
  children: void 0,
426
431
  parents: void 0,
427
432
  className: void 0,
428
- disableHome: void 0,
433
+ disableHome: false,
429
434
  spacing: 2,
430
435
  backButton: void 0,
431
436
  hideTitle: false
@@ -682,9 +687,9 @@ import { InputRightElement } from "@chakra-ui/react";
682
687
  // src/components/form/components/input-field.tsx
683
688
  import { Box as Box8, Input as ChakraInput, InputGroup } from "@chakra-ui/react";
684
689
  import { Close as Close2, Eye as Eye2, EyeOff } from "@ctlyst.id/internal-icon";
685
- import React2, { useMemo, useState } from "react";
690
+ import React3, { useMemo, useState as useState2 } from "react";
686
691
  import { jsx as jsx21, jsxs as jsxs5 } from "react/jsx-runtime";
687
- var InputField = React2.forwardRef((props, ref) => {
692
+ var InputField = React3.forwardRef((props, ref) => {
688
693
  const {
689
694
  value,
690
695
  type,
@@ -717,7 +722,7 @@ var InputField = React2.forwardRef((props, ref) => {
717
722
  focusColor: focusColor2
718
723
  };
719
724
  };
720
- const [isShowPassword, setIsShowPassword] = useState(false);
725
+ const [isShowPassword, setIsShowPassword] = useState2(false);
721
726
  const inputType = useMemo(() => {
722
727
  return type === "password" && isShowPassword ? "text" : type;
723
728
  }, [isShowPassword, type]);
@@ -846,9 +851,9 @@ var input_field_default = InputField;
846
851
 
847
852
  // src/components/form/components/textarea.tsx
848
853
  import { Box as Box9, Textarea as ChakraTextarea } from "@chakra-ui/react";
849
- import React3 from "react";
854
+ import React4 from "react";
850
855
  import { jsx as jsx22, jsxs as jsxs6 } from "react/jsx-runtime";
851
- var TextareaField = React3.forwardRef((props, ref) => {
856
+ var TextareaField = React4.forwardRef((props, ref) => {
852
857
  const { value, isLoading, ...inputProps } = props;
853
858
  return /* @__PURE__ */ jsx22(field_default, { ...inputProps, children: /* @__PURE__ */ jsxs6(Box9, { position: "relative", children: [
854
859
  /* @__PURE__ */ jsx22(ChakraTextarea, { ref, value, ...inputProps }),
@@ -968,7 +973,7 @@ import { ChevronDownIcon, ChevronUpIcon, UpDownIcon } from "@chakra-ui/icons";
968
973
  import { Box as Box11, Flex as Flex2, keyframes, Skeleton as Skeleton2, Table, Tbody, Td, Th, Thead, Tr, useColorModeValue } from "@chakra-ui/react";
969
974
  import { css } from "@emotion/react";
970
975
  import { flexRender, getCoreRowModel, getSortedRowModel, useReactTable } from "@tanstack/react-table";
971
- import * as React5 from "react";
976
+ import * as React6 from "react";
972
977
  import { useCallback as useCallback3 } from "react";
973
978
 
974
979
  // src/hooks/use-drag-threshold/use-drag-or-click.ts
@@ -1127,17 +1132,17 @@ var useDataTable = ({
1127
1132
  onRowSelectionChange,
1128
1133
  columnPinning
1129
1134
  }) => {
1130
- const [isFirstLoad, setIsFirstLoad] = React5.useState(true);
1131
- const [sorting, setSorting] = React5.useState(sortingState != null ? sortingState : []);
1132
- const dataColumns = React5.useMemo(() => columns, [columns]);
1133
- const action = React5.useRef("");
1135
+ const [isFirstLoad, setIsFirstLoad] = React6.useState(true);
1136
+ const [sorting, setSorting] = React6.useState(sortingState != null ? sortingState : []);
1137
+ const dataColumns = React6.useMemo(() => columns, [columns]);
1138
+ const action = React6.useRef("");
1134
1139
  const throttleRowClick = useCallback3(
1135
1140
  throttle((row) => {
1136
1141
  row.toggleSelected();
1137
1142
  }, 250),
1138
1143
  []
1139
1144
  );
1140
- const checkboxColumn = React5.useMemo(
1145
+ const checkboxColumn = React6.useMemo(
1141
1146
  () => [
1142
1147
  {
1143
1148
  id: "select",
@@ -1212,22 +1217,22 @@ var useDataTable = ({
1212
1217
  });
1213
1218
  const { getSelectedRowModel, toggleAllRowsSelected } = table;
1214
1219
  const { flatRows } = getSelectedRowModel();
1215
- React5.useEffect(() => {
1220
+ React6.useEffect(() => {
1216
1221
  const rowData = flatRows.map((row) => row.original);
1217
1222
  if (onSelectedRow) {
1218
1223
  onSelectedRow(rowData, action.current);
1219
1224
  }
1220
1225
  }, [flatRows]);
1221
- React5.useEffect(() => {
1226
+ React6.useEffect(() => {
1222
1227
  action.current = "newData";
1223
1228
  table.setRowSelection(selectedRow != null ? selectedRow : {});
1224
1229
  }, [selectedRow]);
1225
- React5.useEffect(() => {
1230
+ React6.useEffect(() => {
1226
1231
  if (onSort && !isFirstLoad) {
1227
1232
  onSort(sorting);
1228
1233
  }
1229
1234
  }, [sorting]);
1230
- React5.useEffect(() => {
1235
+ React6.useEffect(() => {
1231
1236
  setIsFirstLoad(false);
1232
1237
  }, []);
1233
1238
  return {
@@ -1239,7 +1244,7 @@ var useDataTable = ({
1239
1244
  selectedRow
1240
1245
  };
1241
1246
  };
1242
- var DataTable = React5.forwardRef((props, ref) => {
1247
+ var DataTable = React6.forwardRef((props, ref) => {
1243
1248
  var _a, _b, _c, _d, _e;
1244
1249
  const {
1245
1250
  isLoading,
@@ -1257,8 +1262,8 @@ var DataTable = React5.forwardRef((props, ref) => {
1257
1262
  } = props;
1258
1263
  const { clickOrDragged, getDragOrClickProps } = useDragOrClick();
1259
1264
  const { table, action, throttleRowClick, toggleAllRowsSelected, generateColumn, selectedRow } = useDataTable(props);
1260
- const refTable = React5.useRef(null);
1261
- React5.useImperativeHandle(ref, () => ({
1265
+ const refTable = React6.useRef(null);
1266
+ React6.useImperativeHandle(ref, () => ({
1262
1267
  toggleAllRowsSelected
1263
1268
  }));
1264
1269
  const tableResizeHandler = () => {
@@ -1278,7 +1283,7 @@ var DataTable = React5.forwardRef((props, ref) => {
1278
1283
  };
1279
1284
  };
1280
1285
  let lastPinnedColumn = 0;
1281
- React5.useEffect(() => {
1286
+ React6.useEffect(() => {
1282
1287
  var _a2;
1283
1288
  (_a2 = refTable.current) == null ? void 0 : _a2.addEventListener("scroll", (s) => {
1284
1289
  var _a3, _b2, _c2, _d2;
@@ -1511,9 +1516,9 @@ var DataTable = React5.forwardRef((props, ref) => {
1511
1516
  var data_table_default = DataTable;
1512
1517
 
1513
1518
  // src/components/data-table/hook/use-select-table.ts
1514
- import React6 from "react";
1519
+ import React7 from "react";
1515
1520
  var useSelectTable = (intialRowSelection) => {
1516
- const [rowSelection, onRowSelectionChange] = React6.useState(intialRowSelection != null ? intialRowSelection : {});
1521
+ const [rowSelection, onRowSelectionChange] = React7.useState(intialRowSelection != null ? intialRowSelection : {});
1517
1522
  return {
1518
1523
  rowSelection,
1519
1524
  onRowSelectionChange
@@ -2901,10 +2906,10 @@ var styles_default = Styles;
2901
2906
 
2902
2907
  // src/components/datepicker/components/time-input.tsx
2903
2908
  import { Flex as Flex3, Input, InputGroup as InputGroup3, InputRightAddon as InputRightAddon3, Text as Text4 } from "@chakra-ui/react";
2904
- import React7 from "react";
2909
+ import React8 from "react";
2905
2910
  import { jsx as jsx26, jsxs as jsxs9 } from "react/jsx-runtime";
2906
2911
  var TimeInput = ({ value, onChange, label, rightAddon }) => {
2907
- const [time, setTime] = React7.useState(value || "00:00");
2912
+ const [time, setTime] = React8.useState(value || "00:00");
2908
2913
  const handleChange = (e) => {
2909
2914
  var _a, _b;
2910
2915
  setTime(((_a = e.target) == null ? void 0 : _a.value) || "00:00");
@@ -3064,10 +3069,10 @@ var datepicker_default = Datepicker;
3064
3069
  // src/components/datepicker/components/datepicker-month/datepicker-month.tsx
3065
3070
  import { Box as Box12, Input as Input2 } from "@chakra-ui/react";
3066
3071
  import { css as css2 } from "@emotion/react";
3067
- import React8 from "react";
3072
+ import React9 from "react";
3068
3073
  import { jsx as jsx28 } from "react/jsx-runtime";
3069
3074
  var DatePickerMonth = ({ onChange, min, max, ...props }) => {
3070
- const [date, setDate] = React8.useState(null);
3075
+ const [date, setDate] = React9.useState(null);
3071
3076
  return /* @__PURE__ */ jsx28(
3072
3077
  Box12,
3073
3078
  {
@@ -3123,7 +3128,7 @@ var datepicker_month_default = DatePickerMonth;
3123
3128
  // src/components/datepicker/components/datepicker-month/multi-datepicker-month.tsx
3124
3129
  import { Box as Box13 } from "@chakra-ui/react";
3125
3130
  import styled from "@emotion/styled";
3126
- import React9 from "react";
3131
+ import React10 from "react";
3127
3132
  import { jsx as jsx29, jsxs as jsxs11 } from "react/jsx-runtime";
3128
3133
  var MultiDateWrapper = styled(Box13)`
3129
3134
  display: flex;
@@ -3140,7 +3145,7 @@ var MultiDatePickerMonth = ({
3140
3145
  min = "2020-01-01",
3141
3146
  max = "2020-12-31"
3142
3147
  }) => {
3143
- const [date, setDate] = React9.useState([null, null]);
3148
+ const [date, setDate] = React10.useState([null, null]);
3144
3149
  return /* @__PURE__ */ jsxs11(MultiDateWrapper, { isError, children: [
3145
3150
  /* @__PURE__ */ jsx29(
3146
3151
  datepicker_month_default,
@@ -4241,7 +4246,7 @@ var pagination_detail_default = PaginationDetail;
4241
4246
 
4242
4247
  // src/components/pagination/components/pagination-filter.tsx
4243
4248
  import { Box as Box24, Select, Text as Text12, useColorModeValue as useColorModeValue6 } from "@chakra-ui/react";
4244
- import * as React10 from "react";
4249
+ import * as React11 from "react";
4245
4250
  import { FiChevronDown } from "react-icons/fi";
4246
4251
  import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
4247
4252
  var PaginationFilter = ({
@@ -4251,7 +4256,7 @@ var PaginationFilter = ({
4251
4256
  onChange,
4252
4257
  ...rest
4253
4258
  }) => {
4254
- const [value, setValue] = React10.useState(limit);
4259
+ const [value, setValue] = React11.useState(limit);
4255
4260
  return /* @__PURE__ */ jsxs22(Box24, { display: "flex", flexDirection: "row", alignItems: "center", children: [
4256
4261
  /* @__PURE__ */ jsx49(Text12, { fontSize: "text.sm", lineHeight: 18, color: useColorModeValue6("neutral.900", "white"), ...rest, children: label }),
4257
4262
  /* @__PURE__ */ jsx49(
@@ -4303,12 +4308,12 @@ import {
4303
4308
 
4304
4309
  // src/components/popover/PopoverContent.tsx
4305
4310
  import { forwardRef as forwardRef10, PopoverArrow as PopoverArrow3, PopoverContent as ChakraPopoverContent } from "@chakra-ui/react";
4306
- import React11 from "react";
4311
+ import React12 from "react";
4307
4312
  import { jsx as jsx50 } from "react/jsx-runtime";
4308
4313
  var PopoverContent5 = forwardRef10((props, ref) => {
4309
4314
  const { children, ...rest } = props;
4310
- const hasArrow = React11.Children.toArray(children).some((child) => {
4311
- return React11.isValidElement(child) && child.type === PopoverArrow3;
4315
+ const hasArrow = React12.Children.toArray(children).some((child) => {
4316
+ return React12.isValidElement(child) && child.type === PopoverArrow3;
4312
4317
  });
4313
4318
  return /* @__PURE__ */ jsx50(ChakraPopoverContent, { ...!hasArrow ? { mt: -1 } : {}, ...rest, ref, children });
4314
4319
  });
@@ -5584,36 +5589,36 @@ import { Code, CodeProps, Heading, HeadingProps, Link as Link5, LinkProps, Text
5584
5589
  // src/components/time-input/components/index.tsx
5585
5590
  import { Box as Box29, Flex as Flex17, forwardRef as forwardRef13, Input as Input3, InputGroup as InputGroup4 } from "@chakra-ui/react";
5586
5591
  import { Clock } from "@ctlyst.id/internal-icon";
5587
- import { useEffect as useEffect3, useImperativeHandle as useImperativeHandle2 } from "react";
5592
+ import { useEffect as useEffect4, useImperativeHandle as useImperativeHandle2 } from "react";
5588
5593
 
5589
5594
  // src/components/time-input/components/integration.tsx
5590
5595
  import { $NOW, TimescapeManager } from "@zamiru/timescape";
5591
5596
  import { marry } from "@zamiru/timescape";
5592
5597
  import {
5593
- useEffect as useEffect2,
5598
+ useEffect as useEffect3,
5594
5599
  useLayoutEffect,
5595
5600
  useRef as useRef4,
5596
- useState as useState4
5601
+ useState as useState5
5597
5602
  } from "react";
5598
5603
  var useTimescape = (options = {}) => {
5599
5604
  var _a;
5600
5605
  const { date, onChangeDate, ...rest } = options;
5601
- const [manager] = useState4(() => new TimescapeManager(date, rest));
5606
+ const [manager] = useState5(() => new TimescapeManager(date, rest));
5602
5607
  const onChangeDateRef = useRef4(onChangeDate);
5603
5608
  useLayoutEffect(() => {
5604
5609
  onChangeDateRef.current = onChangeDate;
5605
5610
  }, [onChangeDate]);
5606
- const [optionsState, update] = useState4(() => ({
5611
+ const [optionsState, update] = useState5(() => ({
5607
5612
  date,
5608
5613
  ...rest
5609
5614
  }));
5610
- useEffect2(() => {
5615
+ useEffect3(() => {
5611
5616
  manager.resync();
5612
5617
  return () => {
5613
5618
  manager.remove();
5614
5619
  };
5615
5620
  }, [manager]);
5616
- useEffect2(() => {
5621
+ useEffect3(() => {
5617
5622
  return manager.on("changeDate", (nextDate) => {
5618
5623
  var _a2;
5619
5624
  (_a2 = onChangeDateRef.current) == null ? void 0 : _a2.call(onChangeDateRef, nextDate);
@@ -5621,7 +5626,7 @@ var useTimescape = (options = {}) => {
5621
5626
  });
5622
5627
  }, [manager]);
5623
5628
  const timestamp = (_a = optionsState.date) == null ? void 0 : _a.getTime();
5624
- useEffect2(() => {
5629
+ useEffect3(() => {
5625
5630
  manager.date = timestamp;
5626
5631
  manager.minDate = optionsState.minDate;
5627
5632
  manager.maxDate = optionsState.maxDate;
@@ -5734,7 +5739,7 @@ var TimeInput2 = forwardRef13(
5734
5739
  date,
5735
5740
  ...config2
5736
5741
  });
5737
- useEffect3(() => {
5742
+ useEffect4(() => {
5738
5743
  var _a, _b, _c, _d, _e, _f;
5739
5744
  timeValue.hours = (_b = (_a = options == null ? void 0 : options.date) == null ? void 0 : _a.getHours()) != null ? _b : 0;
5740
5745
  timeValue.minutes = (_d = (_c = options == null ? void 0 : options.date) == null ? void 0 : _c.getMinutes()) != null ? _d : 0;
@@ -5997,7 +6002,7 @@ import {
5997
6002
  UnorderedList as UnorderedList2
5998
6003
  } from "@chakra-ui/react";
5999
6004
  import { Close as X, Plus } from "@ctlyst.id/internal-icon";
6000
- import { useCallback as useCallback4, useEffect as useEffect4, useState as useState5 } from "react";
6005
+ import { useCallback as useCallback4, useEffect as useEffect5, useState as useState6 } from "react";
6001
6006
  import { useDropzone } from "react-dropzone";
6002
6007
 
6003
6008
  // src/components/uploader/constants.ts
@@ -6116,10 +6121,10 @@ var Uploader = ({
6116
6121
  customErrorRejection,
6117
6122
  ...props
6118
6123
  }) => {
6119
- const [filePreview, setFilePreview] = useState5();
6120
- const [isError, setIsError] = useState5(propIsError);
6121
- const [errorText, setErrorText] = useState5(propErrorText);
6122
- useEffect4(() => {
6124
+ const [filePreview, setFilePreview] = useState6();
6125
+ const [isError, setIsError] = useState6(propIsError);
6126
+ const [errorText, setErrorText] = useState6(propErrorText);
6127
+ useEffect5(() => {
6123
6128
  setIsError(propIsError);
6124
6129
  setErrorText(propErrorText);
6125
6130
  }, [propIsError, propErrorText]);
@@ -6237,7 +6242,7 @@ var Uploader = ({
6237
6242
  onHandleUploadFile == null ? void 0 : onHandleUploadFile(null, null);
6238
6243
  acceptedFiles.pop();
6239
6244
  };
6240
- useEffect4(() => {
6245
+ useEffect5(() => {
6241
6246
  if (value) {
6242
6247
  if (typeof value === "string") {
6243
6248
  setFilePreview(value);
@@ -8090,7 +8095,7 @@ import { useMemo as useMemo5 } from "react";
8090
8095
 
8091
8096
  // src/provider/components/provider.tsx
8092
8097
  import axios from "axios";
8093
- import { createContext as createContext2, useContext, useEffect as useEffect5, useMemo as useMemo4, useRef as useRef5 } from "react";
8098
+ import { createContext as createContext2, useContext, useEffect as useEffect6, useMemo as useMemo4, useRef as useRef5 } from "react";
8094
8099
  import { ToastContainer as ToastContainer2 } from "react-toastify";
8095
8100
  import { jsx as jsx69, jsxs as jsxs32 } from "react/jsx-runtime";
8096
8101
  var ProviderContext = createContext2({
@@ -8102,7 +8107,7 @@ var useInternalUI = () => {
8102
8107
  };
8103
8108
  var Provider = ({ children, config: config2, requestInterceptors, responseInterceptors }) => {
8104
8109
  const instanceRef = useRef5(axios.create(config2));
8105
- useEffect5(() => {
8110
+ useEffect6(() => {
8106
8111
  requestInterceptors == null ? void 0 : requestInterceptors.forEach((interceptor) => {
8107
8112
  instanceRef.current.interceptors.request.use(interceptor);
8108
8113
  });