@bonlineza/luxity-lib 2.17.5 → 2.18.1

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/AddInterest.js CHANGED
@@ -11039,7 +11039,10 @@
11039
11039
  var _this$state = _this.state,
11040
11040
  limit = _this$state.limit,
11041
11041
  category = _this$state.category,
11042
- nameFilter = _this$state.nameFilter;
11042
+ nameFilter = _this$state.nameFilter,
11043
+ brands = _this$state.brands,
11044
+ models = _this$state.models,
11045
+ materials = _this$state.materials;
11043
11046
  var _this$props = _this.props,
11044
11047
  title = _this$props.title,
11045
11048
  baseClass = _this$props.baseClass,
@@ -11060,10 +11063,10 @@
11060
11063
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
11061
11064
  triggerRequest: function triggerRequest() {
11062
11065
  return requestInstance.post(graphApi, {
11063
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
11066
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
11064
11067
  });
11065
11068
  },
11066
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
11069
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
11067
11070
  identifier: identifier,
11068
11071
  ref: _this.multiSelectorRef,
11069
11072
  onChange: _this.onChange,
@@ -11076,6 +11079,9 @@
11076
11079
  _this.state = {
11077
11080
  limit: props.baseQueryLimit,
11078
11081
  category: props.category,
11082
+ brands: props.brands,
11083
+ models: props.models,
11084
+ materials: props.materials,
11079
11085
  nameFilter: ''
11080
11086
  };
11081
11087
  return _this;
@@ -11084,11 +11090,23 @@
11084
11090
  _createClass(LuxityGraphQLMultiselector, [{
11085
11091
  key: "componentDidUpdate",
11086
11092
  value: function componentDidUpdate(prevProps) {
11087
- var _this$multiSelectorRe;
11093
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
11088
11094
 
11089
11095
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
11090
11096
  this.multiSelectorRef.current.emptySelected();
11091
11097
  }
11098
+
11099
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
11100
+ this.multiSelectorRef.current.emptySelected();
11101
+ }
11102
+
11103
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
11104
+ this.multiSelectorRef.current.emptySelected();
11105
+ }
11106
+
11107
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
11108
+ this.multiSelectorRef.current.emptySelected();
11109
+ }
11092
11110
  }
11093
11111
  }], [{
11094
11112
  key: "getDerivedStateFromProps",
@@ -11099,6 +11117,24 @@
11099
11117
  };
11100
11118
  }
11101
11119
 
11120
+ if (prevState.brands !== props.brands) {
11121
+ return {
11122
+ brands: props.brands
11123
+ };
11124
+ }
11125
+
11126
+ if (prevState.models !== props.models) {
11127
+ return {
11128
+ models: props.models
11129
+ };
11130
+ }
11131
+
11132
+ if (prevState.materials !== props.materials) {
11133
+ return {
11134
+ materials: props.materials
11135
+ };
11136
+ }
11137
+
11102
11138
  return null;
11103
11139
  }
11104
11140
  }]);
@@ -11147,7 +11183,10 @@
11147
11183
  itemRenderer = _ref.itemRenderer,
11148
11184
  getGraphQuery = _ref.getGraphQuery,
11149
11185
  resultProcessor = _ref.resultProcessor,
11150
- requestInstance = _ref.requestInstance;
11186
+ requestInstance = _ref.requestInstance,
11187
+ brands = _ref.brands,
11188
+ models = _ref.models,
11189
+ materials = _ref.materials;
11151
11190
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
11152
11191
  title: "Styles",
11153
11192
  queryId: "getStyles",
@@ -11156,6 +11195,9 @@
11156
11195
  identifier: "style-selector",
11157
11196
  searchPlaceHolder: "Search Styles",
11158
11197
  category: category,
11198
+ brands: brands,
11199
+ models: models,
11200
+ materials: materials,
11159
11201
  onChange: onChange,
11160
11202
  graphApi: graphApi,
