@plusscommunities/pluss-core-web 1.2.5 → 1.2.9-beta.0

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 CHANGED
@@ -8311,7 +8311,8 @@ var TimePicker = /*#__PURE__*/function (_Component) {
8311
8311
 
8312
8312
  if (disabled) {
8313
8313
  return /*#__PURE__*/React__default['default'].createElement("div", {
8314
- className: "timepicker disabled"
8314
+ className: "timepicker disabled",
8315
+ style: this.props.style
8315
8316
  }, /*#__PURE__*/React__default['default'].createElement("span", {
8316
8317
  className: "timepicker__span",
8317
8318
  style: this.props.inputStyle
@@ -8319,7 +8320,8 @@ var TimePicker = /*#__PURE__*/function (_Component) {
8319
8320
  }
8320
8321
 
8321
8322
  return /*#__PURE__*/React__default['default'].createElement("div", {
8322
- className: "timepicker ".concat(this.props.className)
8323
+ className: "timepicker ".concat(this.props.className),
8324
+ style: this.props.style
8323
8325
  }, /*#__PURE__*/React__default['default'].createElement("input", {
8324
8326
  className: "timepicker__input",
8325
8327
  maxLength: "2",
@@ -8853,42 +8855,22 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8853
8855
 
8854
8856
  var _super = _createSuper$4(AudienceSelector);
8855
8857
 
8856
- function AudienceSelector() {
8858
+ function AudienceSelector(props) {
8857
8859
  var _this;
8858
8860
 
8859
8861
  _classCallCheck__default['default'](this, AudienceSelector);
8860
8862
 
8861
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8862
- args[_key] = arguments[_key];
8863
- }
8863
+ _this = _super.call(this, props);
8864
8864
 
8865
- _this = _super.call.apply(_super, [this].concat(args));
8865
+ _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "onChangeSelection", function () {
8866
+ var _this$props = _this.props,
8867
+ updateValidation = _this$props.updateValidation,
8868
+ onChange = _this$props.onChange;
8866
8869
 
8867
- _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "state", {
8868
- categories: [{
8869
- Title: 'All Primary Users',
8870
- Key: 'resident',
8871
- ShortName: 'Primary'
8872
- }, {
8873
- Title: 'All Staff Users',
8874
- Key: 'staff',
8875
- ShortName: 'Staff'
8876
- }, {
8877
- Title: 'All Linked Users',
8878
- Key: 'family',
8879
- ShortName: 'Linked'
8880
- }],
8881
- types: [],
8882
- AudienceType: 'All',
8883
- showInclude: false,
8884
- includeList: [],
8885
- showExclude: false,
8886
- excludeList: [],
8887
- Type: '',
8888
- Category: '',
8889
- userList: [],
8890
- tagList: [],
8891
- AudienceTagList: []
8870
+ var isValid = _this.validateAudienceSelection();
8871
+
8872
+ if (updateValidation) updateValidation(isValid);
8873
+ if (onChange) onChange(_this.getAudienceType(), _this.getAudienceTypeSelection(), isValid);
8892
8874
  });
8893
8875
 
8894
8876
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "selectTag", function (key) {
@@ -8898,9 +8880,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8898
8880
  excludeList: []
8899
8881
  });
8900
8882
 
8901
- setTimeout(function () {
8902
- _this.props.updateValidation(_this.validateAudienceSelection());
8903
- }, 50);
8883
+ setTimeout(_this.onChangeSelection, 50);
8904
8884
  });
8905
8885
 
8906
8886
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "validateCustom", function () {
@@ -8908,6 +8888,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8908
8888
  });
8909
8889
 
8910
8890
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "getAvailableAudienceTags", function () {
8891
+ var includeSelected = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
8911
8892
  var _this$state = _this.state,
8912
8893
  categories = _this$state.categories,
8913
8894
  types = _this$state.types,
@@ -8937,7 +8918,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8937
8918
  Title: "User Tag: ".concat(t.Title)
8938
8919
  };
8939
8920
  });
8940
- return [].concat(_toConsumableArray__default['default'](categoryTags), _toConsumableArray__default['default'](userTypeTags), _toConsumableArray__default['default'](userTagTags)).filter(function (t) {
8921
+ var result = [].concat(_toConsumableArray__default['default'](categoryTags), _toConsumableArray__default['default'](userTypeTags), _toConsumableArray__default['default'](userTagTags));
8922
+ return includeSelected ? result : result.filter(function (t) {
8941
8923
  return !___default['default'].some(AudienceTagList, function (at) {
8942
8924
  return at.Id === t.Id;
8943
8925
  });
@@ -8949,9 +8931,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8949
8931
 
8950
8932
  _this.setState({
8951
8933
  AudienceTagList: AudienceTagList
8952
- }, function () {
8953
- return _this.props.updateValidation(_this.validateAudienceSelection());
8954
- });
8934
+ }, _this.onChangeSelection);
8955
8935
  });
8956
8936
 
8957
8937
  _defineProperty__default['default'](_assertThisInitialized__default['default'](_this), "onDetachAudienceTag", function (tag) {
@@ -8961,26 +8941,58 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8961
8941
 
8962
8942
  _this.setState({
8963
8943
  AudienceTagList: AudienceTagList
8964
- }, function () {
8965
- return _this.props.updateValidation(_this.validateAudienceSelection());
8966
- });
8944
+ }, _this.onChangeSelection);
8967
8945
  });
8968
8946
 
8947
+ _this.state = {
8948
+ categories: [{
8949
+ Title: 'All Primary Users',
8950
+ Key: 'resident',
8951
+ ShortName: 'Primary'
8952
+ }, {
8953
+ Title: 'All Staff Users',
8954
+ Key: 'staff',
8955
+ ShortName: 'Staff'
8956
+ }, {
8957
+ Title: 'All Linked Users',
8958
+ Key: 'family',
8959
+ ShortName: 'Linked'
8960
+ }],
8961
+ types: [],
8962
+ AudienceType: props.audienceType || 'All',
8963
+ showInclude: false,
8964
+ includeList: [],
8965
+ showExclude: false,
8966
+ excludeList: [],
8967
+ Type: '',
8968
+ Category: '',
8969
+ userList: [],
8970
+ tagList: [],
8971
+ AudienceTagList: props.audienceTypeSelection || []
8972
+ };
8969
8973
  return _this;
8970
8974
  }
