@pelcro/react-pelcro-js 3.26.0-beta.27 → 3.26.0-beta.28

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
@@ -3326,7 +3326,15 @@ var select$6 = {
3326
3326
  };
3327
3327
  var paymentMethod_en = {
3328
3328
  update: update$3,
3329
- select: select$6
3329
+ select: select$6,
3330
+ "delete": {
3331
+ title: "Active subscriptions are linked to this payment method.",
3332
+ subtitle: "Please choose an existing card or add a new payment method.",
3333
+ options: {
3334
+ select: "Select an existing payment method",
3335
+ add: "Add a new payment method"
3336
+ }
3337
+ }
3330
3338
  };
3331
3339
 
3332
3340
  var title$z = "Enter your email to subscribe to our newsletter";
@@ -3432,7 +3440,8 @@ var labels$15 = {
3432
3440
  order: "Order",
3433
3441
  amount: "Amount",
3434
3442
  email: "Email",
3435
- password: "Password"
3443
+ password: "Password",
3444
+ isDefault: "Set as default"
3436
3445
  };
3437
3446
  var checkoutForm_en = {
3438
3447
  messages: messages$18,
@@ -3895,6 +3904,8 @@ var labels$Z = {
3895
3904
  renewsOn: "Renews",
3896
3905
  canceledOn: "Canceled on",
3897
3906
  recipient: "Recipient",
3907
+ addPaymentSource: "Add payment method",
3908
+ setDefault: "Set as default",
3898
3909
  addAddress: "Add address",
3899
3910
  editAddress: "Edit address",
3900
3911
  addSubscription: "New Subscription",
@@ -3956,6 +3967,13 @@ var messages$_ = {
3956
3967
  loading: "Unsuspending your donation",
3957
3968
  success: "Donation is successfully unsuspended",
3958
3969
  error: "Error while unsuspending your donation"
3970
+ },
3971
+ paymentMethodDeletion: {
3972
+ isSureToDelete: "Are you sure you want to delete this payment method?",
3973
+ loading: "Deleting your payment method",
3974
+ success: "Payment method is successfully deleted",
3975
+ error: "Error while deleting your payment method",
3976
+ nonDeletable: "This payment method can't be deleted"
3959
3977
  }
3960
3978
  };
3961
3979
  var dashboard_en = {
@@ -8952,7 +8970,7 @@ class PelcroActions {
8952
8970
  view,
8953
8971
  cartItems,
8954
8972
  ...otherStateFields
8955
- } = initialState$n;
8973
+ } = initialState$o;
8956
8974
  this.set(otherStateFields);
8957
8975
  });
8958
8976
  _defineProperty$3(this, "switchView", view => {
@@ -9257,6 +9275,38 @@ class PelcroActions {
9257
9275
  }
9258
9276
  switchToAddressView();
9259
9277
  });
9278
+ _defineProperty$3(this, "setPaymentMethodToEdit", id => {
9279
+ window.Pelcro.paymentMethods.getPaymentMethod({
9280
+ auth_token: window.Pelcro.user.read().auth_token,
9281
+ payment_method_id: id
9282
+ }, (err, res) => {
9283
+ if (err) {
9284
+ return console.error("invalid payment method id");
9285
+ }
9286
+ if (res) {
9287
+ const paymentMethodToEdit = res.data;
9288
+ this.set({
9289
+ paymentMethodToEdit
9290
+ });
9291
+ }
9292
+ });
9293
+ });
9294
+ _defineProperty$3(this, "setPaymentMethodToDelete", id => {
9295
+ window.Pelcro.paymentMethods.getPaymentMethod({
9296
+ auth_token: window.Pelcro.user.read().auth_token,
9297
+ payment_method_id: id
9298
+ }, (err, res) => {
9299
+ if (err) {
9300
+ return console.error("invalid payment method id");
9301
+ }
9302
+ if (res) {
9303
+ const paymentMethodToDelete = res.data;
9304
+ this.set({
9305
+ paymentMethodToDelete
9306
+ });
9307
+ }
9308
+ });
9309
+ });
9260
9310
  this.set = storeSetter;
9261
9311
  this.get = storeGetter;
9262
9312
  }
@@ -9301,7 +9351,7 @@ class PelcroCallbacks {
9301
9351
  }
9302
9352
  }
9303
9353
 
