@bonlineza/luxity-lib 2.34.9 → 2.35.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/GraphQLDropdownSelector.js +54 -27
- package/Interests.js +54 -27
- package/LuxityGraphQLDropdownSelector.js +54 -27
- package/MaterialSelector.js +54 -27
- package/ModelSelector.js +54 -27
- package/NotificationDropDown.js +54 -27
- package/build/bundle.css +1 -1
- package/build/bundle.js +54 -27
- package/package.json +1 -1
|
@@ -9251,7 +9251,7 @@
|
|
|
9251
9251
|
});
|
|
9252
9252
|
|
|
9253
9253
|
var _templateObject$E;
|
|
9254
|
-
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
9254
|
+
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
9255
9255
|
return props.theme.colors.ntrlMin;
|
|
9256
9256
|
}, function (props) {
|
|
9257
9257
|
return props.theme.colors.base;
|
|
@@ -9292,22 +9292,21 @@
|
|
|
9292
9292
|
|
|
9293
9293
|
_this = _super.call(this, props);
|
|
9294
9294
|
|
|
9295
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
9295
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
9296
9296
|
_this.setState({
|
|
9297
9297
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9298
9298
|
fetching: true
|
|
9299
9299
|
})
|
|
9300
9300
|
});
|
|
9301
9301
|
|
|
9302
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
9303
|
-
_this
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
});
|
|
9302
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
9303
|
+
var _this$setState;
|
|
9304
|
+
|
|
9305
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9306
|
+
success: true
|
|
9307
|
+
})), _this$setState));
|
|
9309
9308
|
|
|
9310
|
-
success('Notification Frequency Updated
|
|
9309
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
9311
9310
|
}).catch(function () {
|
|
9312
9311
|
_this.setState({
|
|
9313
9312
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -9315,7 +9314,7 @@
|
|
|
9315
9314
|
})
|
|
9316
9315
|
});
|
|
9317
9316
|
|
|
9318
|
-
error('Error
|
|
9317
|
+
error('Error Occurred');
|
|
9319
9318
|
});
|
|
9320
9319
|
});
|
|
9321
9320
|
|
|
@@ -9334,24 +9333,29 @@
|
|
|
9334
9333
|
|
|
9335
9334
|
var options = _this.getOptionsFromEnumResult(data);
|
|
9336
9335
|
|
|
9337
|
-
var
|
|
9336
|
+
var _data$data$user = data.data.user,
|
|
9337
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
9338
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
9339
|
+
vip = _data$data$user.vip;
|
|
9338
9340
|
|
|
9339
|
-
_this.setState(
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
}
|
|
9341
|
+
_this.setState({
|
|
9342
|
+
options: options,
|
|
9343
|
+
isVip: vip,
|
|
9344
|
+
emailSelectedOption: options.find(function (item) {
|
|
9345
|
+
return item.value === email_interest_send_schedule;
|
|
9346
|
+
}),
|
|
9347
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
9348
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
9349
|
+
})
|
|
9348
9350
|
});
|
|
9349
9351
|
});
|
|
9350
9352
|
|
|
9351
9353
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
9352
9354
|
var _this$state = _this.state,
|
|
9353
9355
|
options = _this$state.options,
|
|
9354
|
-
|
|
9356
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
9357
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
9358
|
+
isVip = _this$state.isVip,
|
|
9355
9359
|
updating = _this$state.request.fetching;
|
|
9356
9360
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
9357
9361
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -9359,8 +9363,10 @@
|
|
|
9359
9363
|
return _this.onData(data);
|
|
9360
9364
|
}
|
|
9361
9365
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9366
|
+
className: "notification-settings"
|
|
9367
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9362
9368
|
className: "notification-dropdown-label"
|
|
9363
|
-
}, "
|
|
9369
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9364
9370
|
isMulti: false,
|
|
9365
9371
|
isSearchable: false,
|
|
9366
9372
|
components: {
|
|
@@ -9371,14 +9377,35 @@
|
|
|
9371
9377
|
options: options,
|
|
9372
9378
|
className: "notification-dropdown-select-container",
|
|
9373
9379
|
classNamePrefix: "notification-dropdown-select",
|
|
9374
|
-
onChange:
|
|
9375
|
-
|
|
9376
|
-
|
|
9380
|
+
onChange: function onChange(option) {
|
|
9381
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
9382
|
+
},
|
|
9383
|
+
value: whatsappSelectedOption
|
|
9384
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9385
|
+
className: "notification-dropdown-label"
|
|
9386
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9387
|
+
isMulti: false,
|
|
9388
|
+
isSearchable: false,
|
|
9389
|
+
components: {
|
|
9390
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
9391
|
+
return null;
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
options: options,
|
|
9395
|
+
className: "notification-dropdown-select-container",
|
|
9396
|
+
classNamePrefix: "notification-dropdown-select",
|
|
9397
|
+
onChange: function onChange(option) {
|
|
9398
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
9399
|
+
},
|
|
9400
|
+
value: emailSelectedOption
|
|
9401
|
+
})))));
|
|
9377
9402
|
});
|
|
9378
9403
|
|
|
9379
9404
|
_this.state = {
|
|
9380
9405
|
options: [],
|
|
9381
|
-
|
|
9406
|
+
emailSelectedOption: null,
|
|
9407
|
+
whatsappSelectedOption: null,
|
|
9408
|
+
isVip: false,
|
|
9382
9409
|
request: _objectSpread2({}, request)
|
|
9383
9410
|
};
|
|
9384
9411
|
return _this;
|
package/Interests.js
CHANGED
|
@@ -7143,7 +7143,7 @@
|
|
|
7143
7143
|
var index$1 = manageState(Select);
|
|
7144
7144
|
|
|
7145
7145
|
var _templateObject$1;
|
|
7146
|
-
var NotifyContainer = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
7146
|
+
var NotifyContainer = styled__default.div(_templateObject$1 || (_templateObject$1 = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
7147
7147
|
return props.theme.colors.ntrlMin;
|
|
7148
7148
|
}, function (props) {
|
|
7149
7149
|
return props.theme.colors.base;
|
|
@@ -7197,22 +7197,21 @@
|
|
|
7197
7197
|
|
|
7198
7198
|
_this = _super.call(this, props);
|
|
7199
7199
|
|
|
7200
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
7200
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
7201
7201
|
_this.setState({
|
|
7202
7202
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
7203
7203
|
fetching: true
|
|
7204
7204
|
})
|
|
7205
7205
|
});
|
|
7206
7206
|
|
|
7207
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
7208
|
-
_this
|
|
7209
|
-
|
|
7210
|
-
|
|
7211
|
-
|
|
7212
|
-
|
|
7213
|
-
});
|
|
7207
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
7208
|
+
var _this$setState;
|
|
7209
|
+
|
|
7210
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
7211
|
+
success: true
|
|
7212
|
+
})), _this$setState));
|
|
7214
7213
|
|
|
7215
|
-
success('Notification Frequency Updated
|
|
7214
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
7216
7215
|
}).catch(function () {
|
|
7217
7216
|
_this.setState({
|
|
7218
7217
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -7220,7 +7219,7 @@
|
|
|
7220
7219
|
})
|
|
7221
7220
|
});
|
|
7222
7221
|
|
|
7223
|
-
error('Error
|
|
7222
|
+
error('Error Occurred');
|
|
7224
7223
|
});
|
|
7225
7224
|
});
|
|
7226
7225
|
|
|
@@ -7239,24 +7238,29 @@
|
|
|
7239
7238
|
|
|
7240
7239
|
var options = _this.getOptionsFromEnumResult(data);
|
|
7241
7240
|
|
|
7242
|
-
var
|
|
7241
|
+
var _data$data$user = data.data.user,
|
|
7242
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
7243
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
7244
|
+
vip = _data$data$user.vip;
|
|
7243
7245
|
|
|
7244
|
-
_this.setState(
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
}
|
|
7246
|
+
_this.setState({
|
|
7247
|
+
options: options,
|
|
7248
|
+
isVip: vip,
|
|
7249
|
+
emailSelectedOption: options.find(function (item) {
|
|
7250
|
+
return item.value === email_interest_send_schedule;
|
|
7251
|
+
}),
|
|
7252
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
7253
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
7254
|
+
})
|
|
7253
7255
|
});
|
|
7254
7256
|
});
|
|
7255
7257
|
|
|
7256
7258
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
7257
7259
|
var _this$state = _this.state,
|
|
7258
7260
|
options = _this$state.options,
|
|
7259
|
-
|
|
7261
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
7262
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
7263
|
+
isVip = _this$state.isVip,
|
|
7260
7264
|
updating = _this$state.request.fetching;
|
|
7261
7265
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
7262
7266
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -7264,8 +7268,10 @@
|
|
|
7264
7268
|
return _this.onData(data);
|
|
7265
7269
|
}
|
|
7266
7270
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
7271
|
+
className: "notification-settings"
|
|
7272
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
7267
7273
|
className: "notification-dropdown-label"
|
|
7268
|
-
}, "
|
|
7274
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
7269
7275
|
isMulti: false,
|
|
7270
7276
|
isSearchable: false,
|
|
7271
7277
|
components: {
|
|
@@ -7276,14 +7282,35 @@
|
|
|
7276
7282
|
options: options,
|
|
7277
7283
|
className: "notification-dropdown-select-container",
|
|
7278
7284
|
classNamePrefix: "notification-dropdown-select",
|
|
7279
|
-
onChange:
|
|
7280
|
-
|
|
7281
|
-
|
|
7285
|
+
onChange: function onChange(option) {
|
|
7286
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
7287
|
+
},
|
|
7288
|
+
value: whatsappSelectedOption
|
|
7289
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
7290
|
+
className: "notification-dropdown-label"
|
|
7291
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
7292
|
+
isMulti: false,
|
|
7293
|
+
isSearchable: false,
|
|
7294
|
+
components: {
|
|
7295
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
7296
|
+
return null;
|
|
7297
|
+
}
|
|
7298
|
+
},
|
|
7299
|
+
options: options,
|
|
7300
|
+
className: "notification-dropdown-select-container",
|
|
7301
|
+
classNamePrefix: "notification-dropdown-select",
|
|
7302
|
+
onChange: function onChange(option) {
|
|
7303
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
7304
|
+
},
|
|
7305
|
+
value: emailSelectedOption
|
|
7306
|
+
})))));
|
|
7282
7307
|
});
|
|
7283
7308
|
|
|
7284
7309
|
_this.state = {
|
|
7285
7310
|
options: [],
|
|
7286
|
-
|
|
7311
|
+
emailSelectedOption: null,
|
|
7312
|
+
whatsappSelectedOption: null,
|
|
7313
|
+
isVip: false,
|
|
7287
7314
|
request: _objectSpread2({}, request)
|
|
7288
7315
|
};
|
|
7289
7316
|
return _this;
|
|
@@ -9251,7 +9251,7 @@
|
|
|
9251
9251
|
});
|
|
9252
9252
|
|
|
9253
9253
|
var _templateObject$E;
|
|
9254
|
-
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
9254
|
+
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
9255
9255
|
return props.theme.colors.ntrlMin;
|
|
9256
9256
|
}, function (props) {
|
|
9257
9257
|
return props.theme.colors.base;
|
|
@@ -9292,22 +9292,21 @@
|
|
|
9292
9292
|
|
|
9293
9293
|
_this = _super.call(this, props);
|
|
9294
9294
|
|
|
9295
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
9295
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
9296
9296
|
_this.setState({
|
|
9297
9297
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9298
9298
|
fetching: true
|
|
9299
9299
|
})
|
|
9300
9300
|
});
|
|
9301
9301
|
|
|
9302
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
9303
|
-
_this
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
});
|
|
9302
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
9303
|
+
var _this$setState;
|
|
9304
|
+
|
|
9305
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9306
|
+
success: true
|
|
9307
|
+
})), _this$setState));
|
|
9309
9308
|
|
|
9310
|
-
success('Notification Frequency Updated
|
|
9309
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
9311
9310
|
}).catch(function () {
|
|
9312
9311
|
_this.setState({
|
|
9313
9312
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -9315,7 +9314,7 @@
|
|
|
9315
9314
|
})
|
|
9316
9315
|
});
|
|
9317
9316
|
|
|
9318
|
-
error('Error
|
|
9317
|
+
error('Error Occurred');
|
|
9319
9318
|
});
|
|
9320
9319
|
});
|
|
9321
9320
|
|
|
@@ -9334,24 +9333,29 @@
|
|
|
9334
9333
|
|
|
9335
9334
|
var options = _this.getOptionsFromEnumResult(data);
|
|
9336
9335
|
|
|
9337
|
-
var
|
|
9336
|
+
var _data$data$user = data.data.user,
|
|
9337
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
9338
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
9339
|
+
vip = _data$data$user.vip;
|
|
9338
9340
|
|
|
9339
|
-
_this.setState(
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
}
|
|
9341
|
+
_this.setState({
|
|
9342
|
+
options: options,
|
|
9343
|
+
isVip: vip,
|
|
9344
|
+
emailSelectedOption: options.find(function (item) {
|
|
9345
|
+
return item.value === email_interest_send_schedule;
|
|
9346
|
+
}),
|
|
9347
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
9348
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
9349
|
+
})
|
|
9348
9350
|
});
|
|
9349
9351
|
});
|
|
9350
9352
|
|
|
9351
9353
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
9352
9354
|
var _this$state = _this.state,
|
|
9353
9355
|
options = _this$state.options,
|
|
9354
|
-
|
|
9356
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
9357
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
9358
|
+
isVip = _this$state.isVip,
|
|
9355
9359
|
updating = _this$state.request.fetching;
|
|
9356
9360
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
9357
9361
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -9359,8 +9363,10 @@
|
|
|
9359
9363
|
return _this.onData(data);
|
|
9360
9364
|
}
|
|
9361
9365
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9366
|
+
className: "notification-settings"
|
|
9367
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9362
9368
|
className: "notification-dropdown-label"
|
|
9363
|
-
}, "
|
|
9369
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9364
9370
|
isMulti: false,
|
|
9365
9371
|
isSearchable: false,
|
|
9366
9372
|
components: {
|
|
@@ -9371,14 +9377,35 @@
|
|
|
9371
9377
|
options: options,
|
|
9372
9378
|
className: "notification-dropdown-select-container",
|
|
9373
9379
|
classNamePrefix: "notification-dropdown-select",
|
|
9374
|
-
onChange:
|
|
9375
|
-
|
|
9376
|
-
|
|
9380
|
+
onChange: function onChange(option) {
|
|
9381
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
9382
|
+
},
|
|
9383
|
+
value: whatsappSelectedOption
|
|
9384
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9385
|
+
className: "notification-dropdown-label"
|
|
9386
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9387
|
+
isMulti: false,
|
|
9388
|
+
isSearchable: false,
|
|
9389
|
+
components: {
|
|
9390
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
9391
|
+
return null;
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
options: options,
|
|
9395
|
+
className: "notification-dropdown-select-container",
|
|
9396
|
+
classNamePrefix: "notification-dropdown-select",
|
|
9397
|
+
onChange: function onChange(option) {
|
|
9398
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
9399
|
+
},
|
|
9400
|
+
value: emailSelectedOption
|
|
9401
|
+
})))));
|
|
9377
9402
|
});
|
|
9378
9403
|
|
|
9379
9404
|
_this.state = {
|
|
9380
9405
|
options: [],
|
|
9381
|
-
|
|
9406
|
+
emailSelectedOption: null,
|
|
9407
|
+
whatsappSelectedOption: null,
|
|
9408
|
+
isVip: false,
|
|
9382
9409
|
request: _objectSpread2({}, request)
|
|
9383
9410
|
};
|
|
9384
9411
|
return _this;
|
package/MaterialSelector.js
CHANGED
|
@@ -9251,7 +9251,7 @@
|
|
|
9251
9251
|
});
|
|
9252
9252
|
|
|
9253
9253
|
var _templateObject$E;
|
|
9254
|
-
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
9254
|
+
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
9255
9255
|
return props.theme.colors.ntrlMin;
|
|
9256
9256
|
}, function (props) {
|
|
9257
9257
|
return props.theme.colors.base;
|
|
@@ -9292,22 +9292,21 @@
|
|
|
9292
9292
|
|
|
9293
9293
|
_this = _super.call(this, props);
|
|
9294
9294
|
|
|
9295
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
9295
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
9296
9296
|
_this.setState({
|
|
9297
9297
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9298
9298
|
fetching: true
|
|
9299
9299
|
})
|
|
9300
9300
|
});
|
|
9301
9301
|
|
|
9302
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
9303
|
-
_this
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
});
|
|
9302
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
9303
|
+
var _this$setState;
|
|
9304
|
+
|
|
9305
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9306
|
+
success: true
|
|
9307
|
+
})), _this$setState));
|
|
9309
9308
|
|
|
9310
|
-
success('Notification Frequency Updated
|
|
9309
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
9311
9310
|
}).catch(function () {
|
|
9312
9311
|
_this.setState({
|
|
9313
9312
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -9315,7 +9314,7 @@
|
|
|
9315
9314
|
})
|
|
9316
9315
|
});
|
|
9317
9316
|
|
|
9318
|
-
error('Error
|
|
9317
|
+
error('Error Occurred');
|
|
9319
9318
|
});
|
|
9320
9319
|
});
|
|
9321
9320
|
|
|
@@ -9334,24 +9333,29 @@
|
|
|
9334
9333
|
|
|
9335
9334
|
var options = _this.getOptionsFromEnumResult(data);
|
|
9336
9335
|
|
|
9337
|
-
var
|
|
9336
|
+
var _data$data$user = data.data.user,
|
|
9337
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
9338
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
9339
|
+
vip = _data$data$user.vip;
|
|
9338
9340
|
|
|
9339
|
-
_this.setState(
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
}
|
|
9341
|
+
_this.setState({
|
|
9342
|
+
options: options,
|
|
9343
|
+
isVip: vip,
|
|
9344
|
+
emailSelectedOption: options.find(function (item) {
|
|
9345
|
+
return item.value === email_interest_send_schedule;
|
|
9346
|
+
}),
|
|
9347
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
9348
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
9349
|
+
})
|
|
9348
9350
|
});
|
|
9349
9351
|
});
|
|
9350
9352
|
|
|
9351
9353
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
9352
9354
|
var _this$state = _this.state,
|
|
9353
9355
|
options = _this$state.options,
|
|
9354
|
-
|
|
9356
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
9357
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
9358
|
+
isVip = _this$state.isVip,
|
|
9355
9359
|
updating = _this$state.request.fetching;
|
|
9356
9360
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
9357
9361
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -9359,8 +9363,10 @@
|
|
|
9359
9363
|
return _this.onData(data);
|
|
9360
9364
|
}
|
|
9361
9365
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9366
|
+
className: "notification-settings"
|
|
9367
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9362
9368
|
className: "notification-dropdown-label"
|
|
9363
|
-
}, "
|
|
9369
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9364
9370
|
isMulti: false,
|
|
9365
9371
|
isSearchable: false,
|
|
9366
9372
|
components: {
|
|
@@ -9371,14 +9377,35 @@
|
|
|
9371
9377
|
options: options,
|
|
9372
9378
|
className: "notification-dropdown-select-container",
|
|
9373
9379
|
classNamePrefix: "notification-dropdown-select",
|
|
9374
|
-
onChange:
|
|
9375
|
-
|
|
9376
|
-
|
|
9380
|
+
onChange: function onChange(option) {
|
|
9381
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
9382
|
+
},
|
|
9383
|
+
value: whatsappSelectedOption
|
|
9384
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9385
|
+
className: "notification-dropdown-label"
|
|
9386
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9387
|
+
isMulti: false,
|
|
9388
|
+
isSearchable: false,
|
|
9389
|
+
components: {
|
|
9390
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
9391
|
+
return null;
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
options: options,
|
|
9395
|
+
className: "notification-dropdown-select-container",
|
|
9396
|
+
classNamePrefix: "notification-dropdown-select",
|
|
9397
|
+
onChange: function onChange(option) {
|
|
9398
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
9399
|
+
},
|
|
9400
|
+
value: emailSelectedOption
|
|
9401
|
+
})))));
|
|
9377
9402
|
});
|
|
9378
9403
|
|
|
9379
9404
|
_this.state = {
|
|
9380
9405
|
options: [],
|
|
9381
|
-
|
|
9406
|
+
emailSelectedOption: null,
|
|
9407
|
+
whatsappSelectedOption: null,
|
|
9408
|
+
isVip: false,
|
|
9382
9409
|
request: _objectSpread2({}, request)
|
|
9383
9410
|
};
|
|
9384
9411
|
return _this;
|
package/ModelSelector.js
CHANGED
|
@@ -9251,7 +9251,7 @@
|
|
|
9251
9251
|
});
|
|
9252
9252
|
|
|
9253
9253
|
var _templateObject$E;
|
|
9254
|
-
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
9254
|
+
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
9255
9255
|
return props.theme.colors.ntrlMin;
|
|
9256
9256
|
}, function (props) {
|
|
9257
9257
|
return props.theme.colors.base;
|
|
@@ -9292,22 +9292,21 @@
|
|
|
9292
9292
|
|
|
9293
9293
|
_this = _super.call(this, props);
|
|
9294
9294
|
|
|
9295
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
9295
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
9296
9296
|
_this.setState({
|
|
9297
9297
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9298
9298
|
fetching: true
|
|
9299
9299
|
})
|
|
9300
9300
|
});
|
|
9301
9301
|
|
|
9302
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
9303
|
-
_this
|
|
9304
|
-
|
|
9305
|
-
|
|
9306
|
-
|
|
9307
|
-
|
|
9308
|
-
});
|
|
9302
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
9303
|
+
var _this$setState;
|
|
9304
|
+
|
|
9305
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9306
|
+
success: true
|
|
9307
|
+
})), _this$setState));
|
|
9309
9308
|
|
|
9310
|
-
success('Notification Frequency Updated
|
|
9309
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
9311
9310
|
}).catch(function () {
|
|
9312
9311
|
_this.setState({
|
|
9313
9312
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -9315,7 +9314,7 @@
|
|
|
9315
9314
|
})
|
|
9316
9315
|
});
|
|
9317
9316
|
|
|
9318
|
-
error('Error
|
|
9317
|
+
error('Error Occurred');
|
|
9319
9318
|
});
|
|
9320
9319
|
});
|
|
9321
9320
|
|
|
@@ -9334,24 +9333,29 @@
|
|
|
9334
9333
|
|
|
9335
9334
|
var options = _this.getOptionsFromEnumResult(data);
|
|
9336
9335
|
|
|
9337
|
-
var
|
|
9336
|
+
var _data$data$user = data.data.user,
|
|
9337
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
9338
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
9339
|
+
vip = _data$data$user.vip;
|
|
9338
9340
|
|
|
9339
|
-
_this.setState(
|
|
9340
|
-
|
|
9341
|
-
|
|
9342
|
-
|
|
9343
|
-
|
|
9344
|
-
|
|
9345
|
-
|
|
9346
|
-
|
|
9347
|
-
}
|
|
9341
|
+
_this.setState({
|
|
9342
|
+
options: options,
|
|
9343
|
+
isVip: vip,
|
|
9344
|
+
emailSelectedOption: options.find(function (item) {
|
|
9345
|
+
return item.value === email_interest_send_schedule;
|
|
9346
|
+
}),
|
|
9347
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
9348
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
9349
|
+
})
|
|
9348
9350
|
});
|
|
9349
9351
|
});
|
|
9350
9352
|
|
|
9351
9353
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
9352
9354
|
var _this$state = _this.state,
|
|
9353
9355
|
options = _this$state.options,
|
|
9354
|
-
|
|
9356
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
9357
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
9358
|
+
isVip = _this$state.isVip,
|
|
9355
9359
|
updating = _this$state.request.fetching;
|
|
9356
9360
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
9357
9361
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -9359,8 +9363,10 @@
|
|
|
9359
9363
|
return _this.onData(data);
|
|
9360
9364
|
}
|
|
9361
9365
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9366
|
+
className: "notification-settings"
|
|
9367
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9362
9368
|
className: "notification-dropdown-label"
|
|
9363
|
-
}, "
|
|
9369
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9364
9370
|
isMulti: false,
|
|
9365
9371
|
isSearchable: false,
|
|
9366
9372
|
components: {
|
|
@@ -9371,14 +9377,35 @@
|
|
|
9371
9377
|
options: options,
|
|
9372
9378
|
className: "notification-dropdown-select-container",
|
|
9373
9379
|
classNamePrefix: "notification-dropdown-select",
|
|
9374
|
-
onChange:
|
|
9375
|
-
|
|
9376
|
-
|
|
9380
|
+
onChange: function onChange(option) {
|
|
9381
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
9382
|
+
},
|
|
9383
|
+
value: whatsappSelectedOption
|
|
9384
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9385
|
+
className: "notification-dropdown-label"
|
|
9386
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
9387
|
+
isMulti: false,
|
|
9388
|
+
isSearchable: false,
|
|
9389
|
+
components: {
|
|
9390
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
9391
|
+
return null;
|
|
9392
|
+
}
|
|
9393
|
+
},
|
|
9394
|
+
options: options,
|
|
9395
|
+
className: "notification-dropdown-select-container",
|
|
9396
|
+
classNamePrefix: "notification-dropdown-select",
|
|
9397
|
+
onChange: function onChange(option) {
|
|
9398
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
9399
|
+
},
|
|
9400
|
+
value: emailSelectedOption
|
|
9401
|
+
})))));
|
|
9377
9402
|
});
|
|
9378
9403
|
|
|
9379
9404
|
_this.state = {
|
|
9380
9405
|
options: [],
|
|
9381
|
-
|
|
9406
|
+
emailSelectedOption: null,
|
|
9407
|
+
whatsappSelectedOption: null,
|
|
9408
|
+
isVip: false,
|
|
9382
9409
|
request: _objectSpread2({}, request)
|
|
9383
9410
|
};
|
|
9384
9411
|
return _this;
|
package/NotificationDropDown.js
CHANGED
|
@@ -6753,7 +6753,7 @@
|
|
|
6753
6753
|
var index$1 = manageState(Select);
|
|
6754
6754
|
|
|
6755
6755
|
var _templateObject;
|
|
6756
|
-
var NotifyContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
6756
|
+
var NotifyContainer = styled__default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
6757
6757
|
return props.theme.colors.ntrlMin;
|
|
6758
6758
|
}, function (props) {
|
|
6759
6759
|
return props.theme.colors.base;
|
|
@@ -6974,22 +6974,21 @@
|
|
|
6974
6974
|
|
|
6975
6975
|
_this = _super.call(this, props);
|
|
6976
6976
|
|
|
6977
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
6977
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
6978
6978
|
_this.setState({
|
|
6979
6979
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
6980
6980
|
fetching: true
|
|
6981
6981
|
})
|
|
6982
6982
|
});
|
|
6983
6983
|
|
|
6984
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
6985
|
-
_this
|
|
6986
|
-
|
|
6987
|
-
|
|
6988
|
-
|
|
6989
|
-
|
|
6990
|
-
});
|
|
6984
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
6985
|
+
var _this$setState;
|
|
6986
|
+
|
|
6987
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
6988
|
+
success: true
|
|
6989
|
+
})), _this$setState));
|
|
6991
6990
|
|
|
6992
|
-
success('Notification Frequency Updated
|
|
6991
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
6993
6992
|
}).catch(function () {
|
|
6994
6993
|
_this.setState({
|
|
6995
6994
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -6997,7 +6996,7 @@
|
|
|
6997
6996
|
})
|
|
6998
6997
|
});
|
|
6999
6998
|
|
|
7000
|
-
error('Error
|
|
6999
|
+
error('Error Occurred');
|
|
7001
7000
|
});
|
|
7002
7001
|
});
|
|
7003
7002
|
|
|
@@ -7016,24 +7015,29 @@
|
|
|
7016
7015
|
|
|
7017
7016
|
var options = _this.getOptionsFromEnumResult(data);
|
|
7018
7017
|
|
|
7019
|
-
var
|
|
7018
|
+
var _data$data$user = data.data.user,
|
|
7019
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
7020
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
7021
|
+
vip = _data$data$user.vip;
|
|
7020
7022
|
|
|
7021
|
-
_this.setState(
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
}
|
|
7023
|
+
_this.setState({
|
|
7024
|
+
options: options,
|
|
7025
|
+
isVip: vip,
|
|
7026
|
+
emailSelectedOption: options.find(function (item) {
|
|
7027
|
+
return item.value === email_interest_send_schedule;
|
|
7028
|
+
}),
|
|
7029
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
7030
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
7031
|
+
})
|
|
7030
7032
|
});
|
|
7031
7033
|
});
|
|
7032
7034
|
|
|
7033
7035
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
7034
7036
|
var _this$state = _this.state,
|
|
7035
7037
|
options = _this$state.options,
|
|
7036
|
-
|
|
7038
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
7039
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
7040
|
+
isVip = _this$state.isVip,
|
|
7037
7041
|
updating = _this$state.request.fetching;
|
|
7038
7042
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
7039
7043
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -7041,8 +7045,27 @@
|
|
|
7041
7045
|
return _this.onData(data);
|
|
7042
7046
|
}
|
|
7043
7047
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
7048
|
+
className: "notification-settings"
|
|
7049
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
7050
|
+
className: "notification-dropdown-label"
|
|
7051
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
7052
|
+
isMulti: false,
|
|
7053
|
+
isSearchable: false,
|
|
7054
|
+
components: {
|
|
7055
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
7056
|
+
return null;
|
|
7057
|
+
}
|
|
7058
|
+
},
|
|
7059
|
+
options: options,
|
|
7060
|
+
className: "notification-dropdown-select-container",
|
|
7061
|
+
classNamePrefix: "notification-dropdown-select",
|
|
7062
|
+
onChange: function onChange(option) {
|
|
7063
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
7064
|
+
},
|
|
7065
|
+
value: whatsappSelectedOption
|
|
7066
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
7044
7067
|
className: "notification-dropdown-label"
|
|
7045
|
-
}, "
|
|
7068
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1, {
|
|
7046
7069
|
isMulti: false,
|
|
7047
7070
|
isSearchable: false,
|
|
7048
7071
|
components: {
|
|
@@ -7053,14 +7076,18 @@
|
|
|
7053
7076
|
options: options,
|
|
7054
7077
|
className: "notification-dropdown-select-container",
|
|
7055
7078
|
classNamePrefix: "notification-dropdown-select",
|
|
7056
|
-
onChange:
|
|
7057
|
-
|
|
7058
|
-
|
|
7079
|
+
onChange: function onChange(option) {
|
|
7080
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
7081
|
+
},
|
|
7082
|
+
value: emailSelectedOption
|
|
7083
|
+
})))));
|
|
7059
7084
|
});
|
|
7060
7085
|
|
|
7061
7086
|
_this.state = {
|
|
7062
7087
|
options: [],
|
|
7063
|
-
|
|
7088
|
+
emailSelectedOption: null,
|
|
7089
|
+
whatsappSelectedOption: null,
|
|
7090
|
+
isVip: false,
|
|
7064
7091
|
request: _objectSpread2({}, request)
|
|
7065
7092
|
};
|
|
7066
7093
|
return _this;
|
package/build/bundle.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}.navbar__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-bottom:20px;padding-left:32px;padding-right:32px}.navbar__container{display:flex;margin:0 auto;max-width:1280px;padding-left:12px;padding-right:12px;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;justify-content:space-between;width:100%}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.navbar__menu-icon{width:30px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;width:200px}.navbar__logo{width:200px}@media only screen and (max-width:879px){.navbar__logo{margin-left:10px;margin-top:5px;width:125px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;width:100%}.navbar__link{display:inline-block;font-family:Martel Sans;font-size:14px;font-weight:700;margin-right:10px;overflow:hidden;text-transform:uppercase;transition:.3s ease-in-out}.navbar__link:after{background-color:#000;content:"";display:block;height:2px;transition:width .25s ease-out;width:0}.navbar__link:hover:after{width:100%}.navbar__link:hover .navbar__dropdown{animation:fadeInDropdown .3s ease-in-out;display:block}.navbar__dropdown{background-color:#fff;box-shadow:5px 5px 5px #dfdede;display:none;left:0;position:absolute;width:100%;z-index:999}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar__company-link{font-size:13px;font-weight:400;list-style:none;margin-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;justify-content:center;margin-right:0;padding:0 18px;text-transform:uppercase}.navbar__input-search-icon{height:auto;margin-left:1.125rem;margin-right:.375rem;width:15px}.navbar__nav-links{align-items:center;display:flex}.navbar__nav-links--wrap{flex-wrap:wrap}.navbar__icons{align-items:center;display:flex;height:40px;justify-content:flex-end;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}@media only screen and (max-width:879px){.navbar__icon{margin-right:0}}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{margin-right:0}}.navbar__vip-icon{height:16px;position:absolute;right:-12px;top:-4px;width:16px}.navbar__cart-icon{position:relative}.navbar__cart-count{align-items:center;background-color:#000;border-radius:50%;bottom:50%;color:#fff;display:flex;font-size:13px;height:20px;justify-content:center;left:100%;position:absolute;width:20px}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;justify-content:space-between;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{font-size:14px;font-weight:700;line-height:20px;text-transform:uppercase}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 0}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.footer__newsletter-wrapper{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__newsletter-wrapper{flex-direction:column}.footer__link-container{flex-basis:50%}}.footer__newsletter-icon{height:30px;position:absolute;right:0;top:0;width:32px}.footer__newsletter-form{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;width:100%}}.footer__newsletter-title{font-family:Martel Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:3px;margin-bottom:1.125rem;text-transform:uppercase}.footer__newsletter-text{font-size:14px}.footer__form-input{background-color:#000;border:none;border-bottom:1px solid #fff;color:#fff;height:30px;outline:none;width:100%}.footer__form-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.footer__form-errors{color:#fff;margin-top:5px}.footer__main-section{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:50px;margin-top:80px}.footer__link-title{font-family:El Messiri;font-size:16px;font-weight:700;margin-bottom:20px;text-transform:uppercase}@media only screen and (max-width:879px){.footer__link-title{margin-bottom:10px}}.footer__link-child{margin-top:25px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:7px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}@media only screen and (max-width:879px){.footer__link{margin-bottom:10px}}.footer__link-wrapper{align-items:center;display:flex;gap:5px}.footer__link-icon{height:30px;margin-bottom:18px}.footer__text{color:#939393;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__store-hours{margin-top:35px}.footer__copyrights-section{border-top:1px solid;display:flex;justify-content:space-between;padding-bottom:20px;padding-top:20px}.footer__logo{height:30px;width:135px}.footer__payment-icons{align-items:center;display:flex;gap:8px}.footer__wrapper{margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__wrapper{padding:32px 0 0 24px}}.footer__wrapper--desktop{display:block}@media only screen and (max-width:879px){.footer__wrapper--desktop{display:none}}.footer__wrapper--mobile{display:none}@media only screen and (max-width:879px){.footer__wrapper--mobile{display:block;padding-top:30px}}.footer__copyright{font-size:10px;line-height:22px}.footer__copyright--mobile{display:none}@media only screen and (max-width:879px){.footer__copyright--mobile{display:block;padding:30px 10px 30px 0;text-align:center}}.footer__section-row{display:flex;gap:50%}@media only screen and (max-width:879px){.footer__section-row{gap:unset}}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}@charset "UTF-8";.currency-select-container{align-items:center;display:flex;margin-right:18px;position:relative}.currency-select-container .currency-flag{margin-right:5px}.currency-select-container .currency-flag img{height:15px;-o-object-fit:cover;object-fit:cover;width:20px}.currency-select-container .currency-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;border:none;color:#000;cursor:pointer;font-family:inherit;font-size:14px;margin:0;outline:none;padding:5px 15px 5px 5px}.currency-select-container .currency-select::-ms-expand{display:none}.currency-select-container .currency-select:focus{box-shadow:none;outline:none}.currency-select-container .currency-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.currency-select-container:after{color:#000;content:"▼";font-size:10px;pointer-events:none;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media only screen and (max-width:879px){.currency-select-container .currency-select{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;padding-right:0}.currency-select-container:after{display:none}}.currency-select-container.disabled{cursor:not-allowed;opacity:.7}.currency-select-container.disabled .currency-select{pointer-events:none}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.stores-dropdown__image{height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.stores-dropdown__store-details{flex-basis:20%}.stores-dropdown__title{font-family:El Messiri}.stores-dropdown__main-title,.stores-dropdown__title{font-size:16px;font-weight:400;letter-spacing:3px;margin-top:20px}.stores-dropdown__main-title{font-weight:700;margin-bottom:10px}.stores-dropdown__open-days{font-size:12px;font-weight:700;line-height:20px}.stores-dropdown__open-hours{font-size:12px;font-weight:400;line-height:20px}.stores-dropdown__queries-title{font-family:El Messiri;font-size:16px;font-weight:400;letter-spacing:3px}.stores-dropdown__contact-details{font-size:16px;font-weight:700}.stores-dropdown__view-more{cursor:pointer;font-size:14px;font-weight:400;margin-top:10px;text-transform:capitalize}.dropdown{display:flex;justify-content:space-between;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.dropdown__column:nth-child(2){flex:2}.dropdown__title{font-family:El Messiri;font-size:16px;font-weight:700;letter-spacing:3px;line-height:1;margin-bottom:20px;text-transform:uppercase}.dropdown__elements{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
|
1
|
+
.navbar{box-shadow:2px 2px 10px #dfdede;display:flex;padding-bottom:10px;padding-top:20px;position:relative}.navbar__link-item--desktop{align-items:center;display:flex;height:35px;margin:auto 0;padding-top:5px}.navbar__mobile-wrapper{align-items:center;display:flex;flex-direction:column;padding-bottom:20px;padding-left:32px;padding-right:32px}.navbar__container{display:flex;margin:0 auto;max-width:1280px;padding-left:12px;padding-right:12px;width:100%}.navbar__body{flex-basis:60%}.navbar__wrapper{align-items:center;display:flex;justify-content:space-between;width:100%}.navbar__product-search-wrapper{align-items:center;display:flex;justify-content:center;padding:0 20%;width:100%}@media only screen and (max-width:879px){.navbar__product-search-wrapper{padding:0}}.navbar__input-close-icon{height:auto;margin-bottom:10px;margin-left:10px;width:20px}@media only screen and (max-width:879px){.navbar__input-close-icon{margin-bottom:0;margin-left:0;width:15px}}.navbar__menu-icon{width:30px}.navbar__product-search{align-items:center;display:flex;max-width:545px;width:100%}.navbar__logo-wrapper{margin-right:18px;width:200px}.navbar__logo{width:200px}@media only screen and (max-width:879px){.navbar__logo{margin-left:10px;margin-top:5px;width:125px}}.navbar__form-input{align-items:center;background:transparent;border:none;display:flex;font-size:13px;outline:none;padding:8px;width:100%}.navbar__product-search{border:1px solid #dfdede;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__product-search{border:none;border-bottom:1px solid #dfdede;margin-bottom:0;margin-right:10px;margin-top:10px}}.navbar__section{align-items:flex-start;display:flex;flex-direction:row;justify-content:space-between;width:100%}.navbar__link{display:inline-block;font-family:Martel Sans;font-size:14px;font-weight:700;margin-right:10px;overflow:hidden;text-transform:uppercase;transition:.3s ease-in-out}.navbar__link:after{background-color:#000;content:"";display:block;height:2px;transition:width .25s ease-out;width:0}.navbar__link:hover:after{width:100%}.navbar__link:hover .navbar__dropdown{animation:fadeInDropdown .3s ease-in-out;display:block}.navbar__dropdown{background-color:#fff;box-shadow:5px 5px 5px #dfdede;display:none;left:0;position:absolute;width:100%;z-index:999}@keyframes fadeInDropdown{0%{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:translateY(0)}}.navbar__company-link{font-size:13px;font-weight:400;list-style:none;margin-left:18px;text-decoration:none}.navbar__company-block{align-items:center;background-color:#000;color:#fff;display:flex;font-weight:700;height:33px;justify-content:center;margin-right:0;padding:0 18px;text-transform:uppercase}.navbar__input-search-icon{height:auto;margin-left:1.125rem;margin-right:.375rem;width:15px}.navbar__nav-links{align-items:center;display:flex}.navbar__nav-links--wrap{flex-wrap:wrap}.navbar__icons{align-items:center;display:flex;height:40px;justify-content:flex-end;margin-bottom:10px}@media only screen and (max-width:879px){.navbar__icons{display:block;height:20px;margin-bottom:0}}.navbar__icon{cursor:pointer;height:auto;margin-right:18px;width:20px}@media only screen and (max-width:879px){.navbar__icon{margin-right:0}}.navbar__icon--app{cursor:pointer;height:auto;margin-left:12px;width:20px}@media only screen and (max-width:879px){.navbar__icon--app{margin-right:0}}.navbar__vip-icon{height:16px;position:absolute;right:-12px;top:-4px;width:16px}.navbar__cart-icon{position:relative}.navbar__cart-count{align-items:center;background-color:#000;border-radius:50%;bottom:50%;color:#fff;display:flex;font-size:13px;height:20px;justify-content:center;left:100%;position:absolute;width:20px}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;justify-content:space-between;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{font-size:14px;font-weight:700;line-height:20px;text-transform:uppercase}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.side-nav{font-family:Martel Sans}.side-nav__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center}.side-nav__overlay{background-color:rgba(78,73,73,.51);height:100%;opacity:0;position:fixed;top:0;transition:opacity .5s ease-out 0s,visibility .5s ease-out 0s;width:100%;z-index:99999}.side-nav__overlay--visible{opacity:1;visibility:visible}.side-nav__overlay--hidden{opacity:1;visibility:hidden}.side-nav__content{background-color:#fff;bottom:0;overflow-y:scroll;padding:1.5rem;position:fixed;top:0;transition:left .5s ease-in-out;width:80%;z-index:99999}.side-nav__content--hidden{display:none}.side-nav__content--open{left:0}.side-nav__content--closed{left:-100%}.side-nav__menu-title-wrapper{align-items:center;background-color:transparent;border:none;display:flex;outline:none;width:100%}.side-nav__icon-container{float:right;margin-bottom:10px}.side-nav__menu-title{align-items:center;display:flex;font-size:14px;font-weight:700;justify-content:center;line-height:20px;text-transform:uppercase}.side-nav__menu-icon{display:flex;height:25px;margin-right:10px;width:25px}.side-nav__menu-divider{margin-bottom:40px}.side-nav__accordion-icon{height:auto;width:15px}.side-nav__menu-item{margin-bottom:25px}.side-nav__close-icon{height:20px;margin-left:auto;width:20px}.side-nav__back-button-wrapper{align-items:center;display:flex;margin-bottom:25px}.side-nav__back-icon{height:20px;width:20px}.side-nav__back-button,.side-nav__sub-menu-title{font-weight:700;text-transform:uppercase}.side-nav__sub-menu-title{font-size:14px;margin-bottom:10px}.side-nav__elements{display:flex;flex-direction:column}.side-nav__element{color:#555;cursor:pointer;line-height:20px;margin-bottom:10px}.side-nav__element,.side-nav__sub-link{font-size:14px;font-weight:400;text-transform:capitalize}.side-nav__block-button{background-color:#000;color:#fff;font-weight:700;padding:10px 0;width:100%}.footer__newsletter-section{align-items:center;background-color:#000;color:#fff;display:flex;justify-content:space-between;padding:2.265rem 0}@media only screen and (max-width:879px){.footer__newsletter-section{flex-direction:column}}.footer__newsletter-wrapper{align-items:center;display:flex;justify-content:space-between;margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__newsletter-wrapper{flex-direction:column}.footer__link-container{flex-basis:50%}}.footer__newsletter-icon{height:30px;position:absolute;right:0;top:0;width:32px}.footer__newsletter-form{flex-basis:50%;max-width:250px;position:relative}@media only screen and (max-width:879px){.footer__newsletter-form{display:block;margin-top:20px;max-width:100%;width:100%}}.footer__newsletter-title{font-family:Martel Sans,sans-serif;font-size:14px;font-weight:700;letter-spacing:3px;margin-bottom:1.125rem;text-transform:uppercase}.footer__newsletter-text{font-size:14px}.footer__form-input{background-color:#000;border:none;border-bottom:1px solid #fff;color:#fff;height:30px;outline:none;width:100%}.footer__form-input::-moz-placeholder{color:#fff;font-weight:400}.footer__form-input::placeholder{color:#fff;font-weight:400}.footer__form-errors{color:#fff;margin-top:5px}.footer__main-section{align-items:flex-start;display:flex;justify-content:space-between;margin-bottom:50px;margin-top:80px}.footer__link-title{font-family:El Messiri;font-size:16px;font-weight:700;margin-bottom:20px;text-transform:uppercase}@media only screen and (max-width:879px){.footer__link-title{margin-bottom:10px}}.footer__link-child{margin-top:25px}.footer__links{display:flex;flex-direction:column}.footer__link{color:#939393;cursor:pointer;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:7px;text-align:left;text-decoration:none}.footer__link:hover{color:#000;text-decoration:underline}@media only screen and (max-width:879px){.footer__link{margin-bottom:10px}}.footer__link-wrapper{align-items:center;display:flex;gap:5px}.footer__link-icon{height:30px;margin-bottom:18px}.footer__text{color:#939393;font-family:Martel Sans;font-size:14px;line-height:20px;margin-bottom:15px;text-align:left;text-decoration:none}.footer__store-hours{margin-top:35px}.footer__copyrights-section{border-top:1px solid;display:flex;justify-content:space-between;padding-bottom:20px;padding-top:20px}.footer__logo{height:30px;width:135px}.footer__payment-icons{align-items:center;display:flex;gap:8px}.footer__wrapper{margin:0 auto;max-width:1280px;padding-left:32px;padding-right:32px;width:100%}@media only screen and (max-width:879px){.footer__wrapper{padding:32px 0 0 24px}}.footer__wrapper--desktop{display:block}@media only screen and (max-width:879px){.footer__wrapper--desktop{display:none}}.footer__wrapper--mobile{display:none}@media only screen and (max-width:879px){.footer__wrapper--mobile{display:block;padding-top:30px}}.footer__copyright{font-size:10px;line-height:22px}.footer__copyright--mobile{display:none}@media only screen and (max-width:879px){.footer__copyright--mobile{display:block;padding:30px 10px 30px 0;text-align:center}}.footer__section-row{display:flex;gap:50%}@media only screen and (max-width:879px){.footer__section-row{gap:unset}}@charset "UTF-8";.currency-select-container{align-items:center;display:flex;margin-right:18px;position:relative}.currency-select-container .currency-flag{margin-right:5px}.currency-select-container .currency-flag img{height:15px;-o-object-fit:cover;object-fit:cover;width:20px}.currency-select-container .currency-select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-color:transparent;border:none;color:#000;cursor:pointer;font-family:inherit;font-size:14px;margin:0;outline:none;padding:5px 15px 5px 5px}.currency-select-container .currency-select::-ms-expand{display:none}.currency-select-container .currency-select:focus{box-shadow:none;outline:none}.currency-select-container .currency-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #000}.currency-select-container:after{color:#000;content:"▼";font-size:10px;pointer-events:none;position:absolute;right:0;top:50%;transform:translateY(-50%)}@media only screen and (max-width:879px){.currency-select-container .currency-select{appearance:menulist;-webkit-appearance:menulist;-moz-appearance:menulist;padding-right:0}.currency-select-container:after{display:none}}.currency-select-container.disabled{cursor:not-allowed;opacity:.7}.currency-select-container.disabled .currency-select{pointer-events:none}.stores-dropdown{align-items:flex-start;display:flex;font-family:Martel Sans;gap:20px;margin-left:auto;margin-right:auto;max-width:1280px;overflow-x:auto;padding:20px 15px}.stores-dropdown__image{height:200px;-o-object-fit:cover;object-fit:cover;width:100%}.stores-dropdown__store-details{flex-basis:20%}.stores-dropdown__title{font-family:El Messiri}.stores-dropdown__main-title,.stores-dropdown__title{font-size:16px;font-weight:400;letter-spacing:3px;margin-top:20px}.stores-dropdown__main-title{font-weight:700;margin-bottom:10px}.stores-dropdown__open-days{font-size:12px;font-weight:700;line-height:20px}.stores-dropdown__open-hours{font-size:12px;font-weight:400;line-height:20px}.stores-dropdown__queries-title{font-family:El Messiri;font-size:16px;font-weight:400;letter-spacing:3px}.stores-dropdown__contact-details{font-size:16px;font-weight:700}.stores-dropdown__view-more{cursor:pointer;font-size:14px;font-weight:400;margin-top:10px;text-transform:capitalize}.dropdown{display:flex;justify-content:space-between;margin-left:auto;margin-right:auto;max-width:1280px;min-height:500px;overflow-x:auto;padding:20px 0}.dropdown__errors{align-items:center;color:red;display:flex;font-size:16px;justify-content:center;min-height:300px}.dropdown__column{flex:1;padding-left:12px}.dropdown__column:nth-child(2){flex:2}.dropdown__title{font-family:El Messiri;font-size:16px;font-weight:700;letter-spacing:3px;line-height:1;margin-bottom:20px;text-transform:uppercase}.dropdown__elements{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));max-height:800px;overflow-y:auto}.dropdown__brand-elements{-moz-column-count:3;column-count:3;max-height:800px}.dropdown__brand-element{cursor:pointer;margin-bottom:10px}.dropdown__element{flex-basis:33.33%;font-family:Martel Sans;font-size:14px;font-weight:400;margin-bottom:10px;text-transform:capitalize}.cover-spinner{align-items:center;background-color:hsla(0,0%,100%,.7);display:flex;height:100%;justify-content:center;min-height:400px;position:relative;top:50%;width:100%;z-index:9999}.cover-spinner:after{animation:spin 1.5s linear infinite;border:4px dotted #000;border-radius:50%;border-top-color:transparent;content:"";display:block;height:40px;position:absolute;width:40px}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}
|
package/build/bundle.js
CHANGED
|
@@ -9685,7 +9685,7 @@
|
|
|
9685
9685
|
});
|
|
9686
9686
|
|
|
9687
9687
|
var _templateObject$E;
|
|
9688
|
-
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width:
|
|
9688
|
+
var NotifyContainer = styled__default.div(_templateObject$E || (_templateObject$E = _taggedTemplateLiteral(["\n .page-ready {\n display: flex;\n align-items: center;\n }\n\n .notification-settings {\n display: flex;\n align-items: center;\n }\n\n .notification-dropdown-label {\n margin-left: 20px;\n }\n\n .loader {\n min-width: 150px;\n }\n\n .notification-dropdown-select-container {\n min-width: 110px;\n\n .notification-dropdown-select__control {\n min-height: auto;\n background-color: ", ";\n border: none;\n border-radius: 0;\n\n &--is-focused {\n border: none;\n border-radius: 0;\n box-shadow: none;\n }\n\n .notification-dropdown-select__value-container {\n & > div {\n padding: 0;\n margin: 0;\n color: ", ";\n }\n & .notification-dropdown-select__single-value,\n & .notification-dropdown-select__placeholder {\n overflow: visible;\n font-weight: lighter;\n }\n }\n }\n }\n\n .notification-dropdown-select__indicators {\n padding: 0 !important;\n .notification-dropdown-select__dropdown-indicator {\n color: ", ";\n }\n }\n\n .notification-dropdown-select__menu {\n border-radius: 0;\n\n & > .notification-dropdown-select__menu-list {\n border-radius: 0;\n\n & > .notification-dropdown-select__option {\n font-weight: bold;\n &:last-child {\n border-bottom: none;\n }\n\n &.notification-dropdown-select__option--is-focused {\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected {\n color: ", ";\n background-color: ", ";\n border-style: hidden;\n }\n &.notification-dropdown-select__option--is-selected.notification-dropdown-select__option--is-focused {\n border-style: hidden;\n }\n }\n }\n }\n"])), function (props) {
|
|
9689
9689
|
return props.theme.colors.ntrlMin;
|
|
9690
9690
|
}, function (props) {
|
|
9691
9691
|
return props.theme.colors.base;
|
|
@@ -9726,22 +9726,21 @@
|
|
|
9726
9726
|
|
|
9727
9727
|
_this = _super.call(this, props);
|
|
9728
9728
|
|
|
9729
|
-
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption) {
|
|
9729
|
+
_defineProperty(_assertThisInitialized(_this), "postUpdate", function (selectedOption, type) {
|
|
9730
9730
|
_this.setState({
|
|
9731
9731
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9732
9732
|
fetching: true
|
|
9733
9733
|
})
|
|
9734
9734
|
});
|
|
9735
9735
|
|
|
9736
|
-
_this.props.setSchedule(selectedOption.value).then(function () {
|
|
9737
|
-
_this
|
|
9738
|
-
|
|
9739
|
-
|
|
9740
|
-
|
|
9741
|
-
|
|
9742
|
-
});
|
|
9736
|
+
_this.props.setSchedule(selectedOption.value, type).then(function () {
|
|
9737
|
+
var _this$setState;
|
|
9738
|
+
|
|
9739
|
+
_this.setState((_this$setState = {}, _defineProperty(_this$setState, type === 'EMAIL' ? 'emailSelectedOption' : 'whatsappSelectedOption', selectedOption), _defineProperty(_this$setState, "request", _objectSpread2(_objectSpread2({}, request), {}, {
|
|
9740
|
+
success: true
|
|
9741
|
+
})), _this$setState));
|
|
9743
9742
|
|
|
9744
|
-
success('Notification Frequency Updated
|
|
9743
|
+
success("".concat(type === 'EMAIL' ? 'Email' : 'WhatsApp', " Notification Frequency Updated"));
|
|
9745
9744
|
}).catch(function () {
|
|
9746
9745
|
_this.setState({
|
|
9747
9746
|
request: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
@@ -9749,7 +9748,7 @@
|
|
|
9749
9748
|
})
|
|
9750
9749
|
});
|
|
9751
9750
|
|
|
9752
|
-
error('Error
|
|
9751
|
+
error('Error Occurred');
|
|
9753
9752
|
});
|
|
9754
9753
|
});
|
|
9755
9754
|
|
|
@@ -9768,24 +9767,29 @@
|
|
|
9768
9767
|
|
|
9769
9768
|
var options = _this.getOptionsFromEnumResult(data);
|
|
9770
9769
|
|
|
9771
|
-
var
|
|
9770
|
+
var _data$data$user = data.data.user,
|
|
9771
|
+
email_interest_send_schedule = _data$data$user.email_interest_send_schedule,
|
|
9772
|
+
whatsapp_interest_send_schedule = _data$data$user.whatsapp_interest_send_schedule,
|
|
9773
|
+
vip = _data$data$user.vip;
|
|
9772
9774
|
|
|
9773
|
-
_this.setState(
|
|
9774
|
-
|
|
9775
|
-
|
|
9776
|
-
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
}
|
|
9775
|
+
_this.setState({
|
|
9776
|
+
options: options,
|
|
9777
|
+
isVip: vip,
|
|
9778
|
+
emailSelectedOption: options.find(function (item) {
|
|
9779
|
+
return item.value === email_interest_send_schedule;
|
|
9780
|
+
}),
|
|
9781
|
+
whatsappSelectedOption: options.find(function (item) {
|
|
9782
|
+
return item.value === whatsapp_interest_send_schedule;
|
|
9783
|
+
})
|
|
9782
9784
|
});
|
|
9783
9785
|
});
|
|
9784
9786
|
|
|
9785
9787
|
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
9786
9788
|
var _this$state = _this.state,
|
|
9787
9789
|
options = _this$state.options,
|
|
9788
|
-
|
|
9790
|
+
emailSelectedOption = _this$state.emailSelectedOption,
|
|
9791
|
+
whatsappSelectedOption = _this$state.whatsappSelectedOption,
|
|
9792
|
+
isVip = _this$state.isVip,
|
|
9789
9793
|
updating = _this$state.request.fetching;
|
|
9790
9794
|
return /*#__PURE__*/React__default.createElement(NotifyContainer, null, /*#__PURE__*/React__default.createElement(LuxityNotifications, null), /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
9791
9795
|
getRequestPromise: _this.props.getSchedule,
|
|
@@ -9793,8 +9797,10 @@
|
|
|
9793
9797
|
return _this.onData(data);
|
|
9794
9798
|
}
|
|
9795
9799
|
}, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9800
|
+
className: "notification-settings"
|
|
9801
|
+
}, isVip && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9796
9802
|
className: "notification-dropdown-label"
|
|
9797
|
-
}, "
|
|
9803
|
+
}, "Notify me via WhatsApp:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1$1, {
|
|
9798
9804
|
isMulti: false,
|
|
9799
9805
|
isSearchable: false,
|
|
9800
9806
|
components: {
|
|
@@ -9805,14 +9811,35 @@
|
|
|
9805
9811
|
options: options,
|
|
9806
9812
|
className: "notification-dropdown-select-container",
|
|
9807
9813
|
classNamePrefix: "notification-dropdown-select",
|
|
9808
|
-
onChange:
|
|
9809
|
-
|
|
9810
|
-
|
|
9814
|
+
onChange: function onChange(option) {
|
|
9815
|
+
return _this.postUpdate(option, 'WHATSAPP');
|
|
9816
|
+
},
|
|
9817
|
+
value: whatsappSelectedOption
|
|
9818
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
9819
|
+
className: "notification-dropdown-label"
|
|
9820
|
+
}, "Notify me via Email:\xA0"), updating ? /*#__PURE__*/React__default.createElement(EllipsisLoader, null) : /*#__PURE__*/React__default.createElement(index$1$1, {
|
|
9821
|
+
isMulti: false,
|
|
9822
|
+
isSearchable: false,
|
|
9823
|
+
components: {
|
|
9824
|
+
IndicatorSeparator: function IndicatorSeparator() {
|
|
9825
|
+
return null;
|
|
9826
|
+
}
|
|
9827
|
+
},
|
|
9828
|
+
options: options,
|
|
9829
|
+
className: "notification-dropdown-select-container",
|
|
9830
|
+
classNamePrefix: "notification-dropdown-select",
|
|
9831
|
+
onChange: function onChange(option) {
|
|
9832
|
+
return _this.postUpdate(option, 'EMAIL');
|
|
9833
|
+
},
|
|
9834
|
+
value: emailSelectedOption
|
|
9835
|
+
})))));
|
|
9811
9836
|
});
|
|
9812
9837
|
|
|
9813
9838
|
_this.state = {
|
|
9814
9839
|
options: [],
|
|
9815
|
-
|
|
9840
|
+
emailSelectedOption: null,
|
|
9841
|
+
whatsappSelectedOption: null,
|
|
9842
|
+
isVip: false,
|
|
9816
9843
|
request: _objectSpread2({}, request)
|
|
9817
9844
|
};
|
|
9818
9845
|
return _this;
|