8971
8975
 
8972
8976
  _createClass__default['default'](AudienceSelector, [{
8973
8977
  key: "componentDidMount",
8974
8978
  value: function componentDidMount() {
8975
- var _this$props = this.props,
8976
- disallowUserType = _this$props.disallowUserType,
8977
- custom = _this$props.custom,
8978
- disallowSingleUsers = _this$props.disallowSingleUsers,
8979
- allowTags = _this$props.allowTags;
8979
+ var _this$props2 = this.props,
8980
+ disallowUserType = _this$props2.disallowUserType,
8981
+ custom = _this$props2.custom,
8982
+ disallowSingleUsers = _this$props2.disallowSingleUsers,
8983
+ allowTags = _this$props2.allowTags;
8980
8984
  if (!disallowUserType || custom) this.getUserTypes();
8981
8985
  if (!disallowSingleUsers) this.getUsers();
8982
8986
  if (allowTags || custom) this.getUserTags();
8983
8987
  }
8988
+ }, {
8989
+ key: "componentDidUpdate",
8990
+ value: function componentDidUpdate(prevProps) {
8991
+ var newState = {};
8992
+ if (prevProps.audienceType !== this.props.audienceType) newState.AudienceType = this.props.audienceType;
8993
+ if (!___default['default'].isEqual(prevProps.audienceTypeSelection, this.props.audienceTypeSelection)) newState.AudienceTagList = this.props.audienceTypeSelection;
8994
+ if (!___default['default'].isEmpty(newState)) this.setState(newState);
8995
+ }
8984
8996
  }, {
8985
8997
  key: "onSubmit",
8986
8998
  value: function onSubmit() {
@@ -9004,12 +9016,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9004
9016
  Category = _this$state2.Category,
9005
9017
  Tag = _this$state2.Tag,
9006
9018
  Type = _this$state2.Type;
9007
- if (AudienceType === 'Custom') return AudienceTagList.map(function (at) {
9008
- return {
9009
- AudienceType: at.AudienceType,
9010
- AudienceTypeSelection: at.AudienceTypeSelection
9011
- };
9012
- });
9019
+ if (AudienceType === 'Custom') return AudienceTagList || [];
9013
9020
  if (AudienceType === 'Category') return Category;
9014
9021
  if (AudienceType === 'UserTags') return Tag;
9015
9022
  return Type;
@@ -9064,29 +9071,26 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9064
9071
  }, {
9065
9072
  key: "onChangeOption",
9066
9073
  value: function onChangeOption(type) {
9067
- var _this4 = this;
9068
-
9069
9074
  this.setState({
9070
9075
  AudienceType: type,
9071
9076
  Type: '',
9072
9077
  Category: '',
9073
9078
  includeList: [],
9074
- excludeList: []
9079
+ excludeList: [],
9080
+ AudienceTagList: []
9075
9081
  });
9076
- setTimeout(function () {
9077
- _this4.props.updateValidation(_this4.validateAudienceSelection());
9078
- }, 50);
9082
+ setTimeout(this.onChangeSelection, 50);
9079
9083
  }
9080
9084
  }, {
9081
9085
  key: "getOptions",
9082
9086
  value: function getOptions() {
9083
- var _this5 = this;
9087
+ var _this4 = this;
9084
9088
 
9085
9089
  var options = [{
9086
9090
  Label: 'All users',
9087
9091
  Value: 'All',
9088
9092
  onChange: function onChange() {
9089
- return _this5.onChangeOption('All');
9093
+ return _this4.onChangeOption('All');
9090
9094
  }
9091
9095
  }];
9092
9096
 
@@ -9095,7 +9099,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9095
9099
  Label: 'Custom',
9096
9100
  Value: 'Custom',
9097
9101
  onChange: function onChange() {
9098
- return _this5.onChangeOption('Custom');
9102
+ return _this4.onChangeOption('Custom');
9099
9103
  }
9100
9104
  });
9101
9105
  } else {
@@ -9103,7 +9107,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9103
9107
  Label: 'By user category',
9104
9108
  Value: 'Category',
9105
9109
  onChange: function onChange() {
9106
- return _this5.onChangeOption('Category');
9110
+ return _this4.onChangeOption('Category');
9107
9111
  }
9108
9112
  });
9109
9113
  }
