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ubspot-form/dist/index.js","webpack://landbay/./src/templates/page-webinar.js"],"sourcesContent":["'use strict';\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\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\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\nvar _react = require('react');\n\nvar _react2 = _interopRequireDefault(_react);\n\nvar _reactDom = require('react-dom');\n\nvar _reactDom2 = _interopRequireDefault(_reactDom);\n\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\n\nfunction _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}\n\nfunction _possibleConstructorReturn(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\nfunction _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);\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\nvar globalId = 0;\n\nvar HubspotForm = function (_React$Component) {\n _inherits(HubspotForm, _React$Component);\n\n function HubspotForm(props) {\n _classCallCheck(this, HubspotForm);\n\n var _this = _possibleConstructorReturn(this, (HubspotForm.__proto__ || Object.getPrototypeOf(HubspotForm)).call(this, props));\n\n _this.state = {\n loaded: false\n };\n _this.id = globalId++;\n _this.createForm = _this.createForm.bind(_this);\n _this.findFormElement = _this.findFormElement.bind(_this);\n return _this;\n }\n\n _createClass(HubspotForm, [{\n key: 'createForm',\n value: function createForm() {\n var _this2 = this;\n\n if (window.hbspt) {\n // protect against component unmounting before window.hbspt is available\n if (this.el === null) {\n return;\n }\n\n var props = _extends({}, this.props);\n\n delete props.loading;\n delete props.onSubmit;\n delete props.onReady;\n\n var options = _extends({}, props, {\n target: '#' + this.el.getAttribute('id'),\n onFormSubmit: function onFormSubmit($form) {\n // ref: https://developers.hubspot.com/docs/methods/forms/advanced_form_options\n var formData = $form.serializeArray();\n\n _this2.props.onSubmit(formData);\n }\n });\n\n window.hbspt.forms.create(options);\n return true;\n } else {\n setTimeout(this.createForm, 1);\n }\n }\n }, {\n key: 'loadScript',\n value: function loadScript() {\n var _this3 = this;\n\n var script = document.createElement('script');\n script.defer = true;\n\n script.onload = function () {\n _this3.createForm();\n\n _this3.findFormElement();\n };\n\n script.src = '//js.hsforms.net/forms/v2.js';\n document.head.appendChild(script);\n }\n }, {\n key: 'findFormElement',\n value: function findFormElement() {\n // protect against component unmounting before form is added\n if (this.el === null) {\n return;\n }\n\n var form = this.el.querySelector('iframe');\n\n if (form) {\n this.setState({\n loaded: true\n });\n\n if (this.props.onReady) {\n this.props.onReady(form);\n }\n } else {\n setTimeout(this.findFormElement, 1);\n }\n }\n }, {\n key: 'componentDidMount',\n value: function componentDidMount() {\n if (!window.hbspt && !this.props.noScript) {\n this.loadScript();\n } else {\n this.createForm();\n this.findFormElement();\n }\n }\n }, {\n key: 'componentWillUnmount',\n value: function componentWillUnmount() {}\n }, {\n key: 'render',\n value: function render() {\n var _this4 = this;\n\n return _react2.default.createElement('div', null, _react2.default.createElement('div', {\n ref: function ref(el) {\n return _this4.el = el;\n },\n id: 'reactHubspotForm' + this.id,\n style: {\n display: this.state.loaded ? 'block' : 'none'\n }\n }), !this.state.loaded && this.props.loading);\n }\n }]);\n\n return HubspotForm;\n}(_react2.default.Component);\n\nexports.default = HubspotForm;\nmodule.exports = exports['default'];","import React from \"react\"\nimport { graphql } from \"gatsby\"\nimport Layout from '../components/Layout' \nimport Hero from '../components/widgets/Hero' \nimport Widgets from '../components/widgets/Widgets' \nimport Seo from 'gatsby-plugin-wpgraphql-seo';\nimport HubspotForm from 'react-hubspot-form'\nimport { GatsbyImage, getImage } from \"gatsby-plugin-image\"\n\nexport default function WebinarPage({ data }) {\n const page = data.allWpPage.nodes[0];\n const form = page.webinar?.form;\n const speakers = page.webinar?.speakers;\n\n // get first paragraph\n const matches = [];\n page.content.replace(/
(.*?)<\\/p>/g, function () {\n //use arguments[0] if you need to keep
html tags\n matches.push(arguments[0]);\n });\n\n const firstParagraph = (matches.length && page.content.indexOf(matches[0])===1) ? matches[0] : \"\";\n const content = (firstParagraph==='') ? page.content : page.content.replace(firstParagraph, '');\n\n return (\n