@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.esm.js CHANGED
@@ -8284,7 +8284,8 @@ var TimePicker = /*#__PURE__*/function (_Component) {
8284
8284
 
8285
8285
  if (disabled) {
8286
8286
  return /*#__PURE__*/React.createElement("div", {
8287
- className: "timepicker disabled"
8287
+ className: "timepicker disabled",
8288
+ style: this.props.style
8288
8289
  }, /*#__PURE__*/React.createElement("span", {
8289
8290
  className: "timepicker__span",
8290
8291
  style: this.props.inputStyle
@@ -8292,7 +8293,8 @@ var TimePicker = /*#__PURE__*/function (_Component) {
8292
8293
  }
8293
8294
 
8294
8295
  return /*#__PURE__*/React.createElement("div", {
8295
- className: "timepicker ".concat(this.props.className)
8296
+ className: "timepicker ".concat(this.props.className),
8297
+ style: this.props.style
8296
8298
  }, /*#__PURE__*/React.createElement("input", {
8297
8299
  className: "timepicker__input",
8298
8300
  maxLength: "2",
@@ -8826,42 +8828,22 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8826
8828
 
8827
8829
  var _super = _createSuper$4(AudienceSelector);
8828
8830
 
8829
- function AudienceSelector() {
8831
+ function AudienceSelector(props) {
8830
8832
  var _this;
8831
8833
 
8832
8834
  _classCallCheck(this, AudienceSelector);
8833
8835
 
8834
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
8835
- args[_key] = arguments[_key];
8836
- }
8836
+ _this = _super.call(this, props);
8837
8837
 
8838
- _this = _super.call.apply(_super, [this].concat(args));
8838
+ _defineProperty(_assertThisInitialized(_this), "onChangeSelection", function () {
8839
+ var _this$props = _this.props,
8840
+ updateValidation = _this$props.updateValidation,
8841
+ onChange = _this$props.onChange;
8839
8842
 
8840
- _defineProperty(_assertThisInitialized(_this), "state", {
8841
- categories: [{
8842
- Title: 'All Primary Users',
8843
- Key: 'resident',
8844
- ShortName: 'Primary'
8845
- }, {
8846
- Title: 'All Staff Users',
8847
- Key: 'staff',
8848
- ShortName: 'Staff'
8849
- }, {
8850
- Title: 'All Linked Users',
8851
- Key: 'family',
8852
- ShortName: 'Linked'
8853
- }],
8854
- types: [],
8855
- AudienceType: 'All',
8856
- showInclude: false,
8857
- includeList: [],
8858
- showExclude: false,
8859
- excludeList: [],
8860
- Type: '',
8861
- Category: '',
8862
- userList: [],
8863
- tagList: [],
8864
- AudienceTagList: []
8843
+ var isValid = _this.validateAudienceSelection();
8844
+
8845
+ if (updateValidation) updateValidation(isValid);
8846
+ if (onChange) onChange(_this.getAudienceType(), _this.getAudienceTypeSelection(), isValid);
8865
8847
  });
8866
8848
 
8867
8849
  _defineProperty(_assertThisInitialized(_this), "selectTag", function (key) {
@@ -8871,9 +8853,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8871
8853
  excludeList: []
8872
8854
  });
8873
8855
 
8874
- setTimeout(function () {
8875
- _this.props.updateValidation(_this.validateAudienceSelection());
8876
- }, 50);
8856
+ setTimeout(_this.onChangeSelection, 50);
8877
8857
  });
8878
8858
 
8879
8859
  _defineProperty(_assertThisInitialized(_this), "validateCustom", function () {
@@ -8881,6 +8861,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8881
8861
  });
8882
8862
 
8883
8863
  _defineProperty(_assertThisInitialized(_this), "getAvailableAudienceTags", function () {
8864
+ var includeSelected = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
8884
8865
  var _this$state = _this.state,
8885
8866
  categories = _this$state.categories,
8886
8867
  types = _this$state.types,
@@ -8910,7 +8891,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8910
8891
  Title: "User Tag: ".concat(t.Title)
8911
8892
  };
8912
8893
  });
8913
- return [].concat(_toConsumableArray(categoryTags), _toConsumableArray(userTypeTags), _toConsumableArray(userTagTags)).filter(function (t) {
8894
+ var result = [].concat(_toConsumableArray(categoryTags), _toConsumableArray(userTypeTags), _toConsumableArray(userTagTags));
8895
+ return includeSelected ? result : result.filter(function (t) {
8914
8896
  return !_.some(AudienceTagList, function (at) {
8915
8897
  return at.Id === t.Id;
8916
8898
  });
@@ -8922,9 +8904,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8922
8904
 
8923
8905
  _this.setState({
8924
8906
  AudienceTagList: AudienceTagList
8925
- }, function () {
8926
- return _this.props.updateValidation(_this.validateAudienceSelection());
8927
- });
8907
+ }, _this.onChangeSelection);
8928
8908
  });
8929
8909
 
8930
8910
  _defineProperty(_assertThisInitialized(_this), "onDetachAudienceTag", function (tag) {
@@ -8934,26 +8914,58 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8934
8914
 
8935
8915
  _this.setState({
8936
8916
  AudienceTagList: AudienceTagList
8937
- }, function () {
8938
- return _this.props.updateValidation(_this.validateAudienceSelection());
8939
- });
8917
+ }, _this.onChangeSelection);
8940
8918
  });
8941
8919
 
8920
+ _this.state = {
8921
+ categories: [{
8922
+ Title: 'All Primary Users',
8923
+ Key: 'resident',
8924
+ ShortName: 'Primary'
8925
+ }, {
8926
+ Title: 'All Staff Users',
8927
+ Key: 'staff',
8928
+ ShortName: 'Staff'
8929
+ }, {
8930
+ Title: 'All Linked Users',
8931
+ Key: 'family',
8932
+ ShortName: 'Linked'
8933
+ }],
8934
+ types: [],
8935
+ AudienceType: props.audienceType || 'All',
8936
+ showInclude: false,
8937
+ includeList: [],
8938
+ showExclude: false,
8939
+ excludeList: [],
8940
+ Type: '',
8941
+ Category: '',
8942
+ userList: [],
8943
+ tagList: [],
8944
+ AudienceTagList: props.audienceTypeSelection || []
8945
+ };
8942
8946
  return _this;
8943
8947
  }
8944
8948
 
8945
8949
  _createClass(AudienceSelector, [{
8946
8950
  key: "componentDidMount",
8947
8951
  value: function componentDidMount() {
8948
- var _this$props = this.props,
8949
- disallowUserType = _this$props.disallowUserType,
8950
- custom = _this$props.custom,
8951
- disallowSingleUsers = _this$props.disallowSingleUsers,
8952
- allowTags = _this$props.allowTags;
8952
+ var _this$props2 = this.props,
8953
+ disallowUserType = _this$props2.disallowUserType,
8954
+ custom = _this$props2.custom,
8955
+ disallowSingleUsers = _this$props2.disallowSingleUsers,
8956
+ allowTags = _this$props2.allowTags;
8953
8957
  if (!disallowUserType || custom) this.getUserTypes();
8954
8958
  if (!disallowSingleUsers) this.getUsers();
8955
8959
  if (allowTags || custom) this.getUserTags();
8956
8960
  }
8961
+ }, {
8962
+ key: "componentDidUpdate",
8963
+ value: function componentDidUpdate(prevProps) {
8964
+ var newState = {};
8965
+ if (prevProps.audienceType !== this.props.audienceType) newState.AudienceType = this.props.audienceType;
8966
+ if (!_.isEqual(prevProps.audienceTypeSelection, this.props.audienceTypeSelection)) newState.AudienceTagList = this.props.audienceTypeSelection;
8967
+ if (!_.isEmpty(newState)) this.setState(newState);
8968
+ }
8957
8969
  }, {
8958
8970
  key: "onSubmit",
8959
8971
  value: function onSubmit() {
@@ -8977,12 +8989,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
8977
8989
  Category = _this$state2.Category,
8978
8990
  Tag = _this$state2.Tag,
8979
8991
  Type = _this$state2.Type;
8980
- if (AudienceType === 'Custom') return AudienceTagList.map(function (at) {
8981
- return {
8982
- AudienceType: at.AudienceType,
8983
- AudienceTypeSelection: at.AudienceTypeSelection
8984
- };
8985
- });
8992
+ if (AudienceType === 'Custom') return AudienceTagList || [];
8986
8993
  if (AudienceType === 'Category') return Category;
8987
8994
  if (AudienceType === 'UserTags') return Tag;
8988
8995
  return Type;
@@ -9037,29 +9044,26 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9037
9044
  }, {
9038
9045
  key: "onChangeOption",
9039
9046
  value: function onChangeOption(type) {
9040
- var _this4 = this;
9041
-
9042
9047
  this.setState({
9043
9048
  AudienceType: type,
9044
9049
  Type: '',
9045
9050
  Category: '',
9046
9051
  includeList: [],
9047
- excludeList: []
9052
+ excludeList: [],
9053
+ AudienceTagList: []
9048
9054
  });
9049
- setTimeout(function () {
9050
- _this4.props.updateValidation(_this4.validateAudienceSelection());
9051
- }, 50);
9055
+ setTimeout(this.onChangeSelection, 50);
9052
9056
  }
9053
9057
  }, {
9054
9058
  key: "getOptions",
9055
9059
  value: function getOptions() {
9056
- var _this5 = this;
9060
+ var _this4 = this;
9057
9061
 
9058
9062
  var options = [{
9059
9063
  Label: 'All users',
9060
9064
  Value: 'All',
9061
9065
  onChange: function onChange() {
9062
- return _this5.onChangeOption('All');
9066
+ return _this4.onChangeOption('All');
9063
9067
  }
9064
9068
  }];
9065
9069
 
@@ -9068,7 +9072,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9068
9072
  Label: 'Custom',
9069
9073
  Value: 'Custom',
9070
9074
  onChange: function onChange() {
9071
- return _this5.onChangeOption('Custom');
9075
+ return _this4.onChangeOption('Custom');
9072
9076
  }
9073
9077
  });
9074
9078
  } else {
@@ -9076,7 +9080,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9076
9080
  Label: 'By user category',
9077
9081
  Value: 'Category',
9078
9082
  onChange: function onChange() {
9079
- return _this5.onChangeOption('Category');
9083
+ return _this4.onChangeOption('Category');
9080
9084
  }
9081
9085
  });
9082
9086
  }
@@ -9086,7 +9090,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9086
9090
  Label: 'By user type',
9087
9091
  Value: 'UserType',
9088
9092
  onChange: function onChange() {
9089
- return _this5.onChangeOption('UserType');
9093
+ return _this4.onChangeOption('UserType');
9090
9094
  }
9091
9095
  });
9092
9096
  }
@@ -9096,7 +9100,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9096
9100
  Label: 'By user tag',
9097
9101
  Value: 'UserTags',
9098
9102
  onChange: function onChange() {
9099
- return _this5.onChangeOption('UserTags');
9103
+ return _this4.onChangeOption('UserTags');
9100
9104
  }
9101
9105
  });
