@codezee/sixtify-brahma 0.2.202 → 0.2.204

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codezee/sixtify-brahma",
3
- "version": "0.2.202",
3
+ "version": "0.2.204",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/hardikranpariya/sixtify-brahma.git"
@@ -3,18 +3,20 @@ import { type TextFieldProps as MuiTextFieldProps } from "@mui/material/TextFiel
3
3
  import { type FieldValues, type UseControllerProps } from "react-hook-form";
4
4
  import { type NavigationKey } from "../../utils/hooks/useFormFieldFocus";
5
5
  import type { Styling } from "../../utils/types";
6
+ import type { ReactNode } from "react";
6
7
  export type DecimalTextFieldProps<P extends FieldValues> = UseControllerProps<P> & Omit<MuiTextFieldProps, keyof UseControllerProps<P> | "type" | "value" | "onChange"> & {
7
8
  label?: string;
8
9
  loading?: boolean;
9
10
  containerProps?: StackProps;
10
11
  styling?: Styling;
11
- infoMessage?: React.ReactNode;
12
+ infoMessage?: ReactNode;
12
13
  decimalScale: number;
14
+ returnDecimalScale?: number;
13
15
  defaultFallbackValue?: number;
14
16
  min?: number;
15
17
  max?: number;
16
18
  customOnChange?: (value?: number) => void;
17
19
  navigationKey?: NavigationKey;
18
20
  };
19
- export declare function DecimalTextField<P extends FieldValues>({ control, name, decimalScale, defaultFallbackValue, min, max, defaultValue, label, required, disabled, loading, placeholder, containerProps, styling, infoMessage, customOnChange, navigationKey, rules, ...restProps }: DecimalTextFieldProps<P>): import("react/jsx-runtime").JSX.Element;
21
+ export declare function DecimalTextField<P extends FieldValues>({ control, name, decimalScale, returnDecimalScale, defaultFallbackValue, min, max, defaultValue, label, required, disabled, loading, placeholder, containerProps, styling, infoMessage, customOnChange, navigationKey, rules, ...restProps }: DecimalTextFieldProps<P>): import("react/jsx-runtime").JSX.Element;
20
22
  //# sourceMappingURL=DecimalTextField.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DecimalTextField.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DecimalTextField/DecimalTextField.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAkB,EAChB,KAAK,cAAc,IAAI,iBAAiB,EACzC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAGjD,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,IACrD,kBAAkB,CAAC,CAAC,CAAC,GACnB,IAAI,CACF,iBAAiB,EACjB,MAAM,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAC5D,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC9B,YAAY,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEN,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,EACtD,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,oBAAoB,EACpB,GAAG,EACH,GAAG,EACH,YAAY,EACZ,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAe,EACf,WAAgB,EAChB,cAAc,EACd,OAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,KAAK,EACL,GAAG,SAAS,EACb,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAyM1B"}
1
+ {"version":3,"file":"DecimalTextField.d.ts","sourceRoot":"","sources":["../../../src/FormFields/DecimalTextField/DecimalTextField.tsx"],"names":[],"mappings":"AAIA,OAAc,EAAE,KAAK,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC7D,OAAkB,EAChB,KAAK,cAAc,IAAI,iBAAiB,EACzC,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EAEL,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACxB,MAAM,iBAAiB,CAAC;AAKzB,OAAO,EAEL,KAAK,aAAa,EACnB,MAAM,qCAAqC,CAAC;AAO7C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,EAIV,SAAS,EACV,MAAM,OAAO,CAAC;AAEf,MAAM,MAAM,qBAAqB,CAAC,CAAC,SAAS,WAAW,IACrD,kBAAkB,CAAC,CAAC,CAAC,GACnB,IAAI,CACF,iBAAiB,EACjB,MAAM,kBAAkB,CAAC,CAAC,CAAC,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,CAC5D,GAAG;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc,CAAC,EAAE,UAAU,CAAC;IAC5B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,aAAa,CAAC;CAC/B,CAAC;AAEN,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,WAAW,EAAE,EACtD,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,kBAAkB,EAClB,oBAAoB,EACpB,GAAG,EACH,GAAG,EACH,YAAY,EACZ,KAAU,EACV,QAAQ,EACR,QAAQ,EACR,OAAe,EACf,WAAgB,EAChB,cAAc,EACd,OAAkB,EAClB,WAAW,EACX,cAAc,EACd,aAAa,EACb,KAAK,EACL,GAAG,SAAS,EACb,EAAE,qBAAqB,CAAC,CAAC,CAAC,2CAgS1B"}
@@ -18,14 +18,15 @@ const utils_1 = require("../../utils");
18
18
  const useFormFieldFocus_1 = require("../../utils/hooks/useFormFieldFocus");