9304
- const initialState$n = {
9354
+ const initialState$o = {
9305
9355
  // View
9306
9356
  view: null,
9307
9357
  // Plans
@@ -9339,7 +9389,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
9339
9389
  return {
9340
9390
  // Store setter
9341
9391
  set,
9342
- ...initialState$n,
9392
+ ...initialState$o,
9343
9393
  // State actions
9344
9394
  ...actions,
9345
9395
  // Callbacks
@@ -10293,8 +10343,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
10293
10343
 
10294
10344
  let e={data:""},t=t=>"object"==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-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/| +/g,n=/\n+/g,o=(e,t)=>{let r="",l="",a="";for(let n in e){let c=e[n];"@"==n[0]?"i"==n[1]?r=n+" "+c+";":l+="f"==n[1]?o(c,n):n+"{"+o(c,"k"==n[1]?"":t)+"}":"object"==typeof c?l+=o(c,t?t.replace(/([^,])+/g,e=>n.replace(/(^:.*)|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):n):null!=c&&(n=/^--/.test(n)?n:n.replace(/[A-Z]/g,"-$&").toLowerCase(),a+=o.p?o.p(n,c):n+":"+c+";");}return r+(t&&a?t+"{"+a+"}":a)+l},c={},s=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+s(e[r]);return t}return e},i$1=(e,t,r,i,p)=>{let u=s(e),d=c[u]||(c[u]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(u));if(!c[d]){let t=u!==e?e:(e=>{let t,r,o=[{}];for(;t=l.exec(e.replace(a,""));)t[4]?o.shift():t[3]?(r=t[3].replace(n," ").trim(),o.unshift(o[0][r]=o[0][r]||{})):o[0][t[1]]=t[2].replace(n," ").trim();return o[0]})(e);c[d]=o(p?{["@keyframes "+d]:t}:t,r?"":"."+d);}let f=r&&c.g?c.g:null;return r&&(c.g=c[d]),((e,t,r,l)=>{l?t.data=t.data.replace(l,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(c[d],t,i,f),d},p=(e,t,r)=>e.reduce((e,l,a)=>{let n=t[a];if(n&&n.call){let e=n(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;n=t?"."+t:e&&"object"==typeof e?e.props?"":o(e,""):!1===e?"":e;}return e+l+(null==n?"":n)},"");function u(e){let r=this||{},l=e.call?e(r.p):e;return i$1(l.unshift?l.raw?p(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):l,t(r.target),r.g,r.o,r.k)}let d,f,g;u.bind({g:1});let h=u.bind({k:1});function m(e,t,r,l){o.p=t,d=e,f=r,g=l;}function j(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=u.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=e;return e[0]&&(i=c.as||e,delete c.as),g&&i[0]&&g(c),d(i,c)}return t?t(a):a}}
10295
10345
 
10296
- function _extends$B() {
10297
- _extends$B = Object.assign || function (target) {
10346
+ function _extends$C() {
10347
+ _extends$C = Object.assign || function (target) {
10298
10348
  for (var i = 1; i < arguments.length; i++) {
10299
10349
  var source = arguments[i];
10300
10350
 
@@ -10308,7 +10358,7 @@ function _extends$B() {
10308
10358
  return target;
10309
10359
  };
10310
10360
 
10311
- return _extends$B.apply(this, arguments);
10361
+ return _extends$C.apply(this, arguments);
10312
10362
  }
10313
10363
 
10314
10364
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -10398,7 +10448,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
10398
10448
  var reducer = function reducer(state, action) {
10399
10449
  switch (action.type) {
10400
10450
  case ActionType.ADD_TOAST:
10401
- return _extends$B({}, state, {
10451
+ return _extends$C({}, state, {
10402
10452
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
10403
10453
  });
10404
10454
 
@@ -10408,9 +10458,9 @@ var reducer = function reducer(state, action) {
10408
10458
  clearFromRemoveQueue(action.toast.id);
10409
10459
  }
10410
10460
 
10411
- return _extends$B({}, state, {
10461
+ return _extends$C({}, state, {
10412
10462
  toasts: state.toasts.map(function (t) {
10413
- return t.id === action.toast.id ? _extends$B({}, t, action.toast) : t;
10463
+ return t.id === action.toast.id ? _extends$C({}, t, action.toast) : t;
10414
10464
  })
10415
10465
  });
10416
10466
 
@@ -10437,9 +10487,9 @@ var reducer = function reducer(state, action) {
10437
10487
  });
10438
10488
  }
10439
10489
 
10440
- return _extends$B({}, state, {
10490
+ return _extends$C({}, state, {
10441
10491
  toasts: state.toasts.map(function (t) {
10442
- return t.id === toastId || toastId === undefined ? _extends$B({}, t, {
10492
+ return t.id === toastId || toastId === undefined ? _extends$C({}, t, {
10443
10493
  visible: false
10444
10494
  }) : t;
10445
10495
  })
@@ -10447,28 +10497,28 @@ var reducer = function reducer(state, action) {
10447
10497
 
10448
10498
  case ActionType.REMOVE_TOAST:
10449
10499
  if (action.toastId === undefined) {
10450
- return _extends$B({}, state, {
10500
+ return _extends$C({}, state, {
10451
10501
  toasts: []
10452
10502
  });
10453
10503
  }
10454
10504
 
10455
- return _extends$B({}, state, {
10505
+ return _extends$C({}, state, {
10456
10506
  toasts: state.toasts.filter(function (t) {
10457
10507
  return t.id !== action.toastId;
10458
10508
  })
10459
10509
  });
10460
10510
 
10461
10511
  case ActionType.START_PAUSE:
10462
- return _extends$B({}, state, {
10512
+ return _extends$C({}, state, {
10463
10513
  pausedAt: action.time
10464
10514
  });
10465
10515
 
10466
10516
  case ActionType.END_PAUSE:
10467
10517
  var diff = action.time - (state.pausedAt || 0);
10468
- return _extends$B({}, state, {
10518
+ return _extends$C({}, state, {
10469
10519
  pausedAt: undefined,
10470
10520
  toasts: state.toasts.map(function (t) {
10471
- return _extends$B({}, t, {
10521
+ return _extends$C({}, t, {
10472
10522
  pauseDuration: t.pauseDuration + diff
10473
10523
  });
10474
10524
  })
@@ -10515,12 +10565,12 @@ var useStore = function useStore(toastOptions) {
10515
10565
  var mergedToasts = state.toasts.map(function (t) {
10516
10566
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
10517
10567
 
10518
- return _extends$B({}, toastOptions, toastOptions[t.type], t, {
10568
+ return _extends$C({}, toastOptions, toastOptions[t.type], t, {
10519
10569
  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],
10520
- style: _extends$B({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
10570
+ style: _extends$C({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
10521
10571
  });
10522
10572
  });
10523
- return _extends$B({}, state, {
10573
+ return _extends$C({}, state, {
10524
10574
  toasts: mergedToasts
10525
10575
  });
10526
10576
  };
@@ -10530,7 +10580,7 @@ var createToast = function createToast(message, type, opts) {
10530
10580
  type = 'blank';
10531
10581
  }
10532
10582
 
10533
- return _extends$B({
10583
+ return _extends$C({
10534
10584
  createdAt: Date.now(),
10535
10585
  visible: true,
10536
10586
  type: type,
@@ -10580,14 +10630,14 @@ toast.remove = function (toastId) {
10580
10630
  };
10581
10631
 
10582
10632
  toast.promise = function (promise, msgs, opts) {
10583
- var id = toast.loading(msgs.loading, _extends$B({}, opts, opts == null ? void 0 : opts.loading));
10633
+ var id = toast.loading(msgs.loading, _extends$C({}, opts, opts == null ? void 0 : opts.loading));
10584
10634
  promise.then(function (p) {
10585
- toast.success(resolveValue(msgs.success, p), _extends$B({
10635
+ toast.success(resolveValue(msgs.success, p), _extends$C({
10586
10636
  id: id
10587
10637
  }, opts, opts == null ? void 0 : opts.success));
10588
10638
  return p;
10589
10639
  })["catch"](function (e) {
10590
- toast.error(resolveValue(msgs.error, e), _extends$B({
10640
+ toast.error(resolveValue(msgs.error, e), _extends$C({
10591
10641
  id: id
10592
10642
  }, opts, opts == null ? void 0 : opts.error));
10593
10643
  });
@@ -10926,7 +10976,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
10926
10976
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
10927
10977
  return createElement(ToastBarBase, {
10928
10978
  className: toast.className,
10929
- style: _extends$B({}, animationStyle, style, toast.style)
10979
+ style: _extends$C({}, animationStyle, style, toast.style)
10930
10980
  }, typeof children === 'function' ? children({
10931
10981
  icon: icon,
10932
10982
  message: message
@@ -10956,7 +11006,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
10956
11006
  } : position.includes('right') ? {
10957
11007
  justifyContent: 'flex-end'
10958
11008
  } : {};
10959
- return _extends$B({
11009
+ return _extends$C({
10960
11010
  left: 0,
10961
11011
  right: 0,
10962
11012
  display: 'flex',
@@ -10983,7 +11033,7 @@ var Toaster = function Toaster(_ref) {
10983
11033
  handlers = _useToaster.handlers;
10984
11034
 
10985
11035
  return createElement("div", {
10986
- style: _extends$B({
11036
+ style: _extends$C({
10987
11037
  position: 'fixed',
10988
11038
  zIndex: 9999,
10989
11039
  top: DEFAULT_OFFSET,
@@ -11018,72 +11068,72 @@ var Toaster = function Toaster(_ref) {
11018
11068
  }));
11019
11069
  };
11020
11070
 
11021
- var _path$y;
11022
- function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : 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); }
11071
+ var _path$z;
11072
+ function _extends$B() { _extends$B = Object.assign ? Object.assign.bind() : 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); }
11023
11073
  function SvgCheckSolid(props) {
11024
- return /*#__PURE__*/React.createElement("svg", _extends$A({
11074
+ return /*#__PURE__*/React.createElement("svg", _extends$B({
11025
11075
  xmlns: "http://www.w3.org/2000/svg",
11026
11076
  className: "h-5 w-5",
11027
11077
  viewBox: "0 0 20 20",
11028
11078
  fill: "currentColor"
11029
- }, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
11079
+ }, props), _path$z || (_path$z = /*#__PURE__*/React.createElement("path", {
11030
11080
  fillRule: "evenodd",
11031
11081
  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",
11032
11082
  clipRule: "evenodd"
11033
11083
  })));
11034
11084
  }
11035
11085
 
11036
- var _path$x;
11037
- function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : 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); }
11086
+ var _path$y;
11087
+ function _extends$A() { _extends$A = Object.assign ? Object.assign.bind() : 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); }
11038
11088
  function SvgXIcon(props) {
11039
- return /*#__PURE__*/React.createElement("svg", _extends$z({
11089
+ return /*#__PURE__*/React.createElement("svg", _extends$A({
11040
11090
  xmlns: "http://www.w3.org/2000/svg",
11041
11091
  viewBox: "0 0 20 20",
11042
11092
  fill: "currentColor"
11043
- }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
11093
+ }, props), _path$y || (_path$y = /*#__PURE__*/React.createElement("path", {
11044
11094
  fill: "evenodd",
11045
11095
  d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
11046
11096
  clipRule: "evenodd"
11047
11097
  })));
11048
11098
  }
11049
11099
 
11050
- var _path$w;
11051
- function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : 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); }
11100
+ var _path$x;
11101
+ function _extends$z() { _extends$z = Object.assign ? Object.assign.bind() : 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); }
11052
11102
  function SvgXIconSolid(props) {
11053
- return /*#__PURE__*/React.createElement("svg", _extends$y({
11103
+ return /*#__PURE__*/React.createElement("svg", _extends$z({
11054
11104
  className: "plc-w-4 plc-h-4",
11055
11105
  fill: "currentColor",
11056
11106
  xmlns: "http://www.w3.org/2000/svg",
11057
11107
  viewBox: "0 0 100 100"
11058
- }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
11108
+ }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
11059
11109
  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"
11060
11110
  })));
11061
11111
  }
11062
11112
 
11063
- var _path$v;
11064
- function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : 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); }
11113
+ var _path$w;
11114
+ function _extends$y() { _extends$y = Object.assign ? Object.assign.bind() : 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); }
11065
11115
  function SvgExclamation(props) {
11066
- return /*#__PURE__*/React.createElement("svg", _extends$x({
11116
+ return /*#__PURE__*/React.createElement("svg", _extends$y({
11067
11117
  className: "plc-w-4 plc-h-4 plc-mr-1",
11068
11118
  xmlns: "http://www.w3.org/2000/svg",
11069
11119
  viewBox: "0 0 20 20",
11070
11120
  fill: "currentColor"
11071
- }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
11121
+ }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
11072
11122
  fillRule: "evenodd",
11073
11123
  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",
11074
11124
  clipRule: "evenodd"
11075
11125
  })));
11076
11126
  }
11077
11127
 
11078
- var _path$u, _path2$4;
11079
- function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : 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); }
11128
+ var _path$v, _path2$4;
11129
+ function _extends$x() { _extends$x = Object.assign ? Object.assign.bind() : 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); }
11080
11130
  function SvgSpinner(props) {
11081
- return /*#__PURE__*/React.createElement("svg", _extends$w({
11131
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
11082
11132
  className: "plc-animate-spin",
11083
11133
  viewBox: "0 0 24 24",
11084
11134
  fill: "currentColor",
11085
11135
  xmlns: "http://www.w3.org/2000/svg"
11086
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
11136
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
11087
11137
  opacity: 0.2,
11088
11138
  fill: "evenodd",
11089
11139
  clipRule: "evenodd",
@@ -11774,6 +11824,17 @@ function getSiteCardProcessor() {
11774
11824
  }
11775
11825
  return "stripe";
11776
11826
  }
11827
+ function getFourDigitYear(lastTwoDigits) {
11828
+ // Get the current year
11829
+ const currentYear = new Date().getFullYear();
11830
+
11831
+ // Extract the current century (first two digits)
11832
+ const currentCentury = Math.floor(currentYear / 100);
11833
+
11834
+ // Combine the century and the provided last two digits
11835
+ const fourDigitYear = currentCentury * 100 + lastTwoDigits;
11836
+ return fourDigitYear;
11837
+ }
11777
11838
 
11778
11839
  /**
11779
11840
  * @typedef {Object} OptionsType
@@ -12818,6 +12879,9 @@ const LINK_TOKEN_VERIFY = "LINK_TOKEN_VERIFY";
12818
12879
  const SET_CANCEL_SUBSCRIPTION_REASON = "SET_CANCEL_SUBSCRIPTION_REASON";
12819
12880
  const SET_CANCEL_SUBSCRIPTION_OPTION = "SET_CANCEL_SUBSCRIPTION_OPTION";
12820
12881
  const HANDLE_CHECKBOX_CHANGE = "HANDLE_CHECKBOX_CHANGE";
12882
+ const SET_IS_DEFAULT_PAYMENT_METHOD = "SET_IS_DEFAULT_PAYMENT_METHOD";
12883
+ const SET_DELETE_PAYMENT_METHOD_OPTION = "SET_DELETE_PAYMENT_METHOD_OPTION";
12884
+ const SET_PAYMENT_METHODS = "SET_PAYMENT_METHODS";
12821
12885
  const SET_SUBSCRIPTION_SUSPEND_DATE = "SET_SUBSCRIPTION_SUSPEND_DATE";
12822
12886
  const SET_EMAILS = "SET_EMAILS";
12823
12887
  const SET_EMAILS_ERROR = "SET_EMAILS_ERROR";
@@ -12829,7 +12893,7 @@ const UPDATE_MEMBERS = "UPDATE_MEMBERS";
12829
12893
  const UPDATE_REMOVE_MEMBER_ID = "UPDATE_REMOVE_MEMBER_ID";
12830
12894
  const UPDATE_CYBERSOURCE_SESSION_ID = "UPDATE_CYBERSOURCE_SESSION_ID";
12831
12895
 
12832
- const initialState$m = {
12896
+ const initialState$n = {
12833
12897
  email: "",
12834
12898
  username: "",
12835
12899
  password: "",
@@ -12842,10 +12906,10 @@ const initialState$m = {
12842
12906
  content: ""
12843
12907
  }
12844
12908
  };
12845
- const store$m = /*#__PURE__*/createContext(initialState$m);
12909
+ const store$n = /*#__PURE__*/createContext(initialState$n);
12846
12910
  const {
12847
- Provider: Provider$m
12848
- } = store$m;
12911
+ Provider: Provider$n
12912
+ } = store$n;
12849
12913
  const LoginContainer = _ref => {
12850
12914
  var _window, _window$Pelcro, _window$Pelcro$uiSett;
12851
12915
  let {
@@ -12982,7 +13046,7 @@ const LoginContainer = _ref => {
12982
13046
  alert: action.payload
12983
13047
  });
12984
13048
  case RESET_LOGIN_FORM:
12985
- return initialState$m;
13049
+ return initialState$n;
12986
13050
  case DISABLE_LOGIN_BUTTON:
12987
13051
  return lib_7({
12988
13052
  ...state,
@@ -12998,13 +13062,13 @@ const LoginContainer = _ref => {
12998
13062
  default:
12999
13063
  return state;
13000
13064
  }
13001
- }, initialState$m);
13065
+ }, initialState$n);
13002
13066
  return /*#__PURE__*/React__default.createElement("div", {
13003
13067
  style: {
13004
13068
  ...style
13005
13069
  },
13006
13070
  className: `pelcro-container pelcro-login-container ${className}`
13007
- }, /*#__PURE__*/React__default.createElement(Provider$m, {
13071
+ }, /*#__PURE__*/React__default.createElement(Provider$n, {
13008
13072
  value: {
13009
13073
  state,
13010
13074
  dispatch
@@ -13012,12 +13076,12 @@ const LoginContainer = _ref => {
13012
13076
  }, children.length ? children.map((child, i) => {
13013
13077
  if (child) {
13014
13078
  return /*#__PURE__*/React__default.cloneElement(child, {
13015
- store: store$m,
13079
+ store: store$n,
13016
13080
  key: i
13017
13081
  });
13018
13082
  }
13019
13083
  }) : /*#__PURE__*/React__default.cloneElement(children, {
13020
- store: store$m
13084
+ store: store$n
13021
13085
  })));
13022
13086
  };
13023
13087
 
@@ -13326,7 +13390,7 @@ const LoginButton = _ref => {
13326
13390
  buttonDisabled
13327
13391
  },
13328
13392
  dispatch
13329
- } = useContext(store$m);
13393
+ } = useContext(store$n);
13330
13394
  const {
13331
13395
  t
13332
13396
  } = useTranslation("login");
@@ -13346,14 +13410,14 @@ const LoginButton = _ref => {
13346
13410
  }, otherProps), name !== null && name !== void 0 ? name : t("labels.login"));
13347
13411
  };
13348
13412
 
13349
- var _path$t, _path2$3;
13350
- function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : 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); }
13413
+ var _path$u, _path2$3;
13414
+ function _extends$w() { _extends$w = Object.assign ? Object.assign.bind() : 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); }
13351
13415
  function SvgEmailVerify(props) {
13352
- return /*#__PURE__*/React.createElement("svg", _extends$v({
13416
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
13353
13417
  className: "plc-w-6 plc-h-6",
13354
13418
  viewBox: "0 0 700 700",
13355
13419
  xmlns: "http://www.w3.org/2000/svg"
13356
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
13420
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
13357
13421
  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"
13358
13422
  })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
13359
13423
  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"
@@ -13383,25 +13447,25 @@ const LoginRequestLoginToken = _ref => {
13383
13447
  };
13384
13448
 
13385
13449
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
13386
- store: store$m
13450
+ store: store$n
13387
13451
  }, props));
13388
13452
 
13389
13453
  const LoginUsername = props => /*#__PURE__*/React__default.createElement(UserNameInput, Object.assign({
13390
- store: store$m
13454
+ store: store$n
13391
13455
  }, props));
13392
13456
 
13393
13457
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
13394
- store: store$m
13458
+ store: store$n
13395
13459
  }, props));
13396
13460
 
13397
- var _path$s;
13398
- function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : 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); }
13461
+ var _path$t;
13462
+ function _extends$v() { _extends$v = Object.assign ? Object.assign.bind() : 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); }
13399
13463
  function SvgCheck(props) {
13400
- return /*#__PURE__*/React.createElement("svg", _extends$u({
13464
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
13401
13465
  xmlns: "http://www.w3.org/2000/svg",
13402
13466
  fill: "currentColor",
13403
13467
  viewBox: "0 0 20 20"
13404
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
13468
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
13405
13469
  fillRule: "evenodd",
13406
13470
  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",
13407
13471
  clipRule: "evenodd"
@@ -13467,7 +13531,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
13467
13531
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
13468
13532
  facebookLoginRenderProps.FacebookLogin;
13469
13533
 
13470
- const initialState$l = {
13534
+ const initialState$m = {
13471
13535
  email: "",
13472
13536
  password: "",
13473
13537
  firstName: "",
@@ -13488,10 +13552,10 @@ const initialState$l = {
13488
13552
  content: ""
13489
13553
  }
13490
13554
  };
13491
- const store$l = /*#__PURE__*/createContext(initialState$l);
13555
+ const store$m = /*#__PURE__*/createContext(initialState$m);
13492
13556
  const {
13493
- Provider: Provider$l
13494
- } = store$l;
13557
+ Provider: Provider$m
13558
+ } = store$m;
13495
13559
  const RegisterContainer = _ref => {
13496
13560
  let {
13497
13561
  style,
@@ -13703,7 +13767,7 @@ const RegisterContainer = _ref => {
13703
13767
  alert: action.payload
13704
13768
  });
13705
13769
  case RESET_LOGIN_FORM:
13706
- return initialState$l;
13770
+ return initialState$m;
13707
13771
  case DISABLE_REGISTRATION_BUTTON:
13708
13772
  return lib_7({
13709
13773
  ...state,
@@ -13719,13 +13783,13 @@ const RegisterContainer = _ref => {
13719
13783
  default:
13720
13784
  return state;
13721
13785
  }
13722
- }, initialState$l);
13786
+ }, initialState$m);
13723
13787
  return /*#__PURE__*/React__default.createElement("div", {
13724
13788
  style: {
13725
13789
  ...style
13726
13790
  },
13727
13791
  className: `pelcro-container pelcro-register-container ${className}`
13728
- }, /*#__PURE__*/React__default.createElement(Provider$l, {
13792
+ }, /*#__PURE__*/React__default.createElement(Provider$m, {
13729
13793
  value: {
13730
13794
  state,
13731
13795
  dispatch
@@ -13733,12 +13797,12 @@ const RegisterContainer = _ref => {
13733
13797
  }, children.length ? children.map((child, i) => {
13734
13798
  if (child) {
13735
13799
  return /*#__PURE__*/React__default.cloneElement(child, {
13736
- store: store$l,
13800
+ store: store$m,
13737
13801
  key: i
13738
13802
  });
13739
13803
  }
13740
13804
  }) : /*#__PURE__*/React__default.cloneElement(children, {
13741
- store: store$l
13805
+ store: store$m
13742
13806
  })));
13743
13807
  };
13744
13808
 
@@ -13752,13 +13816,13 @@ function hasSecurityTokenEnabled$1() {
13752
13816
  return hasSecuritySdkLoaded;
13753
13817
  }
13754
13818
 
13755
- var _path$r;
13756
- function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : 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); }
13819
+ var _path$s;
13820
+ function _extends$u() { _extends$u = Object.assign ? Object.assign.bind() : 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); }
13757
13821
  function SvgFacebookLogo(props) {
13758
- return /*#__PURE__*/React.createElement("svg", _extends$t({
13822
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
13759
13823
  xmlns: "http://www.w3.org/2000/svg",
13760
13824
  viewBox: "88.428 12.828 107.543 207.085"
13761
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
13825
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
13762
13826
  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",
13763
13827
  fill: "#3c5a9a"
13764
13828
  })));
@@ -13775,10 +13839,10 @@ const FacebookLoginButton = _ref => {
13775
13839
  const facebookLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id;
13776
13840
  const {
13777
13841
  dispatch: loginDispatch
13778
- } = useContext(store$m);
13842
+ } = useContext(store$n);
13779
13843
  const {
13780
13844
  dispatch: registerDispatch
13781
- } = useContext(store$l);
13845
+ } = useContext(store$m);
13782
13846
  const onSuccess = facebookUser => {
13783
13847
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
13784
13848
  type: HANDLE_SOCIAL_LOGIN,
@@ -13828,13 +13892,13 @@ var googleLogin = createCommonjsModule(function (module, exports) {
13828
13892
  unwrapExports(googleLogin);
13829
13893
  var googleLogin_1 = googleLogin.GoogleLogin;
13830
13894
 
13831
- var _path$q, _path2$2, _path3$1, _path4;
13832
- function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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); }
13895
+ var _path$r, _path2$2, _path3$1, _path4;
13896
+ function _extends$t() { _extends$t = Object.assign ? Object.assign.bind() : 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); }
13833
13897
  function SvgGoogleLogo(props) {
13834
- return /*#__PURE__*/React.createElement("svg", _extends$s({
13898
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
13835
13899
  viewBox: "0 0 24 24",
13836
13900
  xmlns: "http://www.w3.org/2000/svg"
13837
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
13901
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
13838
13902
  fill: "#4285F4",
13839
13903
  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"
13840
13904
  })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
@@ -13938,10 +14002,10 @@ const GoogleLoginButton = _ref => {
13938
14002
  const googleClientId = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
13939
14003
  const {
13940
14004
  dispatch: loginDispatch
13941
- } = useContext(store$m);
14005
+ } = useContext(store$n);
13942
14006
  const {
13943
14007
  dispatch: registerDispatch
13944
- } = useContext(store$l);
14008
+ } = useContext(store$m);
13945
14009
  useEffect(() => {
13946
14010
  gapi.load("client:auth2", () => {
13947
14011
  gapi.auth2.init({
@@ -13992,13 +14056,13 @@ const GoogleLoginButton = _ref => {
13992
14056
  }) : null;
13993
14057
  };
13994
14058
 
13995
- var _path$p;
13996
- function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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); }
14059
+ var _path$q;
14060
+ function _extends$s() { _extends$s = Object.assign ? Object.assign.bind() : 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); }
13997
14061
  function SvgAuth0Logo(props) {
13998
- return /*#__PURE__*/React.createElement("svg", _extends$r({
14062
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
13999
14063
  viewBox: "0 0 256 285",
14000
14064
  xmlns: "http://www.w3.org/2000/svg"
14001
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
14065
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
14002
14066
  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"
14003
14067
  })));
14004
14068
  }
@@ -14036,10 +14100,10 @@ const Auth0LoginButton = _ref => {
14036
14100
  }, [auth0Enabled, auth0Loaded]);
14037
14101
  const {
14038
14102
  dispatch: loginDispatch
14039
- } = useContext(store$m);
14103
+ } = useContext(store$n);
14040
14104
  const {
14041
14105
  dispatch: registerDispatch
14042
- } = useContext(store$l);
14106
+ } = useContext(store$m);
14043
14107
  function handleClick() {
14044
14108
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
14045
14109
  if (!auth0Loaded) {
@@ -14182,13 +14246,13 @@ function LoginView(props) {
14182
14246
  }))));
14183
14247
  }
14184
14248
 
14185
- var _path$o, _path2$1, _path3;
14186
- function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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); }
14249
+ var _path$p, _path2$1, _path3;
14250
+ function _extends$r() { _extends$r = Object.assign ? Object.assign.bind() : 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); }
14187
14251
  function SvgPelcroAuthorship(props) {
14188
- return /*#__PURE__*/React.createElement("svg", _extends$q({
14252
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
14189
14253
  xmlns: "http://www.w3.org/2000/svg",
14190
14254
  viewBox: "0 -80.652 497.072 179.991"
14191
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
14255
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
14192
14256
  fill: "none",
14193
14257
  stroke: "#4a4a4a",
14194
14258
  d: "M487.89 42.299c0 13.158-10.671 23.829-23.829 23.829H37.074c-13.162 0-23.832-10.671-23.832-23.829v-63.552c0-13.158 10.67-23.831 23.832-23.831H464.06c13.158 0 23.829 10.672 23.829 23.831l.001 63.552z"
@@ -14360,11 +14424,11 @@ function LoginModal(_ref) {
14360
14424
  LoginModal.viewId = "login";
14361
14425
 
14362
14426
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
14363
- store: store$l
14427
+ store: store$m
14364
14428
  }, props));
14365
14429
 
14366
14430
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
14367
- store: store$l
14431
+ store: store$m
14368
14432
  }, props));
14369
14433
 
14370
14434
  const RegisterButton = _ref => {
@@ -14384,7 +14448,7 @@ const RegisterButton = _ref => {
14384
14448
  buttonDisabled
14385
14449
  },
14386
14450
  dispatch
14387
- } = useContext(store$l);
14451
+ } = useContext(store$m);
14388
14452
  const {
14389
14453
  t
14390
14454
  } = useTranslation("register");
@@ -14482,7 +14546,7 @@ function FirstName(_ref) {
14482
14546
  }
14483
14547
 
14484
14548
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
14485
- store: store$l
14549
+ store: store$m
14486
14550
  }, props));
14487
14551
 
14488
14552
  function LastName(_ref) {
@@ -14560,7 +14624,7 @@ function LastName(_ref) {
14560
14624
  }
14561
14625
 
14562
14626
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
14563
- store: store$l
14627
+ store: store$m
14564
14628
  }, props));
14565
14629
 
14566
14630
  function Phone(_ref) {
@@ -14841,7 +14905,7 @@ function TextInput(_ref) {
14841
14905
 
14842
14906
  const RegisterTextInput = props => {
14843
14907
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
14844
- store: store$l
14908
+ store: store$m
14845
14909
  }));
14846
14910
  };
14847
14911
 
@@ -18017,7 +18081,7 @@ class CybersourceGateway {
18017
18081
  */
18018
18082
 
18019
18083
  /** @type {PaymentStateType} */
18020
- const initialState$k = {
18084
+ const initialState$l = {
18021
18085
  disableSubmit: false,
18022
18086
  isLoading: false,
18023
18087
  disableCouponButton: false,
@@ -18044,15 +18108,16 @@ const initialState$k = {
18044
18108
  year: "",
18045
18109
  passwordError: null,
18046
18110
  cyberSourceSessionId: null,
18111
+ isDefault: false,
18047
18112
  alert: {
18048
18113
  type: "error",
18049
18114
  content: ""
18050
18115
  }
18051
18116
  };
18052
- const store$k = /*#__PURE__*/createContext(initialState$k);
18117
+ const store$l = /*#__PURE__*/createContext(initialState$l);
18053
18118
  const {
18054
- Provider: Provider$k
18055
- } = store$k;
18119
+ Provider: Provider$l
18120
+ } = store$l;
18056
18121
  const PaymentMethodContainerWithoutStripe = _ref => {
18057
18122
  var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice, _window$Pelcro, _window$Pelcro$uiSett;
18058
18123
  let {
@@ -18080,7 +18145,9 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18080
18145
  selectedDonationAmount,
18081
18146
  customDonationAmount,
18082
18147
  isAuthenticated,
18083
- switchView
18148
+ switchView,
18149
+ paymentMethodToEdit,
18150
+ paymentMethodToDelete
18084
18151
  } = usePelcro();
18085
18152
  const {
18086
18153
  whenUserReady
@@ -18737,13 +18804,122 @@ const PaymentMethodContainerWithoutStripe = _ref => {
18737
18804
  } else if (type === "invoicePayment") {
18738
18805
  payInvoice(new VantivGateway(), isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest, dispatch);
18739
18806
  } else if (type === "updatePaymentSource") {
18740
- createNewVantivCard();
18807
+ if (paymentMethodToEdit) {
18808
+ updateVantivCard();
18809
+ } else {
18810
+ createNewVantivCard();
18811
+ }
18812
+ } else if (type === "deletePaymentSource") {
18813
+ replaceVantivCard();
18741
18814
  }
18742
18815
  function createNewVantivCard() {
18743
- window.Pelcro.source.create({
18816
+ window.Pelcro.paymentMethods.create({
18817
+ auth_token: window.Pelcro.user.read().auth_token,
18818
+ token: paymentRequest,
18819
+ gateway: "vantiv"
18820
+ }, (err, res) => {
18821
+ dispatch({
18822
+ type: DISABLE_SUBMIT,
18823
+ payload: false
18824
+ });
18825
+ dispatch({
18826
+ type: LOADING,
18827
+ payload: false
18828
+ });
18829
+ if (err) {
18830
+ onFailure(err);
18831
+ return dispatch({
18832
+ type: SHOW_ALERT,
18833
+ payload: {
18834
+ type: "error",
18835
+ content: getErrorMessages(err)
18836
+ }
18837
+ });
18838
+ }
18839
+ dispatch({
18840
+ type: SHOW_ALERT,
18841
+ payload: {
18842
+ type: "success",
18843
+ content: t("messages.sourceUpdated")
18844
+ }
18845
+ });
18846
+ onSuccess(res);
18847
+ });
18848
+ }
18849
+ function replaceVantivCard() {
18850
+ const {
18851
+ id: paymentMethodId
18852
+ } = paymentMethodToDelete;
18853
+ window.Pelcro.paymentMethods.create({
18744
18854
  auth_token: window.Pelcro.user.read().auth_token,
18745
18855
  token: paymentRequest,
18746
18856
  gateway: "vantiv"
18857
+ }, (err, res) => {
18858
+ dispatch({
18859
+ type: DISABLE_SUBMIT,
18860
+ payload: false
18861
+ });
18862
+ dispatch({
18863
+ type: LOADING,
18864
+ payload: false
18865
+ });
18866
+ if (err) {
18867
+ onFailure(err);
18868
+ return dispatch({
18869
+ type: SHOW_ALERT,
18870
+ payload: {
18871
+ type: "error",
18872
+ content: getErrorMessages(err)
18873
+ }
18874
+ });
18875
+ }
18876
+ window.Pelcro.paymentMethods.deletePaymentMethod({
18877
+ auth_token: window.Pelcro.user.read().auth_token,
18878
+ payment_method_id: paymentMethodId
18879
+ }, (err, res) => {
18880
+ if (err) {
18881
+ return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
18882
+ }
18883
+ dispatch({
18884
+ type: SHOW_ALERT,
18885
+ payload: {
18886
+ type: "success",
18887
+ content: t("messages.sourceUpdated")
18888
+ }
18889
+ });
18890
+ onSuccess(res);
18891
+ });
18892
+ });
18893
+ }
18894
+ function updateVantivCard() {
18895
+ const {
18896
+ id: paymentMethodId
18897
+ } = paymentMethodToEdit;
18898
+ const {
18899
+ paypageRegistrationId,
18900
+ bin,
18901
+ type,
18902
+ firstSix,
18903
+ lastFour,
18904
+ expMonth,
18905
+ expYear
18906
+ } = paymentRequest;
18907
+ const {
18908
+ isDefault
18909
+ } = state;
18910
+ const fourDigitExpYear = getFourDigitYear(Number(expYear)).toString();
18911
+ window.Pelcro.paymentMethods.update({
18912
+ auth_token: window.Pelcro.user.read().auth_token,
18913
+ payment_method_id: paymentMethodId,
18914
+ gateway: "vantiv",
18915
+ paypageRegistrationId: paypageRegistrationId,
18916
+ bin: bin,
18917
+ type: type,
18918
+ firstSix: firstSix,
18919
+ lastFour: lastFour,
18920
+ exp_month: expMonth,
18921
+ exp_year: fourDigitExpYear,
18922
+ is_default: isDefault
18747
18923
  }, (err, res) => {
18748
18924
  dispatch({
18749
18925
  type: DISABLE_SUBMIT,
@@ -19622,7 +19798,7 @@ const PaymentMethodContainerWithoutStripe = _ref => {
19622
19798
  }
19623
19799
  });
19624
19800
  }
19625
- window.Pelcro.source.create({
19801
+ window.Pelcro.paymentMethods.create({
19626
19802
  auth_token: window.Pelcro.user.read().auth_token,
19627
19803
  token: source.id
19628
19804
  }, (err, res) => {
@@ -20150,16 +20326,26 @@ const PaymentMethodContainerWithoutStripe = _ref => {
20150
20326
  ...state,
20151
20327
  cyberSourceSessionId: action.payload
20152
20328
  });
20329
+ case HANDLE_CHECKBOX_CHANGE:
20330
+ return lib_7({
20331
+ ...state,
20332
+ ...action.payload
20333
+ });
20334
+ case SET_IS_DEFAULT_PAYMENT_METHOD:
20335
+ return lib_7({
20336
+ ...state,
20337
+ ...action.payload
20338
+ });
20153
20339
  default:
20154
20340
  return state;
20155
20341
  }
20156
- }, initialState$k);
20342
+ }, initialState$l);
20157
20343
  return /*#__PURE__*/React__default.createElement("div", {
20158
20344
  style: {
20159
20345
  ...style
20160
20346
  },
20161
20347
  className: `pelcro-container pelcro-payment-container ${className}`
20162
- }, /*#__PURE__*/React__default.createElement(Provider$k, {
20348
+ }, /*#__PURE__*/React__default.createElement(Provider$l, {
20163
20349
  value: {
20164
20350
  state,
20165
20351
  dispatch
@@ -20167,12 +20353,12 @@ const PaymentMethodContainerWithoutStripe = _ref => {
20167
20353
  }, children.length ? children.map((child, i) => {
20168
20354
  if (child) {
20169
20355
  return /*#__PURE__*/React__default.cloneElement(child, {
20170
- store: store$k,
20356
+ store: store$l,
20171
20357
  key: i
20172
20358
  });
20173
20359
  }
20174
20360
  }) : /*#__PURE__*/React__default.cloneElement(children, {
20175
- store: store$k
20361
+ store: store$l
20176
20362
  })));
20177
20363
  };
20178
20364
  const UnwrappedForm = es_12(PaymentMethodContainerWithoutStripe);
@@ -20193,11 +20379,11 @@ const PaymentMethodContainer = props => {
20193
20379
  stripeAccount: window.Pelcro.site.read().account_id,
20194
20380
  locale: getPageOrDefaultLanguage()
20195
20381
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
20196
- store: store$k
20382
+ store: store$l
20197
20383
  }, props))));
20198
20384
  } else if (cardProcessor !== "stripe") {
20199
20385
  return /*#__PURE__*/React__default.createElement(PaymentMethodContainerWithoutStripe, Object.assign({
20200
- store: store$k
20386
+ store: store$l
20201
20387
  }, props));
20202
20388
  }
20203
20389
  return null;
@@ -20357,7 +20543,7 @@ const PelcroPaymentRequestButton = props => {
20357
20543
  currentPlan,
20358
20544
  updatedPrice
20359
20545
  }
20360
- } = useContext(store$k);
20546
+ } = useContext(store$l);
20361
20547
  const updatePaymentRequest = () => {
20362
20548
  // Make sure payment request is up to date, eg. user added a coupon code.
20363
20549
  paymentRequest === null || paymentRequest === void 0 ? void 0 : paymentRequest.update({
@@ -20409,12 +20595,12 @@ const CheckoutForm = () => {
20409
20595
  }, /*#__PURE__*/React__default.createElement("div", {
20410
20596
  className: "plc-w-6/12 plc-pr-4"
20411
20597
  }, /*#__PURE__*/React__default.createElement(MonthSelect, {
20412
- store: store$k,
20598
+ store: store$l,
20413
20599
  placeholder: "Exp Month *"
20414
20600
  })), /*#__PURE__*/React__default.createElement("div", {
20415
20601
  className: "plc-w-6/12"
20416
20602
  }, /*#__PURE__*/React__default.createElement(YearSelect, {
20417
- store: store$k,
20603
+ store: store$l,
20418
20604
  placeholder: "Exp Year *"
20419
20605
  }))));
20420
20606
  }
@@ -20448,7 +20634,7 @@ const DiscountedPrice = props => {
20448
20634
  taxAmount,
20449
20635
  percentOff
20450
20636
  }
20451
- } = useContext(store$k);
20637
+ } = useContext(store$l);
20452
20638
  const {
20453
20639
  order,
20454
20640
  plan
@@ -20509,7 +20695,7 @@ const SubmitPaymentMethod = _ref => {
20509
20695
  month,
20510
20696
  year
20511
20697
  }
20512
- } = useContext(store$k);
20698
+ } = useContext(store$l);
20513
20699
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
20514
20700
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
20515
20701
  const priceFormatted = (plan === null || plan === void 0 ? void 0 : plan.type) === "donation" && (selectedDonationAmount || customDonationAmount) ? getFormattedPriceByLocal(selectedDonationAmount ? selectedDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity2 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity2 !== void 0 ? _plan$quantity2 : 1) : customDonationAmount * (plan === null || plan === void 0 ? void 0 : plan.amount) * ((_plan$quantity3 = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity3 !== void 0 ? _plan$quantity3 : 1), plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage()) : getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -20543,15 +20729,15 @@ const SubmitPaymentMethod = _ref => {
20543
20729
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
20544
20730
  };
20545
20731
 
20546
- var _path$n;
20547
- function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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); }
20732
+ var _path$o;
20733
+ function _extends$q() { _extends$q = Object.assign ? Object.assign.bind() : 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); }
20548
20734
  function SvgArrowLeft(props) {
20549
- return /*#__PURE__*/React.createElement("svg", _extends$p({
20735
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
20550
20736
  xmlns: "http://www.w3.org/2000/svg",
20551
20737
  fill: "none",
20552
20738
  viewBox: "0 0 24 24",
20553
20739
  stroke: "currentColor"
20554
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
20740
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
20555
20741
  strokeLinecap: "round",
20556
20742
  strokeLinejoin: "round",
20557
20743
  strokeWidth: 2,
@@ -20571,7 +20757,7 @@ const ApplyCouponButton = _ref => {
20571
20757
  disableCouponButton
20572
20758
  },
20573
20759
  dispatch
20574
- } = useContext(store$k);
20760
+ } = useContext(store$l);
20575
20761
  const {
20576
20762
  t
20577
20763
  } = useTranslation("checkoutForm");
@@ -20603,7 +20789,7 @@ const CouponCodeField = props => {
20603
20789
  couponCode,
20604
20790
  couponError
20605
20791
  }
20606
- } = useContext(store$k);
20792
+ } = useContext(store$l);
20607
20793
  const onCouponCodeChange = e => {
20608
20794
  dispatch({
20609
20795
  type: UPDATE_COUPON_CODE,
@@ -20629,15 +20815,15 @@ const CouponCodeField = props => {
20629
20815
  }, props));
20630
20816
  };
20631
20817
 
20632
- var _path$m;
20633
- function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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); }
20818
+ var _path$n;
20819
+ function _extends$p() { _extends$p = Object.assign ? Object.assign.bind() : 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); }
20634
20820
  function SvgTicket(props) {
20635
- return /*#__PURE__*/React.createElement("svg", _extends$o({
20821
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
20636
20822
  xmlns: "http://www.w3.org/2000/svg",
20637
20823
  fill: "none",
20638
20824
  viewBox: "0 0 24 24",
20639
20825
  stroke: "currentColor"
20640
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
20826
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
20641
20827
  strokeLinecap: "round",
20642
20828
  strokeLinejoin: "round",
20643
20829
  strokeWidth: 2,
@@ -20655,7 +20841,7 @@ const CouponCode = _ref => {
20655
20841
  state: {
20656
20842
  enableCouponField
20657
20843
  }
20658
- } = useContext(store$k);
20844
+ } = useContext(store$l);
20659
20845
  const {
20660
20846
  t
20661
20847
  } = useTranslation("checkoutForm");
@@ -20879,7 +21065,7 @@ const PaypalSubscribeButton = props => {
20879
21065
  const {
20880
21066
  dispatch,
20881
21067
  state
20882
- } = useContext(store$k);
21068
+ } = useContext(store$l);
20883
21069
  const {
20884
21070
  product,
20885
21071
  plan,
@@ -20995,14 +21181,14 @@ const BankAuthenticationSuccess = () => {
20995
21181
  }));
20996
21182
  };
20997
21183
 
20998
- var _path$l;
20999
- function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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); }
21184
+ var _path$m;
21185
+ function _extends$o() { _extends$o = Object.assign ? Object.assign.bind() : 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); }
21000
21186
  function SvgLock(props) {
21001
- return /*#__PURE__*/React.createElement("svg", _extends$n({
21187
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
21002
21188
  xmlns: "http://www.w3.org/2000/svg",
21003
21189
  viewBox: "0 0 20 20",
21004
21190
  fill: "currentColor"
21005
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
21191
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
21006
21192
  fillRule: "evenodd",
21007
21193
  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",
21008
21194
  clipRule: "evenodd"
@@ -21018,7 +21204,7 @@ const SelectedPaymentMethod = () => {
21018
21204
  state: {
21019
21205
  isLoading
21020
21206
  }
21021
- } = useContext(store$k);
21207
+ } = useContext(store$l);
21022
21208
  const {
21023
21209
  switchView,
21024
21210
  selectedPaymentMethodId
@@ -21059,7 +21245,7 @@ const TaxAmount = () => {
21059
21245
  state: {
21060
21246
  taxAmount
21061
21247
  }
21062
- } = useContext(store$k);
21248
+ } = useContext(store$l);
21063
21249
  const {
21064
21250
  plan
21065
21251
  } = usePelcro();
@@ -21077,15 +21263,15 @@ const TaxAmount = () => {
21077
21263
  };
21078
21264
 
21079
21265
  const IncludeFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
21080
- store: store$k
21266
+ store: store$l
21081
21267
  }, props));
21082
21268
 
21083
21269
  const IncludeLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
21084
- store: store$k
21270
+ store: store$l
21085
21271
  }, props));
21086
21272
 
21087
21273
  const IncludePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
21088
- store: store$k
21274
+ store: store$l
21089
21275
  }, props));
21090
21276
 
21091
21277
  const SubscriptionCreateFreePlanButton = _ref => {
@@ -21099,7 +21285,7 @@ const SubscriptionCreateFreePlanButton = _ref => {
21099
21285
  disableSubmit
21100
21286
  },
21101
21287
  dispatch
21102
- } = useContext(store$k);
21288
+ } = useContext(store$l);
21103
21289
  const {
21104
21290
  t
21105
21291
  } = useTranslation("common");
@@ -21135,7 +21321,7 @@ const OrderCreateFreeButton = _ref => {
21135
21321
  disableSubmit
21136
21322
  },
21137
21323
  dispatch
21138
- } = useContext(store$k);
21324
+ } = useContext(store$l);
21139
21325
  const {
21140
21326
  t
21141
21327
  } = useTranslation("checkoutForm");
@@ -21161,7 +21347,7 @@ const OrderCreateFreeButton = _ref => {
21161
21347
  };
21162
21348
 
21163
21349
  const DonationEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
21164
- store: store$k
21350
+ store: store$l
21165
21351
  }, props));
