@bonlineza/luxity-lib 2.6.2 → 2.7.3

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/InterestItem.js CHANGED
@@ -1,14 +1,12 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components'), require('prop-types'), require('numeral'), require('react-animate-height')) :
3
- typeof define === 'function' && define.amd ? define(['react', 'styled-components', 'prop-types', 'numeral', 'react-animate-height'], factory) :
4
- (global = global || self, global.InterestItem = factory(global.React, global.styled, global.PropTypes, global.numeral, global.AnimateHeight));
5
- }(this, (function (React, styled, PropTypes, numeral, AnimateHeight) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react'), require('styled-components'), require('numeral')) :
3
+ typeof define === 'function' && define.amd ? define(['react', 'styled-components', 'numeral'], factory) :
4
+ (global = global || self, global.InterestItem = factory(global.React, global.styled, global.numeral));
5
+ }(this, (function (React, styled, numeral) { '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;
9
- PropTypes = PropTypes && Object.prototype.hasOwnProperty.call(PropTypes, 'default') ? PropTypes['default'] : PropTypes;
10
9
  numeral = numeral && Object.prototype.hasOwnProperty.call(numeral, 'default') ? numeral['default'] : numeral;
11
- AnimateHeight = AnimateHeight && Object.prototype.hasOwnProperty.call(AnimateHeight, 'default') ? AnimateHeight['default'] : AnimateHeight;
12
10
 
13
11
  function _classCallCheck(instance, Constructor) {
14
12
  if (!(instance instanceof Constructor)) {
@@ -174,1585 +172,6 @@
174
172
  }));
175
173
  }
176
174
 
177
- function _slicedToArray(arr, i) {
178
- return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
179
- }
180
-
181
- function _arrayWithHoles(arr) {
182
- if (Array.isArray(arr)) return arr;
183
- }
184
-
185
- function _iterableToArrayLimit(arr, i) {
186
- if (typeof Symbol === "undefined" || !(Symbol.iterator in Object(arr))) return;
187
- var _arr = [];
188
- var _n = true;
189
- var _d = false;
190
- var _e = undefined;
191
-
192
- try {
193
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
194
- _arr.push(_s.value);
195
-
196
- if (i && _arr.length === i) break;
197
- }
198
- } catch (err) {
199
- _d = true;
200
- _e = err;
201
- } finally {
202
- try {
203
- if (!_n && _i["return"] != null) _i["return"]();
204
- } finally {
205
- if (_d) throw _e;
206
- }
207
- }
208
-
209
- return _arr;
210
- }
211
-
212
- function _unsupportedIterableToArray(o, minLen) {
213
- if (!o) return;
214
- if (typeof o === "string") return _arrayLikeToArray(o, minLen);
215
- var n = Object.prototype.toString.call(o).slice(8, -1);
216
- if (n === "Object" && o.constructor) n = o.constructor.name;
217
- if (n === "Map" || n === "Set") return Array.from(o);
218
- if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
219
- }
220
-
221
- function _arrayLikeToArray(arr, len) {
222
- if (len == null || len > arr.length) len = arr.length;
223
-
224
- for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
225
-
226
- return arr2;
227
- }
228
-
229
- function _nonIterableRest() {
230
- throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
231
- }
232
-
233
- /*!
234
- * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
235
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
236
- */
237
-
238
- function _classCallCheck$1(instance, Constructor) {
239
- if (!(instance instanceof Constructor)) {
240
- throw new TypeError("Cannot call a class as a function");
241
- }
242
- }
243
-
244
- function _defineProperties(target, props) {
245
- for (var i = 0; i < props.length; i++) {
246
- var descriptor = props[i];
247
- descriptor.enumerable = descriptor.enumerable || false;
248
- descriptor.configurable = true;
249
- if ("value" in descriptor) descriptor.writable = true;
250
- Object.defineProperty(target, descriptor.key, descriptor);
251
- }
252
- }
253
-
254
- function _createClass(Constructor, protoProps, staticProps) {
255
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
256
- if (staticProps) _defineProperties(Constructor, staticProps);
257
- return Constructor;
258
- }
259
-
260
- function _defineProperty$1(obj, key, value) {
261
- if (key in obj) {
262
- Object.defineProperty(obj, key, {
263
- value: value,
264
- enumerable: true,
265
- configurable: true,
266
- writable: true
267
- });
268
- } else {
269
- obj[key] = value;
270
- }
271
-
272
- return obj;
273
- }
274
-
275
- function _objectSpread(target) {
276
- for (var i = 1; i < arguments.length; i++) {
277
- var source = arguments[i] != null ? arguments[i] : {};
278
- var ownKeys = Object.keys(source);
279
-
280
- if (typeof Object.getOwnPropertySymbols === 'function') {
281
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
282
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
283
- }));
284
- }
285
-
286
- ownKeys.forEach(function (key) {
287
- _defineProperty$1(target, key, source[key]);
288
- });
289
- }
290
-
291
- return target;
292
- }
293
-
294
- function _slicedToArray$1(arr, i) {
295
- return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _nonIterableRest$1();
296
- }
297
-
298
- function _arrayWithHoles$1(arr) {
299
- if (Array.isArray(arr)) return arr;
300
- }
301
-
302
- function _iterableToArrayLimit$1(arr, i) {
303
- var _arr = [];
304
- var _n = true;
305
- var _d = false;
306
- var _e = undefined;
307
-
308
- try {
309
- for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
310
- _arr.push(_s.value);
311
-
312
- if (i && _arr.length === i) break;
313
- }
314
- } catch (err) {
315
- _d = true;
316
- _e = err;
317
- } finally {
318
- try {
319
- if (!_n && _i["return"] != null) _i["return"]();
320
- } finally {
321
- if (_d) throw _e;
322
- }
323
- }
324
-
325
- return _arr;
326
- }
327
-
328
- function _nonIterableRest$1() {
329
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
330
- }
331
-
332
- var noop = function noop() {};
333
-
334
- var _WINDOW = {};
335
- var _DOCUMENT = {};
336
- var _MUTATION_OBSERVER = null;
337
- var _PERFORMANCE = {
338
- mark: noop,
339
- measure: noop
340
- };
341
-
342
- try {
343
- if (typeof window !== 'undefined') _WINDOW = window;
344
- if (typeof document !== 'undefined') _DOCUMENT = document;
345
- if (typeof MutationObserver !== 'undefined') _MUTATION_OBSERVER = MutationObserver;
346
- if (typeof performance !== 'undefined') _PERFORMANCE = performance;
347
- } catch (e) {}
348
-
349
- var _ref = _WINDOW.navigator || {},
350
- _ref$userAgent = _ref.userAgent,
351
- userAgent = _ref$userAgent === void 0 ? '' : _ref$userAgent;
352
-
353
- var WINDOW = _WINDOW;
354
- var DOCUMENT = _DOCUMENT;
355
- var PERFORMANCE = _PERFORMANCE;
356
- var IS_BROWSER = !!WINDOW.document;
357
- var IS_DOM = !!DOCUMENT.documentElement && !!DOCUMENT.head && typeof DOCUMENT.addEventListener === 'function' && typeof DOCUMENT.createElement === 'function';
358
- var IS_IE = ~userAgent.indexOf('MSIE') || ~userAgent.indexOf('Trident/');
359
-
360
- var NAMESPACE_IDENTIFIER = '___FONT_AWESOME___';
361
- var DEFAULT_FAMILY_PREFIX = 'fa';
362
- var DEFAULT_REPLACEMENT_CLASS = 'svg-inline--fa';
363
- var DATA_FA_I2SVG = 'data-fa-i2svg';
364
- var PRODUCTION = function () {
365
- try {
366
- return process.env.NODE_ENV === 'production';
367
- } catch (e) {
368
- return false;
369
- }
370
- }();
371
- var DUOTONE_CLASSES = {
372
- GROUP: 'group',
373
- SWAP_OPACITY: 'swap-opacity',
374
- PRIMARY: 'primary',
375
- SECONDARY: 'secondary'
376
- };
377
-
378
- var initial = WINDOW.FontAwesomeConfig || {};
379
-
380
- function getAttrConfig(attr) {
381
- var element = DOCUMENT.querySelector('script[' + attr + ']');
382
-
383
- if (element) {
384
- return element.getAttribute(attr);
385
- }
386
- }
387
-
388
- function coerce(val) {
389
- // Getting an empty string will occur if the attribute is set on the HTML tag but without a value
390
- // We'll assume that this is an indication that it should be toggled to true
391
- // For example <script data-search-pseudo-elements src="..."></script>
392
- if (val === '') return true;
393
- if (val === 'false') return false;
394
- if (val === 'true') return true;
395
- return val;
396
- }
397
-
398
- if (DOCUMENT && typeof DOCUMENT.querySelector === 'function') {
399
- var attrs = [['data-family-prefix', 'familyPrefix'], ['data-replacement-class', 'replacementClass'], ['data-auto-replace-svg', 'autoReplaceSvg'], ['data-auto-add-css', 'autoAddCss'], ['data-auto-a11y', 'autoA11y'], ['data-search-pseudo-elements', 'searchPseudoElements'], ['data-observe-mutations', 'observeMutations'], ['data-mutate-approach', 'mutateApproach'], ['data-keep-original-source', 'keepOriginalSource'], ['data-measure-performance', 'measurePerformance'], ['data-show-missing-icons', 'showMissingIcons']];
400
- attrs.forEach(function (_ref) {
401
- var _ref2 = _slicedToArray$1(_ref, 2),
402
- attr = _ref2[0],
403
- key = _ref2[1];
404
-
405
- var val = coerce(getAttrConfig(attr));
406
-
407
- if (val !== undefined && val !== null) {
408
- initial[key] = val;
409
- }
410
- });
411
- }
412
-
413
- var _default = {
414
- familyPrefix: DEFAULT_FAMILY_PREFIX,
415
- replacementClass: DEFAULT_REPLACEMENT_CLASS,
416
- autoReplaceSvg: true,
417
- autoAddCss: true,
418
- autoA11y: true,
419
- searchPseudoElements: false,
420
- observeMutations: true,
421
- mutateApproach: 'async',
422
- keepOriginalSource: true,
423
- measurePerformance: false,
424
- showMissingIcons: true
425
- };
426
-
427
- var _config = _objectSpread({}, _default, initial);
428
-
429
- if (!_config.autoReplaceSvg) _config.observeMutations = false;
430
-
431
- var config = _objectSpread({}, _config);
432
-
433
- WINDOW.FontAwesomeConfig = config;
434
-
435
- var w = WINDOW || {};
436
- if (!w[NAMESPACE_IDENTIFIER]) w[NAMESPACE_IDENTIFIER] = {};
437
- if (!w[NAMESPACE_IDENTIFIER].styles) w[NAMESPACE_IDENTIFIER].styles = {};
438
- if (!w[NAMESPACE_IDENTIFIER].hooks) w[NAMESPACE_IDENTIFIER].hooks = {};
439
- if (!w[NAMESPACE_IDENTIFIER].shims) w[NAMESPACE_IDENTIFIER].shims = [];
440
- var namespace = w[NAMESPACE_IDENTIFIER];
441
-
442
- var functions = [];
443
-
444
- var listener = function listener() {
445
- DOCUMENT.removeEventListener('DOMContentLoaded', listener);
446
- loaded = 1;
447
- functions.map(function (fn) {
448
- return fn();
449
- });
450
- };
451
-
452
- var loaded = false;
453
-
454
- if (IS_DOM) {
455
- loaded = (DOCUMENT.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(DOCUMENT.readyState);
456
- if (!loaded) DOCUMENT.addEventListener('DOMContentLoaded', listener);
457
- }
458
-
459
- var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
460
- var asyncSetTimer = typeof setImmediate === 'undefined' ? setTimeout : setImmediate;
461
- var meaninglessTransform = {
462
- size: 16,
463
- x: 0,
464
- y: 0,
465
- rotate: 0,
466
- flipX: false,
467
- flipY: false
468
- };
469
- function insertCss(css) {
470
- if (!css || !IS_DOM) {
471
- return;
472
- }
473
-
474
- var style = DOCUMENT.createElement('style');
475
- style.setAttribute('type', 'text/css');
476
- style.innerHTML = css;
477
- var headChildren = DOCUMENT.head.childNodes;
478
- var beforeChild = null;
479
-
480
- for (var i = headChildren.length - 1; i > -1; i--) {
481
- var child = headChildren[i];
482
- var tagName = (child.tagName || '').toUpperCase();
483
-
484
- if (['STYLE', 'LINK'].indexOf(tagName) > -1) {
485
- beforeChild = child;
486
- }
487
- }
488
-
489
- DOCUMENT.head.insertBefore(style, beforeChild);
490
- return css;
491
- }
492
- var idPool = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
493
- function nextUniqueId() {
494
- var size = 12;
495
- var id = '';
496
-
497
- while (size-- > 0) {
498
- id += idPool[Math.random() * 62 | 0];
499
- }
500
-
501
- return id;
502
- }
503
- function htmlEscape(str) {
504
- return "".concat(str).replace(/&/g, '&amp;').replace(/"/g, '&quot;').replace(/'/g, '&#39;').replace(/</g, '&lt;').replace(/>/g, '&gt;');
505
- }
506
- function joinAttributes(attributes) {
507
- return Object.keys(attributes || {}).reduce(function (acc, attributeName) {
508
- return acc + "".concat(attributeName, "=\"").concat(htmlEscape(attributes[attributeName]), "\" ");
509
- }, '').trim();
510
- }
511
- function joinStyles(styles) {
512
- return Object.keys(styles || {}).reduce(function (acc, styleName) {
513
- return acc + "".concat(styleName, ": ").concat(styles[styleName], ";");
514
- }, '');
515
- }
516
- function transformIsMeaningful(transform) {
517
- return transform.size !== meaninglessTransform.size || transform.x !== meaninglessTransform.x || transform.y !== meaninglessTransform.y || transform.rotate !== meaninglessTransform.rotate || transform.flipX || transform.flipY;
518
- }
519
- function transformForSvg(_ref) {
520
- var transform = _ref.transform,
521
- containerWidth = _ref.containerWidth,
522
- iconWidth = _ref.iconWidth;
523
- var outer = {
524
- transform: "translate(".concat(containerWidth / 2, " 256)")
525
- };
526
- var innerTranslate = "translate(".concat(transform.x * 32, ", ").concat(transform.y * 32, ") ");
527
- var innerScale = "scale(".concat(transform.size / 16 * (transform.flipX ? -1 : 1), ", ").concat(transform.size / 16 * (transform.flipY ? -1 : 1), ") ");
528
- var innerRotate = "rotate(".concat(transform.rotate, " 0 0)");
529
- var inner = {
530
- transform: "".concat(innerTranslate, " ").concat(innerScale, " ").concat(innerRotate)
531
- };
532
- var path = {
533
- transform: "translate(".concat(iconWidth / 2 * -1, " -256)")
534
- };
535
- return {
536
- outer: outer,
537
- inner: inner,
538
- path: path
539
- };
540
- }
541
-
542
- var ALL_SPACE = {
543
- x: 0,
544
- y: 0,
545
- width: '100%',
546
- height: '100%'
547
- };
548
-
549
- function fillBlack(abstract) {
550
- var force = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
551
-
552
- if (abstract.attributes && (abstract.attributes.fill || force)) {
553
- abstract.attributes.fill = 'black';
554
- }
555
-
556
- return abstract;
557
- }
558
-
559
- function deGroup(abstract) {
560
- if (abstract.tag === 'g') {
561
- return abstract.children;
562
- } else {
563
- return [abstract];
564
- }
565
- }
566
-
567
- function makeIconMasking (_ref) {
568
- var children = _ref.children,
569
- attributes = _ref.attributes,
570
- main = _ref.main,
571
- mask = _ref.mask,
572
- explicitMaskId = _ref.maskId,
573
- transform = _ref.transform;
574
- var mainWidth = main.width,
575
- mainPath = main.icon;
576
- var maskWidth = mask.width,
577
- maskPath = mask.icon;
578
- var trans = transformForSvg({
579
- transform: transform,
580
- containerWidth: maskWidth,
581
- iconWidth: mainWidth
582
- });
583
- var maskRect = {
584
- tag: 'rect',
585
- attributes: _objectSpread({}, ALL_SPACE, {
586
- fill: 'white'
587
- })
588
- };
589
- var maskInnerGroupChildrenMixin = mainPath.children ? {
590
- children: mainPath.children.map(fillBlack)
591
- } : {};
592
- var maskInnerGroup = {
593
- tag: 'g',
594
- attributes: _objectSpread({}, trans.inner),
595
- children: [fillBlack(_objectSpread({
596
- tag: mainPath.tag,
597
- attributes: _objectSpread({}, mainPath.attributes, trans.path)
598
- }, maskInnerGroupChildrenMixin))]
599
- };
600
- var maskOuterGroup = {
601
- tag: 'g',
602
- attributes: _objectSpread({}, trans.outer),
603
- children: [maskInnerGroup]
604
- };
605
- var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
606
- var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
607
- var maskTag = {
608
- tag: 'mask',
609
- attributes: _objectSpread({}, ALL_SPACE, {
610
- id: maskId,
611
- maskUnits: 'userSpaceOnUse',
612
- maskContentUnits: 'userSpaceOnUse'
613
- }),
614
- children: [maskRect, maskOuterGroup]
615
- };
616
- var defs = {
617
- tag: 'defs',
618
- children: [{
619
- tag: 'clipPath',
620
- attributes: {
621
- id: clipId
622
- },
623
- children: deGroup(maskPath)
624
- }, maskTag]
625
- };
626
- children.push(defs, {
627
- tag: 'rect',
628
- attributes: _objectSpread({
629
- fill: 'currentColor',
630
- 'clip-path': "url(#".concat(clipId, ")"),
631
- mask: "url(#".concat(maskId, ")")
632
- }, ALL_SPACE)
633
- });
634
- return {
635
- children: children,
636
- attributes: attributes
637
- };
638
- }
639
-
640
- function makeIconStandard (_ref) {
641
- var children = _ref.children,
642
- attributes = _ref.attributes,
643
- main = _ref.main,
644
- transform = _ref.transform,
645
- styles = _ref.styles;
646
- var styleString = joinStyles(styles);
647
-
648
- if (styleString.length > 0) {
649
- attributes['style'] = styleString;
650
- }
651
-
652
- if (transformIsMeaningful(transform)) {
653
- var trans = transformForSvg({
654
- transform: transform,
655
- containerWidth: main.width,
656
- iconWidth: main.width
657
- });
658
- children.push({
659
- tag: 'g',
660
- attributes: _objectSpread({}, trans.outer),
661
- children: [{
662
- tag: 'g',
663
- attributes: _objectSpread({}, trans.inner),
664
- children: [{
665
- tag: main.icon.tag,
666
- children: main.icon.children,
667
- attributes: _objectSpread({}, main.icon.attributes, trans.path)
668
- }]
669
- }]
670
- });
671
- } else {
672
- children.push(main.icon);
673
- }
674
-
675
- return {
676
- children: children,
677
- attributes: attributes
678
- };
679
- }
680
-
681
- function asIcon (_ref) {
682
- var children = _ref.children,
683
- main = _ref.main,
684
- mask = _ref.mask,
685
- attributes = _ref.attributes,
686
- styles = _ref.styles,
687
- transform = _ref.transform;
688
-
689
- if (transformIsMeaningful(transform) && main.found && !mask.found) {
690
- var width = main.width,
691
- height = main.height;
692
- var offset = {
693
- x: width / height / 2,
694
- y: 0.5
695
- };
696
- attributes['style'] = joinStyles(_objectSpread({}, styles, {
697
- 'transform-origin': "".concat(offset.x + transform.x / 16, "em ").concat(offset.y + transform.y / 16, "em")
698
- }));
699
- }
700
-
701
- return [{
702
- tag: 'svg',
703
- attributes: attributes,
704
- children: children
705
- }];
706
- }
707
-
708
- function asSymbol (_ref) {
709
- var prefix = _ref.prefix,
710
- iconName = _ref.iconName,
711
- children = _ref.children,
712
- attributes = _ref.attributes,
713
- symbol = _ref.symbol;
714
- var id = symbol === true ? "".concat(prefix, "-").concat(config.familyPrefix, "-").concat(iconName) : symbol;
715
- return [{
716
- tag: 'svg',
717
- attributes: {
718
- style: 'display: none;'
719
- },
720
- children: [{
721
- tag: 'symbol',
722
- attributes: _objectSpread({}, attributes, {
723
- id: id
724
- }),
725
- children: children
726
- }]
727
- }];
728
- }
729
-
730
- function makeInlineSvgAbstract(params) {
731
- var _params$icons = params.icons,
732
- main = _params$icons.main,
733
- mask = _params$icons.mask,
734
- prefix = params.prefix,
735
- iconName = params.iconName,
736
- transform = params.transform,
737
- symbol = params.symbol,
738
- title = params.title,
739
- maskId = params.maskId,
740
- titleId = params.titleId,
741
- extra = params.extra,
742
- _params$watchable = params.watchable,
743
- watchable = _params$watchable === void 0 ? false : _params$watchable;
744
-
745
- var _ref = mask.found ? mask : main,
746
- width = _ref.width,
747
- height = _ref.height;
748
-
749
- var isUploadedIcon = prefix === 'fak';
750
- var widthClass = isUploadedIcon ? '' : "fa-w-".concat(Math.ceil(width / height * 16));
751
- var attrClass = [config.replacementClass, iconName ? "".concat(config.familyPrefix, "-").concat(iconName) : '', widthClass].filter(function (c) {
752
- return extra.classes.indexOf(c) === -1;
753
- }).filter(function (c) {
754
- return c !== '' || !!c;
755
- }).concat(extra.classes).join(' ');
756
- var content = {
757
- children: [],
758
- attributes: _objectSpread({}, extra.attributes, {
759
- 'data-prefix': prefix,
760
- 'data-icon': iconName,
761
- 'class': attrClass,
762
- 'role': extra.attributes.role || 'img',
763
- 'xmlns': 'http://www.w3.org/2000/svg',
764
- 'viewBox': "0 0 ".concat(width, " ").concat(height)
765
- })
766
- };
767
- var uploadedIconWidthStyle = isUploadedIcon && !~extra.classes.indexOf('fa-fw') ? {
768
- width: "".concat(width / height * 16 * 0.0625, "em")
769
- } : {};
770
-
771
- if (watchable) {
772
- content.attributes[DATA_FA_I2SVG] = '';
773
- }
774
-
775
- if (title) content.children.push({
776
- tag: 'title',
777
- attributes: {
778
- id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
779
- },
780
- children: [title]
781
- });
782
-
783
- var args = _objectSpread({}, content, {
784
- prefix: prefix,
785
- iconName: iconName,
786
- main: main,
787
- mask: mask,
788
- maskId: maskId,
789
- transform: transform,
790
- symbol: symbol,
791
- styles: _objectSpread({}, uploadedIconWidthStyle, extra.styles)
792
- });
793
-
794
- var _ref2 = mask.found && main.found ? makeIconMasking(args) : makeIconStandard(args),
795
- children = _ref2.children,
796
- attributes = _ref2.attributes;
797
-
798
- args.children = children;
799
- args.attributes = attributes;
800
-
801
- if (symbol) {
802
- return asSymbol(args);
803
- } else {
804
- return asIcon(args);
805
- }
806
- }
807
-
808
- var noop$1 = function noop() {};
809
-
810
- var p = config.measurePerformance && PERFORMANCE && PERFORMANCE.mark && PERFORMANCE.measure ? PERFORMANCE : {
811
- mark: noop$1,
812
- measure: noop$1
813
- };
814
-
815
- /**
816
- * Internal helper to bind a function known to have 4 arguments
817
- * to a given context.
818
- */
819
-
820
- var bindInternal4 = function bindInternal4(func, thisContext) {
821
- return function (a, b, c, d) {
822
- return func.call(thisContext, a, b, c, d);
823
- };
824
- };
825
-
826
- /**
827
- * # Reduce
828
- *
829
- * A fast object `.reduce()` implementation.
830
- *
831
- * @param {Object} subject The object to reduce over.
832
- * @param {Function} fn The reducer function.
833
- * @param {mixed} initialValue The initial value for the reducer, defaults to subject[0].
834
- * @param {Object} thisContext The context for the reducer.
835
- * @return {mixed} The final result.
836
- */
837
-
838
-
839
- var reduce = function fastReduceObject(subject, fn, initialValue, thisContext) {
840
- var keys = Object.keys(subject),
841
- length = keys.length,
842
- iterator = thisContext !== undefined ? bindInternal4(fn, thisContext) : fn,
843
- i,
844
- key,
845
- result;
846
-
847
- if (initialValue === undefined) {
848
- i = 1;
849
- result = subject[keys[0]];
850
- } else {
851
- i = 0;
852
- result = initialValue;
853
- }
854
-
855
- for (; i < length; i++) {
856
- key = keys[i];
857
- result = iterator(result, subject[key], key, subject);
858
- }
859
-
860
- return result;
861
- };
862
-
863
- function defineIcons(prefix, icons) {
864
- var params = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
865
- var _params$skipHooks = params.skipHooks,
866
- skipHooks = _params$skipHooks === void 0 ? false : _params$skipHooks;
867
- var normalized = Object.keys(icons).reduce(function (acc, iconName) {
868
- var icon = icons[iconName];
869
- var expanded = !!icon.icon;
870
-
871
- if (expanded) {
872
- acc[icon.iconName] = icon.icon;
873
- } else {
874
- acc[iconName] = icon;
875
- }
876
-
877
- return acc;
878
- }, {});
879
-
880
- if (typeof namespace.hooks.addPack === 'function' && !skipHooks) {
881
- namespace.hooks.addPack(prefix, normalized);
882
- } else {
883
- namespace.styles[prefix] = _objectSpread({}, namespace.styles[prefix] || {}, normalized);
884
- }
885
- /**
886
- * Font Awesome 4 used the prefix of `fa` for all icons. With the introduction
887
- * of new styles we needed to differentiate between them. Prefix `fa` is now an alias
888
- * for `fas` so we'll easy the upgrade process for our users by automatically defining
889
- * this as well.
890
- */
891
-
892
-
893
- if (prefix === 'fas') {
894
- defineIcons('fa', icons);
895
- }
896
- }
897
-
898
- var styles = namespace.styles,
899
- shims = namespace.shims;
900
- var _byUnicode = {};
901
- var _byLigature = {};
902
- var _byOldName = {};
903
- var build = function build() {
904
- var lookup = function lookup(reducer) {
905
- return reduce(styles, function (o, style, prefix) {
906
- o[prefix] = reduce(style, reducer, {});
907
- return o;
908
- }, {});
909
- };
910
-
911
- _byUnicode = lookup(function (acc, icon, iconName) {
912
- if (icon[3]) {
913
- acc[icon[3]] = iconName;
914
- }
915
-
916
- return acc;
917
- });
918
- _byLigature = lookup(function (acc, icon, iconName) {
919
- var ligatures = icon[2];
920
- acc[iconName] = iconName;
921
- ligatures.forEach(function (ligature) {
922
- acc[ligature] = iconName;
923
- });
924
- return acc;
925
- });
926
- var hasRegular = 'far' in styles;
927
- _byOldName = reduce(shims, function (acc, shim) {
928
- var oldName = shim[0];
929
- var prefix = shim[1];
930
- var iconName = shim[2];
931
-
932
- if (prefix === 'far' && !hasRegular) {
933
- prefix = 'fas';
934
- }
935
-
936
- acc[oldName] = {
937
- prefix: prefix,
938
- iconName: iconName
939
- };
940
- return acc;
941
- }, {});
942
- };
943
- build();
944
-
945
- var styles$1 = namespace.styles;
946
- function iconFromMapping(mapping, prefix, iconName) {
947
- if (mapping && mapping[prefix] && mapping[prefix][iconName]) {
948
- return {
949
- prefix: prefix,
950
- iconName: iconName,
951
- icon: mapping[prefix][iconName]
952
- };
953
- }
954
- }
955
-
956
- function toHtml(abstractNodes) {
957
- var tag = abstractNodes.tag,
958
- _abstractNodes$attrib = abstractNodes.attributes,
959
- attributes = _abstractNodes$attrib === void 0 ? {} : _abstractNodes$attrib,
960
- _abstractNodes$childr = abstractNodes.children,
961
- children = _abstractNodes$childr === void 0 ? [] : _abstractNodes$childr;
962
-
963
- if (typeof abstractNodes === 'string') {
964
- return htmlEscape(abstractNodes);
965
- } else {
966
- return "<".concat(tag, " ").concat(joinAttributes(attributes), ">").concat(children.map(toHtml).join(''), "</").concat(tag, ">");
967
- }
968
- }
969
-
970
- var parseTransformString = function parseTransformString(transformString) {
971
- var transform = {
972
- size: 16,
973
- x: 0,
974
- y: 0,
975
- flipX: false,
976
- flipY: false,
977
- rotate: 0
978
- };
979
-
980
- if (!transformString) {
981
- return transform;
982
- } else {
983
- return transformString.toLowerCase().split(' ').reduce(function (acc, n) {
984
- var parts = n.toLowerCase().split('-');
985
- var first = parts[0];
986
- var rest = parts.slice(1).join('-');
987
-
988
- if (first && rest === 'h') {
989
- acc.flipX = true;
990
- return acc;
991
- }
992
-
993
- if (first && rest === 'v') {
994
- acc.flipY = true;
995
- return acc;
996
- }
997
-
998
- rest = parseFloat(rest);
999
-
1000
- if (isNaN(rest)) {
1001
- return acc;
1002
- }
1003
-
1004
- switch (first) {
1005
- case 'grow':
1006
- acc.size = acc.size + rest;
1007
- break;
1008
-
1009
- case 'shrink':
1010
- acc.size = acc.size - rest;
1011
- break;
1012
-
1013
- case 'left':
1014
- acc.x = acc.x - rest;
1015
- break;
1016
-
1017
- case 'right':
1018
- acc.x = acc.x + rest;
1019
- break;
1020
-
1021
- case 'up':
1022
- acc.y = acc.y - rest;
1023
- break;
1024
-
1025
- case 'down':
1026
- acc.y = acc.y + rest;
1027
- break;
1028
-
1029
- case 'rotate':
1030
- acc.rotate = acc.rotate + rest;
1031
- break;
1032
- }
1033
-
1034
- return acc;
1035
- }, transform);
1036
- }
1037
- };
1038
-
1039
- function MissingIcon(error) {
1040
- this.name = 'MissingIcon';
1041
- this.message = error || 'Icon unavailable';
1042
- this.stack = new Error().stack;
1043
- }
1044
- MissingIcon.prototype = Object.create(Error.prototype);
1045
- MissingIcon.prototype.constructor = MissingIcon;
1046
-
1047
- var FILL = {
1048
- fill: 'currentColor'
1049
- };
1050
- var ANIMATION_BASE = {
1051
- attributeType: 'XML',
1052
- repeatCount: 'indefinite',
1053
- dur: '2s'
1054
- };
1055
- var RING = {
1056
- tag: 'path',
1057
- attributes: _objectSpread({}, FILL, {
1058
- d: 'M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z'
1059
- })
1060
- };
1061
-
1062
- var OPACITY_ANIMATE = _objectSpread({}, ANIMATION_BASE, {
1063
- attributeName: 'opacity'
1064
- });
1065
-
1066
- var DOT = {
1067
- tag: 'circle',
1068
- attributes: _objectSpread({}, FILL, {
1069
- cx: '256',
1070
- cy: '364',
1071
- r: '28'
1072
- }),
1073
- children: [{
1074
- tag: 'animate',
1075
- attributes: _objectSpread({}, ANIMATION_BASE, {
1076
- attributeName: 'r',
1077
- values: '28;14;28;28;14;28;'
1078
- })
1079
- }, {
1080
- tag: 'animate',
1081
- attributes: _objectSpread({}, OPACITY_ANIMATE, {
1082
- values: '1;0;1;1;0;1;'
1083
- })
1084
- }]
1085
- };
1086
- var QUESTION = {
1087
- tag: 'path',
1088
- attributes: _objectSpread({}, FILL, {
1089
- opacity: '1',
1090
- d: 'M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z'
1091
- }),
1092
- children: [{
1093
- tag: 'animate',
1094
- attributes: _objectSpread({}, OPACITY_ANIMATE, {
1095
- values: '1;0;0;0;0;1;'
1096
- })
1097
- }]
1098
- };
1099
- var EXCLAMATION = {
1100
- tag: 'path',
1101
- attributes: _objectSpread({}, FILL, {
1102
- opacity: '0',
1103
- d: 'M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z'
1104
- }),
1105
- children: [{
1106
- tag: 'animate',
1107
- attributes: _objectSpread({}, OPACITY_ANIMATE, {
1108
- values: '0;0;1;1;0;0;'
1109
- })
1110
- }]
1111
- };
1112
-
1113
- var styles$2 = namespace.styles;
1114
- function asFoundIcon(icon) {
1115
- var width = icon[0];
1116
- var height = icon[1];
1117
-
1118
- var _icon$slice = icon.slice(4),
1119
- _icon$slice2 = _slicedToArray$1(_icon$slice, 1),
1120
- vectorData = _icon$slice2[0];
1121
-
1122
- var element = null;
1123
-
1124
- if (Array.isArray(vectorData)) {
1125
- element = {
1126
- tag: 'g',
1127
- attributes: {
1128
- class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.GROUP)
1129
- },
1130
- children: [{
1131
- tag: 'path',
1132
- attributes: {
1133
- class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.SECONDARY),
1134
- fill: 'currentColor',
1135
- d: vectorData[0]
1136
- }
1137
- }, {
1138
- tag: 'path',
1139
- attributes: {
1140
- class: "".concat(config.familyPrefix, "-").concat(DUOTONE_CLASSES.PRIMARY),
1141
- fill: 'currentColor',
1142
- d: vectorData[1]
1143
- }
1144
- }]
1145
- };
1146
- } else {
1147
- element = {
1148
- tag: 'path',
1149
- attributes: {
1150
- fill: 'currentColor',
1151
- d: vectorData
1152
- }
1153
- };
1154
- }
1155
-
1156
- return {
1157
- found: true,
1158
- width: width,
1159
- height: height,
1160
- icon: element
1161
- };
1162
- }
1163
-
1164
- var styles$3 = namespace.styles;
1165
-
1166
- var baseStyles = "svg:not(:root).svg-inline--fa {\n overflow: visible;\n}\n\n.svg-inline--fa {\n display: inline-block;\n font-size: inherit;\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.225em;\n}\n.svg-inline--fa.fa-w-1 {\n width: 0.0625em;\n}\n.svg-inline--fa.fa-w-2 {\n width: 0.125em;\n}\n.svg-inline--fa.fa-w-3 {\n width: 0.1875em;\n}\n.svg-inline--fa.fa-w-4 {\n width: 0.25em;\n}\n.svg-inline--fa.fa-w-5 {\n width: 0.3125em;\n}\n.svg-inline--fa.fa-w-6 {\n width: 0.375em;\n}\n.svg-inline--fa.fa-w-7 {\n width: 0.4375em;\n}\n.svg-inline--fa.fa-w-8 {\n width: 0.5em;\n}\n.svg-inline--fa.fa-w-9 {\n width: 0.5625em;\n}\n.svg-inline--fa.fa-w-10 {\n width: 0.625em;\n}\n.svg-inline--fa.fa-w-11 {\n width: 0.6875em;\n}\n.svg-inline--fa.fa-w-12 {\n width: 0.75em;\n}\n.svg-inline--fa.fa-w-13 {\n width: 0.8125em;\n}\n.svg-inline--fa.fa-w-14 {\n width: 0.875em;\n}\n.svg-inline--fa.fa-w-15 {\n width: 0.9375em;\n}\n.svg-inline--fa.fa-w-16 {\n width: 1em;\n}\n.svg-inline--fa.fa-w-17 {\n width: 1.0625em;\n}\n.svg-inline--fa.fa-w-18 {\n width: 1.125em;\n}\n.svg-inline--fa.fa-w-19 {\n width: 1.1875em;\n}\n.svg-inline--fa.fa-w-20 {\n width: 1.25em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: 0.3em;\n width: auto;\n}\n.svg-inline--fa.fa-border {\n height: 1.5em;\n}\n.svg-inline--fa.fa-li {\n width: 2em;\n}\n.svg-inline--fa.fa-fw {\n width: 1.25em;\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: #ff253a;\n border-radius: 1em;\n -webkit-box-sizing: border-box;\n box-sizing: border-box;\n color: #fff;\n height: 1.5em;\n line-height: 1;\n max-width: 5em;\n min-width: 1.5em;\n overflow: hidden;\n padding: 0.25em;\n right: 0;\n text-overflow: ellipsis;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: 0;\n right: 0;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: 0;\n left: 0;\n right: auto;\n top: auto;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n right: 0;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: 0;\n right: auto;\n top: 0;\n -webkit-transform: scale(0.25);\n transform: scale(0.25);\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-lg {\n font-size: 1.3333333333em;\n line-height: 0.75em;\n vertical-align: -0.0667em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: 2.5em;\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: -2em;\n position: absolute;\n text-align: center;\n width: 2em;\n line-height: inherit;\n}\n\n.fa-border {\n border: solid 0.08em #eee;\n border-radius: 0.1em;\n padding: 0.2em 0.25em 0.15em;\n}\n\n.fa-pull-left {\n float: left;\n}\n\n.fa-pull-right {\n float: right;\n}\n\n.fa.fa-pull-left,\n.fas.fa-pull-left,\n.far.fa-pull-left,\n.fal.fa-pull-left,\n.fab.fa-pull-left {\n margin-right: 0.3em;\n}\n.fa.fa-pull-right,\n.fas.fa-pull-right,\n.far.fa-pull-right,\n.fal.fa-pull-right,\n.fab.fa-pull-right {\n margin-left: 0.3em;\n}\n\n.fa-spin {\n -webkit-animation: fa-spin 2s infinite linear;\n animation: fa-spin 2s infinite linear;\n}\n\n.fa-pulse {\n -webkit-animation: fa-spin 1s infinite steps(8);\n animation: fa-spin 1s infinite steps(8);\n}\n\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)\";\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)\";\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)\";\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)\";\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both, .fa-flip-horizontal.fa-flip-vertical {\n -ms-filter: \"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)\";\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n:root .fa-rotate-90,\n:root .fa-rotate-180,\n:root .fa-rotate-270,\n:root .fa-flip-horizontal,\n:root .fa-flip-vertical,\n:root .fa-flip-both {\n -webkit-filter: none;\n filter: none;\n}\n\n.fa-stack {\n display: inline-block;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: #fff;\n}\n\n.sr-only {\n border: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.sr-only-focusable:active, .sr-only-focusable:focus {\n clip: auto;\n height: auto;\n margin: 0;\n overflow: visible;\n position: static;\n width: auto;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: 0.4;\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: 1;\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse {\n color: #fff;\n}";
1167
-
1168
- function css () {
1169
- var dfp = DEFAULT_FAMILY_PREFIX;
1170
- var drc = DEFAULT_REPLACEMENT_CLASS;
1171
- var fp = config.familyPrefix;
1172
- var rc = config.replacementClass;
1173
- var s = baseStyles;
1174
-
1175
- if (fp !== dfp || rc !== drc) {
1176
- var dPatt = new RegExp("\\.".concat(dfp, "\\-"), 'g');
1177
- var customPropPatt = new RegExp("\\--".concat(dfp, "\\-"), 'g');
1178
- var rPatt = new RegExp("\\.".concat(drc), 'g');
1179
- s = s.replace(dPatt, ".".concat(fp, "-")).replace(customPropPatt, "--".concat(fp, "-")).replace(rPatt, ".".concat(rc));
1180
- }
1181
-
1182
- return s;
1183
- }
1184
-
1185
- var Library =
1186
- /*#__PURE__*/
1187
- function () {
1188
- function Library() {
1189
- _classCallCheck$1(this, Library);
1190
-
1191
- this.definitions = {};
1192
- }
1193
-
1194
- _createClass(Library, [{
1195
- key: "add",
1196
- value: function add() {
1197
- var _this = this;
1198
-
1199
- for (var _len = arguments.length, definitions = new Array(_len), _key = 0; _key < _len; _key++) {
1200
- definitions[_key] = arguments[_key];
1201
- }
1202
-
1203
- var additions = definitions.reduce(this._pullDefinitions, {});
1204
- Object.keys(additions).forEach(function (key) {
1205
- _this.definitions[key] = _objectSpread({}, _this.definitions[key] || {}, additions[key]);
1206
- defineIcons(key, additions[key]);
1207
- build();
1208
- });
1209
- }
1210
- }, {
1211
- key: "reset",
1212
- value: function reset() {
1213
- this.definitions = {};
1214
- }
1215
- }, {
1216
- key: "_pullDefinitions",
1217
- value: function _pullDefinitions(additions, definition) {
1218
- var normalized = definition.prefix && definition.iconName && definition.icon ? {
1219
- 0: definition
1220
- } : definition;
1221
- Object.keys(normalized).map(function (key) {
1222
- var _normalized$key = normalized[key],
1223
- prefix = _normalized$key.prefix,
1224
- iconName = _normalized$key.iconName,
1225
- icon = _normalized$key.icon;
1226
- if (!additions[prefix]) additions[prefix] = {};
1227
- additions[prefix][iconName] = icon;
1228
- });
1229
- return additions;
1230
- }
1231
- }]);
1232
-
1233
- return Library;
1234
- }();
1235
-
1236
- function ensureCss() {
1237
- if (config.autoAddCss && !_cssInserted) {
1238
- insertCss(css());
1239
-
1240
- _cssInserted = true;
1241
- }
1242
- }
1243
-
1244
- function apiObject(val, abstractCreator) {
1245
- Object.defineProperty(val, 'abstract', {
1246
- get: abstractCreator
1247
- });
1248
- Object.defineProperty(val, 'html', {
1249
- get: function get() {
1250
- return val.abstract.map(function (a) {
1251
- return toHtml(a);
1252
- });
1253
- }
1254
- });
1255
- Object.defineProperty(val, 'node', {
1256
- get: function get() {
1257
- if (!IS_DOM) return;
1258
- var container = DOCUMENT.createElement('div');
1259
- container.innerHTML = val.html;
1260
- return container.children;
1261
- }
1262
- });
1263
- return val;
1264
- }
1265
-
1266
- function findIconDefinition(iconLookup) {
1267
- var _iconLookup$prefix = iconLookup.prefix,
1268
- prefix = _iconLookup$prefix === void 0 ? 'fa' : _iconLookup$prefix,
1269
- iconName = iconLookup.iconName;
1270
- if (!iconName) return;
1271
- return iconFromMapping(library.definitions, prefix, iconName) || iconFromMapping(namespace.styles, prefix, iconName);
1272
- }
1273
-
1274
- function resolveIcons(next) {
1275
- return function (maybeIconDefinition) {
1276
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1277
- var iconDefinition = (maybeIconDefinition || {}).icon ? maybeIconDefinition : findIconDefinition(maybeIconDefinition || {});
1278
- var mask = params.mask;
1279
-
1280
- if (mask) {
1281
- mask = (mask || {}).icon ? mask : findIconDefinition(mask || {});
1282
- }
1283
-
1284
- return next(iconDefinition, _objectSpread({}, params, {
1285
- mask: mask
1286
- }));
1287
- };
1288
- }
1289
-
1290
- var library = new Library();
1291
- var _cssInserted = false;
1292
- var parse = {
1293
- transform: function transform(transformString) {
1294
- return parseTransformString(transformString);
1295
- }
1296
- };
1297
- var icon = resolveIcons(function (iconDefinition) {
1298
- var params = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
1299
- var _params$transform = params.transform,
1300
- transform = _params$transform === void 0 ? meaninglessTransform : _params$transform,
1301
- _params$symbol = params.symbol,
1302
- symbol = _params$symbol === void 0 ? false : _params$symbol,
1303
- _params$mask = params.mask,
1304
- mask = _params$mask === void 0 ? null : _params$mask,
1305
- _params$maskId = params.maskId,
1306
- maskId = _params$maskId === void 0 ? null : _params$maskId,
1307
- _params$title = params.title,
1308
- title = _params$title === void 0 ? null : _params$title,
1309
- _params$titleId = params.titleId,
1310
- titleId = _params$titleId === void 0 ? null : _params$titleId,
1311
- _params$classes = params.classes,
1312
- classes = _params$classes === void 0 ? [] : _params$classes,
1313
- _params$attributes = params.attributes,
1314
- attributes = _params$attributes === void 0 ? {} : _params$attributes,
1315
- _params$styles = params.styles,
1316
- styles = _params$styles === void 0 ? {} : _params$styles;
1317
- if (!iconDefinition) return;
1318
- var prefix = iconDefinition.prefix,
1319
- iconName = iconDefinition.iconName,
1320
- icon = iconDefinition.icon;
1321
- return apiObject(_objectSpread({
1322
- type: 'icon'
1323
- }, iconDefinition), function () {
1324
- ensureCss();
1325
-
1326
- if (config.autoA11y) {
1327
- if (title) {
1328
- attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
1329
- } else {
1330
- attributes['aria-hidden'] = 'true';
1331
- attributes['focusable'] = 'false';
1332
- }
1333
- }
1334
-
1335
- return makeInlineSvgAbstract({
1336
- icons: {
1337
- main: asFoundIcon(icon),
1338
- mask: mask ? asFoundIcon(mask.icon) : {
1339
- found: false,
1340
- width: null,
1341
- height: null,
1342
- icon: {}
1343
- }
1344
- },
1345
- prefix: prefix,
1346
- iconName: iconName,
1347
- transform: _objectSpread({}, meaninglessTransform, transform),
1348
- symbol: symbol,
1349
- title: title,
1350
- maskId: maskId,
1351
- titleId: titleId,
1352
- extra: {
1353
- attributes: attributes,
1354
- styles: styles,
1355
- classes: classes
1356
- }
1357
- });
1358
- });
1359
- });
1360
-
1361
- function _typeof(obj) {
1362
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
1363
- _typeof = function (obj) {
1364
- return typeof obj;
1365
- };
1366
- } else {
1367
- _typeof = function (obj) {
1368
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1369
- };
1370
- }
1371
-
1372
- return _typeof(obj);
1373
- }
1374
-
1375
- function _defineProperty$2(obj, key, value) {
1376
- if (key in obj) {
1377
- Object.defineProperty(obj, key, {
1378
- value: value,
1379
- enumerable: true,
1380
- configurable: true,
1381
- writable: true
1382
- });
1383
- } else {
1384
- obj[key] = value;
1385
- }
1386
-
1387
- return obj;
1388
- }
1389
-
1390
- function ownKeys$1(object, enumerableOnly) {
1391
- var keys = Object.keys(object);
1392
-
1393
- if (Object.getOwnPropertySymbols) {
1394
- var symbols = Object.getOwnPropertySymbols(object);
1395
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
1396
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1397
- });
1398
- keys.push.apply(keys, symbols);
1399
- }
1400
-
1401
- return keys;
1402
- }
1403
-
1404
- function _objectSpread2$1(target) {
1405
- for (var i = 1; i < arguments.length; i++) {
1406
- var source = arguments[i] != null ? arguments[i] : {};
1407
-
1408
- if (i % 2) {
1409
- ownKeys$1(Object(source), true).forEach(function (key) {
1410
- _defineProperty$2(target, key, source[key]);
1411
- });
1412
- } else if (Object.getOwnPropertyDescriptors) {
1413
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
1414
- } else {
1415
- ownKeys$1(Object(source)).forEach(function (key) {
1416
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
1417
- });
1418
- }
1419
- }
1420
-
1421
- return target;
1422
- }
1423
-
1424
- function _objectWithoutPropertiesLoose(source, excluded) {
1425
- if (source == null) return {};
1426
- var target = {};
1427
- var sourceKeys = Object.keys(source);
1428
- var key, i;
1429
-
1430
- for (i = 0; i < sourceKeys.length; i++) {
1431
- key = sourceKeys[i];
1432
- if (excluded.indexOf(key) >= 0) continue;
1433
- target[key] = source[key];
1434
- }
1435
-
1436
- return target;
1437
- }
1438
-
1439
- function _objectWithoutProperties(source, excluded) {
1440
- if (source == null) return {};
1441
-
1442
- var target = _objectWithoutPropertiesLoose(source, excluded);
1443
-
1444
- var key, i;
1445
-
1446
- if (Object.getOwnPropertySymbols) {
1447
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
1448
-
1449
- for (i = 0; i < sourceSymbolKeys.length; i++) {
1450
- key = sourceSymbolKeys[i];
1451
- if (excluded.indexOf(key) >= 0) continue;
1452
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
1453
- target[key] = source[key];
1454
- }
1455
- }
1456
-
1457
- return target;
1458
- }
1459
-
1460
- function _toConsumableArray(arr) {
1461
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
1462
- }
1463
-
1464
- function _arrayWithoutHoles(arr) {
1465
- if (Array.isArray(arr)) {
1466
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
1467
-
1468
- return arr2;
1469
- }
1470
- }
1471
-
1472
- function _iterableToArray(iter) {
1473
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
1474
- }
1475
-
1476
- function _nonIterableSpread() {
1477
- throw new TypeError("Invalid attempt to spread non-iterable instance");
1478
- }
1479
-
1480
- // Get CSS class list from a props object
1481
- function classList(props) {
1482
- var _classes;
1483
-
1484
- var spin = props.spin,
1485
- pulse = props.pulse,
1486
- fixedWidth = props.fixedWidth,
1487
- inverse = props.inverse,
1488
- border = props.border,
1489
- listItem = props.listItem,
1490
- flip = props.flip,
1491
- size = props.size,
1492
- rotation = props.rotation,
1493
- pull = props.pull; // map of CSS class names to properties
1494
-
1495
- var classes = (_classes = {
1496
- 'fa-spin': spin,
1497
- 'fa-pulse': pulse,
1498
- 'fa-fw': fixedWidth,
1499
- 'fa-inverse': inverse,
1500
- 'fa-border': border,
1501
- 'fa-li': listItem,
1502
- 'fa-flip-horizontal': flip === 'horizontal' || flip === 'both',
1503
- 'fa-flip-vertical': flip === 'vertical' || flip === 'both'
1504
- }, _defineProperty$2(_classes, "fa-".concat(size), typeof size !== 'undefined' && size !== null), _defineProperty$2(_classes, "fa-rotate-".concat(rotation), typeof rotation !== 'undefined' && rotation !== null && rotation !== 0), _defineProperty$2(_classes, "fa-pull-".concat(pull), typeof pull !== 'undefined' && pull !== null), _defineProperty$2(_classes, 'fa-swap-opacity', props.swapOpacity), _classes); // map over all the keys in the classes object
1505
- // return an array of the keys where the value for the key is not null
1506
-
1507
- return Object.keys(classes).map(function (key) {
1508
- return classes[key] ? key : null;
1509
- }).filter(function (key) {
1510
- return key;
1511
- });
1512
- }
1513
-
1514
- // Camelize taken from humps
1515
- // humps is copyright © 2012+ Dom Christie
1516
- // Released under the MIT license.
1517
- // Performant way to determine if object coerces to a number
1518
- function _isNumerical(obj) {
1519
- obj = obj - 0; // eslint-disable-next-line no-self-compare
1520
-
1521
- return obj === obj;
1522
- }
1523
-
1524
- function camelize(string) {
1525
- if (_isNumerical(string)) {
1526
- return string;
1527
- } // eslint-disable-next-line no-useless-escape
1528
-
1529
-
1530
- string = string.replace(/[\-_\s]+(.)?/g, function (match, chr) {
1531
- return chr ? chr.toUpperCase() : '';
1532
- }); // Ensure 1st char is always lowercase
1533
-
1534
- return string.substr(0, 1).toLowerCase() + string.substr(1);
1535
- }
1536
-
1537
- function capitalize(val) {
1538
- return val.charAt(0).toUpperCase() + val.slice(1);
1539
- }
1540
-
1541
- function styleToObject(style) {
1542
- return style.split(';').map(function (s) {
1543
- return s.trim();
1544
- }).filter(function (s) {
1545
- return s;
1546
- }).reduce(function (acc, pair) {
1547
- var i = pair.indexOf(':');
1548
- var prop = camelize(pair.slice(0, i));
1549
- var value = pair.slice(i + 1).trim();
1550
- prop.startsWith('webkit') ? acc[capitalize(prop)] = value : acc[prop] = value;
1551
- return acc;
1552
- }, {});
1553
- }
1554
-
1555
- function convert(createElement, element) {
1556
- var extraProps = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
1557
-
1558
- if (typeof element === 'string') {
1559
- return element;
1560
- }
1561
-
1562
- var children = (element.children || []).map(function (child) {
1563
- return convert(createElement, child);
1564
- });
1565
- /* eslint-disable dot-notation */
1566
-
1567
- var mixins = Object.keys(element.attributes || {}).reduce(function (acc, key) {
1568
- var val = element.attributes[key];
1569
-
1570
- switch (key) {
1571
- case 'class':
1572
- acc.attrs['className'] = val;
1573
- delete element.attributes['class'];
1574
- break;
1575
-
1576
- case 'style':
1577
- acc.attrs['style'] = styleToObject(val);
1578
- break;
1579
-
1580
- default:
1581
- if (key.indexOf('aria-') === 0 || key.indexOf('data-') === 0) {
1582
- acc.attrs[key.toLowerCase()] = val;
1583
- } else {
1584
- acc.attrs[camelize(key)] = val;
1585
- }
1586
-
1587
- }
1588
-
1589
- return acc;
1590
- }, {
1591
- attrs: {}
1592
- });
1593
-
1594
- var _extraProps$style = extraProps.style,
1595
- existingStyle = _extraProps$style === void 0 ? {} : _extraProps$style,
1596
- remaining = _objectWithoutProperties(extraProps, ["style"]);
1597
-
1598
- mixins.attrs['style'] = _objectSpread2$1({}, mixins.attrs['style'], {}, existingStyle);
1599
- /* eslint-enable */
1600
-
1601
- return createElement.apply(void 0, [element.tag, _objectSpread2$1({}, mixins.attrs, {}, remaining)].concat(_toConsumableArray(children)));
1602
- }
1603
-
1604
- var PRODUCTION$1 = false;
1605
-
1606
- try {
1607
- PRODUCTION$1 = process.env.NODE_ENV === 'production';
1608
- } catch (e) {}
1609
-
1610
- function log () {
1611
- if (!PRODUCTION$1 && console && typeof console.error === 'function') {
1612
- var _console;
1613
-
1614
- (_console = console).error.apply(_console, arguments);
1615
- }
1616
- }
1617
-
1618
- function normalizeIconArgs(icon) {
1619
- // this has everything that it needs to be rendered which means it was probably imported
1620
- // directly from an icon svg package
1621
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName && icon.icon) {
1622
- return icon;
1623
- }
1624
-
1625
- if (parse.icon) {
1626
- return parse.icon(icon);
1627
- } // if the icon is null, there's nothing to do
1628
-
1629
-
1630
- if (icon === null) {
1631
- return null;
1632
- } // if the icon is an object and has a prefix and an icon name, return it
1633
-
1634
-
1635
- if (icon && _typeof(icon) === 'object' && icon.prefix && icon.iconName) {
1636
- return icon;
1637
- } // if it's an array with length of two
1638
-
1639
-
1640
- if (Array.isArray(icon) && icon.length === 2) {
1641
- // use the first item as prefix, second as icon name
1642
- return {
1643
- prefix: icon[0],
1644
- iconName: icon[1]
1645
- };
1646
- } // if it's a string, use it as the icon name
1647
-
1648
-
1649
- if (typeof icon === 'string') {
1650
- return {
1651
- prefix: 'fas',
1652
- iconName: icon
1653
- };
1654
- }
1655
- }
1656
-
1657
- // creates an object with a key of key
1658
- // and a value of value
1659
- // if certain conditions are met
1660
- function objectWithKey(key, value) {
1661
- // if the value is a non-empty array
1662
- // or it's not an array but it is truthy
1663
- // then create the object with the key and the value
1664
- // if not, return an empty array
1665
- return Array.isArray(value) && value.length > 0 || !Array.isArray(value) && value ? _defineProperty$2({}, key, value) : {};
1666
- }
1667
-
1668
- function FontAwesomeIcon(_ref) {
1669
- var forwardedRef = _ref.forwardedRef,
1670
- props = _objectWithoutProperties(_ref, ["forwardedRef"]);
1671
-
1672
- var iconArgs = props.icon,
1673
- maskArgs = props.mask,
1674
- symbol = props.symbol,
1675
- className = props.className,
1676
- title = props.title,
1677
- titleId = props.titleId;
1678
- var iconLookup = normalizeIconArgs(iconArgs);
1679
- var classes = objectWithKey('classes', [].concat(_toConsumableArray(classList(props)), _toConsumableArray(className.split(' '))));
1680
- var transform = objectWithKey('transform', typeof props.transform === 'string' ? parse.transform(props.transform) : props.transform);
1681
- var mask = objectWithKey('mask', normalizeIconArgs(maskArgs));
1682
- var renderedIcon = icon(iconLookup, _objectSpread2$1({}, classes, {}, transform, {}, mask, {
1683
- symbol: symbol,
1684
- title: title,
1685
- titleId: titleId
1686
- }));
1687
-
1688
- if (!renderedIcon) {
1689
- log('Could not find icon', iconLookup);
1690
- return null;
1691
- }
1692
-
1693
- var abstract = renderedIcon.abstract;
1694
- var extraProps = {
1695
- ref: forwardedRef
1696
- };
1697
- Object.keys(props).forEach(function (key) {
1698
- // eslint-disable-next-line no-prototype-builtins
1699
- if (!FontAwesomeIcon.defaultProps.hasOwnProperty(key)) {
1700
- extraProps[key] = props[key];
1701
- }
1702
- });
1703
- return convertCurry(abstract[0], extraProps);
1704
- }
1705
- FontAwesomeIcon.displayName = 'FontAwesomeIcon';
1706
- FontAwesomeIcon.propTypes = {
1707
- border: PropTypes.bool,
1708
- className: PropTypes.string,
1709
- mask: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
1710
- fixedWidth: PropTypes.bool,
1711
- inverse: PropTypes.bool,
1712
- flip: PropTypes.oneOf(['horizontal', 'vertical', 'both']),
1713
- icon: PropTypes.oneOfType([PropTypes.object, PropTypes.array, PropTypes.string]),
1714
- listItem: PropTypes.bool,
1715
- pull: PropTypes.oneOf(['right', 'left']),
1716
- pulse: PropTypes.bool,
1717
- rotation: PropTypes.oneOf([0, 90, 180, 270]),
1718
- size: PropTypes.oneOf(['lg', 'xs', 'sm', '1x', '2x', '3x', '4x', '5x', '6x', '7x', '8x', '9x', '10x']),
1719
- spin: PropTypes.bool,
1720
- symbol: PropTypes.oneOfType([PropTypes.bool, PropTypes.string]),
1721
- title: PropTypes.string,
1722
- transform: PropTypes.oneOfType([PropTypes.string, PropTypes.object]),
1723
- swapOpacity: PropTypes.bool
1724
- };
1725
- FontAwesomeIcon.defaultProps = {
1726
- border: false,
1727
- className: '',
1728
- mask: null,
1729
- fixedWidth: false,
1730
- inverse: false,
1731
- flip: null,
1732
- icon: null,
1733
- listItem: false,
1734
- pull: null,
1735
- pulse: false,
1736
- rotation: null,
1737
- size: null,
1738
- spin: false,
1739
- symbol: false,
1740
- title: '',
1741
- transform: null,
1742
- swapOpacity: false
1743
- };
1744
- var convertCurry = convert.bind(null, React__default.createElement);
1745
-
1746
- /*!
1747
- * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com
1748
- * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
1749
- */
1750
- var faTrashAlt = {
1751
- prefix: 'fas',
1752
- iconName: 'trash-alt',
1753
- icon: [448, 512, [], "f2ed", "M32 464a48 48 0 0 0 48 48h288a48 48 0 0 0 48-48V128H32zm272-256a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zm-96 0a16 16 0 0 1 32 0v224a16 16 0 0 1-32 0zM432 32H312l-9.4-18.7A24 24 0 0 0 281.1 0H166.8a23.72 23.72 0 0 0-21.4 13.3L136 32H16A16 16 0 0 0 0 48v32a16 16 0 0 0 16 16h416a16 16 0 0 0 16-16V48a16 16 0 0 0-16-16z"]
1754
- };
1755
-
1756
175
  /** @format */
