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S,EAAI,EAAGA,EAAIsO,EAAgB/X,OAAQyJ,IAAK,KAAAgT,EAChD,MACMC,EAAYvB,EADKpD,EAAgBtO,IAEjC8O,EAAuB,QAAnBkE,EAAGC,aAAS,EAATA,EAAWtK,aAAK,IAAAqK,EAAAA,EAAI,KAC3BE,EAAa3E,EAAYvO,GAClB,OAAT8O,GACHiE,EAAgB,CAAEjE,OAAMlG,SAAyB,OAAfsK,EAAsB,KAAOA,EAAa,GAC5EJ,EAAYvkB,KAAKwkB,IACPA,IACVA,EAAcnK,SAA0B,OAAfsK,EAAsB,KAAOA,EAAa,EAErE,CAKA,OAJIH,IACHA,EAAcnK,SAAW,MAGnBkK,EACL9jB,IAAIrC,IAAwB,IAArBmiB,EAAIniB,EAAJmiB,KAAMlG,EAAQjc,EAARic,SACb,OAAiB,OAAbA,EACH,eAAAja,OAAsBia,EAAQ,QAAAja,OAAOkgB,EAAgBC,IAE/CD,EAAgBC,KAEvBkB,KAAK,IACR,CAyJUmD,CAAqBjD,IAG3B,CAACwC,EAAiBxC,IAEfkD,EAAiBzK,QAAAA,EAASoJ,aAAiB,EAAjBA,EAAoB,GAC9CsB,EAAkB5B,QAAAA,EAAUM,aAAiB,EAAjBA,EAAoB,GAEtD,OACCvjB,EAAAA,cAAA,OACCqG,IAAKA,EACLC,IAAKA,EACLwe,OAAQZ,EACRld,MAAOqd,EACPlK,MAAOyK,EACP3B,OAAQ4B,EACRE,QAAS3B,EAAe,YAAS5J,EACjC6J,cAAeA,EACfjlB,UAAWA,EACXklB,MAAOA","sources":["webpack://@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\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\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\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 Container=\"span\" template={priceAnchor.printPrice} className={styles.struckThroughPrice}>\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 Container=\"span\" template={priceAnchor.regularPrice} className={styles.struckThroughPrice}>\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 Container=\"span\" template={priceAnchor.dynamicPrice} className={styles.struckThroughPrice}>\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 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 && (\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 className={styles.mobileResourcesCount} template={mobileResourceCountTemplate}>\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 && (\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 className={styles.resourcesCount} template={resourcesTemplate ?? '%BOOKS%'}>\n\t\t\t\t\t<CommandSentence.Field name=\"BOOKS\">\n\t\t\t\t\t\t<CommandSentence Container=\"span\" className={styles.resourceCount} template={resourceCountTemplate ?? ''}>\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{resources.DiscoverInsightsBeyondMessage}\n\t\t\t{doesUserQualifyForSubscriptionFreeTrial && <> {resources.YourFirst30DaysAreFree}</>}\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","Container","template","collectionValue","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","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":""}