@bonlineza/luxity-lib 2.17.4 → 2.18.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.
@@ -1683,7 +1683,6 @@
1683
1683
  return React__default.createElement("input", __assign({}, inputProps));
1684
1684
  });
1685
1685
  CurrencyInput.displayName = 'CurrencyInput';
1686
- //# sourceMappingURL=index.esm.js.map
1687
1686
 
1688
1687
  var _excluded$5 = ["value", "onChange", "prefix", "allowNegativeValue", "groupSeparator", "decimalSeparator"];
1689
1688
  var unMask = function unMask() {
@@ -10324,7 +10323,10 @@
10324
10323
  var _this$state = _this.state,
10325
10324
  limit = _this$state.limit,
10326
10325
  category = _this$state.category,
10327
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10328
10330
  var _this$props = _this.props,
10329
10331
  title = _this$props.title,
10330
10332
  baseClass = _this$props.baseClass,
@@ -10345,10 +10347,10 @@
10345
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10346
10348
  triggerRequest: function triggerRequest() {
10347
10349
  return requestInstance.post(graphApi, {
10348
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10349
10351
  });
10350
10352
  },
10351
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10352
10354
  identifier: identifier,
10353
10355
  ref: _this.multiSelectorRef,
10354
10356
  onChange: _this.onChange,
@@ -10361,6 +10363,9 @@
10361
10363
  _this.state = {
10362
10364
  limit: props.baseQueryLimit,
10363
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10364
10369
  nameFilter: ''
10365
10370
  };
10366
10371
  return _this;
@@ -10369,11 +10374,23 @@
10369
10374
  _createClass(LuxityGraphQLMultiselector, [{
10370
10375
  key: "componentDidUpdate",
10371
10376
  value: function componentDidUpdate(prevProps) {
10372
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10373
10378
 
10374
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10375
10380
  this.multiSelectorRef.current.emptySelected();
10376
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10377
10394
  }
10378
10395
  }], [{
10379
10396
  key: "getDerivedStateFromProps",
@@ -10384,6 +10401,24 @@
10384
10401
  };
10385
10402
  }
10386
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10387
10422
  return null;
10388
10423
  }
10389
10424
  }]);
@@ -10432,7 +10467,10 @@
10432
10467
  itemRenderer = _ref.itemRenderer,
10433
10468
  getGraphQuery = _ref.getGraphQuery,
10434
10469
  resultProcessor = _ref.resultProcessor,
10435
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10436
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10437
10475
  title: "Styles",
10438
10476
  queryId: "getStyles",
@@ -10441,6 +10479,9 @@
10441
10479
  identifier: "style-selector",
10442
10480
  searchPlaceHolder: "Search Styles",
10443
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10444
10485
  onChange: onChange,
10445
10486
  graphApi: graphApi,
10446
10487
  itemRenderer: itemRenderer,
@@ -10968,7 +11009,8 @@
10968
11009
  _this.setState({
10969
11010
  brands: brandsArray.map(function (brand) {
10970
11011
  return brand.value;
10971
- })
11012
+ }),
11013
+ styles: []
10972
11014
  });
10973
11015
  });
10974
11016
 
@@ -10992,7 +11034,8 @@
10992
11034
  _this.setState({
10993
11035
  models: modelsArray.map(function (model) {
10994
11036
  return model.value;
10995
- })
11037
+ }),
11038
+ styles: []
10996
11039
  });
10997
11040
  });
10998
11041
 
@@ -11000,7 +11043,8 @@
11000
11043
  _this.setState({
11001
11044
  materials: materialsArray.map(function (material) {
11002
11045
  return material.value;
11003
- })
11046
+ }),
11047
+ styles: []
11004
11048
  });
11005
11049
  });
11006
11050
 
@@ -11103,7 +11147,9 @@
11103
11147
  var _this$state2 = _this.state,
11104
11148
  category_type = _this$state2.category_type,
11105
11149
  fetching = _this$state2.request.fetching,