21166
21352
 
21167
21353
  /**
@@ -21178,7 +21364,7 @@ const ApplePayButton = _ref => {
21178
21364
  const {
21179
21365
  dispatch,
21180
21366
  state
21181
- } = useContext(store$k);
21367
+ } = useContext(store$l);
21182
21368
  const {
21183
21369
  plan,
21184
21370
  invoice,
@@ -21491,6 +21677,43 @@ const ApplePayButton = _ref => {
21491
21677
  });
21492
21678
  };
21493
21679
 
21680
+ function PaymentMethodUpdateSetDefault(props) {
21681
+ const {
21682
+ dispatch,
21683
+ state: {
21684
+ isDefault
21685
+ }
21686
+ } = useContext(store$l);
21687
+ const {
21688
+ paymentMethodToEdit
21689
+ } = usePelcro();
21690
+ useEffect(() => {
21691
+ if (paymentMethodToEdit !== null && paymentMethodToEdit !== void 0 && paymentMethodToEdit.is_default) {
21692
+ dispatch({
21693
+ type: SET_IS_DEFAULT_PAYMENT_METHOD,
21694
+ payload: {
21695
+ isDefault: true
21696
+ }
21697
+ });
21698
+ }
21699
+ }, [paymentMethodToEdit]); // eslint-disable-line react-hooks/exhaustive-deps
21700
+
21701
+ const handleCheckboxChange = e => {
21702
+ dispatch({
21703
+ type: HANDLE_CHECKBOX_CHANGE,
21704
+ payload: {
21705
+ isDefault: e.target.checked
21706
+ }
21707
+ });
21708
+ };
21709
+ return /*#__PURE__*/React__default.createElement(Checkbox, {
21710
+ onChange: e => handleCheckboxChange(e),
21711
+ id: props.id,
21712
+ checked: isDefault,
21713
+ disabled: paymentMethodToEdit === null || paymentMethodToEdit === void 0 ? void 0 : paymentMethodToEdit.is_default
21714
+ }, props.label);
21715
+ }
21716
+
21494
21717
  /**
21495
21718
  *
21496
21719
  */
@@ -21578,7 +21801,10 @@ function PaymentMethodView(_ref) {
21578
21801
  autoFocus: true
21579
21802
  })), /*#__PURE__*/React__default.createElement(CheckoutForm, null), showCoupon && /*#__PURE__*/React__default.createElement("div", {
21580
21803
  className: "plc-mb-2"
21581
- }, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), /*#__PURE__*/React__default.createElement("div", {
21804
+ }, /*#__PURE__*/React__default.createElement(CouponCode, null), /*#__PURE__*/React__default.createElement(DiscountedPrice, null)), /*#__PURE__*/React__default.createElement(TaxAmount, null), type === "updatePaymentSource" && /*#__PURE__*/React__default.createElement(PaymentMethodUpdateSetDefault, {
21805
+ id: "pelcro-input-is-default",
21806
+ label: t("labels.isDefault")
21807
+ }), /*#__PURE__*/React__default.createElement("div", {
21582
21808
  className: "plc-grid plc-mt-4 plc-gap-y-2"
21583
21809
  }, /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, null), showExternalPaymentMethods && !supportsVantiv && !supportsCybersource && !supportsTap ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PelcroPaymentRequestButton, null), /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : showExternalPaymentMethods && supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(PaypalSubscribeButton, null)) : null, showApplePayButton && supportsVantiv ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ApplePayButton, null)) : null)))));
21584
21810
  }
@@ -21698,14 +21924,14 @@ function SubscriptionRenewModal(_ref) {
21698
21924
  }
21699
21925
  SubscriptionRenewModal.viewId = "subscription-renew";
21700
21926
 
21701
- const initialState$j = {
21927
+ const initialState$k = {
21702
21928
  cancelationReason: "",
21703
21929
  cancelationOption: ""
21704
21930
  };
21705
- const store$j = /*#__PURE__*/createContext(initialState$j);
21931
+ const store$k = /*#__PURE__*/createContext(initialState$k);
21706
21932
  const {
21707
- Provider: Provider$j
21708
- } = store$j;
21933
+ Provider: Provider$k
21934
+ } = store$k;
21709
21935
  const SubscriptionCancelContainer = _ref => {
21710
21936
  let {
21711
21937
  style,
@@ -21730,35 +21956,35 @@ const SubscriptionCancelContainer = _ref => {
21730
21956
  default:
21731
21957
  return state;
21732
21958
  }
21733
- }, initialState$j);
21959
+ }, initialState$k);
21734
21960
  return /*#__PURE__*/React__default.createElement("div", {
21735
21961
  style: {
21736
21962
  ...style
21737
21963
  },
21738
21964
  className: `pelcro-container pelcro-subscription-cancel-container ${className}`
21739
- }, /*#__PURE__*/React__default.createElement(Provider$j, {
21965
+ }, /*#__PURE__*/React__default.createElement(Provider$k, {
21740
21966
  value: {
21741
21967
  state,
21742
21968
  dispatch
21743
21969
  }
21744
21970
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
21745
- store: store$j,
21971
+ store: store$k,
21746
21972
  key: i
21747
21973
  })) : /*#__PURE__*/React__default.cloneElement(children, {
21748
- store: store$j
21974
+ store: store$k
21749
21975
  })));
21750
21976
  };
21751
21977
 
21752
- var _path$k;
21753
- function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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); }
21978
+ var _path$l;
21979
+ function _extends$n() { _extends$n = Object.assign ? Object.assign.bind() : 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); }
21754
21980
  function SvgInfoCircle(props) {
21755
- return /*#__PURE__*/React.createElement("svg", _extends$m({
21981
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
21756
21982
  xmlns: "http://www.w3.org/2000/svg",
21757
21983
  className: "plc-w-5 plc-h-5",
21758
21984
  fill: "none",
21759
21985
  viewBox: "0 0 24 24",
21760
21986
  stroke: "currentColor"
21761
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
21987
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
21762
21988
  strokeLinecap: "round",
21763
21989
  strokeLinejoin: "round",
21764
21990
  strokeWidth: 2,
@@ -21827,7 +22053,7 @@ const SubscriptionCancelReason = props => {
21827
22053
  } = useTranslation("subscriptionCancel");
21828
22054
  const {
21829
22055
  dispatch
21830
- } = useContext(store$j);
22056
+ } = useContext(store$k);
21831
22057
  const handleOnTextAreaBlur = e => {
21832
22058
  dispatch({
21833
22059
  type: SET_CANCEL_SUBSCRIPTION_REASON,
@@ -21841,9 +22067,9 @@ const SubscriptionCancelReason = props => {
21841
22067
  };
21842
22068
 
21843
22069
  var _switch;
21844
- function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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); }
22070
+ function _extends$m() { _extends$m = Object.assign ? Object.assign.bind() : 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); }
21845
22071
  function SvgSubscription(props) {
21846
- return /*#__PURE__*/React.createElement("svg", _extends$l({
22072
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
21847
22073
  xmlns: "http://www.w3.org/2000/svg",
21848
22074
  viewBox: "0 0 100 125",
21849
22075
  fill: "currentColor"
@@ -21872,7 +22098,7 @@ const SubscriptionCancelButton = _ref => {
21872
22098
  cancelationReason,
21873
22099
  cancelationOption
21874
22100
  }
21875
- } = useContext(store$j);
22101
+ } = useContext(store$k);
21876
22102
  const {
21877
22103
  t
21878
22104
  } = useTranslation("subscriptionCancel");
@@ -21951,7 +22177,7 @@ const SubscriptionCancelOptions = _ref => {
21951
22177
  cancelationOption
21952
22178
  },
21953
22179
  dispatch
21954
- } = useContext(store$j);
22180
+ } = useContext(store$k);
21955
22181
  const {
21956
22182
  t
21957
22183
  } = useTranslation("subscriptionCancel");
@@ -22067,14 +22293,14 @@ const SubscriptionCancelModal = _ref => {
22067
22293
  };
22068
22294
  SubscriptionCancelModal.viewId = "subscription-cancel";
22069
22295
 
22070
- const initialState$i = {
22296
+ const initialState$j = {
22071
22297
  suspendDate: null,
22072
22298
  buttonDisabled: false
22073
22299
  };
22074
- const store$i = /*#__PURE__*/createContext(initialState$i);
22300
+ const store$j = /*#__PURE__*/createContext(initialState$j);
22075
22301
  const {
22076
- Provider: Provider$i
22077
- } = store$i;
22302
+ Provider: Provider$j
22303
+ } = store$j;
22078
22304
  const SubscriptionSuspendContainer = _ref => {
22079
22305
  let {
22080
22306
  style,
@@ -22100,22 +22326,22 @@ const SubscriptionSuspendContainer = _ref => {
22100
22326
  default:
22101
22327
  return state;
22102
22328
  }
22103
- }, initialState$i);
22329
+ }, initialState$j);
22104
22330
  return /*#__PURE__*/React__default.createElement("div", {
22105
22331
  style: {
22106
22332
  ...style
22107
22333
  },
22108
22334
  className: `pelcro-container pelcro-subscription-suspend-container ${className}`
22109
- }, /*#__PURE__*/React__default.createElement(Provider$i, {
22335
+ }, /*#__PURE__*/React__default.createElement(Provider$j, {
22110
22336
  value: {
22111
22337
  state,
22112
22338
  dispatch
22113
22339
  }
22114
22340
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
22115
- store: store$i,
22341
+ store: store$j,
22116
22342
  key: i
22117
22343
  })) : /*#__PURE__*/React__default.cloneElement(children, {
22118
- store: store$i
22344
+ store: store$j
22119
22345
  })));
22120
22346
  };
22121
22347
 
