@pelcro/react-pelcro-js 4.0.0-alpha.34 → 4.0.0-alpha.35

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/dist/index.esm.js CHANGED
@@ -32367,254 +32367,14 @@ var _path$f;
32367
32367
 
32368
32368
  function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
32369
32369
 
32370
- function SvgUser(props) {
32371
- return /*#__PURE__*/React.createElement("svg", _extends$f({
32372
- xmlns: "http://www.w3.org/2000/svg",
32373
- fill: "none",
32374
- viewBox: "0 0 24 24",
32375
- stroke: "currentColor"
32376
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
32377
- strokeLinecap: "round",
32378
- strokeLinejoin: "round",
32379
- strokeWidth: 2,
32380
- d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zm-4 7a7 7 0 00-7 7h14a7 7 0 00-7-7z"
32381
- })));
32382
- }
32383
-
32384
- var _path$e;
32385
-
32386
- function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
32387
-
32388
- function SvgNewsletter(props) {
32389
- return /*#__PURE__*/React.createElement("svg", _extends$e({
32390
- xmlns: "http://www.w3.org/2000/svg",
32391
- className: "plc-h-5 plc-w-5",
32392
- fill: "none",
32393
- viewBox: "0 0 24 24",
32394
- stroke: "currentColor"
32395
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
32396
- strokeLinecap: "round",
32397
- strokeLinejoin: "round",
32398
- strokeWidth: 2,
32399
- d: "M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
32400
- })));
32401
- }
32402
-
32403
- var _path$d;
32404
-
32405
- function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
32406
-
32407
- function SvgRefresh(props) {
32408
- return /*#__PURE__*/React.createElement("svg", _extends$d({
32409
- className: "plc-w-4 plc-h-4 plc-mr-1",
32410
- xmlns: "http://www.w3.org/2000/svg",
32411
- fill: "none",
32412
- viewBox: "0 0 24 24",
32413
- stroke: "currentColor"
32414
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
32415
- strokeLinecap: "round",
32416
- strokeLinejoin: "round",
32417
- strokeWidth: 2,
32418
- d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
32419
- })));
32420
- }
32421
-
32422
- var _path$c;
32423
-
32424
- function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
32425
-
32426
- function SvgDocument(props) {
32427
- return /*#__PURE__*/React.createElement("svg", _extends$c({
32428
- xmlns: "http://www.w3.org/2000/svg",
32429
- className: "plc-h-6 plc-w-6 plc-mr-2",
32430
- fill: "none",
32431
- viewBox: "0 0 24 24",
32432
- stroke: "currentColor"
32433
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
32434
- strokeLinecap: "round",
32435
- strokeLinejoin: "round",
32436
- strokeWidth: 2,
32437
- d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
32438
- })));
32439
- }
32440
-
32441
- var _path$b;
32442
-
32443
- function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
32444
-
32445
- function SvgPaymentCard(props) {
32446
- return /*#__PURE__*/React.createElement("svg", _extends$b({
32447
- className: "plc-w-6 plc-h-6 plc-mr-2",
32448
- xmlns: "http://www.w3.org/2000/svg",
32449
- fill: "none",
32450
- viewBox: "0 0 24 24",
32451
- stroke: "currentColor"
32452
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
32453
- strokeLinecap: "round",
32454
- strokeLinejoin: "round",
32455
- strokeWidth: 2,
32456
- d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
32457
- })));
32458
- }
32459
-
32460
- var _path$a, _path2;
32461
-
32462
- function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
32463
-
32464
- function SvgLocationPin(props) {
32465
- return /*#__PURE__*/React.createElement("svg", _extends$a({
32466
- className: "plc-w-6 plc-h-6 plc-mr-2",
32467
- xmlns: "http://www.w3.org/2000/svg",
32468
- fill: "none",
32469
- viewBox: "0 0 24 24",
32470
- stroke: "currentColor"
32471
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
32472
- strokeLinecap: "round",
32473
- strokeLinejoin: "round",
32474
- strokeWidth: 2,
32475
- d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
32476
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
32477
- strokeLinecap: "round",
32478
- strokeLinejoin: "round",
32479
- strokeWidth: 2,
32480
- d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
32481
- })));
32482
- }
32483
-
32484
- var _path$9;
32485
-
32486
- function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
32487
-
32488
- function SvgShopping(props) {
32489
- return /*#__PURE__*/React.createElement("svg", _extends$9({
32490
- className: "plc-w-6 plc-h-6 plc-mr-2",
32491
- xmlns: "http://www.w3.org/2000/svg",
32492
- fill: "none",
32493
- viewBox: "0 0 24 24",
32494
- stroke: "currentColor"
32495
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
32496
- strokeLinecap: "round",
32497
- strokeLinejoin: "round",
32498
- strokeWidth: 2,
32499
- d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
32500
- })));
32501
- }
32502
-
32503
- var _path$8;
32504
-
32505
- function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
32506
-
32507
- function SvgBookmark(props) {
32508
- return /*#__PURE__*/React.createElement("svg", _extends$8({
32509
- className: "plc-w-6 plc-h-6 plc-mr-2",
32510
- xmlns: "http://www.w3.org/2000/svg",
32511
- fill: "none",
32512
- viewBox: "0 0 24 24",
32513
- stroke: "currentColor"
32514
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
32515
- strokeLinecap: "round",
32516
- strokeLinejoin: "round",
32517
- strokeWidth: 2,
32518
- d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
32519
- })));
32520
- }
32521
-
32522
- var _path$7;
32523
-
32524
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
32525
-
32526
- function SvgPlus(props) {
32527
- return /*#__PURE__*/React.createElement("svg", _extends$7({
32528
- className: "plc-w-5 plc-h-5",
32529
- xmlns: "http://www.w3.org/2000/svg",
32530
- fill: "none",
32531
- viewBox: "0 0 24 24",
32532
- stroke: "currentColor"
32533
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
32534
- strokeLinecap: "round",
32535
- strokeLinejoin: "round",
32536
- strokeWidth: 2,
32537
- d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
32538
- })));
32539
- }
32540
-
32541
- var _path$6;
32542
-
32543
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
32544
-
32545
- function SvgKey(props) {
32546
- return /*#__PURE__*/React.createElement("svg", _extends$6({
32547
- xmlns: "http://www.w3.org/2000/svg",
32548
- viewBox: "0 0 20 20",
32549
- fill: "currentColor"
32550
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
32551
- fillRule: "evenodd",
32552
- d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
32553
- clipRule: "evenodd"
32554
- })));
32555
- }
32556
-
32557
- var _path$5;
32558
-
32559
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
32560
-
32561
- function SvgDonate(props) {
32562
- return /*#__PURE__*/React.createElement("svg", _extends$5({
32563
- width: 24,
32564
- height: 24,
32565
- fill: "currentColor",
32566
- xmlns: "http://www.w3.org/2000/svg"
32567
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
32568
- d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
32569
- })));
32570
- }
32571
-
32572
- var _path$4;
32573
-
32574
- function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
32575
-
32576
- function SvgMemberships(props) {
32577
- return /*#__PURE__*/React.createElement("svg", _extends$4({
32578
- xmlns: "http://www.w3.org/2000/svg",
32579
- fill: "none",
32580
- strokeWidth: 1.5,
32581
- stroke: "currentColor",
32582
- width: 24,
32583
- height: 24
32584
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
32585
- strokeLinecap: "round",
32586
- strokeLinejoin: "round",
32587
- d: "M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"
32588
- })));
32589
- }
32590
-
32591
- var _path$3;
32592
-
32593
- function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
32594
-
32595
- function SvgQrcode(props) {
32596
- return /*#__PURE__*/React.createElement("svg", _extends$3({
32597
- xmlns: "http://www.w3.org/2000/svg",
32598
- width: 682.667,
32599
- height: 682.667,
32600
- viewBox: "0 0 512 512"
32601
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
32602
- d: "M93.5 62.4c-15.7 3.9-28 16.6-31.4 32.4-.7 3.3-1.1 17.2-1.1 36.4 0 29.1.1 31.4 2 35.3 5.3 11 21.2 11.1 26.4.1 1.4-2.9 1.6-7.9 1.6-34.6 0-34.4.1-35.3 6.3-39 3-1.9 5.2-2 34.5-2 26.9 0 31.9-.2 34.8-1.6 11-5.2 10.9-21.1-.1-26.4-3.9-1.9-6.1-2-36.1-1.9-21.8 0-33.5.5-36.9 1.3zM345.4 63c-10.9 5.4-10.9 21.2 0 26.4 2.9 1.4 7.9 1.6 34.8 1.6 29.3 0 31.5.1 34.5 2 6.2 3.7 6.3 4.6 6.3 39 0 26.7.2 31.7 1.6 34.6 5.2 11 21.1 10.9 26.4-.1 1.9-3.9 2-6.2 2-35.3 0-19.2-.4-33.1-1.1-36.4-3.5-16.2-16.5-29.2-32.7-32.7-3.3-.7-17.2-1.1-36.5-1.1-29.3 0-31.5.1-35.3 2zM146 128.9c-6.9 2.1-12.1 6.5-15.6 13.1-1.8 3.2-1.9 6.3-1.9 38.5 0 34.2 0 35.1 2.2 39.1 2.8 5.3 9.1 10.7 14.2 12.2 2.5.8 14.4 1.2 35.8 1.2 36.3 0 38.3-.3 45.2-7.2 6.8-6.9 7.1-8.9 7.1-45.1 0-22.2-.4-33.2-1.2-36.1-1.8-6-10-13.9-16-15.4-5.3-1.3-65.5-1.6-69.8-.3zm57 51.6V203h-45v-45h45v22.5zM297 128.9c-8 2.5-14.9 9.2-16.9 16.4-.9 2.9-1.1 14.3-.9 37.7.3 37.2.2 36.2 7.4 43.3 6.6 6.4 8.8 6.7 45 6.7 35.6 0 38-.3 44.2-6.3 1.9-1.8 4.3-5 5.5-7.2 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-2.5-4.7-6.4-8.5-11.3-11.1-3.2-1.7-6.4-1.9-37-2.1-18.4-.1-34.6.2-36 .6zm57 51.6V203h-45v-45h45v22.5zM144.1 280.3c-4.8 1.8-10.8 7.2-13.4 12-2.2 4.1-2.2 4.9-2.2 39.2 0 34 .1 35.1 2.2 39 2.5 4.7 6.4 8.5 11.3 11.1 3.2 1.7 6.6 1.9 35.5 2.2 38.9.4 40.7.2 48-7.2 3.2-3.2 5.5-6.6 6.3-9.2.8-2.9 1.2-13.9 1.2-36.1 0-35.8-.4-38.3-6.6-44.7-7-7.2-6-7.1-44.4-7.3-25.4-.1-35.4.1-37.9 1zm58.9 51.2V354h-45v-45h45v22.5zM294.8 280.4c-6.8 2.4-12.9 8.9-14.8 15.7-1.5 5-1.3 66.2.2 71 1.5 5.1 6.9 11.4 12.2 14.2 4 2.2 4.9 2.2 39.1 2.2 32.2 0 35.3-.1 38.5-1.9 4.9-2.6 8.8-6.4 11.3-11.1 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-3-5.6-8-10.1-13.2-12-5.9-2-67.5-2.2-73.3-.1zm59.2 51.1V354h-45v-45h45v22.5zM68.7 339.2c-2.2 1.3-4.5 3.8-5.7 6.3-1.9 3.9-2 6.2-2 35.3 0 19.2.4 33.1 1.1 36.4 3.4 16.1 16.6 29.3 32.7 32.7 3.3.7 17.2 1.1 36.4 1.1 29.1 0 31.4-.1 35.3-2 11-5.3 11.1-21.2.1-26.4-2.9-1.4-7.9-1.6-34.6-1.6-34.4 0-35.3-.1-39-6.3-1.9-3-2-5.2-2-34.5 0-26.9-.2-31.9-1.6-34.8-3.6-7.5-13.5-10.5-20.7-6.2zM429.2 338.7c-1.8.9-4.3 3-5.5 4.7-2.1 3-2.2 4-2.7 36.1-.5 35.8-.6 36.1-6.3 39.5-3 1.9-5.3 2-34.5 2-34.5 0-36.1.2-40.2 6-5.4 7.5-2.8 18 5.5 22 3.9 1.9 6.2 2 35.3 2 19.2 0 33.1-.4 36.4-1.1 16.2-3.5 29.2-16.5 32.7-32.7.7-3.3 1.1-17.2 1.1-36.4 0-29.1-.1-31.4-2-35.3-3.6-7.4-12.5-10.4-19.8-6.8z"
32603
- })));
32604
- }
32605
-
32606
- var _path$2;
32607
-
32608
- function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
32609
-
32610
32370
  function SvgChevronRight(props) {
32611
- return /*#__PURE__*/React.createElement("svg", _extends$2({
32371
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
32612
32372
  className: "plc-w-6 plc-h-6",
32613
32373
  xmlns: "http://www.w3.org/2000/svg",
32614
32374
  fill: "none",
32615
32375
  viewBox: "0 0 24 24",
32616
32376
  stroke: "currentColor"
32617
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
32377
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
32618
32378
  strokeLinecap: "round",
32619
32379
  strokeLinejoin: "round",
32620
32380
  strokeWidth: 2,
@@ -32743,23 +32503,61 @@ const SavedItems = ({
32743
32503
  });
32744
32504
  };
32745
32505
 
32746
- var _path$1;
32506
+ var _path$e;
32747
32507
 
32748
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
32508
+ function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
32749
32509
 
32750
- function SvgCalendar(props) {
32751
- return /*#__PURE__*/React.createElement("svg", _extends$1({
32510
+ function SvgRefresh(props) {
32511
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
32512
+ className: "plc-w-4 plc-h-4 plc-mr-1",
32752
32513
  xmlns: "http://www.w3.org/2000/svg",
32753
- className: "plc-h-4 plc-w-4 plc-mr-1",
32754
- viewBox: "0 0 20 20",
32755
- fill: "currentColor"
32756
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
32757
- fillRule: "evenodd",
32514
+ fill: "none",
32515
+ viewBox: "0 0 24 24",
32516
+ stroke: "currentColor"
32517
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
32518
+ strokeLinecap: "round",
32519
+ strokeLinejoin: "round",
32520
+ strokeWidth: 2,
32521
+ d: "M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"
32522
+ })));
32523
+ }
32524
+
32525
+ var _path$d;
32526
+
32527
+ function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
32528
+
32529
+ function SvgCalendar(props) {
32530
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
32531
+ xmlns: "http://www.w3.org/2000/svg",
32532
+ className: "plc-h-4 plc-w-4 plc-mr-1",
32533
+ viewBox: "0 0 20 20",
32534
+ fill: "currentColor"
32535
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
32536
+ fillRule: "evenodd",
32758
32537
  d: "M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",
32759
32538
  clipRule: "evenodd"
32760
32539
  })));
