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CAAqBiE,EAAG7D,KAAM,EAAAoF,EAAA,GAA2BvB,EAAG7D,IGL1F,WACE,MAAM,IAAIqE,UAAU,4IACtB,CHGgG,EAChG,C,qCINA,SAASzR,EAAuBoN,EAAGgE,GACjC,OAAOA,IAAMA,EAAIhE,EAAEqF,MAAM,IAAKzE,OAAO0E,OAAO1E,OAAO2E,iBAAiBvF,EAAG,CACrEwF,IAAK,CACHvP,MAAO2K,OAAO0E,OAAOtB,MAG3B,C,kICFA,SAAS7L,EAAmB0L,GAC1B,OCJF,SAA4BA,GAC1B,GAAItO,MAAMiO,QAAQK,GAAI,OAAO,EAAA4B,EAAA,GAAiB5B,EAChD,CDES,CAAkBA,IEL3B,SAA0BA,GACxB,GAAI,oBAAsBgB,QAAU,MAAQhB,EAAEgB,OAAOC,WAAa,MAAQjB,EAAE,cAAe,OAAOtO,MAAMmQ,KAAK7B,EAC/G,CFGiC,CAAgBA,KAAM,EAAAuB,EAAA,GAA2BvB,IGLlF,WACE,MAAM,IAAIQ,UAAU,uIACtB,CHGwF,EACxF,C,oFILA,SAASsB,EAA4B9B,EAAGjE,GACtC,GAAIiE,EAAG,CACL,GAAI,iBAAmBA,EAAG,OAAO,OAAiBA,EAAGjE,GACrD,IAAIoE,EAAI,CAAC,EAAE4B,SAAS3D,KAAK4B,GAAGwB,MAAM,GAAI,GACtC,MAAO,WAAarB,GAAKH,EAAEU,cAAgBP,EAAIH,EAAEU,YAAY7I,MAAO,QAAUsI,GAAK,QAAUA,EAAIzO,MAAMmQ,KAAK7B,GAAK,cAAgBG,GAAK,2CAA2ChD,KAAKgD,IAAK,OAAiBH,EAAGjE,QAAK,CACtN,CACF,C","sources":["webpack://Oneflare/./client/app/site/OneflareHeader/components/Notification/styled/Notification.js","webpack://Oneflare/./client/app/site/OneflareHeader/components/Notification/Notification.jsx","webpack://Oneflare/./client/app/site/OneflareHeader/components/Notification/index.js","webpack://Oneflare/./client/app/site/OneflareHeader/components/OneflareHeader/OneflareHeader.jsx","webpack://Oneflare/./client/app/site/OneflareHeader/index.jsx","webpack://Oneflare/./client/app/packs/oneflare-header.js","webpack://Oneflare/./client/app/shared/chat/types.js","webpack://Oneflare/./node_modules/invariant/browser.js","webpack://Oneflare/./node_modules/json2mq/index.js","webpack://Oneflare/./node_modules/react-media/esm/react-media.js","webpack://Oneflare/./node_modules/string-convert/camel2hyphen.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/inherits.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/possibleConstructorReturn.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/iterableToArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/nonIterableSpread.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js"],"sourcesContent":["import styled from 'styled-components';\nimport { media } from '@oneflare/flarekit/lib/libs';\nimport { Close, No, Success } from '@oneflare/flarekit';\n\nexport const NotificationWrapperStyled = styled.div`\n color: ${({ theme }) => theme.color.white};\n padding: 16px 20px;\n\n ${media.lgUp`\n padding: 16px 40px;\n `}\n\n ${({ kind, theme }) => {\n switch (kind) {\n case 'success':\n return `background-color: ${theme.color.successDark};`;\n\n case 'warning':\n return `background-color: ${theme.color.warningDark};`;\n\n case 'danger':\n case 'error':\n return `background-color: ${theme.color.dangerDark};`;\n\n case 'alert':\n case 'dark':\n return `background-color: ${theme.color.charcoal};`;\n\n default:\n return `background-color: ${theme.color.infoDark};`;\n }\n }}\n`;\n\nexport const CloseIconStyled = styled(Close).attrs(({ theme }) => ({\n fill: theme.color.white\n}))`\n height: initial;\n width: initial;\n cursor: pointer;\n`;\n\nexport const IconStyled = styled.div`\n display: none;\n\n ${media.lgUp`\n height: 24px;\n width: 40px;\n display: flex;\n justify-content: center;\n flex-direction: column;\n padding: 0 16px 0 0;\n `}\n`;\n\nexport const NotificationStyled = styled.section`\n overflow: hidden;\n transition: max-height 0.2s linear;\n color: ${({ theme }) => theme.color.white};\n margin: 0 0 1px;\n\n a {\n color: ${({ theme }) => theme.color.white};\n text-decoration: underline;\n }\n`;\n\nexport const NotificationBodyStyled = styled.div`\n align-items: center;\n display: flex;\n`;\n\nexport const NotificationContentStyled = styled.div`\n flex: 1;\n font-size: 16px;\n line-height: 1.5;\n`;\n\nexport const StopIconStyled = styled(No).attrs(({ theme }) => ({\n fill: theme.color.white\n}))`\n height: 24px;\n width: 24px;\n`;\n\nexport const SuccessIconStyled = styled(Success).attrs(({ theme }) => ({\n fill: theme.color.white,\n kind: 'solid',\n tickFillColor: 'transparent'\n}))`\n height: 24px;\n width: 24px;\n`;\n\nexport const CloseButtonStyled = styled.button`\n background: none;\n box-sizing: border-box;\n border: 0;\n flex-basis: 20px;\n height: 20px;\n outline: none;\n padding: 2px;\n`;\n","import React, { PureComponent } from 'react';\nimport PropTypes from 'prop-types';\nimport {\n CloseButtonStyled,\n CloseIconStyled,\n NotificationBodyStyled,\n NotificationContentStyled,\n NotificationStyled,\n NotificationWrapperStyled,\n IconStyled,\n StopIconStyled,\n SuccessIconStyled\n} from './styled/Notification';\n\nconst icons = {\n stop: () => ,\n success: () => \n};\n\nclass Notification extends PureComponent {\n static propTypes = {\n children: PropTypes.oneOfType([\n PropTypes.arrayOf(PropTypes.node),\n PropTypes.node\n ]).isRequired,\n className: PropTypes.string,\n closable: PropTypes.bool,\n handleClose: PropTypes.func,\n icon: PropTypes.oneOf(['stop', 'success']),\n id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n index: PropTypes.number.isRequired,\n type: PropTypes.oneOf(['success', 'notice', 'danger', 'error', 'warning', 'info', 'dark', 'alert'])\n };\n\n static defaultProps = {\n type: 'info',\n closable: true,\n icon: null,\n handleClose: () => {},\n className: ''\n };\n\n handleClose = () => {\n const { handleClose, id } = this.props;\n handleClose(id);\n };\n\n render() {\n\n const {\n children,\n handleClose,\n type,\n closable,\n icon,\n className,\n index\n } = this.props;\n\n const Icon = icons[icon];\n\n return (\n \n \n \n {Icon\n && (\n \n \n \n )}\n \n {children}\n \n {closable && (\n handleClose(index)}>\n \n \n )}\n \n \n \n );\n }\n}\n\nexport default Notification;\n","import Notification from './Notification';\n\nexport default Notification;\n","import React, { PureComponent, useEffect, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport Media from 'react-media';\nimport { Header } from '@oneflare/flarekit';\nimport { withTheme } from 'styled-components';\nimport Notification from '../Notification';\nimport { themeType } from '../../../../shared/chat/types';\n\nconst ClientHeader = (props) => {\n const [ssrDone, setSSrDone] = useState(false);\n\n useEffect(() => {\n setSSrDone(true);\n }, []);\n\n return ssrDone &&
;\n};\nclass OneflareHeader extends PureComponent {\n constructor(props) {\n super(props);\n\n this.state = {\n notifications: props.notifications\n };\n }\n\n static propTypes = {\n currentEnv: PropTypes.string,\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n closable: PropTypes.bool,\n icon: PropTypes.bool,\n id: PropTypes.string,\n message: PropTypes.string,\n type: PropTypes.string\n })\n ),\n showOpenInApp: PropTypes.bool,\n siteurl: PropTypes.string,\n theme: themeType.isRequired,\n user: PropTypes.shape({\n avatarUrl: PropTypes.string,\n creditBalance: PropTypes.shape({\n current: PropTypes.number,\n committed: PropTypes.number\n }),\n email: PropTypes.string,\n id: PropTypes.number,\n isBusiness: PropTypes.bool,\n customerModeOverride: PropTypes.bool,\n jobMessagesCount: PropTypes.node,\n name: PropTypes.string,\n firstName: PropTypes.string,\n lastName: PropTypes.string,\n quoteMessagesCount: PropTypes.node,\n unseenSupportConversationCount: PropTypes.number\n })\n };\n\n static defaultProps = {\n notifications: [],\n showOpenInApp: false,\n siteurl: '',\n currentEnv: process.env.NODE_ENV,\n user: null\n };\n\n componentDidMount() {\n window.addEventListener('message', this.handleMessage);\n }\n\n componentWillUnmount() {\n window.removeEventListener('message', this.handleMessage, true);\n }\n\n handleMessage = (event) => {\n const { data } = event;\n let notifications = this.state.notifications;\n\n if (data.ofMessageType === 'FAILED_PAYMENT_RESOLVED') {\n const newNotifications = this.state.notifications.filter((notification) => {\n return notification.id !== 'FAILED_PAYMENT';\n });\n notifications = [...notifications, ...newNotifications];\n }\n if (data.ofMessageType === 'VERIFICATION_REQUIRED' && !notifications.some(notification => notification.id === 'VERIFICATION_REQUIRED')) { \n notifications = [\n ...notifications,\n {\n id: 'VERIFICATION_REQUIRED',\n closable: true,\n message: data.message,\n type: 'warning'\n }\n ]\n }\n\n this.setState({\n notifications\n });\n };\n\n handleClose = (index) => {\n const { notifications } = this.state;\n const tempArray = [...notifications];\n tempArray.splice(index, 1);\n this.setState({ notifications: tempArray });\n };\n\n render() {\n const { showOpenInApp, siteurl, user } = this.props;\n // eslint-disable-next-line react/destructuring-assignment\n const smBreakPoint = this.props.theme.breakpoint.sm.min.split('px')[0];\n const IPHONE_X_WIDTH = smBreakPoint - 201;\n const newUser = user && {\n ...user,\n ...(user?.lastName ? { lastName: user?.lastName } : { lastName: '' })\n };\n const newProps = {\n ...this.props,\n ...(newUser && { user: newUser })\n };\n const { notifications } = this.state;\n \n return (\n
\n {notifications.map((notification, index) => (\n \n \n \n ))}\n {showOpenInApp ? (\n \n {(matches) => {\n const headerProps = {\n ...newProps,\n mobileCta: {\n label: matches ? 'Open in app' : 'Open app',\n link: `${siteurl}/oneflare-app?utm_campaign=header`\n }\n };\n return ;\n }}\n \n ) : (\n
\n )}\n
\n );\n }\n}\n\nexport default withTheme(OneflareHeader);\n","import React from 'react';\nimport app from '../app';\nimport OneflareHeader from './components/OneflareHeader/OneflareHeader';\n\nconst OneflareHeaderApp = (props, _railsContext) => (\n app()\n);\n\nexport default OneflareHeaderApp;\n","import ReactOnRails from 'react-on-rails';\nimport OneflareHeaderApp from '../site/OneflareHeader';\n\nReactOnRails.register({\n OneflareHeaderApp\n});\n","import PropTypes from 'prop-types';\n\nexport const idType = PropTypes.oneOfType([\n PropTypes.number,\n PropTypes.string\n]);\n\nexport const messageType = PropTypes.shape({\n id: idType.isRequired,\n conversationId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired,\n fromId: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n quoteId: PropTypes.number,\n tempId: PropTypes.string,\n messageType: PropTypes.string,\n header: PropTypes.string,\n isSystemMessage: PropTypes.bool.isRequired,\n content: PropTypes.string,\n rawContent: PropTypes.string,\n seen: PropTypes.bool.isRequired,\n createdAt: PropTypes.string.isRequired,\n data: PropTypes.shape({\n categories: PropTypes.arrayOf(PropTypes.shape({\n iconUrl: PropTypes.string,\n id: idType,\n name: PropTypes.string\n }))\n })\n});\n\nexport const quoteType = PropTypes.shape({\n id: idType,\n currentState: PropTypes.string,\n friendlyState: PropTypes.string,\n friendlyQuoteStatus: PropTypes.string,\n price: PropTypes.string,\n category: PropTypes.string,\n hasFeedback: PropTypes.bool\n});\n\nexport const counterpartType = PropTypes.shape({\n name: PropTypes.string.isRequired,\n avatar: PropTypes.string,\n avatarColour: PropTypes.string,\n phone: PropTypes.string\n});\n\nexport const verificationType = PropTypes.shape({\n name: PropTypes.string.isRequired,\n imageUrl: PropTypes.shape({\n inlineSvg: PropTypes.string,\n svg: PropTypes.string,\n pvg: PropTypes.string\n }),\n verifiedValue: PropTypes.string.isRequired,\n titleDescription: PropTypes.string.isRequired,\n state: PropTypes.string.isRequired,\n stateDescription: PropTypes.string.isRequired\n});\n\nexport const customerType = PropTypes.shape({\n name: PropTypes.string.isRequired,\n email: PropTypes.string.isRequired,\n phone: PropTypes.string.isRequired,\n phoneFormatted: PropTypes.string.isRequired,\n mobileVerified: PropTypes.bool.isRequired,\n emailVerified: PropTypes.bool.isRequired,\n abTestedWithHidePhoneUntilQuoteSeen: PropTypes.bool.isRequired,\n verifications: PropTypes.arrayOf(verificationType)\n});\n\nexport const conversationType = PropTypes.shape({\n id: idType.isRequired,\n numberOfUnread: PropTypes.number.isRequired,\n counterpart: counterpartType.isRequired,\n lastMessage: messageType,\n latestMessage: idType.isRequired,\n quote: quoteType.isRequired,\n isTyping: PropTypes.bool\n});\n\nexport const supportConversationType = PropTypes.shape({\n id: idType.isRequired,\n numberOfUnread: PropTypes.number.isRequired,\n counterpart: counterpartType.isRequired,\n lastMessage: messageType,\n latestMessage: idType.isRequired,\n isTyping: PropTypes.bool\n});\n\nexport const conversationRouteMatchType = PropTypes.shape({\n params: PropTypes.shape({\n conversationId: idType\n })\n});\n\nexport const conversationRouteLocationType = PropTypes.shape({\n params: PropTypes.shape({\n pathname: PropTypes.string.isRequired\n })\n});\n\nexport const conversationHistoryLocationType = PropTypes.shape({\n push: PropTypes.func\n});\n\nexport const themeType = PropTypes.shape({\n breakpoint: PropTypes.shape({\n xs: PropTypes.shape({\n min: PropTypes.string,\n max: PropTypes.string\n }),\n sm: PropTypes.shape({\n min: PropTypes.string,\n max: PropTypes.string\n }),\n md: PropTypes.shape({\n min: PropTypes.string,\n max: PropTypes.string\n }),\n lg: PropTypes.shape({\n min: PropTypes.string,\n max: PropTypes.string\n }),\n xl: PropTypes.shape({\n min: PropTypes.string\n })\n })\n});\n\nexport const conversationIdsType = PropTypes.arrayOf(PropTypes.number);\n\nexport const renderConversationInRouteType = PropTypes.shape({\n history: conversationHistoryLocationType.isRequired,\n location: conversationRouteLocationType.isRequired,\n match: conversationRouteMatchType.isRequired\n});\n\nexport const userProfileType = PropTypes.shape({\n id: idType,\n name: PropTypes.string,\n avatar: PropTypes.string,\n email: PropTypes.string,\n emailVerified: PropTypes.bool,\n mobile: PropTypes.string,\n mobileVerified: PropTypes.bool,\n userAccountLink: PropTypes.string,\n isBusiness: PropTypes.bool,\n totalJobsPosted: PropTypes.number,\n openJobs: PropTypes.arrayOf(PropTypes.shape({\n category: PropTypes.string.isRequired,\n link: PropTypes.string.isRequired\n })),\n impersonateWeb: PropTypes.string,\n authenticationToken: PropTypes.string,\n businessName: PropTypes.string,\n plan: PropTypes.string,\n creditBalance: PropTypes.string,\n accountManager: PropTypes.string,\n error: PropTypes.bool.isRequired,\n loading: PropTypes.bool.isRequired\n});\n\nexport const photosType = PropTypes.shape({\n attachments: PropTypes.arrayOf(PropTypes.shape({\n id: PropTypes.number,\n thumb: PropTypes.string,\n original: PropTypes.string\n })),\n error: PropTypes.bool,\n loading: PropTypes.bool\n});\n","/**\n * Copyright (c) 2013-present, Facebook, Inc.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n'use strict';\n\n/**\n * Use invariant() to assert state which your program assumes to be true.\n *\n * Provide sprintf-style format (only %s is supported) and arguments\n * to provide information about what broke and what you were\n * expecting.\n *\n * The invariant message will be stripped in production, but the invariant\n * will remain to ensure logic does not differ in production.\n */\n\nvar invariant = function(condition, format, a, b, c, d, e, f) {\n if (process.env.NODE_ENV !== 'production') {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n }\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error(\n 'Minified exception occurred; use the non-minified dev environment ' +\n 'for the full error message and additional helpful warnings.'\n );\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(\n format.replace(/%s/g, function() { return args[argIndex++]; })\n );\n error.name = 'Invariant Violation';\n }\n\n error.framesToPop = 1; // we don't care about invariant's own frame\n throw error;\n }\n};\n\nmodule.exports = invariant;\n","var camel2hyphen = require('string-convert/camel2hyphen');\n\nvar isDimension = function (feature) {\n var re = /[height|width]$/;\n return re.test(feature);\n};\n\nvar obj2mq = function (obj) {\n var mq = '';\n var features = Object.keys(obj);\n features.forEach(function (feature, index) {\n var value = obj[feature];\n feature = camel2hyphen(feature);\n // Add px to dimension features\n if (isDimension(feature) && typeof value === 'number') {\n value = value + 'px';\n }\n if (value === true) {\n mq += feature;\n } else if (value === false) {\n mq += 'not ' + feature;\n } else {\n mq += '(' + feature + ': ' + value + ')';\n }\n if (index < features.length-1) {\n mq += ' and '\n }\n });\n return mq;\n};\n\nvar json2mq = function (query) {\n var mq = '';\n if (typeof query === 'string') {\n return query;\n }\n // Handling array of media queries\n if (query instanceof Array) {\n query.forEach(function (q, index) {\n mq += obj2mq(q);\n if (index < query.length-1) {\n mq += ', '\n }\n });\n return mq;\n }\n // Handling single media query\n return obj2mq(query);\n};\n\nmodule.exports = json2mq;","import _extends from '@babel/runtime/helpers/esm/extends';\nimport _inheritsLoose from '@babel/runtime/helpers/esm/inheritsLoose';\nimport _assertThisInitialized from '@babel/runtime/helpers/esm/assertThisInitialized';\nimport _defineProperty from '@babel/runtime/helpers/esm/defineProperty';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport invariant from 'invariant';\nimport json2mq from 'json2mq';\n\nvar MediaQueryListener =\n/*#__PURE__*/\nfunction () {\n function MediaQueryListener(targetWindow, query, listener) {\n var _this = this;\n\n this.nativeMediaQueryList = targetWindow.matchMedia(query);\n this.active = true; // Safari doesn't clear up listener with removeListener\n // when the listener is already waiting in the event queue.\n // Having an active flag to make sure the listener is not called\n // after we removeListener.\n\n this.cancellableListener = function () {\n _this.matches = _this.nativeMediaQueryList.matches;\n\n if (_this.active) {\n listener.apply(void 0, arguments);\n }\n };\n\n this.nativeMediaQueryList.addListener(this.cancellableListener);\n this.matches = this.nativeMediaQueryList.matches;\n }\n\n var _proto = MediaQueryListener.prototype;\n\n _proto.cancel = function cancel() {\n this.active = false;\n this.nativeMediaQueryList.removeListener(this.cancellableListener);\n };\n\n return MediaQueryListener;\n}();\n\nvar queryType = PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.arrayOf(PropTypes.object.isRequired)]);\n/**\n * Conditionally renders based on whether or not a media query matches.\n */\n\nvar Media =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(Media, _React$Component);\n\n function Media(props) {\n var _this;\n\n _this = _React$Component.call(this, props) || this;\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"queries\", []);\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"getMatches\", function () {\n var result = _this.queries.reduce(function (acc, _ref) {\n var _extends2;\n\n var name = _ref.name,\n mqListener = _ref.mqListener;\n return _extends({}, acc, (_extends2 = {}, _extends2[name] = mqListener.matches, _extends2));\n }, {}); // return result;\n\n\n return unwrapSingleQuery(result);\n });\n\n _defineProperty(_assertThisInitialized(_assertThisInitialized(_this)), \"updateMatches\", function () {\n var newMatches = _this.getMatches();\n\n _this.setState(function () {\n return {\n matches: newMatches\n };\n }, _this.onChange);\n });\n\n !(!(!props.query && !props.queries) || props.query && props.queries) ? process.env.NODE_ENV !== \"production\" ? invariant(false, ' must be supplied with either \"query\" or \"queries\"') : invariant(false) : void 0;\n !(props.defaultMatches === undefined || !props.query || typeof props.defaultMatches === \"boolean\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" when query is set, defaultMatches must be a boolean, received \" + typeof props.defaultMatches) : invariant(false) : void 0;\n !(props.defaultMatches === undefined || !props.queries || typeof props.defaultMatches === \"object\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" when queries is set, defaultMatches must be a object of booleans, received \" + typeof props.defaultMatches) : invariant(false) : void 0;\n\n if (typeof window !== \"object\") {\n // In case we're rendering on the server, apply the default matches\n var matches;\n\n if (props.defaultMatches !== undefined) {\n matches = props.defaultMatches;\n } else if (props.query) {\n matches = true;\n }\n /* if (props.queries) */\n else {\n matches = Object.keys(_this.props.queries).reduce(function (acc, key) {\n var _extends3;\n\n return _extends({}, acc, (_extends3 = {}, _extends3[key] = true, _extends3));\n }, {});\n }\n\n _this.state = {\n matches: matches\n };\n return _assertThisInitialized(_this);\n }\n\n _this.initialize(); // Instead of calling this.updateMatches, we manually set the initial state to prevent\n // calling setState, which could trigger an unnecessary second render\n\n\n _this.state = {\n matches: _this.props.defaultMatches !== undefined ? _this.props.defaultMatches : _this.getMatches()\n };\n\n _this.onChange();\n\n return _this;\n }\n\n var _proto = Media.prototype;\n\n _proto.initialize = function initialize() {\n var _this2 = this;\n\n var targetWindow = this.props.targetWindow || window;\n !(typeof targetWindow.matchMedia === \"function\") ? process.env.NODE_ENV !== \"production\" ? invariant(false, \" does not support `matchMedia`.\") : invariant(false) : void 0;\n var queries = this.props.queries || wrapInQueryObject(this.props.query);\n this.queries = Object.keys(queries).map(function (name) {\n var query = queries[name];\n var qs = typeof query !== \"string\" ? json2mq(query) : query;\n var mqListener = new MediaQueryListener(targetWindow, qs, _this2.updateMatches);\n return {\n name: name,\n mqListener: mqListener\n };\n });\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.initialize(); // If props.defaultMatches has been set, ensure we trigger a two-pass render.\n // This is useful for SSR with mismatching defaultMatches vs actual matches from window.matchMedia\n // Details: https://github.com/ReactTraining/react-media/issues/81\n\n if (this.props.defaultMatches !== undefined) {\n this.updateMatches();\n }\n };\n\n _proto.onChange = function onChange() {\n var onChange = this.props.onChange;\n\n if (onChange) {\n onChange(this.state.matches);\n }\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n this.queries.forEach(function (_ref2) {\n var mqListener = _ref2.mqListener;\n return mqListener.cancel();\n });\n };\n\n _proto.render = function render() {\n var _this$props = this.props,\n children = _this$props.children,\n render = _this$props.render;\n var matches = this.state.matches;\n var isAnyMatches = typeof matches === \"object\" ? Object.keys(matches).some(function (key) {\n return matches[key];\n }) : matches;\n return render ? isAnyMatches ? render(matches) : null : children ? typeof children === \"function\" ? children(matches) : !Array.isArray(children) || children.length // Preact defaults to empty children array\n ? isAnyMatches ? // We have to check whether child is a composite component or not to decide should we\n // provide `matches` as a prop or not\n React.Children.only(children) && typeof React.Children.only(children).type === \"string\" ? React.Children.only(children) : React.cloneElement(React.Children.only(children), {\n matches: matches\n }) : null : null : null;\n };\n\n return Media;\n}(React.Component);\n/**\n * Wraps a single query in an object. This is used to provide backward compatibility with\n * the old `query` prop (as opposed to `queries`). If only a single query is passed, the object\n * will be unpacked down the line, but this allows our internals to assume an object of queries\n * at all times.\n */\n\n\n_defineProperty(Media, \"propTypes\", {\n defaultMatches: PropTypes.oneOfType([PropTypes.bool, PropTypes.objectOf(PropTypes.bool)]),\n query: queryType,\n queries: PropTypes.objectOf(queryType),\n render: PropTypes.func,\n children: PropTypes.oneOfType([PropTypes.node, PropTypes.func]),\n targetWindow: PropTypes.object,\n onChange: PropTypes.func\n});\n\nfunction wrapInQueryObject(query) {\n return {\n __DEFAULT__: query\n };\n}\n/**\n * Unwraps an object of queries, if it was originally passed as a single query.\n */\n\n\nfunction unwrapSingleQuery(queryObject) {\n var queryNames = Object.keys(queryObject);\n\n if (queryNames.length === 1 && queryNames[0] === \"__DEFAULT__\") {\n return queryObject.__DEFAULT__;\n }\n\n return queryObject;\n}\n\nexport default Media;\n","var camel2hyphen = function (str) {\n return str\n .replace(/[A-Z]/g, function (match) {\n return '-' + match.toLowerCase();\n })\n .toLowerCase();\n};\n\nmodule.exports = camel2hyphen;","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","function _getPrototypeOf(t) {\n return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {\n return t.__proto__ || Object.getPrototypeOf(t);\n }, _getPrototypeOf(t);\n}\nexport { _getPrototypeOf as default };","import setPrototypeOf from \"./setPrototypeOf.js\";\nfunction _inherits(t, e) {\n if (\"function\" != typeof e && null !== e) throw new TypeError(\"Super expression must either be null or a function\");\n t.prototype = Object.create(e && e.prototype, {\n constructor: {\n value: t,\n writable: !0,\n configurable: !0\n }\n }), Object.defineProperty(t, \"prototype\", {\n writable: !1\n }), e && setPrototypeOf(t, e);\n}\nexport { _inherits as default };","import _typeof from \"./typeof.js\";\nimport assertThisInitialized from \"./assertThisInitialized.js\";\nfunction _possibleConstructorReturn(t, e) {\n if (e && (\"object\" == _typeof(e) || \"function\" == typeof e)) return e;\n if (void 0 !== e) throw new TypeError(\"Derived constructors may only return object or undefined\");\n return assertThisInitialized(t);\n}\nexport { _possibleConstructorReturn as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","function _taggedTemplateLiteral(e, t) {\n return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {\n raw: {\n value: Object.freeze(t)\n }\n }));\n}\nexport { _taggedTemplateLiteral as default };","import arrayWithoutHoles from \"./arrayWithoutHoles.js\";\nimport iterableToArray from \"./iterableToArray.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableSpread from \"./nonIterableSpread.js\";\nfunction _toConsumableArray(r) {\n return arrayWithoutHoles(r) || iterableToArray(r) || unsupportedIterableToArray(r) || nonIterableSpread();\n}\nexport { _toConsumableArray as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _arrayWithoutHoles(r) {\n if (Array.isArray(r)) return arrayLikeToArray(r);\n}\nexport { _arrayWithoutHoles as default };","function _iterableToArray(r) {\n if (\"undefined\" != typeof Symbol && null != r[Symbol.iterator] || null != r[\"@@iterator\"]) return Array.from(r);\n}\nexport { _iterableToArray as default };","function _nonIterableSpread() {\n throw new TypeError(\"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableSpread as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };"],"names":["NotificationWrapperStyled","styled","div","withConfig","displayName","componentId","_ref","theme","color","white","media","lgUp","_templateObject","_taggedTemplateLiteral","_ref2","kind","concat","successDark","warningDark","dangerDark","charcoal","infoDark","CloseIconStyled","Close","attrs","_ref3","fill","IconStyled","_templateObject2","NotificationStyled","section","_ref4","_ref5","NotificationBodyStyled","NotificationContentStyled","StopIconStyled","No","_ref6","SuccessIconStyled","Success","_ref7","tickFillColor","CloseButtonStyled","button","icons","stop","React","success","Notification","_PureComponent","_this","_classCallCheck","_len","arguments","length","args","Array","_key","_callSuper","handleClose","_this$props","props","id","_inherits","_createClass","key","value","_this$props2","this","children","type","closable","icon","className","index","Icon","onClick","PureComponent","defaultProps","ClientHeader","_useState","useState","_useState2","_slicedToArray","ssrDone","setSSrDone","useEffect","Header","_extends","withCobranding","OneflareHeader","handleMessage","event","data","notifications","state","ofMessageType","newNotifications","filter","notification","_toConsumableArray","some","message","setState","tempArray","splice","window","addEventListener","removeEventListener","_this2","showOpenInApp","siteurl","user","IPHONE_X_WIDTH","breakpoint","sm","min","split","newUser","_objectSpread","lastName","newProps","map","dangerouslySetInnerHTML","__html","Media","query","matches","headerProps","mobileCta","label","link","currentEnv","process","withTheme","_railsContext","app","ReactOnRails","OneflareHeaderApp","idType","PropTypes","messageType","isRequired","conversationId","fromId","quoteId","tempId","header","isSystemMessage","content","rawContent","seen","createdAt","categories","iconUrl","name","quoteType","currentState","friendlyState","friendlyQuoteStatus","price","category","hasFeedback","counterpartType","avatar","avatarColour","phone","verificationType","imageUrl","inlineSvg","svg","pvg","verifiedValue","titleDescription","stateDescription","conversationRouteMatchType","email","phoneFormatted","mobileVerified","emailVerified","abTestedWithHidePhoneUntilQuoteSeen","verifications","numberOfUnread","counterpart","lastMessage","latestMessage","quote","isTyping","params","conversationRouteLocationType","pathname","conversationHistoryLocationType","push","xs","max","md","lg","xl","history","location","match","mobile","userAccountLink","isBusiness","totalJobsPosted","openJobs","impersonateWeb","authenticationToken","businessName","plan","creditBalance","accountManager","error","loading","attachments","thumb","original","module","exports","condition","format","a","b","c","d","e","f","undefined","Error","argIndex","replace","framesToPop","camel2hyphen","obj2mq","obj","mq","features","Object","keys","forEach","feature","test","isDimension","q","MediaQueryListener","targetWindow","listener","nativeMediaQueryList","matchMedia","active","cancellableListener","apply","addListener","prototype","cancel","removeListener","queryType","_React$Component","call","queryObject","queryNames","__DEFAULT__","unwrapSingleQuery","queries","reduce","acc","_extends2","mqListener","newMatches","getMatches","onChange","defaultMatches","_extends3","initialize","_proto","qs","updateMatches","componentDidMount","componentWillUnmount","render","isAnyMatches","isArray","only","str","toLowerCase","_arrayLikeToArray","r","n","_getPrototypeOf","t","setPrototypeOf","getPrototypeOf","bind","__proto__","TypeError","create","constructor","writable","configurable","defineProperty","_possibleConstructorReturn","l","Symbol","iterator","i","u","o","next","done","unsupportedIterableToArray","slice","freeze","defineProperties","raw","arrayLikeToArray","from","_unsupportedIterableToArray","toString"],"sourceRoot":""}