@@ -9113,7 +9117,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9113
9117
  Label: 'By user type',
9114
9118
  Value: 'UserType',
9115
9119
  onChange: function onChange() {
9116
- return _this5.onChangeOption('UserType');
9120
+ return _this4.onChangeOption('UserType');
9117
9121
  }
9118
9122
  });
9119
9123
  }
@@ -9123,7 +9127,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9123
9127
  Label: 'By user tag',
9124
9128
  Value: 'UserTags',
9125
9129
  onChange: function onChange() {
9126
- return _this5.onChangeOption('UserTags');
9130
+ return _this4.onChangeOption('UserTags');
9127
9131
  }
9128
9132
  });
9129
9133
  }
@@ -9133,7 +9137,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9133
9137
  Label: 'To single users',
9134
9138
  Value: 'User',
9135
9139
  onChange: function onChange() {
9136
- return _this5.onChangeOption('User');
9140
+ return _this4.onChangeOption('User');
9137
9141
  }
9138
9142
  });
9139
9143
  }
@@ -9156,24 +9160,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9156
9160
  }, {
9157
9161
  key: "selectType",
9158
9162
  value: function selectType(key) {
9159
- var _this6 = this;
9160
-
9161
9163
  this.setState({
9162
9164
  Type: key,
9163
9165
  includeList: [],
9164
9166
  excludeList: []
9165
9167
  });
9166
- setTimeout(function () {
9167
- _this6.props.updateValidation(_this6.validateAudienceSelection());
9168
- }, 50);
9168
+ setTimeout(this.onChangeSelection, 50);
9169
9169
  }
9170
9170
  }, {
9171
9171
  key: "getTypeTitle",
9172
9172
  value: function getTypeTitle() {
9173
- var _this7 = this;
9173
+ var _this5 = this;
9174
9174
 
9175
9175
  var typeObject = ___default['default'].find(this.state.types, function (t) {
9176
- return t.typeName === _this7.state.Type;
9176
+ return t.typeName === _this5.state.Type;
9177
9177
  });
9178
9178
 
9179
9179
  if (typeObject) {
@@ -9185,10 +9185,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9185
9185
  }, {
9186
9186
  key: "getTagTitle",
9187
9187
  value: function getTagTitle() {
9188
- var _this8 = this;
9188
+ var _this6 = this;
9189
9189
 
9190
9190
  var tag = ___default['default'].find(this.state.tagList, function (t) {
9191
- return t.Id === _this8.state.Tag;
9191
+ return t.Id === _this6.state.Tag;
9192
9192
  });
9193
9193
 
9194
9194
  if (tag) {
@@ -9200,10 +9200,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9200
9200
  }, {
9201
9201
  key: "getUserTypes",
9202
9202
  value: function getUserTypes() {
9203
- var _this9 = this;
9203
+ var _this7 = this;
9204
9204
 
9205
9205
  typeActions.getUserTypes(this.props.auth.site).then(function (res) {
9206
- _this9.props.setAuth({
9206
+ _this7.props.setAuth({
9207
9207
  userTypes: ___default['default'].cloneDeep(res.data)
9208
9208
  });
9209
9209
 
@@ -9212,7 +9212,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9212
9212
  e.Key = e.typeName;
9213
9213
 
9214
9214
  if (e.category) {
9215
- var category = ___default['default'].find(_this9.state.categories, function (c) {
9215
+ var category = ___default['default'].find(_this7.state.categories, function (c) {
9216
9216
  return c.Key === e.category;
9217
9217
  });
9218
9218
 
@@ -9221,7 +9221,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9221
9221
  }
9222
9222
  });
9223
9223
 
9224
- _this9.setState({
9224
+ _this7.setState({
9225
9225
  types: res.data
9226
9226
  });
9227
9227
  }).catch(function (error) {});
@@ -9229,12 +9229,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9229
9229
  }, {
9230
9230
  key: "getUserList",
9231
9231
  value: function getUserList() {
9232
- var _this10 = this;
9232
+ var _this8 = this;
9233
9233
 
9234
9234
  if (this.state.AudienceType === 'UserType' && !___default['default'].isEmpty(this.state.Type)) {
9235
9235
  var users = [];
9236
9236
  this.state.userList.forEach(function (element) {
9237
- if (element.type !== _this10.state.Type) users.push(element);
9237
+ if (element.type !== _this8.state.Type) users.push(element);
9238
9238
  });
9239
9239
  return ___default['default'].sortBy(users, 'displayName');
9240
9240
  }
@@ -9243,7 +9243,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9243
9243
  var _users = [];
9244
9244
 
9245
9245
  var types = ___default['default'].filter(this.state.types, function (type) {
9246
- return type.category === _this10.state.Category;
9246
+ return type.category === _this8.state.Category;
9247
9247
  }).map(function (type) {
9248
9248
  return type.typeName;
9249
9249
  });
@@ -9261,24 +9261,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9261
9261
  }, {
9262
9262
  key: "selectCat",
9263
9263
  value: function selectCat(key, e) {
9264
- var _this11 = this;
9265
-
9266
9264
  this.setState({
9267
9265
  Category: key,
9268
9266
  includeList: [],
9269
9267
  excludeList: []
9270
9268
  });
9271
- setTimeout(function () {
9272
- _this11.props.updateValidation(_this11.validateAudienceSelection());
9273
- }, 50);
9269
+ setTimeout(this.onChangeSelection, 50);
9274
9270
  }
9275
9271
  }, {
9276
9272
  key: "getCatTitle",
9277
9273
  value: function getCatTitle() {
9278
- var _this12 = this;
9274
+ var _this9 = this;
9279
9275
 
9280
9276
  var typeObject = ___default['default'].find(this.state.categories, function (t) {
9281
- return t.Key === _this12.state.Category;
9277
+ return t.Key === _this9.state.Category;
9282
9278
  });
9283
9279
 
9284
9280
  if (typeObject) {
@@ -9334,12 +9330,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9334
9330
  }, {
9335
9331
  key: "getUserExcludeList",
9336
9332
  value: function getUserExcludeList() {
9337
- var _this13 = this;
9333
+ var _this10 = this;
9338
9334
 
9339
9335
  if (this.state.AudienceType === 'UserType' && !___default['default'].isEmpty(this.state.Type)) {
9340
9336
  var users = [];
9341
9337
  this.state.userList.forEach(function (element) {
9342
- if (element.type === _this13.state.Type) users.push(element);
9338
+ if (element.type === _this10.state.Type) users.push(element);
9343
9339
  });
9344
9340
  return ___default['default'].sortBy(users, 'displayName');
9345
9341
  }
@@ -9348,7 +9344,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9348
9344
  var _users2 = [];
9349
9345
 
9350
9346
  var types = ___default['default'].filter(this.state.types, function (type) {
9351
- return type.category === _this13.state.Category;
9347
+ return type.category === _this10.state.Category;
9352
9348
  }).map(function (type) {
9353
9349
  return type.typeName;
9354
9350
  });
@@ -9366,8 +9362,6 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9366
9362
  }, {
9367
9363
  key: "addToInc",
9368
9364
  value: function addToInc(user) {
9369
- var _this14 = this;
9370
-
9371
9365
  var list = _toConsumableArray__default['default'](this.state.includeList);
9372
9366
 
9373
9367
  list.push({
@@ -9378,23 +9372,17 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9378
9372
  this.setState({
9379
9373
  includeList: list
9380
9374
  });
9381
- setTimeout(function () {
9382
- _this14.props.updateValidation(_this14.validateAudienceSelection());
9383
- }, 50);
9375
+ setTimeout(this.onChangeSelection, 50);
9384
9376
  }
9385
9377
  }, {
9386
9378
  key: "removeUserInc",
9387
9379
  value: function removeUserInc(user) {
9388
- var _this15 = this;
9389
-
9390
9380
  this.setState({
9391
9381
  includeList: ___default['default'].filter(this.state.includeList, function (ev) {
9392
9382
  return ev.Id !== user.Id;
9393
9383
  })
9394
9384
  });
9395
- setTimeout(function () {
9396
- _this15.props.updateValidation(_this15.validateAudienceSelection());
9397
- }, 50);
9385
+ setTimeout(this.onChangeSelection, 50);
9398
9386
  }
9399
9387
  }, {
9400
9388
  key: "addToEx",
@@ -9422,7 +9410,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9422
9410
  }, {
9423
9411
  key: "renderExcludes",
9424
9412
  value: function renderExcludes() {
9425
- var _this16 = this;
9413
+ var _this11 = this;
9426
9414
 
9427
9415
  if (!this.showUserPickers(false)) {
9428
9416
  return null;
@@ -9434,8 +9422,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9434
9422
  }, /*#__PURE__*/React__default['default'].createElement("div", {
9435
9423
  className: "flex flex-between pointer",
9436
9424
  onClick: function onClick() {
9437
- _this16.setState({
9438
- showExclude: !_this16.state.showExclude
9425
+ _this11.setState({
9426
+ showExclude: !_this11.state.showExclude
9439
9427
  });
9440
9428
  }
9441
9429
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -9459,7 +9447,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9459
9447
  }, {
9460
9448
  key: "renderIncludes",
9461
9449
  value: function renderIncludes() {
9462
- var _this17 = this;
9450
+ var _this12 = this;
9463
9451
 
9464
9452
  if (!this.showUserPickers(true)) {
9465
9453
  return null;
@@ -9471,8 +9459,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9471
9459
  }, /*#__PURE__*/React__default['default'].createElement("div", {
9472
9460
  className: "flex flex-between pointer",
9473
9461
  onClick: function onClick() {
9474
- _this17.setState({
9475
- showInclude: !_this17.state.showInclude
9462
+ _this12.setState({
9463
+ showInclude: !_this12.state.showInclude
9476
9464
  });
9477
9465
  }
9478
9466
  }, /*#__PURE__*/React__default['default'].createElement("div", {
@@ -9496,7 +9484,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9496
9484
  }, {
9497
9485
  key: "renderAssignedAudiences",
9498
9486
  value: function renderAssignedAudiences() {
9499
- var _this18 = this;
9487
+ var _this13 = this;
9500
9488
 
9501
9489
  var AudienceTagList = this.state.AudienceTagList;
9502
9490
  var maxWidth = this.props.maxWidth;
@@ -9515,7 +9503,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9515
9503
  text: t.Title,
9516
9504
  rightIcon: "remove",
9517
9505
  rightClick: function rightClick() {
9518
- return _this18.onDetachAudienceTag(t);
9506
+ return _this13.onDetachAudienceTag(t);
9519
9507
  }
9520
9508
  });
9521
9509
  }));
@@ -9523,7 +9511,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9523
9511
  }, {
9524
9512
  key: "renderAvailableAudiences",
9525
9513
  value: function renderAvailableAudiences() {
9526
- var _this19 = this;
9514
+ var _this14 = this;
9527
9515
 
9528
9516
  var maxWidth = this.props.maxWidth;
9529
9517
  var tags = this.getAvailableAudienceTags();
@@ -9538,7 +9526,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9538
9526
  className: "marginLeft-16 marginBottom-8",
9539
9527
  text: t.Title,
9540
9528
  onClick: function onClick() {
9541
- return _this19.onAttachAudienceTag(t);
9529
+ return _this14.onAttachAudienceTag(t);
9542
9530
  }
9543
9531
  });
9544
9532
  }));
@@ -9559,7 +9547,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9559
9547
  }, {
9560
9548
  key: "render",
9561
9549
  value: function render() {
9562
- var _this20 = this;
9550
+ var _this15 = this;
9563
9551
 
9564
9552
  return /*#__PURE__*/React__default['default'].createElement("div", null, /*#__PURE__*/React__default['default'].createElement(Text, {
9565
9553
  type: "formTitleSmall",
@@ -9581,10 +9569,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9581
9569
  placeholder: "User Category",
9582
9570
  value: this.getCatTitle(),
9583
9571
  isValid: function isValid() {
9584
- return _this20.validateCategory();
9572
+ return _this15.validateCategory();
9585
9573
  },
9586
9574
  showError: function showError() {
9587
- return _this20.state.showWarnings && !_this20.validateCategory();
9575
+ return _this15.state.showWarnings && !_this15.validateCategory();
9588
9576
  },
9589
9577
  options: this.state.categories,
9590
9578
  onSelect: this.selectCat.bind(this),
@@ -9601,10 +9589,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9601
9589
  placeholder: "User Type",
9602
9590
  value: this.getTypeTitle(),
9603
9591
  isValid: function isValid() {
9604
- return _this20.validateType();
9592
+ return _this15.validateType();
9605
9593
  },
9606
9594
  showError: function showError() {
9607
- return _this20.state.showWarnings && !_this20.validateType();
9595
+ return _this15.state.showWarnings && !_this15.validateType();
9608
9596
  },
9609
9597
  options: this.state.types,
9610
9598
  onSelect: this.selectType.bind(this),
@@ -9620,10 +9608,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9620
9608
  placeholder: "User Tag",
9621
9609
  value: this.getTagTitle(),
9622
9610
  isValid: function isValid() {
9623
- return _this20.validateTag();
9611
+ return _this15.validateTag();
9624
9612
  },
9625
9613
  showError: function showError() {
9626
- return _this20.state.showWarnings && !_this20.validateTag();
9614
+ return _this15.state.showWarnings && !_this15.validateTag();
9627
9615
  },
9628
9616
  options: this.state.tagList,
9629
9617
  onSelect: this.selectTag,