11161
11203
  itemRenderer: itemRenderer,
@@ -11672,7 +11714,8 @@
11672
11714
  _this.setState({
11673
11715
  brands: brandsArray.map(function (brand) {
11674
11716
  return brand.value;
11675
- })
11717
+ }),
11718
+ styles: []
11676
11719
  });
11677
11720
  });
11678
11721
 
@@ -11696,7 +11739,8 @@
11696
11739
  _this.setState({
11697
11740
  models: modelsArray.map(function (model) {
11698
11741
  return model.value;
11699
- })
11742
+ }),
11743
+ styles: []
11700
11744
  });
11701
11745
  });
11702
11746
 
@@ -11704,7 +11748,8 @@
11704
11748
  _this.setState({
11705
11749
  materials: materialsArray.map(function (material) {
11706
11750
  return material.value;
11707
- })
11751
+ }),
11752
+ styles: []
11708
11753
  });
11709
11754
  });
11710
11755
 
@@ -11807,7 +11852,9 @@
11807
11852
  var _this$state2 = _this.state,
11808
11853
  category_type = _this$state2.category_type,
11809
11854
  fetching = _this$state2.request.fetching,
11810
- brands = _this$state2.brands;
11855
+ brands = _this$state2.brands,
11856
+ models = _this$state2.models,
11857
+ materials = _this$state2.materials;
11811
11858
  var _this$props = _this.props,
11812
11859
  requestInstance = _this$props.requestInstance,
11813
11860
  baseGraphApi = _this$props.baseGraphApi,
@@ -11858,7 +11905,10 @@
11858
11905
  onChange: _this.onStylesChanged,
11859
11906
  requestInstance: requestInstance,
11860
11907
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11861
- getGraphQuery: getStylesGraphQuery
11908
+ getGraphQuery: getStylesGraphQuery,
11909
+ brands: brands,
11910
+ models: models,
11911
+ materials: materials
11862
11912
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11863
11913
  className: "fl-right"
11864
11914
  }, /*#__PURE__*/React__default.createElement("div", {
package/BrandSelector.js CHANGED
@@ -10287,7 +10287,10 @@
10287
10287
  var _this$state = _this.state,
10288
10288
  limit = _this$state.limit,
10289
10289
  category = _this$state.category,
10290
- nameFilter = _this$state.nameFilter;
10290
+ nameFilter = _this$state.nameFilter,
10291
+ brands = _this$state.brands,
10292
+ models = _this$state.models,
10293
+ materials = _this$state.materials;
10291
10294
  var _this$props = _this.props,
10292
10295
  title = _this$props.title,
10293
10296
  baseClass = _this$props.baseClass,
@@ -10308,10 +10311,10 @@
10308
10311
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10309
10312
  triggerRequest: function triggerRequest() {
10310
10313
  return requestInstance.post(graphApi, {
10311
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10314
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10312
10315
  });
10313
10316
  },
10314
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10317
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10315
10318
  identifier: identifier,
10316
10319
  ref: _this.multiSelectorRef,
10317
10320
  onChange: _this.onChange,
@@ -10324,6 +10327,9 @@
10324
10327
  _this.state = {
10325
10328
  limit: props.baseQueryLimit,
10326
10329
  category: props.category,
10330
+ brands: props.brands,
10331
+ models: props.models,
10332
+ materials: props.materials,
10327
10333
  nameFilter: ''
10328
10334
  };
10329
10335
  return _this;
@@ -10332,11 +10338,23 @@
10332
10338
  _createClass(LuxityGraphQLMultiselector, [{
10333
10339
  key: "componentDidUpdate",
10334
10340
  value: function componentDidUpdate(prevProps) {
10335
- var _this$multiSelectorRe;
10341
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10336
10342
 
10337
10343
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10338
10344
  this.multiSelectorRef.current.emptySelected();
10339
10345
  }
10346
+
10347
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10348
+ this.multiSelectorRef.current.emptySelected();
10349
+ }
10350
+
10351
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10352
+ this.multiSelectorRef.current.emptySelected();
10353
+ }
10354
+
10355
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10356
+ this.multiSelectorRef.current.emptySelected();
10357
+ }
10340
10358
  }
10341
10359
  }], [{
10342
10360
  key: "getDerivedStateFromProps",
@@ -10347,6 +10365,24 @@
10347
10365
  };
10348
10366
  }
