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kC,CAACC,aAAcwgB,GACjD9c,EAAAA,cAAC+Y,GAAqC9D,KAK3C,CA3CA8D,GAAiC7V,UAAY,CAC5C8V,gCAAiC7V,IAAAA,OAAiBC,WAClD8V,gCAAiC/V,IAAAA,KAAeC,WAChD+V,cAAehW,IAAAA,OACfnG,yBAA0BmG,IAAAA,KAC1B5E,YAAa4E,IAAAA,MACbiW,cAAejW,IAAAA,OACfsF,kCAAmCtF,IAAAA,QAqCpCwZ,GAA+CzZ,UAAY,CAC1D0Z,wCAAyCzZ,IAAAA,OACzCnG,yBAA0BmG,IAAAA,KAC1BsF,kCAAmCtF,IAAAA,QAGpC,MAAA8Z,GAAA","sources":["webpack://@logos/commerceweb-frontend/./Scripts/site/clients/products-client.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/billing-modes.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/context.tsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/library-upsell-modal-ui.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/library-upsell-modal-ui.less?98d4","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/library-upsell-product-card.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/library-upsell-product-card.less?6140","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/library-upsell-modal/index.less?59e1","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/plans-section/index.less?480f","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/plans-section/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/subscription-pricing-card-utils.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/subscription-product-card-sticky-header/index.less?2b1a","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/subscription-product-card-sticky-header/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/feature-details/feature-component-details/index.less?c255","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/feature-details/feature-component-details/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/feature-details/index.less?6246","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/feature-details/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/feature-section-row-details/index.less?af84","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/index.less?8893","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/section-row/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/util/hooks/use-on-screen.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/featured-spoid-overlay.js","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/comparison-chart/index.less?358f","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/overlay-base/index.less?2581","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/overlay-base/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/mobile-comparison-chart/index.less?3b17","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/mobile-comparison-chart/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/compare-jump/index.less?9dbd","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/compare-jump/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/index.jsx","webpack://@logos/commerceweb-frontend/./Scripts/site/components/configuration-wizard/subscriptions/index.less?e84b"],"sourcesContent":["import { fetch } from '../util/fetch';\n\nexport default class ProductsClient {\n\tstatic async getContainingProductsAsync({ containingProductsUrl }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: containingProductsUrl,\n\t\t});\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getHasContainingProductsAsync({ hasContainingProductsUrl }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: hasContainingProductsUrl,\n\t\t});\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getContainingSubscriptionsAsync({ containingSubscriptionsUrl }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: containingSubscriptionsUrl,\n\t\t});\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getProductsCustomersAlsoBoughtAsync({ customersAlsoBoughtUrl, skuIds }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: customersAlsoBoughtUrl,\n\t\t\tparams: { skuIds },\n\t\t});\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getTooltipAsync({ url }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: url,\n\t\t});\n\t\treturn await response.json();\n\t}\n\n\tstatic async getProductDownloadsAsync({ downloadsUrl, skuIds }) {\n\t\tconst response = await fetch.get({\n\t\t\turl: downloadsUrl,\n\t\t\tparams: { skuIds },\n\t\t});\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getFeaturedProducts(featuredProductIdsUrl) {\n\t\tlet response;\n\n\t\ttry {\n\t\t\tresponse = await fetch.get({\n\t\t\t\turl: featuredProductIdsUrl,\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (error.response.status === 404) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tthrow error;\n\t\t}\n\n\t\treturn (await response.json()).featuredProducts;\n\t}\n\n\tstatic async getQuickCompare(quickCompareUrl) {\n\t\tlet response;\n\n\t\ttry {\n\t\t\tresponse = await fetch.get({\n\t\t\t\turl: quickCompareUrl,\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (error.response.status === 404) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tthrow error;\n\t\t}\n\n\t\treturn await response.json();\n\t}\n\n\tstatic async getUnownedResourcesInfos(unownedResourcesInfosBaseUrl, productIds) {\n\t\tlet response;\n\n\t\ttry {\n\t\t\tresponse = await fetch.get({\n\t\t\t\turl: `${unownedResourcesInfosBaseUrl}?productIds=${productIds.join()}`,\n\t\t\t});\n\t\t} catch (error) {\n\t\t\tif (error.response.status === 404) {\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t\tthrow error;\n\t\t}\n\n\t\treturn (await response.json()).infos;\n\t}\n\n\tstatic async getShortBlurbsForProductIds(getShortBlurbsUrl, productIds) {\n\t\tconst response = await fetch.postWithBody({\n\t\t\turl: getShortBlurbsUrl,\n\t\t\tbody: {\n\t\t\t\tproductIds: productIds,\n\t\t\t},\n\t\t});\n\t\treturn await response.json();\n\t}\n\n\tstatic async getSubscriptionPromotionsForSkuIds(getSubscriptionPromotionsUrl, skuIds) {\n\t\tconst response = await fetch.get({\n\t\t\turl: getSubscriptionPromotionsUrl,\n\t\t\tparams: { skuIds },\n\t\t});\n\n\t\treturn await response.json();\n\t}\n}\n","const BillingMode = {\n\tMonthly: 'Monthly',\n\tAnnually: 'Annually',\n\tMultiAnnualTerm: 'MultiAnnualTerm',\n};\n\nconst allBillingModes = Object.values(BillingMode);\n\nexport { BillingMode, allBillingModes };\n","import React, { createContext, useCallback, useContext, useEffect, useState } from 'react';\nimport { SubscriptionBillingPeriodOptions } from '@faithlife/commerce-components';\nimport { useConfigurationWizardCartContext } from '../shared/configuration-wizard-cart';\nimport { useLocation } from '../../location';\nimport { RouteContext } from '../../route-context';\nimport eventAggregator from '../../cart/utility/eventaggregator';\nimport { SubscriptionProductData, usePerUserDataContext } from '../per-user-data/per-user-data-context';\n\ninterface ConfigurationWizardContextType {\n\tisLibraryUpsellModalOpen: boolean;\n\tsetIsLibraryUpsellModalOpen: (isOpen: boolean) => void;\n\tisLoading: boolean;\n\tsetIsLoading: (isLoading: boolean) => void;\n\tselectedSubscribableProduct: SubscriptionProductData | null;\n\thandleShowLibraryUpsellModal: (optionId: string) => void;\n\tselectedBillingMode: SubscriptionBillingPeriodOptions | null;\n\tsetSelectedBillingMode: (mode: SubscriptionBillingPeriodOptions) => void;\n\tselectedSpoid?: string | null;\n\tsetSelectedSpoid?: (selectedSpoid: string) => void;\n\tspoids: string[];\n\tcouponCodes: string[];\n}\n\nconst ConfigurationWizardContext = createContext<ConfigurationWizardContextType | null>(null);\n\nexport interface ConfigurationWizardContextProps {\n\tinitialValue: {\n\t\tisLibraryUpsellAvailable: boolean;\n\t\tspoids: string[];\n\t\tcouponCodes: string[];\n\t\tdefaultBillingMode?: SubscriptionBillingPeriodOptions | null;\n\t};\n\tchildren: React.ReactNode;\n}\n\nexport function ConfigurationWizardContextProvider({ initialValue, children }: ConfigurationWizardContextProps) {\n\tconst { value: cart } = useConfigurationWizardCartContext() as {\n\t\tvalue: { hasLibraryInCart?: boolean; subscriptionsInCart?: { spoId: string; quantity: number }[] } | null;\n\t};\n\tconst { navigate } = useLocation();\n\tconst { routes } = useContext(RouteContext);\n\n\tconst isLibraryUpsellAvailable = initialValue.isLibraryUpsellAvailable;\n\n\tconst [isLibraryUpsellModalOpen, setIsLibraryUpsellModalOpen] = useState<boolean>(false);\n\tconst [isLoading, setIsLoading] = useState(false);\n\n\tconst subscriptionInCart = cart?.subscriptionsInCart?.[0];\n\tconst [selectedSpoid, setSelectedSpoid] = useState<string | null>(subscriptionInCart?.spoId ?? null);\n\n\tconst [selectedSubscribableProduct, setSelectedSubscribableProduct] = useState<SubscriptionProductData | null>(null);\n\tconst [selectedBillingMode, setSelectedBillingMode] = useState<SubscriptionBillingPeriodOptions | null>(\n\t\tinitialValue.defaultBillingMode ?? null\n\t);\n\n\tconst { getSubscriptionProductData } = usePerUserDataContext();\n\n\tconst getSelectedSubscribableProductData = useCallback(\n\t\tasync (optionId: string, quantity: number) => {\n\t\t\treturn await getSubscriptionProductData(optionId, initialValue.couponCodes, quantity === 2);\n\t\t},\n\t\t[getSubscriptionProductData, initialValue.couponCodes]\n\t);\n\n\tuseEffect(() => {\n\t\tlet isCancelled = false;\n\n\t\tasync function loadSelectedSubscribableProductData() {\n\t\t\tif (!subscriptionInCart) {\n\t\t\t\tsetSelectedSubscribableProduct(null);\n\t\t\t\tsetSelectedBillingMode(null);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst selectedSubscribableProductData = await getSelectedSubscribableProductData(\n\t\t\t\tsubscriptionInCart.spoId,\n\t\t\t\tsubscriptionInCart.quantity\n\t\t\t);\n\n\t\t\tif (isCancelled || !selectedSubscribableProductData) {\n\t\t\t\treturn null;\n\t\t\t}\n\t\t\tsetSelectedSubscribableProduct(selectedSubscribableProductData);\n\t\t\tsetSelectedBillingMode(\n\t\t\t\tselectedSubscribableProductData.isMultiAnnualSubscription\n\t\t\t\t\t? SubscriptionBillingPeriodOptions.MultiAnnual\n\t\t\t\t\t: (selectedSubscribableProductData.optionBillingMode as SubscriptionBillingPeriodOptions)\n\t\t\t);\n\t\t}\n\n\t\tvoid loadSelectedSubscribableProductData();\n\n\t\treturn () => {\n\t\t\tisCancelled = true;\n\t\t};\n\t}, [getSelectedSubscribableProductData, subscriptionInCart]);\n\n\tconst handleShowLibraryUpsellModal = useCallback(\n\t\tasync (optionId: string) => {\n\t\t\tconst hasLibraryInCart = cart?.hasLibraryInCart ?? false;\n\n\t\t\tif (hasLibraryInCart) {\n\t\t\t\tsetIsLoading(true);\n\t\t\t\tnavigate(routes.CartUrl);\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tif (isLibraryUpsellAvailable) {\n\t\t\t\tconst selectedSubscribableProduct = await getSelectedSubscribableProductData(\n\t\t\t\t\toptionId ?? '',\n\t\t\t\t\tselectedBillingMode === SubscriptionBillingPeriodOptions.MultiAnnual ? 2 : 1\n\t\t\t\t);\n\n\t\t\t\tif (selectedSubscribableProduct) {\n\t\t\t\t\tsetSelectedSubscribableProduct(selectedSubscribableProduct);\n\t\t\t\t\tsetIsLibraryUpsellModalOpen(true);\n\t\t\t\t}\n\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tsetIsLoading(true);\n\t\t\tnavigate(routes.ConfigurationWizardLibrariesUrl);\n\t\t},\n\t\t[\n\t\t\tcart?.hasLibraryInCart,\n\t\t\tisLibraryUpsellAvailable,\n\t\t\tgetSelectedSubscribableProductData,\n\t\t\tnavigate,\n\t\t\troutes.CartUrl,\n\t\t\troutes.ConfigurationWizardLibrariesUrl,\n\t\t\tselectedBillingMode,\n\t\t]\n\t);\n\n\tfunction getSelectedSpoidFromUpdatedCart(\n\t\tupdatedCart: {\n\t\t\torder?: {\n\t\t\t\tsubscribableLineItems?: {\n\t\t\t\t\tisLogosSubscription?: boolean;\n\t\t\t\t\tsubscribableProductOptionId?: string | null;\n\t\t\t\t}[];\n\t\t\t};\n\t\t},\n\t\tselectedSpoid?: string | null\n\t) {\n\t\treturn (\n\t\t\tupdatedCart?.order?.subscribableLineItems?.find(\n\t\t\t\titem =>\n\t\t\t\t\titem?.isLogosSubscription &&\n\t\t\t\t\titem?.subscribableProductOptionId &&\n\t\t\t\t\titem?.subscribableProductOptionId !== selectedSpoid\n\t\t\t)?.subscribableProductOptionId ?? null\n\t\t);\n\t}\n\n\tuseEffect(() => {\n\t\tfunction handleCartUpdated(_event: { type: string }, updatedCart: { order?: { subscribableLineItems?: [] } }) {\n\t\t\tsetSelectedSpoid(currentSelectedSpoid => getSelectedSpoidFromUpdatedCart(updatedCart, currentSelectedSpoid));\n\t\t}\n\n\t\teventAggregator.on('cart:updated', handleCartUpdated);\n\n\t\treturn () => {\n\t\t\teventAggregator.off('cart:updated', handleCartUpdated);\n\t\t};\n\t}, []);\n\n\treturn (\n\t\t<ConfigurationWizardContext.Provider\n\t\t\tvalue={{\n\t\t\t\tisLibraryUpsellModalOpen,\n\t\t\t\tsetIsLibraryUpsellModalOpen,\n\t\t\t\tisLoading,\n\t\t\t\tsetIsLoading,\n\t\t\t\tselectedSubscribableProduct,\n\t\t\t\thandleShowLibraryUpsellModal,\n\t\t\t\tselectedBillingMode,\n\t\t\t\tsetSelectedBillingMode,\n\t\t\t\tselectedSpoid,\n\t\t\t\tsetSelectedSpoid,\n\t\t\t\tspoids: initialValue.spoids,\n\t\t\t\tcouponCodes: initialValue.couponCodes,\n\t\t\t}}\n\t\t>\n\t\t\t{children}\n\t\t</ConfigurationWizardContext.Provider>\n\t);\n}\n\nexport const useConfigurationWizardContext = () => useContext(ConfigurationWizardContext);\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport { Modal } from '@faithlife/styled-ui';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\n\nimport { Button } from '@faithlife/commerce-components';\nimport { X, Checkmark, SubscriptionStar } from '../svgs';\n\nimport { useLocalization } from '../../../localization';\nimport styles from './library-upsell-modal-ui.less';\n\nexport function LibraryUpsellModalUi({\n\tselectedProduct,\n\tlibraryProductCards,\n\topen,\n\tonDismiss,\n\tonShopLibrariesClick,\n\tonProceedWithoutLibraryClick,\n}) {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.LibraryUpsellModal');\n\treturn (\n\t\t<Modal\n\t\t\tisOpen={open}\n\t\t\tonClose={onDismiss}\n\t\t\tcontainer=\"body\"\n\t\t\twidth={['calc(100vw - 24px)', 'calc(100vw - 156px)']}\n\t\t\tmaxWidth=\"1164px\"\n\t\t\t/* This z-index beats out the detail modals on mobile, so it always gets displayed over them */\n\t\t\tzIndex={10000}\n\t\t\tclassName={styles.modal}\n\t\t>\n\t\t\t<div\n\t\t\t\tdata-testid=\"library-upsell-modal\"\n\t\t\t\tclassName={styles.modalContent}\n\t\t\t\tstyle={{ maxHeight: 'calc(100vh - 32px)' }}\n\t\t\t>\n\t\t\t\t<div className={styles.header}>\n\t\t\t\t\t<div className={styles.headerMessage}>\n\t\t\t\t\t\t<Checkmark />\n\t\t\t\t\t\t<div className={styles.headerText}>\n\t\t\t\t\t\t\t<CommandSentence template={resources.YouveSelectedSubscribableProduct}>\n\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"PRODUCT_NAME\">{selectedProduct.name}</CommandSentence.Field>\n\t\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<button onClick={onDismiss} className={styles.closeButton}>\n\t\t\t\t\t\t<X />\n\t\t\t\t\t</button>\n\t\t\t\t</div>\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.description}>{resources.WantMoreInsights}</div>\n\t\t\t\t\t<div className={styles.productCardsLayout}>\n\t\t\t\t\t\t{libraryProductCards.map((card, index) => (\n\t\t\t\t\t\t\t<div key={index} className={styles.productCardWrapper}>\n\t\t\t\t\t\t\t\t{card}\n\t\t\t\t\t\t\t</div>\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 className={styles.footer}>\n\t\t\t\t\t<div className={styles.selectionInfo}>\n\t\t\t\t\t\t<div className={styles.selectionTitle}>{resources.YourSelection}</div>\n\t\t\t\t\t\t<div className={styles.selectionDetails}>\n\t\t\t\t\t\t\t<div className={styles.productInfo}>\n\t\t\t\t\t\t\t\t<SubscriptionStar />\n\t\t\t\t\t\t\t\t<div className={styles.productTier}>{selectedProduct.tier}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t{selectedProduct.pricing !== null && (\n\t\t\t\t\t\t\t\t<div className={styles.pricingInfo}>\n\t\t\t\t\t\t\t\t\t{(() => {\n\t\t\t\t\t\t\t\t\t\tswitch (selectedProduct.pricing.termPeriod) {\n\t\t\t\t\t\t\t\t\t\t\tcase 'month':\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence template={resources.PricePerMonth}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"PRICE\">{selectedProduct.pricing.amount}</CommandSentence.Field>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\tcase 'year':\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence template={resources.PricePerYear}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"PRICE\">{selectedProduct.pricing.amount}</CommandSentence.Field>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t\t\t\t\t\t\t\t);\n\t\t\t\t\t\t\t\t\t\t\tcase 'twoYears':\n\t\t\t\t\t\t\t\t\t\t\t\treturn (\n\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence template={resources.PricePerTwoYears}>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"PRICE\">{selectedProduct.pricing.amount}</CommandSentence.Field>\n\t\t\t\t\t\t\t\t\t\t\t\t\t</CommandSentence>\n\t\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})()}\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</div>\n\t\t\t\t\t<div className={styles.buttons}>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclassName={styles.secondaryButton}\n\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\tscale=\"medium\"\n\t\t\t\t\t\t\tonClick={onShopLibrariesClick}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{resources.ShopAllLibraries}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t\t<Button\n\t\t\t\t\t\t\tclassName={styles.primaryButton}\n\t\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t\tscale=\"medium\"\n\t\t\t\t\t\t\tonClick={onProceedWithoutLibraryClick}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t{resources.ProceedWithoutLibrary}\n\t\t\t\t\t\t</Button>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</Modal>\n\t);\n}\n\nLibraryUpsellModalUi.propTypes = {\n\tlibraryProductCards: PropTypes.arrayOf(PropTypes.node).isRequired,\n\tselectedProduct: PropTypes.shape({\n\t\tname: PropTypes.string.isRequired,\n\t\ttier: PropTypes.string.isRequired,\n\t\tpricing: PropTypes.shape({\n\t\t\tamount: PropTypes.string.isRequired,\n\t\t\ttermPeriod: PropTypes.oneOf(['month', 'year', 'twoYears']).isRequired,\n\t\t}),\n\t}).isRequired,\n\topen: PropTypes.bool.isRequired,\n\tonDismiss: PropTypes.func,\n\tonShopLibrariesClick: PropTypes.func,\n\tonProceedWithoutLibraryClick: PropTypes.func,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"modal\":\"library-upsell-modal-ui--modal--NO9uo\",\"modalContent\":\"library-upsell-modal-ui--modalContent--tfQTR\",\"header\":\"library-upsell-modal-ui--header--JjKED\",\"headerMessage\":\"library-upsell-modal-ui--headerMessage--Ij4yI\",\"headerText\":\"library-upsell-modal-ui--headerText--mgu2r\",\"closeButton\":\"library-upsell-modal-ui--closeButton--bDQog\",\"content\":\"library-upsell-modal-ui--content--fGfk9\",\"description\":\"library-upsell-modal-ui--description--21ntT\",\"productCardsLayout\":\"library-upsell-modal-ui--productCardsLayout--VyKZ-\",\"productCardWrapper\":\"library-upsell-modal-ui--productCardWrapper--ET0QI\",\"footer\":\"library-upsell-modal-ui--footer--jZT9H\",\"selectionInfo\":\"library-upsell-modal-ui--selectionInfo--MQ+X1\",\"selectionTitle\":\"library-upsell-modal-ui--selectionTitle--ENsMU\",\"selectionDetails\":\"library-upsell-modal-ui--selectionDetails--AuzxQ\",\"productInfo\":\"library-upsell-modal-ui--productInfo--c7UD4\",\"subscriptionIcon\":\"library-upsell-modal-ui--subscriptionIcon--ylowj\",\"productTier\":\"library-upsell-modal-ui--productTier--8Cscm\",\"pricingInfo\":\"library-upsell-modal-ui--pricingInfo--I-hjM\",\"buttons\":\"library-upsell-modal-ui--buttons--aCeSs\",\"primaryButton\":\"library-upsell-modal-ui--primaryButton--GgPoX btn btn-primary\",\"secondaryButton\":\"library-upsell-modal-ui--secondaryButton---QfgW btn btn-secondary-inverted\"};","import React, { useMemo } from 'react';\nimport PropTypes from 'prop-types';\nimport { CommandSentence } from '@faithlife/command-sentence-control';\n\nimport { AddToCartButton, CommerceComponentsContextProvider, IdentifierTypes } from '@faithlife/commerce-components';\nimport { useAddToCartRequest } from '../../builder/use-add-to-cart-request';\nimport { useLocalization } from '../../../localization';\nimport styles from './library-upsell-product-card.less';\n\nexport function LibraryUpsellProductCard({\n\tproductId,\n\tskuId,\n\timageUri,\n\tname,\n\tbookCount,\n\tlibraryValue,\n\tprice,\n\tsavingsPercentage,\n\tonLibraryAddedToCart,\n}) {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.LibraryUpsellModal');\n\tconst addToCartButtonResources = useLocalization('CommerceWeb.Resources.Shared.AddToMiniCartButton');\n\n\t// Adding a library here always redirects straight to checkout (see onLibraryAddedToCart),\n\t// so suppress the mini cart drawer to avoid it briefly flashing before the redirect.\n\tconst { onAddToCartRequest: handleAddToCartRequest } = useAddToCartRequest(true);\n\tconst contextValue = useMemo(() => {\n\t\treturn {\n\t\t\tonAddToCartRequest: (args, options) =>\n\t\t\t\thandleAddToCartRequest(args, {\n\t\t\t\t\t...options,\n\t\t\t\t\tonSuccess: () => {\n\t\t\t\t\t\tonLibraryAddedToCart?.();\n\t\t\t\t\t\toptions?.onSuccess?.();\n\t\t\t\t\t},\n\t\t\t\t}),\n\t\t\tresources: {\n\t\t\t\taddToCartButton: addToCartButtonResources,\n\t\t\t},\n\t\t};\n\t}, [addToCartButtonResources, handleAddToCartRequest, onLibraryAddedToCart]);\n\n\treturn (\n\t\t<div className={styles.productCard}>\n\t\t\t{savingsPercentage !== undefined && savingsPercentage > 1 && (\n\t\t\t\t<div className={styles.savingsBadge}>\n\t\t\t\t\t<SavingsPercentage savingsPercentage={savingsPercentage} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t<div className={styles.imageContainer}>\n\t\t\t\t<img alt={name} src={imageUri || ''} className={styles.productImage} />\n\t\t\t</div>\n\t\t\t<div className={styles.contentContainer}>\n\t\t\t\t<div className={styles.productDetails}>\n\t\t\t\t\t<div className={styles.yoursForever}>{resources.YoursForever}</div>\n\t\t\t\t\t<div className={styles.productInfo}>\n\t\t\t\t\t\t<div className={styles.productName}>{name}</div>\n\t\t\t\t\t\t{bookCount && (\n\t\t\t\t\t\t\t<div className={styles.bookCount}>\n\t\t\t\t\t\t\t\t<CommandSentence template={resources.IncludesBooks}>\n\t\t\t\t\t\t\t\t\t<CommandSentence.Field name=\"BOOK_COUNT\">{bookCount}</CommandSentence.Field>\n\t\t\t\t\t\t\t\t</CommandSentence>\n\t\t\t\t\t\t\t</div>\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 className={styles.actionContainer}>\n\t\t\t\t\t<div className={styles.priceContainer}>\n\t\t\t\t\t\t{libraryValue && (\n\t\t\t\t\t\t\t<div className={styles.libraryValue}>\n\t\t\t\t\t\t\t\t{resources.Value}\n\t\t\t\t\t\t\t\t{':'} {libraryValue}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t\t<div className={styles.price}>{price}</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div className={styles.buttonsContainer}>\n\t\t\t\t\t\t<CommerceComponentsContextProvider value={contextValue}>\n\t\t\t\t\t\t\t<AddToCartButton\n\t\t\t\t\t\t\t\titems={[skuId].filter(Boolean).map(id => ({ identifier: id, type: IdentifierTypes.SKU, quantity: 1 }))}\n\t\t\t\t\t\t\t\tscale=\"small\"\n\t\t\t\t\t\t\t\tvariant=\"secondary\"\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</CommerceComponentsContextProvider>\n\t\t\t\t\t\t<a className={styles.seeInsideLink} href={`/products/${productId}`}>\n\t\t\t\t\t\t\t{resources.SeeWhatsInside}\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>\n\t);\n}\n\nLibraryUpsellProductCard.propTypes = {\n\tproductId: PropTypes.string.isRequired,\n\tskuId: PropTypes.string,\n\timageUri: PropTypes.string.isRequired,\n\tname: PropTypes.string.isRequired,\n\tbookCount: PropTypes.number,\n\tlibraryValue: PropTypes.string,\n\tprice: PropTypes.string,\n\tsavingsPercentage: PropTypes.number,\n\tonLibraryAddedToCart: PropTypes.func,\n};\n\nfunction SavingsPercentage({ savingsPercentage }) {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.LibraryUpsellModal');\n\treturn (\n\t\t<div className={styles.savingsPercentageBadge}>\n\t\t\t<CommandSentence template={resources.SavePercentage}>\n\t\t\t\t<CommandSentence.Field name=\"PERCENTAGE\">{Math.round(savingsPercentage)}</CommandSentence.Field>\n\t\t\t</CommandSentence>\n\t\t</div>\n\t);\n}\n\nSavingsPercentage.propTypes = {\n\tsavingsPercentage: PropTypes.number.isRequired,\n};\n","// extracted by mini-css-extract-plugin\nexport default {\"productCard\":\"library-upsell-product-card--productCard--uXu5f\",\"savingsBadge\":\"library-upsell-product-card--savingsBadge--Z-x2G\",\"savingsPercentageBadge\":\"library-upsell-product-card--savingsPercentageBadge--Gyiog\",\"imageContainer\":\"library-upsell-product-card--imageContainer--aJhqn\",\"productImage\":\"library-upsell-product-card--productImage--tl3R8\",\"contentContainer\":\"library-upsell-product-card--contentContainer--r0H4o\",\"productDetails\":\"library-upsell-product-card--productDetails--wcyrd\",\"yoursForever\":\"library-upsell-product-card--yoursForever--KbLUP\",\"productInfo\":\"library-upsell-product-card--productInfo--RcLTI\",\"productName\":\"library-upsell-product-card--productName--6k6MR\",\"bookCount\":\"library-upsell-product-card--bookCount--WpyX6\",\"actionContainer\":\"library-upsell-product-card--actionContainer--IgI6b\",\"priceContainer\":\"library-upsell-product-card--priceContainer--30Lc9\",\"libraryValue\":\"library-upsell-product-card--libraryValue--q2hKw\",\"strikethrough\":\"library-upsell-product-card--strikethrough--muHA3\",\"price\":\"library-upsell-product-card--price--KxmNi\",\"buttonsContainer\":\"library-upsell-product-card--buttonsContainer--nLX8K\",\"addToCartButton\":\"library-upsell-product-card--addToCartButton--686Mb btn btn-secondary-inverted\",\"seeInsideLink\":\"library-upsell-product-card--seeInsideLink--5jStW\"};","import React, { useCallback, useContext, useEffect, useMemo, useState } from 'react';\n\nimport ErrorBoundary from '../../error-boundary';\nimport { useLocation } from '../../../location';\nimport { BillingMode } from '../billing-modes';\n\nimport { useConfigurationWizardContext } from '../context';\nimport { RouteContext } from '../../../route-context';\nimport { LibraryUpsellModalUi } from './library-upsell-modal-ui';\nimport { LibraryUpsellProductCard } from './library-upsell-product-card';\nimport styles from './index.less';\n\nfunction withCancellation(asyncFunction) {\n\tconst cancellationTokenSource = { isCancelled: false };\n\tconst cancellationToken = {\n\t\tget isCancelled() {\n\t\t\treturn cancellationTokenSource.isCancelled;\n\t\t},\n\t};\n\n\tasyncFunction(cancellationToken);\n\n\treturn () => {\n\t\tcancellationTokenSource.isCancelled = true;\n\t};\n}\n\nfunction mapBillingModeToTermPeriod(billingMode) {\n\tswitch (billingMode) {\n\t\tcase BillingMode.Monthly:\n\t\t\treturn 'month';\n\n\t\tcase BillingMode.Annually:\n\t\t\treturn 'year';\n\n\t\tcase BillingMode.MultiAnnualTerm:\n\t\t\treturn 'twoYears';\n\t}\n}\n\nconst cachedLibraryUpsellTrackProductsByTrackProductId = new Map();\nasync function getOrFetchLibraryUpsellTrackProducts(suggestedLibraryTrackProductId, routes, baseUrl) {\n\tif (cachedLibraryUpsellTrackProductsByTrackProductId.has(suggestedLibraryTrackProductId)) {\n\t\treturn cachedLibraryUpsellTrackProductsByTrackProductId.get(suggestedLibraryTrackProductId);\n\t}\n\n\tconst url = new URL(routes.GetLibraryUpsellTrackProductsUrl, baseUrl);\n\turl.searchParams.append('suggestedLibraryTrackProductId', suggestedLibraryTrackProductId);\n\n\tlet products = null;\n\ttry {\n\t\tconst response = await fetch(url);\n\t\tif (!response.ok) {\n\t\t\tproducts = [];\n\t\t} else {\n\t\t\tconst data = await response.json();\n\t\t\tproducts = data.products ?? [];\n\t\t}\n\t} catch (error) {\n\t\tproducts = [];\n\t}\n\n\tcachedLibraryUpsellTrackProductsByTrackProductId.set(suggestedLibraryTrackProductId, products);\n\treturn products;\n}\n\nfunction LibraryUpsellModal() {\n\tconst { origin, navigate } = useLocation();\n\tconst {\n\t\tisLibraryUpsellModalOpen,\n\t\tsetIsLibraryUpsellModalOpen,\n\t\tsetIsLoading,\n\t\tselectedSubscribableProduct,\n\t\tselectedBillingMode,\n\t} = useConfigurationWizardContext();\n\tconst suggestedLibraryTrackProductId = selectedSubscribableProduct?.recommendedTrackProductId ?? null;\n\n\tconst { routes } = useContext(RouteContext);\n\n\tconst [libraryUpsellTrackProductData, setLibraryUpsellTrackProductData] = useState(null);\n\n\tuseEffect(() => {\n\t\tasync function fetchUpsellData(cancellationToken) {\n\t\t\tsetLibraryUpsellTrackProductData(null);\n\t\t\tif (suggestedLibraryTrackProductId) {\n\t\t\t\tconst products = await getOrFetchLibraryUpsellTrackProducts(suggestedLibraryTrackProductId, routes, origin);\n\n\t\t\t\tif (!cancellationToken.isCancelled) {\n\t\t\t\t\tsetLibraryUpsellTrackProductData(products);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn withCancellation(fetchUpsellData);\n\t}, [origin, routes, suggestedLibraryTrackProductId]);\n\n\tconst handleLibraryUpsellModalProceedToCartClick = useCallback(() => {\n\t\tsetIsLoading(true);\n\t\tsetIsLibraryUpsellModalOpen(false);\n\t\tnavigate(routes.CartUrl);\n\t}, [navigate, routes.CartUrl, setIsLoading, setIsLibraryUpsellModalOpen]);\n\n\tconst handleLibraryUpsellModalViewLibrariesClick = useCallback(() => {\n\t\tsetIsLoading(true);\n\t\tsetIsLibraryUpsellModalOpen(false);\n\t\tnavigate(routes.ConfigurationWizardLibrariesUrl);\n\t}, [navigate, routes.ConfigurationWizardLibrariesUrl, setIsLoading, setIsLibraryUpsellModalOpen]);\n\n\tconst handleLibraryUpsellModalLibraryAddedToCart = useCallback(() => {\n\t\tsetIsLoading(true);\n\t\tsetIsLibraryUpsellModalOpen(false);\n\t\tnavigate(routes.CartUrl);\n\t}, [navigate, routes.CartUrl, setIsLoading, setIsLibraryUpsellModalOpen]);\n\n\tconst handleDismissLibraryUpsellModal = useCallback(() => {\n\t\tsetIsLoading(true);\n\t\tsetIsLibraryUpsellModalOpen(false);\n\t\tnavigate(routes.CartUrl);\n\t}, [navigate, routes.CartUrl, setIsLoading, setIsLibraryUpsellModalOpen]);\n\n\tconst selectedProduct = selectedSubscribableProduct\n\t\t? {\n\t\t\t\tname: selectedSubscribableProduct.title,\n\t\t\t\ttier: selectedSubscribableProduct.title,\n\t\t\t\tpricing: selectedSubscribableProduct.initialCharge\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tamount: selectedSubscribableProduct.initialCharge,\n\t\t\t\t\t\t\ttermPeriod: mapBillingModeToTermPeriod(selectedBillingMode),\n\t\t\t\t\t\t}\n\t\t\t\t\t: null,\n\t\t\t}\n\t\t: null;\n\n\tconst libraryProductCards = useMemo(() => {\n\t\tif (!libraryUpsellTrackProductData) {\n\t\t\treturn [<LoadingProductCard key=\"0\" />, <LoadingProductCard key=\"1\" />, <LoadingProductCard key=\"2\" />];\n\t\t}\n\n\t\treturn libraryUpsellTrackProductData.map(product => {\n\t\t\treturn (\n\t\t\t\t<div key={product.id}>\n\t\t\t\t\t<LibraryUpsellProductCard\n\t\t\t\t\t\tkey={product.productId}\n\t\t\t\t\t\tproductId={product.productId}\n\t\t\t\t\t\tskuId={product.skuId}\n\t\t\t\t\t\timageUri={product.imageUri}\n\t\t\t\t\t\tname={product.name}\n\t\t\t\t\t\tbookCount={product.bookCount}\n\t\t\t\t\t\tlibraryValue={product.libraryValue}\n\t\t\t\t\t\tprice={product.price}\n\t\t\t\t\t\tsavingsPercentage={product.savingsPercentage}\n\t\t\t\t\t\tonLibraryAddedToCart={handleLibraryUpsellModalLibraryAddedToCart}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t);\n\t\t});\n\t}, [libraryUpsellTrackProductData, handleLibraryUpsellModalLibraryAddedToCart]);\n\n\tif (!selectedProduct) {\n\t\treturn null;\n\t}\n\n\treturn (\n\t\t<LibraryUpsellModalUi\n\t\t\tonDismiss={handleDismissLibraryUpsellModal}\n\t\t\tonProceedWithoutLibraryClick={handleLibraryUpsellModalProceedToCartClick}\n\t\t\tonShopLibrariesClick={handleLibraryUpsellModalViewLibrariesClick}\n\t\t\topen={isLibraryUpsellModalOpen}\n\t\t\tselectedProduct={selectedProduct}\n\t\t\tlibraryProductCards={libraryProductCards}\n\t\t/>\n\t);\n}\n\nfunction LoadingProductCard() {\n\treturn (\n\t\t<div className={styles.loadingSkeleton}>\n\t\t\t<div className={styles.skeletonBox} />\n\t\t</div>\n\t);\n}\n\nfunction LibraryUpsellModalWithErrorBoundary() {\n\treturn (\n\t\t<ErrorBoundary>\n\t\t\t<LibraryUpsellModal />\n\t\t</ErrorBoundary>\n\t);\n}\n\nexport { LibraryUpsellModalWithErrorBoundary as LibraryUpsellModal };\n","// extracted by mini-css-extract-plugin\nexport default {\"loadingSkeleton\":\"index--loadingSkeleton--5ZSoT\",\"pulse\":\"index--pulse--dzzcU\",\"skeletonBox\":\"index--skeletonBox--sheKH\"};","// extracted by mini-css-extract-plugin\nexport default {\"plansSectionControls\":\"index--plansSectionControls--LnVea\",\"plansSectionControlsMobile\":\"index--plansSectionControlsMobile--jE0xZ\",\"plansSection\":\"index--plansSection--0sNLu\",\"levels\":\"index--levels--Z46Xu\",\"compareSubscriptionsArrow\":\"index--compareSubscriptionsArrow--Pu+1O\",\"trackSelector\":\"index--trackSelector--HMeUN\"};","import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport {\n\tSubscriptionPricingCardsContextProvider,\n\tSubscriptionPricingCardFormatOptions,\n} from '@faithlife/commerce-components';\nimport { RightArrow } from '../../svgs';\n\nimport { useLocalization } from '../../../../localization';\nimport sharedStyles from '../../shared.less';\nimport { useConfigurationWizardContext } from '../../context';\nimport RenderBuilderContent from '../../../builder/render-builder-content';\nimport styles from './index.less';\n\nconst PlansSection = ({ onDisplayMobileComparisonChart, subscriptionCardsContentViewModel }) => {\n\tconst {\n\t\tselectedSpoid,\n\t\tsetSelectedSpoid,\n\t\tselectedBillingMode,\n\t\tsetSelectedBillingMode,\n\t\thandleShowLibraryUpsellModal,\n\t\tcouponCodes,\n\t\tselectedSubscribableProduct,\n\t} = useConfigurationWizardContext();\n\n\tconst handleCompareClick = () => {\n\t\tonDisplayMobileComparisonChart?.();\n\t};\n\n\treturn (\n\t\t<div className={styles.plansSectionContainer}>\n\t\t\t<div className={styles.plansSection} data-testid=\"plans-section\">\n\t\t\t\t{subscriptionCardsContentViewModel && subscriptionCardsContentViewModel.contentSourceKind === 'builderIo' && (\n\t\t\t\t\t<SubscriptionPricingCardsContextProvider\n\t\t\t\t\t\tinitialValue={{\n\t\t\t\t\t\t\tselectedSpoid,\n\t\t\t\t\t\t\tsetSelectedSpoid,\n\t\t\t\t\t\t\tselectedBillingMode,\n\t\t\t\t\t\t\tsetSelectedBillingMode,\n\t\t\t\t\t\t\tformat: SubscriptionPricingCardFormatOptions.Full,\n\t\t\t\t\t\t\thandleShowLibraryUpsellModal,\n\t\t\t\t\t\t\tcouponCodes,\n\t\t\t\t\t\t\tselectedSubscribableProduct,\n\t\t\t\t\t\t}}\n\t\t\t\t\t>\n\t\t\t\t\t\t<RenderBuilderContent\n\t\t\t\t\t\t\t{...subscriptionCardsContentViewModel.builderIo}\n\t\t\t\t\t\t\trestrictOverflow={false}\n\t\t\t\t\t\t\tshouldSuppressMinicartDrawer={true}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</SubscriptionPricingCardsContextProvider>\n\t\t\t\t)}\n\t\t\t\t<CompareSubscriptionsArrow onClick={handleCompareClick} />\n\t\t\t</div>\n\t\t</div>\n\t);\n};\n\nPlansSection.propTypes = {\n\tonDisplayMobileComparisonChart: PropTypes.func.isRequired,\n\tsubscriptionCardsContentViewModel: PropTypes.object.isRequired,\n};\n\nconst CompareSubscriptionsArrow = ({ onClick }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.SubscriptionPlans');\n\treturn (\n\t\t<button onClick={onClick} className={styles.compareSubscriptionsArrow}>\n\t\t\t<p className={sharedStyles.ui2}>{resources.CompareSubscriptions}</p>\n\t\t\t<RightArrow />\n\t\t</button>\n\t);\n};\n\nCompareSubscriptionsArrow.propTypes = {\n\tonClick: PropTypes.func.isRequired,\n};\n\nexport default PlansSection;\n","import React from 'react';\nimport { RenderBuilderContent } from '../../builder';\n\nexport function getSubscriptionPricingCards(subscriptionPricingCardsContent) {\n\treturn (subscriptionPricingCardsContent?.data?.blocks ?? []).find(\n\t\tb => b.component.name === 'v2: SubscriptionPricingCards'\n\t);\n}\nexport function getSubscriptionPricingCardsChildren(subscriptionPricingCardsContent) {\n\treturn getSubscriptionPricingCards(subscriptionPricingCardsContent)?.children ?? [];\n}\n\nfunction addClassToBuilderBlockProperties(builderBlock, className) {\n\tif (!builderBlock || !className) {\n\t\treturn builderBlock;\n\t}\n\n\tconst newBuilderBlock = { ...builderBlock };\n\tnewBuilderBlock.properties = {\n\t\t...newBuilderBlock.properties,\n\t\tclass: `${newBuilderBlock.properties?.class ?? ''} ${className}`,\n\t};\n\n\treturn newBuilderBlock;\n}\n\nexport function useSubscriptionPricingCardsChildren(subscriptionCardsContentViewModel) {\n\tconst subscriptionCardsContent = subscriptionCardsContentViewModel.builderIo.content;\n\tconst subscriptionCardsChildren = getSubscriptionPricingCardsChildren(subscriptionCardsContent);\n\n\tconst subscriptionCardsChildrenViewModels = subscriptionCardsChildren?.map(c => ({\n\t\tspoid: c.component.options.spoid,\n\t\t// Builder wraps content in .builder-component > .builder-content > [data-builder-content-id] > .builder-blocks; propagate height through each\n\t\tclassName:\n\t\t\t'[&>.builder-component]:h-full [&>.builder-component>.builder-content]:h-full [&>.builder-component>.builder-content>[data-builder-content-id]]:h-full [&>.builder-component>.builder-content>[data-builder-content-id]>.builder-blocks]:h-full',\n\t\tbuilderIo: {\n\t\t\t...subscriptionCardsContentViewModel.builderIo,\n\t\t\tcontent: {\n\t\t\t\t...subscriptionCardsContent,\n\t\t\t\tdata: {\n\t\t\t\t\t...subscriptionCardsContent?.data,\n\t\t\t\t\tblocks: [addClassToBuilderBlockProperties(c, 'h-full')],\n\t\t\t\t},\n\t\t\t},\n\t\t},\n\t}));\n\n\treturn subscriptionCardsChildrenViewModels?.map(vm => ({\n\t\tid: vm.spoid,\n\t\tcomponent: (\n\t\t\t<RenderBuilderContent\n\t\t\t\t{...vm.builderIo}\n\t\t\t\trestrictOverflow={false}\n\t\t\t\tclassName={vm.className}\n\t\t\t\tshouldSuppressMinicartDrawer={true}\n\t\t\t/>\n\t\t),\n\t}));\n}\n\nexport function useFeaturedSubscriptionPricingCards(subscriptionCardsContentViewModel) {\n\tconst subscriptionCardsContent = subscriptionCardsContentViewModel.builderIo.content;\n\tconst subscriptionPricingCards = getSubscriptionPricingCards(subscriptionCardsContent);\n\treturn subscriptionPricingCards?.children?.map(c => c.component.options.variant === 'featured') ?? [];\n}\n","// extracted by mini-css-extract-plugin\nexport default {\"header\":\"index--header--nAW2i\",\"content\":\"index--content--m1z6g\",\"cards\":\"index--cards--LBNDs\"};","import React from 'react';\nimport {\n\tSubscriptionPricingCardsContextProvider,\n\tSubscriptionPricingCardFormatOptions,\n} from '@faithlife/commerce-components';\nimport StickyHeader from '../../../sticky-header';\nimport SwipeableWrapper from '../../../compare-page/scrollable-table-with-slider/swipeable-wrapper';\nimport SliderWrapper from '../../../compare-page/scrollable-table-with-slider/slider-wrapper';\nimport sliderArrowOptions from '../../../compare-page/scrollable-table-with-slider/slider-arrow-options';\nimport { useConfigurationWizardContext } from '../../context';\nimport { useSubscriptionPricingCardsChildren } from '../subscription-pricing-card-utils';\nimport styles from './index.less';\n\nconst SubscriptionProductCardStickyHeader = ({\n\theaderRef,\n\tanchorElementRef,\n\tboundingElementRef,\n\tsubscriptionCardsContentViewModel,\n}) => {\n\tconst {\n\t\tselectedSpoid,\n\t\tsetSelectedSpoid,\n\t\thandleShowLibraryUpsellModal,\n\t\tselectedBillingMode,\n\t\tsetSelectedBillingMode,\n\t\tcouponCodes,\n\t\tselectedSubscribableProduct,\n\t} = useConfigurationWizardContext();\n\tconst subscriptionProductCardComponents = useSubscriptionPricingCardsChildren(subscriptionCardsContentViewModel);\n\n\treturn (\n\t\t<StickyHeader headerRef={headerRef} anchorElementRef={anchorElementRef} boundingElementRef={boundingElementRef}>\n\t\t\t<div className={styles.header} data-testid=\"sticky-header\">\n\t\t\t\t<div className={styles.content}>\n\t\t\t\t\t<div className={styles.cards}>\n\t\t\t\t\t\t<SwipeableWrapper>\n\t\t\t\t\t\t\t{subscriptionCardsContentViewModel &&\n\t\t\t\t\t\t\t\tsubscriptionCardsContentViewModel.contentSourceKind === 'builderIo' && (\n\t\t\t\t\t\t\t\t\t<SubscriptionPricingCardsContextProvider\n\t\t\t\t\t\t\t\t\t\tinitialValue={{\n\t\t\t\t\t\t\t\t\t\t\tselectedSpoid,\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedSpoid,\n\t\t\t\t\t\t\t\t\t\t\tselectedBillingMode,\n\t\t\t\t\t\t\t\t\t\t\tsetSelectedBillingMode,\n\t\t\t\t\t\t\t\t\t\t\tformat: SubscriptionPricingCardFormatOptions.MicroAlt,\n\t\t\t\t\t\t\t\t\t\t\thandleShowLibraryUpsellModal,\n\t\t\t\t\t\t\t\t\t\t\tcouponCodes,\n\t\t\t\t\t\t\t\t\t\t\tselectedSubscribableProduct,\n\t\t\t\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t\t\t<SliderWrapper\n\t\t\t\t\t\t\t\t\t\t\titems={subscriptionProductCardComponents}\n\t\t\t\t\t\t\t\t\t\t\tarrowOptions={{\n\t\t\t\t\t\t\t\t\t\t\t\tbuttonHeight: sliderArrowOptions.buttonHeight.short,\n\t\t\t\t\t\t\t\t\t\t\t\tdisplayTheme: sliderArrowOptions.displayTheme.dark,\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</SubscriptionPricingCardsContextProvider>\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t</SwipeableWrapper>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</StickyHeader>\n\t);\n};\n\nexport default SubscriptionProductCardStickyHeader;\n","// extracted by mini-css-extract-plugin\nexport default {\"h2\":\"index--h2--IQjUk h2\",\"h4\":\"index--h4--P+L-s h2\",\"h5\":\"index--h5--RjIfw h3\",\"ui1\":\"index--ui1--qC5WL\",\"ui2\":\"index--ui2--W+pRi\",\"ui3\":\"index--ui3--TAOPs\",\"ui5\":\"index--ui5--wa4sq\",\"b2\":\"index--b2--ieO86\",\"b3\":\"index--b3--X3hF6\",\"loadingSpinner\":\"index--loadingSpinner--Cx22m\",\"comparisonSubRow\":\"index--comparisonSubRow--8pY1u\",\"nameWithPreview\":\"index--nameWithPreview--4jGFI\",\"name\":\"index--name--A6-b7\",\"nameWithBlurb\":\"index--nameWithBlurb--SjnMA\",\"inclusionIconsContainer\":\"index--inclusionIconsContainer--QPBw6\",\"inclusionIconsWrapper\":\"index--inclusionIconsWrapper--mXWLY\",\"inclusionIcons\":\"index--inclusionIcons--aw6Xa\",\"inclusionIcon\":\"index--inclusionIcon---eoNf\",\"resourceTooltip\":\"index--resourceTooltip--VSns2\",\"shortBlurb\":\"index--shortBlurb--Pd6A2\",\"newToYou\":\"index--newToYou--6DEe4\"};","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport RowWrapper from '../../../../../../../compare-page/scrollable-table-with-slider/row-wrapper';\nimport { FullyIncluded } from '../../../../../../svgs';\nimport Tooltip from '../../../../../../../shared/tooltip';\nimport { useLocalization } from '../../../../../../../../localization';\n\nimport styles from './index.less';\n\nconst FeatureComponentDetails = ({ name, orderedIncludedInProducts, shortBlurb, isOwned, isUserLoggedIn }) => (\n\t<div>\n\t\t<div className={styles.comparisonSubRow}>\n\t\t\t<NameWithPreview\n\t\t\t\tname={name}\n\t\t\t\tclassName={styles.nameWithPreview}\n\t\t\t\tshortBlurb={shortBlurb}\n\t\t\t\tisOwned={isOwned}\n\t\t\t\tisUserLoggedIn={isUserLoggedIn}\n\t\t\t/>\n\t\t\t<div className={styles.inclusionIcons}>\n\t\t\t\t<InclusionIcons orderedIncludedInProducts={orderedIncludedInProducts} />\n\t\t\t</div>\n\t\t</div>\n\t</div>\n);\n\nFeatureComponentDetails.propTypes = {\n\tname: PropTypes.string,\n\torderedIncludedInProducts: PropTypes.arrayOf(\n\t\tPropTypes.shape({\n\t\t\tproductId: PropTypes.string,\n\t\t\tisIncluded: PropTypes.bool,\n\t\t\tisPartiallyIncluded: PropTypes.bool,\n\t\t})\n\t),\n\tshortBlurb: PropTypes.string,\n\tisOwned: PropTypes.bool,\n};\n\nconst NameWithPreview = ({ name, className, shortBlurb, isOwned, isUserLoggedIn }) => {\n\tconst resources = useLocalization(\n\t\t'CommerceWeb.Resources.Configure.ConfigurationWizardSubscriptionsFeatureComparison'\n\t);\n\n\treturn (\n\t\t<div className={className}>\n\t\t\t{shortBlurb ? (\n\t\t\t\t<Tooltip\n\t\t\t\t\tlink={<div className={classNames(styles.name, shortBlurb && styles.nameWithBlurb)}>{name}</div>}\n\t\t\t\t\tplacement=\"bottom\"\n\t\t\t\t\tcontentStyles={{ maxWidth: '320px', padding: '8px' }}\n\t\t\t\t\thideArrow={true}\n\t\t\t\t>\n\t\t\t\t\t<div className={styles.resourceTooltip}>\n\t\t\t\t\t\t<div className={styles.shortBlurb}>{shortBlurb}</div>\n\t\t\t\t\t</div>\n\t\t\t\t</Tooltip>\n\t\t\t) : (\n\t\t\t\t<div className={styles.name}>{name}</div>\n\t\t\t)}\n\t\t\t{!isOwned && isUserLoggedIn && <div className={styles.newToYou}>{resources.NewToYou}</div>}\n\t\t</div>\n\t);\n};\n\nconst InclusionIcons = ({ orderedIncludedInProducts }) => {\n\tconst inclusionIconComponents = orderedIncludedInProducts.map(iip => {\n\t\tconst isIncluded = iip.isIncluded || iip.isPartiallyIncluded;\n\n\t\treturn {\n\t\t\tid: iip.productId,\n\t\t\tcomponent: <div className={styles.inclusionIcon}>{isIncluded && <FullyIncluded />}</div>,\n\t\t};\n\t});\n\n\treturn (\n\t\t<div className={styles.inclusionIconsContainer}>\n\t\t\t<RowWrapper items={inclusionIconComponents} className={styles.inclusionIconsWrapper} />\n\t\t</div>\n\t);\n};\n\nexport default FeatureComponentDetails;\n","// extracted by mini-css-extract-plugin\nexport default {\"h2\":\"index--h2--hmFJW h2\",\"h4\":\"index--h4--C0yFK h2\",\"h5\":\"index--h5--ZqF3M h3\",\"ui1\":\"index--ui1--grWLa\",\"ui2\":\"index--ui2--35xqp\",\"ui3\":\"index--ui3--slOi2\",\"ui5\":\"index--ui5--J4G9a\",\"b2\":\"index--b2--VSEBg\",\"b3\":\"index--b3--+Jrpk\",\"loadingSpinner\":\"index--loadingSpinner--c636d index--loadingSpinner--c636d\",\"comparisonRow\":\"index--comparisonRow--WccTm\",\"nameWithArrow\":\"index--nameWithArrow--mmQM4\",\"nameContainer\":\"index--nameContainer--jEC97\",\"name\":\"index--name--OhPH0\",\"arrow\":\"index--arrow--1-mCv\",\"closedArrow\":\"index--closedArrow--yXkhn\",\"shortBlurbRow\":\"index--shortBlurbRow--VFDhq\",\"shortBlurb\":\"index--shortBlurb--KzjMJ\",\"rowWrapperContainer\":\"index--rowWrapperContainer--iD+zs\",\"rowWrapperCellContainer\":\"index--rowWrapperCellContainer--R+jWr\",\"inclusionIcons\":\"index--inclusionIcons--puksO\",\"inclusionIconContainer\":\"index--inclusionIconContainer--MVEcf\",\"inclusionIcon\":\"index--inclusionIcon--wZyWh\",\"newToYou\":\"index--newToYou--eAdo5\",\"shortBlurbRowContainer\":\"index--shortBlurbRowContainer--HuWG7\"};","import React, { useState, useCallback, useEffect, useRef } from 'react';\nimport PropTypes from 'prop-types';\nimport { LoadingSpinner } from '@faithlife/styled-ui';\nimport classNames from 'classnames';\nimport RowWrapper from '../../../../../../compare-page/scrollable-table-with-slider/row-wrapper';\nimport { Chevron, EmptyCircle, FilledCircle } from '../../../../../svgs';\nimport ProductsClient from '../../../../../../../clients/products-client';\nimport FeatureComponentDetails from './feature-component-details';\n\nimport styles from './index.less';\n\nconst FeatureDetails = ({\n\tname,\n\tsubResources,\n\torderedIncludedInProducts,\n\tproductId,\n\troutes,\n\tinitialIsOpen,\n\tonSectionToggle,\n}) => {\n\tconst [isLoading, setIsLoading] = useState(false);\n\tconst [isOpen, setIsOpen] = useState(initialIsOpen);\n\tconst [shortBlurb, setShortBlurb] = useState(null);\n\tconst [subResourceComponents, setSubResourceComponents] = useState(null);\n\n\tconst handleArrowClick = useCallback(async () => {\n\t\tonSectionToggle();\n\t\tsetIsOpen(isOpen => !isOpen);\n\t}, [onSectionToggle]);\n\n\tconst fetchingRef = useRef(false);\n\tconst fetchComponentInfo = useCallback(async () => {\n\t\tif (fetchingRef.current) {\n\t\t\treturn;\n\t\t}\n\t\tfetchingRef.current = true;\n\t\tsetIsLoading(true);\n\t\ttry {\n\t\t\tconst shortBlurbsByProductIds = await ProductsClient.getShortBlurbsForProductIds(\n\t\t\t\troutes.GetShortBlurbsUrl,\n\t\t\t\t[productId, ...subResources.map(sr => sr.productId)].filter(id => id)\n\t\t\t);\n\n\t\t\tif (Object.prototype.hasOwnProperty.call(shortBlurbsByProductIds, productId)) {\n\t\t\t\tsetShortBlurb(shortBlurbsByProductIds[productId]);\n\t\t\t}\n\n\t\t\tsetSubResourceComponents(\n\t\t\t\tsubResources.map(sr => {\n\t\t\t\t\tif (Object.prototype.hasOwnProperty.call(shortBlurbsByProductIds, sr.productId)) {\n\t\t\t\t\t\tsr.shortBlurb = shortBlurbsByProductIds[sr.productId];\n\t\t\t\t\t}\n\n\t\t\t\t\treturn <FeatureComponentDetails key={sr.comparisonId} {...sr} />;\n\t\t\t\t})\n\t\t\t);\n\t\t} finally {\n\t\t\tfetchingRef.current = false;\n\t\t\tsetIsLoading(false);\n\t\t}\n\t}, [productId, routes.GetShortBlurbsUrl, subResources]);\n\n\tuseEffect(() => {\n\t\tif (isOpen && !subResourceComponents) {\n\t\t\tfetchComponentInfo();\n\t\t}\n\t}, [fetchComponentInfo, isOpen, subResourceComponents]);\n\n\tconst blankRowCells = orderedIncludedInProducts.map(iip => <div key={iip.productId} />);\n\n\treturn (\n\t\t<>\n\t\t\t<div className={styles.comparisonRow}>\n\t\t\t\t{isLoading && (\n\t\t\t\t\t<div className={styles.loadingSpinner}>\n\t\t\t\t\t\t<LoadingSpinner small />\n\t\t\t\t\t</div>\n\t\t\t\t)}\n\t\t\t\t<NameWithArrow name={name} isOpen={isOpen} onArrowClick={handleArrowClick} className={styles.nameWithArrow} />\n\t\t\t\t<div className={styles.inclusionIcons}>\n\t\t\t\t\t<InclusionIcons orderedIncludedInProducts={orderedIncludedInProducts} />\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{isOpen && (\n\t\t\t\t<>\n\t\t\t\t\t{shortBlurb && (\n\t\t\t\t\t\t<div className={styles.shortBlurbRow}>\n\t\t\t\t\t\t\t<div className={styles.shortBlurb}>{shortBlurb}</div>\n\t\t\t\t\t\t\t<div className={styles.rowWrapperContainer}>\n\t\t\t\t\t\t\t\t<RowWrapper items={blankRowCells} className={styles.rowWrapperCellContainer} />\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t)}\n\t\t\t\t\t{subResourceComponents}\n\t\t\t\t</>\n\t\t\t)}\n\t\t</>\n\t);\n};\n\nFeatureDetails.propTypes = {\n\tname: PropTypes.string,\n\tisOwned: PropTypes.bool,\n\tsubResources: PropTypes.arrayOf(PropTypes.object),\n\torderedIncludedInProducts: PropTypes.arrayOf(\n\t\tPropTypes.shape({\n\t\t\tproductId: PropTypes.string,\n\t\t\tisIncluded: PropTypes.bool,\n\t\t\tisPartiallyIncluded: PropTypes.bool,\n\t\t\tscaleAmount: PropTypes.number,\n\t\t})\n\t),\n\tshortBlurb: PropTypes.string,\n};\n\nconst NameWithArrow = ({ name, isOpen, onArrowClick, className }) => (\n\t<div className={className}>\n\t\t<button className={styles.nameContainer} onClick={onArrowClick}>\n\t\t\t<div className={styles.name}>{name}</div>\n\t\t\t<Chevron className={classNames(styles.arrow, !isOpen && styles.closedArrow)} />\n\t\t</button>\n\t</div>\n);\n\nconst InclusionIcons = ({ orderedIncludedInProducts }) => {\n\tconst inclusionIconComponents = orderedIncludedInProducts.map(iip => {\n\t\tconst limit = orderedIncludedInProducts.length;\n\t\treturn {\n\t\t\tid: iip.productId,\n\t\t\tcomponent: (\n\t\t\t\t<div className={styles.inclusionIconContainer}>\n\t\t\t\t\t<div className={styles.inclusionIcon}>\n\t\t\t\t\t\t{Array.from({ length: iip.scaleAmount }).map(index => {\n\t\t\t\t\t\t\treturn <FilledCircle key={index} />;\n\t\t\t\t\t\t})}\n\t\t\t\t\t\t{Array.from({ length: limit - iip.scaleAmount }).map(index => {\n\t\t\t\t\t\t\treturn <EmptyCircle key={index} />;\n\t\t\t\t\t\t})}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t),\n\t\t};\n\t});\n\n\treturn (\n\t\t<div className={styles.rowWrapperContainer}>\n\t\t\t<RowWrapper items={inclusionIconComponents} className={styles.rowWrapperCellContainer} />\n\t\t</div>\n\t);\n};\n\nexport default FeatureDetails;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport SwipeableWrapper from '../../../../../compare-page/scrollable-table-with-slider/swipeable-wrapper';\nimport FeatureDetails from './feature-details';\n\nimport styles from './index.less';\n\nconst FeatureSectionRowDetails = ({ section, demoOpenSection, onSectionToggle }) => {\n\tconst comparisonRows = section.comparisonRows.map((row, index) => (\n\t\t<FeatureDetails\n\t\t\tkey={row.comparisonId}\n\t\t\t{...row}\n\t\t\tinitialIsOpen={demoOpenSection && index === 0}\n\t\t\tonSectionToggle={onSectionToggle}\n\t\t/>\n\t));\n\n\treturn (\n\t\t<>\n\t\t\t<div className={styles.comparisonTable}>\n\t\t\t\t<SwipeableWrapper>{comparisonRows}</SwipeableWrapper>\n\t\t\t</div>\n\t\t</>\n\t);\n};\n\nFeatureSectionRowDetails.propTypes = {\n\tsection: PropTypes.object.isRequired,\n};\n\nexport default FeatureSectionRowDetails;\n","// extracted by mini-css-extract-plugin\nexport default {\"comparisonTable\":\"index--comparisonTable--oRLHR\",\"loadingIndicator\":\"index--loadingIndicator--IHSV2\"};","// extracted by mini-css-extract-plugin\nexport default {\"h2\":\"index--h2--KYmBU h2\",\"h4\":\"index--h4--po4-y h2\",\"h5\":\"index--h5--KWUH5 h3\",\"ui1\":\"index--ui1--S-R8q\",\"ui2\":\"index--ui2--kxUEy\",\"ui3\":\"index--ui3--F7y+u\",\"ui5\":\"index--ui5--wHOUy\",\"b2\":\"index--b2--Vi+PM\",\"b3\":\"index--b3--ctfht\",\"loadingSpinner\":\"index--loadingSpinner--TfJUb\",\"sectionRow\":\"index--sectionRow--YlVtE\",\"rowTitleContainer\":\"index--rowTitleContainer--Z3bSb\",\"titleContainer\":\"index--titleContainer--lqUTT\",\"iconContainer\":\"index--iconContainer--76r9H\",\"summaries\":\"index--summaries--f+sen\",\"summary\":\"index--summary--DM5vb\",\"legendContainer\":\"index--legendContainer--HLKdw\",\"includedBooksContainer\":\"index--includedBooksContainer--ioEC8\"};","import React, { useCallback, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport RowWrapper from '../../../../compare-page/scrollable-table-with-slider/row-wrapper';\nimport { ExpandableClosedIcon, ExpandableOpenedIcon } from '../../../svgs';\n\nimport sharedStyles from '../../../shared.less';\nimport ComparisonSectionsTable from '../../../../compare-page/new-comparison-table-with-slider/comparison-sections-table';\nimport { useOnScreen } from '../../../../../util/hooks/use-on-screen';\nimport ComparisonTableLegend from '../../../../compare-page/comparison-table-legend';\nimport ComparisonTableControls from '../../../../compare-page/comparison-table-controls';\nimport useComparisonTableControlsHandler from '../../../../compare-page/hooks/comparison-table-controls-handler';\nimport FeatureSectionRowDetails from './feature-section-row-details';\nimport styles from './index.less';\n\nconst SectionRow = ({ title, token, summaries, compareViewModel, sections, demoOpenSection, onSectionToggle }) => {\n\tconst [section] = sections;\n\tconst [isSectionOpen, setIsSectionOpen] = useState(false);\n\n\tconst rowRef = useRef(null);\n\tuseOnScreen(rowRef, isRowOnScreen => {\n\t\tif (demoOpenSection && isRowOnScreen) {\n\t\t\tsetIsSectionOpen(true);\n\t\t}\n\t});\n\n\tconst handleTitleClick = useCallback(() => {\n\t\tonSectionToggle();\n\t\tsetIsSectionOpen(!isSectionOpen);\n\t}, [isSectionOpen, onSectionToggle]);\n\n\tconst comparisonTableControlsHandler = useComparisonTableControlsHandler();\n\n\tconst rowTitle = (\n\t\t<>\n\t\t\t{isSectionOpen ? <ExpandableOpenedIcon /> : <ExpandableClosedIcon />}\n\t\t\t<span>{title}</span>\n\t\t</>\n\t);\n\n\tconst rowTitleContainer = (\n\t\t<div className={styles.rowTitleContainer}>\n\t\t\t<button className={classNames(sharedStyles.h5, styles.titleContainer)} onClick={handleTitleClick}>\n\t\t\t\t{rowTitle}\n\t\t\t</button>\n\t\t\t{token === 'included-books' && isSectionOpen && compareViewModel && (\n\t\t\t\t<div className={styles.legendContainer}>\n\t\t\t\t\t<ComparisonTableLegend className={styles.legend} mode=\"responsive\" resources={compareViewModel.resources} />\n\t\t\t\t\t<ComparisonTableControls {...compareViewModel} {...comparisonTableControlsHandler} />\n\t\t\t\t</div>\n\t\t\t)}\n\t\t</div>\n\t);\n\n\tconst summaryBlocks = summaries.map((s, index) => ({\n\t\tid: index,\n\t\tcomponent: <div className={styles.summary}>{s}</div>,\n\t}));\n\n\treturn (\n\t\t<div ref={rowRef}>\n\t\t\t<div className={styles.sectionRow}>\n\t\t\t\t{rowTitleContainer}\n\t\t\t\t<div className={styles.summaries}>\n\t\t\t\t\t<RowWrapper items={summaryBlocks}></RowWrapper>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{isSectionOpen && compareViewModel && compareViewModel.initialSelectedTrackId && (\n\t\t\t\t<>\n\t\t\t\t\t{token !== 'included-books' ? (\n\t\t\t\t\t\t<FeatureSectionRowDetails\n\t\t\t\t\t\t\tsection={section}\n\t\t\t\t\t\t\tdemoOpenSection={demoOpenSection}\n\t\t\t\t\t\t\tonSectionToggle={onSectionToggle}\n\t\t\t\t\t\t/>\n\t\t\t\t\t) : (\n\t\t\t\t\t\t<div className={styles.includedBooksContainer}>\n\t\t\t\t\t\t\t<ComparisonSectionsTable\n\t\t\t\t\t\t\t\tselectedCompareSections={sections}\n\t\t\t\t\t\t\t\tcomparisonTableControlsHandler={comparisonTableControlsHandler}\n\t\t\t\t\t\t\t\tresources={compareViewModel.resources}\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</>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nSectionRow.propTypes = {\n\tclassName: PropTypes.string,\n\ttitle: PropTypes.string.isRequired,\n\tsummaries: PropTypes.arrayOf(PropTypes.string).isRequired,\n};\n\nexport default SectionRow;\n","import { useEffect } from 'react';\n\nexport function useOnScreen(ref, onChange) {\n\tuseEffect(() => {\n\t\tconst observer = new IntersectionObserver(([entry]) => {\n\t\t\tonChange(entry.isIntersecting);\n\t\t});\n\n\t\tobserver.observe(ref.current);\n\t\treturn () => observer.disconnect();\n\t}, [ref, onChange]);\n}\n","import React from 'react';\n\nimport { useFeaturedSubscriptionPricingCards } from '../subscription-pricing-card-utils';\nimport RowWrapper from '../../../compare-page/scrollable-table-with-slider/row-wrapper';\nimport { cn } from '../../../../util/cn';\n\nexport function FeaturedSpoidOverlay({ subscriptionCardsContentViewModel, children }) {\n\tconst isFeaturedSpoidList = useFeaturedSubscriptionPricingCards(subscriptionCardsContentViewModel);\n\treturn (\n\t\t<div className=\"relative isolate\">\n\t\t\t<div className=\"absolute inset-0 flex pointer-events-none z-10\">\n\t\t\t\t<div className=\"grow\"></div>\n\t\t\t\t<RowWrapper\n\t\t\t\t\tscrollableWrapperClassName=\"h-full\"\n\t\t\t\t\titemsClassName=\"h-full\"\n\t\t\t\t\tclassName=\"h-full\"\n\t\t\t\t\titems={isFeaturedSpoidList.map((isFeatured, index) => ({\n\t\t\t\t\t\tid: index,\n\t\t\t\t\t\tcomponent: <div className={cn({ 'border-x-2 border-b-2 border-primary-500 h-full -mb-1': isFeatured })} />,\n\t\t\t\t\t}))}\n\t\t\t\t/>\n\t\t\t</div>\n\t\t\t{children}\n\t\t</div>\n\t);\n}\n","import React, { useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport {\n\tSubscriptionPricingCardsContextProvider,\n\tSubscriptionPricingCardFormatOptions,\n} from '@faithlife/commerce-components';\nimport SwipeableWrapper from '../../../compare-page/scrollable-table-with-slider/swipeable-wrapper';\nimport SliderWrapper from '../../../compare-page/scrollable-table-with-slider/slider-wrapper';\nimport SubscriptionProductCardStickyHeader from '../subscription-product-card-sticky-header';\nimport { useLocalization } from '../../../../localization';\nimport sharedStyles from '../../shared.less';\n\nimport sliderArrowOptions from '../../../compare-page/scrollable-table-with-slider/slider-arrow-options';\nimport { useConfigurationWizardContext } from '../../context';\nimport { useSubscriptionPricingCardsChildren } from '../subscription-pricing-card-utils';\nimport SectionRow from './section-row';\nimport styles from './index.less';\nimport { FeaturedSpoidOverlay } from './featured-spoid-overlay';\n\nconst ComparisonChart = ({\n\tcompareViewModel,\n\tsectionRowViewModels,\n\tstickyHeaderRef,\n\tcomparisonChartRef,\n\tsubscriptionCardsContentViewModel,\n}) => {\n\tconst comparisonChartHeadersRef = useRef(null);\n\n\treturn (\n\t\t<SwipeableWrapper>\n\t\t\t<div className={styles.comparisonSectionContainer}>\n\t\t\t\t{sectionRowViewModels?.length > 0 && sectionRowViewModels.filter(sr => sr.sections?.length).length > 0 && (\n\t\t\t\t\t<>\n\t\t\t\t\t\t<SubscriptionProductCardStickyHeader\n\t\t\t\t\t\t\theaderRef={stickyHeaderRef}\n\t\t\t\t\t\t\tanchorElementRef={comparisonChartHeadersRef}\n\t\t\t\t\t\t\tboundingElementRef={comparisonChartRef}\n\t\t\t\t\t\t\tsubscriptionCardsContentViewModel={subscriptionCardsContentViewModel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<ComparisonChartHeaders\n\t\t\t\t\t\t\theadersRef={comparisonChartHeadersRef}\n\t\t\t\t\t\t\tsubscriptionCardsContentViewModel={subscriptionCardsContentViewModel}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<FeaturedSpoidOverlay subscriptionCardsContentViewModel={subscriptionCardsContentViewModel}>\n\t\t\t\t\t\t\t<ComparisonChartRows sectionRowViewModels={sectionRowViewModels} compareViewModel={compareViewModel} />\n\t\t\t\t\t\t</FeaturedSpoidOverlay>\n\t\t\t\t\t</>\n\t\t\t\t)}\n\t\t\t</div>\n\t\t</SwipeableWrapper>\n\t);\n};\n\nComparisonChart.propTypes = {\n\tcompareViewModel: PropTypes.shape({\n\t\tinitialSelectedTrackProducts: PropTypes.arrayOf(\n\t\t\tPropTypes.shape({\n\t\t\t\tproductId: PropTypes.string,\n\t\t\t}).isRequired\n\t\t),\n\t}).isRequired,\n};\n\nconst ComparisonChartRows = ({ sectionRowViewModels, compareViewModel }) => {\n\tconst [hasDemoedOpenSection, setHasDemoedOpenSection] = useState(false);\n\tconst sectionRows = sectionRowViewModels\n\t\t.filter(r => r.sections?.length)\n\t\t.map((r, index) => (\n\t\t\t<SectionRow\n\t\t\t\tkey={r.token}\n\t\t\t\t{...r}\n\t\t\t\tcompareViewModel={compareViewModel}\n\t\t\t\tdemoOpenSection={index === 0 && !hasDemoedOpenSection}\n\t\t\t\tonSectionToggle={() => setHasDemoedOpenSection(true)}\n\t\t\t/>\n\t\t));\n\n\treturn <>{sectionRows}</>;\n};\n\nComparisonChartRows.propTypes = {\n\tsectionRows: PropTypes.arrayOf(\n\t\tPropTypes.shape({\n\t\t\ttoken: PropTypes.string.isRequired,\n\t\t}).isRequired\n\t),\n\tcompareViewModel: PropTypes.object,\n\tsuppressMobileProductComparison: PropTypes.bool,\n};\n\nconst ComparisonChartHeaders = ({ headersRef, subscriptionCardsContentViewModel }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardSubscriptions');\n\n\tconst {\n\t\tselectedSpoid,\n\t\tsetSelectedSpoid,\n\t\tselectedBillingMode,\n\t\tsetSelectedBillingMode,\n\t\thandleShowLibraryUpsellModal,\n\t\tcouponCodes,\n\t\tselectedSubscribableProduct,\n\t} = useConfigurationWizardContext();\n\tconst headers = useSubscriptionPricingCardsChildren(subscriptionCardsContentViewModel);\n\n\treturn (\n\t\t<div ref={headersRef} className={styles.headers} data-testid=\"comparison-chart-headers\">\n\t\t\t<div className={classNames(sharedStyles.h5, styles.headersRightSideTitle)}>{resources.Compare}</div>\n\t\t\t{subscriptionCardsContentViewModel && subscriptionCardsContentViewModel.contentSourceKind === 'builderIo' && (\n\t\t\t\t<SubscriptionPricingCardsContextProvider\n\t\t\t\t\tinitialValue={{\n\t\t\t\t\t\tselectedSpoid,\n\t\t\t\t\t\tsetSelectedSpoid,\n\t\t\t\t\t\tselectedBillingMode,\n\t\t\t\t\t\tsetSelectedBillingMode,\n\t\t\t\t\t\tformat: SubscriptionPricingCardFormatOptions.Mini,\n\t\t\t\t\t\thandleShowLibraryUpsellModal,\n\t\t\t\t\t\tcouponCodes,\n\t\t\t\t\t\tselectedSubscribableProduct,\n\t\t\t\t\t}}\n\t\t\t\t>\n\t\t\t\t\t<SliderWrapper items={headers} arrowOptions={{ displayTheme: sliderArrowOptions.displayTheme.dark }} />\n\t\t\t\t</SubscriptionPricingCardsContextProvider>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nexport default ComparisonChart;\nexport { ComparisonChartRows };\n","// extracted by mini-css-extract-plugin\nexport default {\"comparisonSectionContainer\":\"index--comparisonSectionContainer--W2y6W\",\"headers\":\"index--headers--sBlbC\",\"headersRightSideTitle\":\"index--headersRightSideTitle--HQMWz\"};","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"index--container--Tf861\",\"topBar\":\"index--topBar--Z91bL\",\"topBarWithShadows\":\"index--topBarWithShadows--3ASzh\",\"exitButton\":\"index--exitButton--QuiJd\",\"content\":\"index--content--uvFWg\"};","import React, { createContext, useContext, useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport usePreventBodyScrolling from '../../../util/hooks/use-prevent-body-scrolling';\n\nimport styles from './index.less';\n\nconst OverlayContext = createContext(null);\n\nconst OverlayContextProvider = ({ children }) => {\n\tconst contentRef = useRef(null);\n\n\treturn <OverlayContext.Provider value={{ contentRef }}>{children}</OverlayContext.Provider>;\n};\nOverlayContextProvider.propTypes = {\n\tchildren: PropTypes.node,\n};\n\nconst Overlay = ({ className, children, ...props }) => {\n\tusePreventBodyScrolling(true);\n\n\treturn (\n\t\t<OverlayContextProvider>\n\t\t\t<div className={classNames(styles.container, className)} {...props}>\n\t\t\t\t{children}\n\t\t\t</div>\n\t\t</OverlayContextProvider>\n\t);\n};\nOverlay.propTypes = {\n\tclassName: PropTypes.string,\n\tchildren: PropTypes.node,\n};\n\nconst TopBar = ({ className, children }) => {\n\tconst { contentRef } = useContext(OverlayContext);\n\n\tconst [isContentScrolled, setIsContentScrolled] = useState(false);\n\tuseEffect(() => {\n\t\tconst contentElement = contentRef.current;\n\t\tif (!contentElement) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst handleScroll = () => {\n\t\t\tsetIsContentScrolled(contentElement.scrollTop > 0);\n\t\t};\n\n\t\tcontentElement.addEventListener('scroll', handleScroll);\n\n\t\treturn () => {\n\t\t\tcontentElement.removeEventListener('scroll', handleScroll);\n\t\t};\n\t}, [contentRef]);\n\treturn (\n\t\t<div className={classNames(styles.topBar, isContentScrolled && styles.topBarWithShadows, className)}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nTopBar.propTypes = {\n\tclassName: PropTypes.string,\n\tchildren: PropTypes.node,\n};\n\nconst ExitButton = ({ onClick, className, children }) => {\n\treturn (\n\t\t<div className={classNames(styles.exitButton, className)}>\n\t\t\t<button className={styles.exitButton} onClick={onClick}>\n\t\t\t\t{children}\n\t\t\t</button>\n\t\t</div>\n\t);\n};\nExitButton.propTypes = {\n\tonClick: PropTypes.func,\n\tclassName: PropTypes.string,\n};\n\nconst Content = ({ className, children }) => {\n\tconst { contentRef } = useContext(OverlayContext);\n\n\treturn (\n\t\t<div ref={contentRef} className={classNames(styles.content, className)}>\n\t\t\t{children}\n\t\t</div>\n\t);\n};\nContent.propTypes = {\n\tclassName: PropTypes.string,\n\tchildren: PropTypes.node,\n};\n\nOverlay.ExitButton = ExitButton;\nOverlay.TopBar = TopBar;\nOverlay.Content = Content;\n\nexport default Overlay;\n","// extracted by mini-css-extract-plugin\nexport default {\"topBar\":\"index--topBar--i6Txl\",\"titleRowContainer\":\"index--titleRowContainer--KBAgU\",\"titleContainer\":\"index--titleContainer--nxPOG\",\"closeButtonContainer\":\"index--closeButtonContainer--Gk5da\",\"productHeaderContainer\":\"index--productHeaderContainer--gtEpW\"};","import React, { useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n\tSubscriptionPricingCardsContextProvider,\n\tSubscriptionPricingCardFormatOptions,\n} from '@faithlife/commerce-components';\nimport Overlay from '../../overlay-base';\nimport { ComparisonChartRows } from '../comparison-chart';\nimport ScrollableWrapper from '../../../compare-page/scrollable-table-with-slider/scrollable-wrapper';\nimport SwipeableWrapper from '../../../compare-page/scrollable-table-with-slider/swipeable-wrapper';\nimport { subscribeNotificationsContainerHeight } from '../../../notifications';\nimport { useLocalization } from '../../../../localization';\n\nimport { useConfigurationWizardContext } from '../../context';\nimport { useSubscriptionPricingCardsChildren } from '../subscription-pricing-card-utils';\nimport { FeaturedSpoidOverlay } from '../comparison-chart/featured-spoid-overlay';\nimport styles from './index.less';\n\nconst MobileComparisonChart = ({\n\tcompareViewModel,\n\tsectionRowViewModels,\n\tonClose,\n\tsubscriptionCardsContentViewModel,\n}) => {\n\tconst subscriptionPlansResources = useLocalization('CommerceWeb.Resources.Configure.SubscriptionPlans');\n\tconst wizardResources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizard');\n\tconst [marginTop, setMarginTop] = useState(0);\n\n\tuseEffect(() => {\n\t\treturn subscribeNotificationsContainerHeight(notificatationsHeight => {\n\t\t\tsetMarginTop(notificatationsHeight);\n\t\t});\n\t}, []);\n\n\tconst {\n\t\tselectedSpoid,\n\t\tsetSelectedSpoid,\n\t\tselectedBillingMode,\n\t\tsetSelectedBillingMode,\n\t\tcouponCodes,\n\t\thandleShowLibraryUpsellModal,\n\t\tselectedSubscribableProduct,\n\t} = useConfigurationWizardContext();\n\tconst subscriptionProductCardComponents = useSubscriptionPricingCardsChildren(subscriptionCardsContentViewModel);\n\n\treturn (\n\t\t<SwipeableWrapper>\n\t\t\t<Overlay>\n\t\t\t\t<Overlay.TopBar className={styles.topBar}>\n\t\t\t\t\t<div className={styles.titleRowContainer} style={{ marginTop }}>\n\t\t\t\t\t\t<div className={styles.titleContainer}>{subscriptionPlansResources.CompareSubscriptions}</div>\n\t\t\t\t\t\t<div className={styles.closeButtonContainer}>\n\t\t\t\t\t\t\t<Overlay.ExitButton onClick={onClose}>{wizardResources.Close}</Overlay.ExitButton>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t{subscriptionCardsContentViewModel && subscriptionCardsContentViewModel.contentSourceKind === 'builderIo' && (\n\t\t\t\t\t\t<SubscriptionPricingCardsContextProvider\n\t\t\t\t\t\t\tinitialValue={{\n\t\t\t\t\t\t\t\tselectedSpoid,\n\t\t\t\t\t\t\t\tsetSelectedSpoid,\n\t\t\t\t\t\t\t\tselectedBillingMode,\n\t\t\t\t\t\t\t\tsetSelectedBillingMode,\n\t\t\t\t\t\t\t\tformat: SubscriptionPricingCardFormatOptions.MicroAlt,\n\t\t\t\t\t\t\t\thandleShowLibraryUpsellModal,\n\t\t\t\t\t\t\t\tcouponCodes,\n\t\t\t\t\t\t\t\tselectedSubscribableProduct,\n\t\t\t\t\t\t\t}}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<ScrollableWrapper className={styles.productHeaderContainer} items={subscriptionProductCardComponents} />\n\t\t\t\t\t\t</SubscriptionPricingCardsContextProvider>\n\t\t\t\t\t)}\n\t\t\t\t</Overlay.TopBar>\n\t\t\t\t<Overlay.Content>\n\t\t\t\t\t{sectionRowViewModels && (\n\t\t\t\t\t\t<FeaturedSpoidOverlay subscriptionCardsContentViewModel={subscriptionCardsContentViewModel}>\n\t\t\t\t\t\t\t<ComparisonChartRows sectionRowViewModels={sectionRowViewModels} compareViewModel={compareViewModel} />\n\t\t\t\t\t\t</FeaturedSpoidOverlay>\n\t\t\t\t\t)}\n\t\t\t\t</Overlay.Content>\n\t\t\t</Overlay>\n\t\t</SwipeableWrapper>\n\t);\n};\n\nMobileComparisonChart.propTypes = {\n\tcompareViewModel: PropTypes.shape({\n\t\tinitialSelectedTrackProducts: PropTypes.arrayOf(\n\t\t\tPropTypes.shape({\n\t\t\t\tsubscribableProductId: PropTypes.string.isRequired,\n\t\t\t\tname: PropTypes.string,\n\t\t\t}).isRequired\n\t\t).isRequired,\n\t}).isRequired,\n\tonClose: PropTypes.func,\n\tonSubscribeClick: PropTypes.func,\n};\n\nexport default MobileComparisonChart;\n","// extracted by mini-css-extract-plugin\nexport default {\"container\":\"index--container--Gt5Cm\",\"hidden\":\"index--hidden--R72VR\",\"button\":\"index--button--Wi6Xv\",\"text\":\"index--text--LtcwM\",\"chevron\":\"index--chevron--+Khi5\"};","import React, { useEffect, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport debounce from 'lodash.debounce';\nimport classNames from 'classnames';\n\nimport { useLocalization } from '../../../../localization';\nimport { DownChevron24px } from '../../svgs';\nimport styles from './index.less';\n\nconst getUniversalHeaderHeight = document => {\n\tconst universalHeaderUpperHalfHeight =\n\t\tdocument.getElementById('universal-header-upper-half')?.getBoundingClientRect().height ?? 0;\n\n\tconst universalHeaderLowerHalfHeight =\n\t\tdocument.getElementById('universal-header-lower-half')?.getBoundingClientRect().height ?? 0;\n\n\treturn universalHeaderUpperHalfHeight + universalHeaderLowerHalfHeight;\n};\n\nconst CompareJump = ({ scrollTargetRef }) => {\n\tconst resources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardSubscriptions');\n\tconst handleClick = () => {\n\t\tif (!scrollTargetRef.current) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst universalHeaderHeight = getUniversalHeaderHeight(document);\n\t\tconst previousScrollMarginTop = scrollTargetRef.current.style.scrollMarginTop;\n\n\t\tscrollTargetRef.current.style.scrollMarginTop = `${universalHeaderHeight}px`;\n\t\tscrollTargetRef.current.scrollIntoView({ behavior: 'smooth', block: 'start' });\n\t\tscrollTargetRef.current.style.scrollMarginTop = previousScrollMarginTop;\n\t};\n\n\tconst [isHidden, setIsHidden] = useState(false);\n\tconst containerRef = useRef(null);\n\n\tuseEffect(() => {\n\t\tif (isHidden) {\n\t\t\treturn;\n\t\t}\n\n\t\tconst handleScroll = () => {\n\t\t\tif (!containerRef.current) {\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tconst containerRect = containerRef.current.getBoundingClientRect();\n\t\t\tconst universalHeaderHeight = getUniversalHeaderHeight(document);\n\n\t\t\tconst visibilityThreshold = containerRect.bottom - universalHeaderHeight;\n\n\t\t\tif (visibilityThreshold <= 0) {\n\t\t\t\t// scroll-padding-top allows us to control how the page scrolls when elements resize vertically\n\t\t\t\tconst previousScrollPaddingTop = document.documentElement.style.scrollPaddingTop;\n\t\t\t\tdocument.documentElement.style.scrollPaddingTop = `${Math.max(containerRect.bottom + 1, 0)}px`;\n\t\t\t\tsetIsHidden(true);\n\n\t\t\t\t// need to wait until after next render to reset scroll-padding-top\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\tdocument.documentElement.style.scrollPaddingTop = previousScrollPaddingTop;\n\t\t\t\t}, 50);\n\t\t\t}\n\t\t};\n\n\t\tconst debouncedHandleScroll = debounce(handleScroll, 100, false);\n\n\t\twindow.addEventListener('scroll', debouncedHandleScroll);\n\n\t\treturn () => window.removeEventListener('scroll', debouncedHandleScroll);\n\t}, [isHidden]);\n\n\treturn (\n\t\t<div ref={containerRef} className={classNames(styles.container, isHidden && styles.hidden)}>\n\t\t\t{!isHidden && (\n\t\t\t\t<button className={styles.button} onClick={handleClick}>\n\t\t\t\t\t<div className={styles.text}>{resources.Compare}</div>\n\t\t\t\t\t<div className={styles.chevron}>\n\t\t\t\t\t\t<DownChevron24px />\n\t\t\t\t\t</div>\n\t\t\t\t</button>\n\t\t\t)}\n\t\t</div>\n\t);\n};\n\nCompareJump.propTypes = {\n\tscrollTargetRef: PropTypes.object, // a React ref\n};\n\nexport default CompareJump;\n","import React, { useCallback, useContext, useEffect, useMemo, useRef, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport FullscreenOverlayLoadingSpinner from '../../shared/fullscreen-overlay-loading-spinner';\nimport ScrollableTableWithSliderProvider from '../../compare-page/scrollable-table-with-slider/scrollable-table-with-slider-provider';\nimport { ConfigurationWizardCartContextProvider } from '../../shared/configuration-wizard-cart';\nimport SummaryTrough from '../summary-trough';\nimport CompareClient from '../../../clients/compare-client';\nimport { LibraryUpsellModal } from '../library-upsell-modal';\nimport WizardHero from '../wizard-hero';\nimport ProgressIndicatorV2 from '../progress-indicator-v2';\nimport { useLocalization } from '../../../localization';\nimport { useLocation } from '../../../location';\nimport { ConfigurationWizardContextProvider, useConfigurationWizardContext } from '../context';\nimport { RouteContext } from '../../../route-context';\nimport { PerUserDataContextProvider } from '../../per-user-data/per-user-data-context';\nimport PlansSection from './plans-section';\nimport ComparisonChart from './comparison-chart';\nimport MobileComparisonChart from './mobile-comparison-chart';\nimport CompareJump from './compare-jump';\n\nimport styles from './index.less';\nimport { getSubscriptionPricingCards } from './subscription-pricing-card-utils';\n\nconst comparisonTableWithSliderProps = {\n\tpropsByScreenSize: {\n\t\t/* [mobile, tablet, desktop, largeDesktop, extra: { size: value }] */\n\t\tnumbersOfVisibleColumnsByScreenSize: [1, 2, 2, 2, { 1350: 3 }],\n\t\tcolumnWidthsByScreenSize: [200, 200, 200, 335],\n\t\tcolumnGapsByScreenSize: [0, 24],\n\t\tboundaryMarginWidthsByScreenSize: [15, 24, 45, { 1350: 55 }],\n\t\tsliderProps: {\n\t\t\tarrowWidthsByScreenSize: [30, { 1350: 45 }],\n\t\t},\n\t},\n};\n\nconst ConfigurationWizardSubscriptions = ({\n\tinitialComparisonChartViewModel: comparisonChartViewModel,\n\tshowAlreadySubscribedDisclaimer,\n\tsummaryTrough,\n\tisLibraryUpsellAvailable,\n\tlogosOrVerbum,\n\tsubscriptionCardsContentViewModel,\n}) => {\n\tconst subscriptionsResources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizardSubscriptions');\n\tconst wizardResources = useLocalization('CommerceWeb.Resources.Configure.ConfigurationWizard');\n\tconst { pathname, search, origin, replaceUrl } = useLocation();\n\n\tconst { routes } = useContext(RouteContext);\n\n\tconst clearQueryStringParameters = useCallback(\n\t\t(...parameterNames) => {\n\t\t\tconst url = new URL(`${pathname}${search}`, origin);\n\t\t\tconst parameterNamesToClear = parameterNames.filter(name => url.searchParams.has(name));\n\t\t\tif (!parameterNamesToClear.length) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tparameterNamesToClear.forEach(name => url.searchParams.delete(name));\n\t\t\treplaceUrl(`${url.pathname}${url.search}`);\n\t\t},\n\t\t[pathname, search, origin, replaceUrl]\n\t);\n\n\t// notify: remove the query param used to show the subscription required for libraries message, so it doesn't reappear if the user returns here (e.g. via the back button) or refreshes\n\tuseEffect(() => clearQueryStringParameters('notify', 'term'), [clearQueryStringParameters]);\n\n\tconst [selectedTrackProductIndex, setSelectedTrackProductIndex] = useState(0);\n\n\tconst { compareViewModel } = comparisonChartViewModel;\n\tconst { initialSelectedTrackId: selectedTrackId } = compareViewModel;\n\n\tconst { isLoading, setIsLoading, spoids } = useConfigurationWizardContext();\n\n\tconst [errorMessage, setErrorMessage] = useState(!selectedTrackId ? wizardResources.SomethingWentWrong : null);\n\tconst [sectionRowViewModels, setSectionRowViewModels] = useState([]);\n\n\tuseEffect(() => {\n\t\tconst clearLoadingSpinner = () => setIsLoading(false);\n\t\twindow.addEventListener('pageshow', clearLoadingSpinner);\n\n\t\treturn () => {\n\t\t\twindow.removeEventListener('pageshow', clearLoadingSpinner);\n\t\t};\n\t}, [setIsLoading]);\n\n\tuseEffect(() => {\n\t\tif (selectedTrackId) {\n\t\t\tconst url = new URL(`${pathname}${search}`, origin);\n\t\t\turl.searchParams.set('trackId', selectedTrackId);\n\t\t\treplaceUrl(`${url.pathname}${url.search}`);\n\t\t}\n\t}, [selectedTrackId, pathname, search, origin, replaceUrl]);\n\n\tconst sectionRowsFetched = useRef(false);\n\tuseEffect(() => {\n\t\tconst fetchComparisonSections = async spoids => {\n\t\t\tsetIsLoading(true);\n\t\t\ttry {\n\t\t\t\tconst newSections = await CompareClient.getCompareSectionDataForSubscribableProducts(\n\t\t\t\t\troutes.CompareSubscribableProductsSectionsBaseUrl,\n\t\t\t\t\tspoids\n\t\t\t\t);\n\t\t\t\tsetSectionRowViewModels(\n\t\t\t\t\tcomparisonChartViewModel.sectionRowViewModels.map(sr => {\n\t\t\t\t\t\tconst sections =\n\t\t\t\t\t\t\tsr.token !== 'included-books'\n\t\t\t\t\t\t\t\t? newSections.sections.filter(s => s.category.token === sr.resourceCategory)\n\t\t\t\t\t\t\t\t: newSections.sections.filter(s => s.category.token !== 'included-books');\n\t\t\t\t\t\treturn { ...sr, sections };\n\t\t\t\t\t})\n\t\t\t\t);\n\t\t\t\tsectionRowsFetched.current = true;\n\t\t\t} catch (ex) {\n\t\t\t\tsetErrorMessage(wizardResources.SomethingWentWrong);\n\t\t\t\tthrow ex;\n\t\t\t}\n\t\t\tsetIsLoading(false);\n\t\t};\n\n\t\tif (!sectionRowsFetched.current && spoids?.length) {\n\t\t\tvoid fetchComparisonSections(spoids);\n\t\t}\n\t}, [\n\t\tcomparisonChartViewModel.sectionRowViewModels,\n\t\twizardResources.SomethingWentWrong,\n\t\troutes.CompareSubscribableProductsSectionsBaseUrl,\n\t\tspoids,\n\t\tsetIsLoading,\n\t]);\n\n\tconst [mobileComparisonChartInfo, setMobileComparisonChartInfo] = useState(null);\n\n\tconst handleDisplayMobileComparisonChart = () => {\n\t\tsetMobileComparisonChartInfo({\n\t\t\t...comparisonChartViewModel,\n\t\t\tsectionRowViewModels,\n\t\t});\n\t};\n\n\tconst handleMobileComparisonChartClose = () => {\n\t\tsetMobileComparisonChartInfo(null);\n\t};\n\n\tconst comparisonChartRef = useRef(null);\n\tconst plansStickyHeaderRef = useRef(null);\n\n\tconst upperBanner = (\n\t\t<>\n\t\t\t<WizardHero\n\t\t\t\ttitle={subscriptionsResources.goDeeperInTheWordWithTheRightPlan}\n\t\t\t\tsubtitle={subscriptionsResources.LogosOrVerbumLeadABibleStudyPreachTheWord}\n\t\t\t\tlogosOrVerbum={logosOrVerbum}\n\t\t\t/>\n\t\t\t<ProgressIndicatorV2\n\t\t\t\tstep=\"subscriptions\"\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\tsubscriptionsLabel: subscriptionsResources.Subscription,\n\t\t\t\t\tlibrariesLabel: subscriptionsResources.AddALibraryOptional,\n\t\t\t\t\tlibraryTitleAndNMoreTemplate: subscriptionsResources.LibraryTitleAndNMoreTemplate,\n\t\t\t\t}}\n\t\t\t/>\n\t\t</>\n\t);\n\n\tif (errorMessage) {\n\t\treturn (\n\t\t\t<>\n\t\t\t\t{upperBanner}\n\t\t\t\t<div className={styles.errorMessage}>{errorMessage}</div>\n\t\t\t</>\n\t\t);\n\t}\n\n\treturn (\n\t\t<ScrollableTableWithSliderProvider\n\t\t\tfirstVisibleColumnIndex={selectedTrackProductIndex}\n\t\t\ttotalNumberOfColumns={spoids?.length}\n\t\t\tonFirstVisibleColumnChange={setSelectedTrackProductIndex}\n\t\t\t{...comparisonTableWithSliderProps}\n\t\t>\n\t\t\t{showAlreadySubscribedDisclaimer && (\n\t\t\t\t<div className=\"core-notifications-container notifications\">\n\t\t\t\t\t<div className=\"notification notification--success\">\n\t\t\t\t\t\t<p>\n\t\t\t\t\t\t\t<span className=\"notification__message\">\n\t\t\t\t\t\t\t\t{subscriptionsResources.ChoosingANewSubscriptionReplacesYourExistingSubscriptionNotice}\n\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t</p>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t)}\n\t\t\t{summaryTrough && <SummaryTrough step=\"subscriptions\" {...summaryTrough} />}\n\t\t\t{/* z-index: 10000 beats the mobile comparison chart */}\n\t\t\t{isLoading && <FullscreenOverlayLoadingSpinner zIndex={10000} />}\n\t\t\t{upperBanner}\n\t\t\t<PlansSection\n\t\t\t\tonDisplayMobileComparisonChart={handleDisplayMobileComparisonChart}\n\t\t\t\tsubscriptionCardsContentViewModel={subscriptionCardsContentViewModel}\n\t\t\t/>\n\t\t\t<div className={styles.lowerSectionContent}>\n\t\t\t\t<CompareJump scrollTargetRef={comparisonChartRef} />\n\t\t\t\t<div ref={comparisonChartRef}>\n\t\t\t\t\t<ComparisonChart\n\t\t\t\t\t\t{...comparisonChartViewModel}\n\t\t\t\t\t\tsectionRowViewModels={sectionRowViewModels}\n\t\t\t\t\t\tstickyHeaderRef={plansStickyHeaderRef}\n\t\t\t\t\t\tcomparisonChartRef={comparisonChartRef}\n\t\t\t\t\t\tsubscriptionCardsContentViewModel={subscriptionCardsContentViewModel}\n\t\t\t\t\t/>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t{mobileComparisonChartInfo && (\n\t\t\t\t<MobileComparisonChart\n\t\t\t\t\t{...mobileComparisonChartInfo}\n\t\t\t\t\tonClose={handleMobileComparisonChartClose}\n\t\t\t\t\tsubscriptionCardsContentViewModel={subscriptionCardsContentViewModel}\n\t\t\t\t/>\n\t\t\t)}\n\t\t\t{isLibraryUpsellAvailable && <LibraryUpsellModal />}\n\t\t</ScrollableTableWithSliderProvider>\n\t);\n};\n\nConfigurationWizardSubscriptions.propTypes = {\n\tinitialComparisonChartViewModel: PropTypes.object.isRequired,\n\tshowAlreadySubscribedDisclaimer: PropTypes.bool.isRequired,\n\tsummaryTrough: PropTypes.object,\n\tisLibraryUpsellAvailable: PropTypes.bool,\n\tcouponCodes: PropTypes.array,\n\tlogosOrVerbum: PropTypes.string,\n\tsubscriptionCardsContentViewModel: PropTypes.object,\n};\n\nfunction ConfigurationWizardSubscriptionsContextWrapper(props) {\n\tconst {\n\t\tinitialConfigurationWizardCartViewModel,\n\t\tsubscriptionCardsContentViewModel,\n\t\tisLibraryUpsellAvailable,\n\t\tcouponCodes,\n\t} = props;\n\n\tconst { routes } = useContext(RouteContext);\n\n\tconst subscriptionPricingCards = getSubscriptionPricingCards(subscriptionCardsContentViewModel.builderIo.content);\n\n\tconst defaultBillingMode = subscriptionPricingCards?.component?.options?.defaultBillingPeriod;\n\tconst spoids = useMemo(\n\t\t() => (subscriptionPricingCards?.children ?? []).map(c => c.component.options.spoid),\n\t\t// eslint-disable-next-line react-hooks/exhaustive-deps\n\t\t[subscriptionPricingCards?.children]\n\t);\n\n\tconst initialContextValue = useMemo(\n\t\t() => ({ isLibraryUpsellAvailable, spoids, couponCodes, defaultBillingMode }),\n\t\t[isLibraryUpsellAvailable, spoids, couponCodes, defaultBillingMode]\n\t);\n\n\treturn (\n\t\t<PerUserDataContextProvider>\n\t\t\t<ConfigurationWizardCartContextProvider initialValue={initialConfigurationWizardCartViewModel} routes={routes}>\n\t\t\t\t<ConfigurationWizardContextProvider initialValue={initialContextValue}>\n\t\t\t\t\t<ConfigurationWizardSubscriptions {...props} />\n\t\t\t\t</ConfigurationWizardContextProvider>\n\t\t\t</ConfigurationWizardCartContextProvider>\n\t\t</PerUserDataContextProvider>\n\t);\n}\nConfigurationWizardSubscriptionsContextWrapper.propTypes = {\n\tinitialConfigurationWizardCartViewModel: PropTypes.object,\n\tisLibraryUpsellAvailable: PropTypes.bool,\n\tsubscriptionCardsContentViewModel: PropTypes.object,\n};\n\nexport default ConfigurationWizardSubscriptionsContextWrapper;\n","// extracted by mini-css-extract-plugin\nexport default {\"lowerSectionContent\":\"index--lowerSectionContent--yVui5\",\"errorMessage\":\"index--errorMessage--ZFVGL\"};"],"names":["ProductsClient","getContainingProductsAsync","containingProductsUrl","response","fetch","get","url","json","getHasContainingProductsAsync","hasContainingProductsUrl","getContainingSubscriptionsAsync","containingSubscriptionsUrl","getProductsCustomersAlsoBoughtAsync","customersAlsoBoughtUrl","skuIds","params","getTooltipAsync","getProductDownloadsAsync","downloadsUrl","getFeaturedProducts","featuredProductIdsUrl","error","status","featuredProducts","getQuickCompare","quickCompareUrl","getUnownedResourcesInfos","unownedResourcesInfosBaseUrl","productIds","join","infos","getShortBlurbsForProductIds","getShortBlurbsUrl","postWithBody","body","getSubscriptionPromotionsForSkuIds","getSubscriptionPromotionsUrl","BillingMode","Monthly","Annually","MultiAnnualTerm","Object","values","ConfigurationWizardContext","createContext","ConfigurationWizardContextProvider","initialValue","children","value","cart","useConfigurationWizardCartContext","navigate","useLocation","routes","useContext","RouteContext","isLibraryUpsellAvailable","isLibraryUpsellModalOpen","setIsLibraryUpsellModalOpen","useState","isLoading","setIsLoading","subscriptionInCart","subscriptionsInCart","selectedSpoid","setSelectedSpoid","spoId","selectedSubscribableProduct","setSelectedSubscribableProduct","selectedBillingMode","setSelectedBillingMode","defaultBillingMode","getSubscriptionProductData","usePerUserDataContext","getSelectedSubscribableProductData","useCallback","async","optionId","quantity","couponCodes","useEffect","isCancelled","selectedSubscribableProductData","isMultiAnnualSubscription","SubscriptionBillingPeriodOptions","MultiAnnual","optionBillingMode","loadSelectedSubscribableProductData","handleShowLibraryUpsellModal","hasLibraryInCart","CartUrl","ConfigurationWizardLibrariesUrl","handleCartUpdated","_event","updatedCart","currentSelectedSpoid","order","subscribableLineItems","find","item","isLogosSubscription","subscribableProductOptionId","getSelectedSpoidFromUpdatedCart","eventAggregator","React","Provider","spoids","useConfigurationWizardContext","LibraryUpsellModalUi","selectedProduct","libraryProductCards","open","onDismiss","onShopLibrariesClick","onProceedWithoutLibraryClick","resources","useLocalization","Modal","isOpen","onClose","container","width","maxWidth","zIndex","className","style","maxHeight","Checkmark","CommandSentence","template","YouveSelectedSubscribableProduct","Field","name","onClick","X","WantMoreInsights","map","card","index","key","YourSelection","SubscriptionStar","tier","pricing","termPeriod","PricePerMonth","amount","PricePerYear","PricePerTwoYears","Button","variant","scale","ShopAllLibraries","ProceedWithoutLibrary","propTypes","PropTypes","isRequired","LibraryUpsellProductCard","productId","skuId","imageUri","bookCount","libraryValue","price","savingsPercentage","onLibraryAddedToCart","addToCartButtonResources","onAddToCartRequest","handleAddToCartRequest","useAddToCartRequest","contextValue","useMemo","args","options","onSuccess","addToCartButton","undefined","SavingsPercentage","alt","src","YoursForever","IncludesBooks","Value","CommerceComponentsContextProvider","AddToCartButton","items","filter","Boolean","id","identifier","type","IdentifierTypes","SKU","href","SeeWhatsInside","SavePercentage","Math","round","mapBillingModeToTermPeriod","billingMode","cachedLibraryUpsellTrackProductsByTrackProductId","Map","LibraryUpsellModal","origin","suggestedLibraryTrackProductId","recommendedTrackProductId","libraryUpsellTrackProductData","setLibraryUpsellTrackProductData","cancellationTokenSource","cancellationToken","products","baseUrl","has","URL","GetLibraryUpsellTrackProductsUrl","searchParams","append","ok","set","getOrFetchLibraryUpsellTrackProducts","asyncFunction","withCancellation","handleLibraryUpsellModalProceedToCartClick","handleLibraryUpsellModalViewLibrariesClick","handleLibraryUpsellModalLibraryAddedToCart","handleDismissLibraryUpsellModal","title","initialCharge","product","LoadingProductCard","LibraryUpsellModalWithErrorBoundary","ErrorBoundary","plans_section","plansSectionControls","plansSectionControlsMobile","plansSection","levels","compareSubscriptionsArrow","trackSelector","PlansSection","onDisplayMobileComparisonChart","subscriptionCardsContentViewModel","styles","plansSectionContainer","contentSourceKind","SubscriptionPricingCardsContextProvider","format","SubscriptionPricingCardFormatOptions","Full","RenderBuilderContent","_extends","builderIo","restrictOverflow","shouldSuppressMinicartDrawer","CompareSubscriptionsArrow","handleCompareClick","sharedStyles","ui2","CompareSubscriptions","RightArrow","subscriptions_plans_section","getSubscriptionPricingCards","subscriptionPricingCardsContent","data","blocks","b","component","addClassToBuilderBlockProperties","builderBlock","newBuilderBlock","properties","class","useSubscriptionPricingCardsChildren","subscriptionCardsContent","content","subscriptionCardsChildren","subscriptionCardsChildrenViewModels","c","spoid","vm","subscriptions_subscription_product_card_sticky_header","SubscriptionProductCardStickyHeader","headerRef","anchorElementRef","boundingElementRef","subscriptionProductCardComponents","StickyHeader","SwipeableWrapper","MicroAlt","SliderWrapper","arrowOptions","buttonHeight","sliderArrowOptions","short","displayTheme","dark","feature_component_details","FeatureComponentDetails","orderedIncludedInProducts","shortBlurb","isOwned","isUserLoggedIn","NameWithPreview","InclusionIcons","isIncluded","isPartiallyIncluded","Tooltip","link","classNames","placement","contentStyles","padding","hideArrow","NewToYou","inclusionIconComponents","iip","FullyIncluded","RowWrapper","feature_details_feature_component_details","feature_details","FeatureDetails","subResources","initialIsOpen","onSectionToggle","setIsOpen","setShortBlurb","subResourceComponents","setSubResourceComponents","handleArrowClick","fetchingRef","useRef","fetchComponentInfo","current","shortBlurbsByProductIds","GetShortBlurbsUrl","sr","prototype","hasOwnProperty","call","comparisonId","blankRowCells","LoadingSpinner","small","NameWithArrow","onArrowClick","scaleAmount","Chevron","limit","length","Array","from","FilledCircle","EmptyCircle","feature_section_row_details_feature_details","FeatureSectionRowDetails","section","demoOpenSection","comparisonRows","row","section_row_feature_section_row_details","section_row","h2","h4","h5","ui1","ui3","ui5","b2","b3","loadingSpinner","sectionRow","rowTitleContainer","titleContainer","iconContainer","summaries","summary","legendContainer","includedBooksContainer","SectionRow","token","compareViewModel","sections","isSectionOpen","setIsSectionOpen","rowRef","ref","onChange","isRowOnScreen","observer","IntersectionObserver","entry","isIntersecting","observe","disconnect","handleTitleClick","comparisonTableControlsHandler","useComparisonTableControlsHandler","rowTitle","ExpandableOpenedIcon","ExpandableClosedIcon","ComparisonTableLegend","legend","mode","ComparisonTableControls","summaryBlocks","s","initialSelectedTrackId","ComparisonSectionsTable","selectedCompareSections","comparison_chart_section_row","FeaturedSpoidOverlay","isFeaturedSpoidList","subscriptionPricingCards","useFeaturedSubscriptionPricingCards","scrollableWrapperClassName","itemsClassName","isFeatured","cn","ComparisonChart","sectionRowViewModels","stickyHeaderRef","comparisonChartRef","comparisonChartHeadersRef","ComparisonChartHeaders","headersRef","ComparisonChartRows","initialSelectedTrackProducts","hasDemoedOpenSection","setHasDemoedOpenSection","sectionRows","r","suppressMobileProductComparison","headers","Compare","Mini","subscriptions_comparison_chart","overlay_base","OverlayContext","OverlayContextProvider","contentRef","Overlay","props","usePreventBodyScrolling","TopBar","isContentScrolled","setIsContentScrolled","contentElement","handleScroll","scrollTop","addEventListener","removeEventListener","ExitButton","Content","configuration_wizard_overlay_base","MobileComparisonChart","subscriptionPlansResources","wizardResources","marginTop","setMarginTop","subscribeNotificationsContainerHeight","notificatationsHeight","Close","ScrollableWrapper","subscribableProductId","onSubscribeClick","subscriptions_mobile_comparison_chart","getUniversalHeaderHeight","document","getElementById","getBoundingClientRect","height","CompareJump","scrollTargetRef","isHidden","setIsHidden","containerRef","debouncedHandleScroll","debounce","containerRect","universalHeaderHeight","bottom","previousScrollPaddingTop","documentElement","scrollPaddingTop","max","setTimeout","window","handleClick","previousScrollMarginTop","scrollMarginTop","scrollIntoView","behavior","block","DownChevron24px","subscriptions_compare_jump","comparisonTableWithSliderProps","propsByScreenSize","numbersOfVisibleColumnsByScreenSize","columnWidthsByScreenSize","columnGapsByScreenSize","boundaryMarginWidthsByScreenSize","sliderProps","arrowWidthsByScreenSize","ConfigurationWizardSubscriptions","initialComparisonChartViewModel","comparisonChartViewModel","showAlreadySubscribedDisclaimer","summaryTrough","logosOrVerbum","subscriptionsResources","pathname","search","replaceUrl","clearQueryStringParameters","parameterNames","parameterNamesToClear","forEach","delete","selectedTrackProductIndex","setSelectedTrackProductIndex","selectedTrackId","errorMessage","setErrorMessage","SomethingWentWrong","setSectionRowViewModels","clearLoadingSpinner","sectionRowsFetched","newSections","CompareClient","getCompareSectionDataForSubscribableProducts","CompareSubscribableProductsSectionsBaseUrl","category","resourceCategory","ex","fetchComparisonSections","mobileComparisonChartInfo","setMobileComparisonChartInfo","plansStickyHeaderRef","upperBanner","WizardHero","goDeeperInTheWordWithTheRightPlan","subtitle","LogosOrVerbumLeadABibleStudyPreachTheWord","ProgressIndicatorV2","step","subscriptionsUrl","ConfigurationWizardSubscriptionsUrl","librariesUrl","subscriptionsLabel","Subscription","librariesLabel","AddALibraryOptional","libraryTitleAndNMoreTemplate","LibraryTitleAndNMoreTemplate","ScrollableTableWithSliderProvider","firstVisibleColumnIndex","totalNumberOfColumns","onFirstVisibleColumnChange","ChoosingANewSubscriptionReplacesYourExistingSubscriptionNotice","SummaryTrough","FullscreenOverlayLoadingSpinner","handleDisplayMobileComparisonChart","handleMobileComparisonChartClose","ConfigurationWizardSubscriptionsContextWrapper","initialConfigurationWizardCartViewModel","defaultBillingPeriod","initialContextValue","PerUserDataContextProvider","ConfigurationWizardCartContextProvider","configuration_wizard_subscriptions"],"sourceRoot":""}