@pelcro/react-pelcro-js 4.0.0-alpha.48 → 4.0.0-alpha.49

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
@@ -10226,8 +10226,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
10226
10226
 
10227
10227
  let e={data:""},t=t=>"undefined"!=typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/g,a=/\/\*[^]*?\*\/|\s\s+|\n/g,n=(e,t)=>{let r,l="",a="",o="";for(let c in e){let s=e[c];"object"==typeof s?(r=t?t.replace(/([^,])+/g,e=>c.replace(/([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):c,a+="@"==c[0]?"f"==c[1]?n(s,c):c+"{"+n(s,"k"==c[1]?"":t)+"}":n(s,r)):"@"==c[0]&&"i"==c[1]?l=c+" "+s+";":(c=c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=n.p?n.p(c,s):c+":"+s+";");}return o[0]?(r=t?t+"{"+o+"}":o,l+r+a):l+a},o={},c=e=>{let t="";for(let r in e)t+=r+("object"==typeof e[r]?c(e[r]):e[r]);return t},s=(e,t,r,s,i)=>{let p="object"==typeof e?c(e):e,u=o[p]||(o[p]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(p));if(!o[u]){let t="object"==typeof e?e:(e=>{let t,r=[{}];for(;t=l.exec(e.replace(a,""));)t[4]&&r.shift(),t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):t[4]||(r[0][t[1]]=t[2]);return r[0]})(e);o[u]=n(i?{["@keyframes "+u]:t}:t,r?"":"."+u);}return ((e,t,r)=>{-1==t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(o[u],t,s),u},i$1=(e,t,r)=>e.reduce((e,l,a)=>{let o=t[a];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":n(e,""):e;}return e+l+(null==o?"":o)},"");function p(e){let r=this||{},l=e.call?e(r.p):e;return s(l.unshift?l.raw?i$1(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>t?Object.assign(e,t.call?t(r.p):t):e,{}):l,t(r.target),r.g,r.o,r.k)}let u,f,d;p.bind({g:1});let b=p.bind({k:1});function h(e,t,r,l){n.p=t,u=e,f=r,d=l;}function y(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=p.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=c.as||e;return d&&i[0]&&d(c),u(i,c)}return t?t(a):a}}
10228
10228
 
10229
- function _extends$D() {
10230
- _extends$D = Object.assign || function (target) {
10229
+ function _extends$E() {
10230
+ _extends$E = Object.assign || function (target) {
10231
10231
  for (var i = 1; i < arguments.length; i++) {
10232
10232
  var source = arguments[i];
10233
10233
 
@@ -10241,7 +10241,7 @@ function _extends$D() {
10241
10241
  return target;
10242
10242
  };
10243
10243
 
10244
- return _extends$D.apply(this, arguments);
10244
+ return _extends$E.apply(this, arguments);
10245
10245
  }
10246
10246
 
10247
10247
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -10331,7 +10331,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
10331
10331
  var reducer = function reducer(state, action) {
10332
10332
  switch (action.type) {
10333
10333
  case ActionType.ADD_TOAST:
10334
- return _extends$D({}, state, {
10334
+ return _extends$E({}, state, {
10335
10335
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
10336
10336
  });
10337
10337
 
@@ -10341,9 +10341,9 @@ var reducer = function reducer(state, action) {
10341
10341
  clearFromRemoveQueue(action.toast.id);
10342
10342
  }
10343
10343
 
10344
- return _extends$D({}, state, {
10344
+ return _extends$E({}, state, {
10345
10345
  toasts: state.toasts.map(function (t) {
10346
- return t.id === action.toast.id ? _extends$D({}, t, action.toast) : t;
10346
+ return t.id === action.toast.id ? _extends$E({}, t, action.toast) : t;
10347
10347
  })
10348
10348
  });
10349
10349
 
@@ -10370,9 +10370,9 @@ var reducer = function reducer(state, action) {
10370
10370
  });
10371
10371
  }
10372
10372
 
10373
- return _extends$D({}, state, {
10373
+ return _extends$E({}, state, {
10374
10374
  toasts: state.toasts.map(function (t) {
10375
- return t.id === toastId || toastId === undefined ? _extends$D({}, t, {
10375
+ return t.id === toastId || toastId === undefined ? _extends$E({}, t, {
10376
10376
  visible: false
10377
10377
  }) : t;
10378
10378
  })
@@ -10380,28 +10380,28 @@ var reducer = function reducer(state, action) {
10380
10380
 
10381
10381
  case ActionType.REMOVE_TOAST:
10382
10382
  if (action.toastId === undefined) {
10383
- return _extends$D({}, state, {
10383
+ return _extends$E({}, state, {
10384
10384
  toasts: []
10385
10385
  });
10386
10386
  }
10387
10387
 
10388
- return _extends$D({}, state, {
10388
+ return _extends$E({}, state, {
10389
10389
  toasts: state.toasts.filter(function (t) {
10390
10390
  return t.id !== action.toastId;
10391
10391
  })
10392
10392
  });
10393
10393
 
10394
10394
  case ActionType.START_PAUSE:
10395
- return _extends$D({}, state, {
10395
+ return _extends$E({}, state, {
10396
10396
  pausedAt: action.time
10397
10397
  });
10398
10398
 
10399
10399
  case ActionType.END_PAUSE:
10400
10400
  var diff = action.time - (state.pausedAt || 0);
10401
- return _extends$D({}, state, {
10401
+ return _extends$E({}, state, {
10402
10402
  pausedAt: undefined,
10403
10403
  toasts: state.toasts.map(function (t) {
10404
- return _extends$D({}, t, {
10404
+ return _extends$E({}, t, {
10405
10405
  pauseDuration: t.pauseDuration + diff
10406
10406
  });
10407
10407
  })
@@ -10448,12 +10448,12 @@ var useStore = function useStore(toastOptions) {
10448
10448
  var mergedToasts = state.toasts.map(function (t) {
10449
10449
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
10450
10450
 
10451
- return _extends$D({}, toastOptions, toastOptions[t.type], t, {
10451
+ return _extends$E({}, toastOptions, toastOptions[t.type], t, {
10452
10452
  duration: t.duration || ((_toastOptions$t$type = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type.duration) || ((_toastOptions = toastOptions) == null ? void 0 : _toastOptions.duration) || defaultTimeouts[t.type],
10453
- style: _extends$D({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
10453
+ style: _extends$E({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
10454
10454
  });
10455
10455
  });
10456
- return _extends$D({}, state, {
10456
+ return _extends$E({}, state, {
10457
10457
  toasts: mergedToasts
10458
10458
  });
10459
10459
  };
@@ -10463,7 +10463,7 @@ var createToast = function createToast(message, type, opts) {
10463
10463
  type = 'blank';
10464
10464
  }
10465
10465
 
10466
- return _extends$D({
10466
+ return _extends$E({
10467
10467
  createdAt: Date.now(),
10468
10468
  visible: true,
10469
10469
  type: type,
@@ -10513,14 +10513,14 @@ toast.remove = function (toastId) {
10513
10513
  };
10514
10514
 
10515
10515
  toast.promise = function (promise, msgs, opts) {
10516
- var id = toast.loading(msgs.loading, _extends$D({}, opts, opts == null ? void 0 : opts.loading));
10516
+ var id = toast.loading(msgs.loading, _extends$E({}, opts, opts == null ? void 0 : opts.loading));
10517
10517
  promise.then(function (p) {
10518
- toast.success(resolveValue(msgs.success, p), _extends$D({
10518
+ toast.success(resolveValue(msgs.success, p), _extends$E({
10519
10519
  id: id
10520
10520
  }, opts, opts == null ? void 0 : opts.success));
10521
10521
  return p;
10522
10522
  })["catch"](function (e) {
10523
- toast.error(resolveValue(msgs.error, e), _extends$D({
10523
+ toast.error(resolveValue(msgs.error, e), _extends$E({
10524
10524
  id: id
10525
10525
  }, opts, opts == null ? void 0 : opts.error));
10526
10526
  });
@@ -10859,7 +10859,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
10859
10859
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
10860
10860
  return createElement(ToastBarBase, {
10861
10861
  className: toast.className,
10862
- style: _extends$D({}, animationStyle, style, toast.style)
10862
+ style: _extends$E({}, animationStyle, style, toast.style)
10863
10863
  }, typeof children === 'function' ? children({
10864
10864
  icon: icon,
10865
10865
  message: message
@@ -10889,7 +10889,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
10889
10889
  } : position.includes('right') ? {
10890
10890
  justifyContent: 'flex-end'
10891
10891
  } : {};
10892
- return _extends$D({
10892
+ return _extends$E({
10893
10893
  left: 0,
10894
10894
  right: 0,
10895
10895
  display: 'flex',
@@ -10916,7 +10916,7 @@ var Toaster = function Toaster(_ref) {
10916
10916
  handlers = _useToaster.handlers;
10917
10917
 
10918
10918
  return createElement("div", {
10919
- style: _extends$D({
10919
+ style: _extends$E({
10920
10920
  position: 'fixed',
10921
10921
  zIndex: 9999,
10922
10922
  top: DEFAULT_OFFSET,
@@ -10951,82 +10951,82 @@ var Toaster = function Toaster(_ref) {
10951
10951
  }));
10952
10952
  };
10953
10953
 
10954
- var _path$z;
10954
+ var _path$A;
10955
10955
 
10956
- 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); }
10956
+ 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); }
10957
10957
 
10958
10958
  function SvgCheckSolid(props) {
10959
- return /*#__PURE__*/React.createElement("svg", _extends$C({
10959
+ return /*#__PURE__*/React.createElement("svg", _extends$D({
10960
10960
  xmlns: "http://www.w3.org/2000/svg",
10961
10961
  className: "h-5 w-5",
10962
10962
  viewBox: "0 0 20 20",
10963
10963
  fill: "currentColor"
10964
- }, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
10964
+ }, props), _path$A || (_path$A = /*#__PURE__*/React.createElement("path", {
10965
10965
  fillRule: "evenodd",
10966
10966
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
10967
10967
  clipRule: "evenodd"
10968
10968
  })));
10969
10969
  }
10970
10970
 
10971
- var _path$y;
10971
+ var _path$z;
10972
10972
 
10973
- 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); }
10973
+ 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); }
10974
10974
 
10975
10975
  function SvgXIcon(props) {
10976
- return /*#__PURE__*/React.createElement("svg", _extends$B({
10976
+ return /*#__PURE__*/React.createElement("svg", _extends$C({
10977
10977
  width: 24,
10978
10978
  height: 24,
10979
10979
  fill: "none",
10980
10980
  xmlns: "http://www.w3.org/2000/svg"
10981
- }, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
10981
+ }, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
10982
10982
  clipRule: "evenodd",
10983
10983
  d: "M4.227 4.227a.774.774 0 011.095 0L12 10.905l6.678-6.678a.774.774 0 111.095 1.095L13.095 12l6.678 6.678a.774.774 0 11-1.095 1.095L12 13.095l-6.678 6.678a.774.774 0 11-1.095-1.095L10.905 12 4.227 5.322a.774.774 0 010-1.095z"
10984
10984
  })));
10985
10985
  }
10986
10986
 
10987
- var _path$x;
10987
+ var _path$y;
10988
10988
 
10989
- 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); }
10989
+ 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); }
10990
10990
 
10991
10991
  function SvgXIconSolid(props) {
10992
- return /*#__PURE__*/React.createElement("svg", _extends$A({
10992
+ return /*#__PURE__*/React.createElement("svg", _extends$B({
10993
10993
  className: "plc-w-4 plc-h-4",
10994
10994
  fill: "currentColor",
10995
10995
  xmlns: "http://www.w3.org/2000/svg",
10996
10996
  viewBox: "0 0 100 100"
10997
- }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
10997
+ }, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
10998
10998
  d: "M94.842 48.408c0 24.852-20.148 44.999-45.002 44.999-24.851 0-44.997-20.146-44.997-44.999 0-24.854 20.146-45 44.997-45 24.853 0 45.002 20.146 45.002 45zM71.073 64.841L54.73 48.497l16.344-16.344-4.979-4.979-16.343 16.345-16.343-16.344-4.799 4.799 16.344 16.344L28.61 64.661l4.979 4.978 16.344-16.344 16.343 16.344 4.797-4.798z"
10999
10999
  })));
11000
11000
  }
11001
11001
 
11002
- var _path$w;
11002
+ var _path$x;
11003
11003
 
11004
- function _extends$z() { _extends$z = 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$z.apply(this, arguments); }
11004
+ 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); }
11005
11005
 
11006
11006
  function SvgExclamation(props) {
11007
- return /*#__PURE__*/React.createElement("svg", _extends$z({
11007
+ return /*#__PURE__*/React.createElement("svg", _extends$A({
11008
11008
  className: "plc-w-4 plc-h-4 plc-mr-1",
11009
11009
  xmlns: "http://www.w3.org/2000/svg",
11010
11010
  viewBox: "0 0 20 20",
11011
11011
  fill: "currentColor"
11012
- }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
11012
+ }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
11013
11013
  fillRule: "evenodd",
11014
11014
  d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
11015
11015
  clipRule: "evenodd"
11016
11016
  })));
11017
11017
  }
11018
11018
 
11019
- var _path$v, _path2$3;
11019
+ var _path$w, _path2$3;
11020
11020
 
11021
- function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
11021
+ function _extends$z() { _extends$z = 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$z.apply(this, arguments); }
11022
11022
 
11023
11023
  function SvgSpinner(props) {
11024
- return /*#__PURE__*/React.createElement("svg", _extends$y({
11024
+ return /*#__PURE__*/React.createElement("svg", _extends$z({
11025
11025
  className: "plc-animate-spin",
11026
11026
  viewBox: "0 0 24 24",
11027
11027
  fill: "currentColor",
11028
11028
  xmlns: "http://www.w3.org/2000/svg"
11029
- }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
11029
+ }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
11030
11030
  opacity: 0.2,
11031
11031
  fill: "evenodd",
11032
11032
  clipRule: "evenodd",
@@ -12515,7 +12515,7 @@ const showPaymentMethodUpdateFromUrl = () => {
12515
12515
  return switchView("payment-method-update");
12516
12516
  });
12517
12517
  return;
12518
- } //vantiv
12518
+ } // vantiv
12519
12519
 
12520
12520
 
12521
12521
  if (supportsVantiv) {
@@ -12523,7 +12523,7 @@ const showPaymentMethodUpdateFromUrl = () => {
12523
12523
  return switchView("payment-method-update");
12524
12524
  });
12525
12525
  return;
12526
- } //Tap
12526
+ } // Tap
12527
12527
 
12528
12528
 
12529
12529
  if (supportsTap && document.querySelector("#tap-sdk")) {
@@ -13510,16 +13510,16 @@ const LoginButton = ({
13510
13510
  }, otherProps), name !== null && name !== void 0 ? name : t("labels.login"));
13511
13511
  };
13512
13512
 
13513
- var _path$u, _path2$2;
13513
+ var _path$v, _path2$2;
13514
13514
 
13515
- function _extends$x() { _extends$x = 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$x.apply(this, arguments); }
13515
+ function _extends$y() { _extends$y = 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$y.apply(this, arguments); }
13516
13516
 
13517
13517
  function SvgEmailVerify(props) {
13518
- return /*#__PURE__*/React.createElement("svg", _extends$x({
13518
+ return /*#__PURE__*/React.createElement("svg", _extends$y({
13519
13519
  className: "plc-w-6 plc-h-6",
13520
13520
  viewBox: "0 0 700 700",
13521
13521
  xmlns: "http://www.w3.org/2000/svg"
13522
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
13522
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
13523
13523
  d: "M583.01 231.93a15.008 15.008 0 00-.887-3.875c-.562-1.254-1.129-2.508-1.695-3.762a14.686 14.686 0 00-1.898-1.789c-.438-.437-.653-1.027-1.153-1.414l-56.266-44.164v-52.484a15.555 15.555 0 00-15.554-15.555H434.56l-74.945-58.895a15.547 15.547 0 00-19.227 0l-74.945 58.895h-70.996a15.555 15.555 0 00-15.555 15.555v52.484l-56.266 44.16c-.496.39-.715.996-1.152 1.43v.004a13.37 13.37 0 00-1.898 1.773c-.22.426-.414.86-.59 1.305a14.158 14.158 0 00-1.106 2.457 15.009 15.009 0 00-.886 3.875c0 .48-.329.918-.329 1.398l.004 264.45a15.555 15.555 0 0015.555 15.555h435.55a15.555 15.555 0 0015.555-15.555v-264.45c0-.48-.278-.918-.325-1.398zm-41.176.809l-20.723 14.809v-31.11zm-191.83-150.73l34.223 26.883h-68.445zm-140 57.992h280v124.45c.07 1.593.383 3.168.934 4.664l-140.93 100.66-140.46-100.33c.214-.77.37-1.555.464-2.348zm-31.109 107.55l-20.719-14.81 20.719-16.27zm-31.113 234.67V263.56l193.18 137.99a15.562 15.562 0 0018.078 0l193.18-137.99v218.66z"
13524
13524
  })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
13525
13525
  d: "M324.33 291.81a15.56 15.56 0 0020.582-.297l85.555-77.777a15.56 15.56 0 00-20.938-23.023l-75.398 68.539-44.023-37.723a15.54 15.54 0 00-11.46-4.106 15.553 15.553 0 00-8.758 27.718z"
@@ -13560,16 +13560,16 @@ const LoginPassword = props => /*#__PURE__*/React__default.createElement(Passwor
13560
13560
  store: store$o
13561
13561
  }, props));
13562
13562
 
13563
- var _path$t;
13563
+ var _path$u;
13564
13564
 
13565
- function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
13565
+ function _extends$x() { _extends$x = 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$x.apply(this, arguments); }
13566
13566
 
13567
13567
  function SvgCheck(props) {
13568
- return /*#__PURE__*/React.createElement("svg", _extends$w({
13568
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
13569
13569
  xmlns: "http://www.w3.org/2000/svg",
13570
13570
  fill: "currentColor",
13571
13571
  viewBox: "0 0 20 20"
13572
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
13572
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
13573
13573
  fillRule: "evenodd",
13574
13574
  d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
13575
13575
  clipRule: "evenodd"
@@ -13896,15 +13896,15 @@ function hasSecurityTokenEnabled$1() {
13896
13896
  return hasSecuritySdkLoaded;
13897
13897
  }
13898
13898
 
13899
- var _path$s;
13899
+ var _path$t;
13900
13900
 
13901
- function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
13901
+ function _extends$w() { _extends$w = 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$w.apply(this, arguments); }
13902
13902
 
13903
13903
  function SvgFacebookLogo(props) {
13904
- return /*#__PURE__*/React.createElement("svg", _extends$v({
13904
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
13905
13905
  xmlns: "http://www.w3.org/2000/svg",
13906
13906
  viewBox: "88.428 12.828 107.543 207.085"
13907
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
13907
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
13908
13908
  d: "M158.232 219.912v-94.461h31.707l4.747-36.813h-36.454V65.134c0-10.658 2.96-17.922 18.245-17.922l19.494-.009V14.278c-3.373-.447-14.944-1.449-28.406-1.449-28.106 0-47.348 17.155-47.348 48.661v27.149H88.428v36.813h31.788v94.461l38.016-.001z",
13909
13909
  fill: "#3c5a9a"
13910
13910
  })));
@@ -13978,15 +13978,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
13978
13978
  unwrapExports(googleLogin);
13979
13979
  var googleLogin_1 = googleLogin.GoogleLogin;
13980
13980
 
13981
- var _path$r, _path2$1, _path3, _path4;
13981
+ var _path$s, _path2$1, _path3, _path4;
13982
13982
 
13983
- function _extends$u() { _extends$u = 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$u.apply(this, arguments); }
13983
+ function _extends$v() { _extends$v = 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$v.apply(this, arguments); }
13984
13984
 
13985
13985
  function SvgGoogleLogo(props) {
13986
- return /*#__PURE__*/React.createElement("svg", _extends$u({
13986
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
13987
13987
  viewBox: "0 0 24 24",
13988
13988
  xmlns: "http://www.w3.org/2000/svg"
13989
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
13989
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
13990
13990
  fill: "#4285F4",
13991
13991
  d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"
13992
13992
  })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
@@ -14149,15 +14149,15 @@ const GoogleLoginButton = ({
14149
14149
  }) : null;
14150
14150
  };
14151
14151
 
14152
- var _path$q;
14152
+ var _path$r;
14153
14153
 
14154
- function _extends$t() { _extends$t = 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$t.apply(this, arguments); }
14154
+ function _extends$u() { _extends$u = 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$u.apply(this, arguments); }
14155
14155
 
14156
14156
  function SvgAuth0Logo(props) {
14157
- return /*#__PURE__*/React.createElement("svg", _extends$t({
14157
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
14158
14158
  viewBox: "0 0 256 285",
14159
14159
  xmlns: "http://www.w3.org/2000/svg"
14160
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
14160
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
14161
14161
  d: "M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077 28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0zM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51-74.77-53.078zm46.208 142.588l74.77 52.97 74.77-52.97-74.77-53.847-74.77 53.847z"
14162
14162
  })));
14163
14163
  }
@@ -14363,10 +14363,10 @@ function LoginView(props) {
14363
14363
  }))));
14364
14364
  }
14365
14365
 
14366
- function _extends$s() { _extends$s = 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$s.apply(this, arguments); }
14366
+ function _extends$t() { _extends$t = 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$t.apply(this, arguments); }
14367
14367
 
14368
14368
  function SvgPelcroAuthorship(props) {
14369
- return /*#__PURE__*/React.createElement("svg", _extends$s({
14369
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
14370
14370
  xmlns: "http://www.w3.org/2000/svg",
14371
14371
  xmlnsXlink: "http://www.w3.org/1999/xlink",
14372
14372
  width: 65.306,
@@ -19664,34 +19664,34 @@ exports["default"] = _default;
19664
19664
 
19665
19665
  var Slider = unwrapExports(lib$1);
19666
19666
 
19667
- var _path$p;
19667
+ var _path$q;
19668
19668
 
19669
- function _extends$r() { _extends$r = 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$r.apply(this, arguments); }
19669
+ function _extends$s() { _extends$s = 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$s.apply(this, arguments); }
19670
19670
 
19671
19671
  function SvgArrowThinRight(props) {
19672
- return /*#__PURE__*/React.createElement("svg", _extends$r({
19672
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
19673
19673
  xmlns: "http://www.w3.org/2000/svg",
19674
19674
  viewBox: "0 0 14.121 25.414",
19675
19675
  fill: "none",
19676
19676
  stroke: "#fff"
19677
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
19677
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
19678
19678
  "data-name": "Path 25368",
19679
19679
  d: "M.707.705l12 12-12 12",
19680
19680
  strokeWidth: 2
19681
19681
  })));
19682
19682
  }
19683
19683
 
19684
- var _path$o;
19684
+ var _path$p;
19685
19685
 
19686
- function _extends$q() { _extends$q = 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$q.apply(this, arguments); }
19686
+ function _extends$r() { _extends$r = 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$r.apply(this, arguments); }
19687
19687
 
19688
19688
  function SvgArrowThinLeft(props) {
19689
- return /*#__PURE__*/React.createElement("svg", _extends$q({
19689
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
19690
19690
  xmlns: "http://www.w3.org/2000/svg",
19691
19691
  viewBox: "0 0 14.121 25.414",
19692
19692
  fill: "none",
19693
19693
  stroke: "#fff"
19694
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
19694
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
19695
19695
  "data-name": "Path 25368",
19696
19696
  d: "M13.414.705l-12 12 12 12",
19697
19697
  strokeWidth: 2
@@ -19782,17 +19782,17 @@ function Carousel({
19782
19782
  }, settings), children));
19783
19783
  }
19784
19784
 
19785
- var _path$n;
19785
+ var _path$o;
19786
19786
 
19787
- function _extends$p() { _extends$p = 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$p.apply(this, arguments); }
19787
+ function _extends$q() { _extends$q = 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$q.apply(this, arguments); }
19788
19788
 
19789
19789
  function SvgArrowLeft(props) {
19790
- return /*#__PURE__*/React.createElement("svg", _extends$p({
19790
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
19791
19791
  xmlns: "http://www.w3.org/2000/svg",
19792
19792
  fill: "none",
19793
19793
  viewBox: "0 0 24 24",
19794
19794
  stroke: "currentColor"
19795
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
19795
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
19796
19796
  strokeLinecap: "round",
19797
19797
  strokeLinejoin: "round",
19798
19798
  strokeWidth: 2,
@@ -25647,17 +25647,17 @@ const CouponCodeField = props => {
25647
25647
  }, props));
25648
25648
  };
25649
25649
 
25650
- var _path$m;
25650
+ var _path$n;
25651
25651
 
25652
- function _extends$o() { _extends$o = 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$o.apply(this, arguments); }
25652
+ function _extends$p() { _extends$p = 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$p.apply(this, arguments); }
25653
25653
 
25654
25654
  function SvgTicket(props) {
25655
- return /*#__PURE__*/React.createElement("svg", _extends$o({
25655
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
25656
25656
  xmlns: "http://www.w3.org/2000/svg",
25657
25657
  fill: "none",
25658
25658
  viewBox: "0 0 24 24",
25659
25659
  stroke: "currentColor"
25660
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
25660
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
25661
25661
  strokeLinecap: "round",
25662
25662
  strokeLinejoin: "round",
25663
25663
  strokeWidth: 2,
@@ -26038,16 +26038,16 @@ const BankRedirection = () => {
26038
26038
  }));
26039
26039
  };
26040
26040
 
26041
- var _path$l;
26041
+ var _path$m;
26042
26042
 
26043
- function _extends$n() { _extends$n = 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$n.apply(this, arguments); }
26043
+ function _extends$o() { _extends$o = 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$o.apply(this, arguments); }
26044
26044
 
26045
26045
  function SvgLock(props) {
26046
- return /*#__PURE__*/React.createElement("svg", _extends$n({
26046
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
26047
26047
  xmlns: "http://www.w3.org/2000/svg",
26048
26048
  viewBox: "0 0 20 20",
26049
26049
  fill: "currentColor"
26050
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
26050
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
26051
26051
  fillRule: "evenodd",
26052
26052
  d: "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",
26053
26053
  clipRule: "evenodd"
@@ -26906,18 +26906,18 @@ const SubscriptionCancelContainer = ({
26906
26906
  })));
26907
26907
  };
26908
26908
 
26909
- var _path$k;
26909
+ var _path$l;
26910
26910
 
26911
- function _extends$m() { _extends$m = 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$m.apply(this, arguments); }
26911
+ function _extends$n() { _extends$n = 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$n.apply(this, arguments); }
26912
26912
 
26913
26913
  function SvgInfoCircle(props) {
26914
- return /*#__PURE__*/React.createElement("svg", _extends$m({
26914
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
26915
26915
  xmlns: "http://www.w3.org/2000/svg",
26916
26916
  className: "plc-w-5 plc-h-5",
26917
26917
  fill: "none",
26918
26918
  viewBox: "0 0 24 24",
26919
26919
  stroke: "currentColor"
26920
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
26920
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
26921
26921
  strokeLinecap: "round",
26922
26922
  strokeLinejoin: "round",
26923
26923
  strokeWidth: 2,
@@ -27004,10 +27004,10 @@ const SubscriptionCancelReason = props => {
27004
27004
 
27005
27005
  var _switch;
27006
27006
 
27007
- function _extends$l() { _extends$l = 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$l.apply(this, arguments); }
27007
+ function _extends$m() { _extends$m = 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$m.apply(this, arguments); }
27008
27008
 
27009
27009
  function SvgSubscription(props) {
27010
- return /*#__PURE__*/React.createElement("svg", _extends$l({
27010
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
27011
27011
  xmlns: "http://www.w3.org/2000/svg",
27012
27012
  viewBox: "0 0 100 125",
27013
27013
  fill: "currentColor"
@@ -27522,12 +27522,12 @@ function SubscriptionSuspendModal({
27522
27522
  }
27523
27523
  SubscriptionSuspendModal.viewId = "subscription-suspend";
27524
27524
 
27525
- var _path$j;
27525
+ var _path$k;
27526
27526
 
27527
- function _extends$k() { _extends$k = 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$k.apply(this, arguments); }
27527
+ function _extends$l() { _extends$l = 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$l.apply(this, arguments); }
27528
27528
 
27529
27529
  function SvgGift(props) {
27530
- return /*#__PURE__*/React.createElement("svg", _extends$k({
27530
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
27531
27531
  className: "plc-w-6 plc-h-6 plc-mr-2",
27532
27532
  fill: "none",
27533
27533
  stroke: "currentColor",
@@ -27536,7 +27536,7 @@ function SvgGift(props) {
27536
27536
  strokeWidth: 2,
27537
27537
  viewBox: "0 0 24 24",
27538
27538
  xmlns: "http://www.w3.org/2000/svg"
27539
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
27539
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
27540
27540
  d: "M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z"
27541
27541
  })));
27542
27542
  }
@@ -28631,17 +28631,17 @@ function SubscriptionManageMembersEmails(props) {
28631
28631
  }, props));
28632
28632
  }
28633
28633
 
28634
- var _path$i;
28634
+ var _path$j;
28635
28635
 
28636
- function _extends$j() { _extends$j = 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$j.apply(this, arguments); }
28636
+ function _extends$k() { _extends$k = 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$k.apply(this, arguments); }
28637
28637
 
28638
28638
  function SvgCheckMark(props) {
28639
- return /*#__PURE__*/React.createElement("svg", _extends$j({
28639
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
28640
28640
  className: "plc-w-4 plc-h-4 plc-mr-1",
28641
28641
  xmlns: "http://www.w3.org/2000/svg",
28642
28642
  viewBox: "0 0 20 20",
28643
28643
  fill: "currentColor"
28644
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
28644
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
28645
28645
  fillRule: "evenodd",
28646
28646
  d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
28647
28647
  clipRule: "evenodd"
@@ -29051,17 +29051,17 @@ const UserUpdateContainer = ({
29051
29051
  })));
29052
29052
  };
29053
29053
 
29054
- var _path$h;
29054
+ var _path$i;
29055
29055
 
29056
- function _extends$i() { _extends$i = 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$i.apply(this, arguments); }
29056
+ function _extends$j() { _extends$j = 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$j.apply(this, arguments); }
29057
29057
 
29058
29058
  function SvgEdit(props) {
29059
- return /*#__PURE__*/React.createElement("svg", _extends$i({
29059
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
29060
29060
  className: "plc-w-6 plc-h-6",
29061
29061
  xmlns: "http://www.w3.org/2000/svg",
29062
29062
  viewBox: "0 0 20 20",
29063
29063
  fill: "currentColor"
29064
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
29064
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
29065
29065
  d: "M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zm-2.207 2.207L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"
29066
29066
  })));
29067
29067
  }
@@ -34160,7 +34160,7 @@ const PaymentMethodDeleteModal = props => {
34160
34160
  className: "plc-text-sm"
34161
34161
  }, t("delete.subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteView, Object.assign({}, props, {
34162
34162
  onSuccess: onSuccess
34163
- }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
34163
+ }))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
34164
34164
  };
34165
34165
  PaymentMethodDeleteModal.viewId = "payment-method-delete";
34166
34166
 
@@ -34227,7 +34227,7 @@ const PaymentMethodCreateModal = props => {
34227
34227
  className: "plc-text-sm"
34228
34228
  }, t("create.subtitle")))), /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodCreateView, Object.assign({}, props, {
34229
34229
  onSuccess: onSuccess
34230
- }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
34230
+ }))), /*#__PURE__*/React__default.createElement(ModalFooter, null));
34231
34231
  };
34232
34232
  PaymentMethodCreateModal.viewId = "payment-method-create";
34233
34233
 
@@ -34467,8 +34467,8 @@ const DashboardContainer = ({
34467
34467
  })));
34468
34468
  };
34469
34469
 
34470
- function _extends$h() {
34471
- _extends$h = Object.assign || function (target) {
34470
+ function _extends$i() {
34471
+ _extends$i = Object.assign || function (target) {
34472
34472
  for (var i = 1; i < arguments.length; i++) {
34473
34473
  var source = arguments[i];
34474
34474
 
@@ -34482,7 +34482,7 @@ function _extends$h() {
34482
34482
  return target;
34483
34483
  };
34484
34484
 
34485
- return _extends$h.apply(this, arguments);
34485
+ return _extends$i.apply(this, arguments);
34486
34486
  }
34487
34487
 
34488
34488
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -34666,7 +34666,7 @@ function render(props, propsBag, defaultTag, features, visible) {
34666
34666
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
34667
34667
  return null;
34668
34668
  }, _match[RenderStrategy.Hidden] = function () {
34669
- return _render(_extends$h({}, _rest, {
34669
+ return _render(_extends$i({}, _rest, {
34670
34670
  hidden: true,
34671
34671
  style: {
34672
34672
  display: 'none'
@@ -35194,7 +35194,7 @@ function TransitionChild(props) {
35194
35194
  var passthroughProps = rest;
35195
35195
  return React__default.createElement(NestingContext.Provider, {
35196
35196
  value: nesting
35197
- }, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
35197
+ }, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
35198
35198
  }
35199
35199
 
35200
35200
  function Transition(props) {
@@ -35238,7 +35238,7 @@ function Transition(props) {
35238
35238
  value: nestingBag
35239
35239
  }, React__default.createElement(TransitionContext.Provider, {
35240
35240
  value: transitionBag
35241
- }, render(_extends$h({}, sharedProps, {
35241
+ }, render(_extends$i({}, sharedProps, {
35242
35242
  as: Fragment,
35243
35243
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
35244
35244
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -35365,12 +35365,12 @@ var ActionTypes;
35365
35365
  })(ActionTypes || (ActionTypes = {}));
35366
35366
 
35367
35367
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
35368
- return _extends$h({}, state, {
35368
+ return _extends$i({}, state, {
35369
35369
  activeItemIndex: null,
35370
35370
  menuState: MenuStates.Closed
35371
35371
  });
35372
35372
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
35373
- return _extends$h({}, state, {
35373
+ return _extends$i({}, state, {
35374
35374
  menuState: MenuStates.Open
35375
35375
  });
35376
35376
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -35389,7 +35389,7 @@ var ActionTypes;
35389
35389
  }
35390
35390
  });
35391
35391
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
35392
- return _extends$h({}, state, {
35392
+ return _extends$i({}, state, {
35393
35393
  searchQuery: '',
35394
35394
  activeItemIndex: activeItemIndex
35395
35395
  });
@@ -35400,19 +35400,19 @@ var ActionTypes;
35400
35400
 
35401
35401
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
35402
35402
  });
35403
- if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
35403
+ if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
35404
35404
  searchQuery: searchQuery
35405
35405
  });
35406
- return _extends$h({}, state, {
35406
+ return _extends$i({}, state, {
35407
35407
  searchQuery: searchQuery,
35408
35408
  activeItemIndex: match
35409
35409
  });
35410
35410
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
35411
- return _extends$h({}, state, {
35411
+ return _extends$i({}, state, {
35412
35412
  searchQuery: ''
35413
35413
  });
35414
35414
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
35415
- return _extends$h({}, state, {
35415
+ return _extends$i({}, state, {
35416
35416
  items: [].concat(state.items, [{
35417
35417
  id: action.id,
35418
35418
  dataRef: action.dataRef
@@ -35425,7 +35425,7 @@ var ActionTypes;
35425
35425
  return a.id === action.id;
35426
35426
  });
35427
35427
  if (idx !== -1) nextItems.splice(idx, 1);
35428
- return _extends$h({}, state, {
35428
+ return _extends$i({}, state, {
35429
35429
  items: nextItems,
35430
35430
  activeItemIndex: function () {
35431
35431
  if (idx === state.activeItemIndex) return null;
@@ -35464,19 +35464,19 @@ var ActionTypes$1;
35464
35464
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
35465
35465
  if (state.disabled) return state;
35466
35466
  if (state.listboxState === ListboxStates.Closed) return state;
35467
- return _extends$h({}, state, {
35467
+ return _extends$i({}, state, {
35468
35468
  activeOptionIndex: null,
35469
35469
  listboxState: ListboxStates.Closed
35470
35470
  });
35471
35471
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
35472
35472
  if (state.disabled) return state;
35473
35473
  if (state.listboxState === ListboxStates.Open) return state;
35474
- return _extends$h({}, state, {
35474
+ return _extends$i({}, state, {
35475
35475
  listboxState: ListboxStates.Open
35476
35476
  });
35477
35477
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
35478
35478
  if (state.disabled === action.disabled) return state;
35479
- return _extends$h({}, state, {
35479
+ return _extends$i({}, state, {
35480
35480
  disabled: action.disabled
35481
35481
  });
35482
35482
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -35497,7 +35497,7 @@ var ActionTypes$1;
35497
35497
  }
35498
35498
  });
35499
35499
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
35500
- return _extends$h({}, state, {
35500
+ return _extends$i({}, state, {
35501
35501
  searchQuery: '',
35502
35502
  activeOptionIndex: activeOptionIndex
35503
35503
  });
@@ -35510,10 +35510,10 @@ var ActionTypes$1;
35510
35510
 
35511
35511
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
35512
35512
  });
35513
- if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
35513
+ if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
35514
35514
  searchQuery: searchQuery
35515
35515
  });
35516
- return _extends$h({}, state, {
35516
+ return _extends$i({}, state, {
35517
35517
  searchQuery: searchQuery,
35518
35518
  activeOptionIndex: match
35519
35519
  });
@@ -35521,11 +35521,11 @@ var ActionTypes$1;
35521
35521
  if (state.disabled) return state;
35522
35522
  if (state.listboxState === ListboxStates.Closed) return state;
35523
35523
  if (state.searchQuery === '') return state;
35524
- return _extends$h({}, state, {
35524
+ return _extends$i({}, state, {
35525
35525
  searchQuery: ''
35526
35526
  });
35527
35527
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
35528
- return _extends$h({}, state, {
35528
+ return _extends$i({}, state, {
35529
35529
  options: [].concat(state.options, [{
35530
35530
  id: action.id,
35531
35531
  dataRef: action.dataRef
@@ -35538,7 +35538,7 @@ var ActionTypes$1;
35538
35538
  return a.id === action.id;
35539
35539
  });
35540
35540
  if (idx !== -1) nextOptions.splice(idx, 1);
35541
- return _extends$h({}, state, {
35541
+ return _extends$i({}, state, {
35542
35542
  options: nextOptions,
35543
35543
  activeOptionIndex: function () {
35544
35544
  if (idx === state.activeOptionIndex) return null;
@@ -35556,18 +35556,18 @@ Features.RenderStrategy | Features.Static;
35556
35556
  var GroupContext = /*#__PURE__*/createContext(null);
35557
35557
  GroupContext.displayName = 'GroupContext';
35558
35558
 
35559
- var _path$g;
35559
+ var _path$h;
35560
35560
 
35561
- function _extends$g() { _extends$g = 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$g.apply(this, arguments); }
35561
+ function _extends$h() { _extends$h = 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$h.apply(this, arguments); }
35562
35562
 
35563
35563
  function SvgExit(props) {
35564
- return /*#__PURE__*/React.createElement("svg", _extends$g({
35564
+ return /*#__PURE__*/React.createElement("svg", _extends$h({
35565
35565
  className: "plc-w-6 plc-h-6",
35566
35566
  xmlns: "http://www.w3.org/2000/svg",
35567
35567
  fill: "none",
35568
35568
  viewBox: "0 0 24 24",
35569
35569
  stroke: "currentColor"
35570
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
35570
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
35571
35571
  strokeLinecap: "round",
35572
35572
  strokeLinejoin: "round",
35573
35573
  strokeWidth: 2,
@@ -35575,18 +35575,18 @@ function SvgExit(props) {
35575
35575
  })));
35576
35576
  }
35577
35577
 
35578
- var _path$f;
35578
+ var _path$g;
35579
35579
 
35580
- 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); }
35580
+ function _extends$g() { _extends$g = 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$g.apply(this, arguments); }
35581
35581
 
35582
35582
  function SvgChevronRight(props) {
35583
- return /*#__PURE__*/React.createElement("svg", _extends$f({
35583
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
35584
35584
  className: "plc-w-6 plc-h-6",
35585
35585
  xmlns: "http://www.w3.org/2000/svg",
35586
35586
  fill: "none",
35587
35587
  viewBox: "0 0 24 24",
35588
35588
  stroke: "currentColor"
35589
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
35589
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
35590
35590
  strokeLinecap: "round",
35591
35591
  strokeLinejoin: "round",
35592
35592
  strokeWidth: 2,
@@ -35725,18 +35725,18 @@ const SavedItems = ({
35725
35725
  });
35726
35726
  };
35727
35727
 
35728
- var _path$e;
35728
+ var _path$f;
35729
35729
 
35730
- 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); }
35730
+ 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); }
35731
35731
 
35732
35732
  function SvgRefresh(props) {
35733
- return /*#__PURE__*/React.createElement("svg", _extends$e({
35733
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
35734
35734
  className: "plc-w-4 plc-h-4 plc-mr-1",
35735
35735
  xmlns: "http://www.w3.org/2000/svg",
35736
35736
  fill: "none",
35737
35737
  viewBox: "0 0 24 24",
35738
35738
  stroke: "currentColor"
35739
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
35739
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
35740
35740
  strokeLinecap: "round",
35741
35741
  strokeLinejoin: "round",
35742
35742
  strokeWidth: 2,
@@ -35744,35 +35744,35 @@ function SvgRefresh(props) {
35744
35744
  })));
35745
35745
  }
35746
35746
 
35747
- var _path$d;
35747
+ var _path$e;
35748
35748
 
35749
- 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); }
35749
+ 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); }
35750
35750
 
35751
35751
  function SvgCalendar(props) {
35752
- return /*#__PURE__*/React.createElement("svg", _extends$d({
35752
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
35753
35753
  xmlns: "http://www.w3.org/2000/svg",
35754
35754
  className: "plc-h-4 plc-w-4 plc-mr-1",
35755
35755
  viewBox: "0 0 20 20",
35756
35756
  fill: "currentColor"
35757
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
35757
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
35758
35758
  fillRule: "evenodd",
35759
35759
  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",
35760
35760
  clipRule: "evenodd"
35761
35761
  })));
35762
35762
  }
35763
35763
 
35764
- var _path$c;
35764
+ var _path$d;
35765
35765
 
35766
- 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); }
35766
+ 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); }
35767
35767
 
35768
35768
  function SvgPlus(props) {
35769
- return /*#__PURE__*/React.createElement("svg", _extends$c({
35769
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
35770
35770
  className: "plc-w-5 plc-h-5",
35771
35771
  xmlns: "http://www.w3.org/2000/svg",
35772
35772
  fill: "none",
35773
35773
  viewBox: "0 0 24 24",
35774
35774
  stroke: "currentColor"
35775
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
35775
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
35776
35776
  strokeLinecap: "round",
35777
35777
  strokeLinejoin: "round",
35778
35778
  strokeWidth: 2,
@@ -36438,18 +36438,18 @@ function formatStartDate(date) {
36438
36438
  return new Intl.DateTimeFormat("en-CA").format(startDate);
36439
36439
  }
36440
36440
 
36441
- var _path$b;
36441
+ var _path$c;
36442
36442
 
36443
- 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); }
36443
+ 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); }
36444
36444
 
36445
36445
  function SvgDocument(props) {
36446
- return /*#__PURE__*/React.createElement("svg", _extends$b({
36446
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
36447
36447
  xmlns: "http://www.w3.org/2000/svg",
36448
36448
  className: "plc-h-6 plc-w-6 plc-mr-2",
36449
36449
  fill: "none",
36450
36450
  viewBox: "0 0 24 24",
36451
36451
  stroke: "currentColor"
36452
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
36452
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
36453
36453
  strokeLinecap: "round",
36454
36454
  strokeLinejoin: "round",
36455
36455
  strokeWidth: 2,
@@ -36938,50 +36938,138 @@ const AddressesItems = props => {
36938
36938
  })));
36939
36939
  };
36940
36940
 
36941
+ var _path$b;
36942
+
36943
+ 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); }
36944
+
36945
+ function SvgTrashCan(props) {
36946
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
36947
+ className: "plc-w-6 plc-h-6",
36948
+ xmlns: "http://www.w3.org/2000/svg",
36949
+ viewBox: "0 0 448 512",
36950
+ fill: "currentColor"
36951
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
36952
+ d: "M135.2 17.7C140.6 6.8 151.7 0 163.8 0h120.4c12.1 0 23.2 6.8 28.6 17.7L320 32h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 96 0 81.7 0 64s14.3-32 32-32h96l7.2-14.3zM32 128h384v320c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V128zm96 64c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16v224c0 8.8 7.2 16 16 16s16-7.2 16-16V208c0-8.8-7.2-16-16-16z"
36953
+ })));
36954
+ }
36955
+
36941
36956
  const PaymentCardsMenu = props => {
36942
36957
  const {
36943
36958
  t
36944
36959
  } = useTranslation("dashboard");
36945
36960
  const {
36946
- switchView
36961
+ switchView,
36962
+ setPaymentMethodToEdit,
36963
+ setPaymentMethodToDelete
36947
36964
  } = usePelcro();
36948
- const source = window.Pelcro.user.read().source;
36965
+ const [sources, setSources] = useState([]); // const source = window.Pelcro.user.read().source;
36966
+
36967
+ useEffect(() => {
36968
+ window.Pelcro.paymentMethods.list({
36969
+ auth_token: window.Pelcro.user.read().auth_token
36970
+ }, (err, res) => {
36971
+ if (err) {
36972
+ return console.error(err);
36973
+ }
36974
+
36975
+ if (res) {
36976
+ setSources(res.data);
36977
+ }
36978
+ });
36979
+ }, []);
36949
36980
 
36950
36981
  const displaySourceCreate = () => {
36982
+ return switchView("payment-method-create");
36983
+ };
36984
+
36985
+ const displaySourceEdit = e => {
36986
+ const source = e.currentTarget.dataset.key;
36987
+ setPaymentMethodToEdit(source);
36951
36988
  return switchView("payment-method-update");
36952
36989
  };
36953
36990
 
36991
+ const deletePaymentMethod = (paymentMethodId, onSuccess, onFailure) => {
36992
+ // disable the Login button to prevent repeated clicks
36993
+ window.Pelcro.paymentMethods.deletePaymentMethod({
36994
+ auth_token: window.Pelcro.user.read().auth_token,
36995
+ payment_method_id: paymentMethodId
36996
+ }, (err, res) => {
36997
+ if (err) {
36998
+ return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
36999
+ }
37000
+
37001
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
37002
+ });
37003
+ };
37004
+
37005
+ const onDeletePaymentMethodClick = source => {
37006
+ const isDeletable = source === null || source === void 0 ? void 0 : source.deletable;
37007
+
37008
+ if (isDeletable) {
37009
+ notify.confirm((onSuccess, onFailure) => {
37010
+ deletePaymentMethod(source.id, onSuccess, onFailure);
37011
+ }, {
37012
+ confirmMessage: t("messages.paymentMethodDeletion.isSureToDelete"),
37013
+ loadingMessage: t("messages.paymentMethodDeletion.loading"),
37014
+ successMessage: t("messages.paymentMethodDeletion.success"),
37015
+ errorMessage: t("messages.paymentMethodDeletion.error")
37016
+ }, {
37017
+ closeButtonLabel: t("labels.subCancellation.goBack")
37018
+ });
37019
+ } else {
37020
+ setPaymentMethodToDelete(source.id);
37021
+ return switchView("payment-method-delete");
37022
+ }
37023
+ };
37024
+
36954
37025
  return /*#__PURE__*/React__default.createElement(Card, {
36955
37026
  id: "pelcro-dashboard-payment-menu",
36956
37027
  className: "plc-max-w-100% md:plc-max-w-60% plc-m-auto",
36957
37028
  title: t("labels.paymentSource")
36958
- }, source ? /*#__PURE__*/React__default.createElement(PaymentCardsItems, {
36959
- displaySourceCreate: displaySourceCreate,
36960
- source: source
36961
- }) : /*#__PURE__*/React__default.createElement(AddNew, {
37029
+ }, /*#__PURE__*/React__default.createElement(PaymentCardsItems, {
37030
+ displaySourceEdit: displaySourceEdit,
37031
+ onDeletePaymentMethodClick: onDeletePaymentMethodClick,
37032
+ sources: sources
37033
+ }), /*#__PURE__*/React__default.createElement(AddNew, {
36962
37034
  title: t("labels.addCard"),
36963
37035
  onClick: displaySourceCreate
36964
37036
  }));
36965
37037
  };
36966
37038
 
36967
37039
  const PaymentCardsItems = props => {
36968
- var _props$source, _props$source$propert, _props$source2, _props$source2$proper;
36969
-
36970
37040
  useTranslation("dashboard");
36971
- return /*#__PURE__*/React__default.createElement("div", {
36972
- className: `plc-py-4 plc-px-6 plc-mt-5 plc-flex plc-items-center plc-justify-between last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-bg-white plc-shadow-md_dark`
36973
- }, /*#__PURE__*/React__default.createElement("div", {
36974
- className: "plc-flex plc-items-center"
36975
- }, /*#__PURE__*/React__default.createElement("p", {
36976
- className: "plc-mr-6"
36977
- }, getPaymentCardIcon(props === null || props === void 0 ? void 0 : (_props$source = props.source) === null || _props$source === void 0 ? void 0 : (_props$source$propert = _props$source.properties) === null || _props$source$propert === void 0 ? void 0 : _props$source$propert.brand)), /*#__PURE__*/React__default.createElement("p", {
36978
- className: "plc-ml-1 plc-text-lg plc-tracking-widest"
36979
- }, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", props === null || props === void 0 ? void 0 : (_props$source2 = props.source) === null || _props$source2 === void 0 ? void 0 : (_props$source2$proper = _props$source2.properties) === null || _props$source2$proper === void 0 ? void 0 : _props$source2$proper.last4)), /*#__PURE__*/React__default.createElement(Button, {
36980
- variant: "icon",
36981
- className: "plc-text-gray-500",
36982
- icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
36983
- onClick: props === null || props === void 0 ? void 0 : props.displaySourceCreate
36984
- }));
37041
+ return props.sources.map((source, index) => {
37042
+ var _source$properties, _source$properties2;
37043
+
37044
+ return /*#__PURE__*/React__default.createElement("div", {
37045
+ key: "dashboard-source-" + source.id,
37046
+ className: `plc-py-4 plc-px-6 plc-mt-5 plc-flex plc-items-center plc-justify-between last:plc-mb-0 plc-rounded plc-text-gray-900 pelcro-address-wrapper plc-bg-white plc-shadow-md_dark`
37047
+ }, /*#__PURE__*/React__default.createElement("div", {
37048
+ className: "plc-flex plc-items-center"
37049
+ }, /*#__PURE__*/React__default.createElement("p", {
37050
+ className: "plc-mr-6"
37051
+ }, getPaymentCardIcon(source === null || source === void 0 ? void 0 : (_source$properties = source.properties) === null || _source$properties === void 0 ? void 0 : _source$properties.brand)), /*#__PURE__*/React__default.createElement("p", {
37052
+ className: "plc-ml-1 plc-text-lg plc-tracking-widest"
37053
+ }, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", source === null || source === void 0 ? void 0 : (_source$properties2 = source.properties) === null || _source$properties2 === void 0 ? void 0 : _source$properties2.last4)), /*#__PURE__*/React__default.createElement("div", {
37054
+ className: "plc-flex-grow"
37055
+ }), /*#__PURE__*/React__default.createElement(Button, {
37056
+ id: "pelcro-button-update-source-" + index,
37057
+ variant: "icon",
37058
+ className: "plc-text-gray-500",
37059
+ "data-key": source.id,
37060
+ icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
37061
+ onClick: props === null || props === void 0 ? void 0 : props.displaySourceEdit
37062
+ }), /*#__PURE__*/React__default.createElement(Button, {
37063
+ id: "pelcro-button-update-source-" + index,
37064
+ variant: "icon",
37065
+ className: "plc-text-gray-500",
37066
+ "data-key": source.id,
37067
+ icon: /*#__PURE__*/React__default.createElement(SvgTrashCan, null),
37068
+ onClick: () => {
37069
+ props === null || props === void 0 ? void 0 : props.onDeletePaymentMethodClick(source);
37070
+ }
37071
+ }));
37072
+ });
36985
37073
  };
36986
37074
 
36987
37075
  var mode = {