{"version":3,"sources":["containers/ContactPage/index.js","components/Img/index.js","../node_modules/react-wufoo-embed/lib/ReactWufooEmbed.js","styles/svg-components/ContactTabGeneral.js","styles/svg-components/ContactTabCustom.js","styles/svg-components/ContactTabSuggestion.js","styles/svg-components/ContactTabArtist.js"],"names":["WufooForm","require","ContactPage","props","state","tab","onTabChange","bind","showTabFromParams","tabName","this","setState","formName","params","dripFormName","drip","$","window","width","document","documentElement","body","animate","scrollTop","offset","top","nextProps","newFormName","paragraphText","emailSubject","style","marginBottom","href","showWufooForm","includes","country","id","className","rel","name","content","backgroundImage","color","maxWidth","to","onClick","e","handleOnClick","userName","formHash","getFallbackContent","ignorePreformContent","React","Component","mapDispatchToProps","dispatch","connect","get","Img","src","alt","Object","defineProperty","exports","value","_createClass","defineProperties","target","i","length","descriptor","enumerable","configurable","writable","key","Constructor","protoProps","staticProps","prototype","_interopRequireDefault","obj","__esModule","_react2","_propTypes2","Wufoo","_React$Component","instance","TypeError","_classCallCheck","_x","_x2","_x3","_again","object","property","receiver","Function","desc","getOwnPropertyDescriptor","undefined","getter","call","parent","getPrototypeOf","_get","getSrc","embedForm","runScript","createScript","subClass","superClass","create","constructor","setPrototypeOf","__proto__","_inherits","host","embedJs","form","rs","readyState","initialize","display","self","s","createElement","onload","onreadystatechange","scr","getElementsByTagName","parentNode","insertBefore","propTypes","async","bool","autoResize","defaultValues","string","isRequired","header","oneOf","height","ssl","defaultProps","module","ContactTabGeneral","ContactTabCustom","ContactTabSuggestion","ContactTabArtist"],"mappings":"2VAqBMA,EAAYC,EAAQ,KAEpBC,E,kDACJ,WAAYC,GAAQ,IAAD,8BACjB,cAAMA,IACDC,MAAQ,CACXC,IAAK,IAGP,EAAKC,YAAc,EAAKA,YAAYC,KAAjB,gBACnB,EAAKC,kBAAoB,EAAKA,kBAAkBD,KAAvB,gBAPR,E,+CAUnB,SAAYE,GACNA,IAAYC,KAAKN,MAAMC,KACzBK,KAAKC,SAAS,CAAEN,IAAKI,M,+BAIzB,W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AoCI,OACI,cAAC,IAAD,CAAWxF,IApCW,w6P,GAFCP,IAAMC,WA2C1B8F,O,yGC3CTC,E,4JACF,WAsCI,OACI,cAAC,IAAD,CAAWzF,IAtCO,snV,GAFCP,IAAMC,WA6CtB+F","file":"static/js/18.chunk.js?hash=aadf0f2c","sourcesContent":["/*\n * About Page\n *\n *\n */\n\nimport React from \"react\";\nimport Helmet from \"react-helmet\";\nimport PropTypes from \"prop-types\";\nimport A from \"../../components/A\";\nimport { connect } from \"react-redux\";\nimport { createStructuredSelector } from \"reselect\";\nimport { Link } from \"react-router\";\nimport ContactTabGeneral from \"styles/svg-components/ContactTabGeneral.js\";\nimport ContactTabCustom from \"styles/svg-components/ContactTabCustom.js\";\nimport ContactTabSuggestion from \"styles/svg-components/ContactTabSuggestion.js\";\nimport ContactTabArtist from \"styles/svg-components/ContactTabArtist.js\";\nimport { drip } from \"utils/drip\";\n\nimport Img from \"components/Img\";\nimport ArtistApplicationForm from \"../../components/ArtistApplications/ArtistApplicationForm\";\nconst WufooForm = require(\"react-wufoo-embed\");\n\nclass ContactPage extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n tab: \"\",\n };\n\n this.onTabChange = this.onTabChange.bind(this);\n this.showTabFromParams = this.showTabFromParams.bind(this);\n }\n\n onTabChange(tabName) {\n if (tabName !== this.state.tab) {\n this.setState({ tab: tabName });\n }\n }\n\n showTabFromParams(formName = this.props.params.formName) {\n if (formName) {\n let dripFormName = \"\";\n\n switch (formName) {\n case \"general-enquiry\":\n case \"general-inquiry\":\n dripFormName = \"General Inquiry\";\n this.onTabChange(\"form-1\");\n break;\n case \"custom-license\":\n dripFormName = \"Custom License\";\n this.onTabChange(\"form-2\");\n break;\n case \"suggestion-service\":\n dripFormName = \"Suggestion Service\";\n this.onTabChange(\"form-3\");\n break;\n case \"artist-application\":\n dripFormName = \"Artist Application\";\n this.onTabChange(\"form-4\");\n break;\n default:\n break;\n }\n\n drip(\"Visited Contact Us Form\", dripFormName);\n } else {\n drip(\"Visited Contact Us\");\n }\n }\n\n handleOnClick() {\n if ($(window).width() <= 768) {\n $([document.documentElement, document.body]).animate(\n {\n scrollTop: $(\"#contact-container\").offset().top - 50,\n },\n 1000\n );\n }\n }\n\n componentDidMount() {\n this.showTabFromParams();\n }\n\n componentWillReceiveProps(nextProps) {\n const { formName } = this.props.params;\n const newFormName = nextProps.params.formName;\n if (formName !== newFormName) this.showTabFromParams(newFormName);\n }\n\n getFallbackContent(paragraphText, emailSubject) {\n return (\n <>\n

{paragraphText}

\n
\n \n support@musicvine.com\n \n
\n \n );\n }\n\n render() {\n const wufooExcludedCountries = [\n // 238, 239, // UK, US for testing\n\n 58, // Cuba\n 167, // North Korea\n 108, // Iran\n 214,\n 207, // Sudan\n // DR: Not sure if this includes South Sudan so I've just added it to be safe\n 220, // Syria\n 236, // The Donetsk, Luhansk, Kherson and Zaporizhzhya regions of Ukraine\n // DR: Adding all of Ukraine here to be safe\n 186, // Russia\n 22, // Belarus\n ];\n const showWufooForm = !wufooExcludedCountries.includes(\n this.props.country.id\n );\n\n return (\n
\n \n \n Contact Us • Music Vine\n \n \n {/* Start of contact options */}\n
\n
\n

\n Contact us\n

\n \n What can we help you with?\n

\n\n
\n \n
\n this.handleOnClick()}\n id=\"form-1\"\n >\n \n \n
\n
\n this.handleOnClick()}\n id=\"form-2\"\n >\n \n \n
\n
\n this.handleOnClick()}\n id=\"form-3\"\n >\n \n \n
\n
\n this.handleOnClick()}\n id=\"form-4\"\n >\n \n \n
\n
\n this.handleOnClick()}\n id=\"form-1\"\n >\n General Inquiry\n \n
\n
\n this.handleOnClick()}\n id=\"form-2\"\n >\n Custom License\n \n
\n
\n this.handleOnClick()}\n id=\"form-3\"\n >\n Suggestion Service\n \n
\n
\n this.handleOnClick()}\n id=\"form-4\"\n >\n Artist Application\n \n
\n
\n
\n
\n
\n
\n {/* End of contact options */}\n\n {/* Start of about */}\n
\n
\n {this.state.tab == \"form-1\" && (\n
\n

General Inquiry

\n

\n Have a question about an order, your account or anything else?\n

\n {showWufooForm ? (\n <>\n

\n Please fill out the form below and we'll get back to you\n as soon as possible.\n

\n \n \n ) : (\n this.getFallbackContent(\n \"Please email us at the address below and we'll get back to you as soon as possible.\",\n \"General Inquiry\"\n )\n )}{\" \"}\n {/* Contact Us */}\n
\n )}\n {this.state.tab == \"form-2\" && (\n
\n

Custom License

\n

\n Whether you have a series, multi-use requirement or multimedia\n project, we offer cost-effective custom licenses to cover\n productions of all shapes and sizes.\n

\n {showWufooForm ? (\n <>\n

\n To receive a quote, please complete our custom license\n request form below and we’ll get right back to you!\n

\n

\n \n Note: the minimum starting price for a custom license is\n $150.\n \n

\n \n \n ) : (\n this.getFallbackContent(\n \"To receive a quote, please email us at the address below and we’ll get right back to you!\",\n \"Custom License Request\"\n )\n )}{\" \"}\n {/* Custom License Request */}\n
\n )}\n {this.state.tab == \"form-3\" && (\n
\n

Suggestion Service

\n

\n Searching for the right music can be a time-consuming process.\n Our free suggestion service means that you can leave the\n music-hunting in our hands.{\" \"}\n

\n {showWufooForm ? (\n <>\n

\n To make a suggestion request, please just complete the\n form below. The more specific you can be about your\n requirements, the more we’ll be able to hone in and\n suggest the most suitable music.\n

\n \n \n ) : (\n this.getFallbackContent(\n \"To make a suggestion request, please get in touch using the email address below. The more specific you can be about your requirements, the more we’ll be able to hone in and suggest the most suitable music.\",\n \"Suggesion Service Request\"\n )\n )}{\" \"}\n {/* Music Suggestion Service */}\n
\n )}\n\n {this.state.tab === \"form-4\" && (\n
\n \n {/* Artist Application */}\n
\n )}\n
\n
\n
\n );\n }\n}\n\nContactPage.propTypes = {\n params: PropTypes.object,\n};\n\nexport function mapDispatchToProps(dispatch) {\n return {};\n}\n\n// Map redux states to local props.\nconst mapStateToProps = (state) => ({\n country: state.get(\"country\"),\n});\n\n// Wrap the component to inject dispatch and state into it\nexport default connect(mapStateToProps, mapDispatchToProps)(ContactPage);\n","/**\n *\n * Img.react.js\n *\n * Renders an image, enforcing the usage of the alt=\"\" tag\n */\n\nimport React from 'react';\nimport PropTypes from 'prop-types';\n\nfunction Img(props) {\n return (\n {props.alt}\n );\n}\n\n// We require the use of src and alt, only enforced by react in dev mode\nImg.propTypes = {\n src: PropTypes.oneOfType([\n PropTypes.string,\n PropTypes.object,\n ]).isRequired,\n alt: PropTypes.string.isRequired,\n className: PropTypes.string,\n};\n\nexport default Img;\n","'use strict';\n\nObject.defineProperty(exports, '__esModule', {\n value: true\n});\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 _get = function get(_x, _x2, _x3) { var _again = true; _function: while (_again) { var object = _x, property = _x2, receiver = _x3; _again = false; if (object === null) object = Function.prototype; var desc = Object.getOwnPropertyDescriptor(object, property); if (desc === undefined) { var parent = Object.getPrototypeOf(object); if (parent === null) { return undefined; } else { _x = parent; _x2 = property; _x3 = receiver; _again = true; desc = parent = undefined; continue _function; } } else if ('value' in desc) { return desc.value; } else { var getter = desc.get; if (getter === undefined) { return undefined; } return getter.call(receiver); } } };\n\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }\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 _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _propTypes = require('prop-types');\n\nvar _propTypes2 = _interopRequireDefault(_propTypes);\n\nvar Wufoo = (function (_React$Component) {\n _inherits(Wufoo, _React$Component);\n\n function Wufoo(props) {\n _classCallCheck(this, Wufoo);\n\n _get(Object.getPrototypeOf(Wufoo.prototype), 'constructor', this).call(this, props);\n this.getSrc = this.getSrc.bind(this);\n this.embedForm = this.embedForm.bind(this);\n this.runScript = this.runScript.bind(this);\n this.createScript = this.createScript.bind(this);\n }\n\n /**\n * Get the full url of the embed src\n * @return {string} URL of embed\n */\n\n _createClass(Wufoo, [{\n key: 'getSrc',\n value: function getSrc() {\n return 'https://www.' + this.props.host + this.props.embedJs;\n }\n\n /**\n * Run the Embed Code\n */\n }, {\n key: 'embedForm',\n value: function embedForm() {\n var self = this;\n var form = undefined;\n var rs = this.readyState;\n if (rs && rs !== 'complete' && rs !== 'loaded') {\n return;\n }\n try {\n form = new window.WufooForm();\n form.initialize(self.props);\n form.display();\n } catch (e) {\n throw e;\n }\n }\n }, {\n key: 'runScript',\n value: function runScript() {\n return typeof window.WufooForm !== 'function' ? this.createScript() : this.embedForm();\n }\n\n /**\n * Load the Wufoo Embed JS file\n * @return {Object} script object created\n */\n }, {\n key: 'createScript',\n value: function createScript() {\n var self = this;\n var s = document.createElement('script');\n s.src = this.getSrc();\n s.onload = s.onreadystatechange = function () {\n return self.embedForm();\n };\n var scr = document.getElementsByTagName('script')[0];\n var par = scr.parentNode;\n par.insertBefore(s, scr);\n return scr;\n }\n }, {\n key: 'componentDidUpdate',\n value: function componentDidUpdate() {\n this.runScript();\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n this.runScript();\n }\n }, {\n key: 'render',\n value: function render() {\n return _react2['default'].createElement('div', { id: 'wufoo-' + this.props.formHash });\n }\n }]);\n\n return Wufoo;\n})(_react2['default'].Component);\n\nWufoo.propTypes = {\n async: _propTypes2['default'].bool,\n autoResize: _propTypes2['default'].bool,\n defaultValues: _propTypes2['default'].string,\n embedJs: _propTypes2['default'].string,\n formHash: _propTypes2['default'].string.isRequired,\n header: _propTypes2['default'].oneOf(['show', 'hide']),\n height: _propTypes2['default'].string,\n host: _propTypes2['default'].string,\n ssl: _propTypes2['default'].bool,\n userName: _propTypes2['default'].string.isRequired\n};\n\nWufoo.defaultProps = {\n async: true,\n autoResize: true,\n embedJs: '/scripts/embed/form.js',\n defaultValues: '',\n formHash: '',\n header: 'show',\n height: '0',\n host: 'wufoo.com',\n ssl: true,\n userName: ''\n};\n\nexports['default'] = Wufoo;\nmodule.exports = exports['default'];","import React from \"react\";\nimport InlineSVG from 'svg-inline-react';\n\nclass ContactTabGeneral extends React.Component {\n render() {\n const ContactTabGeneral = `\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`;\n return (\n \n );\n }\n}\n\nexport default ContactTabGeneral;\n","import React from \"react\";\nimport InlineSVG from 'svg-inline-react';\n\nclass ContactTabCustom extends React.Component {\n render() {\n const ContactTabCustom = `\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`;\n return (\n \n );\n }\n}\n\nexport default ContactTabCustom;\n","import React from \"react\";\nimport InlineSVG from 'svg-inline-react';\n\nclass ContactTabSuggestion extends React.Component {\n render() {\n const ContactTabSuggestion = `\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`;\n return (\n \n );\n }\n}\n\nexport default ContactTabSuggestion;\n","import React from \"react\";\nimport InlineSVG from 'svg-inline-react';\n\nclass ContactTabArtist extends React.Component {\n render() {\n const ContactTabArtist = `\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n`;\n return (\n \n );\n }\n}\n\nexport default ContactTabArtist;\n"],"sourceRoot":""}