9102
9106
  }
@@ -9106,7 +9110,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9106
9110
  Label: 'To single users',
9107
9111
  Value: 'User',
9108
9112
  onChange: function onChange() {
9109
- return _this5.onChangeOption('User');
9113
+ return _this4.onChangeOption('User');
9110
9114
  }
9111
9115
  });
9112
9116
  }
@@ -9129,24 +9133,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9129
9133
  }, {
9130
9134
  key: "selectType",
9131
9135
  value: function selectType(key) {
9132
- var _this6 = this;
9133
-
9134
9136
  this.setState({
9135
9137
  Type: key,
9136
9138
  includeList: [],
9137
9139
  excludeList: []
9138
9140
  });
9139
- setTimeout(function () {
9140
- _this6.props.updateValidation(_this6.validateAudienceSelection());
9141
- }, 50);
9141
+ setTimeout(this.onChangeSelection, 50);
9142
9142
  }
9143
9143
  }, {
9144
9144
  key: "getTypeTitle",
9145
9145
  value: function getTypeTitle() {
9146
- var _this7 = this;
9146
+ var _this5 = this;
9147
9147
 
9148
9148
  var typeObject = _.find(this.state.types, function (t) {
9149
- return t.typeName === _this7.state.Type;
9149
+ return t.typeName === _this5.state.Type;
9150
9150
  });
9151
9151
 
9152
9152
  if (typeObject) {
@@ -9158,10 +9158,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9158
9158
  }, {
9159
9159
  key: "getTagTitle",
9160
9160
  value: function getTagTitle() {
9161
- var _this8 = this;
9161
+ var _this6 = this;
9162
9162
 
9163
9163
  var tag = _.find(this.state.tagList, function (t) {
9164
- return t.Id === _this8.state.Tag;
9164
+ return t.Id === _this6.state.Tag;
9165
9165
  });
9166
9166
 
9167
9167
  if (tag) {
@@ -9173,10 +9173,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9173
9173
  }, {
9174
9174
  key: "getUserTypes",
9175
9175
  value: function getUserTypes() {
9176
- var _this9 = this;
9176
+ var _this7 = this;
9177
9177
 
9178
9178
  typeActions.getUserTypes(this.props.auth.site).then(function (res) {
9179
- _this9.props.setAuth({
9179
+ _this7.props.setAuth({
9180
9180
  userTypes: _.cloneDeep(res.data)
9181
9181
  });
9182
9182
 
@@ -9185,7 +9185,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9185
9185
  e.Key = e.typeName;
9186
9186
 
9187
9187
  if (e.category) {
9188
- var category = _.find(_this9.state.categories, function (c) {
9188
+ var category = _.find(_this7.state.categories, function (c) {
9189
9189
  return c.Key === e.category;
9190
9190
  });
9191
9191
 
@@ -9194,7 +9194,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9194
9194
  }
9195
9195
  });
9196
9196
 
9197
- _this9.setState({
9197
+ _this7.setState({
9198
9198
  types: res.data
9199
9199
  });
9200
9200
  }).catch(function (error) {});
@@ -9202,12 +9202,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9202
9202
  }, {
9203
9203
  key: "getUserList",
9204
9204
  value: function getUserList() {
9205
- var _this10 = this;
9205
+ var _this8 = this;
9206
9206
 
9207
9207
  if (this.state.AudienceType === 'UserType' && !_.isEmpty(this.state.Type)) {
9208
9208
  var users = [];
9209
9209
  this.state.userList.forEach(function (element) {
9210
- if (element.type !== _this10.state.Type) users.push(element);
9210
+ if (element.type !== _this8.state.Type) users.push(element);
9211
9211
  });
9212
9212
  return _.sortBy(users, 'displayName');
9213
9213
  }
@@ -9216,7 +9216,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9216
9216
  var _users = [];
9217
9217
 
9218
9218
  var types = _.filter(this.state.types, function (type) {
9219
- return type.category === _this10.state.Category;
9219
+ return type.category === _this8.state.Category;
9220
9220
  }).map(function (type) {
9221
9221
  return type.typeName;
9222
9222
  });
@@ -9234,24 +9234,20 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9234
9234
  }, {
9235
9235
  key: "selectCat",
9236
9236
  value: function selectCat(key, e) {
9237
- var _this11 = this;
9238
-
9239
9237
  this.setState({
9240
9238
  Category: key,
9241
9239
  includeList: [],
9242
9240
  excludeList: []
9243
9241
  });
9244
- setTimeout(function () {
9245
- _this11.props.updateValidation(_this11.validateAudienceSelection());
9246
- }, 50);
9242
+ setTimeout(this.onChangeSelection, 50);
9247
9243
  }
9248
9244
  }, {
9249
9245
  key: "getCatTitle",
9250
9246
  value: function getCatTitle() {
9251
- var _this12 = this;
9247
+ var _this9 = this;
9252
9248
 
9253
9249
  var typeObject = _.find(this.state.categories, function (t) {
9254
- return t.Key === _this12.state.Category;
9250
+ return t.Key === _this9.state.Category;
9255
9251
  });
9256
9252
 
9257
9253
  if (typeObject) {
@@ -9307,12 +9303,12 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9307
9303
  }, {
9308
9304
  key: "getUserExcludeList",
9309
9305
  value: function getUserExcludeList() {
9310
- var _this13 = this;
9306
+ var _this10 = this;
9311
9307
 
9312
9308
  if (this.state.AudienceType === 'UserType' && !_.isEmpty(this.state.Type)) {
9313
9309
  var users = [];
9314
9310
  this.state.userList.forEach(function (element) {
9315
- if (element.type === _this13.state.Type) users.push(element);
9311
+ if (element.type === _this10.state.Type) users.push(element);
9316
9312
  });
9317
9313
  return _.sortBy(users, 'displayName');
9318
9314
  }
@@ -9321,7 +9317,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9321
9317
  var _users2 = [];
9322
9318
 
9323
9319
  var types = _.filter(this.state.types, function (type) {
9324
- return type.category === _this13.state.Category;
9320
+ return type.category === _this10.state.Category;
9325
9321
  }).map(function (type) {
9326
9322
  return type.typeName;
9327
9323
  });
@@ -9339,8 +9335,6 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9339
9335
  }, {
9340
9336
  key: "addToInc",
9341
9337
  value: function addToInc(user) {
9342
- var _this14 = this;
9343
-
9344
9338
  var list = _toConsumableArray(this.state.includeList);
9345
9339
 
9346
9340
  list.push({
@@ -9351,23 +9345,17 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9351
9345
  this.setState({
9352
9346
  includeList: list
9353
9347
  });
9354
- setTimeout(function () {
9355
- _this14.props.updateValidation(_this14.validateAudienceSelection());
9356
- }, 50);
9348
+ setTimeout(this.onChangeSelection, 50);
9357
9349
  }
9358
9350
  }, {
9359
9351
  key: "removeUserInc",
9360
9352
  value: function removeUserInc(user) {
9361
- var _this15 = this;
9362
-
9363
9353
  this.setState({
9364
9354
  includeList: _.filter(this.state.includeList, function (ev) {
9365
9355
  return ev.Id !== user.Id;
9366
9356
  })
9367
9357
  });
9368
- setTimeout(function () {
9369
- _this15.props.updateValidation(_this15.validateAudienceSelection());
9370
- }, 50);
9358
+ setTimeout(this.onChangeSelection, 50);
9371
9359
  }
9372
9360
  }, {
9373
9361
  key: "addToEx",
@@ -9395,7 +9383,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9395
9383
  }, {
9396
9384
  key: "renderExcludes",
9397
9385
  value: function renderExcludes() {
9398
- var _this16 = this;
9386
+ var _this11 = this;
9399
9387
 
9400
9388
  if (!this.showUserPickers(false)) {
9401
9389
  return null;
@@ -9407,8 +9395,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9407
9395
  }, /*#__PURE__*/React.createElement("div", {
9408
9396
  className: "flex flex-between pointer",
9409
9397
  onClick: function onClick() {
9410
- _this16.setState({
9411
- showExclude: !_this16.state.showExclude
9398
+ _this11.setState({
9399
+ showExclude: !_this11.state.showExclude
9412
9400
  });
9413
9401
  }
9414
9402
  }, /*#__PURE__*/React.createElement("div", {
@@ -9432,7 +9420,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9432
9420
  }, {
9433
9421
  key: "renderIncludes",
9434
9422
  value: function renderIncludes() {
9435
- var _this17 = this;
9423
+ var _this12 = this;
9436
9424
 
9437
9425
  if (!this.showUserPickers(true)) {
9438
9426
  return null;
@@ -9444,8 +9432,8 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9444
9432
  }, /*#__PURE__*/React.createElement("div", {
9445
9433
  className: "flex flex-between pointer",
9446
9434
  onClick: function onClick() {
9447
- _this17.setState({
9448
- showInclude: !_this17.state.showInclude
9435
+ _this12.setState({
9436
+ showInclude: !_this12.state.showInclude
9449
9437
  });
9450
9438
  }
9451
9439
  }, /*#__PURE__*/React.createElement("div", {
@@ -9469,7 +9457,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9469
9457
  }, {
9470
9458
  key: "renderAssignedAudiences",
9471
9459
  value: function renderAssignedAudiences() {
9472
- var _this18 = this;
9460
+ var _this13 = this;
9473
9461
 
9474
9462
  var AudienceTagList = this.state.AudienceTagList;
9475
9463
  var maxWidth = this.props.maxWidth;
@@ -9488,7 +9476,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9488
9476
  text: t.Title,
9489
9477
  rightIcon: "remove",
9490
9478
  rightClick: function rightClick() {
9491
- return _this18.onDetachAudienceTag(t);
9479
+ return _this13.onDetachAudienceTag(t);
9492
9480
  }
9493
9481
  });
9494
9482
  }));
@@ -9496,7 +9484,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9496
9484
  }, {
9497
9485
  key: "renderAvailableAudiences",
9498
9486
  value: function renderAvailableAudiences() {
9499
- var _this19 = this;
9487
+ var _this14 = this;
9500
9488
 
9501
9489
  var maxWidth = this.props.maxWidth;
9502
9490
  var tags = this.getAvailableAudienceTags();
@@ -9511,7 +9499,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9511
9499
  className: "marginLeft-16 marginBottom-8",
9512
9500
  text: t.Title,
9513
9501
  onClick: function onClick() {
9514
- return _this19.onAttachAudienceTag(t);
9502
+ return _this14.onAttachAudienceTag(t);
9515
9503
  }
9516
9504
  });
9517
9505
  }));
@@ -9532,7 +9520,7 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9532
9520
  }, {
9533
9521
  key: "render",
9534
9522
  value: function render() {
9535
- var _this20 = this;
9523
+ var _this15 = this;
9536
9524
 
9537
9525
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Text, {
9538
9526
  type: "formTitleSmall",
@@ -9554,10 +9542,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9554
9542
  placeholder: "User Category",
9555
9543
  value: this.getCatTitle(),
9556
9544
  isValid: function isValid() {
9557
- return _this20.validateCategory();
9545
+ return _this15.validateCategory();
9558
9546
  },
9559
9547
  showError: function showError() {
9560
- return _this20.state.showWarnings && !_this20.validateCategory();
9548
+ return _this15.state.showWarnings && !_this15.validateCategory();
9561
9549
  },
9562
9550
  options: this.state.categories,
9563
9551
  onSelect: this.selectCat.bind(this),
@@ -9574,10 +9562,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9574
9562
  placeholder: "User Type",
9575
9563
  value: this.getTypeTitle(),
9576
9564
  isValid: function isValid() {
9577
- return _this20.validateType();
9565
+ return _this15.validateType();
9578
9566
  },
9579
9567
  showError: function showError() {
9580
- return _this20.state.showWarnings && !_this20.validateType();
9568
+ return _this15.state.showWarnings && !_this15.validateType();
9581
9569
  },
9582
9570
  options: this.state.types,
9583
9571
  onSelect: this.selectType.bind(this),
@@ -9593,10 +9581,10 @@ var AudienceSelector = /*#__PURE__*/function (_Component) {
9593
9581
  placeholder: "User Tag",
9594
9582
  value: this.getTagTitle(),
9595
9583
  isValid: function isValid() {
9596
- return _this20.validateTag();
9584
+ return _this15.validateTag();
9597
9585
  },
9598
9586
  showError: function showError() {
9599
- return _this20.state.showWarnings && !_this20.validateTag();
9587
+ return _this15.state.showWarnings && !_this15.validateTag();
9600
9588
  },
9601
9589
  options: this.state.tagList,
9602
9590
  onSelect: this.selectTag,