@@ -22164,7 +22390,7 @@ const SubscriptionSuspendDate = props => {
22164
22390
  const {
22165
22391
  dispatch,
22166
22392
  state
22167
- } = useContext(store$i);
22393
+ } = useContext(store$j);
22168
22394
  const handleInputChange = value => {
22169
22395
  if (value) {
22170
22396
  dispatch({
@@ -22206,7 +22432,7 @@ const SubscriptionSuspendButton = _ref => {
22206
22432
  buttonDisabled
22207
22433
  },
22208
22434
  dispatch
22209
- } = useContext(store$i);
22435
+ } = useContext(store$j);
22210
22436
  const {
22211
22437
  t
22212
22438
  } = useTranslation("subscriptionSuspend");
@@ -22307,10 +22533,10 @@ function SubscriptionSuspendModal(_ref) {
22307
22533
  }
22308
22534
  SubscriptionSuspendModal.viewId = "subscription-suspend";
22309
22535
 
22310
- var _path$j;
22311
- function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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); }
22536
+ var _path$k;
22537
+ function _extends$l() { _extends$l = Object.assign ? Object.assign.bind() : 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); }
22312
22538
  function SvgGift(props) {
22313
- return /*#__PURE__*/React.createElement("svg", _extends$k({
22539
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
22314
22540
  className: "plc-w-6 plc-h-6 plc-mr-2",
22315
22541
  fill: "none",
22316
22542
  stroke: "currentColor",
@@ -22319,7 +22545,7 @@ function SvgGift(props) {
22319
22545
  strokeWidth: 2,
22320
22546
  viewBox: "0 0 24 24",
22321
22547
  xmlns: "http://www.w3.org/2000/svg"
22322
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
22548
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
22323
22549
  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"
22324
22550
  })));
22325
22551
  }
@@ -22625,7 +22851,7 @@ class DefaultNewsLetter extends Component {
22625
22851
  }
22626
22852
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
22627
22853
 
22628
- const initialState$h = {
22854
+ const initialState$i = {
22629
22855
  didSubToNewslettersBefore: false,
22630
22856
  newsletters: [],
22631
22857
  isListLoading: true,
@@ -22635,10 +22861,10 @@ const initialState$h = {
22635
22861
  content: ""
22636
22862
  }
22637
22863
  };
22638
- const store$h = /*#__PURE__*/createContext(initialState$h);
22864
+ const store$i = /*#__PURE__*/createContext(initialState$i);
22639
22865
  const {
22640
- Provider: Provider$h
22641
- } = store$h;
22866
+ Provider: Provider$i
22867
+ } = store$i;
22642
22868
  const NewsletterUpdateContainer = _ref => {
22643
22869
  let {
22644
22870
  style,
@@ -22745,7 +22971,7 @@ const NewsletterUpdateContainer = _ref => {
22745
22971
  default:
22746
22972
  return state;
22747
22973
  }
22748
- }, initialState$h);
22974
+ }, initialState$i);
22749
22975
  useEffect(() => {
22750
22976
  const getUserNewsletters = () => {
22751
22977
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -22787,7 +23013,7 @@ const NewsletterUpdateContainer = _ref => {
22787
23013
  ...style
22788
23014
  },
22789
23015
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
22790
- }, /*#__PURE__*/React__default.createElement(Provider$h, {
23016
+ }, /*#__PURE__*/React__default.createElement(Provider$i, {
22791
23017
  value: {
22792
23018
  state,
22793
23019
  dispatch
@@ -22795,12 +23021,12 @@ const NewsletterUpdateContainer = _ref => {
22795
23021
  }, children.length ? children.map((child, i) => {
22796
23022
  if (child) {
22797
23023
  return /*#__PURE__*/React__default.cloneElement(child, {
22798
- store: store$h,
23024
+ store: store$i,
22799
23025
  key: i
22800
23026
  });
22801
23027
  }
22802
23028
  }) : /*#__PURE__*/React__default.cloneElement(children, {
22803
- store: store$h
23029
+ store: store$i
22804
23030
  })));
22805
23031
  };
22806
23032
 
@@ -22816,7 +23042,7 @@ const NewsletterUpdateButton = _ref => {
22816
23042
  isSubmitting,
22817
23043
  isListLoading
22818
23044
  }
22819
- } = useContext(store$h);
23045
+ } = useContext(store$i);
22820
23046
  const {
22821
23047
  t
22822
23048
  } = useTranslation("newsletter");
@@ -22845,7 +23071,7 @@ const NewsletterUpdateList = () => {
22845
23071
  newsletters,
22846
23072
  isListLoading
22847
23073
  }
22848
- } = useContext(store$h);
23074
+ } = useContext(store$i);
22849
23075
  if (isListLoading) {
22850
23076
  return /*#__PURE__*/React__default.createElement(Loader, {
22851
23077
  width: 60,
@@ -23042,7 +23268,7 @@ function SubscriptionCreateModal(_ref) {
23042
23268
  }
23043
23269
  SubscriptionCreateModal.viewId = "subscription-create";
23044
23270
 
23045
- const initialState$g = {
23271
+ const initialState$h = {
23046
23272
  emails: "",
23047
23273
  emailsError: null,
23048
23274
  buttonDisabled: false,
@@ -23054,10 +23280,10 @@ const initialState$g = {
23054
23280
  content: ""
23055
23281
  }
23056
23282
  };
23057
- const store$g = /*#__PURE__*/createContext(initialState$g);
23283
+ const store$h = /*#__PURE__*/createContext(initialState$h);
23058
23284
  const {
23059
- Provider: Provider$g
23060
- } = store$g;
23285
+ Provider: Provider$h
23286
+ } = store$h;
23061
23287
  const SubscriptionManageMembersContainer = _ref => {
23062
23288
  let {
23063
23289
  style,
@@ -23221,7 +23447,7 @@ const SubscriptionManageMembersContainer = _ref => {
23221
23447
  default:
23222
23448
  return state;
23223
23449
  }
23224
- }, initialState$g);
23450
+ }, initialState$h);
23225
23451
  useEffect(() => {
23226
23452
  dispatch({
23227
23453
  type: HANDLE_LIST_MEMBERS
@@ -23232,7 +23458,7 @@ const SubscriptionManageMembersContainer = _ref => {
23232
23458
  ...style
23233
23459
  },
23234
23460
  className: `pelcro-container pelcro-manage-members-container ${className}`
23235
- }, /*#__PURE__*/React__default.createElement(Provider$g, {
23461
+ }, /*#__PURE__*/React__default.createElement(Provider$h, {
23236
23462
  value: {
23237
23463
  state,
23238
23464
  dispatch
@@ -23240,12 +23466,12 @@ const SubscriptionManageMembersContainer = _ref => {
23240
23466
  }, children.length ? children.map((child, i) => {
23241
23467
  if (child) {
23242
23468
  return /*#__PURE__*/React__default.cloneElement(child, {
23243
- store: store$g,
23469
+ store: store$h,
23244
23470
  key: i
23245
23471
  });
23246
23472
  }
23247
23473
  }) : /*#__PURE__*/React__default.cloneElement(children, {
23248
- store: store$g
23474
+ store: store$h
23249
23475
  })));
23250
23476
  };
23251
23477
 
@@ -23262,7 +23488,7 @@ const SubscriptionManageMembersButton = _ref => {
23262
23488
  buttonDisabled
23263
23489
  },
23264
23490
  dispatch
23265
- } = useContext(store$g);
23491
+ } = useContext(store$h);
23266
23492
  const {
23267
23493
  t
23268
23494
  } = useTranslation("subscriptionManageMembers");
@@ -23292,7 +23518,7 @@ function SubscriptionManageMembersEmails(props) {
23292
23518
  emails: stateEmails,
23293
23519
  emailsError
23294
23520
  }
23295
- } = useContext(store$g);
23521
+ } = useContext(store$h);
23296
23522
  const [emails, setEmails] = useState(stateEmails);
23297
23523
  const [finishedTyping, setFinishedTyping] = useState(false);
23298
23524
  const handleInputChange = useCallback(value => {
@@ -23322,15 +23548,15 @@ function SubscriptionManageMembersEmails(props) {
23322
23548
  }, props));
23323
23549
  }
23324
23550
 
23325
- var _path$i;
23326
- function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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); }
23551
+ var _path$j;
23552
+ function _extends$k() { _extends$k = Object.assign ? Object.assign.bind() : 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); }
23327
23553
  function SvgCheckMark(props) {
23328
- return /*#__PURE__*/React.createElement("svg", _extends$j({
23554
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
23329
23555
  className: "plc-w-4 plc-h-4 plc-mr-1",
23330
23556
  xmlns: "http://www.w3.org/2000/svg",
23331
23557
  viewBox: "0 0 20 20",
23332
23558
  fill: "currentColor"
23333
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
23559
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
23334
23560
  fillRule: "evenodd",
23335
23561
  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",
23336
23562
  clipRule: "evenodd"
@@ -23348,7 +23574,7 @@ function SubscriptionManageMembersList(props) {
23348
23574
  removeMemberId,
23349
23575
  loading
23350
23576
  }
23351
- } = useContext(store$g);
23577
+ } = useContext(store$h);
23352
23578
  const getMemberStatus = useCallback(sub => {
23353
23579
  if (sub.status === "pending") {
23354
23580
  return {
@@ -23511,7 +23737,7 @@ function SubscriptionManageMembersModal(_ref) {
23511
23737
  SubscriptionManageMembersModal.viewId = "manage-members";
23512
23738
 
23513
23739
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5, _window$Pelcro$user$r6, _window$Pelcro$user$r7;
23514
- const initialState$f = {
23740
+ const initialState$g = {
23515
23741
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
23516
23742
  emailError: null,
23517
23743
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
@@ -23531,10 +23757,10 @@ const initialState$f = {
23531
23757
  content: ""
23532
23758
  }
23533
23759
  };
23534
- const store$f = /*#__PURE__*/createContext(initialState$f);
23760
+ const store$g = /*#__PURE__*/createContext(initialState$g);
23535
23761
  const {
23536
- Provider: Provider$f
23537
- } = store$f;
23762
+ Provider: Provider$g
23763
+ } = store$g;
23538
23764
  const UserUpdateContainer = _ref => {
23539
23765
  let {
23540
23766
  style,
@@ -23730,13 +23956,13 @@ const UserUpdateContainer = _ref => {
23730
23956
  default:
23731
23957
  return state;
23732
23958
  }
23733
- }, initialState$f);
23959
+ }, initialState$g);
23734
23960
  return /*#__PURE__*/React__default.createElement("div", {
23735
23961
  style: {
23736
23962
  ...style
23737
23963
  },
23738
23964
  className: `pelcro-container pelcro-user-update-container ${className}`
23739
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
23965
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
23740
23966
  value: {
23741
23967
  state,
23742
23968
  dispatch
@@ -23744,24 +23970,24 @@ const UserUpdateContainer = _ref => {
23744
23970
  }, children.length ? children.map((child, i) => {
23745
23971
  if (child) {
23746
23972
  return /*#__PURE__*/React__default.cloneElement(child, {
23747
- store: store$f,
23973
+ store: store$g,
23748
23974
  key: i
23749
23975
  });
23750
23976
  }
23751
23977
  }) : /*#__PURE__*/React__default.cloneElement(children, {
23752
- store: store$f
23978
+ store: store$g
23753
23979
  })));
23754
23980
  };
23755
23981
 
23756
- var _path$h;
23757
- function _extends$i() { _extends$i = Object.assign ? Object.assign.bind() : 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); }
23982
+ var _path$i;
23983
+ function _extends$j() { _extends$j = Object.assign ? Object.assign.bind() : 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); }
23758
23984
  function SvgEdit(props) {
23759
- return /*#__PURE__*/React.createElement("svg", _extends$i({
23985
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
23760
23986
  className: "plc-w-6 plc-h-6",
23761
23987
  xmlns: "http://www.w3.org/2000/svg",
23762
23988
  viewBox: "0 0 20 20",
23763
23989
  fill: "currentColor"
23764
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
23990
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
23765
23991
  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"
23766
23992
  })));
23767
23993
  }
@@ -23773,7 +23999,7 @@ const UserUpdateEmail = props => {
23773
23999
  email,
23774
24000
  emailError
23775
24001
  }
23776
- } = useContext(store$f);
24002
+ } = useContext(store$g);
23777
24003
  const [enableEmailEdit, setEnableEmailEdit] = useState(false);
23778
24004
  const {
23779
24005
  t
@@ -23797,7 +24023,7 @@ const UserUpdateEmail = props => {
23797
24023
  className: "plc-flex plc-items-start plc-relative"
23798
24024
  }, /*#__PURE__*/React__default.createElement(Email, Object.assign({
23799
24025
  disabled: !enableEmailEdit,
23800
- store: store$f,
24026
+ store: store$g,
23801
24027
  label: t("labels.email"),
23802
24028
  enableEmailEdit: enableEmailEdit
23803
24029
  }, props)), /*#__PURE__*/React__default.createElement(Button, {
@@ -23831,7 +24057,7 @@ const UserUpdateButton = _ref => {
23831
24057
  phoneError
23832
24058
  },
23833
24059
  dispatch
23834
- } = useContext(store$f);
24060
+ } = useContext(store$g);
23835
24061
  const supportsTap = Boolean((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.tap_gateway_settings);
23836
24062
  const {
23837
24063
  t
@@ -23927,19 +24153,19 @@ function UpdateUserNameInput(_ref) {
23927
24153
  }
23928
24154
 
23929
24155
  const UserUpdateUsername = props => /*#__PURE__*/React__default.createElement(UpdateUserNameInput, Object.assign({
23930
- store: store$f
24156
+ store: store$g
23931
24157
  }, props));
23932
24158
 
23933
24159
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
23934
- store: store$f
24160
+ store: store$g
23935
24161
  }, props));
23936
24162
 
23937
24163
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
23938
- store: store$f
24164
+ store: store$g
23939
24165
  }, props));
23940
24166
 
23941
24167
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
23942
- store: store$f
24168
+ store: store$g
23943
24169
  }, props));
23944
24170
 
23945
24171
  var userSolidIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22plc-h-5%20plc-w-5%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22white%22%3E%20%20%3Cpath%20transform%3D%22translate%280%2C2%29%22%20fill-rule%3D%22evenodd%22%20d%3D%22M10%209a3%203%200%20100-6%203%203%200%20000%206zm-7%209a7%207%200%201114%200H3z%22%20clip-rule%3D%22evenodd%22%20%2F%3E%3C%2Fsvg%3E";
@@ -24026,7 +24252,7 @@ function Tin(_ref) {
24026
24252
  }
24027
24253
 
24028
24254
  const UserUpdateTin = props => /*#__PURE__*/React__default.createElement(Tin, Object.assign({
24029
- store: store$f
24255
+ store: store$g
24030
24256
  }, props));
24031
24257
 
24032
24258
  function DisplayName(_ref) {
@@ -24055,7 +24281,7 @@ function DisplayName(_ref) {
24055
24281
  }
24056
24282
 
24057
24283
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
24058
- store: store$f
24284
+ store: store$g
24059
24285
  }, props));
24060
24286
 
24061
24287
  const UserUpdateView = props => {
@@ -24149,11 +24375,11 @@ UserUpdateModal.viewId = "user-edit";
24149
24375
 
24150
24376
  const UserUpdateTextInput = props => {
24151
24377
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
24152
- store: store$f
24378
+ store: store$g
24153
24379
  }));
24154
24380
  };
24155
24381
 
24156
- const initialState$e = {
24382
+ const initialState$f = {
24157
24383
  isSubmitting: false,
24158
24384
  firstName: "",
24159
24385
  firstNameError: "",
@@ -24179,10 +24405,10 @@ const initialState$e = {
24179
24405
  content: ""
24180
24406
  }
24181
24407
  };
24182
- const store$e = /*#__PURE__*/createContext(initialState$e);
24408
+ const store$f = /*#__PURE__*/createContext(initialState$f);
24183
24409
  const {
24184
- Provider: Provider$e
24185
- } = store$e;
24410
+ Provider: Provider$f
24411
+ } = store$f;
24186
24412
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
24187
24413
  const AddressCreateContainer = _ref => {
24188
24414
  var _props$giftCode, _ref2, _props$subscriptionId;
@@ -24416,7 +24642,7 @@ const AddressCreateContainer = _ref => {
24416
24642
  default:
24417
24643
  return state;
24418
24644
  }
24419
- }, initialState$e);
24645
+ }, initialState$f);
24420
24646
  useEffect(() => {
24421
24647
  const getStates = () => {
24422
24648
  dispatch({
@@ -24448,16 +24674,16 @@ const AddressCreateContainer = _ref => {
24448
24674
  ...style
24449
24675
  },
24450
24676
  className: `pelcro-container pelcro-address-create-container ${className}`
24451
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
24677
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
24452
24678
  value: {
24453
24679
  state,
24454
24680
  dispatch
24455
24681
  }
24456
24682
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
24457
- store: store$e,
24683
+ store: store$f,
24458
24684
  key: i
24459
24685
  })) : /*#__PURE__*/React__default.cloneElement(children, {
24460
- store: store$e
24686
+ store: store$f
24461
24687
  })));
24462
24688
  };
24463
24689
 
@@ -24468,7 +24694,7 @@ function AddressCreateFirstName(props) {
24468
24694
  firstName,
24469
24695
  firstNameError
24470
24696
  }
24471
- } = useContext(store$e);
24697
+ } = useContext(store$f);
24472
24698
  const handleInputChange = value => {
24473
24699
  dispatch({
24474
24700
  type: SET_TEXT_FIELD,
@@ -24502,7 +24728,7 @@ function AddressCreateLastName(props) {
24502
24728
  lastName,
24503
24729
  lastNameError
24504
24730
  }
24505
- } = useContext(store$e);
24731
+ } = useContext(store$f);
24506
24732
  const handleInputChange = value => {
24507
24733
  dispatch({
24508
24734
  type: SET_TEXT_FIELD,
@@ -24534,7 +24760,7 @@ function AddressCreateLine1(props) {
24534
24760
  line1,
24535
24761
  line1Error
24536
24762
  }
24537
- } = useContext(store$e);
24763
+ } = useContext(store$f);
24538
24764
  const handleBlur = () => {
24539
24765
  return dispatch({
24540
24766
  type: VALIDATE_FIELD,
@@ -24573,7 +24799,7 @@ function AddressCreateCity(props) {
24573
24799
  city,
24574
24800
  cityError
24575
24801
  }
24576
- } = useContext(store$e);
24802
+ } = useContext(store$f);
24577
24803
  const handleInputChange = value => {
24578
24804
  dispatch({
24579
24805
  type: SET_TEXT_FIELD,
@@ -24605,7 +24831,7 @@ function AddressCreatePostalCode(props) {
24605
24831
  postalCode,
24606
24832
  postalCodeError
24607
24833
  }
24608
- } = useContext(store$e);
24834
+ } = useContext(store$f);
24609
24835
  const handleInputChange = value => {
24610
24836
  dispatch({
24611
24837
  type: SET_TEXT_FIELD,
@@ -24641,7 +24867,7 @@ const AddressCreateSubmit = _ref => {
24641
24867
  state: {
24642
24868
  isSubmitting
24643
24869
  }
24644
- } = useContext(store$e);
24870
+ } = useContext(store$f);
24645
24871
  const {
24646
24872
  t
24647
24873
  } = useTranslation("address");
@@ -24721,7 +24947,7 @@ function CountrySelect(_ref) {
24721
24947
  }
24722
24948
 
24723
24949
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
24724
- store: store$e
24950
+ store: store$f
24725
24951
  }, props));
24726
24952
 
24727
24953
  function StateSelect(_ref) {
@@ -24803,14 +25029,14 @@ function StateSelect(_ref) {
24803
25029
  }
24804
25030
 
24805
25031
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
24806
- store: store$e
25032
+ store: store$f
24807
25033
  }, props));
24808
25034
 
24809
25035
  const AddressCreateSetDefault = props => {
24810
25036
  const {
24811
25037
  dispatch,
24812
25038
  state
24813
- } = useContext(store$e);
25039
+ } = useContext(store$f);
24814
25040
  const handleCheckboxChange = e => {
24815
25041
  dispatch({
24816
25042
  type: HANDLE_CHECKBOX_CHANGE,
@@ -24935,18 +25161,18 @@ AddressCreateModal.viewId = "address-create";
24935
25161
 
24936
25162
  const AddressCreateTextInput = props => {
24937
25163
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
24938
- store: store$e
25164
+ store: store$f
24939
25165
  }));
24940
25166
  };
24941
25167
 
24942
25168
  const AddressCreateLine2 = props => {
24943
25169
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
24944
25170
  fieldName: "line2",
24945
- store: store$e
25171
+ store: store$f
24946
25172
  }, props));
