@bonlineza/luxity-lib 2.35.1 → 2.35.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddInterest.js +58 -57
- package/AddProductInterest.js +7748 -0
- package/ConditionSelector.js +973 -0
- package/DropdownSelector.js +6839 -0
- package/GraphQLDropdownSelector.js +1199 -95
- package/Interests.js +1191 -86
- package/LuxityGraphQLDropdownSelector.js +1199 -95
- package/LuxityProductInterestItem.js +434 -0
- package/MaterialSelector.js +1199 -95
- package/ModelSelector.js +1199 -95
- package/build/bundle.css +1 -1
- package/build/bundle.js +1222 -117
- package/package.json +1 -1
- package/build/.gitignore +0 -3
- package/build/.npmignore +0 -0
package/MaterialSelector.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components'), require('@bonlineza/b-lib/EllipsisLoader'), require('@bonlineza/b-lib/PageReady'), require('react-animate-height'), require('numeral'), require('stylis-rule-sheet'), require('react-dom'), require('prop-types'), require('raf'), require('react-input-autosize'), require('react-transition-group'), require('@bonlineza/b-lib/functions'), require('rc-slider'), require('react-notify-toast'), require('axios')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['react', 'styled-components', '@bonlineza/b-lib/EllipsisLoader', '@bonlineza/b-lib/PageReady', 'react-animate-height', 'numeral', 'stylis-rule-sheet', 'react-dom', 'prop-types', 'raf', 'react-input-autosize', 'react-transition-group', '@bonlineza/b-lib/functions', 'rc-slider', 'react-notify-toast', 'axios'], factory) :
|
|
4
|
-
(global = global || self, global.MaterialSelector = factory(global.React, global.styled, global.EllipsisLoader, global.PageReady, global.AnimateHeight, global.numeral, global['stylis-rule-sheet'], global.reactDom, global.PropTypes, global.raf, global['react-input-autosize'], global['react-transition-group'], global.function, global.rcSlider, global['react-notify-toast'], global.axios));
|
|
5
|
-
}(this, (function (React, styled, EllipsisLoader, PageReady, AnimateHeight, numeral, stylisRuleSheet, reactDom, PropTypes, raf, AutosizeInput, reactTransitionGroup, functions, rcSlider, Notifications, axios) { 'use strict';
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components'), require('@bonlineza/b-lib/EllipsisLoader'), require('@bonlineza/b-lib/PageReady'), require('react-animate-height'), require('numeral'), require('stylis-rule-sheet'), require('react-dom'), require('prop-types'), require('raf'), require('react-input-autosize'), require('react-transition-group'), require('@bonlineza/b-lib/functions'), require('rc-slider'), require('react-notify-toast'), require('helpers/axios'), require('axios')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define(['react', 'styled-components', '@bonlineza/b-lib/EllipsisLoader', '@bonlineza/b-lib/PageReady', 'react-animate-height', 'numeral', 'stylis-rule-sheet', 'react-dom', 'prop-types', 'raf', 'react-input-autosize', 'react-transition-group', '@bonlineza/b-lib/functions', 'rc-slider', 'react-notify-toast', 'helpers/axios', 'axios'], factory) :
|
|
4
|
+
(global = global || self, global.MaterialSelector = factory(global.React, global.styled, global.EllipsisLoader, global.PageReady, global.AnimateHeight, global.numeral, global['stylis-rule-sheet'], global.reactDom, global.PropTypes, global.raf, global['react-input-autosize'], global['react-transition-group'], global.function, global.rcSlider, global['react-notify-toast'], global.axiosInstance, global.axios));
|
|
5
|
+
}(this, (function (React, styled, EllipsisLoader, PageReady, AnimateHeight, numeral, stylisRuleSheet, reactDom, PropTypes, raf, AutosizeInput, reactTransitionGroup, functions, rcSlider, Notifications, axiosInstance, axios) { 'use strict';
|
|
6
6
|
|
|
7
7
|
var React__default = 'default' in React ? React['default'] : React;
|
|
8
8
|
var styled__default = 'default' in styled ? styled['default'] : styled;
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
raf = raf && Object.prototype.hasOwnProperty.call(raf, 'default') ? raf['default'] : raf;
|
|
16
16
|
AutosizeInput = AutosizeInput && Object.prototype.hasOwnProperty.call(AutosizeInput, 'default') ? AutosizeInput['default'] : AutosizeInput;
|
|
17
17
|
var Notifications__default = 'default' in Notifications ? Notifications['default'] : Notifications;
|
|
18
|
+
axiosInstance = axiosInstance && Object.prototype.hasOwnProperty.call(axiosInstance, 'default') ? axiosInstance['default'] : axiosInstance;
|
|
18
19
|
axios = axios && Object.prototype.hasOwnProperty.call(axios, 'default') ? axios['default'] : axios;
|
|
19
20
|
|
|
20
21
|
function ownKeys(object, enumerableOnly) {
|
|
@@ -43,6 +44,387 @@
|
|
|
43
44
|
return target;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
function _regeneratorRuntime() {
|
|
48
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
49
|
+
|
|
50
|
+
_regeneratorRuntime = function () {
|
|
51
|
+
return exports;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
var exports = {},
|
|
55
|
+
Op = Object.prototype,
|
|
56
|
+
hasOwn = Op.hasOwnProperty,
|
|
57
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
58
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
59
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
60
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
61
|
+
|
|
62
|
+
function define(obj, key, value) {
|
|
63
|
+
return Object.defineProperty(obj, key, {
|
|
64
|
+
value: value,
|
|
65
|
+
enumerable: !0,
|
|
66
|
+
configurable: !0,
|
|
67
|
+
writable: !0
|
|
68
|
+
}), obj[key];
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
try {
|
|
72
|
+
define({}, "");
|
|
73
|
+
} catch (err) {
|
|
74
|
+
define = function (obj, key, value) {
|
|
75
|
+
return obj[key] = value;
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
80
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
81
|
+
generator = Object.create(protoGenerator.prototype),
|
|
82
|
+
context = new Context(tryLocsList || []);
|
|
83
|
+
return generator._invoke = function (innerFn, self, context) {
|
|
84
|
+
var state = "suspendedStart";
|
|
85
|
+
return function (method, arg) {
|
|
86
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
87
|
+
|
|
88
|
+
if ("completed" === state) {
|
|
89
|
+
if ("throw" === method) throw arg;
|
|
90
|
+
return doneResult();
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
for (context.method = method, context.arg = arg;;) {
|
|
94
|
+
var delegate = context.delegate;
|
|
95
|
+
|
|
96
|
+
if (delegate) {
|
|
97
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
98
|
+
|
|
99
|
+
if (delegateResult) {
|
|
100
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
101
|
+
return delegateResult;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
106
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
107
|
+
context.dispatchException(context.arg);
|
|
108
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
109
|
+
state = "executing";
|
|
110
|
+
var record = tryCatch(innerFn, self, context);
|
|
111
|
+
|
|
112
|
+
if ("normal" === record.type) {
|
|
113
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
114
|
+
return {
|
|
115
|
+
value: record.arg,
|
|
116
|
+
done: context.done
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
121
|
+
}
|
|
122
|
+
};
|
|
123
|
+
}(innerFn, self, context), generator;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function tryCatch(fn, obj, arg) {
|
|
127
|
+
try {
|
|
128
|
+
return {
|
|
129
|
+
type: "normal",
|
|
130
|
+
arg: fn.call(obj, arg)
|
|
131
|
+
};
|
|
132
|
+
} catch (err) {
|
|
133
|
+
return {
|
|
134
|
+
type: "throw",
|
|
135
|
+
arg: err
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
exports.wrap = wrap;
|
|
141
|
+
var ContinueSentinel = {};
|
|
142
|
+
|
|
143
|
+
function Generator() {}
|
|
144
|
+
|
|
145
|
+
function GeneratorFunction() {}
|
|
146
|
+
|
|
147
|
+
function GeneratorFunctionPrototype() {}
|
|
148
|
+
|
|
149
|
+
var IteratorPrototype = {};
|
|
150
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
151
|
+
return this;
|
|
152
|
+
});
|
|
153
|
+
var getProto = Object.getPrototypeOf,
|
|
154
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
155
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
156
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
157
|
+
|
|
158
|
+
function defineIteratorMethods(prototype) {
|
|
159
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
160
|
+
define(prototype, method, function (arg) {
|
|
161
|
+
return this._invoke(method, arg);
|
|
162
|
+
});
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
167
|
+
function invoke(method, arg, resolve, reject) {
|
|
168
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
169
|
+
|
|
170
|
+
if ("throw" !== record.type) {
|
|
171
|
+
var result = record.arg,
|
|
172
|
+
value = result.value;
|
|
173
|
+
return value && "object" == typeof value && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
174
|
+
invoke("next", value, resolve, reject);
|
|
175
|
+
}, function (err) {
|
|
176
|
+
invoke("throw", err, resolve, reject);
|
|
177
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
178
|
+
result.value = unwrapped, resolve(result);
|
|
179
|
+
}, function (error) {
|
|
180
|
+
return invoke("throw", error, resolve, reject);
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
reject(record.arg);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
var previousPromise;
|
|
188
|
+
|
|
189
|
+
this._invoke = function (method, arg) {
|
|
190
|
+
function callInvokeWithMethodAndArg() {
|
|
191
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
192
|
+
invoke(method, arg, resolve, reject);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
201
|
+
var method = delegate.iterator[context.method];
|
|
202
|
+
|
|
203
|
+
if (undefined === method) {
|
|
204
|
+
if (context.delegate = null, "throw" === context.method) {
|
|
205
|
+
if (delegate.iterator.return && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel;
|
|
206
|
+
context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method");
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return ContinueSentinel;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
213
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
214
|
+
var info = record.arg;
|
|
215
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
function pushTryEntry(locs) {
|
|
219
|
+
var entry = {
|
|
220
|
+
tryLoc: locs[0]
|
|
221
|
+
};
|
|
222
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function resetTryEntry(entry) {
|
|
226
|
+
var record = entry.completion || {};
|
|
227
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function Context(tryLocsList) {
|
|
231
|
+
this.tryEntries = [{
|
|
232
|
+
tryLoc: "root"
|
|
233
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
function values(iterable) {
|
|
237
|
+
if (iterable) {
|
|
238
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
239
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
240
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
241
|
+
|
|
242
|
+
if (!isNaN(iterable.length)) {
|
|
243
|
+
var i = -1,
|
|
244
|
+
next = function next() {
|
|
245
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
246
|
+
|
|
247
|
+
return next.value = undefined, next.done = !0, next;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
return next.next = next;
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
return {
|
|
255
|
+
next: doneResult
|
|
256
|
+
};
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
function doneResult() {
|
|
260
|
+
return {
|
|
261
|
+
value: undefined,
|
|
262
|
+
done: !0
|
|
263
|
+
};
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, define(Gp, "constructor", GeneratorFunctionPrototype), define(GeneratorFunctionPrototype, "constructor", GeneratorFunction), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
267
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
268
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
269
|
+
}, exports.mark = function (genFun) {
|
|
270
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
271
|
+
}, exports.awrap = function (arg) {
|
|
272
|
+
return {
|
|
273
|
+
__await: arg
|
|
274
|
+
};
|
|
275
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
276
|
+
return this;
|
|
277
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
278
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
279
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
280
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
281
|
+
return result.done ? result.value : iter.next();
|
|
282
|
+
});
|
|
283
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
284
|
+
return this;
|
|
285
|
+
}), define(Gp, "toString", function () {
|
|
286
|
+
return "[object Generator]";
|
|
287
|
+
}), exports.keys = function (object) {
|
|
288
|
+
var keys = [];
|
|
289
|
+
|
|
290
|
+
for (var key in object) keys.push(key);
|
|
291
|
+
|
|
292
|
+
return keys.reverse(), function next() {
|
|
293
|
+
for (; keys.length;) {
|
|
294
|
+
var key = keys.pop();
|
|
295
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
return next.done = !0, next;
|
|
299
|
+
};
|
|
300
|
+
}, exports.values = values, Context.prototype = {
|
|
301
|
+
constructor: Context,
|
|
302
|
+
reset: function (skipTempReset) {
|
|
303
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
304
|
+
},
|
|
305
|
+
stop: function () {
|
|
306
|
+
this.done = !0;
|
|
307
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
308
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
309
|
+
return this.rval;
|
|
310
|
+
},
|
|
311
|
+
dispatchException: function (exception) {
|
|
312
|
+
if (this.done) throw exception;
|
|
313
|
+
var context = this;
|
|
314
|
+
|
|
315
|
+
function handle(loc, caught) {
|
|
316
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
320
|
+
var entry = this.tryEntries[i],
|
|
321
|
+
record = entry.completion;
|
|
322
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
323
|
+
|
|
324
|
+
if (entry.tryLoc <= this.prev) {
|
|
325
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
326
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
327
|
+
|
|
328
|
+
if (hasCatch && hasFinally) {
|
|
329
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
330
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
331
|
+
} else if (hasCatch) {
|
|
332
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
333
|
+
} else {
|
|
334
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
335
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
},
|
|
340
|
+
abrupt: function (type, arg) {
|
|
341
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
342
|
+
var entry = this.tryEntries[i];
|
|
343
|
+
|
|
344
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
345
|
+
var finallyEntry = entry;
|
|
346
|
+
break;
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
351
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
352
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
353
|
+
},
|
|
354
|
+
complete: function (record, afterLoc) {
|
|
355
|
+
if ("throw" === record.type) throw record.arg;
|
|
356
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
357
|
+
},
|
|
358
|
+
finish: function (finallyLoc) {
|
|
359
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
360
|
+
var entry = this.tryEntries[i];
|
|
361
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
catch: function (tryLoc) {
|
|
365
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
366
|
+
var entry = this.tryEntries[i];
|
|
367
|
+
|
|
368
|
+
if (entry.tryLoc === tryLoc) {
|
|
369
|
+
var record = entry.completion;
|
|
370
|
+
|
|
371
|
+
if ("throw" === record.type) {
|
|
372
|
+
var thrown = record.arg;
|
|
373
|
+
resetTryEntry(entry);
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
return thrown;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
throw new Error("illegal catch attempt");
|
|
381
|
+
},
|
|
382
|
+
delegateYield: function (iterable, resultName, nextLoc) {
|
|
383
|
+
return this.delegate = {
|
|
384
|
+
iterator: values(iterable),
|
|
385
|
+
resultName: resultName,
|
|
386
|
+
nextLoc: nextLoc
|
|
387
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
388
|
+
}
|
|
389
|
+
}, exports;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
393
|
+
try {
|
|
394
|
+
var info = gen[key](arg);
|
|
395
|
+
var value = info.value;
|
|
396
|
+
} catch (error) {
|
|
397
|
+
reject(error);
|
|
398
|
+
return;
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
if (info.done) {
|
|
402
|
+
resolve(value);
|
|
403
|
+
} else {
|
|
404
|
+
Promise.resolve(value).then(_next, _throw);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
function _asyncToGenerator(fn) {
|
|
409
|
+
return function () {
|
|
410
|
+
var self = this,
|
|
411
|
+
args = arguments;
|
|
412
|
+
return new Promise(function (resolve, reject) {
|
|
413
|
+
var gen = fn.apply(self, args);
|
|
414
|
+
|
|
415
|
+
function _next(value) {
|
|
416
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
function _throw(err) {
|
|
420
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
_next(undefined);
|
|
424
|
+
});
|
|
425
|
+
};
|
|
426
|
+
}
|
|
427
|
+
|
|
46
428
|
function _classCallCheck(instance, Constructor) {
|
|
47
429
|
if (!(instance instanceof Constructor)) {
|
|
48
430
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -10232,25 +10614,39 @@
|
|
|
10232
10614
|
};
|
|
10233
10615
|
var GenderSelector$1 = themed(GenderSelector);
|
|
10234
10616
|
|
|
10235
|
-
var
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10617
|
+
var ConditionSelector = function ConditionSelector(_ref) {
|
|
10618
|
+
var onChange = _ref.onChange,
|
|
10619
|
+
graphApi = _ref.graphApi,
|
|
10620
|
+
itemRenderer = _ref.itemRenderer,
|
|
10621
|
+
getGraphQuery = _ref.getGraphQuery,
|
|
10622
|
+
requestInstance = _ref.requestInstance;
|
|
10623
|
+
|
|
10624
|
+
var resultProcessor = function resultProcessor(result) {
|
|
10625
|
+
return result.data.data.conditions_list;
|
|
10626
|
+
};
|
|
10627
|
+
|
|
10628
|
+
return /*#__PURE__*/React__default.createElement(LuxityGraphQLMultiselector, {
|
|
10629
|
+
title: "Condition",
|
|
10630
|
+
queryId: "getCondition",
|
|
10631
|
+
baseQueryLimit: 10,
|
|
10632
|
+
baseClass: "style-selector",
|
|
10633
|
+
identifier: "style-selector",
|
|
10634
|
+
searchPlaceHolder: "Search Condition",
|
|
10635
|
+
category: "",
|
|
10636
|
+
onChange: onChange,
|
|
10637
|
+
graphApi: graphApi,
|
|
10638
|
+
itemRenderer: itemRenderer,
|
|
10639
|
+
getGraphQuery: getGraphQuery,
|
|
10640
|
+
resultProcessor: resultProcessor,
|
|
10641
|
+
requestInstance: requestInstance
|
|
10642
|
+
});
|
|
10643
|
+
};
|
|
10644
|
+
|
|
10645
|
+
ConditionSelector.defaultProps = {
|
|
10646
|
+
itemRenderer: ItemRenderer
|
|
10647
|
+
};
|
|
10252
10648
|
|
|
10253
|
-
var _templateObject$L, _templateObject2$9, _templateObject3$4
|
|
10649
|
+
var _templateObject$L, _templateObject2$9, _templateObject3$4;
|
|
10254
10650
|
var UNISEX$1 = genders.UNISEX;
|
|
10255
10651
|
var AddInterestContainer = styled__default.div(_templateObject$L || (_templateObject$L = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
|
|
10256
10652
|
return props.theme.marginPaddings[6];
|
|
@@ -10271,26 +10667,6 @@
|
|
|
10271
10667
|
}, function (props) {
|
|
10272
10668
|
return props.theme.marginPaddings[2];
|
|
10273
10669
|
});
|
|
10274
|
-
var AddInterestButton = styled__default.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n font-weight: bold;\n color: ", ";\n border: 1px solid ", ";\n padding-top: ", ";\n margin-bottom: ", ";\n padding-left: 1.5rem;\n width: 95%;\n font-size: 17px;\n"])), function (props) {
|
|
10275
|
-
return props.theme.colors.darkerGray;
|
|
10276
|
-
}, function (props) {
|
|
10277
|
-
return props.theme.colors.borderColor;
|
|
10278
|
-
}, function (props) {
|
|
10279
|
-
return props.theme.marginPaddings[0];
|
|
10280
|
-
}, function (props) {
|
|
10281
|
-
return props.theme.marginPaddings[2];
|
|
10282
|
-
});
|
|
10283
|
-
var AddInterestButtonContainer = styled__default.div(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n display: flex;\n\n #add-icon {\n margin-bottom: 1.5rem;\n\n svg {\n width: 15px;\n }\n }\n"])));
|
|
10284
|
-
|
|
10285
|
-
var AddIcon = function AddIcon(_ref) {
|
|
10286
|
-
var onClick = _ref.onClick,
|
|
10287
|
-
id = _ref.id;
|
|
10288
|
-
return /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
10289
|
-
id: id,
|
|
10290
|
-
onClick: onClick
|
|
10291
|
-
}, /*#__PURE__*/React__default.createElement(SvgWrapper, null, /*#__PURE__*/React__default.createElement(Add, null)));
|
|
10292
|
-
};
|
|
10293
|
-
|
|
10294
10670
|
var defaultState = {
|
|
10295
10671
|
category_type: null,
|
|
10296
10672
|
brands: [],
|
|
@@ -10300,6 +10676,7 @@
|
|
|
10300
10676
|
max_price: null,
|
|
10301
10677
|
styles: [],
|
|
10302
10678
|
gender: [],
|
|
10679
|
+
condition: [],
|
|
10303
10680
|
request: _objectSpread2({}, request),
|
|
10304
10681
|
isCategoriesShown: false
|
|
10305
10682
|
};
|
|
@@ -10376,6 +10753,14 @@
|
|
|
10376
10753
|
});
|
|
10377
10754
|
});
|
|
10378
10755
|
|
|
10756
|
+
_defineProperty(_assertThisInitialized(_this), "onConditionChanged", function (conditions) {
|
|
10757
|
+
_this.setState({
|
|
10758
|
+
condition: conditions.map(function (condition) {
|
|
10759
|
+
return condition.id;
|
|
10760
|
+
})
|
|
10761
|
+
});
|
|
10762
|
+
});
|
|
10763
|
+
|
|
10379
10764
|
_defineProperty(_assertThisInitialized(_this), "payloadIsValid", function () {
|
|
10380
10765
|
// price/shoe-size always have initial values as soon as category is set
|
|
10381
10766
|
var category_type = _this.state.category_type;
|
|
@@ -10399,7 +10784,8 @@
|
|
|
10399
10784
|
styles = _this$state.styles,
|
|
10400
10785
|
category_type = _this$state.category_type,
|
|
10401
10786
|
requestState = _this$state.request,
|
|
10402
|
-
gender = _this$state.gender
|
|
10787
|
+
gender = _this$state.gender,
|
|
10788
|
+
condition = _this$state.condition;
|
|
10403
10789
|
var payloadGender = gender[0];
|
|
10404
10790
|
|
|
10405
10791
|
if (gender.length > 1 || !gender.length) {
|
|
@@ -10412,6 +10798,7 @@
|
|
|
10412
10798
|
min_price: min_price,
|
|
10413
10799
|
max_price: max_price,
|
|
10414
10800
|
styles: styles,
|
|
10801
|
+
condition: condition,
|
|
10415
10802
|
gender: payloadGender,
|
|
10416
10803
|
request: requestState
|
|
10417
10804
|
};
|
|
@@ -10434,8 +10821,8 @@
|
|
|
10434
10821
|
}, _this.handleRequestError);
|
|
10435
10822
|
});
|
|
10436
10823
|
|
|
10437
|
-
_defineProperty(_assertThisInitialized(_this), "handleRequestError", function (
|
|
10438
|
-
var data =
|
|
10824
|
+
_defineProperty(_assertThisInitialized(_this), "handleRequestError", function (_ref) {
|
|
10825
|
+
var data = _ref.data;
|
|
10439
10826
|
|
|
10440
10827
|
_this.setState({
|
|
10441
10828
|
request: _objectSpread2({}, request)
|
|
@@ -10453,6 +10840,8 @@
|
|
|
10453
10840
|
|
|
10454
10841
|
_defineProperty(_assertThisInitialized(_this), "resetState", function () {
|
|
10455
10842
|
_this.setState(_objectSpread2({}, defaultState));
|
|
10843
|
+
|
|
10844
|
+
_this.props.onCancel();
|
|
10456
10845
|
});
|
|
10457
10846
|
|
|
10458
10847
|
_defineProperty(_assertThisInitialized(_this), "handleGenderChange", function (isChecked, gender) {
|
|
@@ -10477,12 +10866,11 @@
|
|
|
10477
10866
|
getBrandsGraphQuery = _this$props.getBrandsGraphQuery,
|
|
10478
10867
|
getStylesGraphQuery = _this$props.getStylesGraphQuery,
|
|
10479
10868
|
getShoesGraphQuery = _this$props.getShoesGraphQuery,
|
|
10480
|
-
defaultShoeSizeType = _this$props.defaultShoeSizeType
|
|
10481
|
-
|
|
10482
|
-
|
|
10483
|
-
|
|
10484
|
-
|
|
10485
|
-
})), _this.state.isCategoriesShown && /*#__PURE__*/React__default.createElement(AddInterestContainer, null, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(CatSelectorParagraph, null, "Select the catergory that interests you"), /*#__PURE__*/React__default.createElement(CategoryInterestSelector, {
|
|
10869
|
+
defaultShoeSizeType = _this$props.defaultShoeSizeType,
|
|
10870
|
+
getConditionsGraphQuery = _this$props.getConditionsGraphQuery;
|
|
10871
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10872
|
+
className: "interests__section-wrapper"
|
|
10873
|
+
}, /*#__PURE__*/React__default.createElement(AddInterestContainer, null, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(CatSelectorParagraph, null, "Select the category that interests you"), /*#__PURE__*/React__default.createElement(CategoryInterestSelector, {
|
|
10486
10874
|
category: category_type,
|
|
10487
10875
|
onCategoryChange: _this.onCategoryChanged
|
|
10488
10876
|
}), category_type ? /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(GenderSelector$1, {
|
|
@@ -10508,6 +10896,11 @@
|
|
|
10508
10896
|
requestInstance: requestInstance,
|
|
10509
10897
|
graphApi: "".concat(baseGraphApi, "?id=getStyles"),
|
|
10510
10898
|
getGraphQuery: getStylesGraphQuery
|
|
10899
|
+
}), /*#__PURE__*/React__default.createElement(ConditionSelector, {
|
|
10900
|
+
onChange: _this.onConditionChanged,
|
|
10901
|
+
requestInstance: requestInstance,
|
|
10902
|
+
graphApi: "".concat(baseGraphApi, "?id=getCondition"),
|
|
10903
|
+
getGraphQuery: getConditionsGraphQuery
|
|
10511
10904
|
})) : null, /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10512
10905
|
className: "fl-right"
|
|
10513
10906
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -10528,7 +10921,7 @@
|
|
|
10528
10921
|
|
|
10529
10922
|
_this.resetState();
|
|
10530
10923
|
}
|
|
10531
|
-
}, fetching ? 'SAVING' : 'SAVE')))))));
|
|
10924
|
+
}, fetching ? 'SAVING' : 'SAVE'))))))));
|
|
10532
10925
|
});
|
|
10533
10926
|
|
|
10534
10927
|
_this.state = _objectSpread2({}, defaultState);
|
|
@@ -10550,7 +10943,9 @@
|
|
|
10550
10943
|
}, media.xs);
|
|
10551
10944
|
|
|
10552
10945
|
var MyInterestTitleHeading = function MyInterestTitleHeading() {
|
|
10553
|
-
return /*#__PURE__*/React__default.createElement(
|
|
10946
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10947
|
+
className: "interests__title"
|
|
10948
|
+
}, "Category Interests"), /*#__PURE__*/React__default.createElement(MyInterestTitleHeadingContainer, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10554
10949
|
className: "heading-title-section"
|
|
10555
10950
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10556
10951
|
className: "heading-title"
|
|
@@ -10566,18 +10961,650 @@
|
|
|
10566
10961
|
className: "heading-title"
|
|
10567
10962
|
}, "Shoe Size")), /*#__PURE__*/React__default.createElement("div", {
|
|
10568
10963
|
className: "heading-title-empty"
|
|
10569
|
-
}));
|
|
10964
|
+
})));
|
|
10570
10965
|
};
|
|
10571
10966
|
|
|
10572
10967
|
var MyInterestTitleHeading$1 = themed(MyInterestTitleHeading);
|
|
10573
10968
|
|
|
10574
10969
|
var _templateObject$N;
|
|
10575
|
-
var
|
|
10970
|
+
var MyInterestTitleHeadingContainer$1 = styled__default.div(_templateObject$N || (_templateObject$N = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n\n .heading-title-section {\n display: flex;\n justify-content: space-between;\n width: 95%;\n }\n\n .heading-title {\n color: ", ";\n font-weight: bold;\n flex-basis: calc(100% / 6);\n margin-left: ", ";\n padding-bottom: 0;\n }\n\n .heading-title-empty {\n flex-basis: 5%;\n margin-left: 1rem;\n }\n\n @media (max-width: ", ") {\n display: none;\n }\n"])), function (props) {
|
|
10576
10971
|
return props.theme.colors.primary;
|
|
10972
|
+
}, function (props) {
|
|
10973
|
+
return props.theme.marginPaddings[1];
|
|
10974
|
+
}, media.xs);
|
|
10975
|
+
|
|
10976
|
+
var MyProductInterestTitleHeading = function MyProductInterestTitleHeading() {
|
|
10977
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10978
|
+
className: "interests__title"
|
|
10979
|
+
}, "Product Interests"), /*#__PURE__*/React__default.createElement(MyInterestTitleHeadingContainer$1, null, /*#__PURE__*/React__default.createElement("div", {
|
|
10980
|
+
className: "heading-title-section"
|
|
10981
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
10982
|
+
className: "heading-title"
|
|
10983
|
+
}, "Brand"), /*#__PURE__*/React__default.createElement("div", {
|
|
10984
|
+
className: "heading-title"
|
|
10985
|
+
}, "Model"), /*#__PURE__*/React__default.createElement("div", {
|
|
10986
|
+
className: "heading-title"
|
|
10987
|
+
}, "Material")), /*#__PURE__*/React__default.createElement("div", {
|
|
10988
|
+
className: "heading-title-empty"
|
|
10989
|
+
})));
|
|
10990
|
+
};
|
|
10991
|
+
|
|
10992
|
+
var MyProductInterestTitleHeading$1 = themed(MyProductInterestTitleHeading);
|
|
10993
|
+
|
|
10994
|
+
var Add = (function (props) {
|
|
10995
|
+
return /*#__PURE__*/React__default.createElement("svg", _extends({
|
|
10996
|
+
width: "23",
|
|
10997
|
+
height: "23",
|
|
10998
|
+
viewBox: "0 0 23 23",
|
|
10999
|
+
fill: "none",
|
|
11000
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
11001
|
+
}, props), /*#__PURE__*/React__default.createElement("path", {
|
|
11002
|
+
d: "M0 11.5H23",
|
|
11003
|
+
stroke: "#000000",
|
|
11004
|
+
strokeWidth: "1.8"
|
|
11005
|
+
}), /*#__PURE__*/React__default.createElement("path", {
|
|
11006
|
+
d: "M11.5 0L11.5 23",
|
|
11007
|
+
stroke: "#000000",
|
|
11008
|
+
strokeWidth: "1.8"
|
|
11009
|
+
}));
|
|
11010
|
+
});
|
|
11011
|
+
|
|
11012
|
+
var _excluded$8 = ["children"];
|
|
11013
|
+
|
|
11014
|
+
var DropdownSelector = function DropdownSelector(_ref) {
|
|
11015
|
+
var selectedOption = _ref.selectedOption,
|
|
11016
|
+
onOptionChange = _ref.onOptionChange,
|
|
11017
|
+
options = _ref.options,
|
|
11018
|
+
isSearchable = _ref.isSearchable,
|
|
11019
|
+
placeholder = _ref.placeholder,
|
|
11020
|
+
name = _ref.name,
|
|
11021
|
+
showSearchIcon = _ref.showSearchIcon,
|
|
11022
|
+
isDisabled = _ref.isDisabled;
|
|
11023
|
+
var customComponents = {
|
|
11024
|
+
DropdownIndicator: function DropdownIndicator() {
|
|
11025
|
+
return null;
|
|
11026
|
+
},
|
|
11027
|
+
ValueContainer: function ValueContainer(_ref2) {
|
|
11028
|
+
var children = _ref2.children,
|
|
11029
|
+
props = _objectWithoutProperties(_ref2, _excluded$8);
|
|
11030
|
+
|
|
11031
|
+
return /*#__PURE__*/React__default.createElement("div", _extends({
|
|
11032
|
+
style: {
|
|
11033
|
+
position: 'relative'
|
|
11034
|
+
}
|
|
11035
|
+
}, props), showSearchIcon && /*#__PURE__*/React__default.createElement("div", {
|
|
11036
|
+
style: {
|
|
11037
|
+
position: 'absolute',
|
|
11038
|
+
left: '12px',
|
|
11039
|
+
top: '50%',
|
|
11040
|
+
transform: 'translateY(-50%)',
|
|
11041
|
+
pointerEvents: 'none'
|
|
11042
|
+
}
|
|
11043
|
+
}, /*#__PURE__*/React__default.createElement(Search, null)), /*#__PURE__*/React__default.createElement("div", {
|
|
11044
|
+
style: {
|
|
11045
|
+
marginLeft: showSearchIcon ? '32px' : '12px'
|
|
11046
|
+
}
|
|
11047
|
+
}, children));
|
|
11048
|
+
}
|
|
11049
|
+
};
|
|
11050
|
+
var customStyles = {
|
|
11051
|
+
control: function control(provided) {
|
|
11052
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11053
|
+
minWidth: '200px',
|
|
11054
|
+
width: '100%',
|
|
11055
|
+
boxShadow: 'none',
|
|
11056
|
+
border: '1px solid #ccc'
|
|
11057
|
+
});
|
|
11058
|
+
},
|
|
11059
|
+
valueContainer: function valueContainer(provided) {
|
|
11060
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11061
|
+
padding: '8px 12px'
|
|
11062
|
+
});
|
|
11063
|
+
},
|
|
11064
|
+
dropdownIndicator: function dropdownIndicator() {
|
|
11065
|
+
return {
|
|
11066
|
+
display: 'none'
|
|
11067
|
+
};
|
|
11068
|
+
},
|
|
11069
|
+
placeholder: function placeholder(provided) {
|
|
11070
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11071
|
+
fontWeight: 'bold',
|
|
11072
|
+
fontSize: '14px',
|
|
11073
|
+
paddingTop: '4px',
|
|
11074
|
+
color: '#999',
|
|
11075
|
+
minWidth: '200px'
|
|
11076
|
+
});
|
|
11077
|
+
},
|
|
11078
|
+
input: function input(provided) {
|
|
11079
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11080
|
+
margin: '0',
|
|
11081
|
+
padding: '0',
|
|
11082
|
+
fontWeight: 'bold',
|
|
11083
|
+
fontSize: '14px',
|
|
11084
|
+
minWidth: '200px',
|
|
11085
|
+
maxWidth: '100%'
|
|
11086
|
+
});
|
|
11087
|
+
},
|
|
11088
|
+
singleValue: function singleValue(provided) {
|
|
11089
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11090
|
+
fontWeight: 'bold',
|
|
11091
|
+
fontSize: '14px',
|
|
11092
|
+
whiteSpace: 'normal',
|
|
11093
|
+
overflow: 'visible',
|
|
11094
|
+
textOverflow: 'unset',
|
|
11095
|
+
maxWidth: 'none'
|
|
11096
|
+
});
|
|
11097
|
+
},
|
|
11098
|
+
indicatorSeparator: function indicatorSeparator() {
|
|
11099
|
+
return {
|
|
11100
|
+
display: 'none'
|
|
11101
|
+
};
|
|
11102
|
+
},
|
|
11103
|
+
menu: function menu(provided) {
|
|
11104
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11105
|
+
zIndex: 9999,
|
|
11106
|
+
backgroundColor: 'white'
|
|
11107
|
+
});
|
|
11108
|
+
},
|
|
11109
|
+
menuList: function menuList(provided) {
|
|
11110
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11111
|
+
padding: '0',
|
|
11112
|
+
'::-webkit-scrollbar': {
|
|
11113
|
+
width: '8px'
|
|
11114
|
+
},
|
|
11115
|
+
'::-webkit-scrollbar-track': {
|
|
11116
|
+
background: '#f1f1f1'
|
|
11117
|
+
},
|
|
11118
|
+
'::-webkit-scrollbar-thumb': {
|
|
11119
|
+
background: '#888',
|
|
11120
|
+
borderRadius: '4px'
|
|
11121
|
+
},
|
|
11122
|
+
'::-webkit-scrollbar-thumb:hover': {
|
|
11123
|
+
background: '#555'
|
|
11124
|
+
}
|
|
11125
|
+
});
|
|
11126
|
+
},
|
|
11127
|
+
option: function option(provided, state) {
|
|
11128
|
+
return _objectSpread2(_objectSpread2({}, provided), {}, {
|
|
11129
|
+
color: state.isFocused ? 'white' : 'black',
|
|
11130
|
+
backgroundColor: state.isFocused || state.isSelected ? 'black' : 'white',
|
|
11131
|
+
cursor: 'pointer',
|
|
11132
|
+
padding: '8px 12px',
|
|
11133
|
+
'&:active': {
|
|
11134
|
+
backgroundColor: 'black'
|
|
11135
|
+
}
|
|
11136
|
+
}, state.isSelected && {
|
|
11137
|
+
backgroundColor: 'black',
|
|
11138
|
+
color: 'white'
|
|
11139
|
+
});
|
|
11140
|
+
}
|
|
11141
|
+
};
|
|
11142
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
11143
|
+
style: {
|
|
11144
|
+
width: '100%'
|
|
11145
|
+
}
|
|
11146
|
+
}, /*#__PURE__*/React__default.createElement(index$1, {
|
|
11147
|
+
value: selectedOption,
|
|
11148
|
+
onChange: onOptionChange,
|
|
11149
|
+
options: options,
|
|
11150
|
+
isSearchable: isSearchable,
|
|
11151
|
+
name: name,
|
|
11152
|
+
placeholder: placeholder,
|
|
11153
|
+
components: customComponents,
|
|
11154
|
+
styles: customStyles,
|
|
11155
|
+
isDisabled: isDisabled
|
|
11156
|
+
}));
|
|
11157
|
+
};
|
|
11158
|
+
|
|
11159
|
+
DropdownSelector.defaultProps = {
|
|
11160
|
+
isSearchable: false,
|
|
11161
|
+
selectedOption: null,
|
|
11162
|
+
name: '',
|
|
11163
|
+
placeholder: '',
|
|
11164
|
+
showSearchIcon: true,
|
|
11165
|
+
isDisabled: false
|
|
11166
|
+
};
|
|
11167
|
+
|
|
11168
|
+
var _templateObject$O, _templateObject2$a;
|
|
11169
|
+
var AddInterestContainer$1 = styled__default.div(_templateObject$O || (_templateObject$O = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n border: 1px solid ", ";\n padding: ", ";\n"])), function (props) {
|
|
11170
|
+
return props.theme.marginPaddings[6];
|
|
11171
|
+
}, function (props) {
|
|
11172
|
+
return props.theme.colors.borderColor;
|
|
11173
|
+
}, function (props) {
|
|
11174
|
+
return props.theme.marginPaddings[6];
|
|
11175
|
+
});
|
|
11176
|
+
var SaveAndCancelButtonContainer$1 = styled__default.div(_templateObject2$a || (_templateObject2$a = _taggedTemplateLiteral(["\n margin-top: ", ";\n\n @media (max-width: ", ") {\n .fl-right__item {\n flex-direction: column;\n margin-right: 0;\n margin-left: ", ";\n }\n\n button {\n margin-bottom: ", ";\n }\n }\n"])), function (props) {
|
|
11177
|
+
return props.theme.marginPaddings[6];
|
|
11178
|
+
}, media.xs, function (props) {
|
|
11179
|
+
return props.theme.marginPaddings[0];
|
|
11180
|
+
}, function (props) {
|
|
11181
|
+
return props.theme.marginPaddings[1];
|
|
11182
|
+
});
|
|
11183
|
+
|
|
11184
|
+
var AddProductInterest = function AddProductInterest(_ref) {
|
|
11185
|
+
var baseGraphApi = _ref.baseGraphApi,
|
|
11186
|
+
getBrandsGraphQuery = _ref.getBrandsGraphQuery,
|
|
11187
|
+
getModelsGraphQuery = _ref.getModelsGraphQuery,
|
|
11188
|
+
getMaterialsGraphQuery = _ref.getMaterialsGraphQuery,
|
|
11189
|
+
onCancel = _ref.onCancel,
|
|
11190
|
+
requestInstance = _ref.requestInstance,
|
|
11191
|
+
addLuxityProductInterestApi = _ref.addLuxityProductInterestApi,
|
|
11192
|
+
onSubmitSuccess = _ref.onSubmitSuccess;
|
|
11193
|
+
|
|
11194
|
+
var _useState = React.useState([]),
|
|
11195
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
11196
|
+
brands = _useState2[0],
|
|
11197
|
+
setBrands = _useState2[1];
|
|
11198
|
+
|
|
11199
|
+
var _useState3 = React.useState([]),
|
|
11200
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
11201
|
+
models = _useState4[0],
|
|
11202
|
+
setModels = _useState4[1];
|
|
11203
|
+
|
|
11204
|
+
var _useState5 = React.useState([]),
|
|
11205
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
11206
|
+
materials = _useState6[0],
|
|
11207
|
+
setMaterials = _useState6[1];
|
|
11208
|
+
|
|
11209
|
+
var _useState7 = React.useState(null),
|
|
11210
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
11211
|
+
selectedBrand = _useState8[0],
|
|
11212
|
+
setSelectedBrand = _useState8[1];
|
|
11213
|
+
|
|
11214
|
+
var _useState9 = React.useState(null),
|
|
11215
|
+
_useState10 = _slicedToArray(_useState9, 2),
|
|
11216
|
+
selectedModel = _useState10[0],
|
|
11217
|
+
setSelectedModel = _useState10[1];
|
|
11218
|
+
|
|
11219
|
+
var _useState11 = React.useState(null),
|
|
11220
|
+
_useState12 = _slicedToArray(_useState11, 2),
|
|
11221
|
+
selectedMaterial = _useState12[0],
|
|
11222
|
+
setSelectedMaterial = _useState12[1];
|
|
11223
|
+
|
|
11224
|
+
var fetchBrands = React.useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
11225
|
+
var _response$data, _response$data$data, _response$data$data$l, response, formattedBrands;
|
|
11226
|
+
|
|
11227
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
11228
|
+
while (1) {
|
|
11229
|
+
switch (_context.prev = _context.next) {
|
|
11230
|
+
case 0:
|
|
11231
|
+
_context.prev = 0;
|
|
11232
|
+
_context.next = 3;
|
|
11233
|
+
return axiosInstance.post("".concat(baseGraphApi, "?id=getBrands"), {
|
|
11234
|
+
query: getBrandsGraphQuery(1000, 1, 'id|desc')
|
|
11235
|
+
});
|
|
11236
|
+
|
|
11237
|
+
case 3:
|
|
11238
|
+
response = _context.sent;
|
|
11239
|
+
|
|
11240
|
+
if (response !== null && response !== void 0 && (_response$data = response.data) !== null && _response$data !== void 0 && (_response$data$data = _response$data.data) !== null && _response$data$data !== void 0 && (_response$data$data$l = _response$data$data.luxity_brands) !== null && _response$data$data$l !== void 0 && _response$data$data$l.data) {
|
|
11241
|
+
formattedBrands = response.data.data.luxity_brands.data.map(function (brand) {
|
|
11242
|
+
return {
|
|
11243
|
+
value: brand.id,
|
|
11244
|
+
label: brand.name
|
|
11245
|
+
};
|
|
11246
|
+
});
|
|
11247
|
+
setBrands(formattedBrands);
|
|
11248
|
+
}
|
|
11249
|
+
|
|
11250
|
+
_context.next = 10;
|
|
11251
|
+
break;
|
|
11252
|
+
|
|
11253
|
+
case 7:
|
|
11254
|
+
_context.prev = 7;
|
|
11255
|
+
_context.t0 = _context["catch"](0);
|
|
11256
|
+
error(_context.t0.message);
|
|
11257
|
+
|
|
11258
|
+
case 10:
|
|
11259
|
+
case "end":
|
|
11260
|
+
return _context.stop();
|
|
11261
|
+
}
|
|
11262
|
+
}
|
|
11263
|
+
}, _callee, null, [[0, 7]]);
|
|
11264
|
+
})), [baseGraphApi, getBrandsGraphQuery]);
|
|
11265
|
+
var fetchModels = React.useCallback( /*#__PURE__*/function () {
|
|
11266
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(brandId) {
|
|
11267
|
+
var _response$data2, _response$data2$data, _response$data2$data$, response, formattedModels;
|
|
11268
|
+
|
|
11269
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
11270
|
+
while (1) {
|
|
11271
|
+
switch (_context2.prev = _context2.next) {
|
|
11272
|
+
case 0:
|
|
11273
|
+
_context2.prev = 0;
|
|
11274
|
+
_context2.next = 3;
|
|
11275
|
+
return axiosInstance.post("".concat(baseGraphApi, "?id=getModels"), {
|
|
11276
|
+
query: getModelsGraphQuery(brandId)
|
|
11277
|
+
});
|
|
11278
|
+
|
|
11279
|
+
case 3:
|
|
11280
|
+
response = _context2.sent;
|
|
11281
|
+
|
|
11282
|
+
if (response !== null && response !== void 0 && (_response$data2 = response.data) !== null && _response$data2 !== void 0 && (_response$data2$data = _response$data2.data) !== null && _response$data2$data !== void 0 && (_response$data2$data$ = _response$data2$data.luxity_models) !== null && _response$data2$data$ !== void 0 && _response$data2$data$.data) {
|
|
11283
|
+
formattedModels = response.data.data.luxity_models.data.map(function (model) {
|
|
11284
|
+
return {
|
|
11285
|
+
value: model.id,
|
|
11286
|
+
label: model.name
|
|
11287
|
+
};
|
|
11288
|
+
});
|
|
11289
|
+
setModels(formattedModels);
|
|
11290
|
+
}
|
|
11291
|
+
|
|
11292
|
+
_context2.next = 10;
|
|
11293
|
+
break;
|
|
11294
|
+
|
|
11295
|
+
case 7:
|
|
11296
|
+
_context2.prev = 7;
|
|
11297
|
+
_context2.t0 = _context2["catch"](0);
|
|
11298
|
+
error(_context2.t0.message);
|
|
11299
|
+
|
|
11300
|
+
case 10:
|
|
11301
|
+
case "end":
|
|
11302
|
+
return _context2.stop();
|
|
11303
|
+
}
|
|
11304
|
+
}
|
|
11305
|
+
}, _callee2, null, [[0, 7]]);
|
|
11306
|
+
}));
|
|
11307
|
+
|
|
11308
|
+
return function (_x) {
|
|
11309
|
+
return _ref3.apply(this, arguments);
|
|
11310
|
+
};
|
|
11311
|
+
}(), [baseGraphApi, getModelsGraphQuery]);
|
|
11312
|
+
var fetchMaterials = React.useCallback( /*#__PURE__*/function () {
|
|
11313
|
+
var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(brandId) {
|
|
11314
|
+
var _response$data3, _response$data3$data, _response$data3$data$, response, formattedMaterials;
|
|
11315
|
+
|
|
11316
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
11317
|
+
while (1) {
|
|
11318
|
+
switch (_context3.prev = _context3.next) {
|
|
11319
|
+
case 0:
|
|
11320
|
+
_context3.prev = 0;
|
|
11321
|
+
_context3.next = 3;
|
|
11322
|
+
return axiosInstance.post("".concat(baseGraphApi, "?id=getMaterials"), {
|
|
11323
|
+
query: getMaterialsGraphQuery(brandId)
|
|
11324
|
+
});
|
|
11325
|
+
|
|
11326
|
+
case 3:
|
|
11327
|
+
response = _context3.sent;
|
|
11328
|
+
|
|
11329
|
+
if (response !== null && response !== void 0 && (_response$data3 = response.data) !== null && _response$data3 !== void 0 && (_response$data3$data = _response$data3.data) !== null && _response$data3$data !== void 0 && (_response$data3$data$ = _response$data3$data.luxity_materials) !== null && _response$data3$data$ !== void 0 && _response$data3$data$.data) {
|
|
11330
|
+
formattedMaterials = response.data.data.luxity_materials.data.map(function (material) {
|
|
11331
|
+
return {
|
|
11332
|
+
value: material.id,
|
|
11333
|
+
label: material.name
|
|
11334
|
+
};
|
|
11335
|
+
});
|
|
11336
|
+
setMaterials(formattedMaterials);
|
|
11337
|
+
}
|
|
11338
|
+
|
|
11339
|
+
_context3.next = 10;
|
|
11340
|
+
break;
|
|
11341
|
+
|
|
11342
|
+
case 7:
|
|
11343
|
+
_context3.prev = 7;
|
|
11344
|
+
_context3.t0 = _context3["catch"](0);
|
|
11345
|
+
error(_context3.t0.message);
|
|
11346
|
+
|
|
11347
|
+
case 10:
|
|
11348
|
+
case "end":
|
|
11349
|
+
return _context3.stop();
|
|
11350
|
+
}
|
|
11351
|
+
}
|
|
11352
|
+
}, _callee3, null, [[0, 7]]);
|
|
11353
|
+
}));
|
|
11354
|
+
|
|
11355
|
+
return function (_x2) {
|
|
11356
|
+
return _ref4.apply(this, arguments);
|
|
11357
|
+
};
|
|
11358
|
+
}(), [baseGraphApi, getMaterialsGraphQuery]);
|
|
11359
|
+
React.useEffect(function () {
|
|
11360
|
+
fetchBrands();
|
|
11361
|
+
}, [fetchBrands]);
|
|
11362
|
+
React.useEffect(function () {
|
|
11363
|
+
if (selectedBrand) {
|
|
11364
|
+
setSelectedModel(null);
|
|
11365
|
+
setSelectedMaterial(null);
|
|
11366
|
+
fetchModels(selectedBrand.value);
|
|
11367
|
+
fetchMaterials(selectedBrand.value);
|
|
11368
|
+
} else {
|
|
11369
|
+
setModels([]);
|
|
11370
|
+
setMaterials([]);
|
|
11371
|
+
setSelectedModel(null);
|
|
11372
|
+
setSelectedMaterial(null);
|
|
11373
|
+
}
|
|
11374
|
+
}, [selectedBrand, fetchModels, fetchMaterials]);
|
|
11375
|
+
|
|
11376
|
+
var onBrandChange = function onBrandChange(selectedOption) {
|
|
11377
|
+
setSelectedBrand(selectedOption);
|
|
11378
|
+
};
|
|
11379
|
+
|
|
11380
|
+
var onModelChange = function onModelChange(selectedOption) {
|
|
11381
|
+
setSelectedModel(selectedOption);
|
|
11382
|
+
};
|
|
11383
|
+
|
|
11384
|
+
var onMaterialChange = function onMaterialChange(selectedOption) {
|
|
11385
|
+
setSelectedMaterial(selectedOption);
|
|
11386
|
+
};
|
|
11387
|
+
|
|
11388
|
+
var submitInterest = function submitInterest() {
|
|
11389
|
+
var payload = {
|
|
11390
|
+
luxity_brand_id: selectedBrand === null || selectedBrand === void 0 ? void 0 : selectedBrand.value,
|
|
11391
|
+
luxity_model_id: selectedModel === null || selectedModel === void 0 ? void 0 : selectedModel.value,
|
|
11392
|
+
luxity_material_id: selectedMaterial === null || selectedMaterial === void 0 ? void 0 : selectedMaterial.value
|
|
11393
|
+
};
|
|
11394
|
+
simpleRequest(requestInstance, addLuxityProductInterestApi, method.POST, payload, function () {
|
|
11395
|
+
onSubmitSuccess(_objectSpread2({}, payload));
|
|
11396
|
+
onCancel();
|
|
11397
|
+
}, handleRequestError);
|
|
11398
|
+
};
|
|
11399
|
+
|
|
11400
|
+
var handleRequestError = function handleRequestError(_ref5) {
|
|
11401
|
+
var data = _ref5.data;
|
|
11402
|
+
var errorMessages = Object.keys(data).map(function (key) {
|
|
11403
|
+
return data[key];
|
|
11404
|
+
}).flat();
|
|
11405
|
+
error(errorMessages.map(function (message, key) {
|
|
11406
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
11407
|
+
key: "error-".concat(key)
|
|
11408
|
+
}, message);
|
|
11409
|
+
}));
|
|
11410
|
+
};
|
|
11411
|
+
|
|
11412
|
+
var onReset = function onReset() {
|
|
11413
|
+
onCancel();
|
|
11414
|
+
setSelectedModel(null);
|
|
11415
|
+
setSelectedMaterial(null);
|
|
11416
|
+
setSelectedBrand(null);
|
|
11417
|
+
setBrands([]);
|
|
11418
|
+
setMaterials([]);
|
|
11419
|
+
setModels([]);
|
|
11420
|
+
};
|
|
11421
|
+
|
|
11422
|
+
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11423
|
+
className: "interests__section-wrapper"
|
|
11424
|
+
}, /*#__PURE__*/React__default.createElement(AddInterestContainer$1, null, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11425
|
+
className: "interests__select-option"
|
|
11426
|
+
}, /*#__PURE__*/React__default.createElement(DropdownSelector, {
|
|
11427
|
+
name: "brand",
|
|
11428
|
+
selectedOption: selectedBrand,
|
|
11429
|
+
options: brands,
|
|
11430
|
+
isSearchable: true,
|
|
11431
|
+
onOptionChange: onBrandChange,
|
|
11432
|
+
placeholder: "Select Brand"
|
|
11433
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
11434
|
+
className: "interests__select-option"
|
|
11435
|
+
}, /*#__PURE__*/React__default.createElement(DropdownSelector, {
|
|
11436
|
+
name: "model",
|
|
11437
|
+
selectedOption: selectedModel,
|
|
11438
|
+
options: models,
|
|
11439
|
+
isSearchable: true,
|
|
11440
|
+
onOptionChange: onModelChange,
|
|
11441
|
+
placeholder: "Select Model",
|
|
11442
|
+
isDisabled: !selectedBrand && !models.length
|
|
11443
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
11444
|
+
className: "interests__select-option"
|
|
11445
|
+
}, /*#__PURE__*/React__default.createElement(DropdownSelector, {
|
|
11446
|
+
name: "material",
|
|
11447
|
+
selectedOption: selectedMaterial,
|
|
11448
|
+
options: materials,
|
|
11449
|
+
isSearchable: true,
|
|
11450
|
+
onOptionChange: onMaterialChange,
|
|
11451
|
+
placeholder: "Select Material",
|
|
11452
|
+
isDisabled: !selectedBrand && !materials.length
|
|
11453
|
+
}))), /*#__PURE__*/React__default.createElement(SaveAndCancelButtonContainer$1, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11454
|
+
className: "fl-right"
|
|
11455
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11456
|
+
className: "fl-right__item"
|
|
11457
|
+
}, /*#__PURE__*/React__default.createElement(SecondaryButton$1, {
|
|
11458
|
+
type: "button",
|
|
11459
|
+
onClick: onReset
|
|
11460
|
+
}, "CANCEL")), /*#__PURE__*/React__default.createElement("div", {
|
|
11461
|
+
className: "fl-right__item"
|
|
11462
|
+
}, /*#__PURE__*/React__default.createElement(PrimaryButton$1, {
|
|
11463
|
+
"data-qe-id": "add-interest-btn",
|
|
11464
|
+
disabled: !selectedBrand,
|
|
11465
|
+
type: "button",
|
|
11466
|
+
onClick: submitInterest
|
|
11467
|
+
}, "SAVE"))))))));
|
|
11468
|
+
};
|
|
11469
|
+
|
|
11470
|
+
var AddProductInterest$1 = themed(AddProductInterest);
|
|
11471
|
+
|
|
11472
|
+
var _templateObject$P, _templateObject2$b, _templateObject3$5;
|
|
11473
|
+
|
|
11474
|
+
var TrashIcon$1 = function TrashIcon(_ref) {
|
|
11475
|
+
var onClick = _ref.onClick,
|
|
11476
|
+
id = _ref.id;
|
|
11477
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
11478
|
+
onClick: onClick,
|
|
11479
|
+
id: id
|
|
11480
|
+
}, /*#__PURE__*/React__default.createElement(SvgWrapper, null, /*#__PURE__*/React__default.createElement(Trash, null)));
|
|
11481
|
+
};
|
|
11482
|
+
|
|
11483
|
+
var LuxityProductInterestItem = /*#__PURE__*/function (_React$Component) {
|
|
11484
|
+
_inherits(LuxityProductInterestItem, _React$Component);
|
|
11485
|
+
|
|
11486
|
+
var _super = _createSuper(LuxityProductInterestItem);
|
|
11487
|
+
|
|
11488
|
+
function LuxityProductInterestItem(props) {
|
|
11489
|
+
var _this;
|
|
11490
|
+
|
|
11491
|
+
_classCallCheck(this, LuxityProductInterestItem);
|
|
11492
|
+
|
|
11493
|
+
_this = _super.call(this, props);
|
|
11494
|
+
|
|
11495
|
+
_defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
|
|
11496
|
+
var id = _this.props.data.id;
|
|
11497
|
+
|
|
11498
|
+
_this.setState({
|
|
11499
|
+
delete: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
11500
|
+
fetching: true
|
|
11501
|
+
})
|
|
11502
|
+
});
|
|
11503
|
+
|
|
11504
|
+
var url = _this.props.deleteInterestApi(id);
|
|
11505
|
+
|
|
11506
|
+
simpleRequest(_this.props.requestInstance, url, method.DELETE, null, function () {
|
|
11507
|
+
_this.setState({
|
|
11508
|
+
delete: _objectSpread2(_objectSpread2({}, request), {}, {
|
|
11509
|
+
success: true
|
|
11510
|
+
})
|
|
11511
|
+
});
|
|
11512
|
+
|
|
11513
|
+
_this.props.onDeleted(_this.props.data);
|
|
11514
|
+
}, function () {
|
|
11515
|
+
return _this.setState({
|
|
11516
|
+
delete: _objectSpread2({}, request)
|
|
11517
|
+
});
|
|
11518
|
+
});
|
|
11519
|
+
});
|
|
11520
|
+
|
|
11521
|
+
_defineProperty(_assertThisInitialized(_this), "render", function () {
|
|
11522
|
+
var _data$luxity_model, _data$luxity_material;
|
|
11523
|
+
|
|
11524
|
+
var data = _this.props.data;
|
|
11525
|
+
var success = _this.state.delete.success;
|
|
11526
|
+
return /*#__PURE__*/React__default.createElement(InterestItemContainer$1, {
|
|
11527
|
+
id: "interests__item--".concat(data.id),
|
|
11528
|
+
className: "".concat(success && 'interests__item--hiding')
|
|
11529
|
+
}, /*#__PURE__*/React__default.createElement(InterestItemContent$1, {
|
|
11530
|
+
className: "interest-item__container ".concat(_this.props.className || '')
|
|
11531
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
11532
|
+
className: "interest-item__container_heading"
|
|
11533
|
+
}, /*#__PURE__*/React__default.createElement(InterestItemTitle$1, null, "Brand:"), /*#__PURE__*/React__default.createElement("div", {
|
|
11534
|
+
id: "interest-item-".concat(data.id, "__category"),
|
|
11535
|
+
className: "list-items"
|
|
11536
|
+
}, data.luxity_brand.name)), /*#__PURE__*/React__default.createElement("div", {
|
|
11537
|
+
className: "interest-item__container_heading"
|
|
11538
|
+
}, /*#__PURE__*/React__default.createElement(InterestItemTitle$1, null, "Model:"), /*#__PURE__*/React__default.createElement("div", {
|
|
11539
|
+
className: "list-items"
|
|
11540
|
+
}, data === null || data === void 0 ? void 0 : (_data$luxity_model = data.luxity_model) === null || _data$luxity_model === void 0 ? void 0 : _data$luxity_model.name)), /*#__PURE__*/React__default.createElement("div", {
|
|
11541
|
+
className: "interest-item__container_heading"
|
|
11542
|
+
}, /*#__PURE__*/React__default.createElement(InterestItemTitle$1, null, "Material:"), /*#__PURE__*/React__default.createElement("div", {
|
|
11543
|
+
className: "list-items"
|
|
11544
|
+
}, data === null || data === void 0 ? void 0 : (_data$luxity_material = data.luxity_material) === null || _data$luxity_material === void 0 ? void 0 : _data$luxity_material.name))), /*#__PURE__*/React__default.createElement(TrashIcon$1, {
|
|
11545
|
+
id: "interest-".concat(data.id, "-delete-button"),
|
|
11546
|
+
onClick: function onClick() {
|
|
11547
|
+
if (!_this.state.delete.fetching) {
|
|
11548
|
+
_this.deleteInterestItem();
|
|
11549
|
+
}
|
|
11550
|
+
}
|
|
11551
|
+
}));
|
|
11552
|
+
});
|
|
11553
|
+
|
|
11554
|
+
_this.state = {
|
|
11555
|
+
delete: _objectSpread2({}, request)
|
|
11556
|
+
};
|
|
11557
|
+
return _this;
|
|
11558
|
+
}
|
|
11559
|
+
|
|
11560
|
+
return _createClass(LuxityProductInterestItem);
|
|
11561
|
+
}(React__default.Component);
|
|
11562
|
+
|
|
11563
|
+
var InterestItemTitle$1 = styled__default.div(_templateObject$P || (_templateObject$P = _taggedTemplateLiteral(["\n font-weight: bold;\n display: none;\n\n @media (max-width: ", ") {\n display: inline;\n }\n"])), media.xs);
|
|
11564
|
+
var InterestItemContainer$1 = styled__default.div(_templateObject2$b || (_templateObject2$b = _taggedTemplateLiteral(["\n display: flex;\n\n .no-shoe-size-section {\n @media (max-width: ", ") {\n display: none;\n }\n }\n"])), media.xs);
|
|
11565
|
+
var InterestItemContent$1 = styled__default.div(_templateObject3$5 || (_templateObject3$5 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n width: 95%;\n height: 100%;\n border: 1px solid ", ";\n padding: 1rem;\n margin-bottom: ", ";\n\n .interest-item__container_heading {\n color: ", ";\n flex-basis: calc(100% / 6);\n margin-top: 0.3rem;\n\n @media (max-width: ", ") {\n display: inline;\n }\n }\n\n .list-items {\n display: inline-flex;\n flex-direction: column;\n\n @media (max-width: ", ") {\n margin-left: ", ";\n }\n }\n\n @media (max-width: ", ") {\n flex-direction: column;\n }\n"])), function (props) {
|
|
11566
|
+
return props.theme.colors.borderColor;
|
|
11567
|
+
}, function (props) {
|
|
11568
|
+
return props.theme.marginPaddings[1];
|
|
11569
|
+
}, function (props) {
|
|
11570
|
+
return props.theme.colors.darkerGray;
|
|
11571
|
+
}, media.xs, media.xs, function (props) {
|
|
11572
|
+
return props.theme.marginPaddings[0];
|
|
11573
|
+
}, media.xs);
|
|
11574
|
+
var ThemedInterestItem$1 = themed(LuxityProductInterestItem);
|
|
11575
|
+
/**
|
|
11576
|
+
* The Interest Item view shows the selected interest configuration,
|
|
11577
|
+
* and gives user control to delete it.
|
|
11578
|
+
*/
|
|
11579
|
+
|
|
11580
|
+
var LuxityProductInterestItem$1 = (function (props) {
|
|
11581
|
+
return /*#__PURE__*/React__default.createElement(ThemedInterestItem$1, props);
|
|
10577
11582
|
});
|
|
11583
|
+
|
|
11584
|
+
var _templateObject$Q, _templateObject2$c;
|
|
11585
|
+
var AddInterestButtonContainer = styled__default.div(_templateObject$Q || (_templateObject$Q = _taggedTemplateLiteral(["\n display: flex;\n width: 100%;\n\n #add-icon {\n margin-bottom: 1.5rem;\n\n svg {\n width: 15px;\n }\n }\n"])));
|
|
11586
|
+
|
|
11587
|
+
var AddIcon = function AddIcon(_ref) {
|
|
11588
|
+
var onClick = _ref.onClick,
|
|
11589
|
+
id = _ref.id;
|
|
11590
|
+
return /*#__PURE__*/React__default.createElement(IconWrapper, {
|
|
11591
|
+
id: id,
|
|
11592
|
+
onClick: onClick
|
|
11593
|
+
}, /*#__PURE__*/React__default.createElement(SvgWrapper, null, /*#__PURE__*/React__default.createElement(Add, null)));
|
|
11594
|
+
};
|
|
11595
|
+
|
|
10578
11596
|
var AccountIcon = themed(function () {
|
|
10579
|
-
return /*#__PURE__*/React__default.createElement(SvgWrapper
|
|
11597
|
+
return /*#__PURE__*/React__default.createElement(SvgWrapper, null, /*#__PURE__*/React__default.createElement(Account, null));
|
|
10580
11598
|
});
|
|
11599
|
+
var AddInterestButton = themed(styled__default.div(_templateObject2$c || (_templateObject2$c = _taggedTemplateLiteral(["\n font-weight: bold;\n color: ", ";\n border: 1px solid ", ";\n padding-top: ", ";\n margin-bottom: ", ";\n padding-left: 1.5rem;\n width: 95%;\n font-size: 17px;\n"])), function (props) {
|
|
11600
|
+
return props.theme.colors.darkerGray;
|
|
11601
|
+
}, function (props) {
|
|
11602
|
+
return props.theme.colors.borderColor;
|
|
11603
|
+
}, function (props) {
|
|
11604
|
+
return props.theme.marginPaddings[0];
|
|
11605
|
+
}, function (props) {
|
|
11606
|
+
return props.theme.marginPaddings[2];
|
|
11607
|
+
}));
|
|
10581
11608
|
|
|
10582
11609
|
/**
|
|
10583
11610
|
* Page/View that controls the viewing and Adding of Luxity Interests
|
|
@@ -10594,11 +11621,18 @@
|
|
|
10594
11621
|
|
|
10595
11622
|
_this = _super.call(this, props);
|
|
10596
11623
|
|
|
11624
|
+
_defineProperty(_assertThisInitialized(_this), "categoryInterestType", 'CATEGORY');
|
|
11625
|
+
|
|
11626
|
+
_defineProperty(_assertThisInitialized(_this), "productInterestType", 'PRODUCT');
|
|
11627
|
+
|
|
10597
11628
|
_defineProperty(_assertThisInitialized(_this), "setInterests", function (data) {
|
|
10598
|
-
var
|
|
11629
|
+
var _data$data$data = data.data.data,
|
|
11630
|
+
interests = _data$data$data.interests.data,
|
|
11631
|
+
luxity_product_interests = _data$data$data.luxity_product_interests.data;
|
|
10599
11632
|
|
|
10600
11633
|
_this.setState({
|
|
10601
|
-
interests: interests
|
|
11634
|
+
interests: interests,
|
|
11635
|
+
luxity_product_interests: luxity_product_interests
|
|
10602
11636
|
});
|
|
10603
11637
|
});
|
|
10604
11638
|
|
|
@@ -10625,6 +11659,17 @@
|
|
|
10625
11659
|
});
|
|
10626
11660
|
});
|
|
10627
11661
|
|
|
11662
|
+
_defineProperty(_assertThisInitialized(_this), "onDeleteLuxityProductInterest", function (deleteItem) {
|
|
11663
|
+
_this.setState(function (prevState) {
|
|
11664
|
+
var newLuxityProductInterests = prevState.luxity_product_interests.filter(function (item) {
|
|
11665
|
+
return item.id !== deleteItem.id;
|
|
11666
|
+
});
|
|
11667
|
+
return _objectSpread2(_objectSpread2({}, prevState), {}, {
|
|
11668
|
+
luxity_product_interests: newLuxityProductInterests
|
|
11669
|
+
});
|
|
11670
|
+
});
|
|
11671
|
+
});
|
|
11672
|
+
|
|
10628
11673
|
_defineProperty(_assertThisInitialized(_this), "triggerInterestRequest", function () {
|
|
10629
11674
|
var _this$props = _this.props,
|
|
10630
11675
|
requestInstance = _this$props.requestInstance,
|
|
@@ -10635,8 +11680,22 @@
|
|
|
10635
11680
|
});
|
|
10636
11681
|
});
|
|
10637
11682
|
|
|
11683
|
+
_defineProperty(_assertThisInitialized(_this), "onAddInterestClick", function (interestType) {
|
|
11684
|
+
_this.setState({
|
|
11685
|
+
interestType: interestType
|
|
11686
|
+
});
|
|
11687
|
+
});
|
|
11688
|
+
|
|
11689
|
+
_defineProperty(_assertThisInitialized(_this), "onCancel", function () {
|
|
11690
|
+
_this.setState({
|
|
11691
|
+
interestType: null
|
|
11692
|
+
});
|
|
11693
|
+
});
|
|
11694
|
+
|
|
10638
11695
|
_this.state = {
|
|
10639
|
-
interests: []
|
|
11696
|
+
interests: [],
|
|
11697
|
+
luxity_product_interests: [],
|
|
11698
|
+
interestType: null
|
|
10640
11699
|
};
|
|
10641
11700
|
return _this;
|
|
10642
11701
|
}
|
|
@@ -10646,7 +11705,9 @@
|
|
|
10646
11705
|
value: function render() {
|
|
10647
11706
|
var _this2 = this;
|
|
10648
11707
|
|
|
10649
|
-
var
|
|
11708
|
+
var _this$state = this.state,
|
|
11709
|
+
interests = _this$state.interests,
|
|
11710
|
+
luxity_product_interests = _this$state.luxity_product_interests;
|
|
10650
11711
|
var _this$props2 = this.props,
|
|
10651
11712
|
addInterestApi = _this$props2.addInterestApi,
|
|
10652
11713
|
requestInstance = _this$props2.requestInstance,
|
|
@@ -10658,7 +11719,12 @@
|
|
|
10658
11719
|
setSchedule = _this$props2.setSchedule,
|
|
10659
11720
|
getSchedule = _this$props2.getSchedule,
|
|
10660
11721
|
interestsTitle = _this$props2.interestsTitle,
|
|
10661
|
-
defaultShoeSizeType = _this$props2.defaultShoeSizeType
|
|
11722
|
+
defaultShoeSizeType = _this$props2.defaultShoeSizeType,
|
|
11723
|
+
getMaterialsGraphQuery = _this$props2.getMaterialsGraphQuery,
|
|
11724
|
+
getModelsGraphQuery = _this$props2.getModelsGraphQuery,
|
|
11725
|
+
addLuxityProductInterestApi = _this$props2.addLuxityProductInterestApi,
|
|
11726
|
+
deleteLuxityProductInterestApi = _this$props2.deleteLuxityProductInterestApi,
|
|
11727
|
+
getConditionsGraphQuery = _this$props2.getConditionsGraphQuery;
|
|
10662
11728
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10663
11729
|
className: "interests"
|
|
10664
11730
|
}, /*#__PURE__*/React__default.createElement(Notifications__default, {
|
|
@@ -10677,7 +11743,23 @@
|
|
|
10677
11743
|
setSchedule: setSchedule
|
|
10678
11744
|
});
|
|
10679
11745
|
}
|
|
10680
|
-
}), /*#__PURE__*/React__default.createElement(
|
|
11746
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
11747
|
+
className: "interests__add-button"
|
|
11748
|
+
}, /*#__PURE__*/React__default.createElement(AddInterestButtonContainer, {
|
|
11749
|
+
onClick: function onClick() {
|
|
11750
|
+
return _this2.onAddInterestClick(_this2.categoryInterestType);
|
|
11751
|
+
}
|
|
11752
|
+
}, /*#__PURE__*/React__default.createElement(AddInterestButton, null, "Category Interest"), /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
11753
|
+
id: "add-icon"
|
|
11754
|
+
})), /*#__PURE__*/React__default.createElement(AddInterestButtonContainer, {
|
|
11755
|
+
onClick: function onClick() {
|
|
11756
|
+
return _this2.onAddInterestClick(_this2.productInterestType);
|
|
11757
|
+
}
|
|
11758
|
+
}, /*#__PURE__*/React__default.createElement(AddInterestButton, null, "Product Interest"), /*#__PURE__*/React__default.createElement(AddIcon, {
|
|
11759
|
+
id: "add-icon"
|
|
11760
|
+
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
11761
|
+
className: "interests__section"
|
|
11762
|
+
}, this.state.interestType === this.categoryInterestType && /*#__PURE__*/React__default.createElement(AddInterest$1, {
|
|
10681
11763
|
addInterestApi: addInterestApi,
|
|
10682
11764
|
onSubmitSuccess: function onSubmitSuccess(interest) {
|
|
10683
11765
|
return _this2.onInterestSubmitSuccess(interest);
|
|
@@ -10687,7 +11769,29 @@
|
|
|
10687
11769
|
getBrandsGraphQuery: getBrandsGraphQuery,
|
|
10688
11770
|
getStylesGraphQuery: getStylesGraphQuery,
|
|
10689
11771
|
getShoesGraphQuery: getShoesGraphQuery,
|
|
10690
|
-
defaultShoeSizeType: defaultShoeSizeType
|
|
11772
|
+
defaultShoeSizeType: defaultShoeSizeType,
|
|
11773
|
+
addInterestTitle: "Category Interest",
|
|
11774
|
+
onCancel: this.onCancel,
|
|
11775
|
+
getConditionsGraphQuery: getConditionsGraphQuery
|
|
11776
|
+
}), this.state.interestType === this.productInterestType && /*#__PURE__*/React__default.createElement(AddProductInterest$1, {
|
|
11777
|
+
addLuxityProductInterestApi: addLuxityProductInterestApi,
|
|
11778
|
+
onSubmitSuccess: function onSubmitSuccess(interest) {
|
|
11779
|
+
return _this2.onInterestSubmitSuccess(interest);
|
|
11780
|
+
},
|
|
11781
|
+
requestInstance: requestInstance,
|
|
11782
|
+
baseGraphApi: baseGraphApi,
|
|
11783
|
+
getBrandsGraphQuery: getBrandsGraphQuery,
|
|
11784
|
+
addInterestTitle: "Product Interest",
|
|
11785
|
+
onCancel: this.onCancel,
|
|
11786
|
+
getModelsGraphQuery: getModelsGraphQuery,
|
|
11787
|
+
getMaterialsGraphQuery: getMaterialsGraphQuery
|
|
11788
|
+
})), (luxity_product_interests === null || luxity_product_interests === void 0 ? void 0 : luxity_product_interests.length) > 0 ? /*#__PURE__*/React__default.createElement(MyProductInterestTitleHeading$1, null) : '', !!(luxity_product_interests !== null && luxity_product_interests !== void 0 && luxity_product_interests.length) && luxity_product_interests.map(function (item) {
|
|
11789
|
+
return /*#__PURE__*/React__default.createElement(LuxityProductInterestItem$1, {
|
|
11790
|
+
deleteInterestApi: deleteLuxityProductInterestApi,
|
|
11791
|
+
requestInstance: requestInstance,
|
|
11792
|
+
onDeleted: _this2.onDeleteLuxityProductInterest,
|
|
11793
|
+
data: item
|
|
11794
|
+
});
|
|
10691
11795
|
}), interests.length > 0 ? /*#__PURE__*/React__default.createElement(MyInterestTitleHeading$1, null) : '', /*#__PURE__*/React__default.createElement(LuxityPageReady, {
|
|
10692
11796
|
getRequestPromise: function getRequestPromise() {
|
|
10693
11797
|
return _this2.triggerInterestRequest();
|
|
@@ -10718,8 +11822,8 @@
|
|
|
10718
11822
|
defaultShoeSizeType: shoeSizeTypes.eu.value
|
|
10719
11823
|
};
|
|
10720
11824
|
|
|
10721
|
-
var _templateObject$
|
|
10722
|
-
var HeaderWrapper = styled__default.div(_templateObject$
|
|
11825
|
+
var _templateObject$R, _templateObject2$d, _templateObject3$6, _templateObject4$3, _templateObject5$1, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22, _templateObject23, _templateObject24, _templateObject25, _templateObject26, _templateObject27, _templateObject28, _templateObject29, _templateObject30;
|
|
11826
|
+
var HeaderWrapper = styled__default.div(_templateObject$R || (_templateObject$R = _taggedTemplateLiteral(["\n {\n display: inline-block;\n background-color: ", ";\n position: relative;\n width: 100%;\n\n .header__search-container,\n .header__search-input {\n background-color: ", ";\n }\n\n .header__search-container {\n max-width: ", ";\n margin: 0 auto;\n padding: ", " 5%;\n }\n }\n"])), function (props) {
|
|
10723
11827
|
return props.theme.rareStepColors.ntrlMin;
|
|
10724
11828
|
}, function (props) {
|
|
10725
11829
|
return props.theme.rareStepColors.primary;
|
|
@@ -10728,16 +11832,16 @@
|
|
|
10728
11832
|
}, function (props) {
|
|
10729
11833
|
return props.theme.marginPaddings[1];
|
|
10730
11834
|
});
|
|
10731
|
-
var PageContainer = styled__default.div(_templateObject2$
|
|
11835
|
+
var PageContainer = styled__default.div(_templateObject2$d || (_templateObject2$d = _taggedTemplateLiteral(["\n {\n max-width: ", ";\n margin: 0 auto;\n width: 100%;\n padding: 0 5%;\n display: flex;\n justify-content: space-between;\n }\n"])), function (props) {
|
|
10732
11836
|
return props.theme.rareStepPageSizes.container;
|
|
10733
11837
|
});
|
|
10734
|
-
var HeaderContainer = styled__default.div(_templateObject3$
|
|
11838
|
+
var HeaderContainer = styled__default.div(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteral(["\n {\n display: flex;\n justify-content: space-between;\n padding: ", " 5%;\n max-width: ", ";\n margin: 0 auto;\n width: 100%;\n }\n"])), function (props) {
|
|
10735
11839
|
return props.theme.marginPaddings[1];
|
|
10736
11840
|
}, function (props) {
|
|
10737
11841
|
return props.theme.rareStepPageSizes.container;
|
|
10738
11842
|
});
|
|
10739
|
-
var LogoFigure = styled__default.div(_templateObject4$
|
|
10740
|
-
var LogoImage = styled__default.img(_templateObject5$
|
|
11843
|
+
var LogoFigure = styled__default.div(_templateObject4$3 || (_templateObject4$3 = _taggedTemplateLiteral(["\n {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n"])));
|
|
11844
|
+
var LogoImage = styled__default.img(_templateObject5$1 || (_templateObject5$1 = _taggedTemplateLiteral(["\n {\n width: 160px;\n cursor: pointer;\n }\n"])));
|
|
10741
11845
|
var CurrencyFlagIcon = styled__default.img(_templateObject6 || (_templateObject6 = _taggedTemplateLiteral(["\n {\n width: 25px;\n height: 15px;\n margin-top: 9px;\n margin-right: 10px;\n }\n"])));
|
|
10742
11846
|
var SellToUsLink = styled__default.a(_templateObject7 || (_templateObject7 = _taggedTemplateLiteral(["\n {\n color: ", ";\n font-weight: ", ";\n font-size: ", ";\n text-transform: uppercase;\n letter-spacing: 1px;\n cursor: pointer;\n text-decoration: none;\n font-style: italic;\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: none;\n }\n }\n"])), function (props) {
|
|
10743
11847
|
return props.theme.rareStepColors.secondary;
|
|
@@ -10846,16 +11950,16 @@
|
|
|
10846
11950
|
return props.theme.rareStepColors.ntrl40;
|
|
10847
11951
|
});
|
|
10848
11952
|
|
|
10849
|
-
var _templateObject$
|
|
10850
|
-
var HeaderWrapper$1 = styled__default.div(_templateObject$
|
|
11953
|
+
var _templateObject$S, _templateObject2$e, _templateObject3$7, _templateObject4$4, _templateObject5$2, _templateObject6$1, _templateObject7$1, _templateObject8$1, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1, _templateObject14$1, _templateObject15$1, _templateObject16$1, _templateObject17$1, _templateObject18$1, _templateObject19$1, _templateObject20$1, _templateObject21$1, _templateObject22$1, _templateObject23$1;
|
|
11954
|
+
var HeaderWrapper$1 = styled__default.div(_templateObject$S || (_templateObject$S = _taggedTemplateLiteral(["\n {\n display: flex;\n background-color: ", ";\n position: relative;\n width: 100%;\n justify-content: space-between;\n align-items: center;\n padding: ", " 5%;\n }\n"])), function (props) {
|
|
10851
11955
|
return props.theme.rareStepColors.ntrlMin;
|
|
10852
11956
|
}, function (props) {
|
|
10853
11957
|
return props.theme.marginPaddings[3];
|
|
10854
11958
|
});
|
|
10855
|
-
var Icon = styled__default.img(_templateObject2$
|
|
10856
|
-
var Logo = styled__default.img(_templateObject3$
|
|
10857
|
-
var IconWrapper$1 = styled__default.div(_templateObject4$
|
|
10858
|
-
var NavigationWrapper = styled__default.div(_templateObject5$
|
|
11959
|
+
var Icon = styled__default.img(_templateObject2$e || (_templateObject2$e = _taggedTemplateLiteral(["\n {\n width: 30px;\n height: 30px;\n cursor: pointer;\n }\n"])));
|
|
11960
|
+
var Logo = styled__default.img(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteral(["\n {\n width: 140px;\n height: auto;\n margin-left: 30px;\n cursor: pointer;\n }\n"])));
|
|
11961
|
+
var IconWrapper$1 = styled__default.div(_templateObject4$4 || (_templateObject4$4 = _taggedTemplateLiteral(["\n {\n display: flex;\n width: auto;\n height: 25px;\n\n .search-icon,\n .cart-icon {\n width: 100%;\n height: 100%;\n }\n\n .cart-icon {\n margin-left: 10px;\n }\n }\n"])));
|
|
11962
|
+
var NavigationWrapper = styled__default.div(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteral(["\n padding: ", ";\n"])), function (props) {
|
|
10859
11963
|
return props.theme.marginPaddings[1];
|
|
10860
11964
|
});
|
|
10861
11965
|
var NavigationWrapperTitle = styled__default.div(_templateObject6$1 || (_templateObject6$1 = _taggedTemplateLiteral(["\n font-size: 16px;\n"])));
|
|
@@ -10929,8 +12033,8 @@
|
|
|
10929
12033
|
return props.theme.marginPaddings[1];
|
|
10930
12034
|
});
|
|
10931
12035
|
|
|
10932
|
-
var _templateObject$
|
|
10933
|
-
var FooterWrapper = styled__default.div(_templateObject$
|
|
12036
|
+
var _templateObject$T, _templateObject2$f, _templateObject3$8, _templateObject4$5, _templateObject5$3, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$2, _templateObject10$2, _templateObject11$2, _templateObject12$2, _templateObject13$2, _templateObject14$2, _templateObject15$2, _templateObject16$2;
|
|
12037
|
+
var FooterWrapper = styled__default.div(_templateObject$T || (_templateObject$T = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n font-weight: ", ";\n padding-top: ", ";\n font-size: ", ";\n }\n"])), function (props) {
|
|
10934
12038
|
return props.theme.rareStepColors.ntrlMax;
|
|
10935
12039
|
}, function (props) {
|
|
10936
12040
|
return props.theme.rareStepFontWeights.bold;
|
|
@@ -10939,16 +12043,16 @@
|
|
|
10939
12043
|
}, function (props) {
|
|
10940
12044
|
return props.theme.rareStepFontSize.h5;
|
|
10941
12045
|
});
|
|
10942
|
-
var PageContainer$1 = styled__default.div(_templateObject2$
|
|
12046
|
+
var PageContainer$1 = styled__default.div(_templateObject2$f || (_templateObject2$f = _taggedTemplateLiteral(["\n {\n max-width: ", ";\n margin: 0 auto;\n width: 100%;\n padding: 0 5%;\n display: flex;\n justify-content: space-between;\n }\n"])), function (props) {
|
|
10943
12047
|
return props.theme.rareStepPageSizes.container;
|
|
10944
12048
|
});
|
|
10945
|
-
var FooterLinksWrapper = styled__default.div(_templateObject3$
|
|
12049
|
+
var FooterLinksWrapper = styled__default.div(_templateObject3$8 || (_templateObject3$8 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-basis: 70%;\n padding-bottom: ", ";\n }\n"])), function (props) {
|
|
10946
12050
|
return props.theme.marginPaddings[4];
|
|
10947
12051
|
});
|
|
10948
|
-
var FooterLinksContainer = styled__default.div(_templateObject4$
|
|
12052
|
+
var FooterLinksContainer = styled__default.div(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-direction: column;\n flex: 1;\n padding-right: ", ";\n }\n"])), function (props) {
|
|
10949
12053
|
return props.theme.marginPaddings[4];
|
|
10950
12054
|
});
|
|
10951
|
-
var FooterTitleLink = styled__default.a(_templateObject5$
|
|
12055
|
+
var FooterTitleLink = styled__default.a(_templateObject5$3 || (_templateObject5$3 = _taggedTemplateLiteral(["\n {\n text-transform: uppercase;\n color: ", ";\n margin-bottom: ", ";\n cursor: pointer;\n font-weight: ", ";\n font-size: ", ";\n text-decoration: none;\n\n &:hover,\n &:active {\n color: ", ";\n text-decoration: underline;\n }\n }\n"])), function (props) {
|
|
10952
12056
|
return props.theme.rareStepColors.ntrlMin;
|
|
10953
12057
|
}, function (props) {
|
|
10954
12058
|
return props.theme.marginPaddings[1];
|
|
@@ -10995,32 +12099,32 @@
|
|
|
10995
12099
|
var FooterPaymentImage = styled__default.img(_templateObject15$2 || (_templateObject15$2 = _taggedTemplateLiteral(["\n {\n width: 100px;\n height: 30px;\n }\n"])));
|
|
10996
12100
|
var FooterConnectContainer = styled__default.div(_templateObject16$2 || (_templateObject16$2 = _taggedTemplateLiteral(["\n {\n display: flex;\n flex-direction: column;\n }\n"])));
|
|
10997
12101
|
|
|
10998
|
-
var _templateObject$
|
|
10999
|
-
var OptionsRow = styled__default.div(_templateObject$
|
|
11000
|
-
var Options = styled__default.div(_templateObject2$
|
|
12102
|
+
var _templateObject$U, _templateObject2$g;
|
|
12103
|
+
var OptionsRow = styled__default.div(_templateObject$U || (_templateObject$U = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n"])));
|
|
12104
|
+
var Options = styled__default.div(_templateObject2$g || (_templateObject2$g = _taggedTemplateLiteral(["\n display: flex;\n flex-wrap: nowrap;\n flex-direction: row;\n flex-basis: 60%;\n"])));
|
|
11001
12105
|
|
|
11002
|
-
var _templateObject$
|
|
11003
|
-
var SectionContainer = styled__default.div(_templateObject$
|
|
12106
|
+
var _templateObject$V, _templateObject2$h;
|
|
12107
|
+
var SectionContainer = styled__default.div(_templateObject$V || (_templateObject$V = _taggedTemplateLiteral(["\n border-top: flex 1px solid ", ";\n border-top-width: calc(100% - 50px);\n padding: 5px 10px;\n"])), function (props) {
|
|
11004
12108
|
return props.theme.colors.primary;
|
|
11005
12109
|
});
|
|
11006
|
-
var SectionHeading = styled__default.div(_templateObject2$
|
|
12110
|
+
var SectionHeading = styled__default.div(_templateObject2$h || (_templateObject2$h = _taggedTemplateLiteral(["\n padding: 5px 10px;\n"])));
|
|
11007
12111
|
|
|
11008
|
-
var _templateObject$
|
|
11009
|
-
var CommunicationPreferenceContainer = styled__default.div(_templateObject$
|
|
11010
|
-
var EditButtonRow = styled__default.div(_templateObject2$
|
|
11011
|
-
var SubmitButton = styled__default.input(_templateObject3$
|
|
12112
|
+
var _templateObject$W, _templateObject2$i, _templateObject3$9;
|
|
12113
|
+
var CommunicationPreferenceContainer = styled__default.div(_templateObject$W || (_templateObject$W = _taggedTemplateLiteral(["\n border: solid 1px #d1d5dbff;\n margin-bottom: 40px;\n"])));
|
|
12114
|
+
var EditButtonRow = styled__default.div(_templateObject2$i || (_templateObject2$i = _taggedTemplateLiteral(["\n display: flex;\n justify-content: end;\n padding: 10px 5px;\n margin-right: 16px;\n"])));
|
|
12115
|
+
var SubmitButton = styled__default.input(_templateObject3$9 || (_templateObject3$9 = _taggedTemplateLiteral(["\n flex-basis: 15%;\n margin-right: 5px;\n"])));
|
|
11012
12116
|
|
|
11013
|
-
var _templateObject$
|
|
11014
|
-
var FooterWrapper$1 = styled__default.div(_templateObject$
|
|
12117
|
+
var _templateObject$X;
|
|
12118
|
+
var FooterWrapper$1 = styled__default.div(_templateObject$X || (_templateObject$X = _taggedTemplateLiteral(["\n {\n background-color: ", ";\n }\n"])), function (props) {
|
|
11015
12119
|
return props.theme.colors.gray;
|
|
11016
12120
|
});
|
|
11017
12121
|
|
|
11018
|
-
var _templateObject$
|
|
12122
|
+
var _templateObject$Y;
|
|
11019
12123
|
var ALL_ITEM$1 = {
|
|
11020
12124
|
label: 'ALL',
|
|
11021
12125
|
value: 'ALL'
|
|
11022
12126
|
};
|
|
11023
|
-
var StyledMultiselector$1 = styled__default.div(_templateObject$
|
|
12127
|
+
var StyledMultiselector$1 = styled__default.div(_templateObject$Y || (_templateObject$Y = _taggedTemplateLiteral(["\n .multiselector__selected-items,\n .multiselector__selectable-items {\n display: flex;\n flex-flow: no-wrap;\n margin-bottom: 40px;\n .dropdown-select-container {\n width: 100%;\n .dropdown-select {\n &__control {\n border-color: ", ";\n border-radius: 0px;\n background-color: ", ";\n color: ", ";\n }\n &__multi-value {\n background-color: ", ";\n }\n &__multi-value__label {\n color: ", ";\n font-size: 100%;\n }\n &__multi-value__remove {\n svg {\n fill: ", ";\n }\n }\n }\n }\n }\n"])), function (props) {
|
|
11024
12128
|
return props.theme.colors.primary;
|
|
11025
12129
|
}, function (props) {
|
|
11026
12130
|
return props.theme.colors.ntrlMin;
|