10349
10367
 
10368
+ if (prevState.brands !== props.brands) {
10369
+ return {
10370
+ brands: props.brands
10371
+ };
10372
+ }
10373
+
10374
+ if (prevState.models !== props.models) {
10375
+ return {
10376
+ models: props.models
10377
+ };
10378
+ }
10379
+
10380
+ if (prevState.materials !== props.materials) {
10381
+ return {
10382
+ materials: props.materials
10383
+ };
10384
+ }
10385
+
10350
10386
  return null;
10351
10387
  }
10352
10388
  }]);
@@ -10395,7 +10431,10 @@
10395
10431
  itemRenderer = _ref.itemRenderer,
10396
10432
  getGraphQuery = _ref.getGraphQuery,
10397
10433
  resultProcessor = _ref.resultProcessor,
10398
- requestInstance = _ref.requestInstance;
10434
+ requestInstance = _ref.requestInstance,
10435
+ brands = _ref.brands,
10436
+ models = _ref.models,
10437
+ materials = _ref.materials;
10399
10438
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10400
10439
  title: "Styles",
10401
10440
  queryId: "getStyles",
@@ -10404,6 +10443,9 @@
10404
10443
  identifier: "style-selector",
10405
10444
  searchPlaceHolder: "Search Styles",
10406
10445
  category: category,
10446
+ brands: brands,
10447
+ models: models,
10448
+ materials: materials,
10407
10449
  onChange: onChange,
10408
10450
  graphApi: graphApi,
10409
10451
  itemRenderer: itemRenderer,
@@ -10931,7 +10973,8 @@
10931
10973
  _this.setState({
10932
10974
  brands: brandsArray.map(function (brand) {
10933
10975
  return brand.value;
10934
- })
10976
+ }),
10977
+ styles: []
10935
10978
  });
10936
10979
  });
10937
10980
 
@@ -10955,7 +10998,8 @@
10955
10998
  _this.setState({
10956
10999
  models: modelsArray.map(function (model) {
10957
11000
  return model.value;
10958
- })
11001
+ }),
11002
+ styles: []
10959
11003
  });
10960
11004
  });
10961
11005
 
@@ -10963,7 +11007,8 @@
10963
11007
  _this.setState({
10964
11008
  materials: materialsArray.map(function (material) {
10965
11009
  return material.value;
10966
- })
11010
+ }),
11011
+ styles: []
10967
11012
  });
10968
11013
  });
10969
11014
 
@@ -11066,7 +11111,9 @@
11066
11111
  var _this$state2 = _this.state,
11067
11112
  category_type = _this$state2.category_type,
11068
11113
  fetching = _this$state2.request.fetching,
11069
- brands = _this$state2.brands;
11114
+ brands = _this$state2.brands,
11115
+ models = _this$state2.models,
11116
+ materials = _this$state2.materials;
11070
11117
  var _this$props = _this.props,
11071
11118
  requestInstance = _this$props.requestInstance,
11072
11119
  baseGraphApi = _this$props.baseGraphApi,
@@ -11117,7 +11164,10 @@
11117
11164
  onChange: _this.onStylesChanged,
11118
11165
  requestInstance: requestInstance,
11119
11166
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11120
- getGraphQuery: getStylesGraphQuery
11167
+ getGraphQuery: getStylesGraphQuery,
11168
+ brands: brands,
11169
+ models: models,
11170
+ materials: materials
11121
11171
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11122
11172
  className: "fl-right"
