theme.keycloak.v2.admin.resources.assets.DatePicker-DTJHSI7E.js.map Maven / Gradle / Ivy
{"version":3,"file":"DatePicker-DTJHSI7E.js","sources":["../../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@patternfly/react-core/dist/esm/helpers/datetimeUtils.js","../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-styles/css/components/CalendarMonth/calendar-month.mjs","../../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@patternfly/react-core/dist/esm/components/CalendarMonth/CalendarMonth.js","../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-styles/css/components/DatePicker/date-picker.mjs","../../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@patternfly/react-icons/dist/esm/icons/outlined-calendar-alt-icon.js","../../../../../node_modules/.pnpm/@[email protected]/node_modules/@patternfly/react-tokens/dist/esm/c_date_picker__input_c_form_control_width_chars.js","../../../../../node_modules/.pnpm/@[email protected][email protected][email protected][email protected]/node_modules/@patternfly/react-core/dist/esm/components/DatePicker/DatePicker.js"],"sourcesContent":["/**\n * @param {Date} date - A date to check the validity of\n */\nexport const isValidDate = (date) => Boolean(date && !isNaN(date));\n//# sourceMappingURL=datetimeUtils.js.map","import './calendar-month.css';\nexport default {\n \"calendarMonth\": \"pf-v5-c-calendar-month\",\n \"calendarMonthCalendar\": \"pf-v5-c-calendar-month__calendar\",\n \"calendarMonthDate\": \"pf-v5-c-calendar-month__date\",\n \"calendarMonthDatesCell\": \"pf-v5-c-calendar-month__dates-cell\",\n \"calendarMonthDatesRow\": \"pf-v5-c-calendar-month__dates-row\",\n \"calendarMonthDay\": \"pf-v5-c-calendar-month__day\",\n \"calendarMonthDays\": \"pf-v5-c-calendar-month__days\",\n \"calendarMonthHeader\": \"pf-v5-c-calendar-month__header\",\n \"calendarMonthHeaderMonth\": \"pf-v5-c-calendar-month__header-month\",\n \"calendarMonthHeaderNavControl\": \"pf-v5-c-calendar-month__header-nav-control\",\n \"calendarMonthHeaderYear\": \"pf-v5-c-calendar-month__header-year\",\n \"dirRtl\": \"pf-v5-m-dir-rtl\",\n \"modifiers\": {\n \"prevMonth\": \"pf-m-prev-month\",\n \"nextMonth\": \"pf-m-next-month\",\n \"current\": \"pf-m-current\",\n \"inRange\": \"pf-m-in-range\",\n \"startRange\": \"pf-m-start-range\",\n \"endRange\": \"pf-m-end-range\",\n \"adjacentMonth\": \"pf-m-adjacent-month\",\n \"selected\": \"pf-m-selected\",\n \"disabled\": \"pf-m-disabled\",\n \"hover\": \"pf-m-hover\",\n \"focus\": \"pf-m-focus\"\n },\n \"themeDark\": \"pf-v5-theme-dark\"\n};","import { __rest } from \"tslib\";\nimport React, { useEffect } from 'react';\nimport { TextInput } from '../TextInput';\nimport { Button } from '../Button';\nimport { Select, SelectList, SelectOption } from '../Select';\nimport { MenuToggle } from '../MenuToggle';\nimport { InputGroup, InputGroupItem } from '../InputGroup';\nimport AngleLeftIcon from '@patternfly/react-icons/dist/esm/icons/angle-left-icon';\nimport AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';\nimport { css } from '@patternfly/react-styles';\nimport styles from '@patternfly/react-styles/css/components/CalendarMonth/calendar-month.mjs';\nimport { getUniqueId } from '../../helpers/util';\nimport { isValidDate } from '../../helpers/datetimeUtils';\nexport var Weekday;\n(function (Weekday) {\n Weekday[Weekday[\"Sunday\"] = 0] = \"Sunday\";\n Weekday[Weekday[\"Monday\"] = 1] = \"Monday\";\n Weekday[Weekday[\"Tuesday\"] = 2] = \"Tuesday\";\n Weekday[Weekday[\"Wednesday\"] = 3] = \"Wednesday\";\n Weekday[Weekday[\"Thursday\"] = 4] = \"Thursday\";\n Weekday[Weekday[\"Friday\"] = 5] = \"Friday\";\n Weekday[Weekday[\"Saturday\"] = 6] = \"Saturday\";\n})(Weekday || (Weekday = {}));\nconst buildCalendar = (year, month, weekStart, validators) => {\n const defaultDate = new Date(year, month);\n const firstDayOfWeek = new Date(defaultDate);\n firstDayOfWeek.setDate(firstDayOfWeek.getDate() - firstDayOfWeek.getDay() + weekStart);\n // We will show a maximum of 6 weeks like Google calendar\n // Assume we just want the numbers for now...\n const calendarWeeks = [];\n if (firstDayOfWeek.getMonth() === defaultDate.getMonth() && firstDayOfWeek.getDate() !== 1) {\n firstDayOfWeek.setDate(firstDayOfWeek.getDate() - 7);\n }\n for (let i = 0; i < 6; i++) {\n const week = [];\n for (let j = 0; j < 7; j++) {\n const date = new Date(firstDayOfWeek);\n week.push({\n date,\n isValid: validators.every((validator) => validator(date))\n });\n firstDayOfWeek.setDate(firstDayOfWeek.getDate() + 1);\n }\n calendarWeeks.push(week);\n if (firstDayOfWeek.getMonth() !== defaultDate.getMonth()) {\n break;\n }\n }\n return calendarWeeks;\n};\nconst isSameDate = (d1, d2) => d1.getFullYear() === d2.getFullYear() && d1.getMonth() === d2.getMonth() && d1.getDate() === d2.getDate();\nconst today = new Date();\n/** The main calendar month component. */\nexport const CalendarMonth = (_a) => {\n var { date: dateProp, locale = undefined, monthFormat = (date) => date.toLocaleDateString(locale, { month: 'long' }), weekdayFormat = (date) => date.toLocaleDateString(locale, { weekday: 'narrow' }), longWeekdayFormat = (date) => date.toLocaleDateString(locale, { weekday: 'long' }), dayFormat = (date) => date.getDate(), weekStart = 0, // Use the American Sunday as a default\n onChange = () => { }, validators = [() => true], className, onSelectToggle = () => { }, onMonthChange = () => { }, rangeStart, prevMonthAriaLabel = 'Previous month', nextMonthAriaLabel = 'Next month', yearInputAriaLabel = 'Select year', cellAriaLabel, isDateFocused = false, inlineProps } = _a, props = __rest(_a, [\"date\", \"locale\", \"monthFormat\", \"weekdayFormat\", \"longWeekdayFormat\", \"dayFormat\", \"weekStart\", \"onChange\", \"validators\", \"className\", \"onSelectToggle\", \"onMonthChange\", \"rangeStart\", \"prevMonthAriaLabel\", \"nextMonthAriaLabel\", \"yearInputAriaLabel\", \"cellAriaLabel\", \"isDateFocused\", \"inlineProps\"]);\n const longMonths = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11]\n .map((monthNum) => new Date(1990, monthNum))\n .map(monthFormat);\n const [isSelectOpen, setIsSelectOpen] = React.useState(false);\n const getInitialDate = () => {\n if (isValidDate(dateProp)) {\n return dateProp;\n }\n if (isValidDate(rangeStart)) {\n return rangeStart;\n }\n return today;\n };\n const initialDate = getInitialDate();\n const [focusedDate, setFocusedDate] = React.useState(initialDate);\n // Must be numeric given current header design\n const yearFormat = (date) => date.getFullYear();\n //\n const yearFormatted = yearFormat(focusedDate);\n const [yearInput, setYearInput] = React.useState(yearFormatted.toString());\n const [hoveredDate, setHoveredDate] = React.useState(new Date(focusedDate));\n const focusRef = React.useRef();\n const [hiddenMonthId] = React.useState(getUniqueId('hidden-month-span'));\n const [shouldFocus, setShouldFocus] = React.useState(false);\n const isValidated = (date) => validators.every((validator) => validator(date));\n const focusedDateValidated = isValidated(focusedDate);\n useEffect(() => {\n if (isValidDate(dateProp) && !isSameDate(focusedDate, dateProp)) {\n setFocusedDate(dateProp);\n }\n else if (!dateProp) {\n setFocusedDate(today);\n }\n }, [dateProp]);\n useEffect(() => {\n // Calendar month should not be focused on page load\n if ((shouldFocus || isDateFocused) && focusedDateValidated && focusRef.current) {\n focusRef.current.focus();\n }\n }, [focusedDate, isDateFocused, focusedDateValidated, focusRef]);\n const onMonthClick = (ev, newDate) => {\n setFocusedDate(newDate);\n setHoveredDate(newDate);\n setShouldFocus(false);\n onMonthChange(ev, newDate);\n setYearInput(yearFormat(newDate).toString());\n };\n const onKeyDown = (ev) => {\n const newDate = new Date(focusedDate);\n if (ev.key === 'ArrowUp') {\n newDate.setDate(newDate.getDate() - 7);\n }\n else if (ev.key === 'ArrowRight') {\n newDate.setDate(newDate.getDate() + 1);\n }\n else if (ev.key === 'ArrowDown') {\n newDate.setDate(newDate.getDate() + 7);\n }\n else if (ev.key === 'ArrowLeft') {\n newDate.setDate(newDate.getDate() - 1);\n }\n if (newDate.getTime() !== focusedDate.getTime() && isValidated(newDate)) {\n ev.preventDefault();\n setFocusedDate(newDate);\n setHoveredDate(newDate);\n setShouldFocus(true);\n }\n };\n const changeYear = (newYear) => changeMonth(focusedDate.getMonth(), newYear);\n const changeMonth = (newMonth, newYear) => new Date(newYear !== null && newYear !== void 0 ? newYear : focusedDate.getFullYear(), newMonth, 1);\n const MIN_YEAR = 1900;\n const MAX_YEAR = 2100;\n const handleYearInputChange = (event, yearStr) => {\n if (!/^\\d{0,4}$/.test(yearStr)) {\n return;\n }\n setYearInput(yearStr);\n if (yearStr.length === 4) {\n const yearNum = Number(yearStr);\n if (yearNum >= MIN_YEAR && yearNum <= MAX_YEAR) {\n const newDate = changeYear(yearNum);\n setFocusedDate(newDate);\n setHoveredDate(newDate);\n setShouldFocus(false);\n // We need to manually focus the year input in FireFox when the scroll buttons are clicked, as FireFox doesn't place focus automatically\n event.target.focus();\n onMonthChange(event, newDate);\n }\n else {\n setYearInput(yearFormatted.toString());\n }\n }\n };\n const addMonth = (toAdd) => {\n let newMonth = focusedDate.getMonth() + toAdd;\n let newYear = focusedDate.getFullYear();\n if (newMonth === -1) {\n newMonth = 11;\n newYear--;\n }\n else if (newMonth === 12) {\n newMonth = 0;\n newYear++;\n }\n return changeMonth(newMonth, newYear);\n };\n const prevMonth = addMonth(-1);\n const nextMonth = addMonth(1);\n const focusedYear = focusedDate.getFullYear();\n const focusedMonth = focusedDate.getMonth();\n const calendar = React.useMemo(() => buildCalendar(focusedYear, focusedMonth, weekStart, validators), [focusedYear, focusedMonth, weekStart, validators]);\n if (!focusedDateValidated) {\n const toFocus = calendar\n .reduce((acc, cur) => [...acc, ...cur], [])\n .filter(({ date, isValid }) => isValid && date.getMonth() === focusedMonth)\n .map(({ date }) => ({ date, days: Math.abs(focusedDate.getTime() - date.getTime()) }))\n .sort((o1, o2) => o1.days - o2.days)\n .map(({ date }) => date)[0];\n if (toFocus) {\n setFocusedDate(toFocus);\n setHoveredDate(toFocus);\n }\n }\n const isHoveredDateValid = isValidated(hoveredDate);\n const monthFormatted = monthFormat(focusedDate);\n const calendarToRender = (React.createElement(\"div\", Object.assign({ className: css(styles.calendarMonth, className) }, props),\n React.createElement(\"div\", { className: styles.calendarMonthHeader },\n React.createElement(\"div\", { className: css(styles.calendarMonthHeaderNavControl, styles.modifiers.prevMonth) },\n React.createElement(Button, { variant: \"plain\", \"aria-label\": prevMonthAriaLabel, onClick: (ev) => onMonthClick(ev, prevMonth) },\n React.createElement(AngleLeftIcon, { \"aria-hidden\": true }))),\n React.createElement(InputGroup, null,\n React.createElement(InputGroupItem, { isFill: true },\n React.createElement(\"div\", { className: styles.calendarMonthHeaderMonth },\n React.createElement(\"span\", { id: hiddenMonthId, hidden: true }, \"Month\"),\n React.createElement(Select, { toggle: (toggleRef) => (React.createElement(MenuToggle, { ref: toggleRef, onClick: () => setIsSelectOpen(!isSelectOpen), isExpanded: isSelectOpen, style: { width: '140px' } }, monthFormatted)), \"aria-labelledby\": hiddenMonthId, isOpen: isSelectOpen, onOpenChange: (isOpen) => {\n setIsSelectOpen(isOpen);\n onSelectToggle(isOpen);\n }, onSelect: (ev, monthNum) => {\n // When we put CalendarMonth in a Popover we want the Popover's onDocumentClick\n // to see the SelectOption as a child so it doesn't close the Popover.\n setTimeout(() => {\n setIsSelectOpen(false);\n onSelectToggle(false);\n const newDate = changeMonth(Number(monthNum));\n setFocusedDate(newDate);\n setHoveredDate(newDate);\n setShouldFocus(false);\n onMonthChange(ev, newDate);\n }, 0);\n }, selected: monthFormatted },\n React.createElement(SelectList, null, longMonths.map((longMonth, index) => (React.createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))))),\n React.createElement(InputGroupItem, null,\n React.createElement(\"div\", { className: styles.calendarMonthHeaderYear },\n React.createElement(TextInput, { \"aria-label\": yearInputAriaLabel, type: \"number\", value: yearInput, onChange: handleYearInputChange })))),\n React.createElement(\"div\", { className: css(styles.calendarMonthHeaderNavControl, styles.modifiers.nextMonth) },\n React.createElement(Button, { variant: \"plain\", \"aria-label\": nextMonthAriaLabel, onClick: (ev) => onMonthClick(ev, nextMonth) },\n React.createElement(AngleRightIcon, { \"aria-hidden\": true })))),\n React.createElement(\"table\", { className: styles.calendarMonthCalendar },\n React.createElement(\"thead\", { className: styles.calendarMonthDays },\n React.createElement(\"tr\", null, calendar[0].map(({ date }, index) => (React.createElement(\"th\", { key: index, className: styles.calendarMonthDay, scope: \"col\" },\n React.createElement(\"span\", { className: \"pf-v5-screen-reader\" }, longWeekdayFormat(date)),\n React.createElement(\"span\", { \"aria-hidden\": true }, weekdayFormat(date))))))),\n React.createElement(\"tbody\", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React.createElement(\"tr\", { key: index, className: styles.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {\n const dayFormatted = dayFormat(date);\n const isToday = isSameDate(date, today);\n const isSelected = isValidDate(dateProp) && isSameDate(date, dateProp);\n const isFocused = isSameDate(date, focusedDate);\n const isAdjacentMonth = date.getMonth() !== focusedDate.getMonth();\n const isRangeStart = isValidDate(rangeStart) && isSameDate(date, rangeStart);\n let isInRange = false;\n let isRangeEnd = false;\n if (isValidDate(rangeStart) && isValidDate(dateProp)) {\n isInRange = date > rangeStart && date < dateProp;\n isRangeEnd = isSameDate(date, dateProp);\n }\n else if (isValidDate(rangeStart) && isHoveredDateValid) {\n if (hoveredDate > rangeStart || isSameDate(hoveredDate, rangeStart)) {\n isInRange = date > rangeStart && date < hoveredDate;\n isRangeEnd = isSameDate(date, hoveredDate);\n }\n // Don't handle focused dates before start dates for now.\n // Core would likely need new styles\n }\n return (React.createElement(\"td\", { key: index, className: css(styles.calendarMonthDatesCell, isAdjacentMonth && styles.modifiers.adjacentMonth, isToday && styles.modifiers.current, (isSelected || isRangeStart) && styles.modifiers.selected, !isValid && styles.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles.modifiers.inRange, isRangeStart && styles.modifiers.startRange, isRangeEnd && styles.modifiers.endRange) },\n React.createElement(\"button\", Object.assign({ className: css(styles.calendarMonthDate, isRangeEnd && styles.modifiers.hover, !isValid && styles.modifiers.disabled), type: \"button\", onClick: (event) => onChange(event, date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, \"aria-label\": cellAriaLabel\n ? cellAriaLabel(date)\n : `${dayFormat(date)} ${monthFormat(date)} ${yearFormat(date)}` }, (isFocused && { ref: focusRef })), dayFormatted)));\n }))))))));\n if (inlineProps !== undefined) {\n const Component = (inlineProps.component ? inlineProps.component : 'article');\n return (React.createElement(Component, Object.assign({}, (inlineProps.ariaLabelledby && { 'aria-labelledby': inlineProps.ariaLabelledby })),\n inlineProps.title,\n calendarToRender));\n }\n return calendarToRender;\n};\nCalendarMonth.displayName = 'CalendarMonth';\n//# sourceMappingURL=CalendarMonth.js.map","import './date-picker.css';\nexport default {\n \"datePicker\": \"pf-v5-c-date-picker\",\n \"datePickerCalendar\": \"pf-v5-c-date-picker__calendar\",\n \"datePickerHelperText\": \"pf-v5-c-date-picker__helper-text\",\n \"datePickerInput\": \"pf-v5-c-date-picker__input\",\n \"formControl\": \"pf-v5-c-form-control\",\n \"modifiers\": {\n \"alignRight\": \"pf-m-align-right\",\n \"top\": \"pf-m-top\",\n \"static\": \"pf-m-static\"\n },\n \"themeDark\": \"pf-v5-theme-dark\"\n};","import { createIcon } from '../createIcon';\n\nexport const OutlinedCalendarAltIconConfig = {\n name: 'OutlinedCalendarAltIcon',\n height: 512,\n width: 448,\n svgPath: 'M148 288h-40c-6.6 0-12-5.4-12-12v-40c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v40c0 6.6-5.4 12-12 12zm108-12v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 96v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm-96 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm192 0v-40c0-6.6-5.4-12-12-12h-40c-6.6 0-12 5.4-12 12v40c0 6.6 5.4 12 12 12h40c6.6 0 12-5.4 12-12zm96-260v352c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V112c0-26.5 21.5-48 48-48h48V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h128V12c0-6.6 5.4-12 12-12h40c6.6 0 12 5.4 12 12v52h48c26.5 0 48 21.5 48 48zm-48 346V160H48v298c0 3.3 2.7 6 6 6h340c3.3 0 6-2.7 6-6z',\n yOffset: 0,\n xOffset: 0,\n};\n\nexport const OutlinedCalendarAltIcon = createIcon(OutlinedCalendarAltIconConfig);\n\nexport default OutlinedCalendarAltIcon;","export const c_date_picker__input_c_form_control_width_chars = {\n \"name\": \"--pf-v5-c-date-picker__input--c-form-control--width-chars\",\n \"value\": \"10\",\n \"var\": \"var(--pf-v5-c-date-picker__input--c-form-control--width-chars)\"\n};\nexport default c_date_picker__input_c_form_control_width_chars;","import { __rest } from \"tslib\";\nimport * as React from 'react';\nimport { css } from '@patternfly/react-styles';\nimport styles from '@patternfly/react-styles/css/components/DatePicker/date-picker.mjs';\nimport buttonStyles from '@patternfly/react-styles/css/components/Button/button.mjs';\nimport calendarMonthStyles from '@patternfly/react-styles/css/components/CalendarMonth/calendar-month.mjs';\nimport { TextInput } from '../TextInput/TextInput';\nimport { Popover } from '../Popover/Popover';\nimport { InputGroup, InputGroupItem } from '../InputGroup';\nimport OutlinedCalendarAltIcon from '@patternfly/react-icons/dist/esm/icons/outlined-calendar-alt-icon';\nimport { CalendarMonth } from '../CalendarMonth';\nimport { useImperativeHandle } from 'react';\nimport { KeyTypes } from '../../helpers';\nimport { isValidDate } from '../../helpers/datetimeUtils';\nimport { HelperText, HelperTextItem } from '../HelperText';\nimport cssFormControlWidthChars from '@patternfly/react-tokens/dist/esm/c_date_picker__input_c_form_control_width_chars';\nexport const yyyyMMddFormat = (date) => `${date.getFullYear()}-${(date.getMonth() + 1).toString().padStart(2, '0')}-${date\n .getDate()\n .toString()\n .padStart(2, '0')}`;\nconst DatePickerBase = (_a, ref) => {\n var { className, locale = undefined, dateFormat = yyyyMMddFormat, dateParse = (val) => (val.split('-').length === 3 ? new Date(`${val}T00:00:00`) : new Date(undefined)), isDisabled = false, placeholder = 'YYYY-MM-DD', value: valueProp = '', 'aria-label': ariaLabel = 'Date picker', buttonAriaLabel = 'Toggle date picker', onChange = () => undefined, onBlur = () => undefined, invalidFormatText = 'Invalid date', requiredDateOptions, helperText, appendTo = 'inline', popoverProps, monthFormat, weekdayFormat, longWeekdayFormat, dayFormat, weekStart, validators = [], rangeStart, style: styleProps = {}, inputProps = {} } = _a, props = __rest(_a, [\"className\", \"locale\", \"dateFormat\", \"dateParse\", \"isDisabled\", \"placeholder\", \"value\", 'aria-label', \"buttonAriaLabel\", \"onChange\", \"onBlur\", \"invalidFormatText\", \"requiredDateOptions\", \"helperText\", \"appendTo\", \"popoverProps\", \"monthFormat\", \"weekdayFormat\", \"longWeekdayFormat\", \"dayFormat\", \"weekStart\", \"validators\", \"rangeStart\", \"style\", \"inputProps\"]);\n const [value, setValue] = React.useState(valueProp);\n const [valueDate, setValueDate] = React.useState(dateParse(value));\n const [errorText, setErrorText] = React.useState('');\n const [popoverOpen, setPopoverOpen] = React.useState(false);\n const [selectOpen, setSelectOpen] = React.useState(false);\n const [pristine, setPristine] = React.useState(true);\n const [textInputFocused, setTextInputFocused] = React.useState(false);\n const widthChars = React.useMemo(() => Math.max(dateFormat(new Date()).length, placeholder.length), [dateFormat]);\n const style = Object.assign({ [cssFormControlWidthChars.name]: widthChars }, styleProps);\n const buttonRef = React.useRef();\n const datePickerWrapperRef = React.useRef();\n const triggerRef = React.useRef();\n const dateIsRequired = (requiredDateOptions === null || requiredDateOptions === void 0 ? void 0 : requiredDateOptions.isRequired) || false;\n const emptyDateText = (requiredDateOptions === null || requiredDateOptions === void 0 ? void 0 : requiredDateOptions.emptyDateText) || 'Date cannot be blank';\n React.useEffect(() => {\n setValue(valueProp);\n setValueDate(dateParse(valueProp));\n }, [valueProp]);\n React.useEffect(() => {\n setPristine(!value);\n const newValueDate = dateParse(value);\n if (errorText && isValidDate(newValueDate)) {\n setError(newValueDate);\n }\n if (value === '' && !pristine && !textInputFocused) {\n dateIsRequired ? setErrorText(emptyDateText) : setErrorText('');\n }\n }, [value]);\n const setError = (date) => {\n setErrorText(validators.map((validator) => validator(date)).join('\\n') || '');\n };\n const onTextInput = (event, value) => {\n setValue(value);\n setErrorText('');\n const newValueDate = dateParse(value);\n setValueDate(newValueDate);\n if (isValidDate(newValueDate)) {\n onChange(event, value, new Date(newValueDate));\n }\n else {\n onChange(event, value);\n }\n };\n const onInputBlur = (event) => {\n setTextInputFocused(false);\n const newValueDate = dateParse(value);\n const dateIsValid = isValidDate(newValueDate);\n const onBlurDateArg = dateIsValid ? new Date(newValueDate) : undefined;\n onBlur(event, value, onBlurDateArg);\n if (dateIsValid) {\n setError(newValueDate);\n }\n if (!dateIsValid && !pristine) {\n setErrorText(invalidFormatText);\n }\n if (!dateIsValid && pristine && (requiredDateOptions === null || requiredDateOptions === void 0 ? void 0 : requiredDateOptions.isRequired)) {\n setErrorText(emptyDateText);\n }\n };\n const onDateClick = (_event, newValueDate) => {\n const newValue = dateFormat(newValueDate);\n setValue(newValue);\n setValueDate(newValueDate);\n setError(newValueDate);\n setPopoverOpen(false);\n onChange(null, newValue, new Date(newValueDate));\n };\n const onKeyPress = (ev) => {\n if (ev.key === 'Enter' && value) {\n if (isValidDate(valueDate)) {\n setError(valueDate);\n }\n else {\n setErrorText(invalidFormatText);\n }\n }\n };\n useImperativeHandle(ref, () => ({\n setCalendarOpen: (isOpen) => setPopoverOpen(isOpen),\n toggleCalendar: (setOpen) => {\n setPopoverOpen((prev) => (setOpen !== undefined ? setOpen : !prev));\n },\n isCalendarOpen: popoverOpen\n }), [setPopoverOpen, popoverOpen, selectOpen]);\n const createFocusSelectorString = (modifierClass) => `.${calendarMonthStyles.calendarMonthDatesCell}.${modifierClass} .${calendarMonthStyles.calendarMonthDate}`;\n const focusSelectorForSelectedDate = createFocusSelectorString(calendarMonthStyles.modifiers.selected);\n const focusSelectorForUnselectedDate = createFocusSelectorString(calendarMonthStyles.modifiers.current);\n return (React.createElement(\"div\", Object.assign({ className: css(styles.datePicker, className), ref: datePickerWrapperRef, style: style }, props),\n React.createElement(Popover, Object.assign({ elementToFocus: isValidDate(valueDate) ? focusSelectorForSelectedDate : focusSelectorForUnselectedDate, position: \"bottom\", bodyContent: React.createElement(CalendarMonth, { date: valueDate, onChange: onDateClick, locale: locale, \n // Use truthy values of strings\n validators: validators.map((validator) => (date) => !validator(date)), onSelectToggle: (open) => setSelectOpen(open), monthFormat: monthFormat, weekdayFormat: weekdayFormat, longWeekdayFormat: longWeekdayFormat, dayFormat: dayFormat, weekStart: weekStart, rangeStart: rangeStart }), showClose: false, isVisible: popoverOpen, shouldClose: (event, hideFunction) => {\n event = event;\n if (event.key === KeyTypes.Escape && selectOpen) {\n event.stopPropagation();\n setSelectOpen(false);\n return false;\n }\n // Let our button handle toggling\n if (buttonRef.current && buttonRef.current.contains(event.target)) {\n return false;\n }\n if (popoverOpen) {\n event.stopPropagation();\n setPopoverOpen(false);\n hideFunction();\n // If datepicker is required and the popover is opened without the text input\n // first receiving focus, we want to validate that the text input is not blank upon\n // closing the popover\n (requiredDateOptions === null || requiredDateOptions === void 0 ? void 0 : requiredDateOptions.isRequired) && !value && setErrorText(emptyDateText);\n }\n if (event.key === KeyTypes.Escape && popoverOpen) {\n event.stopPropagation();\n }\n return true;\n }, withFocusTrap: true, hasNoPadding: true, hasAutoWidth: true, appendTo: appendTo, triggerRef: triggerRef }, popoverProps),\n React.createElement(\"div\", { className: styles.datePickerInput, ref: triggerRef },\n React.createElement(InputGroup, null,\n React.createElement(InputGroupItem, null,\n React.createElement(TextInput, Object.assign({ isDisabled: isDisabled, isRequired: requiredDateOptions === null || requiredDateOptions === void 0 ? void 0 : requiredDateOptions.isRequired, \"aria-label\": ariaLabel, placeholder: placeholder, validated: errorText.trim() ? 'error' : 'default', value: value, onChange: onTextInput, onBlur: onInputBlur, onFocus: () => setTextInputFocused(true), onKeyPress: onKeyPress }, inputProps))),\n React.createElement(InputGroupItem, null,\n React.createElement(\"button\", { ref: buttonRef, \n // TODO: Removed style follow up work with issue #8457\n className: css(buttonStyles.button, buttonStyles.modifiers.control), \"aria-label\": buttonAriaLabel, type: \"button\", onClick: () => setPopoverOpen(!popoverOpen), disabled: isDisabled },\n React.createElement(OutlinedCalendarAltIcon, null)))))),\n (errorText || helperText) && (React.createElement(\"div\", { className: styles.datePickerHelperText }, errorText ? (React.createElement(HelperText, null,\n React.createElement(HelperTextItem, { variant: \"error\" }, errorText))) : (helperText)))));\n};\nexport const DatePicker = React.forwardRef(DatePickerBase);\nDatePicker.displayName = 'DatePicker';\n//# sourceMappingURL=DatePicker.js.map"],"names":["isValidDate","date","calendarMonthStyles","Weekday","buildCalendar","year","month","weekStart","validators","defaultDate","firstDayOfWeek","calendarWeeks","i","week","j","validator","isSameDate","d1","d2","today","CalendarMonth","_a","dateProp","locale","monthFormat","weekdayFormat","longWeekdayFormat","dayFormat","onChange","className","onSelectToggle","onMonthChange","rangeStart","prevMonthAriaLabel","nextMonthAriaLabel","yearInputAriaLabel","cellAriaLabel","isDateFocused","inlineProps","props","__rest","longMonths","monthNum","isSelectOpen","setIsSelectOpen","React","initialDate","focusedDate","setFocusedDate","yearFormat","yearFormatted","yearInput","setYearInput","hoveredDate","setHoveredDate","focusRef","hiddenMonthId","getUniqueId","shouldFocus","setShouldFocus","isValidated","focusedDateValidated","useEffect","onMonthClick","ev","newDate","onKeyDown","changeYear","newYear","changeMonth","newMonth","MIN_YEAR","MAX_YEAR","handleYearInputChange","event","yearStr","yearNum","addMonth","toAdd","prevMonth","nextMonth","focusedYear","focusedMonth","calendar","toFocus","acc","cur","isValid","o1","o2","isHoveredDateValid","monthFormatted","calendarToRender","css","styles","Button","AngleLeftIcon","InputGroup","InputGroupItem","Select","toggleRef","MenuToggle","isOpen","SelectList","longMonth","index","SelectOption","TextInput","AngleRightIcon","dayFormatted","isToday","isSelected","isFocused","isAdjacentMonth","isRangeStart","isInRange","isRangeEnd","Component","datePickerStyles","OutlinedCalendarAltIconConfig","OutlinedCalendarAltIcon","createIcon","c_date_picker__input_c_form_control_width_chars","yyyyMMddFormat","DatePickerBase","ref","dateFormat","dateParse","val","isDisabled","placeholder","valueProp","ariaLabel","buttonAriaLabel","onBlur","invalidFormatText","requiredDateOptions","helperText","appendTo","popoverProps","styleProps","inputProps","value","setValue","valueDate","setValueDate","errorText","setErrorText","popoverOpen","setPopoverOpen","selectOpen","setSelectOpen","pristine","setPristine","textInputFocused","setTextInputFocused","widthChars","style","cssFormControlWidthChars","buttonRef","datePickerWrapperRef","triggerRef","dateIsRequired","emptyDateText","newValueDate","setError","onTextInput","onInputBlur","dateIsValid","onBlurDateArg","onDateClick","_event","newValue","onKeyPress","useImperativeHandle","setOpen","prev","createFocusSelectorString","modifierClass","focusSelectorForSelectedDate","focusSelectorForUnselectedDate","Popover","open","hideFunction","KeyTypes","buttonStyles","HelperText","HelperTextItem","DatePicker"],"mappings":"yRAGO,MAAMA,EAAeC,GAAS,GAAQA,GAAQ,CAAC,MAAMA,CAAI,GCFjDC,EAAA,CACb,cAAiB,yBACjB,sBAAyB,mCACzB,kBAAqB,+BACrB,uBAA0B,qCAC1B,sBAAyB,oCACzB,iBAAoB,8BACpB,kBAAqB,+BACrB,oBAAuB,iCACvB,yBAA4B,uCAC5B,8BAAiC,6CACjC,wBAA2B,sCAC3B,OAAU,kBACV,UAAa,CACX,UAAa,kBACb,UAAa,kBACb,QAAW,eACX,QAAW,gBACX,WAAc,mBACd,SAAY,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