@bonlineza/luxity-lib 2.27.0 → 2.29.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/build/bundle.js CHANGED
@@ -903,22 +903,6 @@
903
903
  return /*#__PURE__*/React__default.createElement("span", {
904
904
  key: "".concat(style.name, "-").concat(data.id)
905
905
  }, style.name);
906
- }) : 'All')), /*#__PURE__*/React__default.createElement("div", {
907
- className: "interest-item__container_heading"
908
- }, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Models:"), /*#__PURE__*/React__default.createElement("div", {
909
- className: "list-items"
910
- }, data.luxity_models != null && data.luxity_models.length > 0 ? data.luxity_models.map(function (model) {
911
- return /*#__PURE__*/React__default.createElement("span", {
912
- key: "".concat(model.name, "-").concat(data.id)
913
- }, model.name);
914
- }) : 'All')), /*#__PURE__*/React__default.createElement("div", {
915
- className: "interest-item__container_heading"
916
- }, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Materials:"), /*#__PURE__*/React__default.createElement("div", {
917
- className: "list-items"
918
- }, data.luxity_materials != null && data.luxity_materials.length > 0 ? data.luxity_materials.map(function (material) {
919
- return /*#__PURE__*/React__default.createElement("span", {
920
- key: "".concat(material.name, "-").concat(data.id)
921
- }, material.name);
922
906
  }) : 'All')), /*#__PURE__*/React__default.createElement("div", {
923
907
  className: "interest-item__container_heading ".concat(data.category_type === interestCategories.SHOES ? '' : 'no-shoe-size-section')
924
908
  }, data.category_type === interestCategories.SHOES ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(InterestItemTitle, null, "Shoe Size:"), /*#__PURE__*/React__default.createElement("div", {
@@ -9725,298 +9709,15 @@
9725
9709
 
9726
9710
  var NotificationDropDown$1 = themed(NotificationDropDown);
9727
9711
 
9728
- var _templateObject$E;
9712
+ var _templateObject$E, _templateObject2$6;
9729
9713
  var ALL_ITEM = {
9730
- label: 'ALL',
9731
- value: 'ALL'
9732
- };
9733
- var StyledMultiselector = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: no-wrap;\n margin-bottom: 40px;\n .dropdown-select-container {\n width: 100%;\n .dropdown-select {\n &__control {\n border-color: ", ";\n border-radius: 0px;\n background-color: ", ";\n color: ", ";\n }\n &__multi-value {\n background-color: ", ";\n }\n &__multi-value__label {\n color: ", ";\n font-size: 100%;\n }\n &__multi-value__remove {\n svg {\n fill: ", ";\n }\n }\n }\n }\n }\n"])), function (props) {
9734
- return props.theme.colors.primary;
9735
- }, function (props) {
9736
- return props.theme.colors.ntrlMin;
9737
- }, function (props) {
9738
- return props.theme.colors.primary;
9739
- }, function (props) {
9740
- return props.theme.colors.primary;
9741
- }, function (props) {
9742
- return props.theme.colors.ntrlMin;
9743
- }, function (props) {
9744
- return props.theme.colors.ntrlMin;
9745
- });
9746
- /**
9747
- * Multiselector with a GraphQL flavour (TODO: to be revised to make it remote api agnostic)
9748
- */
9749
-
9750
- var GraphQLDropdownSelector = /*#__PURE__*/function (_React$Component) {
9751
- _inherits(GraphQLDropdownSelector, _React$Component);
9752
-
9753
- var _super = _createSuper(GraphQLDropdownSelector);
9754
-
9755
- function GraphQLDropdownSelector(props) {
9756
- var _this;
9757
-
9758
- _classCallCheck(this, GraphQLDropdownSelector);
9759
-
9760
- _this = _super.call(this, props);
9761
-
9762
- _defineProperty(_assertThisInitialized(_this), "componentDidUpdate", function (prevProps) {
9763
- if (prevProps.graphQuery !== _this.props.graphQuery) {
9764
- _this.makeRequest();
9765
- }
9766
- });
9767
-
9768
- _defineProperty(_assertThisInitialized(_this), "makeRequest", function () {
9769
- _this.pageReady.refreshPage();
9770
- });
9771
-
9772
- _defineProperty(_assertThisInitialized(_this), "emptySelected", function () {
9773
- return _this.setState({
9774
- selected: [ALL_ITEM]
9775
- });
9776
- });
9777
-
9778
- _defineProperty(_assertThisInitialized(_this), "setNewResults", function (res) {
9779
- var selectedIds = _this.state.selected.map(function (sel) {
9780
- return sel.value;
9781
- });
9782
-
9783
- var pagination = _this.props.resultProcessor(res);
9784
-
9785
- var allSelected = _this.state.selected.some(function (item) {
9786
- return item.value === ALL_ITEM.value;
9787
- });
9788
-
9789
- var newList = pagination.filter(function (newItem) {
9790
- return !selectedIds.includes(newItem.value);
9791
- });
9792
- newList = allSelected ? newList : [ALL_ITEM].concat(_toConsumableArray(newList)); // eslint-disable-next-line react/no-unused-state
9793
-
9794
- _this.setState({
9795
- list: newList,
9796
- pagination: pagination
9797
- });
9798
- });
9799
-
9800
- _defineProperty(_assertThisInitialized(_this), "onAddItem", function (addSelectedItem) {
9801
- var newSelectedList;
9802
-
9803
- if (addSelectedItem.includes(ALL_ITEM)) {
9804
- newSelectedList = [ALL_ITEM];
9805
- } else {
9806
- newSelectedList = addSelectedItem.filter(function (item) {
9807
- return item.value !== ALL_ITEM.value;
9808
- });
9809
- }
9810
-
9811
- _this.setState(function (prevState) {
9812
- return _objectSpread2(_objectSpread2({}, prevState), {}, {
9813
- selected: newSelectedList
9814
- });
9815
- }, function () {
9816
- _this.props.onChange(_this.state.selected.filter(function (item) {
9817
- return item.value !== ALL_ITEM.value;
9818
- }));
9819
- });
9820
- });
9821
-
9822
- _defineProperty(_assertThisInitialized(_this), "onIsLoading", function (flag) {
9823
- _this.setState({
9824
- isLoading: flag
9825
- });
9826
- });
9827
-
9828
- _defineProperty(_assertThisInitialized(_this), "render", function () {
9829
- var _this$props = _this.props,
9830
- baseClass = _this$props.baseClass,
9831
- identifier = _this$props.identifier,
9832
- triggerRequest = _this$props.triggerRequest,
9833
- className = _this$props.className;
9834
- var list = _this.state.list;
9835
- return /*#__PURE__*/React__default.createElement(StyledMultiselector, null, /*#__PURE__*/React__default.createElement("div", {
9836
- "data-qe-id": identifier,
9837
- className: "".concat(className, " ").concat(baseClass)
9838
- }, /*#__PURE__*/React__default.createElement(LuxityPageReady, {
9839
- ref: function ref(inst) {
9840
- _this.pageReady = inst;
9841
- },
9842
- onData: _this.setNewResults,
9843
- onIsLoading: _this.onIsLoading,
9844
- getRequestPromise: function getRequestPromise() {
9845
- return triggerRequest();
9846
- }
9847
- }), /*#__PURE__*/React__default.createElement("div", {
9848
- className: "".concat(baseClass, "__selectable-items")
9849
- }, /*#__PURE__*/React__default.createElement(ReactSelectWrapper, {
9850
- options: list,
9851
- onChange: function onChange(value) {
9852
- _this.onAddItem(value);
9853
- },
9854
- isMulti: true,
9855
- isSearchable: true
9856
- }))));
9857
- });
9858
-
9859
- _this.state = {
9860
- selected: [ALL_ITEM],
9861
- list: [],
9862
- pagination: {},
9863
- isLoading: false
9864
- };
9865
- return _this;
9866
- }
9867
-
9868
- return _createClass(GraphQLDropdownSelector);
9869
- }(React__default.Component);
9870
-
9871
- GraphQLDropdownSelector.defaultProps = {
9872
- baseClass: 'multiselector'
9873
- };
9874
- var GraphQLDropdownSelector$1 = themed(GraphQLDropdownSelector);
9875
-
9876
- /**
9877
- * Luxity flavoured GraphQLMultiselector with text Search, category and limit controls
9878
- */
9879
- var LuxityGraphQLDropdownSelector = /*#__PURE__*/function (_React$Component) {
9880
- _inherits(LuxityGraphQLDropdownSelector, _React$Component);
9881
-
9882
- var _super = _createSuper(LuxityGraphQLDropdownSelector);
9883
-
9884
- function LuxityGraphQLDropdownSelector(props) {
9885
- var _this;
9886
-
9887
- _classCallCheck(this, LuxityGraphQLDropdownSelector);
9888
-
9889
- _this = _super.call(this, props);
9890
-
9891
- _defineProperty(_assertThisInitialized(_this), "multiSelectorRef", /*#__PURE__*/React__default.createRef());
9892
-
9893
- _defineProperty(_assertThisInitialized(_this), "increaseLimit", function () {
9894
- _this.setState(function (prevState) {
9895
- return {
9896
- limit: prevState.limit + _this.props.queryLimitIncrement
9897
- };
9898
- });
9899
- });
9900
-
9901
- _defineProperty(_assertThisInitialized(_this), "onChange", function (selection) {
9902
- _this.props.onChange(selection);
9903
- });
9904
-
9905
- _defineProperty(_assertThisInitialized(_this), "render", function () {
9906
- var _this$state = _this.state,
9907
- limit = _this$state.limit,
9908
- query_arguments = _this$state.query_arguments;
9909
- var _this$props = _this.props,
9910
- title = _this$props.title,
9911
- baseClass = _this$props.baseClass,
9912
- getGraphQuery = _this$props.getGraphQuery,
9913
- resultProcessor = _this$props.resultProcessor,
9914
- graphApi = _this$props.graphApi,
9915
- identifier = _this$props.identifier,
9916
- requestInstance = _this$props.requestInstance;
9917
- return /*#__PURE__*/React__default.createElement("div", {
9918
- className: baseClass
9919
- }, /*#__PURE__*/React__default.createElement(InterestsSubheading, {
9920
- className: "".concat(baseClass, "__title"),
9921
- title: title
9922
- }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLDropdownSelector$1, {
9923
- triggerRequest: function triggerRequest() {
9924
- return requestInstance.post(graphApi, {
9925
- query: getGraphQuery(limit, 1, 'id|desc', query_arguments)
9926
- });
9927
- },
9928
- graphQuery: getGraphQuery(limit, 1, 'id|desc', query_arguments),
9929
- identifier: identifier,
9930
- ref: _this.multiSelectorRef,
9931
- onChange: _this.onChange,
9932
- resultProcessor: resultProcessor
9933
- })));
9934
- });
9935
-
9936
- _this.state = {
9937
- limit: props.baseQueryLimit,
9938
- query_arguments: props.query_arguments
9939
- };
9940
- return _this;
9941
- }
9942
-
9943
- _createClass(LuxityGraphQLDropdownSelector, [{
9944
- key: "componentDidUpdate",
9945
- value: function componentDidUpdate(prevProps) {
9946
- var _this$multiSelectorRe;
9947
-
9948
- if (prevProps.query_arguments !== this.props.query_arguments && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
9949
- this.multiSelectorRef.current.emptySelected();
9950
- }
9951
- }
9952
- }], [{
9953
- key: "getDerivedStateFromProps",
9954
- value: function getDerivedStateFromProps(props, prevState) {
9955
- if (prevState.query_arguments !== props.query_arguments) {
9956
- return {
9957
- query_arguments: props.query_arguments
9958
- };
9959
- }
9960
-
9961
- return null;
9962
- }
9963
- }]);
9964
-
9965
- return LuxityGraphQLDropdownSelector;
9966
- }(React__default.Component);
9967
-
9968
- LuxityGraphQLDropdownSelector.defaultProps = {
9969
- baseClass: '',
9970
- searchPlaceHolder: '',
9971
- queryLimitIncrement: 12,
9972
- baseQueryLimit: 12
9973
- };
9974
-
9975
- var BrandSelector = function BrandSelector(_ref) {
9976
- var onChange = _ref.onChange,
9977
- category = _ref.category,
9978
- graphApi = _ref.graphApi,
9979
- getGraphQuery = _ref.getGraphQuery,
9980
- resultProcessor = _ref.resultProcessor,
9981
- requestInstance = _ref.requestInstance;
9982
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
9983
- baseQueryLimit: 9999,
9984
- title: "Brands",
9985
- queryId: "getBrands",
9986
- baseClass: "brand-selector",
9987
- identifier: "brand-selector",
9988
- searchPlaceHolder: "Search brands",
9989
- query_arguments: category,
9990
- onChange: onChange,
9991
- graphApi: graphApi,
9992
- getGraphQuery: getGraphQuery,
9993
- resultProcessor: resultProcessor,
9994
- requestInstance: requestInstance
9995
- });
9996
- };
9997
-
9998
- BrandSelector.defaultProps = {
9999
- resultProcessor: function resultProcessor(result) {
10000
- return result.data.data.luxity_brands.data.map(function (_ref2) {
10001
- var id = _ref2.id,
10002
- name = _ref2.name;
10003
- return {
10004
- label: name,
10005
- value: id
10006
- };
10007
- });
10008
- }
10009
- };
10010
-
10011
- var _templateObject$F, _templateObject2$6;
10012
- var ALL_ITEM$1 = {
10013
9714
  id: 'ALL',
10014
9715
  name: 'ALL'
10015
9716
  };