32761
32540
  }
32762
32541
 
32542
+ var _path$c;
32543
+
32544
+ function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
32545
+
32546
+ function SvgPlus(props) {
32547
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
32548
+ className: "plc-w-5 plc-h-5",
32549
+ xmlns: "http://www.w3.org/2000/svg",
32550
+ fill: "none",
32551
+ viewBox: "0 0 24 24",
32552
+ stroke: "currentColor"
32553
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
32554
+ strokeLinecap: "round",
32555
+ strokeLinejoin: "round",
32556
+ strokeWidth: 2,
32557
+ d: "M12 6v6m0 0v6m0-6h6m-6 0H6"
32558
+ })));
32559
+ }
32560
+
32763
32561
  const AddNew = ({
32764
32562
  title,
32765
32563
  onClick
@@ -33418,6 +33216,25 @@ function formatStartDate(date) {
33418
33216
  return new Intl.DateTimeFormat("en-CA").format(startDate);
33419
33217
  }
33420
33218
 
33219
+ var _path$b;
33220
+
33221
+ function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
33222
+
33223
+ function SvgDocument(props) {
33224
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
33225
+ xmlns: "http://www.w3.org/2000/svg",
33226
+ className: "plc-h-6 plc-w-6 plc-mr-2",
33227
+ fill: "none",
33228
+ viewBox: "0 0 24 24",
33229
+ stroke: "currentColor"
33230
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
33231
+ strokeLinecap: "round",
33232
+ strokeLinejoin: "round",
33233
+ strokeWidth: 2,
33234
+ d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
33235
+ })));
33236
+ }
33237
+
33421
33238
  const InvoicesMenu = props => {
33422
33239
  const {
33423
33240
  t
@@ -33899,6 +33716,22 @@ const AddressesItems = props => {
33899
33716
  })));