11106
- brands = _this$state2.brands;
11150
+ brands = _this$state2.brands,
11151
+ models = _this$state2.models,
11152
+ materials = _this$state2.materials;
11107
11153
  var _this$props = _this.props,
11108
11154
  requestInstance = _this$props.requestInstance,
11109
11155
  baseGraphApi = _this$props.baseGraphApi,
@@ -11154,7 +11200,10 @@
11154
11200
  onChange: _this.onStylesChanged,
11155
11201
  requestInstance: requestInstance,
11156
11202
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11157
- getGraphQuery: getStylesGraphQuery
11203
+ getGraphQuery: getStylesGraphQuery,
11204
+ brands: brands,
11205
+ models: models,
11206
+ materials: materials
11158
11207
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11159
11208
  className: "fl-right"
11160
11209
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -817,7 +817,10 @@
817
817
  var _this$state = _this.state,
818
818
  limit = _this$state.limit,
819
819
  category = _this$state.category,
820
- nameFilter = _this$state.nameFilter;
820
+ nameFilter = _this$state.nameFilter,
821
+ brands = _this$state.brands,
822
+ models = _this$state.models,
823
+ materials = _this$state.materials;
821
824
  var _this$props = _this.props,
822
825
  title = _this$props.title,
823
826
  baseClass = _this$props.baseClass,
@@ -838,10 +841,10 @@
838
841
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
839
842
  triggerRequest: function triggerRequest() {
840
843
  return requestInstance.post(graphApi, {
841
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
844
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
842
845
  });
843
846
  },
844
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
847
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
845
848
  identifier: identifier,
846
849
  ref: _this.multiSelectorRef,
847
850
  onChange: _this.onChange,
@@ -854,6 +857,9 @@
854
857
  _this.state = {
855
858
  limit: props.baseQueryLimit,
856
859
  category: props.category,
860
+ brands: props.brands,
861
+ models: props.models,
862
+ materials: props.materials,
857
863
  nameFilter: ''
858
864
  };
859
865
  return _this;
@@ -862,11 +868,23 @@
862
868
  _createClass(LuxityGraphQLMultiselector, [{
863
869
  key: "componentDidUpdate",
864
870
  value: function componentDidUpdate(prevProps) {
865
- var _this$multiSelectorRe;
871
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
866
872
 
867
873
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
868
874
  this.multiSelectorRef.current.emptySelected();
869
875
  }
876
+
877
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
878
+ this.multiSelectorRef.current.emptySelected();
879
+ }
880
+
881
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
882
+ this.multiSelectorRef.current.emptySelected();
883
+ }
884
+
885
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
886
+ this.multiSelectorRef.current.emptySelected();
887
+ }
870
888
  }
871
889
  }], [{
872
890
  key: "getDerivedStateFromProps",
@@ -877,6 +895,24 @@
877
895
  };
878
896
  }
879
897
 
898
+ if (prevState.brands !== props.brands) {
899
+ return {
900
+ brands: props.brands
901
+ };
902
+ }
903
+
904
+ if (prevState.models !== props.models) {
905
+ return {
906
+ models: props.models
907
+ };
908
+ }
909
+
910
+ if (prevState.materials !== props.materials) {
911
+ return {
912
+ materials: props.materials
913
+ };
914
+ }
915
+
880
916
  return null;
881
917
  }
882
918
  }]);
@@ -1683,7 +1683,6 @@
1683
1683
  return React__default.createElement("input", __assign({}, inputProps));
1684
1684
  });
1685
1685
  CurrencyInput.displayName = 'CurrencyInput';
1686
- //# sourceMappingURL=index.esm.js.map
1687
1686
 
1688
1687
  var _excluded$5 = ["value", "onChange", "prefix", "allowNegativeValue", "groupSeparator", "decimalSeparator"];
