@pelcro/react-pelcro-js 3.1.0-beta.2 → 3.1.0-beta.5

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
@@ -3431,9 +3431,9 @@ var paymentMethod_fr = {
3431
3431
  select: select
3432
3432
  };
3433
3433
 
3434
- var title$h = "Enter your email to subscribe to our newsletter";
3434
+ var title$f = "Enter your email to subscribe to our newsletter";
3435
3435
  var updateTitle$1 = "Update newsletter selections";
3436
- var subtitle$9 = "We may use your email for other marketing communication";
3436
+ var subtitle$7 = "We may use your email for other marketing communication";
3437
3437
  var labels$p = {
3438
3438
  submit: "Submit",
3439
3439
  firstName: "First name",
@@ -3450,16 +3450,16 @@ var messages$r = {
3450
3450
  here: "here"
3451
3451
  };
3452
3452
  var newsletter_en = {
3453
- title: title$h,
3453
+ title: title$f,
3454
3454
  updateTitle: updateTitle$1,
3455
- subtitle: subtitle$9,
3455
+ subtitle: subtitle$7,
3456
3456
  labels: labels$p,
3457
3457
  messages: messages$r
3458
3458
  };
3459
3459
 
3460
- var title$g = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3460
+ var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3461
3461
  var updateTitle = "Mettre à jour son choix d'infolettres";
3462
- var subtitle$8 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3462
+ var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3463
3463
  var labels$o = {
3464
3464
  submit: "Lire l’article !",
3465
3465
  firstName: "Prénom",
@@ -3476,9 +3476,9 @@ var messages$q = {
3476
3476
  here: "ici"
3477
3477
  };
3478
3478
  var newsletter_fr = {
3479
- title: title$g,
3479
+ title: title$e,
3480
3480
  updateTitle: updateTitle,
3481
- subtitle: subtitle$8,
3481
+ subtitle: subtitle$6,
3482
3482
  labels: labels$o,
3483
3483
  messages: messages$q
3484
3484
  };
@@ -3735,8 +3735,8 @@ var login_fr = {
3735
3735
  errors: errors$4
3736
3736
  };
3737
3737
 
3738
- var title$f = "Create an account";
3739
- var subtitle$7 = "Enter your email and password below";
3738
+ var title$d = "Create an account";
3739
+ var subtitle$5 = "Enter your email and password below";
3740
3740
  var labels$h = {
3741
3741
  signUpFacebook: "Sign up with Facebook",
3742
3742
  signUpGoogle: "Sign up with Google",
@@ -3821,8 +3821,8 @@ var redeem$1 = {
3821
3821
  }
3822
3822
  };
3823
3823
  var register_en = {
3824
- title: title$f,
3825
- subtitle: subtitle$7,
3824
+ title: title$d,
3825
+ subtitle: subtitle$5,
3826
3826
  labels: labels$h,
3827
3827
  messages: messages$h,
3828
3828
  errors: errors$3,
@@ -3830,8 +3830,8 @@ var register_en = {
3830
3830
  redeem: redeem$1
3831
3831
  };
3832
3832
 
3833
- var title$e = "Créer un compte";
3834
- var subtitle$6 = "Entrez votre courriel et votre mot de passe ci-dessous";
3833
+ var title$c = "Créer un compte";
3834
+ var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
3835
3835
  var labels$g = {
3836
3836
  signUpFacebook: "Inscrivez-vous avec Facebook",
3837
3837
  signUpGoogle: "Inscrivez-vous avec Google",
@@ -3917,8 +3917,8 @@ var redeem = {
3917
3917
  }
3918
3918
  };
3919
3919
  var register_fr = {
3920
- title: title$e,
3921
- subtitle: subtitle$6,
3920
+ title: title$c,
3921
+ subtitle: subtitle$4,
3922
3922
  labels: labels$g,
3923
3923
  messages: messages$g,
3924
3924
  errors: errors$2,
@@ -3978,7 +3978,7 @@ var userEdit_fr = {
3978
3978
  messages: messages$e
3979
3979
  };
3980
3980
 
3981
- var title$d = "Enter your shipping address";
3981
+ var title$b = "Enter your shipping address";
3982
3982
  var selectAddressTitle$1 = "Please select an address";
3983
3983
  var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
3984
3984
  var labels$d = {
@@ -4001,7 +4001,7 @@ var messages$d = {
4001
4001
  subRedeemed: "Your subscription has been redeemed."
4002
4002
  };
4003
4003
  var address_en = {
4004
- title: title$d,
4004
+ title: title$b,
4005
4005
  selectAddressTitle: selectAddressTitle$1,
4006
4006
  selectAddressSubtitle: selectAddressSubtitle$1,
4007
4007
  labels: labels$d,
@@ -4009,7 +4009,7 @@ var address_en = {
4009
4009
  messages: messages$d
4010
4010
  };
4011
4011
 
4012
- var title$c = "Entrez votre adresse de livraison";
4012
+ var title$a = "Entrez votre adresse de livraison";
4013
4013
  var selectAddressTitle = "Veuillez sélectionner une adresse";
4014
4014
  var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
4015
4015
  var labels$c = {
@@ -4032,7 +4032,7 @@ var messages$c = {
4032
4032
  subRedeemed: "Votre abonnement a bien été activé."
4033
4033
  };
4034
4034
  var address_fr = {
4035
- title: title$c,
4035
+ title: title$a,
4036
4036
  selectAddressTitle: selectAddressTitle,
4037
4037
  selectAddressSubtitle: selectAddressSubtitle,
4038
4038
  labels: labels$c,
@@ -4040,8 +4040,8 @@ var address_fr = {
4040
4040
  messages: messages$c
4041
4041
  };
4042
4042
 
4043
- var title$b = "Reset your password";
4044
- var subtitle$5 = "Enter a new password below";
4043
+ var title$9 = "Reset your password";
4044
+ var subtitle$3 = "Enter a new password below";
4045
4045
  var email$3 = "Email";
4046
4046
  var password$3 = "Password";
4047
4047
  var confirmPassword$1 = "Confirm password";
@@ -4049,8 +4049,8 @@ var submit$5 = "Submit";
4049
4049
  var required$5 = "Required";
4050
4050
  var passwordUpdated$1 = "Password has been updated, please login with the new password";
4051
4051
  var passwordReset_en = {
4052
- title: title$b,
4053
- subtitle: subtitle$5,
4052
+ title: title$9,
4053
+ subtitle: subtitle$3,
4054
4054
  email: email$3,
4055
4055
  password: password$3,
4056
4056
  confirmPassword: confirmPassword$1,
@@ -4059,8 +4059,8 @@ var passwordReset_en = {
4059
4059
  passwordUpdated: passwordUpdated$1
4060
4060
  };
4061
4061
 
4062
- var title$a = "Réinitialiser votre mot de passe";
4063
- var subtitle$4 = "Entrez un nouveau mot de passe ci-dessous";
4062
+ var title$8 = "Réinitialiser votre mot de passe";
4063
+ var subtitle$2 = "Entrez un nouveau mot de passe ci-dessous";
4064
4064
  var email$2 = "Adresse courriel";
4065
4065
  var password$2 = "Mot de passe";
4066
4066
  var confirmPassword = "Confirmer le mot de passe";
@@ -4068,8 +4068,8 @@ var submit$4 = "Soumettre";
4068
4068
  var required$4 = "Champs obligatoires";
4069
4069
  var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
4070
4070
  var passwordReset_fr = {
4071
- title: title$a,
4072
- subtitle: subtitle$4,
4071
+ title: title$8,
4072
+ subtitle: subtitle$2,
4073
4073
  email: email$2,
4074
4074
  password: password$2,
4075
4075
  confirmPassword: confirmPassword,
@@ -4078,7 +4078,7 @@ var passwordReset_fr = {
4078
4078
  passwordUpdated: passwordUpdated
4079
4079
  };
4080
4080
 
4081
- var title$9 = "Forgot your password?";
4081
+ var title$7 = "Forgot your password?";
4082
4082
  var email$1 = "Email";
4083
4083
  var password$1 = "Password";
4084
4084
  var submit$3 = "Submit";
@@ -4089,7 +4089,7 @@ var messages$b = {
4089
4089
  loginHere: "login here."
4090
4090
  };
4091
4091
  var passwordForgot_en = {
4092
- title: title$9,
4092
+ title: title$7,
4093
4093
  email: email$1,
4094
4094
  password: password$1,
4095
4095
  submit: submit$3,
@@ -4098,7 +4098,7 @@ var passwordForgot_en = {
4098
4098
  messages: messages$b
4099
4099
  };
4100
4100
 
4101
- var title$8 = "Mot de passe oublié ?";
4101
+ var title$6 = "Mot de passe oublié ?";
4102
4102
  var email = "Courriel";
4103
4103
  var password = "Mot de passe";
4104
4104
  var submit$2 = "Soumettre";
@@ -4109,7 +4109,7 @@ var messages$a = {
4109
4109
  loginHere: "Connectez-vous ici"
4110
4110
  };
4111
4111
  var passwordForgot_fr = {
4112
- title: title$8,
4112
+ title: title$6,
4113
4113
  email: email,
4114
4114
  password: password,
4115
4115
  submit: submit$2,
@@ -4118,7 +4118,7 @@ var passwordForgot_fr = {
4118
4118
  messages: messages$a
4119
4119
  };
4120
4120
 
4121
- var title$7 = "Change your password";
4121
+ var title$5 = "Change your password";
4122
4122
  var currentPassword$1 = "Current password";
4123
4123
  var newPassword$1 = "New password";
4124
4124
  var confirmNewPassword$1 = "Confirm new password";
@@ -4128,7 +4128,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
4128
4128
  var passwordsNotMatching$1 = "Passwords don't match";
4129
4129
  var weakPassword$1 = "Your password must contain at least 6 characters";
4130
4130
  var passwordChange_en = {
4131
- title: title$7,
4131
+ title: title$5,
4132
4132
  currentPassword: currentPassword$1,
4133
4133
  newPassword: newPassword$1,
4134
4134
  confirmNewPassword: confirmNewPassword$1,
@@ -4139,7 +4139,7 @@ var passwordChange_en = {
4139
4139
  weakPassword: weakPassword$1
4140
4140
  };
4141
4141
 
4142
- var title$6 = "Changez votre mot de passe";
4142
+ var title$4 = "Changez votre mot de passe";
4143
4143
  var currentPassword = "Mot de passe actuel";
4144
4144
  var newPassword = "Nouveau mot de passe";
4145
4145
  var confirmNewPassword = "Confirmer le nouveau mot de passe";
@@ -4149,7 +4149,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
4149
4149
  var passwordsNotMatching = "Les mots de passe ne correspondent pas";
4150
4150
  var weakPassword = "Votre mot de passe doit contenir au moins 6";
4151
4151
  var passwordChange_fr = {
4152
- title: title$6,
4152
+ title: title$4,
4153
4153
  currentPassword: currentPassword,
4154
4154
  newPassword: newPassword,
4155
4155
  confirmNewPassword: confirmNewPassword,
@@ -4160,8 +4160,8 @@ var passwordChange_fr = {
4160
4160
  weakPassword: weakPassword
4161
4161
  };
4162
4162
 
4163
- var title$5 = "Votre panier";
4164
- var subtitle$3 = "Terminez votre achat ci-dessous";
4163
+ var title$3 = "Votre panier";
4164
+ var subtitle$1 = "Terminez votre achat ci-dessous";
4165
4165
  var name$1 = "Produit";
4166
4166
  var quantity$1 = "Quantité";
4167
4167
  var price$1 = "Prix";
@@ -4172,8 +4172,8 @@ var confirm$3 = "Passer à la caisse";
4172
4172
  var empty$1 = "Votre panier est vide.";
4173
4173
  var removeAll$1 = "Vider";
4174
4174
  var cart_fr = {
4175
- title: title$5,
4176
- subtitle: subtitle$3,
4175
+ title: title$3,
4176
+ subtitle: subtitle$1,
4177
4177
  name: name$1,
4178
4178
  quantity: quantity$1,
4179
4179
  price: price$1,
@@ -4185,8 +4185,8 @@ var cart_fr = {
4185
4185
  removeAll: removeAll$1
4186
4186
  };
4187
4187
 
4188
- var title$4 = "Your shopping cart";
4189
- var subtitle$2 = "Comple your purchase below";
4188
+ var title$2 = "Your shopping cart";
4189
+ var subtitle = "Comple your purchase below";
4190
4190
  var name = "Name";
4191
4191
  var quantity = "Quantity";
4192
4192
  var price = "Price";
@@ -4197,8 +4197,8 @@ var confirm$2 = "Checkout";
4197
4197
  var empty = "Your cart is empty.";
4198
4198
  var removeAll = "Remove all";
4199
4199
  var cart_en = {
4200
- title: title$4,
4201
- subtitle: subtitle$2,
4200
+ title: title$2,
4201
+ subtitle: subtitle,
4202
4202
  name: name,
4203
4203
  quantity: quantity,
4204
4204
  price: price,
@@ -4636,7 +4636,7 @@ var verifyEmail_fr = {
4636
4636
  messages: messages
4637
4637
  };
4638
4638
 
4639
- var title$3 = "Invoice details";
4639
+ var title$1 = "Invoice details";
4640
4640
  var labels$1 = {
4641
4641
  summary: "Summary",
4642
4642
  total: "Total",
@@ -4649,12 +4649,12 @@ var buttons$1 = {
4649
4649
  pay: "Pay now"
4650
4650
  };
4651
4651
  var invoiceDetails_en = {
4652
- title: title$3,
4652
+ title: title$1,
4653
4653
  labels: labels$1,
4654
4654
  buttons: buttons$1
4655
4655
  };
4656
4656
 
4657
- var title$2 = "Invoice details";
4657
+ var title = "Invoice details";
4658
4658
  var labels = {
4659
4659
  summary: "Summary",
4660
4660
  total: "Total",
@@ -4667,37 +4667,11 @@ var buttons = {
4667
4667
  pay: "Pay now"
4668
4668
  };
4669
4669
  var invoiceDetails_fr = {
4670
- title: title$2,
4670
+ title: title,
4671
4671
  labels: labels,
4672
4672
  buttons: buttons
4673
4673
  };
4674
4674
 
4675
- var title$1 = "Renewal options";
4676
- var subtitle$1 = "Select one of the options below to continue";
4677
- var next$1 = "Next";
4678
- var addNew$1 = "Add Another Subscription";
4679
- var renew$1 = "Renew Existing Subscription";
4680
- var subscriptionOptions_en = {
4681
- title: title$1,
4682
- subtitle: subtitle$1,
4683
- next: next$1,
4684
- addNew: addNew$1,
4685
- renew: renew$1
4686
- };
4687
-
4688
- var title = "Renewal options";
4689
- var subtitle = "Select one of the options below to continue";
4690
- var next = "Next";
4691
- var addNew = "Add Another Subscription";
4692
- var renew = "Renew Existing Subscription";
4693
- var subscriptionOptions_fr = {
4694
- title: title,
4695
- subtitle: subtitle,
4696
- next: next,
4697
- addNew: addNew,
4698
- renew: renew
4699
- };
4700
-
4701
4675
  function create$1(createState) {
4702
4676
  let state;
4703
4677
  const listeners = new Set();
@@ -6047,7 +6021,7 @@ class PelcroActions {
6047
6021
  view,
6048
6022
  cartItems,
6049
6023
  ...otherStateFields
6050
- } = initialState$j;
6024
+ } = initialState$i;
6051
6025
  this.set(otherStateFields);
6052
6026
  });
6053
6027
 
@@ -6071,16 +6045,6 @@ class PelcroActions {
6071
6045
  });
6072
6046
  }
6073
6047
 
6074
- if (view === "subscription-options") {
6075
- const noRenewableProducts = getRenewableProducts().length === 0;
6076
-
6077
- if (noRenewableProducts) {
6078
- return this.set({
6079
- view: "plan-select"
6080
- });
6081
- }
6082
- }
6083
-
6084
6048
  this.set({
6085
6049
  view
6086
6050
  });
@@ -6155,26 +6119,6 @@ class PelcroActions {
6155
6119
  }
6156
6120
  });
6157
6121
 
6158
- _defineProperty$3(this, "setProductsList", products => {
6159
- if (!Array.isArray(products)) {
6160
- return console.error(`setProductsList expects an array of products as an argument, got an argument of type ${typeof products} instead`);
6161
- }
6162
-
6163
- const allowedProducts = window.Pelcro.product.list();
6164
- const validProducts = products.filter(product => {
6165
- const isValidProduct = allowedProducts.some(allowedProduct => allowedProduct.id === (product === null || product === void 0 ? void 0 : product.id) && allowedProduct.name === (product === null || product === void 0 ? void 0 : product.name));
6166
-
6167
- if (!isValidProduct) {
6168
- console.warn(`setProductsList expects an array of products that exist in the list of valid products (window.Pelcro.product.list()), but it recieved a product which doesn't exist in that list:`, product);
6169
- }
6170
-
6171
- return isValidProduct;
6172
- });
6173
- this.set({
6174
- productsList: validProducts
6175
- });
6176
- });
6177
-
6178
6122
  _defineProperty$3(this, "setProduct", id => {
6179
6123
  const product = window.Pelcro.product.getById(id);
6180
6124
  if (!product) return console.error("invalid product id");
@@ -6396,12 +6340,10 @@ class PelcroCallbacks {
6396
6340
 
6397
6341
  }
6398
6342
 
6399
- var _window$Pelcro$produc, _window$Pelcro;
6400
- const initialState$j = {
6343
+ const initialState$i = {
6401
6344
  // View
6402
6345
  view: null,
6403
6346
  // Plans
6404
- productsList: (_window$Pelcro$produc = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : _window$Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [],
6405
6347
  product: null,
6406
6348
  plan: null,
6407
6349
  isGift: false,
@@ -6428,7 +6370,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6428
6370
  return {
6429
6371
  // Store setter
6430
6372
  set,
6431
- ...initialState$j,
6373
+ ...initialState$i,
6432
6374
  // State actions
6433
6375
  ...actions,
6434
6376
  // Callbacks
@@ -6783,28 +6725,6 @@ function userMustVerifyEmail() {
6783
6725
  const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
6784
6726
  return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
6785
6727
  }
6786
- function getRenewableProducts() {
6787
- const renewableSubs = window.Pelcro.subscription.list().filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1);
6788
- const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
6789
- const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
6790
- const {
6791
- productsList
6792
- } = usePelcro.getStore();
6793
- return productsList.map(product => {
6794
- if (renewableProductsIds.includes(product.id)) {
6795
- const renewablePlans = getRenewablePlansOnly(product);
6796
- return { ...product,
6797
- plans: renewablePlans
6798
- };
6799
- }
6800
- }).filter(product => product);
6801
-
6802
- function getRenewablePlansOnly(product) {
6803
- var _product$plans$filter, _product$plans;
6804
-
6805
- return (_product$plans$filter = product === null || product === void 0 ? void 0 : (_product$plans = product.plans) === null || _product$plans === void 0 ? void 0 : _product$plans.filter(plan => renewablePlansIds.includes(plan.id))) !== null && _product$plans$filter !== void 0 ? _product$plans$filter : [];
6806
- }
6807
- }
6808
6728
 
6809
6729
  const resources = {
6810
6730
  en: {
@@ -6829,8 +6749,7 @@ const resources = {
6829
6749
  dashboard: dashboard_en,
6830
6750
  select: select_en,
6831
6751
  notification: notification_en,
6832
- invoiceDetails: invoiceDetails_en,
6833
- subscriptionOptions: subscriptionOptions_en
6752
+ invoiceDetails: invoiceDetails_en
6834
6753
  },
6835
6754
  fr: {
6836
6755
  common: common_fr,
@@ -6854,8 +6773,7 @@ const resources = {
6854
6773
  dashboard: dashboard_fr,
6855
6774
  select: select_fr,
6856
6775
  notification: notification_fr,
6857
- invoiceDetails: invoiceDetails_fr,
6858
- subscriptionOptions: subscriptionOptions_fr
6776
+ invoiceDetails: invoiceDetails_fr
6859
6777
  }
6860
6778
  }; // set UI language to the page language or default to the language in site settings
6861
6779
 
@@ -7146,8 +7064,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
7146
7064
 
7147
7065
  let e={data:""},t=t=>"undefined"!=typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/g,a=/\/\*[^]*?\*\/|\s\s+|\n/g,n=(e,t)=>{let r,l="",a="",o="";for(let c in e){let s=e[c];"object"==typeof s?(r=t?t.replace(/([^,])+/g,e=>c.replace(/([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):c,a+="@"==c[0]?"f"==c[1]?n(s,c):c+"{"+n(s,"k"==c[1]?"":t)+"}":n(s,r)):"@"==c[0]&&"i"==c[1]?l=c+" "+s+";":(c=c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=n.p?n.p(c,s):c+":"+s+";");}return o[0]?(r=t?t+"{"+o+"}":o,l+r+a):l+a},o={},c=e=>{let t="";for(let r in e)t+=r+("object"==typeof e[r]?c(e[r]):e[r]);return t},s=(e,t,r,s,i)=>{let p="object"==typeof e?c(e):e,u=o[p]||(o[p]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(p));if(!o[u]){let t="object"==typeof e?e:(e=>{let t,r=[{}];for(;t=l.exec(e.replace(a,""));)t[4]&&r.shift(),t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):t[4]||(r[0][t[1]]=t[2]);return r[0]})(e);o[u]=n(i?{["@keyframes "+u]:t}:t,r?"":"."+u);}return ((e,t,r)=>{-1==t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(o[u],t,s),u},i=(e,t,r)=>e.reduce((e,l,a)=>{let o=t[a];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":n(e,""):e;}return e+l+(null==o?"":o)},"");function p(e){let r=this||{},l=e.call?e(r.p):e;return s(l.unshift?l.raw?i(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>t?Object.assign(e,t.call?t(r.p):t):e,{}):l,t(r.target),r.g,r.o,r.k)}let u,f,d;p.bind({g:1});let b=p.bind({k:1});function h(e,t,r,l){n.p=t,u=e,f=r,d=l;}function y(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=p.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=c.as||e;return d&&i[0]&&d(c),u(i,c)}return t?t(a):a}}
7148
7066
 
7149
- function _extends$A() {
7150
- _extends$A = Object.assign || function (target) {
7067
+ function _extends$z() {
7068
+ _extends$z = Object.assign || function (target) {
7151
7069
  for (var i = 1; i < arguments.length; i++) {
7152
7070
  var source = arguments[i];
7153
7071
 
@@ -7161,7 +7079,7 @@ function _extends$A() {
7161
7079
  return target;
7162
7080
  };
7163
7081
 
7164
- return _extends$A.apply(this, arguments);
7082
+ return _extends$z.apply(this, arguments);
7165
7083
  }
7166
7084
 
7167
7085
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7251,7 +7169,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7251
7169
  var reducer = function reducer(state, action) {
7252
7170
  switch (action.type) {
7253
7171
  case ActionType.ADD_TOAST:
7254
- return _extends$A({}, state, {
7172
+ return _extends$z({}, state, {
7255
7173
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7256
7174
  });
7257
7175
 
@@ -7261,9 +7179,9 @@ var reducer = function reducer(state, action) {
7261
7179
  clearFromRemoveQueue(action.toast.id);
7262
7180
  }
7263
7181
 
7264
- return _extends$A({}, state, {
7182
+ return _extends$z({}, state, {
7265
7183
  toasts: state.toasts.map(function (t) {
7266
- return t.id === action.toast.id ? _extends$A({}, t, action.toast) : t;
7184
+ return t.id === action.toast.id ? _extends$z({}, t, action.toast) : t;
7267
7185
  })
7268
7186
  });
7269
7187
 
@@ -7290,9 +7208,9 @@ var reducer = function reducer(state, action) {
7290
7208
  });
7291
7209
  }
7292
7210
 
7293
- return _extends$A({}, state, {
7211
+ return _extends$z({}, state, {
7294
7212
  toasts: state.toasts.map(function (t) {
7295
- return t.id === toastId || toastId === undefined ? _extends$A({}, t, {
7213
+ return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
7296
7214
  visible: false
7297
7215
  }) : t;
7298
7216
  })
@@ -7300,28 +7218,28 @@ var reducer = function reducer(state, action) {
7300
7218
 
7301
7219
  case ActionType.REMOVE_TOAST:
7302
7220
  if (action.toastId === undefined) {
7303
- return _extends$A({}, state, {
7221
+ return _extends$z({}, state, {
7304
7222
  toasts: []
7305
7223
  });
7306
7224
  }
7307
7225
 
7308
- return _extends$A({}, state, {
7226
+ return _extends$z({}, state, {
7309
7227
  toasts: state.toasts.filter(function (t) {
7310
7228
  return t.id !== action.toastId;
7311
7229
  })
7312
7230
  });
7313
7231
 
7314
7232
  case ActionType.START_PAUSE:
7315
- return _extends$A({}, state, {
7233
+ return _extends$z({}, state, {
7316
7234
  pausedAt: action.time
7317
7235
  });
7318
7236
 
7319
7237
  case ActionType.END_PAUSE:
7320
7238
  var diff = action.time - (state.pausedAt || 0);
7321
- return _extends$A({}, state, {
7239
+ return _extends$z({}, state, {
7322
7240
  pausedAt: undefined,
7323
7241
  toasts: state.toasts.map(function (t) {
7324
- return _extends$A({}, t, {
7242
+ return _extends$z({}, t, {
7325
7243
  pauseDuration: t.pauseDuration + diff
7326
7244
  });
7327
7245
  })
@@ -7368,12 +7286,12 @@ var useStore = function useStore(toastOptions) {
7368
7286
  var mergedToasts = state.toasts.map(function (t) {
7369
7287
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7370
7288
 
7371
- return _extends$A({}, toastOptions, toastOptions[t.type], t, {
7289
+ return _extends$z({}, toastOptions, toastOptions[t.type], t, {
7372
7290
  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],
7373
- style: _extends$A({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7291
+ style: _extends$z({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7374
7292
  });
7375
7293
  });
7376
- return _extends$A({}, state, {
7294
+ return _extends$z({}, state, {
7377
7295
  toasts: mergedToasts
7378
7296
  });
7379
7297
  };
@@ -7383,7 +7301,7 @@ var createToast = function createToast(message, type, opts) {
7383
7301
  type = 'blank';
7384
7302
  }
7385
7303
 
7386
- return _extends$A({
7304
+ return _extends$z({
7387
7305
  createdAt: Date.now(),
7388
7306
  visible: true,
7389
7307
  type: type,
@@ -7433,14 +7351,14 @@ toast.remove = function (toastId) {
7433
7351
  };
7434
7352
 
7435
7353
  toast.promise = function (promise, msgs, opts) {
7436
- var id = toast.loading(msgs.loading, _extends$A({}, opts, opts == null ? void 0 : opts.loading));
7354
+ var id = toast.loading(msgs.loading, _extends$z({}, opts, opts == null ? void 0 : opts.loading));
7437
7355
  promise.then(function (p) {
7438
- toast.success(resolveValue(msgs.success, p), _extends$A({
7356
+ toast.success(resolveValue(msgs.success, p), _extends$z({
7439
7357
  id: id
7440
7358
  }, opts, opts == null ? void 0 : opts.success));
7441
7359
  return p;
7442
7360
  })["catch"](function (e) {
7443
- toast.error(resolveValue(msgs.error, e), _extends$A({
7361
+ toast.error(resolveValue(msgs.error, e), _extends$z({
7444
7362
  id: id
7445
7363
  }, opts, opts == null ? void 0 : opts.error));
7446
7364
  });
@@ -7779,7 +7697,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
7779
7697
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7780
7698
  return createElement(ToastBarBase, {
7781
7699
  className: toast.className,
7782
- style: _extends$A({}, animationStyle, style, toast.style)
7700
+ style: _extends$z({}, animationStyle, style, toast.style)
7783
7701
  }, typeof children === 'function' ? children({
7784
7702
  icon: icon,
7785
7703
  message: message
@@ -7809,7 +7727,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7809
7727
  } : position.includes('right') ? {
7810
7728
  justifyContent: 'flex-end'
7811
7729
  } : {};
7812
- return _extends$A({
7730
+ return _extends$z({
7813
7731
  left: 0,
7814
7732
  right: 0,
7815
7733
  display: 'flex',
@@ -7836,7 +7754,7 @@ var Toaster = function Toaster(_ref) {
7836
7754
  handlers = _useToaster.handlers;
7837
7755
 
7838
7756
  return createElement("div", {
7839
- style: _extends$A({
7757
+ style: _extends$z({
7840
7758
  position: 'fixed',
7841
7759
  zIndex: 9999,
7842
7760
  top: DEFAULT_OFFSET,
@@ -7871,82 +7789,82 @@ var Toaster = function Toaster(_ref) {
7871
7789
  }));
7872
7790
  };
7873
7791
 
7874
- var _path$x;
7792
+ var _path$w;
7875
7793
 
7876
- function _extends$z() { _extends$z = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
7794
+ function _extends$y() { _extends$y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
7877
7795
 
7878
7796
  function SvgCheckSolid(props) {
7879
- return /*#__PURE__*/React.createElement("svg", _extends$z({
7797
+ return /*#__PURE__*/React.createElement("svg", _extends$y({
7880
7798
  xmlns: "http://www.w3.org/2000/svg",
7881
7799
  className: "h-5 w-5",
7882
7800
  viewBox: "0 0 20 20",
7883
7801
  fill: "currentColor"
7884
- }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
7802
+ }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
7885
7803
  fillRule: "evenodd",
7886
7804
  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",
7887
7805
  clipRule: "evenodd"
7888
7806
  })));
7889
7807
  }
7890
7808
 
7891
- var _path$w;
7809
+ var _path$v;
7892
7810
 
7893
- function _extends$y() { _extends$y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
7811
+ function _extends$x() { _extends$x = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
7894
7812
 
7895
7813
  function SvgXIcon(props) {
7896
- return /*#__PURE__*/React.createElement("svg", _extends$y({
7814
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
7897
7815
  xmlns: "http://www.w3.org/2000/svg",
7898
7816
  viewBox: "0 0 20 20",
7899
7817
  fill: "currentColor"
7900
- }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
7818
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7901
7819
  fill: "evenodd",
7902
7820
  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",
7903
7821
  clipRule: "evenodd"
7904
7822
  })));
7905
7823
  }
7906
7824
 
7907
- var _path$v;
7825
+ var _path$u;
7908
7826
 
7909
- function _extends$x() { _extends$x = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
7827
+ function _extends$w() { _extends$w = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
7910
7828
 
7911
7829
  function SvgXIconSolid(props) {
7912
- return /*#__PURE__*/React.createElement("svg", _extends$x({
7830
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
7913
7831
  className: "plc-w-4 plc-h-4",
7914
7832
  fill: "currentColor",
7915
7833
  xmlns: "http://www.w3.org/2000/svg",
7916
7834
  viewBox: "0 0 100 100"
7917
- }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7835
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7918
7836
  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"
7919
7837
  })));
7920
7838
  }
7921
7839
 
7922
- var _path$u;
7840
+ var _path$t;
7923
7841
 
7924
- function _extends$w() { _extends$w = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
7842
+ function _extends$v() { _extends$v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
7925
7843
 
7926
7844
  function SvgExclamation(props) {
7927
- return /*#__PURE__*/React.createElement("svg", _extends$w({
7845
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
7928
7846
  className: "plc-w-4 plc-h-4 plc-mr-1",
7929
7847
  xmlns: "http://www.w3.org/2000/svg",
7930
7848
  viewBox: "0 0 20 20",
7931
7849
  fill: "currentColor"
7932
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7850
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7933
7851
  fillRule: "evenodd",
7934
7852
  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",
7935
7853
  clipRule: "evenodd"
7936
7854
  })));
7937
7855
  }
7938
7856
 
7939
- var _path$t, _path2$4;
7857
+ var _path$s, _path2$4;
7940
7858
 
7941
- function _extends$v() { _extends$v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
7859
+ function _extends$u() { _extends$u = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
7942
7860
 
7943
7861
  function SvgSpinner(props) {
7944
- return /*#__PURE__*/React.createElement("svg", _extends$v({
7862
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
7945
7863
  className: "plc-animate-spin",
7946
7864
  viewBox: "0 0 24 24",
7947
7865
  fill: "currentColor",
7948
7866
  xmlns: "http://www.w3.org/2000/svg"
7949
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7867
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7950
7868
  opacity: 0.2,
7951
7869
  fill: "evenodd",
7952
7870
  clipRule: "evenodd",
@@ -8236,9 +8154,7 @@ const init$1 = () => {
8236
8154
  return switchToAddressView();
8237
8155
  });
8238
8156
  } else {
8239
- pelcroSubscribeButtonsByClass[j].addEventListener("click", () => {
8240
- return switchView("subscription-options");
8241
- });
8157
+ pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
8242
8158
  }
8243
8159
  }
8244
8160
  }
@@ -8400,8 +8316,7 @@ function Link({
8400
8316
  const init = () => {
8401
8317
  const {
8402
8318
  switchView,
8403
- set,
8404
- setProductsList
8319
+ set
8405
8320
  } = usePelcro.getStore();
8406
8321
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
8407
8322
 
@@ -8452,8 +8367,7 @@ const init = () => {
8452
8367
  }
8453
8368
 
8454
8369
  notify.dismiss(NOTIFICATION_ID);
8455
- setProductsList(window.Pelcro.product.getByEntitlements(entitlements));
8456
- switchView("plan-select");
8370
+ switchView("_plan-select-entitlements");
8457
8371
  }
8458
8372
  }, "Subscribe"), "now to get full page access.")), {
8459
8373
  className: "pelcro-notification-entitlement",
@@ -8685,6 +8599,7 @@ var pure_1 = pure.loadStripe;
8685
8599
  * @param {Object} error Error object
8686
8600
  * @return {string}
8687
8601
  */
8602
+
8688
8603
  const getErrorMessages = error => {
8689
8604
  var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
8690
8605
 
@@ -8739,6 +8654,20 @@ const debounce = (func, waitTime) => {
8739
8654
  timeout = setTimeout(later, waitTime);
8740
8655
  };
8741
8656
  };
8657
+ function getSiteCardProcessor() {
8658
+ var _window$Pelcro$site$r;
8659
+
8660
+ const {
8661
+ view
8662
+ } = usePelcro.getStore();
8663
+ const temp_ONLY_USE_VANTIV_WITH_SUBSCRIPTION_CREATE = view === "subscription-create";
8664
+
8665
+ if (temp_ONLY_USE_VANTIV_WITH_SUBSCRIPTION_CREATE && (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.vantiv_pay_page_id) {
8666
+ return "vantiv";
8667
+ }
8668
+
8669
+ return "stripe";
8670
+ }
8742
8671
 
8743
8672
  /**
8744
8673
  * @typedef {Object} OptionsType
@@ -8819,13 +8748,26 @@ const loadPaymentSDKs = () => {
8819
8748
  if (!window.Stripe) {
8820
8749
  pure_1(window.Pelcro.environment.stripe);
8821
8750
  }
8822
- }); // Load PayPal SDK's
8751
+ }); // Load PayPal SDKs
8823
8752
 
8824
8753
  const supportsPaypal = Boolean(window.Pelcro.site.read().braintree_tokenization);
8825
8754
 
8826
8755
  if (supportsPaypal) {
8827
8756
  window.Pelcro.helpers.loadSDK("https://js.braintreegateway.com/web/3.69.0/js/client.min.js", "braintree-sdk");
8828
8757
  window.Pelcro.helpers.loadSDK("https://js.braintreegateway.com/web/3.69.0/js/paypal-checkout.min.js", "braintree-paypal-sdk");
8758
+ } // Load Vantiv SDKs
8759
+
8760
+
8761
+ const supportsVantiv = Boolean(window.Pelcro.site.read().vantiv_pay_page_id);
8762
+
8763
+ if (supportsVantiv) {
8764
+ if (!window.jQuery) {
8765
+ window.Pelcro.helpers.loadSDK("https://code.jquery.com/jquery-3.6.0.slim.min.js", "vantiv-jquery-sdk");
8766
+ }
8767
+
8768
+ if (!window.EprotectIframeClient) {
8769
+ window.Pelcro.helpers.loadSDK("https://request.eprotect.vantivprelive.com/eProtect/js/eProtect-iframe-client.min.js", "vantiv-eprotect-sdk");
8770
+ }
8829
8771
  }
8830
8772
  };
8831
8773
  const loadAuth0SDK = () => {
@@ -9258,7 +9200,7 @@ const PelcroModalController = ({
9258
9200
  type
9259
9201
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
9260
9202
  type
9261
- }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-renew" && React__default.Children.map(children, child => child).find(({
9203
+ }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default.Children.map(children, child => child).find(({
9262
9204
  type
9263
9205
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
9264
9206
  type
@@ -9539,10 +9481,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
9539
9481
  const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9540
9482
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9541
9483
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9542
- const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
9543
- const SWITCH_TO_NEW = "SWITCH_TO_NEW";
9544
9484
 
9545
- const initialState$i = {
9485
+ const initialState$h = {
9546
9486
  email: "",
9547
9487
  password: "",
9548
9488
  emailError: null,
@@ -9553,10 +9493,10 @@ const initialState$i = {
9553
9493
  content: ""
9554
9494
  }
9555
9495
  };
9556
- const store$i = /*#__PURE__*/createContext(initialState$i);
9496
+ const store$h = /*#__PURE__*/createContext(initialState$h);
9557
9497
  const {
9558
- Provider: Provider$i
9559
- } = store$i;
9498
+ Provider: Provider$h
9499
+ } = store$h;
9560
9500
 
9561
9501
  const LoginContainer = ({
9562
9502
  style,
@@ -9663,7 +9603,7 @@ const LoginContainer = ({
9663
9603
  });
9664
9604
 
9665
9605
  case RESET_LOGIN_FORM:
9666
- return initialState$i;
9606
+ return initialState$h;
9667
9607
 
9668
9608
  case DISABLE_LOGIN_BUTTON:
9669
9609
  return lib_7({ ...state,
@@ -9681,12 +9621,12 @@ const LoginContainer = ({
9681
9621
  default:
9682
9622
  return state;
9683
9623
  }
9684
- }, initialState$i);
9624
+ }, initialState$h);
9685
9625
  return /*#__PURE__*/React__default.createElement("div", {
9686
9626
  style: { ...style
9687
9627
  },
9688
9628
  className: `pelcro-container pelcro-login-container ${className}`
9689
- }, /*#__PURE__*/React__default.createElement(Provider$i, {
9629
+ }, /*#__PURE__*/React__default.createElement(Provider$h, {
9690
9630
  value: {
9691
9631
  state,
9692
9632
  dispatch
@@ -9694,12 +9634,12 @@ const LoginContainer = ({
9694
9634
  }, children.length ? children.map((child, i) => {
9695
9635
  if (child) {
9696
9636
  return /*#__PURE__*/React__default.cloneElement(child, {
9697
- store: store$i,
9637
+ store: store$h,
9698
9638
  key: i
9699
9639
  });
9700
9640
  }
9701
9641
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9702
- store: store$i
9642
+ store: store$h
9703
9643
  })));
9704
9644
  };
9705
9645
 
@@ -9944,7 +9884,7 @@ const LoginButton = ({
9944
9884
  buttonDisabled
9945
9885
  },
9946
9886
  dispatch
9947
- } = useContext(store$i);
9887
+ } = useContext(store$h);
9948
9888
  const {
9949
9889
  t
9950
9890
  } = useTranslation("login");
@@ -9965,23 +9905,23 @@ const LoginButton = ({
9965
9905
  };
9966
9906
 
9967
9907
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
9968
- store: store$i
9908
+ store: store$h
9969
9909
  }, props));
9970
9910
 
9971
9911
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
9972
- store: store$i
9912
+ store: store$h
9973
9913
  }, props));
9974
9914
 
9975
- var _path$s;
9915
+ var _path$r;
9976
9916
 
9977
- function _extends$u() { _extends$u = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
9917
+ function _extends$t() { _extends$t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
9978
9918
 
9979
9919
  function SvgCheck(props) {
9980
- return /*#__PURE__*/React.createElement("svg", _extends$u({
9920
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
9981
9921
  xmlns: "http://www.w3.org/2000/svg",
9982
9922
  fill: "currentColor",
9983
9923
  viewBox: "0 0 20 20"
9984
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
9924
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
9985
9925
  fillRule: "evenodd",
9986
9926
  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",
9987
9927
  clipRule: "evenodd"
@@ -10046,7 +9986,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
10046
9986
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
10047
9987
  facebookLoginRenderProps.FacebookLogin;
10048
9988
 
10049
- const initialState$h = {
9989
+ const initialState$g = {
10050
9990
  email: "",
10051
9991
  password: "",
10052
9992
  emailError: null,
@@ -10063,10 +10003,10 @@ const initialState$h = {
10063
10003
  content: ""
10064
10004
  }
10065
10005
  };
10066
- const store$h = /*#__PURE__*/createContext(initialState$h);
10006
+ const store$g = /*#__PURE__*/createContext(initialState$g);
10067
10007
  const {
10068
- Provider: Provider$h
10069
- } = store$h;
10008
+ Provider: Provider$g
10009
+ } = store$g;
10070
10010
 
10071
10011
  const RegisterContainer = ({
10072
10012
  style,
@@ -10249,7 +10189,7 @@ const RegisterContainer = ({
10249
10189
  });
10250
10190
 
10251
10191
  case RESET_LOGIN_FORM:
10252
- return initialState$h;
10192
+ return initialState$g;
10253
10193
 
10254
10194
  case DISABLE_REGISTRATION_BUTTON:
10255
10195
  return lib_7({ ...state,
@@ -10267,12 +10207,12 @@ const RegisterContainer = ({
10267
10207
  default:
10268
10208
  return state;
10269
10209
  }
10270
- }, initialState$h);
10210
+ }, initialState$g);
10271
10211
  return /*#__PURE__*/React__default.createElement("div", {
10272
10212
  style: { ...style
10273
10213
  },
10274
10214
  className: `pelcro-container pelcro-register-container ${className}`
10275
- }, /*#__PURE__*/React__default.createElement(Provider$h, {
10215
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
10276
10216
  value: {
10277
10217
  state,
10278
10218
  dispatch
@@ -10280,12 +10220,12 @@ const RegisterContainer = ({
10280
10220
  }, children.length ? children.map((child, i) => {
10281
10221
  if (child) {
10282
10222
  return /*#__PURE__*/React__default.cloneElement(child, {
10283
- store: store$h,
10223
+ store: store$g,
10284
10224
  key: i
10285
10225
  });
10286
10226
  }
10287
10227
  }) : /*#__PURE__*/React__default.cloneElement(children, {
10288
- store: store$h
10228
+ store: store$g
10289
10229
  })));
10290
10230
  };
10291
10231
  /**
@@ -10300,15 +10240,15 @@ function hasSecurityTokenEnabled$1() {
10300
10240
  return hasSecuritySdkLoaded;
10301
10241
  }
10302
10242
 
10303
- var _path$r;
10243
+ var _path$q;
10304
10244
 
10305
- function _extends$t() { _extends$t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
10245
+ function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
10306
10246
 
10307
10247
  function SvgFacebookLogo(props) {
10308
- return /*#__PURE__*/React.createElement("svg", _extends$t({
10248
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
10309
10249
  xmlns: "http://www.w3.org/2000/svg",
10310
10250
  viewBox: "88.428 12.828 107.543 207.085"
10311
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
10251
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
10312
10252
  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",
10313
10253
  fill: "#3c5a9a"
10314
10254
  })));
@@ -10325,10 +10265,10 @@ const FacebookLoginButton = ({
10325
10265
  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;
10326
10266
  const {
10327
10267
  dispatch: loginDispatch
10328
- } = useContext(store$i);
10268
+ } = useContext(store$h);
10329
10269
  const {
10330
10270
  dispatch: registerDispatch
10331
- } = useContext(store$h);
10271
+ } = useContext(store$g);
10332
10272
 
10333
10273
  const onSuccess = facebookUser => {
10334
10274
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10381,15 +10321,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10381
10321
  unwrapExports(googleLogin);
10382
10322
  var googleLogin_1 = googleLogin.GoogleLogin;
10383
10323
 
10384
- var _path$q, _path2$3, _path3$1, _path4;
10324
+ var _path$p, _path2$3, _path3$1, _path4;
10385
10325
 
10386
- function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
10326
+ function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
10387
10327
 
10388
10328
  function SvgGoogleLogo(props) {
10389
- return /*#__PURE__*/React.createElement("svg", _extends$s({
10329
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
10390
10330
  viewBox: "0 0 24 24",
10391
10331
  xmlns: "http://www.w3.org/2000/svg"
10392
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
10332
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10393
10333
  fill: "#4285F4",
10394
10334
  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"
10395
10335
  })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
@@ -10415,10 +10355,10 @@ const GoogleLoginButton = ({
10415
10355
  const googleLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
10416
10356
  const {
10417
10357
  dispatch: loginDispatch
10418
- } = useContext(store$i);
10358
+ } = useContext(store$h);
10419
10359
  const {
10420
10360
  dispatch: registerDispatch
10421
- } = useContext(store$h);
10361
+ } = useContext(store$g);
10422
10362
 
10423
10363
  const onSuccess = response => {
10424
10364
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10466,15 +10406,15 @@ const GoogleLoginButton = ({
10466
10406
  }) : null;
10467
10407
  };
10468
10408
 
10469
- var _path$p;
10409
+ var _path$o;
10470
10410
 
10471
- function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
10411
+ function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
10472
10412
 
10473
10413
  function SvgAuth0Logo(props) {
10474
- return /*#__PURE__*/React.createElement("svg", _extends$r({
10414
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
10475
10415
  viewBox: "0 0 256 285",
10476
10416
  xmlns: "http://www.w3.org/2000/svg"
10477
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10417
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10478
10418
  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"
10479
10419
  })));
10480
10420
  }
@@ -10514,10 +10454,10 @@ const Auth0LoginButton = ({
10514
10454
  }, [auth0Enabled, auth0Loaded]);
10515
10455
  const {
10516
10456
  dispatch: loginDispatch
10517
- } = useContext(store$i);
10457
+ } = useContext(store$h);
10518
10458
  const {
10519
10459
  dispatch: registerDispatch
10520
- } = useContext(store$h);
10460
+ } = useContext(store$g);
10521
10461
 
10522
10462
  function handleClick() {
10523
10463
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
@@ -10650,15 +10590,15 @@ function LoginView(props) {
10650
10590
  }, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
10651
10591
  }
10652
10592
 
10653
- var _path$o, _path2$2, _path3;
10593
+ var _path$n, _path2$2, _path3;
10654
10594
 
10655
- function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
10595
+ function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
10656
10596
 
10657
10597
  function SvgPelcroAuthorship(props) {
10658
- return /*#__PURE__*/React.createElement("svg", _extends$q({
10598
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
10659
10599
  xmlns: "http://www.w3.org/2000/svg",
10660
10600
  viewBox: "0 -80.652 497.072 179.991"
10661
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10601
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10662
10602
  fill: "none",
10663
10603
  stroke: "#4a4a4a",
10664
10604
  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"
@@ -10805,11 +10745,11 @@ function LoginModal({
10805
10745
  LoginModal.viewId = "login";
10806
10746
 
10807
10747
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10808
- store: store$h
10748
+ store: store$g
10809
10749
  }, props));
10810
10750
 
10811
10751
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10812
- store: store$h
10752
+ store: store$g
10813
10753
  }, props));
10814
10754
 
10815
10755
  const RegisterButton = ({
@@ -10829,7 +10769,7 @@ const RegisterButton = ({
10829
10769
  buttonDisabled
10830
10770
  },
10831
10771
  dispatch
10832
- } = useContext(store$h);
10772
+ } = useContext(store$g);
10833
10773
  const {
10834
10774
  t
10835
10775
  } = useTranslation("register");
@@ -10967,7 +10907,7 @@ function FirstName({
10967
10907
  }
10968
10908
 
10969
10909
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
10970
- store: store$h
10910
+ store: store$g
10971
10911
  }, props));
10972
10912
 
10973
10913
  function LastName({
@@ -10998,7 +10938,7 @@ function LastName({
10998
10938
  }
10999
10939
 
11000
10940
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
11001
- store: store$h
10941
+ store: store$g
11002
10942
  }, props));
11003
10943
 
11004
10944
  /**
@@ -11122,7 +11062,7 @@ function TextInput({
11122
11062
 
11123
11063
  const RegisterTextInput = props => {
11124
11064
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
11125
- store: store$h
11065
+ store: store$g
11126
11066
  }));
11127
11067
  };
11128
11068
 
@@ -11269,7 +11209,6 @@ function SelectModalWithHook(props) {
11269
11209
  (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
11270
11210
  }, []);
11271
11211
  const {
11272
- productsList,
11273
11212
  isGift,
11274
11213
  plan,
11275
11214
  product,
@@ -11279,12 +11218,11 @@ function SelectModalWithHook(props) {
11279
11218
  view,
11280
11219
  set
11281
11220
  } = usePelcro();
11282
- const isRenewingSub = view === "_plan-select-renew";
11221
+ const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
11222
+ const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
11283
11223
  return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
11284
- productsList: productsList,
11285
11224
  isGift: isGift,
11286
- disableGifting: isRenewingGift || isRenewingSub,
11287
- isRenewingSub: isRenewingSub,
11225
+ disableGifting: isRenewingGift,
11288
11226
  plan: plan,
11289
11227
  product: product,
11290
11228
  onClose: () => {
@@ -11298,10 +11236,8 @@ function SelectModalWithHook(props) {
11298
11236
  plan,
11299
11237
  isGift
11300
11238
  }),
11301
- setSubscriptionIdToRenew: subscriptionIdToRenew => set({
11302
- subscriptionIdToRenew
11303
- }),
11304
- setView: switchView
11239
+ setView: switchView,
11240
+ matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
11305
11241
  });
11306
11242
  }
11307
11243
  SelectModalWithHook.viewId = "plan-select";
@@ -11333,10 +11269,10 @@ class SelectModal extends Component {
11333
11269
  });
11334
11270
  }
11335
11271
 
11336
- if (this.props.productsList.length === 1) {
11272
+ if (this.state.productList.length === 1) {
11337
11273
  this.setState({
11338
- product: this.props.productsList[0],
11339
- planList: this.props.productsList[0].plans,
11274
+ product: this.state.productList[0],
11275
+ planList: this.state.productList[0].plans,
11340
11276
  mode: "plan"
11341
11277
  });
11342
11278
  }
@@ -11353,7 +11289,7 @@ class SelectModal extends Component {
11353
11289
  });
11354
11290
 
11355
11291
  _defineProperty$3(this, "onProductChange", e => {
11356
- const product = productsList[e.target.selectedIndex];
11292
+ const product = window.Pelcro.product.list()[e.target.selectedIndex];
11357
11293
  this.setState({
11358
11294
  product: product,
11359
11295
  plan: product.plans[0]
@@ -11419,7 +11355,7 @@ class SelectModal extends Component {
11419
11355
 
11420
11356
  _defineProperty$3(this, "renderProducts", () => {
11421
11357
  const userDidSelectProduct = Boolean(this.state.mode === "plan");
11422
- const productsToShow = userDidSelectProduct ? [this.state.product] : this.props.productsList;
11358
+ const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
11423
11359
  return productsToShow.map((product, index) => {
11424
11360
  return this.renderOneProduct(product, index);
11425
11361
  });
@@ -11432,7 +11368,7 @@ class SelectModal extends Component {
11432
11368
  return this.renderOneProduct(this.state.product);
11433
11369
  }
11434
11370
 
11435
- const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(this.props.productsList); // Render normal products if there are no available matching products
11371
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
11436
11372
 
11437
11373
  if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
11438
11374
  return this.renderProducts();
@@ -11448,7 +11384,10 @@ class SelectModal extends Component {
11448
11384
  className: "plc-text-sm plc-font-semibold"
11449
11385
  }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
11450
11386
 
11451
- function productsWithMatchedTaggedFirst(allProducts) {
11387
+ function productsWithMatchedTaggedFirst() {
11388
+ var _window$Pelcro$produc;
11389
+
11390
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11452
11391
  const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11453
11392
  const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
11454
11393
  return [productsThatMatchArticleTag, allProductsMinusMatched];
@@ -11482,7 +11421,7 @@ class SelectModal extends Component {
11482
11421
  _defineProperty$3(this, "selectProduct", e => {
11483
11422
  const id = e.target.dataset.key;
11484
11423
 
11485
- for (const product of this.props.productsList) {
11424
+ for (const product of this.state.productList) {
11486
11425
  if (+product.id === +id) {
11487
11426
  var _this$state$plan;
11488
11427
 
@@ -11535,14 +11474,6 @@ class SelectModal extends Component {
11535
11474
 
11536
11475
  _defineProperty$3(this, "submitOption", () => {
11537
11476
  this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
11538
-
11539
- if (this.props.isRenewingSub) {
11540
- var _matchingSub$id;
11541
-
11542
- const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
11543
- this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
11544
- }
11545
-
11546
11477
  const {
11547
11478
  product,
11548
11479
  isGift
@@ -11580,7 +11511,8 @@ class SelectModal extends Component {
11580
11511
  plan: {},
11581
11512
  isGift: props.isGift,
11582
11513
  disabled: true,
11583
- mode: "product"
11514
+ mode: "product",
11515
+ productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
11584
11516
  };
11585
11517
  this.product = this.props.product || window.Pelcro.paywall.getProduct();
11586
11518
  this.locale = this.props.t;
@@ -11588,7 +11520,7 @@ class SelectModal extends Component {
11588
11520
  }
11589
11521
 
11590
11522
  render() {
11591
- var _this$props$productsL, _this$props$productsL2, _window$Pelcro$site$r;
11523
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
11592
11524
 
11593
11525
  const {
11594
11526
  disableGifting
@@ -11622,7 +11554,7 @@ class SelectModal extends Component {
11622
11554
  className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
11623
11555
  }, /*#__PURE__*/React__default.createElement("h4", {
11624
11556
  className: "plc-text-2xl plc-font-semibold"
11625
- }, this.product && this.product.paywall.select_title || ((_this$props$productsL = this.props.productsList[0]) === null || _this$props$productsL === void 0 ? void 0 : _this$props$productsL.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_this$props$productsL2 = this.props.productsList[0]) === null || _this$props$productsL2 === void 0 ? void 0 : _this$props$productsL2.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
11557
+ }, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
11626
11558
  className: "pelcro-select-products-wrapper"
11627
11559
  }, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
11628
11560
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
@@ -12810,7 +12742,7 @@ var _generateUserError = /*#__PURE__*/new WeakMap();
12810
12742
  class Subscription {
12811
12743
  /**
12812
12744
  * Subscription service constructor
12813
- * @param {(StripeGateway|PaypalGateWay)} paymentGateway
12745
+ * @param {(StripeGateway|PaypalGateway|VantivGateway)} paymentGateway
12814
12746
  */
12815
12747
  constructor(paymentGateway) {
12816
12748
  _defineProperty$3(this, "execute", (options, callback) => {
@@ -12831,7 +12763,7 @@ class Subscription {
12831
12763
  _isPaymentGatewayInvalid.set(this, {
12832
12764
  writable: true,
12833
12765
  value: gateway => {
12834
- return gateway && !(gateway instanceof StripeGateway) && gateway && !(gateway instanceof PaypalGateWay);
12766
+ return gateway && !(gateway instanceof StripeGateway || gateway instanceof PaypalGateway || gateway instanceof VantivGateway);
12835
12767
  }
12836
12768
  });
12837
12769
 
@@ -12884,7 +12816,8 @@ class Subscription {
12884
12816
  }
12885
12817
  const PAYMENT_GATEWAYS_ENUM = {
12886
12818
  stripe: "stripe",
12887
- paypal: "braintree"
12819
+ paypal: "braintree",
12820
+ vantiv: "vantiv"
12888
12821
  };
12889
12822
  /**
12890
12823
  * Subscription Strategies
@@ -13076,7 +13009,7 @@ var _createGiftedSubscription2 = /*#__PURE__*/new WeakMap();
13076
13009
 
13077
13010
  var _payInvoice2 = /*#__PURE__*/new WeakMap();
13078
13011
 
13079
- class PaypalGateWay {
13012
+ class PaypalGateway {
13080
13013
  constructor() {
13081
13014
  _paymentGateway2.set(this, {
13082
13015
  writable: true,
@@ -13177,49 +13110,100 @@ class PaypalGateWay {
13177
13110
 
13178
13111
  }
13179
13112
 
13180
- /**
13181
- * @typedef {Object} PaymentStateType
13182
- * @property {boolean} disableSubmit
13183
- * @property {boolean} isLoading
13184
- * @property {boolean} disableCouponButton
13185
- * @property {object} couponObject
13186
- * @property {string} couponCode
13187
- * @property {string} couponError
13188
- * @property {boolean} enableCouponField
13189
- * @property {string} percentOff
13190
- * @property {unknown} canMakePayment
13191
- * @property {unknown} paymentRequest
13192
- * @property {number} updatedPrice
13193
- * @property {number} taxAmount
13194
- * @property {object} currentPlan
13195
- * @property {object} alert
13196
- */
13113
+ var _paymentGateway3 = /*#__PURE__*/new WeakMap();
13197
13114
 
13198
- /** @type {PaymentStateType} */
13115
+ var _createSubscription3 = /*#__PURE__*/new WeakMap();
13199
13116
 
13200
- const initialState$g = {
13201
- disableSubmit: false,
13202
- isLoading: false,
13203
- disableCouponButton: false,
13204
- couponObject: null,
13205
- couponCode: "",
13206
- couponError: "",
13207
- enableCouponField: false,
13208
- percentOff: "",
13209
- canMakePayment: false,
13210
- paymentRequest: null,
13211
- updatedPrice: null,
13212
- taxAmount: null,
13213
- currentPlan: null,
13214
- alert: {
13215
- type: "error",
13216
- content: ""
13217
- }
13218
- };
13219
- const store$g = /*#__PURE__*/createContext(initialState$g);
13220
- const {
13221
- Provider: Provider$g
13222
- } = store$g;
13117
+ class VantivGateway {
13118
+ constructor() {
13119
+ _paymentGateway3.set(this, {
13120
+ writable: true,
13121
+ value: PAYMENT_GATEWAYS_ENUM["vantiv"]
13122
+ });
13123
+
13124
+ _defineProperty$3(this, "execute", (options, callback) => {
13125
+ const types = SUBSCRIPTION_TYPES;
13126
+
13127
+ switch (options.type) {
13128
+ case types.CREATE_SUBSCRIPTION:
13129
+ return _classPrivateFieldGet(this, _createSubscription3).call(this, options, callback);
13130
+
13131
+ default:
13132
+ console.error("Unsupported subscriptiion method: vantiv Gateway");
13133
+ }
13134
+ });
13135
+
13136
+ _createSubscription3.set(this, {
13137
+ writable: true,
13138
+ value: (options, callback) => {
13139
+ const {
13140
+ token,
13141
+ plan,
13142
+ couponCode,
13143
+ product,
13144
+ quantity = 1,
13145
+ addressId
13146
+ } = options;
13147
+ window.Pelcro.subscription.create({
13148
+ quantity,
13149
+ gateway_token: token,
13150
+ payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
13151
+ auth_token: window.Pelcro.user.read().auth_token,
13152
+ plan_id: plan.id,
13153
+ coupon_code: couponCode,
13154
+ address_id: product.address_required ? addressId : null
13155
+ }, (err, res) => {
13156
+ callback(err, res);
13157
+ });
13158
+ }
13159
+ });
13160
+ }
13161
+
13162
+ }
13163
+
13164
+ /**
13165
+ * @typedef {Object} PaymentStateType
13166
+ * @property {boolean} disableSubmit
13167
+ * @property {boolean} isLoading
13168
+ * @property {boolean} disableCouponButton
13169
+ * @property {object} couponObject
13170
+ * @property {string} couponCode
13171
+ * @property {string} couponError
13172
+ * @property {boolean} enableCouponField
13173
+ * @property {string} percentOff
13174
+ * @property {unknown} canMakePayment
13175
+ * @property {unknown} paymentRequest
13176
+ * @property {number} updatedPrice
13177
+ * @property {number} taxAmount
13178
+ * @property {object} currentPlan
13179
+ * @property {object} alert
13180
+ */
13181
+
13182
+ /** @type {PaymentStateType} */
13183
+
13184
+ const initialState$f = {
13185
+ disableSubmit: false,
13186
+ isLoading: false,
13187
+ disableCouponButton: false,
13188
+ couponObject: null,
13189
+ couponCode: "",
13190
+ couponError: "",
13191
+ enableCouponField: false,
13192
+ percentOff: "",
13193
+ canMakePayment: false,
13194
+ paymentRequest: null,
13195
+ updatedPrice: null,
13196
+ taxAmount: null,
13197
+ currentPlan: null,
13198
+ alert: {
13199
+ type: "error",
13200
+ content: ""
13201
+ }
13202
+ };
13203
+ const store$f = /*#__PURE__*/createContext(initialState$f);
13204
+ const {
13205
+ Provider: Provider$f
13206
+ } = store$f;
13223
13207
 
13224
13208
  const PaymentMethodContainerWithoutStripe = ({
13225
13209
  style,
@@ -13264,6 +13248,78 @@ const PaymentMethodContainerWithoutStripe = ({
13264
13248
  updateTotalAmountWithTax();
13265
13249
  }, []);
13266
13250
 
13251
+ function submitVantivPayment() {
13252
+ if (!vantivInstanceRef.current) {
13253
+ return console.error("Vantiv sdk script wasn't loaded, you need to load vantiv sdk before rendering the vantiv payment flow");
13254
+ }
13255
+
13256
+ const orderId = `pelcro-${new Date().getTime()}`; // calls handleVantivPayment
13257
+
13258
+ vantivInstanceRef.current.getPaypageRegistrationId({
13259
+ id: orderId,
13260
+ orderId: orderId
13261
+ });
13262
+ }
13263
+
13264
+ function handleVantivPayment(paymentRequest) {
13265
+ const SUCCESS_STATUS = "870";
13266
+
13267
+ if (paymentRequest.response !== SUCCESS_STATUS) {
13268
+ return handlePaymentError({
13269
+ error: new Error(paymentRequest.message)
13270
+ });
13271
+ }
13272
+
13273
+ const subscription = new Subscription(new VantivGateway());
13274
+ const {
13275
+ couponCode
13276
+ } = state;
13277
+ return subscription.execute({
13278
+ type: SUBSCRIPTION_TYPES.CREATE_SUBSCRIPTION,
13279
+ token: paymentRequest,
13280
+ quantity: plan.quantity,
13281
+ plan,
13282
+ couponCode,
13283
+ product,
13284
+ addressId: selectedAddressId
13285
+ }, (err, res) => {
13286
+ if (err) {
13287
+ return handlePaymentError(err);
13288
+ }
13289
+
13290
+ onSuccess(res);
13291
+ });
13292
+ }
13293
+
13294
+ const vantivInstanceRef = React__default.useRef(null);
13295
+ useEffect(() => {
13296
+ const cardProcessor = getSiteCardProcessor();
13297
+
13298
+ if (cardProcessor === "vantiv") {
13299
+ var _window$Pelcro$site$r;
13300
+
13301
+ const payPageId = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_pay_page_id;
13302
+ vantivInstanceRef.current = new window.EprotectIframeClient({
13303
+ paypageId: payPageId,
13304
+ reportGroup: payPageId,
13305
+ style: "pelcro",
13306
+ height: "245",
13307
+ timeout: 50000,
13308
+ div: "eProtectiframe",
13309
+ callback: handleVantivPayment,
13310
+ showCvv: true,
13311
+ numYears: 8,
13312
+ placeholderText: {
13313
+ cvv: "CVV",
13314
+ accountNumber: "1234 1234 1234 1234"
13315
+ },
13316
+ enhancedUxFeatures: {
13317
+ inlineFieldValidations: true
13318
+ }
13319
+ });
13320
+ }
13321
+ }, []);
13322
+
13267
13323
  const initPaymentRequest = (state, dispatch) => {
13268
13324
  try {
13269
13325
  const paymentRequest = stripe.paymentRequest({
@@ -13334,9 +13390,9 @@ const PaymentMethodContainerWithoutStripe = ({
13334
13390
 
13335
13391
 
13336
13392
  const updateTotalAmountWithTax = () => {
13337
- var _window$Pelcro$site$r;
13393
+ var _window$Pelcro$site$r2;
13338
13394
 
13339
- const taxesEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.taxes_enabled;
13395
+ const taxesEnabled = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.taxes_enabled;
13340
13396
 
13341
13397
  if (taxesEnabled && type === "createPayment") {
13342
13398
  dispatch({
@@ -13686,7 +13742,7 @@ const PaymentMethodContainerWithoutStripe = ({
13686
13742
 
13687
13743
 
13688
13744
  const handlePaypalSubscription = (state, paypalNonce) => {
13689
- const subscription = new Subscription(new PaypalGateWay());
13745
+ const subscription = new Subscription(new PaypalGateway());
13690
13746
  const {
13691
13747
  couponCode
13692
13748
  } = state;
@@ -13981,13 +14037,13 @@ const PaymentMethodContainerWithoutStripe = ({
13981
14037
 
13982
14038
 
13983
14039
  const resolveTaxCalculation = () => {
13984
- var _window$Pelcro$site$r2;
14040
+ var _window$Pelcro$site$r3;
13985
14041
 
13986
14042
  if (type === "invoicePayment") {
13987
14043
  return new Promise(resolve => resolve());
13988
14044
  }
13989
14045
 
13990
- const taxesEnabled = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.taxes_enabled;
14046
+ const taxesEnabled = (_window$Pelcro$site$r3 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r3 === void 0 ? void 0 : _window$Pelcro$site$r3.taxes_enabled;
13991
14047
  return new Promise((resolve, reject) => {
13992
14048
  // resolve early if taxes isn't enabled
13993
14049
  if (!taxesEnabled) {
@@ -14066,6 +14122,8 @@ const PaymentMethodContainerWithoutStripe = ({
14066
14122
  };
14067
14123
 
14068
14124
  const handlePaymentError = error => {
14125
+ var _getErrorMessages;
14126
+
14069
14127
  if (error.type === "validation_error" && // Subscription creation & renewal
14070
14128
  type === "createPayment") {
14071
14129
  var _state$couponObject;
@@ -14084,7 +14142,7 @@ const PaymentMethodContainerWithoutStripe = ({
14084
14142
  type: SHOW_ALERT,
14085
14143
  payload: {
14086
14144
  type: "error",
14087
- content: error === null || error === void 0 ? void 0 : error.message
14145
+ content: (_getErrorMessages = getErrorMessages(error)) !== null && _getErrorMessages !== void 0 ? _getErrorMessages : error === null || error === void 0 ? void 0 : error.message
14088
14146
  }
14089
14147
  });
14090
14148
  dispatch({
@@ -14188,10 +14246,14 @@ const PaymentMethodContainerWithoutStripe = ({
14188
14246
  }
14189
14247
 
14190
14248
  if (type === "updatePaymentSource") {
14191
- updatePaymentSource(state, dispatch);
14192
- } else {
14193
- submitPayment(state);
14249
+ return updatePaymentSource(state, dispatch);
14250
+ }
14251
+
14252
+ if (getSiteCardProcessor() === "vantiv") {
14253
+ return submitVantivPayment();
14194
14254
  }
14255
+
14256
+ submitPayment(state);
14195
14257
  });
14196
14258
 
14197
14259
  case HANDLE_PAYPAL_SUBSCRIPTION:
@@ -14259,21 +14321,21 @@ const PaymentMethodContainerWithoutStripe = ({
14259
14321
  default:
14260
14322
  return state;
14261
14323
  }
14262
- }, initialState$g);
14324
+ }, initialState$f);
14263
14325
  return /*#__PURE__*/React__default.createElement("div", {
14264
14326
  style: { ...style
14265
14327
  },
14266
14328
  className: `pelcro-container pelcro-payment-container ${className}`
14267
- }, /*#__PURE__*/React__default.createElement(Provider$g, {
14329
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
14268
14330
  value: {
14269
14331
  state,
14270
14332
  dispatch
14271
14333
  }
14272
14334
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
14273
- store: store$g,
14335
+ store: store$f,
14274
14336
  key: i
14275
14337
  })) : /*#__PURE__*/React__default.cloneElement(children, {
14276
- store: store$g
14338
+ store: store$f
14277
14339
  })));
14278
14340
  };
14279
14341
 
@@ -14295,7 +14357,7 @@ const PaymentMethodContainer = props => {
14295
14357
  stripeAccount: window.Pelcro.site.read().account_id,
14296
14358
  locale: getPageOrDefaultLanguage()
14297
14359
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
14298
- store: store$g
14360
+ store: store$f
14299
14361
  }, props))));
14300
14362
  }
14301
14363
 
@@ -14348,7 +14410,7 @@ const PelcroPaymentRequestButton = props => {
14348
14410
  currentPlan,
14349
14411
  updatedPrice
14350
14412
  }
14351
- } = useContext(store$g);
14413
+ } = useContext(store$f);
14352
14414
 
14353
14415
  const updatePaymentRequest = () => {
14354
14416
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -14380,19 +14442,35 @@ const CheckoutForm = () => {
14380
14442
  const {
14381
14443
  selectedPaymentMethodId
14382
14444
  } = usePelcro();
14383
- return !selectedPaymentMethodId && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
14384
- autoFocus: true
14385
- }), /*#__PURE__*/React__default.createElement("img", {
14386
- alt: "credit_cards",
14387
- className: "plc-h-4 plc-w-auto plc-mt-2",
14388
- src: "https://js.pelcro.com/ui/plugin/main/images/credit_cards.png"
14389
- }), /*#__PURE__*/React__default.createElement("div", {
14390
- className: "plc-flex plc-justify-between plc-my-2 plc-items-end"
14391
- }, /*#__PURE__*/React__default.createElement("div", {
14392
- className: "plc-w-6/12 plc-pr-4"
14393
- }, /*#__PURE__*/React__default.createElement(PelcroCardExpiry, null)), /*#__PURE__*/React__default.createElement("div", {
14394
- className: "plc-w-6/12 plc-pl-4"
14395
- }, /*#__PURE__*/React__default.createElement(PelcroCardCVC, null))));
14445
+ const cardProcessor = getSiteCardProcessor();
14446
+
14447
+ if (selectedPaymentMethodId) {
14448
+ return null;
14449
+ }
14450
+
14451
+ if (cardProcessor === "vantiv") {
14452
+ return /*#__PURE__*/React__default.createElement("div", {
14453
+ id: "eProtectiframe"
14454
+ });
14455
+ }
14456
+
14457
+ if (cardProcessor === "stripe") {
14458
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(PelcroCardNumber, {
14459
+ autoFocus: true
14460
+ }), /*#__PURE__*/React__default.createElement("img", {
14461
+ alt: "credit_cards",
14462
+ className: "plc-w-auto plc-h-4 plc-mt-2",
14463
+ src: "https://js.pelcro.com/ui/plugin/main/images/credit_cards.png"
14464
+ }), /*#__PURE__*/React__default.createElement("div", {
14465
+ className: "plc-flex plc-items-end plc-justify-between plc-my-2"
14466
+ }, /*#__PURE__*/React__default.createElement("div", {
14467
+ className: "plc-w-6/12 plc-pr-4"
14468
+ }, /*#__PURE__*/React__default.createElement(PelcroCardExpiry, null)), /*#__PURE__*/React__default.createElement("div", {
14469
+ className: "plc-w-6/12 plc-pl-4"
14470
+ }, /*#__PURE__*/React__default.createElement(PelcroCardCVC, null))));
14471
+ }
14472
+
14473
+ return null;
14396
14474
  };
14397
14475
 
14398
14476
  const DiscountedPrice = props => {
@@ -14408,7 +14486,7 @@ const DiscountedPrice = props => {
14408
14486
  taxAmount,
14409
14487
  percentOff
14410
14488
  }
14411
- } = useContext(store$g);
14489
+ } = useContext(store$f);
14412
14490
  const {
14413
14491
  order,
14414
14492
  plan
@@ -14458,7 +14536,7 @@ const SubmitPaymentMethod = ({
14458
14536
  isLoading,
14459
14537
  updatedPrice
14460
14538
  }
14461
- } = useContext(store$g);
14539
+ } = useContext(store$f);
14462
14540
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
14463
14541
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
14464
14542
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -14479,17 +14557,17 @@ const SubmitPaymentMethod = ({
14479
14557
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
14480
14558
  };
14481
14559
 
14482
- var _path$n;
14560
+ var _path$m;
14483
14561
 
14484
- function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
14562
+ function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
14485
14563
 
14486
14564
  function SvgArrowLeft(props) {
14487
- return /*#__PURE__*/React.createElement("svg", _extends$p({
14565
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
14488
14566
  xmlns: "http://www.w3.org/2000/svg",
14489
14567
  fill: "none",
14490
14568
  viewBox: "0 0 24 24",
14491
14569
  stroke: "currentColor"
14492
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
14570
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
14493
14571
  strokeLinecap: "round",
14494
14572
  strokeLinejoin: "round",
14495
14573
  strokeWidth: 2,
@@ -14508,7 +14586,7 @@ const ApplyCouponButton = ({
14508
14586
  disableCouponButton
14509
14587
  },
14510
14588
  dispatch
14511
- } = useContext(store$g);
14589
+ } = useContext(store$f);
14512
14590
  const {
14513
14591
  t
14514
14592
  } = useTranslation("checkoutForm");
@@ -14542,7 +14620,7 @@ const CouponCodeField = props => {
14542
14620
  couponCode,
14543
14621
  couponError
14544
14622
  }
14545
- } = useContext(store$g);
14623
+ } = useContext(store$f);
14546
14624
 
14547
14625
  const onCouponCodeChange = e => {
14548
14626
  dispatch({
@@ -14571,17 +14649,17 @@ const CouponCodeField = props => {
14571
14649
  }, props));
14572
14650
  };
14573
14651
 
14574
- var _path$m;
14652
+ var _path$l;
14575
14653
 
14576
- function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
14654
+ function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
14577
14655
 
14578
14656
  function SvgTicket(props) {
14579
- return /*#__PURE__*/React.createElement("svg", _extends$o({
14657
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
14580
14658
  xmlns: "http://www.w3.org/2000/svg",
14581
14659
  fill: "none",
14582
14660
  viewBox: "0 0 24 24",
14583
14661
  stroke: "currentColor"
14584
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
14662
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
14585
14663
  strokeLinecap: "round",
14586
14664
  strokeLinejoin: "round",
14587
14665
  strokeWidth: 2,
@@ -14598,7 +14676,7 @@ const CouponCode = ({
14598
14676
  state: {
14599
14677
  enableCouponField
14600
14678
  }
14601
- } = useContext(store$g);
14679
+ } = useContext(store$f);
14602
14680
  const {
14603
14681
  t
14604
14682
  } = useTranslation("checkoutForm");
@@ -14855,7 +14933,7 @@ const PaypalSubscribeButton = props => {
14855
14933
  const {
14856
14934
  dispatch,
14857
14935
  state
14858
- } = useContext(store$g);
14936
+ } = useContext(store$f);
14859
14937
  const {
14860
14938
  product,
14861
14939
  plan,
@@ -14941,16 +15019,16 @@ const BankRedirection = () => {
14941
15019
  }));
14942
15020
  };
14943
15021
 
14944
- var _path$l;
15022
+ var _path$k;
14945
15023
 
14946
- function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
15024
+ function _extends$m() { _extends$m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
14947
15025
 
14948
15026
  function SvgLock(props) {
14949
- return /*#__PURE__*/React.createElement("svg", _extends$n({
15027
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
14950
15028
  xmlns: "http://www.w3.org/2000/svg",
14951
15029
  viewBox: "0 0 20 20",
14952
15030
  fill: "currentColor"
14953
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
15031
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
14954
15032
  fillRule: "evenodd",
14955
15033
  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",
14956
15034
  clipRule: "evenodd"
@@ -14967,7 +15045,7 @@ const SelectedPaymentMethod = () => {
14967
15045
  state: {
14968
15046
  isLoading
14969
15047
  }
14970
- } = useContext(store$g);
15048
+ } = useContext(store$f);
14971
15049
  const {
14972
15050
  switchView,
14973
15051
  selectedPaymentMethodId
@@ -15009,7 +15087,7 @@ const TaxAmount = () => {
15009
15087
  state: {
15010
15088
  taxAmount
15011
15089
  }
15012
- } = useContext(store$g);
15090
+ } = useContext(store$f);
15013
15091
  const {
15014
15092
  plan
15015
15093
  } = usePelcro();
@@ -15042,9 +15120,10 @@ function PaymentMethodView({
15042
15120
  const {
15043
15121
  t
15044
15122
  } = useTranslation("checkoutForm");
15123
+ const cardProcessor = getSiteCardProcessor();
15045
15124
  return /*#__PURE__*/React__default.createElement("div", {
15046
15125
  className: "plc-flex plc-flex-col plc-items-center plc-mt-4 sm:plc-px-8 pelcro-payment-block"
15047
- }, /*#__PURE__*/React__default.createElement("div", {
15126
+ }, cardProcessor === "stripe" && /*#__PURE__*/React__default.createElement("div", {
15048
15127
  className: "plc-flex plc-items-center plc-w-full plc-px-4 plc-py-2 plc-text-center plc-text-green-600 plc-border plc-border-green-400 plc-rounded plc-bg-green-50"
15049
15128
  }, /*#__PURE__*/React__default.createElement(SvgLock, {
15050
15129
  className: "plc-w-5 plc-h-5 plc-mr-1"
@@ -15172,12 +15251,12 @@ function SubscriptionRenewModal({
15172
15251
  }
15173
15252
  SubscriptionRenewModal.viewId = "subscription-renew";
15174
15253
 
15175
- var _path$k;
15254
+ var _path$j;
15176
15255
 
15177
- function _extends$m() { _extends$m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
15256
+ function _extends$l() { _extends$l = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
15178
15257
 
15179
15258
  function SvgGift(props) {
15180
- return /*#__PURE__*/React.createElement("svg", _extends$m({
15259
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
15181
15260
  className: "plc-w-6 plc-h-6 plc-mr-2",
15182
15261
  fill: "none",
15183
15262
  stroke: "currentColor",
@@ -15186,7 +15265,7 @@ function SvgGift(props) {
15186
15265
  strokeWidth: 2,
15187
15266
  viewBox: "0 0 24 24",
15188
15267
  xmlns: "http://www.w3.org/2000/svg"
15189
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
15268
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
15190
15269
  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"
15191
15270
  })));
15192
15271
  }
@@ -15273,7 +15352,7 @@ const getSuccessContent = i18n => {
15273
15352
  className: "plc-w-32 plc-my-4 plc-text-green-500"
15274
15353
  }),
15275
15354
  successTitle: i18n("messages.invoicePayment.title"),
15276
- successContent: i18n("messages.invoicePayment.title")
15355
+ successContent: i18n("messages.invoicePayment.content")
15277
15356
  }
15278
15357
  };
15279
15358
  return wordingDictionary[flow];
@@ -15527,7 +15606,7 @@ class DefaultNewsLetter extends Component {
15527
15606
 
15528
15607
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
15529
15608
 
15530
- const initialState$f = {
15609
+ const initialState$e = {
15531
15610
  didSubToNewslettersBefore: false,
15532
15611
  newsletters: [],
15533
15612
  isListLoading: true,
@@ -15537,10 +15616,10 @@ const initialState$f = {
15537
15616
  content: ""
15538
15617
  }
15539
15618
  };
15540
- const store$f = /*#__PURE__*/createContext(initialState$f);
15619
+ const store$e = /*#__PURE__*/createContext(initialState$e);
15541
15620
  const {
15542
- Provider: Provider$f
15543
- } = store$f;
15621
+ Provider: Provider$e
15622
+ } = store$e;
15544
15623
 
15545
15624
  const NewsletterUpdateContainer = ({
15546
15625
  style,
@@ -15653,7 +15732,7 @@ const NewsletterUpdateContainer = ({
15653
15732
  default:
15654
15733
  return state;
15655
15734
  }
15656
- }, initialState$f);
15735
+ }, initialState$e);
15657
15736
  useEffect(() => {
15658
15737
  const getUserNewsletters = () => {
15659
15738
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -15697,7 +15776,7 @@ const NewsletterUpdateContainer = ({
15697
15776
  style: { ...style
15698
15777
  },
15699
15778
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
15700
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
15779
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
15701
15780
  value: {
15702
15781
  state,
15703
15782
  dispatch
@@ -15705,12 +15784,12 @@ const NewsletterUpdateContainer = ({
15705
15784
  }, children.length ? children.map((child, i) => {
15706
15785
  if (child) {
15707
15786
  return /*#__PURE__*/React__default.cloneElement(child, {
15708
- store: store$f,
15787
+ store: store$e,
15709
15788
  key: i
15710
15789
  });
15711
15790
  }
15712
15791
  }) : /*#__PURE__*/React__default.cloneElement(children, {
15713
- store: store$f
15792
+ store: store$e
15714
15793
  })));
15715
15794
  };
15716
15795
 
@@ -15725,7 +15804,7 @@ const NewsletterUpdateButton = ({
15725
15804
  isSubmitting,
15726
15805
  isListLoading
15727
15806
  }
15728
- } = useContext(store$f);
15807
+ } = useContext(store$e);
15729
15808
  const {
15730
15809
  t
15731
15810
  } = useTranslation("newsletter");
@@ -15755,7 +15834,7 @@ const NewsletterUpdateList = () => {
15755
15834
  newsletters,
15756
15835
  isListLoading
15757
15836
  }
15758
- } = useContext(store$f);
15837
+ } = useContext(store$e);
15759
15838
 
15760
15839
  if (isListLoading) {
15761
15840
  return /*#__PURE__*/React__default.createElement(Loader, {
@@ -15959,7 +16038,7 @@ function SubscriptionCreateModal({
15959
16038
  SubscriptionCreateModal.viewId = "subscription-create";
15960
16039
 
15961
16040
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
15962
- const initialState$e = {
16041
+ const initialState$d = {
15963
16042
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
15964
16043
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
15965
16044
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -15972,10 +16051,10 @@ const initialState$e = {
15972
16051
  content: ""
15973
16052
  }
15974
16053
  };
15975
- const store$e = /*#__PURE__*/createContext(initialState$e);
16054
+ const store$d = /*#__PURE__*/createContext(initialState$d);
15976
16055
  const {
15977
- Provider: Provider$e
15978
- } = store$e;
16056
+ Provider: Provider$d
16057
+ } = store$d;
15979
16058
 
15980
16059
  const UserUpdateContainer = ({
15981
16060
  style,
@@ -16107,27 +16186,27 @@ const UserUpdateContainer = ({
16107
16186
  default:
16108
16187
  return state;
16109
16188
  }
16110
- }, initialState$e);
16189
+ }, initialState$d);
16111
16190
  return /*#__PURE__*/React__default.createElement("div", {
16112
16191
  style: { ...style
16113
16192
  },
16114
16193
  className: `pelcro-container pelcro-user-update-container ${className}`
16115
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
16194
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
16116
16195
  value: {
16117
16196
  state,
16118
16197
  dispatch
16119
16198
  }
16120
16199
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16121
- store: store$e,
16200
+ store: store$d,
16122
16201
  key: i
16123
16202
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16124
- store: store$e
16203
+ store: store$d
16125
16204
  })));
16126
16205
  };
16127
16206
 
16128
16207
  const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
16129
16208
  disabled: true,
16130
- store: store$e
16209
+ store: store$d
16131
16210
  }, props));
16132
16211
 
16133
16212
  const UserUpdateButton = ({
@@ -16140,7 +16219,7 @@ const UserUpdateButton = ({
16140
16219
  buttonDisabled
16141
16220
  },
16142
16221
  dispatch
16143
- } = useContext(store$e);
16222
+ } = useContext(store$d);
16144
16223
  const {
16145
16224
  t
16146
16225
  } = useTranslation("userEdit");
@@ -16157,11 +16236,11 @@ const UserUpdateButton = ({
16157
16236
  };
16158
16237
 
16159
16238
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
16160
- store: store$e
16239
+ store: store$d
16161
16240
  }, props));
16162
16241
 
16163
16242
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
16164
- store: store$e
16243
+ store: store$d
16165
16244
  }, props));
16166
16245
 
16167
16246
  function Phone({
@@ -16190,22 +16269,22 @@ function Phone({
16190
16269
  }
16191
16270
 
16192
16271
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
16193
- store: store$e
16272
+ store: store$d
16194
16273
  }, props));
16195
16274
 
16196
16275
  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";
16197
16276
 
16198
- var _path$j;
16277
+ var _path$i;
16199
16278
 
16200
- function _extends$l() { _extends$l = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
16279
+ function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
16201
16280
 
16202
16281
  function SvgEdit(props) {
16203
- return /*#__PURE__*/React.createElement("svg", _extends$l({
16282
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
16204
16283
  className: "plc-w-6 plc-h-6",
16205
16284
  xmlns: "http://www.w3.org/2000/svg",
16206
16285
  viewBox: "0 0 20 20",
16207
16286
  fill: "currentColor"
16208
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
16287
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
16209
16288
  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"
16210
16289
  })));
16211
16290
  }
@@ -16337,16 +16416,16 @@ function DisplayName({
16337
16416
  }
16338
16417
 
16339
16418
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
16340
- store: store$e
16419
+ store: store$d
16341
16420
  }, props));
16342
16421
 
16343
16422
  const UserUpdateTextInput = props => {
16344
16423
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
16345
- store: store$e
16424
+ store: store$d
16346
16425
  }));
16347
16426
  };
16348
16427
 
16349
- const initialState$d = {
16428
+ const initialState$c = {
16350
16429
  isSubmitting: false,
16351
16430
  firstName: "",
16352
16431
  firstNameError: "",
@@ -16371,10 +16450,10 @@ const initialState$d = {
16371
16450
  content: ""
16372
16451
  }
16373
16452
  };
16374
- const store$d = /*#__PURE__*/createContext(initialState$d);
16453
+ const store$c = /*#__PURE__*/createContext(initialState$c);
16375
16454
  const {
16376
- Provider: Provider$d
16377
- } = store$d;
16455
+ Provider: Provider$c
16456
+ } = store$c;
16378
16457
 
16379
16458
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
16380
16459
 
@@ -16581,7 +16660,7 @@ const AddressCreateContainer = ({
16581
16660
  default:
16582
16661
  return state;
16583
16662
  }
16584
- }, initialState$d);
16663
+ }, initialState$c);
16585
16664
  useEffect(() => {
16586
16665
  const getStates = () => {
16587
16666
  dispatch({
@@ -16613,16 +16692,16 @@ const AddressCreateContainer = ({
16613
16692
  style: { ...style
16614
16693
  },
16615
16694
  className: `pelcro-container pelcro-address-create-container ${className}`
16616
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
16695
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
16617
16696
  value: {
16618
16697
  state,
16619
16698
  dispatch
16620
16699
  }
16621
16700
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16622
- store: store$d,
16701
+ store: store$c,
16623
16702
  key: i
16624
16703
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16625
- store: store$d
16704
+ store: store$c
16626
16705
  })));
16627
16706
  };
16628
16707
 
@@ -16633,7 +16712,7 @@ function AddressCreateFirstName(props) {
16633
16712
  firstName,
16634
16713
  firstNameError
16635
16714
  }
16636
- } = useContext(store$d);
16715
+ } = useContext(store$c);
16637
16716
 
16638
16717
  const handleBlur = () => {
16639
16718
  return dispatch({
@@ -16676,7 +16755,7 @@ function AddressCreateLastName(props) {
16676
16755
  lastName,
16677
16756
  lastNameError
16678
16757
  }
16679
- } = useContext(store$d);
16758
+ } = useContext(store$c);
16680
16759
 
16681
16760
  const handleBlur = () => {
16682
16761
  return dispatch({
@@ -16719,7 +16798,7 @@ function AddressCreateLine1(props) {
16719
16798
  line1,
16720
16799
  line1Error
16721
16800
  }
16722
- } = useContext(store$d);
16801
+ } = useContext(store$c);
16723
16802
 
16724
16803
  const handleBlur = () => {
16725
16804
  return dispatch({
@@ -16762,7 +16841,7 @@ function AddressCreateCity(props) {
16762
16841
  city,
16763
16842
  cityError
16764
16843
  }
16765
- } = useContext(store$d);
16844
+ } = useContext(store$c);
16766
16845
 
16767
16846
  const handleBlur = () => {
16768
16847
  return dispatch({
@@ -16805,7 +16884,7 @@ function AddressCreatePostalCode(props) {
16805
16884
  postalCode,
16806
16885
  postalCodeError
16807
16886
  }
16808
- } = useContext(store$d);
16887
+ } = useContext(store$c);
16809
16888
 
16810
16889
  const handleBlur = () => {
16811
16890
  return dispatch({
@@ -16851,7 +16930,7 @@ const AddressCreateSubmit = ({
16851
16930
  state: {
16852
16931
  isSubmitting
16853
16932
  }
16854
- } = useContext(store$d);
16933
+ } = useContext(store$c);
16855
16934
  const {
16856
16935
  t
16857
16936
  } = useTranslation("address");
@@ -16962,7 +17041,7 @@ function CountrySelect({
16962
17041
  }
16963
17042
 
16964
17043
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
16965
- store: store$d
17044
+ store: store$c
16966
17045
  }, props));
16967
17046
 
16968
17047
  function StateSelect({
@@ -17050,7 +17129,7 @@ function StateSelect({
17050
17129
  }
17051
17130
 
17052
17131
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17053
- store: store$d
17132
+ store: store$c
17054
17133
  }, props));
17055
17134
 
17056
17135
  const AddressCreateView = props => {
@@ -17155,18 +17234,18 @@ AddressCreateModal.viewId = "address-create";
17155
17234
 
17156
17235
  const AddressCreateTextInput = props => {
17157
17236
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17158
- store: store$d
17237
+ store: store$c
17159
17238
  }));
17160
17239
  };
17161
17240
 
17162
17241
  const AddressCreateLine2 = props => {
17163
17242
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17164
17243
  fieldName: "line2",
17165
- store: store$d
17244
+ store: store$c
17166
17245
  }, props));
17167
17246
  };
17168
17247
 
17169
- const initialState$c = {
17248
+ const initialState$b = {
17170
17249
  isSubmitting: false,
17171
17250
  firstName: "",
17172
17251
  firstNameError: "",
@@ -17191,10 +17270,10 @@ const initialState$c = {
17191
17270
  content: ""
17192
17271
  }
17193
17272
  };
17194
- const store$c = /*#__PURE__*/createContext(initialState$c);
17273
+ const store$b = /*#__PURE__*/createContext(initialState$b);
17195
17274
  const {
17196
- Provider: Provider$c
17197
- } = store$c;
17275
+ Provider: Provider$b
17276
+ } = store$b;
17198
17277
 
17199
17278
  const AddressUpdateContainer = ({
17200
17279
  style,
@@ -17246,7 +17325,7 @@ const AddressUpdateContainer = ({
17246
17325
  const thisAddress = addresses[address];
17247
17326
 
17248
17327
  if (+thisAddress.id === +addressId) {
17249
- const newState = { ...initialState$c,
17328
+ const newState = { ...initialState$b,
17250
17329
  firstName: thisAddress.first_name,
17251
17330
  lastName: thisAddress.last_name,
17252
17331
  line1: thisAddress.line1,
@@ -17379,7 +17458,7 @@ const AddressUpdateContainer = ({
17379
17458
  default:
17380
17459
  return state;
17381
17460
  }
17382
- }, initialState$c);
17461
+ }, initialState$b);
17383
17462
  useEffect(() => {
17384
17463
  const getStates = () => {
17385
17464
  dispatch({
@@ -17411,21 +17490,21 @@ const AddressUpdateContainer = ({
17411
17490
  style: { ...style
17412
17491
  },
17413
17492
  className: `pelcro-container pelcro-address-update-container ${className}`
17414
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
17493
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
17415
17494
  value: {
17416
17495
  state,
17417
17496
  dispatch
17418
17497
  }
17419
17498
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17420
- store: store$c,
17499
+ store: store$b,
17421
17500
  key: i
17422
17501
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17423
- store: store$c
17502
+ store: store$b
17424
17503
  })));
17425
17504
  };
17426
17505
 
17427
17506
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
17428
- store: store$c
17507
+ store: store$b
17429
17508
  }, props));
17430
17509
 
17431
17510
  function AddressUpdateFirstName(props) {
@@ -17435,7 +17514,7 @@ function AddressUpdateFirstName(props) {
17435
17514
  firstName,
17436
17515
  firstNameError
17437
17516
  }
17438
- } = useContext(store$c);
17517
+ } = useContext(store$b);
17439
17518
 
17440
17519
  const handleBlur = () => {
17441
17520
  return dispatch({
@@ -17478,7 +17557,7 @@ function AddressUpdateLastName(props) {
17478
17557
  lastName,
17479
17558
  lastNameError
17480
17559
  }
17481
- } = useContext(store$c);
17560
+ } = useContext(store$b);
17482
17561
 
17483
17562
  const handleBlur = () => {
17484
17563
  return dispatch({
@@ -17521,7 +17600,7 @@ function AddressUpdateLine1(props) {
17521
17600
  line1,
17522
17601
  line1Error
17523
17602
  }
17524
- } = useContext(store$c);
17603
+ } = useContext(store$b);
17525
17604
 
17526
17605
  const handleBlur = () => {
17527
17606
  return dispatch({
@@ -17561,7 +17640,7 @@ const AddressUpdateLine2 = props => {
17561
17640
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17562
17641
  fieldName: "line2"
17563
17642
  }, props, {
17564
- store: store$c
17643
+ store: store$b
17565
17644
  }));
17566
17645
  };
17567
17646
 
@@ -17572,7 +17651,7 @@ function AddressUpdateCity(props) {
17572
17651
  city,
17573
17652
  cityError
17574
17653
  }
17575
- } = useContext(store$c);
17654
+ } = useContext(store$b);
17576
17655
 
17577
17656
  const handleBlur = () => {
17578
17657
  return dispatch({
@@ -17615,7 +17694,7 @@ function AddressUpdatePostalCode(props) {
17615
17694
  postalCode,
17616
17695
  postalCodeError
17617
17696
  }
17618
- } = useContext(store$c);
17697
+ } = useContext(store$b);
17619
17698
 
17620
17699
  const handleBlur = () => {
17621
17700
  return dispatch({
@@ -17661,7 +17740,7 @@ const AddressUpdateSubmit = ({
17661
17740
  state: {
17662
17741
  isSubmitting
17663
17742
  }
17664
- } = useContext(store$c);
17743
+ } = useContext(store$b);
17665
17744
  const {
17666
17745
  t
17667
17746
  } = useTranslation("address");
@@ -17677,7 +17756,7 @@ const AddressUpdateSubmit = ({
17677
17756
  };
17678
17757
 
17679
17758
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17680
- store: store$c
17759
+ store: store$b
17681
17760
  }, props));
17682
17761
 
17683
17762
  const AddressUpdateView = props => {
@@ -17760,7 +17839,7 @@ AddressUpdateModal.viewId = "address-edit";
17760
17839
 
17761
17840
  const AddressUpdateTextInput = props => {
17762
17841
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17763
- store: store$c
17842
+ store: store$b
17764
17843
  }));
17765
17844
  };
17766
17845
 
@@ -17843,7 +17922,7 @@ const PaymentMethodUpdateModal = props => {
17843
17922
  };
17844
17923
  PaymentMethodUpdateModal.viewId = "payment-method-update";
17845
17924
 
17846
- const initialState$b = {
17925
+ const initialState$a = {
17847
17926
  email: "",
17848
17927
  password: "",
17849
17928
  passwordError: null,
@@ -17856,10 +17935,10 @@ const initialState$b = {
17856
17935
  content: ""
17857
17936
  }
17858
17937
  };
17859
- const store$b = /*#__PURE__*/createContext(initialState$b);
17938
+ const store$a = /*#__PURE__*/createContext(initialState$a);
17860
17939
  const {
17861
- Provider: Provider$b
17862
- } = store$b;
17940
+ Provider: Provider$a
17941
+ } = store$a;
17863
17942
 
17864
17943
  const PasswordResetContainer = ({
17865
17944
  style,
@@ -17916,7 +17995,7 @@ const PasswordResetContainer = ({
17916
17995
  type: SET_EMAIL,
17917
17996
  payload: window.Pelcro.helpers.getURLParameter("email")
17918
17997
  });
17919
- initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
17998
+ initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
17920
17999
  dispatch({
17921
18000
  type: SET_TOKEN,
17922
18001
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -17976,26 +18055,26 @@ const PasswordResetContainer = ({
17976
18055
  default:
17977
18056
  return state;
17978
18057
  }
17979
- }, initialState$b);
18058
+ }, initialState$a);
17980
18059
  return /*#__PURE__*/React__default.createElement("div", {
17981
18060
  style: { ...style
17982
18061
  },
17983
18062
  className: `pelcro-container pelcro-password-reset-container ${className}`
17984
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
18063
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
17985
18064
  value: {
17986
18065
  state,
17987
18066
  dispatch
17988
18067
  }
17989
18068
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17990
- store: store$b,
18069
+ store: store$a,
17991
18070
  key: i
17992
18071
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17993
- store: store$b
18072
+ store: store$a
17994
18073
  })));
17995
18074
  };
17996
18075
 
17997
18076
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
17998
- store: store$b
18077
+ store: store$a
17999
18078
  }, props));
18000
18079
 
18001
18080
  const PasswordResetButton = ({
@@ -18008,7 +18087,7 @@ const PasswordResetButton = ({
18008
18087
  buttonDisabled
18009
18088
  },
18010
18089
  dispatch
18011
- } = useContext(store$b);
18090
+ } = useContext(store$a);
18012
18091
  const {
18013
18092
  t
18014
18093
  } = useTranslation("passwordReset");
@@ -18025,14 +18104,14 @@ const PasswordResetButton = ({
18025
18104
  };
18026
18105
 
18027
18106
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18028
- store: store$b
18107
+ store: store$a
18029
18108
  }, props, {
18030
18109
  value: window.Pelcro.helpers.getURLParameter("email"),
18031
18110
  disabled: true
18032
18111
  }));
18033
18112
 
18034
18113
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
18035
- store: store$b
18114
+ store: store$a
18036
18115
  }, props));
18037
18116
 
18038
18117
  const PasswordResetView = props => {
@@ -18084,7 +18163,7 @@ const PasswordResetModal = ({
18084
18163
  };
18085
18164
  PasswordResetModal.viewId = "password-reset";
18086
18165
 
18087
- const initialState$a = {
18166
+ const initialState$9 = {
18088
18167
  email: "",
18089
18168
  emailError: null,
18090
18169
  buttonDisabled: false,
@@ -18093,10 +18172,10 @@ const initialState$a = {
18093
18172
  content: ""
18094
18173
  }
18095
18174
  };
18096
- const store$a = /*#__PURE__*/createContext(initialState$a);
18175
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
18097
18176
  const {
18098
- Provider: Provider$a
18099
- } = store$a;
18177
+ Provider: Provider$9
18178
+ } = store$9;
18100
18179
 
18101
18180
  const PasswordForgotContainer = ({
18102
18181
  style,
@@ -18174,21 +18253,21 @@ const PasswordForgotContainer = ({
18174
18253
  default:
18175
18254
  return state;
18176
18255
  }
18177
- }, initialState$a);
18256
+ }, initialState$9);
18178
18257
  return /*#__PURE__*/React__default.createElement("div", {
18179
18258
  style: { ...style
18180
18259
  },
18181
18260
  className: `pelcro-container pelcro-password-forgot-container ${className}`
18182
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
18261
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
18183
18262
  value: {
18184
18263
  state,
18185
18264
  dispatch
18186
18265
  }
18187
18266
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18188
- store: store$a,
18267
+ store: store$9,
18189
18268
  key: i
18190
18269
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18191
- store: store$a
18270
+ store: store$9
18192
18271
  })));
18193
18272
  };
18194
18273
 
@@ -18204,7 +18283,7 @@ const PasswordForgotButton = ({
18204
18283
  emailError
18205
18284
  },
18206
18285
  dispatch
18207
- } = useContext(store$a);
18286
+ } = useContext(store$9);
18208
18287
  const {
18209
18288
  t
18210
18289
  } = useTranslation("passwordForgot");
@@ -18225,7 +18304,7 @@ const PasswordForgotButton = ({
18225
18304
  };
18226
18305
 
18227
18306
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18228
- store: store$a
18307
+ store: store$9
18229
18308
  }, props));
18230
18309
 
18231
18310
  const PasswordForgotView = props => {
@@ -18275,7 +18354,7 @@ const PasswordForgotModal = ({
18275
18354
  };
18276
18355
  PasswordForgotModal.viewId = "password-forgot";
18277
18356
 
18278
- const initialState$9 = {
18357
+ const initialState$8 = {
18279
18358
  currentPassword: "",
18280
18359
  newPassword: "",
18281
18360
  confirmNewPassword: "",
@@ -18289,10 +18368,10 @@ const initialState$9 = {
18289
18368
  content: ""
18290
18369
  }
18291
18370
  };
18292
- const store$9 = /*#__PURE__*/createContext(initialState$9);
18371
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
18293
18372
  const {
18294
- Provider: Provider$9
18295
- } = store$9;
18373
+ Provider: Provider$8
18374
+ } = store$8;
18296
18375
  const PasswordChangeContainer = ({
18297
18376
  style,
18298
18377
  className = "",
@@ -18444,21 +18523,21 @@ const PasswordChangeContainer = ({
18444
18523
  default:
18445
18524
  return state;
18446
18525
  }
18447
- }, initialState$9);
18526
+ }, initialState$8);
18448
18527
  return /*#__PURE__*/React__default.createElement("div", {
18449
18528
  style: { ...style
18450
18529
  },
18451
18530
  className: `pelcro-container pelcro-password-change-container ${className}`
18452
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
18531
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
18453
18532
  value: {
18454
18533
  state,
18455
18534
  dispatch
18456
18535
  }
18457
18536
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18458
- store: store$9,
18537
+ store: store$8,
18459
18538
  key: i
18460
18539
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18461
- store: store$9
18540
+ store: store$8
18462
18541
  })));
18463
18542
  };
18464
18543
 
@@ -18469,7 +18548,7 @@ function PasswordChangeCurrentPassword(props) {
18469
18548
  currentPassword,
18470
18549
  currentPasswordError
18471
18550
  }
18472
- } = useContext(store$9);
18551
+ } = useContext(store$8);
18473
18552
  const handleBlur = useCallback(() => {
18474
18553
  return dispatch({
18475
18554
  type: VALIDATE_PASSWORD
@@ -18503,7 +18582,7 @@ function PasswordChangeNewPassword(props) {
18503
18582
  newPassword,
18504
18583
  newPasswordError
18505
18584
  }
18506
- } = useContext(store$9);
18585
+ } = useContext(store$8);
18507
18586
  const handleBlur = useCallback(() => {
18508
18587
  return dispatch({
18509
18588
  type: VALIDATE_NEW_PASSWORD
@@ -18537,7 +18616,7 @@ function PasswordChangeConfirmNewPassword(props) {
18537
18616
  confirmNewPassword,
18538
18617
  confirmNewPasswordError
18539
18618
  }
18540
- } = useContext(store$9);
18619
+ } = useContext(store$8);
18541
18620
  const handleBlur = useCallback(() => {
18542
18621
  return dispatch({
18543
18622
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -18578,7 +18657,7 @@ const PasswordChangeButton = ({
18578
18657
  confirmNewPasswordError
18579
18658
  },
18580
18659
  dispatch
18581
- } = useContext(store$9);
18660
+ } = useContext(store$8);
18582
18661
  const {
18583
18662
  t
18584
18663
  } = useTranslation("passwordChange");
@@ -18644,17 +18723,17 @@ const PasswordChangeModal = ({
18644
18723
  };
18645
18724
  PasswordChangeModal.viewId = "password-change";
18646
18725
 
18647
- const initialState$8 = {
18726
+ const initialState$7 = {
18648
18727
  buttonDisabled: false,
18649
18728
  alert: {
18650
18729
  type: "error",
18651
18730
  content: ""
18652
18731
  }
18653
18732
  };
18654
- const store$8 = /*#__PURE__*/createContext(initialState$8);
18733
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
18655
18734
  const {
18656
- Provider: Provider$8
18657
- } = store$8;
18735
+ Provider: Provider$7
18736
+ } = store$7;
18658
18737
 
18659
18738
  const CartContainer = ({
18660
18739
  style,
@@ -18745,21 +18824,21 @@ const CartContainer = ({
18745
18824
  default:
18746
18825
  return state;
18747
18826
  }
18748
- }, initialState$8);
18827
+ }, initialState$7);
18749
18828
  return /*#__PURE__*/React__default.createElement("div", {
18750
18829
  style: { ...style
18751
18830
  },
18752
18831
  className: `pelcro-container pelcro-cart-container ${className}`
18753
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
18832
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
18754
18833
  value: {
18755
18834
  state,
18756
18835
  dispatch
18757
18836
  }
18758
18837
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18759
- store: store$8,
18838
+ store: store$7,
18760
18839
  key: i
18761
18840
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18762
- store: store$8
18841
+ store: store$7
18763
18842
  })));
18764
18843
  };
18765
18844
 
@@ -18796,7 +18875,7 @@ const CartSubmit = ({
18796
18875
  buttonDisabled
18797
18876
  },
18798
18877
  dispatch
18799
- } = useContext(store$8);
18878
+ } = useContext(store$7);
18800
18879
  const {
18801
18880
  t
18802
18881
  } = useTranslation("cart");
@@ -18827,7 +18906,7 @@ const CartTotalPrice = () => {
18827
18906
  state: {
18828
18907
  alert
18829
18908
  }
18830
- } = useContext(store$8);
18909
+ } = useContext(store$7);
18831
18910
  const {
18832
18911
  cartItems
18833
18912
  } = usePelcro();
@@ -19140,7 +19219,7 @@ const OrderConfirmModal = props => {
19140
19219
  };
19141
19220
  OrderConfirmModal.viewId = "order-confirm";
19142
19221
 
19143
- const initialState$7 = {
19222
+ const initialState$6 = {
19144
19223
  email: "",
19145
19224
  firstName: "",
19146
19225
  lastName: "",
@@ -19152,10 +19231,10 @@ const initialState$7 = {
19152
19231
  content: ""
19153
19232
  }
19154
19233
  };
19155
- const store$7 = /*#__PURE__*/createContext(initialState$7);
19234
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
19156
19235
  const {
19157
- Provider: Provider$7
19158
- } = store$7;
19236
+ Provider: Provider$6
19237
+ } = store$6;
19159
19238
 
19160
19239
  const GiftCreateContainer = ({
19161
19240
  style,
@@ -19259,21 +19338,21 @@ const GiftCreateContainer = ({
19259
19338
  default:
19260
19339
  return state;
19261
19340
  }
19262
- }, initialState$7);
19341
+ }, initialState$6);
19263
19342
  return /*#__PURE__*/React__default.createElement("div", {
19264
19343
  style: { ...style
19265
19344
  },
19266
19345
  className: `pelcro-container pelcro-gift-create-container ${className}`
19267
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
19346
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
19268
19347
  value: {
19269
19348
  state,
19270
19349
  dispatch
19271
19350
  }
19272
19351
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19273
- store: store$7,
19352
+ store: store$6,
19274
19353
  key: i
19275
19354
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19276
- store: store$7
19355
+ store: store$6
19277
19356
  })));
19278
19357
  };
19279
19358
 
@@ -19287,7 +19366,7 @@ const GiftCreateSubmitButton = ({
19287
19366
  state: {
19288
19367
  disableSubmit
19289
19368
  }
19290
- } = useContext(store$7);
19369
+ } = useContext(store$6);
19291
19370
  const {
19292
19371
  t
19293
19372
  } = useTranslation("register");
@@ -19304,29 +19383,29 @@ const GiftCreateSubmitButton = ({
19304
19383
 
19305
19384
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
19306
19385
  initWithUserEmail: false,
19307
- store: store$7
19386
+ store: store$6
19308
19387
  }, props));
19309
19388
 
19310
19389
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
19311
- store: store$7
19390
+ store: store$6
19312
19391
  }, props));
19313
19392
 
19314
19393
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
19315
- store: store$7
19394
+ store: store$6
19316
19395
  }, props));
19317
19396
 
19318
- var _path$i;
19397
+ var _path$h;
19319
19398
 
19320
- function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
19399
+ function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
19321
19400
 
19322
19401
  function SvgInfoCircle(props) {
19323
- return /*#__PURE__*/React.createElement("svg", _extends$k({
19402
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
19324
19403
  xmlns: "http://www.w3.org/2000/svg",
19325
19404
  className: "plc-w-5 plc-h-5",
19326
19405
  fill: "none",
19327
19406
  viewBox: "0 0 24 24",
19328
19407
  stroke: "currentColor"
19329
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
19408
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
19330
19409
  strokeLinecap: "round",
19331
19410
  strokeLinejoin: "round",
19332
19411
  strokeWidth: 2,
@@ -19397,7 +19476,7 @@ const GiftCreateStartDate = props => {
19397
19476
  const {
19398
19477
  dispatch,
19399
19478
  state
19400
- } = useContext(store$7);
19479
+ } = useContext(store$6);
19401
19480
 
19402
19481
  const handleInputChange = value => {
19403
19482
  dispatch({
@@ -19470,7 +19549,7 @@ function GiftCreateMessage(props) {
19470
19549
  const {
19471
19550
  dispatch,
19472
19551
  state
19473
- } = useContext(store$7);
19552
+ } = useContext(store$6);
19474
19553
  const MAX_CHARS_COUNT = 200;
19475
19554
  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;
19476
19555
 
@@ -19594,7 +19673,7 @@ const GiftCreateModal = ({
19594
19673
  };
19595
19674
  GiftCreateModal.viewId = "gift-create";
19596
19675
 
19597
- const initialState$6 = {
19676
+ const initialState$5 = {
19598
19677
  giftCode: "",
19599
19678
  buttonDisabled: true,
19600
19679
  alert: {
@@ -19602,10 +19681,10 @@ const initialState$6 = {
19602
19681
  content: ""
19603
19682
  }
19604
19683
  };
19605
- const store$6 = /*#__PURE__*/createContext(initialState$6);
19684
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
19606
19685
  const {
19607
- Provider: Provider$6
19608
- } = store$6;
19686
+ Provider: Provider$5
19687
+ } = store$5;
19609
19688
 
19610
19689
  const GiftRedeemContainer = ({
19611
19690
  style,
@@ -19670,21 +19749,21 @@ const GiftRedeemContainer = ({
19670
19749
  default:
19671
19750
  return state;
19672
19751
  }
19673
- }, initialState$6);
19752
+ }, initialState$5);
19674
19753
  return /*#__PURE__*/React__default.createElement("div", {
19675
19754
  style: { ...style
19676
19755
  },
19677
19756
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
19678
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
19757
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
19679
19758
  value: {
19680
19759
  state,
19681
19760
  dispatch
19682
19761
  }
19683
19762
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19684
- store: store$6,
19763
+ store: store$5,
19685
19764
  key: i
19686
19765
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19687
- store: store$6
19766
+ store: store$5
19688
19767
  })));
19689
19768
  };
19690
19769
 
@@ -19721,7 +19800,7 @@ function GiftCode({
19721
19800
  }
19722
19801
 
19723
19802
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
19724
- store: store$6
19803
+ store: store$5
19725
19804
  }, props));
19726
19805
 
19727
19806
  const GiftRedeemSubmitButton = ({
@@ -19734,7 +19813,7 @@ const GiftRedeemSubmitButton = ({
19734
19813
  state: {
19735
19814
  disableSubmit
19736
19815
  }
19737
- } = useContext(store$6);
19816
+ } = useContext(store$5);
19738
19817
  const {
19739
19818
  t
19740
19819
  } = useTranslation("register");
@@ -19827,7 +19906,7 @@ const moveDefaultAddressToStart = addresses => {
19827
19906
  return [defaultAddress, ...addressesWithoutDefault];
19828
19907
  };
19829
19908
 
19830
- const initialState$5 = {
19909
+ const initialState$4 = {
19831
19910
  addresses: [],
19832
19911
  selectedAddressId: null,
19833
19912
  isSubmitting: false,
@@ -19836,10 +19915,10 @@ const initialState$5 = {
19836
19915
  content: ""
19837
19916
  }
19838
19917
  };
19839
- const store$5 = /*#__PURE__*/createContext(initialState$5);
19918
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
19840
19919
  const {
19841
- Provider: Provider$5
19842
- } = store$5;
19920
+ Provider: Provider$4
19921
+ } = store$4;
19843
19922
 
19844
19923
  const AddressSelectContainer = ({
19845
19924
  style,
@@ -19934,7 +20013,7 @@ const AddressSelectContainer = ({
19934
20013
  default:
19935
20014
  return state;
19936
20015
  }
19937
- }, initialState$5);
20016
+ }, initialState$4);
19938
20017
  useEffect(() => {
19939
20018
  var _window$Pelcro$user$r;
19940
20019
 
@@ -19947,16 +20026,16 @@ const AddressSelectContainer = ({
19947
20026
  style: { ...style
19948
20027
  },
19949
20028
  className: `pelcro-container pelcro-address-select-container ${className}`
19950
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
20029
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
19951
20030
  value: {
19952
20031
  state,
19953
20032
  dispatch
19954
20033
  }
19955
20034
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19956
- store: store$5,
20035
+ store: store$4,
19957
20036
  key: i
19958
20037
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19959
- store: store$5
20038
+ store: store$4
19960
20039
  })));
19961
20040
  };
19962
20041
 
@@ -19967,7 +20046,7 @@ const AddressSelectList = () => {
19967
20046
  addresses,
19968
20047
  selectedAddressId
19969
20048
  }
19970
- } = useContext(store$5);
20049
+ } = useContext(store$4);
19971
20050
 
19972
20051
  const handleAddressSelect = event => {
19973
20052
  dispatch({
@@ -20011,7 +20090,7 @@ const AddressSelectSubmit = ({
20011
20090
  selectedAddressId,
20012
20091
  isSubmitting
20013
20092
  }
20014
- } = useContext(store$5);
20093
+ } = useContext(store$4);
20015
20094
  const {
20016
20095
  t
20017
20096
  } = useTranslation("address");
@@ -20107,7 +20186,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
20107
20186
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
20108
20187
  };
20109
20188
 
20110
- const initialState$4 = {
20189
+ const initialState$3 = {
20111
20190
  paymentMethods: [],
20112
20191
  selectedPaymentMethodId: null,
20113
20192
  isSubmitting: false,
@@ -20116,10 +20195,10 @@ const initialState$4 = {
20116
20195
  content: ""
20117
20196
  }
20118
20197
  };
20119
- const store$4 = /*#__PURE__*/createContext(initialState$4);
20198
+ const store$3 = /*#__PURE__*/createContext(initialState$3);
20120
20199
  const {
20121
- Provider: Provider$4
20122
- } = store$4;
20200
+ Provider: Provider$3
20201
+ } = store$3;
20123
20202
 
20124
20203
  const PaymentMethodSelectContainer = ({
20125
20204
  style,
@@ -20141,9 +20220,23 @@ const PaymentMethodSelectContainer = ({
20141
20220
  return onSuccess(selectedPaymentMethodId);
20142
20221
  };
20143
20222
 
20144
- const [state, dispatch] = useReducerWithSideEffects((state, action) => {
20145
- var _window$Pelcro$user$r2, _window$Pelcro$user$r3;
20223
+ const getInitialSelectedMethodId = () => {
20224
+ var _window$Pelcro$user$r2;
20225
+
20226
+ if (selectedPaymentMethodIdFromStore) {
20227
+ return selectedPaymentMethodIdFromStore;
20228
+ }
20229
+
20230
+ const defaultMethod = (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.source;
20231
+
20232
+ if (defaultMethod && defaultMethod.status === "chargeable") {
20233
+ return String(defaultMethod.id);
20234
+ }
20146
20235
 
20236
+ return null;
20237
+ };
20238
+
20239
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
20147
20240
  switch (action.type) {
20148
20241
  case SELECT_PAYMENT_METHOD:
20149
20242
  return lib_7({ ...state,
@@ -20153,7 +20246,7 @@ const PaymentMethodSelectContainer = ({
20153
20246
  case LOAD_PAYMENT_METHODS:
20154
20247
  return lib_7({ ...state,
20155
20248
  paymentMethods: moveDefaultPaymentMethodToStart(action.payload),
20156
- selectedPaymentMethodId: selectedPaymentMethodIdFromStore !== null && selectedPaymentMethodIdFromStore !== void 0 ? selectedPaymentMethodIdFromStore : String((_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : (_window$Pelcro$user$r3 = _window$Pelcro$user$r2.source) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.id)
20249
+ selectedPaymentMethodId: getInitialSelectedMethodId()
20157
20250
  });
20158
20251
 
20159
20252
  case HANDLE_SUBMIT:
@@ -20164,29 +20257,29 @@ const PaymentMethodSelectContainer = ({
20164
20257
  default:
20165
20258
  return state;
20166
20259
  }
20167
- }, initialState$4);
20260
+ }, initialState$3);
20168
20261
  useEffect(() => {
20169
- var _window$Pelcro$user$r4;
20262
+ var _window$Pelcro$user$r3;
20170
20263
 
20171
20264
  dispatch({
20172
20265
  type: LOAD_PAYMENT_METHODS,
20173
- payload: (_window$Pelcro$user$r4 = window.Pelcro.user.read().sources) !== null && _window$Pelcro$user$r4 !== void 0 ? _window$Pelcro$user$r4 : []
20266
+ payload: (_window$Pelcro$user$r3 = window.Pelcro.user.read().sources) !== null && _window$Pelcro$user$r3 !== void 0 ? _window$Pelcro$user$r3 : []
20174
20267
  });
20175
20268
  }, []);
20176
20269
  return /*#__PURE__*/React__default.createElement("div", {
20177
20270
  style: { ...style
20178
20271
  },
20179
20272
  className: `pelcro-container pelcro-payment-select-container ${className}`
20180
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
20273
+ }, /*#__PURE__*/React__default.createElement(Provider$3, {
20181
20274
  value: {
20182
20275
  state,
20183
20276
  dispatch
20184
20277
  }
20185
20278
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20186
- store: store$4,
20279
+ store: store$3,
20187
20280
  key: i
20188
20281
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20189
- store: store$4
20282
+ store: store$3
20190
20283
  })));
20191
20284
  };
20192
20285
 
@@ -20200,7 +20293,7 @@ const PaymentMethodSelectList = () => {
20200
20293
  paymentMethods,
20201
20294
  selectedPaymentMethodId
20202
20295
  }
20203
- } = useContext(store$4);
20296
+ } = useContext(store$3);
20204
20297
 
20205
20298
  const handlePaymentMethodSelect = event => {
20206
20299
  dispatch({
@@ -20250,7 +20343,7 @@ const PaymentMethodSelectSubmit = ({
20250
20343
  selectedPaymentMethodId,
20251
20344
  isSubmitting
20252
20345
  }
20253
- } = useContext(store$4);
20346
+ } = useContext(store$3);
20254
20347
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
20255
20348
  onClick: () => {
20256
20349
  dispatch({
@@ -20324,8 +20417,8 @@ const PaymentMethodSelectModal = ({
20324
20417
  };
20325
20418
  PaymentMethodSelectModal.viewId = "payment-method-select";
20326
20419
 
20327
- function _extends$j() {
20328
- _extends$j = Object.assign || function (target) {
20420
+ function _extends$i() {
20421
+ _extends$i = Object.assign || function (target) {
20329
20422
  for (var i = 1; i < arguments.length; i++) {
20330
20423
  var source = arguments[i];
20331
20424
 
@@ -20339,7 +20432,7 @@ function _extends$j() {
20339
20432
  return target;
20340
20433
  };
20341
20434
 
20342
- return _extends$j.apply(this, arguments);
20435
+ return _extends$i.apply(this, arguments);
20343
20436
  }
20344
20437
 
20345
20438
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -20523,7 +20616,7 @@ function render(props, propsBag, defaultTag, features, visible) {
20523
20616
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
20524
20617
  return null;
20525
20618
  }, _match[RenderStrategy.Hidden] = function () {
20526
- return _render(_extends$j({}, _rest, {
20619
+ return _render(_extends$i({}, _rest, {
20527
20620
  hidden: true,
20528
20621
  style: {
20529
20622
  display: 'none'
@@ -21051,7 +21144,7 @@ function TransitionChild(props) {
21051
21144
  var passthroughProps = rest;
21052
21145
  return React__default.createElement(NestingContext.Provider, {
21053
21146
  value: nesting
21054
- }, render(_extends$j({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21147
+ }, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21055
21148
  }
21056
21149
 
21057
21150
  function Transition(props) {
@@ -21095,7 +21188,7 @@ function Transition(props) {
21095
21188
  value: nestingBag
21096
21189
  }, React__default.createElement(TransitionContext.Provider, {
21097
21190
  value: transitionBag
21098
- }, render(_extends$j({}, sharedProps, {
21191
+ }, render(_extends$i({}, sharedProps, {
21099
21192
  as: Fragment,
21100
21193
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
21101
21194
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -21222,12 +21315,12 @@ var ActionTypes;
21222
21315
  })(ActionTypes || (ActionTypes = {}));
21223
21316
 
21224
21317
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
21225
- return _extends$j({}, state, {
21318
+ return _extends$i({}, state, {
21226
21319
  activeItemIndex: null,
21227
21320
  menuState: MenuStates.Closed
21228
21321
  });
21229
21322
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
21230
- return _extends$j({}, state, {
21323
+ return _extends$i({}, state, {
21231
21324
  menuState: MenuStates.Open
21232
21325
  });
21233
21326
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -21246,7 +21339,7 @@ var ActionTypes;
21246
21339
  }
21247
21340
  });
21248
21341
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
21249
- return _extends$j({}, state, {
21342
+ return _extends$i({}, state, {
21250
21343
  searchQuery: '',
21251
21344
  activeItemIndex: activeItemIndex
21252
21345
  });
@@ -21257,19 +21350,19 @@ var ActionTypes;
21257
21350
 
21258
21351
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
21259
21352
  });
21260
- if (match === -1 || match === state.activeItemIndex) return _extends$j({}, state, {
21353
+ if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
21261
21354
  searchQuery: searchQuery
21262
21355
  });
21263
- return _extends$j({}, state, {
21356
+ return _extends$i({}, state, {
21264
21357
  searchQuery: searchQuery,
21265
21358
  activeItemIndex: match
21266
21359
  });
21267
21360
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
21268
- return _extends$j({}, state, {
21361
+ return _extends$i({}, state, {
21269
21362
  searchQuery: ''
21270
21363
  });
21271
21364
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
21272
- return _extends$j({}, state, {
21365
+ return _extends$i({}, state, {
21273
21366
  items: [].concat(state.items, [{
21274
21367
  id: action.id,
21275
21368
  dataRef: action.dataRef
@@ -21282,7 +21375,7 @@ var ActionTypes;
21282
21375
  return a.id === action.id;
21283
21376
  });
21284
21377
  if (idx !== -1) nextItems.splice(idx, 1);
21285
- return _extends$j({}, state, {
21378
+ return _extends$i({}, state, {
21286
21379
  items: nextItems,
21287
21380
  activeItemIndex: function () {
21288
21381
  if (idx === state.activeItemIndex) return null;
@@ -21321,19 +21414,19 @@ var ActionTypes$1;
21321
21414
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
21322
21415
  if (state.disabled) return state;
21323
21416
  if (state.listboxState === ListboxStates.Closed) return state;
21324
- return _extends$j({}, state, {
21417
+ return _extends$i({}, state, {
21325
21418
  activeOptionIndex: null,
21326
21419
  listboxState: ListboxStates.Closed
21327
21420
  });
21328
21421
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
21329
21422
  if (state.disabled) return state;
21330
21423
  if (state.listboxState === ListboxStates.Open) return state;
21331
- return _extends$j({}, state, {
21424
+ return _extends$i({}, state, {
21332
21425
  listboxState: ListboxStates.Open
21333
21426
  });
21334
21427
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
21335
21428
  if (state.disabled === action.disabled) return state;
21336
- return _extends$j({}, state, {
21429
+ return _extends$i({}, state, {
21337
21430
  disabled: action.disabled
21338
21431
  });
21339
21432
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -21354,7 +21447,7 @@ var ActionTypes$1;
21354
21447
  }
21355
21448
  });
21356
21449
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
21357
- return _extends$j({}, state, {
21450
+ return _extends$i({}, state, {
21358
21451
  searchQuery: '',
21359
21452
  activeOptionIndex: activeOptionIndex
21360
21453
  });
@@ -21367,10 +21460,10 @@ var ActionTypes$1;
21367
21460
 
21368
21461
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
21369
21462
  });
21370
- if (match === -1 || match === state.activeOptionIndex) return _extends$j({}, state, {
21463
+ if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
21371
21464
  searchQuery: searchQuery
21372
21465
  });
21373
- return _extends$j({}, state, {
21466
+ return _extends$i({}, state, {
21374
21467
  searchQuery: searchQuery,
21375
21468
  activeOptionIndex: match
21376
21469
  });
@@ -21378,11 +21471,11 @@ var ActionTypes$1;
21378
21471
  if (state.disabled) return state;
21379
21472
  if (state.listboxState === ListboxStates.Closed) return state;
21380
21473
  if (state.searchQuery === '') return state;
21381
- return _extends$j({}, state, {
21474
+ return _extends$i({}, state, {
21382
21475
  searchQuery: ''
21383
21476
  });
21384
21477
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
21385
- return _extends$j({}, state, {
21478
+ return _extends$i({}, state, {
21386
21479
  options: [].concat(state.options, [{
21387
21480
  id: action.id,
21388
21481
  dataRef: action.dataRef
@@ -21395,7 +21488,7 @@ var ActionTypes$1;
21395
21488
  return a.id === action.id;
21396
21489
  });
21397
21490
  if (idx !== -1) nextOptions.splice(idx, 1);
21398
- return _extends$j({}, state, {
21491
+ return _extends$i({}, state, {
21399
21492
  options: nextOptions,
21400
21493
  activeOptionIndex: function () {
21401
21494
  if (idx === state.activeOptionIndex) return null;
@@ -21456,18 +21549,18 @@ const getPaymentCardIcon = name => {
21456
21549
  }));
21457
21550
  };
21458
21551
 
21459
- var _path$h;
21552
+ var _path$g;
21460
21553
 
21461
- function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
21554
+ function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
21462
21555
 
21463
21556
  function SvgChevronRight(props) {
21464
- return /*#__PURE__*/React.createElement("svg", _extends$i({
21557
+ return /*#__PURE__*/React.createElement("svg", _extends$h({
21465
21558
  className: "plc-w-6 plc-h-6",
21466
21559
  xmlns: "http://www.w3.org/2000/svg",
21467
21560
  fill: "none",
21468
21561
  viewBox: "0 0 24 24",
21469
21562
  stroke: "currentColor"
21470
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
21563
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
21471
21564
  strokeLinecap: "round",
21472
21565
  strokeLinejoin: "round",
21473
21566
  strokeWidth: 2,
@@ -21683,18 +21776,18 @@ const SavedItems = ({
21683
21776
  });
21684
21777
  };
21685
21778
 
21686
- var _path$g;
21779
+ var _path$f;
21687
21780
 
21688
- function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
21781
+ function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
21689
21782
 
21690
21783
  function SvgRefresh(props) {
21691
- return /*#__PURE__*/React.createElement("svg", _extends$h({
21784
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
21692
21785
  className: "plc-w-4 plc-h-4 plc-mr-1",
21693
21786
  xmlns: "http://www.w3.org/2000/svg",
21694
21787
  fill: "none",
21695
21788
  viewBox: "0 0 24 24",
21696
21789
  stroke: "currentColor"
21697
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
21790
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
21698
21791
  strokeLinecap: "round",
21699
21792
  strokeLinejoin: "round",
21700
21793
  strokeWidth: 2,
@@ -21702,35 +21795,35 @@ function SvgRefresh(props) {
21702
21795
  })));
21703
21796
  }
21704
21797
 
21705
- var _path$f;
21798
+ var _path$e;
21706
21799
 
21707
- function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
21800
+ function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
21708
21801
 
21709
21802
  function SvgCalendar(props) {
21710
- return /*#__PURE__*/React.createElement("svg", _extends$g({
21803
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
21711
21804
  xmlns: "http://www.w3.org/2000/svg",
21712
21805
  className: "plc-h-4 plc-w-4 plc-mr-1",
21713
21806
  viewBox: "0 0 20 20",
21714
21807
  fill: "currentColor"
21715
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
21808
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21716
21809
  fillRule: "evenodd",
21717
21810
  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",
21718
21811
  clipRule: "evenodd"
21719
21812
  })));
21720
21813
  }
21721
21814
 
21722
- var _path$e;
21815
+ var _path$d;
21723
21816
 
21724
- function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
21817
+ function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
21725
21818
 
21726
21819
  function SvgPlus(props) {
21727
- return /*#__PURE__*/React.createElement("svg", _extends$f({
21820
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
21728
21821
  className: "plc-w-5 plc-h-5",
21729
21822
  xmlns: "http://www.w3.org/2000/svg",
21730
21823
  fill: "none",
21731
21824
  viewBox: "0 0 24 24",
21732
21825
  stroke: "currentColor"
21733
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21826
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21734
21827
  strokeLinecap: "round",
21735
21828
  strokeLinejoin: "round",
21736
21829
  strokeWidth: 2,
@@ -21738,17 +21831,17 @@ function SvgPlus(props) {
21738
21831
  })));
21739
21832
  }
21740
21833
 
21741
- var _path$d;
21834
+ var _path$c;
21742
21835
 
21743
- function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
21836
+ function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
21744
21837
 
21745
21838
  function SvgCheckMark(props) {
21746
- return /*#__PURE__*/React.createElement("svg", _extends$e({
21839
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
21747
21840
  className: "plc-w-4 plc-h-4 plc-mr-1",
21748
21841
  xmlns: "http://www.w3.org/2000/svg",
21749
21842
  viewBox: "0 0 20 20",
21750
21843
  fill: "currentColor"
21751
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21844
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
21752
21845
  fillRule: "evenodd",
21753
21846
  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",
21754
21847
  clipRule: "evenodd"
@@ -21812,8 +21905,7 @@ const SubscriptionsItems = ({
21812
21905
  } = useTranslation("dashboard");
21813
21906
  const {
21814
21907
  switchView,
21815
- switchToAddressView,
21816
- switchToPaymentView
21908
+ isAuthenticated
21817
21909
  } = usePelcro();
21818
21910
  const subs = getNonDonationSubs();
21819
21911
  if (subs.length === 0) return null;
@@ -21855,12 +21947,7 @@ const SubscriptionsItems = ({
21855
21947
  const plan = window.Pelcro.plan.getById(plan_id);
21856
21948
  setProductAndPlan(product, plan);
21857
21949
  setSubscriptionIdToRenew(sub.id);
21858
-
21859
- if (product.address_required) {
21860
- return switchToAddressView();
21861
- }
21862
-
21863
- return switchToPaymentView();
21950
+ setView("plan-select");
21864
21951
  };
21865
21952
 
21866
21953
  const getPhases = () => {
@@ -22049,18 +22136,18 @@ Accordion.item = function AccordionItem({
22049
22136
  }, content)) : null;
22050
22137
  };
22051
22138
 
22052
- var _path$c;
22139
+ var _path$b;
22053
22140
 
22054
- function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
22141
+ function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
22055
22142
 
22056
22143
  function SvgExit(props) {
22057
- return /*#__PURE__*/React.createElement("svg", _extends$d({
22144
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
22058
22145
  className: "plc-w-6 plc-h-6",
22059
22146
  xmlns: "http://www.w3.org/2000/svg",
22060
22147
  fill: "none",
22061
22148
  viewBox: "0 0 24 24",
22062
22149
  stroke: "currentColor"
22063
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
22150
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
22064
22151
  strokeLinecap: "round",
22065
22152
  strokeLinejoin: "round",
22066
22153
  strokeWidth: 2,
@@ -22068,17 +22155,17 @@ function SvgExit(props) {
22068
22155
  })));
22069
22156
  }
22070
22157
 
22071
- var _path$b;
22158
+ var _path$a;
22072
22159
 
22073
- function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
22160
+ function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
22074
22161
 
22075
22162
  function SvgUser(props) {
22076
- return /*#__PURE__*/React.createElement("svg", _extends$c({
22163
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
22077
22164
  xmlns: "http://www.w3.org/2000/svg",
22078
22165
  fill: "none",
22079
22166
  viewBox: "0 0 24 24",
22080
22167
  stroke: "currentColor"
22081
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
22168
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
22082
22169
  strokeLinecap: "round",
22083
22170
  strokeLinejoin: "round",
22084
22171
  strokeWidth: 2,
@@ -22086,18 +22173,18 @@ function SvgUser(props) {
22086
22173
  })));
22087
22174
  }
22088
22175
 
22089
- var _path$a;
22176
+ var _path$9;
22090
22177
 
22091
- function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
22178
+ function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
22092
22179
 
22093
22180
  function SvgNewsletter(props) {
22094
- return /*#__PURE__*/React.createElement("svg", _extends$b({
22181
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
22095
22182
  xmlns: "http://www.w3.org/2000/svg",
22096
22183
  className: "plc-h-5 plc-w-5",
22097
22184
  fill: "none",
22098
22185
  viewBox: "0 0 24 24",
22099
22186
  stroke: "currentColor"
22100
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
22187
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
22101
22188
  strokeLinecap: "round",
22102
22189
  strokeLinejoin: "round",
22103
22190
  strokeWidth: 2,
@@ -22105,18 +22192,18 @@ function SvgNewsletter(props) {
22105
22192
  })));
22106
22193
  }
22107
22194
 
22108
- var _path$9;
22195
+ var _path$8;
22109
22196
 
22110
- function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
22197
+ function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
22111
22198
 
22112
22199
  function SvgDocument(props) {
22113
- return /*#__PURE__*/React.createElement("svg", _extends$a({
22200
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
22114
22201
  xmlns: "http://www.w3.org/2000/svg",
22115
22202
  className: "plc-h-6 plc-w-6 plc-mr-2",
22116
22203
  fill: "none",
22117
22204
  viewBox: "0 0 24 24",
22118
22205
  stroke: "currentColor"
22119
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
22206
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
22120
22207
  strokeLinecap: "round",
22121
22208
  strokeLinejoin: "round",
22122
22209
  strokeWidth: 2,
@@ -22124,18 +22211,18 @@ function SvgDocument(props) {
22124
22211
  })));
22125
22212
  }
22126
22213
 
22127
- var _path$8;
22214
+ var _path$7;
22128
22215
 
22129
- function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
22216
+ function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
22130
22217
 
22131
22218
  function SvgPaymentCard(props) {
22132
- return /*#__PURE__*/React.createElement("svg", _extends$9({
22219
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
22133
22220
  className: "plc-w-6 plc-h-6 plc-mr-2",
22134
22221
  xmlns: "http://www.w3.org/2000/svg",
22135
22222
  fill: "none",
22136
22223
  viewBox: "0 0 24 24",
22137
22224
  stroke: "currentColor"
22138
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
22225
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
22139
22226
  strokeLinecap: "round",
22140
22227
  strokeLinejoin: "round",
22141
22228
  strokeWidth: 2,
@@ -22143,18 +22230,18 @@ function SvgPaymentCard(props) {
22143
22230
  })));
22144
22231
  }
22145
22232
 
22146
- var _path$7, _path2$1;
22233
+ var _path$6, _path2$1;
22147
22234
 
22148
- function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
22235
+ function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
22149
22236
 
22150
22237
  function SvgLocationPin(props) {
22151
- return /*#__PURE__*/React.createElement("svg", _extends$8({
22238
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
22152
22239
  className: "plc-w-6 plc-h-6 plc-mr-2",
22153
22240
  xmlns: "http://www.w3.org/2000/svg",
22154
22241
  fill: "none",
22155
22242
  viewBox: "0 0 24 24",
22156
22243
  stroke: "currentColor"
22157
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
22244
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
22158
22245
  strokeLinecap: "round",
22159
22246
  strokeLinejoin: "round",
22160
22247
  strokeWidth: 2,
@@ -22169,10 +22256,10 @@ function SvgLocationPin(props) {
22169
22256
 
22170
22257
  var _switch;
22171
22258
 
22172
- function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
22259
+ function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
22173
22260
 
22174
22261
  function SvgSubscription(props) {
22175
- return /*#__PURE__*/React.createElement("svg", _extends$7({
22262
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
22176
22263
  xmlns: "http://www.w3.org/2000/svg",
22177
22264
  viewBox: "0 0 100 125",
22178
22265
  fill: "currentColor"
@@ -22187,18 +22274,18 @@ function SvgSubscription(props) {
22187
22274
  }))))));
22188
22275
  }
22189
22276
 
22190
- var _path$6;
22277
+ var _path$5;
22191
22278
 
22192
- function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
22279
+ function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
22193
22280
 
22194
22281
  function SvgShopping(props) {
22195
- return /*#__PURE__*/React.createElement("svg", _extends$6({
22282
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
22196
22283
  className: "plc-w-6 plc-h-6 plc-mr-2",
22197
22284
  xmlns: "http://www.w3.org/2000/svg",
22198
22285
  fill: "none",
22199
22286
  viewBox: "0 0 24 24",
22200
22287
  stroke: "currentColor"
22201
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
22288
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
22202
22289
  strokeLinecap: "round",
22203
22290
  strokeLinejoin: "round",
22204
22291
  strokeWidth: 2,
@@ -22206,18 +22293,18 @@ function SvgShopping(props) {
22206
22293
  })));
22207
22294
  }
22208
22295
 
22209
- var _path$5;
22296
+ var _path$4;
22210
22297
 
22211
- function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
22298
+ function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
22212
22299
 
22213
22300
  function SvgBookmark(props) {
22214
- return /*#__PURE__*/React.createElement("svg", _extends$5({
22301
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
22215
22302
  className: "plc-w-6 plc-h-6 plc-mr-2",
22216
22303
  xmlns: "http://www.w3.org/2000/svg",
22217
22304
  fill: "none",
22218
22305
  viewBox: "0 0 24 24",
22219
22306
  stroke: "currentColor"
22220
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
22307
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
22221
22308
  strokeLinecap: "round",
22222
22309
  strokeLinejoin: "round",
22223
22310
  strokeWidth: 2,
@@ -22225,33 +22312,33 @@ function SvgBookmark(props) {
22225
22312
  })));
22226
22313
  }
22227
22314
 
22228
- var _path$4;
22315
+ var _path$3;
22229
22316
 
22230
- function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
22317
+ function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
22231
22318
 
22232
22319
  function SvgKey(props) {
22233
- return /*#__PURE__*/React.createElement("svg", _extends$4({
22320
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
22234
22321
  xmlns: "http://www.w3.org/2000/svg",
22235
22322
  viewBox: "0 0 20 20",
22236
22323
  fill: "currentColor"
22237
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
22324
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
22238
22325
  fillRule: "evenodd",
22239
22326
  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",
22240
22327
  clipRule: "evenodd"
22241
22328
  })));
22242
22329
  }
22243
22330
 
22244
- var _path$3;
22331
+ var _path$2;
22245
22332
 
22246
- function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
22333
+ function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
22247
22334
 
22248
22335
  function SvgDonate(props) {
22249
- return /*#__PURE__*/React.createElement("svg", _extends$3({
22336
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
22250
22337
  width: 24,
22251
22338
  height: 24,
22252
22339
  fill: "currentColor",
22253
22340
  xmlns: "http://www.w3.org/2000/svg"
22254
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
22341
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
22255
22342
  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"
22256
22343
  })));
22257
22344
  }
@@ -22578,10 +22665,9 @@ class Dashboard extends Component {
22578
22665
  }) => {
22579
22666
  if (isGift) {
22580
22667
  this.props.setProductAndPlan(null, null, true);
22581
- return this.props.setView("plan-select");
22582
22668
  }
22583
22669
 
22584
- return this.props.setView("subscription-options");
22670
+ return this.props.setView("plan-select");
22585
22671
  });
22586
22672
 
22587
22673
  _defineProperty$3(this, "displayAddressCreate", () => {
@@ -23047,7 +23133,7 @@ const DashboardOpenButton = () => {
23047
23133
  };
23048
23134
  DashboardOpenButton.viewId = "dashboard-open";
23049
23135
 
23050
- const initialState$3 = {
23136
+ const initialState$2 = {
23051
23137
  imageSrc: null,
23052
23138
  crop: {
23053
23139
  x: 0,
@@ -23061,10 +23147,10 @@ const initialState$3 = {
23061
23147
  content: ""
23062
23148
  }
23063
23149
  };
23064
- const store$3 = /*#__PURE__*/createContext(initialState$3);
23150
+ const store$2 = /*#__PURE__*/createContext(initialState$2);
23065
23151
  const {
23066
- Provider: Provider$3
23067
- } = store$3;
23152
+ Provider: Provider$2
23153
+ } = store$2;
23068
23154
 
23069
23155
  const ProfilePicChangeContainer = ({
23070
23156
  style,
@@ -23198,21 +23284,21 @@ const ProfilePicChangeContainer = ({
23198
23284
  default:
23199
23285
  return state;
23200
23286
  }
23201
- }, initialState$3);
23287
+ }, initialState$2);
23202
23288
  return /*#__PURE__*/React__default.createElement("div", {
23203
23289
  style: { ...style
23204
23290
  },
23205
23291
  className: `pelcro-container pelcro-profile-picture-container ${className}`
23206
- }, /*#__PURE__*/React__default.createElement(Provider$3, {
23292
+ }, /*#__PURE__*/React__default.createElement(Provider$2, {
23207
23293
  value: {
23208
23294
  state,
23209
23295
  dispatch
23210
23296
  }
23211
23297
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
23212
- store: store$3,
23298
+ store: store$2,
23213
23299
  key: i
23214
23300
  })) : /*#__PURE__*/React__default.cloneElement(children, {
23215
- store: store$3
23301
+ store: store$2
23216
23302
  })));
23217
23303
  };
23218
23304
  /**
@@ -23274,7 +23360,7 @@ const ProfilePicChangeButton = ({
23274
23360
  isSubmitting
23275
23361
  },
23276
23362
  dispatch
23277
- } = useContext(store$3);
23363
+ } = useContext(store$2);
23278
23364
  const {
23279
23365
  t
23280
23366
  } = useTranslation("userEdit");
@@ -24642,7 +24728,7 @@ const ProfilePicChangeCropper = ({
24642
24728
  zoom
24643
24729
  },
24644
24730
  dispatch
24645
- } = useContext(store$3);
24731
+ } = useContext(store$2);
24646
24732
  return /*#__PURE__*/React__default.createElement("div", {
24647
24733
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
24648
24734
  }, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
@@ -24684,7 +24770,7 @@ const ProfilePicChangeZoom = ({
24684
24770
  zoom
24685
24771
  },
24686
24772
  dispatch
24687
- } = useContext(store$3);
24773
+ } = useContext(store$2);
24688
24774
  const {
24689
24775
  t
24690
24776
  } = useTranslation("userEdit");
@@ -24707,18 +24793,18 @@ const ProfilePicChangeZoom = ({
24707
24793
  }, otherProps)));
24708
24794
  };
24709
24795
 
24710
- var _path$2;
24796
+ var _path$1;
24711
24797
 
24712
- function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
24798
+ function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
24713
24799
 
24714
24800
  function SvgPhotograph(props) {
24715
- return /*#__PURE__*/React.createElement("svg", _extends$2({
24801
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
24716
24802
  xmlns: "http://www.w3.org/2000/svg",
24717
24803
  className: "plc-h-6 plc-w-6",
24718
24804
  fill: "none",
24719
24805
  viewBox: "0 0 24 24",
24720
24806
  stroke: "currentColor"
24721
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
24807
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
24722
24808
  strokeLinecap: "round",
24723
24809
  strokeLinejoin: "round",
24724
24810
  strokeWidth: 2,
@@ -24736,7 +24822,7 @@ const ProfilePicChangeSelectButton = ({
24736
24822
  state: {
24737
24823
  isSubmitting
24738
24824
  }
24739
- } = useContext(store$3);
24825
+ } = useContext(store$2);
24740
24826
  const {
24741
24827
  t
24742
24828
  } = useTranslation("userEdit");
@@ -24778,7 +24864,7 @@ const ProfilePicChangeRemoveButton = ({
24778
24864
  state: {
24779
24865
  isSubmitting
24780
24866
  }
24781
- } = useContext(store$3);
24867
+ } = useContext(store$2);
24782
24868
  const {
24783
24869
  t
24784
24870
  } = useTranslation("userEdit");
@@ -24801,7 +24887,7 @@ const ProfilePicChangeWrapper = () => {
24801
24887
  state: {
24802
24888
  imageSrc
24803
24889
  }
24804
- } = useContext(store$3);
24890
+ } = useContext(store$2);
24805
24891
  const {
24806
24892
  t
24807
24893
  } = useTranslation("userEdit");
@@ -24863,17 +24949,17 @@ function ProfilePicChangeModal({
24863
24949
  }
24864
24950
  ProfilePicChangeModal.viewId = "profile-picture";
24865
24951
 
24866
- const initialState$2 = {
24952
+ const initialState$1 = {
24867
24953
  isSubmitting: false,
24868
24954
  alert: {
24869
24955
  type: "error",
24870
24956
  content: ""
24871
24957
  }
24872
24958
  };
24873
- const store$2 = /*#__PURE__*/createContext(initialState$2);
24959
+ const store$1 = /*#__PURE__*/createContext(initialState$1);
24874
24960
  const {
24875
- Provider: Provider$2
24876
- } = store$2;
24961
+ Provider: Provider$1
24962
+ } = store$1;
24877
24963
 
24878
24964
  const EmailVerifyContainer = ({
24879
24965
  style,
@@ -24936,21 +25022,21 @@ const EmailVerifyContainer = ({
24936
25022
  default:
24937
25023
  return state;
24938
25024
  }
24939
- }, initialState$2);
25025
+ }, initialState$1);
24940
25026
  return /*#__PURE__*/React__default.createElement("div", {
24941
25027
  style: { ...style
24942
25028
  },
24943
25029
  className: `pelcro-container pelcro-email-verify-container ${className}`
24944
- }, /*#__PURE__*/React__default.createElement(Provider$2, {
25030
+ }, /*#__PURE__*/React__default.createElement(Provider$1, {
24945
25031
  value: {
24946
25032
  state,
24947
25033
  dispatch
24948
25034
  }
24949
25035
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
24950
- store: store$2,
25036
+ store: store$1,
24951
25037
  key: i
24952
25038
  })) : /*#__PURE__*/React__default.cloneElement(children, {
24953
- store: store$2
25039
+ store: store$1
24954
25040
  })));
24955
25041
  };
24956
25042
 
@@ -24964,7 +25050,7 @@ const EmailVerifyResendButton = ({
24964
25050
  state: {
24965
25051
  isSubmitting
24966
25052
  }
24967
- } = useContext(store$2);
25053
+ } = useContext(store$1);
24968
25054
  const {
24969
25055
  t
24970
25056
  } = useTranslation("verifyEmail");
@@ -24979,16 +25065,16 @@ const EmailVerifyResendButton = ({
24979
25065
  }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
24980
25066
  };
24981
25067
 
24982
- var _path$1, _path2;
25068
+ var _path, _path2;
24983
25069
 
24984
- function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
25070
+ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
24985
25071
 
24986
25072
  function SvgEmailVerify(props) {
24987
- return /*#__PURE__*/React.createElement("svg", _extends$1({
25073
+ return /*#__PURE__*/React.createElement("svg", _extends({
24988
25074
  className: "plc-w-6 plc-h-6",
24989
25075
  viewBox: "0 0 700 700",
24990
25076
  xmlns: "http://www.w3.org/2000/svg"
24991
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
25077
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
24992
25078
  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"
24993
25079
  })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
24994
25080
  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"
@@ -25092,11 +25178,11 @@ const invoicePaymentSubmitButton = props => {
25092
25178
  return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
25093
25179
  };
25094
25180
 
25095
- const initialState$1 = {};
25096
- const store$1 = /*#__PURE__*/createContext(initialState$1);
25181
+ const initialState = {};
25182
+ const store = /*#__PURE__*/createContext(initialState);
25097
25183
  const {
25098
- Provider: Provider$1
25099
- } = store$1;
25184
+ Provider
25185
+ } = store;
25100
25186
 
25101
25187
  const InvoiceDetailsContainer = ({
25102
25188
  style,
@@ -25117,21 +25203,21 @@ const InvoiceDetailsContainer = ({
25117
25203
  default:
25118
25204
  return state;
25119
25205
  }
25120
- }, initialState$1);
25206
+ }, initialState);
25121
25207
  return /*#__PURE__*/React__default.createElement("div", {
25122
25208
  style: { ...style
25123
25209
  },
25124
25210
  className: `pelcro-container pelcro-invoice-details-container ${className}`
25125
- }, /*#__PURE__*/React__default.createElement(Provider$1, {
25211
+ }, /*#__PURE__*/React__default.createElement(Provider, {
25126
25212
  value: {
25127
25213
  state,
25128
25214
  dispatch
25129
25215
  }
25130
25216
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25131
- store: store$1,
25217
+ store,
25132
25218
  key: i
25133
25219
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25134
- store: store$1
25220
+ store
25135
25221
  })));
25136
25222
  };
25137
25223
 
@@ -25163,7 +25249,7 @@ const InvoiceDetailsPayButton = ({
25163
25249
  }) => {
25164
25250
  const {
25165
25251
  dispatch
25166
- } = useContext(store$1);
25252
+ } = useContext(store);
25167
25253
  const {
25168
25254
  t
25169
25255
  } = useTranslation("invoiceDetails");
@@ -25219,7 +25305,7 @@ const InvoiceDetailsView = props => {
25219
25305
  }, t("labels.amountPaid")), /*#__PURE__*/React__default.createElement("p", {
25220
25306
  className: "plc-font-semibold pelcro-invoice-total-text"
25221
25307
  }, t("labels.amountDue"))), /*#__PURE__*/React__default.createElement("div", {
25222
- className: "plc-flex plc-flex-col"
25308
+ className: "plc-flex plc-flex-col plc-items-end"
25223
25309
  }, /*#__PURE__*/React__default.createElement("p", {
25224
25310
  className: "pelcro-invoice-total"
25225
25311
  }, getFormattedPriceByLocal(invoice.total, invoice.currency, getPageOrDefaultLanguage())), /*#__PURE__*/React__default.createElement("p", {
@@ -25268,230 +25354,4 @@ const InvoiceDetailsModal = ({
25268
25354
  };
25269
25355
  InvoiceDetailsModal.viewId = "invoice-details";
25270
25356
 
25271
- const initialState = {
25272
- selectedOption: ""
25273
- };
25274
- const store = /*#__PURE__*/createContext(initialState);
25275
- const {
25276
- Provider
25277
- } = store;
25278
-
25279
- const SubscriptionOptionsContainer = ({
25280
- style,
25281
- className = "",
25282
- onRenewSubSuccess = () => {},
25283
- onNewSubSuccess = () => {},
25284
- children,
25285
- ...props
25286
- }) => {
25287
- const submit = ({
25288
- selectedOption
25289
- }, dispatch) => {
25290
- if (selectedOption === "renew") return onRenewSubSuccess();
25291
- if (selectedOption === "new") return onNewSubSuccess();
25292
- };
25293
-
25294
- const [state, dispatch] = useReducerWithSideEffects((state, action) => {
25295
- switch (action.type) {
25296
- case SWITCH_TO_NEW:
25297
- return lib_7({ ...state,
25298
- selectedOption: "new"
25299
- });
25300
-
25301
- case SWITCH_TO_RENEW:
25302
- return lib_7({ ...state,
25303
- selectedOption: "renew"
25304
- });
25305
-
25306
- case HANDLE_SUBMIT:
25307
- return lib_4((state, dispatch) => submit(state));
25308
-
25309
- default:
25310
- return state;
25311
- }
25312
- }, initialState);
25313
- return /*#__PURE__*/React__default.createElement("div", {
25314
- style: { ...style
25315
- },
25316
- className: `pelcro-container pelcro-subscription-options-container ${className}`
25317
- }, /*#__PURE__*/React__default.createElement(Provider, {
25318
- value: {
25319
- state,
25320
- dispatch
25321
- }
25322
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25323
- store,
25324
- key: i
25325
- })) : /*#__PURE__*/React__default.cloneElement(children, {
25326
- store
25327
- })));
25328
- };
25329
-
25330
- var _path;
25331
-
25332
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
25333
-
25334
- function SvgPlusCircle(props) {
25335
- return /*#__PURE__*/React.createElement("svg", _extends({
25336
- xmlns: "http://www.w3.org/2000/svg",
25337
- className: "plc-h-6 plc-w-6",
25338
- fill: "none",
25339
- viewBox: "0 0 24 24",
25340
- stroke: "currentColor",
25341
- strokeWidth: 2
25342
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
25343
- strokeLinecap: "round",
25344
- strokeLinejoin: "round",
25345
- d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
25346
- })));
25347
- }
25348
-
25349
- const SubscriptionOptionsNewButton = ({
25350
- name,
25351
- onClick,
25352
- ...otherProps
25353
- }) => {
25354
- const {
25355
- dispatch,
25356
- state: {
25357
- selectedOption
25358
- }
25359
- } = useContext(store);
25360
- const {
25361
- t
25362
- } = useTranslation("subscriptionOptions");
25363
- const isChecked = selectedOption === "new";
25364
- return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
25365
- className: "plc-hidden pelcro-new-sub-option",
25366
- labelClassName: `plc-flex plc-flex-col plc-items-center plc-justify-center plc-text-lg plc-font-semibold plc-ml-0 plc-w-52 plc-h-52 plc-text-black plc-p-2 hover:plc-bg-gray-200 pelcro-new-sub-option-label plc-border-2 plc-text-center ${isChecked ? "plc-border-black" : "plc-border-gray-300"}`,
25367
- id: "pelcro-new-sub-option",
25368
- name: "option",
25369
- onChange: () => {
25370
- dispatch({
25371
- type: SWITCH_TO_NEW
25372
- });
25373
- onClick === null || onClick === void 0 ? void 0 : onClick();
25374
- },
25375
- checked: isChecked
25376
- }, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
25377
- className: "plc-w-full plc-h-full plc-mr-0"
25378
- }));
25379
- };
25380
-
25381
- const SubscriptionOptionsRenewButton = ({
25382
- name,
25383
- onClick,
25384
- ...otherProps
25385
- }) => {
25386
- const {
25387
- dispatch,
25388
- state: {
25389
- selectedOption
25390
- }
25391
- } = useContext(store);
25392
- const {
25393
- t
25394
- } = useTranslation("subscriptionOptions");
25395
- const isChecked = selectedOption === "renew";
25396
- return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
25397
- className: "plc-hidden pelcro-renew-sub-option",
25398
- labelClassName: `plc-flex plc-flex-col plc-items-center plc-justify-center plc-text-lg plc-font-semibold plc-ml-0 plc-w-52 plc-h-52 plc-text-black plc-p-2 hover:plc-bg-gray-200 pelcro-renew-sub-option-label plc-border-2 plc-text-center ${isChecked ? "plc-border-black" : "plc-border-gray-300"}`,
25399
- id: "pelcro-renew-sub-option",
25400
- name: "option",
25401
- onChange: () => {
25402
- dispatch({
25403
- type: SWITCH_TO_RENEW
25404
- });
25405
- onClick === null || onClick === void 0 ? void 0 : onClick();
25406
- },
25407
- checked: isChecked
25408
- }, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
25409
- className: "plc-w-full plc-h-full plc-mr-0"
25410
- }));
25411
- };
25412
-
25413
- const SubscriptionOptionsSubmit = ({
25414
- name,
25415
- onClick,
25416
- ...otherProps
25417
- }) => {
25418
- const {
25419
- dispatch,
25420
- state: {
25421
- selectedOption
25422
- }
25423
- } = useContext(store);
25424
- const {
25425
- t
25426
- } = useTranslation("subscriptionOptions");
25427
- return /*#__PURE__*/React__default.createElement(Button, Object.assign({
25428
- onClick: () => {
25429
- dispatch({
25430
- type: HANDLE_SUBMIT
25431
- });
25432
- onClick === null || onClick === void 0 ? void 0 : onClick();
25433
- },
25434
- disabled: !selectedOption
25435
- }, otherProps), name !== null && name !== void 0 ? name : t("next"));
25436
- };
25437
-
25438
- const SubscriptionOptionsView = props => {
25439
- const {
25440
- t
25441
- } = useTranslation("subscriptionOptions");
25442
- return /*#__PURE__*/React__default.createElement("div", {
25443
- id: "pelcro-subscription-options-view"
25444
- }, /*#__PURE__*/React__default.createElement("div", {
25445
- className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
25446
- }, /*#__PURE__*/React__default.createElement("h4", {
25447
- className: "plc-text-2xl plc-font-semibold"
25448
- }, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
25449
- action: "javascript:void(0);",
25450
- className: "plc-mt-2 pelcro-form"
25451
- }, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
25452
- className: "plc-flex plc-justify-between plc-items-center"
25453
- }, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
25454
- role: "submit",
25455
- className: "plc-mt-4 plc-w-full",
25456
- name: t("next"),
25457
- id: "pelcro-submit"
25458
- }))));
25459
- };
25460
-
25461
- const SubscriptionOptionsModal = ({
25462
- onDisplay,
25463
- onClose,
25464
- ...otherProps
25465
- }) => {
25466
- const {
25467
- switchView,
25468
- setProductsList
25469
- } = usePelcro();
25470
-
25471
- const onRenewSubSuccess = () => {
25472
- var _otherProps$onRenewSu;
25473
-
25474
- (_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
25475
- setProductsList(getRenewableProducts());
25476
- switchView("_plan-select-renew");
25477
- };
25478
-
25479
- const onNewSubSuccess = () => {
25480
- var _otherProps$onNewSubS;
25481
-
25482
- (_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
25483
- switchView("plan-select");
25484
- };
25485
-
25486
- return /*#__PURE__*/React__default.createElement(Modal, {
25487
- onDisplay: onDisplay,
25488
- onClose: onClose,
25489
- id: "pelcro-subscription-options-modal"
25490
- }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
25491
- onNewSubSuccess: onNewSubSuccess,
25492
- onRenewSubSuccess: onRenewSubSuccess
25493
- }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
25494
- };
25495
- SubscriptionOptionsModal.viewId = "subscription-options";
25496
-
25497
- export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, 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, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionOptionsContainer, SubscriptionOptionsModal, SubscriptionOptionsNewButton, SubscriptionOptionsRenewButton, SubscriptionOptionsSubmit, SubscriptionOptionsView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
25357
+ export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, 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, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };