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sB,KACtB,aAAe,EACf,eAAiB,EACjB,UAAY,EACZ,YAAc,EACd,SAAY,KACZ,SAAY,CAAC,EACb,iBAAmB,EAEnB,sBAAyB,WAAO,EAChC,sBAAyB,KACzB,iBAAmB,EACnB,WAAa,EACb,mBAAqB,IAwLzB,SAAe9M,EAAAA,EAAAA,KANS,SAAAsF,GAAK,MAC1B,CACC,iBAAoBA,EAAM0H,kBAAoB,CAAC,EAC/C,SAAY1H,EAAMoJ,SACnB,GAEH,CAAwC5B,E,yDCpOlC1H,EAAkB,CACtB,kBAAqBtF,IAAAA,MAAgB,CACnC,YAAeA,IAAAA,OACf,aAAgBA,IAAAA,OAAiBC,WACjC,UAAaD,IAAAA,OACb,GAAMA,IAAAA,OAAiBC,WACvB,SAAYD,IAAAA,OAAiBC,WAC7B,gBAAmBD,IAAAA,KACnB,YAAeA,IAAAA,OACf,KAAQA,IAAAA,OAAiBC,WACzB,YAAeD,IAAAA,OACf,SAAYA,IAAAA,UAIhBsF,EAAgBe,mBAAqBrG,IAAAA,QAAkBsF,EAAgBC,mBAGvE,S","sources":["webpack://rocksbox/./client/app/selectors/errors.js","webpack://rocksbox/./client/app/bundles/Swap/components/Alert.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/ExitIntentButton.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/ExitIntentModal.jsx","webpack://rocksbox/./client/app/bundles/Site/components/RocksboxLogo.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/NavBar.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/OnboardingModal.jsx","webpack://rocksbox/./client/app/shared/components/ScrollToTop.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/SwapModal.jsx","webpack://rocksbox/./client/app/bundles/Swap/modules/VetoHelper.js","webpack://rocksbox/./client/app/bundles/Swap/components/SelectSwap.jsx","webpack://rocksbox/./client/app/shared/components/EditShipment.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/FirstSwapNote.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/StartSwap.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/Swap.jsx","webpack://rocksbox/./client/app/bundles/Swap/containers/SwapContainer.jsx","webpack://rocksbox/./client/app/bundles/Swap/components/SwapInit.jsx","webpack://rocksbox/./client/app/bundles/Swap/modules/VetoAPI.js","webpack://rocksbox/./client/app/shared/components/PageBanner.jsx","webpack://rocksbox/./client/app/shared/components/ProductDescriptorsCarousel.jsx","webpack://rocksbox/./client/app/shared/components/ProductPanel.jsx","webpack://rocksbox/./client/app/shared/modules/SharedPropTypes.js"],"sourcesContent":["export const getDisplayError = state => state.error.displayError;\nexport const getErrorMessage = state => state.error.errorMessage;\n","import * as React from \"react\";\nimport {getDisplayError, getErrorMessage} from \"../../../selectors/errors\";\nimport PropTypes from \"prop-types\";\nimport {connect} from \"react-redux\";\n\nclass Alert extends React.Component {\n static propTypes = {\n \"displayError\": PropTypes.bool.isRequired,\n \"onClearError\": PropTypes.func.isRequired,\n \"text\": PropTypes.string.isRequired\n };\n\n handleClick = () => {\n const {onClearError} = this.props;\n onClearError();\n };\n\n render () {\n const {displayError, text} = this.props;\n\n return (\n
\n {displayError &&\n
\n
\n {text}\n
\n \n \n ×\n \n \n
\n }\n
\n );\n }\n}\n\nconst mapStateToProps = state => ({\n \"displayError\": getDisplayError(state),\n \"text\": getErrorMessage(state)\n});\n\nexport default connect(mapStateToProps, {})(Alert);\n","import PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst ExitIntentButton = ({handleShowExitIntentModal}) => (\n \n
\nClose\n
\n
\n
\n);\n\n\nExitIntentButton.propTypes = {\"handleShowExitIntentModal\": PropTypes.func.isRequired};\n\nexport default ExitIntentButton;\n","/* eslint-disable react/jsx-no-bind */\nimport Modal from \"react-bootstrap-modal\";\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\n\nconst ExitIntentModal = ({handleShowExitIntentModal}) => {\n const handleExit = () => {\n window.location.href = \"/jewelry?exited_preview_swap=true\";\n };\n\n return (\n null}\n show\n >\n \n \n

\n are you sure you want to leave?\n

\n
\n \n \n
\n You have 24 hours to preview and swap your pieces.\n
\n
\n After that, your box will be sent automatically.\n
\n
\n \n Continue Swapping\n \n \n Exit Preview & Swap\n \n
\n
\n \n );\n};\n\nExitIntentModal.propTypes = {\"handleShowExitIntentModal\": PropTypes.func.isRequired};\n\nexport default ExitIntentModal;\n","import React from \"react\";\n\nconst RocksboxLogo = () => (\n
\n \n
\n);\n\nexport default RocksboxLogo;\n","/* eslint-disable react/jsx-no-bind, react/no-multi-comp */\nimport React, {useState} from \"react\";\nimport ExitIntentButton from \"./ExitIntentButton\";\nimport ExitIntentModal from \"./ExitIntentModal\";\nimport {Link} from \"react-router-dom\";\nimport RocksboxLogo from \"../../Site/components/RocksboxLogo\";\nimport {isMobile} from \"../../../lib/userAgent.js\";\n\nconst NavBar = () => {\n const [\n showExitIntentModal,\n setShowExitIntentModal\n ] = useState(false);\n\n const handleShowExitIntentModal = () => {\n setShowExitIntentModal(prev => !prev);\n };\n\n const shouldRenderMainScreenNav = () => window.location.pathname === \"/account/preview_next_set\";\n\n const shouldRenderSwapBackNav = () => window.location.pathname === \"/account/preview_next_set/swap\";\n\n const mainScreenNavBar = () => (\n
\n \n \n
\n );\n\n const swapBackNavBar = () => (\n
\n
\n \n
\n \n

\n swap your pieces\n

\n
\n
\n );\n\n const renderNavBar = () => {\n // Desktop Preview and Swap should always render main scren navbar\n if (!isMobile() || shouldRenderMainScreenNav()) {\n return mainScreenNavBar();\n }\n\n if (shouldRenderSwapBackNav()) {\n return swapBackNavBar();\n }\n\n return null;\n };\n\n return (\n
\n {renderNavBar()}\n\n {showExitIntentModal && }\n
\n );\n};\n\nexport default NavBar;\n","/**\n * @jest-environment jsdom\n */\n\n/* eslint-disable max-len, react/no-did-mount-set-state, react/no-did-update-set-state, react/jsx-one-expression-per-line */\n\nimport * as React from \"react\";\nimport Modal from \"react-bootstrap-modal\";\nimport PropTypes from \"prop-types\";\n\nclass OnboardingModal extends React.PureComponent {\n\n static propTypes = {\n \"close\": PropTypes.func,\n \"open\": PropTypes.bool\n };\n\n static defaultProps = {\n \"close\": null,\n \"open\": false\n }\n\n constructor (props) {\n super(props);\n this.state = {\n \"completeLoadingImages\": false,\n \"desktopBackgroundImages\": [],\n \"displayedTexts\": [\"1. Get your rental set\"],\n \"index\": 0,\n \"mobileBackgroundImages\": [],\n \"modalTexts\": [\n \"2. Wear & enjoy!\",\n \"3. Buy what you love\",\n \"4. Return for more\"\n ]\n };\n this.interval = null;\n }\n\n componentDidMount () {\n this.imageCachePrefix = \"https://karat-herokuapp-com.freetls.fastly.net/s3media/site/onboarding\";\n this.desktopImage = `${this.imageCachePrefix}/desktop/01-Desktop-LoadingModal-Sending`;\n this.mobileImagePrefix = `${this.imageCachePrefix}/mobile`;\n this.setState({\n \"desktopBackgroundImages\": [\n `${this.desktopImage}-02.png`,\n `${this.desktopImage}-03.png`,\n `${this.desktopImage}-04.png`\n ],\n \"mobileBackgroundImages\": [\n `${this.mobileImagePrefix}/02-LoadingModal-Sending.png`,\n `${this.mobileImagePrefix}/03-LoadingModal-Sending.png`,\n `${this.mobileImagePrefix}/04-LoadingModal-Sending.png`\n ]\n });\n }\n\n componentDidUpdate (prevProps) {\n const {open, close} = this.props;\n const {desktopBackgroundImages, displayedTexts, mobileBackgroundImages, completeLoadingImages} = this.state;\n if (desktopBackgroundImages.length === 3 && mobileBackgroundImages.length === 3) {\n this.setState({\"completeLoadingImages\": true});\n }\n if (open !== prevProps.open && displayedTexts.length !== 4) {\n if (completeLoadingImages) {\n setInterval(this.start, 3000);\n }\n }\n if (displayedTexts.length === 4) {\n clearInterval(this.interval);\n setTimeout(close, 5000);\n }\n }\n\n isMobile = window.innerWidth <= 438;\n\n start = () => {\n const {desktopBackgroundImages, displayedTexts, index, mobileBackgroundImages, modalTexts} = this.state;\n if (index < 3) {\n this.setState({\n \"displayedTexts\": displayedTexts.concat(modalTexts[index]),\n \"index\": index + 1\n });\n const modal = document.querySelector(\"#onboarding-modal .modal-content\");\n\n if (modal) {\n if (this.isMobile) {\n modal.style.background = `url(${mobileBackgroundImages[index]}) 100% 100%`;\n } else {\n modal.style.background = `url(${desktopBackgroundImages[index]}) 100% 100%`;\n }\n modal.style.backgroundSize = \"cover\";\n modal.style.backgroundColor = \"#ffc7b7\";\n }\n }\n }\n\n render () {\n const {\n close,\n open\n } = this.props;\n const {displayedTexts} = this.state;\n return (\n
\n \n \n

\n Sending Your Set!\n