10016
9717
  var multiSelectorItemMaxHeight = '3rem';
10017
9718
  var multiSelectorItemAnimationDuration = '300ms';
10018
- var multiselectorItemFadeIn = styled.keyframes(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n from {\n margin: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n max-height: ", ";\n opacity: 1;\n }\n"])), multiSelectorItemMaxHeight);
10019
- var StyledMultiselector$1 = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: wrap;\n margin-left: calc(-1 * ", ");\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-transform: none;\n box-sizing: border-box;\n animation: ", " ease-in-out\n ", " forwards;\n flex-basis: calc(25% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n text-overflow: ellipsis;\n overflow-x: hidden;\n min-height: 40px;\n\n @media (max-width: ", ") {\n flex-basis: calc(50% - ", ");\n }\n }\n }\n\n .multiselector__footer {\n display: flex;\n justify-content: center;\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n background-color: ", ";\n color: ", ";\n }\n }\n"])), function (props) {
9719
+ var multiselectorItemFadeIn = styled.keyframes(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n from {\n margin: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n max-height: ", ";\n opacity: 1;\n }\n"])), multiSelectorItemMaxHeight);
9720
+ var StyledMultiselector = styled__default.div(_templateObject2$6 || (_templateObject2$6 = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: wrap;\n margin-left: calc(-1 * ", ");\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n border-color: ", ";\n background-color: ", ";\n color: ", ";\n padding: ", ";\n text-transform: none;\n box-sizing: border-box;\n animation: ", " ease-in-out\n ", " forwards;\n flex-basis: calc(25% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n text-overflow: ellipsis;\n overflow-x: hidden;\n min-height: 40px;\n\n @media (max-width: ", ") {\n flex-basis: calc(50% - ", ");\n }\n }\n }\n\n .multiselector__footer {\n display: flex;\n justify-content: center;\n button {\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n background-color: ", ";\n color: ", ";\n }\n }\n"])), function (props) {
10020
9721
  return props.theme.marginPaddings[2];
10021
9722
  }, function (props) {
10022
9723
  return props.theme.colors.ntrlMin;
@@ -10075,7 +9776,7 @@
10075
9776
 
10076
9777
  _defineProperty(_assertThisInitialized(_this), "emptySelected", function () {
10077
9778
  return _this.setState({
10078
- selected: [ALL_ITEM$1]
9779
+ selected: [ALL_ITEM]
10079
9780
  });
10080
9781
  });
10081
9782
 
@@ -10087,13 +9788,13 @@
10087
9788
  var pagination = _this.props.resultProcessor(res);
10088
9789
 
10089
9790
  var allSelected = _this.state.selected.some(function (item) {
10090
- return item.id === ALL_ITEM$1.id;
9791
+ return item.id === ALL_ITEM.id;
10091
9792
  });
10092
9793
 
10093
9794
  var newList = pagination.data.filter(function (newItem) {
10094
9795
  return !selectedIds.includes(newItem.id);
10095
9796
  });
10096
- newList = allSelected ? newList : [ALL_ITEM$1].concat(_toConsumableArray(newList));
9797
+ newList = allSelected ? newList : [ALL_ITEM].concat(_toConsumableArray(newList));
10097
9798
 
10098
9799
  _this.setState({
10099
9800
  list: newList,
@@ -10106,21 +9807,21 @@
10106
9807
  var newSelectedList;
10107
9808
  var newList;
10108
9809
 
10109
- if (addSelectedItem.id === ALL_ITEM$1.id) {
9810
+ if (addSelectedItem.id === ALL_ITEM.id) {
10110
9811
  // Clear Selected List
10111
9812
  // and move previous Selected items to list
10112
- newSelectedList = [ALL_ITEM$1];
9813
+ newSelectedList = [ALL_ITEM];
10113
9814
  newList = prevState.list.filter(function (item) {
10114
- return item.id !== ALL_ITEM$1.id;
9815
+ return item.id !== ALL_ITEM.id;
10115
9816
  }).concat(prevState.selected).sort(function (a, b) {
10116
9817
  return a.id - b.id;
10117
9818
  });
10118
9819
  } else {
10119
9820
  newSelectedList = _toConsumableArray(prevState.selected.filter(function (item) {
10120
- return item.id !== ALL_ITEM$1.id;
9821
+ return item.id !== ALL_ITEM.id;
10121
9822
  })).concat(addSelectedItem);
10122
- newList = [ALL_ITEM$1].concat(_toConsumableArray(prevState.list.filter(function (item) {
10123
- return item.id !== ALL_ITEM$1.id;
9823
+ newList = [ALL_ITEM].concat(_toConsumableArray(prevState.list.filter(function (item) {
9824
+ return item.id !== ALL_ITEM.id;
10124
9825
  }).filter(function (item) {
10125
9826
  return item.id !== addSelectedItem.id;
10126
9827
  })));
@@ -10132,7 +9833,7 @@
10132
9833
  };
10133
9834
  }, function () {
10134
9835
  _this.props.onChange(_this.state.selected.filter(function (item) {
10135
- return item.id !== ALL_ITEM$1.id;
9836
+ return item.id !== ALL_ITEM.id;
10136
9837
  }));
10137
9838
  });
10138
9839
  });
@@ -10140,7 +9841,7 @@
10140
9841
  _defineProperty(_assertThisInitialized(_this), "onRemoveItem", function (removeSelectedItem) {
10141
9842
  _this.setState(function (prevState) {
10142
9843
  // Cannot remove ALL from selection by unselecting it
10143
- if ((removeSelectedItem === null || removeSelectedItem === void 0 ? void 0 : removeSelectedItem.id) === ALL_ITEM$1.id) {
9844
+ if ((removeSelectedItem === null || removeSelectedItem === void 0 ? void 0 : removeSelectedItem.id) === ALL_ITEM.id) {
10144
9845
  return {};
10145
9846
  }
10146
9847
 
@@ -10149,18 +9850,18 @@
10149
9850
  });
10150
9851
 
10151
9852
  var newList = _toConsumableArray(prevState.list).concat(removeSelectedItem).filter(function (item) {
10152
- return item.id !== ALL_ITEM$1.id;
9853
+ return item.id !== ALL_ITEM.id;
10153
9854
  }).sort(function (a, b) {
10154
9855
  return a.id - b.id;
10155
9856
  });
10156
9857
 
10157
9858
  return {
10158
9859
  list: newList,
10159
- selected: newSelectedList.length ? newSelectedList : [ALL_ITEM$1]
9860
+ selected: newSelectedList.length ? newSelectedList : [ALL_ITEM]
10160
9861
  };
10161
9862
  }, function () {
10162
9863
  _this.props.onChange(_this.state.selected.filter(function (item) {
10163
- return item.id !== ALL_ITEM$1.id;
9864
+ return item.id !== ALL_ITEM.id;
10164
9865
  }));
10165
9866
  });
10166
9867
  });
@@ -10183,7 +9884,7 @@
10183
9884
  selected = _this$state.selected,
10184
9885
  pagination = _this$state.pagination,
10185
9886
  isLoading = _this$state.isLoading;
10186
- return /*#__PURE__*/React__default.createElement(StyledMultiselector$1, null, /*#__PURE__*/React__default.createElement("div", {
9887
+ return /*#__PURE__*/React__default.createElement(StyledMultiselector, null, /*#__PURE__*/React__default.createElement("div", {
10187
9888
  "data-qe-id": identifier,
10188
9889
  className: "".concat(className, " ").concat(baseClass)
10189
9890
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -10223,7 +9924,7 @@
10223
9924
  });
10224
9925
 
10225
9926
  _this.state = {
10226
- selected: [ALL_ITEM$1],
9927
+ selected: [ALL_ITEM],
10227
9928
  list: [],
10228
9929
  pagination: {},
10229
9930
  isLoading: false
@@ -10253,7 +9954,7 @@
10253
9954
  }));
10254
9955
  });
10255
9956
 
10256
- var _templateObject$G;
9957
+ var _templateObject$F;
10257
9958
 
10258
9959
  var Title$3 = function Title(_ref) {
10259
9960
  var baseClass = _ref.baseClass,
@@ -10274,7 +9975,7 @@
10274
9975
  })));
10275
9976
  };