11123
11173
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10422,7 +10422,10 @@
10422
10422
  var _this$state = _this.state,
10423
10423
  limit = _this$state.limit,
10424
10424
  category = _this$state.category,
10425
- nameFilter = _this$state.nameFilter;
10425
+ nameFilter = _this$state.nameFilter,
10426
+ brands = _this$state.brands,
10427
+ models = _this$state.models,
10428
+ materials = _this$state.materials;
10426
10429
  var _this$props = _this.props,
10427
10430
  title = _this$props.title,
10428
10431
  baseClass = _this$props.baseClass,
@@ -10443,10 +10446,10 @@
10443
10446
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10444
10447
  triggerRequest: function triggerRequest() {
10445
10448
  return requestInstance.post(graphApi, {
10446
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10449
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10447
10450
  });
10448
10451
  },
10449
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10452
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10450
10453
  identifier: identifier,
10451
10454
  ref: _this.multiSelectorRef,
10452
10455
  onChange: _this.onChange,
@@ -10459,6 +10462,9 @@
10459
10462
  _this.state = {
10460
10463
  limit: props.baseQueryLimit,
10461
10464
  category: props.category,
10465
+ brands: props.brands,
10466
+ models: props.models,
10467
+ materials: props.materials,
10462
10468
  nameFilter: ''
10463
10469
  };
10464
10470
  return _this;
@@ -10467,11 +10473,23 @@
10467
10473
  _createClass(LuxityGraphQLMultiselector, [{
10468
10474
  key: "componentDidUpdate",
10469
10475
  value: function componentDidUpdate(prevProps) {
10470
- var _this$multiSelectorRe;
10476
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10471
10477
 
10472
10478
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10473
10479
  this.multiSelectorRef.current.emptySelected();
10474
10480
  }
10481
+
10482
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10483
+ this.multiSelectorRef.current.emptySelected();
10484
+ }
10485
+
10486
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10487
+ this.multiSelectorRef.current.emptySelected();
10488
+ }
10489
+
10490
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10491
+ this.multiSelectorRef.current.emptySelected();
10492
+ }
10475
10493
  }
10476
10494
  }], [{
10477
10495
  key: "getDerivedStateFromProps",
@@ -10482,6 +10500,24 @@
10482
10500
  };
10483
10501
  }
10484
10502
 
10503
+ if (prevState.brands !== props.brands) {
10504
+ return {
10505
+ brands: props.brands
10506
+ };
10507
+ }
10508
+
10509
+ if (prevState.models !== props.models) {
10510
+ return {
10511
+ models: props.models
10512
+ };
10513
+ }
10514
+
10515
+ if (prevState.materials !== props.materials) {
10516
+ return {
10517
+ materials: props.materials
10518
+ };
10519
+ }
10520
+
10485
10521
  return null;
10486
10522
  }
10487
10523
  }]);
@@ -10530,7 +10566,10 @@
10530
10566
  itemRenderer = _ref.itemRenderer,
10531
10567
  getGraphQuery = _ref.getGraphQuery,
10532
10568
  resultProcessor = _ref.resultProcessor,
10533
- requestInstance = _ref.requestInstance;
10569
+ requestInstance = _ref.requestInstance,
10570
+ brands = _ref.brands,
10571
+ models = _ref.models,
10572
+ materials = _ref.materials;
10534
10573
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10535
10574
  title: "Styles",
10536
10575
  queryId: "getStyles",
@@ -10539,6 +10578,9 @@
10539
10578
  identifier: "style-selector",
10540
10579
  searchPlaceHolder: "Search Styles",
10541
10580
  category: category,
10581
+ brands: brands,
10582
+ models: models,
10583
+ materials: materials,
10542
10584
  onChange: onChange,
10543
10585
  graphApi: graphApi,
10544
10586
  itemRenderer: itemRenderer,
