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A,YAAqB,aAAiB,qBACtC,SAAkC,SAAG,IAAiC,gDAAsE,SAAG,IAAkB,WAA4C,EAAG,CAChN,EAEA,GAEA,EAA4B,YAAgB,SAC5C,IACA,QACA,eACA,qBACA,CAAK,CACL,KACA,CAAI,EACJ,SAAiC,OAAoB,EACrD,OACA,cACA,UACA,CAAG,EACH,EAAyB,aAAiB,CAC1C,uBACA,KAEA,EAA0B,aAAiB,CAC3C,iCACA,KAEA,MAAyB,SAAG,CAC5B,EACA,CACA,yBACA,QACA,aACA,cACA,SAAgC,SAAG,IAAiC,iDAA4E,SAAG,IAAkB,WAA8C,EAAG,CACtN,EAEA,CAAC,EACD,WACA,EAAoB,YAAgB,CACpC,QACA,qBAAY,kDAA+E,EAC3F,EAAyB,QAAY,OACrC,EAAyB,OAAe,MACxC,OAEA,UADsB,QAAY,IAElC,EAA0B,OAAoB,iBAC9C,6BACA,eACA,0CACA,oCACA,WACA,iBACA,mBACA,QAEA,MACA,OACA,QACA,GACA,GALA,CAKA,CAEA,EACA,OACA,QATA,GAWA,KAEA,EACA,cACA,WACA,EAhBA,EAiBA,KACA,WACA,IACA,KACA,kBACA,mBACA,EACA,IAEA,KAGA,KACA,iBACA,gBACA,IAEA,KACA,iBACA,mBACA,EACA,IAEA,KAGA,KACA,eACA,gBACA,GAGA,CACA,SACA,0BACA,CAAK,EACL,MAA2B,SAAG,CAC9B,EACA,CACA,QACA,WACA,YACA,cACA,SAAkC,SAAG,SAAoB,iBAAmD,SAAG,CACrG,IAAS,KACnB,CACA,KACA,qBACA,MACA,oBACA,EACA,CAAW,CACX,EAEA,GAEA,kBACA,WACA,EAAoB,YAAgB,CACpC,QACA,qBAAY,gBAAiD,EAC7D,SACA,SACA,OACA,EAAsB,OAAK,GAC3B,6BACA,yBACA,MAA2B,SAAG,CAC9B,EACA,CACA,QACA,OACA,WACA,YACA,SAAkC,SAAG,CDhErC,ECkEA,CACA,iCACA,aAA0B,GAAQ,GAClC,KACA,EAFkC,CAElC,EACA,MACA,WACA,OACA,iBACA,EACA,gBAEA,gBAEA,CACA,EAEA,EAEA,GAEA,gBACA,wBACA,EAAsB,YAAgB,CACtC,QACA,qBAAY,QAAmC,EAC/C,SACA,SACA,MAA2B,SAAG,CACxB,IAAS,IACf,CACA,iCACA,aAAsB,GAAQ,QAC9B,EAD8B,cAC9B,qBACA,KACA,KACA,EAEA,GAEA,gBACA,IAAI,EAAY,mBAChB,EAAuB,YAAgB,CACvC,QACA,qBAAY,QAAoC,EAChD,SACA,IAAgD,EAAY,GAC5D,IAA8D,EAAY,GAC1E,GAF4D,CAE5D,GACA,KAF0E,CAE/C,SAAG,aAAwB,iBAAmD,SAAG,CDlH5G,ECoHA,CACA,+CACA,iCACA,eACA,KACA,KACA,KACA,EACA,CAAO,CACP,EAEA,eAA+B,EAC/B,IAAI,EAAY,SAD2B,MAC3B,IAChB,GAAuB,YAAgB,CACvC,QACA,qBAAY,QAAoC,EAChD,SACA,IAAgD,EAAY,GAC5D,OACA,KAF4D,CAEjC,SAAG,CDtI9B,ECwIA,CACA,cACA,8BACA,iCACA,KACA,KACA,MACA,OACA,6EACA,2EACA,WAEA,EAEA,GAGA,SAAS,GAAQ,GACjB,OADiB,EACjB,eACA,CAHA,eAA+B,EAI/B,SACA,KACA,CAN2C,EAM3C,EACA,KACA","sources":["webpack://_N_E/?b4c8","webpack://_N_E/./components/HonorsRewardsProgram/ProgramFaqs.tsx","webpack://_N_E/./components/HonorsRewardsProgram/MembershipOverview.tsx","webpack://_N_E/./components/HonorsRewardsProgram/AppPromotion.tsx","webpack://_N_E/./components/HonorsRewardsProgram/BenefitTable.tsx","webpack://_N_E/./components/HonorsRewardsProgram/BenefitsOverview.tsx","webpack://_N_E/./components/HonorsRewardsProgram/HiltonHonorsRewardsHeader.tsx","webpack://_N_E/./components/HonorsRewardsProgram/index.tsx","webpack://_N_E/./pages/hilton-honors-rewards-program/index.tsx","webpack://_N_E/../../libs/osc/accordion/src/lib/accordion.tsx","webpack://_N_E/../../libs/osc/accordion/src/index.ts","webpack://_N_E/../../node_modules/.pnpm/@radix-ui+react-collapsible@1.1.3_@types+react-dom@18.3.1_@types+react@18.3.18_react-do_b573f2f14753c843b813a0cea82ea3f0/node_modules/@radix-ui/react-collapsible/dist/index.mjs","webpack://_N_E/../../node_modules/.pnpm/@radix-ui+react-accordion@1.2.3_@types+react-dom@18.3.1_@types+react@18.3.18_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@radix-ui/react-accordion/dist/index.mjs"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/hilton-honors-rewards-program\",\n function () {\n return require(\"private-next-pages/hilton-honors-rewards-program/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/hilton-honors-rewards-program\"])\n });\n }\n ","import { Accordion } from '@dx-ui/osc-accordion';\nimport type { Item } from '@dx-ui/osc-accordion';\nimport { Markdown } from '@dx-ui/osc-markdown';\nimport { env } from '@dx-ui/framework-env';\nimport { useLanguage } from '../../hooks';\nimport type { CmsFaqQuery } from '@dx-ui/queries-dx-guests-ui';\n\ntype HonorsRewardsProgramFaqProps = {\n cmsFaqData: CmsFaqQuery;\n};\n\nconst DivElement = ({ children }: { children: React.ReactNode }) => (\n <div className=\"md:w-10/12\">{children}</div>\n);\n\nexport const ProgramFaqs = ({ cmsFaqData }: HonorsRewardsProgramFaqProps) => {\n const language = useLanguage();\n const faqContent = cmsFaqData?.faq?.subTopic?.[0]?.faqContent;\n\n const items = faqContent?.map(({ question, answer, _id }, idx) => ({\n collapsedButtonLabel: question,\n expandedButtonLabel: question,\n key: _id ?? idx.toString(),\n content: (\n <Markdown\n language={language}\n origin={env('OHW_BASE_URL')}\n options={{\n overrides: {\n a: {\n props: {\n className: 'text-primary hover:text-primary-alt',\n isNewWindow: true,\n },\n },\n },\n wrapper: DivElement,\n forceWrapper: true,\n }}\n >\n {answer?.join('\\n')}\n </Markdown>\n ),\n })) as Item[];\n\n return (\n <div className=\"w-full\">\n <h2 className=\"font-headline text-4xl md:text-center md:text-5xl\">\n {cmsFaqData?.faq?.title}\n </h2>\n <div className=\"mt-7 md:mt-8\">\n <Accordion\n className=\"accordion-stacked !border-primary border-b text-left\"\n items={items}\n containerClassName=\"pt-4 pb-6\"\n variant=\"stacked\"\n type=\"multiple\"\n />\n </div>\n </div>\n );\n};\n","import type { BrandRewardProgramData } from '../../pages/hilton-honors-rewards-program/index';\n\nexport const MembershipOverview = ({\n membershipData,\n}: {\n membershipData: BrandRewardProgramData['membershipOverview'];\n}) => {\n if (!membershipData) {\n return null;\n }\n\n return (\n <div className=\"container\">\n <div className=\"flex flex-col gap-12 lg:flex-row lg:gap-8 xl:gap-20\">\n {membershipData?.map(({ _id, headline, shortDescription }, index) => (\n <div key={_id} className=\"flex w-full flex-row gap-6 lg:flex-col lg:gap-9\">\n <div className=\"after:bg-bg-light relative size-20 shrink-0 after:block after:h-0 after:w-full after:rounded-full after:pb-[100%] lg:h-auto lg:w-full lg:drop-shadow-[0_4px_4px_rgba(0,0,0,0.25)] \">\n <div className=\"absolute inset-y-0 left-0 size-full\">\n <div className=\"flex size-full items-center justify-center text-center lg:block lg:px-4 lg:py-10 xl:px-[2.2rem]\">\n <span className=\"font-headline text-5xl lg:text-4xl\">{index + 1}</span>\n <h3\n className=\"font-headline mt-4 hidden lg:block lg:text-3xl xl:text-4xl\"\n data-testid={_id}\n aria-label={`${index + 1} ${headline}`}\n >\n {headline}\n </h3>\n </div>\n </div>\n </div>\n <div className=\"lg:w-full\">\n <h3\n className=\"text-xl font-extrabold lg:hidden\"\n aria-label={`${index + 1} ${headline}`}\n >\n {headline}\n </h3>\n <p className=\"text-lg\">{shortDescription}</p>\n </div>\n </div>\n ))}\n </div>\n </div>\n );\n};\n","import { useTranslation } from 'next-i18next';\nimport Image from 'next/image';\nimport type { BrandRewardProgramQuery } from '@dx-ui/queries-dx-guests-ui';\n\ntype AppPromotionProps = {\n appPromotionData: NonNullable<\n NonNullable<\n NonNullable<NonNullable<BrandRewardProgramQuery['brand']>['page']>['halfAndHalf']\n >[number]\n >;\n};\n\nexport const AppPromotion = ({ appPromotionData }: AppPromotionProps) => {\n const [t] = useTranslation('hilton-honors-rewards-program');\n const content = appPromotionData?.items?.[0];\n\n return (\n <div\n style={{ backgroundImage: \"url('/dx_guests_app/images/darkpipe.svg')\" }}\n className=\"bg-no-repeat\"\n >\n <div className=\"container py-16 lg:py-20\">\n <div className=\"flex flex-col lg:flex-row\">\n <div className=\"flex justify-center lg:basis-2/5 lg:justify-end\">\n <div className=\"relative h-80 w-64 lg:h-96 lg:w-80\">\n <Image\n src=\"/dx_guests_app/images/hhonors-mobile-app.png\"\n alt=\"\"\n className=\"object-contain\"\n fill\n />\n </div>\n </div>\n <div className=\"mt-8 lg:mt-0 lg:flex-1 lg:px-20\">\n <h2 className=\"font-headline mb-8 text-center text-4xl lg:mb-10 lg:text-5xl\">\n {content?.headline}\n </h2>\n <p className=\"text-xl lg:px-8\">{content?.shortDescription}</p>\n <div className=\"mt-8 flex flex-col space-y-4 md:flex-row md:justify-center md:space-x-8 md:space-y-0\">\n <div className=\"text-center\">\n <a\n href=\"https://hilton.app.link/KCaYrLwruJb\"\n className=\"inline-block\"\n aria-label={t('downloadIosAppA11y')}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <Image\n src=\"/dx_guests_app/images/phones/apple-store.svg\"\n alt=\"\"\n width={220}\n height={74}\n />\n </a>\n </div>\n <div className=\"text-center\">\n <a\n href=\"https://hilton.app.link/cZEMfpKruJb\"\n className=\"inline-block\"\n aria-label={t('downloadAndroidAppA11y')}\n target=\"_blank\"\n rel=\"noopener noreferrer\"\n >\n <Image\n src=\"/dx_guests_app/images/phones/google-store.svg\"\n alt=\"\"\n width={244}\n height={64}\n />\n </a>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n","import { Icon } from '@dx-ui/osc-icon';\nimport { useTranslation } from 'next-i18next';\n\nimport type { IconNames } from '@dx-ui/osc-icon';\nimport { useMediaQuery } from 'usehooks-ts';\nimport type { BenefitsOverviewProps } from './BenefitsOverview';\n\nexport type BenefitTableProps = {\n headline: string;\n tiers?: BenefitsOverviewProps['tiers'];\n rows: string[][];\n index: number;\n};\n\nconst iconMap: { [key: number | string]: (typeof IconNames)[number] } = {\n 0: 'luxury',\n 1: 'points',\n 2: 'bed',\n 3: 'hotel',\n 4: 'airport',\n add: 'add',\n};\n\nconst TableData = ({\n color,\n content,\n tier,\n}: {\n color: string;\n content?: string;\n tier?: string;\n}) => {\n const [t] = useTranslation('hilton-honors-rewards-program');\n const contentTrimmed = content?.trim() || '';\n\n return (\n <td className={`border-bg h-10 border-x-2 ${color} text-center`} role=\"cell\">\n {(() => {\n switch (contentTrimmed) {\n case '':\n return <p className=\"sr-only\">{`${tier} ${t('notIncluded')}`}</p>;\n case '*':\n return (\n <>\n <Icon className=\"mx-auto size-6 content-center pl-1.5 pt-1\" name=\"circle-filled\" />\n <p className=\"sr-only\">{`${tier} ${t('included')}`}</p>\n </>\n );\n default:\n return (\n <>\n <section aria-hidden=\"true\" className=\"font-sans text-sm md:text-base\">\n {contentTrimmed}\n </section>\n <p className=\"sr-only\">{`${tier} ${content}`}</p>\n </>\n );\n }\n })()}\n </td>\n );\n};\n\nexport const BenefitTable = ({ headline, tiers, rows, index }: BenefitTableProps) => {\n const isMobile = useMediaQuery('(max-width: 649px)');\n return (\n <table className=\"mb-8 w-full table-fixed\">\n <thead>\n <tr>\n <th className=\"w-24 sm:w-56 md:w-72\" scope=\"col\">\n <span className=\"flex items-end font-sans text-base font-bold md:items-center md:text-lg\">\n <Icon name={iconMap[index] || 'add'} className=\"me-1\" size={isMobile ? 'xs' : 'md'} />\n {headline}\n </span>\n </th>\n <th scope=\"col\" className=\"font-sans text-xs font-bold md:text-base\">\n {tiers?.member}\n </th>\n <th scope=\"col\" className=\"border-bg border-r-2 font-sans text-xs font-bold md:text-base\">\n {tiers?.silver}\n </th>\n <th scope=\"col\" className=\"font-sans text-xs font-bold md:text-base\">\n {tiers?.gold}\n </th>\n <th scope=\"col\" className=\"font-sans text-xs font-bold md:text-base\">\n {tiers?.diamond}\n </th>\n </tr>\n </thead>\n <tbody>\n {rows?.map((benefitData, index) => (\n // eslint-disable-next-line react/no-array-index-key\n <tr key={index} className=\"border-bg border-y-4\">\n <th\n scope=\"row\"\n className=\"bg-bg-alt h-10 py-2 ps-1 text-left font-sans text-sm font-normal sm:ps-8 sm:text-base\"\n >\n {benefitData?.[0]}\n </th>\n <TableData color=\"bg-tier-member/40\" content={benefitData?.[1]} tier={tiers?.member} />\n <TableData color=\"bg-tier-silver/40\" content={benefitData?.[2]} tier={tiers?.silver} />\n <TableData color=\"bg-tier-gold/40\" content={benefitData?.[3]} tier={tiers?.gold} />\n <TableData\n color=\"bg-tier-diamond/40\"\n content={benefitData?.[4]}\n tier={tiers?.diamond}\n />\n </tr>\n ))}\n </tbody>\n </table>\n );\n};\n","import { Link } from '@dx-ui/osc-link';\nimport { useTranslation } from 'next-i18next';\n\nimport { useLanguage } from '../../hooks';\nimport { BenefitTable } from './BenefitTable';\n\nimport type { BrandRewardProgramData } from '../../pages/hilton-honors-rewards-program';\nimport type { BenefitTableProps } from './BenefitTable';\nexport type BenefitsOverviewProps = {\n headline: string;\n tiers: {\n member: string;\n silver: string;\n gold: string;\n diamond: string;\n };\n benefitTables: BenefitTableProps[];\n};\n\nexport const BenefitsOverview = ({\n benefitsOverview,\n}: {\n benefitsOverview: BrandRewardProgramData['benefitsOverview'];\n}) => {\n const language = useLanguage();\n const [t] = useTranslation('hilton-honors-rewards-program');\n\n return (\n <section data-testid=\"perkContent\" className=\"pb-12 text-center lg:pb-16 lg:pt-9\">\n <h2 className=\"font-headline text-center text-4xl md:text-5xl\">\n {benefitsOverview?.headline}\n </h2>\n <div className=\"mt-12 lg:mx-52\">\n {benefitsOverview?.benefitTables?.map(({ headline, rows }, index) => (\n <BenefitTable\n key={headline}\n headline={headline}\n tiers={benefitsOverview.tiers}\n index={index}\n rows={rows}\n />\n ))}\n </div>\n <Link\n className=\"text-primary hover:text-primary-alt text-center text-3xl\"\n url={`/${language}/hilton-honors/member-benefits/`}\n >\n {t('exploreAllBenefits.text')}\n </Link>\n </section>\n );\n};\n","import { Link } from '@dx-ui/osc-link';\nimport type { Multimedia } from '@dx-ui/osc-video-player';\nimport { VideoPlayer, mapMultimediaListToVideoProps } from '@dx-ui/osc-video-player';\nimport Image from 'next/image';\nimport type { BrandRewardProgramData } from '../../pages/hilton-honors-rewards-program/index';\nimport { getAssetUrl } from '../../utils/helpers/urlBuilder';\n\nexport const HiltonHonorsRewardsHeader = ({\n headerData,\n}: {\n headerData: BrandRewardProgramData['hiltonHeaderData'];\n}) => {\n const { headline, shortDescription, link, multimediaCompound } = headerData;\n const multimedia = multimediaCompound?.items?.map((item) => {\n return {\n ...item,\n multimediaMetadata: item?.metadata,\n };\n }) as unknown as Multimedia[];\n\n const mappedPage = { brandCode: 'HH' };\n const videoPlayerProps = multimedia?.length\n ? mapMultimediaListToVideoProps({ multimedia, mappedPage })\n : undefined;\n\n const {\n isAutoPlay,\n transcriptTracks,\n captionTracks,\n orientation,\n posterImageUrl,\n videoUrl,\n videoName,\n videoGroup,\n } = videoPlayerProps ?? {};\n\n return (\n <section className=\"bg-primary pb-12 pt-8 lg:pb-44 lg:pt-14\" data-testid=\"hiltonHeader\">\n <div className=\"container-fluid flex size-full flex-col lg:flex-row\">\n <div className=\"flex-1/2\">\n <div className=\"relative mb-2 size-16 w-full\">\n <Image src={getAssetUrl(`/svgs/logos/HH_inverted.svg`)} alt=\"Hilton Honors Logo\" fill />\n </div>\n <div className=\"md:px-6\">\n <h1 className=\"font-headline text-text-inverse mt-4 text-center text-5xl md:mt-0 md:text-7xl\">\n {headline}\n </h1>\n <h2 className=\"text-text-inverse mb-3 mt-6 text-center text-3xl font-normal md:text-4xl\">\n {shortDescription}\n </h2>\n </div>\n <div className=\" flex justify-center py-1 md:py-3\">\n <Link\n url={link?.url as string}\n isNewWindow={link?.isNewWindow ?? false}\n adaDescription={link?.adaDescription as string}\n cidParams={{\n campaignId: link?.campaignId as string,\n componentName: 'HiltonHonorsRewardsHeader',\n }}\n className=\"btn btn-2xl btn-primary bg-highlight border-highlight hover:bg-bg hover:border-bg hover:text-primary text-text-inverse px-16 text-center text-lg no-underline\"\n >\n {link?.label}\n </Link>\n </div>\n </div>\n <div className=\"flex-1/2 mt-9 flex items-center justify-center md:mt-0\">\n <div className=\"md:max-w-6/7 w-full py-2 lg:py-0\">\n <div className=\"mb-8 sm:mb-0\">\n <VideoPlayer\n videoUrl={videoUrl as string}\n videoName={videoName}\n posterImageUrl={posterImageUrl}\n orientation={orientation}\n captionTracks={captionTracks}\n transcriptTracks={transcriptTracks}\n isAutoPlay={isAutoPlay}\n videoGroup={videoGroup}\n className=\"rounded-2xl\"\n videoId=\"video-splash-Header\"\n videoTranscriptProps={{ className: 'rounded-2xl mt-2' }}\n />\n </div>\n </div>\n </div>\n </div>\n </section>\n );\n};\n","export * from './ProgramFaqs';\nexport * from './MembershipOverview';\nexport * from './AppPromotion';\nexport * from './BenefitsOverview';\nexport * from './HiltonHonorsRewardsHeader';\n","import { makeServerQueryClient } from '@dx-ui/framework-react-query';\nimport { Trans, useTranslation } from 'next-i18next';\nimport { env } from '@dx-ui/framework-env';\nimport Head from 'next/head';\nimport { useRouter } from 'next/router';\n\nimport Icon from '@dx-ui/osc-icon';\nimport { Link } from '@dx-ui/osc-link';\nimport {\n AppPromotion,\n BenefitsOverview,\n HiltonHonorsRewardsHeader,\n MembershipOverview,\n ProgramFaqs,\n} from '../../components/HonorsRewardsProgram/';\nimport type { BenefitsOverviewProps } from '../../components/HonorsRewardsProgram/BenefitsOverview';\nimport { REACT_QUERY_CONFIG } from '../../config/react-query';\nimport {\n serverSideBrandRewardProgramQuery,\n serverSideCmsFaqQuery,\n useBrandRewardProgramQuery,\n useCmsFaqQuery,\n} from '@dx-ui/queries-dx-guests-ui';\nimport type {\n BrandLink,\n BrandMultimediaCompound,\n BrandRewardProgramQuery,\n} 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 { show404NonTransPage } from '../../utils/helpers/show404NonTransPage';\nimport type { BenefitTableProps } from '../../components/HonorsRewardsProgram/BenefitTable';\nimport { logError, logWarning } from '@dx-ui/framework-logger';\nimport { generateError } from '@dx-ui/utilities-generate-error';\n\nexport type BrandRewardProgramData = {\n join: {\n headline: string;\n link: BrandLink;\n };\n benefitsOverview: BenefitsOverviewProps;\n membershipOverview: {\n _id: string;\n headline: string;\n shortDescription: string;\n }[];\n contactSection: {\n heading: string;\n description: string;\n };\n hiltonHeaderData: {\n multimediaCompound: BrandMultimediaCompound;\n headline: string;\n shortDescription: string;\n link: BrandLink;\n };\n};\n\nconst NormalizeBrandRewardProgramData = (\n data?: BrandRewardProgramQuery\n): BrandRewardProgramData => {\n if (!data) return {} as BrandRewardProgramData;\n\n const hiltonHonorsJoinData = data?.brand?.page?.imageHeadliner?.[0]?.items?.[0];\n const benefitData = data?.brand?.page?.multicolumnText?.[0];\n const membershipOverview = data?.brand?.page?.rotatingTiles?.[0];\n const contactSection = data?.brand?.page?.textBlock?.[0];\n const hiltonHeaderData = data?.brand?.page?.carousel[0]?.items[0];\n const [member, silver, gold, diamond] =\n (data?.brand?.page?.multicolumnText?.[0]?.items?.[0]?.items?.[0]?.contentBlock?.[0]?.heading?.map(\n (h) => h.value\n ) || ['member', 'silver', 'gold', 'diamond']) as [string, string, string, string];\n const normalizedData: BrandRewardProgramData = {\n join: {\n headline: hiltonHonorsJoinData?.headline || '',\n link: { ...hiltonHonorsJoinData?.link },\n },\n benefitsOverview: {\n headline: benefitData?.headline || '',\n tiers: {\n member,\n silver,\n gold,\n diamond,\n },\n benefitTables: (benefitData?.items?.map(({ headline, items }, index) => {\n return {\n headline: headline || '',\n rows: items?.map((item) =>\n item?.contentBlock?.[0]?.description?.map(({ value }) => value)\n ),\n index,\n };\n }) || []) as BenefitTableProps[],\n },\n membershipOverview:\n membershipOverview?.items?.map(({ _id, headline, shortDescription }) => {\n return {\n _id: _id || '',\n headline: headline || '',\n shortDescription: shortDescription || '',\n };\n }) || [],\n contactSection: {\n heading: contactSection?.heading[0]?.value || '',\n description: contactSection?.description[0]?.value || '',\n },\n hiltonHeaderData: {\n multimediaCompound: hiltonHeaderData?.multimediaCompound as BrandMultimediaCompound,\n headline: hiltonHeaderData?.headline || '',\n shortDescription: hiltonHeaderData?.shortDescription || '',\n link: hiltonHeaderData?.link as BrandLink,\n },\n };\n\n return normalizedData;\n};\n\nconst HiltonHonorsRewardsProgram = () => {\n const [t] = useTranslation('hilton-honors-rewards-program');\n const { locale } = useRouter();\n const { data, error } = useBrandRewardProgramQuery({\n brandCode: 'HH',\n path: 'hilton-honors-rewards-program',\n language: locale as string,\n });\n const normalizedBrandRewardProgramData = NormalizeBrandRewardProgramData(data);\n\n const { data: cmsFaqData, error: cmsDataError } = useCmsFaqQuery({\n language: locale as string,\n faqType: 'rewardProgram',\n });\n\n const HiltonHonorsJoin = () => {\n return (\n <section className=\" bg-primary py-7\" data-testid=\"hilton-honors-join-section\">\n <div className=\"container-fluid flex flex-col items-center justify-center md:flex-row md:space-x-6\">\n <h2 className=\"font-headline text-text-inverse mb-4 mt-3 px-4 text-center text-3xl md:my-0 md:text-4xl\">\n {normalizedBrandRewardProgramData?.join?.headline}\n </h2>\n <Link\n url={normalizedBrandRewardProgramData?.join?.link?.url as string}\n isNewWindow={normalizedBrandRewardProgramData?.join?.link?.isNewWindow ?? false}\n adaDescription={normalizedBrandRewardProgramData?.join?.link?.adaDescription as string}\n cidParams={{\n campaignId: normalizedBrandRewardProgramData?.join?.link?.campaignId as string,\n componentName: 'HiltonHonorsJoin',\n }}\n className=\"btn btn-2xl btn-primary text-text-inverse bg-highlight border-highlight hover:bg-bg hover:border-bg hover:text-primary my-3 min-w-80 text-center text-lg no-underline\"\n >\n {normalizedBrandRewardProgramData?.join?.link?.label}\n </Link>\n </div>\n </section>\n );\n };\n\n const appPromotionData = data?.brand?.page?.halfAndHalf?.[0];\n\n if (error) {\n logError(\n 'HONORS_REWARDS_PROGRAM',\n generateError(error),\n `Error on ${useBrandRewardProgramQuery.name}`\n );\n }\n if (cmsDataError) {\n logWarning(\n 'HONORS_REWARDS_PROGRAM',\n generateError(cmsDataError),\n `Error on ${useCmsFaqQuery.name}`\n );\n }\n\n return (\n <>\n <Head>\n <link rel=\"canonical\" href={`${env('OHW_BASE_URL')}${locale}/hilton-honors/`} />\n <meta name=\"description\" content={t('meta_description')} />\n <meta name=\"keywords\" content={t('meta_keywords')} />\n <title key=\"title\">{t('title')}</title>\n </Head>\n <HiltonHonorsRewardsHeader headerData={normalizedBrandRewardProgramData?.hiltonHeaderData} />\n <div className=\"container\">\n <section className=\"py-12 lg:-mt-24 lg:pb-16 lg:pt-0\">\n {normalizedBrandRewardProgramData?.membershipOverview ? (\n <MembershipOverview\n membershipData={normalizedBrandRewardProgramData.membershipOverview}\n />\n ) : null}\n </section>\n <BenefitsOverview benefitsOverview={normalizedBrandRewardProgramData?.benefitsOverview} />\n </div>\n <HiltonHonorsJoin />\n {appPromotionData ? <AppPromotion appPromotionData={appPromotionData} /> : null}\n <section className=\"bg-bg-light py-8\">\n <div className=\"container\">\n {cmsFaqData ? <ProgramFaqs cmsFaqData={cmsFaqData} /> : null}\n <div className=\"mt-10 flex flex-col space-y-4 md:mb-4 md:mt-12 md:flex-row\">\n <div className=\"mb-2 flex w-full flex-col md:mb-0\">\n <h3 className=\"font-headline text-3xl\">\n {normalizedBrandRewardProgramData?.contactSection?.heading}\n </h3>\n <p>{normalizedBrandRewardProgramData?.contactSection?.description}</p>\n </div>\n <div className=\"inline-flex w-full justify-between md:justify-end md:space-x-4\">\n <Link\n adaDescription={t('getInTouch.chatNow')}\n url=\"#hilton-chat-root\"\n className=\"btn btn-primary flex items-center space-x-2\"\n underline={false}\n >\n <Icon name=\"contact\" variant=\"solid\" size=\"sm\" />\n <span className=\"p-1 text-sm\">{t('getInTouch.chatNow')}</span>\n </Link>\n <Link\n adaDescription={t('getInTouch.requestCall')}\n url=\"#callme-wrapper\"\n className=\"btn btn-primary flex items-center space-x-2\"\n underline={false}\n >\n <Icon name=\"telephone\" variant=\"solid\" size=\"sm\" />\n <span className=\"p-1 text-sm\">{t('getInTouch.requestCall')}</span>\n </Link>\n </div>\n </div>\n </div>\n </section>\n <section className=\"container\">\n <article className=\"mb-10\">\n <p className=\"mt-4 text-sm\">{t('fifthNight')}</p>\n <p className=\"mt-4 text-sm\">\n <Trans i18nKey=\"disclaimer\" t={t}>\n <Link\n url={`/${locale}/hilton-honors/benefit-terms/`}\n isNewWindow={true}\n className=\"text-primary hover:text-primary-alt text-sm\"\n underline={false}\n />\n <Link\n url={`/${locale}/hilton-honors/terms/`}\n isNewWindow={true}\n className=\"text-primary hover:text-primary-alt text-sm\"\n underline={false}\n />\n <Link\n url={`/${locale}/hilton-honors/terms/`}\n isNewWindow={true}\n className=\"text-primary hover:text-primary-alt text-sm\"\n underline={false}\n />\n <Link\n url={`/${locale}/hilton-honors/benefit-terms/`}\n isNewWindow={true}\n className=\"text-primary hover:text-primary-alt text-sm\"\n underline={false}\n />\n </Trans>\n </p>\n </article>\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 await Promise.all([\n serverSideBrandRewardProgramQuery(queryClient, {\n brandCode: 'HH',\n path: 'hilton-honors-rewards-program',\n language: locale,\n }),\n serverSideCmsFaqQuery(queryClient, {\n language: locale,\n faqType: 'rewardProgram',\n }),\n ]);\n\n return serverSideProps({\n authClient,\n queryClient,\n context,\n pageProps: {\n metrics: {\n trackingData: {\n pageView: 'honorsPageView',\n pageData: {\n pageName: 'Hilton Honors Rewards Program',\n expType: 'New Hilton',\n pageType: 'Hilton Honors Rewards Program',\n },\n },\n },\n hasCustomCanonicalUrl: true,\n },\n namespaces: [...GLOBAL_RESOURCE_BUNDLES, 'hilton-honors-rewards-program', 'osc-video-player'],\n });\n}) satisfies GetServerSideProps;\n\nexport default HiltonHonorsRewardsProgram;\n","import * as React from 'react';\nimport * as RadixAccordion from '@radix-ui/react-accordion';\nimport { useTranslation } from 'next-i18next';\nimport cx from 'classnames';\nimport Icon from '@dx-ui/osc-icon';\nimport { getLanguageDirection } from '@dx-ui/utilities-get-language-direction';\nimport { useRouter } from 'next/router';\n\nexport type HeadingLevel = 'h2' | 'h3' | 'h4' | 'h5' | 'h6';\n\nexport type Item = {\n /**\n * Content that will be displayed when the accordion is expanded\n */\n content: React.ReactNode;\n /** Trigger text to display hidden content\n *\n * Defaults to “Openâ€\n */\n collapsedButtonLabel?: string | React.ReactNode;\n /** Screen-reader only trigger text to display hidden content\n */\n collapsedButtonAccessibleLabel?: string;\n /**\n * Applies to Accordion when it is not expanded\n */\n collapsedClassName?: string;\n /**\n * Screen-reader only trigger text to hide displayed content\n */\n expandedButtonAccessibleLabel?: string;\n /** Trigger text to hide displayed content\n *\n * Defaults to “Closeâ€\n */\n expandedButtonLabel?: string | React.ReactNode;\n /**\n * Applies to Accordion when it is expanded\n */\n expandedClassName?: string;\n /**\n * Styles for the wrapper(div) of the accordion button\n */\n buttonWrapperClassName?: string;\n /** A stable key to identify the accordion */\n key: string;\n};\n\nexport type AccordionBase = {\n /** Classes apply to trigger button\n *\n * To style accordion content, apply relevant classes directly to passed-in children\n */\n className?: string;\n /** Accordion item including labels and content */\n items: Item[];\n /** Passed into `<section />` element that contains children\n */\n containerClassName?: string;\n /**\n * Optional heading level that should wrap the Accordion Trigger. Defaults to a span if undefined.\n */\n headingLevel?: HeadingLevel;\n /**\n * Controls the fill color for the indicator icon\n */\n iconIndicatorFillColor?: string;\n /**\n * Applies color when expanded\n */\n iconIndicatorExpandedFillColor?: string;\n /**\n * Controls whether children should be unmounted when accordion is collapsed\n */\n shouldUnmountChildrenWhenCollapsed?: boolean;\n /**\n * Controls accordion variant type, single or stacked. Defaults to single.\n *\n * Single - only one accordion can be expanded at a time (other accordion items will collapse)\n *\n * Multiple - multiple accordion items can be expanded at the same time. (other accordion items will remain expanded)\n */\n variant?: 'single' | 'stacked';\n};\n\nexport type AccordionProps = AccordionBase & React.ComponentProps<typeof RadixAccordion.Root>;\n\nconst setInitialExpandedAccordions = (items: Item[], defaultValue?: string | string[]) => {\n if (typeof defaultValue === 'string') {\n const isExpanded = defaultValue === items[0]?.key;\n return [isExpanded];\n }\n return Array.from({ length: items?.length }, (_, idx) => {\n return Boolean(defaultValue?.includes(items?.[idx]?.key ?? ''));\n });\n};\n/**\n *\n * An Accordion component based off of Radix UI's Accordion component. This component is used to display a list of items that can be expanded or collapsed to show or hide content. Root level component that rest props will pass to is <Accordion.Root />.\n * @see {@link Radix UI Accordion Documentation} https://www.radix-ui.com/primitives/docs/components/accordion\n */\nexport const Accordion = ({\n className,\n items,\n containerClassName,\n iconIndicatorFillColor,\n iconIndicatorExpandedFillColor,\n // eslint-disable-next-line @typescript-eslint/unbound-method -- This is a bug with radix definition using : void sytnax.\n onValueChange,\n variant = 'single',\n shouldUnmountChildrenWhenCollapsed = false,\n headingLevel,\n ...rest\n}: AccordionProps) => {\n const [uncontrolledExpandedAccordion, setUncontrolledExpandedAccordion] = React.useState(\n setInitialExpandedAccordions(items, rest.defaultValue)\n );\n\n const isUncontrolledComponent = !rest?.value;\n\n const { t } = useTranslation('osc-accordion');\n const { locale = 'en' } = useRouter();\n const languageDirection = getLanguageDirection(locale);\n\n const isStackedAccordion = variant === 'stacked';\n const handleIconType = isStackedAccordion ? 'arrowhead-down-circle' : 'arrowhead-small-down';\n const iconSize = isStackedAccordion ? 'lg' : 'md';\n\n /**\n *\n * Value can be string | string[] if `type` prop is `single` or `multiple` respectively.\n */\n const handleValueChange = (values: string | string[]) => {\n if (typeof values === 'string') {\n isUncontrolledComponent &&\n setUncontrolledExpandedAccordion([!uncontrolledExpandedAccordion[0]]);\n (onValueChange as (value: string) => void)?.(values);\n } else {\n isUncontrolledComponent &&\n setUncontrolledExpandedAccordion(\n uncontrolledExpandedAccordion.map((_, idx) => values.includes(items?.[idx]?.key ?? ''))\n );\n (onValueChange as (value: string[]) => void)?.(values);\n }\n };\n\n if (!items?.length) return null;\n\n return (\n <RadixAccordion.Root\n {...rest}\n dir={languageDirection}\n {...(rest.type === 'single' && { collapsible: true })}\n onValueChange={handleValueChange}\n >\n {items.map((item, idx) => {\n const isExpanded = isUncontrolledComponent\n ? uncontrolledExpandedAccordion[idx]\n : typeof rest?.value === 'string'\n ? rest?.value === item.key\n : !!rest?.value?.includes(item.key);\n\n const buttonLabel = isExpanded\n ? item?.expandedButtonLabel ?? t('close')\n : item?.collapsedButtonLabel ?? t('open');\n\n const accessibleButtonLabel = isExpanded\n ? item?.expandedButtonAccessibleLabel\n : item?.collapsedButtonAccessibleLabel;\n const iconVariant = isStackedAccordion && isExpanded ? 'solid' : 'regular';\n const shouldRenderChildren =\n !isExpanded && shouldUnmountChildrenWhenCollapsed ? false : true;\n\n return (\n <RadixAccordion.Item\n key={item.key}\n value={item.key}\n className={item.buttonWrapperClassName}\n data-osc=\"accordion-item\"\n >\n <RadixAccordion.Header asChild={true}>\n <TriggerWrapper as={headingLevel}>\n <RadixAccordion.Trigger asChild>\n <button\n type=\"button\"\n className={cx('items-center', className, {\n [item?.expandedClassName as string]: isExpanded && !!item?.expandedClassName,\n [item?.collapsedClassName as string]:\n !isExpanded && !!item?.collapsedClassName,\n })}\n data-osc={`accordion-trigger-${item.key}`}\n >\n <span aria-hidden={Boolean(accessibleButtonLabel)}>{buttonLabel}</span>\n {accessibleButtonLabel ? (\n <span className=\"sr-only\">{accessibleButtonLabel}</span>\n ) : null}\n <span\n className={cx(\n 'accordion-indicator-wrapper duration-150 ease-in-out motion-safe:transition',\n {\n '-rotate-180': isExpanded,\n }\n )}\n data-osc=\"accordion-indicator-wrapper\"\n >\n <Icon\n name={handleIconType}\n variant={iconVariant}\n size={iconSize}\n className={cx(iconIndicatorFillColor, {\n [iconIndicatorExpandedFillColor as string]:\n isExpanded && !!iconIndicatorExpandedFillColor,\n })}\n />\n </span>\n </button>\n </RadixAccordion.Trigger>\n </TriggerWrapper>\n </RadixAccordion.Header>\n <RadixAccordion.Content className={containerClassName} data-osc=\"accordion-panel\">\n {shouldRenderChildren ? item.content : null}\n </RadixAccordion.Content>\n </RadixAccordion.Item>\n );\n })}\n </RadixAccordion.Root>\n );\n};\n\nfunction TriggerWrapper({\n as: Wrapper = 'span',\n children,\n ...rest\n}: {\n as?: HeadingLevel | 'span';\n children: React.ReactNode;\n}) {\n return <Wrapper {...rest}>{children}</Wrapper>;\n}\n\nexport default Accordion;\n","export * from './lib/accordion';\n","\"use client\";\n\n// packages/react/collapsible/src/collapsible.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { Presence } from \"@radix-ui/react-presence\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { jsx } from \"react/jsx-runtime\";\nvar COLLAPSIBLE_NAME = \"Collapsible\";\nvar [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME);\nvar [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME);\nvar Collapsible = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeCollapsible,\n open: openProp,\n defaultOpen,\n disabled,\n onOpenChange,\n ...collapsibleProps\n } = props;\n const [open = false, setOpen] = useControllableState({\n prop: openProp,\n defaultProp: defaultOpen,\n onChange: onOpenChange\n });\n return /* @__PURE__ */ jsx(\n CollapsibleProvider,\n {\n scope: __scopeCollapsible,\n disabled,\n contentId: useId(),\n open,\n onOpenToggle: React.useCallback(() => setOpen((prevOpen) => !prevOpen), [setOpen]),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(open),\n \"data-disabled\": disabled ? \"\" : void 0,\n ...collapsibleProps,\n ref: forwardedRef\n }\n )\n }\n );\n }\n);\nCollapsible.displayName = COLLAPSIBLE_NAME;\nvar TRIGGER_NAME = \"CollapsibleTrigger\";\nvar CollapsibleTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeCollapsible, ...triggerProps } = props;\n const context = useCollapsibleContext(TRIGGER_NAME, __scopeCollapsible);\n return /* @__PURE__ */ jsx(\n Primitive.button,\n {\n type: \"button\",\n \"aria-controls\": context.contentId,\n \"aria-expanded\": context.open || false,\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n disabled: context.disabled,\n ...triggerProps,\n ref: forwardedRef,\n onClick: composeEventHandlers(props.onClick, context.onOpenToggle)\n }\n );\n }\n);\nCollapsibleTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"CollapsibleContent\";\nvar CollapsibleContent = React.forwardRef(\n (props, forwardedRef) => {\n const { forceMount, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, props.__scopeCollapsible);\n return /* @__PURE__ */ jsx(Presence, { present: forceMount || context.open, children: ({ present }) => /* @__PURE__ */ jsx(CollapsibleContentImpl, { ...contentProps, ref: forwardedRef, present }) });\n }\n);\nCollapsibleContent.displayName = CONTENT_NAME;\nvar CollapsibleContentImpl = React.forwardRef((props, forwardedRef) => {\n const { __scopeCollapsible, present, children, ...contentProps } = props;\n const context = useCollapsibleContext(CONTENT_NAME, __scopeCollapsible);\n const [isPresent, setIsPresent] = React.useState(present);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const heightRef = React.useRef(0);\n const height = heightRef.current;\n const widthRef = React.useRef(0);\n const width = widthRef.current;\n const isOpen = context.open || isPresent;\n const isMountAnimationPreventedRef = React.useRef(isOpen);\n const originalStylesRef = React.useRef(void 0);\n React.useEffect(() => {\n const rAF = requestAnimationFrame(() => isMountAnimationPreventedRef.current = false);\n return () => cancelAnimationFrame(rAF);\n }, []);\n useLayoutEffect(() => {\n const node = ref.current;\n if (node) {\n originalStylesRef.current = originalStylesRef.current || {\n transitionDuration: node.style.transitionDuration,\n animationName: node.style.animationName\n };\n node.style.transitionDuration = \"0s\";\n node.style.animationName = \"none\";\n const rect = node.getBoundingClientRect();\n heightRef.current = rect.height;\n widthRef.current = rect.width;\n if (!isMountAnimationPreventedRef.current) {\n node.style.transitionDuration = originalStylesRef.current.transitionDuration;\n node.style.animationName = originalStylesRef.current.animationName;\n }\n setIsPresent(present);\n }\n }, [context.open, present]);\n return /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-state\": getState(context.open),\n \"data-disabled\": context.disabled ? \"\" : void 0,\n id: context.contentId,\n hidden: !isOpen,\n ...contentProps,\n ref: composedRefs,\n style: {\n [`--radix-collapsible-content-height`]: height ? `${height}px` : void 0,\n [`--radix-collapsible-content-width`]: width ? `${width}px` : void 0,\n ...props.style\n },\n children: isOpen && children\n }\n );\n});\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root = Collapsible;\nvar Trigger = CollapsibleTrigger;\nvar Content = CollapsibleContent;\nexport {\n Collapsible,\n CollapsibleContent,\n CollapsibleTrigger,\n Content,\n Root,\n Trigger,\n createCollapsibleScope\n};\n//# sourceMappingURL=index.mjs.map\n","\"use client\";\n\n// packages/react/accordion/src/accordion.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport * as CollapsiblePrimitive from \"@radix-ui/react-collapsible\";\nimport { createCollapsibleScope } from \"@radix-ui/react-collapsible\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ACCORDION_NAME = \"Accordion\";\nvar ACCORDION_KEYS = [\"Home\", \"End\", \"ArrowDown\", \"ArrowUp\", \"ArrowLeft\", \"ArrowRight\"];\nvar [Collection, useCollection, createCollectionScope] = createCollection(ACCORDION_NAME);\nvar [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [\n createCollectionScope,\n createCollapsibleScope\n]);\nvar useCollapsibleScope = createCollapsibleScope();\nvar Accordion = React.forwardRef(\n (props, forwardedRef) => {\n const { type, ...accordionProps } = props;\n const singleProps = accordionProps;\n const multipleProps = accordionProps;\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeAccordion, children: type === \"multiple\" ? /* @__PURE__ */ jsx(AccordionImplMultiple, { ...multipleProps, ref: forwardedRef }) : /* @__PURE__ */ jsx(AccordionImplSingle, { ...singleProps, ref: forwardedRef }) });\n }\n);\nAccordion.displayName = ACCORDION_NAME;\nvar [AccordionValueProvider, useAccordionValueContext] = createAccordionContext(ACCORDION_NAME);\nvar [AccordionCollapsibleProvider, useAccordionCollapsibleContext] = createAccordionContext(\n ACCORDION_NAME,\n { collapsible: false }\n);\nvar AccordionImplSingle = React.forwardRef(\n (props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n collapsible = false,\n ...accordionSingleProps\n } = props;\n const [value, setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value: value ? [value] : [],\n onItemOpen: setValue,\n onItemClose: React.useCallback(() => collapsible && setValue(\"\"), [collapsible, setValue]),\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionSingleProps, ref: forwardedRef }) })\n }\n );\n }\n);\nvar AccordionImplMultiple = React.forwardRef((props, forwardedRef) => {\n const {\n value: valueProp,\n defaultValue,\n onValueChange = () => {\n },\n ...accordionMultipleProps\n } = props;\n const [value = [], setValue] = useControllableState({\n prop: valueProp,\n defaultProp: defaultValue,\n onChange: onValueChange\n });\n const handleItemOpen = React.useCallback(\n (itemValue) => setValue((prevValue = []) => [...prevValue, itemValue]),\n [setValue]\n );\n const handleItemClose = React.useCallback(\n (itemValue) => setValue((prevValue = []) => prevValue.filter((value2) => value2 !== itemValue)),\n [setValue]\n );\n return /* @__PURE__ */ jsx(\n AccordionValueProvider,\n {\n scope: props.__scopeAccordion,\n value,\n onItemOpen: handleItemOpen,\n onItemClose: handleItemClose,\n children: /* @__PURE__ */ jsx(AccordionCollapsibleProvider, { scope: props.__scopeAccordion, collapsible: true, children: /* @__PURE__ */ jsx(AccordionImpl, { ...accordionMultipleProps, ref: forwardedRef }) })\n }\n );\n});\nvar [AccordionImplProvider, useAccordionContext] = createAccordionContext(ACCORDION_NAME);\nvar AccordionImpl = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, disabled, dir, orientation = \"vertical\", ...accordionProps } = props;\n const accordionRef = React.useRef(null);\n const composedRefs = useComposedRefs(accordionRef, forwardedRef);\n const getItems = useCollection(__scopeAccordion);\n const direction = useDirection(dir);\n const isDirectionLTR = direction === \"ltr\";\n const handleKeyDown = composeEventHandlers(props.onKeyDown, (event) => {\n if (!ACCORDION_KEYS.includes(event.key)) return;\n const target = event.target;\n const triggerCollection = getItems().filter((item) => !item.ref.current?.disabled);\n const triggerIndex = triggerCollection.findIndex((item) => item.ref.current === target);\n const triggerCount = triggerCollection.length;\n if (triggerIndex === -1) return;\n event.preventDefault();\n let nextIndex = triggerIndex;\n const homeIndex = 0;\n const endIndex = triggerCount - 1;\n const moveNext = () => {\n nextIndex = triggerIndex + 1;\n if (nextIndex > endIndex) {\n nextIndex = homeIndex;\n }\n };\n const movePrev = () => {\n nextIndex = triggerIndex - 1;\n if (nextIndex < homeIndex) {\n nextIndex = endIndex;\n }\n };\n switch (event.key) {\n case \"Home\":\n nextIndex = homeIndex;\n break;\n case \"End\":\n nextIndex = endIndex;\n break;\n case \"ArrowRight\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n moveNext();\n } else {\n movePrev();\n }\n }\n break;\n case \"ArrowDown\":\n if (orientation === \"vertical\") {\n moveNext();\n }\n break;\n case \"ArrowLeft\":\n if (orientation === \"horizontal\") {\n if (isDirectionLTR) {\n movePrev();\n } else {\n moveNext();\n }\n }\n break;\n case \"ArrowUp\":\n if (orientation === \"vertical\") {\n movePrev();\n }\n break;\n }\n const clampedIndex = nextIndex % triggerCount;\n triggerCollection[clampedIndex].ref.current?.focus();\n });\n return /* @__PURE__ */ jsx(\n AccordionImplProvider,\n {\n scope: __scopeAccordion,\n disabled,\n direction: dir,\n orientation,\n children: /* @__PURE__ */ jsx(Collection.Slot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n ...accordionProps,\n \"data-orientation\": orientation,\n ref: composedRefs,\n onKeyDown: disabled ? void 0 : handleKeyDown\n }\n ) })\n }\n );\n }\n);\nvar ITEM_NAME = \"AccordionItem\";\nvar [AccordionItemProvider, useAccordionItemContext] = createAccordionContext(ITEM_NAME);\nvar AccordionItem = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, value, ...accordionItemProps } = props;\n const accordionContext = useAccordionContext(ITEM_NAME, __scopeAccordion);\n const valueContext = useAccordionValueContext(ITEM_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n const triggerId = useId();\n const open = value && valueContext.value.includes(value) || false;\n const disabled = accordionContext.disabled || props.disabled;\n return /* @__PURE__ */ jsx(\n AccordionItemProvider,\n {\n scope: __scopeAccordion,\n open,\n disabled,\n triggerId,\n children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Root,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(open),\n ...collapsibleScope,\n ...accordionItemProps,\n ref: forwardedRef,\n disabled,\n open,\n onOpenChange: (open2) => {\n if (open2) {\n valueContext.onItemOpen(value);\n } else {\n valueContext.onItemClose(value);\n }\n }\n }\n )\n }\n );\n }\n);\nAccordionItem.displayName = ITEM_NAME;\nvar HEADER_NAME = \"AccordionHeader\";\nvar AccordionHeader = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...headerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(HEADER_NAME, __scopeAccordion);\n return /* @__PURE__ */ jsx(\n Primitive.h3,\n {\n \"data-orientation\": accordionContext.orientation,\n \"data-state\": getState(itemContext.open),\n \"data-disabled\": itemContext.disabled ? \"\" : void 0,\n ...headerProps,\n ref: forwardedRef\n }\n );\n }\n);\nAccordionHeader.displayName = HEADER_NAME;\nvar TRIGGER_NAME = \"AccordionTrigger\";\nvar AccordionTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...triggerProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleContext = useAccordionCollapsibleContext(TRIGGER_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(Collection.ItemSlot, { scope: __scopeAccordion, children: /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Trigger,\n {\n \"aria-disabled\": itemContext.open && !collapsibleContext.collapsible || void 0,\n \"data-orientation\": accordionContext.orientation,\n id: itemContext.triggerId,\n ...collapsibleScope,\n ...triggerProps,\n ref: forwardedRef\n }\n ) });\n }\n);\nAccordionTrigger.displayName = TRIGGER_NAME;\nvar CONTENT_NAME = \"AccordionContent\";\nvar AccordionContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAccordion, ...contentProps } = props;\n const accordionContext = useAccordionContext(ACCORDION_NAME, __scopeAccordion);\n const itemContext = useAccordionItemContext(CONTENT_NAME, __scopeAccordion);\n const collapsibleScope = useCollapsibleScope(__scopeAccordion);\n return /* @__PURE__ */ jsx(\n CollapsiblePrimitive.Content,\n {\n role: \"region\",\n \"aria-labelledby\": itemContext.triggerId,\n \"data-orientation\": accordionContext.orientation,\n ...collapsibleScope,\n ...contentProps,\n ref: forwardedRef,\n style: {\n [\"--radix-accordion-content-height\"]: \"var(--radix-collapsible-content-height)\",\n [\"--radix-accordion-content-width\"]: \"var(--radix-collapsible-content-width)\",\n ...props.style\n }\n }\n );\n }\n);\nAccordionContent.displayName = CONTENT_NAME;\nfunction getState(open) {\n return open ? \"open\" : \"closed\";\n}\nvar Root2 = Accordion;\nvar Item = AccordionItem;\nvar Header = AccordionHeader;\nvar Trigger2 = AccordionTrigger;\nvar Content2 = AccordionContent;\nexport {\n Accordion,\n AccordionContent,\n AccordionHeader,\n AccordionItem,\n AccordionTrigger,\n Content2 as Content,\n Header,\n Item,\n Root2 as Root,\n Trigger2 as Trigger,\n createAccordionScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DivElement","children","div","className","ProgramFaqs","cmsFaqData","language","useLanguage","faqContent","faq","subTopic","items","map","idx","question","answer","_id","collapsedButtonLabel","expandedButtonLabel","key","toString","content","Markdown","origin","env","options","overrides","a","props","isNewWindow","wrapper","forceWrapper","join","h2","title","Accordion","containerClassName","variant","type","MembershipOverview","membershipData","index","headline","shortDescription","span","h3","data-testid","aria-label","p","AppPromotion","appPromotionData","t","useTranslation","style","backgroundImage","Image","src","alt","fill","href","target","rel","width","height","iconMap","add","TableData","color","tier","contentTrimmed","trim","td","role","Icon","name","section","aria-hidden","BenefitTable","tiers","rows","isMobile","useMediaQuery","table","thead","tr","th","scope","size","member","silver","gold","diamond","tbody","benefitData","benefitsOverview","benefitTables","Link","url","HiltonHonorsRewardsHeader","multimediaCompound","link","headerData","multimedia","item","multimediaMetadata","metadata","videoPlayerProps","length","mapMultimediaListToVideoProps","mappedPage","undefined","isAutoPlay","transcriptTracks","captionTracks","orientation","posterImageUrl","videoUrl","videoName","videoGroup","getAssetUrl","h1","adaDescription","cidParams","campaignId","componentName","label","VideoPlayer","videoId","videoTranscriptProps","NormalizeBrandRewardProgramData","data","membershipOverview","contactSection","hiltonHonorsJoinData","brand","page","imageHeadliner","multicolumnText","rotatingTiles","textBlock","hiltonHeaderData","carousel","contentBlock","heading","h","value","normalizedData","description","normalizedBrandRewardProgramData","HiltonHonorsRewardsProgram","useRouter","locale","useBrandRewardProgramQuery","brandCode","path","error","useCmsFaqQuery","faqType","halfAndHalf","logError","generateError","cmsDataError","logWarning","Head","meta","BenefitsOverview","HiltonHonorsJoin","underline","article","Trans","i18nKey","setInitialExpandedAccordions","defaultValue","Array","from","_","Boolean","includes","iconIndicatorFillColor","iconIndicatorExpandedFillColor","onValueChange","shouldUnmountChildrenWhenCollapsed","headingLevel","rest","React","uncontrolledExpandedAccordion","setUncontrolledExpandedAccordion","isUncontrolledComponent","languageDirection","getLanguageDirection","isStackedAccordion","handleIconType","iconSize","RadixAccordion","dir","collapsible","handleValueChange","values","isExpanded","buttonLabel","accessibleButtonLabel","expandedButtonAccessibleLabel","collapsedButtonAccessibleLabel","iconVariant","shouldRenderChildren","buttonWrapperClassName","data-osc","asChild","TriggerWrapper","as","button","cx","expandedClassName","collapsedClassName","Wrapper"],"sourceRoot":"","ignoreList":[11,12]}