10276
9977
 
10277
- var StyledTitle = styled__default(Title$3)(_templateObject$G || (_templateObject$G = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-weight: bold;\n display: flex;\n align-items: center;\n font-size: ", ";\n\n .title__search,\n .title__search {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 30px;\n margin-bottom: ", ";\n\n svg {\n margin-left: ", ";\n fill: ", ";\n stroke: ", ";\n }\n\n input {\n width: 140px;\n border: none;\n font-size: ", ";\n transition: 0.2s border-color ease-in-out;\n margin-left: ", ";\n padding: 0;\n\n :focus {\n border-color: ", ";\n border-bottom: none;\n }\n }\n }\n"])), function (props) {
9978
+ var StyledTitle = styled__default(Title$3)(_templateObject$F || (_templateObject$F = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n font-weight: bold;\n display: flex;\n align-items: center;\n font-size: ", ";\n\n .title__search,\n .title__search {\n display: flex;\n justify-content: center;\n align-items: center;\n min-height: 30px;\n margin-bottom: ", ";\n\n svg {\n margin-left: ", ";\n fill: ", ";\n stroke: ", ";\n }\n\n input {\n width: 140px;\n border: none;\n font-size: ", ";\n transition: 0.2s border-color ease-in-out;\n margin-left: ", ";\n padding: 0;\n\n :focus {\n border-color: ", ";\n border-bottom: none;\n }\n }\n }\n"])), function (props) {
10278
9979
  return props.theme.marginPaddings[2];
10279
9980
  }, function (props) {
10280
9981
  return props.theme.fontSizes[2];
@@ -10340,10 +10041,7 @@
10340
10041
  var _this$state = _this.state,
10341
10042
  limit = _this$state.limit,
10342
10043
  category = _this$state.category,
10343
- nameFilter = _this$state.nameFilter,
10344
- brands = _this$state.brands,
10345
- models = _this$state.models,
10346
- materials = _this$state.materials;
10044
+ nameFilter = _this$state.nameFilter;
10347
10045
  var _this$props = _this.props,
10348
10046
  title = _this$props.title,
10349
10047
  baseClass = _this$props.baseClass,
@@ -10364,10 +10062,10 @@
10364
10062
  }), /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GraphQLMultiSelector$1, {
10365
10063
  triggerRequest: function triggerRequest() {
10366
10064
  return requestInstance.post(graphApi, {
10367
- query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials)
10065
+ query: getGraphQuery(limit, 1, 'id|desc', category, nameFilter)
10368
10066
  });
10369
10067
  },
10370
- graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter, brands, models, materials),
10068
+ graphQuery: getGraphQuery(limit, 1, 'id|desc', category, nameFilter),
10371
10069
  identifier: identifier,
10372
10070
  ref: _this.multiSelectorRef,
10373
10071
  onChange: _this.onChange,
@@ -10380,9 +10078,6 @@
10380
10078
  _this.state = {
10381
10079
  limit: props.baseQueryLimit,
10382
10080
  category: props.category,
10383
- brands: props.brands,
10384
- models: props.models,
10385
- materials: props.materials,
10386
10081
  nameFilter: ''
10387
10082
  };
10388
10083
  return _this;
@@ -10391,23 +10086,11 @@
10391
10086
  _createClass(LuxityGraphQLMultiselector, [{
10392
10087
  key: "componentDidUpdate",
10393
10088
  value: function componentDidUpdate(prevProps) {
10394
- var _this$multiSelectorRe, _this$multiSelectorRe2, _this$multiSelectorRe3, _this$multiSelectorRe4;
10089
+ var _this$multiSelectorRe;
10395
10090
 
10396
10091
  if (prevProps.category !== this.props.category && (_this$multiSelectorRe = this.multiSelectorRef) !== null && _this$multiSelectorRe !== void 0 && _this$multiSelectorRe.current) {
10397
10092
  this.multiSelectorRef.current.emptySelected();
10398
10093
  }
10399
-
10400
- if (prevProps.brands !== this.props.brands && (_this$multiSelectorRe2 = this.multiSelectorRef) !== null && _this$multiSelectorRe2 !== void 0 && _this$multiSelectorRe2.current) {
10401
- this.multiSelectorRef.current.emptySelected();
10402
- }
10403
-
10404
- if (prevProps.models !== this.props.models && (_this$multiSelectorRe3 = this.multiSelectorRef) !== null && _this$multiSelectorRe3 !== void 0 && _this$multiSelectorRe3.current) {
10405
- this.multiSelectorRef.current.emptySelected();
10406
- }
10407
-
10408
- if (prevProps.materials !== this.props.materials && (_this$multiSelectorRe4 = this.multiSelectorRef) !== null && _this$multiSelectorRe4 !== void 0 && _this$multiSelectorRe4.current) {
10409
- this.multiSelectorRef.current.emptySelected();
10410
- }
10411
10094
  }
10412
10095
  }], [{
10413
10096
  key: "getDerivedStateFromProps",
@@ -10418,24 +10101,6 @@
10418
10101
  };
10419
10102
  }
10420
10103
 
10421
- if (prevState.brands !== props.brands) {
10422
- return {
10423
- brands: props.brands
10424
- };
10425
- }
10426
-
10427
- if (prevState.models !== props.models) {
10428
- return {
10429
- models: props.models
10430
- };
10431
- }
10432
-
10433
- if (prevState.materials !== props.materials) {
10434
- return {
10435
- materials: props.materials
10436
- };
10437
- }
10438
-
10439
10104
  return null;
10440
10105
  }
10441
10106
  }]);