@@ -11066,7 +11108,8 @@
11066
11108
  _this.setState({
11067
11109
  brands: brandsArray.map(function (brand) {
11068
11110
  return brand.value;
11069
- })
11111
+ }),
11112
+ styles: []
11070
11113
  });
11071
11114
  });
11072
11115
 
@@ -11090,7 +11133,8 @@
11090
11133
  _this.setState({
11091
11134
  models: modelsArray.map(function (model) {
11092
11135
  return model.value;
11093
- })
11136
+ }),
11137
+ styles: []
11094
11138
  });
11095
11139
  });
11096
11140
 
@@ -11098,7 +11142,8 @@
11098
11142
  _this.setState({
11099
11143
  materials: materialsArray.map(function (material) {
11100
11144
  return material.value;
11101
- })
11145
+ }),
11146
+ styles: []
11102
11147
  });
11103
11148
  });
11104
11149
 
@@ -11201,7 +11246,9 @@
11201
11246
  var _this$state2 = _this.state,
11202
11247
  category_type = _this$state2.category_type,
11203
11248
  fetching = _this$state2.request.fetching,
11204
- brands = _this$state2.brands;
11249
+ brands = _this$state2.brands,
11250
+ models = _this$state2.models,
11251
+ materials = _this$state2.materials;
11205
11252
  var _this$props = _this.props,
11206
11253
  requestInstance = _this$props.requestInstance,
11207
11254
  baseGraphApi = _this$props.baseGraphApi,
@@ -11252,7 +11299,10 @@
11252
11299
  onChange: _this.onStylesChanged,
11253
11300
  requestInstance: requestInstance,
11254
11301
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11255
- getGraphQuery: getStylesGraphQuery
11302
+ getGraphQuery: getStylesGraphQuery,
11303
+ brands: brands,
11304
+ models: models,
11305
+ materials: materials
11256
11306
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11257
11307
  className: "fl-right"
11258
11308
  }, /*#__PURE__*/React__default.createElement("div", {
package/Interests.js CHANGED
@@ -10842,7 +10842,10 @@
10842
10842
  var _this$state = _this.state,
10843
10843
  limit = _this$state.limit,
10844
10844
  category = _this$state.category,
10845
- nameFilter = _this$state.nameFilter;
10845
+ nameFilter = _this$state.nameFilter,
10846
+ brands = _this$state.brands,
10847
+ models = _this$state.models,
10848
+ materials = _this$state.materials;
10846
10849
  var _this$props = _this.props,
10847
10850
  title = _this$props.title,
10848
10851
  baseClass = _this$props.baseClass,
@@ -10863,10 +10866,10 @@
10863
10866
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10864
10867
  triggerRequest: function triggerRequest() {
10865
10868
  return requestInstance.post(graphApi, {
10866
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10869
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10867
10870
  });
10868
10871
  },
10869
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10872
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10870
10873
  identifier: identifier,
10871
10874
  ref: _this.multiSelectorRef,
10872
10875
  onChange: _this.onChange,
@@ -10879,6 +10882,9 @@
10879
10882
  _this.state = {
10880
10883
  limit: props.baseQueryLimit,
10881
10884
  category: props.category,
10885
+ brands: props.brands,
10886
+ models: props.models,
10887
+ materials: props.materials,
10882
10888
  nameFilter: ''
10883
10889
  };
10884
10890
  return _this;
@@ -10887,11 +10893,23 @@
10887
10893
  _createClass(LuxityGraphQLMultiselector, [{
10888
10894
  key: "componentDidUpdate",
10889
10895
  value: function componentDidUpdate(prevProps) {
10890
- var _this$multiSelectorRe;
10896
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10891
10897
 
10892
10898
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10893
10899
  this.multiSelectorRef.current.emptySelected();
10894
10900
  }
10901
+
10902
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10903
+ this.multiSelectorRef.current.emptySelected();
10904
+ }
10905
+
10906
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10907
+ this.multiSelectorRef.current.emptySelected();
10908
+ }
10909
+
10910
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10911
+ this.multiSelectorRef.current.emptySelected();
10912
+ }
10895
10913
  }
10896
10914
  }], [{
10897
10915
  key: "getDerivedStateFromProps",
@@ -10902,6 +10920,24 @@
10902
10920
  };
10903
10921
  }
