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ack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/hooks/comparison-tracks-with-custom-compare.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/track-kinds.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-selector/index.less?745d","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-selector/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/shared/display-price-value.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/product/price-anchor/index.less?4265","webpack://@logos/commerceweb-frontend/./Scripts/site/components/product/price-anchor/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/recommendation-badge.less?7def","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/recommendation-badge.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-card/index.less?ad15","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-card/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-slider/product-tab/index.less?f43a","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-slider/product-tab/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-slider/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/track-product-slider/index.less?f67a","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/mobile-track-selector/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/mobile-track-selector/index.less?a280","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/comparison-modal/index.less?18b5","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/comparison-modal/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/mobile-product-comparison/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/mobile-product-comparison/index.less?12f1","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/tab-based-track-selector/index.less?9712","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/tab-based-track-selector/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/index.less?f9ef","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/new-comparison-table-with-slider/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/compare-books-or-features/index.less?8c25","webpack://@logos/commerceweb-frontend/./Scripts/site/components/compare-page/compare-books-or-features/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/interstitial-modal/index.less?1024","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/interstitial-modal/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/libraries/add-a-subscription-modal/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/libraries/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/hooks/use-interstitial-modal-handler.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/libraries/index.less?8629","webpack://@logos/commerceweb-frontend/./Scripts/site/components/shared/enhanced-image-tag/image.tsx"],"sourcesContent":["import { useCallback, useEffect, useState } from 'react';\nimport CompareClient from '../../../clients/compare-client';\nimport { notifyError } from '../../notifications';\nimport { useLocalization } from '../../../localization';\n\nconst customCompareTrackId = '-1';\nconst maxCustomCompareProductCount = 10;\n\nconst getSelectedTrackProductIndex = track => {\n\tif (!track || !track.trackProducts || track.trackProducts.length <= 3) {\n\t\treturn 0;\n\t}\n\n\treturn Math.min(\n\t\tMath.max(\n\t\t\ttrack.trackProducts.findIndex(tp => tp.isSelected),\n\t\t\t0\n\t\t),\n\t\ttrack.trackProducts.length - 3\n\t);\n};\n\nfunction useComparisonTracksWithCustomCompare({\n\tinitialSelectedTrackId,\n\tinitialSelectedTrackProducts,\n\ttrackOptions: propsTrackOptions,\n\troutes,\n\thandleTrackFetched,\n\thandleTrackSelected,\n\thandleCustomCompareAllCleared,\n}) {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst trackOptions =\n\t\tpropsTrackOptions && propsTrackOptions.length > 1\n\t\t\t? [...propsTrackOptions, { name: resources.CustomCompare, trackId: customCompareTrackId }]\n\t\t\t: propsTrackOptions;\n\n\tconst [tracks, setTracks] = useState(() => {\n\t\tconst tracksByTrackId = {};\n\t\tfor (const trackOption of trackOptions ?? []) {\n\t\t\ttracksByTrackId[trackOption.trackId] = trackOption;\n\t\t}\n\n\t\treturn tracksByTrackId;\n\t});\n\n\tconst [selectedTrackId, setSelectedTrackId] = useState(initialSelectedTrackId);\n\tconst [selectedMobileFilterTrackId, setSelectedMobileFilterTrackId] = useState(initialSelectedTrackId);\n\tconst [selectedTrack, setSelectedTrack] = useState(tracks && tracks[initialSelectedTrackId]);\n\tconst [selectedTrackProductIndex, setSelectedTrackProductIndex] = useState(0);\n\tconst [selectedCompareSections, setSelectedCompareSections] = useState([]);\n\t// Kept separate from `tracks` so that trackProducts arriving from the eager prefetch (below)\n\t// don't share an object identity with sections, and vice versa; each can be depended on\n\t// independently without one's updates spuriously re-triggering the other's effect.\n\tconst [sectionsByTrackId, setSectionsByTrackId] = useState({});\n\tconst [displayMobileFilter, setDisplayMobileFilter] = useState(false);\n\tconst [isLoading, setIsLoading] = useState(true);\n\tconst [errorMessage, setErrorMessage] = useState(null);\n\tconst [isCustomCompareModalOpen, setIsCustomCompareModalOpen] = useState(false);\n\tconst [selectedCustomCompareTrackProducts, setSelectedCustomCompareTrackProducts] = useState(\n\t\tinitialSelectedTrackProducts ?? []\n\t);\n\n\tconst handleCustomCompare = useCallback(() => {\n\t\tsetIsCustomCompareModalOpen(false);\n\t\tsetDisplayMobileFilter(false);\n\n\t\tconst customCompareTrack = tracks[customCompareTrackId];\n\n\t\tif (\n\t\t\t!customCompareTrack.trackProducts ||\n\t\t\tcustomCompareTrack.trackProducts.length !== selectedCustomCompareTrackProducts.length ||\n\t\t\tselectedCustomCompareTrackProducts.some((tp, i) => tp !== customCompareTrack.trackProducts[i])\n\t\t) {\n\t\t\tconst newTracks = { ...tracks };\n\t\t\tnewTracks[customCompareTrackId] = {\n\t\t\t\t...tracks[customCompareTrackId],\n\t\t\t\ttrackProducts: selectedCustomCompareTrackProducts,\n\t\t\t};\n\t\t\tsetTracks(newTracks);\n\n\t\t\t// Force reload of the sections, since the track products changed.\n\t\t\tsetSectionsByTrackId(prev => {\n\t\t\t\tconst { [customCompareTrackId]: _removedSections, ...rest } = prev;\n\t\t\t\treturn rest;\n\t\t\t});\n\n\t\t\tsetSelectedTrackId(customCompareTrackId);\n\t\t}\n\t}, [selectedCustomCompareTrackProducts, tracks]);\n\n\tuseEffect(() => {\n\t\tsetSelectedTrackId(initialSelectedTrackId);\n\t}, [initialSelectedTrackId]);\n\n\tuseEffect(() => {\n\t\tif (!selectedTrack) {\n\t\t\tsetErrorMessage(resources.SomethingWentWrong);\n\t\t}\n\t}, [resources.SomethingWentWrong, selectedTrack]);\n\n\tuseEffect(() => {\n\t\tconst fetchTrackProducts = async () => {\n\t\t\tconst tracksWithoutTrackProducts = [];\n\n\t\t\tfor (const trackId in tracks) {\n\t\t\t\tif (!tracks[trackId].trackProducts && trackId !== customCompareTrackId) {\n\t\t\t\t\ttracksWithoutTrackProducts.push(trackId);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif (tracksWithoutTrackProducts.length > 0) {\n\t\t\t\ttry {\n\t\t\t\t\tconst responseTracks = await CompareClient.getTrackProducts(\n\t\t\t\t\t\troutes.CompareTrackProductsBaseUrl,\n\t\t\t\t\t\ttracksWithoutTrackProducts\n\t\t\t\t\t);\n\n\t\t\t\t\tsetTracks(prev => {\n\t\t\t\t\t\tconst newTracks = { ...prev };\n\t\t\t\t\t\tresponseTracks.forEach(responseTrack => {\n\t\t\t\t\t\t\tnewTracks[responseTrack.trackId] = {\n\t\t\t\t\t\t\t\t...newTracks[responseTrack.trackId],\n\t\t\t\t\t\t\t\t...responseTrack,\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t});\n\t\t\t\t\t\treturn newTracks;\n\t\t\t\t\t});\n\t\t\t\t} catch (ex) {\n\t\t\t\t\tsetErrorMessage(resources.SomethingWentWrong);\n\t\t\t\t\tthrow ex;\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\n\t\t// Eagerly load the product cards for every track up front so switching tracks only needs to\n\t\t// fetch comparison sections. This runs in the background without the blocking loading spinner.\n\t\tfetchTrackProducts();\n\t}, [resources.SomethingWentWrong, routes.CompareTrackProductsBaseUrl, tracks]);\n\n\t// Reading these directly as dependencies (instead of depending on all of `tracks`) means this\n\t// effect only re-runs when the selected track's own trackProducts or cached sections change,\n\t// not when unrelated tracks are updated by the eager prefetch below.\n\tconst selectedTrackProducts =\n\t\tselectedTrackId === customCompareTrackId\n\t\t\t? selectedCustomCompareTrackProducts\n\t\t\t: tracks[selectedTrackId]?.trackProducts;\n\tconst selectedTrackCachedSections = sectionsByTrackId[selectedTrackId];\n\tconst selectedTrackName = tracks[selectedTrackId]?.name;\n\tconst selectedTrackRecommendedProductId = tracks[selectedTrackId]?.recommendedProductId;\n\n\t// Guards against a duplicate /compare/sections request: trackProducts arriving from the eager\n\t// prefetch can re-trigger this effect while a sections request for the same track is still in\n\t// flight.\n\tconst [fetchingSectionsTrackId, setFetchingSectionsTrackId] = useState(null);\n\n\tuseEffect(() => {\n\t\tconst fetchTrack = async () => {\n\t\t\tif (!selectedTrackId) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tlet trackProducts = selectedTrackProducts;\n\t\t\tlet sections = selectedTrackCachedSections;\n\n\t\t\tif (!sections) {\n\t\t\t\tif (fetchingSectionsTrackId === selectedTrackId) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tsetFetchingSectionsTrackId(selectedTrackId);\n\n\t\t\t\tsetIsLoading(true);\n\t\t\t\ttry {\n\t\t\t\t\tif (selectedTrackId !== customCompareTrackId && !trackProducts) {\n\t\t\t\t\t\t// Fetch the product cards without comparison sections so the chart data can load separately.\n\t\t\t\t\t\tconst [responseTrack] = await CompareClient.getTrackProducts(routes.CompareTrackProductsBaseUrl, [\n\t\t\t\t\t\t\tselectedTrackId,\n\t\t\t\t\t\t]);\n\t\t\t\t\t\ttrackProducts = responseTrack.trackProducts;\n\t\t\t\t\t\tsetTracks(prev => ({ ...prev, [selectedTrackId]: { ...prev[selectedTrackId], ...responseTrack } }));\n\t\t\t\t\t}\n\n\t\t\t\t\tconst productIds = (trackProducts ?? []).map(product => product.productId);\n\t\t\t\t\tif (productIds.length === 0) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\n\t\t\t\t\tconst response = await CompareClient.getCompareSectionData(routes.CompareTrackSectionsBaseUrl, productIds);\n\t\t\t\t\tsections = response.sections;\n\n\t\t\t\t\thandleTrackFetched?.({\n\t\t\t\t\t\ttrackId: selectedTrackId,\n\t\t\t\t\t\tname: selectedTrackName,\n\t\t\t\t\t\trecommendedProductId: selectedTrackRecommendedProductId,\n\t\t\t\t\t\ttrackProducts,\n\t\t\t\t\t\tsections,\n\t\t\t\t\t});\n\n\t\t\t\t\tsetSectionsByTrackId(prev => ({ ...prev, [selectedTrackId]: sections }));\n\t\t\t\t} catch (ex) {\n\t\t\t\t\tsetErrorMessage(resources.SomethingWentWrong);\n\t\t\t\t\tthrow ex;\n\t\t\t\t} finally {\n\t\t\t\t\tsetIsLoading(false);\n\t\t\t\t\tsetFetchingSectionsTrackId(prev => (prev === selectedTrackId ? null : prev));\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tconst track = {\n\t\t\t\ttrackId: selectedTrackId,\n\t\t\t\tname: selectedTrackName,\n\t\t\t\trecommendedProductId: selectedTrackRecommendedProductId,\n\t\t\t\ttrackProducts,\n\t\t\t\tsections,\n\t\t\t};\n\n\t\t\tsetSelectedTrack(track);\n\t\t\tsetSelectedTrackId(track.trackId);\n\t\t\tsetSelectedCompareSections(track.sections);\n\t\t\tsetSelectedTrackProductIndex(getSelectedTrackProductIndex(track));\n\t\t\thandleTrackSelected?.(track);\n\n\t\t\treturn track;\n\t\t};\n\n\t\tfetchTrack(selectedTrackId);\n\t}, [\n\t\tselectedTrackId,\n\t\tselectedTrackProducts,\n\t\tselectedTrackCachedSections,\n\t\tselectedTrackName,\n\t\tselectedTrackRecommendedProductId,\n\t\tfetchingSectionsTrackId,\n\t\troutes.CompareTrackProductsBaseUrl,\n\t\tresources.SomethingWentWrong,\n\t\troutes.CompareTrackSectionsBaseUrl,\n\t\thandleTrackFetched,\n\t\thandleTrackSelected,\n\t]);\n\n\tconst handleTrackChange = useCallback(\n\t\ttrackId => {\n\t\t\tif (trackId !== customCompareTrackId || tracks[trackId].trackProducts) {\n\t\t\t\tsetSelectedTrackId(trackId);\n\t\t\t} else {\n\t\t\t\tsetIsCustomCompareModalOpen(true);\n\t\t\t}\n\t\t},\n\t\t[tracks]\n\t);\n\n\tconst handleMobileFilterTrackChange = useCallback(\n\t\ttrackId => {\n\t\t\tsetSelectedMobileFilterTrackId(trackId);\n\n\t\t\tif (trackId !== customCompareTrackId || tracks[trackId].trackProducts) {\n\t\t\t\tsetSelectedTrackId(trackId);\n\t\t\t}\n\t\t},\n\t\t[tracks]\n\t);\n\n\tuseEffect(() => {\n\t\tsetSelectedMobileFilterTrackId(selectedTrackId);\n\t}, [selectedTrackId]);\n\n\tconst handleFilterChange = useCallback(() => {\n\t\tsetDisplayMobileFilter(value => !value);\n\t}, []);\n\n\tconst handleCustomCompareTrackProductSelect = useCallback(\n\t\ttrackProduct => {\n\t\t\tconst selectedCustomCompareTrackProductIds = selectedCustomCompareTrackProducts.map(tp => tp.productId);\n\t\t\tconst isAlreadySelected = selectedCustomCompareTrackProductIds.includes(trackProduct.productId);\n\t\t\tif (selectedCustomCompareTrackProducts.length < maxCustomCompareProductCount && !isAlreadySelected) {\n\t\t\t\tconst newSelectedCustomCompareTrackProducts = [...selectedCustomCompareTrackProducts, trackProduct];\n\t\t\t\tsetSelectedCustomCompareTrackProducts(newSelectedCustomCompareTrackProducts);\n\t\t\t} else if (isAlreadySelected) {\n\t\t\t\tconst newSelectedCustomCompareTrackProducts = selectedCustomCompareTrackProducts.filter(\n\t\t\t\t\ttp => tp.productId !== trackProduct.productId\n\t\t\t\t);\n\t\t\t\tsetSelectedCustomCompareTrackProducts(newSelectedCustomCompareTrackProducts);\n\t\t\t} else {\n\t\t\t\tnotifyError(resources.YouHaveSelectedMaxNumberOfItemsToCompare);\n\t\t\t}\n\t\t},\n\t\t[selectedCustomCompareTrackProducts, resources.YouHaveSelectedMaxNumberOfItemsToCompare]\n\t);\n\n\tconst handleCustomCompareTrackProductDeselect = useCallback(\n\t\ttrackProduct => {\n\t\t\tconst filteredSelectedCustomCompareTrackProducts = selectedCustomCompareTrackProducts.filter(\n\t\t\t\ttp => tp !== trackProduct\n\t\t\t);\n\t\t\tsetSelectedCustomCompareTrackProducts(filteredSelectedCustomCompareTrackProducts);\n\t\t},\n\t\t[selectedCustomCompareTrackProducts]\n\t);\n\n\tconst handleCustomCompareClearAll = useCallback(() => {\n\t\tsetSelectedCustomCompareTrackProducts([]);\n\t\thandleCustomCompareAllCleared?.();\n\t}, [handleCustomCompareAllCleared]);\n\n\treturn {\n\t\ttrackOptions,\n\t\ttracks,\n\t\tselectedTrack,\n\t\thandleTrackChange,\n\t\tselectedTrackId,\n\t\tselectedTrackProductIndex,\n\t\tsetSelectedTrackProductIndex,\n\t\tselectedCompareSections,\n\t\tselectedCustomCompareTrackProducts,\n\t\tisCustomCompareModalOpen,\n\t\tsetIsCustomCompareModalOpen,\n\t\thandleCustomCompare,\n\t\terrorMessage,\n\t\tisLoading,\n\t\tdisplayMobileFilter,\n\t\tselectedMobileFilterTrackId,\n\t\thandleMobileFilterTrackChange,\n\t\thandleFilterChange,\n\t\thandleCustomCompareTrackProductSelect,\n\t\thandleCustomCompareTrackProductDeselect,\n\t\thandleCustomCompareClearAll,\n\t};\n}\n\nexport default useComparisonTracksWithCustomCompare;\nexport { customCompareTrackId };\n","const TrackKinds = {\n\tlibrary: 'Library',\n\tsubscribableFeatureSet: 'SubscribableFeatureSet',\n};\n\nexport default TrackKinds;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"index--container--yK0va\",\"dropdown\":\"index--dropdown--dtEwz\",\"desktopLabelPosition-top\":\"index--desktopLabelPosition-top--XZO9l\",\"desktopLabelPositionTop\":\"index--desktopLabelPosition-top--XZO9l\",\"desktopLabelPosition-left\":\"index--desktopLabelPosition-left--OSY0U\",\"desktopLabelPositionLeft\":\"index--desktopLabelPosition-left--OSY0U\",\"label\":\"index--label--aXamq\",\"labelPunctuation\":\"index--labelPunctuation--R2EEe\",\"select\":\"index--select--ANXvn\"};","import React, { useCallback, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport sharedStyles from '../../../configuration-wizard/shared.less';\nimport { customCompareTrackId } from '../../hooks/comparison-tracks-with-custom-compare';\nimport styles from './index.less';\n\nconst TrackSelector = ({\n\tclassName,\n\tselectedTrackId,\n\ttrackOptions,\n\tlabel,\n\tdesktopLabelPosition = 'left',\n\tonTrackChange,\n}) => {\n\tconst handleTrackChange = useCallback(\n\t\tevent => {\n\t\t\tconst trackId = event.target.value;\n\t\t\tonTrackChange(trackId);\n\t\t},\n\t\t[onTrackChange]\n\t);\n\n\tconst sortedTrackOptions = useMemo(() => {\n\t\tconst sortedOptions = [...trackOptions].sort((a, b) => a.name.localeCompare(b.name));\n\t\tconst customCompareTrackIndex = sortedOptions.findIndex(option => option.trackId === customCompareTrackId);\n\t\tif (customCompareTrackIndex !== -1) {\n\t\t\tconst [customCompareTrack] = sortedOptions.splice(customCompareTrackIndex, 1);\n\t\t\tsortedOptions.push(customCompareTrack);\n\t\t}\n\t\treturn sortedOptions;\n\t}, [trackOptions]);\n\n\treturn (\n\t\t<div className={classNames(styles.container, className)}>\n\t\t\t<div className={classNames(styles.dropdown, styles[`desktopLabelPosition-${desktopLabelPosition}`])}>\n\t\t\t\t{label && (\n\t\t\t\t\t<div\n\t\t\t\t\t\tclassName={classNames(\n\t\t\t\t\t\t\tstyles.label,\n\t\t\t\t\t\t\tstyles[`desktopLabelPosition-${desktopLabelPosition}`],\n\t\t\t\t\t\t\tsharedStyles.h5\n\t\t\t\t\t\t)}\n\t\t\t\t\t>\n\t\t\t\t\t\t{label}\n\t\t\t\t\t\t{desktopLabelPosition === 'left' && <span className={styles.labelPunctuation}>{':'}</span>}\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t<select\n\t\t\t\t\tclassName={classNames(sharedStyles.ui2, styles.select)}\n\t\t\t\t\tvalue={selectedTrackId}\n\t\t\t\t\tonChange={handleTrackChange}\n\t\t\t\t\tdata-testid=\"track-select\"\n\t\t\t\t>\n\t\t\t\t\t{sortedTrackOptions.map(option => (\n\t\t\t\t\t\t<option key={option.trackId} value={option.trackId}>\n\t\t\t\t\t\t\t{option.name}\n\t\t\t\t\t\t</option>\n\t\t\t\t\t))}\n\t\t\t\t</select>\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nTrackSelector.propTypes = {\n\tclassName: PropTypes.string,\n\tselectedTrackId: PropTypes.string.isRequired,\n\ttrackOptions: PropTypes.array.isRequired,\n\tlabel: PropTypes.string,\n\tonTrackChange: PropTypes.func.isRequired,\n};\n\nexport default TrackSelector;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nconst DisplayPriceValue = ({ smallPriceClassName, largePriceClassName, price, decimalSymbol }) => {\n\tconst [integralValue, decimalValue] = price.split(decimalSymbol);\n\treturn (\n\t\t<>\n\t\t\t<span className={largePriceClassName}>{integralValue}</span>\n\t\t\t<span className={smallPriceClassName}>\n\t\t\t\t{decimalSymbol}\n\t\t\t\t{decimalValue}\n\t\t\t</span>\n\t\t</>\n\t);\n};\nDisplayPriceValue.propTypes = {\n\tprice: PropTypes.string.isRequired,\n\tdecimalSymbol: PropTypes.string.isRequired,\n\tsmallPriceClassName: PropTypes.string,\n\tlargePriceClassName: PropTypes.string,\n};\n\nexport default DisplayPriceValue;\n","// extracted by mini-css-extract-plugin\nexport default {\"struckThroughPrice\":\"index--struckThroughPrice--XXf5o\",\"priceAnchor\":\"index--priceAnchor--QDmsi\",\"discountedSavingsDescription\":\"index--discountedSavingsDescription--aJfTS\"};","import React from 'react';\nimport cn from 'classnames';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\nimport { useLocalization } from '../../../localization';\n\nimport styles from './index.less';\n\nconst PriceAnchor = ({ priceAnchor, className }) => {\n\tconst resources = useLocalization('Logos.CommerceWeb.Products.Resources.PriceAnchor');\n\tconst anchorPriceKinds = priceAnchor.anchorPriceKind.split(',').map(apk => apk.trim());\n\treturn (\n\t\t<div className={cn(styles.priceAnchor, className)}>\n\t\t\t{anchorPriceKinds.includes('CollectionValue') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.CollectionValue} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.collectionValue}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.collectionValue}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{anchorPriceKinds.includes('DynamicCollectionValue') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.DynamicCollectionValue} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.dynamicCollectionValue}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.dynamicCollectionValue}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{anchorPriceKinds.includes('DigitalListPrice') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.DigitalListPriceLabel} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.digitalListPrice}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.digitalListPrice}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{anchorPriceKinds.includes('PrintListPrice') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.PrintListPriceLabel} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.printPrice}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.printPrice}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{anchorPriceKinds.includes('RegularPrice') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.RegularPriceLabel} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.regularPrice}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.regularPrice}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{anchorPriceKinds.includes('DynamicPrice') && (\n\t\t\t\t<div>\n\t\t\t\t\t{`${resources.DynamicPriceLabel} `}\n\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\tkey={priceAnchor.dynamicPrice}\n\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\ttemplate={priceAnchor.dynamicPrice}\n\t\t\t\t\t\tclassName={styles.struckThroughPrice}\n\t\t\t\t\t>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERDAYABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerDayAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERMONTHABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerMonthAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t\t<CommandSentence.Field name=\"PERYEARABBREVIATED\">\n\t\t\t\t\t\t\t<span>{resources.PerYearAbbreviated}</span>\n\t\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{priceAnchor.savingsDescription && (\n\t\t\t\t<div className={priceAnchor.isDiscounted ? styles.discountedSavingsDescription : ''}>\n\t\t\t\t\t{priceAnchor.savingsDescription}\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default PriceAnchor;\n","// extracted by mini-css-extract-plugin\nexport default {\"badge\":\"recommendation-badge--badge--03FP7\"};","import React from 'react';\nimport classNames from 'classnames';\n\nimport { useLocalization } from '../../localization';\nimport styles from './recommendation-badge.less';\n\nconst RecommendationBadge = ({ className }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\treturn <div className={classNames(styles.badge, className)}>{resources.RecommendedForYou}</div>;\n};\n\nexport default RecommendationBadge;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"index--container--eD0ua\",\"imageAndRecommendationBadge\":\"index--imageAndRecommendationBadge--HDMfy\",\"badgeContainer\":\"index--badgeContainer--ENbPS\",\"savingsBadge\":\"index--savingsBadge--K2-AL\",\"savingsBadgeUnDiscounted\":\"index--savingsBadgeUnDiscounted--9inlS index--savingsBadge--K2-AL\",\"savingsBadgeDiscounted\":\"index--savingsBadgeDiscounted--QgUXX index--savingsBadge--K2-AL\",\"image\":\"index--image--nVcoN\",\"lowerContent\":\"index--lowerContent--jHpp8\",\"contentTopHalf\":\"index--contentTopHalf--JH3Hs\",\"contentBottomHalf\":\"index--contentBottomHalf--l6TCf\",\"titleSection\":\"index--titleSection--v8rat\",\"subtitle\":\"index--subtitle--1WCC+\",\"title\":\"index--title--b6Z7g\",\"titleLink\":\"index--titleLink--v2nPw index--title--b6Z7g\",\"description\":\"index--description---5S-X\",\"pricingSection\":\"index--pricingSection--IZyrH\",\"priceAnchor\":\"index--priceAnchor--angh3\",\"priceContainer\":\"index--priceContainer--QkjON\",\"priceLabelContainer\":\"index--priceLabelContainer--ZRRCI\",\"priceSmall\":\"index--priceSmall--oYG0a\",\"priceDiscounted\":\"index--priceDiscounted--OIeAq\",\"paymentPlanInfo\":\"index--paymentPlanInfo--ynkyA\",\"addToMiniCartButton\":\"index--addToMiniCartButton--Kv6d2 btn btn-primary\",\"resourcesCount\":\"index--resourcesCount--A9Kcg\",\"resourceCount\":\"index--resourceCount--wfbaQ\",\"shortContainer\":\"index--shortContainer--gE2h8\",\"shortContainerTitleAndPrice\":\"index--shortContainerTitleAndPrice--kGZex\",\"shortContainerForeignPrice\":\"index--shortContainerForeignPrice--NFIe4\",\"shortContainerAddToMiniCartButton\":\"index--shortContainerAddToMiniCartButton--SXb6e index--addToMiniCartButton--Kv6d2 btn btn-primary\",\"mobileContainer\":\"index--mobileContainer--hrND7\",\"mobileBadgeContainer\":\"index--mobileBadgeContainer--X-iFJ\",\"mobileCard\":\"index--mobileCard--56b4r\",\"mobileTitle\":\"index--mobileTitle---EhXo\",\"mobileTitleLink\":\"index--mobileTitleLink--hPrXf index--mobileTitle---EhXo\",\"mobileDescriptionSection\":\"index--mobileDescriptionSection--05NHM\",\"mobileResourcesCount\":\"index--mobileResourcesCount--rMDVM\",\"mobilePriceAndAddToCartSection\":\"index--mobilePriceAndAddToCartSection--KoRHq\"};","import React, { useContext } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\n\nimport AddToMiniCartButton from '../../../shared/add-to-mini-cart-button';\nimport DisplayPriceValue from '../../../shared/display-price-value';\nimport PriceAnchor from '../../../product/price-anchor';\nimport ForeignPriceTooltip from '../../../product/foreign-price-tooltip';\nimport RecommendationBadge from '../../recommendation-badge';\nimport { useLocalization } from '../../../../localization';\n\nimport shared from '../../../configuration-wizard/shared.less';\nimport { Image } from '../../../shared/enhanced-image-tag/image';\nimport { ScrollableTableWithSliderContext } from '../../scrollable-table-with-slider/scrollable-table-with-slider-provider';\nimport styles from './index.less';\n\nconst TrackProductCard = ({\n\tvariant,\n\ttitle,\n\tblurb,\n\tisForeignCurrency,\n\tprice,\n\tskuIds,\n\tpriceAnchorViewModel,\n\tproductId,\n\taddToMiniCartButton,\n\tisOwnedByUser,\n\townershipNotice,\n\tresourceCounts,\n\tisRecommended,\n\tonItemAddedToCart,\n\timageUrl,\n\tsavingsPercentage,\n\tproductDetailsUrl,\n}) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst showTrackProductDetails = variant !== 'short';\n\n\tconst shouldShowResourceCount = !!resourceCounts;\n\tconst shouldShowNewToYou =\n\t\tshouldShowResourceCount && resourceCounts.unownedResourceCount !== resourceCounts.totalAvailableResourceCount;\n\tconst doesUserOwnAllResources = resourceCounts && resourceCounts.unownedResourceCount === 0;\n\n\tconst [resourcesTemplate, resourceCountTemplate] = doesUserOwnAllResources\n\t\t? [resources.BookCountAllOwned, null]\n\t\t: shouldShowNewToYou\n\t\t\t? [resources.BooksNewToYou, resources.BooksNewToYouBookCount]\n\t\t\t: [null, resources.BookCount];\n\tconst mobileResourceCountTemplate = doesUserOwnAllResources\n\t\t? resources.BookCountAllOwned\n\t\t: shouldShowNewToYou\n\t\t\t? resources.BookCountNewToYou\n\t\t\t: resources.BookCount;\n\tconst desktopResourcesTemplate = resourcesTemplate ?? '%BOOKS%';\n\tconst desktopResourceCountTemplate = resourceCountTemplate ?? '';\n\tconst resourceCountToUse = shouldShowResourceCount\n\t\t? shouldShowNewToYou\n\t\t\t? resourceCounts?.unownedResourceCount\n\t\t\t: resourceCounts?.totalAvailableResourceCount\n\t\t: null;\n\n\tconst { columnWidth } = useContext(ScrollableTableWithSliderContext);\n\n\tconst isDiscounted = priceAnchorViewModel?.isDiscounted;\n\n\tif (variant === 'mobile') {\n\t\treturn (\n\t\t\t<div className={styles.mobileContainer}>\n\t\t\t\t<div className={styles.mobileBadgeContainer}>\n\t\t\t\t\t{isRecommended && <RecommendationBadge />}\n\t\t\t\t\t{savingsPercentage > 0 && (\n\t\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\t\tclassName={isDiscounted ? styles.savingsBadgeDiscounted : styles.savingsBadgeUnDiscounted}\n\t\t\t\t\t\t\ttemplate={resources.PercentOff}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<CommandSentence.Field name=\"PERCENTSAVINGS\">{savingsPercentage}</CommandSentence.Field>\n\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.mobileCard}>\n\t\t\t\t\t{imageUrl &&\n\t\t\t\t\t\t(productDetailsUrl ? (\n\t\t\t\t\t\t\t<a href={productDetailsUrl}>\n\t\t\t\t\t\t\t\t<Image src={imageUrl} className={styles.image} alt={title} />\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<Image src={imageUrl} className={styles.image} alt={title} />\n\t\t\t\t\t\t))}\n\t\t\t\t\t<div>\n\t\t\t\t\t\t{productDetailsUrl ? (\n\t\t\t\t\t\t\t<a href={productDetailsUrl} className={styles.mobileTitleLink}>\n\t\t\t\t\t\t\t\t<h5 className={classNames(shared.h5, styles.mobileTitle)}>{title}</h5>\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<h5 className={classNames(shared.h5, styles.mobileTitle)}>{title}</h5>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{ownershipNotice && <div className={styles.subtitle}>{ownershipNotice}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={styles.mobileDescriptionSection}>\n\t\t\t\t\t\t{shouldShowResourceCount && (\n\t\t\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\t\t\tkey={mobileResourceCountTemplate}\n\t\t\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\t\t\tclassName={styles.mobileResourcesCount}\n\t\t\t\t\t\t\t\ttemplate={mobileResourceCountTemplate}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"COUNT\">{resourceCountToUse}</CommandSentence.Field>\n\t\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t{blurb && <div>{blurb}</div>}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={styles.mobilePriceAndAddToCartSection}>\n\t\t\t\t\t\t<div className={styles.pricingSection}>\n\t\t\t\t\t\t\t{priceAnchorViewModel && (\n\t\t\t\t\t\t\t\t<PriceAnchor priceAnchor={priceAnchorViewModel} className={styles.priceAnchor} />\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t<div className={styles.priceContainer}>\n\t\t\t\t\t\t\t\t<div className={styles.priceLabelContainer}>{price.label}</div>\n\t\t\t\t\t\t\t\t<div data-testid=\"track-product-price\">\n\t\t\t\t\t\t\t\t\t<DisplayPriceValue\n\t\t\t\t\t\t\t\t\t\tlargePriceClassName={classNames(shared.h5, isDiscounted && styles.priceDiscounted)}\n\t\t\t\t\t\t\t\t\t\tsmallPriceClassName={classNames(\n\t\t\t\t\t\t\t\t\t\t\tshared.h5,\n\t\t\t\t\t\t\t\t\t\t\tstyles.priceSmall,\n\t\t\t\t\t\t\t\t\t\t\tisDiscounted && styles.priceDiscounted\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\tprice={price.value}\n\t\t\t\t\t\t\t\t\t\tdecimalSymbol={price.usdDecimalSymbol}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{isForeignCurrency && <ForeignPriceTooltip price={price.valueLocalized} />}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<AddToMiniCartButton\n\t\t\t\t\t\t\tbuttonClassName={styles.addToMiniCartButton}\n\t\t\t\t\t\t\tpayInFull={true}\n\t\t\t\t\t\t\tdisplayAddedToCart={false}\n\t\t\t\t\t\t\tskuIds={skuIds}\n\t\t\t\t\t\t\tproductId={productId}\n\t\t\t\t\t\t\tresources={addToMiniCartButton.resources}\n\t\t\t\t\t\t\tisOwnedByUser={isOwnedByUser}\n\t\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\tif (!showTrackProductDetails) {\n\t\treturn (\n\t\t\t<div className={styles.shortContainer}>\n\t\t\t\t<div className={styles.shortContainerTitleAndPrice}>\n\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<div data-testid=\"track-product-price\">\n\t\t\t\t\t\t\t<DisplayPriceValue\n\t\t\t\t\t\t\t\tlargePriceClassName={classNames(shared.h5, isDiscounted && styles.priceDiscounted)}\n\t\t\t\t\t\t\t\tsmallPriceClassName={classNames(shared.h5, styles.priceSmall, isDiscounted && styles.priceDiscounted)}\n\t\t\t\t\t\t\t\tprice={price.value}\n\t\t\t\t\t\t\t\tdecimalSymbol={price.usdDecimalSymbol}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{isForeignCurrency && (\n\t\t\t\t\t\t\t<ForeignPriceTooltip className={styles.shortContainerForeignPrice} price={price.valueLocalized} />\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t<div>\n\t\t\t\t\t<AddToMiniCartButton\n\t\t\t\t\t\tbuttonClassName={styles.shortContainerAddToMiniCartButton}\n\t\t\t\t\t\tpayInFull={true}\n\t\t\t\t\t\tdisplayAddedToCart={false}\n\t\t\t\t\t\tskuIds={skuIds}\n\t\t\t\t\t\tproductId={productId}\n\t\t\t\t\t\tresources={addToMiniCartButton.resources}\n\t\t\t\t\t\tisOwnedByUser={isOwnedByUser}\n\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className={styles.container}>\n\t\t\t<div className={styles.imageAndRecommendationBadge}>\n\t\t\t\t<div className={styles.badgeContainer}>\n\t\t\t\t\t{isRecommended && <RecommendationBadge />}\n\t\t\t\t\t{savingsPercentage > 0 && (\n\t\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\t\tclassName={isDiscounted ? styles.savingsBadgeDiscounted : styles.savingsBadgeUnDiscounted}\n\t\t\t\t\t\t\ttemplate={resources.PercentOff}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<CommandSentence.Field name=\"PERCENTSAVINGS\">{savingsPercentage}</CommandSentence.Field>\n\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t\t{imageUrl &&\n\t\t\t\t\t(productDetailsUrl ? (\n\t\t\t\t\t\t<a href={productDetailsUrl}>\n\t\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\t\tsrc={imageUrl}\n\t\t\t\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\t\t\t\talt={title}\n\t\t\t\t\t\t\t\tsizes={{\n\t\t\t\t\t\t\t\t\ttablet: columnWidth,\n\t\t\t\t\t\t\t\t\tdesktop: columnWidth,\n\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<Image\n\t\t\t\t\t\t\tsrc={imageUrl}\n\t\t\t\t\t\t\tclassName={styles.image}\n\t\t\t\t\t\t\talt={title}\n\t\t\t\t\t\t\tsizes={{\n\t\t\t\t\t\t\t\ttablet: columnWidth,\n\t\t\t\t\t\t\t\tdesktop: columnWidth,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t</div>\n\t\t\t<div className={styles.lowerContent}>\n\t\t\t\t<div className={styles.contentTopHalf}>\n\t\t\t\t\t<div className={styles.titleSection}>\n\t\t\t\t\t\t{ownershipNotice && <div className={styles.subtitle}>{ownershipNotice}</div>}\n\t\t\t\t\t\t{productDetailsUrl ? (\n\t\t\t\t\t\t\t<a href={productDetailsUrl} className={styles.titleLink}>\n\t\t\t\t\t\t\t\t{title}\n\t\t\t\t\t\t\t</a>\n\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{blurb && <div className={styles.description}>{blurb}</div>}\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.contentBottomHalf}>\n\t\t\t\t\t<div className={styles.pricingSection}>\n\t\t\t\t\t\t{priceAnchorViewModel && <PriceAnchor priceAnchor={priceAnchorViewModel} className={styles.priceAnchor} />}\n\t\t\t\t\t\t<div className={styles.priceContainer}>\n\t\t\t\t\t\t\t<div className={styles.priceLabelContainer}>{price.label}</div>\n\t\t\t\t\t\t\t<div data-testid=\"track-product-price\">\n\t\t\t\t\t\t\t\t<DisplayPriceValue\n\t\t\t\t\t\t\t\t\tlargePriceClassName={classNames(shared.h5, isDiscounted && styles.priceDiscounted)}\n\t\t\t\t\t\t\t\t\tsmallPriceClassName={classNames(shared.h5, styles.priceSmall, isDiscounted && styles.priceDiscounted)}\n\t\t\t\t\t\t\t\t\tprice={price.value}\n\t\t\t\t\t\t\t\t\tdecimalSymbol={price.usdDecimalSymbol}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{isForeignCurrency && <ForeignPriceTooltip price={price.valueLocalized} />}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div>\n\t\t\t\t\t\t<AddToMiniCartButton\n\t\t\t\t\t\t\tbuttonClassName={styles.addToMiniCartButton}\n\t\t\t\t\t\t\tpayInFull={true}\n\t\t\t\t\t\t\tdisplayAddedToCart={false}\n\t\t\t\t\t\t\tskuIds={skuIds}\n\t\t\t\t\t\t\tproductId={productId}\n\t\t\t\t\t\t\tresources={addToMiniCartButton.resources}\n\t\t\t\t\t\t\tisOwnedByUser={isOwnedByUser}\n\t\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{shouldShowResourceCount && (\n\t\t\t\t<CommandSentence\n\t\t\t\t\tkey={desktopResourcesTemplate}\n\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\tclassName={styles.resourcesCount}\n\t\t\t\t\ttemplate={desktopResourcesTemplate}\n\t\t\t\t>\n\t\t\t\t\t<CommandSentence.Field name=\"BOOKS\">\n\t\t\t\t\t\t<CommandSentence\n\t\t\t\t\t\t\tkey={desktopResourceCountTemplate}\n\t\t\t\t\t\t\tContainer=\"span\"\n\t\t\t\t\t\t\tclassName={styles.resourceCount}\n\t\t\t\t\t\t\ttemplate={desktopResourceCountTemplate}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<CommandSentence.Field name=\"COUNT\">{resourceCountToUse}</CommandSentence.Field>\n\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t</CommandSentence.Field>\n\t\t\t\t</CommandSentence>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nTrackProductCard.propTypes = {\n\tclassName: PropTypes.string,\n\tvariant: PropTypes.oneOf(['short', 'full', 'mobile']),\n\ttitle: PropTypes.string.isRequired,\n\tblurb: PropTypes.string,\n\tisForeignCurrency: PropTypes.bool,\n\tprice: PropTypes.shape({\n\t\tlabel: PropTypes.string,\n\t\tvalue: PropTypes.string.isRequired,\n\t\tvalueLocalized: PropTypes.string.isRequired,\n\t\tusdDecimalSymbol: PropTypes.string.isRequired,\n\t}).isRequired,\n\tskuIds: PropTypes.arrayOf(PropTypes.string).isRequired,\n\tpriceAnchorViewModel: PropTypes.object,\n\tproductId: PropTypes.string.isRequired,\n\taddToMiniCartButton: PropTypes.object.isRequired,\n\tisOwnedByUser: PropTypes.bool,\n\townershipNotice: PropTypes.string,\n\tpaymentPlanInfo: PropTypes.shape({\n\t\trecurringPrice: PropTypes.string.isRequired,\n\t\tnumberOfPayments: PropTypes.string.isRequired,\n\t\tresources: PropTypes.shape({\n\t\t\tPaymentPlanInfoTemplate: PropTypes.string.isRequired,\n\t\t}).isRequired,\n\t}),\n\tresourceCounts: PropTypes.shape({\n\t\tunownedResourceCount: PropTypes.number.isRequired,\n\t\ttotalAvailableResourceCount: PropTypes.number.isRequired,\n\t}),\n\tisRecommended: PropTypes.bool,\n\tonItemAddedToCart: PropTypes.func,\n\timageUrl: PropTypes.string,\n\tproductDetailsUrl: PropTypes.string,\n\tsavingsPercentage: PropTypes.number,\n};\n\nexport default TrackProductCard;\n","// extracted by mini-css-extract-plugin\nexport default {\"cardContainer\":\"index--cardContainer--8xt4T\",\"title\":\"index--title--JPGS1\",\"subTitle\":\"index--subTitle--cQCVz\",\"price\":\"index--price--G0gRL\",\"priceDiscounted\":\"index--priceDiscounted--klwur\",\"addToMiniCartButton\":\"index--addToMiniCartButton--y2SZE btn btn-primary\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport AddToMiniCartButton from '../../../../shared/add-to-mini-cart-button';\nimport styles from './index.less';\n\nconst ProductTab = ({\n\ttitle,\n\townershipNotice,\n\tprice,\n\tskuIds,\n\tproductId,\n\tisOwnedByUser,\n\tonItemAddedToCart,\n\taddToMiniCartButton,\n\tpriceAnchorViewModel,\n}) => {\n\tconst isDiscounted = priceAnchorViewModel?.isDiscounted;\n\n\treturn (\n\t\t<div className={styles.cardContainer}>\n\t\t\t<div className={styles.title}>{title}</div>\n\t\t\t{ownershipNotice && <div className={styles.subTitle}>{ownershipNotice}</div>}\n\t\t\t<div>\n\t\t\t\t<div className={classNames(styles.price, isDiscounted && styles.priceDiscounted)}>{price.valueLocalized}</div>\n\t\t\t\t{addToMiniCartButton && (\n\t\t\t\t\t<AddToMiniCartButton\n\t\t\t\t\t\tbuttonClassName={styles.addToMiniCartButton}\n\t\t\t\t\t\tpayInFull={true}\n\t\t\t\t\t\tdisplayAddedToCart={false}\n\t\t\t\t\t\tskuIds={skuIds}\n\t\t\t\t\t\tproductId={productId}\n\t\t\t\t\t\tresources={addToMiniCartButton.resources}\n\t\t\t\t\t\tisOwnedByUser={isOwnedByUser}\n\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nProductTab.propTypes = {\n\ttitle: PropTypes.string.isRequired,\n};\n\nexport default ProductTab;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport SliderWrapper from '../../scrollable-table-with-slider/slider-wrapper';\nimport useScreensize from '../../../../util/hooks/use-screensize';\nimport TrackProductCard from '../track-product-card/';\nimport sliderArrowOptions from '../../scrollable-table-with-slider/slider-arrow-options';\nimport ProductTab from './product-tab';\nimport styles from './index.less';\n\nconst TrackProductSlider = ({ trackProducts, isSticky, ownershipNotice, onItemAddedToCart }) => {\n\tconst { isMobile } = useScreensize();\n\n\tif (!trackProducts || !trackProducts.length) {\n\t\treturn null;\n\t}\n\n\tconst trackProductCards = trackProducts.map(tp => ({\n\t\tid: tp.productId,\n\t\tcomponent: isMobile ? (\n\t\t\t<ProductTab\n\t\t\t\ttitle={tp.name}\n\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\tprice={tp.price}\n\t\t\t\tskuIds={tp.skuIds}\n\t\t\t\tproductId={tp.productId}\n\t\t\t\tisOwnedByUser={tp.isOwned}\n\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\taddToMiniCartButton={tp.addToMiniCartButton}\n\t\t\t\tpriceAnchorViewModel={tp.priceAnchorViewModel}\n\t\t\t/>\n\t\t) : (\n\t\t\t<TrackProductCard\n\t\t\t\tvariant={isSticky ? 'short' : 'full'}\n\t\t\t\ttitle={tp.name}\n\t\t\t\tblurb={tp.blurb}\n\t\t\t\tisForeignCurrency={tp.isForeignCurrency}\n\t\t\t\tprice={tp.price}\n\t\t\t\tskuIds={tp.skuIds}\n\t\t\t\tpriceAnchorViewModel={tp.priceAnchorViewModel}\n\t\t\t\tproductId={tp.productId}\n\t\t\t\taddToMiniCartButton={tp.addToMiniCartButton}\n\t\t\t\tisOwnedByUser={tp.isOwned}\n\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\tresourceCounts={tp.resourceCounts}\n\t\t\t\tisRecommended={tp.isRecommended}\n\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\timageUrl={tp.imageUrl}\n\t\t\t\tsavingsPercentage={tp.savingsPercentage}\n\t\t\t\tproductDetailsUrl={tp.productDetailsUrl}\n\t\t\t/>\n\t\t),\n\t}));\n\n\treturn (\n\t\t<SliderWrapper\n\t\t\titemsClassName={styles.sliderItems}\n\t\t\titems={trackProductCards}\n\t\t\tarrowOptions={{ buttonHeight: isSticky && sliderArrowOptions.buttonHeight.short }}\n\t\t/>\n\t);\n};\n\nTrackProductSlider.propTypes = {\n\ttrackProducts: PropTypes.array,\n\tisSticky: PropTypes.bool.isRequired,\n\townershipNotice: PropTypes.string,\n\tonItemAddedToCart: PropTypes.func,\n};\n\nexport default TrackProductSlider;\n","// extracted by mini-css-extract-plugin\nexport default {\"sliderItems\":\"index--sliderItems--8RdOB\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\nimport { useLocalization } from '../../../../localization';\n\nimport styles from './index.less';\n\nconst MobileTrackSelector = ({ selectedTrack, hideBooksIOwn, onFilterChange }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\treturn (\n\t\t<div>\n\t\t\t<CommandSentence Container=\"span\" template={resources.MobileComparisonHeaderLibraries}>\n\t\t\t\t<CommandSentence.Field name=\"SELECTEDTRACKNAME\">{selectedTrack.name}</CommandSentence.Field>\n\t\t\t\t<CommandSentence.Field name=\"SHOWINGORHIDING\">\n\t\t\t\t\t{hideBooksIOwn ? resources.Hiding : resources.Showing}\n\t\t\t\t</CommandSentence.Field>\n\t\t\t</CommandSentence>{' '}\n\t\t\t<button onClick={onFilterChange} className={styles.changeButton}>\n\t\t\t\t{resources.Change}\n\t\t\t</button>\n\t\t</div>\n\t);\n};\n\nMobileTrackSelector.propTypes = {\n\tselectedTrack: PropTypes.shape({\n\t\tname: PropTypes.string.isRequired,\n\t}).isRequired,\n\thideBooksIOwn: PropTypes.bool.isRequired,\n\tonFilterChange: PropTypes.func.isRequired,\n};\n\nexport default MobileTrackSelector;\n","// extracted by mini-css-extract-plugin\nexport default {\"changeButton\":\"index--changeButton--llKCe\"};","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"index--modal--VXb0e\",\"content\":\"index--content--FgVut\",\"header\":\"index--header--3tVqQ\",\"headerWithTitle\":\"index--headerWithTitle--4xRHQ index--header--3tVqQ\",\"title\":\"index--title--hBdEt\",\"closeButton\":\"index--closeButton--dc71y\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport SwipeableWrapper from '../../scrollable-table-with-slider/swipeable-wrapper';\nimport { CloseSvgUrl } from '../../../shared/svgs';\nimport { useLocalization } from '../../../../localization';\n\nimport styles from './index.less';\n\nconst ComparisonModal = ({ title, onClose, children }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\treturn (\n\t\t<div className={styles.modal}>\n\t\t\t<div className={title ? styles.headerWithTitle : styles.header}>\n\t\t\t\t{title && <div className={styles.title}>{title}</div>}\n\t\t\t\t<button onClick={onClose} className={styles.closeButton}>\n\t\t\t\t\t<img src={CloseSvgUrl} alt={resources.Close} />\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t\t<SwipeableWrapper>\n\t\t\t\t<div className={styles.content}>{children}</div>\n\t\t\t</SwipeableWrapper>\n\t\t</div>\n\t);\n};\n\nComparisonModal.propTypes = {\n\ttitle: PropTypes.string,\n\tonClose: PropTypes.func,\n\tchildren: PropTypes.node,\n};\n\nexport default ComparisonModal;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport TrackProductCard from '../track-product-card';\nimport { RightArrow } from '../../../configuration-wizard/svgs';\nimport ComparisonModal from '../comparison-modal';\nimport { useLocalization } from '../../../../localization';\n\nimport styles from './index.less';\n\nconst MobileProductComparison = ({\n\ttrackProducts,\n\townershipNotice,\n\tisComparisonModalOpen,\n\tonOpenComparisonModal,\n\tonCloseComparisonModal,\n\tonItemAddedToCart,\n\tchildren,\n}) => {\n\treturn (\n\t\t<>\n\t\t\t<div className={styles.productList}>\n\t\t\t\t<CompareLibrariesButton onClick={onOpenComparisonModal} />\n\t\t\t\t{trackProducts.map(tp => (\n\t\t\t\t\t<TrackProductCard\n\t\t\t\t\t\tkey={tp.productId}\n\t\t\t\t\t\tvariant=\"mobile\"\n\t\t\t\t\t\ttitle={tp.name}\n\t\t\t\t\t\tblurb={tp.blurb}\n\t\t\t\t\t\tisForeignCurrency={tp.isForeignCurrency}\n\t\t\t\t\t\tprice={tp.price}\n\t\t\t\t\t\tskuIds={tp.skuIds}\n\t\t\t\t\t\tpriceAnchorViewModel={tp.priceAnchorViewModel}\n\t\t\t\t\t\tproductId={tp.productId}\n\t\t\t\t\t\taddToMiniCartButton={tp.addToMiniCartButton}\n\t\t\t\t\t\tisOwnedByUser={tp.isOwned}\n\t\t\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t\tisRecommended={tp.isRecommended}\n\t\t\t\t\t\tsavingsPercentage={tp.savingsPercentage}\n\t\t\t\t\t\tproductDetailsUrl={tp.productDetailsUrl}\n\t\t\t\t\t/>\n\t\t\t\t))}\n\t\t\t\t<CompareLibrariesButton onClick={onOpenComparisonModal} />\n\t\t\t</div>\n\t\t\t{isComparisonModalOpen && <ComparisonModal onClose={onCloseComparisonModal}>{children}</ComparisonModal>}\n\t\t</>\n\t);\n};\n\nconst CompareLibrariesButton = ({ onClick }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\treturn (\n\t\t<button className={styles.compareLibrariesButton} onClick={onClick}>\n\t\t\t{resources.CompareLibraries}\n\t\t\t<RightArrow />\n\t\t</button>\n\t);\n};\n\nMobileProductComparison.propTypes = {\n\ttrackProducts: PropTypes.array.isRequired,\n\townershipNotice: PropTypes.string,\n\tisComparisonModalOpen: PropTypes.bool.isRequired,\n\tonOpenComparisonModal: PropTypes.func.isRequired,\n\tonCloseComparisonModal: PropTypes.func.isRequired,\n\tonItemAddedToCart: PropTypes.func,\n\tchildren: PropTypes.node.isRequired,\n};\n\nexport default MobileProductComparison;\n","// extracted by mini-css-extract-plugin\nexport default {\"productList\":\"index--productList--eJOIm\",\"compareLibrariesButton\":\"index--compareLibrariesButton--b5fKN btn\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"index--container--RzOyO\",\"viewMoreContainer\":\"index--viewMoreContainer--g6hc9\",\"viewMoreButton\":\"index--viewMoreButton--fcIMW\",\"containerBottomBorder\":\"index--containerBottomBorder--nROtE\",\"tabsContainer\":\"index--tabsContainer--duICI\",\"tabSection\":\"index--tabSection--xLewU\",\"tab\":\"index--tab--4J7E6\",\"customCompareTrackTab\":\"index--customCompareTrackTab--IfGMH\",\"selectedTab\":\"index--selectedTab--b6ZYo\",\"tabIndicator\":\"index--tabIndicator--lVdfG\"};","import React, { useCallback, useMemo, useRef, useState } from 'react';\nimport classNames from 'classnames';\n\nimport { DoubleRightArrow } from '../../svgs';\nimport { useLocalization } from '../../../../localization';\n\nimport styles from './index.less';\n\nconst customCompareTabToken = 'custom-compare';\nconst denominationalTabToken = 'denominational';\nconst getTrackTabToken = trackId => {\n\treturn `track-${trackId}`;\n};\n\nconst TabBasedTrackSelector = ({\n\tclassName,\n\ttrackOptions,\n\tselectedTrackId,\n\tuserIsBasePackageOwner,\n\tonTrackChange,\n\tonChangeComparison,\n}) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst { primaryTrack, denominationalTracks, alternateTracks, customCompareTrack } = trackOptions;\n\n\tconst selectedTab = useMemo(() => {\n\t\tif (selectedTrackId === customCompareTrack?.trackId) {\n\t\t\treturn customCompareTabToken;\n\t\t}\n\n\t\tif (denominationalTracks.some(track => track.trackId === selectedTrackId)) {\n\t\t\treturn denominationalTabToken;\n\t\t}\n\n\t\treturn getTrackTabToken(selectedTrackId);\n\t}, [customCompareTrack?.trackId, denominationalTracks, selectedTrackId]);\n\n\tconst [isOpen, setIsOpen] = useState(() => {\n\t\tif (userIsBasePackageOwner) {\n\t\t\treturn true;\n\t\t}\n\t\tconst firstTrack = primaryTrack ?? (denominationalTracks.length > 0 ? null : alternateTracks[0]) ?? null;\n\t\tif (firstTrack) {\n\t\t\treturn selectedTrackId !== firstTrack.trackId;\n\t\t}\n\t\treturn true;\n\t});\n\n\tconst handleViewMoreClick = useCallback(() => {\n\t\tsetIsOpen(true);\n\t}, []);\n\n\tconst lastDenominationalLibrarySelectedRef = useRef(null);\n\n\tif (selectedTab === denominationalTabToken) {\n\t\tlastDenominationalLibrarySelectedRef.current = selectedTrackId;\n\t}\n\n\tconst handleDenominationalTabSelected = useCallback(() => {\n\t\tlet trackId = lastDenominationalLibrarySelectedRef.current;\n\t\tif (!trackId || !denominationalTracks.some(track => track.trackId === trackId)) {\n\t\t\ttrackId = denominationalTracks[0]?.trackId ?? null;\n\t\t}\n\t\tif (trackId !== null) {\n\t\t\tonTrackChange?.(trackId);\n\t\t}\n\t}, [denominationalTracks, onTrackChange]);\n\n\tif (!isOpen) {\n\t\treturn (\n\t\t\t<div className={styles.viewMoreContainer}>\n\t\t\t\t<button className={styles.viewMoreButton} onClick={handleViewMoreClick}>\n\t\t\t\t\t<span>{resources.ViewMoreLibraries}</span>\n\t\t\t\t\t<DoubleRightArrow />\n\t\t\t\t</button>\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className={classNames(className, styles.container)}>\n\t\t\t<div className={styles.containerBottomBorder}></div>\n\t\t\t<div className={styles.tabsContainer}>\n\t\t\t\t{primaryTrack && (\n\t\t\t\t\t<TabSection>\n\t\t\t\t\t\t<TrackTab\n\t\t\t\t\t\t\ttrack={primaryTrack}\n\t\t\t\t\t\t\tisSelected={selectedTab === getTrackTabToken(primaryTrack.trackId)}\n\t\t\t\t\t\t\tonTrackChange={onTrackChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TabSection>\n\t\t\t\t)}\n\t\t\t\t{denominationalTracks.length > 0 && (\n\t\t\t\t\t<TabSection>\n\t\t\t\t\t\t<Tab isSelected={selectedTab === denominationalTabToken} onClick={handleDenominationalTabSelected}>\n\t\t\t\t\t\t\t{resources.Traditions}\n\t\t\t\t\t\t</Tab>\n\t\t\t\t\t</TabSection>\n\t\t\t\t)}\n\t\t\t\t<TabSection>\n\t\t\t\t\t{alternateTracks.map(track => (\n\t\t\t\t\t\t<TrackTab\n\t\t\t\t\t\t\tkey={track.trackId}\n\t\t\t\t\t\t\ttrack={track}\n\t\t\t\t\t\t\tisSelected={selectedTab === getTrackTabToken(track.trackId)}\n\t\t\t\t\t\t\tonTrackChange={onTrackChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t))}\n\t\t\t\t</TabSection>\n\t\t\t\t{customCompareTrack && (\n\t\t\t\t\t<TabSection>\n\t\t\t\t\t\t<CustomCompareTrackTab\n\t\t\t\t\t\t\ttrack={customCompareTrack}\n\t\t\t\t\t\t\tisSelected={selectedTab === customCompareTabToken}\n\t\t\t\t\t\t\tonTrackChange={onTrackChange}\n\t\t\t\t\t\t\tonChangeComparison={onChangeComparison}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</TabSection>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nfunction TabSection({ children }) {\n\treturn <div className={styles.tabSection}>{children}</div>;\n}\n\nfunction Tab({ className, children, onClick, isSelected }) {\n\treturn (\n\t\t<button onClick={onClick} className={classNames(className, styles.tab, isSelected && styles.selectedTab)}>\n\t\t\t{children}\n\t\t\t<div className={styles.tabIndicator} />\n\t\t</button>\n\t);\n}\n\nfunction TrackTab({ className, track, isSelected, onTrackChange }) {\n\tconst handleClick = useCallback(() => {\n\t\tonTrackChange?.(track.trackId);\n\t}, [onTrackChange, track.trackId]);\n\n\treturn (\n\t\t<Tab className={className} onClick={handleClick} isSelected={isSelected}>\n\t\t\t{track.name}\n\t\t</Tab>\n\t);\n}\n\nfunction CustomCompareTrackTab({ track, isSelected, onTrackChange, onChangeComparison }) {\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst handleClick = useCallback(() => {\n\t\tif (isSelected) {\n\t\t\tonChangeComparison?.();\n\t\t} else {\n\t\t\tonTrackChange?.(track.trackId);\n\t\t}\n\t}, [isSelected, onChangeComparison, onTrackChange, track.trackId]);\n\n\treturn (\n\t\t<Tab className={styles.customCompareTrackTab} onClick={handleClick} isSelected={isSelected}>\n\t\t\t{isSelected ? resources.ChangeComparison : resources.CustomCompare}\n\t\t</Tab>\n\t);\n}\n\nexport default TabBasedTrackSelector;\n","// extracted by mini-css-extract-plugin\nexport default {\"baseContainer\":\"index--baseContainer--ysDAr\",\"comparisonTable\":\"index--comparisonTable--Qbe49 index--baseContainer--ysDAr\",\"trackSection\":\"index--trackSection--2cwYf index--baseContainer--ysDAr\",\"tabBasedTrackSelector\":\"index--tabBasedTrackSelector--Gpq4L\",\"trackSectionContainer\":\"index--trackSectionContainer--plQi2\",\"trackUpperSection\":\"index--trackUpperSection--bjTsy\",\"trackUpperSectionLeftSide\":\"index--trackUpperSectionLeftSide--0uVSC\",\"trackSelectorContainer\":\"index--trackSelectorContainer--SOCko\",\"productSectionTitle\":\"index--productSectionTitle--o20oA\",\"leftSideProductSectionTitle\":\"index--leftSideProductSectionTitle--K-cg4 index--productSectionTitle--o20oA\",\"trackControls\":\"index--trackControls--ZGnhM\",\"trackSelector\":\"index--trackSelector--HFs+f\",\"comparisonTableLegendAndControlsContainer\":\"index--comparisonTableLegendAndControlsContainer--XcbpD\",\"paymentNotice\":\"index--paymentNotice--c2Z+K\",\"mobileFilterBody\":\"index--mobileFilterBody--31HPx\",\"errorMessage\":\"index--errorMessage--qwnvb\",\"mobileProductComparison\":\"index--mobileProductComparison--ofqit\",\"customCompareButton\":\"index--customCompareButton--hMjp1 btn btn-secondary-inverted\"};","import React, { useRef, useState, useCallback, useContext, useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport usePreventBodyScrolling from '../../../util/hooks/use-prevent-body-scrolling';\nimport { updateUrlParamValues } from '../../../util/url.js';\nimport useScreensize from '../../../util/hooks/use-screensize';\nimport FullscreenOverlayLoadingSpinner from '../../shared/fullscreen-overlay-loading-spinner';\nimport StickyHeader from '../../sticky-header';\nimport sharedStyles from '../../configuration-wizard/shared.less';\nimport ComparisonTableLegend from '../comparison-table-legend';\nimport ComparisonTableControls from '../comparison-table-controls';\nimport { ScrollableTableWithSliderContext } from '../scrollable-table-with-slider/scrollable-table-with-slider-provider';\nimport useComparisonTracksWithCustomCompare, {\n\tcustomCompareTrackId,\n} from '../hooks/comparison-tracks-with-custom-compare';\nimport CustomCompareModal from '../custom-compare-modal';\nimport MobileCustomCompare from '../mobile-custom-compare';\nimport { useLocalization } from '../../../localization';\nimport TrackKinds from '../track-kinds';\nimport TrackSelector from './track-selector';\nimport ComparisonSectionsTable from './comparison-sections-table';\nimport TrackProductSlider from './track-product-slider';\nimport MobileTrackSelector from './mobile-track-selector';\nimport MobileProductComparison from './mobile-product-comparison';\nimport ComparisonModal from './comparison-modal';\nimport TabBasedTrackSelector from './tab-based-track-selector/index.jsx';\n\nimport styles from './index.less';\n\nconst NewComparisonTableWithSlider = ({\n\tinitialSelectedTrackId,\n\tinitialSelectedTrackProducts,\n\ttrackOptions: propsTrackOptions,\n\tuserIsBasePackageOwner,\n\tproductSectionTitle,\n\townershipNotice,\n\tupdateSelectedProductIndex,\n\ttrackKind,\n\trecommendedTrackProductId,\n\tonItemAddedToCart,\n\tcomparisonTableControlsHandler,\n\troutes,\n\tsuppressMobileProductComparison = false,\n}) => {\n\tconst [isMobileComparisonModalOpen, setIsMobileComparisonModalOpen] = useState(false);\n\tconst hasDemoedOpenSectionRef = useRef(false);\n\tconst resources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst pricingSidebarResources = useLocalization(\n\t\t'CommerceWeb.Resources.Product.DisplayTemplates.PricingSidebarViewModel'\n\t);\n\n\tconst handleTrackFetched = useCallback(track => {\n\t\t// note, `track` is a new object, that will be pushed into React state after this returns.\n\t\t// It is safe to mutate it like this.\n\t\ttrack.sections[0].isOpen = !hasDemoedOpenSectionRef.current;\n\t\thasDemoedOpenSectionRef.current = true;\n\t}, []);\n\n\tconst handleTrackSelected = useCallback(\n\t\ttrack => {\n\t\t\tupdateSelectedProductIndex(track);\n\n\t\t\tlet trackName = undefined,\n\t\t\t\tproductIds = undefined;\n\t\t\tif (track.trackId === customCompareTrackId) {\n\t\t\t\tproductIds = track.trackProducts.map(tp => tp.productId);\n\t\t\t} else {\n\t\t\t\ttrackName = track.name;\n\t\t\t}\n\t\t\tupdateUrlParamValues({ trackName, productIds });\n\t\t},\n\t\t[updateSelectedProductIndex]\n\t);\n\n\tconst {\n\t\ttrackOptions,\n\t\ttracks,\n\t\tselectedTrackId,\n\t\tselectedTrack,\n\t\thandleTrackChange,\n\t\tselectedCompareSections,\n\t\tselectedCustomCompareTrackProducts,\n\t\tisCustomCompareModalOpen,\n\t\tsetIsCustomCompareModalOpen,\n\t\thandleCustomCompare,\n\t\terrorMessage,\n\t\tisLoading,\n\t\tdisplayMobileFilter,\n\t\tselectedMobileFilterTrackId,\n\t\thandleMobileFilterTrackChange,\n\t\thandleFilterChange,\n\t\thandleCustomCompareTrackProductSelect,\n\t\thandleCustomCompareTrackProductDeselect,\n\t\thandleCustomCompareClearAll,\n\t} = useComparisonTracksWithCustomCompare({\n\t\tinitialSelectedTrackId,\n\t\tinitialSelectedTrackProducts,\n\t\ttrackOptions: propsTrackOptions,\n\t\trecommendedTrackProductId,\n\t\thandleTrackFetched,\n\t\thandleTrackSelected,\n\t\troutes,\n\t});\n\n\tconst handleChangeComparison = useCallback(() => {\n\t\tsetIsCustomCompareModalOpen(true);\n\t}, [setIsCustomCompareModalOpen]);\n\n\tconst handleCustomCompareModalClose = useCallback(() => {\n\t\tsetIsCustomCompareModalOpen(false);\n\t}, [setIsCustomCompareModalOpen]);\n\n\tconst { isMobile } = useScreensize();\n\n\tusePreventBodyScrolling(displayMobileFilter);\n\n\tconst handleOpenMobileComparisonModal = useCallback(() => setIsMobileComparisonModalOpen(true), []);\n\n\tconst handleCloseMobileComparisonModal = useCallback(() => setIsMobileComparisonModalOpen(false), []);\n\n\tconst stickyHeaderAnchorElementRef = useRef(null);\n\tconst comparisonTableRef = useRef(null);\n\tconst { isTableScrolling } = useContext(ScrollableTableWithSliderContext);\n\n\tconst categorizedTrackOptions = useMemo(() => {\n\t\tlet isAnyCategorizedTracks = false;\n\t\tlet firstTrack = null;\n\t\tconst denominationalTracks = [];\n\t\tconst alternateTracks = [];\n\t\tlet customCompareTrack = null;\n\t\tfor (const trackOption of trackOptions) {\n\t\t\tif (trackOption.trackId === customCompareTrackId) {\n\t\t\t\tcustomCompareTrack = trackOption;\n\t\t\t} else if (!firstTrack) {\n\t\t\t\tfirstTrack = trackOption;\n\t\t\t} else if (trackOption.trackGroup === 'denominational') {\n\t\t\t\tdenominationalTracks.push(trackOption);\n\t\t\t} else {\n\t\t\t\talternateTracks.push(trackOption);\n\t\t\t}\n\n\t\t\tif (trackOption.trackGroup) {\n\t\t\t\tisAnyCategorizedTracks = true;\n\t\t\t}\n\t\t}\n\n\t\tlet primaryTrack = null;\n\t\tif (isAnyCategorizedTracks) {\n\t\t\tprimaryTrack = firstTrack;\n\t\t} else if (firstTrack) {\n\t\t\talternateTracks.unshift(firstTrack);\n\t\t}\n\n\t\treturn {\n\t\t\tprimaryTrack,\n\t\t\tdenominationalTracks,\n\t\t\talternateTracks,\n\t\t\tcustomCompareTrack,\n\t\t};\n\t}, [trackOptions]);\n\n\tconst isDenominationalTrackSelected = categorizedTrackOptions.denominationalTracks.some(\n\t\ttrack => track.trackId === selectedTrackId\n\t);\n\n\tif (errorMessage) {\n\t\treturn <div className={styles.errorMessage}>{errorMessage}</div>;\n\t}\n\n\tif (displayMobileFilter) {\n\t\treturn (\n\t\t\t<ComparisonModal title={resources.ChangeComparison} onClose={handleFilterChange}>\n\t\t\t\t{isLoading && <FullscreenOverlayLoadingSpinner zIndex={5002} />}\n\t\t\t\t<div className={styles.mobileFilterBody}>\n\t\t\t\t\t{trackOptions && trackOptions.length > 1 && (\n\t\t\t\t\t\t<TrackSelector\n\t\t\t\t\t\t\tclassName={styles.trackSelector}\n\t\t\t\t\t\t\tselectedTrackId={selectedMobileFilterTrackId}\n\t\t\t\t\t\t\ttrackOptions={trackOptions}\n\t\t\t\t\t\t\tlabel={resources.Traditions}\n\t\t\t\t\t\t\tonTrackChange={handleMobileFilterTrackChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t{trackOptions.length > 1 && (\n\t\t\t\t\t\t<MobileCustomCompare\n\t\t\t\t\t\t\tinitialExpandedTrackId={initialSelectedTrackId}\n\t\t\t\t\t\t\tisVisible={selectedMobileFilterTrackId === customCompareTrackId}\n\t\t\t\t\t\t\tonClearAll={handleCustomCompareClearAll}\n\t\t\t\t\t\t\tonCompare={handleCustomCompare}\n\t\t\t\t\t\t\tonTrackProductDeselect={handleCustomCompareTrackProductDeselect}\n\t\t\t\t\t\t\tonTrackProductSelect={handleCustomCompareTrackProductSelect}\n\t\t\t\t\t\t\tselectedTrackProducts={selectedCustomCompareTrackProducts}\n\t\t\t\t\t\t\ttracks={tracks}\n\t\t\t\t\t\t\ttrackOptions={trackOptions}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</ComparisonModal>\n\t\t);\n\t}\n\n\tconst showTrackHeader = trackKind !== TrackKinds.subscribableFeatureSet;\n\n\tconst isTrackLoaded = selectedTrack && selectedTrack.trackProducts;\n\n\tconst getTrackHeader = (isStickyHeader, ref) => {\n\t\treturn (\n\t\t\t<div ref={ref} className={styles.trackSectionContainer}>\n\t\t\t\t<div className={styles.trackSection}>\n\t\t\t\t\t{!isMobile && (\n\t\t\t\t\t\t<div className={styles.tabBasedTrackSelector}>\n\t\t\t\t\t\t\t{trackOptions && trackOptions.length > 1 && selectedTrack && (\n\t\t\t\t\t\t\t\t<TabBasedTrackSelector\n\t\t\t\t\t\t\t\t\tclassName={styles.tabBasedTrackSelector}\n\t\t\t\t\t\t\t\t\ttrackOptions={categorizedTrackOptions}\n\t\t\t\t\t\t\t\t\tselectedTrackId={selectedTrackId}\n\t\t\t\t\t\t\t\t\tuserIsBasePackageOwner={userIsBasePackageOwner}\n\t\t\t\t\t\t\t\t\tonTrackChange={handleTrackChange}\n\t\t\t\t\t\t\t\t\tonChangeComparison={handleChangeComparison}\n\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{isMobile && trackOptions && trackOptions.length > 1 && selectedTrack && (\n\t\t\t\t\t\t<MobileTrackSelector\n\t\t\t\t\t\t\tselectedTrack={selectedTrack}\n\t\t\t\t\t\t\thideBooksIOwn={comparisonTableControlsHandler.hideBooksIOwn}\n\t\t\t\t\t\t\tonFilterChange={handleFilterChange}\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\t\t\t\t\t<div className={styles.trackUpperSection}>\n\t\t\t\t\t\t<div className={styles.trackUpperSectionLeftSide}>\n\t\t\t\t\t\t\t<div className={styles.trackSelectorContainer}>\n\t\t\t\t\t\t\t\t<div className={styles.leftSideProductSectionTitle}>\n\t\t\t\t\t\t\t\t\t{productSectionTitle && <div className={sharedStyles.h5}>{productSectionTitle}</div>}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t{isTrackLoaded && !isStickyHeader && (\n\t\t\t\t\t\t\t\t\t<div className={styles.trackControls}>\n\t\t\t\t\t\t\t\t\t\t{trackOptions && trackOptions.length > 1 && isDenominationalTrackSelected && selectedTrack && (\n\t\t\t\t\t\t\t\t\t\t\t<TrackSelector\n\t\t\t\t\t\t\t\t\t\t\t\tclassName={styles.trackSelector}\n\t\t\t\t\t\t\t\t\t\t\t\tselectedTrackId={selectedTrack.trackId}\n\t\t\t\t\t\t\t\t\t\t\t\ttrackOptions={categorizedTrackOptions.denominationalTracks}\n\t\t\t\t\t\t\t\t\t\t\t\tlabel={resources.Traditions}\n\t\t\t\t\t\t\t\t\t\t\t\tdesktopLabelPosition={'top'}\n\t\t\t\t\t\t\t\t\t\t\t\tonTrackChange={handleTrackChange}\n\t\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t\t\t\t<CustomCompareModal\n\t\t\t\t\t\t\t\t\t\t\tinitialExpandedTrackId={initialSelectedTrackId}\n\t\t\t\t\t\t\t\t\t\t\tisOpen={isCustomCompareModalOpen}\n\t\t\t\t\t\t\t\t\t\t\tselectedTrackProducts={selectedCustomCompareTrackProducts}\n\t\t\t\t\t\t\t\t\t\t\tonClose={handleCustomCompareModalClose}\n\t\t\t\t\t\t\t\t\t\t\ttrackOptions={trackOptions}\n\t\t\t\t\t\t\t\t\t\t\ttracks={tracks}\n\t\t\t\t\t\t\t\t\t\t\tonCompare={handleCustomCompare}\n\t\t\t\t\t\t\t\t\t\t\tonTrackProductSelect={handleCustomCompareTrackProductSelect}\n\t\t\t\t\t\t\t\t\t\t\tonTrackProductDeselect={handleCustomCompareTrackProductDeselect}\n\t\t\t\t\t\t\t\t\t\t\tonClearAll={handleCustomCompareClearAll}\n\t\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{isTrackLoaded && !isStickyHeader && (\n\t\t\t\t\t\t\t\t<div className={styles.comparisonTableLegendAndControlsContainer}>\n\t\t\t\t\t\t\t\t\t<ComparisonTableLegend mode={isStickyHeader ? 'wide' : 'default'} />\n\t\t\t\t\t\t\t\t\t<ComparisonTableControls\n\t\t\t\t\t\t\t\t\t\tuserIsBasePackageOwner={userIsBasePackageOwner}\n\t\t\t\t\t\t\t\t\t\t{...comparisonTableControlsHandler}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t{isTrackLoaded && (\n\t\t\t\t\t\t\t<TrackProductSlider\n\t\t\t\t\t\t\t\ttrackProducts={selectedTrack.trackProducts}\n\t\t\t\t\t\t\t\tisSticky={isStickyHeader}\n\t\t\t\t\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t\t{isTrackLoaded && !isStickyHeader && (\n\t\t\t\t\t\t<div className={styles.paymentNotice}>\n\t\t\t\t\t\t\t{'*'}\n\t\t\t\t\t\t\t{pricingSidebarResources.PaymentPlansAvailableInCart.toLowerCase()}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t);\n\t};\n\n\tconst comparisonTableWithSlider = (\n\t\t<>\n\t\t\t{(isLoading || isTableScrolling) && <FullscreenOverlayLoadingSpinner zIndex={5002} />}\n\t\t\t{showTrackHeader && (\n\t\t\t\t<>\n\t\t\t\t\t{getTrackHeader(false, stickyHeaderAnchorElementRef)}\n\t\t\t\t\t{!isMobile && (\n\t\t\t\t\t\t<StickyHeader anchorElementRef={stickyHeaderAnchorElementRef} boundingElementRef={comparisonTableRef}>\n\t\t\t\t\t\t\t{getTrackHeader(true)}\n\t\t\t\t\t\t</StickyHeader>\n\t\t\t\t\t)}\n\t\t\t\t</>\n\t\t\t)}\n\t\t\t<div ref={comparisonTableRef} className={styles.comparisonTable}>\n\t\t\t\t<ComparisonSectionsTable\n\t\t\t\t\tselectedCompareSections={selectedCompareSections}\n\t\t\t\t\tcomparisonTableControlsHandler={comparisonTableControlsHandler}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t</>\n\t);\n\n\tif (!suppressMobileProductComparison && isMobile) {\n\t\treturn (\n\t\t\t<div className={styles.mobileProductComparison}>\n\t\t\t\t<div className={styles.productSectionTitle}>{productSectionTitle && <div>{productSectionTitle}</div>}</div>\n\t\t\t\t{selectedTrack?.trackProducts?.length && (\n\t\t\t\t\t<MobileProductComparison\n\t\t\t\t\t\ttrackProducts={selectedTrack.trackProducts}\n\t\t\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\t\t\tisComparisonModalOpen={isMobileComparisonModalOpen}\n\t\t\t\t\t\tonOpenComparisonModal={handleOpenMobileComparisonModal}\n\t\t\t\t\t\tonCloseComparisonModal={handleCloseMobileComparisonModal}\n\t\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\t>\n\t\t\t\t\t\t{comparisonTableWithSlider}\n\t\t\t\t\t</MobileProductComparison>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn comparisonTableWithSlider;\n};\n\nNewComparisonTableWithSlider.propTypes = {\n\tinitialSelectedTrackId: PropTypes.string.isRequired,\n\ttrackOptions: PropTypes.arrayOf(\n\t\tPropTypes.shape({\n\t\t\tname: PropTypes.string,\n\t\t\ttrackId: PropTypes.string,\n\t\t})\n\t),\n\tuserIsBasePackageOwner: PropTypes.bool,\n\tonTrackAffinityUpdate: PropTypes.func,\n\tproductSectionTitle: PropTypes.string,\n\townershipNotice: PropTypes.string,\n\tsuppressMobileProductComparison: PropTypes.bool,\n\tonItemAddedToCart: PropTypes.func,\n\troutes: PropTypes.shape({\n\t\tDisabledLinkUrl: PropTypes.string,\n\t\tCompareTrackBaseUrl: PropTypes.string,\n\t\tCompareTrackProductsBaseUrl: PropTypes.string,\n\t\tCompareTrackSectionsBaseUrl: PropTypes.string,\n\t}),\n};\n\nexport default NewComparisonTableWithSlider;\n","// extracted by mini-css-extract-plugin\nexport default {\"comparePage\":\"index--comparePage--9Xjbj\",\"loadingIndicator\":\"index--loadingIndicator--Kp6Kg\",\"headerContainer\":\"index--headerContainer--d1vIw\",\"header\":\"index--header--j1Q0n\",\"hideBooksIOwnContainer\":\"index--hideBooksIOwnContainer--RvGgH\",\"headerFilters\":\"index--headerFilters--mL+wc\",\"trackSelectAndCompare\":\"index--trackSelectAndCompare--jbRRq\",\"mobileHeaderText\":\"index--mobileHeaderText--WbHi9\",\"change\":\"index--change--O5Pb8\",\"controls\":\"index--controls--eI8uO\",\"control\":\"index--control---A23M\",\"borderedControl\":\"index--borderedControl--Jznel index--control---A23M\",\"controlLegendMobile\":\"index--controlLegendMobile--LM+OW index--control---A23M\",\"controlLegendDesktop\":\"index--controlLegendDesktop--JaMux\",\"controlIcon\":\"index--controlIcon--ZX6fH\",\"controlIconLabel\":\"index--controlIconLabel--UMaAX\",\"legendIcon\":\"index--legendIcon--Il7IM\",\"legendModal\":\"index--legendModal--wt7Ib\",\"legendModalItem\":\"index--legendModalItem--CEY42\",\"legendModalItemIcon\":\"index--legendModalItemIcon--oQjoL\",\"mobileFilter\":\"index--mobileFilter--q8rcu\",\"mobileFilterHeader\":\"index--mobileFilterHeader--rbucT\",\"mobileFilterBody\":\"index--mobileFilterBody--G-YuB\",\"mobileFilterTitle\":\"index--mobileFilterTitle--EylpR\",\"closeButton\":\"index--closeButton--AUGKR\",\"trackSelect\":\"index--trackSelect--l3TZg\",\"hideBooksIOwnCheckbox\":\"index--hideBooksIOwnCheckbox--SQ+hu\",\"singleTrackHideBooksIOwn\":\"index--singleTrackHideBooksIOwn--nSw-K\",\"sections\":\"index--sections--ewAB1\",\"errorMessage\":\"index--errorMessage--AmGN6\",\"customCompareButton\":\"index--customCompareButton--hFYzX btn btn-secondary-inverted\"};","import React, { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport DisabledMessage from '../disabled-message';\nimport NewComparisonTableWithSlider from '../new-comparison-table-with-slider';\nimport ScrollableTableWithSliderProvider from '../scrollable-table-with-slider/scrollable-table-with-slider-provider';\nimport scrollControlTypes from '../scroll-control-types';\nimport useComparisonTableControlsHandler from '../hooks/comparison-table-controls-handler';\nimport { useLocalization } from '../../../localization';\n\nimport styles from './index.less';\n\nconst comparisonTableWithSliderProps = {\n\tpropsByScreenSize: {\n\t\t/* [mobile, tablet, desktop, largeDesktop, extra: { size: value }] */\n\t\tnumbersOfVisibleColumnsByScreenSize: [1, { 450: 2, 768: 2, 1120: 3, 1320: 4, 1512: 5 }],\n\t\tcolumnWidthsByScreenSize: [84, 190],\n\t\tcolumnGapsByScreenSize: [18, 18],\n\t\tboundaryMarginWidthsByScreenSize: [16, 24],\n\t\tswipeRadiusXByScreenSize: [20, 50],\n\t\tsliderProps: {\n\t\t\tarrowWidthsByScreenSize: [0, 30, { 1350: 45 }],\n\t\t},\n\t},\n};\n\nconst getSelectedTrackProductIndex = track => {\n\tif (!track || !track.trackProducts || track.trackProducts.length <= 3) {\n\t\treturn 0;\n\t}\n\n\treturn Math.min(\n\t\tMath.max(\n\t\t\ttrack.trackProducts.findIndex(tp => tp.isSelected),\n\t\t\t0\n\t\t),\n\t\ttrack.trackProducts.length - 3\n\t);\n};\n\nconst ComparePage = ({\n\tinitialSelectedTrackId,\n\tinitialSelectedTrackProducts,\n\ttrackOptions,\n\tuserIsBasePackageOwner,\n\tproductSectionTitle,\n\townershipNotice,\n\trecommendedTrackProductId,\n\tonItemAddedToCart,\n\troutes,\n}) => {\n\tconst compareResources = useLocalization('CommerceWeb.Resources.Product.Compare');\n\tconst [selectedTrack, setSelectedTrack] = useState(\n\t\ttrackOptions\n\t\t\t? trackOptions.find(option => option.trackId === initialSelectedTrackId)\n\t\t\t: { name: compareResources.CustomCompare, trackId: -1 }\n\t);\n\tconst [selectedTrackProductIndex, setSelectedTrackProductIndex] = useState(0);\n\n\tconst handleUpdateSelectedProductIndex = useCallback(track => {\n\t\tsetSelectedTrack(track);\n\t\tsetSelectedTrackProductIndex(getSelectedTrackProductIndex(track));\n\t}, []);\n\n\tconst comparisonTableControlsHandler = useComparisonTableControlsHandler();\n\n\tconst handleFirstVisibleColumnChange = (updateTrackProductIndex, trackProductIndex) => {\n\t\tupdateTrackProductIndex(trackProductIndex);\n\t};\n\n\tif (routes.DisabledLinkUrl) {\n\t\treturn (\n\t\t\t<div className={styles.comparePage}>\n\t\t\t\t<DisabledMessage disabledLinkUrl={routes.DisabledLinkUrl} />\n\t\t\t</div>\n\t\t);\n\t}\n\n\treturn (\n\t\t<div className={styles.comparePage}>\n\t\t\t<ScrollableTableWithSliderProvider\n\t\t\t\tfirstVisibleColumnIndex={selectedTrackProductIndex}\n\t\t\t\ttotalNumberOfColumns={selectedTrack?.trackProducts?.length ?? 0}\n\t\t\t\tonFirstVisibleColumnChange={i => handleFirstVisibleColumnChange(setSelectedTrackProductIndex, i)}\n\t\t\t\t{...comparisonTableWithSliderProps}\n\t\t\t>\n\t\t\t\t<NewComparisonTableWithSlider\n\t\t\t\t\tinitialSelectedTrackId={initialSelectedTrackId}\n\t\t\t\t\tinitialSelectedTrackProducts={initialSelectedTrackProducts}\n\t\t\t\t\ttrackOptions={trackOptions}\n\t\t\t\t\tuserIsBasePackageOwner={userIsBasePackageOwner}\n\t\t\t\t\tproductSectionTitle={productSectionTitle}\n\t\t\t\t\townershipNotice={ownershipNotice}\n\t\t\t\t\tupdateSelectedProductIndex={handleUpdateSelectedProductIndex}\n\t\t\t\t\trecommendedTrackProductId={recommendedTrackProductId}\n\t\t\t\t\tonItemAddedToCart={onItemAddedToCart}\n\t\t\t\t\tcomparisonTableControlsHandler={comparisonTableControlsHandler}\n\t\t\t\t\troutes={routes}\n\t\t\t\t/>\n\t\t\t</ScrollableTableWithSliderProvider>\n\t\t</div>\n\t);\n};\n\nComparePage.propTypes = {\n\tinitialSelectedTrackId: PropTypes.string.isRequired,\n\tinitialSelectedTrackProducts: PropTypes.array,\n\ttrackOptions: PropTypes.array,\n\tuserIsBasePackageOwner: PropTypes.bool,\n\tscrollControlType: PropTypes.oneOf([scrollControlTypes.scrollbar, scrollControlTypes.buttons]),\n\tonItemAddedToCart: PropTypes.func,\n\tupperBannerViewModel: PropTypes.object.isRequired,\n\troutes: PropTypes.shape({\n\t\tDisabledLinkUrl: PropTypes.string,\n\t\tCompareBaseUrl: PropTypes.string,\n\t\tCompareTrackBaseUrl: PropTypes.string,\n\t\tCompareTrackProductsBaseUrl: PropTypes.string,\n\t\tCompareTrackSectionsBaseUrl: PropTypes.string,\n\t}),\n};\n\nexport default ComparePage;\n","// extracted by mini-css-extract-plugin\nexport default {\"h2\":\"index--h2--mxqjy h2\",\"h4\":\"index--h4---SFFh h2\",\"h5\":\"index--h5--A23tL h3\",\"ui1\":\"index--ui1--JpC8S\",\"ui2\":\"index--ui2--WakZX\",\"ui3\":\"index--ui3--T9oLQ\",\"ui5\":\"index--ui5--tFhyu\",\"b2\":\"index--b2--h3xgs\",\"b3\":\"index--b3--UGqWW\",\"loadingSpinner\":\"index--loadingSpinner--tUJuk\",\"interstitialModalContainer\":\"index--interstitialModalContainer--jaKAZ\",\"header\":\"index--header--nrOdq index--h2--mxqjy h2\",\"message\":\"index--message--yztyG index--ui1--JpC8S\",\"footer\":\"index--footer--25x4Q\",\"buttonsContainer\":\"index--buttonsContainer--tNikt\",\"button\":\"index--button--aIpAc\",\"primaryButton\":\"index--primaryButton--tK4fP index--button--aIpAc\",\"secondaryButton\":\"index--secondaryButton--z9Vo6 index--button--aIpAc\",\"disclaimer\":\"index--disclaimer--PntJL index--ui3--T9oLQ\",\"toastContainer\":\"index--toastContainer--QFfON\",\"subCartSlideIn\":\"index--subCartSlideIn--0QR7U\",\"subCartSlideOut\":\"index--subCartSlideOut--ORPVg\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Modal } from '@faithlife/styled-ui';\n\nimport { BlueCheckmark } from '../svgs';\n\nimport styles from './index.less';\n\nconst InterstitialModal = ({\n\tisOpen,\n\ttestId = undefined,\n\theader,\n\tchildren,\n\tprimaryButtonLabel,\n\tonPrimaryButtonClick,\n\tsecondaryButtonLabel,\n\tonSecondaryButtonClick,\n\tdisclaimer,\n\ttoast,\n}) => (\n\t<Modal\n\t\tisOpen={isOpen}\n\t\tcontainer=\"body\"\n\t\tallowBackgroundScrolling\n\t\tignoreClickOnBackdrop\n\t\twidth={['calc(100vw - 24px)', 'calc(100vw - 156px)']}\n\t\tmaxWidth={'1200px'}\n\t\t/* This z-index beats out the detail modals on mobile, so it always gets displayed over them */\n\t\tzIndex={10000}\n\t\tonClose={() => {\n\t\t\tthrow new Error('Close on the InterstitialModal should not have been triggered!');\n\t\t}} // required by Modal, but spec explicitly forbids close behavior\n\t>\n\t\t<div className={styles.interstitialModalContainer} data-testid={testId}>\n\t\t\t<h2 className={styles.header}>{header}</h2>\n\t\t\t<Modal.Content width={['100%', '75%']}>\n\t\t\t\t<p className={styles.message}>{children}</p>\n\t\t\t</Modal.Content>\n\t\t\t<div className={styles.footer}>\n\t\t\t\t<div className={styles.buttonsContainer}>\n\t\t\t\t\t<button className={styles.primaryButton} onClick={onPrimaryButtonClick}>\n\t\t\t\t\t\t{primaryButtonLabel}\n\t\t\t\t\t</button>\n\t\t\t\t\t<button className={styles.secondaryButton} onClick={onSecondaryButtonClick}>\n\t\t\t\t\t\t{secondaryButtonLabel}\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t{disclaimer && <div className={styles.disclaimer}>{disclaimer}</div>}\n\t\t\t</div>\n\t\t</div>\n\t\t{toast && (\n\t\t\t<div className={styles.toastContainer}>\n\t\t\t\t<BlueCheckmark />\n\t\t\t\t{toast}\n\t\t\t</div>\n\t\t)}\n\t</Modal>\n);\n\nInterstitialModal.propTypes = {\n\tisOpen: PropTypes.bool.isRequired,\n\ttestId: PropTypes.string,\n\theader: PropTypes.node.isRequired,\n\tchildren: PropTypes.node.isRequired,\n\tprimaryButtonLabel: PropTypes.node.isRequired,\n\tonPrimaryButtonClick: PropTypes.func,\n\tsecondaryButtonLabel: PropTypes.node.isRequired,\n\tonSecondaryButtonClick: PropTypes.func,\n\tdisclaimer: PropTypes.node,\n\ttoast: PropTypes.node,\n};\n\nexport default InterstitialModal;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\n\nimport InterstitialModal from '../../interstitial-modal';\nimport { useLocalization } from '../../../../localization';\nimport { useLocation } from '../../../../location';\nimport useInterstitialModalHandler from '../../hooks/use-interstitial-modal-handler';\n\nconst nextTimeToShowAddASubscriptionModalStorageKey = 'next-enable-add-a-subscription-modal-time';\n\nconst useAddASubscriptionModalHandler = (onAddASubscriptionModalNotShown, getShouldShowModalFromState) => {\n\treturn useInterstitialModalHandler(onAddASubscriptionModalNotShown, {\n\t\tnextTimeToShowModalStorageKey: nextTimeToShowAddASubscriptionModalStorageKey,\n\t\tgetShouldShowModalFromState,\n\t\t// disable query parameters\n\t\tshowModalQueryStringParameterName: null,\n\t\tshowCoolDownMillisecondsQueryStringParameterName: null,\n\t});\n};\n\nconst AddASubscriptionModal = ({ isOpen, productTitle, doesUserQualifyForSubscriptionFreeTrial = false, routes }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardAddASubscriptionModal');\n\tconst { navigate } = useLocation();\n\treturn (\n\t\t<InterstitialModal\n\t\t\tisOpen={isOpen}\n\t\t\ttestId=\"subscription-popup-modal\"\n\t\t\theader={resources.SaveAndUnlockHeader}\n\t\t\tprimaryButtonLabel={resources.SeePlans}\n\t\t\tonPrimaryButtonClick={() => navigate(routes.ConfigurationWizardSubscriptionsUrl)}\n\t\t\tsecondaryButtonLabel={resources.ProceedToCheckout}\n\t\t\tonSecondaryButtonClick={() => navigate(routes.CartUrl)}\n\t\t\ttoast={\n\t\t\t\tproductTitle && (\n\t\t\t\t\t<CommandSentence template={resources.LibraryAddedToCart}>\n\t\t\t\t\t\t<CommandSentence.Field name=\"LIBRARY_NAME\">{productTitle}</CommandSentence.Field>\n\t\t\t\t\t</CommandSentence>\n\t\t\t\t)\n\t\t\t}\n\t\t>\n\t\t\t<span>{resources.DiscoverInsightsBeyondMessage}</span>\n\t\t\t{doesUserQualifyForSubscriptionFreeTrial && <span>{` ${resources.YourFirst30DaysAreFree}`}</span>}\n\t\t</InterstitialModal>\n\t);\n};\nAddASubscriptionModal.propTypes = {\n\tisOpen: PropTypes.bool.isRequired,\n\tproductTitle: PropTypes.string,\n\tdoesUserQualifyForSubscriptionFreeTrial: PropTypes.bool,\n\n\troutes: PropTypes.shape({\n\t\tConfigurationWizardSubscriptionsUrl: PropTypes.string.isRequired,\n\t\tCartUrl: PropTypes.string.isRequired,\n\t}).isRequired,\n};\n\nexport default AddASubscriptionModal;\nexport { useAddASubscriptionModalHandler };\n","import React, { useCallback, useState } from 'react';\nimport PropTypes from 'prop-types';\n\nimport FullscreenOverlayLoadingSpinner from '../../shared/fullscreen-overlay-loading-spinner';\nimport ComparePage from '../../compare-page/compare-books-or-features';\nimport {\n\tConfigurationWizardCartContextProvider,\n\tuseConfigurationWizardCartContext,\n} from '../../shared/configuration-wizard-cart';\nimport SummaryTrough from '../summary-trough';\n\nimport WizardHero from '../wizard-hero';\nimport ProgressIndicatorV2 from '../progress-indicator-v2';\nimport { useLocalization } from '../../../localization';\nimport { useLocation } from '../../../location';\nimport styles from './index.less';\nimport AddASubscriptionModal, { useAddASubscriptionModalHandler } from './add-a-subscription-modal';\n\nconst ConfigurationWizardLibraries = ({\n\tcompareViewModel,\n\tsummaryTrough,\n\tlogosOrVerbum,\n\taddASubscriptionModalViewModel,\n\troutes,\n}) => {\n\tconst librariesResources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardLibraries');\n\tconst subscriptionsResources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardSubscriptions');\n\tconst plansResources = useLocalization('CommerceWeb.Resources.Configure.SubscriptionPlans');\n\tconst { navigate } = useLocation();\n\tconst [isRedirecting, setIsRedirecting] = useState(false);\n\n\tconst { value: cart } = useConfigurationWizardCartContext();\n\n\tconst handleSkipAddASubscriptionModal = useCallback(() => {\n\t\tsetIsRedirecting(true);\n\t\tnavigate(!cart?.hasEffectiveSubscription ? routes.ConfigurationWizardSubscriptionsUrl : routes.CartUrl);\n\t}, [cart?.hasEffectiveSubscription, navigate, routes.ConfigurationWizardSubscriptionsUrl, routes.CartUrl]);\n\n\tconst handleCheckShouldShow = useCallback(() => {\n\t\treturn !cart?.hasEffectiveSubscription && addASubscriptionModalViewModel;\n\t}, [addASubscriptionModalViewModel, cart?.hasEffectiveSubscription]);\n\n\tconst { isOpen: isAddASubscriptionModalOpen, handle: handleLibraryAddedToCart } = useAddASubscriptionModalHandler(\n\t\thandleSkipAddASubscriptionModal,\n\t\thandleCheckShouldShow\n\t);\n\n\treturn (\n\t\t<>\n\t\t\t{summaryTrough && <SummaryTrough step=\"libraries\" {...summaryTrough} />}\n\t\t\t{isRedirecting && <FullscreenOverlayLoadingSpinner zIndex={5002} />}\n\t\t\t{addASubscriptionModalViewModel && (\n\t\t\t\t<AddASubscriptionModal isOpen={isAddASubscriptionModalOpen} {...addASubscriptionModalViewModel} />\n\t\t\t)}\n\t\t\t<WizardHero\n\t\t\t\ttitle={librariesResources.BuildYourLogosOrVerbumSubscription}\n\t\t\t\tsubtitle={librariesResources.ChooseYourSoftwareThenAddALibrary}\n\t\t\t\tlogosOrVerbum={logosOrVerbum}\n\t\t\t/>\n\t\t\t<ProgressIndicatorV2\n\t\t\t\tstep=\"libraries\"\n\t\t\t\troutes={{\n\t\t\t\t\tsubscriptionsUrl: routes.ConfigurationWizardSubscriptionsUrl,\n\t\t\t\t\tlibrariesUrl: routes.ConfigurationWizardLibrariesUrl,\n\t\t\t\t}}\n\t\t\t\tresources={{\n\t\t\t\t\tlibrariesLabel: librariesResources.Library,\n\t\t\t\t\tsubscriptionsLabel: librariesResources.AddASubscriptionOptional,\n\t\t\t\t\tlibraryTitleAndNMoreTemplate: librariesResources.LibraryTitleAndNMoreTemplate,\n\t\t\t\t}}\n\t\t\t/>\n\n\t\t\t<div className={styles.lowerSectionContent}>\n\t\t\t\t{compareViewModel && (\n\t\t\t\t\t<ComparePage\n\t\t\t\t\t\t{...compareViewModel}\n\t\t\t\t\t\tonItemAddedToCart={handleLibraryAddedToCart}\n\t\t\t\t\t\tresources={{\n\t\t\t\t\t\t\t...compareViewModel.resources,\n\t\t\t\t\t\t\t...librariesResources,\n\t\t\t\t\t\t\t...subscriptionsResources,\n\t\t\t\t\t\t\t...plansResources,\n\t\t\t\t\t\t}}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nConfigurationWizardLibraries.propTypes = {\n\tcompareViewModel: PropTypes.object,\n\tsummaryTrough: PropTypes.object,\n\tlogosOrVerbum: PropTypes.string,\n\taddASubscriptionModalViewModel: PropTypes.object,\n\troutes: PropTypes.shape({\n\t\tCartUrl: PropTypes.string.isRequired,\n\t\tConfigurationWizardSubscriptionsUrl: PropTypes.string.isRequired,\n\t\tConfigurationWizardLibrariesUrl: PropTypes.string.isRequired,\n\t}).isRequired,\n};\n\nfunction ConfigurationWizardLibrariesContextWrapper(props) {\n\tconst { initialConfigurationWizardCartViewModel, routes } = props;\n\n\treturn (\n\t\t<ConfigurationWizardCartContextProvider initialValue={initialConfigurationWizardCartViewModel} routes={routes}>\n\t\t\t<ConfigurationWizardLibraries {...props} />\n\t\t</ConfigurationWizardCartContextProvider>\n\t);\n}\nConfigurationWizardLibrariesContextWrapper.propTypes = {\n\tinitialConfigurationWizardCartViewModel: PropTypes.object,\n\troutes: PropTypes.object,\n};\n\nexport default ConfigurationWizardLibrariesContextWrapper;\n","import { useCallback, useState } from 'react';\nimport { useLocation } from '../../../location';\n\nconst defaultShowModalQueryStringParameterName = 'showModal';\nconst defaultShowCoolDownMillisecondsQueryStringParamter = 'coolDownMs';\nconst defaultShowCoolDownMilliseconds = 24 * 60 * 60 * 1000;\n\nconst setNextTimeToShowModalInLocalStorage = (\n\tstorageKey,\n\tshowCoolDownMillisecondsQueryStringParameterName,\n\tconfiguredShowCoolDownMilliseconds,\n\tsearch\n) => {\n\tconst coolDownMillisecondsQueryStringParameterValue = parseInt(\n\t\tnew URLSearchParams(search).get(showCoolDownMillisecondsQueryStringParameterName)?.trim()\n\t);\n\n\tconst coolDownMilliseconds = isNaN(coolDownMillisecondsQueryStringParameterValue)\n\t\t? configuredShowCoolDownMilliseconds\n\t\t: coolDownMillisecondsQueryStringParameterValue;\n\n\tconst nextTimeToShowModal = Date.now() + coolDownMilliseconds;\n\n\twindow.localStorage.setItem(storageKey, nextTimeToShowModal.toString());\n};\n\nconst getShouldShowModal = (storageKey, showModalQueryStringParameterName, search) => {\n\tif (showModalQueryStringParameterName) {\n\t\tconst showModal = new URLSearchParams(search).get(showModalQueryStringParameterName)?.trim()?.toLowerCase();\n\n\t\tif (showModal !== 'true') {\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tconst nextTimeToShowModal = parseInt(window.localStorage.getItem(storageKey));\n\tif (isNaN(nextTimeToShowModal)) {\n\t\treturn true;\n\t}\n\n\treturn Date.now() > nextTimeToShowModal;\n};\n\nconst useInterstitialModalHandler = (\n\tonInterstitialNotShown,\n\t{\n\t\tnextTimeToShowModalStorageKey,\n\t\tgetShouldShowModalFromState,\n\t\tshowModalQueryStringParameterName = defaultShowModalQueryStringParameterName,\n\t\tshowCoolDownMillisecondsQueryStringParameterName = defaultShowCoolDownMillisecondsQueryStringParamter,\n\t\tshowCoolDownMilliseconds = defaultShowCoolDownMilliseconds,\n\t}\n) => {\n\tconst { search } = useLocation();\n\tconst [isOpen, setIsOpen] = useState(false);\n\n\tconst handle = useCallback(() => {\n\t\tif (\n\t\t\t(getShouldShowModalFromState ? getShouldShowModalFromState() : true) &&\n\t\t\tgetShouldShowModal(nextTimeToShowModalStorageKey, showModalQueryStringParameterName, search)\n\t\t) {\n\t\t\tsetNextTimeToShowModalInLocalStorage(\n\t\t\t\tnextTimeToShowModalStorageKey,\n\t\t\t\tshowCoolDownMillisecondsQueryStringParameterName,\n\t\t\t\tshowCoolDownMilliseconds,\n\t\t\t\tsearch\n\t\t\t);\n\t\t\tsetIsOpen(true);\n\t\t} else {\n\t\t\tonInterstitialNotShown();\n\t\t}\n\t}, [\n\t\tgetShouldShowModalFromState,\n\t\tnextTimeToShowModalStorageKey,\n\t\tonInterstitialNotShown,\n\t\tsearch,\n\t\tshowCoolDownMilliseconds,\n\t\tshowCoolDownMillisecondsQueryStringParameterName,\n\t\tshowModalQueryStringParameterName,\n\t]);\n\n\treturn { isOpen, handle };\n};\n\nexport default useInterstitialModalHandler;\n","// extracted by mini-css-extract-plugin\nexport default {\"lowerSectionContent\":\"index--lowerSectionContent--556nz\"};","import React, { useMemo } from 'react';\nimport { mobileCutoffWidth, desktopMinWidth } from '../../../util/mobile-utility';\nimport { extraLargeDesktopMinWidth, largeDesktopMinWidth } from '../../../util/hooks/use-screensize';\n\ninterface SizeDescriptor {\n\twidth: number | string;\n\theight?: number;\n}\n\ntype SizeValue = number | string | SizeDescriptor;\n\ninterface ImageSizes {\n\tmobile?: SizeValue;\n\ttablet?: SizeValue;\n\tdesktop?: SizeValue;\n\tlargeDesktop?: SizeValue;\n\textraLargeDesktop?: SizeValue;\n}\n\ninterface ImageProps {\n\tsrc: string;\n\talt?: string;\n\twidth?: number | string;\n\theight?: number | string;\n\tsizes?: ImageSizes;\n\tbelowTheFold?: boolean;\n\tfetchPriority?: 'high' | 'low' | 'auto';\n\tclassName?: string;\n\tstyle?: React.CSSProperties;\n\ttargetAspectRatio?: [number, number];\n}\n\ninterface ProcessedSize {\n\twidth: number | string;\n\theight?: number;\n}\n\ninterface ProcessedSizes {\n\t[key: string]: ProcessedSize;\n}\n\ninterface SizeResult {\n\tsize: number | string;\n\tmaxWidth: number | null;\n}\n\nconst breakPointNames = ['mobile', 'tablet', 'desktop', 'largeDesktop', 'extraLargeDesktop'] as const;\nconst breakPoints: (number | null)[] = [\n\tmobileCutoffWidth,\n\tdesktopMinWidth,\n\tlargeDesktopMinWidth,\n\textraLargeDesktopMinWidth,\n\tnull,\n];\n\nconst standardDeviceWidths = [360, 640, 768, 1024, 1366, 1600, 1920, 2560];\n\nfunction formatSizeValue(size: number | string): string {\n\treturn typeof size === 'string' ? size : `${size}px`;\n}\n\nfunction createSizesAttribute(inputSizes: ProcessedSizes): string {\n\tconst sizeResults: SizeResult[] = [];\n\n\tlet currentResult: SizeResult | undefined = undefined;\n\tfor (let i = 0; i < breakPointNames.length; i++) {\n\t\tconst breakPointName = breakPointNames[i];\n\t\tconst sizeEntry = inputSizes[breakPointName];\n\t\tconst size = sizeEntry?.width ?? null;\n\t\tconst breakPoint = breakPoints[i];\n\t\tif (size !== null) {\n\t\t\tcurrentResult = { size, maxWidth: breakPoint === null ? null : breakPoint - 1 };\n\t\t\tsizeResults.push(currentResult);\n\t\t} else if (currentResult) {\n\t\t\tcurrentResult.maxWidth = breakPoint === null ? null : breakPoint - 1;\n\t\t}\n\t}\n\tif (currentResult) {\n\t\tcurrentResult.maxWidth = null;\n\t}\n\n\treturn sizeResults\n\t\t.map(({ size, maxWidth }) => {\n\t\t\tif (maxWidth !== null) {\n\t\t\t\treturn `(max-width: ${maxWidth}px) ${formatSizeValue(size)}`;\n\t\t\t}\n\t\t\treturn formatSizeValue(size);\n\t\t})\n\t\t.join(',');\n}\n\nfunction computeSrcSetWidths(nominalWidths: number[], deviceWidths: number[]): number[] {\n\tconst widthSet = new Set(deviceWidths);\n\tfor (const nominalWidth of nominalWidths) {\n\t\twidthSet.add(nominalWidth);\n\t\twidthSet.add(nominalWidth * 2);\n\t}\n\treturn [...widthSet].sort((a, b) => a - b);\n}\n\nfunction createSrcSetAttribute(srcSetWidths: number[], src: string, aspectRatio?: number): string | undefined {\n\tconst entries: string[] = [];\n\tfor (const width of srcSetWidths) {\n\t\tconst url = new URL(src);\n\t\turl.searchParams.set('w', String(width));\n\t\tif (aspectRatio) {\n\t\t\turl.searchParams.set('h', String(Math.round(width / aspectRatio)));\n\t\t}\n\t\turl.searchParams.set('m', 'limit');\n\t\tentries.push(`${url.toString()} ${width}w`);\n\t}\n\treturn entries.length > 0 ? entries.join(',') : undefined;\n}\n\nfunction getNominalWidths(processedSizes: ProcessedSizes | undefined, widthProp?: number | string): number[] {\n\tif (processedSizes) {\n\t\tconst numericWidths = Object.values(processedSizes)\n\t\t\t.map(s => s.width)\n\t\t\t.filter((w): w is number => typeof w === 'number');\n\t\treturn numericWidths;\n\t}\n\tif (typeof widthProp === 'number') {\n\t\treturn [widthProp];\n\t}\n\treturn [];\n}\n\nconst amberCdnHost = 'files.logoscdn.com';\nconst amberUrls = ['internal.files.logos.com', 'files.logos.com', amberCdnHost, 'files.amberfile.com'];\n\n// Only production hosts; test/internal hosts serve a different environment's assets and must not be pointed at the production CDN.\nconst amberCdnUpgradableHosts = ['files.logos.com', 'files.amberfile.com'];\n\nfunction isAmberHost(host: string): boolean {\n\treturn amberUrls.includes(host);\n}\n\nfunction detectIsAmberOptimizedUrl(urlAsString: string): boolean {\n\ttry {\n\t\tconst url = new URL(urlAsString);\n\t\tconst isAmberCdn = isAmberHost(url.host);\n\t\tconst isOptimized = url.pathname.endsWith('optimized');\n\t\treturn isAmberCdn && isOptimized;\n\t} catch {\n\t\treturn false;\n\t}\n}\n\n// Amber link signatures are generated against a fixed host, so rewriting the host to the CDN keeps signed links valid.\nfunction toAmberCdnUrl(url: URL): string {\n\tif (!amberCdnUpgradableHosts.includes(url.host)) {\n\t\treturn url.toString();\n\t}\n\tconst cdnUrl = new URL(url.toString());\n\tcdnUrl.host = amberCdnHost;\n\tcdnUrl.protocol = 'https:';\n\tcdnUrl.port = '';\n\treturn cdnUrl.toString();\n}\n\nfunction tryUpgradeAmberUrlToCdn(urlAsString: string): string {\n\ttry {\n\t\treturn toAmberCdnUrl(new URL(urlAsString));\n\t} catch {\n\t\treturn urlAsString;\n\t}\n}\n\nfunction tryAddAmberLimit(urlAsString: string): string {\n\ttry {\n\t\tconst url = new URL(urlAsString);\n\t\tif (!isAmberHost(url.host) || !url.pathname.endsWith('optimized')) {\n\t\t\treturn urlAsString;\n\t\t}\n\t\turl.searchParams.set('m', 'limit');\n\t\treturn url.toString();\n\t} catch {\n\t\treturn urlAsString;\n\t}\n}\n\nfunction processSizes(inputSizes: ImageSizes | undefined, aspectRatio?: number): ProcessedSizes | undefined {\n\tif (!inputSizes) {\n\t\treturn undefined;\n\t}\n\tconst processedSizes: ProcessedSizes = {};\n\tfor (const [sizeName, size] of Object.entries(inputSizes)) {\n\t\tif (typeof size === 'string') {\n\t\t\tprocessedSizes[sizeName] = { width: size };\n\t\t} else if (size !== null && size !== undefined && typeof size === 'object') {\n\t\t\tprocessedSizes[sizeName] = {\n\t\t\t\twidth: size.width,\n\t\t\t\theight:\n\t\t\t\t\tsize.height ??\n\t\t\t\t\t(aspectRatio && typeof size.width === 'number' ? Math.floor(size.width / aspectRatio) : undefined),\n\t\t\t};\n\t\t} else if (typeof size === 'number') {\n\t\t\tprocessedSizes[sizeName] = { width: size, height: aspectRatio ? Math.floor(size / aspectRatio) : undefined };\n\t\t}\n\t}\n\treturn processedSizes;\n}\n\nconst Image = ({\n\tsrc: srcProp,\n\talt,\n\twidth,\n\theight,\n\tsizes: inputSizes,\n\tbelowTheFold = false,\n\tfetchPriority,\n\tclassName,\n\tstyle,\n\ttargetAspectRatio,\n}: ImageProps) => {\n\tconst numericAspectRatio = targetAspectRatio ? targetAspectRatio[0] / targetAspectRatio[1] : undefined;\n\n\tconst src = useMemo(() => tryAddAmberLimit(tryUpgradeAmberUrlToCdn(srcProp)), [srcProp]);\n\tconst processedSizes = processSizes(inputSizes, numericAspectRatio);\n\tconst isAmberOptimizedUrl = detectIsAmberOptimizedUrl(src);\n\n\tconst srcSetAttribute = useMemo(() => {\n\t\tif (!isAmberOptimizedUrl) {\n\t\t\treturn undefined;\n\t\t}\n\n\t\tif (!processedSizes) {\n\t\t\tconst nominalWidths = getNominalWidths(undefined, width);\n\t\t\tconst srcSetWidths = computeSrcSetWidths(nominalWidths, []);\n\t\t\treturn createSrcSetAttribute(srcSetWidths, src, numericAspectRatio);\n\t\t}\n\n\t\tconst containsResponsiveWidth = Object.values(processedSizes).some(\n\t\t\tx => typeof x.width === 'string' && x.width.endsWith('vw')\n\t\t);\n\t\tconst nominalWidths = getNominalWidths(processedSizes, width);\n\t\tconst srcSetWidths = computeSrcSetWidths(nominalWidths, containsResponsiveWidth ? standardDeviceWidths : []);\n\t\treturn createSrcSetAttribute(srcSetWidths, src, numericAspectRatio);\n\t}, [isAmberOptimizedUrl, processedSizes, src, width, numericAspectRatio]);\n\n\tconst sizesAttribute = useMemo(() => {\n\t\tif (srcSetAttribute && processedSizes) {\n\t\t\treturn createSizesAttribute(processedSizes);\n\t\t}\n\t\treturn undefined;\n\t}, [srcSetAttribute, processedSizes]);\n\n\tconst widthAttribute = width ?? targetAspectRatio?.[0];\n\tconst heightAttribute = height ?? targetAspectRatio?.[1];\n\n\treturn (\n\t\t<img\n\t\t\tsrc={src}\n\t\t\talt={alt}\n\t\t\tsrcSet={srcSetAttribute}\n\t\t\tsizes={sizesAttribute}\n\t\t\twidth={widthAttribute}\n\t\t\theight={heightAttribute}\n\t\t\tloading={belowTheFold ? 'lazy' : undefined}\n\t\t\tfetchPriority={fetchPriority}\n\t\t\tclassName={className}\n\t\t\tstyle={style}\n\t\t/>\n\t);\n};\n\nexport {\n\tImage,\n\tdetectIsAmberOptimizedUrl,\n\tisAmberHost,\n\ttoAmberCdnUrl,\n\ttryAddAmberLimit,\n\ttryUpgradeAmberUrlToCdn,\n\tamberCdnHost,\n};\nexport type { ImageProps, ImageSizes, SizeDescriptor };\n"],"names":["customCompareTrackId","track_kinds","track_selector","container","dropdown","desktopLabelPositionTop","desktopLabelPositionLeft","label","labelPunctuation","select","TrackSelector","_ref","className","selectedTrackId","trackOptions","_ref$desktopLabelPosi","desktopLabelPosition","onTrackChange","handleTrackChange","useCallback","event","trackId","target","value","sortedTrackOptions","useMemo","sortedOptions","sort","a","b","name","localeCompare","customCompareTrackIndex","findIndex","option","_sortedOptions$splice","splice","customCompareTrack","_slicedToArray","push","React","classNames","styles","concat","sharedStyles","h5","ui2","onChange","map","key","propTypes","PropTypes","isRequired","new_comparison_table_with_slider_track_selector","DisplayPriceValue","smallPriceClassName","largePriceClassName","price","decimalSymbol","_price$split","split","_price$split2","integralValue","decimalValue","display_price_value","price_anchor","product_price_anchor","priceAnchor","resources","useLocalization","anchorPriceKinds","anchorPriceKind","apk","trim","cn","includes","CollectionValue","CommandSentence","collectionValue","Container","template","Field","PerDayAbbreviated","PerMonthAbbreviated","PerYearAbbreviated","DynamicCollectionValue","dynamicCollectionValue","DigitalListPriceLabel","digitalListPrice","PrintListPriceLabel","printPrice","RegularPriceLabel","regularPrice","DynamicPriceLabel","dynamicPrice","savingsDescription","isDiscounted","compare_page_recommendation_badge","RecommendedForYou","track_product_card","TrackProductCard","variant","title","blurb","isForeignCurrency","skuIds","priceAnchorViewModel","productId","addToMiniCartButton","isOwnedByUser","ownershipNotice","resourceCounts","isRecommended","onItemAddedToCart","imageUrl","savingsPercentage","productDetailsUrl","showTrackProductDetails","shouldShowResourceCount","shouldShowNewToYou","unownedResourceCount","totalAvailableResourceCount","doesUserOwnAllResources","_ref2","BookCountAllOwned","BooksNewToYou","BooksNewToYouBookCount","BookCount","_ref3","resourcesTemplate","resourceCountTemplate","mobileResourceCountTemplate","BookCountNewToYou","desktopResourcesTemplate","desktopResourceCountTemplate","resourceCountToUse","columnWidth","useContext","ScrollableTableWithSliderContext","RecommendationBadge","PercentOff","href","Image","src","alt","shared","PriceAnchor","usdDecimalSymbol","ForeignPriceTooltip","valueLocalized","AddToMiniCartButton","buttonClassName","payInFull","displayAddedToCart","sizes","tablet","desktop","paymentPlanInfo","recurringPrice","numberOfPayments","PaymentPlanInfoTemplate","new_comparison_table_with_slider_track_product_card","ProductTab","track_product_slider_product_tab","TrackProductSlider","trackProducts","isSticky","isMobile","useScreensize","length","trackProductCards","tp","id","component","isOwned","SliderWrapper","itemsClassName","items","arrowOptions","buttonHeight","sliderArrowOptions","short","new_comparison_table_with_slider_track_product_slider","MobileTrackSelector","selectedTrack","hideBooksIOwn","onFilterChange","MobileComparisonHeaderLibraries","Hiding","Showing","onClick","Change","new_comparison_table_with_slider_mobile_track_selector","ComparisonModal","onClose","children","CloseSvgUrl","Close","SwipeableWrapper","new_comparison_table_with_slider_comparison_modal","MobileProductComparison","isComparisonModalOpen","onOpenComparisonModal","onCloseComparisonModal","CompareLibrariesButton","CompareLibraries","RightArrow","new_comparison_table_with_slider_mobile_product_comparison","customCompareTabToken","denominationalTabToken","getTrackTabToken","TabSection","Tab","_ref4","isSelected","TrackTab","_ref5","track","handleClick","CustomCompareTrackTab","_ref6","onChangeComparison","ChangeComparison","CustomCompare","new_comparison_table_with_slider_tab_based_track_selector","userIsBasePackageOwner","primaryTrack","denominationalTracks","alternateTracks","selectedTab","some","_useState","useState","firstTrack","_useState2","isOpen","setIsOpen","handleViewMoreClick","lastDenominationalLibrarySelectedRef","useRef","current","handleDenominationalTabSelected","_denominationalTracks","_denominationalTracks2","Traditions","ViewMoreLibraries","DoubleRightArrow","new_comparison_table_with_slider","NewComparisonTableWithSlider","initialSelectedTrackId","initialSelectedTrackProducts","propsTrackOptions","productSectionTitle","updateSelectedProductIndex","trackKind","recommendedTrackProductId","comparisonTableControlsHandler","routes","_ref$suppressMobilePr","suppressMobileProductComparison","isMobileComparisonModalOpen","setIsMobileComparisonModalOpen","hasDemoedOpenSectionRef","pricingSidebarResources","handleTrackFetched","sections","handleTrackSelected","trackName","productIds","updateUrlParamValues","_useComparisonTracksW","_tracks$selectedTrack","_tracks$selectedTrack2","_tracks$selectedTrack3","handleCustomCompareAllCleared","tracksByTrackId","trackOption","tracks","setTracks","_useState3","_useState4","setSelectedTrackId","_useState5","_useState6","selectedMobileFilterTrackId","setSelectedMobileFilterTrackId","_useState7","_useState8","setSelectedTrack","_useState9","_useState0","selectedTrackProductIndex","setSelectedTrackProductIndex","_useState1","_useState10","selectedCompareSections","setSelectedCompareSections","_useState11","_useState12","sectionsByTrackId","setSectionsByTrackId","_useState13","_useState14","displayMobileFilter","setDisplayMobileFilter","_useState15","_useState16","isLoading","setIsLoading","_useState17","_useState18","errorMessage","setErrorMessage","_useState19","_useState20","isCustomCompareModalOpen","setIsCustomCompareModalOpen","_useState21","_useState22","selectedCustomCompareTrackProducts","setSelectedCustomCompareTrackProducts","handleCustomCompare","i","newTracks","_objectSpread","prev","_objectWithoutProperties","_toPropertyKey","useEffect","SomethingWentWrong","async","tracksWithoutTrackProducts","responseTracks","CompareClient","getTrackProducts","CompareTrackProductsBaseUrl","forEach","responseTrack","ex","fetchTrackProducts","selectedTrackProducts","selectedTrackCachedSections","selectedTrackName","selectedTrackRecommendedProductId","recommendedProductId","_useState23","_useState24","fetchingSectionsTrackId","setFetchingSectionsTrackId","_await$CompareClient$","product","response","getCompareSectionData","CompareTrackSectionsBaseUrl","Math","min","max","getSelectedTrackProductIndex","fetchTrack","handleMobileFilterTrackChange","handleFilterChange","handleCustomCompareTrackProductSelect","trackProduct","isAlreadySelected","newSelectedCustomCompareTrackProducts","filter","notifyError","YouHaveSelectedMaxNumberOfItemsToCompare","handleCustomCompareTrackProductDeselect","filteredSelectedCustomCompareTrackProducts","handleCustomCompareClearAll","useComparisonTracksWithCustomCompare","handleChangeComparison","handleCustomCompareModalClose","usePreventBodyScrolling","handleOpenMobileComparisonModal","handleCloseMobileComparisonModal","stickyHeaderAnchorElementRef","comparisonTableRef","isTableScrolling","categorizedTrackOptions","isAnyCategorizedTracks","trackGroup","unshift","isDenominationalTrackSelected","FullscreenOverlayLoadingSpinner","zIndex","MobileCustomCompare","initialExpandedTrackId","isVisible","onClearAll","onCompare","onTrackProductDeselect","onTrackProductSelect","showTrackHeader","TrackKinds","isTrackLoaded","getTrackHeader","isStickyHeader","ref","TabBasedTrackSelector","CustomCompareModal","ComparisonTableLegend","mode","ComparisonTableControls","_extends","PaymentPlansAvailableInCart","toLowerCase","comparisonTableWithSlider","StickyHeader","anchorElementRef","boundingElementRef","ComparisonSectionsTable","_selectedTrack$trackP","onTrackAffinityUpdate","DisabledLinkUrl","CompareTrackBaseUrl","compare_page_new_comparison_table_with_slider","compare_books_or_features","comparisonTableWithSliderProps","propsByScreenSize","numbersOfVisibleColumnsByScreenSize","columnWidthsByScreenSize","columnGapsByScreenSize","boundaryMarginWidthsByScreenSize","swipeRadiusXByScreenSize","sliderProps","arrowWidthsByScreenSize","ComparePage","_selectedTrack$trackP2","compareResources","find","handleUpdateSelectedProductIndex","useComparisonTableControlsHandler","DisabledMessage","disabledLinkUrl","ScrollableTableWithSliderProvider","firstVisibleColumnIndex","totalNumberOfColumns","onFirstVisibleColumnChange","scrollControlType","scrollControlTypes","scrollbar","buttons","upperBannerViewModel","CompareBaseUrl","compare_page_compare_books_or_features","InterstitialModal","_ref$testId","testId","undefined","header","primaryButtonLabel","onPrimaryButtonClick","secondaryButtonLabel","onSecondaryButtonClick","disclaimer","toast","Modal","allowBackgroundScrolling","ignoreClickOnBackdrop","width","maxWidth","Error","Content","BlueCheckmark","configuration_wizard_interstitial_modal","AddASubscriptionModal","productTitle","_ref$doesUserQualifyF","doesUserQualifyForSubscriptionFreeTrial","navigate","useLocation","SaveAndUnlockHeader","SeePlans","ConfigurationWizardSubscriptionsUrl","ProceedToCheckout","CartUrl","LibraryAddedToCart","DiscoverInsightsBeyondMessage","YourFirst30DaysAreFree","add_a_subscription_modal","ConfigurationWizardLibraries","compareViewModel","summaryTrough","logosOrVerbum","addASubscriptionModalViewModel","librariesResources","subscriptionsResources","plansResources","isRedirecting","setIsRedirecting","cart","useConfigurationWizardCartContext","_useAddASubscriptionM","useInterstitialModalHandler","onInterstitialNotShown","nextTimeToShowModalStorageKey","getShouldShowModalFromState","_ref$showModalQuerySt","showModalQueryStringParameterName","_ref$showCoolDownMill","showCoolDownMillisecondsQueryStringParameterName","_ref$showCoolDownMill2","showCoolDownMilliseconds","search","handle","getShouldShowModal","storageKey","_URLSearchParams$get2","URLSearchParams","get","nextTimeToShowModal","parseInt","window","localStorage","getItem","isNaN","Date","now","setNextTimeToShowModalInLocalStorage","configuredShowCoolDownMilliseconds","_URLSearchParams$get","coolDownMillisecondsQueryStringParameterValue","coolDownMilliseconds","setItem","toString","hasEffectiveSubscription","isAddASubscriptionModalOpen","handleLibraryAddedToCart","SummaryTrough","step","WizardHero","BuildYourLogosOrVerbumSubscription","subtitle","ChooseYourSoftwareThenAddALibrary","ProgressIndicatorV2","subscriptionsUrl","librariesUrl","ConfigurationWizardLibrariesUrl","librariesLabel","Library","subscriptionsLabel","AddASubscriptionOptional","libraryTitleAndNMoreTemplate","LibraryTitleAndNMoreTemplate","ConfigurationWizardLibrariesContextWrapper","props","initialConfigurationWizardCartViewModel","ConfigurationWizardCartContextProvider","initialValue","configuration_wizard_libraries","breakPointNames","breakPoints","mobileCutoffWidth","desktopMinWidth","largeDesktopMinWidth","extraLargeDesktopMinWidth","standardDeviceWidths","formatSizeValue","size","computeSrcSetWidths","nominalWidths","deviceWidths","widthSet","Set","nominalWidth","add","createSrcSetAttribute","srcSetWidths","aspectRatio","entries","url","URL","searchParams","set","String","round","join","getNominalWidths","processedSizes","widthProp","Object","values","s","w","amberCdnHost","amberUrls","amberCdnUpgradableHosts","isAmberHost","host","detectIsAmberOptimizedUrl","urlAsString","isAmberCdn","isOptimized","pathname","endsWith","_unused","toAmberCdnUrl","cdnUrl","protocol","port","srcProp","height","inputSizes","_ref4$belowTheFold","belowTheFold","fetchPriority","style","targetAspectRatio","numericAspectRatio","_unused3","tryAddAmberLimit","_unused2","tryUpgradeAmberUrlToCdn","sizeName","_size$height","floor","processSizes","isAmberOptimizedUrl","srcSetAttribute","containsResponsiveWidth","x","sizesAttribute","sizeResults","currentResult","_sizeEntry$width","sizeEntry","breakPoint","createSizesAttribute","widthAttribute","heightAttribute","srcSet","loading"],"sourceRoot":""}