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tC1M,UAAW0C,EAAU1C,SAAS,CAC9BD,UAAWQ,CAAAA,EAAAA,EAAAA,CAAAA,CAAIA,CAAC,yCAA0CiJ,IAAW,mBACrEmD,WAAYnD,YAEX9G,EAAUsD,KAAK,gBASlC,EAAE,kCC9TK,SAASgF,EACd4B,CAAgB,CAChBC,CAAoB,CACpBjJ,CAAiB,MACjBF,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAS,GACT+G,EAAAA,UAAAA,MAAAA,CAAAA,GAAAA,KAAAA,IAAAA,SAAAA,CAAAA,EAAAA,CAAAA,SAAAA,CAAAA,EAAAA,CAAc,GAERqC,EAAiC,KAAhBrC,EAAqB,GAAcA,MAAAA,CAAXmC,EAAQ,KAAe,OAAZnC,GAAgBmC,EACpEG,EAA6B,KAAXrJ,EAAgB,GAAcE,MAAAA,CAAXF,EAAO,MAAc,OAAVE,GAAcA,EACpE,MAAO,GAAqBiJ,MAAAA,CAAlBC,EAAe,KAAiBC,MAAAA,CAAdF,EAAU,MAAoB,OAAhBE,EAC5C","sources":["webpack://_N_E/../../libs/mi-groups-components/src/molecules/AdditionalInfo/AdditionalInfo.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/molecules/AdditionalInfo/AdditionalInfo.tsx","webpack://_N_E/../../libs/mi-groups-components/src/organisms/ContactInfo/ContactInfo.transformer.ts","webpack://_N_E/../../libs/mi-groups-components/src/organisms/IntlRfpEventInfo/IntlRfpEventInfo.styles.tsx","webpack://_N_E/../../libs/mi-groups-components/src/organisms/IntlRfpEventInfo/IntlRfpEventInfo.tsx","webpack://_N_E/../../libs/mi-groups-components/src/utils/header.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { toRem } from '@marriott/mi-ui-library';\n\nexport const StyledAdditionalInfo = styled.div`\n  .title {\n    padding-bottom: ${toRem(40)};\n  }\n`;\n","import React, { FC } from 'react';\nimport { clsx } from 'clsx';\nimport { Controller } from 'react-hook-form';\nimport { AdditionalInfoProps } from './AdditionalInfo.types';\nimport { StyledAdditionalInfo } from './AdditionalInfo.styles';\nimport { TextAreaFormField } from '../TextAreaFormField';\n\nexport const AdditionalInfo: FC<AdditionalInfoProps> = props => {\n  const { labels, control, customClass } = props;\n\n  const additionalInfoField = (\n    <Controller\n      name=\"additionalInfo\"\n      control={control}\n      render={({ field }) => (\n        <TextAreaFormField\n          {...field}\n          placeholder={labels.placeholder}\n          maxLength={labels.maxLength}\n          resizeable={false}\n          className=\"col-12 col-lg-8\"\n          ariaLabel={labels.title}\n          testId=\"additional-info\"\n          onChange={event => {\n            field.onChange(event);\n          }}\n        />\n      )}\n    />\n  );\n\n  return (\n    <StyledAdditionalInfo data-component-name=\"m-groups-AdditionalInfo\" data-testid=\"groups-AdditionalInfo\">\n      <div className={clsx('t-subtitle-l', customClass || 'title')}>{labels.title}</div>\n      <div className=\"row\">{additionalInfoField}</div>\n    </StyledAdditionalInfo>\n  );\n};\n","import { submitRfpMutation, submitRfpDttMutation, SubmitRfpResponse } from '@marriott/mi-groups-graphql';\nimport { useMutationTransformer } from '../../hooks';\n\ntype SubmitRfp = { groupsSubmitRfp: SubmitRfpResponse };\n\ntype SubmitRfpDtt = {\n  sales: {\n    groupSales: {\n      createRfp: SubmitRfpResponse;\n    };\n  };\n};\n\nexport const useSubmitRfp = () => {\n  return useMutationTransformer<SubmitRfp, SubmitRfpDtt>({\n    currentMutation: submitRfpMutation,\n    dttMutation: submitRfpDttMutation,\n    onTransform: data => {\n      return {\n        sales: {\n          groupSales: {\n            createRfp: data.groupsSubmitRfp,\n          },\n        },\n      };\n    },\n  });\n};\n","import styled from 'styled-components';\nimport { baseVariables, toRem } from '@marriott/mi-ui-library';\n\nconst { color, border, mediaQuery } = baseVariables;\n\nexport const StyledIntlRfpEventInfo = styled.div`\n  background-color: ${color.neutral10};\n`;\n\nexport const StyledIntlRfpEventInfoForm = styled.div`\n  padding: ${toRem(40)} ${toRem(16)};\n  border: ${toRem(1)} ${border.borderStyleDefault} ${color.neutral20};\n  background-color: ${color.base20};\n  box-shadow: 0 0 ${toRem(8)} 0 rgba(0, 0, 0, 0.07);\n\n  .event-info-title {\n    padding-bottom: ${toRem(40)};\n  }\n\n  @media ${mediaQuery.md} {\n    padding: ${toRem(40)} ${toRem(60)};\n    border-radius: ${toRem(12)};\n  }\n\n  @media ${mediaQuery.lg} {\n    padding: ${toRem(40)} ${toRem(94)};\n  }\n`;\n\nexport const StyledDivider = styled.div`\n  margin: ${toRem(40)} 0;\n  border-top: ${toRem(1)} solid ${color.neutral30};\n  &.user-address-info-divider {\n    margin: ${toRem(8)} 0 ${toRem(40)};\n  }\n`;\n\nexport const StyledCtaContainer = styled.div`\n  display: flex;\n  justify-content: center;\n  margin: ${toRem(32)} 0;\n\n  .submit-cta {\n    width: 90%;\n  }\n\n  @media ${mediaQuery.md} {\n    justify-content: flex-end;\n\n    .submit-cta {\n      width: auto;\n    }\n  }\n`;\n","import React, { FC, useState, useEffect } from 'react';\nimport clsx from 'clsx';\nimport { useForm } from 'react-hook-form';\nimport { useRouter } from 'next/router';\nimport { EditableComponent } from '@adobe/aem-react-editable-components';\nimport { Button, InlineMessages, InlineMessagesType, Types } from '@marriott/mi-ui-library';\nimport { AddressType } from '@marriott/mi-groups-graphql';\nimport { UserInfo, AddressInfo, AdditionalInfo, EventInfo, Attachments } from '../../molecules';\nimport { OptionType } from '../../molecules/EventInfo/EventInfo.types';\nimport { useCustomerInfo } from '../../hooks';\nimport {\n  createCustomXRequestId,\n  getSession,\n  prepopulateSearchCriteria,\n  getSubmitIntlRfpInput,\n  getFormattedCalendarDate,\n  getQueryParams,\n  updateDataLayerWithRFPAttributes,\n} from '../../utils';\nimport { useLocaleStore, useHeaderFieldsStore, useRfpStore, useRfpTrayStore } from '../../store';\nimport { CustomDomContentLoaded } from '../../components/CustomDomContentLoaded/CustomDomContentLoaded';\nimport {\n  StyledIntlRfpEventInfo,\n  StyledIntlRfpEventInfoForm,\n  StyledDivider,\n  StyledCtaContainer,\n} from './IntlRfpEventInfo.styles';\nimport { RfpSessionData } from '../EventProfile/EventProfile.types';\nimport { IntlRfpFormData, IntlRfpEventInfoProps } from './IntlRfpEventInfo.types';\nimport { useSubmitRfp } from '../ContactInfo/ContactInfo.transformer';\nimport { RFP_SIEBEL_ERROR_CODE, RFP_SVC_SIEBEL, RFP_SVC_HENRY } from '../../constants';\n\nexport const IntlRfpEventInfoConfig = {\n  emptyLabel: 'IntlRfpEventInfo',\n  isEmpty: () => true,\n  resourceType: `${process.env['NEXT_PUBLIC_AEM_SITE']}/components/content/rfp/eventinfo`,\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const IntlRfpEventInfo: FC<{ model: IntlRfpEventInfoProps }> = (props: any) => {\n  const {\n    eventProfile,\n    userInfo,\n    userAddress,\n    additionalInfo,\n    submitCta,\n    rfpConfirmationUrl,\n    propertiesNotFoundError,\n    siebelError,\n    apiError,\n  } = props.model;\n  const { eventProfileLabel, eventType, flexibleDates, attachments } = eventProfile;\n\n  const defaultFlexibleDatesOption = flexibleDates.options.filter((option: OptionType) => option.selected === true);\n\n  const router = useRouter();\n\n  const { locale } = useLocaleStore();\n  const { requestId, api } = useHeaderFieldsStore();\n  const { setEventInfoData, setRfpData, setRfpSessionData } = useRfpStore();\n  const { properties, setPropertyIds } = useRfpTrayStore();\n\n  const [loader, setLoader] = useState(true);\n  const [flexibleDateOptions, setFlexibleDateOptions] = useState(flexibleDates.options);\n  const [eventTypeOptions, setEventTypeOptions] = useState(eventType.options);\n  const [isOtherEvent, setIsOtherEvent] = useState<boolean>(false);\n  const [error, setError] = useState<string>();\n\n  const { customerInfo } = useCustomerInfo();\n\n  const {\n    control,\n    getValues,\n    setValue,\n    resetField,\n    clearErrors,\n    handleSubmit,\n    formState: { errors },\n  } = useForm<IntlRfpFormData>({\n    defaultValues: {\n      eventName: '',\n      dates: '',\n      startDate: '',\n      endDate: '',\n      flexibleDates: {\n        label: defaultFlexibleDatesOption[0]?.label,\n        code: defaultFlexibleDatesOption[0]?.code,\n        selected: defaultFlexibleDatesOption[0]?.selected,\n      },\n      eventType: {\n        label: '',\n        code: '',\n        selected: false,\n      },\n      otherEventType: '',\n      guestRooms: '',\n      attendees: '',\n      currency: {\n        label: '',\n        code: '',\n        selected: false,\n      },\n      budget: '',\n      files: [],\n      userInfo: {\n        firstName: '',\n        lastName: '',\n        email: '',\n        callingCode: {\n          label: '',\n          value: '',\n          code: '',\n          description: '',\n          shortDescription: '',\n        },\n        phoneNumber: '',\n        rewardId: '',\n      },\n      addressInfo: {\n        addressType: AddressType.BUSINESS,\n        companyName: '',\n        addressLine1: '',\n        addressLine2: '',\n        country: {\n          label: '',\n          value: '',\n          code: '',\n          description: '',\n        },\n        city: '',\n        state: '',\n        zipcode: '',\n      },\n      additionalInfo: '',\n    },\n    reValidateMode: 'onSubmit',\n  });\n\n  useEffect(() => {\n    if (customerInfo?.userInfo) {\n      setValue('userInfo.firstName', customerInfo.userInfo.firstName);\n      setValue('userInfo.lastName', customerInfo.userInfo.lastName);\n      setValue('userInfo.email', customerInfo.userInfo.email);\n      setValue('userInfo.rewardId', customerInfo.userInfo.rewardId);\n      setValue('userInfo.phoneNumber', customerInfo.userInfo.phoneNumber);\n      customerInfo.userInfo.callingCode.description &&\n        setValue('userInfo.callingCode', customerInfo.userInfo.callingCode);\n    }\n    customerInfo?.addressInfo && resetField('addressInfo', { defaultValue: customerInfo.addressInfo });\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, [customerInfo]);\n\n  useEffect(() => {\n    fetchSession();\n    // eslint-disable-next-line react-hooks/exhaustive-deps\n  }, []);\n\n  const fetchSession = async () => {\n    try {\n      const { sessionData } = (await getSession()) as RfpSessionData;\n      const groupSearchData = sessionData?.cacheData?.data;\n\n      const marshaCodesFromQueryparams = getQueryParams(window.location.search)?.['marshaCode'];\n      const queryParamsPropertyIds = marshaCodesFromQueryparams?.toUpperCase().split(',');\n\n      if (groupSearchData) {\n        const ariesGroupSearch = groupSearchData.AriesGroupSearch;\n        const propertyIds = ariesGroupSearch?.rfpShortlistedMarshaCodes\n          ? Object.keys(ariesGroupSearch?.rfpShortlistedMarshaCodes)\n          : [];\n        const hasPropertyIdUpdates =\n          queryParamsPropertyIds.length === 1 &&\n          (propertyIds.length > 1 || (propertyIds.length === 1 && propertyIds[0] !== queryParamsPropertyIds[0]));\n\n        if (!ariesGroupSearch || !propertyIds.length || hasPropertyIdUpdates) {\n          setPropertyIds(queryParamsPropertyIds);\n          // @ts-expect-error AriesGroupSearch requires all mandatory fields; only assigning rfpShortlistedMarshaCodes here.\n          groupSearchData.AriesGroupSearch = {\n            rfpShortlistedMarshaCodes: { [queryParamsPropertyIds[0]]: '' },\n          };\n        } else {\n          setPropertyIds(propertyIds);\n          prepopulateSearchCriteria(\n            groupSearchData,\n            flexibleDateOptions,\n            eventTypeOptions,\n            setFlexibleDateOptions,\n            setEventTypeOptions,\n            setValue\n          );\n        }\n\n        setRfpSessionData(groupSearchData);\n        updateDataLayerWithRFPAttributes(groupSearchData);\n      }\n    } catch (error) {\n      console.error(error);\n    } finally {\n      setLoader(false);\n    }\n  };\n\n  const [submitRfp, { loading }] = useSubmitRfp();\n\n  const submitRfpCallback = (data: IntlRfpFormData) => {\n    if (!properties || !properties.length) {\n      setError(propertiesNotFoundError);\n      window.scrollTo(0, 0);\n      return;\n    }\n\n    setError(undefined);\n\n    const startDate = getFormattedCalendarDate(data.startDate, 'hyphenatedDateWithMonthNoAndYear');\n    const endDate = getFormattedCalendarDate(data.endDate, 'hyphenatedDateWithMonthNoAndYear');\n    data.startDate = startDate;\n    data.endDate = endDate;\n\n    setEventInfoData({ ...getValues(), startDate, endDate });\n\n    const intlRfpInput = getSubmitIntlRfpInput(properties, data, locale);\n    const extraPrefix = api === 'false' ? RFP_SVC_HENRY : RFP_SVC_SIEBEL;\n    submitRfp({\n      variables: { input: intlRfpInput },\n      context: {\n        headers: {\n          'accept-language': locale,\n          'x-request-id': createCustomXRequestId('rfp_intl', 'create', requestId, locale, extraPrefix),\n          ...(api && { ecoServiceFlag: api }),\n        },\n      },\n      fetchPolicy: 'no-cache',\n      onCompleted: response => {\n        const rfpData = response.sales.groupSales.createRfp;\n        const { rfpId, messages } = rfpData || {};\n        if (rfpId) {\n          setRfpData({ rfpId });\n          router.push(rfpConfirmationUrl);\n        } else {\n          setError(messages?.[0].user?.id === RFP_SIEBEL_ERROR_CODE ? siebelError : apiError);\n          window.scrollTo(0, 0);\n        }\n      },\n      onError: () => {\n        setError(apiError);\n        window.scrollTo(0, 0);\n      },\n    });\n  };\n\n  if (loader) {\n    return <div className=\"m-spinner-m d-block mx-auto my-4\" />;\n  }\n\n  return (\n    <EditableComponent config={IntlRfpEventInfoConfig} {...props}>\n      <CustomDomContentLoaded>\n        <StyledIntlRfpEventInfo\n          data-testid=\"eventinfo\"\n          data-component-name=\"o-groups-eventinfo\"\n          className=\"fullbleed m-container-fullbleed\"\n        >\n          <div className=\"container pb-3 px-0\">\n            {error ? (\n              <div className=\"mb-4\">\n                <InlineMessages type={InlineMessagesType.Error} title={error} severity=\"1\" />\n              </div>\n            ) : null}\n            <form onSubmit={handleSubmit(submitRfpCallback)}>\n              <StyledIntlRfpEventInfoForm>\n                <div className=\"t-subtitle-l event-info-title\">{eventProfileLabel}</div>\n                <EventInfo\n                  labels={eventProfile}\n                  flexibleDateOptions={flexibleDateOptions}\n                  eventTypeOptions={eventTypeOptions}\n                  isOtherEvent={isOtherEvent}\n                  setIsOtherEvent={setIsOtherEvent}\n                  showBudget={true}\n                  control={control}\n                  setValue={setValue}\n                  getValues={getValues}\n                  errors={errors}\n                  clearErrors={clearErrors}\n                />\n                <StyledDivider />\n                <div className=\"t-subtitle-l pb-3\">{attachments.label}</div>\n                <Attachments labels={attachments} control={control} />\n                <StyledDivider />\n                <UserInfo\n                  labels={userInfo}\n                  customerCallingCountry={customerInfo?.userInfo.callingCode.shortDescription}\n                  control={control}\n                  setValue={setValue}\n                  errors={errors}\n                  clearErrors={clearErrors}\n                />\n                <StyledDivider className=\"user-address-info-divider\" />\n                <AddressInfo\n                  labels={userAddress}\n                  customerAddressType={customerInfo?.addressInfo.addressType}\n                  customerCountry={customerInfo?.addressInfo.country.value}\n                  customerState={customerInfo?.addressInfo.state}\n                  control={control}\n                  setValue={setValue}\n                  errors={errors}\n                  clearErrors={clearErrors}\n                />\n                <StyledDivider />\n                <AdditionalInfo labels={additionalInfo} control={control} />\n              </StyledIntlRfpEventInfoForm>\n              <StyledCtaContainer>\n                <Button\n                  type={Types.ButtonTypeVariation.Submit}\n                  ariaLabel={submitCta.ariaLabel}\n                  className={clsx('m-button-primary m-button-m submit-cta', loading && 'skeleton-loader')}\n                  isDisabled={loading}\n                >\n                  {submitCta.label}\n                </Button>\n              </StyledCtaContainer>\n            </form>\n          </div>\n        </StyledIntlRfpEventInfo>\n      </CustomDomContentLoaded>\n    </EditableComponent>\n  );\n};\n","export type Product = 'rfp' | 'rfp_intl' | 'reslink_GRP' | 'reslink_CORP' | 'quick_group';\n\nexport type Operation = 'create' | 'modify' | 'inquiry' | 'submission';\n\n/*This function will provide information such as the product, operation, locale, \nrequest ID, and additional prefixes like 'siebel' or 'henry' for the x-request-id. \nThis information will be included in the request header, allowing the backend\n to use it for creating the Dynatrace dashboard */\nexport function createCustomXRequestId(\n  product: Product,\n  operation: Operation,\n  requestId: string,\n  locale = '',\n  extraPrefix = ''\n) {\n  const prodIdentifier = extraPrefix !== '' ? `${product}_${extraPrefix}` : product;\n  const localeRequestId = locale !== '' ? `${locale}__${requestId}` : requestId;\n  return `${prodIdentifier}_${operation}__${localeRequestId}`;\n}\n"],"names":["StyledAdditionalInfo","styled","div","toRem","AdditionalInfo","props","labels","control","customClass","additionalInfoField","Controller","name","render","field","TextAreaFormField","placeholder","maxLength","resizeable","className","ariaLabel","title","testId","onChange","event","data-component-name","data-testid","clsx","useSubmitRfp","useMutationTransformer","currentMutation","submitRfpMutation","dttMutation","submitRfpDttMutation","onTransform","data","sales","groupSales","createRfp","groupsSubmitRfp","color","border","mediaQuery","baseVariables","StyledIntlRfpEventInfo","neutral10","borderStyleDefault","neutral20","base20","md","lg","neutral30","IntlRfpEventInfoConfig","emptyLabel","isEmpty","resourceType","process","defaultFlexibleDatesOption","eventProfile","userInfo","userAddress","additionalInfo","submitCta","rfpConfirmationUrl","propertiesNotFoundError","siebelError","apiError","model","eventProfileLabel","eventType","flexibleDates","attachments","options","filter","option","selected","router","useRouter","locale","useLocaleStore","requestId","api","useHeaderFieldsStore","setEventInfoData","setRfpData","setRfpSessionData","useRfpStore","properties","setPropertyIds","useRfpTrayStore","loader","setLoader","useState","flexibleDateOptions","setFlexibleDateOptions","eventTypeOptions","setEventTypeOptions","isOtherEvent","setIsOtherEvent","error","setError","customerInfo","useCustomerInfo","getValues","setValue","resetField","clearErrors","handleSubmit","formState","errors","useForm","defaultValues","eventName","dates","startDate","endDate","label","code","otherEventType","guestRooms","attendees","currency","budget","files","firstName","lastName","email","callingCode","value","description","shortDescription","phoneNumber","rewardId","addressInfo","addressType","AddressType","BUSINESS","companyName","addressLine1","addressLine2","country","city","state","zipcode","reValidateMode","useEffect","defaultValue","fetchSession","sessionData","getQueryParams","getSession","groupSearchData","cacheData","marshaCodesFromQueryparams","window","location","search","queryParamsPropertyIds","toUpperCase","split","ariesGroupSearch","AriesGroupSearch","propertyIds","rfpShortlistedMarshaCodes","Object","keys","hasPropertyIdUpdates","length","prepopulateSearchCriteria","updateDataLayerWithRFPAttributes","console","submitRfp","loading","EditableComponent","config","CustomDomContentLoaded","InlineMessages","type","InlineMessagesType","Error","severity","form","onSubmit","submitRfpCallback","scrollTo","undefined","getFormattedCalendarDate","intlRfpInput","getSubmitIntlRfpInput","extraPrefix","RFP_SVC_HENRY","RFP_SVC_SIEBEL","variables","input","context","headers","createCustomXRequestId","ecoServiceFlag","fetchPolicy","onCompleted","response","rfpId","messages","push","user","id","RFP_SIEBEL_ERROR_CODE","onError","StyledIntlRfpEventInfoForm","EventInfo","showBudget","StyledDivider","Attachments","UserInfo","customerCallingCountry","AddressInfo","customerAddressType","customerCountry","customerState","StyledCtaContainer","Button","Types","Submit","isDisabled","product","operation","prodIdentifier","localeRequestId"],"sourceRoot":"","ignoreList":[]}