@@ -10450,8 +10115,8 @@
10450
10115
  baseQueryLimit: 12
10451
10116
  };
10452
10117
 
10453
- var _templateObject$H;
10454
- var BaseButton = styled__default.button(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n color: ", ";\n border: 1px solid ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n"])), function (props) {
10118
+ var _templateObject$G;
10119
+ var BaseButton = styled__default.button(_templateObject$G || (_templateObject$G = _taggedTemplateLiteral(["\n color: ", ";\n border: 1px solid ", ";\n background-color: ", ";\n &:hover {\n color: ", ";\n background-color: ", ";\n }\n"])), function (props) {
10455
10120
  return props.theme.colors.base;
10456
10121
  }, function (props) {
10457
10122
  return props.theme.colors.borderColor;
@@ -10477,6 +10142,38 @@
10477
10142
  return selected ? /*#__PURE__*/React__default.createElement(PrimaryButton$1, props, item.name) : /*#__PURE__*/React__default.createElement(UnselectedButton, props, item.name);
10478
10143
  };
10479
10144
 
10145
+ var BrandSelector = function BrandSelector(_ref) {
10146
+ var onChange = _ref.onChange,
10147
+ category = _ref.category,
10148
+ graphApi = _ref.graphApi,
10149
+ itemRenderer = _ref.itemRenderer,
10150
+ getGraphQuery = _ref.getGraphQuery,
10151
+ resultProcessor = _ref.resultProcessor,
10152
+ requestInstance = _ref.requestInstance;
10153
+ return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10154
+ baseQueryLimit: 16,
10155
+ title: "Brands",
10156
+ queryId: "getBrands",
10157
+ baseClass: "brand-selector",
10158
+ identifier: "brand-selector",
10159
+ searchPlaceHolder: "Search brands",
10160
+ category: category,
10161
+ onChange: onChange,
10162
+ graphApi: graphApi,
10163
+ itemRenderer: itemRenderer,
10164
+ getGraphQuery: getGraphQuery,
10165
+ resultProcessor: resultProcessor,
10166
+ requestInstance: requestInstance
10167
+ });
10168
+ };
10169
+
10170
+ BrandSelector.defaultProps = {
10171
+ itemRenderer: ItemRenderer,
10172
+ resultProcessor: function resultProcessor(result) {
10173
+ return result.data.data.luxity_brands;
10174
+ }
10175
+ };
10176
+
10480
10177
  var StyleSelector = function StyleSelector(_ref) {
10481
10178
  var onChange = _ref.onChange,
10482
10179
  category = _ref.category,
@@ -10484,10 +10181,7 @@
10484
10181
  itemRenderer = _ref.itemRenderer,
10485
10182
  getGraphQuery = _ref.getGraphQuery,
10486
10183
  resultProcessor = _ref.resultProcessor,
10487
- requestInstance = _ref.requestInstance,
10488
- brands = _ref.brands,
10489
- models = _ref.models,
10490
- materials = _ref.materials;
10184
+ requestInstance = _ref.requestInstance;
10491
10185
  return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
10492
10186
  title: "Styles",
10493
10187
  queryId: "getStyles",
@@ -10496,9 +10190,6 @@
10496
10190
  identifier: "style-selector",
10497
10191
  searchPlaceHolder: "Search Styles",
10498
10192
  category: category,
10499
- brands: brands,
10500
- models: models,
10501
- materials: materials,
10502
10193
  onChange: onChange,
10503
10194
  graphApi: graphApi,
10504
10195
  itemRenderer: itemRenderer,
@@ -10526,8 +10217,8 @@
10526
10217
  }
