@plusscommunities/pluss-core-web 1.2.2 → 1.2.6
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/dist/index.cjs.js +360 -219
- package/dist/index.esm.js +360 -219
- package/dist/index.umd.js +363 -223
- package/package.json +1 -1
- package/src/components/AudienceSelector.js +62 -63
- package/src/components/ExportCsvPopup.js +122 -0
- package/src/components/index.js +1 -0
package/dist/index.esm.js
CHANGED
|
@@ -23,6 +23,7 @@ import Textarea from 'react-textarea-autosize';
|
|
|
23
23
|
import { withRouter } from 'react-router';
|
|
24
24
|
import { MenuItem, DropdownButton } from 'react-bootstrap';
|
|
25
25
|
import { Lottie } from '@crello/react-lottie';
|
|
26
|
+
import { CSVLink } from 'react-csv';
|
|
26
27
|
|
|
27
28
|
var CoreConfig = {
|
|
28
29
|
env: {
|
|
@@ -2983,14 +2984,14 @@ var index$1 = /*#__PURE__*/Object.freeze({
|
|
|
2983
2984
|
setNavData: setNavData
|
|
2984
2985
|
});
|
|
2985
2986
|
|
|
2986
|
-
function _createSuper$
|
|
2987
|
+
function _createSuper$y(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$y(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
2987
2988
|
|
|
2988
|
-
function _isNativeReflectConstruct$
|
|
2989
|
+
function _isNativeReflectConstruct$y() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
2989
2990
|
|
|
2990
2991
|
var AddButton = /*#__PURE__*/function (_Component) {
|
|
2991
2992
|
_inherits(AddButton, _Component);
|
|
2992
2993
|
|
|
2993
|
-
var _super = _createSuper$
|
|
2994
|
+
var _super = _createSuper$y(AddButton);
|
|
2994
2995
|
|
|
2995
2996
|
function AddButton() {
|
|
2996
2997
|
_classCallCheck(this, AddButton);
|
|
@@ -3967,14 +3968,14 @@ var icons = {
|
|
|
3967
3968
|
template_sportingClub: template_sportingClub
|
|
3968
3969
|
};
|
|
3969
3970
|
|
|
3970
|
-
function _createSuper$
|
|
3971
|
+
function _createSuper$x(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$x(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
3971
3972
|
|
|
3972
|
-
function _isNativeReflectConstruct$
|
|
3973
|
+
function _isNativeReflectConstruct$x() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
3973
3974
|
|
|
3974
3975
|
var SVGIcon = /*#__PURE__*/function (_Component) {
|
|
3975
3976
|
_inherits(SVGIcon, _Component);
|
|
3976
3977
|
|
|
3977
|
-
var _super = _createSuper$
|
|
3978
|
+
var _super = _createSuper$x(SVGIcon);
|
|
3978
3979
|
|
|
3979
3980
|
function SVGIcon() {
|
|
3980
3981
|
_classCallCheck(this, SVGIcon);
|
|
@@ -4022,14 +4023,14 @@ var SVGIcon = /*#__PURE__*/function (_Component) {
|
|
|
4022
4023
|
return SVGIcon;
|
|
4023
4024
|
}(Component);
|
|
4024
4025
|
|
|
4025
|
-
function _createSuper$
|
|
4026
|
+
function _createSuper$w(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$w(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4026
4027
|
|
|
4027
|
-
function _isNativeReflectConstruct$
|
|
4028
|
+
function _isNativeReflectConstruct$w() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4028
4029
|
|
|
4029
4030
|
var Attachment = /*#__PURE__*/function (_Component) {
|
|
4030
4031
|
_inherits(Attachment, _Component);
|
|
4031
4032
|
|
|
4032
|
-
var _super = _createSuper$
|
|
4033
|
+
var _super = _createSuper$w(Attachment);
|
|
4033
4034
|
|
|
4034
4035
|
function Attachment() {
|
|
4035
4036
|
_classCallCheck(this, Attachment);
|
|
@@ -4067,14 +4068,14 @@ function ownKeys$e(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
4067
4068
|
|
|
4068
4069
|
function _objectSpread$e(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$e(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$e(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4069
4070
|
|
|
4070
|
-
function _createSuper$
|
|
4071
|
+
function _createSuper$v(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$v(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4071
4072
|
|
|
4072
|
-
function _isNativeReflectConstruct$
|
|
4073
|
+
function _isNativeReflectConstruct$v() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4073
4074
|
|
|
4074
4075
|
var Button = /*#__PURE__*/function (_Component) {
|
|
4075
4076
|
_inherits(Button, _Component);
|
|
4076
4077
|
|
|
4077
|
-
var _super = _createSuper$
|
|
4078
|
+
var _super = _createSuper$v(Button);
|
|
4078
4079
|
|
|
4079
4080
|
function Button() {
|
|
4080
4081
|
_classCallCheck(this, Button);
|
|
@@ -4174,14 +4175,14 @@ function ownKeys$d(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
4174
4175
|
|
|
4175
4176
|
function _objectSpread$d(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$d(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$d(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4176
4177
|
|
|
4177
|
-
function _createSuper$
|
|
4178
|
+
function _createSuper$u(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$u(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4178
4179
|
|
|
4179
|
-
function _isNativeReflectConstruct$
|
|
4180
|
+
function _isNativeReflectConstruct$u() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4180
4181
|
|
|
4181
4182
|
var CheckBox = /*#__PURE__*/function (_PureComponent) {
|
|
4182
4183
|
_inherits(CheckBox, _PureComponent);
|
|
4183
4184
|
|
|
4184
|
-
var _super = _createSuper$
|
|
4185
|
+
var _super = _createSuper$u(CheckBox);
|
|
4185
4186
|
|
|
4186
4187
|
function CheckBox() {
|
|
4187
4188
|
var _this;
|
|
@@ -4287,14 +4288,14 @@ var styles$8 = {
|
|
|
4287
4288
|
}
|
|
4288
4289
|
};
|
|
4289
4290
|
|
|
4290
|
-
function _createSuper$
|
|
4291
|
+
function _createSuper$t(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$t(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4291
4292
|
|
|
4292
|
-
function _isNativeReflectConstruct$
|
|
4293
|
+
function _isNativeReflectConstruct$t() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4293
4294
|
|
|
4294
4295
|
var P60Icon = /*#__PURE__*/function (_Component) {
|
|
4295
4296
|
_inherits(P60Icon, _Component);
|
|
4296
4297
|
|
|
4297
|
-
var _super = _createSuper$
|
|
4298
|
+
var _super = _createSuper$t(P60Icon);
|
|
4298
4299
|
|
|
4299
4300
|
function P60Icon() {
|
|
4300
4301
|
var _this;
|
|
@@ -4350,14 +4351,14 @@ var P60Icon = /*#__PURE__*/function (_Component) {
|
|
|
4350
4351
|
return P60Icon;
|
|
4351
4352
|
}(Component);
|
|
4352
4353
|
|
|
4353
|
-
function _createSuper$
|
|
4354
|
+
function _createSuper$s(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$s(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4354
4355
|
|
|
4355
|
-
function _isNativeReflectConstruct$
|
|
4356
|
+
function _isNativeReflectConstruct$s() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4356
4357
|
|
|
4357
4358
|
var DatePicker = /*#__PURE__*/function (_Component) {
|
|
4358
4359
|
_inherits(DatePicker, _Component);
|
|
4359
4360
|
|
|
4360
|
-
var _super = _createSuper$
|
|
4361
|
+
var _super = _createSuper$s(DatePicker);
|
|
4361
4362
|
|
|
4362
4363
|
function DatePicker() {
|
|
4363
4364
|
var _this;
|
|
@@ -4674,9 +4675,9 @@ function ownKeys$c(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
4674
4675
|
|
|
4675
4676
|
function _objectSpread$c(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$c(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$c(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4676
4677
|
|
|
4677
|
-
function _createSuper$
|
|
4678
|
+
function _createSuper$r(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$r(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
4678
4679
|
|
|
4679
|
-
function _isNativeReflectConstruct$
|
|
4680
|
+
function _isNativeReflectConstruct$r() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
4680
4681
|
var DEFAULT_INPUT$1 = {
|
|
4681
4682
|
uploadingFile: false,
|
|
4682
4683
|
value: ''
|
|
@@ -4685,7 +4686,7 @@ var DEFAULT_INPUT$1 = {
|
|
|
4685
4686
|
var FileInputComponent = /*#__PURE__*/function (_Component) {
|
|
4686
4687
|
_inherits(FileInputComponent, _Component);
|
|
4687
4688
|
|
|
4688
|
-
var _super = _createSuper$
|
|
4689
|
+
var _super = _createSuper$r(FileInputComponent);
|
|
4689
4690
|
|
|
4690
4691
|
function FileInputComponent() {
|
|
4691
4692
|
var _this;
|
|
@@ -5091,14 +5092,14 @@ function ownKeys$b(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
5091
5092
|
|
|
5092
5093
|
function _objectSpread$b(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$b(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$b(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5093
5094
|
|
|
5094
|
-
function _createSuper$
|
|
5095
|
+
function _createSuper$q(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$q(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5095
5096
|
|
|
5096
|
-
function _isNativeReflectConstruct$
|
|
5097
|
+
function _isNativeReflectConstruct$q() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5097
5098
|
|
|
5098
5099
|
var GenericInput = /*#__PURE__*/function (_Component) {
|
|
5099
5100
|
_inherits(GenericInput, _Component);
|
|
5100
5101
|
|
|
5101
|
-
var _super = _createSuper$
|
|
5102
|
+
var _super = _createSuper$q(GenericInput);
|
|
5102
5103
|
|
|
5103
5104
|
function GenericInput() {
|
|
5104
5105
|
_classCallCheck(this, GenericInput);
|
|
@@ -5296,14 +5297,14 @@ var styles$7 = {
|
|
|
5296
5297
|
}
|
|
5297
5298
|
};
|
|
5298
5299
|
|
|
5299
|
-
function _createSuper$
|
|
5300
|
+
function _createSuper$p(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$p(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5300
5301
|
|
|
5301
|
-
function _isNativeReflectConstruct$
|
|
5302
|
+
function _isNativeReflectConstruct$p() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5302
5303
|
|
|
5303
5304
|
var Header = /*#__PURE__*/function (_Component) {
|
|
5304
5305
|
_inherits(Header, _Component);
|
|
5305
5306
|
|
|
5306
|
-
var _super = _createSuper$
|
|
5307
|
+
var _super = _createSuper$p(Header);
|
|
5307
5308
|
|
|
5308
5309
|
function Header() {
|
|
5309
5310
|
var _this;
|
|
@@ -5425,14 +5426,14 @@ function ownKeys$a(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
5425
5426
|
|
|
5426
5427
|
function _objectSpread$a(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$a(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$a(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5427
5428
|
|
|
5428
|
-
function _createSuper$
|
|
5429
|
+
function _createSuper$o(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$o(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5429
5430
|
|
|
5430
|
-
function _isNativeReflectConstruct$
|
|
5431
|
+
function _isNativeReflectConstruct$o() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5431
5432
|
|
|
5432
5433
|
var Popup = /*#__PURE__*/function (_Component) {
|
|
5433
5434
|
_inherits(Popup, _Component);
|
|
5434
5435
|
|
|
5435
|
-
var _super = _createSuper$
|
|
5436
|
+
var _super = _createSuper$o(Popup);
|
|
5436
5437
|
|
|
5437
5438
|
function Popup() {
|
|
5438
5439
|
_classCallCheck(this, Popup);
|
|
@@ -5546,9 +5547,9 @@ function ownKeys$9(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
5546
5547
|
|
|
5547
5548
|
function _objectSpread$9(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$9(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$9(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
5548
5549
|
|
|
5549
|
-
function _createSuper$
|
|
5550
|
+
function _createSuper$n(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$n(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
5550
5551
|
|
|
5551
|
-
function _isNativeReflectConstruct$
|
|
5552
|
+
function _isNativeReflectConstruct$n() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
5552
5553
|
var DEFAULT_INPUT = {
|
|
5553
5554
|
uploadingImage: false,
|
|
5554
5555
|
value: '',
|
|
@@ -5558,7 +5559,7 @@ var DEFAULT_INPUT = {
|
|
|
5558
5559
|
var ImageInputComponent = /*#__PURE__*/function (_Component) {
|
|
5559
5560
|
_inherits(ImageInputComponent, _Component);
|
|
5560
5561
|
|
|
5561
|
-
var _super = _createSuper$
|
|
5562
|
+
var _super = _createSuper$n(ImageInputComponent);
|
|
5562
5563
|
|
|
5563
5564
|
function ImageInputComponent() {
|
|
5564
5565
|
var _this;
|
|
@@ -6851,14 +6852,14 @@ var ImageInput = connect(mapStateToProps$3, {}, null, {
|
|
|
6851
6852
|
withRef: true
|
|
6852
6853
|
})(ImageInputComponent);
|
|
6853
6854
|
|
|
6854
|
-
function _createSuper$
|
|
6855
|
+
function _createSuper$m(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$m(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6855
6856
|
|
|
6856
|
-
function _isNativeReflectConstruct$
|
|
6857
|
+
function _isNativeReflectConstruct$m() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6857
6858
|
|
|
6858
6859
|
var MoreMenu = /*#__PURE__*/function (_Component) {
|
|
6859
6860
|
_inherits(MoreMenu, _Component);
|
|
6860
6861
|
|
|
6861
|
-
var _super = _createSuper$
|
|
6862
|
+
var _super = _createSuper$m(MoreMenu);
|
|
6862
6863
|
|
|
6863
6864
|
function MoreMenu() {
|
|
6864
6865
|
_classCallCheck(this, MoreMenu);
|
|
@@ -6892,14 +6893,14 @@ function ownKeys$8(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
6892
6893
|
|
|
6893
6894
|
function _objectSpread$8(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$8(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$8(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
6894
6895
|
|
|
6895
|
-
function _createSuper$
|
|
6896
|
+
function _createSuper$l(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$l(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6896
6897
|
|
|
6897
|
-
function _isNativeReflectConstruct$
|
|
6898
|
+
function _isNativeReflectConstruct$l() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6898
6899
|
|
|
6899
6900
|
var OverlayPage = /*#__PURE__*/function (_Component) {
|
|
6900
6901
|
_inherits(OverlayPage, _Component);
|
|
6901
6902
|
|
|
6902
|
-
var _super = _createSuper$
|
|
6903
|
+
var _super = _createSuper$l(OverlayPage);
|
|
6903
6904
|
|
|
6904
6905
|
function OverlayPage(props) {
|
|
6905
6906
|
var _this;
|
|
@@ -6985,14 +6986,14 @@ function ownKeys$7(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
6985
6986
|
|
|
6986
6987
|
function _objectSpread$7(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$7(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$7(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
6987
6988
|
|
|
6988
|
-
function _createSuper$
|
|
6989
|
+
function _createSuper$k(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$k(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
6989
6990
|
|
|
6990
|
-
function _isNativeReflectConstruct$
|
|
6991
|
+
function _isNativeReflectConstruct$k() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
6991
6992
|
|
|
6992
6993
|
var OverlayPageContents = /*#__PURE__*/function (_Component) {
|
|
6993
6994
|
_inherits(OverlayPageContents, _Component);
|
|
6994
6995
|
|
|
6995
|
-
var _super = _createSuper$
|
|
6996
|
+
var _super = _createSuper$k(OverlayPageContents);
|
|
6996
6997
|
|
|
6997
6998
|
function OverlayPageContents(props) {
|
|
6998
6999
|
var _this;
|
|
@@ -7051,14 +7052,14 @@ function ownKeys$6(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7051
7052
|
|
|
7052
7053
|
function _objectSpread$6(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$6(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$6(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7053
7054
|
|
|
7054
|
-
function _createSuper$
|
|
7055
|
+
function _createSuper$j(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$j(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7055
7056
|
|
|
7056
|
-
function _isNativeReflectConstruct$
|
|
7057
|
+
function _isNativeReflectConstruct$j() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7057
7058
|
|
|
7058
7059
|
var OverlayPageSection = /*#__PURE__*/function (_Component) {
|
|
7059
7060
|
_inherits(OverlayPageSection, _Component);
|
|
7060
7061
|
|
|
7061
|
-
var _super = _createSuper$
|
|
7062
|
+
var _super = _createSuper$j(OverlayPageSection);
|
|
7062
7063
|
|
|
7063
7064
|
function OverlayPageSection() {
|
|
7064
7065
|
_classCallCheck(this, OverlayPageSection);
|
|
@@ -7103,14 +7104,14 @@ function ownKeys$5(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7103
7104
|
|
|
7104
7105
|
function _objectSpread$5(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$5(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$5(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7105
7106
|
|
|
7106
|
-
function _createSuper$
|
|
7107
|
+
function _createSuper$i(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$i(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7107
7108
|
|
|
7108
|
-
function _isNativeReflectConstruct$
|
|
7109
|
+
function _isNativeReflectConstruct$i() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7109
7110
|
|
|
7110
7111
|
var OverlayPageBottomButtons = /*#__PURE__*/function (_Component) {
|
|
7111
7112
|
_inherits(OverlayPageBottomButtons, _Component);
|
|
7112
7113
|
|
|
7113
|
-
var _super = _createSuper$
|
|
7114
|
+
var _super = _createSuper$i(OverlayPageBottomButtons);
|
|
7114
7115
|
|
|
7115
7116
|
function OverlayPageBottomButtons(props) {
|
|
7116
7117
|
var _this;
|
|
@@ -7164,14 +7165,14 @@ var styles$2 = {
|
|
|
7164
7165
|
}
|
|
7165
7166
|
};
|
|
7166
7167
|
|
|
7167
|
-
function _createSuper$
|
|
7168
|
+
function _createSuper$h(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$h(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7168
7169
|
|
|
7169
|
-
function _isNativeReflectConstruct$
|
|
7170
|
+
function _isNativeReflectConstruct$h() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7170
7171
|
|
|
7171
7172
|
var PageTitle = /*#__PURE__*/function (_Component) {
|
|
7172
7173
|
_inherits(PageTitle, _Component);
|
|
7173
7174
|
|
|
7174
|
-
var _super = _createSuper$
|
|
7175
|
+
var _super = _createSuper$h(PageTitle);
|
|
7175
7176
|
|
|
7176
7177
|
function PageTitle() {
|
|
7177
7178
|
_classCallCheck(this, PageTitle);
|
|
@@ -7191,14 +7192,14 @@ var PageTitle = /*#__PURE__*/function (_Component) {
|
|
|
7191
7192
|
return PageTitle;
|
|
7192
7193
|
}(Component);
|
|
7193
7194
|
|
|
7194
|
-
function _createSuper$
|
|
7195
|
+
function _createSuper$g(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$g(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7195
7196
|
|
|
7196
|
-
function _isNativeReflectConstruct$
|
|
7197
|
+
function _isNativeReflectConstruct$g() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7197
7198
|
|
|
7198
7199
|
var Text = /*#__PURE__*/function (_Component) {
|
|
7199
7200
|
_inherits(Text, _Component);
|
|
7200
7201
|
|
|
7201
|
-
var _super = _createSuper$
|
|
7202
|
+
var _super = _createSuper$g(Text);
|
|
7202
7203
|
|
|
7203
7204
|
function Text() {
|
|
7204
7205
|
_classCallCheck(this, Text);
|
|
@@ -7232,14 +7233,14 @@ function ownKeys$4(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7232
7233
|
|
|
7233
7234
|
function _objectSpread$4(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$4(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$4(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7234
7235
|
|
|
7235
|
-
function _createSuper$
|
|
7236
|
+
function _createSuper$f(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$f(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7236
7237
|
|
|
7237
|
-
function _isNativeReflectConstruct$
|
|
7238
|
+
function _isNativeReflectConstruct$f() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7238
7239
|
|
|
7239
7240
|
var ProfilePicComponent = /*#__PURE__*/function (_Component) {
|
|
7240
7241
|
_inherits(ProfilePicComponent, _Component);
|
|
7241
7242
|
|
|
7242
|
-
var _super = _createSuper$
|
|
7243
|
+
var _super = _createSuper$f(ProfilePicComponent);
|
|
7243
7244
|
|
|
7244
7245
|
function ProfilePicComponent() {
|
|
7245
7246
|
_classCallCheck(this, ProfilePicComponent);
|
|
@@ -7295,14 +7296,14 @@ function ownKeys$3(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
7295
7296
|
|
|
7296
7297
|
function _objectSpread$3(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$3(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$3(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
7297
7298
|
|
|
7298
|
-
function _createSuper$
|
|
7299
|
+
function _createSuper$e(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$e(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7299
7300
|
|
|
7300
|
-
function _isNativeReflectConstruct$
|
|
7301
|
+
function _isNativeReflectConstruct$e() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7301
7302
|
|
|
7302
7303
|
var RadioButton = /*#__PURE__*/function (_Component) {
|
|
7303
7304
|
_inherits(RadioButton, _Component);
|
|
7304
7305
|
|
|
7305
|
-
var _super = _createSuper$
|
|
7306
|
+
var _super = _createSuper$e(RadioButton);
|
|
7306
7307
|
|
|
7307
7308
|
function RadioButton() {
|
|
7308
7309
|
_classCallCheck(this, RadioButton);
|
|
@@ -7460,14 +7461,14 @@ var styles$1 = {
|
|
|
7460
7461
|
}
|
|
7461
7462
|
};
|
|
7462
7463
|
|
|
7463
|
-
function _createSuper$
|
|
7464
|
+
function _createSuper$d(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$d(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7464
7465
|
|
|
7465
|
-
function _isNativeReflectConstruct$
|
|
7466
|
+
function _isNativeReflectConstruct$d() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7466
7467
|
|
|
7467
7468
|
var Tag = /*#__PURE__*/function (_Component) {
|
|
7468
7469
|
_inherits(Tag, _Component);
|
|
7469
7470
|
|
|
7470
|
-
var _super = _createSuper$
|
|
7471
|
+
var _super = _createSuper$d(Tag);
|
|
7471
7472
|
|
|
7472
7473
|
function Tag() {
|
|
7473
7474
|
_classCallCheck(this, Tag);
|
|
@@ -7532,14 +7533,14 @@ var Tag = /*#__PURE__*/function (_Component) {
|
|
|
7532
7533
|
return Tag;
|
|
7533
7534
|
}(Component);
|
|
7534
7535
|
|
|
7535
|
-
function _createSuper$
|
|
7536
|
+
function _createSuper$c(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$c(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7536
7537
|
|
|
7537
|
-
function _isNativeReflectConstruct$
|
|
7538
|
+
function _isNativeReflectConstruct$c() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7538
7539
|
|
|
7539
7540
|
var StatusButton = /*#__PURE__*/function (_Component) {
|
|
7540
7541
|
_inherits(StatusButton, _Component);
|
|
7541
7542
|
|
|
7542
|
-
var _super = _createSuper$
|
|
7543
|
+
var _super = _createSuper$c(StatusButton);
|
|
7543
7544
|
|
|
7544
7545
|
function StatusButton() {
|
|
7545
7546
|
_classCallCheck(this, StatusButton);
|
|
@@ -7575,14 +7576,14 @@ var StatusButton = /*#__PURE__*/function (_Component) {
|
|
|
7575
7576
|
return StatusButton;
|
|
7576
7577
|
}(Component);
|
|
7577
7578
|
|
|
7578
|
-
function _createSuper$
|
|
7579
|
+
function _createSuper$b(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$b(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7579
7580
|
|
|
7580
|
-
function _isNativeReflectConstruct$
|
|
7581
|
+
function _isNativeReflectConstruct$b() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7581
7582
|
|
|
7582
7583
|
var SuccessPopup = /*#__PURE__*/function (_Component) {
|
|
7583
7584
|
_inherits(SuccessPopup, _Component);
|
|
7584
7585
|
|
|
7585
|
-
var _super = _createSuper$
|
|
7586
|
+
var _super = _createSuper$b(SuccessPopup);
|
|
7586
7587
|
|
|
7587
7588
|
function SuccessPopup() {
|
|
7588
7589
|
_classCallCheck(this, SuccessPopup);
|
|
@@ -7651,9 +7652,9 @@ var SuccessPopup = /*#__PURE__*/function (_Component) {
|
|
|
7651
7652
|
return SuccessPopup;
|
|
7652
7653
|
}(Component);
|
|
7653
7654
|
|
|
7654
|
-
function _createSuper$
|
|
7655
|
+
function _createSuper$a(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$a(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7655
7656
|
|
|
7656
|
-
function _isNativeReflectConstruct$
|
|
7657
|
+
function _isNativeReflectConstruct$a() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7657
7658
|
|
|
7658
7659
|
var getReactions = function getReactions() {
|
|
7659
7660
|
return [{
|
|
@@ -7674,7 +7675,7 @@ var getReactions = function getReactions() {
|
|
|
7674
7675
|
var Reactions = /*#__PURE__*/function (_Component) {
|
|
7675
7676
|
_inherits(Reactions, _Component);
|
|
7676
7677
|
|
|
7677
|
-
var _super = _createSuper$
|
|
7678
|
+
var _super = _createSuper$a(Reactions);
|
|
7678
7679
|
|
|
7679
7680
|
function Reactions() {
|
|
7680
7681
|
var _this;
|
|
@@ -7760,14 +7761,14 @@ var Reactions = /*#__PURE__*/function (_Component) {
|
|
|
7760
7761
|
return Reactions;
|
|
7761
7762
|
}(Component);
|
|
7762
7763
|
|
|
7763
|
-
function _createSuper$
|
|
7764
|
+
function _createSuper$9(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$9(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7764
7765
|
|
|
7765
|
-
function _isNativeReflectConstruct$
|
|
7766
|
+
function _isNativeReflectConstruct$9() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7766
7767
|
|
|
7767
7768
|
var AnalyticsFilter = /*#__PURE__*/function (_PureComponent) {
|
|
7768
7769
|
_inherits(AnalyticsFilter, _PureComponent);
|
|
7769
7770
|
|
|
7770
|
-
var _super = _createSuper$
|
|
7771
|
+
var _super = _createSuper$9(AnalyticsFilter);
|
|
7771
7772
|
|
|
7772
7773
|
function AnalyticsFilter(props) {
|
|
7773
7774
|
var _this;
|
|
@@ -7884,14 +7885,14 @@ var AnalyticsFilter = /*#__PURE__*/function (_PureComponent) {
|
|
|
7884
7885
|
return AnalyticsFilter;
|
|
7885
7886
|
}(PureComponent);
|
|
7886
7887
|
|
|
7887
|
-
function _createSuper$
|
|
7888
|
+
function _createSuper$8(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$8(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7888
7889
|
|
|
7889
|
-
function _isNativeReflectConstruct$
|
|
7890
|
+
function _isNativeReflectConstruct$8() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7890
7891
|
|
|
7891
7892
|
var UserListing = /*#__PURE__*/function (_Component) {
|
|
7892
7893
|
_inherits(UserListing, _Component);
|
|
7893
7894
|
|
|
7894
|
-
var _super = _createSuper$
|
|
7895
|
+
var _super = _createSuper$8(UserListing);
|
|
7895
7896
|
|
|
7896
7897
|
function UserListing() {
|
|
7897
7898
|
_classCallCheck(this, UserListing);
|
|
@@ -7958,14 +7959,14 @@ var UserListing = /*#__PURE__*/function (_Component) {
|
|
|
7958
7959
|
return UserListing;
|
|
7959
7960
|
}(Component);
|
|
7960
7961
|
|
|
7961
|
-
function _createSuper$
|
|
7962
|
+
function _createSuper$7(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$7(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
7962
7963
|
|
|
7963
|
-
function _isNativeReflectConstruct$
|
|
7964
|
+
function _isNativeReflectConstruct$7() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
7964
7965
|
|
|
7965
7966
|
var TimePicker = /*#__PURE__*/function (_Component) {
|
|
7966
7967
|
_inherits(TimePicker, _Component);
|
|
7967
7968
|
|
|
7968
|
-
var _super = _createSuper$
|
|
7969
|
+
var _super = _createSuper$7(TimePicker);
|
|
7969
7970
|
|
|
7970
7971
|
function TimePicker() {
|
|
7971
7972
|
var _this;
|
|
@@ -8202,14 +8203,14 @@ var TimePicker = /*#__PURE__*/function (_Component) {
|
|
|
8202
8203
|
return TimePicker;
|
|
8203
8204
|
}(Component);
|
|
8204
8205
|
|
|
8205
|
-
function _createSuper$
|
|
8206
|
+
function _createSuper$6(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$6(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8206
8207
|
|
|
8207
|
-
function _isNativeReflectConstruct$
|
|
8208
|
+
function _isNativeReflectConstruct$6() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8208
8209
|
|
|
8209
8210
|
var AudienceIncluder = /*#__PURE__*/function (_Component) {
|
|
8210
8211
|
_inherits(AudienceIncluder, _Component);
|
|
8211
8212
|
|
|
8212
|
-
var _super = _createSuper$
|
|
8213
|
+
var _super = _createSuper$6(AudienceIncluder);
|
|
8213
8214
|
|
|
8214
8215
|
function AudienceIncluder(props) {
|
|
8215
8216
|
var _this;
|
|
@@ -8424,14 +8425,14 @@ function ownKeys$2(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
8424
8425
|
|
|
8425
8426
|
function _objectSpread$2(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$2(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$2(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8426
8427
|
|
|
8427
|
-
function _createSuper$
|
|
8428
|
+
function _createSuper$5(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$5(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8428
8429
|
|
|
8429
|
-
function _isNativeReflectConstruct$
|
|
8430
|
+
function _isNativeReflectConstruct$5() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8430
8431
|
|
|
8431
8432
|
var DropdownInput = /*#__PURE__*/function (_Component) {
|
|
8432
8433
|
_inherits(DropdownInput, _Component);
|
|
8433
8434
|
|
|
8434
|
-
var _super = _createSuper$
|
|
8435
|
+
var _super = _createSuper$5(DropdownInput);
|
|
8435
8436
|
|
|
8436
8437
|
function DropdownInput(props) {
|
|
8437
8438
|
var _this;
|
|
@@ -8685,51 +8686,31 @@ function ownKeys$1(object, enumerableOnly) { var keys = Object.keys(object); if
|
|
|
8685
8686
|
|
|
8686
8687
|
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys$1(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys$1(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
8687
8688
|
|
|
8688
|
-
function _createSuper$
|
|
8689
|
+
function _createSuper$4(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$4(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
8689
8690
|
|
|
8690
|
-
function _isNativeReflectConstruct$
|
|
8691
|
+
function _isNativeReflectConstruct$4() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
8691
8692
|
|
|
8692
8693
|
var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
8693
8694
|
_inherits(AudienceSelector, _Component);
|
|
8694
8695
|
|
|
8695
|
-
var _super = _createSuper$
|
|
8696
|
+
var _super = _createSuper$4(AudienceSelector);
|
|
8696
8697
|
|
|
8697
|
-
function AudienceSelector() {
|
|
8698
|
+
function AudienceSelector(props) {
|
|
8698
8699
|
var _this;
|
|
8699
8700
|
|
|
8700
8701
|
_classCallCheck(this, AudienceSelector);
|
|
8701
8702
|
|
|
8702
|
-
|
|
8703
|
-
args[_key] = arguments[_key];
|
|
8704
|
-
}
|
|
8703
|
+
_this = _super.call(this, props);
|
|
8705
8704
|
|
|
8706
|
-
_this
|
|
8705
|
+
_defineProperty(_assertThisInitialized(_this), "onChangeSelection", function () {
|
|
8706
|
+
var _this$props = _this.props,
|
|
8707
|
+
updateValidation = _this$props.updateValidation,
|
|
8708
|
+
onChange = _this$props.onChange;
|
|
8707
8709
|
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
ShortName: 'Primary'
|
|
8713
|
-
}, {
|
|
8714
|
-
Title: 'All Staff Users',
|
|
8715
|
-
Key: 'staff',
|
|
8716
|
-
ShortName: 'Staff'
|
|
8717
|
-
}, {
|
|
8718
|
-
Title: 'All Linked Users',
|
|
8719
|
-
Key: 'family',
|
|
8720
|
-
ShortName: 'Linked'
|
|
8721
|
-
}],
|
|
8722
|
-
types: [],
|
|
8723
|
-
AudienceType: 'All',
|
|
8724
|
-
showInclude: false,
|
|
8725
|
-
includeList: [],
|
|
8726
|
-
showExclude: false,
|
|
8727
|
-
excludeList: [],
|
|
8728
|
-
Type: '',
|
|
8729
|
-
Category: '',
|
|
8730
|
-
userList: [],
|
|
8731
|
-
tagList: [],
|
|
8732
|
-
AudienceTagList: []
|
|
8710
|
+
var isValid = _this.validateAudienceSelection();
|
|
8711
|
+
|
|
8712
|
+
if (updateValidation) updateValidation(isValid);
|
|
8713
|
+
if (onChange) onChange(_this.getAudienceType(), _this.getAudienceTypeSelection(), isValid);
|
|
8733
8714
|
});
|
|
8734
8715
|
|
|
8735
8716
|
_defineProperty(_assertThisInitialized(_this), "selectTag", function (key) {
|
|
@@ -8739,9 +8720,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8739
8720
|
excludeList: []
|
|
8740
8721
|
});
|
|
8741
8722
|
|
|
8742
|
-
setTimeout(
|
|
8743
|
-
_this.props.updateValidation(_this.validateAudienceSelection());
|
|
8744
|
-
}, 50);
|
|
8723
|
+
setTimeout(_this.onChangeSelection, 50);
|
|
8745
8724
|
});
|
|
8746
8725
|
|
|
8747
8726
|
_defineProperty(_assertThisInitialized(_this), "validateCustom", function () {
|
|
@@ -8749,6 +8728,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8749
8728
|
});
|
|
8750
8729
|
|
|
8751
8730
|
_defineProperty(_assertThisInitialized(_this), "getAvailableAudienceTags", function () {
|
|
8731
|
+
var includeSelected = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
|
|
8752
8732
|
var _this$state = _this.state,
|
|
8753
8733
|
categories = _this$state.categories,
|
|
8754
8734
|
types = _this$state.types,
|
|
@@ -8778,7 +8758,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8778
8758
|
Title: "User Tag: ".concat(t.Title)
|
|
8779
8759
|
};
|
|
8780
8760
|
});
|
|
8781
|
-
|
|
8761
|
+
var result = [].concat(_toConsumableArray(categoryTags), _toConsumableArray(userTypeTags), _toConsumableArray(userTagTags));
|
|
8762
|
+
return includeSelected ? result : result.filter(function (t) {
|
|
8782
8763
|
return !_.some(AudienceTagList, function (at) {
|
|
8783
8764
|
return at.Id === t.Id;
|
|
8784
8765
|
});
|
|
@@ -8790,9 +8771,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8790
8771
|
|
|
8791
8772
|
_this.setState({
|
|
8792
8773
|
AudienceTagList: AudienceTagList
|
|
8793
|
-
},
|
|
8794
|
-
return _this.props.updateValidation(_this.validateAudienceSelection());
|
|
8795
|
-
});
|
|
8774
|
+
}, _this.onChangeSelection);
|
|
8796
8775
|
});
|
|
8797
8776
|
|
|
8798
8777
|
_defineProperty(_assertThisInitialized(_this), "onDetachAudienceTag", function (tag) {
|
|
@@ -8802,26 +8781,58 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8802
8781
|
|
|
8803
8782
|
_this.setState({
|
|
8804
8783
|
AudienceTagList: AudienceTagList
|
|
8805
|
-
},
|
|
8806
|
-
return _this.props.updateValidation(_this.validateAudienceSelection());
|
|
8807
|
-
});
|
|
8784
|
+
}, _this.onChangeSelection);
|
|
8808
8785
|
});
|
|
8809
8786
|
|
|
8787
|
+
_this.state = {
|
|
8788
|
+
categories: [{
|
|
8789
|
+
Title: 'All Primary Users',
|
|
8790
|
+
Key: 'resident',
|
|
8791
|
+
ShortName: 'Primary'
|
|
8792
|
+
}, {
|
|
8793
|
+
Title: 'All Staff Users',
|
|
8794
|
+
Key: 'staff',
|
|
8795
|
+
ShortName: 'Staff'
|
|
8796
|
+
}, {
|
|
8797
|
+
Title: 'All Linked Users',
|
|
8798
|
+
Key: 'family',
|
|
8799
|
+
ShortName: 'Linked'
|
|
8800
|
+
}],
|
|
8801
|
+
types: [],
|
|
8802
|
+
AudienceType: props.audienceType || 'All',
|
|
8803
|
+
showInclude: false,
|
|
8804
|
+
includeList: [],
|
|
8805
|
+
showExclude: false,
|
|
8806
|
+
excludeList: [],
|
|
8807
|
+
Type: '',
|
|
8808
|
+
Category: '',
|
|
8809
|
+
userList: [],
|
|
8810
|
+
tagList: [],
|
|
8811
|
+
AudienceTagList: props.audienceTypeSelection || []
|
|
8812
|
+
};
|
|
8810
8813
|
return _this;
|
|
8811
8814
|
}
|
|
8812
8815
|
|
|
8813
8816
|
_createClass(AudienceSelector, [{
|
|
8814
8817
|
key: "componentDidMount",
|
|
8815
8818
|
value: function componentDidMount() {
|
|
8816
|
-
var _this$
|
|
8817
|
-
disallowUserType = _this$
|
|
8818
|
-
custom = _this$
|
|
8819
|
-
disallowSingleUsers = _this$
|
|
8820
|
-
allowTags = _this$
|
|
8819
|
+
var _this$props2 = this.props,
|
|
8820
|
+
disallowUserType = _this$props2.disallowUserType,
|
|
8821
|
+
custom = _this$props2.custom,
|
|
8822
|
+
disallowSingleUsers = _this$props2.disallowSingleUsers,
|
|
8823
|
+
allowTags = _this$props2.allowTags;
|
|
8821
8824
|
if (!disallowUserType || custom) this.getUserTypes();
|
|
8822
8825
|
if (!disallowSingleUsers) this.getUsers();
|
|
8823
8826
|
if (allowTags || custom) this.getUserTags();
|
|
8824
8827
|
}
|
|
8828
|
+
}, {
|
|
8829
|
+
key: "componentDidUpdate",
|
|
8830
|
+
value: function componentDidUpdate(prevProps) {
|
|
8831
|
+
var newState = {};
|
|
8832
|
+
if (prevProps.audienceType !== this.props.audienceType) newState.AudienceType = this.props.audienceType;
|
|
8833
|
+
if (!_.isEqual(prevProps.audienceTypeSelection, this.props.audienceTypeSelection)) newState.AudienceTagList = this.props.audienceTypeSelection;
|
|
8834
|
+
if (!_.isEmpty(newState)) this.setState(newState);
|
|
8835
|
+
}
|
|
8825
8836
|
}, {
|
|
8826
8837
|
key: "onSubmit",
|
|
8827
8838
|
value: function onSubmit() {
|
|
@@ -8845,12 +8856,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8845
8856
|
Category = _this$state2.Category,
|
|
8846
8857
|
Tag = _this$state2.Tag,
|
|
8847
8858
|
Type = _this$state2.Type;
|
|
8848
|
-
if (AudienceType === 'Custom') return AudienceTagList
|
|
8849
|
-
return {
|
|
8850
|
-
AudienceType: at.AudienceType,
|
|
8851
|
-
AudienceTypeSelection: at.AudienceTypeSelection
|
|
8852
|
-
};
|
|
8853
|
-
});
|
|
8859
|
+
if (AudienceType === 'Custom') return AudienceTagList;
|
|
8854
8860
|
if (AudienceType === 'Category') return Category;
|
|
8855
8861
|
if (AudienceType === 'UserTags') return Tag;
|
|
8856
8862
|
return Type;
|
|
@@ -8905,8 +8911,6 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8905
8911
|
}, {
|
|
8906
8912
|
key: "onChangeOption",
|
|
8907
8913
|
value: function onChangeOption(type) {
|
|
8908
|
-
var _this4 = this;
|
|
8909
|
-
|
|
8910
8914
|
this.setState({
|
|
8911
8915
|
AudienceType: type,
|
|
8912
8916
|
Type: '',
|
|
@@ -8914,20 +8918,18 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8914
8918
|
includeList: [],
|
|
8915
8919
|
excludeList: []
|
|
8916
8920
|
});
|
|
8917
|
-
setTimeout(
|
|
8918
|
-
_this4.props.updateValidation(_this4.validateAudienceSelection());
|
|
8919
|
-
}, 50);
|
|
8921
|
+
setTimeout(this.onChangeSelection, 50);
|
|
8920
8922
|
}
|
|
8921
8923
|
}, {
|
|
8922
8924
|
key: "getOptions",
|
|
8923
8925
|
value: function getOptions() {
|
|
8924
|
-
var
|
|
8926
|
+
var _this4 = this;
|
|
8925
8927
|
|
|
8926
8928
|
var options = [{
|
|
8927
8929
|
Label: 'All users',
|
|
8928
8930
|
Value: 'All',
|
|
8929
8931
|
onChange: function onChange() {
|
|
8930
|
-
return
|
|
8932
|
+
return _this4.onChangeOption('All');
|
|
8931
8933
|
}
|
|
8932
8934
|
}];
|
|
8933
8935
|
|
|
@@ -8936,7 +8938,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8936
8938
|
Label: 'Custom',
|
|
8937
8939
|
Value: 'Custom',
|
|
8938
8940
|
onChange: function onChange() {
|
|
8939
|
-
return
|
|
8941
|
+
return _this4.onChangeOption('Custom');
|
|
8940
8942
|
}
|
|
8941
8943
|
});
|
|
8942
8944
|
} else {
|
|
@@ -8944,7 +8946,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8944
8946
|
Label: 'By user category',
|
|
8945
8947
|
Value: 'Category',
|
|
8946
8948
|
onChange: function onChange() {
|
|
8947
|
-
return
|
|
8949
|
+
return _this4.onChangeOption('Category');
|
|
8948
8950
|
}
|
|
8949
8951
|
});
|
|
8950
8952
|
}
|
|
@@ -8954,7 +8956,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8954
8956
|
Label: 'By user type',
|
|
8955
8957
|
Value: 'UserType',
|
|
8956
8958
|
onChange: function onChange() {
|
|
8957
|
-
return
|
|
8959
|
+
return _this4.onChangeOption('UserType');
|
|
8958
8960
|
}
|
|
8959
8961
|
});
|
|
8960
8962
|
}
|
|
@@ -8964,7 +8966,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8964
8966
|
Label: 'By user tag',
|
|
8965
8967
|
Value: 'UserTags',
|
|
8966
8968
|
onChange: function onChange() {
|
|
8967
|
-
return
|
|
8969
|
+
return _this4.onChangeOption('UserTags');
|
|
8968
8970
|
}
|
|
8969
8971
|
});
|
|
8970
8972
|
}
|
|
@@ -8974,7 +8976,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8974
8976
|
Label: 'To single users',
|
|
8975
8977
|
Value: 'User',
|
|
8976
8978
|
onChange: function onChange() {
|
|
8977
|
-
return
|
|
8979
|
+
return _this4.onChangeOption('User');
|
|
8978
8980
|
}
|
|
8979
8981
|
});
|
|
8980
8982
|
}
|
|
@@ -8997,24 +8999,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
8997
8999
|
}, {
|
|
8998
9000
|
key: "selectType",
|
|
8999
9001
|
value: function selectType(key) {
|
|
9000
|
-
var _this6 = this;
|
|
9001
|
-
|
|
9002
9002
|
this.setState({
|
|
9003
9003
|
Type: key,
|
|
9004
9004
|
includeList: [],
|
|
9005
9005
|
excludeList: []
|
|
9006
9006
|
});
|
|
9007
|
-
setTimeout(
|
|
9008
|
-
_this6.props.updateValidation(_this6.validateAudienceSelection());
|
|
9009
|
-
}, 50);
|
|
9007
|
+
setTimeout(this.onChangeSelection, 50);
|
|
9010
9008
|
}
|
|
9011
9009
|
}, {
|
|
9012
9010
|
key: "getTypeTitle",
|
|
9013
9011
|
value: function getTypeTitle() {
|
|
9014
|
-
var
|
|
9012
|
+
var _this5 = this;
|
|
9015
9013
|
|
|
9016
9014
|
var typeObject = _.find(this.state.types, function (t) {
|
|
9017
|
-
return t.typeName ===
|
|
9015
|
+
return t.typeName === _this5.state.Type;
|
|
9018
9016
|
});
|
|
9019
9017
|
|
|
9020
9018
|
if (typeObject) {
|
|
@@ -9026,10 +9024,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9026
9024
|
}, {
|
|
9027
9025
|
key: "getTagTitle",
|
|
9028
9026
|
value: function getTagTitle() {
|
|
9029
|
-
var
|
|
9027
|
+
var _this6 = this;
|
|
9030
9028
|
|
|
9031
9029
|
var tag = _.find(this.state.tagList, function (t) {
|
|
9032
|
-
return t.Id ===
|
|
9030
|
+
return t.Id === _this6.state.Tag;
|
|
9033
9031
|
});
|
|
9034
9032
|
|
|
9035
9033
|
if (tag) {
|
|
@@ -9041,10 +9039,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9041
9039
|
}, {
|
|
9042
9040
|
key: "getUserTypes",
|
|
9043
9041
|
value: function getUserTypes() {
|
|
9044
|
-
var
|
|
9042
|
+
var _this7 = this;
|
|
9045
9043
|
|
|
9046
9044
|
typeActions.getUserTypes(this.props.auth.site).then(function (res) {
|
|
9047
|
-
|
|
9045
|
+
_this7.props.setAuth({
|
|
9048
9046
|
userTypes: _.cloneDeep(res.data)
|
|
9049
9047
|
});
|
|
9050
9048
|
|
|
@@ -9053,7 +9051,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9053
9051
|
e.Key = e.typeName;
|
|
9054
9052
|
|
|
9055
9053
|
if (e.category) {
|
|
9056
|
-
var category = _.find(
|
|
9054
|
+
var category = _.find(_this7.state.categories, function (c) {
|
|
9057
9055
|
return c.Key === e.category;
|
|
9058
9056
|
});
|
|
9059
9057
|
|
|
@@ -9062,7 +9060,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9062
9060
|
}
|
|
9063
9061
|
});
|
|
9064
9062
|
|
|
9065
|
-
|
|
9063
|
+
_this7.setState({
|
|
9066
9064
|
types: res.data
|
|
9067
9065
|
});
|
|
9068
9066
|
}).catch(function (error) {});
|
|
@@ -9070,12 +9068,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9070
9068
|
}, {
|
|
9071
9069
|
key: "getUserList",
|
|
9072
9070
|
value: function getUserList() {
|
|
9073
|
-
var
|
|
9071
|
+
var _this8 = this;
|
|
9074
9072
|
|
|
9075
9073
|
if (this.state.AudienceType === 'UserType' && !_.isEmpty(this.state.Type)) {
|
|
9076
9074
|
var users = [];
|
|
9077
9075
|
this.state.userList.forEach(function (element) {
|
|
9078
|
-
if (element.type !==
|
|
9076
|
+
if (element.type !== _this8.state.Type) users.push(element);
|
|
9079
9077
|
});
|
|
9080
9078
|
return _.sortBy(users, 'displayName');
|
|
9081
9079
|
}
|
|
@@ -9084,7 +9082,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9084
9082
|
var _users = [];
|
|
9085
9083
|
|
|
9086
9084
|
var types = _.filter(this.state.types, function (type) {
|
|
9087
|
-
return type.category ===
|
|
9085
|
+
return type.category === _this8.state.Category;
|
|
9088
9086
|
}).map(function (type) {
|
|
9089
9087
|
return type.typeName;
|
|
9090
9088
|
});
|
|
@@ -9102,24 +9100,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9102
9100
|
}, {
|
|
9103
9101
|
key: "selectCat",
|
|
9104
9102
|
value: function selectCat(key, e) {
|
|
9105
|
-
var _this11 = this;
|
|
9106
|
-
|
|
9107
9103
|
this.setState({
|
|
9108
9104
|
Category: key,
|
|
9109
9105
|
includeList: [],
|
|
9110
9106
|
excludeList: []
|
|
9111
9107
|
});
|
|
9112
|
-
setTimeout(
|
|
9113
|
-
_this11.props.updateValidation(_this11.validateAudienceSelection());
|
|
9114
|
-
}, 50);
|
|
9108
|
+
setTimeout(this.onChangeSelection, 50);
|
|
9115
9109
|
}
|
|
9116
9110
|
}, {
|
|
9117
9111
|
key: "getCatTitle",
|
|
9118
9112
|
value: function getCatTitle() {
|
|
9119
|
-
var
|
|
9113
|
+
var _this9 = this;
|
|
9120
9114
|
|
|
9121
9115
|
var typeObject = _.find(this.state.categories, function (t) {
|
|
9122
|
-
return t.Key ===
|
|
9116
|
+
return t.Key === _this9.state.Category;
|
|
9123
9117
|
});
|
|
9124
9118
|
|
|
9125
9119
|
if (typeObject) {
|
|
@@ -9175,12 +9169,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9175
9169
|
}, {
|
|
9176
9170
|
key: "getUserExcludeList",
|
|
9177
9171
|
value: function getUserExcludeList() {
|
|
9178
|
-
var
|
|
9172
|
+
var _this10 = this;
|
|
9179
9173
|
|
|
9180
9174
|
if (this.state.AudienceType === 'UserType' && !_.isEmpty(this.state.Type)) {
|
|
9181
9175
|
var users = [];
|
|
9182
9176
|
this.state.userList.forEach(function (element) {
|
|
9183
|
-
if (element.type ===
|
|
9177
|
+
if (element.type === _this10.state.Type) users.push(element);
|
|
9184
9178
|
});
|
|
9185
9179
|
return _.sortBy(users, 'displayName');
|
|
9186
9180
|
}
|
|
@@ -9189,7 +9183,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9189
9183
|
var _users2 = [];
|
|
9190
9184
|
|
|
9191
9185
|
var types = _.filter(this.state.types, function (type) {
|
|
9192
|
-
return type.category ===
|
|
9186
|
+
return type.category === _this10.state.Category;
|
|
9193
9187
|
}).map(function (type) {
|
|
9194
9188
|
return type.typeName;
|
|
9195
9189
|
});
|
|
@@ -9207,8 +9201,6 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9207
9201
|
}, {
|
|
9208
9202
|
key: "addToInc",
|
|
9209
9203
|
value: function addToInc(user) {
|
|
9210
|
-
var _this14 = this;
|
|
9211
|
-
|
|
9212
9204
|
var list = _toConsumableArray(this.state.includeList);
|
|
9213
9205
|
|
|
9214
9206
|
list.push({
|
|
@@ -9219,23 +9211,17 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9219
9211
|
this.setState({
|
|
9220
9212
|
includeList: list
|
|
9221
9213
|
});
|
|
9222
|
-
setTimeout(
|
|
9223
|
-
_this14.props.updateValidation(_this14.validateAudienceSelection());
|
|
9224
|
-
}, 50);
|
|
9214
|
+
setTimeout(this.onChangeSelection, 50);
|
|
9225
9215
|
}
|
|
9226
9216
|
}, {
|
|
9227
9217
|
key: "removeUserInc",
|
|
9228
9218
|
value: function removeUserInc(user) {
|
|
9229
|
-
var _this15 = this;
|
|
9230
|
-
|
|
9231
9219
|
this.setState({
|
|
9232
9220
|
includeList: _.filter(this.state.includeList, function (ev) {
|
|
9233
9221
|
return ev.Id !== user.Id;
|
|
9234
9222
|
})
|
|
9235
9223
|
});
|
|
9236
|
-
setTimeout(
|
|
9237
|
-
_this15.props.updateValidation(_this15.validateAudienceSelection());
|
|
9238
|
-
}, 50);
|
|
9224
|
+
setTimeout(this.onChangeSelection, 50);
|
|
9239
9225
|
}
|
|
9240
9226
|
}, {
|
|
9241
9227
|
key: "addToEx",
|
|
@@ -9263,7 +9249,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9263
9249
|
}, {
|
|
9264
9250
|
key: "renderExcludes",
|
|
9265
9251
|
value: function renderExcludes() {
|
|
9266
|
-
var
|
|
9252
|
+
var _this11 = this;
|
|
9267
9253
|
|
|
9268
9254
|
if (!this.showUserPickers(false)) {
|
|
9269
9255
|
return null;
|
|
@@ -9275,8 +9261,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9275
9261
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9276
9262
|
className: "flex flex-between pointer",
|
|
9277
9263
|
onClick: function onClick() {
|
|
9278
|
-
|
|
9279
|
-
showExclude: !
|
|
9264
|
+
_this11.setState({
|
|
9265
|
+
showExclude: !_this11.state.showExclude
|
|
9280
9266
|
});
|
|
9281
9267
|
}
|
|
9282
9268
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -9300,7 +9286,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9300
9286
|
}, {
|
|
9301
9287
|
key: "renderIncludes",
|
|
9302
9288
|
value: function renderIncludes() {
|
|
9303
|
-
var
|
|
9289
|
+
var _this12 = this;
|
|
9304
9290
|
|
|
9305
9291
|
if (!this.showUserPickers(true)) {
|
|
9306
9292
|
return null;
|
|
@@ -9312,8 +9298,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9312
9298
|
}, /*#__PURE__*/React.createElement("div", {
|
|
9313
9299
|
className: "flex flex-between pointer",
|
|
9314
9300
|
onClick: function onClick() {
|
|
9315
|
-
|
|
9316
|
-
showInclude: !
|
|
9301
|
+
_this12.setState({
|
|
9302
|
+
showInclude: !_this12.state.showInclude
|
|
9317
9303
|
});
|
|
9318
9304
|
}
|
|
9319
9305
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -9337,7 +9323,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9337
9323
|
}, {
|
|
9338
9324
|
key: "renderAssignedAudiences",
|
|
9339
9325
|
value: function renderAssignedAudiences() {
|
|
9340
|
-
var
|
|
9326
|
+
var _this13 = this;
|
|
9341
9327
|
|
|
9342
9328
|
var AudienceTagList = this.state.AudienceTagList;
|
|
9343
9329
|
var maxWidth = this.props.maxWidth;
|
|
@@ -9356,7 +9342,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9356
9342
|
text: t.Title,
|
|
9357
9343
|
rightIcon: "remove",
|
|
9358
9344
|
rightClick: function rightClick() {
|
|
9359
|
-
return
|
|
9345
|
+
return _this13.onDetachAudienceTag(t);
|
|
9360
9346
|
}
|
|
9361
9347
|
});
|
|
9362
9348
|
}));
|
|
@@ -9364,7 +9350,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9364
9350
|
}, {
|
|
9365
9351
|
key: "renderAvailableAudiences",
|
|
9366
9352
|
value: function renderAvailableAudiences() {
|
|
9367
|
-
var
|
|
9353
|
+
var _this14 = this;
|
|
9368
9354
|
|
|
9369
9355
|
var maxWidth = this.props.maxWidth;
|
|
9370
9356
|
var tags = this.getAvailableAudienceTags();
|
|
@@ -9379,7 +9365,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9379
9365
|
className: "marginLeft-16 marginBottom-8",
|
|
9380
9366
|
text: t.Title,
|
|
9381
9367
|
onClick: function onClick() {
|
|
9382
|
-
return
|
|
9368
|
+
return _this14.onAttachAudienceTag(t);
|
|
9383
9369
|
}
|
|
9384
9370
|
});
|
|
9385
9371
|
}));
|
|
@@ -9400,7 +9386,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9400
9386
|
}, {
|
|
9401
9387
|
key: "render",
|
|
9402
9388
|
value: function render() {
|
|
9403
|
-
var
|
|
9389
|
+
var _this15 = this;
|
|
9404
9390
|
|
|
9405
9391
|
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
|
|
9406
9392
|
type: "formTitleSmall",
|
|
@@ -9422,10 +9408,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9422
9408
|
placeholder: "User Category",
|
|
9423
9409
|
value: this.getCatTitle(),
|
|
9424
9410
|
isValid: function isValid() {
|
|
9425
|
-
return
|
|
9411
|
+
return _this15.validateCategory();
|
|
9426
9412
|
},
|
|
9427
9413
|
showError: function showError() {
|
|
9428
|
-
return
|
|
9414
|
+
return _this15.state.showWarnings && !_this15.validateCategory();
|
|
9429
9415
|
},
|
|
9430
9416
|
options: this.state.categories,
|
|
9431
9417
|
onSelect: this.selectCat.bind(this),
|
|
@@ -9442,10 +9428,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9442
9428
|
placeholder: "User Type",
|
|
9443
9429
|
value: this.getTypeTitle(),
|
|
9444
9430
|
isValid: function isValid() {
|
|
9445
|
-
return
|
|
9431
|
+
return _this15.validateType();
|
|
9446
9432
|
},
|
|
9447
9433
|
showError: function showError() {
|
|
9448
|
-
return
|
|
9434
|
+
return _this15.state.showWarnings && !_this15.validateType();
|
|
9449
9435
|
},
|
|
9450
9436
|
options: this.state.types,
|
|
9451
9437
|
onSelect: this.selectType.bind(this),
|
|
@@ -9461,10 +9447,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
|
|
|
9461
9447
|
placeholder: "User Tag",
|
|
9462
9448
|
value: this.getTagTitle(),
|
|
9463
9449
|
isValid: function isValid() {
|
|
9464
|
-
return
|
|
9450
|
+
return _this15.validateTag();
|
|
9465
9451
|
},
|
|
9466
9452
|
showError: function showError() {
|
|
9467
|
-
return
|
|
9453
|
+
return _this15.state.showWarnings && !_this15.validateTag();
|
|
9468
9454
|
},
|
|
9469
9455
|
options: this.state.tagList,
|
|
9470
9456
|
onSelect: this.selectTag,
|
|
@@ -9487,14 +9473,14 @@ var toExport = connect(null, {
|
|
|
9487
9473
|
withRef: true
|
|
9488
9474
|
})(AudienceSelector);
|
|
9489
9475
|
|
|
9490
|
-
function _createSuper$
|
|
9476
|
+
function _createSuper$3(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$3(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9491
9477
|
|
|
9492
|
-
function _isNativeReflectConstruct$
|
|
9478
|
+
function _isNativeReflectConstruct$3() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9493
9479
|
|
|
9494
9480
|
var TextFormatPopup = /*#__PURE__*/function (_Component) {
|
|
9495
9481
|
_inherits(TextFormatPopup, _Component);
|
|
9496
9482
|
|
|
9497
|
-
var _super = _createSuper$
|
|
9483
|
+
var _super = _createSuper$3(TextFormatPopup);
|
|
9498
9484
|
|
|
9499
9485
|
function TextFormatPopup() {
|
|
9500
9486
|
_classCallCheck(this, TextFormatPopup);
|
|
@@ -9600,14 +9586,14 @@ var TextFormatPopup = /*#__PURE__*/function (_Component) {
|
|
|
9600
9586
|
return TextFormatPopup;
|
|
9601
9587
|
}(Component);
|
|
9602
9588
|
|
|
9603
|
-
function _createSuper$
|
|
9589
|
+
function _createSuper$2(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$2(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9604
9590
|
|
|
9605
|
-
function _isNativeReflectConstruct$
|
|
9591
|
+
function _isNativeReflectConstruct$2() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9606
9592
|
|
|
9607
9593
|
var OptionsSection = /*#__PURE__*/function (_Component) {
|
|
9608
9594
|
_inherits(OptionsSection, _Component);
|
|
9609
9595
|
|
|
9610
|
-
var _super = _createSuper$
|
|
9596
|
+
var _super = _createSuper$2(OptionsSection);
|
|
9611
9597
|
|
|
9612
9598
|
function OptionsSection() {
|
|
9613
9599
|
_classCallCheck(this, OptionsSection);
|
|
@@ -9689,14 +9675,14 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
9689
9675
|
|
|
9690
9676
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
9691
9677
|
|
|
9692
|
-
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9678
|
+
function _createSuper$1(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct$1(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
9693
9679
|
|
|
9694
|
-
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9680
|
+
function _isNativeReflectConstruct$1() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
9695
9681
|
|
|
9696
9682
|
var MakerPopup = /*#__PURE__*/function (_Component) {
|
|
9697
9683
|
_inherits(MakerPopup, _Component);
|
|
9698
9684
|
|
|
9699
|
-
var _super = _createSuper(MakerPopup);
|
|
9685
|
+
var _super = _createSuper$1(MakerPopup);
|
|
9700
9686
|
|
|
9701
9687
|
function MakerPopup(props) {
|
|
9702
9688
|
var _this;
|
|
@@ -10012,6 +9998,160 @@ var mapStateToProps = function mapStateToProps(state) {
|
|
|
10012
9998
|
|
|
10013
9999
|
var exportObj = connect(mapStateToProps, {})(MakerPopup);
|
|
10014
10000
|
|
|
10001
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10002
|
+
|
|
10003
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
10004
|
+
|
|
10005
|
+
var ExportCsvPopup = /*#__PURE__*/function (_Component) {
|
|
10006
|
+
_inherits(ExportCsvPopup, _Component);
|
|
10007
|
+
|
|
10008
|
+
var _super = _createSuper(ExportCsvPopup);
|
|
10009
|
+
|
|
10010
|
+
function ExportCsvPopup(props) {
|
|
10011
|
+
var _this;
|
|
10012
|
+
|
|
10013
|
+
_classCallCheck(this, ExportCsvPopup);
|
|
10014
|
+
|
|
10015
|
+
_this = _super.call(this, props);
|
|
10016
|
+
|
|
10017
|
+
_defineProperty(_assertThisInitialized(_this), "canSave", function () {
|
|
10018
|
+
return _.some(_this.state.columns, function (c) {
|
|
10019
|
+
return c.selected;
|
|
10020
|
+
});
|
|
10021
|
+
});
|
|
10022
|
+
|
|
10023
|
+
_defineProperty(_assertThisInitialized(_this), "onConfirm", function () {
|
|
10024
|
+
return _this.canSave();
|
|
10025
|
+
});
|
|
10026
|
+
|
|
10027
|
+
_defineProperty(_assertThisInitialized(_this), "onClose", function () {
|
|
10028
|
+
if (_this.props.onClose) _this.props.onClose();
|
|
10029
|
+
});
|
|
10030
|
+
|
|
10031
|
+
_defineProperty(_assertThisInitialized(_this), "onToggleColumn", function (key) {
|
|
10032
|
+
var source = _this.props.source;
|
|
10033
|
+
|
|
10034
|
+
var columns = _.cloneDeep(_this.state.columns);
|
|
10035
|
+
|
|
10036
|
+
var column = columns.find(function (c) {
|
|
10037
|
+
return c.key === key;
|
|
10038
|
+
});
|
|
10039
|
+
|
|
10040
|
+
if (column) {
|
|
10041
|
+
column.selected = !column.selected;
|
|
10042
|
+
if (!column.key) columns.map(function (c) {
|
|
10043
|
+
return c.selected = column.selected;
|
|
10044
|
+
}); // Toggle all
|
|
10045
|
+
|
|
10046
|
+
var selectedHeaders = columns.filter(function (c) {
|
|
10047
|
+
return c.key && c.selected;
|
|
10048
|
+
});
|
|
10049
|
+
var selectedheaderKeys = selectedHeaders.map(function (h) {
|
|
10050
|
+
return h.key;
|
|
10051
|
+
});
|
|
10052
|
+
var selectedSource = source.map(function (i) {
|
|
10053
|
+
return _.pick(i, selectedheaderKeys);
|
|
10054
|
+
});
|
|
10055
|
+
|
|
10056
|
+
_this.setState({
|
|
10057
|
+
columns: columns,
|
|
10058
|
+
selectedHeaders: selectedHeaders,
|
|
10059
|
+
selectedSource: selectedSource
|
|
10060
|
+
});
|
|
10061
|
+
}
|
|
10062
|
+
});
|
|
10063
|
+
|
|
10064
|
+
_defineProperty(_assertThisInitialized(_this), "renderContent", function () {
|
|
10065
|
+
var _this$state = _this.state,
|
|
10066
|
+
saving = _this$state.saving,
|
|
10067
|
+
columns = _this$state.columns;
|
|
10068
|
+
|
|
10069
|
+
if (saving) {
|
|
10070
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10071
|
+
className: "marginTop-32",
|
|
10072
|
+
style: {
|
|
10073
|
+
maxWidth: 500,
|
|
10074
|
+
textAlign: 'center'
|
|
10075
|
+
}
|
|
10076
|
+
}, /*#__PURE__*/React.createElement(FontAwesome, {
|
|
10077
|
+
style: {
|
|
10078
|
+
fontSize: 30
|
|
10079
|
+
},
|
|
10080
|
+
name: "spinner fa-pulse fa-fw"
|
|
10081
|
+
}));
|
|
10082
|
+
}
|
|
10083
|
+
|
|
10084
|
+
if (!columns) return null;
|
|
10085
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
10086
|
+
className: "marginTop-16"
|
|
10087
|
+
}, columns.map(function (c) {
|
|
10088
|
+
return /*#__PURE__*/React.createElement(CheckBox, {
|
|
10089
|
+
key: c.key,
|
|
10090
|
+
label: c.label,
|
|
10091
|
+
isActive: c.selected,
|
|
10092
|
+
onChange: function onChange() {
|
|
10093
|
+
return _this.onToggleColumn(c.key);
|
|
10094
|
+
},
|
|
10095
|
+
style: {
|
|
10096
|
+
marginBottom: 8
|
|
10097
|
+
}
|
|
10098
|
+
});
|
|
10099
|
+
}));
|
|
10100
|
+
});
|
|
10101
|
+
|
|
10102
|
+
_this.state = {
|
|
10103
|
+
columns: props.columns,
|
|
10104
|
+
selectedSource: [],
|
|
10105
|
+
saving: false
|
|
10106
|
+
};
|
|
10107
|
+
return _this;
|
|
10108
|
+
}
|
|
10109
|
+
|
|
10110
|
+
_createClass(ExportCsvPopup, [{
|
|
10111
|
+
key: "render",
|
|
10112
|
+
value: function render() {
|
|
10113
|
+
var _this$state2 = this.state,
|
|
10114
|
+
selectedHeaders = _this$state2.selectedHeaders,
|
|
10115
|
+
selectedSource = _this$state2.selectedSource;
|
|
10116
|
+
var filename = this.props.filename;
|
|
10117
|
+
var buttons = [{
|
|
10118
|
+
type: 'primary',
|
|
10119
|
+
isActive: this.canSave(),
|
|
10120
|
+
text: /*#__PURE__*/React.createElement(CSVLink, {
|
|
10121
|
+
headers: selectedHeaders,
|
|
10122
|
+
data: selectedSource,
|
|
10123
|
+
style: {
|
|
10124
|
+
textDecoration: 'none',
|
|
10125
|
+
color: '#fff'
|
|
10126
|
+
},
|
|
10127
|
+
filename: filename || 'export.csv',
|
|
10128
|
+
onClick: this.onConfirm
|
|
10129
|
+
}, "Confirm")
|
|
10130
|
+
}, {
|
|
10131
|
+
type: 'tertiary',
|
|
10132
|
+
onClick: this.onClose,
|
|
10133
|
+
isActive: true,
|
|
10134
|
+
text: 'Close'
|
|
10135
|
+
}];
|
|
10136
|
+
return /*#__PURE__*/React.createElement(Popup, {
|
|
10137
|
+
title: "Confirm Export",
|
|
10138
|
+
subtitle: "Select which columns to include in the export",
|
|
10139
|
+
boxClasses: "flex flex-column",
|
|
10140
|
+
innerClasses: "flex flex-column fillSpace flex-1",
|
|
10141
|
+
minWidth: 500,
|
|
10142
|
+
maxWidth: 500,
|
|
10143
|
+
minHeight: '50vh',
|
|
10144
|
+
maxHeight: '100vh',
|
|
10145
|
+
hasPadding: true,
|
|
10146
|
+
onClose: this.onClose,
|
|
10147
|
+
buttons: buttons
|
|
10148
|
+
}, this.renderContent());
|
|
10149
|
+
}
|
|
10150
|
+
}]);
|
|
10151
|
+
|
|
10152
|
+
return ExportCsvPopup;
|
|
10153
|
+
}(Component);
|
|
10154
|
+
|
|
10015
10155
|
var index = /*#__PURE__*/Object.freeze({
|
|
10016
10156
|
__proto__: null,
|
|
10017
10157
|
AddButton: AddButton,
|
|
@@ -10046,7 +10186,8 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
10046
10186
|
TextFormatPopup: TextFormatPopup,
|
|
10047
10187
|
OptionsSection: OptionsSection,
|
|
10048
10188
|
DropdownInput: DropdownInput,
|
|
10049
|
-
MakerPopup: exportObj
|
|
10189
|
+
MakerPopup: exportObj,
|
|
10190
|
+
ExportCsvPopup: ExportCsvPopup
|
|
10050
10191
|
});
|
|
10051
10192
|
|
|
10052
10193
|
export { index$1 as Actions, analytics as Analytics, index$2 as Apis, colours as Colours, index as Components, CoreConfig as Config, index$3 as Helper, session as Session };
|