1 | "use strict";
|
2 |
|
3 | require("core-js/modules/es.object.define-property");
|
4 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | exports["default"] = hoc;
|
9 |
|
10 | var _withTrackingComponentDecorator = _interopRequireDefault(require("./withTrackingComponentDecorator"));
|
11 |
|
12 | var _trackEventMethodDecorator = _interopRequireDefault(require("./trackEventMethodDecorator"));
|
13 |
|
14 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
15 |
|
16 | function hoc(trackingInfo, options) {
|
17 | return function decorator() {
|
18 | if (arguments.length === 1) {
|
19 |
|
20 | return (0, _withTrackingComponentDecorator["default"])(trackingInfo, options).apply(void 0, arguments);
|
21 | }
|
22 |
|
23 |
|
24 | return (0, _trackEventMethodDecorator["default"])(trackingInfo).apply(void 0, arguments);
|
25 | };
|
26 | } |
\ | No newline at end of file |