24947
25173
  };
24948
25174
 
24949
- const initialState$d = {
25175
+ const initialState$e = {
24950
25176
  isSubmitting: false,
24951
25177
  firstName: "",
24952
25178
  firstNameError: "",
@@ -24972,10 +25198,10 @@ const initialState$d = {
24972
25198
  content: ""
24973
25199
  }
24974
25200
  };
24975
- const store$d = /*#__PURE__*/createContext(initialState$d);
25201
+ const store$e = /*#__PURE__*/createContext(initialState$e);
24976
25202
  const {
24977
- Provider: Provider$d
24978
- } = store$d;
25203
+ Provider: Provider$e
25204
+ } = store$e;
24979
25205
  const AddressUpdateContainer = _ref => {
24980
25206
  var _props$addressId, _window, _window$Pelcro, _window$Pelcro$uiSett;
24981
25207
  let {
@@ -25024,7 +25250,7 @@ const AddressUpdateContainer = _ref => {
25024
25250
  const thisAddress = addresses[address];
25025
25251
  if (+thisAddress.id === +addressId) {
25026
25252
  const newState = {
25027
- ...initialState$d,
25253
+ ...initialState$e,
25028
25254
  firstName: thisAddress.first_name,
25029
25255
  lastName: thisAddress.last_name,
25030
25256
  line1: thisAddress.line1,
@@ -25175,7 +25401,7 @@ const AddressUpdateContainer = _ref => {
25175
25401
  default:
25176
25402
  return state;
25177
25403
  }
25178
- }, initialState$d);
25404
+ }, initialState$e);
25179
25405
  useEffect(() => {
25180
25406
  const getStates = () => {
25181
25407
  dispatch({
@@ -25207,21 +25433,21 @@ const AddressUpdateContainer = _ref => {
25207
25433
  ...style
25208
25434
  },
25209
25435
  className: `pelcro-container pelcro-address-update-container ${className}`
25210
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
25436
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
25211
25437
  value: {
25212
25438
  state,
25213
25439
  dispatch
25214
25440
  }
25215
25441
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25216
- store: store$d,
25442
+ store: store$e,
25217
25443
  key: i
25218
25444
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25219
- store: store$d
25445
+ store: store$e
25220
25446
  })));
25221
25447
  };
25222
25448
 
25223
25449
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
25224
- store: store$d
25450
+ store: store$e
25225
25451
  }, props));
25226
25452
 
25227
25453
  function AddressUpdateFirstName(props) {
@@ -25231,7 +25457,7 @@ function AddressUpdateFirstName(props) {
25231
25457
  firstName,
25232
25458
  firstNameError
25233
25459
  }
25234
- } = useContext(store$d);
25460
+ } = useContext(store$e);
25235
25461
  const handleBlur = () => {
25236
25462
  return dispatch({
25237
25463
  type: VALIDATE_FIELD,
@@ -25270,7 +25496,7 @@ function AddressUpdateLastName(props) {
25270
25496
  lastName,
25271
25497
  lastNameError
25272
25498
  }
25273
- } = useContext(store$d);
25499
+ } = useContext(store$e);
25274
25500
  const handleBlur = () => {
25275
25501
  return dispatch({
25276
25502
  type: VALIDATE_FIELD,
@@ -25309,7 +25535,7 @@ function AddressUpdateLine1(props) {
25309
25535
  line1,
25310
25536
  line1Error
25311
25537
  }
25312
- } = useContext(store$d);
25538
+ } = useContext(store$e);
25313
25539
  const handleBlur = () => {
25314
25540
  return dispatch({
25315
25541
  type: VALIDATE_FIELD,
@@ -25345,7 +25571,7 @@ const AddressUpdateLine2 = props => {
25345
25571
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
25346
25572
  fieldName: "line2"
25347
25573
  }, props, {
25348
- store: store$d
25574
+ store: store$e
25349
25575
  }));
25350
25576
  };
25351
25577
 
@@ -25356,7 +25582,7 @@ function AddressUpdateCity(props) {
25356
25582
  city,
25357
25583
  cityError
25358
25584
  }
25359
- } = useContext(store$d);
25585
+ } = useContext(store$e);
25360
25586
  const handleBlur = () => {
25361
25587
  return dispatch({
25362
25588
  type: VALIDATE_FIELD,
@@ -25395,7 +25621,7 @@ function AddressUpdatePostalCode(props) {
25395
25621
  postalCode,
25396
25622
  postalCodeError
25397
25623
  }
25398
- } = useContext(store$d);
25624
+ } = useContext(store$e);
25399
25625
  const handleBlur = () => {
25400
25626
  return dispatch({
25401
25627
  type: VALIDATE_FIELD,
@@ -25438,7 +25664,7 @@ const AddressUpdateSubmit = _ref => {
25438
25664
  state: {
25439
25665
  isSubmitting
25440
25666
  }
25441
- } = useContext(store$d);
25667
+ } = useContext(store$e);
25442
25668
  const {
25443
25669
  t
25444
25670
  } = useTranslation("address");
@@ -25454,7 +25680,7 @@ const AddressUpdateSubmit = _ref => {
25454
25680
  };
25455
25681
 
25456
25682
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
25457
- store: store$d
25683
+ store: store$e
25458
25684
  }, props));
25459
25685
 
25460
25686
  function AddressUpdateSetDefault(props) {
@@ -25463,7 +25689,7 @@ function AddressUpdateSetDefault(props) {
25463
25689
  state: {
25464
25690
  isDefault
25465
25691
  }
25466
- } = useContext(store$d);
25692
+ } = useContext(store$e);
25467
25693
  const handleCheckboxChange = e => {
25468
25694
  dispatch({
25469
25695
  type: HANDLE_CHECKBOX_CHANGE,
@@ -25565,7 +25791,7 @@ AddressUpdateModal.viewId = "address-edit";
25565
25791
 
25566
25792
  const AddressUpdateTextInput = props => {
25567
25793
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
25568
- store: store$d
25794
+ store: store$e
25569
25795
  }));
25570
25796
  };
25571
25797
 
@@ -25655,7 +25881,7 @@ const PaymentMethodUpdateModal = props => {
25655
25881
  };
25656
25882
  PaymentMethodUpdateModal.viewId = "payment-method-update";
25657
25883
 
25658
- const initialState$c = {
25884
+ const initialState$d = {
25659
25885
  email: "",
25660
25886
  password: "",
25661
25887
  passwordError: null,
@@ -25668,10 +25894,10 @@ const initialState$c = {
25668
25894
  content: ""
25669
25895
  }
25670
25896
  };
25671
- const store$c = /*#__PURE__*/createContext(initialState$c);
25897
+ const store$d = /*#__PURE__*/createContext(initialState$d);
25672
25898
  const {
25673
- Provider: Provider$c
25674
- } = store$c;
25899
+ Provider: Provider$d
25900
+ } = store$d;
25675
25901
  const PasswordResetContainer = _ref => {
25676
25902
  let {
25677
25903
  style,
@@ -25726,7 +25952,7 @@ const PasswordResetContainer = _ref => {
25726
25952
  type: SET_EMAIL,
25727
25953
  payload: window.Pelcro.helpers.getURLParameter("email")
25728
25954
  });
25729
- initialState$c.email = window.Pelcro.helpers.getURLParameter("email");
25955
+ initialState$d.email = window.Pelcro.helpers.getURLParameter("email");
25730
25956
  dispatch({
25731
25957
  type: SET_TOKEN,
25732
25958
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -25786,27 +26012,27 @@ const PasswordResetContainer = _ref => {
25786
26012
  default:
25787
26013
  return state;
25788
26014
  }
25789
- }, initialState$c);
26015
+ }, initialState$d);
25790
26016
  return /*#__PURE__*/React__default.createElement("div", {
25791
26017
  style: {
25792
26018
  ...style
25793
26019
  },
25794
26020
  className: `pelcro-container pelcro-password-reset-container ${className}`
25795
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
26021
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
25796
26022
  value: {
25797
26023
  state,
25798
26024
  dispatch
25799
26025
  }
25800
26026
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25801
- store: store$c,
26027
+ store: store$d,
25802
26028
  key: i
25803
26029
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25804
- store: store$c
26030
+ store: store$d
25805
26031
  })));
25806
26032
  };
25807
26033
 
25808
26034
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
25809
- store: store$c
26035
+ store: store$d
25810
26036
  }, props));
25811
26037
 
25812
26038
  const PasswordResetButton = _ref => {
@@ -25820,7 +26046,7 @@ const PasswordResetButton = _ref => {
25820
26046
  buttonDisabled
25821
26047
  },
25822
26048
  dispatch
25823
- } = useContext(store$c);
26049
+ } = useContext(store$d);
25824
26050
  const {
25825
26051
  t
25826
26052
  } = useTranslation("passwordReset");
@@ -25837,14 +26063,14 @@ const PasswordResetButton = _ref => {
25837
26063
  };
25838
26064
 
25839
26065
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
25840
- store: store$c
26066
+ store: store$d
25841
26067
  }, props, {
25842
26068
  value: window.Pelcro.helpers.getURLParameter("email"),
25843
26069
  disabled: true
25844
26070
  }));
25845
26071
 
25846
26072
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
25847
- store: store$c
26073
+ store: store$d
25848
26074
  }, props));
25849
26075
 
25850
26076
  const PasswordResetView = props => {
@@ -25897,7 +26123,7 @@ const PasswordResetModal = _ref => {
25897
26123
  };
25898
26124
  PasswordResetModal.viewId = "password-reset";
25899
26125
 
25900
- const initialState$b = {
26126
+ const initialState$c = {
25901
26127
  email: "",
25902
26128
  emailError: null,
25903
26129
  buttonDisabled: false,
@@ -25906,10 +26132,10 @@ const initialState$b = {
25906
26132
  content: ""
25907
26133
  }
25908
26134
  };
25909
- const store$b = /*#__PURE__*/createContext(initialState$b);
26135
+ const store$c = /*#__PURE__*/createContext(initialState$c);
25910
26136
  const {
25911
- Provider: Provider$b
25912
- } = store$b;
26137
+ Provider: Provider$c
26138
+ } = store$c;
25913
26139
  const PasswordForgotContainer = _ref => {
25914
26140
  let {
25915
26141
  style,
@@ -25985,22 +26211,22 @@ const PasswordForgotContainer = _ref => {
25985
26211
  default:
25986
26212
  return state;
25987
26213
  }
25988
- }, initialState$b);
26214
+ }, initialState$c);
25989
26215
  return /*#__PURE__*/React__default.createElement("div", {
25990
26216
  style: {
25991
26217
  ...style
25992
26218
  },
25993
26219
  className: `pelcro-container pelcro-password-forgot-container ${className}`
25994
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
26220
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
25995
26221
  value: {
25996
26222
  state,
25997
26223
  dispatch
25998
26224
  }
25999
26225
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
26000
- store: store$b,
26226
+ store: store$c,
26001
26227
  key: i
26002
26228
  })) : /*#__PURE__*/React__default.cloneElement(children, {
26003
- store: store$b
26229
+ store: store$c
26004
26230
  })));
26005
26231
  };
26006
26232
 
@@ -26017,7 +26243,7 @@ const PasswordForgotButton = _ref => {
26017
26243
  emailError
26018
26244
  },
26019
26245
  dispatch
26020
- } = useContext(store$b);
26246
+ } = useContext(store$c);
26021
26247
  const {
26022
26248
  t
26023
26249
  } = useTranslation("passwordForgot");
@@ -26038,7 +26264,7 @@ const PasswordForgotButton = _ref => {
26038
26264
  };
26039
26265
 
26040
26266
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
26041
- store: store$b
26267
+ store: store$c
26042
26268
  }, props));
26043
26269
 
26044
26270
  const PasswordForgotView = props => {
@@ -26089,7 +26315,7 @@ const PasswordForgotModal = _ref => {
26089
26315
  };
26090
26316
  PasswordForgotModal.viewId = "password-forgot";
26091
26317
 
26092
- const initialState$a = {
26318
+ const initialState$b = {
26093
26319
  email: "",
26094
26320
  emailError: null,
26095
26321
  buttonDisabled: false,
@@ -26098,10 +26324,10 @@ const initialState$a = {
26098
26324
  content: ""
26099
26325
  }
26100
26326
  };
26101
- const store$a = /*#__PURE__*/createContext(initialState$a);
26327
+ const store$b = /*#__PURE__*/createContext(initialState$b);
26102
26328
  const {
26103
- Provider: Provider$a
26104
- } = store$a;
26329
+ Provider: Provider$b
26330
+ } = store$b;
26105
26331
  const PasswordlessRequestContainer = _ref => {
26106
26332
  let {
26107
26333
  style,
@@ -26177,22 +26403,22 @@ const PasswordlessRequestContainer = _ref => {
26177
26403
  default:
26178
26404
  return state;
26179
26405
  }
26180
- }, initialState$a);
26406
+ }, initialState$b);
26181
26407
  return /*#__PURE__*/React__default.createElement("div", {
26182
26408
  style: {
26183
26409
  ...style
26184
26410
  },
26185
26411
  className: `pelcro-container pelcro-password-forgot-container ${className}`
26186
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
26412
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
26187
26413
  value: {
26188
26414
  state,
26189
26415
  dispatch
26190
26416
  }
26191
26417
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
26192
- store: store$a,
26418
+ store: store$b,
26193
26419
  key: i
26194
26420
  })) : /*#__PURE__*/React__default.cloneElement(children, {
26195
- store: store$a
26421
+ store: store$b
26196
26422
  })));
26197
26423
  };
26198
26424
 
@@ -26209,7 +26435,7 @@ const PasswordlessRequestViewButton = _ref => {
26209
26435
  emailError
26210
26436
  },
26211
26437
  dispatch
26212
- } = useContext(store$a);
26438
+ } = useContext(store$b);
26213
26439
  const {
26214
26440
  t
26215
26441
  } = useTranslation("passwordlessRequest");
@@ -26230,7 +26456,7 @@ const PasswordlessRequestViewButton = _ref => {
26230
26456
  };
26231
26457
 
26232
26458
  const PasswordlessRequestEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
26233
- store: store$a
26459
+ store: store$b
26234
26460
  }, props));
26235
26461
 
26236
26462
  const PasswordlessRequestView = props => {
@@ -26272,7 +26498,7 @@ const PasswordlessRequestModal = _ref => {
26272
26498
  };
26273
26499
  PasswordlessRequestModal.viewId = "passwordless-request";
26274
26500
 
26275
- const initialState$9 = {
26501
+ const initialState$a = {
26276
26502
  currentPassword: "",
26277
26503
  newPassword: "",
26278
26504
  confirmNewPassword: "",
@@ -26286,10 +26512,10 @@ const initialState$9 = {
26286
26512
  content: ""
26287
26513
  }
26288
26514
  };
26289
- const store$9 = /*#__PURE__*/createContext(initialState$9);
26515
+ const store$a = /*#__PURE__*/createContext(initialState$a);
26290
26516
  const {
26291
- Provider: Provider$9
26292
- } = store$9;
26517
+ Provider: Provider$a
26518
+ } = store$a;
26293
26519
  const PasswordChangeContainer = _ref => {
26294
26520
  let {
26295
26521
  style,
@@ -26440,22 +26666,22 @@ const PasswordChangeContainer = _ref => {
26440
26666
  default:
26441
26667
  return state;
26442
26668
  }
26443
- }, initialState$9);
26669
+ }, initialState$a);
26444
26670
  return /*#__PURE__*/React__default.createElement("div", {
26445
26671
  style: {
26446
26672
  ...style
26447
26673
  },
26448
26674
  className: `pelcro-container pelcro-password-change-container ${className}`
26449
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
26675
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
26450
26676
  value: {
26451
26677
  state,
26452
26678
  dispatch
26453
26679
  }
26454
26680
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
26455
- store: store$9,
26681
+ store: store$a,
26456
26682
  key: i
26457
26683
  })) : /*#__PURE__*/React__default.cloneElement(children, {
26458
- store: store$9
26684
+ store: store$a
26459
26685
  })));
26460
26686
  };
26461
26687
 
@@ -26466,7 +26692,7 @@ function PasswordChangeCurrentPassword(props) {
26466
26692
  currentPassword,
26467
26693
  currentPasswordError
26468
26694
  }
26469
- } = useContext(store$9);
26695
+ } = useContext(store$a);
26470
26696
  const handleBlur = useCallback(() => {
26471
26697
  return dispatch({
26472
26698
  type: VALIDATE_PASSWORD
@@ -26500,7 +26726,7 @@ function PasswordChangeNewPassword(props) {
26500
26726
  newPassword,
26501
26727
  newPasswordError
26502
26728
  }
26503
- } = useContext(store$9);
26729
+ } = useContext(store$a);
26504
26730
  const handleBlur = useCallback(() => {
26505
26731
  return dispatch({
26506
26732
  type: VALIDATE_NEW_PASSWORD
@@ -26534,7 +26760,7 @@ function PasswordChangeConfirmNewPassword(props) {
26534
26760
  confirmNewPassword,
26535
26761
  confirmNewPasswordError
26536
26762
  }
26537
- } = useContext(store$9);
26763
+ } = useContext(store$a);
26538
26764
  const handleBlur = useCallback(() => {
26539
26765
  return dispatch({
26540
26766
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -26576,7 +26802,7 @@ const PasswordChangeButton = _ref => {
26576
26802
  confirmNewPasswordError
26577
26803
  },
26578
26804
  dispatch
26579
- } = useContext(store$9);
26805
+ } = useContext(store$a);
26580
26806
  const {
26581
26807
  t
26582
26808
  } = useTranslation("passwordChange");
@@ -26643,17 +26869,17 @@ const PasswordChangeModal = _ref => {
26643
26869
  };
26644
26870
  PasswordChangeModal.viewId = "password-change";
26645
26871
 
26646
- const initialState$8 = {
26872
+ const initialState$9 = {
26647
26873
  buttonDisabled: false,
26648
26874
  alert: {
26649
26875
  type: "error",
26650
26876
  content: ""
26651
26877
  }
26652
26878
  };
26653
- const store$8 = /*#__PURE__*/createContext(initialState$8);
26879
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
26654
26880
  const {
26655
- Provider: Provider$8
26656
- } = store$8;
26881
+ Provider: Provider$9
26882
+ } = store$9;
26657
26883
  const CartContainer = _ref => {
26658
26884
  let {
26659
26885
  style,
@@ -26739,22 +26965,22 @@ const CartContainer = _ref => {
26739
26965
  default:
26740
26966
  return state;
26741
26967
  }
26742
- }, initialState$8);
26968
+ }, initialState$9);
26743
26969
  return /*#__PURE__*/React__default.createElement("div", {
26744
26970
  style: {
26745
26971
  ...style
26746
26972
  },
26747
26973
  className: `pelcro-container pelcro-cart-container ${className}`
26748
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
26974
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
26749
26975
  value: {
26750
26976
  state,
26751
26977
  dispatch
26752
26978
  }
26753
26979
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
26754
- store: store$8,
26980
+ store: store$9,
26755
26981
  key: i
26756
26982
  })) : /*#__PURE__*/React__default.cloneElement(children, {
26757
- store: store$8
26983
+ store: store$9
26758
26984
  })));
26759
26985
  };
26760
26986
 
@@ -26796,7 +27022,7 @@ const CartSubmit = _ref => {
26796
27022
  buttonDisabled
26797
27023
  },
26798
27024
  dispatch
26799
- } = useContext(store$8);
27025
+ } = useContext(store$9);
26800
27026
  const {
26801
27027
  t
26802
27028
  } = useTranslation("cart");
@@ -26831,7 +27057,7 @@ const CartTotalPrice = () => {
26831
27057
  state: {
26832
27058
  alert
26833
27059
  }
26834
- } = useContext(store$8);
27060
+ } = useContext(store$9);
26835
27061
  const {
26836
27062
  cartItems
26837
27063
  } = usePelcro();
