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eACA,WAdA,YAeA,CAAC,EAAE","sources":["webpack://_N_E/./components/Headline/Headline.tsx","webpack://_N_E/./components/ProgressTracker/ProgressTracker.tsx","webpack://_N_E/./components/DsrForm/DsrForm.tsx","webpack://_N_E/./components/PersonalDataRequestForm/CaliforniaPartialForm.tsx","webpack://_N_E/./components/PersonalDataRequestForm/NevadaPartialForm.tsx","webpack://_N_E/./components/PersonalDataRequestForm/USForm.tsx","webpack://_N_E/./components/PersonalDataRequestForm/PersonalDataRequestForm.tsx","webpack://_N_E/./pages/hilton-honors/personal-data-requests.tsx","webpack://_N_E/./utils/constants/autoComplete.ts","webpack://_N_E/./utils/helper.ts","webpack://_N_E/../../node_modules/.pnpm/react-google-recaptcha@2.0.1_react@18.3.1/node_modules/react-google-recaptcha/lib/esm/recaptcha.js","webpack://_N_E/../../node_modules/.pnpm/react-async-script@1.2.0_react@18.3.1/node_modules/react-async-script/lib/esm/async-script-loader.js","webpack://_N_E/../../node_modules/.pnpm/react-google-recaptcha@2.0.1_react@18.3.1/node_modules/react-google-recaptcha/lib/esm/recaptcha-wrapper.js","webpack://_N_E/../../node_modules/.pnpm/react-google-recaptcha@2.0.1_react@18.3.1/node_modules/react-google-recaptcha/lib/esm/index.js"],"sourcesContent":["import type * as React from 'react';\nimport { Link } from '@dx-ui/osc-link';\nimport cx from 'classnames';\n\ntype HeadlineProps = {\n  supportingText?: string | React.ReactNode;\n  joinLink?: { url: string; text: string; linkClassName?: string } | null;\n  isStacked?: boolean;\n  headlineClassName?: string;\n  className?: string;\n} & React.HTMLAttributes<HTMLDivElement>;\n\nexport const Headline = ({\n  className,\n  supportingText,\n  joinLink,\n  isStacked = true,\n  children,\n  headlineClassName,\n  ...rest\n}: HeadlineProps) => {\n  return (\n    <div\n      className={cx(\n        {\n          'flex flex-col md:flex-row md:space-x-8 md:rtl:space-x-reverse w-full': !isStacked,\n        },\n        className\n      )}\n      {...rest}\n    >\n      <h1\n        className={cx(\n          'font-headline text-4xl',\n          {\n            'md:w-[20%]': !isStacked,\n          },\n          headlineClassName\n        )}\n      >\n        {children}\n      </h1>\n      {supportingText ? (\n        <div\n          className={cx({\n            'my-4 md:my-0': !isStacked,\n            'md:w-[70%]': !isStacked && joinLink,\n            'md:w-[80%]': !isStacked && !joinLink,\n          })}\n        >\n          {supportingText}\n        </div>\n      ) : null}\n      {joinLink ? (\n        <span className=\"flex w-full flex-col md:w-[10%]\">\n          <Link\n            url={joinLink?.url}\n            className={cx(\n              'btn btn-xl w-full text-wrap px-2 text-center no-underline',\n              joinLink?.linkClassName\n            )}\n          >\n            {joinLink?.text}\n          </Link>\n        </span>\n      ) : null}\n    </div>\n  );\n};\n","import * as React from 'react';\nimport cx from 'classnames';\nimport { useTranslation } from 'next-i18next';\n\nexport type Step = {\n  id: number;\n  text: string;\n};\n\ntype Props = {\n  name?: string;\n  activeStep: number;\n  steps: Step[];\n  isRtl?: boolean;\n  displayMobile?: boolean;\n};\n\nexport const ProgressTracker: React.FC<React.PropsWithChildren<Props>> = ({\n  steps,\n  activeStep,\n  isRtl,\n  displayMobile,\n}) => {\n  const { t } = useTranslation('progress-tracker');\n\n  const widthPercent = parseFloat(((activeStep / steps.length) * 100).toFixed(2));\n\n  const containerStyles = {\n    ltr: [\n      { 'sm:pl-9': !isRtl },\n      { 'sm:ml-9': !isRtl },\n      { 'sm:border-l': !isRtl },\n      { 'lg:ml-20': !isRtl },\n      { 'lg:pl-20': !isRtl },\n    ],\n    rtl: [\n      { 'sm:pr-9': isRtl },\n      { 'sm:mr-9': isRtl },\n      { 'sm:border-r': isRtl },\n      { 'lg:mr-20': isRtl },\n      { 'lg:pr-20': isRtl },\n    ],\n  };\n\n  const trackerLineStyles = {\n    shared: [\n      'relative',\n      'flex',\n      'sm:block',\n      'before:inline-block',\n      'before:absolute',\n      'before:h-[calc(100%-20px)]',\n      'before:w-px',\n      'before:top-2',\n      'before:bg-text-alt',\n    ],\n    ltr: { 'before:left-1.5': !isRtl },\n    rtl: { 'before:right-1.5': isRtl },\n  };\n\n  const getSteps = React.useMemo(\n    () =>\n      steps.map((step) => {\n        const isActive = step.id === activeStep;\n        return (\n          <div\n            className={cx(\n              'mb-4',\n              'relative',\n              'before:absolute',\n              'before:rounded-full',\n              'before:top-1/2',\n              'before:-translate-y-1/2',\n              'before:bg-text-inverse',\n              { 'before:border-2': !isActive },\n              { 'before:border-text-alt': !isActive },\n              { 'before:h-3': !isActive },\n              { 'before:w-3': !isActive },\n              { 'before:left-0': !isActive && !isRtl },\n              { 'before:right-0': !isActive && isRtl },\n              { 'before:border-[5px]': isActive },\n              { 'before:border-bg-inverse': isActive },\n              { 'before:h-4': isActive },\n              { 'before:w-4': isActive },\n              { 'before:-left-0.5': isActive && !isRtl },\n              { 'before:-right-0.5': isActive && isRtl }\n            )}\n            data-testid=\"progressTrackItem\"\n            key={step.id}\n          >\n            <p\n              className={cx(\n                { 'pl-7': !isRtl },\n                { 'pr-7': isRtl },\n                { 'font-bold': isActive },\n                { 'text-text-alt': !isActive }\n              )}\n            >\n              {step.text}\n            </p>\n          </div>\n        );\n      }),\n    [activeStep, isRtl, steps]\n  );\n\n  return (\n    <>\n      <div className={cx('pb-8 md:hidden', { '!block': !!displayMobile })}>\n        <div className=\"container flex pb-2\">\n          <span className=\"inline-block font-bold\">\n            {steps.find((step) => step.id === activeStep)?.text}\n          </span>\n          <span className=\"ml-auto inline-block\">\n            {t('progressTracker.stepProgress', { current: activeStep, total: steps.length })}\n          </span>\n        </div>\n        <div className=\"bg-text-disabled relative h-1 w-full\">\n          <div\n            className={cx(\n              'absolute',\n              { 'left-0': !isRtl },\n              { 'right-0': isRtl },\n              'top-0',\n              'h-full',\n              'bg-secondary'\n            )}\n            style={{ width: `${widthPercent}%` }}\n          />\n        </div>\n      </div>\n\n      <div\n        className={cx(\n          'hidden pb-8 sm:flex-1 sm:pb-16 md:block',\n          [...containerStyles.ltr],\n          [...containerStyles.rtl],\n          { '!hidden': !!displayMobile }\n        )}\n        data-testid=\"progressTracker\"\n      >\n        <div\n          className={cx(\n            [...trackerLineStyles.shared],\n            { ...trackerLineStyles.ltr },\n            { ...trackerLineStyles.rtl }\n          )}\n        >\n          {getSteps}\n        </div>\n      </div>\n    </>\n  );\n};\n","import { useCallback, useEffect, useMemo, useState } from 'react';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport { useIdleTimer } from 'react-idle-timer';\nimport { useAuth } from '@dx-ui/framework-auth-provider';\nimport { useLocation } from '@dx-ui/framework-location-provider';\nimport { ActionDialog } from '@dx-ui/osc-dialog-v2';\nimport { FormInput, FormTextarea } from '@dx-ui/osc-form';\nimport { Location } from '@dx-ui/osc-location';\nimport cx from 'classnames';\nimport { Trans, useTranslation } from 'next-i18next';\nimport { env } from '@dx-ui/framework-env';\nimport { useRouter } from 'next/router';\nimport { useLanguage } from '../../hooks';\nimport { CreateGuestGdprDocument, useCreateGuestGdprMutation } from '@dx-ui/queries-dx-guests-ui';\nimport * as validator from '../../utils/constants/inline-form-validations';\nimport { parseCtyhocnFromPlaceId } from '../../utils/helper';\nimport { getLoginRedirectUrl } from '../../utils/helpers/urlBuilder';\nimport { AutoComplete } from '../../utils/constants/autoComplete';\nimport type { Dispatch, SetStateAction } from 'react';\nimport type { BannerContent } from '../../types/BannerNotification';\nimport { type Brand_CountriesQuery } from '@dx-ui/queries-dx-guests-ui';\nimport { logError } from '@dx-ui/framework-logger';\nimport { generateError } from '@dx-ui/utilities-generate-error';\n\nexport type Props = {\n  setBannerContent: Dispatch<SetStateAction<BannerContent>>;\n  remoteIp: string;\n  country: Brand_CountriesQuery['countries'][number] | undefined;\n  isReCaptchaEnabled?: boolean;\n};\n\nconst IDLE_TIMEOUT = 900000;\n\nconst DataSubjectRightsForm = ({\n  country,\n  remoteIp,\n  setBannerContent,\n  isReCaptchaEnabled,\n}: Props) => {\n  const [t] = useTranslation('dsr');\n  const language = useLanguage();\n  const router = useRouter();\n  const { isAuthenticated, logout, guestInfo } = useAuth();\n  const [showModal, setShowModal] = useState(false);\n  const location = useLocation();\n\n  const { mutateAsync: submitDSRForm } = useCreateGuestGdprMutation();\n\n  type FormData = {\n    country: string;\n    request: {\n      access: boolean;\n      correct: boolean;\n      remove: boolean;\n      object: boolean;\n      restrict: boolean;\n      get: boolean;\n      withdraw: boolean;\n    };\n    requestToDeleteConf: boolean;\n    requestComments: string;\n    firstName: string;\n    lastName: string;\n    phoneNumber: string;\n    emailAddress: string;\n    homeAddress: string;\n    comments: string;\n    hotelName: string;\n    ctyhocn: string;\n    relationshipWithHilton: {\n      hhonorsNumber: string;\n    };\n    requestFor: string;\n    requestForSomeoneElse: boolean;\n    confNumber: string;\n    arrivalDate: string;\n    reCaptcha: string;\n  };\n\n  const form = useForm<FormData>({\n    mode: 'all',\n    criteriaMode: 'all',\n    defaultValues: {\n      country: country?.code || '',\n      request: {\n        access: false,\n        correct: false,\n        remove: false,\n        object: false,\n        restrict: false,\n        get: false,\n        withdraw: false,\n      },\n      requestToDeleteConf: false,\n      requestComments: '',\n      firstName: '',\n      lastName: '',\n      phoneNumber: '',\n      emailAddress: '',\n      homeAddress: '',\n      comments: '',\n      hotelName: '',\n      ctyhocn: '',\n      relationshipWithHilton: {\n        hhonorsNumber: guestInfo?.hhonors?.hhonorsNumber || '',\n      },\n      requestFor: 'yourself',\n      requestForSomeoneElse: false,\n      confNumber: '',\n      arrivalDate: '',\n      reCaptcha: '',\n    },\n  });\n\n  const {\n    watch,\n    formState,\n    setValue,\n    handleSubmit,\n    setError,\n    reset,\n    clearErrors,\n    getValues,\n    register,\n    setFocus,\n  } = form;\n  const { errors, isSubmitting } = formState;\n\n  const hotelInputValue = watch('ctyhocn');\n\n  const ctyhocn = useMemo(() => {\n    return parseCtyhocnFromPlaceId(hotelInputValue);\n  }, [hotelInputValue]);\n\n  const handleTimeout = useCallback(async () => {\n    reset();\n    await router\n      .push(\n        `/${language}/hilton-honors/personal-data-requests?activeStep=1`,\n        `/${language}/hilton-honors/personal-data-requests/`,\n        { shallow: true }\n      )\n      .catch((error) => {\n        logError(\n          'DSR_FORM',\n          generateError(error),\n          `error on navigating to /${language}/hilton-honors/personal-data-requests?activeStep=1`\n        );\n      });\n    setBannerContent({\n      message: isAuthenticated\n        ? t('flashMessages.sessionTimeoutText')\n        : t('flashMessages.idleTimeoutText'),\n      type: 'error',\n    });\n    await logout();\n  }, [reset, router, language, setBannerContent, isAuthenticated, t, logout]);\n\n  useIdleTimer({\n    timeout: IDLE_TIMEOUT,\n    onIdle: async () => {\n      if (isAuthenticated) {\n        try {\n          await logout();\n          await router\n            .push(getLoginRedirectUrl(router.asPath, router.query, language))\n            .catch((error) => {\n              logError(\n                'DSR_FORM',\n                generateError(error),\n                'error on navigating to logout authenticated'\n              );\n            });\n        } catch (error) {\n          // Force page reload if logout.\n          if (error instanceof Error) {\n            logError('DSR_FORM', generateError(error), 'error on navigating to logout');\n          }\n          window.location.assign(getLoginRedirectUrl(router.asPath, router.query, language));\n        }\n      } else {\n        await handleTimeout();\n      }\n    },\n  });\n\n  const getModalContent = useMemo(() => {\n    if (showModal) {\n      const handleCancel = (): void => {\n        setShowModal(false);\n      };\n\n      const handleAccept = async () => {\n        setShowModal(false);\n        await router\n          .push(\n            `/${language}/hilton-honors/personal-data-requests?activeStep=1`,\n            `/${language}/hilton-honors/personal-data-requests/`,\n            { shallow: true }\n          )\n          .catch((error) => {\n            logError(\n              'DSR_FORM',\n              generateError(error),\n              `error on navigating to /${language}/hilton-honors/personal-data-requests?activeStep=1`\n            );\n          });\n      };\n\n      return (\n        <div className=\"relative\">\n          <ActionDialog\n            isOpen={showModal}\n            onDismiss={handleCancel}\n            onConfirm={handleAccept}\n            onCancel={handleCancel}\n            title={t('stepTwo.modal.modalTitle')}\n            buttonOptions={{\n              cancel: {\n                label: t('confirmationModal.cancel'),\n              },\n              confirm: {\n                label: t('confirmationModal.ok'),\n              },\n            }}\n          >\n            <p className=\"flex justify-center text-center text-base\">\n              {t('stepTwo.modal.modalBody')}\n            </p>\n          </ActionDialog>\n        </div>\n      );\n    }\n    return null;\n  }, [language, router, showModal, t]);\n\n  const isThereAnyCheckboxSelected = () => {\n    const checkboxList = Object.values(getValues('request'));\n    const isAnyCheckboxSelected = !checkboxList.every((value) => value === false);\n\n    if (isAnyCheckboxSelected) {\n      clearErrors('request');\n      return true;\n    }\n    return false;\n  };\n\n  const onSubmit = async (data: FormData) => {\n    const afterSubmit = async (hasError?: boolean) => {\n      reset(data);\n      window.scrollTo({ top: 0 });\n      await router\n        .push(\n          `/${language}/hilton-honors/personal-data-requests?activeStep=1`,\n          `/${language}/hilton-honors/personal-data-requests/`,\n          { shallow: true }\n        )\n        .catch((error) => {\n          logError(\n            'DSR_FORM',\n            generateError(error),\n            `error on navigating to /${language}/hilton-honors/personal-data-requests?activeStep=1`\n          );\n        });\n      setBannerContent({\n        message: hasError ? t('flashMessages.errorText') : t('flashMessages.successText'),\n        type: hasError ? 'error' : 'success',\n      });\n    };\n    try {\n      await submitDSRForm([\n        CreateGuestGdprDocument,\n        {\n          language,\n          guestGdprInput: {\n            arrivalDate: data.arrivalDate,\n            comments: data.requestComments,\n            confNumber: data.confNumber,\n            country: data.country,\n            ctyhocn,\n            emailAddress: data.emailAddress,\n            homeAddress: data.homeAddress,\n            name: {\n              firstName: data.firstName,\n              lastName: data.lastName,\n            },\n            phoneNumber: data.phoneNumber,\n            relationshipWithHilton: {\n              hhonorsNumber: data.relationshipWithHilton.hhonorsNumber,\n            },\n            request: data.request,\n            requestForSomeoneElse: data.requestForSomeoneElse,\n          },\n          recaptchaInput: isReCaptchaEnabled\n            ? {\n                countryCode: location.country,\n                recaptchaToken: data.reCaptcha,\n                version: 'v2',\n                remoteIp,\n              }\n            : null,\n        },\n      ]);\n      await afterSubmit(false);\n    } catch (error) {\n      await afterSubmit(true);\n      if (error instanceof Error) {\n        logError('DSR_FORM', generateError(error), `Error on ${submitDSRForm.name}`);\n      }\n    }\n  };\n\n  useEffect(() => {\n    if (isReCaptchaEnabled) register('reCaptcha', { required: true });\n  }, [isReCaptchaEnabled, register]);\n\n  const getErrorMessage = (field: string | void, message: string) => {\n    return (\n      <div className={`!mt-0 block ${field === 'requestToDeleteConf' ? 'ml-12' : null}`}>\n        <div className=\"flex flex-col space-y-2\">\n          <div className=\"text-danger mb-4 flex items-center space-x-2 rtl:space-x-reverse\">\n            <svg role=\"img\" aria-hidden=\"true\" height=\"16\" width=\"16\" viewBox=\"0 0 24 24\">\n              <g fill=\"currentcolor\">\n                <circle cx=\"12\" cy=\"12\" r=\"12\" />\n              </g>\n              <g transform=\"translate(8.000000, 8.000000)\" stroke=\"#FFFFFF\" strokeLinecap=\"square\">\n                <path d=\"M1,1 L7.00679887,7.00679887\" strokeWidth=\"2\" />\n                <path d=\"M1,7 L7.00679887,0.993201131\" strokeWidth=\"2\" />\n              </g>\n            </svg>\n            <span className=\"sr-only\">{t('stepTwo.headingText.info')}</span>\n            <span>{t(message as unknown as TemplateStringsArray)}</span>\n          </div>\n        </div>\n      </div>\n    );\n  };\n\n  const displayRightsType = (countryCode: string) => {\n    const possibleRights = ['access', 'correct', 'remove', 'object', 'restrict', 'get', 'withdraw'];\n\n    switch (countryCode) {\n      case 'BW':\n        return possibleRights.filter((item) => item !== 'get');\n      case 'GD':\n        return possibleRights.filter((item) => ['access', 'correct'].includes(item));\n      case 'ID':\n      case 'MC':\n        return possibleRights.filter((item) => item !== 'withdraw');\n      case 'LA':\n      case 'CU':\n        return possibleRights.filter((item) => !['withdraw', 'get'].includes(item));\n      case 'IN':\n        return possibleRights.filter((item) => ['access', 'correct', 'remove'].includes(item));\n      case 'MG':\n        return possibleRights.filter((item) => !['withdraw', 'restrict'].includes(item));\n      default:\n        return possibleRights;\n    }\n  };\n\n  return (\n    <FormProvider {...form}>\n      <form noValidate method=\"post\" onSubmit={handleSubmit(onSubmit)} className=\"flex-basis-1/2\">\n        <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n          {t('stepTwo.headingText.country')}\n        </h3>\n        <div className=\"mb-10 inline-block\">\n          <span data-testid=\"countryName\">{country?.name}</span>\n          <button\n            type=\"button\"\n            data-testid=\"changeLink\"\n            className=\"btn-primary-link btn-lg ml-8\"\n            onClick={() => setShowModal(true)}\n          >\n            {t('stepTwo.change')}\n          </button>\n        </div>\n        <h3 className=\"text-secondary mb-5 text-xl font-bold\">{t('stepTwo.headingText.about')}</h3>\n        <section className=\"mb-4\" data-testid=\"legend\">\n          <span data-testid=\"infoYouNeedHeader\" className=\"text-text text-base font-bold\">\n            {t('stepTwo.headingText.info')}\n          </span>\n          <span\n            data-testid=\"checkAllThatApplyHeaderTxt\"\n            className=\"text-text-alt ml-4 text-sm font-normal\"\n          >\n            {t('stepTwo.infoTip')}\n          </span>\n        </section>\n\n        <fieldset>\n          {country &&\n            displayRightsType(country?.code).map((field) => {\n              const fieldName = `request.${field}` as keyof FormData;\n              return (\n                <>\n                  <div className=\"mb-4 flex\" key={`field-${fieldName}`}>\n                    <input\n                      {...register(fieldName)}\n                      type=\"checkbox\"\n                      className={cx('form-checkbox', {\n                        'form-error': errors.request,\n                      })}\n                      name={fieldName}\n                      data-testid={fieldName}\n                      aria-labelledby={`${field}-label`}\n                    />\n                    <span id={`${field}-label`} className=\"pl-2\">\n                      {t(`dsr:stepTwo.aboutRequest.${field}` as unknown as TemplateStringsArray)}\n                    </span>\n                  </div>\n\n                  {field === 'remove' && watch('request.remove') && (\n                    <>\n                      <div className=\"my-4 ml-12 flex\">\n                        <input\n                          {...register('requestToDeleteConf', {\n                            required: true,\n                            shouldUnregister: true,\n                          })}\n                          type=\"checkbox\"\n                          className={cx('form-checkbox', {\n                            'form-error': errors.requestToDeleteConf,\n                          })}\n                          name=\"requestToDeleteConf\"\n                          data-testid=\"requestToDeleteConf\"\n                          aria-labelledby=\"requestToDeleteConf-label\"\n                        />\n                        <span id=\"requestToDeleteConf-label\" className=\"pl-2\">\n                          {t('stepTwo.requestToDeleteConf')}\n                        </span>\n                      </div>\n                      {errors.requestToDeleteConf &&\n                        getErrorMessage(\n                          'requestToDeleteConf',\n                          'dsrForm.requestToRemoveConfirmation'\n                        )}\n                    </>\n                  )}\n                </>\n              );\n            })}\n        </fieldset>\n        {errors.request && getErrorMessage(undefined, 'dsrForm.checkFieldsError')}\n\n        <FormTextarea\n          label={t('stepTwo.textAreaLabelText')}\n          name=\"requestComments\"\n          maxLength={2000}\n          optional={true}\n          containerClassName=\"mb-8 mt-8 w-full\"\n          registerOptions={{ required: false }}\n          labelClassName=\"w-full\"\n        />\n        <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n          {t('stepTwo.headingText.verifyIdentity')}\n        </h3>\n        <legend className=\"text-text mb-4 text-base font-bold\">\n          {t('stepTwo.headingText.request')}\n        </legend>\n        <fieldset className=\"mb-8 flex ltr:space-x-4 rtl:-space-x-4\">\n          <FormInput\n            label={t('stepTwo.requestForRadio.yourself')}\n            type=\"radio\"\n            name=\"requestFor\"\n            id=\"requestForYourself\"\n            value=\"yourself\"\n            defaultChecked\n            labelClassName=\"font-normal\"\n          />\n          <FormInput\n            label={t('stepTwo.requestForRadio.someoneElse')}\n            type=\"radio\"\n            name=\"requestFor\"\n            id=\"requestForSomeoneElse\"\n            value=\"someoneElse\"\n            labelClassName=\"font-normal\"\n            registerOptions={{\n              onChange() {\n                clearErrors([\n                  'firstName',\n                  'lastName',\n                  'emailAddress',\n                  'homeAddress',\n                  'phoneNumber',\n                  'relationshipWithHilton.hhonorsNumber',\n                ]);\n                setValue('firstName', '');\n                setValue('lastName', '');\n                setValue('emailAddress', '');\n                setValue('homeAddress', '');\n                setValue('phoneNumber', '');\n                setValue('relationshipWithHilton.hhonorsNumber', '');\n              },\n            }}\n          />\n        </fieldset>\n        <fieldset className=\"mb-8 space-y-2 border-0 p-0\">\n          <FormInput\n            name=\"firstName\"\n            label={t('pdrForm.firstName.label')}\n            labelClassName=\"w-full\"\n            autoComplete={AutoComplete.GIVENNAME}\n            data-testid=\"firstNameTextInput\"\n            registerOptions={{\n              pattern: {\n                value: validator.firstName,\n                message: t('dsrForm.requestForFieldsErrors.minLengthError'),\n              },\n              maxLength: { value: 18, message: t('dsrForm.requestForFieldsErrors.firstName') },\n              required: t('dsrForm.requestForFieldsErrors.firstName'),\n            }}\n          />\n          <FormInput\n            name=\"lastName\"\n            label={t('pdrForm.lastName.label')}\n            labelClassName=\"w-full\"\n            autoComplete={AutoComplete.FAMILYNAME}\n            data-testid=\"lastNameTextInput\"\n            registerOptions={{\n              pattern: {\n                value: validator.lastName,\n                message: t('dsrForm.requestForFieldsErrors.minLengthError'),\n              },\n              required: t('dsrForm.requestForFieldsErrors.lastName'),\n            }}\n          />\n          <FormInput\n            name=\"phoneNumber\"\n            label={t('pdrForm.phoneNumber.label')}\n            labelClassName=\"w-full\"\n            autoComplete={AutoComplete.TELNATIONAL}\n            data-testid=\"phoneNumberTextInput\"\n            registerOptions={{\n              pattern: {\n                value: validator.phone,\n                message: t('dsrForm.requestForFieldsErrors.validPhoneNumber'),\n              },\n              required: t('dsrForm.requestForFieldsErrors.phoneNumber'),\n            }}\n          />\n          <FormInput\n            name=\"emailAddress\"\n            label={t('pdrForm.emailAddress.label')}\n            labelClassName=\"w-full\"\n            autoComplete={AutoComplete.EMAIL}\n            data-testid=\"emailTextInput\"\n            registerOptions={{\n              pattern: {\n                value: validator.email,\n                message: t('dsrForm.requestForFieldsErrors.validEmailAddress'),\n              },\n              required: t('dsrForm.requestForFieldsErrors.emailAddress'),\n            }}\n          />\n          <FormInput\n            name=\"homeAddress\"\n            label={t('pdrForm.homeAddress.label')}\n            labelClassName=\"w-full\"\n            optional={true}\n            autoComplete={AutoComplete.STREETADDRESS}\n            data-testid=\"homeAddressTextInput\"\n            maxLength={30}\n            helpMessage={t('dsrForm.requestForFieldsErrors.maxAddressLength')}\n            registerOptions={{\n              required: false,\n            }}\n          />\n          <FormInput\n            name=\"relationshipWithHilton.hhonorsNumber\"\n            label={t('pdrForm.hhonorsNumber.label')}\n            labelClassName=\"w-full\"\n            optional={true}\n            data-testid=\"hhonorsNumberTextInput\"\n            value={\n              guestInfo?.hhonors?.hhonorsNumber || watch('relationshipWithHilton.hhonorsNumber')\n            }\n            registerOptions={{\n              required: false,\n            }}\n          />\n        </fieldset>\n        {router.query.activeStep === '2' && (\n          <button\n            type=\"button\"\n            data-testid=\"nextBtn\"\n            className=\"btn btn-2xl btn-primary-outline w-full py-3\"\n            onClick={async () => {\n              if (watch('request.remove') && !watch('requestToDeleteConf')) {\n                clearErrors('request');\n                setError('requestToDeleteConf', { type: 'required' }, { shouldFocus: true });\n                setFocus('requestToDeleteConf');\n                return;\n              }\n              if (!isThereAnyCheckboxSelected()) {\n                setError('request', { type: 'required' }, { shouldFocus: true });\n                setFocus('request.access');\n              } else {\n                await router.push(\n                  `/${language}/hilton-honors/personal-data-requests?activeStep=3`,\n                  `/${language}/hilton-honors/personal-data-requests/`,\n                  { shallow: true }\n                );\n              }\n            }}\n          >\n            {t('stepTwo.buttonText')}\n          </button>\n        )}\n        {getModalContent}\n        {router.query.activeStep === '3' && (\n          <>\n            <fieldset>\n              <legend>\n                <span className=\"text-secondary text-xl font-bold\">\n                  {t('stepTwo.headingText.additionalVerification')}\n                </span>\n                <b className=\"my-5 block\">\n                  <Trans t={t} i18nKey=\"stepTwo.headingText.pastOrFuture\">\n                    <span className=\"text-text-alt text-sm font-normal\" />\n                  </Trans>\n                </b>\n                <span className=\"block text-sm\">{t('stepTwo.headingText.pastOrFutureInfo')}</span>\n              </legend>\n              <div className={cx('my-4', { 'mb-10': errors.hotelName })}>\n                <Location\n                  autocompleteUri=\"/dx-customer/autocomplete\"\n                  name=\"hotelName\"\n                  label={t('stepTwo.location')}\n                  placeIdFieldName=\"ctyhocn\"\n                  type=\"property\"\n                  language={language}\n                  optional={true}\n                  registerOptions={{\n                    validate: () => {\n                      if (watch('hotelName') && !watch('ctyhocn')) {\n                        setError('hotelName', { type: 'required' });\n                        return t('stepTwo.locationError');\n                      }\n                      clearErrors('hotelName');\n                      return true;\n                    },\n                  }}\n                />\n              </div>\n              <div className=\"mb-4\">\n                <FormInput\n                  label={t(`stepTwo.optionalStayFields.confNumber`)}\n                  labelClassName=\"w-full\"\n                  containerClassName=\"mb-4\"\n                  name=\"confNumber\"\n                  optional={true}\n                  registerOptions={{ required: false }}\n                />\n                <FormInput\n                  label={t(`stepTwo.optionalStayFields.arrivalDate`)}\n                  labelClassName=\"w-full\"\n                  containerClassName=\"mb-4\"\n                  name=\"arrivalDate\"\n                  type=\"date\"\n                  optional={true}\n                  registerOptions={{ required: false }}\n                />\n              </div>\n            </fieldset>\n            <div className=\"px-0 py-4\">\n              <FormTextarea\n                label={t('stepThree.commentBox')}\n                name=\"comments\"\n                maxLength={2000}\n                optional={true}\n                containerClassName=\"mb-8 w-full\"\n                registerOptions={{ required: false }}\n                labelClassName=\"w-full\"\n              />\n              {isReCaptchaEnabled && (\n                <div className=\"mb-12\">\n                  <ReCAPTCHA\n                    sitekey={env('RECAPTCHA_PUBLIC_KEY')}\n                    onChange={(value) => {\n                      setValue('reCaptcha', value || '', { shouldTouch: true });\n                    }}\n                    onExpired={() => setValue('reCaptcha', '')}\n                    onErrored={() => setValue('reCaptcha', '')}\n                  />\n                  {errors.reCaptcha && getErrorMessage(undefined, 'dsrForm.recaptchaError')}\n                </div>\n              )}\n              <span className=\"text-text-alt block pb-4 text-sm font-normal\">\n                {t('stepThree.disclaimer')}\n              </span>\n              <button\n                type=\"submit\"\n                disabled={isSubmitting && formState.isValid}\n                className={cx(\n                  'btn',\n                  'btn-primary-outline',\n                  'btn-2xl',\n                  'w-full',\n                  'py-3',\n                  'font-extrabold',\n                  {\n                    'text-text-disabled': isSubmitting && formState.isValid,\n                  }\n                )}\n                onClick={() => {\n                  if (!isThereAnyCheckboxSelected()) {\n                    setError('request', { type: 'required' }, { shouldFocus: true });\n                    setFocus('request.access');\n                  }\n                }}\n              >\n                {t('stepThree.buttonText')}\n              </button>\n            </div>\n          </>\n        )}\n      </form>\n    </FormProvider>\n  );\n};\n\nexport default DataSubjectRightsForm;\n","import { useFormContext } from 'react-hook-form';\nimport { FormInput } from '@dx-ui/osc-form';\nimport { Trans, useTranslation } from 'next-i18next';\n\nimport type Dsr from '../../i18n/en/dsr.json';\n\ntype RelationshipType = 'GUEST' | 'OTHER';\n\nconst FORM_FIELDS = [\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToKnow',\n    header: 'requestToKnowHeader',\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToDelete',\n    header: 'requestToDeleteHeader',\n    confirmationSubfield: {\n      name: 'requestToDeleteConf',\n      labelKey: 'stepTwo.requestToDeleteConf',\n    },\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToCorrect',\n    header: 'requestToCorrectHeader',\n  },\n  {\n    applicableRelationships: ['GUEST'],\n    name: 'rightToDataPortability',\n    header: 'rightToDataPortabilityHeader',\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'rightToLimitUseOfSensitivePersonalInformation',\n    header: 'rightToLimitUseOfSensitivePersonalInformationHeader',\n  },\n];\n\nconst Checkboxes = ({ relationshipType }: { relationshipType: RelationshipType }) => {\n  const { getValues } = useFormContext();\n  const [t] = useTranslation('dsr');\n\n  const areAnyCheckboxesInGroupSelected = (field: (typeof FORM_FIELDS)[number]) => {\n    const isParentCheckboxSelected = getValues(`request.${field.name}`);\n    return isParentCheckboxSelected;\n  };\n\n  return (\n    <>\n      {FORM_FIELDS.map((field, index) => {\n        if (!field?.applicableRelationships.includes(relationshipType)) return null;\n\n        const fieldName = `request.${field.name}`;\n        return (\n          <fieldset className=\"last:mb-6\" key={field.name}>\n            <legend>\n              <span className=\"mb-6 block font-bold\">\n                {t(`pdrForm.CA.${field.header}` as unknown as TemplateStringsArray)}\n              </span>\n            </legend>\n            <FormInput\n              autoFocus={index === 0}\n              key={fieldName}\n              type=\"checkbox\"\n              name={fieldName}\n              labelClassName=\"font-normal mb-8\"\n              label={\n                <Trans\n                  t={t}\n                  i18nKey={`pdrForm.CA.${field.name as keyof (typeof Dsr)['pdrForm']['CA']}`}\n                >\n                  <strong />\n                </Trans>\n              }\n              data-testid={field.name}\n              registerOptions={{\n                deps: ['request.atLeastOneOption'],\n              }}\n            />\n\n            {areAnyCheckboxesInGroupSelected(field) && field.confirmationSubfield ? (\n              <FormInput\n                containerClassName={`${\n                  field.confirmationSubfield.name === 'requestToDeleteConf' ? 'ml-12' : null\n                }`}\n                name={field.confirmationSubfield.name}\n                label={t(field.confirmationSubfield.labelKey as unknown as TemplateStringsArray)}\n                labelClassName=\"font-normal mb-4\"\n                type=\"checkbox\"\n                required={true}\n                registerOptions={{\n                  required:\n                    field.confirmationSubfield.name === 'requestToDeleteConf'\n                      ? t('dsrForm.requestToRemoveConfirmation')\n                      : t('pdrForm.CA.agreeToSellConfirmation'),\n                  shouldUnregister: true,\n                }}\n              />\n            ) : null}\n          </fieldset>\n        );\n      })}\n    </>\n  );\n};\n\nexport const CaliforniaPartialForm = ({\n  relationshipToHilton,\n}: {\n  relationshipToHilton?: string;\n}) => {\n  const [t] = useTranslation('dsr');\n  const { getValues, clearErrors, setError } = useFormContext();\n  const relationshipType = relationshipToHilton === 'Guest' ? 'GUEST' : 'OTHER';\n\n  return (\n    <fieldset>\n      <legend>\n        <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n          <span className=\"mr-5\">{t('pdrForm.aboutYourRequest')}</span>\n          <span className=\"text-text-alt text-sm font-normal\">\n            {t('pdrForm.checkThoseThatApply')}\n          </span>\n        </h3>\n      </legend>\n      <Checkboxes relationshipType={relationshipType} />\n      {/*\n        This hidden input allows us to display an error when a user doesn’t select any checkboxes\n        A change to any input with `request.atLeastOneOption` in its `deps` array will trigger the validation rules\n      */}\n      <div className=\"mb-4\">\n        <FormInput\n          className=\"hidden\"\n          labelClassName=\"hidden\"\n          readOnly={true}\n          hidden={true}\n          disabled\n          label=\"Select at least one option\"\n          name=\"atLeastOneOption\"\n          type=\"checkbox\"\n          registerOptions={{\n            validate: () => {\n              const checkboxValues: string = getValues('request');\n              if (!Object.values(checkboxValues).some((value) => value)) {\n                Object.keys(checkboxValues).forEach((checkboxName) => {\n                  setError(`request.${checkboxName}`, { type: 'required' });\n                });\n                return t('dsrForm.checkFieldsError');\n              }\n              clearErrors('request');\n              return true;\n            },\n          }}\n        />\n      </div>\n    </fieldset>\n  );\n};\n","import { useTranslation } from 'next-i18next';\nimport { FormInput } from '@dx-ui/osc-form';\n\nexport const NevadaPartialForm = () => {\n  const [t] = useTranslation('dsr');\n\n  return (\n    <>\n      <div className=\"mb-4 flex\">\n        <FormInput\n          type=\"checkbox\"\n          name=\"request.nosell\"\n          label={t('pdrForm.NV.nosell')}\n          registerOptions={{\n            required: t('dsrForm.checkFieldError'),\n          }}\n        />\n      </div>\n      <p className=\"mb-8\">{t('pdrForm.NV.checkboxDisclaimer')}</p>\n    </>\n  );\n};\n","import { useFormContext } from 'react-hook-form';\nimport { FormInput } from '@dx-ui/osc-form';\nimport { Trans, useTranslation } from 'next-i18next';\nimport type { ParseKeys, TOptions } from 'i18next';\n\ntype RelationshipType = 'GUEST' | 'OTHER';\n\ntype CAField = ParseKeys<'dsr', TOptions, 'pdrForm.CA'>;\n\nconst FORM_FIELDS = [\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToKnow',\n    header: 'requestToKnowHeader',\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToDelete',\n    header: 'requestToDeleteHeader',\n    confirmationSubfield: {\n      name: 'requestToDeleteConf',\n      labelKey: 'stepTwo.requestToDeleteConf',\n    },\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'requestToCorrect',\n    header: 'requestToCorrectHeader',\n  },\n  {\n    applicableRelationships: ['GUEST'],\n    name: 'rightToDataPortability',\n    header: 'rightToDataPortabilityHeader',\n  },\n  {\n    applicableRelationships: ['GUEST', 'OTHER'],\n    name: 'rightToLimitUseOfSensitivePersonalInformation',\n    header: 'rightToLimitUseOfSensitivePersonalInformationHeader',\n  },\n];\n\nconst Checkboxes = ({ relationshipType }: { relationshipType: RelationshipType }) => {\n  const { getValues } = useFormContext();\n  const [t] = useTranslation('dsr');\n\n  const areAnyCheckboxesInGroupSelected = (field: (typeof FORM_FIELDS)[number]) => {\n    const isParentCheckboxSelected = getValues(`request.${field.name}`);\n    return isParentCheckboxSelected;\n  };\n\n  return (\n    <>\n      {FORM_FIELDS.map((field, index) => {\n        if (!field?.applicableRelationships.includes(relationshipType)) return null;\n\n        const fieldName = `request.${field.name}`;\n        return (\n          <fieldset className=\"last:mb-6\" key={field.name}>\n            <legend>\n              <span className=\"mb-6 block font-bold\">\n                {t(`pdrForm.CA.${field.header as CAField}`)}\n              </span>\n            </legend>\n            <FormInput\n              autoFocus={index === 0}\n              key={fieldName}\n              type=\"checkbox\"\n              name={fieldName}\n              labelClassName=\"font-normal mb-8\"\n              label={\n                <Trans t={t} i18nKey={`pdrForm.CA.${field.name as CAField}`}>\n                  <strong />\n                </Trans>\n              }\n              data-testid={field.name}\n              registerOptions={{\n                deps: ['request.atLeastOneOption'],\n              }}\n            />\n\n            {areAnyCheckboxesInGroupSelected(field) && field.confirmationSubfield ? (\n              <FormInput\n                containerClassName={`${\n                  field.confirmationSubfield.name === 'requestToDeleteConf' ? 'ml-12' : null\n                }`}\n                name={field.confirmationSubfield.name}\n                label={t(field.confirmationSubfield.labelKey as unknown as TemplateStringsArray)}\n                labelClassName=\"font-normal mb-4\"\n                type=\"checkbox\"\n                required={true}\n                registerOptions={{\n                  required:\n                    field.confirmationSubfield.name === 'requestToDeleteConf'\n                      ? t('dsrForm.requestToRemoveConfirmation')\n                      : t('pdrForm.CA.agreeToSellConfirmation'),\n                  shouldUnregister: true,\n                }}\n              />\n            ) : null}\n          </fieldset>\n        );\n      })}\n    </>\n  );\n};\n\nexport const USForm = ({ relationshipToHilton }: { relationshipToHilton?: string }) => {\n  const [t] = useTranslation('dsr');\n  const { getValues, clearErrors, setError } = useFormContext();\n  const relationshipType = relationshipToHilton === 'Guest' ? 'GUEST' : 'OTHER';\n\n  return (\n    <fieldset>\n      <legend>\n        <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n          <span className=\"mr-5\">{t('pdrForm.aboutYourRequest')}</span>\n          <span className=\"text-text-alt text-sm font-normal\">\n            {t('pdrForm.checkThoseThatApply')}\n          </span>\n        </h3>\n      </legend>\n      <Checkboxes relationshipType={relationshipType} />\n      {/*\n        This hidden input allows us to display an error when a user doesn’t select any checkboxes\n        A change to any input with `request.atLeastOneOption` in its `deps` array will trigger the validation rules\n      */}\n      <div className=\"mb-4\">\n        <FormInput\n          className=\"hidden\"\n          labelClassName=\"hidden\"\n          readOnly={true}\n          hidden={true}\n          disabled\n          label=\"Select at least one option\"\n          name=\"atLeastOneOption\"\n          type=\"checkbox\"\n          registerOptions={{\n            validate: () => {\n              const checkboxValues: string = getValues('request');\n              if (!Object.values(checkboxValues).some((value) => value)) {\n                Object.keys(checkboxValues).forEach((checkboxName) => {\n                  setError(`request.${checkboxName}`, { type: 'required' });\n                });\n                return t('dsrForm.checkFieldsError');\n              }\n              clearErrors('request');\n              return true;\n            },\n          }}\n        />\n      </div>\n    </fieldset>\n  );\n};\n","import { useMemo, useState } from 'react';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { FormProvider, useForm } from 'react-hook-form';\nimport { env } from '@dx-ui/framework-env';\nimport cx from 'classnames';\nimport { Trans, useTranslation } from 'next-i18next';\nimport { useRouter } from 'next/router';\n\nimport { useAuth } from '@dx-ui/framework-auth-provider';\nimport { useLocation } from '@dx-ui/framework-location-provider';\nimport { ActionDialog } from '@dx-ui/osc-dialog-v2';\nimport { FormInput, FormTextarea } from '@dx-ui/osc-form';\nimport { Location } from '@dx-ui/osc-location';\nimport { AutoComplete } from '../../utils/constants/autoComplete';\n\nimport { useLanguage } from '../../hooks';\nimport { useMetrics } from '../../hooks/useMetrics';\nimport { CreateGuestGdprDocument, useCreateGuestGdprMutation } from '@dx-ui/queries-dx-guests-ui';\nimport * as validator from '../../utils/constants/inline-form-validations';\nimport { parseCtyhocnFromPlaceId } from '../../utils/helper';\nimport { CaliforniaPartialForm } from './CaliforniaPartialForm';\nimport { NevadaPartialForm } from './NevadaPartialForm';\nimport { USForm } from './USForm';\n\nimport { logError } from '@dx-ui/framework-logger';\nimport type { Maybe } from '@dx-ui/gql-types';\nimport { generateError } from '@dx-ui/utilities-generate-error';\nimport type { Dispatch, SetStateAction } from 'react';\nimport type { BannerContent } from '../../types/BannerNotification';\nimport { type Brand_CountriesQuery } from '@dx-ui/queries-dx-guests-ui';\n\nexport type Props = {\n  setBannerContent: Dispatch<SetStateAction<BannerContent>>;\n  remoteIp: string;\n  state:\n    | {\n        name: string;\n        code: string;\n        personalDataRequest: boolean;\n        value: string;\n        cities?: Maybe<{ name: string; brandCodes: string[]; value: string }[]> | undefined;\n      }\n    | undefined;\n  country: Brand_CountriesQuery['countries'][number] | undefined;\n  isRelationshipToHiltonEnabled: boolean;\n  relationshipToHilton?: string;\n  isReCaptchaEnabled: boolean;\n};\n\nconst PersonalDataRequestForm = ({\n  remoteIp,\n  isReCaptchaEnabled,\n  country,\n  state,\n  setBannerContent,\n  relationshipToHilton,\n  isRelationshipToHiltonEnabled,\n}: Props) => {\n  const { guestInfo } = useAuth();\n  const { metrics } = useMetrics();\n  const [t] = useTranslation('dsr');\n  const router = useRouter();\n  const language = useLanguage();\n  const location = useLocation();\n  const [showModal, setShowModal] = useState(false);\n  const activeStates = ['CA', 'CO', 'CT', 'NV', 'UT', 'VA', 'FL', 'OR', 'TX'];\n\n  const { mutateAsync: submitPDRForm } = useCreateGuestGdprMutation();\n  type PdrFormDataTypes = {\n    country: string;\n    state: string;\n    request: {\n      nosell: boolean;\n      nosellBehavioralMarketing: boolean;\n      nosellHGV: boolean;\n      nosellTravelAndHospitality: boolean;\n      optIn: boolean;\n      optInHGV: boolean;\n      optInTravelAndHospitality: boolean;\n      requestToDelete: boolean;\n      requestToKnow: boolean;\n    };\n    requestToBackInSale: boolean;\n    requestToDeleteConf: boolean;\n    hotelName: string;\n    ctyhocn: string;\n    firstName: string;\n    lastName: string;\n    phoneNumber: string;\n    emailAddress: string;\n    homeAddress: string;\n    comments: string;\n    relationshipWithHilton: {\n      hhonorsNumber: string;\n      hiltonTeamMemberId: string;\n    };\n    requestFor: string;\n    requestForSomeoneElse: boolean;\n    requestComments: string;\n    confNumber: string;\n    arrivalDate: string;\n    reCaptcha: string;\n  };\n\n  const form = useForm<PdrFormDataTypes>({\n    mode: 'all',\n    criteriaMode: 'all',\n    defaultValues: {\n      country: country?.code || '',\n      state: state?.code || '',\n      request: {\n        ...((state?.code === 'CA' || !state?.code) && {\n          nosell: false,\n          nosellBehavioralMarketing: false,\n          nosellHGV: false,\n          nosellTravelAndHospitality: false,\n          optIn: false,\n          optInHGV: false,\n          optInTravelAndHospitality: false,\n          requestToDelete: false,\n          requestToKnow: false,\n        }),\n        ...(state?.code === 'NV' && { nosell: false }),\n      },\n      requestToBackInSale: false,\n      requestToDeleteConf: false,\n      hotelName: '',\n      ctyhocn: '',\n      firstName: '',\n      lastName: '',\n      phoneNumber: '',\n      emailAddress: '',\n      homeAddress: '',\n      comments: '',\n      relationshipWithHilton: {\n        hhonorsNumber: guestInfo?.hhonors?.hhonorsNumber || '',\n        hiltonTeamMemberId: '',\n      },\n      requestFor: 'yourself',\n      requestForSomeoneElse: false,\n      confNumber: '',\n      arrivalDate: '',\n      reCaptcha: '',\n    },\n  });\n\n  const { handleSubmit, register, formState, setValue, reset, watch, setError, clearErrors } = form;\n  const { errors, isSubmitting } = formState;\n\n  const onSubmit = async (data: PdrFormDataTypes) => {\n    const afterSubmit = async (hasError?: boolean) => {\n      reset(data);\n      window.scrollTo({\n        top: 0,\n      });\n\n      await router\n        .push(\n          `/${language}/hilton-honors/personal-data-requests?activeStep=1`,\n          `/${language}/hilton-honors/personal-data-requests/`,\n          { shallow: true }\n        )\n        .then(() =>\n          setBannerContent({\n            message: hasError ? t('flashMessages.errorText') : t('flashMessages.successText'),\n            type: hasError ? 'error' : 'success',\n          })\n        )\n        .catch((error) => {\n          const safeError = generateError(error);\n          logError(\n            'PERSONAL_DATA_REQUEST_FORM',\n            safeError,\n            `error on navigating to /${language}/hilton-honors/personal-data-requests/`\n          );\n        });\n    };\n\n    try {\n      await submitPDRForm([\n        CreateGuestGdprDocument,\n        {\n          language,\n          guestGdprInput: {\n            arrivalDate: data.arrivalDate,\n            comments: data.requestComments,\n            confNumber: data.confNumber,\n            country: data.country,\n            ctyhocn,\n            emailAddress: data.emailAddress,\n            homeAddress: data.homeAddress,\n            name: {\n              firstName: data.firstName,\n              lastName: data.lastName,\n            },\n            phoneNumber: data.phoneNumber,\n            relationshipWithHilton: {\n              hhonorsNumber: data.relationshipWithHilton.hhonorsNumber,\n              teamMemberId: data.relationshipWithHilton.hiltonTeamMemberId,\n              employeeIdentificationNumber: data.relationshipWithHilton.hiltonTeamMemberId,\n              guest: relationshipToHilton === 'Guest',\n              jobApplicant: relationshipToHilton === 'Job Applicant',\n              contractorSupplierVendor: relationshipToHilton === 'Contractor',\n            },\n            request: data.request as unknown as Record<string, string>,\n            ...(data?.requestForSomeoneElse && {\n              requestForSomeoneElse: data.requestForSomeoneElse,\n            }),\n            state: data.state,\n          },\n          recaptchaInput: isReCaptchaEnabled\n            ? {\n                countryCode: location.country,\n                recaptchaToken: data.reCaptcha,\n                version: 'v2',\n                remoteIp,\n              }\n            : null,\n        },\n      ]);\n\n      if (metrics && state?.code === 'CA') {\n        metrics.trackEvent('honorsCaPersonalDataOptOut');\n      }\n      if (metrics && state?.code === 'NV' && !isRelationshipToHiltonEnabled) {\n        metrics.trackEvent('honorsNvPersonalDataOptOut');\n      }\n\n      await afterSubmit();\n    } catch (error) {\n      await afterSubmit(true);\n      const safeError = generateError(error);\n      logError(\n        'PERSONAL_DATA_REQUEST_FORM',\n        safeError,\n        `${CreateGuestGdprDocument?.operationName} mutation failure.`\n      );\n    }\n  };\n\n  const hotelInputValue = watch('ctyhocn');\n\n  const ctyhocn = useMemo(() => {\n    return parseCtyhocnFromPlaceId(hotelInputValue);\n  }, [hotelInputValue]);\n\n  const getModalContent = useMemo(() => {\n    if (showModal) {\n      const handleCancel = (): void => {\n        setShowModal(false);\n      };\n\n      const handleAccept = async () => {\n        setShowModal(false);\n        await router\n          .push(\n            `/${language}/hilton-honors/personal-data-requests?activeStep=1`,\n            `/${language}/hilton-honors/personal-data-requests/`,\n            { shallow: true }\n          )\n          .catch((error) => {\n            logError(\n              'PERSONAL_DATA_REQUEST_FORM',\n              generateError(error),\n              `error on navigating to /${language}/hilton-honors/personal-data-requests/`\n            );\n          });\n      };\n\n      return (\n        <div className=\"relative\">\n          <ActionDialog\n            isOpen={showModal}\n            onDismiss={handleCancel}\n            title={t('stepTwo.modal.modalTitle')}\n            onConfirm={handleAccept}\n            onCancel={handleCancel}\n            buttonOptions={{\n              cancel: {\n                label: t('confirmationModal.cancel'),\n              },\n              confirm: {\n                label: t('confirmationModal.ok'),\n              },\n            }}\n          >\n            <p className=\"flex justify-center text-center text-base\">\n              {t('stepTwo.modal.modalBody')}\n            </p>\n          </ActionDialog>\n        </div>\n      );\n    }\n    return null;\n  }, [language, router, showModal, t]);\n\n  if (isReCaptchaEnabled) {\n    register('reCaptcha', { required: true });\n  }\n\n  return (\n    <section className=\"flex-1\">\n      <h3 className=\"text-secondary mb-5 text-xl font-bold\">{t('stepTwo.headingText.country')}</h3>\n      <div className=\"mb-10 inline-block\">\n        <span data-testid=\"countryName\">{country?.name || ''}</span>\n        <button\n          type=\"button\"\n          data-testid=\"changeLink\"\n          className=\"btn-primary-link btn-lg ml-8\"\n          onClick={() => setShowModal(true)}\n        >\n          {t('stepTwo.change')}\n        </button>\n      </div>\n\n      {isRelationshipToHiltonEnabled ? (\n        <>\n          <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n            {t('stepOne.relationshipToHilton')}\n          </h3>\n          <span className=\"mb-10 inline-block\" data-testid=\"relationshipToHilton\">\n            {relationshipToHilton}\n          </span>\n        </>\n      ) : null}\n\n      {['CA', 'FL', 'OR', 'TX'].includes(state?.code as string) ||\n      (state?.code === 'NV' && !isRelationshipToHiltonEnabled) ? (\n        <>\n          <h3 className=\"text-secondary mb-5 text-xl font-bold\">\n            {t('stepTwo.headingText.state')}\n          </h3>\n          <span className=\"mb-10 inline-block\" data-testid=\"stateName\">\n            {state?.name}\n          </span>\n        </>\n      ) : null}\n\n      <FormProvider {...form}>\n        <form className=\"flex-1\" noValidate method=\"post\" onSubmit={handleSubmit(onSubmit)}>\n          {state?.code === 'CA' ? (\n            <CaliforniaPartialForm relationshipToHilton={relationshipToHilton} />\n          ) : null}\n          {state?.code !== 'CA' && isRelationshipToHiltonEnabled ? (\n            <USForm relationshipToHilton={relationshipToHilton} />\n          ) : null}\n          {state?.code === 'NV' && !isRelationshipToHiltonEnabled ? <NevadaPartialForm /> : null}\n          <fieldset className=\"mb-8 space-y-2\">\n            {activeStates.includes(state?.code as string) ? (\n              <div>\n                <legend className=\"text-secondary mb-5 text-xl font-bold\">\n                  {t('stepTwo.headingText.verifyIdentity')}\n                </legend>\n                <h3 className=\"text-text mb-5 text-base font-bold\">\n                  {t('stepTwo.headingText.request')}\n                </h3>\n                <fieldset className=\"mb-8 flex ltr:space-x-4 rtl:-space-x-4\">\n                  <FormInput\n                    label={t('stepTwo.requestForRadio.yourself')}\n                    type=\"radio\"\n                    name=\"requestFor\"\n                    id=\"requestForYourself\"\n                    value=\"yourself\"\n                    defaultChecked\n                    labelClassName=\"font-normal\"\n                  />\n                  <FormInput\n                    label={t('stepTwo.requestForRadio.someoneElse')}\n                    type=\"radio\"\n                    name=\"requestFor\"\n                    id=\"requestForSomeoneElse\"\n                    value=\"someoneElse\"\n                    labelClassName=\"font-normal\"\n                    registerOptions={{\n                      onChange() {\n                        clearErrors([\n                          'firstName',\n                          'lastName',\n                          'emailAddress',\n                          'homeAddress',\n                          'phoneNumber',\n                          'relationshipWithHilton.hhonorsNumber',\n                        ]);\n                        setValue('firstName', '');\n                        setValue('lastName', '');\n                        setValue('emailAddress', '');\n                        setValue('homeAddress', '');\n                        setValue('phoneNumber', '');\n                        setValue('relationshipWithHilton.hhonorsNumber', '');\n                        setValue('requestForSomeoneElse', true);\n                      },\n                    }}\n                  />\n                </fieldset>\n              </div>\n            ) : (\n              <legend className=\"text-secondary mb-5  text-xl font-bold\">\n                {t('pdrForm.personalInfoDescription')}\n              </legend>\n            )}\n            <FormInput\n              name=\"firstName\"\n              label={t('pdrForm.firstName.label')}\n              labelClassName=\"w-full\"\n              autoComplete={AutoComplete.GIVENNAME}\n              data-testid=\"firstNameTextInput\"\n              registerOptions={{\n                pattern: {\n                  value: validator.firstName,\n                  message: t('dsrForm.requestForFieldsErrors.minLengthError'),\n                },\n                maxLength: { value: 18, message: t('dsrForm.requestForFieldsErrors.firstName') },\n                required: t('dsrForm.requestForFieldsErrors.firstName'),\n              }}\n            />\n            <FormInput\n              name=\"lastName\"\n              label={t('pdrForm.lastName.label')}\n              labelClassName=\"w-full\"\n              autoComplete={AutoComplete.FAMILYNAME}\n              data-testid=\"lastNameTextInput\"\n              registerOptions={{\n                pattern: {\n                  value: validator.lastName,\n                  message: t('dsrForm.requestForFieldsErrors.minLengthError'),\n                },\n                required: t('dsrForm.requestForFieldsErrors.lastName'),\n              }}\n            />\n            <FormInput\n              name=\"phoneNumber\"\n              label={t('pdrForm.phoneNumber.label')}\n              labelClassName=\"w-full\"\n              autoComplete={AutoComplete.TELNATIONAL}\n              data-testid=\"phoneNumberTextInput\"\n              registerOptions={{\n                pattern: {\n                  value: validator.phone,\n                  message: t('dsrForm.requestForFieldsErrors.validPhoneNumber'),\n                },\n                required: t('dsrForm.requestForFieldsErrors.phoneNumber'),\n              }}\n            />\n            <FormInput\n              name=\"emailAddress\"\n              label={t('pdrForm.emailAddress.label')}\n              labelClassName=\"w-full\"\n              autoComplete={AutoComplete.EMAIL}\n              data-testid=\"emailTextInput\"\n              registerOptions={{\n                pattern: {\n                  value: validator.email,\n                  message: t('dsrForm.requestForFieldsErrors.validEmailAddress'),\n                },\n                required: t('dsrForm.requestForFieldsErrors.emailAddress'),\n              }}\n            />\n            <FormInput\n              name=\"homeAddress\"\n              label={t('pdrForm.homeAddress.label')}\n              labelClassName=\"w-full\"\n              optional={true}\n              autoComplete={AutoComplete.STREETADDRESS}\n              data-testid=\"homeAddressTextInput\"\n              maxLength={30}\n              helpMessage={t('dsrForm.requestForFieldsErrors.maxAddressLength')}\n              registerOptions={{\n                required: false,\n              }}\n            />\n            {isRelationshipToHiltonEnabled &&\n            relationshipToHilton !== 'Guest' &&\n            relationshipToHilton === 'Hilton Team Member' ? (\n              <>\n                <FormInput\n                  name=\"relationshipWithHilton.hhonorsNumber\"\n                  label={t('pdrForm.hhonorsNumber.label')}\n                  labelClassName=\"w-full\"\n                  optional={true}\n                  data-testid=\"hhonorsNumberTextInput\"\n                  value={\n                    guestInfo?.hhonors?.hhonorsNumber ||\n                    watch('relationshipWithHilton.hhonorsNumber')\n                  }\n                  registerOptions={{\n                    required: false,\n                  }}\n                />\n                <FormInput\n                  name=\"relationshipWithHilton.hiltonTeamMemberId\"\n                  label={t('pdrForm.hiltonTeamMemberId.label')}\n                  labelClassName=\"w-full\"\n                  data-testid=\"hiltonTeamMemberIdTextInput\"\n                  optional={true}\n                />\n              </>\n            ) : null}\n            {isRelationshipToHiltonEnabled && relationshipToHilton !== 'Hilton Team Member' ? (\n              <FormInput\n                name=\"relationshipWithHilton.hhonorsNumber\"\n                label={t('pdrForm.hhonorsNumber.label')}\n                labelClassName=\"w-full\"\n                optional={true}\n                data-testid=\"hhonorsNumberTextInput\"\n                value={\n                  guestInfo?.hhonors?.hhonorsNumber || watch('relationshipWithHilton.hhonorsNumber')\n                }\n                registerOptions={{\n                  required: false,\n                }}\n              />\n            ) : null}\n          </fieldset>\n          {!isRelationshipToHiltonEnabled || relationshipToHilton === 'Guest' ? (\n            <fieldset className=\"mb-12\">\n              <legend>\n                <span className=\"text-secondary text-xl font-bold\">\n                  {t('stepTwo.headingText.additionalVerification')}\n                </span>\n                <b className=\"my-5 block\">\n                  <Trans t={t} i18nKey=\"stepTwo.headingText.pastOrFuture\">\n                    <span className=\"text-text-alt text-sm font-normal\" />\n                  </Trans>\n                </b>\n                <span className=\"block text-sm\">{t('stepTwo.headingText.pastOrFutureInfo')}</span>\n              </legend>\n              <div className={cx('my-4', { 'mb-10': errors.hotelName })}>\n                <Location\n                  autocompleteUri=\"/dx-customer/autocomplete\"\n                  name=\"hotelName\"\n                  label={t('stepTwo.location')}\n                  placeIdFieldName=\"ctyhocn\"\n                  type=\"property\"\n                  language={language}\n                  optional={true}\n                  registerOptions={{\n                    validate: () => {\n                      if (watch('hotelName') && !watch('ctyhocn')) {\n                        setError('hotelName', { type: 'required' });\n                        return t('stepTwo.locationError');\n                      }\n                      clearErrors('hotelName');\n                      return true;\n                    },\n                  }}\n                />\n              </div>\n              <div className=\"mb-4\">\n                <FormInput\n                  label={t(`stepTwo.optionalStayFields.confNumber`)}\n                  labelClassName=\"w-full\"\n                  containerClassName=\"mb-4\"\n                  name=\"confNumber\"\n                  optional={true}\n                  registerOptions={{ required: false }}\n                />\n                <FormInput\n                  label={t(`stepTwo.optionalStayFields.arrivalDate`)}\n                  labelClassName=\"w-full\"\n                  containerClassName=\"mb-4\"\n                  name=\"arrivalDate\"\n                  type=\"date\"\n                  optional={true}\n                  registerOptions={{ required: false }}\n                />\n              </div>\n            </fieldset>\n          ) : null}\n          <fieldset className=\"mb-12\">\n            <Trans t={t} i18nKey=\"pdrForm.contactInfo\">\n              <br />\n              <legend className=\"mb-5 font-bold\" />\n            </Trans>\n          </fieldset>\n          <div className=\"mb-12\">\n            <FormTextarea\n              label={t('pdrForm.enterComments')}\n              name=\"comments\"\n              maxLength={2000}\n              optional={true}\n              registerOptions={{ required: false }}\n              labelClassName=\"w-full\"\n            />\n          </div>\n          {isReCaptchaEnabled && (\n            <div className=\"mb-12\">\n              <ReCAPTCHA\n                sitekey={env('RECAPTCHA_PUBLIC_KEY')}\n                onChange={(value) => {\n                  setValue('reCaptcha', value || '', { shouldTouch: true });\n                }}\n                onExpired={() => setValue('reCaptcha', '')}\n                onErrored={() => setValue('reCaptcha', '')}\n                hl={language}\n              />\n              {errors.reCaptcha && (\n                <div className=\"!mt-0 block\">\n                  <div className=\"flex flex-col space-y-2\">\n                    <div className=\"text-danger flex items-center space-x-2 rtl:space-x-reverse\">\n                      <svg role=\"img\" aria-hidden=\"true\" height=\"16\" width=\"16\" viewBox=\"0 0 24 24\">\n                        <g fill=\"currentcolor\">\n                          <circle cx=\"12\" cy=\"12\" r=\"12\" />\n                        </g>\n                        <g\n                          transform=\"translate(8.000000, 8.000000)\"\n                          stroke=\"#FFFFFF\"\n                          strokeLinecap=\"square\"\n                        >\n                          <path d=\"M1,1 L7.00679887,7.00679887\" strokeWidth=\"2\" />\n                          <path d=\"M1,7 L7.00679887,0.993201131\" strokeWidth=\"2\" />\n                        </g>\n                      </svg>\n                      <span className=\"sr-only\">{t('stepTwo.headingText.info')}</span>\n                      <span>{t('dsrForm.recaptchaError')}</span>\n                    </div>\n                  </div>\n                </div>\n              )}\n            </div>\n          )}\n          <p className=\"mb-4 text-sm\">{t('stepThree.disclaimer')}</p>\n          <button\n            type=\"submit\"\n            disabled={isSubmitting}\n            className={cx('btn btn-primary-outline btn-2xl w-full py-3 font-extrabold', {\n              'text-text-disabled': isSubmitting,\n            })}\n          >\n            {t('stepThree.buttonText')}\n          </button>\n          {getModalContent}\n        </form>\n      </FormProvider>\n    </section>\n  );\n};\n\nexport default PersonalDataRequestForm;\n","import { makeServerQueryClient } from '@dx-ui/framework-react-query';\nimport type { ChangeEvent } from 'react';\nimport { useEffect, useMemo, useRef, useState } from 'react';\nimport { REACT_QUERY_CONFIG } from '../../config/react-query';\n\nimport cx from 'classnames';\nimport { Trans, useTranslation } from 'next-i18next';\nimport Head from 'next/head';\nimport { useRouter } from 'next/router';\n\nimport DsrForm from '../../components/DsrForm/DsrForm';\nimport { Headline } from '../../components/Headline/Headline';\nimport PersonalDataRequestForm from '../../components/PersonalDataRequestForm/PersonalDataRequestForm';\nimport type { Step } from '../../components/ProgressTracker/ProgressTracker';\nimport { ProgressTracker } from '../../components/ProgressTracker/ProgressTracker';\nimport { useLanguage } from '../../hooks';\nimport { useBrand_CountriesQuery, useFeatureTogglesQuery } from '@dx-ui/queries-dx-guests-ui';\nimport {\n  ENABLE_ADD_RELATIONSHIP_WITH_HILTON,\n  HIDE_SECURITI_AI,\n  NHCGUEST_506,\n} from '../../utils/constants/featureFlags';\nimport { withoutSearchWidget } from '../../utils/constants/layouts';\nimport { isFeatureEnabled, useServerSideFeatureToggles } from '../../utils/featureToggles';\nimport { show404NonTransPage } from '../../utils/helpers/show404NonTransPage';\n\nimport type { Maybe } from '@dx-ui/gql-types';\nimport { BannerNotification } from '@dx-ui/osc-banner-notification';\nimport { env } from '@dx-ui/framework-env';\nimport type { BannerContent } from '../../types/BannerNotification';\nimport type { Brand_CountriesQuery } from '@dx-ui/queries-dx-guests-ui';\nimport { auth } from '../../utils/auth';\nimport { GLOBAL_RESOURCE_BUNDLES } from '../../utils/constants/global-resource-bundles';\nimport { serverSideProps } from '../../utils/helpers/serverSideProps';\nimport { logError } from '@dx-ui/framework-logger';\nimport { generateError } from '@dx-ui/utilities-generate-error';\n\nconst relationshipWithHilton = [\n  { name: 'hiltonTeamMember', value: 'Hilton Team Member' },\n  { name: 'jobApplicant', value: 'Job Applicant' },\n  { name: 'contractor', value: 'Contractor' },\n  { name: 'guest', value: 'Guest' },\n];\n\nconst RegionSelector = ({\n  countries,\n  countryCode,\n  stateCode,\n  isStateError,\n  isCountryError,\n  selectedCountry,\n  relationshipType,\n  isRelationshipToHiltonEnabled,\n  setCountryCode,\n  setStateCode,\n  setIsStateError,\n  setIsCountryError,\n  setRelationshipType,\n}: {\n  countries: NonNullable<Brand_CountriesQuery['countries']> | undefined;\n  countryCode: string | string[];\n  stateCode: string | string[];\n  isStateError: boolean;\n  isCountryError: boolean;\n  selectedCountry: Brand_CountriesQuery['countries'][number] | undefined;\n  relationshipType: string;\n  isRelationshipToHiltonEnabled: boolean;\n  setCountryCode: (v: string) => void;\n  setStateCode: (v: string) => void;\n  setIsStateError: (v: boolean) => void;\n  setIsCountryError: (v: boolean) => void;\n  setRelationshipType: (v: string) => void;\n}) => {\n  const router = useRouter();\n  const language = useLanguage();\n  const [t] = useTranslation('dsr');\n  const handleCountryChange = async (event: ChangeEvent<HTMLSelectElement>) => {\n    const country = countries?.find((c) => c.code === event.target.value);\n    const hasStates =\n      (country?.states?.length ?? 0) > 0 &&\n      country?.states?.some((state) => state.personalDataRequest);\n    setCountryCode(country?.code || '');\n    setStateCode('');\n    setIsStateError(false);\n    setIsCountryError(!country?.dataSubjectRights && !hasStates);\n\n    if (country?.dataSubjectRights && !hasStates) {\n      await router.push(\n        `/${language}/hilton-honors/personal-data-requests?activeStep=2&countryCode=${countryCode}`,\n        `/${language}/hilton-honors/personal-data-requests/`,\n        { shallow: true }\n      );\n    }\n  };\n\n  const handleRelationshipChange = async (event: ChangeEvent<HTMLSelectElement>) => {\n    setRelationshipType(event.target.value);\n    if (event.target.value === 'Guest' && isStateError) {\n      await router.push(\n        `/${language}/hilton-honors/personal-data-requests?activeStep=4&countryCode=${countryCode}&stateCode=${stateCode}`,\n        `/${language}/hilton-honors/personal-data-requests/`,\n        { shallow: true }\n      );\n    }\n  };\n\n  const handleStateChange = async (event: ChangeEvent<HTMLSelectElement>) => {\n    const selectedState = selectedCountry?.states?.find((s) => s.code === event.target.value);\n    setStateCode(event.target.value);\n\n    if (relationshipType === 'Guest' && selectedState?.personalDataRequest) {\n      await router.push(\n        `/${language}/hilton-honors/personal-data-requests?activeStep=4&countryCode=${countryCode}&stateCode=${\n          selectedState?.code || ''\n        }`,\n        `/${language}/hilton-honors/personal-data-requests/`,\n        { shallow: true }\n      );\n    } else if (relationshipType === 'Guest' && !selectedState?.personalDataRequest) {\n      setIsStateError(true);\n    }\n\n    if (\n      relationshipType !== 'Guest' &&\n      selectedState?.personalDataRequest &&\n      selectedState?.code === 'CA'\n    ) {\n      await router.push(\n        `/${language}/hilton-honors/personal-data-requests?activeStep=4&countryCode=${countryCode}&stateCode=${\n          selectedState.code || ''\n        }`,\n        `/${language}/hilton-honors/personal-data-requests/`,\n        { shallow: true }\n      );\n    } else if (relationshipType !== 'Guest' && selectedState?.code !== 'CA') {\n      setIsStateError(true);\n    }\n  };\n\n  return (\n    <div className=\"flex flex-1 flex-col\">\n      <label\n        className={cx('label', { 'label-error': isCountryError })}\n        htmlFor=\"countrySelectInput\"\n      >\n        {t('stepOne.residence')}\n      </label>\n      <select\n        className={cx('form-select', { 'form-error': isCountryError })}\n        id=\"countrySelectInput\"\n        aria-label={t('stepOne.residence')}\n        onChange={handleCountryChange}\n        defaultValue=\"pleaseSelect\"\n        value={countryCode || 'pleaseSelect'}\n      >\n        <option disabled hidden value=\"pleaseSelect\">\n          {t('stepOne.pleaseSelect')}\n        </option>\n        {countries?.map((country) => (\n          <option key={country.code} value={country.code}>\n            {country.name}\n          </option>\n        ))}\n      </select>\n      {isCountryError ? (\n        <div\n          className=\"mt-2 w-full\"\n          id=\"countryError\"\n          data-e2e=\"errorMessage\"\n          aria-live=\"assertive\"\n          role=\"alert\"\n        >\n          <Trans t={t} i18nKey=\"stepOne.countryError\">\n            <a\n              href=\"mailto:DataProtectionOffice@hilton.com\"\n              className=\"text-primary hover:text-primary-alt text-base\"\n            >\n              DataProtectionOffice@hilton.com\n            </a>\n          </Trans>\n        </div>\n      ) : null}\n      {isRelationshipToHiltonEnabled && selectedCountry?.code === 'US' ? (\n        <>\n          <label className=\"label mt-4\" htmlFor=\"relationshipWithHilton\">\n            {t('stepOne.relationshipToHilton')}\n          </label>\n          <select\n            className=\"form-select\"\n            id=\"relationshipWithHilton\"\n            onChange={handleRelationshipChange}\n            defaultValue=\"pleaseSelect\"\n            value={relationshipType || 'pleaseSelect'}\n          >\n            <option disabled hidden value=\"pleaseSelect\">\n              {t('stepOne.pleaseSelect')}\n            </option>\n            {relationshipWithHilton.map((option) => (\n              <option key={option.name} value={option.value}>\n                {t(\n                  `stepOne.relationshipToHiltonOptions.${option.name}` as unknown as TemplateStringsArray\n                )}\n              </option>\n            ))}\n          </select>\n        </>\n      ) : null}\n      {(selectedCountry?.states?.length ?? 0) > 1 &&\n      (!!relationshipType || !isRelationshipToHiltonEnabled) ? (\n        <>\n          <label\n            className={cx('label mt-4', { 'label-error': isStateError })}\n            htmlFor=\"stateSelectInput\"\n          >\n            {t('stepOne.state.label')}\n          </label>\n          <select\n            className={cx('form-select', { 'form-error': isStateError })}\n            id=\"stateSelectInput\"\n            onChange={handleStateChange}\n            defaultValue=\"pleaseSelect\"\n            value={stateCode || 'pleaseSelect'}\n          >\n            <option disabled hidden value=\"pleaseSelect\">\n              {t('stepOne.pleaseSelect')}\n            </option>\n            {selectedCountry?.states?.map(\n              (state: {\n                name: string;\n                code: string;\n                personalDataRequest: boolean;\n                value: string;\n                cities?: Maybe<{ name: string; brandCodes: string[]; value: string }[]> | undefined;\n              }) => (\n                <option key={state.code} value={state.code}>\n                  {state.name}\n                </option>\n              )\n            )}\n          </select>\n          {isStateError ? (\n            <div\n              className=\"mt-2 w-full\"\n              id=\"stateError\"\n              data-e2e=\"errorMessage\"\n              aria-live=\"assertive\"\n              role=\"alert\"\n            >\n              <Trans t={t} i18nKey=\"stepOne.stateError\" />\n            </div>\n          ) : null}\n        </>\n      ) : null}\n    </div>\n  );\n};\n\nexport const PersonalDataRequests: NextPage<typeof getServerSideProps> = (props) => {\n  const [t] = useTranslation('dsr');\n  const language = useLanguage();\n  const router = useRouter();\n  const [countryCode, setCountryCode] = useState(router.query?.countryCode || '');\n  const [stateCode, setStateCode] = useState(router.query?.stateCode || '');\n  const [relationshipType, setRelationshipType] = useState('');\n  const [countryError, setIsCountryError] = useState(false);\n  const [isStateError, setIsStateError] = useState(false);\n  const [bannerContent, setBannerContent] = useState<BannerContent>(null);\n\n  const activeStep = Number(router?.query?.activeStep) || 1;\n  const remoteIp = useRef(props.remoteIp);\n\n  const { data: featureTogglesData, error } = useFeatureTogglesQuery({\n    flags: [NHCGUEST_506, HIDE_SECURITI_AI, ENABLE_ADD_RELATIONSHIP_WITH_HILTON],\n  });\n  const reCaptchaEnabled = featureTogglesData\n    ? isFeatureEnabled(featureTogglesData.featureToggles, NHCGUEST_506)\n    : false;\n  const isRelationshipToHiltonEnabled = featureTogglesData\n    ? isFeatureEnabled(featureTogglesData.featureToggles, ENABLE_ADD_RELATIONSHIP_WITH_HILTON)\n    : false;\n\n  const { data } = useBrand_CountriesQuery({\n    language,\n    getStates: true,\n  });\n\n  useEffect(() => {\n    if (activeStep === 1) {\n      setCountryCode('');\n      setStateCode('');\n      setIsCountryError(false);\n      setIsStateError(false);\n      setRelationshipType('');\n    }\n  }, [activeStep]);\n\n  if (error) {\n    logError(\n      'PERSONAL_DATA_REQUESTS',\n      generateError(error),\n      `Error on ${useFeatureTogglesQuery.name} | flags: ${[\n        NHCGUEST_506,\n        HIDE_SECURITI_AI,\n        ENABLE_ADD_RELATIONSHIP_WITH_HILTON,\n      ]}`\n    );\n  }\n\n  const steps = useMemo<Step[]>(() => {\n    const stepsText: string[] = t('steps', { returnObjects: true });\n    if (activeStep > 3) {\n      stepsText.pop();\n    }\n    return stepsText.map((value, index) => ({ id: index + 1, text: value }));\n  }, [t, activeStep]);\n\n  const selectedCountry = useMemo(\n    () =>\n      data?.countries\n        ? data.countries.find((c) => c.code === countryCode)\n        : ({ code: '', name: '', states: [] } as Brand_CountriesQuery['countries'][number]),\n    [data, countryCode]\n  );\n\n  return (\n    <>\n      <Head>\n        <title>{t('title')}</title>\n        {reCaptchaEnabled && <script src={env('RECAPTCHA_API_URL')} async={true} defer={true} />}\n      </Head>\n      <section>\n        {bannerContent ? (\n          <BannerNotification status={bannerContent.type}>\n            <p className=\"font-bold sm:text-lg\">{bannerContent.message || ''}</p>\n          </BannerNotification>\n        ) : null}\n        <div className=\"py-8 sm:py-16\">\n          <section className=\"container\">\n            <Headline className=\"mb-2 md:mb-10 md:mt-14\">{t('headerText')}</Headline>\n            <p className=\"mb-2 text-base md:mb-6\">{t('bodyText1')}</p>\n            <p className=\"mb-6 text-base md:mb-14\">{t('bodyText2')}</p>\n\n            <div className=\"md:hidden\" data-testid=\"pdrMobileDisplay\">\n              <ProgressTracker\n                name=\"personal-data-requests\"\n                steps={steps}\n                activeStep={activeStep === 4 ? 2 : activeStep}\n              />\n              <span className=\"mb-8 inline-block text-sm\" data-testid=\"requiredFieldsLabel\">\n                {t('requiredFields')}\n              </span>\n              <section>\n                {/* Call RegionSelector as a function to avoid losing foucs when selection causes re-render; may need to clean up */}\n                {activeStep < 2 && (\n                  <RegionSelector\n                    countries={data?.countries}\n                    countryCode={countryCode}\n                    isCountryError={countryError}\n                    stateCode={stateCode}\n                    isStateError={isStateError}\n                    isRelationshipToHiltonEnabled={isRelationshipToHiltonEnabled}\n                    relationshipType={relationshipType}\n                    selectedCountry={selectedCountry}\n                    setCountryCode={setCountryCode}\n                    setIsCountryError={setIsCountryError}\n                    setRelationshipType={setRelationshipType}\n                    setStateCode={setStateCode}\n                    setIsStateError={setIsStateError}\n                  />\n                )}\n                {activeStep > 1 && activeStep < 4 && (\n                  <DsrForm\n                    setBannerContent={setBannerContent}\n                    remoteIp={remoteIp.current}\n                    country={selectedCountry}\n                    isReCaptchaEnabled={reCaptchaEnabled}\n                  />\n                )}\n                {activeStep === 4 && (\n                  <PersonalDataRequestForm\n                    setBannerContent={setBannerContent}\n                    remoteIp={remoteIp.current}\n                    country={selectedCountry}\n                    state={selectedCountry?.states?.find((s) => s.code === router.query?.stateCode)}\n                    relationshipToHilton={relationshipType}\n                    isReCaptchaEnabled={reCaptchaEnabled}\n                    isRelationshipToHiltonEnabled={isRelationshipToHiltonEnabled}\n                  />\n                )}\n              </section>\n            </div>\n\n            <div className=\"hidden md:block\" data-testid=\"pdrDesktopDisplay\">\n              <span className=\"mb-10 inline-block text-sm\" data-testid=\"requiredFieldsLabel\">\n                {t('requiredFields')}\n              </span>\n              <section className=\"flex flex-auto items-start\">\n                {/* Call RegionSelector as a function to avoid losing foucs when selection causes re-render; may need to clean up */}\n                {activeStep < 2 && (\n                  <RegionSelector\n                    countries={data?.countries}\n                    countryCode={countryCode}\n                    isCountryError={countryError}\n                    stateCode={stateCode}\n                    isStateError={isStateError}\n                    isRelationshipToHiltonEnabled={isRelationshipToHiltonEnabled}\n                    relationshipType={relationshipType}\n                    selectedCountry={selectedCountry}\n                    setCountryCode={setCountryCode}\n                    setIsCountryError={setIsCountryError}\n                    setRelationshipType={setRelationshipType}\n                    setStateCode={setStateCode}\n                    setIsStateError={setIsStateError}\n                  />\n                )}\n                {activeStep > 1 && activeStep < 4 && (\n                  <DsrForm\n                    setBannerContent={setBannerContent}\n                    remoteIp={remoteIp.current}\n                    country={selectedCountry}\n                    isReCaptchaEnabled={reCaptchaEnabled}\n                  />\n                )}\n                {activeStep === 4 && (\n                  <PersonalDataRequestForm\n                    setBannerContent={setBannerContent}\n                    remoteIp={remoteIp.current}\n                    country={selectedCountry}\n                    state={selectedCountry?.states?.find((s) => s.code === router.query?.stateCode)}\n                    relationshipToHilton={relationshipType}\n                    isReCaptchaEnabled={reCaptchaEnabled}\n                    isRelationshipToHiltonEnabled={isRelationshipToHiltonEnabled}\n                  />\n                )}\n                <ProgressTracker\n                  name=\"personal-data-requests\"\n                  steps={steps}\n                  activeStep={activeStep === 4 ? 2 : activeStep}\n                />\n              </section>\n            </div>\n          </section>\n        </div>\n      </section>\n    </>\n  );\n};\n\nexport const getServerSideProps = (async (context) => {\n  const { req, res, locale } = context;\n  const authClient = auth(req as unknown as Request);\n  const queryClient = makeServerQueryClient({\n    ...REACT_QUERY_CONFIG,\n    serverResponse: res,\n    authClient,\n  });\n\n  const show404 = await show404NonTransPage({ url: req.path, language: locale, queryClient });\n  if (show404) return { notFound: true };\n\n  const path = (req as unknown as Request).path || '';\n  if (/\\/data-subject-rights/.test(path)) {\n    return {\n      redirect: {\n        destination: `/${locale}/hilton-honors/personal-data-requests/`,\n        permanent: true,\n      },\n    };\n  }\n  const remoteIp = (req as unknown as Request).ip || (req as unknown as Request)?.ips?.[0];\n\n  await useServerSideFeatureToggles(queryClient, [\n    NHCGUEST_506,\n    HIDE_SECURITI_AI,\n    ENABLE_ADD_RELATIONSHIP_WITH_HILTON,\n  ]);\n\n  return serverSideProps({\n    authClient,\n    context,\n    queryClient,\n    pageProps: {\n      remoteIp,\n      metrics: {\n        trackingData: {\n          pageView: 'honorsPageView',\n          pageData: {\n            pageName: 'Data-subject-rights:Personal Data Request',\n            expType: 'New Hilton',\n            subSection: '',\n            subSubSection: '',\n            pageType: 'Personal Data Request',\n          },\n        },\n      },\n      layout: withoutSearchWidget,\n    },\n    namespaces: [...GLOBAL_RESOURCE_BUNDLES, 'dsr', 'personalDataRequests', 'progress-tracker'],\n  });\n}) satisfies GetServerSideProps;\n\nexport default PersonalDataRequests;\n","export const AutoComplete = {\n  ADDRESSLINE1: 'address-line1',\n  ADDRESSLINE2: 'address-line2',\n  CITY: 'address-level2',\n  COUNTRY: 'country',\n  CURRENTPASSWORD: 'current-password',\n  EMAIL: 'email',\n  FAMILYNAME: 'family-name',\n  GIVENNAME: 'given-name',\n  NAME: 'name',\n  NEWPASSWORD: 'new-password',\n  OFF: 'off',\n  POSTALCODE: 'postal-code',\n  STATE: 'address-level1',\n  STREETADDRESS: 'street-address',\n  TEL: 'tel',\n  TELNATIONAL: 'tel-national',\n  USERNAME: 'username',\n  CREDITCARD: 'cc-number',\n} as const;\n","import type { BrandImageVariantSize } from '@dx-ui/gql-types';\n\nexport type ImageVariant = {\n  size: BrandImageVariantSize;\n  url?: string | null;\n};\n\nexport const isDev = process.env.NODE_ENV === 'development';\n\n/**\n * For use in conjunction with [i18next context](https://www.i18next.com/translation-function/context)\n * Where UI copy varies by member tier using context, e.g.\n * ```\n * 'someText': 'Member tier text',\n * 'someText_silver': 'Silver tier text',\n * ...\n * ```\n * … to get the proper context value based on the tier key\n * @param tier\n */\nexport const getTierContextByLevel = (\n  tier: 'B' | 'S' | 'G' | 'D' | 'L'\n): 'silver' | 'gold' | 'diamond' | '' => {\n  switch (tier) {\n    case 'L':\n    case 'D':\n      return 'diamond';\n    case 'G':\n      return 'gold';\n    case 'S':\n      return 'silver';\n    default:\n      return '';\n  }\n};\n\n/**\n *\n * @param placeId returned from Location input geocode call\n * @returns isolated and uppercased CTYHOCN value\n * @example parseCtyhocnFromPlaceId('dx-hotels::dalpagi') // returns 'DALPAGI'\n */\nexport const parseCtyhocnFromPlaceId = (placeId: string) =>\n  placeId?.split(':')?.pop()?.toUpperCase();\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\nvar ReCAPTCHA =\n/*#__PURE__*/\nfunction (_React$Component) {\n  _inheritsLoose(ReCAPTCHA, _React$Component);\n\n  function ReCAPTCHA() {\n    var _this;\n\n    _this = _React$Component.call(this) || this;\n    _this.handleExpired = _this.handleExpired.bind(_assertThisInitialized(_this));\n    _this.handleErrored = _this.handleErrored.bind(_assertThisInitialized(_this));\n    _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));\n    _this.handleRecaptchaRef = _this.handleRecaptchaRef.bind(_assertThisInitialized(_this));\n    return _this;\n  }\n\n  var _proto = ReCAPTCHA.prototype;\n\n  _proto.getValue = function getValue() {\n    if (this.props.grecaptcha && this._widgetId !== undefined) {\n      return this.props.grecaptcha.getResponse(this._widgetId);\n    }\n\n    return null;\n  };\n\n  _proto.getWidgetId = function getWidgetId() {\n    if (this.props.grecaptcha && this._widgetId !== undefined) {\n      return this._widgetId;\n    }\n\n    return null;\n  };\n\n  _proto.execute = function execute() {\n    var grecaptcha = this.props.grecaptcha;\n\n    if (grecaptcha && this._widgetId !== undefined) {\n      return grecaptcha.execute(this._widgetId);\n    } else {\n      this._executeRequested = true;\n    }\n  };\n\n  _proto.reset = function reset() {\n    if (this.props.grecaptcha && this._widgetId !== undefined) {\n      this.props.grecaptcha.reset(this._widgetId);\n    }\n  };\n\n  _proto.handleExpired = function handleExpired() {\n    if (this.props.onExpired) {\n      this.props.onExpired();\n    } else {\n      this.handleChange(null);\n    }\n  };\n\n  _proto.handleErrored = function handleErrored() {\n    if (this.props.onErrored) this.props.onErrored();\n  };\n\n  _proto.handleChange = function handleChange(token) {\n    if (this.props.onChange) this.props.onChange(token);\n  };\n\n  _proto.explicitRender = function explicitRender() {\n    if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) {\n      var wrapper = document.createElement(\"div\");\n      this._widgetId = this.props.grecaptcha.render(wrapper, {\n        sitekey: this.props.sitekey,\n        callback: this.handleChange,\n        theme: this.props.theme,\n        type: this.props.type,\n        tabindex: this.props.tabindex,\n        \"expired-callback\": this.handleExpired,\n        \"error-callback\": this.handleErrored,\n        size: this.props.size,\n        stoken: this.props.stoken,\n        hl: this.props.hl,\n        badge: this.props.badge\n      });\n      this.captcha.appendChild(wrapper);\n    }\n\n    if (this._executeRequested && this.props.grecaptcha && this._widgetId !== undefined) {\n      this._executeRequested = false;\n      this.execute();\n    }\n  };\n\n  _proto.componentDidMount = function componentDidMount() {\n    this.explicitRender();\n  };\n\n  _proto.componentDidUpdate = function componentDidUpdate() {\n    this.explicitRender();\n  };\n\n  _proto.componentWillUnmount = function componentWillUnmount() {\n    if (this._widgetId !== undefined) {\n      this.delayOfCaptchaIframeRemoving();\n      this.reset();\n    }\n  };\n\n  _proto.delayOfCaptchaIframeRemoving = function delayOfCaptchaIframeRemoving() {\n    var temporaryNode = document.createElement(\"div\");\n    document.body.appendChild(temporaryNode);\n    temporaryNode.style.display = \"none\"; // move of the recaptcha to a temporary node\n\n    while (this.captcha.firstChild) {\n      temporaryNode.appendChild(this.captcha.firstChild);\n    } // delete the temporary node after reset will be done\n\n\n    setTimeout(function () {\n      document.body.removeChild(temporaryNode);\n    }, 5000);\n  };\n\n  _proto.handleRecaptchaRef = function handleRecaptchaRef(elem) {\n    this.captcha = elem;\n  };\n\n  _proto.render = function render() {\n    // consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.\n\n    /* eslint-disable no-unused-vars */\n    var _this$props = this.props,\n        sitekey = _this$props.sitekey,\n        onChange = _this$props.onChange,\n        theme = _this$props.theme,\n        type = _this$props.type,\n        tabindex = _this$props.tabindex,\n        onExpired = _this$props.onExpired,\n        onErrored = _this$props.onErrored,\n        size = _this$props.size,\n        stoken = _this$props.stoken,\n        grecaptcha = _this$props.grecaptcha,\n        badge = _this$props.badge,\n        hl = _this$props.hl,\n        childProps = _objectWithoutPropertiesLoose(_this$props, [\"sitekey\", \"onChange\", \"theme\", \"type\", \"tabindex\", \"onExpired\", \"onErrored\", \"size\", \"stoken\", \"grecaptcha\", \"badge\", \"hl\"]);\n    /* eslint-enable no-unused-vars */\n\n\n    return React.createElement(\"div\", _extends({}, childProps, {\n      ref: this.handleRecaptchaRef\n    }));\n  };\n\n  return ReCAPTCHA;\n}(React.Component);\n\nexport { ReCAPTCHA as default };\nReCAPTCHA.displayName = \"ReCAPTCHA\";\nReCAPTCHA.propTypes = {\n  sitekey: PropTypes.string.isRequired,\n  onChange: PropTypes.func,\n  grecaptcha: PropTypes.object,\n  theme: PropTypes.oneOf([\"dark\", \"light\"]),\n  type: PropTypes.oneOf([\"image\", \"audio\"]),\n  tabindex: PropTypes.number,\n  onExpired: PropTypes.func,\n  onErrored: PropTypes.func,\n  size: PropTypes.oneOf([\"compact\", \"normal\", \"invisible\"]),\n  stoken: PropTypes.string,\n  hl: PropTypes.string,\n  badge: PropTypes.oneOf([\"bottomright\", \"bottomleft\", \"inline\"])\n};\nReCAPTCHA.defaultProps = {\n  onChange: function onChange() {},\n  theme: \"light\",\n  type: \"image\",\n  tabindex: 0,\n  size: \"normal\",\n  badge: \"bottomright\"\n};","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport { Component, createElement, forwardRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nvar SCRIPT_MAP = {}; // A counter used to generate a unique id for each component that uses the function\n\nvar idCount = 0;\nexport default function makeAsyncScript(getScriptURL, options) {\n  options = options || {};\n  return function wrapWithAsyncScript(WrappedComponent) {\n    var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n\n    var AsyncScriptLoader =\n    /*#__PURE__*/\n    function (_Component) {\n      _inheritsLoose(AsyncScriptLoader, _Component);\n\n      function AsyncScriptLoader(props, context) {\n        var _this;\n\n        _this = _Component.call(this, props, context) || this;\n        _this.state = {};\n        _this.__scriptURL = \"\";\n        return _this;\n      }\n\n      var _proto = AsyncScriptLoader.prototype;\n\n      _proto.asyncScriptLoaderGetScriptLoaderID = function asyncScriptLoaderGetScriptLoaderID() {\n        if (!this.__scriptLoaderID) {\n          this.__scriptLoaderID = \"async-script-loader-\" + idCount++;\n        }\n\n        return this.__scriptLoaderID;\n      };\n\n      _proto.setupScriptURL = function setupScriptURL() {\n        this.__scriptURL = typeof getScriptURL === \"function\" ? getScriptURL() : getScriptURL;\n        return this.__scriptURL;\n      };\n\n      _proto.asyncScriptLoaderHandleLoad = function asyncScriptLoaderHandleLoad(state) {\n        var _this2 = this;\n\n        // use reacts setState callback to fire props.asyncScriptOnLoad with new state/entry\n        this.setState(state, function () {\n          return _this2.props.asyncScriptOnLoad && _this2.props.asyncScriptOnLoad(_this2.state);\n        });\n      };\n\n      _proto.asyncScriptLoaderTriggerOnScriptLoaded = function asyncScriptLoaderTriggerOnScriptLoaded() {\n        var mapEntry = SCRIPT_MAP[this.__scriptURL];\n\n        if (!mapEntry || !mapEntry.loaded) {\n          throw new Error(\"Script is not loaded.\");\n        }\n\n        for (var obsKey in mapEntry.observers) {\n          mapEntry.observers[obsKey](mapEntry);\n        }\n\n        delete window[options.callbackName];\n      };\n\n      _proto.componentDidMount = function componentDidMount() {\n        var _this3 = this;\n\n        var scriptURL = this.setupScriptURL();\n        var key = this.asyncScriptLoaderGetScriptLoaderID();\n        var _options = options,\n            globalName = _options.globalName,\n            callbackName = _options.callbackName,\n            scriptId = _options.scriptId; // check if global object already attached to window\n\n        if (globalName && typeof window[globalName] !== \"undefined\") {\n          SCRIPT_MAP[scriptURL] = {\n            loaded: true,\n            observers: {}\n          };\n        } // check if script loading already\n\n\n        if (SCRIPT_MAP[scriptURL]) {\n          var entry = SCRIPT_MAP[scriptURL]; // if loaded or errored then \"finish\"\n\n          if (entry && (entry.loaded || entry.errored)) {\n            this.asyncScriptLoaderHandleLoad(entry);\n            return;\n          } // if still loading then callback to observer queue\n\n\n          entry.observers[key] = function (entry) {\n            return _this3.asyncScriptLoaderHandleLoad(entry);\n          };\n\n          return;\n        }\n        /*\n         * hasn't started loading\n         * start the \"magic\"\n         * setup script to load and observers\n         */\n\n\n        var observers = {};\n\n        observers[key] = function (entry) {\n          return _this3.asyncScriptLoaderHandleLoad(entry);\n        };\n\n        SCRIPT_MAP[scriptURL] = {\n          loaded: false,\n          observers: observers\n        };\n        var script = document.createElement(\"script\");\n        script.src = scriptURL;\n        script.async = true;\n\n        for (var attribute in options.attributes) {\n          script.setAttribute(attribute, options.attributes[attribute]);\n        }\n\n        if (scriptId) {\n          script.id = scriptId;\n        }\n\n        var callObserverFuncAndRemoveObserver = function callObserverFuncAndRemoveObserver(func) {\n          if (SCRIPT_MAP[scriptURL]) {\n            var mapEntry = SCRIPT_MAP[scriptURL];\n            var observersMap = mapEntry.observers;\n\n            for (var obsKey in observersMap) {\n              if (func(observersMap[obsKey])) {\n                delete observersMap[obsKey];\n              }\n            }\n          }\n        };\n\n        if (callbackName && typeof window !== \"undefined\") {\n          window[callbackName] = function () {\n            return _this3.asyncScriptLoaderTriggerOnScriptLoaded();\n          };\n        }\n\n        script.onload = function () {\n          var mapEntry = SCRIPT_MAP[scriptURL];\n\n          if (mapEntry) {\n            mapEntry.loaded = true;\n            callObserverFuncAndRemoveObserver(function (observer) {\n              if (callbackName) {\n                return false;\n              }\n\n              observer(mapEntry);\n              return true;\n            });\n          }\n        };\n\n        script.onerror = function () {\n          var mapEntry = SCRIPT_MAP[scriptURL];\n\n          if (mapEntry) {\n            mapEntry.errored = true;\n            callObserverFuncAndRemoveObserver(function (observer) {\n              observer(mapEntry);\n              return true;\n            });\n          }\n        };\n\n        document.body.appendChild(script);\n      };\n\n      _proto.componentWillUnmount = function componentWillUnmount() {\n        // Remove tag script\n        var scriptURL = this.__scriptURL;\n\n        if (options.removeOnUnmount === true) {\n          var allScripts = document.getElementsByTagName(\"script\");\n\n          for (var i = 0; i < allScripts.length; i += 1) {\n            if (allScripts[i].src.indexOf(scriptURL) > -1) {\n              if (allScripts[i].parentNode) {\n                allScripts[i].parentNode.removeChild(allScripts[i]);\n              }\n            }\n          }\n        } // Clean the observer entry\n\n\n        var mapEntry = SCRIPT_MAP[scriptURL];\n\n        if (mapEntry) {\n          delete mapEntry.observers[this.asyncScriptLoaderGetScriptLoaderID()];\n\n          if (options.removeOnUnmount === true) {\n            delete SCRIPT_MAP[scriptURL];\n          }\n        }\n      };\n\n      _proto.render = function render() {\n        var globalName = options.globalName; // remove asyncScriptOnLoad from childProps\n\n        var _this$props = this.props,\n            asyncScriptOnLoad = _this$props.asyncScriptOnLoad,\n            forwardedRef = _this$props.forwardedRef,\n            childProps = _objectWithoutPropertiesLoose(_this$props, [\"asyncScriptOnLoad\", \"forwardedRef\"]); // eslint-disable-line no-unused-vars\n\n\n        if (globalName && typeof window !== \"undefined\") {\n          childProps[globalName] = typeof window[globalName] !== \"undefined\" ? window[globalName] : undefined;\n        }\n\n        childProps.ref = forwardedRef;\n        return createElement(WrappedComponent, childProps);\n      };\n\n      return AsyncScriptLoader;\n    }(Component); // Note the second param \"ref\" provided by React.forwardRef.\n    // We can pass it along to AsyncScriptLoader as a regular prop, e.g. \"forwardedRef\"\n    // And it can then be attached to the Component.\n\n\n    var ForwardedComponent = forwardRef(function (props, ref) {\n      return createElement(AsyncScriptLoader, _extends({}, props, {\n        forwardedRef: ref\n      }));\n    });\n    ForwardedComponent.displayName = \"AsyncScriptLoader(\" + wrappedComponentName + \")\";\n    ForwardedComponent.propTypes = {\n      asyncScriptOnLoad: PropTypes.func\n    };\n    return hoistStatics(ForwardedComponent, WrappedComponent);\n  };\n}","import ReCAPTCHA from \"./recaptcha\";\nimport makeAsyncScriptLoader from \"react-async-script\";\nvar callbackName = \"onloadcallback\";\nvar globalName = \"grecaptcha\";\n\nfunction getOptions() {\n  return typeof window !== \"undefined\" && window.recaptchaOptions || {};\n}\n\nfunction getURL() {\n  var dynamicOptions = getOptions();\n  var hostname = dynamicOptions.useRecaptchaNet ? \"recaptcha.net\" : \"www.google.com\";\n  return \"https://\" + hostname + \"/recaptcha/api.js?onload=\" + callbackName + \"&render=explicit\";\n}\n\nexport default makeAsyncScriptLoader(getURL, {\n  callbackName: callbackName,\n  globalName: globalName\n})(ReCAPTCHA);","import RecaptchaWrapper from \"./recaptcha-wrapper\";\nimport ReCAPTCHA from \"./recaptcha\";\nexport default RecaptchaWrapper;\nexport { ReCAPTCHA };"],"names":["Headline","className","supportingText","joinLink","isStacked","children","headlineClassName","rest","div","cx","h1","span","Link","url","linkClassName","text","ProgressTracker","steps","activeStep","isRtl","displayMobile","useTranslation","t","widthPercent","parseFloat","length","toFixed","getSteps","React","map","step","isActive","id","data-testid","p","find","current","total","style","width","containerStyles","ltr","rtl","shared","trackerLineStyles","guestInfo","country","DataSubjectRightsForm","remoteIp","setBannerContent","isReCaptchaEnabled","language","useLanguage","router","useRouter","useAuth","isAuthenticated","logout","useState","showModal","setShowModal","location","useLocation","mutateAsync","useCreateGuestGdprMutation","form","useForm","mode","criteriaMode","defaultValues","code","request","access","correct","remove","object","restrict","get","withdraw","requestToDeleteConf","requestComments","firstName","lastName","phoneNumber","emailAddress","homeAddress","comments","hotelName","ctyhocn","relationshipWithHilton","hhonorsNumber","hhonors","requestFor","requestForSomeoneElse","confNumber","arrivalDate","reCaptcha","watch","formState","setValue","handleSubmit","setError","reset","clearErrors","getValues","register","setFocus","errors","isSubmitting","hotelInputValue","useMemo","parseCtyhocnFromPlaceId","handleTimeout","useCallback","push","shallow","catch","error","logError","generateError","message","type","useIdleTimer","timeout","IDLE_TIMEOUT","onIdle","getLoginRedirectUrl","asPath","query","Error","window","assign","getModalContent","handleCancel","handleAccept","ActionDialog","isOpen","onDismiss","onConfirm","onCancel","title","buttonOptions","cancel","label","confirm","isThereAnyCheckboxSelected","Object","isAnyCheckboxSelected","values","every","value","onSubmit","data","afterSubmit","hasError","scrollTo","top","submitDSRForm","CreateGuestGdprDocument","guestGdprInput","name","recaptchaInput","countryCode","recaptchaToken","version","useEffect","required","getErrorMessage","field","svg","role","aria-hidden","height","viewBox","g","fill","circle","cy","r","transform","stroke","strokeLinecap","path","d","strokeWidth","FormProvider","noValidate","method","h3","button","onClick","section","fieldset","displayRightsType","possibleRights","filter","item","includes","fieldName","input","aria-labelledby","shouldUnregister","undefined","FormTextarea","maxLength","optional","containerClassName","registerOptions","labelClassName","legend","FormInput","defaultChecked","onChange","autoComplete","AutoComplete","GIVENNAME","pattern","validator","FAMILYNAME","TELNATIONAL","EMAIL","STREETADDRESS","helpMessage","shouldFocus","b","Trans","i18nKey","Location","autocompleteUri","placeIdFieldName","validate","ReCAPTCHA","sitekey","env","shouldTouch","onExpired","onErrored","disabled","isValid","FORM_FIELDS","applicableRelationships","header","confirmationSubfield","labelKey","Checkboxes","relationshipType","useFormContext","index","autoFocus","strong","deps","areAnyCheckboxesInGroupSelected","CaliforniaPartialForm","relationshipToHilton","readOnly","hidden","checkboxValues","some","keys","forEach","checkboxName","USForm","PersonalDataRequestForm","state","isRelationshipToHiltonEnabled","useMetrics","metrics","nosell","nosellBehavioralMarketing","nosellHGV","nosellTravelAndHospitality","optIn","optInHGV","optInTravelAndHospitality","requestToDelete","requestToKnow","requestToBackInSale","hiltonTeamMemberId","safeError","then","submitPDRForm","teamMemberId","employeeIdentificationNumber","guest","jobApplicant","contractorSupplierVendor","trackEvent","operationName","NevadaPartialForm","activeStates","br","hl","RegionSelector","selectedCountry","countries","stateCode","isStateError","isCountryError","setCountryCode","setStateCode","setIsStateError","setIsCountryError","setRelationshipType","handleCountryChange","event","hasStates","c","target","states","personalDataRequest","dataSubjectRights","handleRelationshipChange","handleStateChange","selectedState","s","htmlFor","select","aria-label","defaultValue","option","data-e2e","aria-live","a","href","PersonalDataRequests","props","countryError","bannerContent","Number","useRef","useFeatureTogglesQuery","flags","NHCGUEST_506","HIDE_SECURITI_AI","ENABLE_ADD_RELATIONSHIP_WITH_HILTON","reCaptchaEnabled","featureTogglesData","isFeatureEnabled","featureToggles","useBrand_CountriesQuery","getStates","stepsText","returnObjects","pop","Head","script","src","async","defer","BannerNotification","status","DsrForm","ADDRESSLINE1","ADDRESSLINE2","CITY","COUNTRY","CURRENTPASSWORD","NAME","NEWPASSWORD","OFF","POSTALCODE","STATE","TEL","USERNAME","CREDITCARD","isDev","process","getTierContextByLevel","tier","placeId","split","toUpperCase"],"sourceRoot":"","ignoreList":[10,11,12,13]}