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WAAGgF,EAAE,EAmeV,MAAAC,GAAK,CACN,QAAS,CACP,OAAQ,CACN,OAAQ,sBACR,SAAU,sBACV,mBAAoB,sBACpB,MAAO,sBACP,MAAO,sBACP,SAAU,qBACZ,EACA,WAAY,CACV,KAAM,UACN,QAAS,UACT,MAAO,SACT,EACA,OAAQ,CACN,QAAS,qBACX,EACA,QAAS,sBACT,MAAO,CACL,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACA,KAAM,CACJ,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,KAAM,QACN,QAAS,CACP,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,UAAW,CACT,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,QAAS,CACP,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,SAAU,CACR,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,KAAM,CACJ,SAAU,UACV,SAAU,UACV,QAAS,UACT,UAAW,SACb,EACA,QAAS,CACP,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,UACR,CAEJ,EAAGC,GAAI,CACL,QAAS,CACP,OAAQ,CACN,OAAQ,4BACR,SAAU,4BACV,mBAAoB,4BACpB,MAAO,4BACP,MAAO,4BACP,SAAU,2BACZ,EACA,WAAY,CACV,KAAM,UACN,QAAS,UACT,MAAO,SACT,EACA,OAAQ,CACN,QAAS,2BACX,EACA,QAAS,4BACT,MAAO,CACL,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,KAAM,CACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,GAAI,UACJ,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,IAAK,UACL,KAAM,UACN,KAAM,UACN,KAAM,UACN,KAAM,SACR,EACA,KAAM,CACJ,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,KAAM,OACN,QAAS,CACP,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,UAAW,CACT,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,MAAO,UACP,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,QAAS,CACP,MAAO,UACP,OAAQ,UACR,MAAO,UACP,KAAM,UACN,MAAO,UACP,KAAM,UACN,aAAc,UACd,KAAM,UACN,MAAO,UACP,KAAM,SACR,EACA,SAAU,CACR,MAAO,UACP,MAAO,UACP,MAAO,UACP,KAAM,UAC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0BG,EAAE,IAAI61D,GAAI,CAAE,QAAS,YAAa,GAAI,CAAE,UAAWlF,EAAI,iBAAmB,gBAAkB,WAA4B,IAAI,OAAQ,CAAE,EAAG,+CAAiD,GAAG,EAAG,CAAG,IACrY,CACL","names":["k","i","md5","s","words","b","c","d","j","a","h","_keyStr","base64Decode","input","output","chr1","chr2","chr3","enc1","enc2","enc3","enc4","PLAN_SCOPES","LICENSE_MODELS","showError","message","showInvalidLicenseKeyError","showLicenseKeyPlanMismatchError","showNotAvailableInInitialProPlanError","showMissingLicenseKeyError","plan","packageName","showExpiredPackageVersionError","showExpiredAnnualGraceLicenseKeyError","licenseKey","expiryTimestamp","showExpiredAnnualLicenseKeyError","formatMuiErrorMessage","code","args","url","arg","ponyfillGlobal","refType","PropTypes","capitalize","string","_formatMuiErrorMessage","debounce","func","wait","timeout","debounced","later","ownerDocument","node","ownerWindow","setRef","ref","value","useEnhancedEffect","React.useLayoutEffect","React.useEffect","globalId","useGlobalId","idOverride","defaultId","setDefaultId","React.useState","id","safeReact","React","maybeReactUseId","useId","reactId","useControlled","controlled","defaultProp","name","state","isControlled","React.useRef","valueState","setValue","setValueIfUncontrolled","React.useCallback","newValue","useEventCallback","fn","useForkRef","refs","React.useMemo","instance","UNINITIALIZED","useLazyRef","init","initArg","EMPTY","useOnMount","Timeout","__publicField","delay","useTimeout","visuallyHidden","resolveProps","defaultProps","props","key","propName","defaultSlotProps","slotProps","slotKey","slotPropName","composeClasses","slots","getUtilityClass","classes","slotName","slot","buffer","start","defaultGenerator","componentName","createClassNameGenerator","generate","generator","ClassNameGenerator","globalStateClasses","generateUtilityClass","globalStatePrefix","globalStateClass","generateUtilityClasses","result","isHostComponent","element","appendOwnerState","elementType","otherProps","ownerState","extractEventHandlers","object","excludeKeys","prop","omitEventHandlers","mergeSlotProps","parameters","getSlotProps","additionalProps","externalSlotProps","externalForwardedProps","className","joinedClasses","clsx","mergedStyle","eventHandlers","componentsPropsWithoutEventHandlers","otherPropsWithoutEventHandlers","internalSlotProps","resolveComponentProps","componentProps","slotState","useSlotProps","skipResolvingSlotProps","other","resolvedComponentsProps","mergedProps","internalRef","_a","LicenseInfo","licenseInfo","LICENSE_STATUS","isPlanScopeSufficient","planScope","acceptedScopes","expiryReg","PRO_PACKAGES_AVAILABLE_IN_INITIAL_PRO_PLAN","decodeLicenseVersion1","license","decodeLicenseVersion2","token","el","decodeLicense","encodedLicense","verifyLicense","releaseInfo","hash","encoded","pkgTimestamp","MuiLicenseInfoContext","sharedLicenseStatuses","useLicenseVerifier","contextKey","React.useContext","licenseStatus","fullPackageName","_extends","getLicenseErrorMessage","Watermark","_jsx","_excluded","MuiPickersAdapterContext","React.createContext","LocalizationProvider","inProps","inLocaleText","otherInProps","_objectWithoutPropertiesLoose","parentUtils","parentLocaleText","useThemeProps","children","DateAdapter","dateFormats","dateLibInstance","adapterLocale","themeLocaleText","localeText","utils","adapter","defaultDates","contextValue","getPickersLocalization","pickersTranslations","buildGetOpenDialogAriaText","params","formatKey","contextTranslation","propsTranslation","formattedValue","enUSPickers","view","time","formattedTime","hours","minutes","seconds","weekNumber","formattedDate","DEFAULT_LOCALE","useLocalizationContext","localization","useUtils","useDefaultDates","useNow","timezone","now","usePickersTranslations","ArrowDropDownIcon","createSvgIcon","ArrowLeftIcon","ArrowRightIcon","CalendarIcon","ClockIcon","_jsxs","React.Fragment","ClearIcon","getPickersArrowSwitcherUtilityClass","_excluded2","_excluded3","PickersArrowSwitcherRoot","styled","styles","PickersArrowSwitcherSpacer","theme","PickersArrowSwitcherButton","IconButton","useUtilityClasses","PickersArrowSwitcher","React.forwardRef","isRtl","useRtl","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId","nextProps","previousProps","PreviousIconButton","previousIconButtonProps","NextIconButton","nextIconButtonProps","LeftArrowIcon","_useSlotProps","leftArrowIconProps","RightArrowIcon","_useSlotProps2","rightArrowIconProps","Typography","areViewsEqual","views","expectedViews","expectedView","applyDefaultViewProps","openTo","defaultOpenTo","defaultViews","viewsWithDefault","openToWithDefault","timeViews","isTimeView","isInternalTimeView","getMeridiem","date","convertValueToMeridiem","meridiem","ampm","convertToMeridiem","newHoursAmount","getSecondsInDay","createIsAfterIgnoreDatePart","disableIgnoringDatePartForTimeValidation","dateLeft","dateRight","resolveTimeFormat","format","formats","useViews","onChange","onViewChange","inView","autoFocus","inFocusedView","onFocusedViewChange","previousOpenTo","previousViews","defaultView","setView","defaultFocusedView","focusedView","setFocusedView","previousView","viewIndex","nextView","handleFocusedViewChange","viewToFocus","hasFocus","prevFocusedView","handleChangeView","newView","goToNextView","setValueAndGoToNextView","currentViewSelectionState","selectedView","isSelectionFinishedOnCurrentView","hasMoreViews","nextViewAfterSelected","useNextMonthDisabled","month","disableFuture","maxDate","lastEnabledMonth","usePreviousMonthDisabled","disablePast","minDate","firstEnabledMonth","useMeridiemMode","selectionState","meridiemMode","handleMeridiemChange","mode","timeWithMeridiem","DAY_SIZE","DAY_MARGIN","DIALOG_WIDTH","MAX_CALENDAR_HEIGHT","VIEW_HEIGHT","DIGITAL_CLOCK_VIEW_HEIGHT","MULTI_SECTION_CLOCK_SECTION_WIDTH","PickerViewRoot","getTimeClockUtilityClass","CLOCK_WIDTH","CLOCK_HOUR_WIDTH","clockCenter","baseClockPoint","cx","cy","rad2deg","rad","getAngleValue","step","offsetX","offsetY","x","y","atan","deg","delta","distance","getMinutes","angleStep","getHours","hour","getClockPointerUtilityClass","ClockPointerRoot","_","ClockPointerThumb","ClockPointer","isInner","type","viewValue","previousType","getAngleStyle","angle","getClockUtilityClass","mergeDateAndTime","dateParam","timeParam","mergedDate","findClosestEnabledDate","isDateDisabled","today","forward","backward","replaceInvalidDateByNull","applyDefaultDate","defaultValue","areDatesEqual","getMonthsInYear","year","months","prevMonth","getTodayDate","valueType","formatMeridiem","dateViews","isDatePickerView","resolveDateFormat","isInToolbar","getWeekdays","diff","ClockRoot","ClockClock","ClockWrapper","ClockSquareMask","ClockPin","meridiemButtonCommonStyles","ClockAmButton","ClockPmButton","ClockMeridiemText","Clock","ampmInClock","isTimeDisabled","minutesStep","selectedId","disabled","readOnly","translations","isMoving","isSelectedTimeDisabled","isPointerInner","handleValueChange","isFinish","setTime","event","rect","newSelectedValue","handleTouchSelection","handleTouchEnd","handleMouseMove","handleMouseUp","hasSelected","keyboardControlStep","listboxRef","handleKeyDown","getClockNumberUtilityClass","clockNumberClasses","selected","ClockNumberRoot","ClockNumber","index","inner","label","length","getHourNumbers","getClockNumberText","isDisabled","currentHours","hourNumbers","startHour","endHour","isSelected","getMinutesNumbers","f","numberValue","useValueWithTimezone","timezoneProp","valueProp","valueManager","firstDefaultValue","inputValue","inputTimezone","setInputTimezone","timezoneToRender","valueWithTimezoneToRender","otherParams","newValueWithInputTimezone","useControlledValueWithTimezone","onChangeProp","valueWithInputTimezone","SECTION_TYPE_GRANULARITY","getSectionTypeGranularity","sections","section","roundDate","granularity","roundedDate","getDefaultReferenceDate","inGetTodayDate","referenceDate","isAfter","getDateSectionConfigFromFormatToken","formatToken","config","getDeltaFromKeyCode","keyCode","getDaysInWeekStr","elements","startDate","endDate","current","weekDay","getLetterEditingOptions","sectionType","FORMAT_SECONDS_NO_LEADING_ZEROS","NON_LOCALIZED_DIGITS","getLocalizedDigits","removeLocalizedDigits","valueStr","localizedDigits","digits","currentFormattedDigit","matchingDigitIndex","applyLocalizedDigits","char","isStringNumber","nonLocalizedValueStr","cleanLeadingZeros","size","cleanValueStr","cleanDigitSectionValue","sectionBoundaries","adjustSectionValue","sectionsValueBoundaries","activeDate","stepsAttributes","isStart","isEnd","shouldSetAbsolute","adjustDigitSection","getCleanValue","newSectionValueNumber","adjustLetterSection","options","clampedIndex","getSectionVisibleValue","target","hasLeadingZeros","changeSectionValueFormat","currentFormat","newFormat","isFourDigitYearFormat","doesSectionFormatHaveLeadingZeros","contentType","getDateFromDateSections","shouldSkipWeekDays","sectionFormats","sectionValues","formatWithoutSeparator","dateWithoutSeparatorStr","createDateStrForV7HiddenInputFromSections","createDateStrForV6InputFromSections","dateStr","dateValue","getSectionsBoundaries","endOfYear","endOfDay","maxDaysInMonth","longestMonth","acc","daysInMonth","currentDate","daysInWeek","lastHourInDay","transferDateSectionValue","dateToTransferFrom","dateToTransferTo","formattedDaysInWeek","dayInWeekStrOfActiveDate","dayInWeekOfActiveDate","isAM","mergedDateHours","reliableSectionModificationOrder","mergeDateIntoReferenceDate","shouldLimitToEditedSections","isAndroid","getSectionOrder","shouldApplyRTL","neighbors","leftIndex","rightIndex","rtl2ltr","ltr2rtl","groupedSectionsStart","groupedSectionsEnd","RTLIndex","rtlIndex","parseSelectedSections","selectedSections","getSectionValueText","parsedDate","getSectionValueNow","singleItemValueManager","_ref","error","singleItemFieldValueManager","prevReferenceValue","prevSections","getSectionsFromDate","newActiveDate","referenceValue","parseDate","useClockReferenceDate","referenceDateProp","TimeClockRoot","TimeClockArrowSwitcher","TIME_CLOCK_DEFAULT_VIEWS","TimeClock","maxTime","minTime","shouldDisableTime","showViewSwitcher","valueOrReferenceDate","rawValue","viewType","shouldCheckPastEnd","containsValidTime","end","isValidValue","timeValue","valueWithMeridiem","dateWithNewHours","dateWithNewMinutes","dateWithNewSeconds","viewProps","hourValue","minutesValue","minuteValue","secondsValue","secondValue","getDigitalClockUtilityClass","arrayIncludes","array","itemOrItems","item","onSpaceOrEnter","innerFn","externalEvent","executeInTheNextEventLoopTick","getActiveElement","root","activeEl","getFocusedListItemIndex","listElement","DEFAULT_DESKTOP_MODE_MEDIA_QUERY","DigitalClockRoot","DigitalClockList","MenuList","DigitalClockItem","MenuItem","alpha","DigitalClock","containerRef","handleRef","listRef","timeStep","skipDisabled","handleRawValueChange","ClockItem","clockItemProps","handleItemSelect","activeItem","offsetTop","valueToCheck","timeOptions","nextTimeStepOption","focusedOptionIndex","option","newIndex","newFocusedIndex","childToFocus","tabIndex","getMultiSectionDigitalClockUtilityClass","getMultiSectionDigitalClockSectionUtilityClass","MultiSectionDigitalClockSectionRoot","MultiSectionDigitalClockSectionItem","MultiSectionDigitalClockSection","previousActive","items","active","DigitalClockSectionItem","isItemDisabled","getHourSectionOptions","resolveAriaLabel","overriddenCurrentHours","resolvedCurrentHours","isFocused","ariaLabel","getTimeSectionOptions","resolveLabel","hasValue","MultiSectionDigitalClockRoot","MultiSectionDigitalClock","inTimeSteps","inViews","timeSteps","handleMeridiemValueChange","buildViewProps","viewToBuild","amLabel","pmLabel","viewsToRender","digitViews","v","viewTimeOptions","currentView","timeView","getPickersDayUtilityClass","pickersDayClasses","disableMargin","disableHighlightToday","outsideCurrentMonth","showDaysOutsideCurrentMonth","isHiddenDaySpacingFiller","styleArg","overridesResolver","PickersDayRoot","ButtonBase","PickersDayFiller","noop","PickersDayRaw","forwardedRef","day","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","isToday","handleMouseDown","handleClick","PickersDay","React.memo","validateDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear","validateTime","DATE_VALIDATION_PROP_NAMES","TIME_VALIDATION_PROP_NAMES","DATE_TIME_VALIDATION_PROP_NAMES","VALIDATION_PROP_NAMES","extractValidationProps","extractedProps","useValidation","validator","onError","previousValidationErrorRef","validationError","hasValidationError","getValidationErrorForNewValue","expandFormat","formatExpansionOverflow","prevFormat","nextFormat","getEscapedPartsFromFormat","expandedFormat","escapedParts","startChar","endChar","regExp","match","getSectionPlaceholder","sectionConfig","sectionFormat","createSection","shouldRespectLeadingZeros","startSeparator","hasLeadingZerosInFormat","hasLeadingZerosInInput","isValidDate","sectionValue","maxLength","buildSections","validTokens","regExpFirstWordInFormat","regExpWordOnlyComposedOfTokens","regExpFirstTokenInWord","getEscapedPartOfCurrentChar","escapeIndex","escapedPartOfCurrentChar","isEscapedChar","firstWordInFormat","word","firstWord","postProcessSections","formatDensity","cleanSeparator","separator","cleanedSeparator","buildSectionsFromFormat","useFieldState","fieldValueManager","internalProps","selectedSectionsProp","onSelectedSectionsChange","enableAccessibleFieldDOMStructure","valueFromTheOutside","getSectionsFromValue","fallbackSections","setState","stateWithoutReferenceDate","innerSetSelectedSections","setSelectedSections","newSelectedSections","parsedSelectedSections","activeSectionIndex","publishValue","prevState","context","setSectionValue","sectionIndex","newSectionValue","newSections","clearValue","clearActiveSection","activeSection","activeDateManager","hasNoOtherNonEmptySections","newValues","updateValueFromValueStr","parseDateStr","newReferenceValue","updateSectionValue","shouldGoToNextSection","newActiveDateSections","values","shouldPublish","setTempAndroidValueStr","tempValueStrAndroid","prev","shouldUpdate","QUERY_LIFE_DURATION_MS","isQueryResponseWithoutValue","response","useFieldCharacterEditing","query","setQuery","resetQuery","applyQuery","keyPressed","getFirstSectionValueMatchingWithQuery","isValidQueryValue","cleanKeyPressed","concatenatedQueryValue","queryResponse","applyLetterEditing","findMatchingOptions","queryValue","matchingValues","testQueryOnFormatAndFallbackFormat","fallbackFormat","formatFallbackValue","getOptions","fallbackOptions","fallbackValue","applyNumericEditing","getNewSectionValue","cleanQueryValue","queryValueNumber","useFieldV7TextField","inSectionListRef","onInput","onPaste","focusedProp","applyCharacterEditing","resetCharacterQuery","sectionOrder","areAllSectionsEmpty","sectionListRef","handleSectionListRef","focused","setFocused","interactions","selection","range","activeElement","newParsedSelectedSections","revertDOMSectionChange","handleContainerClick","cursorPosition","cursorOnStartOfSection","handleContainerInput","handleContainerPaste","pastedValue","handleContainerFocus","handleContainerBlur","getInputContainerClickHandler","handleInputContentMouseUp","getInputContentFocusHandler","handleInputContentPaste","lettersOnly","digitsOnly","digitsAndLetterOnly","handleInputContentDragOver","handleInputContentInput","inputType","domElement","next","isContainerEditable","isEditable","React.version","handleValueStrChange","cleanString","dirtyString","addPositionPropertiesToSections","position","positionInInput","renderedValue","sectionStr","sectionLength","sectionLengthInInput","cleanedValue","startInInput","endInInput","useFieldV6TextField","focusTimeoutRef","selectionSyncTimeoutRef","inputRefProp","inPlaceholder","inputRef","currentScrollTop","selectedSection","selectionStart","selectionEnd","browserStartIndex","browserEndIndex","nextSectionIndex","newSelectedSection","syncSelectionFromDOM","handleInputFocus","handleInputClick","handleInputPaste","handleInputChange","targetValue","eventData","shouldUseEventData","prevValueStr","startOfDiffIndex","endOfDiffIndex","activeSectionEndRelativeToNewValue","placeholder","inputMode","shouldShowPlaceholder","useField","unstableFieldRef","clearable","onClear","stateResponse","characterEditingResponse","useFieldTextField","returnedValue","handleContainerKeyDown","inputError","React.useImperativeHandle","handleClearValue","commonForwardedProps","commonAdditionalProps","useClearableField","InputProps","sx","MuiIconButton","iconButtonProps","EndClearIcon","endClearIconProps","InputAdornment","SHARED_FIELD_INTERNAL_PROP_NAMES","useSplitFieldProps","forwardedProps","extractProp","PickersContext","PickersProvider","useDefaultizedDateField","useDefaultizedTimeField","defaultFormat","useDateField","getPickersTextFieldUtilityClass","getPickersInputBaseUtilityClass","pickersInputBaseClasses","getPickersSectionListUtilityClass","pickersSectionListClasses","PickersSectionListRoot","PickersSectionListSection","PickersSectionListSectionSeparator","PickersSectionListSectionContent","PickersSection","Section","sectionProps","SectionContent","sectionContentProps","SectionSeparator","sectionSeparatorBeforeProps","sectionSeparatorAfterProps","PickersSectionList","rootRef","handleRootRef","getRoot","methodName","sectionContainer","Root","rootProps","content","before","after","elementIndex","round","PickersInputBaseRoot","PickersInputBaseSectionsContainer","adornedStart","filled","PickersInputBaseSection","PickersInputBaseSectionContent","PickersInputBaseSectionSeparator","PickersInputBaseInput","fullWidth","color","endAdornment","startAdornment","PickersInputBase","renderSuffix","contentEditable","inputProps","handleInputRef","muiFormControl","useFormControl","InputRoot","inputRootProps","InputSectionsContainer","getPickersOutlinedInputUtilityClass","pickersOutlinedInputClasses","OutlineRoot","borderColor","OutlineLabel","OutlineLegend","Outline","withLabel","PickersOutlinedInputRoot","PickersOutlinedInputSectionsContainer","composedClasses","PickersOutlinedInput","ownerStateProp","notched","getPickersFilledInputUtilityClass","pickersFilledInputClasses","PickersFilledInputRoot","shouldForwardProp","light","bottomLineColor","backgroundColor","hoverBackground","disabledBackground","PickersFilledSectionsContainer","disableUnderline","PickersFilledInput","getPickersInputUtilityClass","pickersInputClasses","PickersInputRoot","PickersInput","VARIANT_COMPONENT","PickersTextFieldRoot","FormControl","required","PickersTextField","variant","onKeyUp","idProp","helperText","FormHelperTextProps","InputLabelProps","helperTextId","inputLabelId","PickersInputComponent","InputLabel","FormHelperText","convertFieldResponseIntoMuiTextFieldProps","fieldResponse","DateField","inRef","themeProps","TextField","MuiTextField","textFieldProps","convertedFieldResponse","processedFieldProps","useTimeField","TimeField","useIsDateDisabled","createCalendarStateReducer","reduceAnimations","disableSwitchToMonthOnDayFocus","action","newTimezone","newCurrentMonth","needMonthSwitch","useCalendarState","onMonthChange","reducerFn","calendarState","dispatch","React.useReducer","handleChangeMonth","payload","changeMonth","newDate","newDateRequested","onMonthSwitchingAnimationEnd","changeFocusedDay","newFocusedDate","withoutMonthSwitchingAnimation","getPickersFadeTransitionGroupUtilityClass","PickersFadeTransitionGroupRoot","TransitionGroup","PickersFadeTransitionGroup","transKey","useTheme","Fade","getPickersSlideTransitionUtilityClass","pickersSlideTransitionClasses","slideDirection","PickersSlideTransitionRoot","slideTransition","PickersSlideTransition","transitionClasses","React.cloneElement","CSSTransition","getDayCalendarUtilityClass","weeksContainerHeight","PickersCalendarDayRoot","PickersCalendarDayHeader","PickersCalendarWeekDayLabel","PickersCalendarWeekNumberLabel","PickersCalendarWeekNumber","PickersCalendarLoadingContainer","PickersCalendarSlideTransition","PickersCalendarWeekContainer","PickersCalendarWeek","WrappedDay","parentProps","focusableDay","selectedDays","currentMonthNumber","isViewFocused","isMonthSwitchingAnimating","isFocusableDay","selectedDay","Day","dayProps","isFirstVisibleCell","startOfMonth","isLastVisibleCell","endOfMonth","DayCalendar","onFocusedDayChange","currentMonth","focusedDay","loading","onSelectedDaysChange","renderLoading","TransitionProps","dayOfWeekFormatter","gridLabelId","displayWeekNumber","fixedWeekNumber","internalHasFocus","setInternalHasFocus","internalFocusedDay","setInternalFocusedDay","handleDaySelect","focusDay","newFocusedDayDefault","nextAvailableMonth","closestDayToFocus","handleFocus","handleBlur","currentYearNumber","validSelectedDays","transitionKey","slideNodeRef","React.createRef","weeksToDisplay","toDisplay","nextMonth","additionalWeeks","hasCommonWeek","week","weekday","dayIndex","getPickersMonthUtilityClass","pickersMonthClasses","PickersMonthRoot","MonthCalendarButton","PickersMonth","ariaCurrent","MonthButton","monthButtonProps","getMonthCalendarUtilityClass","useMonthCalendarDefaultizedProps","MonthCalendarRoot","MonthCalendar","onMonthFocus","monthsPerRow","todayMonth","selectedMonth","focusedMonth","setFocusedMonth","changeHasFocus","newHasFocus","isMonthDisabled","dateToValidate","monthToValidate","handleMonthSelection","focusMonth","prevFocusedMonth","handleMonthFocus","handleMonthBlur","monthNumber","monthText","monthLabel","getPickersYearUtilityClass","pickersYearClasses","PickersYearRoot","YearCalendarButton","PickersYear","YearButton","yearButtonProps","getYearCalendarUtilityClass","useYearCalendarDefaultizedProps","YearCalendarRoot","YearCalendar","onYearFocus","yearsOrder","yearsPerRow","todayYear","selectedYear","focusedYear","setFocusedYear","isYearDisabled","yearToValidate","handleYearSelection","focusYear","prevFocusedYear","verticalDirection","horizontalDirection","handleYearFocus","handleYearBlur","scrollerRef","tabbableButton","offsetHeight","clientHeight","scrollTop","elementBottom","yearRange","yearNumber","getPickersCalendarHeaderUtilityClass","pickersCalendarHeaderClasses","PickersCalendarHeaderRoot","PickersCalendarHeaderLabelContainer","PickersCalendarHeaderLabel","PickersCalendarHeaderSwitchViewButton","PickersCalendarHeaderSwitchViewIcon","PickersCalendarHeader","SwitchViewButton","switchViewButtonProps","SwitchViewIcon","switchViewIconProps","selectNextMonth","selectPreviousMonth","isNextMonthDisabled","isPreviousMonthDisabled","handleToggleView","nextIndexToOpen","PREFERS_REDUCED_MOTION","mobileVersionMatches","androidVersion","iOSVersion","slowAnimationDevices","useDefaultReduceAnimations","useMediaQuery","getDateCalendarUtilityClass","useDateCalendarDefaultizedProps","defaultReduceAnimations","DateCalendarRoot","DateCalendarViewTransitionContainer","DateCalendar","onYearChange","minDateWithDisabled","maxDateWithDisabled","CalendarHeader","calendarHeaderProps","newMonth","direction","handleDateMonthChange","closestEnabledDate","handleDateYearChange","startOfYear","handleSelectedDayChange","baseDateValidationProps","commonViewProps","prevOpenViewRef","getPickersToolbarUtilityClass","PickersToolbarRoot","PickersToolbarContent","PickersToolbar","toolbarTitle","hidden","titleId","getDatePickerToolbarUtilityClass","DatePickerToolbarRoot","DatePickerToolbarTitle","DatePickerToolbar","isLandscape","toolbarFormat","toolbarPlaceholder","dateText","formatFromViews","useDatePickerDefaultizedProps","getPickersPopperUtilityClass","PickersPopperRoot","MuiPopper","PickersPopperPaper","MuiPaper","placement","clickedRootScrollbar","doc","useClickAwayListener","onClickAway","movedRef","syntheticEventRef","nodeRef","activatedRef","armClickAwayListener","handleClickAway","insideReactTree","insideDOM","handleSynthetic","handleTouchMove","PickersPopperPaperWrapper","PaperComponent","popperPlacement","inOwnerState","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart","paperProps","PickersPopper","anchorEl","shouldRestoreFocus","onDismiss","open","role","inReduceAnimations","nativeEvent","lastFocusedElementRef","clickAwayRef","paperRef","handlePaperRef","Transition","Grow","FocusTrap","BaseFocusTrap","Paper","Popper","popperProps","useOpenState","onOpen","onClose","isControllingOpenProp","openState","setIsOpenState","setIsOpen","newIsOpen","shouldPublishValue","hasChanged","dateState","isCurrentValueTheDefaultValue","shouldCommitValue","closeOnSelect","shouldClosePicker","usePickerValue","wrapperVariant","onAccept","inValueWithoutRenderTimezone","inDefaultValue","previousTimezoneProp","setPreviousTimezoneProp","isOpen","inValueWithTimezoneToRender","setDateState","initialValue","timezoneFromDraftValue","updateDate","updaterParams","comparison","shouldCommit","shouldClose","cachedContext","getContext","isUpdateComingFromPicker","handleClear","handleAccept","handleDismiss","handleCancel","handleSetToday","handleOpen","handleClose","handleChange","handleSelectShortcut","changeImportance","shortcut","handleChangeFromField","actions","viewResponse","layoutResponse","testedValue","usePickerViews","propsFromPickerValue","additionalViewProps","autoFocusView","rendererInterceptor","fieldRef","viewRenderers","propsToForwardToView","hasUIView","viewModeLookup","viewForReduce","viewMode","timeViewsCount","currentViewMode","popperView","setPopperView","_b","renderer","rendererProps","getOrientation","useIsLandscape","customOrientation","orientation","setOrientation","eventHandler","usePickerLayoutProps","propsFromPickerViews","usePickerOwnerState","pickerValueResponse","usePicker","pickerViewsResponse","pickerLayoutResponse","pickerOwnerState","getPickersLayoutUtilityClass","pickersLayoutClasses","PickersActionBar","onCancel","onSetToday","buttons","actionType","Button","DialogActions","PickersShortcuts","isValid","resolvedItems","getValue","List","ListItem","Chip","toolbarHasView","toolbarProps","usePickerLayout","onSelectShortcut","ActionBar","actionBarProps","actionBar","Toolbar","toolbar","Tabs","tabs","Shortcuts","shortcutsProps","shortcuts","PickersLayoutRoot","PickersLayoutContentWrapper","PickersLayout","useDesktopPicker","getOpenDialogAriaText","pickerParams","innerSlotProps","isToolbarHidden","layoutProps","renderCurrentView","pickerFieldProps","MuiInputAdornment","inputAdornmentProps","OpenPickerButton","openPickerButtonProps","OpenPickerIcon","openPickerIconProps","Field","fieldProps","slotsForField","Layout","labelledById","handleFieldRef","renderDateViewCalendar","DesktopDatePicker","defaultizedProps","renderPicker","PickersModalDialogRoot","MuiDialog","dialogClasses","PickersModalDialogContent","DialogContent","PickersModalDialog","Dialog","useMobilePicker","MobileDatePicker","DatePicker","desktopModeMediaQuery","getPickersToolbarTextUtilityClass","pickersToolbarTextClasses","PickersToolbarTextRoot","PickersToolbarText","PickersToolbarButtonRoot","PickersToolbarButton","align","typographyClassName","width","getTimePickerToolbarUtilityClass","timePickerToolbarClasses","TimePickerToolbarRoot","TimePickerToolbarSeparator","TimePickerToolbarHourMinuteLabel","TimePickerToolbarAmPmSelection","TimePickerToolbar","showAmPmControl","formatHours","useTimePickerDefaultizedProps","renderTimeViewClock","renderDigitalClockTimeView","renderMultiSectionDigitalClockTimeView","resolveViews","shouldUseSingleColumn","resolveShouldRenderTimeInASingleColumn","threshold","resolveTimeViewsResponse","inThreshold","thresholdToRenderTimeInASingleColumn","shouldRenderTimeInASingleColumn","DesktopTimePicker","resolvedViews","renderTimeView","actionBarActions","_c","_d","MobileTimePicker","TimePicker","getDateRangePickerDayUtilityClass","dateRangePickerDayClasses","getReleaseInfo","isHighlighting","isStartOfHighlighting","isStartOfMonth","isEndOfHighlighting","isEndOfMonth","isPreviewing","isStartOfPreviewing","isEndOfPreviewing","isHiddenDayFiller","endBorderStyle","startBorderStyle","DateRangePickerDayRoot","DateRangePickerDayRangeIntervalPreview","DateRangePickerDayDay","DateRangePickerDayRaw","isVisuallySelected","draggable","DateRangePickerDay","isRangeValid","isWithinRange","isStartOfRange","isEndOfRange","rangeValueManager","shouldKeepStartDate","shouldKeepEndDate","timezoneStart","timezoneEnd","validateDateRange","dateValidations","excludeProps","excludedProps","useMultiInputFieldSelectedSections","unstableEndFieldRef","handleUnstableEndFieldRef","startSelectedSection","setStartSelectedSection","endSelectedSection","setEndSelectedSection","getActiveField","handleStartSelectedSectionChange","handleEndSelectedSectionChange","activeField","useMultiInputDateRangeField","inSharedProps","startTextFieldProps","unstableStartFieldRef","endTextFieldProps","sharedProps","buildChangeHandler","rawContext","newDateRange","handleStartDateChange","handleEndDateChange","selectedSectionsResponse","startFieldProps","endFieldProps","startDateResponse","endDateResponse","getMultiInputDateRangeFieldUtilityClass","MultiInputDateRangeFieldRoot","Stack","MultiInputDateRangeFieldSeparator","MultiInputDateRangeField","otherForwardedProps","Separator","separatorProps","startDateProps","endDateProps","getDateRangeCalendarUtilityClass","dateRangeCalendarClasses","calculateRangeChange","selectedDate","rangePosition","allowRangeFlip","shouldMergeDateAndTime","newSelectedDate","truthyResult","calculateRangePreview","newRange","previewStart","previewEnd","resolveDateFromTarget","timestampString","timestamp","isSameAsDraggingDate","resolveButtonElement","resolveElementFromTouch","ignoreTouchTarget","buttonElement","useDragRangeEvents","setRangeDragDay","setIsDragging","isDragging","onDatePositionChange","onDrop","disableDragEditing","dateRange","emptyDragImgRef","isElementDraggable","shouldInitDragging","isSelectedStartDate","isSelectedEndDate","handleDragStart","buttonDataset","handleTouchStart","handleDragEnter","handleDragLeave","handleDragOver","handleDragEnd","handleDrop","useDragRange","rangeDragDay","handleRangeDragDayChange","val","draggingDatePosition","dragRangeEvents","useRangePosition","singleInputFieldRef","setRangePosition","syncRangePositionWithSingleInputField","newRangePosition","targetActiveSectionIndex","handleRangePositionChange","DAY_RANGE_SIZE","PickersRangeCalendarHeaderContentMultipleCalendars","PickersRangeCalendarHeader","calendars","monthIndex","otherRangeProps","DateRangeCalendarRoot","DateRangeCalendarMonthContainer","InnerDayCalendarForRange","dayClasses","DayCalendarForRange","useDateRangeCalendarDefaultizedProps","DateRangeCalendar","shouldHavePreview","rangePositionProp","inDefaultRangePosition","inOnRangePositionChange","currentMonthCalendarPosition","disableAutoMonthSwitching","availableRangePositions","onRangePositionChange","handleDatePositionChange","nextSelection","isNextSectionAvailable","isFullRangeSelected","shouldDisableDragEditing","valueDayRange","_useDragRange","dragEventHandlers","draggingRange","wrappedShouldDisableDate","dayToTest","prevValue","prevDate","displayingMonthRange","requestedMonthNumber","rangePreviewDay","setRangePreviewDay","CalendarTransitionProps","previewingRange","handleDayMouseEnter","newPreviewRequest","slotsForDayCalendar","slotPropsForDayCalendar","dayOwnerState","datePosition","calendarMonths","visibleMonths","firstMonth","getDateRangePickerToolbarUtilityClass","DateRangePickerToolbarRoot","DateRangePickerToolbarContainer","DateRangePickerToolbar","startDateValue","endDateValue","useDateRangePickerDefaultizedProps","renderDateRangeViewCalendar","defaultRangePosition","useMultiInputFieldSlotProps","disableOpenPicker","pickerSlotProps","pickerSlots","anchorRef","initialView","startFieldRef","endFieldRef","handleStartFieldRef","handleEndFieldRef","previousRangePosition","currentFieldRef","openRangeStartSelection","openRangeEndSelection","handleFocusStart","handleFocusEnd","resolvedComponentProps","restFieldProps","useSingleInputFieldSlotProps","updateRangePosition","domRangePosition","handleSelectedSectionsChange","openPicker","useEnrichedRangePickerFieldProps","useDesktopRangePicker","fieldContainerRef","popperRef","fieldType","enrichedFieldProps","slotPropsForLayout","DesktopDateRangePicker","useMobileRangePicker","contextTranslations","finalLocaleText","labels","MobileDateRangePicker","DateRangePicker","Mn","k1","q1","Ke","Ir","Rn","it","r","t","o","l","u","g","l1","An","_n","Ln","se","M1","P","st","dr","pr","In","lt","Fn","Hn","L1","On","Vn","ae","ct","$n","B","J1","c1","Se","ur","h1","Dn","I1","Ne","dt","ge","re","We","F1","e1","Pn","Bn","xe","ke","x1","u1","d1","pt","ut","b1","K1","Zn","zn","Nn","Wn","jn","y1","S","m","R","M","p","T","Yn","Or","Hr","ze","Un","Gn","Xn","qn","Jn","Kn","Qn","Vr","ei","ri","ft","ti","ni","ii","w","Q1","W","$r","ai","si","ht","li","ci","gt","di","pi","Ct","ui","fi","hi","Ci","xi","xt","Pr","W1","Br","Re","p1","yi","Zr","mi","vi","wi","Te.useInsertionEffect","Ei","bt","Te.createContext","Si","ue","_e","Ri","H1","er","yt","ki","Ti","Te.useContext","Te.createElement","Te.Fragment","mt","Me","n","zr","Ai","_i","Li","Ii","Fi","Hi","Oi","be","pe","__vitePreload","Vi","ie","T1","$","F","Ce","Di","ir","Pi","i1","Kt","vt","we","Bi","je","cr","Y1","Qt","Z","Ae","fr","hr","X","r1","Nr","Zi","Wr","v1","A1","Le","o1","wt","zi","en","Ni","s1","_1","at","Wi","jr","ji","Yi","Ui","ar","Gi","Xi","qi","Ee","Ji","S1","rt","Ki","Qi","or","Yr","ra","sa","H","R1","a1","ua","fa","ha","ga","Ca","xa","K","qr","vn","gr","U1","tr","sr","Ze","Mt","St","Jr","Rt","ba","w1","ya","ro","cn","ln","ma","va","wa","kt","Kr","Ea","Ma","to","E1","I","J","wn","oe","z","dn","q","ye","me","D","nr","Ra","ka","lr","G1","X1","Be","tt","Ta","ne","Y","un","U","te","ce","En","pn","He","fe","A","Aa","hn","le","Ia","Qr","Fa","Ha","e","freeGlobal","freeSelf","Symbol","objectProto","hasOwnProperty","nativeObjectToString","symToStringTag","getRawTag","isOwn","tag","unmasked","objectToString","nullTag","undefinedTag","baseGetTag","isObjectLike","symbolTag","isSymbol","isArray","reWhitespace","trimmedEndIndex","reTrimStart","baseTrim","isObject","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","isBinary","FUNC_ERROR_TEXT","nativeMax","nativeMin","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","isInvoking","throttle","De","Fe","Dt","zt","Gr","Bt","C","E","L","O","Q","G","ee","N","$e","Pe","Ht","Xr","Gt","rn","nn","Je","sn","an","V","$t","_r","Nt","on","Dr","Ie","Cr","ve","Ue","he","Qe","qt","mn","gn","At","It","Ut","Ft","xn","yn","Wt","nt","Ot","bn","vr","Tn","kr","kn","Xt","Rr","Sn","Er","et","Cn","Sr","Vt","Yt","as","ot","Zt","Lt","Jt","Ye","Mr","Lr","wr","Tr","cs","Et","ls","Ur","Fr","_t","Ar"],"ignoreList":[0,1,2,3,4,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,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,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],"sources":["../../node_modules/@mui/x-license/encoding/md5.js","../../node_modules/@mui/x-license/encoding/base64.js","../../node_modules/@mui/x-license/utils/plan.js","../../node_modules/@mui/x-license/utils/licenseModel.js","../../node_modules/@mui/x-license/utils/licenseErrorMessageUtils.js","../../node_modules/@mui/utils/esm/formatMuiErrorMessage/formatMuiErrorMessage.js","../../node_modules/@mui/utils/esm/ponyfillGlobal/ponyfillGlobal.js","../../node_modules/@mui/utils/esm/refType/refType.js","../../node_modules/@mui/utils/esm/capitalize/capitalize.js","../../node_modules/@mui/utils/esm/debounce/debounce.js","../../node_modules/@mui/utils/esm/ownerDocument/ownerDocument.js","../../node_modules/@mui/utils/esm/ownerWindow/ownerWindow.js","../../node_modules/@mui/utils/esm/setRef/setRef.js","../../node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js","../../node_modules/@mui/utils/esm/useId/useId.js","../../node_modules/@mui/utils/esm/useControlled/useControlled.js","../../node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js","../../node_modules/@mui/utils/esm/useForkRef/useForkRef.js","../../node_modules/@mui/utils/esm/useLazyRef/useLazyRef.js","../../node_modules/@mui/utils/esm/useOnMount/useOnMount.js","../../node_modules/@mui/utils/esm/useTimeout/useTimeout.js","../../node_modules/@mui/utils/esm/visuallyHidden/visuallyHidden.js","../../node_modules/@mui/utils/esm/resolveProps/resolveProps.js","../../node_modules/@mui/utils/esm/composeClasses/composeClasses.js","../../node_modules/@mui/utils/esm/ClassNameGenerator/ClassNameGenerator.js","../../node_modules/@mui/utils/esm/generateUtilityClass/generateUtilityClass.js","../../node_modules/@mui/utils/esm/generateUtilityClasses/generateUtilityClasses.js","../../node_modules/@mui/utils/esm/isHostComponent/isHostComponent.js","../../node_modules/@mui/utils/esm/appendOwnerState/appendOwnerState.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/utils/esm/resolveComponentProps/resolveComponentProps.js","../../node_modules/@mui/utils/esm/useSlotProps/useSlotProps.js","../../node_modules/@mui/x-license/utils/licenseInfo.js","../../node_modules/@mui/x-license/utils/licenseStatus.js","../../node_modules/@mui/x-license/verifyLicense/verifyLicense.js","../../node_modules/@mui/x-license/Unstable_LicenseInfoProvider/MuiLicenseInfoContext.js","../../node_modules/@mui/x-license/useLicenseVerifier/useLicenseVerifier.js","../../node_modules/@mui/x-license/Watermark/Watermark.js","../../node_modules/@mui/x-date-pickers/LocalizationProvider/LocalizationProvider.js","../../node_modules/@mui/x-date-pickers/locales/utils/getPickersLocalization.js","../../node_modules/@mui/x-date-pickers/locales/enUS.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useUtils.js","../../node_modules/@mui/x-date-pickers/hooks/usePickersTranslations.js","../../node_modules/@mui/x-date-pickers/icons/index.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/pickersArrowSwitcherClasses.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersArrowSwitcher/PickersArrowSwitcher.js","../../node_modules/@mui/x-date-pickers/internals/utils/views.js","../../node_modules/@mui/x-date-pickers/internals/utils/time-utils.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useViews.js","../../node_modules/@mui/x-date-pickers/internals/hooks/date-helpers-hooks.js","../../node_modules/@mui/x-date-pickers/internals/constants/dimensions.js","../../node_modules/@mui/x-date-pickers/internals/components/PickerViewRoot/PickerViewRoot.js","../../node_modules/@mui/x-date-pickers/TimeClock/timeClockClasses.js","../../node_modules/@mui/x-date-pickers/TimeClock/shared.js","../../node_modules/@mui/x-date-pickers/TimeClock/clockPointerClasses.js","../../node_modules/@mui/x-date-pickers/TimeClock/ClockPointer.js","../../node_modules/@mui/x-date-pickers/TimeClock/clockClasses.js","../../node_modules/@mui/x-date-pickers/internals/utils/date-utils.js","../../node_modules/@mui/x-date-pickers/TimeClock/Clock.js","../../node_modules/@mui/x-date-pickers/TimeClock/clockNumberClasses.js","../../node_modules/@mui/x-date-pickers/TimeClock/ClockNumber.js","../../node_modules/@mui/x-date-pickers/TimeClock/ClockNumbers.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useValueWithTimezone.js","../../node_modules/@mui/x-date-pickers/internals/utils/getDefaultReferenceDate.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.utils.js","../../node_modules/@mui/x-date-pickers/internals/utils/valueManagers.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useClockReferenceDate.js","../../node_modules/@mui/x-date-pickers/TimeClock/TimeClock.js","../../node_modules/@mui/x-date-pickers/DigitalClock/digitalClockClasses.js","../../node_modules/@mui/x-date-pickers/internals/utils/utils.js","../../node_modules/@mui/x-date-pickers/DigitalClock/DigitalClock.js","../../node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/multiSectionDigitalClockClasses.js","../../node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/multiSectionDigitalClockSectionClasses.js","../../node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js","../../node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock.utils.js","../../node_modules/@mui/x-date-pickers/MultiSectionDigitalClock/MultiSectionDigitalClock.js","../../node_modules/@mui/x-date-pickers/PickersDay/pickersDayClasses.js","../../node_modules/@mui/x-date-pickers/PickersDay/PickersDay.js","../../node_modules/@mui/x-date-pickers/validation/validateDate.js","../../node_modules/@mui/x-date-pickers/validation/validateTime.js","../../node_modules/@mui/x-date-pickers/validation/extractValidationProps.js","../../node_modules/@mui/x-date-pickers/validation/useValidation.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/buildSectionsFromFormat.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldState.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldCharacterEditing.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV7TextField.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useFieldV6TextField.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useField/useField.js","../../node_modules/@mui/x-date-pickers/hooks/useClearableField.js","../../node_modules/@mui/x-date-pickers/hooks/useSplitFieldProps.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersProvider.js","../../node_modules/@mui/x-date-pickers/internals/hooks/defaultizedFieldProps.js","../../node_modules/@mui/x-date-pickers/DateField/useDateField.js","../../node_modules/@mui/x-date-pickers/PickersTextField/pickersTextFieldClasses.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/pickersInputBaseClasses.js","../../node_modules/@mui/x-date-pickers/PickersSectionList/pickersSectionListClasses.js","../../node_modules/@mui/x-date-pickers/PickersSectionList/PickersSectionList.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersInputBase/PickersInputBase.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/pickersOutlinedInputClasses.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/Outline.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersOutlinedInput/PickersOutlinedInput.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/pickersFilledInputClasses.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersFilledInput/PickersFilledInput.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/pickersInputClasses.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersInput/PickersInput.js","../../node_modules/@mui/x-date-pickers/PickersTextField/PickersTextField.js","../../node_modules/@mui/x-date-pickers/internals/utils/convertFieldResponseIntoMuiTextFieldProps.js","../../node_modules/@mui/x-date-pickers/DateField/DateField.js","../../node_modules/@mui/x-date-pickers/TimeField/useTimeField.js","../../node_modules/@mui/x-date-pickers/TimeField/TimeField.js","../../node_modules/@mui/x-date-pickers/DateCalendar/useIsDateDisabled.js","../../node_modules/@mui/x-date-pickers/DateCalendar/useCalendarState.js","../../node_modules/@mui/x-date-pickers/DateCalendar/pickersFadeTransitionGroupClasses.js","../../node_modules/@mui/x-date-pickers/DateCalendar/PickersFadeTransitionGroup.js","../../node_modules/@mui/x-date-pickers/DateCalendar/pickersSlideTransitionClasses.js","../../node_modules/@mui/x-date-pickers/DateCalendar/PickersSlideTransition.js","../../node_modules/@mui/x-date-pickers/DateCalendar/dayCalendarClasses.js","../../node_modules/@mui/x-date-pickers/DateCalendar/DayCalendar.js","../../node_modules/@mui/x-date-pickers/MonthCalendar/pickersMonthClasses.js","../../node_modules/@mui/x-date-pickers/MonthCalendar/PickersMonth.js","../../node_modules/@mui/x-date-pickers/MonthCalendar/monthCalendarClasses.js","../../node_modules/@mui/x-date-pickers/MonthCalendar/MonthCalendar.js","../../node_modules/@mui/x-date-pickers/YearCalendar/pickersYearClasses.js","../../node_modules/@mui/x-date-pickers/YearCalendar/PickersYear.js","../../node_modules/@mui/x-date-pickers/YearCalendar/yearCalendarClasses.js","../../node_modules/@mui/x-date-pickers/YearCalendar/YearCalendar.js","../../node_modules/@mui/x-date-pickers/PickersCalendarHeader/pickersCalendarHeaderClasses.js","../../node_modules/@mui/x-date-pickers/PickersCalendarHeader/PickersCalendarHeader.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useDefaultReduceAnimations.js","../../node_modules/@mui/x-date-pickers/DateCalendar/dateCalendarClasses.js","../../node_modules/@mui/x-date-pickers/DateCalendar/DateCalendar.js","../../node_modules/@mui/x-date-pickers/internals/components/pickersToolbarClasses.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersToolbar.js","../../node_modules/@mui/x-date-pickers/DatePicker/datePickerToolbarClasses.js","../../node_modules/@mui/x-date-pickers/DatePicker/DatePickerToolbar.js","../../node_modules/@mui/x-date-pickers/DatePicker/shared.js","../../node_modules/@mui/x-date-pickers/internals/components/pickersPopperClasses.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersPopper.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useOpenState.js","../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerValue.js","../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerViews.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useIsLandscape.js","../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerLayoutProps.js","../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePickerOwnerState.js","../../node_modules/@mui/x-date-pickers/internals/hooks/usePicker/usePicker.js","../../node_modules/@mui/x-date-pickers/PickersLayout/pickersLayoutClasses.js","../../node_modules/@mui/x-date-pickers/PickersActionBar/PickersActionBar.js","../../node_modules/@mui/x-date-pickers/PickersShortcuts/PickersShortcuts.js","../../node_modules/@mui/x-date-pickers/PickersLayout/usePickerLayout.js","../../node_modules/@mui/x-date-pickers/PickersLayout/PickersLayout.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useDesktopPicker/useDesktopPicker.js","../../node_modules/@mui/x-date-pickers/dateViewRenderers/dateViewRenderers.js","../../node_modules/@mui/x-date-pickers/DesktopDatePicker/DesktopDatePicker.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersModalDialog.js","../../node_modules/@mui/x-date-pickers/internals/hooks/useMobilePicker/useMobilePicker.js","../../node_modules/@mui/x-date-pickers/MobileDatePicker/MobileDatePicker.js","../../node_modules/@mui/x-date-pickers/DatePicker/DatePicker.js","../../node_modules/@mui/x-date-pickers/internals/components/pickersToolbarTextClasses.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersToolbarText.js","../../node_modules/@mui/x-date-pickers/internals/components/PickersToolbarButton.js","../../node_modules/@mui/x-date-pickers/TimePicker/timePickerToolbarClasses.js","../../node_modules/@mui/x-date-pickers/TimePicker/TimePickerToolbar.js","../../node_modules/@mui/x-date-pickers/TimePicker/shared.js","../../node_modules/@mui/x-date-pickers/timeViewRenderers/timeViewRenderers.js","../../node_modules/@mui/x-date-pickers/internals/utils/date-time-utils.js","../../node_modules/@mui/x-date-pickers/DesktopTimePicker/DesktopTimePicker.js","../../node_modules/@mui/x-date-pickers/MobileTimePicker/MobileTimePicker.js","../../node_modules/@mui/x-date-pickers/TimePicker/TimePicker.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePickerDay/dateRangePickerDayClasses.js","../../node_modules/@mui/x-date-pickers-pro/internals/utils/releaseInfo.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePickerDay/DateRangePickerDay.js","../../node_modules/@mui/x-date-pickers-pro/internals/utils/date-utils.js","../../node_modules/@mui/x-date-pickers-pro/internals/utils/valueManagers.js","../../node_modules/@mui/x-date-pickers-pro/validation/validateDateRange.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useMultiInputRangeField/shared.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useMultiInputFieldSelectedSections.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js","../../node_modules/@mui/x-date-pickers-pro/MultiInputDateRangeField/MultiInputDateRangeField.js","../../node_modules/@mui/x-date-pickers-pro/DateRangeCalendar/dateRangeCalendarClasses.js","../../node_modules/@mui/x-date-pickers-pro/internals/utils/date-range-manager.js","../../node_modules/@mui/x-date-pickers-pro/DateRangeCalendar/useDragRange.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useRangePosition.js","../../node_modules/@mui/x-date-pickers-pro/internals/constants/dimensions.js","../../node_modules/@mui/x-date-pickers-pro/PickersRangeCalendarHeader/PickersRangeCalendarHeader.js","../../node_modules/@mui/x-date-pickers-pro/DateRangeCalendar/DateRangeCalendar.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePicker/dateRangePickerToolbarClasses.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePicker/DateRangePickerToolbar.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePicker/shared.js","../../node_modules/@mui/x-date-pickers-pro/dateRangeViewRenderers/dateRangeViewRenderers.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useEnrichedRangePickerFieldProps.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js","../../node_modules/@mui/x-date-pickers-pro/DesktopDateRangePicker/DesktopDateRangePicker.js","../../node_modules/@mui/x-date-pickers-pro/internals/hooks/useMobileRangePicker/useMobileRangePicker.js","../../node_modules/@mui/x-date-pickers-pro/MobileDateRangePicker/MobileDateRangePicker.js","../../node_modules/@mui/x-date-pickers-pro/DateRangePicker/DateRangePicker.js","../../node_modules/treege-consumer/node_modules/@tracktor/design-system/dist/main.js","../../node_modules/treege-consumer/node_modules/@tracktor/react-utils/dist/main.js","../../node_modules/lodash-es/_freeGlobal.js","../../node_modules/lodash-es/_root.js","../../node_modules/lodash-es/_Symbol.js","../../node_modules/lodash-es/_getRawTag.js","../../node_modules/lodash-es/_objectToString.js","../../node_modules/lodash-es/_baseGetTag.js","../../node_modules/lodash-es/isObjectLike.js","../../node_modules/lodash-es/isSymbol.js","../../node_modules/lodash-es/isArray.js","../../node_modules/lodash-es/_trimmedEndIndex.js","../../node_modules/lodash-es/_baseTrim.js","../../node_modules/lodash-es/isObject.js","../../node_modules/lodash-es/toNumber.js","../../node_modules/lodash-es/now.js","../../node_modules/lodash-es/debounce.js","../../node_modules/lodash-es/throttle.js","../../node_modules/treege-consumer/dist/main.js"],"sourcesContent":["/* eslint-disable */\n// See \"precomputation\" in notes\nconst k = [];\nlet i = 0;\nfor (; i < 64;) {\n k[i] = 0 | Math.sin(++i % Math.PI) * 4294967296;\n // k[i] = 0 | (Math.abs(Math.sin(++i)) * 4294967296);\n}\nexport function md5(s) {\n const words = [];\n let b,\n c,\n d,\n j = unescape(encodeURI(s)) + '\\x80',\n a = j.length;\n const h = [b = 0x67452301, c = 0xefcdab89, ~b, ~c];\n s = --a / 4 + 2 | 15;\n\n // See \"Length bits\" in notes\n words[--s] = a * 8;\n for (; ~a;) {\n // a !== -1\n words[a >> 2] |= j.charCodeAt(a) << 8 * a--;\n }\n for (i = j = 0; i < s; i += 16) {\n a = h;\n for (; j < 64; a = [d = a[3], b + ((d = a[0] + [b & c | ~b & d, d & b | ~d & c, b ^ c ^ d, c ^ (b | ~d)][a = j >> 4] + k[j] + ~~words[i | [j, 5 * j + 1, 3 * j + 5, 7 * j][a] & 15]) << (a = [7, 12, 17, 22, 5, 9, 14, 20, 4, 11, 16, 23, 6, 10, 15, 21][4 * a + j++ % 4]) | d >>> -a), b, c]) {\n b = a[1] | 0;\n c = a[2];\n }\n\n // See \"Integer safety\" in notes\n for (j = 4; j;) h[--j] += a[j];\n\n // j === 0\n }\n for (s = ''; j < 32;) {\n s += (h[j >> 3] >> (1 ^ j++) * 4 & 15).toString(16);\n // s += ((h[j >> 3] >> (4 ^ 4 * j++)) & 15).toString(16);\n }\n return s;\n}","/* eslint-disable */\nconst _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';\nfunction utf8Encode(str) {\n for (let n = 0; n < str.length; n++) {\n const c = str.charCodeAt(n);\n if (c >= 128) {\n throw new Error('ASCII only support');\n }\n }\n return str;\n}\nexport const base64Decode = input => {\n let output = '';\n let chr1, chr2, chr3;\n let enc1, enc2, enc3, enc4;\n let i = 0;\n input = input.replace(/[^A-Za-z0-9\\+\\/\\=]/g, '');\n while (i < input.length) {\n enc1 = _keyStr.indexOf(input.charAt(i++));\n enc2 = _keyStr.indexOf(input.charAt(i++));\n enc3 = _keyStr.indexOf(input.charAt(i++));\n enc4 = _keyStr.indexOf(input.charAt(i++));\n chr1 = enc1 << 2 | enc2 >> 4;\n chr2 = (enc2 & 15) << 4 | enc3 >> 2;\n chr3 = (enc3 & 3) << 6 | enc4;\n output = output + String.fromCharCode(chr1);\n if (enc3 != 64) {\n output = output + String.fromCharCode(chr2);\n }\n if (enc4 != 64) {\n output = output + String.fromCharCode(chr3);\n }\n }\n return output;\n};\nexport const base64Encode = input => {\n let output = '';\n let chr1, chr2, chr3, enc1, enc2, enc3, enc4;\n let i = 0;\n input = utf8Encode(input);\n while (i < input.length) {\n chr1 = input.charCodeAt(i++);\n chr2 = input.charCodeAt(i++);\n chr3 = input.charCodeAt(i++);\n enc1 = chr1 >> 2;\n enc2 = (chr1 & 3) << 4 | chr2 >> 4;\n enc3 = (chr2 & 15) << 2 | chr3 >> 6;\n enc4 = chr3 & 63;\n if (isNaN(chr2)) {\n enc3 = enc4 = 64;\n } else if (isNaN(chr3)) {\n enc4 = 64;\n }\n output = output + _keyStr.charAt(enc1) + _keyStr.charAt(enc2) + _keyStr.charAt(enc3) + _keyStr.charAt(enc4);\n }\n return output;\n};","export const PLAN_SCOPES = ['pro', 'premium'];\nexport const PLAN_VERSIONS = ['initial', 'Q3-2024'];","export const LICENSE_MODELS = [\n/**\n * A license is outdated if the current version of the software was released after the expiry date of the license.\n * But the license can be used indefinitely with an older version of the software.\n */\n'perpetual',\n/**\n * On development, a license is outdated if the expiry date has been reached\n * On production, a license is outdated if the current version of the software was released after the expiry date of the license (see \"perpetual\")\n */\n'annual',\n/**\n * Legacy. The previous name for 'annual'.\n * Can be removed once old license keys generated with 'subscription' are no longer supported.\n * To support for a while. We need more years of backward support and we sell multi year licenses.\n */\n'subscription'];","function showError(message) {\n console.error(['*************************************************************', '', ...message, '', '*************************************************************'].join('\\n'));\n}\nexport function showInvalidLicenseKeyError() {\n showError(['MUI X: Invalid license key.', '', \"Your MUI X license key format isn't valid. It could be because the license key is missing a character or has a typo.\", '', 'To solve the issue, you need to double check that `setLicenseKey()` is called with the right argument', 'Please check the license key installation https://mui.com/r/x-license-key-installation.']);\n}\nexport function showLicenseKeyPlanMismatchError() {\n showError(['MUI X: License key plan mismatch.', '', 'Your use of MUI X is not compatible with the plan of your license key. The feature you are trying to use is not included in the plan of your license key. This happens if you try to use Data Grid Premium with a license key for the Pro plan.', '', 'To solve the issue, you can upgrade your plan from Pro to Premium at https://mui.com/r/x-get-license?scope=premium.', \"Of if you didn't intend to use Premium features, you can replace the import of `@mui/x-data-grid-premium` with `@mui/x-data-grid-pro`.\"]);\n}\nexport function showNotAvailableInInitialProPlanError() {\n showError(['MUI X: Component not included in your license.', '', 'The component you are trying to use is not included in the Pro Plan you purchased.', '', 'Your license is from an old version of the Pro Plan that is only compatible with the `@mui/x-data-grid-pro` and `@mui/x-date-pickers-pro` commercial packages.', '', 'To start using another Pro package, please consider reaching to our sales team to upgrade your license or visit https://mui.com/r/x-get-license to get a new license key.']);\n}\nexport function showMissingLicenseKeyError({\n plan,\n packageName\n}) {\n showError(['MUI X: Missing license key.', '', `The license key is missing. You might not be allowed to use \\`${packageName}\\` which is part of MUI X ${plan}.`, '', 'To solve the issue, you can check the free trial conditions: https://mui.com/r/x-license-trial.', 'If you are eligible no actions are required. If you are not eligible to the free trial, you need to purchase a license https://mui.com/r/x-get-license or stop using the software immediately.']);\n}\nexport function showExpiredPackageVersionError({\n packageName\n}) {\n showError(['MUI X: Expired package version.', '', `You have installed a version of \\`${packageName}\\` that is outside of the maintenance plan of your license key. By default, commercial licenses provide access to new versions released during the first year after the purchase.`, '', 'To solve the issue, you can renew your license https://mui.com/r/x-get-license or install an older version of the npm package that is compatible with your license key.']);\n}\nexport function showExpiredAnnualGraceLicenseKeyError({\n plan,\n licenseKey,\n expiryTimestamp\n}) {\n showError(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, '']);\n}\nexport function showExpiredAnnualLicenseKeyError({\n plan,\n licenseKey,\n expiryTimestamp\n}) {\n throw new Error(['MUI X: Expired license key.', '', `Your annual license key to use MUI X ${plan} in non-production environments has expired. If you are seeing this development console message, you might be close to breach the license terms by making direct or indirect changes to the frontend of an app that render a MUI X ${plan} component (more details in https://mui.com/r/x-license-annual).`, '', 'To solve the problem you can either:', '', '- Renew your license https://mui.com/r/x-get-license and use the new key', `- Stop making changes to code depending directly or indirectly on MUI X ${plan}'s APIs`, '', 'Note that your license is perpetual in production environments with any version released before your license term ends.', '', `- License key expiry timestamp: ${new Date(expiryTimestamp)}`, `- Installed license key: ${licenseKey}`, ''].join('\\n'));\n}","/**\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}","/* eslint-disable */\n// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028\nexport default typeof window != 'undefined' && window.Math == Math ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')();","import PropTypes from 'prop-types';\nconst refType = PropTypes.oneOfType([PropTypes.func, PropTypes.object]);\nexport default refType;","import _formatMuiErrorMessage 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.' : _formatMuiErrorMessage(7));\n }\n return string.charAt(0).toUpperCase() + string.slice(1);\n}","// Corresponds to 10 frames at 60 Hz.\n// A few bytes payload overhead when lodash/debounce is ~3 kB and debounce ~300 B.\nexport default function debounce(func, wait = 166) {\n let timeout;\n function debounced(...args) {\n const later = () => {\n // @ts-ignore\n func.apply(this, args);\n };\n clearTimeout(timeout);\n timeout = setTimeout(later, wait);\n }\n debounced.clear = () => {\n clearTimeout(timeout);\n };\n return debounced;\n}","export default function ownerDocument(node) {\n return node && node.ownerDocument || document;\n}","import ownerDocument from \"../ownerDocument/index.js\";\nexport default function ownerWindow(node) {\n const doc = ownerDocument(node);\n return doc.defaultView || window;\n}","/**\n * TODO v5: consider making it private\n *\n * passes {value} to {ref}\n *\n * WARNING: Be sure to only call this inside a callback that is passed as a ref.\n * Otherwise, make sure to cleanup the previous {ref} if it changes. See\n * https://github.com/mui/material-ui/issues/13539\n *\n * Useful if you want to expose the ref of an inner component to the public API\n * while still using it inside the component.\n * @param ref A ref callback or ref object. If anything falsy, this is a no-op.\n */\nexport default function setRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n } else if (ref) {\n ref.current = value;\n }\n}","'use client';\n\nimport * as React from 'react';\n\n/**\n * A version of `React.useLayoutEffect` that does not show a warning when server-side rendering.\n * This is useful for effects that are only needed for client-side rendering but not for SSR.\n *\n * Before you use this hook, make sure to read https://gist.github.com/gaearon/e7d97cdf38a2907924ea12e4ebdf3c85\n * and confirm it doesn't apply to your use-case.\n */\nconst useEnhancedEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;\nexport default useEnhancedEffect;","'use client';\n\nimport * as React from 'react';\nlet globalId = 0;\n\n// TODO React 17: Remove `useGlobalId` once React 17 support is removed\nfunction useGlobalId(idOverride) {\n const [defaultId, setDefaultId] = React.useState(idOverride);\n const id = idOverride || defaultId;\n React.useEffect(() => {\n if (defaultId == null) {\n // Fallback to this default id when possible.\n // Use the incrementing value for client-side rendering only.\n // We can't use it server-side.\n // If you want to use random values please consider the Birthday Problem: https://en.wikipedia.org/wiki/Birthday_problem\n globalId += 1;\n setDefaultId(`mui-${globalId}`);\n }\n }, [defaultId]);\n return id;\n}\n\n// See https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379 for why\nconst safeReact = {\n ...React\n};\nconst maybeReactUseId = safeReact.useId;\n\n/**\n *\n * @example
\n * @param idOverride\n * @returns {string}\n */\nexport default function useId(idOverride) {\n // React.useId() is only available from React 17.0.0.\n if (maybeReactUseId !== undefined) {\n const reactId = maybeReactUseId();\n return idOverride ?? reactId;\n }\n\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 -- `React.useId` is invariant at runtime.\n return useGlobalId(idOverride);\n}","'use client';\n\n// TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- process.env never changes, dependency arrays are intentionally ignored\n/* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\nimport * as React from 'react';\nexport default function useControlled({\n controlled,\n default: defaultProp,\n name,\n state = 'value'\n}) {\n // isControlled is ignored in the hook dependency lists as it should never change.\n const {\n current: isControlled\n } = React.useRef(controlled !== undefined);\n const [valueState, setValue] = React.useState(defaultProp);\n const value = isControlled ? controlled : valueState;\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (controlled !== undefined)) {\n console.error([`MUI: A component is changing the ${isControlled ? '' : 'un'}controlled ${state} state of ${name} to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled ${name} ` + 'element for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [state, name, controlled]);\n const {\n current: defaultValue\n } = React.useRef(defaultProp);\n React.useEffect(() => {\n // Object.is() is not equivalent to the === operator.\n // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is for more details.\n if (!isControlled && !Object.is(defaultValue, defaultProp)) {\n console.error([`MUI: A component is changing the default ${state} state of an uncontrolled ${name} after being initialized. ` + `To suppress this warning opt to use a controlled ${name}.`].join('\\n'));\n }\n }, [JSON.stringify(defaultProp)]);\n }\n const setValueIfUncontrolled = React.useCallback(newValue => {\n if (!isControlled) {\n setValue(newValue);\n }\n }, []);\n return [value, setValueIfUncontrolled];\n}","'use client';\n\nimport * as React from 'react';\nimport useEnhancedEffect from \"../useEnhancedEffect/index.js\";\n\n/**\n * Inspired by https://github.com/facebook/react/issues/14099#issuecomment-440013892\n * See RFC in https://github.com/reactjs/rfcs/pull/220\n */\n\nfunction useEventCallback(fn) {\n const ref = React.useRef(fn);\n useEnhancedEffect(() => {\n ref.current = fn;\n });\n return React.useRef((...args) =>\n // @ts-expect-error hide `this`\n (0, ref.current)(...args)).current;\n}\nexport default useEventCallback;","'use client';\n\nimport * as React from 'react';\nimport setRef from \"../setRef/index.js\";\n\n/**\n * Takes an array of refs and returns a new ref which will apply any modification to all of the refs.\n * This is useful when you want to have the ref used in multiple places.\n *\n * ```tsx\n * const rootRef = React.useRef(null);\n * const refFork = useForkRef(rootRef, props.ref);\n *\n * return (\n * \n * );\n * ```\n *\n * @param {Array | undefined>} refs The ref array.\n * @returns {React.RefCallback | null} The new ref callback.\n */\nexport default function useForkRef(...refs) {\n /**\n * This will create a new function if the refs passed to this hook change and are all defined.\n * This means react will call the old forkRef with `null` and the new forkRef\n * with the ref. Cleanup naturally emerges from this behavior.\n */\n return React.useMemo(() => {\n if (refs.every(ref => ref == null)) {\n return null;\n }\n return instance => {\n refs.forEach(ref => {\n setRef(ref, instance);\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 * as React from 'react';\nconst UNINITIALIZED = {};\n\n/**\n * A React.useRef() that is initialized lazily with a function. Note that it accepts an optional\n * initialization argument, so the initialization function doesn't need to be an inline closure.\n *\n * @usage\n * const ref = useLazyRef(sortColumns, columns)\n */\nexport default function useLazyRef(init, initArg) {\n const ref = React.useRef(UNINITIALIZED);\n if (ref.current === UNINITIALIZED) {\n ref.current = init(initArg);\n }\n return ref;\n}","'use client';\n\nimport * as React from 'react';\nconst EMPTY = [];\n\n/**\n * A React.useEffect equivalent that runs once, when the component is mounted.\n */\nexport default function useOnMount(fn) {\n // TODO: uncomment once we enable eslint-plugin-react-compiler // eslint-disable-next-line react-compiler/react-compiler -- no need to put `fn` in the dependency array\n /* eslint-disable react-hooks/exhaustive-deps */\n React.useEffect(fn, EMPTY);\n /* eslint-enable react-hooks/exhaustive-deps */\n}","'use client';\n\nimport useLazyRef from \"../useLazyRef/useLazyRef.js\";\nimport useOnMount from \"../useOnMount/useOnMount.js\";\nexport class Timeout {\n static create() {\n return new Timeout();\n }\n currentId = null;\n\n /**\n * Executes `fn` after `delay`, clearing any previously scheduled call.\n */\n start(delay, fn) {\n this.clear();\n this.currentId = setTimeout(() => {\n this.currentId = null;\n fn();\n }, delay);\n }\n clear = () => {\n if (this.currentId !== null) {\n clearTimeout(this.currentId);\n this.currentId = null;\n }\n };\n disposeEffect = () => {\n return this.clear;\n };\n}\nexport default function useTimeout() {\n const timeout = useLazyRef(Timeout.create).current;\n useOnMount(timeout.disposeEffect);\n return timeout;\n}","const visuallyHidden = {\n border: 0,\n clip: 'rect(0 0 0 0)',\n height: '1px',\n margin: '-1px',\n overflow: 'hidden',\n padding: 0,\n position: 'absolute',\n whiteSpace: 'nowrap',\n width: '1px'\n};\nexport default visuallyHidden;","/**\n * Add keys, values of `defaultProps` that does not exist in `props`\n * @param defaultProps\n * @param props\n * @returns resolved props\n */\nexport default function resolveProps(defaultProps, props) {\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]);\n }\n }\n }\n } else if (output[propName] === undefined) {\n output[propName] = defaultProps[propName];\n }\n }\n }\n return output;\n}","/* eslint no-restricted-syntax: 0, prefer-template: 0, guard-for-in: 0\n ---\n These rules are preventing the performance optimizations below.\n */\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}","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;","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}","/**\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 * 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;","/**\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;","'use client';\n\nimport useForkRef from \"../useForkRef/index.js\";\nimport appendOwnerState from \"../appendOwnerState/index.js\";\nimport mergeSlotProps from \"../mergeSlotProps/index.js\";\nimport resolveComponentProps from \"../resolveComponentProps/index.js\";\n/**\n * @ignore - do not document.\n * Builds the props to be passed into the slot of an unstyled component.\n * It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.\n * If the slot component is not a host component, it also merges in the `ownerState`.\n *\n * @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.\n */\nfunction useSlotProps(parameters) {\n const {\n elementType,\n externalSlotProps,\n ownerState,\n skipResolvingSlotProps = false,\n ...other\n } = parameters;\n const resolvedComponentsProps = skipResolvingSlotProps ? {} : resolveComponentProps(externalSlotProps, ownerState);\n const {\n props: mergedProps,\n internalRef\n } = mergeSlotProps({\n ...other,\n externalSlotProps: resolvedComponentsProps\n });\n const ref = useForkRef(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);\n const props = appendOwnerState(elementType, {\n ...mergedProps,\n ref\n }, ownerState);\n return props;\n}\nexport default useSlotProps;","import { ponyfillGlobal } from '@mui/utils';\n\n/**\n * @ignore - do not document.\n */\n\n// Store the license information in a global, so it can be shared\n// when module duplication occurs. The duplication of the modules can happen\n// if using multiple version of MUI X at the same time of the bundler\n// decide to duplicate to improve the size of the chunks.\n// eslint-disable-next-line no-underscore-dangle\nponyfillGlobal.__MUI_LICENSE_INFO__ = ponyfillGlobal.__MUI_LICENSE_INFO__ || {\n key: undefined\n};\nexport class LicenseInfo {\n static getLicenseInfo() {\n // eslint-disable-next-line no-underscore-dangle\n return ponyfillGlobal.__MUI_LICENSE_INFO__;\n }\n static getLicenseKey() {\n return LicenseInfo.getLicenseInfo().key;\n }\n static setLicenseKey(key) {\n const licenseInfo = LicenseInfo.getLicenseInfo();\n licenseInfo.key = key;\n }\n}","// eslint-disable-next-line @typescript-eslint/naming-convention\nexport let LICENSE_STATUS = /*#__PURE__*/function (LICENSE_STATUS) {\n LICENSE_STATUS[\"NotFound\"] = \"NotFound\";\n LICENSE_STATUS[\"Invalid\"] = \"Invalid\";\n LICENSE_STATUS[\"ExpiredAnnual\"] = \"ExpiredAnnual\";\n LICENSE_STATUS[\"ExpiredAnnualGrace\"] = \"ExpiredAnnualGrace\";\n LICENSE_STATUS[\"ExpiredVersion\"] = \"ExpiredVersion\";\n LICENSE_STATUS[\"Valid\"] = \"Valid\";\n LICENSE_STATUS[\"OutOfScope\"] = \"OutOfScope\";\n LICENSE_STATUS[\"NotAvailableInInitialProPlan\"] = \"NotAvailableInInitialProPlan\";\n return LICENSE_STATUS;\n}({});","import { base64Decode, base64Encode } from \"../encoding/base64.js\";\nimport { md5 } from \"../encoding/md5.js\";\nimport { LICENSE_STATUS } from \"../utils/licenseStatus.js\";\nimport { PLAN_SCOPES } from \"../utils/plan.js\";\nimport { LICENSE_MODELS } from \"../utils/licenseModel.js\";\nconst getDefaultReleaseDate = () => {\n const today = new Date();\n today.setHours(0, 0, 0, 0);\n return today;\n};\nexport function generateReleaseInfo(releaseDate = getDefaultReleaseDate()) {\n return base64Encode(releaseDate.getTime().toString());\n}\nfunction isPlanScopeSufficient(packageName, planScope) {\n let acceptedScopes;\n if (packageName.includes('-pro')) {\n acceptedScopes = ['pro', 'premium'];\n } else if (packageName.includes('-premium')) {\n acceptedScopes = ['premium'];\n } else {\n acceptedScopes = [];\n }\n return acceptedScopes.includes(planScope);\n}\nconst expiryReg = /^.*EXPIRY=([0-9]+),.*$/;\nconst PRO_PACKAGES_AVAILABLE_IN_INITIAL_PRO_PLAN = ['x-data-grid-pro', 'x-date-pickers-pro'];\n\n/**\n * Format: ORDER:${orderNumber},EXPIRY=${expiryTimestamp},KEYVERSION=1\n */\nconst decodeLicenseVersion1 = license => {\n let expiryTimestamp;\n try {\n expiryTimestamp = parseInt(license.match(expiryReg)[1], 10);\n if (!expiryTimestamp || Number.isNaN(expiryTimestamp)) {\n expiryTimestamp = null;\n }\n } catch (err) {\n expiryTimestamp = null;\n }\n return {\n planScope: 'pro',\n licenseModel: 'perpetual',\n expiryTimestamp,\n planVersion: 'initial'\n };\n};\n\n/**\n * Format: O=${orderNumber},E=${expiryTimestamp},S=${planScope},LM=${licenseModel},PV=${planVersion},KV=2`;\n */\nconst decodeLicenseVersion2 = license => {\n const licenseInfo = {\n planScope: null,\n licenseModel: null,\n expiryTimestamp: null,\n planVersion: 'initial'\n };\n license.split(',').map(token => token.split('=')).filter(el => el.length === 2).forEach(([key, value]) => {\n if (key === 'S') {\n licenseInfo.planScope = value;\n }\n if (key === 'LM') {\n licenseInfo.licenseModel = value;\n }\n if (key === 'E') {\n const expiryTimestamp = parseInt(value, 10);\n if (expiryTimestamp && !Number.isNaN(expiryTimestamp)) {\n licenseInfo.expiryTimestamp = expiryTimestamp;\n }\n }\n if (key === 'PV') {\n licenseInfo.planVersion = value;\n }\n });\n return licenseInfo;\n};\n\n/**\n * Decode the license based on its key version and return a version-agnostic `MuiLicense` object.\n */\nconst decodeLicense = encodedLicense => {\n const license = base64Decode(encodedLicense);\n if (license.includes('KEYVERSION=1')) {\n return decodeLicenseVersion1(license);\n }\n if (license.includes('KV=2')) {\n return decodeLicenseVersion2(license);\n }\n return null;\n};\nexport function verifyLicense({\n releaseInfo,\n licenseKey,\n packageName\n}) {\n if (!releaseInfo) {\n throw new Error('MUI X: The release information is missing. Not able to validate license.');\n }\n if (!licenseKey) {\n return {\n status: LICENSE_STATUS.NotFound\n };\n }\n const hash = licenseKey.substr(0, 32);\n const encoded = licenseKey.substr(32);\n if (hash !== md5(encoded)) {\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n const license = decodeLicense(encoded);\n if (license == null) {\n console.error('MUI X: Error checking license. Key version not found!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.licenseModel == null || !LICENSE_MODELS.includes(license.licenseModel)) {\n console.error('MUI X: Error checking license. Licensing model not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.expiryTimestamp == null) {\n console.error('MUI X: Error checking license. Expiry timestamp not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (license.licenseModel === 'perpetual' || process.env.NODE_ENV === 'production') {\n const pkgTimestamp = parseInt(base64Decode(releaseInfo), 10);\n if (Number.isNaN(pkgTimestamp)) {\n throw new Error('MUI X: The release information is invalid. Not able to validate license.');\n }\n if (license.expiryTimestamp < pkgTimestamp) {\n return {\n status: LICENSE_STATUS.ExpiredVersion\n };\n }\n } else if (license.licenseModel === 'subscription' || license.licenseModel === 'annual') {\n if (new Date().getTime() > license.expiryTimestamp) {\n if (\n // 30 days grace\n new Date().getTime() < license.expiryTimestamp + 1000 * 3600 * 24 * 30 || process.env.NODE_ENV !== 'development') {\n return {\n status: LICENSE_STATUS.ExpiredAnnualGrace,\n meta: {\n expiryTimestamp: license.expiryTimestamp,\n licenseKey\n }\n };\n }\n return {\n status: LICENSE_STATUS.ExpiredAnnual,\n meta: {\n expiryTimestamp: license.expiryTimestamp,\n licenseKey\n }\n };\n }\n }\n if (license.planScope == null || !PLAN_SCOPES.includes(license.planScope)) {\n console.error('MUI X: Error checking license. planScope not found or invalid!');\n return {\n status: LICENSE_STATUS.Invalid\n };\n }\n if (!isPlanScopeSufficient(packageName, license.planScope)) {\n return {\n status: LICENSE_STATUS.OutOfScope\n };\n }\n\n // 'charts-pro' or 'tree-view-pro' can only be used with a newer Pro license\n if (license.planVersion === 'initial' && license.planScope === 'pro' && !PRO_PACKAGES_AVAILABLE_IN_INITIAL_PRO_PLAN.includes(packageName)) {\n return {\n status: LICENSE_STATUS.NotAvailableInInitialProPlan\n };\n }\n return {\n status: LICENSE_STATUS.Valid\n };\n}","import * as React from 'react';\nconst MuiLicenseInfoContext = /*#__PURE__*/React.createContext({\n key: undefined\n});\nif (process.env.NODE_ENV !== 'production') {\n MuiLicenseInfoContext.displayName = 'MuiLicenseInfoContext';\n}\nexport default MuiLicenseInfoContext;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { verifyLicense } from \"../verifyLicense/verifyLicense.js\";\nimport { LicenseInfo } from \"../utils/licenseInfo.js\";\nimport { showExpiredAnnualGraceLicenseKeyError, showExpiredAnnualLicenseKeyError, showInvalidLicenseKeyError, showMissingLicenseKeyError, showLicenseKeyPlanMismatchError, showExpiredPackageVersionError, showNotAvailableInInitialProPlanError } from \"../utils/licenseErrorMessageUtils.js\";\nimport { LICENSE_STATUS } from \"../utils/licenseStatus.js\";\nimport MuiLicenseInfoContext from \"../Unstable_LicenseInfoProvider/MuiLicenseInfoContext.js\";\nexport const sharedLicenseStatuses = {};\nexport function useLicenseVerifier(packageName, releaseInfo) {\n const {\n key: contextKey\n } = React.useContext(MuiLicenseInfoContext);\n return React.useMemo(() => {\n const licenseKey = contextKey ?? LicenseInfo.getLicenseKey();\n\n // Cache the response to not trigger the error twice.\n if (sharedLicenseStatuses[packageName] && sharedLicenseStatuses[packageName].key === licenseKey) {\n return sharedLicenseStatuses[packageName].licenseVerifier;\n }\n const plan = packageName.includes('premium') ? 'Premium' : 'Pro';\n const licenseStatus = verifyLicense({\n releaseInfo,\n licenseKey,\n packageName\n });\n const fullPackageName = `@mui/${packageName}`;\n if (licenseStatus.status === LICENSE_STATUS.Valid) {\n // Skip\n } else if (licenseStatus.status === LICENSE_STATUS.Invalid) {\n showInvalidLicenseKeyError();\n } else if (licenseStatus.status === LICENSE_STATUS.NotAvailableInInitialProPlan) {\n showNotAvailableInInitialProPlanError();\n } else if (licenseStatus.status === LICENSE_STATUS.OutOfScope) {\n showLicenseKeyPlanMismatchError();\n } else if (licenseStatus.status === LICENSE_STATUS.NotFound) {\n showMissingLicenseKeyError({\n plan,\n packageName: fullPackageName\n });\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredAnnualGrace) {\n showExpiredAnnualGraceLicenseKeyError(_extends({\n plan\n }, licenseStatus.meta));\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredAnnual) {\n showExpiredAnnualLicenseKeyError(_extends({\n plan\n }, licenseStatus.meta));\n } else if (licenseStatus.status === LICENSE_STATUS.ExpiredVersion) {\n showExpiredPackageVersionError({\n packageName: fullPackageName\n });\n } else if (process.env.NODE_ENV !== 'production') {\n throw new Error('missing status handler');\n }\n sharedLicenseStatuses[packageName] = {\n key: licenseKey,\n licenseVerifier: licenseStatus\n };\n return licenseStatus;\n }, [packageName, releaseInfo, contextKey]);\n}","import * as React from 'react';\nimport { useLicenseVerifier } from \"../useLicenseVerifier/index.js\";\nimport { LICENSE_STATUS } from \"../utils/licenseStatus.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction getLicenseErrorMessage(licenseStatus) {\n switch (licenseStatus) {\n case LICENSE_STATUS.ExpiredAnnualGrace:\n case LICENSE_STATUS.ExpiredAnnual:\n return 'MUI X Expired license key';\n case LICENSE_STATUS.ExpiredVersion:\n return 'MUI X Expired package version';\n case LICENSE_STATUS.Invalid:\n return 'MUI X Invalid license key';\n case LICENSE_STATUS.OutOfScope:\n return 'MUI X License key plan mismatch';\n case LICENSE_STATUS.NotAvailableInInitialProPlan:\n return 'MUI X Product not covered by plan';\n case LICENSE_STATUS.NotFound:\n return 'MUI X Missing license key';\n default:\n throw new Error('Unhandled MUI X license status.');\n }\n}\nexport function Watermark(props) {\n const {\n packageName,\n releaseInfo\n } = props;\n const licenseStatus = useLicenseVerifier(packageName, releaseInfo);\n if (licenseStatus.status === LICENSE_STATUS.Valid) {\n return null;\n }\n return /*#__PURE__*/_jsx(\"div\", {\n style: {\n position: 'absolute',\n pointerEvents: 'none',\n color: '#8282829e',\n zIndex: 100000,\n width: '100%',\n textAlign: 'center',\n bottom: '50%',\n right: 0,\n letterSpacing: 5,\n fontSize: 24\n },\n children: getLicenseErrorMessage(licenseStatus.status)\n });\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"localeText\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useThemeProps } from '@mui/material/styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const MuiPickersAdapterContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== 'production') {\n MuiPickersAdapterContext.displayName = 'MuiPickersAdapterContext';\n}\n/**\n * Demos:\n *\n * - [Date format and localization](https://mui.com/x/react-date-pickers/adapters-locale/)\n * - [Calendar systems](https://mui.com/x/react-date-pickers/calendar-systems/)\n * - [Translated components](https://mui.com/x/react-date-pickers/localization/)\n * - [UTC and timezones](https://mui.com/x/react-date-pickers/timezone/)\n *\n * API:\n *\n * - [LocalizationProvider API](https://mui.com/x/api/date-pickers/localization-provider/)\n */\nexport const LocalizationProvider = function LocalizationProvider(inProps) {\n const {\n localeText: inLocaleText\n } = inProps,\n otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);\n const {\n utils: parentUtils,\n localeText: parentLocaleText\n } = React.useContext(MuiPickersAdapterContext) ?? {\n utils: undefined,\n localeText: undefined\n };\n const props = useThemeProps({\n // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,\n // We will then merge this theme value with our value manually\n props: otherInProps,\n name: 'MuiLocalizationProvider'\n });\n const {\n children,\n dateAdapter: DateAdapter,\n dateFormats,\n dateLibInstance,\n adapterLocale,\n localeText: themeLocaleText\n } = props;\n const localeText = React.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);\n const utils = React.useMemo(() => {\n if (!DateAdapter) {\n if (parentUtils) {\n return parentUtils;\n }\n return null;\n }\n const adapter = new DateAdapter({\n locale: adapterLocale,\n formats: dateFormats,\n instance: dateLibInstance\n });\n if (!adapter.isMUIAdapter) {\n throw new Error(['MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`', \"For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`\", 'More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation'].join(`\\n`));\n }\n return adapter;\n }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);\n const defaultDates = React.useMemo(() => {\n if (!utils) {\n return null;\n }\n return {\n minDate: utils.date('1900-01-01T00:00:00.000'),\n maxDate: utils.date('2099-12-31T00:00:00.000')\n };\n }, [utils]);\n const contextValue = React.useMemo(() => {\n return {\n utils,\n defaultDates,\n localeText\n };\n }, [defaultDates, utils, localeText]);\n return /*#__PURE__*/_jsx(MuiPickersAdapterContext.Provider, {\n value: contextValue,\n children: children\n });\n};\nprocess.env.NODE_ENV !== \"production\" ? LocalizationProvider.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 * Locale for the date library you are using\n */\n adapterLocale: PropTypes.any,\n children: PropTypes.node,\n /**\n * Date library adapter class function.\n * @see See the localization provider {@link https://mui.com/x/react-date-pickers/getting-started/#setup-your-date-library-adapter date adapter setup section} for more details.\n */\n dateAdapter: PropTypes.func,\n /**\n * Formats that are used for any child pickers\n */\n dateFormats: PropTypes.shape({\n dayOfMonth: PropTypes.string,\n dayOfMonthFull: PropTypes.string,\n fullDate: PropTypes.string,\n fullTime: PropTypes.string,\n fullTime12h: PropTypes.string,\n fullTime24h: PropTypes.string,\n hours12h: PropTypes.string,\n hours24h: PropTypes.string,\n keyboardDate: PropTypes.string,\n keyboardDateTime: PropTypes.string,\n keyboardDateTime12h: PropTypes.string,\n keyboardDateTime24h: PropTypes.string,\n meridiem: PropTypes.string,\n minutes: PropTypes.string,\n month: PropTypes.string,\n monthShort: PropTypes.string,\n normalDate: PropTypes.string,\n normalDateWithWeekday: PropTypes.string,\n seconds: PropTypes.string,\n shortDate: PropTypes.string,\n weekday: PropTypes.string,\n weekdayShort: PropTypes.string,\n year: PropTypes.string\n }),\n /**\n * Date library instance you are using, if it has some global overrides\n * ```jsx\n * dateLibInstance={momentTimeZone}\n * ```\n */\n dateLibInstance: PropTypes.any,\n /**\n * Locale for components texts\n */\n localeText: PropTypes.object\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nexport const getPickersLocalization = pickersTranslations => {\n return {\n components: {\n MuiLocalizationProvider: {\n defaultProps: {\n localeText: _extends({}, pickersTranslations)\n }\n }\n }\n };\n};\nexport const buildGetOpenDialogAriaText = params => {\n const {\n utils,\n formatKey,\n contextTranslation,\n propsTranslation\n } = params;\n return value => {\n const formattedValue = value !== null && utils.isValid(value) ? utils.format(value, formatKey) : null;\n const translation = propsTranslation ?? contextTranslation;\n return translation(value, utils, formattedValue);\n };\n};","import { getPickersLocalization } from \"./utils/getPickersLocalization.js\";\n\n// This object is not Partial because it is the default values\n\nconst enUSPickers = {\n // Calendar navigation\n previousMonth: 'Previous month',\n nextMonth: 'Next month',\n // View navigation\n openPreviousView: 'Open previous view',\n openNextView: 'Open next view',\n calendarViewSwitchingButtonAriaLabel: view => view === 'year' ? 'year view is open, switch to calendar view' : 'calendar view is open, switch to year view',\n // DateRange labels\n start: 'Start',\n end: 'End',\n startDate: 'Start date',\n startTime: 'Start time',\n endDate: 'End date',\n endTime: 'End time',\n // Action bar\n cancelButtonLabel: 'Cancel',\n clearButtonLabel: 'Clear',\n okButtonLabel: 'OK',\n todayButtonLabel: 'Today',\n // Toolbar titles\n datePickerToolbarTitle: 'Select date',\n dateTimePickerToolbarTitle: 'Select date & time',\n timePickerToolbarTitle: 'Select time',\n dateRangePickerToolbarTitle: 'Select date range',\n // Clock labels\n clockLabelText: (view, time, utils, formattedTime) => `Select ${view}. ${!formattedTime && (time === null || !utils.isValid(time)) ? 'No time selected' : `Selected time is ${formattedTime ?? utils.format(time, 'fullTime')}`}`,\n hoursClockNumberText: hours => `${hours} hours`,\n minutesClockNumberText: minutes => `${minutes} minutes`,\n secondsClockNumberText: seconds => `${seconds} seconds`,\n // Digital clock labels\n selectViewText: view => `Select ${view}`,\n // Calendar labels\n calendarWeekNumberHeaderLabel: 'Week number',\n calendarWeekNumberHeaderText: '#',\n calendarWeekNumberAriaLabelText: weekNumber => `Week ${weekNumber}`,\n calendarWeekNumberText: weekNumber => `${weekNumber}`,\n // Open picker labels\n openDatePickerDialogue: (value, utils, formattedDate) => formattedDate || value !== null && utils.isValid(value) ? `Choose date, selected date is ${formattedDate ?? utils.format(value, 'fullDate')}` : 'Choose date',\n openTimePickerDialogue: (value, utils, formattedTime) => formattedTime || value !== null && utils.isValid(value) ? `Choose time, selected time is ${formattedTime ?? utils.format(value, 'fullTime')}` : 'Choose time',\n fieldClearLabel: 'Clear',\n // Table labels\n timeTableLabel: 'pick time',\n dateTableLabel: 'pick date',\n // Field section placeholders\n fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount),\n fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM',\n fieldDayPlaceholder: () => 'DD',\n fieldWeekDayPlaceholder: params => params.contentType === 'letter' ? 'EEEE' : 'EE',\n fieldHoursPlaceholder: () => 'hh',\n fieldMinutesPlaceholder: () => 'mm',\n fieldSecondsPlaceholder: () => 'ss',\n fieldMeridiemPlaceholder: () => 'aa',\n // View names\n year: 'Year',\n month: 'Month',\n day: 'Day',\n weekDay: 'Week day',\n hours: 'Hours',\n minutes: 'Minutes',\n seconds: 'Seconds',\n meridiem: 'Meridiem',\n // Common\n empty: 'Empty'\n};\nexport const DEFAULT_LOCALE = enUSPickers;\nexport const enUS = getPickersLocalization(enUSPickers);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { MuiPickersAdapterContext } from \"../../LocalizationProvider/LocalizationProvider.js\";\nimport { DEFAULT_LOCALE } from \"../../locales/enUS.js\";\nexport const useLocalizationContext = () => {\n const localization = React.useContext(MuiPickersAdapterContext);\n if (localization === null) {\n throw new Error(['MUI X: Can not find the date and time pickers localization context.', 'It looks like you forgot to wrap your component in LocalizationProvider.', 'This can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package'].join('\\n'));\n }\n if (localization.utils === null) {\n throw new Error(['MUI X: Can not find the date and time pickers adapter from its localization context.', 'It looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.'].join('\\n'));\n }\n const localeText = React.useMemo(() => _extends({}, DEFAULT_LOCALE, localization.localeText), [localization.localeText]);\n return React.useMemo(() => _extends({}, localization, {\n localeText\n }), [localization, localeText]);\n};\nexport const useUtils = () => useLocalizationContext().utils;\nexport const useDefaultDates = () => useLocalizationContext().defaultDates;\nexport const useNow = timezone => {\n const utils = useUtils();\n const now = React.useRef();\n if (now.current === undefined) {\n now.current = utils.date(undefined, timezone);\n }\n return now.current;\n};","'use client';\n\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\nexport const usePickersTranslations = () => useLocalizationContext().localeText;","import { createSvgIcon } from '@mui/material/utils';\nimport * as React from 'react';\n\n/**\n * @ignore - internal component.\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const ArrowDropDownIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M7 10l5 5 5-5z\"\n}), 'ArrowDropDown');\n\n/**\n * @ignore - internal component.\n */\nexport const ArrowLeftIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z\"\n}), 'ArrowLeft');\n\n/**\n * @ignore - internal component.\n */\nexport const ArrowRightIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z\"\n}), 'ArrowRight');\n\n/**\n * @ignore - internal component.\n */\nexport const CalendarIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z\"\n}), 'Calendar');\n\n/**\n * @ignore - internal component.\n */\nexport const ClockIcon = createSvgIcon(/*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n }), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"\n })]\n}), 'Clock');\n\n/**\n * @ignore - internal component.\n */\nexport const DateRangeIcon = createSvgIcon(/*#__PURE__*/_jsx(\"path\", {\n d: \"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z\"\n}), 'DateRange');\n\n/**\n * @ignore - internal component.\n */\nexport const TimeIcon = createSvgIcon(/*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(\"path\", {\n d: \"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z\"\n }), /*#__PURE__*/_jsx(\"path\", {\n d: \"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z\"\n })]\n}), 'Time');\n\n/**\n * @ignore - internal component.\n */\nexport const ClearIcon = 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}), 'Clear');","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersArrowSwitcherUtilityClass(slot) {\n return generateUtilityClass('MuiPickersArrowSwitcher', slot);\n}\nexport const pickersArrowSwitcherClasses = generateUtilityClasses('MuiPickersArrowSwitcher', ['root', 'spacer', 'button', 'previousIconButton', 'nextIconButton', 'leftArrowIcon', 'rightArrowIcon']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"slots\", \"slotProps\", \"isNextDisabled\", \"isNextHidden\", \"onGoToNext\", \"nextLabel\", \"isPreviousDisabled\", \"isPreviousHidden\", \"onGoToPrevious\", \"previousLabel\", \"labelId\"],\n _excluded2 = [\"ownerState\"],\n _excluded3 = [\"ownerState\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport IconButton from '@mui/material/IconButton';\nimport { ArrowLeftIcon, ArrowRightIcon } from \"../../../icons/index.js\";\nimport { getPickersArrowSwitcherUtilityClass } from \"./pickersArrowSwitcherClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PickersArrowSwitcherRoot = styled('div', {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'flex'\n});\nconst PickersArrowSwitcherSpacer = styled('div', {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Spacer',\n overridesResolver: (props, styles) => styles.spacer\n})(({\n theme\n}) => ({\n width: theme.spacing(3)\n}));\nconst PickersArrowSwitcherButton = styled(IconButton, {\n name: 'MuiPickersArrowSwitcher',\n slot: 'Button',\n overridesResolver: (props, styles) => styles.button\n})({\n variants: [{\n props: {\n hidden: true\n },\n style: {\n visibility: 'hidden'\n }\n }]\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n spacer: ['spacer'],\n button: ['button'],\n previousIconButton: ['previousIconButton'],\n nextIconButton: ['nextIconButton'],\n leftArrowIcon: ['leftArrowIcon'],\n rightArrowIcon: ['rightArrowIcon']\n };\n return composeClasses(slots, getPickersArrowSwitcherUtilityClass, classes);\n};\nexport const PickersArrowSwitcher = /*#__PURE__*/React.forwardRef(function PickersArrowSwitcher(inProps, ref) {\n const isRtl = useRtl();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersArrowSwitcher'\n });\n const {\n children,\n className,\n slots,\n slotProps,\n isNextDisabled,\n isNextHidden,\n onGoToNext,\n nextLabel,\n isPreviousDisabled,\n isPreviousHidden,\n onGoToPrevious,\n previousLabel,\n labelId\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const nextProps = {\n isDisabled: isNextDisabled,\n isHidden: isNextHidden,\n goTo: onGoToNext,\n label: nextLabel\n };\n const previousProps = {\n isDisabled: isPreviousDisabled,\n isHidden: isPreviousHidden,\n goTo: onGoToPrevious,\n label: previousLabel\n };\n const PreviousIconButton = slots?.previousIconButton ?? PickersArrowSwitcherButton;\n const previousIconButtonProps = useSlotProps({\n elementType: PreviousIconButton,\n externalSlotProps: slotProps?.previousIconButton,\n additionalProps: {\n size: 'medium',\n title: previousProps.label,\n 'aria-label': previousProps.label,\n disabled: previousProps.isDisabled,\n edge: 'end',\n onClick: previousProps.goTo\n },\n ownerState: _extends({}, ownerState, {\n hidden: previousProps.isHidden\n }),\n className: clsx(classes.button, classes.previousIconButton)\n });\n const NextIconButton = slots?.nextIconButton ?? PickersArrowSwitcherButton;\n const nextIconButtonProps = useSlotProps({\n elementType: NextIconButton,\n externalSlotProps: slotProps?.nextIconButton,\n additionalProps: {\n size: 'medium',\n title: nextProps.label,\n 'aria-label': nextProps.label,\n disabled: nextProps.isDisabled,\n edge: 'start',\n onClick: nextProps.goTo\n },\n ownerState: _extends({}, ownerState, {\n hidden: nextProps.isHidden\n }),\n className: clsx(classes.button, classes.nextIconButton)\n });\n const LeftArrowIcon = slots?.leftArrowIcon ?? ArrowLeftIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps = useSlotProps({\n elementType: LeftArrowIcon,\n externalSlotProps: slotProps?.leftArrowIcon,\n additionalProps: {\n fontSize: 'inherit'\n },\n ownerState,\n className: classes.leftArrowIcon\n }),\n leftArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const RightArrowIcon = slots?.rightArrowIcon ?? ArrowRightIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps2 = useSlotProps({\n elementType: RightArrowIcon,\n externalSlotProps: slotProps?.rightArrowIcon,\n additionalProps: {\n fontSize: 'inherit'\n },\n ownerState,\n className: classes.rightArrowIcon\n }),\n rightArrowIconProps = _objectWithoutPropertiesLoose(_useSlotProps2, _excluded3);\n return /*#__PURE__*/_jsxs(PickersArrowSwitcherRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(PreviousIconButton, _extends({}, previousIconButtonProps, {\n children: isRtl ? /*#__PURE__*/_jsx(RightArrowIcon, _extends({}, rightArrowIconProps)) : /*#__PURE__*/_jsx(LeftArrowIcon, _extends({}, leftArrowIconProps))\n })), children ? /*#__PURE__*/_jsx(Typography, {\n variant: \"subtitle1\",\n component: \"span\",\n id: labelId,\n children: children\n }) : /*#__PURE__*/_jsx(PickersArrowSwitcherSpacer, {\n className: classes.spacer,\n ownerState: ownerState\n }), /*#__PURE__*/_jsx(NextIconButton, _extends({}, nextIconButtonProps, {\n children: isRtl ? /*#__PURE__*/_jsx(LeftArrowIcon, _extends({}, leftArrowIconProps)) : /*#__PURE__*/_jsx(RightArrowIcon, _extends({}, rightArrowIconProps))\n }))]\n }));\n});","export const areViewsEqual = (views, expectedViews) => {\n if (views.length !== expectedViews.length) {\n return false;\n }\n return expectedViews.every(expectedView => views.includes(expectedView));\n};\nexport const applyDefaultViewProps = ({\n openTo,\n defaultOpenTo,\n views,\n defaultViews\n}) => {\n const viewsWithDefault = views ?? defaultViews;\n let openToWithDefault;\n if (openTo != null) {\n openToWithDefault = openTo;\n } else if (viewsWithDefault.includes(defaultOpenTo)) {\n openToWithDefault = defaultOpenTo;\n } else if (viewsWithDefault.length > 0) {\n openToWithDefault = viewsWithDefault[0];\n } else {\n throw new Error('MUI X: The `views` prop must contain at least one view.');\n }\n return {\n views: viewsWithDefault,\n openTo: openToWithDefault\n };\n};","import { areViewsEqual } from \"./views.js\";\nconst timeViews = ['hours', 'minutes', 'seconds'];\nexport const isTimeView = view => timeViews.includes(view);\nexport const isInternalTimeView = view => timeViews.includes(view) || view === 'meridiem';\nexport const getMeridiem = (date, utils) => {\n if (!date) {\n return null;\n }\n return utils.getHours(date) >= 12 ? 'pm' : 'am';\n};\nexport const convertValueToMeridiem = (value, meridiem, ampm) => {\n if (ampm) {\n const currentMeridiem = value >= 12 ? 'pm' : 'am';\n if (currentMeridiem !== meridiem) {\n return meridiem === 'am' ? value - 12 : value + 12;\n }\n }\n return value;\n};\nexport const convertToMeridiem = (time, meridiem, ampm, utils) => {\n const newHoursAmount = convertValueToMeridiem(utils.getHours(time), meridiem, ampm);\n return utils.setHours(time, newHoursAmount);\n};\nexport const getSecondsInDay = (date, utils) => {\n return utils.getHours(date) * 3600 + utils.getMinutes(date) * 60 + utils.getSeconds(date);\n};\nexport const createIsAfterIgnoreDatePart = (disableIgnoringDatePartForTimeValidation, utils) => (dateLeft, dateRight) => {\n if (disableIgnoringDatePartForTimeValidation) {\n return utils.isAfter(dateLeft, dateRight);\n }\n return getSecondsInDay(dateLeft, utils) > getSecondsInDay(dateRight, utils);\n};\nexport const resolveTimeFormat = (utils, {\n format,\n views,\n ampm\n}) => {\n if (format != null) {\n return format;\n }\n const formats = utils.formats;\n if (areViewsEqual(views, ['hours'])) {\n return ampm ? `${formats.hours12h} ${formats.meridiem}` : formats.hours24h;\n }\n if (areViewsEqual(views, ['minutes'])) {\n return formats.minutes;\n }\n if (areViewsEqual(views, ['seconds'])) {\n return formats.seconds;\n }\n if (areViewsEqual(views, ['minutes', 'seconds'])) {\n return `${formats.minutes}:${formats.seconds}`;\n }\n if (areViewsEqual(views, ['hours', 'minutes', 'seconds'])) {\n return ampm ? `${formats.hours12h}:${formats.minutes}:${formats.seconds} ${formats.meridiem}` : `${formats.hours24h}:${formats.minutes}:${formats.seconds}`;\n }\n return ampm ? `${formats.hours12h}:${formats.minutes} ${formats.meridiem}` : `${formats.hours24h}:${formats.minutes}`;\n};","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { unstable_useControlled as useControlled } from '@mui/utils';\nlet warnedOnceNotValidView = false;\nexport function useViews({\n onChange,\n onViewChange,\n openTo,\n view: inView,\n views,\n autoFocus,\n focusedView: inFocusedView,\n onFocusedViewChange\n}) {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnceNotValidView) {\n if (inView != null && !views.includes(inView)) {\n console.warn(`MUI X: \\`view=\"${inView}\"\\` is not a valid prop.`, `It must be an element of \\`views=[\"${views.join('\", \"')}\"]\\`.`);\n warnedOnceNotValidView = true;\n }\n if (inView == null && openTo != null && !views.includes(openTo)) {\n console.warn(`MUI X: \\`openTo=\"${openTo}\"\\` is not a valid prop.`, `It must be an element of \\`views=[\"${views.join('\", \"')}\"]\\`.`);\n warnedOnceNotValidView = true;\n }\n }\n }\n const previousOpenTo = React.useRef(openTo);\n const previousViews = React.useRef(views);\n const defaultView = React.useRef(views.includes(openTo) ? openTo : views[0]);\n const [view, setView] = useControlled({\n name: 'useViews',\n state: 'view',\n controlled: inView,\n default: defaultView.current\n });\n const defaultFocusedView = React.useRef(autoFocus ? view : null);\n const [focusedView, setFocusedView] = useControlled({\n name: 'useViews',\n state: 'focusedView',\n controlled: inFocusedView,\n default: defaultFocusedView.current\n });\n React.useEffect(() => {\n // Update the current view when `openTo` or `views` props change\n if (previousOpenTo.current && previousOpenTo.current !== openTo || previousViews.current && previousViews.current.some(previousView => !views.includes(previousView))) {\n setView(views.includes(openTo) ? openTo : views[0]);\n previousViews.current = views;\n previousOpenTo.current = openTo;\n }\n }, [openTo, setView, view, views]);\n const viewIndex = views.indexOf(view);\n const previousView = views[viewIndex - 1] ?? null;\n const nextView = views[viewIndex + 1] ?? null;\n const handleFocusedViewChange = useEventCallback((viewToFocus, hasFocus) => {\n if (hasFocus) {\n // Focus event\n setFocusedView(viewToFocus);\n } else {\n // Blur event\n setFocusedView(prevFocusedView => viewToFocus === prevFocusedView ? null : prevFocusedView // If false the blur is due to view switching\n );\n }\n onFocusedViewChange?.(viewToFocus, hasFocus);\n });\n const handleChangeView = useEventCallback(newView => {\n // always keep the focused view in sync\n handleFocusedViewChange(newView, true);\n if (newView === view) {\n return;\n }\n setView(newView);\n if (onViewChange) {\n onViewChange(newView);\n }\n });\n const goToNextView = useEventCallback(() => {\n if (nextView) {\n handleChangeView(nextView);\n }\n });\n const setValueAndGoToNextView = useEventCallback((value, currentViewSelectionState, selectedView) => {\n const isSelectionFinishedOnCurrentView = currentViewSelectionState === 'finish';\n const hasMoreViews = selectedView ?\n // handles case like `DateTimePicker`, where a view might return a `finish` selection state\n // but when it's not the final view given all `views` -> overall selection state should be `partial`.\n views.indexOf(selectedView) < views.length - 1 : Boolean(nextView);\n const globalSelectionState = isSelectionFinishedOnCurrentView && hasMoreViews ? 'partial' : currentViewSelectionState;\n onChange(value, globalSelectionState, selectedView);\n // Detects if the selected view is not the active one.\n // Can happen if multiple views are displayed, like in `DesktopDateTimePicker` or `MultiSectionDigitalClock`.\n if (selectedView && selectedView !== view) {\n const nextViewAfterSelected = views[views.indexOf(selectedView) + 1];\n if (nextViewAfterSelected) {\n // move to next view after the selected one\n handleChangeView(nextViewAfterSelected);\n }\n } else if (isSelectionFinishedOnCurrentView) {\n goToNextView();\n }\n });\n return {\n view,\n setView: handleChangeView,\n focusedView,\n setFocusedView: handleFocusedViewChange,\n nextView,\n previousView,\n // Always return up-to-date default view instead of the initial one (i.e. defaultView.current)\n defaultView: views.includes(openTo) ? openTo : views[0],\n goToNextView,\n setValueAndGoToNextView\n };\n}","import * as React from 'react';\nimport { useUtils } from \"./useUtils.js\";\nimport { getMeridiem, convertToMeridiem } from \"../utils/time-utils.js\";\nexport function useNextMonthDisabled(month, {\n disableFuture,\n maxDate,\n timezone\n}) {\n const utils = useUtils();\n return React.useMemo(() => {\n const now = utils.date(undefined, timezone);\n const lastEnabledMonth = utils.startOfMonth(disableFuture && utils.isBefore(now, maxDate) ? now : maxDate);\n return !utils.isAfter(lastEnabledMonth, month);\n }, [disableFuture, maxDate, month, utils, timezone]);\n}\nexport function usePreviousMonthDisabled(month, {\n disablePast,\n minDate,\n timezone\n}) {\n const utils = useUtils();\n return React.useMemo(() => {\n const now = utils.date(undefined, timezone);\n const firstEnabledMonth = utils.startOfMonth(disablePast && utils.isAfter(now, minDate) ? now : minDate);\n return !utils.isBefore(firstEnabledMonth, month);\n }, [disablePast, minDate, month, utils, timezone]);\n}\nexport function useMeridiemMode(date, ampm, onChange, selectionState) {\n const utils = useUtils();\n const meridiemMode = getMeridiem(date, utils);\n const handleMeridiemChange = React.useCallback(mode => {\n const timeWithMeridiem = date == null ? null : convertToMeridiem(date, mode, Boolean(ampm), utils);\n onChange(timeWithMeridiem, selectionState ?? 'partial');\n }, [ampm, date, onChange, selectionState, utils]);\n return {\n meridiemMode,\n handleMeridiemChange\n };\n}","export const DAY_SIZE = 36;\nexport const DAY_MARGIN = 2;\nexport const DIALOG_WIDTH = 320;\nexport const MAX_CALENDAR_HEIGHT = 280;\nexport const VIEW_HEIGHT = 336;\nexport const DIGITAL_CLOCK_VIEW_HEIGHT = 232;\nexport const MULTI_SECTION_CLOCK_SECTION_WIDTH = 48;","import { styled } from '@mui/material/styles';\nimport { DIALOG_WIDTH, VIEW_HEIGHT } from \"../../constants/dimensions.js\";\nexport const PickerViewRoot = styled('div')({\n overflow: 'hidden',\n width: DIALOG_WIDTH,\n maxHeight: VIEW_HEIGHT,\n display: 'flex',\n flexDirection: 'column',\n margin: '0 auto'\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getTimeClockUtilityClass(slot) {\n return generateUtilityClass('MuiTimeClock', slot);\n}\nexport const timeClockClasses = generateUtilityClasses('MuiTimeClock', ['root', 'arrowSwitcher']);","export const CLOCK_WIDTH = 220;\nexport const CLOCK_HOUR_WIDTH = 36;\nconst clockCenter = {\n x: CLOCK_WIDTH / 2,\n y: CLOCK_WIDTH / 2\n};\nconst baseClockPoint = {\n x: clockCenter.x,\n y: 0\n};\nconst cx = baseClockPoint.x - clockCenter.x;\nconst cy = baseClockPoint.y - clockCenter.y;\nconst rad2deg = rad => rad * (180 / Math.PI);\nconst getAngleValue = (step, offsetX, offsetY) => {\n const x = offsetX - clockCenter.x;\n const y = offsetY - clockCenter.y;\n const atan = Math.atan2(cx, cy) - Math.atan2(x, y);\n let deg = rad2deg(atan);\n deg = Math.round(deg / step) * step;\n deg %= 360;\n const value = Math.floor(deg / step) || 0;\n const delta = x ** 2 + y ** 2;\n const distance = Math.sqrt(delta);\n return {\n value,\n distance\n };\n};\nexport const getMinutes = (offsetX, offsetY, step = 1) => {\n const angleStep = step * 6;\n let {\n value\n } = getAngleValue(angleStep, offsetX, offsetY);\n value = value * step % 60;\n return value;\n};\nexport const getHours = (offsetX, offsetY, ampm) => {\n const {\n value,\n distance\n } = getAngleValue(30, offsetX, offsetY);\n let hour = value || 12;\n if (!ampm) {\n if (distance < CLOCK_WIDTH / 2 - CLOCK_HOUR_WIDTH) {\n hour += 12;\n hour %= 24;\n }\n } else {\n hour %= 12;\n }\n return hour;\n};","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockPointerUtilityClass(slot) {\n return generateUtilityClass('MuiClockPointer', slot);\n}\nexport const clockPointerClasses = generateUtilityClasses('MuiClockPointer', ['root', 'thumb']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"hasSelected\", \"isInner\", \"type\", \"viewValue\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from \"./shared.js\";\nimport { getClockPointerUtilityClass } from \"./clockPointerClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n thumb: ['thumb']\n };\n return composeClasses(slots, getClockPointerUtilityClass, classes);\n};\nconst ClockPointerRoot = styled('div', {\n name: 'MuiClockPointer',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})(({\n theme\n}) => ({\n width: 2,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n position: 'absolute',\n left: 'calc(50% - 1px)',\n bottom: '50%',\n transformOrigin: 'center bottom 0px',\n variants: [{\n props: {\n shouldAnimate: true\n },\n style: {\n transition: theme.transitions.create(['transform', 'height'])\n }\n }]\n}));\nconst ClockPointerThumb = styled('div', {\n name: 'MuiClockPointer',\n slot: 'Thumb',\n overridesResolver: (_, styles) => styles.thumb\n})(({\n theme\n}) => ({\n width: 4,\n height: 4,\n backgroundColor: (theme.vars || theme).palette.primary.contrastText,\n borderRadius: '50%',\n position: 'absolute',\n top: -21,\n left: `calc(50% - ${CLOCK_HOUR_WIDTH / 2}px)`,\n border: `${(CLOCK_HOUR_WIDTH - 4) / 2}px solid ${(theme.vars || theme).palette.primary.main}`,\n boxSizing: 'content-box',\n variants: [{\n props: {\n hasSelected: true\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.primary.main\n }\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport function ClockPointer(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClockPointer'\n });\n const {\n className,\n isInner,\n type,\n viewValue\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const previousType = React.useRef(type);\n React.useEffect(() => {\n previousType.current = type;\n }, [type]);\n const ownerState = _extends({}, props, {\n shouldAnimate: previousType.current !== type\n });\n const classes = useUtilityClasses(ownerState);\n const getAngleStyle = () => {\n const max = type === 'hours' ? 12 : 60;\n let angle = 360 / max * viewValue;\n if (type === 'hours' && viewValue > 12) {\n angle -= 360; // round up angle to max 360 degrees\n }\n return {\n height: Math.round((isInner ? 0.26 : 0.4) * CLOCK_WIDTH),\n transform: `rotateZ(${angle}deg)`\n };\n };\n return /*#__PURE__*/_jsx(ClockPointerRoot, _extends({\n style: getAngleStyle(),\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(ClockPointerThumb, {\n ownerState: ownerState,\n className: classes.thumb\n })\n }));\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockUtilityClass(slot) {\n return generateUtilityClass('MuiClock', slot);\n}\nexport const clockClasses = generateUtilityClasses('MuiClock', ['root', 'clock', 'wrapper', 'squareMask', 'pin', 'amButton', 'pmButton', 'meridiemText', 'selected']);","import { areViewsEqual } from \"./views.js\";\nexport const mergeDateAndTime = (utils, dateParam, timeParam) => {\n let mergedDate = dateParam;\n mergedDate = utils.setHours(mergedDate, utils.getHours(timeParam));\n mergedDate = utils.setMinutes(mergedDate, utils.getMinutes(timeParam));\n mergedDate = utils.setSeconds(mergedDate, utils.getSeconds(timeParam));\n mergedDate = utils.setMilliseconds(mergedDate, utils.getMilliseconds(timeParam));\n return mergedDate;\n};\nexport const findClosestEnabledDate = ({\n date,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n isDateDisabled,\n utils,\n timezone\n}) => {\n const today = mergeDateAndTime(utils, utils.date(undefined, timezone), date);\n if (disablePast && utils.isBefore(minDate, today)) {\n minDate = today;\n }\n if (disableFuture && utils.isAfter(maxDate, today)) {\n maxDate = today;\n }\n let forward = date;\n let backward = date;\n if (utils.isBefore(date, minDate)) {\n forward = minDate;\n backward = null;\n }\n if (utils.isAfter(date, maxDate)) {\n if (backward) {\n backward = maxDate;\n }\n forward = null;\n }\n while (forward || backward) {\n if (forward && utils.isAfter(forward, maxDate)) {\n forward = null;\n }\n if (backward && utils.isBefore(backward, minDate)) {\n backward = null;\n }\n if (forward) {\n if (!isDateDisabled(forward)) {\n return forward;\n }\n forward = utils.addDays(forward, 1);\n }\n if (backward) {\n if (!isDateDisabled(backward)) {\n return backward;\n }\n backward = utils.addDays(backward, -1);\n }\n }\n return null;\n};\nexport const replaceInvalidDateByNull = (utils, value) => value == null || !utils.isValid(value) ? null : value;\nexport const applyDefaultDate = (utils, value, defaultValue) => {\n if (value == null || !utils.isValid(value)) {\n return defaultValue;\n }\n return value;\n};\nexport const areDatesEqual = (utils, a, b) => {\n if (!utils.isValid(a) && a != null && !utils.isValid(b) && b != null) {\n return true;\n }\n return utils.isEqual(a, b);\n};\nexport const getMonthsInYear = (utils, year) => {\n const firstMonth = utils.startOfYear(year);\n const months = [firstMonth];\n while (months.length < 12) {\n const prevMonth = months[months.length - 1];\n months.push(utils.addMonths(prevMonth, 1));\n }\n return months;\n};\nexport const getTodayDate = (utils, timezone, valueType) => valueType === 'date' ? utils.startOfDay(utils.date(undefined, timezone)) : utils.date(undefined, timezone);\nexport const formatMeridiem = (utils, meridiem) => {\n const date = utils.setHours(utils.date(), meridiem === 'am' ? 2 : 14);\n return utils.format(date, 'meridiem');\n};\nconst dateViews = ['year', 'month', 'day'];\nexport const isDatePickerView = view => dateViews.includes(view);\nexport const resolveDateFormat = (utils, {\n format,\n views\n}, isInToolbar) => {\n if (format != null) {\n return format;\n }\n const formats = utils.formats;\n if (areViewsEqual(views, ['year'])) {\n return formats.year;\n }\n if (areViewsEqual(views, ['month'])) {\n return formats.month;\n }\n if (areViewsEqual(views, ['day'])) {\n return formats.dayOfMonth;\n }\n if (areViewsEqual(views, ['month', 'year'])) {\n return `${formats.month} ${formats.year}`;\n }\n if (areViewsEqual(views, ['day', 'month'])) {\n return `${formats.month} ${formats.dayOfMonth}`;\n }\n if (isInToolbar) {\n // Little localization hack (Google is doing the same for android native pickers):\n // For english localization it is convenient to include weekday into the date \"Mon, Jun 1\".\n // For other locales using strings like \"June 1\", without weekday.\n return /en/.test(utils.getCurrentLocaleCode()) ? formats.normalDateWithWeekday : formats.normalDate;\n }\n return formats.keyboardDate;\n};\nexport const getWeekdays = (utils, date) => {\n const start = utils.startOfWeek(date);\n return [0, 1, 2, 3, 4, 5, 6].map(diff => utils.addDays(start, diff));\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport IconButton from '@mui/material/IconButton';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useEnhancedEffect as useEnhancedEffect, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { ClockPointer } from \"./ClockPointer.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { CLOCK_HOUR_WIDTH, getHours, getMinutes } from \"./shared.js\";\nimport { getClockUtilityClass } from \"./clockClasses.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n meridiemMode\n } = ownerState;\n const slots = {\n root: ['root'],\n clock: ['clock'],\n wrapper: ['wrapper'],\n squareMask: ['squareMask'],\n pin: ['pin'],\n amButton: ['amButton', meridiemMode === 'am' && 'selected'],\n pmButton: ['pmButton', meridiemMode === 'pm' && 'selected'],\n meridiemText: ['meridiemText']\n };\n return composeClasses(slots, getClockUtilityClass, classes);\n};\nconst ClockRoot = styled('div', {\n name: 'MuiClock',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})(({\n theme\n}) => ({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n margin: theme.spacing(2)\n}));\nconst ClockClock = styled('div', {\n name: 'MuiClock',\n slot: 'Clock',\n overridesResolver: (_, styles) => styles.clock\n})({\n backgroundColor: 'rgba(0,0,0,.07)',\n borderRadius: '50%',\n height: 220,\n width: 220,\n flexShrink: 0,\n position: 'relative',\n pointerEvents: 'none'\n});\nconst ClockWrapper = styled('div', {\n name: 'MuiClock',\n slot: 'Wrapper',\n overridesResolver: (_, styles) => styles.wrapper\n})({\n '&:focus': {\n outline: 'none'\n }\n});\nconst ClockSquareMask = styled('div', {\n name: 'MuiClock',\n slot: 'SquareMask',\n overridesResolver: (_, styles) => styles.squareMask\n})({\n width: '100%',\n height: '100%',\n position: 'absolute',\n pointerEvents: 'auto',\n outline: 0,\n // Disable scroll capabilities.\n touchAction: 'none',\n userSelect: 'none',\n variants: [{\n props: {\n disabled: false\n },\n style: {\n '@media (pointer: fine)': {\n cursor: 'pointer',\n borderRadius: '50%'\n },\n '&:active': {\n cursor: 'move'\n }\n }\n }]\n});\nconst ClockPin = styled('div', {\n name: 'MuiClock',\n slot: 'Pin',\n overridesResolver: (_, styles) => styles.pin\n})(({\n theme\n}) => ({\n width: 6,\n height: 6,\n borderRadius: '50%',\n backgroundColor: (theme.vars || theme).palette.primary.main,\n position: 'absolute',\n top: '50%',\n left: '50%',\n transform: 'translate(-50%, -50%)'\n}));\nconst meridiemButtonCommonStyles = (theme, meridiemMode) => ({\n zIndex: 1,\n bottom: 8,\n paddingLeft: 4,\n paddingRight: 4,\n width: CLOCK_HOUR_WIDTH,\n variants: [{\n props: {\n meridiemMode\n },\n style: {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.light\n }\n }\n }]\n});\nconst ClockAmButton = styled(IconButton, {\n name: 'MuiClock',\n slot: 'AmButton',\n overridesResolver: (_, styles) => styles.amButton\n})(({\n theme\n}) => _extends({}, meridiemButtonCommonStyles(theme, 'am'), {\n // keeping it here to make TS happy\n position: 'absolute',\n left: 8\n}));\nconst ClockPmButton = styled(IconButton, {\n name: 'MuiClock',\n slot: 'PmButton',\n overridesResolver: (_, styles) => styles.pmButton\n})(({\n theme\n}) => _extends({}, meridiemButtonCommonStyles(theme, 'pm'), {\n // keeping it here to make TS happy\n position: 'absolute',\n right: 8\n}));\nconst ClockMeridiemText = styled(Typography, {\n name: 'MuiClock',\n slot: 'meridiemText',\n overridesResolver: (_, styles) => styles.meridiemText\n})({\n overflow: 'hidden',\n whiteSpace: 'nowrap',\n textOverflow: 'ellipsis'\n});\n\n/**\n * @ignore - internal component.\n */\nexport function Clock(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClock'\n });\n const {\n ampm,\n ampmInClock,\n autoFocus,\n children,\n value,\n handleMeridiemChange,\n isTimeDisabled,\n meridiemMode,\n minutesStep = 1,\n onChange,\n selectedId,\n type,\n viewValue,\n disabled = false,\n readOnly,\n className\n } = props;\n const ownerState = props;\n const utils = useUtils();\n const translations = usePickersTranslations();\n const isMoving = React.useRef(false);\n const classes = useUtilityClasses(ownerState);\n const isSelectedTimeDisabled = isTimeDisabled(viewValue, type);\n const isPointerInner = !ampm && type === 'hours' && (viewValue < 1 || viewValue > 12);\n const handleValueChange = (newValue, isFinish) => {\n if (disabled || readOnly) {\n return;\n }\n if (isTimeDisabled(newValue, type)) {\n return;\n }\n onChange(newValue, isFinish);\n };\n const setTime = (event, isFinish) => {\n let {\n offsetX,\n offsetY\n } = event;\n if (offsetX === undefined) {\n const rect = event.target.getBoundingClientRect();\n offsetX = event.changedTouches[0].clientX - rect.left;\n offsetY = event.changedTouches[0].clientY - rect.top;\n }\n const newSelectedValue = type === 'seconds' || type === 'minutes' ? getMinutes(offsetX, offsetY, minutesStep) : getHours(offsetX, offsetY, Boolean(ampm));\n handleValueChange(newSelectedValue, isFinish);\n };\n const handleTouchSelection = event => {\n isMoving.current = true;\n setTime(event, 'shallow');\n };\n const handleTouchEnd = event => {\n if (isMoving.current) {\n setTime(event, 'finish');\n isMoving.current = false;\n }\n };\n const handleMouseMove = event => {\n // event.buttons & PRIMARY_MOUSE_BUTTON\n if (event.buttons > 0) {\n setTime(event.nativeEvent, 'shallow');\n }\n };\n const handleMouseUp = event => {\n if (isMoving.current) {\n isMoving.current = false;\n }\n setTime(event.nativeEvent, 'finish');\n };\n const hasSelected = React.useMemo(() => {\n if (type === 'hours') {\n return true;\n }\n return viewValue % 5 === 0;\n }, [type, viewValue]);\n const keyboardControlStep = type === 'minutes' ? minutesStep : 1;\n const listboxRef = React.useRef(null);\n // Since this is rendered when a Popper is opened we can't use passive effects.\n // Focusing in passive effects in Popper causes scroll jump.\n useEnhancedEffect(() => {\n if (autoFocus) {\n // The ref not being resolved would be a bug in MUI.\n listboxRef.current.focus();\n }\n }, [autoFocus]);\n const handleKeyDown = event => {\n // TODO: Why this early exit?\n if (isMoving.current) {\n return;\n }\n switch (event.key) {\n case 'Home':\n // reset both hours and minutes\n handleValueChange(0, 'partial');\n event.preventDefault();\n break;\n case 'End':\n handleValueChange(type === 'minutes' ? 59 : 23, 'partial');\n event.preventDefault();\n break;\n case 'ArrowUp':\n handleValueChange(viewValue + keyboardControlStep, 'partial');\n event.preventDefault();\n break;\n case 'ArrowDown':\n handleValueChange(viewValue - keyboardControlStep, 'partial');\n event.preventDefault();\n break;\n case 'PageUp':\n handleValueChange(viewValue + 5, 'partial');\n event.preventDefault();\n break;\n case 'PageDown':\n handleValueChange(viewValue - 5, 'partial');\n event.preventDefault();\n break;\n case 'Enter':\n case ' ':\n handleValueChange(viewValue, 'finish');\n event.preventDefault();\n break;\n default:\n // do nothing\n }\n };\n return /*#__PURE__*/_jsxs(ClockRoot, {\n className: clsx(classes.root, className),\n children: [/*#__PURE__*/_jsxs(ClockClock, {\n className: classes.clock,\n children: [/*#__PURE__*/_jsx(ClockSquareMask, {\n onTouchMove: handleTouchSelection,\n onTouchStart: handleTouchSelection,\n onTouchEnd: handleTouchEnd,\n onMouseUp: handleMouseUp,\n onMouseMove: handleMouseMove,\n ownerState: {\n disabled\n },\n className: classes.squareMask\n }), !isSelectedTimeDisabled && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ClockPin, {\n className: classes.pin\n }), value != null && /*#__PURE__*/_jsx(ClockPointer, {\n type: type,\n viewValue: viewValue,\n isInner: isPointerInner,\n hasSelected: hasSelected\n })]\n }), /*#__PURE__*/_jsx(ClockWrapper, {\n \"aria-activedescendant\": selectedId,\n \"aria-label\": translations.clockLabelText(type, value, utils, value == null ? null : utils.format(value, 'fullTime')),\n ref: listboxRef,\n role: \"listbox\",\n onKeyDown: handleKeyDown,\n tabIndex: 0,\n className: classes.wrapper,\n children: children\n })]\n }), ampm && ampmInClock && /*#__PURE__*/_jsxs(React.Fragment, {\n children: [/*#__PURE__*/_jsx(ClockAmButton, {\n onClick: readOnly ? undefined : () => handleMeridiemChange('am'),\n disabled: disabled || meridiemMode === null,\n ownerState: ownerState,\n className: classes.amButton,\n title: formatMeridiem(utils, 'am'),\n children: /*#__PURE__*/_jsx(ClockMeridiemText, {\n variant: \"caption\",\n className: classes.meridiemText,\n children: formatMeridiem(utils, 'am')\n })\n }), /*#__PURE__*/_jsx(ClockPmButton, {\n disabled: disabled || meridiemMode === null,\n onClick: readOnly ? undefined : () => handleMeridiemChange('pm'),\n ownerState: ownerState,\n className: classes.pmButton,\n title: formatMeridiem(utils, 'pm'),\n children: /*#__PURE__*/_jsx(ClockMeridiemText, {\n variant: \"caption\",\n className: classes.meridiemText,\n children: formatMeridiem(utils, 'pm')\n })\n })]\n })]\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getClockNumberUtilityClass(slot) {\n return generateUtilityClass('MuiClockNumber', slot);\n}\nexport const clockNumberClasses = generateUtilityClasses('MuiClockNumber', ['root', 'selected', 'disabled']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"disabled\", \"index\", \"inner\", \"label\", \"selected\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CLOCK_WIDTH, CLOCK_HOUR_WIDTH } from \"./shared.js\";\nimport { getClockNumberUtilityClass, clockNumberClasses } from \"./clockNumberClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n selected,\n disabled\n } = ownerState;\n const slots = {\n root: ['root', selected && 'selected', disabled && 'disabled']\n };\n return composeClasses(slots, getClockNumberUtilityClass, classes);\n};\nconst ClockNumberRoot = styled('span', {\n name: 'MuiClockNumber',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root, {\n [`&.${clockNumberClasses.disabled}`]: styles.disabled\n }, {\n [`&.${clockNumberClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => ({\n height: CLOCK_HOUR_WIDTH,\n width: CLOCK_HOUR_WIDTH,\n position: 'absolute',\n left: `calc((100% - ${CLOCK_HOUR_WIDTH}px) / 2)`,\n display: 'inline-flex',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: '50%',\n color: (theme.vars || theme).palette.text.primary,\n fontFamily: theme.typography.fontFamily,\n '&:focused': {\n backgroundColor: (theme.vars || theme).palette.background.paper\n },\n [`&.${clockNumberClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText\n },\n [`&.${clockNumberClasses.disabled}`]: {\n pointerEvents: 'none',\n color: (theme.vars || theme).palette.text.disabled\n },\n variants: [{\n props: {\n inner: true\n },\n style: _extends({}, theme.typography.body2, {\n color: (theme.vars || theme).palette.text.secondary\n })\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport function ClockNumber(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiClockNumber'\n });\n const {\n className,\n disabled,\n index,\n inner,\n label,\n selected\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const angle = index % 12 / 12 * Math.PI * 2 - Math.PI / 2;\n const length = (CLOCK_WIDTH - CLOCK_HOUR_WIDTH - 2) / 2 * (inner ? 0.65 : 1);\n const x = Math.round(Math.cos(angle) * length);\n const y = Math.round(Math.sin(angle) * length);\n return /*#__PURE__*/_jsx(ClockNumberRoot, _extends({\n className: clsx(classes.root, className),\n \"aria-disabled\": disabled ? true : undefined,\n \"aria-selected\": selected ? true : undefined,\n role: \"option\",\n style: {\n transform: `translate(${x}px, ${y + (CLOCK_WIDTH - CLOCK_HOUR_WIDTH) / 2}px`\n },\n ownerState: ownerState\n }, other, {\n children: label\n }));\n}","import * as React from 'react';\nimport { ClockNumber } from \"./ClockNumber.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * @ignore - internal component.\n */\nexport const getHourNumbers = ({\n ampm,\n value,\n getClockNumberText,\n isDisabled,\n selectedId,\n utils\n}) => {\n const currentHours = value ? utils.getHours(value) : null;\n const hourNumbers = [];\n const startHour = ampm ? 1 : 0;\n const endHour = ampm ? 12 : 23;\n const isSelected = hour => {\n if (currentHours === null) {\n return false;\n }\n if (ampm) {\n if (hour === 12) {\n return currentHours === 12 || currentHours === 0;\n }\n return currentHours === hour || currentHours - 12 === hour;\n }\n return currentHours === hour;\n };\n for (let hour = startHour; hour <= endHour; hour += 1) {\n let label = hour.toString();\n if (hour === 0) {\n label = '00';\n }\n const inner = !ampm && (hour === 0 || hour > 12);\n label = utils.formatNumber(label);\n const selected = isSelected(hour);\n hourNumbers.push(/*#__PURE__*/_jsx(ClockNumber, {\n id: selected ? selectedId : undefined,\n index: hour,\n inner: inner,\n selected: selected,\n disabled: isDisabled(hour),\n label: label,\n \"aria-label\": getClockNumberText(label)\n }, hour));\n }\n return hourNumbers;\n};\nexport const getMinutesNumbers = ({\n utils,\n value,\n isDisabled,\n getClockNumberText,\n selectedId\n}) => {\n const f = utils.formatNumber;\n return [[5, f('05')], [10, f('10')], [15, f('15')], [20, f('20')], [25, f('25')], [30, f('30')], [35, f('35')], [40, f('40')], [45, f('45')], [50, f('50')], [55, f('55')], [0, f('00')]].map(([numberValue, label], index) => {\n const selected = numberValue === value;\n return /*#__PURE__*/_jsx(ClockNumber, {\n label: label,\n id: selected ? selectedId : undefined,\n index: index + 1,\n inner: false,\n disabled: isDisabled(numberValue),\n selected: selected,\n \"aria-label\": getClockNumberText(label)\n }, numberValue);\n });\n};","import * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useControlled from '@mui/utils/useControlled';\nimport { useUtils } from \"./useUtils.js\";\n/**\n * Hooks making sure that:\n * - The value returned by `onChange` always have the timezone of `props.value` or `props.defaultValue` if defined\n * - The value rendered is always the one from `props.timezone` if defined\n */\nexport const useValueWithTimezone = ({\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager\n}) => {\n const utils = useUtils();\n const firstDefaultValue = React.useRef(defaultValue);\n const inputValue = valueProp ?? firstDefaultValue.current ?? valueManager.emptyValue;\n const inputTimezone = React.useMemo(() => valueManager.getTimezone(utils, inputValue), [utils, valueManager, inputValue]);\n const setInputTimezone = useEventCallback(newValue => {\n if (inputTimezone == null) {\n return newValue;\n }\n return valueManager.setTimezone(utils, inputTimezone, newValue);\n });\n const timezoneToRender = timezoneProp ?? inputTimezone ?? 'default';\n const valueWithTimezoneToRender = React.useMemo(() => valueManager.setTimezone(utils, timezoneToRender, inputValue), [valueManager, utils, timezoneToRender, inputValue]);\n const handleValueChange = useEventCallback((newValue, ...otherParams) => {\n const newValueWithInputTimezone = setInputTimezone(newValue);\n onChange?.(newValueWithInputTimezone, ...otherParams);\n });\n return {\n value: valueWithTimezoneToRender,\n handleValueChange,\n timezone: timezoneToRender\n };\n};\n\n/**\n * Wrapper around `useControlled` and `useValueWithTimezone`\n */\nexport const useControlledValueWithTimezone = ({\n name,\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange: onChangeProp,\n valueManager\n}) => {\n const [valueWithInputTimezone, setValue] = useControlled({\n name,\n state: 'value',\n controlled: valueProp,\n default: defaultValue ?? valueManager.emptyValue\n });\n const onChange = useEventCallback((newValue, ...otherParams) => {\n setValue(newValue);\n onChangeProp?.(newValue, ...otherParams);\n });\n return useValueWithTimezone({\n timezone: timezoneProp,\n value: valueWithInputTimezone,\n defaultValue: undefined,\n onChange,\n valueManager\n });\n};","import { createIsAfterIgnoreDatePart } from \"./time-utils.js\";\nimport { mergeDateAndTime, getTodayDate } from \"./date-utils.js\";\nexport const SECTION_TYPE_GRANULARITY = {\n year: 1,\n month: 2,\n day: 3,\n hours: 4,\n minutes: 5,\n seconds: 6,\n milliseconds: 7\n};\nexport const getSectionTypeGranularity = sections => Math.max(...sections.map(section => SECTION_TYPE_GRANULARITY[section.type] ?? 1));\nconst roundDate = (utils, granularity, date) => {\n if (granularity === SECTION_TYPE_GRANULARITY.year) {\n return utils.startOfYear(date);\n }\n if (granularity === SECTION_TYPE_GRANULARITY.month) {\n return utils.startOfMonth(date);\n }\n if (granularity === SECTION_TYPE_GRANULARITY.day) {\n return utils.startOfDay(date);\n }\n\n // We don't have startOfHour / startOfMinute / startOfSecond\n let roundedDate = date;\n if (granularity < SECTION_TYPE_GRANULARITY.minutes) {\n roundedDate = utils.setMinutes(roundedDate, 0);\n }\n if (granularity < SECTION_TYPE_GRANULARITY.seconds) {\n roundedDate = utils.setSeconds(roundedDate, 0);\n }\n if (granularity < SECTION_TYPE_GRANULARITY.milliseconds) {\n roundedDate = utils.setMilliseconds(roundedDate, 0);\n }\n return roundedDate;\n};\nexport const getDefaultReferenceDate = ({\n props,\n utils,\n granularity,\n timezone,\n getTodayDate: inGetTodayDate\n}) => {\n let referenceDate = inGetTodayDate ? inGetTodayDate() : roundDate(utils, granularity, getTodayDate(utils, timezone));\n if (props.minDate != null && utils.isAfterDay(props.minDate, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.minDate);\n }\n if (props.maxDate != null && utils.isBeforeDay(props.maxDate, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.maxDate);\n }\n const isAfter = createIsAfterIgnoreDatePart(props.disableIgnoringDatePartForTimeValidation ?? false, utils);\n if (props.minTime != null && isAfter(props.minTime, referenceDate)) {\n referenceDate = roundDate(utils, granularity, props.disableIgnoringDatePartForTimeValidation ? props.minTime : mergeDateAndTime(utils, referenceDate, props.minTime));\n }\n if (props.maxTime != null && isAfter(referenceDate, props.maxTime)) {\n referenceDate = roundDate(utils, granularity, props.disableIgnoringDatePartForTimeValidation ? props.maxTime : mergeDateAndTime(utils, referenceDate, props.maxTime));\n }\n return referenceDate;\n};","import { getMonthsInYear } from \"../../utils/date-utils.js\";\nexport const getDateSectionConfigFromFormatToken = (utils, formatToken) => {\n const config = utils.formatTokenMap[formatToken];\n if (config == null) {\n throw new Error([`MUI X: The token \"${formatToken}\" is not supported by the Date and Time Pickers.`, 'Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.'].join('\\n'));\n }\n if (typeof config === 'string') {\n return {\n type: config,\n contentType: config === 'meridiem' ? 'letter' : 'digit',\n maxLength: undefined\n };\n }\n return {\n type: config.sectionType,\n contentType: config.contentType,\n maxLength: config.maxLength\n };\n};\nconst getDeltaFromKeyCode = keyCode => {\n switch (keyCode) {\n case 'ArrowUp':\n return 1;\n case 'ArrowDown':\n return -1;\n case 'PageUp':\n return 5;\n case 'PageDown':\n return -5;\n default:\n return 0;\n }\n};\nexport const getDaysInWeekStr = (utils, format) => {\n const elements = [];\n const now = utils.date(undefined, 'default');\n const startDate = utils.startOfWeek(now);\n const endDate = utils.endOfWeek(now);\n let current = startDate;\n while (utils.isBefore(current, endDate)) {\n elements.push(current);\n current = utils.addDays(current, 1);\n }\n return elements.map(weekDay => utils.formatByString(weekDay, format));\n};\nexport const getLetterEditingOptions = (utils, timezone, sectionType, format) => {\n switch (sectionType) {\n case 'month':\n {\n return getMonthsInYear(utils, utils.date(undefined, timezone)).map(month => utils.formatByString(month, format));\n }\n case 'weekDay':\n {\n return getDaysInWeekStr(utils, format);\n }\n case 'meridiem':\n {\n const now = utils.date(undefined, timezone);\n return [utils.startOfDay(now), utils.endOfDay(now)].map(date => utils.formatByString(date, format));\n }\n default:\n {\n return [];\n }\n }\n};\n\n// This format should be the same on all the adapters\n// If some adapter does not respect this convention, then we will need to hardcode the format on each adapter.\nexport const FORMAT_SECONDS_NO_LEADING_ZEROS = 's';\nconst NON_LOCALIZED_DIGITS = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9'];\nexport const getLocalizedDigits = utils => {\n const today = utils.date(undefined);\n const formattedZero = utils.formatByString(utils.setSeconds(today, 0), FORMAT_SECONDS_NO_LEADING_ZEROS);\n if (formattedZero === '0') {\n return NON_LOCALIZED_DIGITS;\n }\n return Array.from({\n length: 10\n }).map((_, index) => utils.formatByString(utils.setSeconds(today, index), FORMAT_SECONDS_NO_LEADING_ZEROS));\n};\nexport const removeLocalizedDigits = (valueStr, localizedDigits) => {\n if (localizedDigits[0] === '0') {\n return valueStr;\n }\n const digits = [];\n let currentFormattedDigit = '';\n for (let i = 0; i < valueStr.length; i += 1) {\n currentFormattedDigit += valueStr[i];\n const matchingDigitIndex = localizedDigits.indexOf(currentFormattedDigit);\n if (matchingDigitIndex > -1) {\n digits.push(matchingDigitIndex.toString());\n currentFormattedDigit = '';\n }\n }\n return digits.join('');\n};\nexport const applyLocalizedDigits = (valueStr, localizedDigits) => {\n if (localizedDigits[0] === '0') {\n return valueStr;\n }\n return valueStr.split('').map(char => localizedDigits[Number(char)]).join('');\n};\nexport const isStringNumber = (valueStr, localizedDigits) => {\n const nonLocalizedValueStr = removeLocalizedDigits(valueStr, localizedDigits);\n // `Number(' ')` returns `0` even if ' ' is not a valid number.\n return nonLocalizedValueStr !== ' ' && !Number.isNaN(Number(nonLocalizedValueStr));\n};\n\n/**\n * Remove the leading zeroes to a digit section value.\n * E.g.: `03` => `3`\n * Warning: Should only be called with non-localized digits. Call `removeLocalizedDigits` with your value if needed.\n */\nexport const cleanLeadingZeros = (valueStr, size) => {\n let cleanValueStr = valueStr;\n\n // Remove the leading zeros\n cleanValueStr = Number(cleanValueStr).toString();\n\n // Add enough leading zeros to fill the section\n while (cleanValueStr.length < size) {\n cleanValueStr = `0${cleanValueStr}`;\n }\n return cleanValueStr;\n};\nexport const cleanDigitSectionValue = (utils, value, sectionBoundaries, localizedDigits, section) => {\n if (process.env.NODE_ENV !== 'production') {\n if (section.type !== 'day' && section.contentType === 'digit-with-letter') {\n throw new Error([`MUI X: The token \"${section.format}\" is a digit format with letter in it.'\n This type of format is only supported for 'day' sections`].join('\\n'));\n }\n }\n if (section.type === 'day' && section.contentType === 'digit-with-letter') {\n const date = utils.setDate(sectionBoundaries.longestMonth, value);\n return utils.formatByString(date, section.format);\n }\n\n // queryValue without leading `0` (`01` => `1`)\n let valueStr = value.toString();\n if (section.hasLeadingZerosInInput) {\n valueStr = cleanLeadingZeros(valueStr, section.maxLength);\n }\n return applyLocalizedDigits(valueStr, localizedDigits);\n};\nexport const adjustSectionValue = (utils, timezone, section, keyCode, sectionsValueBoundaries, localizedDigits, activeDate, stepsAttributes) => {\n const delta = getDeltaFromKeyCode(keyCode);\n const isStart = keyCode === 'Home';\n const isEnd = keyCode === 'End';\n const shouldSetAbsolute = section.value === '' || isStart || isEnd;\n const adjustDigitSection = () => {\n const sectionBoundaries = sectionsValueBoundaries[section.type]({\n currentDate: activeDate,\n format: section.format,\n contentType: section.contentType\n });\n const getCleanValue = value => cleanDigitSectionValue(utils, value, sectionBoundaries, localizedDigits, section);\n const step = section.type === 'minutes' && stepsAttributes?.minutesStep ? stepsAttributes.minutesStep : 1;\n const currentSectionValue = parseInt(removeLocalizedDigits(section.value, localizedDigits), 10);\n let newSectionValueNumber = currentSectionValue + delta * step;\n if (shouldSetAbsolute) {\n if (section.type === 'year' && !isEnd && !isStart) {\n return utils.formatByString(utils.date(undefined, timezone), section.format);\n }\n if (delta > 0 || isStart) {\n newSectionValueNumber = sectionBoundaries.minimum;\n } else {\n newSectionValueNumber = sectionBoundaries.maximum;\n }\n }\n if (newSectionValueNumber % step !== 0) {\n if (delta < 0 || isStart) {\n newSectionValueNumber += step - (step + newSectionValueNumber) % step; // for JS -3 % 5 = -3 (should be 2)\n }\n if (delta > 0 || isEnd) {\n newSectionValueNumber -= newSectionValueNumber % step;\n }\n }\n if (newSectionValueNumber > sectionBoundaries.maximum) {\n return getCleanValue(sectionBoundaries.minimum + (newSectionValueNumber - sectionBoundaries.maximum - 1) % (sectionBoundaries.maximum - sectionBoundaries.minimum + 1));\n }\n if (newSectionValueNumber < sectionBoundaries.minimum) {\n return getCleanValue(sectionBoundaries.maximum - (sectionBoundaries.minimum - newSectionValueNumber - 1) % (sectionBoundaries.maximum - sectionBoundaries.minimum + 1));\n }\n return getCleanValue(newSectionValueNumber);\n };\n const adjustLetterSection = () => {\n const options = getLetterEditingOptions(utils, timezone, section.type, section.format);\n if (options.length === 0) {\n return section.value;\n }\n if (shouldSetAbsolute) {\n if (delta > 0 || isStart) {\n return options[0];\n }\n return options[options.length - 1];\n }\n const currentOptionIndex = options.indexOf(section.value);\n const newOptionIndex = (currentOptionIndex + delta) % options.length;\n const clampedIndex = (newOptionIndex + options.length) % options.length;\n return options[clampedIndex];\n };\n if (section.contentType === 'digit' || section.contentType === 'digit-with-letter') {\n return adjustDigitSection();\n }\n return adjustLetterSection();\n};\nexport const getSectionVisibleValue = (section, target, localizedDigits) => {\n let value = section.value || section.placeholder;\n const hasLeadingZeros = target === 'non-input' ? section.hasLeadingZerosInFormat : section.hasLeadingZerosInInput;\n if (target === 'non-input' && section.hasLeadingZerosInInput && !section.hasLeadingZerosInFormat) {\n value = Number(removeLocalizedDigits(value, localizedDigits)).toString();\n }\n\n // In the input, we add an empty character at the end of each section without leading zeros.\n // This makes sure that `onChange` will always be fired.\n // Otherwise, when your input value equals `1/dd/yyyy` (format `M/DD/YYYY` on DayJs),\n // If you press `1`, on the first section, the new value is also `1/dd/yyyy`,\n // So the browser will not fire the input `onChange`.\n const shouldAddInvisibleSpace = ['input-rtl', 'input-ltr'].includes(target) && section.contentType === 'digit' && !hasLeadingZeros && value.length === 1;\n if (shouldAddInvisibleSpace) {\n value = `${value}\\u200e`;\n }\n if (target === 'input-rtl') {\n value = `\\u2068${value}\\u2069`;\n }\n return value;\n};\nexport const changeSectionValueFormat = (utils, valueStr, currentFormat, newFormat) => {\n if (process.env.NODE_ENV !== 'production') {\n if (getDateSectionConfigFromFormatToken(utils, currentFormat).type === 'weekDay') {\n throw new Error(\"changeSectionValueFormat doesn't support week day formats\");\n }\n }\n return utils.formatByString(utils.parse(valueStr, currentFormat), newFormat);\n};\nconst isFourDigitYearFormat = (utils, format) => utils.formatByString(utils.date(undefined, 'system'), format).length === 4;\nexport const doesSectionFormatHaveLeadingZeros = (utils, contentType, sectionType, format) => {\n if (contentType !== 'digit') {\n return false;\n }\n const now = utils.date(undefined, 'default');\n switch (sectionType) {\n // We can't use `changeSectionValueFormat`, because `utils.parse('1', 'YYYY')` returns `1971` instead of `1`.\n case 'year':\n {\n if (isFourDigitYearFormat(utils, format)) {\n const formatted0001 = utils.formatByString(utils.setYear(now, 1), format);\n return formatted0001 === '0001';\n }\n const formatted2001 = utils.formatByString(utils.setYear(now, 2001), format);\n return formatted2001 === '01';\n }\n case 'month':\n {\n return utils.formatByString(utils.startOfYear(now), format).length > 1;\n }\n case 'day':\n {\n return utils.formatByString(utils.startOfMonth(now), format).length > 1;\n }\n case 'weekDay':\n {\n return utils.formatByString(utils.startOfWeek(now), format).length > 1;\n }\n case 'hours':\n {\n return utils.formatByString(utils.setHours(now, 1), format).length > 1;\n }\n case 'minutes':\n {\n return utils.formatByString(utils.setMinutes(now, 1), format).length > 1;\n }\n case 'seconds':\n {\n return utils.formatByString(utils.setSeconds(now, 1), format).length > 1;\n }\n default:\n {\n throw new Error('Invalid section type');\n }\n }\n};\n\n/**\n * Some date libraries like `dayjs` don't support parsing from date with escaped characters.\n * To make sure that the parsing works, we are building a format and a date without any separator.\n */\nexport const getDateFromDateSections = (utils, sections, localizedDigits) => {\n // If we have both a day and a weekDay section,\n // Then we skip the weekDay in the parsing because libraries like dayjs can't parse complicated formats containing a weekDay.\n // dayjs(dayjs().format('dddd MMMM D YYYY'), 'dddd MMMM D YYYY')) // returns `Invalid Date` even if the format is valid.\n const shouldSkipWeekDays = sections.some(section => section.type === 'day');\n const sectionFormats = [];\n const sectionValues = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const shouldSkip = shouldSkipWeekDays && section.type === 'weekDay';\n if (!shouldSkip) {\n sectionFormats.push(section.format);\n sectionValues.push(getSectionVisibleValue(section, 'non-input', localizedDigits));\n }\n }\n const formatWithoutSeparator = sectionFormats.join(' ');\n const dateWithoutSeparatorStr = sectionValues.join(' ');\n return utils.parse(dateWithoutSeparatorStr, formatWithoutSeparator);\n};\nexport const createDateStrForV7HiddenInputFromSections = sections => sections.map(section => {\n return `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`;\n}).join('');\nexport const createDateStrForV6InputFromSections = (sections, localizedDigits, isRtl) => {\n const formattedSections = sections.map(section => {\n const dateValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n return `${section.startSeparator}${dateValue}${section.endSeparator}`;\n });\n const dateStr = formattedSections.join('');\n if (!isRtl) {\n return dateStr;\n }\n\n // \\u2066: start left-to-right isolation\n // \\u2067: start right-to-left isolation\n // \\u2068: start first strong character isolation\n // \\u2069: pop isolation\n // wrap into an isolated group such that separators can split the string in smaller ones by adding \\u2069\\u2068\n return `\\u2066${dateStr}\\u2069`;\n};\nexport const getSectionsBoundaries = (utils, localizedDigits, timezone) => {\n const today = utils.date(undefined, timezone);\n const endOfYear = utils.endOfYear(today);\n const endOfDay = utils.endOfDay(today);\n const {\n maxDaysInMonth,\n longestMonth\n } = getMonthsInYear(utils, today).reduce((acc, month) => {\n const daysInMonth = utils.getDaysInMonth(month);\n if (daysInMonth > acc.maxDaysInMonth) {\n return {\n maxDaysInMonth: daysInMonth,\n longestMonth: month\n };\n }\n return acc;\n }, {\n maxDaysInMonth: 0,\n longestMonth: null\n });\n return {\n year: ({\n format\n }) => ({\n minimum: 0,\n maximum: isFourDigitYearFormat(utils, format) ? 9999 : 99\n }),\n month: () => ({\n minimum: 1,\n // Assumption: All years have the same amount of months\n maximum: utils.getMonth(endOfYear) + 1\n }),\n day: ({\n currentDate\n }) => ({\n minimum: 1,\n maximum: currentDate != null && utils.isValid(currentDate) ? utils.getDaysInMonth(currentDate) : maxDaysInMonth,\n longestMonth: longestMonth\n }),\n weekDay: ({\n format,\n contentType\n }) => {\n if (contentType === 'digit') {\n const daysInWeek = getDaysInWeekStr(utils, format).map(Number);\n return {\n minimum: Math.min(...daysInWeek),\n maximum: Math.max(...daysInWeek)\n };\n }\n return {\n minimum: 1,\n maximum: 7\n };\n },\n hours: ({\n format\n }) => {\n const lastHourInDay = utils.getHours(endOfDay);\n const hasMeridiem = removeLocalizedDigits(utils.formatByString(utils.endOfDay(today), format), localizedDigits) !== lastHourInDay.toString();\n if (hasMeridiem) {\n return {\n minimum: 1,\n maximum: Number(removeLocalizedDigits(utils.formatByString(utils.startOfDay(today), format), localizedDigits))\n };\n }\n return {\n minimum: 0,\n maximum: lastHourInDay\n };\n },\n minutes: () => ({\n minimum: 0,\n // Assumption: All years have the same amount of minutes\n maximum: utils.getMinutes(endOfDay)\n }),\n seconds: () => ({\n minimum: 0,\n // Assumption: All years have the same amount of seconds\n maximum: utils.getSeconds(endOfDay)\n }),\n meridiem: () => ({\n minimum: 0,\n maximum: 1\n }),\n empty: () => ({\n minimum: 0,\n maximum: 0\n })\n };\n};\nlet warnedOnceInvalidSection = false;\nexport const validateSections = (sections, valueType) => {\n if (process.env.NODE_ENV !== 'production') {\n if (!warnedOnceInvalidSection) {\n const supportedSections = ['empty'];\n if (['date', 'date-time'].includes(valueType)) {\n supportedSections.push('weekDay', 'day', 'month', 'year');\n }\n if (['time', 'date-time'].includes(valueType)) {\n supportedSections.push('hours', 'minutes', 'seconds', 'meridiem');\n }\n const invalidSection = sections.find(section => !supportedSections.includes(section.type));\n if (invalidSection) {\n console.warn(`MUI X: The field component you are using is not compatible with the \"${invalidSection.type}\" date section.`, `The supported date sections are [\"${supportedSections.join('\", \"')}\"]\\`.`);\n warnedOnceInvalidSection = true;\n }\n }\n }\n};\nconst transferDateSectionValue = (utils, section, dateToTransferFrom, dateToTransferTo) => {\n switch (section.type) {\n case 'year':\n {\n return utils.setYear(dateToTransferTo, utils.getYear(dateToTransferFrom));\n }\n case 'month':\n {\n return utils.setMonth(dateToTransferTo, utils.getMonth(dateToTransferFrom));\n }\n case 'weekDay':\n {\n const formattedDaysInWeek = getDaysInWeekStr(utils, section.format);\n const dayInWeekStrOfActiveDate = utils.formatByString(dateToTransferFrom, section.format);\n const dayInWeekOfActiveDate = formattedDaysInWeek.indexOf(dayInWeekStrOfActiveDate);\n const dayInWeekOfNewSectionValue = formattedDaysInWeek.indexOf(section.value);\n const diff = dayInWeekOfNewSectionValue - dayInWeekOfActiveDate;\n return utils.addDays(dateToTransferFrom, diff);\n }\n case 'day':\n {\n return utils.setDate(dateToTransferTo, utils.getDate(dateToTransferFrom));\n }\n case 'meridiem':\n {\n const isAM = utils.getHours(dateToTransferFrom) < 12;\n const mergedDateHours = utils.getHours(dateToTransferTo);\n if (isAM && mergedDateHours >= 12) {\n return utils.addHours(dateToTransferTo, -12);\n }\n if (!isAM && mergedDateHours < 12) {\n return utils.addHours(dateToTransferTo, 12);\n }\n return dateToTransferTo;\n }\n case 'hours':\n {\n return utils.setHours(dateToTransferTo, utils.getHours(dateToTransferFrom));\n }\n case 'minutes':\n {\n return utils.setMinutes(dateToTransferTo, utils.getMinutes(dateToTransferFrom));\n }\n case 'seconds':\n {\n return utils.setSeconds(dateToTransferTo, utils.getSeconds(dateToTransferFrom));\n }\n default:\n {\n return dateToTransferTo;\n }\n }\n};\nconst reliableSectionModificationOrder = {\n year: 1,\n month: 2,\n day: 3,\n weekDay: 4,\n hours: 5,\n minutes: 6,\n seconds: 7,\n meridiem: 8,\n empty: 9\n};\nexport const mergeDateIntoReferenceDate = (utils, dateToTransferFrom, sections, referenceDate, shouldLimitToEditedSections) =>\n// cloning sections before sort to avoid mutating it\n[...sections].sort((a, b) => reliableSectionModificationOrder[a.type] - reliableSectionModificationOrder[b.type]).reduce((mergedDate, section) => {\n if (!shouldLimitToEditedSections || section.modified) {\n return transferDateSectionValue(utils, section, dateToTransferFrom, mergedDate);\n }\n return mergedDate;\n}, referenceDate);\nexport const isAndroid = () => navigator.userAgent.toLowerCase().includes('android');\n\n// TODO v8: Remove if we drop the v6 TextField approach.\nexport const getSectionOrder = (sections, shouldApplyRTL) => {\n const neighbors = {};\n if (!shouldApplyRTL) {\n sections.forEach((_, index) => {\n const leftIndex = index === 0 ? null : index - 1;\n const rightIndex = index === sections.length - 1 ? null : index + 1;\n neighbors[index] = {\n leftIndex,\n rightIndex\n };\n });\n return {\n neighbors,\n startIndex: 0,\n endIndex: sections.length - 1\n };\n }\n const rtl2ltr = {};\n const ltr2rtl = {};\n let groupedSectionsStart = 0;\n let groupedSectionsEnd = 0;\n let RTLIndex = sections.length - 1;\n while (RTLIndex >= 0) {\n groupedSectionsEnd = sections.findIndex(\n // eslint-disable-next-line @typescript-eslint/no-loop-func\n (section, index) => index >= groupedSectionsStart && section.endSeparator?.includes(' ') &&\n // Special case where the spaces were not there in the initial input\n section.endSeparator !== ' / ');\n if (groupedSectionsEnd === -1) {\n groupedSectionsEnd = sections.length - 1;\n }\n for (let i = groupedSectionsEnd; i >= groupedSectionsStart; i -= 1) {\n ltr2rtl[i] = RTLIndex;\n rtl2ltr[RTLIndex] = i;\n RTLIndex -= 1;\n }\n groupedSectionsStart = groupedSectionsEnd + 1;\n }\n sections.forEach((_, index) => {\n const rtlIndex = ltr2rtl[index];\n const leftIndex = rtlIndex === 0 ? null : rtl2ltr[rtlIndex - 1];\n const rightIndex = rtlIndex === sections.length - 1 ? null : rtl2ltr[rtlIndex + 1];\n neighbors[index] = {\n leftIndex,\n rightIndex\n };\n });\n return {\n neighbors,\n startIndex: rtl2ltr[0],\n endIndex: rtl2ltr[sections.length - 1]\n };\n};\nexport const parseSelectedSections = (selectedSections, sections) => {\n if (selectedSections == null) {\n return null;\n }\n if (selectedSections === 'all') {\n return 'all';\n }\n if (typeof selectedSections === 'string') {\n const index = sections.findIndex(section => section.type === selectedSections);\n return index === -1 ? null : index;\n }\n return selectedSections;\n};\nexport const getSectionValueText = (section, utils) => {\n if (!section.value) {\n return undefined;\n }\n switch (section.type) {\n case 'month':\n {\n if (section.contentType === 'digit') {\n return utils.format(utils.setMonth(utils.date(), Number(section.value) - 1), 'month');\n }\n const parsedDate = utils.parse(section.value, section.format);\n return parsedDate ? utils.format(parsedDate, 'month') : undefined;\n }\n case 'day':\n return section.contentType === 'digit' ? utils.format(utils.setDate(utils.startOfYear(utils.date()), Number(section.value)), 'dayOfMonthFull') : section.value;\n case 'weekDay':\n // TODO: improve by providing the label of the week day\n return undefined;\n default:\n return undefined;\n }\n};\nexport const getSectionValueNow = (section, utils) => {\n if (!section.value) {\n return undefined;\n }\n switch (section.type) {\n case 'weekDay':\n {\n if (section.contentType === 'letter') {\n // TODO: improve by resolving the week day number from a letter week day\n return undefined;\n }\n return Number(section.value);\n }\n case 'meridiem':\n {\n const parsedDate = utils.parse(`01:00 ${section.value}`, `${utils.formats.hours12h}:${utils.formats.minutes} ${section.format}`);\n if (parsedDate) {\n return utils.getHours(parsedDate) >= 12 ? 1 : 0;\n }\n return undefined;\n }\n case 'day':\n return section.contentType === 'digit-with-letter' ? parseInt(section.value, 10) : Number(section.value);\n case 'month':\n {\n if (section.contentType === 'digit') {\n return Number(section.value);\n }\n const parsedDate = utils.parse(section.value, section.format);\n return parsedDate ? utils.getMonth(parsedDate) + 1 : undefined;\n }\n default:\n return section.contentType !== 'letter' ? Number(section.value) : undefined;\n }\n};","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\", \"referenceDate\"];\nimport { areDatesEqual, getTodayDate, replaceInvalidDateByNull } from \"./date-utils.js\";\nimport { getDefaultReferenceDate } from \"./getDefaultReferenceDate.js\";\nimport { createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections } from \"../hooks/useField/useField.utils.js\";\nexport const singleItemValueManager = {\n emptyValue: null,\n getTodayValue: getTodayDate,\n getInitialReferenceValue: _ref => {\n let {\n value,\n referenceDate\n } = _ref,\n params = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (value != null && params.utils.isValid(value)) {\n return value;\n }\n if (referenceDate != null) {\n return referenceDate;\n }\n return getDefaultReferenceDate(params);\n },\n cleanValue: replaceInvalidDateByNull,\n areValuesEqual: areDatesEqual,\n isSameError: (a, b) => a === b,\n hasError: error => error != null,\n defaultErrorState: null,\n getTimezone: (utils, value) => value == null || !utils.isValid(value) ? null : utils.getTimezone(value),\n setTimezone: (utils, timezone, value) => value == null ? null : utils.setTimezone(value, timezone)\n};\nexport const singleItemFieldValueManager = {\n updateReferenceValue: (utils, value, prevReferenceValue) => value == null || !utils.isValid(value) ? prevReferenceValue : value,\n getSectionsFromValue: (utils, date, prevSections, getSectionsFromDate) => {\n const shouldReUsePrevDateSections = !utils.isValid(date) && !!prevSections;\n if (shouldReUsePrevDateSections) {\n return prevSections;\n }\n return getSectionsFromDate(date);\n },\n getV7HiddenInputValueFromSections: createDateStrForV7HiddenInputFromSections,\n getV6InputValueFromSections: createDateStrForV6InputFromSections,\n getActiveDateManager: (utils, state) => ({\n date: state.value,\n referenceDate: state.referenceValue,\n getSections: sections => sections,\n getNewValuesFromNewActiveDate: newActiveDate => ({\n value: newActiveDate,\n referenceValue: newActiveDate == null || !utils.isValid(newActiveDate) ? state.referenceValue : newActiveDate\n })\n }),\n parseValueStr: (valueStr, referenceValue, parseDate) => parseDate(valueStr.trim(), referenceValue)\n};","import * as React from 'react';\nimport { singleItemValueManager } from \"../utils/valueManagers.js\";\nimport { getTodayDate } from \"../utils/date-utils.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../utils/getDefaultReferenceDate.js\";\nexport const useClockReferenceDate = ({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n}) => {\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.day,\n timezone,\n getTodayDate: () => getTodayDate(utils, timezone, 'date')\n }),\n // We only want to compute the reference date on mount.\n [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n return value ?? referenceDate;\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"ampmInClock\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"showViewSwitcher\", \"onChange\", \"view\", \"views\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"disabled\", \"readOnly\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId } from '@mui/utils';\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { PickersArrowSwitcher } from \"../internals/components/PickersArrowSwitcher/index.js\";\nimport { convertValueToMeridiem, createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getTimeClockUtilityClass } from \"./timeClockClasses.js\";\nimport { Clock } from \"./Clock.js\";\nimport { getHourNumbers, getMinutesNumbers } from \"./ClockNumbers.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n arrowSwitcher: ['arrowSwitcher']\n };\n return composeClasses(slots, getTimeClockUtilityClass, classes);\n};\nconst TimeClockRoot = styled(PickerViewRoot, {\n name: 'MuiTimeClock',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'flex',\n flexDirection: 'column',\n position: 'relative'\n});\nconst TimeClockArrowSwitcher = styled(PickersArrowSwitcher, {\n name: 'MuiTimeClock',\n slot: 'ArrowSwitcher',\n overridesResolver: (props, styles) => styles.arrowSwitcher\n})({\n position: 'absolute',\n right: 12,\n top: 15\n});\nconst TIME_CLOCK_DEFAULT_VIEWS = ['hours', 'minutes'];\n\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [TimeClock](https://mui.com/x/react-date-pickers/time-clock/)\n *\n * API:\n *\n * - [TimeClock API](https://mui.com/x/api/date-pickers/time-clock/)\n */\nexport const TimeClock = /*#__PURE__*/React.forwardRef(function TimeClock(inProps, ref) {\n const utils = useUtils();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimeClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n ampmInClock = false,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n showViewSwitcher,\n onChange,\n view: inView,\n views = TIME_CLOCK_DEFAULT_VIEWS,\n openTo,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n className,\n disabled,\n readOnly,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'TimeClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: singleItemValueManager\n });\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const translations = usePickersTranslations();\n const now = useNow(timezone);\n const {\n view,\n setView,\n previousView,\n nextView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView,\n onFocusedViewChange\n });\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(valueOrReferenceDate, ampm, setValueAndGoToNextView);\n const isTimeDisabled = React.useCallback((rawValue, viewType) => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const shouldCheckPastEnd = viewType === 'hours' || viewType === 'minutes' && views.includes('seconds');\n const containsValidTime = ({\n start,\n end\n }) => {\n if (minTime && isAfter(minTime, end)) {\n return false;\n }\n if (maxTime && isAfter(start, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(start, now)) {\n return false;\n }\n if (disablePast && isAfter(now, shouldCheckPastEnd ? end : start)) {\n return false;\n }\n return true;\n };\n const isValidValue = (timeValue, step = 1) => {\n if (timeValue % step !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n switch (viewType) {\n case 'hours':\n return !shouldDisableTime(utils.setHours(valueOrReferenceDate, timeValue), 'hours');\n case 'minutes':\n return !shouldDisableTime(utils.setMinutes(valueOrReferenceDate, timeValue), 'minutes');\n case 'seconds':\n return !shouldDisableTime(utils.setSeconds(valueOrReferenceDate, timeValue), 'seconds');\n default:\n return false;\n }\n }\n return true;\n };\n switch (viewType) {\n case 'hours':\n {\n const valueWithMeridiem = convertValueToMeridiem(rawValue, meridiemMode, ampm);\n const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);\n const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);\n const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(valueWithMeridiem);\n }\n case 'minutes':\n {\n const dateWithNewMinutes = utils.setMinutes(valueOrReferenceDate, rawValue);\n const start = utils.setSeconds(dateWithNewMinutes, 0);\n const end = utils.setSeconds(dateWithNewMinutes, 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue, minutesStep);\n }\n case 'seconds':\n {\n const dateWithNewSeconds = utils.setSeconds(valueOrReferenceDate, rawValue);\n const start = dateWithNewSeconds;\n const end = dateWithNewSeconds;\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue);\n }\n default:\n throw new Error('not supported');\n }\n }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);\n const selectedId = useId();\n const viewProps = React.useMemo(() => {\n switch (view) {\n case 'hours':\n {\n const handleHoursChange = (hourValue, isFinish) => {\n const valueWithMeridiem = convertValueToMeridiem(hourValue, meridiemMode, ampm);\n setValueAndGoToNextView(utils.setHours(valueOrReferenceDate, valueWithMeridiem), isFinish, 'hours');\n };\n return {\n onChange: handleHoursChange,\n viewValue: utils.getHours(valueOrReferenceDate),\n children: getHourNumbers({\n value,\n utils,\n ampm,\n onChange: handleHoursChange,\n getClockNumberText: translations.hoursClockNumberText,\n isDisabled: hourValue => disabled || isTimeDisabled(hourValue, 'hours'),\n selectedId\n })\n };\n }\n case 'minutes':\n {\n const minutesValue = utils.getMinutes(valueOrReferenceDate);\n const handleMinutesChange = (minuteValue, isFinish) => {\n setValueAndGoToNextView(utils.setMinutes(valueOrReferenceDate, minuteValue), isFinish, 'minutes');\n };\n return {\n viewValue: minutesValue,\n onChange: handleMinutesChange,\n children: getMinutesNumbers({\n utils,\n value: minutesValue,\n onChange: handleMinutesChange,\n getClockNumberText: translations.minutesClockNumberText,\n isDisabled: minuteValue => disabled || isTimeDisabled(minuteValue, 'minutes'),\n selectedId\n })\n };\n }\n case 'seconds':\n {\n const secondsValue = utils.getSeconds(valueOrReferenceDate);\n const handleSecondsChange = (secondValue, isFinish) => {\n setValueAndGoToNextView(utils.setSeconds(valueOrReferenceDate, secondValue), isFinish, 'seconds');\n };\n return {\n viewValue: secondsValue,\n onChange: handleSecondsChange,\n children: getMinutesNumbers({\n utils,\n value: secondsValue,\n onChange: handleSecondsChange,\n getClockNumberText: translations.secondsClockNumberText,\n isDisabled: secondValue => disabled || isTimeDisabled(secondValue, 'seconds'),\n selectedId\n })\n };\n }\n default:\n throw new Error('You must provide the type for ClockView');\n }\n }, [view, utils, value, ampm, translations.hoursClockNumberText, translations.minutesClockNumberText, translations.secondsClockNumberText, meridiemMode, setValueAndGoToNextView, valueOrReferenceDate, isTimeDisabled, selectedId, disabled]);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsxs(TimeClockRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(Clock, _extends({\n autoFocus: autoFocus ?? !!focusedView,\n ampmInClock: ampmInClock && views.includes('hours'),\n value: value,\n type: view,\n ampm: ampm,\n minutesStep: minutesStep,\n isTimeDisabled: isTimeDisabled,\n meridiemMode: meridiemMode,\n handleMeridiemChange: handleMeridiemChange,\n selectedId: selectedId,\n disabled: disabled,\n readOnly: readOnly\n }, viewProps)), showViewSwitcher && /*#__PURE__*/_jsx(TimeClockArrowSwitcher, {\n className: classes.arrowSwitcher,\n slots: slots,\n slotProps: slotProps,\n onGoToPrevious: () => setView(previousView),\n isPreviousDisabled: !previousView,\n previousLabel: translations.openPreviousView,\n onGoToNext: () => setView(nextView),\n isNextDisabled: !nextView,\n nextLabel: translations.openNextView,\n ownerState: ownerState\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? TimeClock.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default false\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker views and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * If `true`, the picker views and text field are read-only.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n showViewSwitcher: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Available views.\n * @default ['hours', 'minutes']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n} : void 0;","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getDigitalClockUtilityClass(slot) {\n return generateUtilityClass('MuiDigitalClock', slot);\n}\nexport const digitalClockClasses = generateUtilityClasses('MuiDigitalClock', ['root', 'list', 'item']);","/* Use it instead of .includes method for IE support */\nexport function arrayIncludes(array, itemOrItems) {\n if (Array.isArray(itemOrItems)) {\n return itemOrItems.every(item => array.indexOf(item) !== -1);\n }\n return array.indexOf(itemOrItems) !== -1;\n}\nexport const onSpaceOrEnter = (innerFn, externalEvent) => event => {\n if (event.key === 'Enter' || event.key === ' ') {\n innerFn(event);\n\n // prevent any side effects\n event.preventDefault();\n event.stopPropagation();\n }\n if (externalEvent) {\n externalEvent(event);\n }\n};\nexport const executeInTheNextEventLoopTick = fn => {\n setTimeout(fn, 0);\n};\n\n// https://www.abeautifulsite.net/posts/finding-the-active-element-in-a-shadow-root/\nexport const getActiveElement = (root = document) => {\n const activeEl = root.activeElement;\n if (!activeEl) {\n return null;\n }\n if (activeEl.shadowRoot) {\n return getActiveElement(activeEl.shadowRoot);\n }\n return activeEl;\n};\n\n/**\n * Gets the index of the focused list item in a given ul list element.\n *\n * @param {HTMLUListElement} listElement - The list element to search within.\n * @returns {number} The index of the focused list item, or -1 if none is focused.\n */\nexport const getFocusedListItemIndex = listElement => {\n const children = Array.from(listElement.children);\n return children.indexOf(getActiveElement(document));\n};\nexport const DEFAULT_DESKTOP_MODE_MEDIA_QUERY = '@media (pointer: fine)';","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"timeStep\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"onChange\", \"view\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"disabled\", \"readOnly\", \"views\", \"skipDisabled\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport composeClasses from '@mui/utils/composeClasses';\nimport MenuItem from '@mui/material/MenuItem';\nimport MenuList from '@mui/material/MenuList';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getDigitalClockUtilityClass } from \"./digitalClockClasses.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { DIGITAL_CLOCK_VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { getFocusedListItemIndex } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n list: ['list'],\n item: ['item']\n };\n return composeClasses(slots, getDigitalClockUtilityClass, classes);\n};\nconst DigitalClockRoot = styled(PickerViewRoot, {\n name: 'MuiDigitalClock',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n overflowY: 'auto',\n width: '100%',\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'auto'\n },\n maxHeight: DIGITAL_CLOCK_VIEW_HEIGHT,\n variants: [{\n props: {\n alreadyRendered: true\n },\n style: {\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'smooth'\n }\n }\n }]\n});\nconst DigitalClockList = styled(MenuList, {\n name: 'MuiDigitalClock',\n slot: 'List',\n overridesResolver: (props, styles) => styles.list\n})({\n padding: 0\n});\nconst DigitalClockItem = styled(MenuItem, {\n name: 'MuiDigitalClock',\n slot: 'Item',\n overridesResolver: (props, styles) => styles.item\n})(({\n theme\n}) => ({\n padding: '8px 16px',\n margin: '2px 4px',\n '&:first-of-type': {\n marginTop: 4\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n },\n '&.Mui-selected': {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:focus-visible, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n '&.Mui-focusVisible': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)\n }\n}));\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)\n *\n * API:\n *\n * - [DigitalClock API](https://mui.com/x/api/date-pickers/digital-clock/)\n */\nexport const DigitalClock = /*#__PURE__*/React.forwardRef(function DigitalClock(inProps, ref) {\n const utils = useUtils();\n const containerRef = React.useRef(null);\n const handleRef = useForkRef(ref, containerRef);\n const listRef = React.useRef(null);\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDigitalClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n timeStep = 30,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n onChange,\n view: inView,\n openTo,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n className,\n disabled,\n readOnly,\n views = ['hours'],\n skipDisabled = false,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange: handleRawValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'DigitalClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: singleItemValueManager\n });\n const translations = usePickersTranslations();\n const now = useNow(timezone);\n const ownerState = React.useMemo(() => _extends({}, props, {\n alreadyRendered: !!containerRef.current\n }), [props]);\n const classes = useUtilityClasses(ownerState);\n const ClockItem = slots?.digitalClockItem ?? DigitalClockItem;\n const clockItemProps = useSlotProps({\n elementType: ClockItem,\n externalSlotProps: slotProps?.digitalClockItem,\n ownerState: {},\n className: classes.item\n });\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const handleValueChange = useEventCallback(newValue => handleRawValueChange(newValue, 'finish', 'hours'));\n const {\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView,\n onFocusedViewChange\n });\n const handleItemSelect = useEventCallback(newValue => {\n setValueAndGoToNextView(newValue, 'finish');\n });\n React.useEffect(() => {\n if (containerRef.current === null) {\n return;\n }\n const activeItem = containerRef.current.querySelector('[role=\"listbox\"] [role=\"option\"][tabindex=\"0\"], [role=\"listbox\"] [role=\"option\"][aria-selected=\"true\"]');\n if (!activeItem) {\n return;\n }\n const offsetTop = activeItem.offsetTop;\n if (autoFocus || !!focusedView) {\n activeItem.focus();\n }\n\n // Subtracting the 4px of extra margin intended for the first visible section item\n containerRef.current.scrollTop = offsetTop - 4;\n });\n const isTimeDisabled = React.useCallback(valueToCheck => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const containsValidTime = () => {\n if (minTime && isAfter(minTime, valueToCheck)) {\n return false;\n }\n if (maxTime && isAfter(valueToCheck, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(valueToCheck, now)) {\n return false;\n }\n if (disablePast && isAfter(now, valueToCheck)) {\n return false;\n }\n return true;\n };\n const isValidValue = () => {\n if (utils.getMinutes(valueToCheck) % minutesStep !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n return !shouldDisableTime(valueToCheck, 'hours');\n }\n return true;\n };\n return !containsValidTime() || !isValidValue();\n }, [disableIgnoringDatePartForTimeValidation, utils, minTime, maxTime, disableFuture, now, disablePast, minutesStep, shouldDisableTime]);\n const timeOptions = React.useMemo(() => {\n const result = [];\n const startOfDay = utils.startOfDay(valueOrReferenceDate);\n let nextTimeStepOption = startOfDay;\n while (utils.isSameDay(valueOrReferenceDate, nextTimeStepOption)) {\n result.push(nextTimeStepOption);\n nextTimeStepOption = utils.addMinutes(nextTimeStepOption, timeStep);\n }\n return result;\n }, [valueOrReferenceDate, timeStep, utils]);\n const focusedOptionIndex = timeOptions.findIndex(option => utils.isEqual(option, valueOrReferenceDate));\n const handleKeyDown = event => {\n switch (event.key) {\n case 'PageUp':\n {\n const newIndex = getFocusedListItemIndex(listRef.current) - 5;\n const children = listRef.current.children;\n const newFocusedIndex = Math.max(0, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n case 'PageDown':\n {\n const newIndex = getFocusedListItemIndex(listRef.current) + 5;\n const children = listRef.current.children;\n const newFocusedIndex = Math.min(children.length - 1, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n default:\n }\n };\n return /*#__PURE__*/_jsx(DigitalClockRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: /*#__PURE__*/_jsx(DigitalClockList, {\n ref: listRef,\n role: \"listbox\",\n \"aria-label\": translations.timePickerToolbarTitle,\n className: classes.list,\n onKeyDown: handleKeyDown,\n children: timeOptions.map((option, index) => {\n if (skipDisabled && isTimeDisabled(option)) {\n return null;\n }\n const isSelected = utils.isEqual(option, value);\n const formattedValue = utils.format(option, ampm ? 'fullTime12h' : 'fullTime24h');\n const tabIndex = focusedOptionIndex === index || focusedOptionIndex === -1 && index === 0 ? 0 : -1;\n return /*#__PURE__*/_jsx(ClockItem, _extends({\n onClick: () => !readOnly && handleItemSelect(option),\n selected: isSelected,\n disabled: disabled || isTimeDisabled(option),\n disableRipple: readOnly,\n role: \"option\"\n // aria-readonly is not supported here and does not have any effect\n ,\n \"aria-disabled\": readOnly,\n \"aria-selected\": isSelected,\n tabIndex: tabIndex\n }, clockItemProps, {\n children: formattedValue\n }), `${option.valueOf()}-${formattedValue}`);\n })\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DigitalClock.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker views and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours']),\n /**\n * If `true`, the picker views and text field are read-only.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overrideable component slots.\n * @default {}\n */\n slots: 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 * The time steps between two time options.\n * For example, if `timeStep = 45`, then the available time options will be `[00:00, 00:45, 01:30, 02:15, 03:00, etc.]`.\n * @default 30\n */\n timeStep: PropTypes.number,\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours']),\n /**\n * Available views.\n * @default ['hours']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours']))\n} : void 0;","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getMultiSectionDigitalClockUtilityClass(slot) {\n return generateUtilityClass('MuiMultiSectionDigitalClock', slot);\n}\nexport const multiSectionDigitalClockClasses = generateUtilityClasses('MuiMultiSectionDigitalClock', ['root']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getMultiSectionDigitalClockSectionUtilityClass(slot) {\n return generateUtilityClass('MuiMultiSectionDigitalClockSection', slot);\n}\nexport const multiSectionDigitalClockSectionClasses = generateUtilityClasses('MuiMultiSectionDigitalClockSection', ['root', 'item']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"autoFocus\", \"onChange\", \"className\", \"disabled\", \"readOnly\", \"items\", \"active\", \"slots\", \"slotProps\", \"skipDisabled\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport MenuList from '@mui/material/MenuList';\nimport MenuItem from '@mui/material/MenuItem';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { getMultiSectionDigitalClockSectionUtilityClass } from \"./multiSectionDigitalClockSectionClasses.js\";\nimport { DIGITAL_CLOCK_VIEW_HEIGHT, MULTI_SECTION_CLOCK_SECTION_WIDTH } from \"../internals/constants/dimensions.js\";\nimport { getFocusedListItemIndex } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n item: ['item']\n };\n return composeClasses(slots, getMultiSectionDigitalClockSectionUtilityClass, classes);\n};\nconst MultiSectionDigitalClockSectionRoot = styled(MenuList, {\n name: 'MuiMultiSectionDigitalClockSection',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})(({\n theme\n}) => ({\n maxHeight: DIGITAL_CLOCK_VIEW_HEIGHT,\n width: 56,\n padding: 0,\n overflow: 'hidden',\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'auto'\n },\n '@media (pointer: fine)': {\n '&:hover': {\n overflowY: 'auto'\n }\n },\n '@media (pointer: none), (pointer: coarse)': {\n overflowY: 'auto'\n },\n '&:not(:first-of-type)': {\n borderLeft: `1px solid ${(theme.vars || theme).palette.divider}`\n },\n '&::after': {\n display: 'block',\n content: '\"\"',\n // subtracting the height of one item, extra margin and borders to make sure the max height is correct\n height: 'calc(100% - 40px - 6px)'\n },\n variants: [{\n props: {\n alreadyRendered: true\n },\n style: {\n '@media (prefers-reduced-motion: no-preference)': {\n scrollBehavior: 'smooth'\n }\n }\n }]\n}));\nconst MultiSectionDigitalClockSectionItem = styled(MenuItem, {\n name: 'MuiMultiSectionDigitalClockSection',\n slot: 'Item',\n overridesResolver: (_, styles) => styles.item\n})(({\n theme\n}) => ({\n padding: 8,\n margin: '2px 4px',\n width: MULTI_SECTION_CLOCK_SECTION_WIDTH,\n justifyContent: 'center',\n '&:first-of-type': {\n marginTop: 4\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n },\n '&.Mui-selected': {\n backgroundColor: (theme.vars || theme).palette.primary.main,\n color: (theme.vars || theme).palette.primary.contrastText,\n '&:focus-visible, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n '&.Mui-focusVisible': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity)\n }\n}));\n/**\n * @ignore - internal component.\n */\nexport const MultiSectionDigitalClockSection = /*#__PURE__*/React.forwardRef(function MultiSectionDigitalClockSection(inProps, ref) {\n const containerRef = React.useRef(null);\n const handleRef = useForkRef(ref, containerRef);\n const previousActive = React.useRef(null);\n const props = useThemeProps({\n props: inProps,\n name: 'MuiMultiSectionDigitalClockSection'\n });\n const {\n autoFocus,\n onChange,\n className,\n disabled,\n readOnly,\n items,\n active,\n slots,\n slotProps,\n skipDisabled\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = React.useMemo(() => _extends({}, props, {\n alreadyRendered: !!containerRef.current\n }), [props]);\n const classes = useUtilityClasses(ownerState);\n const DigitalClockSectionItem = slots?.digitalClockSectionItem ?? MultiSectionDigitalClockSectionItem;\n React.useEffect(() => {\n if (containerRef.current === null) {\n return;\n }\n const activeItem = containerRef.current.querySelector('[role=\"option\"][tabindex=\"0\"], [role=\"option\"][aria-selected=\"true\"]');\n if (active && autoFocus && activeItem) {\n activeItem.focus();\n }\n if (!activeItem || previousActive.current === activeItem) {\n return;\n }\n previousActive.current = activeItem;\n const offsetTop = activeItem.offsetTop;\n\n // Subtracting the 4px of extra margin intended for the first visible section item\n containerRef.current.scrollTop = offsetTop - 4;\n });\n const focusedOptionIndex = items.findIndex(item => item.isFocused(item.value));\n const handleKeyDown = event => {\n switch (event.key) {\n case 'PageUp':\n {\n const newIndex = getFocusedListItemIndex(containerRef.current) - 5;\n const children = containerRef.current.children;\n const newFocusedIndex = Math.max(0, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n case 'PageDown':\n {\n const newIndex = getFocusedListItemIndex(containerRef.current) + 5;\n const children = containerRef.current.children;\n const newFocusedIndex = Math.min(children.length - 1, newIndex);\n const childToFocus = children[newFocusedIndex];\n if (childToFocus) {\n childToFocus.focus();\n }\n event.preventDefault();\n break;\n }\n default:\n }\n };\n return /*#__PURE__*/_jsx(MultiSectionDigitalClockSectionRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n autoFocusItem: autoFocus && active,\n role: \"listbox\",\n onKeyDown: handleKeyDown\n }, other, {\n children: items.map((option, index) => {\n const isItemDisabled = option.isDisabled?.(option.value);\n const isDisabled = disabled || isItemDisabled;\n if (skipDisabled && isDisabled) {\n return null;\n }\n const isSelected = option.isSelected(option.value);\n const tabIndex = focusedOptionIndex === index || focusedOptionIndex === -1 && index === 0 ? 0 : -1;\n return /*#__PURE__*/_jsx(DigitalClockSectionItem, _extends({\n onClick: () => !readOnly && onChange(option.value),\n selected: isSelected,\n disabled: isDisabled,\n disableRipple: readOnly,\n role: \"option\"\n // aria-readonly is not supported here and does not have any effect\n ,\n \"aria-disabled\": readOnly || isDisabled || undefined,\n \"aria-label\": option.ariaLabel,\n \"aria-selected\": isSelected,\n tabIndex: tabIndex,\n className: classes.item\n }, slotProps?.digitalClockSectionItem, {\n children: option.label\n }), option.label);\n })\n }));\n});","export const getHourSectionOptions = ({\n now,\n value,\n utils,\n ampm,\n isDisabled,\n resolveAriaLabel,\n timeStep,\n valueOrReferenceDate\n}) => {\n const currentHours = value ? utils.getHours(value) : null;\n const result = [];\n const isSelected = (hour, overriddenCurrentHours) => {\n const resolvedCurrentHours = overriddenCurrentHours ?? currentHours;\n if (resolvedCurrentHours === null) {\n return false;\n }\n if (ampm) {\n if (hour === 12) {\n return resolvedCurrentHours === 12 || resolvedCurrentHours === 0;\n }\n return resolvedCurrentHours === hour || resolvedCurrentHours - 12 === hour;\n }\n return resolvedCurrentHours === hour;\n };\n const isFocused = hour => {\n return isSelected(hour, utils.getHours(valueOrReferenceDate));\n };\n const endHour = ampm ? 11 : 23;\n for (let hour = 0; hour <= endHour; hour += timeStep) {\n let label = utils.format(utils.setHours(now, hour), ampm ? 'hours12h' : 'hours24h');\n const ariaLabel = resolveAriaLabel(parseInt(label, 10).toString());\n label = utils.formatNumber(label);\n result.push({\n value: hour,\n label,\n isSelected,\n isDisabled,\n isFocused,\n ariaLabel\n });\n }\n return result;\n};\nexport const getTimeSectionOptions = ({\n value,\n utils,\n isDisabled,\n timeStep,\n resolveLabel,\n resolveAriaLabel,\n hasValue = true\n}) => {\n const isSelected = timeValue => {\n if (value === null) {\n return false;\n }\n return hasValue && value === timeValue;\n };\n const isFocused = timeValue => {\n return value === timeValue;\n };\n return [...Array.from({\n length: Math.ceil(60 / timeStep)\n }, (_, index) => {\n const timeValue = timeStep * index;\n return {\n value: timeValue,\n label: utils.formatNumber(resolveLabel(timeValue)),\n isDisabled,\n isSelected,\n isFocused,\n ariaLabel: resolveAriaLabel(timeValue.toString())\n };\n })];\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"timeSteps\", \"autoFocus\", \"slots\", \"slotProps\", \"value\", \"defaultValue\", \"referenceDate\", \"disableIgnoringDatePartForTimeValidation\", \"maxTime\", \"minTime\", \"disableFuture\", \"disablePast\", \"minutesStep\", \"shouldDisableTime\", \"onChange\", \"view\", \"views\", \"openTo\", \"onViewChange\", \"focusedView\", \"onFocusedViewChange\", \"className\", \"disabled\", \"readOnly\", \"skipDisabled\", \"timezone\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { convertValueToMeridiem, createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { getMultiSectionDigitalClockUtilityClass } from \"./multiSectionDigitalClockClasses.js\";\nimport { MultiSectionDigitalClockSection } from \"./MultiSectionDigitalClockSection.js\";\nimport { getHourSectionOptions, getTimeSectionOptions } from \"./MultiSectionDigitalClock.utils.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useClockReferenceDate } from \"../internals/hooks/useClockReferenceDate.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getMultiSectionDigitalClockUtilityClass, classes);\n};\nconst MultiSectionDigitalClockRoot = styled(PickerViewRoot, {\n name: 'MuiMultiSectionDigitalClock',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'row',\n width: '100%',\n borderBottom: `1px solid ${(theme.vars || theme).palette.divider}`\n}));\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [DigitalClock](https://mui.com/x/react-date-pickers/digital-clock/)\n *\n * API:\n *\n * - [MultiSectionDigitalClock API](https://mui.com/x/api/date-pickers/multi-section-digital-clock/)\n */\nexport const MultiSectionDigitalClock = /*#__PURE__*/React.forwardRef(function MultiSectionDigitalClock(inProps, ref) {\n const utils = useUtils();\n const isRtl = useRtl();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiMultiSectionDigitalClock'\n });\n const {\n ampm = utils.is12HourCycleInCurrentLocale(),\n timeSteps: inTimeSteps,\n autoFocus,\n slots,\n slotProps,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableIgnoringDatePartForTimeValidation = false,\n maxTime,\n minTime,\n disableFuture,\n disablePast,\n minutesStep = 1,\n shouldDisableTime,\n onChange,\n view: inView,\n views: inViews = ['hours', 'minutes'],\n openTo,\n onViewChange,\n focusedView: inFocusedView,\n onFocusedViewChange,\n className,\n disabled,\n readOnly,\n skipDisabled = false,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange: handleRawValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'MultiSectionDigitalClock',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: singleItemValueManager\n });\n const translations = usePickersTranslations();\n const now = useNow(timezone);\n const timeSteps = React.useMemo(() => _extends({\n hours: 1,\n minutes: 5,\n seconds: 5\n }, inTimeSteps), [inTimeSteps]);\n const valueOrReferenceDate = useClockReferenceDate({\n value,\n referenceDate: referenceDateProp,\n utils,\n props,\n timezone\n });\n const handleValueChange = useEventCallback((newValue, selectionState, selectedView) => handleRawValueChange(newValue, selectionState, selectedView));\n const views = React.useMemo(() => {\n if (!ampm || !inViews.includes('hours')) {\n return inViews;\n }\n return inViews.includes('meridiem') ? inViews : [...inViews, 'meridiem'];\n }, [ampm, inViews]);\n const {\n view,\n setValueAndGoToNextView,\n focusedView\n } = useViews({\n view: inView,\n views,\n openTo,\n onViewChange,\n onChange: handleValueChange,\n focusedView: inFocusedView,\n onFocusedViewChange\n });\n const handleMeridiemValueChange = useEventCallback(newValue => {\n setValueAndGoToNextView(newValue, 'finish', 'meridiem');\n });\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(valueOrReferenceDate, ampm, handleMeridiemValueChange, 'finish');\n const isTimeDisabled = React.useCallback((rawValue, viewType) => {\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, utils);\n const shouldCheckPastEnd = viewType === 'hours' || viewType === 'minutes' && views.includes('seconds');\n const containsValidTime = ({\n start,\n end\n }) => {\n if (minTime && isAfter(minTime, end)) {\n return false;\n }\n if (maxTime && isAfter(start, maxTime)) {\n return false;\n }\n if (disableFuture && isAfter(start, now)) {\n return false;\n }\n if (disablePast && isAfter(now, shouldCheckPastEnd ? end : start)) {\n return false;\n }\n return true;\n };\n const isValidValue = (timeValue, step = 1) => {\n if (timeValue % step !== 0) {\n return false;\n }\n if (shouldDisableTime) {\n switch (viewType) {\n case 'hours':\n return !shouldDisableTime(utils.setHours(valueOrReferenceDate, timeValue), 'hours');\n case 'minutes':\n return !shouldDisableTime(utils.setMinutes(valueOrReferenceDate, timeValue), 'minutes');\n case 'seconds':\n return !shouldDisableTime(utils.setSeconds(valueOrReferenceDate, timeValue), 'seconds');\n default:\n return false;\n }\n }\n return true;\n };\n switch (viewType) {\n case 'hours':\n {\n const valueWithMeridiem = convertValueToMeridiem(rawValue, meridiemMode, ampm);\n const dateWithNewHours = utils.setHours(valueOrReferenceDate, valueWithMeridiem);\n const start = utils.setSeconds(utils.setMinutes(dateWithNewHours, 0), 0);\n const end = utils.setSeconds(utils.setMinutes(dateWithNewHours, 59), 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(valueWithMeridiem);\n }\n case 'minutes':\n {\n const dateWithNewMinutes = utils.setMinutes(valueOrReferenceDate, rawValue);\n const start = utils.setSeconds(dateWithNewMinutes, 0);\n const end = utils.setSeconds(dateWithNewMinutes, 59);\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue, minutesStep);\n }\n case 'seconds':\n {\n const dateWithNewSeconds = utils.setSeconds(valueOrReferenceDate, rawValue);\n const start = dateWithNewSeconds;\n const end = dateWithNewSeconds;\n return !containsValidTime({\n start,\n end\n }) || !isValidValue(rawValue);\n }\n default:\n throw new Error('not supported');\n }\n }, [ampm, valueOrReferenceDate, disableIgnoringDatePartForTimeValidation, maxTime, meridiemMode, minTime, minutesStep, shouldDisableTime, utils, disableFuture, disablePast, now, views]);\n const buildViewProps = React.useCallback(viewToBuild => {\n switch (viewToBuild) {\n case 'hours':\n {\n return {\n onChange: hours => {\n const valueWithMeridiem = convertValueToMeridiem(hours, meridiemMode, ampm);\n setValueAndGoToNextView(utils.setHours(valueOrReferenceDate, valueWithMeridiem), 'finish', 'hours');\n },\n items: getHourSectionOptions({\n now,\n value,\n ampm,\n utils,\n isDisabled: hours => isTimeDisabled(hours, 'hours'),\n timeStep: timeSteps.hours,\n resolveAriaLabel: translations.hoursClockNumberText,\n valueOrReferenceDate\n })\n };\n }\n case 'minutes':\n {\n return {\n onChange: minutes => {\n setValueAndGoToNextView(utils.setMinutes(valueOrReferenceDate, minutes), 'finish', 'minutes');\n },\n items: getTimeSectionOptions({\n value: utils.getMinutes(valueOrReferenceDate),\n utils,\n isDisabled: minutes => isTimeDisabled(minutes, 'minutes'),\n resolveLabel: minutes => utils.format(utils.setMinutes(now, minutes), 'minutes'),\n timeStep: timeSteps.minutes,\n hasValue: !!value,\n resolveAriaLabel: translations.minutesClockNumberText\n })\n };\n }\n case 'seconds':\n {\n return {\n onChange: seconds => {\n setValueAndGoToNextView(utils.setSeconds(valueOrReferenceDate, seconds), 'finish', 'seconds');\n },\n items: getTimeSectionOptions({\n value: utils.getSeconds(valueOrReferenceDate),\n utils,\n isDisabled: seconds => isTimeDisabled(seconds, 'seconds'),\n resolveLabel: seconds => utils.format(utils.setSeconds(now, seconds), 'seconds'),\n timeStep: timeSteps.seconds,\n hasValue: !!value,\n resolveAriaLabel: translations.secondsClockNumberText\n })\n };\n }\n case 'meridiem':\n {\n const amLabel = formatMeridiem(utils, 'am');\n const pmLabel = formatMeridiem(utils, 'pm');\n return {\n onChange: handleMeridiemChange,\n items: [{\n value: 'am',\n label: amLabel,\n isSelected: () => !!value && meridiemMode === 'am',\n isFocused: () => !!valueOrReferenceDate && meridiemMode === 'am',\n ariaLabel: amLabel\n }, {\n value: 'pm',\n label: pmLabel,\n isSelected: () => !!value && meridiemMode === 'pm',\n isFocused: () => !!valueOrReferenceDate && meridiemMode === 'pm',\n ariaLabel: pmLabel\n }]\n };\n }\n default:\n throw new Error(`Unknown view: ${viewToBuild} found.`);\n }\n }, [now, value, ampm, utils, timeSteps.hours, timeSteps.minutes, timeSteps.seconds, translations.hoursClockNumberText, translations.minutesClockNumberText, translations.secondsClockNumberText, meridiemMode, setValueAndGoToNextView, valueOrReferenceDate, isTimeDisabled, handleMeridiemChange]);\n const viewsToRender = React.useMemo(() => {\n if (!isRtl) {\n return views;\n }\n const digitViews = views.filter(v => v !== 'meridiem');\n digitViews.reverse();\n if (views.includes('meridiem')) {\n digitViews.push('meridiem');\n }\n return digitViews;\n }, [isRtl, views]);\n const viewTimeOptions = React.useMemo(() => {\n return views.reduce((result, currentView) => {\n return _extends({}, result, {\n [currentView]: buildViewProps(currentView)\n });\n }, {});\n }, [views, buildViewProps]);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(MultiSectionDigitalClockRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"group\"\n }, other, {\n children: viewsToRender.map(timeView => /*#__PURE__*/_jsx(MultiSectionDigitalClockSection, {\n items: viewTimeOptions[timeView].items,\n onChange: viewTimeOptions[timeView].onChange,\n active: view === timeView,\n autoFocus: autoFocus ?? focusedView === timeView,\n disabled: disabled,\n readOnly: readOnly,\n slots: slots,\n slotProps: slotProps,\n skipDisabled: skipDisabled,\n \"aria-label\": translations.selectViewText(timeView)\n }, timeView))\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MultiSectionDigitalClock.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker views and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * If `true`, the picker views and text field are read-only.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid time using the validation props, except callbacks such as `shouldDisableTime`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overrideable component slots.\n * @default {}\n */\n slots: 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 * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Available views.\n * @default ['hours', 'minutes']\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired)\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersDayUtilityClass(slot) {\n return generateUtilityClass('MuiPickersDay', slot);\n}\nexport const pickersDayClasses = generateUtilityClasses('MuiPickersDay', ['root', 'dayWithMargin', 'dayOutsideMonth', 'hiddenDaySpacingFiller', 'today', 'selected', 'disabled']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"day\", \"disabled\", \"disableHighlightToday\", \"disableMargin\", \"hidden\", \"isAnimating\", \"onClick\", \"onDaySelect\", \"onFocus\", \"onBlur\", \"onKeyDown\", \"onMouseDown\", \"onMouseEnter\", \"outsideCurrentMonth\", \"selected\", \"showDaysOutsideCurrentMonth\", \"children\", \"today\", \"isFirstVisibleCell\", \"isLastVisibleCell\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport ButtonBase from '@mui/material/ButtonBase';\nimport { unstable_useEnhancedEffect as useEnhancedEffect, unstable_composeClasses as composeClasses, unstable_useForkRef as useForkRef } from '@mui/utils';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { DAY_SIZE, DAY_MARGIN } from \"../internals/constants/dimensions.js\";\nimport { getPickersDayUtilityClass, pickersDayClasses } from \"./pickersDayClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n selected,\n disableMargin,\n disableHighlightToday,\n today,\n disabled,\n outsideCurrentMonth,\n showDaysOutsideCurrentMonth,\n classes\n } = ownerState;\n const isHiddenDaySpacingFiller = outsideCurrentMonth && !showDaysOutsideCurrentMonth;\n const slots = {\n root: ['root', selected && !isHiddenDaySpacingFiller && 'selected', disabled && 'disabled', !disableMargin && 'dayWithMargin', !disableHighlightToday && today && 'today', outsideCurrentMonth && showDaysOutsideCurrentMonth && 'dayOutsideMonth', isHiddenDaySpacingFiller && 'hiddenDaySpacingFiller'],\n hiddenDaySpacingFiller: ['hiddenDaySpacingFiller']\n };\n return composeClasses(slots, getPickersDayUtilityClass, classes);\n};\nconst styleArg = ({\n theme\n}) => _extends({}, theme.typography.caption, {\n width: DAY_SIZE,\n height: DAY_SIZE,\n borderRadius: '50%',\n padding: 0,\n // explicitly setting to `transparent` to avoid potentially getting impacted by change from the overridden component\n backgroundColor: 'transparent',\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.short\n }),\n color: (theme.vars || theme).palette.text.primary,\n '@media (pointer: fine)': {\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.hoverOpacity)\n }\n },\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity),\n [`&.${pickersDayClasses.selected}`]: {\n willChange: 'background-color',\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n [`&.${pickersDayClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n fontWeight: theme.typography.fontWeightMedium,\n '&:hover': {\n willChange: 'background-color',\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n },\n [`&.${pickersDayClasses.disabled}:not(.${pickersDayClasses.selected})`]: {\n color: (theme.vars || theme).palette.text.disabled\n },\n [`&.${pickersDayClasses.disabled}&.${pickersDayClasses.selected}`]: {\n opacity: 0.6\n },\n variants: [{\n props: {\n disableMargin: false\n },\n style: {\n margin: `0 ${DAY_MARGIN}px`\n }\n }, {\n props: {\n outsideCurrentMonth: true,\n showDaysOutsideCurrentMonth: true\n },\n style: {\n color: (theme.vars || theme).palette.text.secondary\n }\n }, {\n props: {\n disableHighlightToday: false,\n today: true\n },\n style: {\n [`&:not(.${pickersDayClasses.selected})`]: {\n border: `1px solid ${(theme.vars || theme).palette.text.secondary}`\n }\n }\n }]\n});\nconst overridesResolver = (props, styles) => {\n const {\n ownerState\n } = props;\n return [styles.root, !ownerState.disableMargin && styles.dayWithMargin, !ownerState.disableHighlightToday && ownerState.today && styles.today, !ownerState.outsideCurrentMonth && ownerState.showDaysOutsideCurrentMonth && styles.dayOutsideMonth, ownerState.outsideCurrentMonth && !ownerState.showDaysOutsideCurrentMonth && styles.hiddenDaySpacingFiller];\n};\nconst PickersDayRoot = styled(ButtonBase, {\n name: 'MuiPickersDay',\n slot: 'Root',\n overridesResolver\n})(styleArg);\nconst PickersDayFiller = styled('div', {\n name: 'MuiPickersDay',\n slot: 'Root',\n overridesResolver\n})(({\n theme\n}) => _extends({}, styleArg({\n theme\n}), {\n // visibility: 'hidden' does not work here as it hides the element from screen readers as well\n opacity: 0,\n pointerEvents: 'none'\n}));\nconst noop = () => {};\nconst PickersDayRaw = /*#__PURE__*/React.forwardRef(function PickersDay(inProps, forwardedRef) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersDay'\n });\n const {\n autoFocus = false,\n className,\n day,\n disabled = false,\n disableHighlightToday = false,\n disableMargin = false,\n isAnimating,\n onClick,\n onDaySelect,\n onFocus = noop,\n onBlur = noop,\n onKeyDown = noop,\n onMouseDown = noop,\n onMouseEnter = noop,\n outsideCurrentMonth,\n selected = false,\n showDaysOutsideCurrentMonth = false,\n children,\n today: isToday = false\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, props, {\n autoFocus,\n disabled,\n disableHighlightToday,\n disableMargin,\n selected,\n showDaysOutsideCurrentMonth,\n today: isToday\n });\n const classes = useUtilityClasses(ownerState);\n const utils = useUtils();\n const ref = React.useRef(null);\n const handleRef = useForkRef(ref, forwardedRef);\n\n // Since this is rendered when a Popper is opened we can't use passive effects.\n // Focusing in passive effects in Popper causes scroll jump.\n useEnhancedEffect(() => {\n if (autoFocus && !disabled && !isAnimating && !outsideCurrentMonth) {\n // ref.current being null would be a bug in MUI\n ref.current.focus();\n }\n }, [autoFocus, disabled, isAnimating, outsideCurrentMonth]);\n\n // For a day outside the current month, move the focus from mouseDown to mouseUp\n // Goal: have the onClick ends before sliding to the new month\n const handleMouseDown = event => {\n onMouseDown(event);\n if (outsideCurrentMonth) {\n event.preventDefault();\n }\n };\n const handleClick = event => {\n if (!disabled) {\n onDaySelect(day);\n }\n if (outsideCurrentMonth) {\n event.currentTarget.focus();\n }\n if (onClick) {\n onClick(event);\n }\n };\n if (outsideCurrentMonth && !showDaysOutsideCurrentMonth) {\n return /*#__PURE__*/_jsx(PickersDayFiller, {\n className: clsx(classes.root, classes.hiddenDaySpacingFiller, className),\n ownerState: ownerState,\n role: other.role\n });\n }\n return /*#__PURE__*/_jsx(PickersDayRoot, _extends({\n className: clsx(classes.root, className),\n ref: handleRef,\n centerRipple: true,\n disabled: disabled,\n tabIndex: selected ? 0 : -1,\n onKeyDown: event => onKeyDown(event, day),\n onFocus: event => onFocus(event, day),\n onBlur: event => onBlur(event, day),\n onMouseEnter: event => onMouseEnter(event, day),\n onClick: handleClick,\n onMouseDown: handleMouseDown\n }, other, {\n ownerState: ownerState,\n children: !children ? utils.format(day, 'dayOfMonth') : children\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersDayRaw.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 * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focusVisible: PropTypes.func.isRequired\n })\n })]),\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * The date to show.\n */\n day: PropTypes.object.isRequired,\n /**\n * If `true`, renders as disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, days are rendering without margin. Useful for displaying linked range of days.\n * @default false\n */\n disableMargin: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n isAnimating: PropTypes.bool,\n /**\n * If `true`, day is the first visible cell of the month.\n * Either the first day of the month or the first day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isFirstVisibleCell: PropTypes.bool.isRequired,\n /**\n * If `true`, day is the last visible cell of the month.\n * Either the last day of the month or the last day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isLastVisibleCell: PropTypes.bool.isRequired,\n onBlur: PropTypes.func,\n onDaySelect: PropTypes.func.isRequired,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n onKeyDown: PropTypes.func,\n onMouseEnter: PropTypes.func,\n /**\n * If `true`, day is outside of month and will be hidden.\n */\n outsideCurrentMonth: PropTypes.bool.isRequired,\n /**\n * If `true`, renders as selected.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\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 * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * If `true`, renders as today date.\n * @default false\n */\n today: PropTypes.bool,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })])\n} : void 0;\n\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * API:\n *\n * - [PickersDay API](https://mui.com/x/api/date-pickers/pickers-day/)\n */\nexport const PickersDay = /*#__PURE__*/React.memo(PickersDayRaw);","import { applyDefaultDate } from \"../internals/utils/date-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nexport const validateDate = ({\n props,\n value,\n timezone,\n adapter\n}) => {\n if (value === null) {\n return null;\n }\n const {\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n disablePast,\n disableFuture\n } = props;\n const now = adapter.utils.date(undefined, timezone);\n const minDate = applyDefaultDate(adapter.utils, props.minDate, adapter.defaultDates.minDate);\n const maxDate = applyDefaultDate(adapter.utils, props.maxDate, adapter.defaultDates.maxDate);\n switch (true) {\n case !adapter.utils.isValid(value):\n return 'invalidDate';\n case Boolean(shouldDisableDate && shouldDisableDate(value)):\n return 'shouldDisableDate';\n case Boolean(shouldDisableMonth && shouldDisableMonth(value)):\n return 'shouldDisableMonth';\n case Boolean(shouldDisableYear && shouldDisableYear(value)):\n return 'shouldDisableYear';\n case Boolean(disableFuture && adapter.utils.isAfterDay(value, now)):\n return 'disableFuture';\n case Boolean(disablePast && adapter.utils.isBeforeDay(value, now)):\n return 'disablePast';\n case Boolean(minDate && adapter.utils.isBeforeDay(value, minDate)):\n return 'minDate';\n case Boolean(maxDate && adapter.utils.isAfterDay(value, maxDate)):\n return 'maxDate';\n default:\n return null;\n }\n};\nvalidateDate.valueManager = singleItemValueManager;","import { createIsAfterIgnoreDatePart } from \"../internals/utils/time-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nexport const validateTime = ({\n adapter,\n value,\n timezone,\n props\n}) => {\n if (value === null) {\n return null;\n }\n const {\n minTime,\n maxTime,\n minutesStep,\n shouldDisableTime,\n disableIgnoringDatePartForTimeValidation = false,\n disablePast,\n disableFuture\n } = props;\n const now = adapter.utils.date(undefined, timezone);\n const isAfter = createIsAfterIgnoreDatePart(disableIgnoringDatePartForTimeValidation, adapter.utils);\n switch (true) {\n case !adapter.utils.isValid(value):\n return 'invalidDate';\n case Boolean(minTime && isAfter(minTime, value)):\n return 'minTime';\n case Boolean(maxTime && isAfter(value, maxTime)):\n return 'maxTime';\n case Boolean(disableFuture && adapter.utils.isAfter(value, now)):\n return 'disableFuture';\n case Boolean(disablePast && adapter.utils.isBefore(value, now)):\n return 'disablePast';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'hours')):\n return 'shouldDisableTime-hours';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'minutes')):\n return 'shouldDisableTime-minutes';\n case Boolean(shouldDisableTime && shouldDisableTime(value, 'seconds')):\n return 'shouldDisableTime-seconds';\n case Boolean(minutesStep && adapter.utils.getMinutes(value) % minutesStep !== 0):\n return 'minutesStep';\n default:\n return null;\n }\n};\nvalidateTime.valueManager = singleItemValueManager;","export const DATE_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minDate', 'maxDate', 'shouldDisableDate', 'shouldDisableMonth', 'shouldDisableYear'];\nexport const TIME_VALIDATION_PROP_NAMES = ['disablePast', 'disableFuture', 'minTime', 'maxTime', 'shouldDisableTime', 'minutesStep', 'ampm', 'disableIgnoringDatePartForTimeValidation'];\nexport const DATE_TIME_VALIDATION_PROP_NAMES = ['minDateTime', 'maxDateTime'];\nconst VALIDATION_PROP_NAMES = [...DATE_VALIDATION_PROP_NAMES, ...TIME_VALIDATION_PROP_NAMES, ...DATE_TIME_VALIDATION_PROP_NAMES];\n/**\n * Extract the validation props for the props received by a component.\n * Limit the risk of forgetting some of them and reduce the bundle size.\n */\nexport const extractValidationProps = props => VALIDATION_PROP_NAMES.reduce((extractedProps, propName) => {\n if (props.hasOwnProperty(propName)) {\n extractedProps[propName] = props[propName];\n }\n return extractedProps;\n}, {});","'use client';\n\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\n/**\n * Utility hook to check if a given value is valid based on the provided validation props.\n * @template TDate\n * @template TValue The value type. It will be either the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {UseValidationOptions} options The options to configure the hook.\n * @param {TValue} options.value The value to validate.\n * @param {PickersTimezone} options.timezone The timezone to use for the validation.\n * @param {Validator} options.validator The validator function to use.\n * @param {TValidationProps} options.props The validation props, they differ depending on the component.\n * @param {(error: TError, value: TValue) => void} options.onError Callback fired when the error associated with the current value changes.\n */\nexport function useValidation(options) {\n const {\n props,\n validator,\n value,\n timezone,\n onError\n } = options;\n const adapter = useLocalizationContext();\n const previousValidationErrorRef = React.useRef(validator.valueManager.defaultErrorState);\n const validationError = validator({\n adapter,\n value,\n timezone,\n props\n });\n const hasValidationError = validator.valueManager.hasError(validationError);\n React.useEffect(() => {\n if (onError && !validator.valueManager.isSameError(validationError, previousValidationErrorRef.current)) {\n onError(validationError, value);\n }\n previousValidationErrorRef.current = validationError;\n }, [validator, onError, validationError, value]);\n const getValidationErrorForNewValue = useEventCallback(newValue => {\n return validator({\n adapter,\n value: newValue,\n timezone,\n props\n });\n });\n return {\n validationError,\n hasValidationError,\n getValidationErrorForNewValue\n };\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { applyLocalizedDigits, cleanLeadingZeros, doesSectionFormatHaveLeadingZeros, getDateSectionConfigFromFormatToken, removeLocalizedDigits } from \"./useField.utils.js\";\nconst expandFormat = ({\n utils,\n format\n}) => {\n // Expand the provided format\n let formatExpansionOverflow = 10;\n let prevFormat = format;\n let nextFormat = utils.expandFormat(format);\n while (nextFormat !== prevFormat) {\n prevFormat = nextFormat;\n nextFormat = utils.expandFormat(prevFormat);\n formatExpansionOverflow -= 1;\n if (formatExpansionOverflow < 0) {\n throw new Error('MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.');\n }\n }\n return nextFormat;\n};\nconst getEscapedPartsFromFormat = ({\n utils,\n expandedFormat\n}) => {\n const escapedParts = [];\n const {\n start: startChar,\n end: endChar\n } = utils.escapedCharacters;\n const regExp = new RegExp(`(\\\\${startChar}[^\\\\${endChar}]*\\\\${endChar})+`, 'g');\n let match = null;\n // eslint-disable-next-line no-cond-assign\n while (match = regExp.exec(expandedFormat)) {\n escapedParts.push({\n start: match.index,\n end: regExp.lastIndex - 1\n });\n }\n return escapedParts;\n};\nconst getSectionPlaceholder = (utils, localeText, sectionConfig, sectionFormat) => {\n switch (sectionConfig.type) {\n case 'year':\n {\n return localeText.fieldYearPlaceholder({\n digitAmount: utils.formatByString(utils.date(undefined, 'default'), sectionFormat).length,\n format: sectionFormat\n });\n }\n case 'month':\n {\n return localeText.fieldMonthPlaceholder({\n contentType: sectionConfig.contentType,\n format: sectionFormat\n });\n }\n case 'day':\n {\n return localeText.fieldDayPlaceholder({\n format: sectionFormat\n });\n }\n case 'weekDay':\n {\n return localeText.fieldWeekDayPlaceholder({\n contentType: sectionConfig.contentType,\n format: sectionFormat\n });\n }\n case 'hours':\n {\n return localeText.fieldHoursPlaceholder({\n format: sectionFormat\n });\n }\n case 'minutes':\n {\n return localeText.fieldMinutesPlaceholder({\n format: sectionFormat\n });\n }\n case 'seconds':\n {\n return localeText.fieldSecondsPlaceholder({\n format: sectionFormat\n });\n }\n case 'meridiem':\n {\n return localeText.fieldMeridiemPlaceholder({\n format: sectionFormat\n });\n }\n default:\n {\n return sectionFormat;\n }\n }\n};\nconst createSection = ({\n utils,\n date,\n shouldRespectLeadingZeros,\n localeText,\n localizedDigits,\n now,\n token,\n startSeparator\n}) => {\n if (token === '') {\n throw new Error('MUI X: Should not call `commitToken` with an empty token');\n }\n const sectionConfig = getDateSectionConfigFromFormatToken(utils, token);\n const hasLeadingZerosInFormat = doesSectionFormatHaveLeadingZeros(utils, sectionConfig.contentType, sectionConfig.type, token);\n const hasLeadingZerosInInput = shouldRespectLeadingZeros ? hasLeadingZerosInFormat : sectionConfig.contentType === 'digit';\n const isValidDate = date != null && utils.isValid(date);\n let sectionValue = isValidDate ? utils.formatByString(date, token) : '';\n let maxLength = null;\n if (hasLeadingZerosInInput) {\n if (hasLeadingZerosInFormat) {\n maxLength = sectionValue === '' ? utils.formatByString(now, token).length : sectionValue.length;\n } else {\n if (sectionConfig.maxLength == null) {\n throw new Error(`MUI X: The token ${token} should have a 'maxDigitNumber' property on it's adapter`);\n }\n maxLength = sectionConfig.maxLength;\n if (isValidDate) {\n sectionValue = applyLocalizedDigits(cleanLeadingZeros(removeLocalizedDigits(sectionValue, localizedDigits), maxLength), localizedDigits);\n }\n }\n }\n return _extends({}, sectionConfig, {\n format: token,\n maxLength,\n value: sectionValue,\n placeholder: getSectionPlaceholder(utils, localeText, sectionConfig, token),\n hasLeadingZerosInFormat,\n hasLeadingZerosInInput,\n startSeparator,\n endSeparator: '',\n modified: false\n });\n};\nconst buildSections = params => {\n const {\n utils,\n expandedFormat,\n escapedParts\n } = params;\n const now = utils.date(undefined);\n const sections = [];\n let startSeparator = '';\n\n // This RegExp tests if the beginning of a string corresponds to a supported token\n const validTokens = Object.keys(utils.formatTokenMap).sort((a, b) => b.length - a.length); // Sort to put longest word first\n\n const regExpFirstWordInFormat = /^([a-zA-Z]+)/;\n const regExpWordOnlyComposedOfTokens = new RegExp(`^(${validTokens.join('|')})*$`);\n const regExpFirstTokenInWord = new RegExp(`^(${validTokens.join('|')})`);\n const getEscapedPartOfCurrentChar = i => escapedParts.find(escapeIndex => escapeIndex.start <= i && escapeIndex.end >= i);\n let i = 0;\n while (i < expandedFormat.length) {\n const escapedPartOfCurrentChar = getEscapedPartOfCurrentChar(i);\n const isEscapedChar = escapedPartOfCurrentChar != null;\n const firstWordInFormat = regExpFirstWordInFormat.exec(expandedFormat.slice(i))?.[1];\n\n // The first word in the format is only composed of tokens.\n // We extract those tokens to create a new sections.\n if (!isEscapedChar && firstWordInFormat != null && regExpWordOnlyComposedOfTokens.test(firstWordInFormat)) {\n let word = firstWordInFormat;\n while (word.length > 0) {\n const firstWord = regExpFirstTokenInWord.exec(word)[1];\n word = word.slice(firstWord.length);\n sections.push(createSection(_extends({}, params, {\n now,\n token: firstWord,\n startSeparator\n })));\n startSeparator = '';\n }\n i += firstWordInFormat.length;\n }\n // The remaining format does not start with a token,\n // We take the first character and add it to the current section's end separator.\n else {\n const char = expandedFormat[i];\n\n // If we are on the opening or closing character of an escaped part of the format,\n // Then we ignore this character.\n const isEscapeBoundary = isEscapedChar && escapedPartOfCurrentChar?.start === i || escapedPartOfCurrentChar?.end === i;\n if (!isEscapeBoundary) {\n if (sections.length === 0) {\n startSeparator += char;\n } else {\n sections[sections.length - 1].endSeparator += char;\n }\n }\n i += 1;\n }\n }\n if (sections.length === 0 && startSeparator.length > 0) {\n sections.push({\n type: 'empty',\n contentType: 'letter',\n maxLength: null,\n format: '',\n value: '',\n placeholder: '',\n hasLeadingZerosInFormat: false,\n hasLeadingZerosInInput: false,\n startSeparator,\n endSeparator: '',\n modified: false\n });\n }\n return sections;\n};\nconst postProcessSections = ({\n isRtl,\n formatDensity,\n sections\n}) => {\n return sections.map(section => {\n const cleanSeparator = separator => {\n let cleanedSeparator = separator;\n if (isRtl && cleanedSeparator !== null && cleanedSeparator.includes(' ')) {\n cleanedSeparator = `\\u2069${cleanedSeparator}\\u2066`;\n }\n if (formatDensity === 'spacious' && ['/', '.', '-'].includes(cleanedSeparator)) {\n cleanedSeparator = ` ${cleanedSeparator} `;\n }\n return cleanedSeparator;\n };\n section.startSeparator = cleanSeparator(section.startSeparator);\n section.endSeparator = cleanSeparator(section.endSeparator);\n return section;\n });\n};\nexport const buildSectionsFromFormat = params => {\n let expandedFormat = expandFormat(params);\n if (params.isRtl && params.enableAccessibleFieldDOMStructure) {\n expandedFormat = expandedFormat.split(' ').reverse().join(' ');\n }\n const escapedParts = getEscapedPartsFromFormat(_extends({}, params, {\n expandedFormat\n }));\n const sections = buildSections(_extends({}, params, {\n expandedFormat,\n escapedParts\n }));\n return postProcessSections(_extends({}, params, {\n sections\n }));\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useControlled from '@mui/utils/useControlled';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { usePickersTranslations } from \"../../../hooks/usePickersTranslations.js\";\nimport { useUtils, useLocalizationContext } from \"../useUtils.js\";\nimport { mergeDateIntoReferenceDate, getSectionsBoundaries, validateSections, getDateFromDateSections, parseSelectedSections, getLocalizedDigits } from \"./useField.utils.js\";\nimport { buildSectionsFromFormat } from \"./buildSectionsFromFormat.js\";\nimport { useValueWithTimezone } from \"../useValueWithTimezone.js\";\nimport { getSectionTypeGranularity } from \"../../utils/getDefaultReferenceDate.js\";\nexport const useFieldState = params => {\n const utils = useUtils();\n const translations = usePickersTranslations();\n const adapter = useLocalizationContext();\n const isRtl = useRtl();\n const {\n valueManager,\n fieldValueManager,\n valueType,\n validator,\n internalProps,\n internalProps: {\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n onChange,\n format,\n formatDensity = 'dense',\n selectedSections: selectedSectionsProp,\n onSelectedSectionsChange,\n shouldRespectLeadingZeros = false,\n timezone: timezoneProp,\n enableAccessibleFieldDOMStructure = false\n }\n } = params;\n const {\n timezone,\n value: valueFromTheOutside,\n handleValueChange\n } = useValueWithTimezone({\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager\n });\n const localizedDigits = React.useMemo(() => getLocalizedDigits(utils), [utils]);\n const sectionsValueBoundaries = React.useMemo(() => getSectionsBoundaries(utils, localizedDigits, timezone), [utils, localizedDigits, timezone]);\n const getSectionsFromValue = React.useCallback((value, fallbackSections = null) => fieldValueManager.getSectionsFromValue(utils, value, fallbackSections, date => buildSectionsFromFormat({\n utils,\n localeText: translations,\n localizedDigits,\n format,\n date,\n formatDensity,\n shouldRespectLeadingZeros,\n enableAccessibleFieldDOMStructure,\n isRtl\n })), [fieldValueManager, format, translations, localizedDigits, isRtl, shouldRespectLeadingZeros, utils, formatDensity, enableAccessibleFieldDOMStructure]);\n const [state, setState] = React.useState(() => {\n const sections = getSectionsFromValue(valueFromTheOutside);\n validateSections(sections, valueType);\n const stateWithoutReferenceDate = {\n sections,\n value: valueFromTheOutside,\n referenceValue: valueManager.emptyValue,\n tempValueStrAndroid: null\n };\n const granularity = getSectionTypeGranularity(sections);\n const referenceValue = valueManager.getInitialReferenceValue({\n referenceDate: referenceDateProp,\n value: valueFromTheOutside,\n utils,\n props: internalProps,\n granularity,\n timezone\n });\n return _extends({}, stateWithoutReferenceDate, {\n referenceValue\n });\n });\n const [selectedSections, innerSetSelectedSections] = useControlled({\n controlled: selectedSectionsProp,\n default: null,\n name: 'useField',\n state: 'selectedSections'\n });\n const setSelectedSections = newSelectedSections => {\n innerSetSelectedSections(newSelectedSections);\n onSelectedSectionsChange?.(newSelectedSections);\n };\n const parsedSelectedSections = React.useMemo(() => parseSelectedSections(selectedSections, state.sections), [selectedSections, state.sections]);\n const activeSectionIndex = parsedSelectedSections === 'all' ? 0 : parsedSelectedSections;\n const publishValue = ({\n value,\n referenceValue,\n sections\n }) => {\n setState(prevState => _extends({}, prevState, {\n sections,\n value,\n referenceValue,\n tempValueStrAndroid: null\n }));\n if (valueManager.areValuesEqual(utils, state.value, value)) {\n return;\n }\n const context = {\n validationError: validator({\n adapter,\n value,\n timezone,\n props: internalProps\n })\n };\n handleValueChange(value, context);\n };\n const setSectionValue = (sectionIndex, newSectionValue) => {\n const newSections = [...state.sections];\n newSections[sectionIndex] = _extends({}, newSections[sectionIndex], {\n value: newSectionValue,\n modified: true\n });\n return newSections;\n };\n const clearValue = () => {\n publishValue({\n value: valueManager.emptyValue,\n referenceValue: state.referenceValue,\n sections: getSectionsFromValue(valueManager.emptyValue)\n });\n };\n const clearActiveSection = () => {\n if (activeSectionIndex == null) {\n return;\n }\n const activeSection = state.sections[activeSectionIndex];\n const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);\n const nonEmptySectionCountBefore = activeDateManager.getSections(state.sections).filter(section => section.value !== '').length;\n const hasNoOtherNonEmptySections = nonEmptySectionCountBefore === (activeSection.value === '' ? 0 : 1);\n const newSections = setSectionValue(activeSectionIndex, '');\n const newActiveDate = hasNoOtherNonEmptySections ? null : utils.getInvalidDate();\n const newValues = activeDateManager.getNewValuesFromNewActiveDate(newActiveDate);\n publishValue(_extends({}, newValues, {\n sections: newSections\n }));\n };\n const updateValueFromValueStr = valueStr => {\n const parseDateStr = (dateStr, referenceDate) => {\n const date = utils.parse(dateStr, format);\n if (date == null || !utils.isValid(date)) {\n return null;\n }\n const sections = buildSectionsFromFormat({\n utils,\n localeText: translations,\n localizedDigits,\n format,\n date,\n formatDensity,\n shouldRespectLeadingZeros,\n enableAccessibleFieldDOMStructure,\n isRtl\n });\n return mergeDateIntoReferenceDate(utils, date, sections, referenceDate, false);\n };\n const newValue = fieldValueManager.parseValueStr(valueStr, state.referenceValue, parseDateStr);\n const newReferenceValue = fieldValueManager.updateReferenceValue(utils, newValue, state.referenceValue);\n publishValue({\n value: newValue,\n referenceValue: newReferenceValue,\n sections: getSectionsFromValue(newValue, state.sections)\n });\n };\n const updateSectionValue = ({\n activeSection,\n newSectionValue,\n shouldGoToNextSection\n }) => {\n /**\n * 1. Decide which section should be focused\n */\n if (shouldGoToNextSection && activeSectionIndex < state.sections.length - 1) {\n setSelectedSections(activeSectionIndex + 1);\n }\n\n /**\n * 2. Try to build a valid date from the new section value\n */\n const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);\n const newSections = setSectionValue(activeSectionIndex, newSectionValue);\n const newActiveDateSections = activeDateManager.getSections(newSections);\n const newActiveDate = getDateFromDateSections(utils, newActiveDateSections, localizedDigits);\n let values;\n let shouldPublish;\n\n /**\n * If the new date is valid,\n * Then we merge the value of the modified sections into the reference date.\n * This makes sure that we don't lose some information of the initial date (like the time on a date field).\n */\n if (newActiveDate != null && utils.isValid(newActiveDate)) {\n const mergedDate = mergeDateIntoReferenceDate(utils, newActiveDate, newActiveDateSections, activeDateManager.referenceDate, true);\n values = activeDateManager.getNewValuesFromNewActiveDate(mergedDate);\n shouldPublish = true;\n } else {\n values = activeDateManager.getNewValuesFromNewActiveDate(newActiveDate);\n shouldPublish = (newActiveDate != null && !utils.isValid(newActiveDate)) !== (activeDateManager.date != null && !utils.isValid(activeDateManager.date));\n }\n\n /**\n * Publish or update the internal state with the new value and sections.\n */\n if (shouldPublish) {\n return publishValue(_extends({}, values, {\n sections: newSections\n }));\n }\n return setState(prevState => _extends({}, prevState, values, {\n sections: newSections,\n tempValueStrAndroid: null\n }));\n };\n const setTempAndroidValueStr = tempValueStrAndroid => setState(prev => _extends({}, prev, {\n tempValueStrAndroid\n }));\n React.useEffect(() => {\n const sections = getSectionsFromValue(state.value);\n validateSections(sections, valueType);\n setState(prevState => _extends({}, prevState, {\n sections\n }));\n }, [format, utils.locale, isRtl]); // eslint-disable-line react-hooks/exhaustive-deps\n\n React.useEffect(() => {\n let shouldUpdate;\n if (!valueManager.areValuesEqual(utils, state.value, valueFromTheOutside)) {\n shouldUpdate = true;\n } else {\n shouldUpdate = valueManager.getTimezone(utils, state.value) !== valueManager.getTimezone(utils, valueFromTheOutside);\n }\n if (shouldUpdate) {\n setState(prevState => _extends({}, prevState, {\n value: valueFromTheOutside,\n referenceValue: fieldValueManager.updateReferenceValue(utils, valueFromTheOutside, prevState.referenceValue),\n sections: getSectionsFromValue(valueFromTheOutside)\n }));\n }\n }, [valueFromTheOutside]); // eslint-disable-line react-hooks/exhaustive-deps\n\n return {\n state,\n activeSectionIndex,\n parsedSelectedSections,\n setSelectedSections,\n clearValue,\n clearActiveSection,\n updateSectionValue,\n updateValueFromValueStr,\n setTempAndroidValueStr,\n getSectionsFromValue,\n sectionsValueBoundaries,\n localizedDigits,\n timezone\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useUtils } from \"../useUtils.js\";\nimport { changeSectionValueFormat, cleanDigitSectionValue, doesSectionFormatHaveLeadingZeros, getDateSectionConfigFromFormatToken, getDaysInWeekStr, getLetterEditingOptions, applyLocalizedDigits, removeLocalizedDigits, isStringNumber } from \"./useField.utils.js\";\n\n/**\n * The letter editing and the numeric editing each define a `CharacterEditingApplier`.\n * This function decides what the new section value should be and if the focus should switch to the next section.\n *\n * If it returns `null`, then the section value is not updated and the focus does not move.\n */\n\n/**\n * Function called by `applyQuery` which decides:\n * - what is the new section value ?\n * - should the query used to get this value be stored for the next key press ?\n *\n * If it returns `{ sectionValue: string; shouldGoToNextSection: boolean }`,\n * Then we store the query and update the section with the new value.\n *\n * If it returns `{ saveQuery: true` },\n * Then we store the query and don't update the section.\n *\n * If it returns `{ saveQuery: false },\n * Then we do nothing.\n */\n\nconst QUERY_LIFE_DURATION_MS = 5000;\nconst isQueryResponseWithoutValue = response => response.saveQuery != null;\n\n/**\n * Update the active section value when the user pressed a key that is not a navigation key (arrow key for example).\n * This hook has two main editing behaviors\n *\n * 1. The numeric editing when the user presses a digit\n * 2. The letter editing when the user presses another key\n */\nexport const useFieldCharacterEditing = ({\n sections,\n updateSectionValue,\n sectionsValueBoundaries,\n localizedDigits,\n setTempAndroidValueStr,\n timezone\n}) => {\n const utils = useUtils();\n const [query, setQuery] = React.useState(null);\n const resetQuery = useEventCallback(() => setQuery(null));\n React.useEffect(() => {\n if (query != null && sections[query.sectionIndex]?.type !== query.sectionType) {\n resetQuery();\n }\n }, [sections, query, resetQuery]);\n React.useEffect(() => {\n if (query != null) {\n const timeout = setTimeout(() => resetQuery(), QUERY_LIFE_DURATION_MS);\n return () => {\n clearTimeout(timeout);\n };\n }\n return () => {};\n }, [query, resetQuery]);\n const applyQuery = ({\n keyPressed,\n sectionIndex\n }, getFirstSectionValueMatchingWithQuery, isValidQueryValue) => {\n const cleanKeyPressed = keyPressed.toLowerCase();\n const activeSection = sections[sectionIndex];\n\n // The current query targets the section being editing\n // We can try to concatenate the value\n if (query != null && (!isValidQueryValue || isValidQueryValue(query.value)) && query.sectionIndex === sectionIndex) {\n const concatenatedQueryValue = `${query.value}${cleanKeyPressed}`;\n const queryResponse = getFirstSectionValueMatchingWithQuery(concatenatedQueryValue, activeSection);\n if (!isQueryResponseWithoutValue(queryResponse)) {\n setQuery({\n sectionIndex,\n value: concatenatedQueryValue,\n sectionType: activeSection.type\n });\n return queryResponse;\n }\n }\n const queryResponse = getFirstSectionValueMatchingWithQuery(cleanKeyPressed, activeSection);\n if (isQueryResponseWithoutValue(queryResponse) && !queryResponse.saveQuery) {\n resetQuery();\n return null;\n }\n setQuery({\n sectionIndex,\n value: cleanKeyPressed,\n sectionType: activeSection.type\n });\n if (isQueryResponseWithoutValue(queryResponse)) {\n return null;\n }\n return queryResponse;\n };\n const applyLetterEditing = params => {\n const findMatchingOptions = (format, options, queryValue) => {\n const matchingValues = options.filter(option => option.toLowerCase().startsWith(queryValue));\n if (matchingValues.length === 0) {\n return {\n saveQuery: false\n };\n }\n return {\n sectionValue: matchingValues[0],\n shouldGoToNextSection: matchingValues.length === 1\n };\n };\n const testQueryOnFormatAndFallbackFormat = (queryValue, activeSection, fallbackFormat, formatFallbackValue) => {\n const getOptions = format => getLetterEditingOptions(utils, timezone, activeSection.type, format);\n if (activeSection.contentType === 'letter') {\n return findMatchingOptions(activeSection.format, getOptions(activeSection.format), queryValue);\n }\n\n // When editing a digit-format month / weekDay and the user presses a letter,\n // We can support the letter editing by using the letter-format month / weekDay and re-formatting the result.\n // We just have to make sure that the default month / weekDay format is a letter format,\n if (fallbackFormat && formatFallbackValue != null && getDateSectionConfigFromFormatToken(utils, fallbackFormat).contentType === 'letter') {\n const fallbackOptions = getOptions(fallbackFormat);\n const response = findMatchingOptions(fallbackFormat, fallbackOptions, queryValue);\n if (isQueryResponseWithoutValue(response)) {\n return {\n saveQuery: false\n };\n }\n return _extends({}, response, {\n sectionValue: formatFallbackValue(response.sectionValue, fallbackOptions)\n });\n }\n return {\n saveQuery: false\n };\n };\n const getFirstSectionValueMatchingWithQuery = (queryValue, activeSection) => {\n switch (activeSection.type) {\n case 'month':\n {\n const formatFallbackValue = fallbackValue => changeSectionValueFormat(utils, fallbackValue, utils.formats.month, activeSection.format);\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection, utils.formats.month, formatFallbackValue);\n }\n case 'weekDay':\n {\n const formatFallbackValue = (fallbackValue, fallbackOptions) => fallbackOptions.indexOf(fallbackValue).toString();\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection, utils.formats.weekday, formatFallbackValue);\n }\n case 'meridiem':\n {\n return testQueryOnFormatAndFallbackFormat(queryValue, activeSection);\n }\n default:\n {\n return {\n saveQuery: false\n };\n }\n }\n };\n return applyQuery(params, getFirstSectionValueMatchingWithQuery);\n };\n const applyNumericEditing = params => {\n const getNewSectionValue = (queryValue, section) => {\n const cleanQueryValue = removeLocalizedDigits(queryValue, localizedDigits);\n const queryValueNumber = Number(cleanQueryValue);\n const sectionBoundaries = sectionsValueBoundaries[section.type]({\n currentDate: null,\n format: section.format,\n contentType: section.contentType\n });\n if (queryValueNumber > sectionBoundaries.maximum) {\n return {\n saveQuery: false\n };\n }\n\n // If the user types `0` on a month section,\n // It is below the minimum, but we want to store the `0` in the query,\n // So that when he pressed `1`, it will store `01` and move to the next section.\n if (queryValueNumber < sectionBoundaries.minimum) {\n return {\n saveQuery: true\n };\n }\n const shouldGoToNextSection = queryValueNumber * 10 > sectionBoundaries.maximum || cleanQueryValue.length === sectionBoundaries.maximum.toString().length;\n const newSectionValue = cleanDigitSectionValue(utils, queryValueNumber, sectionBoundaries, localizedDigits, section);\n return {\n sectionValue: newSectionValue,\n shouldGoToNextSection\n };\n };\n const getFirstSectionValueMatchingWithQuery = (queryValue, activeSection) => {\n if (activeSection.contentType === 'digit' || activeSection.contentType === 'digit-with-letter') {\n return getNewSectionValue(queryValue, activeSection);\n }\n\n // When editing a letter-format month and the user presses a digit,\n // We can support the numeric editing by using the digit-format month and re-formatting the result.\n if (activeSection.type === 'month') {\n const hasLeadingZerosInFormat = doesSectionFormatHaveLeadingZeros(utils, 'digit', 'month', 'MM');\n const response = getNewSectionValue(queryValue, {\n type: activeSection.type,\n format: 'MM',\n hasLeadingZerosInFormat,\n hasLeadingZerosInInput: true,\n contentType: 'digit',\n maxLength: 2\n });\n if (isQueryResponseWithoutValue(response)) {\n return response;\n }\n const formattedValue = changeSectionValueFormat(utils, response.sectionValue, 'MM', activeSection.format);\n return _extends({}, response, {\n sectionValue: formattedValue\n });\n }\n\n // When editing a letter-format weekDay and the user presses a digit,\n // We can support the numeric editing by returning the nth day in the week day array.\n if (activeSection.type === 'weekDay') {\n const response = getNewSectionValue(queryValue, activeSection);\n if (isQueryResponseWithoutValue(response)) {\n return response;\n }\n const formattedValue = getDaysInWeekStr(utils, activeSection.format)[Number(response.sectionValue) - 1];\n return _extends({}, response, {\n sectionValue: formattedValue\n });\n }\n return {\n saveQuery: false\n };\n };\n return applyQuery(params, getFirstSectionValueMatchingWithQuery, queryValue => isStringNumber(queryValue, localizedDigits));\n };\n const applyCharacterEditing = useEventCallback(params => {\n const activeSection = sections[params.sectionIndex];\n const isNumericEditing = isStringNumber(params.keyPressed, localizedDigits);\n const response = isNumericEditing ? applyNumericEditing(_extends({}, params, {\n keyPressed: applyLocalizedDigits(params.keyPressed, localizedDigits)\n })) : applyLetterEditing(params);\n if (response == null) {\n setTempAndroidValueStr(null);\n return;\n }\n updateSectionValue({\n activeSection,\n newSectionValue: response.sectionValue,\n shouldGoToNextSection: response.shouldGoToNextSection\n });\n });\n return {\n applyCharacterEditing,\n resetCharacterQuery: resetQuery\n };\n};","import * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useId from '@mui/utils/useId';\nimport { getSectionValueNow, getSectionValueText, parseSelectedSections } from \"./useField.utils.js\";\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { usePickersTranslations } from \"../../../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../useUtils.js\";\nexport const useFieldV7TextField = params => {\n const {\n internalProps: {\n disabled,\n readOnly = false\n },\n forwardedProps: {\n sectionListRef: inSectionListRef,\n onBlur,\n onClick,\n onFocus,\n onInput,\n onPaste,\n focused: focusedProp,\n autoFocus = false\n },\n fieldValueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n setSelectedSections,\n parsedSelectedSections,\n state,\n clearActiveSection,\n clearValue,\n updateSectionValue,\n updateValueFromValueStr,\n sectionOrder,\n areAllSectionsEmpty,\n sectionsValueBoundaries\n } = params;\n const sectionListRef = React.useRef(null);\n const handleSectionListRef = useForkRef(inSectionListRef, sectionListRef);\n const translations = usePickersTranslations();\n const utils = useUtils();\n const id = useId();\n const [focused, setFocused] = React.useState(false);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!sectionListRef.current) {\n return;\n }\n const selection = document.getSelection();\n if (!selection) {\n return;\n }\n if (parsedSelectedSections == null) {\n // If the selection contains an element inside the field, we reset it.\n if (selection.rangeCount > 0 && sectionListRef.current.getRoot().contains(selection.getRangeAt(0).startContainer)) {\n selection.removeAllRanges();\n }\n if (focused) {\n sectionListRef.current.getRoot().blur();\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n if (!sectionListRef.current.getRoot().contains(getActiveElement(document))) {\n return;\n }\n const range = new window.Range();\n let target;\n if (parsedSelectedSections === 'all') {\n target = sectionListRef.current.getRoot();\n } else {\n const section = state.sections[parsedSelectedSections];\n if (section.type === 'empty') {\n target = sectionListRef.current.getSectionContainer(parsedSelectedSections);\n } else {\n target = sectionListRef.current.getSectionContent(parsedSelectedSections);\n }\n }\n range.selectNodeContents(target);\n target.focus();\n selection.removeAllRanges();\n selection.addRange(range);\n },\n getActiveSectionIndexFromDOM: () => {\n const activeElement = getActiveElement(document);\n if (!activeElement || !sectionListRef.current || !sectionListRef.current.getRoot().contains(activeElement)) {\n return null;\n }\n return sectionListRef.current.getSectionIndexFromDOMElement(activeElement);\n },\n focusField: (newSelectedSections = 0) => {\n if (!sectionListRef.current) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n setFocused(true);\n sectionListRef.current.getSectionContent(newParsedSelectedSections).focus();\n },\n setSelectedSections: newSelectedSections => {\n if (!sectionListRef.current) {\n return;\n }\n const newParsedSelectedSections = parseSelectedSections(newSelectedSections, state.sections);\n const newActiveSectionIndex = newParsedSelectedSections === 'all' ? 0 : newParsedSelectedSections;\n setFocused(newActiveSectionIndex !== null);\n setSelectedSections(newSelectedSections);\n },\n isFieldFocused: () => {\n const activeElement = getActiveElement(document);\n return !!sectionListRef.current && sectionListRef.current.getRoot().contains(activeElement);\n }\n }), [parsedSelectedSections, setSelectedSections, state.sections, focused]);\n\n /**\n * If a section content has been updated with a value we don't want to keep,\n * Then we need to imperatively revert it (we can't let React do it because the value did not change in his internal representation).\n */\n const revertDOMSectionChange = useEventCallback(sectionIndex => {\n if (!sectionListRef.current) {\n return;\n }\n const section = state.sections[sectionIndex];\n sectionListRef.current.getSectionContent(sectionIndex).innerHTML = section.value || section.placeholder;\n interactions.syncSelectionToDOM();\n });\n const handleContainerClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleContainerClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented() || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n onClick?.(event, ...args);\n if (parsedSelectedSections === 'all') {\n setTimeout(() => {\n const cursorPosition = document.getSelection().getRangeAt(0).startOffset;\n if (cursorPosition === 0) {\n setSelectedSections(sectionOrder.startIndex);\n return;\n }\n let sectionIndex = 0;\n let cursorOnStartOfSection = 0;\n while (cursorOnStartOfSection < cursorPosition && sectionIndex < state.sections.length) {\n const section = state.sections[sectionIndex];\n sectionIndex += 1;\n cursorOnStartOfSection += `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`.length;\n }\n setSelectedSections(sectionIndex - 1);\n });\n } else if (!focused) {\n setFocused(true);\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const hasClickedOnASection = sectionListRef.current.getRoot().contains(event.target);\n if (!hasClickedOnASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n }\n });\n const handleContainerInput = useEventCallback(event => {\n onInput?.(event);\n if (!sectionListRef.current || parsedSelectedSections !== 'all') {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n sectionListRef.current.getRoot().innerHTML = state.sections.map(section => `${section.startSeparator}${section.value || section.placeholder}${section.endSeparator}`).join('');\n interactions.syncSelectionToDOM();\n if (keyPressed.length === 0 || keyPressed.charCodeAt(0) === 10) {\n resetCharacterQuery();\n clearValue();\n setSelectedSections('all');\n } else if (keyPressed.length > 1) {\n updateValueFromValueStr(keyPressed);\n } else {\n applyCharacterEditing({\n keyPressed,\n sectionIndex: 0\n });\n }\n });\n const handleContainerPaste = useEventCallback(event => {\n onPaste?.(event);\n if (readOnly || parsedSelectedSections !== 'all') {\n event.preventDefault();\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n event.preventDefault();\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n if (focused || !sectionListRef.current) {\n return;\n }\n setFocused(true);\n const isFocusInsideASection = sectionListRef.current.getSectionIndexFromDOMElement(getActiveElement(document)) != null;\n if (!isFocusInsideASection) {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setTimeout(() => {\n if (!sectionListRef.current) {\n return;\n }\n const activeElement = getActiveElement(document);\n const shouldBlur = !sectionListRef.current.getRoot().contains(activeElement);\n if (shouldBlur) {\n setFocused(false);\n setSelectedSections(null);\n }\n });\n });\n const getInputContainerClickHandler = useEventCallback(sectionIndex => event => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call to this function is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n setSelectedSections(sectionIndex);\n });\n const handleInputContentMouseUp = useEventCallback(event => {\n // Without this, the browser will remove the selected when clicking inside an already-selected section.\n event.preventDefault();\n });\n const getInputContentFocusHandler = useEventCallback(sectionIndex => () => {\n setSelectedSections(sectionIndex);\n });\n const handleInputContentPaste = useEventCallback(event => {\n // prevent default to avoid the input `onInput` handler being called\n event.preventDefault();\n if (readOnly || disabled || typeof parsedSelectedSections !== 'number') {\n return;\n }\n const activeSection = state.sections[parsedSelectedSections];\n const pastedValue = event.clipboardData.getData('text');\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n }\n // If the pasted value corresponds to a single section, but not the expected type, we skip the modification\n else if (!lettersOnly && !digitsOnly) {\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n }\n });\n const handleInputContentDragOver = useEventCallback(event => {\n event.preventDefault();\n event.dataTransfer.dropEffect = 'none';\n });\n const handleInputContentInput = useEventCallback(event => {\n if (!sectionListRef.current) {\n return;\n }\n const target = event.target;\n const keyPressed = target.textContent ?? '';\n const sectionIndex = sectionListRef.current.getSectionIndexFromDOMElement(target);\n const section = state.sections[sectionIndex];\n if (readOnly || !sectionListRef.current) {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n if (keyPressed.length === 0) {\n if (section.value === '') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n const inputType = event.nativeEvent.inputType;\n if (inputType === 'insertParagraph' || inputType === 'insertLineBreak') {\n revertDOMSectionChange(sectionIndex);\n return;\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex\n });\n\n // The DOM value needs to remain the one React is expecting.\n revertDOMSectionChange(sectionIndex);\n });\n useEnhancedEffect(() => {\n if (!focused || !sectionListRef.current) {\n return;\n }\n if (parsedSelectedSections === 'all') {\n sectionListRef.current.getRoot().focus();\n } else if (typeof parsedSelectedSections === 'number') {\n const domElement = sectionListRef.current.getSectionContent(parsedSelectedSections);\n if (domElement) {\n domElement.focus();\n }\n }\n }, [parsedSelectedSections, focused]);\n const sectionBoundaries = React.useMemo(() => {\n return state.sections.reduce((acc, next) => {\n acc[next.type] = sectionsValueBoundaries[next.type]({\n currentDate: null,\n contentType: next.contentType,\n format: next.format\n });\n return acc;\n }, {});\n }, [sectionsValueBoundaries, state.sections]);\n const isContainerEditable = parsedSelectedSections === 'all';\n const elements = React.useMemo(() => {\n return state.sections.map((section, index) => {\n const isEditable = !isContainerEditable && !disabled && !readOnly;\n return {\n container: {\n 'data-sectionindex': index,\n onClick: getInputContainerClickHandler(index)\n },\n content: {\n tabIndex: isContainerEditable || index > 0 ? -1 : 0,\n contentEditable: !isContainerEditable && !disabled && !readOnly,\n role: 'spinbutton',\n id: `${id}-${section.type}`,\n 'aria-labelledby': `${id}-${section.type}`,\n 'aria-readonly': readOnly,\n 'aria-valuenow': getSectionValueNow(section, utils),\n 'aria-valuemin': sectionBoundaries[section.type].minimum,\n 'aria-valuemax': sectionBoundaries[section.type].maximum,\n 'aria-valuetext': section.value ? getSectionValueText(section, utils) : translations.empty,\n 'aria-label': translations[section.type],\n 'aria-disabled': disabled,\n spellCheck: isEditable ? false : undefined,\n autoCapitalize: isEditable ? 'off' : undefined,\n autoCorrect: isEditable ? 'off' : undefined,\n [parseInt(React.version, 10) >= 17 ? 'enterKeyHint' : 'enterkeyhint']: isEditable ? 'next' : undefined,\n children: section.value || section.placeholder,\n onInput: handleInputContentInput,\n onPaste: handleInputContentPaste,\n onFocus: getInputContentFocusHandler(index),\n onDragOver: handleInputContentDragOver,\n onMouseUp: handleInputContentMouseUp,\n inputMode: section.contentType === 'letter' ? 'text' : 'numeric'\n },\n before: {\n children: section.startSeparator\n },\n after: {\n children: section.endSeparator\n }\n };\n });\n }, [state.sections, getInputContentFocusHandler, handleInputContentPaste, handleInputContentDragOver, handleInputContentInput, getInputContainerClickHandler, handleInputContentMouseUp, disabled, readOnly, isContainerEditable, translations, utils, sectionBoundaries, id]);\n const handleValueStrChange = useEventCallback(event => {\n updateValueFromValueStr(event.target.value);\n });\n const valueStr = React.useMemo(() => areAllSectionsEmpty ? '' : fieldValueManager.getV7HiddenInputValueFromSections(state.sections), [areAllSectionsEmpty, state.sections, fieldValueManager]);\n React.useEffect(() => {\n if (sectionListRef.current == null) {\n throw new Error(['MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`', 'You probably tried to pass a component to the `textField` slot that contains an `` element instead of a `PickersSectionList`.', '', 'If you want to keep using an `` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:', '', '', '', 'Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element'].join('\\n'));\n }\n if (autoFocus && sectionListRef.current) {\n sectionListRef.current.getSectionContent(sectionOrder.startIndex).focus();\n }\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n return {\n interactions,\n returnedValue: {\n // Forwarded\n autoFocus,\n readOnly,\n focused: focusedProp ?? focused,\n sectionListRef: handleSectionListRef,\n onBlur: handleContainerBlur,\n onClick: handleContainerClick,\n onFocus: handleContainerFocus,\n onInput: handleContainerInput,\n onPaste: handleContainerPaste,\n // Additional\n enableAccessibleFieldDOMStructure: true,\n elements,\n // TODO v7: Try to set to undefined when there is a section selected.\n tabIndex: parsedSelectedSections === 0 ? -1 : 0,\n contentEditable: isContainerEditable,\n value: valueStr,\n onChange: handleValueStrChange,\n areAllSectionsEmpty\n }\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { getActiveElement } from \"../../utils/utils.js\";\nimport { getSectionVisibleValue, isAndroid } from \"./useField.utils.js\";\nconst cleanString = dirtyString => dirtyString.replace(/[\\u2066\\u2067\\u2068\\u2069]/g, '');\nexport const addPositionPropertiesToSections = (sections, localizedDigits, isRtl) => {\n let position = 0;\n let positionInInput = isRtl ? 1 : 0;\n const newSections = [];\n for (let i = 0; i < sections.length; i += 1) {\n const section = sections[i];\n const renderedValue = getSectionVisibleValue(section, isRtl ? 'input-rtl' : 'input-ltr', localizedDigits);\n const sectionStr = `${section.startSeparator}${renderedValue}${section.endSeparator}`;\n const sectionLength = cleanString(sectionStr).length;\n const sectionLengthInInput = sectionStr.length;\n\n // The ...InInput values consider the unicode characters but do include them in their indexes\n const cleanedValue = cleanString(renderedValue);\n const startInInput = positionInInput + (cleanedValue === '' ? 0 : renderedValue.indexOf(cleanedValue[0])) + section.startSeparator.length;\n const endInInput = startInInput + cleanedValue.length;\n newSections.push(_extends({}, section, {\n start: position,\n end: position + sectionLength,\n startInInput,\n endInInput\n }));\n position += sectionLength;\n // Move position to the end of string associated to the current section\n positionInInput += sectionLengthInInput;\n }\n return newSections;\n};\nexport const useFieldV6TextField = params => {\n const isRtl = useRtl();\n const focusTimeoutRef = React.useRef();\n const selectionSyncTimeoutRef = React.useRef();\n const {\n forwardedProps: {\n onFocus,\n onClick,\n onPaste,\n onBlur,\n inputRef: inputRefProp,\n placeholder: inPlaceholder\n },\n internalProps: {\n readOnly = false,\n disabled = false\n },\n parsedSelectedSections,\n activeSectionIndex,\n state,\n fieldValueManager,\n valueManager,\n applyCharacterEditing,\n resetCharacterQuery,\n updateSectionValue,\n updateValueFromValueStr,\n clearActiveSection,\n clearValue,\n setTempAndroidValueStr,\n setSelectedSections,\n getSectionsFromValue,\n areAllSectionsEmpty,\n localizedDigits\n } = params;\n const inputRef = React.useRef(null);\n const handleRef = useForkRef(inputRefProp, inputRef);\n const sections = React.useMemo(() => addPositionPropertiesToSections(state.sections, localizedDigits, isRtl), [state.sections, localizedDigits, isRtl]);\n const interactions = React.useMemo(() => ({\n syncSelectionToDOM: () => {\n if (!inputRef.current) {\n return;\n }\n if (parsedSelectedSections == null) {\n if (inputRef.current.scrollLeft) {\n // Ensure that input content is not marked as selected.\n // setting selection range to 0 causes issues in Safari.\n // https://bugs.webkit.org/show_bug.cgi?id=224425\n inputRef.current.scrollLeft = 0;\n }\n return;\n }\n\n // On multi input range pickers we want to update selection range only for the active input\n // This helps to avoid the focus jumping on Safari https://github.com/mui/mui-x/issues/9003\n // because WebKit implements the `setSelectionRange` based on the spec: https://bugs.webkit.org/show_bug.cgi?id=224425\n if (inputRef.current !== getActiveElement(document)) {\n return;\n }\n\n // Fix scroll jumping on iOS browser: https://github.com/mui/mui-x/issues/8321\n const currentScrollTop = inputRef.current.scrollTop;\n if (parsedSelectedSections === 'all') {\n inputRef.current.select();\n } else {\n const selectedSection = sections[parsedSelectedSections];\n const selectionStart = selectedSection.type === 'empty' ? selectedSection.startInInput - selectedSection.startSeparator.length : selectedSection.startInInput;\n const selectionEnd = selectedSection.type === 'empty' ? selectedSection.endInInput + selectedSection.endSeparator.length : selectedSection.endInInput;\n if (selectionStart !== inputRef.current.selectionStart || selectionEnd !== inputRef.current.selectionEnd) {\n if (inputRef.current === getActiveElement(document)) {\n inputRef.current.setSelectionRange(selectionStart, selectionEnd);\n }\n }\n clearTimeout(selectionSyncTimeoutRef.current);\n selectionSyncTimeoutRef.current = setTimeout(() => {\n // handle case when the selection is not updated correctly\n // could happen on Android\n if (inputRef.current && inputRef.current === getActiveElement(document) &&\n // The section might loose all selection, where `selectionStart === selectionEnd`\n // https://github.com/mui/mui-x/pull/13652\n inputRef.current.selectionStart === inputRef.current.selectionEnd && (inputRef.current.selectionStart !== selectionStart || inputRef.current.selectionEnd !== selectionEnd)) {\n interactions.syncSelectionToDOM();\n }\n });\n }\n\n // Even reading this variable seems to do the trick, but also setting it just to make use of it\n inputRef.current.scrollTop = currentScrollTop;\n },\n getActiveSectionIndexFromDOM: () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n const browserEndIndex = inputRef.current.selectionEnd ?? 0;\n if (browserStartIndex === 0 && browserEndIndex === 0) {\n return null;\n }\n const nextSectionIndex = browserStartIndex <= sections[0].startInInput ? 1 // Special case if browser index is in invisible characters at the beginning.\n : sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n return nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n },\n focusField: (newSelectedSection = 0) => {\n inputRef.current?.focus();\n setSelectedSections(newSelectedSection);\n },\n setSelectedSections: newSelectedSections => setSelectedSections(newSelectedSections),\n isFieldFocused: () => inputRef.current === getActiveElement(document)\n }), [inputRef, parsedSelectedSections, sections, setSelectedSections]);\n const syncSelectionFromDOM = () => {\n const browserStartIndex = inputRef.current.selectionStart ?? 0;\n let nextSectionIndex;\n if (browserStartIndex <= sections[0].startInInput) {\n // Special case if browser index is in invisible characters at the beginning\n nextSectionIndex = 1;\n } else if (browserStartIndex >= sections[sections.length - 1].endInInput) {\n // If the click is after the last character of the input, then we want to select the 1st section.\n nextSectionIndex = 1;\n } else {\n nextSectionIndex = sections.findIndex(section => section.startInInput - section.startSeparator.length > browserStartIndex);\n }\n const sectionIndex = nextSectionIndex === -1 ? sections.length - 1 : nextSectionIndex - 1;\n setSelectedSections(sectionIndex);\n };\n const handleInputFocus = useEventCallback((...args) => {\n onFocus?.(...args);\n // The ref is guaranteed to be resolved at this point.\n const input = inputRef.current;\n clearTimeout(focusTimeoutRef.current);\n focusTimeoutRef.current = setTimeout(() => {\n // The ref changed, the component got remounted, the focus event is no longer relevant.\n if (!input || input !== inputRef.current) {\n return;\n }\n if (activeSectionIndex != null) {\n return;\n }\n if (\n // avoid selecting all sections when focusing empty field without value\n input.value.length && Number(input.selectionEnd) - Number(input.selectionStart) === input.value.length) {\n setSelectedSections('all');\n } else {\n syncSelectionFromDOM();\n }\n });\n });\n const handleInputClick = useEventCallback((event, ...args) => {\n // The click event on the clear button would propagate to the input, trigger this handler and result in a wrong section selection.\n // We avoid this by checking if the call of `handleInputClick` is actually intended, or a side effect.\n if (event.isDefaultPrevented()) {\n return;\n }\n onClick?.(event, ...args);\n syncSelectionFromDOM();\n });\n const handleInputPaste = useEventCallback(event => {\n onPaste?.(event);\n\n // prevent default to avoid the input `onChange` handler being called\n event.preventDefault();\n if (readOnly || disabled) {\n return;\n }\n const pastedValue = event.clipboardData.getData('text');\n if (typeof parsedSelectedSections === 'number') {\n const activeSection = state.sections[parsedSelectedSections];\n const lettersOnly = /^[a-zA-Z]+$/.test(pastedValue);\n const digitsOnly = /^[0-9]+$/.test(pastedValue);\n const digitsAndLetterOnly = /^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(pastedValue);\n const isValidPastedValue = activeSection.contentType === 'letter' && lettersOnly || activeSection.contentType === 'digit' && digitsOnly || activeSection.contentType === 'digit-with-letter' && digitsAndLetterOnly;\n if (isValidPastedValue) {\n resetCharacterQuery();\n updateSectionValue({\n activeSection,\n newSectionValue: pastedValue,\n shouldGoToNextSection: true\n });\n return;\n }\n if (lettersOnly || digitsOnly) {\n // The pasted value corresponds to a single section, but not the expected type,\n // skip the modification\n return;\n }\n }\n resetCharacterQuery();\n updateValueFromValueStr(pastedValue);\n });\n const handleContainerBlur = useEventCallback((...args) => {\n onBlur?.(...args);\n setSelectedSections(null);\n });\n const handleInputChange = useEventCallback(event => {\n if (readOnly) {\n return;\n }\n const targetValue = event.target.value;\n if (targetValue === '') {\n resetCharacterQuery();\n clearValue();\n return;\n }\n const eventData = event.nativeEvent.data;\n // Calling `.fill(04/11/2022)` in playwright will trigger a change event with the requested content to insert in `event.nativeEvent.data`\n // usual changes have only the currently typed character in the `event.nativeEvent.data`\n const shouldUseEventData = eventData && eventData.length > 1;\n const valueStr = shouldUseEventData ? eventData : targetValue;\n const cleanValueStr = cleanString(valueStr);\n\n // If no section is selected or eventData should be used, we just try to parse the new value\n // This line is mostly triggered by imperative code / application tests.\n if (activeSectionIndex == null || shouldUseEventData) {\n updateValueFromValueStr(shouldUseEventData ? eventData : cleanValueStr);\n return;\n }\n let keyPressed;\n if (parsedSelectedSections === 'all' && cleanValueStr.length === 1) {\n keyPressed = cleanValueStr;\n } else {\n const prevValueStr = cleanString(fieldValueManager.getV6InputValueFromSections(sections, localizedDigits, isRtl));\n let startOfDiffIndex = -1;\n let endOfDiffIndex = -1;\n for (let i = 0; i < prevValueStr.length; i += 1) {\n if (startOfDiffIndex === -1 && prevValueStr[i] !== cleanValueStr[i]) {\n startOfDiffIndex = i;\n }\n if (endOfDiffIndex === -1 && prevValueStr[prevValueStr.length - i - 1] !== cleanValueStr[cleanValueStr.length - i - 1]) {\n endOfDiffIndex = i;\n }\n }\n const activeSection = sections[activeSectionIndex];\n const hasDiffOutsideOfActiveSection = startOfDiffIndex < activeSection.start || prevValueStr.length - endOfDiffIndex - 1 > activeSection.end;\n if (hasDiffOutsideOfActiveSection) {\n // TODO: Support if the new date is valid\n return;\n }\n\n // The active section being selected, the browser has replaced its value with the key pressed by the user.\n const activeSectionEndRelativeToNewValue = cleanValueStr.length - prevValueStr.length + activeSection.end - cleanString(activeSection.endSeparator || '').length;\n keyPressed = cleanValueStr.slice(activeSection.start + cleanString(activeSection.startSeparator || '').length, activeSectionEndRelativeToNewValue);\n }\n if (keyPressed.length === 0) {\n if (isAndroid()) {\n setTempAndroidValueStr(valueStr);\n }\n resetCharacterQuery();\n clearActiveSection();\n return;\n }\n applyCharacterEditing({\n keyPressed,\n sectionIndex: activeSectionIndex\n });\n });\n const placeholder = React.useMemo(() => {\n if (inPlaceholder !== undefined) {\n return inPlaceholder;\n }\n return fieldValueManager.getV6InputValueFromSections(getSectionsFromValue(valueManager.emptyValue), localizedDigits, isRtl);\n }, [inPlaceholder, fieldValueManager, getSectionsFromValue, valueManager.emptyValue, localizedDigits, isRtl]);\n const valueStr = React.useMemo(() => state.tempValueStrAndroid ?? fieldValueManager.getV6InputValueFromSections(state.sections, localizedDigits, isRtl), [state.sections, fieldValueManager, state.tempValueStrAndroid, localizedDigits, isRtl]);\n React.useEffect(() => {\n // Select all the sections when focused on mount (`autoFocus = true` on the input)\n if (inputRef.current && inputRef.current === getActiveElement(document)) {\n setSelectedSections('all');\n }\n return () => {\n clearTimeout(focusTimeoutRef.current);\n clearTimeout(selectionSyncTimeoutRef.current);\n };\n }, []); // eslint-disable-line react-hooks/exhaustive-deps\n\n const inputMode = React.useMemo(() => {\n if (activeSectionIndex == null) {\n return 'text';\n }\n if (state.sections[activeSectionIndex].contentType === 'letter') {\n return 'text';\n }\n return 'numeric';\n }, [activeSectionIndex, state.sections]);\n const inputHasFocus = inputRef.current && inputRef.current === getActiveElement(document);\n const shouldShowPlaceholder = !inputHasFocus && areAllSectionsEmpty;\n return {\n interactions,\n returnedValue: {\n // Forwarded\n readOnly,\n onBlur: handleContainerBlur,\n onClick: handleInputClick,\n onFocus: handleInputFocus,\n onPaste: handleInputPaste,\n inputRef: handleRef,\n // Additional\n enableAccessibleFieldDOMStructure: false,\n placeholder,\n inputMode,\n autoComplete: 'off',\n value: shouldShowPlaceholder ? '' : valueStr,\n onChange: handleInputChange\n }\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { useValidation } from \"../../../validation/index.js\";\nimport { useUtils } from \"../useUtils.js\";\nimport { adjustSectionValue, getSectionOrder } from \"./useField.utils.js\";\nimport { useFieldState } from \"./useFieldState.js\";\nimport { useFieldCharacterEditing } from \"./useFieldCharacterEditing.js\";\nimport { useFieldV7TextField } from \"./useFieldV7TextField.js\";\nimport { useFieldV6TextField } from \"./useFieldV6TextField.js\";\nexport const useField = params => {\n const utils = useUtils();\n const {\n internalProps,\n internalProps: {\n unstableFieldRef,\n minutesStep,\n enableAccessibleFieldDOMStructure = false,\n disabled = false,\n readOnly = false\n },\n forwardedProps: {\n onKeyDown,\n error,\n clearable,\n onClear\n },\n fieldValueManager,\n valueManager,\n validator\n } = params;\n const isRtl = useRtl();\n const stateResponse = useFieldState(params);\n const {\n state,\n activeSectionIndex,\n parsedSelectedSections,\n setSelectedSections,\n clearValue,\n clearActiveSection,\n updateSectionValue,\n setTempAndroidValueStr,\n sectionsValueBoundaries,\n localizedDigits,\n timezone\n } = stateResponse;\n const characterEditingResponse = useFieldCharacterEditing({\n sections: state.sections,\n updateSectionValue,\n sectionsValueBoundaries,\n localizedDigits,\n setTempAndroidValueStr,\n timezone\n });\n const {\n resetCharacterQuery\n } = characterEditingResponse;\n const areAllSectionsEmpty = valueManager.areValuesEqual(utils, state.value, valueManager.emptyValue);\n const useFieldTextField = enableAccessibleFieldDOMStructure ? useFieldV7TextField : useFieldV6TextField;\n const sectionOrder = React.useMemo(() => getSectionOrder(state.sections, isRtl && !enableAccessibleFieldDOMStructure), [state.sections, isRtl, enableAccessibleFieldDOMStructure]);\n const {\n returnedValue,\n interactions\n } = useFieldTextField(_extends({}, params, stateResponse, characterEditingResponse, {\n areAllSectionsEmpty,\n sectionOrder\n }));\n const handleContainerKeyDown = useEventCallback(event => {\n onKeyDown?.(event);\n if (disabled) {\n return;\n }\n // eslint-disable-next-line default-case\n switch (true) {\n // Select all\n case (event.ctrlKey || event.metaKey) && String.fromCharCode(event.keyCode) === 'A' && !event.shiftKey && !event.altKey:\n {\n // prevent default to make sure that the next line \"select all\" while updating\n // the internal state at the same time.\n event.preventDefault();\n setSelectedSections('all');\n break;\n }\n\n // Move selection to next section\n case event.key === 'ArrowRight':\n {\n event.preventDefault();\n if (parsedSelectedSections == null) {\n setSelectedSections(sectionOrder.startIndex);\n } else if (parsedSelectedSections === 'all') {\n setSelectedSections(sectionOrder.endIndex);\n } else {\n const nextSectionIndex = sectionOrder.neighbors[parsedSelectedSections].rightIndex;\n if (nextSectionIndex !== null) {\n setSelectedSections(nextSectionIndex);\n }\n }\n break;\n }\n\n // Move selection to previous section\n case event.key === 'ArrowLeft':\n {\n event.preventDefault();\n if (parsedSelectedSections == null) {\n setSelectedSections(sectionOrder.endIndex);\n } else if (parsedSelectedSections === 'all') {\n setSelectedSections(sectionOrder.startIndex);\n } else {\n const nextSectionIndex = sectionOrder.neighbors[parsedSelectedSections].leftIndex;\n if (nextSectionIndex !== null) {\n setSelectedSections(nextSectionIndex);\n }\n }\n break;\n }\n\n // Reset the value of the selected section\n case event.key === 'Delete':\n {\n event.preventDefault();\n if (readOnly) {\n break;\n }\n if (parsedSelectedSections == null || parsedSelectedSections === 'all') {\n clearValue();\n } else {\n clearActiveSection();\n }\n resetCharacterQuery();\n break;\n }\n\n // Increment / decrement the selected section value\n case ['ArrowUp', 'ArrowDown', 'Home', 'End', 'PageUp', 'PageDown'].includes(event.key):\n {\n event.preventDefault();\n if (readOnly || activeSectionIndex == null) {\n break;\n }\n const activeSection = state.sections[activeSectionIndex];\n const activeDateManager = fieldValueManager.getActiveDateManager(utils, state, activeSection);\n const newSectionValue = adjustSectionValue(utils, timezone, activeSection, event.key, sectionsValueBoundaries, localizedDigits, activeDateManager.date, {\n minutesStep\n });\n updateSectionValue({\n activeSection,\n newSectionValue,\n shouldGoToNextSection: false\n });\n break;\n }\n }\n });\n useEnhancedEffect(() => {\n interactions.syncSelectionToDOM();\n });\n const {\n hasValidationError\n } = useValidation({\n props: internalProps,\n validator,\n timezone,\n value: state.value,\n onError: internalProps.onError\n });\n const inputError = React.useMemo(() => {\n // only override when `error` is undefined.\n // in case of multi input fields, the `error` value is provided externally and will always be defined.\n if (error !== undefined) {\n return error;\n }\n return hasValidationError;\n }, [hasValidationError, error]);\n React.useEffect(() => {\n if (!inputError && activeSectionIndex == null) {\n resetCharacterQuery();\n }\n }, [state.referenceValue, activeSectionIndex, inputError]); // eslint-disable-line react-hooks/exhaustive-deps\n\n // If `tempValueStrAndroid` is still defined for some section when running `useEffect`,\n // Then `onChange` has only been called once, which means the user pressed `Backspace` to reset the section.\n // This causes a small flickering on Android,\n // But we can't use `useEnhancedEffect` which is always called before the second `onChange` call and then would cause false positives.\n React.useEffect(() => {\n if (state.tempValueStrAndroid != null && activeSectionIndex != null) {\n resetCharacterQuery();\n clearActiveSection();\n }\n }, [state.sections]); // eslint-disable-line react-hooks/exhaustive-deps\n\n React.useImperativeHandle(unstableFieldRef, () => ({\n getSections: () => state.sections,\n getActiveSectionIndex: interactions.getActiveSectionIndexFromDOM,\n setSelectedSections: interactions.setSelectedSections,\n focusField: interactions.focusField,\n isFieldFocused: interactions.isFieldFocused\n }));\n const handleClearValue = useEventCallback((event, ...args) => {\n event.preventDefault();\n onClear?.(event, ...args);\n clearValue();\n if (!interactions.isFieldFocused()) {\n // setSelectedSections is called internally\n interactions.focusField(0);\n } else {\n setSelectedSections(sectionOrder.startIndex);\n }\n });\n const commonForwardedProps = {\n onKeyDown: handleContainerKeyDown,\n onClear: handleClearValue,\n error: inputError,\n clearable: Boolean(clearable && !areAllSectionsEmpty && !readOnly && !disabled)\n };\n const commonAdditionalProps = {\n disabled,\n readOnly\n };\n return _extends({}, params.forwardedProps, commonForwardedProps, commonAdditionalProps, returnedValue);\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"clearable\", \"onClear\", \"InputProps\", \"sx\", \"slots\", \"slotProps\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport MuiIconButton from '@mui/material/IconButton';\nimport InputAdornment from '@mui/material/InputAdornment';\nimport { ClearIcon } from \"../icons/index.js\";\nimport { usePickersTranslations } from \"./usePickersTranslations.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useClearableField = props => {\n const translations = usePickersTranslations();\n const {\n clearable,\n onClear,\n InputProps,\n sx,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const IconButton = slots?.clearButton ?? MuiIconButton;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps = useSlotProps({\n elementType: IconButton,\n externalSlotProps: slotProps?.clearButton,\n ownerState: {},\n className: 'clearButton',\n additionalProps: {\n title: translations.fieldClearLabel\n }\n }),\n iconButtonProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const EndClearIcon = slots?.clearIcon ?? ClearIcon;\n const endClearIconProps = useSlotProps({\n elementType: EndClearIcon,\n externalSlotProps: slotProps?.clearIcon,\n ownerState: {}\n });\n return _extends({}, other, {\n InputProps: _extends({}, InputProps, {\n endAdornment: /*#__PURE__*/_jsxs(React.Fragment, {\n children: [clearable && /*#__PURE__*/_jsx(InputAdornment, {\n position: \"end\",\n sx: {\n marginRight: InputProps?.endAdornment ? -1 : -1.5\n },\n children: /*#__PURE__*/_jsx(IconButton, _extends({}, iconButtonProps, {\n onClick: onClear,\n children: /*#__PURE__*/_jsx(EndClearIcon, _extends({\n fontSize: \"small\"\n }, endClearIconProps))\n }))\n }), InputProps?.endAdornment]\n })\n }),\n sx: [{\n '& .clearButton': {\n opacity: 1\n },\n '@media (pointer: fine)': {\n '& .clearButton': {\n opacity: 0\n },\n '&:hover, &:focus-within': {\n '.clearButton': {\n opacity: 1\n }\n }\n }\n }, ...(Array.isArray(sx) ? sx : [sx])]\n });\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { DATE_TIME_VALIDATION_PROP_NAMES, DATE_VALIDATION_PROP_NAMES, TIME_VALIDATION_PROP_NAMES } from \"../validation/extractValidationProps.js\";\nconst SHARED_FIELD_INTERNAL_PROP_NAMES = ['value', 'defaultValue', 'referenceDate', 'format', 'formatDensity', 'onChange', 'timezone', 'onError', 'shouldRespectLeadingZeros', 'selectedSections', 'onSelectedSectionsChange', 'unstableFieldRef', 'enableAccessibleFieldDOMStructure', 'disabled', 'readOnly', 'dateSeparator'];\n/**\n * Split the props received by the field component into:\n * - `internalProps` which are used by the various hooks called by the field component.\n * - `forwardedProps` which are passed to the underlying component.\n * Note that some forwarded props might be used by the hooks as well.\n * For instance, hooks like `useDateField` need props like `autoFocus` to know how to behave.\n * @template TProps, TValueType\n * @param {TProps} props The props received by the field component.\n * @param {TValueType} valueType The type of the field value ('date', 'time', or 'date-time').\n */\nexport const useSplitFieldProps = (props, valueType) => {\n return React.useMemo(() => {\n const forwardedProps = _extends({}, props);\n const internalProps = {};\n const extractProp = propName => {\n if (forwardedProps.hasOwnProperty(propName)) {\n // @ts-ignore\n internalProps[propName] = forwardedProps[propName];\n delete forwardedProps[propName];\n }\n };\n SHARED_FIELD_INTERNAL_PROP_NAMES.forEach(extractProp);\n if (valueType === 'date') {\n DATE_VALIDATION_PROP_NAMES.forEach(extractProp);\n } else if (valueType === 'time') {\n TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n } else if (valueType === 'date-time') {\n DATE_VALIDATION_PROP_NAMES.forEach(extractProp);\n TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n DATE_TIME_VALIDATION_PROP_NAMES.forEach(extractProp);\n }\n return {\n forwardedProps,\n internalProps\n };\n }, [props, valueType]);\n};","import * as React from 'react';\nimport { LocalizationProvider } from \"../../LocalizationProvider/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const PickersContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Provides the context for the various parts of a picker component:\n * - contextValue: the context for the picker sub-components.\n * - localizationProvider: the translations passed through the props and through a parent LocalizationProvider.\n *\n * @ignore - do not document.\n */\nexport function PickersProvider(props) {\n const {\n contextValue,\n localeText,\n children\n } = props;\n return /*#__PURE__*/_jsx(PickersContext.Provider, {\n value: contextValue,\n children: /*#__PURE__*/_jsx(LocalizationProvider, {\n localeText: localeText,\n children: children\n })\n });\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { applyDefaultDate } from \"../utils/date-utils.js\";\nimport { useUtils, useDefaultDates } from \"./useUtils.js\";\nexport const useDefaultizedDateField = props => {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n return _extends({}, props, {\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n format: props.format ?? utils.formats.keyboardDate,\n minDate: applyDefaultDate(utils, props.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, props.maxDate, defaultDates.maxDate)\n });\n};\nexport const useDefaultizedTimeField = props => {\n const utils = useUtils();\n const ampm = props.ampm ?? utils.is12HourCycleInCurrentLocale();\n const defaultFormat = ampm ? utils.formats.fullTime12h : utils.formats.fullTime24h;\n return _extends({}, props, {\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n format: props.format ?? defaultFormat\n });\n};\nexport const useDefaultizedDateTimeField = props => {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const ampm = props.ampm ?? utils.is12HourCycleInCurrentLocale();\n const defaultFormat = ampm ? utils.formats.keyboardDateTime12h : utils.formats.keyboardDateTime24h;\n return _extends({}, props, {\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n format: props.format ?? defaultFormat,\n disableIgnoringDatePartForTimeValidation: Boolean(props.minDateTime || props.maxDateTime),\n minDate: applyDefaultDate(utils, props.minDateTime ?? props.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, props.maxDateTime ?? props.maxDate, defaultDates.maxDate),\n minTime: props.minDateTime ?? props.minTime,\n maxTime: props.maxDateTime ?? props.maxTime\n });\n};","'use client';\n\nimport { singleItemFieldValueManager, singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useField } from \"../internals/hooks/useField/index.js\";\nimport { validateDate } from \"../validation/index.js\";\nimport { useSplitFieldProps } from \"../hooks/index.js\";\nimport { useDefaultizedDateField } from \"../internals/hooks/defaultizedFieldProps.js\";\nexport const useDateField = inProps => {\n const props = useDefaultizedDateField(inProps);\n const {\n forwardedProps,\n internalProps\n } = useSplitFieldProps(props, 'date');\n return useField({\n forwardedProps,\n internalProps,\n valueManager: singleItemValueManager,\n fieldValueManager: singleItemFieldValueManager,\n validator: validateDate,\n valueType: 'date'\n });\n};","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersTextFieldUtilityClass(slot) {\n return generateUtilityClass('MuiPickersTextField', slot);\n}\nexport const pickersTextFieldClasses = generateUtilityClasses('MuiPickersTextField', ['root', 'focused', 'disabled', 'error', 'required']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersInputBaseUtilityClass(slot) {\n return generateUtilityClass('MuiPickersInputBase', slot);\n}\nexport const pickersInputBaseClasses = generateUtilityClasses('MuiPickersInputBase', ['root', 'focused', 'disabled', 'error', 'notchedOutline', 'sectionContent', 'sectionBefore', 'sectionAfter', 'adornedStart', 'adornedEnd', 'input']);","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersSectionListUtilityClass(slot) {\n return generateUtilityClass('MuiPickersSectionList', slot);\n}\nexport const pickersSectionListClasses = generateUtilityClasses('MuiPickersSectionList', ['root', 'section', 'sectionContent']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\", \"elements\", \"sectionListRef\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { getPickersSectionListUtilityClass, pickersSectionListClasses } from \"./pickersSectionListClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const PickersSectionListRoot = styled('div', {\n name: 'MuiPickersSectionList',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n direction: 'ltr /*! @noflip */',\n outline: 'none'\n});\nexport const PickersSectionListSection = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'Section',\n overridesResolver: (props, styles) => styles.section\n})({});\nexport const PickersSectionListSectionSeparator = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'SectionSeparator',\n overridesResolver: (props, styles) => styles.sectionSeparator\n})({\n whiteSpace: 'pre'\n});\nexport const PickersSectionListSectionContent = styled('span', {\n name: 'MuiPickersSectionList',\n slot: 'SectionContent',\n overridesResolver: (props, styles) => styles.sectionContent\n})({\n outline: 'none'\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n section: ['section'],\n sectionContent: ['sectionContent']\n };\n return composeClasses(slots, getPickersSectionListUtilityClass, classes);\n};\nfunction PickersSection(props) {\n const {\n slots,\n slotProps,\n element,\n classes\n } = props;\n const Section = slots?.section ?? PickersSectionListSection;\n const sectionProps = useSlotProps({\n elementType: Section,\n externalSlotProps: slotProps?.section,\n externalForwardedProps: element.container,\n className: classes.section,\n ownerState: {}\n });\n const SectionContent = slots?.sectionContent ?? PickersSectionListSectionContent;\n const sectionContentProps = useSlotProps({\n elementType: SectionContent,\n externalSlotProps: slotProps?.sectionContent,\n externalForwardedProps: element.content,\n additionalProps: {\n suppressContentEditableWarning: true\n },\n className: classes.sectionContent,\n ownerState: {}\n });\n const SectionSeparator = slots?.sectionSeparator ?? PickersSectionListSectionSeparator;\n const sectionSeparatorBeforeProps = useSlotProps({\n elementType: SectionSeparator,\n externalSlotProps: slotProps?.sectionSeparator,\n externalForwardedProps: element.before,\n ownerState: {\n position: 'before'\n }\n });\n const sectionSeparatorAfterProps = useSlotProps({\n elementType: SectionSeparator,\n externalSlotProps: slotProps?.sectionSeparator,\n externalForwardedProps: element.after,\n ownerState: {\n position: 'after'\n }\n });\n return /*#__PURE__*/_jsxs(Section, _extends({}, sectionProps, {\n children: [/*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorBeforeProps)), /*#__PURE__*/_jsx(SectionContent, _extends({}, sectionContentProps)), /*#__PURE__*/_jsx(SectionSeparator, _extends({}, sectionSeparatorAfterProps))]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersSection.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 classes: PropTypes.object.isRequired,\n element: PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n }).isRequired,\n /**\n * The props used for each component slot.\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n */\n slots: PropTypes.object\n} : void 0;\n/**\n * Demos:\n *\n * - [Custom field](https://mui.com/x/react-date-pickers/custom-field/)\n *\n * API:\n *\n * - [PickersSectionList API](https://mui.com/x/api/date-pickers/pickers-section-list/)\n */\nconst PickersSectionList = /*#__PURE__*/React.forwardRef(function PickersSectionList(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersSectionList'\n });\n const {\n slots,\n slotProps,\n elements,\n sectionListRef\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(props);\n const rootRef = React.useRef(null);\n const handleRootRef = useForkRef(ref, rootRef);\n const getRoot = methodName => {\n if (!rootRef.current) {\n throw new Error(`MUI X: Cannot call sectionListRef.${methodName} before the mount of the component.`);\n }\n return rootRef.current;\n };\n React.useImperativeHandle(sectionListRef, () => ({\n getRoot() {\n return getRoot('getRoot');\n },\n getSectionContainer(index) {\n const root = getRoot('getSectionContainer');\n return root.querySelector(`.${pickersSectionListClasses.section}[data-sectionindex=\"${index}\"]`);\n },\n getSectionContent(index) {\n const root = getRoot('getSectionContent');\n return root.querySelector(`.${pickersSectionListClasses.section}[data-sectionindex=\"${index}\"] .${pickersSectionListClasses.sectionContent}`);\n },\n getSectionIndexFromDOMElement(element) {\n const root = getRoot('getSectionIndexFromDOMElement');\n if (element == null || !root.contains(element)) {\n return null;\n }\n let sectionContainer = null;\n if (element.classList.contains(pickersSectionListClasses.section)) {\n sectionContainer = element;\n } else if (element.classList.contains(pickersSectionListClasses.sectionContent)) {\n sectionContainer = element.parentElement;\n }\n if (sectionContainer == null) {\n return null;\n }\n return Number(sectionContainer.dataset.sectionindex);\n }\n }));\n const Root = slots?.root ?? PickersSectionListRoot;\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps?.root,\n externalForwardedProps: other,\n additionalProps: {\n ref: handleRootRef,\n suppressContentEditableWarning: true\n },\n className: classes.root,\n ownerState: {}\n });\n return /*#__PURE__*/_jsx(Root, _extends({}, rootProps, {\n children: rootProps.contentEditable ? elements.map(({\n content,\n before,\n after\n }) => `${before.children}${content.children}${after.children}`).join('') : /*#__PURE__*/_jsx(React.Fragment, {\n children: elements.map((element, elementIndex) => /*#__PURE__*/_jsx(PickersSection, {\n slots: slots,\n slotProps: slotProps,\n element: element,\n classes: classes\n }, elementIndex))\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersSectionList.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 * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n */\n slots: PropTypes.object\n} : void 0;\nexport { PickersSectionList };","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"elements\", \"areAllSectionsEmpty\", \"defaultValue\", \"label\", \"value\", \"onChange\", \"id\", \"autoFocus\", \"endAdornment\", \"startAdornment\", \"renderSuffix\", \"slots\", \"slotProps\", \"contentEditable\", \"tabIndex\", \"onInput\", \"onPaste\", \"onKeyDown\", \"fullWidth\", \"name\", \"readOnly\", \"inputProps\", \"inputRef\", \"sectionListRef\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport capitalize from '@mui/utils/capitalize';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport visuallyHidden from '@mui/utils/visuallyHidden';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { pickersInputBaseClasses, getPickersInputBaseUtilityClass } from \"./pickersInputBaseClasses.js\";\nimport { Unstable_PickersSectionList as PickersSectionList, Unstable_PickersSectionListRoot as PickersSectionListRoot, Unstable_PickersSectionListSection as PickersSectionListSection, Unstable_PickersSectionListSectionSeparator as PickersSectionListSectionSeparator, Unstable_PickersSectionListSectionContent as PickersSectionListSectionContent } from \"../../PickersSectionList/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst round = value => Math.round(value * 1e5) / 1e5;\nexport const PickersInputBaseRoot = styled('div', {\n name: 'MuiPickersInputBase',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme\n}) => _extends({}, theme.typography.body1, {\n color: (theme.vars || theme).palette.text.primary,\n cursor: 'text',\n padding: 0,\n display: 'flex',\n justifyContent: 'flex-start',\n alignItems: 'center',\n position: 'relative',\n boxSizing: 'border-box',\n // Prevent padding issue with fullWidth.\n letterSpacing: `${round(0.15 / 16)}em`,\n variants: [{\n props: {\n fullWidth: true\n },\n style: {\n width: '100%'\n }\n }]\n}));\nexport const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot, {\n name: 'MuiPickersInputBase',\n slot: 'SectionsContainer',\n overridesResolver: (props, styles) => styles.sectionsContainer\n})(({\n theme\n}) => ({\n padding: '4px 0 5px',\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit',\n lineHeight: '1.4375em',\n // 23px\n flexGrow: 1,\n outline: 'none',\n display: 'flex',\n flexWrap: 'nowrap',\n overflow: 'hidden',\n letterSpacing: 'inherit',\n // Baseline behavior\n width: '182px',\n variants: [{\n props: {\n isRtl: true\n },\n style: {\n textAlign: 'right /*! @noflip */'\n }\n }, {\n props: {\n size: 'small'\n },\n style: {\n paddingTop: 1\n }\n }, {\n props: {\n adornedStart: false,\n focused: false,\n filled: false\n },\n style: {\n color: 'currentColor',\n opacity: 0\n }\n }, {\n // Can't use the object notation because label can be null or undefined\n props: ({\n adornedStart,\n focused,\n filled,\n label\n }) => !adornedStart && !focused && !filled && label == null,\n style: theme.vars ? {\n opacity: theme.vars.opacity.inputPlaceholder\n } : {\n opacity: theme.palette.mode === 'light' ? 0.42 : 0.5\n }\n }]\n}));\nconst PickersInputBaseSection = styled(PickersSectionListSection, {\n name: 'MuiPickersInputBase',\n slot: 'Section',\n overridesResolver: (props, styles) => styles.section\n})(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit',\n letterSpacing: 'inherit',\n lineHeight: '1.4375em',\n // 23px\n display: 'flex'\n}));\nconst PickersInputBaseSectionContent = styled(PickersSectionListSectionContent, {\n name: 'MuiPickersInputBase',\n slot: 'SectionContent',\n overridesResolver: (props, styles) => styles.content\n})(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n lineHeight: '1.4375em',\n // 23px\n letterSpacing: 'inherit',\n width: 'fit-content',\n outline: 'none'\n}));\nconst PickersInputBaseSectionSeparator = styled(PickersSectionListSectionSeparator, {\n name: 'MuiPickersInputBase',\n slot: 'Separator',\n overridesResolver: (props, styles) => styles.separator\n})(() => ({\n whiteSpace: 'pre',\n letterSpacing: 'inherit'\n}));\nconst PickersInputBaseInput = styled('input', {\n name: 'MuiPickersInputBase',\n slot: 'Input',\n overridesResolver: (props, styles) => styles.hiddenInput\n})(_extends({}, visuallyHidden));\nconst useUtilityClasses = ownerState => {\n const {\n focused,\n disabled,\n error,\n classes,\n fullWidth,\n readOnly,\n color,\n size,\n endAdornment,\n startAdornment\n } = ownerState;\n const slots = {\n root: ['root', focused && !disabled && 'focused', disabled && 'disabled', readOnly && 'readOnly', error && 'error', fullWidth && 'fullWidth', `color${capitalize(color)}`, size === 'small' && 'inputSizeSmall', Boolean(startAdornment) && 'adornedStart', Boolean(endAdornment) && 'adornedEnd'],\n notchedOutline: ['notchedOutline'],\n input: ['input'],\n sectionsContainer: ['sectionsContainer'],\n sectionContent: ['sectionContent'],\n sectionBefore: ['sectionBefore'],\n sectionAfter: ['sectionAfter']\n };\n return composeClasses(slots, getPickersInputBaseUtilityClass, classes);\n};\n/**\n * @ignore - internal component.\n */\nconst PickersInputBase = /*#__PURE__*/React.forwardRef(function PickersInputBase(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersInputBase'\n });\n const {\n elements,\n areAllSectionsEmpty,\n value,\n onChange,\n id,\n endAdornment,\n startAdornment,\n renderSuffix,\n slots,\n slotProps,\n contentEditable,\n tabIndex,\n onInput,\n onPaste,\n onKeyDown,\n name,\n readOnly,\n inputProps,\n inputRef,\n sectionListRef\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootRef = React.useRef(null);\n const handleRootRef = useForkRef(ref, rootRef);\n const handleInputRef = useForkRef(inputProps?.ref, inputRef);\n const isRtl = useRtl();\n const muiFormControl = useFormControl();\n if (!muiFormControl) {\n throw new Error('MUI X: PickersInputBase should always be used inside a PickersTextField component');\n }\n const handleInputFocus = event => {\n // Fix a bug with IE11 where the focus/blur events are triggered\n // while the component is disabled.\n if (muiFormControl.disabled) {\n event.stopPropagation();\n return;\n }\n muiFormControl.onFocus?.(event);\n };\n React.useEffect(() => {\n if (muiFormControl) {\n muiFormControl.setAdornedStart(Boolean(startAdornment));\n }\n }, [muiFormControl, startAdornment]);\n React.useEffect(() => {\n if (!muiFormControl) {\n return;\n }\n if (areAllSectionsEmpty) {\n muiFormControl.onEmpty();\n } else {\n muiFormControl.onFilled();\n }\n }, [muiFormControl, areAllSectionsEmpty]);\n const ownerState = _extends({}, props, muiFormControl, {\n isRtl\n });\n const classes = useUtilityClasses(ownerState);\n const InputRoot = slots?.root || PickersInputBaseRoot;\n const inputRootProps = useSlotProps({\n elementType: InputRoot,\n externalSlotProps: slotProps?.root,\n externalForwardedProps: other,\n additionalProps: {\n 'aria-invalid': muiFormControl.error,\n ref: handleRootRef\n },\n className: classes.root,\n ownerState\n });\n const InputSectionsContainer = slots?.input || PickersInputBaseSectionsContainer;\n return /*#__PURE__*/_jsxs(InputRoot, _extends({}, inputRootProps, {\n children: [startAdornment, /*#__PURE__*/_jsx(PickersSectionList, {\n sectionListRef: sectionListRef,\n elements: elements,\n contentEditable: contentEditable,\n tabIndex: tabIndex,\n className: classes.sectionsContainer,\n onFocus: handleInputFocus,\n onBlur: muiFormControl.onBlur,\n onInput: onInput,\n onPaste: onPaste,\n onKeyDown: onKeyDown,\n slots: {\n root: InputSectionsContainer,\n section: PickersInputBaseSection,\n sectionContent: PickersInputBaseSectionContent,\n sectionSeparator: PickersInputBaseSectionSeparator\n },\n slotProps: {\n root: {\n ownerState\n },\n sectionContent: {\n className: pickersInputBaseClasses.sectionContent\n },\n sectionSeparator: ({\n position\n }) => ({\n className: position === 'before' ? pickersInputBaseClasses.sectionBefore : pickersInputBaseClasses.sectionAfter\n })\n }\n }), endAdornment, renderSuffix ? renderSuffix(_extends({}, muiFormControl)) : null, /*#__PURE__*/_jsx(PickersInputBaseInput, _extends({\n name: name,\n className: classes.input,\n value: value,\n onChange: onChange,\n id: id,\n \"aria-hidden\": \"true\",\n tabIndex: -1,\n readOnly: readOnly,\n required: muiFormControl.required,\n disabled: muiFormControl.disabled\n }, inputProps, {\n ref: handleInputRef\n }))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersInputBase.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 * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\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 * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\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 value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersInputBase };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersOutlinedInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersOutlinedInput', slot);\n}\nexport const pickersOutlinedInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersOutlinedInput', ['root', 'notchedOutline', 'input']));","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"label\", \"notched\", \"shrink\"];\nimport * as React from 'react';\nimport { styled } from '@mui/material/styles';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst OutlineRoot = styled('fieldset', {\n name: 'MuiPickersOutlinedInput',\n slot: 'NotchedOutline',\n overridesResolver: (props, styles) => styles.notchedOutline\n})(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n textAlign: 'left',\n position: 'absolute',\n bottom: 0,\n right: 0,\n top: -5,\n left: 0,\n margin: 0,\n padding: '0 8px',\n pointerEvents: 'none',\n borderRadius: 'inherit',\n borderStyle: 'solid',\n borderWidth: 1,\n overflow: 'hidden',\n minWidth: '0%',\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n };\n});\nconst OutlineLabel = styled('span')(({\n theme\n}) => ({\n fontFamily: theme.typography.fontFamily,\n fontSize: 'inherit'\n}));\nconst OutlineLegend = styled('legend')(({\n theme\n}) => ({\n float: 'unset',\n // Fix conflict with bootstrap\n width: 'auto',\n // Fix conflict with bootstrap\n overflow: 'hidden',\n // Fix Horizontal scroll when label too long\n variants: [{\n props: {\n withLabel: false\n },\n style: {\n padding: 0,\n lineHeight: '11px',\n // sync with `height` in `legend` styles\n transition: theme.transitions.create('width', {\n duration: 150,\n easing: theme.transitions.easing.easeOut\n })\n }\n }, {\n props: {\n withLabel: true\n },\n style: {\n display: 'block',\n // Fix conflict with normalize.css and sanitize.css\n padding: 0,\n height: 11,\n // sync with `lineHeight` in `legend` styles\n fontSize: '0.75em',\n visibility: 'hidden',\n maxWidth: 0.01,\n transition: theme.transitions.create('max-width', {\n duration: 50,\n easing: theme.transitions.easing.easeOut\n }),\n whiteSpace: 'nowrap',\n '& > span': {\n paddingLeft: 5,\n paddingRight: 5,\n display: 'inline-block',\n opacity: 0,\n visibility: 'visible'\n }\n }\n }, {\n props: {\n withLabel: true,\n notched: true\n },\n style: {\n maxWidth: '100%',\n transition: theme.transitions.create('max-width', {\n duration: 100,\n easing: theme.transitions.easing.easeOut,\n delay: 50\n })\n }\n }]\n}));\n\n/**\n * @ignore - internal component.\n */\nexport default function Outline(props) {\n const {\n className,\n label\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const withLabel = label != null && label !== '';\n const ownerState = _extends({}, props, {\n withLabel\n });\n return /*#__PURE__*/_jsx(OutlineRoot, _extends({\n \"aria-hidden\": true,\n className: className\n }, other, {\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(OutlineLegend, {\n ownerState: ownerState,\n children: withLabel ? /*#__PURE__*/_jsx(OutlineLabel, {\n children: label\n }) :\n /*#__PURE__*/\n // notranslate needed while Google Translate will not fix zero-width space issue\n _jsx(OutlineLabel, {\n className: \"notranslate\",\n children: \"\\u200B\"\n })\n })\n }));\n}","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"ownerState\", \"notched\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersOutlinedInputClasses, getPickersOutlinedInputUtilityClass } from \"./pickersOutlinedInputClasses.js\";\nimport Outline from \"./Outline.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from \"../PickersInputBase/PickersInputBase.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersOutlinedInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersOutlinedInput',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme\n}) => {\n const borderColor = theme.palette.mode === 'light' ? 'rgba(0, 0, 0, 0.23)' : 'rgba(255, 255, 255, 0.23)';\n return {\n padding: '0 14px',\n borderRadius: (theme.vars || theme).shape.borderRadius,\n [`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.text.primary\n },\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n [`&:hover .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / 0.23)` : borderColor\n }\n },\n [`&.${pickersOutlinedInputClasses.focused} .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderStyle: 'solid',\n borderWidth: 2\n },\n [`&.${pickersOutlinedInputClasses.disabled}`]: {\n [`& .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.action.disabled\n },\n '*': {\n color: (theme.vars || theme).palette.action.disabled\n }\n },\n [`&.${pickersOutlinedInputClasses.error} .${pickersOutlinedInputClasses.notchedOutline}`]: {\n borderColor: (theme.vars || theme).palette.error.main\n },\n variants: Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key]?.main ?? false).map(color => ({\n props: {\n color\n },\n style: {\n [`&.${pickersOutlinedInputClasses.focused}:not(.${pickersOutlinedInputClasses.error}) .${pickersOutlinedInputClasses.notchedOutline}`]: {\n // @ts-ignore\n borderColor: (theme.vars || theme).palette[color].main\n }\n }\n }))\n };\n});\nconst PickersOutlinedInputSectionsContainer = styled(PickersInputBaseSectionsContainer, {\n name: 'MuiPickersOutlinedInput',\n slot: 'SectionsContainer',\n overridesResolver: (props, styles) => styles.sectionsContainer\n})({\n padding: '16.5px 0',\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n padding: '8.5px 0'\n }\n }]\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n notchedOutline: ['notchedOutline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersOutlinedInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n/**\n * @ignore - internal component.\n */\nconst PickersOutlinedInput = /*#__PURE__*/React.forwardRef(function PickersOutlinedInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersOutlinedInput'\n });\n const {\n label,\n ownerState: ownerStateProp,\n notched\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const muiFormControl = useFormControl();\n const ownerState = _extends({}, props, ownerStateProp, muiFormControl, {\n color: muiFormControl?.color || 'primary'\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersOutlinedInputRoot,\n input: PickersOutlinedInputSectionsContainer\n },\n renderSuffix: state => /*#__PURE__*/_jsx(Outline, {\n shrink: Boolean(notched || state.adornedStart || state.focused || state.filled),\n notched: Boolean(notched || state.adornedStart || state.focused || state.filled),\n className: classes.notchedOutline,\n label: label != null && label !== '' && muiFormControl?.required ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [label, \"\\u2009\", '*']\n }) : label,\n ownerState: ownerState\n })\n }, other, {\n label: label,\n classes: classes,\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersOutlinedInput.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 * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\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 * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n notched: PropTypes.bool,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\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 value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersOutlinedInput };\nPickersOutlinedInput.muiName = 'Input';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersFilledInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersFilledInput', slot);\n}\nexport const pickersFilledInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersFilledInput', ['root', 'underline', 'input']));","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"disableUnderline\", \"ownerState\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { shouldForwardProp } from '@mui/system';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersFilledInputClasses, getPickersFilledInputUtilityClass } from \"./pickersFilledInputClasses.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot, PickersInputBaseSectionsContainer } from \"../PickersInputBase/PickersInputBase.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersFilledInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersFilledInput',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root,\n shouldForwardProp: prop => shouldForwardProp(prop) && prop !== 'disableUnderline'\n})(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n const bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n const backgroundColor = light ? 'rgba(0, 0, 0, 0.06)' : 'rgba(255, 255, 255, 0.09)';\n const hoverBackground = light ? 'rgba(0, 0, 0, 0.09)' : 'rgba(255, 255, 255, 0.13)';\n const disabledBackground = light ? 'rgba(0, 0, 0, 0.12)' : 'rgba(255, 255, 255, 0.12)';\n return {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor,\n borderTopLeftRadius: (theme.vars || theme).shape.borderRadius,\n borderTopRightRadius: (theme.vars || theme).shape.borderRadius,\n transition: theme.transitions.create('background-color', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n '&:hover': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.hoverBg : hoverBackground,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n }\n },\n [`&.${pickersFilledInputClasses.focused}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.bg : backgroundColor\n },\n [`&.${pickersFilledInputClasses.disabled}`]: {\n backgroundColor: theme.vars ? theme.vars.palette.FilledInput.disabledBg : disabledBackground\n },\n variants: [...Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({\n props: {\n color,\n disableUnderline: false\n },\n style: {\n '&::after': {\n // @ts-ignore\n borderBottom: `2px solid ${(theme.vars || theme).palette[color]?.main}`\n }\n }\n })), {\n props: {\n disableUnderline: false\n },\n style: {\n '&::after': {\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${pickersFilledInputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${pickersFilledInputClasses.error}`]: {\n '&:before, &:after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${theme.vars ? `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})` : bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${pickersFilledInputClasses.disabled}, .${pickersFilledInputClasses.error}):before`]: {\n borderBottom: `1px solid ${(theme.vars || theme).palette.text.primary}`\n },\n [`&.${pickersFilledInputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }, {\n props: ({\n startAdornment\n }) => !!startAdornment,\n style: {\n paddingLeft: 12\n }\n }, {\n props: ({\n endAdornment\n }) => !!endAdornment,\n style: {\n paddingRight: 12\n }\n }]\n };\n});\nconst PickersFilledSectionsContainer = styled(PickersInputBaseSectionsContainer, {\n name: 'MuiPickersFilledInput',\n slot: 'sectionsContainer',\n overridesResolver: (props, styles) => styles.sectionsContainer\n})({\n paddingTop: 25,\n paddingRight: 12,\n paddingBottom: 8,\n paddingLeft: 12,\n variants: [{\n props: {\n size: 'small'\n },\n style: {\n paddingTop: 21,\n paddingBottom: 4\n }\n }, {\n props: ({\n startAdornment\n }) => !!startAdornment,\n style: {\n paddingLeft: 0\n }\n }, {\n props: ({\n endAdornment\n }) => !!endAdornment,\n style: {\n paddingRight: 0\n }\n }, {\n props: {\n hiddenLabel: true\n },\n style: {\n paddingTop: 16,\n paddingBottom: 17\n }\n }, {\n props: {\n hiddenLabel: true,\n size: 'small'\n },\n style: {\n paddingTop: 8,\n paddingBottom: 9\n }\n }]\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableUnderline\n } = ownerState;\n const slots = {\n root: ['root', !disableUnderline && 'underline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersFilledInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n/**\n * @ignore - internal component.\n */\nconst PickersFilledInput = /*#__PURE__*/React.forwardRef(function PickersFilledInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersFilledInput'\n });\n const {\n label,\n disableUnderline = false,\n ownerState: ownerStateProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const muiFormControl = useFormControl();\n const ownerState = _extends({}, props, ownerStateProp, muiFormControl, {\n color: muiFormControl?.color || 'primary'\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersFilledInputRoot,\n input: PickersFilledSectionsContainer\n },\n slotProps: {\n root: {\n disableUnderline\n }\n }\n }, other, {\n label: label,\n classes: classes,\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersFilledInput.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 * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\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 * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n disableUnderline: PropTypes.bool,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n hiddenLabel: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\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 value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersFilledInput };\nPickersFilledInput.muiName = 'Input';","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nimport generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport { pickersInputBaseClasses } from \"../PickersInputBase/index.js\";\nexport function getPickersInputUtilityClass(slot) {\n return generateUtilityClass('MuiPickersFilledInput', slot);\n}\nexport const pickersInputClasses = _extends({}, pickersInputBaseClasses, generateUtilityClasses('MuiPickersInput', ['root', 'input']));","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"label\", \"autoFocus\", \"disableUnderline\", \"ownerState\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { useFormControl } from '@mui/material/FormControl';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersInputClasses, getPickersInputUtilityClass } from \"./pickersInputClasses.js\";\nimport { PickersInputBase } from \"../PickersInputBase/index.js\";\nimport { PickersInputBaseRoot } from \"../PickersInputBase/PickersInputBase.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersInputRoot = styled(PickersInputBaseRoot, {\n name: 'MuiPickersInput',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme\n}) => {\n const light = theme.palette.mode === 'light';\n let bottomLineColor = light ? 'rgba(0, 0, 0, 0.42)' : 'rgba(255, 255, 255, 0.7)';\n if (theme.vars) {\n bottomLineColor = `rgba(${theme.vars.palette.common.onBackgroundChannel} / ${theme.vars.opacity.inputUnderline})`;\n }\n return {\n 'label + &': {\n marginTop: 16\n },\n variants: [...Object.keys((theme.vars ?? theme).palette)\n // @ts-ignore\n .filter(key => (theme.vars ?? theme).palette[key].main).map(color => ({\n props: {\n color\n },\n style: {\n '&::after': {\n // @ts-ignore\n borderBottom: `2px solid ${(theme.vars || theme).palette[color].main}`\n }\n }\n })), {\n props: {\n disableUnderline: false\n },\n style: {\n '&::after': {\n background: 'red',\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\"',\n position: 'absolute',\n right: 0,\n transform: 'scaleX(0)',\n transition: theme.transitions.create('transform', {\n duration: theme.transitions.duration.shorter,\n easing: theme.transitions.easing.easeOut\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&.${pickersInputClasses.focused}:after`]: {\n // translateX(0) is a workaround for Safari transform scale bug\n // See https://github.com/mui/material-ui/issues/31766\n transform: 'scaleX(1) translateX(0)'\n },\n [`&.${pickersInputClasses.error}`]: {\n '&:before, &:after': {\n borderBottomColor: (theme.vars || theme).palette.error.main\n }\n },\n '&::before': {\n borderBottom: `1px solid ${bottomLineColor}`,\n left: 0,\n bottom: 0,\n // Doing the other way around crash on IE11 \"''\" https://github.com/cssinjs/jss/issues/242\n content: '\"\\\\00a0\"',\n position: 'absolute',\n right: 0,\n transition: theme.transitions.create('border-bottom-color', {\n duration: theme.transitions.duration.shorter\n }),\n pointerEvents: 'none' // Transparent to the hover style.\n },\n [`&:hover:not(.${pickersInputClasses.disabled}, .${pickersInputClasses.error}):before`]: {\n borderBottom: `2px solid ${(theme.vars || theme).palette.text.primary}`,\n // Reset on touch devices, it doesn't add specificity\n '@media (hover: none)': {\n borderBottom: `1px solid ${bottomLineColor}`\n }\n },\n [`&.${pickersInputClasses.disabled}:before`]: {\n borderBottomStyle: 'dotted'\n }\n }\n }]\n };\n});\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n disableUnderline\n } = ownerState;\n const slots = {\n root: ['root', !disableUnderline && 'underline'],\n input: ['input']\n };\n const composedClasses = composeClasses(slots, getPickersInputUtilityClass, classes);\n return _extends({}, classes, composedClasses);\n};\n/**\n * @ignore - internal component.\n */\nconst PickersInput = /*#__PURE__*/React.forwardRef(function PickersInput(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersInput'\n });\n const {\n label,\n disableUnderline = false,\n ownerState: ownerStateProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const muiFormControl = useFormControl();\n const ownerState = _extends({}, props, ownerStateProp, muiFormControl, {\n disableUnderline,\n color: muiFormControl?.color || 'primary'\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(PickersInputBase, _extends({\n slots: {\n root: PickersInputRoot\n }\n }, other, {\n label: label,\n classes: classes,\n ref: ref\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersInput.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 * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\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 * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n disableUnderline: PropTypes.bool,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n fullWidth: PropTypes.bool,\n id: PropTypes.string,\n inputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n ownerState: PropTypes.any,\n readOnly: PropTypes.bool,\n renderSuffix: PropTypes.func,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * The components used for each slot inside.\n *\n * @default {}\n */\n slots: PropTypes.object,\n startAdornment: PropTypes.node,\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 value: PropTypes.string.isRequired\n} : void 0;\nexport { PickersInput };\nPickersInput.muiName = 'Input';","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onFocus\", \"onBlur\", \"className\", \"color\", \"disabled\", \"error\", \"variant\", \"required\", \"InputProps\", \"inputProps\", \"inputRef\", \"sectionListRef\", \"elements\", \"areAllSectionsEmpty\", \"onClick\", \"onKeyDown\", \"onKeyUp\", \"onPaste\", \"onInput\", \"endAdornment\", \"startAdornment\", \"tabIndex\", \"contentEditable\", \"focused\", \"value\", \"onChange\", \"fullWidth\", \"id\", \"name\", \"helperText\", \"FormHelperTextProps\", \"label\", \"InputLabelProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport useForkRef from '@mui/utils/useForkRef';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport InputLabel from '@mui/material/InputLabel';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormControl from '@mui/material/FormControl';\nimport { getPickersTextFieldUtilityClass } from \"./pickersTextFieldClasses.js\";\nimport { PickersOutlinedInput } from \"./PickersOutlinedInput/index.js\";\nimport { PickersFilledInput } from \"./PickersFilledInput/index.js\";\nimport { PickersInput } from \"./PickersInput/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst VARIANT_COMPONENT = {\n standard: PickersInput,\n filled: PickersFilledInput,\n outlined: PickersOutlinedInput\n};\nconst PickersTextFieldRoot = styled(FormControl, {\n name: 'MuiPickersTextField',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nconst useUtilityClasses = ownerState => {\n const {\n focused,\n disabled,\n classes,\n required\n } = ownerState;\n const slots = {\n root: ['root', focused && !disabled && 'focused', disabled && 'disabled', required && 'required']\n };\n return composeClasses(slots, getPickersTextFieldUtilityClass, classes);\n};\nconst PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersTextField'\n });\n const {\n // Props used by FormControl\n onFocus,\n onBlur,\n className,\n color = 'primary',\n disabled = false,\n error = false,\n variant = 'outlined',\n required = false,\n // Props used by PickersInput\n InputProps,\n inputProps,\n inputRef,\n sectionListRef,\n elements,\n areAllSectionsEmpty,\n onClick,\n onKeyDown,\n onKeyUp,\n onPaste,\n onInput,\n endAdornment,\n startAdornment,\n tabIndex,\n contentEditable,\n focused,\n value,\n onChange,\n fullWidth,\n id: idProp,\n name,\n // Props used by FormHelperText\n helperText,\n FormHelperTextProps,\n // Props used by InputLabel\n label,\n InputLabelProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const rootRef = React.useRef(null);\n const handleRootRef = useForkRef(ref, rootRef);\n const id = useId(idProp);\n const helperTextId = helperText && id ? `${id}-helper-text` : undefined;\n const inputLabelId = label && id ? `${id}-label` : undefined;\n const ownerState = _extends({}, props, {\n color,\n disabled,\n error,\n focused,\n required,\n variant\n });\n const classes = useUtilityClasses(ownerState);\n const PickersInputComponent = VARIANT_COMPONENT[variant];\n return /*#__PURE__*/_jsxs(PickersTextFieldRoot, _extends({\n className: clsx(classes.root, className),\n ref: handleRootRef,\n focused: focused,\n onFocus: onFocus,\n onBlur: onBlur,\n disabled: disabled,\n variant: variant,\n error: error,\n color: color,\n fullWidth: fullWidth,\n required: required,\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(InputLabel, _extends({\n htmlFor: id,\n id: inputLabelId\n }, InputLabelProps, {\n children: label\n })), /*#__PURE__*/_jsx(PickersInputComponent, _extends({\n elements: elements,\n areAllSectionsEmpty: areAllSectionsEmpty,\n onClick: onClick,\n onKeyDown: onKeyDown,\n onKeyUp: onKeyUp,\n onInput: onInput,\n onPaste: onPaste,\n endAdornment: endAdornment,\n startAdornment: startAdornment,\n tabIndex: tabIndex,\n contentEditable: contentEditable,\n value: value,\n onChange: onChange,\n id: id,\n fullWidth: fullWidth,\n inputProps: inputProps,\n inputRef: inputRef,\n sectionListRef: sectionListRef,\n label: label,\n name: name,\n role: \"group\",\n \"aria-labelledby\": inputLabelId\n }, InputProps)), helperText && /*#__PURE__*/_jsx(FormHelperText, _extends({\n id: helperTextId\n }, FormHelperTextProps, {\n children: helperText\n }))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersTextField.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 * Is `true` if the current values equals the empty value.\n * For a single item value, it means that `value === null`\n * For a range value, it means that `value === [null, null]`\n */\n areAllSectionsEmpty: PropTypes.bool.isRequired,\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 * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * If true, the whole element is editable.\n * Useful when all the sections are selected.\n */\n contentEditable: PropTypes.bool.isRequired,\n disabled: PropTypes.bool.isRequired,\n /**\n * The elements to render.\n * Each element contains the prop to edit a section of the value.\n */\n elements: PropTypes.arrayOf(PropTypes.shape({\n after: PropTypes.object.isRequired,\n before: PropTypes.object.isRequired,\n container: PropTypes.object.isRequired,\n content: PropTypes.object.isRequired\n })).isRequired,\n endAdornment: PropTypes.node,\n error: PropTypes.bool.isRequired,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n FormHelperTextProps: PropTypes.object,\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n id: PropTypes.string,\n InputLabelProps: PropTypes.object,\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](/material-ui/api/filled-input/),\n * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)\n * component depending on the `variant` prop value.\n */\n InputProps: PropTypes.object,\n inputRef: refType,\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n name: PropTypes.string,\n onBlur: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onClick: PropTypes.func.isRequired,\n onFocus: PropTypes.func.isRequired,\n onInput: PropTypes.func.isRequired,\n onKeyDown: PropTypes.func.isRequired,\n onPaste: PropTypes.func.isRequired,\n readOnly: PropTypes.bool,\n /**\n * If `true`, the label will indicate that the `input` is required.\n * @default false\n */\n required: PropTypes.bool,\n sectionListRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n getRoot: PropTypes.func.isRequired,\n getSectionContainer: PropTypes.func.isRequired,\n getSectionContent: PropTypes.func.isRequired,\n getSectionIndexFromDOMElement: PropTypes.func.isRequired\n })\n })]),\n /**\n * The size of the component.\n * @default 'medium'\n */\n size: PropTypes.oneOf(['medium', 'small']),\n startAdornment: PropTypes.node,\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 value: PropTypes.string.isRequired,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { PickersTextField };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"enableAccessibleFieldDOMStructure\"],\n _excluded2 = [\"InputProps\", \"readOnly\"],\n _excluded3 = [\"onPaste\", \"onKeyDown\", \"inputMode\", \"readOnly\", \"InputProps\", \"inputProps\", \"inputRef\"];\nexport const convertFieldResponseIntoMuiTextFieldProps = _ref => {\n let {\n enableAccessibleFieldDOMStructure\n } = _ref,\n fieldResponse = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (enableAccessibleFieldDOMStructure) {\n const {\n InputProps,\n readOnly\n } = fieldResponse,\n other = _objectWithoutPropertiesLoose(fieldResponse, _excluded2);\n return _extends({}, other, {\n InputProps: _extends({}, InputProps ?? {}, {\n readOnly\n })\n });\n }\n const {\n onPaste,\n onKeyDown,\n inputMode,\n readOnly,\n InputProps,\n inputProps,\n inputRef\n } = fieldResponse,\n other = _objectWithoutPropertiesLoose(fieldResponse, _excluded3);\n return _extends({}, other, {\n InputProps: _extends({}, InputProps ?? {}, {\n readOnly\n }),\n inputProps: _extends({}, inputProps ?? {}, {\n inputMode,\n onPaste,\n onKeyDown,\n ref: inputRef\n })\n });\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"slots\", \"slotProps\", \"InputProps\", \"inputProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport MuiTextField from '@mui/material/TextField';\nimport { useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { refType } from '@mui/utils';\nimport { useDateField } from \"./useDateField.js\";\nimport { useClearableField } from \"../hooks/index.js\";\nimport { PickersTextField } from \"../PickersTextField/index.js\";\nimport { convertFieldResponseIntoMuiTextFieldProps } from \"../internals/utils/convertFieldResponseIntoMuiTextFieldProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DateField](http://mui.com/x/react-date-pickers/date-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [DateField API](https://mui.com/x/api/date-pickers/date-field/)\n */\nconst DateField = /*#__PURE__*/React.forwardRef(function DateField(inProps, inRef) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiDateField'\n });\n const {\n slots,\n slotProps,\n InputProps,\n inputProps\n } = themeProps,\n other = _objectWithoutPropertiesLoose(themeProps, _excluded);\n const ownerState = themeProps;\n const TextField = slots?.textField ?? (inProps.enableAccessibleFieldDOMStructure ? PickersTextField : MuiTextField);\n const textFieldProps = useSlotProps({\n elementType: TextField,\n externalSlotProps: slotProps?.textField,\n externalForwardedProps: other,\n additionalProps: {\n ref: inRef\n },\n ownerState\n });\n\n // TODO: Remove when mui/material-ui#35088 will be merged\n textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);\n textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);\n const fieldResponse = useDateField(textFieldProps);\n const convertedFieldResponse = convertFieldResponseIntoMuiTextFieldProps(fieldResponse);\n const processedFieldProps = useClearableField(_extends({}, convertedFieldResponse, {\n slots,\n slotProps\n }));\n return /*#__PURE__*/_jsx(TextField, _extends({}, processedFieldProps));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateField.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 * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, a clear button will be shown in the field allowing value clearing.\n * @default false\n */\n clearable: PropTypes.bool,\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 * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](/material-ui/api/filled-input/),\n * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)\n * component depending on the `variant` prop value.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the clear button is clicked.\n */\n onClear: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The size of the component.\n */\n size: PropTypes.oneOf(['medium', 'small']),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The ref object used to imperatively interact with the field.\n */\n unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { DateField };","'use client';\n\nimport { singleItemFieldValueManager, singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useField } from \"../internals/hooks/useField/index.js\";\nimport { validateTime } from \"../validation/index.js\";\nimport { useSplitFieldProps } from \"../hooks/index.js\";\nimport { useDefaultizedTimeField } from \"../internals/hooks/defaultizedFieldProps.js\";\nexport const useTimeField = inProps => {\n const props = useDefaultizedTimeField(inProps);\n const {\n forwardedProps,\n internalProps\n } = useSplitFieldProps(props, 'time');\n return useField({\n forwardedProps,\n internalProps,\n valueManager: singleItemValueManager,\n fieldValueManager: singleItemFieldValueManager,\n validator: validateTime,\n valueType: 'time'\n });\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"slots\", \"slotProps\", \"InputProps\", \"inputProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport MuiTextField from '@mui/material/TextField';\nimport { useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { refType } from '@mui/utils';\nimport { useTimeField } from \"./useTimeField.js\";\nimport { useClearableField } from \"../hooks/index.js\";\nimport { PickersTextField } from \"../PickersTextField/index.js\";\nimport { convertFieldResponseIntoMuiTextFieldProps } from \"../internals/utils/convertFieldResponseIntoMuiTextFieldProps.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [TimeField](http://mui.com/x/react-date-pickers/time-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [TimeField API](https://mui.com/x/api/date-pickers/time-field/)\n */\nconst TimeField = /*#__PURE__*/React.forwardRef(function TimeField(inProps, inRef) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiTimeField'\n });\n const {\n slots,\n slotProps,\n InputProps,\n inputProps\n } = themeProps,\n other = _objectWithoutPropertiesLoose(themeProps, _excluded);\n const ownerState = themeProps;\n const TextField = slots?.textField ?? (inProps.enableAccessibleFieldDOMStructure ? PickersTextField : MuiTextField);\n const textFieldProps = useSlotProps({\n elementType: TextField,\n externalSlotProps: slotProps?.textField,\n externalForwardedProps: other,\n ownerState,\n additionalProps: {\n ref: inRef\n }\n });\n\n // TODO: Remove when mui/material-ui#35088 will be merged\n textFieldProps.inputProps = _extends({}, inputProps, textFieldProps.inputProps);\n textFieldProps.InputProps = _extends({}, InputProps, textFieldProps.InputProps);\n const fieldResponse = useTimeField(textFieldProps);\n const convertedFieldResponse = convertFieldResponseIntoMuiTextFieldProps(fieldResponse);\n const processedFieldProps = useClearableField(_extends({}, convertedFieldResponse, {\n slots,\n slotProps\n }));\n return /*#__PURE__*/_jsx(TextField, _extends({}, processedFieldProps));\n});\nprocess.env.NODE_ENV !== \"production\" ? TimeField.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * If `true`, the `input` element is focused during the first mount.\n * @default false\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, a clear button will be shown in the field allowing value clearing.\n * @default false\n */\n clearable: PropTypes.bool,\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 * @default 'primary'\n */\n color: PropTypes.oneOf(['error', 'info', 'primary', 'secondary', 'success', 'warning']),\n component: PropTypes.elementType,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * If `true`, the component is displayed in focused state.\n */\n focused: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Props applied to the [`FormHelperText`](/material-ui/api/form-helper-text/) element.\n */\n FormHelperTextProps: PropTypes.object,\n /**\n * If `true`, the input will take up the full width of its container.\n * @default false\n */\n fullWidth: PropTypes.bool,\n /**\n * The helper text content.\n */\n helperText: PropTypes.node,\n /**\n * If `true`, the label is hidden.\n * This is used to increase density for a `FilledInput`.\n * Be sure to add `aria-label` to the `input` element.\n * @default false\n */\n hiddenLabel: PropTypes.bool,\n /**\n * The id of the `input` element.\n * Use this prop to make `label` and `helperText` accessible for screen readers.\n */\n id: PropTypes.string,\n /**\n * Props applied to the [`InputLabel`](/material-ui/api/input-label/) element.\n * Pointer events like `onClick` are enabled if and only if `shrink` is `true`.\n */\n InputLabelProps: PropTypes.object,\n /**\n * [Attributes](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#Attributes) applied to the `input` element.\n */\n inputProps: PropTypes.object,\n /**\n * Props applied to the Input element.\n * It will be a [`FilledInput`](/material-ui/api/filled-input/),\n * [`OutlinedInput`](/material-ui/api/outlined-input/) or [`Input`](/material-ui/api/input/)\n * component depending on the `variant` prop value.\n */\n InputProps: PropTypes.object,\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `dense` or `normal`, will adjust vertical spacing of this and contained components.\n * @default 'none'\n */\n margin: PropTypes.oneOf(['dense', 'none', 'normal']),\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute of the `input` element.\n */\n name: PropTypes.string,\n onBlur: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the clear button is clicked.\n */\n onClear: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n onFocus: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * If `true`, the label is displayed as required and the `input` element is required.\n * @default false\n */\n required: PropTypes.bool,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The size of the component.\n */\n size: PropTypes.oneOf(['medium', 'small']),\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The ref object used to imperatively interact with the field.\n */\n unstableFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The variant to use.\n * @default 'outlined'\n */\n variant: PropTypes.oneOf(['filled', 'outlined', 'standard'])\n} : void 0;\nexport { TimeField };","'use client';\n\nimport * as React from 'react';\nimport { validateDate } from \"../validation/index.js\";\nimport { useLocalizationContext } from \"../internals/hooks/useUtils.js\";\nexport const useIsDateDisabled = ({\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disableFuture,\n disablePast,\n timezone\n}) => {\n const adapter = useLocalizationContext();\n return React.useCallback(day => validateDate({\n adapter,\n value: day,\n timezone,\n props: {\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disableFuture,\n disablePast\n }\n }) !== null, [adapter, shouldDisableDate, shouldDisableMonth, shouldDisableYear, minDate, maxDate, disableFuture, disablePast, timezone]);\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useIsDateDisabled } from \"./useIsDateDisabled.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nexport const createCalendarStateReducer = (reduceAnimations, disableSwitchToMonthOnDayFocus, utils) => (state, action) => {\n switch (action.type) {\n case 'changeMonth':\n return _extends({}, state, {\n slideDirection: action.direction,\n currentMonth: action.newMonth,\n isMonthSwitchingAnimating: !reduceAnimations\n });\n case 'changeMonthTimezone':\n {\n const newTimezone = action.newTimezone;\n if (utils.getTimezone(state.currentMonth) === newTimezone) {\n return state;\n }\n let newCurrentMonth = utils.setTimezone(state.currentMonth, newTimezone);\n if (utils.getMonth(newCurrentMonth) !== utils.getMonth(state.currentMonth)) {\n newCurrentMonth = utils.setMonth(newCurrentMonth, utils.getMonth(state.currentMonth));\n }\n return _extends({}, state, {\n currentMonth: newCurrentMonth\n });\n }\n case 'finishMonthSwitchingAnimation':\n return _extends({}, state, {\n isMonthSwitchingAnimating: false\n });\n case 'changeFocusedDay':\n {\n if (state.focusedDay != null && action.focusedDay != null && utils.isSameDay(action.focusedDay, state.focusedDay)) {\n return state;\n }\n const needMonthSwitch = action.focusedDay != null && !disableSwitchToMonthOnDayFocus && !utils.isSameMonth(state.currentMonth, action.focusedDay);\n return _extends({}, state, {\n focusedDay: action.focusedDay,\n isMonthSwitchingAnimating: needMonthSwitch && !reduceAnimations && !action.withoutMonthSwitchingAnimation,\n currentMonth: needMonthSwitch ? utils.startOfMonth(action.focusedDay) : state.currentMonth,\n slideDirection: action.focusedDay != null && utils.isAfterDay(action.focusedDay, state.currentMonth) ? 'left' : 'right'\n });\n }\n default:\n throw new Error('missing support');\n }\n};\nexport const useCalendarState = params => {\n const {\n value,\n referenceDate: referenceDateProp,\n disableFuture,\n disablePast,\n disableSwitchToMonthOnDayFocus = false,\n maxDate,\n minDate,\n onMonthChange,\n reduceAnimations,\n shouldDisableDate,\n timezone\n } = params;\n const utils = useUtils();\n const reducerFn = React.useRef(createCalendarStateReducer(Boolean(reduceAnimations), disableSwitchToMonthOnDayFocus, utils)).current;\n const referenceDate = React.useMemo(() => {\n return singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n timezone,\n props: params,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.day\n });\n },\n // We want the `referenceDate` to update on prop and `timezone` change (https://github.com/mui/mui-x/issues/10804)\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [referenceDateProp, timezone]);\n const [calendarState, dispatch] = React.useReducer(reducerFn, {\n isMonthSwitchingAnimating: false,\n focusedDay: referenceDate,\n currentMonth: utils.startOfMonth(referenceDate),\n slideDirection: 'left'\n });\n\n // Ensure that `calendarState.currentMonth` timezone is updated when `referenceDate` (or timezone changes)\n // https://github.com/mui/mui-x/issues/10804\n React.useEffect(() => {\n dispatch({\n type: 'changeMonthTimezone',\n newTimezone: utils.getTimezone(referenceDate)\n });\n }, [referenceDate, utils]);\n const handleChangeMonth = React.useCallback(payload => {\n dispatch(_extends({\n type: 'changeMonth'\n }, payload));\n if (onMonthChange) {\n onMonthChange(payload.newMonth);\n }\n }, [onMonthChange]);\n const changeMonth = React.useCallback(newDate => {\n const newDateRequested = newDate;\n if (utils.isSameMonth(newDateRequested, calendarState.currentMonth)) {\n return;\n }\n handleChangeMonth({\n newMonth: utils.startOfMonth(newDateRequested),\n direction: utils.isAfterDay(newDateRequested, calendarState.currentMonth) ? 'left' : 'right'\n });\n }, [calendarState.currentMonth, handleChangeMonth, utils]);\n const isDateDisabled = useIsDateDisabled({\n shouldDisableDate,\n minDate,\n maxDate,\n disableFuture,\n disablePast,\n timezone\n });\n const onMonthSwitchingAnimationEnd = React.useCallback(() => {\n dispatch({\n type: 'finishMonthSwitchingAnimation'\n });\n }, []);\n const changeFocusedDay = useEventCallback((newFocusedDate, withoutMonthSwitchingAnimation) => {\n if (!isDateDisabled(newFocusedDate)) {\n dispatch({\n type: 'changeFocusedDay',\n focusedDay: newFocusedDate,\n withoutMonthSwitchingAnimation\n });\n }\n });\n return {\n referenceDate,\n calendarState,\n changeMonth,\n changeFocusedDay,\n isDateDisabled,\n onMonthSwitchingAnimationEnd,\n handleChangeMonth\n };\n};","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersFadeTransitionGroupUtilityClass = slot => generateUtilityClass('MuiPickersFadeTransitionGroup', slot);\nexport const pickersFadeTransitionGroupClasses = generateUtilityClasses('MuiPickersFadeTransitionGroup', ['root']);","import * as React from 'react';\nimport clsx from 'clsx';\nimport { TransitionGroup } from 'react-transition-group';\nimport Fade from '@mui/material/Fade';\nimport { styled, useTheme, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { getPickersFadeTransitionGroupUtilityClass } from \"./pickersFadeTransitionGroupClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPickersFadeTransitionGroupUtilityClass, classes);\n};\nconst PickersFadeTransitionGroupRoot = styled(TransitionGroup, {\n name: 'MuiPickersFadeTransitionGroup',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({\n display: 'block',\n position: 'relative'\n});\n\n/**\n * @ignore - do not document.\n */\nexport function PickersFadeTransitionGroup(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersFadeTransitionGroup'\n });\n const {\n children,\n className,\n reduceAnimations,\n transKey\n } = props;\n const classes = useUtilityClasses(props);\n const theme = useTheme();\n if (reduceAnimations) {\n return children;\n }\n return /*#__PURE__*/_jsx(PickersFadeTransitionGroupRoot, {\n className: clsx(classes.root, className),\n children: /*#__PURE__*/_jsx(Fade, {\n appear: false,\n mountOnEnter: true,\n unmountOnExit: true,\n timeout: {\n appear: theme.transitions.duration.enteringScreen,\n enter: theme.transitions.duration.enteringScreen,\n exit: 0\n },\n children: children\n }, transKey)\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersSlideTransitionUtilityClass = slot => generateUtilityClass('MuiPickersSlideTransition', slot);\nexport const pickersSlideTransitionClasses = generateUtilityClasses('MuiPickersSlideTransition', ['root', 'slideEnter-left', 'slideEnter-right', 'slideEnterActive', 'slideExit', 'slideExitActiveLeft-left', 'slideExitActiveLeft-right']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"reduceAnimations\", \"slideDirection\", \"transKey\", \"classes\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, useTheme, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { CSSTransition, TransitionGroup } from 'react-transition-group';\nimport { getPickersSlideTransitionUtilityClass, pickersSlideTransitionClasses } from \"./pickersSlideTransitionClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n slideDirection\n } = ownerState;\n const slots = {\n root: ['root'],\n exit: ['slideExit'],\n enterActive: ['slideEnterActive'],\n enter: [`slideEnter-${slideDirection}`],\n exitActive: [`slideExitActiveLeft-${slideDirection}`]\n };\n return composeClasses(slots, getPickersSlideTransitionUtilityClass, classes);\n};\nconst PickersSlideTransitionRoot = styled(TransitionGroup, {\n name: 'MuiPickersSlideTransition',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root, {\n [`.${pickersSlideTransitionClasses['slideEnter-left']}`]: styles['slideEnter-left']\n }, {\n [`.${pickersSlideTransitionClasses['slideEnter-right']}`]: styles['slideEnter-right']\n }, {\n [`.${pickersSlideTransitionClasses.slideEnterActive}`]: styles.slideEnterActive\n }, {\n [`.${pickersSlideTransitionClasses.slideExit}`]: styles.slideExit\n }, {\n [`.${pickersSlideTransitionClasses['slideExitActiveLeft-left']}`]: styles['slideExitActiveLeft-left']\n }, {\n [`.${pickersSlideTransitionClasses['slideExitActiveLeft-right']}`]: styles['slideExitActiveLeft-right']\n }]\n})(({\n theme\n}) => {\n const slideTransition = theme.transitions.create('transform', {\n duration: theme.transitions.duration.complex,\n easing: 'cubic-bezier(0.35, 0.8, 0.4, 1)'\n });\n return {\n display: 'block',\n position: 'relative',\n overflowX: 'hidden',\n '& > *': {\n position: 'absolute',\n top: 0,\n right: 0,\n left: 0\n },\n [`& .${pickersSlideTransitionClasses['slideEnter-left']}`]: {\n willChange: 'transform',\n transform: 'translate(100%)',\n zIndex: 1\n },\n [`& .${pickersSlideTransitionClasses['slideEnter-right']}`]: {\n willChange: 'transform',\n transform: 'translate(-100%)',\n zIndex: 1\n },\n [`& .${pickersSlideTransitionClasses.slideEnterActive}`]: {\n transform: 'translate(0%)',\n transition: slideTransition\n },\n [`& .${pickersSlideTransitionClasses.slideExit}`]: {\n transform: 'translate(0%)'\n },\n [`& .${pickersSlideTransitionClasses['slideExitActiveLeft-left']}`]: {\n willChange: 'transform',\n transform: 'translate(-100%)',\n transition: slideTransition,\n zIndex: 0\n },\n [`& .${pickersSlideTransitionClasses['slideExitActiveLeft-right']}`]: {\n willChange: 'transform',\n transform: 'translate(100%)',\n transition: slideTransition,\n zIndex: 0\n }\n };\n});\n\n/**\n * @ignore - do not document.\n */\nexport function PickersSlideTransition(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersSlideTransition'\n });\n const {\n children,\n className,\n reduceAnimations,\n transKey\n // extracting `classes` from `other`\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(props);\n const theme = useTheme();\n if (reduceAnimations) {\n return /*#__PURE__*/_jsx(\"div\", {\n className: clsx(classes.root, className),\n children: children\n });\n }\n const transitionClasses = {\n exit: classes.exit,\n enterActive: classes.enterActive,\n enter: classes.enter,\n exitActive: classes.exitActive\n };\n return /*#__PURE__*/_jsx(PickersSlideTransitionRoot, {\n className: clsx(classes.root, className),\n childFactory: element => /*#__PURE__*/React.cloneElement(element, {\n classNames: transitionClasses\n }),\n role: \"presentation\",\n children: /*#__PURE__*/_jsx(CSSTransition, _extends({\n mountOnEnter: true,\n unmountOnExit: true,\n timeout: theme.transitions.duration.complex,\n classNames: transitionClasses\n }, other, {\n children: children\n }), transKey)\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getDayCalendarUtilityClass = slot => generateUtilityClass('MuiDayCalendar', slot);\nexport const dayCalendarClasses = generateUtilityClasses('MuiDayCalendar', ['root', 'header', 'weekDayLabel', 'loadingContainer', 'slideTransition', 'monthContainer', 'weekContainer', 'weekNumberLabel', 'weekNumber']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"parentProps\", \"day\", \"focusableDay\", \"selectedDays\", \"isDateDisabled\", \"currentMonthNumber\", \"isViewFocused\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport Typography from '@mui/material/Typography';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_composeClasses as composeClasses, unstable_useControlled as useControlled } from '@mui/utils';\nimport clsx from 'clsx';\nimport { PickersDay } from \"../PickersDay/PickersDay.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils, useNow } from \"../internals/hooks/useUtils.js\";\nimport { DAY_SIZE, DAY_MARGIN } from \"../internals/constants/dimensions.js\";\nimport { PickersSlideTransition } from \"./PickersSlideTransition.js\";\nimport { useIsDateDisabled } from \"./useIsDateDisabled.js\";\nimport { findClosestEnabledDate, getWeekdays } from \"../internals/utils/date-utils.js\";\nimport { getDayCalendarUtilityClass } from \"./dayCalendarClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n header: ['header'],\n weekDayLabel: ['weekDayLabel'],\n loadingContainer: ['loadingContainer'],\n slideTransition: ['slideTransition'],\n monthContainer: ['monthContainer'],\n weekContainer: ['weekContainer'],\n weekNumberLabel: ['weekNumberLabel'],\n weekNumber: ['weekNumber']\n };\n return composeClasses(slots, getDayCalendarUtilityClass, classes);\n};\nconst weeksContainerHeight = (DAY_SIZE + DAY_MARGIN * 2) * 6;\nconst PickersCalendarDayRoot = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({});\nconst PickersCalendarDayHeader = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'Header',\n overridesResolver: (_, styles) => styles.header\n})({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center'\n});\nconst PickersCalendarWeekDayLabel = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekDayLabel',\n overridesResolver: (_, styles) => styles.weekDayLabel\n})(({\n theme\n}) => ({\n width: 36,\n height: 40,\n margin: '0 2px',\n textAlign: 'center',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: (theme.vars || theme).palette.text.secondary\n}));\nconst PickersCalendarWeekNumberLabel = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekNumberLabel',\n overridesResolver: (_, styles) => styles.weekNumberLabel\n})(({\n theme\n}) => ({\n width: 36,\n height: 40,\n margin: '0 2px',\n textAlign: 'center',\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n color: theme.palette.text.disabled\n}));\nconst PickersCalendarWeekNumber = styled(Typography, {\n name: 'MuiDayCalendar',\n slot: 'WeekNumber',\n overridesResolver: (_, styles) => styles.weekNumber\n})(({\n theme\n}) => _extends({}, theme.typography.caption, {\n width: DAY_SIZE,\n height: DAY_SIZE,\n padding: 0,\n margin: `0 ${DAY_MARGIN}px`,\n color: theme.palette.text.disabled,\n fontSize: '0.75rem',\n alignItems: 'center',\n justifyContent: 'center',\n display: 'inline-flex'\n}));\nconst PickersCalendarLoadingContainer = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'LoadingContainer',\n overridesResolver: (_, styles) => styles.loadingContainer\n})({\n display: 'flex',\n justifyContent: 'center',\n alignItems: 'center',\n minHeight: weeksContainerHeight\n});\nconst PickersCalendarSlideTransition = styled(PickersSlideTransition, {\n name: 'MuiDayCalendar',\n slot: 'SlideTransition',\n overridesResolver: (_, styles) => styles.slideTransition\n})({\n minHeight: weeksContainerHeight\n});\nconst PickersCalendarWeekContainer = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'MonthContainer',\n overridesResolver: (_, styles) => styles.monthContainer\n})({\n overflow: 'hidden'\n});\nconst PickersCalendarWeek = styled('div', {\n name: 'MuiDayCalendar',\n slot: 'WeekContainer',\n overridesResolver: (_, styles) => styles.weekContainer\n})({\n margin: `${DAY_MARGIN}px 0`,\n display: 'flex',\n justifyContent: 'center'\n});\nfunction WrappedDay(_ref) {\n let {\n parentProps,\n day,\n focusableDay,\n selectedDays,\n isDateDisabled,\n currentMonthNumber,\n isViewFocused\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n disabled,\n disableHighlightToday,\n isMonthSwitchingAnimating,\n showDaysOutsideCurrentMonth,\n slots,\n slotProps,\n timezone\n } = parentProps;\n const utils = useUtils();\n const now = useNow(timezone);\n const isFocusableDay = focusableDay !== null && utils.isSameDay(day, focusableDay);\n const isSelected = selectedDays.some(selectedDay => utils.isSameDay(selectedDay, day));\n const isToday = utils.isSameDay(day, now);\n const Day = slots?.day ?? PickersDay;\n // We don't want to pass to ownerState down, to avoid re-rendering all the day whenever a prop changes.\n const _useSlotProps = useSlotProps({\n elementType: Day,\n externalSlotProps: slotProps?.day,\n additionalProps: _extends({\n disableHighlightToday,\n showDaysOutsideCurrentMonth,\n role: 'gridcell',\n isAnimating: isMonthSwitchingAnimating,\n // it is used in date range dragging logic by accessing `dataset.timestamp`\n 'data-timestamp': utils.toJsDate(day).valueOf()\n }, other),\n ownerState: _extends({}, parentProps, {\n day,\n selected: isSelected\n })\n }),\n dayProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const isDisabled = React.useMemo(() => disabled || isDateDisabled(day), [disabled, isDateDisabled, day]);\n const outsideCurrentMonth = React.useMemo(() => utils.getMonth(day) !== currentMonthNumber, [utils, day, currentMonthNumber]);\n const isFirstVisibleCell = React.useMemo(() => {\n const startOfMonth = utils.startOfMonth(utils.setMonth(day, currentMonthNumber));\n if (!showDaysOutsideCurrentMonth) {\n return utils.isSameDay(day, startOfMonth);\n }\n return utils.isSameDay(day, utils.startOfWeek(startOfMonth));\n }, [currentMonthNumber, day, showDaysOutsideCurrentMonth, utils]);\n const isLastVisibleCell = React.useMemo(() => {\n const endOfMonth = utils.endOfMonth(utils.setMonth(day, currentMonthNumber));\n if (!showDaysOutsideCurrentMonth) {\n return utils.isSameDay(day, endOfMonth);\n }\n return utils.isSameDay(day, utils.endOfWeek(endOfMonth));\n }, [currentMonthNumber, day, showDaysOutsideCurrentMonth, utils]);\n return /*#__PURE__*/_jsx(Day, _extends({}, dayProps, {\n day: day,\n disabled: isDisabled,\n autoFocus: isViewFocused && isFocusableDay,\n today: isToday,\n outsideCurrentMonth: outsideCurrentMonth,\n isFirstVisibleCell: isFirstVisibleCell,\n isLastVisibleCell: isLastVisibleCell,\n selected: isSelected,\n tabIndex: isFocusableDay ? 0 : -1,\n \"aria-selected\": isSelected,\n \"aria-current\": isToday ? 'date' : undefined\n }));\n}\n\n/**\n * @ignore - do not document.\n */\nexport function DayCalendar(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDayCalendar'\n });\n const utils = useUtils();\n const {\n onFocusedDayChange,\n className,\n currentMonth,\n selectedDays,\n focusedDay,\n loading,\n onSelectedDaysChange,\n onMonthSwitchingAnimationEnd,\n readOnly,\n reduceAnimations,\n renderLoading = () => /*#__PURE__*/_jsx(\"span\", {\n children: \"...\"\n }),\n slideDirection,\n TransitionProps,\n disablePast,\n disableFuture,\n minDate,\n maxDate,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n dayOfWeekFormatter = date => utils.format(date, 'weekdayShort').charAt(0).toUpperCase(),\n hasFocus,\n onFocusedViewChange,\n gridLabelId,\n displayWeekNumber,\n fixedWeekNumber,\n autoFocus,\n timezone\n } = props;\n const now = useNow(timezone);\n const classes = useUtilityClasses(props);\n const isRtl = useRtl();\n const isDateDisabled = useIsDateDisabled({\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n minDate,\n maxDate,\n disablePast,\n disableFuture,\n timezone\n });\n const translations = usePickersTranslations();\n const [internalHasFocus, setInternalHasFocus] = useControlled({\n name: 'DayCalendar',\n state: 'hasFocus',\n controlled: hasFocus,\n default: autoFocus ?? false\n });\n const [internalFocusedDay, setInternalFocusedDay] = React.useState(() => focusedDay || now);\n const handleDaySelect = useEventCallback(day => {\n if (readOnly) {\n return;\n }\n onSelectedDaysChange(day);\n });\n const focusDay = day => {\n if (!isDateDisabled(day)) {\n onFocusedDayChange(day);\n setInternalFocusedDay(day);\n onFocusedViewChange?.(true);\n setInternalHasFocus(true);\n }\n };\n const handleKeyDown = useEventCallback((event, day) => {\n switch (event.key) {\n case 'ArrowUp':\n focusDay(utils.addDays(day, -7));\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusDay(utils.addDays(day, 7));\n event.preventDefault();\n break;\n case 'ArrowLeft':\n {\n const newFocusedDayDefault = utils.addDays(day, isRtl ? 1 : -1);\n const nextAvailableMonth = utils.addMonths(day, isRtl ? 1 : -1);\n const closestDayToFocus = findClosestEnabledDate({\n utils,\n date: newFocusedDayDefault,\n minDate: isRtl ? newFocusedDayDefault : utils.startOfMonth(nextAvailableMonth),\n maxDate: isRtl ? utils.endOfMonth(nextAvailableMonth) : newFocusedDayDefault,\n isDateDisabled,\n timezone\n });\n focusDay(closestDayToFocus || newFocusedDayDefault);\n event.preventDefault();\n break;\n }\n case 'ArrowRight':\n {\n const newFocusedDayDefault = utils.addDays(day, isRtl ? -1 : 1);\n const nextAvailableMonth = utils.addMonths(day, isRtl ? -1 : 1);\n const closestDayToFocus = findClosestEnabledDate({\n utils,\n date: newFocusedDayDefault,\n minDate: isRtl ? utils.startOfMonth(nextAvailableMonth) : newFocusedDayDefault,\n maxDate: isRtl ? newFocusedDayDefault : utils.endOfMonth(nextAvailableMonth),\n isDateDisabled,\n timezone\n });\n focusDay(closestDayToFocus || newFocusedDayDefault);\n event.preventDefault();\n break;\n }\n case 'Home':\n focusDay(utils.startOfWeek(day));\n event.preventDefault();\n break;\n case 'End':\n focusDay(utils.endOfWeek(day));\n event.preventDefault();\n break;\n case 'PageUp':\n focusDay(utils.addMonths(day, 1));\n event.preventDefault();\n break;\n case 'PageDown':\n focusDay(utils.addMonths(day, -1));\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleFocus = useEventCallback((event, day) => focusDay(day));\n const handleBlur = useEventCallback((event, day) => {\n if (internalHasFocus && utils.isSameDay(internalFocusedDay, day)) {\n onFocusedViewChange?.(false);\n }\n });\n const currentMonthNumber = utils.getMonth(currentMonth);\n const currentYearNumber = utils.getYear(currentMonth);\n const validSelectedDays = React.useMemo(() => selectedDays.filter(day => !!day).map(day => utils.startOfDay(day)), [utils, selectedDays]);\n\n // need a new ref whenever the `key` of the transition changes: https://reactcommunity.org/react-transition-group/transition/#Transition-prop-nodeRef.\n const transitionKey = `${currentYearNumber}-${currentMonthNumber}`;\n // eslint-disable-next-line react-hooks/exhaustive-deps\n const slideNodeRef = React.useMemo(() => /*#__PURE__*/React.createRef(), [transitionKey]);\n const focusableDay = React.useMemo(() => {\n const startOfMonth = utils.startOfMonth(currentMonth);\n const endOfMonth = utils.endOfMonth(currentMonth);\n if (isDateDisabled(internalFocusedDay) || utils.isAfterDay(internalFocusedDay, endOfMonth) || utils.isBeforeDay(internalFocusedDay, startOfMonth)) {\n return findClosestEnabledDate({\n utils,\n date: internalFocusedDay,\n minDate: startOfMonth,\n maxDate: endOfMonth,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n });\n }\n return internalFocusedDay;\n }, [currentMonth, disableFuture, disablePast, internalFocusedDay, isDateDisabled, utils, timezone]);\n const weeksToDisplay = React.useMemo(() => {\n const toDisplay = utils.getWeekArray(currentMonth);\n let nextMonth = utils.addMonths(currentMonth, 1);\n while (fixedWeekNumber && toDisplay.length < fixedWeekNumber) {\n const additionalWeeks = utils.getWeekArray(nextMonth);\n const hasCommonWeek = utils.isSameDay(toDisplay[toDisplay.length - 1][0], additionalWeeks[0][0]);\n additionalWeeks.slice(hasCommonWeek ? 1 : 0).forEach(week => {\n if (toDisplay.length < fixedWeekNumber) {\n toDisplay.push(week);\n }\n });\n nextMonth = utils.addMonths(nextMonth, 1);\n }\n return toDisplay;\n }, [currentMonth, fixedWeekNumber, utils]);\n return /*#__PURE__*/_jsxs(PickersCalendarDayRoot, {\n role: \"grid\",\n \"aria-labelledby\": gridLabelId,\n className: classes.root,\n children: [/*#__PURE__*/_jsxs(PickersCalendarDayHeader, {\n role: \"row\",\n className: classes.header,\n children: [displayWeekNumber && /*#__PURE__*/_jsx(PickersCalendarWeekNumberLabel, {\n variant: \"caption\",\n role: \"columnheader\",\n \"aria-label\": translations.calendarWeekNumberHeaderLabel,\n className: classes.weekNumberLabel,\n children: translations.calendarWeekNumberHeaderText\n }), getWeekdays(utils, now).map((weekday, i) => /*#__PURE__*/_jsx(PickersCalendarWeekDayLabel, {\n variant: \"caption\",\n role: \"columnheader\",\n \"aria-label\": utils.format(weekday, 'weekday'),\n className: classes.weekDayLabel,\n children: dayOfWeekFormatter(weekday)\n }, i.toString()))]\n }), loading ? /*#__PURE__*/_jsx(PickersCalendarLoadingContainer, {\n className: classes.loadingContainer,\n children: renderLoading()\n }) : /*#__PURE__*/_jsx(PickersCalendarSlideTransition, _extends({\n transKey: transitionKey,\n onExited: onMonthSwitchingAnimationEnd,\n reduceAnimations: reduceAnimations,\n slideDirection: slideDirection,\n className: clsx(className, classes.slideTransition)\n }, TransitionProps, {\n nodeRef: slideNodeRef,\n children: /*#__PURE__*/_jsx(PickersCalendarWeekContainer, {\n ref: slideNodeRef,\n role: \"rowgroup\",\n className: classes.monthContainer,\n children: weeksToDisplay.map((week, index) => /*#__PURE__*/_jsxs(PickersCalendarWeek, {\n role: \"row\",\n className: classes.weekContainer\n // fix issue of announcing row 1 as row 2\n // caused by week day labels row\n ,\n \"aria-rowindex\": index + 1,\n children: [displayWeekNumber && /*#__PURE__*/_jsx(PickersCalendarWeekNumber, {\n className: classes.weekNumber,\n role: \"rowheader\",\n \"aria-label\": translations.calendarWeekNumberAriaLabelText(utils.getWeekNumber(week[0])),\n children: translations.calendarWeekNumberText(utils.getWeekNumber(week[0]))\n }), week.map((day, dayIndex) => /*#__PURE__*/_jsx(WrappedDay, {\n parentProps: props,\n day: day,\n selectedDays: validSelectedDays,\n focusableDay: focusableDay,\n onKeyDown: handleKeyDown,\n onFocus: handleFocus,\n onBlur: handleBlur,\n onDaySelect: handleDaySelect,\n isDateDisabled: isDateDisabled,\n currentMonthNumber: currentMonthNumber,\n isViewFocused: internalHasFocus\n // fix issue of announcing column 1 as column 2 when `displayWeekNumber` is enabled\n ,\n \"aria-colindex\": dayIndex + 1\n }, day.toString()))]\n }, `week-${week[0]}`))\n })\n }))]\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersMonthUtilityClass(slot) {\n return generateUtilityClass('MuiPickersMonth', slot);\n}\nexport const pickersMonthClasses = generateUtilityClasses('MuiPickersMonth', ['root', 'monthButton', 'disabled', 'selected']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"children\", \"disabled\", \"selected\", \"value\", \"tabIndex\", \"onClick\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"aria-current\", \"aria-label\", \"monthsPerRow\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, alpha, useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { getPickersMonthUtilityClass, pickersMonthClasses } from \"./pickersMonthClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n selected,\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n monthButton: ['monthButton', disabled && 'disabled', selected && 'selected']\n };\n return composeClasses(slots, getPickersMonthUtilityClass, classes);\n};\nconst PickersMonthRoot = styled('div', {\n name: 'MuiPickersMonth',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root]\n})({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexBasis: '33.3%',\n variants: [{\n props: {\n monthsPerRow: 4\n },\n style: {\n flexBasis: '25%'\n }\n }]\n});\nconst MonthCalendarButton = styled('button', {\n name: 'MuiPickersMonth',\n slot: 'MonthButton',\n overridesResolver: (_, styles) => [styles.monthButton, {\n [`&.${pickersMonthClasses.disabled}`]: styles.disabled\n }, {\n [`&.${pickersMonthClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => _extends({\n color: 'unset',\n backgroundColor: 'transparent',\n border: 0,\n outline: 0\n}, theme.typography.subtitle1, {\n margin: '8px 0',\n height: 36,\n width: 72,\n borderRadius: 18,\n cursor: 'pointer',\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:disabled': {\n cursor: 'auto',\n pointerEvents: 'none'\n },\n [`&.${pickersMonthClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.secondary\n },\n [`&.${pickersMonthClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n '&:focus, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n }\n}));\n\n/**\n * @ignore - do not document.\n */\nexport const PickersMonth = /*#__PURE__*/React.memo(function PickersMonth(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersMonth'\n });\n const {\n autoFocus,\n className,\n children,\n disabled,\n selected,\n value,\n tabIndex,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n 'aria-current': ariaCurrent,\n 'aria-label': ariaLabel\n // We don't want to forward this prop to the root element\n ,\n\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ref = React.useRef(null);\n const classes = useUtilityClasses(props);\n\n // We can't forward the `autoFocus` to the button because it is a native button, not a MUI Button\n useEnhancedEffect(() => {\n if (autoFocus) {\n // `ref.current` being `null` would be a bug in MUI.\n ref.current?.focus();\n }\n }, [autoFocus]);\n const MonthButton = slots?.monthButton ?? MonthCalendarButton;\n const monthButtonProps = useSlotProps({\n elementType: MonthButton,\n externalSlotProps: slotProps?.monthButton,\n additionalProps: {\n children,\n disabled,\n tabIndex,\n ref,\n type: 'button',\n role: 'radio',\n 'aria-current': ariaCurrent,\n 'aria-checked': selected,\n 'aria-label': ariaLabel,\n onClick: event => onClick(event, value),\n onKeyDown: event => onKeyDown(event, value),\n onFocus: event => onFocus(event, value),\n onBlur: event => onBlur(event, value)\n },\n ownerState: props,\n className: classes.monthButton\n });\n return /*#__PURE__*/_jsx(PickersMonthRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: props\n }, other, {\n children: /*#__PURE__*/_jsx(MonthButton, _extends({}, monthButtonProps))\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getMonthCalendarUtilityClass(slot) {\n return generateUtilityClass('MuiMonthCalendar', slot);\n}\nexport const monthCalendarClasses = generateUtilityClasses('MuiMonthCalendar', ['root']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"value\", \"defaultValue\", \"referenceDate\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onChange\", \"shouldDisableMonth\", \"readOnly\", \"disableHighlightToday\", \"autoFocus\", \"onMonthFocus\", \"hasFocus\", \"onFocusedViewChange\", \"monthsPerRow\", \"timezone\", \"gridLabelId\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useControlled as useControlled, unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { PickersMonth } from \"./PickersMonth.js\";\nimport { useUtils, useNow, useDefaultDates } from \"../internals/hooks/useUtils.js\";\nimport { getMonthCalendarUtilityClass } from \"./monthCalendarClasses.js\";\nimport { applyDefaultDate, getMonthsInYear } from \"../internals/utils/date-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { DIALOG_WIDTH } from \"../internals/constants/dimensions.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getMonthCalendarUtilityClass, classes);\n};\nexport function useMonthCalendarDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const themeProps = useThemeProps({\n props,\n name\n });\n return _extends({\n disableFuture: false,\n disablePast: false\n }, themeProps, {\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate)\n });\n}\nconst MonthCalendarRoot = styled('div', {\n name: 'MuiMonthCalendar',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'flex',\n flexWrap: 'wrap',\n alignContent: 'stretch',\n padding: '0 4px',\n width: DIALOG_WIDTH,\n // avoid padding increasing width over defined\n boxSizing: 'border-box'\n});\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n *\n * API:\n *\n * - [MonthCalendar API](https://mui.com/x/api/date-pickers/month-calendar/)\n */\nexport const MonthCalendar = /*#__PURE__*/React.forwardRef(function MonthCalendar(inProps, ref) {\n const props = useMonthCalendarDefaultizedProps(inProps, 'MuiMonthCalendar');\n const {\n className,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onChange,\n shouldDisableMonth,\n readOnly,\n autoFocus = false,\n onMonthFocus,\n hasFocus,\n onFocusedViewChange,\n monthsPerRow = 3,\n timezone: timezoneProp,\n gridLabelId,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'MonthCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange: onChange,\n valueManager: singleItemValueManager\n });\n const now = useNow(timezone);\n const isRtl = useRtl();\n const utils = useUtils();\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n timezone,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.month\n }), [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const todayMonth = React.useMemo(() => utils.getMonth(now), [utils, now]);\n const selectedMonth = React.useMemo(() => {\n if (value != null) {\n return utils.getMonth(value);\n }\n return null;\n }, [value, utils]);\n const [focusedMonth, setFocusedMonth] = React.useState(() => selectedMonth || utils.getMonth(referenceDate));\n const [internalHasFocus, setInternalHasFocus] = useControlled({\n name: 'MonthCalendar',\n state: 'hasFocus',\n controlled: hasFocus,\n default: autoFocus ?? false\n });\n const changeHasFocus = useEventCallback(newHasFocus => {\n setInternalHasFocus(newHasFocus);\n if (onFocusedViewChange) {\n onFocusedViewChange(newHasFocus);\n }\n });\n const isMonthDisabled = React.useCallback(dateToValidate => {\n const firstEnabledMonth = utils.startOfMonth(disablePast && utils.isAfter(now, minDate) ? now : minDate);\n const lastEnabledMonth = utils.startOfMonth(disableFuture && utils.isBefore(now, maxDate) ? now : maxDate);\n const monthToValidate = utils.startOfMonth(dateToValidate);\n if (utils.isBefore(monthToValidate, firstEnabledMonth)) {\n return true;\n }\n if (utils.isAfter(monthToValidate, lastEnabledMonth)) {\n return true;\n }\n if (!shouldDisableMonth) {\n return false;\n }\n return shouldDisableMonth(monthToValidate);\n }, [disableFuture, disablePast, maxDate, minDate, now, shouldDisableMonth, utils]);\n const handleMonthSelection = useEventCallback((event, month) => {\n if (readOnly) {\n return;\n }\n const newDate = utils.setMonth(value ?? referenceDate, month);\n handleValueChange(newDate);\n });\n const focusMonth = useEventCallback(month => {\n if (!isMonthDisabled(utils.setMonth(value ?? referenceDate, month))) {\n setFocusedMonth(month);\n changeHasFocus(true);\n if (onMonthFocus) {\n onMonthFocus(month);\n }\n }\n });\n React.useEffect(() => {\n setFocusedMonth(prevFocusedMonth => selectedMonth !== null && prevFocusedMonth !== selectedMonth ? selectedMonth : prevFocusedMonth);\n }, [selectedMonth]);\n const handleKeyDown = useEventCallback((event, month) => {\n const monthsInYear = 12;\n const monthsInRow = 3;\n switch (event.key) {\n case 'ArrowUp':\n focusMonth((monthsInYear + month - monthsInRow) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusMonth((monthsInYear + month + monthsInRow) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowLeft':\n focusMonth((monthsInYear + month + (isRtl ? 1 : -1)) % monthsInYear);\n event.preventDefault();\n break;\n case 'ArrowRight':\n focusMonth((monthsInYear + month + (isRtl ? -1 : 1)) % monthsInYear);\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleMonthFocus = useEventCallback((event, month) => {\n focusMonth(month);\n });\n const handleMonthBlur = useEventCallback((event, month) => {\n if (focusedMonth === month) {\n changeHasFocus(false);\n }\n });\n return /*#__PURE__*/_jsx(MonthCalendarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"radiogroup\",\n \"aria-labelledby\": gridLabelId\n }, other, {\n children: getMonthsInYear(utils, value ?? referenceDate).map(month => {\n const monthNumber = utils.getMonth(month);\n const monthText = utils.format(month, 'monthShort');\n const monthLabel = utils.format(month, 'month');\n const isSelected = monthNumber === selectedMonth;\n const isDisabled = disabled || isMonthDisabled(month);\n return /*#__PURE__*/_jsx(PickersMonth, {\n selected: isSelected,\n value: monthNumber,\n onClick: handleMonthSelection,\n onKeyDown: handleKeyDown,\n autoFocus: internalHasFocus && monthNumber === focusedMonth,\n disabled: isDisabled,\n tabIndex: monthNumber === focusedMonth && !isDisabled ? 0 : -1,\n onFocus: handleMonthFocus,\n onBlur: handleMonthBlur,\n \"aria-current\": todayMonth === monthNumber ? 'date' : undefined,\n \"aria-label\": monthLabel,\n monthsPerRow: monthsPerRow,\n slots: slots,\n slotProps: slotProps,\n children: monthText\n }, monthText);\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MonthCalendar.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 autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true` picker is disabled\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n gridLabelId: PropTypes.string,\n hasFocus: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Callback fired when the value changes.\n * @template TDate\n * @param {TDate} value The new value.\n */\n onChange: PropTypes.func,\n onFocusedViewChange: PropTypes.func,\n onMonthFocus: PropTypes.func,\n /**\n * If `true` picker is readonly\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid month using the validation props, except callbacks such as `shouldDisableMonth`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersYearUtilityClass(slot) {\n return generateUtilityClass('MuiPickersYear', slot);\n}\nexport const pickersYearClasses = generateUtilityClasses('MuiPickersYear', ['root', 'yearButton', 'selected', 'disabled']);","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"children\", \"disabled\", \"selected\", \"value\", \"tabIndex\", \"onClick\", \"onKeyDown\", \"onFocus\", \"onBlur\", \"aria-current\", \"yearsPerRow\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport { styled, alpha, useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport { getPickersYearUtilityClass, pickersYearClasses } from \"./pickersYearClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n disabled,\n selected,\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n yearButton: ['yearButton', disabled && 'disabled', selected && 'selected']\n };\n return composeClasses(slots, getPickersYearUtilityClass, classes);\n};\nconst PickersYearRoot = styled('div', {\n name: 'MuiPickersYear',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root]\n})({\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'center',\n flexBasis: '33.3%',\n variants: [{\n props: {\n yearsPerRow: 4\n },\n style: {\n flexBasis: '25%'\n }\n }]\n});\nconst YearCalendarButton = styled('button', {\n name: 'MuiPickersYear',\n slot: 'YearButton',\n overridesResolver: (_, styles) => [styles.yearButton, {\n [`&.${pickersYearClasses.disabled}`]: styles.disabled\n }, {\n [`&.${pickersYearClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => _extends({\n color: 'unset',\n backgroundColor: 'transparent',\n border: 0,\n outline: 0\n}, theme.typography.subtitle1, {\n margin: '6px 0',\n height: 36,\n width: 72,\n borderRadius: 18,\n cursor: 'pointer',\n '&:focus': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.action.active, theme.palette.action.focusOpacity)\n },\n '&:hover': {\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.action.activeChannel} / ${theme.vars.palette.action.hoverOpacity})` : alpha(theme.palette.action.active, theme.palette.action.hoverOpacity)\n },\n '&:disabled': {\n cursor: 'auto',\n pointerEvents: 'none'\n },\n [`&.${pickersYearClasses.disabled}`]: {\n color: (theme.vars || theme).palette.text.secondary\n },\n [`&.${pickersYearClasses.selected}`]: {\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: (theme.vars || theme).palette.primary.main,\n '&:focus, &:hover': {\n backgroundColor: (theme.vars || theme).palette.primary.dark\n }\n }\n}));\n\n/**\n * @ignore - internal component.\n */\nexport const PickersYear = /*#__PURE__*/React.memo(function PickersYear(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersYear'\n });\n const {\n autoFocus,\n className,\n children,\n disabled,\n selected,\n value,\n tabIndex,\n onClick,\n onKeyDown,\n onFocus,\n onBlur,\n 'aria-current': ariaCurrent\n // We don't want to forward this prop to the root element\n ,\n\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ref = React.useRef(null);\n const classes = useUtilityClasses(props);\n\n // We can't forward the `autoFocus` to the button because it is a native button, not a MUI Button\n useEnhancedEffect(() => {\n if (autoFocus) {\n // `ref.current` being `null` would be a bug in MUI.\n ref.current?.focus();\n }\n }, [autoFocus]);\n const YearButton = slots?.yearButton ?? YearCalendarButton;\n const yearButtonProps = useSlotProps({\n elementType: YearButton,\n externalSlotProps: slotProps?.yearButton,\n additionalProps: {\n children,\n disabled,\n tabIndex,\n ref,\n type: 'button',\n role: 'radio',\n 'aria-current': ariaCurrent,\n 'aria-checked': selected,\n onClick: event => onClick(event, value),\n onKeyDown: event => onKeyDown(event, value),\n onFocus: event => onFocus(event, value),\n onBlur: event => onBlur(event, value)\n },\n ownerState: props,\n className: classes.yearButton\n });\n return /*#__PURE__*/_jsx(PickersYearRoot, _extends({\n className: clsx(classes.root, className),\n ownerState: props\n }, other, {\n children: /*#__PURE__*/_jsx(YearButton, _extends({}, yearButtonProps))\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getYearCalendarUtilityClass(slot) {\n return generateUtilityClass('MuiYearCalendar', slot);\n}\nexport const yearCalendarClasses = generateUtilityClasses('MuiYearCalendar', ['root']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"className\", \"value\", \"defaultValue\", \"referenceDate\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onChange\", \"readOnly\", \"shouldDisableYear\", \"disableHighlightToday\", \"onYearFocus\", \"hasFocus\", \"onFocusedViewChange\", \"yearsOrder\", \"yearsPerRow\", \"timezone\", \"gridLabelId\", \"slots\", \"slotProps\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_useForkRef as useForkRef, unstable_composeClasses as composeClasses, unstable_useControlled as useControlled, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { PickersYear } from \"./PickersYear.js\";\nimport { useUtils, useNow, useDefaultDates } from \"../internals/hooks/useUtils.js\";\nimport { getYearCalendarUtilityClass } from \"./yearCalendarClasses.js\";\nimport { applyDefaultDate } from \"../internals/utils/date-utils.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { SECTION_TYPE_GRANULARITY } from \"../internals/utils/getDefaultReferenceDate.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { DIALOG_WIDTH, MAX_CALENDAR_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getYearCalendarUtilityClass, classes);\n};\nfunction useYearCalendarDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const themeProps = useThemeProps({\n props,\n name\n });\n return _extends({\n disablePast: false,\n disableFuture: false\n }, themeProps, {\n yearsPerRow: themeProps.yearsPerRow ?? 3,\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate)\n });\n}\nconst YearCalendarRoot = styled('div', {\n name: 'MuiYearCalendar',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'flex',\n flexDirection: 'row',\n flexWrap: 'wrap',\n overflowY: 'auto',\n height: '100%',\n padding: '0 4px',\n width: DIALOG_WIDTH,\n maxHeight: MAX_CALENDAR_HEIGHT,\n // avoid padding increasing width over defined\n boxSizing: 'border-box',\n position: 'relative'\n});\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n *\n * API:\n *\n * - [YearCalendar API](https://mui.com/x/api/date-pickers/year-calendar/)\n */\nexport const YearCalendar = /*#__PURE__*/React.forwardRef(function YearCalendar(inProps, ref) {\n const props = useYearCalendarDefaultizedProps(inProps, 'MuiYearCalendar');\n const {\n autoFocus,\n className,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onChange,\n readOnly,\n shouldDisableYear,\n onYearFocus,\n hasFocus,\n onFocusedViewChange,\n yearsOrder = 'asc',\n yearsPerRow,\n timezone: timezoneProp,\n gridLabelId,\n slots,\n slotProps\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'YearCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange: onChange,\n valueManager: singleItemValueManager\n });\n const now = useNow(timezone);\n const isRtl = useRtl();\n const utils = useUtils();\n const referenceDate = React.useMemo(() => singleItemValueManager.getInitialReferenceValue({\n value,\n utils,\n props,\n timezone,\n referenceDate: referenceDateProp,\n granularity: SECTION_TYPE_GRANULARITY.year\n }), [] // eslint-disable-line react-hooks/exhaustive-deps\n );\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const todayYear = React.useMemo(() => utils.getYear(now), [utils, now]);\n const selectedYear = React.useMemo(() => {\n if (value != null) {\n return utils.getYear(value);\n }\n return null;\n }, [value, utils]);\n const [focusedYear, setFocusedYear] = React.useState(() => selectedYear || utils.getYear(referenceDate));\n const [internalHasFocus, setInternalHasFocus] = useControlled({\n name: 'YearCalendar',\n state: 'hasFocus',\n controlled: hasFocus,\n default: autoFocus ?? false\n });\n const changeHasFocus = useEventCallback(newHasFocus => {\n setInternalHasFocus(newHasFocus);\n if (onFocusedViewChange) {\n onFocusedViewChange(newHasFocus);\n }\n });\n const isYearDisabled = React.useCallback(dateToValidate => {\n if (disablePast && utils.isBeforeYear(dateToValidate, now)) {\n return true;\n }\n if (disableFuture && utils.isAfterYear(dateToValidate, now)) {\n return true;\n }\n if (minDate && utils.isBeforeYear(dateToValidate, minDate)) {\n return true;\n }\n if (maxDate && utils.isAfterYear(dateToValidate, maxDate)) {\n return true;\n }\n if (!shouldDisableYear) {\n return false;\n }\n const yearToValidate = utils.startOfYear(dateToValidate);\n return shouldDisableYear(yearToValidate);\n }, [disableFuture, disablePast, maxDate, minDate, now, shouldDisableYear, utils]);\n const handleYearSelection = useEventCallback((event, year) => {\n if (readOnly) {\n return;\n }\n const newDate = utils.setYear(value ?? referenceDate, year);\n handleValueChange(newDate);\n });\n const focusYear = useEventCallback(year => {\n if (!isYearDisabled(utils.setYear(value ?? referenceDate, year))) {\n setFocusedYear(year);\n changeHasFocus(true);\n onYearFocus?.(year);\n }\n });\n React.useEffect(() => {\n setFocusedYear(prevFocusedYear => selectedYear !== null && prevFocusedYear !== selectedYear ? selectedYear : prevFocusedYear);\n }, [selectedYear]);\n const verticalDirection = yearsOrder !== 'desc' ? yearsPerRow * 1 : yearsPerRow * -1;\n const horizontalDirection = isRtl && yearsOrder === 'asc' || !isRtl && yearsOrder === 'desc' ? -1 : 1;\n const handleKeyDown = useEventCallback((event, year) => {\n switch (event.key) {\n case 'ArrowUp':\n focusYear(year - verticalDirection);\n event.preventDefault();\n break;\n case 'ArrowDown':\n focusYear(year + verticalDirection);\n event.preventDefault();\n break;\n case 'ArrowLeft':\n focusYear(year - horizontalDirection);\n event.preventDefault();\n break;\n case 'ArrowRight':\n focusYear(year + horizontalDirection);\n event.preventDefault();\n break;\n default:\n break;\n }\n });\n const handleYearFocus = useEventCallback((event, year) => {\n focusYear(year);\n });\n const handleYearBlur = useEventCallback((event, year) => {\n if (focusedYear === year) {\n changeHasFocus(false);\n }\n });\n const scrollerRef = React.useRef(null);\n const handleRef = useForkRef(ref, scrollerRef);\n React.useEffect(() => {\n if (autoFocus || scrollerRef.current === null) {\n return;\n }\n const tabbableButton = scrollerRef.current.querySelector('[tabindex=\"0\"]');\n if (!tabbableButton) {\n return;\n }\n\n // Taken from useScroll in x-data-grid, but vertically centered\n const offsetHeight = tabbableButton.offsetHeight;\n const offsetTop = tabbableButton.offsetTop;\n const clientHeight = scrollerRef.current.clientHeight;\n const scrollTop = scrollerRef.current.scrollTop;\n const elementBottom = offsetTop + offsetHeight;\n if (offsetHeight > clientHeight || offsetTop < scrollTop) {\n // Button already visible\n return;\n }\n scrollerRef.current.scrollTop = elementBottom - clientHeight / 2 - offsetHeight / 2;\n }, [autoFocus]);\n const yearRange = utils.getYearRange([minDate, maxDate]);\n if (yearsOrder === 'desc') {\n yearRange.reverse();\n }\n return /*#__PURE__*/_jsx(YearCalendarRoot, _extends({\n ref: handleRef,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n role: \"radiogroup\",\n \"aria-labelledby\": gridLabelId\n }, other, {\n children: yearRange.map(year => {\n const yearNumber = utils.getYear(year);\n const isSelected = yearNumber === selectedYear;\n const isDisabled = disabled || isYearDisabled(year);\n return /*#__PURE__*/_jsx(PickersYear, {\n selected: isSelected,\n value: yearNumber,\n onClick: handleYearSelection,\n onKeyDown: handleKeyDown,\n autoFocus: internalHasFocus && yearNumber === focusedYear,\n disabled: isDisabled,\n tabIndex: yearNumber === focusedYear && !isDisabled ? 0 : -1,\n onFocus: handleYearFocus,\n onBlur: handleYearBlur,\n \"aria-current\": todayYear === yearNumber ? 'date' : undefined,\n yearsPerRow: yearsPerRow,\n slots: slots,\n slotProps: slotProps,\n children: utils.format(year, 'year')\n }, utils.format(year, 'year'));\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? YearCalendar.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 autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true` picker is disabled\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n gridLabelId: PropTypes.string,\n hasFocus: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Callback fired when the value changes.\n * @template TDate\n * @param {TDate} value The new value.\n */\n onChange: PropTypes.func,\n onFocusedViewChange: PropTypes.func,\n onYearFocus: PropTypes.func,\n /**\n * If `true` picker is readonly\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid year using the validation props, except callbacks such as `shouldDisableYear`.\n */\n referenceDate: PropTypes.object,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getPickersCalendarHeaderUtilityClass = slot => generateUtilityClass('MuiPickersCalendarHeader', slot);\nexport const pickersCalendarHeaderClasses = generateUtilityClasses('MuiPickersCalendarHeader', ['root', 'labelContainer', 'label', 'switchViewButton', 'switchViewIcon']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\", \"currentMonth\", \"disabled\", \"disableFuture\", \"disablePast\", \"maxDate\", \"minDate\", \"onMonthChange\", \"onViewChange\", \"view\", \"reduceAnimations\", \"views\", \"labelId\", \"className\", \"timezone\", \"format\"],\n _excluded2 = [\"ownerState\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Fade from '@mui/material/Fade';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport IconButton from '@mui/material/IconButton';\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { PickersFadeTransitionGroup } from \"../DateCalendar/PickersFadeTransitionGroup.js\";\nimport { ArrowDropDownIcon } from \"../icons/index.js\";\nimport { PickersArrowSwitcher } from \"../internals/components/PickersArrowSwitcher/index.js\";\nimport { usePreviousMonthDisabled, useNextMonthDisabled } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { getPickersCalendarHeaderUtilityClass, pickersCalendarHeaderClasses } from \"./pickersCalendarHeaderClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n labelContainer: ['labelContainer'],\n label: ['label'],\n switchViewButton: ['switchViewButton'],\n switchViewIcon: ['switchViewIcon']\n };\n return composeClasses(slots, getPickersCalendarHeaderUtilityClass, classes);\n};\nconst PickersCalendarHeaderRoot = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({\n display: 'flex',\n alignItems: 'center',\n marginTop: 12,\n marginBottom: 4,\n paddingLeft: 24,\n paddingRight: 12,\n // prevent jumping in safari\n maxHeight: 40,\n minHeight: 40\n});\nconst PickersCalendarHeaderLabelContainer = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'LabelContainer',\n overridesResolver: (_, styles) => styles.labelContainer\n})(({\n theme\n}) => _extends({\n display: 'flex',\n overflow: 'hidden',\n alignItems: 'center',\n cursor: 'pointer',\n marginRight: 'auto'\n}, theme.typography.body1, {\n fontWeight: theme.typography.fontWeightMedium\n}));\nconst PickersCalendarHeaderLabel = styled('div', {\n name: 'MuiPickersCalendarHeader',\n slot: 'Label',\n overridesResolver: (_, styles) => styles.label\n})({\n marginRight: 6\n});\nconst PickersCalendarHeaderSwitchViewButton = styled(IconButton, {\n name: 'MuiPickersCalendarHeader',\n slot: 'SwitchViewButton',\n overridesResolver: (_, styles) => styles.switchViewButton\n})({\n marginRight: 'auto',\n variants: [{\n props: {\n view: 'year'\n },\n style: {\n [`.${pickersCalendarHeaderClasses.switchViewIcon}`]: {\n transform: 'rotate(180deg)'\n }\n }\n }]\n});\nconst PickersCalendarHeaderSwitchViewIcon = styled(ArrowDropDownIcon, {\n name: 'MuiPickersCalendarHeader',\n slot: 'SwitchViewIcon',\n overridesResolver: (_, styles) => styles.switchViewIcon\n})(({\n theme\n}) => ({\n willChange: 'transform',\n transition: theme.transitions.create('transform'),\n transform: 'rotate(0deg)'\n}));\n/**\n * Demos:\n *\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)\n * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [PickersCalendarHeader API](https://mui.com/x/api/date-pickers/pickers-calendar-header/)\n */\nconst PickersCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersCalendarHeader(inProps, ref) {\n const translations = usePickersTranslations();\n const utils = useUtils();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersCalendarHeader'\n });\n const {\n slots,\n slotProps,\n currentMonth: month,\n disabled,\n disableFuture,\n disablePast,\n maxDate,\n minDate,\n onMonthChange,\n onViewChange,\n view,\n reduceAnimations,\n views,\n labelId,\n className,\n timezone,\n format = `${utils.formats.month} ${utils.formats.year}`\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = props;\n const classes = useUtilityClasses(props);\n const SwitchViewButton = slots?.switchViewButton ?? PickersCalendarHeaderSwitchViewButton;\n const switchViewButtonProps = useSlotProps({\n elementType: SwitchViewButton,\n externalSlotProps: slotProps?.switchViewButton,\n additionalProps: {\n size: 'small',\n 'aria-label': translations.calendarViewSwitchingButtonAriaLabel(view)\n },\n ownerState,\n className: classes.switchViewButton\n });\n const SwitchViewIcon = slots?.switchViewIcon ?? PickersCalendarHeaderSwitchViewIcon;\n // The spread is here to avoid this bug mui/material-ui#34056\n const _useSlotProps = useSlotProps({\n elementType: SwitchViewIcon,\n externalSlotProps: slotProps?.switchViewIcon,\n ownerState,\n className: classes.switchViewIcon\n }),\n switchViewIconProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const selectNextMonth = () => onMonthChange(utils.addMonths(month, 1), 'left');\n const selectPreviousMonth = () => onMonthChange(utils.addMonths(month, -1), 'right');\n const isNextMonthDisabled = useNextMonthDisabled(month, {\n disableFuture,\n maxDate,\n timezone\n });\n const isPreviousMonthDisabled = usePreviousMonthDisabled(month, {\n disablePast,\n minDate,\n timezone\n });\n const handleToggleView = () => {\n if (views.length === 1 || !onViewChange || disabled) {\n return;\n }\n if (views.length === 2) {\n onViewChange(views.find(el => el !== view) || views[0]);\n } else {\n // switching only between first 2\n const nextIndexToOpen = views.indexOf(view) !== 0 ? 0 : 1;\n onViewChange(views[nextIndexToOpen]);\n }\n };\n\n // No need to display more information\n if (views.length === 1 && views[0] === 'year') {\n return null;\n }\n const label = utils.formatByString(month, format);\n return /*#__PURE__*/_jsxs(PickersCalendarHeaderRoot, _extends({}, other, {\n ownerState: ownerState,\n className: clsx(classes.root, className),\n ref: ref,\n children: [/*#__PURE__*/_jsxs(PickersCalendarHeaderLabelContainer, {\n role: \"presentation\",\n onClick: handleToggleView,\n ownerState: ownerState\n // putting this on the label item element below breaks when using transition\n ,\n \"aria-live\": \"polite\",\n className: classes.labelContainer,\n children: [/*#__PURE__*/_jsx(PickersFadeTransitionGroup, {\n reduceAnimations: reduceAnimations,\n transKey: label,\n children: /*#__PURE__*/_jsx(PickersCalendarHeaderLabel, {\n id: labelId,\n ownerState: ownerState,\n className: classes.label,\n children: label\n })\n }), views.length > 1 && !disabled && /*#__PURE__*/_jsx(SwitchViewButton, _extends({}, switchViewButtonProps, {\n children: /*#__PURE__*/_jsx(SwitchViewIcon, _extends({}, switchViewIconProps))\n }))]\n }), /*#__PURE__*/_jsx(Fade, {\n in: view === 'day',\n children: /*#__PURE__*/_jsx(PickersArrowSwitcher, {\n slots: slots,\n slotProps: slotProps,\n onGoToPrevious: selectPreviousMonth,\n isPreviousDisabled: isPreviousMonthDisabled,\n previousLabel: translations.previousMonth,\n onGoToNext: selectNextMonth,\n isNextDisabled: isNextMonthDisabled,\n nextLabel: translations.nextMonth\n })\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersCalendarHeader.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 * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n currentMonth: PropTypes.object.isRequired,\n disabled: PropTypes.bool,\n disableFuture: PropTypes.bool,\n disablePast: PropTypes.bool,\n /**\n * Format used to display the date.\n * @default `${adapter.formats.month} ${adapter.formats.year}`\n */\n format: PropTypes.string,\n /**\n * Id of the calendar text element.\n * It is used to establish an `aria-labelledby` relationship with the calendar `grid` element.\n */\n labelId: PropTypes.string,\n maxDate: PropTypes.object.isRequired,\n minDate: PropTypes.object.isRequired,\n onMonthChange: PropTypes.func.isRequired,\n onViewChange: PropTypes.func,\n reduceAnimations: PropTypes.bool.isRequired,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 timezone: PropTypes.string.isRequired,\n view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired\n} : void 0;\nexport { PickersCalendarHeader };","import useMediaQuery from '@mui/material/useMediaQuery';\nconst PREFERS_REDUCED_MOTION = '@media (prefers-reduced-motion: reduce)';\n\n// detect if user agent has Android version < 10 or iOS version < 13\nconst mobileVersionMatches = typeof navigator !== 'undefined' && navigator.userAgent.match(/android\\s(\\d+)|OS\\s(\\d+)/i);\nconst androidVersion = mobileVersionMatches && mobileVersionMatches[1] ? parseInt(mobileVersionMatches[1], 10) : null;\nconst iOSVersion = mobileVersionMatches && mobileVersionMatches[2] ? parseInt(mobileVersionMatches[2], 10) : null;\nexport const slowAnimationDevices = androidVersion && androidVersion < 10 || iOSVersion && iOSVersion < 13 || false;\nexport const useDefaultReduceAnimations = () => {\n const prefersReduced = useMediaQuery(PREFERS_REDUCED_MOTION, {\n defaultMatches: false\n });\n return prefersReduced || slowAnimationDevices;\n};","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getDateCalendarUtilityClass = slot => generateUtilityClass('MuiDateCalendar', slot);\nexport const dateCalendarClasses = generateUtilityClasses('MuiDateCalendar', ['root', 'viewTransitionContainer']);","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"autoFocus\", \"onViewChange\", \"value\", \"defaultValue\", \"referenceDate\", \"disableFuture\", \"disablePast\", \"onChange\", \"onYearChange\", \"onMonthChange\", \"reduceAnimations\", \"shouldDisableDate\", \"shouldDisableMonth\", \"shouldDisableYear\", \"view\", \"views\", \"openTo\", \"className\", \"disabled\", \"readOnly\", \"minDate\", \"maxDate\", \"disableHighlightToday\", \"focusedView\", \"onFocusedViewChange\", \"showDaysOutsideCurrentMonth\", \"fixedWeekNumber\", \"dayOfWeekFormatter\", \"slots\", \"slotProps\", \"loading\", \"renderLoading\", \"displayWeekNumber\", \"yearsOrder\", \"yearsPerRow\", \"monthsPerRow\", \"timezone\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { unstable_composeClasses as composeClasses, unstable_useId as useId, unstable_useEventCallback as useEventCallback } from '@mui/utils';\nimport { useCalendarState } from \"./useCalendarState.js\";\nimport { useDefaultDates, useUtils } from \"../internals/hooks/useUtils.js\";\nimport { PickersFadeTransitionGroup } from \"./PickersFadeTransitionGroup.js\";\nimport { DayCalendar } from \"./DayCalendar.js\";\nimport { MonthCalendar } from \"../MonthCalendar/index.js\";\nimport { YearCalendar } from \"../YearCalendar/index.js\";\nimport { useViews } from \"../internals/hooks/useViews.js\";\nimport { PickersCalendarHeader } from \"../PickersCalendarHeader/index.js\";\nimport { findClosestEnabledDate, applyDefaultDate, mergeDateAndTime } from \"../internals/utils/date-utils.js\";\nimport { PickerViewRoot } from \"../internals/components/PickerViewRoot/index.js\";\nimport { useDefaultReduceAnimations } from \"../internals/hooks/useDefaultReduceAnimations.js\";\nimport { getDateCalendarUtilityClass } from \"./dateCalendarClasses.js\";\nimport { useControlledValueWithTimezone } from \"../internals/hooks/useValueWithTimezone.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n viewTransitionContainer: ['viewTransitionContainer']\n };\n return composeClasses(slots, getDateCalendarUtilityClass, classes);\n};\nfunction useDateCalendarDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const defaultReduceAnimations = useDefaultReduceAnimations();\n const themeProps = useThemeProps({\n props,\n name\n });\n return _extends({}, themeProps, {\n loading: themeProps.loading ?? false,\n disablePast: themeProps.disablePast ?? false,\n disableFuture: themeProps.disableFuture ?? false,\n openTo: themeProps.openTo ?? 'day',\n views: themeProps.views ?? ['year', 'day'],\n reduceAnimations: themeProps.reduceAnimations ?? defaultReduceAnimations,\n renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/_jsx(\"span\", {\n children: \"...\"\n })),\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate)\n });\n}\nconst DateCalendarRoot = styled(PickerViewRoot, {\n name: 'MuiDateCalendar',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'flex',\n flexDirection: 'column',\n height: VIEW_HEIGHT\n});\nconst DateCalendarViewTransitionContainer = styled(PickersFadeTransitionGroup, {\n name: 'MuiDateCalendar',\n slot: 'ViewTransitionContainer',\n overridesResolver: (props, styles) => styles.viewTransitionContainer\n})({});\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [DateCalendar](https://mui.com/x/react-date-pickers/date-calendar/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DateCalendar API](https://mui.com/x/api/date-pickers/date-calendar/)\n */\nexport const DateCalendar = /*#__PURE__*/React.forwardRef(function DateCalendar(inProps, ref) {\n const utils = useUtils();\n const id = useId();\n const props = useDateCalendarDefaultizedProps(inProps, 'MuiDateCalendar');\n const {\n autoFocus,\n onViewChange,\n value: valueProp,\n defaultValue,\n referenceDate: referenceDateProp,\n disableFuture,\n disablePast,\n onChange,\n onYearChange,\n onMonthChange,\n reduceAnimations,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n view: inView,\n views,\n openTo,\n className,\n disabled,\n readOnly,\n minDate,\n maxDate,\n disableHighlightToday,\n focusedView: inFocusedView,\n onFocusedViewChange,\n showDaysOutsideCurrentMonth,\n fixedWeekNumber,\n dayOfWeekFormatter,\n slots,\n slotProps,\n loading,\n renderLoading,\n displayWeekNumber,\n yearsOrder,\n yearsPerRow,\n monthsPerRow,\n timezone: timezoneProp\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'DateCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: singleItemValueManager\n });\n const {\n view,\n setView,\n focusedView,\n setFocusedView,\n goToNextView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange: handleValueChange,\n onViewChange,\n autoFocus,\n focusedView: inFocusedView,\n onFocusedViewChange\n });\n const {\n referenceDate,\n calendarState,\n changeFocusedDay,\n changeMonth,\n handleChangeMonth,\n isDateDisabled,\n onMonthSwitchingAnimationEnd\n } = useCalendarState({\n value,\n referenceDate: referenceDateProp,\n reduceAnimations,\n onMonthChange,\n minDate,\n maxDate,\n shouldDisableDate,\n disablePast,\n disableFuture,\n timezone\n });\n\n // When disabled, limit the view to the selected date\n const minDateWithDisabled = disabled && value || minDate;\n const maxDateWithDisabled = disabled && value || maxDate;\n const gridLabelId = `${id}-grid-label`;\n const hasFocus = focusedView !== null;\n const CalendarHeader = slots?.calendarHeader ?? PickersCalendarHeader;\n const calendarHeaderProps = useSlotProps({\n elementType: CalendarHeader,\n externalSlotProps: slotProps?.calendarHeader,\n additionalProps: {\n views,\n view,\n currentMonth: calendarState.currentMonth,\n onViewChange: setView,\n onMonthChange: (newMonth, direction) => handleChangeMonth({\n newMonth,\n direction\n }),\n minDate: minDateWithDisabled,\n maxDate: maxDateWithDisabled,\n disabled,\n disablePast,\n disableFuture,\n reduceAnimations,\n timezone,\n labelId: gridLabelId\n },\n ownerState: props\n });\n const handleDateMonthChange = useEventCallback(newDate => {\n const startOfMonth = utils.startOfMonth(newDate);\n const endOfMonth = utils.endOfMonth(newDate);\n const closestEnabledDate = isDateDisabled(newDate) ? findClosestEnabledDate({\n utils,\n date: newDate,\n minDate: utils.isBefore(minDate, startOfMonth) ? startOfMonth : minDate,\n maxDate: utils.isAfter(maxDate, endOfMonth) ? endOfMonth : maxDate,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n }) : newDate;\n if (closestEnabledDate) {\n setValueAndGoToNextView(closestEnabledDate, 'finish');\n onMonthChange?.(startOfMonth);\n } else {\n goToNextView();\n changeMonth(startOfMonth);\n }\n changeFocusedDay(closestEnabledDate, true);\n });\n const handleDateYearChange = useEventCallback(newDate => {\n const startOfYear = utils.startOfYear(newDate);\n const endOfYear = utils.endOfYear(newDate);\n const closestEnabledDate = isDateDisabled(newDate) ? findClosestEnabledDate({\n utils,\n date: newDate,\n minDate: utils.isBefore(minDate, startOfYear) ? startOfYear : minDate,\n maxDate: utils.isAfter(maxDate, endOfYear) ? endOfYear : maxDate,\n disablePast,\n disableFuture,\n isDateDisabled,\n timezone\n }) : newDate;\n if (closestEnabledDate) {\n setValueAndGoToNextView(closestEnabledDate, 'finish');\n onYearChange?.(closestEnabledDate);\n } else {\n goToNextView();\n changeMonth(startOfYear);\n }\n changeFocusedDay(closestEnabledDate, true);\n });\n const handleSelectedDayChange = useEventCallback(day => {\n if (day) {\n // If there is a date already selected, then we want to keep its time\n return handleValueChange(mergeDateAndTime(utils, day, value ?? referenceDate), 'finish', view);\n }\n return handleValueChange(day, 'finish', view);\n });\n React.useEffect(() => {\n if (value != null && utils.isValid(value)) {\n changeMonth(value);\n }\n }, [value]); // eslint-disable-line\n\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const baseDateValidationProps = {\n disablePast,\n disableFuture,\n maxDate,\n minDate\n };\n const commonViewProps = {\n disableHighlightToday,\n readOnly,\n disabled,\n timezone,\n gridLabelId,\n slots,\n slotProps\n };\n const prevOpenViewRef = React.useRef(view);\n React.useEffect(() => {\n // If the view change and the focus was on the previous view\n // Then we update the focus.\n if (prevOpenViewRef.current === view) {\n return;\n }\n if (focusedView === prevOpenViewRef.current) {\n setFocusedView(view, true);\n }\n prevOpenViewRef.current = view;\n }, [focusedView, setFocusedView, view]);\n const selectedDays = React.useMemo(() => [value], [value]);\n return /*#__PURE__*/_jsxs(DateCalendarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(CalendarHeader, _extends({}, calendarHeaderProps, {\n slots: slots,\n slotProps: slotProps\n })), /*#__PURE__*/_jsx(DateCalendarViewTransitionContainer, {\n reduceAnimations: reduceAnimations,\n className: classes.viewTransitionContainer,\n transKey: view,\n ownerState: ownerState,\n children: /*#__PURE__*/_jsxs(\"div\", {\n children: [view === 'year' && /*#__PURE__*/_jsx(YearCalendar, _extends({}, baseDateValidationProps, commonViewProps, {\n value: value,\n onChange: handleDateYearChange,\n shouldDisableYear: shouldDisableYear,\n hasFocus: hasFocus,\n onFocusedViewChange: isViewFocused => setFocusedView('year', isViewFocused),\n yearsOrder: yearsOrder,\n yearsPerRow: yearsPerRow,\n referenceDate: referenceDate\n })), view === 'month' && /*#__PURE__*/_jsx(MonthCalendar, _extends({}, baseDateValidationProps, commonViewProps, {\n hasFocus: hasFocus,\n className: className,\n value: value,\n onChange: handleDateMonthChange,\n shouldDisableMonth: shouldDisableMonth,\n onFocusedViewChange: isViewFocused => setFocusedView('month', isViewFocused),\n monthsPerRow: monthsPerRow,\n referenceDate: referenceDate\n })), view === 'day' && /*#__PURE__*/_jsx(DayCalendar, _extends({}, calendarState, baseDateValidationProps, commonViewProps, {\n onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,\n onFocusedDayChange: changeFocusedDay,\n reduceAnimations: reduceAnimations,\n selectedDays: selectedDays,\n onSelectedDaysChange: handleSelectedDayChange,\n shouldDisableDate: shouldDisableDate,\n shouldDisableMonth: shouldDisableMonth,\n shouldDisableYear: shouldDisableYear,\n hasFocus: hasFocus,\n onFocusedViewChange: isViewFocused => setFocusedView('day', isViewFocused),\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,\n fixedWeekNumber: fixedWeekNumber,\n dayOfWeekFormatter: dayOfWeekFormatter,\n displayWeekNumber: displayWeekNumber,\n loading: loading,\n renderLoading: renderLoading\n }))]\n })\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateCalendar.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @template TDate\n * @param {TDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Make picker read only.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => ...\n */\n renderLoading: PropTypes.func,\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiPickersToolbar', slot);\n}\nexport const pickersToolbarClasses = generateUtilityClasses('MuiPickersToolbar', ['root', 'content']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"children\", \"className\", \"toolbarTitle\", \"hidden\", \"titleId\", \"isLandscape\", \"classes\", \"landscapeDirection\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { getPickersToolbarUtilityClass } from \"./pickersToolbarClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n content: ['content']\n };\n return composeClasses(slots, getPickersToolbarUtilityClass, classes);\n};\nconst PickersToolbarRoot = styled('div', {\n name: 'MuiPickersToolbar',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})(({\n theme\n}) => ({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'flex-start',\n justifyContent: 'space-between',\n padding: theme.spacing(2, 3),\n variants: [{\n props: {\n isLandscape: true\n },\n style: {\n height: 'auto',\n maxWidth: 160,\n padding: 16,\n justifyContent: 'flex-start',\n flexWrap: 'wrap'\n }\n }]\n}));\nconst PickersToolbarContent = styled('div', {\n name: 'MuiPickersToolbar',\n slot: 'Content',\n overridesResolver: (props, styles) => styles.content\n})({\n display: 'flex',\n flexWrap: 'wrap',\n width: '100%',\n flex: 1,\n justifyContent: 'space-between',\n alignItems: 'center',\n flexDirection: 'row',\n variants: [{\n props: {\n isLandscape: true\n },\n style: {\n justifyContent: 'flex-start',\n alignItems: 'flex-start',\n flexDirection: 'column'\n }\n }, {\n props: {\n isLandscape: true,\n landscapeDirection: 'row'\n },\n style: {\n flexDirection: 'row'\n }\n }]\n});\nexport const PickersToolbar = /*#__PURE__*/React.forwardRef(function PickersToolbar(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbar'\n });\n const {\n children,\n className,\n toolbarTitle,\n hidden,\n titleId\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n if (hidden) {\n return null;\n }\n return /*#__PURE__*/_jsxs(PickersToolbarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(Typography, {\n color: \"text.secondary\",\n variant: \"overline\",\n id: titleId,\n children: toolbarTitle\n }), /*#__PURE__*/_jsx(PickersToolbarContent, {\n className: classes.content,\n ownerState: ownerState,\n children: children\n })]\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDatePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiDatePickerToolbar', slot);\n}\nexport const datePickerToolbarClasses = generateUtilityClasses('MuiDatePickerToolbar', ['root', 'title']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\", \"isLandscape\", \"onChange\", \"toolbarFormat\", \"toolbarPlaceholder\", \"views\", \"className\", \"onViewChange\", \"view\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbar } from \"../internals/components/PickersToolbar.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { getDatePickerToolbarUtilityClass } from \"./datePickerToolbarClasses.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n title: ['title']\n };\n return composeClasses(slots, getDatePickerToolbarUtilityClass, classes);\n};\nconst DatePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiDatePickerToolbar',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({});\nconst DatePickerToolbarTitle = styled(Typography, {\n name: 'MuiDatePickerToolbar',\n slot: 'Title',\n overridesResolver: (_, styles) => styles.title\n})({\n variants: [{\n props: {\n isLandscape: true\n },\n style: {\n margin: 'auto 16px auto auto'\n }\n }]\n});\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [DatePickerToolbar API](https://mui.com/x/api/date-pickers/date-picker-toolbar/)\n */\nexport const DatePickerToolbar = /*#__PURE__*/React.forwardRef(function DatePickerToolbar(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDatePickerToolbar'\n });\n const {\n value,\n isLandscape,\n toolbarFormat,\n toolbarPlaceholder = '––',\n views,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const utils = useUtils();\n const translations = usePickersTranslations();\n const classes = useUtilityClasses(props);\n const dateText = React.useMemo(() => {\n if (!value) {\n return toolbarPlaceholder;\n }\n const formatFromViews = resolveDateFormat(utils, {\n format: toolbarFormat,\n views\n }, true);\n return utils.formatByString(value, formatFromViews);\n }, [value, toolbarFormat, toolbarPlaceholder, utils, views]);\n const ownerState = props;\n return /*#__PURE__*/_jsx(DatePickerToolbarRoot, _extends({\n ref: ref,\n toolbarTitle: translations.datePickerToolbarTitle,\n isLandscape: isLandscape,\n className: clsx(classes.root, className)\n }, other, {\n children: /*#__PURE__*/_jsx(DatePickerToolbarTitle, {\n variant: \"h4\",\n align: isLandscape ? 'left' : 'center',\n ownerState: ownerState,\n className: classes.title,\n children: dateText\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DatePickerToolbar.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 * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n isLandscape: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n /**\n * Callback called when a toolbar is clicked\n * @template TView\n * @param {TView} view The view to open\n */\n onViewChange: PropTypes.func.isRequired,\n readOnly: PropTypes.bool,\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 titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node,\n value: PropTypes.object,\n /**\n * Currently visible picker view.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired\n} : void 0;","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { useDefaultDates, useUtils } from \"../internals/hooks/useUtils.js\";\nimport { applyDefaultViewProps } from \"../internals/utils/views.js\";\nimport { applyDefaultDate } from \"../internals/utils/date-utils.js\";\nimport { DatePickerToolbar } from \"./DatePickerToolbar.js\";\nexport function useDatePickerDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const themeProps = useThemeProps({\n props,\n name\n });\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n datePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n return _extends({}, themeProps, {\n localeText\n }, applyDefaultViewProps({\n views: themeProps.views,\n openTo: themeProps.openTo,\n defaultViews: ['year', 'day'],\n defaultOpenTo: 'day'\n }), {\n disableFuture: themeProps.disableFuture ?? false,\n disablePast: themeProps.disablePast ?? false,\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate),\n slots: _extends({\n toolbar: DatePickerToolbar\n }, themeProps.slots)\n });\n}","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersPopperUtilityClass(slot) {\n return generateUtilityClass('MuiPickersPopper', slot);\n}\nexport const pickersPopperClasses = generateUtilityClasses('MuiPickersPopper', ['root', 'paper']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"PaperComponent\", \"popperPlacement\", \"ownerState\", \"children\", \"paperSlotProps\", \"paperClasses\", \"onPaperClick\", \"onPaperTouchStart\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport Grow from '@mui/material/Grow';\nimport Fade from '@mui/material/Fade';\nimport MuiPaper from '@mui/material/Paper';\nimport MuiPopper from '@mui/material/Popper';\nimport BaseFocusTrap from '@mui/material/Unstable_TrapFocus';\nimport { unstable_useForkRef as useForkRef, unstable_useEventCallback as useEventCallback, unstable_ownerDocument as ownerDocument, unstable_composeClasses as composeClasses } from '@mui/utils';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport { getPickersPopperUtilityClass } from \"./pickersPopperClasses.js\";\nimport { getActiveElement } from \"../utils/utils.js\";\nimport { useDefaultReduceAnimations } from \"../hooks/useDefaultReduceAnimations.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n paper: ['paper']\n };\n return composeClasses(slots, getPickersPopperUtilityClass, classes);\n};\nconst PickersPopperRoot = styled(MuiPopper, {\n name: 'MuiPickersPopper',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})(({\n theme\n}) => ({\n zIndex: theme.zIndex.modal\n}));\nconst PickersPopperPaper = styled(MuiPaper, {\n name: 'MuiPickersPopper',\n slot: 'Paper',\n overridesResolver: (_, styles) => styles.paper\n})({\n outline: 0,\n transformOrigin: 'top center',\n variants: [{\n props: ({\n placement\n }) => ['top', 'top-start', 'top-end'].includes(placement),\n style: {\n transformOrigin: 'bottom center'\n }\n }]\n});\nfunction clickedRootScrollbar(event, doc) {\n return doc.documentElement.clientWidth < event.clientX || doc.documentElement.clientHeight < event.clientY;\n}\n/**\n * Based on @mui/material/ClickAwayListener without the customization.\n * We can probably strip away even more since children won't be portaled.\n * @param {boolean} active Only listen to clicks when the popper is opened.\n * @param {(event: MouseEvent | TouchEvent) => void} onClickAway The callback to call when clicking outside the popper.\n * @returns {Array} The ref and event handler to listen to the outside clicks.\n */\nfunction useClickAwayListener(active, onClickAway) {\n const movedRef = React.useRef(false);\n const syntheticEventRef = React.useRef(false);\n const nodeRef = React.useRef(null);\n const activatedRef = React.useRef(false);\n React.useEffect(() => {\n if (!active) {\n return undefined;\n }\n\n // Ensure that this hook is not \"activated\" synchronously.\n // https://github.com/facebook/react/issues/20074\n function armClickAwayListener() {\n activatedRef.current = true;\n }\n document.addEventListener('mousedown', armClickAwayListener, true);\n document.addEventListener('touchstart', armClickAwayListener, true);\n return () => {\n document.removeEventListener('mousedown', armClickAwayListener, true);\n document.removeEventListener('touchstart', armClickAwayListener, true);\n activatedRef.current = false;\n };\n }, [active]);\n\n // The handler doesn't take event.defaultPrevented into account:\n //\n // event.preventDefault() is meant to stop default behaviors like\n // clicking a checkbox to check it, hitting a button to submit a form,\n // and hitting left arrow to move the cursor in a text input etc.\n // Only special HTML elements have these default behaviors.\n const handleClickAway = useEventCallback(event => {\n if (!activatedRef.current) {\n return;\n }\n\n // Given developers can stop the propagation of the synthetic event,\n // we can only be confident with a positive value.\n const insideReactTree = syntheticEventRef.current;\n syntheticEventRef.current = false;\n const doc = ownerDocument(nodeRef.current);\n\n // 1. IE11 support, which trigger the handleClickAway even after the unbind\n // 2. The child might render null.\n // 3. Behave like a blur listener.\n if (!nodeRef.current ||\n // is a TouchEvent?\n 'clientX' in event && clickedRootScrollbar(event, doc)) {\n return;\n }\n\n // Do not act if user performed touchmove\n if (movedRef.current) {\n movedRef.current = false;\n return;\n }\n let insideDOM;\n\n // If not enough, can use https://github.com/DieterHolvoet/event-propagation-path/blob/master/propagationPath.js\n if (event.composedPath) {\n insideDOM = event.composedPath().indexOf(nodeRef.current) > -1;\n } else {\n insideDOM = !doc.documentElement.contains(event.target) || nodeRef.current.contains(event.target);\n }\n if (!insideDOM && !insideReactTree) {\n onClickAway(event);\n }\n });\n\n // Keep track of mouse/touch events that bubbled up through the portal.\n const handleSynthetic = () => {\n syntheticEventRef.current = true;\n };\n React.useEffect(() => {\n if (active) {\n const doc = ownerDocument(nodeRef.current);\n const handleTouchMove = () => {\n movedRef.current = true;\n };\n doc.addEventListener('touchstart', handleClickAway);\n doc.addEventListener('touchmove', handleTouchMove);\n return () => {\n doc.removeEventListener('touchstart', handleClickAway);\n doc.removeEventListener('touchmove', handleTouchMove);\n };\n }\n return undefined;\n }, [active, handleClickAway]);\n React.useEffect(() => {\n // TODO This behavior is not tested automatically\n // It's unclear whether this is due to different update semantics in test (batched in act() vs discrete on click).\n // Or if this is a timing related issues due to different Transition components\n // Once we get rid of all the manual scheduling (for example setTimeout(update, 0)) we can revisit this code+test.\n if (active) {\n const doc = ownerDocument(nodeRef.current);\n doc.addEventListener('click', handleClickAway);\n return () => {\n doc.removeEventListener('click', handleClickAway);\n // cleanup `handleClickAway`\n syntheticEventRef.current = false;\n };\n }\n return undefined;\n }, [active, handleClickAway]);\n return [nodeRef, handleSynthetic, handleSynthetic];\n}\nconst PickersPopperPaperWrapper = /*#__PURE__*/React.forwardRef((props, ref) => {\n const {\n PaperComponent,\n popperPlacement,\n ownerState: inOwnerState,\n children,\n paperSlotProps,\n paperClasses,\n onPaperClick,\n onPaperTouchStart\n // picks up the style props provided by `Transition`\n // https://mui.com/material-ui/transitions/#child-requirement\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const ownerState = _extends({}, inOwnerState, {\n placement: popperPlacement\n });\n const paperProps = useSlotProps({\n elementType: PaperComponent,\n externalSlotProps: paperSlotProps,\n additionalProps: {\n tabIndex: -1,\n elevation: 8,\n ref\n },\n className: paperClasses,\n ownerState\n });\n return /*#__PURE__*/_jsx(PaperComponent, _extends({}, other, paperProps, {\n onClick: event => {\n onPaperClick(event);\n paperProps.onClick?.(event);\n },\n onTouchStart: event => {\n onPaperTouchStart(event);\n paperProps.onTouchStart?.(event);\n },\n ownerState: ownerState,\n children: children\n }));\n});\nexport function PickersPopper(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersPopper'\n });\n const {\n anchorEl,\n children,\n containerRef = null,\n shouldRestoreFocus,\n onBlur,\n onDismiss,\n open,\n role,\n placement,\n slots,\n slotProps,\n reduceAnimations: inReduceAnimations\n } = props;\n React.useEffect(() => {\n function handleKeyDown(nativeEvent) {\n if (open && nativeEvent.key === 'Escape') {\n onDismiss();\n }\n }\n document.addEventListener('keydown', handleKeyDown);\n return () => {\n document.removeEventListener('keydown', handleKeyDown);\n };\n }, [onDismiss, open]);\n const lastFocusedElementRef = React.useRef(null);\n React.useEffect(() => {\n if (role === 'tooltip' || shouldRestoreFocus && !shouldRestoreFocus()) {\n return;\n }\n if (open) {\n lastFocusedElementRef.current = getActiveElement(document);\n } else if (lastFocusedElementRef.current && lastFocusedElementRef.current instanceof HTMLElement) {\n // make sure the button is flushed with updated label, before returning focus to it\n // avoids issue, where screen reader could fail to announce selected date after selection\n setTimeout(() => {\n if (lastFocusedElementRef.current instanceof HTMLElement) {\n lastFocusedElementRef.current.focus();\n }\n });\n }\n }, [open, role, shouldRestoreFocus]);\n const [clickAwayRef, onPaperClick, onPaperTouchStart] = useClickAwayListener(open, onBlur ?? onDismiss);\n const paperRef = React.useRef(null);\n const handleRef = useForkRef(paperRef, containerRef);\n const handlePaperRef = useForkRef(handleRef, clickAwayRef);\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n const defaultReduceAnimations = useDefaultReduceAnimations();\n const reduceAnimations = inReduceAnimations ?? defaultReduceAnimations;\n const handleKeyDown = event => {\n if (event.key === 'Escape') {\n // stop the propagation to avoid closing parent modal\n event.stopPropagation();\n onDismiss();\n }\n };\n const Transition = slots?.desktopTransition ?? reduceAnimations ? Fade : Grow;\n const FocusTrap = slots?.desktopTrapFocus ?? BaseFocusTrap;\n const Paper = slots?.desktopPaper ?? PickersPopperPaper;\n const Popper = slots?.popper ?? PickersPopperRoot;\n const popperProps = useSlotProps({\n elementType: Popper,\n externalSlotProps: slotProps?.popper,\n additionalProps: {\n transition: true,\n role,\n open,\n anchorEl,\n placement,\n onKeyDown: handleKeyDown\n },\n className: classes.root,\n ownerState: props\n });\n return /*#__PURE__*/_jsx(Popper, _extends({}, popperProps, {\n children: ({\n TransitionProps,\n placement: popperPlacement\n }) => /*#__PURE__*/_jsx(FocusTrap, _extends({\n open: open,\n disableAutoFocus: true\n // pickers are managing focus position manually\n // without this prop the focus is returned to the button before `aria-label` is updated\n // which would force screen readers to read too old label\n ,\n disableRestoreFocus: true,\n disableEnforceFocus: role === 'tooltip',\n isEnabled: () => true\n }, slotProps?.desktopTrapFocus, {\n children: /*#__PURE__*/_jsx(Transition, _extends({}, TransitionProps, slotProps?.desktopTransition, {\n children: /*#__PURE__*/_jsx(PickersPopperPaperWrapper, {\n PaperComponent: Paper,\n ownerState: ownerState,\n popperPlacement: popperPlacement,\n ref: handlePaperRef,\n onPaperClick: onPaperClick,\n onPaperTouchStart: onPaperTouchStart,\n paperClasses: classes.paper,\n paperSlotProps: slotProps?.desktopPaper,\n children: children\n })\n }))\n }))\n }));\n}","import * as React from 'react';\nexport const useOpenState = ({\n open,\n onOpen,\n onClose\n}) => {\n const isControllingOpenProp = React.useRef(typeof open === 'boolean').current;\n const [openState, setIsOpenState] = React.useState(false);\n\n // It is required to update inner state in useEffect in order to avoid situation when\n // Our component is not mounted yet, but `open` state is set to `true` (for example initially opened)\n React.useEffect(() => {\n if (isControllingOpenProp) {\n if (typeof open !== 'boolean') {\n throw new Error('You must not mix controlling and uncontrolled mode for `open` prop');\n }\n setIsOpenState(open);\n }\n }, [isControllingOpenProp, open]);\n const setIsOpen = React.useCallback(newIsOpen => {\n if (!isControllingOpenProp) {\n setIsOpenState(newIsOpen);\n }\n if (newIsOpen && onOpen) {\n onOpen();\n }\n if (!newIsOpen && onClose) {\n onClose();\n }\n }, [isControllingOpenProp, onOpen, onClose]);\n return {\n isOpen: openState,\n setIsOpen\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useOpenState } from \"../useOpenState.js\";\nimport { useLocalizationContext, useUtils } from \"../useUtils.js\";\nimport { useValidation } from \"../../../validation/index.js\";\nimport { useValueWithTimezone } from \"../useValueWithTimezone.js\";\n/**\n * Decide if the new value should be published\n * The published value will be passed to `onChange` if defined.\n */\nconst shouldPublishValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n\n // The field is responsible for only calling `onChange` when needed.\n if (action.name === 'setValueFromField') {\n return true;\n }\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to publish the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState !== 'shallow') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n // On the first view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onChange`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastPublishedValue);\n }\n return false;\n};\n\n/**\n * Decide if the new value should be committed.\n * The committed value will be passed to `onAccept` if defined.\n * It will also be used as a reset target when calling the `cancel` picker action (when clicking on the \"Cancel\" button).\n */\nconst shouldCommitValue = params => {\n const {\n action,\n hasChanged,\n dateState,\n isControlled,\n closeOnSelect\n } = params;\n const isCurrentValueTheDefaultValue = !isControlled && !dateState.hasBeenModifiedSinceMount;\n if (action.name === 'setValueFromAction') {\n // If the component is not controlled, and the value has not been modified since the mount,\n // Then we want to commit the default value whenever the user pressed the \"Accept\", \"Today\" or \"Clear\" button.\n if (isCurrentValueTheDefaultValue && ['accept', 'today', 'clear'].includes(action.pickerAction)) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromView' && action.selectionState === 'finish' && closeOnSelect) {\n // On picker where the 1st view is also the last view,\n // If the value is not controlled, then clicking on any value (including the one equal to `defaultValue`) should call `onAccept`\n if (isCurrentValueTheDefaultValue) {\n return true;\n }\n return hasChanged(dateState.lastCommittedValue);\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept' && hasChanged(dateState.lastCommittedValue);\n }\n return false;\n};\n\n/**\n * Decide if the picker should be closed after the value is updated.\n */\nconst shouldClosePicker = params => {\n const {\n action,\n closeOnSelect\n } = params;\n if (action.name === 'setValueFromAction') {\n return true;\n }\n if (action.name === 'setValueFromView') {\n return action.selectionState === 'finish' && closeOnSelect;\n }\n if (action.name === 'setValueFromShortcut') {\n return action.changeImportance === 'accept';\n }\n return false;\n};\n\n/**\n * Manage the value lifecycle of all the pickers.\n */\nexport const usePickerValue = ({\n props,\n valueManager,\n valueType,\n wrapperVariant,\n validator\n}) => {\n const {\n onAccept,\n onChange,\n value: inValueWithoutRenderTimezone,\n defaultValue: inDefaultValue,\n closeOnSelect = wrapperVariant === 'desktop',\n timezone: timezoneProp\n } = props;\n const {\n current: defaultValue\n } = React.useRef(inDefaultValue);\n const {\n current: isControlled\n } = React.useRef(inValueWithoutRenderTimezone !== undefined);\n const [previousTimezoneProp, setPreviousTimezoneProp] = React.useState(timezoneProp);\n\n /* eslint-disable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n if (process.env.NODE_ENV !== 'production') {\n React.useEffect(() => {\n if (isControlled !== (inValueWithoutRenderTimezone !== undefined)) {\n console.error([`MUI X: A component is changing the ${isControlled ? '' : 'un'}controlled value of a picker to be ${isControlled ? 'un' : ''}controlled.`, 'Elements should not switch from uncontrolled to controlled (or vice versa).', `Decide between using a controlled or uncontrolled value` + 'for the lifetime of the component.', \"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.\", 'More info: https://fb.me/react-controlled-components'].join('\\n'));\n }\n }, [inValueWithoutRenderTimezone]);\n React.useEffect(() => {\n if (!isControlled && defaultValue !== inDefaultValue) {\n console.error([`MUI X: A component is changing the defaultValue of an uncontrolled picker after being initialized. ` + `To suppress this warning opt to use a controlled value.`].join('\\n'));\n }\n }, [JSON.stringify(defaultValue)]);\n }\n /* eslint-enable react-hooks/rules-of-hooks, react-hooks/exhaustive-deps */\n\n const utils = useUtils();\n const adapter = useLocalizationContext();\n const {\n isOpen,\n setIsOpen\n } = useOpenState(props);\n const {\n timezone,\n value: inValueWithTimezoneToRender,\n handleValueChange\n } = useValueWithTimezone({\n timezone: timezoneProp,\n value: inValueWithoutRenderTimezone,\n defaultValue,\n onChange,\n valueManager\n });\n const [dateState, setDateState] = React.useState(() => {\n let initialValue;\n if (inValueWithTimezoneToRender !== undefined) {\n initialValue = inValueWithTimezoneToRender;\n } else if (defaultValue !== undefined) {\n initialValue = defaultValue;\n } else {\n initialValue = valueManager.emptyValue;\n }\n return {\n draft: initialValue,\n lastPublishedValue: initialValue,\n lastCommittedValue: initialValue,\n lastControlledValue: inValueWithoutRenderTimezone,\n hasBeenModifiedSinceMount: false\n };\n });\n const timezoneFromDraftValue = valueManager.getTimezone(utils, dateState.draft);\n if (previousTimezoneProp !== timezoneProp) {\n setPreviousTimezoneProp(timezoneProp);\n if (timezoneProp && timezoneFromDraftValue && timezoneProp !== timezoneFromDraftValue) {\n setDateState(prev => _extends({}, prev, {\n draft: valueManager.setTimezone(utils, timezoneProp, prev.draft)\n }));\n }\n }\n const {\n getValidationErrorForNewValue\n } = useValidation({\n props,\n validator,\n timezone,\n value: dateState.draft,\n onError: props.onError\n });\n const updateDate = useEventCallback(action => {\n const updaterParams = {\n action,\n dateState,\n hasChanged: comparison => !valueManager.areValuesEqual(utils, action.value, comparison),\n isControlled,\n closeOnSelect\n };\n const shouldPublish = shouldPublishValue(updaterParams);\n const shouldCommit = shouldCommitValue(updaterParams);\n const shouldClose = shouldClosePicker(updaterParams);\n setDateState(prev => _extends({}, prev, {\n draft: action.value,\n lastPublishedValue: shouldPublish ? action.value : prev.lastPublishedValue,\n lastCommittedValue: shouldCommit ? action.value : prev.lastCommittedValue,\n hasBeenModifiedSinceMount: true\n }));\n let cachedContext = null;\n const getContext = () => {\n if (!cachedContext) {\n const validationError = action.name === 'setValueFromField' ? action.context.validationError : getValidationErrorForNewValue(action.value);\n cachedContext = {\n validationError\n };\n if (action.name === 'setValueFromShortcut') {\n cachedContext.shortcut = action.shortcut;\n }\n }\n return cachedContext;\n };\n if (shouldPublish) {\n handleValueChange(action.value, getContext());\n }\n if (shouldCommit && onAccept) {\n onAccept(action.value, getContext());\n }\n if (shouldClose) {\n setIsOpen(false);\n }\n });\n if (dateState.lastControlledValue !== inValueWithoutRenderTimezone) {\n const isUpdateComingFromPicker = valueManager.areValuesEqual(utils, dateState.draft, inValueWithTimezoneToRender);\n setDateState(prev => _extends({}, prev, {\n lastControlledValue: inValueWithoutRenderTimezone\n }, isUpdateComingFromPicker ? {} : {\n lastCommittedValue: inValueWithTimezoneToRender,\n lastPublishedValue: inValueWithTimezoneToRender,\n draft: inValueWithTimezoneToRender,\n hasBeenModifiedSinceMount: true\n }));\n }\n const handleClear = useEventCallback(() => {\n updateDate({\n value: valueManager.emptyValue,\n name: 'setValueFromAction',\n pickerAction: 'clear'\n });\n });\n const handleAccept = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'accept'\n });\n });\n const handleDismiss = useEventCallback(() => {\n updateDate({\n value: dateState.lastPublishedValue,\n name: 'setValueFromAction',\n pickerAction: 'dismiss'\n });\n });\n const handleCancel = useEventCallback(() => {\n updateDate({\n value: dateState.lastCommittedValue,\n name: 'setValueFromAction',\n pickerAction: 'cancel'\n });\n });\n const handleSetToday = useEventCallback(() => {\n updateDate({\n value: valueManager.getTodayValue(utils, timezone, valueType),\n name: 'setValueFromAction',\n pickerAction: 'today'\n });\n });\n const handleOpen = useEventCallback(event => {\n event.preventDefault();\n setIsOpen(true);\n });\n const handleClose = useEventCallback(event => {\n event?.preventDefault();\n setIsOpen(false);\n });\n const handleChange = useEventCallback((newValue, selectionState = 'partial') => updateDate({\n name: 'setValueFromView',\n value: newValue,\n selectionState\n }));\n const handleSelectShortcut = useEventCallback((newValue, changeImportance, shortcut) => updateDate({\n name: 'setValueFromShortcut',\n value: newValue,\n changeImportance,\n shortcut\n }));\n const handleChangeFromField = useEventCallback((newValue, context) => updateDate({\n name: 'setValueFromField',\n value: newValue,\n context\n }));\n const actions = {\n onClear: handleClear,\n onAccept: handleAccept,\n onDismiss: handleDismiss,\n onCancel: handleCancel,\n onSetToday: handleSetToday,\n onOpen: handleOpen,\n onClose: handleClose\n };\n const fieldResponse = {\n value: dateState.draft,\n onChange: handleChangeFromField\n };\n const viewValue = React.useMemo(() => valueManager.cleanValue(utils, dateState.draft), [utils, valueManager, dateState.draft]);\n const viewResponse = {\n value: viewValue,\n onChange: handleChange,\n onClose: handleClose,\n open: isOpen\n };\n const isValid = testedValue => {\n const error = validator({\n adapter,\n value: testedValue,\n timezone,\n props\n });\n return !valueManager.hasError(error);\n };\n const layoutResponse = _extends({}, actions, {\n value: viewValue,\n onChange: handleChange,\n onSelectShortcut: handleSelectShortcut,\n isValid\n });\n const contextValue = React.useMemo(() => ({\n onOpen: handleOpen,\n onClose: handleClose,\n open: isOpen\n }), [isOpen, handleClose, handleOpen]);\n return {\n open: isOpen,\n fieldProps: fieldResponse,\n viewProps: viewResponse,\n layoutProps: layoutResponse,\n actions,\n contextValue\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"sx\"];\nimport * as React from 'react';\nimport useEnhancedEffect from '@mui/utils/useEnhancedEffect';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { useViews } from \"../useViews.js\";\nimport { isTimeView } from \"../../utils/time-utils.js\";\n\n/**\n * Props used to handle the views that are common to all pickers.\n */\n\n/**\n * Props used to handle the views of the pickers.\n */\n\n/**\n * Props used to handle the value of the pickers.\n */\n\n/**\n * Manage the views of all the pickers:\n * - Handles the view switch\n * - Handles the switch between UI views and field views\n * - Handles the focus management when switching views\n */\nexport const usePickerViews = ({\n props,\n propsFromPickerValue,\n additionalViewProps,\n autoFocusView,\n rendererInterceptor,\n fieldRef\n}) => {\n const {\n onChange,\n open,\n onClose\n } = propsFromPickerValue;\n const {\n view: inView,\n views,\n openTo,\n onViewChange,\n viewRenderers,\n timezone\n } = props;\n const propsToForwardToView = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n view,\n setView,\n defaultView,\n focusedView,\n setFocusedView,\n setValueAndGoToNextView\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange,\n onViewChange,\n autoFocus: autoFocusView\n });\n const {\n hasUIView,\n viewModeLookup\n } = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n let viewMode;\n if (viewRenderers[viewForReduce] != null) {\n viewMode = 'UI';\n } else {\n viewMode = 'field';\n }\n acc.viewModeLookup[viewForReduce] = viewMode;\n if (viewMode === 'UI') {\n acc.hasUIView = true;\n }\n return acc;\n }, {\n hasUIView: false,\n viewModeLookup: {}\n }), [viewRenderers, views]);\n const timeViewsCount = React.useMemo(() => views.reduce((acc, viewForReduce) => {\n if (viewRenderers[viewForReduce] != null && isTimeView(viewForReduce)) {\n return acc + 1;\n }\n return acc;\n }, 0), [viewRenderers, views]);\n const currentViewMode = viewModeLookup[view];\n const shouldRestoreFocus = useEventCallback(() => currentViewMode === 'UI');\n const [popperView, setPopperView] = React.useState(currentViewMode === 'UI' ? view : null);\n if (popperView !== view && viewModeLookup[view] === 'UI') {\n setPopperView(view);\n }\n useEnhancedEffect(() => {\n // Handle case of `DateTimePicker` without time renderers\n if (currentViewMode === 'field' && open) {\n onClose();\n setTimeout(() => {\n fieldRef?.current?.setSelectedSections(view);\n // focusing the input before the range selection is done\n // calling it outside of timeout results in an inconsistent behavior between Safari And Chrome\n fieldRef?.current?.focusField(view);\n });\n }\n }, [view]); // eslint-disable-line react-hooks/exhaustive-deps\n\n useEnhancedEffect(() => {\n if (!open) {\n return;\n }\n let newView = view;\n\n // If the current view is a field view, go to the last popper view\n if (currentViewMode === 'field' && popperView != null) {\n newView = popperView;\n }\n\n // If the current view is not the default view and both are UI views\n if (newView !== defaultView && viewModeLookup[newView] === 'UI' && viewModeLookup[defaultView] === 'UI') {\n newView = defaultView;\n }\n if (newView !== view) {\n setView(newView);\n }\n setFocusedView(newView, true);\n }, [open]); // eslint-disable-line react-hooks/exhaustive-deps\n\n const layoutProps = {\n views,\n view: popperView,\n onViewChange: setView\n };\n return {\n hasUIView,\n shouldRestoreFocus,\n layoutProps,\n renderCurrentView: () => {\n if (popperView == null) {\n return null;\n }\n const renderer = viewRenderers[popperView];\n if (renderer == null) {\n return null;\n }\n const rendererProps = _extends({}, propsToForwardToView, additionalViewProps, propsFromPickerValue, {\n views,\n timezone,\n onChange: setValueAndGoToNextView,\n view: popperView,\n onViewChange: setView,\n focusedView,\n onFocusedViewChange: setFocusedView,\n showViewSwitcher: timeViewsCount > 1,\n timeViewsCount\n });\n if (rendererInterceptor) {\n return rendererInterceptor(viewRenderers, popperView, rendererProps);\n }\n return renderer(rendererProps);\n }\n };\n};","import * as React from 'react';\nimport { unstable_useEnhancedEffect as useEnhancedEffect } from '@mui/utils';\nimport { arrayIncludes } from \"../utils/utils.js\";\nfunction getOrientation() {\n if (typeof window === 'undefined') {\n return 'portrait';\n }\n if (window.screen && window.screen.orientation && window.screen.orientation.angle) {\n return Math.abs(window.screen.orientation.angle) === 90 ? 'landscape' : 'portrait';\n }\n\n // Support IOS safari\n if (window.orientation) {\n return Math.abs(Number(window.orientation)) === 90 ? 'landscape' : 'portrait';\n }\n return 'portrait';\n}\nexport const useIsLandscape = (views, customOrientation) => {\n const [orientation, setOrientation] = React.useState(getOrientation);\n useEnhancedEffect(() => {\n const eventHandler = () => {\n setOrientation(getOrientation());\n };\n window.addEventListener('orientationchange', eventHandler);\n return () => {\n window.removeEventListener('orientationchange', eventHandler);\n };\n }, []);\n if (arrayIncludes(views, ['hours', 'minutes', 'seconds'])) {\n // could not display 13:34:44 in landscape mode\n return false;\n }\n const orientationToUse = customOrientation || orientation;\n return orientationToUse === 'landscape';\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { useIsLandscape } from \"../useIsLandscape.js\";\n\n/**\n * Props used to create the layout of the views.\n * Those props are exposed on all the pickers.\n */\n\n/**\n * Prepare the props for the view layout (managed by `PickersLayout`)\n */\nexport const usePickerLayoutProps = ({\n props,\n propsFromPickerValue,\n propsFromPickerViews,\n wrapperVariant\n}) => {\n const {\n orientation\n } = props;\n const isLandscape = useIsLandscape(propsFromPickerViews.views, orientation);\n const isRtl = useRtl();\n const layoutProps = _extends({}, propsFromPickerViews, propsFromPickerValue, {\n isLandscape,\n isRtl,\n wrapperVariant,\n disabled: props.disabled,\n readOnly: props.readOnly\n });\n return {\n layoutProps\n };\n};","import * as React from 'react';\nexport function usePickerOwnerState(parameters) {\n const {\n props,\n pickerValueResponse\n } = parameters;\n return React.useMemo(() => ({\n value: pickerValueResponse.viewProps.value,\n open: pickerValueResponse.open,\n disabled: props.disabled ?? false,\n readOnly: props.readOnly ?? false\n }), [pickerValueResponse.viewProps.value, pickerValueResponse.open, props.disabled, props.readOnly]);\n}","import { warnOnce } from '@mui/x-internals/warning';\nimport { usePickerValue } from \"./usePickerValue.js\";\nimport { usePickerViews } from \"./usePickerViews.js\";\nimport { usePickerLayoutProps } from \"./usePickerLayoutProps.js\";\nimport { usePickerOwnerState } from \"./usePickerOwnerState.js\";\nexport const usePicker = ({\n props,\n valueManager,\n valueType,\n wrapperVariant,\n additionalViewProps,\n validator,\n autoFocusView,\n rendererInterceptor,\n fieldRef\n}) => {\n if (process.env.NODE_ENV !== 'production') {\n if (props.renderInput != null) {\n warnOnce(['MUI X: The `renderInput` prop has been removed in version 6.0 of the Date and Time Pickers.', 'You can replace it with the `textField` component slot in most cases.', 'For more information, please have a look at the migration guide (https://mui.com/x/migration/migration-pickers-v5/#input-renderer-required-in-v5).']);\n }\n }\n const pickerValueResponse = usePickerValue({\n props,\n valueManager,\n valueType,\n wrapperVariant,\n validator\n });\n const pickerViewsResponse = usePickerViews({\n props,\n additionalViewProps,\n autoFocusView,\n fieldRef,\n propsFromPickerValue: pickerValueResponse.viewProps,\n rendererInterceptor\n });\n const pickerLayoutResponse = usePickerLayoutProps({\n props,\n wrapperVariant,\n propsFromPickerValue: pickerValueResponse.layoutProps,\n propsFromPickerViews: pickerViewsResponse.layoutProps\n });\n const pickerOwnerState = usePickerOwnerState({\n props,\n pickerValueResponse\n });\n return {\n // Picker value\n open: pickerValueResponse.open,\n actions: pickerValueResponse.actions,\n fieldProps: pickerValueResponse.fieldProps,\n // Picker views\n renderCurrentView: pickerViewsResponse.renderCurrentView,\n hasUIView: pickerViewsResponse.hasUIView,\n shouldRestoreFocus: pickerViewsResponse.shouldRestoreFocus,\n // Picker layout\n layoutProps: pickerLayoutResponse.layoutProps,\n // Picker context\n contextValue: pickerValueResponse.contextValue,\n // Picker owner state\n ownerState: pickerOwnerState\n };\n};","import generateUtilityClass from '@mui/utils/generateUtilityClass';\nimport generateUtilityClasses from '@mui/utils/generateUtilityClasses';\nexport function getPickersLayoutUtilityClass(slot) {\n return generateUtilityClass('MuiPickersLayout', slot);\n}\nexport const pickersLayoutClasses = generateUtilityClasses('MuiPickersLayout', ['root', 'landscape', 'contentWrapper', 'toolbar', 'actionBar', 'tabs', 'shortcuts']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"onAccept\", \"onClear\", \"onCancel\", \"onSetToday\", \"actions\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport Button from '@mui/material/Button';\nimport DialogActions from '@mui/material/DialogActions';\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [Custom slots and subcomponents](https://mui.com/x/react-date-pickers/custom-components/)\n * - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)\n *\n * API:\n *\n * - [PickersActionBar API](https://mui.com/x/api/date-pickers/pickers-action-bar/)\n */\nfunction PickersActionBar(props) {\n const {\n onAccept,\n onClear,\n onCancel,\n onSetToday,\n actions\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const translations = usePickersTranslations();\n if (actions == null || actions.length === 0) {\n return null;\n }\n const buttons = actions?.map(actionType => {\n switch (actionType) {\n case 'clear':\n return /*#__PURE__*/_jsx(Button, {\n onClick: onClear,\n children: translations.clearButtonLabel\n }, actionType);\n case 'cancel':\n return /*#__PURE__*/_jsx(Button, {\n onClick: onCancel,\n children: translations.cancelButtonLabel\n }, actionType);\n case 'accept':\n return /*#__PURE__*/_jsx(Button, {\n onClick: onAccept,\n children: translations.okButtonLabel\n }, actionType);\n case 'today':\n return /*#__PURE__*/_jsx(Button, {\n onClick: onSetToday,\n children: translations.todayButtonLabel\n }, actionType);\n default:\n return null;\n }\n });\n return /*#__PURE__*/_jsx(DialogActions, _extends({}, other, {\n children: buttons\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersActionBar.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 * Ordered array of actions to display.\n * If empty, does not display that action bar.\n * @default `['cancel', 'accept']` for mobile and `[]` for desktop\n */\n actions: PropTypes.arrayOf(PropTypes.oneOf(['accept', 'cancel', 'clear', 'today']).isRequired),\n /**\n * If `true`, the actions do not have additional margin.\n * @default false\n */\n disableSpacing: PropTypes.bool,\n onAccept: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n onClear: PropTypes.func.isRequired,\n onSetToday: PropTypes.func.isRequired,\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 { PickersActionBar };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"items\", \"changeImportance\", \"isLandscape\", \"onChange\", \"isValid\"],\n _excluded2 = [\"getValue\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport List from '@mui/material/List';\nimport ListItem from '@mui/material/ListItem';\nimport Chip from '@mui/material/Chip';\nimport { VIEW_HEIGHT } from \"../internals/constants/dimensions.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [Shortcuts](https://mui.com/x/react-date-pickers/shortcuts/)\n *\n * API:\n *\n * - [PickersShortcuts API](https://mui.com/x/api/date-pickers/pickers-shortcuts/)\n */\nfunction PickersShortcuts(props) {\n const {\n items,\n changeImportance = 'accept',\n onChange,\n isValid\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n if (items == null || items.length === 0) {\n return null;\n }\n const resolvedItems = items.map(_ref => {\n let {\n getValue\n } = _ref,\n item = _objectWithoutPropertiesLoose(_ref, _excluded2);\n const newValue = getValue({\n isValid\n });\n return _extends({}, item, {\n label: item.label,\n onClick: () => {\n onChange(newValue, changeImportance, item);\n },\n disabled: !isValid(newValue)\n });\n });\n return /*#__PURE__*/_jsx(List, _extends({\n dense: true,\n sx: [{\n maxHeight: VIEW_HEIGHT,\n maxWidth: 200,\n overflow: 'auto'\n }, ...(Array.isArray(other.sx) ? other.sx : [other.sx])]\n }, other, {\n children: resolvedItems.map(item => {\n return /*#__PURE__*/_jsx(ListItem, {\n children: /*#__PURE__*/_jsx(Chip, _extends({}, item))\n }, item.id ?? item.label);\n })\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? PickersShortcuts.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 * Importance of the change when picking a shortcut:\n * - \"accept\": fires `onChange`, fires `onAccept` and closes the picker.\n * - \"set\": fires `onChange` but do not fire `onAccept` and does not close the picker.\n * @default \"accept\"\n */\n changeImportance: PropTypes.oneOf(['accept', 'set']),\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * If `true`, compact vertical padding designed for keyboard and mouse input is used for\n * the list and list items.\n * The prop is available to descendant components as the `dense` context.\n * @default false\n */\n dense: PropTypes.bool,\n /**\n * If `true`, vertical padding is removed from the list.\n * @default false\n */\n disablePadding: PropTypes.bool,\n isLandscape: PropTypes.bool.isRequired,\n isValid: PropTypes.func.isRequired,\n /**\n * Ordered array of shortcuts to display.\n * If empty, does not display the shortcuts.\n * @default []\n */\n items: PropTypes.arrayOf(PropTypes.shape({\n getValue: PropTypes.func.isRequired,\n id: PropTypes.string,\n label: PropTypes.string.isRequired\n })),\n onChange: PropTypes.func.isRequired,\n style: PropTypes.object,\n /**\n * The content of the subheader, normally `ListSubheader`.\n */\n subheader: PropTypes.node,\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 { PickersShortcuts };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersActionBar } from \"../PickersActionBar/index.js\";\nimport { getPickersLayoutUtilityClass } from \"./pickersLayoutClasses.js\";\nimport { PickersShortcuts } from \"../PickersShortcuts/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nfunction toolbarHasView(toolbarProps) {\n return toolbarProps.view !== null;\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n isLandscape\n } = ownerState;\n const slots = {\n root: ['root', isLandscape && 'landscape'],\n contentWrapper: ['contentWrapper'],\n toolbar: ['toolbar'],\n actionBar: ['actionBar'],\n tabs: ['tabs'],\n landscape: ['landscape'],\n shortcuts: ['shortcuts']\n };\n return composeClasses(slots, getPickersLayoutUtilityClass, classes);\n};\nconst usePickerLayout = props => {\n const {\n wrapperVariant,\n onAccept,\n onClear,\n onCancel,\n onSetToday,\n view,\n views,\n onViewChange,\n value,\n onChange,\n onSelectShortcut,\n isValid,\n isLandscape,\n disabled,\n readOnly,\n children,\n slots,\n slotProps\n // TODO: Remove this \"as\" hack. It get introduced to mark `value` prop in PickersLayoutProps as not required.\n // The true type should be\n // - For pickers value: TDate | null\n // - For range pickers value: [TDate | null, TDate | null]\n } = props;\n const classes = useUtilityClasses(props);\n\n // Action bar\n const ActionBar = slots?.actionBar ?? PickersActionBar;\n const actionBarProps = useSlotProps({\n elementType: ActionBar,\n externalSlotProps: slotProps?.actionBar,\n additionalProps: {\n onAccept,\n onClear,\n onCancel,\n onSetToday,\n actions: wrapperVariant === 'desktop' ? [] : ['cancel', 'accept']\n },\n className: classes.actionBar,\n ownerState: _extends({}, props, {\n wrapperVariant\n })\n });\n const actionBar = /*#__PURE__*/_jsx(ActionBar, _extends({}, actionBarProps));\n\n // Toolbar\n const Toolbar = slots?.toolbar;\n const toolbarProps = useSlotProps({\n elementType: Toolbar,\n externalSlotProps: slotProps?.toolbar,\n additionalProps: {\n isLandscape,\n onChange,\n value,\n view,\n onViewChange,\n views,\n disabled,\n readOnly\n },\n className: classes.toolbar,\n ownerState: _extends({}, props, {\n wrapperVariant\n })\n });\n const toolbar = toolbarHasView(toolbarProps) && !!Toolbar ? /*#__PURE__*/_jsx(Toolbar, _extends({}, toolbarProps)) : null;\n\n // Content\n const content = children;\n\n // Tabs\n const Tabs = slots?.tabs;\n const tabs = view && Tabs ? /*#__PURE__*/_jsx(Tabs, _extends({\n view: view,\n onViewChange: onViewChange,\n className: classes.tabs\n }, slotProps?.tabs)) : null;\n\n // Shortcuts\n const Shortcuts = slots?.shortcuts ?? PickersShortcuts;\n const shortcutsProps = useSlotProps({\n elementType: Shortcuts,\n externalSlotProps: slotProps?.shortcuts,\n additionalProps: {\n isValid,\n isLandscape,\n onChange: onSelectShortcut\n },\n className: classes.shortcuts,\n ownerState: {\n isValid,\n isLandscape,\n onChange: onSelectShortcut,\n wrapperVariant\n }\n });\n const shortcuts = view && !!Shortcuts ? /*#__PURE__*/_jsx(Shortcuts, _extends({}, shortcutsProps)) : null;\n return {\n toolbar,\n content,\n tabs,\n actionBar,\n shortcuts\n };\n};\nexport default usePickerLayout;","'use client';\n\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { pickersLayoutClasses, getPickersLayoutUtilityClass } from \"./pickersLayoutClasses.js\";\nimport usePickerLayout from \"./usePickerLayout.js\";\nimport { jsxs as _jsxs, jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n isLandscape,\n classes\n } = ownerState;\n const slots = {\n root: ['root', isLandscape && 'landscape'],\n contentWrapper: ['contentWrapper']\n };\n return composeClasses(slots, getPickersLayoutUtilityClass, classes);\n};\nexport const PickersLayoutRoot = styled('div', {\n name: 'MuiPickersLayout',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({\n display: 'grid',\n gridAutoColumns: 'max-content auto max-content',\n gridAutoRows: 'max-content auto max-content',\n [`& .${pickersLayoutClasses.actionBar}`]: {\n gridColumn: '1 / 4',\n gridRow: 3\n },\n variants: [{\n props: {\n isLandscape: true\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: 1,\n gridRow: '2 / 3'\n },\n [`.${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: '2 / 4',\n gridRow: 1\n }\n }\n }, {\n props: {\n isLandscape: true,\n isRtl: true\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: 3\n }\n }\n }, {\n props: {\n isLandscape: false\n },\n style: {\n [`& .${pickersLayoutClasses.toolbar}`]: {\n gridColumn: '2 / 4',\n gridRow: 1\n },\n [`& .${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: 1,\n gridRow: '2 / 3'\n }\n }\n }, {\n props: {\n isLandscape: false,\n isRtl: true\n },\n style: {\n [`& .${pickersLayoutClasses.shortcuts}`]: {\n gridColumn: 3\n }\n }\n }]\n});\nexport const PickersLayoutContentWrapper = styled('div', {\n name: 'MuiPickersLayout',\n slot: 'ContentWrapper',\n overridesResolver: (props, styles) => styles.contentWrapper\n})({\n gridColumn: 2,\n gridRow: 2,\n display: 'flex',\n flexDirection: 'column'\n});\n/**\n * Demos:\n *\n * - [Custom layout](https://mui.com/x/react-date-pickers/custom-layout/)\n *\n * API:\n *\n * - [PickersLayout API](https://mui.com/x/api/date-pickers/pickers-layout/)\n */\nconst PickersLayout = /*#__PURE__*/React.forwardRef(function PickersLayout(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersLayout'\n });\n const {\n toolbar,\n content,\n tabs,\n actionBar,\n shortcuts\n } = usePickerLayout(props);\n const {\n sx,\n className,\n isLandscape,\n wrapperVariant\n } = props;\n const classes = useUtilityClasses(props);\n return /*#__PURE__*/_jsxs(PickersLayoutRoot, {\n ref: ref,\n sx: sx,\n className: clsx(classes.root, className),\n ownerState: props,\n children: [isLandscape ? shortcuts : toolbar, isLandscape ? toolbar : shortcuts, /*#__PURE__*/_jsx(PickersLayoutContentWrapper, {\n className: classes.contentWrapper,\n children: wrapperVariant === 'desktop' ? /*#__PURE__*/_jsxs(React.Fragment, {\n children: [content, tabs]\n }) : /*#__PURE__*/_jsxs(React.Fragment, {\n children: [tabs, content]\n })\n }), actionBar]\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersLayout.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 children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n isLandscape: PropTypes.bool.isRequired,\n /**\n * `true` if the application is in right-to-left direction.\n */\n isRtl: PropTypes.bool.isRequired,\n isValid: PropTypes.func.isRequired,\n onAccept: PropTypes.func.isRequired,\n onCancel: PropTypes.func.isRequired,\n onChange: PropTypes.func.isRequired,\n onClear: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n onDismiss: PropTypes.func.isRequired,\n onOpen: PropTypes.func.isRequired,\n onSelectShortcut: PropTypes.func.isRequired,\n onSetToday: PropTypes.func.isRequired,\n onViewChange: PropTypes.func.isRequired,\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 value: PropTypes.any,\n view: PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']),\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'year']).isRequired).isRequired,\n wrapperVariant: PropTypes.oneOf(['desktop', 'mobile'])\n} : void 0;\nexport { PickersLayout };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"getOpenDialogAriaText\"],\n _excluded2 = [\"ownerState\"],\n _excluded3 = [\"ownerState\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport MuiInputAdornment from '@mui/material/InputAdornment';\nimport IconButton from '@mui/material/IconButton';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useId from '@mui/utils/useId';\nimport { PickersPopper } from \"../../components/PickersPopper.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickersProvider } from \"../../components/PickersProvider.js\";\n\n/**\n * Hook managing all the single-date desktop pickers:\n * - DesktopDatePicker\n * - DesktopDateTimePicker\n * - DesktopTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useDesktopPicker = _ref => {\n let {\n props,\n getOpenDialogAriaText\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n name,\n label,\n inputRef,\n readOnly,\n disabled,\n autoFocus,\n localeText,\n reduceAnimations\n } = props;\n const containerRef = React.useRef(null);\n const fieldRef = React.useRef(null);\n const labelId = useId();\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const {\n open,\n actions,\n hasUIView,\n layoutProps,\n renderCurrentView,\n shouldRestoreFocus,\n fieldProps: pickerFieldProps,\n contextValue,\n ownerState\n } = usePicker(_extends({}, pickerParams, {\n props,\n fieldRef,\n autoFocusView: true,\n additionalViewProps: {},\n wrapperVariant: 'desktop'\n }));\n const InputAdornment = slots.inputAdornment ?? MuiInputAdornment;\n const _useSlotProps = useSlotProps({\n elementType: InputAdornment,\n externalSlotProps: innerSlotProps?.inputAdornment,\n additionalProps: {\n position: 'end'\n },\n ownerState: props\n }),\n inputAdornmentProps = _objectWithoutPropertiesLoose(_useSlotProps, _excluded2);\n const OpenPickerButton = slots.openPickerButton ?? IconButton;\n const _useSlotProps2 = useSlotProps({\n elementType: OpenPickerButton,\n externalSlotProps: innerSlotProps?.openPickerButton,\n additionalProps: {\n disabled: disabled || readOnly,\n onClick: open ? actions.onClose : actions.onOpen,\n 'aria-label': getOpenDialogAriaText(pickerFieldProps.value),\n edge: inputAdornmentProps.position\n },\n ownerState: props\n }),\n openPickerButtonProps = _objectWithoutPropertiesLoose(_useSlotProps2, _excluded3);\n const OpenPickerIcon = slots.openPickerIcon;\n const openPickerIconProps = useSlotProps({\n elementType: OpenPickerIcon,\n externalSlotProps: innerSlotProps?.openPickerIcon,\n ownerState\n });\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, isToolbarHidden && {\n id: labelId\n }, {\n readOnly,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n name,\n autoFocus: autoFocus && !props.open,\n focused: open ? true : undefined\n }, inputRef ? {\n inputRef\n } : {}),\n ownerState: props\n });\n\n // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged\n if (hasUIView) {\n fieldProps.InputProps = _extends({}, fieldProps.InputProps, {\n ref: containerRef\n }, !props.disableOpenPicker && {\n [`${inputAdornmentProps.position}Adornment`]: /*#__PURE__*/_jsx(InputAdornment, _extends({}, inputAdornmentProps, {\n children: /*#__PURE__*/_jsx(OpenPickerButton, _extends({}, openPickerButtonProps, {\n children: /*#__PURE__*/_jsx(OpenPickerIcon, _extends({}, openPickerIconProps))\n }))\n }))\n });\n }\n const slotsForField = _extends({\n textField: slots.textField,\n clearIcon: slots.clearIcon,\n clearButton: slots.clearButton\n }, fieldProps.slots);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n popper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.popper)\n });\n const handleFieldRef = useForkRef(fieldRef, fieldProps.unstableFieldRef);\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {\n slots: slotsForField,\n slotProps: slotProps,\n unstableFieldRef: handleFieldRef\n })), /*#__PURE__*/_jsx(PickersPopper, _extends({\n role: \"dialog\",\n placement: \"bottom-start\",\n anchorEl: containerRef.current\n }, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n shouldRestoreFocus: shouldRestoreFocus,\n reduceAnimations: reduceAnimations,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};","import * as React from 'react';\nimport { DateCalendar } from \"../DateCalendar/index.js\";\nimport { isDatePickerView } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const renderDateViewCalendar = ({\n view,\n onViewChange,\n views,\n focusedView,\n onFocusedViewChange,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minDate,\n maxDate,\n shouldDisableDate,\n shouldDisableMonth,\n shouldDisableYear,\n reduceAnimations,\n onMonthChange,\n monthsPerRow,\n onYearChange,\n yearsOrder,\n yearsPerRow,\n slots,\n slotProps,\n loading,\n renderLoading,\n disableHighlightToday,\n readOnly,\n disabled,\n showDaysOutsideCurrentMonth,\n dayOfWeekFormatter,\n sx,\n autoFocus,\n fixedWeekNumber,\n displayWeekNumber,\n timezone\n}) => /*#__PURE__*/_jsx(DateCalendar, {\n view: view,\n onViewChange: onViewChange,\n views: views.filter(isDatePickerView),\n focusedView: focusedView && isDatePickerView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minDate: minDate,\n maxDate: maxDate,\n shouldDisableDate: shouldDisableDate,\n shouldDisableMonth: shouldDisableMonth,\n shouldDisableYear: shouldDisableYear,\n reduceAnimations: reduceAnimations,\n onMonthChange: onMonthChange,\n monthsPerRow: monthsPerRow,\n onYearChange: onYearChange,\n yearsOrder: yearsOrder,\n yearsPerRow: yearsPerRow,\n slots: slots,\n slotProps: slotProps,\n loading: loading,\n renderLoading: renderLoading,\n disableHighlightToday: disableHighlightToday,\n readOnly: readOnly,\n disabled: disabled,\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,\n dayOfWeekFormatter: dayOfWeekFormatter,\n sx: sx,\n autoFocus: autoFocus,\n fixedWeekNumber: fixedWeekNumber,\n displayWeekNumber: displayWeekNumber,\n timezone: timezone\n});","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useDatePickerDefaultizedProps } from \"../DatePicker/shared.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { validateDate, extractValidationProps } from \"../validation/index.js\";\nimport { useDesktopPicker } from \"../internals/hooks/useDesktopPicker/index.js\";\nimport { CalendarIcon } from \"../icons/index.js\";\nimport { DateField } from \"../DateField/index.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/index.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\nimport { buildGetOpenDialogAriaText } from \"../locales/utils/getPickersLocalization.js\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopDatePicker API](https://mui.com/x/api/date-pickers/desktop-date-picker/)\n */\nconst DesktopDatePicker = /*#__PURE__*/React.forwardRef(function DesktopDatePicker(inProps, ref) {\n const translations = usePickersTranslations();\n const utils = useUtils();\n\n // Props with the default values common to all date pickers\n const defaultizedProps = useDatePickerDefaultizedProps(inProps, 'MuiDesktopDatePicker');\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar\n }, defaultizedProps.viewRenderers);\n\n // Props with the default values specific to the desktop variant\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n format: resolveDateFormat(utils, defaultizedProps, false),\n yearsPerRow: defaultizedProps.yearsPerRow ?? 4,\n slots: _extends({\n openPickerIcon: CalendarIcon,\n field: DateField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: true\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useDesktopPicker({\n props,\n valueManager: singleItemValueManager,\n valueType: 'date',\n getOpenDialogAriaText: buildGetOpenDialogAriaText({\n utils,\n formatKey: 'fullDate',\n contextTranslation: translations.openDatePickerDialogue,\n propsTranslation: props.localeText?.openDatePickerDialogue\n }),\n validator: validateDate\n });\n return renderPicker();\n});\nDesktopDatePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @template TDate\n * @param {TDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => ...\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { DesktopDatePicker };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport DialogContent from '@mui/material/DialogContent';\nimport Fade from '@mui/material/Fade';\nimport MuiDialog, { dialogClasses } from '@mui/material/Dialog';\nimport { styled } from '@mui/material/styles';\nimport { DIALOG_WIDTH } from \"../constants/dimensions.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersModalDialogRoot = styled(MuiDialog)({\n [`& .${dialogClasses.container}`]: {\n outline: 0\n },\n [`& .${dialogClasses.paper}`]: {\n outline: 0,\n minWidth: DIALOG_WIDTH\n }\n});\nconst PickersModalDialogContent = styled(DialogContent)({\n '&:first-of-type': {\n padding: 0\n }\n});\nexport function PickersModalDialog(props) {\n const {\n children,\n onDismiss,\n open,\n slots,\n slotProps\n } = props;\n const Dialog = slots?.dialog ?? PickersModalDialogRoot;\n const Transition = slots?.mobileTransition ?? Fade;\n return /*#__PURE__*/_jsx(Dialog, _extends({\n open: open,\n onClose: onDismiss\n }, slotProps?.dialog, {\n TransitionComponent: Transition,\n TransitionProps: slotProps?.mobileTransition,\n PaperComponent: slots?.mobilePaper,\n PaperProps: slotProps?.mobilePaper,\n children: /*#__PURE__*/_jsx(PickersModalDialogContent, {\n children: children\n })\n }));\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\", \"getOpenDialogAriaText\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useId from '@mui/utils/useId';\nimport { PickersModalDialog } from \"../../components/PickersModalDialog.js\";\nimport { usePicker } from \"../usePicker/index.js\";\nimport { onSpaceOrEnter } from \"../../utils/utils.js\";\nimport { PickersLayout } from \"../../../PickersLayout/index.js\";\nimport { PickersProvider } from \"../../components/PickersProvider.js\";\n\n/**\n * Hook managing all the single-date mobile pickers:\n * - MobileDatePicker\n * - MobileDateTimePicker\n * - MobileTimePicker\n */\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const useMobilePicker = _ref => {\n let {\n props,\n getOpenDialogAriaText\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n const {\n slots,\n slotProps: innerSlotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n name,\n label,\n inputRef,\n readOnly,\n disabled,\n localeText\n } = props;\n const fieldRef = React.useRef(null);\n const labelId = useId();\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const {\n open,\n actions,\n layoutProps,\n renderCurrentView,\n fieldProps: pickerFieldProps,\n contextValue\n } = usePicker(_extends({}, pickerParams, {\n props,\n fieldRef,\n autoFocusView: true,\n additionalViewProps: {},\n wrapperVariant: 'mobile'\n }));\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, isToolbarHidden && {\n id: labelId\n }, !(disabled || readOnly) && {\n onClick: actions.onOpen,\n onKeyDown: onSpaceOrEnter(actions.onOpen)\n }, {\n readOnly: readOnly ?? true,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n name\n }, inputRef ? {\n inputRef\n } : {}),\n ownerState: props\n });\n\n // TODO: Move to `useSlotProps` when https://github.com/mui/material-ui/pull/35088 will be merged\n fieldProps.inputProps = _extends({}, fieldProps.inputProps, {\n 'aria-label': getOpenDialogAriaText(pickerFieldProps.value)\n });\n const slotsForField = _extends({\n textField: slots.textField\n }, fieldProps.slots);\n const Layout = slots.layout ?? PickersLayout;\n let labelledById = labelId;\n if (isToolbarHidden) {\n if (label) {\n labelledById = `${labelId}-label`;\n } else {\n labelledById = undefined;\n }\n }\n const slotProps = _extends({}, innerSlotProps, {\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId\n }),\n mobilePaper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.mobilePaper)\n });\n const handleFieldRef = useForkRef(fieldRef, fieldProps.unstableFieldRef);\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, fieldProps, {\n slots: slotsForField,\n slotProps: slotProps,\n unstableFieldRef: handleFieldRef\n })), /*#__PURE__*/_jsx(PickersModalDialog, _extends({}, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotProps,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { useMobilePicker } from \"../internals/hooks/useMobilePicker/index.js\";\nimport { useDatePickerDefaultizedProps } from \"../DatePicker/shared.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateDate } from \"../validation/index.js\";\nimport { DateField } from \"../DateField/index.js\";\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { renderDateViewCalendar } from \"../dateViewRenderers/index.js\";\nimport { resolveDateFormat } from \"../internals/utils/date-utils.js\";\nimport { buildGetOpenDialogAriaText } from \"../locales/utils/getPickersLocalization.js\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileDatePicker API](https://mui.com/x/api/date-pickers/mobile-date-picker/)\n */\nconst MobileDatePicker = /*#__PURE__*/React.forwardRef(function MobileDatePicker(inProps, ref) {\n const translations = usePickersTranslations();\n const utils = useUtils();\n\n // Props with the default values common to all date pickers\n const defaultizedProps = useDatePickerDefaultizedProps(inProps, 'MuiMobileDatePicker');\n const viewRenderers = _extends({\n day: renderDateViewCalendar,\n month: renderDateViewCalendar,\n year: renderDateViewCalendar\n }, defaultizedProps.viewRenderers);\n\n // Props with the default values specific to the mobile variant\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n format: resolveDateFormat(utils, defaultizedProps, false),\n slots: _extends({\n field: DateField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: false\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useMobilePicker({\n props,\n valueManager: singleItemValueManager,\n valueType: 'date',\n getOpenDialogAriaText: buildGetOpenDialogAriaText({\n utils,\n formatKey: 'fullDate',\n contextTranslation: translations.openDatePickerDialogue,\n propsTranslation: props.localeText?.openDatePickerDialogue\n }),\n validator: validateDate\n });\n return renderPicker();\n});\nMobileDatePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @template TDate\n * @param {TDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => ...\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 3\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n};\nexport { MobileDatePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopDatePicker } from \"../DesktopDatePicker/index.js\";\nimport { MobileDatePicker } from \"../MobileDatePicker/index.js\";\nimport { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DatePicker](https://mui.com/x/react-date-pickers/date-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DatePicker API](https://mui.com/x/api/date-pickers/date-picker/)\n */\nconst DatePicker = /*#__PURE__*/React.forwardRef(function DatePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDatePicker'\n });\n const {\n desktopModeMediaQuery = DEFAULT_DESKTOP_MODE_MEDIA_QUERY\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopDatePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileDatePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? DatePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Months rendered per row.\n * @default 3\n */\n monthsPerRow: PropTypes.oneOf([3, 4]),\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Callback fired on year change.\n * @template TDate\n * @param {TDate} year The new year.\n */\n onYearChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component displaying when passed `loading` true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => ...\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @returns {boolean} If `true` the date will be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * Disable specific month.\n * @template TDate\n * @param {TDate} month The month to test.\n * @returns {boolean} If `true`, the month will be disabled.\n */\n shouldDisableMonth: PropTypes.func,\n /**\n * Disable specific year.\n * @template TDate\n * @param {TDate} year The year to test.\n * @returns {boolean} If `true`, the year will be disabled.\n */\n shouldDisableYear: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day', 'month', 'year']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func,\n month: PropTypes.func,\n year: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired),\n /**\n * Years are displayed in ascending (chronological) order by default.\n * If `desc`, years are displayed in descending order.\n * @default 'asc'\n */\n yearsOrder: PropTypes.oneOf(['asc', 'desc']),\n /**\n * Years rendered per row.\n * @default 4 on desktop, 3 on mobile\n */\n yearsPerRow: PropTypes.oneOf([3, 4])\n} : void 0;\nexport { DatePicker };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getPickersToolbarTextUtilityClass(slot) {\n return generateUtilityClass('MuiPickersToolbarText', slot);\n}\nexport const pickersToolbarTextClasses = generateUtilityClasses('MuiPickersToolbarText', ['root', 'selected']);","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"className\", \"selected\", \"value\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { getPickersToolbarTextUtilityClass, pickersToolbarTextClasses } from \"./pickersToolbarTextClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n selected\n } = ownerState;\n const slots = {\n root: ['root', selected && 'selected']\n };\n return composeClasses(slots, getPickersToolbarTextUtilityClass, classes);\n};\nconst PickersToolbarTextRoot = styled(Typography, {\n name: 'MuiPickersToolbarText',\n slot: 'Root',\n overridesResolver: (_, styles) => [styles.root, {\n [`&.${pickersToolbarTextClasses.selected}`]: styles.selected\n }]\n})(({\n theme\n}) => ({\n transition: theme.transitions.create('color'),\n color: (theme.vars || theme).palette.text.secondary,\n [`&.${pickersToolbarTextClasses.selected}`]: {\n color: (theme.vars || theme).palette.text.primary\n }\n}));\nexport const PickersToolbarText = /*#__PURE__*/React.forwardRef(function PickersToolbarText(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbarText'\n });\n const {\n className,\n value\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(props);\n return /*#__PURE__*/_jsx(PickersToolbarTextRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n component: \"span\"\n }, other, {\n children: value\n }));\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"align\", \"className\", \"selected\", \"typographyClassName\", \"value\", \"variant\", \"width\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport Button from '@mui/material/Button';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbarText } from \"./PickersToolbarText.js\";\nimport { getPickersToolbarUtilityClass } from \"./pickersToolbarClasses.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root']\n };\n return composeClasses(slots, getPickersToolbarUtilityClass, classes);\n};\nconst PickersToolbarButtonRoot = styled(Button, {\n name: 'MuiPickersToolbarButton',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({\n padding: 0,\n minWidth: 16,\n textTransform: 'none'\n});\nexport const PickersToolbarButton = /*#__PURE__*/React.forwardRef(function PickersToolbarButton(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiPickersToolbarButton'\n });\n const {\n align,\n className,\n selected,\n typographyClassName,\n value,\n variant,\n width\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const classes = useUtilityClasses(props);\n return /*#__PURE__*/_jsx(PickersToolbarButtonRoot, _extends({\n variant: \"text\",\n ref: ref,\n className: clsx(classes.root, className)\n }, width ? {\n sx: {\n width\n }\n } : {}, other, {\n children: /*#__PURE__*/_jsx(PickersToolbarText, {\n align: align,\n className: typographyClassName,\n variant: variant,\n value: value,\n selected: selected\n })\n }));\n});","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getTimePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiTimePickerToolbar', slot);\n}\nexport const timePickerToolbarClasses = generateUtilityClasses('MuiTimePickerToolbar', ['root', 'separator', 'hourMinuteLabel', 'hourMinuteLabelLandscape', 'hourMinuteLabelReverse', 'ampmSelection', 'ampmLandscape', 'ampmLabel']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"ampm\", \"ampmInClock\", \"value\", \"isLandscape\", \"onChange\", \"view\", \"onViewChange\", \"views\", \"disabled\", \"readOnly\", \"className\"];\nimport * as React from 'react';\nimport clsx from 'clsx';\nimport PropTypes from 'prop-types';\nimport { useRtl } from '@mui/system/RtlProvider';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbarText } from \"../internals/components/PickersToolbarText.js\";\nimport { PickersToolbarButton } from \"../internals/components/PickersToolbarButton.js\";\nimport { PickersToolbar } from \"../internals/components/PickersToolbar.js\";\nimport { arrayIncludes } from \"../internals/utils/utils.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { useMeridiemMode } from \"../internals/hooks/date-helpers-hooks.js\";\nimport { getTimePickerToolbarUtilityClass, timePickerToolbarClasses } from \"./timePickerToolbarClasses.js\";\nimport { formatMeridiem } from \"../internals/utils/date-utils.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n isLandscape,\n classes,\n isRtl\n } = ownerState;\n const slots = {\n root: ['root'],\n separator: ['separator'],\n hourMinuteLabel: ['hourMinuteLabel', isLandscape && 'hourMinuteLabelLandscape', isRtl && 'hourMinuteLabelReverse'],\n ampmSelection: ['ampmSelection', isLandscape && 'ampmLandscape'],\n ampmLabel: ['ampmLabel']\n };\n return composeClasses(slots, getTimePickerToolbarUtilityClass, classes);\n};\nconst TimePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiTimePickerToolbar',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nconst TimePickerToolbarSeparator = styled(PickersToolbarText, {\n name: 'MuiTimePickerToolbar',\n slot: 'Separator',\n overridesResolver: (props, styles) => styles.separator\n})({\n outline: 0,\n margin: '0 4px 0 2px',\n cursor: 'default'\n});\nconst TimePickerToolbarHourMinuteLabel = styled('div', {\n name: 'MuiTimePickerToolbar',\n slot: 'HourMinuteLabel',\n overridesResolver: (props, styles) => [{\n [`&.${timePickerToolbarClasses.hourMinuteLabelLandscape}`]: styles.hourMinuteLabelLandscape,\n [`&.${timePickerToolbarClasses.hourMinuteLabelReverse}`]: styles.hourMinuteLabelReverse\n }, styles.hourMinuteLabel]\n})({\n display: 'flex',\n justifyContent: 'flex-end',\n alignItems: 'flex-end',\n variants: [{\n props: {\n isRtl: true\n },\n style: {\n flexDirection: 'row-reverse'\n }\n }, {\n props: {\n isLandscape: true\n },\n style: {\n marginTop: 'auto'\n }\n }]\n});\nconst TimePickerToolbarAmPmSelection = styled('div', {\n name: 'MuiTimePickerToolbar',\n slot: 'AmPmSelection',\n overridesResolver: (props, styles) => [{\n [`.${timePickerToolbarClasses.ampmLabel}`]: styles.ampmLabel\n }, {\n [`&.${timePickerToolbarClasses.ampmLandscape}`]: styles.ampmLandscape\n }, styles.ampmSelection]\n})({\n display: 'flex',\n flexDirection: 'column',\n marginRight: 'auto',\n marginLeft: 12,\n [`& .${timePickerToolbarClasses.ampmLabel}`]: {\n fontSize: 17\n },\n variants: [{\n props: {\n isLandscape: true\n },\n style: {\n margin: '4px 0 auto',\n flexDirection: 'row',\n justifyContent: 'space-around',\n flexBasis: '100%'\n }\n }]\n});\n\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [TimePickerToolbar API](https://mui.com/x/api/date-pickers/time-picker-toolbar/)\n */\nfunction TimePickerToolbar(inProps) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimePickerToolbar'\n });\n const {\n ampm,\n ampmInClock,\n value,\n isLandscape,\n onChange,\n view,\n onViewChange,\n views,\n disabled,\n readOnly,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const utils = useUtils();\n const translations = usePickersTranslations();\n const isRtl = useRtl();\n const showAmPmControl = Boolean(ampm && !ampmInClock && views.includes('hours'));\n const {\n meridiemMode,\n handleMeridiemChange\n } = useMeridiemMode(value, ampm, onChange);\n const formatHours = time => ampm ? utils.format(time, 'hours12h') : utils.format(time, 'hours24h');\n const ownerState = _extends({}, props, {\n isRtl\n });\n const classes = useUtilityClasses(ownerState);\n const separator = /*#__PURE__*/_jsx(TimePickerToolbarSeparator, {\n tabIndex: -1,\n value: \":\",\n variant: \"h3\",\n selected: false,\n className: classes.separator\n });\n return /*#__PURE__*/_jsxs(TimePickerToolbarRoot, _extends({\n landscapeDirection: \"row\",\n toolbarTitle: translations.timePickerToolbarTitle,\n isLandscape: isLandscape,\n ownerState: ownerState,\n className: clsx(classes.root, className)\n }, other, {\n children: [/*#__PURE__*/_jsxs(TimePickerToolbarHourMinuteLabel, {\n className: classes.hourMinuteLabel,\n ownerState: ownerState,\n children: [arrayIncludes(views, 'hours') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: \"h3\",\n onClick: () => onViewChange('hours'),\n selected: view === 'hours',\n value: value ? formatHours(value) : '--'\n }), arrayIncludes(views, ['hours', 'minutes']) && separator, arrayIncludes(views, 'minutes') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n tabIndex: -1,\n variant: \"h3\",\n onClick: () => onViewChange('minutes'),\n selected: view === 'minutes',\n value: value ? utils.format(value, 'minutes') : '--'\n }), arrayIncludes(views, ['minutes', 'seconds']) && separator, arrayIncludes(views, 'seconds') && /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: \"h3\",\n onClick: () => onViewChange('seconds'),\n selected: view === 'seconds',\n value: value ? utils.format(value, 'seconds') : '--'\n })]\n }), showAmPmControl && /*#__PURE__*/_jsxs(TimePickerToolbarAmPmSelection, {\n className: classes.ampmSelection,\n ownerState: ownerState,\n children: [/*#__PURE__*/_jsx(PickersToolbarButton, {\n disableRipple: true,\n variant: \"subtitle2\",\n selected: meridiemMode === 'am',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'am'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('am'),\n disabled: disabled\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n disableRipple: true,\n variant: \"subtitle2\",\n selected: meridiemMode === 'pm',\n typographyClassName: classes.ampmLabel,\n value: formatMeridiem(utils, 'pm'),\n onClick: readOnly ? undefined : () => handleMeridiemChange('pm'),\n disabled: disabled\n })]\n })]\n }));\n}\nprocess.env.NODE_ENV !== \"production\" ? TimePickerToolbar.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 ampm: PropTypes.bool,\n ampmInClock: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n isLandscape: PropTypes.bool.isRequired,\n onChange: PropTypes.func.isRequired,\n /**\n * Callback called when a toolbar is clicked\n * @template TView\n * @param {TView} view The view to open\n */\n onViewChange: PropTypes.func.isRequired,\n readOnly: PropTypes.bool,\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 titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node,\n value: PropTypes.object,\n /**\n * Currently visible picker view.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired,\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']).isRequired).isRequired\n} : void 0;\nexport { TimePickerToolbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { TimePickerToolbar } from \"./TimePickerToolbar.js\";\nimport { applyDefaultViewProps } from \"../internals/utils/views.js\";\nexport function useTimePickerDefaultizedProps(props, name) {\n const utils = useUtils();\n const themeProps = useThemeProps({\n props,\n name\n });\n const ampm = themeProps.ampm ?? utils.is12HourCycleInCurrentLocale();\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n timePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n return _extends({}, themeProps, {\n ampm,\n localeText\n }, applyDefaultViewProps({\n views: themeProps.views,\n openTo: themeProps.openTo,\n defaultViews: ['hours', 'minutes'],\n defaultOpenTo: 'hours'\n }), {\n disableFuture: themeProps.disableFuture ?? false,\n disablePast: themeProps.disablePast ?? false,\n slots: _extends({\n toolbar: TimePickerToolbar\n }, themeProps.slots),\n slotProps: _extends({}, themeProps.slotProps, {\n toolbar: _extends({\n ampm,\n ampmInClock: themeProps.ampmInClock\n }, themeProps.slotProps?.toolbar)\n })\n });\n}","import * as React from 'react';\nimport { TimeClock } from \"../TimeClock/index.js\";\nimport { DigitalClock } from \"../DigitalClock/index.js\";\nimport { MultiSectionDigitalClock } from \"../MultiSectionDigitalClock/index.js\";\nimport { isTimeView } from \"../internals/utils/time-utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nexport const renderTimeViewClock = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n ampmInClock,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n showViewSwitcher,\n disableIgnoringDatePartForTimeValidation,\n timezone\n}) => /*#__PURE__*/_jsx(TimeClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView && isTimeView(focusedView) ? focusedView : null,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n ampmInClock: ampmInClock,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n showViewSwitcher: showViewSwitcher,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timezone: timezone\n});\nexport const renderDigitalClockTimeView = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n disableIgnoringDatePartForTimeValidation,\n timeSteps,\n skipDisabled,\n timezone\n}) => /*#__PURE__*/_jsx(DigitalClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timeStep: timeSteps?.minutes,\n skipDisabled: skipDisabled,\n timezone: timezone\n});\nexport const renderMultiSectionDigitalClockTimeView = ({\n view,\n onViewChange,\n focusedView,\n onFocusedViewChange,\n views,\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minTime,\n maxTime,\n shouldDisableTime,\n minutesStep,\n ampm,\n slots,\n slotProps,\n readOnly,\n disabled,\n sx,\n autoFocus,\n disableIgnoringDatePartForTimeValidation,\n timeSteps,\n skipDisabled,\n timezone\n}) => /*#__PURE__*/_jsx(MultiSectionDigitalClock, {\n view: view,\n onViewChange: onViewChange,\n focusedView: focusedView,\n onFocusedViewChange: onFocusedViewChange,\n views: views.filter(isTimeView),\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minTime: minTime,\n maxTime: maxTime,\n shouldDisableTime: shouldDisableTime,\n minutesStep: minutesStep,\n ampm: ampm,\n slots: slots,\n slotProps: slotProps,\n readOnly: readOnly,\n disabled: disabled,\n sx: sx,\n autoFocus: autoFocus,\n disableIgnoringDatePartForTimeValidation: disableIgnoringDatePartForTimeValidation,\n timeSteps: timeSteps,\n skipDisabled: skipDisabled,\n timezone: timezone\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"views\", \"format\"];\nimport { resolveTimeFormat, isTimeView, isInternalTimeView } from \"./time-utils.js\";\nimport { isDatePickerView, resolveDateFormat } from \"./date-utils.js\";\nexport const resolveDateTimeFormat = (utils, _ref, ignoreDateResolving) => {\n let {\n views,\n format\n } = _ref,\n other = _objectWithoutPropertiesLoose(_ref, _excluded);\n if (format) {\n return format;\n }\n const dateViews = [];\n const timeViews = [];\n views.forEach(view => {\n if (isTimeView(view)) {\n timeViews.push(view);\n } else if (isDatePickerView(view)) {\n dateViews.push(view);\n }\n });\n if (timeViews.length === 0) {\n return resolveDateFormat(utils, _extends({\n views: dateViews\n }, other), false);\n }\n if (dateViews.length === 0) {\n return resolveTimeFormat(utils, _extends({\n views: timeViews\n }, other));\n }\n const timeFormat = resolveTimeFormat(utils, _extends({\n views: timeViews\n }, other));\n const dateFormat = ignoreDateResolving ? utils.formats.keyboardDate : resolveDateFormat(utils, _extends({\n views: dateViews\n }, other), false);\n return `${dateFormat} ${timeFormat}`;\n};\nconst resolveViews = (ampm, views, shouldUseSingleColumn) => {\n if (shouldUseSingleColumn) {\n return views.filter(view => !isInternalTimeView(view) || view === 'hours');\n }\n return ampm ? [...views, 'meridiem'] : views;\n};\nconst resolveShouldRenderTimeInASingleColumn = (timeSteps, threshold) => 24 * 60 / ((timeSteps.hours ?? 1) * (timeSteps.minutes ?? 5)) <= threshold;\nexport function resolveTimeViewsResponse({\n thresholdToRenderTimeInASingleColumn: inThreshold,\n ampm,\n timeSteps: inTimeSteps,\n views\n}) {\n const thresholdToRenderTimeInASingleColumn = inThreshold ?? 24;\n const timeSteps = _extends({\n hours: 1,\n minutes: 5,\n seconds: 5\n }, inTimeSteps);\n const shouldRenderTimeInASingleColumn = resolveShouldRenderTimeInASingleColumn(timeSteps, thresholdToRenderTimeInASingleColumn);\n return {\n thresholdToRenderTimeInASingleColumn,\n timeSteps,\n shouldRenderTimeInASingleColumn,\n views: resolveViews(ampm, views, shouldRenderTimeInASingleColumn)\n };\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { TimeField } from \"../TimeField/index.js\";\nimport { useTimePickerDefaultizedProps } from \"../TimePicker/shared.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateTime } from \"../validation/index.js\";\nimport { ClockIcon } from \"../icons/index.js\";\nimport { useDesktopPicker } from \"../internals/hooks/useDesktopPicker/index.js\";\nimport { renderDigitalClockTimeView, renderMultiSectionDigitalClockTimeView } from \"../timeViewRenderers/index.js\";\nimport { resolveTimeFormat } from \"../internals/utils/time-utils.js\";\nimport { resolveTimeViewsResponse } from \"../internals/utils/date-time-utils.js\";\nimport { buildGetOpenDialogAriaText } from \"../locales/utils/getPickersLocalization.js\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopTimePicker API](https://mui.com/x/api/date-pickers/desktop-time-picker/)\n */\nconst DesktopTimePicker = /*#__PURE__*/React.forwardRef(function DesktopTimePicker(inProps, ref) {\n const translations = usePickersTranslations();\n const utils = useUtils();\n\n // Props with the default values common to all time pickers\n const defaultizedProps = useTimePickerDefaultizedProps(inProps, 'MuiDesktopTimePicker');\n const {\n shouldRenderTimeInASingleColumn,\n views: resolvedViews,\n timeSteps\n } = resolveTimeViewsResponse(defaultizedProps);\n const renderTimeView = shouldRenderTimeInASingleColumn ? renderDigitalClockTimeView : renderMultiSectionDigitalClockTimeView;\n const viewRenderers = _extends({\n hours: renderTimeView,\n minutes: renderTimeView,\n seconds: renderTimeView,\n meridiem: renderTimeView\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? true;\n const actionBarActions = shouldRenderTimeInASingleColumn ? [] : ['accept'];\n // Need to avoid adding the `meridiem` view when unexpected renderer is specified\n const shouldHoursRendererContainMeridiemView = viewRenderers.hours?.name === renderMultiSectionDigitalClockTimeView.name;\n const views = !shouldHoursRendererContainMeridiemView ? resolvedViews.filter(view => view !== 'meridiem') : resolvedViews;\n\n // Props with the default values specific to the desktop variant\n const props = _extends({}, defaultizedProps, {\n ampmInClock,\n timeSteps,\n viewRenderers,\n format: resolveTimeFormat(utils, defaultizedProps),\n // Setting only `hours` time view in case of single column time picker\n // Allows for easy view lifecycle management\n views: shouldRenderTimeInASingleColumn ? ['hours'] : views,\n slots: _extends({\n field: TimeField,\n openPickerIcon: ClockIcon\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: true,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar),\n actionBar: _extends({\n actions: actionBarActions\n }, defaultizedProps.slotProps?.actionBar)\n })\n });\n const {\n renderPicker\n } = useDesktopPicker({\n props,\n valueManager: singleItemValueManager,\n valueType: 'time',\n getOpenDialogAriaText: buildGetOpenDialogAriaText({\n utils,\n formatKey: 'fullTime',\n contextTranslation: translations.openTimePickerDialogue,\n propsTranslation: props.localeText?.openTimePickerDialogue\n }),\n validator: validateTime\n });\n return renderPicker();\n});\nDesktopTimePicker.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n};\nexport { DesktopTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { singleItemValueManager } from \"../internals/utils/valueManagers.js\";\nimport { TimeField } from \"../TimeField/index.js\";\nimport { useTimePickerDefaultizedProps } from \"../TimePicker/shared.js\";\nimport { usePickersTranslations } from \"../hooks/usePickersTranslations.js\";\nimport { useUtils } from \"../internals/hooks/useUtils.js\";\nimport { extractValidationProps, validateTime } from \"../validation/index.js\";\nimport { useMobilePicker } from \"../internals/hooks/useMobilePicker/index.js\";\nimport { renderTimeViewClock } from \"../timeViewRenderers/index.js\";\nimport { resolveTimeFormat } from \"../internals/utils/time-utils.js\";\nimport { buildGetOpenDialogAriaText } from \"../locales/utils/getPickersLocalization.js\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileTimePicker API](https://mui.com/x/api/date-pickers/mobile-time-picker/)\n */\nconst MobileTimePicker = /*#__PURE__*/React.forwardRef(function MobileTimePicker(inProps, ref) {\n const translations = usePickersTranslations();\n const utils = useUtils();\n\n // Props with the default values common to all time pickers\n const defaultizedProps = useTimePickerDefaultizedProps(inProps, 'MuiMobileTimePicker');\n const viewRenderers = _extends({\n hours: renderTimeViewClock,\n minutes: renderTimeViewClock,\n seconds: renderTimeViewClock\n }, defaultizedProps.viewRenderers);\n const ampmInClock = defaultizedProps.ampmInClock ?? false;\n\n // Props with the default values specific to the mobile variant\n const props = _extends({}, defaultizedProps, {\n ampmInClock,\n viewRenderers,\n format: resolveTimeFormat(utils, defaultizedProps),\n slots: _extends({\n field: TimeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: false,\n ampmInClock\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useMobilePicker({\n props,\n valueManager: singleItemValueManager,\n valueType: 'time',\n getOpenDialogAriaText: buildGetOpenDialogAriaText({\n utils,\n formatKey: 'fullTime',\n contextTranslation: translations.openTimePickerDialogue,\n propsTranslation: props.localeText?.openTimePickerDialogue\n }),\n validator: validateTime\n });\n return renderPicker();\n});\nMobileTimePicker.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n};\nexport { MobileTimePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopTimePicker } from \"../DesktopTimePicker/index.js\";\nimport { MobileTimePicker } from \"../MobileTimePicker/index.js\";\nimport { DEFAULT_DESKTOP_MODE_MEDIA_QUERY } from \"../internals/utils/utils.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [TimePicker](https://mui.com/x/react-date-pickers/time-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [TimePicker API](https://mui.com/x/api/date-pickers/time-picker/)\n */\nconst TimePicker = /*#__PURE__*/React.forwardRef(function TimePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiTimePicker'\n });\n const {\n desktopModeMediaQuery = DEFAULT_DESKTOP_MODE_MEDIA_QUERY\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopTimePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileTimePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? TimePicker.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 * 12h/24h view for hour selection clock.\n * @default utils.is12HourCycleInCurrentLocale()\n */\n ampm: PropTypes.bool,\n /**\n * Display ampm controls under the clock (instead of in the toolbar).\n * @default true on desktop, false on mobile\n */\n ampmInClock: PropTypes.bool,\n /**\n * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.object,\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * Do not ignore date part when validating min/max time.\n * @default false\n */\n disableIgnoringDatePartForTimeValidation: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n */\n inputRef: refType,\n /**\n * The label content.\n */\n label: PropTypes.node,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n maxTime: PropTypes.object,\n /**\n * Minimal selectable time.\n * The date part of the object will be ignored unless `props.disableIgnoringDatePartForTimeValidation === true`.\n */\n minTime: PropTypes.object,\n /**\n * Step over minutes.\n * @default 1\n */\n minutesStep: PropTypes.number,\n /**\n * Name attribute used by the `input` element in the Field.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Force rendering in particular orientation.\n */\n orientation: PropTypes.oneOf(['landscape', 'portrait']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific time.\n * @template TDate\n * @param {TDate} value The value to check.\n * @param {TimeView} view The clock type of the timeValue.\n * @returns {boolean} If `true` the time will be disabled.\n */\n shouldDisableTime: PropTypes.func,\n /**\n * If `true`, disabled digital clock items will not be rendered.\n * @default false\n */\n skipDisabled: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Amount of time options below or at which the single column time renderer is used.\n * @default 24\n */\n thresholdToRenderTimeInASingleColumn: PropTypes.number,\n /**\n * The time steps between two time unit options.\n * For example, if `timeStep.minutes = 8`, then the available minute options will be `[0, 8, 16, 24, 32, 40, 48, 56]`.\n * When single column time renderer is used, only `timeStep.minutes` will be used.\n * @default{ hours: 1, minutes: 5, seconds: 5 }\n */\n timeSteps: PropTypes.shape({\n hours: PropTypes.number,\n minutes: PropTypes.number,\n seconds: PropTypes.number\n }),\n /**\n * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.object,\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['hours', 'meridiem', 'minutes', 'seconds']),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n hours: PropTypes.func,\n meridiem: PropTypes.func,\n minutes: PropTypes.func,\n seconds: PropTypes.func\n }),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['hours', 'minutes', 'seconds']).isRequired)\n} : void 0;\nexport { TimePicker };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDateRangePickerDayUtilityClass(slot) {\n return generateUtilityClass('MuiDateRangePickerDay', slot);\n}\nexport const dateRangePickerDayClasses = generateUtilityClasses('MuiDateRangePickerDay', ['root', 'rangeIntervalDayHighlight', 'rangeIntervalDayHighlightStart', 'rangeIntervalDayHighlightEnd', 'rangeIntervalPreview', 'rangeIntervalDayPreview', 'rangeIntervalDayPreviewStart', 'rangeIntervalDayPreviewEnd', 'outsideCurrentMonth', 'startOfMonth', 'endOfMonth', 'firstVisibleCell', 'lastVisibleCell', 'hiddenDayFiller', 'day', 'dayOutsideRangeInterval', 'dayInsideRangeInterval', 'notSelectedDate']);","import { ponyfillGlobal } from '@mui/utils';\nexport const getReleaseInfo = () => {\n const releaseInfo = \"MTczMjE0MzYwMDAwMA==\";\n if (process.env.NODE_ENV !== 'production') {\n // A simple hack to set the value in the test environment (has no build step).\n // eslint-disable-next-line no-useless-concat\n if (releaseInfo === '__RELEASE' + '_INFO__') {\n // eslint-disable-next-line no-underscore-dangle\n return ponyfillGlobal.__MUI_RELEASE_INFO__;\n }\n }\n return releaseInfo;\n};","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"className\", \"day\", \"outsideCurrentMonth\", \"isEndOfHighlighting\", \"isEndOfPreviewing\", \"isHighlighting\", \"isPreviewing\", \"isStartOfHighlighting\", \"isStartOfPreviewing\", \"selected\", \"isVisuallySelected\", \"sx\", \"draggable\", \"isFirstVisibleCell\", \"isLastVisibleCell\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport { useLicenseVerifier } from '@mui/x-license';\nimport { alpha, styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { useUtils } from '@mui/x-date-pickers/internals';\nimport { PickersDay } from '@mui/x-date-pickers/PickersDay';\nimport { getDateRangePickerDayUtilityClass, dateRangePickerDayClasses } from \"./dateRangePickerDayClasses.js\";\nimport { getReleaseInfo } from \"../internals/utils/releaseInfo.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst releaseInfo = getReleaseInfo();\nconst useUtilityClasses = ownerState => {\n const {\n isHighlighting,\n outsideCurrentMonth,\n isStartOfHighlighting,\n isStartOfMonth,\n isEndOfHighlighting,\n isEndOfMonth,\n isPreviewing,\n isStartOfPreviewing,\n isEndOfPreviewing,\n isFirstVisibleCell,\n isLastVisibleCell,\n isHiddenDayFiller,\n selected,\n classes\n } = ownerState;\n const slots = {\n root: ['root', isHighlighting && 'rangeIntervalDayHighlight', isStartOfHighlighting && 'rangeIntervalDayHighlightStart', isEndOfHighlighting && 'rangeIntervalDayHighlightEnd', outsideCurrentMonth && 'outsideCurrentMonth', isStartOfMonth && 'startOfMonth', isEndOfMonth && 'endOfMonth', isFirstVisibleCell && 'firstVisibleCell', isLastVisibleCell && 'lastVisibleCell', isHiddenDayFiller && 'hiddenDayFiller'],\n rangeIntervalPreview: ['rangeIntervalPreview', isPreviewing && 'rangeIntervalDayPreview', (isStartOfPreviewing || isStartOfMonth) && 'rangeIntervalDayPreviewStart', (isEndOfPreviewing || isEndOfMonth) && 'rangeIntervalDayPreviewEnd'],\n day: ['day', !selected && 'notSelectedDate', !isHighlighting && 'dayOutsideRangeInterval', !selected && isHighlighting && 'dayInsideRangeInterval']\n };\n return composeClasses(slots, getDateRangePickerDayUtilityClass, classes);\n};\nconst endBorderStyle = {\n borderTopRightRadius: '50%',\n borderBottomRightRadius: '50%'\n};\nconst startBorderStyle = {\n borderTopLeftRadius: '50%',\n borderBottomLeftRadius: '50%'\n};\nconst DateRangePickerDayRoot = styled('div', {\n name: 'MuiDateRangePickerDay',\n slot: 'Root',\n overridesResolver: (_, styles) => [{\n [`&.${dateRangePickerDayClasses.rangeIntervalDayHighlight}`]: styles.rangeIntervalDayHighlight\n }, {\n [`&.${dateRangePickerDayClasses.rangeIntervalDayHighlightStart}`]: styles.rangeIntervalDayHighlightStart\n }, {\n [`&.${dateRangePickerDayClasses.rangeIntervalDayHighlightEnd}`]: styles.rangeIntervalDayHighlightEnd\n }, {\n [`&.${dateRangePickerDayClasses.firstVisibleCell}`]: styles.firstVisibleCell\n }, {\n [`&.${dateRangePickerDayClasses.lastVisibleCell}`]: styles.lastVisibleCell\n }, {\n [`&.${dateRangePickerDayClasses.startOfMonth}`]: styles.startOfMonth\n }, {\n [`&.${dateRangePickerDayClasses.endOfMonth}`]: styles.endOfMonth\n }, {\n [`&.${dateRangePickerDayClasses.outsideCurrentMonth}`]: styles.outsideCurrentMonth\n }, {\n [`&.${dateRangePickerDayClasses.hiddenDayFiller}`]: styles.hiddenDayFiller\n }, styles.root]\n})(({\n theme\n}) => ({\n variants: [{\n props: {\n isHiddenDayFiller: false\n },\n style: {\n [`&:first-of-type .${dateRangePickerDayClasses.rangeIntervalDayPreview}`]: _extends({}, startBorderStyle, {\n borderLeftColor: (theme.vars || theme).palette.divider\n }),\n [`&:last-of-type .${dateRangePickerDayClasses.rangeIntervalDayPreview}`]: _extends({}, endBorderStyle, {\n borderRightColor: (theme.vars || theme).palette.divider\n })\n }\n }, {\n props: {\n isHiddenDayFiller: false,\n isHighlighting: true\n },\n style: {\n borderRadius: 0,\n color: (theme.vars || theme).palette.primary.contrastText,\n backgroundColor: theme.vars ? `rgba(${theme.vars.palette.primary.mainChannel} / ${theme.vars.palette.action.focusOpacity})` : alpha(theme.palette.primary.main, theme.palette.action.focusOpacity),\n '&:first-of-type': startBorderStyle,\n '&:last-of-type': endBorderStyle\n }\n }, {\n props: ({\n ownerState: {\n isHiddenDayFiller,\n isStartOfHighlighting,\n isFirstVisibleCell\n }\n }) => !isHiddenDayFiller && (isStartOfHighlighting || isFirstVisibleCell),\n style: _extends({}, startBorderStyle, {\n paddingLeft: 0\n })\n }, {\n props: ({\n ownerState: {\n isHiddenDayFiller,\n isEndOfHighlighting,\n isLastVisibleCell\n }\n }) => !isHiddenDayFiller && (isEndOfHighlighting || isLastVisibleCell),\n style: _extends({}, endBorderStyle, {\n paddingRight: 0\n })\n }]\n}));\nconst DateRangePickerDayRangeIntervalPreview = styled('div', {\n name: 'MuiDateRangePickerDay',\n slot: 'RangeIntervalPreview',\n overridesResolver: (_, styles) => [{\n [`&.${dateRangePickerDayClasses.rangeIntervalDayPreview}`]: styles.rangeIntervalDayPreview\n }, {\n [`&.${dateRangePickerDayClasses.rangeIntervalDayPreviewStart}`]: styles.rangeIntervalDayPreviewStart\n }, {\n [`&.${dateRangePickerDayClasses.rangeIntervalDayPreviewEnd}`]: styles.rangeIntervalDayPreviewEnd\n }, styles.rangeIntervalPreview]\n})(({\n theme\n}) => ({\n // replace default day component margin with transparent border to avoid jumping on preview\n border: '2px solid transparent',\n variants: [{\n props: {\n isPreviewing: true,\n isHiddenDayFiller: false\n },\n style: {\n borderRadius: 0,\n border: `2px dashed ${(theme.vars || theme).palette.divider}`,\n borderLeftColor: 'transparent',\n borderRightColor: 'transparent'\n }\n }, {\n props: ({\n ownerState: {\n isPreviewing,\n isHiddenDayFiller,\n isStartOfPreviewing,\n isFirstVisibleCell\n }\n }) => isPreviewing && !isHiddenDayFiller && (isStartOfPreviewing || isFirstVisibleCell),\n style: _extends({\n borderLeftColor: (theme.vars || theme).palette.divider\n }, startBorderStyle)\n }, {\n props: ({\n ownerState: {\n isPreviewing,\n isHiddenDayFiller,\n isEndOfPreviewing,\n isLastVisibleCell\n }\n }) => isPreviewing && !isHiddenDayFiller && (isEndOfPreviewing || isLastVisibleCell),\n style: _extends({\n borderRightColor: (theme.vars || theme).palette.divider\n }, endBorderStyle)\n }]\n}));\nconst DateRangePickerDayDay = styled(PickersDay, {\n name: 'MuiDateRangePickerDay',\n slot: 'Day',\n overridesResolver: (_, styles) => [{\n [`&.${dateRangePickerDayClasses.dayInsideRangeInterval}`]: styles.dayInsideRangeInterval\n }, {\n [`&.${dateRangePickerDayClasses.dayOutsideRangeInterval}`]: styles.dayOutsideRangeInterval\n }, {\n [`&.${dateRangePickerDayClasses.notSelectedDate}`]: styles.notSelectedDate\n }, styles.day]\n})({\n // Required to overlap preview border\n transform: 'scale(1.1)',\n '& > *': {\n transform: 'scale(0.9)'\n },\n variants: [{\n props: {\n draggable: true\n },\n style: {\n cursor: 'grab',\n touchAction: 'none'\n }\n }]\n});\nconst DateRangePickerDayRaw = /*#__PURE__*/React.forwardRef(function DateRangePickerDay(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateRangePickerDay'\n });\n const {\n className,\n day,\n outsideCurrentMonth,\n isHighlighting,\n isPreviewing,\n selected = false,\n isVisuallySelected,\n sx,\n draggable,\n isFirstVisibleCell,\n isLastVisibleCell\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n useLicenseVerifier('x-date-pickers-pro', releaseInfo);\n const utils = useUtils();\n const isEndOfMonth = utils.isSameDay(day, utils.endOfMonth(day));\n const isStartOfMonth = utils.isSameDay(day, utils.startOfMonth(day));\n const shouldRenderHighlight = isHighlighting && !outsideCurrentMonth;\n const shouldRenderPreview = isPreviewing && !outsideCurrentMonth;\n const ownerState = _extends({}, props, {\n selected,\n isStartOfMonth,\n isEndOfMonth,\n draggable,\n isFirstVisibleCell,\n isLastVisibleCell,\n isHiddenDayFiller: outsideCurrentMonth && !other.showDaysOutsideCurrentMonth\n });\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DateRangePickerDayRoot, {\n className: clsx(classes.root, className),\n ownerState: ownerState,\n sx: sx,\n children: /*#__PURE__*/_jsx(DateRangePickerDayRangeIntervalPreview, {\n className: classes.rangeIntervalPreview,\n ownerState: ownerState,\n children: /*#__PURE__*/_jsx(DateRangePickerDayDay, _extends({}, other, {\n ref: ref,\n disableMargin: true,\n day: day,\n selected: isVisuallySelected,\n outsideCurrentMonth: outsideCurrentMonth,\n className: classes.day,\n ownerState: ownerState,\n draggable: draggable,\n isFirstVisibleCell: isFirstVisibleCell,\n isLastVisibleCell: isLastVisibleCell\n }))\n })\n });\n});\nprocess.env.NODE_ENV !== \"production\" ? DateRangePickerDayRaw.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 * A ref for imperative actions.\n * It currently only supports `focusVisible()` action.\n */\n action: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n focusVisible: PropTypes.func.isRequired\n })\n })]),\n /**\n * If `true`, the ripples are centered.\n * They won't start at the cursor interaction position.\n * @default false\n */\n centerRipple: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * The date to show.\n */\n day: PropTypes.object.isRequired,\n /**\n * If `true`, renders as disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, days are rendering without margin. Useful for displaying linked range of days.\n * @default false\n */\n disableMargin: PropTypes.bool,\n /**\n * If `true`, the ripple effect is disabled.\n *\n * ⚠️ Without a ripple there is no styling for :focus-visible by default. Be sure\n * to highlight the element by applying separate styles with the `.Mui-focusVisible` class.\n * @default false\n */\n disableRipple: PropTypes.bool,\n /**\n * If `true`, the touch ripple effect is disabled.\n * @default false\n */\n disableTouchRipple: PropTypes.bool,\n /**\n * If `true`, the day can be dragged to change the current date range.\n * @default false\n */\n draggable: PropTypes.bool,\n /**\n * If `true`, the base button will have a keyboard focus ripple.\n * @default false\n */\n focusRipple: PropTypes.bool,\n /**\n * This prop can help identify which element has keyboard focus.\n * The class name will be applied when the element gains the focus through keyboard interaction.\n * It's a polyfill for the [CSS :focus-visible selector](https://drafts.csswg.org/selectors-4/#the-focus-visible-pseudo).\n * The rationale for using this feature [is explained here](https://github.com/WICG/focus-visible/blob/HEAD/explainer.md).\n * A [polyfill can be used](https://github.com/WICG/focus-visible) to apply a `focus-visible` class to other components\n * if needed.\n */\n focusVisibleClassName: PropTypes.string,\n isAnimating: PropTypes.bool,\n /**\n * Set to `true` if the `day` is the end of a highlighted date range.\n */\n isEndOfHighlighting: PropTypes.bool.isRequired,\n /**\n * Set to `true` if the `day` is the end of a previewing date range.\n */\n isEndOfPreviewing: PropTypes.bool.isRequired,\n /**\n * If `true`, day is the first visible cell of the month.\n * Either the first day of the month or the first day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isFirstVisibleCell: PropTypes.bool.isRequired,\n /**\n * Set to `true` if the `day` is in a highlighted date range.\n */\n isHighlighting: PropTypes.bool.isRequired,\n /**\n * If `true`, day is the last visible cell of the month.\n * Either the last day of the month or the last day of the week depending on `showDaysOutsideCurrentMonth`.\n */\n isLastVisibleCell: PropTypes.bool.isRequired,\n /**\n * Set to `true` if the `day` is in a preview date range.\n */\n isPreviewing: PropTypes.bool.isRequired,\n /**\n * Set to `true` if the `day` is the start of a highlighted date range.\n */\n isStartOfHighlighting: PropTypes.bool.isRequired,\n /**\n * Set to `true` if the `day` is the start of a previewing date range.\n */\n isStartOfPreviewing: PropTypes.bool.isRequired,\n /**\n * Indicates if the day should be visually selected.\n */\n isVisuallySelected: PropTypes.bool,\n onDaySelect: PropTypes.func.isRequired,\n /**\n * Callback fired when the component is focused with a keyboard.\n * We trigger a `onFocus` callback too.\n */\n onFocusVisible: PropTypes.func,\n onMouseEnter: PropTypes.func,\n /**\n * If `true`, day is outside of month and will be hidden.\n */\n outsideCurrentMonth: PropTypes.bool.isRequired,\n /**\n * If `true`, renders as selected.\n * @default false\n */\n selected: PropTypes.bool,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\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 * @default 0\n */\n tabIndex: PropTypes.number,\n /**\n * If `true`, renders as today date.\n * @default false\n */\n today: PropTypes.bool,\n /**\n * Props applied to the `TouchRipple` element.\n */\n TouchRippleProps: PropTypes.object,\n /**\n * A ref that points to the `TouchRipple` element.\n */\n touchRippleRef: PropTypes.oneOfType([PropTypes.func, PropTypes.shape({\n current: PropTypes.shape({\n pulsate: PropTypes.func.isRequired,\n start: PropTypes.func.isRequired,\n stop: PropTypes.func.isRequired\n })\n })])\n} : void 0;\n\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n *\n * API:\n *\n * - [DateRangePickerDay API](https://mui.com/x/api/date-pickers/date-range-picker-day/)\n */\nexport const DateRangePickerDay = /*#__PURE__*/React.memo(DateRangePickerDayRaw);","export const isRangeValid = (utils, range) => {\n return Boolean(range && range[0] && range[1] && !utils.isBefore(range[1], range[0]));\n};\nexport const isWithinRange = (utils, day, range) => {\n return isRangeValid(utils, range) && utils.isWithinRange(day, range);\n};\nexport const isStartOfRange = (utils, day, range) => {\n return isRangeValid(utils, range) && utils.isSameDay(day, range[0]);\n};\nexport const isEndOfRange = (utils, day, range) => {\n return isRangeValid(utils, range) && utils.isSameDay(day, range[1]);\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\", \"referenceDate\"];\nimport { replaceInvalidDateByNull, createDateStrForV7HiddenInputFromSections, createDateStrForV6InputFromSections, areDatesEqual, getTodayDate, getDefaultReferenceDate } from '@mui/x-date-pickers/internals';\nimport { splitDateRangeSections, removeLastSeparator } from \"./date-fields-utils.js\";\nexport const rangeValueManager = {\n emptyValue: [null, null],\n getTodayValue: (utils, timezone, valueType) => [getTodayDate(utils, timezone, valueType), getTodayDate(utils, timezone, valueType)],\n getInitialReferenceValue: _ref => {\n let {\n value,\n referenceDate: referenceDateProp\n } = _ref,\n params = _objectWithoutPropertiesLoose(_ref, _excluded);\n const shouldKeepStartDate = value[0] != null && params.utils.isValid(value[0]);\n const shouldKeepEndDate = value[1] != null && params.utils.isValid(value[1]);\n if (shouldKeepStartDate && shouldKeepEndDate) {\n return value;\n }\n const referenceDate = referenceDateProp ?? getDefaultReferenceDate(params);\n return [shouldKeepStartDate ? value[0] : referenceDate, shouldKeepEndDate ? value[1] : referenceDate];\n },\n cleanValue: (utils, value) => value.map(date => replaceInvalidDateByNull(utils, date)),\n areValuesEqual: (utils, a, b) => areDatesEqual(utils, a[0], b[0]) && areDatesEqual(utils, a[1], b[1]),\n isSameError: (a, b) => b !== null && a[1] === b[1] && a[0] === b[0],\n hasError: error => error[0] != null || error[1] != null,\n defaultErrorState: [null, null],\n getTimezone: (utils, value) => {\n const timezoneStart = value[0] == null || !utils.isValid(value[0]) ? null : utils.getTimezone(value[0]);\n const timezoneEnd = value[1] == null || !utils.isValid(value[1]) ? null : utils.getTimezone(value[1]);\n if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {\n throw new Error('MUI X: The timezone of the start and the end date should be the same.');\n }\n return timezoneStart ?? timezoneEnd;\n },\n setTimezone: (utils, timezone, value) => [value[0] == null ? null : utils.setTimezone(value[0], timezone), value[1] == null ? null : utils.setTimezone(value[1], timezone)]\n};\nexport const getRangeFieldValueManager = ({\n dateSeparator = '–'\n}) => ({\n updateReferenceValue: (utils, value, prevReferenceValue) => {\n const shouldKeepStartDate = value[0] != null && utils.isValid(value[0]);\n const shouldKeepEndDate = value[1] != null && utils.isValid(value[1]);\n if (!shouldKeepStartDate && !shouldKeepEndDate) {\n return prevReferenceValue;\n }\n if (shouldKeepStartDate && shouldKeepEndDate) {\n return value;\n }\n if (shouldKeepStartDate) {\n return [value[0], prevReferenceValue[0]];\n }\n return [prevReferenceValue[1], value[1]];\n },\n getSectionsFromValue: (utils, [start, end], fallbackSections, getSectionsFromDate) => {\n const separatedFallbackSections = fallbackSections == null ? {\n startDate: null,\n endDate: null\n } : splitDateRangeSections(fallbackSections);\n const getSections = (newDate, fallbackDateSections, position) => {\n const shouldReUsePrevDateSections = !utils.isValid(newDate) && !!fallbackDateSections;\n if (shouldReUsePrevDateSections) {\n return fallbackDateSections;\n }\n const sections = getSectionsFromDate(newDate);\n return sections.map((section, sectionIndex) => {\n if (sectionIndex === sections.length - 1 && position === 'start') {\n return _extends({}, section, {\n dateName: position,\n // TODO: Check if RTL still works\n endSeparator: `${section.endSeparator} ${dateSeparator} `\n });\n }\n return _extends({}, section, {\n dateName: position\n });\n });\n };\n return [...getSections(start, separatedFallbackSections.startDate, 'start'), ...getSections(end, separatedFallbackSections.endDate, 'end')];\n },\n getV7HiddenInputValueFromSections: sections => {\n const dateRangeSections = splitDateRangeSections(sections);\n return createDateStrForV7HiddenInputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate]);\n },\n getV6InputValueFromSections: (sections, localizedDigits, isRtl) => {\n const dateRangeSections = splitDateRangeSections(sections);\n return createDateStrForV6InputFromSections([...dateRangeSections.startDate, ...dateRangeSections.endDate], localizedDigits, isRtl);\n },\n parseValueStr: (valueStr, referenceValue, parseDate) => {\n // TODO: Improve because it would not work if some section have the same separator as the dateSeparator.\n const [startStr, endStr] = valueStr.split(dateSeparator);\n return [startStr, endStr].map((dateStr, index) => {\n if (dateStr == null) {\n return null;\n }\n return parseDate(dateStr.trim(), referenceValue[index]);\n });\n },\n getActiveDateManager: (utils, state, activeSection) => {\n const index = activeSection.dateName === 'start' ? 0 : 1;\n const updateDateInRange = (newDate, prevDateRange) => index === 0 ? [newDate, prevDateRange[1]] : [prevDateRange[0], newDate];\n return {\n date: state.value[index],\n referenceDate: state.referenceValue[index],\n getSections: sections => {\n const dateRangeSections = splitDateRangeSections(sections);\n if (index === 0) {\n return removeLastSeparator(dateRangeSections.startDate);\n }\n return dateRangeSections.endDate;\n },\n getNewValuesFromNewActiveDate: newActiveDate => ({\n value: updateDateInRange(newActiveDate, state.value),\n referenceValue: newActiveDate == null || !utils.isValid(newActiveDate) ? state.referenceValue : updateDateInRange(newActiveDate, state.referenceValue)\n })\n };\n }\n});","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"shouldDisableDate\"];\nimport { validateDate } from '@mui/x-date-pickers/validation';\nimport { isRangeValid } from \"../internals/utils/date-utils.js\";\nimport { rangeValueManager } from \"../internals/utils/valueManagers.js\";\nexport const validateDateRange = ({\n adapter,\n value,\n timezone,\n props\n}) => {\n const [start, end] = value;\n const {\n shouldDisableDate\n } = props,\n otherProps = _objectWithoutPropertiesLoose(props, _excluded);\n const dateValidations = [validateDate({\n adapter,\n value: start,\n timezone,\n props: _extends({}, otherProps, {\n shouldDisableDate: day => !!shouldDisableDate?.(day, 'start')\n })\n }), validateDate({\n adapter,\n value: end,\n timezone,\n props: _extends({}, otherProps, {\n shouldDisableDate: day => !!shouldDisableDate?.(day, 'end')\n })\n })];\n if (dateValidations[0] || dateValidations[1]) {\n return dateValidations;\n }\n\n // for partial input\n if (start === null || end === null) {\n return [null, null];\n }\n if (!isRangeValid(adapter.utils, value)) {\n return ['invalidRange', 'invalidRange'];\n }\n return [null, null];\n};\nvalidateDateRange.valueManager = rangeValueManager;","/* TODO: remove this when a clearable behavior for multiple input range fields is implemented */\nexport const excludeProps = (props, excludedProps) => {\n return Object.keys(props).reduce((acc, key) => {\n if (!excludedProps.includes(key)) {\n acc[key] = props[key];\n }\n return acc;\n }, {});\n};","import * as React from 'react';\nimport useForkRef from '@mui/utils/useForkRef';\nimport useEventCallback from '@mui/utils/useEventCallback';\nexport const useMultiInputFieldSelectedSections = params => {\n const unstableEndFieldRef = React.useRef(null);\n const handleUnstableEndFieldRef = useForkRef(params.unstableEndFieldRef, unstableEndFieldRef);\n const [startSelectedSection, setStartSelectedSection] = React.useState(params.selectedSections ?? null);\n const [endSelectedSection, setEndSelectedSection] = React.useState(null);\n const getActiveField = () => {\n if (unstableEndFieldRef.current && unstableEndFieldRef.current.isFieldFocused()) {\n return 'end';\n }\n return 'start';\n };\n const handleStartSelectedSectionChange = useEventCallback(newSelectedSections => {\n setStartSelectedSection(newSelectedSections);\n if (getActiveField() === 'start') {\n params.onSelectedSectionsChange?.(newSelectedSections);\n }\n });\n const handleEndSelectedSectionChange = useEventCallback(newSelectedSections => {\n setEndSelectedSection(newSelectedSections);\n if (getActiveField() === 'end') {\n params.onSelectedSectionsChange?.(newSelectedSections);\n }\n });\n const activeField = getActiveField();\n return {\n start: {\n unstableFieldRef: params.unstableStartFieldRef,\n selectedSections: activeField === 'start' && params.selectedSections !== undefined ? params.selectedSections : startSelectedSection,\n onSelectedSectionsChange: handleStartSelectedSectionChange\n },\n end: {\n unstableFieldRef: handleUnstableEndFieldRef,\n selectedSections: activeField === 'end' && params.selectedSections !== undefined ? params.selectedSections : endSelectedSection,\n onSelectedSectionsChange: handleEndSelectedSectionChange\n }\n };\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { unstable_useDateField as useDateField } from '@mui/x-date-pickers/DateField';\nimport { useControlledValueWithTimezone, useDefaultizedDateField } from '@mui/x-date-pickers/internals';\nimport { useValidation } from '@mui/x-date-pickers/validation';\nimport { validateDateRange } from \"../../../validation/index.js\";\nimport { rangeValueManager } from \"../../utils/valueManagers.js\";\nimport { excludeProps } from \"./shared.js\";\nimport { useMultiInputFieldSelectedSections } from \"../useMultiInputFieldSelectedSections.js\";\nexport const useMultiInputDateRangeField = ({\n sharedProps: inSharedProps,\n startTextFieldProps,\n unstableStartFieldRef,\n endTextFieldProps,\n unstableEndFieldRef\n}) => {\n const sharedProps = useDefaultizedDateField(inSharedProps);\n const {\n value: valueProp,\n defaultValue,\n format,\n formatDensity,\n shouldRespectLeadingZeros,\n onChange,\n disabled,\n readOnly,\n selectedSections,\n onSelectedSectionsChange,\n timezone: timezoneProp,\n enableAccessibleFieldDOMStructure,\n autoFocus\n } = sharedProps;\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'useMultiInputDateRangeField',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: rangeValueManager\n });\n const {\n validationError,\n getValidationErrorForNewValue\n } = useValidation({\n props: sharedProps,\n value,\n timezone,\n validator: validateDateRange,\n onError: sharedProps.onError\n });\n\n // TODO: Maybe export utility from `useField` instead of copy/pasting the logic\n const buildChangeHandler = index => {\n return (newDate, rawContext) => {\n const newDateRange = index === 0 ? [newDate, value[1]] : [value[0], newDate];\n const context = _extends({}, rawContext, {\n validationError: getValidationErrorForNewValue(newDateRange)\n });\n handleValueChange(newDateRange, context);\n };\n };\n const handleStartDateChange = useEventCallback(buildChangeHandler(0));\n const handleEndDateChange = useEventCallback(buildChangeHandler(1));\n const selectedSectionsResponse = useMultiInputFieldSelectedSections({\n selectedSections,\n onSelectedSectionsChange,\n unstableStartFieldRef,\n unstableEndFieldRef\n });\n const startFieldProps = _extends({\n error: !!validationError[0]\n }, startTextFieldProps, selectedSectionsResponse.start, {\n disabled,\n readOnly,\n format,\n formatDensity,\n shouldRespectLeadingZeros,\n timezone,\n value: valueProp === undefined ? undefined : valueProp[0],\n defaultValue: defaultValue === undefined ? undefined : defaultValue[0],\n onChange: handleStartDateChange,\n enableAccessibleFieldDOMStructure,\n autoFocus // Do not add on end field.\n });\n const endFieldProps = _extends({\n error: !!validationError[1]\n }, endTextFieldProps, selectedSectionsResponse.end, {\n format,\n formatDensity,\n shouldRespectLeadingZeros,\n disabled,\n readOnly,\n timezone,\n value: valueProp === undefined ? undefined : valueProp[1],\n defaultValue: defaultValue === undefined ? undefined : defaultValue[1],\n onChange: handleEndDateChange,\n enableAccessibleFieldDOMStructure\n });\n const startDateResponse = useDateField(startFieldProps);\n const endDateResponse = useDateField(endFieldProps);\n\n /* TODO: Undo this change when a clearable behavior for multiple input range fields is implemented */\n return {\n startDate: excludeProps(startDateResponse, ['clearable', 'onClear']),\n endDate: excludeProps(endDateResponse, ['clearable', 'onClear'])\n };\n};","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"slots\", \"slotProps\", \"unstableStartFieldRef\", \"unstableEndFieldRef\", \"className\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Stack from '@mui/material/Stack';\nimport MuiTextField from '@mui/material/TextField';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { unstable_composeClasses as composeClasses, unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nimport { convertFieldResponseIntoMuiTextFieldProps } from '@mui/x-date-pickers/internals';\nimport { useSplitFieldProps } from '@mui/x-date-pickers/hooks';\nimport { PickersTextField } from '@mui/x-date-pickers/PickersTextField';\nimport { useMultiInputDateRangeField } from \"../internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport const multiInputDateRangeFieldClasses = generateUtilityClasses('MuiMultiInputDateRangeField', ['root', 'separator']);\nexport const getMultiInputDateRangeFieldUtilityClass = slot => generateUtilityClass('MuiMultiInputDateRangeField', slot);\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n separator: ['separator']\n };\n return composeClasses(slots, getMultiInputDateRangeFieldUtilityClass, classes);\n};\nconst MultiInputDateRangeFieldRoot = styled(/*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/_jsx(Stack, _extends({\n ref: ref,\n spacing: 2,\n direction: \"row\",\n alignItems: \"center\"\n}, props))), {\n name: 'MuiMultiInputDateRangeField',\n slot: 'Root',\n overridesResolver: (props, styles) => styles.root\n})({});\nconst MultiInputDateRangeFieldSeparator = styled(Typography, {\n name: 'MuiMultiInputDateRangeField',\n slot: 'Separator',\n overridesResolver: (props, styles) => styles.separator\n})({\n lineHeight: '1.4375em' // 23px\n});\n/**\n * Demos:\n *\n * - [DateRangeField](http://mui.com/x/react-date-pickers/date-range-field/)\n * - [Fields](https://mui.com/x/react-date-pickers/fields/)\n *\n * API:\n *\n * - [MultiInputDateRangeField API](https://mui.com/x/api/multi-input-date-range-field/)\n */\nconst MultiInputDateRangeField = /*#__PURE__*/React.forwardRef(function MultiInputDateRangeField(inProps, ref) {\n const themeProps = useThemeProps({\n props: inProps,\n name: 'MuiMultiInputDateRangeField'\n });\n const {\n internalProps,\n forwardedProps\n } = useSplitFieldProps(themeProps, 'date');\n const {\n slots,\n slotProps,\n unstableStartFieldRef,\n unstableEndFieldRef,\n className\n } = forwardedProps,\n otherForwardedProps = _objectWithoutPropertiesLoose(forwardedProps, _excluded);\n const ownerState = themeProps;\n const classes = useUtilityClasses(ownerState);\n const Root = slots?.root ?? MultiInputDateRangeFieldRoot;\n const rootProps = useSlotProps({\n elementType: Root,\n externalSlotProps: slotProps?.root,\n externalForwardedProps: otherForwardedProps,\n additionalProps: {\n ref\n },\n ownerState,\n className: clsx(className, classes.root)\n });\n const TextField = slots?.textField ?? (inProps.enableAccessibleFieldDOMStructure ? PickersTextField : MuiTextField);\n const startTextFieldProps = useSlotProps({\n elementType: TextField,\n externalSlotProps: slotProps?.textField,\n ownerState: _extends({}, ownerState, {\n position: 'start'\n })\n });\n const endTextFieldProps = useSlotProps({\n elementType: TextField,\n externalSlotProps: slotProps?.textField,\n ownerState: _extends({}, ownerState, {\n position: 'end'\n })\n });\n const Separator = slots?.separator ?? MultiInputDateRangeFieldSeparator;\n const separatorProps = useSlotProps({\n elementType: Separator,\n externalSlotProps: slotProps?.separator,\n additionalProps: {\n children: ` ${internalProps.dateSeparator ?? '–'} `\n },\n ownerState,\n className: classes.separator\n });\n const fieldResponse = useMultiInputDateRangeField({\n sharedProps: internalProps,\n startTextFieldProps,\n endTextFieldProps,\n unstableStartFieldRef,\n unstableEndFieldRef\n });\n const startDateProps = convertFieldResponseIntoMuiTextFieldProps(fieldResponse.startDate);\n const endDateProps = convertFieldResponseIntoMuiTextFieldProps(fieldResponse.endDate);\n return /*#__PURE__*/_jsxs(Root, _extends({}, rootProps, {\n children: [/*#__PURE__*/_jsx(TextField, _extends({\n fullWidth: true\n }, startDateProps)), /*#__PURE__*/_jsx(Separator, _extends({}, separatorProps)), /*#__PURE__*/_jsx(TextField, _extends({\n fullWidth: true\n }, endDateProps))]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? MultiInputDateRangeField.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 * If `true`, the `input` element is focused during the first mount.\n */\n autoFocus: PropTypes.bool,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n component: PropTypes.elementType,\n /**\n * String displayed between the start and the end dates.\n * @default \"–\"\n */\n dateSeparator: PropTypes.string,\n /**\n * The default value. Use when the component is not controlled.\n */\n defaultValue: PropTypes.arrayOf(PropTypes.object),\n /**\n * Defines the `flex-direction` style property.\n * It is applied for all screen sizes.\n * @default 'column'\n */\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 /**\n * If `true`, the component is disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * Add an element between each child.\n */\n divider: PropTypes.node,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.bool,\n /**\n * Format of the date when rendered in the input(s).\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * It prevents the user from changing the value of the field\n * (not from interacting with the field).\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * The date used to generate a part of the new value that is not present in the format when both `value` and `defaultValue` are empty.\n * For example, on time fields it will be used to determine the date to set.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`. Value is rounded to the most granular section used.\n */\n referenceDate: PropTypes.object,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @param {string} position The date to test, 'start' or 'end'.\n * @returns {boolean} Returns `true` if the date should be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * If `true`, the format will respect the leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `8/16/2018`)\n * If `false`, the format will always add leading zeroes (e.g: on dayjs, the format `M/D/YYYY` will render `08/16/2018`)\n *\n * Warning n°1: Luxon is not able to respect the leading zeroes when using macro tokens (e.g: \"DD\"), so `shouldRespectLeadingZeros={true}` might lead to inconsistencies when using `AdapterLuxon`.\n *\n * Warning n°2: When `shouldRespectLeadingZeros={true}`, the field will add an invisible character on the sections containing a single digit to make sure `onChange` is fired.\n * If you need to get the clean value from the input, you can remove this character using `input.value.replace(/\\u200e/g, '')`.\n *\n * Warning n°3: When used in strict mode, dayjs and moment require to respect the leading zeros.\n * This mean that when using `shouldRespectLeadingZeros={false}`, if you retrieve the value directly from the input (not listening to `onChange`) and your format contains tokens without leading zeros, the value will not be parsed by your library.\n *\n * @default false\n */\n shouldRespectLeadingZeros: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: PropTypes.object,\n /**\n * Defines the space between immediate children.\n * @default 0\n */\n spacing: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), PropTypes.number, PropTypes.object, PropTypes.string]),\n style: PropTypes.object,\n /**\n * The system prop, which 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n unstableEndFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n unstableStartFieldRef: PropTypes.oneOfType([PropTypes.func, PropTypes.object]),\n /**\n * If `true`, the CSS flexbox `gap` is used instead of applying `margin` to children.\n *\n * While CSS `gap` removes the [known limitations](https://mui.com/joy-ui/react-stack/#limitations),\n * it is not fully supported in some browsers. We recommend checking https://caniuse.com/?search=flex%20gap before using this flag.\n *\n * To enable this flag globally, follow the [theme's default props](https://mui.com/material-ui/customization/theme-components/#default-props) configuration.\n * @default false\n */\n useFlexGap: PropTypes.bool,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.arrayOf(PropTypes.object)\n} : void 0;\nexport { MultiInputDateRangeField };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport const getDateRangeCalendarUtilityClass = slot => generateUtilityClass('MuiDateRangeCalendar', slot);\nexport const dateRangeCalendarClasses = generateUtilityClasses('MuiDateRangeCalendar', ['root', 'monthContainer', 'dayDragging']);","import { mergeDateAndTime } from '@mui/x-date-pickers/internals';\nexport function calculateRangeChange({\n utils,\n range,\n newDate: selectedDate,\n rangePosition,\n allowRangeFlip = false,\n shouldMergeDateAndTime = false,\n referenceDate\n}) {\n const [start, end] = range;\n if (shouldMergeDateAndTime && selectedDate) {\n // If there is a date already selected, then we want to keep its time\n if (start && rangePosition === 'start') {\n selectedDate = mergeDateAndTime(utils, selectedDate, start);\n }\n if (end && rangePosition === 'end') {\n selectedDate = mergeDateAndTime(utils, selectedDate, end);\n }\n }\n const newSelectedDate = referenceDate && selectedDate && shouldMergeDateAndTime ? mergeDateAndTime(utils, selectedDate, referenceDate) : selectedDate;\n if (rangePosition === 'start') {\n const truthyResult = allowRangeFlip ? {\n nextSelection: 'start',\n newRange: [end, newSelectedDate]\n } : {\n nextSelection: 'end',\n newRange: [newSelectedDate, null]\n };\n return Boolean(end) && utils.isAfter(newSelectedDate, end) ? truthyResult : {\n nextSelection: 'end',\n newRange: [newSelectedDate, end]\n };\n }\n const truthyResult = allowRangeFlip ? {\n nextSelection: 'end',\n newRange: [newSelectedDate, start]\n } : {\n nextSelection: 'end',\n newRange: [newSelectedDate, null]\n };\n return Boolean(start) && utils.isBeforeDay(newSelectedDate, start) ? truthyResult : {\n nextSelection: 'start',\n newRange: [start, newSelectedDate]\n };\n}\nexport function calculateRangePreview(options) {\n if (options.newDate == null) {\n return [null, null];\n }\n const [start, end] = options.range;\n const {\n newRange\n } = calculateRangeChange(options);\n if (!start || !end) {\n return newRange;\n }\n const [previewStart, previewEnd] = newRange;\n return options.rangePosition === 'end' ? [end, previewEnd] : [previewStart, start];\n}","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport { isEndOfRange, isStartOfRange } from \"../internals/utils/date-utils.js\";\nconst resolveDateFromTarget = (target, utils, timezone) => {\n const timestampString = target.dataset.timestamp;\n if (!timestampString) {\n return null;\n }\n const timestamp = +timestampString;\n return utils.date(new Date(timestamp).toISOString(), timezone);\n};\nconst isSameAsDraggingDate = event => {\n const timestampString = event.target.dataset.timestamp;\n return timestampString === event.dataTransfer.getData('draggingDate');\n};\nconst resolveButtonElement = element => {\n if (element) {\n if (element instanceof HTMLButtonElement && !element.disabled) {\n return element;\n }\n if (element.children.length) {\n return resolveButtonElement(element.children[0]);\n }\n return null;\n }\n return element;\n};\nconst resolveElementFromTouch = (event, ignoreTouchTarget) => {\n // don't parse multi-touch result\n if (event.changedTouches?.length === 1 && event.touches.length <= 1) {\n const element = document.elementFromPoint(event.changedTouches[0].clientX, event.changedTouches[0].clientY);\n // `elementFromPoint` could have resolved preview div or wrapping div\n // might need to recursively find the nested button\n const buttonElement = resolveButtonElement(element);\n if (ignoreTouchTarget && buttonElement === event.changedTouches[0].target) {\n return null;\n }\n return buttonElement;\n }\n return null;\n};\nconst useDragRangeEvents = ({\n utils,\n setRangeDragDay,\n setIsDragging,\n isDragging,\n onDatePositionChange,\n onDrop,\n disableDragEditing,\n dateRange,\n timezone\n}) => {\n const emptyDragImgRef = React.useRef(null);\n React.useEffect(() => {\n // Preload the image - required for Safari support: https://stackoverflow.com/a/40923520/3303436\n emptyDragImgRef.current = document.createElement('img');\n emptyDragImgRef.current.src = 'data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7';\n }, []);\n const isElementDraggable = day => {\n if (day == null) {\n return false;\n }\n const shouldInitDragging = !disableDragEditing && !!dateRange[0] && !!dateRange[1];\n const isSelectedStartDate = isStartOfRange(utils, day, dateRange);\n const isSelectedEndDate = isEndOfRange(utils, day, dateRange);\n return shouldInitDragging && (isSelectedStartDate || isSelectedEndDate);\n };\n const handleDragStart = useEventCallback(event => {\n const newDate = resolveDateFromTarget(event.target, utils, timezone);\n if (!isElementDraggable(newDate)) {\n return;\n }\n event.stopPropagation();\n if (emptyDragImgRef.current) {\n event.dataTransfer.setDragImage(emptyDragImgRef.current, 0, 0);\n }\n setRangeDragDay(newDate);\n event.dataTransfer.effectAllowed = 'move';\n setIsDragging(true);\n const buttonDataset = event.target.dataset;\n if (buttonDataset.timestamp) {\n event.dataTransfer.setData('draggingDate', buttonDataset.timestamp);\n }\n if (buttonDataset.position) {\n onDatePositionChange(buttonDataset.position);\n }\n });\n const handleTouchStart = useEventCallback(event => {\n const target = resolveElementFromTouch(event);\n if (!target) {\n return;\n }\n const newDate = resolveDateFromTarget(target, utils, timezone);\n if (!isElementDraggable(newDate)) {\n return;\n }\n setRangeDragDay(newDate);\n });\n const handleDragEnter = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer.dropEffect = 'move';\n setRangeDragDay(resolveDateFromTarget(event.target, utils, timezone));\n });\n const handleTouchMove = useEventCallback(event => {\n const target = resolveElementFromTouch(event);\n if (!target) {\n return;\n }\n const newDate = resolveDateFromTarget(target, utils, timezone);\n if (newDate) {\n setRangeDragDay(newDate);\n }\n\n // this prevents initiating drag when user starts touchmove outside and then moves over a draggable element\n const targetsAreIdentical = target === event.changedTouches[0].target;\n if (!targetsAreIdentical || !isElementDraggable(newDate)) {\n return;\n }\n\n // on mobile we should only initialize dragging state after move is detected\n setIsDragging(true);\n const button = event.target;\n const buttonDataset = button.dataset;\n if (buttonDataset.position) {\n onDatePositionChange(buttonDataset.position);\n }\n });\n const handleDragLeave = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n });\n const handleDragOver = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n event.dataTransfer.dropEffect = 'move';\n });\n const handleTouchEnd = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n setRangeDragDay(null);\n setIsDragging(false);\n const target = resolveElementFromTouch(event, true);\n if (!target) {\n return;\n }\n\n // make sure the focused element is the element where touch ended\n target.focus();\n const newDate = resolveDateFromTarget(target, utils, timezone);\n if (newDate) {\n onDrop(newDate);\n }\n });\n const handleDragEnd = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n setIsDragging(false);\n setRangeDragDay(null);\n });\n const handleDrop = useEventCallback(event => {\n if (!isDragging) {\n return;\n }\n event.preventDefault();\n event.stopPropagation();\n setIsDragging(false);\n setRangeDragDay(null);\n // make sure the focused element is the element where drop ended\n event.currentTarget.focus();\n if (isSameAsDraggingDate(event)) {\n return;\n }\n const newDate = resolveDateFromTarget(event.target, utils, timezone);\n if (newDate) {\n onDrop(newDate);\n }\n });\n return {\n onDragStart: handleDragStart,\n onDragEnter: handleDragEnter,\n onDragLeave: handleDragLeave,\n onDragOver: handleDragOver,\n onDragEnd: handleDragEnd,\n onDrop: handleDrop,\n onTouchStart: handleTouchStart,\n onTouchMove: handleTouchMove,\n onTouchEnd: handleTouchEnd\n };\n};\nexport const useDragRange = ({\n disableDragEditing,\n utils,\n onDatePositionChange,\n onDrop,\n dateRange,\n timezone\n}) => {\n const [isDragging, setIsDragging] = React.useState(false);\n const [rangeDragDay, setRangeDragDay] = React.useState(null);\n const handleRangeDragDayChange = useEventCallback(val => {\n if (!utils.isEqual(val, rangeDragDay)) {\n setRangeDragDay(val);\n }\n });\n const draggingDatePosition = React.useMemo(() => {\n const [start, end] = dateRange;\n if (rangeDragDay) {\n if (start && utils.isBefore(rangeDragDay, start)) {\n return 'start';\n }\n if (end && utils.isAfter(rangeDragDay, end)) {\n return 'end';\n }\n }\n return null;\n }, [dateRange, rangeDragDay, utils]);\n const dragRangeEvents = useDragRangeEvents({\n utils,\n onDatePositionChange,\n onDrop,\n setIsDragging,\n isDragging,\n setRangeDragDay: handleRangeDragDayChange,\n disableDragEditing,\n dateRange,\n timezone\n });\n return React.useMemo(() => _extends({\n isDragging,\n rangeDragDay,\n draggingDatePosition\n }, !disableDragEditing ? dragRangeEvents : {}), [isDragging, rangeDragDay, draggingDatePosition, disableDragEditing, dragRangeEvents]);\n};","import useControlled from '@mui/utils/useControlled';\nimport useEventCallback from '@mui/utils/useEventCallback';\nexport const useRangePosition = (props, singleInputFieldRef) => {\n const [rangePosition, setRangePosition] = useControlled({\n name: 'useRangePosition',\n state: 'rangePosition',\n controlled: props.rangePosition,\n default: props.defaultRangePosition ?? 'start'\n });\n\n // When using a single input field,\n // we want to select the 1st section of the edited date when updating the range position.\n const syncRangePositionWithSingleInputField = newRangePosition => {\n if (singleInputFieldRef?.current == null) {\n return;\n }\n const sections = singleInputFieldRef.current.getSections();\n const targetActiveSectionIndex = newRangePosition === 'start' ? 0 : sections.length / 2;\n singleInputFieldRef.current.setSelectedSections(targetActiveSectionIndex);\n };\n const handleRangePositionChange = useEventCallback(newRangePosition => {\n setRangePosition(newRangePosition);\n props.onRangePositionChange?.(newRangePosition);\n syncRangePositionWithSingleInputField(newRangePosition);\n });\n return {\n rangePosition,\n onRangePositionChange: handleRangePositionChange\n };\n};","import { DAY_MARGIN, VIEW_HEIGHT } from '@mui/x-date-pickers/internals';\nexport { DAY_MARGIN } from '@mui/x-date-pickers/internals';\nexport const DAY_RANGE_SIZE = 40;\n// adding the extra height of the range day element height difference (40px vs 36px)\nexport const RANGE_VIEW_HEIGHT = VIEW_HEIGHT + 6 * 2 * DAY_MARGIN;","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"calendars\", \"month\", \"monthIndex\", \"labelId\"],\n _excluded2 = [\"format\", \"slots\", \"slotProps\", \"currentMonth\", \"onMonthChange\", \"disableFuture\", \"disablePast\", \"minDate\", \"maxDate\", \"timezone\", \"reduceAnimations\", \"views\", \"view\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport { PickersCalendarHeader } from '@mui/x-date-pickers/PickersCalendarHeader';\nimport { PickersArrowSwitcher, useNextMonthDisabled, usePreviousMonthDisabled, useUtils } from '@mui/x-date-pickers/internals';\nimport { usePickersTranslations } from '@mui/x-date-pickers/hooks';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst PickersRangeCalendarHeaderContentMultipleCalendars = styled(PickersArrowSwitcher)({\n padding: '12px 16px 4px 16px',\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between'\n});\nconst PickersRangeCalendarHeader = /*#__PURE__*/React.forwardRef(function PickersRangeCalendarHeader(props, ref) {\n const utils = useUtils();\n const translations = usePickersTranslations();\n const {\n calendars,\n month,\n monthIndex,\n labelId\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n format,\n slots,\n slotProps,\n currentMonth,\n onMonthChange,\n disableFuture,\n disablePast,\n minDate,\n maxDate,\n timezone\n // omit props that are not used in the PickersArrowSwitcher\n } = other,\n otherRangeProps = _objectWithoutPropertiesLoose(other, _excluded2);\n const isNextMonthDisabled = useNextMonthDisabled(currentMonth, {\n disableFuture,\n maxDate,\n timezone\n });\n const isPreviousMonthDisabled = usePreviousMonthDisabled(currentMonth, {\n disablePast,\n minDate,\n timezone\n });\n if (calendars === 1) {\n return /*#__PURE__*/_jsx(PickersCalendarHeader, _extends({}, other, {\n labelId: labelId,\n ref: ref\n }));\n }\n const selectNextMonth = () => onMonthChange(utils.addMonths(currentMonth, 1), 'left');\n const selectPreviousMonth = () => onMonthChange(utils.addMonths(currentMonth, -1), 'right');\n return /*#__PURE__*/_jsx(PickersRangeCalendarHeaderContentMultipleCalendars, _extends({}, otherRangeProps, {\n ref: ref,\n onGoToPrevious: selectPreviousMonth,\n onGoToNext: selectNextMonth,\n isPreviousHidden: monthIndex !== 0,\n isPreviousDisabled: isPreviousMonthDisabled,\n previousLabel: translations.previousMonth,\n isNextHidden: monthIndex !== calendars - 1,\n isNextDisabled: isNextMonthDisabled,\n nextLabel: translations.nextMonth,\n slots: slots,\n slotProps: slotProps,\n labelId: labelId,\n children: utils.formatByString(month, format ?? `${utils.formats.month} ${utils.formats.year}`)\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? PickersRangeCalendarHeader.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 number of calendars rendered.\n */\n calendars: PropTypes.oneOf([1, 2, 3]).isRequired,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n currentMonth: PropTypes.object.isRequired,\n disabled: PropTypes.bool,\n disableFuture: PropTypes.bool,\n disablePast: PropTypes.bool,\n /**\n * Format used to display the date.\n * @default `${adapter.formats.month} ${adapter.formats.year}`\n */\n format: PropTypes.string,\n /**\n * Id of the calendar text element.\n * It is used to establish an `aria-labelledby` relationship with the calendar `grid` element.\n */\n labelId: PropTypes.string,\n maxDate: PropTypes.object.isRequired,\n minDate: PropTypes.object.isRequired,\n /**\n * Month used for this header.\n */\n month: PropTypes.object.isRequired,\n /**\n * Index of the month used for this header.\n */\n monthIndex: PropTypes.number.isRequired,\n onMonthChange: PropTypes.func.isRequired,\n onViewChange: PropTypes.func,\n reduceAnimations: PropTypes.bool.isRequired,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 timezone: PropTypes.string.isRequired,\n view: PropTypes.oneOf(['day', 'month', 'year']).isRequired,\n views: PropTypes.arrayOf(PropTypes.oneOf(['day', 'month', 'year']).isRequired).isRequired\n} : void 0;\nexport { PickersRangeCalendarHeader };","'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"value\", \"defaultValue\", \"referenceDate\", \"onChange\", \"className\", \"disableFuture\", \"disablePast\", \"minDate\", \"maxDate\", \"shouldDisableDate\", \"reduceAnimations\", \"onMonthChange\", \"rangePosition\", \"defaultRangePosition\", \"onRangePositionChange\", \"calendars\", \"currentMonthCalendarPosition\", \"slots\", \"slotProps\", \"loading\", \"renderLoading\", \"disableHighlightToday\", \"readOnly\", \"disabled\", \"showDaysOutsideCurrentMonth\", \"dayOfWeekFormatter\", \"disableAutoMonthSwitching\", \"autoFocus\", \"fixedWeekNumber\", \"disableDragEditing\", \"displayWeekNumber\", \"timezone\", \"availableRangePositions\", \"views\", \"view\", \"openTo\", \"onViewChange\"],\n _excluded2 = [\"isDragging\", \"rangeDragDay\", \"draggingDatePosition\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport useId from '@mui/utils/useId';\nimport { Watermark } from '@mui/x-license';\nimport { applyDefaultDate, DayCalendar, useDefaultReduceAnimations, useCalendarState, useDefaultDates, useUtils, useNow, DEFAULT_DESKTOP_MODE_MEDIA_QUERY, useControlledValueWithTimezone, useViews } from '@mui/x-date-pickers/internals';\nimport { warnOnce } from '@mui/x-internals/warning';\nimport { getReleaseInfo } from \"../internals/utils/releaseInfo.js\";\nimport { dateRangeCalendarClasses, getDateRangeCalendarUtilityClass } from \"./dateRangeCalendarClasses.js\";\nimport { isEndOfRange, isRangeValid, isStartOfRange, isWithinRange } from \"../internals/utils/date-utils.js\";\nimport { calculateRangeChange, calculateRangePreview } from \"../internals/utils/date-range-manager.js\";\nimport { DateRangePickerDay, dateRangePickerDayClasses as dayClasses } from \"../DateRangePickerDay/index.js\";\nimport { rangeValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useDragRange } from \"./useDragRange.js\";\nimport { useRangePosition } from \"../internals/hooks/useRangePosition.js\";\nimport { DAY_RANGE_SIZE, DAY_MARGIN } from \"../internals/constants/dimensions.js\";\nimport { PickersRangeCalendarHeader } from \"../PickersRangeCalendarHeader/index.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst releaseInfo = getReleaseInfo();\nconst DateRangeCalendarRoot = styled('div', {\n name: 'MuiDateRangeCalendar',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({\n display: 'flex',\n flexDirection: 'row'\n});\nconst DateRangeCalendarMonthContainer = styled('div', {\n name: 'MuiDateRangeCalendar',\n slot: 'Container',\n overridesResolver: (_, styles) => styles.monthContainer\n})(({\n theme\n}) => ({\n '&:not(:last-of-type)': {\n borderRight: `1px solid ${(theme.vars || theme).palette.divider}`\n }\n}));\nconst weeksContainerHeight = (DAY_RANGE_SIZE + DAY_MARGIN * 2) * 6;\nconst InnerDayCalendarForRange = styled(DayCalendar)(({\n theme\n}) => ({\n minWidth: 312,\n minHeight: weeksContainerHeight,\n [`&.${dateRangeCalendarClasses.dayDragging}`]: {\n [`& .${dayClasses.day}`]: {\n cursor: 'grabbing'\n },\n [`& .${dayClasses.root}:not(.${dayClasses.rangeIntervalDayHighlightStart}):not(.${dayClasses.rangeIntervalDayHighlightEnd}) .${dayClasses.day}:not(.${dayClasses.notSelectedDate})`]: {\n // we can't override `PickersDay` background color here, because it's styles take precedence\n opacity: 0.6\n }\n },\n [`&:not(.${dateRangeCalendarClasses.dayDragging}) .${dayClasses.dayOutsideRangeInterval}`]: {\n '@media (pointer: fine)': {\n '&:hover': {\n border: `1px solid ${(theme.vars || theme).palette.grey[500]}`\n }\n }\n }\n}));\nconst DayCalendarForRange = InnerDayCalendarForRange;\nfunction useDateRangeCalendarDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const defaultReduceAnimations = useDefaultReduceAnimations();\n const themeProps = useThemeProps({\n props,\n name\n });\n return _extends({}, themeProps, {\n renderLoading: themeProps.renderLoading ?? (() => /*#__PURE__*/_jsx(\"span\", {\n children: \"...\"\n })),\n reduceAnimations: themeProps.reduceAnimations ?? defaultReduceAnimations,\n loading: props.loading ?? false,\n disablePast: props.disablePast ?? false,\n disableFuture: props.disableFuture ?? false,\n openTo: themeProps.openTo ?? 'day',\n views: themeProps.views ?? ['day'],\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate),\n calendars: themeProps.calendars ?? 2,\n disableDragEditing: themeProps.disableDragEditing ?? false,\n availableRangePositions: themeProps.availableRangePositions ?? ['start', 'end']\n });\n}\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n isDragging\n } = ownerState;\n const slots = {\n root: ['root'],\n monthContainer: ['monthContainer'],\n dayCalendar: [isDragging && 'dayDragging']\n };\n return composeClasses(slots, getDateRangeCalendarUtilityClass, classes);\n};\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n * - [DateRangeCalendar](https://mui.com/x/react-date-pickers/date-range-calendar/)\n *\n * API:\n *\n * - [DateRangeCalendar API](https://mui.com/x/api/date-pickers/date-range-calendar/)\n */\nconst DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalendar(inProps, ref) {\n const props = useDateRangeCalendarDefaultizedProps(inProps, 'MuiDateRangeCalendar');\n const shouldHavePreview = useMediaQuery(DEFAULT_DESKTOP_MODE_MEDIA_QUERY, {\n defaultMatches: false\n });\n const {\n value: valueProp,\n defaultValue,\n referenceDate,\n onChange,\n className,\n disableFuture,\n disablePast,\n minDate,\n maxDate,\n shouldDisableDate,\n reduceAnimations,\n onMonthChange,\n rangePosition: rangePositionProp,\n defaultRangePosition: inDefaultRangePosition,\n onRangePositionChange: inOnRangePositionChange,\n calendars,\n currentMonthCalendarPosition = 1,\n slots,\n slotProps,\n loading,\n renderLoading,\n disableHighlightToday,\n readOnly,\n disabled,\n showDaysOutsideCurrentMonth,\n dayOfWeekFormatter,\n disableAutoMonthSwitching,\n autoFocus,\n fixedWeekNumber,\n disableDragEditing,\n displayWeekNumber,\n timezone: timezoneProp,\n availableRangePositions,\n views,\n view: inView,\n openTo,\n onViewChange\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n value,\n handleValueChange,\n timezone\n } = useControlledValueWithTimezone({\n name: 'DateRangeCalendar',\n timezone: timezoneProp,\n value: valueProp,\n defaultValue,\n onChange,\n valueManager: rangeValueManager\n });\n const {\n setValueAndGoToNextView,\n view\n } = useViews({\n view: inView,\n views,\n openTo,\n onChange: handleValueChange,\n onViewChange,\n autoFocus\n });\n const utils = useUtils();\n const now = useNow(timezone);\n const id = useId();\n const {\n rangePosition,\n onRangePositionChange\n } = useRangePosition({\n rangePosition: rangePositionProp,\n defaultRangePosition: inDefaultRangePosition,\n onRangePositionChange: inOnRangePositionChange\n });\n const handleDatePositionChange = useEventCallback(position => {\n if (rangePosition !== position) {\n onRangePositionChange(position);\n }\n });\n const handleSelectedDayChange = useEventCallback((newDate, selectionState, allowRangeFlip = false) => {\n const {\n nextSelection,\n newRange\n } = calculateRangeChange({\n newDate,\n utils,\n range: value,\n rangePosition,\n allowRangeFlip,\n shouldMergeDateAndTime: true,\n referenceDate\n });\n const isNextSectionAvailable = availableRangePositions.includes(nextSelection);\n if (isNextSectionAvailable) {\n onRangePositionChange(nextSelection);\n }\n const isFullRangeSelected = rangePosition === 'end' && isRangeValid(utils, newRange);\n setValueAndGoToNextView(newRange, isFullRangeSelected || !isNextSectionAvailable ? 'finish' : 'partial', view);\n });\n const handleDrop = useEventCallback(newDate => {\n handleSelectedDayChange(newDate, undefined, true);\n });\n const shouldDisableDragEditing = disableDragEditing || disabled || readOnly;\n\n // Range going for the start of the start day to the end of the end day.\n // This makes sure that `isWithinRange` works with any time in the start and end day.\n const valueDayRange = React.useMemo(() => [value[0] == null || !utils.isValid(value[0]) ? value[0] : utils.startOfDay(value[0]), value[1] == null || !utils.isValid(value[1]) ? value[1] : utils.endOfDay(value[1])], [value, utils]);\n const _useDragRange = useDragRange({\n disableDragEditing: shouldDisableDragEditing,\n onDrop: handleDrop,\n onDatePositionChange: handleDatePositionChange,\n utils,\n dateRange: valueDayRange,\n timezone\n }),\n {\n isDragging,\n rangeDragDay,\n draggingDatePosition\n } = _useDragRange,\n dragEventHandlers = _objectWithoutPropertiesLoose(_useDragRange, _excluded2);\n const ownerState = _extends({}, props, {\n isDragging\n });\n const classes = useUtilityClasses(ownerState);\n const draggingRange = React.useMemo(() => {\n if (!valueDayRange[0] || !valueDayRange[1] || !rangeDragDay) {\n return [null, null];\n }\n const newRange = calculateRangeChange({\n utils,\n range: valueDayRange,\n newDate: rangeDragDay,\n rangePosition,\n allowRangeFlip: true\n }).newRange;\n return newRange[0] !== null && newRange[1] !== null ? [utils.startOfDay(newRange[0]), utils.endOfDay(newRange[1])] : newRange;\n }, [rangePosition, rangeDragDay, utils, valueDayRange]);\n const wrappedShouldDisableDate = React.useMemo(() => {\n if (!shouldDisableDate) {\n return undefined;\n }\n return dayToTest => shouldDisableDate(dayToTest, draggingDatePosition || rangePosition);\n }, [shouldDisableDate, rangePosition, draggingDatePosition]);\n const {\n calendarState,\n changeFocusedDay,\n changeMonth,\n handleChangeMonth,\n onMonthSwitchingAnimationEnd\n } = useCalendarState({\n value: value[0] || value[1],\n referenceDate,\n disableFuture,\n disablePast,\n disableSwitchToMonthOnDayFocus: true,\n maxDate,\n minDate,\n onMonthChange,\n reduceAnimations,\n shouldDisableDate: wrappedShouldDisableDate,\n timezone\n });\n const CalendarHeader = slots?.calendarHeader ?? PickersRangeCalendarHeader;\n const calendarHeaderProps = useSlotProps({\n elementType: CalendarHeader,\n externalSlotProps: slotProps?.calendarHeader,\n additionalProps: {\n calendars,\n views: ['day'],\n view: 'day',\n currentMonth: calendarState.currentMonth,\n onMonthChange: (newMonth, direction) => handleChangeMonth({\n newMonth,\n direction\n }),\n minDate,\n maxDate,\n disabled,\n disablePast,\n disableFuture,\n reduceAnimations,\n timezone,\n slots,\n slotProps\n },\n ownerState: props\n });\n const prevValue = React.useRef(null);\n React.useEffect(() => {\n const date = rangePosition === 'start' ? value[0] : value[1];\n if (!date || !utils.isValid(date)) {\n return;\n }\n const prevDate = rangePosition === 'start' ? prevValue.current?.[0] : prevValue.current?.[1];\n prevValue.current = value;\n\n // The current date did not change, this call comes either from a `rangePosition` change or a change in the other date.\n // In both cases, we don't want to change the visible month(s).\n if (disableAutoMonthSwitching && prevDate && utils.isEqual(prevDate, date)) {\n return;\n }\n const displayingMonthRange = calendars - currentMonthCalendarPosition;\n const currentMonthNumber = utils.getMonth(calendarState.currentMonth);\n const requestedMonthNumber = utils.getMonth(date);\n if (!utils.isSameYear(calendarState.currentMonth, date) || requestedMonthNumber < currentMonthNumber || requestedMonthNumber > currentMonthNumber + displayingMonthRange) {\n const newMonth = rangePosition === 'start' ? date :\n // If need to focus end, scroll to the state when \"end\" is displaying in the last calendar\n utils.addMonths(date, -displayingMonthRange);\n changeMonth(newMonth);\n }\n }, [rangePosition, value]); // eslint-disable-line\n\n const baseDateValidationProps = {\n disablePast,\n disableFuture,\n maxDate,\n minDate\n };\n const commonViewProps = {\n disableHighlightToday,\n readOnly,\n disabled\n };\n const [rangePreviewDay, setRangePreviewDay] = React.useState(null);\n const CalendarTransitionProps = React.useMemo(() => ({\n onMouseLeave: () => setRangePreviewDay(null)\n }), []);\n const previewingRange = calculateRangePreview({\n utils,\n range: valueDayRange,\n newDate: rangePreviewDay,\n rangePosition\n });\n const handleDayMouseEnter = useEventCallback((event, newPreviewRequest) => {\n if (!isWithinRange(utils, newPreviewRequest, valueDayRange)) {\n setRangePreviewDay(newPreviewRequest);\n } else {\n setRangePreviewDay(null);\n }\n });\n const slotsForDayCalendar = _extends({\n day: DateRangePickerDay\n }, slots);\n const slotPropsForDayCalendar = _extends({}, slotProps, {\n day: dayOwnerState => {\n const {\n day\n } = dayOwnerState;\n const isSelectedStartDate = isStartOfRange(utils, day, valueDayRange);\n const isSelectedEndDate = isEndOfRange(utils, day, valueDayRange);\n const shouldInitDragging = !shouldDisableDragEditing && valueDayRange[0] && valueDayRange[1];\n const isElementDraggable = shouldInitDragging && (isSelectedStartDate || isSelectedEndDate);\n let datePosition;\n if (isSelectedStartDate) {\n datePosition = 'start';\n } else if (isSelectedEndDate) {\n datePosition = 'end';\n }\n const isStartOfHighlighting = isDragging ? isStartOfRange(utils, day, draggingRange) : isSelectedStartDate;\n const isEndOfHighlighting = isDragging ? isEndOfRange(utils, day, draggingRange) : isSelectedEndDate;\n return _extends({\n isPreviewing: shouldHavePreview ? isWithinRange(utils, day, previewingRange) : false,\n isStartOfPreviewing: shouldHavePreview ? isStartOfRange(utils, day, previewingRange) : false,\n isEndOfPreviewing: shouldHavePreview ? isEndOfRange(utils, day, previewingRange) : false,\n isHighlighting: isWithinRange(utils, day, isDragging ? draggingRange : valueDayRange),\n isStartOfHighlighting,\n isEndOfHighlighting: isDragging ? isEndOfRange(utils, day, draggingRange) : isSelectedEndDate,\n onMouseEnter: shouldHavePreview ? handleDayMouseEnter : undefined,\n // apply selected styling to the dragging start or end day\n isVisuallySelected: dayOwnerState.selected || isDragging && (isStartOfHighlighting || isEndOfHighlighting),\n 'data-position': datePosition\n }, dragEventHandlers, {\n draggable: isElementDraggable ? true : undefined\n }, resolveComponentProps(slotProps?.day, dayOwnerState) ?? {});\n }\n });\n const calendarMonths = React.useMemo(() => Array.from({\n length: calendars\n }).map((_, index) => index), [calendars]);\n const visibleMonths = React.useMemo(() => {\n if (process.env.NODE_ENV !== 'production') {\n if (currentMonthCalendarPosition > calendars || currentMonthCalendarPosition < 1) {\n warnOnce(['MUI X: The `currentMonthCalendarPosition` prop must be an integer between `1` and the amount of calendars rendered.', 'For example if you have 2 calendars rendered, it should be equal to either 1 or 2.']);\n }\n }\n const firstMonth = utils.addMonths(calendarState.currentMonth, 1 - currentMonthCalendarPosition);\n return Array.from({\n length: calendars\n }).map((_, index) => utils.addMonths(firstMonth, index));\n }, [utils, calendarState.currentMonth, calendars, currentMonthCalendarPosition]);\n const focusedMonth = React.useMemo(() => {\n if (!autoFocus) {\n return null;\n }\n\n // The focus priority of the \"day\" view is as follows:\n // 1. Month of the `start` date\n // 2. Month of the `end` date\n // 3. Month of the current date\n // 4. First visible month\n\n if (value[0] != null) {\n return visibleMonths.find(month => utils.isSameMonth(month, value[0]));\n }\n if (value[1] != null) {\n return visibleMonths.find(month => utils.isSameMonth(month, value[1]));\n }\n return visibleMonths.find(month => utils.isSameMonth(month, now)) ?? visibleMonths[0];\n }, [utils, value, visibleMonths, autoFocus, now]);\n return /*#__PURE__*/_jsxs(DateRangeCalendarRoot, _extends({\n ref: ref,\n className: clsx(classes.root, className),\n ownerState: ownerState\n }, other, {\n children: [/*#__PURE__*/_jsx(Watermark, {\n packageName: \"x-date-pickers-pro\",\n releaseInfo: releaseInfo\n }), calendarMonths.map(monthIndex => {\n const month = visibleMonths[monthIndex];\n const labelId = `${id}-grid-${monthIndex}-label`;\n return /*#__PURE__*/_jsxs(DateRangeCalendarMonthContainer, {\n className: classes.monthContainer,\n children: [/*#__PURE__*/_jsx(CalendarHeader, _extends({}, calendarHeaderProps, {\n month: month,\n monthIndex: monthIndex,\n labelId: labelId\n })), /*#__PURE__*/_jsx(DayCalendarForRange, _extends({\n className: classes.dayCalendar\n }, calendarState, baseDateValidationProps, commonViewProps, {\n onMonthSwitchingAnimationEnd: onMonthSwitchingAnimationEnd,\n onFocusedDayChange: changeFocusedDay,\n reduceAnimations: reduceAnimations,\n selectedDays: value,\n onSelectedDaysChange: handleSelectedDayChange,\n currentMonth: month,\n TransitionProps: CalendarTransitionProps,\n shouldDisableDate: wrappedShouldDisableDate,\n showDaysOutsideCurrentMonth: calendars === 1 && showDaysOutsideCurrentMonth,\n dayOfWeekFormatter: dayOfWeekFormatter,\n loading: loading,\n renderLoading: renderLoading,\n slots: slotsForDayCalendar,\n slotProps: slotPropsForDayCalendar,\n autoFocus: month === focusedMonth,\n fixedWeekNumber: fixedWeekNumber,\n displayWeekNumber: displayWeekNumber,\n timezone: timezone,\n gridLabelId: labelId\n }))]\n }, monthIndex);\n })]\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateRangeCalendar.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * Range positions available for selection.\n * This list is checked against when checking if a next range position can be selected.\n *\n * Used on Date Time Range pickers with current `rangePosition` to force a `finish` selection after just one range position selection.\n * @default ['start', 'end']\n */\n availableRangePositions: PropTypes.arrayOf(PropTypes.oneOf(['end', 'start']).isRequired),\n /**\n * The number of calendars to render.\n * @default 2\n */\n calendars: PropTypes.oneOf([1, 2, 3]),\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n /**\n * Position the current month is rendered in.\n * @default 1\n */\n currentMonthCalendarPosition: PropTypes.oneOf([1, 2, 3]),\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The initial position in the edited date range.\n * Used when the component is not controlled.\n * @default 'start'\n */\n defaultRangePosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The default selected value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.arrayOf(PropTypes.object),\n /**\n * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.\n * @default false\n */\n disableAutoMonthSwitching: PropTypes.bool,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, editing dates by dragging is disabled.\n * @default false\n */\n disableDragEditing: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Controlled focused view.\n */\n focusedView: PropTypes.oneOf(['day']),\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TView The view type. Will be one of date or time views.\n * @param {TValue} value The new value.\n * @param {PickerSelectionState | undefined} selectionState Indicates if the date selection is complete.\n * @param {TView | undefined} selectedView Indicates the view in which the selection has been made.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired on focused view change.\n * @template TView\n * @param {TView} view The new view to focus or not.\n * @param {boolean} hasFocus `true` if the view should be focused.\n */\n onFocusedViewChange: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the range position changes.\n * @param {RangePosition} rangePosition The new range position.\n */\n onRangePositionChange: PropTypes.func,\n /**\n * Callback fired on view change.\n * @template TView\n * @param {TView} view The new view.\n */\n onViewChange: PropTypes.func,\n /**\n * The default visible view.\n * Used when the component view is not controlled.\n * Must be a valid option from `views` list.\n */\n openTo: PropTypes.oneOf(['day']),\n /**\n * The position in the currently edited date range.\n * Used when the component position is controlled.\n */\n rangePosition: PropTypes.oneOf(['end', 'start']),\n /**\n * Make picker read only.\n * @default false\n */\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date using the validation props, except callbacks such as `shouldDisableDate`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component rendered on the \"day\" view when `props.loading` is true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => \"...\"\n */\n renderLoading: PropTypes.func,\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @param {string} position The date to test, 'start' or 'end'.\n * @returns {boolean} Returns `true` if the date should be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.arrayOf(PropTypes.object),\n /**\n * The visible view.\n * Used when the component view is controlled.\n * Must be a valid option from `views` list.\n */\n view: PropTypes.oneOf(['day']),\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day']))\n} : void 0;\nexport { DateRangeCalendar };","import { unstable_generateUtilityClass as generateUtilityClass, unstable_generateUtilityClasses as generateUtilityClasses } from '@mui/utils';\nexport function getDateRangePickerToolbarUtilityClass(slot) {\n return generateUtilityClass('MuiDateRangePickerToolbar', slot);\n}\nexport const dateRangePickerToolbarClasses = generateUtilityClasses('MuiDateRangePickerToolbar', ['root', 'container']);","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"value\", \"rangePosition\", \"onRangePositionChange\", \"toolbarFormat\", \"className\", \"onViewChange\", \"view\", \"views\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport Typography from '@mui/material/Typography';\nimport { styled, useThemeProps } from '@mui/material/styles';\nimport composeClasses from '@mui/utils/composeClasses';\nimport { PickersToolbar, PickersToolbarButton, useUtils } from '@mui/x-date-pickers/internals';\nimport { usePickersTranslations } from '@mui/x-date-pickers/hooks';\nimport { getDateRangePickerToolbarUtilityClass } from \"./dateRangePickerToolbarClasses.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes\n } = ownerState;\n const slots = {\n root: ['root'],\n container: ['container']\n };\n return composeClasses(slots, getDateRangePickerToolbarUtilityClass, classes);\n};\nconst DateRangePickerToolbarRoot = styled(PickersToolbar, {\n name: 'MuiDateRangePickerToolbar',\n slot: 'Root',\n overridesResolver: (_, styles) => styles.root\n})({});\nconst DateRangePickerToolbarContainer = styled('div', {\n name: 'MuiDateRangePickerToolbar',\n slot: 'Container',\n overridesResolver: (_, styles) => styles.container\n})({\n display: 'flex'\n});\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n * - [Custom components](https://mui.com/x/react-date-pickers/custom-components/)\n *\n * API:\n *\n * - [DateRangePickerToolbar API](https://mui.com/x/api/date-pickers/date-range-picker-toolbar/)\n */\nconst DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {\n const utils = useUtils();\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateRangePickerToolbar'\n });\n const {\n value: [start, end],\n rangePosition,\n onRangePositionChange,\n toolbarFormat,\n className\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const translations = usePickersTranslations();\n const startDateValue = start ? utils.formatByString(start, toolbarFormat || utils.formats.shortDate) : translations.start;\n const endDateValue = end ? utils.formatByString(end, toolbarFormat || utils.formats.shortDate) : translations.end;\n const ownerState = props;\n const classes = useUtilityClasses(ownerState);\n return /*#__PURE__*/_jsx(DateRangePickerToolbarRoot, _extends({}, other, {\n toolbarTitle: translations.dateRangePickerToolbarTitle,\n isLandscape: false,\n className: clsx(classes.root, className),\n ownerState: ownerState,\n ref: ref,\n children: /*#__PURE__*/_jsxs(DateRangePickerToolbarContainer, {\n className: classes.container,\n children: [/*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: start !== null ? 'h5' : 'h6',\n value: startDateValue,\n selected: rangePosition === 'start',\n onClick: () => onRangePositionChange('start')\n }), /*#__PURE__*/_jsxs(Typography, {\n variant: \"h5\",\n children: [\"\\xA0\", '–', \"\\xA0\"]\n }), /*#__PURE__*/_jsx(PickersToolbarButton, {\n variant: end !== null ? 'h5' : 'h6',\n value: endDateValue,\n selected: rangePosition === 'end',\n onClick: () => onRangePositionChange('end')\n })]\n })\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateRangePickerToolbar.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 * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n className: PropTypes.string,\n disabled: PropTypes.bool,\n /**\n * If `true`, show the toolbar even in desktop mode.\n * @default `true` for Desktop, `false` for Mobile.\n */\n hidden: PropTypes.bool,\n onRangePositionChange: PropTypes.func.isRequired,\n /**\n * Callback called when a toolbar is clicked\n * @template TView\n * @param {TView} view The view to open\n */\n onViewChange: PropTypes.func.isRequired,\n rangePosition: PropTypes.oneOf(['end', 'start']).isRequired,\n readOnly: PropTypes.bool,\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 titleId: PropTypes.string,\n /**\n * Toolbar date format.\n */\n toolbarFormat: PropTypes.string,\n /**\n * Toolbar value placeholder—it is displayed when the value is empty.\n * @default \"––\"\n */\n toolbarPlaceholder: PropTypes.node,\n value: PropTypes.arrayOf(PropTypes.object).isRequired,\n /**\n * Currently visible picker view.\n */\n view: PropTypes.oneOf(['day']).isRequired,\n /**\n * Available views.\n */\n views: PropTypes.arrayOf(PropTypes.oneOf(['day'])).isRequired\n} : void 0;\nexport { DateRangePickerToolbar };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport { useThemeProps } from '@mui/material/styles';\nimport { useDefaultDates, useUtils, applyDefaultDate } from '@mui/x-date-pickers/internals';\nimport { DateRangePickerToolbar } from \"./DateRangePickerToolbar.js\";\nexport function useDateRangePickerDefaultizedProps(props, name) {\n const utils = useUtils();\n const defaultDates = useDefaultDates();\n const themeProps = useThemeProps({\n props,\n name\n });\n const localeText = React.useMemo(() => {\n if (themeProps.localeText?.toolbarTitle == null) {\n return themeProps.localeText;\n }\n return _extends({}, themeProps.localeText, {\n dateRangePickerToolbarTitle: themeProps.localeText.toolbarTitle\n });\n }, [themeProps.localeText]);\n return _extends({}, themeProps, {\n localeText,\n disableFuture: themeProps.disableFuture ?? false,\n disablePast: themeProps.disablePast ?? false,\n minDate: applyDefaultDate(utils, themeProps.minDate, defaultDates.minDate),\n maxDate: applyDefaultDate(utils, themeProps.maxDate, defaultDates.maxDate),\n slots: _extends({\n toolbar: DateRangePickerToolbar\n }, themeProps.slots)\n });\n}","import * as React from 'react';\nimport { DateRangeCalendar } from \"../DateRangeCalendar/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * We don't pass all the props down to `DateRangeCalendar`,\n * because otherwise some unwanted props would be passed to the HTML element.\n */\nexport const renderDateRangeViewCalendar = ({\n value,\n defaultValue,\n referenceDate,\n onChange,\n className,\n classes,\n disableFuture,\n disablePast,\n minDate,\n maxDate,\n shouldDisableDate,\n reduceAnimations,\n onMonthChange,\n rangePosition,\n defaultRangePosition,\n onRangePositionChange,\n calendars,\n currentMonthCalendarPosition,\n slots,\n slotProps,\n loading,\n renderLoading,\n disableHighlightToday,\n readOnly,\n disabled,\n showDaysOutsideCurrentMonth,\n dayOfWeekFormatter,\n disableAutoMonthSwitching,\n sx,\n autoFocus,\n fixedWeekNumber,\n disableDragEditing,\n displayWeekNumber,\n timezone,\n availableRangePositions,\n views,\n view,\n onViewChange\n}) => /*#__PURE__*/_jsx(DateRangeCalendar, {\n value: value,\n defaultValue: defaultValue,\n referenceDate: referenceDate,\n onChange: onChange,\n className: className,\n classes: classes,\n disableFuture: disableFuture,\n disablePast: disablePast,\n minDate: minDate,\n maxDate: maxDate,\n shouldDisableDate: shouldDisableDate,\n reduceAnimations: reduceAnimations,\n onMonthChange: onMonthChange,\n rangePosition: rangePosition,\n defaultRangePosition: defaultRangePosition,\n onRangePositionChange: onRangePositionChange,\n calendars: calendars,\n currentMonthCalendarPosition: currentMonthCalendarPosition,\n slots: slots,\n slotProps: slotProps,\n loading: loading,\n renderLoading: renderLoading,\n disableHighlightToday: disableHighlightToday,\n readOnly: readOnly,\n disabled: disabled,\n showDaysOutsideCurrentMonth: showDaysOutsideCurrentMonth,\n dayOfWeekFormatter: dayOfWeekFormatter,\n disableAutoMonthSwitching: disableAutoMonthSwitching,\n sx: sx,\n autoFocus: autoFocus,\n fixedWeekNumber: fixedWeekNumber,\n disableDragEditing: disableDragEditing,\n displayWeekNumber: displayWeekNumber,\n timezone: timezone,\n availableRangePositions: availableRangePositions,\n view: view,\n views: views,\n onViewChange: onViewChange\n});","import _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"clearable\", \"onClear\"];\nimport * as React from 'react';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport useEventCallback from '@mui/utils/useEventCallback';\nimport useForkRef from '@mui/utils/useForkRef';\nimport { usePickersTranslations } from '@mui/x-date-pickers/hooks';\nimport { onSpaceOrEnter } from '@mui/x-date-pickers/internals';\nconst useMultiInputFieldSlotProps = ({\n wrapperVariant,\n open,\n actions,\n readOnly,\n labelId,\n disableOpenPicker,\n onBlur,\n rangePosition,\n onRangePositionChange,\n localeText: inLocaleText,\n pickerSlotProps,\n pickerSlots,\n fieldProps,\n anchorRef,\n currentView,\n initialView,\n onViewChange,\n startFieldRef,\n endFieldRef\n}) => {\n const translations = usePickersTranslations();\n const handleStartFieldRef = useForkRef(fieldProps.unstableStartFieldRef, startFieldRef);\n const handleEndFieldRef = useForkRef(fieldProps.unstableEndFieldRef, endFieldRef);\n const previousRangePosition = React.useRef(rangePosition);\n React.useEffect(() => {\n if (!open) {\n return;\n }\n const currentFieldRef = rangePosition === 'start' ? startFieldRef : endFieldRef;\n currentFieldRef.current?.focusField();\n if (!currentFieldRef.current || !currentView) {\n // could happen when the user is switching between the inputs\n previousRangePosition.current = rangePosition;\n return;\n }\n\n // bring back focus to the field\n currentFieldRef.current.setSelectedSections(\n // use the current view or `0` when the range position has just been swapped\n previousRangePosition.current === rangePosition ? currentView : 0);\n previousRangePosition.current = rangePosition;\n }, [rangePosition, open, currentView, startFieldRef, endFieldRef]);\n const openRangeStartSelection = event => {\n event.stopPropagation();\n onRangePositionChange('start');\n if (!readOnly && !disableOpenPicker) {\n actions.onOpen(event);\n }\n };\n const openRangeEndSelection = event => {\n event.stopPropagation();\n onRangePositionChange('end');\n if (!readOnly && !disableOpenPicker) {\n actions.onOpen(event);\n }\n };\n const handleFocusStart = () => {\n if (open) {\n onRangePositionChange('start');\n if (previousRangePosition.current !== 'start' && initialView) {\n onViewChange?.(initialView);\n }\n }\n };\n const handleFocusEnd = () => {\n if (open) {\n onRangePositionChange('end');\n if (previousRangePosition.current !== 'end' && initialView) {\n onViewChange?.(initialView);\n }\n }\n };\n const slots = _extends({\n textField: pickerSlots?.textField,\n root: pickerSlots?.fieldRoot,\n separator: pickerSlots?.fieldSeparator\n }, fieldProps.slots);\n const slotProps = _extends({}, fieldProps.slotProps, {\n textField: ownerState => {\n const resolvedComponentProps = resolveComponentProps(pickerSlotProps?.textField, ownerState);\n let textFieldProps;\n let InputProps;\n if (ownerState.position === 'start') {\n textFieldProps = _extends({\n label: inLocaleText?.start ?? translations.start,\n onKeyDown: onSpaceOrEnter(openRangeStartSelection),\n onFocus: handleFocusStart,\n focused: open ? rangePosition === 'start' : undefined\n }, !readOnly && !fieldProps.disabled && {\n onClick: openRangeStartSelection\n }, wrapperVariant === 'mobile' && {\n readOnly: true\n });\n if (anchorRef) {\n InputProps = _extends({}, resolvedComponentProps?.InputProps, {\n ref: anchorRef\n });\n }\n } else {\n textFieldProps = _extends({\n label: inLocaleText?.end ?? translations.end,\n onKeyDown: onSpaceOrEnter(openRangeEndSelection),\n onFocus: handleFocusEnd,\n focused: open ? rangePosition === 'end' : undefined\n }, !readOnly && !fieldProps.disabled && {\n onClick: openRangeEndSelection\n }, wrapperVariant === 'mobile' && {\n readOnly: true\n });\n InputProps = resolvedComponentProps?.InputProps;\n }\n return _extends({}, labelId != null && {\n id: `${labelId}-${ownerState.position}`\n }, textFieldProps, resolveComponentProps(pickerSlotProps?.textField, ownerState), {\n InputProps\n });\n },\n root: ownerState => {\n const rootProps = {\n onBlur\n };\n return _extends({}, rootProps, resolveComponentProps(pickerSlotProps?.fieldRoot, ownerState));\n },\n separator: pickerSlotProps?.fieldSeparator\n });\n\n /* TODO: remove this when a clearable behavior for multiple input range fields is implemented */\n const _ref = fieldProps,\n restFieldProps = _objectWithoutPropertiesLoose(_ref, _excluded);\n const enrichedFieldProps = _extends({}, restFieldProps, {\n unstableStartFieldRef: handleStartFieldRef,\n unstableEndFieldRef: handleEndFieldRef,\n slots,\n slotProps\n });\n return enrichedFieldProps;\n};\nconst useSingleInputFieldSlotProps = ({\n wrapperVariant,\n open,\n actions,\n readOnly,\n labelId,\n disableOpenPicker,\n label,\n onBlur,\n rangePosition,\n onRangePositionChange,\n startFieldRef,\n endFieldRef,\n pickerSlots,\n pickerSlotProps,\n fieldProps,\n anchorRef,\n currentView\n}) => {\n const handleFieldRef = useForkRef(fieldProps.unstableFieldRef, startFieldRef, endFieldRef);\n React.useEffect(() => {\n if (!open || !startFieldRef.current) {\n return;\n }\n if (startFieldRef.current.isFieldFocused()) {\n return;\n }\n\n // bring back focus to the field with the current view section selected\n if (currentView) {\n const sections = startFieldRef.current.getSections().map(section => section.type);\n const newSelectedSection = rangePosition === 'start' ? sections.indexOf(currentView) : sections.lastIndexOf(currentView);\n startFieldRef.current?.focusField(newSelectedSection);\n }\n }, [rangePosition, open, currentView, startFieldRef]);\n const updateRangePosition = () => {\n if (!startFieldRef.current?.isFieldFocused()) {\n return;\n }\n const sections = startFieldRef.current.getSections();\n const activeSectionIndex = startFieldRef.current?.getActiveSectionIndex();\n const domRangePosition = activeSectionIndex == null || activeSectionIndex < sections.length / 2 ? 'start' : 'end';\n if (domRangePosition != null && domRangePosition !== rangePosition) {\n onRangePositionChange(domRangePosition);\n }\n };\n const handleSelectedSectionsChange = useEventCallback(selectedSection => {\n setTimeout(updateRangePosition);\n fieldProps.onSelectedSectionsChange?.(selectedSection);\n });\n const openPicker = event => {\n event.stopPropagation();\n if (!readOnly && !disableOpenPicker) {\n actions.onOpen(event);\n }\n };\n const slots = _extends({}, fieldProps.slots, {\n textField: pickerSlots?.textField,\n clearButton: pickerSlots?.clearButton,\n clearIcon: pickerSlots?.clearIcon\n });\n const slotProps = _extends({}, fieldProps.slotProps, {\n textField: pickerSlotProps?.textField,\n clearButton: pickerSlots?.clearButton,\n clearIcon: pickerSlots?.clearIcon\n });\n const enrichedFieldProps = _extends({}, fieldProps, {\n slots,\n slotProps,\n label,\n unstableFieldRef: handleFieldRef,\n onKeyDown: onSpaceOrEnter(openPicker, fieldProps.onKeyDown),\n onSelectedSectionsChange: handleSelectedSectionsChange,\n onBlur,\n InputProps: _extends({\n ref: anchorRef\n }, fieldProps?.InputProps),\n focused: open ? true : undefined\n }, labelId != null && {\n id: labelId\n }, wrapperVariant === 'mobile' && {\n readOnly: true\n }, !readOnly && !fieldProps.disabled && {\n onClick: openPicker\n });\n return enrichedFieldProps;\n};\nexport const useEnrichedRangePickerFieldProps = params => {\n /* eslint-disable react-hooks/rules-of-hooks */\n if (process.env.NODE_ENV !== 'production') {\n const fieldTypeRef = React.useRef(params.fieldType);\n if (params.fieldType !== fieldTypeRef.current) {\n console.error('Should not switch between a multi input field and a single input field on a range picker.');\n }\n }\n if (params.fieldType === 'multi-input') {\n return useMultiInputFieldSlotProps(params);\n }\n return useSingleInputFieldSlotProps(params);\n /* eslint-enable react-hooks/rules-of-hooks */\n};","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { useLicenseVerifier } from '@mui/x-license';\nimport { PickersLayout } from '@mui/x-date-pickers/PickersLayout';\nimport { executeInTheNextEventLoopTick, getActiveElement, usePicker, PickersPopper, PickersProvider } from '@mui/x-date-pickers/internals';\nimport { useEnrichedRangePickerFieldProps } from \"../useEnrichedRangePickerFieldProps.js\";\nimport { getReleaseInfo } from \"../../utils/releaseInfo.js\";\nimport { useRangePosition } from \"../useRangePosition.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst releaseInfo = getReleaseInfo();\nexport const useDesktopRangePicker = _ref => {\n let {\n props\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n useLicenseVerifier('x-date-pickers-pro', releaseInfo);\n const {\n slots,\n slotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n inputRef,\n name,\n readOnly,\n disabled,\n autoFocus,\n disableOpenPicker,\n localeText,\n reduceAnimations\n } = props;\n const fieldContainerRef = React.useRef(null);\n const anchorRef = React.useRef(null);\n const popperRef = React.useRef(null);\n const startFieldRef = React.useRef(null);\n const endFieldRef = React.useRef(null);\n const initialView = React.useRef(props.openTo ?? null);\n const fieldType = slots.field.fieldType ?? 'multi-input';\n const {\n rangePosition,\n onRangePositionChange\n } = useRangePosition(props, fieldType === 'single-input' ? startFieldRef : undefined);\n const {\n open,\n actions,\n layoutProps,\n renderCurrentView,\n shouldRestoreFocus,\n fieldProps: pickerFieldProps,\n contextValue\n } = usePicker(_extends({}, pickerParams, {\n props,\n wrapperVariant: 'desktop',\n autoFocusView: false,\n fieldRef: rangePosition === 'start' ? startFieldRef : endFieldRef,\n additionalViewProps: {\n rangePosition,\n onRangePositionChange\n }\n }));\n React.useEffect(() => {\n if (layoutProps.view) {\n initialView.current = layoutProps.view;\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n const handleBlur = () => {\n executeInTheNextEventLoopTick(() => {\n if (fieldContainerRef.current?.contains(getActiveElement(document)) || popperRef.current?.contains(getActiveElement(document))) {\n return;\n }\n actions.onDismiss();\n });\n };\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: slotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, {\n readOnly,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n autoFocus: autoFocus && !props.open,\n ref: fieldContainerRef\n }, fieldType === 'single-input' ? {\n inputRef,\n name\n } : {}),\n ownerState: props\n });\n const enrichedFieldProps = useEnrichedRangePickerFieldProps({\n wrapperVariant: 'desktop',\n fieldType,\n open,\n actions,\n readOnly,\n disableOpenPicker,\n label,\n localeText,\n onBlur: handleBlur,\n rangePosition,\n onRangePositionChange,\n pickerSlotProps: slotProps,\n pickerSlots: slots,\n fieldProps,\n anchorRef,\n startFieldRef,\n endFieldRef,\n currentView: layoutProps.view !== props.openTo ? layoutProps.view : undefined,\n initialView: initialView.current ?? undefined,\n onViewChange: layoutProps.onViewChange\n });\n const slotPropsForLayout = _extends({}, slotProps, {\n tabs: _extends({}, slotProps?.tabs, {\n rangePosition,\n onRangePositionChange\n }),\n toolbar: _extends({}, slotProps?.toolbar, {\n rangePosition,\n onRangePositionChange\n })\n });\n const Layout = slots?.layout ?? PickersLayout;\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, enrichedFieldProps)), /*#__PURE__*/_jsx(PickersPopper, _extends({\n role: \"tooltip\",\n placement: \"bottom-start\",\n containerRef: popperRef,\n anchorEl: anchorRef.current,\n onBlur: handleBlur\n }, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n shouldRestoreFocus: shouldRestoreFocus,\n reduceAnimations: reduceAnimations,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotPropsForLayout,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { extractValidationProps } from '@mui/x-date-pickers/validation';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { rangeValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useDateRangePickerDefaultizedProps } from \"../DateRangePicker/shared.js\";\nimport { renderDateRangeViewCalendar } from \"../dateRangeViewRenderers/index.js\";\nimport { MultiInputDateRangeField } from \"../MultiInputDateRangeField/index.js\";\nimport { useDesktopRangePicker } from \"../internals/hooks/useDesktopRangePicker/index.js\";\nimport { validateDateRange } from \"../validation/index.js\";\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DesktopDateRangePicker API](https://mui.com/x/api/date-pickers/desktop-date-range-picker/)\n */\nconst DesktopDateRangePicker = /*#__PURE__*/React.forwardRef(function DesktopDateRangePicker(inProps, ref) {\n // Props with the default values common to all date time pickers\n const defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiDesktopDateRangePicker');\n const viewRenderers = _extends({\n day: renderDateRangeViewCalendar\n }, defaultizedProps.viewRenderers);\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n calendars: defaultizedProps.calendars ?? 2,\n views: ['day'],\n openTo: 'day',\n slots: _extends({\n field: MultiInputDateRangeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: true\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useDesktopRangePicker({\n props,\n valueManager: rangeValueManager,\n valueType: 'date',\n validator: validateDateRange\n });\n return renderPicker();\n});\nDesktopDateRangePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * The number of calendars to render on **desktop**.\n * @default 2\n */\n calendars: PropTypes.oneOf([1, 2, 3]),\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Position the current month is rendered in.\n * @default 1\n */\n currentMonthCalendarPosition: PropTypes.oneOf([1, 2, 3]),\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The initial position in the edited date range.\n * Used when the component is not controlled.\n * @default 'start'\n */\n defaultRangePosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.arrayOf(PropTypes.object),\n /**\n * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.\n * @default false\n */\n disableAutoMonthSwitching: PropTypes.bool,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, editing dates by dragging is disabled.\n * @default false\n */\n disableDragEditing: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n * Ignored if the field has several inputs.\n */\n inputRef: refType,\n /**\n * The label content.\n * Ignored if the field has several inputs.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Name attribute used by the `input` element in the Field.\n * Ignored if the field has several inputs.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the range position changes.\n * @param {RangePosition} rangePosition The new range position.\n */\n onRangePositionChange: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The position in the currently edited date range.\n * Used when the component position is controlled.\n */\n rangePosition: PropTypes.oneOf(['end', 'start']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component rendered on the \"day\" view when `props.loading` is true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => \"...\"\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @param {string} position The date to test, 'start' or 'end'.\n * @returns {boolean} Returns `true` if the date should be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.arrayOf(PropTypes.object),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func\n })\n};\nexport { DesktopDateRangePicker };","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"props\"];\nimport * as React from 'react';\nimport useSlotProps from '@mui/utils/useSlotProps';\nimport { useLicenseVerifier } from '@mui/x-license';\nimport { PickersLayout } from '@mui/x-date-pickers/PickersLayout';\nimport { usePicker, PickersModalDialog, PickersProvider } from '@mui/x-date-pickers/internals';\nimport { usePickersTranslations } from '@mui/x-date-pickers/hooks';\nimport useId from '@mui/utils/useId';\nimport { useEnrichedRangePickerFieldProps } from \"../useEnrichedRangePickerFieldProps.js\";\nimport { getReleaseInfo } from \"../../utils/releaseInfo.js\";\nimport { useRangePosition } from \"../useRangePosition.js\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst releaseInfo = getReleaseInfo();\nexport const useMobileRangePicker = _ref => {\n let {\n props\n } = _ref,\n pickerParams = _objectWithoutPropertiesLoose(_ref, _excluded);\n useLicenseVerifier('x-date-pickers-pro', releaseInfo);\n const {\n slots,\n slotProps: innerSlotProps,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone,\n label,\n inputRef,\n name,\n readOnly,\n disabled,\n disableOpenPicker,\n localeText\n } = props;\n const startFieldRef = React.useRef(null);\n const endFieldRef = React.useRef(null);\n const fieldType = slots.field.fieldType ?? 'multi-input';\n const {\n rangePosition,\n onRangePositionChange\n } = useRangePosition(props, fieldType === 'single-input' ? startFieldRef : undefined);\n const labelId = useId();\n const contextTranslations = usePickersTranslations();\n const {\n open,\n actions,\n layoutProps,\n renderCurrentView,\n fieldProps: pickerFieldProps,\n contextValue\n } = usePicker(_extends({}, pickerParams, {\n props,\n wrapperVariant: 'mobile',\n autoFocusView: true,\n fieldRef: rangePosition === 'start' ? startFieldRef : endFieldRef,\n additionalViewProps: {\n rangePosition,\n onRangePositionChange\n }\n }));\n const Field = slots.field;\n const fieldProps = useSlotProps({\n elementType: Field,\n externalSlotProps: innerSlotProps?.field,\n additionalProps: _extends({}, pickerFieldProps, {\n readOnly: readOnly ?? true,\n disabled,\n className,\n sx,\n format,\n formatDensity,\n enableAccessibleFieldDOMStructure,\n selectedSections,\n onSelectedSectionsChange,\n timezone\n }, fieldType === 'single-input' ? {\n inputRef,\n name\n } : {}),\n ownerState: props\n });\n const isToolbarHidden = innerSlotProps?.toolbar?.hidden ?? false;\n const enrichedFieldProps = useEnrichedRangePickerFieldProps({\n wrapperVariant: 'mobile',\n fieldType,\n open,\n actions,\n readOnly,\n labelId,\n disableOpenPicker,\n label,\n localeText,\n rangePosition,\n onRangePositionChange,\n pickerSlots: slots,\n pickerSlotProps: innerSlotProps,\n fieldProps,\n startFieldRef,\n endFieldRef\n });\n const slotPropsForLayout = _extends({}, innerSlotProps, {\n tabs: _extends({}, innerSlotProps?.tabs, {\n rangePosition,\n onRangePositionChange\n }),\n toolbar: _extends({}, innerSlotProps?.toolbar, {\n titleId: labelId,\n rangePosition,\n onRangePositionChange\n })\n });\n const Layout = slots?.layout ?? PickersLayout;\n const finalLocaleText = _extends({}, contextTranslations, localeText);\n let labelledById = pickerParams.valueType === 'date-time' ? `${labelId}-start-toolbar ${labelId}-end-toolbar` : labelId;\n if (isToolbarHidden) {\n const labels = [];\n if (fieldType === 'multi-input') {\n if (finalLocaleText.start) {\n labels.push(`${labelId}-start-label`);\n }\n if (finalLocaleText.end) {\n labels.push(`${labelId}-end-label`);\n }\n } else if (label != null) {\n labels.push(`${labelId}-label`);\n }\n labelledById = labels.length > 0 ? labels.join(' ') : undefined;\n }\n const slotProps = _extends({}, innerSlotProps, {\n mobilePaper: _extends({\n 'aria-labelledby': labelledById\n }, innerSlotProps?.mobilePaper)\n });\n const renderPicker = () => /*#__PURE__*/_jsxs(PickersProvider, {\n contextValue: contextValue,\n localeText: localeText,\n children: [/*#__PURE__*/_jsx(Field, _extends({}, enrichedFieldProps)), /*#__PURE__*/_jsx(PickersModalDialog, _extends({}, actions, {\n open: open,\n slots: slots,\n slotProps: slotProps,\n children: /*#__PURE__*/_jsx(Layout, _extends({}, layoutProps, slotProps?.layout, {\n slots: slots,\n slotProps: slotPropsForLayout,\n children: renderCurrentView()\n }))\n }))]\n });\n return {\n renderPicker\n };\n};","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { extractValidationProps } from '@mui/x-date-pickers/validation';\nimport resolveComponentProps from '@mui/utils/resolveComponentProps';\nimport { refType } from '@mui/utils';\nimport { rangeValueManager } from \"../internals/utils/valueManagers.js\";\nimport { useDateRangePickerDefaultizedProps } from \"../DateRangePicker/shared.js\";\nimport { renderDateRangeViewCalendar } from \"../dateRangeViewRenderers/index.js\";\nimport { MultiInputDateRangeField } from \"../MultiInputDateRangeField/index.js\";\nimport { useMobileRangePicker } from \"../internals/hooks/useMobileRangePicker/index.js\";\nimport { validateDateRange } from \"../validation/index.js\";\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [MobileDateRangePicker API](https://mui.com/x/api/date-pickers/mobile-date-range-picker/)\n */\nconst MobileDateRangePicker = /*#__PURE__*/React.forwardRef(function MobileDateRangePicker(inProps, ref) {\n // Props with the default values common to all date time pickers\n const defaultizedProps = useDateRangePickerDefaultizedProps(inProps, 'MuiMobileDateRangePicker');\n const viewRenderers = _extends({\n day: renderDateRangeViewCalendar\n }, defaultizedProps.viewRenderers);\n const props = _extends({}, defaultizedProps, {\n viewRenderers,\n // Force one calendar on mobile to avoid layout issues\n calendars: 1,\n views: ['day'],\n openTo: 'day',\n slots: _extends({\n field: MultiInputDateRangeField\n }, defaultizedProps.slots),\n slotProps: _extends({}, defaultizedProps.slotProps, {\n field: ownerState => _extends({}, resolveComponentProps(defaultizedProps.slotProps?.field, ownerState), extractValidationProps(defaultizedProps), {\n ref\n }),\n toolbar: _extends({\n hidden: false\n }, defaultizedProps.slotProps?.toolbar)\n })\n });\n const {\n renderPicker\n } = useMobileRangePicker({\n props,\n valueManager: rangeValueManager,\n valueType: 'date',\n validator: validateDateRange\n });\n return renderPicker();\n});\nMobileDateRangePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Position the current month is rendered in.\n * @default 1\n */\n currentMonthCalendarPosition: PropTypes.oneOf([1, 2, 3]),\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The initial position in the edited date range.\n * Used when the component is not controlled.\n * @default 'start'\n */\n defaultRangePosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.arrayOf(PropTypes.object),\n /**\n * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.\n * @default false\n */\n disableAutoMonthSwitching: PropTypes.bool,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, editing dates by dragging is disabled.\n * @default false\n */\n disableDragEditing: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n * Ignored if the field has several inputs.\n */\n inputRef: refType,\n /**\n * The label content.\n * Ignored if the field has several inputs.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Name attribute used by the `input` element in the Field.\n * Ignored if the field has several inputs.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the range position changes.\n * @param {RangePosition} rangePosition The new range position.\n */\n onRangePositionChange: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The position in the currently edited date range.\n * Used when the component position is controlled.\n */\n rangePosition: PropTypes.oneOf(['end', 'start']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component rendered on the \"day\" view when `props.loading` is true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => \"...\"\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @param {string} position The date to test, 'start' or 'end'.\n * @returns {boolean} Returns `true` if the date should be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.arrayOf(PropTypes.object),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func\n })\n};\nexport { MobileDateRangePicker };","'use client';\n\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nconst _excluded = [\"desktopModeMediaQuery\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport useMediaQuery from '@mui/material/useMediaQuery';\nimport { useThemeProps } from '@mui/material/styles';\nimport { refType } from '@mui/utils';\nimport { DesktopDateRangePicker } from \"../DesktopDateRangePicker/index.js\";\nimport { MobileDateRangePicker } from \"../MobileDateRangePicker/index.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\n/**\n * Demos:\n *\n * - [DateRangePicker](https://mui.com/x/react-date-pickers/date-range-picker/)\n * - [Validation](https://mui.com/x/react-date-pickers/validation/)\n *\n * API:\n *\n * - [DateRangePicker API](https://mui.com/x/api/date-pickers/date-range-picker/)\n */\nconst DateRangePicker = /*#__PURE__*/React.forwardRef(function DateRangePicker(inProps, ref) {\n const props = useThemeProps({\n props: inProps,\n name: 'MuiDateRangePicker'\n });\n const {\n desktopModeMediaQuery = '@media (pointer: fine)'\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n\n // defaults to `true` in environments where `window.matchMedia` would not be available (i.e. test/jsdom)\n const isDesktop = useMediaQuery(desktopModeMediaQuery, {\n defaultMatches: true\n });\n if (isDesktop) {\n return /*#__PURE__*/_jsx(DesktopDateRangePicker, _extends({\n ref: ref\n }, other));\n }\n return /*#__PURE__*/_jsx(MobileDateRangePicker, _extends({\n ref: ref\n }, other));\n});\nprocess.env.NODE_ENV !== \"production\" ? DateRangePicker.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 * If `true`, the main element is focused during the first mount.\n * This main element is:\n * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).\n * - the `input` element if there is a field rendered.\n */\n autoFocus: PropTypes.bool,\n /**\n * The number of calendars to render on **desktop**.\n * @default 2\n */\n calendars: PropTypes.oneOf([1, 2, 3]),\n className: PropTypes.string,\n /**\n * If `true`, the popover or modal will close after submitting the full date.\n * @default `true` for desktop, `false` for mobile (based on the chosen wrapper and `desktopModeMediaQuery` prop).\n */\n closeOnSelect: PropTypes.bool,\n /**\n * Position the current month is rendered in.\n * @default 1\n */\n currentMonthCalendarPosition: PropTypes.oneOf([1, 2, 3]),\n /**\n * Formats the day of week displayed in the calendar header.\n * @param {TDate} date The date of the day of week provided by the adapter.\n * @returns {string} The name to display.\n * @default (date: TDate) => adapter.format(date, 'weekdayShort').charAt(0).toUpperCase()\n */\n dayOfWeekFormatter: PropTypes.func,\n /**\n * The initial position in the edited date range.\n * Used when the component is not controlled.\n * @default 'start'\n */\n defaultRangePosition: PropTypes.oneOf(['end', 'start']),\n /**\n * The default value.\n * Used when the component is not controlled.\n */\n defaultValue: PropTypes.arrayOf(PropTypes.object),\n /**\n * CSS media query when `Mobile` mode will be changed to `Desktop`.\n * @default '@media (pointer: fine)'\n * @example '@media (min-width: 720px)' or theme.breakpoints.up(\"sm\")\n */\n desktopModeMediaQuery: PropTypes.string,\n /**\n * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.\n * @default false\n */\n disableAutoMonthSwitching: PropTypes.bool,\n /**\n * If `true`, the picker and text field are disabled.\n * @default false\n */\n disabled: PropTypes.bool,\n /**\n * If `true`, editing dates by dragging is disabled.\n * @default false\n */\n disableDragEditing: PropTypes.bool,\n /**\n * If `true`, disable values after the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disableFuture: PropTypes.bool,\n /**\n * If `true`, today's date is rendering without highlighting with circle.\n * @default false\n */\n disableHighlightToday: PropTypes.bool,\n /**\n * If `true`, the open picker button will not be rendered (renders only the field).\n * @default false\n */\n disableOpenPicker: PropTypes.bool,\n /**\n * If `true`, disable values before the current date for date components, time for time components and both for date time components.\n * @default false\n */\n disablePast: PropTypes.bool,\n /**\n * If `true`, the week number will be display in the calendar.\n */\n displayWeekNumber: PropTypes.bool,\n /**\n * @default false\n */\n enableAccessibleFieldDOMStructure: PropTypes.any,\n /**\n * The day view will show as many weeks as needed after the end of the current month to match this value.\n * Put it to 6 to have a fixed number of weeks in Gregorian calendars\n */\n fixedWeekNumber: PropTypes.number,\n /**\n * Format of the date when rendered in the input(s).\n * Defaults to localized format based on the used `views`.\n */\n format: PropTypes.string,\n /**\n * Density of the format when rendered in the input.\n * Setting `formatDensity` to `\"spacious\"` will add a space before and after each `/`, `-` and `.` character.\n * @default \"dense\"\n */\n formatDensity: PropTypes.oneOf(['dense', 'spacious']),\n /**\n * Pass a ref to the `input` element.\n * Ignored if the field has several inputs.\n */\n inputRef: refType,\n /**\n * The label content.\n * Ignored if the field has several inputs.\n */\n label: PropTypes.node,\n /**\n * If `true`, calls `renderLoading` instead of rendering the day calendar.\n * Can be used to preload information and show it in calendar.\n * @default false\n */\n loading: PropTypes.bool,\n /**\n * Locale for components texts.\n * Allows overriding texts coming from `LocalizationProvider` and `theme`.\n */\n localeText: PropTypes.object,\n /**\n * Maximal selectable date.\n * @default 2099-12-31\n */\n maxDate: PropTypes.object,\n /**\n * Minimal selectable date.\n * @default 1900-01-01\n */\n minDate: PropTypes.object,\n /**\n * Name attribute used by the `input` element in the Field.\n * Ignored if the field has several inputs.\n */\n name: PropTypes.string,\n /**\n * Callback fired when the value is accepted.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The value that was just accepted.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onAccept: PropTypes.func,\n /**\n * Callback fired when the value changes.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @param {TValue} value The new value.\n * @param {FieldChangeHandlerContext} context The context containing the validation result of the current value.\n */\n onChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be closed.\n * Use in controlled mode (see `open`).\n */\n onClose: PropTypes.func,\n /**\n * Callback fired when the error associated with the current value changes.\n * When a validation error is detected, the `error` parameter contains a non-null value.\n * This can be used to render an appropriate form error.\n * @template TError The validation error type. It will be either `string` or a `null`. It can be in `[start, end]` format in case of range value.\n * @template TValue The value type. It will be the same type as `value` or `null`. It can be in `[start, end]` format in case of range value.\n * @param {TError} error The reason why the current value is not valid.\n * @param {TValue} value The value associated with the error.\n */\n onError: PropTypes.func,\n /**\n * Callback fired on month change.\n * @template TDate\n * @param {TDate} month The new month.\n */\n onMonthChange: PropTypes.func,\n /**\n * Callback fired when the popup requests to be opened.\n * Use in controlled mode (see `open`).\n */\n onOpen: PropTypes.func,\n /**\n * Callback fired when the range position changes.\n * @param {RangePosition} rangePosition The new range position.\n */\n onRangePositionChange: PropTypes.func,\n /**\n * Callback fired when the selected sections change.\n * @param {FieldSelectedSections} newValue The new selected sections.\n */\n onSelectedSectionsChange: PropTypes.func,\n /**\n * Control the popup or dialog open state.\n * @default false\n */\n open: PropTypes.bool,\n /**\n * The position in the currently edited date range.\n * Used when the component position is controlled.\n */\n rangePosition: PropTypes.oneOf(['end', 'start']),\n readOnly: PropTypes.bool,\n /**\n * If `true`, disable heavy animations.\n * @default `@media(prefers-reduced-motion: reduce)` || `navigator.userAgent` matches Android <10 or iOS <13\n */\n reduceAnimations: PropTypes.bool,\n /**\n * The date used to generate the new value when both `value` and `defaultValue` are empty.\n * @default The closest valid date-time using the validation props, except callbacks like `shouldDisable<...>`.\n */\n referenceDate: PropTypes.object,\n /**\n * Component rendered on the \"day\" view when `props.loading` is true.\n * @returns {React.ReactNode} The node to render when loading.\n * @default () => \"...\"\n */\n renderLoading: PropTypes.func,\n /**\n * The currently selected sections.\n * This prop accepts four formats:\n * 1. If a number is provided, the section at this index will be selected.\n * 2. If a string of type `FieldSectionType` is provided, the first section with that name will be selected.\n * 3. If `\"all\"` is provided, all the sections will be selected.\n * 4. If `null` is provided, no section will be selected.\n * If not provided, the selected sections will be handled internally.\n */\n selectedSections: PropTypes.oneOfType([PropTypes.oneOf(['all', 'day', 'empty', 'hours', 'meridiem', 'minutes', 'month', 'seconds', 'weekDay', 'year']), PropTypes.number]),\n /**\n * Disable specific date.\n *\n * Warning: This function can be called multiple times (for example when rendering date calendar, checking if focus can be moved to a certain date, etc.). Expensive computations can impact performance.\n *\n * @template TDate\n * @param {TDate} day The date to test.\n * @param {string} position The date to test, 'start' or 'end'.\n * @returns {boolean} Returns `true` if the date should be disabled.\n */\n shouldDisableDate: PropTypes.func,\n /**\n * If `true`, days outside the current month are rendered:\n *\n * - if `fixedWeekNumber` is defined, renders days to have the weeks requested.\n *\n * - if `fixedWeekNumber` is not defined, renders day to fill the first and last week of the current month.\n *\n * - ignored if `calendars` equals more than `1` on range pickers.\n * @default false\n */\n showDaysOutsideCurrentMonth: PropTypes.bool,\n /**\n * The props used for each component slot.\n * @default {}\n */\n slotProps: PropTypes.object,\n /**\n * Overridable component slots.\n * @default {}\n */\n slots: 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 * Choose which timezone to use for the value.\n * Example: \"default\", \"system\", \"UTC\", \"America/New_York\".\n * If you pass values from other timezones to some props, they will be converted to this timezone before being used.\n * @see See the {@link https://mui.com/x/react-date-pickers/timezone/ timezones documentation} for more details.\n * @default The timezone of the `value` or `defaultValue` prop is defined, 'default' otherwise.\n */\n timezone: PropTypes.string,\n /**\n * The selected value.\n * Used when the component is controlled.\n */\n value: PropTypes.arrayOf(PropTypes.object),\n /**\n * Define custom view renderers for each section.\n * If `null`, the section will only have field editing.\n * If `undefined`, internally defined view will be used.\n */\n viewRenderers: PropTypes.shape({\n day: PropTypes.func\n })\n} : void 0;\nexport { DateRangePicker };","import { useTheme as be, Box as F, Skeleton as Ce, Tab as Jt, Card as ir, GlobalStyles as i1, TextareaAutosize as Kt, InputAdornment as a1, IconButton as Ae, SvgIcon as we, TextField as R1, Toolbar as Qt, Stack as Z, AppBar as Y1, Typography as X, List as v1, ListItem as Le, Chip as o1, useMediaQuery as s1, SwipeableDrawer as en, Alert as ar, alpha as Ee, Button as or, CircularProgress as rt, Modal as rn, Fade as tn, Divider as tt, Collapse as Ar, Tooltip as _r, CardContent as nn, Avatar as He, Menu as an, MenuItem as on, ListItemIcon as sn, ListItemText as Be, Backdrop as nt, responsiveFontSizes as sr, createTheme as Ze, getOverlayAlpha as U1, css as w1, CssBaseline as ln, ThemeProvider as cn, InputLabel as dn, ListItemButton as G1, Checkbox as X1, ListItemAvatar as pn, Autocomplete as un, Badge as fn, Paper as lr, Slide as hn, Popper as gn, DialogContent as Cn, DialogActions as xn, Dialog as bn, DialogContentText as yn, Snackbar as mn } from \"@mui/material\";\nexport * from \"@mui/material\";\nimport * as Te from \"react\";\nimport it, { createContext as k1, useContext as _e, useCallback as pe, forwardRef as ue, useState as ie, useEffect as T1, cloneElement as cr, isValidElement as A1, memo as at, useMemo as _1, useRef as E1, Children as vn, useImperativeHandle as wn } from \"react\";\nimport { createElement as En } from \"@emotion/react\";\nconst Mn = {\n disabledPermissions: void 0,\n permissions: void 0,\n setPermissions: () => {\n }\n}, ot = k1(Mn), Lr = (e, r) => e === \"\" || !r.length ? !1 : r.some((t) => e === t), Sn = () => {\n const { permissions: e, setPermissions: r, disabledPermissions: t } = _e(ot), i = pe(\n (o, l) => {\n const d = [...l || [], ...e || []].filter((u) => !(t != null && t.includes(u)));\n return d ? Array.isArray(o) ? o.some((u) => Lr(u, d)) : Lr(o, d) : !1;\n },\n [t, e]\n );\n return {\n appendPermissions: pe(\n (o) => {\n r((l) => [...l || [], o]);\n },\n [r]\n ),\n disabledPermissions: t,\n hasPermission: i,\n permissions: e,\n setPermissions: r\n };\n}, Ba = ({ children: e, fallback: r, name: t, additionalPermissions: i }) => {\n const { hasPermission: a } = Sn(), o = a(t, i);\n return o ? e : !o && r ? r : null;\n};\nvar q1 = { exports: {} }, Ke = {};\n/**\n * @license React\n * react-jsx-runtime.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 */\nvar Ir;\nfunction Rn() {\n if (Ir) return Ke;\n Ir = 1;\n var e = it, r = Symbol.for(\"react.element\"), t = Symbol.for(\"react.fragment\"), i = Object.prototype.hasOwnProperty, a = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, o = { key: !0, ref: !0, __self: !0, __source: !0 };\n function l(c, d, u) {\n var h, x = {}, b = null, g = null;\n u !== void 0 && (b = \"\" + u), d.key !== void 0 && (b = \"\" + d.key), d.ref !== void 0 && (g = d.ref);\n for (h in d) i.call(d, h) && !o.hasOwnProperty(h) && (x[h] = d[h]);\n if (c && c.defaultProps) for (h in d = c.defaultProps, d) x[h] === void 0 && (x[h] = d[h]);\n return { $$typeof: r, type: c, key: b, ref: g, props: x, _owner: a.current };\n }\n return Ke.Fragment = t, Ke.jsx = l, Ke.jsxs = l, Ke;\n}\nvar Qe = {};\n/**\n * @license React\n * react-jsx-runtime.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 */\nvar Fr;\nfunction kn() {\n return Fr || (Fr = 1, process.env.NODE_ENV !== \"production\" && function() {\n var e = it, r = Symbol.for(\"react.element\"), t = Symbol.for(\"react.portal\"), i = Symbol.for(\"react.fragment\"), a = Symbol.for(\"react.strict_mode\"), o = Symbol.for(\"react.profiler\"), l = Symbol.for(\"react.provider\"), c = Symbol.for(\"react.context\"), d = Symbol.for(\"react.forward_ref\"), u = Symbol.for(\"react.suspense\"), h = Symbol.for(\"react.suspense_list\"), x = Symbol.for(\"react.memo\"), b = Symbol.for(\"react.lazy\"), g = Symbol.for(\"react.offscreen\"), S = Symbol.iterator, y = \"@@iterator\";\n function f(s) {\n if (s === null || typeof s != \"object\")\n return null;\n var C = S && s[S] || s[y];\n return typeof C == \"function\" ? C : null;\n }\n var m = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n function R(s) {\n {\n for (var C = arguments.length, E = new Array(C > 1 ? C - 1 : 0), L = 1; L < C; L++)\n E[L - 1] = arguments[L];\n w(\"error\", s, E);\n }\n }\n function w(s, C, E) {\n {\n var L = m.ReactDebugCurrentFrame, N = L.getStackAddendum();\n N !== \"\" && (C += \"%s\", E = E.concat([N]));\n var G = E.map(function(V) {\n return String(V);\n });\n G.unshift(\"Warning: \" + C), Function.prototype.apply.call(console[s], console, G);\n }\n }\n var M = !1, p = !1, _ = !1, T = !1, $ = !1, I;\n I = Symbol.for(\"react.module.reference\");\n function J(s) {\n return !!(typeof s == \"string\" || typeof s == \"function\" || s === i || s === o || $ || s === a || s === u || s === h || T || s === g || M || p || _ || typeof s == \"object\" && s !== null && (s.$$typeof === b || s.$$typeof === x || s.$$typeof === l || s.$$typeof === c || s.$$typeof === d || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n s.$$typeof === I || s.getModuleId !== void 0));\n }\n function oe(s, C, E) {\n var L = s.displayName;\n if (L)\n return L;\n var N = C.displayName || C.name || \"\";\n return N !== \"\" ? E + \"(\" + N + \")\" : E;\n }\n function ne(s) {\n return s.displayName || \"Context\";\n }\n function Y(s) {\n if (s == null)\n return null;\n if (typeof s.tag == \"number\" && R(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"), typeof s == \"function\")\n return s.displayName || s.name || null;\n if (typeof s == \"string\")\n return s;\n switch (s) {\n case i:\n return \"Fragment\";\n case t:\n return \"Portal\";\n case o:\n return \"Profiler\";\n case a:\n return \"StrictMode\";\n case u:\n return \"Suspense\";\n case h:\n return \"SuspenseList\";\n }\n if (typeof s == \"object\")\n switch (s.$$typeof) {\n case c:\n var C = s;\n return ne(C) + \".Consumer\";\n case l:\n var E = s;\n return ne(E._context) + \".Provider\";\n case d:\n return oe(s, s.render, \"ForwardRef\");\n case x:\n var L = s.displayName || null;\n return L !== null ? L : Y(s.type) || \"Memo\";\n case b: {\n var N = s, G = N._payload, V = N._init;\n try {\n return Y(V(G));\n } catch {\n return null;\n }\n }\n }\n return null;\n }\n var z = Object.assign, q = 0, ye, me, D, A, U, te, ce;\n function fe() {\n }\n fe.__reactDisabledLog = !0;\n function O1() {\n {\n if (q === 0) {\n ye = console.log, me = console.info, D = console.warn, A = console.error, U = console.group, te = console.groupCollapsed, ce = console.groupEnd;\n var s = {\n configurable: !0,\n enumerable: !0,\n value: fe,\n writable: !0\n };\n Object.defineProperties(console, {\n info: s,\n log: s,\n warn: s,\n error: s,\n group: s,\n groupCollapsed: s,\n groupEnd: s\n });\n }\n q++;\n }\n }\n function V1() {\n {\n if (q--, q === 0) {\n var s = {\n configurable: !0,\n enumerable: !0,\n writable: !0\n };\n Object.defineProperties(console, {\n log: z({}, s, {\n value: ye\n }),\n info: z({}, s, {\n value: me\n }),\n warn: z({}, s, {\n value: D\n }),\n error: z({}, s, {\n value: A\n }),\n group: z({}, s, {\n value: U\n }),\n groupCollapsed: z({}, s, {\n value: te\n }),\n groupEnd: z({}, s, {\n value: ce\n })\n });\n }\n q < 0 && R(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\");\n }\n }\n var Ye = m.ReactCurrentDispatcher, Ue;\n function Oe(s, C, E) {\n {\n if (Ue === void 0)\n try {\n throw Error();\n } catch (N) {\n var L = N.stack.trim().match(/\\n( *(at )?)/);\n Ue = L && L[1] || \"\";\n }\n return `\n` + Ue + s;\n }\n }\n var Ge = !1, Ve;\n {\n var $1 = typeof WeakMap == \"function\" ? WeakMap : Map;\n Ve = new $1();\n }\n function k(s, C) {\n if (!s || Ge)\n return \"\";\n {\n var E = Ve.get(s);\n if (E !== void 0)\n return E;\n }\n var L;\n Ge = !0;\n var N = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var G;\n G = Ye.current, Ye.current = null, O1();\n try {\n if (C) {\n var V = function() {\n throw Error();\n };\n if (Object.defineProperty(V.prototype, \"props\", {\n set: function() {\n throw Error();\n }\n }), typeof Reflect == \"object\" && Reflect.construct) {\n try {\n Reflect.construct(V, []);\n } catch (he) {\n L = he;\n }\n Reflect.construct(s, [], V);\n } else {\n try {\n V.call();\n } catch (he) {\n L = he;\n }\n s.call(V.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (he) {\n L = he;\n }\n s();\n }\n } catch (he) {\n if (he && L && typeof he.stack == \"string\") {\n for (var O = he.stack.split(`\n`), de = L.stack.split(`\n`), Q = O.length - 1, ee = de.length - 1; Q >= 1 && ee >= 0 && O[Q] !== de[ee]; )\n ee--;\n for (; Q >= 1 && ee >= 0; Q--, ee--)\n if (O[Q] !== de[ee]) {\n if (Q !== 1 || ee !== 1)\n do\n if (Q--, ee--, ee < 0 || O[Q] !== de[ee]) {\n var ve = `\n` + O[Q].replace(\" at new \", \" at \");\n return s.displayName && ve.includes(\"\") && (ve = ve.replace(\"\", s.displayName)), typeof s == \"function\" && Ve.set(s, ve), ve;\n }\n while (Q >= 1 && ee >= 0);\n break;\n }\n }\n } finally {\n Ge = !1, Ye.current = G, V1(), Error.prepareStackTrace = N;\n }\n var Pe = s ? s.displayName || s.name : \"\", Fe = Pe ? Oe(Pe) : \"\";\n return typeof s == \"function\" && Ve.set(s, Fe), Fe;\n }\n function Xe(s, C, E) {\n return k(s, !1);\n }\n function $e(s) {\n var C = s.prototype;\n return !!(C && C.isReactComponent);\n }\n function Ie(s, C, E) {\n if (s == null)\n return \"\";\n if (typeof s == \"function\")\n return k(s, $e(s));\n if (typeof s == \"string\")\n return Oe(s);\n switch (s) {\n case u:\n return Oe(\"Suspense\");\n case h:\n return Oe(\"SuspenseList\");\n }\n if (typeof s == \"object\")\n switch (s.$$typeof) {\n case d:\n return Xe(s.render);\n case x:\n return Ie(s.type, C, E);\n case b: {\n var L = s, N = L._payload, G = L._init;\n try {\n return Ie(G(N), C, E);\n } catch {\n }\n }\n }\n return \"\";\n }\n var qe = Object.prototype.hasOwnProperty, Cr = {}, xr = m.ReactDebugCurrentFrame;\n function f1(s) {\n if (s) {\n var C = s._owner, E = Ie(s.type, s._source, C ? C.type : null);\n xr.setExtraStackFrame(E);\n } else\n xr.setExtraStackFrame(null);\n }\n function At(s, C, E, L, N) {\n {\n var G = Function.call.bind(qe);\n for (var V in s)\n if (G(s, V)) {\n var O = void 0;\n try {\n if (typeof s[V] != \"function\") {\n var de = Error((L || \"React class\") + \": \" + E + \" type `\" + V + \"` is invalid; it must be a function, usually from the `prop-types` package, but received `\" + typeof s[V] + \"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\");\n throw de.name = \"Invariant Violation\", de;\n }\n O = s[V](C, V, L, E, null, \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\");\n } catch (Q) {\n O = Q;\n }\n O && !(O instanceof Error) && (f1(N), R(\"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\", L || \"React class\", E, V, typeof O), f1(null)), O instanceof Error && !(O.message in Cr) && (Cr[O.message] = !0, f1(N), R(\"Failed %s type: %s\", E, O.message), f1(null));\n }\n }\n }\n var _t = Array.isArray;\n function D1(s) {\n return _t(s);\n }\n function Lt(s) {\n {\n var C = typeof Symbol == \"function\" && Symbol.toStringTag, E = C && s[Symbol.toStringTag] || s.constructor.name || \"Object\";\n return E;\n }\n }\n function It(s) {\n try {\n return br(s), !1;\n } catch {\n return !0;\n }\n }\n function br(s) {\n return \"\" + s;\n }\n function yr(s) {\n if (It(s))\n return R(\"The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.\", Lt(s)), br(s);\n }\n var Je = m.ReactCurrentOwner, Ft = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n }, mr, vr, P1;\n P1 = {};\n function Ht(s) {\n if (qe.call(s, \"ref\")) {\n var C = Object.getOwnPropertyDescriptor(s, \"ref\").get;\n if (C && C.isReactWarning)\n return !1;\n }\n return s.ref !== void 0;\n }\n function Ot(s) {\n if (qe.call(s, \"key\")) {\n var C = Object.getOwnPropertyDescriptor(s, \"key\").get;\n if (C && C.isReactWarning)\n return !1;\n }\n return s.key !== void 0;\n }\n function Vt(s, C) {\n if (typeof s.ref == \"string\" && Je.current && C && Je.current.stateNode !== C) {\n var E = Y(Je.current.type);\n P1[E] || (R('Component \"%s\" contains the string ref \"%s\". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', Y(Je.current.type), s.ref), P1[E] = !0);\n }\n }\n function $t(s, C) {\n {\n var E = function() {\n mr || (mr = !0, R(\"%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://reactjs.org/link/special-props)\", C));\n };\n E.isReactWarning = !0, Object.defineProperty(s, \"key\", {\n get: E,\n configurable: !0\n });\n }\n }\n function Dt(s, C) {\n {\n var E = function() {\n vr || (vr = !0, R(\"%s: `ref` 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://reactjs.org/link/special-props)\", C));\n };\n E.isReactWarning = !0, Object.defineProperty(s, \"ref\", {\n get: E,\n configurable: !0\n });\n }\n }\n var Pt = function(s, C, E, L, N, G, V) {\n var O = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: r,\n // Built-in properties that belong on the element\n type: s,\n key: C,\n ref: E,\n props: V,\n // Record the component responsible for creating this element.\n _owner: G\n };\n return O._store = {}, Object.defineProperty(O._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: !1\n }), Object.defineProperty(O, \"_self\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: L\n }), Object.defineProperty(O, \"_source\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: N\n }), Object.freeze && (Object.freeze(O.props), Object.freeze(O)), O;\n };\n function Bt(s, C, E, L, N) {\n {\n var G, V = {}, O = null, de = null;\n E !== void 0 && (yr(E), O = \"\" + E), Ot(C) && (yr(C.key), O = \"\" + C.key), Ht(C) && (de = C.ref, Vt(C, N));\n for (G in C)\n qe.call(C, G) && !Ft.hasOwnProperty(G) && (V[G] = C[G]);\n if (s && s.defaultProps) {\n var Q = s.defaultProps;\n for (G in Q)\n V[G] === void 0 && (V[G] = Q[G]);\n }\n if (O || de) {\n var ee = typeof s == \"function\" ? s.displayName || s.name || \"Unknown\" : s;\n O && $t(V, ee), de && Dt(V, ee);\n }\n return Pt(s, O, de, N, L, Je.current, V);\n }\n }\n var B1 = m.ReactCurrentOwner, wr = m.ReactDebugCurrentFrame;\n function De(s) {\n if (s) {\n var C = s._owner, E = Ie(s.type, s._source, C ? C.type : null);\n wr.setExtraStackFrame(E);\n } else\n wr.setExtraStackFrame(null);\n }\n var Z1;\n Z1 = !1;\n function z1(s) {\n return typeof s == \"object\" && s !== null && s.$$typeof === r;\n }\n function Er() {\n {\n if (B1.current) {\n var s = Y(B1.current.type);\n if (s)\n return `\n\nCheck the render method of \\`` + s + \"`.\";\n }\n return \"\";\n }\n }\n function Zt(s) {\n return \"\";\n }\n var Mr = {};\n function zt(s) {\n {\n var C = Er();\n if (!C) {\n var E = typeof s == \"string\" ? s : s.displayName || s.name;\n E && (C = `\n\nCheck the top-level render call using <` + E + \">.\");\n }\n return C;\n }\n }\n function Sr(s, C) {\n {\n if (!s._store || s._store.validated || s.key != null)\n return;\n s._store.validated = !0;\n var E = zt(C);\n if (Mr[E])\n return;\n Mr[E] = !0;\n var L = \"\";\n s && s._owner && s._owner !== B1.current && (L = \" It was passed a child from \" + Y(s._owner.type) + \".\"), De(s), R('Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', E, L), De(null);\n }\n }\n function Rr(s, C) {\n {\n if (typeof s != \"object\")\n return;\n if (D1(s))\n for (var E = 0; E < s.length; E++) {\n var L = s[E];\n z1(L) && Sr(L, C);\n }\n else if (z1(s))\n s._store && (s._store.validated = !0);\n else if (s) {\n var N = f(s);\n if (typeof N == \"function\" && N !== s.entries)\n for (var G = N.call(s), V; !(V = G.next()).done; )\n z1(V.value) && Sr(V.value, C);\n }\n }\n }\n function Nt(s) {\n {\n var C = s.type;\n if (C == null || typeof C == \"string\")\n return;\n var E;\n if (typeof C == \"function\")\n E = C.propTypes;\n else if (typeof C == \"object\" && (C.$$typeof === d || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n C.$$typeof === x))\n E = C.propTypes;\n else\n return;\n if (E) {\n var L = Y(C);\n At(E, s.props, \"prop\", L, s);\n } else if (C.PropTypes !== void 0 && !Z1) {\n Z1 = !0;\n var N = Y(C);\n R(\"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?\", N || \"Unknown\");\n }\n typeof C.getDefaultProps == \"function\" && !C.getDefaultProps.isReactClassApproved && R(\"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.\");\n }\n }\n function Wt(s) {\n {\n for (var C = Object.keys(s.props), E = 0; E < C.length; E++) {\n var L = C[E];\n if (L !== \"children\" && L !== \"key\") {\n De(s), R(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\", L), De(null);\n break;\n }\n }\n s.ref !== null && (De(s), R(\"Invalid attribute `ref` supplied to `React.Fragment`.\"), De(null));\n }\n }\n var kr = {};\n function Tr(s, C, E, L, N, G) {\n {\n var V = J(s);\n if (!V) {\n var O = \"\";\n (s === void 0 || typeof s == \"object\" && s !== null && Object.keys(s).length === 0) && (O += \" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\");\n var de = Zt();\n de ? O += de : O += Er();\n var Q;\n s === null ? Q = \"null\" : D1(s) ? Q = \"array\" : s !== void 0 && s.$$typeof === r ? (Q = \"<\" + (Y(s.type) || \"Unknown\") + \" />\", O = \" Did you accidentally export a JSX literal instead of a component?\") : Q = typeof s, R(\"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\", Q, O);\n }\n var ee = Bt(s, C, E, N, G);\n if (ee == null)\n return ee;\n if (V) {\n var ve = C.children;\n if (ve !== void 0)\n if (L)\n if (D1(ve)) {\n for (var Pe = 0; Pe < ve.length; Pe++)\n Rr(ve[Pe], s);\n Object.freeze && Object.freeze(ve);\n } else\n R(\"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 else\n Rr(ve, s);\n }\n if (qe.call(C, \"key\")) {\n var Fe = Y(s), he = Object.keys(C).filter(function(qt) {\n return qt !== \"key\";\n }), N1 = he.length > 0 ? \"{key: someKey, \" + he.join(\": ..., \") + \": ...}\" : \"{key: someKey}\";\n if (!kr[Fe + N1]) {\n var Xt = he.length > 0 ? \"{\" + he.join(\": ..., \") + \": ...}\" : \"{}\";\n R(`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} />`, N1, Fe, Xt, Fe), kr[Fe + N1] = !0;\n }\n }\n return s === i ? Wt(ee) : Nt(ee), ee;\n }\n }\n function jt(s, C, E) {\n return Tr(s, C, E, !0);\n }\n function Yt(s, C, E) {\n return Tr(s, C, E, !1);\n }\n var Ut = Yt, Gt = jt;\n Qe.Fragment = i, Qe.jsx = Ut, Qe.jsxs = Gt;\n }()), Qe;\n}\nprocess.env.NODE_ENV === \"production\" ? q1.exports = Rn() : q1.exports = kn();\nvar l1 = q1.exports, Tn = !1;\nfunction An(e) {\n if (e.sheet)\n return e.sheet;\n for (var r = 0; r < document.styleSheets.length; r++)\n if (document.styleSheets[r].ownerNode === e)\n return document.styleSheets[r];\n}\nfunction _n(e) {\n var r = document.createElement(\"style\");\n return r.setAttribute(\"data-emotion\", e.key), e.nonce !== void 0 && r.setAttribute(\"nonce\", e.nonce), r.appendChild(document.createTextNode(\"\")), r.setAttribute(\"data-s\", \"\"), r;\n}\nvar Ln = /* @__PURE__ */ function() {\n function e(t) {\n var i = this;\n this._insertTag = function(a) {\n var o;\n i.tags.length === 0 ? i.insertionPoint ? o = i.insertionPoint.nextSibling : i.prepend ? o = i.container.firstChild : o = i.before : o = i.tags[i.tags.length - 1].nextSibling, i.container.insertBefore(a, o), i.tags.push(a);\n }, this.isSpeedy = t.speedy === void 0 ? !Tn : t.speedy, this.tags = [], this.ctr = 0, this.nonce = t.nonce, this.key = t.key, this.container = t.container, this.prepend = t.prepend, this.insertionPoint = t.insertionPoint, this.before = null;\n }\n var r = e.prototype;\n return r.hydrate = function(i) {\n i.forEach(this._insertTag);\n }, r.insert = function(i) {\n this.ctr % (this.isSpeedy ? 65e3 : 1) === 0 && this._insertTag(_n(this));\n var a = this.tags[this.tags.length - 1];\n if (this.isSpeedy) {\n var o = An(a);\n try {\n o.insertRule(i, o.cssRules.length);\n } catch {\n }\n } else\n a.appendChild(document.createTextNode(i));\n this.ctr++;\n }, r.flush = function() {\n this.tags.forEach(function(i) {\n var a;\n return (a = i.parentNode) == null ? void 0 : a.removeChild(i);\n }), this.tags = [], this.ctr = 0;\n }, e;\n}(), se = \"-ms-\", M1 = \"-moz-\", P = \"-webkit-\", st = \"comm\", dr = \"rule\", pr = \"decl\", In = \"@import\", lt = \"@keyframes\", Fn = \"@layer\", Hn = Math.abs, L1 = String.fromCharCode, On = Object.assign;\nfunction Vn(e, r) {\n return ae(e, 0) ^ 45 ? (((r << 2 ^ ae(e, 0)) << 2 ^ ae(e, 1)) << 2 ^ ae(e, 2)) << 2 ^ ae(e, 3) : 0;\n}\nfunction ct(e) {\n return e.trim();\n}\nfunction $n(e, r) {\n return (e = r.exec(e)) ? e[0] : e;\n}\nfunction B(e, r, t) {\n return e.replace(r, t);\n}\nfunction J1(e, r) {\n return e.indexOf(r);\n}\nfunction ae(e, r) {\n return e.charCodeAt(r) | 0;\n}\nfunction c1(e, r, t) {\n return e.slice(r, t);\n}\nfunction Se(e) {\n return e.length;\n}\nfunction ur(e) {\n return e.length;\n}\nfunction h1(e, r) {\n return r.push(e), e;\n}\nfunction Dn(e, r) {\n return e.map(r).join(\"\");\n}\nvar I1 = 1, Ne = 1, dt = 0, ge = 0, re = 0, We = \"\";\nfunction F1(e, r, t, i, a, o, l) {\n return { value: e, root: r, parent: t, type: i, props: a, children: o, line: I1, column: Ne, length: l, return: \"\" };\n}\nfunction e1(e, r) {\n return On(F1(\"\", null, null, \"\", null, null, 0), e, { length: -e.length }, r);\n}\nfunction Pn() {\n return re;\n}\nfunction Bn() {\n return re = ge > 0 ? ae(We, --ge) : 0, Ne--, re === 10 && (Ne = 1, I1--), re;\n}\nfunction xe() {\n return re = ge < dt ? ae(We, ge++) : 0, Ne++, re === 10 && (Ne = 1, I1++), re;\n}\nfunction ke() {\n return ae(We, ge);\n}\nfunction x1() {\n return ge;\n}\nfunction u1(e, r) {\n return c1(We, e, r);\n}\nfunction d1(e) {\n switch (e) {\n case 0:\n case 9:\n case 10:\n case 13:\n case 32:\n return 5;\n case 33:\n case 43:\n case 44:\n case 47:\n case 62:\n case 64:\n case 126:\n case 59:\n case 123:\n case 125:\n return 4;\n case 58:\n return 3;\n case 34:\n case 39:\n case 40:\n case 91:\n return 2;\n case 41:\n case 93:\n return 1;\n }\n return 0;\n}\nfunction pt(e) {\n return I1 = Ne = 1, dt = Se(We = e), ge = 0, [];\n}\nfunction ut(e) {\n return We = \"\", e;\n}\nfunction b1(e) {\n return ct(u1(ge - 1, K1(e === 91 ? e + 2 : e === 40 ? e + 1 : e)));\n}\nfunction Zn(e) {\n for (; (re = ke()) && re < 33; )\n xe();\n return d1(e) > 2 || d1(re) > 3 ? \"\" : \" \";\n}\nfunction zn(e, r) {\n for (; --r && xe() && !(re < 48 || re > 102 || re > 57 && re < 65 || re > 70 && re < 97); )\n ;\n return u1(e, x1() + (r < 6 && ke() == 32 && xe() == 32));\n}\nfunction K1(e) {\n for (; xe(); )\n switch (re) {\n case e:\n return ge;\n case 34:\n case 39:\n e !== 34 && e !== 39 && K1(re);\n break;\n case 40:\n e === 41 && K1(e);\n break;\n case 92:\n xe();\n break;\n }\n return ge;\n}\nfunction Nn(e, r) {\n for (; xe() && e + re !== 57; )\n if (e + re === 84 && ke() === 47)\n break;\n return \"/*\" + u1(r, ge - 1) + \"*\" + L1(e === 47 ? e : xe());\n}\nfunction Wn(e) {\n for (; !d1(ke()); )\n xe();\n return u1(e, ge);\n}\nfunction jn(e) {\n return ut(y1(\"\", null, null, null, [\"\"], e = pt(e), 0, [0], e));\n}\nfunction y1(e, r, t, i, a, o, l, c, d) {\n for (var u = 0, h = 0, x = l, b = 0, g = 0, S = 0, y = 1, f = 1, m = 1, R = 0, w = \"\", M = a, p = o, _ = i, T = w; f; )\n switch (S = R, R = xe()) {\n case 40:\n if (S != 108 && ae(T, x - 1) == 58) {\n J1(T += B(b1(R), \"&\", \"&\\f\"), \"&\\f\") != -1 && (m = -1);\n break;\n }\n case 34:\n case 39:\n case 91:\n T += b1(R);\n break;\n case 9:\n case 10:\n case 13:\n case 32:\n T += Zn(S);\n break;\n case 92:\n T += zn(x1() - 1, 7);\n continue;\n case 47:\n switch (ke()) {\n case 42:\n case 47:\n h1(Yn(Nn(xe(), x1()), r, t), d);\n break;\n default:\n T += \"/\";\n }\n break;\n case 123 * y:\n c[u++] = Se(T) * m;\n case 125 * y:\n case 59:\n case 0:\n switch (R) {\n case 0:\n case 125:\n f = 0;\n case 59 + h:\n m == -1 && (T = B(T, /\\f/g, \"\")), g > 0 && Se(T) - x && h1(g > 32 ? Or(T + \";\", i, t, x - 1) : Or(B(T, \" \", \"\") + \";\", i, t, x - 2), d);\n break;\n case 59:\n T += \";\";\n default:\n if (h1(_ = Hr(T, r, t, u, h, a, c, w, M = [], p = [], x), o), R === 123)\n if (h === 0)\n y1(T, r, _, _, M, o, x, c, p);\n else\n switch (b === 99 && ae(T, 3) === 110 ? 100 : b) {\n case 100:\n case 108:\n case 109:\n case 115:\n y1(e, _, _, i && h1(Hr(e, _, _, 0, 0, a, c, w, a, M = [], x), p), a, p, x, c, i ? M : p);\n break;\n default:\n y1(T, _, _, _, [\"\"], p, 0, c, p);\n }\n }\n u = h = g = 0, y = m = 1, w = T = \"\", x = l;\n break;\n case 58:\n x = 1 + Se(T), g = S;\n default:\n if (y < 1) {\n if (R == 123)\n --y;\n else if (R == 125 && y++ == 0 && Bn() == 125)\n continue;\n }\n switch (T += L1(R), R * y) {\n case 38:\n m = h > 0 ? 1 : (T += \"\\f\", -1);\n break;\n case 44:\n c[u++] = (Se(T) - 1) * m, m = 1;\n break;\n case 64:\n ke() === 45 && (T += b1(xe())), b = ke(), h = x = Se(w = T += Wn(x1())), R++;\n break;\n case 45:\n S === 45 && Se(T) == 2 && (y = 0);\n }\n }\n return o;\n}\nfunction Hr(e, r, t, i, a, o, l, c, d, u, h) {\n for (var x = a - 1, b = a === 0 ? o : [\"\"], g = ur(b), S = 0, y = 0, f = 0; S < i; ++S)\n for (var m = 0, R = c1(e, x + 1, x = Hn(y = l[S])), w = e; m < g; ++m)\n (w = ct(y > 0 ? b[m] + \" \" + R : B(R, /&\\f/g, b[m]))) && (d[f++] = w);\n return F1(e, r, t, a === 0 ? dr : c, d, u, h);\n}\nfunction Yn(e, r, t) {\n return F1(e, r, t, st, L1(Pn()), c1(e, 2, -2), 0);\n}\nfunction Or(e, r, t, i) {\n return F1(e, r, t, pr, c1(e, 0, i), c1(e, i + 1, -1), i);\n}\nfunction ze(e, r) {\n for (var t = \"\", i = ur(e), a = 0; a < i; a++)\n t += r(e[a], a, e, r) || \"\";\n return t;\n}\nfunction Un(e, r, t, i) {\n switch (e.type) {\n case Fn:\n if (e.children.length) break;\n case In:\n case pr:\n return e.return = e.return || e.value;\n case st:\n return \"\";\n case lt:\n return e.return = e.value + \"{\" + ze(e.children, i) + \"}\";\n case dr:\n e.value = e.props.join(\",\");\n }\n return Se(t = ze(e.children, i)) ? e.return = e.value + \"{\" + t + \"}\" : \"\";\n}\nfunction Gn(e) {\n var r = ur(e);\n return function(t, i, a, o) {\n for (var l = \"\", c = 0; c < r; c++)\n l += e[c](t, i, a, o) || \"\";\n return l;\n };\n}\nfunction Xn(e) {\n return function(r) {\n r.root || (r = r.return) && e(r);\n };\n}\nfunction qn(e) {\n var r = /* @__PURE__ */ Object.create(null);\n return function(t) {\n return r[t] === void 0 && (r[t] = e(t)), r[t];\n };\n}\nvar Jn = function(r, t, i) {\n for (var a = 0, o = 0; a = o, o = ke(), a === 38 && o === 12 && (t[i] = 1), !d1(o); )\n xe();\n return u1(r, ge);\n}, Kn = function(r, t) {\n var i = -1, a = 44;\n do\n switch (d1(a)) {\n case 0:\n a === 38 && ke() === 12 && (t[i] = 1), r[i] += Jn(ge - 1, t, i);\n break;\n case 2:\n r[i] += b1(a);\n break;\n case 4:\n if (a === 44) {\n r[++i] = ke() === 58 ? \"&\\f\" : \"\", t[i] = r[i].length;\n break;\n }\n default:\n r[i] += L1(a);\n }\n while (a = xe());\n return r;\n}, Qn = function(r, t) {\n return ut(Kn(pt(r), t));\n}, Vr = /* @__PURE__ */ new WeakMap(), ei = function(r) {\n if (!(r.type !== \"rule\" || !r.parent || // positive .length indicates that this rule contains pseudo\n // negative .length indicates that this rule has been already prefixed\n r.length < 1)) {\n for (var t = r.value, i = r.parent, a = r.column === i.column && r.line === i.line; i.type !== \"rule\"; )\n if (i = i.parent, !i) return;\n if (!(r.props.length === 1 && t.charCodeAt(0) !== 58 && !Vr.get(i)) && !a) {\n Vr.set(r, !0);\n for (var o = [], l = Qn(t, o), c = i.props, d = 0, u = 0; d < l.length; d++)\n for (var h = 0; h < c.length; h++, u++)\n r.props[u] = o[d] ? l[d].replace(/&\\f/g, c[h]) : c[h] + \" \" + l[d];\n }\n }\n}, ri = function(r) {\n if (r.type === \"decl\") {\n var t = r.value;\n // charcode for l\n t.charCodeAt(0) === 108 && // charcode for b\n t.charCodeAt(2) === 98 && (r.return = \"\", r.value = \"\");\n }\n};\nfunction ft(e, r) {\n switch (Vn(e, r)) {\n case 5103:\n return P + \"print-\" + e + e;\n case 5737:\n case 4201:\n case 3177:\n case 3433:\n case 1641:\n case 4457:\n case 2921:\n case 5572:\n case 6356:\n case 5844:\n case 3191:\n case 6645:\n case 3005:\n case 6391:\n case 5879:\n case 5623:\n case 6135:\n case 4599:\n case 4855:\n case 4215:\n case 6389:\n case 5109:\n case 5365:\n case 5621:\n case 3829:\n return P + e + e;\n case 5349:\n case 4246:\n case 4810:\n case 6968:\n case 2756:\n return P + e + M1 + e + se + e + e;\n case 6828:\n case 4268:\n return P + e + se + e + e;\n case 6165:\n return P + e + se + \"flex-\" + e + e;\n case 5187:\n return P + e + B(e, /(\\w+).+(:[^]+)/, P + \"box-$1$2\" + se + \"flex-$1$2\") + e;\n case 5443:\n return P + e + se + \"flex-item-\" + B(e, /flex-|-self/, \"\") + e;\n case 4675:\n return P + e + se + \"flex-line-pack\" + B(e, /align-content|flex-|-self/, \"\") + e;\n case 5548:\n return P + e + se + B(e, \"shrink\", \"negative\") + e;\n case 5292:\n return P + e + se + B(e, \"basis\", \"preferred-size\") + e;\n case 6060:\n return P + \"box-\" + B(e, \"-grow\", \"\") + P + e + se + B(e, \"grow\", \"positive\") + e;\n case 4554:\n return P + B(e, /([^-])(transform)/g, \"$1\" + P + \"$2\") + e;\n case 6187:\n return B(B(B(e, /(zoom-|grab)/, P + \"$1\"), /(image-set)/, P + \"$1\"), e, \"\") + e;\n case 5495:\n case 3959:\n return B(e, /(image-set\\([^]*)/, P + \"$1$`$1\");\n case 4968:\n return B(B(e, /(.+:)(flex-)?(.*)/, P + \"box-pack:$3\" + se + \"flex-pack:$3\"), /s.+-b[^;]+/, \"justify\") + P + e + e;\n case 4095:\n case 3583:\n case 4068:\n case 2532:\n return B(e, /(.+)-inline(.+)/, P + \"$1$2\") + e;\n case 8116:\n case 7059:\n case 5753:\n case 5535:\n case 5445:\n case 5701:\n case 4933:\n case 4677:\n case 5533:\n case 5789:\n case 5021:\n case 4765:\n if (Se(e) - 1 - r > 6) switch (ae(e, r + 1)) {\n case 109:\n if (ae(e, r + 4) !== 45) break;\n case 102:\n return B(e, /(.+:)(.+)-([^]+)/, \"$1\" + P + \"$2-$3$1\" + M1 + (ae(e, r + 3) == 108 ? \"$3\" : \"$2-$3\")) + e;\n case 115:\n return ~J1(e, \"stretch\") ? ft(B(e, \"stretch\", \"fill-available\"), r) + e : e;\n }\n break;\n case 4949:\n if (ae(e, r + 1) !== 115) break;\n case 6444:\n switch (ae(e, Se(e) - 3 - (~J1(e, \"!important\") && 10))) {\n case 107:\n return B(e, \":\", \":\" + P) + e;\n case 101:\n return B(e, /(.+:)([^;!]+)(;|!.+)?/, \"$1\" + P + (ae(e, 14) === 45 ? \"inline-\" : \"\") + \"box$3$1\" + P + \"$2$3$1\" + se + \"$2box$3\") + e;\n }\n break;\n case 5936:\n switch (ae(e, r + 11)) {\n case 114:\n return P + e + se + B(e, /[svh]\\w+-[tblr]{2}/, \"tb\") + e;\n case 108:\n return P + e + se + B(e, /[svh]\\w+-[tblr]{2}/, \"tb-rl\") + e;\n case 45:\n return P + e + se + B(e, /[svh]\\w+-[tblr]{2}/, \"lr\") + e;\n }\n return P + e + se + e + e;\n }\n return e;\n}\nvar ti = function(r, t, i, a) {\n if (r.length > -1 && !r.return) switch (r.type) {\n case pr:\n r.return = ft(r.value, r.length);\n break;\n case lt:\n return ze([e1(r, {\n value: B(r.value, \"@\", \"@\" + P)\n })], a);\n case dr:\n if (r.length) return Dn(r.props, function(o) {\n switch ($n(o, /(::plac\\w+|:read-\\w+)/)) {\n case \":read-only\":\n case \":read-write\":\n return ze([e1(r, {\n props: [B(o, /:(read-\\w+)/, \":\" + M1 + \"$1\")]\n })], a);\n case \"::placeholder\":\n return ze([e1(r, {\n props: [B(o, /:(plac\\w+)/, \":\" + P + \"input-$1\")]\n }), e1(r, {\n props: [B(o, /:(plac\\w+)/, \":\" + M1 + \"$1\")]\n }), e1(r, {\n props: [B(o, /:(plac\\w+)/, se + \"input-$1\")]\n })], a);\n }\n return \"\";\n });\n }\n}, ni = [ti], ii = function(r) {\n var t = r.key;\n if (t === \"css\") {\n var i = document.querySelectorAll(\"style[data-emotion]:not([data-s])\");\n Array.prototype.forEach.call(i, function(y) {\n var f = y.getAttribute(\"data-emotion\");\n f.indexOf(\" \") !== -1 && (document.head.appendChild(y), y.setAttribute(\"data-s\", \"\"));\n });\n }\n var a = r.stylisPlugins || ni, o = {}, l, c = [];\n l = r.container || document.head, Array.prototype.forEach.call(\n // this means we will ignore elements which don't have a space in them which\n // means that the style elements we're looking at are only Emotion 11 server-rendered style elements\n document.querySelectorAll('style[data-emotion^=\"' + t + ' \"]'),\n function(y) {\n for (var f = y.getAttribute(\"data-emotion\").split(\" \"), m = 1; m < f.length; m++)\n o[f[m]] = !0;\n c.push(y);\n }\n );\n var d, u = [ei, ri];\n {\n var h, x = [Un, Xn(function(y) {\n h.insert(y);\n })], b = Gn(u.concat(a, x)), g = function(f) {\n return ze(jn(f), b);\n };\n d = function(f, m, R, w) {\n h = R, g(f ? f + \"{\" + m.styles + \"}\" : m.styles), w && (S.inserted[m.name] = !0);\n };\n }\n var S = {\n key: t,\n sheet: new Ln({\n key: t,\n container: l,\n nonce: r.nonce,\n speedy: r.speedy,\n prepend: r.prepend,\n insertionPoint: r.insertionPoint\n }),\n nonce: r.nonce,\n inserted: o,\n registered: {},\n insert: d\n };\n return S.sheet.hydrate(c), S;\n}, Q1 = { exports: {} }, W = {};\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 */\nvar $r;\nfunction ai() {\n if ($r) return W;\n $r = 1;\n var e = typeof Symbol == \"function\" && Symbol.for, r = e ? Symbol.for(\"react.element\") : 60103, t = e ? Symbol.for(\"react.portal\") : 60106, i = e ? Symbol.for(\"react.fragment\") : 60107, a = e ? Symbol.for(\"react.strict_mode\") : 60108, o = e ? Symbol.for(\"react.profiler\") : 60114, l = e ? Symbol.for(\"react.provider\") : 60109, c = e ? Symbol.for(\"react.context\") : 60110, d = e ? Symbol.for(\"react.async_mode\") : 60111, u = e ? Symbol.for(\"react.concurrent_mode\") : 60111, h = e ? Symbol.for(\"react.forward_ref\") : 60112, x = e ? Symbol.for(\"react.suspense\") : 60113, b = e ? Symbol.for(\"react.suspense_list\") : 60120, g = e ? Symbol.for(\"react.memo\") : 60115, S = e ? Symbol.for(\"react.lazy\") : 60116, y = e ? Symbol.for(\"react.block\") : 60121, f = e ? Symbol.for(\"react.fundamental\") : 60117, m = e ? Symbol.for(\"react.responder\") : 60118, R = e ? Symbol.for(\"react.scope\") : 60119;\n function w(p) {\n if (typeof p == \"object\" && p !== null) {\n var _ = p.$$typeof;\n switch (_) {\n case r:\n switch (p = p.type, p) {\n case d:\n case u:\n case i:\n case o:\n case a:\n case x:\n return p;\n default:\n switch (p = p && p.$$typeof, p) {\n case c:\n case h:\n case S:\n case g:\n case l:\n return p;\n default:\n return _;\n }\n }\n case t:\n return _;\n }\n }\n }\n function M(p) {\n return w(p) === u;\n }\n return W.AsyncMode = d, W.ConcurrentMode = u, W.ContextConsumer = c, W.ContextProvider = l, W.Element = r, W.ForwardRef = h, W.Fragment = i, W.Lazy = S, W.Memo = g, W.Portal = t, W.Profiler = o, W.StrictMode = a, W.Suspense = x, W.isAsyncMode = function(p) {\n return M(p) || w(p) === d;\n }, W.isConcurrentMode = M, W.isContextConsumer = function(p) {\n return w(p) === c;\n }, W.isContextProvider = function(p) {\n return w(p) === l;\n }, W.isElement = function(p) {\n return typeof p == \"object\" && p !== null && p.$$typeof === r;\n }, W.isForwardRef = function(p) {\n return w(p) === h;\n }, W.isFragment = function(p) {\n return w(p) === i;\n }, W.isLazy = function(p) {\n return w(p) === S;\n }, W.isMemo = function(p) {\n return w(p) === g;\n }, W.isPortal = function(p) {\n return w(p) === t;\n }, W.isProfiler = function(p) {\n return w(p) === o;\n }, W.isStrictMode = function(p) {\n return w(p) === a;\n }, W.isSuspense = function(p) {\n return w(p) === x;\n }, W.isValidElementType = function(p) {\n return typeof p == \"string\" || typeof p == \"function\" || p === i || p === u || p === o || p === a || p === x || p === b || typeof p == \"object\" && p !== null && (p.$$typeof === S || p.$$typeof === g || p.$$typeof === l || p.$$typeof === c || p.$$typeof === h || p.$$typeof === f || p.$$typeof === m || p.$$typeof === R || p.$$typeof === y);\n }, W.typeOf = w, W;\n}\nvar j = {};\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 */\nvar Dr;\nfunction oi() {\n return Dr || (Dr = 1, process.env.NODE_ENV !== \"production\" && function() {\n var e = typeof Symbol == \"function\" && Symbol.for, r = e ? Symbol.for(\"react.element\") : 60103, t = e ? Symbol.for(\"react.portal\") : 60106, i = e ? Symbol.for(\"react.fragment\") : 60107, a = e ? Symbol.for(\"react.strict_mode\") : 60108, o = e ? Symbol.for(\"react.profiler\") : 60114, l = e ? Symbol.for(\"react.provider\") : 60109, c = e ? Symbol.for(\"react.context\") : 60110, d = e ? Symbol.for(\"react.async_mode\") : 60111, u = e ? Symbol.for(\"react.concurrent_mode\") : 60111, h = e ? Symbol.for(\"react.forward_ref\") : 60112, x = e ? Symbol.for(\"react.suspense\") : 60113, b = e ? Symbol.for(\"react.suspense_list\") : 60120, g = e ? Symbol.for(\"react.memo\") : 60115, S = e ? Symbol.for(\"react.lazy\") : 60116, y = e ? Symbol.for(\"react.block\") : 60121, f = e ? Symbol.for(\"react.fundamental\") : 60117, m = e ? Symbol.for(\"react.responder\") : 60118, R = e ? Symbol.for(\"react.scope\") : 60119;\n function w(k) {\n return typeof k == \"string\" || typeof k == \"function\" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.\n k === i || k === u || k === o || k === a || k === x || k === b || typeof k == \"object\" && k !== null && (k.$$typeof === S || k.$$typeof === g || k.$$typeof === l || k.$$typeof === c || k.$$typeof === h || k.$$typeof === f || k.$$typeof === m || k.$$typeof === R || k.$$typeof === y);\n }\n function M(k) {\n if (typeof k == \"object\" && k !== null) {\n var Xe = k.$$typeof;\n switch (Xe) {\n case r:\n var $e = k.type;\n switch ($e) {\n case d:\n case u:\n case i:\n case o:\n case a:\n case x:\n return $e;\n default:\n var Ie = $e && $e.$$typeof;\n switch (Ie) {\n case c:\n case h:\n case S:\n case g:\n case l:\n return Ie;\n default:\n return Xe;\n }\n }\n case t:\n return Xe;\n }\n }\n }\n var p = d, _ = u, T = c, $ = l, I = r, J = h, oe = i, ne = S, Y = g, z = t, q = o, ye = a, me = x, D = !1;\n function A(k) {\n return D || (D = !0, 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.\")), U(k) || M(k) === d;\n }\n function U(k) {\n return M(k) === u;\n }\n function te(k) {\n return M(k) === c;\n }\n function ce(k) {\n return M(k) === l;\n }\n function fe(k) {\n return typeof k == \"object\" && k !== null && k.$$typeof === r;\n }\n function O1(k) {\n return M(k) === h;\n }\n function V1(k) {\n return M(k) === i;\n }\n function Ye(k) {\n return M(k) === S;\n }\n function Ue(k) {\n return M(k) === g;\n }\n function Oe(k) {\n return M(k) === t;\n }\n function Ge(k) {\n return M(k) === o;\n }\n function Ve(k) {\n return M(k) === a;\n }\n function $1(k) {\n return M(k) === x;\n }\n j.AsyncMode = p, j.ConcurrentMode = _, j.ContextConsumer = T, j.ContextProvider = $, j.Element = I, j.ForwardRef = J, j.Fragment = oe, j.Lazy = ne, j.Memo = Y, j.Portal = z, j.Profiler = q, j.StrictMode = ye, j.Suspense = me, j.isAsyncMode = A, j.isConcurrentMode = U, j.isContextConsumer = te, j.isContextProvider = ce, j.isElement = fe, j.isForwardRef = O1, j.isFragment = V1, j.isLazy = Ye, j.isMemo = Ue, j.isPortal = Oe, j.isProfiler = Ge, j.isStrictMode = Ve, j.isSuspense = $1, j.isValidElementType = w, j.typeOf = M;\n }()), j;\n}\nprocess.env.NODE_ENV === \"production\" ? Q1.exports = ai() : Q1.exports = oi();\nvar si = Q1.exports, ht = si, li = {\n $$typeof: !0,\n render: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0\n}, ci = {\n $$typeof: !0,\n compare: !0,\n defaultProps: !0,\n displayName: !0,\n propTypes: !0,\n type: !0\n}, gt = {};\ngt[ht.ForwardRef] = li;\ngt[ht.Memo] = ci;\nvar di = !0;\nfunction pi(e, r, t) {\n var i = \"\";\n return t.split(\" \").forEach(function(a) {\n e[a] !== void 0 ? r.push(e[a] + \";\") : a && (i += a + \" \");\n }), i;\n}\nvar Ct = function(r, t, i) {\n var a = r.key + \"-\" + t.name;\n // we only need to add the styles to the registered cache if the\n // class name could be used further down\n // the tree but if it's a string tag, we know it won't\n // so we don't have to add it to registered cache.\n // this improves memory usage since we can avoid storing the whole style string\n (i === !1 || // we need to always store it if we're in compat mode and\n // in node since emotion-server relies on whether a style is in\n // the registered cache to know whether a style is global or not\n // also, note that this check will be dead code eliminated in the browser\n di === !1) && r.registered[a] === void 0 && (r.registered[a] = t.styles);\n}, ui = function(r, t, i) {\n Ct(r, t, i);\n var a = r.key + \"-\" + t.name;\n if (r.inserted[t.name] === void 0) {\n var o = t;\n do\n r.insert(t === o ? \".\" + a : \"\", o, r.sheet, !0), o = o.next;\n while (o !== void 0);\n }\n};\nfunction fi(e) {\n for (var r = 0, t, i = 0, a = e.length; a >= 4; ++i, a -= 4)\n t = e.charCodeAt(i) & 255 | (e.charCodeAt(++i) & 255) << 8 | (e.charCodeAt(++i) & 255) << 16 | (e.charCodeAt(++i) & 255) << 24, t = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16), t ^= /* k >>> r: */\n t >>> 24, r = /* Math.imul(k, m): */\n (t & 65535) * 1540483477 + ((t >>> 16) * 59797 << 16) ^ /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n switch (a) {\n case 3:\n r ^= (e.charCodeAt(i + 2) & 255) << 16;\n case 2:\n r ^= (e.charCodeAt(i + 1) & 255) << 8;\n case 1:\n r ^= e.charCodeAt(i) & 255, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16);\n }\n return r ^= r >>> 13, r = /* Math.imul(h, m): */\n (r & 65535) * 1540483477 + ((r >>> 16) * 59797 << 16), ((r ^ r >>> 15) >>> 0).toString(36);\n}\nvar hi = {\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}, gi = !1, Ci = /[A-Z]|^ms/g, xi = /_EMO_([^_]+?)_([^]*?)_EMO_/g, xt = function(r) {\n return r.charCodeAt(1) === 45;\n}, Pr = function(r) {\n return r != null && typeof r != \"boolean\";\n}, W1 = /* @__PURE__ */ qn(function(e) {\n return xt(e) ? e : e.replace(Ci, \"-$&\").toLowerCase();\n}), Br = function(r, t) {\n switch (r) {\n case \"animation\":\n case \"animationName\":\n if (typeof t == \"string\")\n return t.replace(xi, function(i, a, o) {\n return Re = {\n name: a,\n styles: o,\n next: Re\n }, a;\n });\n }\n return hi[r] !== 1 && !xt(r) && typeof t == \"number\" && t !== 0 ? t + \"px\" : t;\n}, bi = \"Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.\";\nfunction p1(e, r, t) {\n if (t == null)\n return \"\";\n var i = t;\n if (i.__emotion_styles !== void 0)\n return i;\n switch (typeof t) {\n case \"boolean\":\n return \"\";\n case \"object\": {\n var a = t;\n if (a.anim === 1)\n return Re = {\n name: a.name,\n styles: a.styles,\n next: Re\n }, a.name;\n var o = t;\n if (o.styles !== void 0) {\n var l = o.next;\n if (l !== void 0)\n for (; l !== void 0; )\n Re = {\n name: l.name,\n styles: l.styles,\n next: Re\n }, l = l.next;\n var c = o.styles + \";\";\n return c;\n }\n return yi(e, r, t);\n }\n case \"function\": {\n if (e !== void 0) {\n var d = Re, u = t(e);\n return Re = d, p1(e, r, u);\n }\n break;\n }\n }\n var h = t;\n return h;\n}\nfunction yi(e, r, t) {\n var i = \"\";\n if (Array.isArray(t))\n for (var a = 0; a < t.length; a++)\n i += p1(e, r, t[a]) + \";\";\n else\n for (var o in t) {\n var l = t[o];\n if (typeof l != \"object\") {\n var c = l;\n Pr(c) && (i += W1(o) + \":\" + Br(o, c) + \";\");\n } else {\n if (o === \"NO_COMPONENT_SELECTOR\" && gi)\n throw new Error(bi);\n if (Array.isArray(l) && typeof l[0] == \"string\" && r == null)\n for (var d = 0; d < l.length; d++)\n Pr(l[d]) && (i += W1(o) + \":\" + Br(o, l[d]) + \";\");\n else {\n var u = p1(e, r, l);\n switch (o) {\n case \"animation\":\n case \"animationName\": {\n i += W1(o) + \":\" + u + \";\";\n break;\n }\n default:\n i += o + \"{\" + u + \"}\";\n }\n }\n }\n }\n return i;\n}\nvar Zr = /label:\\s*([^\\s;{]+)\\s*(;|$)/g, Re;\nfunction mi(e, r, t) {\n if (e.length === 1 && typeof e[0] == \"object\" && e[0] !== null && e[0].styles !== void 0)\n return e[0];\n var i = !0, a = \"\";\n Re = void 0;\n var o = e[0];\n if (o == null || o.raw === void 0)\n i = !1, a += p1(t, r, o);\n else {\n var l = o;\n a += l[0];\n }\n for (var c = 1; c < e.length; c++)\n if (a += p1(t, r, e[c]), i) {\n var d = o;\n a += d[c];\n }\n Zr.lastIndex = 0;\n for (var u = \"\", h; (h = Zr.exec(a)) !== null; )\n u += \"-\" + h[1];\n var x = fi(a) + u;\n return {\n name: x,\n styles: a,\n next: Re\n };\n}\nvar vi = function(r) {\n return r();\n}, wi = Te.useInsertionEffect ? Te.useInsertionEffect : !1, Ei = wi || vi, Mi = !1, bt = /* @__PURE__ */ Te.createContext(\n // we're doing this to avoid preconstruct's dead code elimination in this one case\n // because this module is primarily intended for the browser and node\n // but it's also required in react native and similar environments sometimes\n // and we could have a special build just for that\n // but this is much easier and the native packages\n // might use a different theme context in the future anyway\n typeof HTMLElement < \"u\" ? /* @__PURE__ */ ii({\n key: \"css\"\n }) : null\n);\nbt.Provider;\nvar Si = function(r) {\n return /* @__PURE__ */ ue(function(t, i) {\n var a = _e(bt);\n return r(t, a, i);\n });\n}, Ri = /* @__PURE__ */ Te.createContext({}), H1 = {}.hasOwnProperty, er = \"__EMOTION_TYPE_PLEASE_DO_NOT_USE__\", yt = function(r, t) {\n var i = {};\n for (var a in t)\n H1.call(t, a) && (i[a] = t[a]);\n return i[er] = r, i;\n}, ki = function(r) {\n var t = r.cache, i = r.serialized, a = r.isStringTag;\n return Ct(t, i, a), Ei(function() {\n return ui(t, i, a);\n }), null;\n}, Ti = /* @__PURE__ */ Si(\n /* */\n function(e, r, t) {\n var i = e.css;\n typeof i == \"string\" && r.registered[i] !== void 0 && (i = r.registered[i]);\n var a = e[er], o = [i], l = \"\";\n typeof e.className == \"string\" ? l = pi(r.registered, o, e.className) : e.className != null && (l = e.className + \" \");\n var c = mi(o, void 0, Te.useContext(Ri));\n l += r.key + \"-\" + c.name;\n var d = {};\n for (var u in e)\n H1.call(e, u) && u !== \"css\" && u !== er && !Mi && (d[u] = e[u]);\n return d.className = l, t && (d.ref = t), /* @__PURE__ */ Te.createElement(Te.Fragment, null, /* @__PURE__ */ Te.createElement(ki, {\n cache: r,\n serialized: c,\n isStringTag: typeof a == \"string\"\n }), /* @__PURE__ */ Te.createElement(a, d));\n }\n), mt = Ti, Me = l1.Fragment;\nfunction n(e, r, t) {\n return H1.call(r, \"css\") ? l1.jsx(mt, yt(e, r), t) : l1.jsx(e, r, t);\n}\nfunction v(e, r, t) {\n return H1.call(r, \"css\") ? l1.jsxs(mt, yt(e, r), t) : l1.jsxs(e, r, t);\n}\nconst zr = 32, Ai = 24, _i = 105, Li = 24, Ii = 195, Fi = 44, Hi = 147, Oi = () => {\n const { palette: e } = be(), r = pe(\n (l) => l === \"white\" ? \"#fff\" : l === \"black\" ? \"#000\" : l || e.text.primary,\n [e.text.primary]\n ), t = pe(\n (l) => l || e.primary.contrastText,\n [e.primary.contrastText]\n ), i = pe(\n (l) => l || e.text.primary,\n [e.text.primary]\n ), a = pe(async (l, c, d) => {\n if (d)\n return import(\"./tracktor-logo-BZpNIZuZ.js\");\n switch (l) {\n case \"supplier\":\n return c === \"dark\" ? import(\"./tracktor-supplier-dark-Bk1J2ZPs.js\") : import(\"./tracktor-supplier-light-Jhs_pVRR.js\");\n case \"pricing\":\n return import(\"./tracktor-pricing-Dxr0_FrZ.js\");\n default:\n return c === \"dark\" ? import(\"./tracktor-dark-CczqlSbH.js\") : import(\"./tracktor-light-D8rOyXuS.js\");\n }\n }, []), o = pe(\n ({\n variant: l,\n width: c,\n height: d,\n withoutText: u\n }) => u ? {\n height: zr,\n width: zr\n } : l === \"default\" ? {\n height: d || Ai,\n width: c || _i\n } : l === \"supplier\" ? {\n height: d || Li,\n width: c || Ii\n } : {\n height: d || Fi,\n width: c || Hi\n },\n []\n );\n return {\n getImageModule: a,\n getShapeBackgroundColor: i,\n getShapeColor: t,\n getSize: o,\n getTextColor: r\n };\n}, Vi = ({ colorShape: e, shapeBackgroundColor: r, color: t, height: i, width: a, withoutText: o, mode: l, sx: c, variant: d = \"default\", component: u = \"img\" }, h) => {\n const [x, b] = ie(\"\"), { palette: g } = be(), { getTextColor: S, getImageModule: y, getSize: f, getShapeColor: m, getShapeBackgroundColor: R } = Oi(), { height: w, width: M } = f({ height: i, variant: d, width: a, withoutText: o }), p = S(t), _ = m(e), T = R(r);\n if (T1(() => {\n u !== \"svg\" && (async () => {\n const $ = await y(d, l || g.mode, o);\n b($.default);\n })();\n }, [u, y, l, g.mode, d, o]), u === \"img\")\n return x ? /* @__PURE__ */ n(\n F,\n {\n component: \"img\",\n src: x,\n alt: \"Tracktor\",\n height: w,\n width: M,\n ref: h,\n sx: c\n }\n ) : /* @__PURE__ */ n(\n Ce,\n {\n variant: \"rounded\",\n ref: h,\n sx: {\n display: \"inline-block\",\n fontSize: 0,\n height: w,\n maxHeight: w,\n maxWidth: M,\n width: M\n }\n }\n );\n if (o) {\n const $ = e || g.primary.main;\n return /* @__PURE__ */ v(F, { component: \"svg\", viewBox: \"0 0 32 32\", fill: \"none\", sx: { height: w, width: M, ...c }, children: [\n /* @__PURE__ */ n(\"path\", { d: \"M17 0V15H32C32 6.71026 25.2897 0 17 0Z\", fill: $ }),\n /* @__PURE__ */ n(\"path\", { d: \"M0 0V15H15C15 6.71026 8.27968 0 0 0Z\", fill: $ }),\n /* @__PURE__ */ n(\"path\", { d: \"M14.9955 16C14.9955 16 15.0056 16 14.9955 16V32H0C0 23.1576 6.71832 16 14.9955 16Z\", fill: $ }),\n /* @__PURE__ */ n(\"path\", { d: \"M32 16V32H17C17 23.1576 23.7103 16 32 16Z\", fill: $ })\n ] });\n }\n return d === \"pricing\" ? /* @__PURE__ */ v(\n F,\n {\n component: \"svg\",\n viewBox: \"0 0 147 44\",\n fill: \"none\",\n sx: { height: w, width: M, ...c },\n ref: h,\n children: [\n /* @__PURE__ */ v(\"g\", { clipPath: \"url(#clip0_12018_69701)\", children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M45.8141 9.78482V7.63522H41.6861V22.7089H45.8141V13.7401C46.8478 12.3908 50.2345 11.4185 52.0299 11.359L51.683 7.31774C49.3844 7.43679 47.1402 8.23711 45.8141 9.78482Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M64.203 9.01105C62.9381 7.74775 61.4011 7.3509 59.871 7.3509C55.5118 7.3509 52.2067 10.6778 52.2067 15.149C52.2067 19.6202 55.505 23 59.837 23C61.5167 23 63.0469 22.4841 64.1962 21.3398V22.7156H68.3242V7.63531H64.1962V9.01105H64.203ZM64.203 17.2655C63.4957 18.3569 62.0812 19.0447 60.5171 19.0447C58.1572 19.0447 56.3891 17.3846 56.3891 15.1754C56.3891 12.9663 58.1844 11.3062 60.5443 11.3062C62.0744 11.3062 63.4889 11.9676 64.1962 13.0258V17.2655H64.203Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M78.558 18.866C76.2866 18.866 74.5796 17.3183 74.5796 15.1952C74.5796 13.0456 76.3206 11.4714 78.5852 11.4714C79.9997 11.4714 81.2102 12.0998 81.9175 13.1911L84.9846 10.2676C83.5088 8.46198 81.0946 7.34419 78.5036 7.34419C73.9948 7.34419 70.2544 10.7571 70.2544 15.2283C70.2544 19.6134 73.8792 22.9933 78.4492 22.9933C81.2782 22.9933 83.9577 21.6771 85.549 19.6134L82.2779 16.862C81.5027 18.1253 80.1493 18.866 78.558 18.866Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M96.4974 13.2838L102.536 7.64188L102.543 7.63526H102.536H97.327L91.1997 13.4226V5.98834C91.1793 3.78582 89.3431 2 87.0717 2V22.7089H91.1997V18.2378L93.4711 16.1146L98.0411 22.7089H103.019L96.4974 13.2838Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M114.743 17.7482C113.743 18.6081 113.002 19.038 112.002 19.038C110.853 19.038 110.057 18.4361 110.057 17.2059V11.5045C107.786 11.5045 105.943 13.2903 105.929 15.4994V17.5233C105.929 20.8767 108.316 22.9999 112.002 22.9999C114.239 22.9999 115.776 22.1995 117.245 20.7643L114.743 17.7482Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M125.732 7.3509C120.985 7.3509 117.449 10.7043 117.449 15.1754C117.449 19.6466 120.985 23 125.732 23C130.479 23 134.015 19.6466 134.015 15.1754C134.015 10.7043 130.472 7.3509 125.732 7.3509ZM125.732 19.0381C123.406 19.0381 121.638 17.378 121.638 15.1688C121.638 12.9597 123.406 11.2996 125.732 11.2996C128.058 11.2996 129.826 12.9597 129.826 15.1688C129.826 17.378 128.058 19.0381 125.732 19.0381Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M145.888 7.31774C143.59 7.43018 141.352 8.23711 140.026 9.78482V7.63522H135.898V22.7089H140.026V13.7401C141.06 12.3908 144.447 11.4185 146.242 11.359L145.888 7.31774Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M37.6608 17.7482C36.6611 18.6081 35.9198 19.038 34.9201 19.038C33.7708 19.038 32.9751 18.4361 32.9751 17.2059V11.5045C30.7037 11.5045 28.8608 13.2903 28.8472 15.4994V17.5233C28.8472 20.8767 31.2342 22.9999 34.9201 22.9999C37.1575 22.9999 38.6945 22.1995 40.1634 20.7643L37.6608 17.7482Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M32.9752 7.62862V6.04122C32.9616 3.83871 31.1187 2.05289 28.8473 2.05289V7.62201H25.447V11.4913H28.8473H32.9752H39.1638V7.62862H32.9752Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M110.057 7.63522V5.82956C109.921 3.73287 108.133 2.0661 105.943 2.0661H105.95H105.929V7.63522H102.529V11.5045H105.929H110.057H116.246V7.63522H110.057Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\"path\", { d: \"M11.1054 2.06609V11.9278H21.2451C21.2451 6.47773 16.7023 2.06609 11.1054 2.06609Z\", fill: \"#9965F4\" }),\n /* @__PURE__ */ n(\"path\", { d: \"M0 2.06609V11.9278H10.1397C10.1397 6.47773 5.60371 2.06609 0 2.06609Z\", fill: \"#9965F4\" }),\n /* @__PURE__ */ n(\"path\", { d: \"M10.1397 12.8604V22.7221H0C0 17.2721 4.54281 12.8604 10.1397 12.8604Z\", fill: \"#9965F4\" }),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M21.2383 12.8604C21.2383 12.8604 21.2451 12.8604 21.2383 12.8604V22.7221H11.0986C11.0986 17.2721 15.6414 12.8604 21.2383 12.8604Z\",\n fill: \"#9965F4\"\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M63.6 29.684C64.536 29.684 65.248 29.912 65.736 30.368C66.232 30.824 66.48 31.408 66.48 32.12C66.48 32.832 66.24 33.42 65.76 33.884C65.288 34.34 64.568 34.568 63.6 34.568H61.992V38H60.9V29.684H63.6ZM61.992 33.704H63.6C64.2 33.704 64.644 33.568 64.932 33.296C65.228 33.016 65.376 32.628 65.376 32.132C65.376 31.084 64.784 30.56 63.6 30.56H61.992V33.704ZM68.9295 31.412V32.528C69.3215 31.712 69.9895 31.304 70.9335 31.304V32.444H70.6455C70.0855 32.444 69.6575 32.592 69.3615 32.888C69.0735 33.176 68.9295 33.68 68.9295 34.4V38H67.8375V31.412H68.9295ZM73.3355 30.14C73.1915 30.284 73.0155 30.356 72.8075 30.356C72.5995 30.356 72.4235 30.284 72.2795 30.14C72.1435 29.996 72.0755 29.82 72.0755 29.612C72.0755 29.404 72.1475 29.228 72.2915 29.084C72.4355 28.94 72.6075 28.868 72.8075 28.868C73.0155 28.868 73.1915 28.94 73.3355 29.084C73.4795 29.228 73.5515 29.404 73.5515 29.612C73.5515 29.82 73.4795 29.996 73.3355 30.14ZM72.2555 38V31.412H73.3475V38H72.2555ZM77.91 38.108C76.966 38.108 76.198 37.796 75.606 37.172C75.014 36.548 74.718 35.728 74.718 34.712C74.718 33.688 75.014 32.864 75.606 32.24C76.198 31.616 76.966 31.304 77.91 31.304C78.702 31.304 79.346 31.488 79.842 31.856C80.346 32.224 80.698 32.748 80.898 33.428H79.722C79.594 33.044 79.374 32.744 79.062 32.528C78.75 32.312 78.366 32.204 77.91 32.204C77.286 32.204 76.782 32.424 76.398 32.864C76.022 33.296 75.834 33.912 75.834 34.712C75.834 35.504 76.022 36.12 76.398 36.56C76.782 36.992 77.286 37.208 77.91 37.208C78.846 37.208 79.45 36.8 79.722 35.984H80.898C80.698 36.632 80.342 37.148 79.83 37.532C79.326 37.916 78.686 38.108 77.91 38.108ZM83.4253 30.14C83.2813 30.284 83.1053 30.356 82.8973 30.356C82.6893 30.356 82.5133 30.284 82.3693 30.14C82.2333 29.996 82.1653 29.82 82.1653 29.612C82.1653 29.404 82.2373 29.228 82.3813 29.084C82.5253 28.94 82.6973 28.868 82.8973 28.868C83.1053 28.868 83.2813 28.94 83.4253 29.084C83.5693 29.228 83.6413 29.404 83.6413 29.612C83.6413 29.82 83.5693 29.996 83.4253 30.14ZM82.3453 38V31.412H83.4373V38H82.3453ZM86.3318 31.412V32.48C86.7798 31.696 87.4958 31.304 88.4798 31.304C89.2078 31.304 89.8158 31.548 90.3038 32.036C90.7918 32.516 91.0358 33.204 91.0358 34.1V38H89.9558V34.28C89.9558 33.616 89.7958 33.112 89.4758 32.768C89.1558 32.424 88.7118 32.252 88.1438 32.252C87.5838 32.252 87.1398 32.424 86.8118 32.768C86.4918 33.112 86.3318 33.616 86.3318 34.28V38H85.2398V31.412H86.3318ZM95.487 38.108C94.591 38.108 93.843 37.788 93.243 37.148C92.643 36.5 92.343 35.676 92.343 34.676C92.343 33.668 92.639 32.856 93.231 32.24C93.831 31.616 94.583 31.304 95.487 31.304C96.047 31.304 96.535 31.436 96.951 31.7C97.375 31.964 97.695 32.308 97.911 32.732V31.412H99.015V38.168C99.015 39.072 98.723 39.808 98.139 40.376C97.555 40.952 96.815 41.24 95.919 41.24C95.023 41.24 94.279 41.032 93.687 40.616C93.103 40.2 92.771 39.656 92.691 38.984H93.759C93.863 39.36 94.107 39.672 94.491 39.92C94.875 40.168 95.351 40.292 95.919 40.292C96.487 40.292 96.959 40.104 97.335 39.728C97.719 39.36 97.911 38.84 97.911 38.168V36.656C97.695 37.088 97.375 37.44 96.951 37.712C96.535 37.976 96.047 38.108 95.487 38.108ZM97.251 36.5C97.691 36.052 97.911 35.456 97.911 34.712C97.911 33.968 97.691 33.372 97.251 32.924C96.819 32.476 96.295 32.252 95.679 32.252C95.071 32.252 94.547 32.468 94.107 32.9C93.675 33.332 93.459 33.92 93.459 34.664C93.459 35.408 93.679 36.012 94.119 36.476C94.559 36.94 95.083 37.172 95.691 37.172C96.299 37.172 96.819 36.948 97.251 36.5ZM105.3 31.904C105.3 32.208 105.384 32.46 105.552 32.66C105.72 32.86 105.936 33.008 106.2 33.104C106.464 33.2 106.756 33.284 107.076 33.356C107.404 33.428 107.728 33.512 108.048 33.608C108.376 33.696 108.672 33.812 108.936 33.956C109.2 34.1 109.416 34.316 109.584 34.604C109.752 34.892 109.836 35.248 109.836 35.672C109.836 36.32 109.588 36.884 109.092 37.364C108.596 37.844 107.924 38.084 107.076 38.084C106.236 38.084 105.552 37.892 105.024 37.508C104.496 37.116 104.232 36.588 104.232 35.924H105.396C105.428 36.3 105.576 36.604 105.84 36.836C106.112 37.068 106.512 37.184 107.04 37.184C107.568 37.184 107.988 37.048 108.3 36.776C108.612 36.504 108.768 36.188 108.768 35.828C108.768 35.46 108.684 35.18 108.516 34.988C108.348 34.788 108.132 34.64 107.868 34.544C107.604 34.448 107.308 34.368 106.98 34.304C106.66 34.232 106.336 34.148 106.008 34.052C105.688 33.956 105.396 33.836 105.132 33.692C104.868 33.54 104.652 33.32 104.484 33.032C104.316 32.736 104.232 32.372 104.232 31.94C104.232 31.236 104.48 30.672 104.976 30.248C105.48 29.816 106.132 29.6 106.932 29.6C107.74 29.6 108.38 29.788 108.852 30.164C109.332 30.532 109.608 31.044 109.68 31.7H108.468C108.436 31.372 108.28 31.092 108 30.86C107.728 30.628 107.356 30.512 106.884 30.512C106.42 30.512 106.04 30.632 105.744 30.872C105.448 31.104 105.3 31.448 105.3 31.904ZM114.215 38.108C113.271 38.108 112.503 37.796 111.911 37.172C111.319 36.548 111.023 35.724 111.023 34.7C111.023 33.676 111.323 32.856 111.923 32.24C112.523 31.616 113.299 31.304 114.251 31.304C115.211 31.304 115.979 31.6 116.555 32.192C117.139 32.776 117.431 33.524 117.431 34.436C117.431 34.668 117.415 34.884 117.383 35.084H112.139C112.171 35.74 112.375 36.26 112.751 36.644C113.135 37.02 113.623 37.208 114.215 37.208C114.663 37.208 115.039 37.108 115.343 36.908C115.655 36.708 115.883 36.444 116.027 36.116H117.203C116.995 36.692 116.635 37.168 116.123 37.544C115.619 37.92 114.983 38.108 114.215 38.108ZM116.291 34.292C116.283 33.66 116.083 33.156 115.691 32.78C115.299 32.396 114.811 32.204 114.227 32.204C113.651 32.204 113.171 32.392 112.787 32.768C112.403 33.136 112.191 33.644 112.151 34.292H116.291ZM119.883 31.412V32.528C120.275 31.712 120.943 31.304 121.887 31.304V32.444H121.599C121.039 32.444 120.611 32.592 120.315 32.888C120.027 33.176 119.883 33.68 119.883 34.4V38H118.791V31.412H119.883ZM122.453 31.412H123.617L125.633 36.98L127.661 31.412H128.837L126.257 38H125.021L122.453 31.412ZM130.957 30.14C130.813 30.284 130.637 30.356 130.429 30.356C130.221 30.356 130.045 30.284 129.901 30.14C129.765 29.996 129.697 29.82 129.697 29.612C129.697 29.404 129.769 29.228 129.913 29.084C130.057 28.94 130.229 28.868 130.429 28.868C130.637 28.868 130.813 28.94 130.957 29.084C131.101 29.228 131.173 29.404 131.173 29.612C131.173 29.82 131.101 29.996 130.957 30.14ZM129.877 38V31.412H130.969V38H129.877ZM135.531 38.108C134.587 38.108 133.819 37.796 133.227 37.172C132.635 36.548 132.339 35.728 132.339 34.712C132.339 33.688 132.635 32.864 133.227 32.24C133.819 31.616 134.587 31.304 135.531 31.304C136.323 31.304 136.967 31.488 137.463 31.856C137.967 32.224 138.319 32.748 138.519 33.428H137.343C137.215 33.044 136.995 32.744 136.683 32.528C136.371 32.312 135.987 32.204 135.531 32.204C134.907 32.204 134.403 32.424 134.019 32.864C133.643 33.296 133.455 33.912 133.455 34.712C133.455 35.504 133.643 36.12 134.019 36.56C134.403 36.992 134.907 37.208 135.531 37.208C136.467 37.208 137.071 36.8 137.343 35.984H138.519C138.319 36.632 137.963 37.148 137.451 37.532C136.947 37.916 136.307 38.108 135.531 38.108ZM142.726 38.108C141.782 38.108 141.014 37.796 140.422 37.172C139.83 36.548 139.534 35.724 139.534 34.7C139.534 33.676 139.834 32.856 140.434 32.24C141.034 31.616 141.81 31.304 142.762 31.304C143.722 31.304 144.49 31.6 145.066 32.192C145.65 32.776 145.942 33.524 145.942 34.436C145.942 34.668 145.926 34.884 145.894 35.084H140.65C140.682 35.74 140.886 36.26 141.262 36.644C141.646 37.02 142.134 37.208 142.726 37.208C143.174 37.208 143.55 37.108 143.854 36.908C144.166 36.708 144.394 36.444 144.538 36.116H145.714C145.506 36.692 145.146 37.168 144.634 37.544C144.13 37.92 143.494 38.108 142.726 38.108ZM144.802 34.292C144.794 33.66 144.594 33.156 144.202 32.78C143.81 32.396 143.322 32.204 142.738 32.204C142.162 32.204 141.682 32.392 141.298 32.768C140.914 33.136 140.702 33.644 140.662 34.292H144.802Z\",\n fill: \"#9965F4\"\n }\n )\n ] }),\n /* @__PURE__ */ n(\"defs\", { children: /* @__PURE__ */ n(\"clipPath\", { id: \"clip0_12018_69701\", children: /* @__PURE__ */ n(\"rect\", { width: \"147\", height: \"44\", fill: \"white\" }) }) })\n ]\n }\n ) : d === \"supplier\" ? /* @__PURE__ */ v(\n F,\n {\n component: \"svg\",\n viewBox: \"0 0 195 24\",\n fill: \"none\",\n sx: { height: w, width: M, ...c },\n ref: h,\n children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z\",\n fill: T\n }\n ),\n /* @__PURE__ */ v(\"g\", { clipPath: \"url(#clip0_14141_226706)\", children: [\n /* @__PURE__ */ n(\"path\", { d: \"M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z\", fill: _ }),\n /* @__PURE__ */ n(\"path\", { d: \"M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z\", fill: _ }),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M11.6364 12.3619C11.6371 12.3619 11.6378 12.3619 11.6386 12.3619V20H4C4.00073 15.7816 7.41898 12.3619 11.6364 12.3619Z\",\n fill: _\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M19.9978 12.3619C19.9986 12.3619 19.9993 12.3619 20 12.3619V20H12.3615C12.3622 15.7816 15.7804 12.3619 19.9978 12.3619Z\",\n fill: _\n }\n )\n ] }),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M44.3086 10.7046V9.40549H41.814V18.5149H44.3086V13.0948C44.9333 12.2794 46.98 11.6918 48.065 11.6559L47.8554 9.21362C46.4663 9.28557 45.11 9.76922 44.3086 10.7046Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M55.4216 10.2369C54.6572 9.47347 53.7283 9.23364 52.8036 9.23364C50.1692 9.23364 48.1719 11.2442 48.1719 13.9463C48.1719 16.6483 50.1651 18.6908 52.7831 18.6908C53.7982 18.6908 54.7229 18.3791 55.4175 17.6876V18.519H57.9121V9.40552H55.4175V10.2369H55.4216ZM55.4216 15.2253C54.9942 15.8849 54.1393 16.3006 53.1941 16.3006C51.768 16.3006 50.6994 15.2973 50.6994 13.9622C50.6994 12.6272 51.7844 11.6239 53.2105 11.6239C54.1352 11.6239 54.9901 12.0236 55.4175 12.6632V15.2253H55.4216Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M64.0967 16.1927C62.724 16.1927 61.6925 15.2573 61.6925 13.9743C61.6925 12.6752 62.7446 11.7239 64.1131 11.7239C64.968 11.7239 65.6995 12.1036 66.1269 12.7631L67.9805 10.9964C67.0886 9.90519 65.6297 9.22968 64.0638 9.22968C61.339 9.22968 59.0786 11.2922 59.0786 13.9943C59.0786 16.6443 61.2691 18.6869 64.0309 18.6869C65.7406 18.6869 67.3599 17.8914 68.3216 16.6443L66.3448 14.9815C65.8762 15.745 65.0584 16.1927 64.0967 16.1927Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M74.9379 12.8191L78.5874 9.40955L78.5915 9.40555H78.5874H75.4393L71.7364 12.903V8.41027C71.724 7.07922 70.6144 6 69.2417 6V18.515H71.7364V15.8129L73.109 14.5299L75.8708 18.515H78.8792L74.9379 12.8191Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M85.9642 15.5171C85.3601 16.0367 84.9121 16.2965 84.308 16.2965C83.6134 16.2965 83.1326 15.9328 83.1326 15.1893V11.7438C81.7599 11.7438 80.6462 12.823 80.6379 14.158V15.3812C80.6379 17.4077 82.0805 18.6908 84.308 18.6908C85.6601 18.6908 86.5889 18.2071 87.4767 17.3398L85.9642 15.5171Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M92.6054 9.23364C89.7367 9.23364 87.5996 11.2602 87.5996 13.9622C87.5996 16.6643 89.7367 18.6908 92.6054 18.6908C95.474 18.6908 97.6111 16.6643 97.6111 13.9622C97.6111 11.2602 95.4699 9.23364 92.6054 9.23364ZM92.6054 16.2966C91.1998 16.2966 90.1312 15.2933 90.1312 13.9582C90.1312 12.6232 91.1998 11.6199 92.6054 11.6199C94.0109 11.6199 95.0795 12.6232 95.0795 13.9582C95.0795 15.2933 94.0109 16.2966 92.6054 16.2966Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M104.786 9.21362C103.397 9.28157 102.045 9.76922 101.244 10.7046V9.40549H98.7491V18.5149H101.244V13.0948C101.868 12.2794 103.915 11.6918 105 11.6559L104.786 9.21362Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M39.3812 15.5174C38.7771 16.0371 38.3291 16.2969 37.725 16.2969C37.0304 16.2969 36.5496 15.9331 36.5496 15.1897V11.7441C35.1769 11.7441 34.0632 12.8234 34.0549 14.1584V15.3815C34.0549 17.4081 35.4975 18.6911 37.725 18.6911C39.0771 18.6911 40.0059 18.2075 40.8937 17.3401L39.3812 15.5174Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M36.5496 9.40181V8.44249C36.5413 7.11145 35.4276 6.03223 34.0549 6.03223V9.39781H32V11.7361H34.0549H36.5496H40.2895V9.40181H36.5496Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M83.1326 9.40562V8.3144C83.0504 7.04732 81.9695 6.04004 80.6461 6.04004H80.6502H80.6379V9.40562H78.583V11.7439H80.6379H83.1326H86.8725V9.40562H83.1326Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M118.652 9.636V10.524H115.016V13.344H117.968V14.232H115.016V18H113.924V9.636H118.652ZM124.163 18.084C123.387 18.084 122.679 17.904 122.039 17.544C121.399 17.176 120.891 16.668 120.515 16.02C120.147 15.364 119.963 14.628 119.963 13.812C119.963 12.996 120.147 12.264 120.515 11.616C120.891 10.96 121.399 10.452 122.039 10.092C122.679 9.724 123.387 9.54 124.163 9.54C124.947 9.54 125.659 9.724 126.299 10.092C126.939 10.452 127.443 10.956 127.811 11.604C128.179 12.252 128.363 12.988 128.363 13.812C128.363 14.636 128.179 15.372 127.811 16.02C127.443 16.668 126.939 17.176 126.299 17.544C125.659 17.904 124.947 18.084 124.163 18.084ZM124.163 17.136C124.747 17.136 125.271 17 125.735 16.728C126.207 16.456 126.575 16.068 126.839 15.564C127.111 15.06 127.247 14.476 127.247 13.812C127.247 13.14 127.111 12.556 126.839 12.06C126.575 11.556 126.211 11.168 125.747 10.896C125.283 10.624 124.755 10.488 124.163 10.488C123.571 10.488 123.043 10.624 122.579 10.896C122.115 11.168 121.747 11.556 121.475 12.06C121.211 12.556 121.079 13.14 121.079 13.812C121.079 14.476 121.211 15.06 121.475 15.564C121.747 16.068 122.115 16.456 122.579 16.728C123.051 17 123.579 17.136 124.163 17.136ZM131.272 9.636V14.928C131.272 15.672 131.452 16.224 131.812 16.584C132.18 16.944 132.688 17.124 133.336 17.124C133.976 17.124 134.476 16.944 134.836 16.584C135.204 16.224 135.388 15.672 135.388 14.928V9.636H136.48V14.916C136.48 15.612 136.34 16.2 136.06 16.68C135.78 17.152 135.4 17.504 134.92 17.736C134.448 17.968 133.916 18.084 133.324 18.084C132.732 18.084 132.196 17.968 131.716 17.736C131.244 17.504 130.868 17.152 130.588 16.68C130.316 16.2 130.18 15.612 130.18 14.916V9.636H131.272ZM143.106 18L141.114 14.58H139.794V18H138.702V9.636H141.402C142.034 9.636 142.566 9.744 142.998 9.96C143.438 10.176 143.766 10.468 143.982 10.836C144.198 11.204 144.306 11.624 144.306 12.096C144.306 12.672 144.138 13.18 143.802 13.62C143.474 14.06 142.978 14.352 142.314 14.496L144.414 18H143.106ZM139.794 13.704H141.402C141.994 13.704 142.438 13.56 142.734 13.272C143.03 12.976 143.178 12.584 143.178 12.096C143.178 11.6 143.03 11.216 142.734 10.944C142.446 10.672 142.002 10.536 141.402 10.536H139.794V13.704ZM152.979 18H151.887L147.495 11.34V18H146.403V9.624H147.495L151.887 16.272V9.624H152.979V18ZM156.332 9.636V18H155.24V9.636H156.332ZM161.246 18.084C160.694 18.084 160.198 17.988 159.758 17.796C159.326 17.596 158.986 17.324 158.738 16.98C158.49 16.628 158.362 16.224 158.354 15.768H159.518C159.558 16.16 159.718 16.492 159.998 16.764C160.286 17.028 160.702 17.16 161.246 17.16C161.766 17.16 162.174 17.032 162.47 16.776C162.774 16.512 162.926 16.176 162.926 15.768C162.926 15.448 162.838 15.188 162.662 14.988C162.486 14.788 162.266 14.636 162.002 14.532C161.738 14.428 161.382 14.316 160.934 14.196C160.382 14.052 159.938 13.908 159.602 13.764C159.274 13.62 158.99 13.396 158.75 13.092C158.518 12.78 158.402 12.364 158.402 11.844C158.402 11.388 158.518 10.984 158.75 10.632C158.982 10.28 159.306 10.008 159.722 9.816C160.146 9.624 160.63 9.528 161.174 9.528C161.958 9.528 162.598 9.724 163.094 10.116C163.598 10.508 163.882 11.028 163.946 11.676H162.746C162.706 11.356 162.538 11.076 162.242 10.836C161.946 10.588 161.554 10.464 161.066 10.464C160.61 10.464 160.238 10.584 159.95 10.824C159.662 11.056 159.518 11.384 159.518 11.808C159.518 12.112 159.602 12.36 159.77 12.552C159.946 12.744 160.158 12.892 160.406 12.996C160.662 13.092 161.018 13.204 161.474 13.332C162.026 13.484 162.47 13.636 162.806 13.788C163.142 13.932 163.43 14.16 163.67 14.472C163.91 14.776 164.03 15.192 164.03 15.72C164.03 16.128 163.922 16.512 163.706 16.872C163.49 17.232 163.17 17.524 162.746 17.748C162.322 17.972 161.822 18.084 161.246 18.084ZM168.688 18.084C168.136 18.084 167.64 17.988 167.2 17.796C166.768 17.596 166.428 17.324 166.18 16.98C165.932 16.628 165.804 16.224 165.796 15.768H166.96C167 16.16 167.16 16.492 167.44 16.764C167.728 17.028 168.144 17.16 168.688 17.16C169.208 17.16 169.616 17.032 169.912 16.776C170.216 16.512 170.368 16.176 170.368 15.768C170.368 15.448 170.28 15.188 170.104 14.988C169.928 14.788 169.708 14.636 169.444 14.532C169.18 14.428 168.824 14.316 168.376 14.196C167.824 14.052 167.38 13.908 167.044 13.764C166.716 13.62 166.432 13.396 166.192 13.092C165.96 12.78 165.844 12.364 165.844 11.844C165.844 11.388 165.96 10.984 166.192 10.632C166.424 10.28 166.748 10.008 167.164 9.816C167.588 9.624 168.072 9.528 168.616 9.528C169.4 9.528 170.04 9.724 170.536 10.116C171.04 10.508 171.324 11.028 171.388 11.676H170.188C170.148 11.356 169.98 11.076 169.684 10.836C169.388 10.588 168.996 10.464 168.508 10.464C168.052 10.464 167.68 10.584 167.392 10.824C167.104 11.056 166.96 11.384 166.96 11.808C166.96 12.112 167.044 12.36 167.212 12.552C167.388 12.744 167.6 12.892 167.848 12.996C168.104 13.092 168.46 13.204 168.916 13.332C169.468 13.484 169.912 13.636 170.248 13.788C170.584 13.932 170.872 14.16 171.112 14.472C171.352 14.776 171.472 15.192 171.472 15.72C171.472 16.128 171.364 16.512 171.148 16.872C170.932 17.232 170.612 17.524 170.188 17.748C169.764 17.972 169.264 18.084 168.688 18.084ZM174.571 10.524V13.32H177.619V14.22H174.571V17.1H177.979V18H173.479V9.624H177.979V10.524H174.571ZM181.1 9.636V14.928C181.1 15.672 181.28 16.224 181.64 16.584C182.008 16.944 182.516 17.124 183.164 17.124C183.804 17.124 184.304 16.944 184.664 16.584C185.032 16.224 185.216 15.672 185.216 14.928V9.636H186.308V14.916C186.308 15.612 186.168 16.2 185.888 16.68C185.608 17.152 185.228 17.504 184.748 17.736C184.276 17.968 183.744 18.084 183.152 18.084C182.56 18.084 182.024 17.968 181.544 17.736C181.072 17.504 180.696 17.152 180.416 16.68C180.144 16.2 180.008 15.612 180.008 14.916V9.636H181.1ZM192.933 18L190.941 14.58H189.621V18H188.529V9.636H191.229C191.861 9.636 192.393 9.744 192.825 9.96C193.265 10.176 193.593 10.468 193.809 10.836C194.025 11.204 194.133 11.624 194.133 12.096C194.133 12.672 193.965 13.18 193.629 13.62C193.301 14.06 192.805 14.352 192.141 14.496L194.241 18H192.933ZM189.621 13.704H191.229C191.821 13.704 192.265 13.56 192.561 13.272C192.857 12.976 193.005 12.584 193.005 12.096C193.005 11.6 192.857 11.216 192.561 10.944C192.273 10.672 191.829 10.536 191.229 10.536H189.621V13.704Z\",\n fill: g.text.secondary\n }\n ),\n /* @__PURE__ */ n(\"defs\", { children: /* @__PURE__ */ n(\"clipPath\", { id: \"clip0_14141_226706\", children: /* @__PURE__ */ n(\"rect\", { width: \"16\", height: \"16\", fill: \"white\", transform: \"translate(4 4)\" }) }) })\n ]\n }\n ) : /* @__PURE__ */ v(\n F,\n {\n component: \"svg\",\n viewBox: \"0 0 105 24\",\n fill: \"none\",\n sx: { height: w, width: M, ...c },\n ref: h,\n children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M0 3C0 1.34315 1.34315 0 3 0H21C22.6569 0 24 1.34315 24 3V21C24 22.6569 22.6569 24 21 24H3C1.34315 24 0 22.6569 0 21V3Z\",\n fill: T\n }\n ),\n /* @__PURE__ */ v(\"g\", { clipPath: \"url(#clip0_14141_226601)\", children: [\n /* @__PURE__ */ n(\"path\", { d: \"M12.3637 4C12.3629 4 12.3622 4 12.3615 4V11.6381H20C19.9993 7.41966 16.5811 4 12.3637 4Z\", fill: _ }),\n /* @__PURE__ */ n(\"path\", { d: \"M4.0022 4C4.00147 4 4.00073 4 4 4V11.6381H11.6386C11.6378 7.41966 8.2196 4 4.0022 4Z\", fill: _ }),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M11.6364 12.3619C11.6371 12.3619 11.6378 12.3619 11.6386 12.3619V20H4C4.00073 15.7816 7.41898 12.3619 11.6364 12.3619Z\",\n fill: _\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M19.9978 12.3619C19.9986 12.3619 19.9993 12.3619 20 12.3619V20H12.3615C12.3622 15.7816 15.7804 12.3619 19.9978 12.3619Z\",\n fill: _\n }\n )\n ] }),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M44.3086 10.7046V9.40549H41.814V18.5149H44.3086V13.0948C44.9333 12.2794 46.98 11.6918 48.065 11.6559L47.8554 9.21362C46.4663 9.28557 45.11 9.76922 44.3086 10.7046Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M55.4215 10.2369C54.6571 9.47347 53.7283 9.23364 52.8036 9.23364C50.1692 9.23364 48.1718 11.2442 48.1718 13.9463C48.1718 16.6483 50.1651 18.6908 52.783 18.6908C53.7981 18.6908 54.7229 18.3791 55.4174 17.6876V18.519H57.9121V9.40552H55.4174V10.2369H55.4215ZM55.4215 15.2253C54.9941 15.8849 54.1393 16.3006 53.194 16.3006C51.7679 16.3006 50.6994 15.2973 50.6994 13.9622C50.6994 12.6272 51.7843 11.6239 53.2104 11.6239C54.1352 11.6239 54.99 12.0236 55.4174 12.6632V15.2253H55.4215Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M64.0967 16.1927C62.724 16.1927 61.6925 15.2573 61.6925 13.9743C61.6925 12.6752 62.7446 11.7239 64.1131 11.7239C64.968 11.7239 65.6995 12.1036 66.1269 12.7631L67.9805 10.9964C67.0886 9.90519 65.6297 9.22968 64.0638 9.22968C61.339 9.22968 59.0786 11.2922 59.0786 13.9943C59.0786 16.6443 61.2691 18.6869 64.0309 18.6869C65.7406 18.6869 67.3599 17.8914 68.3216 16.6443L66.3448 14.9815C65.8762 15.745 65.0584 16.1927 64.0967 16.1927Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M74.938 12.8191L78.5875 9.40955L78.5916 9.40555H78.5875H75.4394L71.7364 12.903V8.41027C71.7241 7.07922 70.6144 6 69.2418 6V18.515H71.7364V15.8129L73.1091 14.5299L75.8709 18.515H78.8793L74.938 12.8191Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M85.9642 15.5171C85.3601 16.0367 84.9121 16.2965 84.308 16.2965C83.6134 16.2965 83.1326 15.9328 83.1326 15.1893V11.7438C81.7599 11.7438 80.6462 12.823 80.6379 14.158V15.3812C80.6379 17.4077 82.0805 18.6908 84.308 18.6908C85.6601 18.6908 86.5889 18.2071 87.4767 17.3398L85.9642 15.5171Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M92.6054 9.23364C89.7367 9.23364 87.5996 11.2602 87.5996 13.9622C87.5996 16.6643 89.7367 18.6908 92.6054 18.6908C95.474 18.6908 97.6111 16.6643 97.6111 13.9622C97.6111 11.2602 95.4699 9.23364 92.6054 9.23364ZM92.6054 16.2966C91.1998 16.2966 90.1312 15.2933 90.1312 13.9582C90.1312 12.6232 91.1998 11.6199 92.6054 11.6199C94.0109 11.6199 95.0795 12.6232 95.0795 13.9582C95.0795 15.2933 94.0109 16.2966 92.6054 16.2966Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M104.786 9.21362C103.397 9.28157 102.045 9.76922 101.244 10.7046V9.40549H98.7491V18.5149H101.244V13.0948C101.868 12.2794 103.915 11.6918 105 11.6559L104.786 9.21362Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M39.3812 15.5174C38.7771 16.0371 38.3291 16.2969 37.725 16.2969C37.0304 16.2969 36.5496 15.9331 36.5496 15.1897V11.7441C35.1769 11.7441 34.0632 12.8234 34.0549 14.1584V15.3815C34.0549 17.4081 35.4975 18.6911 37.725 18.6911C39.0771 18.6911 40.0059 18.2075 40.8937 17.3401L39.3812 15.5174Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M36.5496 9.40181V8.44249C36.5413 7.11145 35.4276 6.03223 34.0549 6.03223V9.39781H32V11.7361H34.0549H36.5496H40.2895V9.40181H36.5496Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M83.1326 9.40562V8.3144C83.0504 7.04732 81.9695 6.04004 80.6461 6.04004H80.6502H80.6379V9.40562H78.583V11.7439H80.6379H83.1326H86.8725V9.40562H83.1326Z\",\n fill: p\n }\n ),\n /* @__PURE__ */ n(\"defs\", { children: /* @__PURE__ */ n(\"clipPath\", { id: \"clip0_14141_226601\", children: /* @__PURE__ */ n(\"rect\", { width: \"16\", height: \"16\", fill: \"white\", transform: \"translate(4 4)\" }) }) })\n ]\n }\n );\n}, $i = ue(Vi), Za = ({ component: e = \"a\", ...r }) => /* @__PURE__ */ n(Jt, { component: e, onClick: (t) => t.preventDefault(), ...r }), Di = ({ children: e, sx: r, ...t }, i) => /* @__PURE__ */ n(\n ir,\n {\n sx: {\n boxShadow: 24,\n left: \"50%\",\n maxHeight: \"90%\",\n maxWidth: 500,\n overflow: \"auto\",\n p: 3,\n position: \"absolute\",\n top: \"50%\",\n transform: \"translate(-50%, -50%)\",\n width: \"100%\",\n ...r\n },\n ref: i,\n ...t,\n children: e\n }\n), za = ue(Di), Pi = ({ className: e, style: r, minRows: t = 4, ...i }, a) => {\n const { palette: o, shape: l, spacing: c } = be();\n return /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ n(\n i1,\n {\n styles: {\n \"& .MuiTextArea\": {\n \"&:focus\": {\n border: `solid 1px ${o.primary.main} !important`,\n outline: `solid 1px ${o.primary.main} !important`\n }\n }\n }\n }\n ),\n /* @__PURE__ */ n(\n Kt,\n {\n className: [e, \"MuiTextArea\"].join(\" \").trim(),\n ref: a,\n minRows: t,\n style: {\n backgroundColor: \"transparent\",\n borderColor: o.mode === \"dark\" ? o.border.outline : o.grey[200],\n borderRadius: l.borderRadius,\n color: o.text.primary,\n marginTop: c(1),\n maxWidth: \"100%\",\n minWidth: \"100%\",\n padding: c(1),\n ...r\n },\n ...i\n }\n )\n ] });\n}, Na = ue(Pi), Wa = ({ fullWidth: e, value: r, setValue: t, min: i = 1, max: a = 50, ...o }) => /* @__PURE__ */ n(\n R1,\n {\n onChange: (x) => {\n const { target: b } = x, g = +b.value;\n g <= a && g >= i && (t == null || t(g));\n },\n autoComplete: \"off\",\n InputProps: {\n endAdornment: /* @__PURE__ */ n(a1, { position: \"end\", children: /* @__PURE__ */ n(Ae, { disabled: r === a, onClick: () => {\n const x = Number(r) + 1;\n t == null || t(x <= a ? x : Number(r));\n }, size: \"small\", \"aria-label\": \"increment\", children: /* @__PURE__ */ n(we, { viewBox: \"0 0 24 24\", children: /* @__PURE__ */ n(\"path\", { d: \"M18 13h-5v5c0 .55-.45 1-1 1s-1-.45-1-1v-5H6c-.55 0-1-.45-1-1s.45-1 1-1h5V6c0-.55.45-1 1-1s1 .45 1 1v5h5c.55 0 1 .45 1 1s-.45 1-1 1z\" }) }) }) }),\n startAdornment: /* @__PURE__ */ n(a1, { position: \"start\", children: /* @__PURE__ */ n(Ae, { onClick: () => {\n const x = Number(r) - 1;\n t == null || t(x >= i ? x : Number(r));\n }, disabled: r === i || r === 0, size: \"small\", \"aria-label\": \"decrement\", children: /* @__PURE__ */ n(we, { viewBox: \"0 0 24 24\", children: /* @__PURE__ */ n(\"path\", { d: \"M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1z\" }) }) }) }),\n sx: {\n \"& .MuiInputBase-input\": {\n textAlign: \"center\",\n ...!e && { width: 40 }\n }\n }\n },\n fullWidth: e,\n value: r,\n ...o\n }\n), vt = ({ color: e = \"currentColor\" }) => /* @__PURE__ */ n(we, { focusable: \"false\", \"aria-hidden\": \"true\", viewBox: \"0 0 24 24\", children: /* @__PURE__ */ n(\n \"path\",\n {\n fill: e,\n d: \"M4 18h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zm0-5h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1s.45 1 1 1zM3 7c0 .55.45 1 1 1h16c.55 0 1-.45 1-1s-.45-1-1-1H4c-.55 0-1 .45-1 1z\"\n }\n) }), Bi = () => {\n const { openDrawerMenu: e, AppBar: r } = _e(je), { palette: t } = be(), i = t.mode === \"dark\" ? t.background.default : t.primary.black, a = r && cr(r, { onClickBurger: e });\n return r ? a : /* @__PURE__ */ n(\n Y1,\n {\n position: \"fixed\",\n elevation: 0,\n sx: {\n background: i,\n borderBottom: ({ palette: o }) => `1px solid ${o.mode === \"dark\" ? o.divider : i}`\n },\n children: /* @__PURE__ */ n(Qt, { component: Z, direction: \"row\", spacing: 3, height: \"100%\", justifyContent: \"space-between\", children: /* @__PURE__ */ n(Ae, { onClick: e, edge: \"end\", color: \"inherit\", \"aria-label\": \"menu\", children: /* @__PURE__ */ n(vt, {}) }) })\n }\n );\n}, fr = ({ sx: e, color: r = \"currentColor\" }) => /* @__PURE__ */ n(\n we,\n {\n sx: {\n fill: ({ palette: t }) => r || (t.mode === \"dark\" ? t.common.white : t.common.black),\n ...e\n },\n height: 24,\n width: 24,\n children: /* @__PURE__ */ n(\"path\", { d: \"M18.3 5.71a.9959.9959 0 0 0-1.41 0L12 10.59 7.11 5.7a.9959.9959 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4z\" })\n }\n), hr = ({ url: e, end: r, children: t, active: i, state: a, component: o, disabled: l }) => {\n const { closeDrawerMenu: c } = _e(je);\n return l ? /* @__PURE__ */ n(X, { component: \"div\", color: \"text.disabled\", \"aria-disabled\": \"true\", children: t }) : o ? /* @__PURE__ */ n(o, { onClick: c, to: e || \"#\", end: r, state: a, children: t }) : /* @__PURE__ */ n(F, { component: \"a\", href: e, onClick: c, className: i ? \"active\" : void 0, \"data-end\": r, \"data-state\": a, children: t });\n}, r1 = {\n bottomLink: {\n \"& a\": {\n \"& svg\": {\n color: \"text.secondary\"\n },\n \"&.active\": {\n \"& svg\": {\n color: \"text.primary\"\n },\n background: ({ palette: e }) => e.grey[50],\n borderColor: \"divider\",\n color: \"text.primary\"\n },\n \"&:hover\": {\n background: ({ palette: e }) => e.grey[50]\n },\n alignItems: \"center\",\n borderColor: \"transparent\",\n borderRadius: ({ shape: e }) => `${e.borderRadius}px`,\n borderStyle: \"solid\",\n borderWidth: 1,\n color: \"text.primary\",\n display: \"flex\",\n fontSize: 16,\n justifyContent: \"flex-start\",\n paddingX: 3,\n paddingY: 1,\n textAlign: \"left\",\n textDecoration: \"none\",\n width: \"100%\"\n },\n p: 2\n },\n container: {\n backgroundColor: \"grey.A100\",\n display: \"flex\",\n flexDirection: \"column\",\n height: \"100%\"\n },\n logo: {\n \"& svg, & img\": {\n maxWidth: \"100%\"\n },\n flex: 1,\n span: {\n width: \"100% ! important\"\n }\n },\n logoContainer: {\n display: \"flex\",\n justifyContent: \"center\",\n paddingY: 2\n }\n}, Nr = ({ children: e, ...r }) => {\n const {\n hideSearchDesktop: t,\n closeDrawerMenu: i,\n isMobile: a,\n isTablet: o,\n isDrawerOpen: l,\n sideBarWidth: c,\n bottomLink: d,\n NavLink: u,\n Footer: h,\n Search: x = r.Logo,\n Logo: b = r.Logo\n } = _e(je), { palette: g } = be(), S = g.mode === \"dark\" ? g.background.default : g.primary.black, y = a && l ? \"none\" : `solid 1px ${g.divider}`, m = t ? !(!a && !o) : !0;\n return /* @__PURE__ */ v(\n F,\n {\n sx: {\n ...r1.container,\n borderRight: y,\n overflowX: \"auto\",\n width: a ? \"100%\" : c || \"auto\"\n },\n component: \"aside\",\n children: [\n b && /* @__PURE__ */ v(\n Z,\n {\n sx: {\n ...r1.logoContainer,\n paddingX: 2\n },\n direction: \"row\",\n alignItems: \"center\",\n spacing: 3,\n children: [\n /* @__PURE__ */ n(\n F,\n {\n sx: {\n ...r1.logo,\n ...a && {\n \"& svg, & img\": {\n ...r1.logo[\"& svg, & img\"],\n maxHeight: 25,\n width: \"auto\"\n }\n }\n },\n children: b\n }\n ),\n a && /* @__PURE__ */ n(Ae, { onClick: i, children: /* @__PURE__ */ n(fr, { color: g.getContrastText(S) }) })\n ]\n }\n ),\n x && m && /* @__PURE__ */ n(F, { p: 2, children: x }),\n /* @__PURE__ */ n(F, { flex: 1, children: e }),\n d && /* @__PURE__ */ n(F, { sx: r1.bottomLink, children: /* @__PURE__ */ n(hr, { component: u, ...d, children: /* @__PURE__ */ v(Z, { alignItems: \"center\", justifyContent: \"center\", spacing: 1, direction: \"row\", children: [\n (d == null ? void 0 : d.icon) && /* @__PURE__ */ n(F, { component: \"span\", display: \"flex\", children: d == null ? void 0 : d.icon }),\n (d == null ? void 0 : d.label) && /* @__PURE__ */ n(F, { component: \"span\", display: \"flex\", children: d == null ? void 0 : d.label })\n ] }) }) }),\n h\n ]\n }\n );\n}, Zi = {\n list: {\n \"& [aria-disabled='true']\": {\n cursor: \"default\"\n },\n \"& button\": {\n background: \"none !important\"\n },\n \"& button, & a\": {\n color: \"text.primary\"\n },\n \"& button, & a, & [aria-disabled='true']\": {\n \"& svg\": {\n color: \"text.secondary\"\n },\n \"&.active\": {\n \"& svg\": {\n color: \"text.primary\"\n },\n background: ({ palette: e }) => e.grey[50],\n borderColor: \"divider\",\n color: \"text.primary\"\n },\n \"&:hover\": {\n background: ({ palette: e }) => e.grey[50]\n },\n alignItems: \"center\",\n borderColor: \"transparent\",\n borderRadius: ({ shape: e }) => `${e.borderRadius}px`,\n borderStyle: \"solid\",\n borderWidth: 1,\n display: \"flex\",\n fontSize: 16,\n justifyContent: \"flex-start\",\n paddingX: 3,\n paddingY: 1,\n textAlign: \"left\",\n textDecoration: \"none\",\n width: \"100%\"\n },\n mt: 3\n }\n}, Wr = ({ items: e, ...r }) => {\n const { NavLink: t = r.NavLink, isMobile: i } = _e(je);\n return /* @__PURE__ */ n(F, { px: 2, component: \"nav\", children: /* @__PURE__ */ n(v1, { sx: { ...Zi.list }, children: e == null ? void 0 : e.filter((a) => {\n const o = !(a && typeof a == \"object\" && \"hideOnMobile\" in a && i && a.hideOnMobile), l = !(a && typeof a == \"object\" && \"hasAccess\" in a && !a.hasAccess);\n return o && l;\n }).map((a, o) => {\n if (A1(a))\n return a;\n if (a && typeof a == \"object\" && \"label\" in a) {\n const { count: l, url: c, label: d, icon: u, active: h, disabled: x } = a, b = `${c}-${d}-${o}`;\n return /* @__PURE__ */ n(Le, { disableGutters: !0, sx: { paddingY: 0.5 }, children: /* @__PURE__ */ n(hr, { url: c, component: t, active: h, disabled: x, children: /* @__PURE__ */ v(Z, { direction: \"row\", component: \"span\", spacing: 1.5, width: \"100%\", alignItems: \"center\", children: [\n u && /* @__PURE__ */ n(F, { component: \"span\", display: \"flex\", alignItems: \"center\", children: u }),\n /* @__PURE__ */ v(Z, { direction: \"row\", justifyContent: \"space-between\", flex: 1, children: [\n d,\n l && /* @__PURE__ */ n(o1, { color: \"warning\", size: \"small\", label: l, variant: \"rounded\" })\n ] })\n ] }) }) }, b);\n }\n return null;\n }) }) });\n}, wt = {\n closeDrawerMenu: () => {\n },\n isDrawerOpen: !1,\n isMobile: !1,\n isTablet: !1,\n openDrawerMenu: () => {\n }\n}, je = k1(wt), zi = () => {\n const { items: e, disableResponsive: r, isMobile: t, isTablet: i, isDrawerOpen: a, closeDrawerMenu: o, sideBarWidth: l, openDrawerMenu: c } = _e(je);\n return (t || i) && !r ? /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ n(Bi, {}),\n /* @__PURE__ */ n(en, { anchor: \"left\", open: a, onClose: o, onOpen: c, children: /* @__PURE__ */ n(Nr, { children: /* @__PURE__ */ n(Wr, { items: e }) }) })\n ] }) : /* @__PURE__ */ n(Nr, { width: l, children: /* @__PURE__ */ n(Wr, { items: e }) });\n}, Ni = ({\n AppBar: e,\n NavLink: r,\n Search: t,\n Logo: i,\n Footer: a,\n items: o,\n enableSearchFocusShortcut: l,\n disableResponsive: c,\n hideSearchDesktop: d,\n bottomLink: u,\n sideBarWidth: h = 260\n}) => {\n const { breakpoints: x } = be(), b = s1(x.down(\"sm\")), g = s1(x.between(\"sm\", \"md\")), [S, y] = ie(wt.isDrawerOpen), f = pe(() => {\n y(!1);\n }, []), m = pe(() => {\n y(!0);\n }, []), R = _1(\n () => ({\n AppBar: e,\n bottomLink: u,\n closeDrawerMenu: f,\n disableResponsive: c,\n enableSearchFocusShortcut: l,\n Footer: a,\n hideSearchDesktop: d,\n isDrawerOpen: S,\n isMobile: b,\n isTablet: g,\n items: o,\n Logo: i,\n NavLink: r,\n openDrawerMenu: m,\n Search: t,\n sideBarWidth: h\n }),\n [\n f,\n c,\n S,\n b,\n g,\n o,\n m,\n h,\n i,\n r,\n l,\n t,\n d,\n u,\n e,\n a\n ]\n );\n return /* @__PURE__ */ n(je.Provider, { value: R, children: /* @__PURE__ */ n(zi, {}) });\n}, ja = at(Ni), Wi = \"No data\", jr = {\n large: 80,\n medium: 50,\n small: 40\n}, ji = ({ children: e, ...r }, t) => /* @__PURE__ */ n(ir, { component: \"li\", ref: t, ...r, children: e }), Yi = ue(ji), Ui = ({ children: e, isEmpty: r, isLoading: t, emptyMessage: i, sx: a, height: o, onClick: l, size: c = \"medium\", ...d }, u) => t ? /* @__PURE__ */ n(Ce, { width: \"100%\", variant: \"rounded\", height: o || jr[c], sx: { marginBottom: 1 }, ref: u, component: \"li\" }) : r ? /* @__PURE__ */ n(Le, { disablePadding: !0, children: /* @__PURE__ */ n(ar, { severity: \"info\", sx: { width: \"100%\" }, ref: u, children: i || Wi }) }) : /* @__PURE__ */ n(\n Le,\n {\n component: Yi,\n ref: u,\n onClick: l,\n sx: {\n alignItems: \"center\",\n display: \"flex\",\n height: o || jr[c],\n marginBottom: 1,\n px: 2,\n width: \"100%\",\n ...l && {\n \"&:hover\": {\n backgroundColor: \"action.hover\"\n },\n cursor: \"pointer\"\n },\n ...a\n },\n ...d,\n children: /* @__PURE__ */ n(F, { flex: \"auto\", minWidth: 0, children: e })\n }\n), Ya = at(ue(Ui)), Gi = [\"warning\", \"info\", \"success\", \"error\", \"primary\", \"secondary\"], Xi = (e) => Gi.includes(e), qi = ({ color: e, sx: r, variant: t = \"filled\", fontSize: i = \"medium\" }, a) => {\n var h;\n const { palette: o } = be(), l = o.mode === \"dark\" ? o.text.disabled : o.grey[400], c = e || l, d = Xi(e) ? (h = o == null ? void 0 : o[e]) == null ? void 0 : h.main : c, u = Ee(d, 0.2);\n return /* @__PURE__ */ v(\n we,\n {\n viewBox: \"0 0 16 16\",\n ref: a,\n fontSize: i,\n sx: {\n ...i === \"small\" && { fontSize: 16 },\n ...i === \"large\" && { fontSize: 32 },\n ...r\n },\n children: [\n /* @__PURE__ */ n(\"circle\", { cx: \"8\", cy: \"8\", r: \"8\", fill: t === \"filled\" ? u : \"transparent\" }),\n t === \"filled\" ? /* @__PURE__ */ n(\"circle\", { cx: \"8\", cy: \"8\", r: \"4\", fill: d }) : /* @__PURE__ */ n(\"circle\", { cx: \"8\", cy: \"8\", r: \"4\", stroke: d, strokeWidth: \"2\", fill: \"transparent\" })\n ]\n }\n );\n}, m1 = ue(qi), Ji = {\n large: 17,\n medium: 16,\n small: 15\n}, S1 = ({ size: e, loadingPosition: r, position: t = \"absolute\" }) => /* @__PURE__ */ n(\n F,\n {\n position: t,\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"center\",\n sx: {\n ...t === \"relative\" && {\n ...r && {\n marginLeft: r === \"start\" ? 0 : 1,\n marginRight: r === \"start\" ? 1 : 0\n }\n }\n },\n children: /* @__PURE__ */ n(rt, { role: \"alert\", \"aria-busy\": \"true\", color: \"inherit\", size: Ji[e || \"medium\"] })\n }\n), Ki = ({\n children: e,\n isLoading: r,\n loadingIndicator: t,\n loadingPosition: i,\n size: a,\n startIcon: o,\n endIcon: l\n}) => {\n const c = o || l;\n return r && i ? /* @__PURE__ */ v(Z, { direction: i === \"start\" ? \"row\" : \"row-reverse\", alignItems: \"center\", children: [\n /* @__PURE__ */ n(S1, { size: a, position: \"relative\", loadingPosition: i }),\n /* @__PURE__ */ n(F, { component: \"span\", children: e })\n ] }) : r && !t && !c ? /* @__PURE__ */ v(Me, { children: [\n r && !t && /* @__PURE__ */ n(S1, { size: a }),\n /* @__PURE__ */ n(F, { component: \"span\", sx: { opacity: 0 }, children: e })\n ] }) : r && t ? /* @__PURE__ */ v(Me, { children: [\n \" \",\n t,\n \" \"\n ] }) : /* @__PURE__ */ n(F, { component: \"span\", children: e });\n}, Qi = (e, r) => {\n const {\n children: t,\n disabled: i,\n disableRipple: a,\n isLoading: o,\n loadingIndicator: l,\n loadingPosition: c,\n size: d,\n variant: u,\n startIcon: h,\n endIcon: x,\n ...b\n } = e;\n return /* @__PURE__ */ n(\n or,\n {\n disabled: i || o,\n ref: r,\n size: d,\n variant: u,\n disableRipple: a || u === \"link\",\n startIcon: o && h ? /* @__PURE__ */ n(S1, { position: \"relative\", size: d }) : h,\n endIcon: o && x ? /* @__PURE__ */ n(S1, { position: \"relative\", size: d }) : x,\n ...b,\n children: /* @__PURE__ */ n(\n Ki,\n {\n isLoading: o,\n loadingIndicator: l,\n loadingPosition: c,\n size: d,\n startIcon: h,\n endIcon: x,\n children: t\n }\n )\n }\n );\n}, Yr = ue(Qi), Et = ({ children: e, open: r, onClose: t, src: i, ...a }) => {\n const [o, l] = ie(!1), c = () => {\n l(!0);\n }, d = (u, h) => (u && (t == null || t(u, h), l(!1)), (x) => {\n t == null || t(x, h), l(!1);\n });\n return /* @__PURE__ */ n(rn, { open: r, onClose: d, ...a, children: /* @__PURE__ */ v(F, { sx: { \"&:focus\": { outline: \"none\" }, inset: 0, position: \"absolute\" }, children: [\n /* @__PURE__ */ n(\n Ae,\n {\n size: \"small\",\n \"aria-label\": \"close\",\n onClick: d(void 0, \"closeButton\"),\n sx: {\n \"&:hover\": {\n background: ({ palette: u }) => u.augmentColor({ color: { main: u.background.default } }).light\n },\n background: ({ palette: u }) => u.background.default,\n fontSize: 35,\n height: 30,\n position: \"absolute\",\n right: { sm: 15, xs: 10 },\n top: { sm: 15, xs: 10 },\n width: 30,\n zIndex: 9999\n },\n children: \"×\"\n }\n ),\n !o && !e && /* @__PURE__ */ n(F, { position: \"absolute\", width: \"100%\", height: \"100%\", display: \"flex\", alignItems: \"center\", justifyContent: \"center\", children: /* @__PURE__ */ n(rt, {}) }),\n /* @__PURE__ */ n(\n F,\n {\n sx: {\n left: \"50%\",\n outline: 0,\n position: \"absolute\",\n top: \"50%\",\n transform: \"translate(-50%, -50%)\",\n width: { lg: \"auto\", md: \"90%\", sm: \"80%\", xs: \"100%\" }\n },\n children: e || /* @__PURE__ */ n(tn, { in: r && o, children: /* @__PURE__ */ n(F, { component: \"img\", src: i, width: \"100%\", onLoad: c }) })\n }\n )\n ] }) });\n}, ea = ({ onClick: e }) => /* @__PURE__ */ n(\n Ae,\n {\n \"aria-label\": \"close\",\n onClick: e,\n sx: {\n position: \"absolute\",\n right: ({ spacing: r }) => r(2),\n top: ({ spacing: r }) => r(1)\n },\n children: /* @__PURE__ */ n(fr, {})\n }\n), ra = ({ children: e, value: r, index: t, orientation: i, paddingY: a, paddingX: o, fullHeight: l, sx: c }, d) => {\n const u = a || 3, h = o || i === \"vertical\" ? 3 : 0;\n return r === t ? /* @__PURE__ */ n(\n F,\n {\n ref: d,\n role: \"tabpanel\",\n hidden: r !== t,\n id: `tabpanel-${t}`,\n paddingY: u,\n paddingX: h,\n height: l ? \"100%\" : void 0,\n sx: c,\n children: e\n }\n ) : null;\n}, Ua = ue(ra), Ga = ({\n isLoading: e,\n children: r,\n emptyText: t,\n typographyProps: i = { color: \"text.secondary\", variant: \"body2\" },\n skeletonProps: a\n}) => e ? /* @__PURE__ */ n(X, { ...i, children: /* @__PURE__ */ n(Ce, { ...a }) }) : r ? /* @__PURE__ */ n(X, { ...i, children: r }) : /* @__PURE__ */ n(X, { ...i, color: \"text.disabled\", children: t }), ta = (e, r, t) => {\n const { w: i, h: a } = { h: Number(r), w: Number(e) };\n return i < 25 || a < 25 ? { borderRadius: `${t.borderRadiusS}px`, padding: 0.5 } : i < 50 || a < 50 ? { borderRadius: `${t.borderRadius}px`, padding: 1 } : { borderRadius: `${t.borderRadiusL}px`, padding: 1.5 };\n}, Ur = ({ width: e, height: r, sx: t }) => /* @__PURE__ */ n(Ce, { variant: \"rounded\", width: e, height: r, sx: t }), Xa = ({ src: e, isLoading: r, sx: t, width: i = 64, height: a = 64, alt: o = \"Article\" }) => {\n const [l, c] = ie(), [d, u] = ie(), { shape: h } = be(), { borderRadius: x, padding: b } = ta(i, a, h), g = { borderRadius: x, flexShrink: 0 }, S = e && !l && !d, y = !e || d && !l || d && l, f = (m) => {\n u(void 0), c(m);\n };\n return r ? /* @__PURE__ */ n(Ur, { width: i, height: a, sx: g }) : /* @__PURE__ */ v(Me, { children: [\n S && /* @__PURE__ */ n(Ur, { width: i, height: a, sx: g }),\n y && /* @__PURE__ */ n(\n Z,\n {\n justifyContent: \"center\",\n alignItems: \"center\",\n width: i,\n height: a,\n sx: {\n background: ({ palette: m }) => m.background.paper,\n padding: b,\n ...g,\n ...t\n },\n children: /* @__PURE__ */ v(\"svg\", { width: \"100%\", height: \"100%\", viewBox: \"0 0 39 38\", fill: \"none\", children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M31.2231 13.3867V20.5549C33.1243 20.5549 34.9475 19.7997 36.2918 18.4554C37.6361 17.1111 38.3913 15.2878 38.3913 13.3867H31.2231Z\",\n fill: \"#9DAAAB\"\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M28.1578 1.68575C28.4842 1.45212 28.89 1.35769 29.2859 1.42324C29.6819 1.48879 30.0356 1.70895 30.2692 2.03529L38.3968 13.3878L35.9294 15.1543L27.8018 3.80176C27.6858 3.63963 27.6029 3.45615 27.5579 3.26189C27.513 3.06762 27.5069 2.86638 27.54 2.66975C27.573 2.47311 27.6447 2.28495 27.7507 2.11609C27.8567 1.94722 27.9951 1.80097 28.1578 1.68575Z\",\n fill: \"#9DAAAB\"\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M2.40711 37.3042H25.3771C26.6704 37.3042 27.7188 36.2558 27.7188 34.9626V34.9546C27.7188 33.6614 26.6704 32.613 25.3771 32.613H2.40711C1.11388 32.613 0.065506 33.6614 0.065506 34.9546V34.9626C0.065506 36.2558 1.11388 37.3042 2.40711 37.3042Z\",\n fill: \"#D2D8D8\"\n }\n ),\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M29.9091 1.67007C29.7458 1.5545 29.5612 1.47247 29.3659 1.42872C29.1707 1.38496 28.9687 1.38036 28.7717 1.41517C28.5747 1.44999 28.3865 1.52352 28.2181 1.63153C28.0497 1.73954 27.9044 1.87987 27.7905 2.04441L18.4161 15.4409C15.8377 13.4518 12.6726 12.3735 9.41609 12.3746V23.8675H1.77004C1.76793 24.8718 1.96432 25.8667 2.34793 26.7948C2.73153 27.723 3.29478 28.5662 4.00531 29.276C4.71583 29.9858 5.55963 30.5481 6.48819 30.9308C7.41676 31.3134 8.41179 31.5088 9.41609 31.5056H24.2224V27.2047C24.2273 23.6597 22.9581 20.231 20.6462 17.5436L30.2755 3.7807C30.3902 3.61812 30.4718 3.43452 30.5154 3.2404C30.5591 3.04628 30.5641 2.84545 30.53 2.6494C30.496 2.45336 30.4237 2.26595 30.3171 2.0979C30.2106 1.92986 30.0719 1.78447 29.9091 1.67007ZM12.7373 24.9268C12.4549 24.9269 12.1838 24.8158 11.9826 24.6176C11.7814 24.4193 11.6663 24.1499 11.6621 23.8675V14.8595C14.1619 15.3234 16.4626 16.5335 18.2611 18.3306C20.0596 20.1277 21.2716 22.4274 21.7374 24.9268H12.7373Z\",\n fill: \"#9DAAAB\"\n }\n )\n ] })\n }\n ),\n /* @__PURE__ */ n(\n F,\n {\n component: \"img\",\n src: e,\n alt: o,\n width: i,\n height: a,\n sx: g,\n onError: u,\n onLoad: f,\n display: y || !l ? \"none\" : \"block\"\n }\n )\n ] });\n}, na = \"data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20data-name='Vrstva%201'%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%201982.09%201982.09'%3e%3cpath%20d='m1966.86,15.24c-20.32-20.32-53.25-20.32-73.57,0L15.24,1893.29c-20.32,20.32-20.32,53.25,0,73.57,20.32,20.32,53.25,20.32,73.57,0L1966.86,88.81c20.32-20.32,20.32-53.25,0-73.57Z'%20fill='currentColor'/%3e%3cpath%20d='m186.78,1603.82h47.21l164.08-164.08h-158.05l441.04-437.77,77.39,77.39,701.08-701.08H186.78c-62.61,0-113.37,50.76-113.37,113.38v998.78c0,62.62,50.76,113.38,113.37,113.38Zm304.43-1013.81c70.67,0,127.97,57.29,127.97,127.96s-57.3,127.96-127.97,127.96-127.95-57.29-127.95-127.96,57.28-127.96,127.95-127.96Z'%20fill='currentColor'/%3e%3cpath%20d='m1795.31,378.28h-47.21l-533.75,533.75,527.72,527.71H686.63l-164.08,164.08h1272.76c62.62,0,113.37-50.76,113.37-113.38V491.66c0-62.62-50.75-113.38-113.37-113.38Z'%20fill='currentColor'/%3e%3c/svg%3e\", g1 = {\n container: {\n alignSelf: \"center\",\n backgroundColor: ({ palette: e }) => e.background.paper,\n boxShadow: 4,\n flexShrink: 0,\n overflow: \"hidden\",\n position: \"relative\"\n },\n thumb: {\n \"&::-webkit-scrollbar\": {\n display: \"none !important\",\n width: \"0 !important\"\n },\n border: 0,\n cursor: \"pointer\",\n display: \"block\",\n msOverflowStyle: \"none\",\n objectFit: \"cover\",\n overflow: \"hidden\",\n pointerEvents: \"none !important\",\n scrollbarWidth: \"none\"\n },\n viewFile: {\n border: 0,\n display: \"block\",\n height: \"100vh\",\n margin: \"auto\",\n width: {\n md: \"50vw\",\n xs: \"100%\"\n }\n },\n viewImage: {\n border: 0,\n height: \"100%\",\n width: \"100%\"\n }\n}, rr = ({\n src: e,\n srcThumb: r,\n fileName: t,\n children: i,\n width: a,\n height: o,\n sx: l,\n widthLightbox: c,\n heightLightbox: d,\n sxLightbox: u,\n disableLightbox: h,\n disableThumb: x,\n open: b,\n onClose: g,\n onClickThumb: S,\n variant: y\n}) => {\n const [f, m] = ie(!1), [R, w] = ie(!1), M = e == null ? void 0 : e.toLowerCase(), p = !(M != null && M.endsWith(\".pdf\")) && !(M != null && M.startsWith(\"blob:\")), _ = M == null ? void 0 : M.endsWith(\".pdf\"), T = E1(null), $ = R ? na : r || e, I = h ? 1 : 0.8, J = () => {\n m((Y) => !Y);\n }, oe = () => {\n m(!1), g == null || g();\n }, ne = pe(() => {\n w(!0);\n }, []);\n return T1(() => {\n const Y = T.current;\n return Y == null || Y.addEventListener(\"error\", ne), () => {\n Y == null || Y.removeEventListener(\"error\", ne);\n };\n }, [ne, T]), /* @__PURE__ */ v(Me, { children: [\n !x && !i && /* @__PURE__ */ n(\n F,\n {\n \"data-test\": \"fileViewer\",\n width: a,\n height: o,\n onClick: () => {\n S == null || S(), J();\n },\n sx: {\n ...g1.container,\n \":hover\": { opacity: I },\n borderRadius: y === \"rounded\" ? 1 : \"0\",\n cursor: h ? \"default\" : \"pointer\",\n display: \"block\",\n pointerEvents: h ? \"none\" : \"auto\",\n ...l\n },\n children: /* @__PURE__ */ n(\n F,\n {\n component: p ? \"img\" : \"iframe\",\n overflow: \"hidden\",\n height: p ? \"100%\" : \"auto\",\n width: \"100%\",\n src: $ || void 0,\n ref: T,\n sx: g1.thumb\n },\n $\n )\n }\n ),\n !h && e && /* @__PURE__ */ n(Et, { open: b !== void 0 ? b : f, onClose: oe, src: e, title: t, children: /* @__PURE__ */ n(\n F,\n {\n component: _ ? \"iframe\" : \"img\",\n src: e || r || void 0,\n width: c,\n height: d,\n sx: {\n ..._ ? g1.viewFile : g1.viewImage,\n ...u\n }\n }\n ) }),\n i && /* @__PURE__ */ n(\n F,\n {\n onClick: J,\n sx: {\n \":hover\": { opacity: I },\n cursor: \"pointer\"\n },\n children: i\n }\n )\n ] });\n}, ia = ({ sx: e, fontSize: r, color: t = \"currentColor\" }) => /* @__PURE__ */ n(we, { width: \"12\", height: \"12\", viewBox: \"0 0 12 12\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", sx: e, fontSize: r, children: /* @__PURE__ */ n(\"path\", { d: \"M6 2L5.295 2.705L8.085 5.5L2 5.5L2 6.5L8.085 6.5L5.295 9.295L6 10L10 6L6 2Z\", fill: t, fillOpacity: \"0.54\" }) }), aa = ({ sx: e, color: r = \"currentColor\" }) => /* @__PURE__ */ n(we, { width: \"16\", height: \"16\", viewBox: \"0 0 16 16\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", sx: e, children: /* @__PURE__ */ n(\"path\", { d: \"M12 6.47003L11.06 5.53003L8 8.58336L4.94 5.53003L4 6.47003L8 10.47L12 6.47003Z\", fill: r, fillOpacity: \"0.54\" }) }), C1 = 64, Gr = 1e3, oa = ({\n title: e,\n subtitle: r,\n isLastElement: t,\n active: i,\n onClick: a,\n variant: o,\n tag: l,\n collapseItems: c,\n collapseDefaultOpen: d,\n Action: u,\n Icon: h,\n Footer: x,\n Collapse: b\n}) => {\n const [g, S] = ie(!1), y = b || !!(c != null && c.length);\n return T1(() => {\n d && S(!0);\n }, [d]), /* @__PURE__ */ v(Z, { direction: \"row\", alignItems: \"stretch\", spacing: 0, mt: 0.5, children: [\n /* @__PURE__ */ n(F, { mt: 1.5, textAlign: \"center\", children: /* @__PURE__ */ n(Z, { spacing: 1, alignItems: \"center\", sx: { height: \"100%\", width: 32 }, children: /* @__PURE__ */ v(Me, { children: [\n h || /* @__PURE__ */ n(m1, { color: i ? \"secondary\" : \"primary\" }),\n /* @__PURE__ */ n(F, { sx: { flex: 1 }, children: !t && /* @__PURE__ */ n(\n tt,\n {\n sx: {\n borderColor: ({ palette: f }) => i ? f.secondary.main : f.divider,\n borderStyle: i ? \"solid\" : \"dashed\",\n height: \"100%\"\n },\n flexItem: !0,\n orientation: \"vertical\"\n }\n ) })\n ] }) }) }),\n /* @__PURE__ */ v(\n Z,\n {\n flex: 1,\n pt: 0.5,\n pl: 1,\n minWidth: 0,\n sx: {\n \"&:hover\": {\n \"& .action\": {\n opacity: 1\n },\n borderRadius: 1\n },\n padding: 1.5\n },\n children: [\n /* @__PURE__ */ v(Z, { spacing: 1, justifyContent: \"space-between\", direction: \"row\", children: [\n /* @__PURE__ */ v(F, { children: [\n /* @__PURE__ */ v(\n Z,\n {\n direction: \"row\",\n alignItems: \"center\",\n sx: { cursor: y ? \"pointer\" : \"default\" },\n onClick: () => S((f) => !f),\n children: [\n /* @__PURE__ */ n(\n X,\n {\n component: \"span\",\n onClick: a,\n variant: \"h6\",\n sx: {\n cursor: y || a ? \"pointer\" : \"default\",\n marginRight: 1,\n textDecoration: a ? \"underline\" : \"none\"\n },\n children: e\n }\n ),\n y && /* @__PURE__ */ n(\n aa,\n {\n sx: {\n transform: g ? \"rotate(180deg)\" : \"rotate(0deg)\",\n transition: \"transform 0.3s\"\n }\n }\n )\n ]\n }\n ),\n l && /* @__PURE__ */ n(o1, { color: (l == null ? void 0 : l.color) || \"default\", label: l == null ? void 0 : l.label, size: \"xSmall\", variant: \"outlined\" }),\n r && /* @__PURE__ */ n(X, { variant: \"body2\", color: \"textSecondary\", children: r })\n ] }),\n u && /* @__PURE__ */ n(\n F,\n {\n className: \"action\",\n sx: {\n opacity: o === \"hover\" ? 0 : 1,\n transition: \"opacity 0.15s\"\n },\n children: u\n }\n )\n ] }),\n x,\n b && /* @__PURE__ */ n(Ar, { in: g, children: b }),\n !!(c != null && c.length) && /* @__PURE__ */ n(Ar, { in: g, children: /* @__PURE__ */ n(Z, { marginTop: 3, spacing: 3, children: c == null ? void 0 : c.map((f, m) => {\n var M, p, _, T;\n const R = `${f.title}-${m}`, w = Array.isArray(f == null ? void 0 : f.file) ? f == null ? void 0 : f.file[0] : f == null ? void 0 : f.file;\n return /* @__PURE__ */ v(Z, { direction: \"row\", spacing: 1, minWidth: 0, children: [\n /* @__PURE__ */ n(ia, { sx: { height: 18, paddingTop: 0.5, width: 18 } }),\n /* @__PURE__ */ v(Z, { minWidth: 0, children: [\n /* @__PURE__ */ v(Z, { direction: \"row\", alignItems: \"center\", spacing: 1, overflow: \"hidden\", children: [\n (f == null ? void 0 : f.title) && /* @__PURE__ */ n(\n _r,\n {\n title: f == null ? void 0 : f.title,\n enterDelay: Gr,\n sx: {\n ...(f == null ? void 0 : f.onClick) && {\n cursor: \"pointer\",\n textDecoration: \"underline\"\n }\n },\n children: /* @__PURE__ */ n(\n X,\n {\n variant: \"h6\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n overflow: \"hidden\",\n minWidth: 0,\n onClick: f == null ? void 0 : f.onClick,\n children: f == null ? void 0 : f.title\n }\n )\n }\n ),\n (f == null ? void 0 : f.tag) && /* @__PURE__ */ n(o1, { color: ((M = f == null ? void 0 : f.tag) == null ? void 0 : M.color) || \"default\", label: (p = f == null ? void 0 : f.tag) == null ? void 0 : p.label, size: \"xSmall\", variant: \"outlined\" })\n ] }),\n (f == null ? void 0 : f.subtitle) && /* @__PURE__ */ n(_r, { title: f == null ? void 0 : f.subtitle, enterDelay: Gr, children: /* @__PURE__ */ n(\n X,\n {\n variant: \"body2\",\n color: \"textSecondary\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n overflow: \"hidden\",\n minWidth: 0,\n children: f == null ? void 0 : f.subtitle\n }\n ) }),\n (f == null ? void 0 : f.file) && /* @__PURE__ */ v(Z, { direction: \"row\", marginTop: 1, spacing: 0.5, children: [\n w && /* @__PURE__ */ n(\n rr,\n {\n src: w,\n sx: {\n borderRadius: 0.5,\n cursor: \"pointer\",\n height: C1,\n width: C1\n }\n }\n ),\n Array.isArray(f == null ? void 0 : f.file) && ((_ = f == null ? void 0 : f.file) == null ? void 0 : _.length) > 1 && /* @__PURE__ */ n(\n F,\n {\n sx: {\n alignItems: \"center\",\n backgroundColor: ({ palette: $ }) => $.grey[100],\n borderRadius: 0.5,\n display: \"flex\",\n height: C1,\n justifyContent: \"center\",\n width: C1\n },\n children: `${(((T = f == null ? void 0 : f.file) == null ? void 0 : T.length) || 0) - 1}+`\n }\n )\n ] })\n ] })\n ] }, R);\n }) }) })\n ]\n }\n )\n ] });\n}, j1 = ({\n children: e,\n sx: r,\n \"data-test\": t,\n \"data-testid\": i\n}) => /* @__PURE__ */ n(\n ir,\n {\n \"data-test\": t,\n \"data-testid\": i,\n sx: {\n width: \"100%\",\n ...r\n },\n children: /* @__PURE__ */ n(nn, { children: e })\n }\n), qa = ({\n items: e,\n isLoading: r,\n emptyMessage: t,\n containerStyle: i,\n variant: a,\n \"data-test\": o,\n \"data-testid\": l\n}) => {\n const [c, d] = ie(\"\");\n return r ? /* @__PURE__ */ n(j1, { sx: i, \"data-test\": o, \"data-testid\": l, children: /* @__PURE__ */ v(Z, { spacing: 3, children: [\n /* @__PURE__ */ v(Z, { spacing: 2, pt: 1, pl: 0.5, direction: \"row\", children: [\n /* @__PURE__ */ n(m1, {}),\n /* @__PURE__ */ v(Z, { children: [\n /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 100 }) }),\n /* @__PURE__ */ n(X, { variant: \"body2\", children: /* @__PURE__ */ n(Ce, { width: 130 }) })\n ] })\n ] }),\n /* @__PURE__ */ v(Z, { spacing: 2, pt: 1, pl: 0.5, direction: \"row\", children: [\n /* @__PURE__ */ n(m1, {}),\n /* @__PURE__ */ v(Z, { children: [\n /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 150 }) }),\n /* @__PURE__ */ n(X, { variant: \"body2\", children: /* @__PURE__ */ n(Ce, { width: 100, height: 20 }) })\n ] })\n ] }),\n /* @__PURE__ */ v(Z, { spacing: 2, pt: 1, pl: 0.5, direction: \"row\", children: [\n /* @__PURE__ */ n(m1, {}),\n /* @__PURE__ */ v(Z, { children: [\n /* @__PURE__ */ n(X, { children: /* @__PURE__ */ n(Ce, { width: 80 }) }),\n /* @__PURE__ */ n(X, { variant: \"body2\", children: /* @__PURE__ */ n(Ce, { width: 110, height: 20 }) })\n ] })\n ] })\n ] }) }) : !(e != null && e.length) && !r ? /* @__PURE__ */ n(j1, { sx: i, children: /* @__PURE__ */ n(ar, { severity: \"info\", children: t }) }) : /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ n(j1, { sx: i, \"data-test\": o, \"data-testid\": l, children: e == null ? void 0 : e.map(\n ({ Action: u, Collapse: h, collapseItems: x, collapseDefaultOpen: b, subtitle: g, key: S, active: y, Footer: f, Icon: m, onClick: R, tag: w, title: M }, p) => {\n const _ = `${S}-${p}-${M}`, T = p === e.length - 1;\n return /* @__PURE__ */ n(\n oa,\n {\n Action: u,\n Footer: f,\n Collapse: h,\n collapseDefaultOpen: b,\n collapseItems: x,\n active: y,\n title: M,\n subtitle: g,\n Icon: m,\n isLastElement: T,\n onClick: R,\n tag: w,\n variant: a\n },\n _\n );\n }\n ) }),\n /* @__PURE__ */ n(Et, { open: !!c, onClose: () => d(\"\"), src: c })\n ] });\n}, Ja = ({ Main: e, Sidebar: r, AppBar: t }) => {\n const { breakpoints: i } = be(), a = E1(null), o = s1(i.down(\"md\")), l = r && cr(r, { AppBar: t });\n return /* @__PURE__ */ v(Z, { height: \"100%\", children: [\n !o && t,\n /* @__PURE__ */ v(Z, { height: \"100%\", direction: o ? \"column\" : \"row\", minHeight: 0, children: [\n l,\n /* @__PURE__ */ n(\n F,\n {\n flex: 1,\n sx: {\n maxHeight: \"100%\",\n overflow: \"auto\"\n },\n ref: a,\n children: /* @__PURE__ */ n(F, { component: \"main\", height: \"100%\", children: e })\n }\n )\n ] })\n ] });\n}, sa = {\n palette: {\n action: {\n active: \"rgba(0, 0, 0, 0.54)\",\n disabled: \"rgba(0, 0, 0, 0.26)\",\n disabledBackground: \"rgba(0, 0, 0, 0.12)\",\n focus: \"rgba(0, 0, 0, 0.12)\",\n hover: \"rgba(0, 0, 0, 0.04)\",\n selected: \"rgba(0, 0, 0, 0.08)\"\n },\n background: {\n dark: \"#121212\",\n default: \"#F9F9F9\",\n paper: \"#ffffff\"\n },\n border: {\n outline: \"rgba(0, 0, 0, 0.23)\"\n },\n divider: \"rgba(0, 0, 0, 0.12)\",\n error: {\n \"12p\": \"#FFEDEE\",\n \"160p\": \"#662B2C\",\n \"30p\": \"#FFD2D3\",\n \"4p\": \"#FFF9F9\",\n \"50p\": \"#FFB3B7\",\n \"8p\": \"#fff3f3\",\n contrastText: \"#ffffff\",\n dark: \"#C73443\",\n light: \"#FF9A9C\",\n main: \"#FF686E\"\n },\n grey: {\n 100: \"#EFEFEF\",\n 200: \"#DCDCDC\",\n 300: \"#BDBDBD\",\n 400: \"#989898\",\n 50: \"#F9F9F9\",\n 500: \"#7C7C7C\",\n 600: \"#656565\",\n 700: \"#525252\",\n 800: \"#464646\",\n 900: \"#3D3D3D\",\n A100: \"#FFFFFF\",\n A200: \"#EEEEEE\",\n A400: \"#BDBDBD\",\n A700: \"#616161\"\n },\n info: {\n \"12p\": \"#EAF0FB\",\n \"160p\": \"#1F355A\",\n \"30p\": \"#C9DAF7\",\n \"4p\": \"#F8FAFE\",\n \"50p\": \"#A6C2EF\",\n \"8p\": \"#f1f5fd\",\n contrastText: \"#ffffff\",\n dark: \"#0059AE\",\n light: \"#85B4FF\",\n main: \"#4D85E0\"\n },\n mode: \"light\",\n primary: {\n \"12p\": \"#D9DADC\",\n \"16p\": \"#D1D2D3\",\n \"30p\": \"#B3B3B5\",\n \"4p\": \"#EAEBED\",\n \"50p\": \"#88898A\",\n \"8p\": \"#E2E3E5\",\n black: \"#000000\",\n contrastText: \"#ffffff\",\n dark: \"#000000\",\n light: \"#393939\",\n main: \"#272727\"\n },\n secondary: {\n \"12p\": \"#e0f3f4\",\n \"16p\": \"#d6eef1\",\n \"30p\": \"#b2e1e3\",\n \"4p\": \"#f5fbfb\",\n \"50p\": \"#81cdd3\",\n \"8p\": \"#ebf7f8\",\n black: \"#004E53\",\n dark: \"#006C74\",\n light: \"#33AFB7\",\n main: \"#009BA6\"\n },\n success: {\n \"12p\": \"#E6EFE6\",\n \"160p\": \"#123114\",\n \"30p\": \"#C0D9C1\",\n \"4p\": \"#F6FAF7\",\n \"50p\": \"#97BE98\",\n \"8p\": \"#EEF6EF\",\n contrastText: \"#ffffff\",\n dark: \"#41936E\",\n light: \"#7DDBB1\",\n main: \"#5DD39E\"\n },\n tertiary: {\n \"12p\": \"#E5E5E5\",\n \"16p\": \"#DCDCDC\",\n \"30p\": \"#BEBEBE\",\n \"4p\": \"#F6F6F6\",\n \"50p\": \"#939393\",\n \"8p\": \"#EEEEEE\",\n black: \"#ffffff\",\n contrastText: \"#1E1E1E\",\n dark: \"#EFEFEF\",\n light: \"#FFFFFF\",\n main: \"#F9F9F9\"\n },\n text: {\n contrast: \"#ffffff\",\n disabled: \"#ADAFAF\",\n primary: \"#1E1E1E\",\n secondary: \"#616365\"\n },\n warning: {\n \"12p\": \"#FDEDE1\",\n \"160p\": \"#5F2B01\",\n \"30p\": \"#FAD3B3\",\n \"4p\": \"#FEF9F5\",\n \"50p\": \"#F6B580\",\n \"8p\": \"#fdf3ea\",\n contrastText: \"#ffffff\",\n dark: \"#C77800\",\n light: \"#FFD95B\",\n main: \"#FFA726\"\n }\n }\n}, H = {\n palette: {\n action: {\n active: \"rgba(255, 255, 255, 0.54)\",\n disabled: \"rgba(255, 255, 255, 0.26)\",\n disabledBackground: \"rgba(255, 255, 255, 0.12)\",\n focus: \"rgba(255, 255, 255, 0.12)\",\n hover: \"rgba(255, 255, 255, 0.04)\",\n selected: \"rgba(255, 255, 255, 0.08)\"\n },\n background: {\n dark: \"#121212\",\n default: \"#232323\",\n paper: \"#121212\"\n },\n border: {\n outline: \"rgba(255, 255, 255, 0.23)\"\n },\n divider: \"rgba(255, 255, 255, 0.12)\",\n error: {\n \"12p\": \"#2D1816\",\n \"160p\": \"#fbb4af\",\n \"30p\": \"#56211D\",\n \"4p\": \"#1b1313\",\n \"50p\": \"#832B24\",\n \"8p\": \"#241615\",\n contrastText: \"#ffffff\",\n dark: \"#d32f2f\",\n light: \"#e57273\",\n main: \"#f44236\"\n },\n grey: {\n 100: \"#272727\",\n 200: \"#2A2A2A\",\n 300: \"#2C2C2C\",\n 400: \"#2E2E2E\",\n 50: \"#252525\",\n 500: \"#313131\",\n 600: \"#333333\",\n 700: \"#363636\",\n 800: \"#383838\",\n 900: \"#424242\",\n A100: \"#1E1E1E\",\n A200: \"#EEEEEE\",\n A400: \"#BDBDBD\",\n A700: \"#616161\"\n },\n info: {\n \"12p\": \"#102029\",\n \"160p\": \"#9acfed\",\n \"30p\": \"#194356\",\n \"4p\": \"#11171a\",\n \"50p\": \"#1E6483\",\n \"8p\": \"#111c21\",\n contrastText: \"#ffffff\",\n dark: \"#0089d0\",\n light: \"#4ec4f7\",\n main: \"#2ab6f5\"\n },\n mode: \"dark\",\n primary: {\n \"12p\": \"#2E2E2E\",\n \"16p\": \"#383838\",\n \"30p\": \"#595959\",\n \"4p\": \"#1B1B1B\",\n \"50p\": \"#888888\",\n \"8p\": \"#252525\",\n black: \"#FFFFFF\",\n contrastText: \"#1E1E1E\",\n dark: \"#EFEFEF\",\n light: \"#FFFFFF\",\n main: \"#F9F9F9\"\n },\n secondary: {\n \"12p\": \"#151e1f\",\n \"16p\": \"#172b2c\",\n \"30p\": \"#1c4144\",\n \"4p\": \"#131819\",\n \"50p\": \"#236164\",\n \"8p\": \"#151e1f\",\n black: \"#57E1EA\",\n contrastText: \"#020202\",\n dark: \"#009ca6\",\n light: \"#50c6ce\",\n main: \"#35b0b7\"\n },\n success: {\n \"12p\": \"#1d261c\",\n \"160p\": \"#c2e4c3\",\n \"30p\": \"#2b452c\",\n \"4p\": \"#151916\",\n \"50p\": \"#3c673e\",\n \"8p\": \"#192019\",\n contrastText: \"#ffffff\",\n dark: \"#388e3c\",\n light: \"#81c784\",\n main: \"#66bb69\"\n },\n tertiary: {\n \"12p\": \"#101010\",\n \"16p\": \"#0F0F0F\",\n \"30p\": \"#0B0B0B\",\n \"4p\": \"#111111\",\n \"50p\": \"#090909\",\n \"8p\": \"#111111\",\n black: \"#000000\",\n contrastText: \"#FFFFFF\",\n dark: \"#000000\",\n light: \"#393939\",\n main: \"#272727\"\n },\n text: {\n contrast: \"#020202\",\n disabled: \"#636262\",\n primary: \"#ffffff\",\n secondary: \"#999999\"\n },\n warning: {\n \"12p\": \"#2E2414\",\n \"160p\": \"#ffdca8\",\n \"30p\": \"#593F18\",\n \"4p\": \"#1c1813\",\n \"50p\": \"#885d1d\",\n \"8p\": \"#251e14\",\n contrastText: \"#ffffff\",\n dark: \"#f57c01\",\n light: \"#ffb74d\",\n main: \"#fea727\"\n }\n }\n}, la = ({ sx: e, ...r }) => {\n var t, i, a, o, l, c;\n return /* @__PURE__ */ n(\n He,\n {\n variant: \"rounded\",\n sx: {\n \"& svg\": {\n color: (i = (t = H == null ? void 0 : H.palette) == null ? void 0 : t.text) == null ? void 0 : i.disabled\n },\n backgroundColor: (o = (a = H == null ? void 0 : H.palette) == null ? void 0 : a.grey) == null ? void 0 : o[100],\n color: (c = (l = H == null ? void 0 : H.palette) == null ? void 0 : l.text) == null ? void 0 : c.primary,\n ...e\n },\n ...r\n }\n );\n}, Xr = ({ sx: e, ...r }) => {\n var t, i, a, o, l, c, d, u;\n return /* @__PURE__ */ n(\n or,\n {\n variant: \"outlined\",\n size: \"small\",\n sx: {\n \"&:hover\": {\n backgroundColor: (i = (t = H == null ? void 0 : H.palette) == null ? void 0 : t.action) == null ? void 0 : i.hover,\n borderColor: (a = H == null ? void 0 : H.palette) == null ? void 0 : a.primary.main\n },\n backgroundColor: (l = (o = H == null ? void 0 : H.palette) == null ? void 0 : o.grey) == null ? void 0 : l[\"100\"],\n borderColor: (c = H == null ? void 0 : H.palette) == null ? void 0 : c.divider,\n color: (u = (d = H == null ? void 0 : H.palette) == null ? void 0 : d.text) == null ? void 0 : u.primary,\n ...e\n },\n ...r\n }\n );\n}, ca = ue(({ sx: e, slotProps: r, type: t = \"search\", ...i }, a) => {\n var o, l, c, d, u, h, x, b, g, S;\n return /* @__PURE__ */ n(\n R1,\n {\n fullWidth: !0,\n size: \"xSmall\",\n type: t,\n ref: a,\n sx: {\n \"& .MuiInputBase-root\": {\n \"&:hover .MuiOutlinedInput-notchedOutline\": {\n borderColor: (l = (o = H == null ? void 0 : H.palette) == null ? void 0 : o.primary) == null ? void 0 : l.light\n },\n backgroundColor: (d = (c = H == null ? void 0 : H.palette) == null ? void 0 : c.grey) == null ? void 0 : d[\"50\"],\n color: (h = (u = H == null ? void 0 : H.palette) == null ? void 0 : u.text) == null ? void 0 : h.primary\n },\n // Border\n \"& .MuiOutlinedInput-notchedOutline\": {\n borderColor: Ee((b = (x = H == null ? void 0 : H.palette) == null ? void 0 : x.border) == null ? void 0 : b.outline, 0.23)\n },\n // Border focus\n \"& .MuiOutlinedInput-root.Mui-focused .MuiOutlinedInput-notchedOutline\": {\n borderColor: (S = (g = H == null ? void 0 : H.palette) == null ? void 0 : g.primary) == null ? void 0 : S.main\n },\n maxWidth: 400,\n ...e,\n \"input[type='search']::-webkit-search-cancel-button\": {\n filter: ({ palette: y }) => (y == null ? void 0 : y.mode) === \"light\" ? \"invert(1)\" : \"invert(0)\"\n }\n },\n slotProps: {\n ...r,\n input: {\n autoComplete: \"off\",\n startAdornment: t === \"search\" && /* @__PURE__ */ n(a1, { position: \"start\", children: /* @__PURE__ */ n(we, { focusable: \"false\", \"aria-hidden\": \"true\", viewBox: \"0 0 24 24\", children: /* @__PURE__ */ v(\"svg\", { width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [\n /* @__PURE__ */ v(\"g\", { clipPath: \"url(#clip0_14432_13952)\", children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M12.9053 16.102C15.9763 14.7968 17.4079 11.2492 16.1027 8.17812C14.7975 5.10705 11.2499 3.67551 8.17882 4.98068C5.10776 6.28585 3.67622 9.8335 4.98139 12.9046C6.28656 15.9756 9.8342 17.4072 12.9053 16.102Z\",\n stroke: \"#999999\",\n strokeLinecap: \"round\",\n strokeLinejoin: \"round\"\n }\n ),\n /* @__PURE__ */ n(\"path\", { d: \"M14.814 14.8133L19.5 19.5\", stroke: \"#999999\", strokeLinecap: \"round\", strokeLinejoin: \"round\" })\n ] }),\n /* @__PURE__ */ n(\"defs\", { children: /* @__PURE__ */ n(\"clipPath\", { id: \"clip0_14432_13952\", children: /* @__PURE__ */ n(\"rect\", { width: \"16\", height: \"16\", fill: \"white\", transform: \"translate(4 4)\" }) }) })\n ] }) }) }),\n ...r == null ? void 0 : r.input\n }\n },\n ...i\n }\n );\n}), da = () => {\n const [e, r] = ie(null), t = !!e, i = pe(() => {\n r(null);\n }, []), a = pe(({ currentTarget: o }) => {\n r(o);\n }, []);\n return {\n anchorMenu: e,\n closeMenu: i,\n isMenuOpen: t,\n openMenu: a\n };\n}, pa = \"appBarAvatarMenu\", Ka = ({\n Avatar: e,\n Search: r,\n Action: t,\n Logo: i,\n NavLink: a,\n avatarProps: o,\n searchProps: l,\n actionProps: c,\n logoProps: d,\n children: u,\n onClickBurger: h,\n sx: x,\n position: b = \"static\",\n elevation: g = 0\n}) => {\n const { breakpoints: S } = be(), { closeMenu: y, isMenuOpen: f, anchorMenu: m, openMenu: R } = da(), { menuItems: w, ...M } = o || {}, p = s1(S.down(\"sm\")), _ = s1(S.between(\"sm\", \"md\")), T = p || _, $ = {\n logoContainer: {\n a: {\n display: \"flex\"\n },\n alignItems: \"center\",\n display: \"flex\"\n },\n menuItem: {\n \"& > a\": {\n alignItems: \"center\",\n color: \"inherit\",\n display: \"flex\",\n paddingX: 2,\n paddingY: 1,\n textDecoration: \"none\",\n width: \"100%\"\n },\n \"& > a.active\": {\n backgroundColor: ({ palette: I }) => Ee(I.primary.main, I.action.selectedOpacity)\n },\n \"& > a.active:hover\": {\n backgroundColor: ({ palette: I }) => Ee(I.primary.main, I.action.selectedOpacity + I.action.hoverOpacity)\n },\n overflow: \"hidden\",\n padding: \"0 !important\"\n },\n paddingX: p ? 1 : 3,\n ...x\n };\n return u ? /* @__PURE__ */ n(Y1, { position: b, elevation: g, sx: $, children: u }) : /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ n(Y1, { position: b, elevation: g, sx: $, children: /* @__PURE__ */ v(Z, { direction: \"row\", sx: { alignItems: \"center\", height: \"100%\", width: \"100%\" }, spacing: 1, children: [\n T && /* @__PURE__ */ n(Ae, { onClick: h, edge: \"end\", color: \"inherit\", \"aria-label\": \"menu\", children: /* @__PURE__ */ n(vt, {}) }),\n T || i === null ? null : /* @__PURE__ */ n(F, { sx: $.logoContainer, children: i || /* @__PURE__ */ n($i, { mode: \"dark\", ...d }) }),\n /* @__PURE__ */ v(Z, { alignItems: \"center\", direction: \"row\", justifyContent: p ? \"flex-end\" : \"center\", spacing: 1, flex: 1, children: [\n p && (t === null ? null : t || /* @__PURE__ */ n(Xr, { ...c })),\n r === null ? null : r || /* @__PURE__ */ n(ca, { ...l })\n ] }),\n /* @__PURE__ */ v(Z, { direction: \"row\", alignItems: \"center\", spacing: 1, children: [\n !p && (t === null ? null : t || /* @__PURE__ */ n(Xr, { ...c })),\n e === null ? null : e || /* @__PURE__ */ n(\n la,\n {\n ...M,\n sx: {\n cursor: w ? \"pointer\" : \"default\"\n },\n onClick: (I) => {\n var J;\n R(I), (J = o == null ? void 0 : o.onClick) == null || J.call(o, I);\n }\n }\n )\n ] })\n ] }) }),\n w && /* @__PURE__ */ n(nt, { sx: { zIndex: (I) => I.zIndex.drawer + 1 }, open: f, onClick: y, children: /* @__PURE__ */ n(\n an,\n {\n id: pa,\n anchorEl: m,\n open: f,\n onClose: y,\n onChange: y,\n anchorOrigin: {\n horizontal: \"right\",\n vertical: \"bottom\"\n },\n slotProps: {\n paper: {\n sx: {\n minWidth: 260\n }\n }\n },\n children: w == null ? void 0 : w.map((I, J) => {\n if (A1(I)) {\n if (I.key)\n return I;\n const oe = `${w}-${J}`;\n return cr(I, { key: oe });\n }\n if (I && typeof I == \"object\" && \"url\" in I) {\n const { url: oe, label: ne, icon: Y, active: z, end: q, state: ye } = I, me = `${oe}-${ne}-${J}`;\n return /* @__PURE__ */ n(on, { sx: $.menuItem, onClick: y, children: /* @__PURE__ */ v(hr, { url: oe, component: a, active: z, end: q, state: ye, children: [\n Y && /* @__PURE__ */ n(sn, { children: Y }),\n ne && /* @__PURE__ */ n(Be, { children: ne })\n ] }, me) }, me);\n }\n return null;\n })\n }\n ) })\n ] });\n}, ua = ({ sx: e, fontSize: r, color: t = \"currentColor\" }) => /* @__PURE__ */ n(we, { width: \"8\", height: \"8\", viewBox: \"0 0 8 8\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", fontSize: r, sx: e, children: /* @__PURE__ */ n(\"rect\", { x: \"1\", y: \"1\", width: \"6\", height: \"6\", rx: \"3\", fill: t }) }), fa = ({ dot: e, color: r, variant: t, ...i }, a) => {\n const { palette: o } = be(), l = {\n default: o.text.secondary,\n error: o.error.main,\n info: o.info.main,\n primary: o.text.primary,\n secondary: o.secondary.main,\n success: o.success.main,\n warning: o.warning.main\n };\n return /* @__PURE__ */ n(\n o1,\n {\n ref: a,\n variant: t,\n color: r,\n icon: e ? /* @__PURE__ */ n(\n ua,\n {\n color: l[r || \"default\"],\n fontSize: \"inherit\",\n sx: {\n height: 8,\n marginLeft: 1,\n width: 8\n }\n }\n ) : void 0,\n ...i\n }\n );\n}, Qa = ue(fa), ha = ({ fontSize: e, sx: r, color: t = \"currentColor\" }) => /* @__PURE__ */ v(we, { width: \"40\", height: \"40\", viewBox: \"0 0 40 40\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", fontSize: e, sx: r, children: [\n /* @__PURE__ */ n(\"g\", { clipPath: \"url(#clip0_12914_201806)\", children: /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M22 10H14C12.9 10 12.01 10.9 12.01 12L12 28C12 29.1 12.89 30 13.99 30H26C27.1 30 28 29.1 28 28V16L22 10ZM26 28H14V12H21V17H26V28ZM16 23.01L17.41 24.42L19 22.84V27H21V22.84L22.59 24.43L24 23.01L20.01 19L16 23.01Z\",\n fill: t\n }\n ) }),\n /* @__PURE__ */ n(\"defs\", { children: /* @__PURE__ */ n(\"clipPath\", { id: \"clip0_12914_201806\", children: /* @__PURE__ */ n(\"rect\", { width: \"40\", height: \"40\", fill: \"white\" }) }) })\n] }), ga = {\n components: {\n MuiBreadcrumbs: {\n defaultProps: {\n expandText: \"Montrer le chemin\"\n }\n },\n MuiTablePagination: {\n defaultProps: {\n getItemAriaLabel: (e) => e === \"first\" ? \"Aller à la première page\" : e === \"last\" ? \"Aller à la dernière page\" : e === \"next\" ? \"Aller à la page suivante\" : \"Aller à la page précédente\",\n labelRowsPerPage: \"Lignes par page :\",\n labelDisplayedRows: ({\n from: e,\n to: r,\n count: t\n }) => `${e}–${r} sur ${t !== -1 ? t : `plus que ${r}`}`\n }\n },\n MuiRating: {\n defaultProps: {\n getLabelText: (e) => `${e} Etoile${e !== 1 ? \"s\" : \"\"}`,\n emptyLabelText: \"Vide\"\n }\n },\n MuiAutocomplete: {\n defaultProps: {\n clearText: \"Vider\",\n closeText: \"Fermer\",\n loadingText: \"Chargement…\",\n noOptionsText: \"Pas de résultats\",\n openText: \"Ouvrir\"\n }\n },\n MuiAlert: {\n defaultProps: {\n closeText: \"Fermer\"\n }\n },\n MuiPagination: {\n defaultProps: {\n \"aria-label\": \"navigation de pagination\",\n getItemAriaLabel: (e, r, t) => e === \"page\" ? `${t ? \"\" : \"Aller à la \"}page ${r}` : e === \"first\" ? \"Aller à la première page\" : e === \"last\" ? \"Aller à la dernière page\" : e === \"next\" ? \"Aller à la page suivante\" : \"Aller à la page précédente\"\n }\n }\n }\n}, Ca = [400, 500, 600, 700], xa = \"Poppins, sans-serif\", K = (e, r = 16, t = 14) => {\n const i = t / 14;\n return `${e / r * i}rem`;\n}, qr = {\n root: ({ theme: e, ownerState: r }) => {\n const t = vn.toArray(r.children), i = t[t.length - 1];\n if (A1(i)) {\n if (i.props.variant === \"contained\" || i.props.variant === \"outlined\")\n return {\n padding: e.spacing(3)\n };\n if (i.props.size === \"small\")\n return {\n paddingLeft: e.spacing(2),\n paddingRight: e.spacing(2)\n };\n }\n }\n}, gr = {\n components: {\n MuiAlert: {\n styleOverrides: {\n root: ({ ownerState: e, theme: r }) => ({\n ...!e.square && { borderRadius: r.shape.borderRadiusL },\n ...e.variant === \"standard\" && {\n border: `solid 1px ${r.palette[e.severity || \"success\"].main}`\n }\n })\n },\n variants: [\n {\n props: { severity: \"secondary\" },\n style: ({ theme: e }) => ({\n \"& .MuiAlert-icon\": {\n color: `${e.palette.text.secondary} !important`\n },\n backgroundColor: `${e.palette.grey[100]} !important`,\n borderColor: e.palette.divider,\n color: `${e.palette.primary.light} !important`\n })\n },\n {\n props: { severity: \"secondary\", variant: \"outlined\" },\n style: ({ theme: e }) => ({\n \"& .MuiAlert-icon\": {\n color: `${e.palette.text.primary} !important`\n },\n backgroundColor: \"transparent !important\",\n borderColor: e.palette.text.disabled\n })\n },\n {\n props: { severity: \"secondary\", variant: \"filled\" },\n style: ({ theme: e }) => ({\n backgroundColor: `${e.palette.grey[100]} !important`,\n borderColor: e.palette.text.disabled\n })\n },\n {\n props: { severity: \"primary\", variant: \"filled\" },\n style: ({ theme: e }) => ({\n color: `${e.palette.primary.contrastText} !important`\n })\n },\n {\n props: {\n variant: \"filled\"\n },\n style: {\n borderColor: \"transparent\",\n color: \"white\"\n }\n },\n {\n props: {\n variant: \"standard\"\n },\n style: ({ theme: e, severity: r }) => ({\n backgroundColor: e.palette[r || \"success\"][\"8p\"],\n color: e.palette[r || \"success\"][\"160p\"]\n })\n }\n ]\n },\n MuiAlertTitle: {\n styleOverrides: {\n root: {\n fontSize: K(16),\n letterSpacing: -0.35\n }\n }\n },\n MuiAppBar: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n backgroundColor: e.palette.background.dark,\n height: 60\n })\n }\n },\n MuiAutocomplete: {\n defaultProps: {\n limitTags: 1\n },\n styleOverrides: {\n inputRoot: ({ ownerState: e }) => ({\n flexWrap: e.focused ? \"wrap\" : \"nowrap\",\n overflow: \"hidden\"\n }),\n paper: ({ theme: e }) => ({\n marginTop: e.spacing(0.5)\n })\n },\n variants: [\n {\n props: { size: \"xSmall\" },\n style: {\n \"& .MuiInputLabel-root:not(.MuiInputLabel-shrink)\": {\n transform: \"translate(12px, 8px) scale(1)\"\n },\n \"& .MuiOutlinedInput-root\": {\n paddingBottom: 1,\n paddingTop: 1\n }\n }\n },\n {\n props: { size: \"small\" },\n style: {\n \"& .MuiOutlinedInput-root.MuiInputBase-sizeSmall\": {\n paddingBottom: 10,\n paddingTop: 10\n }\n }\n }\n ]\n },\n MuiAvatar: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n \"& svg\": {\n color: e.palette.text.disabled\n },\n backgroundColor: e.palette.grey[100],\n color: e.palette.text.primary,\n fontSize: K(14),\n letterSpacing: -0.45\n })\n }\n },\n MuiBadge: {\n styleOverrides: {\n badge: ({ theme: e, ownerState: r }) => {\n const t = (i, a) => i === \"dark\" && a === \"error\" || i === \"dark\" && a === \"default\" ? e.palette.common.white : i === \"light\" && a === \"secondary\" || i === \"light\" && a === \"default\" || e.palette.mode === \"dark\" ? e.palette.common.black : e.palette.common.white;\n return {\n backgroundColor: e.palette.mode === \"light\" && r.color === \"default\" ? e.palette.grey[100] : r.color,\n borderRadius: e.shape.borderRadiusS,\n color: t(e.palette.mode, r.color),\n fontSize: K(12),\n letterSpacing: 0.14\n };\n }\n }\n },\n MuiBottomNavigationAction: {\n styleOverrides: {\n label: ({ theme: e }) => ({\n \"&.Mui-selected\": {\n color: e.palette.common.white\n },\n color: e.palette.text.secondary,\n fontSize: K(14),\n letterSpacing: -0.3\n }),\n root: ({ theme: e }) => ({\n \"&.Mui-selected\": {\n color: e.palette.common.white,\n svg: {\n color: e.palette.common.white\n }\n },\n backgroundColor: e.palette.background.dark\n })\n }\n },\n MuiButton: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n \"&:not(:hover)\": {\n boxShadow: \"none\"\n },\n borderRadius: e.shape.borderRadius,\n lineHeight: 1,\n paddingLeft: \"24px\",\n paddingRight: \"24px\",\n textTransform: \"none\"\n })\n },\n variants: [\n {\n props: {\n color: \"primary\",\n variant: \"outlined\"\n },\n style: ({ theme: e }) => ({\n backgroundColor: e.palette.tertiary.main,\n borderColor: e.palette.divider\n })\n },\n {\n props: { size: \"small\" },\n style: {\n fontSize: K(13),\n letterSpacing: -0.3,\n minHeight: 40\n }\n },\n {\n props: { size: \"medium\" },\n style: {\n minHeight: 48\n }\n },\n {\n props: { size: \"large\" },\n style: {\n fontSize: K(15),\n letterSpacing: -0.35,\n minHeight: 56\n }\n },\n {\n props: {\n variant: \"contained\"\n },\n style: ({ theme: e }) => ({\n color: e.palette.primary.contrastText\n })\n },\n {\n props: { variant: \"link\" },\n style: ({ theme: e, ownerState: r }) => {\n var i, a;\n const t = (r == null ? void 0 : r.color) === \"inherit\" ? e.palette.text.primary : (a = (i = e.palette) == null ? void 0 : i[(r == null ? void 0 : r.color) || \"primary\"]) == null ? void 0 : a.main;\n return {\n \"&:hover\": {\n backgroundColor: \"transparent\",\n textDecoration: \"underline\",\n textDecorationColor: Ee(t || e.palette.primary.main, 0.4)\n },\n color: t,\n fontSize: \"inherit\",\n fontWeight: \"inherit\",\n lineHeight: \"inherit\",\n minHeight: \"auto\",\n minWidth: \"auto\",\n padding: 0,\n textDecoration: \"underline\",\n textTransform: \"none\"\n };\n }\n }\n ]\n },\n MuiCard: {\n defaultProps: {\n variant: \"outlined\"\n },\n styleOverrides: {\n root: ({ ownerState: e, theme: r }) => ({\n ...!e.square && {\n borderRadius: r.shape.borderRadiusL\n }\n })\n },\n variants: [\n {\n props: {\n variant: \"elevation\"\n },\n style: () => ({\n borderColor: \"transparent\"\n })\n },\n {\n props: {\n variant: \"outlined\"\n },\n style: ({ theme: e }) => {\n const { common: r } = e.palette, t = Ee(r.white, +U1(1));\n return {\n backgroundImage: `linear-gradient(${t}, ${t})`\n };\n }\n }\n ]\n },\n MuiCardActions: {\n styleOverrides: qr\n },\n MuiCardContent: {\n styleOverrides: {\n root: ({ theme: e }) => ({ padding: e.spacing(3) })\n }\n },\n MuiChip: {\n styleOverrides: {\n root: ({ theme: e, ownerState: r }) => {\n const t = r.color || \"default\", i = r.variant || \"standard\", a = [\"outlined\", \"outlined-rounded\"].includes(i);\n return {\n ...t === \"default\" && {\n backgroundColor: a ? e.palette.grey[50] : e.palette.grey[100],\n border: a ? `1px solid ${e.palette.divider}` : \"transparent\",\n color: e.palette.text.primary\n },\n ...t === \"primary\" && {\n backgroundColor: e.palette.primary[\"4p\"],\n border: a ? `1px solid ${e.palette.divider}` : \"transparent\",\n color: e.palette.primary.black\n },\n ...t === \"secondary\" && {\n backgroundColor: a ? e.palette.secondary[\"8p\"] : e.palette.secondary[\"16p\"],\n border: a ? `1px solid ${e.palette.secondary[\"30p\"]}` : \"transparent\",\n color: a ? e.palette.secondary.dark : e.palette.secondary.black\n },\n ...t === \"error\" && {\n backgroundColor: a ? e.palette.error[\"8p\"] : e.palette.error[\"30p\"],\n border: a ? `1px solid ${e.palette.error[\"30p\"]}` : \"transparent\",\n color: a ? e.palette.error.dark : e.palette.error[\"160p\"]\n },\n ...t === \"info\" && {\n backgroundColor: a ? e.palette.info[\"8p\"] : e.palette.info[\"30p\"],\n border: a ? `1px solid ${e.palette.info[\"30p\"]}` : \"transparent\",\n color: a ? e.palette.info.dark : e.palette.info[\"160p\"]\n },\n ...t === \"success\" && {\n backgroundColor: a ? e.palette.success[\"8p\"] : e.palette.success[\"30p\"],\n border: a ? `1px solid ${e.palette.success[\"30p\"]}` : \"transparent\",\n color: a ? e.palette.success.dark : e.palette.success[\"160p\"]\n },\n ...t === \"warning\" && {\n backgroundColor: a ? e.palette.warning[\"8p\"] : e.palette.warning[\"30p\"],\n border: a ? `1px solid ${e.palette.warning[\"30p\"]}` : \"transparent\",\n color: a ? e.palette.warning.dark : e.palette.warning[\"160p\"]\n },\n fontWeight: 500\n };\n }\n },\n variants: [\n {\n props: { variant: \"rounded\" },\n style: ({ theme: e }) => ({\n borderRadius: e.shape.borderRadiusS\n })\n },\n {\n props: { variant: \"outlined-rounded\" },\n style: ({ theme: e }) => ({\n borderRadius: e.shape.borderRadiusS\n })\n },\n {\n props: { size: \"medium\" },\n style: ({ theme: e }) => ({\n \"& .MuiChip-label\": {\n fontSize: e.typography.pxToRem(14),\n letterSpacing: -0.3,\n paddingLeft: 8,\n paddingRight: 8\n }\n })\n },\n {\n props: { size: \"small\" },\n style: ({ theme: e }) => ({\n \"& .MuiChip-label\": {\n fontSize: e.typography.pxToRem(13),\n letterSpacing: -0.2\n }\n })\n },\n {\n props: { size: \"xSmall\" },\n style: ({ theme: e }) => ({\n \"& .MuiChip-deleteIcon\": {\n fontSize: e.typography.pxToRem(14)\n },\n \"& .MuiChip-icon\": {\n fontSize: e.typography.pxToRem(16)\n },\n \"& .MuiChip-label\": {\n fontSize: e.typography.pxToRem(12),\n letterSpacing: 0,\n paddingLeft: 8,\n paddingRight: 8\n },\n height: 20\n })\n }\n ]\n },\n MuiDialog: {\n defaultProps: {\n PaperProps: {\n elevation: 0\n }\n },\n styleOverrides: {\n root: ({ theme: e }) => ({\n \"& .MuiDialog-container\": {\n [e.breakpoints.between(\"xs\", \"sm\")]: {\n \"& > .MuiPaper-root\": {\n borderBottomLeftRadius: 0,\n borderBottomRightRadius: 0,\n margin: 0,\n maxWidth: \"100%\",\n width: \"100%\"\n },\n alignItems: \"flex-end\",\n display: \"flex\"\n }\n }\n })\n }\n },\n MuiDialogActions: {\n styleOverrides: qr\n },\n MuiDialogTitle: {\n defaultProps: {\n variant: \"h3\"\n },\n styleOverrides: {\n root: ({ theme: e }) => ({\n paddingRight: e.spacing(7)\n })\n }\n },\n MuiFormControlLabel: {\n variants: [\n {\n props: { variant: \"card\" },\n style: ({ theme: e }) => ({\n \"& .MuiFormControlLabel-label\": {\n zIndex: 1\n },\n \"& .MuiRadio-root\": {\n border: `solid 1px ${e.palette.mode === \"light\" ? e.palette.grey[200] : e.palette.border.outline}`,\n borderRadius: e.shape.borderRadius,\n height: \"100%\",\n left: 0,\n margin: 0,\n position: \"absolute\",\n top: 0,\n width: \"100%\"\n },\n \"& .MuiRadio-root > span\": {\n display: \"none\"\n },\n \"& .MuiRadio-root.Mui-checked\": {\n \"&:before\": {\n backgroundImage: `url(\"data:image/svg+xml,%3Csvg%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M8.79508%2015.8749L4.62508%2011.7049L3.20508%2013.1149L8.79508%2018.7049L20.7951%206.70492L19.3851%205.29492L8.79508%2015.8749Z%22%20fill%3D%22%23${e.palette.secondary.main.replace(\n \"#\",\n \"\"\n )}%22%2F%3E%3C%2Fsvg%3E\")`,\n bottom: 0,\n content: \"''\",\n display: \"block\",\n height: 20,\n marginTop: -2,\n position: \"absolute\",\n right: e.spacing(1.5),\n top: \"50%\",\n transform: \"translateY(-50%)\",\n width: 20\n },\n backgroundColor: Ee(e.palette.secondary.main, 0.08),\n borderColor: e.palette.secondary.main\n },\n backgroundColor: \"transparent\",\n margin: \"inherit\",\n padding: e.spacing(2),\n paddingRight: e.spacing(5),\n position: \"relative\"\n })\n },\n {\n props: { size: \"small\", variant: \"card\" },\n style: ({ theme: e }) => ({\n padding: `${e.spacing(1)} ${e.spacing(2)}`,\n paddingRight: e.spacing(6)\n })\n }\n ]\n },\n MuiFormHelperText: {\n styleOverrides: {\n root: {\n fontSize: K(14),\n letterSpacing: 0.4\n }\n }\n },\n MuiIconButton: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n borderRadius: e.shape.borderRadius\n })\n }\n },\n MuiInputBase: {\n styleOverrides: {\n input: () => ({\n letterSpacing: -0.3\n }),\n root: ({ theme: e }) => ({\n backgroundColor: e.palette.mode === \"light\" ? e.palette.background.paper : \"transparent\"\n })\n },\n variants: [\n {\n props: { size: \"small\" },\n style: {\n \"& .MuiOutlinedInput-input.MuiInputBase-inputSizeSmall\": {\n paddingBottom: 12.5,\n paddingTop: 12.5\n },\n \"& .MuiOutlinedInput-input.MuiInputBase-inputSizeSmall.MuiInputBase-inputMultiline\": {\n paddingBottom: 0,\n paddingTop: 0\n }\n }\n },\n {\n props: { size: \"xSmall\" },\n style: {\n \"& .MuiInputBase-input.MuiFilledInput-input\": {\n paddingBottom: 3.5,\n paddingTop: 13.5\n },\n \"& .MuiInputBase-input.MuiOutlinedInput-input\": {\n paddingBottom: 8.5,\n paddingTop: 8.5\n },\n \"&.MuiInputBase-multiline\": {\n paddingBottom: 0,\n paddingTop: 0\n },\n \"&.MuiInputBase-multiline textarea\": {\n height: 50\n }\n }\n }\n ]\n },\n MuiInputLabel: {\n variants: [\n {\n props: { size: \"xSmall\" },\n style: {\n \"&.MuiInputLabel-filled.MuiInputLabel-sizeXSmall\": {\n transform: \"translate(12px, 0px) scale(0.75)\"\n },\n \"&.MuiInputLabel-outlined.MuiInputLabel-sizeXSmall:not(.MuiInputLabel-shrink), &.MuiInputLabel-filled.MuiInputLabel-sizeXSmall:not(.MuiInputLabel-shrink)\": {\n transform: \"translate(14px, 8px) scale(1)\"\n }\n }\n },\n {\n props: { size: \"small\" },\n style: {\n \"&.MuiInputLabel-outlined.MuiInputLabel-sizeSmall:not(.MuiInputLabel-shrink)\": {\n transform: \"translate(14px, 12px) scale(1)\"\n }\n }\n }\n ]\n },\n MuiListItemIcon: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n \"& .MuiSvgIcon-root\": {\n fontSize: e.typography.pxToRem(20)\n }\n })\n }\n },\n MuiMenu: {\n defaultProps: {\n elevation: 4\n },\n styleOverrides: {\n list: ({ theme: e }) => ({\n minWidth: 200,\n padding: e.spacing(1)\n }),\n root: ({ theme: e }) => ({\n marginTop: e.spacing(0.5)\n })\n }\n },\n MuiMenuItem: {\n styleOverrides: {\n root: ({ theme: e, ownerState: r }) => ({\n ...e.typography.body2,\n borderRadius: e.shape.borderRadiusS,\n lineHeight: e.typography.pxToRem(24),\n ...!r.dense && {\n padding: e.spacing(1, 2)\n }\n })\n }\n },\n MuiPaper: {\n variants: [\n {\n props: {\n square: !1\n },\n style: ({ theme: e }) => ({\n border: `solid 1px ${e.palette.divider}`,\n borderRadius: e.shape.borderRadiusL\n })\n }\n ]\n },\n MuiSelect: {\n variants: [\n {\n props: { variant: \"outlined\" },\n style: ({ theme: e }) => ({\n \"& .MuiOutlinedInput-notchedOutline\": {\n ...e.palette.mode === \"light\" && {\n borderColor: e.palette.grey[200]\n }\n },\n borderRadius: e.shape.borderRadius\n })\n },\n {\n props: { variant: \"filled\" },\n style: {\n borderTopLeftRadius: 8,\n borderTopRightRadius: 8\n }\n },\n {\n props: { disableUnderline: !0, variant: \"standard\" },\n style: ({ theme: e }) => ({\n \"& .MuiSelect-select\": {\n background: \"none !important\"\n },\n color: e.palette.text.secondary\n })\n }\n ]\n },\n MuiSnackbar: {\n defaultProps: {\n anchorOrigin: {\n horizontal: \"center\",\n vertical: \"bottom\"\n }\n }\n },\n MuiTab: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n \"&:first-of-type\": {\n marginLeft: 0\n },\n \"&:last-of-type\": {\n marginRight: 0\n },\n marginLeft: e.spacing(1.5),\n marginRight: e.spacing(1.5),\n minWidth: 0,\n paddingLeft: 0,\n paddingRight: 0,\n textTransform: \"none\"\n })\n }\n },\n MuiTableContainer: {\n styleOverrides: {\n root: ({ theme: e }) => ({\n border: `solid 1px ${e.palette.divider}`,\n borderRadius: e.shape.borderRadius\n })\n }\n },\n MuiTextField: {\n styleOverrides: {\n root: {\n // Remove the default spin button on number inputs\n \"& .MuiOutlinedInput-root\": {\n /* Chrome, Safari, Edge, Opera */\n \"input::-webkit-outer-spin-button,input::-webkit-inner-spin-button\": {\n margin: 0,\n WebkitAppearance: \"none\"\n },\n /* Firefox */\n \"input[type=number]\": {\n MozAppearance: \"textfield\"\n }\n }\n }\n },\n variants: [\n {\n props: { variant: \"outlined\" },\n style: ({ theme: e }) => ({\n \"& .MuiInputBase-root\": {\n borderRadius: e.shape.borderRadius\n },\n \"& .MuiOutlinedInput-notchedOutline\": {\n ...e.palette.mode === \"light\" && {\n borderColor: e.palette.grey[200]\n }\n }\n })\n },\n {\n props: { variant: \"filled\" },\n style: {\n \"& .MuiInputBase-root\": {\n borderTopLeftRadius: 8,\n borderTopRightRadius: 8\n }\n }\n },\n {\n props: { type: \"search\" },\n style: ({ theme: e }) => {\n const r = encodeURIComponent(e.palette.action.active);\n return {\n \"& .MuiInputBase-input::-webkit-search-cancel-button\": {\n \"&:hover\": {\n backgroundColor: Ee(e.palette.action.active, e.palette.action.hoverOpacity)\n },\n backgroundImage: `url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' aria-hidden='true' viewBox='0 0 24 24'%3E%3Cpath 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' fill='${r}'%3E%3C/path%3E%3C/svg%3E\")`,\n backgroundPosition: \"center\",\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"20px 20px\",\n borderRadius: \"50%\",\n cursor: \"pointer\",\n fontSize: e.typography.pxToRem(24),\n height: 28,\n WebkitAppearance: \"none\",\n width: 28\n }\n };\n }\n }\n ]\n },\n MuiToggleButton: {\n styleOverrides: {\n root: ({ theme: e, ownerState: r }) => ({\n \"&.Mui-selected\": {\n ...r.color && r.color !== \"standard\" && { backgroundColor: Ee(e.palette[r.color].main, 0.12) }\n },\n borderRadius: e.shape.borderRadius,\n padding: \"8px 11px\"\n })\n },\n variants: [\n {\n props: { size: \"small\" },\n style: {\n minHeight: 40\n }\n },\n {\n props: { size: \"medium\" },\n style: {\n minHeight: 48\n }\n },\n {\n props: { size: \"large\" },\n style: {\n minHeight: 56\n }\n }\n ]\n },\n MuiTooltip: {\n styleOverrides: {\n tooltip: {\n fontSize: K(14),\n letterSpacing: 0\n }\n }\n }\n },\n shadows: [\n \"none\",\n \"0px 2px 1px -1px rgba(0,0,0,0.10),0px 1px 1px 0px rgba(0,0,0,0.04),0px 1px 3px 0px rgba(0,0,0,0.03)\",\n \"0px 3px 1px -2px rgba(0,0,0,0.17),0px 2px 2px 0px rgba(0,0,0,0.11),0px 1px 5px 0px rgba(0,0,0,0.09)\",\n \"0px 3px 3px -2px rgba(0,0,0,0.17),0px 3px 4px 0px rgba(0,0,0,0.11),0px 1px 8px 0px rgba(0,0,0,0.09)\",\n \"0px 2px 4px -1px rgba(0,0,0,0.17),0px 4px 5px 0px rgba(0,0,0,0.11),0px 1px 10px 0px rgba(0,0,0,0.09)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.17),0px 5px 8px 0px rgba(0,0,0,0.11),0px 1px 14px 0px rgba(0,0,0,0.09)\",\n \"0px 3px 5px -1px rgba(0,0,0,0.17),0px 6px 10px 0px rgba(0,0,0,0.11),0px 1px 18px 0px rgba(0,0,0,0.09)\",\n \"0px 4px 5px -2px rgba(0,0,0,0.17),0px 7px 10px 1px rgba(0,0,0,0.11),0px 2px 16px 1px rgba(0,0,0,0.09)\",\n \"0px 5px 5px -3px rgba(0,0,0,0.17),0px 8px 10px 1px rgba(0,0,0,0.11),0px 3px 14px 2px rgba(0,0,0,0.09)\",\n \"0px 5px 6px -3px rgba(0,0,0,0.17),0px 9px 12px 1px rgba(0,0,0,0.11),0px 3px 16px 2px rgba(0,0,0,0.09)\",\n \"0px 6px 6px -3px rgba(0,0,0,0.17),0px 10px 14px 1px rgba(0,0,0,0.11),0px 4px 18px 3px rgba(0,0,0,0.09)\",\n \"0px 6px 7px -4px rgba(0,0,0,0.17),0px 11px 15px 1px rgba(0,0,0,0.11),0px 4px 20px 3px rgba(0,0,0,0.09)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.17),0px 12px 17px 2px rgba(0,0,0,0.11),0px 5px 22px 4px rgba(0,0,0,0.09)\",\n \"0px 7px 8px -4px rgba(0,0,0,0.17),0px 13px 19px 2px rgba(0,0,0,0.11),0px 5px 24px 4px rgba(0,0,0,0.09)\",\n \"0px 7px 9px -4px rgba(0,0,0,0.17),0px 14px 21px 2px rgba(0,0,0,0.11),0px 5px 26px 4px rgba(0,0,0,0.09)\",\n \"0px 8px 9px -5px rgba(0,0,0,0.17),0px 15px 22px 2px rgba(0,0,0,0.11),0px 6px 28px 5px rgba(0,0,0,0.09)\",\n \"0px 8px 10px -5px rgba(0,0,0,0.17),0px 16px 24px 2px rgba(0,0,0,0.11),0px 6px 30px 5px rgba(0,0,0,0.09)\",\n \"0px 8px 11px -5px rgba(0,0,0,0.17),0px 17px 26px 2px rgba(0,0,0,0.11),0px 6px 32px 5px rgba(0,0,0,0.09)\",\n \"0px 9px 11px -5px rgba(0,0,0,0.17),0px 18px 28px 2px rgba(0,0,0,0.11),0px 7px 34px 6px rgba(0,0,0,0.09)\",\n \"0px 9px 12px -6px rgba(0,0,0,0.17),0px 19px 29px 2px rgba(0,0,0,0.11),0px 7px 36px 6px rgba(0,0,0,0.09)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.17),0px 20px 31px 3px rgba(0,0,0,0.11),0px 8px 38px 7px rgba(0,0,0,0.09)\",\n \"0px 10px 13px -6px rgba(0,0,0,0.17),0px 21px 33px 3px rgba(0,0,0,0.11),0px 8px 40px 7px rgba(0,0,0,0.09)\",\n \"0px 10px 14px -6px rgba(0,0,0,0.17),0px 22px 35px 3px rgba(0,0,0,0.11),0px 8px 42px 7px rgba(0,0,0,0.09)\",\n \"0px 11px 14px -7px rgba(0,0,0,0.17),0px 23px 36px 3px rgba(0,0,0,0.11),0px 9px 44px 8px rgba(0,0,0,0.09)\",\n \"0px 11px 15px -7px rgba(0,0,0,0.17),0px 24px 38px 3px rgba(0,0,0,0.11),0px 9px 46px 8px rgba(0,0,0,0.09)\"\n ],\n shape: {\n borderRadius: 8,\n borderRadiusL: 12,\n borderRadiusS: 4\n },\n typography: () => ({\n body1: {\n fontSize: K(16),\n letterSpacing: -0.35\n },\n body2: {\n fontSize: K(14),\n letterSpacing: -0.3\n },\n body3: {\n fontSize: K(12),\n letterSpacing: -0.3\n },\n button: {\n fontSize: K(14),\n letterSpacing: -0.3\n },\n caption: {\n fontSize: K(12),\n letterSpacing: -0.3\n },\n fontFamily: xa,\n h1: {\n fontSize: K(28),\n fontWeight: 700,\n letterSpacing: -0.6\n },\n h2: {\n fontSize: K(24),\n fontWeight: 600,\n letterSpacing: -0.5\n },\n h3: {\n fontSize: K(20),\n fontWeight: 600,\n letterSpacing: -0.45\n },\n h4: {\n fontSize: K(18),\n fontWeight: 500,\n letterSpacing: -0.4\n },\n h5: {\n fontSize: K(16),\n fontWeight: 500,\n letterSpacing: -0.35\n },\n h6: {\n fontSize: K(14),\n fontWeight: 500,\n letterSpacing: -0.3\n },\n overline: {\n fontSize: K(12),\n letterSpacing: 0.25\n },\n subtitle1: {\n fontSize: K(16),\n letterSpacing: -0.35\n },\n subtitle2: {\n fontSize: K(14),\n letterSpacing: -0.3\n }\n })\n}, tr = sr(Ze(gr)), Mt = sr(Ze(gr, sa)), St = sr(Ze(gr, H)), eo = {\n commonTheme: tr,\n darkTheme: St,\n lightTheme: Mt\n}, Jr = {\n fontWeight: Ca,\n import: !0\n}, Rt = k1({\n language: \"en\"\n}), ba = ({ theme: e }) => /* @__PURE__ */ n(\n i1,\n {\n styles: w1`\n * {\n scrollbar-color: ${e === \"dark\" ? \"rgba(255, 255, 255, 0.2) rgba(255, 255, 255, 0.05)\" : \"rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05)\"};\n scrollbar-width: thin;\n }\n\n *::-webkit-scrollbar {\n height: 6px;\n width: 6px;\n }\n\n *::-webkit-scrollbar-button {\n height: 0;\n width: 0;\n }\n\n *::-webkit-scrollbar-corner {\n background: transparent;\n }\n\n *::-webkit-scrollbar-thumb {\n background-color: rgba(0, 0, 0, 0.2);\n border: 0;\n border-radius: 10px;\n }\n\n *::-webkit-scrollbar-track {\n background: rgba(0, 0, 0, 0.05);\n }\n `\n }\n), ya = () => /* @__PURE__ */ n(\n i1,\n {\n styles: w1`\n html,\n body,\n #root {\n height: 100%;\n }\n `\n }\n), ro = ({\n children: e,\n enableColorScheme: r,\n includeCssBaseline: t = !0,\n includeScrollBarStyle: i = !0,\n fullHeight: a = !0,\n theme: o,\n language: l = \"en\",\n font: c = Jr\n}) => {\n var g, S;\n const d = { ...Jr, ...c }, u = (d == null ? void 0 : d.googleFontName) || ((g = tr.typography.fontFamily) == null ? void 0 : g.split(\",\")[0]), h = (S = d == null ? void 0 : d.fontWeight) == null ? void 0 : S.join(\";\"), x = _1(() => ({ language: l }), [l]), b = () => {\n var m, R;\n const y = typeof o == \"object\" ? o : {}, f = {\n ...l === \"fr\" && ga\n };\n return o === \"dark\" || typeof o == \"object\" && \"palette\" in o && ((m = o == null ? void 0 : o.palette) == null ? void 0 : m.mode) === \"dark\" ? Ze(St, y, f) : o === \"light\" || typeof o == \"object\" && \"palette\" in o && ((R = o == null ? void 0 : o.palette) == null ? void 0 : R.mode) === \"light\" ? Ze(Mt, y, f) : Ze(tr, y, f);\n };\n return /* @__PURE__ */ n(Rt.Provider, { value: x, children: /* @__PURE__ */ v(cn, { theme: b(), children: [\n /* @__PURE__ */ n(\n i1,\n {\n styles: w1`\n ::-webkit-calendar-picker-indicator {\n filter: invert(${o === \"dark\" ? 1 : 0});\n }\n `\n }\n ),\n d.import && /* @__PURE__ */ n(\n i1,\n {\n styles: w1`\n @import url(\"https://fonts.googleapis.com/css2?family=${u}:wght@${h}&display=swap\");\n `\n }\n ),\n t && /* @__PURE__ */ n(ln, { enableColorScheme: r }),\n a && /* @__PURE__ */ n(ya, {}),\n i && /* @__PURE__ */ n(ba, { theme: o }),\n e\n ] }) });\n}, ma = {\n clickToUpload: \"Click to upload\",\n files: \"Files\",\n reset: \"Reset\",\n selectAll: \"Select all\"\n}, va = {\n clickToUpload: \"Cliquez pour télécharger\",\n files: \"Fichiers\",\n reset: \"Réinitialiser\",\n selectAll: \"Tout sélectionner\"\n}, wa = {\n en: ma,\n fr: va\n}, kt = () => {\n const { language: e } = _e(Rt);\n return {\n t: (t) => wa[e][t]\n };\n}, Kr = 5, Ea = (e, r) => {\n const t = r === \"vertical\";\n return e === \"small\" ? t ? 130 : 60 : t ? 150 : 80;\n}, Ma = (e) => {\n if (!e)\n return \"\";\n const r = e.length > 1, i = [...e || []].slice(0, 5).map(({ name: a }) => {\n const o = a.split(\".\").pop();\n return a.length > 10 && r ? `${a.substring(0, 10)}(...).${o}` : a;\n }).join(\" • \");\n return e.length > Kr ? `${i} + ${e.length - Kr}` : i;\n}, to = ue(\n ({\n accept: e,\n name: r,\n disabled: t,\n required: i,\n error: a,\n localeText: o,\n multiple: l,\n id: c,\n size: d,\n helperText: u,\n fullWidth: h,\n icon: x,\n onChange: b,\n label: g,\n pattern: S,\n title: y,\n variant: f = \"vertical\"\n }, m) => {\n const { t: R } = kt(), { palette: w } = be(), M = f === \"vertical\", p = c || r, _ = E1(null), T = E1(null), [$, I] = ie(null), J = Ma($);\n wn(m, () => T.current);\n const oe = (z) => {\n b == null || b(z), I(z.target.files);\n };\n return /* @__PURE__ */ v(\n dn,\n {\n ref: _,\n htmlFor: p,\n onDragOver: (z) => {\n z.preventDefault();\n },\n onDrop: (z) => {\n if (z.preventDefault(), z.dataTransfer.files.length > 0) {\n const q = T.current, ye = z.dataTransfer.files;\n I(ye);\n const me = new DataTransfer();\n Array.from(ye).forEach((D) => me.items.add(D)), q && (q.files = me.files), q == null || q.focus(), q == null || q.blur(), b == null || b({ ...z, target: q }), z.dataTransfer.clearData();\n }\n },\n sx: {\n \"&:hover, &:focus\": {\n borderColor: w.primary.main\n },\n border: `1px dashed ${a ? w.error.main : w.divider}`,\n borderRadius: 1,\n cursor: \"pointer\",\n height: Ea(d, f),\n maxWidth: h ? \"100%\" : 400,\n padding: 2,\n position: \"relative\",\n width: \"100%\"\n },\n children: [\n /* @__PURE__ */ v(\n Z,\n {\n alignItems: \"center\",\n height: \"100%\",\n direction: M ? \"column\" : \"row\",\n justifyContent: M ? \"center\" : \"flex-start\",\n textAlign: M ? \"center\" : \"left\",\n spacing: 0.5,\n color: t ? \"text.disabled\" : \"text.secondary\",\n children: [\n x || /* @__PURE__ */ n(ha, { sx: { height: 40, width: 40 } }),\n J ? /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ v(X, { variant: \"body2\", color: \"textSecondary\", children: [\n $ == null ? void 0 : $.length,\n \" \",\n (o == null ? void 0 : o.files) || R(\"files\")\n ] }),\n /* @__PURE__ */ n(\n X,\n {\n variant: \"body2\",\n color: \"primary\",\n whiteSpace: M ? \"normal\" : \"nowrap\",\n textOverflow: \"ellipsis\",\n overflow: \"hidden\",\n children: J\n }\n )\n ] }) : /* @__PURE__ */ v(X, { variant: \"subtitle1\", color: t ? \"text.disabled\" : \"primary\", children: [\n g || R(\"clickToUpload\"),\n \" \",\n i && \"*\"\n ] }),\n u && /* @__PURE__ */ n(X, { color: a ? \"error\" : \"textSecondary\", variant: \"body2\", children: u })\n ]\n }\n ),\n /* @__PURE__ */ n(\n \"input\",\n {\n id: p,\n ref: T,\n type: \"file\",\n title: y,\n disabled: t,\n required: i,\n name: r,\n multiple: l,\n accept: e,\n pattern: S,\n onChange: oe,\n style: {\n left: \"50%\",\n opacity: 0,\n pointerEvents: \"none\",\n position: \"absolute\",\n top: \"50%\",\n transform: \"translate(-50%, -50%)\",\n zIndex: -1\n }\n }\n )\n ]\n }\n );\n }\n), t1 = 1, Sa = (e) => typeof e == \"string\", n1 = {\n list: {\n marginLeft: ({ spacing: e }) => `-${e(0.5)} !important`,\n marginRight: ({ spacing: e }) => `-${e(0.5)} !important`,\n minWidth: 250\n },\n listItem: {\n borderRadius: 1,\n padding: 0.5\n }\n}, no = ({\n Empty: e,\n action: r,\n items: t,\n fullWidth: i,\n sx: a,\n alwaysDisplaySecondaryAction: o,\n isLoading: l,\n disableLightbox: c,\n numberLoadingItems: d = 3\n}) => {\n var x;\n const [u, h] = ie(\"\");\n return !(t != null && t.length) && !l && !r ? e || null : l ? /* @__PURE__ */ n(\n v1,\n {\n sx: {\n ...n1.list,\n ...i && { width: \"100%\" }\n },\n children: [...Array(d).keys()].map((b) => /* @__PURE__ */ v(Le, { sx: n1.listItem, children: [\n /* @__PURE__ */ n(Ce, { width: 40, height: 40, sx: { marginRight: t1 }, variant: \"rounded\" }),\n /* @__PURE__ */ n(\n Be,\n {\n primary: /* @__PURE__ */ n(X, { variant: \"h6\", children: /* @__PURE__ */ n(Ce, { width: 90 }) }),\n secondary: /* @__PURE__ */ n(Ce, { width: 70 }),\n sx: { marginY: 0 }\n }\n )\n ] }, b))\n }\n ) : /* @__PURE__ */ v(\n v1,\n {\n sx: {\n ...n1.list,\n ...i && { width: \"100%\" },\n ...a\n },\n children: [\n t == null ? void 0 : t.map(\n ({ id: b, title: g, subtitle: S, image: y, thumbnail: f, secondaryAction: m, chipLabel: R, chipColor: w, onClick: M, icon: p, Avatar: _ }, T) => {\n var A, U, te, ce;\n const $ = `key-${T}-${g}-${b}`, I = (A = y == null ? void 0 : y.toLowerCase()) == null ? void 0 : A.endsWith(\".pdf\"), J = (U = y == null ? void 0 : y.toLowerCase()) == null ? void 0 : U.startsWith(\"http\"), oe = (te = f == null ? void 0 : f.toLowerCase()) == null ? void 0 : te.startsWith(\"http\"), ne = M ? \"none\" : void 0, Y = c || !!p || !J, z = !!M || !!(!M && !c && (f || y)), q = u === $, D = (oe ? f : \"\") || (J ? y : \"\") || \"\";\n return /* @__PURE__ */ v(\n Le,\n {\n secondaryAction: m,\n onClick: (fe) => {\n M == null || M(fe), z && !q && !M && h($);\n },\n sx: {\n ...n1.listItem,\n \"& .MuiListItemSecondaryAction-root\": {\n alignItems: \"center\",\n display: \"flex\",\n justifyContent: \"center\",\n opacity: o ? 1 : 0,\n position: \"static\",\n right: ({ spacing: fe }) => fe(0.5),\n transform: \"none\"\n },\n \"&:hover\": {\n \"& .MuiListItemSecondaryAction-root\": {\n opacity: 1\n },\n backgroundColor: ({ palette: fe }) => z ? fe.action.hover : \"transparent\"\n },\n cursor: z ? \"pointer\" : \"default\"\n },\n children: [\n _ !== void 0 && /* @__PURE__ */ n(F, { marginRight: t1, children: _ }),\n !_ && I && /* @__PURE__ */ n(\n rr,\n {\n src: y,\n srcThumb: f,\n width: 40,\n height: 40,\n sx: { borderRadius: 1, marginRight: t1 },\n disableLightbox: c,\n open: q,\n onClose: () => h(\"\")\n }\n ),\n !_ && !I && /* @__PURE__ */ n(\n rr,\n {\n disableThumb: !0,\n src: y,\n srcThumb: f,\n disableLightbox: Y,\n open: q,\n onClose: () => h(\"\"),\n children: /* @__PURE__ */ n(He, { src: D, variant: \"rounded\", sx: { marginRight: t1 }, children: p || typeof g == \"string\" && ((ce = g || \"\") == null ? void 0 : ce.charAt(0).toUpperCase()) })\n }\n ),\n /* @__PURE__ */ n(\n Be,\n {\n primary: /* @__PURE__ */ v(Z, { direction: \"row\", alignItems: \"center\", spacing: 1, children: [\n g && /* @__PURE__ */ n(X, { variant: \"h6\", whiteSpace: \"nowrap\", textOverflow: \"ellipsis\", overflow: \"hidden\", children: g }),\n R && /* @__PURE__ */ n(o1, { label: R, variant: \"rounded\", size: \"xSmall\", color: Sa(w) ? w : \"default\" })\n ] }),\n secondary: S,\n primaryTypographyProps: {\n component: \"div\"\n },\n secondaryTypographyProps: {\n component: \"div\"\n },\n sx: { marginY: 0, userSelect: ne }\n }\n )\n ]\n },\n $\n );\n }\n ),\n r && /* @__PURE__ */ v(\n G1,\n {\n onClick: r == null ? void 0 : r.onClick,\n sx: {\n ...n1.listItem,\n \"&:hover\": {\n backgroundColor: ({ palette: b }) => b.action.hover\n }\n },\n children: [\n /* @__PURE__ */ n(He, { src: (r == null ? void 0 : r.image) || \"\", variant: \"rounded\", sx: { marginRight: t1 }, children: (r == null ? void 0 : r.icon) || ((x = r == null ? void 0 : r.title) == null ? void 0 : x.charAt(0).toUpperCase()) }),\n /* @__PURE__ */ n(\n Be,\n {\n primary: (r == null ? void 0 : r.title) && /* @__PURE__ */ n(X, { variant: \"h6\", children: r == null ? void 0 : r.title }),\n secondary: r == null ? void 0 : r.subtitle,\n sx: { marginY: 0 }\n }\n )\n ]\n }\n )\n ]\n }\n );\n}, nr = { padding: 0, paddingRight: 1 }, Ra = (e) => function(t) {\n return /* @__PURE__ */ n(\n fn,\n {\n badgeContent: `+${t}`,\n color: e,\n sx: {\n \"& .MuiBadge-badge\": {\n position: \"relative\",\n transform: \"none\"\n },\n alignItems: \"center\"\n }\n }\n );\n}, ka = ({\n children: e,\n disableSelectAll: r,\n localeText: t,\n disableReset: i,\n onChange: a,\n loading: o,\n options: l,\n value: c,\n multiple: d,\n ...u\n}) => {\n const { t: h } = kt(), x = Array.isArray(c) ? (c == null ? void 0 : c.length) === (l == null ? void 0 : l.length) : !1, b = l == null ? void 0 : l.filter((g) => g == null ? void 0 : g.isHeader);\n return /* @__PURE__ */ v(lr, { ...u, children: [\n d && !o && (!r || !!(b != null && b.length)) && /* @__PURE__ */ v(Me, { children: [\n /* @__PURE__ */ v(v1, { role: \"listbox\", children: [\n !r && /* @__PURE__ */ n(\n Le,\n {\n disablePadding: !0,\n role: \"option\",\n onMouseDown: (g) => {\n if (g.stopPropagation(), g.preventDefault(), x) {\n a == null || a(g, [], \"removeOption\");\n return;\n }\n a == null || a(g, l || [], \"selectOption\");\n },\n children: /* @__PURE__ */ v(G1, { disableRipple: !0, children: [\n /* @__PURE__ */ n(X1, { disableRipple: !0, id: \"select-all-checkbox\", checked: x, sx: nr }),\n /* @__PURE__ */ n(Be, { primary: (t == null ? void 0 : t.selectAll) || h(\"selectAll\"), primaryTypographyProps: { variant: \"body2\" } }),\n !i && /* @__PURE__ */ n(\n or,\n {\n variant: \"link\",\n size: \"small\",\n sx: {\n marginX: 1,\n textDecoration: \"none\"\n },\n onClick: (g) => {\n a == null || a(g, [], \"removeOption\");\n },\n onMouseDown: (g) => {\n g.stopPropagation(), g.preventDefault();\n },\n children: /* @__PURE__ */ n(X, { variant: \"body2\", children: (t == null ? void 0 : t.reset) || h(\"reset\") })\n }\n )\n ] })\n }\n ),\n b == null ? void 0 : b.map((g, S) => {\n const y = `header-options-${g == null ? void 0 : g.id}-${S}`, f = Array.isArray(c) && c.some(\n (m) => JSON.stringify(m) === JSON.stringify(g) || m && typeof m == \"object\" && \"id\" in m && (m == null ? void 0 : m.id) === (g == null ? void 0 : g.id)\n );\n return /* @__PURE__ */ n(\n Le,\n {\n disablePadding: !0,\n onMouseDown: (m) => {\n if (m.stopPropagation(), m.preventDefault(), f) {\n const R = Array.isArray(c) ? c == null ? void 0 : c.filter(\n (w) => !(JSON.stringify(w) === JSON.stringify(g) || w && typeof w == \"object\" && \"id\" in w && (w == null ? void 0 : w.id) === (g == null ? void 0 : g.id))\n ) : [];\n a == null || a(m, R, \"removeOption\");\n return;\n }\n a == null || a(m, [...Array.isArray(c) ? c : [], g], \"selectOption\");\n },\n children: /* @__PURE__ */ v(G1, { disableRipple: !0, children: [\n /* @__PURE__ */ n(X1, { disableRipple: !0, checked: f, sx: nr }),\n /* @__PURE__ */ n(Be, { primary: g == null ? void 0 : g.label })\n ] })\n },\n y\n );\n })\n ] }),\n /* @__PURE__ */ n(tt, {})\n ] }),\n e\n ] });\n}, Ta = ({\n onChange: e,\n disableCheckbox: r,\n placeholder: t,\n localeText: i,\n disableReset: a,\n disableSelectAll: o,\n value: l,\n onFocus: c,\n onBlur: d,\n open: u,\n onInputChange: h,\n inputValue: x,\n disableClearable: b,\n loading: g,\n resetInputValueOnSelectOption: S,\n renderOption: y,\n renderTags: f,\n size: m = \"small\",\n disableCloseOnSelect: R = !0,\n multiple: w = !0,\n options: M = [],\n slotProps: p,\n ..._\n}, T) => {\n const { palette: $ } = be(), [I, J] = ie(!1), [oe, ne] = ie(\"\"), Y = $.mode === \"light\" ? \"default\" : \"primary\", z = x || oe, ye = w ? l ? Array.isArray(l) ? l : [l] : [] : l || null;\n return /* @__PURE__ */ n(\n un,\n {\n freeSolo: !1,\n multiple: w,\n disableClearable: b,\n value: ye,\n loading: g,\n options: M,\n ref: T,\n size: m,\n disableCloseOnSelect: R,\n onChange: (D, A, U, te) => {\n if (A === null) {\n e == null || e(D, w ? [] : null, U, te);\n return;\n }\n e == null || e(D, A, U, te), (!R || !w) && J(!1);\n },\n getLimitTagsText: Ra(Y),\n inputValue: z,\n open: u || I,\n onOpen: () => J(!0),\n slots: {\n paper: ka\n },\n slotProps: {\n ...p,\n paper: {\n disableReset: a,\n disableSelectAll: o,\n loading: g,\n localeText: i,\n multiple: w,\n onChange: e,\n options: M,\n value: l,\n ...p == null ? void 0 : p.paper\n }\n },\n onInputChange: (D, A, U) => {\n U === \"reset\" && I && !S || U === \"selectOption\" && !S || U === \"removeOption\" && !S || (x || ne(A), h == null || h(D, A, U));\n },\n onFocus: (D) => {\n J(!0), c == null || c(D);\n },\n onBlur: (D) => {\n J(!1), d == null || d(D);\n },\n renderOption: y || ((D, A, { selected: U }) => {\n var ce;\n if (g || A != null && A.isHeader)\n return null;\n const te = `${A == null ? void 0 : A.id}-${D == null ? void 0 : D.key}`;\n return /* @__PURE__ */ En(Le, { ...D, key: te }, !r && /* @__PURE__ */ n(X1, { disableRipple: !0, checked: U, sx: nr }), (A == null ? void 0 : A.image) && /* @__PURE__ */ n(\n pn,\n {\n sx: {\n height: 24,\n marginRight: 1,\n minWidth: \"auto\",\n width: 24\n },\n children: /* @__PURE__ */ n(He, { variant: \"rounded\", src: A == null ? void 0 : A.image, sx: { height: 24, width: 24 }, children: (A == null ? void 0 : A.image) === \"letter\" && typeof (A == null ? void 0 : A.label) == \"string\" && ((ce = A == null ? void 0 : A.label) == null ? void 0 : ce.charAt(0).toUpperCase()) })\n }\n ), typeof (A == null ? void 0 : A.label) == \"string\" ? /* @__PURE__ */ n(X, { variant: \"body2\", whiteSpace: \"nowrap\", textOverflow: \"ellipsis\", overflow: \"hidden\", title: A == null ? void 0 : A.label, children: A.label }) : A == null ? void 0 : A.label);\n }),\n renderTags: f || ((D, A, U) => Array.isArray(D) ? D.map((te, ce) => {\n const { key: fe } = A({ index: ce });\n return U != null && U.focused ? null : /* @__PURE__ */ n(X, { marginX: 1, whiteSpace: \"nowrap\", textOverflow: \"ellipsis\", overflow: \"hidden\", children: te == null ? void 0 : te.label }, fe);\n }) : null),\n ..._,\n renderInput: (D) => {\n var te, ce;\n const A = () => {\n if (!(!I && (Array.isArray(l) && l.length || !Array.isArray(l) && l)))\n return t;\n }, U = A1((te = D.InputProps) == null ? void 0 : te.endAdornment) ? (ce = D.InputProps) == null ? void 0 : ce.endAdornment : null;\n return /* @__PURE__ */ n(\n R1,\n {\n sx: {\n \".MuiInputBase-root .MuiInputBase-input\": {\n flex: !w || !I && !z || I ? 1 : 0,\n minWidth: 0\n }\n },\n ...D,\n slotProps: {\n input: {\n ...D.InputProps,\n endAdornment: I ? /* @__PURE__ */ v(\n a1,\n {\n position: \"end\",\n sx: {\n position: \"absolute\",\n right: 9\n },\n children: [\n I && z && !b && /* @__PURE__ */ n(\n Ae,\n {\n size: \"small\",\n onClick: (fe) => {\n ne(\"\"), h == null || h(fe, \"\", \"clear\");\n },\n sx: { marginRight: \"-3px\" },\n children: /* @__PURE__ */ n(fr, { sx: { fontSize: K(20) } })\n }\n ),\n U == null ? void 0 : U.props.children[1]\n ]\n }\n ) : U\n }\n },\n placeholder: A()\n }\n );\n }\n }\n );\n}, io = ue(Ta), Aa = ({\n in: e,\n children: r,\n sx: t,\n padding: i,\n direction: a,\n position: o = \"fixed\",\n mountOnEnter: l = !0,\n unmountOnExit: c = !0,\n ...d\n}, u) => /* @__PURE__ */ n(hn, { mountOnEnter: l, unmountOnExit: c, in: e === void 0 ? !0 : e, direction: \"up\", children: /* @__PURE__ */ n(\n lr,\n {\n square: !0,\n elevation: 0,\n ref: u,\n sx: {\n borderTop: ({ palette: h }) => `1px solid ${h.divider}`,\n bottom: 0,\n left: 0,\n padding: i,\n paddingX: i ? void 0 : 2,\n paddingY: i ? void 0 : 3,\n position: o,\n right: 0,\n zIndex: 10,\n ...a === \"column\" && {\n display: \"flex\",\n flexDirection: \"column\"\n },\n ...a === \"row\" && {\n display: \"flex\",\n flexDirection: \"row\"\n },\n ...t\n },\n ...d,\n children: r\n }\n) }), ao = ue(Aa), _a = ({ sx: e, fontSize: r, color: t = \"currentColor\" }) => /* @__PURE__ */ n(we, { width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", fontSize: r, sx: e, children: /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M12 4.5C7 4.5 2.73 7.61 1 12C2.73 16.39 7 19.5 12 19.5C17 19.5 21.27 16.39 23 12C21.27 7.61 17 4.5 12 4.5ZM12 17C9.24 17 7 14.76 7 12C7 9.24 9.24 7 12 7C14.76 7 17 9.24 17 12C17 14.76 14.76 17 12 17ZM12 9C10.34 9 9 10.34 9 12C9 13.66 10.34 15 12 15C13.66 15 15 13.66 15 12C15 10.34 13.66 9 12 9Z\",\n fill: t\n }\n) }), La = ({ sx: e, fontSize: r, color: t = \"currentColor\" }) => /* @__PURE__ */ n(we, { width: \"24\", height: \"24\", viewBox: \"0 0 24 24\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", fontSize: r, sx: e, children: /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M19.7231 21.1385L15.8308 17.2577C15.3884 17.4539 14.8394 17.6266 14.1836 17.776C13.5279 17.9253 12.8 18 12 18C9.81665 18 7.83139 17.4035 6.0442 16.2106C4.25702 15.0176 2.93459 13.4474 2.0769 11.5C2.46535 10.6167 2.97753 9.78943 3.61343 9.01828C4.24933 8.24713 4.92818 7.60001 5.64998 7.07693L2.8615 4.27693L3.5692 3.56923L20.4308 20.4308L19.7231 21.1385ZM12 15.1539C12.2346 15.1539 12.492 15.1263 12.7721 15.0712C13.0522 15.016 13.2711 14.9442 13.4288 14.8558L8.6442 10.0712C8.55574 10.2545 8.48395 10.483 8.42883 10.7567C8.3737 11.0304 8.34613 11.2782 8.34613 11.5C8.34613 12.5192 8.7003 13.383 9.40863 14.0914C10.117 14.7997 10.9807 15.1539 12 15.1539ZM18.6077 15.7192L15.5096 12.6462C15.5493 12.5039 15.5833 12.3349 15.6115 12.1394C15.6397 11.9439 15.6538 11.7308 15.6538 11.5C15.6538 10.4808 15.2997 9.61699 14.5913 8.90865C13.883 8.20032 13.0192 7.84615 12 7.84615C11.7692 7.84615 11.5625 7.86346 11.3798 7.89808C11.1971 7.9327 11.0282 7.98462 10.8731 8.05385L8.4192 5.61923C8.99997 5.4 9.591 5.24198 10.1923 5.14518C10.7936 5.0484 11.3961 5 12 5C14.1705 5 16.1558 5.59648 17.9558 6.78943C19.7558 7.98238 21.0782 9.55257 21.9231 11.5C21.5654 12.3039 21.1125 13.0593 20.5644 13.7664C20.0163 14.4734 19.3641 15.1244 18.6077 15.7192ZM14.6942 11.85L11.675 8.85C12.0904 8.76667 12.4939 8.79455 12.8856 8.93365C13.2772 9.07275 13.6147 9.2859 13.8981 9.57308C14.1942 9.86026 14.4144 10.2029 14.5586 10.601C14.7029 10.999 14.7481 11.4154 14.6942 11.85Z\",\n fill: t\n }\n) }), oo = ({ slotProps: e, ...r }) => {\n const [t, i] = ie(!1), a = () => {\n i((c) => !c);\n }, o = (c) => {\n c.preventDefault();\n }, l = (c) => {\n c.preventDefault();\n };\n return /* @__PURE__ */ n(\n R1,\n {\n type: t ? \"text\" : \"password\",\n slotProps: {\n ...e,\n input: {\n ...e == null ? void 0 : e.input,\n endAdornment: /* @__PURE__ */ n(a1, { position: \"end\", children: /* @__PURE__ */ n(\n Ae,\n {\n \"aria-label\": t ? \"hide the password\" : \"display the password\",\n onClick: a,\n onMouseDown: o,\n onMouseUp: l,\n edge: \"end\",\n children: t ? /* @__PURE__ */ n(La, {}) : /* @__PURE__ */ n(_a, {})\n }\n ) })\n }\n },\n ...r\n }\n );\n}, le = {\n large: {\n primary: 40,\n secondary: 32\n },\n medium: {\n primary: 32,\n secondary: 24\n },\n small: {\n primary: 24,\n secondary: 16\n }\n}, Ia = (e) => e !== void 0 && typeof e == \"object\" && !Array.isArray(e), Qr = (e) => {\n if (e === void 0) return le.medium.primary;\n if (typeof e == \"number\")\n return e;\n const r = parseFloat(e);\n return Number.isNaN(r) ? le.medium.primary : r;\n}, Fa = (e, r) => {\n if (r)\n return {\n height: le[r].secondary,\n width: le[r].secondary\n };\n if (Ia(e)) {\n const { height: t, width: i } = e;\n return {\n height: Math.max(Qr(t) - (le.medium.primary - le.medium.secondary), le.small.secondary),\n width: Math.max(Qr(i) - (le.medium.primary - le.medium.secondary), le.small.secondary)\n };\n }\n return {\n height: le.medium.secondary,\n width: le.medium.secondary\n };\n}, Ha = ue(\n ({ secondarySrc: e, secondaryAvatarProps: r, size: t, ...i }, a) => {\n if (e) {\n const { height: o, width: l } = Fa(i.sx, t);\n return /* @__PURE__ */ v(F, { sx: { display: \"flex\", position: \"relative\" }, children: [\n /* @__PURE__ */ n(\n He,\n {\n ref: a,\n ...i,\n sx: {\n ...t && { height: le[t].primary, width: le[t].primary },\n ...i.sx\n }\n }\n ),\n /* @__PURE__ */ n(\n He,\n {\n src: e,\n sx: {\n bottom: -(o / 3),\n height: o,\n outline: ({ palette: c }) => `2px solid ${c.common.white}`,\n position: \"absolute\",\n right: -(l / 3),\n width: l,\n ...r == null ? void 0 : r.sx\n },\n ...r\n }\n )\n ] });\n }\n return /* @__PURE__ */ n(\n He,\n {\n ref: a,\n ...i,\n sx: {\n ...t && { height: le[t].primary, width: le[t].primary },\n ...i.sx\n }\n }\n );\n }\n);\nHa.displayName = \"Avatar\";\nconst so = ({ open: e, anchorEl: r, onClose: t, children: i, placement: a, variant: o = \"outlined\" }) => /* @__PURE__ */ n(nt, { open: !!e, onClick: t, sx: { backgroundColor: \"rgba(0, 0, 0, 0.2)\" }, children: /* @__PURE__ */ n(gn, { open: !!e, anchorEl: r, placement: a, sx: { maxWidth: \"100%\" }, children: /* @__PURE__ */ n(\n lr,\n {\n role: \"dialog\",\n \"aria-modal\": \"false\",\n variant: o,\n tabIndex: -1,\n onClick: (l) => l.stopPropagation(),\n sx: { borderRadius: 1.5 },\n children: i\n }\n) }) }), et = 86, Oa = {\n \"& svg\": {\n animation: \"scaleIn 0.4s ease-out\"\n },\n \"& svg path:first-of-type\": {\n animation: \"circleIn 2s ease-out\"\n },\n \"& svg path:last-child\": {\n animation: \"checkIn 0.4s ease-out 0.4s both\",\n strokeDasharray: \"30\",\n strokeDashoffset: \"-30\"\n },\n \"@keyframes checkIn\": {\n \"0%\": {\n strokeDashoffset: \"-30\"\n },\n \"100%\": {\n strokeDashoffset: \"0\"\n }\n },\n \"@keyframes circleIn\": {\n \"0%\": {\n opacity: 0\n },\n \"100%\": {\n opacity: 1\n }\n },\n \"@keyframes scaleIn\": {\n \"0%\": {\n transform: \"scale(0)\"\n },\n \"100%\": {\n transform: \"scale(1)\"\n }\n }\n}, lo = ({\n title: e,\n subtitle: r,\n buttonPrimary: t,\n buttonSecondary: i,\n color: a = \"secondary\",\n fullWidth: o = !0,\n maxWidth: l = \"xs\",\n onClose: c,\n ...d\n}) => /* @__PURE__ */ v(\n bn,\n {\n maxWidth: l,\n fullWidth: o,\n onClose: c,\n ...d,\n sx: {\n \"& .MuiDialog-paper\": {\n borderColor: ({ palette: u }) => u[a][\"30p\"]\n }\n },\n children: [\n /* @__PURE__ */ v(\n Cn,\n {\n sx: {\n alignItems: \"center\",\n backgroundColor: ({ palette: u }) => u[a][\"4p\"],\n display: \"flex\",\n flexDirection: \"column\",\n padding: 3,\n textAlign: \"center\",\n ...(t || i) && { borderBottom: ({ palette: u }) => `1px solid ${u[a][\"12p\"]}` }\n },\n children: [\n /* @__PURE__ */ n(ea, { onClick: (u) => c == null ? void 0 : c(u, \"closeButton\") }),\n /* @__PURE__ */ n(\n F,\n {\n sx: {\n alignItems: \"center\",\n backgroundColor: ({ palette: u }) => u[a][\"12p\"],\n borderRadius: \"50%\",\n color: ({ palette: u }) => u[a].main,\n display: \"flex\",\n flexShrink: 0,\n height: et,\n justifyContent: \"center\",\n marginBottom: 4,\n width: et,\n ...Oa\n },\n children: /* @__PURE__ */ v(\"svg\", { width: \"40\", height: \"40\", viewBox: \"0 0 40 40\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: [\n /* @__PURE__ */ n(\n \"path\",\n {\n d: \"M20 36.6666C29.2048 36.6666 36.6667 29.2047 36.6667 20C36.6667 10.7952 29.2048 3.33331 20 3.33331C10.7953 3.33331 3.33334 10.7952 3.33334 20C3.33334 29.2047 10.7953 36.6666 20 36.6666Z\",\n fill: \"currentColor\"\n }\n ),\n /* @__PURE__ */ n(\"path\", { d: \"M28 14L17 25L12 20\", stroke: \"white\", strokeWidth: \"2\", strokeLinecap: \"round\", strokeLinejoin: \"round\" })\n ] })\n }\n ),\n /* @__PURE__ */ n(X, { variant: \"h4\", sx: { marginBottom: 1 }, children: e }),\n /* @__PURE__ */ n(yn, { variant: \"body2\", children: r })\n ]\n }\n ),\n (t || i) && /* @__PURE__ */ v(xn, { children: [\n i && /* @__PURE__ */ n(Yr, { variant: \"outlined\", size: \"small\", isLoading: i == null ? void 0 : i.loading, onClick: i == null ? void 0 : i.onClick, sx: { flex: 1 }, children: i == null ? void 0 : i.text }),\n t && /* @__PURE__ */ n(\n Yr,\n {\n variant: \"contained\",\n size: \"small\",\n isLoading: t == null ? void 0 : t.loading,\n onClick: t == null ? void 0 : t.onClick,\n endIcon: /* @__PURE__ */ n(\"svg\", { width: \"18\", height: \"18\", viewBox: \"0 0 18 18\", fill: \"none\", xmlns: \"http://www.w3.org/2000/svg\", children: /* @__PURE__ */ n(\"path\", { d: \"M7.27875 4.5L6.22125 5.5575L9.65625 9L6.22125 12.4425L7.27875 13.5L11.7788 9L7.27875 4.5Z\", fill: \"currentColor\" }) }),\n children: t == null ? void 0 : t.text\n }\n )\n ] })\n ]\n }\n), co = ({ children: e, permissions: r, disabledPermissions: t }) => {\n const [i, a] = ie(), o = _1(\n () => ({\n disabledPermissions: t,\n permissions: i,\n setPermissions: a\n }),\n [t, i]\n );\n return T1(() => {\n a(r);\n }, [r]), /* @__PURE__ */ n(ot.Provider, { value: o, children: e });\n}, Va = {\n component: void 0,\n isOpen: !1,\n message: \"\",\n severity: \"success\",\n variant: \"standard\"\n}, Tt = k1({\n closeSnackbar: () => {\n },\n isOpen: !1,\n openSnackbar: () => {\n }\n}), po = ({\n children: e,\n autoHideDuration: r = 5e3,\n anchorOrigin: t = { horizontal: \"center\", vertical: \"bottom\" }\n}) => {\n const [i, a] = ie(Va), o = pe((d) => {\n a({\n component: d == null ? void 0 : d.component,\n isOpen: !0,\n message: (d == null ? void 0 : d.message) || \"\",\n severity: (d == null ? void 0 : d.severity) || \"success\",\n variant: (d == null ? void 0 : d.variant) || \"standard\"\n });\n }, []), l = pe((d, u) => {\n u !== \"clickaway\" && a((h) => ({ ...h, isOpen: !1 }));\n }, []), c = _1(\n () => ({\n closeSnackbar: l,\n isOpen: i.isOpen,\n openSnackbar: o\n }),\n [l, o, i.isOpen]\n );\n return /* @__PURE__ */ v(Tt.Provider, { value: c, children: [\n /* @__PURE__ */ n(\n mn,\n {\n open: i.isOpen,\n onClose: l,\n autoHideDuration: r,\n anchorOrigin: t,\n children: i.component ? /* @__PURE__ */ n(i.component, {}) : /* @__PURE__ */ n(ar, { severity: i.severity, variant: i.variant, children: i.message })\n },\n i.message\n ),\n e\n ] });\n}, uo = () => {\n const e = _e(Tt), { isOpen: r, closeSnackbar: t, openSnackbar: i } = e;\n if (e === void 0)\n throw new Error(\"SnackbarProvider must be used within a useSnackBar hook\");\n return {\n closeSnackbar: t,\n isOpen: r,\n openSnackbar: i\n };\n}, fo = () => {\n const [e, r] = ie(0);\n return {\n handleChange: pe((i, a) => {\n r(a);\n }, []),\n value: e\n };\n}, ho = (e) => `linear-gradient(${Ee(\"#fff\", +U1(e))}, ${Ee(\"#fff\", +U1(e))})`;\nexport {\n Xr as ActionAppBar,\n Ka as AppBar,\n Xa as ArticleImage,\n io as AutocompleteFilter,\n Ha as Avatar,\n la as AvatarAppBar,\n Ja as Backoffice,\n ao as BottomFixedPaper,\n Yr as Button,\n za as CardModal,\n Qa as Chip,\n ea as DialogCloseIcon,\n so as DialogPopper,\n lo as DialogValidation,\n to as File,\n rr as FileViewer,\n Ba as HasPermission,\n Et as Lightbox,\n Za as LinkTab,\n no as ListAvatar,\n no as ListAvatars,\n Ya as ListItemCard,\n $i as Logo,\n ja as NavigationMenu,\n je as NavigationMenuContext,\n co as PermissionProvider,\n Wa as QuantityField,\n Tt as SnackbarContext,\n po as SnackbarProvider,\n m1 as StatusIcon,\n Ua as TabPanel,\n Na as TextArea,\n ca as TextFieldAppBar,\n oo as TextFieldPassword,\n Rt as ThemeContext,\n ro as ThemeProvider,\n qa as TimeLine,\n Ga as TypographySkeleton,\n ho as getBackgroundImageElevation,\n K as pxToRem,\n eo as theme,\n da as useMenu,\n Sn as usePermission,\n uo as useSnackbar,\n fo as useTabs\n};\n","import { useRef as g, useState as h, useEffect as m, useCallback as d, useLayoutEffect as N } from \"react\";\nconst z = (t, e) => {\n const r = typeof e == \"number\", o = g(r || e == null ? void 0 : e.onDebounce), [n, c] = h(t), { delay: s = 500 } = r || !e ? { delay: e } : e;\n return m(() => {\n const u = setTimeout(() => {\n var i;\n c(t), (i = o.current) == null || i.call(o, t);\n }, s);\n return () => {\n clearTimeout(u);\n };\n }, [t, s]), n;\n}, A = (t = !1) => {\n const [e, r] = h(t), o = d(() => {\n r((n) => !n);\n }, []);\n return [e, o, r];\n}, F = (t, e) => {\n const { enable: r = !0, position: o = \"body-end\" } = { ...e }, [n, c] = h(t ? \"loading\" : \"idle\");\n return m(\n () => {\n if (!t || !r) {\n c(\"idle\");\n return;\n }\n let s = document.querySelector(`script[src=\"${t}\"]`);\n if (s)\n c(s.getAttribute(\"data-status\"));\n else {\n s = document.createElement(\"script\"), s.src = t, s.async = !0, s.setAttribute(\"data-status\", \"loading\"), o === \"head-start\" && document.head.insertBefore(s, document.head.childNodes[0]), o === \"head-end\" && document.head.appendChild(s), o === \"body-start\" && document.body.insertBefore(s, document.body.childNodes[0]), o === \"body-end\" && document.body.appendChild(s);\n const i = (l) => {\n s == null || s.setAttribute(\"data-status\", l.type === \"load\" ? \"ready\" : \"error\");\n };\n s.addEventListener(\"load\", i), s.addEventListener(\"error\", i);\n }\n const u = (i) => {\n c(i.type === \"load\" ? \"ready\" : \"error\");\n };\n return s.addEventListener(\"load\", u), s.addEventListener(\"error\", u), () => {\n s && (s.removeEventListener(\"load\", u), s.removeEventListener(\"error\", u));\n };\n },\n [r, o, t]\n // Only re-run effect if script src changes or enable changes\n ), n;\n}, T = (t) => {\n const [e, r] = h(t), o = d((n) => {\n if (\"target\" in n && \"value\" in n.target) {\n r(n.target.type === \"checkbox\" ? n.target.checked : n == null ? void 0 : n.target.value);\n return;\n }\n throw new Error(\"No value found in event\");\n }, []);\n return [e, o];\n}, y = typeof window < \"u\" ? N : m, P = (t) => {\n const e = d((r) => {\n window.document.title = r;\n }, []);\n return y(() => {\n e(t);\n }, [t, e]), { setTitle: e, title: window.document.title };\n};\nfunction $(t, e, r, o) {\n const n = g(e);\n y(() => {\n n.current = e;\n }, [e]), m(() => {\n const c = (r == null ? void 0 : r.current) ?? window;\n if (!(c && c.addEventListener))\n return;\n const s = (u) => n.current(u);\n return c.addEventListener(t, s, o), () => {\n c.removeEventListener(t, s, o);\n };\n }, [t, r, o]);\n}\nconst x = () => {\n const [t, e] = h({\n height: 0,\n width: 0\n }), r = () => {\n e({\n height: window.innerHeight,\n width: window.innerWidth\n });\n };\n return $(\"resize\", r), y(() => {\n r();\n }, []), t;\n}, U = () => {\n const t = g(!1);\n return m(() => (t.current = !0, () => {\n t.current = !1;\n }), []), d(() => t.current, []);\n}, E = (t) => {\n const e = g(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n return y(() => {\n e.current = t;\n }, [t]), d((...r) => e.current(...r), [e]);\n}, w = \"local-storage\", S = typeof window > \"u\", W = (t) => {\n if (!(t === \"undefined\" || t === null))\n try {\n return JSON.parse(t);\n } catch {\n return t;\n }\n}, V = (t, e, r) => {\n const o = d(\n (a) => r != null && r.serializer ? r.serializer(a) : JSON.stringify(a),\n [r]\n ), n = d(\n (a) => r != null && r.deserializer ? r.deserializer(a) : W(a),\n [r]\n ), c = d(() => {\n if (S)\n return e ?? null;\n try {\n const a = window.localStorage.getItem(t);\n return a ? n(a) : e ?? null;\n } catch {\n return e ?? null;\n }\n }, [t, e, n]), [s, u] = h(c), i = E((a) => {\n S && console.warn(`Tried setting localStorage key “${t}” even though environment is not a client`);\n try {\n const f = a instanceof Function ? a(s) : a;\n window.localStorage.setItem(t, o(f)), u(f), window.dispatchEvent(new CustomEvent(w, { detail: t }));\n } catch (f) {\n console.warn(`Error setting localStorage key “${t}”:`, f);\n }\n }), l = E(() => {\n S && console.warn(`Tried removing localStorage key “${t}” even though environment is not a client`);\n try {\n window.localStorage.removeItem(t), u(e ?? null), window.dispatchEvent(new CustomEvent(w, { detail: t }));\n } catch (a) {\n console.warn(`Error removing localStorage key “${t}”:`, a);\n }\n }), p = d(\n (a) => {\n \"key\" in a && a.key !== t || u(c());\n },\n [t, c]\n );\n return m(() => {\n u(c());\n }, [t]), $(\"storage\", p), $(w, p), [s, i, l];\n}, _ = (t, { threshold: e = 0, root: r = null, rootMargin: o = \"0%\", freezeOnceVisible: n = !1 }) => {\n const [c, s] = h(), u = (c == null ? void 0 : c.isIntersecting) && n, i = ([l]) => {\n s(l);\n };\n return m(() => {\n const l = t == null ? void 0 : t.current;\n if (!!!window.IntersectionObserver || u || !l)\n return;\n const a = { root: r, rootMargin: o, threshold: e }, f = new IntersectionObserver(i, a);\n return f.observe(l), () => f.disconnect();\n }, [t == null ? void 0 : t.current, JSON.stringify(e), r, o, u]), c;\n}, k = (t, e) => {\n const { [e]: r, ...o } = t;\n return o;\n}, J = (t) => Array.isArray(t), O = (t) => t !== null && typeof t == \"object\" && Object.prototype.hasOwnProperty.call(t, \"current\"), M = (t) => typeof t == \"function\", q = (t) => typeof t == \"boolean\", H = (t) => toString.call(t) === \"[object Object]\", G = (t) => typeof t == \"number\", Z = (t) => typeof t == \"string\", K = (t, e = 19) => {\n const n = String(t).replace(/\\D/g, \"\").replace(/(\\d{4})(?=\\d)/g, \"$1 \");\n return n.length > e ? n.slice(0, e) : n;\n}, Q = (t, e) => {\n const [r, o] = t.fullName ? t.fullName.split(\" \") : [t.firstName || \"\", t.lastName || \"\"];\n return e ? `${r == null ? void 0 : r.charAt(0).toUpperCase()}${o == null ? void 0 : o.charAt(0).toUpperCase()}` : `${r == null ? void 0 : r.charAt(0)}${o == null ? void 0 : o.charAt(0)}`;\n}, C = (t) => `${t.country || \"\"}`, v = (t) => {\n const e = t.city && t.postalCode ? `${t.postalCode || \"\"} ` : `${t.postalCode || \"\"}`, r = t.city || \"\", o = C(t), n = (t.postalCode || t.city) && o ? \", \" : \"\";\n return `${e}${r}${n}`;\n}, I = (t) => {\n const e = t.route ? `${t.streetNumber || \"\"} ` : `${t.streetNumber || \"\"}`, r = t.route || \"\", o = v(t), n = C(t), c = (t.route || t.streetNumber) && (o || n) ? \", \" : \"\";\n return `${e}${r}${c}`;\n}, X = (t) => {\n if (!t)\n return \"\";\n const e = I(t), r = v(t), o = C(t);\n return `${e}${r}${o}`.trim();\n}, L = {\n currency: \"EUR\",\n local: \"fr-FR\",\n style: \"currency\"\n}, Y = (t, e) => {\n const { currency: r, local: o, style: n } = {\n ...L,\n ...e\n };\n if (!t)\n return new Intl.NumberFormat(o, {\n currency: r,\n maximumFractionDigits: 0,\n minimumFractionDigits: 0,\n style: n\n }).format(0);\n const c = Number.isInteger(t), s = {\n currency: r,\n maximumFractionDigits: c ? 0 : 2,\n minimumFractionDigits: c ? 0 : 2,\n style: n\n };\n return new Intl.NumberFormat(o, s).format(t);\n}, R = (t, e = {}) => {\n const { addPrefix: r = !1, separator: o = \" \" } = e, n = t.replace(/\\D/g, \"\"), c = (() => {\n if (n.startsWith(\"1\"))\n return \"us\";\n const i = n.slice(0, 2);\n if (n.startsWith(\"0\"))\n return \"fr\";\n switch (i) {\n case \"33\":\n return \"fr\";\n case \"44\":\n return \"uk\";\n case \"49\":\n return \"de\";\n case \"34\":\n return \"es\";\n default:\n return \"unknown\";\n }\n })(), s = (i) => i.replace(/ /g, o), u = (() => {\n switch (c) {\n case \"fr\": {\n const i = n.startsWith(\"33\") ? n.slice(2) : n, l = i.startsWith(\"0\") ? i : `0${i}`;\n return s(\n l.slice(0, 10).replace(/(\\d{2})(?=\\d)/g, \"$1 \").trim()\n );\n }\n case \"uk\": {\n const i = n.startsWith(\"44\") ? n.slice(2) : n;\n return s(i.replace(/(\\d{4})(\\d{3})(\\d{3})/, \"$1 $2 $3\"));\n }\n case \"de\": {\n const i = n.startsWith(\"49\") ? n.slice(2) : n, l = i.startsWith(\"0\") ? i : `0${i}`;\n return s(l.replace(/(\\d{4})(\\d{3})(\\d{4})/, \"$1 $2 $3\"));\n }\n case \"es\": {\n const i = n.startsWith(\"34\") ? n.slice(2) : n;\n return s(i.slice(0, 9).replace(/(\\d{3})(\\d{3})(\\d{3})/, \"$1 $2 $3\"));\n }\n case \"us\": {\n const l = (n.length === 11 ? n.slice(1) : n).slice(0, 10);\n return s(l.replace(/(\\d{3})(\\d{3})(\\d{4})/, \"($1) $2-$3\"));\n }\n default:\n return s(n.replace(/(\\d{2})(?=\\d)/g, \"$1 \").trim());\n }\n })();\n return r ? `+${c === \"us\" ? \"1\" : n.slice(0, 2)} ${u}` : u;\n}, B = (t) => !t || typeof t != \"string\" ? \"\" : t.charAt(0).toUpperCase() + t.slice(1).toLowerCase(), j = (t) => !t || typeof t != \"string\" ? \"\" : t == null ? void 0 : t.toLowerCase().split(\" \").map((e) => e.charAt(0).toUpperCase() + e.slice(1)).join(\" \"), b = (t, e, r = /* @__PURE__ */ new WeakMap()) => {\n if (t === e)\n return !0;\n if (t === null || e === null || typeof t != \"object\" || typeof e != \"object\")\n return !1;\n if (t instanceof Date && e instanceof Date)\n return t.getTime() === e.getTime();\n if (Array.isArray(t) && Array.isArray(e))\n return t.length !== e.length ? !1 : t.every((s, u) => b(s, e[u], r));\n r.has(t) || r.set(t, /* @__PURE__ */ new Set());\n const o = r.get(t);\n if (o.has(e))\n throw new Error(\"Circular reference detected\");\n if (o.add(e), t.constructor !== e.constructor)\n return !1;\n const n = Object.keys(t), c = new Set(Object.keys(e));\n if (n.length !== c.size)\n return !1;\n try {\n return n.every((s) => c.has(s) ? b(t[s], e[s], r) : !1);\n } finally {\n o.delete(e);\n }\n}, tt = (t) => {\n if (typeof t == \"boolean\")\n return 0;\n const e = Number(t);\n return Number.isNaN(e) ? 0 : e;\n};\nexport {\n X as addressToString,\n B as capitalize,\n j as capitalizeWords,\n K as formatCreditCardNumber,\n Q as getInitials,\n J as isArray,\n q as isBoolean,\n b as isDeepEqualObject,\n M as isFunction,\n G as isNumber,\n H as isObject,\n O as isRef,\n Z as isString,\n R as phoneNumberAdapter,\n Y as priceAdapter,\n k as removeObjectProperty,\n tt as toNumberOrZero,\n z as useDebounce,\n P as useDocumentTitle,\n $ as useEventListener,\n T as useInputState,\n _ as useIntersectionObserver,\n U as useIsMounted,\n y as useIsomorphicLayoutEffect,\n V as useLocalStorage,\n F as useScript,\n A as useToggle,\n x as useWindowSize\n};\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nexport default freeGlobal;\n","import freeGlobal from './_freeGlobal.js';\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nexport default root;\n","import root from './_root.js';\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nexport default Symbol;\n","import Symbol from './_Symbol.js';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nexport default getRawTag;\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\nexport default objectToString;\n","import Symbol from './_Symbol.js';\nimport getRawTag from './_getRawTag.js';\nimport objectToString from './_objectToString.js';\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\nexport default baseGetTag;\n","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return value != null && typeof value == 'object';\n}\n\nexport default isObjectLike;\n","import baseGetTag from './_baseGetTag.js';\nimport isObjectLike from './isObjectLike.js';\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nexport default isSymbol;\n","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nexport default isArray;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nexport default trimmedEndIndex;\n","import trimmedEndIndex from './_trimmedEndIndex.js';\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nexport default baseTrim;\n","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nexport default isObject;\n","import baseTrim from './_baseTrim.js';\nimport isObject from './isObject.js';\nimport isSymbol from './isSymbol.js';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nexport default toNumber;\n","import root from './_root.js';\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nexport default now;\n","import isObject from './isObject.js';\nimport now from './now.js';\nimport toNumber from './toNumber.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nexport default debounce;\n","import debounce from './debounce.js';\nimport isObject from './isObject.js';\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nexport default throttle;\n","import St, { forwardRef as he, useRef as Ie, useState as ge, useMemo as Ue, useEffect as xe, createElement as ct, createContext as Yt, useLayoutEffect as lt, useContext as Lt, memo as jr, useCallback as wt } from \"react\";\nimport { DatePicker as tt, DateRangePicker as vr, TimePicker as rt, LocalizationProvider as Tr } from \"@mui/x-date-pickers-pro\";\nimport { LicenseInfo as ot } from \"@mui/x-license\";\nimport { useQuery as At, QueryClient as Mr, QueryClientProvider as wr } from \"@tanstack/react-query\";\nimport { Stack as V, Skeleton as ie, Box as re, Slide as $t, Button as _r, Typography as We, InputLabel as Dr, Autocomplete as ut, Grid as Ze, TextField as _e, CircularProgress as Ft, ListItem as Se, ListItemAvatar as Ct, Avatar as It, ListItemText as Ut, FormControl as Be, FormGroup as Wt, FormControlLabel as Le, Radio as nt, FormHelperText as He, Alert as Ke, File as kr, RadioGroup as Pr, Select as Rr, MenuItem as Or, Checkbox as st, Switch as Er, Divider as Sr, useTheme as Yr, ThemeProvider as Lr, IconButton as Ar, SvgIcon as $r, Collapse as _t, List as Fr } from \"@tracktor/design-system\";\nimport K from \"dayjs\";\nimport { useScript as Cr, isObject as fe, isString as ve, isDeepEqualObject as Ir, useToggle as Ur } from \"@tracktor/react-utils\";\nimport { throttle as Wr, isArray as zr } from \"lodash-es\";\nvar De = typeof globalThis < \"u\" ? globalThis : typeof window < \"u\" ? window : typeof global < \"u\" ? global : typeof self < \"u\" ? self : {};\nfunction Ae(s) {\n return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, \"default\") ? s.default : s;\n}\nvar it = { exports: {} }, Fe = {};\n/**\n * @license React\n * react-jsx-runtime.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 */\nvar Dt;\nfunction Br() {\n if (Dt) return Fe;\n Dt = 1;\n var s = St, n = Symbol.for(\"react.element\"), i = Symbol.for(\"react.fragment\"), e = Object.prototype.hasOwnProperty, t = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, l = { key: !0, ref: !0, __self: !0, __source: !0 };\n function c(o, u, d) {\n var g, f = {}, h = null, p = null;\n d !== void 0 && (h = \"\" + d), u.key !== void 0 && (h = \"\" + u.key), u.ref !== void 0 && (p = u.ref);\n for (g in u) e.call(u, g) && !l.hasOwnProperty(g) && (f[g] = u[g]);\n if (o && o.defaultProps) for (g in u = o.defaultProps, u) f[g] === void 0 && (f[g] = u[g]);\n return { $$typeof: n, type: o, key: h, ref: p, props: f, _owner: t.current };\n }\n return Fe.Fragment = i, Fe.jsx = c, Fe.jsxs = c, Fe;\n}\nvar Ce = {};\n/**\n * @license React\n * react-jsx-runtime.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 */\nvar kt;\nfunction Hr() {\n return kt || (kt = 1, process.env.NODE_ENV !== \"production\" && function() {\n var s = St, n = Symbol.for(\"react.element\"), i = Symbol.for(\"react.portal\"), e = Symbol.for(\"react.fragment\"), t = Symbol.for(\"react.strict_mode\"), l = Symbol.for(\"react.profiler\"), c = Symbol.for(\"react.provider\"), o = Symbol.for(\"react.context\"), u = Symbol.for(\"react.forward_ref\"), d = Symbol.for(\"react.suspense\"), g = Symbol.for(\"react.suspense_list\"), f = Symbol.for(\"react.memo\"), h = Symbol.for(\"react.lazy\"), p = Symbol.for(\"react.offscreen\"), j = Symbol.iterator, v = \"@@iterator\";\n function m(r) {\n if (r === null || typeof r != \"object\")\n return null;\n var y = j && r[j] || r[v];\n return typeof y == \"function\" ? y : null;\n }\n var x = s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;\n function b(r) {\n {\n for (var y = arguments.length, w = new Array(y > 1 ? y - 1 : 0), $ = 1; $ < y; $++)\n w[$ - 1] = arguments[$];\n T(\"error\", r, w);\n }\n }\n function T(r, y, w) {\n {\n var $ = x.ReactDebugCurrentFrame, z = $.getStackAddendum();\n z !== \"\" && (y += \"%s\", w = w.concat([z]));\n var H = w.map(function(W) {\n return String(W);\n });\n H.unshift(\"Warning: \" + y), Function.prototype.apply.call(console[r], console, H);\n }\n }\n var k = !1, P = !1, S = !1, Y = !1, L = !1, F;\n F = Symbol.for(\"react.module.reference\");\n function _(r) {\n return !!(typeof r == \"string\" || typeof r == \"function\" || r === e || r === l || L || r === t || r === d || r === g || Y || r === p || k || P || S || typeof r == \"object\" && r !== null && (r.$$typeof === h || r.$$typeof === f || r.$$typeof === c || r.$$typeof === o || r.$$typeof === u || // This needs to include all possible module reference object\n // types supported by any Flight configuration anywhere since\n // we don't know which Flight build this will end up being used\n // with.\n r.$$typeof === F || r.getModuleId !== void 0));\n }\n function D(r, y, w) {\n var $ = r.displayName;\n if ($)\n return $;\n var z = y.displayName || y.name || \"\";\n return z !== \"\" ? w + \"(\" + z + \")\" : w;\n }\n function A(r) {\n return r.displayName || \"Context\";\n }\n function C(r) {\n if (r == null)\n return null;\n if (typeof r.tag == \"number\" && b(\"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"), typeof r == \"function\")\n return r.displayName || r.name || null;\n if (typeof r == \"string\")\n return r;\n switch (r) {\n case e:\n return \"Fragment\";\n case i:\n return \"Portal\";\n case l:\n return \"Profiler\";\n case t:\n return \"StrictMode\";\n case d:\n return \"Suspense\";\n case g:\n return \"SuspenseList\";\n }\n if (typeof r == \"object\")\n switch (r.$$typeof) {\n case o:\n var y = r;\n return A(y) + \".Consumer\";\n case c:\n var w = r;\n return A(w._context) + \".Provider\";\n case u:\n return D(r, r.render, \"ForwardRef\");\n case f:\n var $ = r.displayName || null;\n return $ !== null ? $ : C(r.type) || \"Memo\";\n case h: {\n var z = r, H = z._payload, W = z._init;\n try {\n return C(W(H));\n } catch {\n return null;\n }\n }\n }\n return null;\n }\n var E = Object.assign, I = 0, M, R, O, B, Q, G, te;\n function ee() {\n }\n ee.__reactDisabledLog = !0;\n function le() {\n {\n if (I === 0) {\n M = console.log, R = console.info, O = console.warn, B = console.error, Q = console.group, G = console.groupCollapsed, te = console.groupEnd;\n var r = {\n configurable: !0,\n enumerable: !0,\n value: ee,\n writable: !0\n };\n Object.defineProperties(console, {\n info: r,\n log: r,\n warn: r,\n error: r,\n group: r,\n groupCollapsed: r,\n groupEnd: r\n });\n }\n I++;\n }\n }\n function N() {\n {\n if (I--, I === 0) {\n var r = {\n configurable: !0,\n enumerable: !0,\n writable: !0\n };\n Object.defineProperties(console, {\n log: E({}, r, {\n value: M\n }),\n info: E({}, r, {\n value: R\n }),\n warn: E({}, r, {\n value: O\n }),\n error: E({}, r, {\n value: B\n }),\n group: E({}, r, {\n value: Q\n }),\n groupCollapsed: E({}, r, {\n value: G\n }),\n groupEnd: E({}, r, {\n value: te\n })\n });\n }\n I < 0 && b(\"disabledDepth fell below zero. This is a bug in React. Please file an issue.\");\n }\n }\n var q = x.ReactCurrentDispatcher, ae;\n function J(r, y, w) {\n {\n if (ae === void 0)\n try {\n throw Error();\n } catch (z) {\n var $ = z.stack.trim().match(/\\n( *(at )?)/);\n ae = $ && $[1] || \"\";\n }\n return `\n` + ae + r;\n }\n }\n var ne = !1, ue;\n {\n var be = typeof WeakMap == \"function\" ? WeakMap : Map;\n ue = new be();\n }\n function me(r, y) {\n if (!r || ne)\n return \"\";\n {\n var w = ue.get(r);\n if (w !== void 0)\n return w;\n }\n var $;\n ne = !0;\n var z = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var H;\n H = q.current, q.current = null, le();\n try {\n if (y) {\n var W = function() {\n throw Error();\n };\n if (Object.defineProperty(W.prototype, \"props\", {\n set: function() {\n throw Error();\n }\n }), typeof Reflect == \"object\" && Reflect.construct) {\n try {\n Reflect.construct(W, []);\n } catch (ce) {\n $ = ce;\n }\n Reflect.construct(r, [], W);\n } else {\n try {\n W.call();\n } catch (ce) {\n $ = ce;\n }\n r.call(W.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (ce) {\n $ = ce;\n }\n r();\n }\n } catch (ce) {\n if (ce && $ && typeof ce.stack == \"string\") {\n for (var U = ce.stack.split(`\n`), se = $.stack.split(`\n`), X = U.length - 1, Z = se.length - 1; X >= 1 && Z >= 0 && U[X] !== se[Z]; )\n Z--;\n for (; X >= 1 && Z >= 0; X--, Z--)\n if (U[X] !== se[Z]) {\n if (X !== 1 || Z !== 1)\n do\n if (X--, Z--, Z < 0 || U[X] !== se[Z]) {\n var de = `\n` + U[X].replace(\" at new \", \" at \");\n return r.displayName && de.includes(\"\") && (de = de.replace(\"\", r.displayName)), typeof r == \"function\" && ue.set(r, de), de;\n }\n while (X >= 1 && Z >= 0);\n break;\n }\n }\n } finally {\n ne = !1, q.current = H, N(), Error.prepareStackTrace = z;\n }\n var Ee = r ? r.displayName || r.name : \"\", Te = Ee ? J(Ee) : \"\";\n return typeof r == \"function\" && ue.set(r, Te), Te;\n }\n function $e(r, y, w) {\n return me(r, !1);\n }\n function ke(r) {\n var y = r.prototype;\n return !!(y && y.isReactComponent);\n }\n function ye(r, y, w) {\n if (r == null)\n return \"\";\n if (typeof r == \"function\")\n return me(r, ke(r));\n if (typeof r == \"string\")\n return J(r);\n switch (r) {\n case d:\n return J(\"Suspense\");\n case g:\n return J(\"SuspenseList\");\n }\n if (typeof r == \"object\")\n switch (r.$$typeof) {\n case u:\n return $e(r.render);\n case f:\n return ye(r.type, y, w);\n case h: {\n var $ = r, z = $._payload, H = $._init;\n try {\n return ye(H(z), y, w);\n } catch {\n }\n }\n }\n return \"\";\n }\n var pe = Object.prototype.hasOwnProperty, Pe = {}, Re = x.ReactDebugCurrentFrame;\n function je(r) {\n if (r) {\n var y = r._owner, w = ye(r.type, r._source, y ? y.type : null);\n Re.setExtraStackFrame(w);\n } else\n Re.setExtraStackFrame(null);\n }\n function dt(r, y, w, $, z) {\n {\n var H = Function.call.bind(pe);\n for (var W in r)\n if (H(r, W)) {\n var U = void 0;\n try {\n if (typeof r[W] != \"function\") {\n var se = Error(($ || \"React class\") + \": \" + w + \" type `\" + W + \"` is invalid; it must be a function, usually from the `prop-types` package, but received `\" + typeof r[W] + \"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.\");\n throw se.name = \"Invariant Violation\", se;\n }\n U = r[W](y, W, $, w, null, \"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED\");\n } catch (X) {\n U = X;\n }\n U && !(U instanceof Error) && (je(z), b(\"%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).\", $ || \"React class\", w, W, typeof U), je(null)), U instanceof Error && !(U.message in Pe) && (Pe[U.message] = !0, je(z), b(\"Failed %s type: %s\", w, U.message), je(null));\n }\n }\n }\n var Qt = Array.isArray;\n function Ge(r) {\n return Qt(r);\n }\n function er(r) {\n {\n var y = typeof Symbol == \"function\" && Symbol.toStringTag, w = y && r[Symbol.toStringTag] || r.constructor.name || \"Object\";\n return w;\n }\n }\n function tr(r) {\n try {\n return ft(r), !1;\n } catch {\n return !0;\n }\n }\n function ft(r) {\n return \"\" + r;\n }\n function ht(r) {\n if (tr(r))\n return b(\"The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.\", er(r)), ft(r);\n }\n var mt = x.ReactCurrentOwner, rr = {\n key: !0,\n ref: !0,\n __self: !0,\n __source: !0\n }, gt, xt;\n function nr(r) {\n if (pe.call(r, \"ref\")) {\n var y = Object.getOwnPropertyDescriptor(r, \"ref\").get;\n if (y && y.isReactWarning)\n return !1;\n }\n return r.ref !== void 0;\n }\n function sr(r) {\n if (pe.call(r, \"key\")) {\n var y = Object.getOwnPropertyDescriptor(r, \"key\").get;\n if (y && y.isReactWarning)\n return !1;\n }\n return r.key !== void 0;\n }\n function ir(r, y) {\n typeof r.ref == \"string\" && mt.current;\n }\n function ar(r, y) {\n {\n var w = function() {\n gt || (gt = !0, b(\"%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://reactjs.org/link/special-props)\", y));\n };\n w.isReactWarning = !0, Object.defineProperty(r, \"key\", {\n get: w,\n configurable: !0\n });\n }\n }\n function cr(r, y) {\n {\n var w = function() {\n xt || (xt = !0, b(\"%s: `ref` 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://reactjs.org/link/special-props)\", y));\n };\n w.isReactWarning = !0, Object.defineProperty(r, \"ref\", {\n get: w,\n configurable: !0\n });\n }\n }\n var lr = function(r, y, w, $, z, H, W) {\n var U = {\n // This tag allows us to uniquely identify this as a React Element\n $$typeof: n,\n // Built-in properties that belong on the element\n type: r,\n key: y,\n ref: w,\n props: W,\n // Record the component responsible for creating this element.\n _owner: H\n };\n return U._store = {}, Object.defineProperty(U._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: !1\n }), Object.defineProperty(U, \"_self\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: $\n }), Object.defineProperty(U, \"_source\", {\n configurable: !1,\n enumerable: !1,\n writable: !1,\n value: z\n }), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;\n };\n function or(r, y, w, $, z) {\n {\n var H, W = {}, U = null, se = null;\n w !== void 0 && (ht(w), U = \"\" + w), sr(y) && (ht(y.key), U = \"\" + y.key), nr(y) && (se = y.ref, ir(y, z));\n for (H in y)\n pe.call(y, H) && !rr.hasOwnProperty(H) && (W[H] = y[H]);\n if (r && r.defaultProps) {\n var X = r.defaultProps;\n for (H in X)\n W[H] === void 0 && (W[H] = X[H]);\n }\n if (U || se) {\n var Z = typeof r == \"function\" ? r.displayName || r.name || \"Unknown\" : r;\n U && ar(W, Z), se && cr(W, Z);\n }\n return lr(r, U, se, z, $, mt.current, W);\n }\n }\n var Ne = x.ReactCurrentOwner, yt = x.ReactDebugCurrentFrame;\n function Oe(r) {\n if (r) {\n var y = r._owner, w = ye(r.type, r._source, y ? y.type : null);\n yt.setExtraStackFrame(w);\n } else\n yt.setExtraStackFrame(null);\n }\n var qe;\n qe = !1;\n function Xe(r) {\n return typeof r == \"object\" && r !== null && r.$$typeof === n;\n }\n function pt() {\n {\n if (Ne.current) {\n var r = C(Ne.current.type);\n if (r)\n return `\n\nCheck the render method of \\`` + r + \"`.\";\n }\n return \"\";\n }\n }\n function ur(r) {\n return \"\";\n }\n var bt = {};\n function dr(r) {\n {\n var y = pt();\n if (!y) {\n var w = typeof r == \"string\" ? r : r.displayName || r.name;\n w && (y = `\n\nCheck the top-level render call using <` + w + \">.\");\n }\n return y;\n }\n }\n function jt(r, y) {\n {\n if (!r._store || r._store.validated || r.key != null)\n return;\n r._store.validated = !0;\n var w = dr(y);\n if (bt[w])\n return;\n bt[w] = !0;\n var $ = \"\";\n r && r._owner && r._owner !== Ne.current && ($ = \" It was passed a child from \" + C(r._owner.type) + \".\"), Oe(r), b('Each child in a list should have a unique \"key\" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', w, $), Oe(null);\n }\n }\n function vt(r, y) {\n {\n if (typeof r != \"object\")\n return;\n if (Ge(r))\n for (var w = 0; w < r.length; w++) {\n var $ = r[w];\n Xe($) && jt($, y);\n }\n else if (Xe(r))\n r._store && (r._store.validated = !0);\n else if (r) {\n var z = m(r);\n if (typeof z == \"function\" && z !== r.entries)\n for (var H = z.call(r), W; !(W = H.next()).done; )\n Xe(W.value) && jt(W.value, y);\n }\n }\n }\n function fr(r) {\n {\n var y = r.type;\n if (y == null || typeof y == \"string\")\n return;\n var w;\n if (typeof y == \"function\")\n w = y.propTypes;\n else if (typeof y == \"object\" && (y.$$typeof === u || // Note: Memo only checks outer props here.\n // Inner props are checked in the reconciler.\n y.$$typeof === f))\n w = y.propTypes;\n else\n return;\n if (w) {\n var $ = C(y);\n dt(w, r.props, \"prop\", $, r);\n } else if (y.PropTypes !== void 0 && !qe) {\n qe = !0;\n var z = C(y);\n b(\"Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?\", z || \"Unknown\");\n }\n typeof y.getDefaultProps == \"function\" && !y.getDefaultProps.isReactClassApproved && b(\"getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.\");\n }\n }\n function hr(r) {\n {\n for (var y = Object.keys(r.props), w = 0; w < y.length; w++) {\n var $ = y[w];\n if ($ !== \"children\" && $ !== \"key\") {\n Oe(r), b(\"Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.\", $), Oe(null);\n break;\n }\n }\n r.ref !== null && (Oe(r), b(\"Invalid attribute `ref` supplied to `React.Fragment`.\"), Oe(null));\n }\n }\n var Tt = {};\n function Mt(r, y, w, $, z, H) {\n {\n var W = _(r);\n if (!W) {\n var U = \"\";\n (r === void 0 || typeof r == \"object\" && r !== null && Object.keys(r).length === 0) && (U += \" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\");\n var se = ur();\n se ? U += se : U += pt();\n var X;\n r === null ? X = \"null\" : Ge(r) ? X = \"array\" : r !== void 0 && r.$$typeof === n ? (X = \"<\" + (C(r.type) || \"Unknown\") + \" />\", U = \" Did you accidentally export a JSX literal instead of a component?\") : X = typeof r, b(\"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\", X, U);\n }\n var Z = or(r, y, w, z, H);\n if (Z == null)\n return Z;\n if (W) {\n var de = y.children;\n if (de !== void 0)\n if ($)\n if (Ge(de)) {\n for (var Ee = 0; Ee < de.length; Ee++)\n vt(de[Ee], r);\n Object.freeze && Object.freeze(de);\n } else\n b(\"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 else\n vt(de, r);\n }\n if (pe.call(y, \"key\")) {\n var Te = C(r), ce = Object.keys(y).filter(function(br) {\n return br !== \"key\";\n }), Ve = ce.length > 0 ? \"{key: someKey, \" + ce.join(\": ..., \") + \": ...}\" : \"{key: someKey}\";\n if (!Tt[Te + Ve]) {\n var pr = ce.length > 0 ? \"{\" + ce.join(\": ..., \") + \": ...}\" : \"{}\";\n b(`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} />`, Ve, Te, pr, Te), Tt[Te + Ve] = !0;\n }\n }\n return r === e ? hr(Z) : fr(Z), Z;\n }\n }\n function mr(r, y, w) {\n return Mt(r, y, w, !0);\n }\n function gr(r, y, w) {\n return Mt(r, y, w, !1);\n }\n var xr = gr, yr = mr;\n Ce.Fragment = e, Ce.jsx = xr, Ce.jsxs = yr;\n }()), Ce;\n}\nprocess.env.NODE_ENV === \"production\" ? it.exports = Br() : it.exports = Hr();\nvar a = it.exports;\nfunction at() {\n return at = Object.assign ? Object.assign.bind() : function(s) {\n for (var n = 1; n < arguments.length; n++) {\n var i = arguments[n];\n for (var e in i) ({}).hasOwnProperty.call(i, e) && (s[e] = i[e]);\n }\n return s;\n }, at.apply(null, arguments);\n}\nvar zt = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, function() {\n var i = \"week\", e = \"year\";\n return function(t, l, c) {\n var o = l.prototype;\n o.week = function(u) {\n if (u === void 0 && (u = null), u !== null) return this.add(7 * (u - this.week()), \"day\");\n var d = this.$locale().yearStart || 1;\n if (this.month() === 11 && this.date() > 25) {\n var g = c(this).startOf(e).add(1, e).date(d), f = c(this).endOf(i);\n if (g.isBefore(f)) return 1;\n }\n var h = c(this).startOf(e).date(d).startOf(i).subtract(1, \"millisecond\"), p = this.diff(h, i, !0);\n return p < 0 ? c(this).startOf(\"week\").week() : Math.ceil(p);\n }, o.weeks = function(u) {\n return u === void 0 && (u = null), this.week(u);\n };\n };\n });\n})(zt);\nvar Kr = zt.exports;\nconst Gr = /* @__PURE__ */ Ae(Kr);\nvar Bt = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, function() {\n var i = { LTS: \"h:mm:ss A\", LT: \"h:mm A\", L: \"MM/DD/YYYY\", LL: \"MMMM D, YYYY\", LLL: \"MMMM D, YYYY h:mm A\", LLLL: \"dddd, MMMM D, YYYY h:mm A\" }, e = /(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g, t = /\\d/, l = /\\d\\d/, c = /\\d\\d?/, o = /\\d*[^-_:/,()\\s\\d]+/, u = {}, d = function(m) {\n return (m = +m) + (m > 68 ? 1900 : 2e3);\n }, g = function(m) {\n return function(x) {\n this[m] = +x;\n };\n }, f = [/[+-]\\d\\d:?(\\d\\d)?|Z/, function(m) {\n (this.zone || (this.zone = {})).offset = function(x) {\n if (!x || x === \"Z\") return 0;\n var b = x.match(/([+-]|\\d\\d)/g), T = 60 * b[1] + (+b[2] || 0);\n return T === 0 ? 0 : b[0] === \"+\" ? -T : T;\n }(m);\n }], h = function(m) {\n var x = u[m];\n return x && (x.indexOf ? x : x.s.concat(x.f));\n }, p = function(m, x) {\n var b, T = u.meridiem;\n if (T) {\n for (var k = 1; k <= 24; k += 1) if (m.indexOf(T(k, 0, x)) > -1) {\n b = k > 12;\n break;\n }\n } else b = m === (x ? \"pm\" : \"PM\");\n return b;\n }, j = { A: [o, function(m) {\n this.afternoon = p(m, !1);\n }], a: [o, function(m) {\n this.afternoon = p(m, !0);\n }], Q: [t, function(m) {\n this.month = 3 * (m - 1) + 1;\n }], S: [t, function(m) {\n this.milliseconds = 100 * +m;\n }], SS: [l, function(m) {\n this.milliseconds = 10 * +m;\n }], SSS: [/\\d{3}/, function(m) {\n this.milliseconds = +m;\n }], s: [c, g(\"seconds\")], ss: [c, g(\"seconds\")], m: [c, g(\"minutes\")], mm: [c, g(\"minutes\")], H: [c, g(\"hours\")], h: [c, g(\"hours\")], HH: [c, g(\"hours\")], hh: [c, g(\"hours\")], D: [c, g(\"day\")], DD: [l, g(\"day\")], Do: [o, function(m) {\n var x = u.ordinal, b = m.match(/\\d+/);\n if (this.day = b[0], x) for (var T = 1; T <= 31; T += 1) x(T).replace(/\\[|\\]/g, \"\") === m && (this.day = T);\n }], w: [c, g(\"week\")], ww: [l, g(\"week\")], M: [c, g(\"month\")], MM: [l, g(\"month\")], MMM: [o, function(m) {\n var x = h(\"months\"), b = (h(\"monthsShort\") || x.map(function(T) {\n return T.slice(0, 3);\n })).indexOf(m) + 1;\n if (b < 1) throw new Error();\n this.month = b % 12 || b;\n }], MMMM: [o, function(m) {\n var x = h(\"months\").indexOf(m) + 1;\n if (x < 1) throw new Error();\n this.month = x % 12 || x;\n }], Y: [/[+-]?\\d+/, g(\"year\")], YY: [l, function(m) {\n this.year = d(m);\n }], YYYY: [/\\d{4}/, g(\"year\")], Z: f, ZZ: f };\n function v(m) {\n var x, b;\n x = m, b = u && u.formats;\n for (var T = (m = x.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(_, D, A) {\n var C = A && A.toUpperCase();\n return D || b[A] || i[A] || b[C].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, function(E, I, M) {\n return I || M.slice(1);\n });\n })).match(e), k = T.length, P = 0; P < k; P += 1) {\n var S = T[P], Y = j[S], L = Y && Y[0], F = Y && Y[1];\n T[P] = F ? { regex: L, parser: F } : S.replace(/^\\[|\\]$/g, \"\");\n }\n return function(_) {\n for (var D = {}, A = 0, C = 0; A < k; A += 1) {\n var E = T[A];\n if (typeof E == \"string\") C += E.length;\n else {\n var I = E.regex, M = E.parser, R = _.slice(C), O = I.exec(R)[0];\n M.call(D, O), _ = _.replace(O, \"\");\n }\n }\n return function(B) {\n var Q = B.afternoon;\n if (Q !== void 0) {\n var G = B.hours;\n Q ? G < 12 && (B.hours += 12) : G === 12 && (B.hours = 0), delete B.afternoon;\n }\n }(D), D;\n };\n }\n return function(m, x, b) {\n b.p.customParseFormat = !0, m && m.parseTwoDigitYear && (d = m.parseTwoDigitYear);\n var T = x.prototype, k = T.parse;\n T.parse = function(P) {\n var S = P.date, Y = P.utc, L = P.args;\n this.$u = Y;\n var F = L[1];\n if (typeof F == \"string\") {\n var _ = L[2] === !0, D = L[3] === !0, A = _ || D, C = L[2];\n D && (C = L[2]), u = this.$locale(), !_ && C && (u = b.Ls[C]), this.$d = function(R, O, B, Q) {\n try {\n if ([\"x\", \"X\"].indexOf(O) > -1) return new Date((O === \"X\" ? 1e3 : 1) * R);\n var G = v(O)(R), te = G.year, ee = G.month, le = G.day, N = G.hours, q = G.minutes, ae = G.seconds, J = G.milliseconds, ne = G.zone, ue = G.week, be = /* @__PURE__ */ new Date(), me = le || (te || ee ? 1 : be.getDate()), $e = te || be.getFullYear(), ke = 0;\n te && !ee || (ke = ee > 0 ? ee - 1 : be.getMonth());\n var ye, pe = N || 0, Pe = q || 0, Re = ae || 0, je = J || 0;\n return ne ? new Date(Date.UTC($e, ke, me, pe, Pe, Re, je + 60 * ne.offset * 1e3)) : B ? new Date(Date.UTC($e, ke, me, pe, Pe, Re, je)) : (ye = new Date($e, ke, me, pe, Pe, Re, je), ue && (ye = Q(ye).week(ue).toDate()), ye);\n } catch {\n return /* @__PURE__ */ new Date(\"\");\n }\n }(S, F, Y, b), this.init(), C && C !== !0 && (this.$L = this.locale(C).$L), A && S != this.format(F) && (this.$d = /* @__PURE__ */ new Date(\"\")), u = {};\n } else if (F instanceof Array) for (var E = F.length, I = 1; I <= E; I += 1) {\n L[1] = F[I - 1];\n var M = b.apply(this, L);\n if (M.isValid()) {\n this.$d = M.$d, this.$L = M.$L, this.init();\n break;\n }\n I === E && (this.$d = /* @__PURE__ */ new Date(\"\"));\n }\n else k.call(this, P);\n };\n };\n });\n})(Bt);\nvar Nr = Bt.exports;\nconst qr = /* @__PURE__ */ Ae(Nr);\nvar Ht = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, function() {\n var i = { LTS: \"h:mm:ss A\", LT: \"h:mm A\", L: \"MM/DD/YYYY\", LL: \"MMMM D, YYYY\", LLL: \"MMMM D, YYYY h:mm A\", LLLL: \"dddd, MMMM D, YYYY h:mm A\" };\n return function(e, t, l) {\n var c = t.prototype, o = c.format;\n l.en.formats = i, c.format = function(u) {\n u === void 0 && (u = \"YYYY-MM-DDTHH:mm:ssZ\");\n var d = this.$locale().formats, g = function(f, h) {\n return f.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(p, j, v) {\n var m = v && v.toUpperCase();\n return j || h[v] || i[v] || h[m].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, function(x, b, T) {\n return b || T.slice(1);\n });\n });\n }(u, d === void 0 ? {} : d);\n return o.call(this, g);\n };\n };\n });\n})(Ht);\nvar Xr = Ht.exports;\nconst Vr = /* @__PURE__ */ Ae(Xr);\nvar Kt = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, function() {\n return function(i, e, t) {\n e.prototype.isBetween = function(l, c, o, u) {\n var d = t(l), g = t(c), f = (u = u || \"()\")[0] === \"(\", h = u[1] === \")\";\n return (f ? this.isAfter(d, o) : !this.isBefore(d, o)) && (h ? this.isBefore(g, o) : !this.isAfter(g, o)) || (f ? this.isBefore(d, o) : !this.isAfter(d, o)) && (h ? this.isAfter(g, o) : !this.isBefore(g, o));\n };\n };\n });\n})(Kt);\nvar Zr = Kt.exports;\nconst Jr = /* @__PURE__ */ Ae(Zr);\nvar Gt = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, function() {\n return function(i, e) {\n var t = e.prototype, l = t.format;\n t.format = function(c) {\n var o = this, u = this.$locale();\n if (!this.isValid()) return l.bind(this)(c);\n var d = this.$utils(), g = (c || \"YYYY-MM-DDTHH:mm:ssZ\").replace(/\\[([^\\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(f) {\n switch (f) {\n case \"Q\":\n return Math.ceil((o.$M + 1) / 3);\n case \"Do\":\n return u.ordinal(o.$D);\n case \"gggg\":\n return o.weekYear();\n case \"GGGG\":\n return o.isoWeekYear();\n case \"wo\":\n return u.ordinal(o.week(), \"W\");\n case \"w\":\n case \"ww\":\n return d.s(o.week(), f === \"w\" ? 1 : 2, \"0\");\n case \"W\":\n case \"WW\":\n return d.s(o.isoWeek(), f === \"W\" ? 1 : 2, \"0\");\n case \"k\":\n case \"kk\":\n return d.s(String(o.$H === 0 ? 24 : o.$H), f === \"k\" ? 1 : 2, \"0\");\n case \"X\":\n return Math.floor(o.$d.getTime() / 1e3);\n case \"x\":\n return o.$d.getTime();\n case \"z\":\n return \"[\" + o.offsetName() + \"]\";\n case \"zzz\":\n return \"[\" + o.offsetName(\"long\") + \"]\";\n default:\n return f;\n }\n });\n return l.bind(this)(g);\n };\n };\n });\n})(Gt);\nvar Qr = Gt.exports;\nconst en = /* @__PURE__ */ Ae(Qr), Pt = /* @__PURE__ */ new Set();\nfunction tn(s, n = \"warning\") {\n if (process.env.NODE_ENV === \"production\")\n return;\n const i = Array.isArray(s) ? s.join(`\n`) : s;\n Pt.has(i) || (Pt.add(i), n === \"error\" ? console.error(i) : console.warn(i));\n}\nK.extend(Vr);\nK.extend(Gr);\nK.extend(Jr);\nK.extend(en);\nconst rn = {\n // Year\n YY: \"year\",\n YYYY: {\n sectionType: \"year\",\n contentType: \"digit\",\n maxLength: 4\n },\n // Month\n M: {\n sectionType: \"month\",\n contentType: \"digit\",\n maxLength: 2\n },\n MM: \"month\",\n MMM: {\n sectionType: \"month\",\n contentType: \"letter\"\n },\n MMMM: {\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 d: {\n sectionType: \"weekDay\",\n contentType: \"digit\",\n maxLength: 2\n },\n dd: {\n sectionType: \"weekDay\",\n contentType: \"letter\"\n },\n ddd: {\n sectionType: \"weekDay\",\n contentType: \"letter\"\n },\n dddd: {\n sectionType: \"weekDay\",\n contentType: \"letter\"\n },\n // Meridiem\n A: \"meridiem\",\n a: \"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}, nn = {\n year: \"YYYY\",\n month: \"MMMM\",\n monthShort: \"MMM\",\n dayOfMonth: \"D\",\n dayOfMonthFull: \"Do\",\n weekday: \"dddd\",\n weekdayShort: \"dd\",\n hours24h: \"HH\",\n hours12h: \"hh\",\n meridiem: \"A\",\n minutes: \"mm\",\n seconds: \"ss\",\n fullDate: \"ll\",\n keyboardDate: \"L\",\n shortDate: \"MMM D\",\n normalDate: \"D MMMM\",\n normalDateWithWeekday: \"ddd, MMM D\",\n fullTime: \"LT\",\n fullTime12h: \"hh:mm A\",\n fullTime24h: \"HH:mm\",\n keyboardDateTime: \"L LT\",\n keyboardDateTime12h: \"L hh:mm A\",\n keyboardDateTime24h: \"L HH:mm\"\n}, Je = [\"Missing UTC plugin\", \"To be able to use UTC or timezones, you have to enable the `utc` plugin\", \"Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc\"].join(`\n`), Rt = [\"Missing timezone plugin\", \"To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin\", \"Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone\"].join(`\n`), sn = (s, n) => n ? (...i) => s(...i).locale(n) : s;\nclass an {\n constructor({\n locale: n,\n formats: i\n } = {}) {\n this.isMUIAdapter = !0, this.isTimezoneCompatible = !0, this.lib = \"dayjs\", this.dayjs = void 0, this.locale = void 0, this.formats = void 0, this.escapedCharacters = {\n start: \"[\",\n end: \"]\"\n }, this.formatTokenMap = rn, this.setLocaleToValue = (e) => {\n const t = this.getCurrentLocaleCode();\n return t === e.locale() ? e : e.locale(t);\n }, this.hasUTCPlugin = () => typeof K.utc < \"u\", this.hasTimezonePlugin = () => typeof K.tz < \"u\", this.isSame = (e, t, l) => {\n const c = this.setTimezone(t, this.getTimezone(e));\n return e.format(l) === c.format(l);\n }, this.cleanTimezone = (e) => {\n switch (e) {\n case \"default\":\n return;\n case \"system\":\n return K.tz.guess();\n default:\n return e;\n }\n }, this.createSystemDate = (e) => {\n if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {\n const t = K.tz.guess();\n return t !== \"UTC\" ? K.tz(e, t) : K(e);\n }\n return K(e);\n }, this.createUTCDate = (e) => {\n if (!this.hasUTCPlugin())\n throw new Error(Je);\n return K.utc(e);\n }, this.createTZDate = (e, t) => {\n if (!this.hasUTCPlugin())\n throw new Error(Je);\n if (!this.hasTimezonePlugin())\n throw new Error(Rt);\n const l = e !== void 0 && !e.endsWith(\"Z\");\n return K(e).tz(this.cleanTimezone(t), l);\n }, this.getLocaleFormats = () => {\n const e = K.Ls, t = this.locale || \"en\";\n let l = e[t];\n return l === void 0 && (process.env.NODE_ENV !== \"production\" && tn([\"MUI X: Your locale has not been found.\", \"Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.\", \"Or you forget to import the locale from 'dayjs/locale/{localeUsed}'\", \"fallback on English locale.\"]), l = e.en), l.formats;\n }, this.adjustOffset = (e) => {\n if (!this.hasTimezonePlugin())\n return e;\n const t = this.getTimezone(e);\n if (t !== \"UTC\") {\n const l = e.tz(this.cleanTimezone(t), !0);\n if (l.$offset === (e.$offset ?? 0))\n return e;\n e.$offset = l.$offset;\n }\n return e;\n }, this.date = (e, t = \"default\") => {\n if (e === null)\n return null;\n let l;\n return t === \"UTC\" ? l = this.createUTCDate(e) : t === \"system\" || t === \"default\" && !this.hasTimezonePlugin() ? l = this.createSystemDate(e) : l = this.createTZDate(e, t), this.locale === void 0 ? l : l.locale(this.locale);\n }, this.getInvalidDate = () => K(/* @__PURE__ */ new Date(\"Invalid date\")), this.getTimezone = (e) => {\n var t;\n if (this.hasTimezonePlugin()) {\n const l = (t = e.$x) == null ? void 0 : t.$timezone;\n if (l)\n return l;\n }\n return this.hasUTCPlugin() && e.isUTC() ? \"UTC\" : \"system\";\n }, this.setTimezone = (e, t) => {\n if (this.getTimezone(e) === t)\n return e;\n if (t === \"UTC\") {\n if (!this.hasUTCPlugin())\n throw new Error(Je);\n return e.utc();\n }\n if (t === \"system\")\n return e.local();\n if (!this.hasTimezonePlugin()) {\n if (t === \"default\")\n return e;\n throw new Error(Rt);\n }\n return K.tz(e, this.cleanTimezone(t));\n }, this.toJsDate = (e) => e.toDate(), this.parse = (e, t) => e === \"\" ? null : this.dayjs(e, t, this.locale, !0), this.getCurrentLocaleCode = () => this.locale || \"en\", this.is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || \"\"), this.expandFormat = (e) => {\n const t = this.getLocaleFormats(), l = (c) => c.replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g, (o, u, d) => u || d.slice(1));\n return e.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g, (c, o, u) => {\n const d = u && u.toUpperCase();\n return o || t[u] || l(t[d]);\n });\n }, this.isValid = (e) => e == null ? !1 : e.isValid(), this.format = (e, t) => this.formatByString(e, this.formats[t]), this.formatByString = (e, t) => this.dayjs(e).format(t), this.formatNumber = (e) => e, this.isEqual = (e, t) => e === null && t === null ? !0 : e === null || t === null ? !1 : e.toDate().getTime() === t.toDate().getTime(), this.isSameYear = (e, t) => this.isSame(e, t, \"YYYY\"), this.isSameMonth = (e, t) => this.isSame(e, t, \"YYYY-MM\"), this.isSameDay = (e, t) => this.isSame(e, t, \"YYYY-MM-DD\"), this.isSameHour = (e, t) => e.isSame(t, \"hour\"), this.isAfter = (e, t) => e > t, this.isAfterYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() > t.utc() : e.isAfter(t, \"year\"), this.isAfterDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() > t.utc() : e.isAfter(t, \"day\"), this.isBefore = (e, t) => e < t, this.isBeforeYear = (e, t) => this.hasUTCPlugin() ? !this.isSameYear(e, t) && e.utc() < t.utc() : e.isBefore(t, \"year\"), this.isBeforeDay = (e, t) => this.hasUTCPlugin() ? !this.isSameDay(e, t) && e.utc() < t.utc() : e.isBefore(t, \"day\"), this.isWithinRange = (e, [t, l]) => e >= t && e <= l, this.startOfYear = (e) => this.adjustOffset(e.startOf(\"year\")), this.startOfMonth = (e) => this.adjustOffset(e.startOf(\"month\")), this.startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf(\"week\")), this.startOfDay = (e) => this.adjustOffset(e.startOf(\"day\")), this.endOfYear = (e) => this.adjustOffset(e.endOf(\"year\")), this.endOfMonth = (e) => this.adjustOffset(e.endOf(\"month\")), this.endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf(\"week\")), this.endOfDay = (e) => this.adjustOffset(e.endOf(\"day\")), this.addYears = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"year\") : e.add(t, \"year\")), this.addMonths = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"month\") : e.add(t, \"month\")), this.addWeeks = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"week\") : e.add(t, \"week\")), this.addDays = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"day\") : e.add(t, \"day\")), this.addHours = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"hour\") : e.add(t, \"hour\")), this.addMinutes = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"minute\") : e.add(t, \"minute\")), this.addSeconds = (e, t) => this.adjustOffset(t < 0 ? e.subtract(Math.abs(t), \"second\") : e.add(t, \"second\")), this.getYear = (e) => e.year(), this.getMonth = (e) => e.month(), this.getDate = (e) => e.date(), this.getHours = (e) => e.hour(), this.getMinutes = (e) => e.minute(), this.getSeconds = (e) => e.second(), this.getMilliseconds = (e) => e.millisecond(), this.setYear = (e, t) => this.adjustOffset(e.set(\"year\", t)), this.setMonth = (e, t) => this.adjustOffset(e.set(\"month\", t)), this.setDate = (e, t) => this.adjustOffset(e.set(\"date\", t)), this.setHours = (e, t) => this.adjustOffset(e.set(\"hour\", t)), this.setMinutes = (e, t) => this.adjustOffset(e.set(\"minute\", t)), this.setSeconds = (e, t) => this.adjustOffset(e.set(\"second\", t)), this.setMilliseconds = (e, t) => this.adjustOffset(e.set(\"millisecond\", t)), this.getDaysInMonth = (e) => e.daysInMonth(), this.getWeekArray = (e) => {\n const t = this.startOfWeek(this.startOfMonth(e)), l = this.endOfWeek(this.endOfMonth(e));\n let c = 0, o = t;\n const u = [];\n for (; o < l; ) {\n const d = Math.floor(c / 7);\n u[d] = u[d] || [], u[d].push(o), o = this.addDays(o, 1), c += 1;\n }\n return u;\n }, this.getWeekNumber = (e) => e.week(), this.getYearRange = ([e, t]) => {\n const l = this.startOfYear(e), c = this.endOfYear(t), o = [];\n let u = l;\n for (; this.isBefore(u, c); )\n o.push(u), u = this.addYears(u, 1);\n return o;\n }, this.dayjs = sn(K, n), this.locale = n, this.formats = at({}, nn, i), K.extend(qr);\n }\n getDayOfWeek(n) {\n return n.day() + 1;\n }\n}\nconst cn = () => /* @__PURE__ */ a.jsxs(V, { direction: \"column\", spacing: 2, \"aria-busy\": !0, role: \"alert\", children: [\n /* @__PURE__ */ a.jsx(ie, { height: 56, sx: { transform: \"scale(1, 1)\" } }),\n /* @__PURE__ */ a.jsx(ie, { width: \"60%\", height: 30, sx: { transform: \"scale(1, 1)\" } }),\n /* @__PURE__ */ a.jsx(ie, { height: 30, sx: { transform: \"scale(1, 1)\" } }),\n /* @__PURE__ */ a.jsxs(V, { children: [\n /* @__PURE__ */ a.jsxs(re, { sx: { alignItems: \"center\", display: \"flex\" }, children: [\n /* @__PURE__ */ a.jsx(re, { sx: { marginRight: 1, marginY: 1 }, children: /* @__PURE__ */ a.jsx(ie, { variant: \"circular\", width: 30, height: 30 }) }),\n /* @__PURE__ */ a.jsx(ie, { width: \"30%\" })\n ] }),\n /* @__PURE__ */ a.jsxs(re, { sx: { alignItems: \"center\", display: \"flex\" }, children: [\n /* @__PURE__ */ a.jsx(re, { sx: { marginRight: 1, marginY: 1 }, children: /* @__PURE__ */ a.jsx(ie, { variant: \"circular\", width: 30, height: 30 }) }),\n /* @__PURE__ */ a.jsx(ie, { width: \"20%\" })\n ] })\n ] }),\n /* @__PURE__ */ a.jsx(ie, { width: \"80%\", height: 30, sx: { transform: \"scale(1, 1)\" } }),\n /* @__PURE__ */ a.jsxs(V, { children: [\n /* @__PURE__ */ a.jsxs(re, { sx: { alignItems: \"center\", display: \"flex\" }, children: [\n /* @__PURE__ */ a.jsx(re, { sx: { marginRight: 1, marginY: 1 }, children: /* @__PURE__ */ a.jsx(ie, { variant: \"circular\", width: 30, height: 30 }) }),\n /* @__PURE__ */ a.jsx(ie, { width: \"30%\" })\n ] }),\n /* @__PURE__ */ a.jsxs(re, { sx: { alignItems: \"center\", display: \"flex\" }, children: [\n /* @__PURE__ */ a.jsx(re, { sx: { marginRight: 1, marginY: 1 }, children: /* @__PURE__ */ a.jsx(ie, { variant: \"circular\", width: 30, height: 30 }) }),\n /* @__PURE__ */ a.jsx(ie, { width: \"20%\" })\n ] }),\n /* @__PURE__ */ a.jsxs(re, { sx: { alignItems: \"center\", display: \"flex\" }, children: [\n /* @__PURE__ */ a.jsx(re, { sx: { marginRight: 1, marginY: 1 }, children: /* @__PURE__ */ a.jsx(ie, { variant: \"circular\", width: 30, height: 30 }) }),\n /* @__PURE__ */ a.jsx(ie, { width: \"30%\" })\n ] })\n ] })\n] }), ln = ({ disabled: s, isLoading: n, readOnly: i, isLastField: e, renderFormValidation: t }) => i || !e ? null : t ? t({ disabled: s, isLoading: n }) : /* @__PURE__ */ a.jsx($t, { direction: \"up\", in: !0, mountOnEnter: !0, children: /* @__PURE__ */ a.jsx(re, { display: \"flex\", alignItems: \"center\", justifyContent: \"center\", paddingY: 5, children: /* @__PURE__ */ a.jsx(_r, { variant: \"contained\", type: \"submit\", isLoading: n, children: \"Valider\" }) }) });\nvar Nt = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e();\n })(De, () => {\n return i = { 705: (t) => {\n t.exports = function(l, c) {\n const o = [];\n return c.length === 0 ? o.push({ text: l, highlight: !1 }) : c[0][0] > 0 && o.push({ text: l.slice(0, c[0][0]), highlight: !1 }), c.forEach((u, d) => {\n const g = u[0], f = u[1];\n o.push({ text: l.slice(g, f), highlight: !0 }), d === c.length - 1 ? f < l.length && o.push({ text: l.slice(f, l.length), highlight: !1 }) : f < c[d + 1][0] && o.push({ text: l.slice(f, c[d + 1][0]), highlight: !1 });\n }), o;\n };\n } }, e = {}, function t(l) {\n var c = e[l];\n if (c !== void 0) return c.exports;\n var o = e[l] = { exports: {} };\n return i[l](o, o.exports, t), o.exports;\n }(705);\n var i, e;\n });\n})(Nt);\nvar on = Nt.exports;\nconst un = /* @__PURE__ */ Ae(on), oe = ({ children: s, required: n }) => /* @__PURE__ */ a.jsx(We, { variant: \"h5\", component: Dr, required: n, color: \"text.primary\", whiteSpace: \"initial\", children: s }), dn = ({\n value: s,\n inputRef: n,\n country: i,\n readOnly: e,\n onChange: t,\n node: l,\n isIgnored: c,\n googleApiKey: o,\n error: u,\n pattern: d,\n patternMessage: g,\n helperText: f\n}, h) => {\n const { attributes: p, children: j } = l, { name: v, type: m, label: x, required: b, isLeaf: T, isDecision: k } = p, P = Ie(), [S, Y] = ge([]), [L, F] = ge(\"\"), _ = Cr(`https://maps.googleapis.com/maps/api/js?key=${o}&loading=async&libraries=places`, {\n enable: !!o && !c,\n position: \"head-end\"\n }), D = (E, I) => {\n t == null || t({\n children: j,\n event: E,\n isDecision: k,\n isLeaf: T,\n name: v,\n type: m,\n value: I\n }), !ve(I) && Y(I ? [I, ...S] : S);\n }, A = () => {\n (!S.length || !s) && (t == null || t({\n children: j,\n event: void 0,\n isDecision: k,\n isLeaf: T,\n name: v,\n type: m,\n value: L\n }));\n }, C = Ue(\n () => Wr((E, I) => {\n var M;\n (M = P == null ? void 0 : P.current) == null || M.getPlacePredictions(E, I);\n }, 200),\n []\n );\n return xe(() => {\n var M, R;\n if (!o || c)\n return;\n let E = !0;\n if (_ === \"loading\" || !(window != null && window.google) || !((M = window.google) != null && M.maps) || !((R = window.google.maps) != null && R.places))\n return;\n if (P.current || (P.current = new window.google.maps.places.AutocompleteService()), L === \"\") {\n Y(s ? [s] : []);\n return;\n }\n return C({\n componentRestrictions: {\n country: i\n },\n input: L\n }, (O) => {\n if (E) {\n let B = [];\n s && (B = [s]), O && (B = [...B, ...O]), Y(B);\n }\n }), () => {\n E = !1;\n };\n }, [_, s, L, C, i, o, c]), c ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: b, children: x }),\n /* @__PURE__ */ a.jsx(\n ut,\n {\n freeSolo: !0,\n filterSelectedOptions: !0,\n ref: h,\n filterOptions: (E) => E,\n options: S || [],\n value: s || null,\n onChange: D,\n onBlur: A,\n onInputChange: (E, I) => F(I),\n readOnly: e,\n getOptionLabel: (E) => ve(E) ? E : fe(E) && \"description\" in E && ve(E == null ? void 0 : E.description) ? E == null ? void 0 : E.description : \"\",\n renderInput: ({ disabled: E, InputLabelProps: I, inputProps: M, InputProps: R }) => /* @__PURE__ */ a.jsx(\n _e,\n {\n fullWidth: !0,\n required: b,\n name: v,\n helperText: f,\n disabled: E,\n inputRef: n,\n error: u,\n slotProps: {\n htmlInput: {\n ...M,\n autoComplete: \"new-password\",\n pattern: d,\n title: g\n },\n input: R,\n inputLabel: I\n }\n }\n ),\n renderOption: ({ id: E, ...I }, M, { index: R }) => {\n var ee, le, N, q;\n const O = fe(M) && \"structured_formatting\" in M && fe(M == null ? void 0 : M.structured_formatting) && \"main_text_matched_substrings\" in M.structured_formatting && zr((ee = M == null ? void 0 : M.structured_formatting) == null ? void 0 : ee.main_text_matched_substrings) && ((le = M == null ? void 0 : M.structured_formatting) == null ? void 0 : le.main_text_matched_substrings) || [], B = fe(M) && \"structured_formatting\" in M && fe(M.structured_formatting) && \"main_text\" in M.structured_formatting && ve((N = M == null ? void 0 : M.structured_formatting) == null ? void 0 : N.main_text) && ((q = M == null ? void 0 : M.structured_formatting) == null ? void 0 : q.main_text), Q = fe(M) && \"structured_formatting\" in M && fe(M.structured_formatting) && \"secondary_text\" in M.structured_formatting && ve(M.structured_formatting.secondary_text) && M.structured_formatting.secondary_text, G = `${R}-${String(E)}`, te = un(B || \"\", O == null ? void 0 : O.map((ae) => [ae.offset, ae.offset + ae.length]));\n return (\n // eslint-disable-next-line react/jsx-props-no-spreading\n /* @__PURE__ */ ct(\"li\", { ...I, key: G, id: E }, /* @__PURE__ */ a.jsxs(Ze, { container: !0, alignItems: \"center\", children: [\n /* @__PURE__ */ a.jsx(Ze, { item: !0, children: /* @__PURE__ */ a.jsx(re, { sx: { color: \"text.secondary\", height: 10, mr: 2, width: 10 } }) }),\n /* @__PURE__ */ a.jsxs(Ze, { item: !0, xs: !0, children: [\n te.map((ae, J) => {\n const ue = `${fe(M) && \"place_id\" in M && M.place_id}-${J}`;\n return /* @__PURE__ */ a.jsx(\n We,\n {\n variant: \"body1\",\n component: \"span\",\n sx: {\n fontWeight: ae.highlight ? 700 : 400\n },\n children: ae.text\n },\n ue\n );\n }),\n /* @__PURE__ */ a.jsx(We, { variant: \"body2\", color: \"text.secondary\", children: Q })\n ] })\n ] }))\n );\n }\n }\n )\n ] });\n}, fn = he(dn), hn = () => ({\n addValueToOptions: (i, e) => e ? typeof e == \"object\" ? [e, ...i || []] : [{ value: e }, ...i || []] : i,\n reformatReturnAutocomplete: (i) => {\n if (i === null)\n return null;\n if (typeof i == \"string\")\n return i;\n const e = i.value;\n return {\n id: (e == null ? void 0 : e.id) || i.id,\n image: \"image\" in i ? (e == null ? void 0 : e.image) || i.image : i.imageUri,\n label: (e == null ? void 0 : e.name) || i.label,\n options: (e == null ? void 0 : e.options) || e\n };\n }\n}), Qe = (s) => typeof s == \"object\" && s !== null, qt = (s, n) => {\n var i, e, t, l;\n if (Array.isArray(s))\n return s.map((c) => {\n var g, f, h, p;\n const o = c[String((g = n == null ? void 0 : n.pathKey) == null ? void 0 : g.label)], u = (f = n == null ? void 0 : n.pathKey) != null && f.value ? c[String((h = n == null ? void 0 : n.pathKey) == null ? void 0 : h.value)] : c, d = c[String((p = n == null ? void 0 : n.pathKey) == null ? void 0 : p.image)];\n return {\n id: c.id,\n imageUri: d,\n label: o,\n value: u\n };\n });\n if (typeof s == \"object\" && s !== null && ((i = n == null ? void 0 : n.pathKey) == null ? void 0 : i.object) !== void 0) {\n const o = s[n.pathKey.object];\n if (Array.isArray(o))\n return o.map((u) => {\n var h, p, j, v, m, x;\n const d = ((h = n == null ? void 0 : n.pathKey) == null ? void 0 : h.label) && String(u[(p = n == null ? void 0 : n.pathKey) == null ? void 0 : p.label]), g = ((j = n == null ? void 0 : n.pathKey) == null ? void 0 : j.value) && String(u[(v = n == null ? void 0 : n.pathKey) == null ? void 0 : v.value]);\n let f = ((m = n == null ? void 0 : n.pathKey) == null ? void 0 : m.image) && String(u[(x = n == null ? void 0 : n.pathKey) == null ? void 0 : x.image]);\n return f === \"null\" && (f = void 0), {\n id: u.id,\n imageUri: f,\n label: d,\n value: g\n };\n });\n }\n if (typeof s == \"object\" && s !== null) {\n const c = Qe(s) ? s[((e = n == null ? void 0 : n.pathKey) == null ? void 0 : e.image) || \"\"] : void 0, o = Qe(s) ? s[((t = n == null ? void 0 : n.pathKey) == null ? void 0 : t.label) || \"\"] : void 0, u = Qe(s) ? s[((l = n == null ? void 0 : n.pathKey) == null ? void 0 : l.value) || \"\"] : void 0;\n return [\n {\n id: \"id\" in s ? String(s.id) : \"\",\n imageUri: c,\n label: o,\n value: u\n }\n ];\n }\n}, ze = (s, n) => typeof s != \"object\" || s === null ? \"\" : Object.keys(s).includes(n) ? s[n] : \"\", mn = ({ url: s, searchKey: n, searchValue: i, headers: e, additionalParams: t, localFetch: l }) => async (c) => {\n const o = new URLSearchParams();\n if (o.append(n, i), t)\n for (let h = 0; h < t.length; h += 1) {\n const p = t[h];\n o.append(p.key, p.value);\n }\n const u = `${s}?${o.toString()}`, d = {\n headers: new Headers(e),\n method: \"GET\"\n }, f = await (l || fetch)(u, {\n ...d,\n signal: c\n });\n if (!f.ok)\n throw new Error(\"Network response was not ok\");\n return f.json();\n}, gn = ({\n node: s,\n onChange: n,\n readOnly: i,\n inputRef: e,\n headers: t,\n value: l,\n isIgnored: c,\n prefixResponseImageUriAutocomplete: o,\n error: u,\n helperText: d\n}, g) => {\n const [f, h] = ge(\"\"), { attributes: p, children: j } = s, { type: v, name: m, label: x, required: b, route: T, initialQuery: k, isLeaf: P, isDecision: S } = p, { reformatReturnAutocomplete: Y, addValueToOptions: L } = hn(), F = mn({\n additionalParams: T == null ? void 0 : T.params,\n headers: t,\n searchKey: (T == null ? void 0 : T.searchKey) || \"\",\n searchValue: f,\n url: (T == null ? void 0 : T.url) || \"\"\n }), { data: _, isFetching: D, isError: A } = At({\n enabled: !!f || !!k,\n queryFn: ({ signal: R }) => F(R),\n queryKey: [m, f]\n }), C = qt(_, T), E = L(C, l), I = (R, O) => {\n n == null || n({\n children: j,\n event: R,\n isDecision: S,\n isLeaf: P,\n name: m,\n type: v,\n value: Y(O)\n });\n }, M = (R, O) => {\n h(O);\n };\n return c ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: b, children: x }),\n /* @__PURE__ */ a.jsx(\n ut,\n {\n filterSelectedOptions: !0,\n readOnly: i,\n filterOptions: (R) => R,\n ref: g,\n value: l || null,\n onChange: I,\n loading: D,\n options: E || [],\n onInputChange: M,\n noOptionsText: \"Aucune suggestion\",\n isOptionEqualToValue: (R, O) => O ? (R == null ? void 0 : R.id) === (O == null ? void 0 : O.id) ? !0 : (R == null ? void 0 : R.value) === (O == null ? void 0 : O.value) : !1,\n renderOption: ({ id: R, ...O }, B, { index: Q }) => {\n const G = ze(B, \"imageUri\"), te = ze(B, \"label\"), ee = `${B == null ? void 0 : B.id}-${B.label}-${Q}-${String(R)}`, le = G ? `${o}${G}` : void 0;\n return (\n // eslint-disable-next-line react/jsx-props-no-spreading\n /* @__PURE__ */ ct(Se, { ...O, key: ee, id: R }, /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(It, { variant: \"rounded\", alt: te, src: le, sx: { height: 30, width: 30 } }) }), /* @__PURE__ */ a.jsx(Ut, { primary: te }))\n );\n },\n renderInput: (R) => (\n // const { InputProps, size, InputLabelProps, disabled, id, inputProps, fullWidth } = params;\n /* @__PURE__ */ a.jsx(\n _e,\n {\n ...R,\n name: m,\n required: b,\n helperText: d,\n inputRef: e,\n error: A || u,\n slotProps: {\n input: {\n ...R.InputProps,\n endAdornment: D && /* @__PURE__ */ a.jsx(Ft, { color: \"inherit\", size: 20 }),\n readOnly: i\n }\n }\n }\n )\n )\n }\n )\n ] });\n}, xn = he(gn), yn = ({ data: s, helperText: n, readOnly: i, onChange: e, value: t, isIgnored: l, required: c, error: o }, u) => {\n const { attributes: d, children: g, uuid: f } = s, { label: h, type: p, isLeaf: j, messages: v, name: m } = d, [x, b] = ge(v == null ? void 0 : v.off), T = (k) => {\n const P = k ? v == null ? void 0 : v.on : v == null ? void 0 : v.off;\n e == null || e({ children: g, hasMessage: !!P, isLeaf: j, name: m, type: p, value: k }), b(P);\n };\n return l ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: c, children: h }),\n /* @__PURE__ */ a.jsxs(Be, { \"aria-readonly\": i, fullWidth: !0, children: [\n /* @__PURE__ */ a.jsx(Wt, { ref: u, children: /* @__PURE__ */ a.jsxs(V, { spacing: 1, children: [\n /* @__PURE__ */ a.jsx(\n Le,\n {\n variant: \"card\",\n value: !!t,\n checked: !!t,\n label: \"Oui\",\n \"data-label-name-value\": `${m}-yes`,\n name: m,\n htmlFor: `${f}-yes`,\n control: /* @__PURE__ */ a.jsx(nt, { id: `${f}-yes` }),\n onChange: () => T(!0),\n sx: {\n ...o && {\n \"& .MuiRadio-root\": {\n borderColor: \"red\"\n }\n }\n }\n }\n ),\n /* @__PURE__ */ a.jsx(\n Le,\n {\n variant: \"card\",\n checked: !t,\n value: !t,\n label: \"Non\",\n \"data-label-name-value\": `${m}-no`,\n name: m,\n htmlFor: `${f}-yes`,\n control: /* @__PURE__ */ a.jsx(nt, { id: `${f}-no` }),\n onChange: () => T(!1)\n }\n )\n ] }) }),\n n && /* @__PURE__ */ a.jsx(He, { sx: { ...o && { color: \"error.main\" } }, children: n }),\n x && /* @__PURE__ */ a.jsx(Ke, { severity: \"info\", variant: \"standard\", sx: { mt: 1 }, children: x })\n ] })\n ] });\n}, pn = he(yn), Ot = \"YYYY-MM-DD\", bn = ({\n label: s,\n name: n,\n helperText: i,\n inputRef: e,\n onChange: t,\n required: l,\n value: c,\n readOnly: o,\n isIgnored: u,\n disablePast: d,\n error: g,\n pattern: f,\n patternMessage: h\n}, p) => {\n const j = (v, m) => {\n t == null || t(\n {\n name: n,\n value: v == null ? void 0 : v.format(Ot)\n },\n m\n );\n };\n return u ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsx(\n tt,\n {\n disablePast: d,\n readOnly: o,\n ref: p,\n name: n,\n value: c ? K(String(c), Ot) : null,\n onChange: j,\n format: \"ll\",\n slotProps: {\n textField: () => ({\n error: g,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n pattern: f,\n required: l,\n title: h\n })\n }\n }\n )\n ] });\n}, jn = he(bn), Me = \"YYYY-MM-DD\", vn = ({\n label: s,\n name: n,\n helperText: i,\n inputRef: e,\n onChange: t,\n required: l,\n value: c,\n readOnly: o,\n isIgnored: u,\n disablePast: d,\n licenseMuiX: g,\n pattern: f,\n patternMessage: h,\n error: p\n}, j) => {\n const v = Array != null && Array.isArray(c) && (c != null && c[0]) ? K(String(c == null ? void 0 : c[0]), Me) : null, m = Array != null && Array.isArray(c) && (c != null && c[1]) ? K(String(c == null ? void 0 : c[1]), Me) : null, x = (k) => (P, S) => {\n const Y = P == null ? void 0 : P.format(Me);\n t == null || t(\n {\n name: n,\n value: k === \"start\" ? [Y, m == null ? void 0 : m.format(Me)] : [v == null ? void 0 : v.format(Me), Y]\n },\n S\n );\n }, b = (k, P) => {\n var S, Y;\n t == null || t(\n {\n name: n,\n value: [(S = k[0]) == null ? void 0 : S.format(Me), (Y = k[1]) == null ? void 0 : Y.format(Me)]\n },\n P\n );\n };\n if (u)\n return null;\n const T = (k) => v ? k < v : !1;\n return u ? null : g ? /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsx(\n vr,\n {\n disablePast: d,\n readOnly: o,\n ref: j,\n name: `${n}[]`,\n value: [v, m],\n onChange: b,\n format: \"ll\",\n localeText: {\n end: \"Fin\",\n start: \"Début\"\n },\n slotProps: {\n textField: () => ({\n error: p,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n name: `${n}[]`,\n pattern: f,\n required: l,\n title: h\n })\n }\n }\n )\n ] }) : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsxs(V, { direction: \"row\", spacing: 1, alignItems: \"center\", children: [\n /* @__PURE__ */ a.jsx(\n tt,\n {\n disablePast: d,\n label: \"Début\",\n readOnly: o,\n ref: j,\n name: `${n}[]`,\n value: v,\n onChange: x(\"start\"),\n format: \"ll\",\n slotProps: {\n textField: () => ({\n error: p,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n pattern: f,\n required: l,\n title: h\n })\n }\n }\n ),\n /* @__PURE__ */ a.jsx(\n tt,\n {\n disablePast: d,\n label: \"Fin\",\n readOnly: o,\n ref: j,\n name: `${n}[]`,\n value: m,\n onChange: x(\"end\"),\n shouldDisableDate: T,\n format: \"ll\",\n slotProps: {\n textField: () => ({\n error: p,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n pattern: f,\n required: l,\n title: h\n })\n }\n }\n )\n ] })\n ] });\n}, Tn = he(vn), Mn = ({ headers: s, fieldValues: n, route: i, parentRef: e, initialQuery: t, name: l }) => {\n var v;\n const c = n == null ? void 0 : n[String(e)], o = c && typeof c == \"object\" && \"options\" in c ? c.options : void 0, u = ((v = i == null ? void 0 : i.url) == null ? void 0 : v.replace(`{{${e}}}`, String(o))) || \"\", d = u.length > 0 && t && o && o.length > 0 || o !== void 0, g = {\n headers: s,\n method: \"GET\"\n }, { data: f, isError: h, isLoading: p } = At({\n enabled: d,\n queryFn: ({ signal: m }) => fetch(u, { ...g, signal: m }).then((x) => {\n if (!x.ok)\n throw new Error(\"Error fetching data\");\n return x.json();\n }).then((x) => x).catch((x) => {\n throw new Error(\"Fetch error:\", x);\n }),\n queryKey: [l, c]\n }), j = Ue(() => {\n if (i != null && i.url && !h && !p && f && Array.isArray(f) || c !== void 0) {\n const m = qt(i != null && i.url ? f : c, i || {});\n return m == null ? void 0 : m.map((x) => ({\n id: String(x.id),\n imageUri: x.imageUri,\n label: String(x.label),\n value: String(x.value)\n }));\n }\n return [];\n }, [i, h, p, f, c]);\n return { disabled: p, options: j };\n}, wn = ({\n inputRef: s,\n fieldValues: n,\n node: i,\n onChange: e,\n headers: t,\n readOnly: l,\n isParentFieldRequiredAndEmpty: c,\n isIgnored: o,\n helperText: u,\n error: d,\n value: g\n}, f) => {\n const { attributes: h, children: p } = i, { name: j, label: v, type: m, isLeaf: x, parentRef: b, isDecision: T, route: k, required: P, isMultiple: S, initialQuery: Y } = h, { options: L } = Mn({\n fieldValues: n,\n headers: t,\n initialQuery: Y,\n name: j,\n parentRef: b,\n route: k\n }), F = (_, D) => {\n e == null || e({\n children: p,\n event: _,\n isDecision: T,\n isLeaf: x,\n name: j,\n type: m,\n value: D\n });\n };\n return o ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: P, children: v }),\n /* @__PURE__ */ a.jsx(\n ut,\n {\n readOnly: l,\n multiple: S,\n ref: f,\n value: S ? g || [] : g || null,\n onChange: F,\n options: L || [],\n slots: {\n popper: c ? () => null : void 0\n },\n noOptionsText: \"Aucune suggestion\",\n isOptionEqualToValue: (_, D) => fe(_) && \"id\" in _ && fe(D) && \"id\" in D && (_ == null ? void 0 : _.id) === (D == null ? void 0 : D.id),\n renderOption: ({ id: _, ...D }, A, { index: C }) => {\n const E = ze(A, \"imageUri\"), I = ze(A, \"label\"), M = `${C}-${String(_)}`;\n return (\n // eslint-disable-next-line react/jsx-props-no-spreading\n /* @__PURE__ */ ct(Se, { ...D, key: M, id: _ }, !!E && /* @__PURE__ */ a.jsx(Ct, { children: /* @__PURE__ */ a.jsx(It, { variant: \"square\", alt: I, src: E, sx: { height: 30, width: 30 } }) }), /* @__PURE__ */ a.jsx(Ut, { primary: I }))\n );\n },\n sx: {\n ...c && {\n pointerEvents: \"none\"\n }\n },\n renderInput: (_) => /* @__PURE__ */ a.jsx(\n _e,\n {\n ..._,\n name: j,\n required: P,\n helperText: c ? `Le champ «${b}» doit être complété` : u,\n inputRef: s,\n error: d,\n slotProps: {\n input: {\n ..._.InputProps,\n readOnly: l\n }\n }\n }\n )\n }\n )\n ] });\n}, _n = he(wn), Dn = ({\n label: s,\n name: n,\n helperText: i,\n onChange: e,\n required: t,\n readOnly: l,\n multiple: c,\n isIgnored: o,\n patternMessage: u,\n inputRef: d,\n pattern: g,\n error: f\n}) => {\n const h = (p) => {\n const { target: j } = p;\n e == null || e({ event: p, name: n, value: j.value });\n };\n return o ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: t, children: s }),\n /* @__PURE__ */ a.jsx(\n kr,\n {\n fullWidth: !0,\n disabled: l,\n name: n,\n helperText: i || \"PDF, PNG, JPG, ...\",\n onChange: h,\n required: t,\n label: s,\n multiple: c,\n error: f,\n pattern: g,\n title: u,\n ref: d\n }\n )\n ] });\n}, kn = ({ data: s, onInit: n }) => {\n const i = Ie(n), { attributes: e } = s, { name: t, hiddenValue: l } = e;\n return xe(() => {\n var c;\n (c = i.current) == null || c.call(i, { name: t, value: l });\n }, [l, t]), xe(() => {\n i.current = n;\n }, [n]), /* @__PURE__ */ a.jsx(_e, { type: \"hidden\", name: t, value: l, sx: { display: \"none\" } });\n}, Xt = () => ({ getMessageByValue: ({ options: i, value: e }) => {\n var t;\n return ((t = i.find((l) => l.value === e)) == null ? void 0 : t.message) || \"\";\n}, getOptionsForDecisionsField: ({ children: i, values: e }) => e ? e == null ? void 0 : e.map((t) => ({ key: t.id, label: t.label, message: t == null ? void 0 : t.message, value: t.value })) : i.map((t) => {\n var l, c;\n return {\n key: t.attributes.name,\n label: t.attributes.label,\n message: (l = t.attributes) == null ? void 0 : l.message,\n value: ((c = t.attributes) == null ? void 0 : c.value) || \"\"\n };\n}) }), Pn = ({ data: s, helperText: n, inputRef: i, required: e, onChange: t, onInit: l, readOnly: c, value: o, isIgnored: u, error: d }, g) => {\n const { getOptionsForDecisionsField: f, getMessageByValue: h } = Xt(), { children: p, attributes: j, uuid: v } = s, { label: m, values: x, type: b, isLeaf: T, isDecision: k, name: P } = j, [S, Y] = ge(\"\"), L = f({ children: p, values: x }), F = Ie(l), _ = (D, A) => {\n const C = h({ options: L, value: A });\n t == null || t({ children: p, event: D, hasMessage: !!C, isDecision: k, isLeaf: T, name: P, type: b, value: A }), Y(C);\n };\n return xe(() => {\n var D;\n k && o && ((D = F.current) == null || D.call(F, { children: p, isDecision: k, isLeaf: T, name: P, type: b, value: o }));\n }, [p, k, T, P, b, o]), xe(() => {\n F.current = l;\n }, [l]), u ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: e, children: m }),\n /* @__PURE__ */ a.jsxs(Be, { required: e, ref: g, \"aria-readonly\": c, fullWidth: !0, children: [\n /* @__PURE__ */ a.jsx(Pr, { \"aria-labelledby\": `${P}-label`, name: P, onChange: _, value: o, \"aria-readonly\": c, children: /* @__PURE__ */ a.jsx(V, { spacing: 1, children: L == null ? void 0 : L.map((D, A) => {\n const C = `${v}-${A}`;\n return /* @__PURE__ */ a.jsx(\n Le,\n {\n value: D.value,\n label: D.label,\n htmlFor: C,\n variant: \"card\",\n \"aria-label\": D.label,\n \"data-label-name-value\": `${P}-${D.value}`,\n sx: {\n ...d && {\n \"& .MuiRadio-root\": {\n borderColor: \"red\"\n }\n },\n ...c && {\n \"& .MuiFormControlLabel-label.Mui-disabled\": {\n color: \"text.primary\"\n }\n }\n },\n control: /* @__PURE__ */ a.jsx(\n nt,\n {\n inputRef: i,\n \"data-index\": A,\n inputProps: { tabIndex: A },\n readOnly: c,\n disabled: c,\n required: e,\n id: C\n }\n )\n },\n D.key\n );\n }) }) }),\n n && /* @__PURE__ */ a.jsx(He, { sx: { ...d && { color: \"error.main\" } }, children: n }),\n S && /* @__PURE__ */ a.jsx(Ke, { severity: \"info\", variant: \"standard\", sx: { mt: 1 }, children: S })\n ] })\n ] });\n}, Rn = he(Pn), On = ({ data: s, helperText: n, inputRef: i, required: e, onChange: t, onInit: l, readOnly: c, isIgnored: o, error: u, value: d = \"\" }, g) => {\n const { getOptionsForDecisionsField: f, getMessageByValue: h } = Xt(), { children: p, attributes: j } = s, { label: v, values: m, type: x, isLeaf: b, isDecision: T, name: k } = j, [P, S] = ge(\"\"), Y = f({ children: p, values: m }), L = Ie(l), F = (_) => {\n const { target: D } = _, A = h({ options: Y, value: D.value });\n t == null || t({ children: p, event: _, hasMessage: !!A, isDecision: T, isLeaf: b, name: k, type: x, value: D.value }), S(A);\n };\n return xe(() => {\n var _;\n T && d && ((_ = L.current) == null || _.call(L, { children: p, isDecision: T, isLeaf: b, name: k, type: x, value: d }));\n }, [p, T, b, k, x, d]), xe(() => {\n L.current = l;\n }, [l]), o ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: e, children: v }),\n /* @__PURE__ */ a.jsxs(Be, { required: e, ref: g, fullWidth: !0, children: [\n /* @__PURE__ */ a.jsx(\n Rr,\n {\n fullWidth: !0,\n required: e,\n error: u,\n value: ve(d) ? d : \"\",\n labelId: `${k}-label`,\n id: k,\n name: k,\n onChange: F,\n inputRef: i,\n readOnly: c,\n children: Y == null ? void 0 : Y.map((_) => /* @__PURE__ */ a.jsx(Or, { value: _.value, children: _.label }, _.key))\n }\n ),\n n && /* @__PURE__ */ a.jsx(He, { sx: { ...u && { color: \"error.main\" } }, children: n }),\n P && /* @__PURE__ */ a.jsx(Ke, { severity: \"info\", variant: \"standard\", sx: { mt: 1 }, children: P })\n ] })\n ] });\n}, En = he(On), Sn = ({ data: s, inputRef: n, helperText: i, readOnly: e, onChange: t, value: l, isIgnored: c, error: o }, u) => {\n const { attributes: d, children: g } = s, { label: f, type: h, isLeaf: p, messages: j, name: v } = d, [m, x] = ge(j == null ? void 0 : j.off), b = h === \"checkbox\" ? st : Er, T = (k) => {\n const { checked: P } = k.target, S = P ? j == null ? void 0 : j.on : j == null ? void 0 : j.off;\n t == null || t({ children: g, event: k, hasMessage: !!S, isLeaf: p, name: v, type: h, value: P }), x(S);\n };\n return c ? null : /* @__PURE__ */ a.jsxs(Be, { \"aria-readonly\": e, fullWidth: !0, children: [\n /* @__PURE__ */ a.jsx(Wt, { ref: u, children: /* @__PURE__ */ a.jsx(\n Le,\n {\n label: f,\n \"aria-readonly\": e,\n control: /* @__PURE__ */ a.jsx(\n b,\n {\n name: v,\n onChange: T,\n inputRef: n,\n value: !!l,\n checked: !!l,\n readOnly: e,\n disabled: e,\n color: o ? \"error\" : void 0\n }\n ),\n sx: {\n ...o && {\n \"& .MuiRadio-root\": {\n borderColor: \"red\"\n }\n },\n ...e && {\n \"& .MuiFormControlLabel-label.Mui-disabled\": {\n color: \"text.primary\"\n }\n }\n }\n }\n ) }),\n i && /* @__PURE__ */ a.jsx(He, { sx: { ...o && { color: \"error.main\" } }, children: i }),\n m && /* @__PURE__ */ a.jsx(Ke, { severity: \"info\", variant: \"standard\", sx: { mt: 1 }, children: m })\n ] });\n}, Yn = he(Sn), Ln = ({\n label: s,\n name: n,\n helperText: i,\n inputRef: e,\n onChange: t,\n required: l,\n type: c,\n readOnly: o,\n multiple: u,\n shrink: d,\n value: g,\n isIgnored: f,\n pattern: h,\n patternMessage: p,\n error: j\n}, v) => {\n const m = (b) => {\n const { target: T } = b;\n t == null || t({ event: b, name: n, type: c, value: T.value });\n };\n if (f)\n return null;\n const x = (b) => {\n if (c === \"number\") {\n const T = (k) => {\n k.preventDefault();\n };\n b.target.addEventListener(\"wheel\", T, { passive: !1 }), b.target.addEventListener(\n \"blur\",\n () => {\n b.target.removeEventListener(\"wheel\", T);\n },\n { once: !0 }\n );\n }\n };\n return /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsx(\n _e,\n {\n fullWidth: !0,\n onChange: m,\n onFocus: x,\n ref: v,\n name: n,\n type: c,\n helperText: i,\n required: l,\n value: g,\n inputRef: e,\n error: j,\n slotProps: {\n htmlInput: {\n multiple: u,\n pattern: h,\n title: p\n },\n input: {\n readOnly: o\n },\n inputLabel: {\n shrink: d\n }\n }\n }\n )\n ] });\n}, An = he(Ln), et = \"HH:mm\", $n = ({ label: s, name: n, helperText: i, inputRef: e, onChange: t, required: l, readOnly: c, value: o, isIgnored: u, pattern: d, patternMessage: g, error: f }, h) => {\n const p = (j, v) => {\n t == null || t(\n {\n name: n,\n value: j == null ? void 0 : j.format(et)\n },\n v\n );\n };\n return u ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsx(\n rt,\n {\n ampm: !1,\n name: n,\n readOnly: c,\n ref: h,\n value: o ? K(String(o), et) : null,\n onChange: p,\n format: et,\n slotProps: {\n textField: () => ({\n error: f,\n helperText: i,\n inputRef: e,\n pattern: d,\n required: l,\n title: g\n })\n }\n }\n )\n ] });\n}, Fn = he($n), we = \"HH:mm\", Cn = ({ label: s, name: n, helperText: i, inputRef: e, onChange: t, required: l, readOnly: c, value: o, isIgnored: u, pattern: d, patternMessage: g, error: f }, h) => {\n const p = Array != null && Array.isArray(o) && (o != null && o[0]) ? K(String(o == null ? void 0 : o[0]), we) : null, j = Array != null && Array.isArray(o) && (o != null && o[1]) ? K(String(o == null ? void 0 : o[1]), we) : null, v = (m) => (x, b) => {\n const T = x == null ? void 0 : x.format(we);\n t == null || t(\n {\n name: n,\n value: m === \"start\" ? [T, j == null ? void 0 : j.format(we)] : [p == null ? void 0 : p.format(we), T]\n },\n b\n );\n };\n return u ? null : /* @__PURE__ */ a.jsxs(V, { spacing: 1.5, children: [\n /* @__PURE__ */ a.jsx(oe, { required: l, children: s }),\n /* @__PURE__ */ a.jsxs(V, { direction: \"row\", spacing: 1, alignItems: \"center\", children: [\n /* @__PURE__ */ a.jsx(\n rt,\n {\n ampm: !1,\n label: \"Début\",\n readOnly: c,\n ref: h,\n value: p,\n name: `${n}[]`,\n onChange: v(\"start\"),\n format: we,\n slotProps: {\n textField: () => ({\n error: f,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n pattern: d,\n required: l,\n title: g\n })\n }\n }\n ),\n /* @__PURE__ */ a.jsx(\n rt,\n {\n ampm: !1,\n label: \"Fin\",\n readOnly: c,\n ref: h,\n value: j,\n name: `${n}[]`,\n onChange: v(\"end\"),\n format: we,\n slotProps: {\n textField: () => ({\n error: f,\n fullWidth: !0,\n helperText: i,\n inputRef: e,\n pattern: d,\n required: l,\n title: g\n })\n }\n }\n )\n ] })\n ] });\n}, In = he(Cn), Un = ({ label: s, disableDivider: n }) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [\n !n && /* @__PURE__ */ a.jsx(Sr, { sx: { mb: 10, mt: 6 } }),\n /* @__PURE__ */ a.jsx(We, { variant: \"h3\", children: s })\n] }), Vt = Yt({\n adapterLocale: \"\",\n countryAutocompleteService: \"\",\n googleApiKey: \"\",\n licenseMuiX: \"\",\n prefixResponseImageUriAutocomplete: \"\"\n}), as = ({\n children: s,\n licenseMuiX: n,\n countryAutocompleteService: i,\n prefixResponseImageUriAutocomplete: e,\n googleApiKey: t,\n adapterLocale: l\n}) => {\n lt(() => {\n n && ot.setLicenseKey(n);\n }, [n]);\n const c = Ue(\n () => ({\n adapterLocale: l,\n countryAutocompleteService: i,\n googleApiKey: t,\n licenseMuiX: n,\n prefixResponseImageUriAutocomplete: e\n }),\n [i, t, n, e, l]\n );\n return /* @__PURE__ */ a.jsx(Vt.Provider, { value: c, children: s });\n}, Zt = Yt({}), Wn = ({ children: s, options: n }) => {\n const i = Lt(Vt), e = Ue(\n () => ({\n adapterLocale: (n == null ? void 0 : n.adapterLocale) || i.adapterLocale,\n countryAutocompleteService: (n == null ? void 0 : n.countryAutocompleteService) || i.countryAutocompleteService,\n disablePastDatePicker: n == null ? void 0 : n.disablePastDatePicker,\n disablePastDateRangePicker: n == null ? void 0 : n.disablePastDateRangePicker,\n googleApiKey: (n == null ? void 0 : n.googleApiKey) || i.googleApiKey,\n licenseMuiX: (n == null ? void 0 : n.licenseMuiX) || i.licenseMuiX,\n prefixResponseImageUriAutocomplete: (n == null ? void 0 : n.prefixResponseImageUriAutocomplete) || i.prefixResponseImageUriAutocomplete\n }),\n [\n n == null ? void 0 : n.adapterLocale,\n n == null ? void 0 : n.countryAutocompleteService,\n n == null ? void 0 : n.disablePastDatePicker,\n n == null ? void 0 : n.disablePastDateRangePicker,\n n == null ? void 0 : n.googleApiKey,\n n == null ? void 0 : n.licenseMuiX,\n n == null ? void 0 : n.prefixResponseImageUriAutocomplete,\n i.adapterLocale,\n i.countryAutocompleteService,\n i.googleApiKey,\n i.licenseMuiX,\n i.prefixResponseImageUriAutocomplete\n ]\n );\n return lt(() => {\n e.licenseMuiX && ot.setLicenseKey(e.licenseMuiX);\n }, [e.licenseMuiX]), /* @__PURE__ */ a.jsx(Zt.Provider, { value: e, children: s });\n}, Jt = () => {\n const s = Lt(Zt);\n if (!s)\n throw new Error(\"useOptionsContext must be used within a OptionsProvider\");\n return s;\n}, zn = ({\n handleChangeFormValue: s,\n autoFocus: n,\n data: i,\n readOnly: e,\n headers: t,\n fieldValues: l,\n isSubmitting: c,\n ignoreFields: o,\n disableDivider: u,\n options: d,\n animated: g = !0,\n visible: f = !0\n}) => {\n const [h, p] = ge(\"\"), { attributes: j, uuid: v } = i, { type: m, label: x, required: b, helperText: T, isMultiple: k, parentRef: P, isDisabledPast: S, name: Y, pattern: L, patternMessage: F } = j, _ = h || T, D = g ? 200 : 0, A = f && b, C = m === \"hidden\", E = !!(P && !(l != null && l[P])), I = c || E, M = (l == null ? void 0 : l[Y]) || \"\", R = !!(o != null && o.find((J) => J === Y)), O = Jt(), B = (d == null ? void 0 : d.licenseMuiX) || (O == null ? void 0 : O.licenseMuiX), Q = (d == null ? void 0 : d.googleApiKey) || (O == null ? void 0 : O.googleApiKey), G = (d == null ? void 0 : d.countryAutocompleteService) || (O == null ? void 0 : O.countryAutocompleteService), te = (d == null ? void 0 : d.disablePastDatePicker) || (O == null ? void 0 : O.disablePastDatePicker), ee = (d == null ? void 0 : d.disablePastDateRangePicker) || (O == null ? void 0 : O.disablePastDateRangePicker), le = (d == null ? void 0 : d.prefixResponseImageUriAutocomplete) || (O == null ? void 0 : O.prefixResponseImageUriAutocomplete), N = wt(\n (J) => {\n J.value && p(\"\"), s == null || s({\n ...J,\n uuid: v\n });\n },\n [s, v]\n ), q = wt(\n (J) => {\n const ne = J && \"node\" in J ? J.node : J;\n if (ne && !(d != null && d.noValidate)) {\n const ue = (be) => {\n be.preventDefault();\n const me = be.target;\n me.validity && me.validity.patternMismatch && F ? p(F) : me.validationMessage && p(me.validationMessage);\n };\n ne.removeEventListener(\"invalid\", ue), ne.addEventListener(\"invalid\", ue), L && F && ne.setAttribute(\"title\", F);\n }\n !ne || !n || ne.tabIndex > 0 || setTimeout(() => ne.focus(), D);\n },\n [D, n, d == null ? void 0 : d.noValidate, L, F]\n ), ae = () => {\n switch (m) {\n case \"email\":\n case \"number\":\n case \"password\":\n case \"tel\":\n case \"text\":\n case \"url\":\n return /* @__PURE__ */ a.jsx(\n An,\n {\n onChange: N,\n readOnly: e,\n name: Y,\n label: x,\n type: m,\n value: M,\n required: A,\n inputRef: q,\n helperText: _,\n multiple: k,\n isIgnored: R,\n pattern: L,\n patternMessage: F,\n error: !!h\n }\n );\n case \"file\":\n return /* @__PURE__ */ a.jsx(\n Dn,\n {\n onChange: N,\n readOnly: e,\n inputRef: q,\n name: Y,\n label: x,\n required: A,\n helperText: _,\n multiple: k,\n isIgnored: R,\n pattern: L,\n patternMessage: F,\n error: !!h\n }\n );\n case \"date\":\n return /* @__PURE__ */ a.jsx(\n jn,\n {\n readOnly: e,\n onChange: N,\n name: Y,\n label: x,\n required: A,\n inputRef: q,\n helperText: _,\n value: M,\n disablePast: te,\n isIgnored: R,\n pattern: L,\n patternMessage: F,\n error: !!h\n }\n );\n case \"time\":\n return /* @__PURE__ */ a.jsx(\n Fn,\n {\n readOnly: e,\n onChange: N,\n name: Y,\n label: x,\n required: A,\n inputRef: q,\n helperText: _,\n value: M,\n isIgnored: R,\n pattern: L,\n patternMessage: F,\n error: !!h\n }\n );\n case \"timeRange\":\n return /* @__PURE__ */ a.jsx(\n In,\n {\n readOnly: e,\n onChange: N,\n name: Y,\n label: x,\n required: A,\n inputRef: q,\n helperText: _,\n value: M,\n pattern: L,\n isIgnored: R,\n error: !!h\n }\n );\n case \"dateRange\":\n return /* @__PURE__ */ a.jsx(\n Tn,\n {\n readOnly: e,\n onChange: N,\n name: Y,\n label: x,\n disablePast: !!S || ee,\n required: A,\n inputRef: q,\n helperText: _,\n value: M,\n pattern: L,\n isIgnored: R,\n licenseMuiX: B,\n error: !!h\n }\n );\n case \"address\":\n return /* @__PURE__ */ a.jsx(\n fn,\n {\n readOnly: e,\n node: i,\n onChange: N,\n helperText: _,\n inputRef: q,\n value: M,\n isIgnored: R,\n country: G,\n pattern: L,\n googleApiKey: Q,\n error: !!h\n }\n );\n case \"radio\":\n return /* @__PURE__ */ a.jsx(\n Rn,\n {\n data: i,\n onChange: N,\n onInit: s,\n readOnly: e,\n inputRef: q,\n required: A,\n helperText: _,\n value: M,\n isIgnored: R,\n error: !!h\n }\n );\n case \"select\":\n return /* @__PURE__ */ a.jsx(\n En,\n {\n data: i,\n onChange: N,\n onInit: s,\n readOnly: e,\n inputRef: q,\n helperText: _,\n required: A,\n value: M,\n isIgnored: R,\n error: !!h\n }\n );\n case \"checkbox\":\n return /* @__PURE__ */ a.jsx(\n pn,\n {\n data: i,\n onChange: N,\n readOnly: e,\n helperText: _,\n value: M,\n isIgnored: R,\n required: A,\n error: !!h\n }\n );\n case \"switch\":\n return /* @__PURE__ */ a.jsx(\n Yn,\n {\n data: i,\n onChange: N,\n readOnly: e,\n inputRef: q,\n helperText: _,\n value: M,\n isIgnored: R,\n error: !!h\n }\n );\n case \"autocomplete\":\n return /* @__PURE__ */ a.jsx(\n xn,\n {\n node: i,\n onChange: N,\n readOnly: e,\n headers: t,\n inputRef: q,\n value: M,\n helperText: _,\n prefixResponseImageUriAutocomplete: le,\n isIgnored: R,\n error: !!h\n }\n );\n case \"dynamicSelect\":\n return /* @__PURE__ */ a.jsx(\n _n,\n {\n onChange: N,\n fieldValues: l,\n node: i,\n headers: t,\n value: M,\n isParentFieldRequiredAndEmpty: I,\n inputRef: q,\n isIgnored: R,\n helperText: _,\n error: !!h\n }\n );\n case \"title\":\n return /* @__PURE__ */ a.jsx(Un, { label: x, disableDivider: u });\n default:\n return /* @__PURE__ */ a.jsx(ie, { variant: \"rounded\", width: \"100%\", height: 56, animation: !1 });\n }\n };\n return C ? /* @__PURE__ */ a.jsx(kn, { data: i, onInit: s }) : /* @__PURE__ */ a.jsx(\n $t,\n {\n mountOnEnter: !0,\n in: f,\n timeout: D,\n appear: !R,\n style: R ? { display: \"none\" } : void 0,\n children: /* @__PURE__ */ a.jsx(\n re,\n {\n flexDirection: \"column\",\n sx: {\n display: f ? \"flex\" : \"none\",\n ...m === \"title\" && { margin: \"0 !important\" }\n },\n children: ae()\n }\n )\n }\n );\n}, Bn = jr(zn), Hn = (s, n, i, e) => {\n var t;\n if (n || i) {\n if (i) {\n const c = s.children.find((o) => o.attributes.value === e);\n return (c == null ? void 0 : c.attributes) || null;\n }\n return ((t = s.attributes.values) == null ? void 0 : t.find((c) => c.value === e)) || null;\n }\n return null;\n}, Kn = (s, n) => Object.entries(s).reduce((i, [e, t]) => {\n const l = n.find((j) => j.attributes.name === e);\n if (!l)\n return i;\n const { attributes: c } = l, { type: o, label: u, isDecision: d, tag: g } = c, f = o === \"select\" || o === \"radio\", h = Hn(l, f, d, t), p = f || d ? { label: h == null ? void 0 : h.label, value: h == null ? void 0 : h.value } : t;\n return i.push({\n label: u,\n name: e,\n type: o,\n value: p,\n ...g && { tag: g }\n }), i;\n}, []), Gn = (s) => !(!s || typeof s != \"object\" || !(\"uuid\" in s) || !(\"attributes\" in s) || !(\"children\" in s)), Ye = ({\n currentTree: s,\n fieldArrayAcc: n = [],\n restTreeAcc: i = [],\n treePath: e\n}) => {\n var c, o, u, d, g, f, h, p, j;\n if (!s || !Gn(s))\n return [];\n let t = [...n], l = [...i];\n if ((c = s.attributes) != null && c.tree ? s.children.length && (l = [{ currentTree: s, ...e && { treePath: e } }, ...i]) : t = [\n ...t,\n {\n ...s,\n ...e && { treePath: e },\n // set childrenRestTree\n ...((o = s == null ? void 0 : s.children) == null ? void 0 : o.length) > 1 && l.length && { childrenTreeRest: l },\n attributes: { ...s.attributes, name: (u = s.attributes) == null ? void 0 : u.name }\n }\n ], (d = s.attributes) != null && d.tree)\n return Ye({\n currentTree: (g = s.attributes) == null ? void 0 : g.tree,\n fieldArrayAcc: t,\n restTreeAcc: l,\n treePath: (f = s == null ? void 0 : s.attributes) == null ? void 0 : f.treePath\n });\n if (((h = s == null ? void 0 : s.children) == null ? void 0 : h.length) === 1)\n return Ye({\n currentTree: (p = s == null ? void 0 : s.children) == null ? void 0 : p[0],\n fieldArrayAcc: t,\n restTreeAcc: l,\n treePath: e\n });\n if (l.length && ((j = s == null ? void 0 : s.children) == null ? void 0 : j.length) <= 1) {\n const v = l[0];\n return l.shift(), Ye({\n currentTree: v.currentTree.children[0] || null,\n fieldArrayAcc: t,\n restTreeAcc: l,\n treePath: v == null ? void 0 : v.treePath\n });\n }\n return t;\n}, Nn = (s) => {\n let n = [];\n if (!s)\n return [];\n for (let i = 0; i < s.length; i += 1) {\n const { currentTree: e, treePath: t } = s[i], l = Ye({ currentTree: e.children[0], treePath: t }), c = l == null ? void 0 : l.at(-1);\n if (!(c != null && c.attributes.isLeaf)) {\n const o = s == null ? void 0 : s.slice(i + 1);\n l.splice(-1, 1, { ...c, childrenTreeRest: o }), n = [...n, ...l];\n break;\n }\n n = [...n, ...l];\n }\n return n;\n}, qn = (s) => s == null ? void 0 : s.reduce((n, { value: i, name: e, type: t }) => {\n if (t === \"autocomplete\" || t === \"dynamicSelect\")\n return {\n ...n,\n [e]: i\n };\n const l = fe(i) && \"value\" in i ? i == null ? void 0 : i.value : i;\n return {\n ...n,\n [e]: l\n };\n}, {}), Xn = ({\n tree: s,\n onSubmit: n,\n initialValues: i,\n debug: e,\n ignoreFields: t,\n disabledSubmitButton: l,\n options: c\n}) => {\n var k, P;\n const [o, u] = ge([]), [d, g] = ge(!1), [f, h] = ge({}), p = Ue(() => Ye({ currentTree: s }), [s]), j = Ie(), v = o == null ? void 0 : o.filter((S) => {\n const Y = t == null ? void 0 : t.find((L) => L === S.attributes.name);\n return S.attributes.required && !Y;\n }), m = l ? !1 : v == null ? void 0 : v.every((S) => f == null ? void 0 : f[S.attributes.name]), x = !((P = (k = p[((p == null ? void 0 : p.length) || 0) - 1]) == null ? void 0 : k.children) != null && P.length) && !!s, b = (S) => {\n const { value: Y, name: L, isDecision: F, children: _ } = S;\n F && u((D) => {\n var te, ee, le;\n const A = _ == null ? void 0 : _.find((N) => N.attributes.name === `${L}:${Y}`), C = D == null ? void 0 : D.findIndex((N) => N.attributes.name === L), E = (te = D == null ? void 0 : D[C]) == null ? void 0 : te.childrenTreeRest, I = Nn(E), M = Ye({\n currentTree: (A == null ? void 0 : A.children[0]) || null,\n treePath: (ee = D == null ? void 0 : D[C]) == null ? void 0 : ee.treePath\n }), R = !(M != null && M.length) && !(I != null && I.length), O = D.slice(0, C + 1);\n if (R)\n return g(!0), O;\n const B = [...O, ...M, ...I], Q = B.at(-1), G = !!((le = Q == null ? void 0 : Q.attributes) != null && le.isLeaf);\n return g(G), B;\n }), h((D) => ({\n ...D,\n [L]: Y\n }));\n }, T = (S) => {\n S.preventDefault();\n const Y = S.currentTarget;\n if (!Y.checkValidity() && !(c != null && c.noValidate)) {\n const D = Y.elements, A = Array.from(D).find(\n (C) => (\n // We check only elements that have a checkValidity method\n // (inputs, selects, textareas)\n C instanceof HTMLElement && \"checkValidity\" in C && !C.checkValidity()\n )\n );\n A && A.focus(), Y.reportValidity();\n return;\n }\n if (!d)\n return;\n const F = [...new FormData(S.currentTarget)], _ = Kn(f, o);\n n == null || n({ data: _, fieldValues: f, formData: F }), e && console.log({ data: _, fieldValues: f, formData: F });\n };\n return xe(() => {\n if (Ir(j.current, i))\n return;\n j.current = i;\n const S = qn(j.current);\n S && h(S);\n }, [i]), xe(() => {\n u(p);\n }, [p]), xe(() => {\n g(x);\n }, [x]), {\n fields: o,\n fieldValues: f,\n formCanBeSubmit: m,\n handleChangeFormValue: b,\n handleSubmit: T,\n isLastField: d\n };\n};\nvar Vn = { exports: {} };\n(function(s, n) {\n (function(i, e) {\n s.exports = e(K);\n })(De, function(i) {\n function e(c) {\n return c && typeof c == \"object\" && \"default\" in c ? c : { default: c };\n }\n var t = e(i), l = { name: \"fr\", weekdays: \"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi\".split(\"_\"), weekdaysShort: \"dim._lun._mar._mer._jeu._ven._sam.\".split(\"_\"), weekdaysMin: \"di_lu_ma_me_je_ve_sa\".split(\"_\"), months: \"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre\".split(\"_\"), monthsShort: \"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.\".split(\"_\"), weekStart: 1, yearStart: 4, formats: { LT: \"HH:mm\", LTS: \"HH:mm:ss\", L: \"DD/MM/YYYY\", LL: \"D MMMM YYYY\", LLL: \"D MMMM YYYY HH:mm\", LLLL: \"dddd D MMMM YYYY HH:mm\" }, relativeTime: { future: \"dans %s\", past: \"il y a %s\", s: \"quelques secondes\", m: \"une minute\", mm: \"%d minutes\", h: \"une heure\", hh: \"%d heures\", d: \"un jour\", dd: \"%d jours\", M: \"un mois\", MM: \"%d mois\", y: \"un an\", yy: \"%d ans\" }, ordinal: function(c) {\n return \"\" + c + (c === 1 ? \"er\" : \"\");\n } };\n return t.default.locale(l, null, !0), l;\n });\n})(Vn);\nK.locale(\"fr\");\nconst Zn = ({\n tree: s,\n onSubmit: n,\n options: i,\n loading: e,\n style: t,\n readOnly: l,\n headers: c,\n theme: o,\n initialValues: u,\n ignoreFields: d,\n debug: g,\n disabledSubmitButton: f,\n isSubmitting: h,\n renderFormValidation: p\n}) => {\n var L;\n const { fields: j, handleChangeFormValue: v, handleSubmit: m, isLastField: x, fieldValues: b, formCanBeSubmit: T } = Xn({\n debug: g,\n disabledSubmitButton: f,\n initialValues: u,\n onSubmit: n,\n options: i,\n tree: s\n }), k = Yr(), P = new Mr(), S = Jt(), Y = (i == null ? void 0 : i.adapterLocale) || (S == null ? void 0 : S.adapterLocale) || ((L = navigator == null ? void 0 : navigator.language) == null ? void 0 : L.slice(0, 2));\n return lt(() => {\n i != null && i.licenseMuiX && ot.setLicenseKey(i == null ? void 0 : i.licenseMuiX);\n }, [i == null ? void 0 : i.licenseMuiX]), e ? /* @__PURE__ */ a.jsx(re, { display: \"flex\", alignItems: \"center\", justifyContent: \"center\", height: \"100%\", style: t, children: /* @__PURE__ */ a.jsx(Ft, { color: \"primary\" }) }) : /* @__PURE__ */ a.jsx(Lr, { theme: o || k.palette.mode, children: /* @__PURE__ */ a.jsx(wr, { client: P, children: /* @__PURE__ */ a.jsx(Tr, { dateAdapter: an, adapterLocale: Y, children: /* @__PURE__ */ a.jsxs(re, { noValidate: !0, onSubmit: m, component: \"form\", paddingX: 15, paddingY: 5, style: t, children: [\n /* @__PURE__ */ a.jsx(V, { spacing: 4, direction: \"column\", sx: { \"div:first-of-type hr\": { display: \"none\" } }, children: j ? j.map((F) => /* @__PURE__ */ a.jsx(\n Bn,\n {\n data: F,\n handleChangeFormValue: v,\n readOnly: l,\n headers: c,\n fieldValues: b,\n isSubmitting: h,\n ignoreFields: d,\n options: i\n },\n F.uuid\n )) : /* @__PURE__ */ a.jsx(cn, {}) }),\n /* @__PURE__ */ a.jsx(\n ln,\n {\n disabled: !T,\n isLoading: h,\n readOnly: l,\n isLastField: x,\n renderFormValidation: p\n }\n )\n ] }) }) }) });\n}, cs = ({\n tree: s,\n onSubmit: n,\n options: i,\n theme: e,\n loading: t,\n style: l,\n readOnly: c,\n headers: o,\n initialValues: u,\n ignoreFields: d,\n debug: g,\n disabledSubmitButton: f,\n isSubmitting: h,\n renderFormValidation: p\n}) => /* @__PURE__ */ a.jsx(Wn, { children: /* @__PURE__ */ a.jsx(\n Zn,\n {\n options: i,\n loading: t,\n onSubmit: n,\n tree: s,\n isSubmitting: h,\n style: l,\n readOnly: c,\n headers: o,\n theme: e,\n initialValues: u,\n ignoreFields: d,\n debug: g,\n renderFormValidation: p,\n disabledSubmitButton: f\n }\n) }), Et = (s) => ve(s) ? s : fe(s) && \"label\" in s && ve(s == null ? void 0 : s.label) ? s.label : \"\", ls = ({\n values: s,\n renderInputs: n,\n ignoreFields: i,\n collapse: e,\n collapseVisibleItemNumber: t = 4\n}) => {\n const [l, c] = Ur(!1), o = s && n, u = s == null ? void 0 : s.filter((f) => !(i != null && i.includes(f.name))), d = (f) => {\n var h;\n return /* @__PURE__ */ a.jsxs(Fr, { children: [\n (h = e ? f.slice(0, t) : f) == null ? void 0 : h.map(({ label: p, value: j, type: v }, m) => {\n const x = `${m}-${p}-${j}`, b = Et(j);\n return [\"switch\", \"checkbox\"].includes(v || \"\") ? /* @__PURE__ */ a.jsx(Se, { disableGutters: !0, children: /* @__PURE__ */ a.jsx(Le, { control: /* @__PURE__ */ a.jsx(st, { checked: !!j, readOnly: !0 }), label: p }) }, x) : /* @__PURE__ */ a.jsx(Se, { disableGutters: !0, children: /* @__PURE__ */ a.jsx(\n _e,\n {\n fullWidth: !0,\n multiline: !0,\n label: p,\n value: b,\n inputProps: {\n readOnly: !0\n }\n }\n ) }, x);\n }),\n e && /* @__PURE__ */ a.jsx(_t, { in: l, children: f.slice(t).map(({ label: p, value: j, type: v }, m) => {\n const x = `${t + m}-${p}-${j}`, b = Et(j);\n return [\"switch\", \"checkbox\"].includes(v || \"\") ? /* @__PURE__ */ a.jsx(Se, { disableGutters: !0, children: /* @__PURE__ */ a.jsx(Le, { control: /* @__PURE__ */ a.jsx(st, { checked: !!j, readOnly: !0 }), label: p }) }, x) : /* @__PURE__ */ a.jsx(Se, { disableGutters: !0, children: /* @__PURE__ */ a.jsx(\n _e,\n {\n fullWidth: !0,\n multiline: !0,\n label: p,\n value: b,\n inputProps: {\n readOnly: !0\n }\n }\n ) }, x);\n }) })\n ] });\n }, g = (f) => /* @__PURE__ */ a.jsxs(a.Fragment, { children: [\n f.slice(0, e ? t : f.length).map((h, p) => {\n const j = `${p}-${h.label}-${h.value}`;\n return /* @__PURE__ */ a.jsx(\"div\", { children: n(h) }, j);\n }),\n e && /* @__PURE__ */ a.jsx(_t, { in: l, children: f.slice(t).map((h, p) => {\n const j = `${t + p}-${h.label}-${h.value}`;\n return /* @__PURE__ */ a.jsx(\"div\", { children: n(h) }, j);\n }) })\n ] });\n return /* @__PURE__ */ a.jsxs(a.Fragment, { children: [\n o ? g(u) : d(u),\n e && u && u.length > t && /* @__PURE__ */ a.jsx(re, { display: \"flex\", justifyContent: \"center\", alignItems: \"center\", children: /* @__PURE__ */ a.jsx(Ar, { onClick: c, children: /* @__PURE__ */ a.jsx($r, { viewBox: \"0 0 24 24\", sx: { transform: l ? \"rotate(180deg)\" : \"rotate(0deg)\" }, children: /* @__PURE__ */ a.jsx(\"path\", { d: \"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z\" }) }) }) })\n ] });\n};\nexport {\n cs as TreegeConsumer,\n Vt as TreegeConsumerContext,\n as as TreegeConsumerProvider,\n ls as TreegeConsumerResponse\n};\n"],"file":"assets/treegeConsumer-BtP1KYQJ.js"}