1757
176
 
1758
177
  numeral.register('locale', 'en-ZA', {
@@ -1822,90 +241,45 @@
1822
241
  var interestCategories = {
1823
242
  SHOES: 'SHOES',
1824
243
  BAGS: 'BAGS',
1825
- ACCESSORIES: 'ACCESSORIES'
244
+ ACCESSORIES: 'ACCESSORIES',
245
+ WATCHES: 'WATCHES'
1826
246
  };
1827
247
 
1828
- function _templateObject() {
1829
- var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n"]);
1830
-
1831
- _templateObject = function _templateObject() {
1832
- return data;
1833
- };
1834
-
1835
- return data;
1836
- }
1837
- var OuterContainer = styled__default.div(_templateObject(), function (props) {
1838
- return props.theme.colors.borderColor;
1839
- });
1840
-
1841
- function _templateObject$1() {
1842
- var data = _taggedTemplateLiteral(["\n padding-left: 3rem;\n padding-right: 3rem;\n display: flex;\n align-items: center;\n min-height: 70px;\n height: 70px;\n cursor: pointer;\n outline: none;\n"]);
1843
-
1844
- _templateObject$1 = function _templateObject() {
1845
- return data;
1846
- };
1847
-
1848
- return data;
1849
- }
1850
- var ToggleButton = styled__default.div(_templateObject$1());
1851
-
1852
- function _templateObject$2() {
1853
- var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: bold;\n flex-grow: 1;\n color: ", ";\n"]);
1854
-
1855
- _templateObject$2 = function _templateObject() {
1856
- return data;
1857
- };
1858
-
1859
- return data;
1860
- }
1861
- var Title = styled__default.div(_templateObject$2(), function (props) {
1862
- return props.theme.fontSizes[2];
1863
- }, function (props) {
1864
- return props.theme.colors.primary || '';
1865
- });
1866
-
1867
- function _templateObject$3() {
1868
- var data = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n"]);
1869
-
1870
- _templateObject$3 = function _templateObject() {
1871
- return data;
1872
- };
1873
-
1874
- return data;
1875
- }
1876
- var BodyContent = styled__default.div(_templateObject$3(), function (props) {
1877
- return props.theme.marginPaddings[5];
1878
- });
1879
-
1880
- function _templateObject$4() {
1881
- var data = _taggedTemplateLiteral(["\n margin-bottom: ", ";\n margin-top: 0;\n border-style: none;\n border-bottom: 1px solid ", ";\n"]);
1882
-
1883
- _templateObject$4 = function _templateObject() {
1884
- return data;
1885
- };
248
+ var genders = {
249
+ FEMALE: 0,
250
+ MALE: 1,
251
+ UNISEX: 2
252
+ };
1886
253
 
1887
- return data;
1888
- }
1889
- var BodyDivider = styled__default.hr(_templateObject$4(), function (props) {
1890
- return props.theme.marginPaddings[4];
1891
- }, function (props) {
1892
- return props.theme.colors.borderColor;
254
+ var Trash = (function (props) {
255
+ return React__default.createElement("svg", _extends({
256
+ version: "1.1",
257
+ id: "svg-trash",
258
+ xmlns: "http://www.w3.org/2000/svg",
259
+ xmlnsXlink: "http://www.w3.org/1999/xlink",
260
+ x: "0px",
261
+ y: "0px",
262
+ viewBox: "0 0 15.1 17.5",
263
+ xmlSpace: "preserve"
264
+ }, props), React__default.createElement("g", null, React__default.createElement("path", {
265
+ d: "M2.4,17.5c-0.4-0.1-0.5-0.4-0.5-0.8c0-4,0-7.9,0-11.9c0-0.1,0-0.1,0-0.2c-0.1,0-0.1,0-0.2,0c-0.3,0-0.7,0-1,0 C0.3,4.6,0,4.3,0,4C0,3.3,0,2.7,0,2c0.1-0.8,0.8-1.5,1.7-1.6c1.3,0,2.6,0,3.9,0c0.1,0,0.2,0,0.3-0.1C6,0.1,6.2,0,6.5,0 c0.7,0,1.4,0,2.1,0c0.3,0,0.5,0.1,0.6,0.3c0.1,0.1,0.1,0.1,0.2,0.1c1.3,0,2.5,0,3.8,0c0.8,0,1.4,0.4,1.7,1.1C15,1.7,15,2,15,2.3 c0,0.5,0,1,0,1.6c0,0.5-0.3,0.7-0.7,0.7c-0.4,0-0.7,0-1.1,0c0,0,0,0-0.1,0c0,0.1,0,0.1,0,0.2c0,4,0,7.9,0,11.9 c0,0.4-0.1,0.7-0.5,0.8C9.2,17.5,5.8,17.5,2.4,17.5z M11.8,16.2c0-3.9,0-7.7,0-11.6c-2.9,0-5.7,0-8.6,0c0,3.9,0,7.7,0,11.6 C6.1,16.2,9,16.2,11.8,16.2z M1.3,3.2c4.1,0,8.3,0,12.4,0c0-0.3,0-0.6,0-0.9c0-0.5-0.2-0.6-0.6-0.6c-3.7,0-7.4,0-11.1,0 c-0.1,0-0.2,0-0.3,0C1.5,1.8,1.3,2,1.3,2.2C1.3,2.5,1.3,2.9,1.3,3.2z"
266
+ }), React__default.createElement("path", {
267
+ d: "M5.1,9.8c0-1.1,0-2.3,0-3.4c0-0.4,0.2-0.7,0.5-0.7C6,5.6,6.3,5.8,6.4,6.1c0,0.1,0,0.2,0,0.3c0,2.2,0,4.5,0,6.7 c0,0.1,0,0.3-0.1,0.4C6.2,13.8,6,14,5.7,13.9c-0.3,0-0.5-0.2-0.6-0.5c0-0.1,0-0.2,0-0.3C5.1,12,5.1,10.9,5.1,9.8z"
268
+ }), React__default.createElement("path", {
269
+ d: "M9.9,9.8c0,1.1,0,2.3,0,3.4c0,0.3-0.2,0.6-0.5,0.7c-0.4,0.1-0.8-0.1-0.9-0.5c0-0.1,0-0.2,0-0.2c0-2.3,0-4.5,0-6.8 c0-0.4,0.2-0.7,0.5-0.7c0.3-0.1,0.7,0.1,0.7,0.5c0,0.1,0,0.2,0,0.3C9.9,7.6,9.9,8.7,9.9,9.8z"
270
+ })));
1893
271
  });
1894
272
 
1895
- function _templateObject$5() {
1896
- var data = _taggedTemplateLiteral(["\n padding-left: ", ";\n padding-right: ", ";\n"]);
273
+ function _templateObject() {
274
+ var data = _taggedTemplateLiteral(["\n padding: 1rem;\n display: flex;\n svg {\n width: 23px;\n height: auto;\n }\n"]);
1897
275
 
1898
- _templateObject$5 = function _templateObject() {
276
+ _templateObject = function _templateObject() {
1899
277
  return data;
1900
278
  };
1901
279
 
1902
280
  return data;
1903
281
  }
1904
- var Body = styled__default.div(_templateObject$5(), function (props) {
1905
- return props.theme.marginPaddings[6];
1906
- }, function (props) {
1907
- return props.theme.marginPaddings[6];
1908
- });
282
+ var SvgWrapper = styled__default.span(_templateObject());
1909
283
 
1910
284
  var theme = {
1911
285
  breakpoints: ['40em', '52em', '64em'],
@@ -1921,7 +295,9 @@
1921
295
  baseLt: '#817c7c',
1922
296
  borderColor: '#d8d8d8',
1923
297
  ntrlMin: '#fff',
1924
- ntrlMinTen: '#e6e6e6'
298
+ ntrlMinTen: '#e6e6e6',
299
+ gray: '#efefef',
300
+ darkerGray: '#454141'
1925
301
  }
1926
302
  };
1927
303
 
@@ -1935,280 +311,62 @@
1935
311
  });
1936
312
  });
1937
313
 
1938
- var SimpleAccordion = function SimpleAccordion(_ref) {
1939
- var identifier = _ref.identifier,
1940
- wrapperClass = _ref.wrapperClass,
1941
- containerClass = _ref.containerClass,
1942
- title = _ref.title,
1943
- _onClick = _ref.onClick,
1944
- openIndicator = _ref.openIndicator;
1945
- var OpenIndicator = openIndicator;
1946
- return React__default.createElement("div", {
1947
- className: wrapperClass
1948
- }, React__default.createElement(OuterContainer, {
1949
- "data-qe-id": identifier,
1950
- className: containerClass
1951
- }, React__default.createElement(ToggleButton, {
1952
- className: "".concat(containerClass, "__toggle-button"),
1953
- "data-qe-id": "".concat(identifier, "-toggle-button"),
1954
- onClick: function onClick(e) {
1955
- e.preventDefault();
1956
-
1957
- _onClick();
1958
- },
1959
- role: "button"
1960
- }, React__default.createElement(Title, {
1961
- className: "".concat(containerClass, "__toggle-button__title")
1962
- }, title), React__default.createElement("div", {
1963
- className: "".concat(containerClass, "__toggle-button__indicator")
1964
- }, React__default.createElement(OpenIndicator, null)))));
1965
- };
1966
-
1967
- SimpleAccordion.defaultProps = {
1968
- identifier: '',
1969
- wrapperClass: '',
1970
- containerClass: 'luxity-accordion',
1971
- title: '',
1972
- onClick: function onClick() {
1973
- return null;
1974
- },
1975
- openIndicator: function openIndicator() {
1976
- return React__default.createElement(React__default.Fragment, null, "Open");
1977
- }
1978
- };
1979
- themed(SimpleAccordion);
1980
-
1981
- var runAfter = function runAfter(fn, duration) {
1982
- setTimeout(fn, duration);
1983
- };
1984
-
1985
- var getInitHeight = function getInitHeight(defaultHeight) {
1986
- if (defaultHeight === 'auto') return 'auto';
1987
- return 0;
1988
- };
1989
- /**
1990
- * An Expand and Collapsible container which show a Title by default
1991
- * and then expands to show the content/children when it is triggered
1992
- */
1993
-
1994
-
1995
- var Accordion = function Accordion(_ref) {
1996
- var wrapperClass = _ref.wrapperClass,
1997
- containerClass = _ref.containerClass,
1998
- title = _ref.title,
1999
- closeIndicator = _ref.closeIndicator,
2000
- openIndicator = _ref.openIndicator,
2001
- itemKey = _ref.itemKey,
2002
- childRenderer = _ref.children,
2003
- duration = _ref.duration,
2004
- onAnimationStart = _ref.onAnimationStart,
2005
- onAnimationEnd = _ref.onAnimationEnd,
2006
- onClose = _ref.onClose,
2007
- onOpen = _ref.onOpen,
2008
- onToggle = _ref.onToggle,
2009
- identifier = _ref.identifier,
2010
- defaultHeight = _ref.defaultHeight;
2011
-
2012
- var _useState = React.useState(getInitHeight(defaultHeight)),
2013
- _useState2 = _slicedToArray(_useState, 2),
2014
- height = _useState2[0],
2015
- setHeight = _useState2[1];
2016
-
2017
- var isClosed = height === 0 || false;
2018
-
2019
- var toggle = function toggle() {
2020
- var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
2021
- return null;
2022
- };
2023
- setHeight(isClosed ? 'auto' : 0); // triggers animation with duration
2024
-
2025
- runAfter(callback, duration);
2026
-
2027
- if (isClosed) {
2028
- runAfter(onOpen, duration);
2029
- } else {
2030
- runAfter(onClose, duration);
2031
- }
2032
-
2033
- runAfter(onToggle, duration);
2034
- };
2035
-
2036
- var close = function close() {
2037
- var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
2038
- return null;
2039
- };
2040
- setHeight(0); // triggers animation with duration
2041
-
2042
- runAfter(callback, duration);
2043
- runAfter(onClose, duration);
2044
- };
2045
-
2046
- var open = function open() {
2047
- var callback = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
2048
- return null;
2049
- };
2050
- setHeight('auto'); // triggers animation with duration
2051
-
2052
- runAfter(callback, duration);
2053
- runAfter(onOpen, duration);
2054
- };
2055
-
2056
- var CloseIndicator = closeIndicator;
2057
- var OpenIndicator = openIndicator;
2058
- return React__default.createElement("div", {
2059
- className: wrapperClass
2060
- }, React__default.createElement(OuterContainer, {
2061
- "data-qe-id": identifier,
2062
- className: containerClass
2063
- }, React__default.createElement(ToggleButton, {
2064
- className: "".concat(containerClass, "__toggle-button"),
2065
- "data-qe-id": "".concat(identifier, "-toggle-button"),
2066
- onKeyPress: function onKeyPress() {
2067
- return null;
2068
- },
2069
- onClick: function onClick(e) {
2070
- e.preventDefault();
2071
- toggle();
2072
- },
2073
- role: "button",
2074
- tabIndex: itemKey + 1
2075
- }, React__default.createElement(Title, {
2076
- className: "".concat(containerClass, "__toggle-button__title")
2077
- }, title), React__default.createElement("div", {
2078
- className: "".concat(containerClass, "__toggle-button__indicator")
2079
- }, isClosed ? React__default.createElement(OpenIndicator, null) : React__default.createElement(CloseIndicator, null))), React__default.createElement(AnimateHeight, {
2080
- height: height,
2081
- duration: duration,
2082
- onAnimationStart: onAnimationStart,
2083
- onAnimationEnd: onAnimationEnd
2084
- }, React__default.createElement(Body, {
2085
- className: "".concat(containerClass, "__body")
2086
- }, title ? React__default.createElement(BodyDivider, null) : React__default.createElement(React__default.Fragment, null), React__default.createElement(BodyContent, {
2087
- className: "".concat(containerClass, "__body__content")
2088
- }, typeof childRenderer === 'function' ? childRenderer(close, open, toggle) : childRenderer)))));
2089
- };
2090
-
2091
- Accordion.defaultProps = {
2092
- identifier: '',
2093
- wrapperClass: '',
2094
- containerClass: 'luxity-accordion',
2095
- title: '',
2096
- itemKey: 0,
2097
- children: null,
2098
- duration: 500,
2099
- defaultHeight: '0',
2100
- onAnimationStart: function onAnimationStart() {
2101
- return null;
2102
- },
2103
- onAnimationEnd: function onAnimationEnd() {
2104
- return null;
2105
- },
2106
- onClose: function onClose() {
2107
- return null;
2108
- },
2109
- onOpen: function onOpen() {
2110
- return null;
2111
- },
2112
- onToggle: function onToggle() {
2113
- return null;
2114
- },
2115
- closeIndicator: function closeIndicator() {
2116
- return React__default.createElement(React__default.Fragment, null, "Close");
2117
- },
2118
- openIndicator: function openIndicator() {
2119
- return React__default.createElement(React__default.Fragment, null, "Open");
2120
- }
2121
- };
2122
- var LuxityAccordion = themed(Accordion);
2123
-
2124
- var genders = {
2125
- FEMALE: 0,
2126
- MALE: 1,
2127
- UNISEX: 2
2128
- };
2129
-
2130
- var SVG = function SVG(props) {
2131
- return React__default.createElement("svg", _extends({
2132
- id: "svg-eye",
2133
- width: "19",
2134
- height: "12",
2135
- viewBox: "0 0 19 12",
2136
- xmlns: "http://www.w3.org/2000/svg"
2137
- }, props), React__default.createElement("g", null, React__default.createElement("path", {
2138
- fill: "currentColor",
2139
- d: "M9.42598 12C4.30213 12 0.287344 6.5878 0.132076 6.36599C-0.023192 6.14418 -0.023192 5.85582 0.132076 5.63401C0.287344 5.4122 4.30213 0 9.42598 0C14.5498 0 18.5646 5.4122 18.7199 5.63401C18.8751 5.85582 18.8751 6.14418 18.7199 6.36599C18.5424 6.5878 14.5276 12 9.42598 12ZM1.41858 6.01109C2.39455 7.18669 5.65518 10.78 9.42598 10.78C13.1968 10.78 16.4574 7.18669 17.4334 6.01109C16.4574 4.83549 13.1968 1.24214 9.42598 1.24214C5.633 1.24214 2.37237 4.83549 1.41858 6.01109Z"
2140
- }), React__default.createElement("path", {
2141
- fill: "currentColor",
2142
- d: "M9.4276 9.73753C7.36476 9.73753 5.70117 8.07395 5.70117 6.0111C5.70117 3.94825 7.36476 2.28467 9.4276 2.28467C11.4905 2.28467 13.154 3.94825 13.154 6.0111C13.154 8.07395 11.4683 9.73753 9.4276 9.73753ZM9.4276 3.52681C8.05237 3.52681 6.94332 4.63587 6.94332 6.0111C6.94332 7.38633 8.05237 8.49539 9.4276 8.49539C10.8028 8.49539 11.9119 7.38633 11.9119 6.0111C11.9119 4.63587 10.7807 3.52681 9.4276 3.52681Z"
2143
- })));
2144
- };
2145
-
2146
- function _templateObject$6() {
2147
- var data = _taggedTemplateLiteral(["\n padding: 1rem;\n svg {\n width: 23px;\n height: auto;\n }\n"]);
314
+ function _templateObject$1() {
315
+ var data = _taggedTemplateLiteral(["\n border: 1px solid ", ";\n height: auto;\n margin-bottom: 1rem;\n margin-left: 1rem;\n display: flex;\n align-items: center;\n height: auto;\n\n :hover {\n background-color: ", ";\n cursor: pointer;\n }\n\n #svg-trash {\n width: 15px;\n }\n"]);
2148
316
 
2149
- _templateObject$6 = function _templateObject() {
317
+ _templateObject$1 = function _templateObject() {
2150
318
  return data;
2151
319
  };
2152
320
 
2153
321
  return data;
2154
322
  }
2155
- var SvgWrapper = styled__default.span(_templateObject$6());
323
+ var IconWrapper = styled__default.div(_templateObject$1(), function (props) {
324
+ return props.theme.colors.borderColor;
325
+ }, function (props) {
326
+ return props.theme.colors.borderColor;
327
+ });
2156
328
 
2157
- function _templateObject2() {
2158
- var data = _taggedTemplateLiteral(["\n0% {\n max-height: ", ";\n max-width: ", ";\n}\n30% {\n margin-bottom: 3rem;\n max-height: ", ";\n max-width: ", ";\n opacity: 1;\n}\n100% {\n margin-bottom: 0;\n max-height: ", ";\n max-width: ", ";\n opacity: 0;\n}"]);
329
+ var media = {
330
+ xs: '576px',
331
+ sm: '768px',
332
+ md: '992px',
333
+ lg: '1200px'
334
+ };
2159
335
 
2160
- _templateObject2 = function _templateObject2() {
336
+ function _templateObject4() {
337
+ var data = _taggedTemplateLiteral(["\n display: flex;\n justify-content: space-between;\n width: 95%;\n border: 1px solid ", ";\n padding: 0.5em;\n margin-bottom: ", ";\n\n .interest-item__container_heading {\n color: ", ";\n flex-basis: calc(100% / 6);\n margin-left: ", ";\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"]);
338
+
339
+ _templateObject4 = function _templateObject4() {
2161
340
  return data;
2162
341
  };
2163
342
 
2164
343
  return data;
2165
344
  }
2166
345
 
2167
- function _templateObject$7() {
2168
- var data = _taggedTemplateLiteral(["\n from {\n margin-bottom: 0;\n max-height: 0px;\n opacity: 0;\n }\n to {\n margin-bottom: 3rem;\n max-height: ", ";\n opacity: 1;\n }\n"]);
346
+ function _templateObject3() {
347
+ var data = _taggedTemplateLiteral(["\n display: flex;\n"]);
2169
348
 
2170
- _templateObject$7 = function _templateObject() {
349
+ _templateObject3 = function _templateObject3() {
2171
350
  return data;
2172
351
  };
2173
352
 
2174
353
  return data;
2175
354
  }
2176
- var AnimationMaxHeight = '1000px';
2177
- var AnimationMinHeight = '0px';
2178
- var AnimationMaxWidth = '1000px';
2179
- var AnimationTweenHeight = '100px'; // help smooth out the animation by adding in-between keyframes
2180
-
2181
- var AnimationMinWidth = '2px';
2182
- var fadeOutAnimationDuration = 1000; // time used for the Interest Item FadeOut animation
2183
-
2184
- var fadeInAnimationDurationMs = '500ms'; // on item mount - we just have a quick fadeIn animation
2185
-
2186
- var fadeOutAnimationDelayMs = '500ms'; // time it takes for the accordion component to collapse
2187
355
 
2188
- var fadeOutAnimationDurationMs = "".concat(fadeOutAnimationDuration, "ms"); // time used for the Interest Item FadeOut animation
2189
-
2190
- var InterestItemFadeIn = styled.keyframes(_templateObject$7(), AnimationMaxHeight);
2191
- var InterestItemFadeOut = styled.keyframes(_templateObject2(), AnimationMaxHeight, AnimationMaxWidth, AnimationTweenHeight, AnimationMinWidth, AnimationMinHeight, AnimationMinWidth);
2192
-
2193
- function _templateObject$8() {
2194
- var data = _taggedTemplateLiteral(["\n font-size: ", ";\n font-weight: bold;\n letter-spacing: -0.5px;\n "]);
356
+ function _templateObject2() {
357
+ var data = _taggedTemplateLiteral(["\n font-weight: bold;\n display: none;\n\n @media (max-width: ", ") {\n display: inline;\n }\n"]);
2195
358
 
2196
- _templateObject$8 = function _templateObject() {
359
+ _templateObject2 = function _templateObject2() {
2197
360
  return data;
2198
361
  };
2199
362
 
2200
363
  return data;
2201
364
  }
2202
- var styles$4 = {
2203
- text: {
2204
- prominent: styled.css(_templateObject$8(), theme.fontSizes[2])
2205
- }
2206
- };
2207
365
 
2208
- function _templateObject$9() {
2209
- var data = _taggedTemplateLiteral(["\n .interests__item {\n &.interests__item--hiding {\n .luxity-accordion {\n animation: ", " ease-in-out\n ", " ", " forwards;\n }\n }\n\n .luxity-accordion {\n animation: ", " ease-in-out ", "\n forwards;\n overflow: hidden;\n\n .luxity-accordion__toggle-button__title {\n color: ", ";\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n width: 50%;\n }\n .luxity-accordion__body__content {\n }\n }\n\n .item__header {\n ", ";\n margin-bottom: 0;\n padding-bottom: ", ";\n\n .item__header__svg {\n display: flex;\n flex-grow: 1;\n justify-content: flex-end;\n\n .svg--brand {\n padding: 0;\n }\n }\n }\n\n .interests__item__summary {\n border-style: none;\n\n .item__summary__item {\n .item__summary__item__left {\n font-weight: bold;\n }\n .item__summary__item__right {\n font-weight: normal;\n text-align: left;\n }\n }\n :last-child {\n margin-bottom: 0;\n }\n }\n\n .title-component {\n display: flex;\n justify-content: space-between;\n\n .title-component__title {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n width: 70%;\n }\n\n .trash-icon {\n margin-right: 15px;\n }\n }\n }\n"]);
366
+ function _templateObject$2() {
367
+ var data = _taggedTemplateLiteral(["\n @media (max-width: ", ") {\n display: none;\n }\n"]);
2210
368
 
2211
- _templateObject$9 = function _templateObject() {
369
+ _templateObject$2 = function _templateObject() {
2212
370
  return data;
2213
371
  };
2214
372
 
@@ -2218,8 +376,13 @@
2218
376
  FEMALE = genders.FEMALE,
2219
377
  UNISEX = genders.UNISEX;
2220
378
 
2221
- var EyeIcon = function EyeIcon() {
2222
- return React__default.createElement(SvgWrapper, null, React__default.createElement(SVG, null));
379
+ var TrashIcon = function TrashIcon(_ref) {
380
+ var onClick = _ref.onClick,
381
+ id = _ref.id;
382
+ return React__default.createElement(IconWrapper, {
383
+ onClick: onClick,
384
+ id: id
385
+ }, React__default.createElement(SvgWrapper, null, React__default.createElement(Trash, null)));
2223
386
  };
2224
387
 
2225
388
  var InterestItem = /*#__PURE__*/function (_React$Component) {
@@ -2235,9 +398,6 @@
2235
398
  _this = _super.call(this, props);
2236
399
 
2237
400
  _defineProperty(_assertThisInitialized(_this), "deleteInterestItem", function () {
2238
- var accordionClose = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : function () {
2239
- return null;
2240
- };
2241
401
  var id = _this.props.data.id;
2242
402
 
2243
403
  _this.setState({
@@ -2255,7 +415,7 @@
2255
415
  })
2256
416
  });
2257
417
 
2258
- accordionClose();
418
+ _this.props.onDeleted(_this.props.data);
2259
419
  }, function () {
2260
420
  return _this.setState({
2261
421
  delete: _objectSpread2({}, request)
@@ -2263,14 +423,6 @@
2263
423
  });
2264
424
  });
2265
425
 
2266
- _defineProperty(_assertThisInitialized(_this), "checkDeleted", function () {
2267
- if (_this.state.delete.success === true) {
2268
- setTimeout(function () {
2269
- _this.props.onDeleted(_this.props.data);
2270
- }, fadeOutAnimationDuration);
2271
- }
2272
- });
2273
-
2274
426
  _defineProperty(_assertThisInitialized(_this), "getGender", function (gender) {
2275
427
  switch (gender) {
2276
428
  case MALE:
@@ -2285,84 +437,57 @@
2285
437
  }
2286
438
  });
2287
439
 
2288
- _defineProperty(_assertThisInitialized(_this), "titleComponent", function (title) {
2289
- return React__default.createElement("div", {
2290
- className: "title-component"
2291
- }, React__default.createElement("div", {
2292
- className: "title-component__title"
2293
- }, title), React__default.createElement("div", {
2294
- className: "trash-icon"
2295
- }, React__default.createElement(FontAwesomeIcon, {
2296
- "data-qe-id": "interest-".concat(_this.props.data.id, "-delete-button"),
2297
- icon: faTrashAlt,
2298
- size: "1x",
2299
- onClick: function onClick(event) {
2300
- event.stopPropagation();
2301
-
2302
- if (!_this.state.delete.fetching) {
2303
- _this.deleteInterestItem();
2304
- }
2305
- }
2306
- })));
2307
- });
2308
-
2309
440
  _defineProperty(_assertThisInitialized(_this), "render", function () {
2310
- var _data$min_shoe_size, _data$max_shoe_size, _data$max_shoe_size2, _data$max_shoe_size2$;
441
+ var _data$min_shoe_size, _data$max_shoe_size;
2311
442
 
2312
443
  var data = _this.props.data;
2313
444
  var success = _this.state.delete.success;
2314
- return React__default.createElement("div", {
2315
- className: _this.props.className
2316
- }, React__default.createElement(LuxityAccordion, {
2317
- identifier: "interest-".concat(data.id),
2318
- wrapperClass: "interests__item ".concat(success && 'interests__item--hiding' || ''),
2319
- closeIndicator: EyeIcon,
2320
- openIndicator: EyeIcon,
2321
- onAnimationEnd: _this.checkDeleted,
2322
- title: _this.titleComponent(data.title)
2323
- }, React__default.createElement("div", {
2324
- className: "interests__item__summary item__summary"
445
+ return React__default.createElement(InterestItemContainer, {
446
+ id: "interests__item--".concat(data.id),
447
+ className: "".concat(success && 'interests__item--hiding')
448
+ }, React__default.createElement(InterestItemContent, {
449
+ className: "interest-item__container ".concat(_this.props.className)
2325
450
  }, React__default.createElement("div", {
2326
- className: "item__summary__item"
2327
- }, React__default.createElement("div", {
2328
- className: "item__summary__item__left"
2329
- }, "Category"), React__default.createElement("div", {
2330
- className: "item__summary__item__right"
2331
- }, React__default.createElement("div", null, data.category_type))), React__default.createElement("div", {
2332
- className: "item__summary__item"
2333
- }, React__default.createElement("div", {
2334
- className: "item__summary__item__left"
2335
- }, "Brands"), React__default.createElement("div", {
2336
- className: "item__summary__item__right"
2337
- }, React__default.createElement("div", null, data.luxity_brands.length > 0 ? data.luxity_brands.map(function (brand) {
2338
- return brand.name;
2339
- }).join(', ') : 'All'))), React__default.createElement("div", {
2340
- className: "item__summary__item"
2341
- }, React__default.createElement("div", {
2342
- className: "item__summary__item__left"
2343
- }, "Gender"), React__default.createElement("div", {
2344
- className: "item__summary__item__right"
2345
- }, React__default.createElement("div", null, _this.getGender(data.gender)))), data.category_type === interestCategories.SHOES && React__default.createElement("div", {
2346
- className: "item__summary__item"
2347
- }, React__default.createElement("div", {
2348
- className: "item__summary__item__left"
2349
- }, "Shoe Size Range"), React__default.createElement("div", {
2350
- className: "item__summary__item__right"
2351
- }, React__default.createElement("div", null, "".concat((data === null || data === void 0 ? void 0 : (_data$min_shoe_size = data.min_shoe_size) === null || _data$min_shoe_size === void 0 ? void 0 : _data$min_shoe_size.size) || 'No Min Size Set', " - "), "".concat((data === null || data === void 0 ? void 0 : (_data$max_shoe_size = data.max_shoe_size) === null || _data$max_shoe_size === void 0 ? void 0 : _data$max_shoe_size.size) || 'No Max Size Set', " "), "(".concat((data === null || data === void 0 ? void 0 : (_data$max_shoe_size2 = data.max_shoe_size) === null || _data$max_shoe_size2 === void 0 ? void 0 : (_data$max_shoe_size2$ = _data$max_shoe_size2.type) === null || _data$max_shoe_size2$ === void 0 ? void 0 : _data$max_shoe_size2$.toUpperCase()) || 'Shoe Size Type Set', ")")))), React__default.createElement("div", {
2352
- className: "item__summary__item"
2353
- }, React__default.createElement("div", {
2354
- className: "item__summary__item__left"
2355
- }, "Price Range"), React__default.createElement("div", {
2356
- className: "item__summary__item__right"
2357
- }, React__default.createElement("div", null, fC(data.min_price), "\xA0-\xA0", fC(data.max_price)))), React__default.createElement("div", {
2358
- className: "item__summary__item"
2359
- }, React__default.createElement("div", {
2360
- className: "item__summary__item__left"
2361
- }, "Style"), React__default.createElement("div", {
2362
- className: "item__summary__item__right"
2363
- }, React__default.createElement("div", null, data.luxity_styles.length > 0 ? data.luxity_styles.map(function (style) {
2364
- return style.name;
2365
- }).join(', ') : 'All'))))));
451
+ className: "interest-item__container_heading"
452
+ }, React__default.createElement(InterestItemTitle, null, "Category:"), React__default.createElement("div", {
453
+ id: "interest-item-".concat(data.id, "__category"),
454
+ className: "list-items"
455
+ }, data.category_type)), React__default.createElement("div", {
456
+ className: "interest-item__container_heading"
457
+ }, React__default.createElement(InterestItemTitle, null, "Brands:"), React__default.createElement("div", {
458
+ className: "list-items"
459
+ }, data.luxity_brands.length > 0 ? data.luxity_brands.map(function (brand) {
460
+ return React__default.createElement("span", {
461
+ key: data.id
462
+ }, brand.name);
463
+ }) : 'All')), React__default.createElement("div", {
464
+ className: "interest-item__container_heading"
465
+ }, React__default.createElement(InterestItemTitle, null, "Department:"), React__default.createElement("div", {
466
+ className: "list-items"
467
+ }, _this.getGender(data.gender))), React__default.createElement("div", {
468
+ className: "interest-item__container_heading"
469
+ }, React__default.createElement(InterestItemTitle, null, "Price:"), React__default.createElement("div", {
470
+ className: "list-items"
471
+ }, fC(data.min_price), "\xA0-\xA0", fC(data.max_price))), React__default.createElement("div", {
472
+ className: "interest-item__container_heading"
473
+ }, React__default.createElement(InterestItemTitle, null, "Style:"), React__default.createElement("div", {
474
+ className: "list-items"
475
+ }, data.luxity_styles.length > 0 ? data.luxity_styles.map(function (style) {
476
+ return React__default.createElement("span", {
477
+ key: data.id
478
+ }, style.name);
479
+ }) : 'All')), React__default.createElement("div", {
480
+ className: "interest-item__container_heading"
481
+ }, data.category_type === interestCategories.SHOES ? React__default.createElement("div", null, React__default.createElement(InterestItemTitle, null, "Shoe Size:"), React__default.createElement("div", {
482
+ className: "list-items"
483
+ }, "".concat((data === null || data === void 0 ? void 0 : (_data$min_shoe_size = data.min_shoe_size) === null || _data$min_shoe_size === void 0 ? void 0 : _data$min_shoe_size.size) || '', " - "), "".concat((data === null || data === void 0 ? void 0 : (_data$max_shoe_size = data.max_shoe_size) === null || _data$max_shoe_size === void 0 ? void 0 : _data$max_shoe_size.size) || '', " "))) : React__default.createElement(SheoSizeContentDiv, null, "-"))), React__default.createElement(TrashIcon, {
484
+ id: "interest-".concat(data.id, "-delete-button"),
485
+ onClick: function onClick() {
486
+ if (!_this.state.delete.fetching) {
487
+ _this.deleteInterestItem();
488
+ }
489
+ }
490
+ }));
2366
491
  });
2367
492
 
2368
493
  _this.state = {
@@ -2374,12 +499,21 @@
2374
499
  return InterestItem;
2375
500
  }(React__default.Component);
2376
501
 
2377
- var StyledInterestItem = styled__default(InterestItem)(_templateObject$9(), fadeOutAnimationDurationMs, fadeOutAnimationDelayMs, InterestItemFadeOut, fadeInAnimationDurationMs, InterestItemFadeIn, function (props) {
2378
- return props.theme.colors.base;
2379
- }, styles$4.text.prominent, function (props) {
2380
- return props.theme.marginPaddings[6];
2381
- });
2382
- var ThemedInterestItem = themed(StyledInterestItem);
502
+ var SheoSizeContentDiv = styled__default.div(_templateObject$2(), media.xs);
503
+ var InterestItemTitle = styled__default.div(_templateObject2(), media.xs);
504
+ var InterestItemContainer = styled__default.div(_templateObject3());
505
+ var InterestItemContent = styled__default.div(_templateObject4(), function (props) {
506
+ return props.theme.colors.borderColor;
507
+ }, function (props) {
508
+ return props.theme.marginPaddings[1];
509
+ }, function (props) {
510
+ return props.theme.colors.darkerGray;
511
+ }, function (props) {
512
+ return props.theme.marginPaddings[1];
513
+ }, media.xs, media.xs, function (props) {
514
+ return props.theme.marginPaddings[0];
515
+ }, media.xs);
516
+ var ThemedInterestItem = themed(InterestItem);
2383
517
  /**
2384
518
  * The Interest Item view shows the selected interest configuration,
2385
519
  * and gives user control to delete it.