@mjhls/mjh-framework 1.0.811 → 1.0.813
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cjs/AD300x250.js +1 -1
- package/dist/cjs/AD300x250x600.js +1 -1
- package/dist/cjs/AD728x90.js +1 -1
- package/dist/cjs/ADFloatingFooter.js +1 -1
- package/dist/cjs/ADGutter.js +1 -1
- package/dist/cjs/ADSkyscraper.js +1 -1
- package/dist/cjs/ADSponsoredResources.js +1 -1
- package/dist/cjs/ADWebcast.js +1 -1
- package/dist/cjs/ADWelcome.js +1 -1
- package/dist/cjs/AdSlot.js +1 -1
- package/dist/cjs/AlgoliaSearch.js +2 -2
- package/dist/cjs/AlphabeticList.js +1 -1
- package/dist/cjs/ArticleCarousel.js +1 -1
- package/dist/cjs/ArticleProgramLandingPage.js +3 -3
- package/dist/cjs/ArticleSeriesLandingPage.js +4 -4
- package/dist/cjs/ArticleSeriesListing.js +2 -2
- package/dist/cjs/Auth.js +5 -322
- package/dist/cjs/AuthWrapper.js +725 -0
- package/dist/cjs/Column3.js +1 -1
- package/dist/cjs/DeckContent.js +3 -3
- package/dist/cjs/DeckQueue.js +2 -2
- package/dist/cjs/EventsDeck.js +1 -1
- package/dist/cjs/ExternalResources.js +3 -3
- package/dist/cjs/GridContent.js +4 -4
- package/dist/cjs/HorizontalArticleListing.js +3 -3
- package/dist/cjs/IssueDeck.js +1 -1
- package/dist/cjs/IssueLanding.js +3 -3
- package/dist/cjs/LeftNav.js +1 -1
- package/dist/cjs/MasterDeck.js +4 -4
- package/dist/cjs/MediaSeriesLanding.js +10 -18
- package/dist/cjs/PartnerDetailListing.js +5 -5
- package/dist/cjs/PubSection.js +3 -3
- package/dist/cjs/PublicationLanding.js +1 -1
- package/dist/cjs/QueueDeckExpanded.js +3 -3
- package/dist/cjs/SeriesListingDeck.js +1 -1
- package/dist/cjs/TaxonomyCard.js +1 -1
- package/dist/cjs/TaxonomyDescription.js +3 -3
- package/dist/cjs/TemplateNormal.js +1 -1
- package/dist/cjs/VideoProgramLandingPage.js +3 -3
- package/dist/cjs/VideoSeriesLandingPage.js +4 -4
- package/dist/cjs/VideoSeriesListing.js +2 -2
- package/dist/cjs/View.js +4 -4
- package/dist/cjs/{extends-9d158713.js → extends-29bdbc6d.js} +1 -0
- package/dist/cjs/faundadb.js +329 -0
- package/dist/cjs/getSerializers.js +3 -3
- package/dist/cjs/{getTargeting-fbbe92ba.js → getTargeting-a100d6e5.js} +1 -1
- package/dist/cjs/getTargeting.js +2 -2
- package/dist/cjs/{index-a766f892.js → index-70971c54.js} +280 -55
- package/dist/cjs/index.js +7 -6
- package/dist/cjs/{inherits-3ff1b657.js → inherits-c2065b95.js} +3 -0
- package/dist/cjs/md5-e1ca5797.js +323 -0
- package/dist/esm/AD300x250.js +1 -1
- package/dist/esm/AD300x250x600.js +1 -1
- package/dist/esm/AD728x90.js +1 -1
- package/dist/esm/ADFloatingFooter.js +1 -1
- package/dist/esm/ADGutter.js +1 -1
- package/dist/esm/ADSkyscraper.js +1 -1
- package/dist/esm/ADSponsoredResources.js +1 -1
- package/dist/esm/ADWebcast.js +1 -1
- package/dist/esm/ADWelcome.js +1 -1
- package/dist/esm/AdSlot.js +1 -1
- package/dist/esm/AlgoliaSearch.js +2 -2
- package/dist/esm/AlphabeticList.js +1 -1
- package/dist/esm/ArticleCarousel.js +1 -1
- package/dist/esm/ArticleProgramLandingPage.js +3 -3
- package/dist/esm/ArticleSeriesLandingPage.js +4 -4
- package/dist/esm/ArticleSeriesListing.js +2 -2
- package/dist/esm/Auth.js +2 -319
- package/dist/esm/AuthWrapper.js +719 -0
- package/dist/esm/Column3.js +1 -1
- package/dist/esm/DeckContent.js +3 -3
- package/dist/esm/DeckQueue.js +2 -2
- package/dist/esm/EventsDeck.js +1 -1
- package/dist/esm/ExternalResources.js +3 -3
- package/dist/esm/GridContent.js +4 -4
- package/dist/esm/HorizontalArticleListing.js +3 -3
- package/dist/esm/IssueDeck.js +1 -1
- package/dist/esm/IssueLanding.js +3 -3
- package/dist/esm/LeftNav.js +1 -1
- package/dist/esm/MasterDeck.js +4 -4
- package/dist/esm/MediaSeriesLanding.js +10 -18
- package/dist/esm/PartnerDetailListing.js +5 -5
- package/dist/esm/PubSection.js +3 -3
- package/dist/esm/PublicationLanding.js +1 -1
- package/dist/esm/QueueDeckExpanded.js +3 -3
- package/dist/esm/SeriesListingDeck.js +1 -1
- package/dist/esm/TaxonomyCard.js +1 -1
- package/dist/esm/TaxonomyDescription.js +3 -3
- package/dist/esm/TemplateNormal.js +1 -1
- package/dist/esm/VideoProgramLandingPage.js +3 -3
- package/dist/esm/VideoSeriesLandingPage.js +4 -4
- package/dist/esm/VideoSeriesListing.js +2 -2
- package/dist/esm/View.js +4 -4
- package/dist/esm/{extends-f076879e.js → extends-60e0e1c6.js} +1 -1
- package/dist/esm/faundadb.js +321 -0
- package/dist/esm/getSerializers.js +3 -3
- package/dist/esm/{getTargeting-0958ad0e.js → getTargeting-05c216d6.js} +1 -1
- package/dist/esm/getTargeting.js +2 -2
- package/dist/esm/{index-f354da27.js → index-a30e3b71.js} +280 -55
- package/dist/esm/index.js +7 -6
- package/dist/esm/{inherits-f71787cf.js → inherits-a41fe93f.js} +1 -1
- package/dist/esm/md5-4e42248e.js +321 -0
- package/package.json +2 -1
- /package/dist/cjs/{ADInfeed-d9976673.js → ADInfeed-7cf51090.js} +0 -0
- /package/dist/cjs/{ADlgInfeed-0610e1bb.js → ADlgInfeed-bf24708d.js} +0 -0
- /package/dist/esm/{ADInfeed-33e556f5.js → ADInfeed-f7d00a9a.js} +0 -0
- /package/dist/esm/{ADlgInfeed-1270c526.js → ADlgInfeed-db64f46d.js} +0 -0
|
@@ -12,7 +12,7 @@ import Beam from './Beam.js';
|
|
|
12
12
|
import Segment from './Segment.js';
|
|
13
13
|
import { d as main_18, b as main_42, m as main_43 } from './main-d4165069.js';
|
|
14
14
|
import { B as BlockContent } from './BlockContent-c99c9a8d.js';
|
|
15
|
-
import { _ as _extends } from './extends-
|
|
15
|
+
import { _ as _extends, b as _extends$1 } from './extends-60e0e1c6.js';
|
|
16
16
|
import { L as LazyLoad } from './index-755f2cc2.js';
|
|
17
17
|
import { _ as _typeof$1 } from './typeof-a286cf0c.js';
|
|
18
18
|
import { R as ReactPlayerLoader } from './brightcove-react-player-loader.es-57a70a56.js';
|
|
@@ -29,10 +29,9 @@ import DFPAdSlot from './AdSlot.js';
|
|
|
29
29
|
import Row$1 from 'react-bootstrap/Row';
|
|
30
30
|
import Col$1 from 'react-bootstrap/Col';
|
|
31
31
|
import Head from 'next/head';
|
|
32
|
-
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1 } from './inherits-
|
|
32
|
+
import { _ as _inherits$1, a as _classCallCheck$1, b as _possibleConstructorReturn$1, c as _Object$getPrototypeOf, d as _createClass$1, e as classCallCheck, p as possibleConstructorReturn, i as inherits } from './inherits-a41fe93f.js';
|
|
33
33
|
import { d as IoIosArrowDropupCircle } from './index.esm-f6156a57.js';
|
|
34
34
|
import Figure$2 from 'react-bootstrap/Figure';
|
|
35
|
-
import { a as _asyncToGenerator, r as regenerator } from './asyncToGenerator-7f8f9219.js';
|
|
36
35
|
|
|
37
36
|
var urlFor$4 = function urlFor(source, builder) {
|
|
38
37
|
return builder.image(source).auto('format');
|
|
@@ -9243,6 +9242,260 @@ var AnchorLinkElement = function AnchorLinkElement(props) {
|
|
|
9243
9242
|
);
|
|
9244
9243
|
};
|
|
9245
9244
|
|
|
9245
|
+
var objectWithoutProperties = createCommonjsModule(function (module, exports) {
|
|
9246
|
+
|
|
9247
|
+
exports.__esModule = true;
|
|
9248
|
+
|
|
9249
|
+
exports.default = function (obj, keys) {
|
|
9250
|
+
var target = {};
|
|
9251
|
+
|
|
9252
|
+
for (var i in obj) {
|
|
9253
|
+
if (keys.indexOf(i) >= 0) continue;
|
|
9254
|
+
if (!Object.prototype.hasOwnProperty.call(obj, i)) continue;
|
|
9255
|
+
target[i] = obj[i];
|
|
9256
|
+
}
|
|
9257
|
+
|
|
9258
|
+
return target;
|
|
9259
|
+
};
|
|
9260
|
+
});
|
|
9261
|
+
|
|
9262
|
+
unwrapExports(objectWithoutProperties);
|
|
9263
|
+
|
|
9264
|
+
var ScriptTag_1 = createCommonjsModule(function (module, exports) {
|
|
9265
|
+
|
|
9266
|
+
exports.__esModule = true;
|
|
9267
|
+
|
|
9268
|
+
|
|
9269
|
+
|
|
9270
|
+
var _extends3 = _interopRequireDefault(_extends$1);
|
|
9271
|
+
|
|
9272
|
+
|
|
9273
|
+
|
|
9274
|
+
var _objectWithoutProperties3 = _interopRequireDefault(objectWithoutProperties);
|
|
9275
|
+
|
|
9276
|
+
|
|
9277
|
+
|
|
9278
|
+
var _classCallCheck3 = _interopRequireDefault(classCallCheck);
|
|
9279
|
+
|
|
9280
|
+
|
|
9281
|
+
|
|
9282
|
+
var _possibleConstructorReturn3 = _interopRequireDefault(possibleConstructorReturn);
|
|
9283
|
+
|
|
9284
|
+
|
|
9285
|
+
|
|
9286
|
+
var _inherits3 = _interopRequireDefault(inherits);
|
|
9287
|
+
|
|
9288
|
+
|
|
9289
|
+
|
|
9290
|
+
var _react2 = _interopRequireDefault(React__default);
|
|
9291
|
+
|
|
9292
|
+
|
|
9293
|
+
|
|
9294
|
+
var _propTypes2 = _interopRequireDefault(PropTypes);
|
|
9295
|
+
|
|
9296
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9297
|
+
var noop = function noop() {};
|
|
9298
|
+
|
|
9299
|
+
var ScriptTag = function (_Component) {
|
|
9300
|
+
(0, _inherits3.default)(ScriptTag, _Component);
|
|
9301
|
+
|
|
9302
|
+
ScriptTag.removeNode = function removeNode(node) {
|
|
9303
|
+
if (node) {
|
|
9304
|
+
node.parentNode.removeChild(node);
|
|
9305
|
+
}
|
|
9306
|
+
};
|
|
9307
|
+
|
|
9308
|
+
function ScriptTag(props, context) {
|
|
9309
|
+
(0, _classCallCheck3.default)(this, ScriptTag);
|
|
9310
|
+
|
|
9311
|
+
var _this = (0, _possibleConstructorReturn3.default)(this, _Component.call(this, props, context));
|
|
9312
|
+
|
|
9313
|
+
_this.domRef = null;
|
|
9314
|
+
_this.state = {
|
|
9315
|
+
isHydrated: props.isHydrating,
|
|
9316
|
+
additionalNode: null,
|
|
9317
|
+
removeAdditionalNode: null
|
|
9318
|
+
};
|
|
9319
|
+
return _this;
|
|
9320
|
+
}
|
|
9321
|
+
|
|
9322
|
+
ScriptTag.prototype.appendAdditionalElement = function appendAdditionalElement() {
|
|
9323
|
+
var _props = this.props,
|
|
9324
|
+
onError = _props.onError,
|
|
9325
|
+
onLoad = _props.onLoad,
|
|
9326
|
+
nonce = _props.nonce;
|
|
9327
|
+
|
|
9328
|
+
// Create a new HTML script element
|
|
9329
|
+
|
|
9330
|
+
var newElement = document.createElement("script");
|
|
9331
|
+
|
|
9332
|
+
// Copy all attribute values
|
|
9333
|
+
for (var i = 0, len = this.domRef.attributes.length; i < len; i++) {
|
|
9334
|
+
var attr = this.domRef.attributes[i];
|
|
9335
|
+
if (attr.nodeName === 'nonce') {
|
|
9336
|
+
// The browser clears the nonce value - grab from props
|
|
9337
|
+
newElement.setAttribute(attr.nodeName, nonce);
|
|
9338
|
+
} else {
|
|
9339
|
+
newElement.setAttribute(attr.nodeName, attr.nodeValue);
|
|
9340
|
+
}
|
|
9341
|
+
}
|
|
9342
|
+
|
|
9343
|
+
// Copy the inner script
|
|
9344
|
+
if (this.domRef.src === '' && this.domRef.innerHTML && this.domRef.innerHTML !== '') {
|
|
9345
|
+
newElement.innerHTML = this.domRef.innerHTML;
|
|
9346
|
+
}
|
|
9347
|
+
|
|
9348
|
+
// Bind event listeners
|
|
9349
|
+
newElement.addEventListener('load', onLoad);
|
|
9350
|
+
newElement.addEventListener('error', onError);
|
|
9351
|
+
|
|
9352
|
+
// Append the new script tag
|
|
9353
|
+
this.domRef.parentNode.appendChild(newElement);
|
|
9354
|
+
return newElement;
|
|
9355
|
+
};
|
|
9356
|
+
|
|
9357
|
+
ScriptTag.prototype.componentDidMount = function componentDidMount() {
|
|
9358
|
+
var isHydrated = this.state.isHydrated;
|
|
9359
|
+
|
|
9360
|
+
if (isHydrated) {
|
|
9361
|
+
// was rendered on server, don't replace elements when hydrating
|
|
9362
|
+
return;
|
|
9363
|
+
}
|
|
9364
|
+
|
|
9365
|
+
this.setState({
|
|
9366
|
+
additionalNode: this.appendAdditionalElement(),
|
|
9367
|
+
removeAdditionalNode: null
|
|
9368
|
+
});
|
|
9369
|
+
};
|
|
9370
|
+
|
|
9371
|
+
ScriptTag.prototype.componentWillReceiveProps = function componentWillReceiveProps(nextProps) {
|
|
9372
|
+
// This logic assumes that the <script> only need to be updated if the 'src' or 'innerHTML' has changed
|
|
9373
|
+
// - this prevents the <script> from updating unnecessarily, which prevents additional 'onload' events
|
|
9374
|
+
|
|
9375
|
+
// This isn't perfect - but it keeps the component very simple, and should cover most use-cases
|
|
9376
|
+
// Other props SHOULD be assigned at the same time as either the 'src' or 'innerHTML' property
|
|
9377
|
+
// -> If this is to change and support updating on ANY prop change, the 'appendAdditionalElement()' method
|
|
9378
|
+
// and state management will need to be modified to manipulate the DOM script tag based on each prop change.
|
|
9379
|
+
// This really complicates the component - for now we'll leave it as is.
|
|
9380
|
+
var _props2 = this.props,
|
|
9381
|
+
src = _props2.src,
|
|
9382
|
+
dangerouslySetInnerHTML = _props2.dangerouslySetInnerHTML;
|
|
9383
|
+
|
|
9384
|
+
if (src && src === nextProps.src) {
|
|
9385
|
+
// The 'src' attribute has not changed
|
|
9386
|
+
return;
|
|
9387
|
+
}
|
|
9388
|
+
|
|
9389
|
+
if (dangerouslySetInnerHTML && dangerouslySetInnerHTML.__html === nextProps.dangerouslySetInnerHTML.__html) {
|
|
9390
|
+
// The 'dangerouslySetInnerHTML' attribute has not changed
|
|
9391
|
+
return;
|
|
9392
|
+
}
|
|
9393
|
+
|
|
9394
|
+
this.setState({
|
|
9395
|
+
removeAdditionalNode: this.state.additionalNode,
|
|
9396
|
+
additionalNode: null
|
|
9397
|
+
});
|
|
9398
|
+
};
|
|
9399
|
+
|
|
9400
|
+
ScriptTag.prototype.componentWillUpdate = function componentWillUpdate(nextProps, nextState) {
|
|
9401
|
+
ScriptTag.removeNode(nextState.removeAdditionalNode);
|
|
9402
|
+
};
|
|
9403
|
+
|
|
9404
|
+
ScriptTag.prototype.componentDidUpdate = function componentDidUpdate() {
|
|
9405
|
+
var _state = this.state,
|
|
9406
|
+
additionalNode = _state.additionalNode,
|
|
9407
|
+
removeAdditionalNode = _state.removeAdditionalNode;
|
|
9408
|
+
|
|
9409
|
+
if (additionalNode === null) {
|
|
9410
|
+
this.setState({
|
|
9411
|
+
additionalNode: this.appendAdditionalElement()
|
|
9412
|
+
});
|
|
9413
|
+
}
|
|
9414
|
+
|
|
9415
|
+
if (removeAdditionalNode !== null) {
|
|
9416
|
+
// Was removed in 'componentWillUpdate', but can not update state there
|
|
9417
|
+
this.setState({
|
|
9418
|
+
removeAdditionalNode: null
|
|
9419
|
+
});
|
|
9420
|
+
}
|
|
9421
|
+
};
|
|
9422
|
+
|
|
9423
|
+
ScriptTag.prototype.componentWillUnmount = function componentWillUnmount() {
|
|
9424
|
+
ScriptTag.removeNode(this.state.removeAdditionalNode);
|
|
9425
|
+
ScriptTag.removeNode(this.state.additionalNode);
|
|
9426
|
+
};
|
|
9427
|
+
|
|
9428
|
+
ScriptTag.prototype.render = function render() {
|
|
9429
|
+
var _this2 = this;
|
|
9430
|
+
|
|
9431
|
+
var additionalNode = this.state.additionalNode;
|
|
9432
|
+
|
|
9433
|
+
if (additionalNode !== null) {
|
|
9434
|
+
return null;
|
|
9435
|
+
}
|
|
9436
|
+
|
|
9437
|
+
// The 'isHydrating' prop must NOT be passed to the script tag
|
|
9438
|
+
// eslint-disable-next-line no-unused-vars
|
|
9439
|
+
var _props3 = this.props;
|
|
9440
|
+
_props3.isHydrating;
|
|
9441
|
+
var tagProps = (0, _objectWithoutProperties3.default)(_props3, ['isHydrating']);
|
|
9442
|
+
|
|
9443
|
+
return _react2.default.createElement('script', (0, _extends3.default)({}, tagProps, { ref: function ref(tag) {
|
|
9444
|
+
return _this2.domRef = tag;
|
|
9445
|
+
} }));
|
|
9446
|
+
};
|
|
9447
|
+
|
|
9448
|
+
return ScriptTag;
|
|
9449
|
+
}(React__default.Component);
|
|
9450
|
+
|
|
9451
|
+
ScriptTag.propTypes = {
|
|
9452
|
+
/**
|
|
9453
|
+
* True if the <ScriptTag> is being hydrated on the client, otherwise false.
|
|
9454
|
+
*/
|
|
9455
|
+
isHydrating: _propTypes2.default.bool,
|
|
9456
|
+
|
|
9457
|
+
// Standard <script> tag props
|
|
9458
|
+
async: _propTypes2.default.oneOfType([_propTypes2.default.bool, _propTypes2.default.number]),
|
|
9459
|
+
crossOrigin: _propTypes2.default.string,
|
|
9460
|
+
defer: _propTypes2.default.bool,
|
|
9461
|
+
integrity: _propTypes2.default.string,
|
|
9462
|
+
nonce: _propTypes2.default.string,
|
|
9463
|
+
src: _propTypes2.default.string,
|
|
9464
|
+
text: _propTypes2.default.string,
|
|
9465
|
+
type: _propTypes2.default.string,
|
|
9466
|
+
dangerouslySetInnerHTML: _propTypes2.default.object,
|
|
9467
|
+
|
|
9468
|
+
// globals
|
|
9469
|
+
onError: _propTypes2.default.func,
|
|
9470
|
+
onLoad: _propTypes2.default.func
|
|
9471
|
+
};
|
|
9472
|
+
ScriptTag.defaultProps = {
|
|
9473
|
+
isHydrating: false,
|
|
9474
|
+
onError: noop,
|
|
9475
|
+
onLoad: noop
|
|
9476
|
+
};
|
|
9477
|
+
exports.default = ScriptTag;
|
|
9478
|
+
});
|
|
9479
|
+
|
|
9480
|
+
unwrapExports(ScriptTag_1);
|
|
9481
|
+
|
|
9482
|
+
var lib = createCommonjsModule(function (module, exports) {
|
|
9483
|
+
|
|
9484
|
+
exports.__esModule = true;
|
|
9485
|
+
|
|
9486
|
+
|
|
9487
|
+
|
|
9488
|
+
var _ScriptTag2 = _interopRequireDefault(ScriptTag_1);
|
|
9489
|
+
|
|
9490
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9491
|
+
|
|
9492
|
+
exports.default = _ScriptTag2.default;
|
|
9493
|
+
});
|
|
9494
|
+
|
|
9495
|
+
var ScriptTag = unwrapExports(lib);
|
|
9496
|
+
|
|
9497
|
+
var enterpriseDomainName = 'mjhlifesciences';
|
|
9498
|
+
|
|
9246
9499
|
var FormAssembly = function FormAssembly(props) {
|
|
9247
9500
|
var _props$node = props.node,
|
|
9248
9501
|
FormID = _props$node.FormID,
|
|
@@ -9250,65 +9503,37 @@ var FormAssembly = function FormAssembly(props) {
|
|
|
9250
9503
|
_props$node$needSegme = _props$node.needSegmentSupport,
|
|
9251
9504
|
needSegmentSupport = _props$node$needSegme === undefined ? false : _props$node$needSegme;
|
|
9252
9505
|
|
|
9253
|
-
var formAssemblyRef = useRef(null);
|
|
9254
|
-
|
|
9255
9506
|
var _useState = useState(null),
|
|
9256
9507
|
_useState2 = _slicedToArray(_useState, 2),
|
|
9257
|
-
|
|
9258
|
-
|
|
9508
|
+
iframeSrc = _useState2[0],
|
|
9509
|
+
setIframeSrc = _useState2[1];
|
|
9259
9510
|
|
|
9260
9511
|
useEffect(function () {
|
|
9261
|
-
|
|
9262
|
-
var
|
|
9263
|
-
|
|
9264
|
-
|
|
9265
|
-
|
|
9266
|
-
|
|
9267
|
-
|
|
9268
|
-
|
|
9269
|
-
|
|
9270
|
-
|
|
9271
|
-
|
|
9272
|
-
|
|
9273
|
-
|
|
9274
|
-
return response.json();
|
|
9275
|
-
|
|
9276
|
-
case 6:
|
|
9277
|
-
result = _context.sent;
|
|
9278
|
-
|
|
9279
|
-
setHtmlSnippet(result.data);
|
|
9280
|
-
_context.next = 13;
|
|
9281
|
-
break;
|
|
9282
|
-
|
|
9283
|
-
case 10:
|
|
9284
|
-
_context.prev = 10;
|
|
9285
|
-
_context.t0 = _context['catch'](0);
|
|
9286
|
-
|
|
9287
|
-
console.error(_context.t0);
|
|
9288
|
-
|
|
9289
|
-
case 13:
|
|
9290
|
-
case 'end':
|
|
9291
|
-
return _context.stop();
|
|
9292
|
-
}
|
|
9293
|
-
}
|
|
9294
|
-
}, _callee, this, [[0, 10]]);
|
|
9295
|
-
}))();
|
|
9512
|
+
if (FormID) {
|
|
9513
|
+
var src = 'https://' + enterpriseDomainName + '.tfaforms.net/' + FormID;
|
|
9514
|
+
var anonymousID = analytics.user() && analytics.user().anonymousId();
|
|
9515
|
+
if (anonymousID && needSegmentSupport) {
|
|
9516
|
+
src = src + '?tfa_1=' + anonymousID;
|
|
9517
|
+
}
|
|
9518
|
+
if (Promocode) {
|
|
9519
|
+
var pattern = /\?.+=.*/g;
|
|
9520
|
+
var hasQueryString = pattern.test(src);
|
|
9521
|
+
src = hasQueryString ? src + '&tfa_2=' + Promocode : src + '?tfa_2=' + Promocode;
|
|
9522
|
+
}
|
|
9523
|
+
setIframeSrc(encodeURI(src));
|
|
9524
|
+
}
|
|
9296
9525
|
}, []);
|
|
9297
9526
|
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
|
|
9303
|
-
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
if (promoCodeField && Promocode) promoCodeField.value = Promocode;
|
|
9307
|
-
}
|
|
9308
|
-
}, 1000);
|
|
9309
|
-
}, [htmlSnippet]);
|
|
9527
|
+
if (iframeSrc) {
|
|
9528
|
+
return React__default.createElement(
|
|
9529
|
+
'section',
|
|
9530
|
+
{ className: 'form-assembly' },
|
|
9531
|
+
React__default.createElement('iframe', { src: iframeSrc, height: '800', width: '100%', frameBorder: '0' }),
|
|
9532
|
+
React__default.createElement(ScriptTag, { type: 'text/javascript', src: '//' + enterpriseDomainName + '.tfaforms.net/js/iframe_resize_helper.js', async: true })
|
|
9533
|
+
);
|
|
9534
|
+
}
|
|
9310
9535
|
|
|
9311
|
-
return
|
|
9536
|
+
return null;
|
|
9312
9537
|
};
|
|
9313
9538
|
|
|
9314
9539
|
var BlockTable = function BlockTable(props) {
|
package/dist/esm/index.js
CHANGED
|
@@ -79,7 +79,7 @@ export { default as VerticalHero } from './VerticalHero.js';
|
|
|
79
79
|
export { default as YahooHero } from './YahooHero.js';
|
|
80
80
|
export { default as GridHero } from './GridHero.js';
|
|
81
81
|
export { default as ConferenceArticleCard } from './ConferenceArticleCard.js';
|
|
82
|
-
export { g as getSerializers } from './index-
|
|
82
|
+
export { g as getSerializers } from './index-a30e3b71.js';
|
|
83
83
|
export { default as Beam } from './Beam.js';
|
|
84
84
|
export { default as Segment } from './Segment.js';
|
|
85
85
|
export { default as KMTracker } from './KMTracker.js';
|
|
@@ -94,7 +94,7 @@ export { default as VideoSeriesLandingPage } from './VideoSeriesLandingPage.js';
|
|
|
94
94
|
export { default as ArticleProgramLandingPage } from './ArticleProgramLandingPage.js';
|
|
95
95
|
export { default as ArticleSeriesLandingPage } from './ArticleSeriesLandingPage.js';
|
|
96
96
|
export { default as urlFor } from './urlFor.js';
|
|
97
|
-
export { g as getTargeting } from './getTargeting-
|
|
97
|
+
export { g as getTargeting } from './getTargeting-05c216d6.js';
|
|
98
98
|
export { default as getKeywords } from './getKeywords.js';
|
|
99
99
|
export { default as getQuery } from './getQuery.js';
|
|
100
100
|
import './toConsumableArray-6d9a4616.js';
|
|
@@ -103,9 +103,9 @@ import './es6.string.iterator-bc33758b.js';
|
|
|
103
103
|
import './_to-object-b50e61c3.js';
|
|
104
104
|
import './_iter-detect-7e5e5ce2.js';
|
|
105
105
|
import './core.get-iterator-method-133dfacd.js';
|
|
106
|
-
import './extends-
|
|
106
|
+
import './extends-60e0e1c6.js';
|
|
107
107
|
import './_object-pie-133f504a.js';
|
|
108
|
-
import './inherits-
|
|
108
|
+
import './inherits-a41fe93f.js';
|
|
109
109
|
import './_object-sap-f353c2a9.js';
|
|
110
110
|
import './define-property-fe54dc9f.js';
|
|
111
111
|
import './typeof-a286cf0c.js';
|
|
@@ -126,10 +126,10 @@ import './visibility-sensor-72fd8f8b.js';
|
|
|
126
126
|
import 'react-dom';
|
|
127
127
|
import './main-d4165069.js';
|
|
128
128
|
import './entities-932b50cf.js';
|
|
129
|
-
import './ADInfeed-
|
|
129
|
+
import './ADInfeed-f7d00a9a.js';
|
|
130
130
|
import './slicedToArray-be2f7a22.js';
|
|
131
131
|
import './lodash-f97fd99a.js';
|
|
132
|
-
import './ADlgInfeed-
|
|
132
|
+
import './ADlgInfeed-db64f46d.js';
|
|
133
133
|
import './getContentCategory-15dcc413.js';
|
|
134
134
|
import './get-3c308da4.js';
|
|
135
135
|
import './eq-bdcbf886.js';
|
|
@@ -183,6 +183,7 @@ import './index-db3bb315.js';
|
|
|
183
183
|
import 'swr';
|
|
184
184
|
import 'passport-local';
|
|
185
185
|
import 'mysql';
|
|
186
|
+
import './md5-4e42248e.js';
|
|
186
187
|
import './SeriesSlider-c8477bf3.js';
|
|
187
188
|
import './style-inject.es-1f59c1d0.js';
|
|
188
189
|
import 'disqus-react';
|
|
@@ -177,4 +177,4 @@ exports.default = function (subClass, superClass) {
|
|
|
177
177
|
|
|
178
178
|
var _inherits = unwrapExports(inherits);
|
|
179
179
|
|
|
180
|
-
export { _inherits as _, _classCallCheck as a, _possibleConstructorReturn as b, _Object$getPrototypeOf as c, _createClass as d };
|
|
180
|
+
export { _inherits as _, _classCallCheck as a, _possibleConstructorReturn as b, _Object$getPrototypeOf as c, _createClass as d, classCallCheck as e, inherits as i, possibleConstructorReturn as p };
|