33900
33717
  };
33901
33718
 
33719
+ const SUB_MENUS = {
33720
+ PROFILE: "profile",
33721
+ QRCODE: "qr-code",
33722
+ PASSWORDCHANGE: "passwordChange",
33723
+ SUBSCRIPTIONS: "subscriptions",
33724
+ DONATIONS: "donations",
33725
+ MEMBERSHIPS: "memberships",
33726
+ NEWSLETTERS: "Newsletters",
33727
+ PAYMENT_CARDS: "payment-cards",
33728
+ ADDRESSES: "addresses",
33729
+ GIFTS: "gifts",
33730
+ ORDERS: "orders",
33731
+ INVOICES: "invoices",
33732
+ LOGOUT: "logout",
33733
+ SAVED_ITEMS: "saved-items"
33734
+ };
33902
33735
  const getPaymentCardIcon = name => {
33903
33736
  var _icons$name$toLowerCa;
33904
33737
 
@@ -35605,24 +35438,8 @@ const PasswordChangeMenu = () => {
35605
35438
  }, /*#__PURE__*/React__default.createElement(PasswordChangeView, null));
35606
35439
  };
35607
35440
 
35608
- const SUB_MENUS = {
35609
- PROFILE: "profile",
35610
- QRCODE: "qr-code",
35611
- PASSWORDCHANGE: "passwordChange",
35612
- SUBSCRIPTIONS: "subscriptions",
35613
- DONATIONS: "donations",
35614
- MEMBERSHIPS: "memberships",
35615
- NEWSLETTERS: "Newsletters",
35616
- PAYMENT_CARDS: "payment-cards",
35617
- ADDRESSES: "addresses",
35618
- GIFTS: "gifts",
35619
- ORDERS: "orders",
35620
- INVOICES: "invoices",
35621
- LOGOUT: "logout",
35622
- SAVED_ITEMS: "saved-items"
35623
- };
35624
35441
  const DashboardContent = props => {
35625
- var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett;
35442
+ var _window$Pelcro$user$r, _window$Pelcro, _window$Pelcro$uiSett, _props$children;
35626
35443
 
35627
35444
  const {
35628
35445
  state: {
@@ -35848,115 +35665,11 @@ const DashboardContent = props => {
35848
35665
  className: "plc-fill-current"
35849
35666
  }))))), /*#__PURE__*/React__default.createElement("section", {
35850
35667
  className: "plc-mt-6 plc-shadow-sm"
35851
- }, /*#__PURE__*/React__default.createElement("header", {
35852
- className: "plc-pl-4 plc-mb-2 sm:plc-pl-8"
35853
- }, /*#__PURE__*/React__default.createElement("p", {
35854
- className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35855
- }, t("labels.mySettings"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
35856
- name: SUB_MENUS.PROFILE,
35857
- icon: /*#__PURE__*/React__default.createElement(SvgUser, {
35858
- className: "plc-w-6 plc-h-6 plc-mr-2"
35859
- }),
35860
- title: t("labels.profile"),
35861
- setActiveDashboardLink: setActiveDashboardLink,
35862
- activeDashboardLink: activeDashboardLink
35863
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35864
- name: SUB_MENUS.QRCODE,
35865
- icon: /*#__PURE__*/React__default.createElement(SvgQrcode, {
35866
- className: "plc-w-6 plc-h-6 plc-mr-2"
35867
- }),
35868
- title: "My QR code",
35869
- setActiveDashboardLink: setActiveDashboardLink,
35870
- activeDashboardLink: activeDashboardLink
35871
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35872
- name: SUB_MENUS.PASSWORDCHANGE,
35873
- icon: /*#__PURE__*/React__default.createElement(SvgKey, {
35874
- className: "plc-w-6 plc-h-6 plc-mr-2"
35875
- }),
35876
- title: t("labels.changePassword"),
35877
- setActiveDashboardLink: setActiveDashboardLink,
35878
- activeDashboardLink: activeDashboardLink
35879
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35880
- name: SUB_MENUS.SAVED_ITEMS,
35881
- icon: /*#__PURE__*/React__default.createElement(SvgBookmark, null),
35882
- title: t("labels.savedItems.label"),
35883
- setActiveDashboardLink: setActiveDashboardLink,
35884
- activeDashboardLink: activeDashboardLink
35885
- }), /*#__PURE__*/React__default.createElement("header", {
35886
- className: "plc-pl-4 plc-mb-2 sm:plc-pl-8"
35887
- }, /*#__PURE__*/React__default.createElement("p", {
35888
- className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35889
- }, t("labels.accountSettings"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
35890
- name: SUB_MENUS.PAYMENT_CARDS,
35891
- icon: /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
35892
- title: t("labels.paymentSource"),
35893
- setActiveDashboardLink: setActiveDashboardLink,
35894
- activeDashboardLink: activeDashboardLink
35895
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35896
- name: SUB_MENUS.ADDRESSES,
35897
- icon: /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
35898
- title: t("labels.addresses"),
35899
- setActiveDashboardLink: setActiveDashboardLink,
35900
- activeDashboardLink: activeDashboardLink
35901
- }), /*#__PURE__*/React__default.createElement("header", {
35902
- className: "plc-pl-4 plc-my-2 sm:plc-pl-8"
35903
- }, /*#__PURE__*/React__default.createElement("p", {
35904
- className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35905
- }, t("labels.purchases"))), /*#__PURE__*/React__default.createElement(DashboardLink, {
35906
- name: SUB_MENUS.SUBSCRIPTIONS,
35907
- icon: /*#__PURE__*/React__default.createElement(SvgSubscription, {
35908
- className: "plc-w-10 plc-h-10 plc-pt-2 plc-pr-1 plc--ml-2"
35909
- }),
35910
- title: t("labels.subscriptions"),
35911
- setActiveDashboardLink: setActiveDashboardLink,
35912
- activeDashboardLink: activeDashboardLink
35913
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35914
- show: showNewsletters(),
35915
- name: SUB_MENUS.NEWSLETTERS,
35916
- icon: /*#__PURE__*/React__default.createElement(SvgNewsletter, {
35917
- className: "plc-transform plc--translate-x-1 plc-scale-105 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35918
- }),
35919
- title: t("labels.Newsletters"),
35920
- setActiveDashboardLink: setActiveDashboardLink,
35921
- activeDashboardLink: activeDashboardLink
35922
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35923
- show: hasActiveMemberships(),
35924
- name: SUB_MENUS.MEMBERSHIPS,
35925
- icon: /*#__PURE__*/React__default.createElement(SvgMemberships, {
35926
- className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35927
- }),
35928
- title: t("labels.memberships"),
35929
- setActiveDashboardLink: setActiveDashboardLink,
35930
- activeDashboardLink: activeDashboardLink
35931
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35932
- show: hasDonationSubs(),
35933
- name: SUB_MENUS.DONATIONS,
35934
- icon: /*#__PURE__*/React__default.createElement(SvgDonate, {
35935
- className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
35936
- }),
35937
- title: t("labels.donations"),
35938
- setActiveDashboardLink: setActiveDashboardLink,
35939
- activeDashboardLink: activeDashboardLink
35940
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35941
- name: SUB_MENUS.GIFTS,
35942
- icon: /*#__PURE__*/React__default.createElement(SvgGift, null),
35943
- title: t("labels.gifts"),
35944
- setActiveDashboardLink: setActiveDashboardLink,
35945
- activeDashboardLink: activeDashboardLink
35946
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35947
- show: window.Pelcro.site.read().ecommerce_enabled,
35948
- name: SUB_MENUS.ORDERS,
35949
- icon: /*#__PURE__*/React__default.createElement(SvgShopping, null),
35950
- title: t("labels.orders.label"),
35951
- setActiveDashboardLink: setActiveDashboardLink,
35952
- activeDashboardLink: activeDashboardLink
35953
- }), /*#__PURE__*/React__default.createElement(DashboardLink, {
35954
- show: hasInvoices(),
35955
- name: SUB_MENUS.INVOICES,
35956
- icon: /*#__PURE__*/React__default.createElement(SvgDocument, null),
35957
- title: t("labels.invoices"),
35958
- setActiveDashboardLink: setActiveDashboardLink,
35959
- activeDashboardLink: activeDashboardLink
35668
+ }, props !== null && props !== void 0 && (_props$children = props.children) !== null && _props$children !== void 0 && _props$children.length ? props === null || props === void 0 ? void 0 : props.children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
35669
+ store: store$4,
35670
+ key: i
35671
+ })) : /*#__PURE__*/React__default.cloneElement(props === null || props === void 0 ? void 0 : props.children, {
35672
+ store: store$4
35960
35673
  })), /*#__PURE__*/React__default.createElement(DashboardLink, {
35961
35674
  name: SUB_MENUS.LOGOUT,
35962
35675
  icon: /*#__PURE__*/React__default.createElement(SvgExit, null),
@@ -35991,27 +35704,649 @@ const DashboardContent = props => {
35991
35704
  }))));