10904
10922
 
10923
+ if (prevState.brands !== props.brands) {
10924
+ return {
10925
+ brands: props.brands
10926
+ };
10927
+ }
10928
+
10929
+ if (prevState.models !== props.models) {
10930
+ return {
10931
+ models: props.models
10932
+ };
10933
+ }
10934
+
10935
+ if (prevState.materials !== props.materials) {
10936
+ return {
10937
+ materials: props.materials
10938
+ };
10939
+ }
10940
+
10905
10941
  return null;
10906
10942
  }
10907
10943
  }]);
@@ -10950,7 +10986,10 @@
10950
10986
  itemRenderer = _ref.itemRenderer,
10951
10987
  getGraphQuery = _ref.getGraphQuery,
10952
10988
  resultProcessor = _ref.resultProcessor,
10953
- requestInstance = _ref.requestInstance;
10989
+ requestInstance = _ref.requestInstance,
10990
+ brands = _ref.brands,
10991
+ models = _ref.models,
10992
+ materials = _ref.materials;
10954
10993
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10955
10994
  title: "Styles",
10956
10995
  queryId: "getStyles",
@@ -10959,6 +10998,9 @@
10959
10998
  identifier: "style-selector",
10960
10999
  searchPlaceHolder: "Search Styles",
10961
11000
  category: category,
11001
+ brands: brands,
11002
+ models: models,
11003
+ materials: materials,
10962
11004
  onChange: onChange,
10963
11005
  graphApi: graphApi,
10964
11006
  itemRenderer: itemRenderer,
@@ -11486,7 +11528,8 @@
11486
11528
  _this.setState({
11487
11529
  brands: brandsArray.map(function (brand) {
11488
11530
  return brand.value;
11489
- })
11531
+ }),
11532
+ styles: []
11490
11533
  });
11491
11534
  });
11492
11535
 
@@ -11510,7 +11553,8 @@
11510
11553
  _this.setState({
11511
11554
  models: modelsArray.map(function (model) {
11512
11555
  return model.value;
11513
- })
11556
+ }),
11557
+ styles: []
11514
11558
  });
11515
11559
  });
11516
11560
 
@@ -11518,7 +11562,8 @@
11518
11562
  _this.setState({
11519
11563
  materials: materialsArray.map(function (material) {
11520
11564
  return material.value;
11521
- })
11565
+ }),
11566
+ styles: []
11522
11567
  });
11523
11568
  });
11524
11569
 
@@ -11621,7 +11666,9 @@
11621
11666
  var _this$state2 = _this.state,
11622
11667
  category_type = _this$state2.category_type,
11623
11668
  fetching = _this$state2.request.fetching,
11624
- brands = _this$state2.brands;
11669
+ brands = _this$state2.brands,
11670
+ models = _this$state2.models,
11671
+ materials = _this$state2.materials;
11625
11672
  var _this$props = _this.props,
11626
11673
  requestInstance = _this$props.requestInstance,
11627
11674
  baseGraphApi = _this$props.baseGraphApi,
@@ -11672,7 +11719,10 @@
11672
11719
  onChange: _this.onStylesChanged,
11673
11720
  requestInstance: requestInstance,
11674
11721
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11675
- getGraphQuery: getStylesGraphQuery
11722
+ getGraphQuery: getStylesGraphQuery,
11723
+ brands: brands,
11724
+ models: models,
11725
+ materials: materials
11676
11726
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11677
11727
  className: "fl-right"
11678
11728
  }, /*#__PURE__*/React__default.createElement("div", {