@@ -27145,7 +27371,7 @@ const OrderConfirmModal = props => {
27145
27371
  };
27146
27372
  OrderConfirmModal.viewId = "order-confirm";
27147
27373
 
27148
- const initialState$7 = {
27374
+ const initialState$8 = {
27149
27375
  email: "",
27150
27376
  firstName: "",
27151
27377
  lastName: "",
@@ -27157,10 +27383,10 @@ const initialState$7 = {
27157
27383
  content: ""
27158
27384
  }
27159
27385
  };
27160
- const store$7 = /*#__PURE__*/createContext(initialState$7);
27386
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
27161
27387
  const {
27162
- Provider: Provider$7
27163
- } = store$7;
27388
+ Provider: Provider$8
27389
+ } = store$8;
27164
27390
  const GiftCreateContainer = _ref => {
27165
27391
  let {
27166
27392
  style,
@@ -27258,22 +27484,22 @@ const GiftCreateContainer = _ref => {
27258
27484
  default:
27259
27485
  return state;
27260
27486
  }
27261
- }, initialState$7);
27487
+ }, initialState$8);
27262
27488
  return /*#__PURE__*/React__default.createElement("div", {
27263
27489
  style: {
27264
27490
  ...style
27265
27491
  },
27266
27492
  className: `pelcro-container pelcro-gift-create-container ${className}`
27267
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
27493
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
27268
27494
  value: {
27269
27495
  state,
27270
27496
  dispatch
27271
27497
  }
27272
27498
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
27273
- store: store$7,
27499
+ store: store$8,
27274
27500
  key: i
27275
27501
  })) : /*#__PURE__*/React__default.cloneElement(children, {
27276
- store: store$7
27502
+ store: store$8
27277
27503
  })));
27278
27504
  };
27279
27505
 
@@ -27288,7 +27514,7 @@ const GiftCreateSubmitButton = _ref => {
27288
27514
  state: {
27289
27515
  disableSubmit
27290
27516
  }
27291
- } = useContext(store$7);
27517
+ } = useContext(store$8);
27292
27518
  const {
27293
27519
  t
27294
27520
  } = useTranslation("register");
@@ -27305,17 +27531,17 @@ const GiftCreateSubmitButton = _ref => {
27305
27531
 
27306
27532
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
27307
27533
  initWithUserEmail: false,
27308
- store: store$7
27534
+ store: store$8
27309
27535
  }, props));
27310
27536
 
27311
27537
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
27312
27538
  initWithUserFirstName: false,
27313
- store: store$7
27539
+ store: store$8
27314
27540
  }, props));
27315
27541
 
27316
27542
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
27317
27543
  initWithUserLastName: false,
27318
- store: store$7
27544
+ store: store$8
27319
27545
  }, props));
27320
27546
 
27321
27547
  const nowDate = new Date();
@@ -27329,7 +27555,7 @@ const GiftCreateStartDate = props => {
27329
27555
  const {
27330
27556
  dispatch,
27331
27557
  state
27332
- } = useContext(store$7);
27558
+ } = useContext(store$8);
27333
27559
  const handleInputChange = value => {
27334
27560
  dispatch({
27335
27561
  type: SET_START_DATE,
@@ -27359,7 +27585,7 @@ function GiftCreateMessage(props) {
27359
27585
  const {
27360
27586
  dispatch,
27361
27587
  state
27362
- } = useContext(store$7);
27588
+ } = useContext(store$8);
27363
27589
  const MAX_CHARS_COUNT = 200;
27364
27590
  const remainingCharsCount = (_ref = MAX_CHARS_COUNT - ((_state$giftMessage = state.giftMessage) === null || _state$giftMessage === void 0 ? void 0 : _state$giftMessage.length)) !== null && _ref !== void 0 ? _ref : 0;
27365
27591
  const handleInputChange = value => {
@@ -27477,7 +27703,7 @@ const GiftCreateModal = _ref => {
27477
27703
  };
27478
27704
  GiftCreateModal.viewId = "gift-create";
27479
27705
 
27480
- const initialState$6 = {
27706
+ const initialState$7 = {
27481
27707
  isSubmitting: false,
27482
27708
  giftCode: "",
27483
27709
  buttonDisabled: true,
@@ -27486,10 +27712,10 @@ const initialState$6 = {
27486
27712
  content: ""
27487
27713
  }
27488
27714
  };
27489
- const store$6 = /*#__PURE__*/createContext(initialState$6);
27715
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
27490
27716
  const {
27491
- Provider: Provider$6
27492
- } = store$6;
27717
+ Provider: Provider$7
27718
+ } = store$7;
27493
27719
  const GiftRedeemContainer = _ref => {
27494
27720
  var _ref2, _props$subscriptionId;
27495
27721
  let {
@@ -27599,22 +27825,22 @@ const GiftRedeemContainer = _ref => {
27599
27825
  default:
27600
27826
  return state;
27601
27827
  }
27602
- }, initialState$6);
27828
+ }, initialState$7);
27603
27829
  return /*#__PURE__*/React__default.createElement("div", {
27604
27830
  style: {
27605
27831
  ...style
27606
27832
  },
27607
27833
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
27608
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
27834
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
27609
27835
  value: {
27610
27836
  state,
27611
27837
  dispatch
27612
27838
  }
27613
27839
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
27614
- store: store$6,
27840
+ store: store$7,
27615
27841
  key: i
27616
27842
  })) : /*#__PURE__*/React__default.cloneElement(children, {
27617
- store: store$6
27843
+ store: store$7
27618
27844
  })));
27619
27845
  };
27620
27846
 
@@ -27648,7 +27874,7 @@ function GiftCode(_ref) {
27648
27874
  }
27649
27875
 
27650
27876
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
27651
- store: store$6
27877
+ store: store$7
27652
27878
  }, props));
27653
27879
 
27654
27880
  const GiftRedeemSubmitButton = _ref => {
@@ -27663,7 +27889,7 @@ const GiftRedeemSubmitButton = _ref => {
27663
27889
  disableSubmit,
27664
27890
  isSubmitting
27665
27891
  }
27666
- } = useContext(store$6);
27892
+ } = useContext(store$7);
27667
27893
  const {
27668
27894
  t
27669
27895
  } = useTranslation("register");
@@ -27748,7 +27974,7 @@ const moveDefaultAddressToStart = addresses => {
27748
27974
  const addressesWithoutDefault = addresses.filter(address => !address.is_default);
27749
27975
  return [defaultAddress, ...addressesWithoutDefault];
27750
27976
  };
27751
- const initialState$5 = {
27977
+ const initialState$6 = {
27752
27978
  addresses: [],
27753
27979
  selectedAddressId: null,
27754
27980
  isSubmitting: false,
@@ -27757,10 +27983,10 @@ const initialState$5 = {
27757
27983
  content: ""
27758
27984
  }
27759
27985
  };
27760
- const store$5 = /*#__PURE__*/createContext(initialState$5);
27986
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
27761
27987
  const {
27762
- Provider: Provider$5
27763
- } = store$5;
27988
+ Provider: Provider$6
27989
+ } = store$6;
27764
27990
  const AddressSelectContainer = _ref => {
27765
27991
  var _props$giftCode, _ref2, _props$subscriptionId;
27766
27992
  let {
@@ -27887,7 +28113,7 @@ const AddressSelectContainer = _ref => {
27887
28113
  default:
27888
28114
  return state;
27889
28115
  }
27890
- }, initialState$5);
28116
+ }, initialState$6);
27891
28117
  useEffect(() => {
27892
28118
  var _window$Pelcro$user$r;
27893
28119
  dispatch({
@@ -27900,16 +28126,16 @@ const AddressSelectContainer = _ref => {
27900
28126
  ...style
27901
28127
  },
27902
28128
  className: `pelcro-container pelcro-address-select-container ${className}`
27903
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
28129
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
27904
28130
  value: {
27905
28131
  state,
27906
28132
  dispatch
27907
28133
  }
27908
28134
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
27909
- store: store$5,
28135
+ store: store$6,
27910
28136
  key: i
27911
28137
  })) : /*#__PURE__*/React__default.cloneElement(children, {
27912
- store: store$5
28138
+ store: store$6
27913
28139
  })));
27914
28140
  };
27915
28141
 
@@ -27920,7 +28146,7 @@ const AddressSelectList = () => {
27920
28146
  addresses,
27921
28147
  selectedAddressId
27922
28148
  }
27923
- } = useContext(store$5);
28149
+ } = useContext(store$6);
27924
28150
  const handleAddressSelect = event => {
27925
28151
  dispatch({
27926
28152
  type: SELECT_ADDRESS,
@@ -27963,7 +28189,7 @@ const AddressSelectSubmit = _ref => {
27963
28189
  selectedAddressId,
27964
28190
  isSubmitting
27965
28191
  }
27966
- } = useContext(store$5);
28192
+ } = useContext(store$6);
27967
28193
  const {
27968
28194
  t
27969
28195
  } = useTranslation("address");
@@ -28059,7 +28285,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
28059
28285
  }
28060
28286
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
28061
28287
  };
28062
- const initialState$4 = {
28288
+ const initialState$5 = {
28063
28289
  paymentMethods: [],
28064
28290
  selectedPaymentMethodId: null,
28065
28291
  isSubmitting: false,
@@ -28068,10 +28294,10 @@ const initialState$4 = {
28068
28294
  content: ""
28069
28295
  }
28070
28296
  };
28071
- const store$4 = /*#__PURE__*/createContext(initialState$4);
28297
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
28072
28298
  const {
28073
- Provider: Provider$4
28074
- } = store$4;
28299
+ Provider: Provider$5
28300
+ } = store$5;
28075
28301
  const PaymentMethodSelectContainer = _ref => {
28076
28302
  let {
28077
28303
  style,
@@ -28124,7 +28350,7 @@ const PaymentMethodSelectContainer = _ref => {
28124
28350
  default:
28125
28351
  return state;
28126
28352
  }
28127
- }, initialState$4);
28353
+ }, initialState$5);
28128
28354
  useEffect(() => {
28129
28355
  var _window$Pelcro$user$r3;
28130
28356
  dispatch({
@@ -28137,16 +28363,16 @@ const PaymentMethodSelectContainer = _ref => {
28137
28363
  ...style
28138
28364
  },
28139
28365
  className: `pelcro-container pelcro-payment-select-container ${className}`
28140
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
28366
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
28141
28367
  value: {
28142
28368
  state,
28143
28369
  dispatch
28144
28370
  }
28145
28371
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
28146
- store: store$4,
28372
+ store: store$5,
28147
28373
  key: i
28148
28374
  })) : /*#__PURE__*/React__default.cloneElement(children, {
28149
- store: store$4
28375
+ store: store$5
28150
28376
  })));
28151
28377
  };
28152
28378
 
@@ -28160,7 +28386,7 @@ const PaymentMethodSelectList = () => {
28160
28386
  paymentMethods,
28161
28387
  selectedPaymentMethodId
28162
28388
  }