35992
35705
  };
35993
35706
 
35994
- /**
35995
- *
35996
- */
35707
+ const DashboardHeading = ({
35708
+ title
35709
+ }) => {
35710
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, title && /*#__PURE__*/React__default.createElement("header", {
35711
+ className: "plc-pl-4 plc-my-2 sm:plc-pl-8"
35712
+ }, /*#__PURE__*/React__default.createElement("p", {
35713
+ className: "plc-font-bold plc-tracking-widest plc-text-gray-500"
35714
+ }, title)));
35715
+ };
35997
35716
 
35998
- function Dashboard(props) {
35999
- React__default.useEffect(() => {
36000
- var _props$onDisplay;
35717
+ var _path$a;
36001
35718
 
36002
- (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
36003
- }, []);
35719
+ function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
35720
+
35721
+ function SvgUser(props) {
35722
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
35723
+ xmlns: "http://www.w3.org/2000/svg",
35724
+ fill: "none",
35725
+ viewBox: "0 0 24 24",
35726
+ stroke: "currentColor"
35727
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
35728
+ strokeLinecap: "round",
35729
+ strokeLinejoin: "round",
35730
+ strokeWidth: 2,
35731
+ d: "M16 7a4 4 0 11-8 0 4 4 0 018 0zm-4 7a7 7 0 00-7 7h14a7 7 0 00-7-7z"
35732
+ })));
35733
+ }
35734
+
35735
+ const DashboardProfile = ({
35736
+ title,
35737
+ icon,
35738
+ store
35739
+ }) => {
36004
35740
  const {
36005
- resetView
36006
- } = usePelcro();
36007
- return /*#__PURE__*/React__default.createElement(DashboardContainer, props, /*#__PURE__*/React__default.createElement(DashboardContent, Object.assign({
36008
- onClose: () => {
36009
- var _props$onClose;
35741
+ state: {
35742
+ activeDashboardLink
35743
+ },
35744
+ dispatch
35745
+ } = useContext(store);
35746
+ const {
35747
+ t
35748
+ } = useTranslation("dashboard");
36010
35749
 
36011
- (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
36012
- resetView();
36013
- }
36014
- }, props)));
35750
+ const setActiveDashboardLink = submenuName => {
35751
+ dispatch({
35752
+ type: SET_ACTIVE_DASHBOARD_LINK,
35753
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35754
+ });
35755
+ };
35756
+
35757
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35758
+ name: SUB_MENUS.PROFILE,
35759
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgUser, {
35760
+ className: "plc-w-6 plc-h-6 plc-mr-2"
35761
+ }),
35762
+ title: title !== null && title !== void 0 ? title : t("labels.profile"),
35763
+ setActiveDashboardLink: setActiveDashboardLink,
35764
+ activeDashboardLink: activeDashboardLink
35765
+ });
35766
+ };
35767
+
35768
+ var _path$9;
35769
+
35770
+ function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
35771
+
35772
+ function SvgQrcode(props) {
35773
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
35774
+ xmlns: "http://www.w3.org/2000/svg",
35775
+ width: 682.667,
35776
+ height: 682.667,
35777
+ viewBox: "0 0 512 512"
35778
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
35779
+ d: "M93.5 62.4c-15.7 3.9-28 16.6-31.4 32.4-.7 3.3-1.1 17.2-1.1 36.4 0 29.1.1 31.4 2 35.3 5.3 11 21.2 11.1 26.4.1 1.4-2.9 1.6-7.9 1.6-34.6 0-34.4.1-35.3 6.3-39 3-1.9 5.2-2 34.5-2 26.9 0 31.9-.2 34.8-1.6 11-5.2 10.9-21.1-.1-26.4-3.9-1.9-6.1-2-36.1-1.9-21.8 0-33.5.5-36.9 1.3zM345.4 63c-10.9 5.4-10.9 21.2 0 26.4 2.9 1.4 7.9 1.6 34.8 1.6 29.3 0 31.5.1 34.5 2 6.2 3.7 6.3 4.6 6.3 39 0 26.7.2 31.7 1.6 34.6 5.2 11 21.1 10.9 26.4-.1 1.9-3.9 2-6.2 2-35.3 0-19.2-.4-33.1-1.1-36.4-3.5-16.2-16.5-29.2-32.7-32.7-3.3-.7-17.2-1.1-36.5-1.1-29.3 0-31.5.1-35.3 2zM146 128.9c-6.9 2.1-12.1 6.5-15.6 13.1-1.8 3.2-1.9 6.3-1.9 38.5 0 34.2 0 35.1 2.2 39.1 2.8 5.3 9.1 10.7 14.2 12.2 2.5.8 14.4 1.2 35.8 1.2 36.3 0 38.3-.3 45.2-7.2 6.8-6.9 7.1-8.9 7.1-45.1 0-22.2-.4-33.2-1.2-36.1-1.8-6-10-13.9-16-15.4-5.3-1.3-65.5-1.6-69.8-.3zm57 51.6V203h-45v-45h45v22.5zM297 128.9c-8 2.5-14.9 9.2-16.9 16.4-.9 2.9-1.1 14.3-.9 37.7.3 37.2.2 36.2 7.4 43.3 6.6 6.4 8.8 6.7 45 6.7 35.6 0 38-.3 44.2-6.3 1.9-1.8 4.3-5 5.5-7.2 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-2.5-4.7-6.4-8.5-11.3-11.1-3.2-1.7-6.4-1.9-37-2.1-18.4-.1-34.6.2-36 .6zm57 51.6V203h-45v-45h45v22.5zM144.1 280.3c-4.8 1.8-10.8 7.2-13.4 12-2.2 4.1-2.2 4.9-2.2 39.2 0 34 .1 35.1 2.2 39 2.5 4.7 6.4 8.5 11.3 11.1 3.2 1.7 6.6 1.9 35.5 2.2 38.9.4 40.7.2 48-7.2 3.2-3.2 5.5-6.6 6.3-9.2.8-2.9 1.2-13.9 1.2-36.1 0-35.8-.4-38.3-6.6-44.7-7-7.2-6-7.1-44.4-7.3-25.4-.1-35.4.1-37.9 1zm58.9 51.2V354h-45v-45h45v22.5zM294.8 280.4c-6.8 2.4-12.9 8.9-14.8 15.7-1.5 5-1.3 66.2.2 71 1.5 5.1 6.9 11.4 12.2 14.2 4 2.2 4.9 2.2 39.1 2.2 32.2 0 35.3-.1 38.5-1.9 4.9-2.6 8.8-6.4 11.3-11.1 2.1-3.9 2.2-5 2.2-39s-.1-35.1-2.2-39c-3-5.6-8-10.1-13.2-12-5.9-2-67.5-2.2-73.3-.1zm59.2 51.1V354h-45v-45h45v22.5zM68.7 339.2c-2.2 1.3-4.5 3.8-5.7 6.3-1.9 3.9-2 6.2-2 35.3 0 19.2.4 33.1 1.1 36.4 3.4 16.1 16.6 29.3 32.7 32.7 3.3.7 17.2 1.1 36.4 1.1 29.1 0 31.4-.1 35.3-2 11-5.3 11.1-21.2.1-26.4-2.9-1.4-7.9-1.6-34.6-1.6-34.4 0-35.3-.1-39-6.3-1.9-3-2-5.2-2-34.5 0-26.9-.2-31.9-1.6-34.8-3.6-7.5-13.5-10.5-20.7-6.2zM429.2 338.7c-1.8.9-4.3 3-5.5 4.7-2.1 3-2.2 4-2.7 36.1-.5 35.8-.6 36.1-6.3 39.5-3 1.9-5.3 2-34.5 2-34.5 0-36.1.2-40.2 6-5.4 7.5-2.8 18 5.5 22 3.9 1.9 6.2 2 35.3 2 19.2 0 33.1-.4 36.4-1.1 16.2-3.5 29.2-16.5 32.7-32.7.7-3.3 1.1-17.2 1.1-36.4 0-29.1-.1-31.4-2-35.3-3.6-7.4-12.5-10.4-19.8-6.8z"
35780
+ })));
35781
+ }
35782
+
35783
+ const DashboardQRCode = ({
35784
+ title,
35785
+ icon,
35786
+ store
35787
+ }) => {
35788
+ const {
35789
+ state: {
35790
+ activeDashboardLink
35791
+ },
35792
+ dispatch
35793
+ } = useContext(store);
35794
+ useTranslation("dashboard");
35795
+
35796
+ const setActiveDashboardLink = submenuName => {
35797
+ dispatch({
35798
+ type: SET_ACTIVE_DASHBOARD_LINK,
35799
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35800
+ });
35801
+ };
35802
+
35803
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35804
+ name: SUB_MENUS.QRCODE,
35805
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgQrcode, {
35806
+ className: "plc-w-6 plc-h-6 plc-mr-2"
35807
+ }),
35808
+ title: title !== null && title !== void 0 ? title : "My QR code",
35809
+ setActiveDashboardLink: setActiveDashboardLink,
35810
+ activeDashboardLink: activeDashboardLink
35811
+ });
35812
+ };
35813
+
35814
+ var _path$8;
35815
+
35816
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
35817
+
35818
+ function SvgKey(props) {
35819
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
35820
+ xmlns: "http://www.w3.org/2000/svg",
35821
+ viewBox: "0 0 20 20",
35822
+ fill: "currentColor"
35823
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
35824
+ fillRule: "evenodd",
35825
+ d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
35826
+ clipRule: "evenodd"
35827
+ })));
35828
+ }
35829
+
35830
+ const DashboardPasswordChange = ({
35831
+ title,
35832
+ icon,
35833
+ store
35834
+ }) => {
35835
+ const {
35836
+ state: {
35837
+ activeDashboardLink
35838
+ },
35839
+ dispatch
35840
+ } = useContext(store);
35841
+ const {
35842
+ t
35843
+ } = useTranslation("dashboard");
35844
+
35845
+ const setActiveDashboardLink = submenuName => {
35846
+ dispatch({
35847
+ type: SET_ACTIVE_DASHBOARD_LINK,
35848
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35849
+ });
35850
+ };
35851
+
35852
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35853
+ name: SUB_MENUS.PASSWORDCHANGE,
35854
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgKey, {
35855
+ className: "plc-w-6 plc-h-6 plc-mr-2"
35856
+ }),
35857
+ title: title !== null && title !== void 0 ? title : t("labels.changePassword"),
35858
+ setActiveDashboardLink: setActiveDashboardLink,
35859
+ activeDashboardLink: activeDashboardLink
35860
+ });
35861
+ };
35862
+
35863
+ var _path$7;
35864
+
35865
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
35866
+
35867
+ function SvgBookmark(props) {
35868
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
35869
+ className: "plc-w-6 plc-h-6 plc-mr-2",
35870
+ xmlns: "http://www.w3.org/2000/svg",
35871
+ fill: "none",
35872
+ viewBox: "0 0 24 24",
35873
+ stroke: "currentColor"
35874
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
35875
+ strokeLinecap: "round",
35876
+ strokeLinejoin: "round",
35877
+ strokeWidth: 2,
35878
+ d: "M5 5a2 2 0 012-2h10a2 2 0 012 2v16l-7-3.5L5 21V5z"
35879
+ })));
35880
+ }
35881
+
35882
+ const DashboardSavedItems = ({
35883
+ title,
35884
+ icon,
35885
+ store
35886
+ }) => {
35887
+ const {
35888
+ state: {
35889
+ activeDashboardLink
35890
+ },
35891
+ dispatch
35892
+ } = useContext(store);
35893
+ const {
35894
+ t
35895
+ } = useTranslation("dashboard");
35896
+
35897
+ const setActiveDashboardLink = submenuName => {
35898
+ dispatch({
35899
+ type: SET_ACTIVE_DASHBOARD_LINK,
35900
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35901
+ });
35902
+ };
35903
+
35904
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35905
+ name: SUB_MENUS.SAVED_ITEMS,
35906
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgBookmark, null),
35907
+ title: title !== null && title !== void 0 ? title : t("labels.savedItems.label"),
35908
+ setActiveDashboardLink: setActiveDashboardLink,
35909
+ activeDashboardLink: activeDashboardLink
35910
+ });
35911
+ };
35912
+
35913
+ var _path$6;
35914
+
35915
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
35916
+
35917
+ function SvgPaymentCard(props) {
35918
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
35919
+ className: "plc-w-6 plc-h-6 plc-mr-2",
35920
+ xmlns: "http://www.w3.org/2000/svg",
35921
+ fill: "none",
35922
+ viewBox: "0 0 24 24",
35923
+ stroke: "currentColor"
35924
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
35925
+ strokeLinecap: "round",
35926
+ strokeLinejoin: "round",
35927
+ strokeWidth: 2,
35928
+ d: "M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z"
35929
+ })));
35930
+ }
35931
+
35932
+ const DashboardPaymentCards = ({
35933
+ title,
35934
+ icon,
35935
+ store
35936
+ }) => {
35937
+ const {
35938
+ state: {
35939
+ activeDashboardLink
35940
+ },
35941
+ dispatch
35942
+ } = useContext(store);
35943
+ const {
35944
+ t
35945
+ } = useTranslation("dashboard");
35946
+
35947
+ const setActiveDashboardLink = submenuName => {
35948
+ dispatch({
35949
+ type: SET_ACTIVE_DASHBOARD_LINK,
35950
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
35951
+ });
35952
+ };
35953
+
35954
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
35955
+ name: SUB_MENUS.PAYMENT_CARDS,
35956
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
35957
+ title: title !== null && title !== void 0 ? title : t("labels.paymentSource"),
35958
+ setActiveDashboardLink: setActiveDashboardLink,
35959
+ activeDashboardLink: activeDashboardLink
35960
+ });
35961
+ };
35962
+
35963
+ var _path$5, _path2;
35964
+
35965
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
35966
+
35967
+ function SvgLocationPin(props) {
35968
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
35969
+ className: "plc-w-6 plc-h-6 plc-mr-2",
35970
+ xmlns: "http://www.w3.org/2000/svg",
35971
+ fill: "none",
35972
+ viewBox: "0 0 24 24",
35973
+ stroke: "currentColor"
35974
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
35975
+ strokeLinecap: "round",
35976
+ strokeLinejoin: "round",
35977
+ strokeWidth: 2,
35978
+ d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
35979
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
35980
+ strokeLinecap: "round",
35981
+ strokeLinejoin: "round",
35982
+ strokeWidth: 2,
35983
+ d: "M15 11a3 3 0 11-6 0 3 3 0 016 0z"
35984
+ })));
35985
+ }
35986
+
35987
+ const DashboardAddresses = ({
35988
+ title,
35989
+ icon,
35990
+ store
35991
+ }) => {
35992
+ const {
35993
+ state: {
35994
+ activeDashboardLink
35995
+ },
35996
+ dispatch
35997
+ } = useContext(store);
35998
+ const {
35999
+ t
36000
+ } = useTranslation("dashboard");
36001
+
36002
+ const setActiveDashboardLink = submenuName => {
36003
+ dispatch({
36004
+ type: SET_ACTIVE_DASHBOARD_LINK,
36005
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36006
+ });
36007
+ };
36008
+
36009
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36010
+ name: SUB_MENUS.ADDRESSES,
36011
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
36012
+ title: title !== null && title !== void 0 ? title : t("labels.addresses"),
36013
+ setActiveDashboardLink: setActiveDashboardLink,
36014
+ activeDashboardLink: activeDashboardLink
36015
+ });
36016
+ };
36017
+
36018
+ const DashboardSubscriptions = ({
36019
+ title,
36020
+ icon,
36021
+ store
36022
+ }) => {
36023
+ const {
36024
+ state: {
36025
+ activeDashboardLink
36026
+ },
36027
+ dispatch
36028
+ } = useContext(store);
36029
+ const {
36030
+ t
36031
+ } = useTranslation("dashboard");
36032
+
36033
+ const setActiveDashboardLink = submenuName => {
36034
+ dispatch({
36035
+ type: SET_ACTIVE_DASHBOARD_LINK,
36036
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36037
+ });
36038
+ };
36039
+
36040
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36041
+ name: SUB_MENUS.SUBSCRIPTIONS,
36042
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgSubscription, {
36043
+ className: "plc-w-10 plc-h-10 plc-pt-2 plc-pr-1 plc--ml-2"
36044
+ }),
36045
+ title: title !== null && title !== void 0 ? title : t("labels.subscriptions"),
36046
+ setActiveDashboardLink: setActiveDashboardLink,
36047
+ activeDashboardLink: activeDashboardLink
36048
+ });
36049
+ };
36050
+
36051
+ var _path$4;
36052
+
36053
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
36054
+
36055
+ function SvgNewsletter(props) {
36056
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
36057
+ xmlns: "http://www.w3.org/2000/svg",
36058
+ className: "plc-h-5 plc-w-5",
36059
+ fill: "none",
36060
+ viewBox: "0 0 24 24",
36061
+ stroke: "currentColor"
36062
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
36063
+ strokeLinecap: "round",
36064
+ strokeLinejoin: "round",
36065
+ strokeWidth: 2,
36066
+ d: "M19 20H5a2 2 0 01-2-2V6a2 2 0 012-2h10a2 2 0 012 2v1m2 13a2 2 0 01-2-2V7m2 13a2 2 0 002-2V9a2 2 0 00-2-2h-2m-4-3H9M7 16h6M7 8h6v4H7V8z"
36067
+ })));
36068
+ }
36069
+
36070
+ const DashboardNewsletters = ({
36071
+ title,
36072
+ icon,
36073
+ store
36074
+ }) => {
36075
+ const {
36076
+ state: {
36077
+ activeDashboardLink
36078
+ },
36079
+ dispatch
36080
+ } = useContext(store);
36081
+ const {
36082
+ t
36083
+ } = useTranslation("dashboard");
36084
+
36085
+ const setActiveDashboardLink = submenuName => {
36086
+ dispatch({
36087
+ type: SET_ACTIVE_DASHBOARD_LINK,
36088
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36089
+ });
36090
+ };
36091
+
36092
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36093
+ show: showNewsletters(),
36094
+ name: SUB_MENUS.NEWSLETTERS,
36095
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgNewsletter, {
36096
+ className: "plc-transform plc--translate-x-1 plc-scale-105 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
36097
+ }),
36098
+ title: title !== null && title !== void 0 ? title : t("labels.Newsletters"),
36099
+ setActiveDashboardLink: setActiveDashboardLink,
36100
+ activeDashboardLink: activeDashboardLink
36101
+ });
36102
+ };
36103
+
36104
+ var _path$3;
36105
+
36106
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
36107
+
36108
+ function SvgMemberships(props) {
36109
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
36110
+ xmlns: "http://www.w3.org/2000/svg",
36111
+ fill: "none",
36112
+ strokeWidth: 1.5,
36113
+ stroke: "currentColor",
36114
+ width: 24,
36115
+ height: 24
36116
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
36117
+ strokeLinecap: "round",
36118
+ strokeLinejoin: "round",
36119
+ d: "M15 9h3.75M15 12h3.75M15 15h3.75M4.5 19.5h15a2.25 2.25 0 002.25-2.25V6.75A2.25 2.25 0 0019.5 4.5h-15a2.25 2.25 0 00-2.25 2.25v10.5A2.25 2.25 0 004.5 19.5zm6-10.125a1.875 1.875 0 11-3.75 0 1.875 1.875 0 013.75 0zm1.294 6.336a6.721 6.721 0 01-3.17.789 6.721 6.721 0 01-3.168-.789 3.376 3.376 0 016.338 0z"
36120
+ })));
36121
+ }
36122
+
36123
+ const DashboardMemberships = ({
36124
+ title,
36125
+ icon,
36126
+ store
36127
+ }) => {
36128
+ const {
36129
+ state: {
36130
+ activeDashboardLink
36131
+ },
36132
+ dispatch
36133
+ } = useContext(store);
36134
+ const {
36135
+ t
36136
+ } = useTranslation("dashboard");
36137
+
36138
+ const setActiveDashboardLink = submenuName => {
36139
+ dispatch({
36140
+ type: SET_ACTIVE_DASHBOARD_LINK,
36141
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36142
+ });
36143
+ };
36144
+
36145
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36146
+ show: hasActiveMemberships(),
36147
+ name: SUB_MENUS.MEMBERSHIPS,
36148
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgMemberships, {
36149
+ className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
36150
+ }),
36151
+ title: title !== null && title !== void 0 ? title : t("labels.memberships"),
36152
+ setActiveDashboardLink: setActiveDashboardLink,
36153
+ activeDashboardLink: activeDashboardLink
36154
+ });
36155
+ };
36156
+
36157
+ var _path$2;
36158
+
36159
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
36160
+
36161
+ function SvgDonate(props) {
36162
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
36163
+ width: 24,
36164
+ height: 24,
36165
+ fill: "currentColor",
36166
+ xmlns: "http://www.w3.org/2000/svg"
36167
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
36168
+ d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
36169
+ })));
36170
+ }
36171
+
36172
+ const DashboardDonations = ({
36173
+ title,
36174
+ icon,
36175
+ store
36176
+ }) => {
36177
+ const {
36178
+ state: {
36179
+ activeDashboardLink
36180
+ },
36181
+ dispatch
36182
+ } = useContext(store);
36183
+ const {
36184
+ t
36185
+ } = useTranslation("dashboard");
36186
+
36187
+ const setActiveDashboardLink = submenuName => {
36188
+ dispatch({
36189
+ type: SET_ACTIVE_DASHBOARD_LINK,
36190
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36191
+ });
36192
+ };
36193
+
36194
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36195
+ show: hasDonationSubs(),
36196
+ name: SUB_MENUS.DONATIONS,
36197
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgDonate, {
36198
+ className: "plc-transform plc-scale-120 plc-w-7 plc-h-8 plc-mr-1 plc-pt-1"
36199
+ }),
36200
+ title: title !== null && title !== void 0 ? title : t("labels.donations"),
36201
+ setActiveDashboardLink: setActiveDashboardLink,
36202
+ activeDashboardLink: activeDashboardLink
36203
+ });
36204
+ };
36205
+
36206
+ const DashboardGifts = ({
36207
+ title,
36208
+ icon,
36209
+ store
36210
+ }) => {
36211
+ const {
36212
+ state: {
36213
+ activeDashboardLink
36214
+ },
36215
+ dispatch
36216
+ } = useContext(store);
36217
+ const {
36218
+ t
36219
+ } = useTranslation("dashboard");
36220
+
36221
+ const setActiveDashboardLink = submenuName => {
36222
+ dispatch({
36223
+ type: SET_ACTIVE_DASHBOARD_LINK,
36224
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36225
+ });
36226
+ };
36227
+
36228
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36229
+ name: SUB_MENUS.GIFTS,
36230
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgGift, null),
36231
+ title: title !== null && title !== void 0 ? title : t("labels.gifts"),
36232
+ setActiveDashboardLink: setActiveDashboardLink,
36233
+ activeDashboardLink: activeDashboardLink
36234
+ });
36235
+ };
36236
+
36237
+ var _path$1;
36238
+
36239
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
36240
+
36241
+ function SvgShopping(props) {
36242
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
36243
+ className: "plc-w-6 plc-h-6 plc-mr-2",
36244
+ xmlns: "http://www.w3.org/2000/svg",
36245
+ fill: "none",
36246
+ viewBox: "0 0 24 24",
36247
+ stroke: "currentColor"
36248
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
36249
+ strokeLinecap: "round",
36250
+ strokeLinejoin: "round",
36251
+ strokeWidth: 2,
36252
+ d: "M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"
36253
+ })));
36254
+ }
36255
+
36256
+ const DashboardOrders = ({
36257
+ title,
36258
+ icon,
36259
+ store
36260
+ }) => {
36261
+ const {
36262
+ state: {
36263
+ activeDashboardLink
36264
+ },
36265
+ dispatch
36266
+ } = useContext(store);
36267
+ const {
36268
+ t
36269
+ } = useTranslation("dashboard");
36270
+
36271
+ const setActiveDashboardLink = submenuName => {
36272
+ dispatch({
36273
+ type: SET_ACTIVE_DASHBOARD_LINK,
36274
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36275
+ });
36276
+ };
36277
+
36278
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36279
+ show: window.Pelcro.site.read().ecommerce_enabled,
36280
+ name: SUB_MENUS.ORDERS,
36281
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgShopping, null),
36282
+ title: title !== null && title !== void 0 ? title : t("labels.orders.label"),
36283
+ setActiveDashboardLink: setActiveDashboardLink,
36284
+ activeDashboardLink: activeDashboardLink
36285
+ });
36286
+ };
36287
+
36288
+ const DashboardInvoices = ({
36289
+ title,
36290
+ icon,
36291
+ store
36292
+ }) => {
36293
+ const {
36294
+ state: {
36295
+ activeDashboardLink
36296
+ },
36297
+ dispatch
36298
+ } = useContext(store);
36299
+ const {
36300
+ t
36301
+ } = useTranslation("dashboard");
36302
+
36303
+ const setActiveDashboardLink = submenuName => {
36304
+ dispatch({
36305
+ type: SET_ACTIVE_DASHBOARD_LINK,
36306
+ payload: submenuName !== null && submenuName !== void 0 ? submenuName : null
36307
+ });
36308
+ };
36309
+
36310
+ return /*#__PURE__*/React__default.createElement(DashboardLink, {
36311
+ show: hasInvoices(),
36312
+ name: SUB_MENUS.INVOICES,
36313
+ icon: icon !== null && icon !== void 0 ? icon : /*#__PURE__*/React__default.createElement(SvgDocument, null),
36314
+ title: title !== null && title !== void 0 ? title : t("labels.invoices"),
36315
+ setActiveDashboardLink: setActiveDashboardLink,
36316
+ activeDashboardLink: activeDashboardLink
36317
+ });
36318
+ };
36319
+
36320
+ /**
36321
+ *
36322
+ */
36323
+
36324
+ function Dashboard(props) {
36325
+ React__default.useEffect(() => {
36326
+ var _props$onDisplay;
36327
+
36328
+ (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
36329
+ }, []);
36330
+ const {
36331
+ resetView
36332
+ } = usePelcro();
36333
+ const {
36334
+ t
36335
+ } = useTranslation("dashboard");
36336
+ return /*#__PURE__*/React__default.createElement(DashboardContainer, props, /*#__PURE__*/React__default.createElement(DashboardContent, Object.assign({
36337
+ onClose: () => {
36338
+ var _props$onClose;
36339
+
36340
+ (_props$onClose = props.onClose) === null || _props$onClose === void 0 ? void 0 : _props$onClose.call(props);
36341
+ resetView();
36342
+ }
36343
+ }, props), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36344
+ title: t("labels.mySettings")
36345
+ }), /*#__PURE__*/React__default.createElement(DashboardProfile, null), /*#__PURE__*/React__default.createElement(DashboardQRCode, null), /*#__PURE__*/React__default.createElement(DashboardPasswordChange, null), /*#__PURE__*/React__default.createElement(DashboardSavedItems, null), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36346
+ title: t("labels.accountSettings")
36347
+ }), /*#__PURE__*/React__default.createElement(DashboardPaymentCards, null), /*#__PURE__*/React__default.createElement(DashboardAddresses, null), /*#__PURE__*/React__default.createElement(DashboardHeading, {
36348
+ title: t("labels.purchases")
36349
+ }), /*#__PURE__*/React__default.createElement(DashboardSubscriptions, null), /*#__PURE__*/React__default.createElement(DashboardNewsletters, null), /*#__PURE__*/React__default.createElement(DashboardMemberships, null), /*#__PURE__*/React__default.createElement(DashboardDonations, null), /*#__PURE__*/React__default.createElement(DashboardGifts, null), /*#__PURE__*/React__default.createElement(DashboardOrders, null), /*#__PURE__*/React__default.createElement(DashboardInvoices, null)));
36015
36350
  }