\n
\n {displayedTexts.map((text, idx) =>\n
\n {text}\n
)}\n {displayedTexts.length === 4 ? \"\" :
...
}\n
\n
\n \n
\n );\n }\n}\n\nexport default OnboardingModal;\n","/* eslint-disable react/require-optimization */\n\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\nimport {withRouter} from \"react-router-dom\";\n\nclass ScrollToTop extends React.Component {\n static propTypes = {\n \"children\": PropTypes.node.isRequired,\n \"location\": PropTypes.object\n };\n\n static defaultProps = {\"location\": {}};\n\n componentDidUpdate (prevProps) {\n const {location} = this.props;\n\n if (location !== prevProps.location) {\n window.scrollTo(0, 0);\n }\n }\n\n render () {\n const {children} = this.props;\n\n return children;\n }\n}\n\nexport default withRouter(ScrollToTop);\n","import * as React from \"react\";\nimport Modal from \"react-bootstrap-modal\";\nimport PropTypes from \"prop-types\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\nimport {connect} from \"react-redux\";\nimport {fetchPDPrices} from \"../../../actions/index\";\n\nclass SwapModal extends React.PureComponent {\n\n static propTypes = {\n \"enabled\": PropTypes.bool.isRequired,\n \"fetchPDPrices\": PropTypes.func.isRequired,\n \"fulfillWishListRequest\": PropTypes.func.isRequired,\n \"note\": PropTypes.string.isRequired,\n \"onCloseAndSaveModal\": PropTypes.func.isRequired,\n \"onCloseModal\": PropTypes.func.isRequired,\n \"open\": PropTypes.bool.isRequired,\n \"productDescriptorIds\": PropTypes.array.isRequired,\n \"productToSwapIn\": SharedPropTypes.productDescriptor.isRequired,\n \"productToSwapOut\": SharedPropTypes.productDescriptor.isRequired,\n \"requestsFetched\": PropTypes.bool.isRequired\n };\n\n handleConfirm = () => {\n const {\n enabled,\n fulfillWishListRequest,\n onCloseAndSaveModal,\n productToSwapIn\n } = this.props;\n if (!enabled) {\n return;\n }\n\n this.swapAndUpdateProductPrices();\n fulfillWishListRequest(productToSwapIn.id);\n onCloseAndSaveModal(productToSwapIn);\n };\n\n swapAndUpdateProductPrices = () => {\n const {\n fetchPDPrices, // eslint-disable-line no-shadow\n productDescriptorIds,\n productToSwapIn,\n productToSwapOut\n } = this.props;\n\n const swapOutIndex = productDescriptorIds.indexOf(productToSwapOut.id);\n productDescriptorIds[swapOutIndex] = productToSwapIn.id;\n\n fetchPDPrices(productDescriptorIds, true);\n }\n\n renderRingSize = ringSize => (\n \n Size: \n {ringSize}\n \n )\n\n render () {\n const {\n enabled,\n onCloseModal,\n open,\n productToSwapOut,\n productToSwapIn\n } = this.props;\n const isActiveClass = enabled\n ? \"\"\n : \" disabled\";\n\n return (\n
\n \n \n \n Great Choice\n \n \n \n
\n
\n \n {productToSwapOut.ringSize && this.renderRingSize(productToSwapOut.ringSize)}\n
\n \n \n
\n
\n \n {productToSwapIn.ringSize && this.renderRingSize(productToSwapIn.ringSize)}\n
\n
\n \n \n \n Confirm This Swap\n \n \n Cancel\n \n \n \n
\n );\n }\n}\nconst mapStateToProps = store => ({\"productToSwapOut\": store.productToSwapOut || {}});\n\nexport default connect(mapStateToProps, {fetchPDPrices})(SwapModal);\n","export default class Helper {\n static mapProducts (products) {\n return products.map((productDescriptor) => {\n const {\n \"details\": {\n \"designer\": designerName,\n \"group_name\": groupName,\n highlight,\n \"kind_name\": kindName,\n \"member_price\": memberPrice,\n name,\n \"ring_size\": ringSize,\n \"thumbnail_urls\": [imageUrl],\n url\n },\n id\n } = productDescriptor;\n return {\n designerName,\n groupName,\n highlight,\n id,\n imageUrl,\n \"isStylistChoice\": false,\n kindName,\n memberPrice,\n name,\n ringSize,\n url\n };\n });\n }\n}\n","/* eslint-disable max-lines */\n/* eslint-disable react/jsx-closing-tag-location */\n/* eslint-disable no-shadow */\n/* eslint-disable react/jsx-no-bind */\nimport * as React from \"react\";\nimport {hideError, setOffset, updateProductBeingSwapped} from \"../../../actions\";\nimport API from \"../../../shared/modules/API\";\nimport EventsAPI from \"../../../shared/modules/EventsAPI\";\nimport FiltersContainer from \"../../Wishlist/components/FiltersContainer\";\nimport {Helmet} from \"react-helmet\";\nimport Helper from \"../../../shared/modules/Helper\";\nimport ProductDetailsModal from \"../../Wishlist/components/ProductDetailsModal\";\nimport ProductPanel from \"../../../shared/components/ProductPanel\";\nimport PropTypes from \"prop-types\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\nimport SwapModal from \"./SwapModal\";\nimport VetoAPI from \"../modules/VetoAPI\";\nimport VetoHelper from \"../modules/VetoHelper\";\nimport WishlistGrid from \"../../Wishlist/components/WishlistGrid\";\nimport {connect} from \"react-redux\";\nimport {wishlistCacheLifespan} from \"../../../lib/CONSTANTS\";\n\nclass SelectSwap extends React.PureComponent {\n\n static propTypes = {\n \"activePromo\": PropTypes.bool,\n \"addWishListRequest\": PropTypes.func.isRequired,\n \"categories\": PropTypes.array.isRequired,\n \"collectFilters\": PropTypes.func.isRequired,\n \"customerState\": PropTypes.string,\n \"eligibleForFineJewelry\": PropTypes.bool.isRequired,\n \"fetchNewProps\": PropTypes.func.isRequired,\n \"filters\": PropTypes.array.isRequired,\n \"fulfillWishListRequest\": PropTypes.func.isRequired,\n \"hideError\": PropTypes.func.isRequired,\n \"kindFilter\": PropTypes.string,\n \"lastScrollPosition\": PropTypes.number,\n \"loadingSwappableProducts\": PropTypes.bool,\n \"offset\": PropTypes.number.isRequired,\n \"onCancelSwap\": PropTypes.func.isRequired,\n \"onFilterChange\": PropTypes.func.isRequired,\n \"onFinishSwap\": PropTypes.func.isRequired,\n \"onSelectSwap\": PropTypes.func.isRequired,\n \"params\": PropTypes.object.isRequired,\n \"previewSwapping\": PropTypes.bool,\n \"productDescriptors\": SharedPropTypes.productDescriptors.isRequired,\n \"productPanelClass\": PropTypes.string,\n \"productToSwapOut\": PropTypes.object.isRequired,\n \"propsCache\": PropTypes.object.isRequired,\n \"removeWishListRequest\": PropTypes.func.isRequired,\n \"requestsFetched\": PropTypes.bool.isRequired,\n \"requestsNeeded\": PropTypes.number.isRequired,\n \"rewardsTier\": PropTypes.string.isRequired,\n \"setOffset\": PropTypes.func.isRequired,\n \"showClearancePrice\": PropTypes.bool,\n \"showComingSoon\": PropTypes.bool,\n \"showPriceRangeFilters\": PropTypes.bool,\n \"showProductName\": PropTypes.bool,\n \"showPromoFilters\": PropTypes.bool,\n \"showPromoPrice\": PropTypes.bool,\n \"showRetailPrice\": PropTypes.bool,\n \"showTags\": PropTypes.bool,\n \"showTrendFilters\": PropTypes.bool,\n \"showWishlistStars\": PropTypes.bool,\n \"sorts\": PropTypes.array.isRequired,\n \"stickyFilter\": PropTypes.object,\n \"updateLastScrollPosition\": PropTypes.func.isRequired,\n \"updateProductBeingSwapped\": PropTypes.func.isRequired,\n \"updateState\": PropTypes.func.isRequired,\n \"useModal\": PropTypes.bool\n };\n\n /* eslint-disable react/default-props-match-prop-types */\n static defaultProps = {\n \"activePromo\": null,\n \"customerState\": \"\",\n \"kindFilter\": \"All\",\n \"lastScrollPosition\": 0,\n \"loadingSwappableProducts\": false,\n \"offset\": 36,\n \"previewSwapping\": true,\n \"productPanelClass\": \"\",\n \"showClearancePrice\": false,\n \"showComingSoon\": false,\n \"showPriceRangeFilters\": false,\n \"showProductName\": false,\n \"showPromoFilters\": false,\n \"showPromoPrice\": false,\n \"showRetailPrice\": false,\n \"showTags\": false,\n \"showTrendFilters\": false,\n \"showWishlistStars\": false,\n \"stickyFilter\": {},\n \"useModal\": false\n };\n /* eslint-disable react/default-props-match-prop-types */\n\n constructor (props) { // eslint-disable-line\n super(props);\n const productToSwapIn = {\n \"designerName\": \"Stylist's Choice\",\n \"id\": 0,\n \"imageUrl\": \"https://karat-herokuapp-com.freetls.fastly.net/s3media/site/veto-swap/stylist-box.svg\",\n \"isStylistChoice\": true,\n \"memberPrice\": \"\",\n \"name\": \"\"\n };\n\n this.state = {\n // Is modal submit button active?\n \"activeIndex\": 0,\n \"didSetup\": false,\n \"filtering\": false,\n \"isModalButtonEnabled\": true,\n \"latestRequest\": null,\n \"lazyLoadingNow\": false,\n \"modalOpen\": false,\n \"modalProductDescriptorId\": null,\n \"noMoreToLoad\": false,\n \"note\": \"\",\n \"productModalOpen\": false,\n \"productOrdering\": [],\n productToSwapIn,\n \"products\": {}\n };\n\n }\n\n componentDidMount = () => {\n // eslint-disable-next-line no-shadow\n const {fetchNewProps, productDescriptors, updateProductBeingSwapped} = this.props;\n\n // fetch veto fetches the products\n const endpoint = this.getEndpoint();\n this.fetchVeto(0, endpoint, false);\n updateProductBeingSwapped(productDescriptors[0]);\n if (this.isReady()) {\n this.onReady();\n } else {\n fetchNewProps(window.location.pathname);\n }\n }\n\n componentDidUpdate = () => {\n const {didSetup} = this.state;\n if (!didSetup && this.isReady()) {\n this.onReady();\n }\n }\n\n componentWillUnmount = () => {\n removeEventListener(\"scroll\", this.onScroll, false);\n }\n\n getEndpoint = () => {\n const {\"params\": {action, controller}} = this.props;\n return `/${controller.split(\"/\").pop()}${\n [\n \"index\",\n \"add\"\n ].includes(action)\n ? \"\"\n : `/${action}`}`;\n }\n\n handleAddWishlist = (prodId, feed) => {\n const {addWishListRequest, hideError} = this.props;\n addWishListRequest(prodId, feed);\n hideError();\n }\n\n handleShowSwapModal = (productToSwapIn) => {\n const {hideError} = this.props;\n this.setState({\n \"modalOpen\": true,\n \"productToSwapIn\": VetoHelper.mapProducts([productToSwapIn])[0]\n });\n hideError();\n };\n\n handleCloseModal = () => {\n this.setState({\"modalOpen\": false});\n };\n\n handleStylistNoteChange = (event) => {\n this.setState({\"note\": event.currentTarget.value});\n };\n\n onScroll = () => {\n const {offset, updateLastScrollPosition} = this.props;\n const {lazyLoadingNow, noMoreToLoad} = this.state;\n const endpoint = this.getEndpoint();\n\n if (window.location.pathname === \"/preview_and_swap\") {\n updateLastScrollPosition($(window).scrollTop());\n }\n\n if (lazyLoadingNow || noMoreToLoad ||\n $(window).scrollTop() + $(window).height() <= $(document).height() - 1000) {\n return;\n }\n this.fetchVeto(offset, endpoint, false);\n };\n\n fetchVeto = (newOffset, action, onFilter, force = false) => { // eslint-disable-line\n const {collectFilters, offset, setOffset, updateState} = this.props; // eslint-disable-line\n const filters = collectFilters();\n const id = Number(new Date());\n\n EventsAPI.trackCustomerEvent(\"preview_and_swap_scroll\", `onFilter: ${onFilter} offset: ${newOffset}`);\n\n this.setState({\n \"filtering\": onFilter,\n \"latestRequest\": id,\n \"lazyLoadingNow\": true\n }, () => VetoAPI.fetchVeto(newOffset, action, filters, 36, force).then((response) => {\n const {latestRequest} = this.state;\n if (latestRequest !== id) return;\n this.setState(prevState => ({\n \"productOrdering\": this.setProductOrderingState(prevState, onFilter, response),\n \"products\": Helper.createProductObject(response.products, prevState.products)\n }));\n updateState(prevState => ({\n \"products\": Helper.createProductObject(response.products, prevState.products),\n \"wishlist\": {\n ...prevState.wishlist,\n \"productOrdering\": this.setProductOrderingState(prevState.wishlist, onFilter, response)\n }\n }), () => {\n\n /*\n * After the new pieces have been fetched\n * 1. fetch member and clearance prices\n * 2. Set the new offset (total number of pieces) in redux\n * 3. Update state of component\n */\n if (onFilter && offset !== 36) {\n setOffset(36);\n } else if (!onFilter) {\n setOffset(offset + 36);\n }\n this.setState({\n \"filtering\": false,\n \"lazyLoadingNow\": false,\n \"noMoreToLoad\": response.products.length !== 36\n });\n });\n }));\n }\n\n forceScroll = (scrollPosition) => {\n $(window).scrollTop(scrollPosition);\n }\n\n filter = () => {\n const {\"params\": {action, controller}, updateLastScrollPosition} = this.props;\n const endpoint = `/${controller.split(\"/\").pop()}${\n [\n \"index\",\n \"add\"\n ].includes(action)\n ? \"\"\n : `/${action}`}`;\n\n if (!this.isMobile) {\n this.forceScroll(0);\n updateLastScrollPosition(0);\n }\n this.fetchVeto(0, endpoint, true);\n }\n\n handleConfirmSwapModal = (productDescriptor) => {\n const {hideError, onSelectSwap, updateProductBeingSwapped} = this.props;\n const resetModal = () => {\n this.setState({\n \"isModalButtonEnabled\": true,\n \"modalOpen\": false,\n \"modalProductDescriptorId\": null,\n \"productModalOpen\": false\n });\n updateProductBeingSwapped(productDescriptor);\n };\n const successCallback = () => {\n hideError();\n resetModal();\n };\n const failureCallback = () => {\n resetModal();\n const endpoint = this.getEndpoint();\n this.fetchVeto(0, endpoint, true, true);\n };\n this.setState({\"isModalButtonEnabled\": false});\n\n onSelectSwap(productDescriptor, null, successCallback, failureCallback);\n };\n\n handleCancelSwap = () => {\n const {onCancelSwap} = this.props;\n onCancelSwap();\n };\n\n handleFilterChange = kindName => () => {\n const {onFilterChange} = this.props;\n onFilterChange(kindName);\n };\n\n onSelect = (prevState, index, product) => {\n if (prevState.activeIndex === index) {\n const {productDescriptors} = this.props;\n this.showModal(productDescriptors[index].id);\n return;\n }\n // eslint-disable-next-line no-shadow\n const {updateProductBeingSwapped} = this.props;\n updateProductBeingSwapped(product);\n this.setState({\"activeIndex\": index});\n }\n\n onReady = () => {\n const {lastScrollPosition} = this.props;\n this.forceScroll(lastScrollPosition);\n addEventListener(\"scroll\", this.onScroll, false);\n\n this.setState({\"didSetup\": true});\n };\n\n isReady () {\n const {propsCache} = this.props;\n const cachedProps = propsCache[\"/account/preview_next_set\"];\n\n if (!cachedProps || typeof cachedProps.createdAt !== \"number\") {\n return false;\n }\n const cacheAge = Date.now() - cachedProps.createdAt; // eslint-disable-line one-var\n return cacheAge < wishlistCacheLifespan;\n }\n\n showModal = (id) => {\n const {hideError} = this.props;\n hideError();\n this.updateModalProductDescriptor(id, () => {\n this.setState({\"productModalOpen\": true});\n });\n };\n\n hideModal = () => this.setState({\n \"modalProductDescriptorId\": null,\n \"productModalOpen\": false\n });\n\n setProductOrderingState = (prevState, onFilter, response) => {\n if (prevState && !onFilter) {\n return [\n ...prevState.productOrdering,\n ...response.products.map(product => product.id)\n ];\n }\n return response.products.map(product => product.id);\n\n }\n\n updateModalProductDescriptor = (id, callback) => {\n const {\"products\": {[id]: product}} = this.state;\n\n if (product) {\n this.setState({\"modalProductDescriptorId\": id});\n } else {\n API.fetchProducts(null, {id}).then(response => this.setState(prevState =>\n ({\n \"modalProductDescriptorId\": id,\n \"products\": Helper.createProductObject([response.products], prevState.products)\n })));\n }\n\n return typeof callback === \"function\" && callback();\n };\n\n isMobile = window.innerWidth <= 767;\n\n render () {\n const {\n categories,\n collectFilters,\n customerState,\n filters,\n fulfillWishListRequest,\n onFinishSwap,\n eligibleForFineJewelry,\n onSelectSwap,\n params,\n previewSwapping,\n productDescriptors,\n productPanelClass,\n requestsFetched,\n requestsNeeded,\n removeWishListRequest,\n rewardsTier,\n showClearancePrice,\n showComingSoon,\n showPromoFilters,\n showRetailPrice,\n showTags,\n sorts,\n stickyFilter,\n updateState,\n useModal\n } = this.props;\n const {\n filtering,\n isModalButtonEnabled,\n lazyLoadingNow,\n modalOpen,\n modalProductDescriptorId,\n note,\n activeIndex,\n productModalOpen,\n productOrdering,\n productToSwapIn,\n products\n } = this.state;\n const {[modalProductDescriptorId]: modalProductDescriptor} = products;\n\n return (\n \n \n \n Rocksbox: Swap Your Pieces\n \n \n
\n {this.isMobile &&\n \n Looks Great, Send My Set!\n \n }\n
\n
\n
\n {!this.isMobile &&\n
\n

\n Swap your pieces\n

\n \n Looks Great, Send My Set!\n \n
\n }\n
\n
\n
\n {productDescriptors.map((productDescriptor, index) =>\n )}\n
\n
\n
\n
\n
\n \n {useModal && modalProductDescriptor &&\n }\n \n\n pd.id)}\n productToSwapIn={productToSwapIn}\n requestsFetched={requestsFetched}\n />\n
\n
\n
\n );\n }\n}\n\nconst mapStateToProps = store => ({\n \"customerRequests\": store.customerRequests,\n \"offset\": store.offset,\n \"pdPrices\": store.pdPrices,\n \"productToSwapOut\": store.productToSwapOut || {},\n \"selectedFilters\": store.selectedFilters || []\n});\n\nexport default connect(mapStateToProps, {\n hideError,\n setOffset,\n updateProductBeingSwapped\n})(SelectSwap);\n","import * as React from \"react\";\nimport Helper from \"../../shared/modules/Helper\";\nimport PropTypes from \"prop-types\";\n\nconst EditShipment = (props) => {\n const {shippingAddress} = props;\n if (shippingAddress) {\n const {\"street_address_1\": streetAddress} = shippingAddress;\n return (\n
\n
\n \n Shipping to:\n \n {\" \"}\n {Helper.toTitleCase(streetAddress)}\n {\" \"}\n \n Edit >\n \n
\n
\n );\n }\n\n return null;\n};\n\nexport default EditShipment;\n\nEditShipment.propTypes = {\"shippingAddress\": PropTypes.object.isRequired};\n","import * as React from \"react\";\nimport PropTypes from \"prop-types\";\n\nconst FirstSwapNote = (props) => {\n const {itemsSwappedCount, noteText} = props;\n\n return (\n
\n
\n

\n {itemsSwappedCount > 0 ? \"This set is fabulous!\" : \"Your first set is ready!\"}\n

\n \n {noteText}\n \n
\n
\n );\n};\n\nexport default FirstSwapNote;\n\nFirstSwapNote.propTypes = {\n \"itemsSwappedCount\": PropTypes.number.isRequired,\n \"noteText\": PropTypes.string.isRequired\n};\n","/* eslint-disable max-len */\n/* eslint-disable no-shadow */\n/* eslint-disable react/jsx-closing-bracket-location */\n/* eslint-disable react/jsx-closing-tag-location */\nimport * as React from \"react\";\nimport {Link, withRouter} from \"react-router-dom\";\nimport {hideError, updateProductBeingSwapped} from \"../../../actions\";\nimport API from \"../../../shared/modules/API\";\nimport EditShipment from \"../../../shared/components/EditShipment\";\nimport FirstSwapNote from \"../components/FirstSwapNote\";\nimport Helper from \"../../../shared/modules/Helper\";\nimport PageBanner from \"../../../shared/components/PageBanner\";\nimport ProductDescriptorsCarousel from \"../../../shared/components/ProductDescriptorsCarousel\";\nimport ProductDetailsModal from \"../../Wishlist/components/ProductDetailsModal\";\nimport ProductPanel from \"../../../shared/components/ProductPanel\";\nimport PropTypes from \"prop-types\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\nimport {connect} from \"react-redux\";\nimport {sendStartedSwapEvent} from \"../../../shared/modules/PreviewAndSwapEventsHelper\";\n\n// eslint-disable-next-line react/prefer-stateless-function\nclass StartSwap extends React.Component {\n static propTypes = {\n \"autocurated\": PropTypes.bool.isRequired,\n \"customerFirstName\": PropTypes.string.isRequired,\n \"hideError\": PropTypes.func.isRequired,\n \"isPremadeSet\": PropTypes.bool.isRequired,\n \"isPremadeSetSignup\": PropTypes.bool.isRequired,\n \"itemsSwappedCount\": PropTypes.number.isRequired,\n \"match\": PropTypes.shape({\"path\": PropTypes.string.isRequired}).isRequired,\n \"onFinishSwap\": PropTypes.func.isRequired,\n \"onStartSwap\": PropTypes.func.isRequired,\n \"premadeSetSoldOutSwapText\": PropTypes.string,\n \"premadeSetSwapText\": PropTypes.string,\n \"productDescriptors\": SharedPropTypes.productDescriptors.isRequired,\n \"requestsFetched\": PropTypes.bool.isRequired,\n \"shippingAddress\": PropTypes.object.isRequired,\n \"timeLeft\": PropTypes.number.isRequired,\n \"updateProductBeingSwapped\": PropTypes.func.isRequired,\n \"updateState\": PropTypes.func.isRequired,\n \"useModal\": PropTypes.bool,\n \"warehouseReducedCapacityText\": PropTypes.string\n };\n\n static defaultProps = {\n \"premadeSetSoldOutSwapText\": \"\",\n \"premadeSetSwapText\": \"\",\n \"useModal\": true,\n \"warehouseReducedCapacityText\": null\n };\n\n constructor (props) {\n super(props);\n\n this.state = {\n \"modalProductDescriptorId\": null,\n \"productModalOpen\": false,\n \"products\": {}\n };\n }\n\n componentDidMount = () => {\n window.scrollTo(0, 0);\n }\n\n renderTimer = timeLeft => (\n
\n \n
\n )\n\n renderSwapButtons = () => {\n const {onFinishSwap, itemsSwappedCount, match} = this.props;\n const finishButton = itemsSwappedCount > 0 ? \"btn btn-primary finish-button\" : \"btn btn-secondary finish-button\";\n const swapButton = itemsSwappedCount > 0 ? \"btn btn-secondary start-swap-button\" : \"btn btn-primary start-swap-button\";\n const text = itemsSwappedCount > 0 ? \"Swap Again\" : \"Start Swap\";\n\n return (\n \n \n {text}\n \n \n Looks Great, Send My Set!\n \n \n );\n };\n\n renderEditShippingInfo = shippingAddress => (\n \n );\n\n renderAutocuratedSwapHeader = shippingAddress => (\n
\n

\n Preview Your Set\n

\n {this.renderEditShippingInfo(shippingAddress)}\n
\n );\n\n renderSwapHeader = (itemsSwappedCount) => {\n const {productDescriptors} = this.props;\n\n return (\n

\n {itemsSwappedCount <= 0\n ? `You can swap up to ${productDescriptors.length} pieces in your set`\n : `Hello new jewelry!\\nYou've swapped ${itemsSwappedCount} out of ${productDescriptors.length} pieces.`\n }\n

\n );\n }\n\n noteText = (isPremadeSet, isPremadeSetSignup, itemsSwappedCount, premadeSetSoldOutSwapText, premadeSetSwapText) => { // eslint-disable-line max-params\n let note = \"\";\n if (isPremadeSet) {\n note += premadeSetSwapText;\n } else if (isPremadeSetSignup) {\n note += premadeSetSoldOutSwapText;\n } else {\n itemsSwappedCount > 0\n ? note += \"Your choices help us to get to know you better. Click “Send My Set” and we’ll send you first shipment!\"\n : note += \"We chose these styles for you. Swap anything you don’t love.\";\n }\n return note;\n };\n\n renderTitle = (autocurated, isPremadeSet, isPremadeSetSignup, itemsSwappedCount, premadeSetSoldOutSwapText, premadeSetSwapText) => ( // eslint-disable-line max-params\n autocurated\n ? \n :

\n Preview & Swap\n

\n );\n\n showModal = (id) => {\n const {hideError} = this.props;\n hideError();\n this.updateModalProductDescriptor(id, () => {\n this.setState({\"productModalOpen\": true});\n });\n };\n\n hideModal = () => this.setState({\n \"modalProductDescriptorId\": null,\n \"productModalOpen\": false\n });\n\n updateModalProductDescriptor = (id, callback) => {\n API.fetchProducts(null, {id}).then(response => this.setState(prevState =>\n ({\n \"modalProductDescriptorId\": id,\n \"products\": Helper.createProductObject([response.products], prevState.products)\n })));\n return typeof callback === \"function\" && callback();\n };\n\n isMobile = window.innerWidth <= 767;\n\n render () {\n const {\n autocurated, itemsSwappedCount, productDescriptors, requestsFetched, timeLeft, shippingAddress, isPremadeSet,\n isPremadeSetSignup, match, premadeSetSoldOutSwapText, premadeSetSwapText, useModal, warehouseReducedCapacityText\n } = this.props;\n const {modalProductDescriptorId, productModalOpen, products} = this.state;\n const {[modalProductDescriptorId]: modalProductDescriptor} = products;\n\n return (\n \n {productDescriptors.length === 4 &&\n \n }\n
\n
\n
\n
\n {this.renderTitle(autocurated, isPremadeSet, isPremadeSetSignup, itemsSwappedCount, premadeSetSoldOutSwapText, premadeSetSwapText)}\n {this.isMobile && this.renderTimer(timeLeft) && !autocurated}\n {!autocurated && this.renderEditShippingInfo(shippingAddress)}\n {!autocurated && this.renderSwapHeader(itemsSwappedCount)}\n
\n {!this.isMobile && this.renderTimer(timeLeft) && !autocurated}\n
\n
\n {this.isMobile && this.renderSwapButtons()}\n {autocurated && this.isMobile\n ?
\n {productDescriptors.map(productDescriptor =>\n )}\n
\n : \n }\n {!this.isMobile &&
\n {productDescriptors.map(productDescriptor =>\n )}\n
}\n {!this.isMobile && this.renderSwapButtons()}\n {\n warehouseReducedCapacityText &&\n
\n {warehouseReducedCapacityText}\n
\n }\n {useModal && modalProductDescriptor &&\n }\n
\n
\n );\n }\n}\n\nconst mapStateToProps = store => ({\"productToSwapOut\": store.productToSwapOut || {}});\nexport default connect(mapStateToProps, {\n hideError,\n updateProductBeingSwapped\n})(withRouter(StartSwap));\n","/* eslint-disable max-lines */\nimport * as React from \"react\";\nimport Alert from \"./Alert\";\nimport AnalyticsHelper from \"../../../shared/modules/AnalyticsHelper\";\nimport EventsAPI from \"../../../shared/modules/EventsAPI\";\nimport Helper from \"../../../shared/modules/Helper\";\nimport NavBar from \"./NavBar\";\nimport OnboardingModal from \"./OnboardingModal\";\nimport PropTypes from \"prop-types\";\nimport {Route} from \"react-router-dom\";\nimport ScrollToTop from \"../../../shared/components/ScrollToTop\";\nimport SelectSwap from \"./SelectSwap\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\nimport StartSwap from \"./StartSwap\";\nimport VetoAPI from \"../modules/VetoAPI\";\nimport {sendCompletedSwapEvent} from \"../../../shared/modules/PreviewAndSwapEventsHelper\";\n\nexport default class Swap extends React.Component {\n\n static propTypes = {\n \"addWishListRequest\": PropTypes.func.isRequired,\n \"analyticsProps\": PropTypes.object.isRequired,\n \"autocurated\": PropTypes.bool.isRequired,\n \"bannerClass\": PropTypes.string,\n \"bannerUrl\": PropTypes.string,\n \"categories\": PropTypes.array.isRequired,\n \"collectFilters\": PropTypes.func.isRequired,\n \"customerFirstName\": PropTypes.string.isRequired,\n \"customerId\": PropTypes.string.isRequired,\n \"customerRequests\": PropTypes.object.isRequired,\n \"customerState\": PropTypes.string,\n \"eligibleForFineJewelry\": PropTypes.bool.isRequired,\n \"fetchNewProps\": PropTypes.func.isRequired,\n \"fetchPDPrices\": PropTypes.func.isRequired,\n \"filters\": PropTypes.array.isRequired,\n \"fulfillWishListRequest\": PropTypes.func.isRequired,\n \"hideError\": PropTypes.func.isRequired,\n \"history\": PropTypes.shape({\"push\": PropTypes.func.isRequired}).isRequired,\n \"isFirstBox\": PropTypes.bool.isRequired,\n \"isPremadeSet\": PropTypes.bool.isRequired,\n \"isPremadeSetSignup\": PropTypes.bool.isRequired,\n \"lastScrollPosition\": PropTypes.number,\n \"lessThanOneDayOld\": PropTypes.bool,\n \"location\": PropTypes.object.isRequired,\n \"offset\": PropTypes.number.isRequired,\n \"params\": PropTypes.object.isRequired,\n \"pdPrices\": PropTypes.object.isRequired,\n \"preVetoProducts\": PropTypes.array.isRequired,\n \"premadeSetSoldOutSwapText\": PropTypes.string,\n \"premadeSetSwapText\": PropTypes.string,\n \"productPanelClass\": PropTypes.string,\n \"productToSwapOut\": PropTypes.object,\n \"propsCache\": PropTypes.object.isRequired,\n \"removeWishListRequest\": PropTypes.func.isRequired,\n \"renderProductPage\": PropTypes.func.isRequired,\n \"requestsFetched\": PropTypes.bool.isRequired,\n \"requestsNeeded\": PropTypes.number.isRequired,\n \"rewardsTier\": PropTypes.string.isRequired,\n \"scrollPosition\": PropTypes.number,\n \"selectedFilters\": PropTypes.array,\n \"shipment\": PropTypes.shape({\n \"productDescriptors\": SharedPropTypes.productDescriptors.isRequired,\n \"shipmentId\": PropTypes.number.isRequired\n }).isRequired,\n \"showClearancePrice\": PropTypes.bool,\n \"showComingSoon\": PropTypes.bool,\n \"showError\": PropTypes.func.isRequired,\n \"showPriceRangeFilters\": PropTypes.bool,\n \"showProductName\": PropTypes.bool,\n \"showPromoFilters\": PropTypes.bool,\n \"showRetailPrice\": PropTypes.bool,\n \"showTags\": PropTypes.bool,\n \"showTrendFilters\": PropTypes.bool,\n \"showWishlistStars\": PropTypes.bool,\n \"sorts\": PropTypes.array.isRequired,\n \"stickyFilter\": PropTypes.object,\n \"timeLeft\": PropTypes.number.isRequired,\n \"updateLastScrollPosition\": PropTypes.func.isRequired,\n \"updateProductBeingSwapped\": PropTypes.func.isRequired,\n \"updateState\": PropTypes.func.isRequired,\n \"useModal\": PropTypes.bool,\n \"warehouseReducedCapacityText\": PropTypes.string\n };\n\n static defaultProps = {\n \"bannerClass\": \"wish-list-leader-panel\",\n \"bannerUrl\": null,\n \"customerRequests\": {},\n \"customerState\": \"\",\n \"lastScrollPosition\": 0,\n \"lessThanOneDayOld\": false,\n \"offset\": 36,\n \"pdPrices\": {},\n \"premadeSetSoldOutSwapText\": \"\",\n \"premadeSetSwapText\": \"\",\n \"productPanelClass\": \"\",\n \"productToSwapOut\": null,\n \"scrollPosition\": 0,\n \"selectedFilters\": [],\n \"showClearancePrice\": false,\n \"showComingSoon\": false,\n \"showPriceRangeFilters\": false,\n \"showProductName\": false,\n \"showPromoFilters\": false,\n \"showRetailPrice\": false,\n \"showTags\": false,\n \"showTrendFilters\": false,\n \"showWishlistStars\": false,\n \"stickyFilter\": {},\n \"useModal\": false,\n \"warehouseReducedCapacityText\": \"\"\n };\n\n constructor (props) {\n super(props);\n const {\"shipment\": {productDescriptors}, preVetoProducts} = props;\n\n this.history = this.props.history; // eslint-disable-line\n this.state = {\n \"activePromo\": null,\n \"itemsSwappedCount\": Helper.countItemsSwapped(preVetoProducts, productDescriptors),\n \"kindFilter\": \"All\",\n \"loadingSwappableProducts\": true,\n \"openOnboardingModal\": false,\n productDescriptors,\n \"shippingAddress\": {},\n \"text\": \"\"\n };\n }\n\n componentDidMount () {\n // eslint-disable-next-line no-shadow\n const {customerId, \"shipment\": {productDescriptors}, updateProductBeingSwapped} = this.props;\n // Fetch prices for PDs shown on current page first. Otherwise there is too long of a delay.\n this.fetchWishlistPrices(productDescriptors);\n updateProductBeingSwapped(productDescriptors[0]);\n VetoAPI.fetchShipmentAddress(customerId).done((data) => {\n const {\"shipping_address\": shippingAddress} = data;\n this.setState({shippingAddress});\n }).fail(error => this.handleErrors(error.responseJSON, error.status));\n this.fireBecameMemberEvent();\n }\n\n fetchWishlistPrices = (pids) => {\n const {\n fetchPDPrices, // eslint-disable-line no-shadow\n pdPrices\n } = this.props;\n const needPricePids = pids.map(productdesc => productdesc.id).filter(pid => !pdPrices || !pdPrices[pid]);\n\n if (needPricePids.length > 0) {\n fetchPDPrices(needPricePids, true);\n }\n }\n\n doSwap = (swapIn, note, successCallback, failCallback) => { // eslint-disable-line\n swapIn.swapped = true;\n const {\n customerId,\n \"shipment\": {shipmentId},\n preVetoProducts,\n productToSwapOut,\n shipment\n } = this.props;\n\n if (productToSwapOut.designerName === \"Stylist's Choice\" &&\n swapIn.designerName === \"Stylist's Choice\") {\n productToSwapOut.swapped = true;\n this.setState((prevState) => {\n const {productDescriptors} = prevState;\n const updatedProductDescriptors = productDescriptors.map(productDescriptor =>\n (productDescriptor.id === productToSwapOut.id\n ? productToSwapOut\n : productDescriptor));\n\n return {\"productDescriptors\": updatedProductDescriptors};\n });\n\n successCallback(); // eslint-disable-line\n window.scrollTo(0, 0);\n return;\n }\n\n return VetoAPI.swapProductDescriptors( // eslint-disable-line\n customerId,\n shipmentId,\n productToSwapOut.id,\n swapIn.id,\n shipment.productDescriptors.length\n ).done(() => {\n this.setState((prevState) => {\n const {productDescriptors} = prevState;\n const updatedProductDescriptors = productDescriptors.map(productDescriptor =>\n (productDescriptor.id === productToSwapOut.id\n ? swapIn\n : productDescriptor));\n // eslint-disable-next-line sort-vars\n const itemsSwappedCount = Helper.countItemsSwapped(preVetoProducts, updatedProductDescriptors);\n EventsAPI.trackCustomerEvent(\"swapped_product\", `swapping in ${swapIn.id} for ${productToSwapOut.id}`);\n return {\n itemsSwappedCount,\n \"productDescriptors\": updatedProductDescriptors\n };\n }, () => {\n const {productDescriptors} = this.state;\n while (productDescriptors.length < 3) {\n productDescriptors.push({\n \"designerName\": \"Stylist's Choice\",\n \"id\": productDescriptors.length * -0.1,\n \"imageUrl\": \"https://karat-herokuapp-com.freetls.fastly.net/s3media/site/veto-swap/stylist-box.svg\",\n \"isStylistChoice\": true,\n \"name\": \"\"\n });\n }\n this.setState({productDescriptors});\n successCallback(); // eslint-disable-line\n window.scrollTo(0, 0);\n });\n }).fail((error) => {\n this.handleSwapFailure(productToSwapOut.id);\n if (failCallback) {\n failCallback();\n }\n this.handleSwapError(error, productToSwapOut);\n });\n };\n\n handleSwapFailure = (swapInId) => {\n const {\n customerId,\n \"shipment\": {shipmentId}\n } = this.props;\n const productToSwapOutId = 0;\n\n const {productDescriptors} = this.state;\n\n return VetoAPI.swapProductDescriptors(\n customerId,\n shipmentId,\n productToSwapOutId,\n swapInId,\n productDescriptors.length\n );\n };\n\n handleSwapError = (error, productDescriptor) => {\n const {updateProductBeingSwapped} = this.props;\n this.setState((prevState) => {\n const {productDescriptors} = prevState;\n return {productDescriptors};\n });\n updateProductBeingSwapped(productDescriptor);\n this.handleErrors(error.responseJSON, error.status);\n }\n\n handleCancelSwap = () => {\n this.history.push(\"/account/preview_next_set/select\");\n window.scrollTo(0, 0);\n };\n\n handleStartSwap = () => {\n this.history.push(\"/account/preview_next_set/select\");\n window.scrollTo(0, 0);\n };\n\n handleSelectSwap = (swapIn, note, successCallback, failCallback) => { // eslint-disable-line\n this.doSwap(swapIn, null, successCallback, failCallback);\n };\n\n handleFilterChange = (kindName) => {\n this.setState({\"kindFilter\": kindName});\n };\n\n handleFinishSwap = () => {\n const {\n customerId,\n showError,\n \"shipment\": {shipmentId},\n shipment\n } = this.props;\n\n const productCount = shipment.productDescriptors.length;\n const {productDescriptors} = this.state;\n\n sendCompletedSwapEvent(window.location.pathname);\n\n VetoAPI.finishVeto(customerId, shipmentId, productDescriptors, productCount).done(() => {\n if (VetoAPI.needsAnotherProductDescriptor(productDescriptors, productCount)) {\n showError(\"There was an issue with one or more of your pieces. Please click the \\\"Start Swap\\\" button and \" +\n \"select a piece to replace the \\\"Stylist's Choice\\\" piece.\");\n window.scrollTo(0, 0);\n } else {\n setTimeout(() => {\n this.redirectToWishlistPage();\n }, 14000);\n this.openOnboardingModal();\n }\n }).fail(error => this.handleErrors(error.responseJSON, error.status));\n };\n\n redirectToWishlistPage = () => {\n const {autocurated} = this.props;\n if (autocurated) {\n window.location = \"/jewelry?from_signup=true&first_box=true&approved_set=true\";\n } else {\n window.location = \"/jewelry?veto_complete=true&approved_set=true\";\n }\n }\n\n openOnboardingModal = () => {\n this.setState({\"openOnboardingModal\": true});\n }\n\n hideOnboardingModal = () => {\n this.setState({\"openOnboardingModal\": false});\n }\n\n handleErrors = (error, status) => { // eslint-disable-line\n const {showError} = this.props;\n const errorCode = error && error.error_code\n ? error.error_code\n : null;\n\n if (errorCode === \"not_in_veto_period\") {\n window.location = \"/\";\n } else if (errorCode === \"curation\") {\n showError(\"Sorry, the item you tried to swap is no longer available. \" +\n \"Please try swapping something else!\");\n } else {\n showError(\"An error has occurred. Please try again later.\");\n }\n };\n\n fireBecameMemberEvent = () => {\n const {\n autocurated,\n analyticsProps\n } = this.props;\n const {customerId} = analyticsProps;\n\n if (autocurated) {\n AnalyticsHelper.sendBecameMemberFrontendAndSubscribeEvent(customerId, analyticsProps);\n }\n };\n\n handleClearError = () => {\n const {hideError} = this.props;\n hideError();\n }\n\n handleClearPromo = () => this.setState({\"activePromo\": null});\n\n clearStylistsChoiceError = (text) => {\n if (text === \"There was an issue with one or more of your pieces. Please click the \\\"Start Swap\\\" button and \" +\n \"select a piece to replace the \\\"Stylist's Choice\\\" piece.\") {\n this.handleClearError();\n }\n };\n\n renderSelectSwap = () => {\n const {\n addWishListRequest,\n categories,\n collectFilters,\n customerState,\n fetchNewProps,\n filters,\n fulfillWishListRequest,\n eligibleForFineJewelry,\n lastScrollPosition,\n params,\n productPanelClass,\n propsCache,\n removeWishListRequest,\n requestsFetched,\n requestsNeeded,\n rewardsTier,\n showClearancePrice,\n showComingSoon,\n showProductName,\n showPriceRangeFilters,\n showPromoFilters,\n showRetailPrice,\n showTags,\n showTrendFilters,\n showWishlistStars,\n sorts,\n stickyFilter,\n updateState,\n updateLastScrollPosition,\n useModal\n } = this.props;\n const {\n activePromo, lazyLoadingNow, loadingSwappableProducts, openOnboardingModal,\n productDescriptors, kindFilter, text\n } = this.state;\n\n this.clearStylistsChoiceError(text);\n\n return (\n \n \n \n \n );\n };\n\n isFirstBox = () => {\n const {isFirstBox} = this.props;\n if (isFirstBox) {\n const path = window.location.href;\n const url = new URL(path);\n if (!path.includes(\"from_signup\")) {\n const params = new URLSearchParams(url.search.slice(1));\n params.set(\"from_signup\", true);\n window.history.replaceState({}, \"\", `/account/preview_next_set?${params}`);\n }\n }\n }\n\n renderStartSwap = () => {\n const {\n autocurated,\n customerFirstName,\n isPremadeSet,\n isPremadeSetSignup,\n premadeSetSoldOutSwapText,\n premadeSetSwapText,\n timeLeft,\n requestsFetched,\n preVetoProducts,\n updateState,\n warehouseReducedCapacityText\n } = this.props;\n const {productDescriptors, shippingAddress, itemsSwappedCount, openOnboardingModal} = this.state;\n\n return (\n \n {this.isFirstBox()}\n
\n \n \n
\n
\n );\n };\n\n renderAlert = () => {\n const {activePromo, text} = this.state;\n const {\"location\": {pathname}} = this.props;\n const shouldShowPromoBanner = pathname === \"/account/preview_next_set/swap\" && activePromo;\n\n return (\n \n
\n \n {shouldShowPromoBanner &&\n }\n
\n
\n );\n };\n\n render () {\n const {renderProductPage} = this.props;\n const isMobile = window.innerWidth <= 767;\n\n return (\n
\n \n {isMobile && this.renderAlert()}\n \n \n {!isMobile && this.renderAlert()}\n \n \n \n
\n );\n }\n}\n","import {fetchPDPrices, hideError, showError, updateProductBeingSwapped} from \"../../../actions/index\";\nimport React from \"react\";\nimport Swap from \"../components/Swap\";\nimport {connect} from \"react-redux\";\nimport {withRouter} from \"react-router-dom\";\n\nconst SwapContainer = props => ;\n\nconst mapStateToProps = state => (\n {\n \"pdPrices\": state.pdPrices,\n \"productToSwapOut\": state.productToSwapOut,\n \"warehouseReducedCapacityText\": state.warehouseReducedCapacityText\n }\n);\n\nexport default withRouter(connect(mapStateToProps, {\n fetchPDPrices,\n hideError,\n showError,\n updateProductBeingSwapped\n})(SwapContainer));\n","import * as React from \"react\";\nimport {BrowserRouter} from \"react-router-dom\";\nimport PropTypes from \"prop-types\";\nimport SwapContainer from \"../containers/SwapContainer\";\nimport VetoAPI from \"../modules/VetoAPI\";\nimport VetoHelper from \"../modules/VetoHelper\";\nimport _filter from \"lodash/filter\";\nimport {requestsNeededTotal} from \"../../../lib/CONSTANTS\";\n\nexport default class SwapInit extends React.PureComponent {\n\n static propTypes = {\n \"addWishListRequest\": PropTypes.func.isRequired,\n \"analyticsProps\": PropTypes.object.isRequired,\n \"apiToken\": PropTypes.string.isRequired,\n \"autocurated\": PropTypes.bool.isRequired,\n \"bannerClass\": PropTypes.string,\n \"bannerUrl\": PropTypes.string,\n \"categories\": PropTypes.array.isRequired,\n \"collectFilters\": PropTypes.func.isRequired,\n \"customerFirstName\": PropTypes.string.isRequired,\n \"customerId\": PropTypes.string.isRequired,\n \"customerRequests\": PropTypes.object.isRequired,\n \"customerState\": PropTypes.string,\n \"eligibleForFineJewelry\": PropTypes.bool.isRequired,\n \"fetchNewProps\": PropTypes.func.isRequired,\n \"filters\": PropTypes.array.isRequired,\n \"fulfillWishListRequest\": PropTypes.func.isRequired,\n \"isFirstBox\": PropTypes.bool.isRequired,\n \"isPremadeSet\": PropTypes.bool.isRequired,\n \"isPremadeSetSignup\": PropTypes.bool.isRequired,\n \"lastScrollPosition\": PropTypes.number,\n \"lessThanOneDayOld\": PropTypes.bool,\n \"offset\": PropTypes.number.isRequired,\n \"params\": PropTypes.object.isRequired,\n \"pdPrices\": PropTypes.object.isRequired,\n \"premadeSetSoldOutSwapText\": PropTypes.string,\n \"premadeSetSwapText\": PropTypes.string,\n \"productPanelClass\": PropTypes.string,\n \"propsCache\": PropTypes.object.isRequired,\n \"removeWishListRequest\": PropTypes.func.isRequired,\n \"renderProductPage\": PropTypes.func.isRequired,\n \"requestsFetched\": PropTypes.bool.isRequired,\n \"rewardsTier\": PropTypes.string.isRequired,\n \"scrollPosition\": PropTypes.number,\n \"selectedFilters\": PropTypes.array,\n \"showClearancePrice\": PropTypes.bool,\n \"showComingSoon\": PropTypes.bool,\n \"showPriceRangeFilters\": PropTypes.bool,\n \"showProductName\": PropTypes.bool,\n \"showPromoFilters\": PropTypes.bool,\n \"showRetailPrice\": PropTypes.bool,\n \"showTags\": PropTypes.bool,\n \"showTrendFilters\": PropTypes.bool,\n \"showWishlistStars\": PropTypes.bool,\n \"sorts\": PropTypes.array.isRequired,\n \"stickyFilter\": PropTypes.object,\n \"updateLastScrollPosition\": PropTypes.func.isRequired,\n \"updateState\": PropTypes.func.isRequired,\n \"useModal\": PropTypes.bool\n };\n\n static defaultProps = {\n \"bannerClass\": \"wish-list-leader-panel\",\n \"bannerUrl\": null,\n \"customerRequests\": {},\n \"customerState\": \"\",\n \"lastScrollPosition\": 0,\n \"lessThanOneDayOld\": false,\n \"offset\": 36,\n \"pdPrices\": {},\n \"premadeSetSoldOutSwapText\": \"\",\n \"premadeSetSwapText\": \"\",\n \"productPanelClass\": \"\",\n \"rewardsTier\": null,\n \"scrollPosition\": 0,\n \"selectedFilters\": [],\n \"showClearancePrice\": false,\n \"showComingSoon\": false,\n \"showPriceRangeFilters\": false,\n \"showProductName\": false,\n \"showPromoFilters\": false,\n \"showRetailPrice\": false,\n \"showTags\": false,\n \"showTrendFilters\": false,\n \"showWishlistStars\": false,\n \"stickyFilter\": {},\n \"useModal\": false\n };\n\n constructor (props) {\n super(props);\n\n this.state = {};\n }\n\n componentDidMount () {\n const {apiToken, shipmentData} = this.props, // eslint-disable-line\n {\n \"id\": shipmentId,\n \"products\": [...products],\n \"veto_period_expires_at\": timeLeft\n } = shipmentData,\n preVetoProducts = shipmentData.pre_veto_product_descriptor_ids,\n productDescriptors = VetoHelper.mapProducts(products),\n shipment = {\n productDescriptors,\n shipmentId\n };\n\n VetoAPI.setApiToken(apiToken);\n\n for (let count = productDescriptors.length; count < 3; count += 1) {\n shipment.productDescriptors.push({\n \"designerName\": \"Stylist's Choice\",\n \"id\": count * -0.1,\n \"imageUrl\": \"https://karat-herokuapp-com.freetls.fastly.net/s3media/site/veto-swap/stylist-box.svg\",\n \"isStylistChoice\": true,\n \"name\": \"\"\n });\n }\n\n this.setState({ // eslint-disable-line\n preVetoProducts,\n shipment,\n timeLeft\n });\n }\n\n isMobile = window.innerWidth <= 767;\n\n render () {\n const {\n addWishListRequest,\n analyticsProps,\n autocurated,\n categories,\n collectFilters,\n customerFirstName,\n customerId,\n customerState,\n customerRequests,\n eligibleForFineJewelry,\n fetchNewProps,\n filters,\n fulfillWishListRequest,\n isFirstBox,\n isPremadeSet,\n isPremadeSetSignup,\n params,\n premadeSetSoldOutSwapText,\n premadeSetSwapText,\n productPanelClass,\n propsCache,\n removeWishListRequest,\n renderProductPage,\n requestsFetched,\n rewardsTier,\n showClearancePrice,\n showComingSoon,\n showProductName,\n showPriceRangeFilters,\n showPromoFilters,\n showRetailPrice,\n showTags,\n showTrendFilters,\n showWishlistStars,\n sorts,\n stickyFilter,\n updateState,\n updateLastScrollPosition,\n useModal\n } = this.props;\n const {filtering, lazyLoadingNow, timeLeft, shipment, preVetoProducts} = this.state;\n const requestsNeeded = requestsFetched\n ? requestsNeededTotal - _filter(customerRequests, req => req.statuses.includes(\"pending\")).length\n : 0;\n\n return (\n \n {shipment && timeLeft &&\n \n }\n \n );\n }\n}\n","/* eslint-disable max-len, max-params, sort-keys */\n\nexport default class VetoAPI {\n static API_TOKEN = null;\n\n static API_VERSION = 1;\n\n static setApiToken (apiToken) {\n this.API_TOKEN = apiToken;\n }\n\n static fetchShipments (customerId, limit) {\n return $.ajax({\n \"method\": \"GET\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}/shipments?limit=${limit || 100}`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static fetchShipment (customerId, shipmentId) {\n return $.ajax({\n \"method\": \"GET\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}/shipments/${shipmentId}`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static fetchVetoProducts (customerId) {\n return $.ajax({\n \"method\": \"GET\",\n \"url\": `/api/v${this.API_VERSION}/products?list=veto&customer_id=${customerId}`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static removeProductDescriptorFromShipment (customerId, shipmentId, productDescriptorId) {\n return $.ajax({\n \"method\": \"DELETE\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}/shipments/${shipmentId}/products/${productDescriptorId}`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static fetchVeto (offset, endpoint = \"/account/preview\", filters = {}, count = 36, force = false) {\n return $.ajax({\n \"method\": \"GET\",\n \"url\": `${endpoint}/paginate`,\n \"data\": {\n count,\n filters,\n offset,\n force\n }\n });\n }\n\n static addProductDescriptorToShipment (customerId, shipmentId, productDescriptorId, productCount) {\n return $.ajax({\n \"method\": \"POST\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}/shipments/${shipmentId}/products`,\n \"data\": {\n \"id\": productDescriptorId,\n \"product_count\": productCount\n },\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static needsAnotherProductDescriptor (productDescriptors, productCount) {\n return productDescriptors.length !== productCount || productDescriptors.find(pd => pd.designerName === \"Stylist's Choice\") != null // eslint-disable-line\n }\n\n static finishVeto (customerId, shipmentId, productDescriptors, productCount) {\n if (VetoAPI.needsAnotherProductDescriptor(productDescriptors, productCount)) {\n return VetoAPI.fetchShipment(customerId, shipmentId);\n }\n return $.ajax({\n \"method\": \"PATCH\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}/shipments/${shipmentId}?veto_complete=true`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n\n static fetchLastShipment (customerId) {\n return VetoAPI.fetchShipments(customerId, 1).then((data) => {\n const lastShipmentId = data.shipments[0].id;\n return VetoAPI.fetchShipment(customerId, lastShipmentId).then(shipmentData => shipmentData.shipment);\n });\n }\n\n static swapProductDescriptors (customerId, shipmentId, swapOutId, swapInId, productCount) {\n if (swapInId <= 0 && swapOutId > 0) {\n return VetoAPI.removeProductDescriptorFromShipment(customerId, shipmentId, swapOutId);\n } else if (swapInId > 0 && swapOutId <= 0) {\n return VetoAPI.addProductDescriptorToShipment(customerId, shipmentId, swapInId, productCount);\n }\n return VetoAPI.removeProductDescriptorFromShipment(customerId, shipmentId, swapOutId).then(() => VetoAPI.addProductDescriptorToShipment(customerId, shipmentId, swapInId, productCount));\n }\n\n static fetchShipmentAddress (customerId) {\n return $.ajax({\n \"method\": \"GET\",\n \"url\": `/api/v${this.API_VERSION}/customers/${customerId}`,\n \"headers\": {\"Authorization\": `Token token=${this.API_TOKEN}`}\n });\n }\n}\n","import * as React from \"react\";\nimport PropTypes from \"prop-types\";\n\nexport default class PageBanner extends React.PureComponent {\n\n static propTypes = {\n \"classes\": PropTypes.string,\n \"dataTestAttribute\": PropTypes.string,\n \"desc\": PropTypes.string.isRequired,\n \"title\": PropTypes.string.isRequired\n };\n\n static defaultProps = {\n \"classes\": \"\",\n \"dataTestAttribute\": \"\"\n };\n\n render () {\n const {classes, dataTestAttribute, title, desc} = this.props;\n\n return (\n \n
\n
\n
\n
\n {title}\n
\n
\n {desc}\n
\n
\n
\n
\n
\n );\n }\n}\n","import * as React from \"react\";\nimport OwlCarousel from \"react-owl-carousel\";\nimport ProductPanel from \"./ProductPanel\";\nimport PropTypes from \"prop-types\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\n\nexport default class ProductDescriptorsCarousel extends React.Component {\n\n static propTypes = {\n \"previewSwapping\": PropTypes.bool,\n \"productDescriptors\": SharedPropTypes.productDescriptors.isRequired\n };\n\n static defaultProps = {\"previewSwapping\": false};\n\n constructor (props) {\n super(props);\n\n this.state = {\"currentItem\": 0};\n this.carousel = React.createRef();\n this.isMobileScreen = document.body.clientWidth < 767;\n }\n\n componentDidMount () {\n this.configure();\n }\n\n shouldComponentUpdate (props, state) {\n const {currentItem} = this.state;\n return state.currentItem !== currentItem;\n }\n\n configure = () => {\n if (this.carousel.current) {\n this.carousel.current.to(0, 0);\n if ($(\".zoomBox\").length > 0) {\n $(\".zoomBox\").zoom();\n }\n }\n };\n\n render () {\n const {previewSwapping, productDescriptors} = this.props;\n\n return (\n
\n \n {productDescriptors.map(productDescriptor =>\n )}\n \n
\n );\n }\n}\n","/* eslint-disable react/jsx-closing-tag-location */\n/* eslint-disable react/jsx-closing-bracket-location */\n/* eslint-disable react/jsx-no-bind */\n/* eslint-disable consistent-return */\n/* eslint-disable complexity */\nimport PropTypes from \"prop-types\";\nimport React from \"react\";\nimport SharedPropTypes from \"../modules/SharedPropTypes\";\nimport {connect} from \"react-redux\";\n\nclass ProductPanel extends React.Component {\n\n static propTypes = {\n \"active\": PropTypes.bool,\n \"addWishListRequest\": PropTypes.func,\n \"autocurated\": PropTypes.bool,\n \"customerRequests\": PropTypes.object.isRequired,\n \"fromStartSwap\": PropTypes.bool,\n \"fromSwap\": PropTypes.bool,\n \"inShipment\": PropTypes.bool,\n \"onSelect\": PropTypes.func,\n \"pdPrices\": PropTypes.object,\n \"previewSwapping\": PropTypes.bool,\n \"productDescriptor\": SharedPropTypes.productDescriptor.isRequired,\n \"quickViewClickHandler\": PropTypes.func,\n \"removeWishListRequest\": PropTypes.func,\n \"requestsFetched\": PropTypes.bool,\n \"selecting\": PropTypes.bool,\n \"showWishlistStars\": PropTypes.bool\n };\n\n static defaultProps = {\n \"active\": false,\n \"addWishListRequest\": null,\n \"autocurated\": false,\n \"fromStartSwap\": false,\n \"fromSwap\": false,\n \"inShipment\": false,\n \"onSelect\": null,\n \"pdPrices\": {},\n \"previewSwapping\": false,\n // eslint-disable-next-line no-empty-function\n \"quickViewClickHandler\": () => {},\n \"removeWishListRequest\": null,\n \"requestsFetched\": false,\n \"selecting\": false,\n \"showWishlistStars\": false\n }\n\n constructor (props) {\n super(props);\n this.defaultImageUrl = \"/assets/roxy/veto_swap/fallback-image\";\n this.state = props;\n }\n\n handleImageError = () => {\n this.setState((prevState) => {\n const {\"productDescriptor\": pd} = prevState;\n if (pd.imageUrl === this.defaultImageUrl) {\n return {};\n }\n pd.imageUrl = this.defaultImageUrl;\n\n return {\"productDescriptor\": pd};\n });\n }\n\n handleQuickViewClick = () => {\n const {\"productDescriptor\": {id}} = this.state;\n const {quickViewClickHandler} = this.props;\n\n quickViewClickHandler(id);\n }\n\n handleImageClick = () => {\n const {productDescriptor} = this.state;\n const {fromStartSwap} = this.props;\n\n if (fromStartSwap) {\n this.handleQuickViewClick();\n } else {\n return productDescriptor.url ? () => window.open(productDescriptor.url, \"_blank\") : null;\n }\n }\n\n highlightMessage = (req) => {\n if (!req) {\n return;\n }\n\n if (req.statuses.includes(\"fulfilled\")) {\n return (\n \n From My Wishlist\n \n );\n } else if (req.prioritized) {\n return (\n \n Your top request\n \n );\n }\n\n return (\n \n On your Wish List\n \n );\n }\n\n render () {\n const {productDescriptor} = this.state;\n const cursor = {\"cursor\": \"pointer\"};\n const {\n active, customerRequests, pdPrices, requestsFetched,\n fromSwap, selecting, onSelect, inShipment, previewSwapping\n } = this.props;\n const pdPrice = pdPrices && pdPrices[productDescriptor.id] ? pdPrices[productDescriptor.id] : {};\n const selected = {\n \"cursor\": \"pointer\",\n \"outline\": \"3px solid #ff6a3d\"\n };\n\n return (\n
\n {previewSwapping && this.highlightMessage(customerRequests[productDescriptor.id]) &&\n \n {this.highlightMessage(customerRequests[productDescriptor.id])}\n \n }\n {selecting\n ? \n \n
\n : \n \n
}\n {requestsFetched && !fromSwap && !selecting &&\n

\n {this.highlightMessage(customerRequests[productDescriptor.id])}\n

\n }\n {productDescriptor.isStylistChoice && !selecting &&\n

\n Surprise me!\n

\n }\n {productDescriptor.ringSize && fromSwap && !selecting &&\n
\n Size: \n {productDescriptor.ringSize}\n
\n }\n {!selecting &&\n

\n {productDescriptor.designerName}\n

\n }\n {productDescriptor.groupName && !selecting &&\n

\n {productDescriptor.groupName}\n

\n }\n {productDescriptor.description &&\n

\n {productDescriptor.description.replace(/ in .+$/, \"\")}\n

\n }\n {!selecting && !productDescriptor.isStylistChoice &&\n

\n \n member\n {\" \"}\n {pdPrice.member_price}\n \n {pdPrice.retail_price && !selecting &&\n pdPrice.retail_price !== pdPrice.member_price &&\n \n {pdPrice.retail_price}\n \n }\n

\n }\n {productDescriptor.ringSize && !fromSwap && !selecting &&\n \n Size: \n {productDescriptor.ringSize}\n \n }\n {!productDescriptor.ringSize && !fromSwap && !selecting &&\n \n  \n \n }\n {inShipment &&\n \n }\n \n );\n }\n}\n\nconst mapStoreToProps = store =>\n ({\n \"customerRequests\": store.customerRequests || {},\n \"pdPrices\": store.pdPrices\n });\n\nexport default connect(mapStoreToProps)(ProductPanel);\n","import PropTypes from \"prop-types\";\n\nconst SharedPropTypes = {\n \"productDescriptor\": PropTypes.shape({\n \"description\": PropTypes.string,\n \"designerName\": PropTypes.string.isRequired,\n \"highlight\": PropTypes.string,\n \"id\": PropTypes.number.isRequired,\n \"imageUrl\": PropTypes.string.isRequired,\n \"isStylistChoice\": PropTypes.bool,\n \"memberPrice\": PropTypes.string,\n \"name\": PropTypes.string.isRequired,\n \"retailPrice\": PropTypes.string,\n \"ringSize\": PropTypes.string\n })\n};\n\nSharedPropTypes.productDescriptors = PropTypes.arrayOf(SharedPropTypes.productDescriptor);\n\nexport {SharedPropTypes};\nexport default SharedPropTypes;\n"],"names":["getDisplayError","state","error","displayError","getErrorMessage","errorMessage","Alert","_React$Component","_inherits","_super","_createSuper","_this","_classCallCheck","_len","arguments","length","args","Array","_key","call","apply","concat","_defineProperty","_assertThisInitialized","onClearError","props","_createClass","key","value","_this$props","this","text","React","className","href","onClick","handleClick","PropTypes","isRequired","connect","ExitIntentButton","_ref","handleShowExitIntentModal","propTypes","ExitIntentModal","Modal","id","onHide","show","type","window","location","alt","src","_useState","useState","_useState2","_slicedToArray","showExitIntentModal","setShowExitIntentModal","prev","isMobile","pathname","Link","to","RocksboxLogo","OnboardingModal","_React$PureComponent","innerWidth","_this$state","desktopBackgroundImages","displayedTexts","index","mobileBackgroundImages","modalTexts","setState","modal","document","querySelector","style","background","backgroundSize","backgroundColor","interval","imageCachePrefix","desktopImage","mobileImagePrefix","prevProps","open","close","_this$state2","completeLoadingImages","setInterval","start","clearInterval","setTimeout","_this$props2","map","idx","toString","ScrollToTop","scrollTo","children","withRouter","SwapModal","enabled","fulfillWishListRequest","onCloseAndSaveModal","productToSwapIn","swapAndUpdateProductPrices","fetchPDPrices","productDescriptorIds","productToSwapOut","swapOutIndex","indexOf","ringSize","_this$props3","onCloseModal","isActiveClass","closeButton","imageUrl","renderRingSize","handleConfirm","SharedPropTypes","productDescriptor","store","Helper","products","_productDescriptor$de","designerName","groupName","highlight","kindName","memberPrice","name","url","SelectSwap","fetchNewProps","productDescriptors","updateProductBeingSwapped","endpoint","getEndpoint","fetchVeto","isReady","onReady","didSetup","removeEventListener","onScroll","_this$props$params","action","controller","split","pop","includes","prodId","feed","addWishListRequest","hideError","VetoHelper","mapProducts","event","currentTarget","offset","updateLastScrollPosition","lazyLoadingNow","noMoreToLoad","$","scrollTop","height","newOffset","onFilter","force","undefined","_this$props4","collectFilters","setOffset","updateState","filters","Number","Date","EventsAPI","trackCustomerEvent","VetoAPI","then","response","latestRequest","prevState","setProductOrderingState","createProductObject","_objectSpread","wishlist","scrollPosition","_this$props5","_this$props5$params","forceScroll","_this$props6","onSelectSwap","resetModal","onCancelSwap","onFilterChange","product","activeIndex","showModal","lastScrollPosition","addEventListener","updateModalProductDescriptor","_toConsumableArray","productOrdering","callback","API","fetchProducts","cachedProps","propsCache","createdAt","now","wishlistCacheLifespan","_this2","_this$props7","categories","customerState","onFinishSwap","eligibleForFineJewelry","params","previewSwapping","productPanelClass","requestsFetched","requestsNeeded","removeWishListRequest","rewardsTier","showClearancePrice","showComingSoon","showPromoFilters","showRetailPrice","showTags","sorts","stickyFilter","useModal","filtering","isModalButtonEnabled","modalOpen","modalProductDescriptorId","note","productModalOpen","modalProductDescriptor","Helmet","ProductPanel","active","customerRequests","inShipment","onSelect","bind","quickViewClickHandler","selecting","FiltersContainer","doFilter","filter","showPriceRangeFilters","showTrendFilters","ProductDetailsModal","addWishListCallback","handleAddWishlist","isPreviewAndSwapExperiment","hideModal","removeWishListCallback","swapHandler","handleShowSwapModal","WishlistGrid","showProductName","showPromoPrice","showWishlistStars","handleConfirmSwapModal","handleCloseModal","pd","pdPrices","selectedFilters","EditShipment","shippingAddress","streetAddress","toTitleCase","FirstSwapNote","itemsSwappedCount","noteText","StartSwap","timeLeft","match","finishButton","swapButton","sendStartedSwapEvent","renderEditShippingInfo","isPremadeSet","isPremadeSetSignup","premadeSetSoldOutSwapText","premadeSetSwapText","autocurated","warehouseReducedCapacityText","PageBanner","classes","desc","title","renderTitle","renderTimer","renderSwapHeader","renderSwapButtons","fromStartSwap","fromSwap","ProductDescriptorsCarousel","displayStartSwapButton","startSwapUrl","Swap","pids","needPricePids","productdesc","pid","swapIn","successCallback","failCallback","swapped","customerId","shipmentId","preVetoProducts","shipment","swapProductDescriptors","done","updatedProductDescriptors","countItemsSwapped","push","fail","handleSwapFailure","handleSwapError","swapInId","handleErrors","responseJSON","status","history","doSwap","showError","productCount","sendCompletedSwapEvent","finishVeto","needsAnotherProductDescriptor","redirectToWishlistPage","openOnboardingModal","errorCode","error_code","analyticsProps","AnalyticsHelper","sendBecameMemberFrontendAndSubscribeEvent","handleClearError","activePromo","loadingSwappableProducts","kindFilter","clearStylistsChoiceError","handleCancelSwap","handleFilterChange","handleFinishSwap","handleSelectSwap","hideOnboardingModal","isFirstBox","path","URL","URLSearchParams","search","slice","set","replaceState","customerFirstName","onStartSwap","handleStartSwap","_this$state3","shouldShowPromoBanner","handleClearPromo","description","_this$props8","fetchWishlistPrices","fetchShipmentAddress","data","fireBecameMemberEvent","renderProductPage","NavBar","renderAlert","Route","exact","render","renderStartSwap","renderSelectSwap","SwapInit","apiToken","shipmentData","_toArray","pre_veto_product_descriptor_ids","setApiToken","count","requestsNeededTotal","_filter","req","statuses","BrowserRouter","SwapContainer","API_TOKEN","limit","ajax","API_VERSION","productDescriptorId","find","fetchShipment","fetchShipments","lastShipmentId","shipments","swapOutId","removeProductDescriptorFromShipment","addProductDescriptorToShipment","dataTestAttribute","carousel","current","zoom","isMobileScreen","body","clientWidth","configure","currentItem","OwlCarousel","dots","items","loadedClass","ref","defaultImageUrl","handleQuickViewClick","prioritized","pdPrice","highlightMessage","onError","handleImageError","handleImageClick","isStylistChoice","replace","member_price","retail_price"],"sourceRoot":""}