1689
1688
  var unMask = function unMask() {
@@ -10324,7 +10323,10 @@
10324
10323
  var _this$state = _this.state,
10325
10324
  limit = _this$state.limit,
10326
10325
  category = _this$state.category,
10327
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10328
10330
  var _this$props = _this.props,
10329
10331
  title = _this$props.title,
10330
10332
  baseClass = _this$props.baseClass,
@@ -10345,10 +10347,10 @@
10345
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10346
10348
  triggerRequest: function triggerRequest() {
10347
10349
  return requestInstance.post(graphApi, {
10348
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10349
10351
  });
10350
10352
  },
10351
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10352
10354
  identifier: identifier,
10353
10355
  ref: _this.multiSelectorRef,
10354
10356
  onChange: _this.onChange,
@@ -10361,6 +10363,9 @@
10361
10363
  _this.state = {
10362
10364
  limit: props.baseQueryLimit,
10363
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10364
10369
  nameFilter: ''
10365
10370
  };
10366
10371
  return _this;
@@ -10369,11 +10374,23 @@
10369
10374
  _createClass(LuxityGraphQLMultiselector, [{
10370
10375
  key: "componentDidUpdate",
10371
10376
  value: function componentDidUpdate(prevProps) {
10372
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10373
10378
 
10374
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10375
10380
  this.multiSelectorRef.current.emptySelected();
10376
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10377
10394
  }
10378
10395
  }], [{
10379
10396
  key: "getDerivedStateFromProps",
@@ -10384,6 +10401,24 @@
10384
10401
  };
10385
10402
  }
10386
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10387
10422
  return null;
10388
10423
  }
10389
10424
  }]);
@@ -10432,7 +10467,10 @@
10432
10467
  itemRenderer = _ref.itemRenderer,
10433
10468
  getGraphQuery = _ref.getGraphQuery,
10434
10469
  resultProcessor = _ref.resultProcessor,
10435
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10436
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10437
10475
  title: "Styles",
10438
10476
  queryId: "getStyles",
@@ -10441,6 +10479,9 @@
10441
10479
  identifier: "style-selector",
10442
10480
  searchPlaceHolder: "Search Styles",
10443
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10444
10485
  onChange: onChange,
10445
10486
  graphApi: graphApi,
10446
10487
  itemRenderer: itemRenderer,
@@ -10933,7 +10974,8 @@
10933
10974
  _this.setState({
10934
10975
  brands: brandsArray.map(function (brand) {
10935
10976
  return brand.value;
10936
- })
10977
+ }),
10978
+ styles: []
10937
10979
  });
10938
10980
  });
10939
10981
 
@@ -10957,7 +10999,8 @@
10957
10999
  _this.setState({
10958
11000
  models: modelsArray.map(function (model) {
10959
11001
  return model.value;
10960
- })
11002
+ }),
11003
+ styles: []
10961
11004
  });
10962
11005
  });
10963
11006
 
@@ -10965,7 +11008,8 @@
10965
11008
  _this.setState({
10966
11009
  materials: materialsArray.map(function (material) {
10967
11010
  return material.value;
10968
- })
11011
+ }),
11012
+ styles: []
10969
11013
  });
10970
11014
  });
10971
11015
 
@@ -11068,7 +11112,9 @@
11068
11112
  var _this$state2 = _this.state,
11069
11113
  category_type = _this$state2.category_type,
11070
11114
  fetching = _this$state2.request.fetching,
11071
- brands = _this$state2.brands;
11115
+ brands = _this$state2.brands,
11116
+ models = _this$state2.models,
11117
+ materials = _this$state2.materials;
11072
11118
  var _this$props = _this.props,
11073
11119
  requestInstance = _this$props.requestInstance,
11074
11120
  baseGraphApi = _this$props.baseGraphApi,
@@ -11119,7 +11165,10 @@
11119
11165
  onChange: _this.onStylesChanged,
11120
11166
  requestInstance: requestInstance,
11121
11167
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11122
- getGraphQuery: getStylesGraphQuery
11168
+ getGraphQuery: getStylesGraphQuery,
11169
+ brands: brands,
11170
+ models: models,
11171
+ materials: materials
11123
11172
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11124
11173
  className: "fl-right"