36016
36351
  Dashboard.viewId = "dashboard";
36017
36352
 
@@ -38470,4 +38805,4 @@ const QrCodeModal = ({
38470
38805
  };
38471
38806
  QrCodeModal.viewId = "qrcode";
38472
38807
 
38473
- export { AddNew, AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AddressesMenu, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, Card, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, Dashboard, DashboardContainer, DashboardContent, DashboardLink, DashboardOpenButton, DatePicker, DiscountedPrice, DonationsMenu, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GiftsMenu, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, InvoicesMenu, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MembershipsMenu, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, NewslettersMenu, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, OrderItems, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeMenu, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCardsMenu, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfileMenu, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QRCodeMenu, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, SavedItems, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, SubscriptionsItems, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
38808
+ export { AddNew, AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateSetDefault, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateSetDefault, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, Card, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, Dashboard, DashboardAddresses, DashboardContainer, DashboardContent, DashboardDonations, DashboardGifts, DashboardHeading, DashboardInvoices, DashboardLink, DashboardMemberships, DashboardNewsletters, DashboardOpenButton, DashboardOrders, DashboardPasswordChange, DashboardPaymentCards, DashboardProfile, DashboardQRCode, DashboardSavedItems, DashboardSubscriptions, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, ModalHeader, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PasswordlessRequestContainer, PasswordlessRequestEmail, PasswordlessRequestModal, PasswordlessRequestView, PasswordlessRequestViewButton, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, QrCodeModal, QrCodeView, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCancelModal, SubscriptionCreateContainer, SubscriptionCreateFreePlanButton, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionManageMembersButton, SubscriptionManageMembersContainer, SubscriptionManageMembersEmails, SubscriptionManageMembersList, SubscriptionManageMembersModal, SubscriptionManageMembersView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, SubscriptionSuspendContainer, SubscriptionSuspendModal, SubscriptionSuspendView, TaxAmount, TextArea, Tooltip, UserNameInput, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateTin, UserUpdateUsername, UserUpdateView, VerifyLinkTokenContainer, VerifyLinkTokenLoader, VerifyLinkTokenModal, VerifyLinkTokenView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };