{"version":3,"sources":["../../../node_modules/react-intercom/node_modules/prop-types/index.js","../../../node_modules/react-intercom/node_modules/prop-types/factoryWithThrowingShims.js","../../../node_modules/fbjs/lib/emptyFunction.js","../../../node_modules/fbjs/lib/invariant.js","../../../node_modules/react-intercom/lib/index.js"],"names":["module","exports","require","emptyFunction","invariant","shim","getShim","isRequired","ReactPropTypes","array","bool","func","number","object","string","symbol","any","arrayOf","element","instanceOf","node","objectOf","oneOf","oneOfType","shape","checkPropTypes","PropTypes","makeEmptyFunction","arg","thatReturns","thatReturnsFalse","thatReturnsTrue","thatReturnsNull","thatReturnsThis","this","thatReturnsArgument","condition","format","a","b","c","d","e","f","error","undefined","Error","args","argIndex","replace","name","framesToPop","Object","defineProperty","value","IntercomAPI","_extends","assign","target","i","arguments","length","source","key","prototype","hasOwnProperty","call","_createClass","defineProperties","props","descriptor","enumerable","configurable","writable","Constructor","protoProps","staticProps","_react","_propTypes2","_interopRequireDefault","obj","__esModule","default","_objectWithoutProperties","keys","indexOf","_possibleConstructorReturn","self","ReferenceError","canUseDOM","window","document","createElement","Intercom","_len","Array","_key","apply","console","warn","_Component","instance","TypeError","_classCallCheck","_this","__proto__","getPrototypeOf","appID","otherProps","w","id","s","x","q","push","async","src","head","appendChild","intercomSettings","app_id","subClass","superClass","create","constructor","setPrototypeOf","_inherits","nextProps","loggedIn","email","user_id","Component","propTypes","displayName"],"mappings":"8FA4BEA,EAAOC,QAAUC,EAAQ,KAARA,I,kCCjBnB,IAAIC,EAAgBD,EAAQ,MACxBE,EAAYF,EAAQ,MAExBF,EAAOC,QAAU,WAGf,SAASI,IACPD,GACE,EACA,mLAMJ,SAASE,IACP,OAAOD,EAFTA,EAAKE,WAAaF,EAIlB,IAAIG,EAAiB,CACnBC,MAAOJ,EACPK,KAAML,EACNM,KAAMN,EACNO,OAAQP,EACRQ,OAAQR,EACRS,OAAQT,EACRU,OAAQV,EAERW,IAAKX,EACLY,QAASX,EACTY,QAASb,EACTc,WAAYb,EACZc,KA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AAWnC,KAAK8F,SAASD,IAE9CrC,OAAOG,SAAS,YAChBH,OAAOG,SAAS,OAAQe,IAExBlB,OAAOG,SAAS,SAAUe,OAI/B,CACD7C,IAAK,wBACLT,MAAO,WACL,OAAO,IAER,CACDS,IAAK,uBACLT,MAAO,WACL,IAAKmC,IAAcC,OAAOG,SAAU,OAAO,EAE3CH,OAAOG,SAAS,mBAETH,OAAOG,gBACPH,OAAO6B,mBAEf,CACDxD,IAAK,WACLT,MAAO,SAAkBe,GACvB,OAAOA,EAAM4D,OAAS5D,EAAM6D,UAE7B,CACDnE,IAAK,SACLT,MAAO,WACL,OAAO,MAIJuC,EAvFM,CAwFbhB,EAAOsD,YAETtC,EAASuC,UAAY,CACnBzB,MAAO7B,EAAYI,QAAQpE,OAAOP,YAEpCsF,EAASwC,YAAc,WACvBpI,EAAQiF,QAAUW","file":"static/js/6.f8167e8f.chunk.js","sourcesContent":["/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\nif (process.env.NODE_ENV !== 'production') {\n var REACT_ELEMENT_TYPE = (typeof Symbol === 'function' &&\n Symbol.for &&\n Symbol.for('react.element')) ||\n 0xeac7;\n\n var isValidElement = function(object) {\n return typeof object === 'object' &&\n object !== null &&\n object.$$typeof === REACT_ELEMENT_TYPE;\n };\n\n // By explicitly using `prop-types` you are opting into new development behavior.\n // http://fb.me/prop-types-in-prod\n var throwOnDirectAccess = true;\n module.exports = require('./factoryWithTypeCheckers')(isValidElement, throwOnDirectAccess);\n} else {\n // By explicitly using `prop-types` you are opting into new production behavior.\n // http://fb.me/prop-types-in-prod\n module.exports = require('./factoryWithThrowingShims')();\n}\n","/**\n * Copyright 2013-present, Facebook, Inc.\n * All rights reserved.\n *\n * This source code is licensed under the BSD-style license found in the\n * LICENSE file in the root directory of this source tree. An additional grant\n * of patent rights can be found in the PATENTS file in the same directory.\n */\n\n'use strict';\n\nvar emptyFunction = require('fbjs/lib/emptyFunction');\nvar invariant = require('fbjs/lib/invariant');\n\nmodule.exports = function() {\n // Important!\n // Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.\n function shim() {\n invariant(\n false,\n 'Calling PropTypes validators directly is not supported by the `prop-types` package. ' +\n 'Use PropTypes.checkPropTypes() to call them. ' +\n 'Read more at http://fb.me/use-check-prop-types'\n );\n };\n shim.isRequired = shim;\n function getShim() {\n return shim;\n };\n var ReactPropTypes = {\n array: shim,\n bool: shim,\n func: shim,\n number: shim,\n object: shim,\n string: shim,\n symbol: shim,\n\n any: shim,\n arrayOf: getShim,\n element: shim,\n instanceOf: getShim,\n node: shim,\n objectOf: getShim,\n oneOf: getShim,\n oneOfType: getShim,\n shape: getShim\n };\n\n ReactPropTypes.checkPropTypes = emptyFunction;\n ReactPropTypes.PropTypes = ReactPropTypes;\n\n return ReactPropTypes;\n};\n","\"use strict\";\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 */\n\nfunction makeEmptyFunction(arg) {\n return function () {\n return arg;\n };\n}\n\n/**\n * This function accepts and discards inputs; it has no side effects. This is\n * primarily useful idiomatically for overridable function endpoints which\n * always need to be callable, since JS lacks a null-call idiom ala Cocoa.\n */\nvar emptyFunction = function emptyFunction() {};\n\nemptyFunction.thatReturns = makeEmptyFunction;\nemptyFunction.thatReturnsFalse = makeEmptyFunction(false);\nemptyFunction.thatReturnsTrue = makeEmptyFunction(true);\nemptyFunction.thatReturnsNull = makeEmptyFunction(null);\nemptyFunction.thatReturnsThis = function () {\n return this;\n};\nemptyFunction.thatReturnsArgument = function (arg) {\n return arg;\n};\n\nmodule.exports = emptyFunction;","/**\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\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 validateFormat = function validateFormat(format) {};\n\nif (process.env.NODE_ENV !== 'production') {\n validateFormat = function validateFormat(format) {\n if (format === undefined) {\n throw new Error('invariant requires an error message argument');\n }\n };\n}\n\nfunction invariant(condition, format, a, b, c, d, e, f) {\n validateFormat(format);\n\n if (!condition) {\n var error;\n if (format === undefined) {\n error = new Error('Minified exception occurred; use the non-minified dev environment ' + 'for the full error message and additional helpful warnings.');\n } else {\n var args = [a, b, c, d, e, f];\n var argIndex = 0;\n error = new Error(format.replace(/%s/g, function () {\n 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;","'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.IntercomAPI = undefined;\n\nvar _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\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\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\nvar canUseDOM = !!(typeof window !== 'undefined' && window.document && window.document.createElement);\n\nvar IntercomAPI = exports.IntercomAPI = function IntercomAPI() {\n for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {\n args[_key] = arguments[_key];\n }\n\n if (canUseDOM && window.Intercom) {\n window.Intercom.apply(null, args);\n } else {\n console.warn('Intercom not initialized yet');\n }\n};\n\nvar Intercom = function (_Component) {\n _inherits(Intercom, _Component);\n\n function Intercom(props) {\n _classCallCheck(this, Intercom);\n\n var _this = _possibleConstructorReturn(this, (Intercom.__proto__ || Object.getPrototypeOf(Intercom)).call(this, props));\n\n var appID = props.appID,\n otherProps = _objectWithoutProperties(props, ['appID']);\n\n if (!appID || !canUseDOM) {\n return _possibleConstructorReturn(_this);\n }\n\n if (!window.Intercom) {\n (function (w, d, id, s, x) {\n function i() {\n i.c(arguments);\n }\n i.q = [];\n i.c = function (args) {\n i.q.push(args);\n };\n w.Intercom = i;\n s = d.createElement('script');\n s.async = 1;\n s.src = 'https://widget.intercom.io/widget/' + id;\n d.head.appendChild(s);\n })(window, document, appID);\n }\n\n window.intercomSettings = _extends({}, otherProps, { app_id: appID });\n\n if (window.Intercom) {\n window.Intercom('boot', otherProps);\n }\n return _this;\n }\n\n _createClass(Intercom, [{\n key: 'componentWillReceiveProps',\n value: function componentWillReceiveProps(nextProps) {\n var appID = nextProps.appID,\n otherProps = _objectWithoutProperties(nextProps, ['appID']);\n\n if (!canUseDOM) return;\n\n window.intercomSettings = _extends({}, otherProps, { app_id: appID });\n\n if (window.Intercom) {\n if (this.loggedIn(this.props) && !this.loggedIn(nextProps)) {\n // Shutdown and boot each time the user logs out to clear conversations\n window.Intercom('shutdown');\n window.Intercom('boot', otherProps);\n } else {\n window.Intercom('update', otherProps);\n }\n }\n }\n }, {\n key: 'shouldComponentUpdate',\n value: function shouldComponentUpdate() {\n return false;\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {\n if (!canUseDOM || !window.Intercom) return false;\n\n window.Intercom('shutdown');\n\n delete window.Intercom;\n delete window.intercomSettings;\n }\n }, {\n key: 'loggedIn',\n value: function loggedIn(props) {\n return props.email || props.user_id;\n }\n }, {\n key: 'render',\n value: function render() {\n return false;\n }\n }]);\n\n return Intercom;\n}(_react.Component);\n\nIntercom.propTypes = {\n appID: _propTypes2.default.string.isRequired\n};\nIntercom.displayName = 'Intercom';\nexports.default = Intercom;"],"sourceRoot":""}