10527
10218
  };
10528
10219
 
10529
- var _templateObject$I, _templateObject2$7;
10530
- var TitleWrapper = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: nowrap row;\n justify-content: space-between;\n margin-bottom: ", ";\n label {\n margin-bottom: 0;\n }\n"])), function (props) {
10220
+ var _templateObject$H, _templateObject2$7;
10221
+ var TitleWrapper = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteral(["\n display: flex;\n flex-flow: nowrap row;\n justify-content: space-between;\n margin-bottom: ", ";\n label {\n margin-bottom: 0;\n }\n"])), function (props) {
10531
10222
  return props.theme.marginPaddings[4];
10532
10223
  });
10533
10224
  var onShoeSizeTypeChangeTimeout = 300;
@@ -10665,8 +10356,8 @@
10665
10356
  }
10666
10357
  };
10667
10358
 
10668
- var _templateObject$J;
10669
- var SelectionWrapper = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral(["\n display: flex;\n margin-left: calc(-1 * ", ");\n label {\n margin-bottom: ", ";\n flex-basis: calc(33.33% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n }\n @media (max-width: ", ") {\n label {\n flex-basis: calc(50% - ", ");\n }\n }\n"])), function (props) {
10359
+ var _templateObject$I;
10360
+ var SelectionWrapper = styled__default.div(_templateObject$I || (_templateObject$I = _taggedTemplateLiteral(["\n display: flex;\n margin-left: calc(-1 * ", ");\n label {\n margin-bottom: ", ";\n flex-basis: calc(33.33% - ", ");\n margin-bottom: ", ";\n margin-left: ", ";\n }\n @media (max-width: ", ") {\n label {\n flex-basis: calc(50% - ", ");\n }\n }\n"])), function (props) {
10670
10361
  return props.theme.marginPaddings[2];
10671
10362
  }, function (props) {
10672
10363
  return props.theme.marginPaddings[2];
@@ -10682,8 +10373,8 @@
10682
10373
 
10683
10374
  var _excluded$7 = ["title", "checked", "renderIcon", "onChange", "checkedValue", "unCheckedValue"];
10684
10375
 
10685
- var _templateObject$K, _templateObject2$8, _templateObject3$3;
10686
- var Content = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n transition: 200ms ease-in-out;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n cursor: pointer;\n"])), function (props) {
10376
+ var _templateObject$J, _templateObject2$8, _templateObject3$3;
10377
+ var Content = styled__default.div(_templateObject$J || (_templateObject$J = _taggedTemplateLiteral(["\n background-color: transparent;\n border: 1px solid ", ";\n transition: 200ms ease-in-out;\n display: flex;\n align-items: center;\n justify-content: space-between;\n padding: ", ";\n cursor: pointer;\n"])), function (props) {
10687
10378
  return props.theme.colors.primary;
10688
10379
  }, function (props) {
10689
10380
  return props.theme.marginPaddings[0];
@@ -10848,79 +10539,9 @@
10848
10539
  }));
10849
10540
  });