11125
11174
  }, /*#__PURE__*/React__default.createElement("div", {
package/ModelSelector.js CHANGED
@@ -1683,7 +1683,6 @@
1683
1683
  return React__default.createElement("input", __assign({}, inputProps));
1684
1684
  });
1685
1685
  CurrencyInput.displayName = 'CurrencyInput';
1686
- //# sourceMappingURL=index.esm.js.map
1687
1686
 
1688
1687
  var _excluded$5 = ["value", "onChange", "prefix", "allowNegativeValue", "groupSeparator", "decimalSeparator"];
1689
1688
  var unMask = function unMask() {
@@ -10324,7 +10323,10 @@
10324
10323
  var _this$state = _this.state,
10325
10324
  limit = _this$state.limit,
10326
10325
  category = _this$state.category,
10327
- nameFilter = _this$state.nameFilter;
10326
+ nameFilter = _this$state.nameFilter,
10327
+ brands = _this$state.brands,
10328
+ models = _this$state.models,
10329
+ materials = _this$state.materials;
10328
10330
  var _this$props = _this.props,
10329
10331
  title = _this$props.title,
10330
10332
  baseClass = _this$props.baseClass,
@@ -10345,10 +10347,10 @@
10345
10347
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10346
10348
  triggerRequest: function triggerRequest() {
10347
10349
  return requestInstance.post(graphApi, {
10348
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10350
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10349
10351
  });
10350
10352
  },
10351
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10353
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10352
10354
  identifier: identifier,
10353
10355
  ref: _this.multiSelectorRef,
10354
10356
  onChange: _this.onChange,
@@ -10361,6 +10363,9 @@
10361
10363
  _this.state = {
10362
10364
  limit: props.baseQueryLimit,
10363
10365
  category: props.category,
10366
+ brands: props.brands,
10367
+ models: props.models,
10368
+ materials: props.materials,
10364
10369
  nameFilter: ''
10365
10370
  };
10366
10371
  return _this;
@@ -10369,11 +10374,23 @@
10369
10374
  _createClass(LuxityGraphQLMultiselector, [{
10370
10375
  key: "componentDidUpdate",
10371
10376
  value: function componentDidUpdate(prevProps) {
10372
- var _this$multiSelectorRe;
10377
+ var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10373
10378
 
10374
10379
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10375
10380
  this.multiSelectorRef.current.emptySelected();
10376
10381
  }
10382
+
10383
+ if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10384
+ this.multiSelectorRef.current.emptySelected();
10385
+ }
10386
+
10387
+ if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10388
+ this.multiSelectorRef.current.emptySelected();
10389
+ }
10390
+
10391
+ if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10392
+ this.multiSelectorRef.current.emptySelected();
10393
+ }
10377
10394
  }
10378
10395
  }], [{
10379
10396
  key: "getDerivedStateFromProps",
@@ -10384,6 +10401,24 @@
10384
10401
  };
10385
10402
  }
10386
10403
 
10404
+ if (prevState.brands !== props.brands) {
10405
+ return {
10406
+ brands: props.brands
10407
+ };
10408
+ }
10409
+
10410
+ if (prevState.models !== props.models) {
10411
+ return {
10412
+ models: props.models
10413
+ };
10414
+ }
10415
+
10416
+ if (prevState.materials !== props.materials) {
10417
+ return {
10418
+ materials: props.materials
10419
+ };
10420
+ }
10421
+
10387
10422
  return null;
10388
10423
  }
10389
10424
  }]);
@@ -10432,7 +10467,10 @@
10432
10467
  itemRenderer = _ref.itemRenderer,
10433
10468
  getGraphQuery = _ref.getGraphQuery,
10434
10469
  resultProcessor = _ref.resultProcessor,
10435
- requestInstance = _ref.requestInstance;
10470
+ requestInstance = _ref.requestInstance,
10471
+ brands = _ref.brands,
10472
+ models = _ref.models,
10473
+ materials = _ref.materials;
10436
10474
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10437
10475
  title: "Styles",
10438
10476
  queryId: "getStyles",