28163
- } = useContext(store$4);
28389
+ } = useContext(store$5);
28164
28390
  const handlePaymentMethodSelect = event => {
28165
28391
  dispatch({
28166
28392
  type: SELECT_PAYMENT_METHOD,
@@ -28208,7 +28434,7 @@ const PaymentMethodSelectSubmit = _ref => {
28208
28434
  selectedPaymentMethodId,
28209
28435
  isSubmitting
28210
28436
  }
28211
- } = useContext(store$4);
28437
+ } = useContext(store$5);
28212
28438
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
28213
28439
  onClick: () => {
28214
28440
  dispatch({
@@ -28288,33 +28514,322 @@ const PaymentMethodSelectModal = _ref => {
28288
28514
  };
28289
28515
  PaymentMethodSelectModal.viewId = "payment-method-select";
28290
28516
 
28291
- function _extends$h() {
28292
- _extends$h = Object.assign || function (target) {
28293
- for (var i = 1; i < arguments.length; i++) {
28294
- var source = arguments[i];
28295
-
28296
- for (var key in source) {
28297
- if (Object.prototype.hasOwnProperty.call(source, key)) {
28298
- target[key] = source[key];
28299
- }
28300
- }
28301
- }
28302
-
28303
- return target;
28304
- };
28305
-
28306
- return _extends$h.apply(this, arguments);
28307
- }
28308
-
28309
- function _objectWithoutPropertiesLoose(source, excluded) {
28310
- if (source == null) return {};
28311
- var target = {};
28312
- var sourceKeys = Object.keys(source);
28313
- var key, i;
28314
-
28315
- for (i = 0; i < sourceKeys.length; i++) {
28316
- key = sourceKeys[i];
28317
- if (excluded.indexOf(key) >= 0) continue;
28517
+ const initialState$4 = {
28518
+ paymentMethods: [],
28519
+ selectedPaymentMethodId: null,
28520
+ isSubmitting: false,
28521
+ deleteOption: "add",
28522
+ alert: {
28523
+ type: "error",
28524
+ content: ""
28525
+ }
28526
+ };
28527
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
28528
+ const {
28529
+ Provider: Provider$4
28530
+ } = store$4;
28531
+ const PaymentMethodDeleteContainer = _ref => {
28532
+ let {
28533
+ style,
28534
+ className = "",
28535
+ onSuccess = () => {},
28536
+ onFailure = () => {},
28537
+ children
28538
+ } = _ref;
28539
+ const {
28540
+ paymentMethodToDelete
28541
+ } = usePelcro();
28542
+ useEffect(() => {
28543
+ window.Pelcro.paymentMethods.list({
28544
+ auth_token: window.Pelcro.user.read().auth_token
28545
+ }, (err, res) => {
28546
+ if (err) {
28547
+ return console.error(err);
28548
+ }
28549
+ if (res) {
28550
+ dispatch({
28551
+ type: SET_PAYMENT_METHODS,
28552
+ payload: res.data
28553
+ });
28554
+ // if (res.data.length !== 1) {
28555
+ // dispatch({
28556
+ // type: SET_DELETE_PAYMENT_METHOD_OPTION,
28557
+ // payload: "select"
28558
+ // });
28559
+ // } else {
28560
+ // dispatch({
28561
+ // type: SET_DELETE_PAYMENT_METHOD_OPTION,
28562
+ // payload: "add"
28563
+ // });
28564
+ // }
28565
+ }
28566
+ });
28567
+ }, []);
28568
+ const setDefaultPaymentMethod = () => {
28569
+ const {
28570
+ selectedPaymentMethodId: paymentMethodId
28571
+ } = state;
28572
+ window.Pelcro.paymentMethods.update({
28573
+ auth_token: window.Pelcro.user.read().auth_token,
28574
+ payment_method_id: paymentMethodId,
28575
+ is_default: true
28576
+ }, (err, res) => {
28577
+ if (err) {
28578
+ onFailure(err);
28579
+ return dispatch({
28580
+ type: SHOW_ALERT,
28581
+ payload: {
28582
+ type: "error",
28583
+ content: getErrorMessages(err)
28584
+ }
28585
+ });
28586
+ }
28587
+ deletePaymentMethod();
28588
+ });
28589
+ };
28590
+ const deletePaymentMethod = () => {
28591
+ const {
28592
+ id: paymentMethodId
28593
+ } = paymentMethodToDelete;
28594
+ window.Pelcro.paymentMethods.deletePaymentMethod({
28595
+ auth_token: window.Pelcro.user.read().auth_token,
28596
+ payment_method_id: paymentMethodId
28597
+ }, (err, res) => {
28598
+ if (err) {
28599
+ return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
28600
+ }
28601
+ dispatch({
28602
+ type: SHOW_ALERT,
28603
+ payload: {
28604
+ type: "success",
28605
+ content: "messages.sourceUpdated"
28606
+ }
28607
+ });
28608
+ onSuccess(res);
28609
+ });
28610
+ };
28611
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
28612
+ switch (action.type) {
28613
+ case SELECT_PAYMENT_METHOD:
28614
+ return lib_7({
28615
+ ...state,
28616
+ selectedPaymentMethodId: action.payload
28617
+ });
28618
+ case HANDLE_SUBMIT:
28619
+ return lib_5({
28620
+ ...state,
28621
+ isSubmitting: true
28622
+ }, (state, dispatch) => setDefaultPaymentMethod());
28623
+ case SET_DELETE_PAYMENT_METHOD_OPTION:
28624
+ return lib_7({
28625
+ ...state,
28626
+ deleteOption: action.payload
28627
+ });
28628
+ case SET_PAYMENT_METHODS:
28629
+ return lib_7({
28630
+ ...state,
28631
+ paymentMethods: action.payload
28632
+ });
28633
+ default:
28634
+ return state;
28635
+ }
28636
+ }, initialState$4);
28637
+ return /*#__PURE__*/React__default.createElement("div", {
28638
+ style: {
28639
+ ...style
28640
+ },
28641
+ className: `pelcro-container pelcro-payment-method-delete-container ${className}`
28642
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
28643
+ value: {
28644
+ state,
28645
+ dispatch
28646
+ }
28647
+ }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
28648
+ store: store$4,
28649
+ key: i
28650
+ })) : /*#__PURE__*/React__default.cloneElement(children, {
28651
+ store: store$4
28652
+ })));
28653
+ };
28654
+
28655
+ const PaymentMethodDeleteSubmit = _ref => {
28656
+ let {
28657
+ name,
28658
+ onClick,
28659
+ ...otherProps
28660
+ } = _ref;
28661
+ const {
28662
+ t
28663
+ } = useTranslation("paymentMethod");
28664
+ const {
28665
+ dispatch,
28666
+ state: {
28667
+ selectedPaymentMethodId,
28668
+ isSubmitting
28669
+ }
28670
+ } = useContext(store$4);
28671
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
28672
+ onClick: () => {
28673
+ dispatch({
28674
+ type: HANDLE_SUBMIT
28675
+ });
28676
+ onClick === null || onClick === void 0 ? void 0 : onClick();
28677
+ },
28678
+ disabled: !selectedPaymentMethodId,
28679
+ isLoading: isSubmitting,
28680
+ className: "plc-w-full"
28681
+ }, otherProps), name !== null && name !== void 0 ? name : t("select.buttons.selectPaymentMethod"));
28682
+ };
28683
+
28684
+ const PaymentMethodDeleteList = props => {
28685
+ const {
28686
+ t
28687
+ } = useTranslation("paymentMethod");
28688
+ const {
28689
+ dispatch,
28690
+ state: {
28691
+ deleteOption,
28692
+ selectedPaymentMethodId,
28693
+ paymentMethods
28694
+ }
28695
+ } = useContext(store$4);
28696
+ const {
28697
+ paymentMethodToDelete
28698
+ } = usePelcro();
28699
+ const handlePaymentMethodSelect = event => {
28700
+ dispatch({
28701
+ type: SELECT_PAYMENT_METHOD,
28702
+ payload: event.target.value
28703
+ });
28704
+ };
28705
+ return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, paymentMethods && deleteOption === "select" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
28706
+ className: "plc-px-3 plc-py-2 plc-space-y-4 plc-overflow-y-scroll plc-max-h-80 pelcro-payment-method-select-wrapper"
28707
+ }, paymentMethods.filter(paymentMethod => (paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id) !== (paymentMethodToDelete === null || paymentMethodToDelete === void 0 ? void 0 : paymentMethodToDelete.id)).map(paymentMethod => {
28708
+ var _paymentMethod$proper, _paymentMethod$proper2, _paymentMethod$proper3, _paymentMethod$proper4;
28709
+ const isSelected = selectedPaymentMethodId === String(paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id);
28710
+ return /*#__PURE__*/React__default.createElement("div", {
28711
+ key: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
28712
+ className: `plc-p-2 plc-pl-4 plc-shadow-md plc-text-gray-900 plc-rounded pelcro-payment-method-wrapper`
28713
+ }, /*#__PURE__*/React__default.createElement(Radio, {
28714
+ className: "plc-flex plc-items-center pelcro-select-payment-method-radio",
28715
+ labelClassName: "plc-flex plc-items-center plc-space-x-2 plc-cursor-pointer plc-w-full",
28716
+ id: `pelcro-payment-method-select-${paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id}`,
28717
+ name: "paymentMethod",
28718
+ checked: isSelected,
28719
+ value: paymentMethod === null || paymentMethod === void 0 ? void 0 : paymentMethod.id,
28720
+ onChange: handlePaymentMethodSelect
28721
+ }, getPaymentCardIcon$1((_paymentMethod$proper = paymentMethod.properties) === null || _paymentMethod$proper === void 0 ? void 0 : _paymentMethod$proper.brand), /*#__PURE__*/React__default.createElement("div", {
28722
+ className: "plc-flex plc-flex-col plc-text-lg pelcro-payment-method-details"
28723
+ }, /*#__PURE__*/React__default.createElement("p", {
28724
+ className: "plc-font-semibold"
28725
+ }, "\u2022\u2022\u2022\u2022 \u2022\u2022\u2022\u2022 ", (_paymentMethod$proper2 = paymentMethod.properties) === null || _paymentMethod$proper2 === void 0 ? void 0 : _paymentMethod$proper2.last4), /*#__PURE__*/React__default.createElement("p", {
28726
+ className: "plc-text-sm plc-text-gray-500"
28727
+ }, t("select.expires"), " ", (_paymentMethod$proper3 = paymentMethod.properties) === null || _paymentMethod$proper3 === void 0 ? void 0 : _paymentMethod$proper3.exp_month, "/", (_paymentMethod$proper4 = paymentMethod.properties) === null || _paymentMethod$proper4 === void 0 ? void 0 : _paymentMethod$proper4.exp_year))));
28728
+ })), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteSubmit, null)), deleteOption === "add" && /*#__PURE__*/React__default.createElement(PaymentMethodView, {
28729
+ type: "deletePaymentSource",
28730
+ showCoupon: false,
28731
+ showExternalPaymentMethods: false,
28732
+ showApplePayButton: false,
28733
+ onDisplay: props.onDisplay,
28734
+ onFailure: props.onFailure,
28735
+ onSuccess: props.onSuccess,
28736
+ setAsDefault: true
28737
+ }));
28738
+ };
28739
+
28740
+ const PaymentMethodDeleteOptions = _ref => {
28741
+ const {
28742
+ state: {
28743
+ deleteOption,
28744
+ paymentMethods
28745
+ },
28746
+ dispatch
28747
+ } = useContext(store$4);
28748
+ const {
28749
+ t
28750
+ } = useTranslation("paymentMethod");
28751
+ const handleOptionSelect = event => {
28752
+ dispatch({
28753
+ type: SET_DELETE_PAYMENT_METHOD_OPTION,
28754
+ payload: event.target.value
28755
+ });
28756
+ };
28757
+ return /*#__PURE__*/React__default.createElement("div", {
28758
+ className: "plc-text-left plc-mr-auto plc-mb-6"
28759
+ }, /*#__PURE__*/React__default.createElement(Radio, {
28760
+ onChange: handleOptionSelect,
28761
+ checked: deleteOption === "add",
28762
+ value: "add"
28763
+ }, t("delete.options.add")));
28764
+ };
28765
+
28766
+ function PaymentMethodDeleteView() {
28767
+ const [t] = useTranslation("paymentMethod");
28768
+ return /*#__PURE__*/React__default.createElement("div", {
28769
+ id: "pelcro-payment-method-delete-view"
28770
+ }, /*#__PURE__*/React__default.createElement("div", {
28771
+ className: "plc-mb-2 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
28772
+ }, /*#__PURE__*/React__default.createElement("h4", {
28773
+ className: "plc-text-2xl plc-font-semibold"
28774
+ }, t("delete.title")), /*#__PURE__*/React__default.createElement("p", null, t("delete.subtitle"))), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteContainer, null, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteOptions, null), /*#__PURE__*/React__default.createElement(PaymentMethodDeleteList, null)));
28775
+ }
28776
+
28777
+ const PaymentMethodDeleteModal = props => {
28778
+ var _window, _window$Pelcro, _window$Pelcro$uiSett;
28779
+ const enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
28780
+ const onSuccess = res => {
28781
+ var _props$onSuccess;
28782
+ (_props$onSuccess = props.onSuccess) === null || _props$onSuccess === void 0 ? void 0 : _props$onSuccess.call(props, res);
28783
+ if (enableReactGA4) {
28784
+ ReactGA4.event("Delete payment card", {
28785
+ nonInteraction: true
28786
+ });
28787
+ } else {
28788
+ var _ReactGA$event;
28789
+ ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
28790
+ category: "ACTIONS",
28791
+ action: "Delete payment card",
28792
+ nonInteraction: true
28793
+ });
28794
+ }
28795
+ };
28796
+ return /*#__PURE__*/React__default.createElement(Modal, {
28797
+ id: "pelcro-payment-method-delete-modal",
28798
+ onDisplay: props.onDisplay,
28799
+ onClose: props.onClose
28800
+ }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(PaymentMethodDeleteView, Object.assign({}, props, {
28801
+ onSuccess: onSuccess
28802
+ }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
28803
+ };
28804
+ PaymentMethodDeleteModal.viewId = "payment-method-delete";
28805
+
28806
+ function _extends$i() {
28807
+ _extends$i = Object.assign || function (target) {
28808
+ for (var i = 1; i < arguments.length; i++) {
28809
+ var source = arguments[i];
28810
+
28811
+ for (var key in source) {
28812
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
28813
+ target[key] = source[key];
28814
+ }
28815
+ }
28816
+ }
28817
+
28818
+ return target;
28819
+ };
28820
+
28821
+ return _extends$i.apply(this, arguments);
28822
+ }
28823
+
28824
+ function _objectWithoutPropertiesLoose(source, excluded) {
28825
+ if (source == null) return {};
28826
+ var target = {};
28827
+ var sourceKeys = Object.keys(source);
28828
+ var key, i;
28829
+
28830
+ for (i = 0; i < sourceKeys.length; i++) {
28831
+ key = sourceKeys[i];
28832
+ if (excluded.indexOf(key) >= 0) continue;
28318
28833
  target[key] = source[key];
28319
28834
  }
28320
28835
 
@@ -28487,7 +29002,7 @@ function render(props, propsBag, defaultTag, features, visible) {
28487
29002
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
28488
29003
  return null;
28489
29004
  }, _match[RenderStrategy.Hidden] = function () {
28490
- return _render(_extends$h({}, _rest, {
29005
+ return _render(_extends$i({}, _rest, {
28491
29006
  hidden: true,
28492
29007
  style: {
28493
29008
  display: 'none'
@@ -29015,7 +29530,7 @@ function TransitionChild(props) {
29015
29530
  var passthroughProps = rest;
29016
29531
  return React__default.createElement(NestingContext.Provider, {
29017
29532
  value: nesting
29018
- }, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
29533
+ }, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
29019
29534
  }
29020
29535
 
29021
29536
  function Transition(props) {
@@ -29059,7 +29574,7 @@ function Transition(props) {
29059
29574
  value: nestingBag
29060
29575
  }, React__default.createElement(TransitionContext.Provider, {
29061
29576
  value: transitionBag
29062
- }, render(_extends$h({}, sharedProps, {
29577
+ }, render(_extends$i({}, sharedProps, {
29063
29578
  as: Fragment,
29064
29579
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
29065
29580
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -29186,12 +29701,12 @@ var ActionTypes;
29186
29701
  })(ActionTypes || (ActionTypes = {}));
29187
29702
 
29188
29703
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
29189
- return _extends$h({}, state, {
29704
+ return _extends$i({}, state, {
29190
29705
  activeItemIndex: null,
29191
29706
  menuState: MenuStates.Closed
29192
29707
  });
29193
29708
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
29194
- return _extends$h({}, state, {
29709
+ return _extends$i({}, state, {
29195
29710
  menuState: MenuStates.Open
29196
29711
  });
29197
29712
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -29210,7 +29725,7 @@ var ActionTypes;
29210
29725
  }
29211
29726
  });
29212
29727
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
29213
- return _extends$h({}, state, {
29728
+ return _extends$i({}, state, {
29214
29729
  searchQuery: '',
29215
29730
  activeItemIndex: activeItemIndex
29216
29731
  });
@@ -29221,19 +29736,19 @@ var ActionTypes;
29221
29736
 
29222
29737
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
29223
29738
  });
29224
- if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
29739
+ if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
29225
29740
  searchQuery: searchQuery
29226
29741
  });
29227
- return _extends$h({}, state, {
29742
+ return _extends$i({}, state, {
29228
29743
  searchQuery: searchQuery,
29229
29744
  activeItemIndex: match
29230
29745
  });
29231
29746
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
29232
- return _extends$h({}, state, {
29747
+ return _extends$i({}, state, {
29233
29748
  searchQuery: ''
29234
29749
  });
29235
29750
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
29236
- return _extends$h({}, state, {
29751
+ return _extends$i({}, state, {
29237
29752
  items: [].concat(state.items, [{
29238
29753
  id: action.id,
29239
29754
  dataRef: action.dataRef
@@ -29246,7 +29761,7 @@ var ActionTypes;
29246
29761
  return a.id === action.id;
29247
29762
  });
29248
29763
  if (idx !== -1) nextItems.splice(idx, 1);
29249
- return _extends$h({}, state, {
29764
+ return _extends$i({}, state, {
29250
29765
  items: nextItems,
29251
29766
  activeItemIndex: function () {
29252
29767
  if (idx === state.activeItemIndex) return null;
@@ -29285,19 +29800,19 @@ var ActionTypes$1;
29285
29800
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
29286
29801
  if (state.disabled) return state;
29287
29802
  if (state.listboxState === ListboxStates.Closed) return state;
29288
- return _extends$h({}, state, {
29803
+ return _extends$i({}, state, {
29289
29804
  activeOptionIndex: null,
29290
29805
  listboxState: ListboxStates.Closed
29291
29806
  });
29292
29807
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
29293
29808
  if (state.disabled) return state;
29294
29809
  if (state.listboxState === ListboxStates.Open) return state;
29295
- return _extends$h({}, state, {
29810
+ return _extends$i({}, state, {
29296
29811
  listboxState: ListboxStates.Open
29297
29812
  });
29298
29813
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
29299
29814
  if (state.disabled === action.disabled) return state;
29300
- return _extends$h({}, state, {
29815
+ return _extends$i({}, state, {
29301
29816
  disabled: action.disabled
29302
29817
  });
29303
29818
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -29318,7 +29833,7 @@ var ActionTypes$1;
29318
29833
  }
29319
29834
  });
29320
29835
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
29321
- return _extends$h({}, state, {
29836
+ return _extends$i({}, state, {
29322
29837
  searchQuery: '',
29323
29838
  activeOptionIndex: activeOptionIndex
29324
29839
  });
@@ -29331,10 +29846,10 @@ var ActionTypes$1;
29331
29846
 
29332
29847
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
29333
29848
  });
29334
- if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
29849
+ if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
29335
29850
  searchQuery: searchQuery
29336
29851
  });
29337
- return _extends$h({}, state, {
29852
+ return _extends$i({}, state, {
29338
29853
  searchQuery: searchQuery,
29339
29854
  activeOptionIndex: match
29340
29855
  });
@@ -29342,11 +29857,11 @@ var ActionTypes$1;
29342
29857
  if (state.disabled) return state;
29343
29858
  if (state.listboxState === ListboxStates.Closed) return state;
29344
29859
  if (state.searchQuery === '') return state;
29345
- return _extends$h({}, state, {
29860
+ return _extends$i({}, state, {
29346
29861
  searchQuery: ''
29347
29862
  });
29348
29863
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
29349
- return _extends$h({}, state, {
29864
+ return _extends$i({}, state, {
29350
29865
  options: [].concat(state.options, [{
29351
29866
  id: action.id,
29352
29867
  dataRef: action.dataRef
@@ -29359,7 +29874,7 @@ var ActionTypes$1;
29359
29874
  return a.id === action.id;
29360
29875
  });
29361
29876
  if (idx !== -1) nextOptions.splice(idx, 1);
29362
- return _extends$h({}, state, {
29877
+ return _extends$i({}, state, {
29363
29878
  options: nextOptions,
29364
29879
  activeOptionIndex: function () {
29365
29880
  if (idx === state.activeOptionIndex) return null;
@@ -29378,6 +29893,7 @@ var GroupContext = /*#__PURE__*/createContext(null);
29378
29893
  GroupContext.displayName = 'GroupContext';
29379
29894
 
29380
29895
  const getPaymentCardIcon = name => {
29896
+ var _icons$name$toLowerCa;
29381
29897
  const icons = {
29382
29898
  visa: /*#__PURE__*/React__default.createElement("svg", {
29383
29899
  className: "plc-w-12",
@@ -29404,7 +29920,7 @@ const getPaymentCardIcon = name => {
29404
29920
  d: "M 5 7 C 2.25 7 0 9.25 0 12 L 0 38 C 0 40.75 2.25 43 5 43 L 45 43 C 47.75 43 50 40.75 50 38 L 50 12 C 50 9.25 47.75 7 45 7 Z M 5 9 L 45 9 C 46.667969 9 48 10.332031 48 12 L 48 38 C 48 39.667969 46.667969 41 45 41 L 5 41 C 3.332031 41 2 39.667969 2 38 L 2 12 C 2 10.332031 3.332031 9 5 9 Z M 8.5625 19.90625 L 4.84375 28.40625 L 7.0625 28.40625 L 7.875 26.5 L 12.0625 26.5 L 12.875 28.40625 L 17.09375 28.40625 L 17.09375 22.09375 L 19.90625 28.40625 L 21.8125 28.40625 L 24.65625 22.1875 L 24.65625 28.40625 L 26.75 28.40625 L 26.75 19.90625 L 23.40625 19.90625 L 20.84375 25.625 L 18.28125 19.90625 L 15 19.90625 L 15 28.09375 L 11.34375 19.90625 Z M 29.5 19.90625 L 29.5 28.4375 L 37.5 28.4375 L 40 25.59375 L 42.46875 28.4375 L 45.125 28.4375 L 41.375 24.0625 L 45.125 19.90625 L 42.46875 19.90625 L 40.0625 22.5625 L 37.75 19.90625 Z M 9.90625 21.6875 L 11.21875 24.6875 L 8.65625 24.6875 Z M 31.5625 21.71875 L 36.65625 21.75 L 38.6875 24.0625 L 36.40625 26.625 L 31.5625 26.625 L 31.5625 24.9375 L 36.1875 24.9375 L 36.1875 23.3125 L 31.5625 23.3125 Z"
29405
29921
  }))
29406
29922
  };
29407
- return name ? icons[name.toLowerCase()] : /*#__PURE__*/React__default.createElement("svg", {
29923
+ return (_icons$name$toLowerCa = icons[name.toLowerCase()]) !== null && _icons$name$toLowerCa !== void 0 ? _icons$name$toLowerCa : /*#__PURE__*/React__default.createElement("svg", {
29408
29924
  xmlns: "http://www.w3.org/2000/svg",
29409
29925
  className: "plc-w-12",
29410
29926
  fill: "none",
@@ -29418,16 +29934,16 @@ const getPaymentCardIcon = name => {
29418
29934
  }));
29419
29935
  };
29420
29936
 
29421
- var _path$g;
29422
- function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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); }
29937
+ var _path$h;
29938
+ function _extends$h() { _extends$h = Object.assign ? Object.assign.bind() : 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); }
29423
29939
  function SvgChevronRight(props) {
29424
- return /*#__PURE__*/React.createElement("svg", _extends$g({
29940
+ return /*#__PURE__*/React.createElement("svg", _extends$h({
29425
29941
  className: "plc-w-6 plc-h-6",
29426
29942
  xmlns: "http://www.w3.org/2000/svg",
29427
29943
  fill: "none",
29428
29944
  viewBox: "0 0 24 24",
29429
29945
  stroke: "currentColor"
29430
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
29946
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
29431
29947
  strokeLinecap: "round",
29432
29948
  strokeLinejoin: "round",
29433
29949
  strokeWidth: 2,
@@ -29656,16 +30172,16 @@ const SavedItems = _ref3 => {
29656
30172
  });
29657
30173
  };
29658
30174
 
29659
- var _path$f;
29660
- function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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); }
30175
+ var _path$g;
30176
+ function _extends$g() { _extends$g = Object.assign ? Object.assign.bind() : 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); }
29661
30177
  function SvgRefresh(props) {
29662
- return /*#__PURE__*/React.createElement("svg", _extends$f({
30178
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
29663
30179
  className: "plc-w-4 plc-h-4 plc-mr-1",
29664
30180
  xmlns: "http://www.w3.org/2000/svg",
29665
30181
  fill: "none",
29666
30182
  viewBox: "0 0 24 24",
29667
30183
  stroke: "currentColor"
29668
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
30184
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
29669
30185
  strokeLinecap: "round",
29670
30186
  strokeLinejoin: "round",
29671
30187
  strokeWidth: 2,
@@ -29673,31 +30189,31 @@ function SvgRefresh(props) {
29673
30189
  })));
29674
30190
  }
29675
30191
 
29676
- var _path$e;
29677
- function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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); }
30192
+ var _path$f;
30193
+ function _extends$f() { _extends$f = Object.assign ? Object.assign.bind() : 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); }
29678
30194
  function SvgCalendar(props) {
29679
- return /*#__PURE__*/React.createElement("svg", _extends$e({
30195
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
29680
30196
  xmlns: "http://www.w3.org/2000/svg",
29681
30197
  className: "plc-h-4 plc-w-4 plc-mr-1",
29682
30198
  viewBox: "0 0 20 20",
29683
30199
  fill: "currentColor"
29684
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
30200
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
29685
30201
  fillRule: "evenodd",
29686
30202
  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",
29687
30203
  clipRule: "evenodd"
29688
30204
  })));
29689
30205
  }
29690
30206
 
29691
- var _path$d;
29692
- function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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); }
30207
+ var _path$e;
30208
+ function _extends$e() { _extends$e = Object.assign ? Object.assign.bind() : 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); }
29693
30209
  function SvgPlus(props) {
29694
- return /*#__PURE__*/React.createElement("svg", _extends$d({
30210
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
29695
30211
  className: "plc-w-5 plc-h-5",
29696
30212
  xmlns: "http://www.w3.org/2000/svg",
29697
30213
  fill: "none",
29698
30214
  viewBox: "0 0 24 24",
29699
30215
  stroke: "currentColor"
29700
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
30216
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
29701
30217
  strokeLinecap: "round",
29702
30218
  strokeLinejoin: "round",
29703
30219
  strokeWidth: 2,
@@ -30060,16 +30576,16 @@ Accordion.item = function AccordionItem(_ref2) {
30060
30576
  }, content)) : null;
30061
30577
  };
30062
30578
 
30063
- var _path$c;
30064
- function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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); }
30579
+ var _path$d;
30580
+ function _extends$d() { _extends$d = Object.assign ? Object.assign.bind() : 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); }
30065
30581
  function SvgExit(props) {
30066
- return /*#__PURE__*/React.createElement("svg", _extends$c({
30582
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
30067
30583
  className: "plc-w-6 plc-h-6",
30068
30584
  xmlns: "http://www.w3.org/2000/svg",
30069
30585
  fill: "none",
30070
30586
  viewBox: "0 0 24 24",
30071
30587
  stroke: "currentColor"
30072
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
30588
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
30073
30589
  strokeLinecap: "round",
30074
30590
  strokeLinejoin: "round",
30075
30591
  strokeWidth: 2,
@@ -30077,15 +30593,15 @@ function SvgExit(props) {
30077
30593
  })));
30078
30594
  }
30079
30595
 
30080
- var _path$b;
30081
- function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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); }
30596
+ var _path$c;
30597
+ function _extends$c() { _extends$c = Object.assign ? Object.assign.bind() : 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); }
30082
30598
  function SvgUser(props) {
30083
- return /*#__PURE__*/React.createElement("svg", _extends$b({
30599
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
30084
30600
  xmlns: "http://www.w3.org/2000/svg",
30085
30601
  fill: "none",
30086
30602
  viewBox: "0 0 24 24",
30087
30603
  stroke: "currentColor"
30088
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
30604
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
30089
30605
  strokeLinecap: "round",
30090
30606
  strokeLinejoin: "round",
30091
30607
  strokeWidth: 2,
@@ -30093,16 +30609,16 @@ function SvgUser(props) {
30093
30609
  })));
30094
30610
  }
30095
30611
 
30096
- var _path$a;
30097
- function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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); }
30612
+ var _path$b;
30613
+ function _extends$b() { _extends$b = Object.assign ? Object.assign.bind() : 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); }
30098
30614
  function SvgNewsletter(props) {
30099
- return /*#__PURE__*/React.createElement("svg", _extends$a({
30615
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
30100
30616
  xmlns: "http://www.w3.org/2000/svg",
30101
30617
  className: "plc-h-5 plc-w-5",
30102
30618
  fill: "none",
30103
30619
  viewBox: "0 0 24 24",
30104
30620
  stroke: "currentColor"
30105
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
30621
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
30106
30622
  strokeLinecap: "round",
30107
30623
  strokeLinejoin: "round",
30108
30624
  strokeWidth: 2,
@@ -30110,16 +30626,16 @@ function SvgNewsletter(props) {
30110
30626
  })));
30111
30627
  }
30112
30628
 
30113
- var _path$9;
30114
- function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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); }
30629
+ var _path$a;
30630
+ function _extends$a() { _extends$a = Object.assign ? Object.assign.bind() : 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); }
30115
30631
  function SvgDocument(props) {
30116
- return /*#__PURE__*/React.createElement("svg", _extends$9({
30632
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
30117
30633
  xmlns: "http://www.w3.org/2000/svg",
30118
30634
  className: "plc-h-6 plc-w-6 plc-mr-2",
30119
30635
  fill: "none",
30120
30636
  viewBox: "0 0 24 24",
30121
30637
  stroke: "currentColor"
30122
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
30638
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
30123
30639
  strokeLinecap: "round",
30124
30640
  strokeLinejoin: "round",
30125
30641
  strokeWidth: 2,
@@ -30127,16 +30643,16 @@ function SvgDocument(props) {
30127
30643
  })));
30128
30644
  }
30129
30645
 
30130
- var _path$8;
30131
- function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : 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); }
30646
+ var _path$9;
30647
+ function _extends$9() { _extends$9 = Object.assign ? Object.assign.bind() : 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); }
30132
30648
  function SvgPaymentCard(props) {
30133
- return /*#__PURE__*/React.createElement("svg", _extends$8({
30649
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
30134
30650
  className: "plc-w-6 plc-h-6 plc-mr-2",
30135
30651
  xmlns: "http://www.w3.org/2000/svg",
30136
30652
  fill: "none",
30137
30653
  viewBox: "0 0 24 24",
30138
30654
  stroke: "currentColor"
30139
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
30655
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
30140
30656
  strokeLinecap: "round",
30141
30657
  strokeLinejoin: "round",
30142
30658
  strokeWidth: 2,
@@ -30144,16 +30660,16 @@ function SvgPaymentCard(props) {
30144
30660
  })));
30145
30661
  }
30146
30662
 
30147
- var _path$7, _path2;
30148
- function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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); }
30663
+ var _path$8, _path2;
30664
+ function _extends$8() { _extends$8 = Object.assign ? Object.assign.bind() : 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); }
30149
30665
  function SvgLocationPin(props) {
30150
- return /*#__PURE__*/React.createElement("svg", _extends$7({
30666
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
30151
30667
  className: "plc-w-6 plc-h-6 plc-mr-2",
30152
30668
  xmlns: "http://www.w3.org/2000/svg",
30153
30669
  fill: "none",
30154
30670
  viewBox: "0 0 24 24",
30155
30671
  stroke: "currentColor"
30156
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
30672
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
30157
30673
  strokeLinecap: "round",
30158
30674
  strokeLinejoin: "round",
30159
30675
  strokeWidth: 2,
@@ -30166,16 +30682,16 @@ function SvgLocationPin(props) {
30166
30682
  })));
30167
30683
  }
30168
30684
 
30169
- var _path$6;
30170
- function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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); }
30685
+ var _path$7;
30686
+ function _extends$7() { _extends$7 = Object.assign ? Object.assign.bind() : 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); }
30171
30687
  function SvgShopping(props) {
30172
- return /*#__PURE__*/React.createElement("svg", _extends$6({
30688
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
30173
30689
  className: "plc-w-6 plc-h-6 plc-mr-2",
30174
30690
  xmlns: "http://www.w3.org/2000/svg",
30175
30691
  fill: "none",
30176
30692
  viewBox: "0 0 24 24",
30177
30693
  stroke: "currentColor"
30178
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
30694
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
30179
30695
  strokeLinecap: "round",
30180
30696
  strokeLinejoin: "round",
30181
30697
  strokeWidth: 2,
@@ -30183,16 +30699,16 @@ function SvgShopping(props) {
30183
30699
  })));
30184
30700
  }
30185
30701
 
30186
- var _path$5;
30187
- function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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); }
30702
+ var _path$6;
30703
+ function _extends$6() { _extends$6 = Object.assign ? Object.assign.bind() : 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); }
30188
30704
  function SvgBookmark(props) {
30189
- return /*#__PURE__*/React.createElement("svg", _extends$5({
30705
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
30190
30706
  className: "plc-w-6 plc-h-6 plc-mr-2",
30191
30707
  xmlns: "http://www.w3.org/2000/svg",
30192
30708
  fill: "none",
30193
30709
  viewBox: "0 0 24 24",
30194
30710
  stroke: "currentColor"
30195
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
30711
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
30196
30712
  strokeLinecap: "round",
30197
30713
  strokeLinejoin: "round",
30198
30714
  strokeWidth: 2,
@@ -30200,63 +30716,76 @@ function SvgBookmark(props) {
30200
30716
  })));
30201
30717
  }
30202
30718
 
30203
- var _path$4;
30204
- function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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); }
30719
+ var _path$5;
30720
+ function _extends$5() { _extends$5 = Object.assign ? Object.assign.bind() : 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); }
30205
30721
  function SvgKey(props) {
30206
- return /*#__PURE__*/React.createElement("svg", _extends$4({
30722
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
30207
30723
  xmlns: "http://www.w3.org/2000/svg",
30208
30724
  viewBox: "0 0 20 20",
30209
30725
  fill: "currentColor"
30210
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
30726
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
30211
30727
  fillRule: "evenodd",
30212
30728
  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",
30213
30729
  clipRule: "evenodd"
30214
30730
  })));
30215
30731
  }
30216
30732
 
30217
- var _path$3;
30218
- function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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); }
30733
+ var _path$4;
30734
+ function _extends$4() { _extends$4 = Object.assign ? Object.assign.bind() : 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); }
30219
30735
  function SvgDonate(props) {
30220
- return /*#__PURE__*/React.createElement("svg", _extends$3({
30736
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
30221
30737
  width: 24,
30222
30738
  height: 24,
30223
30739
  fill: "currentColor",
30224
30740
  xmlns: "http://www.w3.org/2000/svg"
30225
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
30741
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
30226
30742
  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"
30227
30743
  })));
30228
30744
  }
30229
30745
 
30230
- var _path$2;
30231
- function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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); }
30746
+ var _path$3;
30747
+ function _extends$3() { _extends$3 = Object.assign ? Object.assign.bind() : 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); }
30232
30748
  function SvgMemberships(props) {
30233
- return /*#__PURE__*/React.createElement("svg", _extends$2({
30749
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
30234
30750
  xmlns: "http://www.w3.org/2000/svg",
30235
30751
  fill: "none",
30236
30752
  strokeWidth: 1.5,
30237
30753
  stroke: "currentColor",
30238
30754
  width: 24,
30239
30755
  height: 24
30240
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
30756
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
30241
30757
  strokeLinecap: "round",
30242
30758
  strokeLinejoin: "round",
30243
30759
  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"
30244
30760
  })));
30245
30761
  }
30246
30762
 
30247
- var _path$1;
30248
- function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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); }
30763
+ var _path$2;
30764
+ function _extends$2() { _extends$2 = Object.assign ? Object.assign.bind() : 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); }
30249
30765
  function SvgQrcode(props) {
30250
- return /*#__PURE__*/React.createElement("svg", _extends$1({
30766
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
30251
30767
  xmlns: "http://www.w3.org/2000/svg",
30252
30768
  width: 682.667,
30253
30769
  height: 682.667,
30254
30770
  viewBox: "0 0 512 512"
30255
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
30771
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
30256
30772
  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"
30257
30773
  })));