10850
10541
 
10851
- var ModelSelector = function ModelSelector(_ref) {
10852
- var onChange = _ref.onChange,
10853
- brands = _ref.brands,
10854
- graphApi = _ref.graphApi,
10855
- getGraphQuery = _ref.getGraphQuery,
10856
- resultProcessor = _ref.resultProcessor,
10857
- requestInstance = _ref.requestInstance;
10858
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
10859
- baseQueryLimit: 1000,
10860
- title: "Models",
10861
- queryId: "getModels",
10862
- baseClass: "model-selector",
10863
- identifier: "model-selector",
10864
- query_arguments: brands,
10865
- onChange: onChange,
10866
- graphApi: graphApi,
10867
- getGraphQuery: getGraphQuery,
10868
- resultProcessor: resultProcessor,
10869
- requestInstance: requestInstance
10870
- });
10871
- };
10872
-
10873
- ModelSelector.defaultProps = {
10874
- resultProcessor: function resultProcessor(result) {
10875
- return result.data.data.luxity_models.data.map(function (_ref2) {
10876
- var id = _ref2.id,
10877
- name = _ref2.name;
10878
- return {
10879
- label: name,
10880
- value: id
10881
- };
10882
- });
10883
- }
10884
- };
10885
-
10886
- var MaterialSelector = function MaterialSelector(_ref) {
10887
- var onChange = _ref.onChange,
10888
- brands = _ref.brands,
10889
- graphApi = _ref.graphApi,
10890
- getGraphQuery = _ref.getGraphQuery,
10891
- resultProcessor = _ref.resultProcessor,
10892
- requestInstance = _ref.requestInstance;
10893
- return /*#__PURE__*/React__default.createElement(LuxityGraphQLDropdownSelector, {
10894
- baseQueryLimit: 1000,
10895
- title: "Materials",
10896
- queryId: "getMaterials",
10897
- baseClass: "material-selector",
10898
- identifier: "material-selector",
10899
- query_arguments: brands,
10900
- onChange: onChange,
10901
- graphApi: graphApi,
10902
- getGraphQuery: getGraphQuery,
10903
- resultProcessor: resultProcessor,
10904
- requestInstance: requestInstance
10905
- });
10906
- };
10907
-
10908
- MaterialSelector.defaultProps = {
10909
- resultProcessor: function resultProcessor(result) {
10910
- return result.data.data.luxity_materials.data.map(function (_ref2) {
10911
- var id = _ref2.id,
10912
- name = _ref2.name;
10913
- return {
10914
- label: name,
10915
- value: id
10916
- };
10917
- });
10918
- }
10919
- };
10920
-
10921
- var _templateObject$L, _templateObject2$9, _templateObject3$4, _templateObject4$3, _templateObject5$1;
10542
+ var _templateObject$K, _templateObject2$9, _templateObject3$4, _templateObject4$3, _templateObject5$1;
10922
10543
  var UNISEX$1 = genders.UNISEX;
