@leapdevuk/component-toolbox 0.2.2 → 0.3.2
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/README.md +1 -1
- package/dist/CHANGELOG.md +74 -0
- package/dist/components/accordion/Accordion.d.ts +1 -1
- package/dist/components/accordiondetails/AccordionDetails.d.ts +1 -1
- package/dist/components/accordionsummary/AccordionSummary.d.ts +2 -2
- package/dist/components/alert/Alert.d.ts +1 -1
- package/dist/components/autocomplete/Autocomplete.d.ts +1 -1
- package/dist/components/avatargroup/AvatarGroup.d.ts +1 -1
- package/dist/components/box/Box.d.ts +1 -1
- package/dist/components/button/Button.d.ts +1 -1
- package/dist/components/buttongroup/ButtonGroup.d.ts +1 -1
- package/dist/components/chip/Chip.d.ts +1 -1
- package/dist/components/divider/Divider.d.ts +1 -1
- package/dist/components/drawer/Drawer.d.ts +1 -1
- package/dist/components/formcontrollabel/FormControlLabel.d.ts +1 -1
- package/dist/components/grid/Grid.d.ts +1 -1
- package/dist/components/iconbutton/IconButton.d.ts +1 -1
- package/dist/components/inputadornment/InputAdornment.d.ts +1 -1
- package/dist/components/inputlabel/InputLabel.d.ts +1 -1
- package/dist/components/list/List.d.ts +1 -1
- package/dist/components/listitem/ListItem.d.ts +1 -1
- package/dist/components/listitembutton/ListItemButton.d.ts +1 -1
- package/dist/components/listitemtext/ListItemText.d.ts +1 -1
- package/dist/components/menu/Menu.d.ts +1 -1
- package/dist/components/menuitem/MenuItem.d.ts +1 -1
- package/dist/components/numberdisplay/NumberDisplay.d.ts +1 -1
- package/dist/components/numberinput/NumberInput.d.ts +1 -1
- package/dist/components/select/Select.d.ts +1 -1
- package/dist/components/snackbar/Snackbar.d.ts +1 -1
- package/dist/components/staffavatar/StaffAvatar.d.ts +1 -1
- package/dist/components/svgicon/SvgIcon.d.ts +1 -1
- package/dist/components/tab/Tab.d.ts +1 -1
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/textareaautosize/TextareaAutosize.d.ts +1 -1
- package/dist/components/textfield/Textfield.d.ts +1 -1
- package/dist/components/tooltip/Tooltip.d.ts +1 -1
- package/dist/components/typography/Typography.d.ts +1 -1
- package/dist/images/calendar-icon.d.ts +1 -1
- package/dist/images/checkbox-icon.d.ts +1 -1
- package/dist/images/comment-icon.d.ts +1 -1
- package/dist/images/doc-icon.d.ts +1 -1
- package/dist/images/email-icon.d.ts +1 -1
- package/dist/images/email-received-icon.d.ts +1 -1
- package/dist/images/email-sent-icon.d.ts +1 -1
- package/dist/images/excel-icon.d.ts +1 -1
- package/dist/images/image-icon.d.ts +1 -1
- package/dist/images/info-icon.d.ts +1 -1
- package/dist/images/leap-icon.d.ts +1 -1
- package/dist/images/pdf-icon.d.ts +1 -1
- package/dist/images/question-icon.d.ts +1 -1
- package/dist/images/unknown-doc-icon.d.ts +1 -1
- package/dist/images/warning-icon.d.ts +1 -1
- package/dist/index.cjs.js +4 -103
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +2866 -12400
- package/dist/index.es.js.map +1 -1
- package/package.json +63 -63
package/dist/index.es.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es.js","sources":["../node_modules/react/cjs/react-jsx-runtime.production.js","../node_modules/react/cjs/react-jsx-runtime.development.js","../node_modules/react/jsx-runtime.js","../src/components/accordion/Accordion.tsx","../src/components/accordiondetails/AccordionDetails.tsx","../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../node_modules/@mui/utils/esm/capitalize/capitalize.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js","../node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js","../node_modules/prop-types/node_modules/react-is/index.js","../node_modules/object-assign/index.js","../node_modules/prop-types/lib/ReactPropTypesSecret.js","../node_modules/prop-types/lib/has.js","../node_modules/prop-types/checkPropTypes.js","../node_modules/prop-types/factoryWithTypeCheckers.js","../node_modules/prop-types/factoryWithThrowingShims.js","../node_modules/prop-types/index.js","../node_modules/clsx/dist/clsx.mjs","../node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../node_modules/react-is/cjs/react-is.production.js","../node_modules/react-is/cjs/react-is.development.js","../node_modules/react-is/index.js","../node_modules/@mui/utils/esm/deepmerge/deepmerge.js","../node_modules/@mui/system/esm/merge/merge.js","../node_modules/@mui/system/esm/responsivePropType/responsivePropType.js","../node_modules/@mui/system/esm/cssContainerQueries/cssContainerQueries.js","../node_modules/@mui/system/esm/breakpoints/breakpoints.js","../node_modules/@mui/system/esm/style/style.js","../node_modules/@mui/system/esm/memoize/memoize.js","../node_modules/@mui/system/esm/spacing/spacing.js","../node_modules/@mui/system/esm/compose/compose.js","../node_modules/@mui/system/esm/borders/borders.js","../node_modules/@mui/system/esm/cssGrid/cssGrid.js","../node_modules/@mui/system/esm/palette/palette.js","../node_modules/@mui/system/esm/sizing/sizing.js","../node_modules/@mui/system/esm/styleFunctionSx/defaultSxConfig.js","../node_modules/@mui/system/esm/styleFunctionSx/styleFunctionSx.js","../node_modules/@mui/system/esm/styleFunctionSx/extendSxProp.js","../node_modules/@emotion/hash/dist/emotion-hash.esm.js","../node_modules/@emotion/unitless/dist/emotion-unitless.esm.js","../node_modules/@emotion/memoize/dist/emotion-memoize.esm.js","../node_modules/@emotion/serialize/dist/emotion-serialize.esm.js","../node_modules/@mui/styled-engine/esm/index.js","../node_modules/@mui/system/esm/createBreakpoints/createBreakpoints.js","../node_modules/@mui/system/esm/createTheme/shape.js","../node_modules/@mui/system/esm/createTheme/createSpacing.js","../node_modules/@mui/system/esm/createTheme/applyStyles.js","../node_modules/@mui/system/esm/createTheme/createTheme.js","../node_modules/@mui/system/esm/useThemeWithoutDefault/useThemeWithoutDefault.js","../node_modules/@mui/system/esm/useTheme/useTheme.js","../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../node_modules/@mui/utils/esm/getDisplayName/getDisplayName.js","../node_modules/@mui/system/esm/preprocessStyles.js","../node_modules/@mui/system/esm/createStyled/createStyled.js","../node_modules/@mui/system/esm/styled/styled.js","../node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../node_modules/@mui/system/esm/useThemeProps/getThemeProps.js","../node_modules/@mui/system/esm/useThemeProps/useThemeProps.js","../node_modules/@mui/utils/esm/clamp/clamp.js","../node_modules/@mui/system/esm/colorManipulator/colorManipulator.js","../node_modules/@mui/system/esm/DefaultPropsProvider/DefaultPropsProvider.js","../node_modules/@mui/system/esm/memoTheme.js","../node_modules/@mui/system/esm/cssVars/createGetCssVar.js","../node_modules/@mui/system/esm/cssVars/cssVarsParser.js","../node_modules/@mui/system/esm/cssVars/prepareCssVars.js","../node_modules/@mui/system/esm/cssVars/getColorSchemeSelector.js","../node_modules/@mui/utils/esm/isMuiElement/isMuiElement.js","../node_modules/@mui/system/esm/Grid/traverseBreakpoints.js","../node_modules/@mui/system/esm/Grid/gridGenerator.js","../node_modules/@mui/system/esm/Grid/deleteLegacyGridProps.js","../node_modules/@mui/system/esm/Grid/createGrid.js","../node_modules/@mui/material/esm/colors/common.js","../node_modules/@mui/material/esm/colors/grey.js","../node_modules/@mui/material/esm/colors/purple.js","../node_modules/@mui/material/esm/colors/red.js","../node_modules/@mui/material/esm/colors/orange.js","../node_modules/@mui/material/esm/colors/blue.js","../node_modules/@mui/material/esm/colors/lightBlue.js","../node_modules/@mui/material/esm/colors/green.js","../node_modules/@mui/material/esm/styles/createPalette.js","../node_modules/@mui/system/esm/cssVars/prepareTypographyVars.js","../node_modules/@mui/material/esm/styles/createMixins.js","../node_modules/@mui/material/esm/styles/createTypography.js","../node_modules/@mui/material/esm/styles/shadows.js","../node_modules/@mui/material/esm/styles/createTransitions.js","../node_modules/@mui/material/esm/styles/zIndex.js","../node_modules/@mui/material/esm/styles/stringifyTheme.js","../node_modules/@mui/material/esm/styles/createThemeNoVars.js","../node_modules/@mui/material/esm/styles/getOverlayAlpha.js","../node_modules/@mui/material/esm/styles/createColorScheme.js","../node_modules/@mui/material/esm/styles/shouldSkipGeneratingVar.js","../node_modules/@mui/material/esm/styles/excludeVariablesFromRoot.js","../node_modules/@mui/material/esm/styles/createGetSelector.js","../node_modules/@mui/material/esm/styles/createThemeWithVars.js","../node_modules/@mui/material/esm/styles/createTheme.js","../node_modules/@mui/material/esm/styles/defaultTheme.js","../node_modules/@mui/material/esm/styles/identifier.js","../node_modules/@mui/material/esm/styles/useTheme.js","../node_modules/@mui/material/esm/styles/slotShouldForwardProp.js","../node_modules/@mui/material/esm/styles/rootShouldForwardProp.js","../node_modules/@mui/material/esm/styles/styled.js","../node_modules/@mui/material/esm/zero-styled/index.js","../node_modules/@mui/material/esm/utils/memoTheme.js","../node_modules/@mui/material/esm/DefaultPropsProvider/DefaultPropsProvider.js","../node_modules/@mui/material/esm/SvgIcon/svgIconClasses.js","../node_modules/@mui/material/esm/SvgIcon/SvgIcon.js","../node_modules/@mui/material/esm/utils/createSvgIcon.js","../node_modules/@mui/utils/esm/requirePropFactory/requirePropFactory.js","../node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../node_modules/@mui/icons-material/esm/ExpandMore.js","../src/components/accordionsummary/AccordionSummary.tsx","../src/images/bin-icon.tsx","../src/images/browse-icon.tsx","../src/images/calendar-icon.tsx","../src/images/checkbox-checked-icon.tsx","../src/images/checkbox-icon.tsx","../src/images/comment-icon.tsx","../src/images/default-doc-icon.tsx","../src/images/doc-icon.tsx","../src/images/email-icon.tsx","../src/images/email-received-icon.tsx","../src/images/email-sent-icon.tsx","../src/images/excel-icon.tsx","../src/images/folder-icon.tsx","../src/images/image-icon.tsx","../src/images/info-icon.tsx","../src/images/launch-icon.tsx","../src/images/leap-icon.tsx","../src/images/pdf-icon.tsx","../src/images/preview-icon.tsx","../src/images/question-icon.tsx","../src/images/undo-icon.tsx","../src/images/unknown-doc-icon.tsx","../src/images/warning-icon.tsx","../src/components/box/Box.tsx","../src/components/errorboundary/ErrorBoundary.tsx","../node_modules/@mui/icons-material/esm/ExpandMoreRounded.js","../node_modules/@mui/icons-material/esm/KeyboardArrowUpRounded.js","../src/components/headerrow/HeaderRow.tsx","../src/components/datagrid/DataGrid.tsx","../src/components/accordiontable/AccordionTable.tsx","../src/components/alert/Alert.tsx","../src/components/appbar/AppBar.tsx","../src/components/autocomplete/Autocomplete.tsx","../src/components/avatargroup/AvatarGroup.tsx","../src/components/button/Button.tsx","../src/components/buttongroup/ButtonGroup.tsx","../src/components/checkbox/Checkbox.tsx","../src/components/chip/Chip.tsx","../src/components/currencyinput/CurrencyInput.tsx","../node_modules/date-fns/constants.js","../node_modules/date-fns/constructFrom.js","../node_modules/date-fns/toDate.js","../node_modules/date-fns/addDays.js","../node_modules/date-fns/addMilliseconds.js","../node_modules/date-fns/addSeconds.js","../node_modules/date-fns/addMinutes.js","../node_modules/date-fns/addHours.js","../node_modules/date-fns/addWeeks.js","../node_modules/date-fns/addMonths.js","../node_modules/date-fns/addYears.js","../node_modules/date-fns/endOfDay.js","../node_modules/date-fns/_lib/defaultOptions.js","../node_modules/date-fns/endOfWeek.js","../node_modules/date-fns/endOfYear.js","../node_modules/date-fns/locale/en-US/_lib/formatDistance.js","../node_modules/date-fns/locale/_lib/buildFormatLongFn.js","../node_modules/date-fns/locale/en-US/_lib/formatLong.js","../node_modules/date-fns/locale/en-US/_lib/formatRelative.js","../node_modules/date-fns/locale/_lib/buildLocalizeFn.js","../node_modules/date-fns/locale/en-US/_lib/localize.js","../node_modules/date-fns/locale/_lib/buildMatchFn.js","../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js","../node_modules/date-fns/locale/en-US/_lib/match.js","../node_modules/date-fns/locale/en-US.js","../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js","../node_modules/date-fns/_lib/normalizeDates.js","../node_modules/date-fns/startOfDay.js","../node_modules/date-fns/differenceInCalendarDays.js","../node_modules/date-fns/startOfYear.js","../node_modules/date-fns/getDayOfYear.js","../node_modules/date-fns/startOfWeek.js","../node_modules/date-fns/startOfISOWeek.js","../node_modules/date-fns/getISOWeekYear.js","../node_modules/date-fns/startOfISOWeekYear.js","../node_modules/date-fns/getISOWeek.js","../node_modules/date-fns/getWeekYear.js","../node_modules/date-fns/startOfWeekYear.js","../node_modules/date-fns/getWeek.js","../node_modules/date-fns/_lib/addLeadingZeros.js","../node_modules/date-fns/_lib/format/lightFormatters.js","../node_modules/date-fns/_lib/format/formatters.js","../node_modules/date-fns/_lib/format/longFormatters.js","../node_modules/date-fns/_lib/protectedTokens.js","../node_modules/date-fns/isDate.js","../node_modules/date-fns/isValid.js","../node_modules/date-fns/format.js","../node_modules/date-fns/getDate.js","../node_modules/date-fns/getDaysInMonth.js","../node_modules/date-fns/getHours.js","../node_modules/date-fns/getMinutes.js","../node_modules/date-fns/getMonth.js","../node_modules/date-fns/getSeconds.js","../node_modules/date-fns/getMilliseconds.js","../node_modules/date-fns/getYear.js","../node_modules/date-fns/isAfter.js","../node_modules/date-fns/isBefore.js","../node_modules/date-fns/isEqual.js","../node_modules/date-fns/isSameDay.js","../node_modules/date-fns/isSameYear.js","../node_modules/date-fns/isSameMonth.js","../node_modules/date-fns/startOfHour.js","../node_modules/date-fns/isSameHour.js","../node_modules/date-fns/getDefaultOptions.js","../node_modules/date-fns/transpose.js","../node_modules/date-fns/parse/_lib/Setter.js","../node_modules/date-fns/parse/_lib/Parser.js","../node_modules/date-fns/parse/_lib/parsers/EraParser.js","../node_modules/date-fns/parse/_lib/constants.js","../node_modules/date-fns/parse/_lib/utils.js","../node_modules/date-fns/parse/_lib/parsers/YearParser.js","../node_modules/date-fns/parse/_lib/parsers/LocalWeekYearParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOWeekYearParser.js","../node_modules/date-fns/parse/_lib/parsers/ExtendedYearParser.js","../node_modules/date-fns/parse/_lib/parsers/QuarterParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneQuarterParser.js","../node_modules/date-fns/parse/_lib/parsers/MonthParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneMonthParser.js","../node_modules/date-fns/setWeek.js","../node_modules/date-fns/parse/_lib/parsers/LocalWeekParser.js","../node_modules/date-fns/setISOWeek.js","../node_modules/date-fns/parse/_lib/parsers/ISOWeekParser.js","../node_modules/date-fns/parse/_lib/parsers/DateParser.js","../node_modules/date-fns/parse/_lib/parsers/DayOfYearParser.js","../node_modules/date-fns/setDay.js","../node_modules/date-fns/parse/_lib/parsers/DayParser.js","../node_modules/date-fns/parse/_lib/parsers/LocalDayParser.js","../node_modules/date-fns/parse/_lib/parsers/StandAloneLocalDayParser.js","../node_modules/date-fns/getISODay.js","../node_modules/date-fns/setISODay.js","../node_modules/date-fns/parse/_lib/parsers/ISODayParser.js","../node_modules/date-fns/parse/_lib/parsers/AMPMParser.js","../node_modules/date-fns/parse/_lib/parsers/AMPMMidnightParser.js","../node_modules/date-fns/parse/_lib/parsers/DayPeriodParser.js","../node_modules/date-fns/parse/_lib/parsers/Hour1to12Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour0to23Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour0To11Parser.js","../node_modules/date-fns/parse/_lib/parsers/Hour1To24Parser.js","../node_modules/date-fns/parse/_lib/parsers/MinuteParser.js","../node_modules/date-fns/parse/_lib/parsers/SecondParser.js","../node_modules/date-fns/parse/_lib/parsers/FractionOfSecondParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneWithZParser.js","../node_modules/date-fns/parse/_lib/parsers/ISOTimezoneParser.js","../node_modules/date-fns/parse/_lib/parsers/TimestampSecondsParser.js","../node_modules/date-fns/parse/_lib/parsers/TimestampMillisecondsParser.js","../node_modules/date-fns/parse/_lib/parsers.js","../node_modules/date-fns/parse.js","../node_modules/date-fns/setDate.js","../node_modules/date-fns/setHours.js","../node_modules/date-fns/setMinutes.js","../node_modules/date-fns/setMonth.js","../node_modules/date-fns/setSeconds.js","../node_modules/date-fns/setMilliseconds.js","../node_modules/date-fns/setYear.js","../node_modules/date-fns/startOfMonth.js","../node_modules/date-fns/endOfMonth.js","../node_modules/date-fns/isWithinInterval.js","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@mui/x-date-pickers/AdapterDateFnsBase/AdapterDateFnsBase.mjs","../node_modules/@mui/x-date-pickers/AdapterDateFns/AdapterDateFns.mjs","../node_modules/date-fns/locale/en-AU/_lib/formatLong.js","../node_modules/date-fns/locale/en-AU.js","../node_modules/date-fns/locale/en-GB/_lib/formatLong.js","../node_modules/date-fns/locale/en-GB.js","../src/components/datepicker/utils.ts","../src/components/datepicker/DatePicker.tsx","../src/components/daterangepicker/DateRangePicker.tsx","../node_modules/@mui/icons-material/esm/CloseOutlined.js","../src/components/dialog/Dialog.tsx","../src/components/divider/Divider.tsx","../src/components/drawer/Drawer.tsx","../src/components/footer/Footer.tsx","../src/components/formcontrollabel/FormControlLabel.tsx","../src/components/formdialog/FormDialog.tsx","../node_modules/@mui/material/esm/styles/cssUtils.js","../node_modules/@mui/material/esm/styles/responsiveFontSizes.js","../node_modules/@mui/material/esm/Grid/Grid.js","../src/components/grid/Grid.tsx","../src/components/iconbutton/IconButton.tsx","../src/components/inputadornment/InputAdornment.tsx","../src/components/inputlabel/InputLabel.tsx","../src/components/list/List.tsx","../node_modules/@mui/utils/esm/chainPropTypes/chainPropTypes.js","../node_modules/@mui/utils/esm/elementTypeAcceptingRef/elementTypeAcceptingRef.js","../node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","../node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.js","../node_modules/@mui/utils/esm/resolveComponentProps/resolveComponentProps.js","../node_modules/@mui/utils/esm/extractEventHandlers/extractEventHandlers.js","../node_modules/@mui/utils/esm/omitEventHandlers/omitEventHandlers.js","../node_modules/@mui/utils/esm/mergeSlotProps/mergeSlotProps.js","../node_modules/@mui/material/esm/utils/useSlot.js","../node_modules/@mui/material/esm/List/ListContext.js","../node_modules/@mui/material/esm/ListItem/listItemClasses.js","../node_modules/@mui/material/esm/ListItemButton/listItemButtonClasses.js","../node_modules/@mui/material/esm/ListItemSecondaryAction/listItemSecondaryActionClasses.js","../node_modules/@mui/material/esm/ListItemSecondaryAction/ListItemSecondaryAction.js","../node_modules/@mui/material/esm/ListItem/ListItem.js","../src/components/listitem/ListItem.tsx","../src/components/listitembutton/ListItemButton.tsx","../node_modules/@mui/material/esm/utils/createSimplePaletteValueFilter.js","../node_modules/@mui/material/esm/Typography/typographyClasses.js","../node_modules/@mui/material/esm/Typography/Typography.js","../src/components/listitemtext/ListItemText.tsx","../src/components/loader/Loader.tsx","../src/components/menu/Menu.tsx","../src/components/menuitem/MenuItem.tsx","../src/components/numberdisplay/NumberDisplay.tsx","../src/components/numberinput/NumberInput.tsx","../src/components/select/Select.tsx","../src/components/snackbar/Snackbar.tsx","../src/components/tooltip/Tooltip.tsx","../src/components/staffavatar/StaffAvatar.tsx","../src/components/svgicon/SvgIcon.tsx","../src/components/tab/Tab.tsx","../src/components/tabs/Tabs.tsx","../src/components/textareaautosize/TextareaAutosize.tsx","../src/components/textfield/Textfield.tsx","../src/components/typography/Typography.tsx","../src/styles/theme.ts","../src/styles/leap-desktop.ts","../src/styles/leap-web.ts"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\");\nfunction jsxProd(type, config, maybeKey) {\n var key = null;\n void 0 !== maybeKey && (key = \"\" + maybeKey);\n void 0 !== config.key && (key = \"\" + config.key);\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n config = maybeKey.ref;\n return {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n ref: void 0 !== config ? config : null,\n props: maybeKey\n };\n}\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.jsx = jsxProd;\nexports.jsxs = jsxProd;\n","/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return type.displayName || \"Context\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, props, owner, debugStack, debugTask) {\n var refProp = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== refProp ? refProp : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n maybeKey,\n getOwner(),\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n isValidElement(node)\n ? node._store && (node._store.validated = 1)\n : \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_LAZY_TYPE &&\n (\"fulfilled\" === node._payload.status\n ? isValidElement(node._payload.value) &&\n node._payload.value._store &&\n (node._payload.value._store.validated = 1)\n : node._store && (node._store.validated = 1));\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n react_stack_bottom_frame: function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React.react_stack_bottom_frame.bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import { Accordion, AccordionProps } from \"@mui/material\";\r\n\r\nconst LCTAccordion = (props: AccordionProps) => {\r\n return <Accordion {...props}>{props.children}</Accordion>;\r\n};\r\n\r\nexport default LCTAccordion;\r\n","import { AccordionDetails, AccordionDetailsProps } from \"@mui/material\";\r\n\r\nconst LCTAccordionDetails = (props: AccordionDetailsProps) => {\r\n return <AccordionDetails {...props}>{props.children}</AccordionDetails>;\r\n};\r\n\r\nexport default LCTAccordionDetails;\r\n","const defaultGenerator = componentName => componentName;\nconst createClassNameGenerator = () => {\n let generate = defaultGenerator;\n return {\n configure(generator) {\n generate = generator;\n },\n generate(componentName) {\n return generate(componentName);\n },\n reset() {\n generate = defaultGenerator;\n }\n };\n};\nconst ClassNameGenerator = createClassNameGenerator();\nexport default ClassNameGenerator;","/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/interal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n * @param {number} code\n */\nexport default function formatMuiErrorMessage(code, ...args) {\n const url = new URL(`https://mui.com/production-error/?code=${code}`);\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `Minified MUI error #${code}; visit ${url} for the full message.`;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n// It should to be noted that this function isn't equivalent to `text-transform: capitalize`.\n//\n// A strict capitalization should uppercase the first letter of each word in the sentence.\n// We only handle the first word.\nexport default function capitalize(string) {\n if (typeof string !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `capitalize(string)` expects a string argument.' : _formatErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","/** @license React v16.13.1\n * react-is.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';var b=\"function\"===typeof Symbol&&Symbol.for,c=b?Symbol.for(\"react.element\"):60103,d=b?Symbol.for(\"react.portal\"):60106,e=b?Symbol.for(\"react.fragment\"):60107,f=b?Symbol.for(\"react.strict_mode\"):60108,g=b?Symbol.for(\"react.profiler\"):60114,h=b?Symbol.for(\"react.provider\"):60109,k=b?Symbol.for(\"react.context\"):60110,l=b?Symbol.for(\"react.async_mode\"):60111,m=b?Symbol.for(\"react.concurrent_mode\"):60111,n=b?Symbol.for(\"react.forward_ref\"):60112,p=b?Symbol.for(\"react.suspense\"):60113,q=b?\nSymbol.for(\"react.suspense_list\"):60120,r=b?Symbol.for(\"react.memo\"):60115,t=b?Symbol.for(\"react.lazy\"):60116,v=b?Symbol.for(\"react.block\"):60121,w=b?Symbol.for(\"react.fundamental\"):60117,x=b?Symbol.for(\"react.responder\"):60118,y=b?Symbol.for(\"react.scope\"):60119;\nfunction z(a){if(\"object\"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}exports.AsyncMode=l;exports.ConcurrentMode=m;exports.ContextConsumer=k;exports.ContextProvider=h;exports.Element=c;exports.ForwardRef=n;exports.Fragment=e;exports.Lazy=t;exports.Memo=r;exports.Portal=d;\nexports.Profiler=g;exports.StrictMode=f;exports.Suspense=p;exports.isAsyncMode=function(a){return A(a)||z(a)===l};exports.isConcurrentMode=A;exports.isContextConsumer=function(a){return z(a)===k};exports.isContextProvider=function(a){return z(a)===h};exports.isElement=function(a){return\"object\"===typeof a&&null!==a&&a.$$typeof===c};exports.isForwardRef=function(a){return z(a)===n};exports.isFragment=function(a){return z(a)===e};exports.isLazy=function(a){return z(a)===t};\nexports.isMemo=function(a){return z(a)===r};exports.isPortal=function(a){return z(a)===d};exports.isProfiler=function(a){return z(a)===g};exports.isStrictMode=function(a){return z(a)===f};exports.isSuspense=function(a){return z(a)===p};\nexports.isValidElementType=function(a){return\"string\"===typeof a||\"function\"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||\"object\"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};exports.typeOf=z;\n","/** @license React v16.13.1\n * react-is.development.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n\n\nif (process.env.NODE_ENV !== \"production\") {\n (function() {\n'use strict';\n\n// The Symbol used to tag the ReactElement-like types. If there is no native Symbol\n// nor polyfill, then a plain number is used for performance.\nvar hasSymbol = typeof Symbol === 'function' && Symbol.for;\nvar REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for('react.element') : 0xeac7;\nvar REACT_PORTAL_TYPE = hasSymbol ? Symbol.for('react.portal') : 0xeaca;\nvar REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for('react.fragment') : 0xeacb;\nvar REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeacc;\nvar REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;\nvar REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;\nvar REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace; // TODO: We don't use AsyncMode or ConcurrentMode anymore. They were temporary\n// (unstable) APIs that have been removed. Can we remove the symbols?\n\nvar REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for('react.async_mode') : 0xeacf;\nvar REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;\nvar REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;\nvar REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;\nvar REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;\nvar REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;\nvar REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;\nvar REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;\nvar REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;\nvar REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;\nvar REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;\n\nfunction isValidElementType(type) {\n return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);\n}\n\nfunction typeOf(object) {\n if (typeof object === 'object' && object !== null) {\n var $$typeof = object.$$typeof;\n\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n var type = object.type;\n\n switch (type) {\n case REACT_ASYNC_MODE_TYPE:\n case REACT_CONCURRENT_MODE_TYPE:\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n return type;\n\n default:\n var $$typeofType = type && type.$$typeof;\n\n switch ($$typeofType) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n case REACT_PROVIDER_TYPE:\n return $$typeofType;\n\n default:\n return $$typeof;\n }\n\n }\n\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n\n return undefined;\n} // AsyncMode is deprecated along with isAsyncMode\n\nvar AsyncMode = REACT_ASYNC_MODE_TYPE;\nvar ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;\nvar ContextConsumer = REACT_CONTEXT_TYPE;\nvar ContextProvider = REACT_PROVIDER_TYPE;\nvar Element = REACT_ELEMENT_TYPE;\nvar ForwardRef = REACT_FORWARD_REF_TYPE;\nvar Fragment = REACT_FRAGMENT_TYPE;\nvar Lazy = REACT_LAZY_TYPE;\nvar Memo = REACT_MEMO_TYPE;\nvar Portal = REACT_PORTAL_TYPE;\nvar Profiler = REACT_PROFILER_TYPE;\nvar StrictMode = REACT_STRICT_MODE_TYPE;\nvar Suspense = REACT_SUSPENSE_TYPE;\nvar hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecated\n\nfunction isAsyncMode(object) {\n {\n if (!hasWarnedAboutDeprecatedIsAsyncMode) {\n hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint\n\n console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');\n }\n }\n\n return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;\n}\nfunction isConcurrentMode(object) {\n return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;\n}\nfunction isContextConsumer(object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n}\nfunction isContextProvider(object) {\n return typeOf(object) === REACT_PROVIDER_TYPE;\n}\nfunction isElement(object) {\n return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;\n}\nfunction isForwardRef(object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n}\nfunction isFragment(object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n}\nfunction isLazy(object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n}\nfunction isMemo(object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n}\nfunction isPortal(object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n}\nfunction isProfiler(object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n}\nfunction isStrictMode(object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n}\nfunction isSuspense(object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n}\n\nexports.AsyncMode = AsyncMode;\nexports.ConcurrentMode = ConcurrentMode;\nexports.ContextConsumer = ContextConsumer;\nexports.ContextProvider = ContextProvider;\nexports.Element = Element;\nexports.ForwardRef = ForwardRef;\nexports.Fragment = Fragment;\nexports.Lazy = Lazy;\nexports.Memo = Memo;\nexports.Portal = Portal;\nexports.Profiler = Profiler;\nexports.StrictMode = StrictMode;\nexports.Suspense = Suspense;\nexports.isAsyncMode = isAsyncMode;\nexports.isConcurrentMode = isConcurrentMode;\nexports.isContextConsumer = isContextConsumer;\nexports.isContextProvider = isContextProvider;\nexports.isElement = isElement;\nexports.isForwardRef = isForwardRef;\nexports.isFragment = isFragment;\nexports.isLazy = isLazy;\nexports.isMemo = isMemo;\nexports.isPortal = isPortal;\nexports.isProfiler = isProfiler;\nexports.isStrictMode = isStrictMode;\nexports.isSuspense = isSuspense;\nexports.isValidElementType = isValidElementType;\nexports.typeOf = typeOf;\n })();\n}\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.min.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","/*\nobject-assign\n(c) Sindre Sorhus\n@license MIT\n*/\n\n'use strict';\n/* eslint-disable no-unused-vars */\nvar getOwnPropertySymbols = Object.getOwnPropertySymbols;\nvar hasOwnProperty = Object.prototype.hasOwnProperty;\nvar propIsEnumerable = Object.prototype.propertyIsEnumerable;\n\nfunction toObject(val) {\n\tif (val === null || val === undefined) {\n\t\tthrow new TypeError('Object.assign cannot be called with null or undefined');\n\t}\n\n\treturn Object(val);\n}\n\nfunction shouldUseNative() {\n\ttry {\n\t\tif (!Object.assign) {\n\t\t\treturn false;\n\t\t}\n\n\t\t// Detect buggy property enumeration order in older V8 versions.\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=4118\n\t\tvar test1 = new String('abc'); // eslint-disable-line no-new-wrappers\n\t\ttest1[5] = 'de';\n\t\tif (Object.getOwnPropertyNames(test1)[0] === '5') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test2 = {};\n\t\tfor (var i = 0; i < 10; i++) {\n\t\t\ttest2['_' + String.fromCharCode(i)] = i;\n\t\t}\n\t\tvar order2 = Object.getOwnPropertyNames(test2).map(function (n) {\n\t\t\treturn test2[n];\n\t\t});\n\t\tif (order2.join('') !== '0123456789') {\n\t\t\treturn false;\n\t\t}\n\n\t\t// https://bugs.chromium.org/p/v8/issues/detail?id=3056\n\t\tvar test3 = {};\n\t\t'abcdefghijklmnopqrst'.split('').forEach(function (letter) {\n\t\t\ttest3[letter] = letter;\n\t\t});\n\t\tif (Object.keys(Object.assign({}, test3)).join('') !==\n\t\t\t\t'abcdefghijklmnopqrst') {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t} catch (err) {\n\t\t// We don't expect any of the above to throw, but better to be safe.\n\t\treturn false;\n\t}\n}\n\nmodule.exports = shouldUseNative() ? Object.assign : function (target, source) {\n\tvar from;\n\tvar to = toObject(target);\n\tvar symbols;\n\n\tfor (var s = 1; s < arguments.length; s++) {\n\t\tfrom = Object(arguments[s]);\n\n\t\tfor (var key in from) {\n\t\t\tif (hasOwnProperty.call(from, key)) {\n\t\t\t\tto[key] = from[key];\n\t\t\t}\n\t\t}\n\n\t\tif (getOwnPropertySymbols) {\n\t\t\tsymbols = getOwnPropertySymbols(from);\n\t\t\tfor (var i = 0; i < symbols.length; i++) {\n\t\t\t\tif (propIsEnumerable.call(from, symbols[i])) {\n\t\t\t\t\tto[symbols[i]] = from[symbols[i]];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\treturn to;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';\n\nmodule.exports = ReactPropTypesSecret;\n","module.exports = Function.call.bind(Object.prototype.hasOwnProperty);\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n var loggedTypeFailures = {};\n var has = require('./lib/has');\n\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) { /**/ }\n };\n}\n\n/**\n * Assert that the values match with the type specs.\n * Error messages are memorized and will only be shown once.\n *\n * @param {object} typeSpecs Map of name to a ReactPropType\n * @param {object} values Runtime values that need to be type-checked\n * @param {string} location e.g. \"prop\", \"context\", \"child context\"\n * @param {string} componentName Name of the component for error messages.\n * @param {?Function} getStack Returns the component stack.\n * @private\n */\nfunction checkPropTypes(typeSpecs, values, location, componentName, getStack) {\n if (process.env.NODE_ENV !== 'production') {\n for (var typeSpecName in typeSpecs) {\n if (has(typeSpecs, typeSpecName)) {\n var error;\n // Prop type validation may throw. In case they do, we don't want to\n // fail the render phase where it didn't fail before. So we log it.\n // After these have been cleaned up, we'll let them throw.\n try {\n // This is intentionally an invariant that gets caught. It's the same\n // behavior as without this statement except with a better message.\n if (typeof typeSpecs[typeSpecName] !== 'function') {\n var err = Error(\n (componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +\n 'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'\n );\n err.name = 'Invariant Violation';\n throw err;\n }\n error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);\n } catch (ex) {\n error = ex;\n }\n if (error && !(error instanceof Error)) {\n printWarning(\n (componentName || 'React class') + ': type specification of ' +\n location + ' `' + typeSpecName + '` is invalid; the type checker ' +\n 'function must return `null` or an `Error` but returned a ' + typeof error + '. ' +\n 'You may have forgotten to pass an argument to the type checker ' +\n 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' +\n 'shape all require an argument).'\n );\n }\n if (error instanceof Error && !(error.message in loggedTypeFailures)) {\n // Only monitor this failure once because there tends to be a lot of the\n // same error.\n loggedTypeFailures[error.message] = true;\n\n var stack = getStack ? getStack() : '';\n\n printWarning(\n 'Failed ' + location + ' type: ' + error.message + (stack != null ? stack : '')\n );\n }\n }\n }\n }\n}\n\n/**\n * Resets warning cache when testing.\n *\n * @private\n */\ncheckPropTypes.resetWarningCache = function() {\n if (process.env.NODE_ENV !== 'production') {\n loggedTypeFailures = {};\n }\n}\n\nmodule.exports = checkPropTypes;\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactIs = require('react-is');\nvar assign = require('object-assign');\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\nvar has = require('./lib/has');\nvar checkPropTypes = require('./checkPropTypes');\n\nvar printWarning = function() {};\n\nif (process.env.NODE_ENV !== 'production') {\n printWarning = function(text) {\n var message = 'Warning: ' + text;\n if (typeof console !== 'undefined') {\n console.error(message);\n }\n try {\n // --- Welcome to debugging React ---\n // This error was thrown as a convenience so that you can use this stack\n // to find the callsite that caused this warning to fire.\n throw new Error(message);\n } catch (x) {}\n };\n}\n\nfunction emptyFunctionThatReturnsNull() {\n return null;\n}\n\nmodule.exports = function(isValidElement, throwOnDirectAccess) {\n /* global Symbol */\n var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;\n var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.\n\n /**\n * Returns the iterator method function contained on the iterable object.\n *\n * Be sure to invoke the function with the iterable as context:\n *\n * var iteratorFn = getIteratorFn(myIterable);\n * if (iteratorFn) {\n * var iterator = iteratorFn.call(myIterable);\n * ...\n * }\n *\n * @param {?object} maybeIterable\n * @return {?function}\n */\n function getIteratorFn(maybeIterable) {\n var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);\n if (typeof iteratorFn === 'function') {\n return iteratorFn;\n }\n }\n\n /**\n * Collection of methods that allow declaration and validation of props that are\n * supplied to React components. Example usage:\n *\n * var Props = require('ReactPropTypes');\n * var MyArticle = React.createClass({\n * propTypes: {\n * // An optional string prop named \"description\".\n * description: Props.string,\n *\n * // A required enum prop named \"category\".\n * category: Props.oneOf(['News','Photos']).isRequired,\n *\n * // A prop named \"dialog\" that requires an instance of Dialog.\n * dialog: Props.instanceOf(Dialog).isRequired\n * },\n * render: function() { ... }\n * });\n *\n * A more formal specification of how these methods are used:\n *\n * type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)\n * decl := ReactPropTypes.{type}(.isRequired)?\n *\n * Each and every declaration produces a function with the same signature. This\n * allows the creation of custom validation functions. For example:\n *\n * var MyLink = React.createClass({\n * propTypes: {\n * // An optional string or URI prop named \"href\".\n * href: function(props, propName, componentName) {\n * var propValue = props[propName];\n * if (propValue != null && typeof propValue !== 'string' &&\n * !(propValue instanceof URI)) {\n * return new Error(\n * 'Expected a string or an URI for ' + propName + ' in ' +\n * componentName\n * );\n * }\n * }\n * },\n * render: function() {...}\n * });\n *\n * @internal\n */\n\n var ANONYMOUS = '<<anonymous>>';\n\n // Important!\n // Keep this list in sync with production version in `./factoryWithThrowingShims.js`.\n var ReactPropTypes = {\n array: createPrimitiveTypeChecker('array'),\n bigint: createPrimitiveTypeChecker('bigint'),\n bool: createPrimitiveTypeChecker('boolean'),\n func: createPrimitiveTypeChecker('function'),\n number: createPrimitiveTypeChecker('number'),\n object: createPrimitiveTypeChecker('object'),\n string: createPrimitiveTypeChecker('string'),\n symbol: createPrimitiveTypeChecker('symbol'),\n\n any: createAnyTypeChecker(),\n arrayOf: createArrayOfTypeChecker,\n element: createElementTypeChecker(),\n elementType: createElementTypeTypeChecker(),\n instanceOf: createInstanceTypeChecker,\n node: createNodeChecker(),\n objectOf: createObjectOfTypeChecker,\n oneOf: createEnumTypeChecker,\n oneOfType: createUnionTypeChecker,\n shape: createShapeTypeChecker,\n exact: createStrictShapeTypeChecker,\n };\n\n /**\n * inlined Object.is polyfill to avoid requiring consumers ship their own\n * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is\n */\n /*eslint-disable no-self-compare*/\n function is(x, y) {\n // SameValue algorithm\n if (x === y) {\n // Steps 1-5, 7-10\n // Steps 6.b-6.e: +0 != -0\n return x !== 0 || 1 / x === 1 / y;\n } else {\n // Step 6.a: NaN == NaN\n return x !== x && y !== y;\n }\n }\n /*eslint-enable no-self-compare*/\n\n /**\n * We use an Error-like object for backward compatibility as people may call\n * PropTypes directly and inspect their output. However, we don't use real\n * Errors anymore. We don't inspect their stack anyway, and creating them\n * is prohibitively expensive if they are created too often, such as what\n * happens in oneOfType() for any type before the one that matched.\n */\n function PropTypeError(message, data) {\n this.message = message;\n this.data = data && typeof data === 'object' ? data: {};\n this.stack = '';\n }\n // Make `instanceof Error` still work for returned errors.\n PropTypeError.prototype = Error.prototype;\n\n function createChainableTypeChecker(validate) {\n if (process.env.NODE_ENV !== 'production') {\n var manualPropTypeCallCache = {};\n var manualPropTypeWarningCount = 0;\n }\n function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {\n componentName = componentName || ANONYMOUS;\n propFullName = propFullName || propName;\n\n if (secret !== ReactPropTypesSecret) {\n if (throwOnDirectAccess) {\n // New behavior only for users of `prop-types` package\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use `PropTypes.checkPropTypes()` to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n } else if (process.env.NODE_ENV !== 'production' && typeof console !== 'undefined') {\n // Old behavior for people using React.PropTypes\n var cacheKey = componentName + ':' + propName;\n if (\n !manualPropTypeCallCache[cacheKey] &&\n // Avoid spamming the console because they are often not actionable except for lib authors\n manualPropTypeWarningCount < 3\n ) {\n printWarning(\n 'You are manually calling a React.PropTypes validation ' +\n 'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +\n 'and will throw in the standalone `prop-types` package. ' +\n 'You may be seeing this warning due to a third-party PropTypes ' +\n 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'\n );\n manualPropTypeCallCache[cacheKey] = true;\n manualPropTypeWarningCount++;\n }\n }\n }\n if (props[propName] == null) {\n if (isRequired) {\n if (props[propName] === null) {\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));\n }\n return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));\n }\n return null;\n } else {\n return validate(props, propName, componentName, location, propFullName);\n }\n }\n\n var chainedCheckType = checkType.bind(null, false);\n chainedCheckType.isRequired = checkType.bind(null, true);\n\n return chainedCheckType;\n }\n\n function createPrimitiveTypeChecker(expectedType) {\n function validate(props, propName, componentName, location, propFullName, secret) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== expectedType) {\n // `propValue` being instance of, say, date/regexp, pass the 'object'\n // check, but we can offer a more precise error message here rather than\n // 'of type `object`'.\n var preciseType = getPreciseType(propValue);\n\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),\n {expectedType: expectedType}\n );\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createAnyTypeChecker() {\n return createChainableTypeChecker(emptyFunctionThatReturnsNull);\n }\n\n function createArrayOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');\n }\n var propValue = props[propName];\n if (!Array.isArray(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));\n }\n for (var i = 0; i < propValue.length; i++) {\n var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!isValidElement(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createElementTypeTypeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n if (!ReactIs.isValidElementType(propValue)) {\n var propType = getPropType(propValue);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement type.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createInstanceTypeChecker(expectedClass) {\n function validate(props, propName, componentName, location, propFullName) {\n if (!(props[propName] instanceof expectedClass)) {\n var expectedClassName = expectedClass.name || ANONYMOUS;\n var actualClassName = getClassName(props[propName]);\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createEnumTypeChecker(expectedValues) {\n if (!Array.isArray(expectedValues)) {\n if (process.env.NODE_ENV !== 'production') {\n if (arguments.length > 1) {\n printWarning(\n 'Invalid arguments supplied to oneOf, expected an array, got ' + arguments.length + ' arguments. ' +\n 'A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).'\n );\n } else {\n printWarning('Invalid argument supplied to oneOf, expected an array.');\n }\n }\n return emptyFunctionThatReturnsNull;\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n for (var i = 0; i < expectedValues.length; i++) {\n if (is(propValue, expectedValues[i])) {\n return null;\n }\n }\n\n var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {\n var type = getPreciseType(value);\n if (type === 'symbol') {\n return String(value);\n }\n return value;\n });\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + String(propValue) + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createObjectOfTypeChecker(typeChecker) {\n function validate(props, propName, componentName, location, propFullName) {\n if (typeof typeChecker !== 'function') {\n return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');\n }\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));\n }\n for (var key in propValue) {\n if (has(propValue, key)) {\n var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error instanceof Error) {\n return error;\n }\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createUnionTypeChecker(arrayOfTypeCheckers) {\n if (!Array.isArray(arrayOfTypeCheckers)) {\n process.env.NODE_ENV !== 'production' ? printWarning('Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;\n return emptyFunctionThatReturnsNull;\n }\n\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n if (typeof checker !== 'function') {\n printWarning(\n 'Invalid argument supplied to oneOfType. Expected an array of check functions, but ' +\n 'received ' + getPostfixForTypeWarning(checker) + ' at index ' + i + '.'\n );\n return emptyFunctionThatReturnsNull;\n }\n }\n\n function validate(props, propName, componentName, location, propFullName) {\n var expectedTypes = [];\n for (var i = 0; i < arrayOfTypeCheckers.length; i++) {\n var checker = arrayOfTypeCheckers[i];\n var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret);\n if (checkerResult == null) {\n return null;\n }\n if (checkerResult.data && has(checkerResult.data, 'expectedType')) {\n expectedTypes.push(checkerResult.data.expectedType);\n }\n }\n var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));\n }\n return createChainableTypeChecker(validate);\n }\n\n function createNodeChecker() {\n function validate(props, propName, componentName, location, propFullName) {\n if (!isNode(props[propName])) {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function invalidValidatorError(componentName, location, propFullName, key, type) {\n return new PropTypeError(\n (componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +\n 'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'\n );\n }\n\n function createShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n for (var key in shapeTypes) {\n var checker = shapeTypes[key];\n if (typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n return createChainableTypeChecker(validate);\n }\n\n function createStrictShapeTypeChecker(shapeTypes) {\n function validate(props, propName, componentName, location, propFullName) {\n var propValue = props[propName];\n var propType = getPropType(propValue);\n if (propType !== 'object') {\n return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));\n }\n // We need to check all keys in case some are required but missing from props.\n var allKeys = assign({}, props[propName], shapeTypes);\n for (var key in allKeys) {\n var checker = shapeTypes[key];\n if (has(shapeTypes, key) && typeof checker !== 'function') {\n return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));\n }\n if (!checker) {\n return new PropTypeError(\n 'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +\n '\\nBad object: ' + JSON.stringify(props[propName], null, ' ') +\n '\\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')\n );\n }\n var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);\n if (error) {\n return error;\n }\n }\n return null;\n }\n\n return createChainableTypeChecker(validate);\n }\n\n function isNode(propValue) {\n switch (typeof propValue) {\n case 'number':\n case 'string':\n case 'undefined':\n return true;\n case 'boolean':\n return !propValue;\n case 'object':\n if (Array.isArray(propValue)) {\n return propValue.every(isNode);\n }\n if (propValue === null || isValidElement(propValue)) {\n return true;\n }\n\n var iteratorFn = getIteratorFn(propValue);\n if (iteratorFn) {\n var iterator = iteratorFn.call(propValue);\n var step;\n if (iteratorFn !== propValue.entries) {\n while (!(step = iterator.next()).done) {\n if (!isNode(step.value)) {\n return false;\n }\n }\n } else {\n // Iterator will provide entry [k,v] tuples rather than values.\n while (!(step = iterator.next()).done) {\n var entry = step.value;\n if (entry) {\n if (!isNode(entry[1])) {\n return false;\n }\n }\n }\n }\n } else {\n return false;\n }\n\n return true;\n default:\n return false;\n }\n }\n\n function isSymbol(propType, propValue) {\n // Native Symbol.\n if (propType === 'symbol') {\n return true;\n }\n\n // falsy value can't be a Symbol\n if (!propValue) {\n return false;\n }\n\n // 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'\n if (propValue['@@toStringTag'] === 'Symbol') {\n return true;\n }\n\n // Fallback for non-spec compliant Symbols which are polyfilled.\n if (typeof Symbol === 'function' && propValue instanceof Symbol) {\n return true;\n }\n\n return false;\n }\n\n // Equivalent of `typeof` but with special handling for array and regexp.\n function getPropType(propValue) {\n var propType = typeof propValue;\n if (Array.isArray(propValue)) {\n return 'array';\n }\n if (propValue instanceof RegExp) {\n // Old webkits (at least until Android 4.0) return 'function' rather than\n // 'object' for typeof a RegExp. We'll normalize this here so that /bla/\n // passes PropTypes.object.\n return 'object';\n }\n if (isSymbol(propType, propValue)) {\n return 'symbol';\n }\n return propType;\n }\n\n // This handles more types than `getPropType`. Only used for error messages.\n // See `createPrimitiveTypeChecker`.\n function getPreciseType(propValue) {\n if (typeof propValue === 'undefined' || propValue === null) {\n return '' + propValue;\n }\n var propType = getPropType(propValue);\n if (propType === 'object') {\n if (propValue instanceof Date) {\n return 'date';\n } else if (propValue instanceof RegExp) {\n return 'regexp';\n }\n }\n return propType;\n }\n\n // Returns a string that is postfixed to a warning about an invalid type.\n // For example, \"undefined\" or \"of type array\"\n function getPostfixForTypeWarning(value) {\n var type = getPreciseType(value);\n switch (type) {\n case 'array':\n case 'object':\n return 'an ' + type;\n case 'boolean':\n case 'date':\n case 'regexp':\n return 'a ' + type;\n default:\n return type;\n }\n }\n\n // Returns class name of the object, if any.\n function getClassName(propValue) {\n if (!propValue.constructor || !propValue.constructor.name) {\n return ANONYMOUS;\n }\n return propValue.constructor.name;\n }\n\n ReactPropTypes.checkPropTypes = checkPropTypes;\n ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\nvar ReactPropTypesSecret = require('./lib/ReactPropTypesSecret');\n\nfunction emptyFunction() {}\nfunction emptyFunctionWithReset() {}\nemptyFunctionWithReset.resetWarningCache = emptyFunction;\n\nmodule.exports = function() {\n function shim(props, propName, componentName, location, propFullName, secret) {\n if (secret === ReactPropTypesSecret) {\n // It is still safe when called from React.\n return;\n }\n var err = new Error(\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n err.name = 'Invariant Violation';\n throw err;\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n var ReactPropTypes = {\n array: shim,\n bigint: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n elementType: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim,\n exact: getShim,\n\n checkPropTypes: emptyFunctionWithReset,\n resetWarningCache: emptyFunction\n };\n\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var ReactIs = require('react-is');\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(ReactIs.isElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0\n ---\n These rules are preventing the performance optimizations below.\n */\n\n/**\n * Compose classes from multiple sources.\n *\n * @example\n * ```tsx\n * const slots = {\n * root: ['root', 'primary'],\n * label: ['label'],\n * };\n *\n * const getUtilityClass = (slot) => `MuiButton-${slot}`;\n *\n * const classes = {\n * root: 'my-root-class',\n * };\n *\n * const output = composeClasses(slots, getUtilityClass, classes);\n * // {\n * // root: 'MuiButton-root MuiButton-primary my-root-class',\n * // label: 'MuiButton-label',\n * // }\n * ```\n *\n * @param slots a list of classes for each possible slot\n * @param getUtilityClass a function to resolve the class based on the slot name\n * @param classes the input classes from props\n * @returns the resolved classes for all slots\n */\nexport default function composeClasses(slots, getUtilityClass, classes = undefined) {\n const output = {};\n for (const slotName in slots) {\n const slot = slots[slotName];\n let buffer = '';\n let start = true;\n for (let i = 0; i < slot.length; i += 1) {\n const value = slot[i];\n if (value) {\n buffer += (start === true ? '' : ' ') + getUtilityClass(value);\n start = false;\n if (classes && classes[value]) {\n buffer += ' ' + classes[value];\n }\n }\n }\n output[slotName] = buffer;\n }\n return output;\n}","/**\n * @license React\n * react-is.production.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\nvar REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\nfunction typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n}\nexports.ContextConsumer = REACT_CONSUMER_TYPE;\nexports.ContextProvider = REACT_CONTEXT_TYPE;\nexports.Element = REACT_ELEMENT_TYPE;\nexports.ForwardRef = REACT_FORWARD_REF_TYPE;\nexports.Fragment = REACT_FRAGMENT_TYPE;\nexports.Lazy = REACT_LAZY_TYPE;\nexports.Memo = REACT_MEMO_TYPE;\nexports.Portal = REACT_PORTAL_TYPE;\nexports.Profiler = REACT_PROFILER_TYPE;\nexports.StrictMode = REACT_STRICT_MODE_TYPE;\nexports.Suspense = REACT_SUSPENSE_TYPE;\nexports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\nexports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n};\nexports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n};\nexports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n};\nexports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n};\nexports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n};\nexports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n};\nexports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n};\nexports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n};\nexports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n};\nexports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n};\nexports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n};\nexports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n};\nexports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n};\nexports.typeOf = typeOf;\n","/**\n * @license React\n * react-is.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function typeOf(object) {\n if (\"object\" === typeof object && null !== object) {\n var $$typeof = object.$$typeof;\n switch ($$typeof) {\n case REACT_ELEMENT_TYPE:\n switch (((object = object.type), object)) {\n case REACT_FRAGMENT_TYPE:\n case REACT_PROFILER_TYPE:\n case REACT_STRICT_MODE_TYPE:\n case REACT_SUSPENSE_TYPE:\n case REACT_SUSPENSE_LIST_TYPE:\n case REACT_VIEW_TRANSITION_TYPE:\n return object;\n default:\n switch (((object = object && object.$$typeof), object)) {\n case REACT_CONTEXT_TYPE:\n case REACT_FORWARD_REF_TYPE:\n case REACT_LAZY_TYPE:\n case REACT_MEMO_TYPE:\n return object;\n case REACT_CONSUMER_TYPE:\n return object;\n default:\n return $$typeof;\n }\n }\n case REACT_PORTAL_TYPE:\n return $$typeof;\n }\n }\n }\n var REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\"),\n REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_VIEW_TRANSITION_TYPE = Symbol.for(\"react.view_transition\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\");\n exports.ContextConsumer = REACT_CONSUMER_TYPE;\n exports.ContextProvider = REACT_CONTEXT_TYPE;\n exports.Element = REACT_ELEMENT_TYPE;\n exports.ForwardRef = REACT_FORWARD_REF_TYPE;\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.Lazy = REACT_LAZY_TYPE;\n exports.Memo = REACT_MEMO_TYPE;\n exports.Portal = REACT_PORTAL_TYPE;\n exports.Profiler = REACT_PROFILER_TYPE;\n exports.StrictMode = REACT_STRICT_MODE_TYPE;\n exports.Suspense = REACT_SUSPENSE_TYPE;\n exports.SuspenseList = REACT_SUSPENSE_LIST_TYPE;\n exports.isContextConsumer = function (object) {\n return typeOf(object) === REACT_CONSUMER_TYPE;\n };\n exports.isContextProvider = function (object) {\n return typeOf(object) === REACT_CONTEXT_TYPE;\n };\n exports.isElement = function (object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n };\n exports.isForwardRef = function (object) {\n return typeOf(object) === REACT_FORWARD_REF_TYPE;\n };\n exports.isFragment = function (object) {\n return typeOf(object) === REACT_FRAGMENT_TYPE;\n };\n exports.isLazy = function (object) {\n return typeOf(object) === REACT_LAZY_TYPE;\n };\n exports.isMemo = function (object) {\n return typeOf(object) === REACT_MEMO_TYPE;\n };\n exports.isPortal = function (object) {\n return typeOf(object) === REACT_PORTAL_TYPE;\n };\n exports.isProfiler = function (object) {\n return typeOf(object) === REACT_PROFILER_TYPE;\n };\n exports.isStrictMode = function (object) {\n return typeOf(object) === REACT_STRICT_MODE_TYPE;\n };\n exports.isSuspense = function (object) {\n return typeOf(object) === REACT_SUSPENSE_TYPE;\n };\n exports.isSuspenseList = function (object) {\n return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;\n };\n exports.isValidElementType = function (type) {\n return \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE ||\n void 0 !== type.getModuleId))\n ? !0\n : !1;\n };\n exports.typeOf = typeOf;\n })();\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-is.production.js');\n} else {\n module.exports = require('./cjs/react-is.development.js');\n}\n","import * as React from 'react';\nimport { isValidElementType } from 'react-is';\n\n// https://github.com/sindresorhus/is-plain-obj/blob/main/index.js\nexport function isPlainObject(item) {\n if (typeof item !== 'object' || item === null) {\n return false;\n }\n const prototype = Object.getPrototypeOf(item);\n return (prototype === null || prototype === Object.prototype || Object.getPrototypeOf(prototype) === null) && !(Symbol.toStringTag in item) && !(Symbol.iterator in item);\n}\nfunction deepClone(source) {\n if (/*#__PURE__*/React.isValidElement(source) || isValidElementType(source) || !isPlainObject(source)) {\n return source;\n }\n const output = {};\n Object.keys(source).forEach(key => {\n output[key] = deepClone(source[key]);\n });\n return output;\n}\n\n/**\n * Merge objects deeply.\n * It will shallow copy React elements.\n *\n * If `options.clone` is set to `false` the source object will be merged directly into the target object.\n *\n * @example\n * ```ts\n * deepmerge({ a: { b: 1 }, d: 2 }, { a: { c: 2 }, d: 4 });\n * // => { a: { b: 1, c: 2 }, d: 4 }\n * ````\n *\n * @param target The target object.\n * @param source The source object.\n * @param options The merge options.\n * @param options.clone Set to `false` to merge the source object directly into the target object.\n * @returns The merged object.\n */\nexport default function deepmerge(target, source, options = {\n clone: true\n}) {\n const output = options.clone ? {\n ...target\n } : target;\n if (isPlainObject(target) && isPlainObject(source)) {\n Object.keys(source).forEach(key => {\n if (/*#__PURE__*/React.isValidElement(source[key]) || isValidElementType(source[key])) {\n output[key] = source[key];\n } else if (isPlainObject(source[key]) &&\n // Avoid prototype pollution\n Object.prototype.hasOwnProperty.call(target, key) && isPlainObject(target[key])) {\n // Since `output` is a clone of `target` and we have narrowed `target` in this block we can cast to the same type.\n output[key] = deepmerge(target[key], source[key], options);\n } else if (options.clone) {\n output[key] = isPlainObject(source[key]) ? deepClone(source[key]) : source[key];\n } else {\n output[key] = source[key];\n }\n });\n }\n return output;\n}","import deepmerge from '@mui/utils/deepmerge';\nfunction merge(acc, item) {\n if (!item) {\n return acc;\n }\n return deepmerge(acc, item, {\n clone: false // No need to clone deep, it's way faster.\n });\n}\nexport default merge;","import PropTypes from 'prop-types';\nconst responsivePropType = process.env.NODE_ENV !== 'production' ? PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.object, PropTypes.array]) : {};\nexport default responsivePropType;","/**\n * For using in `sx` prop to sort the breakpoint from low to high.\n * Note: this function does not work and will not support multiple units.\n * e.g. input: { '@container (min-width:300px)': '1rem', '@container (min-width:40rem)': '2rem' }\n * output: { '@container (min-width:40rem)': '2rem', '@container (min-width:300px)': '1rem' } // since 40 < 300 even though 40rem > 300px\n */\nexport function sortContainerQueries(theme, css) {\n if (!theme.containerQueries) {\n return css;\n }\n const sorted = Object.keys(css).filter(key => key.startsWith('@container')).sort((a, b) => {\n const regex = /min-width:\\s*([0-9.]+)/;\n return +(a.match(regex)?.[1] || 0) - +(b.match(regex)?.[1] || 0);\n });\n if (!sorted.length) {\n return css;\n }\n return sorted.reduce((acc, key) => {\n const value = css[key];\n delete acc[key];\n acc[key] = value;\n return acc;\n }, {\n ...css\n });\n}\nexport function isCqShorthand(breakpointKeys, value) {\n return value === '@' || value.startsWith('@') && (breakpointKeys.some(key => value.startsWith(`@${key}`)) || !!value.match(/^@\\d/));\n}\nexport function getContainerQuery(theme, shorthand) {\n const matches = shorthand.match(/^@([^/]+)?\\/?(.+)?$/);\n if (!matches) {\n if (process.env.NODE_ENV !== 'production') {\n throw /* minify-error */new Error(`MUI: The provided shorthand ${`(${shorthand})`} is invalid. The format should be \\`@<breakpoint | number>\\` or \\`@<breakpoint | number>/<container>\\`.\\n` + 'For example, `@sm` or `@600` or `@40rem/sidebar`.');\n }\n return null;\n }\n const [, containerQuery, containerName] = matches;\n const value = Number.isNaN(+containerQuery) ? containerQuery || 0 : +containerQuery;\n return theme.containerQueries(containerName).up(value);\n}\nexport default function cssContainerQueries(themeInput) {\n const toContainerQuery = (mediaQuery, name) => mediaQuery.replace('@media', name ? `@container ${name}` : '@container');\n function attachCq(node, name) {\n node.up = (...args) => toContainerQuery(themeInput.breakpoints.up(...args), name);\n node.down = (...args) => toContainerQuery(themeInput.breakpoints.down(...args), name);\n node.between = (...args) => toContainerQuery(themeInput.breakpoints.between(...args), name);\n node.only = (...args) => toContainerQuery(themeInput.breakpoints.only(...args), name);\n node.not = (...args) => {\n const result = toContainerQuery(themeInput.breakpoints.not(...args), name);\n if (result.includes('not all and')) {\n // `@container` does not work with `not all and`, so need to invert the logic\n return result.replace('not all and ', '').replace('min-width:', 'width<').replace('max-width:', 'width>').replace('and', 'or');\n }\n return result;\n };\n }\n const node = {};\n const containerQueries = name => {\n attachCq(node, name);\n return node;\n };\n attachCq(containerQueries);\n return {\n ...themeInput,\n containerQueries\n };\n}","import PropTypes from 'prop-types';\nimport deepmerge from '@mui/utils/deepmerge';\nimport merge from \"../merge/index.js\";\nimport { isCqShorthand, getContainerQuery } from \"../cssContainerQueries/index.js\";\n\n// The breakpoint **start** at this value.\n// For instance with the first breakpoint xs: [xs, sm[.\nexport const values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n};\nconst defaultBreakpoints = {\n // Sorted ASC by size. That's important.\n // It can't be configured as it's used statically for propTypes.\n keys: ['xs', 'sm', 'md', 'lg', 'xl'],\n up: key => `@media (min-width:${values[key]}px)`\n};\nconst defaultContainerQueries = {\n containerQueries: containerName => ({\n up: key => {\n let result = typeof key === 'number' ? key : values[key] || key;\n if (typeof result === 'number') {\n result = `${result}px`;\n }\n return containerName ? `@container ${containerName} (min-width:${result})` : `@container (min-width:${result})`;\n }\n })\n};\nexport function handleBreakpoints(props, propValue, styleFromPropValue) {\n const theme = props.theme || {};\n if (Array.isArray(propValue)) {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return propValue.reduce((acc, item, index) => {\n acc[themeBreakpoints.up(themeBreakpoints.keys[index])] = styleFromPropValue(propValue[index]);\n return acc;\n }, {});\n }\n if (typeof propValue === 'object') {\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n return Object.keys(propValue).reduce((acc, breakpoint) => {\n if (isCqShorthand(themeBreakpoints.keys, breakpoint)) {\n const containerKey = getContainerQuery(theme.containerQueries ? theme : defaultContainerQueries, breakpoint);\n if (containerKey) {\n acc[containerKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n }\n }\n // key is breakpoint\n else if (Object.keys(themeBreakpoints.values || values).includes(breakpoint)) {\n const mediaKey = themeBreakpoints.up(breakpoint);\n acc[mediaKey] = styleFromPropValue(propValue[breakpoint], breakpoint);\n } else {\n const cssKey = breakpoint;\n acc[cssKey] = propValue[cssKey];\n }\n return acc;\n }, {});\n }\n const output = styleFromPropValue(propValue);\n return output;\n}\nfunction breakpoints(styleFunction) {\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const newStyleFunction = props => {\n const theme = props.theme || {};\n const base = styleFunction(props);\n const themeBreakpoints = theme.breakpoints || defaultBreakpoints;\n const extended = themeBreakpoints.keys.reduce((acc, key) => {\n if (props[key]) {\n acc = acc || {};\n acc[themeBreakpoints.up(key)] = styleFunction({\n theme,\n ...props[key]\n });\n }\n return acc;\n }, null);\n return merge(base, extended);\n };\n newStyleFunction.propTypes = process.env.NODE_ENV !== 'production' ? {\n ...styleFunction.propTypes,\n xs: PropTypes.object,\n sm: PropTypes.object,\n md: PropTypes.object,\n lg: PropTypes.object,\n xl: PropTypes.object\n } : {};\n newStyleFunction.filterProps = ['xs', 'sm', 'md', 'lg', 'xl', ...styleFunction.filterProps];\n return newStyleFunction;\n}\nexport function createEmptyBreakpointObject(breakpointsInput = {}) {\n const breakpointsInOrder = breakpointsInput.keys?.reduce((acc, key) => {\n const breakpointStyleKey = breakpointsInput.up(key);\n acc[breakpointStyleKey] = {};\n return acc;\n }, {});\n return breakpointsInOrder || {};\n}\nexport function removeUnusedBreakpoints(breakpointKeys, style) {\n return breakpointKeys.reduce((acc, key) => {\n const breakpointOutput = acc[key];\n const isBreakpointUnused = !breakpointOutput || Object.keys(breakpointOutput).length === 0;\n if (isBreakpointUnused) {\n delete acc[key];\n }\n return acc;\n }, style);\n}\nexport function mergeBreakpointsInOrder(breakpointsInput, ...styles) {\n const emptyBreakpoints = createEmptyBreakpointObject(breakpointsInput);\n const mergedOutput = [emptyBreakpoints, ...styles].reduce((prev, next) => deepmerge(prev, next), {});\n return removeUnusedBreakpoints(Object.keys(emptyBreakpoints), mergedOutput);\n}\n\n// compute base for responsive values; e.g.,\n// [1,2,3] => {xs: true, sm: true, md: true}\n// {xs: 1, sm: 2, md: 3} => {xs: true, sm: true, md: true}\nexport function computeBreakpointsBase(breakpointValues, themeBreakpoints) {\n // fixed value\n if (typeof breakpointValues !== 'object') {\n return {};\n }\n const base = {};\n const breakpointsKeys = Object.keys(themeBreakpoints);\n if (Array.isArray(breakpointValues)) {\n breakpointsKeys.forEach((breakpoint, i) => {\n if (i < breakpointValues.length) {\n base[breakpoint] = true;\n }\n });\n } else {\n breakpointsKeys.forEach(breakpoint => {\n if (breakpointValues[breakpoint] != null) {\n base[breakpoint] = true;\n }\n });\n }\n return base;\n}\nexport function resolveBreakpointValues({\n values: breakpointValues,\n breakpoints: themeBreakpoints,\n base: customBase\n}) {\n const base = customBase || computeBreakpointsBase(breakpointValues, themeBreakpoints);\n const keys = Object.keys(base);\n if (keys.length === 0) {\n return breakpointValues;\n }\n let previous;\n return keys.reduce((acc, breakpoint, i) => {\n if (Array.isArray(breakpointValues)) {\n acc[breakpoint] = breakpointValues[i] != null ? breakpointValues[i] : breakpointValues[previous];\n previous = i;\n } else if (typeof breakpointValues === 'object') {\n acc[breakpoint] = breakpointValues[breakpoint] != null ? breakpointValues[breakpoint] : breakpointValues[previous];\n previous = breakpoint;\n } else {\n acc[breakpoint] = breakpointValues;\n }\n return acc;\n }, {});\n}\nexport default breakpoints;","import capitalize from '@mui/utils/capitalize';\nimport responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function getPath(obj, path, checkVars = true) {\n if (!path || typeof path !== 'string') {\n return null;\n }\n\n // Check if CSS variables are used\n if (obj && obj.vars && checkVars) {\n const val = `vars.${path}`.split('.').reduce((acc, item) => acc && acc[item] ? acc[item] : null, obj);\n if (val != null) {\n return val;\n }\n }\n return path.split('.').reduce((acc, item) => {\n if (acc && acc[item] != null) {\n return acc[item];\n }\n return null;\n }, obj);\n}\nexport function getStyleValue(themeMapping, transform, propValueFinal, userValue = propValueFinal) {\n let value;\n if (typeof themeMapping === 'function') {\n value = themeMapping(propValueFinal);\n } else if (Array.isArray(themeMapping)) {\n value = themeMapping[propValueFinal] || userValue;\n } else {\n value = getPath(themeMapping, propValueFinal) || userValue;\n }\n if (transform) {\n value = transform(value, userValue, themeMapping);\n }\n return value;\n}\nfunction style(options) {\n const {\n prop,\n cssProperty = options.prop,\n themeKey,\n transform\n } = options;\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n if (props[prop] == null) {\n return null;\n }\n const propValue = props[prop];\n const theme = props.theme;\n const themeMapping = getPath(theme, themeKey) || {};\n const styleFromPropValue = propValueFinal => {\n let value = getStyleValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getStyleValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, propValue, styleFromPropValue);\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? {\n [prop]: responsivePropType\n } : {};\n fn.filterProps = [prop];\n return fn;\n}\nexport default style;","export default function memoize(fn) {\n const cache = {};\n return arg => {\n if (cache[arg] === undefined) {\n cache[arg] = fn(arg);\n }\n return cache[arg];\n };\n}","import responsivePropType from \"../responsivePropType/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport { getPath } from \"../style/index.js\";\nimport merge from \"../merge/index.js\";\nimport memoize from \"../memoize/index.js\";\nconst properties = {\n m: 'margin',\n p: 'padding'\n};\nconst directions = {\n t: 'Top',\n r: 'Right',\n b: 'Bottom',\n l: 'Left',\n x: ['Left', 'Right'],\n y: ['Top', 'Bottom']\n};\nconst aliases = {\n marginX: 'mx',\n marginY: 'my',\n paddingX: 'px',\n paddingY: 'py'\n};\n\n// memoize() impact:\n// From 300,000 ops/sec\n// To 350,000 ops/sec\nconst getCssProperties = memoize(prop => {\n // It's not a shorthand notation.\n if (prop.length > 2) {\n if (aliases[prop]) {\n prop = aliases[prop];\n } else {\n return [prop];\n }\n }\n const [a, b] = prop.split('');\n const property = properties[a];\n const direction = directions[b] || '';\n return Array.isArray(direction) ? direction.map(dir => property + dir) : [property + direction];\n});\nexport const marginKeys = ['m', 'mt', 'mr', 'mb', 'ml', 'mx', 'my', 'margin', 'marginTop', 'marginRight', 'marginBottom', 'marginLeft', 'marginX', 'marginY', 'marginInline', 'marginInlineStart', 'marginInlineEnd', 'marginBlock', 'marginBlockStart', 'marginBlockEnd'];\nexport const paddingKeys = ['p', 'pt', 'pr', 'pb', 'pl', 'px', 'py', 'padding', 'paddingTop', 'paddingRight', 'paddingBottom', 'paddingLeft', 'paddingX', 'paddingY', 'paddingInline', 'paddingInlineStart', 'paddingInlineEnd', 'paddingBlock', 'paddingBlockStart', 'paddingBlockEnd'];\nconst spacingKeys = [...marginKeys, ...paddingKeys];\nexport function createUnaryUnit(theme, themeKey, defaultValue, propName) {\n const themeSpacing = getPath(theme, themeKey, true) ?? defaultValue;\n if (typeof themeSpacing === 'number' || typeof themeSpacing === 'string') {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n if (process.env.NODE_ENV !== 'production') {\n if (typeof val !== 'number') {\n console.error(`MUI: Expected ${propName} argument to be a number or a string, got ${val}.`);\n }\n }\n if (typeof themeSpacing === 'string') {\n if (themeSpacing.startsWith('var(') && val === 0) {\n return 0;\n }\n if (themeSpacing.startsWith('var(') && val === 1) {\n return themeSpacing;\n }\n return `calc(${val} * ${themeSpacing})`;\n }\n return themeSpacing * val;\n };\n }\n if (Array.isArray(themeSpacing)) {\n return val => {\n if (typeof val === 'string') {\n return val;\n }\n const abs = Math.abs(val);\n if (process.env.NODE_ENV !== 'production') {\n if (!Number.isInteger(abs)) {\n console.error([`MUI: The \\`theme.${themeKey}\\` array type cannot be combined with non integer values.` + `You should either use an integer value that can be used as index, or define the \\`theme.${themeKey}\\` as a number.`].join('\\n'));\n } else if (abs > themeSpacing.length - 1) {\n console.error([`MUI: The value provided (${abs}) overflows.`, `The supported values are: ${JSON.stringify(themeSpacing)}.`, `${abs} > ${themeSpacing.length - 1}, you need to add the missing values.`].join('\\n'));\n }\n }\n const transformed = themeSpacing[abs];\n if (val >= 0) {\n return transformed;\n }\n if (typeof transformed === 'number') {\n return -transformed;\n }\n if (typeof transformed === 'string' && transformed.startsWith('var(')) {\n return `calc(-1 * ${transformed})`;\n }\n return `-${transformed}`;\n };\n }\n if (typeof themeSpacing === 'function') {\n return themeSpacing;\n }\n if (process.env.NODE_ENV !== 'production') {\n console.error([`MUI: The \\`theme.${themeKey}\\` value (${themeSpacing}) is invalid.`, 'It should be a number, an array or a function.'].join('\\n'));\n }\n return () => undefined;\n}\nexport function createUnarySpacing(theme) {\n return createUnaryUnit(theme, 'spacing', 8, 'spacing');\n}\nexport function getValue(transformer, propValue) {\n if (typeof propValue === 'string' || propValue == null) {\n return propValue;\n }\n return transformer(propValue);\n}\nexport function getStyleFromPropValue(cssProperties, transformer) {\n return propValue => cssProperties.reduce((acc, cssProperty) => {\n acc[cssProperty] = getValue(transformer, propValue);\n return acc;\n }, {});\n}\nfunction resolveCssProperty(props, keys, prop, transformer) {\n // Using a hash computation over an array iteration could be faster, but with only 28 items,\n // it's doesn't worth the bundle size.\n if (!keys.includes(prop)) {\n return null;\n }\n const cssProperties = getCssProperties(prop);\n const styleFromPropValue = getStyleFromPropValue(cssProperties, transformer);\n const propValue = props[prop];\n return handleBreakpoints(props, propValue, styleFromPropValue);\n}\nfunction style(props, keys) {\n const transformer = createUnarySpacing(props.theme);\n return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});\n}\nexport function margin(props) {\n return style(props, marginKeys);\n}\nmargin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nmargin.filterProps = marginKeys;\nexport function padding(props) {\n return style(props, paddingKeys);\n}\npadding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\npadding.filterProps = paddingKeys;\nfunction spacing(props) {\n return style(props, spacingKeys);\n}\nspacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {\n obj[key] = responsivePropType;\n return obj;\n}, {}) : {};\nspacing.filterProps = spacingKeys;\nexport default spacing;","import merge from \"../merge/index.js\";\nfunction compose(...styles) {\n const handlers = styles.reduce((acc, style) => {\n style.filterProps.forEach(prop => {\n acc[prop] = style;\n });\n return acc;\n }, {});\n\n // false positive\n // eslint-disable-next-line react/function-component-definition\n const fn = props => {\n return Object.keys(props).reduce((acc, prop) => {\n if (handlers[prop]) {\n return merge(acc, handlers[prop](props));\n }\n return acc;\n }, {});\n };\n fn.propTypes = process.env.NODE_ENV !== 'production' ? styles.reduce((acc, style) => Object.assign(acc, style.propTypes), {}) : {};\n fn.filterProps = styles.reduce((acc, style) => acc.concat(style.filterProps), []);\n return fn;\n}\nexport default compose;","import responsivePropType from \"../responsivePropType/index.js\";\nimport style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nexport function borderTransform(value) {\n if (typeof value !== 'number') {\n return value;\n }\n return `${value}px solid`;\n}\nfunction createBorderStyle(prop, transform) {\n return style({\n prop,\n themeKey: 'borders',\n transform\n });\n}\nexport const border = createBorderStyle('border', borderTransform);\nexport const borderTop = createBorderStyle('borderTop', borderTransform);\nexport const borderRight = createBorderStyle('borderRight', borderTransform);\nexport const borderBottom = createBorderStyle('borderBottom', borderTransform);\nexport const borderLeft = createBorderStyle('borderLeft', borderTransform);\nexport const borderColor = createBorderStyle('borderColor');\nexport const borderTopColor = createBorderStyle('borderTopColor');\nexport const borderRightColor = createBorderStyle('borderRightColor');\nexport const borderBottomColor = createBorderStyle('borderBottomColor');\nexport const borderLeftColor = createBorderStyle('borderLeftColor');\nexport const outline = createBorderStyle('outline', borderTransform);\nexport const outlineColor = createBorderStyle('outlineColor');\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const borderRadius = props => {\n if (props.borderRadius !== undefined && props.borderRadius !== null) {\n const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');\n const styleFromPropValue = propValue => ({\n borderRadius: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.borderRadius, styleFromPropValue);\n }\n return null;\n};\nborderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {\n borderRadius: responsivePropType\n} : {};\nborderRadius.filterProps = ['borderRadius'];\nconst borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius, outline, outlineColor);\nexport default borders;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { createUnaryUnit, getValue } from \"../spacing/index.js\";\nimport { handleBreakpoints } from \"../breakpoints/index.js\";\nimport responsivePropType from \"../responsivePropType/index.js\";\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const gap = props => {\n if (props.gap !== undefined && props.gap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');\n const styleFromPropValue = propValue => ({\n gap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.gap, styleFromPropValue);\n }\n return null;\n};\ngap.propTypes = process.env.NODE_ENV !== 'production' ? {\n gap: responsivePropType\n} : {};\ngap.filterProps = ['gap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const columnGap = props => {\n if (props.columnGap !== undefined && props.columnGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');\n const styleFromPropValue = propValue => ({\n columnGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.columnGap, styleFromPropValue);\n }\n return null;\n};\ncolumnGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n columnGap: responsivePropType\n} : {};\ncolumnGap.filterProps = ['columnGap'];\n\n// false positive\n// eslint-disable-next-line react/function-component-definition\nexport const rowGap = props => {\n if (props.rowGap !== undefined && props.rowGap !== null) {\n const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');\n const styleFromPropValue = propValue => ({\n rowGap: getValue(transformer, propValue)\n });\n return handleBreakpoints(props, props.rowGap, styleFromPropValue);\n }\n return null;\n};\nrowGap.propTypes = process.env.NODE_ENV !== 'production' ? {\n rowGap: responsivePropType\n} : {};\nrowGap.filterProps = ['rowGap'];\nexport const gridColumn = style({\n prop: 'gridColumn'\n});\nexport const gridRow = style({\n prop: 'gridRow'\n});\nexport const gridAutoFlow = style({\n prop: 'gridAutoFlow'\n});\nexport const gridAutoColumns = style({\n prop: 'gridAutoColumns'\n});\nexport const gridAutoRows = style({\n prop: 'gridAutoRows'\n});\nexport const gridTemplateColumns = style({\n prop: 'gridTemplateColumns'\n});\nexport const gridTemplateRows = style({\n prop: 'gridTemplateRows'\n});\nexport const gridTemplateAreas = style({\n prop: 'gridTemplateAreas'\n});\nexport const gridArea = style({\n prop: 'gridArea'\n});\nconst grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);\nexport default grid;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nexport function paletteTransform(value, userValue) {\n if (userValue === 'grey') {\n return userValue;\n }\n return value;\n}\nexport const color = style({\n prop: 'color',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const bgcolor = style({\n prop: 'bgcolor',\n cssProperty: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nexport const backgroundColor = style({\n prop: 'backgroundColor',\n themeKey: 'palette',\n transform: paletteTransform\n});\nconst palette = compose(color, bgcolor, backgroundColor);\nexport default palette;","import style from \"../style/index.js\";\nimport compose from \"../compose/index.js\";\nimport { handleBreakpoints, values as breakpointsValues } from \"../breakpoints/index.js\";\nexport function sizingTransform(value) {\n return value <= 1 && value !== 0 ? `${value * 100}%` : value;\n}\nexport const width = style({\n prop: 'width',\n transform: sizingTransform\n});\nexport const maxWidth = props => {\n if (props.maxWidth !== undefined && props.maxWidth !== null) {\n const styleFromPropValue = propValue => {\n const breakpoint = props.theme?.breakpoints?.values?.[propValue] || breakpointsValues[propValue];\n if (!breakpoint) {\n return {\n maxWidth: sizingTransform(propValue)\n };\n }\n if (props.theme?.breakpoints?.unit !== 'px') {\n return {\n maxWidth: `${breakpoint}${props.theme.breakpoints.unit}`\n };\n }\n return {\n maxWidth: breakpoint\n };\n };\n return handleBreakpoints(props, props.maxWidth, styleFromPropValue);\n }\n return null;\n};\nmaxWidth.filterProps = ['maxWidth'];\nexport const minWidth = style({\n prop: 'minWidth',\n transform: sizingTransform\n});\nexport const height = style({\n prop: 'height',\n transform: sizingTransform\n});\nexport const maxHeight = style({\n prop: 'maxHeight',\n transform: sizingTransform\n});\nexport const minHeight = style({\n prop: 'minHeight',\n transform: sizingTransform\n});\nexport const sizeWidth = style({\n prop: 'size',\n cssProperty: 'width',\n transform: sizingTransform\n});\nexport const sizeHeight = style({\n prop: 'size',\n cssProperty: 'height',\n transform: sizingTransform\n});\nexport const boxSizing = style({\n prop: 'boxSizing'\n});\nconst sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);\nexport default sizing;","import { padding, margin } from \"../spacing/index.js\";\nimport { borderRadius, borderTransform } from \"../borders/index.js\";\nimport { gap, rowGap, columnGap } from \"../cssGrid/index.js\";\nimport { paletteTransform } from \"../palette/index.js\";\nimport { maxWidth, sizingTransform } from \"../sizing/index.js\";\nconst defaultSxConfig = {\n // borders\n border: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderTop: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderRight: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderBottom: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderLeft: {\n themeKey: 'borders',\n transform: borderTransform\n },\n borderColor: {\n themeKey: 'palette'\n },\n borderTopColor: {\n themeKey: 'palette'\n },\n borderRightColor: {\n themeKey: 'palette'\n },\n borderBottomColor: {\n themeKey: 'palette'\n },\n borderLeftColor: {\n themeKey: 'palette'\n },\n outline: {\n themeKey: 'borders',\n transform: borderTransform\n },\n outlineColor: {\n themeKey: 'palette'\n },\n borderRadius: {\n themeKey: 'shape.borderRadius',\n style: borderRadius\n },\n // palette\n color: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n bgcolor: {\n themeKey: 'palette',\n cssProperty: 'backgroundColor',\n transform: paletteTransform\n },\n backgroundColor: {\n themeKey: 'palette',\n transform: paletteTransform\n },\n // spacing\n p: {\n style: padding\n },\n pt: {\n style: padding\n },\n pr: {\n style: padding\n },\n pb: {\n style: padding\n },\n pl: {\n style: padding\n },\n px: {\n style: padding\n },\n py: {\n style: padding\n },\n padding: {\n style: padding\n },\n paddingTop: {\n style: padding\n },\n paddingRight: {\n style: padding\n },\n paddingBottom: {\n style: padding\n },\n paddingLeft: {\n style: padding\n },\n paddingX: {\n style: padding\n },\n paddingY: {\n style: padding\n },\n paddingInline: {\n style: padding\n },\n paddingInlineStart: {\n style: padding\n },\n paddingInlineEnd: {\n style: padding\n },\n paddingBlock: {\n style: padding\n },\n paddingBlockStart: {\n style: padding\n },\n paddingBlockEnd: {\n style: padding\n },\n m: {\n style: margin\n },\n mt: {\n style: margin\n },\n mr: {\n style: margin\n },\n mb: {\n style: margin\n },\n ml: {\n style: margin\n },\n mx: {\n style: margin\n },\n my: {\n style: margin\n },\n margin: {\n style: margin\n },\n marginTop: {\n style: margin\n },\n marginRight: {\n style: margin\n },\n marginBottom: {\n style: margin\n },\n marginLeft: {\n style: margin\n },\n marginX: {\n style: margin\n },\n marginY: {\n style: margin\n },\n marginInline: {\n style: margin\n },\n marginInlineStart: {\n style: margin\n },\n marginInlineEnd: {\n style: margin\n },\n marginBlock: {\n style: margin\n },\n marginBlockStart: {\n style: margin\n },\n marginBlockEnd: {\n style: margin\n },\n // display\n displayPrint: {\n cssProperty: false,\n transform: value => ({\n '@media print': {\n display: value\n }\n })\n },\n display: {},\n overflow: {},\n textOverflow: {},\n visibility: {},\n whiteSpace: {},\n // flexbox\n flexBasis: {},\n flexDirection: {},\n flexWrap: {},\n justifyContent: {},\n alignItems: {},\n alignContent: {},\n order: {},\n flex: {},\n flexGrow: {},\n flexShrink: {},\n alignSelf: {},\n justifyItems: {},\n justifySelf: {},\n // grid\n gap: {\n style: gap\n },\n rowGap: {\n style: rowGap\n },\n columnGap: {\n style: columnGap\n },\n gridColumn: {},\n gridRow: {},\n gridAutoFlow: {},\n gridAutoColumns: {},\n gridAutoRows: {},\n gridTemplateColumns: {},\n gridTemplateRows: {},\n gridTemplateAreas: {},\n gridArea: {},\n // positions\n position: {},\n zIndex: {\n themeKey: 'zIndex'\n },\n top: {},\n right: {},\n bottom: {},\n left: {},\n // shadows\n boxShadow: {\n themeKey: 'shadows'\n },\n // sizing\n width: {\n transform: sizingTransform\n },\n maxWidth: {\n style: maxWidth\n },\n minWidth: {\n transform: sizingTransform\n },\n height: {\n transform: sizingTransform\n },\n maxHeight: {\n transform: sizingTransform\n },\n minHeight: {\n transform: sizingTransform\n },\n boxSizing: {},\n // typography\n font: {\n themeKey: 'font'\n },\n fontFamily: {\n themeKey: 'typography'\n },\n fontSize: {\n themeKey: 'typography'\n },\n fontStyle: {\n themeKey: 'typography'\n },\n fontWeight: {\n themeKey: 'typography'\n },\n letterSpacing: {},\n textTransform: {},\n lineHeight: {},\n textAlign: {},\n typography: {\n cssProperty: false,\n themeKey: 'typography'\n }\n};\nexport default defaultSxConfig;","import capitalize from '@mui/utils/capitalize';\nimport merge from \"../merge/index.js\";\nimport { getPath, getStyleValue as getValue } from \"../style/index.js\";\nimport { handleBreakpoints, createEmptyBreakpointObject, removeUnusedBreakpoints } from \"../breakpoints/index.js\";\nimport { sortContainerQueries } from \"../cssContainerQueries/index.js\";\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nfunction objectsHaveSameKeys(...objects) {\n const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);\n const union = new Set(allKeys);\n return objects.every(object => union.size === Object.keys(object).length);\n}\nfunction callIfFn(maybeFn, arg) {\n return typeof maybeFn === 'function' ? maybeFn(arg) : maybeFn;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function unstable_createStyleFunctionSx() {\n function getThemeValue(prop, val, theme, config) {\n const props = {\n [prop]: val,\n theme\n };\n const options = config[prop];\n if (!options) {\n return {\n [prop]: val\n };\n }\n const {\n cssProperty = prop,\n themeKey,\n transform,\n style\n } = options;\n if (val == null) {\n return null;\n }\n\n // TODO v6: remove, see https://github.com/mui/material-ui/pull/38123\n if (themeKey === 'typography' && val === 'inherit') {\n return {\n [prop]: val\n };\n }\n const themeMapping = getPath(theme, themeKey) || {};\n if (style) {\n return style(props);\n }\n const styleFromPropValue = propValueFinal => {\n let value = getValue(themeMapping, transform, propValueFinal);\n if (propValueFinal === value && typeof propValueFinal === 'string') {\n // Haven't found value\n value = getValue(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);\n }\n if (cssProperty === false) {\n return value;\n }\n return {\n [cssProperty]: value\n };\n };\n return handleBreakpoints(props, val, styleFromPropValue);\n }\n function styleFunctionSx(props) {\n const {\n sx,\n theme = {},\n nested\n } = props || {};\n if (!sx) {\n return null; // Emotion & styled-components will neglect null\n }\n const config = theme.unstable_sxConfig ?? defaultSxConfig;\n\n /*\n * Receive `sxInput` as object or callback\n * and then recursively check keys & values to create media query object styles.\n * (the result will be used in `styled`)\n */\n function traverse(sxInput) {\n let sxObject = sxInput;\n if (typeof sxInput === 'function') {\n sxObject = sxInput(theme);\n } else if (typeof sxInput !== 'object') {\n // value\n return sxInput;\n }\n if (!sxObject) {\n return null;\n }\n const emptyBreakpoints = createEmptyBreakpointObject(theme.breakpoints);\n const breakpointsKeys = Object.keys(emptyBreakpoints);\n let css = emptyBreakpoints;\n Object.keys(sxObject).forEach(styleKey => {\n const value = callIfFn(sxObject[styleKey], theme);\n if (value !== null && value !== undefined) {\n if (typeof value === 'object') {\n if (config[styleKey]) {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n } else {\n const breakpointsValues = handleBreakpoints({\n theme\n }, value, x => ({\n [styleKey]: x\n }));\n if (objectsHaveSameKeys(breakpointsValues, value)) {\n css[styleKey] = styleFunctionSx({\n sx: value,\n theme,\n nested: true\n });\n } else {\n css = merge(css, breakpointsValues);\n }\n }\n } else {\n css = merge(css, getThemeValue(styleKey, value, theme, config));\n }\n }\n });\n if (!nested && theme.modularCssLayers) {\n return {\n '@layer sx': sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css))\n };\n }\n return sortContainerQueries(theme, removeUnusedBreakpoints(breakpointsKeys, css));\n }\n return Array.isArray(sx) ? sx.map(traverse) : traverse(sx);\n }\n return styleFunctionSx;\n}\nconst styleFunctionSx = unstable_createStyleFunctionSx();\nstyleFunctionSx.filterProps = ['sx'];\nexport default styleFunctionSx;","import { isPlainObject } from '@mui/utils/deepmerge';\nimport defaultSxConfig from \"./defaultSxConfig.js\";\nconst splitProps = props => {\n const result = {\n systemProps: {},\n otherProps: {}\n };\n const config = props?.theme?.unstable_sxConfig ?? defaultSxConfig;\n Object.keys(props).forEach(prop => {\n if (config[prop]) {\n result.systemProps[prop] = props[prop];\n } else {\n result.otherProps[prop] = props[prop];\n }\n });\n return result;\n};\nexport default function extendSxProp(props) {\n const {\n sx: inSx,\n ...other\n } = props;\n const {\n systemProps,\n otherProps\n } = splitProps(other);\n let finalSx;\n if (Array.isArray(inSx)) {\n finalSx = [systemProps, ...inSx];\n } else if (typeof inSx === 'function') {\n finalSx = (...args) => {\n const result = inSx(...args);\n if (!isPlainObject(result)) {\n return systemProps;\n }\n return {\n ...systemProps,\n ...result\n };\n };\n } else {\n finalSx = {\n ...systemProps,\n ...inSx\n };\n }\n return {\n ...otherProps,\n sx: finalSx\n };\n}","/* eslint-disable */\n// Inspired by https://github.com/garycourt/murmurhash-js\n// Ported from https://github.com/aappleby/smhasher/blob/61a0530f28277f2e850bfc39600ce61d02b518de/src/MurmurHash2.cpp#L37-L86\nfunction murmur2(str) {\n // 'm' and 'r' are mixing constants generated offline.\n // They're not really 'magic', they just happen to work well.\n // const m = 0x5bd1e995;\n // const r = 24;\n // Initialize the hash\n var h = 0; // Mix 4 bytes at a time into the hash\n\n var k,\n i = 0,\n len = str.length;\n\n for (; len >= 4; ++i, len -= 4) {\n k = str.charCodeAt(i) & 0xff | (str.charCodeAt(++i) & 0xff) << 8 | (str.charCodeAt(++i) & 0xff) << 16 | (str.charCodeAt(++i) & 0xff) << 24;\n k =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16);\n k ^=\n /* k >>> r: */\n k >>> 24;\n h =\n /* Math.imul(k, m): */\n (k & 0xffff) * 0x5bd1e995 + ((k >>> 16) * 0xe995 << 16) ^\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Handle the last few bytes of the input array\n\n\n switch (len) {\n case 3:\n h ^= (str.charCodeAt(i + 2) & 0xff) << 16;\n\n case 2:\n h ^= (str.charCodeAt(i + 1) & 0xff) << 8;\n\n case 1:\n h ^= str.charCodeAt(i) & 0xff;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n } // Do a few final mixes of the hash to ensure the last few\n // bytes are well-incorporated.\n\n\n h ^= h >>> 13;\n h =\n /* Math.imul(h, m): */\n (h & 0xffff) * 0x5bd1e995 + ((h >>> 16) * 0xe995 << 16);\n return ((h ^ h >>> 15) >>> 0).toString(36);\n}\n\nexport { murmur2 as default };\n","var unitlessKeys = {\n animationIterationCount: 1,\n aspectRatio: 1,\n borderImageOutset: 1,\n borderImageSlice: 1,\n borderImageWidth: 1,\n boxFlex: 1,\n boxFlexGroup: 1,\n boxOrdinalGroup: 1,\n columnCount: 1,\n columns: 1,\n flex: 1,\n flexGrow: 1,\n flexPositive: 1,\n flexShrink: 1,\n flexNegative: 1,\n flexOrder: 1,\n gridRow: 1,\n gridRowEnd: 1,\n gridRowSpan: 1,\n gridRowStart: 1,\n gridColumn: 1,\n gridColumnEnd: 1,\n gridColumnSpan: 1,\n gridColumnStart: 1,\n msGridRow: 1,\n msGridRowSpan: 1,\n msGridColumn: 1,\n msGridColumnSpan: 1,\n fontWeight: 1,\n lineHeight: 1,\n opacity: 1,\n order: 1,\n orphans: 1,\n scale: 1,\n tabSize: 1,\n widows: 1,\n zIndex: 1,\n zoom: 1,\n WebkitLineClamp: 1,\n // SVG-related properties\n fillOpacity: 1,\n floodOpacity: 1,\n stopOpacity: 1,\n strokeDasharray: 1,\n strokeDashoffset: 1,\n strokeMiterlimit: 1,\n strokeOpacity: 1,\n strokeWidth: 1\n};\n\nexport { unitlessKeys as default };\n","function memoize(fn) {\n var cache = Object.create(null);\n return function (arg) {\n if (cache[arg] === undefined) cache[arg] = fn(arg);\n return cache[arg];\n };\n}\n\nexport { memoize as default };\n","import hashString from '@emotion/hash';\nimport unitless from '@emotion/unitless';\nimport memoize from '@emotion/memoize';\n\nvar isDevelopment = false;\n\nvar hyphenateRegex = /[A-Z]|^ms/g;\nvar animationRegex = /_EMO_([^_]+?)_([^]*?)_EMO_/g;\n\nvar isCustomProperty = function isCustomProperty(property) {\n return property.charCodeAt(1) === 45;\n};\n\nvar isProcessableValue = function isProcessableValue(value) {\n return value != null && typeof value !== 'boolean';\n};\n\nvar processStyleName = /* #__PURE__ */memoize(function (styleName) {\n return isCustomProperty(styleName) ? styleName : styleName.replace(hyphenateRegex, '-$&').toLowerCase();\n});\n\nvar processStyleValue = function processStyleValue(key, value) {\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n if (typeof value === 'string') {\n return value.replace(animationRegex, function (match, p1, p2) {\n cursor = {\n name: p1,\n styles: p2,\n next: cursor\n };\n return p1;\n });\n }\n }\n }\n\n if (unitless[key] !== 1 && !isCustomProperty(key) && typeof value === 'number' && value !== 0) {\n return value + 'px';\n }\n\n return value;\n};\n\nvar noComponentSelectorMessage = 'Component selectors can only be used in conjunction with ' + '@emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware ' + 'compiler transform.';\n\nfunction handleInterpolation(mergedProps, registered, interpolation) {\n if (interpolation == null) {\n return '';\n }\n\n var componentSelector = interpolation;\n\n if (componentSelector.__emotion_styles !== undefined) {\n\n return componentSelector;\n }\n\n switch (typeof interpolation) {\n case 'boolean':\n {\n return '';\n }\n\n case 'object':\n {\n var keyframes = interpolation;\n\n if (keyframes.anim === 1) {\n cursor = {\n name: keyframes.name,\n styles: keyframes.styles,\n next: cursor\n };\n return keyframes.name;\n }\n\n var serializedStyles = interpolation;\n\n if (serializedStyles.styles !== undefined) {\n var next = serializedStyles.next;\n\n if (next !== undefined) {\n // not the most efficient thing ever but this is a pretty rare case\n // and there will be very few iterations of this generally\n while (next !== undefined) {\n cursor = {\n name: next.name,\n styles: next.styles,\n next: cursor\n };\n next = next.next;\n }\n }\n\n var styles = serializedStyles.styles + \";\";\n return styles;\n }\n\n return createStringFromObject(mergedProps, registered, interpolation);\n }\n\n case 'function':\n {\n if (mergedProps !== undefined) {\n var previousCursor = cursor;\n var result = interpolation(mergedProps);\n cursor = previousCursor;\n return handleInterpolation(mergedProps, registered, result);\n }\n\n break;\n }\n } // finalize string values (regular strings and functions interpolated into css calls)\n\n\n var asString = interpolation;\n\n if (registered == null) {\n return asString;\n }\n\n var cached = registered[asString];\n return cached !== undefined ? cached : asString;\n}\n\nfunction createStringFromObject(mergedProps, registered, obj) {\n var string = '';\n\n if (Array.isArray(obj)) {\n for (var i = 0; i < obj.length; i++) {\n string += handleInterpolation(mergedProps, registered, obj[i]) + \";\";\n }\n } else {\n for (var key in obj) {\n var value = obj[key];\n\n if (typeof value !== 'object') {\n var asString = value;\n\n if (registered != null && registered[asString] !== undefined) {\n string += key + \"{\" + registered[asString] + \"}\";\n } else if (isProcessableValue(asString)) {\n string += processStyleName(key) + \":\" + processStyleValue(key, asString) + \";\";\n }\n } else {\n if (key === 'NO_COMPONENT_SELECTOR' && isDevelopment) {\n throw new Error(noComponentSelectorMessage);\n }\n\n if (Array.isArray(value) && typeof value[0] === 'string' && (registered == null || registered[value[0]] === undefined)) {\n for (var _i = 0; _i < value.length; _i++) {\n if (isProcessableValue(value[_i])) {\n string += processStyleName(key) + \":\" + processStyleValue(key, value[_i]) + \";\";\n }\n }\n } else {\n var interpolated = handleInterpolation(mergedProps, registered, value);\n\n switch (key) {\n case 'animation':\n case 'animationName':\n {\n string += processStyleName(key) + \":\" + interpolated + \";\";\n break;\n }\n\n default:\n {\n\n string += key + \"{\" + interpolated + \"}\";\n }\n }\n }\n }\n }\n }\n\n return string;\n}\n\nvar labelPattern = /label:\\s*([^\\s;{]+)\\s*(;|$)/g; // this is the cursor for keyframes\n// keyframes are stored on the SerializedStyles object as a linked list\n\nvar cursor;\nfunction serializeStyles(args, registered, mergedProps) {\n if (args.length === 1 && typeof args[0] === 'object' && args[0] !== null && args[0].styles !== undefined) {\n return args[0];\n }\n\n var stringMode = true;\n var styles = '';\n cursor = undefined;\n var strings = args[0];\n\n if (strings == null || strings.raw === undefined) {\n stringMode = false;\n styles += handleInterpolation(mergedProps, registered, strings);\n } else {\n var asTemplateStringsArr = strings;\n\n styles += asTemplateStringsArr[0];\n } // we start at 1 since we've already handled the first arg\n\n\n for (var i = 1; i < args.length; i++) {\n styles += handleInterpolation(mergedProps, registered, args[i]);\n\n if (stringMode) {\n var templateStringsArr = strings;\n\n styles += templateStringsArr[i];\n }\n } // using a global regex with .exec is stateful so lastIndex has to be reset each time\n\n\n labelPattern.lastIndex = 0;\n var identifierName = '';\n var match; // https://esbench.com/bench/5b809c2cf2949800a0f61fb5\n\n while ((match = labelPattern.exec(styles)) !== null) {\n identifierName += '-' + match[1];\n }\n\n var name = hashString(styles) + identifierName;\n\n return {\n name: name,\n styles: styles,\n next: cursor\n };\n}\n\nexport { serializeStyles };\n","/**\n * @mui/styled-engine v7.3.10\n *\n * @license MIT\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use client';\n\n/* eslint-disable no-underscore-dangle */\nimport emStyled from '@emotion/styled';\nimport { serializeStyles as emSerializeStyles } from '@emotion/serialize';\nexport default function styled(tag, options) {\n const stylesFactory = emStyled(tag, options);\n if (process.env.NODE_ENV !== 'production') {\n return (...styles) => {\n const component = typeof tag === 'string' ? `\"${tag}\"` : 'component';\n if (styles.length === 0) {\n console.error([`MUI: Seems like you called \\`styled(${component})()\\` without a \\`style\\` argument.`, 'You must provide a `styles` argument: `styled(\"div\")(styleYouForgotToPass)`.'].join('\\n'));\n } else if (styles.some(style => style === undefined)) {\n console.error(`MUI: the styled(${component})(...args) API requires all its args to be defined.`);\n }\n return stylesFactory(...styles);\n };\n }\n return stylesFactory;\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_mutateStyles(tag, processor) {\n // Emotion attaches all the styles as `__emotion_styles`.\n // Ref: https://github.com/emotion-js/emotion/blob/16d971d0da229596d6bcc39d282ba9753c9ee7cf/packages/styled/src/base.js#L186\n if (Array.isArray(tag.__emotion_styles)) {\n tag.__emotion_styles = processor(tag.__emotion_styles);\n }\n}\n\n// Emotion only accepts an array, but we want to avoid allocations\nconst wrapper = [];\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_serializeStyles(styles) {\n wrapper[0] = styles;\n return emSerializeStyles(wrapper);\n}\nexport { ThemeContext, keyframes, css } from '@emotion/react';\nexport { default as StyledEngineProvider } from \"./StyledEngineProvider/index.js\";\nexport { default as GlobalStyles } from \"./GlobalStyles/index.js\";","// Sorted ASC by size. That's important.\n// It can't be configured as it's used statically for propTypes.\nexport const breakpointKeys = ['xs', 'sm', 'md', 'lg', 'xl'];\nconst sortBreakpointsValues = values => {\n const breakpointsAsArray = Object.keys(values).map(key => ({\n key,\n val: values[key]\n })) || [];\n // Sort in ascending order\n breakpointsAsArray.sort((breakpoint1, breakpoint2) => breakpoint1.val - breakpoint2.val);\n return breakpointsAsArray.reduce((acc, obj) => {\n return {\n ...acc,\n [obj.key]: obj.val\n };\n }, {});\n};\n\n// Keep in mind that @media is inclusive by the CSS specification.\nexport default function createBreakpoints(breakpoints) {\n const {\n // The breakpoint **start** at this value.\n // For instance with the first breakpoint xs: [xs, sm).\n values = {\n xs: 0,\n // phone\n sm: 600,\n // tablet\n md: 900,\n // small laptop\n lg: 1200,\n // desktop\n xl: 1536 // large screen\n },\n unit = 'px',\n step = 5,\n ...other\n } = breakpoints;\n const sortedValues = sortBreakpointsValues(values);\n const keys = Object.keys(sortedValues);\n function up(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (min-width:${value}${unit})`;\n }\n function down(key) {\n const value = typeof values[key] === 'number' ? values[key] : key;\n return `@media (max-width:${value - step / 100}${unit})`;\n }\n function between(start, end) {\n const endIndex = keys.indexOf(end);\n return `@media (min-width:${typeof values[start] === 'number' ? values[start] : start}${unit}) and ` + `(max-width:${(endIndex !== -1 && typeof values[keys[endIndex]] === 'number' ? values[keys[endIndex]] : end) - step / 100}${unit})`;\n }\n function only(key) {\n if (keys.indexOf(key) + 1 < keys.length) {\n return between(key, keys[keys.indexOf(key) + 1]);\n }\n return up(key);\n }\n function not(key) {\n // handle first and last key separately, for better readability\n const keyIndex = keys.indexOf(key);\n if (keyIndex === 0) {\n return up(keys[1]);\n }\n if (keyIndex === keys.length - 1) {\n return down(keys[keyIndex]);\n }\n return between(key, keys[keys.indexOf(key) + 1]).replace('@media', '@media not all and');\n }\n return {\n keys,\n values: sortedValues,\n up,\n down,\n between,\n only,\n not,\n unit,\n ...other\n };\n}","const shape = {\n borderRadius: 4\n};\nexport default shape;","import { createUnarySpacing } from \"../spacing/index.js\";\n\n// The different signatures imply different meaning for their arguments that can't be expressed structurally.\n// We express the difference with variable names.\n\nexport default function createSpacing(spacingInput = 8,\n// Material Design layouts are visually balanced. Most measurements align to an 8dp grid, which aligns both spacing and the overall layout.\n// Smaller components, such as icons, can align to a 4dp grid.\n// https://m2.material.io/design/layout/understanding-layout.html\ntransform = createUnarySpacing({\n spacing: spacingInput\n})) {\n // Already transformed.\n if (spacingInput.mui) {\n return spacingInput;\n }\n const spacing = (...argsInput) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!(argsInput.length <= 4)) {\n console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${argsInput.length}`);\n }\n }\n const args = argsInput.length === 0 ? [1] : argsInput;\n return args.map(argument => {\n const output = transform(argument);\n return typeof output === 'number' ? `${output}px` : output;\n }).join(' ');\n };\n spacing.mui = true;\n return spacing;\n}","/**\n * A universal utility to style components with multiple color modes. Always use it from the theme object.\n * It works with:\n * - [Basic theme](https://mui.com/material-ui/customization/dark-mode/)\n * - [CSS theme variables](https://mui.com/material-ui/customization/css-theme-variables/overview/)\n * - Zero-runtime engine\n *\n * Tips: Use an array over object spread and place `theme.applyStyles()` last.\n *\n * With the styled function:\n * ✅ [{ background: '#e5e5e5' }, theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * With the sx prop:\n * ✅ [{ background: '#e5e5e5' }, theme => theme.applyStyles('dark', { background: '#1c1c1c' })]\n * 🚫 { background: '#e5e5e5', ...theme => theme.applyStyles('dark', { background: '#1c1c1c' })}\n *\n * @example\n * 1. using with `styled`:\n * ```jsx\n * const Component = styled('div')(({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]);\n * ```\n *\n * @example\n * 2. using with `sx` prop:\n * ```jsx\n * <Box sx={[\n * { background: '#e5e5e5' },\n * theme => theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ]}\n * />\n * ```\n *\n * @example\n * 3. theming a component:\n * ```jsx\n * extendTheme({\n * components: {\n * MuiButton: {\n * styleOverrides: {\n * root: ({ theme }) => [\n * { background: '#e5e5e5' },\n * theme.applyStyles('dark', {\n * background: '#1c1c1c',\n * color: '#fff',\n * }),\n * ],\n * },\n * }\n * }\n * })\n *```\n */\nexport default function applyStyles(key, styles) {\n // @ts-expect-error this is 'any' type\n const theme = this;\n if (theme.vars) {\n if (!theme.colorSchemes?.[key] || typeof theme.getColorSchemeSelector !== 'function') {\n return {};\n }\n // If CssVarsProvider is used as a provider, returns '*:where({selector}) &'\n let selector = theme.getColorSchemeSelector(key);\n if (selector === '&') {\n return styles;\n }\n if (selector.includes('data-') || selector.includes('.')) {\n // '*' is required as a workaround for Emotion issue (https://github.com/emotion-js/emotion/issues/2836)\n selector = `*:where(${selector.replace(/\\s*&$/, '')}) &`;\n }\n return {\n [selector]: styles\n };\n }\n if (theme.palette.mode === key) {\n return styles;\n }\n return {};\n}","import deepmerge from '@mui/utils/deepmerge';\nimport createBreakpoints from \"../createBreakpoints/createBreakpoints.js\";\nimport cssContainerQueries from \"../cssContainerQueries/index.js\";\nimport shape from \"./shape.js\";\nimport createSpacing from \"./createSpacing.js\";\nimport styleFunctionSx from \"../styleFunctionSx/styleFunctionSx.js\";\nimport defaultSxConfig from \"../styleFunctionSx/defaultSxConfig.js\";\nimport applyStyles from \"./applyStyles.js\";\nfunction createTheme(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput = {},\n palette: paletteInput = {},\n spacing: spacingInput,\n shape: shapeInput = {},\n ...other\n } = options;\n const breakpoints = createBreakpoints(breakpointsInput);\n const spacing = createSpacing(spacingInput);\n let muiTheme = deepmerge({\n breakpoints,\n direction: 'ltr',\n components: {},\n // Inject component definitions.\n palette: {\n mode: 'light',\n ...paletteInput\n },\n spacing,\n shape: {\n ...shape,\n ...shapeInput\n }\n }, other);\n muiTheme = cssContainerQueries(muiTheme);\n muiTheme.applyStyles = applyStyles;\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n return muiTheme;\n}\nexport default createTheme;","'use client';\n\nimport * as React from 'react';\nimport { ThemeContext } from '@mui/styled-engine';\nfunction isObjectEmpty(obj) {\n return Object.keys(obj).length === 0;\n}\nfunction useTheme(defaultTheme = null) {\n const contextTheme = React.useContext(ThemeContext);\n return !contextTheme || isObjectEmpty(contextTheme) ? defaultTheme : contextTheme;\n}\nexport default useTheme;","'use client';\n\nimport createTheme from \"../createTheme/index.js\";\nimport useThemeWithoutDefault from \"../useThemeWithoutDefault/index.js\";\nexport const systemDefaultTheme = createTheme();\nfunction useTheme(defaultTheme = systemDefaultTheme) {\n return useThemeWithoutDefault(defaultTheme);\n}\nexport default useTheme;","import ClassNameGenerator from \"../ClassNameGenerator/index.js\";\nexport const globalStateClasses = {\n active: 'active',\n checked: 'checked',\n completed: 'completed',\n disabled: 'disabled',\n error: 'error',\n expanded: 'expanded',\n focused: 'focused',\n focusVisible: 'focusVisible',\n open: 'open',\n readOnly: 'readOnly',\n required: 'required',\n selected: 'selected'\n};\nexport default function generateUtilityClass(componentName, slot, globalStatePrefix = 'Mui') {\n const globalStateClass = globalStateClasses[slot];\n return globalStateClass ? `${globalStatePrefix}-${globalStateClass}` : `${ClassNameGenerator.generate(componentName)}-${slot}`;\n}\nexport function isGlobalState(slot) {\n return globalStateClasses[slot] !== undefined;\n}","import generateUtilityClass from \"../generateUtilityClass/index.js\";\nexport default function generateUtilityClasses(componentName, slots, globalStatePrefix = 'Mui') {\n const result = {};\n slots.forEach(slot => {\n result[slot] = generateUtilityClass(componentName, slot, globalStatePrefix);\n });\n return result;\n}","import { ForwardRef, Memo } from 'react-is';\nfunction getFunctionComponentName(Component, fallback = '') {\n return Component.displayName || Component.name || fallback;\n}\nfunction getWrappedName(outerType, innerType, wrapperName) {\n const functionName = getFunctionComponentName(innerType);\n return outerType.displayName || (functionName !== '' ? `${wrapperName}(${functionName})` : wrapperName);\n}\n\n/**\n * cherry-pick from\n * https://github.com/facebook/react/blob/769b1f270e1251d9dbdce0fcbd9e92e502d059b8/packages/shared/getComponentName.js\n * originally forked from recompose/getDisplayName\n */\nexport default function getDisplayName(Component) {\n if (Component == null) {\n return undefined;\n }\n if (typeof Component === 'string') {\n return Component;\n }\n if (typeof Component === 'function') {\n return getFunctionComponentName(Component, 'Component');\n }\n\n // TypeScript can't have components as objects but they exist in the form of `memo` or `Suspense`\n if (typeof Component === 'object') {\n switch (Component.$$typeof) {\n case ForwardRef:\n return getWrappedName(Component, Component.render, 'ForwardRef');\n case Memo:\n return getWrappedName(Component, Component.type, 'memo');\n default:\n return undefined;\n }\n }\n return undefined;\n}","import { internal_serializeStyles } from '@mui/styled-engine';\nexport default function preprocessStyles(input) {\n const {\n variants,\n ...style\n } = input;\n const result = {\n variants,\n style: internal_serializeStyles(style),\n isProcessed: true\n };\n\n // Not supported on styled-components\n if (result.style === style) {\n return result;\n }\n if (variants) {\n variants.forEach(variant => {\n if (typeof variant.style !== 'function') {\n variant.style = internal_serializeStyles(variant.style);\n }\n });\n }\n return result;\n}","import styledEngineStyled, { internal_mutateStyles as mutateStyles, internal_serializeStyles as serializeStyles } from '@mui/styled-engine';\nimport { isPlainObject } from '@mui/utils/deepmerge';\nimport capitalize from '@mui/utils/capitalize';\nimport getDisplayName from '@mui/utils/getDisplayName';\nimport createTheme from \"../createTheme/index.js\";\nimport styleFunctionSx from \"../styleFunctionSx/index.js\";\nimport preprocessStyles from \"../preprocessStyles.js\";\n\n/* eslint-disable no-underscore-dangle */\n/* eslint-disable no-labels */\n/* eslint-disable no-lone-blocks */\n\nexport const systemDefaultTheme = createTheme();\n\n// Update /system/styled/#api in case if this changes\nexport function shouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nfunction shallowLayer(serialized, layerName) {\n if (layerName && serialized && typeof serialized === 'object' && serialized.styles && !serialized.styles.startsWith('@layer') // only add the layer if it is not already there.\n ) {\n serialized.styles = `@layer ${layerName}{${String(serialized.styles)}}`;\n }\n return serialized;\n}\nfunction defaultOverridesResolver(slot) {\n if (!slot) {\n return null;\n }\n return (_props, styles) => styles[slot];\n}\nfunction attachTheme(props, themeId, defaultTheme) {\n props.theme = isObjectEmpty(props.theme) ? defaultTheme : props.theme[themeId] || props.theme;\n}\nfunction processStyle(props, style, layerName) {\n /*\n * Style types:\n * - null/undefined\n * - string\n * - CSS style object: { [cssKey]: [cssValue], variants }\n * - Processed style object: { style, variants, isProcessed: true }\n * - Array of any of the above\n */\n\n const resolvedStyle = typeof style === 'function' ? style(props) : style;\n if (Array.isArray(resolvedStyle)) {\n return resolvedStyle.flatMap(subStyle => processStyle(props, subStyle, layerName));\n }\n if (Array.isArray(resolvedStyle?.variants)) {\n let rootStyle;\n if (resolvedStyle.isProcessed) {\n rootStyle = layerName ? shallowLayer(resolvedStyle.style, layerName) : resolvedStyle.style;\n } else {\n const {\n variants,\n ...otherStyles\n } = resolvedStyle;\n rootStyle = layerName ? shallowLayer(serializeStyles(otherStyles), layerName) : otherStyles;\n }\n return processStyleVariants(props, resolvedStyle.variants, [rootStyle], layerName);\n }\n if (resolvedStyle?.isProcessed) {\n return layerName ? shallowLayer(serializeStyles(resolvedStyle.style), layerName) : resolvedStyle.style;\n }\n return layerName ? shallowLayer(serializeStyles(resolvedStyle), layerName) : resolvedStyle;\n}\nfunction processStyleVariants(props, variants, results = [], layerName = undefined) {\n let mergedState; // We might not need it, initialized lazily\n\n variantLoop: for (let i = 0; i < variants.length; i += 1) {\n const variant = variants[i];\n if (typeof variant.props === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n if (!variant.props(mergedState)) {\n continue;\n }\n } else {\n for (const key in variant.props) {\n if (props[key] !== variant.props[key] && props.ownerState?.[key] !== variant.props[key]) {\n continue variantLoop;\n }\n }\n }\n if (typeof variant.style === 'function') {\n mergedState ??= {\n ...props,\n ...props.ownerState,\n ownerState: props.ownerState\n };\n results.push(layerName ? shallowLayer(serializeStyles(variant.style(mergedState)), layerName) : variant.style(mergedState));\n } else {\n results.push(layerName ? shallowLayer(serializeStyles(variant.style), layerName) : variant.style);\n }\n }\n return results;\n}\nexport default function createStyled(input = {}) {\n const {\n themeId,\n defaultTheme = systemDefaultTheme,\n rootShouldForwardProp = shouldForwardProp,\n slotShouldForwardProp = shouldForwardProp\n } = input;\n function styleAttachTheme(props) {\n attachTheme(props, themeId, defaultTheme);\n }\n const styled = (tag, inputOptions = {}) => {\n // If `tag` is already a styled component, filter out the `sx` style function\n // to prevent unnecessary styles generated by the composite components.\n mutateStyles(tag, styles => styles.filter(style => style !== styleFunctionSx));\n const {\n name: componentName,\n slot: componentSlot,\n skipVariantsResolver: inputSkipVariantsResolver,\n skipSx: inputSkipSx,\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n overridesResolver = defaultOverridesResolver(lowercaseFirstLetter(componentSlot)),\n ...options\n } = inputOptions;\n const layerName = componentName && componentName.startsWith('Mui') || !!componentSlot ? 'components' : 'custom';\n\n // if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.\n const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver :\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n componentSlot && componentSlot !== 'Root' && componentSlot !== 'root' || false;\n const skipSx = inputSkipSx || false;\n let shouldForwardPropOption = shouldForwardProp;\n\n // TODO v6: remove `Root` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n if (componentSlot === 'Root' || componentSlot === 'root') {\n shouldForwardPropOption = rootShouldForwardProp;\n } else if (componentSlot) {\n // any other slot specified\n shouldForwardPropOption = slotShouldForwardProp;\n } else if (isStringTag(tag)) {\n // for string (html) tag, preserve the behavior in emotion & styled-components.\n shouldForwardPropOption = undefined;\n }\n const defaultStyledResolver = styledEngineStyled(tag, {\n shouldForwardProp: shouldForwardPropOption,\n label: generateStyledLabel(componentName, componentSlot),\n ...options\n });\n const transformStyle = style => {\n // - On the server Emotion doesn't use React.forwardRef for creating components, so the created\n // component stays as a function. This condition makes sure that we do not interpolate functions\n // which are basically components used as a selectors.\n // - `style` could be a styled component from a babel plugin for component selectors, This condition\n // makes sure that we do not interpolate them.\n if (style.__emotion_real === style) {\n return style;\n }\n if (typeof style === 'function') {\n return function styleFunctionProcessor(props) {\n return processStyle(props, style, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n if (isPlainObject(style)) {\n const serialized = preprocessStyles(style);\n return function styleObjectProcessor(props) {\n if (!serialized.variants) {\n return props.theme.modularCssLayers ? shallowLayer(serialized.style, layerName) : serialized.style;\n }\n return processStyle(props, serialized, props.theme.modularCssLayers ? layerName : undefined);\n };\n }\n return style;\n };\n const muiStyledResolver = (...expressionsInput) => {\n const expressionsHead = [];\n const expressionsBody = expressionsInput.map(transformStyle);\n const expressionsTail = [];\n\n // Preprocess `props` to set the scoped theme value.\n // This must run before any other expression.\n expressionsHead.push(styleAttachTheme);\n if (componentName && overridesResolver) {\n expressionsTail.push(function styleThemeOverrides(props) {\n const theme = props.theme;\n const styleOverrides = theme.components?.[componentName]?.styleOverrides;\n if (!styleOverrides) {\n return null;\n }\n const resolvedStyleOverrides = {};\n\n // TODO: v7 remove iteration and use `resolveStyleArg(styleOverrides[slot])` directly\n // eslint-disable-next-line guard-for-in\n for (const slotKey in styleOverrides) {\n resolvedStyleOverrides[slotKey] = processStyle(props, styleOverrides[slotKey], props.theme.modularCssLayers ? 'theme' : undefined);\n }\n return overridesResolver(props, resolvedStyleOverrides);\n });\n }\n if (componentName && !skipVariantsResolver) {\n expressionsTail.push(function styleThemeVariants(props) {\n const theme = props.theme;\n const themeVariants = theme?.components?.[componentName]?.variants;\n if (!themeVariants) {\n return null;\n }\n return processStyleVariants(props, themeVariants, [], props.theme.modularCssLayers ? 'theme' : undefined);\n });\n }\n if (!skipSx) {\n expressionsTail.push(styleFunctionSx);\n }\n\n // This function can be called as a tagged template, so the first argument would contain\n // CSS `string[]` values.\n if (Array.isArray(expressionsBody[0])) {\n const inputStrings = expressionsBody.shift();\n\n // We need to add placeholders in the tagged template for the custom functions we have\n // possibly added (attachTheme, overrides, variants, and sx).\n const placeholdersHead = new Array(expressionsHead.length).fill('');\n const placeholdersTail = new Array(expressionsTail.length).fill('');\n let outputStrings;\n // prettier-ignore\n {\n outputStrings = [...placeholdersHead, ...inputStrings, ...placeholdersTail];\n outputStrings.raw = [...placeholdersHead, ...inputStrings.raw, ...placeholdersTail];\n }\n\n // The only case where we put something before `attachTheme`\n expressionsHead.unshift(outputStrings);\n }\n const expressions = [...expressionsHead, ...expressionsBody, ...expressionsTail];\n const Component = defaultStyledResolver(...expressions);\n if (tag.muiName) {\n Component.muiName = tag.muiName;\n }\n if (process.env.NODE_ENV !== 'production') {\n Component.displayName = generateDisplayName(componentName, componentSlot, tag);\n }\n return Component;\n };\n if (defaultStyledResolver.withConfig) {\n muiStyledResolver.withConfig = defaultStyledResolver.withConfig;\n }\n return muiStyledResolver;\n };\n return styled;\n}\nfunction generateDisplayName(componentName, componentSlot, tag) {\n if (componentName) {\n return `${componentName}${capitalize(componentSlot || '')}`;\n }\n return `Styled(${getDisplayName(tag)})`;\n}\nfunction generateStyledLabel(componentName, componentSlot) {\n let label;\n if (process.env.NODE_ENV !== 'production') {\n if (componentName) {\n // TODO v6: remove `lowercaseFirstLetter()` in the next major release\n // For more details: https://github.com/mui/material-ui/pull/37908\n label = `${componentName}-${lowercaseFirstLetter(componentSlot || 'Root')}`;\n }\n }\n return label;\n}\nfunction isObjectEmpty(object) {\n // eslint-disable-next-line\n for (const _ in object) {\n return false;\n }\n return true;\n}\n\n// https://github.com/emotion-js/emotion/blob/26ded6109fcd8ca9875cc2ce4564fee678a3f3c5/packages/styled/src/utils.js#L40\nfunction isStringTag(tag) {\n return typeof tag === 'string' &&\n // 96 is one less than the char code\n // for \"a\" so this is checking that\n // it's a lowercase character\n tag.charCodeAt(0) > 96;\n}\nfunction lowercaseFirstLetter(string) {\n if (!string) {\n return string;\n }\n return string.charAt(0).toLowerCase() + string.slice(1);\n}","import createStyled from \"../createStyled/index.js\";\nconst styled = createStyled();\nexport default styled;","import clsx from 'clsx';\n\n/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @param mergeClassNameAndStyle If `true`, merges `className` and `style` props instead of overriding them.\n * When `false` (default), props override defaultProps. When `true`, `className` values are concatenated\n * and `style` objects are merged with props taking precedence.\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props, mergeClassNameAndStyle = false) {\n const output = {\n ...props\n };\n for (const key in defaultProps) {\n if (Object.prototype.hasOwnProperty.call(defaultProps, key)) {\n const propName = key;\n if (propName === 'components' || propName === 'slots') {\n output[propName] = {\n ...defaultProps[propName],\n ...output[propName]\n };\n } else if (propName === 'componentsProps' || propName === 'slotProps') {\n const defaultSlotProps = defaultProps[propName];\n const slotProps = props[propName];\n if (!slotProps) {\n output[propName] = defaultSlotProps || {};\n } else if (!defaultSlotProps) {\n output[propName] = slotProps;\n } else {\n output[propName] = {\n ...slotProps\n };\n for (const slotKey in defaultSlotProps) {\n if (Object.prototype.hasOwnProperty.call(defaultSlotProps, slotKey)) {\n const slotPropName = slotKey;\n output[propName][slotPropName] = resolveProps(defaultSlotProps[slotPropName], slotProps[slotPropName], mergeClassNameAndStyle);\n }\n }\n }\n } else if (propName === 'className' && mergeClassNameAndStyle && props.className) {\n output.className = clsx(defaultProps?.className, props?.className);\n } else if (propName === 'style' && mergeClassNameAndStyle && props.style) {\n output.style = {\n ...defaultProps?.style,\n ...props?.style\n };\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}","import resolveProps from '@mui/utils/resolveProps';\nexport default function getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name] || !theme.components[name].defaultProps) {\n return props;\n }\n return resolveProps(theme.components[name].defaultProps, props);\n}","'use client';\n\nimport getThemeProps from \"./getThemeProps.js\";\nimport useTheme from \"../useTheme/index.js\";\nexport default function useThemeProps({\n props,\n name,\n defaultTheme,\n themeId\n}) {\n let theme = useTheme(defaultTheme);\n if (themeId) {\n theme = theme[themeId] || theme;\n }\n return getThemeProps({\n theme,\n name,\n props\n });\n}","function clamp(val, min = Number.MIN_SAFE_INTEGER, max = Number.MAX_SAFE_INTEGER) {\n return Math.max(min, Math.min(val, max));\n}\nexport default clamp;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\n/* eslint-disable @typescript-eslint/naming-convention */\nimport clamp from '@mui/utils/clamp';\n\n/**\n * Returns a number whose value is limited to the given range.\n * @param {number} value The value to be clamped\n * @param {number} min The lower boundary of the output range\n * @param {number} max The upper boundary of the output range\n * @returns {number} A number in the range [min, max]\n */\nfunction clampWrapper(value, min = 0, max = 1) {\n if (process.env.NODE_ENV !== 'production') {\n if (value < min || value > max) {\n console.error(`MUI: The value provided ${value} is out of range [${min}, ${max}].`);\n }\n }\n return clamp(value, min, max);\n}\n\n/**\n * Converts a color from CSS hex format to CSS rgb format.\n * @param {string} color - Hex color, i.e. #nnn or #nnnnnn\n * @returns {string} A CSS rgb color string\n */\nexport function hexToRgb(color) {\n color = color.slice(1);\n const re = new RegExp(`.{1,${color.length >= 6 ? 2 : 1}}`, 'g');\n let colors = color.match(re);\n if (colors && colors[0].length === 1) {\n colors = colors.map(n => n + n);\n }\n if (process.env.NODE_ENV !== 'production') {\n if (color.length !== color.trim().length) {\n console.error(`MUI: The color: \"${color}\" is invalid. Make sure the color input doesn't contain leading/trailing space.`);\n }\n }\n return colors ? `rgb${colors.length === 4 ? 'a' : ''}(${colors.map((n, index) => {\n return index < 3 ? parseInt(n, 16) : Math.round(parseInt(n, 16) / 255 * 1000) / 1000;\n }).join(', ')})` : '';\n}\nfunction intToHex(int) {\n const hex = int.toString(16);\n return hex.length === 1 ? `0${hex}` : hex;\n}\n\n/**\n * Returns an object with the type and values of a color.\n *\n * Note: Does not support rgb % values.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {object} - A MUI color object: {type: string, values: number[]}\n */\nexport function decomposeColor(color) {\n // Idempotent\n if (color.type) {\n return color;\n }\n if (color.charAt(0) === '#') {\n return decomposeColor(hexToRgb(color));\n }\n const marker = color.indexOf('(');\n const type = color.substring(0, marker);\n if (!['rgb', 'rgba', 'hsl', 'hsla', 'color'].includes(type)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: Unsupported \\`${color}\\` color.\\n` + 'The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().' : _formatErrorMessage(9, color));\n }\n let values = color.substring(marker + 1, color.length - 1);\n let colorSpace;\n if (type === 'color') {\n values = values.split(' ');\n colorSpace = values.shift();\n if (values.length === 4 && values[3].charAt(0) === '/') {\n values[3] = values[3].slice(1);\n }\n if (!['srgb', 'display-p3', 'a98-rgb', 'prophoto-rgb', 'rec-2020'].includes(colorSpace)) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: unsupported \\`${colorSpace}\\` color space.\\n` + 'The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.' : _formatErrorMessage(10, colorSpace));\n }\n } else {\n values = values.split(',');\n }\n values = values.map(value => parseFloat(value));\n return {\n type,\n values,\n colorSpace\n };\n}\n\n/**\n * Returns a channel created from the input color.\n *\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {string} - The channel for the color, that can be used in rgba or hsla colors\n */\nexport const colorChannel = color => {\n const decomposedColor = decomposeColor(color);\n return decomposedColor.values.slice(0, 3).map((val, idx) => decomposedColor.type.includes('hsl') && idx !== 0 ? `${val}%` : val).join(' ');\n};\nexport const private_safeColorChannel = (color, warning) => {\n try {\n return colorChannel(color);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n};\n\n/**\n * Converts a color object with type and values to a string.\n * @param {object} color - Decomposed color\n * @param {string} color.type - One of: 'rgb', 'rgba', 'hsl', 'hsla', 'color'\n * @param {array} color.values - [n,n,n] or [n,n,n,n]\n * @returns {string} A CSS color string\n */\nexport function recomposeColor(color) {\n const {\n type,\n colorSpace\n } = color;\n let {\n values\n } = color;\n if (type.includes('rgb')) {\n // Only convert the first 3 values to int (i.e. not alpha)\n values = values.map((n, i) => i < 3 ? parseInt(n, 10) : n);\n } else if (type.includes('hsl')) {\n values[1] = `${values[1]}%`;\n values[2] = `${values[2]}%`;\n }\n if (type.includes('color')) {\n values = `${colorSpace} ${values.join(' ')}`;\n } else {\n values = `${values.join(', ')}`;\n }\n return `${type}(${values})`;\n}\n\n/**\n * Converts a color from CSS rgb format to CSS hex format.\n * @param {string} color - RGB color, i.e. rgb(n, n, n)\n * @returns {string} A CSS rgb color string, i.e. #nnnnnn\n */\nexport function rgbToHex(color) {\n // Idempotent\n if (color.startsWith('#')) {\n return color;\n }\n const {\n values\n } = decomposeColor(color);\n return `#${values.map((n, i) => intToHex(i === 3 ? Math.round(255 * n) : n)).join('')}`;\n}\n\n/**\n * Converts a color from hsl format to rgb format.\n * @param {string} color - HSL color values\n * @returns {string} rgb color values\n */\nexport function hslToRgb(color) {\n color = decomposeColor(color);\n const {\n values\n } = color;\n const h = values[0];\n const s = values[1] / 100;\n const l = values[2] / 100;\n const a = s * Math.min(l, 1 - l);\n const f = (n, k = (n + h / 30) % 12) => l - a * Math.max(Math.min(k - 3, 9 - k, 1), -1);\n let type = 'rgb';\n const rgb = [Math.round(f(0) * 255), Math.round(f(8) * 255), Math.round(f(4) * 255)];\n if (color.type === 'hsla') {\n type += 'a';\n rgb.push(values[3]);\n }\n return recomposeColor({\n type,\n values: rgb\n });\n}\n/**\n * The relative brightness of any point in a color space,\n * normalized to 0 for darkest black and 1 for lightest white.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @returns {number} The relative brightness of the color in the range 0 - 1\n */\nexport function getLuminance(color) {\n color = decomposeColor(color);\n let rgb = color.type === 'hsl' || color.type === 'hsla' ? decomposeColor(hslToRgb(color)).values : color.values;\n rgb = rgb.map(val => {\n if (color.type !== 'color') {\n val /= 255; // normalized\n }\n return val <= 0.03928 ? val / 12.92 : ((val + 0.055) / 1.055) ** 2.4;\n });\n\n // Truncate at 3 digits\n return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));\n}\n\n/**\n * Calculates the contrast ratio between two colors.\n *\n * Formula: https://www.w3.org/TR/WCAG20-TECHS/G17.html#G17-tests\n * @param {string} foreground - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @param {string} background - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla()\n * @returns {number} A contrast ratio value in the range 0 - 21.\n */\nexport function getContrastRatio(foreground, background) {\n const lumA = getLuminance(foreground);\n const lumB = getLuminance(background);\n return (Math.max(lumA, lumB) + 0.05) / (Math.min(lumA, lumB) + 0.05);\n}\n\n/**\n * Sets the absolute transparency of a color.\n * Any existing alpha values are overwritten.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} value - value to set the alpha channel to in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function alpha(color, value) {\n color = decomposeColor(color);\n value = clampWrapper(value);\n if (color.type === 'rgb' || color.type === 'hsl') {\n color.type += 'a';\n }\n if (color.type === 'color') {\n color.values[3] = `/${value}`;\n } else {\n color.values[3] = value;\n }\n return recomposeColor(color);\n}\nexport function private_safeAlpha(color, value, warning) {\n try {\n return alpha(color, value);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darkens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function darken(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] *= 1 - coefficient;\n } else if (color.type.includes('rgb') || color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] *= 1 - coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeDarken(color, coefficient, warning) {\n try {\n return darken(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Lightens a color.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function lighten(color, coefficient) {\n color = decomposeColor(color);\n coefficient = clampWrapper(coefficient);\n if (color.type.includes('hsl')) {\n color.values[2] += (100 - color.values[2]) * coefficient;\n } else if (color.type.includes('rgb')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (255 - color.values[i]) * coefficient;\n }\n } else if (color.type.includes('color')) {\n for (let i = 0; i < 3; i += 1) {\n color.values[i] += (1 - color.values[i]) * coefficient;\n }\n }\n return recomposeColor(color);\n}\nexport function private_safeLighten(color, coefficient, warning) {\n try {\n return lighten(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Darken or lighten a color, depending on its luminance.\n * Light colors are darkened, dark colors are lightened.\n * @param {string} color - CSS color, i.e. one of: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color()\n * @param {number} coefficient=0.15 - multiplier in the range 0 - 1\n * @returns {string} A CSS color string. Hex input values are returned as rgb\n */\nexport function emphasize(color, coefficient = 0.15) {\n return getLuminance(color) > 0.5 ? darken(color, coefficient) : lighten(color, coefficient);\n}\nexport function private_safeEmphasize(color, coefficient, warning) {\n try {\n return emphasize(color, coefficient);\n } catch (error) {\n if (warning && process.env.NODE_ENV !== 'production') {\n console.warn(warning);\n }\n return color;\n }\n}\n\n/**\n * Blend a transparent overlay color with a background color, resulting in a single\n * RGB color.\n * @param {string} background - CSS color\n * @param {string} overlay - CSS color\n * @param {number} opacity - Opacity multiplier in the range 0 - 1\n * @param {number} [gamma=1.0] - Gamma correction factor. For gamma-correct blending, 2.2 is usual.\n */\nexport function blend(background, overlay, opacity, gamma = 1.0) {\n const blendChannel = (b, o) => Math.round((b ** (1 / gamma) * (1 - opacity) + o ** (1 / gamma) * opacity) ** gamma);\n const backgroundColor = decomposeColor(background);\n const overlayColor = decomposeColor(overlay);\n const rgb = [blendChannel(backgroundColor.values[0], overlayColor.values[0]), blendChannel(backgroundColor.values[1], overlayColor.values[1]), blendChannel(backgroundColor.values[2], overlayColor.values[2])];\n return recomposeColor({\n type: 'rgb',\n values: rgb\n });\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveProps from '@mui/utils/resolveProps';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PropsContext = /*#__PURE__*/React.createContext(undefined);\nfunction DefaultPropsProvider({\n value,\n children\n}) {\n return /*#__PURE__*/_jsx(PropsContext.Provider, {\n value: value,\n children: children\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object\n} : void 0;\nfunction getThemeProps(params) {\n const {\n theme,\n name,\n props\n } = params;\n if (!theme || !theme.components || !theme.components[name]) {\n return props;\n }\n const config = theme.components[name];\n if (config.defaultProps) {\n // compatible with v5 signature\n return resolveProps(config.defaultProps, props, theme.components.mergeClassNameAndStyle);\n }\n if (!config.styleOverrides && !config.variants) {\n // v6 signature, no property 'defaultProps'\n return resolveProps(config, props, theme.components.mergeClassNameAndStyle);\n }\n return props;\n}\nexport function useDefaultProps({\n props,\n name\n}) {\n const ctx = React.useContext(PropsContext);\n return getThemeProps({\n props,\n name,\n theme: {\n components: ctx\n }\n });\n}\nexport default DefaultPropsProvider;","import preprocessStyles from \"./preprocessStyles.js\";\n\n/* eslint-disable @typescript-eslint/naming-convention */\n\n// We need to pass an argument as `{ theme }` for PigmentCSS, but we don't want to\n// allocate more objects.\nconst arg = {\n theme: undefined\n};\n\n/**\n * Memoize style function on theme.\n * Intended to be used in styled() calls that only need access to the theme.\n */\nexport default function unstable_memoTheme(styleFn) {\n let lastValue;\n let lastTheme;\n return function styleMemoized(props) {\n let value = lastValue;\n if (value === undefined || props.theme !== lastTheme) {\n arg.theme = props.theme;\n value = preprocessStyles(styleFn(arg));\n lastValue = value;\n lastTheme = props.theme;\n }\n return value;\n };\n}","/**\n * The benefit of this function is to help developers get CSS var from theme without specifying the whole variable\n * and they does not need to remember the prefix (defined once).\n */\nexport default function createGetCssVar(prefix = '') {\n function appendVar(...vars) {\n if (!vars.length) {\n return '';\n }\n const value = vars[0];\n if (typeof value === 'string' && !value.match(/(#|\\(|\\)|(-?(\\d*\\.)?\\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\\d*\\.)?\\d+)$|(\\d+ \\d+ \\d+)/)) {\n return `, var(--${prefix ? `${prefix}-` : ''}${value}${appendVar(...vars.slice(1))})`;\n }\n return `, ${value}`;\n }\n\n // AdditionalVars makes `getCssVar` less strict, so it can be use like this `getCssVar('non-mui-variable')` without type error.\n const getCssVar = (field, ...fallbacks) => {\n return `var(--${prefix ? `${prefix}-` : ''}${field}${appendVar(...fallbacks)})`;\n };\n return getCssVar;\n}","/**\n * This function create an object from keys, value and then assign to target\n *\n * @param {Object} obj : the target object to be assigned\n * @param {string[]} keys\n * @param {string | number} value\n *\n * @example\n * const source = {}\n * assignNestedKeys(source, ['palette', 'primary'], 'var(--palette-primary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)' } }\n *\n * @example\n * const source = { palette: { primary: 'var(--palette-primary)' } }\n * assignNestedKeys(source, ['palette', 'secondary'], 'var(--palette-secondary)')\n * console.log(source) // { palette: { primary: 'var(--palette-primary)', secondary: 'var(--palette-secondary)' } }\n */\nexport const assignNestedKeys = (obj, keys, value, arrayKeys = []) => {\n let temp = obj;\n keys.forEach((k, index) => {\n if (index === keys.length - 1) {\n if (Array.isArray(temp)) {\n temp[Number(k)] = value;\n } else if (temp && typeof temp === 'object') {\n temp[k] = value;\n }\n } else if (temp && typeof temp === 'object') {\n if (!temp[k]) {\n temp[k] = arrayKeys.includes(k) ? [] : {};\n }\n temp = temp[k];\n }\n });\n};\n\n/**\n *\n * @param {Object} obj : source object\n * @param {Function} callback : a function that will be called when\n * - the deepest key in source object is reached\n * - the value of the deepest key is NOT `undefined` | `null`\n *\n * @example\n * walkObjectDeep({ palette: { primary: { main: '#000000' } } }, console.log)\n * // ['palette', 'primary', 'main'] '#000000'\n */\nexport const walkObjectDeep = (obj, callback, shouldSkipPaths) => {\n function recurse(object, parentKeys = [], arrayKeys = []) {\n Object.entries(object).forEach(([key, value]) => {\n if (!shouldSkipPaths || shouldSkipPaths && !shouldSkipPaths([...parentKeys, key])) {\n if (value !== undefined && value !== null) {\n if (typeof value === 'object' && Object.keys(value).length > 0) {\n recurse(value, [...parentKeys, key], Array.isArray(value) ? [...arrayKeys, key] : arrayKeys);\n } else {\n callback([...parentKeys, key], value, arrayKeys);\n }\n }\n }\n });\n }\n recurse(obj);\n};\nconst getCssValue = (keys, value) => {\n if (typeof value === 'number') {\n if (['lineHeight', 'fontWeight', 'opacity', 'zIndex'].some(prop => keys.includes(prop))) {\n // CSS property that are unitless\n return value;\n }\n const lastKey = keys[keys.length - 1];\n if (lastKey.toLowerCase().includes('opacity')) {\n // opacity values are unitless\n return value;\n }\n return `${value}px`;\n }\n return value;\n};\n\n/**\n * a function that parse theme and return { css, vars }\n *\n * @param {Object} theme\n * @param {{\n * prefix?: string,\n * shouldSkipGeneratingVar?: (objectPathKeys: Array<string>, value: string | number) => boolean\n * }} options.\n * `prefix`: The prefix of the generated CSS variables. This function does not change the value.\n *\n * @returns {{ css: Object, vars: Object }} `css` is the stylesheet, `vars` is an object to get css variable (same structure as theme).\n *\n * @example\n * const { css, vars } = parser({\n * fontSize: 12,\n * lineHeight: 1.2,\n * palette: { primary: { 500: 'var(--color)' } }\n * }, { prefix: 'foo' })\n *\n * console.log(css) // { '--foo-fontSize': '12px', '--foo-lineHeight': 1.2, '--foo-palette-primary-500': 'var(--color)' }\n * console.log(vars) // { fontSize: 'var(--foo-fontSize)', lineHeight: 'var(--foo-lineHeight)', palette: { primary: { 500: 'var(--foo-palette-primary-500)' } } }\n */\nexport default function cssVarsParser(theme, options) {\n const {\n prefix,\n shouldSkipGeneratingVar\n } = options || {};\n const css = {};\n const vars = {};\n const varsWithDefaults = {};\n walkObjectDeep(theme, (keys, value, arrayKeys) => {\n if (typeof value === 'string' || typeof value === 'number') {\n if (!shouldSkipGeneratingVar || !shouldSkipGeneratingVar(keys, value)) {\n // only create css & var if `shouldSkipGeneratingVar` return false\n const cssVar = `--${prefix ? `${prefix}-` : ''}${keys.join('-')}`;\n const resolvedValue = getCssValue(keys, value);\n Object.assign(css, {\n [cssVar]: resolvedValue\n });\n assignNestedKeys(vars, keys, `var(${cssVar})`, arrayKeys);\n assignNestedKeys(varsWithDefaults, keys, `var(${cssVar}, ${resolvedValue})`, arrayKeys);\n }\n }\n }, keys => keys[0] === 'vars' // skip 'vars/*' paths\n );\n return {\n css,\n vars,\n varsWithDefaults\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nimport cssVarsParser from \"./cssVarsParser.js\";\nfunction prepareCssVars(theme, parserConfig = {}) {\n const {\n getSelector = defaultGetSelector,\n disableCssColorScheme,\n colorSchemeSelector: selector,\n enableContrastVars\n } = parserConfig;\n // @ts-ignore - ignore components do not exist\n const {\n colorSchemes = {},\n components,\n defaultColorScheme = 'light',\n ...otherTheme\n } = theme;\n const {\n vars: rootVars,\n css: rootCss,\n varsWithDefaults: rootVarsWithDefaults\n } = cssVarsParser(otherTheme, parserConfig);\n let themeVars = rootVarsWithDefaults;\n const colorSchemesMap = {};\n const {\n [defaultColorScheme]: defaultScheme,\n ...otherColorSchemes\n } = colorSchemes;\n Object.entries(otherColorSchemes || {}).forEach(([key, scheme]) => {\n const {\n vars,\n css,\n varsWithDefaults\n } = cssVarsParser(scheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[key] = {\n css,\n vars\n };\n });\n if (defaultScheme) {\n // default color scheme vars should be merged last to set as default\n const {\n css,\n vars,\n varsWithDefaults\n } = cssVarsParser(defaultScheme, parserConfig);\n themeVars = deepmerge(themeVars, varsWithDefaults);\n colorSchemesMap[defaultColorScheme] = {\n css,\n vars\n };\n }\n function defaultGetSelector(colorScheme, cssObject) {\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-joy-color-scheme' -> '[data-joy-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (colorScheme) {\n if (rule === 'media') {\n if (theme.defaultColorScheme === colorScheme) {\n return ':root';\n }\n const mode = colorSchemes[colorScheme]?.palette?.mode || colorScheme;\n return {\n [`@media (prefers-color-scheme: ${mode})`]: {\n ':root': cssObject\n }\n };\n }\n if (rule) {\n if (theme.defaultColorScheme === colorScheme) {\n return `:root, ${rule.replace('%s', String(colorScheme))}`;\n }\n return rule.replace('%s', String(colorScheme));\n }\n }\n return ':root';\n }\n const generateThemeVars = () => {\n let vars = {\n ...rootVars\n };\n Object.entries(colorSchemesMap).forEach(([, {\n vars: schemeVars\n }]) => {\n vars = deepmerge(vars, schemeVars);\n });\n return vars;\n };\n const generateStyleSheets = () => {\n const stylesheets = [];\n const colorScheme = theme.defaultColorScheme || 'light';\n function insertStyleSheet(key, css) {\n if (Object.keys(css).length) {\n stylesheets.push(typeof key === 'string' ? {\n [key]: {\n ...css\n }\n } : key);\n }\n }\n insertStyleSheet(getSelector(undefined, {\n ...rootCss\n }), rootCss);\n const {\n [colorScheme]: defaultSchemeVal,\n ...other\n } = colorSchemesMap;\n if (defaultSchemeVal) {\n // default color scheme has to come before other color schemes\n const {\n css\n } = defaultSchemeVal;\n const cssColorSheme = colorSchemes[colorScheme]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(colorScheme, {\n ...finalCss\n }), finalCss);\n }\n Object.entries(other).forEach(([key, {\n css\n }]) => {\n const cssColorSheme = colorSchemes[key]?.palette?.mode;\n const finalCss = !disableCssColorScheme && cssColorSheme ? {\n colorScheme: cssColorSheme,\n ...css\n } : {\n ...css\n };\n insertStyleSheet(getSelector(key, {\n ...finalCss\n }), finalCss);\n });\n if (enableContrastVars) {\n stylesheets.push({\n ':root': {\n // use double underscore to indicate that these are private variables\n '--__l-threshold': '0.7',\n '--__l': 'clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)',\n '--__a': 'clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)' // 0.87 is the default alpha value for black text.\n }\n });\n }\n return stylesheets;\n };\n return {\n vars: themeVars,\n generateThemeVars,\n generateStyleSheets\n };\n}\nexport default prepareCssVars;","/* eslint-disable import/prefer-default-export */\nexport function createGetColorSchemeSelector(selector) {\n return function getColorSchemeSelector(colorScheme) {\n if (selector === 'media') {\n if (process.env.NODE_ENV !== 'production') {\n if (colorScheme !== 'light' && colorScheme !== 'dark') {\n console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${colorScheme}'.`);\n }\n }\n return `@media (prefers-color-scheme: ${colorScheme})`;\n }\n if (selector) {\n if (selector.startsWith('data-') && !selector.includes('%s')) {\n return `[${selector}=\"${colorScheme}\"] &`;\n }\n if (selector === 'class') {\n return `.${colorScheme} &`;\n }\n if (selector === 'data') {\n return `[data-${colorScheme}] &`;\n }\n return `${selector.replace('%s', colorScheme)} &`;\n }\n return '&';\n };\n}","import * as React from 'react';\nexport default function isMuiElement(element, muiNames) {\n return /*#__PURE__*/React.isValidElement(element) && muiNames.indexOf(\n // For server components `muiName` is available in element.type._payload.value.muiName\n // relevant info - https://github.com/facebook/react/blob/2807d781a08db8e9873687fccc25c0f12b4fb3d4/packages/react/src/ReactLazy.js#L45\n // eslint-disable-next-line no-underscore-dangle\n element.type.muiName ?? element.type?._payload?.value?.muiName) !== -1;\n}","export const filterBreakpointKeys = (breakpointsKeys, responsiveKeys) => breakpointsKeys.filter(key => responsiveKeys.includes(key));\nexport const traverseBreakpoints = (breakpoints, responsive, iterator) => {\n const smallestBreakpoint = breakpoints.keys[0]; // the keys is sorted from smallest to largest by `createBreakpoints`.\n\n if (Array.isArray(responsive)) {\n responsive.forEach((breakpointValue, index) => {\n iterator((responsiveStyles, style) => {\n if (index <= breakpoints.keys.length - 1) {\n if (index === 0) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(breakpoints.keys[index])] = style;\n }\n }\n }, breakpointValue);\n });\n } else if (responsive && typeof responsive === 'object') {\n // prevent null\n // responsive could be a very big object, pick the smallest responsive values\n\n const keys = Object.keys(responsive).length > breakpoints.keys.length ? breakpoints.keys : filterBreakpointKeys(breakpoints.keys, Object.keys(responsive));\n keys.forEach(key => {\n if (breakpoints.keys.includes(key)) {\n // @ts-ignore already checked that responsive is an object\n const breakpointValue = responsive[key];\n if (breakpointValue !== undefined) {\n iterator((responsiveStyles, style) => {\n if (smallestBreakpoint === key) {\n Object.assign(responsiveStyles, style);\n } else {\n responsiveStyles[breakpoints.up(key)] = style;\n }\n }, breakpointValue);\n }\n }\n });\n } else if (typeof responsive === 'number' || typeof responsive === 'string') {\n iterator((responsiveStyles, style) => {\n Object.assign(responsiveStyles, style);\n }, responsive);\n }\n};","import { traverseBreakpoints } from \"./traverseBreakpoints.js\";\nfunction getSelfSpacingVar(axis) {\n return `--Grid-${axis}Spacing`;\n}\nfunction getParentSpacingVar(axis) {\n return `--Grid-parent-${axis}Spacing`;\n}\nconst selfColumnsVar = '--Grid-columns';\nconst parentColumnsVar = '--Grid-parent-columns';\nexport const generateGridSizeStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.size, (appendStyle, value) => {\n let style = {};\n if (value === 'grow') {\n style = {\n flexBasis: 0,\n flexGrow: 1,\n maxWidth: '100%'\n };\n }\n if (value === 'auto') {\n style = {\n flexBasis: 'auto',\n flexGrow: 0,\n flexShrink: 0,\n maxWidth: 'none',\n width: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n flexGrow: 0,\n flexBasis: 'auto',\n width: `calc(100% * ${value} / var(${parentColumnsVar}) - (var(${parentColumnsVar}) - ${value}) * (var(${getParentSpacingVar('column')}) / var(${parentColumnsVar})))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridOffsetStyles = ({\n theme,\n ownerState\n}) => {\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.offset, (appendStyle, value) => {\n let style = {};\n if (value === 'auto') {\n style = {\n marginLeft: 'auto'\n };\n }\n if (typeof value === 'number') {\n style = {\n marginLeft: value === 0 ? '0px' : `calc(100% * ${value} / var(${parentColumnsVar}) + var(${getParentSpacingVar('column')}) * ${value} / var(${parentColumnsVar}))`\n };\n }\n appendStyle(styles, style);\n });\n return styles;\n};\nexport const generateGridColumnsStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {\n [selfColumnsVar]: 12\n };\n traverseBreakpoints(theme.breakpoints, ownerState.columns, (appendStyle, value) => {\n const columns = value ?? 12;\n appendStyle(styles, {\n [selfColumnsVar]: columns,\n '> *': {\n [parentColumnsVar]: columns\n }\n });\n });\n return styles;\n};\nexport const generateGridRowSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.rowSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('row')]: spacing,\n '> *': {\n [getParentSpacingVar('row')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridColumnSpacingStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.columnSpacing, (appendStyle, value) => {\n const spacing = typeof value === 'string' ? value : theme.spacing?.(value);\n appendStyle(styles, {\n [getSelfSpacingVar('column')]: spacing,\n '> *': {\n [getParentSpacingVar('column')]: spacing\n }\n });\n });\n return styles;\n};\nexport const generateGridDirectionStyles = ({\n theme,\n ownerState\n}) => {\n if (!ownerState.container) {\n return {};\n }\n const styles = {};\n traverseBreakpoints(theme.breakpoints, ownerState.direction, (appendStyle, value) => {\n appendStyle(styles, {\n flexDirection: value\n });\n });\n return styles;\n};\nexport const generateGridStyles = ({\n ownerState\n}) => {\n return {\n minWidth: 0,\n boxSizing: 'border-box',\n ...(ownerState.container && {\n display: 'flex',\n flexWrap: 'wrap',\n ...(ownerState.wrap && ownerState.wrap !== 'wrap' && {\n flexWrap: ownerState.wrap\n }),\n gap: `var(${getSelfSpacingVar('row')}) var(${getSelfSpacingVar('column')})`\n })\n };\n};\nexport const generateSizeClassNames = size => {\n const classNames = [];\n Object.entries(size).forEach(([key, value]) => {\n if (value !== false && value !== undefined) {\n classNames.push(`grid-${key}-${String(value)}`);\n }\n });\n return classNames;\n};\nexport const generateSpacingClassNames = (spacing, smallestBreakpoint = 'xs') => {\n function isValidSpacing(val) {\n if (val === undefined) {\n return false;\n }\n return typeof val === 'string' && !Number.isNaN(Number(val)) || typeof val === 'number' && val > 0;\n }\n if (isValidSpacing(spacing)) {\n return [`spacing-${smallestBreakpoint}-${String(spacing)}`];\n }\n if (typeof spacing === 'object' && !Array.isArray(spacing)) {\n const classNames = [];\n Object.entries(spacing).forEach(([key, value]) => {\n if (isValidSpacing(value)) {\n classNames.push(`spacing-${key}-${String(value)}`);\n }\n });\n return classNames;\n }\n return [];\n};\nexport const generateDirectionClasses = direction => {\n if (direction === undefined) {\n return [];\n }\n if (typeof direction === 'object') {\n return Object.entries(direction).map(([key, value]) => `direction-${key}-${value}`);\n }\n return [`direction-xs-${String(direction)}`];\n};","const getLegacyGridWarning = propName => {\n if (['item', 'zeroMinWidth'].includes(propName)) {\n return `The \\`${propName}\\` prop has been removed and is no longer necessary. You can safely remove it.`;\n }\n\n // #host-reference\n return `The \\`${propName}\\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`;\n};\nconst warnedAboutProps = [];\n\n/**\n * Deletes the legacy Grid component props from the `props` object and warns once about them if found.\n *\n * @param {object} props The props object to remove the legacy Grid props from.\n * @param {Breakpoints} breakpoints The breakpoints object.\n */\nexport default function deleteLegacyGridProps(props, breakpoints) {\n const propsToWarn = [];\n if (props.item !== undefined) {\n delete props.item;\n propsToWarn.push('item');\n }\n if (props.zeroMinWidth !== undefined) {\n delete props.zeroMinWidth;\n propsToWarn.push('zeroMinWidth');\n }\n breakpoints.keys.forEach(breakpoint => {\n if (props[breakpoint] !== undefined) {\n propsToWarn.push(breakpoint);\n delete props[breakpoint];\n }\n });\n if (process.env.NODE_ENV !== 'production') {\n propsToWarn.forEach(prop => {\n if (!warnedAboutProps.includes(prop)) {\n warnedAboutProps.push(prop);\n console.warn(`MUI Grid: ${getLegacyGridWarning(prop)}\\n`);\n }\n });\n }\n}","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport isMuiElement from '@mui/utils/isMuiElement';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport composeClasses from '@mui/utils/composeClasses';\nimport systemStyled from \"../styled/index.js\";\nimport useThemePropsSystem from \"../useThemeProps/index.js\";\nimport useThemeSystem from \"../useTheme/index.js\";\nimport { extendSxProp } from \"../styleFunctionSx/index.js\";\nimport createTheme from \"../createTheme/index.js\";\nimport { generateGridStyles, generateGridSizeStyles, generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridDirectionStyles, generateGridOffsetStyles, generateSizeClassNames, generateSpacingClassNames, generateDirectionClasses } from \"./gridGenerator.js\";\nimport deleteLegacyGridProps from \"./deleteLegacyGridProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst defaultTheme = createTheme();\n\n// widening Theme to any so that the consumer can own the theme structure.\nconst defaultCreateStyledComponent = systemStyled('div', {\n name: 'MuiGrid',\n slot: 'Root'\n});\nfunction useThemePropsDefault(props) {\n return useThemePropsSystem({\n props,\n name: 'MuiGrid',\n defaultTheme\n });\n}\nexport default function createGrid(options = {}) {\n const {\n // This will allow adding custom styled fn (for example for custom sx style function)\n createStyledComponent = defaultCreateStyledComponent,\n useThemeProps = useThemePropsDefault,\n useTheme = useThemeSystem,\n componentName = 'MuiGrid'\n } = options;\n const useUtilityClasses = (ownerState, theme) => {\n const {\n container,\n direction,\n spacing,\n wrap,\n size\n } = ownerState;\n const slots = {\n root: ['root', container && 'container', wrap !== 'wrap' && `wrap-xs-${String(wrap)}`, ...generateDirectionClasses(direction), ...generateSizeClassNames(size), ...(container ? generateSpacingClassNames(spacing, theme.breakpoints.keys[0]) : [])]\n };\n return composeClasses(slots, slot => generateUtilityClass(componentName, slot), {});\n };\n function parseResponsiveProp(propValue, breakpoints, shouldUseValue = () => true) {\n const parsedProp = {};\n if (propValue === null) {\n return parsedProp;\n }\n if (Array.isArray(propValue)) {\n propValue.forEach((value, index) => {\n if (value !== null && shouldUseValue(value) && breakpoints.keys[index]) {\n parsedProp[breakpoints.keys[index]] = value;\n }\n });\n } else if (typeof propValue === 'object') {\n Object.keys(propValue).forEach(key => {\n const value = propValue[key];\n if (value !== null && value !== undefined && shouldUseValue(value)) {\n parsedProp[key] = value;\n }\n });\n } else {\n parsedProp[breakpoints.keys[0]] = propValue;\n }\n return parsedProp;\n }\n const GridRoot = createStyledComponent(generateGridColumnsStyles, generateGridColumnSpacingStyles, generateGridRowSpacingStyles, generateGridSizeStyles, generateGridDirectionStyles, generateGridStyles, generateGridOffsetStyles);\n const Grid = /*#__PURE__*/React.forwardRef(function Grid(inProps, ref) {\n const theme = useTheme();\n const themeProps = useThemeProps(inProps);\n const props = extendSxProp(themeProps); // `color` type conflicts with html color attribute.\n\n // TODO v8: Remove when removing the legacy Grid component\n deleteLegacyGridProps(props, theme.breakpoints);\n const {\n className,\n children,\n columns: columnsProp = 12,\n container = false,\n component = 'div',\n direction = 'row',\n wrap = 'wrap',\n size: sizeProp = {},\n offset: offsetProp = {},\n spacing: spacingProp = 0,\n rowSpacing: rowSpacingProp = spacingProp,\n columnSpacing: columnSpacingProp = spacingProp,\n unstable_level: level = 0,\n ...other\n } = props;\n const size = parseResponsiveProp(sizeProp, theme.breakpoints, val => val !== false);\n const offset = parseResponsiveProp(offsetProp, theme.breakpoints);\n const columns = inProps.columns ?? (level ? undefined : columnsProp);\n const spacing = inProps.spacing ?? (level ? undefined : spacingProp);\n const rowSpacing = inProps.rowSpacing ?? inProps.spacing ?? (level ? undefined : rowSpacingProp);\n const columnSpacing = inProps.columnSpacing ?? inProps.spacing ?? (level ? undefined : columnSpacingProp);\n const ownerState = {\n ...props,\n level,\n columns,\n container,\n direction,\n wrap,\n spacing,\n rowSpacing,\n columnSpacing,\n size,\n offset\n };\n const classes = useUtilityClasses(ownerState, theme);\n return /*#__PURE__*/_jsx(GridRoot, {\n ref: ref,\n as: component,\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ...other,\n children: React.Children.map(children, child => {\n if (/*#__PURE__*/React.isValidElement(child) && isMuiElement(child, ['Grid']) && container && child.props.container) {\n return /*#__PURE__*/React.cloneElement(child, {\n unstable_level: child.props?.unstable_level ?? level + 1\n });\n }\n return child;\n })\n });\n });\n process.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n children: PropTypes.node,\n className: PropTypes.string,\n columns: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n columnSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n component: PropTypes.elementType,\n container: PropTypes.bool,\n direction: PropTypes.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n rowSpacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n size: PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n } : void 0;\n\n // @ts-ignore internal logic for nested grid\n Grid.muiName = 'Grid';\n return Grid;\n}","const common = {\n black: '#000',\n white: '#fff'\n};\nexport default common;","const grey = {\n 50: '#fafafa',\n 100: '#f5f5f5',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 600: '#757575',\n 700: '#616161',\n 800: '#424242',\n 900: '#212121',\n A100: '#f5f5f5',\n A200: '#eeeeee',\n A400: '#bdbdbd',\n A700: '#616161'\n};\nexport default grey;","const purple = {\n 50: '#f3e5f5',\n 100: '#e1bee7',\n 200: '#ce93d8',\n 300: '#ba68c8',\n 400: '#ab47bc',\n 500: '#9c27b0',\n 600: '#8e24aa',\n 700: '#7b1fa2',\n 800: '#6a1b9a',\n 900: '#4a148c',\n A100: '#ea80fc',\n A200: '#e040fb',\n A400: '#d500f9',\n A700: '#aa00ff'\n};\nexport default purple;","const red = {\n 50: '#ffebee',\n 100: '#ffcdd2',\n 200: '#ef9a9a',\n 300: '#e57373',\n 400: '#ef5350',\n 500: '#f44336',\n 600: '#e53935',\n 700: '#d32f2f',\n 800: '#c62828',\n 900: '#b71c1c',\n A100: '#ff8a80',\n A200: '#ff5252',\n A400: '#ff1744',\n A700: '#d50000'\n};\nexport default red;","const orange = {\n 50: '#fff3e0',\n 100: '#ffe0b2',\n 200: '#ffcc80',\n 300: '#ffb74d',\n 400: '#ffa726',\n 500: '#ff9800',\n 600: '#fb8c00',\n 700: '#f57c00',\n 800: '#ef6c00',\n 900: '#e65100',\n A100: '#ffd180',\n A200: '#ffab40',\n A400: '#ff9100',\n A700: '#ff6d00'\n};\nexport default orange;","const blue = {\n 50: '#e3f2fd',\n 100: '#bbdefb',\n 200: '#90caf9',\n 300: '#64b5f6',\n 400: '#42a5f5',\n 500: '#2196f3',\n 600: '#1e88e5',\n 700: '#1976d2',\n 800: '#1565c0',\n 900: '#0d47a1',\n A100: '#82b1ff',\n A200: '#448aff',\n A400: '#2979ff',\n A700: '#2962ff'\n};\nexport default blue;","const lightBlue = {\n 50: '#e1f5fe',\n 100: '#b3e5fc',\n 200: '#81d4fa',\n 300: '#4fc3f7',\n 400: '#29b6f6',\n 500: '#03a9f4',\n 600: '#039be5',\n 700: '#0288d1',\n 800: '#0277bd',\n 900: '#01579b',\n A100: '#80d8ff',\n A200: '#40c4ff',\n A400: '#00b0ff',\n A700: '#0091ea'\n};\nexport default lightBlue;","const green = {\n 50: '#e8f5e9',\n 100: '#c8e6c9',\n 200: '#a5d6a7',\n 300: '#81c784',\n 400: '#66bb6a',\n 500: '#4caf50',\n 600: '#43a047',\n 700: '#388e3c',\n 800: '#2e7d32',\n 900: '#1b5e20',\n A100: '#b9f6ca',\n A200: '#69f0ae',\n A400: '#00e676',\n A700: '#00c853'\n};\nexport default green;","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { darken, getContrastRatio, lighten } from '@mui/system/colorManipulator';\nimport common from \"../colors/common.js\";\nimport grey from \"../colors/grey.js\";\nimport purple from \"../colors/purple.js\";\nimport red from \"../colors/red.js\";\nimport orange from \"../colors/orange.js\";\nimport blue from \"../colors/blue.js\";\nimport lightBlue from \"../colors/lightBlue.js\";\nimport green from \"../colors/green.js\";\nfunction getLight() {\n return {\n // The colors used to style the text.\n text: {\n // The most important text.\n primary: 'rgba(0, 0, 0, 0.87)',\n // Secondary text.\n secondary: 'rgba(0, 0, 0, 0.6)',\n // Disabled text have even lower visual prominence.\n disabled: 'rgba(0, 0, 0, 0.38)'\n },\n // The color used to divide different elements.\n divider: 'rgba(0, 0, 0, 0.12)',\n // The background colors used to style the surfaces.\n // Consistency between these values is important.\n background: {\n paper: common.white,\n default: common.white\n },\n // The colors used to style the action elements.\n action: {\n // The color of an active action like an icon button.\n active: 'rgba(0, 0, 0, 0.54)',\n // The color of an hovered action.\n hover: 'rgba(0, 0, 0, 0.04)',\n hoverOpacity: 0.04,\n // The color of a selected action.\n selected: 'rgba(0, 0, 0, 0.08)',\n selectedOpacity: 0.08,\n // The color of a disabled action.\n disabled: 'rgba(0, 0, 0, 0.26)',\n // The background color of a disabled action.\n disabledBackground: 'rgba(0, 0, 0, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(0, 0, 0, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.12\n }\n };\n}\nexport const light = getLight();\nfunction getDark() {\n return {\n text: {\n primary: common.white,\n secondary: 'rgba(255, 255, 255, 0.7)',\n disabled: 'rgba(255, 255, 255, 0.5)',\n icon: 'rgba(255, 255, 255, 0.5)'\n },\n divider: 'rgba(255, 255, 255, 0.12)',\n background: {\n paper: '#121212',\n default: '#121212'\n },\n action: {\n active: common.white,\n hover: 'rgba(255, 255, 255, 0.08)',\n hoverOpacity: 0.08,\n selected: 'rgba(255, 255, 255, 0.16)',\n selectedOpacity: 0.16,\n disabled: 'rgba(255, 255, 255, 0.3)',\n disabledBackground: 'rgba(255, 255, 255, 0.12)',\n disabledOpacity: 0.38,\n focus: 'rgba(255, 255, 255, 0.12)',\n focusOpacity: 0.12,\n activatedOpacity: 0.24\n }\n };\n}\nexport const dark = getDark();\nfunction addLightOrDark(intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = lighten(intent.main, tonalOffsetLight);\n } else if (direction === 'dark') {\n intent.dark = darken(intent.main, tonalOffsetDark);\n }\n }\n}\nfunction mixLightOrDark(colorSpace, intent, direction, shade, tonalOffset) {\n const tonalOffsetLight = tonalOffset.light || tonalOffset;\n const tonalOffsetDark = tonalOffset.dark || tonalOffset * 1.5;\n if (!intent[direction]) {\n if (intent.hasOwnProperty(shade)) {\n intent[direction] = intent[shade];\n } else if (direction === 'light') {\n intent.light = `color-mix(in ${colorSpace}, ${intent.main}, #fff ${(tonalOffsetLight * 100).toFixed(0)}%)`;\n } else if (direction === 'dark') {\n intent.dark = `color-mix(in ${colorSpace}, ${intent.main}, #000 ${(tonalOffsetDark * 100).toFixed(0)}%)`;\n }\n }\n}\nfunction getDefaultPrimary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: blue[200],\n light: blue[50],\n dark: blue[400]\n };\n }\n return {\n main: blue[700],\n light: blue[400],\n dark: blue[800]\n };\n}\nfunction getDefaultSecondary(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: purple[200],\n light: purple[50],\n dark: purple[400]\n };\n }\n return {\n main: purple[500],\n light: purple[300],\n dark: purple[700]\n };\n}\nfunction getDefaultError(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: red[500],\n light: red[300],\n dark: red[700]\n };\n }\n return {\n main: red[700],\n light: red[400],\n dark: red[800]\n };\n}\nfunction getDefaultInfo(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: lightBlue[400],\n light: lightBlue[300],\n dark: lightBlue[700]\n };\n }\n return {\n main: lightBlue[700],\n light: lightBlue[500],\n dark: lightBlue[900]\n };\n}\nfunction getDefaultSuccess(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: green[400],\n light: green[300],\n dark: green[700]\n };\n }\n return {\n main: green[800],\n light: green[500],\n dark: green[900]\n };\n}\nfunction getDefaultWarning(mode = 'light') {\n if (mode === 'dark') {\n return {\n main: orange[400],\n light: orange[300],\n dark: orange[700]\n };\n }\n return {\n main: '#ed6c02',\n // closest to orange[800] that pass 3:1.\n light: orange[500],\n dark: orange[900]\n };\n}\n\n// Use the same name as the experimental CSS `contrast-color` function.\nexport function contrastColor(background) {\n return `oklch(from ${background} var(--__l) 0 h / var(--__a))`;\n}\nexport default function createPalette(palette) {\n const {\n mode = 'light',\n contrastThreshold = 3,\n tonalOffset = 0.2,\n colorSpace,\n ...other\n } = palette;\n const primary = palette.primary || getDefaultPrimary(mode);\n const secondary = palette.secondary || getDefaultSecondary(mode);\n const error = palette.error || getDefaultError(mode);\n const info = palette.info || getDefaultInfo(mode);\n const success = palette.success || getDefaultSuccess(mode);\n const warning = palette.warning || getDefaultWarning(mode);\n\n // Use the same logic as\n // Bootstrap: https://github.com/twbs/bootstrap/blob/1d6e3710dd447de1a200f29e8fa521f8a0908f70/scss/_functions.scss#L59\n // and material-components-web https://github.com/material-components/material-components-web/blob/ac46b8863c4dab9fc22c4c662dc6bd1b65dd652f/packages/mdc-theme/_functions.scss#L54\n function getContrastText(background) {\n if (colorSpace) {\n return contrastColor(background);\n }\n const contrastText = getContrastRatio(background, dark.text.primary) >= contrastThreshold ? dark.text.primary : light.text.primary;\n if (process.env.NODE_ENV !== 'production') {\n const contrast = getContrastRatio(background, contrastText);\n if (contrast < 3) {\n console.error([`MUI: The contrast ratio of ${contrast}:1 for ${contrastText} on ${background}`, 'falls below the WCAG recommended absolute minimum contrast ratio of 3:1.', 'https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast'].join('\\n'));\n }\n }\n return contrastText;\n }\n const augmentColor = ({\n color,\n name,\n mainShade = 500,\n lightShade = 300,\n darkShade = 700\n }) => {\n color = {\n ...color\n };\n if (!color.main && color[mainShade]) {\n color.main = color[mainShade];\n }\n if (!color.hasOwnProperty('main')) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `The color object needs to have a \\`main\\` property or a \\`${mainShade}\\` property.` : _formatErrorMessage(11, name ? ` (${name})` : '', mainShade));\n }\n if (typeof color.main !== 'string') {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The color${name ? ` (${name})` : ''} provided to augmentColor(color) is invalid.\\n` + `\\`color.main\\` should be a string, but \\`${JSON.stringify(color.main)}\\` was provided instead.\\n` + '\\n' + 'Did you intend to use one of the following approaches?\\n' + '\\n' + 'import { green } from \"@mui/material/colors\";\\n' + '\\n' + 'const theme1 = createTheme({ palette: {\\n' + ' primary: green,\\n' + '} });\\n' + '\\n' + 'const theme2 = createTheme({ palette: {\\n' + ' primary: { main: green[500] },\\n' + '} });' : _formatErrorMessage(12, name ? ` (${name})` : '', JSON.stringify(color.main)));\n }\n if (colorSpace) {\n mixLightOrDark(colorSpace, color, 'light', lightShade, tonalOffset);\n mixLightOrDark(colorSpace, color, 'dark', darkShade, tonalOffset);\n } else {\n addLightOrDark(color, 'light', lightShade, tonalOffset);\n addLightOrDark(color, 'dark', darkShade, tonalOffset);\n }\n if (!color.contrastText) {\n color.contrastText = getContrastText(color.main);\n }\n return color;\n };\n let modeHydrated;\n if (mode === 'light') {\n modeHydrated = getLight();\n } else if (mode === 'dark') {\n modeHydrated = getDark();\n }\n if (process.env.NODE_ENV !== 'production') {\n if (!modeHydrated) {\n console.error(`MUI: The palette mode \\`${mode}\\` is not supported.`);\n }\n }\n const paletteOutput = deepmerge({\n // A collection of common colors.\n common: {\n ...common\n },\n // prevent mutable object.\n // The palette mode, can be light or dark.\n mode,\n // The colors used to represent primary interface elements for a user.\n primary: augmentColor({\n color: primary,\n name: 'primary'\n }),\n // The colors used to represent secondary interface elements for a user.\n secondary: augmentColor({\n color: secondary,\n name: 'secondary',\n mainShade: 'A400',\n lightShade: 'A200',\n darkShade: 'A700'\n }),\n // The colors used to represent interface elements that the user should be made aware of.\n error: augmentColor({\n color: error,\n name: 'error'\n }),\n // The colors used to represent potentially dangerous actions or important messages.\n warning: augmentColor({\n color: warning,\n name: 'warning'\n }),\n // The colors used to present information to the user that is neutral and not necessarily important.\n info: augmentColor({\n color: info,\n name: 'info'\n }),\n // The colors used to indicate the successful completion of an action that user triggered.\n success: augmentColor({\n color: success,\n name: 'success'\n }),\n // The grey colors.\n grey,\n // Used by `getContrastText()` to maximize the contrast between\n // the background and the text.\n contrastThreshold,\n // Takes a background color and returns the text color that maximizes the contrast.\n getContrastText,\n // Generate a rich color object.\n augmentColor,\n // Used by the functions below to shift a color's luminance by approximately\n // two indexes within its tonal palette.\n // E.g., shift from Red 500 to Red 300 or Red 700.\n tonalOffset,\n // The light and dark mode object.\n ...modeHydrated\n }, other);\n return paletteOutput;\n}","export default function prepareTypographyVars(typography) {\n const vars = {};\n const entries = Object.entries(typography);\n entries.forEach(entry => {\n const [key, value] = entry;\n if (typeof value === 'object') {\n vars[key] = `${value.fontStyle ? `${value.fontStyle} ` : ''}${value.fontVariant ? `${value.fontVariant} ` : ''}${value.fontWeight ? `${value.fontWeight} ` : ''}${value.fontStretch ? `${value.fontStretch} ` : ''}${value.fontSize || ''}${value.lineHeight ? `/${value.lineHeight} ` : ''}${value.fontFamily || ''}`;\n }\n });\n return vars;\n}","export default function createMixins(breakpoints, mixins) {\n return {\n toolbar: {\n minHeight: 56,\n [breakpoints.up('xs')]: {\n '@media (orientation: landscape)': {\n minHeight: 48\n }\n },\n [breakpoints.up('sm')]: {\n minHeight: 64\n }\n },\n ...mixins\n };\n}","import deepmerge from '@mui/utils/deepmerge';\nfunction round(value) {\n return Math.round(value * 1e5) / 1e5;\n}\nconst caseAllCaps = {\n textTransform: 'uppercase'\n};\nconst defaultFontFamily = '\"Roboto\", \"Helvetica\", \"Arial\", sans-serif';\n\n/**\n * @see @link{https://m2.material.io/design/typography/the-type-system.html}\n * @see @link{https://m2.material.io/design/typography/understanding-typography.html}\n */\nexport default function createTypography(palette, typography) {\n const {\n fontFamily = defaultFontFamily,\n // The default font size of the Material Specification.\n fontSize = 14,\n // px\n fontWeightLight = 300,\n fontWeightRegular = 400,\n fontWeightMedium = 500,\n fontWeightBold = 700,\n // Tell MUI what's the font-size on the html element.\n // 16px is the default font-size used by browsers.\n htmlFontSize = 16,\n // Apply the CSS properties to all the variants.\n allVariants,\n pxToRem: pxToRem2,\n ...other\n } = typeof typography === 'function' ? typography(palette) : typography;\n if (process.env.NODE_ENV !== 'production') {\n if (typeof fontSize !== 'number') {\n console.error('MUI: `fontSize` is required to be a number.');\n }\n if (typeof htmlFontSize !== 'number') {\n console.error('MUI: `htmlFontSize` is required to be a number.');\n }\n }\n const coef = fontSize / 14;\n const pxToRem = pxToRem2 || (size => `${size / htmlFontSize * coef}rem`);\n const buildVariant = (fontWeight, size, lineHeight, letterSpacing, casing) => ({\n fontFamily,\n fontWeight,\n fontSize: pxToRem(size),\n // Unitless following https://meyerweb.com/eric/thoughts/2006/02/08/unitless-line-heights/\n lineHeight,\n // The letter spacing was designed for the Roboto font-family. Using the same letter-spacing\n // across font-families can cause issues with the kerning.\n ...(fontFamily === defaultFontFamily ? {\n letterSpacing: `${round(letterSpacing / size)}em`\n } : {}),\n ...casing,\n ...allVariants\n });\n const variants = {\n h1: buildVariant(fontWeightLight, 96, 1.167, -1.5),\n h2: buildVariant(fontWeightLight, 60, 1.2, -0.5),\n h3: buildVariant(fontWeightRegular, 48, 1.167, 0),\n h4: buildVariant(fontWeightRegular, 34, 1.235, 0.25),\n h5: buildVariant(fontWeightRegular, 24, 1.334, 0),\n h6: buildVariant(fontWeightMedium, 20, 1.6, 0.15),\n subtitle1: buildVariant(fontWeightRegular, 16, 1.75, 0.15),\n subtitle2: buildVariant(fontWeightMedium, 14, 1.57, 0.1),\n body1: buildVariant(fontWeightRegular, 16, 1.5, 0.15),\n body2: buildVariant(fontWeightRegular, 14, 1.43, 0.15),\n button: buildVariant(fontWeightMedium, 14, 1.75, 0.4, caseAllCaps),\n caption: buildVariant(fontWeightRegular, 12, 1.66, 0.4),\n overline: buildVariant(fontWeightRegular, 12, 2.66, 1, caseAllCaps),\n // TODO v6: Remove handling of 'inherit' variant from the theme as it is already handled in Material UI's Typography component. Also, remember to remove the associated types.\n inherit: {\n fontFamily: 'inherit',\n fontWeight: 'inherit',\n fontSize: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n };\n return deepmerge({\n htmlFontSize,\n pxToRem,\n fontFamily,\n fontSize,\n fontWeightLight,\n fontWeightRegular,\n fontWeightMedium,\n fontWeightBold,\n ...variants\n }, other, {\n clone: false // No need to clone deep\n });\n}","const shadowKeyUmbraOpacity = 0.2;\nconst shadowKeyPenumbraOpacity = 0.14;\nconst shadowAmbientShadowOpacity = 0.12;\nfunction createShadow(...px) {\n return [`${px[0]}px ${px[1]}px ${px[2]}px ${px[3]}px rgba(0,0,0,${shadowKeyUmbraOpacity})`, `${px[4]}px ${px[5]}px ${px[6]}px ${px[7]}px rgba(0,0,0,${shadowKeyPenumbraOpacity})`, `${px[8]}px ${px[9]}px ${px[10]}px ${px[11]}px rgba(0,0,0,${shadowAmbientShadowOpacity})`].join(',');\n}\n\n// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss\nconst shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];\nexport default shadows;","// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves\n// to learn the context in which each easing should be used.\nexport const easing = {\n // This is the most common easing curve.\n easeInOut: 'cubic-bezier(0.4, 0, 0.2, 1)',\n // Objects enter the screen at full velocity from off-screen and\n // slowly decelerate to a resting point.\n easeOut: 'cubic-bezier(0.0, 0, 0.2, 1)',\n // Objects leave the screen at full velocity. They do not decelerate when off-screen.\n easeIn: 'cubic-bezier(0.4, 0, 1, 1)',\n // The sharp curve is used by objects that may return to the screen at any time.\n sharp: 'cubic-bezier(0.4, 0, 0.6, 1)'\n};\n\n// Follow https://m2.material.io/guidelines/motion/duration-easing.html#duration-easing-common-durations\n// to learn when use what timing\nexport const duration = {\n shortest: 150,\n shorter: 200,\n short: 250,\n // most basic recommended timing\n standard: 300,\n // this is to be used in complex animations\n complex: 375,\n // recommended when something is entering screen\n enteringScreen: 225,\n // recommended when something is leaving screen\n leavingScreen: 195\n};\nfunction formatMs(milliseconds) {\n return `${Math.round(milliseconds)}ms`;\n}\nfunction getAutoHeightDuration(height) {\n if (!height) {\n return 0;\n }\n const constant = height / 36;\n\n // https://www.desmos.com/calculator/vbrp3ggqet\n return Math.min(Math.round((4 + 15 * constant ** 0.25 + constant / 5) * 10), 3000);\n}\nexport default function createTransitions(inputTransitions) {\n const mergedEasing = {\n ...easing,\n ...inputTransitions.easing\n };\n const mergedDuration = {\n ...duration,\n ...inputTransitions.duration\n };\n const create = (props = ['all'], options = {}) => {\n const {\n duration: durationOption = mergedDuration.standard,\n easing: easingOption = mergedEasing.easeInOut,\n delay = 0,\n ...other\n } = options;\n if (process.env.NODE_ENV !== 'production') {\n const isString = value => typeof value === 'string';\n const isNumber = value => !Number.isNaN(parseFloat(value));\n if (!isString(props) && !Array.isArray(props)) {\n console.error('MUI: Argument \"props\" must be a string or Array.');\n }\n if (!isNumber(durationOption) && !isString(durationOption)) {\n console.error(`MUI: Argument \"duration\" must be a number or a string but found ${durationOption}.`);\n }\n if (!isString(easingOption)) {\n console.error('MUI: Argument \"easing\" must be a string.');\n }\n if (!isNumber(delay) && !isString(delay)) {\n console.error('MUI: Argument \"delay\" must be a number or a string.');\n }\n if (typeof options !== 'object') {\n console.error(['MUI: Secong argument of transition.create must be an object.', \"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`\"].join('\\n'));\n }\n if (Object.keys(other).length !== 0) {\n console.error(`MUI: Unrecognized argument(s) [${Object.keys(other).join(',')}].`);\n }\n }\n return (Array.isArray(props) ? props : [props]).map(animatedProp => `${animatedProp} ${typeof durationOption === 'string' ? durationOption : formatMs(durationOption)} ${easingOption} ${typeof delay === 'string' ? delay : formatMs(delay)}`).join(',');\n };\n return {\n getAutoHeightDuration,\n create,\n ...inputTransitions,\n easing: mergedEasing,\n duration: mergedDuration\n };\n}","// We need to centralize the zIndex definitions as they work\n// like global values in the browser.\nconst zIndex = {\n mobileStepper: 1000,\n fab: 1050,\n speedDial: 1050,\n appBar: 1100,\n drawer: 1200,\n modal: 1300,\n snackbar: 1400,\n tooltip: 1500\n};\nexport default zIndex;","/* eslint-disable import/prefer-default-export */\nimport { isPlainObject } from '@mui/utils/deepmerge';\nfunction isSerializable(val) {\n return isPlainObject(val) || typeof val === 'undefined' || typeof val === 'string' || typeof val === 'boolean' || typeof val === 'number' || Array.isArray(val);\n}\n\n/**\n * `baseTheme` usually comes from `createTheme()` or `extendTheme()`.\n *\n * This function is intended to be used with zero-runtime CSS-in-JS like Pigment CSS\n * For example, in a Next.js project:\n *\n * ```js\n * // next.config.js\n * const { extendTheme } = require('@mui/material/styles');\n *\n * const theme = extendTheme();\n * // `.toRuntimeSource` is Pigment CSS specific to create a theme that is available at runtime.\n * theme.toRuntimeSource = stringifyTheme;\n *\n * module.exports = withPigment({\n * theme,\n * });\n * ```\n */\nexport function stringifyTheme(baseTheme = {}) {\n const serializableTheme = {\n ...baseTheme\n };\n function serializeTheme(object) {\n const array = Object.entries(object);\n // eslint-disable-next-line no-plusplus\n for (let index = 0; index < array.length; index++) {\n const [key, value] = array[index];\n if (!isSerializable(value) || key.startsWith('unstable_')) {\n delete object[key];\n } else if (isPlainObject(value)) {\n object[key] = {\n ...value\n };\n serializeTheme(object[key]);\n }\n }\n }\n serializeTheme(serializableTheme);\n return `import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';\n\nconst theme = ${JSON.stringify(serializableTheme, null, 2)};\n\ntheme.breakpoints = createBreakpoints(theme.breakpoints || {});\ntheme.transitions = createTransitions(theme.transitions || {});\n\nexport default theme;`;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport systemCreateTheme from '@mui/system/createTheme';\nimport { alpha as systemAlpha, lighten as systemLighten, darken as systemDarken } from '@mui/system/colorManipulator';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport createMixins from \"./createMixins.js\";\nimport createPalette from \"./createPalette.js\";\nimport createTypography from \"./createTypography.js\";\nimport shadows from \"./shadows.js\";\nimport createTransitions from \"./createTransitions.js\";\nimport zIndex from \"./zIndex.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nfunction coefficientToPercentage(coefficient) {\n if (typeof coefficient === 'number') {\n return `${(coefficient * 100).toFixed(0)}%`;\n }\n return `calc((${coefficient}) * 100%)`;\n}\n\n// This can be removed when moved to `color-mix()` entirely.\nconst parseAddition = str => {\n if (!Number.isNaN(+str)) {\n return +str;\n }\n const numbers = str.match(/\\d*\\.?\\d+/g);\n if (!numbers) {\n return 0;\n }\n let sum = 0;\n for (let i = 0; i < numbers.length; i += 1) {\n sum += +numbers[i];\n }\n return sum;\n};\nfunction attachColorManipulators(theme) {\n Object.assign(theme, {\n alpha(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `oklch(from ${color} l c h / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n if (obj.vars) {\n // To preserve the behavior of the CSS theme variables\n // In the future, this could be replaced by `color-mix` (when https://caniuse.com/?search=color-mix reaches 95%).\n return `rgba(${color.replace(/var\\(--([^,\\s)]+)(?:,[^)]+)?\\)+/g, 'var(--$1Channel)')} / ${typeof coefficient === 'string' ? `calc(${coefficient})` : coefficient})`;\n }\n return systemAlpha(color, parseAddition(coefficient));\n },\n lighten(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #fff ${coefficientToPercentage(coefficient)})`;\n }\n return systemLighten(color, coefficient);\n },\n darken(color, coefficient) {\n const obj = this || theme;\n if (obj.colorSpace) {\n return `color-mix(in ${obj.colorSpace}, ${color}, #000 ${coefficientToPercentage(coefficient)})`;\n }\n return systemDarken(color, coefficient);\n }\n });\n}\nfunction createThemeNoVars(options = {}, ...args) {\n const {\n breakpoints: breakpointsInput,\n mixins: mixinsInput = {},\n spacing: spacingInput,\n palette: paletteInput = {},\n transitions: transitionsInput = {},\n typography: typographyInput = {},\n shape: shapeInput,\n colorSpace,\n ...other\n } = options;\n if (options.vars &&\n // The error should throw only for the root theme creation because user is not allowed to use a custom node `vars`.\n // `generateThemeVars` is the closest identifier for checking that the `options` is a result of `createTheme` with CSS variables so that user can create new theme for nested ThemeProvider.\n options.generateThemeVars === undefined) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: `vars` is a private field used for CSS variables support.\\n' +\n // #host-reference\n 'Please use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.' : _formatErrorMessage(20));\n }\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n const systemTheme = systemCreateTheme(options);\n let muiTheme = deepmerge(systemTheme, {\n mixins: createMixins(systemTheme.breakpoints, mixinsInput),\n palette,\n // Don't use [...shadows] until you've verified its transpiled code is not invoking the iterator protocol.\n shadows: shadows.slice(),\n typography: createTypography(palette, typographyInput),\n transitions: createTransitions(transitionsInput),\n zIndex: {\n ...zIndex\n }\n });\n muiTheme = deepmerge(muiTheme, other);\n muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO v6: Refactor to use globalStateClassesMapping from @mui/utils once `readOnly` state class is used in Rating component.\n const stateClasses = ['active', 'checked', 'completed', 'disabled', 'error', 'expanded', 'focused', 'focusVisible', 'required', 'selected'];\n const traverse = (node, component) => {\n let key;\n\n // eslint-disable-next-line guard-for-in\n for (key in node) {\n const child = node[key];\n if (stateClasses.includes(key) && Object.keys(child).length > 0) {\n if (process.env.NODE_ENV !== 'production') {\n const stateClass = generateUtilityClass('', key);\n console.error([`MUI: The \\`${component}\\` component increases ` + `the CSS specificity of the \\`${key}\\` internal state.`, 'You can not override it like this: ', JSON.stringify(node, null, 2), '', `Instead, you need to use the '&.${stateClass}' syntax:`, JSON.stringify({\n root: {\n [`&.${stateClass}`]: child\n }\n }, null, 2), '', 'https://mui.com/r/state-classes-guide'].join('\\n'));\n }\n // Remove the style to prevent global conflicts.\n node[key] = {};\n }\n }\n };\n Object.keys(muiTheme.components).forEach(component => {\n const styleOverrides = muiTheme.components[component].styleOverrides;\n if (styleOverrides && component.startsWith('Mui')) {\n traverse(styleOverrides, component);\n }\n });\n }\n muiTheme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...other?.unstable_sxConfig\n };\n muiTheme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n muiTheme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n attachColorManipulators(muiTheme);\n return muiTheme;\n}\nexport default createThemeNoVars;","// Inspired by https://github.com/material-components/material-components-ios/blob/bca36107405594d5b7b16265a5b0ed698f85a5ee/components/Elevation/src/UIColor%2BMaterialElevation.m#L61\nexport default function getOverlayAlpha(elevation) {\n let alphaValue;\n if (elevation < 1) {\n alphaValue = 5.11916 * elevation ** 2;\n } else {\n alphaValue = 4.5 * Math.log(elevation + 1) + 2;\n }\n return Math.round(alphaValue * 10) / 1000;\n}","import createPalette from \"./createPalette.js\";\nimport getOverlayAlpha from \"./getOverlayAlpha.js\";\nconst defaultDarkOverlays = [...Array(25)].map((_, index) => {\n if (index === 0) {\n return 'none';\n }\n const overlay = getOverlayAlpha(index);\n return `linear-gradient(rgba(255 255 255 / ${overlay}), rgba(255 255 255 / ${overlay}))`;\n});\nexport function getOpacity(mode) {\n return {\n inputPlaceholder: mode === 'dark' ? 0.5 : 0.42,\n inputUnderline: mode === 'dark' ? 0.7 : 0.42,\n switchTrackDisabled: mode === 'dark' ? 0.2 : 0.12,\n switchTrack: mode === 'dark' ? 0.3 : 0.38\n };\n}\nexport function getOverlays(mode) {\n return mode === 'dark' ? defaultDarkOverlays : [];\n}\nexport default function createColorScheme(options) {\n const {\n palette: paletteInput = {\n mode: 'light'\n },\n // need to cast to avoid module augmentation test\n opacity,\n overlays,\n colorSpace,\n ...other\n } = options;\n // need to cast because `colorSpace` is considered internal at the moment.\n const palette = createPalette({\n ...paletteInput,\n colorSpace\n });\n return {\n palette,\n opacity: {\n ...getOpacity(palette.mode),\n ...opacity\n },\n overlays: overlays || getOverlays(palette.mode),\n ...other\n };\n}","export default function shouldSkipGeneratingVar(keys) {\n return !!keys[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/) || !!keys[0].match(/sxConfig$/) ||\n // ends with sxConfig\n keys[0] === 'palette' && !!keys[1]?.match(/(mode|contrastThreshold|tonalOffset)/);\n}","/**\n * @internal These variables should not appear in the :root stylesheet when the `defaultColorScheme=\"dark\"`\n */\nconst excludeVariablesFromRoot = cssVarPrefix => [...[...Array(25)].map((_, index) => `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}overlays-${index}`), `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkBg`, `--${cssVarPrefix ? `${cssVarPrefix}-` : ''}palette-AppBar-darkColor`];\nexport default excludeVariablesFromRoot;","import excludeVariablesFromRoot from \"./excludeVariablesFromRoot.js\";\nexport default theme => (colorScheme, css) => {\n const root = theme.rootSelector || ':root';\n const selector = theme.colorSchemeSelector;\n let rule = selector;\n if (selector === 'class') {\n rule = '.%s';\n }\n if (selector === 'data') {\n rule = '[data-%s]';\n }\n if (selector?.startsWith('data-') && !selector.includes('%s')) {\n // 'data-mui-color-scheme' -> '[data-mui-color-scheme=\"%s\"]'\n rule = `[${selector}=\"%s\"]`;\n }\n if (theme.defaultColorScheme === colorScheme) {\n if (colorScheme === 'dark') {\n const excludedVariables = {};\n excludeVariablesFromRoot(theme.cssVarPrefix).forEach(cssVar => {\n excludedVariables[cssVar] = css[cssVar];\n delete css[cssVar];\n });\n if (rule === 'media') {\n return {\n [root]: css,\n [`@media (prefers-color-scheme: dark)`]: {\n [root]: excludedVariables\n }\n };\n }\n if (rule) {\n return {\n [rule.replace('%s', colorScheme)]: excludedVariables,\n [`${root}, ${rule.replace('%s', colorScheme)}`]: css\n };\n }\n return {\n [root]: {\n ...css,\n ...excludedVariables\n }\n };\n }\n if (rule && rule !== 'media') {\n return `${root}, ${rule.replace('%s', String(colorScheme))}`;\n }\n } else if (colorScheme) {\n if (rule === 'media') {\n return {\n [`@media (prefers-color-scheme: ${String(colorScheme)})`]: {\n [root]: css\n }\n };\n }\n if (rule) {\n return rule.replace('%s', String(colorScheme));\n }\n }\n return root;\n};","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport deepmerge from '@mui/utils/deepmerge';\nimport { unstable_createGetCssVar as systemCreateGetCssVar, createSpacing } from '@mui/system';\nimport { createUnarySpacing } from '@mui/system/spacing';\nimport { prepareCssVars, prepareTypographyVars, createGetColorSchemeSelector } from '@mui/system/cssVars';\nimport styleFunctionSx, { unstable_defaultSxConfig as defaultSxConfig } from '@mui/system/styleFunctionSx';\nimport { private_safeColorChannel as safeColorChannel, private_safeAlpha as safeAlpha, private_safeDarken as safeDarken, private_safeLighten as safeLighten, private_safeEmphasize as safeEmphasize, hslToRgb } from '@mui/system/colorManipulator';\nimport createThemeNoVars from \"./createThemeNoVars.js\";\nimport createColorScheme, { getOpacity, getOverlays } from \"./createColorScheme.js\";\nimport defaultShouldSkipGeneratingVar from \"./shouldSkipGeneratingVar.js\";\nimport defaultGetSelector from \"./createGetSelector.js\";\nimport { stringifyTheme } from \"./stringifyTheme.js\";\nimport { light, dark } from \"./createPalette.js\";\nfunction assignNode(obj, keys) {\n keys.forEach(k => {\n if (!obj[k]) {\n obj[k] = {};\n }\n });\n}\nfunction setColor(obj, key, defaultValue) {\n if (!obj[key] && defaultValue) {\n obj[key] = defaultValue;\n }\n}\nfunction toRgb(color) {\n if (typeof color !== 'string' || !color.startsWith('hsl')) {\n return color;\n }\n return hslToRgb(color);\n}\nfunction setColorChannel(obj, key) {\n if (!(`${key}Channel` in obj)) {\n // custom channel token is not provided, generate one.\n // if channel token can't be generated, show a warning.\n obj[`${key}Channel`] = safeColorChannel(toRgb(obj[key]), `MUI: Can't create \\`palette.${key}Channel\\` because \\`palette.${key}\\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().` + '\\n' + `To suppress this warning, you need to explicitly provide the \\`palette.${key}Channel\\` as a string (in rgb format, for example \"12 12 12\") or undefined if you want to remove the channel token.`);\n }\n}\nfunction getSpacingVal(spacingInput) {\n if (typeof spacingInput === 'number') {\n return `${spacingInput}px`;\n }\n if (typeof spacingInput === 'string' || typeof spacingInput === 'function' || Array.isArray(spacingInput)) {\n return spacingInput;\n }\n return '8px';\n}\nconst silent = fn => {\n try {\n return fn();\n } catch (error) {\n // ignore error\n }\n return undefined;\n};\nexport const createGetCssVar = (cssVarPrefix = 'mui') => systemCreateGetCssVar(cssVarPrefix);\nfunction attachColorScheme(colorSpace, colorSchemes, scheme, restTheme, colorScheme) {\n if (!scheme) {\n return undefined;\n }\n scheme = scheme === true ? {} : scheme;\n const mode = colorScheme === 'dark' ? 'dark' : 'light';\n if (!restTheme) {\n colorSchemes[colorScheme] = createColorScheme({\n ...scheme,\n palette: {\n mode,\n ...scheme?.palette\n },\n colorSpace\n });\n return undefined;\n }\n const {\n palette,\n ...muiTheme\n } = createThemeNoVars({\n ...restTheme,\n palette: {\n mode,\n ...scheme?.palette\n },\n colorSpace\n });\n colorSchemes[colorScheme] = {\n ...scheme,\n palette,\n opacity: {\n ...getOpacity(mode),\n ...scheme?.opacity\n },\n overlays: scheme?.overlays || getOverlays(mode)\n };\n return muiTheme;\n}\n\n/**\n * A default `createThemeWithVars` comes with a single color scheme, either `light` or `dark` based on the `defaultColorScheme`.\n * This is better suited for apps that only need a single color scheme.\n *\n * To enable built-in `light` and `dark` color schemes, either:\n * 1. provide a `colorSchemeSelector` to define how the color schemes will change.\n * 2. provide `colorSchemes.dark` will set `colorSchemeSelector: 'media'` by default.\n */\nexport default function createThemeWithVars(options = {}, ...args) {\n const {\n colorSchemes: colorSchemesInput = {\n light: true\n },\n defaultColorScheme: defaultColorSchemeInput,\n disableCssColorScheme = false,\n cssVarPrefix = 'mui',\n nativeColor = false,\n shouldSkipGeneratingVar = defaultShouldSkipGeneratingVar,\n colorSchemeSelector: selector = colorSchemesInput.light && colorSchemesInput.dark ? 'media' : undefined,\n rootSelector = ':root',\n ...input\n } = options;\n const firstColorScheme = Object.keys(colorSchemesInput)[0];\n const defaultColorScheme = defaultColorSchemeInput || (colorSchemesInput.light && firstColorScheme !== 'light' ? 'light' : firstColorScheme);\n const getCssVar = createGetCssVar(cssVarPrefix);\n const {\n [defaultColorScheme]: defaultSchemeInput,\n light: builtInLight,\n dark: builtInDark,\n ...customColorSchemes\n } = colorSchemesInput;\n const colorSchemes = {\n ...customColorSchemes\n };\n let defaultScheme = defaultSchemeInput;\n\n // For built-in light and dark color schemes, ensure that the value is valid if they are the default color scheme.\n if (defaultColorScheme === 'dark' && !('dark' in colorSchemesInput) || defaultColorScheme === 'light' && !('light' in colorSchemesInput)) {\n defaultScheme = true;\n }\n if (!defaultScheme) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? `MUI: The \\`colorSchemes.${defaultColorScheme}\\` option is either missing or invalid.` : _formatErrorMessage(21, defaultColorScheme));\n }\n\n // The reason to use `oklch` is that it is the most perceptually uniform color space and widely supported.\n let colorSpace;\n if (nativeColor) {\n colorSpace = 'oklch';\n }\n\n // Create the palette for the default color scheme, either `light`, `dark`, or custom color scheme.\n const muiTheme = attachColorScheme(colorSpace, colorSchemes, defaultScheme, input, defaultColorScheme);\n if (builtInLight && !colorSchemes.light) {\n attachColorScheme(colorSpace, colorSchemes, builtInLight, undefined, 'light');\n }\n if (builtInDark && !colorSchemes.dark) {\n attachColorScheme(colorSpace, colorSchemes, builtInDark, undefined, 'dark');\n }\n let theme = {\n defaultColorScheme,\n ...muiTheme,\n cssVarPrefix,\n colorSchemeSelector: selector,\n rootSelector,\n getCssVar,\n colorSchemes,\n font: {\n ...prepareTypographyVars(muiTheme.typography),\n ...muiTheme.font\n },\n spacing: getSpacingVal(input.spacing)\n };\n Object.keys(theme.colorSchemes).forEach(key => {\n const palette = theme.colorSchemes[key].palette;\n const setCssVarColor = cssVar => {\n const tokens = cssVar.split('-');\n const color = tokens[1];\n const colorToken = tokens[2];\n return getCssVar(cssVar, palette[color][colorToken]);\n };\n\n // attach black & white channels to common node\n if (palette.mode === 'light') {\n setColor(palette.common, 'background', '#fff');\n setColor(palette.common, 'onBackground', '#000');\n }\n if (palette.mode === 'dark') {\n setColor(palette.common, 'background', '#000');\n setColor(palette.common, 'onBackground', '#fff');\n }\n function colorMix(method, color, coefficient) {\n if (colorSpace) {\n let mixer;\n if (method === safeAlpha) {\n mixer = `transparent ${((1 - coefficient) * 100).toFixed(0)}%`;\n }\n if (method === safeDarken) {\n mixer = `#000 ${(coefficient * 100).toFixed(0)}%`;\n }\n if (method === safeLighten) {\n mixer = `#fff ${(coefficient * 100).toFixed(0)}%`;\n }\n return `color-mix(in ${colorSpace}, ${color}, ${mixer})`;\n }\n return method(color, coefficient);\n }\n\n // assign component variables\n assignNode(palette, ['Alert', 'AppBar', 'Avatar', 'Button', 'Chip', 'FilledInput', 'LinearProgress', 'Skeleton', 'Slider', 'SnackbarContent', 'SpeedDialAction', 'StepConnector', 'StepContent', 'Switch', 'TableCell', 'Tooltip']);\n if (palette.mode === 'light') {\n setColor(palette.Alert, 'errorColor', colorMix(safeDarken, palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', colorMix(safeDarken, palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', colorMix(safeDarken, palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', colorMix(safeDarken, palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-main'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.main)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.main)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.main)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.main)));\n setColor(palette.Alert, 'errorStandardBg', colorMix(safeLighten, palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', colorMix(safeLighten, palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', colorMix(safeLighten, palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', colorMix(safeLighten, palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-100'));\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-400'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-300'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-A100'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-400'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-700'));\n setColor(palette.FilledInput, 'bg', 'rgba(0, 0, 0, 0.06)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(0, 0, 0, 0.09)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(0, 0, 0, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', colorMix(safeLighten, palette.primary.main, 0.62));\n setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeLighten, palette.secondary.main, 0.62));\n setColor(palette.LinearProgress, 'errorBg', colorMix(safeLighten, palette.error.main, 0.62));\n setColor(palette.LinearProgress, 'infoBg', colorMix(safeLighten, palette.info.main, 0.62));\n setColor(palette.LinearProgress, 'successBg', colorMix(safeLighten, palette.success.main, 0.62));\n setColor(palette.LinearProgress, 'warningBg', colorMix(safeLighten, palette.warning.main, 0.62));\n setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, palette.text.primary, 0.11) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.11)`);\n setColor(palette.Slider, 'primaryTrack', colorMix(safeLighten, palette.primary.main, 0.62));\n setColor(palette.Slider, 'secondaryTrack', colorMix(safeLighten, palette.secondary.main, 0.62));\n setColor(palette.Slider, 'errorTrack', colorMix(safeLighten, palette.error.main, 0.62));\n setColor(palette.Slider, 'infoTrack', colorMix(safeLighten, palette.info.main, 0.62));\n setColor(palette.Slider, 'successTrack', colorMix(safeLighten, palette.success.main, 0.62));\n setColor(palette.Slider, 'warningTrack', colorMix(safeLighten, palette.warning.main, 0.62));\n const snackbarContentBackground = colorSpace ? colorMix(safeDarken, palette.background.default, 0.6825) // use `0.6825` instead of `0.8` to match the contrast ratio of JS implementation\n : safeEmphasize(palette.background.default, 0.8);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? dark.text.primary : palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-400'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-common-white'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-100'));\n setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeLighten, palette.primary.main, 0.62));\n setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeLighten, palette.secondary.main, 0.62));\n setColor(palette.Switch, 'errorDisabledColor', colorMix(safeLighten, palette.error.main, 0.62));\n setColor(palette.Switch, 'infoDisabledColor', colorMix(safeLighten, palette.info.main, 0.62));\n setColor(palette.Switch, 'successDisabledColor', colorMix(safeLighten, palette.success.main, 0.62));\n setColor(palette.Switch, 'warningDisabledColor', colorMix(safeLighten, palette.warning.main, 0.62));\n setColor(palette.TableCell, 'border', colorMix(safeLighten, colorMix(safeAlpha, palette.divider, 1), 0.88));\n setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, palette.grey[700], 0.92));\n }\n if (palette.mode === 'dark') {\n setColor(palette.Alert, 'errorColor', colorMix(safeLighten, palette.error.light, 0.6));\n setColor(palette.Alert, 'infoColor', colorMix(safeLighten, palette.info.light, 0.6));\n setColor(palette.Alert, 'successColor', colorMix(safeLighten, palette.success.light, 0.6));\n setColor(palette.Alert, 'warningColor', colorMix(safeLighten, palette.warning.light, 0.6));\n setColor(palette.Alert, 'errorFilledBg', setCssVarColor('palette-error-dark'));\n setColor(palette.Alert, 'infoFilledBg', setCssVarColor('palette-info-dark'));\n setColor(palette.Alert, 'successFilledBg', setCssVarColor('palette-success-dark'));\n setColor(palette.Alert, 'warningFilledBg', setCssVarColor('palette-warning-dark'));\n setColor(palette.Alert, 'errorFilledColor', silent(() => palette.getContrastText(palette.error.dark)));\n setColor(palette.Alert, 'infoFilledColor', silent(() => palette.getContrastText(palette.info.dark)));\n setColor(palette.Alert, 'successFilledColor', silent(() => palette.getContrastText(palette.success.dark)));\n setColor(palette.Alert, 'warningFilledColor', silent(() => palette.getContrastText(palette.warning.dark)));\n setColor(palette.Alert, 'errorStandardBg', colorMix(safeDarken, palette.error.light, 0.9));\n setColor(palette.Alert, 'infoStandardBg', colorMix(safeDarken, palette.info.light, 0.9));\n setColor(palette.Alert, 'successStandardBg', colorMix(safeDarken, palette.success.light, 0.9));\n setColor(palette.Alert, 'warningStandardBg', colorMix(safeDarken, palette.warning.light, 0.9));\n setColor(palette.Alert, 'errorIconColor', setCssVarColor('palette-error-main'));\n setColor(palette.Alert, 'infoIconColor', setCssVarColor('palette-info-main'));\n setColor(palette.Alert, 'successIconColor', setCssVarColor('palette-success-main'));\n setColor(palette.Alert, 'warningIconColor', setCssVarColor('palette-warning-main'));\n setColor(palette.AppBar, 'defaultBg', setCssVarColor('palette-grey-900'));\n setColor(palette.AppBar, 'darkBg', setCssVarColor('palette-background-paper')); // specific for dark mode\n setColor(palette.AppBar, 'darkColor', setCssVarColor('palette-text-primary')); // specific for dark mode\n setColor(palette.Avatar, 'defaultBg', setCssVarColor('palette-grey-600'));\n setColor(palette.Button, 'inheritContainedBg', setCssVarColor('palette-grey-800'));\n setColor(palette.Button, 'inheritContainedHoverBg', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultBorder', setCssVarColor('palette-grey-700'));\n setColor(palette.Chip, 'defaultAvatarColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Chip, 'defaultIconColor', setCssVarColor('palette-grey-300'));\n setColor(palette.FilledInput, 'bg', 'rgba(255, 255, 255, 0.09)');\n setColor(palette.FilledInput, 'hoverBg', 'rgba(255, 255, 255, 0.13)');\n setColor(palette.FilledInput, 'disabledBg', 'rgba(255, 255, 255, 0.12)');\n setColor(palette.LinearProgress, 'primaryBg', colorMix(safeDarken, palette.primary.main, 0.5));\n setColor(palette.LinearProgress, 'secondaryBg', colorMix(safeDarken, palette.secondary.main, 0.5));\n setColor(palette.LinearProgress, 'errorBg', colorMix(safeDarken, palette.error.main, 0.5));\n setColor(palette.LinearProgress, 'infoBg', colorMix(safeDarken, palette.info.main, 0.5));\n setColor(palette.LinearProgress, 'successBg', colorMix(safeDarken, palette.success.main, 0.5));\n setColor(palette.LinearProgress, 'warningBg', colorMix(safeDarken, palette.warning.main, 0.5));\n setColor(palette.Skeleton, 'bg', colorSpace ? colorMix(safeAlpha, palette.text.primary, 0.13) : `rgba(${setCssVarColor('palette-text-primaryChannel')} / 0.13)`);\n setColor(palette.Slider, 'primaryTrack', colorMix(safeDarken, palette.primary.main, 0.5));\n setColor(palette.Slider, 'secondaryTrack', colorMix(safeDarken, palette.secondary.main, 0.5));\n setColor(palette.Slider, 'errorTrack', colorMix(safeDarken, palette.error.main, 0.5));\n setColor(palette.Slider, 'infoTrack', colorMix(safeDarken, palette.info.main, 0.5));\n setColor(palette.Slider, 'successTrack', colorMix(safeDarken, palette.success.main, 0.5));\n setColor(palette.Slider, 'warningTrack', colorMix(safeDarken, palette.warning.main, 0.5));\n const snackbarContentBackground = colorSpace ? colorMix(safeLighten, palette.background.default, 0.985) // use `0.985` instead of `0.98` to match the contrast ratio of JS implementation\n : safeEmphasize(palette.background.default, 0.98);\n setColor(palette.SnackbarContent, 'bg', snackbarContentBackground);\n setColor(palette.SnackbarContent, 'color', silent(() => colorSpace ? light.text.primary : palette.getContrastText(snackbarContentBackground)));\n setColor(palette.SpeedDialAction, 'fabHoverBg', safeEmphasize(palette.background.paper, 0.15));\n setColor(palette.StepConnector, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.StepContent, 'border', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'defaultColor', setCssVarColor('palette-grey-300'));\n setColor(palette.Switch, 'defaultDisabledColor', setCssVarColor('palette-grey-600'));\n setColor(palette.Switch, 'primaryDisabledColor', colorMix(safeDarken, palette.primary.main, 0.55));\n setColor(palette.Switch, 'secondaryDisabledColor', colorMix(safeDarken, palette.secondary.main, 0.55));\n setColor(palette.Switch, 'errorDisabledColor', colorMix(safeDarken, palette.error.main, 0.55));\n setColor(palette.Switch, 'infoDisabledColor', colorMix(safeDarken, palette.info.main, 0.55));\n setColor(palette.Switch, 'successDisabledColor', colorMix(safeDarken, palette.success.main, 0.55));\n setColor(palette.Switch, 'warningDisabledColor', colorMix(safeDarken, palette.warning.main, 0.55));\n setColor(palette.TableCell, 'border', colorMix(safeDarken, colorMix(safeAlpha, palette.divider, 1), 0.68));\n setColor(palette.Tooltip, 'bg', colorMix(safeAlpha, palette.grey[700], 0.92));\n }\n\n // MUI X - DataGrid needs this token.\n setColorChannel(palette.background, 'default');\n\n // added for consistency with the `background.default` token\n setColorChannel(palette.background, 'paper');\n setColorChannel(palette.common, 'background');\n setColorChannel(palette.common, 'onBackground');\n setColorChannel(palette, 'divider');\n Object.keys(palette).forEach(color => {\n const colors = palette[color];\n\n // The default palettes (primary, secondary, error, info, success, and warning) errors are handled by the above `createTheme(...)`.\n\n if (color !== 'tonalOffset' && colors && typeof colors === 'object') {\n // Silent the error for custom palettes.\n if (colors.main) {\n setColor(palette[color], 'mainChannel', safeColorChannel(toRgb(colors.main)));\n }\n if (colors.light) {\n setColor(palette[color], 'lightChannel', safeColorChannel(toRgb(colors.light)));\n }\n if (colors.dark) {\n setColor(palette[color], 'darkChannel', safeColorChannel(toRgb(colors.dark)));\n }\n if (colors.contrastText) {\n setColor(palette[color], 'contrastTextChannel', safeColorChannel(toRgb(colors.contrastText)));\n }\n if (color === 'text') {\n // Text colors: text.primary, text.secondary\n setColorChannel(palette[color], 'primary');\n setColorChannel(palette[color], 'secondary');\n }\n if (color === 'action') {\n // Action colors: action.active, action.selected\n if (colors.active) {\n setColorChannel(palette[color], 'active');\n }\n if (colors.selected) {\n setColorChannel(palette[color], 'selected');\n }\n }\n }\n });\n });\n theme = args.reduce((acc, argument) => deepmerge(acc, argument), theme);\n const parserConfig = {\n prefix: cssVarPrefix,\n disableCssColorScheme,\n shouldSkipGeneratingVar,\n getSelector: defaultGetSelector(theme),\n enableContrastVars: nativeColor\n };\n const {\n vars,\n generateThemeVars,\n generateStyleSheets\n } = prepareCssVars(theme, parserConfig);\n theme.vars = vars;\n Object.entries(theme.colorSchemes[theme.defaultColorScheme]).forEach(([key, value]) => {\n theme[key] = value;\n });\n theme.generateThemeVars = generateThemeVars;\n theme.generateStyleSheets = generateStyleSheets;\n theme.generateSpacing = function generateSpacing() {\n return createSpacing(input.spacing, createUnarySpacing(this));\n };\n theme.getColorSchemeSelector = createGetColorSchemeSelector(selector);\n theme.spacing = theme.generateSpacing();\n theme.shouldSkipGeneratingVar = shouldSkipGeneratingVar;\n theme.unstable_sxConfig = {\n ...defaultSxConfig,\n ...input?.unstable_sxConfig\n };\n theme.unstable_sx = function sx(props) {\n return styleFunctionSx({\n sx: props,\n theme: this\n });\n };\n theme.toRuntimeSource = stringifyTheme; // for Pigment CSS integration\n\n return theme;\n}","import createPalette from \"./createPalette.js\";\nimport createThemeWithVars from \"./createThemeWithVars.js\";\nimport createThemeNoVars from \"./createThemeNoVars.js\";\n// eslint-disable-next-line consistent-return\nfunction attachColorScheme(theme, scheme, colorScheme) {\n if (!theme.colorSchemes) {\n return undefined;\n }\n if (colorScheme) {\n theme.colorSchemes[scheme] = {\n ...(colorScheme !== true && colorScheme),\n palette: createPalette({\n ...(colorScheme === true ? {} : colorScheme.palette),\n mode: scheme\n }) // cast type to skip module augmentation test\n };\n }\n}\n\n/**\n * Generate a theme base on the options received.\n * @param options Takes an incomplete theme object and adds the missing parts.\n * @param args Deep merge the arguments with the about to be returned theme.\n * @returns A complete, ready-to-use theme object.\n */\nexport default function createTheme(options = {},\n// cast type to skip module augmentation test\n...args) {\n const {\n palette,\n cssVariables = false,\n colorSchemes: initialColorSchemes = !palette ? {\n light: true\n } : undefined,\n defaultColorScheme: initialDefaultColorScheme = palette?.mode,\n ...other\n } = options;\n const defaultColorSchemeInput = initialDefaultColorScheme || 'light';\n const defaultScheme = initialColorSchemes?.[defaultColorSchemeInput];\n const colorSchemesInput = {\n ...initialColorSchemes,\n ...(palette ? {\n [defaultColorSchemeInput]: {\n ...(typeof defaultScheme !== 'boolean' && defaultScheme),\n palette\n }\n } : undefined)\n };\n if (cssVariables === false) {\n if (!('colorSchemes' in options)) {\n // Behaves exactly as v5\n return createThemeNoVars(options, ...args);\n }\n let paletteOptions = palette;\n if (!('palette' in options)) {\n if (colorSchemesInput[defaultColorSchemeInput]) {\n if (colorSchemesInput[defaultColorSchemeInput] !== true) {\n paletteOptions = colorSchemesInput[defaultColorSchemeInput].palette;\n } else if (defaultColorSchemeInput === 'dark') {\n // @ts-ignore to prevent the module augmentation test from failing\n paletteOptions = {\n mode: 'dark'\n };\n }\n }\n }\n const theme = createThemeNoVars({\n ...options,\n palette: paletteOptions\n }, ...args);\n theme.defaultColorScheme = defaultColorSchemeInput;\n theme.colorSchemes = colorSchemesInput;\n if (theme.palette.mode === 'light') {\n theme.colorSchemes.light = {\n ...(colorSchemesInput.light !== true && colorSchemesInput.light),\n palette: theme.palette\n };\n attachColorScheme(theme, 'dark', colorSchemesInput.dark);\n }\n if (theme.palette.mode === 'dark') {\n theme.colorSchemes.dark = {\n ...(colorSchemesInput.dark !== true && colorSchemesInput.dark),\n palette: theme.palette\n };\n attachColorScheme(theme, 'light', colorSchemesInput.light);\n }\n return theme;\n }\n if (!palette && !('light' in colorSchemesInput) && defaultColorSchemeInput === 'light') {\n colorSchemesInput.light = true;\n }\n return createThemeWithVars({\n ...other,\n colorSchemes: colorSchemesInput,\n defaultColorScheme: defaultColorSchemeInput,\n ...(typeof cssVariables !== 'boolean' && cssVariables)\n }, ...args);\n}","'use client';\n\nimport createTheme from \"./createTheme.js\";\nconst defaultTheme = createTheme();\nexport default defaultTheme;","export default '$$material';","'use client';\n\nimport * as React from 'react';\nimport { useTheme as useThemeSystem } from '@mui/system';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nexport default function useTheme() {\n const theme = useThemeSystem(defaultTheme);\n if (process.env.NODE_ENV !== 'production') {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler\n // eslint-disable-next-line react-hooks/rules-of-hooks\n React.useDebugValue(theme);\n }\n return theme[THEME_ID] || theme;\n}","// copied from @mui/system/createStyled\nfunction slotShouldForwardProp(prop) {\n return prop !== 'ownerState' && prop !== 'theme' && prop !== 'sx' && prop !== 'as';\n}\nexport default slotShouldForwardProp;","import slotShouldForwardProp from \"./slotShouldForwardProp.js\";\nconst rootShouldForwardProp = prop => slotShouldForwardProp(prop) && prop !== 'classes';\nexport default rootShouldForwardProp;","'use client';\n\nimport createStyled from '@mui/system/createStyled';\nimport defaultTheme from \"./defaultTheme.js\";\nimport THEME_ID from \"./identifier.js\";\nimport rootShouldForwardProp from \"./rootShouldForwardProp.js\";\nexport { default as slotShouldForwardProp } from \"./slotShouldForwardProp.js\";\nexport { default as rootShouldForwardProp } from \"./rootShouldForwardProp.js\";\nconst styled = createStyled({\n themeId: THEME_ID,\n defaultTheme,\n rootShouldForwardProp\n});\nexport default styled;","import { extendSxProp } from '@mui/system/styleFunctionSx';\nimport useTheme from \"../styles/useTheme.js\";\nimport GlobalStyles from \"../GlobalStyles/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport { css, keyframes } from '@mui/system';\nexport { default as styled } from \"../styles/styled.js\";\nexport function globalCss(styles) {\n return function GlobalStylesWrapper(props) {\n return (\n /*#__PURE__*/\n // Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.\n _jsx(GlobalStyles, {\n styles: typeof styles === 'function' ? theme => styles({\n theme,\n ...props\n }) : styles\n })\n );\n };\n}\n\n// eslint-disable-next-line @typescript-eslint/naming-convention\nexport function internal_createExtendSxProp() {\n return extendSxProp;\n}\nexport { useTheme };","import { unstable_memoTheme } from '@mui/system';\nconst memoTheme = unstable_memoTheme;\nexport default memoTheme;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport SystemDefaultPropsProvider, { useDefaultProps as useSystemDefaultProps } from '@mui/system/DefaultPropsProvider';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction DefaultPropsProvider(props) {\n return /*#__PURE__*/_jsx(SystemDefaultPropsProvider, {\n ...props\n });\n}\nprocess.env.NODE_ENV !== \"production\" ? DefaultPropsProvider.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * @ignore\n */\n children: PropTypes.node,\n /**\n * @ignore\n */\n value: PropTypes.object.isRequired\n} : void 0;\nexport default DefaultPropsProvider;\nexport function useDefaultProps(params) {\n return useSystemDefaultProps(params);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getSvgIconUtilityClass(slot) {\n return generateUtilityClass('MuiSvgIcon', slot);\n}\nconst svgIconClasses = generateUtilityClasses('MuiSvgIcon', ['root', 'colorPrimary', 'colorSecondary', 'colorAction', 'colorError', 'colorDisabled', 'fontSizeInherit', 'fontSizeSmall', 'fontSizeMedium', 'fontSizeLarge']);\nexport default svgIconClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from \"../utils/capitalize.js\";\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport { getSvgIconUtilityClass } from \"./svgIconClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n color,\n fontSize,\n classes\n } = ownerState;\n const slots = {\n root: ['root', color !== 'inherit' && `color${capitalize(color)}`, `fontSize${capitalize(fontSize)}`]\n };\n return composeClasses(slots, getSvgIconUtilityClass, classes);\n};\nconst SvgIconRoot = styled('svg', {\n name: 'MuiSvgIcon',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.color !== 'inherit' && styles[`color${capitalize(ownerState.color)}`], styles[`fontSize${capitalize(ownerState.fontSize)}`]];\n }\n})(memoTheme(({\n theme\n}) => ({\n userSelect: 'none',\n width: '1em',\n height: '1em',\n display: 'inline-block',\n flexShrink: 0,\n transition: theme.transitions?.create?.('fill', {\n duration: (theme.vars ?? theme).transitions?.duration?.shorter\n }),\n variants: [{\n props: props => !props.hasSvgAsChild,\n style: {\n // the <svg> will define the property that has `currentColor`\n // for example heroicons uses fill=\"none\" and stroke=\"currentColor\"\n fill: 'currentColor'\n }\n }, {\n props: {\n fontSize: 'inherit'\n },\n style: {\n fontSize: 'inherit'\n }\n }, {\n props: {\n fontSize: 'small'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(20) || '1.25rem'\n }\n }, {\n props: {\n fontSize: 'medium'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(24) || '1.5rem'\n }\n }, {\n props: {\n fontSize: 'large'\n },\n style: {\n fontSize: theme.typography?.pxToRem?.(35) || '2.1875rem'\n }\n },\n // TODO v5 deprecate color prop, v6 remove for sx\n ...Object.entries((theme.vars ?? theme).palette).filter(([, value]) => value && value.main).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars ?? theme).palette?.[color]?.main\n }\n })), {\n props: {\n color: 'action'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.active\n }\n }, {\n props: {\n color: 'disabled'\n },\n style: {\n color: (theme.vars ?? theme).palette?.action?.disabled\n }\n }, {\n props: {\n color: 'inherit'\n },\n style: {\n color: undefined\n }\n }]\n})));\nconst SvgIcon = /*#__PURE__*/React.forwardRef(function SvgIcon(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiSvgIcon'\n });\n const {\n children,\n className,\n color = 'inherit',\n component = 'svg',\n fontSize = 'medium',\n htmlColor,\n inheritViewBox = false,\n titleAccess,\n viewBox = '0 0 24 24',\n ...other\n } = props;\n const hasSvgAsChild = /*#__PURE__*/React.isValidElement(children) && children.type === 'svg';\n const ownerState = {\n ...props,\n color,\n component,\n fontSize,\n instanceFontSize: inProps.fontSize,\n inheritViewBox,\n viewBox,\n hasSvgAsChild\n };\n const more = {};\n if (!inheritViewBox) {\n more.viewBox = viewBox;\n }\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(SvgIconRoot, {\n as: component,\n className: clsx(classes.root, className),\n focusable: \"false\",\n color: htmlColor,\n \"aria-hidden\": titleAccess ? undefined : true,\n role: titleAccess ? 'img' : undefined,\n ref: ref,\n ...more,\n ...other,\n ...(hasSvgAsChild && children.props),\n ownerState: ownerState,\n children: [hasSvgAsChild ? children.props.children : children, titleAccess ? /*#__PURE__*/_jsx(\"title\", {\n children: titleAccess\n }) : null]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? SvgIcon.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Node passed into the SVG element.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n * You can use the `htmlColor` prop to apply a color attribute to the SVG element.\n * @default 'inherit'\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'action', 'disabled', 'primary', 'secondary', 'error', 'info', 'success', 'warning']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The fontSize applied to the icon. Defaults to 24px, but can be configure to inherit font size.\n * @default 'medium'\n */\n fontSize: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['inherit', 'large', 'medium', 'small']), PropTypes.string]),\n /**\n * Applies a color attribute to the SVG element.\n */\n htmlColor: PropTypes.string,\n /**\n * If `true`, the root node will inherit the custom `component`'s viewBox and the `viewBox`\n * prop will be ignored.\n * Useful when you want to reference a custom `component` and have `SvgIcon` pass that\n * `component`'s viewBox to the root node.\n * @default false\n */\n inheritViewBox: PropTypes.bool,\n /**\n * The shape-rendering attribute. The behavior of the different options is described on the\n * [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/SVG/Reference/Attribute/shape-rendering).\n * If you are having issues with blurry icons you should investigate this prop.\n */\n shapeRendering: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Provides a human-readable title for the element that contains it.\n * https://www.w3.org/TR/SVG-access/#Equivalent\n */\n titleAccess: PropTypes.string,\n /**\n * Allows you to redefine what the coordinates without units mean inside an SVG element.\n * For example, if the SVG element is 500 (width) by 200 (height),\n * and you pass viewBox=\"0 0 50 20\",\n * this means that the coordinates inside the SVG will go from the top left corner (0,0)\n * to bottom right (50,20) and each unit will be worth 10px.\n * @default '0 0 24 24'\n */\n viewBox: PropTypes.string\n} : void 0;\nSvgIcon.muiName = 'SvgIcon';\nexport default SvgIcon;","'use client';\n\nimport * as React from 'react';\nimport SvgIcon from \"../SvgIcon/index.js\";\n\n/**\n * Private module reserved for @mui packages.\n */\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default function createSvgIcon(path, displayName) {\n function Component(props, ref) {\n return /*#__PURE__*/_jsx(SvgIcon, {\n \"data-testid\": process.env.NODE_ENV !== 'production' ? `${displayName}Icon` : undefined,\n ref: ref,\n ...props,\n children: path\n });\n }\n if (process.env.NODE_ENV !== 'production') {\n // Need to set `displayName` on the inner component for React.memo.\n // React prior to 16.14 ignores `displayName` on the wrapper.\n Component.displayName = `${displayName}Icon`;\n }\n Component.muiName = SvgIcon.muiName;\n return /*#__PURE__*/React.memo(/*#__PURE__*/React.forwardRef(Component));\n}","export default function requirePropFactory(componentNameInError, Component) {\n if (process.env.NODE_ENV === 'production') {\n return () => () => null;\n }\n\n // eslint-disable-next-line react/forbid-foreign-prop-types\n const prevPropTypes = Component ? {\n ...Component.propTypes\n } : null;\n const requireProp = requiredProp => (props, propName, componentName, location, propFullName, ...args) => {\n const propFullNameSafe = propFullName || propName;\n const defaultTypeChecker = prevPropTypes?.[propFullNameSafe];\n if (defaultTypeChecker) {\n const typeCheckerResult = defaultTypeChecker(props, propName, componentName, location, propFullName, ...args);\n if (typeCheckerResult) {\n return typeCheckerResult;\n }\n }\n if (typeof props[propName] !== 'undefined' && !props[requiredProp]) {\n return new Error(`The prop \\`${propFullNameSafe}\\` of ` + `\\`${componentNameInError}\\` can only be used together with the \\`${requiredProp}\\` prop.`);\n }\n return null;\n };\n return requireProp;\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * Merges refs into a single memoized callback ref or `null`.\n *\n * ```tsx\n * const rootRef = React.useRef<Instance>(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * <Root {...props} ref={refFork} />\n * );\n * ```\n *\n * @param {Array<React.Ref<Instance> | undefined>} refs The ref array.\n * @returns {React.RefCallback<Instance> | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n const cleanupRef = React.useRef(undefined);\n const refEffect = React.useCallback(instance => {\n const cleanups = refs.map(ref => {\n if (ref == null) {\n return null;\n }\n if (typeof ref === 'function') {\n const refCallback = ref;\n const refCleanup = refCallback(instance);\n return typeof refCleanup === 'function' ? refCleanup : () => {\n refCallback(null);\n };\n }\n ref.current = instance;\n return () => {\n ref.current = null;\n };\n });\n return () => {\n cleanups.forEach(refCleanup => refCleanup?.());\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return value => {\n if (cleanupRef.current) {\n cleanupRef.current();\n cleanupRef.current = undefined;\n }\n if (value != null) {\n cleanupRef.current = refEffect(value);\n }\n };\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- intentionally ignoring that the dependency array must be an array literal\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, refs);\n}","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z\"\n}), 'ExpandMore');","import { AccordionSummary, AccordionSummaryProps, styled } from \"@mui/material\";\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\";\r\n\r\nconst LCTAccordionSummary = styled((props: AccordionSummaryProps) => (\r\n <AccordionSummary\r\n expandIcon={<ExpandMoreIcon fontSize=\"small\" sx={{ paddingTop: \"2px\" }} />}\r\n {...props}\r\n />\r\n))(({}) => ({\r\n flexDirection: \"row-reverse\",\r\n borderBottom: \"1px solid rgba(224, 224, 224, 1)\",\r\n padding: \"0px 10px 0px 5px\",\r\n minHeight: 35,\r\n maxHeight: 35,\r\n}));\r\n\r\nexport default LCTAccordionSummary;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IProps {\r\n gray?: boolean;\r\n}\r\nconst BinIcon: FC<IProps> = ({ gray }) => (\r\n <SvgIcon\r\n width=\"16\"\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <path\r\n d=\"M12.5 4.50049H13C13 4.36788 12.9473 4.2407 12.8536 4.14693C12.7598 4.05317 12.6326 4.00049 12.5 4.00049V4.50049ZM3.5 4.50049V4.00049C3.22386 4.00049 3 4.22435 3 4.50049H3.5ZM6 13.0005C6 13.2766 6.22386 13.5005 6.5 13.5005C6.77614 13.5005 7 13.2766 7 13.0005H6ZM7 6.50049C7 6.22435 6.77614 6.00049 6.5 6.00049C6.22386 6.00049 6 6.22435 6 6.50049H7ZM9 13.0005C9 13.2766 9.22386 13.5005 9.5 13.5005C9.77614 13.5005 10 13.2766 10 13.0005H9ZM10 6.50049C10 6.22435 9.77614 6.00049 9.5 6.00049C9.22386 6.00049 9 6.22435 9 6.50049H10ZM2.5 4.50049H2C2 4.77663 2.22386 5.00049 2.5 5.00049V4.50049ZM13.5 4.50049V5.00049C13.7761 5.00049 14 4.77663 14 4.50049H13.5ZM12.5 2.50049V3.00049V2.50049ZM10.5 2.50049H10C10 2.77663 10.2239 3.00049 10.5 3.00049V2.50049ZM10.5 1.50049H11C11 1.36788 10.9473 1.2407 10.8536 1.14693C10.7598 1.05317 10.6326 1.00049 10.5 1.00049V1.50049ZM5.5 1.50049V1.00049C5.36739 1.00049 5.24021 1.05317 5.14645 1.14693C5.05268 1.2407 5 1.36788 5 1.50049L5.5 1.50049ZM5.5 2.50049V3.00049C5.77614 3.00049 6 2.77663 6 2.50049H5.5ZM3.5 2.50049V2.00049V2.50049ZM3 14.0005C3 14.5776 3.14461 15.1022 3.52145 15.479C3.89829 15.8559 4.42293 16.0005 5 16.0005V15.0005C4.57707 15.0005 4.35171 14.8951 4.22855 14.7719C4.10539 14.6488 4 14.4234 4 14.0005H3ZM5 16.0005H11V15.0005H5V16.0005ZM11 16.0005C11.5771 16.0005 12.1017 15.8559 12.4786 15.479C12.8554 15.1022 13 14.5776 13 14.0005H12C12 14.4234 11.8946 14.6488 11.7714 14.7719C11.6483 14.8951 11.4229 15.0005 11 15.0005V16.0005ZM13 14.0005V4.50049H12V14.0005H13ZM12.5 4.00049H3.5V5.00049H12.5V4.00049ZM3 4.50049V14.0005H4V4.50049H3ZM7 13.0005V6.50049H6V13.0005H7ZM10 13.0005V6.50049H9V13.0005H10ZM2.5 5.00049H13.5V4.00049H2.5V5.00049ZM14 4.50049V3.50049H13V4.50049H14ZM14 3.50049C14 3.08787 13.7987 2.71711 13.5411 2.45943C13.2834 2.20176 12.9126 2.00049 12.5 2.00049V3.00049C12.5874 3.00049 12.7166 3.04921 12.8339 3.16654C12.9513 3.28387 13 3.4131 13 3.50049H14ZM12.5 2.00049H10.5V3.00049H12.5V2.00049ZM11 2.50049V1.50049H10V2.50049H11ZM10.5 1.00049C10.2504 1.00049 8.99962 1.00049 7.8125 1.00049C7.20169 1.00049 6.65769 1.00049 6.21094 1.00049C5.99055 1.00049 5.8239 1.00049 5.69434 1.00049C5.63539 1.00049 5.58067 1.00049 5.55066 1.00049C5.54963 1.00049 5.54861 1.00049 5.5476 1.00049C5.5466 1.00049 5.54561 1.00049 5.54464 1.00049C5.54367 1.00049 5.54271 1.00049 5.54177 1.00049C5.54082 1.00049 5.5399 1.00049 5.53898 1.00049C5.53807 1.00049 5.53718 1.00049 5.5363 1.00049C5.53541 1.00049 5.53455 1.00049 5.5337 1.00049C5.53285 1.00049 5.53202 1.00049 5.5312 1.00049C5.53038 1.00049 5.52958 1.00049 5.52879 1.00049C5.528 1.00049 5.52723 1.00049 5.52647 1.00049C5.52572 1.00049 5.52498 1.00049 5.52425 1.00049C5.52353 1.00049 5.52282 1.00049 5.52212 1.00049C5.52143 1.00049 5.52075 1.00049 5.52009 1.00049C5.51943 1.00049 5.51879 1.00049 5.51816 1.00049C5.51753 1.00049 5.51691 1.00049 5.51632 1.00049C5.51572 1.00049 5.51514 1.00049 5.51457 1.00049C5.51401 1.00049 5.51346 1.00049 5.51292 1.00049C5.51239 1.00049 5.51187 1.00049 5.51137 1.00049C5.51087 1.00049 5.51039 1.00049 5.50992 1.00049C5.50945 1.00049 5.509 1.00049 5.50856 1.00049C5.50813 1.00049 5.50771 1.00049 5.50731 1.00049C5.5069 1.00049 5.50652 1.00049 5.50615 1.00049C5.50578 1.00049 5.50542 1.00049 5.50509 1.00049C5.50475 1.00049 5.50443 1.00049 5.50413 1.00049C5.50382 1.00049 5.50353 1.00049 5.50326 1.00049C5.50299 1.00049 5.50274 1.00049 5.5025 1.00049C5.50226 1.00049 5.50204 1.00049 5.50184 1.00049C5.50164 1.00049 5.50145 1.00049 5.50128 1.00049C5.50111 1.00049 5.50096 1.00049 5.50082 1.00049C5.50068 1.00049 5.50056 1.00049 5.50046 1.00049C5.50036 1.00049 5.50027 1.00049 5.50021 1.00049C5.50014 1.00049 5.50009 1.00049 5.50005 1.00049C5.50002 1.00049 5.5 1.00049 5.5 1.50049C5.5 2.00049 5.50002 2.00049 5.50005 2.00049C5.50009 2.00049 5.50014 2.00049 5.50021 2.00049C5.50027 2.00049 5.50036 2.00049 5.50046 2.00049C5.50056 2.00049 5.50068 2.00049 5.50082 2.00049C5.50096 2.00049 5.50111 2.00049 5.50128 2.00049C5.50145 2.00049 5.50164 2.00049 5.50184 2.00049C5.50204 2.00049 5.50226 2.00049 5.5025 2.00049C5.50274 2.00049 5.50299 2.00049 5.50326 2.00049C5.50353 2.00049 5.50382 2.00049 5.50413 2.00049C5.50443 2.00049 5.50475 2.00049 5.50509 2.00049C5.50542 2.00049 5.50578 2.00049 5.50615 2.00049C5.50652 2.00049 5.5069 2.00049 5.50731 2.00049C5.50771 2.00049 5.50813 2.00049 5.50856 2.00049C5.509 2.00049 5.50945 2.00049 5.50992 2.00049C5.51039 2.00049 5.51087 2.00049 5.51137 2.00049C5.51187 2.00049 5.51239 2.00049 5.51292 2.00049C5.51346 2.00049 5.51401 2.00049 5.51457 2.00049C5.51514 2.00049 5.51572 2.00049 5.51632 2.00049C5.51691 2.00049 5.51753 2.00049 5.51816 2.00049C5.51879 2.00049 5.51943 2.00049 5.52009 2.00049C5.52075 2.00049 5.52143 2.00049 5.52212 2.00049C5.52282 2.00049 5.52353 2.00049 5.52425 2.00049C5.52498 2.00049 5.52572 2.00049 5.52647 2.00049C5.52723 2.00049 5.528 2.00049 5.52879 2.00049C5.52958 2.00049 5.53038 2.00049 5.5312 2.00049C5.53202 2.00049 5.53285 2.00049 5.5337 2.00049C5.53455 2.00049 5.53541 2.00049 5.5363 2.00049C5.53718 2.00049 5.53807 2.00049 5.53898 2.00049C5.5399 2.00049 5.54082 2.00049 5.54177 2.00049C5.54271 2.00049 5.54367 2.00049 5.54464 2.00049C5.54561 2.00049 5.5466 2.00049 5.5476 2.00049C5.54861 2.00049 5.54963 2.00049 5.55066 2.00049C5.55169 2.00049 5.55274 2.00049 5.55381 2.00049C5.55487 2.00049 5.55595 2.00049 5.55704 2.00049C5.55814 2.00049 5.55925 2.00049 5.56037 2.00049C5.56149 2.00049 5.56263 2.00049 5.56379 2.00049C5.56494 2.00049 5.56611 2.00049 5.56729 2.00049C5.56848 2.00049 5.56968 2.00049 5.57089 2.00049C5.5721 2.00049 5.57333 2.00049 5.57457 2.00049C5.57581 2.00049 5.57707 2.00049 5.57834 2.00049C5.57962 2.00049 5.5809 2.00049 5.5822 2.00049C5.58351 2.00049 5.58482 2.00049 5.58615 2.00049C5.58748 2.00049 5.58883 2.00049 5.59019 2.00049C5.59154 2.00049 5.59292 2.00049 5.59431 2.00049C5.59569 2.00049 5.5971 2.00049 5.59851 2.00049C5.59993 2.00049 5.60136 2.00049 5.60281 2.00049C5.60425 2.00049 5.60571 2.00049 5.60718 2.00049C5.60866 2.00049 5.61015 2.00049 5.61165 2.00049C5.61315 2.00049 5.61467 2.00049 5.6162 2.00049C5.61773 2.00049 5.61927 2.00049 5.62083 2.00049C5.62239 2.00049 5.62396 2.00049 5.62555 2.00049C5.62713 2.00049 5.62873 2.00049 5.63035 2.00049C5.66909 2.00049 5.60134 2.00049 5.6402 2.00049C5.64187 2.00049 5.64355 2.00049 5.64525 2.00049C5.64694 2.00049 5.64865 2.00049 5.65038 2.00049C5.6521 2.00049 5.65384 2.00049 5.65559 2.00049C5.65734 2.00049 5.65911 2.00049 5.66088 2.00049C5.66266 2.00049 5.66445 2.00049 5.66626 2.00049C5.66806 2.00049 5.66988 2.00049 5.67172 2.00049C5.70741 2.00049 5.64707 2.00049 5.68287 2.00049C5.68475 2.00049 5.68665 2.00049 5.68856 2.00049C5.69047 2.00049 5.6924 2.00049 5.69434 2.00049C5.72856 2.00049 5.67179 2.00049 5.70612 2.00049C5.70811 2.00049 5.71011 2.00049 5.71213 2.00049C5.71414 2.00049 5.71617 2.00049 5.71822 2.00049C5.75101 2.00049 5.69772 2.00049 5.73062 2.00049C5.73271 2.00049 5.73482 2.00049 5.73694 2.00049C5.73906 2.00049 5.74119 2.00049 5.74333 2.00049C5.77473 2.00049 5.72484 2.00049 5.75634 2.00049C5.75854 2.00049 5.76074 2.00049 5.76296 2.00049C5.76518 2.00049 5.76741 2.00049 5.76965 2.00049C5.79971 2.00049 5.75311 2.00049 5.78326 2.00049C5.78556 2.00049 5.78786 2.00049 5.79018 2.00049C5.79249 2.00049 5.79482 2.00049 5.79716 2.00049C5.8259 2.00049 5.78252 2.00049 5.81136 2.00049C5.83945 2.00049 5.79765 2.00049 5.82584 2.00049C5.8533 2.00049 5.81305 2.00049 5.8406 2.00049C5.84309 2.00049 5.84558 2.00049 5.84809 2.00049C5.8506 2.00049 5.85312 2.00049 5.85565 2.00049C5.88186 2.00049 5.84466 2.00049 5.87097 2.00049C5.89658 2.00049 5.86087 2.00049 5.88657 2.00049C5.9359 2.00049 5.86888 2.00049 5.91858 2.00049C5.92129 2.00049 5.92401 2.00049 5.92675 2.00049C5.92948 2.00049 5.93223 2.00049 5.93499 2.00049C5.95825 2.00049 5.9283 2.00049 5.95165 2.00049C5.99642 2.00049 5.94067 2.00049 5.98577 2.00049C6.02835 2.00049 5.97799 2.00049 6.0209 2.00049C6.06136 2.00049 6.01624 2.00049 6.05702 2.00049C6.09543 2.00049 6.05538 2.00049 6.09411 2.00049C6.11261 2.00049 6.09444 2.00049 6.11301 2.00049C6.11618 2.00049 6.11936 2.00049 6.12255 2.00049C6.12574 2.00049 6.12894 2.00049 6.13214 2.00049C6.16665 2.00049 6.13629 2.00049 6.17109 2.00049C6.20374 2.00049 6.17799 2.00049 6.21094 2.00049C6.61345 2.00049 7.24592 2.00049 7.8125 2.00049C9.00015 2.00049 10.2498 2.00049 10.5 2.00049V1.00049ZM5.5 1.50049C5 1.50049 5 1.50049 5 1.50049C5 1.5005 5 1.5005 5 1.50051C5 1.50052 5 1.50053 5 1.50054C5 1.50055 5 1.50056 5 1.50058C5 1.50059 5 1.50061 5 1.50063C5 1.50065 5 1.50067 5 1.50069C5 1.50072 5 1.50074 5 1.50077C5 1.50079 5 1.50082 5 1.50085C5 1.50088 5 1.50092 5 1.50095C5 1.50098 5 1.50102 5 1.50106C5 1.50109 5 1.50113 5 1.50118C5 1.50122 5 1.50126 5 1.50131C5 1.50135 5 1.5014 5 1.50145C5 1.5015 5 1.50155 5 1.5016C5 1.50165 5 1.50171 5 1.50176C5 1.50182 5 1.50188 5 1.50194C5 1.5045 5 1.50273 5 1.50623C5 1.51001 5 1.51562 5 1.52295C5 1.54541 5 1.55127 5 1.58643C5 1.64795 5 1.7124 5 1.81299C5 2.00049 5 2.25049 5 2.50049H6C6 2.25049 6 2.00049 6 1.81299C6 1.7124 6 1.64795 6 1.58643C6 1.55127 6 1.54541 6 1.52295C6 1.50361 6 1.53173 6 1.51326C6 1.5114 6 1.51104 6 1.50941C6 1.50628 6 1.50913 6 1.50623C6 1.50273 6 1.5045 6 1.50194C6 1.50188 6 1.50182 6 1.50176C6 1.50171 6 1.50165 6 1.5016C6 1.50155 6 1.5015 6 1.50145C6 1.5014 6 1.50135 6 1.50131C6 1.50126 6 1.50122 6 1.50118C6 1.50113 6 1.50109 6 1.50106C6 1.50102 6 1.50098 6 1.50095C6 1.50092 6 1.50088 6 1.50085C6 1.50082 6 1.50079 6 1.50077C6 1.50074 6 1.50072 6 1.50069C6 1.50067 6 1.50065 6 1.50063C6 1.50061 6 1.50059 6 1.50058C6 1.50056 6 1.50055 6 1.50054C6 1.50053 6 1.50052 6 1.50051C6 1.5005 6 1.5005 6 1.50049C6 1.50049 6 1.50049 5.5 1.50049ZM5.5 2.00049H3.5V3.00049H5.5V2.00049ZM3.5 2.00049C3.08738 2.00049 2.71662 2.20176 2.45895 2.45943C2.20127 2.71711 2 3.08787 2 3.50049H3C3 3.4131 3.04873 3.28387 3.16605 3.16654C3.28338 3.04921 3.41262 3.00049 3.5 3.00049V2.00049ZM2 3.50049V4.50049H3V3.50049H2Z\"\r\n fill={gray ? \"rgba(0, 0, 0, 0.5)\" : \"#ffffff\"}\r\n />\r\n </SvgIcon>\r\n);\r\nexport default BinIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IBrowseIconProps {\r\n disabled?: boolean;\r\n}\r\nconst BrowseIcon: FC<IBrowseIconProps> = ({ disabled }) => {\r\n return (\r\n <SvgIcon\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n id=\"bin-grid-20\"\r\n width=\"16\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n <path\r\n opacity=\"0.5\"\r\n d=\"M3 1H15V3H3V1Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M3.14231 1.12797C3.07009 1.18778 3 1.29055 3 1.5V12.5C3 12.745 3.06876 12.8472 3.1171 12.8926C3.17099 12.9433 3.28183 13 3.5 13H14.4986C14.5543 13 14.677 12.9589 14.8054 12.8074C14.9287 12.6619 15 12.4779 15 12.3182V1.68182C15 1.49304 14.9345 1.30807 14.8328 1.17913C14.7354 1.05579 14.6214 1 14.5 1H3.58696C3.37624 1 3.22808 1.05693 3.14231 1.12797ZM2.50443 0.357828C2.8154 0.100271 3.21072 0 3.58696 0H14.5C14.9791 0 15.3652 0.239662 15.6177 0.559505C15.8657 0.873745 16 1.27968 16 1.68182V12.3182C16 12.7494 15.8206 13.1563 15.5682 13.454C15.3209 13.7457 14.9428 14 14.4986 14H3.5C3.11763 14 2.72847 13.8995 2.43249 13.6216C2.13097 13.3384 2 12.9406 2 12.5V1.5C2 1.02384 2.17991 0.626616 2.50443 0.357828Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M2 3.5C2 3.22386 2.22386 3 2.5 3H15.5C15.7761 3 16 3.22386 16 3.5C16 3.77614 15.7761 4 15.5 4H2.5C2.22386 4 2 3.77614 2 3.5Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M0.5 2.5C0.776142 2.5 1 2.72386 1 3V14C1 14.4229 1.10539 14.6483 1.22855 14.7714C1.35171 14.8946 1.57707 15 2 15H13C13.2761 15 13.5 15.2239 13.5 15.5C13.5 15.7761 13.2761 16 13 16H2C1.42293 16 0.898286 15.8554 0.521447 15.4786C0.144607 15.1017 0 14.5771 0 14V3C0 2.72386 0.223858 2.5 0.5 2.5Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default BrowseIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction CalendarIcon() {\r\n return (\r\n <SvgIcon\r\n focusable=\"false\"\r\n viewBox=\"0 0 24 24\"\r\n aria-hidden=\"true\"\r\n style={{ height: \"21px\", width: \"21px\" }}\r\n >\r\n <rect x=\"4.03812\" y=\"7.03696\" width=\"16\" height=\"12\" fill=\"white\"></rect>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M10.509 4C10.2132 4 9.97333 4.23985 9.97333 4.53571C9.97333 4.83158 10.2132 5.07143 10.509 5.07143H13.4957C13.7916 5.07143 14.0314 4.83158 14.0314 4.53571C14.0314 4.23985 13.7916 4 13.4957 4H10.509ZM4.46132 4.46018C4.71899 4.20251 5.08976 4.00122 5.50238 4.00122H7.00238C7.27852 4.00122 7.50238 4.22508 7.50238 4.50122C7.50238 4.77736 7.27852 5.00122 7.00238 5.00122H5.50238C5.41501 5.00122 5.28577 5.04995 5.16844 5.16728C5.0511 5.28462 5.00238 5.41386 5.00238 5.50122V6.99332H19.0024V5.50122C19.0024 5.41384 18.9537 5.2846 18.8363 5.16727C18.719 5.04995 18.5898 5.00122 18.5024 5.00122H17.0024C16.7262 5.00122 16.5024 4.77736 16.5024 4.50122C16.5024 4.22508 16.7262 4.00122 17.0024 4.00122H18.5024C18.915 4.00122 19.2858 4.20249 19.5434 4.46017C19.8011 4.71784 20.0024 5.0886 20.0024 5.50122V7.47818C20.004 7.49492 20.0048 7.51188 20.0048 7.52903C20.0048 7.54618 20.004 7.56315 20.0024 7.57989V18.5012C20.0024 18.9138 19.8011 19.2846 19.5434 19.5423C19.2858 19.7999 18.915 20.0012 18.5024 20.0012H5.50238C5.08976 20.0012 4.719 19.7999 4.46133 19.5423C4.20365 19.2846 4.00238 18.9138 4.00238 18.5012V7.57987C4.00081 7.56313 4 7.54618 4 7.52903C4 7.51189 4.00081 7.49493 4.00238 7.4782V5.50122C4.00238 5.08862 4.20366 4.71785 4.46132 4.46018ZM5.00238 18.5012V8.06475H19.0024V18.5012C19.0024 18.5886 18.9537 18.7178 18.8363 18.8352C18.719 18.9525 18.5898 19.0012 18.5024 19.0012H5.50238C5.415 19.0012 5.28576 18.9525 5.16843 18.8352C5.05111 18.7178 5.00238 18.5886 5.00238 18.5012ZM15.4869 4C15.7827 4 16.0226 4.23985 16.0226 4.53571V5.53349C16.0226 5.82935 15.7827 6.0692 15.4869 6.0692C15.191 6.0692 14.9511 5.82935 14.9511 5.53349V4.53571C14.9511 4.23985 15.191 4 15.4869 4ZM9.05364 4.53571C9.05364 4.23985 8.81379 4 8.51793 4C8.22206 4 7.98221 4.23985 7.98221 4.53571V5.53349C7.98221 5.82935 8.22206 6.0692 8.51793 6.0692C8.81379 6.0692 9.05364 5.82935 9.05364 5.53349V4.53571Z\"\r\n fill=\"#1E365E\"\r\n ></path>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M10.5024 7.00122C10.7785 7.00122 11.0024 7.22508 11.0024 7.50122V10.0012H12.0024C12.2785 10.0012 12.5024 10.2251 12.5024 10.5012C12.5024 10.7774 12.2785 11.0012 12.0024 11.0012H11.0024V13.0012H12.0024C12.2785 13.0012 12.5024 13.2251 12.5024 13.5012C12.5024 13.7774 12.2785 14.0012 12.0024 14.0012H11.0024V16.0012H16.0024V15.0012C16.0024 14.7251 16.2262 14.5012 16.5024 14.5012C16.7785 14.5012 17.0024 14.7251 17.0024 15.0012V16.0012H19.5024C19.7785 16.0012 20.0024 16.2251 20.0024 16.5012C20.0024 16.7774 19.7785 17.0012 19.5024 17.0012H17.0024V19.5012C17.0024 19.7774 16.7785 20.0012 16.5024 20.0012C16.2262 20.0012 16.0024 19.7774 16.0024 19.5012V17.0012H11.0024V19.5012C11.0024 19.7774 10.7785 20.0012 10.5024 20.0012C10.2262 20.0012 10.0024 19.7774 10.0024 19.5012V17.0012H8.00238V19.5012C8.00238 19.7774 7.77852 20.0012 7.50238 20.0012C7.22624 20.0012 7.00238 19.7774 7.00238 19.5012V17.0012H4.50238C4.22624 17.0012 4.00238 16.7774 4.00238 16.5012C4.00238 16.2251 4.22624 16.0012 4.50238 16.0012H7.00238V14.0012H4.50238C4.22624 14.0012 4.00238 13.7774 4.00238 13.5012C4.00238 13.2251 4.22624 13.0012 4.50238 13.0012H7.00238V11.0012H4.50238C4.22624 11.0012 4.00238 10.7774 4.00238 10.5012C4.00238 10.2251 4.22624 10.0012 4.50238 10.0012H7.00238V7.50122C7.00238 7.22508 7.22624 7.00122 7.50238 7.00122C7.77852 7.00122 8.00238 7.22508 8.00238 7.50122V10.0012H10.0024V7.50122C10.0024 7.22508 10.2262 7.00122 10.5024 7.00122ZM8.00238 11.0012V13.0012H10.0024V11.0012H8.00238ZM8.00238 14.0012V16.0012H10.0024V14.0012H8.00238ZM18.0024 13.0012C17.7262 13.0012 17.5024 13.2251 17.5024 13.5012C17.5024 13.7774 17.7262 14.0012 18.0024 14.0012H19.5024C19.7785 14.0012 20.0024 13.7774 20.0024 13.5012C20.0024 13.2251 19.7785 13.0012 19.5024 13.0012H18.0024ZM18.0024 10.0012C17.7262 10.0012 17.5024 10.2251 17.5024 10.5012C17.5024 10.7774 17.7262 11.0012 18.0024 11.0012H19.5024C19.7785 11.0012 20.0024 10.7774 20.0024 10.5012C20.0024 10.2251 19.7785 10.0012 19.5024 10.0012H18.0024ZM16.5024 7.00122C16.7785 7.00122 17.0024 7.22508 17.0024 7.50122V9.00122C17.0024 9.27736 16.7785 9.50122 16.5024 9.50122C16.2262 9.50122 16.0024 9.27736 16.0024 9.00122V7.50122C16.0024 7.22508 16.2262 7.00122 16.5024 7.00122Z\"\r\n fill=\"#1E365E\"\r\n fillOpacity=\"0.5\"\r\n ></path>\r\n <rect\r\n x=\"13.5381\"\r\n y=\"10.5369\"\r\n width=\"3\"\r\n height=\"3\"\r\n fill=\"#1E365E\"\r\n fillOpacity=\"0.5\"\r\n stroke=\"#1E365E\"\r\n ></rect>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default CalendarIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\ninterface IIconProps {\r\n disabled?: boolean;\r\n}\r\nconst CheckedCheckboxIcon: FC<IIconProps> = ({ disabled }) => {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 24 24\"\r\n style={{ backgroundColor: \"white\", height: 14, width: 14 }}\r\n >\r\n <path\r\n fill={disabled ? \"grey\" : \"#1E365E\"}\r\n d=\"M11 17l-5-5.299 1.399-1.43 3.574 3.736 6.572-7.007 1.455 1.403-8 8.597zm11-15v20h-20v-20h20zm2-2h-24v24h24v-24z\"\r\n />\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default CheckedCheckboxIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction CheckboxIcon() {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ backgroundColor: \"white\", height: 14, width: 14 }}\r\n viewBox=\"0 0 24 24\"\r\n >\r\n <path d=\"M22 2v20h-20v-20h20zm2-2h-24v24h24v-24z\" />\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default CheckboxIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nconst CommentIcon = () => {\r\n return (\r\n <SvgIcon\r\n style={{ width: 20, paddingRight: 2 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"96\"\r\n height=\"96\"\r\n viewBox=\"0 0 96 96\"\r\n >\r\n <path\r\n fill=\"#9DA7B3\"\r\n d=\"M52,72 L20,88 L20,72 L4,72 L4,12 L92,12 L92,72 L52,72 Z \"\r\n ></path>\r\n <path\r\n fill=\"#ffffff\"\r\n d=\"M49,64 L84,64 L84,20 L12,20 L12,64 L28,64 L28,75 L49,64 Z\"\r\n ></path>\r\n <path\r\n fill=\"#F69139\"\r\n d=\"M20,32 L76,32 L76,36 L20,36 L20,32 Z M20,40 L76,40 L76,44 L20,44 L20,40 Z M20,48 L56,48 L56,52 L20,52 L20,48 Z\"\r\n ></path>\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default CommentIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\nconst DefaultDocIcon: FC<{}> = () => (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ height: 16 }}\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 96 96\"\r\n >\r\n <path\r\n fill=\"#979593\"\r\n fillRule=\"evenodd\"\r\n d=\"M8,4.00277853 C8,1.79210499 9.79405245,0 12.0098932,0 L56,0 L80,24 L80,92.0005854 C80,94.2094011 78.2022516,96 76.0005854,96 L11.9994146,96 C9.79059889,96 8,94.2101231 8,91.9972215 L8,4.00277853 Z M16,8 L16,88 L72,88 L72,32 L48,32 L48,8 L16,8 Z M24,24 L40,24 L40,32 L24,32 L24,24 Z M24,40 L64,40 L64,48 L24,48 L24,40 Z M24,56 L64,56 L64,64 L24,64 L24,56 Z M24,72 L56,72 L56,80 L24,80 L24,72 Z\"\r\n />\r\n </LCTSvgIcon>\r\n);\r\nexport default DefaultDocIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction DocIcon() {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-doc-24\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path\r\n fill=\"#FFF\"\r\n d=\"M10 39.267L2 38.11V13.89l8-1.156V2h26l10 10v34H10v-6.733z\"\r\n ></path>\r\n <path\r\n fill=\"#CCC\"\r\n d=\"M26 14h6v2h-6v-2zm-8-6h14v2H18V8zm8 12h16v2H26v-2zm0 18h16v2H26v-2zm0-12h16v2H26v-2zm0 6h16v2H26v-2z\"\r\n ></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M10 39.267l2 .289V44h32V12.828L35.172 4H12v8.444l-2 .29V2h26l10 10v34H10v-6.733zM34 14h10v2H32V4h2v10z\"\r\n ></path>\r\n <path\r\n fill=\"#28579B\"\r\n d=\"M22 11v30L2 38.111V13.89L22 11zm-3 9h-2.405l-1.717 8.917L13.046 20h-2.634l-2.175 8.807-1.603-8.697H4L6.748 32h2.748l2.061-8.477L13.504 32h2.633L19 20z\"\r\n ></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default DocIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.41 19.3909 26.3941 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6059 19.8095 25.5228 19.821 25.4618 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.65742 19.8333C2.26724 19.8333 1.88986 19.6827 1.60912 19.4097C1.32782 19.1362 1.16668 18.7617 1.16668 18.3676L1.16668 2.63231C1.16668 2.61869 1.1663 2.59926 1.16583 2.57553C1.16401 2.48257 1.16089 2.32369 1.17434 2.19021C1.19197 2.01517 1.24697 1.72524 1.48042 1.49823C1.7009 1.28385 1.98665 1.21986 2.16028 1.19412C2.34606 1.16658 2.53358 1.16661 2.6491 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3976 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.3661 2.33329L13.6538 10.3854C13.8661 10.5516 14.1647 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33334 3.00649L2.33334 18.3676C2.33334 18.4416 2.3634 18.5159 2.42245 18.5733C2.48205 18.6313 2.56628 18.6666 2.65742 18.6666L25.3357 18.6666C25.3383 18.6665 25.3433 18.6662 25.3503 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33334 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.1011 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailReceivedIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.4099 19.3909 26.394 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6058 19.8095 25.5227 19.821 25.4617 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.6574 19.8333C2.26722 19.8333 1.88985 19.6827 1.60911 19.4097C1.3278 19.1362 1.16666 18.7617 1.16666 18.3676L1.16666 2.63231C1.16666 2.61869 1.16628 2.59926 1.16582 2.57553C1.16399 2.48257 1.16088 2.32369 1.17432 2.19021C1.19196 2.01517 1.24696 1.72524 1.48041 1.49823C1.70088 1.28385 1.98664 1.21986 2.16026 1.19412C2.34604 1.16658 2.53356 1.16661 2.64908 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3975 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.36609 2.33329L13.6537 10.3854C13.8661 10.5516 14.1646 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33333 3.00649L2.33333 18.3676C2.33333 18.4416 2.36339 18.5159 2.42243 18.5733C2.48204 18.6313 2.56627 18.6666 2.6574 18.6666L25.3356 18.6666C25.3383 18.6665 25.3433 18.6662 25.3502 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33333 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.101 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n <circle cx=\"21.5833\" cy=\"18.0833\" r=\"6.41667\" fill=\"#107C41\" />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M25.5528 17.554C25.7817 17.7807 25.7834 18.15 25.5567 18.3789L21.9867 21.9828C21.8768 22.0937 21.7271 22.156 21.571 22.1556C21.4149 22.1553 21.2654 22.0924 21.156 21.981L17.6171 18.3771C17.3914 18.1472 17.3947 17.7779 17.6246 17.5522C17.8545 17.3264 18.2238 17.3298 18.4495 17.5597L20.9889 20.1457L20.9889 14.5632C20.9889 14.241 21.2501 13.9799 21.5723 13.9799C21.8944 13.9799 22.1556 14.241 22.1556 14.5632L22.1556 20.1546L24.7279 17.5579C24.9546 17.329 25.3239 17.3272 25.5528 17.554Z\"\r\n fill=\"white\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailReceivedIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailSentIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.4099 19.3909 26.394 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6058 19.8095 25.5227 19.821 25.4617 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.6574 19.8333C2.26722 19.8333 1.88985 19.6827 1.60911 19.4097C1.3278 19.1362 1.16666 18.7617 1.16666 18.3676L1.16666 2.63231C1.16666 2.61869 1.16628 2.59926 1.16582 2.57553C1.16399 2.48257 1.16088 2.32369 1.17432 2.19021C1.19196 2.01517 1.24696 1.72524 1.48041 1.49823C1.70088 1.28385 1.98664 1.21986 2.16026 1.19412C2.34604 1.16658 2.53356 1.16661 2.64908 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3975 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.36609 2.33329L13.6537 10.3854C13.8661 10.5516 14.1646 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33333 3.00649L2.33333 18.3676C2.33333 18.4416 2.36339 18.5159 2.42243 18.5733C2.48204 18.6313 2.56627 18.6666 2.6574 18.6666L25.3356 18.6666C25.3383 18.6665 25.3433 18.6662 25.3502 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33333 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.101 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n <circle cx=\"21.5833\" cy=\"18.0833\" r=\"6.41667\" fill=\"#185ABD\" />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M21.0741 14.1027C21.3008 13.8739 21.6702 13.8721 21.8991 14.0988L25.503 17.6689C25.6139 17.7787 25.6761 17.9285 25.6758 18.0846C25.6754 18.2407 25.6125 18.3901 25.5012 18.4995L21.8972 22.0385C21.6674 22.2642 21.298 22.2608 21.0723 22.031C20.8466 21.8011 20.8499 21.4318 21.0798 21.206L23.6658 18.6666H18.0833C17.7612 18.6666 17.5 18.4055 17.5 18.0833C17.5 17.7611 17.7612 17.5 18.0833 17.5H23.6747L21.078 14.9277C20.8491 14.701 20.8474 14.3316 21.0741 14.1027Z\"\r\n fill=\"white\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailSentIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction ExcelIcon() {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-excel\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path fill=\"#FFF\" d=\"M10 2h28l8 8v36H10z\"></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M34 3.5H11.5v41h33V14H34V3.5zm1.5 0v9h9v-1.879L37.379 3.5H35.5zM10 2h28l8 8v36H10V2z\"\r\n ></path>\r\n <path\r\n fill=\"#86BFA0\"\r\n d=\"M26 34h6v6h-6v-6zm8 0h8v6h-8v-6zm-8-8h6v6h-6v-6zm8 0h8v6h-8v-6zm-8-8h6v6h-6v-6zm8 0h8v6h-8v-6z\"\r\n ></path>\r\n <path fill=\"#CCC\" d=\"M26 8h6v8h-6z\"></path>\r\n <path fill=\"#FFF\" d=\"M3 19h17v14H3z\"></path>\r\n <path\r\n fill=\"#1C7245\"\r\n d=\"M22 11v30L2 38.111V13.89L22 11zm-5.99 9.11h-2.53l-1.98 4.254h-.11l-1.65-4.146H6.88l2.97 5.891L6.66 32H9.3l2.09-4.364L13.37 32h2.75l-3.19-6 3.08-5.89z\"\r\n ></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default ExcelIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\ninterface IProps {}\r\n\r\nconst FolderIcon: FC<IProps> = () => (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\"\r\n height=\"16\"\r\n style={{\r\n width: 16,\r\n height: 16,\r\n }}\r\n viewBox=\"0 0 1024 1024\"\r\n version=\"1.1\"\r\n >\r\n <path\r\n d=\"M853.333333 256H469.333333l-85.333333-85.333333H170.666667c-46.933333 0-85.333333 38.4-85.333334 85.333333v170.666667h853.333334v-85.333334c0-46.933333-38.4-85.333333-85.333334-85.333333z\"\r\n fill=\"#FFA000\"\r\n />\r\n <path\r\n d=\"M853.333333 256H170.666667c-46.933333 0-85.333333 38.4-85.333334 85.333333v426.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h682.666666c46.933333 0 85.333333-38.4 85.333334-85.333333V341.333333c0-46.933333-38.4-85.333333-85.333334-85.333333z\"\r\n fill=\"#FFCA28\"\r\n />\r\n </LCTSvgIcon>\r\n);\r\nexport default FolderIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction ImageIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 18 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M18.1131 3H7.7619C7.55984 3 7.36604 3.08585 7.22316 3.23865C7.08027 3.39146 7 3.59871 7 3.81481V24.1852C7 24.4013 7.08027 24.6085 7.22316 24.7613C7.36604 24.9142 7.55984 25 7.7619 25H22.2381C22.4402 25 22.634 24.9142 22.7768 24.7613C22.9197 24.6085 23 24.4013 23 24.1852V8.22622C23 8.01014 22.9197 7.80292 22.7768 7.65015L18.6518 3.23874C18.509 3.08592 18.3152 3.00005 18.1131 3Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M24 8.22622V24.1852C24 24.6456 23.8296 25.0996 23.5073 25.4443C23.1828 25.7913 22.7279 26 22.2381 26H7.7619C7.27213 26 6.81717 25.7913 6.49273 25.4443C6.17042 25.0996 6 24.6456 6 24.1852V3.81481C6 3.35435 6.17042 2.90036 6.49273 2.55566C6.81717 2.20869 7.27213 2 7.7619 2H18.1131V3H7.7619C7.55983 3 7.36604 3.08585 7.22316 3.23865C7.08027 3.39146 7 3.59871 7 3.81481V24.1852C7 24.4013 7.08027 24.6085 7.22316 24.7613C7.36604 24.9142 7.55983 25 7.7619 25H22.2381C22.4402 25 22.634 24.9142 22.7768 24.7613C22.9197 24.6085 23 24.4013 23 24.1852V8.22622C23 8.01014 22.9197 7.80292 22.7768 7.65015L18.6518 3.23874C18.509 3.08592 18.3152 3.00005 18.1131 3V2C18.6028 2.00011 19.0579 2.20883 19.3822 2.55575M19.3822 2.55575L23.5071 6.96704C23.507 6.96701 23.5071 6.96708 23.5071 6.96704C23.8294 7.31166 23.9999 7.76585 24 8.22622\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M17.5 2.5C17.7761 2.5 18 2.72386 18 3V7.61111C18 7.72218 18.0422 7.82393 18.1099 7.89514C18.1768 7.9655 18.2619 8 18.3451 8V8.5V9C17.9799 9 17.6352 8.8472 17.3851 8.58416C17.1359 8.32198 17 7.97154 17 7.61111V3C17 2.72386 17.2239 2.5 17.5 2.5ZM18.3451 8.5V9H23C23.2761 9 23.5 8.77614 23.5 8.5C23.5 8.22386 23.2761 8 23 8H18.3451V8.5Z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M3.28571 22H12.7143C13.0553 22 13.3823 21.8645 13.6234 21.6234C13.8645 21.3823 14 21.0553 14 20.7143V11.2857C14 10.9447 13.8645 10.6177 13.6234 10.3766C13.3823 10.1355 13.0553 10 12.7143 10H3.28571C2.94472 10 2.6177 10.1355 2.37658 10.3766C2.13546 10.6177 2 10.9447 2 11.2857V20.7143C2 21.0553 2.13546 21.3823 2.37658 21.6234C2.6177 21.8645 2.94472 22 3.28571 22Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M12.7143 23H3.28571C2.6795 23 2.09812 22.7592 1.66947 22.3305C1.24082 21.9019 1 21.3205 1 20.7143V11.2857C1 10.6795 1.24082 10.0981 1.66947 9.66947C2.09812 9.24082 2.67951 9 3.28571 9H12.7143C13.3205 9 13.9019 9.24082 14.3305 9.66947C14.7592 10.0981 15 10.6795 15 11.2857V20.7143C15 21.3205 14.7592 21.9019 14.3305 22.3305C13.9019 22.7592 13.3205 23 12.7143 23ZM12.7143 22H3.28571C2.94472 22 2.6177 21.8645 2.37658 21.6234C2.13546 21.3823 2 21.0553 2 20.7143V11.2857C2 10.9447 2.13546 10.6177 2.37658 10.3766C2.6177 10.1355 2.94472 10 3.28571 10H12.7143C13.0553 10 13.3823 10.1355 13.6234 10.3766C13.8645 10.6177 14 10.9447 14 11.2857V20.7143C14 21.0553 13.8645 21.3823 13.6234 21.6234C13.3823 21.8645 13.0553 22 12.7143 22Z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M8.86848 16.228L8.02469 17.4279L6.67458 15.619C6.64679 15.5818 6.61176 15.5518 6.57203 15.5313C6.53231 15.5107 6.48888 15.5 6.44489 15.5C6.40091 15.5 6.35748 15.5107 6.31776 15.5313C6.27803 15.5518 6.243 15.5818 6.21521 15.619L4.06273 18.5026C3.91252 18.7045 4.04902 19 4.29256 19H10.7074C10.9472 19 11.0848 18.7128 10.9422 18.5099L9.33806 16.228C9.31044 16.1887 9.2749 16.1568 9.23419 16.1349C9.19347 16.113 9.14867 16.1016 9.10327 16.1016C9.05786 16.1016 9.01306 16.113 8.97234 16.1349C8.93163 16.1568 8.89609 16.1887 8.86848 16.228Z\"\r\n fill=\"#A6CCC3\"\r\n />\r\n <path\r\n d=\"M10.5 15C11.3284 15 12 14.3284 12 13.5C12 12.6716 11.3284 12 10.5 12C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15Z\"\r\n fill=\"#F69139\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default ImageIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction InfoIcon() {\r\n return (\r\n <SvgIcon\r\n version=\"1.1\"\r\n id=\"Layer_1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 24 24\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <g>\r\n <path\r\n d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12\r\n 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2.033 16.01c.564-1.789 1.632-3.932\r\n 1.821-4.474.273-.787-.211-1.136-1.74.209l-.34-.64c1.744-1.897 5.335-2.326 4.113.613-.763\r\n 1.835-1.309 3.074-1.621 4.03-.455 1.393.694.828 1.819-.211.153.25.203.331.356.619-2.498\r\n 2.378-5.271 2.588-4.408-.146zm4.742-8.169c-.532.453-1.32.443-1.761-.022-.441-.465-.367-1.208.164-1.661.532-.453\r\n 1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z\"\r\n />\r\n </g>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default InfoIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\nconst LaunchIcon: FC = () => {\r\n return (\r\n <SvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n height=\"14px\"\r\n width=\"14px\"\r\n viewBox=\"0 0 90 90\"\r\n style={{ height: \"14px !important\", width: \"14px !important\" }}\r\n >\r\n <polygon points=\"78 44.996 85 44.996 85 59.996 78 59.996 78 77.996 22 77.996 22 21.996 40 21.996 40 15 15 15 15 85 85 85 85 15 55 15 55 21.996 73.003 21.996 43 52 48 57 78 26.995\" />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default LaunchIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction LEAPIcon() {\r\n return (\r\n <SvgIcon\r\n viewBox=\"0 0 16 16\"\r\n aria-hidden=\"true\"\r\n height=\"16\"\r\n width=\"16\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <path fill=\"#1E365E\" d=\"M0 0h16v16H0z\"></path>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z\"\r\n fill=\"#F69139\"\r\n ></path>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default LEAPIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nconst PDFIcon = () => {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-pdf-24\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path fill=\"#FFF\" d=\"M46 46H10V2h26l10 10z\"></path>\r\n <path\r\n fill=\"#ED2D26\"\r\n d=\"M16.713 38.286c.467-1.217.407-.952 1.278-1.617.651-.496.993-.796 1.73-1.089-.65.976-1.678 2.188-3.008 2.706zm16.282-5.955c1.391-.095 6.776.966 5.125 2.65-1.315 1.344-4.667-2.269-5.125-2.65zm-6.43-5.02c.554.465 2.268 2.897 2.642 3.575l-4.87 1.015 2.229-4.59zm-.064-5.217c-.377-.879-.463-1.297-.453-2.436.023-2.418.546-1.79.821-1.922.513 1.033-.178 3.203-.368 4.358zm4.185 10.34c.985.946 6.33 6.872 8.875 3.46 1.524-2.042-.76-3.808-1.938-4.374-1.942-.93-4.26-.86-6.494-.89-.55-.952-1.351-1.796-2.077-2.79-.624-.855-1.731-2.042-1.496-3.383.343-1.95 2.487-7.076.184-8.14-3.521-1.625-3.625 3.38-2.97 6.235.585 2.552 1.534 2.706-1.348 7.57-2.689 4.542-1.716 2.17-5.68 4.677-4.126 2.611-3.033 5.934-.409 5.058 2.286-.761 3.773-3.512 5.193-5.186 1.156-1.364 6.167-2.2 8.16-2.237z\"\r\n ></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M46 46H10V2h26l10 10v34zm-2-33.172L35.172 4H12v40h32V12.828zM34 14h10v2H32V4h2v10z\"\r\n ></path>\r\n <path fill=\"#BE241E\" d=\"M24 8v8H2V8z\"></path>\r\n <path fill=\"#ED2D26\" d=\"M22 10v4H4v-4z\"></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default PDFIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IBrowseIconProps {\r\n disabled?: boolean;\r\n}\r\nconst PreviewIcon: FC<IBrowseIconProps> = ({ disabled }) => {\r\n return (\r\n <SvgIcon\r\n width=\"22\"\r\n height=\"22\"\r\n viewBox=\"-2 0 22 22\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M16 9.78496C16 10.0611 16.2239 10.285 16.5 10.285C16.7761 10.285 17 10.0611 17 9.78496H16ZM1 10C1 10.2761 1.22386 10.5 1.5 10.5C1.77614 10.5 2 10.2761 2 10H1ZM17 9.78496C17 8.41679 16.1208 6.96494 14.7309 5.87741C13.3252 4.77756 11.3417 4 9 4V5C11.119 5 12.8855 5.70321 14.1146 6.66498C15.3596 7.63907 16 8.82971 16 9.78496H17ZM9 4C6.65831 4 4.67232 4.77769 3.26423 5.90819C1.86692 7.03002 1 8.53606 1 10H2C2 8.92548 2.65275 7.68152 3.89028 6.68797C5.11701 5.70308 6.88102 5 9 5V4ZM11.5 11C11.5 12.3805 10.3805 13.5 9 13.5V14.5C10.9327 14.5 12.5 12.9327 12.5 11H11.5ZM9 13.5C7.61954 13.5 6.5 12.3805 6.5 11H5.5C5.5 12.9327 7.06726 14.5 9 14.5V13.5ZM6.5 11C6.5 9.61954 7.61954 8.5 9 8.5V7.5C7.06726 7.5 5.5 9.06726 5.5 11H6.5ZM9 8.5C10.3805 8.5 11.5 9.61954 11.5 11H12.5C12.5 9.06726 10.9327 7.5 9 7.5V8.5Z\"\r\n fill={disabled ? \"grey\" : \"#1E365E\"}\r\n />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default PreviewIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction QuestionIcon() {\r\n return (\r\n <LCTSvgIcon\r\n height=\"20\"\r\n id=\"help-circle-outline\"\r\n viewBox=\"0 0 96 96\"\r\n width=\"20\"\r\n style={{ width: 20, height: 20 }}\r\n >\r\n <path\r\n d=\"M84 48c0-19.882-16.118-36-36-36S12 28.118 12 48s16.118 36 36 36 36-16.118 36-36zM4 48C4 23.7 23.7 4 48 4s44 19.7 44 44-19.7 44-44 44S4 72.3 4 48zm43.838-23.803c-3.31 0-6.104.826-8.372 2.483-3.602 2.592-5.516 6.992-5.748 13.197h8.347c0-1.81.467-3.546 1.397-5.227.93-1.677 2.511-2.513 4.74-2.513 2.267 0 3.83.68 4.68 2.039.854 1.364 1.282 2.87 1.282 4.524 0 1.44-.636 2.76-1.406 3.955a7.848 7.848 0 0 1-1.669 1.927s-4.526 3.288-6.512 5.93c-1.152 1.53-1.254 3.827-1.358 7.115-.005.234.072.72.795.72h6.49c.647 0 .78-.54.787-.782.046-1.196.161-1.81.357-2.503.363-1.306 1.358-2.445 2.47-3.428l2.297-1.792c2.075-1.834 3.728-3.335 4.46-4.513C62.121 43.395 63 41.01 63 38.179c-.003-4.618-1.442-8.098-4.32-10.455-2.875-2.35-6.49-3.527-10.842-3.527zm-4.836 42.688c-.084 3.027 2.073 5.032 4.825 5.112 2.87.086 5.08-1.783 5.17-4.816.082-3.033-2.013-5.094-4.886-5.18-2.751-.084-5.021 1.851-5.109 4.884z\"\r\n style={{ fill: \"#545454\" }}\r\n ></path>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default QuestionIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IIconProps {\r\n disabled?: boolean;\r\n}\r\n\r\nconst UndoIcon: FC<IIconProps> = ({ disabled }) => {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"100\"\r\n height=\"100\"\r\n viewBox=\"0 0 100 100\"\r\n style={\r\n !disabled ? { color: \"#ffffff\", strokeWidth: 1 } : { color: \"#d5d6d5\" }\r\n }\r\n >\r\n <path\r\n strokeWidth={3}\r\n d=\"M40,35 L60,35 C74.1962733,35 85,43.9380755 85,57.5 C85,71.0619245 74.1962733,80 60,80 L50,80 C47.2385763,80 45,77.7614237 45,75 C45,72.2385763 47.2385763,70 50,70 L60,70 C69.0479048,70 75,65.0757477 75,57.5 C75,49.9242523 69.0479048,45 60,45 L40,45 L40,60 L15,40 L40,20 L40,35 Z\"\r\n />\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default UndoIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction UnknownDocIcon() {\r\n return (\r\n <SvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ height: 18 }}\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 1024 1024\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-0.8-55.5-49.2-100.8-108.5-101.6-61.4-0.7-111.5 45.6-111.5 103zM480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0z\"\r\n fill=\"#979593\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default UnknownDocIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction WarningIcon() {\r\n return (\r\n <SvgIcon\r\n version=\"1.1\"\r\n id=\"Layer_1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 20 20\"\r\n style={{ width: 56, height: 56 }}\r\n >\r\n <g fill=\"#FFBF00\" fillRule=\"evenodd\" transform=\"translate(1 1)\">\r\n <path\r\n d=\"m9.5.5 9 16h-18z\"\r\n stroke=\"#000000\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n <path\r\n d=\"m9.5 10.5v-5\"\r\n stroke=\"#000000\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n <circle cx=\"9.5\" cy=\"13.5\" fill=\"#000000\" r=\"1\" />\r\n </g>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default WarningIcon;\r\n","import { Box, BoxProps } from \"@mui/material\";\r\n\r\nconst LCTBox = (props: BoxProps) => {\r\n return <Box {...props}>{props.children}</Box>;\r\n};\r\n\r\nexport default LCTBox;\r\n","import { Component, ErrorInfo, ReactNode } from \"react\";\r\n\r\nimport { LCTAlert, LCTTypography } from \"../..\";\r\nimport { LCTBox } from \"../box\";\r\n\r\ninterface LCTErrorBoundaryProps {\r\n children: ReactNode;\r\n /**\r\n * Rendered when a child throws. Pass a function to receive the caught error\r\n * (e.g. to display its message); a plain node is rendered as-is.\r\n */\r\n fallback?: ReactNode | ((error?: Error) => ReactNode);\r\n onError?: (error: Error, info: ErrorInfo) => void;\r\n}\r\n\r\ninterface LCTErrorBoundaryState {\r\n hasError: boolean;\r\n error?: Error;\r\n}\r\n\r\n/**\r\n * Contains render-time exceptions thrown by its children so a failure (e.g. an\r\n * expired MUI X licence throwing a LicenseError) degrades to a fallback instead\r\n * of unmounting the consuming app's subtree.\r\n */\r\nclass LCTErrorBoundary extends Component<\r\n LCTErrorBoundaryProps,\r\n LCTErrorBoundaryState\r\n> {\r\n state: LCTErrorBoundaryState = { hasError: false };\r\n\r\n static getDerivedStateFromError(error: Error): LCTErrorBoundaryState {\r\n return { hasError: true, error };\r\n }\r\n\r\n componentDidCatch(error: Error, info: ErrorInfo): void {\r\n this.props.onError?.(error, info);\r\n }\r\n\r\n render(): ReactNode {\r\n if (this.state.hasError) {\r\n const { fallback } = this.props;\r\n const { error } = this.state;\r\n\r\n // First sentence (up to and including the first full stop) of the\r\n // exception; the whole message when it has no full stop. Derived without\r\n // mutating the caught error, so onError logging keeps the full message.\r\n const message = error\r\n ? error.message.slice(0, error.message.indexOf(\".\") + 1) ||\r\n error.message\r\n : undefined;\r\n\r\n if (fallback !== undefined) {\r\n return typeof fallback === \"function\"\r\n ? fallback(\r\n error &&\r\n Object.assign(new Error(message), {\r\n name: error.name,\r\n stack: error.stack,\r\n }),\r\n )\r\n : fallback;\r\n }\r\n\r\n return (\r\n <LCTBox\r\n sx={{\r\n alignItems: \"center\",\r\n display: \"flex\",\r\n height: \"100%\",\r\n justifyContent: \"center\",\r\n padding: 2,\r\n }}\r\n >\r\n <LCTAlert severity=\"error\" sx={{ width: \"-webkit-fill-available\" }}>\r\n <LCTTypography color=\"#5f2120\" sx={{ fontSize: 14 }}>\r\n Unable to display UI component. Please refresh the page or contact\r\n LEAP if the problem persists.\r\n {error && (\r\n <LCTTypography\r\n color=\"default\"\r\n sx={{ fontSize: 12, marginTop: 0.5, opacity: 0.8 }}\r\n >\r\n {message}\r\n </LCTTypography>\r\n )}\r\n </LCTTypography>\r\n </LCTAlert>\r\n </LCTBox>\r\n );\r\n }\r\n\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default LCTErrorBoundary;\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.88 9.29 12 13.17 8.12 9.29a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.59 4.59c.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41-.39-.38-1.03-.39-1.42 0\"\n}), 'ExpandMoreRounded');","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.12 14.71 12 10.83l3.88 3.88c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L12.7 8.71a.996.996 0 0 0-1.41 0L6.7 13.3c-.39.39-.39 1.02 0 1.41.39.38 1.03.39 1.42 0\"\n}), 'KeyboardArrowUpRounded');","import ExpandMoreRoundedIcon from \"@mui/icons-material/ExpandMoreRounded\";\r\nimport KeyboardArrowUpRoundedIcon from \"@mui/icons-material/KeyboardArrowUpRounded\";\r\nimport { Typography } from \"@mui/material\";\r\nimport {\r\n GridColumnHeaderParams,\r\n GridSortModel,\r\n GridValidRowModel,\r\n} from \"@mui/x-data-grid-pro\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IHeaderRowProps {\r\n params: GridColumnHeaderParams<any, GridValidRowModel, any>;\r\n sortModel: GridSortModel | undefined;\r\n}\r\n\r\nconst HeaderRow: FC<IHeaderRowProps> = ({ params, sortModel }) => {\r\n return (\r\n <div\r\n style={{\r\n display: \"grid\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n }}\r\n >\r\n <div\r\n style={{\r\n marginRight: \"auto\",\r\n marginLeft: \"auto\",\r\n height: 5,\r\n }}\r\n >\r\n {sortModel?.find(\r\n (f) => f.field === params.colDef.field && f.sort === \"asc\"\r\n ) && <KeyboardArrowUpRoundedIcon className=\"tableHeaderIcon\" />}\r\n {sortModel?.find(\r\n (f) => f.field === params.colDef.field && f.sort === \"desc\"\r\n ) && <ExpandMoreRoundedIcon className=\"tableHeaderIcon\" />}\r\n </div>\r\n <div style={{ display: \"block\" }}>\r\n <Typography\r\n textAlign={params.colDef.headerAlign}\r\n style={{ fontWeight: 500 }}\r\n >\r\n {params.colDef.headerName}\r\n </Typography>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default HeaderRow;\r\n","import { ErrorInfo, ReactNode, useRef, useState } from \"react\";\r\nimport {\r\n DataGridPro,\r\n GridCallbackDetails,\r\n GridColDef,\r\n GridColumnHeaderParams,\r\n GridColumnVisibilityModel,\r\n GridGroupingColDefOverride,\r\n GridGroupingColDefOverrideParams,\r\n GridInitialState,\r\n GridProSlotsComponent,\r\n GridRowClassNameParams,\r\n GridRowParams,\r\n GridRowSelectionModel,\r\n GridSlotProps,\r\n GridSlotsComponentsProps,\r\n GridSortModel,\r\n GridValidRowModel,\r\n} from \"@mui/x-data-grid-pro\";\r\nimport { Box, Checkbox, styled } from \"@mui/material\";\r\n\r\nimport { LCTCheckboxIcon } from \"../../images\";\r\nimport { LCTErrorBoundary } from \"../errorboundary\";\r\nimport CheckedCheckboxIcon from \"../../images/checkbox-checked-icon\";\r\nimport HeaderRow from \"../headerrow/HeaderRow\";\r\n\r\ninterface IDataGridProps {\r\n borderTop?: boolean;\r\n checkboxSelection?: boolean;\r\n columnHeaderHeight?: number;\r\n columns: GridColDef[];\r\n columnVisibilityModel?: GridColumnVisibilityModel;\r\n componentsProps?: GridSlotsComponentsProps | undefined;\r\n defaultGroupingExpansionDepth?: number;\r\n disableMultipleRowSelection?: boolean;\r\n errorFallback?: ReactNode | ((error?: Error) => ReactNode);\r\n getRowClassName?:\r\n | ((params: GridRowClassNameParams<GridValidRowModel>) => string)\r\n | undefined;\r\n getTreeDataPath?: ((row: GridValidRowModel) => readonly string[]) | undefined;\r\n groupingColDef?:\r\n | GridGroupingColDefOverride<GridValidRowModel>\r\n | ((\r\n params: GridGroupingColDefOverrideParams,\r\n ) => GridGroupingColDefOverride<GridValidRowModel> | null | undefined)\r\n | undefined;\r\n height?: any;\r\n hideFooter?: boolean;\r\n id: (row: any) => any;\r\n initialState?: GridInitialState | undefined;\r\n isRowSelectable?:\r\n | ((params: GridRowParams<GridValidRowModel>) => boolean)\r\n | undefined;\r\n keepNonExistentRowsSelected?: boolean;\r\n loading?: boolean;\r\n maxHeight: any;\r\n noDataText?: string;\r\n noRowsOverlay?: React.JSXElementConstructor<GridSlotProps[\"noRowsOverlay\"]>;\r\n onRowClick?: (params: GridRowParams<any>) => void;\r\n onGridError?: (error: Error, info: ErrorInfo) => void;\r\n onRowDoubleClick?: (params: GridRowParams<any>) => void;\r\n onRowSelectionModelChange?: (\r\n rowSelectionModel: GridRowSelectionModel,\r\n details: GridCallbackDetails,\r\n ) => void;\r\n rowHeight?: number;\r\n rows: any[];\r\n rowSelectionModel?: GridRowSelectionModel;\r\n showBorders?: boolean;\r\n slots?: Partial<GridProSlotsComponent>;\r\n treeData?: boolean;\r\n}\r\n\r\nconst headerHeight = 40;\r\nconst rowHeight = 46;\r\n\r\nconst LCTDataGrid = styled((props: IDataGridProps) => {\r\n const [sortModel, setSortModel] = useState<GridSortModel | undefined>(\r\n undefined,\r\n );\r\n const sortModelInitialised = useRef(false);\r\n\r\n if (!sortModelInitialised.current && !sortModel && !!props.initialState) {\r\n setSortModel(props.initialState.sorting?.sortModel);\r\n sortModelInitialised.current = true;\r\n }\r\n\r\n return (\r\n <Box\r\n sx={{\r\n backgroundColor: \"#fff\",\r\n height: props.height ? props.height : props.maxHeight,\r\n maxHeight: props.maxHeight,\r\n width: \"100%\",\r\n }}\r\n >\r\n <LCTErrorBoundary\r\n fallback={props.errorFallback}\r\n onError={props.onGridError}\r\n >\r\n <DataGridPro\r\n checkboxSelection={props.checkboxSelection}\r\n columnHeaderHeight={\r\n !!props.columnHeaderHeight || props.columnHeaderHeight === 0\r\n ? props.columnHeaderHeight\r\n : headerHeight\r\n }\r\n columns={props.columns.map((c) => {\r\n return {\r\n ...c,\r\n disableColumnMenu: !!c.disableColumnMenu ? true : false,\r\n disableReorder: true,\r\n renderHeader: (params: GridColumnHeaderParams) => {\r\n return <HeaderRow sortModel={sortModel} params={params} />;\r\n },\r\n hideSortIcons: true,\r\n };\r\n })}\r\n columnVisibilityModel={props.columnVisibilityModel}\r\n defaultGroupingExpansionDepth={\r\n props.defaultGroupingExpansionDepth\r\n ? props.defaultGroupingExpansionDepth\r\n : 0\r\n }\r\n disableColumnReorder\r\n disableMultipleRowSelection={props.disableMultipleRowSelection}\r\n getRowClassName={props.getRowClassName}\r\n getRowId={props.id}\r\n getTreeDataPath={props.getTreeDataPath}\r\n groupingColDef={props.groupingColDef}\r\n hideFooter={props.hideFooter !== undefined ? props.hideFooter : true}\r\n initialState={props.initialState || undefined}\r\n isRowSelectable={props.isRowSelectable}\r\n keepNonExistentRowsSelected={props.keepNonExistentRowsSelected}\r\n loading={props.loading}\r\n localeText={{\r\n noRowsLabel: props.noDataText\r\n ? props.noDataText\r\n : \"There are no results to display. Please update your search criteria\",\r\n }}\r\n onRowClick={props.onRowClick}\r\n onRowDoubleClick={props.onRowDoubleClick}\r\n onRowSelectionModelChange={props.onRowSelectionModelChange}\r\n onSortModelChange={(model) => setSortModel(model)}\r\n rowHeight={props.rowHeight ? props.rowHeight : rowHeight}\r\n rows={props.rows || []}\r\n rowSelectionModel={props.rowSelectionModel}\r\n slotProps={props.componentsProps}\r\n slots={{\r\n ...props.slots,\r\n moreActionsIcon: undefined,\r\n noRowsOverlay: props.noRowsOverlay,\r\n baseCheckbox: (checkboxProps) => {\r\n const { slotProps, ...restProps } = checkboxProps;\r\n return (\r\n <Checkbox\r\n {...restProps}\r\n checkedIcon={\r\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\r\n <CheckedCheckboxIcon />\r\n </div>\r\n }\r\n icon={\r\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\r\n <LCTCheckboxIcon />\r\n </div>\r\n }\r\n />\r\n );\r\n },\r\n }}\r\n sortingOrder={[\"desc\", \"asc\"]}\r\n sortModel={sortModel}\r\n sx={{\r\n \".MuiDataGrid-columnHeaders\": props.borderTop\r\n ? {\r\n borderTop: \"1px solid rgb(224, 224, 224)\",\r\n }\r\n : {},\r\n \".MuiDataGrid-overlay \": { color: \"#0060bb\" },\r\n \"&.MuiDataGrid-root\": props.showBorders\r\n ? {\r\n border: \"1px solid rgb(224, 224, 224)\",\r\n }\r\n : { border: 0 },\r\n borderRadius: 0,\r\n \".Mui-selected\": { backgroundColor: \"#cde6f7 !important\" },\r\n }}\r\n treeData={props.treeData}\r\n />\r\n </LCTErrorBoundary>\r\n </Box>\r\n );\r\n})(() => ({}));\r\n\r\nexport default LCTDataGrid;\r\n","import { useRef, useState } from \"react\";\r\nimport { styled } from \"@mui/material\";\r\nimport {\r\n GridInitialState,\r\n GridRowParams,\r\n GridSlotsComponentsProps,\r\n GridSortModel,\r\n} from \"@mui/x-data-grid-pro\";\r\n\r\nimport { LCTDataGrid } from \"../datagrid\";\r\n\r\ninterface IAccordionTableProps {\r\n maxHeight: any;\r\n rows: any[];\r\n columns: any;\r\n initialState?: GridInitialState | undefined;\r\n onRowDoubleClick?: (params: GridRowParams<any>) => void;\r\n id: (row: any) => any;\r\n rowHeight?: number;\r\n headerHeight?: number;\r\n componentsProps?: GridSlotsComponentsProps | undefined;\r\n}\r\n\r\nconst LCTAccordionTable = styled((props: IAccordionTableProps) => {\r\n const [sortModel, setSortModel] = useState<GridSortModel | undefined>(\r\n undefined,\r\n );\r\n const sortModelInitialised = useRef(false);\r\n\r\n if (!sortModelInitialised.current && !sortModel && !!props.initialState) {\r\n setSortModel(props.initialState.sorting?.sortModel);\r\n sortModelInitialised.current = true;\r\n }\r\n\r\n const currentRowHeight = props.rowHeight ? props.rowHeight : 29;\r\n const currentHeaderHeight = props.headerHeight ? props.headerHeight : 29;\r\n\r\n return (\r\n <LCTDataGrid\r\n maxHeight={props.maxHeight}\r\n height={\r\n currentHeaderHeight + (props.rows || []).length * currentRowHeight\r\n }\r\n id={props.id}\r\n rows={props.rows || []}\r\n initialState={props.initialState || undefined}\r\n columns={props.columns.map((c: any) => {\r\n return {\r\n ...c,\r\n disableColumnMenu: true,\r\n disableReorder: true,\r\n hideSortIcons: true,\r\n };\r\n })}\r\n onRowDoubleClick={props.onRowDoubleClick}\r\n rowHeight={currentRowHeight}\r\n columnHeaderHeight={currentHeaderHeight}\r\n componentsProps={props.componentsProps}\r\n />\r\n );\r\n})(({}) => ({}));\r\n\r\nexport default LCTAccordionTable;\r\n","import { Alert, AlertProps } from \"@mui/material\";\r\n\r\nconst LCTAlert = (props: AlertProps) => {\r\n return (\r\n <Alert severity={props.severity ? props.severity : \"success\"} {...props}>\r\n {props.children}\r\n </Alert>\r\n );\r\n};\r\n\r\nexport default LCTAlert;\r\n","import { FC, MouseEventHandler, ReactNode } from \"react\";\r\nimport { Link, Tooltip } from \"@mui/material\";\r\n\r\ninterface IAppBarProps {\r\n centerComponents?: ReactNode;\r\n leftComponents?: ReactNode;\r\n onClickHelp?: MouseEventHandler<HTMLButtonElement>;\r\n rightComponents?: ReactNode;\r\n}\r\n\r\nconst LCTAppBar: FC<IAppBarProps> = ({\r\n leftComponents,\r\n centerComponents,\r\n rightComponents,\r\n onClickHelp,\r\n}) => {\r\n return (\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n backgroundColor: \"#fafafa\",\r\n borderBottom: \"1px solid #d8d8d8\",\r\n display: \"flex\",\r\n justifyContent: \"space-between\",\r\n minHeight: \"36px\",\r\n paddingLeft: \"0px\",\r\n paddingRight: \"15px\",\r\n }}\r\n >\r\n {leftComponents && <>{leftComponents}</>}\r\n {centerComponents && <>{centerComponents}</>}\r\n {rightComponents && <>{rightComponents}</>}\r\n {onClickHelp && (\r\n <Tooltip placement=\"bottom-end\" title=\"Help for this Window\">\r\n <Link\r\n component=\"button\"\r\n onClick={onClickHelp}\r\n sx={{\r\n lineHeight: \"2.5\",\r\n \":hover\": {\r\n cursor: \"pointer\",\r\n color: \"#0060AC\",\r\n },\r\n }}\r\n underline=\"hover\"\r\n variant=\"body1\"\r\n >\r\n Help\r\n </Link>\r\n </Tooltip>\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTAppBar;\r\n","import {\r\n Autocomplete,\r\n AutocompleteRenderInputParams,\r\n SxProps,\r\n Theme,\r\n} from \"@mui/material\";\r\n\r\ninterface IAutocompleteProps {\r\n renderInput: (params: AutocompleteRenderInputParams) => React.ReactNode;\r\n sx?: SxProps<Theme>;\r\n getOptionLabel?: ((option: string) => string) | undefined;\r\n onChange?: (event: React.SyntheticEvent, value: string) => void;\r\n renderOption?: (\r\n props: React.HTMLAttributes<HTMLLIElement>,\r\n value: string,\r\n ) => React.ReactNode;\r\n options: string[];\r\n value: string | undefined;\r\n}\r\nconst LCTAutocomplete = (props: IAutocompleteProps) => {\r\n return (\r\n <Autocomplete\r\n {...props}\r\n autoComplete\r\n autoSelect\r\n forcePopupIcon\r\n fullWidth\r\n disableClearable\r\n slotProps={{\r\n listbox: {\r\n style: {\r\n padding: 0,\r\n },\r\n },\r\n }}\r\n size=\"small\"\r\n renderInput={props.renderInput}\r\n sx={props.sx}\r\n getOptionLabel={props.getOptionLabel}\r\n renderOption={props.renderOption}\r\n options={props.options}\r\n value={props.value}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTAutocomplete;\r\n","import { AvatarGroup, AvatarGroupProps } from \"@mui/material\";\r\n\r\nconst LCTAvatarGroup = (props: AvatarGroupProps) => {\r\n return <AvatarGroup {...props}>{props.children}</AvatarGroup>;\r\n};\r\n\r\nexport default LCTAvatarGroup;\r\n","import { Button, ButtonProps } from \"@mui/material\";\r\n\r\nconst LCTButton = (props: ButtonProps) => {\r\n return (\r\n <Button\r\n color={props.color || \"primary\"}\r\n disabled={props.disabled}\r\n disableRipple={true}\r\n onClick={props.onClick}\r\n size={props.size || \"small\"}\r\n variant={props.variant || \"contained\"}\r\n sx={props.sx}\r\n {...props}\r\n >\r\n {props.children}\r\n </Button>\r\n );\r\n};\r\n\r\nexport default LCTButton;\r\n","import { ButtonGroup, ButtonGroupProps } from \"@mui/material\";\r\n\r\nconst LCTButtonGroup = (props: ButtonGroupProps) => {\r\n return <ButtonGroup {...props}>{props.children}</ButtonGroup>;\r\n};\r\n\r\nexport default LCTButtonGroup;\r\n","import { Checkbox, FormControlLabel } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\nimport CheckedCheckboxIcon from \"../../images/checkbox-checked-icon\";\r\nimport CheckboxIcon from \"../../images/checkbox-icon\";\r\n\r\ninterface ICheckBoxProps {\r\n label?: string;\r\n value?: boolean;\r\n disabled?: boolean;\r\n onChange?: (value: boolean) => void;\r\n}\r\nconst css = `.checkbox {align-self: center; display: contents;} .checkbox svg {margin-left: 5px;}`;\r\n\r\nconst LCTCheckBox: FC<ICheckBoxProps> = ({\r\n label,\r\n value,\r\n disabled,\r\n onChange,\r\n}) => {\r\n return (\r\n <>\r\n <style>{css}</style>\r\n <FormControlLabel\r\n style={\r\n label\r\n ? { marginLeft: 0, marginRight: 3 }\r\n : { marginLeft: 3, marginRight: 3 }\r\n }\r\n control={\r\n <Checkbox\r\n checked={value || false}\r\n disabled={disabled}\r\n onChange={(_e, value) => {\r\n if (onChange) {\r\n onChange(value);\r\n }\r\n }}\r\n checkedIcon={\r\n <div className=\"checkbox\">\r\n <CheckedCheckboxIcon disabled={disabled} />\r\n </div>\r\n }\r\n icon={\r\n <div className=\"checkbox\">\r\n <CheckboxIcon />\r\n </div>\r\n }\r\n style={{ marginRight: 5 }}\r\n disableRipple\r\n disableTouchRipple\r\n disableFocusRipple\r\n />\r\n }\r\n label={label}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTCheckBox;\r\n","import { Chip, ChipProps } from \"@mui/material\";\r\n\r\nconst LCTChip = (props: ChipProps) => {\r\n return (\r\n <Chip\r\n sx={\r\n props.sx\r\n ? props.sx\r\n : {\r\n marginLeft: \"auto\",\r\n marginRight: \"auto\",\r\n fontSize: 11,\r\n width: 160,\r\n height: 24,\r\n backgroundColor: \"#e4e4e4\",\r\n }\r\n }\r\n {...props}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTChip;\r\n","import React from \"react\";\r\nimport { InputAdornment, OutlinedInput, Typography } from \"@mui/material\";\r\nimport { NumericFormat } from \"react-number-format\";\r\n\r\ninterface ICurrencyInputProps {\r\n allowNull?: boolean;\r\n autoFocus?: boolean;\r\n decimalScale?: number;\r\n disabled?: boolean;\r\n id?: string;\r\n onUpdate?: (value: any) => void;\r\n placeholder?: string;\r\n prefix?: string;\r\n size?: \"medium\" | \"small\";\r\n value?: number | null;\r\n maxLength?: number;\r\n width?: number;\r\n}\r\n\r\nconst LCTCurrencyInput: React.FC<ICurrencyInputProps> = ({\r\n decimalScale,\r\n disabled,\r\n id,\r\n onUpdate,\r\n placeholder,\r\n prefix,\r\n size,\r\n value,\r\n maxLength,\r\n width,\r\n}) => {\r\n return (\r\n <NumericFormat\r\n customInput={OutlinedInput}\r\n decimalScale={decimalScale ? decimalScale : 2}\r\n disabled={disabled}\r\n fixedDecimalScale\r\n id={id}\r\n slotProps={{ input: { maxLength: maxLength } }}\r\n onFocus={(e) => e.target.select()}\r\n onValueChange={(values) => {\r\n if (onUpdate) {\r\n onUpdate(values.floatValue);\r\n }\r\n }}\r\n placeholder={placeholder}\r\n size={size ? size : \"small\"}\r\n startAdornment={\r\n prefix && (\r\n <InputAdornment position=\"start\">\r\n <Typography>{prefix}</Typography>\r\n </InputAdornment>\r\n )\r\n }\r\n sx={{\r\n paddingLeft: \"8px\",\r\n width: width ? width : 130,\r\n \"& .MuiInputBase-input\": {\r\n borderLeft: \"1px solid rgba(0, 0, 0, 0.23)\",\r\n color: \"#000\",\r\n height: \"16px\",\r\n textAlign: \"end\",\r\n },\r\n \"&.MuiOutlinedInput-root\": {\r\n backgroundColor: disabled ? \"#f3f3f3\" : \"field\",\r\n },\r\n }}\r\n thousandSeparator\r\n value={value || \"\"}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTCurrencyInput;\r\n","/**\n * @module constants\n * @summary Useful constants\n * @description\n * Collection of useful date constants.\n *\n * The constants could be imported from `date-fns/constants`:\n *\n * ```ts\n * import { maxTime, minTime } from \"./constants/date-fns/constants\";\n *\n * function isAllowedTime(time) {\n * return time <= maxTime && time >= minTime;\n * }\n * ```\n */\n\n/**\n * @constant\n * @name daysInWeek\n * @summary Days in 1 week.\n */\nexport const daysInWeek = 7;\n\n/**\n * @constant\n * @name daysInYear\n * @summary Days in 1 year.\n *\n * @description\n * How many days in a year.\n *\n * One years equals 365.2425 days according to the formula:\n *\n * > Leap year occurs every 4 years, except for years that are divisible by 100 and not divisible by 400.\n * > 1 mean year = (365+1/4-1/100+1/400) days = 365.2425 days\n */\nexport const daysInYear = 365.2425;\n\n/**\n * @constant\n * @name maxTime\n * @summary Maximum allowed time.\n *\n * @example\n * import { maxTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = 8640000000000001 <= maxTime;\n * //=> false\n *\n * new Date(8640000000000001);\n * //=> Invalid Date\n */\nexport const maxTime = Math.pow(10, 8) * 24 * 60 * 60 * 1000;\n\n/**\n * @constant\n * @name minTime\n * @summary Minimum allowed time.\n *\n * @example\n * import { minTime } from \"./constants/date-fns/constants\";\n *\n * const isValid = -8640000000000001 >= minTime;\n * //=> false\n *\n * new Date(-8640000000000001)\n * //=> Invalid Date\n */\nexport const minTime = -maxTime;\n\n/**\n * @constant\n * @name millisecondsInWeek\n * @summary Milliseconds in 1 week.\n */\nexport const millisecondsInWeek = 604800000;\n\n/**\n * @constant\n * @name millisecondsInDay\n * @summary Milliseconds in 1 day.\n */\nexport const millisecondsInDay = 86400000;\n\n/**\n * @constant\n * @name millisecondsInMinute\n * @summary Milliseconds in 1 minute\n */\nexport const millisecondsInMinute = 60000;\n\n/**\n * @constant\n * @name millisecondsInHour\n * @summary Milliseconds in 1 hour\n */\nexport const millisecondsInHour = 3600000;\n\n/**\n * @constant\n * @name millisecondsInSecond\n * @summary Milliseconds in 1 second\n */\nexport const millisecondsInSecond = 1000;\n\n/**\n * @constant\n * @name minutesInYear\n * @summary Minutes in 1 year.\n */\nexport const minutesInYear = 525600;\n\n/**\n * @constant\n * @name minutesInMonth\n * @summary Minutes in 1 month.\n */\nexport const minutesInMonth = 43200;\n\n/**\n * @constant\n * @name minutesInDay\n * @summary Minutes in 1 day.\n */\nexport const minutesInDay = 1440;\n\n/**\n * @constant\n * @name minutesInHour\n * @summary Minutes in 1 hour.\n */\nexport const minutesInHour = 60;\n\n/**\n * @constant\n * @name monthsInQuarter\n * @summary Months in 1 quarter.\n */\nexport const monthsInQuarter = 3;\n\n/**\n * @constant\n * @name monthsInYear\n * @summary Months in 1 year.\n */\nexport const monthsInYear = 12;\n\n/**\n * @constant\n * @name quartersInYear\n * @summary Quarters in 1 year\n */\nexport const quartersInYear = 4;\n\n/**\n * @constant\n * @name secondsInHour\n * @summary Seconds in 1 hour.\n */\nexport const secondsInHour = 3600;\n\n/**\n * @constant\n * @name secondsInMinute\n * @summary Seconds in 1 minute.\n */\nexport const secondsInMinute = 60;\n\n/**\n * @constant\n * @name secondsInDay\n * @summary Seconds in 1 day.\n */\nexport const secondsInDay = secondsInHour * 24;\n\n/**\n * @constant\n * @name secondsInWeek\n * @summary Seconds in 1 week.\n */\nexport const secondsInWeek = secondsInDay * 7;\n\n/**\n * @constant\n * @name secondsInYear\n * @summary Seconds in 1 year.\n */\nexport const secondsInYear = secondsInDay * daysInYear;\n\n/**\n * @constant\n * @name secondsInMonth\n * @summary Seconds in 1 month\n */\nexport const secondsInMonth = secondsInYear / 12;\n\n/**\n * @constant\n * @name secondsInQuarter\n * @summary Seconds in 1 quarter.\n */\nexport const secondsInQuarter = secondsInMonth * 3;\n\n/**\n * @constant\n * @name constructFromSymbol\n * @summary Symbol enabling Date extensions to inherit properties from the reference date.\n *\n * The symbol is used to enable the `constructFrom` function to construct a date\n * using a reference date and a value. It allows to transfer extra properties\n * from the reference date to the new date. It's useful for extensions like\n * [`TZDate`](https://github.com/date-fns/tz) that accept a time zone as\n * a constructor argument.\n */\nexport const constructFromSymbol = Symbol.for(\"constructDateFrom\");\n","import { constructFromSymbol } from \"./constants.js\";\n\n/**\n * @name constructFrom\n * @category Generic Helpers\n * @summary Constructs a date using the reference date and the value\n *\n * @description\n * The function constructs a new date using the constructor from the reference\n * date and the given value. It helps to build generic functions that accept\n * date extensions.\n *\n * It defaults to `Date` if the passed reference date is a number or a string.\n *\n * Starting from v3.7.0, it allows to construct a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n *\n * @param date - The reference date to take constructor from\n * @param value - The value to create the date\n *\n * @returns Date initialized using the given date and value\n *\n * @example\n * import { constructFrom } from \"./constructFrom/date-fns\";\n *\n * // A function that clones a date preserving the original type\n * function cloneDate<DateType extends Date>(date: DateType): DateType {\n * return constructFrom(\n * date, // Use constructor from the given date\n * date.getTime() // Use the date value to create a new date\n * );\n * }\n */\nexport function constructFrom(date, value) {\n if (typeof date === \"function\") return date(value);\n\n if (date && typeof date === \"object\" && constructFromSymbol in date)\n return date[constructFromSymbol](value);\n\n if (date instanceof Date) return new date.constructor(value);\n\n return new Date(value);\n}\n\n// Fallback for modularized imports:\nexport default constructFrom;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name toDate\n * @category Common Helpers\n * @summary Convert the given argument to an instance of Date.\n *\n * @description\n * Convert the given argument to an instance of Date.\n *\n * If the argument is an instance of Date, the function returns its clone.\n *\n * If the argument is a number, it is treated as a timestamp.\n *\n * If the argument is none of the above, the function returns Invalid Date.\n *\n * Starting from v3.7.0, it clones a date using `[Symbol.for(\"constructDateFrom\")]`\n * enabling to transfer extra properties from the reference date to the new date.\n * It's useful for extensions like [`TZDate`](https://github.com/date-fns/tz)\n * that accept a time zone as a constructor argument.\n *\n * **Note**: *all* Date arguments passed to any *date-fns* function is processed by `toDate`.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param argument - The value to convert\n *\n * @returns The parsed date in the local time zone\n *\n * @example\n * // Clone the date:\n * const result = toDate(new Date(2014, 1, 11, 11, 30, 30))\n * //=> Tue Feb 11 2014 11:30:30\n *\n * @example\n * // Convert the timestamp to date:\n * const result = toDate(1392098430000)\n * //=> Tue Feb 11 2014 11:30:30\n */\nexport function toDate(argument, context) {\n // [TODO] Get rid of `toDate` or `constructFrom`?\n return constructFrom(context || argument, argument);\n}\n\n// Fallback for modularized imports:\nexport default toDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addDays} function options.\n */\n\n/**\n * @name addDays\n * @category Day Helpers\n * @summary Add the specified number of days to the given date.\n *\n * @description\n * Add the specified number of days to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of days to be added.\n * @param options - An object with options\n *\n * @returns The new date with the days added\n *\n * @example\n * // Add 10 days to 1 September 2014:\n * const result = addDays(new Date(2014, 8, 1), 10)\n * //=> Thu Sep 11 2014 00:00:00\n */\nexport function addDays(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n\n // If 0 days, no-op to avoid changing times in the hour before end of DST\n if (!amount) return _date;\n\n _date.setDate(_date.getDate() + amount);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addDays;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMilliseconds} function options.\n */\n\n/**\n * @name addMilliseconds\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of milliseconds to be added.\n * @param options - The options object\n *\n * @returns The new date with the milliseconds added\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * const result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nexport function addMilliseconds(date, amount, options) {\n return constructFrom(options?.in || date, +toDate(date) + amount);\n}\n\n// Fallback for modularized imports:\nexport default addMilliseconds;\n","import { addMilliseconds } from \"./addMilliseconds.js\";\n\n/**\n * The {@link addSeconds} function options.\n */\n\n/**\n * @name addSeconds\n * @category Second Helpers\n * @summary Add the specified number of seconds to the given date.\n *\n * @description\n * Add the specified number of seconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of seconds to be added.\n * @param options - An object with options\n *\n * @returns The new date with the seconds added\n *\n * @example\n * // Add 30 seconds to 10 July 2014 12:45:00:\n * const result = addSeconds(new Date(2014, 6, 10, 12, 45, 0), 30)\n * //=> Thu Jul 10 2014 12:45:30\n */\nexport function addSeconds(date, amount, options) {\n return addMilliseconds(date, amount * 1000, options);\n}\n\n// Fallback for modularized imports:\nexport default addSeconds;\n","import { millisecondsInMinute } from \"./constants.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMinutes} function options.\n */\n\n/**\n * @name addMinutes\n * @category Minute Helpers\n * @summary Add the specified number of minutes to the given date.\n *\n * @description\n * Add the specified number of minutes to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of minutes to be added.\n * @param options - An object with options\n *\n * @returns The new date with the minutes added\n *\n * @example\n * // Add 30 minutes to 10 July 2014 12:00:00:\n * const result = addMinutes(new Date(2014, 6, 10, 12, 0), 30)\n * //=> Thu Jul 10 2014 12:30:00\n */\nexport function addMinutes(date, amount, options) {\n const _date = toDate(date, options?.in);\n _date.setTime(_date.getTime() + amount * millisecondsInMinute);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default addMinutes;\n","import { addMilliseconds } from \"./addMilliseconds.js\";\nimport { millisecondsInHour } from \"./constants.js\";\n\n/**\n * The {@link addHours} function options.\n */\n\n/**\n * @name addHours\n * @category Hour Helpers\n * @summary Add the specified number of hours to the given date.\n *\n * @description\n * Add the specified number of hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of hours to be added\n * @param options - An object with options\n *\n * @returns The new date with the hours added\n *\n * @example\n * // Add 2 hours to 10 July 2014 23:00:00:\n * const result = addHours(new Date(2014, 6, 10, 23, 0), 2)\n * //=> Fri Jul 11 2014 01:00:00\n */\nexport function addHours(date, amount, options) {\n return addMilliseconds(date, amount * millisecondsInHour, options);\n}\n\n// Fallback for modularized imports:\nexport default addHours;\n","import { addDays } from \"./addDays.js\";\n\n/**\n * The {@link addWeeks} function options.\n */\n\n/**\n * @name addWeeks\n * @category Week Helpers\n * @summary Add the specified number of weeks to the given date.\n *\n * @description\n * Add the specified number of weeks to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of weeks to be added.\n * @param options - An object with options\n *\n * @returns The new date with the weeks added\n *\n * @example\n * // Add 4 weeks to 1 September 2014:\n * const result = addWeeks(new Date(2014, 8, 1), 4)\n * //=> Mon Sep 29 2014 00:00:00\n */\nexport function addWeeks(date, amount, options) {\n return addDays(date, amount * 7, options);\n}\n\n// Fallback for modularized imports:\nexport default addWeeks;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link addMonths} function options.\n */\n\n/**\n * @name addMonths\n * @category Month Helpers\n * @summary Add the specified number of months to the given date.\n *\n * @description\n * Add the specified number of months to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param amount - The amount of months to be added.\n * @param options - The options object\n *\n * @returns The new date with the months added\n *\n * @example\n * // Add 5 months to 1 September 2014:\n * const result = addMonths(new Date(2014, 8, 1), 5)\n * //=> Sun Feb 01 2015 00:00:00\n *\n * // Add one month to 30 January 2023:\n * const result = addMonths(new Date(2023, 0, 30), 1)\n * //=> Tue Feb 28 2023 00:00:00\n */\nexport function addMonths(date, amount, options) {\n const _date = toDate(date, options?.in);\n if (isNaN(amount)) return constructFrom(options?.in || date, NaN);\n if (!amount) {\n // If 0 months, no-op to avoid changing times in the hour before end of DST\n return _date;\n }\n const dayOfMonth = _date.getDate();\n\n // The JS Date object supports date math by accepting out-of-bounds values for\n // month, day, etc. For example, new Date(2020, 0, 0) returns 31 Dec 2019 and\n // new Date(2020, 13, 1) returns 1 Feb 2021. This is *almost* the behavior we\n // want except that dates will wrap around the end of a month, meaning that\n // new Date(2020, 13, 31) will return 3 Mar 2021 not 28 Feb 2021 as desired. So\n // we'll default to the end of the desired month by adding 1 to the desired\n // month and using a date of 0 to back up one day to the end of the desired\n // month.\n const endOfDesiredMonth = constructFrom(options?.in || date, _date.getTime());\n endOfDesiredMonth.setMonth(_date.getMonth() + amount + 1, 0);\n const daysInMonth = endOfDesiredMonth.getDate();\n if (dayOfMonth >= daysInMonth) {\n // If we're already at the end of the month, then this is the correct date\n // and we're done.\n return endOfDesiredMonth;\n } else {\n // Otherwise, we now know that setting the original day-of-month value won't\n // cause an overflow, so set the desired day-of-month. Note that we can't\n // just set the date of `endOfDesiredMonth` because that object may have had\n // its time changed in the unusual case where where a DST transition was on\n // the last day of the month and its local time was in the hour skipped or\n // repeated next to a DST transition. So we use `date` instead which is\n // guaranteed to still have the original time.\n _date.setFullYear(\n endOfDesiredMonth.getFullYear(),\n endOfDesiredMonth.getMonth(),\n dayOfMonth,\n );\n return _date;\n }\n}\n\n// Fallback for modularized imports:\nexport default addMonths;\n","import { addMonths } from \"./addMonths.js\";\n\n/**\n * The {@link addYears} function options.\n */\n\n/**\n * @name addYears\n * @category Year Helpers\n * @summary Add the specified number of years to the given date.\n *\n * @description\n * Add the specified number of years to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The date to be changed\n * @param amount - The amount of years to be added.\n * @param options - The options\n *\n * @returns The new date with the years added\n *\n * @example\n * // Add 5 years to 1 September 2014:\n * const result = addYears(new Date(2014, 8, 1), 5)\n * //=> Sun Sep 01 2019 00:00:00\n */\nexport function addYears(date, amount, options) {\n return addMonths(date, amount * 12, options);\n}\n\n// Fallback for modularized imports:\nexport default addYears;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfDay} function options.\n */\n\n/**\n * @name endOfDay\n * @category Day Helpers\n * @summary Return the end of a day for the given date.\n *\n * @description\n * Return the end of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a day\n *\n * @example\n * // The end of a day for 2 September 2014 11:55:00:\n * const result = endOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 23:59:59.999\n */\nexport function endOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfDay;\n","let defaultOptions = {};\n\nexport function getDefaultOptions() {\n return defaultOptions;\n}\n\nexport function setDefaultOptions(newOptions) {\n defaultOptions = newOptions;\n}\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfWeek} function options.\n */\n\n/**\n * @name endOfWeek\n * @category Week Helpers\n * @summary Return the end of a week for the given date.\n *\n * @description\n * Return the end of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a week\n *\n * @example\n * // The end of a week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sat Sep 06 2014 23:59:59.999\n *\n * @example\n * // If the week starts on Monday, the end of the week for 2 September 2014 11:55:00:\n * const result = endOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 23:59:59.999\n */\nexport function endOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);\n\n _date.setDate(_date.getDate() + diff);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfWeek;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfYear} function options.\n */\n\n/**\n * @name endOfYear\n * @category Year Helpers\n * @summary Return the end of a year for the given date.\n *\n * @description\n * Return the end of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The end of a year\n *\n * @example\n * // The end of a year for 2 September 2014 11:55:00:\n * const result = endOfYear(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Wed Dec 31 2014 23:59:59.999\n */\nexport function endOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n _date.setFullYear(year + 1, 0, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfYear;\n","const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n","export function buildFormatLongFn(args) {\n return (options = {}) => {\n // TODO: Remove String()\n const width = options.width ? String(options.width) : args.defaultWidth;\n const format = args.formats[width] || args.formats[args.defaultWidth];\n return format;\n };\n}\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n","/**\n * The localize function argument callback which allows to convert raw value to\n * the actual type.\n *\n * @param value - The value to convert\n *\n * @returns The converted value\n */\n\n/**\n * The map of localized values for each width.\n */\n\n/**\n * The index type of the locale unit value. It types conversion of units of\n * values that don't start at 0 (i.e. quarters).\n */\n\n/**\n * Converts the unit value to the tuple of values.\n */\n\n/**\n * The tuple of localized era values. The first element represents BC,\n * the second element represents AD.\n */\n\n/**\n * The tuple of localized quarter values. The first element represents Q1.\n */\n\n/**\n * The tuple of localized day values. The first element represents Sunday.\n */\n\n/**\n * The tuple of localized month values. The first element represents January.\n */\n\nexport function buildLocalizeFn(args) {\n return (value, options) => {\n const context = options?.context ? String(options.context) : \"standalone\";\n\n let valuesArray;\n if (context === \"formatting\" && args.formattingValues) {\n const defaultWidth = args.defaultFormattingWidth || args.defaultWidth;\n const width = options?.width ? String(options.width) : defaultWidth;\n\n valuesArray =\n args.formattingValues[width] || args.formattingValues[defaultWidth];\n } else {\n const defaultWidth = args.defaultWidth;\n const width = options?.width ? String(options.width) : args.defaultWidth;\n\n valuesArray = args.values[width] || args.values[defaultWidth];\n }\n const index = args.argumentCallback ? args.argumentCallback(value) : value;\n\n // @ts-expect-error - For some reason TypeScript just don't want to match it, no matter how hard we try. I challenge you to try to remove it!\n return valuesArray[index];\n };\n}\n","import { buildLocalizeFn } from \"../../_lib/buildLocalizeFn.js\";\n\nconst eraValues = {\n narrow: [\"B\", \"A\"],\n abbreviated: [\"BC\", \"AD\"],\n wide: [\"Before Christ\", \"Anno Domini\"],\n};\n\nconst quarterValues = {\n narrow: [\"1\", \"2\", \"3\", \"4\"],\n abbreviated: [\"Q1\", \"Q2\", \"Q3\", \"Q4\"],\n wide: [\"1st quarter\", \"2nd quarter\", \"3rd quarter\", \"4th quarter\"],\n};\n\n// Note: in English, the names of days of the week and months are capitalized.\n// If you are making a new locale based on this one, check if the same is true for the language you're working on.\n// Generally, formatted dates should look like they are in the middle of a sentence,\n// e.g. in Spanish language the weekdays and months should be in the lowercase.\nconst monthValues = {\n narrow: [\"J\", \"F\", \"M\", \"A\", \"M\", \"J\", \"J\", \"A\", \"S\", \"O\", \"N\", \"D\"],\n abbreviated: [\n \"Jan\",\n \"Feb\",\n \"Mar\",\n \"Apr\",\n \"May\",\n \"Jun\",\n \"Jul\",\n \"Aug\",\n \"Sep\",\n \"Oct\",\n \"Nov\",\n \"Dec\",\n ],\n\n wide: [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\",\n ],\n};\n\nconst dayValues = {\n narrow: [\"S\", \"M\", \"T\", \"W\", \"T\", \"F\", \"S\"],\n short: [\"Su\", \"Mo\", \"Tu\", \"We\", \"Th\", \"Fr\", \"Sa\"],\n abbreviated: [\"Sun\", \"Mon\", \"Tue\", \"Wed\", \"Thu\", \"Fri\", \"Sat\"],\n wide: [\n \"Sunday\",\n \"Monday\",\n \"Tuesday\",\n \"Wednesday\",\n \"Thursday\",\n \"Friday\",\n \"Saturday\",\n ],\n};\n\nconst dayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n },\n};\n\nconst formattingDayPeriodValues = {\n narrow: {\n am: \"a\",\n pm: \"p\",\n midnight: \"mi\",\n noon: \"n\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n abbreviated: {\n am: \"AM\",\n pm: \"PM\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n wide: {\n am: \"a.m.\",\n pm: \"p.m.\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"in the morning\",\n afternoon: \"in the afternoon\",\n evening: \"in the evening\",\n night: \"at night\",\n },\n};\n\nconst ordinalNumber = (dirtyNumber, _options) => {\n const number = Number(dirtyNumber);\n\n // If ordinal numbers depend on context, for example,\n // if they are different for different grammatical genders,\n // use `options.unit`.\n //\n // `unit` can be 'year', 'quarter', 'month', 'week', 'date', 'dayOfYear',\n // 'day', 'hour', 'minute', 'second'.\n\n const rem100 = number % 100;\n if (rem100 > 20 || rem100 < 10) {\n switch (rem100 % 10) {\n case 1:\n return number + \"st\";\n case 2:\n return number + \"nd\";\n case 3:\n return number + \"rd\";\n }\n }\n return number + \"th\";\n};\n\nexport const localize = {\n ordinalNumber,\n\n era: buildLocalizeFn({\n values: eraValues,\n defaultWidth: \"wide\",\n }),\n\n quarter: buildLocalizeFn({\n values: quarterValues,\n defaultWidth: \"wide\",\n argumentCallback: (quarter) => quarter - 1,\n }),\n\n month: buildLocalizeFn({\n values: monthValues,\n defaultWidth: \"wide\",\n }),\n\n day: buildLocalizeFn({\n values: dayValues,\n defaultWidth: \"wide\",\n }),\n\n dayPeriod: buildLocalizeFn({\n values: dayPeriodValues,\n defaultWidth: \"wide\",\n formattingValues: formattingDayPeriodValues,\n defaultFormattingWidth: \"wide\",\n }),\n};\n","export function buildMatchFn(args) {\n return (string, options = {}) => {\n const width = options.width;\n\n const matchPattern =\n (width && args.matchPatterns[width]) ||\n args.matchPatterns[args.defaultMatchWidth];\n const matchResult = string.match(matchPattern);\n\n if (!matchResult) {\n return null;\n }\n const matchedString = matchResult[0];\n\n const parsePatterns =\n (width && args.parsePatterns[width]) ||\n args.parsePatterns[args.defaultParseWidth];\n\n const key = Array.isArray(parsePatterns)\n ? findIndex(parsePatterns, (pattern) => pattern.test(matchedString))\n : // [TODO] -- I challenge you to fix the type\n findKey(parsePatterns, (pattern) => pattern.test(matchedString));\n\n let value;\n\n value = args.valueCallback ? args.valueCallback(key) : key;\n value = options.valueCallback\n ? // [TODO] -- I challenge you to fix the type\n options.valueCallback(value)\n : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n\nfunction findKey(object, predicate) {\n for (const key in object) {\n if (\n Object.prototype.hasOwnProperty.call(object, key) &&\n predicate(object[key])\n ) {\n return key;\n }\n }\n return undefined;\n}\n\nfunction findIndex(array, predicate) {\n for (let key = 0; key < array.length; key++) {\n if (predicate(array[key])) {\n return key;\n }\n }\n return undefined;\n}\n","export function buildMatchPatternFn(args) {\n return (string, options = {}) => {\n const matchResult = string.match(args.matchPattern);\n if (!matchResult) return null;\n const matchedString = matchResult[0];\n\n const parseResult = string.match(args.parsePattern);\n if (!parseResult) return null;\n let value = args.valueCallback\n ? args.valueCallback(parseResult[0])\n : parseResult[0];\n\n // [TODO] I challenge you to fix the type\n value = options.valueCallback ? options.valueCallback(value) : value;\n\n const rest = string.slice(matchedString.length);\n\n return { value, rest };\n };\n}\n","import { buildMatchFn } from \"../../_lib/buildMatchFn.js\";\nimport { buildMatchPatternFn } from \"../../_lib/buildMatchPatternFn.js\";\n\nconst matchOrdinalNumberPattern = /^(\\d+)(th|st|nd|rd)?/i;\nconst parseOrdinalNumberPattern = /\\d+/i;\n\nconst matchEraPatterns = {\n narrow: /^(b|a)/i,\n abbreviated: /^(b\\.?\\s?c\\.?|b\\.?\\s?c\\.?\\s?e\\.?|a\\.?\\s?d\\.?|c\\.?\\s?e\\.?)/i,\n wide: /^(before christ|before common era|anno domini|common era)/i,\n};\nconst parseEraPatterns = {\n any: [/^b/i, /^(a|c)/i],\n};\n\nconst matchQuarterPatterns = {\n narrow: /^[1234]/i,\n abbreviated: /^q[1234]/i,\n wide: /^[1234](th|st|nd|rd)? quarter/i,\n};\nconst parseQuarterPatterns = {\n any: [/1/i, /2/i, /3/i, /4/i],\n};\n\nconst matchMonthPatterns = {\n narrow: /^[jfmasond]/i,\n abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,\n wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i,\n};\nconst parseMonthPatterns = {\n narrow: [\n /^j/i,\n /^f/i,\n /^m/i,\n /^a/i,\n /^m/i,\n /^j/i,\n /^j/i,\n /^a/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n\n any: [\n /^ja/i,\n /^f/i,\n /^mar/i,\n /^ap/i,\n /^may/i,\n /^jun/i,\n /^jul/i,\n /^au/i,\n /^s/i,\n /^o/i,\n /^n/i,\n /^d/i,\n ],\n};\n\nconst matchDayPatterns = {\n narrow: /^[smtwf]/i,\n short: /^(su|mo|tu|we|th|fr|sa)/i,\n abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,\n wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i,\n};\nconst parseDayPatterns = {\n narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],\n any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i],\n};\n\nconst matchDayPeriodPatterns = {\n narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,\n any: /^([ap]\\.?\\s?m\\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i,\n};\nconst parseDayPeriodPatterns = {\n any: {\n am: /^a/i,\n pm: /^p/i,\n midnight: /^mi/i,\n noon: /^no/i,\n morning: /morning/i,\n afternoon: /afternoon/i,\n evening: /evening/i,\n night: /night/i,\n },\n};\n\nexport const match = {\n ordinalNumber: buildMatchPatternFn({\n matchPattern: matchOrdinalNumberPattern,\n parsePattern: parseOrdinalNumberPattern,\n valueCallback: (value) => parseInt(value, 10),\n }),\n\n era: buildMatchFn({\n matchPatterns: matchEraPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseEraPatterns,\n defaultParseWidth: \"any\",\n }),\n\n quarter: buildMatchFn({\n matchPatterns: matchQuarterPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseQuarterPatterns,\n defaultParseWidth: \"any\",\n valueCallback: (index) => index + 1,\n }),\n\n month: buildMatchFn({\n matchPatterns: matchMonthPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseMonthPatterns,\n defaultParseWidth: \"any\",\n }),\n\n day: buildMatchFn({\n matchPatterns: matchDayPatterns,\n defaultMatchWidth: \"wide\",\n parsePatterns: parseDayPatterns,\n defaultParseWidth: \"any\",\n }),\n\n dayPeriod: buildMatchFn({\n matchPatterns: matchDayPeriodPatterns,\n defaultMatchWidth: \"any\",\n parsePatterns: parseDayPeriodPatterns,\n defaultParseWidth: \"any\",\n }),\n};\n","import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-US/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (United States).\n * @language English\n * @iso-639-2 eng\n * @author Sasha Koss [@kossnocorp](https://github.com/kossnocorp)\n * @author Lesha Koss [@leshakoss](https://github.com/leshakoss)\n */\nexport const enUS = {\n code: \"en-US\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 0 /* Sunday */,\n firstWeekContainsDate: 1,\n },\n};\n\n// Fallback for modularized imports:\nexport default enUS;\n","import { toDate } from \"../toDate.js\";\n\n/**\n * Google Chrome as of 67.0.3396.87 introduced timezones with offset that includes seconds.\n * They usually appear for dates that denote time before the timezones were introduced\n * (e.g. for 'Europe/Prague' timezone the offset is GMT+00:57:44 before 1 October 1891\n * and GMT+01:00:00 after that date)\n *\n * Date#getTimezoneOffset returns the offset in minutes and would return 57 for the example above,\n * which would lead to incorrect calculations.\n *\n * This function returns the timezone offset in milliseconds that takes seconds in account.\n */\nexport function getTimezoneOffsetInMilliseconds(date) {\n const _date = toDate(date);\n const utcDate = new Date(\n Date.UTC(\n _date.getFullYear(),\n _date.getMonth(),\n _date.getDate(),\n _date.getHours(),\n _date.getMinutes(),\n _date.getSeconds(),\n _date.getMilliseconds(),\n ),\n );\n utcDate.setUTCFullYear(_date.getFullYear());\n return +date - +utcDate;\n}\n","import { constructFrom } from \"../constructFrom.js\";\n\nexport function normalizeDates(context, ...dates) {\n const normalize = constructFrom.bind(\n null,\n context || dates.find((date) => typeof date === \"object\"),\n );\n return dates.map(normalize);\n}\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfDay} function options.\n */\n\n/**\n * @name startOfDay\n * @category Day Helpers\n * @summary Return the start of a day for the given date.\n *\n * @description\n * Return the start of a day for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a day\n *\n * @example\n * // The start of a day for 2 September 2014 11:55:00:\n * const result = startOfDay(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 02 2014 00:00:00\n */\nexport function startOfDay(date, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfDay;\n","import { getTimezoneOffsetInMilliseconds } from \"./_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { millisecondsInDay } from \"./constants.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link differenceInCalendarDays} function options.\n */\n\n/**\n * @name differenceInCalendarDays\n * @category Day Helpers\n * @summary Get the number of calendar days between the given dates.\n *\n * @description\n * Get the number of calendar days between the given dates. This means that the times are removed\n * from the dates and then the difference in days is calculated.\n *\n * @param laterDate - The later date\n * @param earlierDate - The earlier date\n * @param options - The options object\n *\n * @returns The number of calendar days\n *\n * @example\n * // How many calendar days are between\n * // 2 July 2011 23:00:00 and 2 July 2012 00:00:00?\n * const result = differenceInCalendarDays(\n * new Date(2012, 6, 2, 0, 0),\n * new Date(2011, 6, 2, 23, 0)\n * )\n * //=> 366\n * // How many calendar days are between\n * // 2 July 2011 23:59:00 and 3 July 2011 00:01:00?\n * const result = differenceInCalendarDays(\n * new Date(2011, 6, 3, 0, 1),\n * new Date(2011, 6, 2, 23, 59)\n * )\n * //=> 1\n */\nexport function differenceInCalendarDays(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n\n const laterStartOfDay = startOfDay(laterDate_);\n const earlierStartOfDay = startOfDay(earlierDate_);\n\n const laterTimestamp =\n +laterStartOfDay - getTimezoneOffsetInMilliseconds(laterStartOfDay);\n const earlierTimestamp =\n +earlierStartOfDay - getTimezoneOffsetInMilliseconds(earlierStartOfDay);\n\n // Round the number of days to the nearest integer because the number of\n // milliseconds in a day is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round((laterTimestamp - earlierTimestamp) / millisecondsInDay);\n}\n\n// Fallback for modularized imports:\nexport default differenceInCalendarDays;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfYear} function options.\n */\n\n/**\n * @name startOfYear\n * @category Year Helpers\n * @summary Return the start of a year for the given date.\n *\n * @description\n * Return the start of a year for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - The options\n *\n * @returns The start of a year\n *\n * @example\n * // The start of a year for 2 September 2014 11:55:00:\n * const result = startOfYear(new Date(2014, 8, 2, 11, 55, 00))\n * //=> Wed Jan 01 2014 00:00:00\n */\nexport function startOfYear(date, options) {\n const date_ = toDate(date, options?.in);\n date_.setFullYear(date_.getFullYear(), 0, 1);\n date_.setHours(0, 0, 0, 0);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default startOfYear;\n","import { differenceInCalendarDays } from \"./differenceInCalendarDays.js\";\nimport { startOfYear } from \"./startOfYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDayOfYear} function options.\n */\n\n/**\n * @name getDayOfYear\n * @category Day Helpers\n * @summary Get the day of the year of the given date.\n *\n * @description\n * Get the day of the year of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The day of year\n *\n * @example\n * // Which day of the year is 2 July 2014?\n * const result = getDayOfYear(new Date(2014, 6, 2))\n * //=> 183\n */\nexport function getDayOfYear(date, options) {\n const _date = toDate(date, options?.in);\n const diff = differenceInCalendarDays(_date, startOfYear(_date));\n const dayOfYear = diff + 1;\n return dayOfYear;\n}\n\n// Fallback for modularized imports:\nexport default getDayOfYear;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfWeek} function options.\n */\n\n/**\n * @name startOfWeek\n * @category Week Helpers\n * @summary Return the start of a week for the given date.\n *\n * @description\n * Return the start of a week for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week\n *\n * @example\n * // The start of a week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // If the week starts on Monday, the start of the week for 2 September 2014 11:55:00:\n * const result = startOfWeek(new Date(2014, 8, 2, 11, 55, 0), { weekStartsOn: 1 })\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfWeek(date, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const _date = toDate(date, options?.in);\n const day = _date.getDay();\n const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;\n\n _date.setDate(_date.getDate() - diff);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeek;\n","import { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfISOWeek} function options.\n */\n\n/**\n * @name startOfISOWeek\n * @category ISO Week Helpers\n * @summary Return the start of an ISO week for the given date.\n *\n * @description\n * Return the start of an ISO week for the given date.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week\n *\n * @example\n * // The start of an ISO week for 2 September 2014 11:55:00:\n * const result = startOfISOWeek(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfISOWeek(date, options) {\n return startOfWeek(date, { ...options, weekStartsOn: 1 });\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeek;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeekYear} function options.\n */\n\n/**\n * @name getISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Get the ISO week-numbering year of the given date.\n *\n * @description\n * Get the ISO week-numbering year of the given date,\n * which always starts 3 days before the year's first Thursday.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n *\n * @returns The ISO week-numbering year\n *\n * @example\n * // Which ISO-week numbering year is 2 January 2005?\n * const result = getISOWeekYear(new Date(2005, 0, 2))\n * //=> 2004\n */\nexport function getISOWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const fourthOfJanuaryOfNextYear = constructFrom(_date, 0);\n fourthOfJanuaryOfNextYear.setFullYear(year + 1, 0, 4);\n fourthOfJanuaryOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfISOWeek(fourthOfJanuaryOfNextYear);\n\n const fourthOfJanuaryOfThisYear = constructFrom(_date, 0);\n fourthOfJanuaryOfThisYear.setFullYear(year, 0, 4);\n fourthOfJanuaryOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfISOWeek(fourthOfJanuaryOfThisYear);\n\n if (_date.getTime() >= startOfNextYear.getTime()) {\n return year + 1;\n } else if (_date.getTime() >= startOfThisYear.getTime()) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getISOWeekYear;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getISOWeekYear } from \"./getISOWeekYear.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\n\n/**\n * The {@link startOfISOWeekYear} function options.\n */\n\n/**\n * @name startOfISOWeekYear\n * @category ISO Week-Numbering Year Helpers\n * @summary Return the start of an ISO week-numbering year for the given date.\n *\n * @description\n * Return the start of an ISO week-numbering year,\n * which always starts 3 days before the year's first Thursday.\n * The result will be in the local timezone.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an ISO week-numbering year\n *\n * @example\n * // The start of an ISO week-numbering year for 2 July 2005:\n * const result = startOfISOWeekYear(new Date(2005, 6, 2))\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfISOWeekYear(date, options) {\n const year = getISOWeekYear(date, options);\n const fourthOfJanuary = constructFrom(options?.in || date, 0);\n fourthOfJanuary.setFullYear(year, 0, 4);\n fourthOfJanuary.setHours(0, 0, 0, 0);\n return startOfISOWeek(fourthOfJanuary);\n}\n\n// Fallback for modularized imports:\nexport default startOfISOWeekYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfISOWeek } from \"./startOfISOWeek.js\";\nimport { startOfISOWeekYear } from \"./startOfISOWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISOWeek} function options.\n */\n\n/**\n * @name getISOWeek\n * @category ISO Week Helpers\n * @summary Get the ISO week of the given date.\n *\n * @description\n * Get the ISO week of the given date.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The ISO week\n *\n * @example\n * // Which week of the ISO-week numbering year is 2 January 2005?\n * const result = getISOWeek(new Date(2005, 0, 2))\n * //=> 53\n */\nexport function getISOWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfISOWeek(_date) - +startOfISOWeekYear(_date);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getISOWeek;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getWeekYear } from \"./getWeekYear.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\n\n/**\n * The {@link startOfWeekYear} function options.\n */\n\n/**\n * @name startOfWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Return the start of a local week-numbering year for the given date.\n *\n * @description\n * Return the start of a local week-numbering year.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a week-numbering year\n *\n * @example\n * // The start of an a week-numbering year for 2 July 2005 with default settings:\n * const result = startOfWeekYear(new Date(2005, 6, 2))\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // The start of a week-numbering year for 2 July 2005\n * // if Monday is the first day of week\n * // and 4 January is always in the first week of the year:\n * const result = startOfWeekYear(new Date(2005, 6, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Mon Jan 03 2005 00:00:00\n */\nexport function startOfWeekYear(date, options) {\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const year = getWeekYear(date, options);\n const firstWeek = constructFrom(options?.in || date, 0);\n firstWeek.setFullYear(year, 0, firstWeekContainsDate);\n firstWeek.setHours(0, 0, 0, 0);\n const _date = startOfWeek(firstWeek, options);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfWeekYear;\n","import { millisecondsInWeek } from \"./constants.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { startOfWeekYear } from \"./startOfWeekYear.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeek} function options.\n */\n\n/**\n * @name getWeek\n * @category Week Helpers\n * @summary Get the local week index of the given date.\n *\n * @description\n * Get the local week index of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The week\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005 with default options?\n * const result = getWeek(new Date(2005, 0, 2))\n * //=> 2\n *\n * @example\n * // Which week of the local week numbering year is 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January?\n * const result = getWeek(new Date(2005, 0, 2), {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> 53\n */\nexport function getWeek(date, options) {\n const _date = toDate(date, options?.in);\n const diff = +startOfWeek(_date, options) - +startOfWeekYear(_date, options);\n\n // Round the number of weeks to the nearest integer because the number of\n // milliseconds in a week is not constant (e.g. it's different in the week of\n // the daylight saving time clock shift).\n return Math.round(diff / millisecondsInWeek) + 1;\n}\n\n// Fallback for modularized imports:\nexport default getWeek;\n","export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n","import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n","import { getDayOfYear } from \"../../getDayOfYear.js\";\nimport { getISOWeek } from \"../../getISOWeek.js\";\nimport { getISOWeekYear } from \"../../getISOWeekYear.js\";\nimport { getWeek } from \"../../getWeek.js\";\nimport { getWeekYear } from \"../../getWeekYear.js\";\n\nimport { addLeadingZeros } from \"../addLeadingZeros.js\";\nimport { lightFormatters } from \"./lightFormatters.js\";\n\nconst dayPeriodEnum = {\n am: \"am\",\n pm: \"pm\",\n midnight: \"midnight\",\n noon: \"noon\",\n morning: \"morning\",\n afternoon: \"afternoon\",\n evening: \"evening\",\n night: \"night\",\n};\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O | Timezone (GMT) |\n * | p! | Long localized time | P! | Long localized date |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `format` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n * - `P` is long localized date format\n * - `p` is long localized time format\n */\n\nexport const formatters = {\n // Era\n G: function (date, token, localize) {\n const era = date.getFullYear() > 0 ? 1 : 0;\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return localize.era(era, { width: \"abbreviated\" });\n // A, B\n case \"GGGGG\":\n return localize.era(era, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return localize.era(era, { width: \"wide\" });\n }\n },\n\n // Year\n y: function (date, token, localize) {\n // Ordinal number\n if (token === \"yo\") {\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return localize.ordinalNumber(year, { unit: \"year\" });\n }\n\n return lightFormatters.y(date, token);\n },\n\n // Local week-numbering year\n Y: function (date, token, localize, options) {\n const signedWeekYear = getWeekYear(date, options);\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const weekYear = signedWeekYear > 0 ? signedWeekYear : 1 - signedWeekYear;\n\n // Two digit year\n if (token === \"YY\") {\n const twoDigitYear = weekYear % 100;\n return addLeadingZeros(twoDigitYear, 2);\n }\n\n // Ordinal number\n if (token === \"Yo\") {\n return localize.ordinalNumber(weekYear, { unit: \"year\" });\n }\n\n // Padding\n return addLeadingZeros(weekYear, token.length);\n },\n\n // ISO week-numbering year\n R: function (date, token) {\n const isoWeekYear = getISOWeekYear(date);\n\n // Padding\n return addLeadingZeros(isoWeekYear, token.length);\n },\n\n // Extended year. This is a single number designating the year of this calendar system.\n // The main difference between `y` and `u` localizers are B.C. years:\n // | Year | `y` | `u` |\n // |------|-----|-----|\n // | AC 1 | 1 | 1 |\n // | BC 1 | 1 | 0 |\n // | BC 2 | 2 | -1 |\n // Also `yy` always returns the last two digits of a year,\n // while `uu` pads single digit years to 2 characters and returns other years unchanged.\n u: function (date, token) {\n const year = date.getFullYear();\n return addLeadingZeros(year, token.length);\n },\n\n // Quarter\n Q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"QQ\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone quarter\n q: function (date, token, localize) {\n const quarter = Math.ceil((date.getMonth() + 1) / 3);\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n return String(quarter);\n // 01, 02, 03, 04\n case \"qq\":\n return addLeadingZeros(quarter, 2);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return localize.ordinalNumber(quarter, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return localize.quarter(quarter, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return localize.quarter(quarter, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return localize.quarter(quarter, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // Month\n M: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n case \"M\":\n case \"MM\":\n return lightFormatters.M(date, token);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // J, F, ..., D\n case \"MMMMM\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return localize.month(month, { width: \"wide\", context: \"formatting\" });\n }\n },\n\n // Stand-alone month\n L: function (date, token, localize) {\n const month = date.getMonth();\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return String(month + 1);\n // 01, 02, ..., 12\n case \"LL\":\n return addLeadingZeros(month + 1, 2);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return localize.ordinalNumber(month + 1, { unit: \"month\" });\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return localize.month(month, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // J, F, ..., D\n case \"LLLLL\":\n return localize.month(month, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return localize.month(month, { width: \"wide\", context: \"standalone\" });\n }\n },\n\n // Local week of year\n w: function (date, token, localize, options) {\n const week = getWeek(date, options);\n\n if (token === \"wo\") {\n return localize.ordinalNumber(week, { unit: \"week\" });\n }\n\n return addLeadingZeros(week, token.length);\n },\n\n // ISO week of year\n I: function (date, token, localize) {\n const isoWeek = getISOWeek(date);\n\n if (token === \"Io\") {\n return localize.ordinalNumber(isoWeek, { unit: \"week\" });\n }\n\n return addLeadingZeros(isoWeek, token.length);\n },\n\n // Day of the month\n d: function (date, token, localize) {\n if (token === \"do\") {\n return localize.ordinalNumber(date.getDate(), { unit: \"date\" });\n }\n\n return lightFormatters.d(date, token);\n },\n\n // Day of year\n D: function (date, token, localize) {\n const dayOfYear = getDayOfYear(date);\n\n if (token === \"Do\") {\n return localize.ordinalNumber(dayOfYear, { unit: \"dayOfYear\" });\n }\n\n return addLeadingZeros(dayOfYear, token.length);\n },\n\n // Day of week\n E: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"EEEEE\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"EEEE\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Local day of week\n e: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (Nth day of week with current locale or weekStartsOn)\n case \"e\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"ee\":\n return addLeadingZeros(localDayOfWeek, 2);\n // 1st, 2nd, ..., 7th\n case \"eo\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"eee\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"eeeee\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"eeee\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Stand-alone local day of week\n c: function (date, token, localize, options) {\n const dayOfWeek = date.getDay();\n const localDayOfWeek = (dayOfWeek - options.weekStartsOn + 8) % 7 || 7;\n switch (token) {\n // Numerical value (same as in `e`)\n case \"c\":\n return String(localDayOfWeek);\n // Padded numerical value\n case \"cc\":\n return addLeadingZeros(localDayOfWeek, token.length);\n // 1st, 2nd, ..., 7th\n case \"co\":\n return localize.ordinalNumber(localDayOfWeek, { unit: \"day\" });\n case \"ccc\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"standalone\",\n });\n // T\n case \"ccccc\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"standalone\",\n });\n // Tuesday\n case \"cccc\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"standalone\",\n });\n }\n },\n\n // ISO day of week\n i: function (date, token, localize) {\n const dayOfWeek = date.getDay();\n const isoDayOfWeek = dayOfWeek === 0 ? 7 : dayOfWeek;\n switch (token) {\n // 2\n case \"i\":\n return String(isoDayOfWeek);\n // 02\n case \"ii\":\n return addLeadingZeros(isoDayOfWeek, token.length);\n // 2nd\n case \"io\":\n return localize.ordinalNumber(isoDayOfWeek, { unit: \"day\" });\n // Tue\n case \"iii\":\n return localize.day(dayOfWeek, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n // T\n case \"iiiii\":\n return localize.day(dayOfWeek, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"iiiiii\":\n return localize.day(dayOfWeek, {\n width: \"short\",\n context: \"formatting\",\n });\n // Tuesday\n case \"iiii\":\n default:\n return localize.day(dayOfWeek, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM or PM\n a: function (date, token, localize) {\n const hours = date.getHours();\n const dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"aaa\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"aaaaa\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // AM, PM, midnight, noon\n b: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours === 12) {\n dayPeriodEnumValue = dayPeriodEnum.noon;\n } else if (hours === 0) {\n dayPeriodEnumValue = dayPeriodEnum.midnight;\n } else {\n dayPeriodEnumValue = hours / 12 >= 1 ? \"pm\" : \"am\";\n }\n\n switch (token) {\n case \"b\":\n case \"bb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"bbb\":\n return localize\n .dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n })\n .toLowerCase();\n case \"bbbbb\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // in the morning, in the afternoon, in the evening, at night\n B: function (date, token, localize) {\n const hours = date.getHours();\n let dayPeriodEnumValue;\n if (hours >= 17) {\n dayPeriodEnumValue = dayPeriodEnum.evening;\n } else if (hours >= 12) {\n dayPeriodEnumValue = dayPeriodEnum.afternoon;\n } else if (hours >= 4) {\n dayPeriodEnumValue = dayPeriodEnum.morning;\n } else {\n dayPeriodEnumValue = dayPeriodEnum.night;\n }\n\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"abbreviated\",\n context: \"formatting\",\n });\n case \"BBBBB\":\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return localize.dayPeriod(dayPeriodEnumValue, {\n width: \"wide\",\n context: \"formatting\",\n });\n }\n },\n\n // Hour [1-12]\n h: function (date, token, localize) {\n if (token === \"ho\") {\n let hours = date.getHours() % 12;\n if (hours === 0) hours = 12;\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return lightFormatters.h(date, token);\n },\n\n // Hour [0-23]\n H: function (date, token, localize) {\n if (token === \"Ho\") {\n return localize.ordinalNumber(date.getHours(), { unit: \"hour\" });\n }\n\n return lightFormatters.H(date, token);\n },\n\n // Hour [0-11]\n K: function (date, token, localize) {\n const hours = date.getHours() % 12;\n\n if (token === \"Ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Hour [1-24]\n k: function (date, token, localize) {\n let hours = date.getHours();\n if (hours === 0) hours = 24;\n\n if (token === \"ko\") {\n return localize.ordinalNumber(hours, { unit: \"hour\" });\n }\n\n return addLeadingZeros(hours, token.length);\n },\n\n // Minute\n m: function (date, token, localize) {\n if (token === \"mo\") {\n return localize.ordinalNumber(date.getMinutes(), { unit: \"minute\" });\n }\n\n return lightFormatters.m(date, token);\n },\n\n // Second\n s: function (date, token, localize) {\n if (token === \"so\") {\n return localize.ordinalNumber(date.getSeconds(), { unit: \"second\" });\n }\n\n return lightFormatters.s(date, token);\n },\n\n // Fraction of second\n S: function (date, token) {\n return lightFormatters.S(date, token);\n },\n\n // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)\n X: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n if (timezoneOffset === 0) {\n return \"Z\";\n }\n\n switch (token) {\n // Hours and optional minutes\n case \"X\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XX`\n case \"XXXX\":\n case \"XX\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `XXX`\n case \"XXXXX\":\n case \"XXX\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)\n x: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Hours and optional minutes\n case \"x\":\n return formatTimezoneWithOptionalMinutes(timezoneOffset);\n\n // Hours, minutes and optional seconds without `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xx`\n case \"xxxx\":\n case \"xx\": // Hours and minutes without `:` delimiter\n return formatTimezone(timezoneOffset);\n\n // Hours, minutes and optional seconds with `:` delimiter\n // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets\n // so this token always has the same output as `xxx`\n case \"xxxxx\":\n case \"xxx\": // Hours and minutes with `:` delimiter\n default:\n return formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (GMT)\n O: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"O\":\n case \"OO\":\n case \"OOO\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"OOOO\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Timezone (specific non-location)\n z: function (date, token, _localize) {\n const timezoneOffset = date.getTimezoneOffset();\n\n switch (token) {\n // Short\n case \"z\":\n case \"zz\":\n case \"zzz\":\n return \"GMT\" + formatTimezoneShort(timezoneOffset, \":\");\n // Long\n case \"zzzz\":\n default:\n return \"GMT\" + formatTimezone(timezoneOffset, \":\");\n }\n },\n\n // Seconds timestamp\n t: function (date, token, _localize) {\n const timestamp = Math.trunc(+date / 1000);\n return addLeadingZeros(timestamp, token.length);\n },\n\n // Milliseconds timestamp\n T: function (date, token, _localize) {\n return addLeadingZeros(+date, token.length);\n },\n};\n\nfunction formatTimezoneShort(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = Math.trunc(absOffset / 60);\n const minutes = absOffset % 60;\n if (minutes === 0) {\n return sign + String(hours);\n }\n return sign + String(hours) + delimiter + addLeadingZeros(minutes, 2);\n}\n\nfunction formatTimezoneWithOptionalMinutes(offset, delimiter) {\n if (offset % 60 === 0) {\n const sign = offset > 0 ? \"-\" : \"+\";\n return sign + addLeadingZeros(Math.abs(offset) / 60, 2);\n }\n return formatTimezone(offset, delimiter);\n}\n\nfunction formatTimezone(offset, delimiter = \"\") {\n const sign = offset > 0 ? \"-\" : \"+\";\n const absOffset = Math.abs(offset);\n const hours = addLeadingZeros(Math.trunc(absOffset / 60), 2);\n const minutes = addLeadingZeros(absOffset % 60, 2);\n return sign + hours + delimiter + minutes;\n}\n","const dateLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"P\":\n return formatLong.date({ width: \"short\" });\n case \"PP\":\n return formatLong.date({ width: \"medium\" });\n case \"PPP\":\n return formatLong.date({ width: \"long\" });\n case \"PPPP\":\n default:\n return formatLong.date({ width: \"full\" });\n }\n};\n\nconst timeLongFormatter = (pattern, formatLong) => {\n switch (pattern) {\n case \"p\":\n return formatLong.time({ width: \"short\" });\n case \"pp\":\n return formatLong.time({ width: \"medium\" });\n case \"ppp\":\n return formatLong.time({ width: \"long\" });\n case \"pppp\":\n default:\n return formatLong.time({ width: \"full\" });\n }\n};\n\nconst dateTimeLongFormatter = (pattern, formatLong) => {\n const matchResult = pattern.match(/(P+)(p+)?/) || [];\n const datePattern = matchResult[1];\n const timePattern = matchResult[2];\n\n if (!timePattern) {\n return dateLongFormatter(pattern, formatLong);\n }\n\n let dateTimeFormat;\n\n switch (datePattern) {\n case \"P\":\n dateTimeFormat = formatLong.dateTime({ width: \"short\" });\n break;\n case \"PP\":\n dateTimeFormat = formatLong.dateTime({ width: \"medium\" });\n break;\n case \"PPP\":\n dateTimeFormat = formatLong.dateTime({ width: \"long\" });\n break;\n case \"PPPP\":\n default:\n dateTimeFormat = formatLong.dateTime({ width: \"full\" });\n break;\n }\n\n return dateTimeFormat\n .replace(\"{{date}}\", dateLongFormatter(datePattern, formatLong))\n .replace(\"{{time}}\", timeLongFormatter(timePattern, formatLong));\n};\n\nexport const longFormatters = {\n p: timeLongFormatter,\n P: dateTimeLongFormatter,\n};\n","const dayOfYearTokenRE = /^D+$/;\nconst weekYearTokenRE = /^Y+$/;\n\nconst throwTokens = [\"D\", \"DD\", \"YY\", \"YYYY\"];\n\nexport function isProtectedDayOfYearToken(token) {\n return dayOfYearTokenRE.test(token);\n}\n\nexport function isProtectedWeekYearToken(token) {\n return weekYearTokenRE.test(token);\n}\n\nexport function warnOrThrowProtectedError(token, format, input) {\n const _message = message(token, format, input);\n console.warn(_message);\n if (throwTokens.includes(token)) throw new RangeError(_message);\n}\n\nfunction message(token, format, input) {\n const subject = token[0] === \"Y\" ? \"years\" : \"days of the month\";\n return `Use \\`${token.toLowerCase()}\\` instead of \\`${token}\\` (in \\`${format}\\`) for formatting ${subject} to the input \\`${input}\\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;\n}\n","/**\n * @name isDate\n * @category Common Helpers\n * @summary Is the given value a date?\n *\n * @description\n * Returns true if the given value is an instance of Date. The function works for dates transferred across iframes.\n *\n * @param value - The value to check\n *\n * @returns True if the given value is a date\n *\n * @example\n * // For a valid date:\n * const result = isDate(new Date())\n * //=> true\n *\n * @example\n * // For an invalid date:\n * const result = isDate(new Date(NaN))\n * //=> true\n *\n * @example\n * // For some value:\n * const result = isDate('2014-02-31')\n * //=> false\n *\n * @example\n * // For an object:\n * const result = isDate({})\n * //=> false\n */\nexport function isDate(value) {\n return (\n value instanceof Date ||\n (typeof value === \"object\" &&\n Object.prototype.toString.call(value) === \"[object Date]\")\n );\n}\n\n// Fallback for modularized imports:\nexport default isDate;\n","import { isDate } from \"./isDate.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * @name isValid\n * @category Common Helpers\n * @summary Is the given date valid?\n *\n * @description\n * Returns false if argument is Invalid Date and true otherwise.\n * Argument is converted to Date using `toDate`. See [toDate](https://date-fns.org/docs/toDate)\n * Invalid Date is a Date, whose time value is NaN.\n *\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @param date - The date to check\n *\n * @returns The date is valid\n *\n * @example\n * // For the valid date:\n * const result = isValid(new Date(2014, 1, 31))\n * //=> true\n *\n * @example\n * // For the value, convertible into a date:\n * const result = isValid(1393804800000)\n * //=> true\n *\n * @example\n * // For the invalid date:\n * const result = isValid(new Date(''))\n * //=> false\n */\nexport function isValid(date) {\n return !((!isDate(date) && typeof date !== \"number\") || isNaN(+toDate(date)));\n}\n\n// Fallback for modularized imports:\nexport default isValid;\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { formatters } from \"./_lib/format/formatters.js\";\nimport { longFormatters } from \"./_lib/format/longFormatters.js\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.js\";\nimport { isValid } from \"./isValid.js\";\nimport { toDate } from \"./toDate.js\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { formatters, longFormatters };\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\nexport { format as formatDate };\n\n/**\n * The {@link format} function options.\n */\n\n/**\n * @name format\n * @alias formatDate\n * @category Common Helpers\n * @summary Format the date.\n *\n * @description\n * Return the formatted date string in the given format. The result may vary by locale.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n * (see the last example)\n *\n * Format of the string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 7 below the table).\n *\n * Accepted patterns:\n * | Unit | Pattern | Result examples | Notes |\n * |---------------------------------|---------|-----------------------------------|-------|\n * | Era | G..GGG | AD, BC | |\n * | | GGGG | Anno Domini, Before Christ | 2 |\n * | | GGGGG | A, B | |\n * | Calendar year | y | 44, 1, 1900, 2017 | 5 |\n * | | yo | 44th, 1st, 0th, 17th | 5,7 |\n * | | yy | 44, 01, 00, 17 | 5 |\n * | | yyy | 044, 001, 1900, 2017 | 5 |\n * | | yyyy | 0044, 0001, 1900, 2017 | 5 |\n * | | yyyyy | ... | 3,5 |\n * | Local week-numbering year | Y | 44, 1, 1900, 2017 | 5 |\n * | | Yo | 44th, 1st, 1900th, 2017th | 5,7 |\n * | | YY | 44, 01, 00, 17 | 5,8 |\n * | | YYY | 044, 001, 1900, 2017 | 5 |\n * | | YYYY | 0044, 0001, 1900, 2017 | 5,8 |\n * | | YYYYY | ... | 3,5 |\n * | ISO week-numbering year | R | -43, 0, 1, 1900, 2017 | 5,7 |\n * | | RR | -43, 00, 01, 1900, 2017 | 5,7 |\n * | | RRR | -043, 000, 001, 1900, 2017 | 5,7 |\n * | | RRRR | -0043, 0000, 0001, 1900, 2017 | 5,7 |\n * | | RRRRR | ... | 3,5,7 |\n * | Extended year | u | -43, 0, 1, 1900, 2017 | 5 |\n * | | uu | -43, 01, 1900, 2017 | 5 |\n * | | uuu | -043, 001, 1900, 2017 | 5 |\n * | | uuuu | -0043, 0001, 1900, 2017 | 5 |\n * | | uuuuu | ... | 3,5 |\n * | Quarter (formatting) | Q | 1, 2, 3, 4 | |\n * | | Qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | QQ | 01, 02, 03, 04 | |\n * | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | q | 1, 2, 3, 4 | |\n * | | qo | 1st, 2nd, 3rd, 4th | 7 |\n * | | qq | 01, 02, 03, 04 | |\n * | | qqq | Q1, Q2, Q3, Q4 | |\n * | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | qqqqq | 1, 2, 3, 4 | 4 |\n * | Month (formatting) | M | 1, 2, ..., 12 | |\n * | | Mo | 1st, 2nd, ..., 12th | 7 |\n * | | MM | 01, 02, ..., 12 | |\n * | | MMM | Jan, Feb, ..., Dec | |\n * | | MMMM | January, February, ..., December | 2 |\n * | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | L | 1, 2, ..., 12 | |\n * | | Lo | 1st, 2nd, ..., 12th | 7 |\n * | | LL | 01, 02, ..., 12 | |\n * | | LLL | Jan, Feb, ..., Dec | |\n * | | LLLL | January, February, ..., December | 2 |\n * | | LLLLL | J, F, ..., D | |\n * | Local week of year | w | 1, 2, ..., 53 | |\n * | | wo | 1st, 2nd, ..., 53th | 7 |\n * | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | I | 1, 2, ..., 53 | 7 |\n * | | Io | 1st, 2nd, ..., 53th | 7 |\n * | | II | 01, 02, ..., 53 | 7 |\n * | Day of month | d | 1, 2, ..., 31 | |\n * | | do | 1st, 2nd, ..., 31st | 7 |\n * | | dd | 01, 02, ..., 31 | |\n * | Day of year | D | 1, 2, ..., 365, 366 | 9 |\n * | | Do | 1st, 2nd, ..., 365th, 366th | 7 |\n * | | DD | 01, 02, ..., 365, 366 | 9 |\n * | | DDD | 001, 002, ..., 365, 366 | |\n * | | DDDD | ... | 3 |\n * | Day of week (formatting) | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | EEEEE | M, T, W, T, F, S, S | |\n * | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | i | 1, 2, 3, ..., 7 | 7 |\n * | | io | 1st, 2nd, ..., 7th | 7 |\n * | | ii | 01, 02, ..., 07 | 7 |\n * | | iii | Mon, Tue, Wed, ..., Sun | 7 |\n * | | iiii | Monday, Tuesday, ..., Sunday | 2,7 |\n * | | iiiii | M, T, W, T, F, S, S | 7 |\n * | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 7 |\n * | Local day of week (formatting) | e | 2, 3, 4, ..., 1 | |\n * | | eo | 2nd, 3rd, ..., 1st | 7 |\n * | | ee | 02, 03, ..., 01 | |\n * | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | eeeee | M, T, W, T, F, S, S | |\n * | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | c | 2, 3, 4, ..., 1 | |\n * | | co | 2nd, 3rd, ..., 1st | 7 |\n * | | cc | 02, 03, ..., 01 | |\n * | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | ccccc | M, T, W, T, F, S, S | |\n * | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | a..aa | AM, PM | |\n * | | aaa | am, pm | |\n * | | aaaa | a.m., p.m. | 2 |\n * | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | b..bb | AM, PM, noon, midnight | |\n * | | bbb | am, pm, noon, midnight | |\n * | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | bbbbb | a, p, n, mi | |\n * | Flexible day period | B..BBB | at night, in the morning, ... | |\n * | | BBBB | at night, in the morning, ... | 2 |\n * | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | h | 1, 2, ..., 11, 12 | |\n * | | ho | 1st, 2nd, ..., 11th, 12th | 7 |\n * | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | H | 0, 1, 2, ..., 23 | |\n * | | Ho | 0th, 1st, 2nd, ..., 23rd | 7 |\n * | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | K | 1, 2, ..., 11, 0 | |\n * | | Ko | 1st, 2nd, ..., 11th, 0th | 7 |\n * | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | k | 24, 1, 2, ..., 23 | |\n * | | ko | 24th, 1st, 2nd, ..., 23rd | 7 |\n * | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | m | 0, 1, ..., 59 | |\n * | | mo | 0th, 1st, ..., 59th | 7 |\n * | | mm | 00, 01, ..., 59 | |\n * | Second | s | 0, 1, ..., 59 | |\n * | | so | 0th, 1st, ..., 59th | 7 |\n * | | ss | 00, 01, ..., 59 | |\n * | Fraction of second | S | 0, 1, ..., 9 | |\n * | | SS | 00, 01, ..., 99 | |\n * | | SSS | 000, 001, ..., 999 | |\n * | | SSSS | ... | 3 |\n * | Timezone (ISO-8601 w/ Z) | X | -08, +0530, Z | |\n * | | XX | -0800, +0530, Z | |\n * | | XXX | -08:00, +05:30, Z | |\n * | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | x | -08, +0530, +00 | |\n * | | xx | -0800, +0530, +0000 | |\n * | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Timezone (GMT) | O...OOO | GMT-8, GMT+5:30, GMT+0 | |\n * | | OOOO | GMT-08:00, GMT+05:30, GMT+00:00 | 2 |\n * | Timezone (specific non-locat.) | z...zzz | GMT-8, GMT+5:30, GMT+0 | 6 |\n * | | zzzz | GMT-08:00, GMT+05:30, GMT+00:00 | 2,6 |\n * | Seconds timestamp | t | 512969520 | 7 |\n * | | tt | ... | 3,7 |\n * | Milliseconds timestamp | T | 512969520900 | 7 |\n * | | TT | ... | 3,7 |\n * | Long localized date | P | 04/29/1453 | 7 |\n * | | PP | Apr 29, 1453 | 7 |\n * | | PPP | April 29th, 1453 | 7 |\n * | | PPPP | Friday, April 29th, 1453 | 2,7 |\n * | Long localized time | p | 12:00 AM | 7 |\n * | | pp | 12:00:00 AM | 7 |\n * | | ppp | 12:00:00 AM GMT+2 | 7 |\n * | | pppp | 12:00:00 AM GMT+02:00 | 2,7 |\n * | Combination of date and time | Pp | 04/29/1453, 12:00 AM | 7 |\n * | | PPpp | Apr 29, 1453, 12:00:00 AM | 7 |\n * | | PPPppp | April 29th, 1453 at ... | 7 |\n * | | PPPPpppp| Friday, April 29th, 1453 at ... | 2,7 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table (e.g. `EEEEEEEEEEE`)\n * the output will be the same as default pattern for this unit, usually\n * the longest one (in case of ISO weekdays, `EEEE`). Default patterns for units\n * are marked with \"2\" in the last column of the table.\n *\n * `format(new Date(2017, 10, 6), 'MMM') //=> 'Nov'`\n *\n * `format(new Date(2017, 10, 6), 'MMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMM') //=> 'N'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMM') //=> 'November'`\n *\n * `format(new Date(2017, 10, 6), 'MMMMMMM') //=> 'November'`\n *\n * 3. Some patterns could be unlimited length (such as `yyyyyyyy`).\n * The output will be padded with zeros to match the length of the pattern.\n *\n * `format(new Date(2017, 10, 6), 'yyyyyyyy') //=> '00002017'`\n *\n * 4. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 5. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` always returns the last two digits of a year,\n * while `uu` pads single digit years to 2 characters and returns other years unchanged:\n *\n * | Year | `yy` | `uu` |\n * |------|------|------|\n * | 1 | 01 | 01 |\n * | 14 | 14 | 14 |\n * | 376 | 76 | 376 |\n * | 1453 | 53 | 1453 |\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [getISOWeekYear](https://date-fns.org/docs/getISOWeekYear)\n * and [getWeekYear](https://date-fns.org/docs/getWeekYear)).\n *\n * 6. Specific non-location timezones are currently unavailable in `date-fns`,\n * so right now these tokens fall back to GMT timezones.\n *\n * 7. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `t`: seconds timestamp\n * - `T`: milliseconds timestamp\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 8. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 9. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @param date - The original date\n * @param format - The string of tokens\n * @param options - An object with options\n *\n * @returns The formatted date string\n *\n * @throws `date` must not be Invalid Date\n * @throws `options.locale` must contain `localize` property\n * @throws `options.locale` must contain `formatLong` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Represent 11 February 2014 in middle-endian format:\n * const result = format(new Date(2014, 1, 11), 'MM/dd/yyyy')\n * //=> '02/11/2014'\n *\n * @example\n * // Represent 2 July 2014 in Esperanto:\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = format(new Date(2014, 6, 2), \"do 'de' MMMM yyyy\", {\n * locale: eoLocale\n * })\n * //=> '2-a de julio 2014'\n *\n * @example\n * // Escape string by single quote characters:\n * const result = format(new Date(2014, 6, 2, 15), \"h 'o''clock'\")\n * //=> \"3 o'clock\"\n */\nexport function format(date, formatStr, options) {\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const originalDate = toDate(date, options?.in);\n\n if (!isValid(originalDate)) {\n throw new RangeError(\"Invalid time value\");\n }\n\n let parts = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter === \"p\" || firstCharacter === \"P\") {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp)\n .map((substring) => {\n // Replace two single quote characters with one single quote character\n if (substring === \"''\") {\n return { isToken: false, value: \"'\" };\n }\n\n const firstCharacter = substring[0];\n if (firstCharacter === \"'\") {\n return { isToken: false, value: cleanEscapedString(substring) };\n }\n\n if (formatters[firstCharacter]) {\n return { isToken: true, value: substring };\n }\n\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n return { isToken: false, value: substring };\n });\n\n // invoke localize preprocessor (only for french locales at the moment)\n if (locale.localize.preprocessor) {\n parts = locale.localize.preprocessor(originalDate, parts);\n }\n\n const formatterOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n return parts\n .map((part) => {\n if (!part.isToken) return part.value;\n\n const token = part.value;\n\n if (\n (!options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)) ||\n (!options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token))\n ) {\n warnOrThrowProtectedError(token, formatStr, String(date));\n }\n\n const formatter = formatters[token[0]];\n return formatter(originalDate, token, locale.localize, formatterOptions);\n })\n .join(\"\");\n}\n\nfunction cleanEscapedString(input) {\n const matched = input.match(escapedStringRegExp);\n\n if (!matched) {\n return input;\n }\n\n return matched[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default format;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDate} function options.\n */\n\n/**\n * @name getDate\n * @category Day Helpers\n * @summary Get the day of the month of the given date.\n *\n * @description\n * Get the day of the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The day of month\n *\n * @example\n * // Which day of the month is 29 February 2012?\n * const result = getDate(new Date(2012, 1, 29))\n * //=> 29\n */\nexport function getDate(date, options) {\n return toDate(date, options?.in).getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDate;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getDaysInMonth} function options.\n */\n\n/**\n * @name getDaysInMonth\n * @category Month Helpers\n * @summary Get the number of days in a month of the given date.\n *\n * @description\n * Get the number of days in a month of the given date, considering the context if provided.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The number of days in a month\n *\n * @example\n * // How many days are in February 2000?\n * const result = getDaysInMonth(new Date(2000, 1))\n * //=> 29\n */\nexport function getDaysInMonth(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const monthIndex = _date.getMonth();\n const lastDayOfMonth = constructFrom(_date, 0);\n lastDayOfMonth.setFullYear(year, monthIndex + 1, 0);\n lastDayOfMonth.setHours(0, 0, 0, 0);\n return lastDayOfMonth.getDate();\n}\n\n// Fallback for modularized imports:\nexport default getDaysInMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getHours} function options.\n */\n\n/**\n * @name getHours\n * @category Hour Helpers\n * @summary Get the hours of the given date.\n *\n * @description\n * Get the hours of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The hours\n *\n * @example\n * // Get the hours of 29 February 2012 11:45:00:\n * const result = getHours(new Date(2012, 1, 29, 11, 45))\n * //=> 11\n */\nexport function getHours(date, options) {\n return toDate(date, options?.in).getHours();\n}\n\n// Fallback for modularized imports:\nexport default getHours;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getMinutes} function options.\n */\n\n/**\n * @name getMinutes\n * @category Minute Helpers\n * @summary Get the minutes of the given date.\n *\n * @description\n * Get the minutes of the given date.\n *\n * @param date - The given date\n * @param options - The options\n *\n * @returns The minutes\n *\n * @example\n * // Get the minutes of 29 February 2012 11:45:05:\n * const result = getMinutes(new Date(2012, 1, 29, 11, 45, 5))\n * //=> 45\n */\nexport function getMinutes(date, options) {\n return toDate(date, options?.in).getMinutes();\n}\n\n// Fallback for modularized imports:\nexport default getMinutes;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getMonth} function options.\n */\n\n/**\n * @name getMonth\n * @category Month Helpers\n * @summary Get the month of the given date.\n *\n * @description\n * Get the month of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The month index (0-11)\n *\n * @example\n * // Which month is 29 February 2012?\n * const result = getMonth(new Date(2012, 1, 29))\n * //=> 1\n */\nexport function getMonth(date, options) {\n return toDate(date, options?.in).getMonth();\n}\n\n// Fallback for modularized imports:\nexport default getMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name getSeconds\n * @category Second Helpers\n * @summary Get the seconds of the given date.\n *\n * @description\n * Get the seconds of the given date.\n *\n * @param date - The given date\n *\n * @returns The seconds\n *\n * @example\n * // Get the seconds of 29 February 2012 11:45:05.123:\n * const result = getSeconds(new Date(2012, 1, 29, 11, 45, 5, 123))\n * //=> 5\n */\nexport function getSeconds(date) {\n return toDate(date).getSeconds();\n}\n\n// Fallback for modularized imports:\nexport default getSeconds;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name getMilliseconds\n * @category Millisecond Helpers\n * @summary Get the milliseconds of the given date.\n *\n * @description\n * Get the milliseconds of the given date.\n *\n * @param date - The given date\n *\n * @returns The milliseconds\n *\n * @example\n * // Get the milliseconds of 29 February 2012 11:45:05.123:\n * const result = getMilliseconds(new Date(2012, 1, 29, 11, 45, 5, 123))\n * //=> 123\n */\nexport function getMilliseconds(date) {\n return toDate(date).getMilliseconds();\n}\n\n// Fallback for modularized imports:\nexport default getMilliseconds;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getYear} function options.\n */\n\n/**\n * @name getYear\n * @category Year Helpers\n * @summary Get the year of the given date.\n *\n * @description\n * Get the year of the given date.\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The year\n *\n * @example\n * // Which year is 2 July 2014?\n * const result = getYear(new Date(2014, 6, 2))\n * //=> 2014\n */\nexport function getYear(date, options) {\n return toDate(date, options?.in).getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default getYear;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isAfter\n * @category Common Helpers\n * @summary Is the first date after the second one?\n *\n * @description\n * Is the first date after the second one?\n *\n * @param date - The date that should be after the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is after the second date\n *\n * @example\n * // Is 10 July 1989 after 11 February 1987?\n * const result = isAfter(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> true\n */\nexport function isAfter(date, dateToCompare) {\n return +toDate(date) > +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isAfter;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isBefore\n * @category Common Helpers\n * @summary Is the first date before the second one?\n *\n * @description\n * Is the first date before the second one?\n *\n * @param date - The date that should be before the other one to return true\n * @param dateToCompare - The date to compare with\n *\n * @returns The first date is before the second date\n *\n * @example\n * // Is 10 July 1989 before 11 February 1987?\n * const result = isBefore(new Date(1989, 6, 10), new Date(1987, 1, 11))\n * //=> false\n */\nexport function isBefore(date, dateToCompare) {\n return +toDate(date) < +toDate(dateToCompare);\n}\n\n// Fallback for modularized imports:\nexport default isBefore;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * @name isEqual\n * @category Common Helpers\n * @summary Are the given dates equal?\n *\n * @description\n * Are the given dates equal?\n *\n * @param dateLeft - The first date to compare\n * @param dateRight - The second date to compare\n *\n * @returns The dates are equal\n *\n * @example\n * // Are 2 July 2014 06:30:45.000 and 2 July 2014 06:30:45.500 equal?\n * const result = isEqual(\n * new Date(2014, 6, 2, 6, 30, 45, 0),\n * new Date(2014, 6, 2, 6, 30, 45, 500)\n * )\n * //=> false\n */\nexport function isEqual(leftDate, rightDate) {\n return +toDate(leftDate) === +toDate(rightDate);\n}\n\n// Fallback for modularized imports:\nexport default isEqual;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfDay } from \"./startOfDay.js\";\n\n/**\n * The {@link isSameDay} function options.\n */\n\n/**\n * @name isSameDay\n * @category Day Helpers\n * @summary Are the given dates in the same day (and year and month)?\n *\n * @description\n * Are the given dates in the same day (and year and month)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same day (and year and month)\n *\n * @example\n * // Are 4 September 06:00:00 and 4 September 18:00:00 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 18, 0))\n * //=> true\n *\n * @example\n * // Are 4 September and 4 October in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2014, 9, 4))\n * //=> false\n *\n * @example\n * // Are 4 September, 2014 and 4 September, 2015 in the same day?\n * const result = isSameDay(new Date(2014, 8, 4), new Date(2015, 8, 4))\n * //=> false\n */\nexport function isSameDay(laterDate, earlierDate, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return +startOfDay(dateLeft_) === +startOfDay(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameDay;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameYear} function options.\n */\n\n/**\n * @name isSameYear\n * @category Year Helpers\n * @summary Are the given dates in the same year?\n *\n * @description\n * Are the given dates in the same year?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same year\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same year?\n * const result = isSameYear(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n */\nexport function isSameYear(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return laterDate_.getFullYear() === earlierDate_.getFullYear();\n}\n\n// Fallback for modularized imports:\nexport default isSameYear;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\n\n/**\n * The {@link isSameMonth} function options.\n */\n\n/**\n * @name isSameMonth\n * @category Month Helpers\n * @summary Are the given dates in the same month (and year)?\n *\n * @description\n * Are the given dates in the same month (and year)?\n *\n * @param laterDate - The first date to check\n * @param earlierDate - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same month (and year)\n *\n * @example\n * // Are 2 September 2014 and 25 September 2014 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2014, 8, 25))\n * //=> true\n *\n * @example\n * // Are 2 September 2014 and 25 September 2015 in the same month?\n * const result = isSameMonth(new Date(2014, 8, 2), new Date(2015, 8, 25))\n * //=> false\n */\nexport function isSameMonth(laterDate, earlierDate, options) {\n const [laterDate_, earlierDate_] = normalizeDates(\n options?.in,\n laterDate,\n earlierDate,\n );\n return (\n laterDate_.getFullYear() === earlierDate_.getFullYear() &&\n laterDate_.getMonth() === earlierDate_.getMonth()\n );\n}\n\n// Fallback for modularized imports:\nexport default isSameMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfHour} function options.\n */\n\n/**\n * @name startOfHour\n * @category Hour Helpers\n * @summary Return the start of an hour for the given date.\n *\n * @description\n * Return the start of an hour for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of an hour\n *\n * @example\n * // The start of an hour for 2 September 2014 11:55:00:\n * const result = startOfHour(new Date(2014, 8, 2, 11, 55))\n * //=> Tue Sep 02 2014 11:00:00\n */\nexport function startOfHour(date, options) {\n const _date = toDate(date, options?.in);\n _date.setMinutes(0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfHour;\n","import { normalizeDates } from \"./_lib/normalizeDates.js\";\nimport { startOfHour } from \"./startOfHour.js\";\n\n/**\n * The {@link isSameHour} function options.\n */\n\n/**\n * @name isSameHour\n * @category Hour Helpers\n * @summary Are the given dates in the same hour (and same day)?\n *\n * @description\n * Are the given dates in the same hour (and same day)?\n *\n * @param dateLeft - The first date to check\n * @param dateRight - The second date to check\n * @param options - An object with options\n *\n * @returns The dates are in the same hour (and same day)\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 4 September 06:30:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 4, 6, 30))\n * //=> true\n *\n * @example\n * // Are 4 September 2014 06:00:00 and 5 September 06:00:00 in the same hour?\n * const result = isSameHour(new Date(2014, 8, 4, 6, 0), new Date(2014, 8, 5, 6, 0))\n * //=> false\n */\nexport function isSameHour(dateLeft, dateRight, options) {\n const [dateLeft_, dateRight_] = normalizeDates(\n options?.in,\n dateLeft,\n dateRight,\n );\n return +startOfHour(dateLeft_) === +startOfHour(dateRight_);\n}\n\n// Fallback for modularized imports:\nexport default isSameHour;\n","import { getDefaultOptions as getInternalDefaultOptions } from \"./_lib/defaultOptions.js\";\n\n/**\n * @name getDefaultOptions\n * @category Common Helpers\n * @summary Get default options.\n * @pure false\n *\n * @description\n * Returns an object that contains defaults for\n * `options.locale`, `options.weekStartsOn` and `options.firstWeekContainsDate`\n * arguments for all functions.\n *\n * You can change these with [setDefaultOptions](https://date-fns.org/docs/setDefaultOptions).\n *\n * @returns The default options\n *\n * @example\n * const result = getDefaultOptions()\n * //=> {}\n *\n * @example\n * setDefaultOptions({ weekStarsOn: 1, firstWeekContainsDate: 4 })\n * const result = getDefaultOptions()\n * //=> { weekStarsOn: 1, firstWeekContainsDate: 4 }\n */\nexport function getDefaultOptions() {\n return Object.assign({}, getInternalDefaultOptions());\n}\n\n// Fallback for modularized imports:\nexport default getDefaultOptions;\n","import { constructFrom } from \"./constructFrom.js\";\n\n/**\n * @name transpose\n * @category Generic Helpers\n * @summary Transpose the date to the given constructor.\n *\n * @description\n * The function transposes the date to the given constructor. It helps you\n * to transpose the date in the system time zone to say `UTCDate` or any other\n * date extension.\n *\n * @typeParam InputDate - The input `Date` type derived from the passed argument.\n * @typeParam ResultDate - The result `Date` type derived from the passed constructor.\n *\n * @param date - The date to use values from\n * @param constructor - The date constructor to use\n *\n * @returns Date transposed to the given constructor\n *\n * @example\n * // Create July 10, 2022 00:00 in locale time zone\n * const date = new Date(2022, 6, 10)\n * //=> 'Sun Jul 10 2022 00:00:00 GMT+0800 (Singapore Standard Time)'\n *\n * @example\n * // Transpose the date to July 10, 2022 00:00 in UTC\n * transpose(date, UTCDate)\n * //=> 'Sun Jul 10 2022 00:00:00 GMT+0000 (Coordinated Universal Time)'\n */\nexport function transpose(date, constructor) {\n const date_ = isConstructor(constructor)\n ? new constructor(0)\n : constructFrom(constructor, 0);\n date_.setFullYear(date.getFullYear(), date.getMonth(), date.getDate());\n date_.setHours(\n date.getHours(),\n date.getMinutes(),\n date.getSeconds(),\n date.getMilliseconds(),\n );\n return date_;\n}\n\nfunction isConstructor(constructor) {\n return (\n typeof constructor === \"function\" &&\n constructor.prototype?.constructor === constructor\n );\n}\n\n// Fallback for modularized imports:\nexport default transpose;\n","import { constructFrom } from \"../../constructFrom.js\";\nimport { transpose } from \"../../transpose.js\";\n\nconst TIMEZONE_UNIT_PRIORITY = 10;\n\nexport class Setter {\n subPriority = 0;\n\n validate(_utcDate, _options) {\n return true;\n }\n}\n\nexport class ValueSetter extends Setter {\n constructor(\n value,\n\n validateValue,\n\n setValue,\n\n priority,\n subPriority,\n ) {\n super();\n this.value = value;\n this.validateValue = validateValue;\n this.setValue = setValue;\n this.priority = priority;\n if (subPriority) {\n this.subPriority = subPriority;\n }\n }\n\n validate(date, options) {\n return this.validateValue(date, this.value, options);\n }\n\n set(date, flags, options) {\n return this.setValue(date, flags, this.value, options);\n }\n}\n\nexport class DateTimezoneSetter extends Setter {\n priority = TIMEZONE_UNIT_PRIORITY;\n subPriority = -1;\n\n constructor(context, reference) {\n super();\n this.context = context || ((date) => constructFrom(reference, date));\n }\n\n set(date, flags) {\n if (flags.timestampIsSet) return date;\n return constructFrom(date, transpose(date, this.context));\n }\n}\n","import { ValueSetter } from \"./Setter.js\";\n\nexport class Parser {\n run(dateString, token, match, options) {\n const result = this.parse(dateString, token, match, options);\n if (!result) {\n return null;\n }\n\n return {\n setter: new ValueSetter(\n result.value,\n this.validate,\n this.set,\n this.priority,\n this.subPriority,\n ),\n rest: result.rest,\n };\n }\n\n validate(_utcDate, _value, _options) {\n return true;\n }\n}\n","import { Parser } from \"../Parser.js\";\n\nexport class EraParser extends Parser {\n priority = 140;\n\n parse(dateString, token, match) {\n switch (token) {\n // AD, BC\n case \"G\":\n case \"GG\":\n case \"GGG\":\n return (\n match.era(dateString, { width: \"abbreviated\" }) ||\n match.era(dateString, { width: \"narrow\" })\n );\n\n // A, B\n case \"GGGGG\":\n return match.era(dateString, { width: \"narrow\" });\n // Anno Domini, Before Christ\n case \"GGGG\":\n default:\n return (\n match.era(dateString, { width: \"wide\" }) ||\n match.era(dateString, { width: \"abbreviated\" }) ||\n match.era(dateString, { width: \"narrow\" })\n );\n }\n }\n\n set(date, flags, value) {\n flags.era = value;\n date.setFullYear(value, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"R\", \"u\", \"t\", \"T\"];\n}\n","export const numericPatterns = {\n month: /^(1[0-2]|0?\\d)/, // 0 to 12\n date: /^(3[0-1]|[0-2]?\\d)/, // 0 to 31\n dayOfYear: /^(36[0-6]|3[0-5]\\d|[0-2]?\\d?\\d)/, // 0 to 366\n week: /^(5[0-3]|[0-4]?\\d)/, // 0 to 53\n hour23h: /^(2[0-3]|[0-1]?\\d)/, // 0 to 23\n hour24h: /^(2[0-4]|[0-1]?\\d)/, // 0 to 24\n hour11h: /^(1[0-1]|0?\\d)/, // 0 to 11\n hour12h: /^(1[0-2]|0?\\d)/, // 0 to 12\n minute: /^[0-5]?\\d/, // 0 to 59\n second: /^[0-5]?\\d/, // 0 to 59\n\n singleDigit: /^\\d/, // 0 to 9\n twoDigits: /^\\d{1,2}/, // 0 to 99\n threeDigits: /^\\d{1,3}/, // 0 to 999\n fourDigits: /^\\d{1,4}/, // 0 to 9999\n\n anyDigitsSigned: /^-?\\d+/,\n singleDigitSigned: /^-?\\d/, // 0 to 9, -0 to -9\n twoDigitsSigned: /^-?\\d{1,2}/, // 0 to 99, -0 to -99\n threeDigitsSigned: /^-?\\d{1,3}/, // 0 to 999, -0 to -999\n fourDigitsSigned: /^-?\\d{1,4}/, // 0 to 9999, -0 to -9999\n};\n\nexport const timezonePatterns = {\n basicOptionalMinutes: /^([+-])(\\d{2})(\\d{2})?|Z/,\n basic: /^([+-])(\\d{2})(\\d{2})|Z/,\n basicOptionalSeconds: /^([+-])(\\d{2})(\\d{2})((\\d{2}))?|Z/,\n extended: /^([+-])(\\d{2}):(\\d{2})|Z/,\n extendedOptionalSeconds: /^([+-])(\\d{2}):(\\d{2})(:(\\d{2}))?|Z/,\n};\n","import {\n millisecondsInHour,\n millisecondsInMinute,\n millisecondsInSecond,\n} from \"../../constants.js\";\n\nimport { numericPatterns } from \"./constants.js\";\n\nexport function mapValue(parseFnResult, mapFn) {\n if (!parseFnResult) {\n return parseFnResult;\n }\n\n return {\n value: mapFn(parseFnResult.value),\n rest: parseFnResult.rest,\n };\n}\n\nexport function parseNumericPattern(pattern, dateString) {\n const matchResult = dateString.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n return {\n value: parseInt(matchResult[0], 10),\n rest: dateString.slice(matchResult[0].length),\n };\n}\n\nexport function parseTimezonePattern(pattern, dateString) {\n const matchResult = dateString.match(pattern);\n\n if (!matchResult) {\n return null;\n }\n\n // Input is 'Z'\n if (matchResult[0] === \"Z\") {\n return {\n value: 0,\n rest: dateString.slice(1),\n };\n }\n\n const sign = matchResult[1] === \"+\" ? 1 : -1;\n const hours = matchResult[2] ? parseInt(matchResult[2], 10) : 0;\n const minutes = matchResult[3] ? parseInt(matchResult[3], 10) : 0;\n const seconds = matchResult[5] ? parseInt(matchResult[5], 10) : 0;\n\n return {\n value:\n sign *\n (hours * millisecondsInHour +\n minutes * millisecondsInMinute +\n seconds * millisecondsInSecond),\n rest: dateString.slice(matchResult[0].length),\n };\n}\n\nexport function parseAnyDigitsSigned(dateString) {\n return parseNumericPattern(numericPatterns.anyDigitsSigned, dateString);\n}\n\nexport function parseNDigits(n, dateString) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigit, dateString);\n case 2:\n return parseNumericPattern(numericPatterns.twoDigits, dateString);\n case 3:\n return parseNumericPattern(numericPatterns.threeDigits, dateString);\n case 4:\n return parseNumericPattern(numericPatterns.fourDigits, dateString);\n default:\n return parseNumericPattern(new RegExp(\"^\\\\d{1,\" + n + \"}\"), dateString);\n }\n}\n\nexport function parseNDigitsSigned(n, dateString) {\n switch (n) {\n case 1:\n return parseNumericPattern(numericPatterns.singleDigitSigned, dateString);\n case 2:\n return parseNumericPattern(numericPatterns.twoDigitsSigned, dateString);\n case 3:\n return parseNumericPattern(numericPatterns.threeDigitsSigned, dateString);\n case 4:\n return parseNumericPattern(numericPatterns.fourDigitsSigned, dateString);\n default:\n return parseNumericPattern(new RegExp(\"^-?\\\\d{1,\" + n + \"}\"), dateString);\n }\n}\n\nexport function dayPeriodEnumToHours(dayPeriod) {\n switch (dayPeriod) {\n case \"morning\":\n return 4;\n case \"evening\":\n return 17;\n case \"pm\":\n case \"noon\":\n case \"afternoon\":\n return 12;\n case \"am\":\n case \"midnight\":\n case \"night\":\n default:\n return 0;\n }\n}\n\nexport function normalizeTwoDigitYear(twoDigitYear, currentYear) {\n const isCommonEra = currentYear > 0;\n // Absolute number of the current year:\n // 1 -> 1 AC\n // 0 -> 1 BC\n // -1 -> 2 BC\n const absCurrentYear = isCommonEra ? currentYear : 1 - currentYear;\n\n let result;\n if (absCurrentYear <= 50) {\n result = twoDigitYear || 100;\n } else {\n const rangeEnd = absCurrentYear + 50;\n const rangeEndCentury = Math.trunc(rangeEnd / 100) * 100;\n const isPreviousCentury = twoDigitYear >= rangeEnd % 100;\n result = twoDigitYear + rangeEndCentury - (isPreviousCentury ? 100 : 0);\n }\n\n return isCommonEra ? result : 1 - result;\n}\n\nexport function isLeapYearIndex(year) {\n return year % 400 === 0 || (year % 4 === 0 && year % 100 !== 0);\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.js\";\n\n// From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_Patterns\n// | Year | y | yy | yyy | yyyy | yyyyy |\n// |----------|-------|----|-------|-------|-------|\n// | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n// | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n// | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n// | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n// | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\nexport class YearParser extends Parser {\n priority = 130;\n incompatibleTokens = [\"Y\", \"R\", \"u\", \"w\", \"I\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n\n parse(dateString, token, match) {\n const valueCallback = (year) => ({\n year,\n isTwoDigitYear: token === \"yy\",\n });\n\n switch (token) {\n case \"y\":\n return mapValue(parseNDigits(4, dateString), valueCallback);\n case \"yo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"year\",\n }),\n valueCallback,\n );\n default:\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n }\n\n validate(_date, value) {\n return value.isTwoDigitYear || value.year > 0;\n }\n\n set(date, flags, value) {\n const currentYear = date.getFullYear();\n\n if (value.isTwoDigitYear) {\n const normalizedTwoDigitYear = normalizeTwoDigitYear(\n value.year,\n currentYear,\n );\n date.setFullYear(normalizedTwoDigitYear, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n const year =\n !(\"era\" in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setFullYear(year, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n}\n","import { getWeekYear } from \"../../../getWeekYear.js\";\n\nimport { startOfWeek } from \"../../../startOfWeek.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, normalizeTwoDigitYear, parseNDigits } from \"../utils.js\";\n\n// Local week-numbering year\nexport class LocalWeekYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token, match) {\n const valueCallback = (year) => ({\n year,\n isTwoDigitYear: token === \"YY\",\n });\n\n switch (token) {\n case \"Y\":\n return mapValue(parseNDigits(4, dateString), valueCallback);\n case \"Yo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"year\",\n }),\n valueCallback,\n );\n default:\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n }\n\n validate(_date, value) {\n return value.isTwoDigitYear || value.year > 0;\n }\n\n set(date, flags, value, options) {\n const currentYear = getWeekYear(date, options);\n\n if (value.isTwoDigitYear) {\n const normalizedTwoDigitYear = normalizeTwoDigitYear(\n value.year,\n currentYear,\n );\n date.setFullYear(\n normalizedTwoDigitYear,\n 0,\n options.firstWeekContainsDate,\n );\n date.setHours(0, 0, 0, 0);\n return startOfWeek(date, options);\n }\n\n const year =\n !(\"era\" in flags) || flags.era === 1 ? value.year : 1 - value.year;\n date.setFullYear(year, 0, options.firstWeekContainsDate);\n date.setHours(0, 0, 0, 0);\n return startOfWeek(date, options);\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"Q\",\n \"q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"t\",\n \"T\",\n ];\n}\n","import { startOfISOWeek } from \"../../../startOfISOWeek.js\";\nimport { constructFrom } from \"../../../constructFrom.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigitsSigned } from \"../utils.js\";\n\n// ISO week-numbering year\nexport class ISOWeekYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token) {\n if (token === \"R\") {\n return parseNDigitsSigned(4, dateString);\n }\n\n return parseNDigitsSigned(token.length, dateString);\n }\n\n set(date, _flags, value) {\n const firstWeekOfYear = constructFrom(date, 0);\n firstWeekOfYear.setFullYear(value, 0, 4);\n firstWeekOfYear.setHours(0, 0, 0, 0);\n return startOfISOWeek(firstWeekOfYear);\n }\n\n incompatibleTokens = [\n \"G\",\n \"y\",\n \"Y\",\n \"u\",\n \"Q\",\n \"q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { parseNDigitsSigned } from \"../utils.js\";\n\nexport class ExtendedYearParser extends Parser {\n priority = 130;\n\n parse(dateString, token) {\n if (token === \"u\") {\n return parseNDigitsSigned(4, dateString);\n }\n\n return parseNDigitsSigned(token.length, dateString);\n }\n\n set(date, _flags, value) {\n date.setFullYear(value, 0, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"G\", \"y\", \"Y\", \"R\", \"w\", \"I\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { parseNDigits } from \"../utils.js\";\n\nexport class QuarterParser extends Parser {\n priority = 120;\n\n parse(dateString, token, match) {\n switch (token) {\n // 1, 2, 3, 4\n case \"Q\":\n case \"QQ\": // 01, 02, 03, 04\n return parseNDigits(token.length, dateString);\n // 1st, 2nd, 3rd, 4th\n case \"Qo\":\n return match.ordinalNumber(dateString, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"QQQ\":\n return (\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"QQQQQ\":\n return match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"QQQQ\":\n default:\n return (\n match.quarter(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 4;\n }\n\n set(date, _flags, value) {\n date.setMonth((value - 1) * 3, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { parseNDigits } from \"../utils.js\";\n\nexport class StandAloneQuarterParser extends Parser {\n priority = 120;\n\n parse(dateString, token, match) {\n switch (token) {\n // 1, 2, 3, 4\n case \"q\":\n case \"qq\": // 01, 02, 03, 04\n return parseNDigits(token.length, dateString);\n // 1st, 2nd, 3rd, 4th\n case \"qo\":\n return match.ordinalNumber(dateString, { unit: \"quarter\" });\n // Q1, Q2, Q3, Q4\n case \"qqq\":\n return (\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n })\n );\n\n // 1, 2, 3, 4 (narrow quarter; could be not numerical)\n case \"qqqqq\":\n return match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // 1st quarter, 2nd quarter, ...\n case \"qqqq\":\n default:\n return (\n match.quarter(dateString, {\n width: \"wide\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.quarter(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 4;\n }\n\n set(date, _flags, value) {\n date.setMonth((value - 1) * 3, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class MonthParser extends Parser {\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"L\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n\n priority = 110;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => value - 1;\n\n switch (token) {\n // 1, 2, ..., 12\n case \"M\":\n return mapValue(\n parseNumericPattern(numericPatterns.month, dateString),\n valueCallback,\n );\n // 01, 02, ..., 12\n case \"MM\":\n return mapValue(parseNDigits(2, dateString), valueCallback);\n // 1st, 2nd, ..., 12th\n case \"Mo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"month\",\n }),\n valueCallback,\n );\n // Jan, Feb, ..., Dec\n case \"MMM\":\n return (\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // J, F, ..., D\n case \"MMMMM\":\n return match.month(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // January, February, ..., December\n case \"MMMM\":\n default:\n return (\n match.month(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n date.setMonth(value, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class StandAloneMonthParser extends Parser {\n priority = 110;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => value - 1;\n\n switch (token) {\n // 1, 2, ..., 12\n case \"L\":\n return mapValue(\n parseNumericPattern(numericPatterns.month, dateString),\n valueCallback,\n );\n // 01, 02, ..., 12\n case \"LL\":\n return mapValue(parseNDigits(2, dateString), valueCallback);\n // 1st, 2nd, ..., 12th\n case \"Lo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"month\",\n }),\n valueCallback,\n );\n // Jan, Feb, ..., Dec\n case \"LLL\":\n return (\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // J, F, ..., D\n case \"LLLLL\":\n return match.month(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // January, February, ..., December\n case \"LLLL\":\n default:\n return (\n match.month(dateString, { width: \"wide\", context: \"standalone\" }) ||\n match.month(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.month(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n date.setMonth(value, 1);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"M\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { getWeek } from \"./getWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setWeek} function options.\n */\n\n/**\n * @name setWeek\n * @category Week Helpers\n * @summary Set the local week to the given date.\n *\n * @description\n * Set the local week to the given date, saving the weekday number.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param week - The week of the new date\n * @param options - An object with options\n *\n * @returns The new date with the local week set\n *\n * @example\n * // Set the 1st week to 2 January 2005 with default options:\n * const result = setWeek(new Date(2005, 0, 2), 1)\n * //=> Sun Dec 26 2004 00:00:00\n *\n * @example\n * // Set the 1st week to 2 January 2005,\n * // if Monday is the first day of the week,\n * // and the first week of the year always contains 4 January:\n * const result = setWeek(new Date(2005, 0, 2), 1, {\n * weekStartsOn: 1,\n * firstWeekContainsDate: 4\n * })\n * //=> Sun Jan 4 2004 00:00:00\n */\nexport function setWeek(date, week, options) {\n const date_ = toDate(date, options?.in);\n const diff = getWeek(date_, options) - week;\n date_.setDate(date_.getDate() - diff * 7);\n return toDate(date_, options?.in);\n}\n\n// Fallback for modularized imports:\nexport default setWeek;\n","import { setWeek } from \"../../../setWeek.js\";\nimport { startOfWeek } from \"../../../startOfWeek.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\n// Local week of year\nexport class LocalWeekParser extends Parser {\n priority = 100;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"w\":\n return parseNumericPattern(numericPatterns.week, dateString);\n case \"wo\":\n return match.ordinalNumber(dateString, { unit: \"week\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 53;\n }\n\n set(date, _flags, value, options) {\n return startOfWeek(setWeek(date, value, options), options);\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"i\",\n \"t\",\n \"T\",\n ];\n}\n","import { getISOWeek } from \"./getISOWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setISOWeek} function options.\n */\n\n/**\n * @name setISOWeek\n * @category ISO Week Helpers\n * @summary Set the ISO week to the given date.\n *\n * @description\n * Set the ISO week to the given date, saving the weekday number.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The `Date` type of the context function.\n *\n * @param date - The date to be changed\n * @param week - The ISO week of the new date\n * @param options - An object with options\n *\n * @returns The new date with the ISO week set\n *\n * @example\n * // Set the 53rd ISO week to 7 August 2004:\n * const result = setISOWeek(new Date(2004, 7, 7), 53)\n * //=> Sat Jan 01 2005 00:00:00\n */\nexport function setISOWeek(date, week, options) {\n const _date = toDate(date, options?.in);\n const diff = getISOWeek(_date, options) - week;\n _date.setDate(_date.getDate() - diff * 7);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setISOWeek;\n","import { setISOWeek } from \"../../../setISOWeek.js\";\nimport { startOfISOWeek } from \"../../../startOfISOWeek.js\";\nimport { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\n// ISO week of year\nexport class ISOWeekParser extends Parser {\n priority = 100;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"I\":\n return parseNumericPattern(numericPatterns.week, dateString);\n case \"Io\":\n return match.ordinalNumber(dateString, { unit: \"week\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 53;\n }\n\n set(date, _flags, value) {\n return startOfISOWeek(setISOWeek(date, value));\n }\n\n incompatibleTokens = [\n \"y\",\n \"Y\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport {\n isLeapYearIndex,\n parseNDigits,\n parseNumericPattern,\n} from \"../utils.js\";\n\nconst DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];\nconst DAYS_IN_MONTH_LEAP_YEAR = [\n 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31,\n];\n\n// Day of the month\nexport class DateParser extends Parser {\n priority = 90;\n subPriority = 1;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"d\":\n return parseNumericPattern(numericPatterns.date, dateString);\n case \"do\":\n return match.ordinalNumber(dateString, { unit: \"date\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(date, value) {\n const year = date.getFullYear();\n const isLeapYear = isLeapYearIndex(year);\n const month = date.getMonth();\n if (isLeapYear) {\n return value >= 1 && value <= DAYS_IN_MONTH_LEAP_YEAR[month];\n } else {\n return value >= 1 && value <= DAYS_IN_MONTH[month];\n }\n }\n\n set(date, _flags, value) {\n date.setDate(value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"w\",\n \"I\",\n \"D\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport {\n isLeapYearIndex,\n parseNDigits,\n parseNumericPattern,\n} from \"../utils.js\";\n\nexport class DayOfYearParser extends Parser {\n priority = 90;\n\n subpriority = 1;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"D\":\n case \"DD\":\n return parseNumericPattern(numericPatterns.dayOfYear, dateString);\n case \"Do\":\n return match.ordinalNumber(dateString, { unit: \"date\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(date, value) {\n const year = date.getFullYear();\n const isLeapYear = isLeapYearIndex(year);\n if (isLeapYear) {\n return value >= 1 && value <= 366;\n } else {\n return value >= 1 && value <= 365;\n }\n }\n\n set(date, _flags, value) {\n date.setMonth(0, value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"Y\",\n \"R\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"I\",\n \"d\",\n \"E\",\n \"i\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { addDays } from \"./addDays.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setDay} function options.\n */\n\n/**\n * @name setDay\n * @category Weekday Helpers\n * @summary Set the day of the week to the given date.\n *\n * @description\n * Set the day of the week to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param day - The day of the week of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the day of the week set\n *\n * @example\n * // Set week day to Sunday, with the default weekStartsOn of Sunday:\n * const result = setDay(new Date(2014, 8, 1), 0)\n * //=> Sun Aug 31 2014 00:00:00\n *\n * @example\n * // Set week day to Sunday, with a weekStartsOn of Monday:\n * const result = setDay(new Date(2014, 8, 1), 0, { weekStartsOn: 1 })\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setDay(date, day, options) {\n const defaultOptions = getDefaultOptions();\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n const date_ = toDate(date, options?.in);\n const currentDay = date_.getDay();\n\n const remainder = day % 7;\n const dayIndex = (remainder + 7) % 7;\n\n const delta = 7 - weekStartsOn;\n const diff =\n day < 0 || day > 6\n ? day - ((currentDay + delta) % 7)\n : ((dayIndex + delta) % 7) - ((currentDay + delta) % 7);\n return addDays(date_, diff, options);\n}\n\n// Fallback for modularized imports:\nexport default setDay;\n","import { setDay } from \"../../../setDay.js\";\nimport { Parser } from \"../Parser.js\";\n\n// Day of week\nexport class DayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match) {\n switch (token) {\n // Tue\n case \"E\":\n case \"EE\":\n case \"EEE\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // T\n case \"EEEEE\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"EEEEEE\":\n return (\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // Tuesday\n case \"EEEE\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"D\", \"i\", \"e\", \"c\", \"t\", \"T\"];\n}\n","import { setDay } from \"../../../setDay.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits } from \"../utils.js\";\n\n// Local day of week\nexport class LocalDayParser extends Parser {\n priority = 90;\n parse(dateString, token, match, options) {\n const valueCallback = (value) => {\n // We want here floor instead of trunc, so we get -7 for value 0 instead of 0\n const wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case \"e\":\n case \"ee\": // 03\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n // 3rd\n case \"eo\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"day\",\n }),\n valueCallback,\n );\n // Tue\n case \"eee\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // T\n case \"eeeee\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n // Tu\n case \"eeeeee\":\n return (\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n\n // Tuesday\n case \"eeee\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"formatting\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"formatting\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"formatting\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"E\",\n \"i\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { setDay } from \"../../../setDay.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits } from \"../utils.js\";\n\n// Stand-alone local day of week\nexport class StandAloneLocalDayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match, options) {\n const valueCallback = (value) => {\n // We want here floor instead of trunc, so we get -7 for value 0 instead of 0\n const wholeWeekDays = Math.floor((value - 1) / 7) * 7;\n return ((value + options.weekStartsOn + 6) % 7) + wholeWeekDays;\n };\n\n switch (token) {\n // 3\n case \"c\":\n case \"cc\": // 03\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n // 3rd\n case \"co\":\n return mapValue(\n match.ordinalNumber(dateString, {\n unit: \"day\",\n }),\n valueCallback,\n );\n // Tue\n case \"ccc\":\n return (\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // T\n case \"ccccc\":\n return match.day(dateString, {\n width: \"narrow\",\n context: \"standalone\",\n });\n // Tu\n case \"cccccc\":\n return (\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n\n // Tuesday\n case \"cccc\":\n default:\n return (\n match.day(dateString, { width: \"wide\", context: \"standalone\" }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"standalone\",\n }) ||\n match.day(dateString, { width: \"short\", context: \"standalone\" }) ||\n match.day(dateString, { width: \"narrow\", context: \"standalone\" })\n );\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 6;\n }\n\n set(date, _flags, value, options) {\n date = setDay(date, value, options);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"R\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"I\",\n \"d\",\n \"D\",\n \"E\",\n \"i\",\n \"e\",\n \"t\",\n \"T\",\n ];\n}\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getISODay} function options.\n */\n\n/**\n * @name getISODay\n * @category Weekday Helpers\n * @summary Get the day of the ISO week of the given date.\n *\n * @description\n * Get the day of the ISO week of the given date,\n * which is 7 for Sunday, 1 for Monday etc.\n *\n * ISO week-numbering year: http://en.wikipedia.org/wiki/ISO_week_date\n *\n * @param date - The given date\n * @param options - An object with options\n *\n * @returns The day of ISO week\n *\n * @example\n * // Which day of the ISO week is 26 February 2012?\n * const result = getISODay(new Date(2012, 1, 26))\n * //=> 7\n */\nexport function getISODay(date, options) {\n const day = toDate(date, options?.in).getDay();\n return day === 0 ? 7 : day;\n}\n\n// Fallback for modularized imports:\nexport default getISODay;\n","import { addDays } from \"./addDays.js\";\nimport { getISODay } from \"./getISODay.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setISODay} function options.\n */\n\n/**\n * @name setISODay\n * @category Weekday Helpers\n * @summary Set the day of the ISO week to the given date.\n *\n * @description\n * Set the day of the ISO week to the given date.\n * ISO week starts with Monday.\n * 7 is the index of Sunday, 1 is the index of Monday, etc.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param day - The day of the ISO week of the new date\n * @param options - An object with options\n *\n * @returns The new date with the day of the ISO week set\n *\n * @example\n * // Set Sunday to 1 September 2014:\n * const result = setISODay(new Date(2014, 8, 1), 7)\n * //=> Sun Sep 07 2014 00:00:00\n */\nexport function setISODay(date, day, options) {\n const date_ = toDate(date, options?.in);\n const currentDay = getISODay(date_, options);\n const diff = day - currentDay;\n return addDays(date_, diff, options);\n}\n\n// Fallback for modularized imports:\nexport default setISODay;\n","import { setISODay } from \"../../../setISODay.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits } from \"../utils.js\";\n\n// ISO day of week\nexport class ISODayParser extends Parser {\n priority = 90;\n\n parse(dateString, token, match) {\n const valueCallback = (value) => {\n if (value === 0) {\n return 7;\n }\n return value;\n };\n\n switch (token) {\n // 2\n case \"i\":\n case \"ii\": // 02\n return parseNDigits(token.length, dateString);\n // 2nd\n case \"io\":\n return match.ordinalNumber(dateString, { unit: \"day\" });\n // Tue\n case \"iii\":\n return mapValue(\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // T\n case \"iiiii\":\n return mapValue(\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // Tu\n case \"iiiiii\":\n return mapValue(\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n // Tuesday\n case \"iiii\":\n default:\n return mapValue(\n match.day(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"short\",\n context: \"formatting\",\n }) ||\n match.day(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n }),\n valueCallback,\n );\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 7;\n }\n\n set(date, _flags, value) {\n date = setISODay(date, value);\n date.setHours(0, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\n \"y\",\n \"Y\",\n \"u\",\n \"q\",\n \"Q\",\n \"M\",\n \"L\",\n \"w\",\n \"d\",\n \"D\",\n \"E\",\n \"e\",\n \"c\",\n \"t\",\n \"T\",\n ];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { dayPeriodEnumToHours } from \"../utils.js\";\n\nexport class AMPMParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"a\":\n case \"aa\":\n case \"aaa\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"aaaaa\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"aaaa\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"b\", \"B\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { dayPeriodEnumToHours } from \"../utils.js\";\n\nexport class AMPMMidnightParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"b\":\n case \"bb\":\n case \"bbb\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"bbbbb\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"bbbb\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"B\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { dayPeriodEnumToHours } from \"../utils.js\";\n\n// in the morning, in the afternoon, in the evening, at night\nexport class DayPeriodParser extends Parser {\n priority = 80;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"B\":\n case \"BB\":\n case \"BBB\":\n return (\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n\n case \"BBBBB\":\n return match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n });\n case \"BBBB\":\n default:\n return (\n match.dayPeriod(dateString, {\n width: \"wide\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"abbreviated\",\n context: \"formatting\",\n }) ||\n match.dayPeriod(dateString, {\n width: \"narrow\",\n context: \"formatting\",\n })\n );\n }\n }\n\n set(date, _flags, value) {\n date.setHours(dayPeriodEnumToHours(value), 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class Hour1to12Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"h\":\n return parseNumericPattern(numericPatterns.hour12h, dateString);\n case \"ho\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 12;\n }\n\n set(date, _flags, value) {\n const isPM = date.getHours() >= 12;\n if (isPM && value < 12) {\n date.setHours(value + 12, 0, 0, 0);\n } else if (!isPM && value === 12) {\n date.setHours(0, 0, 0, 0);\n } else {\n date.setHours(value, 0, 0, 0);\n }\n return date;\n }\n\n incompatibleTokens = [\"H\", \"K\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class Hour0to23Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"H\":\n return parseNumericPattern(numericPatterns.hour23h, dateString);\n case \"Ho\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 23;\n }\n\n set(date, _flags, value) {\n date.setHours(value, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"h\", \"K\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class Hour0To11Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"K\":\n return parseNumericPattern(numericPatterns.hour11h, dateString);\n case \"Ko\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 11;\n }\n\n set(date, _flags, value) {\n const isPM = date.getHours() >= 12;\n if (isPM && value < 12) {\n date.setHours(value + 12, 0, 0, 0);\n } else {\n date.setHours(value, 0, 0, 0);\n }\n return date;\n }\n\n incompatibleTokens = [\"h\", \"H\", \"k\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class Hour1To24Parser extends Parser {\n priority = 70;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"k\":\n return parseNumericPattern(numericPatterns.hour24h, dateString);\n case \"ko\":\n return match.ordinalNumber(dateString, { unit: \"hour\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 1 && value <= 24;\n }\n\n set(date, _flags, value) {\n const hours = value <= 24 ? value % 24 : value;\n date.setHours(hours, 0, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"a\", \"b\", \"h\", \"H\", \"K\", \"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class MinuteParser extends Parser {\n priority = 60;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"m\":\n return parseNumericPattern(numericPatterns.minute, dateString);\n case \"mo\":\n return match.ordinalNumber(dateString, { unit: \"minute\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 59;\n }\n\n set(date, _flags, value) {\n date.setMinutes(value, 0, 0);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { numericPatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseNDigits, parseNumericPattern } from \"../utils.js\";\n\nexport class SecondParser extends Parser {\n priority = 50;\n\n parse(dateString, token, match) {\n switch (token) {\n case \"s\":\n return parseNumericPattern(numericPatterns.second, dateString);\n case \"so\":\n return match.ordinalNumber(dateString, { unit: \"second\" });\n default:\n return parseNDigits(token.length, dateString);\n }\n }\n\n validate(_date, value) {\n return value >= 0 && value <= 59;\n }\n\n set(date, _flags, value) {\n date.setSeconds(value, 0);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { Parser } from \"../Parser.js\";\n\nimport { mapValue, parseNDigits } from \"../utils.js\";\n\nexport class FractionOfSecondParser extends Parser {\n priority = 30;\n\n parse(dateString, token) {\n const valueCallback = (value) =>\n Math.trunc(value * Math.pow(10, -token.length + 3));\n return mapValue(parseNDigits(token.length, dateString), valueCallback);\n }\n\n set(date, _flags, value) {\n date.setMilliseconds(value);\n return date;\n }\n\n incompatibleTokens = [\"t\", \"T\"];\n}\n","import { constructFrom } from \"../../../constructFrom.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"../../../_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { timezonePatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseTimezonePattern } from \"../utils.js\";\n\n// Timezone (ISO-8601. +00:00 is `'Z'`)\nexport class ISOTimezoneWithZParser extends Parser {\n priority = 10;\n\n parse(dateString, token) {\n switch (token) {\n case \"X\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalMinutes,\n dateString,\n );\n case \"XX\":\n return parseTimezonePattern(timezonePatterns.basic, dateString);\n case \"XXXX\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalSeconds,\n dateString,\n );\n case \"XXXXX\":\n return parseTimezonePattern(\n timezonePatterns.extendedOptionalSeconds,\n dateString,\n );\n case \"XXX\":\n default:\n return parseTimezonePattern(timezonePatterns.extended, dateString);\n }\n }\n\n set(date, flags, value) {\n if (flags.timestampIsSet) return date;\n return constructFrom(\n date,\n date.getTime() - getTimezoneOffsetInMilliseconds(date) - value,\n );\n }\n\n incompatibleTokens = [\"t\", \"T\", \"x\"];\n}\n","import { constructFrom } from \"../../../constructFrom.js\";\nimport { getTimezoneOffsetInMilliseconds } from \"../../../_lib/getTimezoneOffsetInMilliseconds.js\";\nimport { timezonePatterns } from \"../constants.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseTimezonePattern } from \"../utils.js\";\n\n// Timezone (ISO-8601)\nexport class ISOTimezoneParser extends Parser {\n priority = 10;\n\n parse(dateString, token) {\n switch (token) {\n case \"x\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalMinutes,\n dateString,\n );\n case \"xx\":\n return parseTimezonePattern(timezonePatterns.basic, dateString);\n case \"xxxx\":\n return parseTimezonePattern(\n timezonePatterns.basicOptionalSeconds,\n dateString,\n );\n case \"xxxxx\":\n return parseTimezonePattern(\n timezonePatterns.extendedOptionalSeconds,\n dateString,\n );\n case \"xxx\":\n default:\n return parseTimezonePattern(timezonePatterns.extended, dateString);\n }\n }\n\n set(date, flags, value) {\n if (flags.timestampIsSet) return date;\n return constructFrom(\n date,\n date.getTime() - getTimezoneOffsetInMilliseconds(date) - value,\n );\n }\n\n incompatibleTokens = [\"t\", \"T\", \"X\"];\n}\n","import { constructFrom } from \"../../../constructFrom.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseAnyDigitsSigned } from \"../utils.js\";\n\nexport class TimestampSecondsParser extends Parser {\n priority = 40;\n\n parse(dateString) {\n return parseAnyDigitsSigned(dateString);\n }\n\n set(date, _flags, value) {\n return [constructFrom(date, value * 1000), { timestampIsSet: true }];\n }\n\n incompatibleTokens = \"*\";\n}\n","import { constructFrom } from \"../../../constructFrom.js\";\nimport { Parser } from \"../Parser.js\";\n\nimport { parseAnyDigitsSigned } from \"../utils.js\";\n\nexport class TimestampMillisecondsParser extends Parser {\n priority = 20;\n\n parse(dateString) {\n return parseAnyDigitsSigned(dateString);\n }\n\n set(date, _flags, value) {\n return [constructFrom(date, value), { timestampIsSet: true }];\n }\n\n incompatibleTokens = \"*\";\n}\n","import { EraParser } from \"./parsers/EraParser.js\";\nimport { YearParser } from \"./parsers/YearParser.js\";\nimport { LocalWeekYearParser } from \"./parsers/LocalWeekYearParser.js\";\nimport { ISOWeekYearParser } from \"./parsers/ISOWeekYearParser.js\";\nimport { ExtendedYearParser } from \"./parsers/ExtendedYearParser.js\";\nimport { QuarterParser } from \"./parsers/QuarterParser.js\";\nimport { StandAloneQuarterParser } from \"./parsers/StandAloneQuarterParser.js\";\nimport { MonthParser } from \"./parsers/MonthParser.js\";\nimport { StandAloneMonthParser } from \"./parsers/StandAloneMonthParser.js\";\nimport { LocalWeekParser } from \"./parsers/LocalWeekParser.js\";\nimport { ISOWeekParser } from \"./parsers/ISOWeekParser.js\";\nimport { DateParser } from \"./parsers/DateParser.js\";\nimport { DayOfYearParser } from \"./parsers/DayOfYearParser.js\";\nimport { DayParser } from \"./parsers/DayParser.js\";\nimport { LocalDayParser } from \"./parsers/LocalDayParser.js\";\nimport { StandAloneLocalDayParser } from \"./parsers/StandAloneLocalDayParser.js\";\nimport { ISODayParser } from \"./parsers/ISODayParser.js\";\nimport { AMPMParser } from \"./parsers/AMPMParser.js\";\nimport { AMPMMidnightParser } from \"./parsers/AMPMMidnightParser.js\";\nimport { DayPeriodParser } from \"./parsers/DayPeriodParser.js\";\nimport { Hour1to12Parser } from \"./parsers/Hour1to12Parser.js\";\nimport { Hour0to23Parser } from \"./parsers/Hour0to23Parser.js\";\nimport { Hour0To11Parser } from \"./parsers/Hour0To11Parser.js\";\nimport { Hour1To24Parser } from \"./parsers/Hour1To24Parser.js\";\nimport { MinuteParser } from \"./parsers/MinuteParser.js\";\nimport { SecondParser } from \"./parsers/SecondParser.js\";\nimport { FractionOfSecondParser } from \"./parsers/FractionOfSecondParser.js\";\nimport { ISOTimezoneWithZParser } from \"./parsers/ISOTimezoneWithZParser.js\";\nimport { ISOTimezoneParser } from \"./parsers/ISOTimezoneParser.js\";\nimport { TimestampSecondsParser } from \"./parsers/TimestampSecondsParser.js\";\nimport { TimestampMillisecondsParser } from \"./parsers/TimestampMillisecondsParser.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | Milliseconds in day |\n * | b | AM, PM, noon, midnight | B | Flexible day period |\n * | c | Stand-alone local day of week | C* | Localized hour w/ day period |\n * | d | Day of month | D | Day of year |\n * | e | Local day of week | E | Day of week |\n * | f | | F* | Day of week in month |\n * | g* | Modified Julian day | G | Era |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | i! | ISO day of week | I! | ISO week of year |\n * | j* | Localized hour w/ day period | J* | Localized hour w/o day period |\n * | k | Hour [1-24] | K | Hour [0-11] |\n * | l* | (deprecated) | L | Stand-alone month |\n * | m | Minute | M | Month |\n * | n | | N | |\n * | o! | Ordinal number modifier | O* | Timezone (GMT) |\n * | p | | P | |\n * | q | Stand-alone quarter | Q | Quarter |\n * | r* | Related Gregorian year | R! | ISO week-numbering year |\n * | s | Second | S | Fraction of second |\n * | t! | Seconds timestamp | T! | Milliseconds timestamp |\n * | u | Extended year | U* | Cyclic year |\n * | v* | Timezone (generic non-locat.) | V* | Timezone (location) |\n * | w | Local week of year | W* | Week of month |\n * | x | Timezone (ISO-8601 w/o Z) | X | Timezone (ISO-8601) |\n * | y | Year (abs) | Y | Local week-numbering year |\n * | z* | Timezone (specific non-locat.) | Z* | Timezone (aliases) |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n *\n * Letters marked by ! are non-standard, but implemented by date-fns:\n * - `o` modifies the previous token to turn it into an ordinal (see `parse` docs)\n * - `i` is ISO day of week. For `i` and `ii` is returns numeric ISO week days,\n * i.e. 7 for Sunday, 1 for Monday, etc.\n * - `I` is ISO week of year, as opposed to `w` which is local week of year.\n * - `R` is ISO week-numbering year, as opposed to `Y` which is local week-numbering year.\n * `R` is supposed to be used in conjunction with `I` and `i`\n * for universal ISO week-numbering date, whereas\n * `Y` is supposed to be used in conjunction with `w` and `e`\n * for week-numbering date specific to the locale.\n */\nexport const parsers = {\n G: new EraParser(),\n y: new YearParser(),\n Y: new LocalWeekYearParser(),\n R: new ISOWeekYearParser(),\n u: new ExtendedYearParser(),\n Q: new QuarterParser(),\n q: new StandAloneQuarterParser(),\n M: new MonthParser(),\n L: new StandAloneMonthParser(),\n w: new LocalWeekParser(),\n I: new ISOWeekParser(),\n d: new DateParser(),\n D: new DayOfYearParser(),\n E: new DayParser(),\n e: new LocalDayParser(),\n c: new StandAloneLocalDayParser(),\n i: new ISODayParser(),\n a: new AMPMParser(),\n b: new AMPMMidnightParser(),\n B: new DayPeriodParser(),\n h: new Hour1to12Parser(),\n H: new Hour0to23Parser(),\n K: new Hour0To11Parser(),\n k: new Hour1To24Parser(),\n m: new MinuteParser(),\n s: new SecondParser(),\n S: new FractionOfSecondParser(),\n X: new ISOTimezoneWithZParser(),\n x: new ISOTimezoneParser(),\n t: new TimestampSecondsParser(),\n T: new TimestampMillisecondsParser(),\n};\n","import { defaultLocale } from \"./_lib/defaultLocale.js\";\nimport { longFormatters } from \"./_lib/format/longFormatters.js\";\nimport {\n isProtectedDayOfYearToken,\n isProtectedWeekYearToken,\n warnOrThrowProtectedError,\n} from \"./_lib/protectedTokens.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { getDefaultOptions } from \"./getDefaultOptions.js\";\nimport { toDate } from \"./toDate.js\";\n\nimport { DateTimezoneSetter } from \"./parse/_lib/Setter.js\";\nimport { parsers } from \"./parse/_lib/parsers.js\";\n\n// Rexports of internal for libraries to use.\n// See: https://github.com/date-fns/date-fns/issues/3638#issuecomment-1877082874\nexport { longFormatters, parsers };\n\n/**\n * The {@link parse} function options.\n */\n\n// This RegExp consists of three parts separated by `|`:\n// - [yYQqMLwIdDecihHKkms]o matches any available ordinal number token\n// (one of the certain letters followed by `o`)\n// - (\\w)\\1* matches any sequences of the same letter\n// - '' matches two quote characters in a row\n// - '(''|[^'])+('|$) matches anything surrounded by two quote characters ('),\n// except a single quote symbol, which ends the sequence.\n// Two quote characters do not end the sequence.\n// If there is no matching single quote\n// then the sequence will continue until the end of the string.\n// - . matches any single character unmatched by previous parts of the RegExps\nconst formattingTokensRegExp =\n /[yYQqMLwIdDecihHKkms]o|(\\w)\\1*|''|'(''|[^'])+('|$)|./g;\n\n// This RegExp catches symbols escaped by quotes, and also\n// sequences of symbols P, p, and the combinations like `PPPPPPPppppp`\nconst longFormattingTokensRegExp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\nconst escapedStringRegExp = /^'([^]*?)'?$/;\nconst doubleQuoteRegExp = /''/g;\n\nconst notWhitespaceRegExp = /\\S/;\nconst unescapedLatinCharacterRegExp = /[a-zA-Z]/;\n\n/**\n * @name parse\n * @category Common Helpers\n * @summary Parse the date.\n *\n * @description\n * Return the date parsed from string using the given format string.\n *\n * > ⚠️ Please note that the `format` tokens differ from Moment.js and other libraries.\n * > See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * The characters in the format string wrapped between two single quotes characters (') are escaped.\n * Two single quotes in a row, whether inside or outside a quoted sequence, represent a 'real' single quote.\n *\n * Format of the format string is based on Unicode Technical Standard #35:\n * https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table\n * with a few additions (see note 5 below the table).\n *\n * Not all tokens are compatible. Combinations that don't make sense or could lead to bugs are prohibited\n * and will throw `RangeError`. For example usage of 24-hour format token with AM/PM token will throw an exception:\n *\n * ```javascript\n * parse('23 AM', 'HH a', new Date())\n * //=> RangeError: The format string mustn't contain `HH` and `a` at the same time\n * ```\n *\n * See the compatibility table: https://docs.google.com/spreadsheets/d/e/2PACX-1vQOPU3xUhplll6dyoMmVUXHKl_8CRDs6_ueLmex3SoqwhuolkuN3O05l4rqx5h1dKX8eb46Ul-CCSrq/pubhtml?gid=0&single=true\n *\n * Accepted format string patterns:\n * | Unit |Prior| Pattern | Result examples | Notes |\n * |---------------------------------|-----|---------|-----------------------------------|-------|\n * | Era | 140 | G..GGG | AD, BC | |\n * | | | GGGG | Anno Domini, Before Christ | 2 |\n * | | | GGGGG | A, B | |\n * | Calendar year | 130 | y | 44, 1, 1900, 2017, 9999 | 4 |\n * | | | yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | yy | 44, 01, 00, 17 | 4 |\n * | | | yyy | 044, 001, 123, 999 | 4 |\n * | | | yyyy | 0044, 0001, 1900, 2017 | 4 |\n * | | | yyyyy | ... | 2,4 |\n * | Local week-numbering year | 130 | Y | 44, 1, 1900, 2017, 9000 | 4 |\n * | | | Yo | 44th, 1st, 1900th, 9999999th | 4,5 |\n * | | | YY | 44, 01, 00, 17 | 4,6 |\n * | | | YYY | 044, 001, 123, 999 | 4 |\n * | | | YYYY | 0044, 0001, 1900, 2017 | 4,6 |\n * | | | YYYYY | ... | 2,4 |\n * | ISO week-numbering year | 130 | R | -43, 1, 1900, 2017, 9999, -9999 | 4,5 |\n * | | | RR | -43, 01, 00, 17 | 4,5 |\n * | | | RRR | -043, 001, 123, 999, -999 | 4,5 |\n * | | | RRRR | -0043, 0001, 2017, 9999, -9999 | 4,5 |\n * | | | RRRRR | ... | 2,4,5 |\n * | Extended year | 130 | u | -43, 1, 1900, 2017, 9999, -999 | 4 |\n * | | | uu | -43, 01, 99, -99 | 4 |\n * | | | uuu | -043, 001, 123, 999, -999 | 4 |\n * | | | uuuu | -0043, 0001, 2017, 9999, -9999 | 4 |\n * | | | uuuuu | ... | 2,4 |\n * | Quarter (formatting) | 120 | Q | 1, 2, 3, 4 | |\n * | | | Qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | QQ | 01, 02, 03, 04 | |\n * | | | QQQ | Q1, Q2, Q3, Q4 | |\n * | | | QQQQ | 1st quarter, 2nd quarter, ... | 2 |\n * | | | QQQQQ | 1, 2, 3, 4 | 4 |\n * | Quarter (stand-alone) | 120 | q | 1, 2, 3, 4 | |\n * | | | qo | 1st, 2nd, 3rd, 4th | 5 |\n * | | | qq | 01, 02, 03, 04 | |\n * | | | qqq | Q1, Q2, Q3, Q4 | |\n * | | | qqqq | 1st quarter, 2nd quarter, ... | 2 |\n * | | | qqqqq | 1, 2, 3, 4 | 3 |\n * | Month (formatting) | 110 | M | 1, 2, ..., 12 | |\n * | | | Mo | 1st, 2nd, ..., 12th | 5 |\n * | | | MM | 01, 02, ..., 12 | |\n * | | | MMM | Jan, Feb, ..., Dec | |\n * | | | MMMM | January, February, ..., December | 2 |\n * | | | MMMMM | J, F, ..., D | |\n * | Month (stand-alone) | 110 | L | 1, 2, ..., 12 | |\n * | | | Lo | 1st, 2nd, ..., 12th | 5 |\n * | | | LL | 01, 02, ..., 12 | |\n * | | | LLL | Jan, Feb, ..., Dec | |\n * | | | LLLL | January, February, ..., December | 2 |\n * | | | LLLLL | J, F, ..., D | |\n * | Local week of year | 100 | w | 1, 2, ..., 53 | |\n * | | | wo | 1st, 2nd, ..., 53th | 5 |\n * | | | ww | 01, 02, ..., 53 | |\n * | ISO week of year | 100 | I | 1, 2, ..., 53 | 5 |\n * | | | Io | 1st, 2nd, ..., 53th | 5 |\n * | | | II | 01, 02, ..., 53 | 5 |\n * | Day of month | 90 | d | 1, 2, ..., 31 | |\n * | | | do | 1st, 2nd, ..., 31st | 5 |\n * | | | dd | 01, 02, ..., 31 | |\n * | Day of year | 90 | D | 1, 2, ..., 365, 366 | 7 |\n * | | | Do | 1st, 2nd, ..., 365th, 366th | 5 |\n * | | | DD | 01, 02, ..., 365, 366 | 7 |\n * | | | DDD | 001, 002, ..., 365, 366 | |\n * | | | DDDD | ... | 2 |\n * | Day of week (formatting) | 90 | E..EEE | Mon, Tue, Wed, ..., Sun | |\n * | | | EEEE | Monday, Tuesday, ..., Sunday | 2 |\n * | | | EEEEE | M, T, W, T, F, S, S | |\n * | | | EEEEEE | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | ISO day of week (formatting) | 90 | i | 1, 2, 3, ..., 7 | 5 |\n * | | | io | 1st, 2nd, ..., 7th | 5 |\n * | | | ii | 01, 02, ..., 07 | 5 |\n * | | | iii | Mon, Tue, Wed, ..., Sun | 5 |\n * | | | iiii | Monday, Tuesday, ..., Sunday | 2,5 |\n * | | | iiiii | M, T, W, T, F, S, S | 5 |\n * | | | iiiiii | Mo, Tu, We, Th, Fr, Sa, Su | 5 |\n * | Local day of week (formatting) | 90 | e | 2, 3, 4, ..., 1 | |\n * | | | eo | 2nd, 3rd, ..., 1st | 5 |\n * | | | ee | 02, 03, ..., 01 | |\n * | | | eee | Mon, Tue, Wed, ..., Sun | |\n * | | | eeee | Monday, Tuesday, ..., Sunday | 2 |\n * | | | eeeee | M, T, W, T, F, S, S | |\n * | | | eeeeee | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | Local day of week (stand-alone) | 90 | c | 2, 3, 4, ..., 1 | |\n * | | | co | 2nd, 3rd, ..., 1st | 5 |\n * | | | cc | 02, 03, ..., 01 | |\n * | | | ccc | Mon, Tue, Wed, ..., Sun | |\n * | | | cccc | Monday, Tuesday, ..., Sunday | 2 |\n * | | | ccccc | M, T, W, T, F, S, S | |\n * | | | cccccc | Mo, Tu, We, Th, Fr, Sa, Su | |\n * | AM, PM | 80 | a..aaa | AM, PM | |\n * | | | aaaa | a.m., p.m. | 2 |\n * | | | aaaaa | a, p | |\n * | AM, PM, noon, midnight | 80 | b..bbb | AM, PM, noon, midnight | |\n * | | | bbbb | a.m., p.m., noon, midnight | 2 |\n * | | | bbbbb | a, p, n, mi | |\n * | Flexible day period | 80 | B..BBB | at night, in the morning, ... | |\n * | | | BBBB | at night, in the morning, ... | 2 |\n * | | | BBBBB | at night, in the morning, ... | |\n * | Hour [1-12] | 70 | h | 1, 2, ..., 11, 12 | |\n * | | | ho | 1st, 2nd, ..., 11th, 12th | 5 |\n * | | | hh | 01, 02, ..., 11, 12 | |\n * | Hour [0-23] | 70 | H | 0, 1, 2, ..., 23 | |\n * | | | Ho | 0th, 1st, 2nd, ..., 23rd | 5 |\n * | | | HH | 00, 01, 02, ..., 23 | |\n * | Hour [0-11] | 70 | K | 1, 2, ..., 11, 0 | |\n * | | | Ko | 1st, 2nd, ..., 11th, 0th | 5 |\n * | | | KK | 01, 02, ..., 11, 00 | |\n * | Hour [1-24] | 70 | k | 24, 1, 2, ..., 23 | |\n * | | | ko | 24th, 1st, 2nd, ..., 23rd | 5 |\n * | | | kk | 24, 01, 02, ..., 23 | |\n * | Minute | 60 | m | 0, 1, ..., 59 | |\n * | | | mo | 0th, 1st, ..., 59th | 5 |\n * | | | mm | 00, 01, ..., 59 | |\n * | Second | 50 | s | 0, 1, ..., 59 | |\n * | | | so | 0th, 1st, ..., 59th | 5 |\n * | | | ss | 00, 01, ..., 59 | |\n * | Seconds timestamp | 40 | t | 512969520 | |\n * | | | tt | ... | 2 |\n * | Fraction of second | 30 | S | 0, 1, ..., 9 | |\n * | | | SS | 00, 01, ..., 99 | |\n * | | | SSS | 000, 001, ..., 999 | |\n * | | | SSSS | ... | 2 |\n * | Milliseconds timestamp | 20 | T | 512969520900 | |\n * | | | TT | ... | 2 |\n * | Timezone (ISO-8601 w/ Z) | 10 | X | -08, +0530, Z | |\n * | | | XX | -0800, +0530, Z | |\n * | | | XXX | -08:00, +05:30, Z | |\n * | | | XXXX | -0800, +0530, Z, +123456 | 2 |\n * | | | XXXXX | -08:00, +05:30, Z, +12:34:56 | |\n * | Timezone (ISO-8601 w/o Z) | 10 | x | -08, +0530, +00 | |\n * | | | xx | -0800, +0530, +0000 | |\n * | | | xxx | -08:00, +05:30, +00:00 | 2 |\n * | | | xxxx | -0800, +0530, +0000, +123456 | |\n * | | | xxxxx | -08:00, +05:30, +00:00, +12:34:56 | |\n * | Long localized date | NA | P | 05/29/1453 | 5,8 |\n * | | | PP | May 29, 1453 | |\n * | | | PPP | May 29th, 1453 | |\n * | | | PPPP | Sunday, May 29th, 1453 | 2,5,8 |\n * | Long localized time | NA | p | 12:00 AM | 5,8 |\n * | | | pp | 12:00:00 AM | |\n * | Combination of date and time | NA | Pp | 05/29/1453, 12:00 AM | |\n * | | | PPpp | May 29, 1453, 12:00:00 AM | |\n * | | | PPPpp | May 29th, 1453 at ... | |\n * | | | PPPPpp | Sunday, May 29th, 1453 at ... | 2,5,8 |\n * Notes:\n * 1. \"Formatting\" units (e.g. formatting quarter) in the default en-US locale\n * are the same as \"stand-alone\" units, but are different in some languages.\n * \"Formatting\" units are declined according to the rules of the language\n * in the context of a date. \"Stand-alone\" units are always nominative singular.\n * In `format` function, they will produce different result:\n *\n * `format(new Date(2017, 10, 6), 'do LLLL', {locale: cs}) //=> '6. listopad'`\n *\n * `format(new Date(2017, 10, 6), 'do MMMM', {locale: cs}) //=> '6. listopadu'`\n *\n * `parse` will try to match both formatting and stand-alone units interchangeably.\n *\n * 2. Any sequence of the identical letters is a pattern, unless it is escaped by\n * the single quote characters (see below).\n * If the sequence is longer than listed in table:\n * - for numerical units (`yyyyyyyy`) `parse` will try to match a number\n * as wide as the sequence\n * - for text units (`MMMMMMMM`) `parse` will try to match the widest variation of the unit.\n * These variations are marked with \"2\" in the last column of the table.\n *\n * 3. `QQQQQ` and `qqqqq` could be not strictly numerical in some locales.\n * These tokens represent the shortest form of the quarter.\n *\n * 4. The main difference between `y` and `u` patterns are B.C. years:\n *\n * | Year | `y` | `u` |\n * |------|-----|-----|\n * | AC 1 | 1 | 1 |\n * | BC 1 | 1 | 0 |\n * | BC 2 | 2 | -1 |\n *\n * Also `yy` will try to guess the century of two digit year by proximity with `referenceDate`:\n *\n * `parse('50', 'yy', new Date(2018, 0, 1)) //=> Sat Jan 01 2050 00:00:00`\n *\n * `parse('75', 'yy', new Date(2018, 0, 1)) //=> Wed Jan 01 1975 00:00:00`\n *\n * while `uu` will just assign the year as is:\n *\n * `parse('50', 'uu', new Date(2018, 0, 1)) //=> Sat Jan 01 0050 00:00:00`\n *\n * `parse('75', 'uu', new Date(2018, 0, 1)) //=> Tue Jan 01 0075 00:00:00`\n *\n * The same difference is true for local and ISO week-numbering years (`Y` and `R`),\n * except local week-numbering years are dependent on `options.weekStartsOn`\n * and `options.firstWeekContainsDate` (compare [setISOWeekYear](https://date-fns.org/docs/setISOWeekYear)\n * and [setWeekYear](https://date-fns.org/docs/setWeekYear)).\n *\n * 5. These patterns are not in the Unicode Technical Standard #35:\n * - `i`: ISO day of week\n * - `I`: ISO week of year\n * - `R`: ISO week-numbering year\n * - `o`: ordinal number modifier\n * - `P`: long localized date\n * - `p`: long localized time\n *\n * 6. `YY` and `YYYY` tokens represent week-numbering years but they are often confused with years.\n * You should enable `options.useAdditionalWeekYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 7. `D` and `DD` tokens represent days of the year but they are often confused with days of the month.\n * You should enable `options.useAdditionalDayOfYearTokens` to use them. See: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * 8. `P+` tokens do not have a defined priority since they are merely aliases to other tokens based\n * on the given locale.\n *\n * using `en-US` locale: `P` => `MM/dd/yyyy`\n * using `en-US` locale: `p` => `hh:mm a`\n * using `pt-BR` locale: `P` => `dd/MM/yyyy`\n * using `pt-BR` locale: `p` => `HH:mm`\n *\n * Values will be assigned to the date in the descending order of its unit's priority.\n * Units of an equal priority overwrite each other in the order of appearance.\n *\n * If no values of higher priority are parsed (e.g. when parsing string 'January 1st' without a year),\n * the values will be taken from 3rd argument `referenceDate` which works as a context of parsing.\n *\n * `referenceDate` must be passed for correct work of the function.\n * If you're not sure which `referenceDate` to supply, create a new instance of Date:\n * `parse('02/11/2014', 'MM/dd/yyyy', new Date())`\n * In this case parsing will be done in the context of the current date.\n * If `referenceDate` is `Invalid Date` or a value not convertible to valid `Date`,\n * then `Invalid Date` will be returned.\n *\n * The result may vary by locale.\n *\n * If `formatString` matches with `dateString` but does not provides tokens, `referenceDate` will be returned.\n *\n * If parsing failed, `Invalid Date` will be returned.\n * Invalid Date is a Date, whose time value is NaN.\n * Time value of Date: http://es5.github.io/#x15.9.1.1\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param dateStr - The string to parse\n * @param formatStr - The string of tokens\n * @param referenceDate - defines values missing from the parsed dateString\n * @param options - An object with options.\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n *\n * @returns The parsed date\n *\n * @throws `options.locale` must contain `match` property\n * @throws use `yyyy` instead of `YYYY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `yy` instead of `YY` for formatting years using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `d` instead of `D` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws use `dd` instead of `DD` for formatting days of the month using [format provided] to the input [input provided]; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md\n * @throws format string contains an unescaped latin alphabet character\n *\n * @example\n * // Parse 11 February 2014 from middle-endian format:\n * var result = parse('02/11/2014', 'MM/dd/yyyy', new Date())\n * //=> Tue Feb 11 2014 00:00:00\n *\n * @example\n * // Parse 28th of February in Esperanto locale in the context of 2010 year:\n * import eo from 'date-fns/locale/eo'\n * var result = parse('28-a de februaro', \"do 'de' MMMM\", new Date(2010, 0, 1), {\n * locale: eo\n * })\n * //=> Sun Feb 28 2010 00:00:00\n */\nexport function parse(dateStr, formatStr, referenceDate, options) {\n const invalidDate = () => constructFrom(options?.in || referenceDate, NaN);\n const defaultOptions = getDefaultOptions();\n const locale = options?.locale ?? defaultOptions.locale ?? defaultLocale;\n\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const weekStartsOn =\n options?.weekStartsOn ??\n options?.locale?.options?.weekStartsOn ??\n defaultOptions.weekStartsOn ??\n defaultOptions.locale?.options?.weekStartsOn ??\n 0;\n\n if (!formatStr)\n return dateStr ? invalidDate() : toDate(referenceDate, options?.in);\n\n const subFnOptions = {\n firstWeekContainsDate,\n weekStartsOn,\n locale,\n };\n\n // If timezone isn't specified, it will try to use the context or\n // the reference date and fallback to the system time zone.\n const setters = [new DateTimezoneSetter(options?.in, referenceDate)];\n\n const tokens = formatStr\n .match(longFormattingTokensRegExp)\n .map((substring) => {\n const firstCharacter = substring[0];\n if (firstCharacter in longFormatters) {\n const longFormatter = longFormatters[firstCharacter];\n return longFormatter(substring, locale.formatLong);\n }\n return substring;\n })\n .join(\"\")\n .match(formattingTokensRegExp);\n\n const usedTokens = [];\n\n for (let token of tokens) {\n if (\n !options?.useAdditionalWeekYearTokens &&\n isProtectedWeekYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n if (\n !options?.useAdditionalDayOfYearTokens &&\n isProtectedDayOfYearToken(token)\n ) {\n warnOrThrowProtectedError(token, formatStr, dateStr);\n }\n\n const firstCharacter = token[0];\n const parser = parsers[firstCharacter];\n if (parser) {\n const { incompatibleTokens } = parser;\n if (Array.isArray(incompatibleTokens)) {\n const incompatibleToken = usedTokens.find(\n (usedToken) =>\n incompatibleTokens.includes(usedToken.token) ||\n usedToken.token === firstCharacter,\n );\n if (incompatibleToken) {\n throw new RangeError(\n `The format string mustn't contain \\`${incompatibleToken.fullToken}\\` and \\`${token}\\` at the same time`,\n );\n }\n } else if (parser.incompatibleTokens === \"*\" && usedTokens.length > 0) {\n throw new RangeError(\n `The format string mustn't contain \\`${token}\\` and any other token at the same time`,\n );\n }\n\n usedTokens.push({ token: firstCharacter, fullToken: token });\n\n const parseResult = parser.run(\n dateStr,\n token,\n locale.match,\n subFnOptions,\n );\n\n if (!parseResult) {\n return invalidDate();\n }\n\n setters.push(parseResult.setter);\n\n dateStr = parseResult.rest;\n } else {\n if (firstCharacter.match(unescapedLatinCharacterRegExp)) {\n throw new RangeError(\n \"Format string contains an unescaped latin alphabet character `\" +\n firstCharacter +\n \"`\",\n );\n }\n\n // Replace two single quote characters with one single quote character\n if (token === \"''\") {\n token = \"'\";\n } else if (firstCharacter === \"'\") {\n token = cleanEscapedString(token);\n }\n\n // Cut token from string, or, if string doesn't match the token, return Invalid Date\n if (dateStr.indexOf(token) === 0) {\n dateStr = dateStr.slice(token.length);\n } else {\n return invalidDate();\n }\n }\n }\n\n // Check if the remaining input contains something other than whitespace\n if (dateStr.length > 0 && notWhitespaceRegExp.test(dateStr)) {\n return invalidDate();\n }\n\n const uniquePrioritySetters = setters\n .map((setter) => setter.priority)\n .sort((a, b) => b - a)\n .filter((priority, index, array) => array.indexOf(priority) === index)\n .map((priority) =>\n setters\n .filter((setter) => setter.priority === priority)\n .sort((a, b) => b.subPriority - a.subPriority),\n )\n .map((setterArray) => setterArray[0]);\n\n let date = toDate(referenceDate, options?.in);\n\n if (isNaN(+date)) return invalidDate();\n\n const flags = {};\n for (const setter of uniquePrioritySetters) {\n if (!setter.validate(date, subFnOptions)) {\n return invalidDate();\n }\n\n const result = setter.set(date, flags, subFnOptions);\n // Result is tuple (date, flags)\n if (Array.isArray(result)) {\n date = result[0];\n Object.assign(flags, result[1]);\n // Result is date\n } else {\n date = result;\n }\n }\n\n return date;\n}\n\nfunction cleanEscapedString(input) {\n return input.match(escapedStringRegExp)[1].replace(doubleQuoteRegExp, \"'\");\n}\n\n// Fallback for modularized imports:\nexport default parse;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setDate} function options.\n */\n\n/**\n * @name setDate\n * @category Day Helpers\n * @summary Set the day of the month to the given date.\n *\n * @description\n * Set the day of the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param dayOfMonth - The day of the month of the new date\n * @param options - The options\n *\n * @returns The new date with the day of the month set\n *\n * @example\n * // Set the 30th day of the month to 1 September 2014:\n * const result = setDate(new Date(2014, 8, 1), 30)\n * //=> Tue Sep 30 2014 00:00:00\n */\nexport function setDate(date, dayOfMonth, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(dayOfMonth);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setDate;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setHours} function options.\n */\n\n/**\n * @name setHours\n * @category Hour Helpers\n * @summary Set the hours to the given date.\n *\n * @description\n * Set the hours to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param hours - The hours of the new date\n * @param options - An object with options\n *\n * @returns The new date with the hours set\n *\n * @example\n * // Set 4 hours to 1 September 2014 11:30:00:\n * const result = setHours(new Date(2014, 8, 1, 11, 30), 4)\n * //=> Mon Sep 01 2014 04:30:00\n */\nexport function setHours(date, hours, options) {\n const _date = toDate(date, options?.in);\n _date.setHours(hours);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setHours;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMinutes} function options.\n */\n\n/**\n * @name setMinutes\n * @category Minute Helpers\n * @summary Set the minutes to the given date.\n *\n * @description\n * Set the minutes to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows using extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, returned from the context function, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param minutes - The minutes of the new date\n * @param options - An object with options\n *\n * @returns The new date with the minutes set\n *\n * @example\n * // Set 45 minutes to 1 September 2014 11:30:40:\n * const result = setMinutes(new Date(2014, 8, 1, 11, 30, 40), 45)\n * //=> Mon Sep 01 2014 11:45:40\n */\nexport function setMinutes(date, minutes, options) {\n const date_ = toDate(date, options?.in);\n date_.setMinutes(minutes);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setMinutes;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { getDaysInMonth } from \"./getDaysInMonth.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMonth} function options.\n */\n\n/**\n * @name setMonth\n * @category Month Helpers\n * @summary Set the month to the given date.\n *\n * @description\n * Set the month to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param month - The month index to set (0-11)\n * @param options - The options\n *\n * @returns The new date with the month set\n *\n * @example\n * // Set February to 1 September 2014:\n * const result = setMonth(new Date(2014, 8, 1), 1)\n * //=> Sat Feb 01 2014 00:00:00\n */\nexport function setMonth(date, month, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n const day = _date.getDate();\n\n const midMonth = constructFrom(options?.in || date, 0);\n midMonth.setFullYear(year, month, 15);\n midMonth.setHours(0, 0, 0, 0);\n const daysInMonth = getDaysInMonth(midMonth);\n\n // Set the earlier date, allows to wrap Jan 31 to Feb 28\n _date.setMonth(month, Math.min(day, daysInMonth));\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setSeconds} function options.\n */\n\n/**\n * @name setSeconds\n * @category Second Helpers\n * @summary Set the seconds to the given date, with context support.\n *\n * @description\n * Set the seconds to the given date, with an optional context for time zone specification.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param seconds - The seconds of the new date\n * @param options - An object with options\n *\n * @returns The new date with the seconds set\n *\n * @example\n * // Set 45 seconds to 1 September 2014 11:30:40:\n * const result = setSeconds(new Date(2014, 8, 1, 11, 30, 40), 45)\n * //=> Mon Sep 01 2014 11:30:45\n */\nexport function setSeconds(date, seconds, options) {\n const _date = toDate(date, options?.in);\n _date.setSeconds(seconds);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setSeconds;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setMilliseconds} function options.\n */\n\n/**\n * @name setMilliseconds\n * @category Millisecond Helpers\n * @summary Set the milliseconds to the given date.\n *\n * @description\n * Set the milliseconds to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param milliseconds - The milliseconds of the new date\n * @param options - The options\n *\n * @returns The new date with the milliseconds set\n *\n * @example\n * // Set 300 milliseconds to 1 September 2014 11:30:40.500:\n * const result = setMilliseconds(new Date(2014, 8, 1, 11, 30, 40, 500), 300)\n * //=> Mon Sep 01 2014 11:30:40.300\n */\nexport function setMilliseconds(date, milliseconds, options) {\n const _date = toDate(date, options?.in);\n _date.setMilliseconds(milliseconds);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default setMilliseconds;\n","import { constructFrom } from \"./constructFrom.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link setYear} function options.\n */\n\n/**\n * @name setYear\n * @category Year Helpers\n * @summary Set the year to the given date.\n *\n * @description\n * Set the year to the given date.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The date to be changed\n * @param year - The year of the new date\n * @param options - An object with options.\n *\n * @returns The new date with the year set\n *\n * @example\n * // Set year 2013 to 1 September 2014:\n * const result = setYear(new Date(2014, 8, 1), 2013)\n * //=> Sun Sep 01 2013 00:00:00\n */\nexport function setYear(date, year, options) {\n const date_ = toDate(date, options?.in);\n\n // Check if date is Invalid Date because Date.prototype.setFullYear ignores the value of Invalid Date\n if (isNaN(+date_)) return constructFrom(options?.in || date, NaN);\n\n date_.setFullYear(year);\n return date_;\n}\n\n// Fallback for modularized imports:\nexport default setYear;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link startOfMonth} function options.\n */\n\n/**\n * @name startOfMonth\n * @category Month Helpers\n * @summary Return the start of a month for the given date.\n *\n * @description\n * Return the start of a month for the given date. The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments.\n * Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed,\n * or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The start of a month\n *\n * @example\n * // The start of a month for 2 September 2014 11:55:00:\n * const result = startOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Mon Sep 01 2014 00:00:00\n */\nexport function startOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n _date.setDate(1);\n _date.setHours(0, 0, 0, 0);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default startOfMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link endOfMonth} function options.\n */\n\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * @typeParam DateType - The `Date` type, the function operates on. Gets inferred from passed arguments. Allows to use extensions like [`UTCDate`](https://github.com/date-fns/utc).\n * @typeParam ResultDate - The result `Date` type, it is the type returned from the context function if it is passed, or inferred from the arguments.\n *\n * @param date - The original date\n * @param options - An object with options\n *\n * @returns The end of a month\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\nexport function endOfMonth(date, options) {\n const _date = toDate(date, options?.in);\n const month = _date.getMonth();\n _date.setFullYear(_date.getFullYear(), month + 1, 0);\n _date.setHours(23, 59, 59, 999);\n return _date;\n}\n\n// Fallback for modularized imports:\nexport default endOfMonth;\n","import { toDate } from \"./toDate.js\";\n\n/**\n * The {@link isWithinInterval} function options.\n */\n\n/**\n * @name isWithinInterval\n * @category Interval Helpers\n * @summary Is the given date within the interval?\n *\n * @description\n * Is the given date within the interval? (Including start and end.)\n *\n * @param date - The date to check\n * @param interval - The interval to check\n * @param options - An object with options\n *\n * @returns The date is within the interval\n *\n * @example\n * // For the date within the interval:\n * isWithinInterval(new Date(2014, 0, 3), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * // => true\n *\n * @example\n * // For the date outside of the interval:\n * isWithinInterval(new Date(2014, 0, 10), {\n * start: new Date(2014, 0, 1),\n * end: new Date(2014, 0, 7)\n * })\n * // => false\n *\n * @example\n * // For date equal to the interval start:\n * isWithinInterval(date, { start, end: date })\n * // => true\n *\n * @example\n * // For date equal to the interval end:\n * isWithinInterval(date, { start: date, end })\n * // => true\n */\nexport function isWithinInterval(date, interval, options) {\n const time = +toDate(date, options?.in);\n const [startTime, endTime] = [\n +toDate(interval.start, options?.in),\n +toDate(interval.end, options?.in),\n ].sort((a, b) => a - b);\n\n return time >= startTime && time <= endTime;\n}\n\n// Fallback for modularized imports:\nexport default isWithinInterval;\n","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nconst formatTokenMap = {\n // Year\n y: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n yy: 'year',\n yyy: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n yyyy: 'year',\n // Month\n M: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n MM: 'month',\n MMMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n MMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n L: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n LL: 'month',\n LLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n LLLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n // Day of the month\n d: {\n sectionType: 'day',\n contentType: 'digit',\n maxLength: 2\n },\n dd: 'day',\n do: {\n sectionType: 'day',\n contentType: 'digit-with-letter'\n },\n // Day of the week\n E: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEEEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n i: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n ii: 'weekDay',\n iii: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n iiii: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // eslint-disable-next-line id-denylist\n e: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n ee: 'weekDay',\n eee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeeeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n c: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n cc: 'weekDay',\n ccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n cccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n ccccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n cccccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // Meridiem\n a: 'meridiem',\n aa: 'meridiem',\n aaa: 'meridiem',\n // Hours\n H: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n HH: 'hours',\n h: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n hh: 'hours',\n // Minutes\n m: {\n sectionType: 'minutes',\n contentType: 'digit',\n maxLength: 2\n },\n mm: 'minutes',\n // Seconds\n s: {\n sectionType: 'seconds',\n contentType: 'digit',\n maxLength: 2\n },\n ss: 'seconds'\n};\nconst defaultFormats = {\n year: 'yyyy',\n month: 'LLLL',\n monthShort: 'MMM',\n dayOfMonth: 'd',\n dayOfMonthFull: 'do',\n weekday: 'EEEE',\n weekdayShort: 'EEEEEE',\n hours24h: 'HH',\n hours12h: 'hh',\n meridiem: 'aa',\n minutes: 'mm',\n seconds: 'ss',\n fullDate: 'PP',\n keyboardDate: 'P',\n shortDate: 'MMM d',\n normalDate: 'd MMMM',\n normalDateWithWeekday: 'EEE, MMM d',\n fullTime12h: 'hh:mm aa',\n fullTime24h: 'HH:mm',\n keyboardDateTime12h: 'P hh:mm aa',\n keyboardDateTime24h: 'P HH:mm'\n};\n/**\n * Based on `@date-io/date-fns`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterDateFnsBase {\n isMUIAdapter = true;\n isTimezoneCompatible = false;\n formatTokenMap = (() => formatTokenMap)();\n escapedCharacters = {\n start: \"'\",\n end: \"'\"\n };\n constructor(props) {\n const {\n locale,\n formats,\n longFormatters,\n lib\n } = props;\n this.locale = locale;\n this.formats = _extends({}, defaultFormats, formats);\n this.longFormatters = longFormatters;\n this.lib = lib || 'date-fns';\n }\n date = value => {\n if (typeof value === 'undefined') {\n return new Date();\n }\n if (value === null) {\n return null;\n }\n return new Date(value);\n };\n getInvalidDate = () => new Date('Invalid Date');\n getTimezone = () => {\n return 'default';\n };\n setTimezone = value => {\n return value;\n };\n toJsDate = value => {\n return value;\n };\n getCurrentLocaleCode = () => {\n // `code` is undefined only in `date-fns` types, but all locales have it\n return this.locale.code;\n };\n\n // Note: date-fns input types are more lenient than this adapter, so we need to expose our more\n // strict signature and delegate to the more lenient signature. Otherwise, we have downstream type errors upon usage.\n is12HourCycleInCurrentLocale = () => {\n return /a/.test(this.locale.formatLong.time({\n width: 'short'\n }));\n };\n expandFormat = format => {\n const longFormatRegexp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\n // @see https://github.com/date-fns/date-fns/blob/master/src/format/index.js#L31\n return format.match(longFormatRegexp).map(token => {\n const firstCharacter = token[0];\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n const longFormatter = this.longFormatters[firstCharacter];\n return longFormatter(token, this.locale.formatLong);\n }\n return token;\n }).join('');\n };\n formatNumber = numberToFormat => {\n return numberToFormat;\n };\n getDayOfWeek = value => {\n return value.getDay() + 1;\n };\n}","import { addDays } from 'date-fns/addDays';\nimport { addSeconds } from 'date-fns/addSeconds';\nimport { addMinutes } from 'date-fns/addMinutes';\nimport { addHours } from 'date-fns/addHours';\nimport { addWeeks } from 'date-fns/addWeeks';\nimport { addMonths } from 'date-fns/addMonths';\nimport { addYears } from 'date-fns/addYears';\nimport { endOfDay } from 'date-fns/endOfDay';\nimport { endOfWeek } from 'date-fns/endOfWeek';\nimport { endOfYear } from 'date-fns/endOfYear';\nimport { format as dateFnsFormat, longFormatters } from 'date-fns/format';\nimport { getDate } from 'date-fns/getDate';\nimport { getDaysInMonth } from 'date-fns/getDaysInMonth';\nimport { getHours } from 'date-fns/getHours';\nimport { getMinutes } from 'date-fns/getMinutes';\nimport { getMonth } from 'date-fns/getMonth';\nimport { getSeconds } from 'date-fns/getSeconds';\nimport { getMilliseconds } from 'date-fns/getMilliseconds';\nimport { getWeek } from 'date-fns/getWeek';\nimport { getYear } from 'date-fns/getYear';\nimport { isAfter } from 'date-fns/isAfter';\nimport { isBefore } from 'date-fns/isBefore';\nimport { isEqual } from 'date-fns/isEqual';\nimport { isSameDay } from 'date-fns/isSameDay';\nimport { isSameYear } from 'date-fns/isSameYear';\nimport { isSameMonth } from 'date-fns/isSameMonth';\nimport { isSameHour } from 'date-fns/isSameHour';\nimport { isValid } from 'date-fns/isValid';\nimport { parse as dateFnsParse } from 'date-fns/parse';\nimport { setDate } from 'date-fns/setDate';\nimport { setHours } from 'date-fns/setHours';\nimport { setMinutes } from 'date-fns/setMinutes';\nimport { setMonth } from 'date-fns/setMonth';\nimport { setSeconds } from 'date-fns/setSeconds';\nimport { setMilliseconds } from 'date-fns/setMilliseconds';\nimport { setYear } from 'date-fns/setYear';\nimport { startOfDay } from 'date-fns/startOfDay';\nimport { startOfMonth } from 'date-fns/startOfMonth';\nimport { endOfMonth } from 'date-fns/endOfMonth';\nimport { startOfWeek } from 'date-fns/startOfWeek';\nimport { startOfYear } from 'date-fns/startOfYear';\nimport { isWithinInterval } from 'date-fns/isWithinInterval';\nimport { enUS } from 'date-fns/locale/en-US';\nimport { AdapterDateFnsBase } from \"../AdapterDateFnsBase/index.mjs\";\n/**\n * Based on `@date-io/date-fns`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterDateFns extends AdapterDateFnsBase {\n constructor({\n locale,\n formats\n } = {}) {\n /* v8 ignore start */\n if (process.env.NODE_ENV !== 'production') {\n if (typeof addDays !== 'function') {\n throw new Error(['MUI: The `date-fns` package v2.x is not compatible with this adapter.', 'Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead.'].join('\\n'));\n }\n if (!longFormatters) {\n throw new Error('MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.');\n }\n }\n /* v8 ignore stop */\n super({\n locale: locale ?? enUS,\n formats,\n longFormatters\n });\n }\n\n // TODO: explicit return types can be removed once there is only one date-fns version supported\n parse = (value, format) => {\n if (value === '') {\n return null;\n }\n return dateFnsParse(value, format, new Date(), {\n locale: this.locale\n });\n };\n isValid = value => {\n if (value == null) {\n return false;\n }\n return isValid(value);\n };\n format = (value, formatKey) => {\n return this.formatByString(value, this.formats[formatKey]);\n };\n formatByString = (value, formatString) => {\n return dateFnsFormat(value, formatString, {\n locale: this.locale\n });\n };\n isEqual = (value, comparing) => {\n if (value === null && comparing === null) {\n return true;\n }\n if (value === null || comparing === null) {\n return false;\n }\n return isEqual(value, comparing);\n };\n isSameYear = (value, comparing) => {\n return isSameYear(value, comparing);\n };\n isSameMonth = (value, comparing) => {\n return isSameMonth(value, comparing);\n };\n isSameDay = (value, comparing) => {\n return isSameDay(value, comparing);\n };\n isSameHour = (value, comparing) => {\n return isSameHour(value, comparing);\n };\n isAfter = (value, comparing) => {\n return isAfter(value, comparing);\n };\n isAfterYear = (value, comparing) => {\n return isAfter(value, endOfYear(comparing));\n };\n isAfterDay = (value, comparing) => {\n return isAfter(value, endOfDay(comparing));\n };\n isBefore = (value, comparing) => {\n return isBefore(value, comparing);\n };\n isBeforeYear = (value, comparing) => {\n return isBefore(value, this.startOfYear(comparing));\n };\n isBeforeDay = (value, comparing) => {\n return isBefore(value, this.startOfDay(comparing));\n };\n isWithinRange = (value, [start, end]) => {\n return isWithinInterval(value, {\n start,\n end\n });\n };\n startOfYear = value => {\n return startOfYear(value);\n };\n startOfMonth = value => {\n return startOfMonth(value);\n };\n startOfWeek = value => {\n return startOfWeek(value, {\n locale: this.locale\n });\n };\n startOfDay = value => {\n return startOfDay(value);\n };\n endOfYear = value => {\n return endOfYear(value);\n };\n endOfMonth = value => {\n return endOfMonth(value);\n };\n endOfWeek = value => {\n return endOfWeek(value, {\n locale: this.locale\n });\n };\n endOfDay = value => {\n return endOfDay(value);\n };\n addYears = (value, amount) => {\n return addYears(value, amount);\n };\n addMonths = (value, amount) => {\n return addMonths(value, amount);\n };\n addWeeks = (value, amount) => {\n return addWeeks(value, amount);\n };\n addDays = (value, amount) => {\n return addDays(value, amount);\n };\n addHours = (value, amount) => {\n return addHours(value, amount);\n };\n addMinutes = (value, amount) => {\n return addMinutes(value, amount);\n };\n addSeconds = (value, amount) => {\n return addSeconds(value, amount);\n };\n getYear = value => {\n return getYear(value);\n };\n getMonth = value => {\n return getMonth(value);\n };\n getDate = value => {\n return getDate(value);\n };\n getHours = value => {\n return getHours(value);\n };\n getMinutes = value => {\n return getMinutes(value);\n };\n getSeconds = value => {\n return getSeconds(value);\n };\n getMilliseconds = value => {\n return getMilliseconds(value);\n };\n setYear = (value, year) => {\n return setYear(value, year);\n };\n setMonth = (value, month) => {\n return setMonth(value, month);\n };\n setDate = (value, date) => {\n return setDate(value, date);\n };\n setHours = (value, hours) => {\n return setHours(value, hours);\n };\n setMinutes = (value, minutes) => {\n return setMinutes(value, minutes);\n };\n setSeconds = (value, seconds) => {\n return setSeconds(value, seconds);\n };\n setMilliseconds = (value, milliseconds) => {\n return setMilliseconds(value, milliseconds);\n };\n getDaysInMonth = value => {\n return getDaysInMonth(value);\n };\n getWeekArray = value => {\n const start = this.startOfWeek(this.startOfMonth(value));\n const end = this.endOfWeek(this.endOfMonth(value));\n let count = 0;\n let current = start;\n const nestedWeeks = [];\n while (this.isBefore(current, end)) {\n const weekNumber = Math.floor(count / 7);\n nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];\n nestedWeeks[weekNumber].push(current);\n current = this.addDays(current, 1);\n count += 1;\n }\n return nestedWeeks;\n };\n getWeekNumber = value => {\n return getWeek(value, {\n locale: this.locale\n });\n };\n getYearRange = ([start, end]) => {\n const startDate = this.startOfYear(start);\n const endDate = this.endOfYear(end);\n const years = [];\n let current = startDate;\n while (this.isBefore(current, endDate)) {\n years.push(current);\n current = this.addYears(current, 1);\n }\n return years;\n };\n}","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM yyyy\",\n long: \"d MMMM yyyy\",\n medium: \"d MMM yyyy\",\n short: \"dd/MM/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatLong } from \"./en-AU/_lib/formatLong.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\n/**\n * @category Locales\n * @summary English locale (Australia).\n * @language English\n * @iso-639-2 eng\n * @author Julien Malige [@JulienMalige](https://github.com/JulienMalige)\n */\nexport const enAU = {\n code: \"en-AU\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4,\n },\n};\n\n// Fallback for modularized imports:\nexport default enAU;\n","import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, d MMMM yyyy\",\n long: \"d MMMM yyyy\",\n medium: \"d MMM yyyy\",\n short: \"dd/MM/yyyy\",\n};\n\nconst timeFormats = {\n full: \"HH:mm:ss zzzz\",\n long: \"HH:mm:ss z\",\n medium: \"HH:mm:ss\",\n short: \"HH:mm\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n","import { formatDistance } from \"./en-US/_lib/formatDistance.js\";\nimport { formatRelative } from \"./en-US/_lib/formatRelative.js\";\nimport { localize } from \"./en-US/_lib/localize.js\";\nimport { match } from \"./en-US/_lib/match.js\";\n\nimport { formatLong } from \"./en-GB/_lib/formatLong.js\";\n\n/**\n * @category Locales\n * @summary English locale (United Kingdom).\n * @language English\n * @iso-639-2 eng\n * @author Alex [@glintik](https://github.com/glintik)\n */\nexport const enGB = {\n code: \"en-GB\",\n formatDistance: formatDistance,\n formatLong: formatLong,\n formatRelative: formatRelative,\n localize: localize,\n match: match,\n options: {\n weekStartsOn: 1 /* Monday */,\n firstWeekContainsDate: 4,\n },\n};\n\n// Fallback for modularized imports:\nexport default enGB;\n","import { Api, LeapContext } from \"@leapdev/leap-host\";\r\nimport {\r\n add,\r\n addMinutes,\r\n endOfDay,\r\n format,\r\n getHours,\r\n getMinutes,\r\n getSeconds,\r\n Locale,\r\n setHours,\r\n setMinutes,\r\n setSeconds,\r\n startOfDay,\r\n} from \"date-fns\";\r\nimport { enAU, enUS, enGB } from \"date-fns/locale\";\r\nimport { fromZonedTime, toZonedTime } from \"date-fns-tz\";\r\n\r\n/**\r\n * This constant defines the string used to represent an invalid date.\r\n * It is used to indicate that a date value is not valid or cannot be parsed.\r\n */\r\nexport const invalidDate = \"Invalid date\";\r\n\r\n/**\r\n * This constant defines the date format used for database storage.\r\n * It is used to ensure consistent date formatting across the application,\r\n * especially when interacting with databases or APIs that require a specific date format.\r\n */\r\nexport const dbDateOnlyFormat = \"yyyy-MM-dd\";\r\n\r\n/**\r\n * This constant defines the default date format used in the application.\r\n * It is used for displaying dates in the user interface and for formatting dates in various components.\r\n */\r\nexport const defaultDateFormat = \"dd/MM/yyyy\";\r\n\r\n/**\r\n * This constant defines the default date and time format used in the application.\r\n * It is used for displaying both date and time in the user interface and for formatting datetime values\r\n */\r\nexport const defaultDateTimeFormat = \"yyyy-MM-dd HH:mm:ss\";\r\n\r\n/**\r\n * This constant defines the minimum date that can be used in the application.\r\n * It is set to January 1, 1900, and is used to ensure that date inputs do not go below this value.\r\n * It is useful for setting a minimum date in date pickers or other date-related components.\r\n */\r\nexport const minDateAsObject = new Date(\"1900-01-01\");\r\n\r\n/**\r\n * This constant defines the timezone used in the application.\r\n * It is derived from the user's system settings and is used for formatting dates and times in the user's local timezone.\r\n * It ensures that date and time values are displayed correctly based on the user's timezone.\r\n */\r\nexport const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\r\n\r\n/**\r\n * This constant defines the UTC format used for date and time values in the application.\r\n * It is used to ensure that date and time values are stored and displayed in a consistent UTC format.\r\n */\r\nexport const utcFormat = \"yyyy-MM-dd HH:mm:ss\";\r\n\r\n/**\r\n * This constant defines the UTC timezone used in the application.\r\n */\r\nexport const utcTimeZone = \"Etc/UTC\";\r\n\r\n/**\r\n * This function returns the minimum date as a string formatted in the default date format.\r\n * It is useful for setting a minimum date in date pickers or other date-related components.\r\n * @returns (string): The minimum date formatted as a string in the default date format.\r\n * @example\r\n * ```typescript\r\n * const minDateValue = minDate; // Returns \"01/01/1900\"\r\n * ```\r\n */\r\nexport const minDate = format(minDateAsObject, defaultDateFormat);\r\n\r\n/**\r\n * This function returns a date that is one week from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date one week in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing one week from today.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const oneWeekFromToday = oneWeek; // Returns \"dd/MM/yyyy\" format of the date one week from today\r\n * ```\r\n */\r\nexport const oneWeek = format(\r\n add(new Date(), {\r\n weeks: 1,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns today's date formatted as a string in the default date format.\r\n * It is useful for displaying the current date in a user interface or for date calculations.\r\n * @returns (string): Today's date formatted as a string in the default date format.\r\n * It can be used in various contexts, such as displaying the current date in a user interface or calculating date differences.\r\n * @example\r\n * ```typescript\r\n * const todayDate = today; // Returns \"dd/MM/yyyy\" format of today's date\r\n * ```\r\n */\r\nexport const today = format(new Date(), defaultDateFormat);\r\n\r\n/**\r\n * This function returns a date that is one day from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date one day in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing tomorrow's date.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const tomorrowDate = tomorrow; // Returns \"dd/MM/yyyy\" format of the date tomorrow\r\n * ```\r\n */\r\nexport const tomorrow = format(\r\n add(new Date(), {\r\n days: 1,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns a date that is two weeks from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date two weeks in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing two weeks from today.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const twoWeeksFromToday = twoWeeks; // Returns \"dd/MM/yyyy\" format of the date two weeks from today\r\n * ```\r\n */\r\nexport const twoWeeks = format(\r\n add(new Date(), {\r\n weeks: 2,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns the current date formatted as a string based on the provided format.\r\n * @param formatString (optional) The format string to use for the date. Defaults to \"dd/MM/yyyy\".\r\n * It is useful for getting the current date in a specific format, such as \"dd/MM/yyyy\" or \"MM/dd/yyyy\".\r\n * If no format string is provided, it defaults to \"dd/MM/yyyy\".\r\n * @returns (string): The current date formatted as a string.\r\n * It can be used in various contexts, such as displaying the current date in a user interface or storing it in a database.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = defaultDate(); // Returns the current date in \"dd/MM/yyyy\" format\r\n * const formattedDateUS = defaultDate(\"MM/dd/yyyy\"); // Returns the current date in \"MM/dd/yyyy\" format\r\n * ```\r\n */\r\nexport const defaultDate = (formatString: string = defaultDateFormat) => {\r\n return format(new Date(), formatString);\r\n};\r\n\r\n/**\r\n * This function formats a date based on the provided parameters.\r\n * It can format the date to the start or end of the day, handle UTC dates,\r\n * and format it as a date-only string.\r\n * It is useful for displaying dates in a specific format,\r\n * such as in a date picker or when saving dates to a database.\r\n * @param date (Date | null | undefined): The date to format. If null or undefined, it returns null.\r\n * @param startOfDate (boolean): If true, formats the date to the start of the day.\r\n * @param endOfDate (boolean): If true, formats the date to the end of the day.\r\n * @param isUTC (boolean): If true, formats the date in UTC format.\r\n * @param dateOnly (boolean): If true, formats the date as a date-only string (e.g., \"yyyy-MM-dd\").\r\n * This is useful for scenarios where you need to display or store only the date part without the time.\r\n * It can be used in various contexts, such as displaying dates in a user interface or saving them to a database.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = formatDate(new Date(), true, false, false, true); // Formats the current date to the start of the day as a date-only string\r\n * const formattedUTCDate = formatDate(new Date(), false, false, true); // Formats the current date in UTC format\r\n * const formattedEndDate = formatDate(new Date(), false, true); // Formats the current date to the end of the day\r\n * ```\r\n * @returns (string | null): A formatted date string based on the provided parameters. If the input date is null or undefined, it returns null.\r\n */\r\nexport const formatDate = (\r\n date?: Date | null,\r\n startOfDate?: boolean,\r\n endOfDate?: boolean,\r\n isUTC?: boolean,\r\n dateOnly?: boolean,\r\n) => {\r\n if (!date) {\r\n return null;\r\n }\r\n let tempDate = date;\r\n if (dateOnly) {\r\n return format(new Date(tempDate), dbDateOnlyFormat);\r\n }\r\n if (startOfDate) {\r\n tempDate = startOfDay(date);\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n if (endOfDate) {\r\n tempDate = endOfDay(date);\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n if (isUTC) {\r\n const today = new Date();\r\n tempDate = setHours(tempDate, getHours(today));\r\n tempDate = setMinutes(tempDate, getMinutes(today));\r\n tempDate = setSeconds(tempDate, getSeconds(today));\r\n return fromZonedTime(tempDate, timezone).toISOString();\r\n } else {\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n};\r\n\r\n/**\r\n * This function parses a date string into a Date object based on the provided format.\r\n * It splits the date string into parts (day, month, year) and constructs a Date object.\r\n * If the date string is invalid or cannot be parsed, it returns null.\r\n * It also handles two-digit years by converting them to four-digit years.\r\n * @param date (any): The date string to parse. It can be in various formats (e.g., \"dd/MM/yyyy\", \"MM/dd/yyyy\").\r\n * @param formatString (string): The format string to use for parsing the date.\r\n * @param localDateformat (string): The local date format to use for parsing. It should match the format of the input date string.\r\n * @param parseKeyboardVal (boolean): Whether to parse the date from a keyboard input. Defaults to false.\r\n * @returns (string | null): Returns a formatted date string if parsing is successful, or null if the input is invalid.\r\n * This function is useful for converting user input or string representations of dates into a Date object.\r\n * It can handle various date formats and ensures that the resulting Date object is valid.\r\n * If the input date string is invalid or cannot be parsed, it returns null.\r\n * It also includes logic to handle two-digit years by converting them to four-digit years.\r\n * @example\r\n * ```typescript\r\n * const parsedDate = parseDate(\"25/12/2023\", \"dd/MM/yyyy\", \"dd/MM/yyyy\");\r\n * console.log(parsedDate); // Returns \"2023-12-25\" in the \"yyyy-MM-dd\" format\r\n * const parsedDateUS = parseDate(\"12/25/23\", \"MM/dd/yyyy\", \"MM/dd/yyyy\");\r\n * console.log(parsedDateUS); // Returns \"2023-12-25\" in the \"yyyy-MM-dd\" format\r\n * const parsedInvalidDate = parseDate(\"31/02/2023\", \"dd/MM/yyyy\", \"dd/MM/yyyy\");\r\n * console.log(parsedInvalidDate); // Returns null, as February 31st is invalid\r\n * ```\r\n */\r\nexport const parseDate = (\r\n date: any,\r\n formatString: string = defaultDateFormat,\r\n localDateformat: string,\r\n parseKeyboardVal?: boolean,\r\n) => {\r\n // Split the value into parts (day, month, year)\r\n if (date === null) {\r\n return null;\r\n }\r\n const parts: any[] = date\r\n .split(/[./-]/)\r\n .map((part: any) => parseInt(part, 10));\r\n // Check if parsing individual parts failed (invalid format)\r\n let day = localDateformat.indexOf(\"d\") === 0 ? parts[0] : parts[1];\r\n let month = localDateformat.indexOf(\"M\") === 0 ? parts[0] : parts[1];\r\n let year = parts[2];\r\n\r\n if (\r\n (!parseKeyboardVal && parts.some(isNaN)) ||\r\n parts?.filter((p: any) => p.isNaN)?.length === parts?.length ||\r\n isNaN(day)\r\n ) {\r\n date = invalidDate; // Or any value to represent invalid input\r\n return null;\r\n }\r\n\r\n if (isNaN(month)) {\r\n month = new Date().getMonth() + 1;\r\n }\r\n\r\n if (isNaN(year)) {\r\n year = new Date().getFullYear();\r\n } else {\r\n if (year.toString().length <= 2) {\r\n year = convertToFullYear(year);\r\n }\r\n //! Force maximum calendar year\r\n if (year > 2099) {\r\n year = 2099;\r\n }\r\n }\r\n\r\n // Create the date object with available parts\r\n const completedDate = new Date(year, month - 1, day);\r\n\r\n // Check if the constructed date is valid (e.g., February 30th)\r\n if (completedDate.getDate() !== day) {\r\n date = invalidDate; // Or any value to represent invalid date\r\n }\r\n\r\n return format(new Date(completedDate), formatString);\r\n};\r\n\r\n/**\r\n * This function converts a two-digit year to a four-digit year.\r\n * It adds the appropriate century based on the current year.\r\n * @param twoDigitYear (any): The two-digit year to convert. It can be a string or number.\r\n * @returns (number): The converted four-digit year.\r\n * @example\r\n * ```typescript\r\n * const fullYear = convertToFullYear(\"25\"); // Returns 2025\r\n * const fullYear2 = convertToFullYear(99); // Returns 1999\r\n * const fullYear3 = convertToFullYear(\"00\"); // Returns 2000\r\n * ```\r\n */\r\nconst convertToFullYear = (twoDigitYear: any) => {\r\n const currentYear = new Date().getFullYear() + 5;\r\n const currentCentury = Math.floor(currentYear / 100) * 100;\r\n const twoDigitYearInt = parseInt(twoDigitYear);\r\n\r\n // Determine the correct century to add\r\n const centuryToAdd =\r\n twoDigitYearInt > currentYear % 100 ? currentCentury - 100 : currentCentury;\r\n\r\n // Add the century to the 2-digit year\r\n return centuryToAdd + twoDigitYearInt;\r\n};\r\n\r\n/**\r\n * This function returns a locale object based on the provided LeapContext.\r\n * It checks the hostInfo.region and returns the corresponding locale with weekStartsOn set to 1.\r\n * If the region is not recognized, it returns undefined.\r\n * @param leapContext (LeapContext | undefined): The LeapContext object containing hostInfo with region information.\r\n * @returns The function supports UK, US, AU (including NZ), and CA regions. If the region is not recognized, it returns undefined.\r\n * @example\r\n * ```typescript\r\n * const locale = getLocale(leapContext); // Returns the appropriate locale based on the region\r\n * const localeUS = getLocale({ hostInfo: { region: \"us\" } }); // Returns enUS locale\r\n * const localeUK = getLocale({ hostInfo: { region: \"uk\" } }); // Returns enGB locale\r\n * const localeAU = getLocale({ hostInfo: { region: \"au\" } }); // Returns enAU locale\r\n * const localeCA = getLocale({ hostInfo: { region: \"ca\" } }); // Returns enGB locale\r\n * ```\r\n */\r\nexport const getLocale = (leapContext?: LeapContext): Locale | undefined => {\r\n if (leapContext?.hostInfo.region.toLowerCase() === \"uk\") {\r\n return {\r\n ...enGB,\r\n options: {\r\n ...enGB.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"us\") {\r\n return {\r\n ...enUS,\r\n options: {\r\n ...enUS.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"au\") {\r\n //! includes NZ\r\n return {\r\n ...enAU,\r\n options: {\r\n ...enAU.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"ca\") {\r\n return {\r\n ...enGB,\r\n options: {\r\n ...enGB.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n }\r\n};\r\n\r\n/**\r\n * This function formats a date or datetime value into a string based on the provided locale.\r\n * It supports both date-only and datetime formats, and can handle UTC dates.\r\n * @param inputValue (string | Date | undefined): The date or datetime value to format.\r\n * @param locale (Locale | undefined): The locale to use for formatting. If undefined, it will not format the date.\r\n * @param outputAsUtc (boolean): Whether the date is in UTC format. Defaults to true.\r\n * @param outputAsDateOnly (boolean): Whether to format the value as a date only.\r\n * @param outputAs24H (boolean): Whether to show the time in 24-hour format. Defaults to false.\r\n * @returns (string): A formatted date or datetime string. If the input value is invalid or locale is undefined, it returns an empty string.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = lctFormatDateTime(new Date(), enGB, true, false, true); // Returns \"01/01/2023 14:30\"\r\n * const formattedDateTime = lctFormatDateTime(\"2023-01-01T14:30:00Z\", enUS, true, false, false); // Returns \"01/01/2023 02:30 PM\"\r\n * const formattedDateOnly = lctFormatDateTime(\"2023-01-01\", enAU, false, true); // Returns \"01/01/2023\"\r\n * const formattedInvalid = lctFormatDateTime(undefined, enGB); // Returns \"\"\r\n * ```\r\n */\r\nexport const formatDateTime = (\r\n inputValue?: string | Date,\r\n locale?: Locale,\r\n outputAsUtc: boolean = true,\r\n outputAsDateOnly?: boolean,\r\n outputAs24H?: boolean,\r\n) => {\r\n const timeFormat = outputAs24H ? \" HH:mm\" : \" hh:mm a\";\r\n if (!!locale && !!inputValue) {\r\n const formattedDate = format(\r\n outputAsUtc && typeof inputValue === \"string\"\r\n ? inputValue.replace(\" \", \"T\").replace(\"Z\", \"\").concat(\"Z\")\r\n : inputValue,\r\n `${locale.formatLong.date({ width: \"short\" })}${\r\n outputAsDateOnly ? \"\" : timeFormat\r\n }`,\r\n );\r\n return formattedDate;\r\n }\r\n return \"\";\r\n};\r\n\r\n/**\r\n * This function formats a date string into a report-friendly format based on the provided locale.\r\n * It handles both ISO date strings and strings in the format \"yyyy-MM-dd\".\r\n *\r\n * @param date (string | null): The date string to format. It can be in ISO format or \"yyyy-MM-dd\".\r\n * @param locale (Locale | undefined): The locale to use for formatting. If undefined, it will not format the date.\r\n * @returns (string): A formatted date string. If the input date is invalid or locale is undefined, it returns an empty string and logs a warning.\r\n * @example\r\n * ```typescript\r\n * const formattedReportDate = formatReportDate(\"2023-12-25\", enGB); // Returns \"25-12-2023\"\r\n * const formattedReportDateISO = formatReportDate(\"2023-12-25T00:00:00Z\", enUS); // Returns \"12-25-2023\"\r\n * const formattedReportDateInvalid = formatReportDate(\"31-02-2023\", enGB); // Returns \"\", logs warning\r\n * const formattedReportDateNull = formatReportDate(null, enGB); // Returns \"\", logs warning\r\n * ```\r\n */\r\nexport const formatReportDate = (\r\n date: string | null,\r\n locale?: Locale,\r\n): string => {\r\n if (!date) {\r\n console.warn(\"formatReportDate called with null or undefined date.\");\r\n return \"\";\r\n }\r\n\r\n if (!locale) {\r\n console.warn(\"formatReportDate called with undefined locale.\");\r\n return \"\";\r\n }\r\n\r\n // Handle ISO date strings and remove timezone information\r\n //\r\n if (typeof date === \"string\" && date.includes(\"T\")) {\r\n // If the date is in ISO format, we can parse it directly\r\n //\r\n const isoDate = new Date(date);\r\n if (isNaN(isoDate.getTime())) {\r\n console.warn(`Invalid date string: ${date}`);\r\n return \"\";\r\n }\r\n date = isoDate.toISOString();\r\n }\r\n // If the date is not in ISO format, we assume it's a string in the format \"yyyy-MM-dd\"\r\n //\r\n else if (typeof date === \"string\") {\r\n // Check if the date string is in a valid format\r\n //\r\n const parts = date.split(\"-\");\r\n if (parts.length !== 3 || parts.some((part) => isNaN(Number(part)))) {\r\n console.warn(`Invalid date string format: ${date}`);\r\n return \"\";\r\n }\r\n\r\n if (locale.code === \"en-US\")\r\n date = `${parts[1]}-${parts[2]}-${parts[0]}`; // \"MM-dd-yyyy\"\r\n else date = `${parts[2]}-${parts[1]}-${parts[0]}`; // \"dd-MM-yyyy\"\r\n }\r\n\r\n return date;\r\n};\r\n\r\n/**\r\n * @deprecated The method should not be used\r\n */\r\nexport const getDateTimeWithOffset = (date: string) => {\r\n const offset = new Date(date).getTimezoneOffset();\r\n const formattedDate = addMinutes(new Date(date), offset);\r\n return formattedDate;\r\n};\r\n\r\n/**\r\n * This function checks if a string is null or undefined.\r\n * It returns true if the string is null, undefined, or an empty string.\r\n * @param value (string | null | undefined): The string to check.\r\n * @returns (boolean): Returns true if the string is null, undefined, or empty; otherwise, false.\r\n * @example\r\n * ```typescript\r\n * const isNullOrUndefined = isStringNullOrUndefined(null); // Returns true\r\n * const isEmptyString = isStringNullOrUndefined(\"\"); // Returns true\r\n * const isValidString = isStringNullOrUndefined(\"Hello\"); // Returns false\r\n * ```\r\n */\r\nexport const isStringNullOrUndefined = (value?: string | null) => {\r\n if (!value || value === \"\") {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n};\r\n\r\n/**\r\n * This function formats a date as a string in the \"yyyy-MM-dd\" format, suitable for database storage.\r\n * It takes a Date object as input and returns the formatted string.\r\n * @param date (Date): The date to format.\r\n * @returns (string): A formatted date string in the \"yyyy-MM-dd\" format.\r\n * @example\r\n * ```typescript\r\n * const dbFormattedDate = formatAsDBDate(new Date()); // Returns \"2023-12-25\"\r\n * const dbFormattedDateInvalid = formatAsDBDate(new Date(\"Invalid Date\")); // Returns \"Invalid date\"\r\n * ```\r\n */\r\nexport const formatAsDBDate = (date: Date) => {\r\n return format(date, dbDateOnlyFormat);\r\n};\r\n\r\n/**\r\n * This function converts a local date to a UTC date and time string.\r\n * It can output the date as the start or end of the day, or as a regular date.\r\n * It is useful for converting local date inputs to a standardized UTC format for storage or processing.\r\n * @param inputValue (string | Date | undefined): The local date to convert. It can be a string or a Date object.\r\n * @param outputAsStartOfDay (boolean): If true, the output will be the start of the day in UTC format.\r\n * @param outputAsEndOfDay (boolean): If true, the output will be the end of the day in UTC format.\r\n * If both outputAsStartOfDay and outputAsEndOfDay are false,\r\n * the output will be the date in UTC format without any time adjustments.\r\n * If inputValue is null or undefined, the function returns an empty string.\r\n * @returns\r\n * (string): A UTC date and time string. If inputValue is null or undefined, it returns an empty string.\r\n * @example\r\n * ```typescript\r\n * const utcDateStart = convertLocalDateToUTCDateTime(\"2023-12-25\", true, false); // Returns \"2023-12-25T00:00:00.000Z\"\r\n * const utcDateEnd = convertLocalDateToUTCDateTime(\"2023-12-25\", false, true); // Returns \"2023-12-25T23:59:59.999Z\"\r\n * const utcDateRegular = convertLocalDateToUTCDateTime(\"2023-12-25\", false, false); // Returns \"2023-12-25T00:00:00.000Z\"\r\n * const utcDateInvalid = convertLocalDateToUTCDateTime(undefined, true, false ); // Returns \"\"\r\n * ```\r\n */\r\nexport const convertLocalDateToUTCDateTime = (\r\n inputValue?: string | Date,\r\n outputAsStartOfDay?: boolean,\r\n outputAsEndOfDay?: boolean,\r\n) => {\r\n if (!!inputValue) {\r\n const zonedDateInLocal = toZonedTime(new Date(inputValue), utcTimeZone);\r\n if (outputAsStartOfDay) {\r\n return startOfDay(zonedDateInLocal).toISOString();\r\n } else if (outputAsEndOfDay) {\r\n return endOfDay(zonedDateInLocal).toISOString();\r\n } else {\r\n return new Date(inputValue).toISOString();\r\n }\r\n }\r\n return \"\";\r\n};\r\n\r\n/**\r\n * This enum defines the types of buttons available in the dialog.\r\n * It is used to identify which button was clicked by the user.\r\n */\r\nexport enum DialogButtonType {\r\n Confirm = 1,\r\n Refuse = 2,\r\n Cancel = 3,\r\n}\r\n\r\n/**\r\n * This function shows a 3-button alert dialog using the Leap SDK.\r\n * It allows the user to confirm, refuse, or cancel an action.\r\n * It takes a message, button texts, and callbacks for each action.\r\n * @param message (string): The message to display in the dialog.\r\n * @param confirmButtonText (string): The text for the confirm button.\r\n * @param confirmCallback (function): The callback function to execute when the confirm button is clicked.\r\n * @param refuseButtonText (string): The text for the refuse button. Optional.\r\n * @param refuseCallback (function): The callback function to execute when the refuse button is clicked. Optional.\r\n * @param cancelButtonText (string): The text for the cancel button. Optional.\r\n * @param sdkApi (Api): The Leap SDK API instance to use for showing the dialog.\r\n * @returns A promise that resolves when the dialog is closed.\r\n * @example\r\n * ```typescript\r\n * show3buttonAlert(\r\n * \"Are you sure you want to proceed?\",\r\n * \"Yes\",\r\n * () => console.log(\"Confirmed\"),\r\n * \"No\",\r\n * () => console.log(\"Refused\"),\r\n * \"Cancel\",\r\n * sdkApi\r\n * );\r\n * ```\r\n */\r\nexport const show3buttonAlert = ( \r\n title: string,\r\n message: string,\r\n confirmButtonText: string,\r\n confirmCallback: () => void,\r\n refuseButtonText?: string,\r\n refuseCallback?: () => void,\r\n cancelButtonText?: string,\r\n sdkApi?: Api,\r\n) => {\r\n return sdkApi?.system\r\n .openDialogV2({\r\n dialogType: \"3button\",\r\n title: title,\r\n message: message,\r\n confirmButtonText: confirmButtonText,\r\n refuseButtonText: refuseButtonText,\r\n cancelButtonText: cancelButtonText,\r\n })\r\n .then((key) => {\r\n switch (key) {\r\n case DialogButtonType.Confirm:\r\n confirmCallback();\r\n break;\r\n case DialogButtonType.Refuse:\r\n if (refuseCallback) refuseCallback();\r\n break;\r\n case DialogButtonType.Cancel:\r\n break;\r\n default:\r\n break;\r\n }\r\n });\r\n};\r\n","import { FC, useEffect, useState } from \"react\";\r\n\r\nimport { differenceInDays, format, Locale } from \"date-fns\";\r\n\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\r\nimport { DateCalendar, LocalizationProvider } from \"@mui/x-date-pickers-pro\";\r\nimport {\r\n ClickAwayListener,\r\n IconButton,\r\n Paper,\r\n Popper,\r\n TextField,\r\n} from \"@mui/material\";\r\n\r\nimport { Api } from \"@leapdev/leap-host\";\r\nimport {\r\n defaultDateFormat,\r\n defaultDateTimeFormat,\r\n formatDate,\r\n getDateTimeWithOffset,\r\n isStringNullOrUndefined,\r\n parseDate,\r\n show3buttonAlert,\r\n} from \"./utils\";\r\nimport CalendarIcon from \"../../images/calendar-icon\";\r\nimport LCTButton from \"../button/Button\";\r\n\r\ninterface IValidationError {\r\n keepButton: boolean;\r\n title: string;\r\n message: string;\r\n originalValue?: string | null;\r\n}\r\n\r\ninterface ICustomActonProps {\r\n label: string;\r\n value: Date;\r\n}\r\n\r\ninterface IAdditionalActionsProps {\r\n showToday?: boolean;\r\n showClear?: boolean;\r\n customActions?: ICustomActonProps[];\r\n}\r\n\r\ninterface IDatePickerProps {\r\n disabled?: boolean;\r\n fullWidth?: boolean;\r\n isUTC?: boolean;\r\n startOfDate?: boolean;\r\n endOfDate?: boolean;\r\n dateOnly?: boolean;\r\n onUpdate: (value: string | null) => void;\r\n additionalActions?: IAdditionalActionsProps;\r\n size?: \"small\" | \"medium\";\r\n validate30Days?: boolean;\r\n validate?: (value?: any | null) => IValidationError | null;\r\n value: string | null;\r\n locale?: Locale;\r\n sdk?: Api;\r\n}\r\n\r\n/**\r\n * Leap Component for DatePicker\r\n * @param disabled - If true, the date picker is disabled.\r\n * @param fullWidth - If true, the date picker will take the full width of its container.\r\n * @param isUTC - If true, the date will be treated as UTC.\r\n * @param startOfDate - If true, the date will be set to the start of the day.\r\n * @param endOfDate - If true, the date will be set to the end of the day.\r\n * @param dateOnly - If true, the time part will be ignored.\r\n * @param onUpdate - Callback function to update the date value.\r\n * @param additionalActions - Additional actions to be displayed in the date picker.\r\n * @param size - Size of the date picker, can be \"small\" or \"medium\".\r\n * @param validate30Days - If true, it will validate that the selected date is not more than 30 days in the future.\r\n * @param validate - Custom validation function that returns an error if the date is invalid.\r\n * @param value - The current value of the date picker.\r\n * @param locale - Locale for date formatting.\r\n * @param sdk - The Leap SDK instance for API interactions.\r\n * @returns A DatePicker component that allows users to select a date with optional validation and additional actions.\r\n * @example\r\n * ```tsx\r\n * <LCTDatePicker\r\n * disabled={false}\r\n * fullWidth={true}\r\n * isUTC={false}\r\n * startOfDate={true}\r\n * endOfDate={false}\r\n * dateOnly={false}\r\n * onUpdate={(value) => console.log(value)}\r\n * additionalActions={{\r\n * showToday: true,\r\n * showClear: true,\r\n * customActions: [\r\n * { label: \"Last 7 Days\", value: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000) },\r\n * { label: \"Last 30 Days\", value: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000) },\r\n * ],\r\n * }}\r\n * size=\"small\"\r\n * validate30Days={true}\r\n * validate={(value) => {\r\n * if (value && new Date(value) > new Date(Date.now() + 30 * 24 * 60 * 60 * 1000)) {\r\n * return { keepButton: true, message: \"Date cannot be more than 30 days in the future.\" };\r\n * }\r\n * return null;\r\n * }}\r\n * value={null}\r\n * locale={enGB} // or any other locale\r\n * sdk={leapSdkInstance} // Leap SDK instance\r\n * />\r\n *\r\n * This component provides a user-friendly date selection interface with validation and additional actions like \"Today\" and \"Clear\".\r\n * It supports both date and datetime formats, and can be customized with locale settings.\r\n *\r\n */\r\nconst LCTDatePicker: FC<IDatePickerProps> = ({\r\n disabled,\r\n fullWidth,\r\n isUTC,\r\n startOfDate,\r\n endOfDate,\r\n dateOnly,\r\n onUpdate,\r\n additionalActions,\r\n size,\r\n validate30Days,\r\n validate,\r\n value,\r\n locale,\r\n sdk,\r\n}) => {\r\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\r\n const [currentValue, setCurrentValue] = useState<any | null>(null);\r\n const [displayValue, setDisplayValue] = useState<string | null>(null);\r\n const [validationError, setValidationError] =\r\n useState<IValidationError | null>(null);\r\n const [showCalendar, setShowCalendar] = useState(false);\r\n\r\n const dateFormat = locale\r\n ? locale.formatLong\r\n .date({ width: \"short\" })\r\n .toLowerCase()\r\n .replaceAll(\"m\", \"M\")\r\n : defaultDateFormat;\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n setCurrentValue(value ? new Date(value) : null);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : value,\r\n );\r\n if (!value) {\r\n setDisplayValue(null);\r\n onUpdate(null);\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [dateFormat, value, locale]);\r\n\r\n const regexDate: RegExp =\r\n locale?.formatLong.date({ width: \"short\" }).indexOf(\"M\") === 0\r\n ? /^(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2}\\:\\d{1,2})|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2}\\:)|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2})|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+)|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4})|(\\d{1,2}\\/\\d{1,2}\\/)|(\\d{1,2}\\/\\d{1,2})|(\\d{1,2}\\/)|(\\d{1,2})$/\r\n : /^(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2}\\:\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2}\\:)|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+)|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/)|(\\d{1,4}\\/\\d{1,2})|(\\d{1,4}\\/)|(\\d{1,4})$/;\r\n const regexNumbers: RegExp = /^[\\0-9_\\/_:]*$/;\r\n\r\n useEffect(() => {\r\n if (validationError) {\r\n if (validationError?.keepButton) {\r\n show3buttonAlert(\r\n validationError.title,\r\n validationError.message,\r\n \"Keep Value\",\r\n () => {},\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n onUpdate(value ? value : null);\r\n setCurrentValue(value);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : null,\r\n );\r\n setValidationError(null);\r\n },\r\n \"\",\r\n sdk,\r\n );\r\n } else {\r\n show3buttonAlert(\r\n validationError?.title || \"\",\r\n validationError?.message || \"\",\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n onUpdate(value ? value : null);\r\n setCurrentValue(value);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : null,\r\n );\r\n setValidationError(null);\r\n },\r\n undefined,\r\n undefined,\r\n undefined,\r\n sdk,\r\n );\r\n }\r\n }\r\n }, [validationError]);\r\n\r\n return (\r\n <>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n if (\r\n (e.target.value[e.target.value[\"length\"] - 1] === \":\" &&\r\n (tempValue.match(/:/g) || []).length > 1) ||\r\n (e.target.value[e.target.value[\"length\"] - 1] === \"/\" &&\r\n (tempValue.match(/\\//g) || []).length > 2) ||\r\n !!(tempValue.match(/\\/\\//g) || []).length\r\n ) {\r\n return;\r\n }\r\n if (\r\n (regexNumbers.test(tempValue) && regexDate.test(tempValue)) ||\r\n isStringNullOrUndefined(tempValue)\r\n ) {\r\n setDisplayValue(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n const value = (e.target as any).value;\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayValue &&\r\n (displayValue[displayValue?.length - 1] === \"/\" ||\r\n displayValue[displayValue?.length - 1] === \":\")\r\n ) {\r\n setDisplayValue(value.substring(0, value.length - 1));\r\n }\r\n } else {\r\n if (e.code === \"Semicolon\" && value.includes(\":\")) {\r\n return;\r\n }\r\n\r\n if (regexNumbers.test(value) && regexDate.test(value)) {\r\n setDisplayValue(value);\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (keyUpValue.includes)\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3) ||\r\n (e.code === \"Semicolon\" && tempValue.includes(\":\"))\r\n ) {\r\n return;\r\n }\r\n\r\n if (regexDate.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n //TODO FIX DATETIME\r\n // if (len > 9 && !tempValue.includes(\" \") && isDateTime) {\r\n // tempValue = tempValue + \" \";\r\n // }\r\n\r\n // if (len > 12 && !tempValue.includes(\":\") && isDateTime) {\r\n // tempValue = tempValue + \":\";\r\n // }\r\n\r\n setDisplayValue(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== value) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n value &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n currentValue ? new Date(currentValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: value,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n setCurrentValue(tempValue ? new Date(tempValue) : null);\r\n setDisplayValue(\r\n tempValue ? format(new Date(tempValue), dateFormat) : tempValue,\r\n );\r\n onUpdate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayValue || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <>\r\n {disabled ? undefined : (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled\r\n ? \"#f3f3f3 !important\"\r\n : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n )}\r\n </>\r\n ),\r\n },\r\n }}\r\n />\r\n <Popper open={showCalendar} sx={{ zIndex: 1500 }} anchorEl={anchorEl}>\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setShowCalendar(false);\r\n }}\r\n >\r\n <Paper>\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n backgroundColor: \"#fff\",\r\n }}\r\n >\r\n <LocalizationProvider\r\n dateAdapter={AdapterDateFns}\r\n adapterLocale={locale}\r\n >\r\n <DateCalendar\r\n value={currentValue ? new Date(currentValue) : null}\r\n onChange={(newValue: any, selectionState) => {\r\n const tempValue = newValue ? newValue : null;\r\n if (selectionState !== \"partial\") {\r\n setShowCalendar(false);\r\n if (\r\n value &&\r\n validate30Days &&\r\n differenceInDays(new Date(newValue), new Date()) > 30\r\n ) {\r\n setValidationError({\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: value,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n onUpdate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n setCurrentValue(tempValue ? new Date(tempValue) : null);\r\n setDisplayValue(\r\n tempValue\r\n ? format(new Date(tempValue), dateFormat)\r\n : tempValue,\r\n );\r\n }}\r\n views={[\"year\", \"month\", \"day\"]}\r\n />\r\n </LocalizationProvider>\r\n {(additionalActions?.showToday ||\r\n additionalActions?.customActions ||\r\n additionalActions?.showClear) && (\r\n <div className=\"displayFlex\" style={{ paddingBottom: 10 }}>\r\n {additionalActions?.showToday && (\r\n <LCTButton\r\n onClick={() => {\r\n const today = new Date();\r\n setCurrentValue(today);\r\n onUpdate(\r\n formatDate(\r\n today ? new Date(today) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n size=\"small\"\r\n >\r\n Today\r\n </LCTButton>\r\n )}\r\n {additionalActions?.customActions &&\r\n additionalActions?.customActions?.map((action) => (\r\n <div style={{ paddingLeft: 5 }}>\r\n <LCTButton\r\n onClick={() => {\r\n setCurrentValue(action.value);\r\n onUpdate(\r\n formatDate(\r\n action.value ? new Date(action.value) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n size=\"small\"\r\n >\r\n {action.label}\r\n </LCTButton>\r\n </div>\r\n ))}\r\n {additionalActions?.showClear && (\r\n <div style={{ paddingLeft: 5 }}>\r\n <LCTButton\r\n onClick={() => {\r\n setCurrentValue(null);\r\n setDisplayValue(\"\");\r\n setShowCalendar(false);\r\n onUpdate(null);\r\n setShowCalendar(false);\r\n }}\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n size=\"small\"\r\n >\r\n Clear\r\n </LCTButton>\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n </Paper>\r\n </ClickAwayListener>\r\n </Popper>\r\n </>\r\n );\r\n};\r\nexport default LCTDatePicker;\r\n","import { FC, useEffect, useState } from \"react\";\r\nimport {\r\n addDays,\r\n addMonths,\r\n differenceInDays,\r\n endOfMonth,\r\n endOfWeek,\r\n format,\r\n isAfter,\r\n isBefore,\r\n Locale,\r\n startOfMonth,\r\n startOfWeek,\r\n} from \"date-fns\";\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\r\nimport {\r\n Button,\r\n ClickAwayListener,\r\n IconButton,\r\n Paper,\r\n Popper,\r\n TextField,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport {\r\n DateRangeCalendar,\r\n LocalizationProvider,\r\n} from \"@mui/x-date-pickers-pro\";\r\n\r\nimport { Api } from \"@leapdev/leap-host\";\r\nimport {\r\n defaultDateFormat,\r\n defaultDateTimeFormat,\r\n formatDate,\r\n getDateTimeWithOffset,\r\n parseDate,\r\n show3buttonAlert,\r\n} from \"../datepicker/utils\";\r\nimport CalendarIcon from \"../../images/calendar-icon\";\r\n\r\ninterface IValidationError {\r\n fromDate: boolean;\r\n toDate: boolean;\r\n keepButton: boolean;\r\n title: string;\r\n message: string;\r\n originalValue?: string | null;\r\n}\r\n\r\ninterface ICustomActonProps {\r\n label: string;\r\n fromValue: Date;\r\n toValue: Date;\r\n}\r\n\r\ninterface IAdditionalActionsProps {\r\n showToday?: boolean;\r\n showYesterday?: boolean;\r\n showThisWeek?: boolean;\r\n showLastWeek?: boolean;\r\n showThisMonth?: boolean;\r\n showLastMonth?: boolean;\r\n showLast30?: boolean;\r\n showLast60?: boolean;\r\n showLast90?: boolean;\r\n customActions?: ICustomActonProps[];\r\n}\r\n\r\ninterface IDatePickerProps {\r\n disabled?: boolean;\r\n fullWidth?: boolean;\r\n isUTC?: boolean;\r\n startOfDate?: boolean;\r\n endOfDate?: boolean;\r\n dateOnly?: boolean;\r\n onUpdateFromDate: (fromDate: string | null) => void;\r\n onUpdateToDate: (toDate: string | null) => void;\r\n additionalActions?: IAdditionalActionsProps;\r\n size?: \"small\" | \"medium\";\r\n validate30Days?: boolean;\r\n validate?: (value?: any | null) => IValidationError | null;\r\n fromDate: string | null;\r\n toDate: string | null;\r\n locale?: Locale;\r\n calendars?: 1 | 2 | 3;\r\n sdk?: Api;\r\n}\r\n\r\nconst LCTDateRangePicker: FC<IDatePickerProps> = ({\r\n disabled,\r\n fullWidth,\r\n isUTC,\r\n startOfDate,\r\n endOfDate,\r\n dateOnly,\r\n onUpdateFromDate,\r\n onUpdateToDate,\r\n additionalActions,\r\n size,\r\n validate30Days,\r\n validate,\r\n fromDate,\r\n toDate,\r\n locale,\r\n calendars,\r\n sdk,\r\n}) => {\r\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\r\n const [displayFromDate, setDisplayFromDate] = useState<string | null>(null);\r\n const [displayToDate, setDisplayToDate] = useState<string | null>(null);\r\n const [validationError, setValidationError] =\r\n useState<IValidationError | null>(null);\r\n const [showCalendar, setShowCalendar] = useState(false);\r\n\r\n const dateFormat = locale\r\n ? locale.formatLong\r\n .date({ width: \"short\" })\r\n .toLowerCase()\r\n .replaceAll(\"m\", \"M\")\r\n : defaultDateFormat;\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n if (!fromDate) {\r\n setDisplayFromDate(null);\r\n onUpdateFromDate(null);\r\n onUpdateFromDate(null);\r\n } else {\r\n setDisplayFromDate(\r\n fromDate\r\n ? format(getDateTimeWithOffset(fromDate), dateFormat)\r\n : fromDate,\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [fromDate, locale]);\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n if (!toDate) {\r\n setDisplayToDate(null);\r\n onUpdateToDate(null);\r\n } else {\r\n setDisplayToDate(\r\n toDate ? format(getDateTimeWithOffset(toDate), dateFormat) : toDate,\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [toDate, locale]);\r\n\r\n useEffect(() => {\r\n if (validationError) {\r\n if (validationError?.keepButton) {\r\n show3buttonAlert(\r\n validationError.title,\r\n validationError.message,\r\n \"Keep Value\",\r\n () => {},\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n if (validationError?.fromDate) {\r\n onUpdateFromDate(value ? value : null);\r\n }\r\n\r\n if (validationError?.toDate) {\r\n onUpdateToDate(value ? value : null);\r\n }\r\n setValidationError(null);\r\n },\r\n \"\",\r\n sdk,\r\n );\r\n } else {\r\n show3buttonAlert(\r\n validationError?.title || \"\",\r\n validationError?.message || \"\",\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n if (validationError?.fromDate) {\r\n onUpdateFromDate(value ? value : null);\r\n }\r\n\r\n if (validationError?.toDate) {\r\n onUpdateToDate(value ? value : null);\r\n }\r\n setValidationError(null);\r\n },\r\n undefined,\r\n undefined,\r\n undefined,\r\n sdk,\r\n );\r\n }\r\n }\r\n }, [validationError]);\r\n\r\n return (\r\n <>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n const regex: RegExp = /^[0-9/]+$/;\r\n\r\n if (\r\n (regex.test(tempValue) ||\r\n tempValue === \"\" ||\r\n tempValue.length < 2) &&\r\n tempValue.split(\"/\").length <= 3\r\n ) {\r\n setDisplayFromDate(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayFromDate &&\r\n displayFromDate[displayFromDate?.length - 1] === \"/\"\r\n ) {\r\n setDisplayFromDate(\r\n (e.target as any).value.substring(\r\n 0,\r\n (e.target as any).value.length - 1,\r\n ),\r\n );\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n const regex: RegExp = /^(?!.*\\/\\/)[0-9/]+$/;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3)\r\n ) {\r\n return;\r\n }\r\n\r\n if (regex.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n setDisplayFromDate(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== fromDate) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n const tempDisplayToDate = parseDate(\r\n displayToDate,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n !!tempDisplayToDate &&\r\n tempValue &&\r\n isAfter(new Date(tempValue), new Date(tempDisplayToDate))\r\n ) {\r\n setValidationError({\r\n fromDate: true,\r\n toDate: false,\r\n keepButton: false,\r\n title: \"Alert\",\r\n message: \"Selected To Date is before From Date.\",\r\n originalValue: fromDate,\r\n });\r\n }\r\n if (\r\n fromDate &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n fromDate ? new Date(fromDate) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n fromDate: true,\r\n toDate: false,\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: fromDate,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n onUpdateFromDate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayFromDate || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled ? \"#f3f3f3 !important\" : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n ),\r\n },\r\n }}\r\n />\r\n <div style={{ margin: \"auto\" }}>\r\n <Typography style={{ paddingLeft: 8, paddingRight: 5 }}>To</Typography>\r\n </div>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n const regex: RegExp = /^[0-9/]+$/;\r\n\r\n if (\r\n (regex.test(tempValue) ||\r\n tempValue === \"\" ||\r\n tempValue.length < 2) &&\r\n tempValue.split(\"/\").length <= 3\r\n ) {\r\n setDisplayToDate(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayToDate &&\r\n displayToDate[displayToDate?.length - 1] === \"/\"\r\n ) {\r\n setDisplayToDate(\r\n (e.target as any).value.substring(\r\n 0,\r\n (e.target as any).value.length - 1,\r\n ),\r\n );\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n const regex: RegExp = /^(?!.*\\/\\/)[0-9/]+$/;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3)\r\n ) {\r\n return;\r\n }\r\n\r\n if (regex.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n setDisplayToDate(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== toDate) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n const tempDisplayFromDate = parseDate(\r\n displayFromDate,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n !!tempDisplayFromDate &&\r\n tempValue &&\r\n isBefore(new Date(tempValue), new Date(tempDisplayFromDate))\r\n ) {\r\n setValidationError({\r\n fromDate: false,\r\n toDate: true,\r\n keepButton: false,\r\n title: \"Alert\",\r\n message: \"Selected To Date is before From Date.\",\r\n originalValue: toDate,\r\n });\r\n }\r\n if (\r\n toDate &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n toDate ? new Date(toDate) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n fromDate: false,\r\n toDate: true,\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: toDate,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n\r\n onUpdateToDate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayToDate || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled ? \"#f3f3f3 !important\" : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n ),\r\n },\r\n }}\r\n />\r\n <Popper open={showCalendar} sx={{ zIndex: 1500 }} anchorEl={anchorEl}>\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setShowCalendar(false);\r\n }}\r\n >\r\n <Paper\r\n style={{\r\n backgroundColor: \"#fff\",\r\n border: \"1px solid rgba(0, 0, 0, 0.12)\",\r\n borderRadius: 0,\r\n }}\r\n >\r\n <div\r\n className=\"displayFlex dateActionButtons\"\r\n style={{ flexDirection: \"row\" }}\r\n >\r\n {(additionalActions?.showToday ||\r\n additionalActions?.showYesterday ||\r\n additionalActions?.showThisWeek ||\r\n additionalActions?.showLastWeek ||\r\n additionalActions?.showThisMonth ||\r\n additionalActions?.showLastMonth ||\r\n additionalActions?.showLast30 ||\r\n additionalActions?.showLast60 ||\r\n additionalActions?.showLast90 ||\r\n additionalActions?.customActions) && (\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n minHeight: 208,\r\n }}\r\n >\r\n {additionalActions?.showToday && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n onUpdateFromDate(\r\n formatDate(\r\n today ? today : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n today ? today : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Today\r\n </Button>\r\n )}\r\n {additionalActions?.showYesterday && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const yesterday = addDays(new Date(), -1);\r\n onUpdateFromDate(\r\n formatDate(\r\n yesterday ? yesterday : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n yesterday ? yesterday : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Yesterday\r\n </Button>\r\n )}\r\n {additionalActions?.showThisWeek && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfWeek = startOfWeek(today, {\r\n weekStartsOn: 1,\r\n });\r\n const dayEndOfWeek = endOfWeek(today, {\r\n weekStartsOn: 1,\r\n });\r\n\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfWeek ? new Date(dayStartOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfWeek ? new Date(dayEndOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n This Week\r\n </Button>\r\n )}\r\n {additionalActions?.showLastWeek && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfWeek = startOfWeek(addDays(today, -7), {\r\n weekStartsOn: 1,\r\n });\r\n const dayEndOfWeek = endOfWeek(addDays(today, -7), {\r\n weekStartsOn: 1,\r\n });\r\n\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfWeek ? new Date(dayStartOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfWeek ? new Date(dayEndOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last Week\r\n </Button>\r\n )}\r\n {additionalActions?.showThisMonth && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfMonth = startOfMonth(today);\r\n const dayEndOfMonth = endOfMonth(today);\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfMonth ? new Date(dayStartOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfMonth ? new Date(dayEndOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n This Month\r\n </Button>\r\n )}\r\n {additionalActions?.showLastMonth && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfMonth = startOfMonth(\r\n addMonths(today, -1),\r\n );\r\n const dayEndOfMonth = endOfMonth(addMonths(today, -1));\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfMonth ? new Date(dayStartOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfMonth ? new Date(dayEndOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last Month\r\n </Button>\r\n )}\r\n {additionalActions?.showLast30 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -30);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 30 days\r\n </Button>\r\n )}\r\n {additionalActions?.showLast60 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -60);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 60 days\r\n </Button>\r\n )}\r\n {additionalActions?.showLast90 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -90);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 90 days\r\n </Button>\r\n )}\r\n {additionalActions?.customActions &&\r\n additionalActions?.customActions?.map((action) => (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n onUpdateFromDate(\r\n formatDate(\r\n action.fromValue\r\n ? new Date(action.fromValue)\r\n : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n action.toValue ? new Date(action.toValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n {action.label}\r\n </Button>\r\n ))}\r\n </div>\r\n )}\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n borderLeft: \"1px solid #e0e0e0\",\r\n alignSelf: \"flex-start\",\r\n }}\r\n >\r\n <LocalizationProvider\r\n dateAdapter={AdapterDateFns}\r\n adapterLocale={locale}\r\n >\r\n <DateRangeCalendar\r\n value={[\r\n fromDate ? getDateTimeWithOffset(fromDate) : null,\r\n toDate ? getDateTimeWithOffset(toDate) : null,\r\n ]}\r\n onChange={(newValue: any, selectionState) => {\r\n if (selectionState !== \"partial\") {\r\n setShowCalendar(false);\r\n }\r\n const tempFromValue = newValue[0] ? newValue[0] : null;\r\n const tempToValue = newValue[1] ? newValue[1] : null;\r\n\r\n if (validate) {\r\n const tempFromValError = validate(tempFromValue);\r\n if (tempFromValError) {\r\n setValidationError(tempFromValError);\r\n }\r\n const tempToValError = validate(tempToValue);\r\n if (tempToValError) {\r\n setValidationError(tempToValError);\r\n }\r\n }\r\n onUpdateFromDate(\r\n formatDate(\r\n tempFromValue ? new Date(tempFromValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n tempToValue ? new Date(tempToValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }}\r\n calendars={calendars || 2}\r\n sx={{\r\n \"& .MuiTypography-caption\": { height: 30, width: 30 },\r\n \"& .MuiDateRangePickerDay-rangeIntervalPreview\": {\r\n height: 30,\r\n width: 30,\r\n },\r\n \"& .MuiDayCalendar-slideTransition\": {\r\n minHeight: 220,\r\n height: 220,\r\n },\r\n }}\r\n slotProps={{\r\n day: { style: { height: 30, width: 30 } },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n </div>\r\n </div>\r\n </Paper>\r\n </ClickAwayListener>\r\n </Popper>\r\n </>\r\n );\r\n};\r\nexport default LCTDateRangePicker;\r\n","\"use client\";\n\nimport createSvgIcon from \"./utils/createSvgIcon.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport default createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z\"\n}), 'CloseOutlined');","import { FC } from \"react\";\r\nimport CloseOutlinedIcon from \"@mui/icons-material/CloseOutlined\";\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n IconButton,\r\n Typography,\r\n} from \"@mui/material\";\r\n\r\nimport LEAPIcon from \"../../images/leap-icon\";\r\nimport WarningIcon from \"../../images/warning-icon\";\r\n\r\ninterface IDialogProps {\r\n actions?: React.ReactNode;\r\n children: React.ReactNode;\r\n closeIcon?: boolean;\r\n hideOverflow?: boolean;\r\n isOpen: boolean;\r\n key?: React.Key | null | undefined;\r\n maxWidth?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\r\n minWidth?: number;\r\n onClose?: () => void;\r\n showWarningIcon?: boolean;\r\n title: string;\r\n}\r\n\r\nconst LCTDialog: FC<IDialogProps> = ({\r\n actions,\r\n children,\r\n closeIcon,\r\n hideOverflow,\r\n isOpen,\r\n key,\r\n maxWidth,\r\n minWidth,\r\n onClose,\r\n showWarningIcon,\r\n title,\r\n}) => {\r\n return (\r\n <>\r\n <Dialog key={key} open={isOpen} maxWidth={maxWidth || \"xl\"}>\r\n <DialogContent\r\n sx={\r\n hideOverflow\r\n ? {\r\n padding: 0,\r\n minWidth: minWidth || 400,\r\n overflowY: \"hidden\",\r\n }\r\n : { padding: 0, minWidth: minWidth || 400 }\r\n }\r\n >\r\n <DialogTitle style={{ backgroundColor: \"#f0f1f2\", padding: 0 }}>\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n display: \"flex\",\r\n minHeight: 28,\r\n paddingLeft: 8,\r\n verticalAlign: \"center\",\r\n }}\r\n >\r\n <LEAPIcon />\r\n <div style={{ flex: 1, paddingLeft: 5 }}>\r\n <Typography variant=\"body1\">{title}</Typography>\r\n </div>\r\n <div>\r\n {closeIcon && (\r\n <IconButton\r\n disableRipple\r\n disableFocusRipple\r\n disableTouchRipple\r\n sx={{\r\n borderRadius: 0,\r\n \":hover\": {\r\n backgroundColor: \"#c42b1c\",\r\n \".MuiSvgIcon-root\": {\r\n path: { color: \"#ffffff\" },\r\n },\r\n },\r\n }}\r\n onClick={() => {\r\n if (onClose) {\r\n onClose();\r\n }\r\n }}\r\n >\r\n <CloseOutlinedIcon style={{ height: 20 }} />\r\n </IconButton>\r\n )}\r\n </div>\r\n </div>\r\n </DialogTitle>\r\n <div style={{ display: \"flex\", minHeight: 120 }}>\r\n {!!showWarningIcon && (\r\n <div\r\n style={{\r\n marginLeft: 15,\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n }}\r\n >\r\n <WarningIcon />\r\n </div>\r\n )}\r\n <div\r\n style={{\r\n flex: 1,\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n marginLeft: 15,\r\n marginRight: 15,\r\n }}\r\n >\r\n {children}\r\n </div>\r\n </div>\r\n </DialogContent>\r\n {actions && (\r\n <DialogActions\r\n style={{\r\n borderTop: \"1px solid rgba(224, 224, 224, 1)\",\r\n backgroundColor: \"rgb(241, 243, 249)\",\r\n }}\r\n >\r\n {actions}\r\n </DialogActions>\r\n )}\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTDialog;\r\n","import { Divider, DividerProps } from \"@mui/material\";\r\n\r\nconst LCTDivider = (props: DividerProps) => {\r\n return <Divider {...props} />;\r\n};\r\n\r\nexport default LCTDivider;\r\n","import { Drawer, DrawerProps } from \"@mui/material\";\r\nimport { createRef, useCallback, useState } from \"react\";\r\n\r\ninterface IDrawerProps extends DrawerProps {\r\n leftContent: React.ReactNode;\r\n rightContent: React.ReactNode;\r\n height: number | string;\r\n defaultDrawerWidth: number;\r\n minDrawerWidth?: number;\r\n}\r\n\r\nconst LCTDrawer = (props: IDrawerProps) => {\r\n const [drawerWidth, setDrawerWidth] = useState(props.defaultDrawerWidth);\r\n const targetRef = createRef<HTMLInputElement>();\r\n\r\n const currentMinDrawerWidth = props.minDrawerWidth\r\n ? props.minDrawerWidth\r\n : 500;\r\n const maxDrawerWidth = (targetRef.current?.clientWidth || 1100) - 250;\r\n\r\n const handleMouseDown = () => {\r\n document.addEventListener(\"mouseup\", handleMouseUp, true);\r\n document.addEventListener(\"mousemove\", handleMouseMove, true);\r\n };\r\n\r\n const handleMouseUp = () => {\r\n document.removeEventListener(\"mouseup\", handleMouseUp, true);\r\n document.removeEventListener(\"mousemove\", handleMouseMove, true);\r\n };\r\n\r\n const handleMouseMove = useCallback(\r\n (e: any) => {\r\n const newWidth = e.clientX - document.body.offsetLeft;\r\n if (newWidth > currentMinDrawerWidth && newWidth < maxDrawerWidth) {\r\n setDrawerWidth(newWidth);\r\n }\r\n },\r\n [maxDrawerWidth],\r\n );\r\n\r\n return (\r\n <div ref={targetRef}>\r\n <Drawer\r\n {...props}\r\n style={{\r\n flexShrink: 0,\r\n }}\r\n variant=\"permanent\"\r\n PaperProps={{\r\n style: {\r\n width: drawerWidth,\r\n top: 130,\r\n height: props.height,\r\n maxHeight: props.height,\r\n },\r\n }}\r\n >\r\n <div\r\n onMouseDown={() => handleMouseDown()}\r\n style={{\r\n width: \"5px\",\r\n cursor: \"ew-resize\",\r\n padding: \"4px 0 0\",\r\n borderTop: \"1px solid #ddd\",\r\n position: \"absolute\",\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n zIndex: 100,\r\n backgroundColor: \"#f4f7f9\",\r\n }}\r\n />\r\n {props.leftContent}\r\n </Drawer>\r\n <div\r\n style={{\r\n width: (targetRef.current?.clientWidth || 1100) - drawerWidth,\r\n float: \"right\",\r\n }}\r\n >\r\n {props.rightContent}\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTDrawer;\r\n","import { FC, ReactNode } from \"react\";\r\nimport { LCTButton } from \"../button\";\r\n\r\ninterface IFooterProps {\r\n leftComponents?: ReactNode;\r\n rightComponents?: ReactNode;\r\n onCancel?: () => void;\r\n onClose?: () => void;\r\n onOK?: () => void;\r\n onSaveDisable?: boolean;\r\n}\r\n\r\nconst LCTFooter: FC<IFooterProps> = ({\r\n leftComponents,\r\n rightComponents,\r\n onCancel,\r\n onClose,\r\n onOK,\r\n onSaveDisable,\r\n}) => {\r\n return (\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n backgroundColor: \"rgb(240, 241, 242)\",\r\n borderTop: \"1px solid #d8d8d8\",\r\n display: \"flex\",\r\n height: \"35px\",\r\n padding: \"12px 15px\",\r\n }}\r\n >\r\n {leftComponents && <>{leftComponents}</>}\r\n <div className=\"flex1\"></div>\r\n {rightComponents && <>{rightComponents}</>}\r\n {onOK && (\r\n <div style={{ marginRight: 5 }}>\r\n <LCTButton\r\n color=\"primary\"\r\n disabled={onSaveDisable ? onSaveDisable : false}\r\n onClick={onOK}\r\n size=\"small\"\r\n >\r\n OK\r\n </LCTButton>\r\n </div>\r\n )}\r\n {onCancel && (\r\n <LCTButton\r\n onClick={onCancel}\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n size=\"small\"\r\n >\r\n Cancel\r\n </LCTButton>\r\n )}\r\n {onClose && (\r\n <LCTButton\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n onClick={onClose}\r\n size=\"small\"\r\n >\r\n Close\r\n </LCTButton>\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTFooter;\r\n","import { FormControlLabel, FormControlLabelProps } from \"@mui/material\";\r\n\r\nconst LCTFormControlLabel = (props: FormControlLabelProps) => {\r\n return <FormControlLabel {...props} />;\r\n};\r\n\r\nexport default LCTFormControlLabel;\r\n","import { FC, useRef } from \"react\";\r\nimport CloseOutlinedIcon from \"@mui/icons-material/CloseOutlined\";\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n IconButton,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport BinIcon from \"../../images/bin-icon\";\r\n\r\ninterface IDialogProps {\r\n children: React.ReactNode;\r\n closeIcon?: boolean;\r\n fullWidth?: boolean;\r\n hideOverflow?: boolean;\r\n isOpen: boolean;\r\n maxWidth?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\r\n minWidth?: number;\r\n onDelete?: () => void;\r\n onClose?: () => void;\r\n actions: React.ReactNode;\r\n leftHeaderActions?: React.ReactNode;\r\n title: string;\r\n}\r\n\r\nconst LCTFormDialog: FC<IDialogProps> = ({\r\n children,\r\n closeIcon,\r\n fullWidth,\r\n hideOverflow,\r\n isOpen,\r\n maxWidth,\r\n minWidth,\r\n onDelete,\r\n onClose,\r\n actions,\r\n leftHeaderActions,\r\n title,\r\n}) => {\r\n const refContainer = useRef<HTMLInputElement>(null);\r\n\r\n return (\r\n <>\r\n <Dialog\r\n fullWidth={fullWidth ? fullWidth : false}\r\n maxWidth={maxWidth || \"xl\"}\r\n open={isOpen}\r\n >\r\n <DialogContent\r\n sx={\r\n hideOverflow\r\n ? {\r\n padding: 0,\r\n minWidth: minWidth || 400,\r\n overflowY: \"hidden\",\r\n }\r\n : { padding: 0, minWidth: minWidth || 400 }\r\n }\r\n >\r\n <div style={{ width: \"100%\", backgroundColor: \"#6e7780\" }}>\r\n <div\r\n className=\"displayFlex\"\r\n style={{ alignItems: \"center\", minHeight: 28 }}\r\n >\r\n {onDelete && (\r\n <Tooltip title=\"Delete\">\r\n <IconButton\r\n aria-label=\"delete\"\r\n onClick={onDelete}\r\n sx={{\r\n borderRadius: 0,\r\n color: \"#ffffff\",\r\n padding: \"9px 8px\",\r\n }}\r\n >\r\n <BinIcon />\r\n </IconButton>\r\n </Tooltip>\r\n )}\r\n <div ref={refContainer}>{leftHeaderActions}</div>\r\n <div\r\n className=\"flex1\"\r\n style={{ marginRight: refContainer?.current?.offsetWidth || 0 }}\r\n >\r\n <Typography\r\n variant=\"body1\"\r\n textAlign=\"center\"\r\n style={{ color: \"#ffffff\" }}\r\n >\r\n {title}\r\n </Typography>\r\n </div>\r\n <div>\r\n {closeIcon && (\r\n <IconButton\r\n disableRipple\r\n disableFocusRipple\r\n disableTouchRipple\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"7px 6px\",\r\n \":hover\": {\r\n backgroundColor: \"#c42b1c\",\r\n color: \"#ffffff\",\r\n \".MuiSvgIcon-root\": {\r\n path: { color: \"#ffffff\" },\r\n },\r\n },\r\n }}\r\n onClick={() => {\r\n if (onClose) {\r\n onClose();\r\n }\r\n }}\r\n >\r\n <CloseOutlinedIcon\r\n style={{ color: \"#ffffff\", height: 20 }}\r\n />\r\n </IconButton>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n className=\"displayFlex\"\r\n style={{ alignItems: \"baseline\", minHeight: 120 }}\r\n >\r\n <div className=\"flex1 formBody\">{children}</div>\r\n </div>\r\n </DialogContent>\r\n <DialogActions>{actions}</DialogActions>\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTFormDialog;\r\n","export function isUnitless(value) {\n return String(parseFloat(value)).length === String(value).length;\n}\n\n// Ported from Compass\n// https://github.com/Compass/compass/blob/master/core/stylesheets/compass/typography/_units.scss\n// Emulate the sass function \"unit\"\nexport function getUnit(input) {\n return String(input).match(/[\\d.\\-+]*\\s*(.*)/)[1] || '';\n}\n\n// Emulate the sass function \"unitless\"\nexport function toUnitless(length) {\n return parseFloat(length);\n}\n\n// Convert any CSS <length> or <percentage> value to any another.\n// From https://github.com/KyleAMathews/convert-css-length\nexport function convertLength(baseFontSize) {\n return (length, toUnit) => {\n const fromUnit = getUnit(length);\n\n // Optimize for cases where `from` and `to` units are accidentally the same.\n if (fromUnit === toUnit) {\n return length;\n }\n\n // Convert input length to pixels.\n let pxLength = toUnitless(length);\n if (fromUnit !== 'px') {\n if (fromUnit === 'em') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n } else if (fromUnit === 'rem') {\n pxLength = toUnitless(length) * toUnitless(baseFontSize);\n }\n }\n\n // Convert length in pixels to the output unit\n let outputLength = pxLength;\n if (toUnit !== 'px') {\n if (toUnit === 'em') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else if (toUnit === 'rem') {\n outputLength = pxLength / toUnitless(baseFontSize);\n } else {\n return length;\n }\n }\n return parseFloat(outputLength.toFixed(5)) + toUnit;\n };\n}\nexport function alignProperty({\n size,\n grid\n}) {\n const sizeBelow = size - size % grid;\n const sizeAbove = sizeBelow + grid;\n return size - sizeBelow < sizeAbove - size ? sizeBelow : sizeAbove;\n}\n\n// fontGrid finds a minimal grid (in rem) for the fontSize values so that the\n// lineHeight falls under a x pixels grid, 4px in the case of Material Design,\n// without changing the relative line height\nexport function fontGrid({\n lineHeight,\n pixels,\n htmlFontSize\n}) {\n return pixels / (lineHeight * htmlFontSize);\n}\n\n/**\n * generate a responsive version of a given CSS property\n * @example\n * responsiveProperty({\n * cssProperty: 'fontSize',\n * min: 15,\n * max: 20,\n * unit: 'px',\n * breakpoints: [300, 600],\n * })\n *\n * // this returns\n *\n * {\n * fontSize: '15px',\n * '@media (min-width:300px)': {\n * fontSize: '17.5px',\n * },\n * '@media (min-width:600px)': {\n * fontSize: '20px',\n * },\n * }\n * @param {Object} params\n * @param {string} params.cssProperty - The CSS property to be made responsive\n * @param {number} params.min - The smallest value of the CSS property\n * @param {number} params.max - The largest value of the CSS property\n * @param {string} [params.unit] - The unit to be used for the CSS property\n * @param {Array.number} [params.breakpoints] - An array of breakpoints\n * @param {number} [params.alignStep] - Round scaled value to fall under this grid\n * @returns {Object} responsive styles for {params.cssProperty}\n */\nexport function responsiveProperty({\n cssProperty,\n min,\n max,\n unit = 'rem',\n breakpoints = [600, 900, 1200],\n transform = null\n}) {\n const output = {\n [cssProperty]: `${min}${unit}`\n };\n const factor = (max - min) / breakpoints[breakpoints.length - 1];\n breakpoints.forEach(breakpoint => {\n let value = min + factor * breakpoint;\n if (transform !== null) {\n value = transform(value);\n }\n output[`@media (min-width:${breakpoint}px)`] = {\n [cssProperty]: `${Math.round(value * 10000) / 10000}${unit}`\n };\n });\n return output;\n}","import _formatErrorMessage from \"@mui/utils/formatMuiErrorMessage\";\nimport { isUnitless, convertLength, responsiveProperty, alignProperty, fontGrid } from \"./cssUtils.js\";\nexport default function responsiveFontSizes(themeInput, options = {}) {\n const {\n breakpoints = ['sm', 'md', 'lg'],\n disableAlign = false,\n factor = 2,\n variants = ['h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'caption', 'button', 'overline']\n } = options;\n const theme = {\n ...themeInput\n };\n theme.typography = {\n ...theme.typography\n };\n const typography = theme.typography;\n\n // Convert between CSS lengths e.g. em->px or px->rem\n // Set the baseFontSize for your project. Defaults to 16px (also the browser default).\n const convert = convertLength(typography.htmlFontSize);\n const breakpointValues = breakpoints.map(x => theme.breakpoints.values[x]);\n variants.forEach(variant => {\n const style = typography[variant];\n if (!style) {\n return;\n }\n const remFontSize = parseFloat(convert(style.fontSize, 'rem'));\n if (remFontSize <= 1) {\n return;\n }\n const maxFontSize = remFontSize;\n const minFontSize = 1 + (maxFontSize - 1) / factor;\n let {\n lineHeight\n } = style;\n if (!isUnitless(lineHeight) && !disableAlign) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'MUI: Unsupported non-unitless line height with grid alignment.\\n' + 'Use unitless line heights instead.' : _formatErrorMessage(6));\n }\n if (!isUnitless(lineHeight)) {\n // make it unitless\n lineHeight = parseFloat(convert(lineHeight, 'rem')) / parseFloat(remFontSize);\n }\n let transform = null;\n if (!disableAlign) {\n transform = value => alignProperty({\n size: value,\n grid: fontGrid({\n pixels: 4,\n lineHeight,\n htmlFontSize: typography.htmlFontSize\n })\n });\n }\n typography[variant] = {\n ...style,\n ...responsiveProperty({\n cssProperty: 'fontSize',\n min: minFontSize,\n max: maxFontSize,\n unit: 'rem',\n breakpoints: breakpointValues,\n transform\n })\n };\n });\n return theme;\n}","'use client';\n\nimport PropTypes from 'prop-types';\nimport { createGrid } from '@mui/system/Grid';\nimport requirePropFactory from \"../utils/requirePropFactory.js\";\nimport { styled } from \"../styles/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport useTheme from \"../styles/useTheme.js\";\n/**\n *\n * Demos:\n *\n * - [Grid](https://mui.com/material-ui/react-grid/)\n *\n * API:\n *\n * - [Grid API](https://mui.com/material-ui/api/grid/)\n */\nconst Grid = createGrid({\n createStyledComponent: styled('div', {\n name: 'MuiGrid',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.container && styles.container];\n }\n }),\n componentName: 'MuiGrid',\n useThemeProps: inProps => useDefaultProps({\n props: inProps,\n name: 'MuiGrid'\n }),\n useTheme\n});\nprocess.env.NODE_ENV !== \"production\" ? Grid.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the TypeScript types and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * The number of columns.\n * @default 12\n */\n columns: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.number), PropTypes.number, PropTypes.object]),\n /**\n * Defines the horizontal space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n columnSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * If `true`, the component will have the flex *container* behavior.\n * You should be wrapping *items* with a *container*.\n * @default false\n */\n container: PropTypes.bool,\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'row'\n */\n direction: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row']), PropTypes.arrayOf(PropTypes.oneOf(['column-reverse', 'column', 'row-reverse', 'row'])), PropTypes.object]),\n /**\n * Defines the offset value for the type `item` components.\n */\n offset: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the vertical space between the type `item` components.\n * It overrides the value of the `spacing` prop.\n */\n rowSpacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * Defines the size of the the type `item` components.\n */\n size: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number, PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.bool, PropTypes.number])), PropTypes.object]),\n /**\n * Defines the space between the type `item` components.\n * It can only be used on a type `container` component.\n * @default 0\n */\n spacing: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n /**\n * @ignore\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * @internal\n * The level of the grid starts from `0` and increases when the grid nests\n * inside another grid. Nesting is defined as a container Grid being a direct\n * child of a container Grid.\n *\n * ```js\n * <Grid container> // level 0\n * <Grid container> // level 1\n * <Grid container> // level 2\n * ```\n *\n * Only consecutive grid is considered nesting. A grid container will start at\n * `0` if there are non-Grid container element above it.\n *\n * ```js\n * <Grid container> // level 0\n * <div>\n * <Grid container> // level 0\n * ```\n *\n * ```js\n * <Grid container> // level 0\n * <Grid>\n * <Grid container> // level 0\n * ```\n */\n unstable_level: PropTypes.number,\n /**\n * Defines the `flex-wrap` style property.\n * It's applied for all screen sizes.\n * @default 'wrap'\n */\n wrap: PropTypes.oneOf(['nowrap', 'wrap-reverse', 'wrap'])\n} : void 0;\nif (process.env.NODE_ENV !== 'production') {\n const Component = Grid;\n const requireProp = requirePropFactory('Grid', Component);\n // eslint-disable-next-line no-useless-concat\n Component['propTypes' + ''] = {\n // eslint-disable-next-line react/forbid-foreign-prop-types\n ...Component.propTypes,\n direction: requireProp('container'),\n spacing: requireProp('container'),\n wrap: requireProp('container')\n };\n}\nexport default Grid;","import Grid, { GridProps } from \"@mui/material/Grid\";\r\n\r\nconst LCTGrid = (props: GridProps) => {\r\n return <Grid {...props} />;\r\n};\r\n\r\nexport default LCTGrid;\r\n","import { IconButton, IconButtonProps } from \"@mui/material\";\r\n\r\nconst LCTIconButton = (props: IconButtonProps) => {\r\n return <IconButton {...props}>{props.children}</IconButton>;\r\n};\r\n\r\nexport default LCTIconButton;\r\n","import { InputAdornment, InputAdornmentProps } from \"@mui/material\";\r\n\r\nconst LCTInputAdornment = (props: InputAdornmentProps) => {\r\n return (\r\n <InputAdornment\r\n {...props}\r\n position={props.position ? props.position : \"start\"}\r\n >\r\n {props.children}\r\n </InputAdornment>\r\n );\r\n};\r\n\r\nexport default LCTInputAdornment;\r\n","import { InputLabel, InputLabelProps } from \"@mui/material\";\r\n\r\nconst LCTInputLabel = (props: InputLabelProps) => {\r\n return <InputLabel {...props}>{props.children}</InputLabel>;\r\n};\r\n\r\nexport default LCTInputLabel;\r\n","import { List, ListProps } from \"@mui/material\";\r\n\r\nconst LCTList = (props: ListProps) => {\r\n return <List {...props}>{props.children}</List>;\r\n};\r\n\r\nexport default LCTList;\r\n","export default function chainPropTypes(propType1, propType2) {\n if (process.env.NODE_ENV === 'production') {\n return () => null;\n }\n return function validate(...args) {\n return propType1(...args) || propType2(...args);\n };\n}","import PropTypes from 'prop-types';\nimport * as React from 'react';\nimport chainPropTypes from \"../chainPropTypes/index.js\";\nfunction isClassComponent(elementType) {\n // elementType.prototype?.isReactComponent\n const {\n prototype = {}\n } = elementType;\n return Boolean(prototype.isReactComponent);\n}\nfunction elementTypeAcceptingRef(props, propName, componentName, location, propFullName) {\n const propValue = props[propName];\n const safePropName = propFullName || propName;\n if (propValue == null ||\n // When server-side rendering React doesn't warn either.\n // This is not an accurate check for SSR.\n // This is only in place for emotion compat.\n // TODO: Revisit once https://github.com/facebook/react/issues/20047 is resolved.\n typeof window === 'undefined') {\n return null;\n }\n let warningHint;\n\n /**\n * Blacklisting instead of whitelisting\n *\n * Blacklisting will miss some components, such as React.Fragment. Those will at least\n * trigger a warning in React.\n * We can't whitelist because there is no safe way to detect React.forwardRef\n * or class components. \"Safe\" means there's no public API.\n *\n */\n if (typeof propValue === 'function' && !isClassComponent(propValue)) {\n warningHint = 'Did you accidentally provide a plain function component instead?';\n }\n if (propValue === React.Fragment) {\n warningHint = 'Did you accidentally provide a React.Fragment instead?';\n }\n\n // #host-reference\n if (warningHint !== undefined) {\n return new Error(`Invalid ${location} \\`${safePropName}\\` supplied to \\`${componentName}\\`. ` + `Expected an element type that can hold a ref. ${warningHint} ` + 'For more information see https://v7.mui.com/r/caveat-with-refs-guide');\n }\n return null;\n}\nexport default chainPropTypes(PropTypes.elementType, elementTypeAcceptingRef);","/**\n * Determines if a given element is a DOM element name (i.e. not a React component).\n */\nfunction isHostComponent(element) {\n return typeof element === 'string';\n}\nexport default isHostComponent;","import isHostComponent from \"../isHostComponent/index.js\";\n\n/**\n * Type of the ownerState based on the type of an element it applies to.\n * This resolves to the provided OwnerState for React components and `undefined` for host components.\n * Falls back to `OwnerState | undefined` when the exact type can't be determined in development time.\n */\n\n/**\n * Appends the ownerState object to the props, merging with the existing one if necessary.\n *\n * @param elementType Type of the element that owns the `existingProps`. If the element is a DOM node or undefined, `ownerState` is not applied.\n * @param otherProps Props of the element.\n * @param ownerState\n */\nfunction appendOwnerState(elementType, otherProps, ownerState) {\n if (elementType === undefined || isHostComponent(elementType)) {\n return otherProps;\n }\n return {\n ...otherProps,\n ownerState: {\n ...otherProps.ownerState,\n ...ownerState\n }\n };\n}\nexport default appendOwnerState;","/**\n * If `componentProps` is a function, calls it with the provided `ownerState`.\n * Otherwise, just returns `componentProps`.\n */\nfunction resolveComponentProps(componentProps, ownerState, slotState) {\n if (typeof componentProps === 'function') {\n return componentProps(ownerState, slotState);\n }\n return componentProps;\n}\nexport default resolveComponentProps;","/**\n * Extracts event handlers from a given object.\n * A prop is considered an event handler if it is a function and its name starts with `on`.\n *\n * @param object An object to extract event handlers from.\n * @param excludeKeys An array of keys to exclude from the returned object.\n */\nfunction extractEventHandlers(object, excludeKeys = []) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => prop.match(/^on[A-Z]/) && typeof object[prop] === 'function' && !excludeKeys.includes(prop)).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default extractEventHandlers;","/**\n * Removes event handlers from the given object.\n * A field is considered an event handler if it is a function with a name beginning with `on`.\n *\n * @param object Object to remove event handlers from.\n * @returns Object with event handlers removed.\n */\nfunction omitEventHandlers(object) {\n if (object === undefined) {\n return {};\n }\n const result = {};\n Object.keys(object).filter(prop => !(prop.match(/^on[A-Z]/) && typeof object[prop] === 'function')).forEach(prop => {\n result[prop] = object[prop];\n });\n return result;\n}\nexport default omitEventHandlers;","import clsx from 'clsx';\nimport extractEventHandlers from \"../extractEventHandlers/index.js\";\nimport omitEventHandlers from \"../omitEventHandlers/index.js\";\n/**\n * Merges the slot component internal props (usually coming from a hook)\n * with the externally provided ones.\n *\n * The merge order is (the latter overrides the former):\n * 1. The internal props (specified as a getter function to work with get*Props hook result)\n * 2. Additional props (specified internally on a Base UI component)\n * 3. External props specified on the owner component. These should only be used on a root slot.\n * 4. External props specified in the `slotProps.*` prop.\n * 5. The `className` prop - combined from all the above.\n * @param parameters\n * @returns\n */\nfunction mergeSlotProps(parameters) {\n const {\n getSlotProps,\n additionalProps,\n externalSlotProps,\n externalForwardedProps,\n className\n } = parameters;\n if (!getSlotProps) {\n // The simpler case - getSlotProps is not defined, so no internal event handlers are defined,\n // so we can simply merge all the props without having to worry about extracting event handlers.\n const joinedClasses = clsx(additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...additionalProps,\n ...externalForwardedProps,\n ...externalSlotProps\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: undefined\n };\n }\n\n // In this case, getSlotProps is responsible for calling the external event handlers.\n // We don't need to include them in the merged props because of this.\n\n const eventHandlers = extractEventHandlers({\n ...externalForwardedProps,\n ...externalSlotProps\n });\n const componentsPropsWithoutEventHandlers = omitEventHandlers(externalSlotProps);\n const otherPropsWithoutEventHandlers = omitEventHandlers(externalForwardedProps);\n const internalSlotProps = getSlotProps(eventHandlers);\n\n // The order of classes is important here.\n // Emotion (that we use in libraries consuming Base UI) depends on this order\n // to properly override style. It requires the most important classes to be last\n // (see https://github.com/mui/material-ui/pull/33205) for the related discussion.\n const joinedClasses = clsx(internalSlotProps?.className, additionalProps?.className, className, externalForwardedProps?.className, externalSlotProps?.className);\n const mergedStyle = {\n ...internalSlotProps?.style,\n ...additionalProps?.style,\n ...externalForwardedProps?.style,\n ...externalSlotProps?.style\n };\n const props = {\n ...internalSlotProps,\n ...additionalProps,\n ...otherPropsWithoutEventHandlers,\n ...componentsPropsWithoutEventHandlers\n };\n if (joinedClasses.length > 0) {\n props.className = joinedClasses;\n }\n if (Object.keys(mergedStyle).length > 0) {\n props.style = mergedStyle;\n }\n return {\n props,\n internalRef: internalSlotProps.ref\n };\n}\nexport default mergeSlotProps;","'use client';\n\nimport useForkRef from '@mui/utils/useForkRef';\nimport appendOwnerState from '@mui/utils/appendOwnerState';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport mergeSlotProps from '@mui/utils/mergeSlotProps';\n/**\n * An internal function to create a Material UI slot.\n *\n * This is an advanced version of Base UI `useSlotProps` because Material UI allows leaf component to be customized via `component` prop\n * while Base UI does not need to support leaf component customization.\n *\n * @param {string} name: name of the slot\n * @param {object} parameters\n * @returns {[Slot, slotProps]} The slot's React component and the slot's props\n *\n * Note: the returned slot's props\n * - will never contain `component` prop.\n * - might contain `as` prop.\n */\nexport default function useSlot(\n/**\n * The slot's name. All Material UI components should have `root` slot.\n *\n * If the name is `root`, the logic behaves differently from other slots,\n * e.g. the `externalForwardedProps` are spread to `root` slot but not other slots.\n */\nname, parameters) {\n const {\n className,\n elementType: initialElementType,\n ownerState,\n externalForwardedProps,\n internalForwardedProps,\n shouldForwardComponentProp = false,\n ...useSlotPropsParams\n } = parameters;\n const {\n component: rootComponent,\n slots = {\n [name]: undefined\n },\n slotProps = {\n [name]: undefined\n },\n ...other\n } = externalForwardedProps;\n const elementType = slots[name] || initialElementType;\n\n // `slotProps[name]` can be a callback that receives the component's ownerState.\n // `resolvedComponentsProps` is always a plain object.\n const resolvedComponentsProps = resolveComponentProps(slotProps[name], ownerState);\n const {\n props: {\n component: slotComponent,\n ...mergedProps\n },\n internalRef\n } = mergeSlotProps({\n className,\n ...useSlotPropsParams,\n externalForwardedProps: name === 'root' ? other : undefined,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.ref);\n const LeafComponent = name === 'root' ? slotComponent || rootComponent : slotComponent;\n const props = appendOwnerState(elementType, {\n ...(name === 'root' && !rootComponent && !slots[name] && internalForwardedProps),\n ...(name !== 'root' && !slots[name] && internalForwardedProps),\n ...mergedProps,\n ...(LeafComponent && !shouldForwardComponentProp && {\n as: LeafComponent\n }),\n ...(LeafComponent && shouldForwardComponentProp && {\n component: LeafComponent\n }),\n ref\n }, ownerState);\n return [elementType, props];\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nconst ListContext = /*#__PURE__*/React.createContext({});\nif (process.env.NODE_ENV !== 'production') {\n ListContext.displayName = 'ListContext';\n}\nexport default ListContext;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemUtilityClass(slot) {\n return generateUtilityClass('MuiListItem', slot);\n}\nconst listItemClasses = generateUtilityClasses('MuiListItem', ['root', 'container', 'dense', 'alignItemsFlexStart', 'divider', 'gutters', 'padding', 'secondaryAction']);\nexport default listItemClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemButtonUtilityClass(slot) {\n return generateUtilityClass('MuiListItemButton', slot);\n}\nconst listItemButtonClasses = generateUtilityClasses('MuiListItemButton', ['root', 'focusVisible', 'dense', 'alignItemsFlexStart', 'disabled', 'divider', 'gutters', 'selected']);\nexport default listItemButtonClasses;","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getListItemSecondaryActionClassesUtilityClass(slot) {\n return generateUtilityClass('MuiListItemSecondaryAction', slot);\n}\nconst listItemSecondaryActionClasses = generateUtilityClasses('MuiListItemSecondaryAction', ['root', 'disableGutters']);\nexport default listItemSecondaryActionClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled } from \"../zero-styled/index.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemSecondaryActionClassesUtilityClass } from \"./listItemSecondaryActionClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disableGutters,\n classes\n } = ownerState;\n const slots = {\n root: ['root', disableGutters && 'disableGutters']\n };\n return composeClasses(slots, getListItemSecondaryActionClassesUtilityClass, classes);\n};\nconst ListItemSecondaryActionRoot = styled('div', {\n name: 'MuiListItemSecondaryAction',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.disableGutters && styles.disableGutters];\n }\n})({\n position: 'absolute',\n right: 16,\n top: '50%',\n transform: 'translateY(-50%)',\n variants: [{\n props: ({\n ownerState\n }) => ownerState.disableGutters,\n style: {\n right: 0\n }\n }]\n});\n\n/**\n * Must be used as the last child of ListItem to function properly.\n *\n * @deprecated Use the `secondaryAction` prop in the `ListItem` component instead. This component will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\nconst ListItemSecondaryAction = /*#__PURE__*/React.forwardRef(function ListItemSecondaryAction(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItemSecondaryAction'\n });\n const {\n className,\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const ownerState = {\n ...props,\n disableGutters: context.disableGutters\n };\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(ListItemSecondaryActionRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n ...other\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItemSecondaryAction.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * The content of the component, normally an `IconButton` or selection control.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nListItemSecondaryAction.muiName = 'ListItemSecondaryAction';\nexport default ListItemSecondaryAction;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport elementTypeAcceptingRef from '@mui/utils/elementTypeAcceptingRef';\nimport chainPropTypes from '@mui/utils/chainPropTypes';\nimport isHostComponent from '@mui/utils/isHostComponent';\nimport { styled } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport isMuiElement from \"../utils/isMuiElement.js\";\nimport useForkRef from \"../utils/useForkRef.js\";\nimport useSlot from \"../utils/useSlot.js\";\nimport ListContext from \"../List/ListContext.js\";\nimport { getListItemUtilityClass } from \"./listItemClasses.js\";\nimport { listItemButtonClasses } from \"../ListItemButton/index.js\";\nimport ListItemSecondaryAction from \"../ListItemSecondaryAction/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.dense && styles.dense, ownerState.alignItems === 'flex-start' && styles.alignItemsFlexStart, ownerState.divider && styles.divider, !ownerState.disableGutters && styles.gutters, !ownerState.disablePadding && styles.padding, ownerState.hasSecondaryAction && styles.secondaryAction];\n};\nconst useUtilityClasses = ownerState => {\n const {\n alignItems,\n classes,\n dense,\n disableGutters,\n disablePadding,\n divider,\n hasSecondaryAction\n } = ownerState;\n const slots = {\n root: ['root', dense && 'dense', !disableGutters && 'gutters', !disablePadding && 'padding', divider && 'divider', alignItems === 'flex-start' && 'alignItemsFlexStart', hasSecondaryAction && 'secondaryAction'],\n container: ['container'],\n secondaryAction: ['secondaryAction']\n };\n return composeClasses(slots, getListItemUtilityClass, classes);\n};\nexport const ListItemRoot = styled('div', {\n name: 'MuiListItem',\n slot: 'Root',\n overridesResolver\n})(memoTheme(({\n theme\n}) => ({\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n textDecoration: 'none',\n width: '100%',\n boxSizing: 'border-box',\n textAlign: 'left',\n variants: [{\n props: ({\n ownerState\n }) => !ownerState.disablePadding,\n style: {\n paddingTop: 8,\n paddingBottom: 8\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && ownerState.dense,\n style: {\n paddingTop: 4,\n paddingBottom: 4\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && !ownerState.disableGutters,\n style: {\n paddingLeft: 16,\n paddingRight: 16\n }\n }, {\n props: ({\n ownerState\n }) => !ownerState.disablePadding && !!ownerState.secondaryAction,\n style: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n }\n }, {\n props: ({\n ownerState\n }) => !!ownerState.secondaryAction,\n style: {\n [`& > .${listItemButtonClasses.root}`]: {\n paddingRight: 48\n }\n }\n }, {\n props: {\n alignItems: 'flex-start'\n },\n style: {\n alignItems: 'flex-start'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.divider,\n style: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`,\n backgroundClip: 'padding-box'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.button,\n style: {\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shortest\n }),\n '&:hover': {\n textDecoration: 'none',\n backgroundColor: (theme.vars || theme).palette.action.hover,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: 'transparent'\n }\n }\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.hasSecondaryAction,\n style: {\n // Add some space to avoid collision as `ListItemSecondaryAction`\n // is absolutely positioned.\n paddingRight: 48\n }\n }]\n})));\nconst ListItemContainer = styled('li', {\n name: 'MuiListItem',\n slot: 'Container'\n})({\n position: 'relative'\n});\n\n/**\n * Uses an additional container component if `ListItemSecondaryAction` is the last child.\n */\nconst ListItem = /*#__PURE__*/React.forwardRef(function ListItem(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiListItem'\n });\n const {\n alignItems = 'center',\n children: childrenProp,\n className,\n component: componentProp,\n components = {},\n componentsProps = {},\n ContainerComponent = 'li',\n ContainerProps: {\n className: ContainerClassName,\n ...ContainerProps\n } = {},\n dense = false,\n disableGutters = false,\n disablePadding = false,\n divider = false,\n secondaryAction,\n slotProps = {},\n slots = {},\n ...other\n } = props;\n const context = React.useContext(ListContext);\n const childContext = React.useMemo(() => ({\n dense: dense || context.dense || false,\n alignItems,\n disableGutters\n }), [alignItems, context.dense, dense, disableGutters]);\n const listItemRef = React.useRef(null);\n const children = React.Children.toArray(childrenProp);\n\n // v4 implementation, deprecated in v6, will be removed in a future major release\n const hasSecondaryAction = children.length && isMuiElement(children[children.length - 1], ['ListItemSecondaryAction']);\n const ownerState = {\n ...props,\n alignItems,\n dense: childContext.dense,\n disableGutters,\n disablePadding,\n divider,\n hasSecondaryAction\n };\n const classes = useUtilityClasses(ownerState);\n const handleRef = useForkRef(listItemRef, ref);\n const externalForwardedProps = {\n slots,\n slotProps\n };\n const [SecondaryActionSlot, secondaryActionSlotProps] = useSlot('secondaryAction', {\n elementType: ListItemSecondaryAction,\n externalForwardedProps,\n ownerState,\n className: classes.secondaryAction\n });\n const Root = slots.root || components.Root || ListItemRoot;\n const rootProps = slotProps.root || componentsProps.root || {};\n const componentProps = {\n className: clsx(classes.root, rootProps.className, className),\n ...other\n };\n let Component = componentProp || 'li';\n\n // v4 implementation, deprecated in v6, will be removed in a future major release\n if (hasSecondaryAction) {\n // Use div by default.\n Component = !componentProps.component && !componentProp ? 'div' : Component;\n\n // Avoid nesting of li > li.\n if (ContainerComponent === 'li') {\n if (Component === 'li') {\n Component = 'div';\n } else if (componentProps.component === 'li') {\n componentProps.component = 'div';\n }\n }\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsxs(ListItemContainer, {\n as: ContainerComponent,\n className: clsx(classes.container, ContainerClassName),\n ref: handleRef,\n ownerState: ownerState,\n ...ContainerProps,\n children: [/*#__PURE__*/_jsx(Root, {\n ...rootProps,\n ...(!isHostComponent(Root) && {\n as: Component,\n ownerState: {\n ...ownerState,\n ...rootProps.ownerState\n }\n }),\n ...componentProps,\n children: children\n }), children.pop()]\n })\n });\n }\n return /*#__PURE__*/_jsx(ListContext.Provider, {\n value: childContext,\n children: /*#__PURE__*/_jsxs(Root, {\n ...rootProps,\n as: Component,\n ref: handleRef,\n ...(!isHostComponent(Root) && {\n ownerState: {\n ...ownerState,\n ...rootProps.ownerState\n }\n }),\n ...componentProps,\n children: [children, secondaryAction && /*#__PURE__*/_jsx(SecondaryActionSlot, {\n ...secondaryActionSlotProps,\n children: secondaryAction\n })]\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? ListItem.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Defines the `align-items` style property.\n * @default 'center'\n */\n alignItems: PropTypes.oneOf(['center', 'flex-start']),\n /**\n * The content of the component if a `ListItemSecondaryAction` is used it must\n * be the last child.\n */\n children: chainPropTypes(PropTypes.node, props => {\n const children = React.Children.toArray(props.children);\n\n // React.Children.toArray(props.children).findLastIndex(isListItemSecondaryAction)\n let secondaryActionIndex = -1;\n for (let i = children.length - 1; i >= 0; i -= 1) {\n const child = children[i];\n if (isMuiElement(child, ['ListItemSecondaryAction'])) {\n secondaryActionIndex = i;\n break;\n }\n }\n\n // is ListItemSecondaryAction the last child of ListItem\n if (secondaryActionIndex !== -1 && secondaryActionIndex !== children.length - 1) {\n return new Error('MUI: You used an element after ListItemSecondaryAction. ' + 'For ListItem to detect that it has a secondary action ' + 'you must pass it as the last child to ListItem.');\n }\n return null;\n }),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * The components used for each slot inside.\n *\n * @deprecated Use the `slots` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n components: PropTypes.shape({\n Root: PropTypes.elementType\n }),\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @deprecated Use the `slotProps` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n * @default {}\n */\n componentsProps: PropTypes.shape({\n root: PropTypes.object\n }),\n /**\n * The container component used when a `ListItemSecondaryAction` is the last child.\n * @default 'li'\n * @deprecated Use the `component` or `slots.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ContainerComponent: elementTypeAcceptingRef,\n /**\n * Props applied to the container component if used.\n * @default {}\n * @deprecated Use the `slotProps.root` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n ContainerProps: PropTypes.object,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used.\n * The prop defaults to the value inherited from the parent List component.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, the left and right padding is removed.\n * @default false\n */\n disableGutters: PropTypes.bool,\n /**\n * If `true`, all padding is removed.\n * @default false\n */\n disablePadding: PropTypes.bool,\n /**\n * If `true`, a 1px light border is added to the bottom of the list item.\n * @default false\n */\n divider: PropTypes.bool,\n /**\n * The element to display at the end of ListItem.\n */\n secondaryAction: PropTypes.node,\n /**\n * The extra props for the slot components.\n * You can override the existing props or add new ones.\n *\n * @default {}\n */\n slotProps: PropTypes.shape({\n root: PropTypes.object,\n secondaryAction: PropTypes.oneOfType([PropTypes.func, PropTypes.object])\n }),\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.shape({\n root: PropTypes.elementType,\n secondaryAction: PropTypes.elementType\n }),\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default ListItem;","import ListItem, { ListItemOwnProps } from \"@mui/material/ListItem\";\r\n\r\nconst LCTListItem = (props: ListItemOwnProps) => {\r\n return <ListItem {...props}>{props.children}</ListItem>;\r\n};\r\n\r\nexport default LCTListItem;\r\n","import { ListItemButton, ListItemButtonProps } from \"@mui/material\";\r\n\r\nconst LCTListItemButton = (props: ListItemButtonProps) => {\r\n return <ListItemButton {...props}>{props.children}</ListItemButton>;\r\n};\r\n\r\nexport default LCTListItemButton;\r\n","/**\n * Type guard to check if the object has a \"main\" property of type string.\n *\n * @param obj - the object to check\n * @returns boolean\n */\nfunction hasCorrectMainProperty(obj) {\n return typeof obj.main === 'string';\n}\n/**\n * Checks if the object conforms to the SimplePaletteColorOptions type.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param obj - The object to check\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns boolean\n */\nfunction checkSimplePaletteColorValues(obj, additionalPropertiesToCheck = []) {\n if (!hasCorrectMainProperty(obj)) {\n return false;\n }\n for (const value of additionalPropertiesToCheck) {\n if (!obj.hasOwnProperty(value) || typeof obj[value] !== 'string') {\n return false;\n }\n }\n return true;\n}\n\n/**\n * Creates a filter function used to filter simple palette color options.\n * The minimum requirement is that the object has a \"main\" property of type string, this is always checked.\n * Optionally, you can pass additional properties to check.\n *\n * @param additionalPropertiesToCheck - Array containing \"light\", \"dark\", and/or \"contrastText\"\n * @returns ([, value]: [any, PaletteColorOptions]) => boolean\n */\nexport default function createSimplePaletteValueFilter(additionalPropertiesToCheck = []) {\n return ([, value]) => value && checkSimplePaletteColorValues(value, additionalPropertiesToCheck);\n}","import generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nexport function getTypographyUtilityClass(slot) {\n return generateUtilityClass('MuiTypography', slot);\n}\nconst typographyClasses = generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);\nexport default typographyClasses;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { styled, internal_createExtendSxProp } from \"../zero-styled/index.js\";\nimport memoTheme from \"../utils/memoTheme.js\";\nimport { useDefaultProps } from \"../DefaultPropsProvider/index.js\";\nimport capitalize from \"../utils/capitalize.js\";\nimport createSimplePaletteValueFilter from \"../utils/createSimplePaletteValueFilter.js\";\nimport { getTypographyUtilityClass } from \"./typographyClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst v6Colors = {\n primary: true,\n secondary: true,\n error: true,\n info: true,\n success: true,\n warning: true,\n textPrimary: true,\n textSecondary: true,\n textDisabled: true\n};\nconst extendSxProp = internal_createExtendSxProp();\nconst useUtilityClasses = ownerState => {\n const {\n align,\n gutterBottom,\n noWrap,\n paragraph,\n variant,\n classes\n } = ownerState;\n const slots = {\n root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap', paragraph && 'paragraph']\n };\n return composeClasses(slots, getTypographyUtilityClass, classes);\n};\nexport const TypographyRoot = styled('span', {\n name: 'MuiTypography',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];\n }\n})(memoTheme(({\n theme\n}) => ({\n margin: 0,\n variants: [{\n props: {\n variant: 'inherit'\n },\n style: {\n // Some elements, like <button> on Chrome have default font that doesn't inherit, reset this.\n font: 'inherit',\n lineHeight: 'inherit',\n letterSpacing: 'inherit'\n }\n }, ...Object.entries(theme.typography).filter(([variant, value]) => variant !== 'inherit' && value && typeof value === 'object').map(([variant, value]) => ({\n props: {\n variant\n },\n style: value\n })), ...Object.entries(theme.palette).filter(createSimplePaletteValueFilter()).map(([color]) => ({\n props: {\n color\n },\n style: {\n color: (theme.vars || theme).palette[color].main\n }\n })), ...Object.entries(theme.palette?.text || {}).filter(([, value]) => typeof value === 'string').map(([color]) => ({\n props: {\n color: `text${capitalize(color)}`\n },\n style: {\n color: (theme.vars || theme).palette.text[color]\n }\n })), {\n props: ({\n ownerState\n }) => ownerState.align !== 'inherit',\n style: {\n textAlign: 'var(--Typography-textAlign)'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.noWrap,\n style: {\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n whiteSpace: 'nowrap'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.gutterBottom,\n style: {\n marginBottom: '0.35em'\n }\n }, {\n props: ({\n ownerState\n }) => ownerState.paragraph,\n style: {\n marginBottom: 16\n }\n }]\n})));\nconst defaultVariantMapping = {\n h1: 'h1',\n h2: 'h2',\n h3: 'h3',\n h4: 'h4',\n h5: 'h5',\n h6: 'h6',\n subtitle1: 'h6',\n subtitle2: 'h6',\n body1: 'p',\n body2: 'p',\n inherit: 'p'\n};\nconst Typography = /*#__PURE__*/React.forwardRef(function Typography(inProps, ref) {\n const {\n color,\n ...themeProps\n } = useDefaultProps({\n props: inProps,\n name: 'MuiTypography'\n });\n const isSxColor = !v6Colors[color];\n // TODO: Remove `extendSxProp` in v7\n const props = extendSxProp({\n ...themeProps,\n ...(isSxColor && {\n color\n })\n });\n const {\n align = 'inherit',\n className,\n component,\n gutterBottom = false,\n noWrap = false,\n paragraph = false,\n variant = 'body1',\n variantMapping = defaultVariantMapping,\n ...other\n } = props;\n const ownerState = {\n ...props,\n align,\n color,\n className,\n component,\n gutterBottom,\n noWrap,\n paragraph,\n variant,\n variantMapping\n };\n const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(TypographyRoot, {\n as: Component,\n ref: ref,\n className: clsx(classes.root, className),\n ...other,\n ownerState: ownerState,\n style: {\n ...(align !== 'inherit' && {\n '--Typography-textAlign': align\n }),\n ...other.style\n }\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? Typography.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Set the text-align on the component.\n * @default 'inherit'\n */\n align: PropTypes.oneOf(['center', 'inherit', 'justify', 'left', 'right']),\n /**\n * The content of the component.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The color of the component.\n * It supports both default and custom theme colors, which can be added as shown in the\n * [palette customization guide](https://mui.com/material-ui/customization/palette/#custom-colors).\n */\n color: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['primary', 'secondary', 'success', 'error', 'info', 'warning', 'textPrimary', 'textSecondary', 'textDisabled']), PropTypes.string]),\n /**\n * The component used for the root node.\n * Either a string to use a HTML element or a component.\n */\n component: PropTypes.elementType,\n /**\n * If `true`, the text will have a bottom margin.\n * @default false\n */\n gutterBottom: PropTypes.bool,\n /**\n * If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.\n *\n * Note that text overflow can only happen with block or inline-block level elements\n * (the element needs to have a width in order to overflow).\n * @default false\n */\n noWrap: PropTypes.bool,\n /**\n * If `true`, the element will be a paragraph element.\n * @default false\n * @deprecated Use the `component` prop instead. This prop will be removed in a future major release. See [Migrating from deprecated APIs](https://mui.com/material-ui/migration/migrating-from-deprecated-apis/) for more details.\n */\n paragraph: PropTypes.bool,\n /**\n * @ignore\n */\n style: PropTypes.object,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),\n /**\n * Applies the theme typography styles.\n * @default 'body1'\n */\n variant: PropTypes /* @typescript-to-proptypes-ignore */.oneOfType([PropTypes.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), PropTypes.string]),\n /**\n * The component maps the variant prop to a range of different HTML element types.\n * For instance, subtitle1 to `<h6>`.\n * If you wish to change that mapping, you can provide your own.\n * Alternatively, you can use the `component` prop.\n * @default {\n * h1: 'h1',\n * h2: 'h2',\n * h3: 'h3',\n * h4: 'h4',\n * h5: 'h5',\n * h6: 'h6',\n * subtitle1: 'h6',\n * subtitle2: 'h6',\n * body1: 'p',\n * body2: 'p',\n * inherit: 'p',\n * }\n */\n variantMapping: PropTypes /* @typescript-to-proptypes-ignore */.object\n} : void 0;\nexport default Typography;","import ListItemText, { TypographyProps } from \"@mui/material/Typography\";\r\n\r\nconst LCTListItemText = (props: TypographyProps) => {\r\n return <ListItemText {...props}>{props.children}</ListItemText>;\r\n};\r\n\r\nexport default LCTListItemText;\r\n","import React from \"react\";\r\nimport { Backdrop, CircularProgress } from \"@mui/material\";\r\n\r\ninterface IProps {\r\n overlay?: boolean;\r\n}\r\n\r\nconst LCTLoader: React.FC<IProps> = ({ overlay }) => (\r\n <>\r\n <Backdrop open={true} invisible={!overlay} style={{ zIndex: 1350 }}>\r\n <CircularProgress\r\n style={{\r\n position: \"absolute\",\r\n left: \"calc(50vw - 20px)\",\r\n top: \"calc(50vh - 20px)\",\r\n }}\r\n />\r\n </Backdrop>\r\n </>\r\n);\r\n\r\nexport default LCTLoader;\r\n","import { Menu, MenuProps } from \"@mui/material\";\r\n\r\nconst LCTMenu = (props: MenuProps) => {\r\n return <Menu {...props}>{props.children}</Menu>;\r\n};\r\n\r\nexport default LCTMenu;\r\n","import { MenuItem, MenuItemProps } from \"@mui/material\";\r\n\r\nconst LCTMenuItem = (props: MenuItemProps) => {\r\n return <MenuItem {...props}>{props.children}</MenuItem>;\r\n};\r\n\r\nexport default LCTMenuItem;\r\n","import { NumericFormat } from \"react-number-format\";\r\nimport { Typography } from \"@mui/material\";\r\n\r\ninterface IProps {\r\n align?: \"inherit\" | \"left\" | \"center\" | \"right\" | \"justify\";\r\n bold?: boolean;\r\n color?: string;\r\n displayAsQty?: boolean;\r\n hideNoValue?: boolean;\r\n noValueText?: string;\r\n notCurrency?: boolean;\r\n showNegative?: boolean;\r\n prefix?: string;\r\n value?: number;\r\n}\r\n\r\nconst LCTNumberDisplay = ({\r\n align,\r\n bold,\r\n color,\r\n displayAsQty,\r\n hideNoValue,\r\n noValueText,\r\n notCurrency,\r\n showNegative,\r\n prefix,\r\n value,\r\n}: IProps) => {\r\n return (\r\n <>\r\n {hideNoValue && !value ? (\r\n <>\r\n {noValueText && (\r\n <Typography\r\n align={align}\r\n fontWeight={bold ? 600 : undefined}\r\n color={color ? color : undefined}\r\n >\r\n {noValueText}\r\n </Typography>\r\n )}\r\n </>\r\n ) : (\r\n <Typography\r\n align={align}\r\n fontWeight={bold ? 600 : undefined}\r\n color={color ? color : undefined}\r\n >\r\n {showNegative && value !== 0 && \"(\"}\r\n <NumericFormat\r\n value={(value || 0).toFixed(displayAsQty ? 0 : 2)}\r\n displayType=\"text\"\r\n thousandSeparator={notCurrency ? false : true}\r\n prefix={prefix ? prefix : undefined}\r\n fixedDecimalScale={notCurrency ? false : true}\r\n />\r\n {showNegative && value !== 0 && \")\"}\r\n </Typography>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTNumberDisplay;\r\n","import { forwardRef } from \"react\";\r\nimport { NumericFormat } from \"react-number-format\";\r\nimport { OutlinedInput } from \"@mui/material\";\r\n\r\ninterface INumberFormatProps {\r\n disabled?: boolean;\r\n name: string;\r\n onChange: (event: { target: { name: string; value: string } }) => void;\r\n}\r\n\r\nconst NumberFormatCustom = forwardRef((props: INumberFormatProps, ref) => {\r\n const { onChange, ...other } = props;\r\n\r\n return (\r\n <NumericFormat\r\n {...other}\r\n getInputRef={ref}\r\n onValueChange={(value: any) => {\r\n onChange({\r\n target: {\r\n name: props.name,\r\n value: value.value,\r\n },\r\n });\r\n }}\r\n allowNegative={false}\r\n />\r\n );\r\n});\r\n\r\nNumberFormatCustom.displayName = \"LCTNumberInputNumericFormat\";\r\n\r\ninterface IProps {\r\n autoFocus?: boolean;\r\n decimalScale?: number;\r\n disabled?: boolean;\r\n placeholder?: string;\r\n updater?: (event: any) => void;\r\n size?: \"medium\" | \"small\";\r\n value?: number;\r\n width?: number;\r\n}\r\n\r\nconst LCTNumberInput = ({\r\n autoFocus,\r\n disabled,\r\n placeholder,\r\n size,\r\n updater,\r\n value,\r\n width,\r\n ...props\r\n}: IProps) => {\r\n return (\r\n <>\r\n <OutlinedInput\r\n autoFocus={autoFocus}\r\n disabled={disabled}\r\n inputComponent={NumberFormatCustom as any}\r\n onBlur={(event) => {\r\n if (updater) {\r\n updater(event.target.value);\r\n }\r\n }}\r\n placeholder={placeholder}\r\n size={size ? size : \"small\"}\r\n sx={{\r\n width: width ? width : 130,\r\n \"& .MuiInputBase-input\": { textAlign: \"end\" },\r\n \"& .MuiOutlinedInput-notchedOutline \": {\r\n border: \"1px solid rgba(0, 0, 0, 0.23)\",\r\n },\r\n \"&.Mui-disabled .MuiOutlinedInput-notchedOutline \": {\r\n border: \"1px solid rgba(0, 0, 0, 0.23)\",\r\n },\r\n }}\r\n value={value}\r\n {...props}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTNumberInput;\r\n","import { Select, SelectProps, SelectChangeEvent } from \"@mui/material\";\r\n\r\ninterface IOnChange {\r\n (value: string[]): void;\r\n (event: SelectChangeEvent<string>, child: React.ReactNode): void;\r\n}\r\ntype ISelectProps = SelectProps & {\r\n onChange: IOnChange;\r\n originalValue?: string[];\r\n fullList?: string[];\r\n};\r\n\r\nconst updateMultiFilter = (\r\n currentValue: string[],\r\n originalValue: string[],\r\n fullList: string[],\r\n) => {\r\n let list: string[] = [];\r\n if (currentValue.includes(\"All\") && !originalValue.includes(\"All\")) {\r\n list = fullList.concat(\"All\");\r\n } else if (!currentValue.includes(\"All\") && originalValue.includes(\"All\")) {\r\n list = [];\r\n } else if (\r\n currentValue.filter((v) => v !== \"All\").length === fullList.length\r\n ) {\r\n list = currentValue.concat(\"All\");\r\n } else {\r\n list = currentValue.filter((v) => v !== \"All\");\r\n }\r\n return list;\r\n};\r\n\r\nconst LCTSelect = (props: ISelectProps) => {\r\n return (\r\n <Select\r\n fullWidth\r\n sx={props.sx}\r\n variant=\"outlined\"\r\n value={props.value}\r\n disabled={props.disabled}\r\n MenuProps={\r\n props.MenuProps && !!props.multiple\r\n ? {\r\n ...props.MenuProps,\r\n sx: {\r\n ...props.MenuProps.sx,\r\n \".MuiButtonBase-root\": {\r\n borderRadius: 0,\r\n padding: \"4px 8px 4px 0px\",\r\n },\r\n },\r\n variant: \"menu\",\r\n PaperProps: {\r\n sx: {\r\n borderRadius: 0,\r\n },\r\n },\r\n }\r\n : {\r\n ...props.MenuProps,\r\n sx: {\r\n ...props.MenuProps?.sx,\r\n \".MuiButtonBase-root\": {\r\n borderRadius: 0,\r\n },\r\n },\r\n variant: \"menu\",\r\n PaperProps: {\r\n sx: {\r\n borderRadius: 0,\r\n },\r\n },\r\n }\r\n }\r\n onChange={(event, child) => {\r\n return !props.multiple\r\n ? props.onChange && props.onChange(event, child)\r\n : props.onChange(\r\n updateMultiFilter(\r\n event.target.value as string[],\r\n props.originalValue || [],\r\n props.fullList || [],\r\n ),\r\n );\r\n }}\r\n renderValue={props.renderValue}\r\n multiple={props.multiple}\r\n >\r\n {props.children}\r\n </Select>\r\n );\r\n};\r\n\r\nexport default LCTSelect;\r\n","import { Snackbar, SnackbarProps } from \"@mui/material\";\r\n\r\nconst LCTSnackbar = (props: SnackbarProps) => {\r\n return (\r\n <Snackbar\r\n anchorOrigin={\r\n props.anchorOrigin\r\n ? props.anchorOrigin\r\n : { vertical: \"bottom\", horizontal: \"right\" }\r\n }\r\n autoHideDuration={props.autoHideDuration ? props.autoHideDuration : 3000}\r\n {...props}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTSnackbar;\r\n","import { Tooltip, TooltipProps } from \"@mui/material\";\r\n\r\nconst LCTTooltip = (props: TooltipProps) => {\r\n return <Tooltip {...props}>{props.children}</Tooltip>;\r\n};\r\n\r\nexport default LCTTooltip;\r\n","import { Avatar } from \"@mui/material\";\r\n\r\nimport { LCTTooltip } from \"../tooltip\";\r\n\r\ninterface IStaffAvatarProps {\r\n staffInitials?: string;\r\n hideMargin?: boolean;\r\n fullName?: string;\r\n}\r\n\r\nconst LCTStaffAvatar = (props: IStaffAvatarProps) => {\r\n return (\r\n <LCTTooltip title={props?.fullName || \"\"}>\r\n <Avatar\r\n sx={{\r\n height: 28,\r\n width: 28,\r\n marginLeft: props?.hideMargin ? 0 : \"auto\",\r\n marginRight: props?.hideMargin ? 0 : \"auto\",\r\n fontSize: 12,\r\n backgroundColor: \"#a7a7a7\",\r\n }}\r\n >\r\n {props?.staffInitials?.toUpperCase() || \"?\"}\r\n </Avatar>\r\n </LCTTooltip>\r\n );\r\n};\r\n\r\nexport default LCTStaffAvatar;\r\n","import { SvgIconProps, SvgIcon } from \"@mui/material\";\r\n\r\nconst LCTSvgIcon = (props: SvgIconProps) => {\r\n return <SvgIcon {...props}>{props.children}</SvgIcon>;\r\n};\r\n\r\nexport default LCTSvgIcon;\r\n","import { Tab, TabProps } from \"@mui/material\";\r\n\r\nconst LCTTab = (props: TabProps) => {\r\n return <Tab {...props}>{props.children}</Tab>;\r\n};\r\n\r\nexport default LCTTab;\r\n","import { Tabs, TabsProps } from \"@mui/material\";\r\n\r\nconst LCTTabs = (props: TabsProps) => {\r\n return <Tabs {...props}>{props.children}</Tabs>;\r\n};\r\n\r\nexport default LCTTabs;\r\n","import { TextareaAutosize, TextareaAutosizeProps } from \"@mui/material\";\r\n\r\nconst LCTTextareaAutosize = (props: TextareaAutosizeProps) => {\r\n const css = `.textareaautosize textarea {\r\n border: 1px solid rgba(0, 0, 0, 0.23);\r\n border-radius: 0;\r\n padding: 4px;\r\n font-family: \"Segoe UI\";\r\n color: #444444;\r\n }\r\n\r\n .textareaautosize textarea:focus {\r\n border-radius: 0;\r\n border: 1px solid #0078d7;\r\n outline: none;\r\n }`;\r\n\r\n return (\r\n <>\r\n <style>{css}</style>\r\n <div className=\"textareaautosize\">\r\n <TextareaAutosize {...props} />\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTTextareaAutosize;\r\n","import { TextField, TextFieldProps } from \"@mui/material\";\r\n\r\nconst LCTTextfield = (props: TextFieldProps) => {\r\n return <TextField variant=\"outlined\" {...props} />;\r\n};\r\n\r\nexport default LCTTextfield;\r\n","import Typography, { TypographyProps } from \"@mui/material/Typography\";\r\n\r\nconst LCTTypography = (props: TypographyProps) => {\r\n return (\r\n <Typography variant={props.variant || \"body1\"} {...props}>\r\n {props.children}\r\n </Typography>\r\n );\r\n};\r\n\r\nexport default LCTTypography;\r\n","import { createTheme } from \"@mui/material/styles\";\r\n\r\nconst fontColor = \"#444444\";\r\nconst fontSize = 13;\r\nconst fontWeight = 400;\r\nconst h6FontSize = \"0.95rem\";\r\nconst hoverColor = \"#d7ecf6\";\r\nconst lineHeight = 1.4285;\r\nconst mainColor = \"#1e365e\";\r\n\r\nconst theme = createTheme({\r\n palette: { primary: { main: mainColor }, secondary: { main: \"#ffffff\" } },\r\n typography: {\r\n fontFamily: \"Segoe UI\",\r\n fontSize: fontSize,\r\n body1: { color: fontColor },\r\n },\r\n components: {\r\n MuiTypography: {\r\n variants: [\r\n { props: { variant: \"body1\" }, style: { fontSize: fontSize } },\r\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\r\n ],\r\n },\r\n MuiButton: {\r\n variants: [\r\n {\r\n props: { color: \"secondary\" },\r\n style: {\r\n backgroundColor: \"#ffffff\",\r\n color: \"#0060aa\",\r\n borderColor: mainColor,\r\n \":hover\": {\r\n borderColor: mainColor,\r\n backgroundColor: hoverColor,\r\n },\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n root: {\r\n boxShadow: \"none\",\r\n height: 33,\r\n width: 130,\r\n padding: 7,\r\n borderRadius: 0,\r\n textTransform: \"none\",\r\n fontWeight: fontWeight,\r\n fontSize: fontSize,\r\n lineHeight: lineHeight,\r\n \":hover\": {\r\n boxShadow: \"none\",\r\n },\r\n },\r\n },\r\n },\r\n MuiIconButton: { styleOverrides: { root: { padding: 4 } } },\r\n MuiInputLabel: {\r\n styleOverrides: { root: { fontSize: fontSize, whiteSpace: \"normal\" } },\r\n },\r\n MuiMenuItem: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: fontSize,\r\n padding: \"2px 4px\",\r\n borderRadius: 5,\r\n \"&.Mui-focusVisible\": { backgroundColor: \"transparent !important\" },\r\n \"&.Mui-selected\": { backgroundColor: \"#e8eaed !important\" },\r\n },\r\n },\r\n },\r\n MuiPaper: {\r\n styleOverrides: {\r\n root: { borderRadius: 5, backgroundColor: \"#f9f9f9\" },\r\n },\r\n },\r\n MuiList: { styleOverrides: { root: { padding: 0 } } },\r\n MuiOutlinedInput: {\r\n styleOverrides: {\r\n root: { borderRadius: 0 },\r\n },\r\n },\r\n MuiInputBase: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: fontSize,\r\n height: 25,\r\n backgroundColor: \"#ffffff\",\r\n lineHeight: lineHeight,\r\n \"& .Mui-disabled\": {\r\n backgroundColor: \"#f3f3f3\",\r\n WebkitTextFillColor: fontColor,\r\n },\r\n \"& .MuiSelect-select\": {\r\n paddingRight: \"22px !important\",\r\n },\r\n },\r\n input: { padding: \"4px !important\" },\r\n },\r\n },\r\n MuiSelect: {\r\n variants: [\r\n {\r\n props: { variant: \"outlined\" },\r\n style: {\r\n fontSize: fontSize,\r\n lineHeight: lineHeight,\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n select: { padding: 4, lineHeight: lineHeight },\r\n },\r\n },\r\n MuiDialog: {\r\n variants: [\r\n {\r\n props: { maxWidth: \"sm\" },\r\n style: { \"& .MuiPaper-root \": { maxWidth: 400 } },\r\n },\r\n ],\r\n styleOverrides: { paper: { borderRadius: 9 } },\r\n },\r\n MuiDialogTitle: {\r\n styleOverrides: {\r\n root: { padding: 5, fontSize: fontSize },\r\n },\r\n },\r\n MuiDialogContent: {\r\n styleOverrides: {\r\n root: { padding: 5 },\r\n },\r\n },\r\n MuiDialogActions: {\r\n styleOverrides: {\r\n root: { borderTop: \"1px solid #E6E6E6\", backgroundColor: \"#f0f1f2\" },\r\n },\r\n },\r\n MuiFormControlLabel: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled.MuiTypography-root\": {\r\n color: \"rgba(0, 0, 0, 0.5) !importanCorrespondencet\",\r\n },\r\n },\r\n },\r\n },\r\n MuiCheckbox: {\r\n styleOverrides: {\r\n root: { padding: 0 },\r\n },\r\n },\r\n MuiTextField: {\r\n styleOverrides: {\r\n root: {\r\n \"& .MuiInputBase-root\": { padding: 0 },\r\n \"& .MuiInputBase-input\": { padding: 0 },\r\n \"& .Mui-disabled\": {\r\n WebkitTextFillColor: \"#444444 !important\",\r\n },\r\n },\r\n },\r\n },\r\n MuiTooltip: {\r\n styleOverrides: {\r\n tooltip: {\r\n backgroundColor: \"#ffffff\",\r\n border: \"1px solid #000000\",\r\n color: \"#000000\",\r\n borderRadius: 8,\r\n paddingTop: 2,\r\n paddingBottom: 2,\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;\r\n","import { createTheme } from \"@mui/material/styles\";\r\n\r\n// ── Design tokens ──────────────────────────────────────────────────────────────\r\nconst fontFamily = \"Segoe UI\";\r\nconst fontSize = 13;\r\nconst fontWeight = 400;\r\nconst fontColor = \"#444444\";\r\nconst lineHeight = 1.4285;\r\n\r\nconst h6FontSize = \"0.95rem\";\r\n\r\nconst primaryColor = \"#1e365e\";\r\nconst secondaryColor = \"#ffffff\";\r\nconst linkColor = \"#0060aa\";\r\nconst hoverColor = \"#d7ecf6\";\r\nconst selectedColor = \"#cde6f7\";\r\nconst menuSelectedColor = \"#e8eaed\";\r\nconst disabledBg = \"#f3f3f3\";\r\n\r\nconst paperBg = \"#f9f9f9\";\r\nconst appBarBg = \"#fafafa\";\r\nconst drawerBg = \"#f4f7f9\";\r\nconst dialogActionsBg = \"#f0f1f2\";\r\n\r\nconst borderLight = \"#d8d8d8\";\r\nconst borderDialog = \"#e6e6e6\";\r\nconst tooltipBorder = \"#000000\";\r\nconst focusBorder = \"#0078d7\";\r\n\r\nconst errorColor = \"#c42b1c\";\r\n\r\n// ── Theme ──────────────────────────────────────────────────────────────────────\r\nconst leapDesktopTheme = createTheme({\r\n palette: {\r\n primary: { main: primaryColor },\r\n secondary: { main: secondaryColor },\r\n error: { main: errorColor },\r\n },\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n body1: { color: fontColor },\r\n },\r\n components: {\r\n MuiTypography: {\r\n variants: [\r\n { props: { variant: \"body1\" }, style: { fontSize } },\r\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\r\n ],\r\n },\r\n\r\n MuiButton: {\r\n variants: [\r\n {\r\n props: { color: \"secondary\" },\r\n style: {\r\n backgroundColor: secondaryColor,\r\n color: linkColor,\r\n borderColor: primaryColor,\r\n \":hover\": {\r\n borderColor: primaryColor,\r\n backgroundColor: hoverColor,\r\n },\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n root: {\r\n boxShadow: \"none\",\r\n height: 33,\r\n width: 130,\r\n padding: 7,\r\n borderRadius: 0,\r\n textTransform: \"none\",\r\n fontWeight,\r\n fontSize,\r\n lineHeight,\r\n \":hover\": { boxShadow: \"none\" },\r\n },\r\n },\r\n },\r\n\r\n MuiIconButton: {\r\n styleOverrides: { root: { padding: 4 } },\r\n },\r\n\r\n MuiInputLabel: {\r\n styleOverrides: { root: { fontSize, whiteSpace: \"normal\" } },\r\n },\r\n\r\n MuiMenuItem: {\r\n styleOverrides: {\r\n root: {\r\n fontSize,\r\n padding: \"2px 4px\",\r\n borderRadius: 5,\r\n \"&.Mui-focusVisible\": { backgroundColor: \"transparent !important\" },\r\n \"&.Mui-selected\": {\r\n backgroundColor: `${menuSelectedColor} !important`,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiPaper: {\r\n styleOverrides: {\r\n root: { borderRadius: 5, backgroundColor: paperBg },\r\n },\r\n },\r\n\r\n MuiList: {\r\n styleOverrides: { root: { padding: 0 } },\r\n },\r\n\r\n MuiOutlinedInput: {\r\n styleOverrides: { root: { borderRadius: 0 } },\r\n },\r\n\r\n MuiInputBase: {\r\n styleOverrides: {\r\n root: {\r\n fontSize,\r\n height: 25,\r\n backgroundColor: secondaryColor,\r\n lineHeight,\r\n \"& .Mui-disabled\": {\r\n backgroundColor: disabledBg,\r\n WebkitTextFillColor: fontColor,\r\n },\r\n \"& .MuiSelect-select\": {\r\n paddingRight: \"22px !important\",\r\n },\r\n },\r\n input: { padding: \"4px !important\" },\r\n },\r\n },\r\n\r\n MuiSelect: {\r\n variants: [\r\n {\r\n props: { variant: \"outlined\" },\r\n style: { fontSize, lineHeight },\r\n },\r\n ],\r\n styleOverrides: {\r\n select: { padding: 4, lineHeight },\r\n },\r\n },\r\n\r\n MuiDialog: {\r\n variants: [\r\n {\r\n props: { maxWidth: \"sm\" },\r\n style: { \"& .MuiPaper-root\": { maxWidth: 400 } },\r\n },\r\n ],\r\n styleOverrides: { paper: { borderRadius: 9 } },\r\n },\r\n\r\n MuiDialogTitle: {\r\n styleOverrides: { root: { padding: 5, fontSize } },\r\n },\r\n\r\n MuiDialogContent: {\r\n styleOverrides: { root: { padding: 5 } },\r\n },\r\n\r\n MuiDialogActions: {\r\n styleOverrides: {\r\n root: {\r\n borderTop: `1px solid ${borderDialog}`,\r\n backgroundColor: dialogActionsBg,\r\n },\r\n },\r\n },\r\n\r\n MuiFormControlLabel: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled.MuiTypography-root\": {\r\n color: \"rgba(0, 0, 0, 0.5) !important\",\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiCheckbox: {\r\n styleOverrides: { root: { padding: 0 } },\r\n },\r\n\r\n MuiTextField: {\r\n styleOverrides: {\r\n root: {\r\n \"& .MuiInputBase-root\": { padding: 0 },\r\n \"& .MuiInputBase-input\": { padding: 0 },\r\n \"& .Mui-disabled\": {\r\n WebkitTextFillColor: `${fontColor} !important`,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiTooltip: {\r\n styleOverrides: {\r\n tooltip: {\r\n backgroundColor: secondaryColor,\r\n border: `1px solid ${tooltipBorder}`,\r\n color: tooltipBorder,\r\n borderRadius: 8,\r\n paddingTop: 2,\r\n paddingBottom: 2,\r\n },\r\n },\r\n },\r\n\r\n MuiAppBar: {\r\n styleOverrides: {\r\n root: {\r\n backgroundColor: appBarBg,\r\n borderBottom: `1px solid ${borderLight}`,\r\n boxShadow: \"none\",\r\n color: fontColor,\r\n },\r\n },\r\n },\r\n\r\n MuiDrawer: {\r\n styleOverrides: {\r\n paper: { backgroundColor: drawerBg },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default leapDesktopTheme;\r\n\r\n// Named token exports for use in component-level styling\r\nexport const leapDesktopTokens = {\r\n colors: {\r\n primary: primaryColor,\r\n secondary: secondaryColor,\r\n font: fontColor,\r\n link: linkColor,\r\n hover: hoverColor,\r\n selected: selectedColor,\r\n menuSelected: menuSelectedColor,\r\n disabledBg,\r\n paperBg,\r\n appBarBg,\r\n drawerBg,\r\n dialogActionsBg,\r\n borderLight,\r\n borderDialog,\r\n focusBorder,\r\n error: errorColor,\r\n },\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n fontWeight,\r\n lineHeight,\r\n h6FontSize,\r\n },\r\n} as const;\r\n","import { createTheme, responsiveFontSizes } from \"@mui/material/styles\";\r\n\r\n/**\r\n * LEAP Web theme.\r\n *\r\n * Shares the LEAP brand palette with `leap-desktop`, but sizes for the browser:\r\n * comfortable density, auto-width buttons, softened corners, WCAG-visible focus\r\n * rings and touch-sized targets on coarse pointers.\r\n *\r\n * Use this for browser-delivered apps. Use `leap-desktop` where the UI must sit\r\n * alongside the LEAP desktop application and match it pixel for pixel.\r\n */\r\n\r\n// ── Design tokens: brand (shared with leap-desktop) ────────────────────────────\r\nconst primaryColor = \"#1e365e\";\r\nconst secondaryColor = \"#ffffff\";\r\nconst linkColor = \"#0060aa\";\r\nconst hoverColor = \"#d7ecf6\";\r\nconst selectedColor = \"#cde6f7\";\r\nconst menuSelectedColor = \"#e8eaed\";\r\nconst disabledBg = \"#f3f3f3\";\r\nconst fontColor = \"#444444\";\r\nconst errorColor = \"#c42b1c\";\r\nconst focusColor = \"#0078d7\";\r\n\r\n// ── Design tokens: web-specific ────────────────────────────────────────────────\r\n// Inter is optional. When it is not loaded the stack falls through to the\r\n// platform UI font, so nothing breaks on macOS, iOS, Android or Linux — which is\r\n// the reason this theme cannot simply reuse desktop's bare \"Segoe UI\".\r\nconst fontFamily = [\r\n \"Inter\",\r\n \"-apple-system\",\r\n \"BlinkMacSystemFont\",\r\n '\"Segoe UI\"',\r\n \"Roboto\",\r\n '\"Helvetica Neue\"',\r\n \"Arial\",\r\n \"sans-serif\",\r\n].join(\", \");\r\n\r\nconst fontSize = 14;\r\nconst fontWeight = 400;\r\nconst fontWeightMedium = 500;\r\nconst fontWeightBold = 600;\r\nconst lineHeight = 1.4285;\r\n\r\nconst h5FontSize = \"1.5rem\";\r\nconst h6FontSize = \"1.125rem\";\r\nconst captionFontSize = \"0.75rem\";\r\n\r\nconst fontColorSecondary = \"#6b6b6b\";\r\n\r\nconst pageBg = \"#f5f7fa\";\r\nconst paperBg = \"#ffffff\";\r\nconst appBarBg = \"#ffffff\";\r\nconst drawerBg = \"#f4f7f9\";\r\nconst dialogActionsBg = \"#f7f8fa\";\r\n\r\nconst borderLight = \"#d8d8d8\";\r\nconst borderDialog = \"#e6e6e6\";\r\nconst dividerColor = \"#e6e8eb\";\r\n\r\nconst successColor = \"#1b7f3b\";\r\nconst warningColor = \"#b25e02\";\r\nconst infoColor = linkColor;\r\n\r\n// Control sizing. `small` is the comfortable web default rather than a compact\r\n// one, because the toolbox components (LCTButton, LCTCurrencyInput,\r\n// LCTNumberInput) pass size=\"small\" for you and would otherwise render cramped.\r\nconst controlHeight = 40;\r\nconst controlHeightSmall = 36;\r\nconst controlHeightLarge = 48;\r\nconst touchTargetMin = 44;\r\n\r\nconst radius = 6;\r\nconst radiusLarge = 8;\r\nconst radiusDialog = 12;\r\n\r\nconst shadowSoft = \"0 1px 2px rgba(16, 24, 40, 0.06)\";\r\nconst shadowRaised = \"0 4px 12px rgba(16, 24, 40, 0.10)\";\r\nconst shadowOverlay = \"0 12px 32px rgba(16, 24, 40, 0.16)\";\r\n\r\n// Applied with `outline` rather than `box-shadow` so it never shifts layout and\r\n// survives forced-colours/high-contrast mode.\r\nconst focusVisible = {\r\n outline: `2px solid ${focusColor}`,\r\n outlineOffset: 2,\r\n};\r\n\r\n// ── Theme ──────────────────────────────────────────────────────────────────────\r\nconst leapWebTheme = responsiveFontSizes(\r\n createTheme({\r\n shape: { borderRadius: radius },\r\n\r\n palette: {\r\n primary: { main: primaryColor },\r\n secondary: { main: secondaryColor },\r\n error: { main: errorColor },\r\n success: { main: successColor },\r\n warning: { main: warningColor },\r\n info: { main: infoColor },\r\n text: { primary: fontColor, secondary: fontColorSecondary },\r\n background: { default: pageBg, paper: paperBg },\r\n divider: dividerColor,\r\n },\r\n\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n fontWeightMedium,\r\n fontWeightBold,\r\n body1: { color: fontColor, fontSize: \"0.875rem\", lineHeight },\r\n body2: { color: fontColor, fontSize: \"0.8125rem\", lineHeight },\r\n h5: { fontSize: h5FontSize, fontWeight: fontWeightBold },\r\n h6: { fontSize: h6FontSize, fontWeight: fontWeightBold },\r\n subtitle1: { fontSize: \"1rem\", fontWeight: fontWeightMedium },\r\n caption: { fontSize: captionFontSize, color: fontColorSecondary },\r\n button: { textTransform: \"none\", fontWeight: fontWeightMedium },\r\n },\r\n\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: {\r\n body: {\r\n backgroundColor: pageBg,\r\n WebkitFontSmoothing: \"antialiased\",\r\n MozOsxFontSmoothing: \"grayscale\",\r\n },\r\n },\r\n },\r\n\r\n MuiTypography: {\r\n variants: [\r\n { props: { variant: \"body1\" }, style: { fontSize: \"0.875rem\" } },\r\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\r\n ],\r\n },\r\n\r\n MuiButton: {\r\n defaultProps: { disableElevation: true },\r\n variants: [\r\n {\r\n props: { color: \"secondary\" },\r\n style: {\r\n backgroundColor: secondaryColor,\r\n color: linkColor,\r\n borderColor: primaryColor,\r\n \":hover\": {\r\n borderColor: primaryColor,\r\n backgroundColor: hoverColor,\r\n },\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n // minHeight rather than height, so a wrapped label grows the button\r\n // instead of overflowing it.\r\n root: {\r\n boxShadow: \"none\",\r\n minHeight: controlHeight,\r\n minWidth: 96,\r\n width: \"auto\",\r\n padding: \"8px 20px\",\r\n borderRadius: radius,\r\n textTransform: \"none\",\r\n fontWeight: fontWeightMedium,\r\n fontSize: \"0.875rem\",\r\n lineHeight,\r\n \":hover\": { boxShadow: \"none\" },\r\n \"&:focus-visible\": focusVisible,\r\n \"@media (pointer: coarse)\": { minHeight: touchTargetMin },\r\n },\r\n sizeSmall: {\r\n minHeight: controlHeightSmall,\r\n minWidth: 88,\r\n padding: \"6px 16px\",\r\n },\r\n sizeLarge: {\r\n minHeight: controlHeightLarge,\r\n padding: \"12px 24px\",\r\n fontSize: \"1rem\",\r\n },\r\n },\r\n },\r\n\r\n MuiIconButton: {\r\n styleOverrides: {\r\n root: {\r\n padding: 8,\r\n \"&:focus-visible\": focusVisible,\r\n \"@media (pointer: coarse)\": {\r\n minHeight: touchTargetMin,\r\n minWidth: touchTargetMin,\r\n },\r\n },\r\n sizeSmall: { padding: 6 },\r\n },\r\n },\r\n\r\n MuiLink: {\r\n defaultProps: { underline: \"hover\" },\r\n styleOverrides: {\r\n root: {\r\n color: linkColor,\r\n \"&:focus-visible\": { ...focusVisible, borderRadius: 2 },\r\n },\r\n },\r\n },\r\n\r\n MuiInputLabel: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n whiteSpace: \"normal\",\r\n color: fontColorSecondary,\r\n },\r\n },\r\n },\r\n\r\n MuiMenuItem: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n padding: \"8px 12px\",\r\n minHeight: controlHeightSmall,\r\n borderRadius: radius,\r\n // Desktop suppresses the focus-visible background. That is a Win32\r\n // convention and it strands keyboard users, so web restores it.\r\n \"&.Mui-focusVisible\": { backgroundColor: hoverColor },\r\n \"&.Mui-selected\": {\r\n backgroundColor: `${menuSelectedColor} !important`,\r\n },\r\n \"@media (pointer: coarse)\": { minHeight: touchTargetMin },\r\n },\r\n },\r\n },\r\n\r\n MuiPaper: {\r\n styleOverrides: {\r\n root: {\r\n borderRadius: radiusLarge,\r\n backgroundColor: paperBg,\r\n backgroundImage: \"none\",\r\n },\r\n elevation1: { boxShadow: shadowSoft },\r\n elevation2: { boxShadow: shadowRaised },\r\n },\r\n },\r\n\r\n MuiMenu: {\r\n styleOverrides: {\r\n paper: { boxShadow: shadowOverlay, borderRadius: radiusLarge },\r\n list: { padding: 4 },\r\n },\r\n },\r\n\r\n MuiList: {\r\n styleOverrides: { root: { padding: 4 } },\r\n },\r\n\r\n MuiOutlinedInput: {\r\n styleOverrides: {\r\n root: {\r\n borderRadius: radius,\r\n backgroundColor: paperBg,\r\n \"&.Mui-focused .MuiOutlinedInput-notchedOutline\": {\r\n borderColor: focusColor,\r\n borderWidth: 2,\r\n },\r\n },\r\n // Padding drives the control height: 10 + 10 + (14 * 1.4285) ≈ 40.\r\n //\r\n // Longhands, not the `padding` shorthand. MuiInputBase-inputSizeSmall\r\n // sets paddingTop/Bottom: 1px as longhands, and a shorthand here only\r\n // partially overrides them — which silently yields an asymmetric\r\n // 1px-top/8px-bottom field on every size=\"small\" input.\r\n input: {\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: 12,\r\n },\r\n inputSizeSmall: {\r\n paddingTop: 8,\r\n paddingBottom: 8,\r\n paddingLeft: 12,\r\n paddingRight: 12,\r\n },\r\n // Multiline pads the wrapper, not the inner textarea, so the field can\r\n // grow. Desktop's fixed 25px root height cannot do this.\r\n multiline: {\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: 12,\r\n },\r\n inputMultiline: {\r\n paddingTop: 0,\r\n paddingBottom: 0,\r\n paddingLeft: 0,\r\n paddingRight: 0,\r\n },\r\n },\r\n },\r\n\r\n MuiInputBase: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n lineHeight,\r\n color: fontColor,\r\n \"& .Mui-disabled\": {\r\n backgroundColor: disabledBg,\r\n WebkitTextFillColor: fontColor,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiSelect: {\r\n variants: [\r\n {\r\n props: { variant: \"outlined\" },\r\n style: { fontSize: \"0.875rem\", lineHeight },\r\n },\r\n ],\r\n styleOverrides: {\r\n // Arrow clearance lives here rather than as a descendant rule on\r\n // MuiInputBase, so it applies to the element it actually describes.\r\n select: {\r\n lineHeight,\r\n minHeight: \"unset\",\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: \"36px !important\",\r\n \"&.MuiInputBase-inputSizeSmall\": {\r\n paddingTop: 8,\r\n paddingBottom: 8,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiDialog: {\r\n // Desktop re-caps maxWidth=\"sm\" to 400px. That is cramped in a browser,\r\n // so web keeps MUI's 600px.\r\n styleOverrides: {\r\n paper: { borderRadius: radiusDialog, boxShadow: shadowOverlay },\r\n },\r\n },\r\n\r\n MuiDialogTitle: {\r\n styleOverrides: {\r\n root: {\r\n padding: \"16px 20px\",\r\n fontSize: h6FontSize,\r\n fontWeight: fontWeightBold,\r\n },\r\n },\r\n },\r\n\r\n MuiDialogContent: {\r\n styleOverrides: { root: { padding: \"8px 20px 20px\" } },\r\n },\r\n\r\n MuiDialogActions: {\r\n styleOverrides: {\r\n root: {\r\n padding: \"12px 20px\",\r\n gap: 8,\r\n borderTop: `1px solid ${borderDialog}`,\r\n backgroundColor: dialogActionsBg,\r\n },\r\n },\r\n },\r\n\r\n MuiFormControlLabel: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled.MuiTypography-root\": {\r\n color: \"rgba(0, 0, 0, 0.5) !important\",\r\n },\r\n },\r\n label: { fontSize: \"0.875rem\" },\r\n },\r\n },\r\n\r\n MuiCheckbox: {\r\n // Desktop uses 0 so LCTCheckbox can control its own spacing. Web needs a\r\n // real hit area, so the box gets padding back.\r\n styleOverrides: {\r\n root: {\r\n padding: 6,\r\n \"&:focus-visible\": { ...focusVisible, outlineOffset: 0 },\r\n },\r\n },\r\n },\r\n\r\n MuiTextField: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled\": {\r\n WebkitTextFillColor: `${fontColor} !important`,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiTooltip: {\r\n // Desktop's white-on-black-border tooltip is a Win32 convention. Web uses\r\n // a solid navy tooltip: still LEAP palette, but conventional in a browser.\r\n styleOverrides: {\r\n tooltip: {\r\n backgroundColor: primaryColor,\r\n color: secondaryColor,\r\n fontSize: captionFontSize,\r\n borderRadius: radius,\r\n padding: \"6px 10px\",\r\n },\r\n arrow: { color: primaryColor },\r\n },\r\n },\r\n\r\n MuiAppBar: {\r\n defaultProps: { elevation: 0, color: \"inherit\" },\r\n styleOverrides: {\r\n root: {\r\n backgroundColor: appBarBg,\r\n borderBottom: `1px solid ${borderLight}`,\r\n boxShadow: \"none\",\r\n color: fontColor,\r\n },\r\n },\r\n },\r\n\r\n MuiDrawer: {\r\n styleOverrides: {\r\n paper: {\r\n backgroundColor: drawerBg,\r\n borderRight: `1px solid ${dividerColor}`,\r\n },\r\n },\r\n },\r\n\r\n // Tabs carry no styling in LCTTheme or leap-desktop, so they fall back to\r\n // MUI's uppercase 48px defaults. Web styles them properly.\r\n MuiTabs: {\r\n styleOverrides: {\r\n root: { minHeight: touchTargetMin },\r\n indicator: { height: 2, backgroundColor: primaryColor },\r\n },\r\n },\r\n\r\n MuiTab: {\r\n styleOverrides: {\r\n root: {\r\n textTransform: \"none\",\r\n fontSize: \"0.875rem\",\r\n fontWeight: fontWeightMedium,\r\n minHeight: touchTargetMin,\r\n padding: \"10px 16px\",\r\n color: fontColorSecondary,\r\n \"&.Mui-selected\": { color: primaryColor },\r\n \"&:focus-visible\": { ...focusVisible, outlineOffset: -2 },\r\n },\r\n },\r\n },\r\n\r\n MuiChip: {\r\n styleOverrides: {\r\n root: { borderRadius: radius, fontSize: captionFontSize },\r\n },\r\n },\r\n },\r\n }),\r\n);\r\n\r\nexport default leapWebTheme;\r\n\r\n// Named token exports for use in component-level styling\r\nexport const leapWebTokens = {\r\n colors: {\r\n primary: primaryColor,\r\n secondary: secondaryColor,\r\n font: fontColor,\r\n fontSecondary: fontColorSecondary,\r\n link: linkColor,\r\n hover: hoverColor,\r\n selected: selectedColor,\r\n menuSelected: menuSelectedColor,\r\n disabledBg,\r\n pageBg,\r\n paperBg,\r\n appBarBg,\r\n drawerBg,\r\n dialogActionsBg,\r\n borderLight,\r\n borderDialog,\r\n divider: dividerColor,\r\n focus: focusColor,\r\n error: errorColor,\r\n success: successColor,\r\n warning: warningColor,\r\n info: infoColor,\r\n },\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n fontWeight,\r\n fontWeightMedium,\r\n fontWeightBold,\r\n lineHeight,\r\n h5FontSize,\r\n h6FontSize,\r\n captionFontSize,\r\n },\r\n sizing: {\r\n controlHeight,\r\n controlHeightSmall,\r\n controlHeightLarge,\r\n touchTargetMin,\r\n radius,\r\n radiusLarge,\r\n radiusDialog,\r\n },\r\n shadows: {\r\n soft: shadowSoft,\r\n raised: shadowRaised,\r\n overlay: shadowOverlay,\r\n },\r\n} as const;\r\n"],"names":["REACT_ELEMENT_TYPE","REACT_FRAGMENT_TYPE","jsxProd","type","config","maybeKey","key","propName","reactJsxRuntime_production","getComponentNameFromType","REACT_CLIENT_REFERENCE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","owner","debugStack","debugTask","refProp","jsxDEVImpl","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","node","isValidElement","object","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner","jsxRuntimeModule","require$$1","LCTAccordion","jsx","Accordion","LCTAccordionDetails","AccordionDetails","defaultGenerator","createClassNameGenerator","generate","generator","ClassNameGenerator","formatMuiErrorMessage","code","args","url","arg","capitalize","string","_formatErrorMessage","b","c","d","e","f","g","h","l","m","n","p","q","r","t","v","w","x","y","z","a","u","A","reactIs_production_min","hasSymbol","REACT_PROVIDER_TYPE","REACT_ASYNC_MODE_TYPE","REACT_CONCURRENT_MODE_TYPE","REACT_BLOCK_TYPE","REACT_FUNDAMENTAL_TYPE","REACT_RESPONDER_TYPE","REACT_SCOPE_TYPE","isValidElementType","typeOf","$$typeof","$$typeofType","AsyncMode","ConcurrentMode","ContextConsumer","ContextProvider","Element","ForwardRef","Fragment","Lazy","Memo","Portal","Profiler","StrictMode","Suspense","hasWarnedAboutDeprecatedIsAsyncMode","isAsyncMode","isConcurrentMode","isContextConsumer","isContextProvider","isElement","isForwardRef","isFragment","isLazy","isMemo","isPortal","isProfiler","isStrictMode","isSuspense","reactIs_development","reactIsModule","getOwnPropertySymbols","propIsEnumerable","toObject","val","shouldUseNative","test1","test2","i","order2","test3","letter","objectAssign","target","source","from","to","symbols","s","ReactPropTypesSecret","ReactPropTypesSecret_1","has","printWarning","loggedTypeFailures","text","message","checkPropTypes","typeSpecs","values","location","getStack","typeSpecName","error","err","ex","stack","checkPropTypes_1","ReactIs","assign","require$$2","require$$3","require$$4","emptyFunctionThatReturnsNull","factoryWithTypeCheckers","throwOnDirectAccess","ITERATOR_SYMBOL","FAUX_ITERATOR_SYMBOL","getIteratorFn","maybeIterable","iteratorFn","ANONYMOUS","ReactPropTypes","createPrimitiveTypeChecker","createAnyTypeChecker","createArrayOfTypeChecker","createElementTypeChecker","createElementTypeTypeChecker","createInstanceTypeChecker","createNodeChecker","createObjectOfTypeChecker","createEnumTypeChecker","createUnionTypeChecker","createShapeTypeChecker","createStrictShapeTypeChecker","is","PropTypeError","data","createChainableTypeChecker","validate","manualPropTypeCallCache","manualPropTypeWarningCount","checkType","isRequired","propFullName","secret","cacheKey","chainedCheckType","expectedType","propValue","propType","getPropType","preciseType","getPreciseType","typeChecker","expectedClass","expectedClassName","actualClassName","getClassName","expectedValues","valuesString","arrayOfTypeCheckers","checker","getPostfixForTypeWarning","expectedTypes","checkerResult","expectedTypesMessage","isNode","invalidValidatorError","shapeTypes","allKeys","iterator","step","entry","isSymbol","emptyFunction","emptyFunctionWithReset","factoryWithThrowingShims","shim","getShim","propTypesModule","clsx","composeClasses","slots","getUtilityClass","classes","output","slotName","slot","buffer","start","REACT_VIEW_TRANSITION_TYPE","reactIs_production","isPlainObject","item","prototype","deepClone","deepmerge","options","merge","acc","responsivePropType","PropTypes","sortContainerQueries","theme","css","sorted","regex","_a","_b","isCqShorthand","breakpointKeys","getContainerQuery","shorthand","matches","containerQuery","containerName","cssContainerQueries","themeInput","toContainerQuery","mediaQuery","attachCq","result","containerQueries","defaultBreakpoints","defaultContainerQueries","handleBreakpoints","styleFromPropValue","themeBreakpoints","index","breakpoint","containerKey","mediaKey","cssKey","createEmptyBreakpointObject","breakpointsInput","breakpointStyleKey","removeUnusedBreakpoints","style","breakpointOutput","getPath","obj","path","checkVars","getStyleValue","themeMapping","transform","propValueFinal","userValue","prop","cssProperty","themeKey","fn","memoize","cache","properties","directions","aliases","getCssProperties","property","direction","dir","marginKeys","paddingKeys","spacingKeys","createUnaryUnit","defaultValue","themeSpacing","abs","transformed","createUnarySpacing","getValue","transformer","getStyleFromPropValue","cssProperties","resolveCssProperty","margin","padding","compose","styles","handlers","borderTransform","createBorderStyle","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor","outline","outlineColor","borderRadius","gap","columnGap","rowGap","gridColumn","gridRow","gridAutoFlow","gridAutoColumns","gridAutoRows","gridTemplateColumns","gridTemplateRows","gridTemplateAreas","gridArea","paletteTransform","color","bgcolor","backgroundColor","sizingTransform","width","maxWidth","_c","breakpointsValues","_e","_d","minWidth","height","maxHeight","minHeight","boxSizing","defaultSxConfig","objectsHaveSameKeys","objects","union","callIfFn","maybeFn","unstable_createStyleFunctionSx","getThemeValue","styleFunctionSx","sx","nested","traverse","sxInput","sxObject","emptyBreakpoints","breakpointsKeys","styleKey","splitProps","extendSxProp","inSx","other","systemProps","otherProps","finalSx","murmur2","str","len","unitlessKeys","hyphenateRegex","animationRegex","isCustomProperty","isProcessableValue","processStyleName","styleName","processStyleValue","match","p1","p2","cursor","unitless","handleInterpolation","mergedProps","registered","interpolation","componentSelector","keyframes","serializedStyles","next","createStringFromObject","asString","_i","interpolated","labelPattern","serializeStyles","stringMode","strings","asTemplateStringsArr","templateStringsArr","identifierName","hashString","styled","tag","stylesFactory","emStyled","component","internal_mutateStyles","processor","wrapper","internal_serializeStyles","emSerializeStyles","sortBreakpointsValues","breakpointsAsArray","breakpoint1","breakpoint2","createBreakpoints","breakpoints","unit","sortedValues","up","down","between","end","endIndex","only","not","keyIndex","shape","createSpacing","spacingInput","spacing","argsInput","argument","applyStyles","selector","createTheme","paletteInput","shapeInput","muiTheme","isObjectEmpty","useTheme","defaultTheme","contextTheme","ThemeContext","systemDefaultTheme","useThemeWithoutDefault","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","getFunctionComponentName","Component","fallback","getWrappedName","outerType","wrapperName","functionName","getDisplayName","preprocessStyles","input","variants","variant","shouldForwardProp","shallowLayer","serialized","layerName","defaultOverridesResolver","_props","attachTheme","themeId","processStyle","resolvedStyle","subStyle","rootStyle","otherStyles","processStyleVariants","results","mergedState","variantLoop","createStyled","rootShouldForwardProp","slotShouldForwardProp","styleAttachTheme","inputOptions","mutateStyles","componentSlot","inputSkipVariantsResolver","inputSkipSx","overridesResolver","lowercaseFirstLetter","skipVariantsResolver","skipSx","shouldForwardPropOption","isStringTag","defaultStyledResolver","styledEngineStyled","generateStyledLabel","transformStyle","muiStyledResolver","expressionsInput","expressionsHead","expressionsBody","expressionsTail","styleOverrides","resolvedStyleOverrides","slotKey","themeVariants","inputStrings","placeholdersHead","placeholdersTail","outputStrings","expressions","generateDisplayName","label","_","resolveProps","defaultProps","mergeClassNameAndStyle","defaultSlotProps","slotProps","slotPropName","getThemeProps","params","useThemeProps","clamp","min","max","clampWrapper","hexToRgb","re","colors","decomposeColor","marker","colorSpace","colorChannel","decomposedColor","idx","private_safeColorChannel","warning","recomposeColor","hslToRgb","rgb","getLuminance","getContrastRatio","foreground","background","lumA","lumB","alpha","private_safeAlpha","darken","coefficient","private_safeDarken","lighten","private_safeLighten","emphasize","private_safeEmphasize","PropsContext","useDefaultProps","ctx","unstable_memoTheme","styleFn","lastValue","lastTheme","createGetCssVar","prefix","appendVar","vars","field","fallbacks","assignNestedKeys","arrayKeys","temp","walkObjectDeep","callback","shouldSkipPaths","recurse","parentKeys","getCssValue","cssVarsParser","shouldSkipGeneratingVar","varsWithDefaults","cssVar","resolvedValue","prepareCssVars","parserConfig","getSelector","defaultGetSelector","disableCssColorScheme","enableContrastVars","colorSchemes","components","defaultColorScheme","otherTheme","rootVars","rootCss","rootVarsWithDefaults","themeVars","colorSchemesMap","defaultScheme","otherColorSchemes","scheme","colorScheme","cssObject","rule","schemeVars","stylesheets","insertStyleSheet","defaultSchemeVal","cssColorSheme","finalCss","createGetColorSchemeSelector","isMuiElement","element","muiNames","filterBreakpointKeys","responsiveKeys","traverseBreakpoints","responsive","smallestBreakpoint","breakpointValue","responsiveStyles","getSelfSpacingVar","axis","getParentSpacingVar","selfColumnsVar","parentColumnsVar","generateGridSizeStyles","ownerState","appendStyle","generateGridOffsetStyles","generateGridColumnsStyles","columns","generateGridRowSpacingStyles","generateGridColumnSpacingStyles","generateGridDirectionStyles","generateGridStyles","generateSizeClassNames","size","classNames","generateSpacingClassNames","isValidSpacing","generateDirectionClasses","getLegacyGridWarning","warnedAboutProps","deleteLegacyGridProps","propsToWarn","defaultCreateStyledComponent","systemStyled","useThemePropsDefault","useThemePropsSystem","createGrid","createStyledComponent","useThemeSystem","useUtilityClasses","container","wrap","parseResponsiveProp","shouldUseValue","parsedProp","GridRoot","Grid","inProps","ref","themeProps","className","columnsProp","sizeProp","offsetProp","spacingProp","rowSpacingProp","columnSpacingProp","level","offset","rowSpacing","columnSpacing","_jsx","child","common","grey","purple","red","orange","blue","lightBlue","green","getLight","light","getDark","dark","addLightOrDark","intent","shade","tonalOffset","tonalOffsetLight","tonalOffsetDark","mixLightOrDark","getDefaultPrimary","mode","getDefaultSecondary","getDefaultError","getDefaultInfo","getDefaultSuccess","getDefaultWarning","contrastColor","createPalette","palette","contrastThreshold","primary","secondary","info","success","getContrastText","contrastText","contrast","augmentColor","mainShade","lightShade","darkShade","modeHydrated","prepareTypographyVars","typography","createMixins","mixins","round","caseAllCaps","defaultFontFamily","createTypography","fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem2","coef","pxToRem","buildVariant","fontWeight","lineHeight","letterSpacing","casing","shadowKeyUmbraOpacity","shadowKeyPenumbraOpacity","shadowAmbientShadowOpacity","createShadow","px","shadows","easing","duration","formatMs","milliseconds","getAutoHeightDuration","constant","createTransitions","inputTransitions","mergedEasing","mergedDuration","durationOption","easingOption","delay","isString","isNumber","animatedProp","zIndex","isSerializable","stringifyTheme","baseTheme","serializableTheme","serializeTheme","array","coefficientToPercentage","parseAddition","numbers","sum","attachColorManipulators","systemAlpha","systemLighten","systemDarken","createThemeNoVars","mixinsInput","transitionsInput","typographyInput","systemTheme","systemCreateTheme","stateClasses","stateClass","getOverlayAlpha","elevation","alphaValue","defaultDarkOverlays","overlay","getOpacity","getOverlays","createColorScheme","opacity","overlays","excludeVariablesFromRoot","cssVarPrefix","root","excludedVariables","assignNode","setColor","toRgb","setColorChannel","safeColorChannel","getSpacingVal","silent","systemCreateGetCssVar","attachColorScheme","restTheme","createThemeWithVars","colorSchemesInput","defaultColorSchemeInput","nativeColor","defaultShouldSkipGeneratingVar","rootSelector","firstColorScheme","getCssVar","defaultSchemeInput","builtInLight","builtInDark","customColorSchemes","setCssVarColor","tokens","colorToken","colorMix","method","mixer","safeAlpha","safeDarken","safeLighten","snackbarContentBackground","safeEmphasize","generateThemeVars","generateStyleSheets","cssVariables","initialColorSchemes","initialDefaultColorScheme","paletteOptions","THEME_ID","internal_createExtendSxProp","memoTheme","useSystemDefaultProps","getSvgIconUtilityClass","SvgIconRoot","_f","_h","_g","_j","_l","_k","_n","_m","SvgIcon","htmlColor","inheritViewBox","titleAccess","viewBox","hasSvgAsChild","more","_jsxs","createSvgIcon","requirePropFactory","componentNameInError","prevPropTypes","requiredProp","propFullNameSafe","defaultTypeChecker","typeCheckerResult","useForkRef","refs","cleanupRef","refEffect","instance","cleanups","refCallback","refCleanup","ExpandMoreIcon","LCTAccordionSummary","AccordionSummary","BinIcon","gray","BrowseIcon","disabled","jsxs","CalendarIcon","CheckedCheckboxIcon","LCTSvgIcon","CheckboxIcon","CommentIcon","DefaultDocIcon","DocIcon","EmailIcon","EmailReceivedIcon","EmailSentIcon","ExcelIcon","FolderIcon","ImageIcon","InfoIcon","LaunchIcon","LEAPIcon","PDFIcon","PreviewIcon","QuestionIcon","UndoIcon","UnknownDocIcon","WarningIcon","LCTBox","Box","LCTErrorBoundary","__publicField","LCTAlert","LCTTypography","ExpandMoreRoundedIcon","KeyboardArrowUpRoundedIcon","HeaderRow","sortModel","Typography","headerHeight","rowHeight","LCTDataGrid","setSortModel","useState","sortModelInitialised","useRef","DataGridPro","model","checkboxProps","restProps","Checkbox","LCTCheckboxIcon","LCTAccordionTable","currentRowHeight","currentHeaderHeight","Alert","LCTAppBar","leftComponents","centerComponents","rightComponents","onClickHelp","Tooltip","Link","LCTAutocomplete","Autocomplete","LCTAvatarGroup","AvatarGroup","LCTButton","Button","LCTButtonGroup","ButtonGroup","LCTCheckBox","onChange","FormControlLabel","LCTChip","Chip","LCTCurrencyInput","decimalScale","id","onUpdate","placeholder","maxLength","NumericFormat","OutlinedInput","InputAdornment","millisecondsInWeek","millisecondsInDay","millisecondsInMinute","millisecondsInHour","millisecondsInSecond","constructFromSymbol","constructFrom","date","toDate","context","addDays","amount","_date","addMilliseconds","addSeconds","addMinutes","addHours","addWeeks","addMonths","dayOfMonth","endOfDesiredMonth","daysInMonth","addYears","endOfDay","defaultOptions","getDefaultOptions","endOfWeek","weekStartsOn","day","diff","endOfYear","year","formatDistanceLocale","formatDistance","token","count","tokenValue","buildFormatLongFn","dateFormats","timeFormats","dateTimeFormats","formatLong","formatRelativeLocale","formatRelative","_baseDate","_options","buildLocalizeFn","valuesArray","defaultWidth","eraValues","quarterValues","monthValues","dayValues","dayPeriodValues","formattingDayPeriodValues","ordinalNumber","dirtyNumber","number","rem100","localize","quarter","buildMatchFn","matchPattern","matchResult","matchedString","parsePatterns","findIndex","pattern","findKey","rest","predicate","buildMatchPatternFn","parseResult","matchOrdinalNumberPattern","parseOrdinalNumberPattern","matchEraPatterns","parseEraPatterns","matchQuarterPatterns","parseQuarterPatterns","matchMonthPatterns","parseMonthPatterns","matchDayPatterns","parseDayPatterns","matchDayPeriodPatterns","parseDayPeriodPatterns","enUS","getTimezoneOffsetInMilliseconds","utcDate","normalizeDates","dates","normalize","startOfDay","differenceInCalendarDays","laterDate","earlierDate","laterDate_","earlierDate_","laterStartOfDay","earlierStartOfDay","laterTimestamp","earlierTimestamp","startOfYear","date_","getDayOfYear","startOfWeek","startOfISOWeek","getISOWeekYear","fourthOfJanuaryOfNextYear","startOfNextYear","fourthOfJanuaryOfThisYear","startOfThisYear","startOfISOWeekYear","fourthOfJanuary","getISOWeek","getWeekYear","firstWeekContainsDate","firstWeekOfNextYear","firstWeekOfThisYear","startOfWeekYear","firstWeek","getWeek","addLeadingZeros","targetLength","sign","lightFormatters","signedYear","month","dayPeriodEnumValue","numberOfDigits","fractionalSeconds","dayPeriodEnum","formatters","era","signedWeekYear","weekYear","twoDigitYear","isoWeekYear","week","isoWeek","dayOfYear","dayOfWeek","localDayOfWeek","isoDayOfWeek","hours","_localize","timezoneOffset","formatTimezoneWithOptionalMinutes","formatTimezone","formatTimezoneShort","timestamp","delimiter","absOffset","minutes","dateLongFormatter","timeLongFormatter","dateTimeLongFormatter","datePattern","timePattern","dateTimeFormat","longFormatters","dayOfYearTokenRE","weekYearTokenRE","throwTokens","isProtectedDayOfYearToken","isProtectedWeekYearToken","warnOrThrowProtectedError","format","_message","subject","isDate","isValid","formattingTokensRegExp","longFormattingTokensRegExp","escapedStringRegExp","doubleQuoteRegExp","unescapedLatinCharacterRegExp","formatStr","locale","defaultLocale","originalDate","parts","substring","firstCharacter","longFormatter","cleanEscapedString","formatterOptions","part","formatter","matched","getDate","getDaysInMonth","monthIndex","lastDayOfMonth","getHours","getMinutes","getMonth","getSeconds","getMilliseconds","getYear","isAfter","dateToCompare","isBefore","isEqual","leftDate","rightDate","isSameDay","dateLeft_","dateRight_","isSameYear","isSameMonth","startOfHour","isSameHour","dateLeft","dateRight","getInternalDefaultOptions","transpose","constructor","isConstructor","TIMEZONE_UNIT_PRIORITY","Setter","_utcDate","ValueSetter","validateValue","setValue","priority","subPriority","flags","DateTimezoneSetter","reference","Parser","dateString","_value","EraParser","numericPatterns","timezonePatterns","mapValue","parseFnResult","mapFn","parseNumericPattern","parseTimezonePattern","seconds","parseAnyDigitsSigned","parseNDigits","parseNDigitsSigned","dayPeriodEnumToHours","dayPeriod","normalizeTwoDigitYear","currentYear","isCommonEra","absCurrentYear","rangeEnd","rangeEndCentury","isPreviousCentury","isLeapYearIndex","YearParser","valueCallback","normalizedTwoDigitYear","LocalWeekYearParser","ISOWeekYearParser","_flags","firstWeekOfYear","ExtendedYearParser","QuarterParser","StandAloneQuarterParser","MonthParser","StandAloneMonthParser","setWeek","LocalWeekParser","setISOWeek","ISOWeekParser","DAYS_IN_MONTH","DAYS_IN_MONTH_LEAP_YEAR","DateParser","isLeapYear","DayOfYearParser","setDay","currentDay","dayIndex","delta","DayParser","LocalDayParser","wholeWeekDays","StandAloneLocalDayParser","getISODay","setISODay","ISODayParser","AMPMParser","AMPMMidnightParser","DayPeriodParser","Hour1to12Parser","isPM","Hour0to23Parser","Hour0To11Parser","Hour1To24Parser","MinuteParser","SecondParser","FractionOfSecondParser","ISOTimezoneWithZParser","ISOTimezoneParser","TimestampSecondsParser","TimestampMillisecondsParser","parsers","notWhitespaceRegExp","parse","dateStr","referenceDate","invalidDate","subFnOptions","setters","usedTokens","parser","incompatibleTokens","incompatibleToken","usedToken","uniquePrioritySetters","setter","setterArray","setDate","setHours","setMinutes","setMonth","midMonth","setSeconds","setMilliseconds","setYear","startOfMonth","endOfMonth","isWithinInterval","interval","time","startTime","endTime","_extends","formatTokenMap","defaultFormats","AdapterDateFnsBase","longFormatRegexp","numberToFormat","formats","lib","AdapterDateFns","dateFnsParse","formatKey","formatString","dateFnsFormat","comparing","current","nestedWeeks","weekNumber","startDate","endDate","years","enAU","enGB","dbDateOnlyFormat","defaultDateFormat","defaultDateTimeFormat","minDateAsObject","timezone","utcFormat","utcTimeZone","add","formatDate","startOfDate","endOfDate","isUTC","dateOnly","tempDate","today","fromZonedTime","parseDate","localDateformat","parseKeyboardVal","convertToFullYear","completedDate","currentCentury","twoDigitYearInt","getLocale","leapContext","formatDateTime","inputValue","outputAsUtc","outputAsDateOnly","outputAs24H","timeFormat","formatReportDate","isoDate","getDateTimeWithOffset","isStringNullOrUndefined","formatAsDBDate","convertLocalDateToUTCDateTime","outputAsStartOfDay","outputAsEndOfDay","zonedDateInLocal","toZonedTime","show3buttonAlert","title","confirmButtonText","confirmCallback","refuseButtonText","refuseCallback","cancelButtonText","sdkApi","LCTDatePicker","fullWidth","additionalActions","validate30Days","sdk","anchorEl","setAnchorEl","currentValue","setCurrentValue","displayValue","setDisplayValue","validationError","setValidationError","showCalendar","setShowCalendar","dateFormat","useEffect","regexDate","regexNumbers","TextField","tempValue","keyUpValue","keyValue","differenceInDays","tempValError","IconButton","Popper","ClickAwayListener","Paper","LocalizationProvider","DateCalendar","newValue","selectionState","action","LCTDateRangePicker","onUpdateFromDate","onUpdateToDate","fromDate","calendars","displayFromDate","setDisplayFromDate","displayToDate","setDisplayToDate","tempDisplayToDate","tempDisplayFromDate","yesterday","dayStartOfWeek","dayEndOfWeek","dayStartOfMonth","dayEndOfMonth","dayStart","dayEnd","DateRangeCalendar","tempFromValue","tempToValue","tempFromValError","tempToValError","CloseOutlinedIcon","LCTDialog","actions","closeIcon","hideOverflow","isOpen","onClose","showWarningIcon","Dialog","DialogContent","DialogTitle","DialogActions","LCTDivider","Divider","LCTDrawer","drawerWidth","setDrawerWidth","targetRef","createRef","currentMinDrawerWidth","maxDrawerWidth","handleMouseDown","handleMouseUp","handleMouseMove","useCallback","newWidth","Drawer","LCTFooter","onCancel","onOK","onSaveDisable","LCTFormControlLabel","LCTFormDialog","onDelete","leftHeaderActions","refContainer","isUnitless","getUnit","toUnitless","length","convertLength","baseFontSize","toUnit","fromUnit","pxLength","outputLength","alignProperty","grid","sizeBelow","sizeAbove","fontGrid","pixels","responsiveProperty","factor","responsiveFontSizes","disableAlign","convert","breakpointValues","remFontSize","maxFontSize","minFontSize","requireProp","LCTGrid","LCTIconButton","LCTInputAdornment","LCTInputLabel","InputLabel","LCTList","List","chainPropTypes","propType1","propType2","isClassComponent","elementType","elementTypeAcceptingRef","safePropName","warningHint","isHostComponent","appendOwnerState","resolveComponentProps","componentProps","slotState","extractEventHandlers","excludeKeys","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","joinedClasses","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","useSlot","initialElementType","internalForwardedProps","shouldForwardComponentProp","useSlotPropsParams","rootComponent","resolvedComponentsProps","slotComponent","internalRef","LeafComponent","ListContext","getListItemUtilityClass","listItemButtonClasses","getListItemSecondaryActionClassesUtilityClass","disableGutters","ListItemSecondaryActionRoot","ListItemSecondaryAction","alignItems","dense","disablePadding","divider","hasSecondaryAction","ListItemRoot","ListItemContainer","ListItem","childrenProp","componentProp","componentsProps","ContainerComponent","ContainerClassName","ContainerProps","secondaryAction","childContext","listItemRef","handleRef","SecondaryActionSlot","secondaryActionSlotProps","Root","rootProps","secondaryActionIndex","LCTListItem","LCTListItemButton","ListItemButton","hasCorrectMainProperty","checkSimplePaletteColorValues","additionalPropertiesToCheck","createSimplePaletteValueFilter","getTypographyUtilityClass","v6Colors","align","gutterBottom","noWrap","paragraph","TypographyRoot","defaultVariantMapping","isSxColor","variantMapping","LCTListItemText","ListItemText","LCTLoader","Backdrop","CircularProgress","LCTMenu","Menu","LCTMenuItem","MenuItem","LCTNumberDisplay","bold","displayAsQty","hideNoValue","noValueText","notCurrency","showNegative","NumberFormatCustom","forwardRef","LCTNumberInput","autoFocus","updater","event","updateMultiFilter","originalValue","fullList","list","LCTSelect","Select","LCTSnackbar","Snackbar","LCTTooltip","LCTStaffAvatar","Avatar","LCTTab","Tab","LCTTabs","Tabs","LCTTextareaAutosize","TextareaAutosize","LCTTextfield","fontColor","h6FontSize","hoverColor","mainColor","primaryColor","secondaryColor","linkColor","selectedColor","menuSelectedColor","disabledBg","paperBg","appBarBg","drawerBg","dialogActionsBg","borderLight","borderDialog","tooltipBorder","focusBorder","errorColor","leapDesktopTheme","leapDesktopTokens","focusColor","h5FontSize","captionFontSize","fontColorSecondary","pageBg","dividerColor","successColor","warningColor","infoColor","controlHeight","controlHeightSmall","controlHeightLarge","touchTargetMin","radius","radiusLarge","radiusDialog","shadowSoft","shadowRaised","shadowOverlay","focusVisible","leapWebTheme","leapWebTokens"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA,MAAIA,IAAqB,OAAO,IAAI,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AA,EAEF,SAAS;AAAA,IACP,MAAMC;AAAA,IACN,QAAQC;AAAA,IACR,SAASC;AAAA,EAAA;AAEb;","x_google_ignoreList":[0,1,2,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,138,139,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,279,286,287,288,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,311,312,313]}
|
|
1
|
+
{"version":3,"file":"index.es.js","names":["LCTCheckboxIcon","_Fragment","_Fragment","addDays","dateFnsParse","dateFnsFormat","isAfter","endOfDay","isBefore","startOfMonth","startOfWeek","startOfDay","endOfMonth","endOfWeek","addMonths","addMinutes","getHours","getMinutes","getSeconds","setHours","setMinutes","setSeconds","enUS","_Fragment","_Fragment","_Fragment","_Fragment","_Fragment","_Fragment","_Fragment","_Fragment","_Fragment","Typography","fontColor","fontSize","fontWeight","h6FontSize","hoverColor","lineHeight","fontFamily","fontSize","fontWeight","fontColor","lineHeight","h6FontSize","primaryColor","secondaryColor","linkColor","hoverColor","selectedColor","menuSelectedColor","disabledBg","paperBg","appBarBg","drawerBg","dialogActionsBg","borderLight","borderDialog","errorColor","ExpandMoreIcon","ExpandMoreRoundedIcon","KeyboardArrowUpRoundedIcon","addDays$1","addMinutes$1","addMonths$1","endOfDay$1","endOfWeek$1","format$1","getHours$1","getMinutes$1","getSeconds$1","isAfter$1","isBefore$1","setHours$1","setMinutes$1","setSeconds$1","startOfDay$1","startOfMonth$1","endOfMonth$1","startOfWeek$1","enUS$1","CloseOutlinedIcon","Grid","ListItem","ListItemText","LCTAccordion","Accordion","props","LCTAccordionDetails","AccordionDetails","LCTAccordionSummary","styled","AccordionSummary","BinIcon","SvgIcon","gray","BrowseIcon","disabled","CalendarIcon","CheckedCheckboxIcon","LCTSvgIcon","CheckboxIcon","CommentIcon","DefaultDocIcon","DocIcon","EmailIcon","EmailReceivedIcon","EmailSentIcon","ExcelIcon","FolderIcon","ImageIcon","InfoIcon","LaunchIcon","LEAPIcon","PDFIcon","PreviewIcon","QuestionIcon","UndoIcon","UnknownDocIcon","WarningIcon","LCTBox","Box","LCTErrorBoundary","Component","error","info","message","fallback","LCTAlert","LCTTypography","HeaderRow","sortModel","f","params","Typography","headerHeight","rowHeight","LCTDataGrid","setSortModel","useState","sortModelInitialised","useRef","DataGridPro","c","model","restProps","checkboxProps","Checkbox","LCTAccordionTable","currentRowHeight","currentHeaderHeight","Alert","LCTAppBar","leftComponents","Fragment","centerComponents","rightComponents","onClickHelp","Tooltip","Link","LCTAutocomplete","Autocomplete","LCTAvatarGroup","AvatarGroup","LCTButton","Button","LCTButtonGroup","ButtonGroup","css","LCTCheckBox","FormControlLabel","label","value","onChange","LCTChip","Chip","LCTCurrencyInput","NumericFormat","OutlinedInput","decimalScale","onUpdate","values","size","prefix","InputAdornment","width","_extends","e","t","n","formatTokenMap","defaultFormats","AdapterDateFnsBase","locale","formats","longFormatters","lib","format","firstCharacter","token","longFormatter","numberToFormat","AdapterDateFns","enUS","parse","isValid","formatKey","formatString","comparing","isEqual","isSameYear","isSameMonth","isSameDay","isSameHour","endOfYear","start","end","isWithinInterval","startOfYear","addYears","amount","addWeeks","addHours","addSeconds","getYear","getMonth","getDate","getMilliseconds","setYear","year","setMonth","month","setDate","date","hours","minutes","seconds","setMilliseconds","milliseconds","getDaysInMonth","count","current","nestedWeeks","weekNumber","getWeek","startDate","endDate","years","invalidDate","dbDateOnlyFormat","defaultDateFormat","defaultDateTimeFormat","minDateAsObject","timezone","utcFormat","utcTimeZone","add","formatDate","tempDate","dateOnly","startOfDate","startOfDay","endOfDate","endOfDay","isUTC","today","setHours","getHours","setMinutes","getMinutes","setSeconds","getSeconds","fromZonedTime","parseDate","parts","part","day","localDateformat","parseKeyboardVal","p","convertToFullYear","completedDate","currentYear","currentCentury","twoDigitYearInt","twoDigitYear","getLocale","leapContext","enGB","enAU","formatDateTime","timeFormat","outputAs24H","inputValue","outputAsUtc","outputAsDateOnly","formatReportDate","isoDate","getDateTimeWithOffset","offset","addMinutes","isStringNullOrUndefined","formatAsDBDate","convertLocalDateToUTCDateTime","zonedDateInLocal","toZonedTime","outputAsStartOfDay","outputAsEndOfDay","show3buttonAlert","sdkApi","key","refuseCallback","LCTDatePicker","anchorEl","setAnchorEl","currentValue","setCurrentValue","displayValue","setDisplayValue","validationError","setValidationError","showCalendar","setShowCalendar","dateFormat","regexDate","regexNumbers","useEffect","sdk","TextField","tempValue","\"length\"","keyUpValue","len","keyValue","validate30Days","differenceInDays","validate","tempValError","fullWidth","IconButton","Popper","ClickAwayListener","Paper","LocalizationProvider","DateCalendar","newValue","selectionState","additionalActions","action","LCTDateRangePicker","displayFromDate","setDisplayFromDate","displayToDate","setDisplayToDate","fromDate","onUpdateFromDate","toDate","onUpdateToDate","regex","tempDisplayToDate","isAfter","tempDisplayFromDate","isBefore","yesterday","addDays","dayStartOfWeek","startOfWeek","dayEndOfWeek","endOfWeek","dayStartOfMonth","startOfMonth","dayEndOfMonth","endOfMonth","addMonths","dayStart","dayEnd","DateRangeCalendar","tempFromValue","tempToValue","tempFromValError","tempToValError","calendars","LCTDialog","Dialog","isOpen","maxWidth","DialogContent","hideOverflow","minWidth","DialogTitle","title","closeIcon","onClose","showWarningIcon","actions","DialogActions","LCTDivider","Divider","LCTDrawer","drawerWidth","setDrawerWidth","targetRef","createRef","currentMinDrawerWidth","maxDrawerWidth","handleMouseDown","handleMouseUp","handleMouseMove","useCallback","newWidth","Drawer","LCTFooter","onOK","onSaveDisable","onCancel","LCTFormControlLabel","LCTFormDialog","refContainer","onDelete","leftHeaderActions","LCTGrid","LCTIconButton","LCTInputAdornment","LCTInputLabel","InputLabel","LCTList","List","LCTListItem","LCTListItemButton","ListItemButton","LCTListItemText","LCTLoader","Backdrop","overlay","CircularProgress","LCTMenu","Menu","LCTMenuItem","MenuItem","LCTNumberDisplay","hideNoValue","noValueText","bold","color","showNegative","displayAsQty","NumberFormatCustom","forwardRef","other","ref","LCTNumberInput","updater","event","updateMultiFilter","list","originalValue","fullList","v","LCTSelect","Select","child","LCTSnackbar","Snackbar","LCTTooltip","LCTStaffAvatar","Avatar","LCTTab","Tab","LCTTabs","Tabs","LCTTextareaAutosize","TextareaAutosize","LCTTextfield","fontColor$2","fontSize$2","fontWeight$2","h6FontSize$2","hoverColor$2","lineHeight$2","mainColor","theme","createTheme","fontFamily$1","fontSize$1","fontWeight$1","fontColor$1","lineHeight$1","h6FontSize$1","primaryColor$1","secondaryColor$1","linkColor$1","hoverColor$1","selectedColor$1","menuSelectedColor$1","disabledBg$1","paperBg$1","appBarBg$1","drawerBg$1","dialogActionsBg$1","borderLight$1","borderDialog$1","tooltipBorder","focusBorder","errorColor$1","leapDesktopTheme","leapDesktopTokens","primaryColor","secondaryColor","linkColor","hoverColor","selectedColor","menuSelectedColor","disabledBg","fontColor","errorColor","focusColor","fontFamily","fontSize","fontWeight","fontWeightMedium","fontWeightBold","lineHeight","h5FontSize","h6FontSize","captionFontSize","fontColorSecondary","pageBg","paperBg","appBarBg","drawerBg","dialogActionsBg","borderLight","borderDialog","dividerColor","successColor","warningColor","infoColor","controlHeight","controlHeightSmall","controlHeightLarge","touchTargetMin","radius","radiusLarge","radiusDialog","shadowSoft","shadowRaised","shadowOverlay","focusVisible","leapWebTheme","responsiveFontSizes","leapWebTokens"],"sources":["../src/components/accordion/Accordion.tsx","../src/components/accordiondetails/AccordionDetails.tsx","../src/components/accordionsummary/AccordionSummary.tsx","../src/images/bin-icon.tsx","../src/images/browse-icon.tsx","../src/images/calendar-icon.tsx","../src/images/checkbox-checked-icon.tsx","../src/images/checkbox-icon.tsx","../src/images/comment-icon.tsx","../src/images/default-doc-icon.tsx","../src/images/doc-icon.tsx","../src/images/email-icon.tsx","../src/images/email-received-icon.tsx","../src/images/email-sent-icon.tsx","../src/images/excel-icon.tsx","../src/images/folder-icon.tsx","../src/images/image-icon.tsx","../src/images/info-icon.tsx","../src/images/launch-icon.tsx","../src/images/leap-icon.tsx","../src/images/pdf-icon.tsx","../src/images/preview-icon.tsx","../src/images/question-icon.tsx","../src/images/undo-icon.tsx","../src/images/unknown-doc-icon.tsx","../src/images/warning-icon.tsx","../src/components/box/Box.tsx","../src/components/errorboundary/ErrorBoundary.tsx","../src/components/headerrow/HeaderRow.tsx","../src/components/datagrid/DataGrid.tsx","../src/components/accordiontable/AccordionTable.tsx","../src/components/alert/Alert.tsx","../src/components/appbar/AppBar.tsx","../src/components/autocomplete/Autocomplete.tsx","../src/components/avatargroup/AvatarGroup.tsx","../src/components/button/Button.tsx","../src/components/buttongroup/ButtonGroup.tsx","../src/components/checkbox/Checkbox.tsx","../src/components/chip/Chip.tsx","../src/components/currencyinput/CurrencyInput.tsx","../node_modules/@babel/runtime/helpers/esm/extends.js","../node_modules/@mui/x-date-pickers/AdapterDateFnsBase/AdapterDateFnsBase.mjs","../node_modules/@mui/x-date-pickers/AdapterDateFns/AdapterDateFns.mjs","../src/components/datepicker/utils.ts","../src/components/datepicker/DatePicker.tsx","../src/components/daterangepicker/DateRangePicker.tsx","../src/components/dialog/Dialog.tsx","../src/components/divider/Divider.tsx","../src/components/drawer/Drawer.tsx","../src/components/footer/Footer.tsx","../src/components/formcontrollabel/FormControlLabel.tsx","../src/components/formdialog/FormDialog.tsx","../src/components/grid/Grid.tsx","../src/components/iconbutton/IconButton.tsx","../src/components/inputadornment/InputAdornment.tsx","../src/components/inputlabel/InputLabel.tsx","../src/components/list/List.tsx","../src/components/listitem/ListItem.tsx","../src/components/listitembutton/ListItemButton.tsx","../src/components/listitemtext/ListItemText.tsx","../src/components/loader/Loader.tsx","../src/components/menu/Menu.tsx","../src/components/menuitem/MenuItem.tsx","../src/components/numberdisplay/NumberDisplay.tsx","../src/components/numberinput/NumberInput.tsx","../src/components/select/Select.tsx","../src/components/snackbar/Snackbar.tsx","../src/components/tooltip/Tooltip.tsx","../src/components/staffavatar/StaffAvatar.tsx","../src/components/svgicon/SvgIcon.tsx","../src/components/tab/Tab.tsx","../src/components/tabs/Tabs.tsx","../src/components/textareaautosize/TextareaAutosize.tsx","../src/components/textfield/Textfield.tsx","../src/components/typography/Typography.tsx","../src/styles/theme.ts","../src/styles/leap-desktop.ts","../src/styles/leap-web.ts"],"sourcesContent":["import { Accordion, AccordionProps } from \"@mui/material\";\r\n\r\nconst LCTAccordion = (props: AccordionProps) => {\r\n return <Accordion {...props}>{props.children}</Accordion>;\r\n};\r\n\r\nexport default LCTAccordion;\r\n","import { AccordionDetails, AccordionDetailsProps } from \"@mui/material\";\r\n\r\nconst LCTAccordionDetails = (props: AccordionDetailsProps) => {\r\n return <AccordionDetails {...props}>{props.children}</AccordionDetails>;\r\n};\r\n\r\nexport default LCTAccordionDetails;\r\n","import { AccordionSummary, AccordionSummaryProps, styled } from \"@mui/material\";\r\nimport ExpandMoreIcon from \"@mui/icons-material/ExpandMore\";\r\n\r\nconst LCTAccordionSummary = styled((props: AccordionSummaryProps) => (\r\n <AccordionSummary\r\n expandIcon={<ExpandMoreIcon fontSize=\"small\" sx={{ paddingTop: \"2px\" }} />}\r\n {...props}\r\n />\r\n))(({}) => ({\r\n flexDirection: \"row-reverse\",\r\n borderBottom: \"1px solid rgba(224, 224, 224, 1)\",\r\n padding: \"0px 10px 0px 5px\",\r\n minHeight: 35,\r\n maxHeight: 35,\r\n}));\r\n\r\nexport default LCTAccordionSummary;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IProps {\r\n gray?: boolean;\r\n}\r\nconst BinIcon: FC<IProps> = ({ gray }) => (\r\n <SvgIcon\r\n width=\"16\"\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <path\r\n d=\"M12.5 4.50049H13C13 4.36788 12.9473 4.2407 12.8536 4.14693C12.7598 4.05317 12.6326 4.00049 12.5 4.00049V4.50049ZM3.5 4.50049V4.00049C3.22386 4.00049 3 4.22435 3 4.50049H3.5ZM6 13.0005C6 13.2766 6.22386 13.5005 6.5 13.5005C6.77614 13.5005 7 13.2766 7 13.0005H6ZM7 6.50049C7 6.22435 6.77614 6.00049 6.5 6.00049C6.22386 6.00049 6 6.22435 6 6.50049H7ZM9 13.0005C9 13.2766 9.22386 13.5005 9.5 13.5005C9.77614 13.5005 10 13.2766 10 13.0005H9ZM10 6.50049C10 6.22435 9.77614 6.00049 9.5 6.00049C9.22386 6.00049 9 6.22435 9 6.50049H10ZM2.5 4.50049H2C2 4.77663 2.22386 5.00049 2.5 5.00049V4.50049ZM13.5 4.50049V5.00049C13.7761 5.00049 14 4.77663 14 4.50049H13.5ZM12.5 2.50049V3.00049V2.50049ZM10.5 2.50049H10C10 2.77663 10.2239 3.00049 10.5 3.00049V2.50049ZM10.5 1.50049H11C11 1.36788 10.9473 1.2407 10.8536 1.14693C10.7598 1.05317 10.6326 1.00049 10.5 1.00049V1.50049ZM5.5 1.50049V1.00049C5.36739 1.00049 5.24021 1.05317 5.14645 1.14693C5.05268 1.2407 5 1.36788 5 1.50049L5.5 1.50049ZM5.5 2.50049V3.00049C5.77614 3.00049 6 2.77663 6 2.50049H5.5ZM3.5 2.50049V2.00049V2.50049ZM3 14.0005C3 14.5776 3.14461 15.1022 3.52145 15.479C3.89829 15.8559 4.42293 16.0005 5 16.0005V15.0005C4.57707 15.0005 4.35171 14.8951 4.22855 14.7719C4.10539 14.6488 4 14.4234 4 14.0005H3ZM5 16.0005H11V15.0005H5V16.0005ZM11 16.0005C11.5771 16.0005 12.1017 15.8559 12.4786 15.479C12.8554 15.1022 13 14.5776 13 14.0005H12C12 14.4234 11.8946 14.6488 11.7714 14.7719C11.6483 14.8951 11.4229 15.0005 11 15.0005V16.0005ZM13 14.0005V4.50049H12V14.0005H13ZM12.5 4.00049H3.5V5.00049H12.5V4.00049ZM3 4.50049V14.0005H4V4.50049H3ZM7 13.0005V6.50049H6V13.0005H7ZM10 13.0005V6.50049H9V13.0005H10ZM2.5 5.00049H13.5V4.00049H2.5V5.00049ZM14 4.50049V3.50049H13V4.50049H14ZM14 3.50049C14 3.08787 13.7987 2.71711 13.5411 2.45943C13.2834 2.20176 12.9126 2.00049 12.5 2.00049V3.00049C12.5874 3.00049 12.7166 3.04921 12.8339 3.16654C12.9513 3.28387 13 3.4131 13 3.50049H14ZM12.5 2.00049H10.5V3.00049H12.5V2.00049ZM11 2.50049V1.50049H10V2.50049H11ZM10.5 1.00049C10.2504 1.00049 8.99962 1.00049 7.8125 1.00049C7.20169 1.00049 6.65769 1.00049 6.21094 1.00049C5.99055 1.00049 5.8239 1.00049 5.69434 1.00049C5.63539 1.00049 5.58067 1.00049 5.55066 1.00049C5.54963 1.00049 5.54861 1.00049 5.5476 1.00049C5.5466 1.00049 5.54561 1.00049 5.54464 1.00049C5.54367 1.00049 5.54271 1.00049 5.54177 1.00049C5.54082 1.00049 5.5399 1.00049 5.53898 1.00049C5.53807 1.00049 5.53718 1.00049 5.5363 1.00049C5.53541 1.00049 5.53455 1.00049 5.5337 1.00049C5.53285 1.00049 5.53202 1.00049 5.5312 1.00049C5.53038 1.00049 5.52958 1.00049 5.52879 1.00049C5.528 1.00049 5.52723 1.00049 5.52647 1.00049C5.52572 1.00049 5.52498 1.00049 5.52425 1.00049C5.52353 1.00049 5.52282 1.00049 5.52212 1.00049C5.52143 1.00049 5.52075 1.00049 5.52009 1.00049C5.51943 1.00049 5.51879 1.00049 5.51816 1.00049C5.51753 1.00049 5.51691 1.00049 5.51632 1.00049C5.51572 1.00049 5.51514 1.00049 5.51457 1.00049C5.51401 1.00049 5.51346 1.00049 5.51292 1.00049C5.51239 1.00049 5.51187 1.00049 5.51137 1.00049C5.51087 1.00049 5.51039 1.00049 5.50992 1.00049C5.50945 1.00049 5.509 1.00049 5.50856 1.00049C5.50813 1.00049 5.50771 1.00049 5.50731 1.00049C5.5069 1.00049 5.50652 1.00049 5.50615 1.00049C5.50578 1.00049 5.50542 1.00049 5.50509 1.00049C5.50475 1.00049 5.50443 1.00049 5.50413 1.00049C5.50382 1.00049 5.50353 1.00049 5.50326 1.00049C5.50299 1.00049 5.50274 1.00049 5.5025 1.00049C5.50226 1.00049 5.50204 1.00049 5.50184 1.00049C5.50164 1.00049 5.50145 1.00049 5.50128 1.00049C5.50111 1.00049 5.50096 1.00049 5.50082 1.00049C5.50068 1.00049 5.50056 1.00049 5.50046 1.00049C5.50036 1.00049 5.50027 1.00049 5.50021 1.00049C5.50014 1.00049 5.50009 1.00049 5.50005 1.00049C5.50002 1.00049 5.5 1.00049 5.5 1.50049C5.5 2.00049 5.50002 2.00049 5.50005 2.00049C5.50009 2.00049 5.50014 2.00049 5.50021 2.00049C5.50027 2.00049 5.50036 2.00049 5.50046 2.00049C5.50056 2.00049 5.50068 2.00049 5.50082 2.00049C5.50096 2.00049 5.50111 2.00049 5.50128 2.00049C5.50145 2.00049 5.50164 2.00049 5.50184 2.00049C5.50204 2.00049 5.50226 2.00049 5.5025 2.00049C5.50274 2.00049 5.50299 2.00049 5.50326 2.00049C5.50353 2.00049 5.50382 2.00049 5.50413 2.00049C5.50443 2.00049 5.50475 2.00049 5.50509 2.00049C5.50542 2.00049 5.50578 2.00049 5.50615 2.00049C5.50652 2.00049 5.5069 2.00049 5.50731 2.00049C5.50771 2.00049 5.50813 2.00049 5.50856 2.00049C5.509 2.00049 5.50945 2.00049 5.50992 2.00049C5.51039 2.00049 5.51087 2.00049 5.51137 2.00049C5.51187 2.00049 5.51239 2.00049 5.51292 2.00049C5.51346 2.00049 5.51401 2.00049 5.51457 2.00049C5.51514 2.00049 5.51572 2.00049 5.51632 2.00049C5.51691 2.00049 5.51753 2.00049 5.51816 2.00049C5.51879 2.00049 5.51943 2.00049 5.52009 2.00049C5.52075 2.00049 5.52143 2.00049 5.52212 2.00049C5.52282 2.00049 5.52353 2.00049 5.52425 2.00049C5.52498 2.00049 5.52572 2.00049 5.52647 2.00049C5.52723 2.00049 5.528 2.00049 5.52879 2.00049C5.52958 2.00049 5.53038 2.00049 5.5312 2.00049C5.53202 2.00049 5.53285 2.00049 5.5337 2.00049C5.53455 2.00049 5.53541 2.00049 5.5363 2.00049C5.53718 2.00049 5.53807 2.00049 5.53898 2.00049C5.5399 2.00049 5.54082 2.00049 5.54177 2.00049C5.54271 2.00049 5.54367 2.00049 5.54464 2.00049C5.54561 2.00049 5.5466 2.00049 5.5476 2.00049C5.54861 2.00049 5.54963 2.00049 5.55066 2.00049C5.55169 2.00049 5.55274 2.00049 5.55381 2.00049C5.55487 2.00049 5.55595 2.00049 5.55704 2.00049C5.55814 2.00049 5.55925 2.00049 5.56037 2.00049C5.56149 2.00049 5.56263 2.00049 5.56379 2.00049C5.56494 2.00049 5.56611 2.00049 5.56729 2.00049C5.56848 2.00049 5.56968 2.00049 5.57089 2.00049C5.5721 2.00049 5.57333 2.00049 5.57457 2.00049C5.57581 2.00049 5.57707 2.00049 5.57834 2.00049C5.57962 2.00049 5.5809 2.00049 5.5822 2.00049C5.58351 2.00049 5.58482 2.00049 5.58615 2.00049C5.58748 2.00049 5.58883 2.00049 5.59019 2.00049C5.59154 2.00049 5.59292 2.00049 5.59431 2.00049C5.59569 2.00049 5.5971 2.00049 5.59851 2.00049C5.59993 2.00049 5.60136 2.00049 5.60281 2.00049C5.60425 2.00049 5.60571 2.00049 5.60718 2.00049C5.60866 2.00049 5.61015 2.00049 5.61165 2.00049C5.61315 2.00049 5.61467 2.00049 5.6162 2.00049C5.61773 2.00049 5.61927 2.00049 5.62083 2.00049C5.62239 2.00049 5.62396 2.00049 5.62555 2.00049C5.62713 2.00049 5.62873 2.00049 5.63035 2.00049C5.66909 2.00049 5.60134 2.00049 5.6402 2.00049C5.64187 2.00049 5.64355 2.00049 5.64525 2.00049C5.64694 2.00049 5.64865 2.00049 5.65038 2.00049C5.6521 2.00049 5.65384 2.00049 5.65559 2.00049C5.65734 2.00049 5.65911 2.00049 5.66088 2.00049C5.66266 2.00049 5.66445 2.00049 5.66626 2.00049C5.66806 2.00049 5.66988 2.00049 5.67172 2.00049C5.70741 2.00049 5.64707 2.00049 5.68287 2.00049C5.68475 2.00049 5.68665 2.00049 5.68856 2.00049C5.69047 2.00049 5.6924 2.00049 5.69434 2.00049C5.72856 2.00049 5.67179 2.00049 5.70612 2.00049C5.70811 2.00049 5.71011 2.00049 5.71213 2.00049C5.71414 2.00049 5.71617 2.00049 5.71822 2.00049C5.75101 2.00049 5.69772 2.00049 5.73062 2.00049C5.73271 2.00049 5.73482 2.00049 5.73694 2.00049C5.73906 2.00049 5.74119 2.00049 5.74333 2.00049C5.77473 2.00049 5.72484 2.00049 5.75634 2.00049C5.75854 2.00049 5.76074 2.00049 5.76296 2.00049C5.76518 2.00049 5.76741 2.00049 5.76965 2.00049C5.79971 2.00049 5.75311 2.00049 5.78326 2.00049C5.78556 2.00049 5.78786 2.00049 5.79018 2.00049C5.79249 2.00049 5.79482 2.00049 5.79716 2.00049C5.8259 2.00049 5.78252 2.00049 5.81136 2.00049C5.83945 2.00049 5.79765 2.00049 5.82584 2.00049C5.8533 2.00049 5.81305 2.00049 5.8406 2.00049C5.84309 2.00049 5.84558 2.00049 5.84809 2.00049C5.8506 2.00049 5.85312 2.00049 5.85565 2.00049C5.88186 2.00049 5.84466 2.00049 5.87097 2.00049C5.89658 2.00049 5.86087 2.00049 5.88657 2.00049C5.9359 2.00049 5.86888 2.00049 5.91858 2.00049C5.92129 2.00049 5.92401 2.00049 5.92675 2.00049C5.92948 2.00049 5.93223 2.00049 5.93499 2.00049C5.95825 2.00049 5.9283 2.00049 5.95165 2.00049C5.99642 2.00049 5.94067 2.00049 5.98577 2.00049C6.02835 2.00049 5.97799 2.00049 6.0209 2.00049C6.06136 2.00049 6.01624 2.00049 6.05702 2.00049C6.09543 2.00049 6.05538 2.00049 6.09411 2.00049C6.11261 2.00049 6.09444 2.00049 6.11301 2.00049C6.11618 2.00049 6.11936 2.00049 6.12255 2.00049C6.12574 2.00049 6.12894 2.00049 6.13214 2.00049C6.16665 2.00049 6.13629 2.00049 6.17109 2.00049C6.20374 2.00049 6.17799 2.00049 6.21094 2.00049C6.61345 2.00049 7.24592 2.00049 7.8125 2.00049C9.00015 2.00049 10.2498 2.00049 10.5 2.00049V1.00049ZM5.5 1.50049C5 1.50049 5 1.50049 5 1.50049C5 1.5005 5 1.5005 5 1.50051C5 1.50052 5 1.50053 5 1.50054C5 1.50055 5 1.50056 5 1.50058C5 1.50059 5 1.50061 5 1.50063C5 1.50065 5 1.50067 5 1.50069C5 1.50072 5 1.50074 5 1.50077C5 1.50079 5 1.50082 5 1.50085C5 1.50088 5 1.50092 5 1.50095C5 1.50098 5 1.50102 5 1.50106C5 1.50109 5 1.50113 5 1.50118C5 1.50122 5 1.50126 5 1.50131C5 1.50135 5 1.5014 5 1.50145C5 1.5015 5 1.50155 5 1.5016C5 1.50165 5 1.50171 5 1.50176C5 1.50182 5 1.50188 5 1.50194C5 1.5045 5 1.50273 5 1.50623C5 1.51001 5 1.51562 5 1.52295C5 1.54541 5 1.55127 5 1.58643C5 1.64795 5 1.7124 5 1.81299C5 2.00049 5 2.25049 5 2.50049H6C6 2.25049 6 2.00049 6 1.81299C6 1.7124 6 1.64795 6 1.58643C6 1.55127 6 1.54541 6 1.52295C6 1.50361 6 1.53173 6 1.51326C6 1.5114 6 1.51104 6 1.50941C6 1.50628 6 1.50913 6 1.50623C6 1.50273 6 1.5045 6 1.50194C6 1.50188 6 1.50182 6 1.50176C6 1.50171 6 1.50165 6 1.5016C6 1.50155 6 1.5015 6 1.50145C6 1.5014 6 1.50135 6 1.50131C6 1.50126 6 1.50122 6 1.50118C6 1.50113 6 1.50109 6 1.50106C6 1.50102 6 1.50098 6 1.50095C6 1.50092 6 1.50088 6 1.50085C6 1.50082 6 1.50079 6 1.50077C6 1.50074 6 1.50072 6 1.50069C6 1.50067 6 1.50065 6 1.50063C6 1.50061 6 1.50059 6 1.50058C6 1.50056 6 1.50055 6 1.50054C6 1.50053 6 1.50052 6 1.50051C6 1.5005 6 1.5005 6 1.50049C6 1.50049 6 1.50049 5.5 1.50049ZM5.5 2.00049H3.5V3.00049H5.5V2.00049ZM3.5 2.00049C3.08738 2.00049 2.71662 2.20176 2.45895 2.45943C2.20127 2.71711 2 3.08787 2 3.50049H3C3 3.4131 3.04873 3.28387 3.16605 3.16654C3.28338 3.04921 3.41262 3.00049 3.5 3.00049V2.00049ZM2 3.50049V4.50049H3V3.50049H2Z\"\r\n fill={gray ? \"rgba(0, 0, 0, 0.5)\" : \"#ffffff\"}\r\n />\r\n </SvgIcon>\r\n);\r\nexport default BinIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IBrowseIconProps {\r\n disabled?: boolean;\r\n}\r\nconst BrowseIcon: FC<IBrowseIconProps> = ({ disabled }) => {\r\n return (\r\n <SvgIcon\r\n height=\"16\"\r\n viewBox=\"0 0 16 16\"\r\n id=\"bin-grid-20\"\r\n width=\"16\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <rect width=\"16\" height=\"16\" fill=\"white\" />\r\n <path\r\n opacity=\"0.5\"\r\n d=\"M3 1H15V3H3V1Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M3.14231 1.12797C3.07009 1.18778 3 1.29055 3 1.5V12.5C3 12.745 3.06876 12.8472 3.1171 12.8926C3.17099 12.9433 3.28183 13 3.5 13H14.4986C14.5543 13 14.677 12.9589 14.8054 12.8074C14.9287 12.6619 15 12.4779 15 12.3182V1.68182C15 1.49304 14.9345 1.30807 14.8328 1.17913C14.7354 1.05579 14.6214 1 14.5 1H3.58696C3.37624 1 3.22808 1.05693 3.14231 1.12797ZM2.50443 0.357828C2.8154 0.100271 3.21072 0 3.58696 0H14.5C14.9791 0 15.3652 0.239662 15.6177 0.559505C15.8657 0.873745 16 1.27968 16 1.68182V12.3182C16 12.7494 15.8206 13.1563 15.5682 13.454C15.3209 13.7457 14.9428 14 14.4986 14H3.5C3.11763 14 2.72847 13.8995 2.43249 13.6216C2.13097 13.3384 2 12.9406 2 12.5V1.5C2 1.02384 2.17991 0.626616 2.50443 0.357828Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M2 3.5C2 3.22386 2.22386 3 2.5 3H15.5C15.7761 3 16 3.22386 16 3.5C16 3.77614 15.7761 4 15.5 4H2.5C2.22386 4 2 3.77614 2 3.5Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M0.5 2.5C0.776142 2.5 1 2.72386 1 3V14C1 14.4229 1.10539 14.6483 1.22855 14.7714C1.35171 14.8946 1.57707 15 2 15H13C13.2761 15 13.5 15.2239 13.5 15.5C13.5 15.7761 13.2761 16 13 16H2C1.42293 16 0.898286 15.8554 0.521447 15.4786C0.144607 15.1017 0 14.5771 0 14V3C0 2.72386 0.223858 2.5 0.5 2.5Z\"\r\n fill={disabled ? \"light-grey\" : \"#1E365E\"}\r\n />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default BrowseIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction CalendarIcon() {\r\n return (\r\n <SvgIcon\r\n focusable=\"false\"\r\n viewBox=\"0 0 24 24\"\r\n aria-hidden=\"true\"\r\n style={{ height: \"21px\", width: \"21px\" }}\r\n >\r\n <rect x=\"4.03812\" y=\"7.03696\" width=\"16\" height=\"12\" fill=\"white\"></rect>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M10.509 4C10.2132 4 9.97333 4.23985 9.97333 4.53571C9.97333 4.83158 10.2132 5.07143 10.509 5.07143H13.4957C13.7916 5.07143 14.0314 4.83158 14.0314 4.53571C14.0314 4.23985 13.7916 4 13.4957 4H10.509ZM4.46132 4.46018C4.71899 4.20251 5.08976 4.00122 5.50238 4.00122H7.00238C7.27852 4.00122 7.50238 4.22508 7.50238 4.50122C7.50238 4.77736 7.27852 5.00122 7.00238 5.00122H5.50238C5.41501 5.00122 5.28577 5.04995 5.16844 5.16728C5.0511 5.28462 5.00238 5.41386 5.00238 5.50122V6.99332H19.0024V5.50122C19.0024 5.41384 18.9537 5.2846 18.8363 5.16727C18.719 5.04995 18.5898 5.00122 18.5024 5.00122H17.0024C16.7262 5.00122 16.5024 4.77736 16.5024 4.50122C16.5024 4.22508 16.7262 4.00122 17.0024 4.00122H18.5024C18.915 4.00122 19.2858 4.20249 19.5434 4.46017C19.8011 4.71784 20.0024 5.0886 20.0024 5.50122V7.47818C20.004 7.49492 20.0048 7.51188 20.0048 7.52903C20.0048 7.54618 20.004 7.56315 20.0024 7.57989V18.5012C20.0024 18.9138 19.8011 19.2846 19.5434 19.5423C19.2858 19.7999 18.915 20.0012 18.5024 20.0012H5.50238C5.08976 20.0012 4.719 19.7999 4.46133 19.5423C4.20365 19.2846 4.00238 18.9138 4.00238 18.5012V7.57987C4.00081 7.56313 4 7.54618 4 7.52903C4 7.51189 4.00081 7.49493 4.00238 7.4782V5.50122C4.00238 5.08862 4.20366 4.71785 4.46132 4.46018ZM5.00238 18.5012V8.06475H19.0024V18.5012C19.0024 18.5886 18.9537 18.7178 18.8363 18.8352C18.719 18.9525 18.5898 19.0012 18.5024 19.0012H5.50238C5.415 19.0012 5.28576 18.9525 5.16843 18.8352C5.05111 18.7178 5.00238 18.5886 5.00238 18.5012ZM15.4869 4C15.7827 4 16.0226 4.23985 16.0226 4.53571V5.53349C16.0226 5.82935 15.7827 6.0692 15.4869 6.0692C15.191 6.0692 14.9511 5.82935 14.9511 5.53349V4.53571C14.9511 4.23985 15.191 4 15.4869 4ZM9.05364 4.53571C9.05364 4.23985 8.81379 4 8.51793 4C8.22206 4 7.98221 4.23985 7.98221 4.53571V5.53349C7.98221 5.82935 8.22206 6.0692 8.51793 6.0692C8.81379 6.0692 9.05364 5.82935 9.05364 5.53349V4.53571Z\"\r\n fill=\"#1E365E\"\r\n ></path>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M10.5024 7.00122C10.7785 7.00122 11.0024 7.22508 11.0024 7.50122V10.0012H12.0024C12.2785 10.0012 12.5024 10.2251 12.5024 10.5012C12.5024 10.7774 12.2785 11.0012 12.0024 11.0012H11.0024V13.0012H12.0024C12.2785 13.0012 12.5024 13.2251 12.5024 13.5012C12.5024 13.7774 12.2785 14.0012 12.0024 14.0012H11.0024V16.0012H16.0024V15.0012C16.0024 14.7251 16.2262 14.5012 16.5024 14.5012C16.7785 14.5012 17.0024 14.7251 17.0024 15.0012V16.0012H19.5024C19.7785 16.0012 20.0024 16.2251 20.0024 16.5012C20.0024 16.7774 19.7785 17.0012 19.5024 17.0012H17.0024V19.5012C17.0024 19.7774 16.7785 20.0012 16.5024 20.0012C16.2262 20.0012 16.0024 19.7774 16.0024 19.5012V17.0012H11.0024V19.5012C11.0024 19.7774 10.7785 20.0012 10.5024 20.0012C10.2262 20.0012 10.0024 19.7774 10.0024 19.5012V17.0012H8.00238V19.5012C8.00238 19.7774 7.77852 20.0012 7.50238 20.0012C7.22624 20.0012 7.00238 19.7774 7.00238 19.5012V17.0012H4.50238C4.22624 17.0012 4.00238 16.7774 4.00238 16.5012C4.00238 16.2251 4.22624 16.0012 4.50238 16.0012H7.00238V14.0012H4.50238C4.22624 14.0012 4.00238 13.7774 4.00238 13.5012C4.00238 13.2251 4.22624 13.0012 4.50238 13.0012H7.00238V11.0012H4.50238C4.22624 11.0012 4.00238 10.7774 4.00238 10.5012C4.00238 10.2251 4.22624 10.0012 4.50238 10.0012H7.00238V7.50122C7.00238 7.22508 7.22624 7.00122 7.50238 7.00122C7.77852 7.00122 8.00238 7.22508 8.00238 7.50122V10.0012H10.0024V7.50122C10.0024 7.22508 10.2262 7.00122 10.5024 7.00122ZM8.00238 11.0012V13.0012H10.0024V11.0012H8.00238ZM8.00238 14.0012V16.0012H10.0024V14.0012H8.00238ZM18.0024 13.0012C17.7262 13.0012 17.5024 13.2251 17.5024 13.5012C17.5024 13.7774 17.7262 14.0012 18.0024 14.0012H19.5024C19.7785 14.0012 20.0024 13.7774 20.0024 13.5012C20.0024 13.2251 19.7785 13.0012 19.5024 13.0012H18.0024ZM18.0024 10.0012C17.7262 10.0012 17.5024 10.2251 17.5024 10.5012C17.5024 10.7774 17.7262 11.0012 18.0024 11.0012H19.5024C19.7785 11.0012 20.0024 10.7774 20.0024 10.5012C20.0024 10.2251 19.7785 10.0012 19.5024 10.0012H18.0024ZM16.5024 7.00122C16.7785 7.00122 17.0024 7.22508 17.0024 7.50122V9.00122C17.0024 9.27736 16.7785 9.50122 16.5024 9.50122C16.2262 9.50122 16.0024 9.27736 16.0024 9.00122V7.50122C16.0024 7.22508 16.2262 7.00122 16.5024 7.00122Z\"\r\n fill=\"#1E365E\"\r\n fillOpacity=\"0.5\"\r\n ></path>\r\n <rect\r\n x=\"13.5381\"\r\n y=\"10.5369\"\r\n width=\"3\"\r\n height=\"3\"\r\n fill=\"#1E365E\"\r\n fillOpacity=\"0.5\"\r\n stroke=\"#1E365E\"\r\n ></rect>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default CalendarIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\ninterface IIconProps {\r\n disabled?: boolean;\r\n}\r\nconst CheckedCheckboxIcon: FC<IIconProps> = ({ disabled }) => {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 24 24\"\r\n style={{ backgroundColor: \"white\", height: 14, width: 14 }}\r\n >\r\n <path\r\n fill={disabled ? \"grey\" : \"#1E365E\"}\r\n d=\"M11 17l-5-5.299 1.399-1.43 3.574 3.736 6.572-7.007 1.455 1.403-8 8.597zm11-15v20h-20v-20h20zm2-2h-24v24h24v-24z\"\r\n />\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default CheckedCheckboxIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction CheckboxIcon() {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ backgroundColor: \"white\", height: 14, width: 14 }}\r\n viewBox=\"0 0 24 24\"\r\n >\r\n <path d=\"M22 2v20h-20v-20h20zm2-2h-24v24h24v-24z\" />\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default CheckboxIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nconst CommentIcon = () => {\r\n return (\r\n <SvgIcon\r\n style={{ width: 20, paddingRight: 2 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"96\"\r\n height=\"96\"\r\n viewBox=\"0 0 96 96\"\r\n >\r\n <path\r\n fill=\"#9DA7B3\"\r\n d=\"M52,72 L20,88 L20,72 L4,72 L4,12 L92,12 L92,72 L52,72 Z \"\r\n ></path>\r\n <path\r\n fill=\"#ffffff\"\r\n d=\"M49,64 L84,64 L84,20 L12,20 L12,64 L28,64 L28,75 L49,64 Z\"\r\n ></path>\r\n <path\r\n fill=\"#F69139\"\r\n d=\"M20,32 L76,32 L76,36 L20,36 L20,32 Z M20,40 L76,40 L76,44 L20,44 L20,40 Z M20,48 L56,48 L56,52 L20,52 L20,48 Z\"\r\n ></path>\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default CommentIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\nconst DefaultDocIcon: FC<{}> = () => (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ height: 16 }}\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 96 96\"\r\n >\r\n <path\r\n fill=\"#979593\"\r\n fillRule=\"evenodd\"\r\n d=\"M8,4.00277853 C8,1.79210499 9.79405245,0 12.0098932,0 L56,0 L80,24 L80,92.0005854 C80,94.2094011 78.2022516,96 76.0005854,96 L11.9994146,96 C9.79059889,96 8,94.2101231 8,91.9972215 L8,4.00277853 Z M16,8 L16,88 L72,88 L72,32 L48,32 L48,8 L16,8 Z M24,24 L40,24 L40,32 L24,32 L24,24 Z M24,40 L64,40 L64,48 L24,48 L24,40 Z M24,56 L64,56 L64,64 L24,64 L24,56 Z M24,72 L56,72 L56,80 L24,80 L24,72 Z\"\r\n />\r\n </LCTSvgIcon>\r\n);\r\nexport default DefaultDocIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction DocIcon() {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-doc-24\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path\r\n fill=\"#FFF\"\r\n d=\"M10 39.267L2 38.11V13.89l8-1.156V2h26l10 10v34H10v-6.733z\"\r\n ></path>\r\n <path\r\n fill=\"#CCC\"\r\n d=\"M26 14h6v2h-6v-2zm-8-6h14v2H18V8zm8 12h16v2H26v-2zm0 18h16v2H26v-2zm0-12h16v2H26v-2zm0 6h16v2H26v-2z\"\r\n ></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M10 39.267l2 .289V44h32V12.828L35.172 4H12v8.444l-2 .29V2h26l10 10v34H10v-6.733zM34 14h10v2H32V4h2v10z\"\r\n ></path>\r\n <path\r\n fill=\"#28579B\"\r\n d=\"M22 11v30L2 38.111V13.89L22 11zm-3 9h-2.405l-1.717 8.917L13.046 20h-2.634l-2.175 8.807-1.603-8.697H4L6.748 32h2.748l2.061-8.477L13.504 32h2.633L19 20z\"\r\n ></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default DocIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.41 19.3909 26.3941 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6059 19.8095 25.5228 19.821 25.4618 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.65742 19.8333C2.26724 19.8333 1.88986 19.6827 1.60912 19.4097C1.32782 19.1362 1.16668 18.7617 1.16668 18.3676L1.16668 2.63231C1.16668 2.61869 1.1663 2.59926 1.16583 2.57553C1.16401 2.48257 1.16089 2.32369 1.17434 2.19021C1.19197 2.01517 1.24697 1.72524 1.48042 1.49823C1.7009 1.28385 1.98665 1.21986 2.16028 1.19412C2.34606 1.16658 2.53358 1.16661 2.6491 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3976 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.3661 2.33329L13.6538 10.3854C13.8661 10.5516 14.1647 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33334 3.00649L2.33334 18.3676C2.33334 18.4416 2.3634 18.5159 2.42245 18.5733C2.48205 18.6313 2.56628 18.6666 2.65742 18.6666L25.3357 18.6666C25.3383 18.6665 25.3433 18.6662 25.3503 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33334 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.1011 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailReceivedIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.4099 19.3909 26.394 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6058 19.8095 25.5227 19.821 25.4617 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.6574 19.8333C2.26722 19.8333 1.88985 19.6827 1.60911 19.4097C1.3278 19.1362 1.16666 18.7617 1.16666 18.3676L1.16666 2.63231C1.16666 2.61869 1.16628 2.59926 1.16582 2.57553C1.16399 2.48257 1.16088 2.32369 1.17432 2.19021C1.19196 2.01517 1.24696 1.72524 1.48041 1.49823C1.70088 1.28385 1.98664 1.21986 2.16026 1.19412C2.34604 1.16658 2.53356 1.16661 2.64908 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3975 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.36609 2.33329L13.6537 10.3854C13.8661 10.5516 14.1646 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33333 3.00649L2.33333 18.3676C2.33333 18.4416 2.36339 18.5159 2.42243 18.5733C2.48204 18.6313 2.56627 18.6666 2.6574 18.6666L25.3356 18.6666C25.3383 18.6665 25.3433 18.6662 25.3502 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33333 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.101 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n <circle cx=\"21.5833\" cy=\"18.0833\" r=\"6.41667\" fill=\"#107C41\" />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M25.5528 17.554C25.7817 17.7807 25.7834 18.15 25.5567 18.3789L21.9867 21.9828C21.8768 22.0937 21.7271 22.156 21.571 22.1556C21.4149 22.1553 21.2654 22.0924 21.156 21.981L17.6171 18.3771C17.3914 18.1472 17.3947 17.7779 17.6246 17.5522C17.8545 17.3264 18.2238 17.3298 18.4495 17.5597L20.9889 20.1457L20.9889 14.5632C20.9889 14.241 21.2501 13.9799 21.5723 13.9799C21.8944 13.9799 22.1556 14.241 22.1556 14.5632L22.1556 20.1546L24.7279 17.5579C24.9546 17.329 25.3239 17.3272 25.5528 17.554Z\"\r\n fill=\"white\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailReceivedIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction EmailSentIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 17 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M26.25 2.63235L26.25 13.5906L26.25 18.3676C26.25 18.6829 26.0545 18.9163 25.9989 18.9764C25.9892 18.9868 25.9794 18.9968 25.9693 19.0068C25.7238 19.25 25.3426 19.25 25.3426 19.25L20.4299 19.25L2.65741 19.25C2.41675 19.25 2.18595 19.157 2.01577 18.9916C1.8456 18.8261 1.75 18.6017 1.75 18.3676L1.75 2.63235C1.75 2.39834 1.71691 2.08196 1.88708 1.91648C2.05725 1.75101 2.41675 1.75 2.65741 1.75L25.3426 1.75C25.849 1.75 25.9842 1.91648 25.9842 1.91648C26.1544 2.08196 26.25 2.39834 26.25 2.63235Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M26.7315 2.05593C26.7962 2.2407 26.8333 2.44341 26.8333 2.63231L26.8333 18.3676C26.8333 18.9111 26.5084 19.2848 26.4267 19.3729C26.4099 19.3909 26.394 19.4071 26.3798 19.4212C26.1527 19.6462 25.882 19.7429 25.7007 19.7866C25.6058 19.8095 25.5227 19.821 25.4617 19.8268C25.4309 19.8298 25.4049 19.8314 25.3848 19.8323L25.3591 19.8331L25.3496 19.8333L25.3458 19.8333L25.3441 19.8333C25.3441 19.8333 25.3848 19.8323 25.3426 19.8333L2.6574 19.8333C2.26722 19.8333 1.88985 19.6827 1.60911 19.4097C1.3278 19.1362 1.16666 18.7617 1.16666 18.3676L1.16666 2.63231C1.16666 2.61869 1.16628 2.59926 1.16582 2.57553C1.16399 2.48257 1.16088 2.32369 1.17432 2.19021C1.19196 2.01517 1.24696 1.72524 1.48041 1.49823C1.70088 1.28385 1.98664 1.21986 2.16026 1.19412C2.34604 1.16658 2.53356 1.16661 2.64908 1.16663L25.3426 1.16663C25.6594 1.16663 25.9005 1.21877 26.0831 1.29704C26.1743 1.33612 26.2483 1.38064 26.3075 1.42554C26.337 1.44786 26.3623 1.46989 26.3838 1.49081C26.3909 1.49769 26.3975 1.50443 26.4038 1.51099C26.5678 1.6757 26.67 1.88025 26.7315 2.05593ZM24.5204 2.33329L3.36609 2.33329L13.6537 10.3854C13.8661 10.5516 14.1646 10.5506 14.3759 10.383L24.5204 2.33329ZM2.33333 3.00649L2.33333 18.3676C2.33333 18.4416 2.36339 18.5159 2.42243 18.5733C2.48204 18.6313 2.56627 18.6666 2.6574 18.6666L25.3356 18.6666C25.3383 18.6665 25.3433 18.6662 25.3502 18.6655C25.3684 18.6638 25.3959 18.66 25.4271 18.6525C25.4977 18.6355 25.5404 18.6106 25.5588 18.5923M2.33333 3.00649L12.9347 11.3041C13.5717 11.8027 14.4674 11.7997 15.101 11.2969L25.6667 2.91309L25.6667 18.3676C25.6667 18.4042 25.655 18.4471 25.63 18.4944C25.6049 18.5417 25.5764 18.574 25.571 18.5798C25.5685 18.5826 25.5647 18.5865 25.5588 18.5923\"\r\n fill=\"#979593\"\r\n />\r\n <circle cx=\"21.5833\" cy=\"18.0833\" r=\"6.41667\" fill=\"#185ABD\" />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M21.0741 14.1027C21.3008 13.8739 21.6702 13.8721 21.8991 14.0988L25.503 17.6689C25.6139 17.7787 25.6761 17.9285 25.6758 18.0846C25.6754 18.2407 25.6125 18.3901 25.5012 18.4995L21.8972 22.0385C21.6674 22.2642 21.298 22.2608 21.0723 22.031C20.8466 21.8011 20.8499 21.4318 21.0798 21.206L23.6658 18.6666H18.0833C17.7612 18.6666 17.5 18.4055 17.5 18.0833C17.5 17.7611 17.7612 17.5 18.0833 17.5H23.6747L21.078 14.9277C20.8491 14.701 20.8474 14.3316 21.0741 14.1027Z\"\r\n fill=\"white\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default EmailSentIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction ExcelIcon() {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-excel\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path fill=\"#FFF\" d=\"M10 2h28l8 8v36H10z\"></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M34 3.5H11.5v41h33V14H34V3.5zm1.5 0v9h9v-1.879L37.379 3.5H35.5zM10 2h28l8 8v36H10V2z\"\r\n ></path>\r\n <path\r\n fill=\"#86BFA0\"\r\n d=\"M26 34h6v6h-6v-6zm8 0h8v6h-8v-6zm-8-8h6v6h-6v-6zm8 0h8v6h-8v-6zm-8-8h6v6h-6v-6zm8 0h8v6h-8v-6z\"\r\n ></path>\r\n <path fill=\"#CCC\" d=\"M26 8h6v8h-6z\"></path>\r\n <path fill=\"#FFF\" d=\"M3 19h17v14H3z\"></path>\r\n <path\r\n fill=\"#1C7245\"\r\n d=\"M22 11v30L2 38.111V13.89L22 11zm-5.99 9.11h-2.53l-1.98 4.254h-.11l-1.65-4.146H6.88l2.97 5.891L6.66 32H9.3l2.09-4.364L13.37 32h2.75l-3.19-6 3.08-5.89z\"\r\n ></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default ExcelIcon;\r\n","import { FC } from \"react\";\r\nimport { LCTSvgIcon } from \"../components\";\r\n\r\ninterface IProps {}\r\n\r\nconst FolderIcon: FC<IProps> = () => (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"16\"\r\n height=\"16\"\r\n style={{\r\n width: 16,\r\n height: 16,\r\n }}\r\n viewBox=\"0 0 1024 1024\"\r\n version=\"1.1\"\r\n >\r\n <path\r\n d=\"M853.333333 256H469.333333l-85.333333-85.333333H170.666667c-46.933333 0-85.333333 38.4-85.333334 85.333333v170.666667h853.333334v-85.333334c0-46.933333-38.4-85.333333-85.333334-85.333333z\"\r\n fill=\"#FFA000\"\r\n />\r\n <path\r\n d=\"M853.333333 256H170.666667c-46.933333 0-85.333333 38.4-85.333334 85.333333v426.666667c0 46.933333 38.4 85.333333 85.333334 85.333333h682.666666c46.933333 0 85.333333-38.4 85.333334-85.333333V341.333333c0-46.933333-38.4-85.333333-85.333334-85.333333z\"\r\n fill=\"#FFCA28\"\r\n />\r\n </LCTSvgIcon>\r\n);\r\nexport default FolderIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction ImageIcon() {\r\n return (\r\n <SvgIcon\r\n style={{ height: 18 }}\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 28 28\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M18.1131 3H7.7619C7.55984 3 7.36604 3.08585 7.22316 3.23865C7.08027 3.39146 7 3.59871 7 3.81481V24.1852C7 24.4013 7.08027 24.6085 7.22316 24.7613C7.36604 24.9142 7.55984 25 7.7619 25H22.2381C22.4402 25 22.634 24.9142 22.7768 24.7613C22.9197 24.6085 23 24.4013 23 24.1852V8.22622C23 8.01014 22.9197 7.80292 22.7768 7.65015L18.6518 3.23874C18.509 3.08592 18.3152 3.00005 18.1131 3Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M24 8.22622V24.1852C24 24.6456 23.8296 25.0996 23.5073 25.4443C23.1828 25.7913 22.7279 26 22.2381 26H7.7619C7.27213 26 6.81717 25.7913 6.49273 25.4443C6.17042 25.0996 6 24.6456 6 24.1852V3.81481C6 3.35435 6.17042 2.90036 6.49273 2.55566C6.81717 2.20869 7.27213 2 7.7619 2H18.1131V3H7.7619C7.55983 3 7.36604 3.08585 7.22316 3.23865C7.08027 3.39146 7 3.59871 7 3.81481V24.1852C7 24.4013 7.08027 24.6085 7.22316 24.7613C7.36604 24.9142 7.55983 25 7.7619 25H22.2381C22.4402 25 22.634 24.9142 22.7768 24.7613C22.9197 24.6085 23 24.4013 23 24.1852V8.22622C23 8.01014 22.9197 7.80292 22.7768 7.65015L18.6518 3.23874C18.509 3.08592 18.3152 3.00005 18.1131 3V2C18.6028 2.00011 19.0579 2.20883 19.3822 2.55575M19.3822 2.55575L23.5071 6.96704C23.507 6.96701 23.5071 6.96708 23.5071 6.96704C23.8294 7.31166 23.9999 7.76585 24 8.22622\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M17.5 2.5C17.7761 2.5 18 2.72386 18 3V7.61111C18 7.72218 18.0422 7.82393 18.1099 7.89514C18.1768 7.9655 18.2619 8 18.3451 8V8.5V9C17.9799 9 17.6352 8.8472 17.3851 8.58416C17.1359 8.32198 17 7.97154 17 7.61111V3C17 2.72386 17.2239 2.5 17.5 2.5ZM18.3451 8.5V9H23C23.2761 9 23.5 8.77614 23.5 8.5C23.5 8.22386 23.2761 8 23 8H18.3451V8.5Z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M3.28571 22H12.7143C13.0553 22 13.3823 21.8645 13.6234 21.6234C13.8645 21.3823 14 21.0553 14 20.7143V11.2857C14 10.9447 13.8645 10.6177 13.6234 10.3766C13.3823 10.1355 13.0553 10 12.7143 10H3.28571C2.94472 10 2.6177 10.1355 2.37658 10.3766C2.13546 10.6177 2 10.9447 2 11.2857V20.7143C2 21.0553 2.13546 21.3823 2.37658 21.6234C2.6177 21.8645 2.94472 22 3.28571 22Z\"\r\n fill=\"white\"\r\n />\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M12.7143 23H3.28571C2.6795 23 2.09812 22.7592 1.66947 22.3305C1.24082 21.9019 1 21.3205 1 20.7143V11.2857C1 10.6795 1.24082 10.0981 1.66947 9.66947C2.09812 9.24082 2.67951 9 3.28571 9H12.7143C13.3205 9 13.9019 9.24082 14.3305 9.66947C14.7592 10.0981 15 10.6795 15 11.2857V20.7143C15 21.3205 14.7592 21.9019 14.3305 22.3305C13.9019 22.7592 13.3205 23 12.7143 23ZM12.7143 22H3.28571C2.94472 22 2.6177 21.8645 2.37658 21.6234C2.13546 21.3823 2 21.0553 2 20.7143V11.2857C2 10.9447 2.13546 10.6177 2.37658 10.3766C2.6177 10.1355 2.94472 10 3.28571 10H12.7143C13.0553 10 13.3823 10.1355 13.6234 10.3766C13.8645 10.6177 14 10.9447 14 11.2857V20.7143C14 21.0553 13.8645 21.3823 13.6234 21.6234C13.3823 21.8645 13.0553 22 12.7143 22Z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M8.86848 16.228L8.02469 17.4279L6.67458 15.619C6.64679 15.5818 6.61176 15.5518 6.57203 15.5313C6.53231 15.5107 6.48888 15.5 6.44489 15.5C6.40091 15.5 6.35748 15.5107 6.31776 15.5313C6.27803 15.5518 6.243 15.5818 6.21521 15.619L4.06273 18.5026C3.91252 18.7045 4.04902 19 4.29256 19H10.7074C10.9472 19 11.0848 18.7128 10.9422 18.5099L9.33806 16.228C9.31044 16.1887 9.2749 16.1568 9.23419 16.1349C9.19347 16.113 9.14867 16.1016 9.10327 16.1016C9.05786 16.1016 9.01306 16.113 8.97234 16.1349C8.93163 16.1568 8.89609 16.1887 8.86848 16.228Z\"\r\n fill=\"#A6CCC3\"\r\n />\r\n <path\r\n d=\"M10.5 15C11.3284 15 12 14.3284 12 13.5C12 12.6716 11.3284 12 10.5 12C9.67157 12 9 12.6716 9 13.5C9 14.3284 9.67157 15 10.5 15Z\"\r\n fill=\"#F69139\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default ImageIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction InfoIcon() {\r\n return (\r\n <SvgIcon\r\n version=\"1.1\"\r\n id=\"Layer_1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 24 24\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <g>\r\n <path\r\n d=\"M12 2c5.514 0 10 4.486 10 10s-4.486 10-10 10-10-4.486-10-10 4.486-10 10-10zm0-2c-6.627 0-12 5.373-12\r\n 12s5.373 12 12 12 12-5.373 12-12-5.373-12-12-12zm-2.033 16.01c.564-1.789 1.632-3.932\r\n 1.821-4.474.273-.787-.211-1.136-1.74.209l-.34-.64c1.744-1.897 5.335-2.326 4.113.613-.763\r\n 1.835-1.309 3.074-1.621 4.03-.455 1.393.694.828 1.819-.211.153.25.203.331.356.619-2.498\r\n 2.378-5.271 2.588-4.408-.146zm4.742-8.169c-.532.453-1.32.443-1.761-.022-.441-.465-.367-1.208.164-1.661.532-.453\r\n 1.32-.442 1.761.022.439.466.367 1.209-.164 1.661z\"\r\n />\r\n </g>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default InfoIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\nconst LaunchIcon: FC = () => {\r\n return (\r\n <SvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n height=\"14px\"\r\n width=\"14px\"\r\n viewBox=\"0 0 90 90\"\r\n style={{ height: \"14px !important\", width: \"14px !important\" }}\r\n >\r\n <polygon points=\"78 44.996 85 44.996 85 59.996 78 59.996 78 77.996 22 77.996 22 21.996 40 21.996 40 15 15 15 15 85 85 85 85 15 55 15 55 21.996 73.003 21.996 43 52 48 57 78 26.995\" />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default LaunchIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction LEAPIcon() {\r\n return (\r\n <SvgIcon\r\n viewBox=\"0 0 16 16\"\r\n aria-hidden=\"true\"\r\n height=\"16\"\r\n width=\"16\"\r\n style={{ width: 16, height: 16 }}\r\n >\r\n <path fill=\"#1E365E\" d=\"M0 0h16v16H0z\"></path>\r\n <path\r\n fillRule=\"evenodd\"\r\n clipRule=\"evenodd\"\r\n d=\"M11.118 7.71l-4.43-.5 1.306-3.147 4.444 2.098-.785 5.245-.535-3.696zM6.421 8l.262-.781 2.098.52-.786 1.824-5.245 2.343L6.421 8z\"\r\n fill=\"#F69139\"\r\n ></path>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default LEAPIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nconst PDFIcon = () => {\r\n return (\r\n <LCTSvgIcon style={{ height: 18 }} viewBox=\"0 0 48 48\" id=\"doctype-pdf-24\">\r\n <g fill=\"none\" fillRule=\"evenodd\">\r\n <path fill=\"#FFF\" d=\"M46 46H10V2h26l10 10z\"></path>\r\n <path\r\n fill=\"#ED2D26\"\r\n d=\"M16.713 38.286c.467-1.217.407-.952 1.278-1.617.651-.496.993-.796 1.73-1.089-.65.976-1.678 2.188-3.008 2.706zm16.282-5.955c1.391-.095 6.776.966 5.125 2.65-1.315 1.344-4.667-2.269-5.125-2.65zm-6.43-5.02c.554.465 2.268 2.897 2.642 3.575l-4.87 1.015 2.229-4.59zm-.064-5.217c-.377-.879-.463-1.297-.453-2.436.023-2.418.546-1.79.821-1.922.513 1.033-.178 3.203-.368 4.358zm4.185 10.34c.985.946 6.33 6.872 8.875 3.46 1.524-2.042-.76-3.808-1.938-4.374-1.942-.93-4.26-.86-6.494-.89-.55-.952-1.351-1.796-2.077-2.79-.624-.855-1.731-2.042-1.496-3.383.343-1.95 2.487-7.076.184-8.14-3.521-1.625-3.625 3.38-2.97 6.235.585 2.552 1.534 2.706-1.348 7.57-2.689 4.542-1.716 2.17-5.68 4.677-4.126 2.611-3.033 5.934-.409 5.058 2.286-.761 3.773-3.512 5.193-5.186 1.156-1.364 6.167-2.2 8.16-2.237z\"\r\n ></path>\r\n <path\r\n fill=\"#9DA7B3\"\r\n fillRule=\"nonzero\"\r\n d=\"M46 46H10V2h26l10 10v34zm-2-33.172L35.172 4H12v40h32V12.828zM34 14h10v2H32V4h2v10z\"\r\n ></path>\r\n <path fill=\"#BE241E\" d=\"M24 8v8H2V8z\"></path>\r\n <path fill=\"#ED2D26\" d=\"M22 10v4H4v-4z\"></path>\r\n </g>\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default PDFIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IBrowseIconProps {\r\n disabled?: boolean;\r\n}\r\nconst PreviewIcon: FC<IBrowseIconProps> = ({ disabled }) => {\r\n return (\r\n <SvgIcon\r\n width=\"22\"\r\n height=\"22\"\r\n viewBox=\"-2 0 22 22\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n >\r\n <path\r\n d=\"M16 9.78496C16 10.0611 16.2239 10.285 16.5 10.285C16.7761 10.285 17 10.0611 17 9.78496H16ZM1 10C1 10.2761 1.22386 10.5 1.5 10.5C1.77614 10.5 2 10.2761 2 10H1ZM17 9.78496C17 8.41679 16.1208 6.96494 14.7309 5.87741C13.3252 4.77756 11.3417 4 9 4V5C11.119 5 12.8855 5.70321 14.1146 6.66498C15.3596 7.63907 16 8.82971 16 9.78496H17ZM9 4C6.65831 4 4.67232 4.77769 3.26423 5.90819C1.86692 7.03002 1 8.53606 1 10H2C2 8.92548 2.65275 7.68152 3.89028 6.68797C5.11701 5.70308 6.88102 5 9 5V4ZM11.5 11C11.5 12.3805 10.3805 13.5 9 13.5V14.5C10.9327 14.5 12.5 12.9327 12.5 11H11.5ZM9 13.5C7.61954 13.5 6.5 12.3805 6.5 11H5.5C5.5 12.9327 7.06726 14.5 9 14.5V13.5ZM6.5 11C6.5 9.61954 7.61954 8.5 9 8.5V7.5C7.06726 7.5 5.5 9.06726 5.5 11H6.5ZM9 8.5C10.3805 8.5 11.5 9.61954 11.5 11H12.5C12.5 9.06726 10.9327 7.5 9 7.5V8.5Z\"\r\n fill={disabled ? \"grey\" : \"#1E365E\"}\r\n />\r\n </SvgIcon>\r\n );\r\n};\r\n\r\nexport default PreviewIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\n\r\nfunction QuestionIcon() {\r\n return (\r\n <LCTSvgIcon\r\n height=\"20\"\r\n id=\"help-circle-outline\"\r\n viewBox=\"0 0 96 96\"\r\n width=\"20\"\r\n style={{ width: 20, height: 20 }}\r\n >\r\n <path\r\n d=\"M84 48c0-19.882-16.118-36-36-36S12 28.118 12 48s16.118 36 36 36 36-16.118 36-36zM4 48C4 23.7 23.7 4 48 4s44 19.7 44 44-19.7 44-44 44S4 72.3 4 48zm43.838-23.803c-3.31 0-6.104.826-8.372 2.483-3.602 2.592-5.516 6.992-5.748 13.197h8.347c0-1.81.467-3.546 1.397-5.227.93-1.677 2.511-2.513 4.74-2.513 2.267 0 3.83.68 4.68 2.039.854 1.364 1.282 2.87 1.282 4.524 0 1.44-.636 2.76-1.406 3.955a7.848 7.848 0 0 1-1.669 1.927s-4.526 3.288-6.512 5.93c-1.152 1.53-1.254 3.827-1.358 7.115-.005.234.072.72.795.72h6.49c.647 0 .78-.54.787-.782.046-1.196.161-1.81.357-2.503.363-1.306 1.358-2.445 2.47-3.428l2.297-1.792c2.075-1.834 3.728-3.335 4.46-4.513C62.121 43.395 63 41.01 63 38.179c-.003-4.618-1.442-8.098-4.32-10.455-2.875-2.35-6.49-3.527-10.842-3.527zm-4.836 42.688c-.084 3.027 2.073 5.032 4.825 5.112 2.87.086 5.08-1.783 5.17-4.816.082-3.033-2.013-5.094-4.886-5.18-2.751-.084-5.021 1.851-5.109 4.884z\"\r\n style={{ fill: \"#545454\" }}\r\n ></path>\r\n </LCTSvgIcon>\r\n );\r\n}\r\n\r\nexport default QuestionIcon;\r\n","import { LCTSvgIcon } from \"../components\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IIconProps {\r\n disabled?: boolean;\r\n}\r\n\r\nconst UndoIcon: FC<IIconProps> = ({ disabled }) => {\r\n return (\r\n <LCTSvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width=\"100\"\r\n height=\"100\"\r\n viewBox=\"0 0 100 100\"\r\n style={\r\n !disabled ? { color: \"#ffffff\", strokeWidth: 1 } : { color: \"#d5d6d5\" }\r\n }\r\n >\r\n <path\r\n strokeWidth={3}\r\n d=\"M40,35 L60,35 C74.1962733,35 85,43.9380755 85,57.5 C85,71.0619245 74.1962733,80 60,80 L50,80 C47.2385763,80 45,77.7614237 45,75 C45,72.2385763 47.2385763,70 50,70 L60,70 C69.0479048,70 75,65.0757477 75,57.5 C75,49.9242523 69.0479048,45 60,45 L40,45 L40,60 L15,40 L40,20 L40,35 Z\"\r\n />\r\n </LCTSvgIcon>\r\n );\r\n};\r\n\r\nexport default UndoIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction UnknownDocIcon() {\r\n return (\r\n <SvgIcon\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n style={{ height: 18 }}\r\n width=\"28\"\r\n height=\"28\"\r\n viewBox=\"0 0 1024 1024\"\r\n fill=\"none\"\r\n >\r\n <path\r\n d=\"M854.6 288.7L639.4 73.4c-6-6-14.2-9.4-22.7-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.6-9.4-22.6zM790.2 326H602V137.8L790.2 326z m1.8 562H232V136h302v216c0 23.2 18.8 42 42 42h216v494z\"\r\n fill=\"#979593\"\r\n />\r\n <path\r\n d=\"M402 549c0 5.4 4.4 9.5 9.8 9.5h32.4c5.4 0 9.8-4.2 9.8-9.4 0-28.2 25.8-51.6 58-51.6s58 23.4 58 51.5c0 25.3-21 47.2-49.3 50.9-19.3 2.8-34.5 20.3-34.7 40.1v32c0 5.5 4.5 10 10 10h32c5.5 0 10-4.5 10-10v-12.2c0-6 4-11.5 9.7-13.3 44.6-14.4 75-54 74.3-98.9-0.8-55.5-49.2-100.8-108.5-101.6-61.4-0.7-111.5 45.6-111.5 103zM480 744a32 32 0 1 0 64 0 32 32 0 1 0-64 0z\"\r\n fill=\"#979593\"\r\n />\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default UnknownDocIcon;\r\n","import { SvgIcon } from \"@mui/material\";\r\n\r\nfunction WarningIcon() {\r\n return (\r\n <SvgIcon\r\n version=\"1.1\"\r\n id=\"Layer_1\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n x=\"0px\"\r\n y=\"0px\"\r\n viewBox=\"0 0 20 20\"\r\n style={{ width: 56, height: 56 }}\r\n >\r\n <g fill=\"#FFBF00\" fillRule=\"evenodd\" transform=\"translate(1 1)\">\r\n <path\r\n d=\"m9.5.5 9 16h-18z\"\r\n stroke=\"#000000\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n <path\r\n d=\"m9.5 10.5v-5\"\r\n stroke=\"#000000\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n <circle cx=\"9.5\" cy=\"13.5\" fill=\"#000000\" r=\"1\" />\r\n </g>\r\n </SvgIcon>\r\n );\r\n}\r\n\r\nexport default WarningIcon;\r\n","import { Box, BoxProps } from \"@mui/material\";\r\n\r\nconst LCTBox = (props: BoxProps) => {\r\n return <Box {...props}>{props.children}</Box>;\r\n};\r\n\r\nexport default LCTBox;\r\n","import { Component, ErrorInfo, ReactNode } from \"react\";\r\n\r\nimport { LCTAlert, LCTTypography } from \"../..\";\r\nimport { LCTBox } from \"../box\";\r\n\r\ninterface LCTErrorBoundaryProps {\r\n children: ReactNode;\r\n /**\r\n * Rendered when a child throws. Pass a function to receive the caught error\r\n * (e.g. to display its message); a plain node is rendered as-is.\r\n */\r\n fallback?: ReactNode | ((error?: Error) => ReactNode);\r\n onError?: (error: Error, info: ErrorInfo) => void;\r\n}\r\n\r\ninterface LCTErrorBoundaryState {\r\n hasError: boolean;\r\n error?: Error;\r\n}\r\n\r\n/**\r\n * Contains render-time exceptions thrown by its children so a failure (e.g. an\r\n * expired MUI X licence throwing a LicenseError) degrades to a fallback instead\r\n * of unmounting the consuming app's subtree.\r\n */\r\nclass LCTErrorBoundary extends Component<\r\n LCTErrorBoundaryProps,\r\n LCTErrorBoundaryState\r\n> {\r\n state: LCTErrorBoundaryState = { hasError: false };\r\n\r\n static getDerivedStateFromError(error: Error): LCTErrorBoundaryState {\r\n return { hasError: true, error };\r\n }\r\n\r\n componentDidCatch(error: Error, info: ErrorInfo): void {\r\n this.props.onError?.(error, info);\r\n }\r\n\r\n render(): ReactNode {\r\n if (this.state.hasError) {\r\n const { fallback } = this.props;\r\n const { error } = this.state;\r\n\r\n // First sentence (up to and including the first full stop) of the\r\n // exception; the whole message when it has no full stop. Derived without\r\n // mutating the caught error, so onError logging keeps the full message.\r\n const message = error\r\n ? error.message.slice(0, error.message.indexOf(\".\") + 1) ||\r\n error.message\r\n : undefined;\r\n\r\n if (fallback !== undefined) {\r\n return typeof fallback === \"function\"\r\n ? fallback(\r\n error &&\r\n Object.assign(new Error(message), {\r\n name: error.name,\r\n stack: error.stack,\r\n }),\r\n )\r\n : fallback;\r\n }\r\n\r\n return (\r\n <LCTBox\r\n sx={{\r\n alignItems: \"center\",\r\n display: \"flex\",\r\n height: \"100%\",\r\n justifyContent: \"center\",\r\n padding: 2,\r\n }}\r\n >\r\n <LCTAlert severity=\"error\" sx={{ width: \"-webkit-fill-available\" }}>\r\n <LCTTypography sx={{ fontSize: 14, color: \"#5f2120\" }}>\r\n Unable to display UI component. Please refresh the page or contact\r\n LEAP if the problem persists.\r\n {error && (\r\n <LCTTypography\r\n sx={{ fontSize: 12, marginTop: 0.5, opacity: 0.8 }}\r\n >\r\n {message}\r\n </LCTTypography>\r\n )}\r\n </LCTTypography>\r\n </LCTAlert>\r\n </LCTBox>\r\n );\r\n }\r\n\r\n return this.props.children;\r\n }\r\n}\r\n\r\nexport default LCTErrorBoundary;\r\n","import ExpandMoreRoundedIcon from \"@mui/icons-material/ExpandMoreRounded\";\r\nimport KeyboardArrowUpRoundedIcon from \"@mui/icons-material/KeyboardArrowUpRounded\";\r\nimport { Typography } from \"@mui/material\";\r\nimport {\r\n GridColumnHeaderParams,\r\n GridSortModel,\r\n GridValidRowModel,\r\n} from \"@mui/x-data-grid-pro\";\r\nimport { FC } from \"react\";\r\n\r\ninterface IHeaderRowProps {\r\n params: GridColumnHeaderParams<any, GridValidRowModel, any>;\r\n sortModel: GridSortModel | undefined;\r\n}\r\n\r\nconst HeaderRow: FC<IHeaderRowProps> = ({ params, sortModel }) => {\r\n return (\r\n <div\r\n style={{\r\n display: \"grid\",\r\n width: \"100%\",\r\n height: \"100%\",\r\n }}\r\n >\r\n <div\r\n style={{\r\n marginRight: \"auto\",\r\n marginLeft: \"auto\",\r\n height: 5,\r\n }}\r\n >\r\n {sortModel?.find(\r\n (f) => f.field === params.colDef.field && f.sort === \"asc\",\r\n ) && <KeyboardArrowUpRoundedIcon className=\"tableHeaderIcon\" />}\r\n {sortModel?.find(\r\n (f) => f.field === params.colDef.field && f.sort === \"desc\",\r\n ) && <ExpandMoreRoundedIcon className=\"tableHeaderIcon\" />}\r\n </div>\r\n <div style={{ display: \"block\" }}>\r\n <Typography\r\n sx={{\r\n textAlign: params.colDef.headerAlign,\r\n fontWeight: 500,\r\n }}\r\n >\r\n {params.colDef.headerName}\r\n </Typography>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default HeaderRow;\r\n","import { ErrorInfo, ReactNode, useRef, useState } from \"react\";\nimport {\n DataGridPro,\n GridCallbackDetails,\n GridColDef,\n GridColumnHeaderParams,\n GridColumnVisibilityModel,\n GridGroupingColDefOverride,\n GridGroupingColDefOverrideParams,\n GridInitialState,\n GridProSlotsComponent,\n GridRowClassNameParams,\n GridRowParams,\n GridRowSelectionModel,\n GridSlotProps,\n GridSlotsComponentsProps,\n GridSortModel,\n GridValidRowModel,\n} from \"@mui/x-data-grid-pro\";\nimport { Box, Checkbox, styled } from \"@mui/material\";\n\nimport { LCTCheckboxIcon } from \"../../images\";\nimport { LCTErrorBoundary } from \"../errorboundary\";\nimport CheckedCheckboxIcon from \"../../images/checkbox-checked-icon\";\nimport HeaderRow from \"../headerrow/HeaderRow\";\n\ninterface IDataGridProps {\n borderTop?: boolean;\n checkboxSelection?: boolean;\n columnHeaderHeight?: number;\n columns: GridColDef[];\n columnVisibilityModel?: GridColumnVisibilityModel;\n componentsProps?: GridSlotsComponentsProps | undefined;\n defaultGroupingExpansionDepth?: number;\n disableMultipleRowSelection?: boolean;\n errorFallback?: ReactNode | ((error?: Error) => ReactNode);\n getRowClassName?:\n | ((params: GridRowClassNameParams<GridValidRowModel>) => string)\n | undefined;\n getTreeDataPath?: ((row: GridValidRowModel) => readonly string[]) | undefined;\n groupingColDef?:\n | GridGroupingColDefOverride<GridValidRowModel>\n | ((\n params: GridGroupingColDefOverrideParams,\n ) => GridGroupingColDefOverride<GridValidRowModel> | null | undefined)\n | undefined;\n height?: any;\n hideFooter?: boolean;\n id: (row: any) => any;\n initialState?: GridInitialState | undefined;\n isRowSelectable?:\n | ((params: GridRowParams<GridValidRowModel>) => boolean)\n | undefined;\n keepNonExistentRowsSelected?: boolean;\n loading?: boolean;\n maxHeight: any;\n noDataText?: string;\n noRowsOverlay?: React.JSXElementConstructor<GridSlotProps[\"noRowsOverlay\"]>;\n onRowClick?: (params: GridRowParams<any>) => void;\n onGridError?: (error: Error, info: ErrorInfo) => void;\n onRowDoubleClick?: (params: GridRowParams<any>) => void;\n onRowSelectionModelChange?: (\n rowSelectionModel: GridRowSelectionModel,\n details: GridCallbackDetails,\n ) => void;\n rowHeight?: number;\n rows: any[];\n rowSelectionModel?: GridRowSelectionModel;\n showBorders?: boolean;\n slots?: Partial<GridProSlotsComponent>;\n treeData?: boolean;\n}\n\nconst headerHeight = 40;\nconst rowHeight = 46;\n\nconst LCTDataGrid = styled((props: IDataGridProps) => {\n const [sortModel, setSortModel] = useState<GridSortModel | undefined>(\n undefined,\n );\n const sortModelInitialised = useRef(false);\n\n if (!sortModelInitialised.current && !sortModel && !!props.initialState) {\n setSortModel(props.initialState.sorting?.sortModel);\n sortModelInitialised.current = true;\n }\n\n return (\n <Box\n sx={{\n backgroundColor: \"#fff\",\n height: props.height ? props.height : props.maxHeight,\n maxHeight: props.maxHeight,\n width: \"100%\",\n }}\n >\n <LCTErrorBoundary\n fallback={props.errorFallback}\n onError={props.onGridError}\n >\n <DataGridPro\n checkboxSelection={props.checkboxSelection}\n columnHeaderHeight={\n !!props.columnHeaderHeight || props.columnHeaderHeight === 0\n ? props.columnHeaderHeight\n : headerHeight\n }\n columns={props.columns.map((c) => {\n return {\n ...c,\n disableColumnMenu: !!c.disableColumnMenu ? true : false,\n disableReorder: true,\n renderHeader: (params: GridColumnHeaderParams) => {\n return <HeaderRow sortModel={sortModel} params={params} />;\n },\n hideSortIcons: true,\n };\n })}\n columnVisibilityModel={props.columnVisibilityModel}\n defaultGroupingExpansionDepth={\n props.defaultGroupingExpansionDepth\n ? props.defaultGroupingExpansionDepth\n : 0\n }\n disableColumnReorder\n disableMultipleRowSelection={props.disableMultipleRowSelection}\n getRowClassName={props.getRowClassName}\n getRowId={props.id}\n getTreeDataPath={props.getTreeDataPath}\n groupingColDef={props.groupingColDef}\n hideFooter={props.hideFooter !== undefined ? props.hideFooter : true}\n initialState={props.initialState || undefined}\n isRowSelectable={props.isRowSelectable}\n keepNonExistentRowsSelected={props.keepNonExistentRowsSelected}\n loading={props.loading}\n localeText={{\n noRowsLabel: props.noDataText\n ? props.noDataText\n : \"There are no results to display. Please update your search criteria\",\n }}\n onRowClick={props.onRowClick}\n onRowDoubleClick={props.onRowDoubleClick}\n onRowSelectionModelChange={props.onRowSelectionModelChange}\n onSortModelChange={(model) => setSortModel(model)}\n rowHeight={props.rowHeight ? props.rowHeight : rowHeight}\n rows={props.rows || []}\n rowSelectionModel={props.rowSelectionModel}\n slotProps={props.componentsProps}\n slots={{\n ...props.slots,\n moreActionsIcon: undefined,\n noRowsOverlay: props.noRowsOverlay,\n baseCheckbox: (checkboxProps) => {\n const { slotProps, ...restProps } = checkboxProps;\n return (\n <Checkbox\n {...restProps}\n checkedIcon={\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <CheckedCheckboxIcon />\n </div>\n }\n icon={\n <div style={{ alignItems: \"center\", display: \"flex\" }}>\n <LCTCheckboxIcon />\n </div>\n }\n />\n );\n },\n }}\n sortingOrder={[\"desc\", \"asc\"]}\n sortModel={sortModel}\n sx={{\n \".MuiDataGrid-columnHeaders\": props.borderTop\n ? {\n borderTop: \"1px solid rgb(224, 224, 224)\",\n }\n : {},\n \".MuiDataGrid-overlay \": { color: \"#0060bb\" },\n \"&.MuiDataGrid-root\": props.showBorders\n ? {\n border: \"1px solid rgb(224, 224, 224)\",\n }\n : { border: 0 },\n borderRadius: 0,\n \".Mui-selected\": { backgroundColor: \"#cde6f7 !important\" },\n }}\n treeData={props.treeData}\n />\n </LCTErrorBoundary>\n </Box>\n );\n})(() => ({}));\n\nexport default LCTDataGrid;\n","import { useRef, useState } from \"react\";\r\nimport { styled } from \"@mui/material\";\r\nimport {\r\n GridInitialState,\r\n GridRowParams,\r\n GridSlotsComponentsProps,\r\n GridSortModel,\r\n} from \"@mui/x-data-grid-pro\";\r\n\r\nimport { LCTDataGrid } from \"../datagrid\";\r\n\r\ninterface IAccordionTableProps {\r\n maxHeight: any;\r\n rows: any[];\r\n columns: any;\r\n initialState?: GridInitialState | undefined;\r\n onRowDoubleClick?: (params: GridRowParams<any>) => void;\r\n id: (row: any) => any;\r\n rowHeight?: number;\r\n headerHeight?: number;\r\n componentsProps?: GridSlotsComponentsProps | undefined;\r\n}\r\n\r\nconst LCTAccordionTable = styled((props: IAccordionTableProps) => {\r\n const [sortModel, setSortModel] = useState<GridSortModel | undefined>(\r\n undefined,\r\n );\r\n const sortModelInitialised = useRef(false);\r\n\r\n if (!sortModelInitialised.current && !sortModel && !!props.initialState) {\r\n setSortModel(props.initialState.sorting?.sortModel);\r\n sortModelInitialised.current = true;\r\n }\r\n\r\n const currentRowHeight = props.rowHeight ? props.rowHeight : 29;\r\n const currentHeaderHeight = props.headerHeight ? props.headerHeight : 29;\r\n\r\n return (\r\n <LCTDataGrid\r\n maxHeight={props.maxHeight}\r\n height={\r\n currentHeaderHeight + (props.rows || []).length * currentRowHeight\r\n }\r\n id={props.id}\r\n rows={props.rows || []}\r\n initialState={props.initialState || undefined}\r\n columns={props.columns.map((c: any) => {\r\n return {\r\n ...c,\r\n disableColumnMenu: true,\r\n disableReorder: true,\r\n hideSortIcons: true,\r\n };\r\n })}\r\n onRowDoubleClick={props.onRowDoubleClick}\r\n rowHeight={currentRowHeight}\r\n columnHeaderHeight={currentHeaderHeight}\r\n componentsProps={props.componentsProps}\r\n />\r\n );\r\n})(({}) => ({}));\r\n\r\nexport default LCTAccordionTable;\r\n","import { Alert, AlertProps } from \"@mui/material\";\r\n\r\nconst LCTAlert = (props: AlertProps) => {\r\n return (\r\n <Alert severity={props.severity ? props.severity : \"success\"} {...props}>\r\n {props.children}\r\n </Alert>\r\n );\r\n};\r\n\r\nexport default LCTAlert;\r\n","import { FC, MouseEventHandler, ReactNode } from \"react\";\r\nimport { Link, Tooltip } from \"@mui/material\";\r\n\r\ninterface IAppBarProps {\r\n centerComponents?: ReactNode;\r\n leftComponents?: ReactNode;\r\n onClickHelp?: MouseEventHandler<HTMLButtonElement>;\r\n rightComponents?: ReactNode;\r\n}\r\n\r\nconst LCTAppBar: FC<IAppBarProps> = ({\r\n leftComponents,\r\n centerComponents,\r\n rightComponents,\r\n onClickHelp,\r\n}) => {\r\n return (\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n backgroundColor: \"#fafafa\",\r\n borderBottom: \"1px solid #d8d8d8\",\r\n display: \"flex\",\r\n justifyContent: \"space-between\",\r\n minHeight: \"36px\",\r\n paddingLeft: \"0px\",\r\n paddingRight: \"15px\",\r\n }}\r\n >\r\n {leftComponents && <>{leftComponents}</>}\r\n {centerComponents && <>{centerComponents}</>}\r\n {rightComponents && <>{rightComponents}</>}\r\n {onClickHelp && (\r\n <Tooltip placement=\"bottom-end\" title=\"Help for this Window\">\r\n <Link\r\n component=\"button\"\r\n onClick={onClickHelp}\r\n sx={{\r\n lineHeight: \"2.5\",\r\n \":hover\": {\r\n cursor: \"pointer\",\r\n color: \"#0060AC\",\r\n },\r\n }}\r\n underline=\"hover\"\r\n variant=\"body1\"\r\n >\r\n Help\r\n </Link>\r\n </Tooltip>\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTAppBar;\r\n","import {\r\n Autocomplete,\r\n AutocompleteRenderInputParams,\r\n SxProps,\r\n Theme,\r\n} from \"@mui/material\";\r\n\r\ninterface IAutocompleteProps {\r\n renderInput: (params: AutocompleteRenderInputParams) => React.ReactNode;\r\n sx?: SxProps<Theme>;\r\n getOptionLabel?: ((option: string) => string) | undefined;\r\n onChange?: (event: React.SyntheticEvent, value: string) => void;\r\n renderOption?: (\r\n props: React.HTMLAttributes<HTMLLIElement>,\r\n value: string,\r\n ) => React.ReactNode;\r\n options: string[];\r\n value: string | undefined;\r\n}\r\nconst LCTAutocomplete = (props: IAutocompleteProps) => {\r\n return (\r\n <Autocomplete\r\n {...props}\r\n autoComplete\r\n autoSelect\r\n forcePopupIcon\r\n fullWidth\r\n disableClearable\r\n slotProps={{\r\n listbox: {\r\n style: {\r\n padding: 0,\r\n },\r\n },\r\n }}\r\n size=\"small\"\r\n renderInput={props.renderInput}\r\n sx={props.sx}\r\n getOptionLabel={props.getOptionLabel}\r\n renderOption={props.renderOption}\r\n options={props.options}\r\n value={props.value}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTAutocomplete;\r\n","import { AvatarGroup, AvatarGroupProps } from \"@mui/material\";\r\n\r\nconst LCTAvatarGroup = (props: AvatarGroupProps) => {\r\n return <AvatarGroup {...props}>{props.children}</AvatarGroup>;\r\n};\r\n\r\nexport default LCTAvatarGroup;\r\n","import { Button, ButtonProps } from \"@mui/material\";\r\n\r\nconst LCTButton = (props: ButtonProps) => {\r\n return (\r\n <Button\r\n color={props.color || \"primary\"}\r\n disabled={props.disabled}\r\n disableRipple={true}\r\n onClick={props.onClick}\r\n size={props.size || \"small\"}\r\n variant={props.variant || \"contained\"}\r\n sx={props.sx}\r\n {...props}\r\n >\r\n {props.children}\r\n </Button>\r\n );\r\n};\r\n\r\nexport default LCTButton;\r\n","import { ButtonGroup, ButtonGroupProps } from \"@mui/material\";\r\n\r\nconst LCTButtonGroup = (props: ButtonGroupProps) => {\r\n return <ButtonGroup {...props}>{props.children}</ButtonGroup>;\r\n};\r\n\r\nexport default LCTButtonGroup;\r\n","import { Checkbox, FormControlLabel } from \"@mui/material\";\r\nimport { FC } from \"react\";\r\nimport CheckedCheckboxIcon from \"../../images/checkbox-checked-icon\";\r\nimport CheckboxIcon from \"../../images/checkbox-icon\";\r\n\r\ninterface ICheckBoxProps {\r\n label?: string;\r\n value?: boolean;\r\n disabled?: boolean;\r\n onChange?: (value: boolean) => void;\r\n}\r\nconst css = `.checkbox {align-self: center; display: contents;} .checkbox svg {margin-left: 5px;}`;\r\n\r\nconst LCTCheckBox: FC<ICheckBoxProps> = ({\r\n label,\r\n value,\r\n disabled,\r\n onChange,\r\n}) => {\r\n return (\r\n <>\r\n <style>{css}</style>\r\n <FormControlLabel\r\n style={\r\n label\r\n ? { marginLeft: 0, marginRight: 3 }\r\n : { marginLeft: 3, marginRight: 3 }\r\n }\r\n control={\r\n <Checkbox\r\n checked={value || false}\r\n disabled={disabled}\r\n onChange={(_e, value) => {\r\n if (onChange) {\r\n onChange(value);\r\n }\r\n }}\r\n checkedIcon={\r\n <div className=\"checkbox\">\r\n <CheckedCheckboxIcon disabled={disabled} />\r\n </div>\r\n }\r\n icon={\r\n <div className=\"checkbox\">\r\n <CheckboxIcon />\r\n </div>\r\n }\r\n style={{ marginRight: 5 }}\r\n disableRipple\r\n disableTouchRipple\r\n disableFocusRipple\r\n />\r\n }\r\n label={label}\r\n />\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTCheckBox;\r\n","import { Chip, ChipProps } from \"@mui/material\";\r\n\r\nconst LCTChip = (props: ChipProps) => {\r\n return (\r\n <Chip\r\n sx={\r\n props.sx\r\n ? props.sx\r\n : {\r\n marginLeft: \"auto\",\r\n marginRight: \"auto\",\r\n fontSize: 11,\r\n width: 160,\r\n height: 24,\r\n backgroundColor: \"#e4e4e4\",\r\n }\r\n }\r\n {...props}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTChip;\r\n","import React from \"react\";\r\nimport { InputAdornment, OutlinedInput, Typography } from \"@mui/material\";\r\nimport { NumericFormat } from \"react-number-format\";\r\n\r\ninterface ICurrencyInputProps {\r\n allowNull?: boolean;\r\n autoFocus?: boolean;\r\n decimalScale?: number;\r\n disabled?: boolean;\r\n id?: string;\r\n onUpdate?: (value: any) => void;\r\n placeholder?: string;\r\n prefix?: string;\r\n size?: \"medium\" | \"small\";\r\n value?: number | null;\r\n maxLength?: number;\r\n width?: number;\r\n}\r\n\r\nconst LCTCurrencyInput: React.FC<ICurrencyInputProps> = ({\r\n decimalScale,\r\n disabled,\r\n id,\r\n onUpdate,\r\n placeholder,\r\n prefix,\r\n size,\r\n value,\r\n maxLength,\r\n width,\r\n}) => {\r\n return (\r\n <NumericFormat\r\n customInput={OutlinedInput}\r\n decimalScale={decimalScale ? decimalScale : 2}\r\n disabled={disabled}\r\n fixedDecimalScale\r\n id={id}\r\n slotProps={{ input: { maxLength: maxLength } }}\r\n onFocus={(e) => e.target.select()}\r\n onValueChange={(values) => {\r\n if (onUpdate) {\r\n onUpdate(values.floatValue);\r\n }\r\n }}\r\n placeholder={placeholder}\r\n size={size ? size : \"small\"}\r\n startAdornment={\r\n prefix && (\r\n <InputAdornment position=\"start\">\r\n <Typography>{prefix}</Typography>\r\n </InputAdornment>\r\n )\r\n }\r\n sx={{\r\n paddingLeft: \"8px\",\r\n width: width ? width : 130,\r\n \"& .MuiInputBase-input\": {\r\n borderLeft: \"1px solid rgba(0, 0, 0, 0.23)\",\r\n color: \"#000\",\r\n height: \"16px\",\r\n textAlign: \"end\",\r\n },\r\n \"&.MuiOutlinedInput-root\": {\r\n backgroundColor: disabled ? \"#f3f3f3\" : \"field\",\r\n },\r\n }}\r\n thousandSeparator\r\n value={value || \"\"}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTCurrencyInput;\r\n","function _extends() {\n return _extends = Object.assign ? Object.assign.bind() : function (n) {\n for (var e = 1; e < arguments.length; e++) {\n var t = arguments[e];\n for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);\n }\n return n;\n }, _extends.apply(null, arguments);\n}\nexport { _extends as default };","import _extends from \"@babel/runtime/helpers/extends\";\nconst formatTokenMap = {\n // Year\n y: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n yy: 'year',\n yyy: {\n sectionType: 'year',\n contentType: 'digit',\n maxLength: 4\n },\n yyyy: 'year',\n // Month\n M: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n MM: 'month',\n MMMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n MMM: {\n sectionType: 'month',\n contentType: 'letter'\n },\n L: {\n sectionType: 'month',\n contentType: 'digit',\n maxLength: 2\n },\n LL: 'month',\n LLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n LLLL: {\n sectionType: 'month',\n contentType: 'letter'\n },\n // Day of the month\n d: {\n sectionType: 'day',\n contentType: 'digit',\n maxLength: 2\n },\n dd: 'day',\n do: {\n sectionType: 'day',\n contentType: 'digit-with-letter'\n },\n // Day of the week\n E: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n EEEEE: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n i: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n ii: 'weekDay',\n iii: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n iiii: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // eslint-disable-next-line id-denylist\n e: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n ee: 'weekDay',\n eee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n eeeeee: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n c: {\n sectionType: 'weekDay',\n contentType: 'digit',\n maxLength: 1\n },\n cc: 'weekDay',\n ccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n cccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n ccccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n cccccc: {\n sectionType: 'weekDay',\n contentType: 'letter'\n },\n // Meridiem\n a: 'meridiem',\n aa: 'meridiem',\n aaa: 'meridiem',\n // Hours\n H: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n HH: 'hours',\n h: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n hh: 'hours',\n // Hour [0-11] (12h cycle, 0-based) — date-fns only\n K: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n KK: 'hours',\n // Hour [1-24] (24h cycle, 1-based) — date-fns only\n k: {\n sectionType: 'hours',\n contentType: 'digit',\n maxLength: 2\n },\n kk: 'hours',\n // Minutes\n m: {\n sectionType: 'minutes',\n contentType: 'digit',\n maxLength: 2\n },\n mm: 'minutes',\n // Seconds\n s: {\n sectionType: 'seconds',\n contentType: 'digit',\n maxLength: 2\n },\n ss: 'seconds'\n};\nconst defaultFormats = {\n year: 'yyyy',\n month: 'LLLL',\n monthShort: 'MMM',\n dayOfMonth: 'd',\n dayOfMonthFull: 'do',\n weekday: 'EEEE',\n weekdayShort: 'EEEEEE',\n hours24h: 'HH',\n hours12h: 'hh',\n meridiem: 'aa',\n minutes: 'mm',\n seconds: 'ss',\n fullDate: 'PP',\n keyboardDate: 'P',\n shortDate: 'MMM d',\n normalDate: 'd MMMM',\n normalDateWithWeekday: 'EEE, MMM d',\n fullTime12h: 'hh:mm aa',\n fullTime24h: 'HH:mm',\n keyboardDateTime12h: 'P hh:mm aa',\n keyboardDateTime24h: 'P HH:mm'\n};\n/**\n * Based on `@date-io/date-fns`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterDateFnsBase {\n isMUIAdapter = true;\n isTimezoneCompatible = false;\n formatTokenMap = formatTokenMap;\n escapedCharacters = {\n start: \"'\",\n end: \"'\"\n };\n constructor(props) {\n const {\n locale,\n formats,\n longFormatters,\n lib\n } = props;\n this.locale = locale;\n this.formats = _extends({}, defaultFormats, formats);\n this.longFormatters = longFormatters;\n this.lib = lib || 'date-fns';\n }\n date = value => {\n if (typeof value === 'undefined') {\n return new Date();\n }\n if (value === null) {\n return null;\n }\n return new Date(value);\n };\n getInvalidDate = () => new Date('Invalid Date');\n getTimezone = () => {\n return 'default';\n };\n setTimezone = value => {\n return value;\n };\n toJsDate = value => {\n return value;\n };\n getCurrentLocaleCode = () => {\n // `code` is undefined only in `date-fns` types, but all locales have it\n return this.locale.code;\n };\n\n // Note: date-fns input types are more lenient than this adapter, so we need to expose our more\n // strict signature and delegate to the more lenient signature. Otherwise, we have downstream type errors upon usage.\n is12HourCycleInCurrentLocale = () => {\n return /a/.test(this.locale.formatLong.time({\n width: 'short'\n }));\n };\n expandFormat = format => {\n const longFormatRegexp = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;\n\n // @see https://github.com/date-fns/date-fns/blob/master/src/format/index.js#L31\n return format.match(longFormatRegexp).map(token => {\n const firstCharacter = token[0];\n if (firstCharacter === 'p' || firstCharacter === 'P') {\n const longFormatter = this.longFormatters[firstCharacter];\n return longFormatter(token, this.locale.formatLong);\n }\n return token;\n }).join('');\n };\n formatNumber = numberToFormat => {\n return numberToFormat;\n };\n getDayOfWeek = value => {\n return value.getDay() + 1;\n };\n}","import { addDays } from 'date-fns/addDays';\nimport { addSeconds } from 'date-fns/addSeconds';\nimport { addMinutes } from 'date-fns/addMinutes';\nimport { addHours } from 'date-fns/addHours';\nimport { addWeeks } from 'date-fns/addWeeks';\nimport { addMonths } from 'date-fns/addMonths';\nimport { addYears } from 'date-fns/addYears';\nimport { endOfDay } from 'date-fns/endOfDay';\nimport { endOfWeek } from 'date-fns/endOfWeek';\nimport { endOfYear } from 'date-fns/endOfYear';\nimport { format as dateFnsFormat, longFormatters } from 'date-fns/format';\nimport { getDate } from 'date-fns/getDate';\nimport { getDaysInMonth } from 'date-fns/getDaysInMonth';\nimport { getHours } from 'date-fns/getHours';\nimport { getMinutes } from 'date-fns/getMinutes';\nimport { getMonth } from 'date-fns/getMonth';\nimport { getSeconds } from 'date-fns/getSeconds';\nimport { getMilliseconds } from 'date-fns/getMilliseconds';\nimport { getWeek } from 'date-fns/getWeek';\nimport { getYear } from 'date-fns/getYear';\nimport { isAfter } from 'date-fns/isAfter';\nimport { isBefore } from 'date-fns/isBefore';\nimport { isEqual } from 'date-fns/isEqual';\nimport { isSameDay } from 'date-fns/isSameDay';\nimport { isSameYear } from 'date-fns/isSameYear';\nimport { isSameMonth } from 'date-fns/isSameMonth';\nimport { isSameHour } from 'date-fns/isSameHour';\nimport { isValid } from 'date-fns/isValid';\nimport { parse as dateFnsParse } from 'date-fns/parse';\nimport { setDate } from 'date-fns/setDate';\nimport { setHours } from 'date-fns/setHours';\nimport { setMinutes } from 'date-fns/setMinutes';\nimport { setMonth } from 'date-fns/setMonth';\nimport { setSeconds } from 'date-fns/setSeconds';\nimport { setMilliseconds } from 'date-fns/setMilliseconds';\nimport { setYear } from 'date-fns/setYear';\nimport { startOfDay } from 'date-fns/startOfDay';\nimport { startOfMonth } from 'date-fns/startOfMonth';\nimport { endOfMonth } from 'date-fns/endOfMonth';\nimport { startOfWeek } from 'date-fns/startOfWeek';\nimport { startOfYear } from 'date-fns/startOfYear';\nimport { isWithinInterval } from 'date-fns/isWithinInterval';\nimport { enUS } from 'date-fns/locale/en-US';\nimport { AdapterDateFnsBase } from \"../AdapterDateFnsBase/index.mjs\";\n/**\n * Based on `@date-io/date-fns`\n *\n * MIT License\n *\n * Copyright (c) 2017 Dmitriy Kovalenko\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nexport class AdapterDateFns extends AdapterDateFnsBase {\n constructor({\n locale,\n formats\n } = {}) {\n /* v8 ignore start */\n if (process.env.NODE_ENV !== 'production') {\n if (typeof addDays !== 'function') {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error(['MUI: The `date-fns` package v2.x is not compatible with this adapter.', 'Please, install v3.x or v4.x of the package or use the `AdapterDateFnsV2` instead.'].join('\\n'));\n }\n if (!longFormatters) {\n // TODO: fix mui/no-guarded-throw\n // eslint-disable-next-line mui/no-guarded-throw\n throw new Error('MUI: The minimum supported `date-fns` package version compatible with this adapter is `3.2.x`.');\n }\n }\n /* v8 ignore stop */\n super({\n locale: locale ?? enUS,\n formats,\n longFormatters\n });\n }\n\n // TODO: explicit return types can be removed once there is only one date-fns version supported\n parse = (value, format) => {\n if (value === '') {\n return null;\n }\n return dateFnsParse(value, format, new Date(), {\n locale: this.locale\n });\n };\n isValid = value => {\n if (value == null) {\n return false;\n }\n return isValid(value);\n };\n format = (value, formatKey) => {\n return this.formatByString(value, this.formats[formatKey]);\n };\n formatByString = (value, formatString) => {\n return dateFnsFormat(value, formatString, {\n locale: this.locale\n });\n };\n isEqual = (value, comparing) => {\n if (value === null && comparing === null) {\n return true;\n }\n if (value === null || comparing === null) {\n return false;\n }\n return isEqual(value, comparing);\n };\n isSameYear = (value, comparing) => {\n return isSameYear(value, comparing);\n };\n isSameMonth = (value, comparing) => {\n return isSameMonth(value, comparing);\n };\n isSameDay = (value, comparing) => {\n return isSameDay(value, comparing);\n };\n isSameHour = (value, comparing) => {\n return isSameHour(value, comparing);\n };\n isAfter = (value, comparing) => {\n return isAfter(value, comparing);\n };\n isAfterYear = (value, comparing) => {\n return isAfter(value, endOfYear(comparing));\n };\n isAfterDay = (value, comparing) => {\n return isAfter(value, endOfDay(comparing));\n };\n isBefore = (value, comparing) => {\n return isBefore(value, comparing);\n };\n isBeforeYear = (value, comparing) => {\n return isBefore(value, this.startOfYear(comparing));\n };\n isBeforeDay = (value, comparing) => {\n return isBefore(value, this.startOfDay(comparing));\n };\n isWithinRange = (value, [start, end]) => {\n return isWithinInterval(value, {\n start,\n end\n });\n };\n startOfYear = value => {\n return startOfYear(value);\n };\n startOfMonth = value => {\n return startOfMonth(value);\n };\n startOfWeek = value => {\n return startOfWeek(value, {\n locale: this.locale\n });\n };\n startOfDay = value => {\n return startOfDay(value);\n };\n endOfYear = value => {\n return endOfYear(value);\n };\n endOfMonth = value => {\n return endOfMonth(value);\n };\n endOfWeek = value => {\n return endOfWeek(value, {\n locale: this.locale\n });\n };\n endOfDay = value => {\n return endOfDay(value);\n };\n addYears = (value, amount) => {\n return addYears(value, amount);\n };\n addMonths = (value, amount) => {\n return addMonths(value, amount);\n };\n addWeeks = (value, amount) => {\n return addWeeks(value, amount);\n };\n addDays = (value, amount) => {\n return addDays(value, amount);\n };\n addHours = (value, amount) => {\n return addHours(value, amount);\n };\n addMinutes = (value, amount) => {\n return addMinutes(value, amount);\n };\n addSeconds = (value, amount) => {\n return addSeconds(value, amount);\n };\n getYear = value => {\n return getYear(value);\n };\n getMonth = value => {\n return getMonth(value);\n };\n getDate = value => {\n return getDate(value);\n };\n getHours = value => {\n return getHours(value);\n };\n getMinutes = value => {\n return getMinutes(value);\n };\n getSeconds = value => {\n return getSeconds(value);\n };\n getMilliseconds = value => {\n return getMilliseconds(value);\n };\n setYear = (value, year) => {\n return setYear(value, year);\n };\n setMonth = (value, month) => {\n return setMonth(value, month);\n };\n setDate = (value, date) => {\n return setDate(value, date);\n };\n setHours = (value, hours) => {\n return setHours(value, hours);\n };\n setMinutes = (value, minutes) => {\n return setMinutes(value, minutes);\n };\n setSeconds = (value, seconds) => {\n return setSeconds(value, seconds);\n };\n setMilliseconds = (value, milliseconds) => {\n return setMilliseconds(value, milliseconds);\n };\n getDaysInMonth = value => {\n return getDaysInMonth(value);\n };\n getWeekArray = value => {\n const start = this.startOfWeek(this.startOfMonth(value));\n const end = this.endOfWeek(this.endOfMonth(value));\n let count = 0;\n let current = start;\n const nestedWeeks = [];\n while (this.isBefore(current, end)) {\n const weekNumber = Math.floor(count / 7);\n nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];\n nestedWeeks[weekNumber].push(current);\n current = this.addDays(current, 1);\n count += 1;\n }\n return nestedWeeks;\n };\n getWeekNumber = value => {\n return getWeek(value, {\n locale: this.locale\n });\n };\n getYearRange = ([start, end]) => {\n const startDate = this.startOfYear(start);\n const endDate = this.endOfYear(end);\n const years = [];\n let current = startDate;\n while (this.isBefore(current, endDate)) {\n years.push(current);\n current = this.addYears(current, 1);\n }\n return years;\n };\n}","import { Api, LeapContext } from \"@leapdev/leap-host\";\r\nimport {\r\n add,\r\n addMinutes,\r\n endOfDay,\r\n format,\r\n getHours,\r\n getMinutes,\r\n getSeconds,\r\n Locale,\r\n setHours,\r\n setMinutes,\r\n setSeconds,\r\n startOfDay,\r\n} from \"date-fns\";\r\nimport { enAU, enUS, enGB } from \"date-fns/locale\";\r\nimport { fromZonedTime, toZonedTime } from \"date-fns-tz\";\r\n\r\n/**\r\n * This constant defines the string used to represent an invalid date.\r\n * It is used to indicate that a date value is not valid or cannot be parsed.\r\n */\r\nexport const invalidDate = \"Invalid date\";\r\n\r\n/**\r\n * This constant defines the date format used for database storage.\r\n * It is used to ensure consistent date formatting across the application,\r\n * especially when interacting with databases or APIs that require a specific date format.\r\n */\r\nexport const dbDateOnlyFormat = \"yyyy-MM-dd\";\r\n\r\n/**\r\n * This constant defines the default date format used in the application.\r\n * It is used for displaying dates in the user interface and for formatting dates in various components.\r\n */\r\nexport const defaultDateFormat = \"dd/MM/yyyy\";\r\n\r\n/**\r\n * This constant defines the default date and time format used in the application.\r\n * It is used for displaying both date and time in the user interface and for formatting datetime values\r\n */\r\nexport const defaultDateTimeFormat = \"yyyy-MM-dd HH:mm:ss\";\r\n\r\n/**\r\n * This constant defines the minimum date that can be used in the application.\r\n * It is set to January 1, 1900, and is used to ensure that date inputs do not go below this value.\r\n * It is useful for setting a minimum date in date pickers or other date-related components.\r\n */\r\nexport const minDateAsObject = new Date(\"1900-01-01\");\r\n\r\n/**\r\n * This constant defines the timezone used in the application.\r\n * It is derived from the user's system settings and is used for formatting dates and times in the user's local timezone.\r\n * It ensures that date and time values are displayed correctly based on the user's timezone.\r\n */\r\nexport const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone;\r\n\r\n/**\r\n * This constant defines the UTC format used for date and time values in the application.\r\n * It is used to ensure that date and time values are stored and displayed in a consistent UTC format.\r\n */\r\nexport const utcFormat = \"yyyy-MM-dd HH:mm:ss\";\r\n\r\n/**\r\n * This constant defines the UTC timezone used in the application.\r\n */\r\nexport const utcTimeZone = \"Etc/UTC\";\r\n\r\n/**\r\n * This function returns the minimum date as a string formatted in the default date format.\r\n * It is useful for setting a minimum date in date pickers or other date-related components.\r\n * @returns (string): The minimum date formatted as a string in the default date format.\r\n * @example\r\n * ```typescript\r\n * const minDateValue = minDate; // Returns \"01/01/1900\"\r\n * ```\r\n */\r\nexport const minDate = format(minDateAsObject, defaultDateFormat);\r\n\r\n/**\r\n * This function returns a date that is one week from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date one week in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing one week from today.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const oneWeekFromToday = oneWeek; // Returns \"dd/MM/yyyy\" format of the date one week from today\r\n * ```\r\n */\r\nexport const oneWeek = format(\r\n add(new Date(), {\r\n weeks: 1,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns today's date formatted as a string in the default date format.\r\n * It is useful for displaying the current date in a user interface or for date calculations.\r\n * @returns (string): Today's date formatted as a string in the default date format.\r\n * It can be used in various contexts, such as displaying the current date in a user interface or calculating date differences.\r\n * @example\r\n * ```typescript\r\n * const todayDate = today; // Returns \"dd/MM/yyyy\" format of today's date\r\n * ```\r\n */\r\nexport const today = format(new Date(), defaultDateFormat);\r\n\r\n/**\r\n * This function returns a date that is one day from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date one day in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing tomorrow's date.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const tomorrowDate = tomorrow; // Returns \"dd/MM/yyyy\" format of the date tomorrow\r\n * ```\r\n */\r\nexport const tomorrow = format(\r\n add(new Date(), {\r\n days: 1,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns a date that is two weeks from today, formatted as a string.\r\n * It is useful for scenarios where you need to calculate a date two weeks in the future,\r\n * such as setting deadlines or reminders.\r\n * @returns (string): A formatted date string representing two weeks from today.\r\n * It can be used in various contexts, such as displaying future dates in a user interface or calculating due dates.\r\n * @example\r\n * ```typescript\r\n * const twoWeeksFromToday = twoWeeks; // Returns \"dd/MM/yyyy\" format of the date two weeks from today\r\n * ```\r\n */\r\nexport const twoWeeks = format(\r\n add(new Date(), {\r\n weeks: 2,\r\n }),\r\n defaultDateFormat,\r\n);\r\n\r\n/**\r\n * This function returns the current date formatted as a string based on the provided format.\r\n * @param formatString (optional) The format string to use for the date. Defaults to \"dd/MM/yyyy\".\r\n * It is useful for getting the current date in a specific format, such as \"dd/MM/yyyy\" or \"MM/dd/yyyy\".\r\n * If no format string is provided, it defaults to \"dd/MM/yyyy\".\r\n * @returns (string): The current date formatted as a string.\r\n * It can be used in various contexts, such as displaying the current date in a user interface or storing it in a database.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = defaultDate(); // Returns the current date in \"dd/MM/yyyy\" format\r\n * const formattedDateUS = defaultDate(\"MM/dd/yyyy\"); // Returns the current date in \"MM/dd/yyyy\" format\r\n * ```\r\n */\r\nexport const defaultDate = (formatString: string = defaultDateFormat) => {\r\n return format(new Date(), formatString);\r\n};\r\n\r\n/**\r\n * This function formats a date based on the provided parameters.\r\n * It can format the date to the start or end of the day, handle UTC dates,\r\n * and format it as a date-only string.\r\n * It is useful for displaying dates in a specific format,\r\n * such as in a date picker or when saving dates to a database.\r\n * @param date (Date | null | undefined): The date to format. If null or undefined, it returns null.\r\n * @param startOfDate (boolean): If true, formats the date to the start of the day.\r\n * @param endOfDate (boolean): If true, formats the date to the end of the day.\r\n * @param isUTC (boolean): If true, formats the date in UTC format.\r\n * @param dateOnly (boolean): If true, formats the date as a date-only string (e.g., \"yyyy-MM-dd\").\r\n * This is useful for scenarios where you need to display or store only the date part without the time.\r\n * It can be used in various contexts, such as displaying dates in a user interface or saving them to a database.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = formatDate(new Date(), true, false, false, true); // Formats the current date to the start of the day as a date-only string\r\n * const formattedUTCDate = formatDate(new Date(), false, false, true); // Formats the current date in UTC format\r\n * const formattedEndDate = formatDate(new Date(), false, true); // Formats the current date to the end of the day\r\n * ```\r\n * @returns (string | null): A formatted date string based on the provided parameters. If the input date is null or undefined, it returns null.\r\n */\r\nexport const formatDate = (\r\n date?: Date | null,\r\n startOfDate?: boolean,\r\n endOfDate?: boolean,\r\n isUTC?: boolean,\r\n dateOnly?: boolean,\r\n) => {\r\n if (!date) {\r\n return null;\r\n }\r\n let tempDate = date;\r\n if (dateOnly) {\r\n return format(new Date(tempDate), dbDateOnlyFormat);\r\n }\r\n if (startOfDate) {\r\n tempDate = startOfDay(date);\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n if (endOfDate) {\r\n tempDate = endOfDay(date);\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n if (isUTC) {\r\n const today = new Date();\r\n tempDate = setHours(tempDate, getHours(today));\r\n tempDate = setMinutes(tempDate, getMinutes(today));\r\n tempDate = setSeconds(tempDate, getSeconds(today));\r\n return fromZonedTime(tempDate, timezone).toISOString();\r\n } else {\r\n return format(new Date(tempDate), utcFormat);\r\n }\r\n};\r\n\r\n/**\r\n * This function parses a date string into a Date object based on the provided format.\r\n * It splits the date string into parts (day, month, year) and constructs a Date object.\r\n * If the date string is invalid or cannot be parsed, it returns null.\r\n * It also handles two-digit years by converting them to four-digit years.\r\n * @param date (any): The date string to parse. It can be in various formats (e.g., \"dd/MM/yyyy\", \"MM/dd/yyyy\").\r\n * @param formatString (string): The format string to use for parsing the date.\r\n * @param localDateformat (string): The local date format to use for parsing. It should match the format of the input date string.\r\n * @param parseKeyboardVal (boolean): Whether to parse the date from a keyboard input. Defaults to false.\r\n * @returns (string | null): Returns a formatted date string if parsing is successful, or null if the input is invalid.\r\n * This function is useful for converting user input or string representations of dates into a Date object.\r\n * It can handle various date formats and ensures that the resulting Date object is valid.\r\n * If the input date string is invalid or cannot be parsed, it returns null.\r\n * It also includes logic to handle two-digit years by converting them to four-digit years.\r\n * @example\r\n * ```typescript\r\n * const parsedDate = parseDate(\"25/12/2023\", \"dd/MM/yyyy\", \"dd/MM/yyyy\");\r\n * console.log(parsedDate); // Returns \"2023-12-25\" in the \"yyyy-MM-dd\" format\r\n * const parsedDateUS = parseDate(\"12/25/23\", \"MM/dd/yyyy\", \"MM/dd/yyyy\");\r\n * console.log(parsedDateUS); // Returns \"2023-12-25\" in the \"yyyy-MM-dd\" format\r\n * const parsedInvalidDate = parseDate(\"31/02/2023\", \"dd/MM/yyyy\", \"dd/MM/yyyy\");\r\n * console.log(parsedInvalidDate); // Returns null, as February 31st is invalid\r\n * ```\r\n */\r\nexport const parseDate = (\r\n date: any,\r\n formatString: string = defaultDateFormat,\r\n localDateformat: string,\r\n parseKeyboardVal?: boolean,\r\n) => {\r\n // Split the value into parts (day, month, year)\r\n if (date === null) {\r\n return null;\r\n }\r\n const parts: any[] = date\r\n .split(/[./-]/)\r\n .map((part: any) => parseInt(part, 10));\r\n // Check if parsing individual parts failed (invalid format)\r\n let day = localDateformat.indexOf(\"d\") === 0 ? parts[0] : parts[1];\r\n let month = localDateformat.indexOf(\"M\") === 0 ? parts[0] : parts[1];\r\n let year = parts[2];\r\n\r\n if (\r\n (!parseKeyboardVal && parts.some(isNaN)) ||\r\n parts?.filter((p: any) => p.isNaN)?.length === parts?.length ||\r\n isNaN(day)\r\n ) {\r\n date = invalidDate; // Or any value to represent invalid input\r\n return null;\r\n }\r\n\r\n if (isNaN(month)) {\r\n month = new Date().getMonth() + 1;\r\n }\r\n\r\n if (isNaN(year)) {\r\n year = new Date().getFullYear();\r\n } else {\r\n if (year.toString().length <= 2) {\r\n year = convertToFullYear(year);\r\n }\r\n //! Force maximum calendar year\r\n if (year > 2099) {\r\n year = 2099;\r\n }\r\n }\r\n\r\n // Create the date object with available parts\r\n const completedDate = new Date(year, month - 1, day);\r\n\r\n // Check if the constructed date is valid (e.g., February 30th)\r\n if (completedDate.getDate() !== day) {\r\n date = invalidDate; // Or any value to represent invalid date\r\n }\r\n\r\n return format(new Date(completedDate), formatString);\r\n};\r\n\r\n/**\r\n * This function converts a two-digit year to a four-digit year.\r\n * It adds the appropriate century based on the current year.\r\n * @param twoDigitYear (any): The two-digit year to convert. It can be a string or number.\r\n * @returns (number): The converted four-digit year.\r\n * @example\r\n * ```typescript\r\n * const fullYear = convertToFullYear(\"25\"); // Returns 2025\r\n * const fullYear2 = convertToFullYear(99); // Returns 1999\r\n * const fullYear3 = convertToFullYear(\"00\"); // Returns 2000\r\n * ```\r\n */\r\nconst convertToFullYear = (twoDigitYear: any) => {\r\n const currentYear = new Date().getFullYear() + 5;\r\n const currentCentury = Math.floor(currentYear / 100) * 100;\r\n const twoDigitYearInt = parseInt(twoDigitYear);\r\n\r\n // Determine the correct century to add\r\n const centuryToAdd =\r\n twoDigitYearInt > currentYear % 100 ? currentCentury - 100 : currentCentury;\r\n\r\n // Add the century to the 2-digit year\r\n return centuryToAdd + twoDigitYearInt;\r\n};\r\n\r\n/**\r\n * This function returns a locale object based on the provided LeapContext.\r\n * It checks the hostInfo.region and returns the corresponding locale with weekStartsOn set to 1.\r\n * If the region is not recognized, it returns undefined.\r\n * @param leapContext (LeapContext | undefined): The LeapContext object containing hostInfo with region information.\r\n * @returns The function supports UK, US, AU (including NZ), and CA regions. If the region is not recognized, it returns undefined.\r\n * @example\r\n * ```typescript\r\n * const locale = getLocale(leapContext); // Returns the appropriate locale based on the region\r\n * const localeUS = getLocale({ hostInfo: { region: \"us\" } }); // Returns enUS locale\r\n * const localeUK = getLocale({ hostInfo: { region: \"uk\" } }); // Returns enGB locale\r\n * const localeAU = getLocale({ hostInfo: { region: \"au\" } }); // Returns enAU locale\r\n * const localeCA = getLocale({ hostInfo: { region: \"ca\" } }); // Returns enGB locale\r\n * ```\r\n */\r\nexport const getLocale = (leapContext?: LeapContext): Locale | undefined => {\r\n if (leapContext?.hostInfo.region.toLowerCase() === \"uk\") {\r\n return {\r\n ...enGB,\r\n options: {\r\n ...enGB.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"us\") {\r\n return {\r\n ...enUS,\r\n options: {\r\n ...enUS.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"au\") {\r\n //! includes NZ\r\n return {\r\n ...enAU,\r\n options: {\r\n ...enAU.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n } else if (leapContext?.hostInfo.region.toLowerCase() === \"ca\") {\r\n return {\r\n ...enGB,\r\n options: {\r\n ...enGB.options,\r\n weekStartsOn: 1,\r\n },\r\n };\r\n }\r\n};\r\n\r\n/**\r\n * This function formats a date or datetime value into a string based on the provided locale.\r\n * It supports both date-only and datetime formats, and can handle UTC dates.\r\n * @param inputValue (string | Date | undefined): The date or datetime value to format.\r\n * @param locale (Locale | undefined): The locale to use for formatting. If undefined, it will not format the date.\r\n * @param outputAsUtc (boolean): Whether the date is in UTC format. Defaults to true.\r\n * @param outputAsDateOnly (boolean): Whether to format the value as a date only.\r\n * @param outputAs24H (boolean): Whether to show the time in 24-hour format. Defaults to false.\r\n * @returns (string): A formatted date or datetime string. If the input value is invalid or locale is undefined, it returns an empty string.\r\n * @example\r\n * ```typescript\r\n * const formattedDate = lctFormatDateTime(new Date(), enGB, true, false, true); // Returns \"01/01/2023 14:30\"\r\n * const formattedDateTime = lctFormatDateTime(\"2023-01-01T14:30:00Z\", enUS, true, false, false); // Returns \"01/01/2023 02:30 PM\"\r\n * const formattedDateOnly = lctFormatDateTime(\"2023-01-01\", enAU, false, true); // Returns \"01/01/2023\"\r\n * const formattedInvalid = lctFormatDateTime(undefined, enGB); // Returns \"\"\r\n * ```\r\n */\r\nexport const formatDateTime = (\r\n inputValue?: string | Date,\r\n locale?: Locale,\r\n outputAsUtc: boolean = true,\r\n outputAsDateOnly?: boolean,\r\n outputAs24H?: boolean,\r\n) => {\r\n const timeFormat = outputAs24H ? \" HH:mm\" : \" hh:mm a\";\r\n if (!!locale && !!inputValue) {\r\n const formattedDate = format(\r\n outputAsUtc && typeof inputValue === \"string\"\r\n ? inputValue.replace(\" \", \"T\").replace(\"Z\", \"\").concat(\"Z\")\r\n : inputValue,\r\n `${locale.formatLong.date({ width: \"short\" })}${\r\n outputAsDateOnly ? \"\" : timeFormat\r\n }`,\r\n );\r\n return formattedDate;\r\n }\r\n return \"\";\r\n};\r\n\r\n/**\r\n * This function formats a date string into a report-friendly format based on the provided locale.\r\n * It handles both ISO date strings and strings in the format \"yyyy-MM-dd\".\r\n *\r\n * @param date (string | null): The date string to format. It can be in ISO format or \"yyyy-MM-dd\".\r\n * @param locale (Locale | undefined): The locale to use for formatting. If undefined, it will not format the date.\r\n * @returns (string): A formatted date string. If the input date is invalid or locale is undefined, it returns an empty string and logs a warning.\r\n * @example\r\n * ```typescript\r\n * const formattedReportDate = formatReportDate(\"2023-12-25\", enGB); // Returns \"25-12-2023\"\r\n * const formattedReportDateISO = formatReportDate(\"2023-12-25T00:00:00Z\", enUS); // Returns \"12-25-2023\"\r\n * const formattedReportDateInvalid = formatReportDate(\"31-02-2023\", enGB); // Returns \"\", logs warning\r\n * const formattedReportDateNull = formatReportDate(null, enGB); // Returns \"\", logs warning\r\n * ```\r\n */\r\nexport const formatReportDate = (\r\n date: string | null,\r\n locale?: Locale,\r\n): string => {\r\n if (!date) {\r\n console.warn(\"formatReportDate called with null or undefined date.\");\r\n return \"\";\r\n }\r\n\r\n if (!locale) {\r\n console.warn(\"formatReportDate called with undefined locale.\");\r\n return \"\";\r\n }\r\n\r\n // Handle ISO date strings and remove timezone information\r\n //\r\n if (typeof date === \"string\" && date.includes(\"T\")) {\r\n // If the date is in ISO format, we can parse it directly\r\n //\r\n const isoDate = new Date(date);\r\n if (isNaN(isoDate.getTime())) {\r\n console.warn(`Invalid date string: ${date}`);\r\n return \"\";\r\n }\r\n date = isoDate.toISOString();\r\n }\r\n // If the date is not in ISO format, we assume it's a string in the format \"yyyy-MM-dd\"\r\n //\r\n else if (typeof date === \"string\") {\r\n // Check if the date string is in a valid format\r\n //\r\n const parts = date.split(\"-\");\r\n if (parts.length !== 3 || parts.some((part) => isNaN(Number(part)))) {\r\n console.warn(`Invalid date string format: ${date}`);\r\n return \"\";\r\n }\r\n\r\n if (locale.code === \"en-US\")\r\n date = `${parts[1]}-${parts[2]}-${parts[0]}`; // \"MM-dd-yyyy\"\r\n else date = `${parts[2]}-${parts[1]}-${parts[0]}`; // \"dd-MM-yyyy\"\r\n }\r\n\r\n return date;\r\n};\r\n\r\n/**\r\n * @deprecated The method should not be used\r\n */\r\nexport const getDateTimeWithOffset = (date: string) => {\r\n const offset = new Date(date).getTimezoneOffset();\r\n const formattedDate = addMinutes(new Date(date), offset);\r\n return formattedDate;\r\n};\r\n\r\n/**\r\n * This function checks if a string is null or undefined.\r\n * It returns true if the string is null, undefined, or an empty string.\r\n * @param value (string | null | undefined): The string to check.\r\n * @returns (boolean): Returns true if the string is null, undefined, or empty; otherwise, false.\r\n * @example\r\n * ```typescript\r\n * const isNullOrUndefined = isStringNullOrUndefined(null); // Returns true\r\n * const isEmptyString = isStringNullOrUndefined(\"\"); // Returns true\r\n * const isValidString = isStringNullOrUndefined(\"Hello\"); // Returns false\r\n * ```\r\n */\r\nexport const isStringNullOrUndefined = (value?: string | null) => {\r\n if (!value || value === \"\") {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n};\r\n\r\n/**\r\n * This function formats a date as a string in the \"yyyy-MM-dd\" format, suitable for database storage.\r\n * It takes a Date object as input and returns the formatted string.\r\n * @param date (Date): The date to format.\r\n * @returns (string): A formatted date string in the \"yyyy-MM-dd\" format.\r\n * @example\r\n * ```typescript\r\n * const dbFormattedDate = formatAsDBDate(new Date()); // Returns \"2023-12-25\"\r\n * const dbFormattedDateInvalid = formatAsDBDate(new Date(\"Invalid Date\")); // Returns \"Invalid date\"\r\n * ```\r\n */\r\nexport const formatAsDBDate = (date: Date) => {\r\n return format(date, dbDateOnlyFormat);\r\n};\r\n\r\n/**\r\n * This function converts a local date to a UTC date and time string.\r\n * It can output the date as the start or end of the day, or as a regular date.\r\n * It is useful for converting local date inputs to a standardized UTC format for storage or processing.\r\n * @param inputValue (string | Date | undefined): The local date to convert. It can be a string or a Date object.\r\n * @param outputAsStartOfDay (boolean): If true, the output will be the start of the day in UTC format.\r\n * @param outputAsEndOfDay (boolean): If true, the output will be the end of the day in UTC format.\r\n * If both outputAsStartOfDay and outputAsEndOfDay are false,\r\n * the output will be the date in UTC format without any time adjustments.\r\n * If inputValue is null or undefined, the function returns an empty string.\r\n * @returns\r\n * (string): A UTC date and time string. If inputValue is null or undefined, it returns an empty string.\r\n * @example\r\n * ```typescript\r\n * const utcDateStart = convertLocalDateToUTCDateTime(\"2023-12-25\", true, false); // Returns \"2023-12-25T00:00:00.000Z\"\r\n * const utcDateEnd = convertLocalDateToUTCDateTime(\"2023-12-25\", false, true); // Returns \"2023-12-25T23:59:59.999Z\"\r\n * const utcDateRegular = convertLocalDateToUTCDateTime(\"2023-12-25\", false, false); // Returns \"2023-12-25T00:00:00.000Z\"\r\n * const utcDateInvalid = convertLocalDateToUTCDateTime(undefined, true, false ); // Returns \"\"\r\n * ```\r\n */\r\nexport const convertLocalDateToUTCDateTime = (\r\n inputValue?: string | Date,\r\n outputAsStartOfDay?: boolean,\r\n outputAsEndOfDay?: boolean,\r\n) => {\r\n if (!!inputValue) {\r\n const zonedDateInLocal = toZonedTime(new Date(inputValue), utcTimeZone);\r\n if (outputAsStartOfDay) {\r\n return startOfDay(zonedDateInLocal).toISOString();\r\n } else if (outputAsEndOfDay) {\r\n return endOfDay(zonedDateInLocal).toISOString();\r\n } else {\r\n return new Date(inputValue).toISOString();\r\n }\r\n }\r\n return \"\";\r\n};\r\n\r\n/**\r\n * This enum defines the types of buttons available in the dialog.\r\n * It is used to identify which button was clicked by the user.\r\n */\r\nexport enum DialogButtonType {\r\n Confirm = 1,\r\n Refuse = 2,\r\n Cancel = 3,\r\n}\r\n\r\n/**\r\n * This function shows a 3-button alert dialog using the Leap SDK.\r\n * It allows the user to confirm, refuse, or cancel an action.\r\n * It takes a message, button texts, and callbacks for each action.\r\n * @param message (string): The message to display in the dialog.\r\n * @param confirmButtonText (string): The text for the confirm button.\r\n * @param confirmCallback (function): The callback function to execute when the confirm button is clicked.\r\n * @param refuseButtonText (string): The text for the refuse button. Optional.\r\n * @param refuseCallback (function): The callback function to execute when the refuse button is clicked. Optional.\r\n * @param cancelButtonText (string): The text for the cancel button. Optional.\r\n * @param sdkApi (Api): The Leap SDK API instance to use for showing the dialog.\r\n * @returns A promise that resolves when the dialog is closed.\r\n * @example\r\n * ```typescript\r\n * show3buttonAlert(\r\n * \"Are you sure you want to proceed?\",\r\n * \"Yes\",\r\n * () => console.log(\"Confirmed\"),\r\n * \"No\",\r\n * () => console.log(\"Refused\"),\r\n * \"Cancel\",\r\n * sdkApi\r\n * );\r\n * ```\r\n */\r\nexport const show3buttonAlert = ( \r\n title: string,\r\n message: string,\r\n confirmButtonText: string,\r\n confirmCallback: () => void,\r\n refuseButtonText?: string,\r\n refuseCallback?: () => void,\r\n cancelButtonText?: string,\r\n sdkApi?: Api,\r\n) => {\r\n return sdkApi?.system\r\n .openDialogV2({\r\n dialogType: \"3button\",\r\n title: title,\r\n message: message,\r\n confirmButtonText: confirmButtonText,\r\n refuseButtonText: refuseButtonText,\r\n cancelButtonText: cancelButtonText,\r\n })\r\n .then((key) => {\r\n switch (key) {\r\n case DialogButtonType.Confirm:\r\n confirmCallback();\r\n break;\r\n case DialogButtonType.Refuse:\r\n if (refuseCallback) refuseCallback();\r\n break;\r\n case DialogButtonType.Cancel:\r\n break;\r\n default:\r\n break;\r\n }\r\n });\r\n};\r\n","import { FC, useEffect, useState } from \"react\";\r\n\r\nimport { differenceInDays, format, Locale } from \"date-fns\";\r\n\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\r\nimport { DateCalendar, LocalizationProvider } from \"@mui/x-date-pickers-pro\";\r\nimport {\r\n ClickAwayListener,\r\n IconButton,\r\n Paper,\r\n Popper,\r\n TextField,\r\n} from \"@mui/material\";\r\n\r\nimport { Api } from \"@leapdev/leap-host\";\r\nimport {\r\n defaultDateFormat,\r\n defaultDateTimeFormat,\r\n formatDate,\r\n getDateTimeWithOffset,\r\n isStringNullOrUndefined,\r\n parseDate,\r\n show3buttonAlert,\r\n} from \"./utils\";\r\nimport CalendarIcon from \"../../images/calendar-icon\";\r\nimport LCTButton from \"../button/Button\";\r\n\r\ninterface IValidationError {\r\n keepButton: boolean;\r\n title: string;\r\n message: string;\r\n originalValue?: string | null;\r\n}\r\n\r\ninterface ICustomActonProps {\r\n label: string;\r\n value: Date;\r\n}\r\n\r\ninterface IAdditionalActionsProps {\r\n showToday?: boolean;\r\n showClear?: boolean;\r\n customActions?: ICustomActonProps[];\r\n}\r\n\r\ninterface IDatePickerProps {\r\n disabled?: boolean;\r\n fullWidth?: boolean;\r\n isUTC?: boolean;\r\n startOfDate?: boolean;\r\n endOfDate?: boolean;\r\n dateOnly?: boolean;\r\n onUpdate: (value: string | null) => void;\r\n additionalActions?: IAdditionalActionsProps;\r\n size?: \"small\" | \"medium\";\r\n validate30Days?: boolean;\r\n validate?: (value?: any | null) => IValidationError | null;\r\n value: string | null;\r\n locale?: Locale;\r\n sdk?: Api;\r\n}\r\n\r\n/**\r\n * Leap Component for DatePicker\r\n * @param disabled - If true, the date picker is disabled.\r\n * @param fullWidth - If true, the date picker will take the full width of its container.\r\n * @param isUTC - If true, the date will be treated as UTC.\r\n * @param startOfDate - If true, the date will be set to the start of the day.\r\n * @param endOfDate - If true, the date will be set to the end of the day.\r\n * @param dateOnly - If true, the time part will be ignored.\r\n * @param onUpdate - Callback function to update the date value.\r\n * @param additionalActions - Additional actions to be displayed in the date picker.\r\n * @param size - Size of the date picker, can be \"small\" or \"medium\".\r\n * @param validate30Days - If true, it will validate that the selected date is not more than 30 days in the future.\r\n * @param validate - Custom validation function that returns an error if the date is invalid.\r\n * @param value - The current value of the date picker.\r\n * @param locale - Locale for date formatting.\r\n * @param sdk - The Leap SDK instance for API interactions.\r\n * @returns A DatePicker component that allows users to select a date with optional validation and additional actions.\r\n * @example\r\n * ```tsx\r\n * <LCTDatePicker\r\n * disabled={false}\r\n * fullWidth={true}\r\n * isUTC={false}\r\n * startOfDate={true}\r\n * endOfDate={false}\r\n * dateOnly={false}\r\n * onUpdate={(value) => console.log(value)}\r\n * additionalActions={{\r\n * showToday: true,\r\n * showClear: true,\r\n * customActions: [\r\n * { label: \"Last 7 Days\", value: new Date(Date.now() - 7 * 24 * 60 * 60 * 1000) },\r\n * { label: \"Last 30 Days\", value: new Date(Date.now() - 30 * 24 * 60 * 60 * 1000) },\r\n * ],\r\n * }}\r\n * size=\"small\"\r\n * validate30Days={true}\r\n * validate={(value) => {\r\n * if (value && new Date(value) > new Date(Date.now() + 30 * 24 * 60 * 60 * 1000)) {\r\n * return { keepButton: true, message: \"Date cannot be more than 30 days in the future.\" };\r\n * }\r\n * return null;\r\n * }}\r\n * value={null}\r\n * locale={enGB} // or any other locale\r\n * sdk={leapSdkInstance} // Leap SDK instance\r\n * />\r\n *\r\n * This component provides a user-friendly date selection interface with validation and additional actions like \"Today\" and \"Clear\".\r\n * It supports both date and datetime formats, and can be customized with locale settings.\r\n *\r\n */\r\nconst LCTDatePicker: FC<IDatePickerProps> = ({\r\n disabled,\r\n fullWidth,\r\n isUTC,\r\n startOfDate,\r\n endOfDate,\r\n dateOnly,\r\n onUpdate,\r\n additionalActions,\r\n size,\r\n validate30Days,\r\n validate,\r\n value,\r\n locale,\r\n sdk,\r\n}) => {\r\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\r\n const [currentValue, setCurrentValue] = useState<any | null>(null);\r\n const [displayValue, setDisplayValue] = useState<string | null>(null);\r\n const [validationError, setValidationError] =\r\n useState<IValidationError | null>(null);\r\n const [showCalendar, setShowCalendar] = useState(false);\r\n\r\n const dateFormat = locale\r\n ? locale.formatLong\r\n .date({ width: \"short\" })\r\n .toLowerCase()\r\n .replaceAll(\"m\", \"M\")\r\n : defaultDateFormat;\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n setCurrentValue(value ? new Date(value) : null);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : value,\r\n );\r\n if (!value) {\r\n setDisplayValue(null);\r\n onUpdate(null);\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [dateFormat, value, locale]);\r\n\r\n const regexDate: RegExp =\r\n locale?.formatLong.date({ width: \"short\" }).indexOf(\"M\") === 0\r\n ? /^(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2}\\:\\d{1,2})|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2}\\:)|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+\\d{1,2})|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4}\\s+)|(\\d{1,2}\\/\\d{1,2}\\/\\d{2,4})|(\\d{1,2}\\/\\d{1,2}\\/)|(\\d{1,2}\\/\\d{1,2})|(\\d{1,2}\\/)|(\\d{1,2})$/\r\n : /^(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2}\\:\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2}\\:)|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2}\\s+)|(\\d{1,4}\\/\\d{1,2}\\/\\d{1,2})|(\\d{1,4}\\/\\d{1,2}\\/)|(\\d{1,4}\\/\\d{1,2})|(\\d{1,4}\\/)|(\\d{1,4})$/;\r\n const regexNumbers: RegExp = /^[\\0-9_\\/_:]*$/;\r\n\r\n useEffect(() => {\r\n if (validationError) {\r\n if (validationError?.keepButton) {\r\n show3buttonAlert(\r\n validationError.title,\r\n validationError.message,\r\n \"Keep Value\",\r\n () => {},\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n onUpdate(value ? value : null);\r\n setCurrentValue(value);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : null,\r\n );\r\n setValidationError(null);\r\n },\r\n \"\",\r\n sdk,\r\n );\r\n } else {\r\n show3buttonAlert(\r\n validationError?.title || \"\",\r\n validationError?.message || \"\",\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n onUpdate(value ? value : null);\r\n setCurrentValue(value);\r\n setDisplayValue(\r\n value ? format(getDateTimeWithOffset(value), dateFormat) : null,\r\n );\r\n setValidationError(null);\r\n },\r\n undefined,\r\n undefined,\r\n undefined,\r\n sdk,\r\n );\r\n }\r\n }\r\n }, [validationError]);\r\n\r\n return (\r\n <>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n if (\r\n (e.target.value[e.target.value[\"length\"] - 1] === \":\" &&\r\n (tempValue.match(/:/g) || []).length > 1) ||\r\n (e.target.value[e.target.value[\"length\"] - 1] === \"/\" &&\r\n (tempValue.match(/\\//g) || []).length > 2) ||\r\n !!(tempValue.match(/\\/\\//g) || []).length\r\n ) {\r\n return;\r\n }\r\n if (\r\n (regexNumbers.test(tempValue) && regexDate.test(tempValue)) ||\r\n isStringNullOrUndefined(tempValue)\r\n ) {\r\n setDisplayValue(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n const value = (e.target as any).value;\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayValue &&\r\n (displayValue[displayValue?.length - 1] === \"/\" ||\r\n displayValue[displayValue?.length - 1] === \":\")\r\n ) {\r\n setDisplayValue(value.substring(0, value.length - 1));\r\n }\r\n } else {\r\n if (e.code === \"Semicolon\" && value.includes(\":\")) {\r\n return;\r\n }\r\n\r\n if (regexNumbers.test(value) && regexDate.test(value)) {\r\n setDisplayValue(value);\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (keyUpValue.includes)\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3) ||\r\n (e.code === \"Semicolon\" && tempValue.includes(\":\"))\r\n ) {\r\n return;\r\n }\r\n\r\n if (regexDate.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n //TODO FIX DATETIME\r\n // if (len > 9 && !tempValue.includes(\" \") && isDateTime) {\r\n // tempValue = tempValue + \" \";\r\n // }\r\n\r\n // if (len > 12 && !tempValue.includes(\":\") && isDateTime) {\r\n // tempValue = tempValue + \":\";\r\n // }\r\n\r\n setDisplayValue(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== value) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n value &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n currentValue ? new Date(currentValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: value,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n setCurrentValue(tempValue ? new Date(tempValue) : null);\r\n setDisplayValue(\r\n tempValue ? format(new Date(tempValue), dateFormat) : tempValue,\r\n );\r\n onUpdate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayValue || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <>\r\n {disabled ? undefined : (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled\r\n ? \"#f3f3f3 !important\"\r\n : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n )}\r\n </>\r\n ),\r\n },\r\n }}\r\n />\r\n <Popper open={showCalendar} sx={{ zIndex: 1500 }} anchorEl={anchorEl}>\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setShowCalendar(false);\r\n }}\r\n >\r\n <Paper>\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n alignItems: \"center\",\r\n backgroundColor: \"#fff\",\r\n }}\r\n >\r\n <LocalizationProvider\r\n dateAdapter={AdapterDateFns}\r\n adapterLocale={locale}\r\n >\r\n <DateCalendar\r\n value={currentValue ? new Date(currentValue) : null}\r\n onChange={(newValue: any, selectionState) => {\r\n const tempValue = newValue ? newValue : null;\r\n if (selectionState !== \"partial\") {\r\n setShowCalendar(false);\r\n if (\r\n value &&\r\n validate30Days &&\r\n differenceInDays(new Date(newValue), new Date()) > 30\r\n ) {\r\n setValidationError({\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: value,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n onUpdate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n setCurrentValue(tempValue ? new Date(tempValue) : null);\r\n setDisplayValue(\r\n tempValue\r\n ? format(new Date(tempValue), dateFormat)\r\n : tempValue,\r\n );\r\n }}\r\n views={[\"year\", \"month\", \"day\"]}\r\n />\r\n </LocalizationProvider>\r\n {(additionalActions?.showToday ||\r\n additionalActions?.customActions ||\r\n additionalActions?.showClear) && (\r\n <div className=\"displayFlex\" style={{ paddingBottom: 10 }}>\r\n {additionalActions?.showToday && (\r\n <LCTButton\r\n onClick={() => {\r\n const today = new Date();\r\n setCurrentValue(today);\r\n onUpdate(\r\n formatDate(\r\n today ? new Date(today) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n size=\"small\"\r\n >\r\n Today\r\n </LCTButton>\r\n )}\r\n {additionalActions?.customActions &&\r\n additionalActions?.customActions?.map((action) => (\r\n <div style={{ paddingLeft: 5 }}>\r\n <LCTButton\r\n onClick={() => {\r\n setCurrentValue(action.value);\r\n onUpdate(\r\n formatDate(\r\n action.value ? new Date(action.value) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n size=\"small\"\r\n >\r\n {action.label}\r\n </LCTButton>\r\n </div>\r\n ))}\r\n {additionalActions?.showClear && (\r\n <div style={{ paddingLeft: 5 }}>\r\n <LCTButton\r\n onClick={() => {\r\n setCurrentValue(null);\r\n setDisplayValue(\"\");\r\n setShowCalendar(false);\r\n onUpdate(null);\r\n setShowCalendar(false);\r\n }}\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n size=\"small\"\r\n >\r\n Clear\r\n </LCTButton>\r\n </div>\r\n )}\r\n </div>\r\n )}\r\n </div>\r\n </Paper>\r\n </ClickAwayListener>\r\n </Popper>\r\n </>\r\n );\r\n};\r\nexport default LCTDatePicker;\r\n","import { FC, useEffect, useState } from \"react\";\r\nimport {\r\n addDays,\r\n addMonths,\r\n differenceInDays,\r\n endOfMonth,\r\n endOfWeek,\r\n format,\r\n isAfter,\r\n isBefore,\r\n Locale,\r\n startOfMonth,\r\n startOfWeek,\r\n} from \"date-fns\";\r\nimport { AdapterDateFns } from \"@mui/x-date-pickers/AdapterDateFns\";\r\nimport {\r\n Button,\r\n ClickAwayListener,\r\n IconButton,\r\n Paper,\r\n Popper,\r\n TextField,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport {\r\n DateRangeCalendar,\r\n LocalizationProvider,\r\n} from \"@mui/x-date-pickers-pro\";\r\n\r\nimport { Api } from \"@leapdev/leap-host\";\r\nimport {\r\n defaultDateFormat,\r\n defaultDateTimeFormat,\r\n formatDate,\r\n getDateTimeWithOffset,\r\n parseDate,\r\n show3buttonAlert,\r\n} from \"../datepicker/utils\";\r\nimport CalendarIcon from \"../../images/calendar-icon\";\r\n\r\ninterface IValidationError {\r\n fromDate: boolean;\r\n toDate: boolean;\r\n keepButton: boolean;\r\n title: string;\r\n message: string;\r\n originalValue?: string | null;\r\n}\r\n\r\ninterface ICustomActonProps {\r\n label: string;\r\n fromValue: Date;\r\n toValue: Date;\r\n}\r\n\r\ninterface IAdditionalActionsProps {\r\n showToday?: boolean;\r\n showYesterday?: boolean;\r\n showThisWeek?: boolean;\r\n showLastWeek?: boolean;\r\n showThisMonth?: boolean;\r\n showLastMonth?: boolean;\r\n showLast30?: boolean;\r\n showLast60?: boolean;\r\n showLast90?: boolean;\r\n customActions?: ICustomActonProps[];\r\n}\r\n\r\ninterface IDatePickerProps {\r\n disabled?: boolean;\r\n fullWidth?: boolean;\r\n isUTC?: boolean;\r\n startOfDate?: boolean;\r\n endOfDate?: boolean;\r\n dateOnly?: boolean;\r\n onUpdateFromDate: (fromDate: string | null) => void;\r\n onUpdateToDate: (toDate: string | null) => void;\r\n additionalActions?: IAdditionalActionsProps;\r\n size?: \"small\" | \"medium\";\r\n validate30Days?: boolean;\r\n validate?: (value?: any | null) => IValidationError | null;\r\n fromDate: string | null;\r\n toDate: string | null;\r\n locale?: Locale;\r\n calendars?: 1 | 2 | 3;\r\n sdk?: Api;\r\n}\r\n\r\nconst LCTDateRangePicker: FC<IDatePickerProps> = ({\r\n disabled,\r\n fullWidth,\r\n isUTC,\r\n startOfDate,\r\n endOfDate,\r\n dateOnly,\r\n onUpdateFromDate,\r\n onUpdateToDate,\r\n additionalActions,\r\n size,\r\n validate30Days,\r\n validate,\r\n fromDate,\r\n toDate,\r\n locale,\r\n calendars,\r\n sdk,\r\n}) => {\r\n const [anchorEl, setAnchorEl] = useState<null | HTMLElement>(null);\r\n const [displayFromDate, setDisplayFromDate] = useState<string | null>(null);\r\n const [displayToDate, setDisplayToDate] = useState<string | null>(null);\r\n const [validationError, setValidationError] =\r\n useState<IValidationError | null>(null);\r\n const [showCalendar, setShowCalendar] = useState(false);\r\n\r\n const dateFormat = locale\r\n ? locale.formatLong\r\n .date({ width: \"short\" })\r\n .toLowerCase()\r\n .replaceAll(\"m\", \"M\")\r\n : defaultDateFormat;\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n if (!fromDate) {\r\n setDisplayFromDate(null);\r\n onUpdateFromDate(null);\r\n onUpdateFromDate(null);\r\n } else {\r\n setDisplayFromDate(\r\n fromDate\r\n ? format(getDateTimeWithOffset(fromDate), dateFormat)\r\n : fromDate,\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [fromDate, locale]);\r\n\r\n useEffect(() => {\r\n if (locale) {\r\n if (!toDate) {\r\n setDisplayToDate(null);\r\n onUpdateToDate(null);\r\n } else {\r\n setDisplayToDate(\r\n toDate ? format(getDateTimeWithOffset(toDate), dateFormat) : toDate,\r\n );\r\n }\r\n }\r\n // eslint-disable-next-line\r\n }, [toDate, locale]);\r\n\r\n useEffect(() => {\r\n if (validationError) {\r\n if (validationError?.keepButton) {\r\n show3buttonAlert(\r\n validationError.title,\r\n validationError.message,\r\n \"Keep Value\",\r\n () => {},\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n if (validationError?.fromDate) {\r\n onUpdateFromDate(value ? value : null);\r\n }\r\n\r\n if (validationError?.toDate) {\r\n onUpdateToDate(value ? value : null);\r\n }\r\n setValidationError(null);\r\n },\r\n \"\",\r\n sdk,\r\n );\r\n } else {\r\n show3buttonAlert(\r\n validationError?.title || \"\",\r\n validationError?.message || \"\",\r\n \"Revert\",\r\n () => {\r\n const value = validationError?.originalValue;\r\n if (validationError?.fromDate) {\r\n onUpdateFromDate(value ? value : null);\r\n }\r\n\r\n if (validationError?.toDate) {\r\n onUpdateToDate(value ? value : null);\r\n }\r\n setValidationError(null);\r\n },\r\n undefined,\r\n undefined,\r\n undefined,\r\n sdk,\r\n );\r\n }\r\n }\r\n }, [validationError]);\r\n\r\n return (\r\n <>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n const regex: RegExp = /^[0-9/]+$/;\r\n\r\n if (\r\n (regex.test(tempValue) ||\r\n tempValue === \"\" ||\r\n tempValue.length < 2) &&\r\n tempValue.split(\"/\").length <= 3\r\n ) {\r\n setDisplayFromDate(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayFromDate &&\r\n displayFromDate[displayFromDate?.length - 1] === \"/\"\r\n ) {\r\n setDisplayFromDate(\r\n (e.target as any).value.substring(\r\n 0,\r\n (e.target as any).value.length - 1,\r\n ),\r\n );\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n const regex: RegExp = /^(?!.*\\/\\/)[0-9/]+$/;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3)\r\n ) {\r\n return;\r\n }\r\n\r\n if (regex.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n setDisplayFromDate(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== fromDate) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n const tempDisplayToDate = parseDate(\r\n displayToDate,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n !!tempDisplayToDate &&\r\n tempValue &&\r\n isAfter(new Date(tempValue), new Date(tempDisplayToDate))\r\n ) {\r\n setValidationError({\r\n fromDate: true,\r\n toDate: false,\r\n keepButton: false,\r\n title: \"Alert\",\r\n message: \"Selected To Date is before From Date.\",\r\n originalValue: fromDate,\r\n });\r\n }\r\n if (\r\n fromDate &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n fromDate ? new Date(fromDate) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n fromDate: true,\r\n toDate: false,\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: fromDate,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n onUpdateFromDate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayFromDate || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled ? \"#f3f3f3 !important\" : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n ),\r\n },\r\n }}\r\n />\r\n <div style={{ margin: \"auto\" }}>\r\n <Typography style={{ paddingLeft: 8, paddingRight: 5 }}>To</Typography>\r\n </div>\r\n <TextField\r\n onChange={(e) => {\r\n const tempValue = e.target.value;\r\n const regex: RegExp = /^[0-9/]+$/;\r\n\r\n if (\r\n (regex.test(tempValue) ||\r\n tempValue === \"\" ||\r\n tempValue.length < 2) &&\r\n tempValue.split(\"/\").length <= 3\r\n ) {\r\n setDisplayToDate(tempValue);\r\n }\r\n }}\r\n placeholder={\r\n locale\r\n ? locale.formatLong.date({ width: \"short\" }).toLowerCase()\r\n : undefined\r\n }\r\n onKeyDown={(e) => {\r\n if (e.code === \"Backspace\") {\r\n if (\r\n displayToDate &&\r\n displayToDate[displayToDate?.length - 1] === \"/\"\r\n ) {\r\n setDisplayToDate(\r\n (e.target as any).value.substring(\r\n 0,\r\n (e.target as any).value.length - 1,\r\n ),\r\n );\r\n }\r\n }\r\n }}\r\n onKeyUp={(e) => {\r\n const keyUpValue = (e.target as any).value;\r\n const regex: RegExp = /^(?!.*\\/\\/)[0-9/]+$/;\r\n let tempValue = keyUpValue.replace(\"-\", \"/\");\r\n const len = tempValue.length;\r\n if (\r\n e.code === \"Backspace\" ||\r\n e.code === \"Delete\" ||\r\n (e.code === \"Slash\" && tempValue.split(\"/\").length < 3)\r\n ) {\r\n return;\r\n }\r\n\r\n if (regex.test(tempValue)) {\r\n // If they don't add the slash, do it for them...\r\n if (len === 2 && !tempValue.includes(\"/\")) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n\r\n // If they don't add the slash, do it for them...\r\n if (\r\n len > 4 &&\r\n tempValue.split(\"/\")[1].length === 2 &&\r\n tempValue.split(\"/\").length < 3\r\n ) {\r\n tempValue = tempValue + \"/\";\r\n }\r\n setDisplayToDate(tempValue);\r\n }\r\n }}\r\n onBlur={(e: any) => {\r\n const keyValue = e.target.value;\r\n if (keyValue !== toDate) {\r\n const tempValue = parseDate(\r\n keyValue,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n const tempDisplayFromDate = parseDate(\r\n displayFromDate,\r\n defaultDateTimeFormat,\r\n dateFormat,\r\n true,\r\n );\r\n if (\r\n !!tempDisplayFromDate &&\r\n tempValue &&\r\n isBefore(new Date(tempValue), new Date(tempDisplayFromDate))\r\n ) {\r\n setValidationError({\r\n fromDate: false,\r\n toDate: true,\r\n keepButton: false,\r\n title: \"Alert\",\r\n message: \"Selected To Date is before From Date.\",\r\n originalValue: toDate,\r\n });\r\n }\r\n if (\r\n toDate &&\r\n tempValue &&\r\n validate30Days &&\r\n differenceInDays(new Date(tempValue), new Date()) > 30 &&\r\n JSON.stringify(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n ) !==\r\n JSON.stringify(\r\n formatDate(\r\n toDate ? new Date(toDate) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n )\r\n ) {\r\n setValidationError({\r\n fromDate: false,\r\n toDate: true,\r\n keepButton: true,\r\n title: \"Alert\",\r\n message: \"Selected date is in the future.\",\r\n originalValue: toDate,\r\n });\r\n }\r\n if (validate) {\r\n const tempValError = validate(tempValue || null);\r\n if (tempValError) {\r\n setValidationError(tempValError);\r\n }\r\n }\r\n\r\n onUpdateToDate(\r\n formatDate(\r\n tempValue ? new Date(tempValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }\r\n }}\r\n value={displayToDate || \"\"}\r\n disabled={disabled}\r\n sx={{ width: fullWidth ? \"100%\" : 110 }}\r\n size={size ? size : \"small\"}\r\n slotProps={{\r\n input: {\r\n endAdornment: (\r\n <IconButton\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"2px\",\r\n backgroundColor: disabled ? \"#f3f3f3 !important\" : \"inherit\",\r\n \":hover\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n \":focus\": { backgroundColor: \"rgba(0, 0, 0, 0.04)\" },\r\n }}\r\n onClick={(e) => {\r\n setAnchorEl(e.currentTarget);\r\n setShowCalendar(true);\r\n }}\r\n disabled={disabled}\r\n disableFocusRipple\r\n disableRipple\r\n >\r\n <CalendarIcon />\r\n </IconButton>\r\n ),\r\n },\r\n }}\r\n />\r\n <Popper open={showCalendar} sx={{ zIndex: 1500 }} anchorEl={anchorEl}>\r\n <ClickAwayListener\r\n onClickAway={() => {\r\n setShowCalendar(false);\r\n }}\r\n >\r\n <Paper\r\n style={{\r\n backgroundColor: \"#fff\",\r\n border: \"1px solid rgba(0, 0, 0, 0.12)\",\r\n borderRadius: 0,\r\n }}\r\n >\r\n <div\r\n className=\"displayFlex dateActionButtons\"\r\n style={{ flexDirection: \"row\" }}\r\n >\r\n {(additionalActions?.showToday ||\r\n additionalActions?.showYesterday ||\r\n additionalActions?.showThisWeek ||\r\n additionalActions?.showLastWeek ||\r\n additionalActions?.showThisMonth ||\r\n additionalActions?.showLastMonth ||\r\n additionalActions?.showLast30 ||\r\n additionalActions?.showLast60 ||\r\n additionalActions?.showLast90 ||\r\n additionalActions?.customActions) && (\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n minHeight: 208,\r\n }}\r\n >\r\n {additionalActions?.showToday && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n onUpdateFromDate(\r\n formatDate(\r\n today ? today : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n today ? today : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Today\r\n </Button>\r\n )}\r\n {additionalActions?.showYesterday && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const yesterday = addDays(new Date(), -1);\r\n onUpdateFromDate(\r\n formatDate(\r\n yesterday ? yesterday : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n yesterday ? yesterday : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Yesterday\r\n </Button>\r\n )}\r\n {additionalActions?.showThisWeek && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfWeek = startOfWeek(today, {\r\n weekStartsOn: 1,\r\n });\r\n const dayEndOfWeek = endOfWeek(today, {\r\n weekStartsOn: 1,\r\n });\r\n\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfWeek ? new Date(dayStartOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfWeek ? new Date(dayEndOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n This Week\r\n </Button>\r\n )}\r\n {additionalActions?.showLastWeek && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfWeek = startOfWeek(addDays(today, -7), {\r\n weekStartsOn: 1,\r\n });\r\n const dayEndOfWeek = endOfWeek(addDays(today, -7), {\r\n weekStartsOn: 1,\r\n });\r\n\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfWeek ? new Date(dayStartOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfWeek ? new Date(dayEndOfWeek) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last Week\r\n </Button>\r\n )}\r\n {additionalActions?.showThisMonth && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfMonth = startOfMonth(today);\r\n const dayEndOfMonth = endOfMonth(today);\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfMonth ? new Date(dayStartOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfMonth ? new Date(dayEndOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n This Month\r\n </Button>\r\n )}\r\n {additionalActions?.showLastMonth && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStartOfMonth = startOfMonth(\r\n addMonths(today, -1),\r\n );\r\n const dayEndOfMonth = endOfMonth(addMonths(today, -1));\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStartOfMonth ? new Date(dayStartOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEndOfMonth ? new Date(dayEndOfMonth) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last Month\r\n </Button>\r\n )}\r\n {additionalActions?.showLast30 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -30);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 30 days\r\n </Button>\r\n )}\r\n {additionalActions?.showLast60 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -60);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 60 days\r\n </Button>\r\n )}\r\n {additionalActions?.showLast90 && (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n const today = new Date();\r\n const dayStart = addDays(today, -90);\r\n const dayEnd = today;\r\n onUpdateFromDate(\r\n formatDate(\r\n dayStart ? new Date(dayStart) : null,\r\n true,\r\n false,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n dayEnd ? new Date(dayEnd) : null,\r\n false,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n Last 90 days\r\n </Button>\r\n )}\r\n {additionalActions?.customActions &&\r\n additionalActions?.customActions?.map((action) => (\r\n <Button\r\n className=\"datePickerAction\"\r\n onClick={() => {\r\n onUpdateFromDate(\r\n formatDate(\r\n action.fromValue\r\n ? new Date(action.fromValue)\r\n : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n action.toValue ? new Date(action.toValue) : null,\r\n startOfDate,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n setShowCalendar(false);\r\n }}\r\n >\r\n {action.label}\r\n </Button>\r\n ))}\r\n </div>\r\n )}\r\n <div\r\n className=\"displayFlex\"\r\n style={{\r\n flexDirection: \"column\",\r\n borderLeft: \"1px solid #e0e0e0\",\r\n alignSelf: \"flex-start\",\r\n }}\r\n >\r\n <LocalizationProvider\r\n dateAdapter={AdapterDateFns}\r\n adapterLocale={locale}\r\n >\r\n <DateRangeCalendar\r\n value={[\r\n fromDate ? getDateTimeWithOffset(fromDate) : null,\r\n toDate ? getDateTimeWithOffset(toDate) : null,\r\n ]}\r\n onChange={(newValue: any, selectionState) => {\r\n if (selectionState !== \"partial\") {\r\n setShowCalendar(false);\r\n }\r\n const tempFromValue = newValue[0] ? newValue[0] : null;\r\n const tempToValue = newValue[1] ? newValue[1] : null;\r\n\r\n if (validate) {\r\n const tempFromValError = validate(tempFromValue);\r\n if (tempFromValError) {\r\n setValidationError(tempFromValError);\r\n }\r\n const tempToValError = validate(tempToValue);\r\n if (tempToValError) {\r\n setValidationError(tempToValError);\r\n }\r\n }\r\n onUpdateFromDate(\r\n formatDate(\r\n tempFromValue ? new Date(tempFromValue) : null,\r\n true,\r\n endOfDate,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n onUpdateToDate(\r\n formatDate(\r\n tempToValue ? new Date(tempToValue) : null,\r\n startOfDate,\r\n true,\r\n isUTC,\r\n dateOnly,\r\n ),\r\n );\r\n }}\r\n calendars={calendars || 2}\r\n sx={{\r\n \"& .MuiTypography-caption\": { height: 30, width: 30 },\r\n \"& .MuiDateRangePickerDay-rangeIntervalPreview\": {\r\n height: 30,\r\n width: 30,\r\n },\r\n \"& .MuiDayCalendar-slideTransition\": {\r\n minHeight: 220,\r\n height: 220,\r\n },\r\n }}\r\n slotProps={{\r\n day: { style: { height: 30, width: 30 } },\r\n }}\r\n />\r\n </LocalizationProvider>\r\n </div>\r\n </div>\r\n </Paper>\r\n </ClickAwayListener>\r\n </Popper>\r\n </>\r\n );\r\n};\r\nexport default LCTDateRangePicker;\r\n","import { FC } from \"react\";\r\nimport CloseOutlinedIcon from \"@mui/icons-material/CloseOutlined\";\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n DialogTitle,\r\n IconButton,\r\n Typography,\r\n} from \"@mui/material\";\r\n\r\nimport LEAPIcon from \"../../images/leap-icon\";\r\nimport WarningIcon from \"../../images/warning-icon\";\r\n\r\ninterface IDialogProps {\r\n actions?: React.ReactNode;\r\n children: React.ReactNode;\r\n closeIcon?: boolean;\r\n hideOverflow?: boolean;\r\n isOpen: boolean;\r\n key?: React.Key | null | undefined;\r\n maxWidth?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\r\n minWidth?: number;\r\n onClose?: () => void;\r\n showWarningIcon?: boolean;\r\n title: string;\r\n}\r\n\r\nconst LCTDialog: FC<IDialogProps> = ({\r\n actions,\r\n children,\r\n closeIcon,\r\n hideOverflow,\r\n isOpen,\r\n key,\r\n maxWidth,\r\n minWidth,\r\n onClose,\r\n showWarningIcon,\r\n title,\r\n}) => {\r\n return (\r\n <>\r\n <Dialog key={key} open={isOpen} maxWidth={maxWidth || \"xl\"}>\r\n <DialogContent\r\n sx={\r\n hideOverflow\r\n ? {\r\n padding: 0,\r\n minWidth: minWidth || 400,\r\n overflowY: \"hidden\",\r\n }\r\n : { padding: 0, minWidth: minWidth || 400 }\r\n }\r\n >\r\n <DialogTitle style={{ backgroundColor: \"#f0f1f2\", padding: 0 }}>\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n display: \"flex\",\r\n minHeight: 28,\r\n paddingLeft: 8,\r\n verticalAlign: \"center\",\r\n }}\r\n >\r\n <LEAPIcon />\r\n <div style={{ flex: 1, paddingLeft: 5 }}>\r\n <Typography variant=\"body1\">{title}</Typography>\r\n </div>\r\n <div>\r\n {closeIcon && (\r\n <IconButton\r\n disableRipple\r\n disableFocusRipple\r\n disableTouchRipple\r\n sx={{\r\n borderRadius: 0,\r\n \":hover\": {\r\n backgroundColor: \"#c42b1c\",\r\n \".MuiSvgIcon-root\": {\r\n path: { color: \"#ffffff\" },\r\n },\r\n },\r\n }}\r\n onClick={() => {\r\n if (onClose) {\r\n onClose();\r\n }\r\n }}\r\n >\r\n <CloseOutlinedIcon style={{ height: 20 }} />\r\n </IconButton>\r\n )}\r\n </div>\r\n </div>\r\n </DialogTitle>\r\n <div style={{ display: \"flex\", minHeight: 120 }}>\r\n {!!showWarningIcon && (\r\n <div\r\n style={{\r\n marginLeft: 15,\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n }}\r\n >\r\n <WarningIcon />\r\n </div>\r\n )}\r\n <div\r\n style={{\r\n flex: 1,\r\n marginTop: \"auto\",\r\n marginBottom: \"auto\",\r\n marginLeft: 15,\r\n marginRight: 15,\r\n }}\r\n >\r\n {children}\r\n </div>\r\n </div>\r\n </DialogContent>\r\n {actions && (\r\n <DialogActions\r\n style={{\r\n borderTop: \"1px solid rgba(224, 224, 224, 1)\",\r\n backgroundColor: \"rgb(241, 243, 249)\",\r\n }}\r\n >\r\n {actions}\r\n </DialogActions>\r\n )}\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTDialog;\r\n","import { Divider, DividerProps } from \"@mui/material\";\r\n\r\nconst LCTDivider = (props: DividerProps) => {\r\n return <Divider {...props} />;\r\n};\r\n\r\nexport default LCTDivider;\r\n","import { Drawer, DrawerProps } from \"@mui/material\";\r\nimport { createRef, useCallback, useState } from \"react\";\r\n\r\ninterface IDrawerProps extends DrawerProps {\r\n leftContent: React.ReactNode;\r\n rightContent: React.ReactNode;\r\n height: number | string;\r\n defaultDrawerWidth: number;\r\n minDrawerWidth?: number;\r\n}\r\n\r\nconst LCTDrawer = (props: IDrawerProps) => {\r\n const [drawerWidth, setDrawerWidth] = useState(props.defaultDrawerWidth);\r\n const targetRef = createRef<HTMLInputElement>();\r\n\r\n const currentMinDrawerWidth = props.minDrawerWidth\r\n ? props.minDrawerWidth\r\n : 500;\r\n const maxDrawerWidth = (targetRef.current?.clientWidth || 1100) - 250;\r\n\r\n const handleMouseDown = () => {\r\n document.addEventListener(\"mouseup\", handleMouseUp, true);\r\n document.addEventListener(\"mousemove\", handleMouseMove, true);\r\n };\r\n\r\n const handleMouseUp = () => {\r\n document.removeEventListener(\"mouseup\", handleMouseUp, true);\r\n document.removeEventListener(\"mousemove\", handleMouseMove, true);\r\n };\r\n\r\n const handleMouseMove = useCallback(\r\n (e: any) => {\r\n const newWidth = e.clientX - document.body.offsetLeft;\r\n if (newWidth > currentMinDrawerWidth && newWidth < maxDrawerWidth) {\r\n setDrawerWidth(newWidth);\r\n }\r\n },\r\n [maxDrawerWidth],\r\n );\r\n\r\n return (\r\n <div ref={targetRef}>\r\n <Drawer\r\n {...props}\r\n style={{\r\n flexShrink: 0,\r\n }}\r\n variant=\"permanent\"\r\n slotProps={{\r\n paper: {\r\n style: {\r\n width: drawerWidth,\r\n top: 130,\r\n height: props.height,\r\n maxHeight: props.height,\r\n },\r\n },\r\n }}\r\n >\r\n <div\r\n onMouseDown={() => handleMouseDown()}\r\n style={{\r\n width: \"5px\",\r\n cursor: \"ew-resize\",\r\n padding: \"4px 0 0\",\r\n borderTop: \"1px solid #ddd\",\r\n position: \"absolute\",\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n zIndex: 100,\r\n backgroundColor: \"#f4f7f9\",\r\n }}\r\n />\r\n {props.leftContent}\r\n </Drawer>\r\n <div\r\n style={{\r\n width: (targetRef.current?.clientWidth || 1100) - drawerWidth,\r\n float: \"right\",\r\n }}\r\n >\r\n {props.rightContent}\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTDrawer;\r\n","import { FC, ReactNode } from \"react\";\r\nimport { LCTButton } from \"../button\";\r\n\r\ninterface IFooterProps {\r\n leftComponents?: ReactNode;\r\n rightComponents?: ReactNode;\r\n onCancel?: () => void;\r\n onClose?: () => void;\r\n onOK?: () => void;\r\n onSaveDisable?: boolean;\r\n}\r\n\r\nconst LCTFooter: FC<IFooterProps> = ({\r\n leftComponents,\r\n rightComponents,\r\n onCancel,\r\n onClose,\r\n onOK,\r\n onSaveDisable,\r\n}) => {\r\n return (\r\n <div\r\n style={{\r\n alignItems: \"center\",\r\n backgroundColor: \"rgb(240, 241, 242)\",\r\n borderTop: \"1px solid #d8d8d8\",\r\n display: \"flex\",\r\n height: \"35px\",\r\n padding: \"12px 15px\",\r\n }}\r\n >\r\n {leftComponents && <>{leftComponents}</>}\r\n <div className=\"flex1\"></div>\r\n {rightComponents && <>{rightComponents}</>}\r\n {onOK && (\r\n <div style={{ marginRight: 5 }}>\r\n <LCTButton\r\n color=\"primary\"\r\n disabled={onSaveDisable ? onSaveDisable : false}\r\n onClick={onOK}\r\n size=\"small\"\r\n >\r\n OK\r\n </LCTButton>\r\n </div>\r\n )}\r\n {onCancel && (\r\n <LCTButton\r\n onClick={onCancel}\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n size=\"small\"\r\n >\r\n Cancel\r\n </LCTButton>\r\n )}\r\n {onClose && (\r\n <LCTButton\r\n variant=\"outlined\"\r\n color=\"secondary\"\r\n onClick={onClose}\r\n size=\"small\"\r\n >\r\n Close\r\n </LCTButton>\r\n )}\r\n </div>\r\n );\r\n};\r\n\r\nexport default LCTFooter;\r\n","import { FormControlLabel, FormControlLabelProps } from \"@mui/material\";\r\n\r\nconst LCTFormControlLabel = (props: FormControlLabelProps) => {\r\n return <FormControlLabel {...props} />;\r\n};\r\n\r\nexport default LCTFormControlLabel;\r\n","import { FC, useRef } from \"react\";\r\nimport CloseOutlinedIcon from \"@mui/icons-material/CloseOutlined\";\r\nimport {\r\n Dialog,\r\n DialogActions,\r\n DialogContent,\r\n IconButton,\r\n Tooltip,\r\n Typography,\r\n} from \"@mui/material\";\r\nimport BinIcon from \"../../images/bin-icon\";\r\n\r\ninterface IDialogProps {\r\n children: React.ReactNode;\r\n closeIcon?: boolean;\r\n fullWidth?: boolean;\r\n hideOverflow?: boolean;\r\n isOpen: boolean;\r\n maxWidth?: \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\r\n minWidth?: number;\r\n onDelete?: () => void;\r\n onClose?: () => void;\r\n actions: React.ReactNode;\r\n leftHeaderActions?: React.ReactNode;\r\n title: string;\r\n}\r\n\r\nconst LCTFormDialog: FC<IDialogProps> = ({\r\n children,\r\n closeIcon,\r\n fullWidth,\r\n hideOverflow,\r\n isOpen,\r\n maxWidth,\r\n minWidth,\r\n onDelete,\r\n onClose,\r\n actions,\r\n leftHeaderActions,\r\n title,\r\n}) => {\r\n const refContainer = useRef<HTMLInputElement>(null);\r\n\r\n return (\r\n <>\r\n <Dialog\r\n fullWidth={fullWidth ? fullWidth : false}\r\n maxWidth={maxWidth || \"xl\"}\r\n open={isOpen}\r\n >\r\n <DialogContent\r\n sx={\r\n hideOverflow\r\n ? {\r\n padding: 0,\r\n minWidth: minWidth || 400,\r\n overflowY: \"hidden\",\r\n }\r\n : { padding: 0, minWidth: minWidth || 400 }\r\n }\r\n >\r\n <div style={{ width: \"100%\", backgroundColor: \"#6e7780\" }}>\r\n <div\r\n className=\"displayFlex\"\r\n style={{ alignItems: \"center\", minHeight: 28 }}\r\n >\r\n {onDelete && (\r\n <Tooltip title=\"Delete\">\r\n <IconButton\r\n aria-label=\"delete\"\r\n onClick={onDelete}\r\n sx={{\r\n borderRadius: 0,\r\n color: \"#ffffff\",\r\n padding: \"9px 8px\",\r\n }}\r\n >\r\n <BinIcon />\r\n </IconButton>\r\n </Tooltip>\r\n )}\r\n <div ref={refContainer}>{leftHeaderActions}</div>\r\n <div\r\n className=\"flex1\"\r\n style={{ marginRight: refContainer?.current?.offsetWidth || 0 }}\r\n >\r\n <Typography\r\n variant=\"body1\"\r\n sx={{ textAlign: \"center\", color: \"#ffffff\" }}\r\n >\r\n {title}\r\n </Typography>\r\n </div>\r\n <div>\r\n {closeIcon && (\r\n <IconButton\r\n disableRipple\r\n disableFocusRipple\r\n disableTouchRipple\r\n sx={{\r\n borderRadius: 0,\r\n padding: \"7px 6px\",\r\n \":hover\": {\r\n backgroundColor: \"#c42b1c\",\r\n color: \"#ffffff\",\r\n \".MuiSvgIcon-root\": {\r\n path: { color: \"#ffffff\" },\r\n },\r\n },\r\n }}\r\n onClick={() => {\r\n if (onClose) {\r\n onClose();\r\n }\r\n }}\r\n >\r\n <CloseOutlinedIcon\r\n style={{ color: \"#ffffff\", height: 20 }}\r\n />\r\n </IconButton>\r\n )}\r\n </div>\r\n </div>\r\n </div>\r\n <div\r\n className=\"displayFlex\"\r\n style={{ alignItems: \"baseline\", minHeight: 120 }}\r\n >\r\n <div className=\"flex1 formBody\">{children}</div>\r\n </div>\r\n </DialogContent>\r\n <DialogActions>{actions}</DialogActions>\r\n </Dialog>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTFormDialog;\r\n","import Grid, { GridProps } from \"@mui/material/Grid\";\r\n\r\nconst LCTGrid = (props: GridProps) => {\r\n return <Grid {...props} />;\r\n};\r\n\r\nexport default LCTGrid;\r\n","import { IconButton, IconButtonProps } from \"@mui/material\";\r\n\r\nconst LCTIconButton = (props: IconButtonProps) => {\r\n return <IconButton {...props}>{props.children}</IconButton>;\r\n};\r\n\r\nexport default LCTIconButton;\r\n","import { InputAdornment, InputAdornmentProps } from \"@mui/material\";\r\n\r\nconst LCTInputAdornment = (props: InputAdornmentProps) => {\r\n return (\r\n <InputAdornment\r\n {...props}\r\n position={props.position ? props.position : \"start\"}\r\n >\r\n {props.children}\r\n </InputAdornment>\r\n );\r\n};\r\n\r\nexport default LCTInputAdornment;\r\n","import { InputLabel, InputLabelProps } from \"@mui/material\";\r\n\r\nconst LCTInputLabel = (props: InputLabelProps) => {\r\n return <InputLabel {...props}>{props.children}</InputLabel>;\r\n};\r\n\r\nexport default LCTInputLabel;\r\n","import { List, ListProps } from \"@mui/material\";\r\n\r\nconst LCTList = (props: ListProps) => {\r\n return <List {...props}>{props.children}</List>;\r\n};\r\n\r\nexport default LCTList;\r\n","import ListItem, { ListItemOwnProps } from \"@mui/material/ListItem\";\r\n\r\nconst LCTListItem = (props: ListItemOwnProps) => {\r\n return <ListItem {...props}>{props.children}</ListItem>;\r\n};\r\n\r\nexport default LCTListItem;\r\n","import { ListItemButton, ListItemButtonProps } from \"@mui/material\";\r\n\r\nconst LCTListItemButton = (props: ListItemButtonProps) => {\r\n return <ListItemButton {...props}>{props.children}</ListItemButton>;\r\n};\r\n\r\nexport default LCTListItemButton;\r\n","import ListItemText, { TypographyProps } from \"@mui/material/Typography\";\r\n\r\nconst LCTListItemText = (props: TypographyProps) => {\r\n return <ListItemText {...props}>{props.children}</ListItemText>;\r\n};\r\n\r\nexport default LCTListItemText;\r\n","import React from \"react\";\nimport { Backdrop, CircularProgress } from \"@mui/material\";\n\ninterface IProps {\n overlay?: boolean;\n}\n\nconst LCTLoader: React.FC<IProps> = ({ overlay }) => (\n <>\n <Backdrop open={true} invisible={!overlay} style={{ zIndex: 1350 }}>\n <CircularProgress\n style={{\n position: \"absolute\",\n left: \"calc(50vw - 20px)\",\n top: \"calc(50vh - 20px)\",\n }}\n />\n </Backdrop>\n </>\n);\n\nexport default LCTLoader;\n","import { Menu, MenuProps } from \"@mui/material\";\r\n\r\nconst LCTMenu = (props: MenuProps) => {\r\n return <Menu {...props}>{props.children}</Menu>;\r\n};\r\n\r\nexport default LCTMenu;\r\n","import { MenuItem, MenuItemProps } from \"@mui/material\";\r\n\r\nconst LCTMenuItem = (props: MenuItemProps) => {\r\n return <MenuItem {...props}>{props.children}</MenuItem>;\r\n};\r\n\r\nexport default LCTMenuItem;\r\n","import { NumericFormat } from \"react-number-format\";\r\nimport { Typography } from \"@mui/material\";\r\n\r\ninterface IProps {\r\n align?: \"inherit\" | \"left\" | \"center\" | \"right\" | \"justify\";\r\n bold?: boolean;\r\n color?: string;\r\n displayAsQty?: boolean;\r\n hideNoValue?: boolean;\r\n noValueText?: string;\r\n notCurrency?: boolean;\r\n showNegative?: boolean;\r\n prefix?: string;\r\n value?: number;\r\n}\r\n\r\nconst LCTNumberDisplay = ({\r\n align,\r\n bold,\r\n color,\r\n displayAsQty,\r\n hideNoValue,\r\n noValueText,\r\n notCurrency,\r\n showNegative,\r\n prefix,\r\n value,\r\n}: IProps) => {\r\n return (\r\n <>\r\n {hideNoValue && !value ? (\r\n <>\r\n {noValueText && (\r\n <Typography\r\n align={align}\r\n sx={{\r\n fontWeight: bold ? 600 : undefined,\r\n color: color ? color : undefined,\r\n }}\r\n >\r\n {noValueText}\r\n </Typography>\r\n )}\r\n </>\r\n ) : (\r\n <Typography\r\n align={align}\r\n sx={{\r\n fontWeight: bold ? 600 : undefined,\r\n color: color ? color : undefined,\r\n }}\r\n >\r\n {showNegative && value !== 0 && \"(\"}\r\n <NumericFormat\r\n value={(value || 0).toFixed(displayAsQty ? 0 : 2)}\r\n displayType=\"text\"\r\n thousandSeparator={notCurrency ? false : true}\r\n prefix={prefix ? prefix : undefined}\r\n fixedDecimalScale={notCurrency ? false : true}\r\n />\r\n {showNegative && value !== 0 && \")\"}\r\n </Typography>\r\n )}\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTNumberDisplay;\r\n","import { forwardRef } from \"react\";\nimport { NumericFormat } from \"react-number-format\";\nimport { OutlinedInput } from \"@mui/material\";\n\ninterface INumberFormatProps {\n disabled?: boolean;\n name: string;\n onChange: (event: { target: { name: string; value: string } }) => void;\n}\n\nconst NumberFormatCustom = forwardRef((props: INumberFormatProps, ref) => {\n const { onChange, ...other } = props;\n\n return (\n <NumericFormat\n {...other}\n getInputRef={ref}\n onValueChange={(value: any) => {\n onChange({\n target: {\n name: props.name,\n value: value.value,\n },\n });\n }}\n allowNegative={false}\n />\n );\n});\n\nNumberFormatCustom.displayName = \"LCTNumberInputNumericFormat\";\n\ninterface IProps {\n autoFocus?: boolean;\n decimalScale?: number;\n disabled?: boolean;\n placeholder?: string;\n updater?: (event: any) => void;\n size?: \"medium\" | \"small\";\n value?: number;\n width?: number;\n}\n\nconst LCTNumberInput = ({\n autoFocus,\n disabled,\n placeholder,\n size,\n updater,\n value,\n width,\n ...props\n}: IProps) => {\n return (\n <>\n <OutlinedInput\n autoFocus={autoFocus}\n disabled={disabled}\n inputComponent={NumberFormatCustom as any}\n onBlur={(event) => {\n if (updater) {\n updater(event.target.value);\n }\n }}\n placeholder={placeholder}\n size={size ? size : \"small\"}\n sx={{\n width: width ? width : 130,\n \"& .MuiInputBase-input\": { textAlign: \"end\" },\n \"& .MuiOutlinedInput-notchedOutline \": {\n border: \"1px solid rgba(0, 0, 0, 0.23)\",\n },\n \"&.Mui-disabled .MuiOutlinedInput-notchedOutline \": {\n border: \"1px solid rgba(0, 0, 0, 0.23)\",\n },\n }}\n value={value}\n {...props}\n />\n </>\n );\n};\n\nexport default LCTNumberInput;\n","import { Select, SelectProps, SelectChangeEvent } from \"@mui/material\";\r\n\r\ninterface IOnChange {\r\n (value: string[]): void;\r\n (event: SelectChangeEvent<string>, child: React.ReactNode): void;\r\n}\r\ntype ISelectProps = SelectProps & {\r\n onChange: IOnChange;\r\n originalValue?: string[];\r\n fullList?: string[];\r\n};\r\n\r\nconst updateMultiFilter = (\r\n currentValue: string[],\r\n originalValue: string[],\r\n fullList: string[],\r\n) => {\r\n let list: string[] = [];\r\n if (currentValue.includes(\"All\") && !originalValue.includes(\"All\")) {\r\n list = fullList.concat(\"All\");\r\n } else if (!currentValue.includes(\"All\") && originalValue.includes(\"All\")) {\r\n list = [];\r\n } else if (\r\n currentValue.filter((v) => v !== \"All\").length === fullList.length\r\n ) {\r\n list = currentValue.concat(\"All\");\r\n } else {\r\n list = currentValue.filter((v) => v !== \"All\");\r\n }\r\n return list;\r\n};\r\n\r\nconst LCTSelect = (props: ISelectProps) => {\r\n return (\r\n <Select\r\n fullWidth\r\n sx={props.sx}\r\n variant=\"outlined\"\r\n value={props.value}\r\n disabled={props.disabled}\r\n MenuProps={\r\n props.MenuProps && !!props.multiple\r\n ? {\r\n ...props.MenuProps,\r\n sx: {\r\n ...props.MenuProps.sx,\r\n \".MuiButtonBase-root\": {\r\n borderRadius: 0,\r\n padding: \"4px 8px 4px 0px\",\r\n },\r\n },\r\n variant: \"menu\",\r\n slotProps: {\r\n paper: {\r\n sx: {\r\n borderRadius: 0,\r\n },\r\n },\r\n },\r\n }\r\n : {\r\n ...props.MenuProps,\r\n sx: {\r\n ...props.MenuProps?.sx,\r\n \".MuiButtonBase-root\": {\r\n borderRadius: 0,\r\n },\r\n },\r\n variant: \"menu\",\r\n slotProps: {\r\n paper: {\r\n sx: {\r\n borderRadius: 0,\r\n },\r\n },\r\n },\r\n }\r\n }\r\n onChange={(event, child) => {\r\n return !props.multiple\r\n ? props.onChange && props.onChange(event, child)\r\n : props.onChange(\r\n updateMultiFilter(\r\n event.target.value as string[],\r\n props.originalValue || [],\r\n props.fullList || [],\r\n ),\r\n );\r\n }}\r\n renderValue={props.renderValue}\r\n multiple={props.multiple}\r\n >\r\n {props.children}\r\n </Select>\r\n );\r\n};\r\n\r\nexport default LCTSelect;\r\n","import { Snackbar, SnackbarProps } from \"@mui/material\";\r\n\r\nconst LCTSnackbar = (props: SnackbarProps) => {\r\n return (\r\n <Snackbar\r\n anchorOrigin={\r\n props.anchorOrigin\r\n ? props.anchorOrigin\r\n : { vertical: \"bottom\", horizontal: \"right\" }\r\n }\r\n autoHideDuration={props.autoHideDuration ? props.autoHideDuration : 3000}\r\n {...props}\r\n />\r\n );\r\n};\r\n\r\nexport default LCTSnackbar;\r\n","import { Tooltip, TooltipProps } from \"@mui/material\";\r\n\r\nconst LCTTooltip = (props: TooltipProps) => {\r\n return <Tooltip {...props}>{props.children}</Tooltip>;\r\n};\r\n\r\nexport default LCTTooltip;\r\n","import { Avatar } from \"@mui/material\";\r\n\r\nimport { LCTTooltip } from \"../tooltip\";\r\n\r\ninterface IStaffAvatarProps {\r\n staffInitials?: string;\r\n hideMargin?: boolean;\r\n fullName?: string;\r\n}\r\n\r\nconst LCTStaffAvatar = (props: IStaffAvatarProps) => {\r\n return (\r\n <LCTTooltip title={props?.fullName || \"\"}>\r\n <Avatar\r\n sx={{\r\n height: 28,\r\n width: 28,\r\n marginLeft: props?.hideMargin ? 0 : \"auto\",\r\n marginRight: props?.hideMargin ? 0 : \"auto\",\r\n fontSize: 12,\r\n backgroundColor: \"#a7a7a7\",\r\n }}\r\n >\r\n {props?.staffInitials?.toUpperCase() || \"?\"}\r\n </Avatar>\r\n </LCTTooltip>\r\n );\r\n};\r\n\r\nexport default LCTStaffAvatar;\r\n","import { SvgIconProps, SvgIcon } from \"@mui/material\";\r\n\r\nconst LCTSvgIcon = (props: SvgIconProps) => {\r\n return <SvgIcon {...props}>{props.children}</SvgIcon>;\r\n};\r\n\r\nexport default LCTSvgIcon;\r\n","import { Tab, TabProps } from \"@mui/material\";\r\n\r\nconst LCTTab = (props: TabProps) => {\r\n return <Tab {...props}>{props.children}</Tab>;\r\n};\r\n\r\nexport default LCTTab;\r\n","import { Tabs, TabsProps } from \"@mui/material\";\r\n\r\nconst LCTTabs = (props: TabsProps) => {\r\n return <Tabs {...props}>{props.children}</Tabs>;\r\n};\r\n\r\nexport default LCTTabs;\r\n","import { TextareaAutosize, TextareaAutosizeProps } from \"@mui/material\";\r\n\r\nconst LCTTextareaAutosize = (props: TextareaAutosizeProps) => {\r\n const css = `.textareaautosize textarea {\r\n border: 1px solid rgba(0, 0, 0, 0.23);\r\n border-radius: 0;\r\n padding: 4px;\r\n font-family: \"Segoe UI\";\r\n color: #444444;\r\n }\r\n\r\n .textareaautosize textarea:focus {\r\n border-radius: 0;\r\n border: 1px solid #0078d7;\r\n outline: none;\r\n }`;\r\n\r\n return (\r\n <>\r\n <style>{css}</style>\r\n <div className=\"textareaautosize\">\r\n <TextareaAutosize {...props} />\r\n </div>\r\n </>\r\n );\r\n};\r\n\r\nexport default LCTTextareaAutosize;\r\n","import { TextField, TextFieldProps } from \"@mui/material\";\r\n\r\nconst LCTTextfield = (props: TextFieldProps) => {\r\n return <TextField variant=\"outlined\" {...props} />;\r\n};\r\n\r\nexport default LCTTextfield;\r\n","import Typography, { TypographyProps } from \"@mui/material/Typography\";\r\n\r\nconst LCTTypography = (props: TypographyProps) => {\r\n return (\r\n <Typography variant={props.variant || \"body1\"} {...props}>\r\n {props.children}\r\n </Typography>\r\n );\r\n};\r\n\r\nexport default LCTTypography;\r\n","import { createTheme } from \"@mui/material/styles\";\r\n\r\nconst fontColor = \"#444444\";\r\nconst fontSize = 13;\r\nconst fontWeight = 400;\r\nconst h6FontSize = \"0.95rem\";\r\nconst hoverColor = \"#d7ecf6\";\r\nconst lineHeight = 1.4285;\r\nconst mainColor = \"#1e365e\";\r\n\r\nconst theme = createTheme({\r\n palette: { primary: { main: mainColor }, secondary: { main: \"#ffffff\" } },\r\n typography: {\r\n fontFamily: \"Segoe UI\",\r\n fontSize: fontSize,\r\n body1: { color: fontColor },\r\n },\r\n components: {\r\n MuiTypography: {\r\n variants: [\r\n { props: { variant: \"body1\" }, style: { fontSize: fontSize } },\r\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\r\n ],\r\n },\r\n MuiButton: {\r\n variants: [\r\n {\r\n props: { color: \"secondary\" },\r\n style: {\r\n backgroundColor: \"#ffffff\",\r\n color: \"#0060aa\",\r\n borderColor: mainColor,\r\n \":hover\": {\r\n borderColor: mainColor,\r\n backgroundColor: hoverColor,\r\n },\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n root: {\r\n boxShadow: \"none\",\r\n height: 33,\r\n width: 130,\r\n padding: 7,\r\n borderRadius: 0,\r\n textTransform: \"none\",\r\n fontWeight: fontWeight,\r\n fontSize: fontSize,\r\n lineHeight: lineHeight,\r\n \":hover\": {\r\n boxShadow: \"none\",\r\n },\r\n },\r\n },\r\n },\r\n MuiIconButton: { styleOverrides: { root: { padding: 4 } } },\r\n MuiInputLabel: {\r\n styleOverrides: { root: { fontSize: fontSize, whiteSpace: \"normal\" } },\r\n },\r\n MuiMenuItem: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: fontSize,\r\n padding: \"2px 4px\",\r\n borderRadius: 5,\r\n \"&.Mui-focusVisible\": { backgroundColor: \"transparent !important\" },\r\n \"&.Mui-selected\": { backgroundColor: \"#e8eaed !important\" },\r\n },\r\n },\r\n },\r\n MuiPaper: {\r\n styleOverrides: {\r\n root: { borderRadius: 5, backgroundColor: \"#f9f9f9\" },\r\n },\r\n },\r\n MuiList: { styleOverrides: { root: { padding: 0 } } },\r\n MuiOutlinedInput: {\r\n styleOverrides: {\r\n root: { borderRadius: 0 },\r\n },\r\n },\r\n MuiInputBase: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: fontSize,\r\n height: 25,\r\n backgroundColor: \"#ffffff\",\r\n lineHeight: lineHeight,\r\n \"& .Mui-disabled\": {\r\n backgroundColor: \"#f3f3f3\",\r\n WebkitTextFillColor: fontColor,\r\n },\r\n \"& .MuiSelect-select\": {\r\n paddingRight: \"22px !important\",\r\n },\r\n },\r\n input: { padding: \"4px !important\" },\r\n },\r\n },\r\n MuiSelect: {\r\n variants: [\r\n {\r\n props: { variant: \"outlined\" },\r\n style: {\r\n fontSize: fontSize,\r\n lineHeight: lineHeight,\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n select: { padding: 4, lineHeight: lineHeight },\r\n },\r\n },\r\n MuiDialog: {\r\n variants: [\r\n {\r\n props: { maxWidth: \"sm\" },\r\n style: { \"& .MuiPaper-root \": { maxWidth: 400 } },\r\n },\r\n ],\r\n styleOverrides: { paper: { borderRadius: 9 } },\r\n },\r\n MuiDialogTitle: {\r\n styleOverrides: {\r\n root: { padding: 5, fontSize: fontSize },\r\n },\r\n },\r\n MuiDialogContent: {\r\n styleOverrides: {\r\n root: { padding: 5 },\r\n },\r\n },\r\n MuiDialogActions: {\r\n styleOverrides: {\r\n root: { borderTop: \"1px solid #E6E6E6\", backgroundColor: \"#f0f1f2\" },\r\n },\r\n },\r\n MuiFormControlLabel: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled.MuiTypography-root\": {\r\n color: \"rgba(0, 0, 0, 0.5) !importanCorrespondencet\",\r\n },\r\n },\r\n },\r\n },\r\n MuiCheckbox: {\r\n styleOverrides: {\r\n root: { padding: 0 },\r\n },\r\n },\r\n MuiTextField: {\r\n styleOverrides: {\r\n root: {\r\n \"& .MuiInputBase-root\": { padding: 0 },\r\n \"& .MuiInputBase-input\": { padding: 0 },\r\n \"& .Mui-disabled\": {\r\n WebkitTextFillColor: \"#444444 !important\",\r\n },\r\n },\r\n },\r\n },\r\n MuiTooltip: {\r\n styleOverrides: {\r\n tooltip: {\r\n backgroundColor: \"#ffffff\",\r\n border: \"1px solid #000000\",\r\n color: \"#000000\",\r\n borderRadius: 8,\r\n paddingTop: 2,\r\n paddingBottom: 2,\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default theme;\r\n","import { createTheme } from \"@mui/material/styles\";\n\n// ── Design tokens ──────────────────────────────────────────────────────────────\nconst fontFamily = \"Segoe UI\";\nconst fontSize = 13;\nconst fontWeight = 400;\nconst fontColor = \"#444444\";\nconst lineHeight = 1.4285;\n\nconst h6FontSize = \"0.95rem\";\n\nconst primaryColor = \"#1e365e\";\nconst secondaryColor = \"#ffffff\";\nconst linkColor = \"#0060aa\";\nconst hoverColor = \"#d7ecf6\";\nconst selectedColor = \"#cde6f7\";\nconst menuSelectedColor = \"#e8eaed\";\nconst disabledBg = \"#f3f3f3\";\n\nconst paperBg = \"#f9f9f9\";\nconst appBarBg = \"#fafafa\";\nconst drawerBg = \"#f4f7f9\";\nconst dialogActionsBg = \"#f0f1f2\";\n\nconst borderLight = \"#d8d8d8\";\nconst borderDialog = \"#e6e6e6\";\nconst tooltipBorder = \"#000000\";\nconst focusBorder = \"#0078d7\";\n\nconst errorColor = \"#c42b1c\";\n\n// ── Theme ──────────────────────────────────────────────────────────────────────\nconst leapDesktopTheme = createTheme({\n palette: {\n primary: { main: primaryColor },\n secondary: { main: secondaryColor },\n error: { main: errorColor },\n },\n typography: {\n fontFamily,\n fontSize,\n body1: { color: fontColor },\n },\n components: {\n MuiTypography: {\n variants: [\n { props: { variant: \"body1\" }, style: { fontSize } },\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\n ],\n },\n\n MuiButton: {\n variants: [\n {\n props: { color: \"secondary\" },\n style: {\n backgroundColor: secondaryColor,\n color: linkColor,\n borderColor: primaryColor,\n \":hover\": {\n borderColor: primaryColor,\n backgroundColor: hoverColor,\n },\n },\n },\n ],\n styleOverrides: {\n root: {\n boxShadow: \"none\",\n height: 33,\n width: 130,\n padding: 7,\n borderRadius: 0,\n textTransform: \"none\",\n fontWeight,\n fontSize,\n lineHeight,\n \":hover\": { boxShadow: \"none\" },\n },\n },\n },\n\n MuiIconButton: {\n styleOverrides: { root: { padding: 4 } },\n },\n\n MuiInputLabel: {\n styleOverrides: { root: { fontSize, whiteSpace: \"normal\" } },\n },\n\n MuiMenuItem: {\n styleOverrides: {\n root: {\n fontSize,\n padding: \"2px 4px\",\n borderRadius: 5,\n \"&.Mui-focusVisible\": { backgroundColor: \"transparent !important\" },\n \"&.Mui-selected\": {\n backgroundColor: `${menuSelectedColor} !important`,\n },\n },\n },\n },\n\n MuiPaper: {\n styleOverrides: {\n root: { borderRadius: 5, backgroundColor: paperBg },\n },\n },\n\n MuiList: {\n styleOverrides: { root: { padding: 0 } },\n },\n\n MuiOutlinedInput: {\n styleOverrides: { root: { borderRadius: 0 } },\n },\n\n MuiInputBase: {\n styleOverrides: {\n root: {\n fontSize,\n height: 25,\n backgroundColor: secondaryColor,\n lineHeight,\n \"& .Mui-disabled\": {\n backgroundColor: disabledBg,\n WebkitTextFillColor: fontColor,\n },\n \"& .MuiSelect-select\": {\n paddingRight: \"22px !important\",\n },\n },\n input: { padding: \"4px !important\" },\n },\n },\n\n MuiSelect: {\n variants: [\n {\n props: { variant: \"outlined\" },\n style: { fontSize, lineHeight },\n },\n ],\n styleOverrides: {\n select: { padding: 4, lineHeight },\n },\n },\n\n MuiDialog: {\n variants: [\n {\n props: { maxWidth: \"sm\" },\n style: { \"& .MuiPaper-root\": { maxWidth: 400 } },\n },\n ],\n styleOverrides: { paper: { borderRadius: 9 } },\n },\n\n MuiDialogTitle: {\n styleOverrides: { root: { padding: 5, fontSize } },\n },\n\n MuiDialogContent: {\n styleOverrides: { root: { padding: 5 } },\n },\n\n MuiDialogActions: {\n styleOverrides: {\n root: {\n borderTop: `1px solid ${borderDialog}`,\n backgroundColor: dialogActionsBg,\n },\n },\n },\n\n MuiFormControlLabel: {\n styleOverrides: {\n root: {\n \"& .Mui-disabled.MuiTypography-root\": {\n color: \"rgba(0, 0, 0, 0.5) !important\",\n },\n },\n },\n },\n\n MuiCheckbox: {\n styleOverrides: { root: { padding: 0 } },\n },\n\n MuiTextField: {\n styleOverrides: {\n root: {\n \"& .MuiInputBase-root\": { padding: 0 },\n \"& .MuiInputBase-input\": { padding: 0 },\n \"& .Mui-disabled\": {\n WebkitTextFillColor: `${fontColor} !important`,\n },\n },\n },\n },\n\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n backgroundColor: secondaryColor,\n border: `1px solid ${tooltipBorder}`,\n color: tooltipBorder,\n borderRadius: 8,\n paddingTop: 2,\n paddingBottom: 2,\n },\n },\n },\n\n MuiAppBar: {\n styleOverrides: {\n root: {\n backgroundColor: appBarBg,\n borderBottom: `1px solid ${borderLight}`,\n boxShadow: \"none\",\n color: fontColor,\n },\n },\n },\n\n MuiDrawer: {\n styleOverrides: {\n paper: { backgroundColor: drawerBg },\n },\n },\n },\n});\n\nexport default leapDesktopTheme;\n\n// Named token exports for use in component-level styling\nexport const leapDesktopTokens = {\n colors: {\n primary: primaryColor,\n secondary: secondaryColor,\n font: fontColor,\n link: linkColor,\n hover: hoverColor,\n selected: selectedColor,\n menuSelected: menuSelectedColor,\n disabledBg,\n paperBg,\n appBarBg,\n drawerBg,\n dialogActionsBg,\n borderLight,\n borderDialog,\n focusBorder,\n error: errorColor,\n },\n typography: {\n fontFamily,\n fontSize,\n fontWeight,\n lineHeight,\n h6FontSize,\n },\n} as const;\n","import { createTheme, responsiveFontSizes } from \"@mui/material/styles\";\r\n\r\n/**\r\n * LEAP Web theme.\r\n *\r\n * Shares the LEAP brand palette with `leap-desktop`, but sizes for the browser:\r\n * comfortable density, auto-width buttons, softened corners, WCAG-visible focus\r\n * rings and touch-sized targets on coarse pointers.\r\n *\r\n * Use this for browser-delivered apps. Use `leap-desktop` where the UI must sit\r\n * alongside the LEAP desktop application and match it pixel for pixel.\r\n */\r\n\r\n// ── Design tokens: brand (shared with leap-desktop) ────────────────────────────\r\nconst primaryColor = \"#1e365e\";\r\nconst secondaryColor = \"#ffffff\";\r\nconst linkColor = \"#0060aa\";\r\nconst hoverColor = \"#d7ecf6\";\r\nconst selectedColor = \"#cde6f7\";\r\nconst menuSelectedColor = \"#e8eaed\";\r\nconst disabledBg = \"#f3f3f3\";\r\nconst fontColor = \"#444444\";\r\nconst errorColor = \"#c42b1c\";\r\nconst focusColor = \"#0078d7\";\r\n\r\n// ── Design tokens: web-specific ────────────────────────────────────────────────\r\n// Inter is optional. When it is not loaded the stack falls through to the\r\n// platform UI font, so nothing breaks on macOS, iOS, Android or Linux — which is\r\n// the reason this theme cannot simply reuse desktop's bare \"Segoe UI\".\r\nconst fontFamily = [\r\n \"Inter\",\r\n \"-apple-system\",\r\n \"BlinkMacSystemFont\",\r\n '\"Segoe UI\"',\r\n \"Roboto\",\r\n '\"Helvetica Neue\"',\r\n \"Arial\",\r\n \"sans-serif\",\r\n].join(\", \");\r\n\r\nconst fontSize = 14;\r\nconst fontWeight = 400;\r\nconst fontWeightMedium = 500;\r\nconst fontWeightBold = 600;\r\nconst lineHeight = 1.4285;\r\n\r\nconst h5FontSize = \"1.5rem\";\r\nconst h6FontSize = \"1.125rem\";\r\nconst captionFontSize = \"0.75rem\";\r\n\r\nconst fontColorSecondary = \"#6b6b6b\";\r\n\r\nconst pageBg = \"#f5f7fa\";\r\nconst paperBg = \"#ffffff\";\r\nconst appBarBg = \"#ffffff\";\r\nconst drawerBg = \"#f4f7f9\";\r\nconst dialogActionsBg = \"#f7f8fa\";\r\n\r\nconst borderLight = \"#d8d8d8\";\r\nconst borderDialog = \"#e6e6e6\";\r\nconst dividerColor = \"#e6e8eb\";\r\n\r\nconst successColor = \"#1b7f3b\";\r\nconst warningColor = \"#b25e02\";\r\nconst infoColor = linkColor;\r\n\r\n// Control sizing. `small` is the comfortable web default rather than a compact\r\n// one, because the toolbox components (LCTButton, LCTCurrencyInput,\r\n// LCTNumberInput) pass size=\"small\" for you and would otherwise render cramped.\r\nconst controlHeight = 40;\r\nconst controlHeightSmall = 36;\r\nconst controlHeightLarge = 48;\r\nconst touchTargetMin = 44;\r\n\r\nconst radius = 6;\r\nconst radiusLarge = 8;\r\nconst radiusDialog = 12;\r\n\r\nconst shadowSoft = \"0 1px 2px rgba(16, 24, 40, 0.06)\";\r\nconst shadowRaised = \"0 4px 12px rgba(16, 24, 40, 0.10)\";\r\nconst shadowOverlay = \"0 12px 32px rgba(16, 24, 40, 0.16)\";\r\n\r\n// Applied with `outline` rather than `box-shadow` so it never shifts layout and\r\n// survives forced-colours/high-contrast mode.\r\nconst focusVisible = {\r\n outline: `2px solid ${focusColor}`,\r\n outlineOffset: 2,\r\n};\r\n\r\n// ── Theme ──────────────────────────────────────────────────────────────────────\r\nconst leapWebTheme = responsiveFontSizes(\r\n createTheme({\r\n shape: { borderRadius: radius },\r\n\r\n palette: {\r\n primary: { main: primaryColor },\r\n secondary: { main: secondaryColor },\r\n error: { main: errorColor },\r\n success: { main: successColor },\r\n warning: { main: warningColor },\r\n info: { main: infoColor },\r\n text: { primary: fontColor, secondary: fontColorSecondary },\r\n background: { default: pageBg, paper: paperBg },\r\n divider: dividerColor,\r\n },\r\n\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n fontWeightMedium,\r\n fontWeightBold,\r\n body1: { color: fontColor, fontSize: \"0.875rem\", lineHeight },\r\n body2: { color: fontColor, fontSize: \"0.8125rem\", lineHeight },\r\n h5: { fontSize: h5FontSize, fontWeight: fontWeightBold },\r\n h6: { fontSize: h6FontSize, fontWeight: fontWeightBold },\r\n subtitle1: { fontSize: \"1rem\", fontWeight: fontWeightMedium },\r\n caption: { fontSize: captionFontSize, color: fontColorSecondary },\r\n button: { textTransform: \"none\", fontWeight: fontWeightMedium },\r\n },\r\n\r\n components: {\r\n MuiCssBaseline: {\r\n styleOverrides: {\r\n body: {\r\n backgroundColor: pageBg,\r\n WebkitFontSmoothing: \"antialiased\",\r\n MozOsxFontSmoothing: \"grayscale\",\r\n },\r\n },\r\n },\r\n\r\n MuiTypography: {\r\n variants: [\r\n { props: { variant: \"body1\" }, style: { fontSize: \"0.875rem\" } },\r\n { props: { variant: \"h6\" }, style: { fontSize: h6FontSize } },\r\n ],\r\n },\r\n\r\n MuiButton: {\r\n defaultProps: { disableElevation: true },\r\n variants: [\r\n {\r\n props: { color: \"secondary\" },\r\n style: {\r\n backgroundColor: secondaryColor,\r\n color: linkColor,\r\n borderColor: primaryColor,\r\n \":hover\": {\r\n borderColor: primaryColor,\r\n backgroundColor: hoverColor,\r\n },\r\n },\r\n },\r\n ],\r\n styleOverrides: {\r\n // minHeight rather than height, so a wrapped label grows the button\r\n // instead of overflowing it.\r\n root: {\r\n boxShadow: \"none\",\r\n minHeight: controlHeight,\r\n minWidth: 96,\r\n width: \"auto\",\r\n padding: \"8px 20px\",\r\n borderRadius: radius,\r\n textTransform: \"none\",\r\n fontWeight: fontWeightMedium,\r\n fontSize: \"0.875rem\",\r\n lineHeight,\r\n \":hover\": { boxShadow: \"none\" },\r\n \"&:focus-visible\": focusVisible,\r\n \"@media (pointer: coarse)\": { minHeight: touchTargetMin },\r\n },\r\n sizeSmall: {\r\n minHeight: controlHeightSmall,\r\n minWidth: 88,\r\n padding: \"6px 16px\",\r\n },\r\n sizeLarge: {\r\n minHeight: controlHeightLarge,\r\n padding: \"12px 24px\",\r\n fontSize: \"1rem\",\r\n },\r\n },\r\n },\r\n\r\n MuiIconButton: {\r\n styleOverrides: {\r\n root: {\r\n padding: 8,\r\n \"&:focus-visible\": focusVisible,\r\n \"@media (pointer: coarse)\": {\r\n minHeight: touchTargetMin,\r\n minWidth: touchTargetMin,\r\n },\r\n },\r\n sizeSmall: { padding: 6 },\r\n },\r\n },\r\n\r\n MuiLink: {\r\n defaultProps: { underline: \"hover\" },\r\n styleOverrides: {\r\n root: {\r\n color: linkColor,\r\n \"&:focus-visible\": { ...focusVisible, borderRadius: 2 },\r\n },\r\n },\r\n },\r\n\r\n MuiInputLabel: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n whiteSpace: \"normal\",\r\n color: fontColorSecondary,\r\n },\r\n },\r\n },\r\n\r\n MuiMenuItem: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n padding: \"8px 12px\",\r\n minHeight: controlHeightSmall,\r\n borderRadius: radius,\r\n // Desktop suppresses the focus-visible background. That is a Win32\r\n // convention and it strands keyboard users, so web restores it.\r\n \"&.Mui-focusVisible\": { backgroundColor: hoverColor },\r\n \"&.Mui-selected\": {\r\n backgroundColor: `${menuSelectedColor} !important`,\r\n },\r\n \"@media (pointer: coarse)\": { minHeight: touchTargetMin },\r\n },\r\n },\r\n },\r\n\r\n MuiPaper: {\r\n styleOverrides: {\r\n root: {\r\n borderRadius: radiusLarge,\r\n backgroundColor: paperBg,\r\n backgroundImage: \"none\",\r\n },\r\n elevation1: { boxShadow: shadowSoft },\r\n elevation2: { boxShadow: shadowRaised },\r\n },\r\n },\r\n\r\n MuiMenu: {\r\n styleOverrides: {\r\n paper: { boxShadow: shadowOverlay, borderRadius: radiusLarge },\r\n list: { padding: 4 },\r\n },\r\n },\r\n\r\n MuiList: {\r\n styleOverrides: { root: { padding: 4 } },\r\n },\r\n\r\n MuiOutlinedInput: {\r\n styleOverrides: {\r\n root: {\r\n borderRadius: radius,\r\n backgroundColor: paperBg,\r\n \"&.Mui-focused .MuiOutlinedInput-notchedOutline\": {\r\n borderColor: focusColor,\r\n borderWidth: 2,\r\n },\r\n // MUI 9 moved the size class onto the root; the input element no\r\n // longer carries inputSizeSmall, so the small ramp is a descendant\r\n // selector from here.\r\n \"&.MuiInputBase-sizeSmall .MuiOutlinedInput-input\": {\r\n paddingTop: 8,\r\n paddingBottom: 8,\r\n },\r\n },\r\n // Padding drives the control height: 10 + 10 + (14 * 1.4285) ≈ 40.\r\n //\r\n // Longhands, not the `padding` shorthand. MuiInputBase-inputSizeSmall\r\n // sets paddingTop/Bottom: 1px as longhands, and a shorthand here only\r\n // partially overrides them — which silently yields an asymmetric\r\n // 1px-top/8px-bottom field on every size=\"small\" input.\r\n //\r\n // MUI 9 removed the `inputSizeSmall` override slot, so the small ramp\r\n // is now a nested selector on `input` — the same technique MuiSelect\r\n // below already uses.\r\n input: {\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: 12,\r\n },\r\n // Multiline pads the wrapper, not the inner textarea, so the field can\r\n // grow. Desktop's fixed 25px root height cannot do this.\r\n // MUI 9 also removed `inputMultiline`. The inner reset targets the\r\n // textarea element directly, which survives any further class rename.\r\n multiline: {\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: 12,\r\n \"& textarea\": {\r\n paddingTop: 0,\r\n paddingBottom: 0,\r\n paddingLeft: 0,\r\n paddingRight: 0,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiInputBase: {\r\n styleOverrides: {\r\n root: {\r\n fontSize: \"0.875rem\",\r\n lineHeight,\r\n color: fontColor,\r\n \"& .Mui-disabled\": {\r\n backgroundColor: disabledBg,\r\n WebkitTextFillColor: fontColor,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiSelect: {\r\n variants: [\r\n {\r\n props: { variant: \"outlined\" },\r\n style: { fontSize: \"0.875rem\", lineHeight },\r\n },\r\n ],\r\n styleOverrides: {\r\n // Arrow clearance lives here rather than as a descendant rule on\r\n // MuiInputBase, so it applies to the element it actually describes.\r\n select: {\r\n lineHeight,\r\n minHeight: \"unset\",\r\n paddingTop: 10,\r\n paddingBottom: 10,\r\n paddingLeft: 12,\r\n paddingRight: \"36px !important\",\r\n \"&.MuiInputBase-inputSizeSmall\": {\r\n paddingTop: 8,\r\n paddingBottom: 8,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiDialog: {\r\n // Desktop re-caps maxWidth=\"sm\" to 400px. That is cramped in a browser,\r\n // so web keeps MUI's 600px.\r\n styleOverrides: {\r\n paper: { borderRadius: radiusDialog, boxShadow: shadowOverlay },\r\n },\r\n },\r\n\r\n MuiDialogTitle: {\r\n styleOverrides: {\r\n root: {\r\n padding: \"16px 20px\",\r\n fontSize: h6FontSize,\r\n fontWeight: fontWeightBold,\r\n },\r\n },\r\n },\r\n\r\n MuiDialogContent: {\r\n styleOverrides: { root: { padding: \"8px 20px 20px\" } },\r\n },\r\n\r\n MuiDialogActions: {\r\n styleOverrides: {\r\n root: {\r\n padding: \"12px 20px\",\r\n gap: 8,\r\n borderTop: `1px solid ${borderDialog}`,\r\n backgroundColor: dialogActionsBg,\r\n },\r\n },\r\n },\r\n\r\n MuiFormControlLabel: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled.MuiTypography-root\": {\r\n color: \"rgba(0, 0, 0, 0.5) !important\",\r\n },\r\n },\r\n label: { fontSize: \"0.875rem\" },\r\n },\r\n },\r\n\r\n MuiCheckbox: {\r\n // Desktop uses 0 so LCTCheckbox can control its own spacing. Web needs a\r\n // real hit area, so the box gets padding back.\r\n styleOverrides: {\r\n root: {\r\n padding: 6,\r\n \"&:focus-visible\": { ...focusVisible, outlineOffset: 0 },\r\n },\r\n },\r\n },\r\n\r\n MuiTextField: {\r\n styleOverrides: {\r\n root: {\r\n \"& .Mui-disabled\": {\r\n WebkitTextFillColor: `${fontColor} !important`,\r\n },\r\n },\r\n },\r\n },\r\n\r\n MuiTooltip: {\r\n // Desktop's white-on-black-border tooltip is a Win32 convention. Web uses\r\n // a solid navy tooltip: still LEAP palette, but conventional in a browser.\r\n styleOverrides: {\r\n tooltip: {\r\n backgroundColor: primaryColor,\r\n color: secondaryColor,\r\n fontSize: captionFontSize,\r\n borderRadius: radius,\r\n padding: \"6px 10px\",\r\n },\r\n arrow: { color: primaryColor },\r\n },\r\n },\r\n\r\n MuiAppBar: {\r\n defaultProps: { elevation: 0, color: \"inherit\" },\r\n styleOverrides: {\r\n root: {\r\n backgroundColor: appBarBg,\r\n borderBottom: `1px solid ${borderLight}`,\r\n boxShadow: \"none\",\r\n color: fontColor,\r\n },\r\n },\r\n },\r\n\r\n MuiDrawer: {\r\n styleOverrides: {\r\n paper: {\r\n backgroundColor: drawerBg,\r\n borderRight: `1px solid ${dividerColor}`,\r\n },\r\n },\r\n },\r\n\r\n // Tabs carry no styling in LCTTheme or leap-desktop, so they fall back to\r\n // MUI's uppercase 48px defaults. Web styles them properly.\r\n MuiTabs: {\r\n styleOverrides: {\r\n root: { minHeight: touchTargetMin },\r\n indicator: { height: 2, backgroundColor: primaryColor },\r\n },\r\n },\r\n\r\n MuiTab: {\r\n styleOverrides: {\r\n root: {\r\n textTransform: \"none\",\r\n fontSize: \"0.875rem\",\r\n fontWeight: fontWeightMedium,\r\n minHeight: touchTargetMin,\r\n padding: \"10px 16px\",\r\n color: fontColorSecondary,\r\n \"&.Mui-selected\": { color: primaryColor },\r\n \"&:focus-visible\": { ...focusVisible, outlineOffset: -2 },\r\n },\r\n },\r\n },\r\n\r\n MuiChip: {\r\n styleOverrides: {\r\n root: { borderRadius: radius, fontSize: captionFontSize },\r\n },\r\n },\r\n },\r\n }),\r\n);\r\n\r\nexport default leapWebTheme;\r\n\r\n// Named token exports for use in component-level styling\r\nexport const leapWebTokens = {\r\n colors: {\r\n primary: primaryColor,\r\n secondary: secondaryColor,\r\n font: fontColor,\r\n fontSecondary: fontColorSecondary,\r\n link: linkColor,\r\n hover: hoverColor,\r\n selected: selectedColor,\r\n menuSelected: menuSelectedColor,\r\n disabledBg,\r\n pageBg,\r\n paperBg,\r\n appBarBg,\r\n drawerBg,\r\n dialogActionsBg,\r\n borderLight,\r\n borderDialog,\r\n divider: dividerColor,\r\n focus: focusColor,\r\n error: errorColor,\r\n success: successColor,\r\n warning: warningColor,\r\n info: infoColor,\r\n },\r\n typography: {\r\n fontFamily,\r\n fontSize,\r\n fontWeight,\r\n fontWeightMedium,\r\n fontWeightBold,\r\n lineHeight,\r\n h5FontSize,\r\n h6FontSize,\r\n captionFontSize,\r\n },\r\n sizing: {\r\n controlHeight,\r\n controlHeightSmall,\r\n controlHeightLarge,\r\n touchTargetMin,\r\n radius,\r\n radiusLarge,\r\n radiusDialog,\r\n },\r\n shadows: {\r\n soft: shadowSoft,\r\n raised: shadowRaised,\r\n overlay: shadowOverlay,\r\n },\r\n} as const;\r\n"],"ignoreList":[40,41,42],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,IAAMqF,MAAgB,MACb,kBAACC,GAAD;CAAW,GAAIC;CAAQ,UAAAA,EAAM;AAAoB,CAAA,GCDpDC,MAAuB,MACpB,kBAACC,GAAD;CAAkB,GAAIF;CAAQ,UAAAA,EAAM;AAA2B,CAAA,GCAlEG,KAAsBC,IAAQ,MAClC,kBAACC,GAAD;CACE,YAAY,kBAACjC,IAAD;EAAgB,UAAS;EAAQ,IAAI,EAAE,YAAY,MAAM;CAAI,CAAA;CACzE,GAAI4B;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