30258
30774
  }
30259
30775
 
30776
+ var _path$1;
30777
+ function _extends$1() { _extends$1 = Object.assign ? Object.assign.bind() : 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); }
30778
+ function SvgTrashCan(props) {
30779
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
30780
+ className: "plc-w-6 plc-h-6",
30781
+ xmlns: "http://www.w3.org/2000/svg",
30782
+ viewBox: "0 0 448 512",
30783
+ fill: "currentColor"
30784
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
30785
+ 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"
30786
+ })));
30787
+ }
30788
+
30260
30789
  const DonationsMenu = _ref => {
30261
30790
  let {
30262
30791
  onClose,
@@ -30578,7 +31107,9 @@ function DashboardWithHook(props) {
30578
31107
  switchView,
30579
31108
  resetView,
30580
31109
  logout,
30581
- set
31110
+ set,
31111
+ setPaymentMethodToEdit,
31112
+ setPaymentMethodToDelete
30582
31113
  } = usePelcro();
30583
31114
  return /*#__PURE__*/React__default.createElement(DashboardWithTrans, {
30584
31115
  setAddress: addressIdToEdit => set({
@@ -30601,7 +31132,9 @@ function DashboardWithHook(props) {
30601
31132
  product,
30602
31133
  plan,
30603
31134
  isGift
30604
- })
31135
+ }),
31136
+ setPaymentMethodToEdit: setPaymentMethodToEdit,
31137
+ setPaymentMethodToDelete: setPaymentMethodToDelete
30605
31138
  });
30606
31139
  }
30607
31140
  DashboardWithHook.viewId = "dashboard";
@@ -30628,6 +31161,18 @@ class Dashboard extends Component {
30628
31161
  nonInteraction: true
30629
31162
  });
30630
31163
  }
31164
+ window.Pelcro.paymentMethods.list({
31165
+ auth_token: window.Pelcro.user.read().auth_token
31166
+ }, (err, res) => {
31167
+ if (err) {
31168
+ return console.error(err);
31169
+ }
31170
+ if (res) {
31171
+ this.setState({
31172
+ sources: res.data
31173
+ });
31174
+ }
31175
+ });
30631
31176
  const {
30632
31177
  addresses
30633
31178
  } = window.Pelcro.user.read();
@@ -30697,10 +31242,47 @@ class Dashboard extends Component {
30697
31242
  onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
30698
31243
  });
30699
31244
  });
31245
+ _defineProperty$3(this, "deletePaymentMethod", (paymentMethodId, onSuccess, onFailure) => {
31246
+ // disable the Login button to prevent repeated clicks
31247
+ window.Pelcro.paymentMethods.deletePaymentMethod({
31248
+ auth_token: window.Pelcro.user.read().auth_token,
31249
+ payment_method_id: paymentMethodId
31250
+ }, (err, res) => {
31251
+ if (err) {
31252
+ return onFailure === null || onFailure === void 0 ? void 0 : onFailure(err);
31253
+ }
31254
+ onSuccess === null || onSuccess === void 0 ? void 0 : onSuccess(res);
31255
+ });
31256
+ });
31257
+ _defineProperty$3(this, "onDeletePaymentMethodClick", source => {
31258
+ const isDeletable = source === null || source === void 0 ? void 0 : source.deletable;
31259
+ if (isDeletable) {
31260
+ this.props.onClose();
31261
+ notify.confirm((onSuccess, onFailure) => {
31262
+ this.deletePaymentMethod(source.id, onSuccess, onFailure);
31263
+ }, {
31264
+ confirmMessage: this.locale("messages.paymentMethodDeletion.isSureToDelete"),
31265
+ loadingMessage: this.locale("messages.paymentMethodDeletion.loading"),
31266
+ successMessage: this.locale("messages.paymentMethodDeletion.success"),
31267
+ errorMessage: this.locale("messages.paymentMethodDeletion.error")
31268
+ }, {
31269
+ closeButtonLabel: this.locale("labels.subCancellation.goBack")
31270
+ });
31271
+ } else {
31272
+ this.props.setPaymentMethodToDelete(source.id);
31273
+ return this.props.setView("payment-method-delete");
31274
+ // this.props.onClose();
31275
+ // notify.warning(
31276
+ // this.locale("messages.paymentMethodDeletion.nonDeletable")
31277
+ // );
31278
+ }
31279
+ });
30700
31280
  _defineProperty$3(this, "displayRedeem", () => {
30701
31281
  return this.props.setView("gift-redeem");
30702
31282
  });
30703
- _defineProperty$3(this, "displaySourceCreate", () => {
31283
+ _defineProperty$3(this, "displaySourceCreate", e => {
31284
+ const source = e.currentTarget.dataset.key;
31285
+ this.props.setPaymentMethodToEdit(source);
30704
31286
  return this.props.setView("payment-method-update");
30705
31287
  });
30706
31288
  _defineProperty$3(this, "displayUserEdit", () => {
@@ -30962,6 +31544,52 @@ class Dashboard extends Component {
30962
31544
  onClick: this.displayAddressCreate
30963
31545
  }, this.locale("labels.addAddress"))))));
30964
31546
  });
31547
+ _defineProperty$3(this, "renderSources", () => {
31548
+ const sources = this.state.sources && this.state.sources.sort((a, b) => a.is_default === b.is_default ? 0 : a.is_default ? -1 : 1).map((source, index) => {
31549
+ var _source$properties, _source$properties2;
31550
+ return /*#__PURE__*/React__default.createElement("div", {
31551
+ key: "dashboard-source-" + source.id,
31552
+ className: "plc-flex plc-flex-row plc-pr-6"
31553
+ }, /*#__PURE__*/React__default.createElement("div", {
31554
+ className: "plc-flex plc-flex-grow plc-items-center plc-justify-between plc-max-w-xs plc-p-4 plc-mb-2 plc-text-white plc-bg-gray-800 plc-rounded-md plc-h-14"
31555
+ }, /*#__PURE__*/React__default.createElement("span", null, 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("span", {
31556
+ className: "plc-ml-1 plc-text-lg plc-tracking-widest plc-flex-grow plc-text-center"
31557
+ }, "\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(Button, {
31558
+ id: "pelcro-button-update-source-" + index,
31559
+ variant: "icon",
31560
+ className: "plc-text-white",
31561
+ icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
31562
+ "data-key": source.id,
31563
+ onClick: this.displaySourceCreate,
31564
+ disabled: this.state.disableSubmit
31565
+ }), /*#__PURE__*/React__default.createElement(Button, {
31566
+ id: "pelcro-button-delete-source-" + index,
31567
+ variant: "icon",
31568
+ className: "plc-text-white",
31569
+ icon: /*#__PURE__*/React__default.createElement(SvgTrashCan, null),
31570
+ onClick: () => {
31571
+ this.onDeletePaymentMethodClick(source);
31572
+ },
31573
+ disabled: this.state.disableSubmit
31574
+ })), /*#__PURE__*/React__default.createElement("span", {
31575
+ className: "plc-flex-grow"
31576
+ }), source.is_default && /*#__PURE__*/React__default.createElement("span", {
31577
+ className: "plc-rounded-full plc-bg-gray-800 plc-text-white plc-inline-flex plc-h-7 plc-my-auto plc-items-start plc-py-1 plc-px-4 plc-text-sm plc-ml-2"
31578
+ }, this.locale("labels.default")));
31579
+ });
31580
+ return /*#__PURE__*/React__default.createElement("div", {
31581
+ className: "plc-pr-2"
31582
+ }, /*#__PURE__*/React__default.createElement("div", {
31583
+ className: "plc-overflow-y-scroll plc-max-h-52"
31584
+ }, sources), /*#__PURE__*/React__default.createElement(Button, {
31585
+ variant: "ghost",
31586
+ icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
31587
+ className: "plc-w-4 plc-mr-1"
31588
+ }),
31589
+ className: "plc-w-full plc-h-8 plc-font-semibold plc-tracking-wider plc-text-gray-900 plc-uppercase hover:plc-bg-gray-100 plc-my-1 plc-ml-1",
31590
+ onClick: this.displaySourceCreate
31591
+ }, this.locale("labels.addPaymentSource")));
31592
+ });
30965
31593
  _defineProperty$3(this, "closeDashboard", () => {
30966
31594
  this.setState({
30967
31595
  isOpen: false
@@ -30972,7 +31600,8 @@ class Dashboard extends Component {
30972
31600
  subscriptions: window.Pelcro.subscription.list(),
30973
31601
  giftRecipients: (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.gift_recipients) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [],
30974
31602
  disableSubmit: false,
30975
- addresses: []
31603
+ addresses: [],
31604
+ sources: []
30976
31605
  };
30977
31606
  this.site = window.Pelcro.site.read();
30978
31607
  this.locale = this.props.t;
@@ -30981,7 +31610,7 @@ class Dashboard extends Component {
30981
31610
  this.enableReactGA4 = (_window = window) === null || _window === void 0 ? void 0 : (_window$Pelcro = _window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : (_window$Pelcro$uiSett = _window$Pelcro.uiSettings) === null || _window$Pelcro$uiSett === void 0 ? void 0 : _window$Pelcro$uiSett.enableReactGA4;
30982
31611
  }
30983
31612
  render() {
30984
- var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet, _this$user$source, _this$user$source$pro, _this$user$source2, _this$user$source2$pr;
31613
+ var _window$Pelcro$user$r3, _window$Pelcro2, _window$Pelcro2$uiSet;
30985
31614
  const {
30986
31615
  isOpen
30987
31616
  } = this.state;
@@ -31084,25 +31713,7 @@ class Dashboard extends Component {
31084
31713
  name: SUB_MENUS.PAYMENT_CARDS,
31085
31714
  icon: /*#__PURE__*/React__default.createElement(SvgPaymentCard, null),
31086
31715
  title: this.locale("labels.paymentSource"),
31087
- content: /*#__PURE__*/React__default.createElement("div", {
31088
- className: "plc-flex plc-items-center plc-justify-between plc-max-w-xs plc-p-4 plc-mb-2 plc-text-white plc-bg-gray-800 plc-rounded-md plc-h-14"
31089
- }, this.user.source ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, getPaymentCardIcon((_this$user$source = this.user.source) === null || _this$user$source === void 0 ? void 0 : (_this$user$source$pro = _this$user$source.properties) === null || _this$user$source$pro === void 0 ? void 0 : _this$user$source$pro.brand), /*#__PURE__*/React__default.createElement("span", {
31090
- className: "plc-ml-1 plc-text-lg plc-tracking-widest"
31091
- }, "\u2022\u2022\u2022\u2022 ", (_this$user$source2 = this.user.source) === null || _this$user$source2 === void 0 ? void 0 : (_this$user$source2$pr = _this$user$source2.properties) === null || _this$user$source2$pr === void 0 ? void 0 : _this$user$source2$pr.last4), /*#__PURE__*/React__default.createElement(Button, {
31092
- variant: "icon",
31093
- className: "plc-text-white",
31094
- icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
31095
- onClick: this.displaySourceCreate,
31096
- disabled: this.state.disableSubmit
31097
- })) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("span", null, this.locale("messages.noCard")), /*#__PURE__*/React__default.createElement(Button, {
31098
- variant: "icon",
31099
- className: "plc-text-white",
31100
- icon: /*#__PURE__*/React__default.createElement(SvgPlus, {
31101
- className: "plc-w-6 plc-h-6"
31102
- }),
31103
- onClick: this.displaySourceCreate,
31104
- disabled: this.state.disableSubmit
31105
- })))
31716
+ content: this.renderSources()
31106
31717
  }), /*#__PURE__*/React__default.createElement(Accordion.item, {
31107
31718
  name: SUB_MENUS.ADDRESSES,
31108
31719
  icon: /*#__PURE__*/React__default.createElement(SvgLocationPin, null),
@@ -35020,4 +35631,4 @@ const QrCodeModal = _ref => {
35020
35631
  };
35021
35632
  QrCodeModal.viewId = "qrcode";
35022
35633
 
35023
- export { 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, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, 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 };
35634
+ export { 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, ApplePayButton, ApplyCouponButton, Auth0LoginButton, Badge, BankAuthenticationSuccess, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, DonationModalWithHook as DonationModal, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, IncludeFirstName, IncludeLastName, IncludePhone, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginRequestLoginToken, LoginUsername, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateFreeButton, 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, PaymentMethodDeleteContainer, PaymentMethodDeleteList, PaymentMethodDeleteModal, PaymentMethodDeleteOptions, PaymentMethodDeleteSubmit, PaymentMethodDeleteView, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateSetDefault, 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 };