@@ -10441,6 +10479,9 @@
10441
10479
  identifier: "style-selector",
10442
10480
  searchPlaceHolder: "Search Styles",
10443
10481
  category: category,
10482
+ brands: brands,
10483
+ models: models,
10484
+ materials: materials,
10444
10485
  onChange: onChange,
10445
10486
  graphApi: graphApi,
10446
10487
  itemRenderer: itemRenderer,
@@ -10933,7 +10974,8 @@
10933
10974
  _this.setState({
10934
10975
  brands: brandsArray.map(function (brand) {
10935
10976
  return brand.value;
10936
- })
10977
+ }),
10978
+ styles: []
10937
10979
  });
10938
10980
  });
10939
10981
 
@@ -10957,7 +10999,8 @@
10957
10999
  _this.setState({
10958
11000
  models: modelsArray.map(function (model) {
10959
11001
  return model.value;
10960
- })
11002
+ }),
11003
+ styles: []
10961
11004
  });
10962
11005
  });
10963
11006
 
@@ -10965,7 +11008,8 @@
10965
11008
  _this.setState({
10966
11009
  materials: materialsArray.map(function (material) {
10967
11010
  return material.value;
10968
- })
11011
+ }),
11012
+ styles: []
10969
11013
  });
10970
11014
  });
10971
11015
 
@@ -11068,7 +11112,9 @@
11068
11112
  var _this$state2 = _this.state,
11069
11113
  category_type = _this$state2.category_type,
11070
11114
  fetching = _this$state2.request.fetching,
11071
- brands = _this$state2.brands;
11115
+ brands = _this$state2.brands,
11116
+ models = _this$state2.models,
11117
+ materials = _this$state2.materials;
11072
11118
  var _this$props = _this.props,
11073
11119
  requestInstance = _this$props.requestInstance,
11074
11120
  baseGraphApi = _this$props.baseGraphApi,
@@ -11119,7 +11165,10 @@
11119
11165
  onChange: _this.onStylesChanged,
11120
11166
  requestInstance: requestInstance,
11121
11167
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11122
- getGraphQuery: getStylesGraphQuery
11168
+ getGraphQuery: getStylesGraphQuery,
11169
+ brands: brands,
11170
+ models: models,
11171
+ materials: materials
11123
11172
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11124
11173
  className: "fl-right"
11125
11174
  }, /*#__PURE__*/React__default.createElement("div", {
package/RareStepFooter.js CHANGED
@@ -203,10 +203,12 @@
203
203
  }), /*#__PURE__*/React__default.createElement(FooterTitleLink, {
204
204
  className: "footer__link"
205
205
  }, "Connect"), /*#__PURE__*/React__default.createElement(SocialIconWrapper, null, /*#__PURE__*/React__default.createElement(FooterLink, {
206
+ target: "_blank",
206
207
  href: facebookUrl
207
208
  }, /*#__PURE__*/React__default.createElement(SocialIcon, {
208
209
  src: facebookIconUrl
209
210
  })), /*#__PURE__*/React__default.createElement(FooterLink, {
211
+ target: "_blank",
210
212
  href: instagramUrl
211
213
  }, /*#__PURE__*/React__default.createElement(SocialIcon, {
212
214
  src: instagramImageUrl
@@ -234,10 +236,12 @@
234
236
  className: "footer__links",
235
237
  key: index
236
238
  }, /*#__PURE__*/React__default.createElement(FooterTitleLink, {
239
+ target: footerLink !== null && footerLink !== void 0 && footerLink.openInNewTab ? '_blank' : '_self',
237
240
  className: "footer__link",
238
241
  href: footerLink.url
239
242
  }, footerLink.title), footerLink.links.map(function (link, linkIndex) {
240
243
  return /*#__PURE__*/React__default.createElement(FooterLink, {
244
+ target: footerLink !== null && footerLink !== void 0 && footerLink.openInNewTab ? '_blank' : '_self',
241
245
  className: "footer__link",
242
246
  href: link.url,
243
247
  key: linkIndex