/***/ // extracted by extract-css-chunks-webpack-plugin /*#__PURE__*/ //src={referral_banner_desktop} /* import() */ // eslint-disable-next-line react-hooks/exhaustive-deps // Check if all items of the category are in the disabled SKU list // Category not found in productList, include it // Clear the timeout if component unmounts // Show loader for 2 seconds // Ensure the loader is shown when condition is true // Added isLimitedMidnightHours as a dependency // Don't set the active index based on scroll if a link was just clicked // set default if activeState is null // No hash if we're near the top of the page // Corresponds to 10 frames at 60 Hz // Used to disable findActiveIndex if the page scrolls due to a click /** * Returns props necessary to render the categoryContent component. * * @param {object} props.data - The results of a getCategory GraphQL query. * * @returns {object} result * @returns {string} result.categoryDescription - This category's description. * @returns {string} result.categoryName - This category's name. * @returns {object} result.filters - The filters object. * @returns {object} result.items - The items in this category. * @returns {number} result.totalPagesFromData - The total amount of pages for the query. */ // Run the category query immediately and whenever its variable values change. // Wait until we have the type map to fetch product data. // Construct the filter arg object. // Use the category uid for the current category page regardless of the // applied filters. Follow-up in PWA-404. // Adding the event listener // Cleanup function to remove event listener when the component unmounts // if (loading && sessionStorage.getItem("initialLoadingCompleted") == "1") return