Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function TableCell() {
var _ref;
var _temp, _this, _ret;
_classCallCheck(this, TableCell);
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
return _ret = (_temp = (_this = _possibleConstructorReturn(this, (_ref = TableCell.__proto__ || Object.getPrototypeOf(TableCell)).call.apply(_ref, [this].concat(args))), _this), _this.handleClick = function (e) {
var _this$props = _this.props,
record = _this$props.record,
onCellClick = _this$props.column.onCellClick;
if (onCellClick) {
onCellClick(record, e);
}
}, _temp), _possibleConstructorReturn(_this, _ret);
}
function Checkbox(props) {
_classCallCheck(this, Checkbox);
var _this = _possibleConstructorReturn(this, (Checkbox.__proto__ || Object.getPrototypeOf(Checkbox)).call(this, props));
_initialiseProps.call(_this);
var checked = 'checked' in props ? props.checked : props.defaultChecked;
_this.state = {
checked: checked
};
return _this;
}
function AXAInput() {
_classCallCheck(this, AXAInput);
return _possibleConstructorReturn(this, (AXAInput.__proto__ || _Object$getPrototypeOf(AXAInput)).call(this, { styles: styles, template: template }));
}
function LazyRenderBox() {
_classCallCheck(this, LazyRenderBox);
return _possibleConstructorReturn(this, (LazyRenderBox.__proto__ || Object.getPrototypeOf(LazyRenderBox)).apply(this, arguments));
}
function CheckableTag() {
_classCallCheck(this, CheckableTag);
var _this = _possibleConstructorReturn(this, (CheckableTag.__proto__ || Object.getPrototypeOf(CheckableTag)).apply(this, arguments));
_this.handleClick = function () {
var _this$props = _this.props,
checked = _this$props.checked,
onChange = _this$props.onChange;
if (onChange) {
onChange(!checked);
}
};
return _this;
}
function FieldsStore(fields) {
_classCallCheck(this, FieldsStore);
_initialiseProps.call(this);
this.fields = fields;
this.fieldsMeta = {};
}
function AXAAccordionItem() {
_classCallCheck(this, AXAAccordionItem);
var _this = _possibleConstructorReturn(this, (AXAAccordionItem.__proto__ || _Object$getPrototypeOf(AXAAccordionItem)).call(this, { styles: styles, template: template }));
_this.consumeContext('axa-accordion');
return _this;
}
function Card() {
_classCallCheck(this, Card);
var _this = _possibleConstructorReturn(this, (Card.__proto__ || Object.getPrototypeOf(Card)).apply(this, arguments));
_this.state = {
widerPadding: false
};
_this.saveRef = function (node) {
_this.container = node;
};
return _this;
}
function BaseComponent(options) {
_classCallCheck(this, BaseComponent);
var _this = _possibleConstructorReturn(this, (BaseComponent.__proto__ || _Object$getPrototypeOf(BaseComponent)).call(this, options));
_this._id = getId(_this.nodeName);
return _this;
}
function Nav() {
_classCallCheck(this, Nav);
return _possibleConstructorReturn(this, _React$Component.apply(this, arguments));
}