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EAAI,CAAEhC,sBAAuBwC,CAAQ,EACvC,EAEAC,iBAAkB,IAChBT,EAAI,CAAE/B,cAAe,CAAE,GAAGrQ,CAAI,CAAG,EACnC,EAEA8S,WAAY,IACVV,EAAI,CAAE9B,QAAS,CAAE,GAAGtQ,CAAK,CAAE,EAC7B,EAEA+S,kBAAmB,IACjBX,EAAI,CAAE1B,eAAgB,CAAE,GAAGsC,CAAW,CAAG,EAC3C,EAEAC,eAAgB,CAACC,EAAmCC,KAClD,GAAM,aAAEpB,CAAW,CAAE,CAAGM,IACxBD,EAAI,CAAEL,YAAa,CAAE,GAAGA,CAAW,CAAE,CAACmB,EAAe,CAAEC,CAAQ,CAAE,EACnE,EACF","sources":["webpack://_N_E/../../libs/mi-groups-components/src/molecules/FileUpload/FileUpload.types.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/FileUpload/FileUpload.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/Attachments/Attachments.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/Attachments/Attachments.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/DatePicker/DatePickerMobileContainer/DatePickerMobileContainer.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/DatePicker/DatePickerMobileContainer/DatePickerMobileContainer.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/EventInfo/EventInfo.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/EventInfo/EventInfo.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/TextAreaFormField/TextAreaFormField.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/TextAreaFormField/TextAreaFormField.tsx","webpack://_N_E/../../libs/mi-groups-components/src/organisms/RfpHeader/RfpHeader.types.tsx","webpack://_N_E/../../libs/mi-groups-components/src/store/rfp.ts"],"sourcesContent":["export type FileUploadProps = {\n ctaLabel: string;\n ctaClass?: string;\n disabled?: boolean;\n allowedFileTypes: string[];\n maxSize: number;\n onFileSelected: (file: File) => void;\n onError: (errorType: FileErrorType) => void;\n};\n\nexport enum FileErrorType {\n SIZE_ERROR,\n FORMAT_ERROR,\n UPLOAD_VIRUS_ERROR,\n UPLOAD_FILE_ERROR,\n DELETE_FILE_ERROR,\n NO_ERROR,\n}\n","import { ChangeEvent, FC, useId, useRef } from 'react';\nimport clsx from 'clsx';\nimport { Button } from '@marriott/mi-ui-library';\nimport { FileUploadProps, FileErrorType } from './FileUpload.types';\n\nexport const FileUpload: FC<FileUploadProps> = ({\n ctaLabel,\n ctaClass,\n disabled = false,\n allowedFileTypes,\n maxSize,\n onFileSelected,\n onError,\n}) => {\n const fileInputRef = useRef<HTMLInputElement>(null);\n const inputId = useId();\n\n const validateFile = (file: File): boolean => {\n if (maxSize) {\n if (file.size >= maxSize) {\n onError(FileErrorType.SIZE_ERROR);\n return false;\n }\n }\n if (allowedFileTypes) {\n const fileType = file.name.split('.').pop();\n if (!fileType || !allowedFileTypes.includes(`.${fileType.toLowerCase()}`)) {\n onError(FileErrorType.FORMAT_ERROR);\n return false;\n }\n }\n return true;\n };\n\n const handleFileChange = (e: ChangeEvent<HTMLInputElement>) => {\n const file = e.target.files?.[0];\n if (file) {\n if (validateFile(file)) {\n onFileSelected(file);\n onError(FileErrorType.NO_ERROR);\n }\n }\n };\n\n const handleFileUpload = () => {\n if (fileInputRef.current) {\n fileInputRef.current.click();\n }\n };\n\n return (\n <div data-component-name=\"m-groups-FileUpload\" data-testid=\"groups-FileUpload\">\n <label htmlFor={inputId} className=\"sr-only d-none\">\n {ctaLabel}\n </label>\n <input\n id={inputId}\n type=\"file\"\n className=\"d-none\"\n ref={fileInputRef}\n {...(allowedFileTypes && { accept: allowedFileTypes.join(', ') })}\n data-testid=\"file-input\"\n onChange={handleFileChange}\n onClick={event => {\n (event.target as HTMLInputElement).value = '';\n }}\n />\n <Button\n buttonCopy={ctaLabel}\n className={clsx('m-button-secondary', disabled && 'disabled', ctaClass)}\n isDisabled={disabled}\n callback={handleFileUpload}\n />\n </div>\n );\n};\n","import styled from 'styled-components';\nimport { toRem, baseVariables } from '@marriott/mi-ui-library';\n\nconst { color, mediaQuery } = baseVariables;\n\nexport const StyledAttachments = styled.div`\n .add-attachment {\n display: flex;\n flex-direction: column;\n\n .add-attachment-cta {\n font-size: ${toRem(13)};\n font-weight: 500;\n }\n\n .attachment-size {\n text-align: center;\n margin-top: ${toRem(16)};\n font-size: ${toRem(14)};\n }\n }\n\n .attachment-list {\n width: 100%;\n\n &-header,\n &-item {\n display: grid;\n grid-template-columns: 2fr 1fr;\n\n .file-name {\n text-align: left;\n font-size: ${toRem(16)};\n word-break: break-word;\n padding-right: ${toRem(16)};\n }\n\n .file-size {\n display: flex;\n justify-content: space-between;\n text-align: left;\n align-items: center;\n }\n }\n\n &-body {\n border-top: ${toRem(1)} solid ${color.neutral40};\n\n .delete-file {\n background-color: white;\n font-size: ${toRem(20)};\n margin: ${toRem(-4)} ${toRem(6)} 0 ${toRem(6)};\n padding: 0;\n &:focus-visible {\n outline: -webkit-focus-ring-color auto ${toRem(1)};\n }\n }\n }\n }\n\n @media ${mediaQuery.md} {\n .add-attachment {\n flex-direction: row;\n align-items: flex-end;\n\n .attachment-size {\n margin-left: ${toRem(48)};\n }\n }\n\n .attachment-list {\n width: 90%;\n\n &-header,\n &-item {\n grid-template-columns: 1fr 1fr;\n }\n }\n }\n\n @media ${mediaQuery.lg} {\n .attachment-list {\n width: 70%;\n }\n }\n`;\n","import { FC, useState } from 'react';\nimport clsx from 'clsx';\nimport { Control, Controller, useFieldArray } from 'react-hook-form';\nimport { Accordion, Button, InlineMessages, InlineMessagesType } from '@marriott/mi-ui-library';\nimport { FileUpload } from '../FileUpload';\nimport { TextAreaFormField } from '../TextAreaFormField';\nimport { convertFileSize, uploadFile, deleteFile } from '../../utils';\nimport { RFP_UPLOAD_MAX_SIZE, RFP_UPLOAD_ALLOWED_FILE_TYPES, RFP_UPLOAD_MAX_FILES, ERROR_CODES } from '../../constants';\nimport { useRfpStore } from '../../store';\nimport { FileErrorType } from '../../molecules/FileUpload/FileUpload.types';\nimport { StyledAttachments } from './Attachments.styles';\nimport { AttachmentsFormData, AttachmentsProps, SelectedFile, UploadErrorResponse } from './Attachments.types';\n\nexport const Attachments: FC<AttachmentsProps> = props => {\n const { labels, control } = props;\n\n const { eventProfileData } = useRfpStore();\n const initialTotalFileUploadSize =\n eventProfileData?.files?.reduce((total, file) => total + file.fileDetail.size, 0) || 0;\n\n const [totalFileUploadSize, setTotalFileUploadSize] = useState(initialTotalFileUploadSize);\n const [uploadFileLoader, setUploadFileLoader] = useState(false);\n const [deleteFileLoader, setDeleteFileLoader] = useState(false);\n const [fileError, setFileError] = useState<FileErrorType>(FileErrorType.NO_ERROR);\n\n let errorMessage;\n\n if (fileError === FileErrorType.SIZE_ERROR) {\n errorMessage = labels.fileSizeError;\n } else if (fileError === FileErrorType.FORMAT_ERROR) {\n errorMessage = labels.fileFormatError;\n } else if (fileError === FileErrorType.UPLOAD_VIRUS_ERROR) {\n errorMessage = labels.virusApiError;\n } else if (fileError === FileErrorType.UPLOAD_FILE_ERROR) {\n errorMessage = labels.apiError;\n } else {\n errorMessage = labels.removeApiError;\n }\n\n const { fields, append, remove } = useFieldArray({\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n control: control as Control<AttachmentsFormData, any>,\n name: 'files',\n });\n\n const handleFileUpload = async (file: File) => {\n setUploadFileLoader(true);\n try {\n const response = await uploadFile(file, 'rfp');\n\n if (!response.ok) {\n const errorResponse = await response.json();\n throw errorResponse;\n }\n\n const result = await response.json();\n append({ key: result.data?.[0].documentId || '', fileDetail: file, description: '' });\n setTotalFileUploadSize(prevTotalFileUploadSize => prevTotalFileUploadSize + file.size);\n } catch (error) {\n if (error) {\n const { errors, status } = error as UploadErrorResponse;\n const errorCode = errors?.[0]?.code;\n\n if (status === ERROR_CODES.HTTP.UNPROCESSABLE_ENTITY && errorCode === ERROR_CODES.IMAGE_UPLOAD.SIZE) {\n setFileError(FileErrorType.SIZE_ERROR);\n } else if (status === ERROR_CODES.HTTP.UNPROCESSABLE_ENTITY && errorCode === ERROR_CODES.IMAGE_UPLOAD.FORMAT) {\n setFileError(FileErrorType.FORMAT_ERROR);\n } else if (status === ERROR_CODES.HTTP.UNPROCESSABLE_ENTITY && errorCode === ERROR_CODES.IMAGE_UPLOAD.VIRUS) {\n setFileError(FileErrorType.UPLOAD_VIRUS_ERROR);\n } else {\n setFileError(FileErrorType.UPLOAD_FILE_ERROR);\n }\n }\n } finally {\n setUploadFileLoader(false);\n }\n };\n\n const handleFileDeletion = async (file: SelectedFile, index: number, event: React.MouseEvent) => {\n event.stopPropagation();\n setFileError(FileErrorType.NO_ERROR);\n setDeleteFileLoader(true);\n try {\n const response = await deleteFile(file.key, 'rfp');\n\n if (!response.ok) {\n const errorResponse = await response.json();\n throw errorResponse;\n }\n\n const result = await response.json();\n if (result.data.fileDetails?.[0].deleted) {\n remove(index);\n setTotalFileUploadSize(prevTotalFileUploadSize => prevTotalFileUploadSize - file.fileDetail.size);\n } else {\n setFileError(FileErrorType.DELETE_FILE_ERROR);\n }\n } catch (error) {\n setFileError(FileErrorType.DELETE_FILE_ERROR);\n } finally {\n setDeleteFileLoader(false);\n }\n };\n\n return (\n <StyledAttachments data-component-name=\"m-groups-Attachments\" data-testid=\"groups-Attachments\">\n {fileError !== FileErrorType.NO_ERROR ? (\n <div className=\"mb-4\">\n <InlineMessages type={InlineMessagesType.Error} title={errorMessage} severity=\"1\" />\n </div>\n ) : null}\n <div>\n <p className=\"m-0 t-font-s\">{labels.attachmentsHelperText}</p>\n <p className=\"m-0 t-font-s\">{labels.acceptedFileFormat}</p>\n <p className=\"mt-3 t-font-s\">{labels.maxFileSize}</p>\n </div>\n <div className=\"my-4 add-attachment\">\n <FileUpload\n ctaLabel={labels.addAttachment}\n ctaClass={clsx('add-attachment-cta', uploadFileLoader && 'skeleton-loader')}\n disabled={uploadFileLoader || !(fields.length < RFP_UPLOAD_MAX_FILES)}\n allowedFileTypes={RFP_UPLOAD_ALLOWED_FILE_TYPES}\n maxSize={RFP_UPLOAD_MAX_SIZE - totalFileUploadSize}\n onFileSelected={handleFileUpload}\n onError={(errorType: FileErrorType) => setFileError(errorType)}\n />\n <div className=\"attachment-size\">{`${labels.size} ${convertFileSize(totalFileUploadSize)}`}</div>\n </div>\n {fields.length ? (\n <div className=\"attachment-list\">\n <div className=\"mr-3 mb-3 attachment-list-header\">\n <div className=\"t-font-s\">{labels.fileName}</div>\n <div className=\"t-font-s\">{labels.fileSize}</div>\n </div>\n {fields.map((field, index) => (\n <div key={field.id} className=\"py-2 attachment-list-body\">\n <Accordion\n id={`file${index}`}\n isOpen={false}\n enableFullWidthHeader={true}\n disableAccResize={true}\n headerChildren={\n <div className=\"attachment-list-item\">\n <div className=\"file-name\">{field.fileDetail.name}</div>\n <div className=\"file-size\">\n <div className=\"t-font-s\">{convertFileSize(field.fileDetail.size)}</div>\n <Button\n className=\"icon-delete delete-file\"\n ariaLabel={labels.removeAriaLabel}\n isDisabled={deleteFileLoader}\n testId={`deleteFileCta${index}`}\n callback={event => handleFileDeletion(field, index, event as React.MouseEvent)}\n />\n </div>\n </div>\n }\n headerAriaLabel={`${labels.fileName}:${field.fileDetail.name}, ${labels.fileSize}:${convertFileSize(\n field.fileDetail.size\n )}`}\n >\n <div>\n <Controller\n name={`files.${index}.description`}\n control={control}\n render={({ field }) => (\n <TextAreaFormField\n {...field}\n placeholder={labels.fileDetailsPlaceholder}\n maxLength={500}\n onChange={event => field.onChange(event)}\n />\n )}\n />\n </div>\n </Accordion>\n </div>\n ))}\n </div>\n ) : null}\n </StyledAttachments>\n );\n};\n","import styled from 'styled-components';\nimport { toRem, baseVariables } from '@marriott/mi-ui-library';\n\nconst { color, shadows } = baseVariables;\n\nexport const StyledDatePickerMobileContainer = styled.div`\n .mobile-container {\n position: fixed;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 50;\n grid-template-rows: ${toRem(108)} 1fr ${toRem(104)};\n display: grid;\n height: 100%;\n background: ${color.base20};\n &-header {\n padding: ${toRem(48)} ${toRem(16)} ${toRem(12)};\n background-color: ${color.base10};\n .cancel-cta {\n background: transparent;\n &:focus-visible {\n outline: -webkit-focus-ring-color auto ${toRem(1)};\n }\n }\n }\n &-body {\n overflow-x: auto;\n }\n &-footer {\n position: fixed;\n left: 0;\n bottom: 0;\n width: 100%;\n box-shadow: 0 0 ${toRem(8)} 0 ${shadows.boxShadowTile};\n .w-100 {\n width: 100%;\n }\n }\n }\n`;\n","import { FC, useState, useRef, useEffect } from 'react';\nimport moment from 'moment';\nimport {\n Button,\n baseVariables,\n getCurrentDateObject,\n getNextDateObject,\n getPrevDateObject,\n} from '@marriott/mi-ui-library';\nimport {\n getDatesLabel,\n getFormattedDates,\n getFormattedDate,\n getFormattedDateObject,\n setCalendarOptions,\n} from '../../../utils';\nimport { TextFormField, DatePickerMobile } from '../../../molecules';\nimport { onChangeParams as DateType } from '../DatePickerMobile/DatePickerMobile.types';\nimport { DatePickerMobileContainerProps } from './DatePickerMobileContainer.types';\nimport { StyledDatePickerMobileContainer } from './DatePickerMobileContainer.styles';\nimport { useFocusOut, useMediaQuery } from '../../../hooks';\nimport { ENTER_KEY } from '../../../constants';\n\nexport const DatePickerMobileContainer: FC<DatePickerMobileContainerProps> = ({\n dates,\n startDate,\n endDate,\n isDateRangeFixed = false,\n rangeStartDate,\n rangeEndDate,\n setDefaultDates = true,\n showErrorMessage = false,\n errorMessage,\n isPastDateSelectionDisabled,\n enableFromPastDate,\n onChange,\n onClose,\n}) => {\n const { shortWeekdayNames, longWeekdayNames, shortMonthNames, longMonthNames } = dates;\n\n const defaultStartDate = getCurrentDateObject();\n const defaultEndDate = getNextDateObject(defaultStartDate);\n const initialStartDate = setDefaultDates ? startDate || defaultStartDate : null;\n const initialEndDate = setDefaultDates ? endDate || defaultEndDate : null;\n\n const isTabletAndAbove = useMediaQuery(baseVariables.mediaQuery.md);\n\n const datePickerContainerRef = useRef<HTMLDivElement>(null);\n const prevDateValueRef = useRef<DateType>();\n\n const [isOpen, setIsOpen] = useState(false);\n const [dateObject, setDateObject] = useState<DateType>({\n dates: '',\n startDate: '',\n endDate: '',\n datesLabel: '',\n });\n\n useEffect(() => {\n setCalendarOptions({\n shortWeekdayNames,\n longWeekdayNames,\n shortMonthNames,\n longMonthNames,\n });\n }, [shortWeekdayNames, longWeekdayNames, shortMonthNames, longMonthNames]);\n\n useEffect(() => {\n setDateObject({\n dates: getFormattedDates(moment(initialStartDate), moment(initialEndDate)),\n startDate: getFormattedDate(initialStartDate),\n endDate: getFormattedDate(initialEndDate),\n datesLabel: getDatesLabel(initialStartDate, initialEndDate, dates.label, dates.night, dates.nights),\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffect(() => {\n onChange?.(dateObject.dates, dateObject.startDate, dateObject.endDate);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [dateObject]);\n\n useFocusOut({\n ref: datePickerContainerRef.current,\n onFocusOut: (isFocusOut: boolean) => {\n if (isFocusOut) {\n handleCancel();\n }\n },\n handleClick: false,\n handleKeyup: true,\n });\n\n const updateEndDate = () => {\n const { startDate, endDate } = dateObject;\n if (startDate && !endDate) {\n const startDateObject = getFormattedDateObject(startDate, 'dateWithDayMonthAndYear');\n const isStartDateLastDayInRange = isDateRangeFixed && startDateObject.isSame(rangeEndDate, 'days');\n const selectedStartDate = isStartDateLastDayInRange ? getPrevDateObject(startDateObject) : startDateObject;\n const selectedEndDate = isStartDateLastDayInRange ? startDateObject : getNextDateObject(startDateObject);\n const formattedDates = getFormattedDates(selectedStartDate, selectedEndDate);\n\n setDateObject(prevDate => ({\n ...prevDate,\n dates: formattedDates,\n startDate: getFormattedDate(selectedStartDate),\n endDate: getFormattedDate(selectedEndDate),\n datesLabel: getDatesLabel(selectedStartDate, selectedEndDate, dates.label, dates.night, dates.nights),\n }));\n }\n };\n\n const handleDone = () => {\n updateEndDate();\n onChange?.(dateObject.dates, dateObject.startDate, dateObject.endDate);\n setIsOpen(false);\n onClose?.();\n };\n\n const handleCancel = () => {\n if (prevDateValueRef.current) {\n setDateObject(prevDateValueRef.current);\n }\n setIsOpen(false);\n onClose?.();\n };\n\n const handleFocus = (event: React.FocusEvent<HTMLInputElement>) => {\n if (!event.relatedTarget) {\n prevDateValueRef.current = { ...dateObject };\n setIsOpen(true);\n }\n };\n\n const handleKeydown = (event: React.KeyboardEvent) => {\n if (event.key === ENTER_KEY) {\n event.preventDefault();\n prevDateValueRef.current = { ...dateObject };\n setIsOpen(true);\n }\n };\n\n return (\n <StyledDatePickerMobileContainer>\n <TextFormField\n label={dateObject.startDate && dateObject.endDate ? dateObject.datesLabel : dates.label}\n ariaLabel={dates.ariaLabel}\n value={dateObject.dates}\n className=\"m-input-field\"\n showErrorMessage={showErrorMessage}\n errorMessage={errorMessage}\n onClick={() => {\n prevDateValueRef.current = { ...dateObject };\n setIsOpen(true);\n }}\n onFocus={handleFocus}\n onKeyDown={handleKeydown}\n />\n {isOpen ? (\n <div\n ref={isTabletAndAbove ? datePickerContainerRef : null}\n className=\"mobile-container\"\n data-testid=\"mobile-container\"\n >\n <div className=\"mobile-container-header\">\n <div className=\"t-label-inverse-s\">{dates.label}</div>\n <div className=\"d-flex justify-content-between mt-2\">\n <div className=\"t-font-inverse-m\">{dateObject.dates}</div>\n <Button\n buttonCopy={dates.cancel}\n ariaLabel={dates.cancelAriaLabel}\n className=\"t-label-inverse-s p-0 cancel-cta\"\n callback={handleCancel}\n />\n </div>\n </div>\n <div className=\"mobile-container-body\">\n <DatePickerMobile\n dates={dates}\n startDate={\n dateObject.startDate ? getFormattedDateObject(dateObject.startDate, 'dateWithDayMonthAndYear') : null\n }\n endDate={\n dateObject.endDate ? getFormattedDateObject(dateObject.endDate, 'dateWithDayMonthAndYear') : null\n }\n isDateRangeFixed={isDateRangeFixed}\n rangeStartDate={rangeStartDate}\n rangeEndDate={rangeEndDate}\n setDefaultDates={setDefaultDates}\n showFlexibleDates={false}\n isPastDateSelectionDisabled={isPastDateSelectionDisabled}\n enableFromPastDate={enableFromPastDate}\n onChange={dates => {\n setDateObject(dates);\n }}\n />\n </div>\n <div className=\"px-3 py-5 mobile-container-footer\">\n <Button\n buttonCopy={dates.done}\n ariaLabel={dates.doneAriaLabel}\n className=\"m-button-primary d-block w-100\"\n callback={handleDone}\n />\n </div>\n </div>\n ) : null}\n </StyledDatePickerMobileContainer>\n );\n};\n","import styled from 'styled-components';\n\nexport const StyledEventInfo = styled.div``;\n","import { FC, useEffect, useState } from 'react';\nimport { Controller } from 'react-hook-form';\nimport clsx from 'clsx';\nimport { baseVariables } from '@marriott/mi-ui-library';\nimport { useMediaQuery } from '../../hooks';\nimport { getFormattedDateObject, isToday, isValidNumeric, validateAttendees, validateGuestRooms } from '../../utils';\nimport { DEFAULT_LANG, LOCALE_MAP, NUM_REGEX } from '../../constants';\nimport { useLocaleStore } from '../../store';\nimport { TextFormField } from '../TextFormField';\nimport { DatePickerDesktop } from '../DatePicker/DatePickerDesktop';\nimport { DatePickerMobileContainer } from '../DatePicker/DatePickerMobileContainer';\nimport { SingleSelectList } from '../SingleSelectList';\nimport { Dropdown } from '../Dropdown';\nimport { DropdownOption } from '../Dropdown/Dropdown.types';\nimport { EventInfoProps, OptionType } from './EventInfo.types';\nimport { StyledEventInfo } from './EventInfo.styles';\n\nexport const EventInfo: FC<EventInfoProps> = props => {\n const {\n labels,\n flexibleDateOptions,\n eventTypeOptions,\n isOtherEvent,\n setIsOtherEvent,\n showBudget = false,\n control,\n getValues,\n setValue,\n errors,\n clearErrors,\n } = props;\n const { eventName, dates, flexibleDates, eventType, otherEventType, guestRooms, attendees, currency, budget } =\n labels;\n\n const selectedStartDate = getValues('startDate') ? getFormattedDateObject(getValues('startDate')) : null;\n const selectedEndDate = getValues('endDate') ? getFormattedDateObject(getValues('endDate')) : null;\n const currencyOptions = currency?.options.map(item => {\n return { ...item, value: item.code };\n });\n\n const isTablet = useMediaQuery(baseVariables.mediaQuery.md);\n\n const { locale } = useLocaleStore();\n\n const [selectedCurrency, setSelectedCurrency] = useState('');\n\n useEffect(() => {\n if (showBudget) {\n const defaultCurrencyCode = LOCALE_MAP[DEFAULT_LANG]['currency'];\n const currencyCode = (LOCALE_MAP[locale] || LOCALE_MAP[DEFAULT_LANG])['currency'];\n const selectedCurrency = currencyOptions?.find(option => option.value === currencyCode)?.value;\n setSelectedCurrency(selectedCurrency || defaultCurrencyCode);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const handleDatesChange = (dates: string, startDate: string, endDate: string) => {\n setValue('dates', dates);\n setValue('startDate', startDate);\n setValue('endDate', endDate);\n clearErrors('dates');\n };\n\n const eventNameField = (\n <Controller\n name=\"eventName\"\n control={control}\n rules={{ required: true }}\n render={({ field }) => (\n <TextFormField\n {...field}\n label={eventName.label}\n ariaLabel={eventName.ariaLabel}\n className=\"m-input-field\"\n maxLength={eventName?.maxLength}\n showErrorMessage={Boolean(errors.eventName)}\n errorMessage={eventName.requiredError}\n onChange={event => {\n field.onChange(event);\n clearErrors(field.name);\n }}\n />\n )}\n />\n );\n\n const datesField = (\n <Controller\n name=\"dates\"\n control={control}\n rules={{\n validate: () => (isToday(getValues('startDate')) ? dates.currentDateError : undefined),\n }}\n render={() => (\n <DatePickerDesktop\n dates={dates}\n align={'left'}\n showFlexibleDates={false}\n selectedStartDate={selectedStartDate}\n selectedEndDate={selectedEndDate}\n showErrorMessage={!!errors.dates}\n errorMessage={errors.dates?.message}\n onChange={handleDatesChange}\n />\n )}\n />\n );\n\n const mobileDatesField = (\n <Controller\n name=\"dates\"\n control={control}\n rules={{\n validate: () => (isToday(getValues('startDate')) ? dates.currentDateError : undefined),\n }}\n render={() => (\n <DatePickerMobileContainer\n dates={dates}\n startDate={selectedStartDate}\n endDate={selectedEndDate}\n showFlexibleDates={false}\n showErrorMessage={!!errors.dates}\n errorMessage={errors.dates?.message}\n onChange={handleDatesChange}\n />\n )}\n />\n );\n\n const flexibleDatesField = (\n <Controller\n name=\"flexibleDates\"\n control={control}\n render={({ field }) => (\n <SingleSelectList\n {...field}\n label={flexibleDates.label}\n placeholder={flexibleDates.select}\n ariaLabel={flexibleDates.ariaLabel}\n eyebrowText={flexibleDates.label}\n options={flexibleDateOptions}\n expandIconAriaLabel={`${flexibleDates.label} ${flexibleDates.expandIconAriaLabel}`}\n collapseIconAriaLabel={`${flexibleDates.label} ${flexibleDates.collapseIconAriaLabel}`}\n onChange={option =>\n setValue('flexibleDates', { label: option.label, code: option.code || '', selected: true })\n }\n />\n )}\n />\n );\n\n const eventTypeField = (\n <Controller\n name=\"eventType\"\n control={control}\n render={({ field }) => (\n <SingleSelectList\n {...field}\n label={eventType.label}\n placeholder={eventType.select}\n ariaLabel={eventType.ariaLabel}\n eyebrowText={eventType.label}\n options={eventTypeOptions}\n expandIconAriaLabel={`${eventType.label} ${eventType.expandIconAriaLabel}`}\n collapseIconAriaLabel={`${eventType.label} ${eventType.collapseIconAriaLabel}`}\n onChange={option => {\n setValue('eventType', { label: option.label, code: option.code || '', selected: true });\n setIsOtherEvent(option.code === 'Other');\n setValue('otherEventType', '');\n }}\n />\n )}\n />\n );\n\n const otherEventTypeField = (\n <Controller\n name=\"otherEventType\"\n control={control}\n rules={{ required: isOtherEvent }}\n render={({ field }) => (\n <TextFormField\n {...field}\n label={otherEventType.label}\n ariaLabel={otherEventType.ariaLabel}\n className=\"m-input-field\"\n disabled={!isOtherEvent}\n maxLength={otherEventType.maxLength}\n showErrorMessage={isOtherEvent && !!errors.otherEventType}\n errorMessage={otherEventType.requiredError}\n testId=\"other-event-type\"\n onChange={event => {\n field.onChange(event);\n clearErrors(field.name);\n }}\n />\n )}\n />\n );\n\n const guestRoomsField = (\n <Controller\n name=\"guestRooms\"\n control={control}\n rules={{\n validate: value =>\n validateGuestRooms(\n value,\n getValues('attendees'),\n guestRooms.requiredError || '',\n guestRooms.minCountError || ''\n ),\n }}\n render={({ field }) => (\n <TextFormField\n {...field}\n label={guestRooms.label}\n placeholder={guestRooms.placeholder}\n ariaLabel={guestRooms.ariaLabel}\n className=\"m-input-field\"\n showErrorMessage={!!errors.guestRooms}\n errorMessage={guestRooms.requiredError}\n onChange={event => {\n if (isValidNumeric(event.target.value)) {\n field.onChange(event);\n clearErrors(field.name);\n }\n }}\n />\n )}\n />\n );\n\n const attendeesField = (\n <Controller\n name=\"attendees\"\n control={control}\n rules={{\n validate: value => validateAttendees(value, getValues('guestRooms'), attendees.requiredError || ''),\n }}\n render={({ field }) => (\n <TextFormField\n {...field}\n label={attendees.label}\n placeholder={attendees.placeholder}\n ariaLabel={attendees.ariaLabel}\n className=\"m-input-field\"\n showHelperText={!!field.value && !showBudget}\n helperText={`${attendees.helperText}: ${Math.floor(+field.value * attendees.spaceMultiplier)}`}\n showErrorMessage={!!errors.attendees}\n errorMessage={attendees.requiredError}\n onChange={event => {\n if (isValidNumeric(event.target.value)) {\n field.onChange(event);\n clearErrors(field.name);\n }\n }}\n />\n )}\n />\n );\n\n const currencyField = (\n <Controller\n name=\"currency\"\n control={control}\n render={({ field }) => {\n return (\n <Dropdown\n name=\"currency\"\n label={currency?.label || ''}\n ariaLabel={currency?.ariaLabel}\n options={currencyOptions as DropdownOption<OptionType>[]}\n selectedValue={selectedCurrency}\n onChange={event => {\n field.onChange(event);\n setSelectedCurrency(event.label);\n }}\n />\n );\n }}\n />\n );\n\n const budgetField = (\n <Controller\n name=\"budget\"\n control={control}\n render={({ field }) => (\n <TextFormField\n {...field}\n label={budget?.label}\n ariaLabel={budget?.ariaLabel}\n placeholder={budget?.placeholder}\n className=\"m-input-field\"\n maxLength={budget?.maxLength}\n onChange={event => {\n if (!event.target.value || NUM_REGEX.test(event.target.value)) {\n field.onChange(event);\n }\n }}\n />\n )}\n />\n );\n\n return (\n <StyledEventInfo data-component-name=\"m-groups-EventInfo\" data-testid=\"groups-EventInfo\" className=\"row\">\n <div className=\"col-12 pb-5\">{eventNameField}</div>\n <div className=\"col-md-6 pb-5\">{isTablet ? datesField : mobileDatesField}</div>\n <div className=\"col-md-6 pb-5\">{flexibleDatesField}</div>\n <div className=\"col-md-6 pb-5\">{eventTypeField}</div>\n <div className=\"col-md-6 pb-5\">{otherEventTypeField}</div>\n <div className={clsx('col-md-6 pb-5', !showBudget && 'pb-md-0')}>{guestRoomsField}</div>\n <div className={clsx('col-md-6', showBudget && 'pb-5')}>{attendeesField}</div>\n {showBudget && (\n <>\n <div className=\"col-md-6 pb-5 pb-md-0\">{currencyField}</div>\n <div className=\"col-md-6\">{budgetField}</div>\n </>\n )}\n </StyledEventInfo>\n );\n};\n","import styled from 'styled-components';\nimport { baseVariables, toRem } from '@marriott/mi-ui-library';\n\nconst { border, color, font, spacers } = baseVariables;\n\nexport const StyledTextAreaFormField = styled.div`\n textarea {\n border: ${border.borderWidth02} ${border.borderStyleDefault} ${color.neutral40};\n border-radius: ${border.borderRadius02};\n font-size: ${font.fontM};\n line-height: ${font.lineHeightXl};\n min-height: ${toRem(160)};\n padding: ${spacers.spacer};\n width: 100%;\n\n ::placeholder {\n font-size: ${font.fontM};\n line-height: ${font.lineHeightXl};\n margin: ${spacers.spacer};\n }\n\n :focus {\n border-color: ${color.base10};\n }\n }\n\n &.is-error {\n textarea {\n border-color: ${color.alert50};\n }\n .error-text {\n color: ${color.alert50};\n display: flex;\n line-height: 1;\n }\n }\n\n &.disable-resize {\n textarea {\n resize: none;\n }\n }\n`;\n","import * as React from 'react';\nimport clsx from 'clsx';\nimport { TextAreaFormFieldProps } from './TextAreaFormField.types';\nimport { StyledTextAreaFormField } from './TextAreaFormField.styles';\n\nexport const TextAreaFormField = React.forwardRef<HTMLTextAreaElement, TextAreaFormFieldProps>(\n (\n {\n ariaLabel,\n className,\n custom_click_track_value,\n disabled,\n errorMessage,\n maxLength,\n placeholder,\n resizeable = true,\n showErrorMessage,\n testId,\n value,\n ...rest\n },\n ref\n ) => {\n const inputId = React.useId();\n return (\n <StyledTextAreaFormField\n className={clsx(\n className,\n custom_click_track_value && 'custom_click_track',\n showErrorMessage && 'is-error',\n !resizeable || disabled ? 'disable-resize' : ''\n )}\n data-component-name=\"m-groups-TextAreaFormField\"\n data-testid={testId}\n data-custom_click_track_value={custom_click_track_value}\n >\n <textarea\n aria-label={ariaLabel}\n disabled={disabled}\n id={inputId}\n maxLength={maxLength}\n placeholder={placeholder || ''}\n value={value}\n role=\"textbox\"\n ref={ref}\n data-testid={`${testId}-textarea`}\n {...rest}\n ></textarea>\n {showErrorMessage && <span className={clsx('error-text t-font-xs')}>{errorMessage}</span>}\n </StyledTextAreaFormField>\n );\n }\n);\n","import { EventSummary } from './EventSummaryModal/EventSummaryModal.types';\n\nexport type RfpHeaderProps = {\n pageTitle: string;\n eventProfile: string;\n eventDetails: string;\n contactInformation: string;\n viewEventSummary: string;\n currentPageNo: string;\n currentStep: string;\n eventSummary: EventSummary;\n styleclass: string;\n};\n\nexport enum RfpPageIdentifier {\n EVENT_PROFILE = 'event-profile',\n EVENT_DETAILS = 'event-details',\n EVENT_CONTACT = 'event-contact',\n}\n","import { StateCreator } from 'zustand';\nimport { createAppStore } from '@marriott/mi-store-utils';\nimport { SubmitRfpResponse, AddressType } from '@marriott/mi-groups-graphql';\nimport { EventProfileFormData } from '../organisms/EventProfile/EventProfile.types';\nimport { EventDetailsFormData } from '../organisms/EventDetails/EventDetails.types';\nimport { ContactInfoFormData } from '../organisms/ContactInfo/ContactInfo.types';\nimport { IntlRfpFormData } from '../organisms/IntlRfpEventInfo/IntlRfpEventInfo.types';\nimport { RfpSessionInput } from '../organisms/RfpTray/RfpTray.types';\nimport { RfpPageIdentifier } from '../organisms/RfpHeader/RfpHeader.types';\n\ntype RfpState = {\n eventProfileData: EventProfileFormData;\n eventDetailsData: EventDetailsFormData;\n eventSpaceConfigurationMap: Record<string, string>;\n contactInfoData: ContactInfoFormData;\n isCustomerInfoFetched: boolean;\n eventInfoData: IntlRfpFormData;\n rfpData: SubmitRfpResponse;\n rfpSessionData: RfpSessionInput;\n pageVisited: {\n [RfpPageIdentifier.EVENT_PROFILE]: boolean;\n [RfpPageIdentifier.EVENT_DETAILS]: boolean;\n [RfpPageIdentifier.EVENT_CONTACT]: boolean;\n };\n};\n\ntype RfpActions = {\n setEventProfileData: (data: EventProfileFormData) => void;\n setEventDetailsData: (data: EventDetailsFormData) => void;\n setEventSpaceConfigurationMap: (data: Record<string, string>) => void;\n getEventSpaceConfiguration: (key: string) => string;\n setContactInfoData: (data: ContactInfoFormData) => void;\n setIsCustomerInfoFetched: (fetched: boolean) => void;\n setEventInfoData: (data: IntlRfpFormData) => void;\n setRfpData: (data: SubmitRfpResponse) => void;\n setRfpSessionData: (data: RfpSessionInput) => void;\n setPageVisited: (pageIdentifier: RfpPageIdentifier, visited: boolean) => void;\n};\n\nconst eventProfileInitialData = {\n eventName: '',\n dates: '',\n startDate: '',\n endDate: '',\n flexibleDates: { code: '', label: '', selected: true },\n eventType: { code: '', label: '', selected: true },\n otherEventType: '',\n guestRooms: '',\n attendees: '',\n files: [],\n};\n\nconst contactInfoInitialData = {\n userInfo: {\n firstName: '',\n lastName: '',\n email: '',\n callingCode: {\n code: '',\n label: '',\n description: '',\n value: '',\n shortDescription: '',\n },\n phoneNumber: '',\n rewardId: '',\n },\n addressInfo: {\n addressType: AddressType.NONE,\n companyName: '',\n addressLine1: '',\n addressLine2: '',\n country: {\n code: '',\n label: '',\n description: '',\n value: '',\n },\n city: '',\n state: '',\n zipcode: '',\n },\n additionalInfo: '',\n};\n\nconst initialState: RfpState = {\n eventProfileData: eventProfileInitialData,\n eventDetailsData: {\n days: [],\n eventSpaces: [],\n },\n eventSpaceConfigurationMap: {},\n contactInfoData: {\n ...contactInfoInitialData,\n inlineEnrolment: {\n joinMarriottBonvoy: false,\n createPassword: '',\n confirmPassword: '',\n rememberMe: false,\n receiveUpdates: false,\n receiveOffers: false,\n },\n gsoInfo: {\n name: '',\n email: '',\n },\n },\n isCustomerInfoFetched: false,\n eventInfoData: {\n ...eventProfileInitialData,\n currency: {\n label: '',\n code: '',\n selected: false,\n },\n budget: '',\n ...contactInfoInitialData,\n },\n rfpData: { rfpId: '', rewardsId: '', enrollmentStatus: null },\n rfpSessionData: {\n AriesGroupSearch: {\n groupPropertyRecordsCount: 0,\n groupSearchCriteria: {\n address: {\n latitude: '',\n longitude: '',\n destination: '',\n destinationAddressMainText: '',\n city: '',\n stateProvince: '',\n country: '',\n },\n checkInDate: '',\n checkOutDate: '',\n isFlexibleDate: '',\n eventSearchType: '',\n guestRoomCount: 0,\n sizeLargestMeetingRoom: 0,\n roomsOnlySelected: false,\n },\n isGroupSearch: false,\n isQuickGroupEnabled: false,\n rfpShortlistedMarshaCodes: {},\n localeForERFP: '',\n },\n },\n pageVisited: {\n [RfpPageIdentifier.EVENT_PROFILE]: false,\n [RfpPageIdentifier.EVENT_DETAILS]: false,\n [RfpPageIdentifier.EVENT_CONTACT]: false,\n },\n};\n\nexport const RfpStore: StateCreator<RfpState & RfpActions> = (set, get) => {\n return {\n ...initialState,\n\n setEventProfileData: (data: EventProfileFormData) => {\n set({ eventProfileData: { ...data } });\n },\n\n setEventDetailsData: (data: EventDetailsFormData) => {\n set({ eventDetailsData: { ...data } });\n },\n\n setEventSpaceConfigurationMap: (data: Record<string, string>) => {\n set({ eventSpaceConfigurationMap: data });\n },\n\n getEventSpaceConfiguration: (key: string) => {\n const { eventSpaceConfigurationMap } = get();\n return eventSpaceConfigurationMap[key] || '';\n },\n\n setContactInfoData: (data: ContactInfoFormData) => {\n set({ contactInfoData: { ...data } });\n },\n\n setIsCustomerInfoFetched: (fetched: boolean) => {\n set({ isCustomerInfoFetched: fetched });\n },\n\n setEventInfoData: (data: IntlRfpFormData) => {\n set({ eventInfoData: { ...data } });\n },\n\n setRfpData: (data: SubmitRfpResponse) => {\n set({ rfpData: { ...data } });\n },\n\n setRfpSessionData: (sessionData: RfpSessionInput) => {\n set({ rfpSessionData: { ...sessionData } });\n },\n\n setPageVisited: (pageIdentifier: RfpPageIdentifier, visited: boolean) => {\n const { pageVisited } = get();\n set({ pageVisited: { ...pageVisited, [pageIdentifier]: visited } });\n },\n };\n};\n\nexport const useRfpStore = createAppStore(RfpStore);\n"],"names":["FileErrorType","FileUpload","ctaLabel","ctaClass","disabled","allowedFileTypes","maxSize","onFileSelected","onError","fileInputRef","useRef","inputId","useId","validateFile","file","size","SIZE_ERROR","fileType","name","split","pop","includes","toLowerCase","FORMAT_ERROR","div","data-component-name","data-testid","label","htmlFor","className","input","id","type","ref","accept","join","onChange","handleFileChange","e","target","files","NO_ERROR","onClick","event","value","Button","buttonCopy","clsx","isDisabled","callback","handleFileUpload","current","click","color","mediaQuery","baseVariables","StyledAttachments","styled","toRem","neutral40","md","lg","props","eventProfileData","errorMessage","labels","control","useRfpStore","initialTotalFileUploadSize","reduce","total","fileDetail","totalFileUploadSize","setTotalFileUploadSize","useState","uploadFileLoader","setUploadFileLoader","deleteFileLoader","setDeleteFileLoader","fileError","setFileError","fileSizeError","fileFormatError","UPLOAD_VIRUS_ERROR","virusApiError","UPLOAD_FILE_ERROR","apiError","removeApiError","fields","append","remove","useFieldArray","result","errors","response","uploadFile","ok","errorResponse","json","key","data","documentId","description","prevTotalFileUploadSize","error","status","errorCode","code","ERROR_CODES","HTTP","UNPROCESSABLE_ENTITY","IMAGE_UPLOAD","SIZE","FORMAT","VIRUS","handleFileDeletion","index","stopPropagation","deleteFile","fileDetails","deleted","DELETE_FILE_ERROR","InlineMessages","InlineMessagesType","Error","title","severity","p","attachmentsHelperText","acceptedFileFormat","maxFileSize","addAttachment","length","RFP_UPLOAD_MAX_FILES","RFP_UPLOAD_ALLOWED_FILE_TYPES","RFP_UPLOAD_MAX_SIZE","errorType","convertFileSize","fileName","fileSize","map","field","Accordion","isOpen","enableFullWidthHeader","disableAccResize","headerChildren","ariaLabel","removeAriaLabel","testId","headerAriaLabel","Controller","render","TextAreaFormField","placeholder","fileDetailsPlaceholder","maxLength","shadows","StyledDatePickerMobileContainer","base20","base10","boxShadowTile","DatePickerMobileContainer","dates","startDate","endDate","isDateRangeFixed","rangeStartDate","rangeEndDate","setDefaultDates","showErrorMessage","isPastDateSelectionDisabled","enableFromPastDate","onClose","shortWeekdayNames","longWeekdayNames","shortMonthNames","longMonthNames","defaultStartDate","getCurrentDateObject","defaultEndDate","getNextDateObject","initialStartDate","initialEndDate","isTabletAndAbove","useMediaQuery","datePickerContainerRef","prevDateValueRef","setIsOpen","dateObject","setDateObject","datesLabel","useEffect","setCalendarOptions","getFormattedDates","moment","getFormattedDate","getDatesLabel","night","nights","useFocusOut","onFocusOut","isFocusOut","handleCancel","handleClick","handleKeyup","updateEndDate","startDateObject","getFormattedDateObject","isStartDateLastDayInRange","isSame","selectedStartDate","getPrevDateObject","selectedEndDate","formattedDates","prevDate","TextFormField","onFocus","handleFocus","relatedTarget","onKeyDown","handleKeydown","ENTER_KEY","preventDefault","cancel","cancelAriaLabel","DatePickerMobile","showFlexibleDates","done","doneAriaLabel","handleDone","StyledEventInfo","flexibleDateOptions","eventTypeOptions","isOtherEvent","setIsOtherEvent","showBudget","getValues","setValue","clearErrors","eventName","flexibleDates","eventType","otherEventType","guestRooms","attendees","currency","budget","currencyOptions","options","item","isTablet","locale","useLocaleStore","selectedCurrency","setSelectedCurrency","defaultCurrencyCode","LOCALE_MAP","DEFAULT_LANG","currencyCode","find","option","handleDatesChange","eventNameField","rules","required","Boolean","requiredError","datesField","validate","isToday","currentDateError","undefined","DatePickerDesktop","align","message","mobileDatesField","flexibleDatesField","SingleSelectList","select","eyebrowText","expandIconAriaLabel","collapseIconAriaLabel","selected","eventTypeField","otherEventTypeField","guestRoomsField","validateGuestRooms","minCountError","isValidNumeric","attendeesField","validateAttendees","showHelperText","helperText","Math","floor","spaceMultiplier","currencyField","Dropdown","selectedValue","budgetField","NUM_REGEX","test","border","font","spacers","StyledTextAreaFormField","borderWidth02","borderStyleDefault","borderRadius02","fontM","lineHeightXl","spacer","alert50","React","custom_click_track_value","resizeable","rest","data-custom_click_track_value","textarea","aria-label","role","span","RfpPageIdentifier","eventProfileInitialData","contactInfoInitialData","userInfo","firstName","lastName","email","callingCode","shortDescription","phoneNumber","rewardId","addressInfo","addressType","AddressType","NONE","companyName","addressLine1","addressLine2","country","city","state","zipcode","additionalInfo","initialState","eventDetailsData","days","eventSpaces","eventSpaceConfigurationMap","contactInfoData","inlineEnrolment","joinMarriottBonvoy","createPassword","confirmPassword","rememberMe","receiveUpdates","receiveOffers","gsoInfo","isCustomerInfoFetched","eventInfoData","rfpData","rfpId","rewardsId","enrollmentStatus","rfpSessionData","AriesGroupSearch","groupPropertyRecordsCount","groupSearchCriteria","address","latitude","longitude","destination","destinationAddressMainText","stateProvince","checkInDate","checkOutDate","isFlexibleDate","eventSearchType","guestRoomCount","sizeLargestMeetingRoom","roomsOnlySelected","isGroupSearch","isQuickGroupEnabled","rfpShortlistedMarshaCodes","localeForERFP","pageVisited","EVENT_PROFILE","EVENT_DETAILS","EVENT_CONTACT","createAppStore","set","get","setEventProfileData","setEventDetailsData","setEventSpaceConfigurationMap","getEventSpaceConfiguration","setContactInfoData","setIsCustomerInfoFetched","fetched","setEventInfoData","setRfpData","setRfpSessionData","sessionData","setPageVisited","pageIdentifier","visited"],"sourceRoot":"","ignoreList":[]}