10923
- var AddInterestContainer = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
10544
+ var AddInterestContainer = styled__default.div(_templateObject$K || (_templateObject$K = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
10924
10545
  return props.theme.marginPaddings[6];
10925
10546
  }, function (props) {
10926
10547
  return props.theme.colors.borderColor;
@@ -10969,9 +10590,7 @@
10969
10590
  styles: [],
10970
10591
  gender: [],
10971
10592
  request: _objectSpread2({}, request),
10972
- isCategoriesShown: false,
10973
- models: [],
10974
- materials: []
10593
+ isCategoriesShown: false
10975
10594
  };
10976
10595
  /**
10977
10596
  * Generates Interest UI and submits graph payloads as a highly specialised component
@@ -11025,9 +10644,8 @@
11025
10644
  _defineProperty(_assertThisInitialized(_this), "onBrandsChanged", function (brandsArray) {
11026
10645
  _this.setState({
11027
10646
  brands: brandsArray.map(function (brand) {
11028
- return brand.value;
11029
- }),
11030
- styles: []
10647
+ return brand.id;
10648
+ })
11031
10649
  });
11032
10650
  });
11033
10651
 
@@ -11047,24 +10665,6 @@
11047
10665
  });
11048
10666
  });
11049
10667
 
11050
- _defineProperty(_assertThisInitialized(_this), "onModelsChanged", function (modelsArray) {
11051
- _this.setState({
11052
- models: modelsArray.map(function (model) {
11053
- return model.value;
11054
- }),
11055
- styles: []
11056
- });
11057
- });
11058
-
11059
- _defineProperty(_assertThisInitialized(_this), "onMaterialsChanged", function (materialsArray) {
11060
- _this.setState({
11061
- materials: materialsArray.map(function (material) {
11062
- return material.value;
11063
- }),
11064
- styles: []
11065
- });
11066
- });
11067
-
11068
10668
  _defineProperty(_assertThisInitialized(_this), "payloadIsValid", function () {
11069
10669
  // price/shoe-size always have initial values as soon as category is set
11070
10670
  var category_type = _this.state.category_type;
@@ -11088,9 +10688,7 @@
11088
10688
  styles = _this$state.styles,
11089
10689
  category_type = _this$state.category_type,
11090
10690
  requestState = _this$state.request,
11091
- gender = _this$state.gender,
11092
- models = _this$state.models,
11093
- materials = _this$state.materials;
10691
+ gender = _this$state.gender;
11094
10692
  var payloadGender = gender[0];
11095
10693
 
11096
10694
  if (gender.length > 1 || !gender.length) {
@@ -11104,9 +10702,7 @@
11104
10702
  max_price: max_price,
11105
10703
  styles: styles,
11106
10704
  gender: payloadGender,
11107
- request: requestState,
11108
- models: models,
11109
- materials: materials
10705
+ request: requestState
11110
10706
  };
11111
10707
  var shoeSizesPayload = category_type === interestCategories.SHOES ? {
11112
10708
  min_shoe_size_id: min_shoe_size_id,
@@ -11163,19 +10759,14 @@
11163
10759
  _defineProperty(_assertThisInitialized(_this), "render", function () {
11164
10760
  var _this$state2 = _this.state,
11165
10761
  category_type = _this$state2.category_type,
11166
- fetching = _this$state2.request.fetching,
11167
- brands = _this$state2.brands,
11168
- models = _this$state2.models,
11169
- materials = _this$state2.materials;
10762
+ fetching = _this$state2.request.fetching;
11170
10763
  var _this$props = _this.props,
11171
10764
  requestInstance = _this$props.requestInstance,
11172
10765
  baseGraphApi = _this$props.baseGraphApi,
11173
10766
  getBrandsGraphQuery = _this$props.getBrandsGraphQuery,
11174
10767
  getStylesGraphQuery = _this$props.getStylesGraphQuery,
11175
10768
  getShoesGraphQuery = _this$props.getShoesGraphQuery,
11176
- defaultShoeSizeType = _this$props.defaultShoeSizeType,
11177
- getModelsGraphQuery = _this$props.getModelsGraphQuery,
11178
- getMaterialsGraphQuery = _this$props.getMaterialsGraphQuery;
10769
+ defaultShoeSizeType = _this$props.defaultShoeSizeType;
11179
10770
  return /*#__PURE__*/React__default.createElement(React.Fragment, null, !_this.state.isCategoriesShown && /*#__PURE__*/React__default.createElement(AddInterestButtonContainer, {
11180
10771
  onClick: _this.onAddInterestClick
11181
10772
  }, /*#__PURE__*/React__default.createElement(AddInterestButton, null, "Add Interest"), /*#__PURE__*/React__default.createElement(AddIcon, {
@@ -11191,19 +10782,7 @@
11191
10782
  requestInstance: requestInstance,
11192
10783
  graphApi: "".concat(baseGraphApi, "?id=getBrands"),
11193
10784
  getGraphQuery: getBrandsGraphQuery
11194
- }), brands.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(ModelSelector, {
11195
- brands: brands,
11196
- getGraphQuery: getModelsGraphQuery,
11197
- graphApi: "".concat(baseGraphApi, "?id=getModels"),
11198
- requestInstance: requestInstance,
11199
- onChange: _this.onModelsChanged
11200
- }), /*#__PURE__*/React__default.createElement(MaterialSelector, {
11201
- brands: brands,
11202
- getGraphQuery: getMaterialsGraphQuery,
11203
- graphApi: "".concat(baseGraphApi, "?id=getMaterials"),
11204
- requestInstance: requestInstance,
11205
- onChange: _this.onMaterialsChanged
11206
- })), category_type === interestCategories.SHOES && /*#__PURE__*/React__default.createElement(WrappedShoeSizeSelector, {
10785
+ }), category_type === interestCategories.SHOES && /*#__PURE__*/React__default.createElement(WrappedShoeSizeSelector, {
11207
10786
  defaultShoeSizeType: defaultShoeSizeType,
11208
10787
  getGraphQuery: getShoesGraphQuery,
11209
10788
  graphApi: "".concat(baseGraphApi, "?id=shoeSizeQuery"),
@@ -11217,10 +10796,7 @@
11217
10796
  onChange: _this.onStylesChanged,
11218
10797
  requestInstance: requestInstance,
11219
10798
  graphApi: "".concat(baseGraphApi, "?id=getStyles"),
11220
- getGraphQuery: getStylesGraphQuery,
11221
- brands: brands,
11222
- models: models,
11223
- materials: materials
10799
+ getGraphQuery: getStylesGraphQuery
11224
10800
  })) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
11225
10801
  className: "fl-right"
11226
10802
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -11253,8 +10829,8 @@
11253
10829
 
11254
10830
  var AddInterest$1 = themed(AddInterest);
11255
10831
 
11256
- var _templateObject$M;
11257
- var MyInterestTitleHeadingContainer = styled__default.div(_templateObject$M || (_templateObject$M = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n .heading-title-section {\n display: flex;\n justify-content: space-between;\n width: 95%;\n padding: ", ";\n }\n\n .heading-title {\n color: ", ";\n font-weight: bold;\n flex-basis: calc(100% / 6);\n margin-left: ", ";\n padding-bottom: 0;\n }\n\n .heading-title-empty {\n flex-basis: 5%;\n margin-left: 1rem;\n }\n\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (props) {
10832
+ var _templateObject$L;
10833
+ var MyInterestTitleHeadingContainer = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n .heading-title-section {\n display: flex;\n justify-content: space-between;\n width: 95%;\n padding: ", ";\n }\n\n .heading-title {\n color: ", ";\n font-weight: bold;\n flex-basis: calc(100% / 6);\n margin-left: ", ";\n padding-bottom: 0;\n }\n\n .heading-title-empty {\n flex-basis: 5%;\n margin-left: 1rem;\n }\n\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (props) {
11258
10834
  return props.theme.marginPaddings[0];
11259
10835
  }, function (props) {
11260
10836
  return props.theme.colors.primary;
@@ -11277,10 +10853,6 @@
11277
10853
  className: "heading-title"
11278
10854
  }, "Style"), /*#__PURE__*/React__default.createElement("div", {
11279
10855
  className: "heading-title"
11280
- }, "Models"), /*#__PURE__*/React__default.createElement("div", {
11281
- className: "heading-title"
11282
- }, "Materials"), /*#__PURE__*/React__default.createElement("div", {
11283
- className: "heading-title"
11284
10856
  }, "Shoe Size")), /*#__PURE__*/React__default.createElement("div", {
11285
10857
  className: "heading-title-empty"
11286
10858
  }));
@@ -11288,8 +10860,8 @@
11288
10860
 
11289
10861
  var MyInterestTitleHeading$1 = themed(MyInterestTitleHeading);
11290
10862
 
11291
- var _templateObject$N;
11292
- var SvgWrapper$2 = styled__default.span(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n svg {\n path {\n fill: ", ";\n }\n }\n"])), function (props) {
10863
+ var _templateObject$M;
10864
+ var SvgWrapper$2 = styled__default.span(_templateObject$M || (_templateObject$M = _taggedTemplateLiteral(["\n svg {\n path {\n fill: ", ";\n }\n }\n"])), function (props) {
11293
10865
  return props.theme.colors.primary;
11294
10866
  });
11295
10867
  var AccountIcon = themed(function () {
@@ -11371,8 +10943,6 @@
11371
10943
  getBrandsGraphQuery = _this$props2.getBrandsGraphQuery,
11372
10944
  getStylesGraphQuery = _this$props2.getStylesGraphQuery,
11373
10945
  getShoesGraphQuery = _this$props2.getShoesGraphQuery,
11374
- getModelsGraphQuery = _this$props2.getModelsGraphQuery,
11375
- getMaterialsGraphQuery = _this$props2.getMaterialsGraphQuery,
11376
10946
  deleteInterestApi = _this$props2.deleteInterestApi,
11377
10947
  setSchedule = _this$props2.setSchedule,
11378
10948
  getSchedule = _this$props2.getSchedule,
@@ -11406,9 +10976,7 @@
11406
10976
  getBrandsGraphQuery: getBrandsGraphQuery,
11407
10977
  getStylesGraphQuery: getStylesGraphQuery,
11408
10978
  getShoesGraphQuery: getShoesGraphQuery,
11409
- defaultShoeSizeType: defaultShoeSizeType,
11410
- getModelsGraphQuery: getModelsGraphQuery,
11411
- getMaterialsGraphQuery: getMaterialsGraphQuery
10979
+ defaultShoeSizeType: defaultShoeSizeType
11412
10980
  }), interests.length > 0 ? /*#__PURE__*/React__default.createElement(MyInterestTitleHeading$1, null) : '', /*#__PURE__*/React__default.createElement(LuxityPageReady, {
11413
10981
  getRequestPromise: function getRequestPromise() {
11414
10982
  return _this2.triggerInterestRequest();
@@ -11439,8 +11007,8 @@
11439
11007
  defaultShoeSizeType: shoeSizeTypes.eu.value
11440
11008
  };
11441
11009
 
11442
- var _templateObject$O, _templateObject2$a, _templateObject3$5, _templateObject4$4, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
11443
- var HeaderWrapper = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n\n .header__search-container,\n .header__search-input {\n background-color: ", ";\n }\n\n .header__search-container {\n max-width: ", ";\n margin: 0 auto;\n padding: ", " 5%;\n }\n }\n"])), function (props) {
11010
+ var _templateObject$N, _templateObject2$a, _templateObject3$5, _templateObject4$4, _templateObject5$2, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
11011
+ var HeaderWrapper = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n\n .header__search-container,\n .header__search-input {\n background-color: ", ";\n }\n\n .header__search-container {\n max-width: ", ";\n margin: 0 auto;\n padding: ", " 5%;\n }\n }\n"])), function (props) {
11444
11012
  return props.theme.rareStepColors.ntrlMin;
11445
11013
  }, function (props) {
11446
11014
  return props.theme.rareStepColors.primary;
@@ -11774,8 +11342,8 @@
11774
11342
 
11775
11343
  var RareStepDesktopHeader$1 = themed(RareStepDesktopHeader);
11776
11344
 
11777
- var _templateObject$P, _templateObject2$b, _templateObject3$6, _templateObject4$5, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
11778
- var HeaderWrapper$1 = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n position: relative;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n padding: ", " 5%;\n }\n"])), function (props) {
11345
+ var _templateObject$O, _templateObject2$b, _templateObject3$6, _templateObject4$5, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
11346
+ var HeaderWrapper$1 = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n position: relative;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n padding: ", " 5%;\n }\n"])), function (props) {
11779
11347
  return props.theme.rareStepColors.ntrlMin;
11780
11348
  }, function (props) {
11781
11349
  return props.theme.marginPaddings[3];
@@ -12126,8 +11694,8 @@
12126
11694
  };
12127
11695
  var index$3 = themed(RareStepHeader);
12128
11696
 
12129
- var _templateObject$Q, _templateObject2$c, _templateObject3$7, _templateObject4$6, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
12130
- var FooterWrapper = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n font-weight: ", ";\n padding-top: ", ";\n font-size: ", ";\n }\n"])), function (props) {
11697
+ var _templateObject$P, _templateObject2$c, _templateObject3$7, _templateObject4$6, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
11698
+ var FooterWrapper = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n font-weight: ", ";\n padding-top: ", ";\n font-size: ", ";\n }\n"])), function (props) {
12131
11699
  return props.theme.rareStepColors.ntrlMax;
12132
11700
  }, function (props) {
12133
11701
  return props.theme.rareStepFontWeights.bold;