@bonlineza/luxity-lib 2.36.1-beta.4 → 2.36.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/Accordion.js +116 -76
- package/AddInterest.js +777 -440
- package/AddProductInterest.js +644 -485
- package/BrandSelector.js +336 -176
- package/Checkbox.js +101 -68
- package/CheckboxButton.js +124 -79
- package/CommunicationPreferenceOptionsRenderer.js +169 -159
- package/CommunicationPreferenceSection.js +178 -166
- package/CommunicationPreferences.js +427 -549
- package/ConditionSelector.js +336 -174
- package/CountryCodeSelect.js +10 -7
- package/CurrencyInputFormatter.js +56 -29
- package/CurrencySelect.js +49 -23
- package/DropdownSelector.js +92 -68
- package/GALink.js +16 -6
- package/GenderSelector.js +142 -88
- package/GraphQLDropdownSelector.js +1511 -933
- package/GraphQLMultiSelector.js +274 -141
- package/IconHeader.js +25 -11
- package/IconWrapper.js +7 -3
- package/InterestCatSelector.js +74 -34
- package/InterestItem.js +187 -103
- package/Interests.js +1466 -917
- package/InterestsSubheading.js +10 -5
- package/InvertedTextButton.js +63 -27
- package/LuxityAppSideNav.js +22 -19
- package/LuxityDesktopHeader.js +663 -549
- package/LuxityFooter.js +325 -434
- package/LuxityGraphQLDropdownSelector.js +1543 -949
- package/LuxityGraphQLMultiselector.js +321 -167
- package/LuxityMobileHeader.js +807 -681
- package/LuxityPageReady.js +136 -74
- package/LuxityProductInterestItem.js +175 -97
- package/LuxitySideNav.js +310 -382
- package/MaterialSelector.js +1550 -955
- package/ModelSelector.js +1550 -955
- package/NotificationDropDown.js +221 -122
- package/Notify.js +1 -0
- package/OutlinePrimaryButton.js +58 -26
- package/PriceRangeSelector.js +281 -168
- package/PrimaryButton.js +58 -26
- package/RadioButtons.js +140 -114
- package/RangeSlider.js +242 -152
- package/RareStepFooter.js +41 -27
- package/RareStepHeader.js +190 -139
- package/ReactSelectWrapper.js +1 -0
- package/SecondaryButton.js +58 -26
- package/ShoeSizeRangeSelector.js +260 -162
- package/ShoeSizeSelector.js +263 -158
- package/SimpleErrorBoundary.js +106 -59
- package/StyleSelector.js +336 -176
- package/TextButton.js +58 -26
- package/Tooltip.js +39 -17
- package/Tracking.js +1 -0
- package/WrapperButton.js +43 -20
- package/build/bundle.css +1 -1
- package/build/bundle.js +2973 -2457
- package/package.json +2 -3
- package/svg/Accessories.js +13 -6
- package/svg/Account.js +13 -6
- package/svg/Add.js +13 -6
- package/svg/ArrowRight.js +13 -6
- package/svg/Bags.js +13 -6
- package/svg/BurgerMenu.js +13 -6
- package/svg/Calendar.js +13 -6
- package/svg/CalendarCircled.js +13 -6
- package/svg/CheckCircled.js +13 -6
- package/svg/Close.js +13 -6
- package/svg/Clothing.js +13 -6
- package/svg/Dot.js +13 -6
- package/svg/Edit.js +13 -6
- package/svg/Eye.js +13 -6
- package/svg/FileAttach.js +13 -6
- package/svg/FileAttachCircled.js +13 -6
- package/svg/LightBulb.js +13 -6
- package/svg/Logo.js +13 -6
- package/svg/LuxityMenu.js +13 -6
- package/svg/Minus.js +13 -6
- package/svg/MobileAvatar.js +13 -6
- package/svg/MyOrder.js +13 -6
- package/svg/MyPayment.js +13 -6
- package/svg/MyProfile.js +14 -8
- package/svg/MySale.js +13 -6
- package/svg/Notification.js +13 -6
- package/svg/PointerDown.js +13 -6
- package/svg/Search.js +13 -6
- package/svg/Shoes.js +13 -6
- package/svg/SvgWrapper.js +7 -3
- package/svg/Trash.js +13 -6
- package/svg/Watches.js +13 -6
package/NotificationDropDown.js
CHANGED
|
@@ -14,121 +14,183 @@
|
|
|
14
14
|
PageReady = PageReady && Object.prototype.hasOwnProperty.call(PageReady, 'default') ? PageReady['default'] : PageReady;
|
|
15
15
|
var Notifications__default = 'default' in Notifications ? Notifications['default'] : Notifications;
|
|
16
16
|
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
function ownKeys(object, enumerableOnly) {
|
|
18
|
+
var keys = Object.keys(object);
|
|
19
|
+
|
|
20
|
+
if (Object.getOwnPropertySymbols) {
|
|
21
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
22
|
+
enumerableOnly && (symbols = symbols.filter(function (sym) {
|
|
23
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
24
|
+
})), keys.push.apply(keys, symbols);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return keys;
|
|
20
28
|
}
|
|
21
|
-
|
|
22
|
-
|
|
29
|
+
|
|
30
|
+
function _objectSpread2(target) {
|
|
31
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
32
|
+
var source = null != arguments[i] ? arguments[i] : {};
|
|
33
|
+
i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
|
|
34
|
+
_defineProperty(target, key, source[key]);
|
|
35
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
|
|
36
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
return target;
|
|
23
41
|
}
|
|
24
|
-
|
|
25
|
-
|
|
42
|
+
|
|
43
|
+
function _classCallCheck(instance, Constructor) {
|
|
44
|
+
if (!(instance instanceof Constructor)) {
|
|
45
|
+
throw new TypeError("Cannot call a class as a function");
|
|
46
|
+
}
|
|
26
47
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
48
|
+
|
|
49
|
+
function _defineProperties(target, props) {
|
|
50
|
+
for (var i = 0; i < props.length; i++) {
|
|
51
|
+
var descriptor = props[i];
|
|
52
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
53
|
+
descriptor.configurable = true;
|
|
54
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
55
|
+
Object.defineProperty(target, descriptor.key, descriptor);
|
|
31
56
|
}
|
|
32
57
|
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
58
|
+
|
|
59
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
60
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
61
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
62
|
+
Object.defineProperty(Constructor, "prototype", {
|
|
63
|
+
writable: false
|
|
64
|
+
});
|
|
65
|
+
return Constructor;
|
|
37
66
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
67
|
+
|
|
68
|
+
function _defineProperty(obj, key, value) {
|
|
69
|
+
if (key in obj) {
|
|
70
|
+
Object.defineProperty(obj, key, {
|
|
71
|
+
value: value,
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true,
|
|
74
|
+
writable: true
|
|
75
|
+
});
|
|
76
|
+
} else {
|
|
77
|
+
obj[key] = value;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
return obj;
|
|
45
81
|
}
|
|
82
|
+
|
|
46
83
|
function _extends() {
|
|
47
|
-
|
|
48
|
-
for (var
|
|
49
|
-
var
|
|
50
|
-
|
|
84
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
85
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
86
|
+
var source = arguments[i];
|
|
87
|
+
|
|
88
|
+
for (var key in source) {
|
|
89
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
90
|
+
target[key] = source[key];
|
|
91
|
+
}
|
|
92
|
+
}
|
|
51
93
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) {
|
|
57
|
-
return t.__proto__ || Object.getPrototypeOf(t);
|
|
58
|
-
}, _getPrototypeOf(t);
|
|
94
|
+
|
|
95
|
+
return target;
|
|
96
|
+
};
|
|
97
|
+
return _extends.apply(this, arguments);
|
|
59
98
|
}
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
99
|
+
|
|
100
|
+
function _inherits(subClass, superClass) {
|
|
101
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
102
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
63
106
|
constructor: {
|
|
64
|
-
value:
|
|
65
|
-
writable:
|
|
66
|
-
configurable:
|
|
107
|
+
value: subClass,
|
|
108
|
+
writable: true,
|
|
109
|
+
configurable: true
|
|
67
110
|
}
|
|
68
|
-
})
|
|
69
|
-
|
|
70
|
-
|
|
111
|
+
});
|
|
112
|
+
Object.defineProperty(subClass, "prototype", {
|
|
113
|
+
writable: false
|
|
114
|
+
});
|
|
115
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function _getPrototypeOf(o) {
|
|
119
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
120
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
121
|
+
};
|
|
122
|
+
return _getPrototypeOf(o);
|
|
71
123
|
}
|
|
124
|
+
|
|
125
|
+
function _setPrototypeOf(o, p) {
|
|
126
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
127
|
+
o.__proto__ = p;
|
|
128
|
+
return o;
|
|
129
|
+
};
|
|
130
|
+
return _setPrototypeOf(o, p);
|
|
131
|
+
}
|
|
132
|
+
|
|
72
133
|
function _isNativeReflectConstruct() {
|
|
134
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
135
|
+
if (Reflect.construct.sham) return false;
|
|
136
|
+
if (typeof Proxy === "function") return true;
|
|
137
|
+
|
|
73
138
|
try {
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
return
|
|
78
|
-
})();
|
|
79
|
-
}
|
|
80
|
-
function ownKeys(e, r) {
|
|
81
|
-
var t = Object.keys(e);
|
|
82
|
-
if (Object.getOwnPropertySymbols) {
|
|
83
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
84
|
-
r && (o = o.filter(function (r) {
|
|
85
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
86
|
-
})), t.push.apply(t, o);
|
|
139
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
|
|
140
|
+
return true;
|
|
141
|
+
} catch (e) {
|
|
142
|
+
return false;
|
|
87
143
|
}
|
|
88
|
-
return t;
|
|
89
144
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
_defineProperty(e, r, t[r]);
|
|
95
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
96
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
97
|
-
});
|
|
145
|
+
|
|
146
|
+
function _assertThisInitialized(self) {
|
|
147
|
+
if (self === void 0) {
|
|
148
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
98
149
|
}
|
|
99
|
-
|
|
150
|
+
|
|
151
|
+
return self;
|
|
100
152
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
if (
|
|
104
|
-
|
|
153
|
+
|
|
154
|
+
function _possibleConstructorReturn(self, call) {
|
|
155
|
+
if (call && (typeof call === "object" || typeof call === "function")) {
|
|
156
|
+
return call;
|
|
157
|
+
} else if (call !== void 0) {
|
|
158
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return _assertThisInitialized(self);
|
|
105
162
|
}
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
163
|
+
|
|
164
|
+
function _createSuper(Derived) {
|
|
165
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
166
|
+
|
|
167
|
+
return function _createSuperInternal() {
|
|
168
|
+
var Super = _getPrototypeOf(Derived),
|
|
169
|
+
result;
|
|
170
|
+
|
|
171
|
+
if (hasNativeReflectConstruct) {
|
|
172
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
173
|
+
|
|
174
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
175
|
+
} else {
|
|
176
|
+
result = Super.apply(this, arguments);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
return _possibleConstructorReturn(this, result);
|
|
180
|
+
};
|
|
110
181
|
}
|
|
111
|
-
|
|
112
|
-
|
|
182
|
+
|
|
183
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
184
|
+
if (!raw) {
|
|
185
|
+
raw = strings.slice(0);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
113
189
|
raw: {
|
|
114
|
-
value: Object.freeze(
|
|
190
|
+
value: Object.freeze(raw)
|
|
115
191
|
}
|
|
116
192
|
}));
|
|
117
193
|
}
|
|
118
|
-
function _toPrimitive(t, r) {
|
|
119
|
-
if ("object" != typeof t || !t) return t;
|
|
120
|
-
var e = t[Symbol.toPrimitive];
|
|
121
|
-
if (void 0 !== e) {
|
|
122
|
-
var i = e.call(t, r || "default");
|
|
123
|
-
if ("object" != typeof i) return i;
|
|
124
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
125
|
-
}
|
|
126
|
-
return ("string" === r ? String : Number)(t);
|
|
127
|
-
}
|
|
128
|
-
function _toPropertyKey(t) {
|
|
129
|
-
var i = _toPrimitive(t, "string");
|
|
130
|
-
return "symbol" == typeof i ? i : i + "";
|
|
131
|
-
}
|
|
132
194
|
|
|
133
195
|
var safeIsNaN = Number.isNaN ||
|
|
134
196
|
function ponyfill(value) {
|
|
@@ -6721,39 +6783,50 @@
|
|
|
6721
6783
|
var LuxityPageReadyContext = /*#__PURE__*/React__default.createContext({
|
|
6722
6784
|
data: null
|
|
6723
6785
|
});
|
|
6724
|
-
|
|
6725
6786
|
/**
|
|
6726
6787
|
* A flavour of PageReady with Luxity customisations
|
|
6727
6788
|
* 1. the onIsLoading callback is useful to parent components that have more complex data interactions
|
|
6728
6789
|
* 2. an error message interpreter is supplied from the local helper library
|
|
6729
6790
|
*/
|
|
6791
|
+
|
|
6730
6792
|
var LuxityPageReady = /*#__PURE__*/function (_React$Component) {
|
|
6793
|
+
_inherits(LuxityPageReady, _React$Component);
|
|
6794
|
+
|
|
6795
|
+
var _super = _createSuper(LuxityPageReady);
|
|
6796
|
+
|
|
6731
6797
|
function LuxityPageReady() {
|
|
6732
6798
|
var _this;
|
|
6799
|
+
|
|
6733
6800
|
_classCallCheck(this, LuxityPageReady);
|
|
6801
|
+
|
|
6734
6802
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
6735
6803
|
args[_key] = arguments[_key];
|
|
6736
6804
|
}
|
|
6737
|
-
|
|
6738
|
-
|
|
6805
|
+
|
|
6806
|
+
_this = _super.call.apply(_super, [this].concat(args));
|
|
6807
|
+
|
|
6808
|
+
_defineProperty(_assertThisInitialized(_this), "state", {
|
|
6739
6809
|
data: null
|
|
6740
6810
|
});
|
|
6741
|
-
|
|
6811
|
+
|
|
6812
|
+
_defineProperty(_assertThisInitialized(_this), "refreshPage", function () {
|
|
6742
6813
|
return _this.pageReadyInstance.initRequest();
|
|
6743
6814
|
});
|
|
6815
|
+
|
|
6744
6816
|
return _this;
|
|
6745
6817
|
}
|
|
6746
|
-
|
|
6747
|
-
|
|
6818
|
+
|
|
6819
|
+
_createClass(LuxityPageReady, [{
|
|
6748
6820
|
key: "render",
|
|
6749
6821
|
value: function render() {
|
|
6750
6822
|
var _this2 = this;
|
|
6823
|
+
|
|
6751
6824
|
var _this$props = this.props,
|
|
6752
|
-
|
|
6753
|
-
|
|
6754
|
-
|
|
6755
|
-
|
|
6756
|
-
|
|
6825
|
+
customErrorMessage = _this$props.customErrorMessage,
|
|
6826
|
+
customErrorHandler = _this$props.customErrorHandler,
|
|
6827
|
+
getRequestPromise = _this$props.getRequestPromise,
|
|
6828
|
+
_onData = _this$props.onData,
|
|
6829
|
+
children = _this$props.children;
|
|
6757
6830
|
var data = this.state.data;
|
|
6758
6831
|
return /*#__PURE__*/React__default.createElement(PageReady, {
|
|
6759
6832
|
ref: function ref(inst) {
|
|
@@ -6763,15 +6836,19 @@
|
|
|
6763
6836
|
_this2.setState({
|
|
6764
6837
|
data: res.data
|
|
6765
6838
|
});
|
|
6839
|
+
|
|
6766
6840
|
_onData(res);
|
|
6767
6841
|
},
|
|
6768
6842
|
getRequestInstance: function getRequestInstance() {
|
|
6769
6843
|
_this2.props.onIsLoading(true);
|
|
6844
|
+
|
|
6770
6845
|
return getRequestPromise().then(function (out) {
|
|
6771
6846
|
_this2.props.onIsLoading(false);
|
|
6847
|
+
|
|
6772
6848
|
return out;
|
|
6773
6849
|
}).catch(function (oops) {
|
|
6774
6850
|
_this2.props.onIsLoading(false);
|
|
6851
|
+
|
|
6775
6852
|
return oops;
|
|
6776
6853
|
});
|
|
6777
6854
|
},
|
|
@@ -6788,7 +6865,10 @@
|
|
|
6788
6865
|
}, children));
|
|
6789
6866
|
}
|
|
6790
6867
|
}]);
|
|
6868
|
+
|
|
6869
|
+
return LuxityPageReady;
|
|
6791
6870
|
}(React__default.Component);
|
|
6871
|
+
|
|
6792
6872
|
LuxityPageReady.defaultProps = {
|
|
6793
6873
|
onIsLoading: function onIsLoading() {
|
|
6794
6874
|
return null;
|
|
@@ -6812,12 +6892,12 @@
|
|
|
6812
6892
|
/**
|
|
6813
6893
|
* It represents the React Component that contains the notifications.
|
|
6814
6894
|
* */
|
|
6895
|
+
|
|
6815
6896
|
var LuxityNotifications = function LuxityNotifications(props) {
|
|
6816
6897
|
return /*#__PURE__*/React__default.createElement(Notifications__default, props);
|
|
6817
6898
|
};
|
|
6818
6899
|
|
|
6819
6900
|
/** @format */
|
|
6820
|
-
|
|
6821
6901
|
var request = {
|
|
6822
6902
|
fetching: false,
|
|
6823
6903
|
failed: false,
|
|
@@ -6890,20 +6970,31 @@
|
|
|
6890
6970
|
});
|
|
6891
6971
|
|
|
6892
6972
|
var NotificationDropDown = /*#__PURE__*/function (_React$Component) {
|
|
6973
|
+
_inherits(NotificationDropDown, _React$Component);
|
|
6974
|
+
|
|
6975
|
+
var _super = _createSuper(NotificationDropDown);
|
|
6976
|
+
|
|
6893
6977
|
function NotificationDropDown(props) {
|
|
6894
6978
|
var _this;
|
|
6979
|
+
|
|
6895
6980
|
_classCallCheck(this, NotificationDropDown);
|
|
6896
|
-
|
|
6897
|
-
|
|
6981
|
+
|
|
6982
|
+
_this = _super.call(this, props);
|
|
6983
|
+
|
|
6984
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
6898
6985
|
_this.setState({
|
|
6899
6986
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
6900
6987
|
fetching: true
|
|
6901
6988
|
})
|
|
6902
6989
|
});
|
|
6990
|
+
|
|
6903
6991
|
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
6904
|
-
_this
|
|
6992
|
+
var _this$setState;
|
|
6993
|
+
|
|
6994
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
6905
6995
|
success: true
|
|
6906
|
-
})));
|
|
6996
|
+
})), _this$setState));
|
|
6997
|
+
|
|
6907
6998
|
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
6908
6999
|
}).catch(function () {
|
|
6909
7000
|
_this.setState({
|
|
@@ -6911,10 +7002,12 @@
|
|
|
6911
7002
|
failed: true
|
|
6912
7003
|
})
|
|
6913
7004
|
});
|
|
7005
|
+
|
|
6914
7006
|
error('Error Occurred');
|
|
6915
7007
|
});
|
|
6916
7008
|
});
|
|
6917
|
-
|
|
7009
|
+
|
|
7010
|
+
_defineProperty(_assertThisInitialized(_this), "getOptionsFromEnumResult", function (enumResult) {
|
|
6918
7011
|
var enumValues = enumResult.data.__type.enumValues;
|
|
6919
7012
|
return enumValues.map(function (enumItem) {
|
|
6920
7013
|
return {
|
|
@@ -6923,17 +7016,20 @@
|
|
|
6923
7016
|
};
|
|
6924
7017
|
});
|
|
6925
7018
|
});
|
|
6926
|
-
|
|
7019
|
+
|
|
7020
|
+
_defineProperty(_assertThisInitialized(_this), "onData", function (_ref) {
|
|
6927
7021
|
var data = _ref.data;
|
|
7022
|
+
|
|
6928
7023
|
var options = _this.getOptionsFromEnumResult(data);
|
|
7024
|
+
|
|
6929
7025
|
var _data$data$user = data.data.user,
|
|
6930
|
-
|
|
6931
|
-
|
|
6932
|
-
|
|
6933
|
-
|
|
7026
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
7027
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
7028
|
+
vip = _data$data$user.vip;
|
|
7029
|
+
|
|
6934
7030
|
_this.setState({
|
|
6935
7031
|
options: options,
|
|
6936
|
-
|
|
7032
|
+
isVip: vip,
|
|
6937
7033
|
emailSelectedOption: options.find(function (item) {
|
|
6938
7034
|
return item.value === email_interest_send_schedule;
|
|
6939
7035
|
}),
|
|
@@ -6942,13 +7038,14 @@
|
|
|
6942
7038
|
})
|
|
6943
7039
|
});
|
|
6944
7040
|
});
|
|
6945
|
-
|
|
7041
|
+
|
|
7042
|
+
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
6946
7043
|
var _this$state = _this.state,
|
|
6947
|
-
|
|
6948
|
-
|
|
6949
|
-
|
|
6950
|
-
|
|
6951
|
-
|
|
7044
|
+
options = _this$state.options,
|
|
7045
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
7046
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
7047
|
+
isVip = _this$state.isVip,
|
|
7048
|
+
updating = _this$state.request.fetching;
|
|
6952
7049
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
6953
7050
|
getRequestPromise: _this.props.getSchedule,
|
|
6954
7051
|
onData: function onData(data) {
|
|
@@ -6956,7 +7053,7 @@
|
|
|
6956
7053
|
}
|
|
6957
7054
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
6958
7055
|
className: "notification-settings"
|
|
6959
|
-
},
|
|
7056
|
+
}, isVip && /*#__PURE__*/React__default.createElement("div", {
|
|
6960
7057
|
className: "notification-row-wrapper"
|
|
6961
7058
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
6962
7059
|
className: "notification-dropdown-label"
|
|
@@ -6996,18 +7093,20 @@
|
|
|
6996
7093
|
value: emailSelectedOption
|
|
6997
7094
|
}))))));
|
|
6998
7095
|
});
|
|
7096
|
+
|
|
6999
7097
|
_this.state = {
|
|
7000
7098
|
options: [],
|
|
7001
7099
|
emailSelectedOption: null,
|
|
7002
7100
|
whatsappSelectedOption: null,
|
|
7003
|
-
|
|
7101
|
+
isVip: false,
|
|
7004
7102
|
request: _objectSpread2({}, request)
|
|
7005
7103
|
};
|
|
7006
7104
|
return _this;
|
|
7007
7105
|
}
|
|
7008
|
-
|
|
7106
|
+
|
|
7009
7107
|
return _createClass(NotificationDropDown);
|
|
7010
7108
|
}(React__default.Component);
|
|
7109
|
+
|
|
7011
7110
|
var index$2 = themed(NotificationDropDown);
|
|
7012
7111
|
|
|
7013
7112
|
return index$2;
|
package/Notify.js
CHANGED
package/OutlinePrimaryButton.js
CHANGED
|
@@ -8,38 +8,66 @@
|
|
|
8
8
|
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
9
9
|
|
|
10
10
|
function _extends() {
|
|
11
|
-
|
|
12
|
-
for (var
|
|
13
|
-
var
|
|
14
|
-
|
|
11
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
12
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
13
|
+
var source = arguments[i];
|
|
14
|
+
|
|
15
|
+
for (var key in source) {
|
|
16
|
+
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
17
|
+
target[key] = source[key];
|
|
18
|
+
}
|
|
19
|
+
}
|
|
15
20
|
}
|
|
16
|
-
|
|
17
|
-
|
|
21
|
+
|
|
22
|
+
return target;
|
|
23
|
+
};
|
|
24
|
+
return _extends.apply(this, arguments);
|
|
18
25
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
28
|
+
if (source == null) return {};
|
|
29
|
+
var target = {};
|
|
30
|
+
var sourceKeys = Object.keys(source);
|
|
31
|
+
var key, i;
|
|
32
|
+
|
|
33
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
34
|
+
key = sourceKeys[i];
|
|
35
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
36
|
+
target[key] = source[key];
|
|
27
37
|
}
|
|
28
|
-
|
|
38
|
+
|
|
39
|
+
return target;
|
|
29
40
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
41
|
+
|
|
42
|
+
function _objectWithoutProperties(source, excluded) {
|
|
43
|
+
if (source == null) return {};
|
|
44
|
+
|
|
45
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
46
|
+
|
|
47
|
+
var key, i;
|
|
48
|
+
|
|
49
|
+
if (Object.getOwnPropertySymbols) {
|
|
50
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
51
|
+
|
|
52
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
53
|
+
key = sourceSymbolKeys[i];
|
|
54
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
55
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
56
|
+
target[key] = source[key];
|
|
57
|
+
}
|
|
36
58
|
}
|
|
37
|
-
|
|
59
|
+
|
|
60
|
+
return target;
|
|
38
61
|
}
|
|
39
|
-
|
|
40
|
-
|
|
62
|
+
|
|
63
|
+
function _taggedTemplateLiteral(strings, raw) {
|
|
64
|
+
if (!raw) {
|
|
65
|
+
raw = strings.slice(0);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
41
69
|
raw: {
|
|
42
|
-
value: Object.freeze(
|
|
70
|
+
value: Object.freeze(raw)
|
|
43
71
|
}
|
|
44
72
|
}));
|
|
45
73
|
}
|
|
@@ -113,6 +141,7 @@
|
|
|
113
141
|
});
|
|
114
142
|
|
|
115
143
|
var _excluded = ["children"];
|
|
144
|
+
|
|
116
145
|
var _templateObject$1;
|
|
117
146
|
var Button = styled__default.button(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n ", ";\n border: 1px solid ", ";\n color: ", ";\n background-color: transparent;\n &:active,\n &:hover {\n background-color: ", ";\n color: #ffff;\n }\n &:disabled {\n ", "\n &:hover {\n color: ", ";\n background-color: transparent;\n }\n }\n"])), baseButtonStyle, function (props) {
|
|
118
147
|
return props.theme.colors.primary;
|
|
@@ -123,11 +152,14 @@
|
|
|
123
152
|
}, disabledButtonStyle, function (props) {
|
|
124
153
|
return props.theme.colors.primary;
|
|
125
154
|
});
|
|
155
|
+
|
|
126
156
|
var OutlinePrimaryButton = function OutlinePrimaryButton(_ref) {
|
|
127
157
|
var children = _ref.children,
|
|
128
|
-
|
|
158
|
+
restProps = _objectWithoutProperties(_ref, _excluded);
|
|
159
|
+
|
|
129
160
|
return /*#__PURE__*/React__default.createElement(Button, restProps, children);
|
|
130
161
|
};
|
|
162
|
+
|
|
131
163
|
var index = themed(OutlinePrimaryButton);
|
|
132
164
|
|
|
133
165
|
return index;
|