19
19
  const commonStyles_1 = require("../commonStyles");
20
20
  const Skeleton_1 = require("../TextField/Skeleton");
21
- function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, min, max, defaultValue, label = "", required, disabled, loading = false, placeholder = "", containerProps, styling = "custom", infoMessage, customOnChange, navigationKey, rules, ...restProps }) {
21
+ function DecimalTextField({ control, name, decimalScale, returnDecimalScale, defaultFallbackValue, min, max, defaultValue, label = "", required, disabled, loading = false, placeholder = "", containerProps, styling = "custom", infoMessage, customOnChange, navigationKey, rules, ...restProps }) {
22
22
  const validationRules = (0, react_1.useMemo)(() => {
23
23
  const builtRules = { ...rules };
24
24
  builtRules.validate = (val) => {
25
- if (required && (val === undefined || val == null)) {
25
+ const isEmpty = val === undefined || val == null;
26
+ if (required && isEmpty) {
26
27
  return "This field is required";
27
28
  }
28
- if (val === undefined || val == null) {
29
+ if (isEmpty) {
29
30
  return true;
30
31
  }
31
32
  if (isNaN(val)) {
@@ -51,6 +52,7 @@ function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, m
51
52
  const resolvedNavigationKey = navigationKey ?? navigationKeyFromContext;
52
53
  const { inputRef: navigationInputRef, maintainFocus, handleKeyDown: handleNavigationKeyDown, } = (0, useFormFieldFocus_1.useFormFieldFocus)({ navigationKey: resolvedNavigationKey });
53
54
  const inputRef = (0, react_1.useRef)(null);
55
+ const lastInputStringRef = (0, react_1.useRef)("");
54
56
  const parseValue = (val) => {
55
57
  if (val === "") {
56
58
  return undefined;
@@ -58,24 +60,73 @@ function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, m
58
60
  const parsed = Number(val);
59
61
  return isNaN(parsed) ? undefined : parsed;
60
62
  };
63
+ const isEmptyReturnDecimalScale = returnDecimalScale === undefined;
64
+ const truncateStringValue = (0, react_1.useCallback)((valStr) => {
65
+ if (isEmptyReturnDecimalScale || valStr === "") {
66
+ return valStr;
67
+ }
68
+ const decimalIndex = valStr.indexOf(".");
69
+ if (decimalIndex === -1) {
70
+ return valStr;
71
+ }
72
+ const integerPart = valStr.substring(0, decimalIndex);
73
+ const decimalPart = valStr.substring(decimalIndex + 1);
74
+ if (decimalPart.length <= returnDecimalScale) {
75
+ return valStr;
76
+ }
77
+ const truncatedDecimal = decimalPart.substring(0, returnDecimalScale);
78
+ return `${integerPart}.${truncatedDecimal}`;
79
+ }, [returnDecimalScale]);
80
+ const formatReturnValue = (0, react_1.useCallback)((valStr) => {
81
+ if (valStr === undefined || valStr == null || valStr === "") {
82
+ return undefined;
83
+ }
84
+ if (isEmptyReturnDecimalScale) {
85
+ return typeof valStr === "string" ? parseValue(valStr) : valStr;
86
+ }
87
+ const valString = typeof valStr === "string" ? valStr : valStr.toString();
88
+ const truncatedStr = truncateStringValue(valString);
89
+ return parseValue(truncatedStr);
90
+ }, [returnDecimalScale, truncateStringValue]);
61
91
  const handleValueChange = (0, react_1.useCallback)((values) => {
62
- const numericValue = parseValue(values.value);
92
+ const rawValue = values.value;
93
+ lastInputStringRef.current = rawValue;
94
+ const numericValue = parseValue(rawValue);
63
95
  onChange(numericValue);
64
- customOnChange?.(numericValue);
96
+ const returnValue = !isEmptyReturnDecimalScale
97
+ ? formatReturnValue(rawValue)
98
+ : numericValue;
99
+ customOnChange?.(returnValue);
65
100
  maintainFocus();
66
- }, [onChange, customOnChange, maintainFocus]);
101
+ }, [
102
+ onChange,
103
+ customOnChange,
104
+ maintainFocus,
105
+ formatReturnValue,
106
+ returnDecimalScale,
107
+ ]);
67
108
  const isValidValue = (0, react_1.useCallback)((val) => {
68
109
  if (val === undefined || isNaN(val)) {
69
110
  return false;
70
111
  }
71
112
  return ((min === undefined || val >= min) && (max === undefined || val <= max));
72
113
  }, [min, max]);
73
- const handleBlur = (0, react_1.useCallback)((event) => {
74
- const currentValue = typeof value === "number" ? value : undefined;
75
- // If value is invalid, reset to fallback value
114
+ const handleBlur = (0, react_1.useCallback)(
115
+ // eslint-disable-next-line sonarjs/cognitive-complexity
116
+ (event) => {
117
+ const inputStringValue = lastInputStringRef.current || "";
118
+ let currentValue;
119
+ if (inputStringValue) {
120
+ currentValue = parseValue(inputStringValue);
121
+ }
122
+ else if (typeof value === "number") {
123
+ currentValue = value;
124
+ }
125
+ else {
126
+ currentValue = undefined;
127
+ }
76
128
  if (error && currentValue !== undefined && !isValidValue(currentValue)) {
77
129
  let resetValue;
78
- // Priority: defaultFallbackValue > min > 0
79
130
  if (defaultFallbackValue !== undefined &&
80
131
  isValidValue(defaultFallbackValue)) {
81
132
  resetValue = defaultFallbackValue;
@@ -91,6 +142,7 @@ function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, m
91
142
  }
92
143
  onChange(resetValue);
93
144
  }
145
+ lastInputStringRef.current = "";
94
146
  onBlur();
95
147
  restProps.onBlur?.(event);
96
148
  }, [
@@ -103,6 +155,8 @@ function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, m
103
155
  onChange,
104
156
  onBlur,
105
157
  restProps,
158
+ returnDecimalScale,
159
+ formatReturnValue,
106
160
  ]);
107
161
  const handleKeyDown = (0, react_1.useCallback)((event) => {
108
162
  handleNavigationKeyDown(event, undefined, false);
@@ -119,10 +173,14 @@ function DecimalTextField({ control, name, decimalScale, defaultFallbackValue, m
119
173
  }
120
174
  }, [ref, navigationInputRef]);
121
175
  const displayValue = (0, react_1.useMemo)(() => {
122
- return typeof value === "number" ? value : "";
176
+ if (typeof value !== "number") {
177
+ return "";
178
+ }
179
+ return value;
123
180
  }, [value]);
124
181
  if (loading) {
125
182
  return (0, jsx_runtime_1.jsx)(Skeleton_1.Skeleton, { label: label, styling: styling });
126
183
  }
127
- return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { ...containerProps, gap: "5px", children: [label && styling === "custom" && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", alignItems: "center", gap: "4px", children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, disabled: disabled, children: label }), infoMessage && ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: infoMessage, children: (0, jsx_runtime_1.jsx)(InfoOutlined_1.default, { sx: { fontSize: 13 } }) }))] })), (0, jsx_runtime_1.jsx)(react_number_format_1.NumericFormat, { customInput: TextField_1.default, ...restProps, value: displayValue, decimalScale: decimalScale, fixedDecimalScale: true, allowNegative: false, thousandSeparator: false, disabled: disabled, required: required, fullWidth: true, name: name, error: Boolean(error), helperText: error?.message, placeholder: styling === "default" ? placeholder : placeholder || label, label: styling === "default" ? label : undefined, sx: (0, commonStyles_1.getDefaultTextFieldSx)(styling), InputLabelProps: (0, commonStyles_1.getDefaultInputLabelProps)(styling), onValueChange: handleValueChange, onBlur: handleBlur, onKeyDown: handleKeyDown, inputMode: "decimal", getInputRef: handleInputRef })] }));
184
+ return ((0, jsx_runtime_1.jsxs)(Stack_1.default, { ...containerProps, gap: "5px", children: [label && styling === "custom" && ((0, jsx_runtime_1.jsxs)(Stack_1.default, { direction: "row", alignItems: "center", gap: "4px", children: [(0, jsx_runtime_1.jsx)(InputLabel_1.default, { required: required, disabled: disabled, children: label }), infoMessage && ((0, jsx_runtime_1.jsx)(Tooltip_1.Tooltip, { toolTipLabel: infoMessage, children: (0, jsx_runtime_1.jsx)(InfoOutlined_1.default, { sx: { fontSize: 13 } }) }))] })), (0, jsx_runtime_1.jsx)(react_number_format_1.NumericFormat, { customInput: TextField_1.default, ...restProps, value: displayValue, decimalScale: decimalScale, fixedDecimalScale: returnDecimalScale === undefined ||
185
+ returnDecimalScale === decimalScale, allowNegative: false, thousandSeparator: false, disabled: disabled, required: required, fullWidth: true, name: name, error: Boolean(error), helperText: error?.message, placeholder: styling === "default" ? placeholder : placeholder || label, label: styling === "default" ? label : undefined, sx: (0, commonStyles_1.getDefaultTextFieldSx)(styling), InputLabelProps: (0, commonStyles_1.getDefaultInputLabelProps)(styling), onValueChange: handleValueChange, onBlur: handleBlur, onKeyDown: handleKeyDown, inputMode: "decimal", getInputRef: handleInputRef })] }));
128
186
  }
@@ -1,3 +1,3 @@
1
1
  import { type TablePaginationProps } from "@mui/material/TablePagination";
2
- export declare const Pagination: ({ count, page, onPageChange, rowsPerPage, onRowsPerPageChange, ...rest }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Pagination: ({ count, page, onPageChange, rowsPerPage, onRowsPerPageChange, sx, ...rest }: TablePaginationProps) => import("react/jsx-runtime").JSX.Element;
3
3
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/Pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAwB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAIvC,eAAO,MAAM,UAAU,GAAI,0EAOxB,oBAAoB,4CA0CtB,CAAC"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../src/Pagination/Pagination.tsx"],"names":[],"mappings":"AACA,OAAwB,EACtB,KAAK,oBAAoB,EAC1B,MAAM,+BAA+B,CAAC;AAIvC,eAAO,MAAM,UAAU,GAAI,8EAQxB,oBAAoB,4CA2CtB,CAAC"}
@@ -8,7 +8,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
8
8
  const styles_1 = require("@mui/material/styles");
9
9
  const TablePagination_1 = __importDefault(require("@mui/material/TablePagination"));
10
10
  const utils_1 = require("../utils");
11
- const Pagination = ({ count, page, onPageChange, rowsPerPage, onRowsPerPageChange, ...rest }) => {
11
+ const Pagination = ({ count, page, onPageChange, rowsPerPage, onRowsPerPageChange, sx, ...rest }) => {
12
12
  const theme = (0, styles_1.useTheme)();
13
13
  const { grey } = theme.palette;
14
14
  const { layout } = (0, utils_1.useGetDeviceType)();
@@ -30,6 +30,7 @@ const Pagination = ({ count, page, onPageChange, rowsPerPage, onRowsPerPageChang
30
30
  fontSize: "13px",
31
31
  padding: isMobile ? "2px 10px" : "4px 8px",
32
32
  },
33
+ ...sx,
33
34
  }, component: "div", count: count, page: page, onPageChange: onPageChange, rowsPerPage: rowsPerPage, onRowsPerPageChange: onRowsPerPageChange, rowsPerPageOptions: rowsPerPageOptions, defaultValue: 100, labelRowsPerPage: !isMobile ? "Rows per page" : "", ...rest }));
34
35
  };
35
36
  exports.Pagination = Pagination;
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SalaryIcon = void 0;
4
4
  const jsx_runtime_1 = require("react/jsx-runtime");
5
5
  const SalaryIcon = (props) => {
6
- return ((0, jsx_runtime_1.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 20 20", fill: "none", ...props, xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M4.66391 15.2631L4.30794 15.6142L4.30794 15.6142L4.66391 15.2631ZM17.2731 15.2631L17.6291 15.6142V15.6142L17.2731 15.2631ZM17.2731 6.67307L16.9172 7.02419L17.2731 6.67307ZM16.0224 5.50247C15.7476 5.47507 15.5026 5.67561 15.4752 5.95039C15.4478 6.22517 15.6484 6.47013 15.9232 6.49753L15.9728 6L16.0224 5.50247ZM4.49766 13.4357C4.471 13.1609 4.22657 12.9597 3.95172 12.9863C3.67687 13.013 3.47567 13.2574 3.50234 13.5323L4 13.484L4.49766 13.4357ZM12.4997 10C12.4997 10.2761 12.7236 10.5 12.9997 10.5C13.2759 10.5 13.4997 10.2761 13.4997 10H12.9997H12.4997ZM13.4997 6C13.4997 5.72386 13.2759 5.5 12.9997 5.5C12.7236 5.5 12.4997 5.72386 12.4997 6H12.9997H13.4997ZM3.5 10C3.5 10.2761 3.72386 10.5 4 10.5C4.27614 10.5 4.5 10.2761 4.5 10H4H3.5ZM4.5 6C4.5 5.72386 4.27614 5.5 4 5.5C3.72386 5.5 3.5 5.72386 3.5 6H4H4.5ZM6.94118 3V3.5H11.0588V3V2.5H6.94118V3ZM11.0588 13V12.5H6.94118V13V13.5H11.0588V13ZM6.94118 13V12.5C5.76223 12.5 4.92891 12.4989 4.29767 12.413C3.68143 12.3292 3.33293 12.173 3.07926 11.9163L2.72362 12.2678L2.36798 12.6192C2.83793 13.0948 3.43356 13.3047 4.16287 13.4039C4.87718 13.5011 5.79083 13.5 6.94118 13.5V13ZM2 8H1.5C1.5 9.16454 1.49896 10.0877 1.59481 10.809C1.69248 11.5442 1.89884 12.1445 2.36798 12.6192L2.72362 12.2678L3.07926 11.9163C2.82478 11.6588 2.66932 11.3037 2.5861 10.6773C2.50104 10.0371 2.5 9.19248 2.5 8H2ZM16 8H15.5C15.5 9.19248 15.499 10.0371 15.4139 10.6773C15.3307 11.3037 15.1752 11.6588 14.9207 11.9163L15.2764 12.2678L15.632 12.6192C16.1012 12.1445 16.3075 11.5442 16.4052 10.809C16.501 10.0877 16.5 9.16454 16.5 8H16ZM11.0588 13V13.5C12.2092 13.5 13.1228 13.5011 13.8371 13.4039C14.5664 13.3047 15.1621 13.0948 15.632 12.6192L15.2764 12.2678L14.9207 11.9163C14.6671 12.173 14.3186 12.3292 13.7023 12.413C13.0711 12.4989 12.2378 12.5 11.0588 12.5V13ZM11.0588 3V3.5C12.2378 3.5 13.0711 3.50109 13.7023 3.58697C14.3186 3.6708 14.6671 3.827 14.9207 4.08369L15.2764 3.73223L15.632 3.38078C15.1621 2.90523 14.5664 2.69531 13.8371 2.59609C13.1228 2.49891 12.2092 2.5 11.0588 2.5V3ZM16 8H16.5C16.5 6.83546 16.501 5.91234 16.4052 5.19097C16.3075 4.45581 16.1012 3.8555 15.632 3.38078L15.2764 3.73223L14.9207 4.08369C15.1752 4.3412 15.3307 4.69626 15.4139 5.32267C15.499 5.96287 15.5 6.80752 15.5 8H16ZM6.94118 3V2.5C5.79083 2.5 4.87718 2.49891 4.16287 2.59609C3.43356 2.69531 2.83793 2.90523 2.36798 3.38078L2.72362 3.73223L3.07926 4.08369C3.33293 3.827 3.68143 3.6708 4.29767 3.58697C4.92891 3.50109 5.76223 3.5 6.94118 3.5V3ZM2 8H2.5C2.5 6.80752 2.50104 5.96287 2.5861 5.32267C2.66932 4.69626 2.82478 4.3412 3.07926 4.08369L2.72362 3.73223L2.36798 3.38078C1.89884 3.8555 1.69248 4.45581 1.59481 5.19097C1.49896 5.91234 1.5 6.83546 1.5 8H2ZM13.0366 16V15.5H8.90043V16V16.5H13.0366V16ZM8.90043 16V15.5C7.71623 15.5 6.87905 15.4989 6.24486 15.4125C5.62577 15.3281 5.27521 15.1708 5.01988 14.912L4.66391 15.2631L4.30794 15.6142C4.77948 16.0923 5.3773 16.3035 6.10981 16.4033C6.82722 16.5011 7.74487 16.5 8.90043 16.5V16ZM18 10.9681H17.5C17.5 12.1681 17.499 13.0184 17.4135 13.663C17.3298 14.294 17.1734 14.6522 16.9172 14.912L17.2731 15.2631L17.6291 15.6142C18.0997 15.1371 18.3068 14.5338 18.4048 13.7945C18.501 13.0689 18.5 12.1402 18.5 10.9681H18ZM13.0366 16V16.5C14.1922 16.5 15.1098 16.5011 15.8272 16.4033C16.5597 16.3035 17.1576 16.0923 17.6291 15.6142L17.2731 15.2631L16.9172 14.912C16.6618 15.1708 16.3113 15.3281 15.6922 15.4125C15.058 15.4989 14.2208 15.5 13.0366 15.5V16ZM18 10.9681H18.5C18.5 9.79599 18.501 8.86731 18.4048 8.14166C18.3068 7.40232 18.0997 6.79904 17.6291 6.32195L17.2731 6.67307L16.9172 7.02419C17.1734 7.284 17.3298 7.6422 17.4135 8.27312C17.499 8.91774 17.5 9.7681 17.5 10.9681H18ZM15.9728 6L15.9232 6.49753C16.2976 6.53488 16.4328 6.59008 16.5114 6.63843C16.6172 6.70358 16.6747 6.77843 16.9172 7.02419L17.2731 6.67307L17.6291 6.32195C17.4663 6.15687 17.2769 5.9354 17.0356 5.78683C16.7669 5.62147 16.4545 5.54556 16.0224 5.50247L15.9728 6ZM4 13.484L3.50234 13.5323C3.58581 14.3927 3.783 15.082 4.30794 15.6142L4.66391 15.2631L5.01988 14.912C4.73431 14.6225 4.57287 14.2109 4.49766 13.4357L4 13.484ZM11.0002 8H10.5002C10.5002 8.82843 9.82868 9.5 9.00025 9.5V10V10.5C10.381 10.5 11.5002 9.38071 11.5002 8H11.0002ZM9.00025 10V9.5C8.17182 9.5 7.50025 8.82843 7.50025 8H7.00025H6.50025C6.50025 9.38071 7.61954 10.5 9.00025 10.5V10ZM7.00025 8H7.50025C7.50025 7.17157 8.17182 6.5 9.00025 6.5V6V5.5C7.61954 5.5 6.50025 6.61929 6.50025 8H7.00025ZM9.00025 6V6.5C9.82868 6.5 10.5002 7.17157 10.5002 8H11.0002H11.5002C11.5002 6.61929 10.381 5.5 9.00025 5.5V6ZM12.9997 10H13.4997V6H12.9997H12.4997V10H12.9997ZM4 10H4.5L4.5 6H4H3.5L3.5 10H4Z", fill: "#141A2A" }) }));
6
+ return ((0, jsx_runtime_1.jsx)("svg", { width: "24", height: "24", viewBox: "0 0 20 20", fill: "none", ...props, xmlns: "http://www.w3.org/2000/svg", children: (0, jsx_runtime_1.jsx)("path", { d: "M4.66391 15.2631L4.30794 15.6142L4.30794 15.6142L4.66391 15.2631ZM17.2731 15.2631L17.6291 15.6142V15.6142L17.2731 15.2631ZM17.2731 6.67307L16.9172 7.02419L17.2731 6.67307ZM16.0224 5.50247C15.7476 5.47507 15.5026 5.67561 15.4752 5.95039C15.4478 6.22517 15.6484 6.47013 15.9232 6.49753L15.9728 6L16.0224 5.50247ZM4.49766 13.4357C4.471 13.1609 4.22657 12.9597 3.95172 12.9863C3.67687 13.013 3.47567 13.2574 3.50234 13.5323L4 13.484L4.49766 13.4357ZM12.4997 10C12.4997 10.2761 12.7236 10.5 12.9997 10.5C13.2759 10.5 13.4997 10.2761 13.4997 10H12.9997H12.4997ZM13.4997 6C13.4997 5.72386 13.2759 5.5 12.9997 5.5C12.7236 5.5 12.4997 5.72386 12.4997 6H12.9997H13.4997ZM3.5 10C3.5 10.2761 3.72386 10.5 4 10.5C4.27614 10.5 4.5 10.2761 4.5 10H4H3.5ZM4.5 6C4.5 5.72386 4.27614 5.5 4 5.5C3.72386 5.5 3.5 5.72386 3.5 6H4H4.5ZM6.94118 3V3.5H11.0588V3V2.5H6.94118V3ZM11.0588 13V12.5H6.94118V13V13.5H11.0588V13ZM6.94118 13V12.5C5.76223 12.5 4.92891 12.4989 4.29767 12.413C3.68143 12.3292 3.33293 12.173 3.07926 11.9163L2.72362 12.2678L2.36798 12.6192C2.83793 13.0948 3.43356 13.3047 4.16287 13.4039C4.87718 13.5011 5.79083 13.5 6.94118 13.5V13ZM2 8H1.5C1.5 9.16454 1.49896 10.0877 1.59481 10.809C1.69248 11.5442 1.89884 12.1445 2.36798 12.6192L2.72362 12.2678L3.07926 11.9163C2.82478 11.6588 2.66932 11.3037 2.5861 10.6773C2.50104 10.0371 2.5 9.19248 2.5 8H2ZM16 8H15.5C15.5 9.19248 15.499 10.0371 15.4139 10.6773C15.3307 11.3037 15.1752 11.6588 14.9207 11.9163L15.2764 12.2678L15.632 12.6192C16.1012 12.1445 16.3075 11.5442 16.4052 10.809C16.501 10.0877 16.5 9.16454 16.5 8H16ZM11.0588 13V13.5C12.2092 13.5 13.1228 13.5011 13.8371 13.4039C14.5664 13.3047 15.1621 13.0948 15.632 12.6192L15.2764 12.2678L14.9207 11.9163C14.6671 12.173 14.3186 12.3292 13.7023 12.413C13.0711 12.4989 12.2378 12.5 11.0588 12.5V13ZM11.0588 3V3.5C12.2378 3.5 13.0711 3.50109 13.7023 3.58697C14.3186 3.6708 14.6671 3.827 14.9207 4.08369L15.2764 3.73223L15.632 3.38078C15.1621 2.90523 14.5664 2.69531 13.8371 2.59609C13.1228 2.49891 12.2092 2.5 11.0588 2.5V3ZM16 8H16.5C16.5 6.83546 16.501 5.91234 16.4052 5.19097C16.3075 4.45581 16.1012 3.8555 15.632 3.38078L15.2764 3.73223L14.9207 4.08369C15.1752 4.3412 15.3307 4.69626 15.4139 5.32267C15.499 5.96287 15.5 6.80752 15.5 8H16ZM6.94118 3V2.5C5.79083 2.5 4.87718 2.49891 4.16287 2.59609C3.43356 2.69531 2.83793 2.90523 2.36798 3.38078L2.72362 3.73223L3.07926 4.08369C3.33293 3.827 3.68143 3.6708 4.29767 3.58697C4.92891 3.50109 5.76223 3.5 6.94118 3.5V3ZM2 8H2.5C2.5 6.80752 2.50104 5.96287 2.5861 5.32267C2.66932 4.69626 2.82478 4.3412 3.07926 4.08369L2.72362 3.73223L2.36798 3.38078C1.89884 3.8555 1.69248 4.45581 1.59481 5.19097C1.49896 5.91234 1.5 6.83546 1.5 8H2ZM13.0366 16V15.5H8.90043V16V16.5H13.0366V16ZM8.90043 16V15.5C7.71623 15.5 6.87905 15.4989 6.24486 15.4125C5.62577 15.3281 5.27521 15.1708 5.01988 14.912L4.66391 15.2631L4.30794 15.6142C4.77948 16.0923 5.3773 16.3035 6.10981 16.4033C6.82722 16.5011 7.74487 16.5 8.90043 16.5V16ZM18 10.9681H17.5C17.5 12.1681 17.499 13.0184 17.4135 13.663C17.3298 14.294 17.1734 14.6522 16.9172 14.912L17.2731 15.2631L17.6291 15.6142C18.0997 15.1371 18.3068 14.5338 18.4048 13.7945C18.501 13.0689 18.5 12.1402 18.5 10.9681H18ZM13.0366 16V16.5C14.1922 16.5 15.1098 16.5011 15.8272 16.4033C16.5597 16.3035 17.1576 16.0923 17.6291 15.6142L17.2731 15.2631L16.9172 14.912C16.6618 15.1708 16.3113 15.3281 15.6922 15.4125C15.058 15.4989 14.2208 15.5 13.0366 15.5V16ZM18 10.9681H18.5C18.5 9.79599 18.501 8.86731 18.4048 8.14166C18.3068 7.40232 18.0997 6.79904 17.6291 6.32195L17.2731 6.67307L16.9172 7.02419C17.1734 7.284 17.3298 7.6422 17.4135 8.27312C17.499 8.91774 17.5 9.7681 17.5 10.9681H18ZM15.9728 6L15.9232 6.49753C16.2976 6.53488 16.4328 6.59008 16.5114 6.63843C16.6172 6.70358 16.6747 6.77843 16.9172 7.02419L17.2731 6.67307L17.6291 6.32195C17.4663 6.15687 17.2769 5.9354 17.0356 5.78683C16.7669 5.62147 16.4545 5.54556 16.0224 5.50247L15.9728 6ZM4 13.484L3.50234 13.5323C3.58581 14.3927 3.783 15.082 4.30794 15.6142L4.66391 15.2631L5.01988 14.912C4.73431 14.6225 4.57287 14.2109 4.49766 13.4357L4 13.484ZM11.0002 8H10.5002C10.5002 8.82843 9.82868 9.5 9.00025 9.5V10V10.5C10.381 10.5 11.5002 9.38071 11.5002 8H11.0002ZM9.00025 10V9.5C8.17182 9.5 7.50025 8.82843 7.50025 8H7.00025H6.50025C6.50025 9.38071 7.61954 10.5 9.00025 10.5V10ZM7.00025 8H7.50025C7.50025 7.17157 8.17182 6.5 9.00025 6.5V6V5.5C7.61954 5.5 6.50025 6.61929 6.50025 8H7.00025ZM9.00025 6V6.5C9.82868 6.5 10.5002 7.17157 10.5002 8H11.0002H11.5002C11.5002 6.61929 10.381 5.5 9.00025 5.5V6ZM12.9997 10H13.4997V6H12.9997H12.4997V10H12.9997ZM4 10H4.5L4.5 6H4H3.5L3.5 10H4Z", fill: props.fill ?? "currentColor" }) }));
7
7
  };
8
8
  exports.SalaryIcon = SalaryIcon;