{"version":3,"file":"cart-ee128b4c.js","sources":["../../../client/src/javascripts/customer_pages/_cart/deletion-firmness.js","../../../client/src/javascripts/customer_pages/_libs/location-cookies.js","../../../client/src/javascripts/customer_pages/_cart/checkout-blockers.js","../../../client/src/javascripts/customer_pages/_cart/alternate-stores.js","../../../client/src/javascripts/customer_pages/_cart/server-actions.js","../../../client/src/javascripts/customer_pages/_cart/empty-cart.jsx","../../../client/src/javascripts/customer_pages/_cart/types/print-size-type.js","../../../client/src/javascripts/customer_pages/_cart/prints/prints-all-deleted.jsx","../../../client/src/javascripts/customer_pages/_cart/prints/prints-size-deleted.jsx","../../../client/src/javascripts/customer_pages/_cart/crop-warning.jsx","../../../client/src/javascripts/customer_pages/_cart/prints/summary.jsx","../../../client/src/javascripts/customer_pages/_utils/_delivery-options/delivery-options-form.jsx","../../../client/src/javascripts/customer_pages/_cart/delivery-options.jsx","../../../client/src/javascripts/customer_pages/_cart/prints/print-stack.jsx","../../../client/src/javascripts/customer_pages/_cart/out-of-stock-warning.jsx","../../../client/src/javascripts/customer_pages/_cart/prints/index.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-product-attribute.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-product-copy-in-progress-warning.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-product-incomplete-warning.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-product-out-of-stock-warning.jsx","../../../client/src/javascripts/customer_pages/_cart/confirmation-dialog.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-item.jsx","../../../client/src/javascripts/customer_pages/_cart/prism-item-deleted.jsx","../../../client/src/javascripts/customer_pages/_cart/prism.jsx","../../../client/src/javascripts/customer_pages/_cart/taxes-and-delivery-prompt.jsx","../../../client/src/javascripts/customer_pages/_cart/types/delivery-option-type.js","../../../client/src/javascripts/customer_pages/_cart/checkout-button.jsx","../../../client/src/javascripts/customer_pages/_cart/totalizer/login-button.jsx","../../../client/src/javascripts/customer_pages/_cart/totalizer/checkout-buttons.jsx","../../../client/src/javascripts/customer_pages/_cart/upsell-amount.jsx","../../../client/src/javascripts/customer_pages/_cart/totalizer/simple.jsx","../../../node_modules/lodash.isfunction/index.js","../../../node_modules/react-popper/lib/Manager.js","../../../node_modules/react-popper/lib/Target.js","../../../node_modules/popper.js/dist/esm/popper.js","../../../node_modules/react-popper/lib/Popper.js","../../../node_modules/react-popper/lib/Arrow.js","../../../node_modules/reactstrap/dist/reactstrap.es.js","../../../client/src/javascripts/customer_pages/_cart/zipcode-popover.jsx","../../../client/src/javascripts/customer_pages/_cart/totalizer/full.jsx","../../../client/src/javascripts/customer_pages/_cart/back-to-start-button.jsx","../../../client/src/javascripts/customer_pages/_cart/totalizer/index.jsx","../../../client/src/javascripts/customer_pages/_cart/delivery-option-adjustments.jsx","../../../client/src/javascripts/customer_pages/_cart/delivery-options-form-with-callback.jsx","../../../client/src/javascripts/customer_pages/_cart/disperate-delivery-options-modal.jsx","../../../client/src/javascripts/customer_pages/_cart/walmart-business/incomplete_wmb_account_message.jsx","../../../client/src/javascripts/customer_pages/_cart/cart.jsx"],"sourcesContent":["\nconst DeletionFirmness = {\n SOFT: 'deletion-firmness-soft',\n HARD: 'deletion-firmness-hard',\n};\n\nexport default DeletionFirmness;\n","import Cookies from 'js-cookie';\nimport genericHelpers from '../_utils/generic-helpers';\nimport Store from '../_utils/tools/store';\n\nconst shouldSaveCookies = Store.isWalmart();\n\nfunction setDeliveryLocation(url, zipCode) {\n if (![url, zipCode, shouldSaveCookies].every(Boolean)) {\n return;\n }\n\n // Cookies formats: https://redmine.livelink.io/issues/8719#note-7\n // DL; e.g. DL=94404%2Cempty%2Cempty%2Cuser%2C94404%2CUSA%2CCA\n genericHelpers.promisifiedXHR(url, 'GET', { zip_code: zipCode })\n .then((location) => {\n const value = encodeURIComponent([location.zipcode,\n location.latitude,\n location.longitude,\n 'user',\n location.zipcode,\n location.country,\n location.state].join());\n\n Cookies.set('DL', value, { domain: 'walmart.com', path: '/' });\n }).catch((error) => console.error(error));\n}\n\nfunction setNearestStores(locations) {\n if (!shouldSaveCookies) {\n return;\n }\n \n const value = locations.map((location) => `${location.id}.${Math.round(location.distance.miles)}`).join('-');\n\n Cookies.set('NSID', value, { domain: 'walmart.com', path: '/' });\n}\n\nexport default { setDeliveryLocation, setNearestStores };\n","const checkoutBlockers = {\n none: 0,\n itemsLimitExceeded: 1,\n missingAttributes: 2,\n disabledOptionsChosen: 3,\n disabled: 4,\n disabledTheme: 5,\n deliveryOptionNotSet: 6,\n incompatibleDeliveryTypes: 7,\n noPickupLocation: 8,\n crossSellItem: 9,\n unavailableItem: 10,\n cartUpdating: 11,\n wmbAccountRestricted: 12,\n};\n\nconst checkoutBlockerTexts = {\n [checkoutBlockers.noPickupLocation]:\n 'You are unable to check out without a delivery option set.',\n [checkoutBlockers.deliveryOptionNotSet]:\n 'You are unable to check out without a pick up location set.',\n [checkoutBlockers.incompatibleDeliveryTypes]:\n 'You are unable to check out an order containing both Collect in Warehouse and Home Delivery products. Please select the same delivery option for all items, or remove conflicting items and purchase separately.',\n};\n\nexport { checkoutBlockers, checkoutBlockerTexts };\n","const pickupStoreWithEverythingInStock = (locations) => {\n if(!locations) { return null; }\n\n const storesAndAvailabilityPerDelOpt = {};\n for (const location of locations) {\n if(!location.orderTimestamps) { continue };\n\n for (const [delOpt, itemTimestamps] of Object.entries(location.orderTimestamps)) {\n storesAndAvailabilityPerDelOpt[delOpt] || (storesAndAvailabilityPerDelOpt[delOpt] = {})\n\n for (const [_itemId, itemTimestamp] of Object.entries(itemTimestamps)) {\n if (storesAndAvailabilityPerDelOpt[delOpt][itemTimestamp.store_number] == false) {\n // store already known to have unavaiability, we need not care about it anymore\n continue\n }\n\n storesAndAvailabilityPerDelOpt[delOpt][itemTimestamp.store_number] = itemTimestamp.service_available;\n }\n }\n }\n\n const locationsPerDeliveryOption = {};\n for (const [delOpt, storesAndAvailability] of Object.entries(storesAndAvailabilityPerDelOpt)) {\n locationsPerDeliveryOption[delOpt] || (locationsPerDeliveryOption[delOpt] = []);\n\n for (const [storeNumber, availability] of Object.entries(storesAndAvailability)) {\n if(availability) {\n locationsPerDeliveryOption[delOpt].push(storeNumber);\n }\n }\n }\n\n const locationsWithEverythingInStock = Object.values(locationsPerDeliveryOption)\n .reduce((locations, newLocations, idx) => idx == 0 ? newLocations : newLocations.filter(store => locations.includes(store)), [])\n .map(id => locations.find(l => l.id == id))\n .sort(_locationDistanceSorter);\n\n return locationsWithEverythingInStock[0] || null;\n}\n\nconst _locationDistanceSorter = (a, b) => {\n const { distance: distanceA } = a || {},\n { distance: distanceB } = b || {},\n { miles: milesA } = distanceA || NaN,\n { miles: milesB } = distanceB || NaN;\n\n if(isNaN(milesA)) { return 1 };\n if(isNaN(milesB)) { return -1 };\n\n return milesA - milesB;\n}\n\nexport { pickupStoreWithEverythingInStock, _locationDistanceSorter };","import { observableEvent } from '../_utils/observable-event';\n\nasync function deleteOnServer({ url, redirect, ...params }) {\n const formData = buildFormData(params);\n\n const response = await fetch(url, {\n method: 'DELETE',\n body: formData,\n credentials: 'same-origin',\n });\n\n handleResponse(response, redirect);\n\n try {\n const data = await response.json();\n updateBasketQuantity(data.quantity);\n } catch (e) {}\n}\n\nasync function updateOnServer({ url, redirect, ...params }) {\n const formData = buildFormData(params);\n\n const response = await fetch(url, {\n method: 'PUT',\n body: formData,\n credentials: 'same-origin',\n });\n\n handleResponse(response, redirect);\n\n try {\n const data = await response.json();\n updateBasketQuantity(data.quantity);\n } catch (e) {}\n}\n\nfunction buildFormData(params) {\n const formData = new FormData();\n const permittedParams = [\n 'size',\n 'finish',\n 'prism_id',\n 'soft',\n 'item',\n 'quantity',\n 'option',\n ];\n\n Object.entries(params).forEach(([key, value]) => {\n if (permittedParams.includes(key)) {\n if (key === 'quantity') {\n formData.append('values[copies]', value);\n } else {\n formData.append(key, value);\n }\n }\n });\n\n return formData;\n}\n\nfunction updateBasketQuantity(quantity) {\n if (quantity != null) {\n App.order.set('no_items', quantity);\n }\n}\n\nfunction handleResponse(response, redirect) {\n if (!response.ok) {\n observableEvent.record('cart-server-action-fail', {\n status: response.status,\n url: response.url.replace(window.location.origin, ''),\n });\n\n if (response.status === 404) {\n window.location = redirect;\n }\n }\n}\n\nexport { updateOnServer, deleteOnServer };\n","import React from 'react';\nimport translate from '../_utils/tools/translate';\n\nexport default function EmptyCart({ children }) {\n return (\n
\n
\n
\n

\n Your photo {translate('cart')}: 0 items\n

\n

\n There are no items in your {translate('cart')}\n

\n
\n
\n
\n \n
\n );\n}\n","import PropTypes from 'prop-types';\n\nconst PrintSizeType = PropTypes.shape({\n size: PropTypes.string,\n title: PropTypes.string,\n finish: PropTypes.string,\n quantity: PropTypes.number,\n price: PropTypes.number,\n total_price: PropTypes.number,\n sku: PropTypes.string,\n partner_id: PropTypes.string,\n border: PropTypes.string,\n print_finish_key: PropTypes.string,\n});\n\nexport default PrintSizeType;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PrintSizeType from '../types/print-size-type';\nimport Pluralizer from '../pluralizer';\nimport { builderDispatch } from '../../_utils/ui';\nimport CartItemsChangeEvents from '../cart-items-change-events';\n\nconst PrintsAllDeleted = ({ deletedFinish, sizes }) => {\n const deletedSizes = sizes.filter(\n ({ print_finish_key }) => deletedFinish === print_finish_key\n );\n const niceFinishTitle = (deletedSizes[0] || {}).finish;\n const quantity = deletedSizes.reduce((memo, size) => memo + size.quantity, 0);\n\n return (\n
\n \n  been deleted. \n \n Undo\n \n
\n );\n\n function handleUndelete(e) {\n e.preventDefault();\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.UNREMOVE_PRINTS,\n finish: deletedFinish,\n });\n }\n};\n\nPrintsAllDeleted.propTypes = {\n deletedFinish: PropTypes.string.isRequired,\n sizes: PropTypes.arrayOf(PrintSizeType),\n};\n\nexport default PrintsAllDeleted;\n","import React from 'react';\nimport PrintSizeType from '../types/print-size-type';\nimport { builderDispatch } from '../../_utils/ui';\nimport CartItemsChangeEvents from '../cart-items-change-events';\n\nconst PrintsSizeDeleted = (size) => {\n const { title } = size;\n\n return (\n
\n {title} prints have been deleted. \n \n Undo\n \n
\n );\n\n function handleUndelete(e) {\n e.preventDefault();\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.UNREMOVE_PRINT,\n size: size,\n });\n }\n};\n\nPrintsSizeDeleted.propTypes = {\n sizes: PrintSizeType,\n};\nexport default PrintsSizeDeleted;\n","import React from 'react';\n\nconst CropWarning = () => {\n return (\n
\n \"Crop-Warning\"\n

Please make sure you are happy with the crop of your photos.

\n
\n );\n};\n\nexport default CropWarning;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PrintSizeType from '../types/print-size-type';\nimport { builderDispatch } from '../../_utils/ui';\nimport CartItemsChangeEvents from '../cart-items-change-events';\nimport Currency from '../../_utils/tools/currency';\nimport CropWarning from '../crop-warning';\nimport pluralize from '../../_utils/tools/pluralize';\nimport genericHelpers from '../../_utils/generic-helpers';\n\nconst Summary = ({ sizes, quantity }) => {\n const totalPrice = sizes =>\n sizes.reduce((memo, size) => memo + size.total_price, 0);\n\n const sizesGroupedByFinish = sizes.reduce((sizesByFinish, size) => {\n const finish = size.finish;\n const currentFinish = sizesByFinish[finish] || {};\n const currentFinishSizes = currentFinish.sizes || [];\n\n return {\n ...sizesByFinish,\n ...{\n [finish]: {\n redirectParam: finish,\n finishParam: size.print_finish_key,\n sizes: [...currentFinishSizes, size],\n },\n },\n };\n }, {});\n\n return (\n
\n
\n
\n
\n {`${quantity} ${pluralize('Print', quantity)}`}\n
\n
\n
\n

\n {Currency.format(totalPrice(sizes))}\n

\n
\n
\n \n
\n
\n {Object.entries(sizesGroupedByFinish).map(([sizeFinish, printSize]) => {\n return (\n
\n \n \n \n Size\n Finish\n Price\n Qty\n Total\n \n \n \n \n {printSize.sizes.map((size, i) => {\n const printSizeTitle = size.title.replace(/\\\"|\\s/g, '');\n\n return (\n \n \n {printSizeTitle + (size.print_border === \"yes\" ? \" Bordered\" : \"\")}\n \n \n {genericHelpers.capitalizeString(size.finish)}\n \n \n {Currency.format(size.price)}\n \n \n {size.quantity}\n \n \n {Currency.format(size.total_price)}\n \n \n \n Remove\n \n \n \n );\n })}\n \n \n \n \n \n \n \n \n {Currency.format(totalPrice(printSize.sizes))}\n \n \n \n \n \n

\n \n Edit\n \n handleDelete(e, printSize.finishParam)}>\n Remove all \n \n {sizeFinish} \n \n prints\n \n

\n
\n );\n })}\n
\n );\n\n function handleDelete(e, finish) {\n e.preventDefault();\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.REMOVE_PRINTS,\n finish: finish,\n });\n }\n\n function handleIndividualDelete(size) {\n return function(e) {\n e.preventDefault();\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.REMOVE_PRINT,\n size: size,\n });\n };\n }\n};\n\nSummary.propTypes = {\n quantity: PropTypes.number.isRequired,\n sizes: PropTypes.arrayOf(PrintSizeType),\n};\n\nexport default Summary;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\n// Import JSX modules\nimport DeliveryOptionIcon from './delivery-option-icon';\nimport CartItemsChangeEvents from '../../_cart/cart-items-change-events';\nimport { builderDispatch } from '../ui';\n\n// -----------------------------------------------------------\n// DeliveryOptionsForm\n// -----------------------------------------------------------\nclass DeliveryOptionsForm extends React.PureComponent {\n static propTypes = {\n hideIcon: PropTypes.bool,\n itemId: PropTypes.number,\n options: PropTypes.array.isRequired,\n selectedOption: PropTypes.number.isRequired,\n };\n\n render() {\n const { options, selectedOption, itemId = '', hideIcon } = this.props;\n\n return (\n
\n {\n options.map((option) => {\n const id = `delivery-option-${itemId}-${option.key}`;\n\n return (\n \n this.handleChange(option)} />\n \n \n \n \n );\n })\n }\n
\n );\n }\n\n handleChange({ key: optionId }) {\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.DELIVERY_OPTION_CHANGE,\n optionId,\n itemId: this.props.itemId\n });\n }\n};\n\nDeliveryOptionsForm.displayName = 'Delivery Options Form';\n\nexport default DeliveryOptionsForm;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport DeliveryOptionsForm from '../_utils/_delivery-options/delivery-options-form';\n\nconst DeliveryOptions = (\n { selectedOption, options, itemId },\n { showDeliveryOptionSelectorsWithinItems = true }\n) => {\n if (!showDeliveryOptionSelectorsWithinItems) {\n return null;\n }\n\n if (!options.length) {\n return (\n \n No delivery option is available for this item. Please{' '}\n delete this item to proceed.\n \n );\n }\n\n return (\n
\n \n
\n );\n};\n\nDeliveryOptions.propTypes = {\n selectedOption: PropTypes.number.isRequired,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.number,\n type: PropTypes.string,\n timescale: PropTypes.string,\n time_hours: PropTypes.number,\n title: PropTypes.string,\n analytics_id: PropTypes.string,\n code: PropTypes.string,\n })\n ).isRequired,\n};\n\nDeliveryOptions.contextTypes = {\n showDeliveryOptionSelectorsWithinItems: PropTypes.bool,\n};\n\nexport default DeliveryOptions;\n","import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport default function PrintStack({ thumbnail }) {\n return (\n
\n
\n
\n
\n \n
\n );\n}\n\nPrintStack.propTypes = {\n thumbnail: PropTypes.string.isRequired,\n};\n","'use strict';\n\nimport React from 'react';\nimport WarningMessage from '../_utils/warning-message';\n\nimport LocationFormatter from './location-formatter';\nimport genericHelpers from '../_utils/generic-helpers';\n\nconst OutOfStockWarning = ({ alternateStore, productMessage, setStoreToAlternate }) => {\n return (\n \n We're sorry: {productMessage}\n
\n { prompts() }\n
\n );\n\n function prompts() {\n if(!alternateStore) {\n return ['Please select a different store, or choose Home Delivery.']\n }\n\n let { name: storeName } = new LocationFormatter(alternateStore);\n const { distance: { miles: storeDistanceMiles } } = alternateStore;\n\n storeName = genericHelpers.capitalizeWordsInString(storeName);\n\n return [\n `Your closest store with availability is ${storeName}, ${storeDistanceMiles} miles away. `,\n \n Click to change to that location.\n \n ]\n }\n};\n\nOutOfStockWarning.displayName = 'OutOfStockWarning';\n\nexport default OutOfStockWarning;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport PrintSizeType from '../types/print-size-type';\nimport PrintsAllDeleted from './prints-all-deleted';\nimport PrintsSizeDeleted from './prints-size-deleted';\nimport Summary from './summary';\nimport SpinnerCover from '../../_utils/spinner-cover';\nimport deliveryOptionsCalculator from '../../_utils/_delivery-options/calculator';\nimport OrderContents from '../../_utils/_order-data/order-contents';\nimport DeliveryOptions from '../delivery-options';\nimport PrintStack from './print-stack';\nimport OutOfStockWarning from '../out-of-stock-warning';\nimport CartItemsChangeEvents from '../cart-items-change-events';\nimport { builderDispatch } from '../../_utils/ui';\n\nconst Prints = (props, { unavailableItems, selectedLocation }) => {\n const {\n sizes,\n deletedFinishes,\n delivery,\n delivery_options,\n updating,\n thumbnail,\n alternatePickupStore,\n } = props;\n\n const aliveSizes = sizes.filter(\n size => !size.deleted && !deletedFinishes.includes(size.print_finish_key)\n );\n const quantity = aliveSizes.reduce((memo, size) => memo + size.quantity, 0);\n const lastDeletedSize = sizes\n .filter(\n size => size.deleted && !deletedFinishes.includes(size.print_finish_key)\n )\n .sort((a, b) => b.deleted - a.deleted)[0];\n\n const chosenDeliveryOption = OrderContents.selectedDeliveryOption({\n delivery,\n delivery_options,\n });\n\n const printsUnavailable = (() => {\n if (deliveryOptionsCalculator.isShipping(chosenDeliveryOption)) {\n return;\n }\n return unavailableItems.find(\n item => item.prints && item.storeId === selectedLocation\n );\n })();\n\n const setStoreToAlternate = () => {\n const { id: storeId } = alternatePickupStore || {};\n\n if(!storeId) { return; }\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.PICKUP_LOCATION_CHANGE,\n value: storeId,\n });\n };\n\n return (\n \n
\n {!!deletedFinishes.length &&\n deletedFinishes.map(deletedFinish => (\n \n ))}\n {lastDeletedSize && }\n {!!aliveSizes.length && (\n
\n
\n {printsUnavailable && (\n \n )}\n
\n
\n
\n
\n \n
\n
\n
\n
\n \n \n
\n
\n )}\n
\n
\n );\n};\n\nPrints.contextTypes = {\n selectedLocation: PropTypes.string,\n unavailableItems: PropTypes.array,\n};\n\nPrints.propTypes = {\n sizes: PropTypes.arrayOf(PrintSizeType),\n deletedFinishes: PropTypes.arrayOf(PropTypes.string),\n delivery: PropTypes.number,\n delivery_options: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.number,\n title: PropTypes.string,\n type: PropTypes.string,\n time_hours: PropTypes.number,\n partner_id: PropTypes.string,\n sort_order: PropTypes.number,\n })\n ),\n updating: PropTypes.bool,\n thumbnail: PropTypes.string,\n alternatePickupStore: PropTypes.object\n};\n\nexport default Prints;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\n// Import JSX Modules\nimport DecapitalisedTitle from '../_utils/decapitalised-title';\nimport AppleDeviceNameCapitaliser from '../_utils/apple-device-name-capitaliser';\n// Import JS Modules\nimport genericHelpers from '../_utils/generic-helpers';\n\n// -----------------------------------------------------------\n// PrismProductAttribute\n// -----------------------------------------------------------\nconst PrismProductAttribute = ({type, value}) => {\n return (\n
  • \n { genericHelpers.tidyTitleFilter(type) }: \n { value }\n
  • \n );\n};\n\nexport default PrismProductAttribute;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\n\n// -----------------------------------------------------------\n// PrismProductCopyInProgressWarning\n// -----------------------------------------------------------\nconst PrismProductCopyInProgressWarning = ({className}) => {\n return (\n
    \n Warning: \n this item is still being prepared. Please check back later.\n
    \n );\n};\n\nPrismProductCopyInProgressWarning.displayName = 'PrismProductCopyInProgressWarning'\n\nexport default PrismProductCopyInProgressWarning;\n","// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\n// -----------------------------------------------------------\n// PrismProductIncompleteWarning\n// -----------------------------------------------------------\nconst PrismProductIncompleteWarning = (props, { projectsMustBeFinished }) => {\n const text = (() => {\n if (projectsMustBeFinished) {\n return \"You haven't filled all available image slots. Please complete the product before placing the order.\";\n }\n\n return \"You haven't filled all available image slots. Are you sure you want to place your order?\";\n })();\n\n const cssClasses = [\n 'alert',\n projectsMustBeFinished ? 'alert-danger' : 'alert-warning',\n ];\n\n return (\n \n Note: \n {text}\n
    \n );\n};\nPrismProductIncompleteWarning.displayName = 'PrismProductIncompleteWarning';\nPrismProductIncompleteWarning.contextTypes = {\n projectsMustBeFinished: PropTypes.bool,\n};\n\nexport default PrismProductIncompleteWarning;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\n\n// -----------------------------------------------------------\n// PrismProductOutOfStockWarning\n// -----------------------------------------------------------\nconst PrismProductOutOfStockWarning = () => {\n const message = typeof App !== 'undefined' && App.order.logged_in()\n ? 'Sorry, this product is out of stock. Select a different delivery option or save for later to proceed.'\n : 'Sorry, this product is out of stock. Select a different delivery option to proceed.';\n\n return (\n
    \n {message}\n
    \n );\n};\n\nPrismProductOutOfStockWarning.displayName = 'PrismProductOutOfStockWarning';\n\nexport default PrismProductOutOfStockWarning;\n","import React, { Component } from 'react';\nimport Modal from '../_utils/modal';\nimport PropTypes from 'prop-types';\n\nclass ConfirmationDialog extends Component {\n constructor(props) {\n super(props);\n }\n\n handleClose = () => {\n const { onClose } = this.props;\n\n onClose();\n }\n\n handleConfirm = () => {\n const { onConfirm } = this.props;\n\n onConfirm();\n }\n\n render() {\n return (\n \n \n \n
    \n }\n onClose={ this.handleClose } >\n { this.props.dialogText }\n \n )\n };\n}\n\nConfirmationDialog.propTypes = {\n onConfirm: PropTypes.func.isRequired,\n onClose: PropTypes.func.isRequired,\n title: PropTypes.string,\n dialogText: PropTypes.string.isRequired,\n confirmationText: PropTypes.string,\n shouldShowDialog: PropTypes.bool.isRequired\n};\n\nexport default ConfirmationDialog\n","import createReactClass from 'create-react-class';\n\n('use strict');\n\n// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\n// Import JS Modules\nimport { builderDispatch } from '../_utils/ui';\nimport CartItemsChangeEvents from './cart-items-change-events';\nimport Currency from '../_utils/tools/currency';\nimport DeliveryOptions from './delivery-options';\nimport generateCopiesList from './generate-copies-list';\nimport OutOfStockWarning from './out-of-stock-warning';\nimport PrismProductAttribute from './prism-product-attribute';\nimport PrismProductCopyInProgressWarning from './prism-product-copy-in-progress-warning';\nimport PrismProductIncompleteWarning from './prism-product-incomplete-warning';\nimport PrismProductOutOfStockWarning from './prism-product-out-of-stock-warning';\nimport ProductDisabledOptionsMessage from '../_utils/product-disabled-options-message';\nimport Select from '../_utils/select-wrapper';\nimport WarningMessage from '../_utils/warning-message';\nimport WarningMessages from '../_utils/warning-messages';\nimport ConfirmationDialog from './confirmation-dialog';\nimport deliveryOptionsCalculator from '../_utils/_delivery-options/calculator';\nimport OrderContents from '../_utils/_order-data/order-contents';\n\n// -----------------------------------------------------------\n// PrismItem\n// -----------------------------------------------------------\nconst PrismItem = createReactClass({\n getInitialState() {\n return {\n confirmDelete: false,\n };\n },\n\n displayName: 'PrismItem',\n\n render() {\n const quantityOptions = generateCopiesList(this.props.set_copies).map(c => {\n return { value: c.toString(), label: c.toString() };\n });\n\n return (\n
    \n {this.renderWarning()}\n {this.props.outOfStock && }\n
    \n
    \n \n
    \n
    \n
      \n
    • \n
      \n
      \n \n \n
      \n
      \n
    • \n
    • \n

      \n {Currency.format(this.props.cost)}\n

      \n
    • \n
    \n
    \n
    \n
    \n
    \n
    \n
    \n {this.props.title}\n
    \n
    {this.props.product_title}
    \n
      \n {this.renderAttributes()}\n
    \n
    \n
    \n
    \n
      \n
    • \n
      \n
      \n \n \n
      \n
      \n
    • \n
    • \n

      \n {Currency.format(this.props.cost)}\n

      \n
    • \n
    \n
    \n
    \n
    \n\n

    \n {this.itemOperations().map(\n ({ text, url = '#', onClick, ariaLabel }, i) => {\n return (\n \n {text}\n \n );\n }\n )}\n

    \n {this.renderConfirmationDialog()}\n {this.renderDeliveryOptions()}\n
    \n
    \n
    \n );\n },\n\n renderAttributes() {\n const $attributes = [];\n\n for (let key in this.props.attributes) {\n $attributes.push(\n \n );\n }\n\n return $attributes;\n },\n\n renderWarning() {\n const {\n disabled,\n disabled_theme: disabledTheme,\n missing_attributes: missingAttributes,\n disabled_options_chosen: disabledOptions,\n copy_in_progress: copyInProgress,\n incomplete,\n alternatePickupStore,\n } = this.props;\n\n const itemUnavailableFromSelectedStore = this.isItemUnavailableFromSelectedStore();\n\n if (disabled) {\n return (\n \n {WarningMessages.disabledProduct}\n
    \n Checkout is not available for this reason.\n \n );\n }\n\n if (disabledTheme) {\n return (\n \n {WarningMessages.disabledTheme}\n
    \n Checkout is not available for this reason.\n \n );\n }\n\n if (itemUnavailableFromSelectedStore) {\n return (\n \n );\n }\n\n if (missingAttributes) {\n return (\n \n {WarningMessages.missingAttributes}\n
    \n Checkout is not available for this reason.\n \n );\n }\n\n if (disabledOptions) {\n return (\n \n Checkout is not available for this reason.\n \n );\n }\n\n if (copyInProgress) {\n return (\n \n Checkout is not available for this reason.\n \n );\n }\n\n if (incomplete) {\n return ;\n }\n },\n\n renderDeliveryOptions() {\n const { showDeliveryOptionSelectorsWithinItems = true } = this.context;\n\n if (showDeliveryOptionSelectorsWithinItems) {\n return (\n \n );\n }\n },\n\n renderConfirmationDialog() {\n const { confirmDelete } = this.state;\n\n if (confirmDelete) {\n return (\n \n );\n }\n },\n\n handleQuantityChange(value) {\n const { id, prism_id } = this.props;\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.QUANTITY_CHANGE,\n item: {\n id,\n prism_id,\n },\n value: value,\n });\n },\n\n handleDelete(soft = false) {\n const { id, prism_id } = this.props;\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.REMOVE_PRISM,\n item: {\n id,\n prism_id,\n },\n soft,\n });\n },\n\n openConfirmationDialog() {\n this.setState({\n confirmDelete: true,\n });\n },\n\n handleDialogClose() {\n this.setState({\n confirmDelete: false,\n });\n },\n\n chosenDeliveryOption() {\n return OrderContents.selectedDeliveryOption(this.props);\n },\n\n isItemUnavailableFromSelectedStore() {\n const { unavailableItems, selectedLocation } = this.context;\n\n if (\n !this.chosenDeliveryOption() ||\n deliveryOptionsCalculator.isShipping(this.chosenDeliveryOption())\n ) {\n return null;\n }\n\n return unavailableItems.find(\n item =>\n item.prismId === this.props.id && item.storeId === selectedLocation\n );\n },\n\n setStoreToAlternate() {\n const alternateStore = this.props.alternatePickupStore || {},\n { id: storeId } = alternateStore;\n\n if (!storeId) {\n return;\n }\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.PICKUP_LOCATION_CHANGE,\n value: storeId,\n });\n },\n\n itemOperations() {\n const $generator = (function*(\n { disabled, edit_url: editUrl, product_title: productTitle },\n { loggedIn },\n handleDelete,\n openConfirmationDialog\n ) {\n const isPrismProduct = editUrl != '#';\n const prismProductTitle = productTitle || '';\n\n if (isPrismProduct && !disabled) {\n yield {\n text: 'Edit',\n url: editUrl,\n ariaLabel: `Edit ${prismProductTitle}`,\n };\n }\n\n yield {\n text: 'Delete',\n ariaLabel: `Delete ${prismProductTitle}`,\n onClick: e => {\n e.preventDefault();\n openConfirmationDialog();\n },\n };\n\n if (isPrismProduct && loggedIn) {\n yield {\n ariaLabel: `Save ${prismProductTitle} for later`,\n text: 'Save for later',\n onClick: e => {\n e.preventDefault();\n handleDelete(true);\n },\n };\n }\n })(\n this.props,\n this.context,\n this.handleDelete,\n this.openConfirmationDialog\n );\n\n return Array.from($generator);\n },\n});\n\nPrismItem.contextTypes = {\n loggedIn: PropTypes.bool,\n showDeliveryOptionSelectorsWithinItems: PropTypes.bool,\n selectedLocation: PropTypes.string,\n unavailableItems: PropTypes.array,\n};\n\nexport default PrismItem;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\n// Import JS Modules\nimport { builderDispatch } from '../_utils/ui';\nimport CartItemsChangeEvents from './cart-items-change-events';\nimport DeletionFirmness from './deletion-firmness';\n\n// -----------------------------------------------------------\n// PrismItemDeleted\n// -----------------------------------------------------------\nvar PrismItemDeleted = (props) => {\n const action = (({deleted}) => {\n if (deleted == DeletionFirmness.SOFT)\n return 'saved for later';\n\n return 'deleted';\n })(props);\n\n return (\n
    \n { props.title } has been { action } \n Undo\n
    \n );\n\n function handleUndelete(e) {\n e.preventDefault();\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.UNREMOVE_PRISM,\n item: {\n id: props.id,\n prism_id: props.prism_id\n }\n });\n }\n};\n\nPrismItemDeleted.displayName = 'Prism Item Deleted';\n\nexport default PrismItemDeleted;\n","'use strict';\n\n// Import Libraries\nimport React from 'react';\n// Import JSX Modules\nimport PrismItem from './prism-item';\nimport PrismItemDeleted from './prism-item-deleted';\nimport SpinnerCover from '../_utils/spinner-cover';\n\n// -----------------------------------------------------------\n// Prism\n// -----------------------------------------------------------\nconst Prism = ({ items, updating, outOfStock, alternatePickupStore }) => {\n const $items = items.map((item, i) => {\n const $item = item.deleted\n ? \n : ;\n\n return (\n \n
    \n {$item}\n
    \n \n );\n });\n\n return (\n
    \n {$items}\n
    \n );\n};\n\nexport default Prism;\n","// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\n// Import JS Modules\nimport Store from '../_utils/tools/store';\n\n// -----------------------------------------------------------\n// TaxesAndDeliveryPrompt\n// -----------------------------------------------------------\n\nconst TaxesAndDeliveryPrompt = ({ us, row }, { taxesAndDeliveryPrompt }) => {\n if (taxesAndDeliveryPrompt) {\n return (\n \n );\n }\n\n return {Store.isUnitedStates() ? us : row};\n};\n\n// -----------------------------------------------------------\n\nTaxesAndDeliveryPrompt.propTypes = {\n us: PropTypes.string.isRequired,\n row: PropTypes.string.isRequired,\n};\n\nTaxesAndDeliveryPrompt.contextTypes = {\n taxesAndDeliveryPrompt: PropTypes.string,\n};\n\n// -----------------------------------------------------------\n\nexport default TaxesAndDeliveryPrompt;\n","import PropTypes from 'prop-types';\n\nconst deliveryOptionType = PropTypes.shape({\n key: PropTypes.number,\n type: PropTypes.string,\n timescale: PropTypes.string,\n time_hours: PropTypes.number,\n title: PropTypes.string,\n analytics_id: PropTypes.string,\n code: PropTypes.string,\n});\n\nexport default deliveryOptionType;\n","import createReactClass from 'create-react-class';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport ProgressButton from '../_utils/progress-button';\nimport { builderDispatch, WebUI } from '../_utils/ui';\nimport { observableEvent } from '../_utils/observable-event';\nimport { checkoutBlockers } from './checkout-blockers';\nimport AnalyticsHandler from '../_libs/analytics/checkout-google-analytics';\n\nconst CheckOutButton = createReactClass({\n componentDidMount() {\n this.builderDispatchToken = builderDispatch.register(payload => {\n switch (payload.type) {\n case WebUI.LOGIN:\n if (this.checkoutLoginRequested) {\n payload.previous_basket_contents || this.navigateTo();\n }\n break;\n }\n });\n },\n componentWillUnmount() {\n builderDispatch.unregister(this.builderDispatchToken);\n },\n\n handleCheckoutLogin() {\n const showLoginEvent = new Event('showLogin');\n window.dispatchEvent(showLoginEvent);\n this.checkoutLoginRequested = true;\n },\n\n sendGoogleAnalyticsEvent() {\n const payload = {\n type: WebUI.Analytics.BEGIN_CHECKOUT_EVENT\n }\n AnalyticsHandler.handleAnalyticsEvent(payload);\n },\n\n render() {\n const classes = [\n 'checkout-button',\n 'btn',\n 'btn-primary',\n 'btn-lg',\n 'btn-block',\n ];\n const {\n checkoutBlocker,\n text,\n crossSellItemCheckOutClick,\n checkoutDisabled,\n } = this.props;\n\n const { loggedIn, checkout } = this.context;\n const btnText = text || 'Check Out';\n\n if (checkoutBlocker === checkoutBlockers.crossSellItem) {\n return (\n {\n this.sendGoogleAnalyticsEvent();\n crossSellItemCheckOutClick();\n }}>\n {btnText}\n \n );\n }\n\n if (loggedIn || checkout.withoutLogin) {\n if (checkoutDisabled) {\n return (\n \n {btnText}\n \n );\n }\n\n return (\n \n {btnText}\n \n );\n }\n\n return (\n \n {btnText}\n \n );\n },\n navigateTo() {\n const url = this.context.checkout.url;\n if (url !== window.location.href) {\n // Don't send analytics if the redirection is back to the cart page\n // The checkout button will handle this onClick\n this.sendGoogleAnalyticsEvent();\n }\n\n let f = document.createElement('FORM'),\n indexQM,\n params,\n keyValuePair,\n input,\n i;\n\n f.action = url;\n indexQM = url.indexOf('?');\n\n if (indexQM > -1) {\n // the URL has parameters => convert them to hidden form inputs\n params = url.substring(indexQM + 1).split('&');\n for (i = 0; i < params.length; i++) {\n keyValuePair = params[i].split('=');\n input = document.createElement('INPUT');\n input.type = 'hidden';\n input.name = keyValuePair[0];\n input.value = keyValuePair[1];\n f.appendChild(input);\n }\n }\n\n document.body.appendChild(f);\n f.submit();\n },\n handleProgressButtonTimeout(progressButton) {\n observableEvent.record('checkout-button-timeout');\n progressButton.reset();\n alert(\n 'There was a problem transferring you to checkout. The failure has been logged. Please try again.'\n );\n },\n});\n\nCheckOutButton.contextTypes = {\n loggedIn: PropTypes.bool,\n checkout: PropTypes.shape({\n withoutLogin: PropTypes.bool,\n url: PropTypes.string,\n }),\n};\n\nexport default CheckOutButton;\n","import React from 'react';\n\nexport default function LoginButton() {\n return (\n \n Login and Checkout\n \n );\n}\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport CheckOutButton from '../checkout-button';\nimport LoginButton from './login-button';\n\nconst CheckoutButtons = (\n {\n quantity,\n checkoutBlocker,\n crossSellItemCheckOutClick,\n handleCheckoutClick,\n checkoutDisabled,\n },\n { checkout, loggedIn }\n) => {\n const checkoutLoginBtnEnabled =\n !loggedIn &&\n checkout?.withoutLogin &&\n checkout?.allowAccountSignupInCheckout;\n\n if (quantity) {\n return (\n <>\n {checkoutLoginBtnEnabled && }\n crossSellItemCheckOutClick()}\n checkoutBlocker={checkoutBlocker}\n />\n \n );\n }\n return null;\n};\n\nCheckoutButtons.propTypes = {\n checkoutBlocker: PropTypes.number,\n crossSellItemCheckOutClick: PropTypes.func,\n quantity: PropTypes.number,\n handleCheckoutClick: PropTypes.func,\n};\n\nCheckoutButtons.defaultProps = {\n checkoutBlocker: null,\n crossSellItemCheckOutClick: null,\n quantity: null,\n handleCheckoutClick: null,\n checkoutDisabled: PropTypes.bool,\n};\n\nCheckoutButtons.contextTypes = {\n loggedIn: PropTypes.bool,\n checkout: PropTypes.shape({\n withoutLogin: PropTypes.bool,\n allowAccountSignupInCheckout: PropTypes.bool,\n }),\n};\n\nexport default CheckoutButtons;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport DisplayPrice from '../_utils/display-price';\n\nconst UpsellAmount = ({ price, freeShippingThreshold, assetUrl }) => {\n const amountNeeded = freeShippingThreshold - price;\n\n if (!price) {\n return null;\n }\n\n const message =\n amountNeeded <= 0 ? (\n <>\n You're getting{' '}\n free shipping on your Home\n Delivery items\n \n ) : (\n <>\n Spend {' '}\n more on Home Delivery to get{' '}\n free shipping\n \n );\n\n return (\n \n {assetUrl && (\n \n )}\n \n {message}\n \n
    \n );\n};\n\nUpsellAmount.propTypes = {\n price: PropTypes.number,\n freeShippingThreshold: PropTypes.number,\n assetUrl: PropTypes.string,\n};\n\nexport default UpsellAmount;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\n\nimport DisplayPrice from '../../_utils/display-price';\nimport DeliveryOptionsForm from '../../_utils/_delivery-options/delivery-options-form';\nimport TaxesAndDeliveryPrompt from '../taxes-and-delivery-prompt';\n\nimport Pluralizer from '../pluralizer';\nimport { checkoutBlockers, checkoutBlockerTexts } from '../checkout-blockers';\nimport deliveryOptionType from '../types/delivery-option-type';\nimport CheckoutButtons from './checkout-buttons';\nimport UpsellAmount from '../upsell-amount';\n\nconst CheckoutBlockingReason = props => {\n const { checkoutBlocker } = props;\n const text = checkoutBlockerTexts[checkoutBlocker];\n if (text) {\n return
    Note: {text}
    ;\n }\n return null;\n};\nCheckoutBlockingReason.propTypes = {\n checkoutBlocker: PropTypes.number,\n};\nCheckoutBlockingReason.defaultProps = {\n checkoutBlocker: null,\n};\n\nconst Simple = (\n {\n price,\n quantity,\n checkoutBlocker,\n deliveryOptions,\n selectedDeliveryOption,\n freeShippingEnabled,\n freeShippingAssetUrl,\n freeShippingThreshold,\n homeDeliveryItemsPrice,\n crossSellItemCheckOutClick,\n },\n { uploadedToAlbumPath },\n) => {\n return (\n <>\n \n Subtotal\n \n \n \n

    \n

    \n \n

    \n\n {deliveryOptions && (\n
    \n

    Delivery Option

    \n \n
    \n )}\n\n {uploadedToAlbumPath && (\n

    \n For your convenience, all photos uploaded are also saved to ‘\n \n My Photos\n \n ’\n

    \n )}\n\n
    \n
    \n

    \n \n

    \n {freeShippingEnabled && (\n \n )}\n \n \n
    \n \n );\n};\n\nSimple.propTypes = {\n price: PropTypes.number.isRequired,\n quantity: PropTypes.number,\n crossSellItemCheckOutClick: PropTypes.func,\n checkoutBlocker: PropTypes.number,\n deliveryOptions: PropTypes.arrayOf(deliveryOptionType),\n freeShippingEnabled: PropTypes.bool,\n freeShippingAssetUrl: PropTypes.string,\n freeShippingThreshold: PropTypes.number,\n homeDeliveryItemsPrice: PropTypes.number,\n selectedDeliveryOption: PropTypes.number,\n};\n\nSimple.defaultProps = {\n crossSellItemCheckOutClick: null,\n checkoutBlocker: null,\n quantity: null,\n deliveryOptions: null,\n selectedDeliveryOption: null,\n};\n\nSimple.contextTypes = {\n uploadedToAlbumPath: PropTypes.string,\n};\n\nexport default Simple;\n","/**\n * Lodash (Custom Build) \n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright JS Foundation and other contributors \n * Released under MIT license \n * Based on Underscore.js 1.8.3 \n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n funcTag = '[object Function]',\n genTag = '[object GeneratorFunction]',\n nullTag = '[object Null]',\n proxyTag = '[object Proxy]',\n undefinedTag = '[object Undefined]';\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol,\n symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n if (value == null) {\n return value === undefined ? undefinedTag : nullTag;\n }\n return (symToStringTag && symToStringTag in Object(value))\n ? getRawTag(value)\n : objectToString(value);\n}\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n return nativeObjectToString.call(value);\n}\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n if (!isObject(value)) {\n return false;\n }\n // The use of `Object#toString` avoids issues with the `typeof` operator\n // in Safari 9 which returns 'object' for typed arrays and other constructors.\n var tag = baseGetTag(value);\n return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isFunction;\n","var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\n\nvar Manager = function (_Component) {\n _inherits(Manager, _Component);\n\n function Manager() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Manager);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Manager.__proto__ || Object.getPrototypeOf(Manager)).call.apply(_ref, [this].concat(args))), _this), _this._setTargetNode = function (node) {\n _this._targetNode = node;\n }, _this._getTargetNode = function () {\n return _this._targetNode;\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Manager, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n popperManager: {\n setTargetNode: this._setTargetNode,\n getTargetNode: this._getTargetNode\n }\n };\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n tag = _props.tag,\n children = _props.children,\n restProps = _objectWithoutProperties(_props, ['tag', 'children']);\n\n if (tag !== false) {\n return createElement(tag, restProps, children);\n } else {\n return children;\n }\n }\n }]);\n\n return Manager;\n}(Component);\n\nManager.childContextTypes = {\n popperManager: PropTypes.object.isRequired\n};\nManager.propTypes = {\n tag: PropTypes.oneOfType([PropTypes.string, PropTypes.bool]),\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func])\n};\nManager.defaultProps = {\n tag: 'div'\n};\n\n\nexport default Manager;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport { createElement } from 'react';\nimport PropTypes from 'prop-types';\n\nvar Target = function Target(props, context) {\n var _props$component = props.component,\n component = _props$component === undefined ? 'div' : _props$component,\n innerRef = props.innerRef,\n children = props.children,\n restProps = _objectWithoutProperties(props, ['component', 'innerRef', 'children']);\n\n var popperManager = context.popperManager;\n\n var targetRef = function targetRef(node) {\n popperManager.setTargetNode(node);\n if (typeof innerRef === 'function') {\n innerRef(node);\n }\n };\n\n if (typeof children === 'function') {\n var targetProps = { ref: targetRef };\n return children({ targetProps: targetProps, restProps: restProps });\n }\n\n var componentProps = _extends({}, restProps);\n\n if (typeof component === 'string') {\n componentProps.ref = targetRef;\n } else {\n componentProps.innerRef = targetRef;\n }\n\n return createElement(component, componentProps, children);\n};\n\nTarget.contextTypes = {\n popperManager: PropTypes.object.isRequired\n};\n\nTarget.propTypes = {\n component: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n innerRef: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func])\n};\n\nexport default Target;","/**!\n * @fileOverview Kickass library to create and place poppers near their reference elements.\n * @version 1.16.1\n * @license\n * Copyright (c) 2016 Federico Zivolo and contributors\n *\n * Permission is hereby granted, free of charge, to any person obtaining a copy\n * of this software and associated documentation files (the \"Software\"), to deal\n * in the Software without restriction, including without limitation the rights\n * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\n * copies of the Software, and to permit persons to whom the Software is\n * furnished to do so, subject to the following conditions:\n *\n * The above copyright notice and this permission notice shall be included in all\n * copies or substantial portions of the Software.\n *\n * THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\n * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\n * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\n * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\n * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\n * SOFTWARE.\n */\nvar isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && typeof navigator !== 'undefined';\n\nvar timeoutDuration = function () {\n var longerTimeoutBrowsers = ['Edge', 'Trident', 'Firefox'];\n for (var i = 0; i < longerTimeoutBrowsers.length; i += 1) {\n if (isBrowser && navigator.userAgent.indexOf(longerTimeoutBrowsers[i]) >= 0) {\n return 1;\n }\n }\n return 0;\n}();\n\nfunction microtaskDebounce(fn) {\n var called = false;\n return function () {\n if (called) {\n return;\n }\n called = true;\n window.Promise.resolve().then(function () {\n called = false;\n fn();\n });\n };\n}\n\nfunction taskDebounce(fn) {\n var scheduled = false;\n return function () {\n if (!scheduled) {\n scheduled = true;\n setTimeout(function () {\n scheduled = false;\n fn();\n }, timeoutDuration);\n }\n };\n}\n\nvar supportsMicroTasks = isBrowser && window.Promise;\n\n/**\n* Create a debounced version of a method, that's asynchronously deferred\n* but called in the minimum time possible.\n*\n* @method\n* @memberof Popper.Utils\n* @argument {Function} fn\n* @returns {Function}\n*/\nvar debounce = supportsMicroTasks ? microtaskDebounce : taskDebounce;\n\n/**\n * Check if the given variable is a function\n * @method\n * @memberof Popper.Utils\n * @argument {Any} functionToCheck - variable to check\n * @returns {Boolean} answer to: is a function?\n */\nfunction isFunction(functionToCheck) {\n var getType = {};\n return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';\n}\n\n/**\n * Get CSS computed property of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Eement} element\n * @argument {String} property\n */\nfunction getStyleComputedProperty(element, property) {\n if (element.nodeType !== 1) {\n return [];\n }\n // NOTE: 1 DOM access here\n var window = element.ownerDocument.defaultView;\n var css = window.getComputedStyle(element, null);\n return property ? css[property] : css;\n}\n\n/**\n * Returns the parentNode or the host of the element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} parent\n */\nfunction getParentNode(element) {\n if (element.nodeName === 'HTML') {\n return element;\n }\n return element.parentNode || element.host;\n}\n\n/**\n * Returns the scrolling parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} scroll parent\n */\nfunction getScrollParent(element) {\n // Return body, `getScroll` will take care to get the correct `scrollTop` from it\n if (!element) {\n return document.body;\n }\n\n switch (element.nodeName) {\n case 'HTML':\n case 'BODY':\n return element.ownerDocument.body;\n case '#document':\n return element.body;\n }\n\n // Firefox want us to check `-x` and `-y` variations as well\n\n var _getStyleComputedProp = getStyleComputedProperty(element),\n overflow = _getStyleComputedProp.overflow,\n overflowX = _getStyleComputedProp.overflowX,\n overflowY = _getStyleComputedProp.overflowY;\n\n if (/(auto|scroll|overlay)/.test(overflow + overflowY + overflowX)) {\n return element;\n }\n\n return getScrollParent(getParentNode(element));\n}\n\n/**\n * Returns the reference node of the reference object, or the reference object itself.\n * @method\n * @memberof Popper.Utils\n * @param {Element|Object} reference - the reference element (the popper will be relative to this)\n * @returns {Element} parent\n */\nfunction getReferenceNode(reference) {\n return reference && reference.referenceNode ? reference.referenceNode : reference;\n}\n\nvar isIE11 = isBrowser && !!(window.MSInputMethodContext && document.documentMode);\nvar isIE10 = isBrowser && /MSIE 10/.test(navigator.userAgent);\n\n/**\n * Determines if the browser is Internet Explorer\n * @method\n * @memberof Popper.Utils\n * @param {Number} version to check\n * @returns {Boolean} isIE\n */\nfunction isIE(version) {\n if (version === 11) {\n return isIE11;\n }\n if (version === 10) {\n return isIE10;\n }\n return isIE11 || isIE10;\n}\n\n/**\n * Returns the offset parent of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} offset parent\n */\nfunction getOffsetParent(element) {\n if (!element) {\n return document.documentElement;\n }\n\n var noOffsetParent = isIE(10) ? document.body : null;\n\n // NOTE: 1 DOM access here\n var offsetParent = element.offsetParent || null;\n // Skip hidden elements which don't have an offsetParent\n while (offsetParent === noOffsetParent && element.nextElementSibling) {\n offsetParent = (element = element.nextElementSibling).offsetParent;\n }\n\n var nodeName = offsetParent && offsetParent.nodeName;\n\n if (!nodeName || nodeName === 'BODY' || nodeName === 'HTML') {\n return element ? element.ownerDocument.documentElement : document.documentElement;\n }\n\n // .offsetParent will return the closest TH, TD or TABLE in case\n // no offsetParent is present, I hate this job...\n if (['TH', 'TD', 'TABLE'].indexOf(offsetParent.nodeName) !== -1 && getStyleComputedProperty(offsetParent, 'position') === 'static') {\n return getOffsetParent(offsetParent);\n }\n\n return offsetParent;\n}\n\nfunction isOffsetContainer(element) {\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY') {\n return false;\n }\n return nodeName === 'HTML' || getOffsetParent(element.firstElementChild) === element;\n}\n\n/**\n * Finds the root node (document, shadowDOM root) of the given element\n * @method\n * @memberof Popper.Utils\n * @argument {Element} node\n * @returns {Element} root node\n */\nfunction getRoot(node) {\n if (node.parentNode !== null) {\n return getRoot(node.parentNode);\n }\n\n return node;\n}\n\n/**\n * Finds the offset parent common to the two provided nodes\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element1\n * @argument {Element} element2\n * @returns {Element} common offset parent\n */\nfunction findCommonOffsetParent(element1, element2) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element1 || !element1.nodeType || !element2 || !element2.nodeType) {\n return document.documentElement;\n }\n\n // Here we make sure to give as \"start\" the element that comes first in the DOM\n var order = element1.compareDocumentPosition(element2) & Node.DOCUMENT_POSITION_FOLLOWING;\n var start = order ? element1 : element2;\n var end = order ? element2 : element1;\n\n // Get common ancestor container\n var range = document.createRange();\n range.setStart(start, 0);\n range.setEnd(end, 0);\n var commonAncestorContainer = range.commonAncestorContainer;\n\n // Both nodes are inside #document\n\n if (element1 !== commonAncestorContainer && element2 !== commonAncestorContainer || start.contains(end)) {\n if (isOffsetContainer(commonAncestorContainer)) {\n return commonAncestorContainer;\n }\n\n return getOffsetParent(commonAncestorContainer);\n }\n\n // one of the nodes is inside shadowDOM, find which one\n var element1root = getRoot(element1);\n if (element1root.host) {\n return findCommonOffsetParent(element1root.host, element2);\n } else {\n return findCommonOffsetParent(element1, getRoot(element2).host);\n }\n}\n\n/**\n * Gets the scroll value of the given element in the given side (top and left)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {String} side `top` or `left`\n * @returns {number} amount of scrolled pixels\n */\nfunction getScroll(element) {\n var side = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'top';\n\n var upperSide = side === 'top' ? 'scrollTop' : 'scrollLeft';\n var nodeName = element.nodeName;\n\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n var html = element.ownerDocument.documentElement;\n var scrollingElement = element.ownerDocument.scrollingElement || html;\n return scrollingElement[upperSide];\n }\n\n return element[upperSide];\n}\n\n/*\n * Sum or subtract the element scroll values (left and top) from a given rect object\n * @method\n * @memberof Popper.Utils\n * @param {Object} rect - Rect object you want to change\n * @param {HTMLElement} element - The element from the function reads the scroll values\n * @param {Boolean} subtract - set to true if you want to subtract the scroll values\n * @return {Object} rect - The modifier rect object\n */\nfunction includeScroll(rect, element) {\n var subtract = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n var modifier = subtract ? -1 : 1;\n rect.top += scrollTop * modifier;\n rect.bottom += scrollTop * modifier;\n rect.left += scrollLeft * modifier;\n rect.right += scrollLeft * modifier;\n return rect;\n}\n\n/*\n * Helper to detect borders of a given element\n * @method\n * @memberof Popper.Utils\n * @param {CSSStyleDeclaration} styles\n * Result of `getStyleComputedProperty` on the given element\n * @param {String} axis - `x` or `y`\n * @return {number} borders - The borders size of the given axis\n */\n\nfunction getBordersSize(styles, axis) {\n var sideA = axis === 'x' ? 'Left' : 'Top';\n var sideB = sideA === 'Left' ? 'Right' : 'Bottom';\n\n return parseFloat(styles['border' + sideA + 'Width']) + parseFloat(styles['border' + sideB + 'Width']);\n}\n\nfunction getSize(axis, body, html, computedStyle) {\n return Math.max(body['offset' + axis], body['scroll' + axis], html['client' + axis], html['offset' + axis], html['scroll' + axis], isIE(10) ? parseInt(html['offset' + axis]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Top' : 'Left')]) + parseInt(computedStyle['margin' + (axis === 'Height' ? 'Bottom' : 'Right')]) : 0);\n}\n\nfunction getWindowSizes(document) {\n var body = document.body;\n var html = document.documentElement;\n var computedStyle = isIE(10) && getComputedStyle(html);\n\n return {\n height: getSize('Height', body, html, computedStyle),\n width: getSize('Width', body, html, computedStyle)\n };\n}\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n\n\n\nvar defineProperty = function (obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n/**\n * Given element offsets, generate an output similar to getBoundingClientRect\n * @method\n * @memberof Popper.Utils\n * @argument {Object} offsets\n * @returns {Object} ClientRect like output\n */\nfunction getClientRect(offsets) {\n return _extends({}, offsets, {\n right: offsets.left + offsets.width,\n bottom: offsets.top + offsets.height\n });\n}\n\n/**\n * Get bounding client rect of given element\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} element\n * @return {Object} client rect\n */\nfunction getBoundingClientRect(element) {\n var rect = {};\n\n // IE10 10 FIX: Please, don't ask, the element isn't\n // considered in DOM in some circumstances...\n // This isn't reproducible in IE10 compatibility mode of IE11\n try {\n if (isIE(10)) {\n rect = element.getBoundingClientRect();\n var scrollTop = getScroll(element, 'top');\n var scrollLeft = getScroll(element, 'left');\n rect.top += scrollTop;\n rect.left += scrollLeft;\n rect.bottom += scrollTop;\n rect.right += scrollLeft;\n } else {\n rect = element.getBoundingClientRect();\n }\n } catch (e) {}\n\n var result = {\n left: rect.left,\n top: rect.top,\n width: rect.right - rect.left,\n height: rect.bottom - rect.top\n };\n\n // subtract scrollbar size from sizes\n var sizes = element.nodeName === 'HTML' ? getWindowSizes(element.ownerDocument) : {};\n var width = sizes.width || element.clientWidth || result.width;\n var height = sizes.height || element.clientHeight || result.height;\n\n var horizScrollbar = element.offsetWidth - width;\n var vertScrollbar = element.offsetHeight - height;\n\n // if an hypothetical scrollbar is detected, we must be sure it's not a `border`\n // we make this check conditional for performance reasons\n if (horizScrollbar || vertScrollbar) {\n var styles = getStyleComputedProperty(element);\n horizScrollbar -= getBordersSize(styles, 'x');\n vertScrollbar -= getBordersSize(styles, 'y');\n\n result.width -= horizScrollbar;\n result.height -= vertScrollbar;\n }\n\n return getClientRect(result);\n}\n\nfunction getOffsetRectRelativeToArbitraryNode(children, parent) {\n var fixedPosition = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n\n var isIE10 = isIE(10);\n var isHTML = parent.nodeName === 'HTML';\n var childrenRect = getBoundingClientRect(children);\n var parentRect = getBoundingClientRect(parent);\n var scrollParent = getScrollParent(children);\n\n var styles = getStyleComputedProperty(parent);\n var borderTopWidth = parseFloat(styles.borderTopWidth);\n var borderLeftWidth = parseFloat(styles.borderLeftWidth);\n\n // In cases where the parent is fixed, we must ignore negative scroll in offset calc\n if (fixedPosition && isHTML) {\n parentRect.top = Math.max(parentRect.top, 0);\n parentRect.left = Math.max(parentRect.left, 0);\n }\n var offsets = getClientRect({\n top: childrenRect.top - parentRect.top - borderTopWidth,\n left: childrenRect.left - parentRect.left - borderLeftWidth,\n width: childrenRect.width,\n height: childrenRect.height\n });\n offsets.marginTop = 0;\n offsets.marginLeft = 0;\n\n // Subtract margins of documentElement in case it's being used as parent\n // we do this only on HTML because it's the only element that behaves\n // differently when margins are applied to it. The margins are included in\n // the box of the documentElement, in the other cases not.\n if (!isIE10 && isHTML) {\n var marginTop = parseFloat(styles.marginTop);\n var marginLeft = parseFloat(styles.marginLeft);\n\n offsets.top -= borderTopWidth - marginTop;\n offsets.bottom -= borderTopWidth - marginTop;\n offsets.left -= borderLeftWidth - marginLeft;\n offsets.right -= borderLeftWidth - marginLeft;\n\n // Attach marginTop and marginLeft because in some circumstances we may need them\n offsets.marginTop = marginTop;\n offsets.marginLeft = marginLeft;\n }\n\n if (isIE10 && !fixedPosition ? parent.contains(scrollParent) : parent === scrollParent && scrollParent.nodeName !== 'BODY') {\n offsets = includeScroll(offsets, parent);\n }\n\n return offsets;\n}\n\nfunction getViewportOffsetRectRelativeToArtbitraryNode(element) {\n var excludeScroll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var html = element.ownerDocument.documentElement;\n var relativeOffset = getOffsetRectRelativeToArbitraryNode(element, html);\n var width = Math.max(html.clientWidth, window.innerWidth || 0);\n var height = Math.max(html.clientHeight, window.innerHeight || 0);\n\n var scrollTop = !excludeScroll ? getScroll(html) : 0;\n var scrollLeft = !excludeScroll ? getScroll(html, 'left') : 0;\n\n var offset = {\n top: scrollTop - relativeOffset.top + relativeOffset.marginTop,\n left: scrollLeft - relativeOffset.left + relativeOffset.marginLeft,\n width: width,\n height: height\n };\n\n return getClientRect(offset);\n}\n\n/**\n * Check if the given element is fixed or is inside a fixed parent\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @argument {Element} customContainer\n * @returns {Boolean} answer to \"isFixed?\"\n */\nfunction isFixed(element) {\n var nodeName = element.nodeName;\n if (nodeName === 'BODY' || nodeName === 'HTML') {\n return false;\n }\n if (getStyleComputedProperty(element, 'position') === 'fixed') {\n return true;\n }\n var parentNode = getParentNode(element);\n if (!parentNode) {\n return false;\n }\n return isFixed(parentNode);\n}\n\n/**\n * Finds the first parent of an element that has a transformed property defined\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Element} first transformed parent or documentElement\n */\n\nfunction getFixedPositionOffsetParent(element) {\n // This check is needed to avoid errors in case one of the elements isn't defined for any reason\n if (!element || !element.parentElement || isIE()) {\n return document.documentElement;\n }\n var el = element.parentElement;\n while (el && getStyleComputedProperty(el, 'transform') === 'none') {\n el = el.parentElement;\n }\n return el || document.documentElement;\n}\n\n/**\n * Computed the boundaries limits and return them\n * @method\n * @memberof Popper.Utils\n * @param {HTMLElement} popper\n * @param {HTMLElement} reference\n * @param {number} padding\n * @param {HTMLElement} boundariesElement - Element used to define the boundaries\n * @param {Boolean} fixedPosition - Is in fixed position mode\n * @returns {Object} Coordinates of the boundaries\n */\nfunction getBoundaries(popper, reference, padding, boundariesElement) {\n var fixedPosition = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;\n\n // NOTE: 1 DOM access here\n\n var boundaries = { top: 0, left: 0 };\n var offsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n\n // Handle viewport case\n if (boundariesElement === 'viewport') {\n boundaries = getViewportOffsetRectRelativeToArtbitraryNode(offsetParent, fixedPosition);\n } else {\n // Handle other cases based on DOM element used as boundaries\n var boundariesNode = void 0;\n if (boundariesElement === 'scrollParent') {\n boundariesNode = getScrollParent(getParentNode(reference));\n if (boundariesNode.nodeName === 'BODY') {\n boundariesNode = popper.ownerDocument.documentElement;\n }\n } else if (boundariesElement === 'window') {\n boundariesNode = popper.ownerDocument.documentElement;\n } else {\n boundariesNode = boundariesElement;\n }\n\n var offsets = getOffsetRectRelativeToArbitraryNode(boundariesNode, offsetParent, fixedPosition);\n\n // In case of HTML, we need a different computation\n if (boundariesNode.nodeName === 'HTML' && !isFixed(offsetParent)) {\n var _getWindowSizes = getWindowSizes(popper.ownerDocument),\n height = _getWindowSizes.height,\n width = _getWindowSizes.width;\n\n boundaries.top += offsets.top - offsets.marginTop;\n boundaries.bottom = height + offsets.top;\n boundaries.left += offsets.left - offsets.marginLeft;\n boundaries.right = width + offsets.left;\n } else {\n // for all the other DOM elements, this one is good\n boundaries = offsets;\n }\n }\n\n // Add paddings\n padding = padding || 0;\n var isPaddingNumber = typeof padding === 'number';\n boundaries.left += isPaddingNumber ? padding : padding.left || 0;\n boundaries.top += isPaddingNumber ? padding : padding.top || 0;\n boundaries.right -= isPaddingNumber ? padding : padding.right || 0;\n boundaries.bottom -= isPaddingNumber ? padding : padding.bottom || 0;\n\n return boundaries;\n}\n\nfunction getArea(_ref) {\n var width = _ref.width,\n height = _ref.height;\n\n return width * height;\n}\n\n/**\n * Utility used to transform the `auto` placement to the placement with more\n * available space.\n * @method\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeAutoPlacement(placement, refRect, popper, reference, boundariesElement) {\n var padding = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : 0;\n\n if (placement.indexOf('auto') === -1) {\n return placement;\n }\n\n var boundaries = getBoundaries(popper, reference, padding, boundariesElement);\n\n var rects = {\n top: {\n width: boundaries.width,\n height: refRect.top - boundaries.top\n },\n right: {\n width: boundaries.right - refRect.right,\n height: boundaries.height\n },\n bottom: {\n width: boundaries.width,\n height: boundaries.bottom - refRect.bottom\n },\n left: {\n width: refRect.left - boundaries.left,\n height: boundaries.height\n }\n };\n\n var sortedAreas = Object.keys(rects).map(function (key) {\n return _extends({\n key: key\n }, rects[key], {\n area: getArea(rects[key])\n });\n }).sort(function (a, b) {\n return b.area - a.area;\n });\n\n var filteredAreas = sortedAreas.filter(function (_ref2) {\n var width = _ref2.width,\n height = _ref2.height;\n return width >= popper.clientWidth && height >= popper.clientHeight;\n });\n\n var computedPlacement = filteredAreas.length > 0 ? filteredAreas[0].key : sortedAreas[0].key;\n\n var variation = placement.split('-')[1];\n\n return computedPlacement + (variation ? '-' + variation : '');\n}\n\n/**\n * Get offsets to the reference element\n * @method\n * @memberof Popper.Utils\n * @param {Object} state\n * @param {Element} popper - the popper element\n * @param {Element} reference - the reference element (the popper will be relative to this)\n * @param {Element} fixedPosition - is in fixed position mode\n * @returns {Object} An object containing the offsets which will be applied to the popper\n */\nfunction getReferenceOffsets(state, popper, reference) {\n var fixedPosition = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;\n\n var commonOffsetParent = fixedPosition ? getFixedPositionOffsetParent(popper) : findCommonOffsetParent(popper, getReferenceNode(reference));\n return getOffsetRectRelativeToArbitraryNode(reference, commonOffsetParent, fixedPosition);\n}\n\n/**\n * Get the outer sizes of the given element (offset size + margins)\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element\n * @returns {Object} object containing width and height properties\n */\nfunction getOuterSizes(element) {\n var window = element.ownerDocument.defaultView;\n var styles = window.getComputedStyle(element);\n var x = parseFloat(styles.marginTop || 0) + parseFloat(styles.marginBottom || 0);\n var y = parseFloat(styles.marginLeft || 0) + parseFloat(styles.marginRight || 0);\n var result = {\n width: element.offsetWidth + y,\n height: element.offsetHeight + x\n };\n return result;\n}\n\n/**\n * Get the opposite placement of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement\n * @returns {String} flipped placement\n */\nfunction getOppositePlacement(placement) {\n var hash = { left: 'right', right: 'left', bottom: 'top', top: 'bottom' };\n return placement.replace(/left|right|bottom|top/g, function (matched) {\n return hash[matched];\n });\n}\n\n/**\n * Get offsets to the popper\n * @method\n * @memberof Popper.Utils\n * @param {Object} position - CSS position the Popper will get applied\n * @param {HTMLElement} popper - the popper element\n * @param {Object} referenceOffsets - the reference offsets (the popper will be relative to this)\n * @param {String} placement - one of the valid placement options\n * @returns {Object} popperOffsets - An object containing the offsets which will be applied to the popper\n */\nfunction getPopperOffsets(popper, referenceOffsets, placement) {\n placement = placement.split('-')[0];\n\n // Get popper node sizes\n var popperRect = getOuterSizes(popper);\n\n // Add position, width and height to our offsets object\n var popperOffsets = {\n width: popperRect.width,\n height: popperRect.height\n };\n\n // depending by the popper placement we have to compute its offsets slightly differently\n var isHoriz = ['right', 'left'].indexOf(placement) !== -1;\n var mainSide = isHoriz ? 'top' : 'left';\n var secondarySide = isHoriz ? 'left' : 'top';\n var measurement = isHoriz ? 'height' : 'width';\n var secondaryMeasurement = !isHoriz ? 'height' : 'width';\n\n popperOffsets[mainSide] = referenceOffsets[mainSide] + referenceOffsets[measurement] / 2 - popperRect[measurement] / 2;\n if (placement === secondarySide) {\n popperOffsets[secondarySide] = referenceOffsets[secondarySide] - popperRect[secondaryMeasurement];\n } else {\n popperOffsets[secondarySide] = referenceOffsets[getOppositePlacement(secondarySide)];\n }\n\n return popperOffsets;\n}\n\n/**\n * Mimics the `find` method of Array\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction find(arr, check) {\n // use native find if supported\n if (Array.prototype.find) {\n return arr.find(check);\n }\n\n // use `filter` to obtain the same behavior of `find`\n return arr.filter(check)[0];\n}\n\n/**\n * Return the index of the matching object\n * @method\n * @memberof Popper.Utils\n * @argument {Array} arr\n * @argument prop\n * @argument value\n * @returns index or -1\n */\nfunction findIndex(arr, prop, value) {\n // use native findIndex if supported\n if (Array.prototype.findIndex) {\n return arr.findIndex(function (cur) {\n return cur[prop] === value;\n });\n }\n\n // use `find` + `indexOf` if `findIndex` isn't supported\n var match = find(arr, function (obj) {\n return obj[prop] === value;\n });\n return arr.indexOf(match);\n}\n\n/**\n * Loop trough the list of modifiers and run them in order,\n * each of them will then edit the data object.\n * @method\n * @memberof Popper.Utils\n * @param {dataObject} data\n * @param {Array} modifiers\n * @param {String} ends - Optional modifier name used as stopper\n * @returns {dataObject}\n */\nfunction runModifiers(modifiers, data, ends) {\n var modifiersToRun = ends === undefined ? modifiers : modifiers.slice(0, findIndex(modifiers, 'name', ends));\n\n modifiersToRun.forEach(function (modifier) {\n if (modifier['function']) {\n // eslint-disable-line dot-notation\n console.warn('`modifier.function` is deprecated, use `modifier.fn`!');\n }\n var fn = modifier['function'] || modifier.fn; // eslint-disable-line dot-notation\n if (modifier.enabled && isFunction(fn)) {\n // Add properties to offsets to make them a complete clientRect object\n // we do this before each modifier to make sure the previous one doesn't\n // mess with these values\n data.offsets.popper = getClientRect(data.offsets.popper);\n data.offsets.reference = getClientRect(data.offsets.reference);\n\n data = fn(data, modifier);\n }\n });\n\n return data;\n}\n\n/**\n * Updates the position of the popper, computing the new offsets and applying\n * the new style.
    \n * Prefer `scheduleUpdate` over `update` because of performance reasons.\n * @method\n * @memberof Popper\n */\nfunction update() {\n // if popper is destroyed, don't perform any further update\n if (this.state.isDestroyed) {\n return;\n }\n\n var data = {\n instance: this,\n styles: {},\n arrowStyles: {},\n attributes: {},\n flipped: false,\n offsets: {}\n };\n\n // compute reference element offsets\n data.offsets.reference = getReferenceOffsets(this.state, this.popper, this.reference, this.options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n data.placement = computeAutoPlacement(this.options.placement, data.offsets.reference, this.popper, this.reference, this.options.modifiers.flip.boundariesElement, this.options.modifiers.flip.padding);\n\n // store the computed placement inside `originalPlacement`\n data.originalPlacement = data.placement;\n\n data.positionFixed = this.options.positionFixed;\n\n // compute the popper offsets\n data.offsets.popper = getPopperOffsets(this.popper, data.offsets.reference, data.placement);\n\n data.offsets.popper.position = this.options.positionFixed ? 'fixed' : 'absolute';\n\n // run the modifiers\n data = runModifiers(this.modifiers, data);\n\n // the first `update` will call `onCreate` callback\n // the other ones will call `onUpdate` callback\n if (!this.state.isCreated) {\n this.state.isCreated = true;\n this.options.onCreate(data);\n } else {\n this.options.onUpdate(data);\n }\n}\n\n/**\n * Helper used to know if the given modifier is enabled.\n * @method\n * @memberof Popper.Utils\n * @returns {Boolean}\n */\nfunction isModifierEnabled(modifiers, modifierName) {\n return modifiers.some(function (_ref) {\n var name = _ref.name,\n enabled = _ref.enabled;\n return enabled && name === modifierName;\n });\n}\n\n/**\n * Get the prefixed supported property name\n * @method\n * @memberof Popper.Utils\n * @argument {String} property (camelCase)\n * @returns {String} prefixed property (camelCase or PascalCase, depending on the vendor prefix)\n */\nfunction getSupportedPropertyName(property) {\n var prefixes = [false, 'ms', 'Webkit', 'Moz', 'O'];\n var upperProp = property.charAt(0).toUpperCase() + property.slice(1);\n\n for (var i = 0; i < prefixes.length; i++) {\n var prefix = prefixes[i];\n var toCheck = prefix ? '' + prefix + upperProp : property;\n if (typeof document.body.style[toCheck] !== 'undefined') {\n return toCheck;\n }\n }\n return null;\n}\n\n/**\n * Destroys the popper.\n * @method\n * @memberof Popper\n */\nfunction destroy() {\n this.state.isDestroyed = true;\n\n // touch DOM only if `applyStyle` modifier is enabled\n if (isModifierEnabled(this.modifiers, 'applyStyle')) {\n this.popper.removeAttribute('x-placement');\n this.popper.style.position = '';\n this.popper.style.top = '';\n this.popper.style.left = '';\n this.popper.style.right = '';\n this.popper.style.bottom = '';\n this.popper.style.willChange = '';\n this.popper.style[getSupportedPropertyName('transform')] = '';\n }\n\n this.disableEventListeners();\n\n // remove the popper if user explicitly asked for the deletion on destroy\n // do not use `remove` because IE11 doesn't support it\n if (this.options.removeOnDestroy) {\n this.popper.parentNode.removeChild(this.popper);\n }\n return this;\n}\n\n/**\n * Get the window associated with the element\n * @argument {Element} element\n * @returns {Window}\n */\nfunction getWindow(element) {\n var ownerDocument = element.ownerDocument;\n return ownerDocument ? ownerDocument.defaultView : window;\n}\n\nfunction attachToScrollParents(scrollParent, event, callback, scrollParents) {\n var isBody = scrollParent.nodeName === 'BODY';\n var target = isBody ? scrollParent.ownerDocument.defaultView : scrollParent;\n target.addEventListener(event, callback, { passive: true });\n\n if (!isBody) {\n attachToScrollParents(getScrollParent(target.parentNode), event, callback, scrollParents);\n }\n scrollParents.push(target);\n}\n\n/**\n * Setup needed event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction setupEventListeners(reference, options, state, updateBound) {\n // Resize event listener on window\n state.updateBound = updateBound;\n getWindow(reference).addEventListener('resize', state.updateBound, { passive: true });\n\n // Scroll event listener on scroll parents\n var scrollElement = getScrollParent(reference);\n attachToScrollParents(scrollElement, 'scroll', state.updateBound, state.scrollParents);\n state.scrollElement = scrollElement;\n state.eventsEnabled = true;\n\n return state;\n}\n\n/**\n * It will add resize/scroll events and start recalculating\n * position of the popper element when they are triggered.\n * @method\n * @memberof Popper\n */\nfunction enableEventListeners() {\n if (!this.state.eventsEnabled) {\n this.state = setupEventListeners(this.reference, this.options, this.state, this.scheduleUpdate);\n }\n}\n\n/**\n * Remove event listeners used to update the popper position\n * @method\n * @memberof Popper.Utils\n * @private\n */\nfunction removeEventListeners(reference, state) {\n // Remove resize event listener on window\n getWindow(reference).removeEventListener('resize', state.updateBound);\n\n // Remove scroll event listener on scroll parents\n state.scrollParents.forEach(function (target) {\n target.removeEventListener('scroll', state.updateBound);\n });\n\n // Reset state\n state.updateBound = null;\n state.scrollParents = [];\n state.scrollElement = null;\n state.eventsEnabled = false;\n return state;\n}\n\n/**\n * It will remove resize/scroll events and won't recalculate popper position\n * when they are triggered. It also won't trigger `onUpdate` callback anymore,\n * unless you call `update` method manually.\n * @method\n * @memberof Popper\n */\nfunction disableEventListeners() {\n if (this.state.eventsEnabled) {\n cancelAnimationFrame(this.scheduleUpdate);\n this.state = removeEventListeners(this.reference, this.state);\n }\n}\n\n/**\n * Tells if a given input is a number\n * @method\n * @memberof Popper.Utils\n * @param {*} input to check\n * @return {Boolean}\n */\nfunction isNumeric(n) {\n return n !== '' && !isNaN(parseFloat(n)) && isFinite(n);\n}\n\n/**\n * Set the style to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the style to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setStyles(element, styles) {\n Object.keys(styles).forEach(function (prop) {\n var unit = '';\n // add unit if the value is numeric and is one of the following\n if (['width', 'height', 'top', 'right', 'bottom', 'left'].indexOf(prop) !== -1 && isNumeric(styles[prop])) {\n unit = 'px';\n }\n element.style[prop] = styles[prop] + unit;\n });\n}\n\n/**\n * Set the attributes to the given popper\n * @method\n * @memberof Popper.Utils\n * @argument {Element} element - Element to apply the attributes to\n * @argument {Object} styles\n * Object with a list of properties and values which will be applied to the element\n */\nfunction setAttributes(element, attributes) {\n Object.keys(attributes).forEach(function (prop) {\n var value = attributes[prop];\n if (value !== false) {\n element.setAttribute(prop, attributes[prop]);\n } else {\n element.removeAttribute(prop);\n }\n });\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} data.styles - List of style properties - values to apply to popper element\n * @argument {Object} data.attributes - List of attribute properties - values to apply to popper element\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The same data object\n */\nfunction applyStyle(data) {\n // any property present in `data.styles` will be applied to the popper,\n // in this way we can make the 3rd party modifiers add custom styles to it\n // Be aware, modifiers could override the properties defined in the previous\n // lines of this modifier!\n setStyles(data.instance.popper, data.styles);\n\n // any property present in `data.attributes` will be applied to the popper,\n // they will be set as HTML attributes of the element\n setAttributes(data.instance.popper, data.attributes);\n\n // if arrowElement is defined and arrowStyles has some properties\n if (data.arrowElement && Object.keys(data.arrowStyles).length) {\n setStyles(data.arrowElement, data.arrowStyles);\n }\n\n return data;\n}\n\n/**\n * Set the x-placement attribute before everything else because it could be used\n * to add margins to the popper margins needs to be calculated to get the\n * correct popper offsets.\n * @method\n * @memberof Popper.modifiers\n * @param {HTMLElement} reference - The reference element used to position the popper\n * @param {HTMLElement} popper - The HTML element used as popper\n * @param {Object} options - Popper.js options\n */\nfunction applyStyleOnLoad(reference, popper, options, modifierOptions, state) {\n // compute reference element offsets\n var referenceOffsets = getReferenceOffsets(state, popper, reference, options.positionFixed);\n\n // compute auto placement, store placement inside the data object,\n // modifiers will be able to edit `placement` if needed\n // and refer to originalPlacement to know the original value\n var placement = computeAutoPlacement(options.placement, referenceOffsets, popper, reference, options.modifiers.flip.boundariesElement, options.modifiers.flip.padding);\n\n popper.setAttribute('x-placement', placement);\n\n // Apply `position` to popper before anything else because\n // without the position applied we can't guarantee correct computations\n setStyles(popper, { position: options.positionFixed ? 'fixed' : 'absolute' });\n\n return options;\n}\n\n/**\n * @function\n * @memberof Popper.Utils\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Boolean} shouldRound - If the offsets should be rounded at all\n * @returns {Object} The popper's position offsets rounded\n *\n * The tale of pixel-perfect positioning. It's still not 100% perfect, but as\n * good as it can be within reason.\n * Discussion here: https://github.com/FezVrasta/popper.js/pull/715\n *\n * Low DPI screens cause a popper to be blurry if not using full pixels (Safari\n * as well on High DPI screens).\n *\n * Firefox prefers no rounding for positioning and does not have blurriness on\n * high DPI screens.\n *\n * Only horizontal placement and left/right values need to be considered.\n */\nfunction getRoundedOffsets(data, shouldRound) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n var round = Math.round,\n floor = Math.floor;\n\n var noRound = function noRound(v) {\n return v;\n };\n\n var referenceWidth = round(reference.width);\n var popperWidth = round(popper.width);\n\n var isVertical = ['left', 'right'].indexOf(data.placement) !== -1;\n var isVariation = data.placement.indexOf('-') !== -1;\n var sameWidthParity = referenceWidth % 2 === popperWidth % 2;\n var bothOddWidth = referenceWidth % 2 === 1 && popperWidth % 2 === 1;\n\n var horizontalToInteger = !shouldRound ? noRound : isVertical || isVariation || sameWidthParity ? round : floor;\n var verticalToInteger = !shouldRound ? noRound : round;\n\n return {\n left: horizontalToInteger(bothOddWidth && !isVariation && shouldRound ? popper.left - 1 : popper.left),\n top: verticalToInteger(popper.top),\n bottom: verticalToInteger(popper.bottom),\n right: horizontalToInteger(popper.right)\n };\n}\n\nvar isFirefox = isBrowser && /Firefox/i.test(navigator.userAgent);\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction computeStyle(data, options) {\n var x = options.x,\n y = options.y;\n var popper = data.offsets.popper;\n\n // Remove this legacy support in Popper.js v2\n\n var legacyGpuAccelerationOption = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'applyStyle';\n }).gpuAcceleration;\n if (legacyGpuAccelerationOption !== undefined) {\n console.warn('WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!');\n }\n var gpuAcceleration = legacyGpuAccelerationOption !== undefined ? legacyGpuAccelerationOption : options.gpuAcceleration;\n\n var offsetParent = getOffsetParent(data.instance.popper);\n var offsetParentRect = getBoundingClientRect(offsetParent);\n\n // Styles\n var styles = {\n position: popper.position\n };\n\n var offsets = getRoundedOffsets(data, window.devicePixelRatio < 2 || !isFirefox);\n\n var sideA = x === 'bottom' ? 'top' : 'bottom';\n var sideB = y === 'right' ? 'left' : 'right';\n\n // if gpuAcceleration is set to `true` and transform is supported,\n // we use `translate3d` to apply the position to the popper we\n // automatically use the supported prefixed version if needed\n var prefixedProperty = getSupportedPropertyName('transform');\n\n // now, let's make a step back and look at this code closely (wtf?)\n // If the content of the popper grows once it's been positioned, it\n // may happen that the popper gets misplaced because of the new content\n // overflowing its reference element\n // To avoid this problem, we provide two options (x and y), which allow\n // the consumer to define the offset origin.\n // If we position a popper on top of a reference element, we can set\n // `x` to `top` to make the popper grow towards its top instead of\n // its bottom.\n var left = void 0,\n top = void 0;\n if (sideA === 'bottom') {\n // when offsetParent is the positioning is relative to the bottom of the screen (excluding the scrollbar)\n // and not the bottom of the html element\n if (offsetParent.nodeName === 'HTML') {\n top = -offsetParent.clientHeight + offsets.bottom;\n } else {\n top = -offsetParentRect.height + offsets.bottom;\n }\n } else {\n top = offsets.top;\n }\n if (sideB === 'right') {\n if (offsetParent.nodeName === 'HTML') {\n left = -offsetParent.clientWidth + offsets.right;\n } else {\n left = -offsetParentRect.width + offsets.right;\n }\n } else {\n left = offsets.left;\n }\n if (gpuAcceleration && prefixedProperty) {\n styles[prefixedProperty] = 'translate3d(' + left + 'px, ' + top + 'px, 0)';\n styles[sideA] = 0;\n styles[sideB] = 0;\n styles.willChange = 'transform';\n } else {\n // othwerise, we use the standard `top`, `left`, `bottom` and `right` properties\n var invertTop = sideA === 'bottom' ? -1 : 1;\n var invertLeft = sideB === 'right' ? -1 : 1;\n styles[sideA] = top * invertTop;\n styles[sideB] = left * invertLeft;\n styles.willChange = sideA + ', ' + sideB;\n }\n\n // Attributes\n var attributes = {\n 'x-placement': data.placement\n };\n\n // Update `data` attributes, styles and arrowStyles\n data.attributes = _extends({}, attributes, data.attributes);\n data.styles = _extends({}, styles, data.styles);\n data.arrowStyles = _extends({}, data.offsets.arrow, data.arrowStyles);\n\n return data;\n}\n\n/**\n * Helper used to know if the given modifier depends from another one.
    \n * It checks if the needed modifier is listed and enabled.\n * @method\n * @memberof Popper.Utils\n * @param {Array} modifiers - list of modifiers\n * @param {String} requestingName - name of requesting modifier\n * @param {String} requestedName - name of requested modifier\n * @returns {Boolean}\n */\nfunction isModifierRequired(modifiers, requestingName, requestedName) {\n var requesting = find(modifiers, function (_ref) {\n var name = _ref.name;\n return name === requestingName;\n });\n\n var isRequired = !!requesting && modifiers.some(function (modifier) {\n return modifier.name === requestedName && modifier.enabled && modifier.order < requesting.order;\n });\n\n if (!isRequired) {\n var _requesting = '`' + requestingName + '`';\n var requested = '`' + requestedName + '`';\n console.warn(requested + ' modifier is required by ' + _requesting + ' modifier in order to work, be sure to include it before ' + _requesting + '!');\n }\n return isRequired;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction arrow(data, options) {\n var _data$offsets$arrow;\n\n // arrow depends on keepTogether in order to work\n if (!isModifierRequired(data.instance.modifiers, 'arrow', 'keepTogether')) {\n return data;\n }\n\n var arrowElement = options.element;\n\n // if arrowElement is a string, suppose it's a CSS selector\n if (typeof arrowElement === 'string') {\n arrowElement = data.instance.popper.querySelector(arrowElement);\n\n // if arrowElement is not found, don't run the modifier\n if (!arrowElement) {\n return data;\n }\n } else {\n // if the arrowElement isn't a query selector we must check that the\n // provided DOM node is child of its popper node\n if (!data.instance.popper.contains(arrowElement)) {\n console.warn('WARNING: `arrow.element` must be child of its popper element!');\n return data;\n }\n }\n\n var placement = data.placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isVertical = ['left', 'right'].indexOf(placement) !== -1;\n\n var len = isVertical ? 'height' : 'width';\n var sideCapitalized = isVertical ? 'Top' : 'Left';\n var side = sideCapitalized.toLowerCase();\n var altSide = isVertical ? 'left' : 'top';\n var opSide = isVertical ? 'bottom' : 'right';\n var arrowElementSize = getOuterSizes(arrowElement)[len];\n\n //\n // extends keepTogether behavior making sure the popper and its\n // reference have enough pixels in conjunction\n //\n\n // top/left side\n if (reference[opSide] - arrowElementSize < popper[side]) {\n data.offsets.popper[side] -= popper[side] - (reference[opSide] - arrowElementSize);\n }\n // bottom/right side\n if (reference[side] + arrowElementSize > popper[opSide]) {\n data.offsets.popper[side] += reference[side] + arrowElementSize - popper[opSide];\n }\n data.offsets.popper = getClientRect(data.offsets.popper);\n\n // compute center of the popper\n var center = reference[side] + reference[len] / 2 - arrowElementSize / 2;\n\n // Compute the sideValue using the updated popper offsets\n // take popper margin in account because we don't have this info available\n var css = getStyleComputedProperty(data.instance.popper);\n var popperMarginSide = parseFloat(css['margin' + sideCapitalized]);\n var popperBorderSide = parseFloat(css['border' + sideCapitalized + 'Width']);\n var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;\n\n // prevent arrowElement from being placed not contiguously to its popper\n sideValue = Math.max(Math.min(popper[len] - arrowElementSize, sideValue), 0);\n\n data.arrowElement = arrowElement;\n data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty(_data$offsets$arrow, altSide, ''), _data$offsets$arrow);\n\n return data;\n}\n\n/**\n * Get the opposite placement variation of the given one\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement variation\n * @returns {String} flipped placement variation\n */\nfunction getOppositeVariation(variation) {\n if (variation === 'end') {\n return 'start';\n } else if (variation === 'start') {\n return 'end';\n }\n return variation;\n}\n\n/**\n * List of accepted placements to use as values of the `placement` option.
    \n * Valid placements are:\n * - `auto`\n * - `top`\n * - `right`\n * - `bottom`\n * - `left`\n *\n * Each placement can have a variation from this list:\n * - `-start`\n * - `-end`\n *\n * Variations are interpreted easily if you think of them as the left to right\n * written languages. Horizontally (`top` and `bottom`), `start` is left and `end`\n * is right.
    \n * Vertically (`left` and `right`), `start` is top and `end` is bottom.\n *\n * Some valid examples are:\n * - `top-end` (on top of reference, right aligned)\n * - `right-start` (on right of reference, top aligned)\n * - `bottom` (on bottom, centered)\n * - `auto-end` (on the side with more space available, alignment depends by placement)\n *\n * @static\n * @type {Array}\n * @enum {String}\n * @readonly\n * @method placements\n * @memberof Popper\n */\nvar placements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];\n\n// Get rid of `auto` `auto-start` and `auto-end`\nvar validPlacements = placements.slice(3);\n\n/**\n * Given an initial placement, returns all the subsequent placements\n * clockwise (or counter-clockwise).\n *\n * @method\n * @memberof Popper.Utils\n * @argument {String} placement - A valid placement (it accepts variations)\n * @argument {Boolean} counter - Set to true to walk the placements counterclockwise\n * @returns {Array} placements including their variations\n */\nfunction clockwise(placement) {\n var counter = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n\n var index = validPlacements.indexOf(placement);\n var arr = validPlacements.slice(index + 1).concat(validPlacements.slice(0, index));\n return counter ? arr.reverse() : arr;\n}\n\nvar BEHAVIORS = {\n FLIP: 'flip',\n CLOCKWISE: 'clockwise',\n COUNTERCLOCKWISE: 'counterclockwise'\n};\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction flip(data, options) {\n // if `inner` modifier is enabled, we can't use the `flip` modifier\n if (isModifierEnabled(data.instance.modifiers, 'inner')) {\n return data;\n }\n\n if (data.flipped && data.placement === data.originalPlacement) {\n // seems like flip is trying to loop, probably there's not enough space on any of the flippable sides\n return data;\n }\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, options.boundariesElement, data.positionFixed);\n\n var placement = data.placement.split('-')[0];\n var placementOpposite = getOppositePlacement(placement);\n var variation = data.placement.split('-')[1] || '';\n\n var flipOrder = [];\n\n switch (options.behavior) {\n case BEHAVIORS.FLIP:\n flipOrder = [placement, placementOpposite];\n break;\n case BEHAVIORS.CLOCKWISE:\n flipOrder = clockwise(placement);\n break;\n case BEHAVIORS.COUNTERCLOCKWISE:\n flipOrder = clockwise(placement, true);\n break;\n default:\n flipOrder = options.behavior;\n }\n\n flipOrder.forEach(function (step, index) {\n if (placement !== step || flipOrder.length === index + 1) {\n return data;\n }\n\n placement = data.placement.split('-')[0];\n placementOpposite = getOppositePlacement(placement);\n\n var popperOffsets = data.offsets.popper;\n var refOffsets = data.offsets.reference;\n\n // using floor because the reference offsets may contain decimals we are not going to consider here\n var floor = Math.floor;\n var overlapsRef = placement === 'left' && floor(popperOffsets.right) > floor(refOffsets.left) || placement === 'right' && floor(popperOffsets.left) < floor(refOffsets.right) || placement === 'top' && floor(popperOffsets.bottom) > floor(refOffsets.top) || placement === 'bottom' && floor(popperOffsets.top) < floor(refOffsets.bottom);\n\n var overflowsLeft = floor(popperOffsets.left) < floor(boundaries.left);\n var overflowsRight = floor(popperOffsets.right) > floor(boundaries.right);\n var overflowsTop = floor(popperOffsets.top) < floor(boundaries.top);\n var overflowsBottom = floor(popperOffsets.bottom) > floor(boundaries.bottom);\n\n var overflowsBoundaries = placement === 'left' && overflowsLeft || placement === 'right' && overflowsRight || placement === 'top' && overflowsTop || placement === 'bottom' && overflowsBottom;\n\n // flip the variation if required\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n\n // flips variation if reference element overflows boundaries\n var flippedVariationByRef = !!options.flipVariations && (isVertical && variation === 'start' && overflowsLeft || isVertical && variation === 'end' && overflowsRight || !isVertical && variation === 'start' && overflowsTop || !isVertical && variation === 'end' && overflowsBottom);\n\n // flips variation if popper content overflows boundaries\n var flippedVariationByContent = !!options.flipVariationsByContent && (isVertical && variation === 'start' && overflowsRight || isVertical && variation === 'end' && overflowsLeft || !isVertical && variation === 'start' && overflowsBottom || !isVertical && variation === 'end' && overflowsTop);\n\n var flippedVariation = flippedVariationByRef || flippedVariationByContent;\n\n if (overlapsRef || overflowsBoundaries || flippedVariation) {\n // this boolean to detect any flip loop\n data.flipped = true;\n\n if (overlapsRef || overflowsBoundaries) {\n placement = flipOrder[index + 1];\n }\n\n if (flippedVariation) {\n variation = getOppositeVariation(variation);\n }\n\n data.placement = placement + (variation ? '-' + variation : '');\n\n // this object contains `position`, we want to preserve it along with\n // any additional property we may add in the future\n data.offsets.popper = _extends({}, data.offsets.popper, getPopperOffsets(data.instance.popper, data.offsets.reference, data.placement));\n\n data = runModifiers(data.instance.modifiers, data, 'flip');\n }\n });\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction keepTogether(data) {\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var placement = data.placement.split('-')[0];\n var floor = Math.floor;\n var isVertical = ['top', 'bottom'].indexOf(placement) !== -1;\n var side = isVertical ? 'right' : 'bottom';\n var opSide = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n if (popper[side] < floor(reference[opSide])) {\n data.offsets.popper[opSide] = floor(reference[opSide]) - popper[measurement];\n }\n if (popper[opSide] > floor(reference[side])) {\n data.offsets.popper[opSide] = floor(reference[side]);\n }\n\n return data;\n}\n\n/**\n * Converts a string containing value + unit into a px value number\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} str - Value + unit string\n * @argument {String} measurement - `height` or `width`\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @returns {Number|String}\n * Value in pixels, or original string if no values were extracted\n */\nfunction toValue(str, measurement, popperOffsets, referenceOffsets) {\n // separate value from unit\n var split = str.match(/((?:\\-|\\+)?\\d*\\.?\\d*)(.*)/);\n var value = +split[1];\n var unit = split[2];\n\n // If it's not a number it's an operator, I guess\n if (!value) {\n return str;\n }\n\n if (unit.indexOf('%') === 0) {\n var element = void 0;\n switch (unit) {\n case '%p':\n element = popperOffsets;\n break;\n case '%':\n case '%r':\n default:\n element = referenceOffsets;\n }\n\n var rect = getClientRect(element);\n return rect[measurement] / 100 * value;\n } else if (unit === 'vh' || unit === 'vw') {\n // if is a vh or vw, we calculate the size based on the viewport\n var size = void 0;\n if (unit === 'vh') {\n size = Math.max(document.documentElement.clientHeight, window.innerHeight || 0);\n } else {\n size = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);\n }\n return size / 100 * value;\n } else {\n // if is an explicit pixel unit, we get rid of the unit and keep the value\n // if is an implicit unit, it's px, and we return just the value\n return value;\n }\n}\n\n/**\n * Parse an `offset` string to extrapolate `x` and `y` numeric offsets.\n * @function\n * @memberof {modifiers~offset}\n * @private\n * @argument {String} offset\n * @argument {Object} popperOffsets\n * @argument {Object} referenceOffsets\n * @argument {String} basePlacement\n * @returns {Array} a two cells array with x and y offsets in numbers\n */\nfunction parseOffset(offset, popperOffsets, referenceOffsets, basePlacement) {\n var offsets = [0, 0];\n\n // Use height if placement is left or right and index is 0 otherwise use width\n // in this way the first offset will use an axis and the second one\n // will use the other one\n var useHeight = ['right', 'left'].indexOf(basePlacement) !== -1;\n\n // Split the offset string to obtain a list of values and operands\n // The regex addresses values with the plus or minus sign in front (+10, -20, etc)\n var fragments = offset.split(/(\\+|\\-)/).map(function (frag) {\n return frag.trim();\n });\n\n // Detect if the offset string contains a pair of values or a single one\n // they could be separated by comma or space\n var divider = fragments.indexOf(find(fragments, function (frag) {\n return frag.search(/,|\\s/) !== -1;\n }));\n\n if (fragments[divider] && fragments[divider].indexOf(',') === -1) {\n console.warn('Offsets separated by white space(s) are deprecated, use a comma (,) instead.');\n }\n\n // If divider is found, we divide the list of values and operands to divide\n // them by ofset X and Y.\n var splitRegex = /\\s*,\\s*|\\s+/;\n var ops = divider !== -1 ? [fragments.slice(0, divider).concat([fragments[divider].split(splitRegex)[0]]), [fragments[divider].split(splitRegex)[1]].concat(fragments.slice(divider + 1))] : [fragments];\n\n // Convert the values with units to absolute pixels to allow our computations\n ops = ops.map(function (op, index) {\n // Most of the units rely on the orientation of the popper\n var measurement = (index === 1 ? !useHeight : useHeight) ? 'height' : 'width';\n var mergeWithPrevious = false;\n return op\n // This aggregates any `+` or `-` sign that aren't considered operators\n // e.g.: 10 + +5 => [10, +, +5]\n .reduce(function (a, b) {\n if (a[a.length - 1] === '' && ['+', '-'].indexOf(b) !== -1) {\n a[a.length - 1] = b;\n mergeWithPrevious = true;\n return a;\n } else if (mergeWithPrevious) {\n a[a.length - 1] += b;\n mergeWithPrevious = false;\n return a;\n } else {\n return a.concat(b);\n }\n }, [])\n // Here we convert the string values into number values (in px)\n .map(function (str) {\n return toValue(str, measurement, popperOffsets, referenceOffsets);\n });\n });\n\n // Loop trough the offsets arrays and execute the operations\n ops.forEach(function (op, index) {\n op.forEach(function (frag, index2) {\n if (isNumeric(frag)) {\n offsets[index] += frag * (op[index2 - 1] === '-' ? -1 : 1);\n }\n });\n });\n return offsets;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @argument {Number|String} options.offset=0\n * The offset value as described in the modifier description\n * @returns {Object} The data object, properly modified\n */\nfunction offset(data, _ref) {\n var offset = _ref.offset;\n var placement = data.placement,\n _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var basePlacement = placement.split('-')[0];\n\n var offsets = void 0;\n if (isNumeric(+offset)) {\n offsets = [+offset, 0];\n } else {\n offsets = parseOffset(offset, popper, reference, basePlacement);\n }\n\n if (basePlacement === 'left') {\n popper.top += offsets[0];\n popper.left -= offsets[1];\n } else if (basePlacement === 'right') {\n popper.top += offsets[0];\n popper.left += offsets[1];\n } else if (basePlacement === 'top') {\n popper.left += offsets[0];\n popper.top -= offsets[1];\n } else if (basePlacement === 'bottom') {\n popper.left += offsets[0];\n popper.top += offsets[1];\n }\n\n data.popper = popper;\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction preventOverflow(data, options) {\n var boundariesElement = options.boundariesElement || getOffsetParent(data.instance.popper);\n\n // If offsetParent is the reference element, we really want to\n // go one step up and use the next offsetParent as reference to\n // avoid to make this modifier completely useless and look like broken\n if (data.instance.reference === boundariesElement) {\n boundariesElement = getOffsetParent(boundariesElement);\n }\n\n // NOTE: DOM access here\n // resets the popper's position so that the document size can be calculated excluding\n // the size of the popper element itself\n var transformProp = getSupportedPropertyName('transform');\n var popperStyles = data.instance.popper.style; // assignment to help minification\n var top = popperStyles.top,\n left = popperStyles.left,\n transform = popperStyles[transformProp];\n\n popperStyles.top = '';\n popperStyles.left = '';\n popperStyles[transformProp] = '';\n\n var boundaries = getBoundaries(data.instance.popper, data.instance.reference, options.padding, boundariesElement, data.positionFixed);\n\n // NOTE: DOM access here\n // restores the original style properties after the offsets have been computed\n popperStyles.top = top;\n popperStyles.left = left;\n popperStyles[transformProp] = transform;\n\n options.boundaries = boundaries;\n\n var order = options.priority;\n var popper = data.offsets.popper;\n\n var check = {\n primary: function primary(placement) {\n var value = popper[placement];\n if (popper[placement] < boundaries[placement] && !options.escapeWithReference) {\n value = Math.max(popper[placement], boundaries[placement]);\n }\n return defineProperty({}, placement, value);\n },\n secondary: function secondary(placement) {\n var mainSide = placement === 'right' ? 'left' : 'top';\n var value = popper[mainSide];\n if (popper[placement] > boundaries[placement] && !options.escapeWithReference) {\n value = Math.min(popper[mainSide], boundaries[placement] - (placement === 'right' ? popper.width : popper.height));\n }\n return defineProperty({}, mainSide, value);\n }\n };\n\n order.forEach(function (placement) {\n var side = ['left', 'top'].indexOf(placement) !== -1 ? 'primary' : 'secondary';\n popper = _extends({}, popper, check[side](placement));\n });\n\n data.offsets.popper = popper;\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction shift(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var shiftvariation = placement.split('-')[1];\n\n // if shift shiftvariation is specified, run the modifier\n if (shiftvariation) {\n var _data$offsets = data.offsets,\n reference = _data$offsets.reference,\n popper = _data$offsets.popper;\n\n var isVertical = ['bottom', 'top'].indexOf(basePlacement) !== -1;\n var side = isVertical ? 'left' : 'top';\n var measurement = isVertical ? 'width' : 'height';\n\n var shiftOffsets = {\n start: defineProperty({}, side, reference[side]),\n end: defineProperty({}, side, reference[side] + reference[measurement] - popper[measurement])\n };\n\n data.offsets.popper = _extends({}, popper, shiftOffsets[shiftvariation]);\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by update method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction hide(data) {\n if (!isModifierRequired(data.instance.modifiers, 'hide', 'preventOverflow')) {\n return data;\n }\n\n var refRect = data.offsets.reference;\n var bound = find(data.instance.modifiers, function (modifier) {\n return modifier.name === 'preventOverflow';\n }).boundaries;\n\n if (refRect.bottom < bound.top || refRect.left > bound.right || refRect.top > bound.bottom || refRect.right < bound.left) {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === true) {\n return data;\n }\n\n data.hide = true;\n data.attributes['x-out-of-boundaries'] = '';\n } else {\n // Avoid unnecessary DOM access if visibility hasn't changed\n if (data.hide === false) {\n return data;\n }\n\n data.hide = false;\n data.attributes['x-out-of-boundaries'] = false;\n }\n\n return data;\n}\n\n/**\n * @function\n * @memberof Modifiers\n * @argument {Object} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {Object} The data object, properly modified\n */\nfunction inner(data) {\n var placement = data.placement;\n var basePlacement = placement.split('-')[0];\n var _data$offsets = data.offsets,\n popper = _data$offsets.popper,\n reference = _data$offsets.reference;\n\n var isHoriz = ['left', 'right'].indexOf(basePlacement) !== -1;\n\n var subtractLength = ['top', 'left'].indexOf(basePlacement) === -1;\n\n popper[isHoriz ? 'left' : 'top'] = reference[basePlacement] - (subtractLength ? popper[isHoriz ? 'width' : 'height'] : 0);\n\n data.placement = getOppositePlacement(placement);\n data.offsets.popper = getClientRect(popper);\n\n return data;\n}\n\n/**\n * Modifier function, each modifier can have a function of this type assigned\n * to its `fn` property.
    \n * These functions will be called on each update, this means that you must\n * make sure they are performant enough to avoid performance bottlenecks.\n *\n * @function ModifierFn\n * @argument {dataObject} data - The data object generated by `update` method\n * @argument {Object} options - Modifiers configuration and options\n * @returns {dataObject} The data object, properly modified\n */\n\n/**\n * Modifiers are plugins used to alter the behavior of your poppers.
    \n * Popper.js uses a set of 9 modifiers to provide all the basic functionalities\n * needed by the library.\n *\n * Usually you don't want to override the `order`, `fn` and `onLoad` props.\n * All the other properties are configurations that could be tweaked.\n * @namespace modifiers\n */\nvar modifiers = {\n /**\n * Modifier used to shift the popper on the start or end of its reference\n * element.
    \n * It will read the variation of the `placement` property.
    \n * It can be one either `-end` or `-start`.\n * @memberof modifiers\n * @inner\n */\n shift: {\n /** @prop {number} order=100 - Index used to define the order of execution */\n order: 100,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: shift\n },\n\n /**\n * The `offset` modifier can shift your popper on both its axis.\n *\n * It accepts the following units:\n * - `px` or unit-less, interpreted as pixels\n * - `%` or `%r`, percentage relative to the length of the reference element\n * - `%p`, percentage relative to the length of the popper element\n * - `vw`, CSS viewport width unit\n * - `vh`, CSS viewport height unit\n *\n * For length is intended the main axis relative to the placement of the popper.
    \n * This means that if the placement is `top` or `bottom`, the length will be the\n * `width`. In case of `left` or `right`, it will be the `height`.\n *\n * You can provide a single value (as `Number` or `String`), or a pair of values\n * as `String` divided by a comma or one (or more) white spaces.
    \n * The latter is a deprecated method because it leads to confusion and will be\n * removed in v2.
    \n * Additionally, it accepts additions and subtractions between different units.\n * Note that multiplications and divisions aren't supported.\n *\n * Valid examples are:\n * ```\n * 10\n * '10%'\n * '10, 10'\n * '10%, 10'\n * '10 + 10%'\n * '10 - 5vh + 3%'\n * '-10px + 5vh, 5px - 6%'\n * ```\n * > **NB**: If you desire to apply offsets to your poppers in a way that may make them overlap\n * > with their reference element, unfortunately, you will have to disable the `flip` modifier.\n * > You can read more on this at this [issue](https://github.com/FezVrasta/popper.js/issues/373).\n *\n * @memberof modifiers\n * @inner\n */\n offset: {\n /** @prop {number} order=200 - Index used to define the order of execution */\n order: 200,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: offset,\n /** @prop {Number|String} offset=0\n * The offset value as described in the modifier description\n */\n offset: 0\n },\n\n /**\n * Modifier used to prevent the popper from being positioned outside the boundary.\n *\n * A scenario exists where the reference itself is not within the boundaries.
    \n * We can say it has \"escaped the boundaries\" — or just \"escaped\".
    \n * In this case we need to decide whether the popper should either:\n *\n * - detach from the reference and remain \"trapped\" in the boundaries, or\n * - if it should ignore the boundary and \"escape with its reference\"\n *\n * When `escapeWithReference` is set to`true` and reference is completely\n * outside its boundaries, the popper will overflow (or completely leave)\n * the boundaries in order to remain attached to the edge of the reference.\n *\n * @memberof modifiers\n * @inner\n */\n preventOverflow: {\n /** @prop {number} order=300 - Index used to define the order of execution */\n order: 300,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: preventOverflow,\n /**\n * @prop {Array} [priority=['left','right','top','bottom']]\n * Popper will try to prevent overflow following these priorities by default,\n * then, it could overflow on the left and on top of the `boundariesElement`\n */\n priority: ['left', 'right', 'top', 'bottom'],\n /**\n * @prop {number} padding=5\n * Amount of pixel used to define a minimum distance between the boundaries\n * and the popper. This makes sure the popper always has a little padding\n * between the edges of its container\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='scrollParent'\n * Boundaries used by the modifier. Can be `scrollParent`, `window`,\n * `viewport` or any DOM element.\n */\n boundariesElement: 'scrollParent'\n },\n\n /**\n * Modifier used to make sure the reference and its popper stay near each other\n * without leaving any gap between the two. Especially useful when the arrow is\n * enabled and you want to ensure that it points to its reference element.\n * It cares only about the first axis. You can still have poppers with margin\n * between the popper and its reference element.\n * @memberof modifiers\n * @inner\n */\n keepTogether: {\n /** @prop {number} order=400 - Index used to define the order of execution */\n order: 400,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: keepTogether\n },\n\n /**\n * This modifier is used to move the `arrowElement` of the popper to make\n * sure it is positioned between the reference element and its popper element.\n * It will read the outer size of the `arrowElement` node to detect how many\n * pixels of conjunction are needed.\n *\n * It has no effect if no `arrowElement` is provided.\n * @memberof modifiers\n * @inner\n */\n arrow: {\n /** @prop {number} order=500 - Index used to define the order of execution */\n order: 500,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: arrow,\n /** @prop {String|HTMLElement} element='[x-arrow]' - Selector or node used as arrow */\n element: '[x-arrow]'\n },\n\n /**\n * Modifier used to flip the popper's placement when it starts to overlap its\n * reference element.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n *\n * **NOTE:** this modifier will interrupt the current update cycle and will\n * restart it if it detects the need to flip the placement.\n * @memberof modifiers\n * @inner\n */\n flip: {\n /** @prop {number} order=600 - Index used to define the order of execution */\n order: 600,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: flip,\n /**\n * @prop {String|Array} behavior='flip'\n * The behavior used to change the popper's placement. It can be one of\n * `flip`, `clockwise`, `counterclockwise` or an array with a list of valid\n * placements (with optional variations)\n */\n behavior: 'flip',\n /**\n * @prop {number} padding=5\n * The popper will flip if it hits the edges of the `boundariesElement`\n */\n padding: 5,\n /**\n * @prop {String|HTMLElement} boundariesElement='viewport'\n * The element which will define the boundaries of the popper position.\n * The popper will never be placed outside of the defined boundaries\n * (except if `keepTogether` is enabled)\n */\n boundariesElement: 'viewport',\n /**\n * @prop {Boolean} flipVariations=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the reference element overlaps its boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariations: false,\n /**\n * @prop {Boolean} flipVariationsByContent=false\n * The popper will switch placement variation between `-start` and `-end` when\n * the popper element overlaps its reference boundaries.\n *\n * The original placement should have a set variation.\n */\n flipVariationsByContent: false\n },\n\n /**\n * Modifier used to make the popper flow toward the inner of the reference element.\n * By default, when this modifier is disabled, the popper will be placed outside\n * the reference element.\n * @memberof modifiers\n * @inner\n */\n inner: {\n /** @prop {number} order=700 - Index used to define the order of execution */\n order: 700,\n /** @prop {Boolean} enabled=false - Whether the modifier is enabled or not */\n enabled: false,\n /** @prop {ModifierFn} */\n fn: inner\n },\n\n /**\n * Modifier used to hide the popper when its reference element is outside of the\n * popper boundaries. It will set a `x-out-of-boundaries` attribute which can\n * be used to hide with a CSS selector the popper when its reference is\n * out of boundaries.\n *\n * Requires the `preventOverflow` modifier before it in order to work.\n * @memberof modifiers\n * @inner\n */\n hide: {\n /** @prop {number} order=800 - Index used to define the order of execution */\n order: 800,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: hide\n },\n\n /**\n * Computes the style that will be applied to the popper element to gets\n * properly positioned.\n *\n * Note that this modifier will not touch the DOM, it just prepares the styles\n * so that `applyStyle` modifier can apply it. This separation is useful\n * in case you need to replace `applyStyle` with a custom implementation.\n *\n * This modifier has `850` as `order` value to maintain backward compatibility\n * with previous versions of Popper.js. Expect the modifiers ordering method\n * to change in future major versions of the library.\n *\n * @memberof modifiers\n * @inner\n */\n computeStyle: {\n /** @prop {number} order=850 - Index used to define the order of execution */\n order: 850,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: computeStyle,\n /**\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: true,\n /**\n * @prop {string} [x='bottom']\n * Where to anchor the X axis (`bottom` or `top`). AKA X offset origin.\n * Change this if your popper should grow in a direction different from `bottom`\n */\n x: 'bottom',\n /**\n * @prop {string} [x='left']\n * Where to anchor the Y axis (`left` or `right`). AKA Y offset origin.\n * Change this if your popper should grow in a direction different from `right`\n */\n y: 'right'\n },\n\n /**\n * Applies the computed styles to the popper element.\n *\n * All the DOM manipulations are limited to this modifier. This is useful in case\n * you want to integrate Popper.js inside a framework or view library and you\n * want to delegate all the DOM manipulations to it.\n *\n * Note that if you disable this modifier, you must make sure the popper element\n * has its position set to `absolute` before Popper.js can do its work!\n *\n * Just disable this modifier and define your own to achieve the desired effect.\n *\n * @memberof modifiers\n * @inner\n */\n applyStyle: {\n /** @prop {number} order=900 - Index used to define the order of execution */\n order: 900,\n /** @prop {Boolean} enabled=true - Whether the modifier is enabled or not */\n enabled: true,\n /** @prop {ModifierFn} */\n fn: applyStyle,\n /** @prop {Function} */\n onLoad: applyStyleOnLoad,\n /**\n * @deprecated since version 1.10.0, the property moved to `computeStyle` modifier\n * @prop {Boolean} gpuAcceleration=true\n * If true, it uses the CSS 3D transformation to position the popper.\n * Otherwise, it will use the `top` and `left` properties\n */\n gpuAcceleration: undefined\n }\n};\n\n/**\n * The `dataObject` is an object containing all the information used by Popper.js.\n * This object is passed to modifiers and to the `onCreate` and `onUpdate` callbacks.\n * @name dataObject\n * @property {Object} data.instance The Popper.js instance\n * @property {String} data.placement Placement applied to popper\n * @property {String} data.originalPlacement Placement originally defined on init\n * @property {Boolean} data.flipped True if popper has been flipped by flip modifier\n * @property {Boolean} data.hide True if the reference element is out of boundaries, useful to know when to hide the popper\n * @property {HTMLElement} data.arrowElement Node used as arrow by arrow modifier\n * @property {Object} data.styles Any CSS property defined here will be applied to the popper. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.arrowStyles Any CSS property defined here will be applied to the popper arrow. It expects the JavaScript nomenclature (eg. `marginBottom`)\n * @property {Object} data.boundaries Offsets of the popper boundaries\n * @property {Object} data.offsets The measurements of popper, reference and arrow elements\n * @property {Object} data.offsets.popper `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.reference `top`, `left`, `width`, `height` values\n * @property {Object} data.offsets.arrow] `top` and `left` offsets, only one of them will be different from 0\n */\n\n/**\n * Default options provided to Popper.js constructor.
    \n * These can be overridden using the `options` argument of Popper.js.
    \n * To override an option, simply pass an object with the same\n * structure of the `options` object, as the 3rd argument. For example:\n * ```\n * new Popper(ref, pop, {\n * modifiers: {\n * preventOverflow: { enabled: false }\n * }\n * })\n * ```\n * @type {Object}\n * @static\n * @memberof Popper\n */\nvar Defaults = {\n /**\n * Popper's placement.\n * @prop {Popper.placements} placement='bottom'\n */\n placement: 'bottom',\n\n /**\n * Set this to true if you want popper to position it self in 'fixed' mode\n * @prop {Boolean} positionFixed=false\n */\n positionFixed: false,\n\n /**\n * Whether events (resize, scroll) are initially enabled.\n * @prop {Boolean} eventsEnabled=true\n */\n eventsEnabled: true,\n\n /**\n * Set to true if you want to automatically remove the popper when\n * you call the `destroy` method.\n * @prop {Boolean} removeOnDestroy=false\n */\n removeOnDestroy: false,\n\n /**\n * Callback called when the popper is created.
    \n * By default, it is set to no-op.
    \n * Access Popper.js instance with `data.instance`.\n * @prop {onCreate}\n */\n onCreate: function onCreate() {},\n\n /**\n * Callback called when the popper is updated. This callback is not called\n * on the initialization/creation of the popper, but only on subsequent\n * updates.
    \n * By default, it is set to no-op.
    \n * Access Popper.js instance with `data.instance`.\n * @prop {onUpdate}\n */\n onUpdate: function onUpdate() {},\n\n /**\n * List of modifiers used to modify the offsets before they are applied to the popper.\n * They provide most of the functionalities of Popper.js.\n * @prop {modifiers}\n */\n modifiers: modifiers\n};\n\n/**\n * @callback onCreate\n * @param {dataObject} data\n */\n\n/**\n * @callback onUpdate\n * @param {dataObject} data\n */\n\n// Utils\n// Methods\nvar Popper = function () {\n /**\n * Creates a new Popper.js instance.\n * @class Popper\n * @param {Element|referenceObject} reference - The reference element used to position the popper\n * @param {Element} popper - The HTML / XML element used as the popper\n * @param {Object} options - Your custom options to override the ones defined in [Defaults](#defaults)\n * @return {Object} instance - The generated Popper.js instance\n */\n function Popper(reference, popper) {\n var _this = this;\n\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n classCallCheck(this, Popper);\n\n this.scheduleUpdate = function () {\n return requestAnimationFrame(_this.update);\n };\n\n // make update() debounced, so that it only runs at most once-per-tick\n this.update = debounce(this.update.bind(this));\n\n // with {} we create a new object with the options inside it\n this.options = _extends({}, Popper.Defaults, options);\n\n // init state\n this.state = {\n isDestroyed: false,\n isCreated: false,\n scrollParents: []\n };\n\n // get reference and popper elements (allow jQuery wrappers)\n this.reference = reference && reference.jquery ? reference[0] : reference;\n this.popper = popper && popper.jquery ? popper[0] : popper;\n\n // Deep merge modifiers options\n this.options.modifiers = {};\n Object.keys(_extends({}, Popper.Defaults.modifiers, options.modifiers)).forEach(function (name) {\n _this.options.modifiers[name] = _extends({}, Popper.Defaults.modifiers[name] || {}, options.modifiers ? options.modifiers[name] : {});\n });\n\n // Refactoring modifiers' list (Object => Array)\n this.modifiers = Object.keys(this.options.modifiers).map(function (name) {\n return _extends({\n name: name\n }, _this.options.modifiers[name]);\n })\n // sort the modifiers by order\n .sort(function (a, b) {\n return a.order - b.order;\n });\n\n // modifiers have the ability to execute arbitrary code when Popper.js get inited\n // such code is executed in the same order of its modifier\n // they could add new properties to their options configuration\n // BE AWARE: don't add options to `options.modifiers.name` but to `modifierOptions`!\n this.modifiers.forEach(function (modifierOptions) {\n if (modifierOptions.enabled && isFunction(modifierOptions.onLoad)) {\n modifierOptions.onLoad(_this.reference, _this.popper, _this.options, modifierOptions, _this.state);\n }\n });\n\n // fire the first update to position the popper in the right place\n this.update();\n\n var eventsEnabled = this.options.eventsEnabled;\n if (eventsEnabled) {\n // setup event listeners, they will take care of update the position in specific situations\n this.enableEventListeners();\n }\n\n this.state.eventsEnabled = eventsEnabled;\n }\n\n // We can't use class properties because they don't get listed in the\n // class prototype and break stuff like Sinon stubs\n\n\n createClass(Popper, [{\n key: 'update',\n value: function update$$1() {\n return update.call(this);\n }\n }, {\n key: 'destroy',\n value: function destroy$$1() {\n return destroy.call(this);\n }\n }, {\n key: 'enableEventListeners',\n value: function enableEventListeners$$1() {\n return enableEventListeners.call(this);\n }\n }, {\n key: 'disableEventListeners',\n value: function disableEventListeners$$1() {\n return disableEventListeners.call(this);\n }\n\n /**\n * Schedules an update. It will run on the next UI update available.\n * @method scheduleUpdate\n * @memberof Popper\n */\n\n\n /**\n * Collection of utilities useful when writing custom modifiers.\n * Starting from version 1.7, this method is available only if you\n * include `popper-utils.js` before `popper.js`.\n *\n * **DEPRECATION**: This way to access PopperUtils is deprecated\n * and will be removed in v2! Use the PopperUtils module directly instead.\n * Due to the high instability of the methods contained in Utils, we can't\n * guarantee them to follow semver. Use them at your own risk!\n * @static\n * @private\n * @type {Object}\n * @deprecated since version 1.8\n * @member Utils\n * @memberof Popper\n */\n\n }]);\n return Popper;\n}();\n\n/**\n * The `referenceObject` is an object that provides an interface compatible with Popper.js\n * and lets you use it as replacement of a real DOM node.
    \n * You can use this method to position a popper relatively to a set of coordinates\n * in case you don't have a DOM node to use as reference.\n *\n * ```\n * new Popper(referenceObject, popperNode);\n * ```\n *\n * NB: This feature isn't supported in Internet Explorer 10.\n * @name referenceObject\n * @property {Function} data.getBoundingClientRect\n * A function that returns a set of coordinates compatible with the native `getBoundingClientRect` method.\n * @property {number} data.clientWidth\n * An ES6 getter that will return the width of the virtual reference element.\n * @property {number} data.clientHeight\n * An ES6 getter that will return the height of the virtual reference element.\n */\n\n\nPopper.Utils = (typeof window !== 'undefined' ? window : global).PopperUtils;\nPopper.placements = placements;\nPopper.Defaults = Defaults;\n\nexport default Popper;\n//# sourceMappingURL=popper.js.map\n","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nvar _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }\n\nimport { Component, createElement } from 'react';\nimport PropTypes from 'prop-types';\nimport PopperJS from 'popper.js';\n\nexport var placements = PopperJS.placements;\n\nvar Popper = function (_Component) {\n _inherits(Popper, _Component);\n\n function Popper() {\n var _ref;\n\n var _temp, _this, _ret;\n\n _classCallCheck(this, Popper);\n\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = Popper.__proto__ || Object.getPrototypeOf(Popper)).call.apply(_ref, [this].concat(args))), _this), _this.state = {}, _this._setArrowNode = function (node) {\n _this._arrowNode = node;\n }, _this._getTargetNode = function () {\n if (_this.props.target) {\n return _this.props.target;\n } else if (!_this.context.popperManager || !_this.context.popperManager.getTargetNode()) {\n throw new Error('Target missing. Popper must be given a target from the Popper Manager, or as a prop.');\n }\n return _this.context.popperManager.getTargetNode();\n }, _this._getOffsets = function (data) {\n return Object.keys(data.offsets).map(function (key) {\n return data.offsets[key];\n });\n }, _this._isDataDirty = function (data) {\n if (_this.state.data) {\n return JSON.stringify(_this._getOffsets(_this.state.data)) !== JSON.stringify(_this._getOffsets(data));\n } else {\n return true;\n }\n }, _this._updateStateModifier = {\n enabled: true,\n order: 900,\n fn: function fn(data) {\n if (_this._isDataDirty(data)) {\n _this.setState({ data: data });\n }\n return data;\n }\n }, _this._getPopperStyle = function () {\n var data = _this.state.data;\n\n\n if (!_this._popper || !data) {\n return {\n position: 'absolute',\n pointerEvents: 'none',\n opacity: 0\n };\n }\n\n return _extends({\n position: data.offsets.popper.position\n }, data.styles);\n }, _this._getPopperPlacement = function () {\n return _this.state.data ? _this.state.data.placement : undefined;\n }, _this._getPopperHide = function () {\n return !!_this.state.data && _this.state.data.hide ? '' : undefined;\n }, _this._getArrowStyle = function () {\n if (!_this.state.data || !_this.state.data.offsets.arrow) {\n return {};\n } else {\n var _this$state$data$offs = _this.state.data.offsets.arrow,\n top = _this$state$data$offs.top,\n left = _this$state$data$offs.left;\n\n return { top: top, left: left };\n }\n }, _this._handlePopperRef = function (node) {\n _this._popperNode = node;\n if (node) {\n _this._createPopper();\n } else {\n _this._destroyPopper();\n }\n if (_this.props.innerRef) {\n _this.props.innerRef(node);\n }\n }, _this._scheduleUpdate = function () {\n _this._popper && _this._popper.scheduleUpdate();\n }, _temp), _possibleConstructorReturn(_this, _ret);\n }\n\n _createClass(Popper, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n popper: {\n setArrowNode: this._setArrowNode,\n getArrowStyle: this._getArrowStyle\n }\n };\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(lastProps) {\n if (lastProps.placement !== this.props.placement || lastProps.eventsEnabled !== this.props.eventsEnabled || lastProps.target !== this.props.target) {\n this._destroyPopper();\n this._createPopper();\n }\n if (lastProps.children !== this.props.children) {\n this._scheduleUpdate();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this._destroyPopper();\n }\n }, {\n key: '_createPopper',\n value: function _createPopper() {\n var _this2 = this;\n\n var _props = this.props,\n placement = _props.placement,\n eventsEnabled = _props.eventsEnabled,\n positionFixed = _props.positionFixed;\n\n var modifiers = _extends({}, this.props.modifiers, {\n applyStyle: { enabled: false },\n updateState: this._updateStateModifier\n });\n if (this._arrowNode) {\n modifiers.arrow = _extends({}, this.props.modifiers.arrow || {}, {\n element: this._arrowNode\n });\n }\n this._popper = new PopperJS(this._getTargetNode(), this._popperNode, {\n placement: placement,\n positionFixed: positionFixed,\n eventsEnabled: eventsEnabled,\n modifiers: modifiers\n });\n\n // TODO: look into setTimeout scheduleUpdate call, without it, the popper will not position properly on creation\n setTimeout(function () {\n return _this2._scheduleUpdate();\n });\n }\n }, {\n key: '_destroyPopper',\n value: function _destroyPopper() {\n if (this._popper) {\n this._popper.destroy();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props2 = this.props,\n component = _props2.component,\n innerRef = _props2.innerRef,\n placement = _props2.placement,\n eventsEnabled = _props2.eventsEnabled,\n positionFixed = _props2.positionFixed,\n modifiers = _props2.modifiers,\n children = _props2.children,\n restProps = _objectWithoutProperties(_props2, ['component', 'innerRef', 'placement', 'eventsEnabled', 'positionFixed', 'modifiers', 'children']);\n\n var popperStyle = this._getPopperStyle();\n var popperPlacement = this._getPopperPlacement();\n var popperHide = this._getPopperHide();\n\n if (typeof children === 'function') {\n var popperProps = {\n ref: this._handlePopperRef,\n style: popperStyle,\n 'data-placement': popperPlacement,\n 'data-x-out-of-boundaries': popperHide\n };\n return children({\n popperProps: popperProps,\n restProps: restProps,\n scheduleUpdate: this._scheduleUpdate\n });\n }\n\n var componentProps = _extends({}, restProps, {\n style: _extends({}, restProps.style, popperStyle),\n 'data-placement': popperPlacement,\n 'data-x-out-of-boundaries': popperHide\n });\n\n if (typeof component === 'string') {\n componentProps.ref = this._handlePopperRef;\n } else {\n componentProps.innerRef = this._handlePopperRef;\n }\n\n return createElement(component, componentProps, children);\n }\n }]);\n\n return Popper;\n}(Component);\n\nPopper.contextTypes = {\n popperManager: PropTypes.object\n};\nPopper.childContextTypes = {\n popper: PropTypes.object.isRequired\n};\nPopper.propTypes = {\n component: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n innerRef: PropTypes.func,\n placement: PropTypes.oneOf(placements),\n eventsEnabled: PropTypes.bool,\n positionFixed: PropTypes.bool,\n modifiers: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n target: PropTypes.oneOfType([\n // the following check is needed for SSR\n PropTypes.instanceOf(typeof Element !== 'undefined' ? Element : Object), PropTypes.shape({\n getBoundingClientRect: PropTypes.func.isRequired,\n clientWidth: PropTypes.number.isRequired,\n clientHeight: PropTypes.number.isRequired\n })])\n};\nPopper.defaultProps = {\n component: 'div',\n placement: 'bottom',\n eventsEnabled: true,\n positionFixed: false,\n modifiers: {}\n};\n\n\nexport default Popper;","var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };\n\nfunction _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }\n\nimport { createElement } from 'react';\nimport PropTypes from 'prop-types';\n\nvar Arrow = function Arrow(props, context) {\n var _props$component = props.component,\n component = _props$component === undefined ? 'span' : _props$component,\n innerRef = props.innerRef,\n children = props.children,\n restProps = _objectWithoutProperties(props, ['component', 'innerRef', 'children']);\n\n var popper = context.popper;\n\n var arrowRef = function arrowRef(node) {\n popper.setArrowNode(node);\n if (typeof innerRef === 'function') {\n innerRef(node);\n }\n };\n var arrowStyle = popper.getArrowStyle();\n\n if (typeof children === 'function') {\n var arrowProps = {\n ref: arrowRef,\n style: arrowStyle\n };\n return children({ arrowProps: arrowProps, restProps: restProps });\n }\n\n var componentProps = _extends({}, restProps, {\n style: _extends({}, arrowStyle, restProps.style)\n });\n\n if (typeof component === 'string') {\n componentProps.ref = arrowRef;\n } else {\n componentProps.innerRef = arrowRef;\n }\n\n return createElement(component, componentProps, children);\n};\n\nArrow.contextTypes = {\n popper: PropTypes.object.isRequired\n};\n\nArrow.propTypes = {\n component: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n innerRef: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func])\n};\n\nexport default Arrow;","import React, { Component } from 'react';\nimport PropTypes from 'prop-types';\nimport classNames from 'classnames';\nimport isFunction from 'lodash.isfunction';\nimport isobject from 'lodash.isobject';\nimport ReactDOM from 'react-dom';\nimport { Arrow, Manager, Popper, Target } from 'react-popper';\nimport toNumber from 'lodash.tonumber';\nimport { polyfill } from 'react-lifecycles-compat';\n\nvar _typeof = typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\" ? function (obj) {\n return typeof obj;\n} : function (obj) {\n return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj;\n};\n\n\n\n\n\n\n\n\n\n\n\nvar classCallCheck = function (instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n};\n\nvar createClass = function () {\n function defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n }\n\n return function (Constructor, protoProps, staticProps) {\n if (protoProps) defineProperties(Constructor.prototype, protoProps);\n if (staticProps) defineProperties(Constructor, staticProps);\n return Constructor;\n };\n}();\n\n\n\n\n\nvar defineProperty = function (obj, key, value) {\n if (key in obj) {\n Object.defineProperty(obj, key, {\n value: value,\n enumerable: true,\n configurable: true,\n writable: true\n });\n } else {\n obj[key] = value;\n }\n\n return obj;\n};\n\nvar _extends = Object.assign || function (target) {\n for (var i = 1; i < arguments.length; i++) {\n var source = arguments[i];\n\n for (var key in source) {\n if (Object.prototype.hasOwnProperty.call(source, key)) {\n target[key] = source[key];\n }\n }\n }\n\n return target;\n};\n\n\n\nvar inherits = function (subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + typeof superClass);\n }\n\n subClass.prototype = Object.create(superClass && superClass.prototype, {\n constructor: {\n value: subClass,\n enumerable: false,\n writable: true,\n configurable: true\n }\n });\n if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n};\n\n\n\n\n\n\n\n\n\nvar objectWithoutProperties = function (obj, keys) {\n var target = {};\n\n for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;\n if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;\n target[i] = obj[i];\n }\n\n return target;\n};\n\nvar possibleConstructorReturn = function (self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }\n\n return call && (typeof call === \"object\" || typeof call === \"function\") ? call : self;\n};\n\n// https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/js/src/modal.js#L436-L443\nfunction getScrollbarWidth() {\n var scrollDiv = document.createElement('div');\n // .modal-scrollbar-measure styles // https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.4/scss/_modal.scss#L106-L113\n scrollDiv.style.position = 'absolute';\n scrollDiv.style.top = '-9999px';\n scrollDiv.style.width = '50px';\n scrollDiv.style.height = '50px';\n scrollDiv.style.overflow = 'scroll';\n document.body.appendChild(scrollDiv);\n var scrollbarWidth = scrollDiv.offsetWidth - scrollDiv.clientWidth;\n document.body.removeChild(scrollDiv);\n return scrollbarWidth;\n}\n\nfunction setScrollbarWidth(padding) {\n document.body.style.paddingRight = padding > 0 ? padding + 'px' : null;\n}\n\nfunction isBodyOverflowing() {\n return document.body.clientWidth < window.innerWidth;\n}\n\nfunction getOriginalBodyPadding() {\n var style = window.getComputedStyle(document.body, null);\n\n return parseInt(style && style.getPropertyValue('padding-right') || 0, 10);\n}\n\nfunction conditionallyUpdateScrollbar() {\n var scrollbarWidth = getScrollbarWidth();\n // https://github.com/twbs/bootstrap/blob/v4.0.0-alpha.6/js/src/modal.js#L433\n var fixedContent = document.querySelectorAll('.fixed-top, .fixed-bottom, .is-fixed, .sticky-top')[0];\n var bodyPadding = fixedContent ? parseInt(fixedContent.style.paddingRight || 0, 10) : 0;\n\n if (isBodyOverflowing()) {\n setScrollbarWidth(bodyPadding + scrollbarWidth);\n }\n}\n\nvar globalCssModule = void 0;\n\nfunction setGlobalCssModule(cssModule) {\n globalCssModule = cssModule;\n}\n\nfunction mapToCssModules() {\n var className = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';\n var cssModule = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : globalCssModule;\n\n if (!cssModule) return className;\n return className.split(' ').map(function (c) {\n return cssModule[c] || c;\n }).join(' ');\n}\n\n/**\n * Returns a new object with the key/value pairs from `obj` that are not in the array `omitKeys`.\n */\nfunction omit(obj, omitKeys) {\n var result = {};\n Object.keys(obj).forEach(function (key) {\n if (omitKeys.indexOf(key) === -1) {\n result[key] = obj[key];\n }\n });\n return result;\n}\n\n/**\n * Returns a filtered copy of an object with only the specified keys.\n */\nfunction pick(obj, keys) {\n var pickKeys = Array.isArray(keys) ? keys : [keys];\n var length = pickKeys.length;\n var key = void 0;\n var result = {};\n\n while (length > 0) {\n length -= 1;\n key = pickKeys[length];\n result[key] = obj[key];\n }\n return result;\n}\n\nvar warned = {};\n\nfunction warnOnce(message) {\n if (!warned[message]) {\n /* istanbul ignore else */\n if (typeof console !== 'undefined') {\n console.error(message); // eslint-disable-line no-console\n }\n warned[message] = true;\n }\n}\n\nfunction deprecated(propType, explanation) {\n return function validate(props, propName, componentName) {\n if (props[propName] !== null && typeof props[propName] !== 'undefined') {\n warnOnce('\"' + propName + '\" property of \"' + componentName + '\" has been deprecated.\\n' + explanation);\n }\n\n for (var _len = arguments.length, rest = Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++) {\n rest[_key - 3] = arguments[_key];\n }\n\n return propType.apply(undefined, [props, propName, componentName].concat(rest));\n };\n}\n\nfunction DOMElement(props, propName, componentName) {\n if (!(props[propName] instanceof Element)) {\n return new Error('Invalid prop `' + propName + '` supplied to `' + componentName + '`. Expected prop to be an instance of Element. Validation failed.');\n }\n}\n\nvar targetPropType = PropTypes.oneOfType([PropTypes.string, PropTypes.func, DOMElement, PropTypes.shape({ current: PropTypes.any })]);\n\n/* eslint key-spacing: [\"error\", { afterColon: true, align: \"value\" }] */\n// These are all setup to match what is in the bootstrap _variables.scss\n// https://github.com/twbs/bootstrap/blob/v4-dev/scss/_variables.scss\nvar TransitionTimeouts = {\n Fade: 150, // $transition-fade\n Collapse: 350, // $transition-collapse\n Modal: 300, // $modal-transition\n Carousel: 600 // $carousel-transition\n};\n\n// Duplicated Transition.propType keys to ensure that Reactstrap builds\n// for distribution properly exclude these keys for nested child HTML attributes\n// since `react-transition-group` removes propTypes in production builds.\nvar TransitionPropTypeKeys = ['in', 'mountOnEnter', 'unmountOnExit', 'appear', 'enter', 'exit', 'timeout', 'onEnter', 'onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'];\n\nvar TransitionStatuses = {\n ENTERING: 'entering',\n ENTERED: 'entered',\n EXITING: 'exiting',\n EXITED: 'exited'\n};\n\nvar keyCodes = {\n esc: 27,\n space: 32,\n enter: 13,\n tab: 9,\n up: 38,\n down: 40\n};\n\nvar PopperPlacements = ['auto-start', 'auto', 'auto-end', 'top-start', 'top', 'top-end', 'right-start', 'right', 'right-end', 'bottom-end', 'bottom', 'bottom-start', 'left-end', 'left', 'left-start'];\n\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nfunction isReactRefObj(target) {\n if (target && (typeof target === 'undefined' ? 'undefined' : _typeof(target)) === 'object') {\n return 'current' in target;\n }\n return false;\n}\n\nfunction findDOMElements(target) {\n if (isReactRefObj(target)) {\n return target.current;\n }\n if (isFunction(target)) {\n return target();\n }\n if (typeof target === 'string' && canUseDOM) {\n var selection = document.querySelectorAll(target);\n if (!selection.length) {\n selection = document.querySelectorAll('#' + target);\n }\n if (!selection.length) {\n throw new Error('The target \\'' + target + '\\' could not be identified in the dom, tip: check spelling');\n }\n return selection;\n }\n return target;\n}\n\nfunction isArrayOrNodeList(els) {\n if (els === null) {\n return false;\n }\n return Array.isArray(els) || canUseDOM && typeof els.length === 'number';\n}\n\nfunction getTarget(target) {\n var els = findDOMElements(target);\n if (isArrayOrNodeList(els)) {\n return els[0];\n }\n return els;\n}\n\nvar defaultToggleEvents = ['touchstart', 'click'];\n\nfunction addMultipleEventListeners(_els, handler, _events) {\n var els = _els;\n if (!isArrayOrNodeList(els)) {\n els = [els];\n }\n\n var events = _events;\n if (typeof events === 'string') {\n events = events.split(/\\s+/);\n }\n\n if (!isArrayOrNodeList(els) || typeof handler !== 'function' || !Array.isArray(events)) {\n throw new Error('\\n The first argument of this function must be DOM node or an array on DOM nodes or NodeList.\\n The second must be a function.\\n The third is a string or an array of strings that represents DOM events\\n ');\n }\n events.forEach(function (event) {\n els.forEach(function (el) {\n el.addEventListener(event, handler);\n });\n });\n return function removeEvents() {\n events.forEach(function (event) {\n els.forEach(function (el) {\n el.removeEventListener(event, handler);\n });\n });\n };\n}\n\nvar focusableElements = ['a[href]', 'area[href]', 'input:not([disabled]):not([type=hidden])', 'select:not([disabled])', 'textarea:not([disabled])', 'button:not([disabled])', 'object', 'embed', '[tabindex]:not(.modal)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable=\"false\"])'];\n\n\n\nvar utils = Object.freeze({\n\tgetScrollbarWidth: getScrollbarWidth,\n\tsetScrollbarWidth: setScrollbarWidth,\n\tisBodyOverflowing: isBodyOverflowing,\n\tgetOriginalBodyPadding: getOriginalBodyPadding,\n\tconditionallyUpdateScrollbar: conditionallyUpdateScrollbar,\n\tsetGlobalCssModule: setGlobalCssModule,\n\tmapToCssModules: mapToCssModules,\n\tomit: omit,\n\tpick: pick,\n\twarnOnce: warnOnce,\n\tdeprecated: deprecated,\n\tDOMElement: DOMElement,\n\ttargetPropType: targetPropType,\n\tTransitionTimeouts: TransitionTimeouts,\n\tTransitionPropTypeKeys: TransitionPropTypeKeys,\n\tTransitionStatuses: TransitionStatuses,\n\tkeyCodes: keyCodes,\n\tPopperPlacements: PopperPlacements,\n\tcanUseDOM: canUseDOM,\n\tisReactRefObj: isReactRefObj,\n\tfindDOMElements: findDOMElements,\n\tisArrayOrNodeList: isArrayOrNodeList,\n\tgetTarget: getTarget,\n\tdefaultToggleEvents: defaultToggleEvents,\n\taddMultipleEventListeners: addMultipleEventListeners,\n\tfocusableElements: focusableElements\n});\n\nvar propTypes = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n fluid: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps = {\n tag: 'div'\n};\n\nvar Container = function Container(props) {\n var className = props.className,\n cssModule = props.cssModule,\n fluid = props.fluid,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'fluid', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, fluid ? 'container-fluid' : 'container'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nContainer.propTypes = propTypes;\nContainer.defaultProps = defaultProps;\n\nvar propTypes$1 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n noGutters: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n form: PropTypes.bool\n};\n\nvar defaultProps$1 = {\n tag: 'div'\n};\n\nvar Row = function Row(props) {\n var className = props.className,\n cssModule = props.cssModule,\n noGutters = props.noGutters,\n Tag = props.tag,\n form = props.form,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'noGutters', 'tag', 'form']);\n\n\n var classes = mapToCssModules(classNames(className, noGutters ? 'no-gutters' : null, form ? 'form-row' : 'row'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nRow.propTypes = propTypes$1;\nRow.defaultProps = defaultProps$1;\n\nvar colWidths = ['xs', 'sm', 'md', 'lg', 'xl'];\nvar stringOrNumberProp = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);\n\nvar columnProps = PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string, PropTypes.shape({\n size: PropTypes.oneOfType([PropTypes.bool, PropTypes.number, PropTypes.string]),\n push: deprecated(stringOrNumberProp, 'Please use the prop \"order\"'),\n pull: deprecated(stringOrNumberProp, 'Please use the prop \"order\"'),\n order: stringOrNumberProp,\n offset: stringOrNumberProp\n})]);\n\nvar propTypes$2 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n xs: columnProps,\n sm: columnProps,\n md: columnProps,\n lg: columnProps,\n xl: columnProps,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n widths: PropTypes.array\n};\n\nvar defaultProps$2 = {\n tag: 'div',\n widths: colWidths\n};\n\nvar getColumnSizeClass = function getColumnSizeClass(isXs, colWidth, colSize) {\n if (colSize === true || colSize === '') {\n return isXs ? 'col' : 'col-' + colWidth;\n } else if (colSize === 'auto') {\n return isXs ? 'col-auto' : 'col-' + colWidth + '-auto';\n }\n\n return isXs ? 'col-' + colSize : 'col-' + colWidth + '-' + colSize;\n};\n\nvar Col = function Col(props) {\n var className = props.className,\n cssModule = props.cssModule,\n widths = props.widths,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'widths', 'tag']);\n\n var colClasses = [];\n\n widths.forEach(function (colWidth, i) {\n var columnProp = props[colWidth];\n\n delete attributes[colWidth];\n\n if (!columnProp && columnProp !== '') {\n return;\n }\n\n var isXs = !i;\n\n if (isobject(columnProp)) {\n var _classNames;\n\n var colSizeInterfix = isXs ? '-' : '-' + colWidth + '-';\n var colClass = getColumnSizeClass(isXs, colWidth, columnProp.size);\n\n colClasses.push(mapToCssModules(classNames((_classNames = {}, defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ''), defineProperty(_classNames, 'order' + colSizeInterfix + columnProp.order, columnProp.order || columnProp.order === 0), defineProperty(_classNames, 'offset' + colSizeInterfix + columnProp.offset, columnProp.offset || columnProp.offset === 0), _classNames)), cssModule));\n } else {\n var _colClass = getColumnSizeClass(isXs, colWidth, columnProp);\n colClasses.push(_colClass);\n }\n });\n\n if (!colClasses.length) {\n colClasses.push('col');\n }\n\n var classes = mapToCssModules(classNames(className, colClasses), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCol.propTypes = propTypes$2;\nCol.defaultProps = defaultProps$2;\n\nvar propTypes$3 = {\n light: PropTypes.bool,\n dark: PropTypes.bool,\n inverse: deprecated(PropTypes.bool, 'Please use the prop \"dark\"'),\n full: PropTypes.bool,\n fixed: PropTypes.string,\n sticky: PropTypes.string,\n color: PropTypes.string,\n role: PropTypes.string,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object,\n toggleable: deprecated(PropTypes.oneOfType([PropTypes.bool, PropTypes.string]), 'Please use the prop \"expand\"'),\n expand: PropTypes.oneOfType([PropTypes.bool, PropTypes.string])\n};\n\nvar defaultProps$3 = {\n tag: 'nav',\n expand: false\n};\n\nvar getExpandClass = function getExpandClass(expand) {\n if (expand === false) {\n return false;\n } else if (expand === true || expand === 'xs') {\n return 'navbar-expand';\n }\n\n return 'navbar-expand-' + expand;\n};\n\n// To better maintain backwards compatibility while toggleable is deprecated.\n// We must map breakpoints to the next breakpoint so that toggleable and expand do the same things at the same breakpoint.\nvar toggleableToExpand = {\n xs: 'sm',\n sm: 'md',\n md: 'lg',\n lg: 'xl'\n};\n\nvar getToggleableClass = function getToggleableClass(toggleable) {\n if (toggleable === undefined || toggleable === 'xl') {\n return false;\n } else if (toggleable === false) {\n return 'navbar-expand';\n }\n\n return 'navbar-expand-' + (toggleable === true ? 'sm' : toggleableToExpand[toggleable] || toggleable);\n};\n\nvar Navbar = function Navbar(props) {\n var _classNames;\n\n var toggleable = props.toggleable,\n expand = props.expand,\n className = props.className,\n cssModule = props.cssModule,\n light = props.light,\n dark = props.dark,\n inverse = props.inverse,\n fixed = props.fixed,\n sticky = props.sticky,\n color = props.color,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['toggleable', 'expand', 'className', 'cssModule', 'light', 'dark', 'inverse', 'fixed', 'sticky', 'color', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'navbar', getExpandClass(expand) || getToggleableClass(toggleable), (_classNames = {\n 'navbar-light': light,\n 'navbar-dark': inverse || dark\n }, defineProperty(_classNames, 'bg-' + color, color), defineProperty(_classNames, 'fixed-' + fixed, fixed), defineProperty(_classNames, 'sticky-' + sticky, sticky), _classNames)), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nNavbar.propTypes = propTypes$3;\nNavbar.defaultProps = defaultProps$3;\n\nvar propTypes$4 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$4 = {\n tag: 'a'\n};\n\nvar NavbarBrand = function NavbarBrand(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'navbar-brand'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nNavbarBrand.propTypes = propTypes$4;\nNavbarBrand.defaultProps = defaultProps$4;\n\nvar propTypes$5 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n type: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n children: PropTypes.node\n};\n\nvar defaultProps$5 = {\n tag: 'button',\n type: 'button'\n};\n\nvar NavbarToggler = function NavbarToggler(props) {\n var className = props.className,\n cssModule = props.cssModule,\n children = props.children,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'children', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'navbar-toggler'), cssModule);\n\n return React.createElement(\n Tag,\n _extends({}, attributes, { className: classes }),\n children || React.createElement('span', { className: mapToCssModules('navbar-toggler-icon', cssModule) })\n );\n};\n\nNavbarToggler.propTypes = propTypes$5;\nNavbarToggler.defaultProps = defaultProps$5;\n\nvar propTypes$6 = {\n tabs: PropTypes.bool,\n pills: PropTypes.bool,\n vertical: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n horizontal: PropTypes.string,\n justified: PropTypes.bool,\n fill: PropTypes.bool,\n navbar: PropTypes.bool,\n card: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$6 = {\n tag: 'ul',\n vertical: false\n};\n\nvar getVerticalClass = function getVerticalClass(vertical) {\n if (vertical === false) {\n return false;\n } else if (vertical === true || vertical === 'xs') {\n return 'flex-column';\n }\n\n return 'flex-' + vertical + '-column';\n};\n\nvar Nav = function Nav(props) {\n var className = props.className,\n cssModule = props.cssModule,\n tabs = props.tabs,\n pills = props.pills,\n vertical = props.vertical,\n horizontal = props.horizontal,\n justified = props.justified,\n fill = props.fill,\n navbar = props.navbar,\n card = props.card,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tabs', 'pills', 'vertical', 'horizontal', 'justified', 'fill', 'navbar', 'card', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, navbar ? 'navbar-nav' : 'nav', horizontal ? 'justify-content-' + horizontal : false, getVerticalClass(vertical), {\n 'nav-tabs': tabs,\n 'card-header-tabs': card && tabs,\n 'nav-pills': pills,\n 'card-header-pills': card && pills,\n 'nav-justified': justified,\n 'nav-fill': fill\n }), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nNav.propTypes = propTypes$6;\nNav.defaultProps = defaultProps$6;\n\nvar propTypes$7 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$7 = {\n tag: 'li'\n};\n\nvar NavItem = function NavItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n active = props.active,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'active', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'nav-item', active ? 'active' : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nNavItem.propTypes = propTypes$7;\nNavItem.defaultProps = defaultProps$7;\n\n/* eslint react/no-find-dom-node: 0 */\n// https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/no-find-dom-node.md\n\nvar propTypes$8 = {\n disabled: PropTypes.bool,\n dropup: deprecated(PropTypes.bool, 'Please use the prop \"direction\" with the value \"up\".'),\n direction: PropTypes.oneOf(['up', 'down', 'left', 'right']),\n group: PropTypes.bool,\n isOpen: PropTypes.bool,\n nav: PropTypes.bool,\n active: PropTypes.bool,\n addonType: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['prepend', 'append'])]),\n size: PropTypes.string,\n tag: PropTypes.string,\n toggle: PropTypes.func,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n inNavbar: PropTypes.bool,\n setActiveFromChild: PropTypes.bool\n};\n\nvar defaultProps$8 = {\n isOpen: false,\n direction: 'down',\n nav: false,\n active: false,\n addonType: false,\n inNavbar: false,\n setActiveFromChild: false\n};\n\nvar childContextTypes = {\n toggle: PropTypes.func.isRequired,\n isOpen: PropTypes.bool.isRequired,\n direction: PropTypes.oneOf(['up', 'down', 'left', 'right']).isRequired,\n inNavbar: PropTypes.bool.isRequired\n};\n\nvar Dropdown = function (_React$Component) {\n inherits(Dropdown, _React$Component);\n\n function Dropdown(props) {\n classCallCheck(this, Dropdown);\n\n var _this = possibleConstructorReturn(this, (Dropdown.__proto__ || Object.getPrototypeOf(Dropdown)).call(this, props));\n\n _this.addEvents = _this.addEvents.bind(_this);\n _this.handleDocumentClick = _this.handleDocumentClick.bind(_this);\n _this.handleKeyDown = _this.handleKeyDown.bind(_this);\n _this.removeEvents = _this.removeEvents.bind(_this);\n _this.toggle = _this.toggle.bind(_this);\n return _this;\n }\n\n createClass(Dropdown, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n toggle: this.props.toggle,\n isOpen: this.props.isOpen,\n direction: this.props.direction === 'down' && this.props.dropup ? 'up' : this.props.direction,\n inNavbar: this.props.inNavbar\n };\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.handleProps();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (this.props.isOpen !== prevProps.isOpen) {\n this.handleProps();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.removeEvents();\n }\n }, {\n key: 'getContainer',\n value: function getContainer() {\n return ReactDOM.findDOMNode(this);\n }\n }, {\n key: 'addEvents',\n value: function addEvents() {\n var _this2 = this;\n\n ['click', 'touchstart', 'keyup'].forEach(function (event) {\n return document.addEventListener(event, _this2.handleDocumentClick, true);\n });\n }\n }, {\n key: 'removeEvents',\n value: function removeEvents() {\n var _this3 = this;\n\n ['click', 'touchstart', 'keyup'].forEach(function (event) {\n return document.removeEventListener(event, _this3.handleDocumentClick, true);\n });\n }\n }, {\n key: 'handleDocumentClick',\n value: function handleDocumentClick(e) {\n if (e && (e.which === 3 || e.type === 'keyup' && e.which !== keyCodes.tab)) return;\n var container = this.getContainer();\n\n if (container.contains(e.target) && container !== e.target && (e.type !== 'keyup' || e.which === keyCodes.tab)) {\n return;\n }\n\n this.toggle(e);\n }\n }, {\n key: 'handleKeyDown',\n value: function handleKeyDown(e) {\n if (keyCodes.tab === e.which || /button/i.test(e.target.tagName) && e.which === keyCodes.space || /input|textarea/i.test(e.target.tagName)) {\n return;\n }\n\n e.preventDefault();\n if (this.props.disabled) return;\n\n var container = this.getContainer();\n\n if (e.which === keyCodes.space && keyCodes.enter && this.props.isOpen && container !== e.target) {\n e.target.click();\n }\n\n if (e.which === keyCodes.esc || !this.props.isOpen) {\n this.toggle(e);\n container.querySelector('[aria-expanded]').focus();\n return;\n }\n\n var menuClass = mapToCssModules('dropdown-menu', this.props.cssModule);\n var itemClass = mapToCssModules('dropdown-item', this.props.cssModule);\n var disabledClass = mapToCssModules('disabled', this.props.cssModule);\n\n var items = container.querySelectorAll('.' + menuClass + ' .' + itemClass + ':not(.' + disabledClass + ')');\n if (!items.length) return;\n\n var index = -1;\n\n var charPressed = String.fromCharCode(e.which).toLowerCase();\n\n for (var i = 0; i < items.length; i += 1) {\n var firstLetter = items[i].textContent && items[i].textContent[0].toLowerCase();\n if (firstLetter === charPressed || items[i] === e.target) {\n index = i;\n break;\n }\n }\n\n if (e.which === keyCodes.up && index > 0) {\n index -= 1;\n }\n\n if (e.which === keyCodes.down && index < items.length - 1) {\n index += 1;\n }\n\n if (index < 0) {\n index = 0;\n }\n\n items[index].focus();\n }\n }, {\n key: 'handleProps',\n value: function handleProps() {\n if (this.props.isOpen) {\n this.addEvents();\n } else {\n this.removeEvents();\n }\n }\n }, {\n key: 'toggle',\n value: function toggle(e) {\n if (this.props.disabled) {\n return e && e.preventDefault();\n }\n\n return this.props.toggle(e);\n }\n }, {\n key: 'render',\n value: function render() {\n var _classNames;\n\n var _omit = omit(this.props, ['toggle', 'disabled', 'inNavbar', 'direction']),\n className = _omit.className,\n cssModule = _omit.cssModule,\n dropup = _omit.dropup,\n isOpen = _omit.isOpen,\n group = _omit.group,\n size = _omit.size,\n nav = _omit.nav,\n setActiveFromChild = _omit.setActiveFromChild,\n active = _omit.active,\n addonType = _omit.addonType,\n attrs = objectWithoutProperties(_omit, ['className', 'cssModule', 'dropup', 'isOpen', 'group', 'size', 'nav', 'setActiveFromChild', 'active', 'addonType']);\n\n var direction = this.props.direction === 'down' && dropup ? 'up' : this.props.direction;\n\n attrs.tag = attrs.tag || (nav ? 'li' : 'div');\n\n var subItemIsActive = false;\n if (setActiveFromChild) {\n React.Children.map(this.props.children[1].props.children, function (dropdownItem) {\n if (dropdownItem.props.active) subItemIsActive = true;\n });\n }\n\n var classes = mapToCssModules(classNames(className, direction !== 'down' && 'drop' + direction, nav && active ? 'active' : false, setActiveFromChild && subItemIsActive ? 'active' : false, (_classNames = {}, defineProperty(_classNames, 'input-group-' + addonType, addonType), defineProperty(_classNames, 'btn-group', group), defineProperty(_classNames, 'btn-group-' + size, !!size), defineProperty(_classNames, 'dropdown', !group && !addonType), defineProperty(_classNames, 'show', isOpen), defineProperty(_classNames, 'nav-item', nav), _classNames)), cssModule);\n\n return React.createElement(Manager, _extends({}, attrs, { className: classes, onKeyDown: this.handleKeyDown }));\n }\n }]);\n return Dropdown;\n}(React.Component);\n\nDropdown.propTypes = propTypes$8;\nDropdown.defaultProps = defaultProps$8;\nDropdown.childContextTypes = childContextTypes;\n\nfunction NavDropdown(props) {\n warnOnce('The \"NavDropdown\" component has been deprecated.\\nPlease use component \"Dropdown\" with nav prop.');\n return React.createElement(Dropdown, _extends({ nav: true }, props));\n}\n\nvar propTypes$9 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n disabled: PropTypes.bool,\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n onClick: PropTypes.func,\n href: PropTypes.any\n};\n\nvar defaultProps$9 = {\n tag: 'a'\n};\n\nvar NavLink = function (_React$Component) {\n inherits(NavLink, _React$Component);\n\n function NavLink(props) {\n classCallCheck(this, NavLink);\n\n var _this = possibleConstructorReturn(this, (NavLink.__proto__ || Object.getPrototypeOf(NavLink)).call(this, props));\n\n _this.onClick = _this.onClick.bind(_this);\n return _this;\n }\n\n createClass(NavLink, [{\n key: 'onClick',\n value: function onClick(e) {\n if (this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n if (this.props.href === '#') {\n e.preventDefault();\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n cssModule = _props.cssModule,\n active = _props.active,\n Tag = _props.tag,\n innerRef = _props.innerRef,\n attributes = objectWithoutProperties(_props, ['className', 'cssModule', 'active', 'tag', 'innerRef']);\n\n\n var classes = mapToCssModules(classNames(className, 'nav-link', {\n disabled: attributes.disabled,\n active: active\n }), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { ref: innerRef, onClick: this.onClick, className: classes }));\n }\n }]);\n return NavLink;\n}(React.Component);\n\nNavLink.propTypes = propTypes$9;\nNavLink.defaultProps = defaultProps$9;\n\nvar propTypes$10 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n listTag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n listClassName: PropTypes.string,\n cssModule: PropTypes.object,\n children: PropTypes.node,\n 'aria-label': PropTypes.string\n};\n\nvar defaultProps$10 = {\n tag: 'nav',\n listTag: 'ol',\n 'aria-label': 'breadcrumb'\n};\n\nvar Breadcrumb = function Breadcrumb(props) {\n var className = props.className,\n listClassName = props.listClassName,\n cssModule = props.cssModule,\n children = props.children,\n Tag = props.tag,\n ListTag = props.listTag,\n label = props['aria-label'],\n attributes = objectWithoutProperties(props, ['className', 'listClassName', 'cssModule', 'children', 'tag', 'listTag', 'aria-label']);\n\n\n var classes = mapToCssModules(classNames(className), cssModule);\n\n var listClasses = mapToCssModules(classNames('breadcrumb', listClassName), cssModule);\n\n return React.createElement(\n Tag,\n _extends({}, attributes, { className: classes, 'aria-label': label }),\n React.createElement(\n ListTag,\n { className: listClasses },\n children\n )\n );\n};\n\nBreadcrumb.propTypes = propTypes$10;\nBreadcrumb.defaultProps = defaultProps$10;\n\nvar propTypes$11 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n active: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$11 = {\n tag: 'li'\n};\n\nvar BreadcrumbItem = function BreadcrumbItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n active = props.active,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'active', 'tag']);\n\n var classes = mapToCssModules(classNames(className, active ? 'active' : false, 'breadcrumb-item'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes, 'aria-current': active ? 'page' : undefined }));\n};\n\nBreadcrumbItem.propTypes = propTypes$11;\nBreadcrumbItem.defaultProps = defaultProps$11;\n\nvar propTypes$12 = {\n active: PropTypes.bool,\n 'aria-label': PropTypes.string,\n block: PropTypes.bool,\n color: PropTypes.string,\n disabled: PropTypes.bool,\n outline: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n onClick: PropTypes.func,\n size: PropTypes.string,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n close: PropTypes.bool\n};\n\nvar defaultProps$12 = {\n color: 'secondary',\n tag: 'button'\n};\n\nvar Button = function (_React$Component) {\n inherits(Button, _React$Component);\n\n function Button(props) {\n classCallCheck(this, Button);\n\n var _this = possibleConstructorReturn(this, (Button.__proto__ || Object.getPrototypeOf(Button)).call(this, props));\n\n _this.onClick = _this.onClick.bind(_this);\n return _this;\n }\n\n createClass(Button, [{\n key: 'onClick',\n value: function onClick(e) {\n if (this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n active = _props.active,\n ariaLabel = _props['aria-label'],\n block = _props.block,\n className = _props.className,\n close = _props.close,\n cssModule = _props.cssModule,\n color = _props.color,\n outline = _props.outline,\n size = _props.size,\n Tag = _props.tag,\n innerRef = _props.innerRef,\n attributes = objectWithoutProperties(_props, ['active', 'aria-label', 'block', 'className', 'close', 'cssModule', 'color', 'outline', 'size', 'tag', 'innerRef']);\n\n\n if (close && typeof attributes.children === 'undefined') {\n attributes.children = React.createElement(\n 'span',\n { 'aria-hidden': true },\n '\\xD7'\n );\n }\n\n var btnOutlineColor = 'btn' + (outline ? '-outline' : '') + '-' + color;\n\n var classes = mapToCssModules(classNames(className, { close: close }, close || 'btn', close || btnOutlineColor, size ? 'btn-' + size : false, block ? 'btn-block' : false, { active: active, disabled: this.props.disabled }), cssModule);\n\n if (attributes.href && Tag === 'button') {\n Tag = 'a';\n }\n\n var defaultAriaLabel = close ? 'Close' : null;\n\n return React.createElement(Tag, _extends({\n type: Tag === 'button' && attributes.onClick ? 'button' : undefined\n }, attributes, {\n className: classes,\n ref: innerRef,\n onClick: this.onClick,\n 'aria-label': ariaLabel || defaultAriaLabel\n }));\n }\n }]);\n return Button;\n}(React.Component);\n\nButton.propTypes = propTypes$12;\nButton.defaultProps = defaultProps$12;\n\nvar propTypes$13 = {\n children: PropTypes.node\n};\n\nvar ButtonDropdown = function ButtonDropdown(props) {\n return React.createElement(Dropdown, _extends({ group: true }, props));\n};\n\nButtonDropdown.propTypes = propTypes$13;\n\nvar propTypes$14 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n 'aria-label': PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n role: PropTypes.string,\n size: PropTypes.string,\n vertical: PropTypes.bool\n};\n\nvar defaultProps$13 = {\n tag: 'div',\n role: 'group'\n};\n\nvar ButtonGroup = function ButtonGroup(props) {\n var className = props.className,\n cssModule = props.cssModule,\n size = props.size,\n vertical = props.vertical,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'size', 'vertical', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, size ? 'btn-group-' + size : false, vertical ? 'btn-group-vertical' : 'btn-group'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nButtonGroup.propTypes = propTypes$14;\nButtonGroup.defaultProps = defaultProps$13;\n\nvar propTypes$15 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n 'aria-label': PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n role: PropTypes.string\n};\n\nvar defaultProps$14 = {\n tag: 'div',\n role: 'toolbar'\n};\n\nvar ButtonToolbar = function ButtonToolbar(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'btn-toolbar'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nButtonToolbar.propTypes = propTypes$15;\nButtonToolbar.defaultProps = defaultProps$14;\n\nvar propTypes$16 = {\n children: PropTypes.node,\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n divider: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n header: PropTypes.bool,\n onClick: PropTypes.func,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n toggle: PropTypes.bool\n};\n\nvar contextTypes = {\n toggle: PropTypes.func\n};\n\nvar defaultProps$15 = {\n tag: 'button',\n toggle: true\n};\n\nvar DropdownItem = function (_React$Component) {\n inherits(DropdownItem, _React$Component);\n\n function DropdownItem(props) {\n classCallCheck(this, DropdownItem);\n\n var _this = possibleConstructorReturn(this, (DropdownItem.__proto__ || Object.getPrototypeOf(DropdownItem)).call(this, props));\n\n _this.onClick = _this.onClick.bind(_this);\n _this.getTabIndex = _this.getTabIndex.bind(_this);\n return _this;\n }\n\n createClass(DropdownItem, [{\n key: 'onClick',\n value: function onClick(e) {\n if (this.props.disabled || this.props.header || this.props.divider) {\n e.preventDefault();\n return;\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n\n if (this.props.toggle) {\n this.context.toggle(e);\n }\n }\n }, {\n key: 'getTabIndex',\n value: function getTabIndex() {\n if (this.props.disabled || this.props.header || this.props.divider) {\n return '-1';\n }\n\n return '0';\n }\n }, {\n key: 'render',\n value: function render() {\n var tabIndex = this.getTabIndex();\n\n var _omit = omit(this.props, ['toggle']),\n className = _omit.className,\n cssModule = _omit.cssModule,\n divider = _omit.divider,\n Tag = _omit.tag,\n header = _omit.header,\n active = _omit.active,\n props = objectWithoutProperties(_omit, ['className', 'cssModule', 'divider', 'tag', 'header', 'active']);\n\n var classes = mapToCssModules(classNames(className, {\n disabled: props.disabled,\n 'dropdown-item': !divider && !header,\n active: active,\n 'dropdown-header': header,\n 'dropdown-divider': divider\n }), cssModule);\n\n if (Tag === 'button') {\n if (header) {\n Tag = 'h6';\n } else if (divider) {\n Tag = 'div';\n } else if (props.href) {\n Tag = 'a';\n }\n }\n\n return React.createElement(Tag, _extends({\n type: Tag === 'button' && (props.onClick || this.props.toggle) ? 'button' : undefined\n }, props, {\n tabIndex: tabIndex,\n className: classes,\n onClick: this.onClick\n }));\n }\n }]);\n return DropdownItem;\n}(React.Component);\n\nDropdownItem.propTypes = propTypes$16;\nDropdownItem.defaultProps = defaultProps$15;\nDropdownItem.contextTypes = contextTypes;\n\nvar propTypes$17 = {\n tag: PropTypes.string,\n children: PropTypes.node.isRequired,\n right: PropTypes.bool,\n flip: PropTypes.bool,\n modifiers: PropTypes.object,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n persist: PropTypes.bool\n};\n\nvar defaultProps$16 = {\n tag: 'div',\n flip: true\n};\n\nvar contextTypes$1 = {\n isOpen: PropTypes.bool.isRequired,\n direction: PropTypes.oneOf(['up', 'down', 'left', 'right']).isRequired,\n inNavbar: PropTypes.bool.isRequired\n};\n\nvar noFlipModifier = { flip: { enabled: false } };\n\nvar directionPositionMap = {\n up: 'top',\n left: 'left',\n right: 'right',\n down: 'bottom'\n};\n\nvar DropdownMenu = function DropdownMenu(props, context) {\n var className = props.className,\n cssModule = props.cssModule,\n right = props.right,\n tag = props.tag,\n flip = props.flip,\n modifiers = props.modifiers,\n persist = props.persist,\n attrs = objectWithoutProperties(props, ['className', 'cssModule', 'right', 'tag', 'flip', 'modifiers', 'persist']);\n\n var classes = mapToCssModules(classNames(className, 'dropdown-menu', {\n 'dropdown-menu-right': right,\n show: context.isOpen\n }), cssModule);\n\n var Tag = tag;\n\n if (persist || context.isOpen && !context.inNavbar) {\n Tag = Popper;\n\n var position1 = directionPositionMap[context.direction] || 'bottom';\n var position2 = right ? 'end' : 'start';\n attrs.placement = position1 + '-' + position2;\n attrs.component = tag;\n attrs.modifiers = !flip ? _extends({}, modifiers, noFlipModifier) : modifiers;\n }\n\n return React.createElement(Tag, _extends({\n tabIndex: '-1',\n role: 'menu'\n }, attrs, {\n 'aria-hidden': !context.isOpen,\n className: classes,\n 'x-placement': attrs.placement\n }));\n};\n\nDropdownMenu.propTypes = propTypes$17;\nDropdownMenu.defaultProps = defaultProps$16;\nDropdownMenu.contextTypes = contextTypes$1;\n\nvar propTypes$18 = {\n caret: PropTypes.bool,\n color: PropTypes.string,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n 'aria-haspopup': PropTypes.bool,\n split: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n nav: PropTypes.bool\n};\n\nvar defaultProps$17 = {\n 'aria-haspopup': true,\n color: 'secondary'\n};\n\nvar contextTypes$2 = {\n isOpen: PropTypes.bool.isRequired,\n toggle: PropTypes.func.isRequired,\n inNavbar: PropTypes.bool.isRequired\n};\n\nvar DropdownToggle = function (_React$Component) {\n inherits(DropdownToggle, _React$Component);\n\n function DropdownToggle(props) {\n classCallCheck(this, DropdownToggle);\n\n var _this = possibleConstructorReturn(this, (DropdownToggle.__proto__ || Object.getPrototypeOf(DropdownToggle)).call(this, props));\n\n _this.onClick = _this.onClick.bind(_this);\n return _this;\n }\n\n createClass(DropdownToggle, [{\n key: 'onClick',\n value: function onClick(e) {\n if (this.props.disabled) {\n e.preventDefault();\n return;\n }\n\n if (this.props.nav && !this.props.tag) {\n e.preventDefault();\n }\n\n if (this.props.onClick) {\n this.props.onClick(e);\n }\n\n this.context.toggle(e);\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n color = _props.color,\n cssModule = _props.cssModule,\n caret = _props.caret,\n split = _props.split,\n nav = _props.nav,\n tag = _props.tag,\n props = objectWithoutProperties(_props, ['className', 'color', 'cssModule', 'caret', 'split', 'nav', 'tag']);\n\n var ariaLabel = props['aria-label'] || 'Toggle Dropdown';\n var classes = mapToCssModules(classNames(className, {\n 'dropdown-toggle': caret || split,\n 'dropdown-toggle-split': split,\n 'nav-link': nav\n }), cssModule);\n var children = props.children || React.createElement(\n 'span',\n { className: 'sr-only' },\n ariaLabel\n );\n\n var Tag = void 0;\n\n if (nav && !tag) {\n Tag = 'a';\n props.href = '#';\n } else if (!tag) {\n Tag = Button;\n props.color = color;\n props.cssModule = cssModule;\n } else {\n Tag = tag;\n }\n\n if (this.context.inNavbar) {\n return React.createElement(Tag, _extends({}, props, {\n className: classes,\n onClick: this.onClick,\n 'aria-expanded': this.context.isOpen,\n children: children\n }));\n }\n\n return React.createElement(Target, _extends({}, props, {\n className: classes,\n component: Tag,\n onClick: this.onClick,\n 'aria-expanded': this.context.isOpen,\n children: children\n }));\n }\n }]);\n return DropdownToggle;\n}(React.Component);\n\nDropdownToggle.propTypes = propTypes$18;\nDropdownToggle.defaultProps = defaultProps$17;\nDropdownToggle.contextTypes = contextTypes$2;\n\nfunction unwrapExports (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nfunction createCommonjsModule(fn, module) {\n\treturn module = { exports: {} }, fn(module, module.exports), module.exports;\n}\n\nvar PropTypes$1 = createCommonjsModule(function (module, exports) {\n 'use strict';\n\n exports.__esModule = true;\n exports.classNamesShape = exports.timeoutsShape = undefined;\n exports.transitionTimeout = transitionTimeout;\n\n var _propTypes2 = _interopRequireDefault(PropTypes);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n\n function transitionTimeout(transitionType) {\n var timeoutPropName = 'transition' + transitionType + 'Timeout';\n var enabledPropName = 'transition' + transitionType;\n\n return function (props) {\n // If the transition is enabled\n if (props[enabledPropName]) {\n // If no timeout duration is provided\n if (props[timeoutPropName] == null) {\n return new Error(timeoutPropName + ' wasn\\'t supplied to CSSTransitionGroup: ' + 'this can cause unreliable animations and won\\'t be supported in ' + 'a future version of React. See ' + 'https://fb.me/react-animation-transition-group-timeout for more ' + 'information.');\n\n // If the duration isn't a number\n } else if (typeof props[timeoutPropName] !== 'number') {\n return new Error(timeoutPropName + ' must be a number (in milliseconds)');\n }\n }\n\n return null;\n };\n }\n\n var timeoutsShape = exports.timeoutsShape = _propTypes2.default.oneOfType([_propTypes2.default.number, _propTypes2.default.shape({\n enter: _propTypes2.default.number,\n exit: _propTypes2.default.number\n }).isRequired]);\n\n var classNamesShape = exports.classNamesShape = _propTypes2.default.oneOfType([_propTypes2.default.string, _propTypes2.default.shape({\n enter: _propTypes2.default.string,\n exit: _propTypes2.default.string,\n active: _propTypes2.default.string\n }), _propTypes2.default.shape({\n enter: _propTypes2.default.string,\n enterDone: _propTypes2.default.string,\n enterActive: _propTypes2.default.string,\n exit: _propTypes2.default.string,\n exitDone: _propTypes2.default.string,\n exitActive: _propTypes2.default.string\n })]);\n});\n\nunwrapExports(PropTypes$1);\n\nvar Transition_1 = createCommonjsModule(function (module, exports) {\n 'use strict';\n\n exports.__esModule = true;\n exports.EXITING = exports.ENTERED = exports.ENTERING = exports.EXITED = exports.UNMOUNTED = undefined;\n\n var PropTypes$$1 = _interopRequireWildcard(PropTypes);\n\n var _react2 = _interopRequireDefault(React);\n\n var _reactDom2 = _interopRequireDefault(ReactDOM);\n\n function _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : { default: obj };\n }\n\n function _interopRequireWildcard(obj) {\n if (obj && obj.__esModule) {\n return obj;\n } else {\n var newObj = {};if (obj != null) {\n for (var key in obj) {\n if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key];\n }\n }newObj.default = obj;return newObj;\n }\n }\n\n function _objectWithoutProperties(obj, keys) {\n var target = {};for (var i in obj) {\n if (keys.indexOf(i) >= 0) continue;if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;target[i] = obj[i];\n }return target;\n }\n\n function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n }\n\n function _possibleConstructorReturn(self, call) {\n if (!self) {\n throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\");\n }return call && ((typeof call === 'undefined' ? 'undefined' : _typeof(call)) === \"object\" || typeof call === \"function\") ? call : self;\n }\n\n function _inherits(subClass, superClass) {\n if (typeof superClass !== \"function\" && superClass !== null) {\n throw new TypeError(\"Super expression must either be null or a function, not \" + (typeof superClass === 'undefined' ? 'undefined' : _typeof(superClass)));\n }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;\n }\n\n var UNMOUNTED = exports.UNMOUNTED = 'unmounted';\n var EXITED = exports.EXITED = 'exited';\n var ENTERING = exports.ENTERING = 'entering';\n var ENTERED = exports.ENTERED = 'entered';\n var EXITING = exports.EXITING = 'exiting';\n\n /**\n * The Transition component lets you describe a transition from one component\n * state to another _over time_ with a simple declarative API. Most commonly\n * it's used to animate the mounting and unmounting of a component, but can also\n * be used to describe in-place transition states as well.\n *\n * By default the `Transition` component does not alter the behavior of the\n * component it renders, it only tracks \"enter\" and \"exit\" states for the components.\n * It's up to you to give meaning and effect to those states. For example we can\n * add styles to a component when it enters or exits:\n *\n * ```jsx\n * import Transition from 'react-transition-group/Transition';\n *\n * const duration = 300;\n *\n * const defaultStyle = {\n * transition: `opacity ${duration}ms ease-in-out`,\n * opacity: 0,\n * }\n *\n * const transitionStyles = {\n * entering: { opacity: 0 },\n * entered: { opacity: 1 },\n * };\n *\n * const Fade = ({ in: inProp }) => (\n * \n * {(state) => (\n *
    \n * I'm a fade Transition!\n *
    \n * )}\n *
    \n * );\n * ```\n *\n * As noted the `Transition` component doesn't _do_ anything by itself to its child component.\n * What it does do is track transition states over time so you can update the\n * component (such as by adding styles or classes) when it changes states.\n *\n * There are 4 main states a Transition can be in:\n * - `'entering'`\n * - `'entered'`\n * - `'exiting'`\n * - `'exited'`\n *\n * Transition state is toggled via the `in` prop. When `true` the component begins the\n * \"Enter\" stage. During this stage, the component will shift from its current transition state,\n * to `'entering'` for the duration of the transition and then to the `'entered'` stage once\n * it's complete. Let's take the following example:\n *\n * ```jsx\n * state = { in: false };\n *\n * toggleEnterState = () => {\n * this.setState({ in: true });\n * }\n *\n * render() {\n * return (\n *
    \n * \n * \n *
    \n * );\n * }\n * ```\n *\n * When the button is clicked the component will shift to the `'entering'` state and\n * stay there for 500ms (the value of `timeout`) before it finally switches to `'entered'`.\n *\n * When `in` is `false` the same thing happens except the state moves from `'exiting'` to `'exited'`.\n *\n * ## Timing\n *\n * Timing is often the trickiest part of animation, mistakes can result in slight delays\n * that are hard to pin down. A common example is when you want to add an exit transition,\n * you should set the desired final styles when the state is `'exiting'`. That's when the\n * transition to those styles will start and, if you matched the `timeout` prop with the\n * CSS Transition duration, it will end exactly when the state changes to `'exited'`.\n *\n * > **Note**: For simpler transitions the `Transition` component might be enough, but\n * > take into account that it's platform-agnostic, while the `CSSTransition` component\n * > [forces reflows](https://github.com/reactjs/react-transition-group/blob/5007303e729a74be66a21c3e2205e4916821524b/src/CSSTransition.js#L208-L215)\n * > in order to make more complex transitions more predictable. For example, even though\n * > classes `example-enter` and `example-enter-active` are applied immediately one after\n * > another, you can still transition from one to the other because of the forced reflow\n * > (read [this issue](https://github.com/reactjs/react-transition-group/issues/159#issuecomment-322761171)\n * > for more info). Take this into account when choosing between `Transition` and\n * > `CSSTransition`.\n *\n * ## Example\n *\n * \n *\n */\n\n var Transition = function (_React$Component) {\n _inherits(Transition, _React$Component);\n\n function Transition(props, context) {\n _classCallCheck(this, Transition);\n\n var _this = _possibleConstructorReturn(this, _React$Component.call(this, props, context));\n\n var parentGroup = context.transitionGroup;\n // In the context of a TransitionGroup all enters are really appears\n var appear = parentGroup && !parentGroup.isMounting ? props.enter : props.appear;\n\n var initialStatus = void 0;\n _this.nextStatus = null;\n\n if (props.in) {\n if (appear) {\n initialStatus = EXITED;\n _this.nextStatus = ENTERING;\n } else {\n initialStatus = ENTERED;\n }\n } else {\n if (props.unmountOnExit || props.mountOnEnter) {\n initialStatus = UNMOUNTED;\n } else {\n initialStatus = EXITED;\n }\n }\n\n _this.state = { status: initialStatus };\n\n _this.nextCallback = null;\n return _this;\n }\n\n Transition.prototype.getChildContext = function getChildContext() {\n return { transitionGroup: null }; // allows for nested Transitions\n };\n\n Transition.prototype.componentDidMount = function componentDidMount() {\n this.updateStatus(true);\n };\n\n Transition.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {\n var _ref = this.pendingState || this.state,\n status = _ref.status;\n\n if (nextProps.in) {\n if (status === UNMOUNTED) {\n this.setState({ status: EXITED });\n }\n if (status !== ENTERING && status !== ENTERED) {\n this.nextStatus = ENTERING;\n }\n } else {\n if (status === ENTERING || status === ENTERED) {\n this.nextStatus = EXITING;\n }\n }\n };\n\n Transition.prototype.componentDidUpdate = function componentDidUpdate() {\n this.updateStatus();\n };\n\n Transition.prototype.componentWillUnmount = function componentWillUnmount() {\n this.cancelNextCallback();\n };\n\n Transition.prototype.getTimeouts = function getTimeouts() {\n var timeout = this.props.timeout;\n\n var exit = void 0,\n enter = void 0,\n appear = void 0;\n\n exit = enter = appear = timeout;\n\n if (timeout != null && typeof timeout !== 'number') {\n exit = timeout.exit;\n enter = timeout.enter;\n appear = timeout.appear;\n }\n return { exit: exit, enter: enter, appear: appear };\n };\n\n Transition.prototype.updateStatus = function updateStatus() {\n var mounting = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;\n\n var nextStatus = this.nextStatus;\n\n if (nextStatus !== null) {\n this.nextStatus = null;\n // nextStatus will always be ENTERING or EXITING.\n this.cancelNextCallback();\n var node = _reactDom2.default.findDOMNode(this);\n\n if (nextStatus === ENTERING) {\n this.performEnter(node, mounting);\n } else {\n this.performExit(node);\n }\n } else if (this.props.unmountOnExit && this.state.status === EXITED) {\n this.setState({ status: UNMOUNTED });\n }\n };\n\n Transition.prototype.performEnter = function performEnter(node, mounting) {\n var _this2 = this;\n\n var enter = this.props.enter;\n\n var appearing = this.context.transitionGroup ? this.context.transitionGroup.isMounting : mounting;\n\n var timeouts = this.getTimeouts();\n\n // no enter animation skip right to ENTERED\n // if we are mounting and running this it means appear _must_ be set\n if (!mounting && !enter) {\n this.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node);\n });\n return;\n }\n\n this.props.onEnter(node, appearing);\n\n this.safeSetState({ status: ENTERING }, function () {\n _this2.props.onEntering(node, appearing);\n\n // FIXME: appear timeout?\n _this2.onTransitionEnd(node, timeouts.enter, function () {\n _this2.safeSetState({ status: ENTERED }, function () {\n _this2.props.onEntered(node, appearing);\n });\n });\n });\n };\n\n Transition.prototype.performExit = function performExit(node) {\n var _this3 = this;\n\n var exit = this.props.exit;\n\n var timeouts = this.getTimeouts();\n\n // no exit animation skip right to EXITED\n if (!exit) {\n this.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n return;\n }\n this.props.onExit(node);\n\n this.safeSetState({ status: EXITING }, function () {\n _this3.props.onExiting(node);\n\n _this3.onTransitionEnd(node, timeouts.exit, function () {\n _this3.safeSetState({ status: EXITED }, function () {\n _this3.props.onExited(node);\n });\n });\n });\n };\n\n Transition.prototype.cancelNextCallback = function cancelNextCallback() {\n if (this.nextCallback !== null) {\n this.nextCallback.cancel();\n this.nextCallback = null;\n }\n };\n\n Transition.prototype.safeSetState = function safeSetState(nextState, callback) {\n var _this4 = this;\n\n // We need to track pending updates for instances where a cWRP fires quickly\n // after cDM and before the state flushes, which would double trigger a\n // transition\n this.pendingState = nextState;\n\n // This shouldn't be necessary, but there are weird race conditions with\n // setState callbacks and unmounting in testing, so always make sure that\n // we can cancel any pending setState callbacks after we unmount.\n callback = this.setNextCallback(callback);\n this.setState(nextState, function () {\n _this4.pendingState = null;\n callback();\n });\n };\n\n Transition.prototype.setNextCallback = function setNextCallback(callback) {\n var _this5 = this;\n\n var active = true;\n\n this.nextCallback = function (event) {\n if (active) {\n active = false;\n _this5.nextCallback = null;\n\n callback(event);\n }\n };\n\n this.nextCallback.cancel = function () {\n active = false;\n };\n\n return this.nextCallback;\n };\n\n Transition.prototype.onTransitionEnd = function onTransitionEnd(node, timeout, handler) {\n this.setNextCallback(handler);\n\n if (node) {\n if (this.props.addEndListener) {\n this.props.addEndListener(node, this.nextCallback);\n }\n if (timeout != null) {\n setTimeout(this.nextCallback, timeout);\n }\n } else {\n setTimeout(this.nextCallback, 0);\n }\n };\n\n Transition.prototype.render = function render() {\n var status = this.state.status;\n if (status === UNMOUNTED) {\n return null;\n }\n\n var _props = this.props,\n children = _props.children,\n childProps = _objectWithoutProperties(_props, ['children']);\n // filter props for Transtition\n\n\n delete childProps.in;\n delete childProps.mountOnEnter;\n delete childProps.unmountOnExit;\n delete childProps.appear;\n delete childProps.enter;\n delete childProps.exit;\n delete childProps.timeout;\n delete childProps.addEndListener;\n delete childProps.onEnter;\n delete childProps.onEntering;\n delete childProps.onEntered;\n delete childProps.onExit;\n delete childProps.onExiting;\n delete childProps.onExited;\n\n if (typeof children === 'function') {\n return children(status, childProps);\n }\n\n var child = _react2.default.Children.only(children);\n return _react2.default.cloneElement(child, childProps);\n };\n\n return Transition;\n }(_react2.default.Component);\n\n Transition.contextTypes = {\n transitionGroup: PropTypes$$1.object\n };\n Transition.childContextTypes = {\n transitionGroup: function transitionGroup() {}\n };\n\n Transition.propTypes = process.env.NODE_ENV !== \"production\" ? {\n /**\n * A `function` child can be used instead of a React element.\n * This function is called with the current transition status\n * ('entering', 'entered', 'exiting', 'exited', 'unmounted'), which can be used\n * to apply context specific props to a component.\n *\n * ```jsx\n * \n * {(status) => (\n * \n * )}\n * \n * ```\n */\n children: PropTypes$$1.oneOfType([PropTypes$$1.func.isRequired, PropTypes$$1.element.isRequired]).isRequired,\n\n /**\n * Show the component; triggers the enter or exit states\n */\n in: PropTypes$$1.bool,\n\n /**\n * By default the child component is mounted immediately along with\n * the parent `Transition` component. If you want to \"lazy mount\" the component on the\n * first `in={true}` you can set `mountOnEnter`. After the first enter transition the component will stay\n * mounted, even on \"exited\", unless you also specify `unmountOnExit`.\n */\n mountOnEnter: PropTypes$$1.bool,\n\n /**\n * By default the child component stays mounted after it reaches the `'exited'` state.\n * Set `unmountOnExit` if you'd prefer to unmount the component after it finishes exiting.\n */\n unmountOnExit: PropTypes$$1.bool,\n\n /**\n * Normally a component is not transitioned if it is shown when the `` component mounts.\n * If you want to transition on the first mount set `appear` to `true`, and the\n * component will transition in as soon as the `` mounts.\n *\n * > Note: there are no specific \"appear\" states. `appear` only adds an additional `enter` transition.\n */\n appear: PropTypes$$1.bool,\n\n /**\n * Enable or disable enter transitions.\n */\n enter: PropTypes$$1.bool,\n\n /**\n * Enable or disable exit transitions.\n */\n exit: PropTypes$$1.bool,\n\n /**\n * The duration of the transition, in milliseconds.\n * Required unless `addEndListener` is provided\n *\n * You may specify a single timeout for all transitions like: `timeout={500}`,\n * or individually like:\n *\n * ```jsx\n * timeout={{\n * enter: 300,\n * exit: 500,\n * }}\n * ```\n *\n * @type {number | { enter?: number, exit?: number }}\n */\n timeout: function timeout(props) {\n for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n var pt = PropTypes$1.timeoutsShape;\n if (!props.addEndListener) pt = pt.isRequired;\n return pt.apply(undefined, [props].concat(args));\n },\n\n /**\n * Add a custom transition end trigger. Called with the transitioning\n * DOM node and a `done` callback. Allows for more fine grained transition end\n * logic. **Note:** Timeouts are still used as a fallback if provided.\n *\n * ```jsx\n * addEndListener={(node, done) => {\n * // use the css transitionend event to mark the finish of a transition\n * node.addEventListener('transitionend', done, false);\n * }}\n * ```\n */\n addEndListener: PropTypes$$1.func,\n\n /**\n * Callback fired before the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEnter: PropTypes$$1.func,\n\n /**\n * Callback fired after the \"entering\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool)\n */\n onEntering: PropTypes$$1.func,\n\n /**\n * Callback fired after the \"entered\" status is applied. An extra parameter\n * `isAppearing` is supplied to indicate if the enter stage is occurring on the initial mount\n *\n * @type Function(node: HtmlElement, isAppearing: bool) -> void\n */\n onEntered: PropTypes$$1.func,\n\n /**\n * Callback fired before the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExit: PropTypes$$1.func,\n\n /**\n * Callback fired after the \"exiting\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExiting: PropTypes$$1.func,\n\n /**\n * Callback fired after the \"exited\" status is applied.\n *\n * @type Function(node: HtmlElement) -> void\n */\n onExited: PropTypes$$1.func\n } : {};\n\n // Name the function so it is clearer in the documentation\n function noop() {}\n\n Transition.defaultProps = {\n in: false,\n mountOnEnter: false,\n unmountOnExit: false,\n appear: false,\n enter: true,\n exit: true,\n\n onEnter: noop,\n onEntering: noop,\n onEntered: noop,\n\n onExit: noop,\n onExiting: noop,\n onExited: noop\n };\n\n Transition.UNMOUNTED = 0;\n Transition.EXITED = 1;\n Transition.ENTERING = 2;\n Transition.ENTERED = 3;\n Transition.EXITING = 4;\n\n exports.default = Transition;\n});\n\nvar Transition = unwrapExports(Transition_1);\n\nvar propTypes$19 = _extends({}, Transition.propTypes, {\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n tag: PropTypes.oneOfType([PropTypes.string, PropTypes.func]),\n baseClass: PropTypes.string,\n baseClassActive: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n});\n\nvar defaultProps$18 = _extends({}, Transition.defaultProps, {\n tag: 'div',\n baseClass: 'fade',\n baseClassActive: 'show',\n timeout: TransitionTimeouts.Fade,\n appear: true,\n enter: true,\n exit: true,\n in: true\n});\n\nfunction Fade(props) {\n var Tag = props.tag,\n baseClass = props.baseClass,\n baseClassActive = props.baseClassActive,\n className = props.className,\n cssModule = props.cssModule,\n children = props.children,\n innerRef = props.innerRef,\n otherProps = objectWithoutProperties(props, ['tag', 'baseClass', 'baseClassActive', 'className', 'cssModule', 'children', 'innerRef']);\n\n // In NODE_ENV=production the Transition.propTypes are wrapped which results in an\n // empty object \"{}\". This is the result of the `react-transition-group` babel\n // configuration settings. Therefore, to ensure that production builds work without\n // error, we can either explicitly define keys or use the Transition.defaultProps.\n // Using the Transition.defaultProps excludes any required props. Thus, the best\n // solution is to explicitly define required props in our utilities and reference these.\n // This also gives us more flexibility in the future to remove the prop-types\n // dependency in distribution builds (Similar to how `react-transition-group` does).\n // Note: Without omitting the `react-transition-group` props, the resulting child\n // Tag component would inherit the Transition properties as attributes for the HTML\n // element which results in errors/warnings for non-valid attributes.\n\n var transitionProps = pick(otherProps, TransitionPropTypeKeys);\n var childProps = omit(otherProps, TransitionPropTypeKeys);\n\n return React.createElement(\n Transition,\n transitionProps,\n function (status) {\n var isActive = status === 'entered';\n var classes = mapToCssModules(classNames(className, baseClass, isActive && baseClassActive), cssModule);\n return React.createElement(\n Tag,\n _extends({ className: classes }, childProps, { ref: innerRef }),\n children\n );\n }\n );\n}\n\nFade.propTypes = propTypes$19;\nFade.defaultProps = defaultProps$18;\n\nvar propTypes$20 = {\n color: PropTypes.string,\n pill: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$19 = {\n color: 'secondary',\n pill: false,\n tag: 'span'\n};\n\nvar Badge = function Badge(props) {\n var className = props.className,\n cssModule = props.cssModule,\n color = props.color,\n pill = props.pill,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'color', 'pill', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'badge', 'badge-' + color, pill ? 'badge-pill' : false), cssModule);\n\n if (attributes.href && Tag === 'span') {\n Tag = 'a';\n }\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nBadge.propTypes = propTypes$20;\nBadge.defaultProps = defaultProps$19;\n\nvar propTypes$21 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n inverse: PropTypes.bool,\n color: PropTypes.string,\n block: deprecated(PropTypes.bool, 'Please use the props \"body\"'),\n body: PropTypes.bool,\n outline: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\n\nvar defaultProps$20 = {\n tag: 'div'\n};\n\nvar Card = function Card(props) {\n var className = props.className,\n cssModule = props.cssModule,\n color = props.color,\n block = props.block,\n body = props.body,\n inverse = props.inverse,\n outline = props.outline,\n Tag = props.tag,\n innerRef = props.innerRef,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'color', 'block', 'body', 'inverse', 'outline', 'tag', 'innerRef']);\n\n var classes = mapToCssModules(classNames(className, 'card', inverse ? 'text-white' : false, block || body ? 'card-body' : false, color ? (outline ? 'border' : 'bg') + '-' + color : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes, ref: innerRef }));\n};\n\nCard.propTypes = propTypes$21;\nCard.defaultProps = defaultProps$20;\n\nvar propTypes$22 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$21 = {\n tag: 'div'\n};\n\nvar CardGroup = function CardGroup(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-group'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardGroup.propTypes = propTypes$22;\nCardGroup.defaultProps = defaultProps$21;\n\nvar propTypes$23 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$22 = {\n tag: 'div'\n};\n\nvar CardDeck = function CardDeck(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-deck'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardDeck.propTypes = propTypes$23;\nCardDeck.defaultProps = defaultProps$22;\n\nvar propTypes$24 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$23 = {\n tag: 'div'\n};\n\nvar CardColumns = function CardColumns(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-columns'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardColumns.propTypes = propTypes$24;\nCardColumns.defaultProps = defaultProps$23;\n\nvar propTypes$25 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$24 = {\n tag: 'div'\n};\n\nvar CardBody = function CardBody(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-body'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardBody.propTypes = propTypes$25;\nCardBody.defaultProps = defaultProps$24;\n\nfunction CardBlock(props) {\n warnOnce('The \"CardBlock\" component has been deprecated.\\nPlease use component \"CardBody\".');\n return React.createElement(CardBody, props);\n}\n\nvar propTypes$26 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$25 = {\n tag: 'a'\n};\n\nvar CardLink = function CardLink(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n innerRef = props.innerRef,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'innerRef']);\n\n var classes = mapToCssModules(classNames(className, 'card-link'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { ref: innerRef, className: classes }));\n};\n\nCardLink.propTypes = propTypes$26;\nCardLink.defaultProps = defaultProps$25;\n\nvar propTypes$27 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$26 = {\n tag: 'div'\n};\n\nvar CardFooter = function CardFooter(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-footer'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardFooter.propTypes = propTypes$27;\nCardFooter.defaultProps = defaultProps$26;\n\nvar propTypes$28 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$27 = {\n tag: 'div'\n};\n\nvar CardHeader = function CardHeader(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-header'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardHeader.propTypes = propTypes$28;\nCardHeader.defaultProps = defaultProps$27;\n\nvar propTypes$29 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n top: PropTypes.bool,\n bottom: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$28 = {\n tag: 'img'\n};\n\nvar CardImg = function CardImg(props) {\n var className = props.className,\n cssModule = props.cssModule,\n top = props.top,\n bottom = props.bottom,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'top', 'bottom', 'tag']);\n\n\n var cardImgClassName = 'card-img';\n if (top) {\n cardImgClassName = 'card-img-top';\n }\n if (bottom) {\n cardImgClassName = 'card-img-bottom';\n }\n\n var classes = mapToCssModules(classNames(className, cardImgClassName), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardImg.propTypes = propTypes$29;\nCardImg.defaultProps = defaultProps$28;\n\nvar propTypes$30 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$29 = {\n tag: 'div'\n};\n\nvar CardImgOverlay = function CardImgOverlay(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-img-overlay'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardImgOverlay.propTypes = propTypes$30;\nCardImgOverlay.defaultProps = defaultProps$29;\n\nvar CarouselItem = function (_React$Component) {\n inherits(CarouselItem, _React$Component);\n\n function CarouselItem(props) {\n classCallCheck(this, CarouselItem);\n\n var _this = possibleConstructorReturn(this, (CarouselItem.__proto__ || Object.getPrototypeOf(CarouselItem)).call(this, props));\n\n _this.state = {\n startAnimation: false\n };\n\n _this.onEnter = _this.onEnter.bind(_this);\n _this.onEntering = _this.onEntering.bind(_this);\n _this.onExit = _this.onExit.bind(_this);\n _this.onExiting = _this.onExiting.bind(_this);\n _this.onExited = _this.onExited.bind(_this);\n return _this;\n }\n\n createClass(CarouselItem, [{\n key: 'onEnter',\n value: function onEnter(node, isAppearing) {\n this.setState({ startAnimation: false });\n this.props.onEnter(node, isAppearing);\n }\n }, {\n key: 'onEntering',\n value: function onEntering(node, isAppearing) {\n // getting this variable triggers a reflow\n var offsetHeight = node.offsetHeight;\n this.setState({ startAnimation: true });\n this.props.onEntering(node, isAppearing);\n return offsetHeight;\n }\n }, {\n key: 'onExit',\n value: function onExit(node) {\n this.setState({ startAnimation: false });\n this.props.onExit(node);\n }\n }, {\n key: 'onExiting',\n value: function onExiting(node) {\n this.setState({ startAnimation: true });\n node.dispatchEvent(new CustomEvent('slide.bs.carousel'));\n this.props.onExiting(node);\n }\n }, {\n key: 'onExited',\n value: function onExited(node) {\n node.dispatchEvent(new CustomEvent('slid.bs.carousel'));\n this.props.onExited(node);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n isIn = _props.in,\n children = _props.children,\n cssModule = _props.cssModule,\n slide = _props.slide,\n Tag = _props.tag,\n className = _props.className,\n transitionProps = objectWithoutProperties(_props, ['in', 'children', 'cssModule', 'slide', 'tag', 'className']);\n\n\n return React.createElement(\n Transition,\n _extends({}, transitionProps, {\n enter: slide,\n exit: slide,\n 'in': isIn,\n onEnter: this.onEnter,\n onEntering: this.onEntering,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }),\n function (status) {\n var direction = _this2.context.direction;\n\n var isActive = status === TransitionStatuses.ENTERED || status === TransitionStatuses.EXITING;\n var directionClassName = (status === TransitionStatuses.ENTERING || status === TransitionStatuses.EXITING) && _this2.state.startAnimation && (direction === 'right' ? 'carousel-item-left' : 'carousel-item-right');\n var orderClassName = status === TransitionStatuses.ENTERING && (direction === 'right' ? 'carousel-item-next' : 'carousel-item-prev');\n var itemClasses = mapToCssModules(classNames(className, 'carousel-item', isActive && 'active', directionClassName, orderClassName), cssModule);\n\n return React.createElement(\n Tag,\n { className: itemClasses },\n children\n );\n }\n );\n }\n }]);\n return CarouselItem;\n}(React.Component);\n\nCarouselItem.propTypes = _extends({}, Transition.propTypes, {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n in: PropTypes.bool,\n cssModule: PropTypes.object,\n children: PropTypes.node,\n slide: PropTypes.bool,\n className: PropTypes.string\n});\n\nCarouselItem.defaultProps = _extends({}, Transition.defaultProps, {\n tag: 'div',\n timeout: TransitionTimeouts.Carousel,\n slide: true\n});\n\nCarouselItem.contextTypes = {\n direction: PropTypes.string\n};\n\nvar Carousel = function (_React$Component) {\n inherits(Carousel, _React$Component);\n\n function Carousel(props) {\n classCallCheck(this, Carousel);\n\n var _this = possibleConstructorReturn(this, (Carousel.__proto__ || Object.getPrototypeOf(Carousel)).call(this, props));\n\n _this.handleKeyPress = _this.handleKeyPress.bind(_this);\n _this.renderItems = _this.renderItems.bind(_this);\n _this.hoverStart = _this.hoverStart.bind(_this);\n _this.hoverEnd = _this.hoverEnd.bind(_this);\n _this.state = {\n direction: 'right',\n indicatorClicked: false\n };\n return _this;\n }\n\n createClass(Carousel, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return { direction: this.state.direction };\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n // Set up the cycle\n if (this.props.ride === 'carousel') {\n this.setInterval();\n }\n\n // TODO: move this to the specific carousel like bootstrap. Currently it will trigger ALL carousels on the page.\n document.addEventListener('keyup', this.handleKeyPress);\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n this.setInterval(nextProps);\n // Calculate the direction to turn\n if (this.props.activeIndex + 1 === nextProps.activeIndex) {\n this.setState({ direction: 'right' });\n } else if (this.props.activeIndex - 1 === nextProps.activeIndex) {\n this.setState({ direction: 'left' });\n } else if (this.props.activeIndex > nextProps.activeIndex) {\n this.setState({ direction: this.state.indicatorClicked ? 'left' : 'right' });\n } else if (this.props.activeIndex !== nextProps.activeIndex) {\n this.setState({ direction: this.state.indicatorClicked ? 'right' : 'left' });\n }\n this.setState({ indicatorClicked: false });\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.clearInterval();\n document.removeEventListener('keyup', this.handleKeyPress);\n }\n }, {\n key: 'setInterval',\n value: function (_setInterval) {\n function setInterval() {\n return _setInterval.apply(this, arguments);\n }\n\n setInterval.toString = function () {\n return _setInterval.toString();\n };\n\n return setInterval;\n }(function () {\n var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : this.props;\n\n // make sure not to have multiple intervals going...\n this.clearInterval();\n if (props.interval) {\n this.cycleInterval = setInterval(function () {\n props.next();\n }, parseInt(props.interval, 10));\n }\n })\n }, {\n key: 'clearInterval',\n value: function (_clearInterval) {\n function clearInterval() {\n return _clearInterval.apply(this, arguments);\n }\n\n clearInterval.toString = function () {\n return _clearInterval.toString();\n };\n\n return clearInterval;\n }(function () {\n clearInterval(this.cycleInterval);\n })\n }, {\n key: 'hoverStart',\n value: function hoverStart() {\n if (this.props.pause === 'hover') {\n this.clearInterval();\n }\n if (this.props.mouseEnter) {\n var _props;\n\n (_props = this.props).mouseEnter.apply(_props, arguments);\n }\n }\n }, {\n key: 'hoverEnd',\n value: function hoverEnd() {\n if (this.props.pause === 'hover') {\n this.setInterval();\n }\n if (this.props.mouseLeave) {\n var _props2;\n\n (_props2 = this.props).mouseLeave.apply(_props2, arguments);\n }\n }\n }, {\n key: 'handleKeyPress',\n value: function handleKeyPress(evt) {\n if (this.props.keyboard) {\n if (evt.keyCode === 37) {\n this.props.previous();\n } else if (evt.keyCode === 39) {\n this.props.next();\n }\n }\n }\n }, {\n key: 'renderItems',\n value: function renderItems(carouselItems, className) {\n var _this2 = this;\n\n var slide = this.props.slide;\n\n return React.createElement(\n 'div',\n { role: 'listbox', className: className },\n carouselItems.map(function (item, index) {\n var isIn = index === _this2.props.activeIndex;\n return React.cloneElement(item, {\n in: isIn,\n slide: slide\n });\n })\n );\n }\n }, {\n key: 'render',\n value: function render() {\n var _this3 = this;\n\n var _props3 = this.props,\n cssModule = _props3.cssModule,\n slide = _props3.slide,\n className = _props3.className;\n\n var outerClasses = mapToCssModules(classNames(className, 'carousel', slide && 'slide'), cssModule);\n\n var innerClasses = mapToCssModules(classNames('carousel-inner'), cssModule);\n\n // filter out booleans, null, or undefined\n var children = this.props.children.filter(function (child) {\n return child !== null && child !== undefined && typeof child !== 'boolean';\n });\n\n var slidesOnly = children.every(function (child) {\n return child.type === CarouselItem;\n });\n\n // Rendering only slides\n if (slidesOnly) {\n return React.createElement(\n 'div',\n { className: outerClasses, onMouseEnter: this.hoverStart, onMouseLeave: this.hoverEnd },\n this.renderItems(children, innerClasses)\n );\n }\n\n // Rendering slides and controls\n if (children[0] instanceof Array) {\n var _carouselItems = children[0];\n var _controlLeft = children[1];\n var _controlRight = children[2];\n\n return React.createElement(\n 'div',\n { className: outerClasses, onMouseEnter: this.hoverStart, onMouseLeave: this.hoverEnd },\n this.renderItems(_carouselItems, innerClasses),\n _controlLeft,\n _controlRight\n );\n }\n\n // Rendering indicators, slides and controls\n var indicators = children[0];\n var wrappedOnClick = function wrappedOnClick(e) {\n if (typeof indicators.props.onClickHandler === 'function') {\n _this3.setState({ indicatorClicked: true }, function () {\n return indicators.props.onClickHandler(e);\n });\n }\n };\n var wrappedIndicators = React.cloneElement(indicators, { onClickHandler: wrappedOnClick });\n var carouselItems = children[1];\n var controlLeft = children[2];\n var controlRight = children[3];\n\n return React.createElement(\n 'div',\n { className: outerClasses, onMouseEnter: this.hoverStart, onMouseLeave: this.hoverEnd },\n wrappedIndicators,\n this.renderItems(carouselItems, innerClasses),\n controlLeft,\n controlRight\n );\n }\n }]);\n return Carousel;\n}(React.Component);\n\nCarousel.propTypes = {\n // the current active slide of the carousel\n activeIndex: PropTypes.number,\n // a function which should advance the carousel to the next slide (via activeIndex)\n next: PropTypes.func.isRequired,\n // a function which should advance the carousel to the previous slide (via activeIndex)\n previous: PropTypes.func.isRequired,\n // controls if the left and right arrow keys should control the carousel\n keyboard: PropTypes.bool,\n /* If set to \"hover\", pauses the cycling of the carousel on mouseenter and resumes the cycling of the carousel on\n * mouseleave. If set to false, hovering over the carousel won't pause it. (default: \"hover\")\n */\n pause: PropTypes.oneOf(['hover', false]),\n // Autoplays the carousel after the user manually cycles the first item. If \"carousel\", autoplays the carousel on load.\n // This is how bootstrap defines it... I would prefer a bool named autoplay or something...\n ride: PropTypes.oneOf(['carousel']),\n // the interval at which the carousel automatically cycles (default: 5000)\n // eslint-disable-next-line react/no-unused-prop-types\n interval: PropTypes.oneOfType([PropTypes.number, PropTypes.string, PropTypes.bool]),\n children: PropTypes.array,\n // called when the mouse enters the Carousel\n mouseEnter: PropTypes.func,\n // called when the mouse exits the Carousel\n mouseLeave: PropTypes.func,\n // controls whether the slide animation on the Carousel works or not\n slide: PropTypes.bool,\n cssModule: PropTypes.object,\n className: PropTypes.string\n};\n\nCarousel.defaultProps = {\n interval: 5000,\n pause: 'hover',\n keyboard: true,\n slide: true\n};\n\nCarousel.childContextTypes = {\n direction: PropTypes.string\n};\n\nvar CarouselControl = function CarouselControl(props) {\n var direction = props.direction,\n onClickHandler = props.onClickHandler,\n cssModule = props.cssModule,\n directionText = props.directionText,\n className = props.className;\n\n\n var anchorClasses = mapToCssModules(classNames(className, 'carousel-control-' + direction), cssModule);\n\n var iconClasses = mapToCssModules(classNames('carousel-control-' + direction + '-icon'), cssModule);\n\n var screenReaderClasses = mapToCssModules(classNames('sr-only'), cssModule);\n\n return React.createElement(\n 'a',\n {\n className: anchorClasses,\n role: 'button',\n tabIndex: '0',\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler();\n }\n },\n React.createElement('span', { className: iconClasses, 'aria-hidden': 'true' }),\n React.createElement(\n 'span',\n { className: screenReaderClasses },\n directionText || direction\n )\n );\n};\n\nCarouselControl.propTypes = {\n direction: PropTypes.oneOf(['prev', 'next']).isRequired,\n onClickHandler: PropTypes.func.isRequired,\n cssModule: PropTypes.object,\n directionText: PropTypes.string,\n className: PropTypes.string\n};\n\nvar CarouselIndicators = function CarouselIndicators(props) {\n var items = props.items,\n activeIndex = props.activeIndex,\n cssModule = props.cssModule,\n onClickHandler = props.onClickHandler,\n className = props.className;\n\n\n var listClasses = mapToCssModules(classNames(className, 'carousel-indicators'), cssModule);\n var indicators = items.map(function (item, idx) {\n var indicatorClasses = mapToCssModules(classNames({ active: activeIndex === idx }), cssModule);\n return React.createElement('li', {\n key: '' + (item.key || item.src) + item.caption + item.altText,\n onClick: function onClick(e) {\n e.preventDefault();\n onClickHandler(idx);\n },\n className: indicatorClasses\n });\n });\n\n return React.createElement(\n 'ol',\n { className: listClasses },\n indicators\n );\n};\n\nCarouselIndicators.propTypes = {\n items: PropTypes.array.isRequired,\n activeIndex: PropTypes.number.isRequired,\n cssModule: PropTypes.object,\n onClickHandler: PropTypes.func.isRequired,\n className: PropTypes.string\n};\n\nvar CarouselCaption = function CarouselCaption(props) {\n var captionHeader = props.captionHeader,\n captionText = props.captionText,\n cssModule = props.cssModule,\n className = props.className;\n\n var classes = mapToCssModules(classNames(className, 'carousel-caption', 'd-none', 'd-md-block'), cssModule);\n\n return React.createElement(\n 'div',\n { className: classes },\n React.createElement(\n 'h3',\n null,\n captionHeader\n ),\n React.createElement(\n 'p',\n null,\n captionText\n )\n );\n};\n\nCarouselCaption.propTypes = {\n captionHeader: PropTypes.string,\n captionText: PropTypes.string.isRequired,\n cssModule: PropTypes.object,\n className: PropTypes.string\n};\n\nvar propTypes$31 = {\n items: PropTypes.array.isRequired,\n indicators: PropTypes.bool,\n controls: PropTypes.bool,\n autoPlay: PropTypes.bool,\n activeIndex: PropTypes.number,\n next: PropTypes.func,\n previous: PropTypes.func,\n goToIndex: PropTypes.func\n};\n\nvar UncontrolledCarousel = function (_Component) {\n inherits(UncontrolledCarousel, _Component);\n\n function UncontrolledCarousel(props) {\n classCallCheck(this, UncontrolledCarousel);\n\n var _this = possibleConstructorReturn(this, (UncontrolledCarousel.__proto__ || Object.getPrototypeOf(UncontrolledCarousel)).call(this, props));\n\n _this.animating = false;\n _this.state = { activeIndex: 0 };\n _this.next = _this.next.bind(_this);\n _this.previous = _this.previous.bind(_this);\n _this.goToIndex = _this.goToIndex.bind(_this);\n _this.onExiting = _this.onExiting.bind(_this);\n _this.onExited = _this.onExited.bind(_this);\n return _this;\n }\n\n createClass(UncontrolledCarousel, [{\n key: 'onExiting',\n value: function onExiting() {\n this.animating = true;\n }\n }, {\n key: 'onExited',\n value: function onExited() {\n this.animating = false;\n }\n }, {\n key: 'next',\n value: function next() {\n if (this.animating) return;\n var nextIndex = this.state.activeIndex === this.props.items.length - 1 ? 0 : this.state.activeIndex + 1;\n this.setState({ activeIndex: nextIndex });\n }\n }, {\n key: 'previous',\n value: function previous() {\n if (this.animating) return;\n var nextIndex = this.state.activeIndex === 0 ? this.props.items.length - 1 : this.state.activeIndex - 1;\n this.setState({ activeIndex: nextIndex });\n }\n }, {\n key: 'goToIndex',\n value: function goToIndex(newIndex) {\n if (this.animating) return;\n this.setState({ activeIndex: newIndex });\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n autoPlay = _props.autoPlay,\n indicators = _props.indicators,\n controls = _props.controls,\n items = _props.items,\n goToIndex = _props.goToIndex,\n props = objectWithoutProperties(_props, ['autoPlay', 'indicators', 'controls', 'items', 'goToIndex']);\n var activeIndex = this.state.activeIndex;\n\n\n var slides = items.map(function (item) {\n return React.createElement(\n CarouselItem,\n {\n onExiting: _this2.onExiting,\n onExited: _this2.onExited,\n key: item.src\n },\n React.createElement('img', { className: 'd-block w-100', src: item.src, alt: item.altText }),\n React.createElement(CarouselCaption, { captionText: item.caption, captionHeader: item.header || item.caption })\n );\n });\n\n return React.createElement(\n Carousel,\n _extends({\n activeIndex: activeIndex,\n next: this.next,\n previous: this.previous,\n ride: autoPlay ? 'carousel' : undefined\n }, props),\n indicators && React.createElement(CarouselIndicators, {\n items: items,\n activeIndex: props.activeIndex || activeIndex,\n onClickHandler: goToIndex || this.goToIndex\n }),\n slides,\n controls && React.createElement(CarouselControl, {\n direction: 'prev',\n directionText: 'Previous',\n onClickHandler: props.previous || this.previous\n }),\n controls && React.createElement(CarouselControl, {\n direction: 'next',\n directionText: 'Next',\n onClickHandler: props.next || this.next\n })\n );\n }\n }]);\n return UncontrolledCarousel;\n}(Component);\n\nUncontrolledCarousel.propTypes = propTypes$31;\nUncontrolledCarousel.defaultProps = {\n controls: true,\n indicators: true,\n autoPlay: true\n};\n\nvar propTypes$32 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$30 = {\n tag: 'h6'\n};\n\nvar CardSubtitle = function CardSubtitle(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-subtitle'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardSubtitle.propTypes = propTypes$32;\nCardSubtitle.defaultProps = defaultProps$30;\n\nvar propTypes$33 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$31 = {\n tag: 'p'\n};\n\nvar CardText = function CardText(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-text'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardText.propTypes = propTypes$33;\nCardText.defaultProps = defaultProps$31;\n\nvar propTypes$34 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$32 = {\n tag: 'h5'\n};\n\nvar CardTitle = function CardTitle(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'card-title'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nCardTitle.propTypes = propTypes$34;\nCardTitle.defaultProps = defaultProps$32;\n\nvar propTypes$35 = {\n className: PropTypes.string,\n id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]).isRequired,\n type: PropTypes.string.isRequired,\n label: PropTypes.node,\n inline: PropTypes.bool,\n valid: PropTypes.bool,\n invalid: PropTypes.bool,\n bsSize: PropTypes.string,\n cssModule: PropTypes.object,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.array, PropTypes.func]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\n\nfunction CustomInput(props) {\n var className = props.className,\n label = props.label,\n inline = props.inline,\n valid = props.valid,\n invalid = props.invalid,\n cssModule = props.cssModule,\n children = props.children,\n bsSize = props.bsSize,\n innerRef = props.innerRef,\n attributes = objectWithoutProperties(props, ['className', 'label', 'inline', 'valid', 'invalid', 'cssModule', 'children', 'bsSize', 'innerRef']);\n\n\n var type = attributes.type;\n\n var customClass = mapToCssModules(classNames(className, 'custom-' + type, bsSize ? 'custom-' + type + '-' + bsSize : false), cssModule);\n\n var validationClassNames = mapToCssModules(classNames(invalid && 'is-invalid', valid && 'is-valid'), cssModule);\n\n if (type === 'select') {\n return React.createElement(\n 'select',\n _extends({}, attributes, { ref: innerRef, className: classNames(validationClassNames, customClass) }),\n children\n );\n }\n\n if (type === 'file') {\n return React.createElement(\n 'div',\n { className: customClass },\n React.createElement('input', _extends({}, attributes, { ref: innerRef, className: classNames(validationClassNames, mapToCssModules('custom-file-input', cssModule)) })),\n React.createElement(\n 'label',\n { className: mapToCssModules('custom-file-label', cssModule), htmlFor: attributes.id },\n label || 'Choose file'\n )\n );\n }\n\n if (type !== 'checkbox' && type !== 'radio') {\n return React.createElement('input', _extends({}, attributes, { ref: innerRef, className: classNames(validationClassNames, customClass) }));\n }\n\n var wrapperClasses = classNames(customClass, mapToCssModules(classNames('custom-control', { 'custom-control-inline': inline }), cssModule));\n\n return React.createElement(\n 'div',\n { className: wrapperClasses },\n React.createElement('input', _extends({}, attributes, {\n ref: innerRef,\n className: classNames(validationClassNames, mapToCssModules('custom-control-input', cssModule))\n })),\n React.createElement(\n 'label',\n { className: mapToCssModules('custom-control-label', cssModule), htmlFor: attributes.id },\n label\n ),\n children\n );\n}\n\nCustomInput.propTypes = propTypes$35;\n\nvar propTypes$36 = {\n children: PropTypes.node.isRequired,\n className: PropTypes.string,\n placement: PropTypes.string,\n placementPrefix: PropTypes.string,\n arrowClassName: PropTypes.string,\n hideArrow: PropTypes.bool,\n tag: PropTypes.string,\n isOpen: PropTypes.bool.isRequired,\n cssModule: PropTypes.object,\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n fallbackPlacement: PropTypes.oneOfType([PropTypes.string, PropTypes.array]),\n flip: PropTypes.bool,\n container: targetPropType,\n target: targetPropType.isRequired,\n modifiers: PropTypes.object,\n boundariesElement: PropTypes.oneOfType([PropTypes.string, DOMElement])\n};\n\nvar defaultProps$33 = {\n boundariesElement: 'scrollParent',\n placement: 'auto',\n hideArrow: false,\n isOpen: false,\n offset: 0,\n fallbackPlacement: 'flip',\n flip: true,\n container: 'body',\n modifiers: {}\n};\n\nvar childContextTypes$1 = {\n popperManager: PropTypes.object.isRequired\n};\n\nvar PopperContent = function (_React$Component) {\n inherits(PopperContent, _React$Component);\n\n function PopperContent(props) {\n classCallCheck(this, PopperContent);\n\n var _this = possibleConstructorReturn(this, (PopperContent.__proto__ || Object.getPrototypeOf(PopperContent)).call(this, props));\n\n _this.handlePlacementChange = _this.handlePlacementChange.bind(_this);\n _this.setTargetNode = _this.setTargetNode.bind(_this);\n _this.getTargetNode = _this.getTargetNode.bind(_this);\n _this.state = {};\n return _this;\n }\n\n createClass(PopperContent, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n popperManager: {\n setTargetNode: this.setTargetNode,\n getTargetNode: this.getTargetNode\n }\n };\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.handleProps();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps) {\n if (this.props.isOpen !== prevProps.isOpen) {\n this.handleProps();\n } else if (this._element) {\n // rerender\n this.renderIntoSubtree();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.hide();\n }\n }, {\n key: 'setTargetNode',\n value: function setTargetNode(node) {\n this.targetNode = node;\n }\n }, {\n key: 'getTargetNode',\n value: function getTargetNode() {\n return this.targetNode;\n }\n }, {\n key: 'getContainerNode',\n value: function getContainerNode() {\n return getTarget(this.props.container);\n }\n }, {\n key: 'handlePlacementChange',\n value: function handlePlacementChange(data) {\n if (this.state.placement !== data.placement) {\n this.setState({ placement: data.placement });\n }\n return data;\n }\n }, {\n key: 'handleProps',\n value: function handleProps() {\n if (this.props.container !== 'inline') {\n if (this.props.isOpen) {\n this.show();\n } else {\n this.hide();\n }\n }\n }\n }, {\n key: 'hide',\n value: function hide() {\n if (this._element) {\n this.getContainerNode().removeChild(this._element);\n ReactDOM.unmountComponentAtNode(this._element);\n this._element = null;\n }\n }\n }, {\n key: 'show',\n value: function show() {\n this._element = document.createElement('div');\n this.getContainerNode().appendChild(this._element);\n this.renderIntoSubtree();\n if (this._element.childNodes && this._element.childNodes[0] && this._element.childNodes[0].focus) {\n this._element.childNodes[0].focus();\n }\n }\n }, {\n key: 'renderIntoSubtree',\n value: function renderIntoSubtree() {\n ReactDOM.unstable_renderSubtreeIntoContainer(this, this.renderChildren(), this._element);\n }\n }, {\n key: 'renderChildren',\n value: function renderChildren() {\n var _props = this.props,\n cssModule = _props.cssModule,\n children = _props.children,\n isOpen = _props.isOpen,\n flip = _props.flip,\n target = _props.target,\n offset = _props.offset,\n fallbackPlacement = _props.fallbackPlacement,\n placementPrefix = _props.placementPrefix,\n _arrowClassName = _props.arrowClassName,\n hideArrow = _props.hideArrow,\n className = _props.className,\n tag = _props.tag,\n container = _props.container,\n modifiers = _props.modifiers,\n boundariesElement = _props.boundariesElement,\n attrs = objectWithoutProperties(_props, ['cssModule', 'children', 'isOpen', 'flip', 'target', 'offset', 'fallbackPlacement', 'placementPrefix', 'arrowClassName', 'hideArrow', 'className', 'tag', 'container', 'modifiers', 'boundariesElement']);\n\n var arrowClassName = mapToCssModules(classNames('arrow', _arrowClassName), cssModule);\n var placement = (this.state.placement || attrs.placement).split('-')[0];\n var popperClassName = mapToCssModules(classNames(className, placementPrefix ? placementPrefix + '-' + placement : placement), this.props.cssModule);\n\n var extendedModifiers = _extends({\n offset: { offset: offset },\n flip: { enabled: flip, behavior: fallbackPlacement },\n preventOverflow: { boundariesElement: boundariesElement },\n update: {\n enabled: true,\n order: 950,\n fn: this.handlePlacementChange\n }\n }, modifiers);\n\n return React.createElement(\n Popper,\n _extends({ modifiers: extendedModifiers }, attrs, { component: tag, className: popperClassName, 'x-placement': this.state.placement || attrs.placement }),\n children,\n !hideArrow && React.createElement(Arrow, { className: arrowClassName })\n );\n }\n }, {\n key: 'render',\n value: function render() {\n this.setTargetNode(getTarget(this.props.target));\n\n if (this.props.container === 'inline') {\n return this.props.isOpen ? this.renderChildren() : null;\n }\n\n return null;\n }\n }]);\n return PopperContent;\n}(React.Component);\n\nPopperContent.propTypes = propTypes$36;\nPopperContent.defaultProps = defaultProps$33;\nPopperContent.childContextTypes = childContextTypes$1;\n\nvar PopperTargetHelper = function PopperTargetHelper(props, context) {\n context.popperManager.setTargetNode(getTarget(props.target));\n return null;\n};\n\nPopperTargetHelper.contextTypes = {\n popperManager: PropTypes.object.isRequired\n};\n\nPopperTargetHelper.propTypes = {\n target: targetPropType.isRequired\n};\n\nvar propTypes$37 = {\n placement: PropTypes.oneOf(PopperPlacements),\n target: targetPropType.isRequired,\n container: targetPropType,\n boundariesElement: PropTypes.oneOfType([PropTypes.string, DOMElement]),\n isOpen: PropTypes.bool,\n disabled: PropTypes.bool,\n hideArrow: PropTypes.bool,\n className: PropTypes.string,\n innerClassName: PropTypes.string,\n placementPrefix: PropTypes.string,\n cssModule: PropTypes.object,\n toggle: PropTypes.func,\n delay: PropTypes.oneOfType([PropTypes.shape({ show: PropTypes.number, hide: PropTypes.number }), PropTypes.number]),\n modifiers: PropTypes.object,\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n};\n\nvar DEFAULT_DELAYS = {\n show: 0,\n hide: 0\n};\n\nvar defaultProps$34 = {\n isOpen: false,\n hideArrow: false,\n placement: 'right',\n placementPrefix: 'bs-popover',\n delay: DEFAULT_DELAYS,\n toggle: function toggle() {}\n};\n\nvar Popover = function (_React$Component) {\n inherits(Popover, _React$Component);\n\n function Popover(props) {\n classCallCheck(this, Popover);\n\n var _this = possibleConstructorReturn(this, (Popover.__proto__ || Object.getPrototypeOf(Popover)).call(this, props));\n\n _this.addTargetEvents = _this.addTargetEvents.bind(_this);\n _this.handleDocumentClick = _this.handleDocumentClick.bind(_this);\n _this.removeTargetEvents = _this.removeTargetEvents.bind(_this);\n _this.getRef = _this.getRef.bind(_this);\n _this.toggle = _this.toggle.bind(_this);\n _this.show = _this.show.bind(_this);\n _this.hide = _this.hide.bind(_this);\n _this._target = null;\n return _this;\n }\n\n createClass(Popover, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this._target = getTarget(this.props.target);\n this.handleProps();\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.handleProps();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.clearShowTimeout();\n this.clearHideTimeout();\n this.removeTargetEvents();\n }\n }, {\n key: 'getRef',\n value: function getRef(ref) {\n this._popover = ref;\n }\n }, {\n key: 'getDelay',\n value: function getDelay(key) {\n var delay = this.props.delay;\n\n if ((typeof delay === 'undefined' ? 'undefined' : _typeof(delay)) === 'object') {\n return isNaN(delay[key]) ? DEFAULT_DELAYS[key] : delay[key];\n }\n return delay;\n }\n }, {\n key: 'handleProps',\n value: function handleProps() {\n if (this.props.isOpen) {\n this.show();\n } else {\n this.hide();\n }\n }\n }, {\n key: 'show',\n value: function show() {\n this.clearHideTimeout();\n this.addTargetEvents();\n if (!this.props.isOpen) {\n this.clearShowTimeout();\n this._showTimeout = setTimeout(this.toggle, this.getDelay('show'));\n }\n }\n }, {\n key: 'hide',\n value: function hide() {\n this.clearShowTimeout();\n this.removeTargetEvents();\n if (this.props.isOpen) {\n this.clearHideTimeout();\n this._hideTimeout = setTimeout(this.toggle, this.getDelay('hide'));\n }\n }\n }, {\n key: 'clearShowTimeout',\n value: function clearShowTimeout() {\n clearTimeout(this._showTimeout);\n this._showTimeout = undefined;\n }\n }, {\n key: 'clearHideTimeout',\n value: function clearHideTimeout() {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = undefined;\n }\n }, {\n key: 'handleDocumentClick',\n value: function handleDocumentClick(e) {\n if (this._target) {\n if (e.target !== this._target && !this._target.contains(e.target) && e.target !== this._popover && !(this._popover && this._popover.contains(e.target))) {\n if (this._hideTimeout) {\n this.clearHideTimeout();\n }\n\n if (this.props.isOpen) {\n this.toggle(e);\n }\n }\n }\n }\n }, {\n key: 'addTargetEvents',\n value: function addTargetEvents() {\n var _this2 = this;\n\n ['click', 'touchstart'].forEach(function (event) {\n return document.addEventListener(event, _this2.handleDocumentClick, true);\n });\n }\n }, {\n key: 'removeTargetEvents',\n value: function removeTargetEvents() {\n var _this3 = this;\n\n ['click', 'touchstart'].forEach(function (event) {\n return document.removeEventListener(event, _this3.handleDocumentClick, true);\n });\n }\n }, {\n key: 'toggle',\n value: function toggle(e) {\n if (this.props.disabled) {\n return e && e.preventDefault();\n }\n\n return this.props.toggle(e);\n }\n }, {\n key: 'render',\n value: function render() {\n if (!this.props.isOpen) {\n return null;\n }\n\n var attributes = omit(this.props, Object.keys(propTypes$37));\n var classes = mapToCssModules(classNames('popover-inner', this.props.innerClassName), this.props.cssModule);\n\n var popperClasses = mapToCssModules(classNames('popover', 'show', this.props.className), this.props.cssModule);\n\n return React.createElement(\n PopperContent,\n {\n className: popperClasses,\n target: this.props.target,\n isOpen: this.props.isOpen,\n hideArrow: this.props.hideArrow,\n placement: this.props.placement,\n placementPrefix: this.props.placementPrefix,\n container: this.props.container,\n modifiers: this.props.modifiers,\n offset: this.props.offset,\n boundariesElement: this.props.boundariesElement\n },\n React.createElement('div', _extends({}, attributes, { className: classes, ref: this.getRef }))\n );\n }\n }]);\n return Popover;\n}(React.Component);\n\nPopover.propTypes = propTypes$37;\nPopover.defaultProps = defaultProps$34;\n\nvar propTypes$38 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$35 = {\n tag: 'h3'\n};\n\nvar PopoverHeader = function PopoverHeader(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'popover-header'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nPopoverHeader.propTypes = propTypes$38;\nPopoverHeader.defaultProps = defaultProps$35;\n\nfunction PopoverTitle(props) {\n warnOnce('The \"PopoverTitle\" component has been deprecated.\\nPlease use component \"PopoverHeader\".');\n return React.createElement(PopoverHeader, props);\n}\n\nvar propTypes$39 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$36 = {\n tag: 'div'\n};\n\nvar PopoverBody = function PopoverBody(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'popover-body'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nPopoverBody.propTypes = propTypes$39;\nPopoverBody.defaultProps = defaultProps$36;\n\nfunction PopoverContent(props) {\n warnOnce('The \"PopoverContent\" component has been deprecated.\\nPlease use component \"PopoverBody\".');\n return React.createElement(PopoverBody, props);\n}\n\nvar propTypes$40 = {\n children: PropTypes.node,\n bar: PropTypes.bool,\n multi: PropTypes.bool,\n tag: PropTypes.string,\n value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n max: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n animated: PropTypes.bool,\n striped: PropTypes.bool,\n color: PropTypes.string,\n className: PropTypes.string,\n barClassName: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$37 = {\n tag: 'div',\n value: 0,\n max: 100\n};\n\nvar Progress = function Progress(props) {\n var children = props.children,\n className = props.className,\n barClassName = props.barClassName,\n cssModule = props.cssModule,\n value = props.value,\n max = props.max,\n animated = props.animated,\n striped = props.striped,\n color = props.color,\n bar = props.bar,\n multi = props.multi,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['children', 'className', 'barClassName', 'cssModule', 'value', 'max', 'animated', 'striped', 'color', 'bar', 'multi', 'tag']);\n\n\n var percent = toNumber(value) / toNumber(max) * 100;\n\n var progressClasses = mapToCssModules(classNames(className, 'progress'), cssModule);\n\n var progressBarClasses = mapToCssModules(classNames('progress-bar', bar ? className || barClassName : barClassName, animated ? 'progress-bar-animated' : null, color ? 'bg-' + color : null, striped || animated ? 'progress-bar-striped' : null), cssModule);\n\n var ProgressBar = multi ? children : React.createElement('div', {\n className: progressBarClasses,\n style: { width: percent + '%' },\n role: 'progressbar',\n 'aria-valuenow': value,\n 'aria-valuemin': '0',\n 'aria-valuemax': max,\n children: children\n });\n\n if (bar) {\n return ProgressBar;\n }\n\n return React.createElement(Tag, _extends({}, attributes, { className: progressClasses, children: ProgressBar }));\n};\n\nProgress.propTypes = propTypes$40;\nProgress.defaultProps = defaultProps$37;\n\nvar propTypes$42 = {\n children: PropTypes.node.isRequired,\n node: PropTypes.any\n};\n\nvar Portal = function (_React$Component) {\n inherits(Portal, _React$Component);\n\n function Portal() {\n classCallCheck(this, Portal);\n return possibleConstructorReturn(this, (Portal.__proto__ || Object.getPrototypeOf(Portal)).apply(this, arguments));\n }\n\n createClass(Portal, [{\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.defaultNode) {\n document.body.removeChild(this.defaultNode);\n }\n this.defaultNode = null;\n }\n }, {\n key: 'render',\n value: function render() {\n if (!canUseDOM) {\n return null;\n }\n\n if (!this.props.node && !this.defaultNode) {\n this.defaultNode = document.createElement('div');\n document.body.appendChild(this.defaultNode);\n }\n\n return ReactDOM.createPortal(this.props.children, this.props.node || this.defaultNode);\n }\n }]);\n return Portal;\n}(React.Component);\n\nPortal.propTypes = propTypes$42;\n\nfunction noop() {}\n\nvar FadePropTypes = PropTypes.shape(Fade.propTypes);\n\nvar propTypes$41 = {\n isOpen: PropTypes.bool,\n autoFocus: PropTypes.bool,\n centered: PropTypes.bool,\n size: PropTypes.string,\n toggle: PropTypes.func,\n keyboard: PropTypes.bool,\n role: PropTypes.string,\n labelledBy: PropTypes.string,\n backdrop: PropTypes.oneOfType([PropTypes.bool, PropTypes.oneOf(['static'])]),\n onEnter: PropTypes.func,\n onExit: PropTypes.func,\n onOpened: PropTypes.func,\n onClosed: PropTypes.func,\n children: PropTypes.node,\n className: PropTypes.string,\n wrapClassName: PropTypes.string,\n modalClassName: PropTypes.string,\n backdropClassName: PropTypes.string,\n contentClassName: PropTypes.string,\n external: PropTypes.node,\n fade: PropTypes.bool,\n cssModule: PropTypes.object,\n zIndex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n backdropTransition: FadePropTypes,\n modalTransition: FadePropTypes,\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\n\nvar propsToOmit = Object.keys(propTypes$41);\n\nvar defaultProps$38 = {\n isOpen: false,\n autoFocus: true,\n centered: false,\n role: 'dialog',\n backdrop: true,\n keyboard: true,\n zIndex: 1050,\n fade: true,\n onOpened: noop,\n onClosed: noop,\n modalTransition: {\n timeout: TransitionTimeouts.Modal\n },\n backdropTransition: {\n mountOnEnter: true,\n timeout: TransitionTimeouts.Fade // uses standard fade transition\n }\n};\n\nvar Modal = function (_React$Component) {\n inherits(Modal, _React$Component);\n\n function Modal(props) {\n classCallCheck(this, Modal);\n\n var _this = possibleConstructorReturn(this, (Modal.__proto__ || Object.getPrototypeOf(Modal)).call(this, props));\n\n _this._element = null;\n _this._originalBodyPadding = null;\n _this.getFocusableChildren = _this.getFocusableChildren.bind(_this);\n _this.handleBackdropClick = _this.handleBackdropClick.bind(_this);\n _this.handleBackdropMouseDown = _this.handleBackdropMouseDown.bind(_this);\n _this.handleEscape = _this.handleEscape.bind(_this);\n _this.handleTab = _this.handleTab.bind(_this);\n _this.onOpened = _this.onOpened.bind(_this);\n _this.onClosed = _this.onClosed.bind(_this);\n\n _this.state = {\n isOpen: props.isOpen\n };\n\n if (props.isOpen) {\n _this.init();\n }\n return _this;\n }\n\n createClass(Modal, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (this.props.onEnter) {\n this.props.onEnter();\n }\n\n if (this.state.isOpen && this.props.autoFocus) {\n this.setFocus();\n }\n\n this._isMounted = true;\n }\n }, {\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n if (nextProps.isOpen && !this.props.isOpen) {\n this.setState({ isOpen: nextProps.isOpen });\n }\n }\n }, {\n key: 'componentWillUpdate',\n value: function componentWillUpdate(nextProps, nextState) {\n if (nextState.isOpen && !this.state.isOpen) {\n this.init();\n }\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate(prevProps, prevState) {\n if (this.props.autoFocus && this.state.isOpen && !prevState.isOpen) {\n this.setFocus();\n }\n\n if (this._element && prevProps.zIndex !== this.props.zIndex) {\n this._element.style.zIndex = this.props.zIndex;\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.props.onExit) {\n this.props.onExit();\n }\n\n if (this.state.isOpen) {\n this.destroy();\n }\n\n this._isMounted = false;\n }\n }, {\n key: 'onOpened',\n value: function onOpened(node, isAppearing) {\n this.props.onOpened();\n (this.props.modalTransition.onEntered || noop)(node, isAppearing);\n }\n }, {\n key: 'onClosed',\n value: function onClosed(node) {\n // so all methods get called before it is unmounted\n this.props.onClosed();\n (this.props.modalTransition.onExited || noop)(node);\n this.destroy();\n\n if (this._isMounted) {\n this.setState({ isOpen: false });\n }\n }\n }, {\n key: 'setFocus',\n value: function setFocus() {\n if (this._dialog && this._dialog.parentNode && typeof this._dialog.parentNode.focus === 'function') {\n this._dialog.parentNode.focus();\n }\n }\n }, {\n key: 'getFocusableChildren',\n value: function getFocusableChildren() {\n return this._element.querySelectorAll(focusableElements.join(', '));\n }\n }, {\n key: 'getFocusedChild',\n value: function getFocusedChild() {\n var currentFocus = void 0;\n var focusableChildren = this.getFocusableChildren();\n\n try {\n currentFocus = document.activeElement;\n } catch (err) {\n currentFocus = focusableChildren[0];\n }\n return currentFocus;\n }\n\n // not mouseUp because scrollbar fires it, shouldn't close when user scrolls\n\n }, {\n key: 'handleBackdropClick',\n value: function handleBackdropClick(e) {\n if (e.target === this._mouseDownElement) {\n e.stopPropagation();\n if (!this.props.isOpen || this.props.backdrop !== true) return;\n\n var container = this._dialog;\n\n if (e.target && !container.contains(e.target) && this.props.toggle) {\n this.props.toggle(e);\n }\n }\n }\n }, {\n key: 'handleTab',\n value: function handleTab(e) {\n if (e.which !== 9) return;\n\n var focusableChildren = this.getFocusableChildren();\n var totalFocusable = focusableChildren.length;\n var currentFocus = this.getFocusedChild();\n\n var focusedIndex = 0;\n\n for (var i = 0; i < totalFocusable; i += 1) {\n if (focusableChildren[i] === currentFocus) {\n focusedIndex = i;\n break;\n }\n }\n\n if (e.shiftKey && focusedIndex === 0) {\n e.preventDefault();\n focusableChildren[totalFocusable - 1].focus();\n } else if (!e.shiftKey && focusedIndex === totalFocusable - 1) {\n e.preventDefault();\n focusableChildren[0].focus();\n }\n }\n }, {\n key: 'handleBackdropMouseDown',\n value: function handleBackdropMouseDown(e) {\n this._mouseDownElement = e.target;\n }\n }, {\n key: 'handleEscape',\n value: function handleEscape(e) {\n if (this.props.isOpen && this.props.keyboard && e.keyCode === 27 && this.props.toggle) {\n this.props.toggle(e);\n }\n }\n }, {\n key: 'init',\n value: function init() {\n try {\n this._triggeringElement = document.activeElement;\n } catch (err) {\n this._triggeringElement = null;\n }\n this._element = document.createElement('div');\n this._element.setAttribute('tabindex', '-1');\n this._element.style.position = 'relative';\n this._element.style.zIndex = this.props.zIndex;\n this._originalBodyPadding = getOriginalBodyPadding();\n\n conditionallyUpdateScrollbar();\n\n document.body.appendChild(this._element);\n if (Modal.openCount === 0) {\n document.body.className = classNames(document.body.className, mapToCssModules('modal-open', this.props.cssModule));\n }\n Modal.openCount += 1;\n }\n }, {\n key: 'destroy',\n value: function destroy() {\n if (this._element) {\n document.body.removeChild(this._element);\n this._element = null;\n }\n\n if (this._triggeringElement) {\n if (this._triggeringElement.focus) this._triggeringElement.focus();\n this._triggeringElement = null;\n }\n\n if (Modal.openCount <= 1) {\n var modalOpenClassName = mapToCssModules('modal-open', this.props.cssModule);\n // Use regex to prevent matching `modal-open` as part of a different class, e.g. `my-modal-opened`\n var modalOpenClassNameRegex = new RegExp('(^| )' + modalOpenClassName + '( |$)');\n document.body.className = document.body.className.replace(modalOpenClassNameRegex, ' ').trim();\n }\n Modal.openCount -= 1;\n\n setScrollbarWidth(this._originalBodyPadding);\n }\n }, {\n key: 'renderModalDialog',\n value: function renderModalDialog() {\n var _classNames,\n _this2 = this;\n\n var attributes = omit(this.props, propsToOmit);\n var dialogBaseClass = 'modal-dialog';\n\n return React.createElement(\n 'div',\n _extends({}, attributes, {\n className: mapToCssModules(classNames(dialogBaseClass, this.props.className, (_classNames = {}, defineProperty(_classNames, 'modal-' + this.props.size, this.props.size), defineProperty(_classNames, dialogBaseClass + '-centered', this.props.centered), _classNames)), this.props.cssModule),\n role: 'document',\n ref: function ref(c) {\n _this2._dialog = c;\n }\n }),\n React.createElement(\n 'div',\n {\n className: mapToCssModules(classNames('modal-content', this.props.contentClassName), this.props.cssModule)\n },\n this.props.children\n )\n );\n }\n }, {\n key: 'render',\n value: function render() {\n if (this.state.isOpen) {\n var _props = this.props,\n wrapClassName = _props.wrapClassName,\n modalClassName = _props.modalClassName,\n backdropClassName = _props.backdropClassName,\n cssModule = _props.cssModule,\n isOpen = _props.isOpen,\n backdrop = _props.backdrop,\n role = _props.role,\n labelledBy = _props.labelledBy,\n external = _props.external,\n innerRef = _props.innerRef;\n\n\n var modalAttributes = {\n onClick: this.handleBackdropClick,\n onMouseDown: this.handleBackdropMouseDown,\n onKeyUp: this.handleEscape,\n onKeyDown: this.handleTab,\n style: { display: 'block' },\n 'aria-labelledby': labelledBy,\n role: role,\n tabIndex: '-1'\n };\n\n var hasTransition = this.props.fade;\n var modalTransition = _extends({}, Fade.defaultProps, this.props.modalTransition, {\n baseClass: hasTransition ? this.props.modalTransition.baseClass : '',\n timeout: hasTransition ? this.props.modalTransition.timeout : 0\n });\n var backdropTransition = _extends({}, Fade.defaultProps, this.props.backdropTransition, {\n baseClass: hasTransition ? this.props.backdropTransition.baseClass : '',\n timeout: hasTransition ? this.props.backdropTransition.timeout : 0\n });\n\n var Backdrop = hasTransition ? React.createElement(Fade, _extends({}, backdropTransition, {\n 'in': isOpen && !!backdrop,\n cssModule: cssModule,\n className: mapToCssModules(classNames('modal-backdrop', backdropClassName), cssModule)\n })) : React.createElement('div', { className: mapToCssModules(classNames('modal-backdrop', 'show', backdropClassName), cssModule) });\n\n return React.createElement(\n Portal,\n { node: this._element },\n React.createElement(\n 'div',\n { className: mapToCssModules(wrapClassName) },\n React.createElement(\n Fade,\n _extends({}, modalAttributes, modalTransition, {\n 'in': isOpen,\n onEntered: this.onOpened,\n onExited: this.onClosed,\n cssModule: cssModule,\n className: mapToCssModules(classNames('modal', modalClassName), cssModule),\n innerRef: innerRef\n }),\n external,\n this.renderModalDialog()\n ),\n Backdrop\n )\n );\n }\n\n return null;\n }\n }]);\n return Modal;\n}(React.Component);\n\nModal.propTypes = propTypes$41;\nModal.defaultProps = defaultProps$38;\nModal.openCount = 0;\n\nvar propTypes$43 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n wrapTag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n toggle: PropTypes.func,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n children: PropTypes.node,\n closeAriaLabel: PropTypes.string,\n charCode: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n close: PropTypes.object\n};\n\nvar defaultProps$39 = {\n tag: 'h5',\n wrapTag: 'div',\n closeAriaLabel: 'Close',\n charCode: 215\n};\n\nvar ModalHeader = function ModalHeader(props) {\n var closeButton = void 0;\n var className = props.className,\n cssModule = props.cssModule,\n children = props.children,\n toggle = props.toggle,\n Tag = props.tag,\n WrapTag = props.wrapTag,\n closeAriaLabel = props.closeAriaLabel,\n charCode = props.charCode,\n close = props.close,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'children', 'toggle', 'tag', 'wrapTag', 'closeAriaLabel', 'charCode', 'close']);\n\n\n var classes = mapToCssModules(classNames(className, 'modal-header'), cssModule);\n\n if (!close && toggle) {\n var closeIcon = typeof charCode === 'number' ? String.fromCharCode(charCode) : charCode;\n closeButton = React.createElement(\n 'button',\n { type: 'button', onClick: toggle, className: mapToCssModules('close', cssModule), 'aria-label': closeAriaLabel },\n React.createElement(\n 'span',\n { 'aria-hidden': 'true' },\n closeIcon\n )\n );\n }\n\n return React.createElement(\n WrapTag,\n _extends({}, attributes, { className: classes }),\n React.createElement(\n Tag,\n { className: mapToCssModules('modal-title', cssModule) },\n children\n ),\n close || closeButton\n );\n};\n\nModalHeader.propTypes = propTypes$43;\nModalHeader.defaultProps = defaultProps$39;\n\nvar propTypes$44 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$40 = {\n tag: 'div'\n};\n\nvar ModalBody = function ModalBody(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'modal-body'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nModalBody.propTypes = propTypes$44;\nModalBody.defaultProps = defaultProps$40;\n\nvar propTypes$45 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$41 = {\n tag: 'div'\n};\n\nvar ModalFooter = function ModalFooter(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'modal-footer'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nModalFooter.propTypes = propTypes$45;\nModalFooter.defaultProps = defaultProps$41;\n\nvar propTypes$46 = {\n placement: PropTypes.oneOf(PopperPlacements),\n target: targetPropType.isRequired,\n container: targetPropType,\n isOpen: PropTypes.bool,\n disabled: PropTypes.bool,\n hideArrow: PropTypes.bool,\n boundariesElement: PropTypes.oneOfType([PropTypes.string, DOMElement]),\n className: PropTypes.string,\n innerClassName: PropTypes.string,\n arrowClassName: PropTypes.string,\n cssModule: PropTypes.object,\n toggle: PropTypes.func,\n autohide: PropTypes.bool,\n placementPrefix: PropTypes.string,\n delay: PropTypes.oneOfType([PropTypes.shape({ show: PropTypes.number, hide: PropTypes.number }), PropTypes.number]),\n modifiers: PropTypes.object,\n offset: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.object]),\n trigger: PropTypes.string\n};\n\nvar DEFAULT_DELAYS$1 = {\n show: 0,\n hide: 250\n};\n\nvar defaultProps$42 = {\n isOpen: false,\n hideArrow: false,\n placement: 'top',\n placementPrefix: 'bs-tooltip',\n delay: DEFAULT_DELAYS$1,\n autohide: true,\n toggle: function toggle() {}\n};\n\nvar Tooltip = function (_React$Component) {\n inherits(Tooltip, _React$Component);\n\n function Tooltip(props) {\n classCallCheck(this, Tooltip);\n\n var _this = possibleConstructorReturn(this, (Tooltip.__proto__ || Object.getPrototypeOf(Tooltip)).call(this, props));\n\n _this._target = null;\n _this.addTargetEvents = _this.addTargetEvents.bind(_this);\n _this.handleDocumentClick = _this.handleDocumentClick.bind(_this);\n _this.removeTargetEvents = _this.removeTargetEvents.bind(_this);\n _this.toggle = _this.toggle.bind(_this);\n _this.onMouseOverTooltip = _this.onMouseOverTooltip.bind(_this);\n _this.onMouseLeaveTooltip = _this.onMouseLeaveTooltip.bind(_this);\n _this.onMouseOverTooltipContent = _this.onMouseOverTooltipContent.bind(_this);\n _this.onMouseLeaveTooltipContent = _this.onMouseLeaveTooltipContent.bind(_this);\n _this.show = _this.show.bind(_this);\n _this.hide = _this.hide.bind(_this);\n _this.onEscKeyDown = _this.onEscKeyDown.bind(_this);\n return _this;\n }\n\n createClass(Tooltip, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this._target = getTarget(this.props.target);\n this.addTargetEvents();\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n this.clearHideTimeout();\n this.clearShowTimeout();\n this.removeTargetEvents();\n }\n }, {\n key: 'onMouseOverTooltip',\n value: function onMouseOverTooltip(e) {\n if (this._hideTimeout) {\n this.clearHideTimeout();\n }\n this._showTimeout = setTimeout(this.show.bind(this, e), this.getDelay('show'));\n }\n }, {\n key: 'onMouseLeaveTooltip',\n value: function onMouseLeaveTooltip(e) {\n if (this._showTimeout) {\n this.clearShowTimeout();\n }\n this._hideTimeout = setTimeout(this.hide.bind(this, e), this.getDelay('hide'));\n }\n }, {\n key: 'onMouseOverTooltipContent',\n value: function onMouseOverTooltipContent() {\n if (this.props.autohide) {\n return;\n }\n if (this._hideTimeout) {\n this.clearHideTimeout();\n }\n }\n }, {\n key: 'onMouseLeaveTooltipContent',\n value: function onMouseLeaveTooltipContent(e) {\n if (this.props.autohide) {\n return;\n }\n if (this._showTimeout) {\n this.clearShowTimeout();\n }\n e.persist();\n this._hideTimeout = setTimeout(this.hide.bind(this, e), this.getDelay('hide'));\n }\n }, {\n key: 'onEscKeyDown',\n value: function onEscKeyDown(e) {\n if (e.key === 'Escape') {\n this.hide(e);\n }\n }\n }, {\n key: 'getDelay',\n value: function getDelay(key) {\n var delay = this.props.delay;\n\n if ((typeof delay === 'undefined' ? 'undefined' : _typeof(delay)) === 'object') {\n return isNaN(delay[key]) ? DEFAULT_DELAYS$1[key] : delay[key];\n }\n return delay;\n }\n }, {\n key: 'show',\n value: function show(e) {\n if (!this.props.isOpen) {\n this.clearShowTimeout();\n this.toggle(e);\n }\n }\n }, {\n key: 'hide',\n value: function hide(e) {\n if (this.props.isOpen) {\n this.clearHideTimeout();\n this.toggle(e);\n }\n }\n }, {\n key: 'clearShowTimeout',\n value: function clearShowTimeout() {\n clearTimeout(this._showTimeout);\n this._showTimeout = undefined;\n }\n }, {\n key: 'clearHideTimeout',\n value: function clearHideTimeout() {\n clearTimeout(this._hideTimeout);\n this._hideTimeout = undefined;\n }\n }, {\n key: 'handleDocumentClick',\n value: function handleDocumentClick(e) {\n if (this._target !== null && (e.target === this._target || this._target.contains(e.target))) {\n if (this._hideTimeout) {\n this.clearHideTimeout();\n }\n\n if (!this.props.isOpen) {\n this.toggle(e);\n }\n } else if (this.props.isOpen && e.target.getAttribute('role') !== 'tooltip') {\n if (this._showTimeout) {\n this.clearShowTimeout();\n }\n this._hideTimeout = setTimeout(this.hide.bind(this, e), this.getDelay('hide'));\n }\n }\n }, {\n key: 'addTargetEvents',\n value: function addTargetEvents() {\n var _this2 = this;\n\n if (this.props.trigger) {\n var triggers = this.props.trigger.split(' ');\n if (triggers.indexOf('manual') === -1) {\n if (triggers.indexOf('click') > -1) {\n ['click', 'touchstart'].forEach(function (event) {\n return document.addEventListener(event, _this2.handleDocumentClick, true);\n });\n }\n if (this._target !== null) {\n if (triggers.indexOf('hover') > -1) {\n this._target.addEventListener('mouseover', this.onMouseOverTooltip, true);\n this._target.addEventListener('mouseout', this.onMouseLeaveTooltip, true);\n }\n if (triggers.indexOf('focus') > -1) {\n this._target.addEventListener('focusin', this.show, true);\n this._target.addEventListener('focusout', this.hide, true);\n }\n this._target.addEventListener('keydown', this.onEscKeyDown, true);\n }\n }\n } else {\n if (this._target !== null) {\n this._target.addEventListener('mouseover', this.onMouseOverTooltip, true);\n this._target.addEventListener('mouseout', this.onMouseLeaveTooltip, true);\n this._target.addEventListener('keydown', this.onEscKeyDown, true);\n this._target.addEventListener('focusin', this.show, true);\n this._target.addEventListener('focusout', this.hide, true);\n }\n ['click', 'touchstart'].forEach(function (event) {\n return document.addEventListener(event, _this2.handleDocumentClick, true);\n });\n }\n }\n }, {\n key: 'removeTargetEvents',\n value: function removeTargetEvents() {\n var _this3 = this;\n\n if (this._target !== null) {\n this._target.removeEventListener('mouseover', this.onMouseOverTooltip, true);\n this._target.removeEventListener('mouseout', this.onMouseLeaveTooltip, true);\n this._target.addEventListener('keydown', this.onEscKeyDown, true);\n this._target.addEventListener('focusin', this.show, true);\n this._target.addEventListener('focusout', this.hide, true);\n }\n ['click', 'touchstart'].forEach(function (event) {\n return document.removeEventListener(event, _this3.handleDocumentClick, true);\n });\n }\n }, {\n key: 'toggle',\n value: function toggle(e) {\n if (this.props.disabled) {\n return e && e.preventDefault();\n }\n\n return this.props.toggle(e);\n }\n }, {\n key: 'render',\n value: function render() {\n if (!this.props.isOpen) {\n return null;\n }\n\n var attributes = omit(this.props, Object.keys(propTypes$46));\n var classes = mapToCssModules(classNames('tooltip-inner', this.props.innerClassName), this.props.cssModule);\n\n var popperClasses = mapToCssModules(classNames('tooltip', 'show', this.props.className), this.props.cssModule);\n\n return React.createElement(\n PopperContent,\n {\n className: popperClasses,\n target: this.props.target,\n isOpen: this.props.isOpen,\n hideArrow: this.props.hideArrow,\n boundariesElement: this.props.boundariesElement,\n placement: this.props.placement,\n placementPrefix: this.props.placementPrefix,\n arrowClassName: this.props.arrowClassName,\n container: this.props.container,\n modifiers: this.props.modifiers,\n offset: this.props.offset,\n cssModule: this.props.cssModule\n },\n React.createElement('div', _extends({}, attributes, {\n ref: this.props.innerRef,\n className: classes,\n role: 'tooltip',\n 'aria-hidden': this.props.isOpen,\n onMouseOver: this.onMouseOverTooltipContent,\n onMouseLeave: this.onMouseLeaveTooltipContent,\n onKeyDown: this.onEscKeyDown\n }))\n );\n }\n }]);\n return Tooltip;\n}(React.Component);\n\nTooltip.propTypes = propTypes$46;\nTooltip.defaultProps = defaultProps$42;\n\nvar propTypes$47 = {\n className: PropTypes.string,\n cssModule: PropTypes.object,\n size: PropTypes.string,\n bordered: PropTypes.bool,\n borderless: PropTypes.bool,\n striped: PropTypes.bool,\n inverse: deprecated(PropTypes.bool, 'Please use the prop \"dark\"'),\n dark: PropTypes.bool,\n hover: PropTypes.bool,\n responsive: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n responsiveTag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])\n};\n\nvar defaultProps$43 = {\n tag: 'table',\n responsiveTag: 'div'\n};\n\nvar Table = function Table(props) {\n var className = props.className,\n cssModule = props.cssModule,\n size = props.size,\n bordered = props.bordered,\n borderless = props.borderless,\n striped = props.striped,\n inverse = props.inverse,\n dark = props.dark,\n hover = props.hover,\n responsive = props.responsive,\n Tag = props.tag,\n ResponsiveTag = props.responsiveTag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'size', 'bordered', 'borderless', 'striped', 'inverse', 'dark', 'hover', 'responsive', 'tag', 'responsiveTag']);\n\n\n var classes = mapToCssModules(classNames(className, 'table', size ? 'table-' + size : false, bordered ? 'table-bordered' : false, borderless ? 'table-borderless' : false, striped ? 'table-striped' : false, dark || inverse ? 'table-dark' : false, hover ? 'table-hover' : false), cssModule);\n\n var table = React.createElement(Tag, _extends({}, attributes, { className: classes }));\n\n if (responsive) {\n var responsiveClassName = responsive === true ? 'table-responsive' : 'table-responsive-' + responsive;\n\n return React.createElement(\n ResponsiveTag,\n { className: responsiveClassName },\n table\n );\n }\n\n return table;\n};\n\nTable.propTypes = propTypes$47;\nTable.defaultProps = defaultProps$43;\n\nvar propTypes$48 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n flush: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$44 = {\n tag: 'ul'\n};\n\nvar ListGroup = function ListGroup(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n flush = props.flush,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'flush']);\n\n var classes = mapToCssModules(classNames(className, 'list-group', flush ? 'list-group-flush' : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nListGroup.propTypes = propTypes$48;\nListGroup.defaultProps = defaultProps$44;\n\nvar propTypes$49 = {\n children: PropTypes.node,\n inline: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$45 = {\n tag: 'form'\n};\n\nvar Form = function (_Component) {\n inherits(Form, _Component);\n\n function Form(props) {\n classCallCheck(this, Form);\n\n var _this = possibleConstructorReturn(this, (Form.__proto__ || Object.getPrototypeOf(Form)).call(this, props));\n\n _this.getRef = _this.getRef.bind(_this);\n _this.submit = _this.submit.bind(_this);\n return _this;\n }\n\n createClass(Form, [{\n key: 'getRef',\n value: function getRef(ref) {\n if (this.props.innerRef) {\n this.props.innerRef(ref);\n }\n this.ref = ref;\n }\n }, {\n key: 'submit',\n value: function submit() {\n if (this.ref) {\n this.ref.submit();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n cssModule = _props.cssModule,\n inline = _props.inline,\n Tag = _props.tag,\n innerRef = _props.innerRef,\n attributes = objectWithoutProperties(_props, ['className', 'cssModule', 'inline', 'tag', 'innerRef']);\n\n\n var classes = mapToCssModules(classNames(className, inline ? 'form-inline' : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { ref: innerRef, className: classes }));\n }\n }]);\n return Form;\n}(Component);\n\nForm.propTypes = propTypes$49;\nForm.defaultProps = defaultProps$45;\n\nvar propTypes$50 = {\n children: PropTypes.node,\n tag: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n valid: PropTypes.bool,\n tooltip: PropTypes.bool\n};\n\nvar defaultProps$46 = {\n tag: 'div',\n valid: undefined\n};\n\nvar FormFeedback = function FormFeedback(props) {\n var className = props.className,\n cssModule = props.cssModule,\n valid = props.valid,\n tooltip = props.tooltip,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'valid', 'tooltip', 'tag']);\n\n\n var validMode = tooltip ? 'tooltip' : 'feedback';\n\n var classes = mapToCssModules(classNames(className, valid ? 'valid-' + validMode : 'invalid-' + validMode), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nFormFeedback.propTypes = propTypes$50;\nFormFeedback.defaultProps = defaultProps$46;\n\nvar propTypes$51 = {\n children: PropTypes.node,\n row: PropTypes.bool,\n check: PropTypes.bool,\n inline: PropTypes.bool,\n disabled: PropTypes.bool,\n tag: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$47 = {\n tag: 'div'\n};\n\nvar FormGroup = function FormGroup(props) {\n var className = props.className,\n cssModule = props.cssModule,\n row = props.row,\n disabled = props.disabled,\n check = props.check,\n inline = props.inline,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'row', 'disabled', 'check', 'inline', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'position-relative', row ? 'row' : false, check ? 'form-check' : 'form-group', check && inline ? 'form-check-inline' : false, check && disabled ? 'disabled' : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nFormGroup.propTypes = propTypes$51;\nFormGroup.defaultProps = defaultProps$47;\n\nvar propTypes$52 = {\n children: PropTypes.node,\n inline: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n color: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$48 = {\n tag: 'small',\n color: 'muted'\n};\n\nvar FormText = function FormText(props) {\n var className = props.className,\n cssModule = props.cssModule,\n inline = props.inline,\n color = props.color,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'inline', 'color', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, !inline ? 'form-text' : false, color ? 'text-' + color : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nFormText.propTypes = propTypes$52;\nFormText.defaultProps = defaultProps$48;\n\n/* eslint react/prefer-stateless-function: 0 */\n\nvar propTypes$53 = {\n children: PropTypes.node,\n type: PropTypes.string,\n size: PropTypes.string,\n bsSize: PropTypes.string,\n state: deprecated(PropTypes.string, 'Please use the props \"valid\" and \"invalid\" to indicate the state.'),\n valid: PropTypes.bool,\n invalid: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.func, PropTypes.string]),\n static: deprecated(PropTypes.bool, 'Please use the prop \"plaintext\"'),\n plaintext: PropTypes.bool,\n addon: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$49 = {\n type: 'text'\n};\n\nvar Input = function (_React$Component) {\n inherits(Input, _React$Component);\n\n function Input(props) {\n classCallCheck(this, Input);\n\n var _this = possibleConstructorReturn(this, (Input.__proto__ || Object.getPrototypeOf(Input)).call(this, props));\n\n _this.getRef = _this.getRef.bind(_this);\n _this.focus = _this.focus.bind(_this);\n return _this;\n }\n\n createClass(Input, [{\n key: 'getRef',\n value: function getRef(ref) {\n if (this.props.innerRef) {\n this.props.innerRef(ref);\n }\n this.ref = ref;\n }\n }, {\n key: 'focus',\n value: function focus() {\n if (this.ref) {\n this.ref.focus();\n }\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n cssModule = _props.cssModule,\n type = _props.type,\n bsSize = _props.bsSize,\n state = _props.state,\n valid = _props.valid,\n invalid = _props.invalid,\n tag = _props.tag,\n addon = _props.addon,\n staticInput = _props.static,\n plaintext = _props.plaintext,\n innerRef = _props.innerRef,\n attributes = objectWithoutProperties(_props, ['className', 'cssModule', 'type', 'bsSize', 'state', 'valid', 'invalid', 'tag', 'addon', 'static', 'plaintext', 'innerRef']);\n\n\n var checkInput = ['radio', 'checkbox'].indexOf(type) > -1;\n var isNotaNumber = new RegExp('\\\\D', 'g');\n\n var fileInput = type === 'file';\n var textareaInput = type === 'textarea';\n var selectInput = type === 'select';\n var Tag = tag || (selectInput || textareaInput ? type : 'input');\n\n var formControlClass = 'form-control';\n\n if (plaintext || staticInput) {\n formControlClass = formControlClass + '-plaintext';\n Tag = tag || 'p';\n } else if (fileInput) {\n formControlClass = formControlClass + '-file';\n } else if (checkInput) {\n if (addon) {\n formControlClass = null;\n } else {\n formControlClass = 'form-check-input';\n }\n }\n\n if (state && typeof valid === 'undefined' && typeof invalid === 'undefined') {\n if (state === 'danger') {\n invalid = true;\n } else if (state === 'success') {\n valid = true;\n }\n }\n\n if (attributes.size && isNotaNumber.test(attributes.size)) {\n warnOnce('Please use the prop \"bsSize\" instead of the \"size\" to bootstrap\\'s input sizing.');\n bsSize = attributes.size;\n delete attributes.size;\n }\n\n var classes = mapToCssModules(classNames(className, invalid && 'is-invalid', valid && 'is-valid', bsSize ? 'form-control-' + bsSize : false, formControlClass), cssModule);\n\n if (Tag === 'input' || tag && typeof tag === 'function') {\n attributes.type = type;\n }\n\n if (attributes.children && !(plaintext || staticInput || type === 'select' || typeof Tag !== 'string' || Tag === 'select')) {\n warnOnce('Input with a type of \"' + type + '\" cannot have children. Please use \"value\"/\"defaultValue\" instead.');\n delete attributes.children;\n }\n\n return React.createElement(Tag, _extends({}, attributes, { ref: innerRef, className: classes }));\n }\n }]);\n return Input;\n}(React.Component);\n\nInput.propTypes = propTypes$53;\nInput.defaultProps = defaultProps$49;\n\nvar propTypes$54 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n size: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$50 = {\n tag: 'div'\n};\n\nvar InputGroup = function InputGroup(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n size = props.size,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'size']);\n\n var classes = mapToCssModules(classNames(className, 'input-group', size ? 'input-group-' + size : null), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nInputGroup.propTypes = propTypes$54;\nInputGroup.defaultProps = defaultProps$50;\n\nvar propTypes$56 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$52 = {\n tag: 'span'\n};\n\nvar InputGroupText = function InputGroupText(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'input-group-text'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nInputGroupText.propTypes = propTypes$56;\nInputGroupText.defaultProps = defaultProps$52;\n\nvar propTypes$55 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$51 = {\n tag: 'div'\n};\n\nvar InputGroupAddon = function InputGroupAddon(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n addonType = props.addonType,\n children = props.children,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'addonType', 'children']);\n\n\n var classes = mapToCssModules(classNames(className, 'input-group-' + addonType), cssModule);\n\n // Convenience to assist with transition\n if (typeof children === 'string') {\n return React.createElement(\n Tag,\n _extends({}, attributes, { className: classes }),\n React.createElement(InputGroupText, { children: children })\n );\n }\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes, children: children }));\n};\n\nInputGroupAddon.propTypes = propTypes$55;\nInputGroupAddon.defaultProps = defaultProps$51;\n\nvar propTypes$57 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node,\n groupClassName: PropTypes.string,\n groupAttributes: PropTypes.object,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar InputGroupButton = function InputGroupButton(props) {\n warnOnce('The \"InputGroupButton\" component has been deprecated.\\nPlease use component \"InputGroupAddon\".');\n\n var children = props.children,\n groupClassName = props.groupClassName,\n groupAttributes = props.groupAttributes,\n propsWithoutGroup = objectWithoutProperties(props, ['children', 'groupClassName', 'groupAttributes']);\n\n\n if (typeof children === 'string') {\n var cssModule = propsWithoutGroup.cssModule,\n tag = propsWithoutGroup.tag,\n addonType = propsWithoutGroup.addonType,\n attributes = objectWithoutProperties(propsWithoutGroup, ['cssModule', 'tag', 'addonType']);\n\n\n var allGroupAttributes = _extends({}, groupAttributes, {\n cssModule: cssModule,\n tag: tag,\n addonType: addonType\n });\n\n return React.createElement(\n InputGroupAddon,\n _extends({}, allGroupAttributes, { className: groupClassName }),\n React.createElement(Button, _extends({}, attributes, { children: children }))\n );\n }\n\n return React.createElement(InputGroupAddon, _extends({}, props, { children: children }));\n};\n\nInputGroupButton.propTypes = propTypes$57;\n\nvar propTypes$58 = {\n addonType: PropTypes.oneOf(['prepend', 'append']).isRequired,\n children: PropTypes.node\n};\n\nvar InputGroupButtonDropdown = function InputGroupButtonDropdown(props) {\n return React.createElement(Dropdown, props);\n};\n\nInputGroupButtonDropdown.propTypes = propTypes$58;\n\nvar colWidths$1 = ['xs', 'sm', 'md', 'lg', 'xl'];\n\nvar stringOrNumberProp$1 = PropTypes.oneOfType([PropTypes.number, PropTypes.string]);\n\nvar columnProps$1 = PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.shape({\n size: stringOrNumberProp$1,\n push: deprecated(stringOrNumberProp$1, 'Please use the prop \"order\"'),\n pull: deprecated(stringOrNumberProp$1, 'Please use the prop \"order\"'),\n order: stringOrNumberProp$1,\n offset: stringOrNumberProp$1\n})]);\n\nvar propTypes$59 = {\n children: PropTypes.node,\n hidden: PropTypes.bool,\n check: PropTypes.bool,\n size: PropTypes.string,\n for: PropTypes.string,\n tag: PropTypes.string,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n xs: columnProps$1,\n sm: columnProps$1,\n md: columnProps$1,\n lg: columnProps$1,\n xl: columnProps$1,\n widths: PropTypes.array\n};\n\nvar defaultProps$53 = {\n tag: 'label',\n widths: colWidths$1\n};\n\nvar getColumnSizeClass$1 = function getColumnSizeClass(isXs, colWidth, colSize) {\n if (colSize === true || colSize === '') {\n return isXs ? 'col' : 'col-' + colWidth;\n } else if (colSize === 'auto') {\n return isXs ? 'col-auto' : 'col-' + colWidth + '-auto';\n }\n\n return isXs ? 'col-' + colSize : 'col-' + colWidth + '-' + colSize;\n};\n\nvar Label = function Label(props) {\n var className = props.className,\n cssModule = props.cssModule,\n hidden = props.hidden,\n widths = props.widths,\n Tag = props.tag,\n check = props.check,\n size = props.size,\n htmlFor = props.for,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'hidden', 'widths', 'tag', 'check', 'size', 'for']);\n\n\n var colClasses = [];\n\n widths.forEach(function (colWidth, i) {\n var columnProp = props[colWidth];\n\n delete attributes[colWidth];\n\n if (!columnProp && columnProp !== '') {\n return;\n }\n\n var isXs = !i;\n var colClass = void 0;\n\n if (isobject(columnProp)) {\n var _classNames;\n\n var colSizeInterfix = isXs ? '-' : '-' + colWidth + '-';\n colClass = getColumnSizeClass$1(isXs, colWidth, columnProp.size);\n\n colClasses.push(mapToCssModules(classNames((_classNames = {}, defineProperty(_classNames, colClass, columnProp.size || columnProp.size === ''), defineProperty(_classNames, 'order' + colSizeInterfix + columnProp.order, columnProp.order || columnProp.order === 0), defineProperty(_classNames, 'offset' + colSizeInterfix + columnProp.offset, columnProp.offset || columnProp.offset === 0), _classNames))), cssModule);\n } else {\n colClass = getColumnSizeClass$1(isXs, colWidth, columnProp);\n colClasses.push(colClass);\n }\n });\n\n var classes = mapToCssModules(classNames(className, hidden ? 'sr-only' : false, check ? 'form-check-label' : false, size ? 'col-form-label-' + size : false, colClasses, colClasses.length ? 'col-form-label' : false), cssModule);\n\n return React.createElement(Tag, _extends({ htmlFor: htmlFor }, attributes, { className: classes }));\n};\n\nLabel.propTypes = propTypes$59;\nLabel.defaultProps = defaultProps$53;\n\nvar propTypes$60 = {\n body: PropTypes.bool,\n bottom: PropTypes.bool,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n heading: PropTypes.bool,\n left: PropTypes.bool,\n list: PropTypes.bool,\n middle: PropTypes.bool,\n object: PropTypes.bool,\n right: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n top: PropTypes.bool\n};\n\nvar Media = function Media(props) {\n var body = props.body,\n bottom = props.bottom,\n className = props.className,\n cssModule = props.cssModule,\n heading = props.heading,\n left = props.left,\n list = props.list,\n middle = props.middle,\n object = props.object,\n right = props.right,\n tag = props.tag,\n top = props.top,\n attributes = objectWithoutProperties(props, ['body', 'bottom', 'className', 'cssModule', 'heading', 'left', 'list', 'middle', 'object', 'right', 'tag', 'top']);\n\n\n var defaultTag = void 0;\n if (heading) {\n defaultTag = 'h4';\n } else if (attributes.href) {\n defaultTag = 'a';\n } else if (attributes.src || object) {\n defaultTag = 'img';\n } else if (list) {\n defaultTag = 'ul';\n } else {\n defaultTag = 'div';\n }\n var Tag = tag || defaultTag;\n\n var classes = mapToCssModules(classNames(className, {\n 'media-body': body,\n 'media-heading': heading,\n 'media-left': left,\n 'media-right': right,\n 'media-top': top,\n 'media-bottom': bottom,\n 'media-middle': middle,\n 'media-object': object,\n 'media-list': list,\n media: !body && !heading && !left && !right && !top && !bottom && !middle && !object && !list\n }), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nMedia.propTypes = propTypes$60;\n\nvar propTypes$61 = {\n children: PropTypes.node,\n className: PropTypes.string,\n listClassName: PropTypes.string,\n cssModule: PropTypes.object,\n size: PropTypes.string,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n listTag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n 'aria-label': PropTypes.string\n};\n\nvar defaultProps$54 = {\n tag: 'nav',\n listTag: 'ul',\n 'aria-label': 'pagination'\n};\n\nvar Pagination = function Pagination(props) {\n var className = props.className,\n listClassName = props.listClassName,\n cssModule = props.cssModule,\n size = props.size,\n Tag = props.tag,\n ListTag = props.listTag,\n label = props['aria-label'],\n attributes = objectWithoutProperties(props, ['className', 'listClassName', 'cssModule', 'size', 'tag', 'listTag', 'aria-label']);\n\n\n var classes = mapToCssModules(classNames(className), cssModule);\n\n var listClasses = mapToCssModules(classNames(listClassName, 'pagination', defineProperty({}, 'pagination-' + size, !!size)), cssModule);\n\n return React.createElement(\n Tag,\n { className: classes, 'aria-label': label },\n React.createElement(ListTag, _extends({}, attributes, { className: listClasses }))\n );\n};\n\nPagination.propTypes = propTypes$61;\nPagination.defaultProps = defaultProps$54;\n\nvar propTypes$62 = {\n active: PropTypes.bool,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n disabled: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])\n};\n\nvar defaultProps$55 = {\n tag: 'li'\n};\n\nvar PaginationItem = function PaginationItem(props) {\n var active = props.active,\n className = props.className,\n cssModule = props.cssModule,\n disabled = props.disabled,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['active', 'className', 'cssModule', 'disabled', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'page-item', {\n active: active,\n disabled: disabled\n }), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nPaginationItem.propTypes = propTypes$62;\nPaginationItem.defaultProps = defaultProps$55;\n\nvar propTypes$63 = {\n 'aria-label': PropTypes.string,\n children: PropTypes.node,\n className: PropTypes.string,\n cssModule: PropTypes.object,\n next: PropTypes.bool,\n previous: PropTypes.bool,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string])\n};\n\nvar defaultProps$56 = {\n tag: 'a'\n};\n\nvar PaginationLink = function PaginationLink(props) {\n var className = props.className,\n cssModule = props.cssModule,\n next = props.next,\n previous = props.previous,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'next', 'previous', 'tag']);\n\n\n var classes = mapToCssModules(classNames(className, 'page-link'), cssModule);\n\n var defaultAriaLabel = void 0;\n if (previous) {\n defaultAriaLabel = 'Previous';\n } else if (next) {\n defaultAriaLabel = 'Next';\n }\n var ariaLabel = props['aria-label'] || defaultAriaLabel;\n\n var defaultCaret = void 0;\n if (previous) {\n defaultCaret = '\\xAB';\n } else if (next) {\n defaultCaret = '\\xBB';\n }\n\n var children = props.children;\n if (children && Array.isArray(children) && children.length === 0) {\n children = null;\n }\n\n if (!attributes.href && Tag === 'a') {\n Tag = 'button';\n }\n\n if (previous || next) {\n children = [React.createElement(\n 'span',\n {\n 'aria-hidden': 'true',\n key: 'caret'\n },\n children || defaultCaret\n ), React.createElement(\n 'span',\n {\n className: 'sr-only',\n key: 'sr'\n },\n ariaLabel\n )];\n }\n\n return React.createElement(\n Tag,\n _extends({}, attributes, {\n className: classes,\n 'aria-label': ariaLabel\n }),\n children\n );\n};\n\nPaginationLink.propTypes = propTypes$63;\nPaginationLink.defaultProps = defaultProps$56;\n\nvar propTypes$64 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n activeTab: PropTypes.any,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$57 = {\n tag: 'div'\n};\n\nvar childContextTypes$2 = {\n activeTabId: PropTypes.any\n};\n\nvar TabContent = function (_Component) {\n inherits(TabContent, _Component);\n createClass(TabContent, null, [{\n key: 'getDerivedStateFromProps',\n value: function getDerivedStateFromProps(nextProps, prevState) {\n if (prevState.activeTab !== nextProps.activeTab) {\n return {\n activeTab: nextProps.activeTab\n };\n }\n return null;\n }\n }]);\n\n function TabContent(props) {\n classCallCheck(this, TabContent);\n\n var _this = possibleConstructorReturn(this, (TabContent.__proto__ || Object.getPrototypeOf(TabContent)).call(this, props));\n\n _this.state = {\n activeTab: _this.props.activeTab\n };\n return _this;\n }\n\n createClass(TabContent, [{\n key: 'getChildContext',\n value: function getChildContext() {\n return {\n activeTabId: this.state.activeTab\n };\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n className = _props.className,\n cssModule = _props.cssModule,\n Tag = _props.tag;\n\n\n var attributes = omit(this.props, Object.keys(propTypes$64));\n\n var classes = mapToCssModules(classNames('tab-content', className), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n }\n }]);\n return TabContent;\n}(Component);\n\npolyfill(TabContent);\nTabContent.propTypes = propTypes$64;\nTabContent.defaultProps = defaultProps$57;\nTabContent.childContextTypes = childContextTypes$2;\n\nvar propTypes$65 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.string,\n cssModule: PropTypes.object,\n tabId: PropTypes.any\n};\n\nvar defaultProps$58 = {\n tag: 'div'\n};\n\nvar contextTypes$3 = {\n activeTabId: PropTypes.any\n};\n\nfunction TabPane(props, context) {\n var className = props.className,\n cssModule = props.cssModule,\n tabId = props.tabId,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tabId', 'tag']);\n\n var classes = mapToCssModules(classNames('tab-pane', className, { active: tabId === context.activeTabId }), cssModule);\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n}\nTabPane.propTypes = propTypes$65;\nTabPane.defaultProps = defaultProps$58;\nTabPane.contextTypes = contextTypes$3;\n\nvar propTypes$66 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n fluid: PropTypes.bool,\n className: PropTypes.string,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$59 = {\n tag: 'div'\n};\n\nvar Jumbotron = function Jumbotron(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n fluid = props.fluid,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'fluid']);\n\n\n var classes = mapToCssModules(classNames(className, 'jumbotron', fluid ? 'jumbotron-fluid' : false), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nJumbotron.propTypes = propTypes$66;\nJumbotron.defaultProps = defaultProps$59;\n\nvar propTypes$67 = {\n children: PropTypes.node,\n className: PropTypes.string,\n closeClassName: PropTypes.string,\n closeAriaLabel: PropTypes.string,\n cssModule: PropTypes.object,\n color: PropTypes.string,\n fade: PropTypes.bool,\n isOpen: PropTypes.bool,\n toggle: PropTypes.func,\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n transition: PropTypes.shape(Fade.propTypes),\n innerRef: PropTypes.oneOfType([PropTypes.object, PropTypes.string, PropTypes.func])\n};\n\nvar defaultProps$60 = {\n color: 'success',\n isOpen: true,\n tag: 'div',\n closeAriaLabel: 'Close',\n fade: true,\n transition: _extends({}, Fade.defaultProps, {\n unmountOnExit: true\n })\n};\n\nfunction Alert(props) {\n var className = props.className,\n closeClassName = props.closeClassName,\n closeAriaLabel = props.closeAriaLabel,\n cssModule = props.cssModule,\n Tag = props.tag,\n color = props.color,\n isOpen = props.isOpen,\n toggle = props.toggle,\n children = props.children,\n transition = props.transition,\n fade = props.fade,\n innerRef = props.innerRef,\n attributes = objectWithoutProperties(props, ['className', 'closeClassName', 'closeAriaLabel', 'cssModule', 'tag', 'color', 'isOpen', 'toggle', 'children', 'transition', 'fade', 'innerRef']);\n\n\n var classes = mapToCssModules(classNames(className, 'alert', 'alert-' + color, { 'alert-dismissible': toggle }), cssModule);\n\n var closeClasses = mapToCssModules(classNames('close', closeClassName), cssModule);\n\n var alertTransition = _extends({}, Fade.defaultProps, transition, {\n baseClass: fade ? transition.baseClass : '',\n timeout: fade ? transition.timeout : 0\n });\n\n return React.createElement(\n Fade,\n _extends({}, attributes, alertTransition, { tag: Tag, className: classes, 'in': isOpen, role: 'alert', innerRef: innerRef }),\n toggle ? React.createElement(\n 'button',\n { type: 'button', className: closeClasses, 'aria-label': closeAriaLabel, onClick: toggle },\n React.createElement(\n 'span',\n { 'aria-hidden': 'true' },\n '\\xD7'\n )\n ) : null,\n children\n );\n}\n\nAlert.propTypes = propTypes$67;\nAlert.defaultProps = defaultProps$60;\n\nvar _transitionStatusToCl;\n\nvar propTypes$68 = _extends({}, Transition.propTypes, {\n isOpen: PropTypes.bool,\n children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]),\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.node,\n navbar: PropTypes.bool,\n cssModule: PropTypes.object,\n innerRef: PropTypes.oneOfType([PropTypes.func, PropTypes.string, PropTypes.object])\n});\n\nvar defaultProps$61 = _extends({}, Transition.defaultProps, {\n isOpen: false,\n appear: false,\n enter: true,\n exit: true,\n tag: 'div',\n timeout: TransitionTimeouts.Collapse\n});\n\nvar transitionStatusToClassHash = (_transitionStatusToCl = {}, defineProperty(_transitionStatusToCl, TransitionStatuses.ENTERING, 'collapsing'), defineProperty(_transitionStatusToCl, TransitionStatuses.ENTERED, 'collapse show'), defineProperty(_transitionStatusToCl, TransitionStatuses.EXITING, 'collapsing'), defineProperty(_transitionStatusToCl, TransitionStatuses.EXITED, 'collapse'), _transitionStatusToCl);\n\nfunction getTransitionClass(status) {\n return transitionStatusToClassHash[status] || 'collapse';\n}\n\nfunction getHeight(node) {\n return node.scrollHeight;\n}\n\nvar Collapse = function (_Component) {\n inherits(Collapse, _Component);\n\n function Collapse(props) {\n classCallCheck(this, Collapse);\n\n var _this = possibleConstructorReturn(this, (Collapse.__proto__ || Object.getPrototypeOf(Collapse)).call(this, props));\n\n _this.state = {\n height: null\n };\n\n ['onEntering', 'onEntered', 'onExit', 'onExiting', 'onExited'].forEach(function (name) {\n _this[name] = _this[name].bind(_this);\n });\n return _this;\n }\n\n createClass(Collapse, [{\n key: 'onEntering',\n value: function onEntering(node, isAppearing) {\n this.setState({ height: getHeight(node) });\n this.props.onEntering(node, isAppearing);\n }\n }, {\n key: 'onEntered',\n value: function onEntered(node, isAppearing) {\n this.setState({ height: null });\n this.props.onEntered(node, isAppearing);\n }\n }, {\n key: 'onExit',\n value: function onExit(node) {\n this.setState({ height: getHeight(node) });\n this.props.onExit(node);\n }\n }, {\n key: 'onExiting',\n value: function onExiting(node) {\n // getting this variable triggers a reflow\n var _unused = node.offsetHeight; // eslint-disable-line no-unused-vars\n this.setState({ height: 0 });\n this.props.onExiting(node);\n }\n }, {\n key: 'onExited',\n value: function onExited(node) {\n this.setState({ height: null });\n this.props.onExited(node);\n }\n }, {\n key: 'render',\n value: function render() {\n var _this2 = this;\n\n var _props = this.props,\n Tag = _props.tag,\n isOpen = _props.isOpen,\n className = _props.className,\n navbar = _props.navbar,\n cssModule = _props.cssModule,\n children = _props.children,\n innerRef = _props.innerRef,\n otherProps = objectWithoutProperties(_props, ['tag', 'isOpen', 'className', 'navbar', 'cssModule', 'children', 'innerRef']);\n var height = this.state.height;\n\n // In NODE_ENV=production the Transition.propTypes are wrapped which results in an\n // empty object \"{}\". This is the result of the `react-transition-group` babel\n // configuration settings. Therefore, to ensure that production builds work without\n // error, we can either explicitly define keys or use the Transition.defaultProps.\n // Using the Transition.defaultProps excludes any required props. Thus, the best\n // solution is to explicitly define required props in our utilities and reference these.\n // This also gives us more flexibility in the future to remove the prop-types\n // dependency in distribution builds (Similar to how `react-transition-group` does).\n // Note: Without omitting the `react-transition-group` props, the resulting child\n // Tag component would inherit the Transition properties as attributes for the HTML\n // element which results in errors/warnings for non-valid attributes.\n\n var transitionProps = pick(otherProps, TransitionPropTypeKeys);\n var childProps = omit(otherProps, TransitionPropTypeKeys);\n return React.createElement(\n Transition,\n _extends({}, transitionProps, {\n 'in': isOpen,\n onEntering: this.onEntering,\n onEntered: this.onEntered,\n onExit: this.onExit,\n onExiting: this.onExiting,\n onExited: this.onExited\n }),\n function (status) {\n var collapseClass = getTransitionClass(status);\n var classes = mapToCssModules(classNames(className, collapseClass, navbar && 'navbar-collapse'), cssModule);\n var style = height === null ? null : { height: height };\n return React.createElement(\n Tag,\n _extends({}, childProps, {\n style: _extends({}, childProps.style, style),\n className: classes,\n ref: _this2.props.innerRef\n }),\n children\n );\n }\n );\n }\n }]);\n return Collapse;\n}(Component);\n\nCollapse.propTypes = propTypes$68;\nCollapse.defaultProps = defaultProps$61;\n\nvar propTypes$69 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n active: PropTypes.bool,\n disabled: PropTypes.bool,\n color: PropTypes.string,\n action: PropTypes.bool,\n className: PropTypes.any,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$62 = {\n tag: 'li'\n};\n\nvar handleDisabledOnClick = function handleDisabledOnClick(e) {\n e.preventDefault();\n};\n\nvar ListGroupItem = function ListGroupItem(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n active = props.active,\n disabled = props.disabled,\n action = props.action,\n color = props.color,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag', 'active', 'disabled', 'action', 'color']);\n\n var classes = mapToCssModules(classNames(className, active ? 'active' : false, disabled ? 'disabled' : false, action ? 'list-group-item-action' : false, color ? 'list-group-item-' + color : false, 'list-group-item'), cssModule);\n\n // Prevent click event when disabled.\n if (disabled) {\n attributes.onClick = handleDisabledOnClick;\n }\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nListGroupItem.propTypes = propTypes$69;\nListGroupItem.defaultProps = defaultProps$62;\n\nvar propTypes$70 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.any,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$63 = {\n tag: 'h5'\n};\n\nvar ListGroupItemHeading = function ListGroupItemHeading(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'list-group-item-heading'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nListGroupItemHeading.propTypes = propTypes$70;\nListGroupItemHeading.defaultProps = defaultProps$63;\n\nvar propTypes$71 = {\n tag: PropTypes.oneOfType([PropTypes.func, PropTypes.string]),\n className: PropTypes.any,\n cssModule: PropTypes.object\n};\n\nvar defaultProps$64 = {\n tag: 'p'\n};\n\nvar ListGroupItemText = function ListGroupItemText(props) {\n var className = props.className,\n cssModule = props.cssModule,\n Tag = props.tag,\n attributes = objectWithoutProperties(props, ['className', 'cssModule', 'tag']);\n\n var classes = mapToCssModules(classNames(className, 'list-group-item-text'), cssModule);\n\n return React.createElement(Tag, _extends({}, attributes, { className: classes }));\n};\n\nListGroupItemText.propTypes = propTypes$71;\nListGroupItemText.defaultProps = defaultProps$64;\n\nvar UncontrolledAlert = function (_Component) {\n inherits(UncontrolledAlert, _Component);\n\n function UncontrolledAlert(props) {\n classCallCheck(this, UncontrolledAlert);\n\n var _this = possibleConstructorReturn(this, (UncontrolledAlert.__proto__ || Object.getPrototypeOf(UncontrolledAlert)).call(this, props));\n\n _this.state = { isOpen: true };\n _this.toggle = _this.toggle.bind(_this);\n return _this;\n }\n\n createClass(UncontrolledAlert, [{\n key: 'toggle',\n value: function toggle() {\n this.setState({ isOpen: !this.state.isOpen });\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement(Alert, _extends({ isOpen: this.state.isOpen, toggle: this.toggle }, this.props));\n }\n }]);\n return UncontrolledAlert;\n}(Component);\n\nvar UncontrolledButtonDropdown = function (_Component) {\n inherits(UncontrolledButtonDropdown, _Component);\n\n function UncontrolledButtonDropdown(props) {\n classCallCheck(this, UncontrolledButtonDropdown);\n\n var _this = possibleConstructorReturn(this, (UncontrolledButtonDropdown.__proto__ || Object.getPrototypeOf(UncontrolledButtonDropdown)).call(this, props));\n\n _this.state = { isOpen: false };\n _this.toggle = _this.toggle.bind(_this);\n return _this;\n }\n\n createClass(UncontrolledButtonDropdown, [{\n key: 'toggle',\n value: function toggle() {\n this.setState({ isOpen: !this.state.isOpen });\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement(ButtonDropdown, _extends({ isOpen: this.state.isOpen, toggle: this.toggle }, this.props));\n }\n }]);\n return UncontrolledButtonDropdown;\n}(Component);\n\nvar propTypes$72 = {\n toggler: PropTypes.string.isRequired,\n toggleEvents: PropTypes.arrayOf(PropTypes.string)\n};\n\nvar defaultProps$65 = {\n toggleEvents: defaultToggleEvents\n};\n\nvar UncontrolledCollapse = function (_Component) {\n inherits(UncontrolledCollapse, _Component);\n\n function UncontrolledCollapse(props) {\n classCallCheck(this, UncontrolledCollapse);\n\n var _this = possibleConstructorReturn(this, (UncontrolledCollapse.__proto__ || Object.getPrototypeOf(UncontrolledCollapse)).call(this, props));\n\n _this.togglers = null;\n _this.removeEventListeners = null;\n _this.toggle = _this.toggle.bind(_this);\n\n _this.state = {\n isOpen: false\n };\n return _this;\n }\n\n createClass(UncontrolledCollapse, [{\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.togglers = findDOMElements(this.props.toggler);\n if (this.togglers.length) {\n this.removeEventListeners = addMultipleEventListeners(this.togglers, this.toggle, this.props.toggleEvents);\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (this.togglers.length && this.removeEventListeners) {\n this.removeEventListeners();\n }\n }\n }, {\n key: 'toggle',\n value: function toggle(e) {\n this.setState(function (_ref) {\n var isOpen = _ref.isOpen;\n return { isOpen: !isOpen };\n });\n e.preventDefault();\n }\n }, {\n key: 'render',\n value: function render() {\n var _props = this.props,\n toggleEvents = _props.toggleEvents,\n rest = objectWithoutProperties(_props, ['toggleEvents']);\n\n return React.createElement(Collapse, _extends({ isOpen: this.state.isOpen }, rest));\n }\n }]);\n return UncontrolledCollapse;\n}(Component);\n\nUncontrolledCollapse.propTypes = propTypes$72;\nUncontrolledCollapse.defaultProps = defaultProps$65;\n\nvar UncontrolledDropdown = function (_Component) {\n inherits(UncontrolledDropdown, _Component);\n\n function UncontrolledDropdown(props) {\n classCallCheck(this, UncontrolledDropdown);\n\n var _this = possibleConstructorReturn(this, (UncontrolledDropdown.__proto__ || Object.getPrototypeOf(UncontrolledDropdown)).call(this, props));\n\n _this.state = { isOpen: false };\n _this.toggle = _this.toggle.bind(_this);\n return _this;\n }\n\n createClass(UncontrolledDropdown, [{\n key: 'toggle',\n value: function toggle() {\n this.setState({ isOpen: !this.state.isOpen });\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement(Dropdown, _extends({ isOpen: this.state.isOpen, toggle: this.toggle }, this.props));\n }\n }]);\n return UncontrolledDropdown;\n}(Component);\n\nvar UncontrolledNavDropdown = function UncontrolledNavDropdown(props) {\n warnOnce('The \"UncontrolledNavDropdown\" component has been deprecated.\\nPlease use component \"UncontrolledDropdown\" with nav prop.');\n\n return React.createElement(UncontrolledDropdown, _extends({ nav: true }, props));\n};\n\nvar UncontrolledTooltip = function (_Component) {\n inherits(UncontrolledTooltip, _Component);\n\n function UncontrolledTooltip(props) {\n classCallCheck(this, UncontrolledTooltip);\n\n var _this = possibleConstructorReturn(this, (UncontrolledTooltip.__proto__ || Object.getPrototypeOf(UncontrolledTooltip)).call(this, props));\n\n _this.state = { isOpen: false };\n _this.toggle = _this.toggle.bind(_this);\n return _this;\n }\n\n createClass(UncontrolledTooltip, [{\n key: 'toggle',\n value: function toggle() {\n this.setState({ isOpen: !this.state.isOpen });\n }\n }, {\n key: 'render',\n value: function render() {\n return React.createElement(Tooltip, _extends({ isOpen: this.state.isOpen, toggle: this.toggle }, this.props));\n }\n }]);\n return UncontrolledTooltip;\n}(Component);\n\nexport { Alert, Container, Row, Col, Navbar, NavbarBrand, NavbarToggler, Nav, NavItem, NavDropdown, NavLink, Breadcrumb, BreadcrumbItem, Button, ButtonDropdown, ButtonGroup, ButtonToolbar, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Fade, Badge, Card, CardLink, CardGroup, CardDeck, CardColumns, CardBody, CardBlock, CardFooter, CardHeader, CardImg, CardImgOverlay, Carousel, UncontrolledCarousel, CarouselControl, CarouselItem, CarouselIndicators, CarouselCaption, CardSubtitle, CardText, CardTitle, Popover, PopoverContent, PopoverBody, PopoverTitle, PopoverHeader, Progress, Modal, ModalHeader, ModalBody, ModalFooter, PopperContent, PopperTargetHelper, Tooltip, Table, ListGroup, Form, FormFeedback, FormGroup, FormText, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupButtonDropdown, InputGroupText, Label, CustomInput, Media, Pagination, PaginationItem, PaginationLink, TabContent, TabPane, Jumbotron, Collapse, ListGroupItem, ListGroupItemText, ListGroupItemHeading, UncontrolledAlert, UncontrolledButtonDropdown, UncontrolledCollapse, UncontrolledDropdown, UncontrolledNavDropdown, UncontrolledTooltip, utils as Util };\n//# sourceMappingURL=reactstrap.es.js.map\n","import React from 'react';\nimport screenAndStyle from '../_utils/screen-and-style';\nimport PostalCodeInput from '../_common/postal-code-input';\nimport classNames from 'classnames';\nimport { Popover, PopoverBody } from 'reactstrap';\n\nexport default function ZipcodePopover({\n onRef,\n popoverOpen,\n zipCodeValid,\n zipCode,\n handleZipCodeChange,\n handleZipCodeKeyUp,\n handleZipCodeUpdateClick,\n handleZipCodeCancelClick,\n}) {\n\n return (\n \n \n \n \n Ok\n \n \n Cancel\n \n \n \n );\n}\n","// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { builderDispatch } from '../../_utils/ui';\nimport translate from '../../_utils/tools/translate';\nimport {\n isPostalCodeLocal,\n shouldStripPostalCodeWhitespace,\n} from '../../_utils/validations';\nimport DisplayPrice from '../../_utils/display-price';\nimport CartItemsChangeEvents from '../cart-items-change-events';\n\nimport DeliveryOptionsForm from '../../_utils/_delivery-options/delivery-options-form';\nimport Pluralizer from '.././pluralizer';\nimport TaxesAndDeliveryPrompt from '../taxes-and-delivery-prompt';\nimport CheckoutButtons from './checkout-buttons';\nimport { checkoutBlockers } from '../checkout-blockers';\nimport ZipcodePopover from '../zipcode-popover';\nimport InvalidZipCodeWarning from '../../_common/postal-code-input/invalid-postal-code-warning';\nimport UpsellAmount from '../upsell-amount';\n\nclass Full extends React.Component {\n constructor(props) {\n super(props);\n\n this.state = {\n popoverOpen: false,\n zipCodeValid: false,\n };\n\n this.zipCodeField = undefined;\n this.setZipCodeField = ref => {\n this.zipCodeField = ref;\n };\n }\n\n componentDidMount() {\n const { zipCode } = this.context;\n\n this.setState({\n popoverOpen: !zipCode,\n zipCodeValid: isPostalCodeLocal(zipCode),\n });\n }\n\n subTotal = () => {\n const { price, shippingCost } = this.props;\n return price + shippingCost;\n };\n\n showPopover = e => {\n if (e) e.preventDefault();\n\n const { zipCode } = this.context;\n\n this.setState({\n popoverOpen: true,\n zipCodeValid: isPostalCodeLocal(zipCode),\n });\n };\n\n hidePopover = () => {\n const { zipCode } = this.context;\n\n this.setState({\n popoverOpen: false,\n zipCodeValid: isPostalCodeLocal(zipCode),\n });\n };\n\n handleZipCodeChange = e => {\n const zipCode = e.target.value.replace(/ /g, '');\n this.setState({\n zipCodeValid: isPostalCodeLocal(zipCode),\n });\n };\n\n handleZipCodeKeyUp = e => {\n if (e.keyCode === 13) {\n e.preventDefault();\n this.handleZipCodeUpdateClick();\n }\n };\n\n handleZipCodeUpdateClick = () => {\n let zipCode = this.zipCodeField.value;\n\n if (shouldStripPostalCodeWhitespace()) {\n zipCode = zipCode.replace(/ /g, '');\n }\n\n const valid = isPostalCodeLocal(zipCode);\n\n this.setState(\n {\n zipCodeValid: valid,\n },\n () => {\n if (!valid) return;\n\n builderDispatch.dispatch({\n type: CartItemsChangeEvents.ZIP_CODE_CHANGE,\n value: zipCode,\n });\n }\n );\n };\n\n handleZipCodeCancelClick = () => {\n const { zipCode } = this.context;\n this.zipCodeField.value = zipCode;\n this.hidePopover();\n };\n\n renderDeliveryOptionsForm = () => {\n const { deliveryOptions, selectedDeliveryOption } = this.props;\n\n return (\n
    \n

    Delivery Option

    \n \n
    \n );\n };\n\n render() {\n const { zipCode, uploadedToAlbumPath } = this.context;\n const {\n quantity,\n checkoutBlocker,\n deliveryOptions,\n freeShippingEnabled,\n freeShippingAssetUrl,\n freeShippingThreshold,\n homeDeliveryItemsPrice,\n crossSellItemCheckOutClick,\n } = this.props;\n const { popoverOpen, zipCodeValid } = this.state;\n\n const checkoutDisabled =\n checkoutBlocker !== checkoutBlockers.none || popoverOpen || !zipCodeValid;\n\n return (\n <>\n

    \n \n

    \n

    \n {zipCode ? `Ship to ${zipCode}` : `No ${translate('ZIP code')} given`}\n \n \n Change\n \n \n

    \n {!zipCodeValid && }\n {deliveryOptions && this.renderDeliveryOptionsForm()}\n

    \n \n

    \n
    \n \n Subtotal\n \n \n \n

    \n {freeShippingEnabled && (\n \n )}\n \n {uploadedToAlbumPath && (\n

    \n For your convenience, all photos uploaded are also saved to ‘\n \n My Photos\n \n ’\n

    \n )}\n this.setZipCodeField(ref)}\n popoverOpen={popoverOpen}\n zipCodeValid={zipCodeValid}\n zipCode={zipCode}\n handleZipCodeChange={this.handleZipCodeChange}\n handleZipCodeKeyUp={this.handleZipCodeKeyUp}\n handleZipCodeCancelClick={this.handleZipCodeCancelClick}\n handleZipCodeUpdateClick={this.handleZipCodeUpdateClick}\n />\n \n );\n }\n}\n\nFull.propTypes = {\n checkoutBlocker: PropTypes.number,\n crossSellItemCheckOutClick: PropTypes.func,\n price: PropTypes.number,\n quantity: PropTypes.number,\n shippingCost: PropTypes.number,\n};\n\nFull.defaultProps = {\n checkoutBlocker: null,\n crossSellItemCheckOutClick: null,\n price: null,\n quantity: null,\n shippingCost: null,\n};\n\nFull.contextTypes = {\n zipCode: PropTypes.string,\n uploadedToAlbumPath: PropTypes.string,\n};\n\nexport default Full;\n","import React from 'react';\n\nconst BackToStartButton = () => {\n return (\n \n Continue Shopping\n \n );\n};\n\nexport default BackToStartButton;\n","import React from 'react';\nimport Simple from './simple';\nimport Full from './full';\nimport BackToStartButton from '../back-to-start-button';\n\nexport default function Totalizer({\n onRef,\n simpleTotalizer,\n freeShippingEnabled,\n freeShippingAssetUrl,\n freeShippingThreshold,\n homeDeliveryItemsPrice,\n deliveryOptions,\n checkoutBlocker,\n price,\n quantity,\n shippingCost,\n selectedDeliveryOption,\n crossSellItemCheckOutClick,\n}) {\n if (simpleTotalizer) {\n return (\n \n \n \n );\n }\n\n return (\n \n \n \n );\n}\n\nfunction TotalizerWrapper({ children, testId }) {\n return (\n
    \n
    \n {children}\n \n
    \n
    \n );\n}","import React from 'react';\nimport DeliveryOptionIcon from '../_utils/_delivery-options/delivery-option-icon';\n\nconst DeliveryOptionAdjustments = ({ prints, prismItems, adjustments }) => {\n if (adjustments.length === 0) {\n return null;\n }\n\n const message = adjustments.length == 1\n ? 'An item had an invalid delivery option'\n : `${adjustments.length} items had invalid delivery options`;\n\n const $adjustments = adjustments.map((itemId, i) => {\n const item = itemId\n ? prismItems.find((item) => item.id == itemId) // prism items\n : prints;\n\n const deliveryOption = (item.delivery_options || []).find(d => d.key == item.delivery);\n\n return (\n
  • \n {item.title || 'Prints'} has changed to \n
  • \n );\n });\n\n return (\n
    \n \n
    {message}
    \n
      \n {$adjustments}\n
    \n
    \n );\n};\n\nexport default DeliveryOptionAdjustments;\n","\n// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\n// Import JSX modules\nimport DeliveryOptionsForm from '../_utils/_delivery-options/delivery-options-form';\n\n// -----------------------------------------------------------\nclass DeliveryOptionsFormWithCallback extends DeliveryOptionsForm {\n static propTypes = {\n ...DeliveryOptionsForm.propTypes,\n onChange: PropTypes.func.isRequired,\n };\n\n handleChange(option) {\n this.props.onChange(option);\n }\n}\n\n// -----------------------------------------------------------\n\nexport default DeliveryOptionsFormWithCallback;\n","\n// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\n// Import JS modules\nimport Store from '../_utils/tools/store';\nimport translate from '../_utils/tools/translate';\n// Import JSX modules\nimport DeliveryOptions from './delivery-options-form-with-callback';\nimport Modal from '../_utils/modal';\n\n// -----------------------------------------------------------\n\nclass DisperateDeliveryOptionsModal extends React.PureComponent {\n static propTypes = {\n options: PropTypes.array.isRequired,\n selectedOption: PropTypes.number.isRequired,\n open: PropTypes.bool.isRequired,\n onClose: PropTypes.func.isRequired,\n onSelect: PropTypes.func.isRequired,\n };\n\n constructor(props) {\n super();\n\n this.state = {\n selectedOption: props.selectedOption\n };\n }\n\n render() {\n return (\n \n \n \n
    \n }\n onClose={this.props.onClose}\n >\n
    \n

    Pick a delivery option

    \n

    It is not currently possible to combine different delivery options in the same order. Please select an option below to proceed.

    \n \n

    Items which are not available for the selected delivery option will be removed from your {translate('cart')}.

    \n

    If you are logged in to a {Store.name} Photo account, removed photo gifts will be saved to your My Projects page.

    \n
    \n \n );\n }\n\n handleChange = ({ key: selectedOption }) => {\n this.setState({\n selectedOption\n });\n }\n}\n\n// -----------------------------------------------------------\n\nexport default DisperateDeliveryOptionsModal;\n","import React, { useEffect } from 'react';\nimport WarningMessage from '../../_utils/warning-message';\n\nconst wmbAccountOrgCheckUrl = '/__check_incomplete_wmb_user_account';\nconst pollingIntervals = 10000;\n\nasync function fetchRestriction() {\n const response = await fetch(wmbAccountOrgCheckUrl);\n const { wmb_user_account_incomplete = true } = await response.json();\n\n if (!response.ok) {\n return true;\n }\n\n return wmb_user_account_incomplete;\n}\n\nexport default function IncompleteWmbAccountMessage({\n loginOrgUrl,\n handleWalmartBusinessOrgLoginMessage,\n}) {\n useEffect(async () => {\n const restricted = await fetchRestriction();\n\n if (!restricted) {\n handleWalmartBusinessOrgLoginMessage(false);\n return;\n }\n\n const pollTimeout = window.setInterval(checkUserAccount, pollingIntervals);\n\n async function checkUserAccount() {\n try {\n const restricted = await fetchRestriction();\n\n if (!restricted) {\n handleWalmartBusinessOrgLoginMessage(false);\n window.clearInterval(pollTimeout);\n }\n } catch (e) {\n window.clearInterval(pollTimeout);\n }\n }\n }, []);\n\n return (\n \n To proceed with Checkout, please finish creating your Walmart Business\n account by telling us about your organization.{' '}\n Create free account\n \n );\n}\n","import createReactClass from 'create-react-class';\n// Import Libraries\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport get from 'lodash/get';\nimport uniqBy from 'lodash.uniqby';\n// Import class\nimport genericHelpers from '../_utils/generic-helpers';\nimport { builderDispatch, WebUI } from '../_utils/ui';\nimport DeliveryCalculator from '../_utils/_delivery-options/calculator';\nimport OrderCalculator from '../_utils/_order-data/order-calculator';\nimport OrderContents from '../_utils/_order-data/order-contents';\nimport translate from '../_utils/tools/translate';\nimport { isPostalCodeLocal } from '../_utils/validations';\nimport CartItemsChangeEvents from './cart-items-change-events';\nimport DeletionFirmness from './deletion-firmness';\nimport Pluralizer from './pluralizer';\nimport LocationCookies from '../_libs/location-cookies';\nimport ZipCodes from '../_libs/zip-codes';\nimport 'Utils/extensions/set/first-and-last';\nimport { checkoutBlockers } from './checkout-blockers';\nimport {\n orderTimestampsPresent,\n unavailableOrderItems,\n} from './order-timestamps';\nimport { pickupStoreWithEverythingInStock } from './alternate-stores';\nimport { updateOnServer, deleteOnServer } from './server-actions';\n\n// Import JSX Modules\nimport EmptyCart from './empty-cart';\nimport Prints from './prints';\nimport Prism from './prism';\nimport Totalizer from './totalizer';\nimport DeliveryOptionsGroupHeader from './delivery-options-group-header';\nimport DeliveryOptionAdjustments from './delivery-option-adjustments';\nimport Modal from '../_utils/modal';\nimport DisperateDeliveryOptionsModal from './disperate-delivery-options-modal';\nimport IncompleteWmbAccountMessage from './walmart-business/incomplete_wmb_account_message';\n\n// Self-contained module for populating WM store preference cookie\nimport '../_application/walmart-preferences';\n\nconst PICKUP_DELIVERY_OPTION_TYPES = ['PICKUP', 'COLLECT'];\n\n// -----------------------------------------------------------\n// Cart\n// -----------------------------------------------------------\nconst Cart = createReactClass({\n displayName: 'Cart',\n\n getInitialState() {\n const {\n order: { prints_summary: prints, prism_items: prismItems },\n } = { ...this.props };\n\n const location = (({\n pickup_location: pickupLocation,\n collection_location: collectionLocation,\n }) => {\n const deliveryOptionMap = OrderContents.groupedByDeliveryOptionType({\n prints,\n prismItems,\n });\n\n if (pickupLocation && deliveryOptionMap.has('PICKUP')) {\n return pickupLocation;\n }\n\n if (collectionLocation && deliveryOptionMap.has('COLLECT')) {\n return collectionLocation;\n }\n })(this.props.order);\n\n const zipCode =\n ZipCodes.load() ||\n ((location = {}) => {\n // if we can't find a zip code then fallback to one from the collectionLocation\n return get(location, 'address.postcode');\n })(location);\n\n return {\n prints: {\n ...prints,\n deletedFinishes: [],\n },\n prismItems,\n zipCode,\n searching: false,\n locations: {\n pickup: [],\n collection: [],\n selected: get(location, 'id', undefined), // PropTypes doesn't like Boolean in this String context attribute\n },\n alternatePickupStore: null,\n updating: {}, // e.g. prints: true; 12345: true, all: true\n loggedIn: typeof App !== 'undefined' && App.order.logged_in(),\n crossSellItemReminderShow: false,\n };\n },\n\n UNSAFE_componentWillMount() {\n this.builderDispatchToken = builderDispatch.register(payload => {\n switch (payload.type) {\n case CartItemsChangeEvents.REMOVE_PRINT:\n this.handlePrintsDeleteSize(payload.size);\n break;\n\n case CartItemsChangeEvents.REMOVE_PRINTS:\n this.handlePrintsDeleteAll(payload.finish);\n break;\n\n case CartItemsChangeEvents.UNREMOVE_PRINT:\n this.handlePrintsUndeleteSize(payload.size);\n break;\n\n case CartItemsChangeEvents.UNREMOVE_PRINTS:\n this.handlePrintsUndeleteAll(payload.finish);\n break;\n\n case CartItemsChangeEvents.REMOVE_PRISM:\n this.handlePrismItemDelete(payload.item, payload.soft);\n break;\n\n case CartItemsChangeEvents.UNREMOVE_PRISM:\n this.handlePrismItemUndelete(payload.item);\n break;\n\n case CartItemsChangeEvents.QUANTITY_CHANGE:\n this.handlePrismItemQuantityChange(payload.item, payload.value);\n break;\n\n case CartItemsChangeEvents.DELIVERY_OPTION_CHANGE:\n this.handleDeliveryOptionChange(payload.itemId, payload.optionId);\n break;\n\n case CartItemsChangeEvents.ZIP_CODE_CHANGE:\n this.handleZipCodeChange(payload.value);\n break;\n\n case CartItemsChangeEvents.PICKUP_LOCATION_CHANGE:\n this.handleSelectedLocationChange(payload.value);\n break;\n\n case WebUI.LOGIN:\n this.handleLoggedIn();\n this.handleWalmartBusinessOrgLoginMessage(\n payload.wmb_user_account_incomplete\n );\n break;\n\n case WebUI.CART_MERGED:\n this.handleCartMerged(payload.basketPath);\n break;\n }\n });\n\n this.setState({\n itemsLimitModelIsOpen: this.itemsLimitExceeded(),\n disperateDeliveryOptionsModalIsOpen:\n this.isDeliveryMethodScopeOrder() &&\n OrderContents.hasMultipleSelectedDeliveryOptions(this.state),\n });\n },\n\n componentDidMount() {\n const {\n urls: { geolocation_to_zipcode: geolocationToZipcodeUrl },\n buying_restrictions,\n } = this.props;\n\n (() => {\n const { zipCode } = this.state;\n if (zipCode) {\n this.handleZipCodeChange(zipCode);\n return;\n }\n if (geolocationToZipcodeUrl && 'geolocation' in navigator) {\n navigator.geolocation.getCurrentPosition(\n ({ coords: { latitude, longitude } }) => {\n ZipCodes.fromLatLong(\n geolocationToZipcodeUrl,\n latitude,\n longitude,\n ({ zipcode: zipCode }) => {\n this.handleZipCodeChange(zipCode);\n }\n );\n }\n );\n }\n })();\n\n this.notifyCartItemsChanged(CartItemsChangeEvents.LOADED);\n this.handleWalmartBusinessOrgLoginMessage(\n buying_restrictions?.display_login_org_message\n );\n },\n\n componentWillUnmount() {\n builderDispatch.unregister(this.builderDispatchToken);\n },\n\n getChildContext() {\n const {\n loggedIn,\n zipCode,\n searching,\n locations: { selected: selectedLocation },\n } = this.state;\n\n const {\n urls,\n uploaded_to_album: uploadedToAlbum,\n uploaded_to_album_path: uploadedToAlbumPath,\n features: {\n checkout_without_login: checkoutWithoutLogin,\n projects_must_be_finished: projectsMustBeFinished,\n delivery_method_scope_order: deliveryMethodScopeOrder,\n disable_store_name: disableStoreName,\n taxes_and_delivery_prompt: taxesAndDeliveryPrompt,\n allow_account_signup_in_checkout: allowAccountSignupInCheckout,\n },\n } = this.props;\n\n return {\n loggedIn,\n zipCode,\n searching,\n userDetails: {},\n selectedLocation,\n urls: {\n collectionPointLocator: urls.collection_point_locator_page,\n },\n unavailableItems: this.unavailableItems(),\n uploadedToAlbum,\n uploadedToAlbumPath,\n projectsMustBeFinished,\n disableStoreName,\n taxesAndDeliveryPrompt,\n showDeliveryOptionSelectorsWithinItems: !deliveryMethodScopeOrder,\n checkout: {\n url: this.props.urls.checkout,\n withoutLogin: checkoutWithoutLogin,\n allowAccountSignupInCheckout: allowAccountSignupInCheckout,\n },\n };\n },\n\n render() {\n const { prints, prismItems } = this.state;\n\n return OrderCalculator.somePrints(prints) ||\n OrderCalculator.somePrismItems(prismItems) ? (\n this.renderHaveItemsInCart()\n ) : (\n \n (this.totalizer = ref)}\n price={0}\n quantity={0}\n shippingCost={0}\n />\n \n );\n },\n\n unavailableItems() {\n const {\n prismItems,\n locations: { pickup },\n } = this.state;\n const alivePrismItems = OrderCalculator.alivePrismItems(prismItems);\n\n return unavailableOrderItems(alivePrismItems, pickup);\n },\n\n renderHaveItemsInCart() {\n const {\n prints,\n prismItems,\n displayWalmartBusinessLoginOrgMessage,\n } = this.state;\n const { features, buying_restrictions } = this.props;\n\n return (\n
    \n
    \n
    \n \n

    \n Your photo {translate('cart')}:\n \n \n \n

    \n {displayWalmartBusinessLoginOrgMessage && (\n \n )}\n {this.renderItemGroups()}\n
    \n \n
    \n {this.renderLimitModal()}\n {this.renderCrossSellItemReminder()}\n {this.isDeliveryMethodScopeOrder() && (\n \n )}\n
    \n );\n },\n\n renderItemGroups() {\n const $nodes = [];\n const { prints } = this.state;\n\n for (const [\n deliveryType,\n { group: option, items },\n ] of OrderContents.groupedByDeliveryOptionType(this.state)) {\n const locations =\n (({ pickup, collection }) => {\n switch (deliveryType) {\n case 'PICKUP':\n return pickup;\n case 'COLLECT':\n return collection;\n }\n })(this.state.locations) || [];\n\n $nodes.push(\n \n );\n\n if (items.has(prints)) {\n $nodes.push(\n \n );\n }\n\n const prismItems = [...items].filter(item => item !== prints);\n\n if (prismItems.length) {\n $nodes.push(\n \n );\n }\n }\n\n return $nodes;\n },\n\n renderLimitModal() {\n return (\n \n \n Close\n \n \n }\n onClose={this.handleItemsLimitModalClose}>\n

    \n Sorry, you have exceeded the maximum of{' '}\n in your\n cart. Please remove{' '}\n from\n your cart before checkout.\n

    \n \n );\n },\n\n renderCrossSellItemReminder() {\n const unEditedItems = this.state.prismItems\n .filter(prismItem => prismItem.cross_sell_item)\n .map((prismItem, i) => {\n return (\n
    \n {prismItem.product_title}\n Edit\n
    \n );\n });\n\n return (\n \n \n Close\n \n \n }\n onClose={this.handleCloseCrossSellItemReminder}>\n

    \n {translate('Cart')}{' '}\n Updated\n

    \n \n You added an item! Please remember to {translate('personalise')} this\n item before checkout:\n {unEditedItems}\n \n \n );\n },\n loadData(callback, url = this.props.urls.order) {\n fetch(`${url}&_=${Date.now()}`, {\n credentials: 'same-origin',\n })\n .then(response => response.json())\n .then(data => callback(data))\n .catch(() => {});\n },\n\n findPickupLocations() {\n this.setState({\n locations: {\n ...this.state.locations,\n pickup: [],\n },\n storeFinderErrorMessage: undefined,\n searching: true,\n });\n\n const serviceFilter = (() => {\n switch (this.soonestSelectedDeliveryTime()) {\n case DeliveryCalculator.ONE_HOUR:\n return 'SERVICE_PHOTO_CENTER_ONE_HOUR';\n case DeliveryCalculator.TWENTY_FOUR_HOURS:\n return 'SERVICE_PHOTO_CENTER_SAME_DAY_PICKUP';\n }\n })();\n\n genericHelpers\n .findLocations(\n this.props.urls.store_locator,\n this.state.zipCode,\n serviceFilter\n )\n .then(locations => {\n const alternatePickupStore = pickupStoreWithEverythingInStock(\n locations\n );\n\n this.setState(\n {\n locations: {\n ...this.state.locations,\n pickup: locations,\n },\n alternatePickupStore: alternatePickupStore,\n searching: false,\n },\n function() {\n const selectedLocationId = this.state.locations.selected;\n\n if (\n !selectedLocationId ||\n !locations.some(location => location.id == selectedLocationId)\n ) {\n // currently selected location isn't in the new list\n // therefore change selected location to the first one which is\n const newSelectedLocationId = get(locations[0], 'id');\n if (newSelectedLocationId) {\n this.handleSelectedLocationChange(newSelectedLocationId);\n }\n }\n\n LocationCookies.setNearestStores(locations);\n this.setUpdating('location', false);\n }\n );\n })\n .catch(errorMessage => {\n this.setState({\n storeFinderErrorMessage: errorMessage,\n searching: false,\n locations: {\n ...this.state.locations,\n selected: undefined,\n },\n alternatePickupStore: null,\n updating: { ...this.state.updating, location: false },\n });\n });\n },\n\n findCollectionLocations() {\n fetch(\n `${this.props.urls.collection_point_locator}?q=${this.state.zipCode}`,\n {\n credentials: 'same-origin',\n }\n )\n .then(response => response.json())\n .then(data => {\n this.setState({\n locations: {\n ...this.state.locations,\n collection: data.data,\n },\n updating: { ...this.state.updating, location: false },\n });\n })\n .catch(() => {\n this.setUpdating('location', false);\n return {};\n });\n },\n\n soonestSelectedDeliveryTime() {\n const allSelectedDeliveryOptionHours = this.selectedDeliveryOptions().map(\n opt => opt.time_hours\n );\n\n return Math.min.apply(null, allSelectedDeliveryOptionHours);\n },\n\n handleLoggedIn() {\n this.setState({\n loggedIn: true,\n });\n },\n\n handleCartMerged(basketPath) {\n location = basketPath;\n },\n\n handlePrintsDeleteSize(size) {\n const { prints } = this.state;\n\n const sizeToDelete = prints.sizes.find(printSize => printSize === size);\n\n if (!sizeToDelete) {\n return;\n }\n\n sizeToDelete.deleted = Date.now();\n\n this.setState(\n {\n prints: { ...prints },\n },\n () => {\n deleteOnServer({\n url: this.props.urls.prints_remove,\n redirect: this.props.urls.shopping_cart,\n size: size.size,\n finish: size.print_finish_key,\n soft: true,\n }).then(this.fetchNewOrderTimestamps);\n\n this.notifyCartItemsChanged();\n }\n );\n\n this.notifyCartItemsChanged(\n CartItemsChangeEvents.REMOVED_PRINTS,\n null,\n null,\n sizeToDelete\n );\n },\n handlePrintsDeleteAll(finish = 'all') {\n const { prints } = this.state;\n const deletedFinishes =\n finish === 'all'\n ? [...new Set(prints.sizes.map(size => size.print_finish_key))]\n : [finish];\n\n this.setState(\n {\n prints: {\n ...prints,\n deletedFinishes: [...prints.deletedFinishes, ...deletedFinishes],\n },\n },\n async () => {\n await Promise.all(\n deletedFinishes.map(\n async finish =>\n await deleteOnServer({\n url: this.props.urls.prints_remove,\n redirect: this.props.urls.shopping_cart,\n finish,\n soft: true,\n })\n )\n );\n this.fetchNewOrderTimestamps();\n this.notifyCartItemsChanged();\n }\n );\n\n this.notifyCartItemsChanged(CartItemsChangeEvents.REMOVED_PRINTS);\n },\n handlePrintsUndeleteAll(finish) {\n const { prints } = this.state;\n\n this.setState(\n {\n prints: {\n ...prints,\n deletedFinishes: [...prints.deletedFinishes].filter(\n deletedFinish => deletedFinish !== finish\n ),\n },\n },\n () => {\n updateOnServer({\n url: this.props.urls.prints_unremove,\n redirect: this.props.urls.shopping_cart,\n finish,\n }).then(this.fetchNewOrderTimestamps);\n this.notifyCartItemsChanged();\n }\n );\n\n this.notifyCartItemsChanged(CartItemsChangeEvents.UNREMOVED_PRINTS);\n },\n handlePrintsUndeleteSize({ print_finish_key: finish, size }) {\n const { prints } = this.state;\n\n let sizeUnDeleted;\n prints.sizes.forEach(printSize => {\n if (printSize.size === size && printSize.print_finish_key === finish) {\n sizeUnDeleted || (sizeUnDeleted = printSize);\n delete printSize.deleted;\n }\n });\n\n this.setState(\n {\n prints: { ...prints },\n },\n () => {\n updateOnServer({\n url: this.props.urls.prints_unremove,\n redirect: this.props.urls.shopping_cart,\n finish,\n size,\n }).then(this.fetchNewOrderTimestamps);\n this.notifyCartItemsChanged();\n }\n );\n\n this.notifyCartItemsChanged(\n CartItemsChangeEvents.UNREMOVED_PRINTS,\n null,\n null,\n sizeUnDeleted\n );\n },\n\n handlePrismItemQuantityChange(item, quantity) {\n updateOnServer({\n url: this.props.urls.prism_update,\n redirect: this.props.urls.shopping_cart,\n item: item.id,\n quantity,\n }).then(data => {\n this.loadData(data => {\n // overwrite just the changed item's quantity and cost\n const { prismItems: originalItems } = this.state,\n originalItem = originalItems.find(_item => _item.id === item.id),\n newItem = data.prism_items.find(_item => _item.id === item.id);\n\n originalItem.cost = newItem.cost;\n originalItem.quantity = newItem.quantity;\n\n this.setState(\n {\n prismItems: [...originalItems],\n },\n function() {\n this.setUpdating(item.id, false);\n this.notifyCartItemsChanged();\n }\n );\n });\n });\n\n this.setUpdating(item.id);\n\n this.notifyCartItemsChanged(\n CartItemsChangeEvents.QUANTITY_CHANGED,\n item.id,\n quantity\n );\n },\n handlePrismItemDelete(item, soft = this.state.loggedIn) {\n const { prismItems } = this.state;\n\n prismItems.forEach(prismItem => {\n if (prismItem.id == item.id) {\n prismItem.deleted = soft\n ? DeletionFirmness.SOFT\n : DeletionFirmness.HARD;\n }\n });\n\n return new Promise(resolve => {\n this.setState(\n {\n prismItems: [...prismItems],\n },\n async function() {\n await deleteOnServer({\n url: this.props.urls.prism_remove,\n redirect: this.props.urls.shopping_cart,\n prism_id: item.id,\n soft,\n });\n\n this.fetchNewOrderTimestamps();\n this.notifyCartItemsChanged();\n\n resolve();\n }\n );\n\n this.notifyCartItemsChanged(CartItemsChangeEvents.REMOVED_PRISM, item.id);\n });\n },\n handlePrismItemUndelete(item) {\n const { prismItems } = this.state;\n\n prismItems.forEach(prismItem => {\n if (prismItem.id === item.id) delete prismItem.deleted;\n });\n\n this.setState(\n {\n prismItems: [...prismItems],\n },\n () => {\n updateOnServer({\n url: this.props.urls.prism_unremove,\n redirect: this.props.urls.shopping_cart,\n prism_id: item.prism_id,\n }).then(this.fetchNewOrderTimestamps);\n\n this.notifyCartItemsChanged();\n }\n );\n\n this.notifyCartItemsChanged(CartItemsChangeEvents.UNREMOVED_PRISM, item.id);\n },\n\n handleDeliveryOptionChange(itemId, optionId) {\n this.setUpdating(itemId);\n\n return new Promise(resolve => {\n updateOnServer({\n url: this.props.urls.update_delivery_option,\n item: itemId || 'prints',\n option: optionId,\n redirect: this.props.urls.shopping_cart,\n }).then(() => {\n this.loadData(data => {\n this.setState(\n prevState => {\n return {\n prints: { ...prevState.prints, ...data.prints_summary },\n prismItems: data.prism_items,\n };\n },\n () => {\n // update stores/collection locations\n this.fetchNewStoreLocations();\n this.setUpdating(itemId, false);\n this.notifyCartItemsChanged({\n type: CartItemsChangeEvents.UPDATED,\n });\n this.updateStoreSelection(this.state.locations.selected);\n\n resolve();\n }\n );\n });\n });\n });\n },\n\n updateStoreSelection(locationId) {\n this.setState({\n locations: {\n ...this.state.locations,\n selected: this.hasPickupDeliveryOptionType() ? locationId : undefined,\n },\n });\n },\n\n handleSelectedLocationChange(locationId) {\n this.updateStoreSelection(locationId);\n\n updateOnServer({\n url: this.props.urls.update_delivery_pickup,\n redirect: this.props.urls.shopping_cart,\n option: locationId,\n });\n },\n\n handleZipCodeChange(zipCode) {\n if (!isPostalCodeLocal(zipCode)) return;\n\n this.setState(\n {\n zipCode,\n },\n function() {\n this.totalizer && this.totalizer.hidePopover();\n // if PICKUP or COLLECT is selected anywhere\n // find stores near to this\n const selectedDeliveryOptions = this.selectedDeliveryOptions();\n\n if (\n selectedDeliveryOptions.some(opt =>\n PICKUP_DELIVERY_OPTION_TYPES.includes(opt.type)\n )\n ) {\n this.setUpdating('location');\n\n this.fetchNewStoreLocations();\n }\n }\n );\n\n if (isPostalCodeLocal(zipCode)) {\n // Set location cookies for Walmart\n LocationCookies.setDeliveryLocation(\n this.props.urls.zipcode_to_location,\n zipCode\n );\n // store for future use\n ZipCodes.save(zipCode);\n ZipCodes.persist(this.props.urls.update_user_postcode, zipCode);\n }\n\n builderDispatch.delayedDispatch({\n type: CartItemsChangeEvents.ZIP_CODE_CHANGED,\n value: zipCode,\n });\n },\n\n fetchNewStoreLocations() {\n uniqBy(this.selectedDeliveryOptions(), 'type').forEach(deliveryOption => {\n switch (deliveryOption.type) {\n case 'PICKUP':\n this.setUpdating('location');\n this.findPickupLocations();\n break;\n case 'COLLECT':\n this.setUpdating('location');\n this.findCollectionLocations();\n break;\n }\n });\n },\n fetchNewOrderTimestamps() {\n if (orderTimestampsPresent(this.state.locations)) {\n this.fetchNewStoreLocations();\n }\n },\n selectedDeliveryOptions() {\n return OrderContents.selectedDeliveryOptions(this.state);\n },\n\n firstSelectedDeliveryOption() {\n return get(this.selectedDeliveryOptions(), [0, 'key']);\n },\n\n availableDeliveryOptions() {\n return OrderContents.availableDeliveryOptions(this.state);\n },\n\n hasPickupDeliveryOptionType() {\n return OrderContents.hasDeliveryOptionType(\n this.state,\n PICKUP_DELIVERY_OPTION_TYPES\n );\n },\n\n hasUnavailableItemForPickup() {\n const {\n locations: { selected },\n } = this.state;\n\n return this.unavailableItems().some(item => item.storeId === selected);\n },\n\n getCheckoutBlocker() {\n const {\n prints,\n prismItems,\n locations: { selected },\n updating,\n displayWalmartBusinessLoginOrgMessage,\n } = this.state;\n\n if (Object.values(updating).some(Boolean)) {\n return checkoutBlockers.cartUpdating;\n }\n\n if (this.itemsLimitExceeded()) {\n return checkoutBlockers.itemsLimitExceeded;\n }\n\n if (displayWalmartBusinessLoginOrgMessage) {\n return checkoutBlockers.wmbAccountRestricted;\n }\n\n const alivePrints = OrderCalculator.alivePrints(prints);\n const alivePrismItems = OrderCalculator.alivePrismItems(prismItems);\n\n // test for missing_attributes, disabled_options_chosen, or disabled\n for (const prismItem of alivePrismItems) {\n if (prismItem.missing_attributes) {\n return checkoutBlockers.missingAttributes;\n }\n\n if (prismItem.disabled_options_chosen) {\n return checkoutBlockers.disabledOptionsChosen;\n }\n\n if (prismItem.disabled) {\n return checkoutBlockers.disabled;\n }\n\n if (prismItem.disabled_theme) {\n return checkoutBlockers.disabledTheme;\n }\n\n if (prismItem.cross_sell_item) {\n return checkoutBlockers.crossSellItem;\n }\n }\n\n const items = [].concat(alivePrints, alivePrismItems).filter(Boolean);\n // test for delivery option not set\n if (items.some(item => !OrderContents.selectedDeliveryOption(item))) {\n return checkoutBlockers.deliveryOptionNotSet;\n }\n\n const hasPickupDeliveryOptionType = this.hasPickupDeliveryOptionType();\n const hasUnavailableItem = this.hasUnavailableItemForPickup();\n\n if (hasPickupDeliveryOptionType && hasUnavailableItem) {\n return checkoutBlockers.unavailableItem;\n }\n\n if (this.props.features.pickup_only_pay_offline) {\n const hasDeliveryOptionTypeOtherThanPickup = OrderContents.hasDeliveryOptionTypeOtherThan(\n { prints: alivePrints, prismItems: alivePrismItems },\n PICKUP_DELIVERY_OPTION_TYPES\n );\n\n // if pickup_only_pay_offline is set and there are any items set to PICKUP or COLLECT as well as alternative delivery types\n if (hasPickupDeliveryOptionType && hasDeliveryOptionTypeOtherThanPickup) {\n return checkoutBlockers.incompatibleDeliveryTypes;\n }\n }\n\n // if there are any items set to PICKUP or COLLECT but there's no store selected\n if (!selected && hasPickupDeliveryOptionType) {\n return checkoutBlockers.noPickupLocation;\n }\n\n return checkoutBlockers.none;\n },\n\n setUpdating(key = 'prints', value = true) {\n if (this.isDeliveryMethodScopeOrder()) {\n key = 'all';\n }\n\n this.setState({\n updating: {\n ...this.state.updating,\n [key]: value,\n },\n });\n },\n\n handleItemsLimitModalClose() {\n this.setState({ itemsLimitModelIsOpen: false });\n },\n handleShowCrossSellItemReminder() {\n this.setState({ crossSellItemReminderShow: true });\n },\n handleCloseCrossSellItemReminder() {\n this.setState({ crossSellItemReminderShow: false });\n },\n itemsLimitExceeded() {\n if (this.props.items_limit == 0) {\n return false;\n }\n return OrderCalculator.lineItemCount(this.state) > this.props.items_limit;\n },\n itemsLimitExcess() {\n return OrderCalculator.lineItemCount(this.state) - this.props.items_limit;\n },\n isDeliveryMethodScopeOrder() {\n return get(this.props.features, 'delivery_method_scope_order', false);\n },\n async handleDisperateDeliveryOptionSelect(optionId) {\n this.handleDisperateDeliveryOptionsModalClose();\n\n await this.handleDeliveryOptionChange(null, optionId);\n\n const unknownGroup =\n OrderContents.groupedByDeliveryOptionType(this.state).get('-UNKNOWN-') ||\n {};\n const iter = unknownGroup.items.values();\n let value = iter.next();\n\n while (!value.done) {\n const item = value.value;\n\n (await item.prism_id)\n ? this.handlePrismItemDelete(item)\n : this.handlePrintsDeleteAll();\n\n value = iter.next();\n }\n },\n handleDisperateDeliveryOptionsModalClose() {\n this.setState({ disperateDeliveryOptionsModalIsOpen: false });\n },\n notifyCartItemsChanged(\n type = CartItemsChangeEvents.UPDATED,\n prism_item_id,\n quantity,\n print_size\n ) {\n builderDispatch.delayedDispatch({\n type,\n items: {\n prints: { ...this.state.prints },\n prism: this.state.prismItems.map(prismItem => ({ ...prismItem })),\n },\n prism_id: prism_item_id,\n quantity,\n print_size,\n });\n },\n handleWalmartBusinessOrgLoginMessage(showMessage) {\n this.setState({\n displayWalmartBusinessLoginOrgMessage: showMessage,\n });\n },\n});\n\nCart.childContextTypes = {\n loggedIn: PropTypes.bool,\n zipCode: PropTypes.string,\n searching: PropTypes.bool,\n userDetails: PropTypes.shape({\n addressStreet: PropTypes.string,\n addressAdditional: PropTypes.string,\n addressCity: PropTypes.string,\n }),\n selectedLocation: PropTypes.string,\n urls: PropTypes.shape({\n collectionPointLocator: PropTypes.string,\n }),\n unavailableItems: PropTypes.array,\n uploadedToAlbum: PropTypes.string,\n uploadedToAlbumPath: PropTypes.string,\n projectsMustBeFinished: PropTypes.bool,\n showDeliveryOptionSelectorsWithinItems: PropTypes.bool,\n disableStoreName: PropTypes.bool,\n taxesAndDeliveryPrompt: PropTypes.string,\n checkout: PropTypes.shape({\n withoutLogin: PropTypes.bool,\n available: PropTypes.bool,\n url: PropTypes.string,\n allowAccountSignupInCheckout: PropTypes.bool,\n }),\n};\n\n// export default Cart;\nexport default Cart;\n"],"names":["DeletionFirmness","shouldSaveCookies","Store","setDeliveryLocation","url","zipCode","genericHelpers","location","value","Cookies","error","setNearestStores","locations","LocationCookies","checkoutBlockers","checkoutBlockerTexts","pickupStoreWithEverythingInStock","storesAndAvailabilityPerDelOpt","delOpt","itemTimestamps","_itemId","itemTimestamp","locationsPerDeliveryOption","storesAndAvailability","storeNumber","availability","newLocations","idx","store","id","l","_locationDistanceSorter","a","b","distanceA","distanceB","milesA","milesB","deleteOnServer","redirect","params","formData","buildFormData","response","handleResponse","data","updateBasketQuantity","updateOnServer","permittedParams","key","quantity","observableEvent","EmptyCart","children","React","translate","PrintSizeType","PropTypes","PrintsAllDeleted","deletedFinish","sizes","deletedSizes","print_finish_key","niceFinishTitle","memo","size","Pluralizer","handleUndelete","e","builderDispatch","CartItemsChangeEvents","PrintsSizeDeleted","title","CropWarning","Summary","totalPrice","sizesGroupedByFinish","sizesByFinish","finish","currentFinishSizes","pluralize","Currency","sizeFinish","printSize","i","printSizeTitle","handleIndividualDelete","handleDelete","DeliveryOptionsForm","options","selectedOption","itemId","hideIcon","option","DeliveryOptionIcon","optionId","__publicField","DeliveryOptions","showDeliveryOptionSelectorsWithinItems","PrintStack","thumbnail","OutOfStockWarning","alternateStore","productMessage","setStoreToAlternate","WarningMessage","prompts","storeName","LocationFormatter","storeDistanceMiles","Prints","props","unavailableItems","selectedLocation","deletedFinishes","delivery","delivery_options","updating","alternatePickupStore","aliveSizes","lastDeletedSize","chosenDeliveryOption","OrderContents","printsUnavailable","deliveryOptionsCalculator","item","storeId","SpinnerCover","PrismProductAttribute","type","DecapitalisedTitle","AppleDeviceNameCapitaliser","PrismProductCopyInProgressWarning","className","PrismProductIncompleteWarning","projectsMustBeFinished","text","cssClasses","classNames","PrismProductOutOfStockWarning","message","ConfirmationDialog","Component","onClose","onConfirm","Modal","PrismItem","createReactClass","quantityOptions","generateCopiesList","c","Select","onClick","ariaLabel","$attributes","disabled","disabledTheme","missingAttributes","disabledOptions","copyInProgress","incomplete","itemUnavailableFromSelectedStore","WarningMessages","ProductDisabledOptionsMessage","confirmDelete","prism_id","soft","$generator","editUrl","productTitle","loggedIn","openConfirmationDialog","isPrismProduct","prismProductTitle","PrismItemDeleted","action","deleted","Prism","items","outOfStock","$items","$item","TaxesAndDeliveryPrompt","us","row","taxesAndDeliveryPrompt","deliveryOptionType","CheckOutButton","payload","WebUI","showLoginEvent","AnalyticsHandler","classes","checkoutBlocker","crossSellItemCheckOutClick","checkoutDisabled","checkout","btnText","ProgressButton","f","indexQM","keyValuePair","input","progressButton","LoginButton","CheckoutButtons","handleCheckoutClick","checkoutLoginBtnEnabled","UpsellAmount","price","freeShippingThreshold","assetUrl","amountNeeded","DisplayPrice","CheckoutBlockingReason","Simple","deliveryOptions","selectedDeliveryOption","freeShippingEnabled","freeShippingAssetUrl","homeDeliveryItemsPrice","uploadedToAlbumPath","asyncTag","funcTag","genTag","nullTag","proxyTag","undefinedTag","freeGlobal","global","freeSelf","root","objectProto","hasOwnProperty","nativeObjectToString","Symbol","symToStringTag","baseGetTag","getRawTag","objectToString","isOwn","tag","unmasked","result","isFunction","isObject","lodash_isfunction","_createClass","defineProperties","target","descriptor","Constructor","protoProps","staticProps","_objectWithoutProperties","obj","keys","_classCallCheck","instance","_possibleConstructorReturn","self","call","_inherits","subClass","superClass","Manager","_Component","_ref","_temp","_this","_ret","_len","args","_key","node","_props","restProps","createElement","_extends","source","Target","context","_props$component","component","innerRef","popperManager","targetRef","targetProps","componentProps","isBrowser","timeoutDuration","longerTimeoutBrowsers","microtaskDebounce","fn","called","taskDebounce","scheduled","supportsMicroTasks","debounce","functionToCheck","getType","getStyleComputedProperty","element","property","window","css","getParentNode","getScrollParent","_getStyleComputedProp","overflow","overflowX","overflowY","getReferenceNode","reference","isIE11","isIE10","isIE","version","getOffsetParent","noOffsetParent","offsetParent","nodeName","isOffsetContainer","getRoot","findCommonOffsetParent","element1","element2","order","start","end","range","commonAncestorContainer","element1root","getScroll","side","upperSide","html","scrollingElement","includeScroll","rect","subtract","scrollTop","scrollLeft","modifier","getBordersSize","styles","axis","sideA","sideB","getSize","body","computedStyle","getWindowSizes","document","classCallCheck","createClass","defineProperty","getClientRect","offsets","getBoundingClientRect","width","height","horizScrollbar","vertScrollbar","getOffsetRectRelativeToArbitraryNode","parent","fixedPosition","isHTML","childrenRect","parentRect","scrollParent","borderTopWidth","borderLeftWidth","marginTop","marginLeft","getViewportOffsetRectRelativeToArtbitraryNode","excludeScroll","relativeOffset","offset","isFixed","parentNode","getFixedPositionOffsetParent","el","getBoundaries","popper","padding","boundariesElement","boundaries","boundariesNode","_getWindowSizes","isPaddingNumber","getArea","computeAutoPlacement","placement","refRect","rects","sortedAreas","filteredAreas","_ref2","computedPlacement","variation","getReferenceOffsets","state","commonOffsetParent","getOuterSizes","x","y","getOppositePlacement","hash","matched","getPopperOffsets","referenceOffsets","popperRect","popperOffsets","isHoriz","mainSide","secondarySide","measurement","secondaryMeasurement","find","arr","check","findIndex","prop","cur","match","runModifiers","modifiers","ends","modifiersToRun","update","isModifierEnabled","modifierName","name","enabled","getSupportedPropertyName","prefixes","upperProp","prefix","toCheck","destroy","getWindow","ownerDocument","attachToScrollParents","event","callback","scrollParents","isBody","setupEventListeners","updateBound","scrollElement","enableEventListeners","removeEventListeners","disableEventListeners","isNumeric","setStyles","unit","setAttributes","attributes","applyStyle","applyStyleOnLoad","modifierOptions","getRoundedOffsets","shouldRound","_data$offsets","round","floor","noRound","v","referenceWidth","popperWidth","isVertical","isVariation","sameWidthParity","bothOddWidth","horizontalToInteger","verticalToInteger","isFirefox","computeStyle","legacyGpuAccelerationOption","gpuAcceleration","offsetParentRect","prefixedProperty","left","top","invertTop","invertLeft","isModifierRequired","requestingName","requestedName","requesting","isRequired","_requesting","requested","arrow","_data$offsets$arrow","arrowElement","len","sideCapitalized","altSide","opSide","arrowElementSize","center","popperMarginSide","popperBorderSide","sideValue","getOppositeVariation","placements","validPlacements","clockwise","counter","index","BEHAVIORS","flip","placementOpposite","flipOrder","step","refOffsets","overlapsRef","overflowsLeft","overflowsRight","overflowsTop","overflowsBottom","overflowsBoundaries","flippedVariationByRef","flippedVariationByContent","flippedVariation","keepTogether","toValue","str","split","parseOffset","basePlacement","useHeight","fragments","frag","divider","splitRegex","ops","op","mergeWithPrevious","index2","preventOverflow","transformProp","popperStyles","transform","shift","shiftvariation","shiftOffsets","hide","bound","inner","subtractLength","Defaults","Popper","eventsEnabled","PopperJS","_this$state$data$offs","lastProps","_this2","positionFixed","_props2","popperStyle","popperPlacement","popperHide","popperProps","Arrow","arrowRef","arrowStyle","arrowProps","_typeof","inherits","objectWithoutProperties","possibleConstructorReturn","getScrollbarWidth","scrollDiv","scrollbarWidth","setScrollbarWidth","isBodyOverflowing","getOriginalBodyPadding","style","conditionallyUpdateScrollbar","fixedContent","bodyPadding","globalCssModule","mapToCssModules","cssModule","omit","omitKeys","pick","pickKeys","length","warned","warnOnce","deprecated","propType","explanation","propName","componentName","rest","DOMElement","targetPropType","TransitionTimeouts","TransitionPropTypeKeys","TransitionStatuses","keyCodes","PopperPlacements","canUseDOM","isReactRefObj","findDOMElements","selection","isArrayOrNodeList","els","getTarget","defaultToggleEvents","addMultipleEventListeners","_els","handler","_events","events","focusableElements","stringOrNumberProp","columnProps","propTypes$8","defaultProps$8","childContextTypes","Dropdown","_React$Component","prevProps","ReactDOM","_this3","container","menuClass","itemClass","disabledClass","charPressed","firstLetter","_classNames","_omit","dropup","isOpen","group","nav","setActiveFromChild","active","addonType","attrs","direction","subItemIsActive","dropdownItem","propTypes$9","defaultProps$9","NavLink","Tag","propTypes$12","defaultProps$12","Button","block","close","color","outline","btnOutlineColor","defaultAriaLabel","propTypes$13","ButtonDropdown","propTypes$16","contextTypes","defaultProps$15","DropdownItem","tabIndex","header","propTypes$18","defaultProps$17","contextTypes$2","DropdownToggle","caret","unwrapExports","createCommonjsModule","module","PropTypes$1","exports","transitionTimeout","_propTypes2","_interopRequireDefault","transitionType","timeoutPropName","enabledPropName","Transition_1","PropTypes$$1","_interopRequireWildcard","_react2","_reactDom2","newObj","UNMOUNTED","EXITED","ENTERING","ENTERED","EXITING","Transition","parentGroup","appear","initialStatus","nextProps","status","timeout","exit","enter","mounting","nextStatus","appearing","timeouts","nextState","_this4","_this5","childProps","child","noop","propTypes$19","defaultProps$18","Fade","baseClass","baseClassActive","otherProps","transitionProps","isActive","CarouselItem","isAppearing","offsetHeight","isIn","slide","directionClassName","orderClassName","itemClasses","Carousel","_setInterval","setInterval","_clearInterval","clearInterval","evt","carouselItems","_props3","outerClasses","innerClasses","slidesOnly","_carouselItems","_controlLeft","_controlRight","indicators","wrappedOnClick","wrappedIndicators","controlLeft","controlRight","CarouselControl","onClickHandler","directionText","anchorClasses","iconClasses","screenReaderClasses","CarouselIndicators","activeIndex","listClasses","indicatorClasses","CarouselCaption","captionHeader","captionText","propTypes$31","UncontrolledCarousel","nextIndex","newIndex","autoPlay","controls","goToIndex","slides","propTypes$36","defaultProps$33","childContextTypes$1","PopperContent","fallbackPlacement","placementPrefix","_arrowClassName","hideArrow","arrowClassName","popperClassName","extendedModifiers","propTypes$37","DEFAULT_DELAYS","defaultProps$34","Popover","ref","delay","popperClasses","propTypes$39","defaultProps$36","PopoverBody","propTypes$42","Portal","FadePropTypes","propTypes$41","propsToOmit","defaultProps$38","prevState","currentFocus","focusableChildren","totalFocusable","focusedIndex","modalOpenClassName","modalOpenClassNameRegex","dialogBaseClass","wrapClassName","modalClassName","backdropClassName","backdrop","role","labelledBy","external","modalAttributes","hasTransition","modalTransition","backdropTransition","Backdrop","propTypes$46","DEFAULT_DELAYS$1","defaultProps$42","Tooltip","triggers","propTypes$49","defaultProps$45","Form","inline","propTypes$53","defaultProps$49","Input","bsSize","valid","invalid","addon","staticInput","plaintext","checkInput","isNotaNumber","fileInput","textareaInput","selectInput","formControlClass","stringOrNumberProp$1","columnProps$1","propTypes$64","defaultProps$57","childContextTypes$2","TabContent","polyfill","propTypes$67","defaultProps$60","Alert","closeClassName","closeAriaLabel","toggle","transition","fade","closeClasses","alertTransition","_transitionStatusToCl","propTypes$68","defaultProps$61","transitionStatusToClassHash","getTransitionClass","getHeight","Collapse","navbar","collapseClass","UncontrolledAlert","UncontrolledButtonDropdown","propTypes$72","defaultProps$65","UncontrolledCollapse","UncontrolledDropdown","UncontrolledTooltip","ZipcodePopover","onRef","popoverOpen","zipCodeValid","handleZipCodeChange","handleZipCodeKeyUp","handleZipCodeUpdateClick","handleZipCodeCancelClick","screenAndStyle","PostalCodeInput","Full","shippingCost","isPostalCodeLocal","shouldStripPostalCodeWhitespace","InvalidZipCodeWarning","BackToStartButton","Totalizer","simpleTotalizer","TotalizerWrapper","testId","DeliveryOptionAdjustments","prints","prismItems","adjustments","$adjustments","deliveryOption","d","DeliveryOptionsFormWithCallback","DisperateDeliveryOptionsModal","wmbAccountOrgCheckUrl","pollingIntervals","fetchRestriction","wmb_user_account_incomplete","IncompleteWmbAccountMessage","loginOrgUrl","handleWalmartBusinessOrgLoginMessage","useEffect","pollTimeout","checkUserAccount","PICKUP_DELIVERY_OPTION_TYPES","Cart","pickupLocation","collectionLocation","deliveryOptionMap","ZipCodes","get","geolocationToZipcodeUrl","buying_restrictions","latitude","longitude","searching","urls","uploadedToAlbum","checkoutWithoutLogin","deliveryMethodScopeOrder","disableStoreName","allowAccountSignupInCheckout","OrderCalculator","pickup","alivePrismItems","unavailableOrderItems","displayWalmartBusinessLoginOrgMessage","features","_a","_b","$nodes","deliveryType","collection","DeliveryOptionsGroupHeader","unEditedItems","prismItem","serviceFilter","DeliveryCalculator","selectedLocationId","newSelectedLocationId","errorMessage","allSelectedDeliveryOptionHours","opt","basketPath","sizeToDelete","sizeUnDeleted","originalItems","originalItem","_item","newItem","resolve","locationId","uniqBy","orderTimestampsPresent","selected","alivePrints","hasPickupDeliveryOptionType","hasUnavailableItem","hasDeliveryOptionTypeOtherThanPickup","iter","prism_item_id","print_size","showMessage"],"mappings":"g9DACA,MAAMA,GAAmB,CACvB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