@pelcro/react-pelcro-js 3.2.0-beta.11 → 3.2.0-beta.12

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 = "Détails de la facture";
4657
+ var title = "Détails de la facture";
4658
4658
  var labels = {
4659
4659
  summary: "Résumé",
4660
4660
  total: "Total",
@@ -4667,37 +4667,11 @@ var buttons = {
4667
4667
  pay: "Payer"
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 = "Choix de renouvellement";
4689
- var subtitle = "Veuillez choisir un des choix ci-dessous";
4690
- var next = "Prochain";
4691
- var addNew = "S'abonner à un autre forfait maintenant";
4692
- var renew = "Renouveler l'abonnement actuel ";
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,30 +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
- var _window$Pelcro$subscr, _window$Pelcro$subscr2;
6788
-
6789
- const renewableSubs = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription.list()) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : _window$Pelcro$subscr2.filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
6790
- const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
6791
- const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
6792
- const {
6793
- productsList
6794
- } = usePelcro.getStore();
6795
- return productsList.map(product => {
6796
- if (renewableProductsIds.includes(product.id)) {
6797
- const renewablePlans = getRenewablePlansOnly(product);
6798
- return { ...product,
6799
- plans: renewablePlans
6800
- };
6801
- }
6802
- }).filter(product => product);
6803
-
6804
- function getRenewablePlansOnly(product) {
6805
- var _product$plans$filter, _product$plans;
6806
-
6807
- 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 : [];
6808
- }
6809
- }
6810
6728
 
6811
6729
  const resources = {
6812
6730
  en: {
@@ -6831,8 +6749,7 @@ const resources = {
6831
6749
  dashboard: dashboard_en,
6832
6750
  select: select_en,
6833
6751
  notification: notification_en,
6834
- invoiceDetails: invoiceDetails_en,
6835
- subscriptionOptions: subscriptionOptions_en
6752
+ invoiceDetails: invoiceDetails_en
6836
6753
  },
6837
6754
  fr: {
6838
6755
  common: common_fr,
@@ -6856,8 +6773,7 @@ const resources = {
6856
6773
  dashboard: dashboard_fr,
6857
6774
  select: select_fr,
6858
6775
  notification: notification_fr,
6859
- invoiceDetails: invoiceDetails_fr,
6860
- subscriptionOptions: subscriptionOptions_fr
6776
+ invoiceDetails: invoiceDetails_fr
6861
6777
  }
6862
6778
  }; // set UI language to the page language or default to the language in site settings
6863
6779
 
@@ -7148,8 +7064,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
7148
7064
 
7149
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}}
7150
7066
 
7151
- function _extends$A() {
7152
- _extends$A = Object.assign || function (target) {
7067
+ function _extends$z() {
7068
+ _extends$z = Object.assign || function (target) {
7153
7069
  for (var i = 1; i < arguments.length; i++) {
7154
7070
  var source = arguments[i];
7155
7071
 
@@ -7163,7 +7079,7 @@ function _extends$A() {
7163
7079
  return target;
7164
7080
  };
7165
7081
 
7166
- return _extends$A.apply(this, arguments);
7082
+ return _extends$z.apply(this, arguments);
7167
7083
  }
7168
7084
 
7169
7085
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7253,7 +7169,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7253
7169
  var reducer = function reducer(state, action) {
7254
7170
  switch (action.type) {
7255
7171
  case ActionType.ADD_TOAST:
7256
- return _extends$A({}, state, {
7172
+ return _extends$z({}, state, {
7257
7173
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7258
7174
  });
7259
7175
 
@@ -7263,9 +7179,9 @@ var reducer = function reducer(state, action) {
7263
7179
  clearFromRemoveQueue(action.toast.id);
7264
7180
  }
7265
7181
 
7266
- return _extends$A({}, state, {
7182
+ return _extends$z({}, state, {
7267
7183
  toasts: state.toasts.map(function (t) {
7268
- 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;
7269
7185
  })
7270
7186
  });
7271
7187
 
@@ -7292,9 +7208,9 @@ var reducer = function reducer(state, action) {
7292
7208
  });
7293
7209
  }
7294
7210
 
7295
- return _extends$A({}, state, {
7211
+ return _extends$z({}, state, {
7296
7212
  toasts: state.toasts.map(function (t) {
7297
- return t.id === toastId || toastId === undefined ? _extends$A({}, t, {
7213
+ return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
7298
7214
  visible: false
7299
7215
  }) : t;
7300
7216
  })
@@ -7302,28 +7218,28 @@ var reducer = function reducer(state, action) {
7302
7218
 
7303
7219
  case ActionType.REMOVE_TOAST:
7304
7220
  if (action.toastId === undefined) {
7305
- return _extends$A({}, state, {
7221
+ return _extends$z({}, state, {
7306
7222
  toasts: []
7307
7223
  });
7308
7224
  }
7309
7225
 
7310
- return _extends$A({}, state, {
7226
+ return _extends$z({}, state, {
7311
7227
  toasts: state.toasts.filter(function (t) {
7312
7228
  return t.id !== action.toastId;
7313
7229
  })
7314
7230
  });
7315
7231
 
7316
7232
  case ActionType.START_PAUSE:
7317
- return _extends$A({}, state, {
7233
+ return _extends$z({}, state, {
7318
7234
  pausedAt: action.time
7319
7235
  });
7320
7236
 
7321
7237
  case ActionType.END_PAUSE:
7322
7238
  var diff = action.time - (state.pausedAt || 0);
7323
- return _extends$A({}, state, {
7239
+ return _extends$z({}, state, {
7324
7240
  pausedAt: undefined,
7325
7241
  toasts: state.toasts.map(function (t) {
7326
- return _extends$A({}, t, {
7242
+ return _extends$z({}, t, {
7327
7243
  pauseDuration: t.pauseDuration + diff
7328
7244
  });
7329
7245
  })
@@ -7370,12 +7286,12 @@ var useStore = function useStore(toastOptions) {
7370
7286
  var mergedToasts = state.toasts.map(function (t) {
7371
7287
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7372
7288
 
7373
- return _extends$A({}, toastOptions, toastOptions[t.type], t, {
7289
+ return _extends$z({}, toastOptions, toastOptions[t.type], t, {
7374
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],
7375
- 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)
7376
7292
  });
7377
7293
  });
7378
- return _extends$A({}, state, {
7294
+ return _extends$z({}, state, {
7379
7295
  toasts: mergedToasts
7380
7296
  });
7381
7297
  };
@@ -7385,7 +7301,7 @@ var createToast = function createToast(message, type, opts) {
7385
7301
  type = 'blank';
7386
7302
  }
7387
7303
 
7388
- return _extends$A({
7304
+ return _extends$z({
7389
7305
  createdAt: Date.now(),
7390
7306
  visible: true,
7391
7307
  type: type,
@@ -7435,14 +7351,14 @@ toast.remove = function (toastId) {
7435
7351
  };
7436
7352
 
7437
7353
  toast.promise = function (promise, msgs, opts) {
7438
- 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));
7439
7355
  promise.then(function (p) {
7440
- toast.success(resolveValue(msgs.success, p), _extends$A({
7356
+ toast.success(resolveValue(msgs.success, p), _extends$z({
7441
7357
  id: id
7442
7358
  }, opts, opts == null ? void 0 : opts.success));
7443
7359
  return p;
7444
7360
  })["catch"](function (e) {
7445
- toast.error(resolveValue(msgs.error, e), _extends$A({
7361
+ toast.error(resolveValue(msgs.error, e), _extends$z({
7446
7362
  id: id
7447
7363
  }, opts, opts == null ? void 0 : opts.error));
7448
7364
  });
@@ -7781,7 +7697,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
7781
7697
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7782
7698
  return createElement(ToastBarBase, {
7783
7699
  className: toast.className,
7784
- style: _extends$A({}, animationStyle, style, toast.style)
7700
+ style: _extends$z({}, animationStyle, style, toast.style)
7785
7701
  }, typeof children === 'function' ? children({
7786
7702
  icon: icon,
7787
7703
  message: message
@@ -7811,7 +7727,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7811
7727
  } : position.includes('right') ? {
7812
7728
  justifyContent: 'flex-end'
7813
7729
  } : {};
7814
- return _extends$A({
7730
+ return _extends$z({
7815
7731
  left: 0,
7816
7732
  right: 0,
7817
7733
  display: 'flex',
@@ -7838,7 +7754,7 @@ var Toaster = function Toaster(_ref) {
7838
7754
  handlers = _useToaster.handlers;
7839
7755
 
7840
7756
  return createElement("div", {
7841
- style: _extends$A({
7757
+ style: _extends$z({
7842
7758
  position: 'fixed',
7843
7759
  zIndex: 9999,
7844
7760
  top: DEFAULT_OFFSET,
@@ -7873,82 +7789,82 @@ var Toaster = function Toaster(_ref) {
7873
7789
  }));
7874
7790
  };
7875
7791
 
7876
- var _path$x;
7792
+ var _path$w;
7877
7793
 
7878
- 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); }
7879
7795
 
7880
7796
  function SvgCheckSolid(props) {
7881
- return /*#__PURE__*/React.createElement("svg", _extends$z({
7797
+ return /*#__PURE__*/React.createElement("svg", _extends$y({
7882
7798
  xmlns: "http://www.w3.org/2000/svg",
7883
7799
  className: "h-5 w-5",
7884
7800
  viewBox: "0 0 20 20",
7885
7801
  fill: "currentColor"
7886
- }, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
7802
+ }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
7887
7803
  fillRule: "evenodd",
7888
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",
7889
7805
  clipRule: "evenodd"
7890
7806
  })));
7891
7807
  }
7892
7808
 
7893
- var _path$w;
7809
+ var _path$v;
7894
7810
 
7895
- 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); }
7896
7812
 
7897
7813
  function SvgXIcon(props) {
7898
- return /*#__PURE__*/React.createElement("svg", _extends$y({
7814
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
7899
7815
  xmlns: "http://www.w3.org/2000/svg",
7900
7816
  viewBox: "0 0 20 20",
7901
7817
  fill: "currentColor"
7902
- }, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
7818
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7903
7819
  fill: "evenodd",
7904
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",
7905
7821
  clipRule: "evenodd"
7906
7822
  })));
7907
7823
  }
7908
7824
 
7909
- var _path$v;
7825
+ var _path$u;
7910
7826
 
7911
- 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); }
7912
7828
 
7913
7829
  function SvgXIconSolid(props) {
7914
- return /*#__PURE__*/React.createElement("svg", _extends$x({
7830
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
7915
7831
  className: "plc-w-4 plc-h-4",
7916
7832
  fill: "currentColor",
7917
7833
  xmlns: "http://www.w3.org/2000/svg",
7918
7834
  viewBox: "0 0 100 100"
7919
- }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7835
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7920
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"
7921
7837
  })));
7922
7838
  }
7923
7839
 
7924
- var _path$u;
7840
+ var _path$t;
7925
7841
 
7926
- 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); }
7927
7843
 
7928
7844
  function SvgExclamation(props) {
7929
- return /*#__PURE__*/React.createElement("svg", _extends$w({
7845
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
7930
7846
  className: "plc-w-4 plc-h-4 plc-mr-1",
7931
7847
  xmlns: "http://www.w3.org/2000/svg",
7932
7848
  viewBox: "0 0 20 20",
7933
7849
  fill: "currentColor"
7934
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7850
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7935
7851
  fillRule: "evenodd",
7936
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",
7937
7853
  clipRule: "evenodd"
7938
7854
  })));
7939
7855
  }
7940
7856
 
7941
- var _path$t, _path2$4;
7857
+ var _path$s, _path2$4;
7942
7858
 
7943
- 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); }
7944
7860
 
7945
7861
  function SvgSpinner(props) {
7946
- return /*#__PURE__*/React.createElement("svg", _extends$v({
7862
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
7947
7863
  className: "plc-animate-spin",
7948
7864
  viewBox: "0 0 24 24",
7949
7865
  fill: "currentColor",
7950
7866
  xmlns: "http://www.w3.org/2000/svg"
7951
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7867
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7952
7868
  opacity: 0.2,
7953
7869
  fill: "evenodd",
7954
7870
  clipRule: "evenodd",
@@ -8238,9 +8154,7 @@ const init$1 = () => {
8238
8154
  return switchToAddressView();
8239
8155
  });
8240
8156
  } else {
8241
- pelcroSubscribeButtonsByClass[j].addEventListener("click", () => {
8242
- return switchView("subscription-options");
8243
- });
8157
+ pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
8244
8158
  }
8245
8159
  }
8246
8160
  }
@@ -8402,8 +8316,7 @@ function Link({
8402
8316
  const init = () => {
8403
8317
  const {
8404
8318
  switchView,
8405
- set,
8406
- setProductsList
8319
+ set
8407
8320
  } = usePelcro.getStore();
8408
8321
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
8409
8322
 
@@ -8454,8 +8367,7 @@ const init = () => {
8454
8367
  }
8455
8368
 
8456
8369
  notify.dismiss(NOTIFICATION_ID);
8457
- setProductsList(window.Pelcro.product.getByEntitlements(entitlements));
8458
- switchView("plan-select");
8370
+ switchView("_plan-select-entitlements");
8459
8371
  }
8460
8372
  }, "Subscribe"), "now to get full page access.")), {
8461
8373
  className: "pelcro-notification-entitlement",
@@ -9290,7 +9202,7 @@ const PelcroModalController = ({
9290
9202
  type
9291
9203
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
9292
9204
  type
9293
- }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-renew" && React__default.Children.map(children, child => child).find(({
9205
+ }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default.Children.map(children, child => child).find(({
9294
9206
  type
9295
9207
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
9296
9208
  type
@@ -9571,10 +9483,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
9571
9483
  const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9572
9484
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9573
9485
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9574
- const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
9575
- const SWITCH_TO_NEW = "SWITCH_TO_NEW";
9576
9486
 
9577
- const initialState$i = {
9487
+ const initialState$h = {
9578
9488
  email: "",
9579
9489
  password: "",
9580
9490
  emailError: null,
@@ -9585,10 +9495,10 @@ const initialState$i = {
9585
9495
  content: ""
9586
9496
  }
9587
9497
  };
9588
- const store$i = /*#__PURE__*/createContext(initialState$i);
9498
+ const store$h = /*#__PURE__*/createContext(initialState$h);
9589
9499
  const {
9590
- Provider: Provider$i
9591
- } = store$i;
9500
+ Provider: Provider$h
9501
+ } = store$h;
9592
9502
 
9593
9503
  const LoginContainer = ({
9594
9504
  style,
@@ -9695,7 +9605,7 @@ const LoginContainer = ({
9695
9605
  });
9696
9606
 
9697
9607
  case RESET_LOGIN_FORM:
9698
- return initialState$i;
9608
+ return initialState$h;
9699
9609
 
9700
9610
  case DISABLE_LOGIN_BUTTON:
9701
9611
  return lib_7({ ...state,
@@ -9713,12 +9623,12 @@ const LoginContainer = ({
9713
9623
  default:
9714
9624
  return state;
9715
9625
  }
9716
- }, initialState$i);
9626
+ }, initialState$h);
9717
9627
  return /*#__PURE__*/React__default.createElement("div", {
9718
9628
  style: { ...style
9719
9629
  },
9720
9630
  className: `pelcro-container pelcro-login-container ${className}`
9721
- }, /*#__PURE__*/React__default.createElement(Provider$i, {
9631
+ }, /*#__PURE__*/React__default.createElement(Provider$h, {
9722
9632
  value: {
9723
9633
  state,
9724
9634
  dispatch
@@ -9726,12 +9636,12 @@ const LoginContainer = ({
9726
9636
  }, children.length ? children.map((child, i) => {
9727
9637
  if (child) {
9728
9638
  return /*#__PURE__*/React__default.cloneElement(child, {
9729
- store: store$i,
9639
+ store: store$h,
9730
9640
  key: i
9731
9641
  });
9732
9642
  }
9733
9643
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9734
- store: store$i
9644
+ store: store$h
9735
9645
  })));
9736
9646
  };
9737
9647
 
@@ -9976,7 +9886,7 @@ const LoginButton = ({
9976
9886
  buttonDisabled
9977
9887
  },
9978
9888
  dispatch
9979
- } = useContext(store$i);
9889
+ } = useContext(store$h);
9980
9890
  const {
9981
9891
  t
9982
9892
  } = useTranslation("login");
@@ -9997,23 +9907,23 @@ const LoginButton = ({
9997
9907
  };
9998
9908
 
9999
9909
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10000
- store: store$i
9910
+ store: store$h
10001
9911
  }, props));
10002
9912
 
10003
9913
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10004
- store: store$i
9914
+ store: store$h
10005
9915
  }, props));
10006
9916
 
10007
- var _path$s;
9917
+ var _path$r;
10008
9918
 
10009
- 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); }
9919
+ 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); }
10010
9920
 
10011
9921
  function SvgCheck(props) {
10012
- return /*#__PURE__*/React.createElement("svg", _extends$u({
9922
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
10013
9923
  xmlns: "http://www.w3.org/2000/svg",
10014
9924
  fill: "currentColor",
10015
9925
  viewBox: "0 0 20 20"
10016
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
9926
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
10017
9927
  fillRule: "evenodd",
10018
9928
  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",
10019
9929
  clipRule: "evenodd"
@@ -10078,7 +9988,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
10078
9988
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
10079
9989
  facebookLoginRenderProps.FacebookLogin;
10080
9990
 
10081
- const initialState$h = {
9991
+ const initialState$g = {
10082
9992
  email: "",
10083
9993
  password: "",
10084
9994
  emailError: null,
@@ -10095,10 +10005,10 @@ const initialState$h = {
10095
10005
  content: ""
10096
10006
  }
10097
10007
  };
10098
- const store$h = /*#__PURE__*/createContext(initialState$h);
10008
+ const store$g = /*#__PURE__*/createContext(initialState$g);
10099
10009
  const {
10100
- Provider: Provider$h
10101
- } = store$h;
10010
+ Provider: Provider$g
10011
+ } = store$g;
10102
10012
 
10103
10013
  const RegisterContainer = ({
10104
10014
  style,
@@ -10281,7 +10191,7 @@ const RegisterContainer = ({
10281
10191
  });
10282
10192
 
10283
10193
  case RESET_LOGIN_FORM:
10284
- return initialState$h;
10194
+ return initialState$g;
10285
10195
 
10286
10196
  case DISABLE_REGISTRATION_BUTTON:
10287
10197
  return lib_7({ ...state,
@@ -10299,12 +10209,12 @@ const RegisterContainer = ({
10299
10209
  default:
10300
10210
  return state;
10301
10211
  }
10302
- }, initialState$h);
10212
+ }, initialState$g);
10303
10213
  return /*#__PURE__*/React__default.createElement("div", {
10304
10214
  style: { ...style
10305
10215
  },
10306
10216
  className: `pelcro-container pelcro-register-container ${className}`
10307
- }, /*#__PURE__*/React__default.createElement(Provider$h, {
10217
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
10308
10218
  value: {
10309
10219
  state,
10310
10220
  dispatch
@@ -10312,12 +10222,12 @@ const RegisterContainer = ({
10312
10222
  }, children.length ? children.map((child, i) => {
10313
10223
  if (child) {
10314
10224
  return /*#__PURE__*/React__default.cloneElement(child, {
10315
- store: store$h,
10225
+ store: store$g,
10316
10226
  key: i
10317
10227
  });
10318
10228
  }
10319
10229
  }) : /*#__PURE__*/React__default.cloneElement(children, {
10320
- store: store$h
10230
+ store: store$g
10321
10231
  })));
10322
10232
  };
10323
10233
  /**
@@ -10332,15 +10242,15 @@ function hasSecurityTokenEnabled$1() {
10332
10242
  return hasSecuritySdkLoaded;
10333
10243
  }
10334
10244
 
10335
- var _path$r;
10245
+ var _path$q;
10336
10246
 
10337
- 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); }
10247
+ 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); }
10338
10248
 
10339
10249
  function SvgFacebookLogo(props) {
10340
- return /*#__PURE__*/React.createElement("svg", _extends$t({
10250
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
10341
10251
  xmlns: "http://www.w3.org/2000/svg",
10342
10252
  viewBox: "88.428 12.828 107.543 207.085"
10343
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
10253
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
10344
10254
  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",
10345
10255
  fill: "#3c5a9a"
10346
10256
  })));
@@ -10357,10 +10267,10 @@ const FacebookLoginButton = ({
10357
10267
  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;
10358
10268
  const {
10359
10269
  dispatch: loginDispatch
10360
- } = useContext(store$i);
10270
+ } = useContext(store$h);
10361
10271
  const {
10362
10272
  dispatch: registerDispatch
10363
- } = useContext(store$h);
10273
+ } = useContext(store$g);
10364
10274
 
10365
10275
  const onSuccess = facebookUser => {
10366
10276
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10413,15 +10323,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10413
10323
  unwrapExports(googleLogin);
10414
10324
  var googleLogin_1 = googleLogin.GoogleLogin;
10415
10325
 
10416
- var _path$q, _path2$3, _path3$1, _path4;
10326
+ var _path$p, _path2$3, _path3$1, _path4;
10417
10327
 
10418
- 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); }
10328
+ 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); }
10419
10329
 
10420
10330
  function SvgGoogleLogo(props) {
10421
- return /*#__PURE__*/React.createElement("svg", _extends$s({
10331
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
10422
10332
  viewBox: "0 0 24 24",
10423
10333
  xmlns: "http://www.w3.org/2000/svg"
10424
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
10334
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10425
10335
  fill: "#4285F4",
10426
10336
  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"
10427
10337
  })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
@@ -10447,10 +10357,10 @@ const GoogleLoginButton = ({
10447
10357
  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;
10448
10358
  const {
10449
10359
  dispatch: loginDispatch
10450
- } = useContext(store$i);
10360
+ } = useContext(store$h);
10451
10361
  const {
10452
10362
  dispatch: registerDispatch
10453
- } = useContext(store$h);
10363
+ } = useContext(store$g);
10454
10364
 
10455
10365
  const onSuccess = response => {
10456
10366
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10498,15 +10408,15 @@ const GoogleLoginButton = ({
10498
10408
  }) : null;
10499
10409
  };
10500
10410
 
10501
- var _path$p;
10411
+ var _path$o;
10502
10412
 
10503
- 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); }
10413
+ 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); }
10504
10414
 
10505
10415
  function SvgAuth0Logo(props) {
10506
- return /*#__PURE__*/React.createElement("svg", _extends$r({
10416
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
10507
10417
  viewBox: "0 0 256 285",
10508
10418
  xmlns: "http://www.w3.org/2000/svg"
10509
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10419
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10510
10420
  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"
10511
10421
  })));
10512
10422
  }
@@ -10546,10 +10456,10 @@ const Auth0LoginButton = ({
10546
10456
  }, [auth0Enabled, auth0Loaded]);
10547
10457
  const {
10548
10458
  dispatch: loginDispatch
10549
- } = useContext(store$i);
10459
+ } = useContext(store$h);
10550
10460
  const {
10551
10461
  dispatch: registerDispatch
10552
- } = useContext(store$h);
10462
+ } = useContext(store$g);
10553
10463
 
10554
10464
  function handleClick() {
10555
10465
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
@@ -10682,15 +10592,15 @@ function LoginView(props) {
10682
10592
  }, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
10683
10593
  }
10684
10594
 
10685
- var _path$o, _path2$2, _path3;
10595
+ var _path$n, _path2$2, _path3;
10686
10596
 
10687
- 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); }
10597
+ 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); }
10688
10598
 
10689
10599
  function SvgPelcroAuthorship(props) {
10690
- return /*#__PURE__*/React.createElement("svg", _extends$q({
10600
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
10691
10601
  xmlns: "http://www.w3.org/2000/svg",
10692
10602
  viewBox: "0 -80.652 497.072 179.991"
10693
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10603
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10694
10604
  fill: "none",
10695
10605
  stroke: "#4a4a4a",
10696
10606
  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"
@@ -10837,11 +10747,11 @@ function LoginModal({
10837
10747
  LoginModal.viewId = "login";
10838
10748
 
10839
10749
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10840
- store: store$h
10750
+ store: store$g
10841
10751
  }, props));
10842
10752
 
10843
10753
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10844
- store: store$h
10754
+ store: store$g
10845
10755
  }, props));
10846
10756
 
10847
10757
  const RegisterButton = ({
@@ -10861,7 +10771,7 @@ const RegisterButton = ({
10861
10771
  buttonDisabled
10862
10772
  },
10863
10773
  dispatch
10864
- } = useContext(store$h);
10774
+ } = useContext(store$g);
10865
10775
  const {
10866
10776
  t
10867
10777
  } = useTranslation("register");
@@ -10999,7 +10909,7 @@ function FirstName({
10999
10909
  }
11000
10910
 
11001
10911
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
11002
- store: store$h
10912
+ store: store$g
11003
10913
  }, props));
11004
10914
 
11005
10915
  function LastName({
@@ -11030,7 +10940,7 @@ function LastName({
11030
10940
  }
11031
10941
 
11032
10942
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
11033
- store: store$h
10943
+ store: store$g
11034
10944
  }, props));
11035
10945
 
11036
10946
  /**
@@ -11154,7 +11064,7 @@ function TextInput({
11154
11064
 
11155
11065
  const RegisterTextInput = props => {
11156
11066
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
11157
- store: store$h
11067
+ store: store$g
11158
11068
  }));
11159
11069
  };
11160
11070
 
@@ -11301,7 +11211,6 @@ function SelectModalWithHook(props) {
11301
11211
  (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
11302
11212
  }, []);
11303
11213
  const {
11304
- productsList,
11305
11214
  isGift,
11306
11215
  plan,
11307
11216
  product,
@@ -11311,12 +11220,11 @@ function SelectModalWithHook(props) {
11311
11220
  view,
11312
11221
  set
11313
11222
  } = usePelcro();
11314
- const isRenewingSub = view === "_plan-select-renew";
11223
+ const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
11224
+ const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
11315
11225
  return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
11316
- productsList: productsList,
11317
11226
  isGift: isGift,
11318
- disableGifting: isRenewingGift || isRenewingSub,
11319
- isRenewingSub: isRenewingSub,
11227
+ disableGifting: isRenewingGift,
11320
11228
  plan: plan,
11321
11229
  product: product,
11322
11230
  onClose: () => {
@@ -11330,10 +11238,8 @@ function SelectModalWithHook(props) {
11330
11238
  plan,
11331
11239
  isGift
11332
11240
  }),
11333
- setSubscriptionIdToRenew: subscriptionIdToRenew => set({
11334
- subscriptionIdToRenew
11335
- }),
11336
- setView: switchView
11241
+ setView: switchView,
11242
+ matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
11337
11243
  });
11338
11244
  }
11339
11245
  SelectModalWithHook.viewId = "plan-select";
@@ -11365,10 +11271,10 @@ class SelectModal extends Component {
11365
11271
  });
11366
11272
  }
11367
11273
 
11368
- if (this.props.productsList.length === 1) {
11274
+ if (this.state.productList.length === 1) {
11369
11275
  this.setState({
11370
- product: this.props.productsList[0],
11371
- planList: this.props.productsList[0].plans,
11276
+ product: this.state.productList[0],
11277
+ planList: this.state.productList[0].plans,
11372
11278
  mode: "plan"
11373
11279
  });
11374
11280
  }
@@ -11385,7 +11291,7 @@ class SelectModal extends Component {
11385
11291
  });
11386
11292
 
11387
11293
  _defineProperty$3(this, "onProductChange", e => {
11388
- const product = productsList[e.target.selectedIndex];
11294
+ const product = window.Pelcro.product.list()[e.target.selectedIndex];
11389
11295
  this.setState({
11390
11296
  product: product,
11391
11297
  plan: product.plans[0]
@@ -11451,7 +11357,7 @@ class SelectModal extends Component {
11451
11357
 
11452
11358
  _defineProperty$3(this, "renderProducts", () => {
11453
11359
  const userDidSelectProduct = Boolean(this.state.mode === "plan");
11454
- const productsToShow = userDidSelectProduct ? [this.state.product] : this.props.productsList;
11360
+ const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
11455
11361
  return productsToShow.map((product, index) => {
11456
11362
  return this.renderOneProduct(product, index);
11457
11363
  });
@@ -11464,7 +11370,7 @@ class SelectModal extends Component {
11464
11370
  return this.renderOneProduct(this.state.product);
11465
11371
  }
11466
11372
 
11467
- const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(this.props.productsList); // Render normal products if there are no available matching products
11373
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
11468
11374
 
11469
11375
  if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
11470
11376
  return this.renderProducts();
@@ -11480,7 +11386,10 @@ class SelectModal extends Component {
11480
11386
  className: "plc-text-sm plc-font-semibold"
11481
11387
  }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
11482
11388
 
11483
- function productsWithMatchedTaggedFirst(allProducts) {
11389
+ function productsWithMatchedTaggedFirst() {
11390
+ var _window$Pelcro$produc;
11391
+
11392
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11484
11393
  const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11485
11394
  const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
11486
11395
  return [productsThatMatchArticleTag, allProductsMinusMatched];
@@ -11514,7 +11423,7 @@ class SelectModal extends Component {
11514
11423
  _defineProperty$3(this, "selectProduct", e => {
11515
11424
  const id = e.target.dataset.key;
11516
11425
 
11517
- for (const product of this.props.productsList) {
11426
+ for (const product of this.state.productList) {
11518
11427
  if (+product.id === +id) {
11519
11428
  var _this$state$plan;
11520
11429
 
@@ -11567,14 +11476,6 @@ class SelectModal extends Component {
11567
11476
 
11568
11477
  _defineProperty$3(this, "submitOption", () => {
11569
11478
  this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
11570
-
11571
- if (this.props.isRenewingSub) {
11572
- var _matchingSub$id;
11573
-
11574
- const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
11575
- this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
11576
- }
11577
-
11578
11479
  const {
11579
11480
  product,
11580
11481
  isGift
@@ -11612,7 +11513,8 @@ class SelectModal extends Component {
11612
11513
  plan: {},
11613
11514
  isGift: props.isGift,
11614
11515
  disabled: true,
11615
- mode: "product"
11516
+ mode: "product",
11517
+ productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
11616
11518
  };
11617
11519
  this.product = this.props.product || window.Pelcro.paywall.getProduct();
11618
11520
  this.locale = this.props.t;
@@ -11620,7 +11522,7 @@ class SelectModal extends Component {
11620
11522
  }
11621
11523
 
11622
11524
  render() {
11623
- var _this$props$productsL, _this$props$productsL2, _window$Pelcro$site$r;
11525
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
11624
11526
 
11625
11527
  const {
11626
11528
  disableGifting
@@ -11654,7 +11556,7 @@ class SelectModal extends Component {
11654
11556
  className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
11655
11557
  }, /*#__PURE__*/React__default.createElement("h4", {
11656
11558
  className: "plc-text-2xl plc-font-semibold"
11657
- }, 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", {
11559
+ }, 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", {
11658
11560
  className: "pelcro-select-products-wrapper"
11659
11561
  }, (_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", {
11660
11562
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
@@ -13506,7 +13408,7 @@ class VantivGateway {
13506
13408
 
13507
13409
  /** @type {PaymentStateType} */
13508
13410
 
13509
- const initialState$g = {
13411
+ const initialState$f = {
13510
13412
  disableSubmit: false,
13511
13413
  isLoading: false,
13512
13414
  disableCouponButton: false,
@@ -13525,10 +13427,10 @@ const initialState$g = {
13525
13427
  content: ""
13526
13428
  }
13527
13429
  };
13528
- const store$g = /*#__PURE__*/createContext(initialState$g);
13430
+ const store$f = /*#__PURE__*/createContext(initialState$f);
13529
13431
  const {
13530
- Provider: Provider$g
13531
- } = store$g;
13432
+ Provider: Provider$f
13433
+ } = store$f;
13532
13434
 
13533
13435
  const PaymentMethodContainerWithoutStripe = ({
13534
13436
  style,
@@ -14780,21 +14682,21 @@ const PaymentMethodContainerWithoutStripe = ({
14780
14682
  default:
14781
14683
  return state;
14782
14684
  }
14783
- }, initialState$g);
14685
+ }, initialState$f);
14784
14686
  return /*#__PURE__*/React__default.createElement("div", {
14785
14687
  style: { ...style
14786
14688
  },
14787
14689
  className: `pelcro-container pelcro-payment-container ${className}`
14788
- }, /*#__PURE__*/React__default.createElement(Provider$g, {
14690
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
14789
14691
  value: {
14790
14692
  state,
14791
14693
  dispatch
14792
14694
  }
14793
14695
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
14794
- store: store$g,
14696
+ store: store$f,
14795
14697
  key: i
14796
14698
  })) : /*#__PURE__*/React__default.cloneElement(children, {
14797
- store: store$g
14699
+ store: store$f
14798
14700
  })));
14799
14701
  };
14800
14702
 
@@ -14816,7 +14718,7 @@ const PaymentMethodContainer = props => {
14816
14718
  stripeAccount: window.Pelcro.site.read().account_id,
14817
14719
  locale: getPageOrDefaultLanguage()
14818
14720
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
14819
- store: store$g
14721
+ store: store$f
14820
14722
  }, props))));
14821
14723
  }
14822
14724
 
@@ -14869,7 +14771,7 @@ const PelcroPaymentRequestButton = props => {
14869
14771
  currentPlan,
14870
14772
  updatedPrice
14871
14773
  }
14872
- } = useContext(store$g);
14774
+ } = useContext(store$f);
14873
14775
 
14874
14776
  const updatePaymentRequest = () => {
14875
14777
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -14945,7 +14847,7 @@ const DiscountedPrice = props => {
14945
14847
  taxAmount,
14946
14848
  percentOff
14947
14849
  }
14948
- } = useContext(store$g);
14850
+ } = useContext(store$f);
14949
14851
  const {
14950
14852
  order,
14951
14853
  plan
@@ -14995,7 +14897,7 @@ const SubmitPaymentMethod = ({
14995
14897
  isLoading,
14996
14898
  updatedPrice
14997
14899
  }
14998
- } = useContext(store$g);
14900
+ } = useContext(store$f);
14999
14901
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
15000
14902
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
15001
14903
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -15016,17 +14918,17 @@ const SubmitPaymentMethod = ({
15016
14918
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
15017
14919
  };
15018
14920
 
15019
- var _path$n;
14921
+ var _path$m;
15020
14922
 
15021
- 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); }
14923
+ 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); }
15022
14924
 
15023
14925
  function SvgArrowLeft(props) {
15024
- return /*#__PURE__*/React.createElement("svg", _extends$p({
14926
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
15025
14927
  xmlns: "http://www.w3.org/2000/svg",
15026
14928
  fill: "none",
15027
14929
  viewBox: "0 0 24 24",
15028
14930
  stroke: "currentColor"
15029
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
14931
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
15030
14932
  strokeLinecap: "round",
15031
14933
  strokeLinejoin: "round",
15032
14934
  strokeWidth: 2,
@@ -15045,7 +14947,7 @@ const ApplyCouponButton = ({
15045
14947
  disableCouponButton
15046
14948
  },
15047
14949
  dispatch
15048
- } = useContext(store$g);
14950
+ } = useContext(store$f);
15049
14951
  const {
15050
14952
  t
15051
14953
  } = useTranslation("checkoutForm");
@@ -15079,7 +14981,7 @@ const CouponCodeField = props => {
15079
14981
  couponCode,
15080
14982
  couponError
15081
14983
  }
15082
- } = useContext(store$g);
14984
+ } = useContext(store$f);
15083
14985
 
15084
14986
  const onCouponCodeChange = e => {
15085
14987
  dispatch({
@@ -15108,17 +15010,17 @@ const CouponCodeField = props => {
15108
15010
  }, props));
15109
15011
  };
15110
15012
 
15111
- var _path$m;
15013
+ var _path$l;
15112
15014
 
15113
- 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); }
15015
+ 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); }
15114
15016
 
15115
15017
  function SvgTicket(props) {
15116
- return /*#__PURE__*/React.createElement("svg", _extends$o({
15018
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
15117
15019
  xmlns: "http://www.w3.org/2000/svg",
15118
15020
  fill: "none",
15119
15021
  viewBox: "0 0 24 24",
15120
15022
  stroke: "currentColor"
15121
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
15023
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
15122
15024
  strokeLinecap: "round",
15123
15025
  strokeLinejoin: "round",
15124
15026
  strokeWidth: 2,
@@ -15135,7 +15037,7 @@ const CouponCode = ({
15135
15037
  state: {
15136
15038
  enableCouponField
15137
15039
  }
15138
- } = useContext(store$g);
15040
+ } = useContext(store$f);
15139
15041
  const {
15140
15042
  t
15141
15043
  } = useTranslation("checkoutForm");
@@ -15392,7 +15294,7 @@ const PaypalSubscribeButton = props => {
15392
15294
  const {
15393
15295
  dispatch,
15394
15296
  state
15395
- } = useContext(store$g);
15297
+ } = useContext(store$f);
15396
15298
  const {
15397
15299
  product,
15398
15300
  plan,
@@ -15499,16 +15401,16 @@ const BankRedirection = () => {
15499
15401
  }));
15500
15402
  };
15501
15403
 
15502
- var _path$l;
15404
+ var _path$k;
15503
15405
 
15504
- 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); }
15406
+ 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); }
15505
15407
 
15506
15408
  function SvgLock(props) {
15507
- return /*#__PURE__*/React.createElement("svg", _extends$n({
15409
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
15508
15410
  xmlns: "http://www.w3.org/2000/svg",
15509
15411
  viewBox: "0 0 20 20",
15510
15412
  fill: "currentColor"
15511
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
15413
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
15512
15414
  fillRule: "evenodd",
15513
15415
  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",
15514
15416
  clipRule: "evenodd"
@@ -15525,7 +15427,7 @@ const SelectedPaymentMethod = () => {
15525
15427
  state: {
15526
15428
  isLoading
15527
15429
  }
15528
- } = useContext(store$g);
15430
+ } = useContext(store$f);
15529
15431
  const {
15530
15432
  switchView,
15531
15433
  selectedPaymentMethodId
@@ -15567,7 +15469,7 @@ const TaxAmount = () => {
15567
15469
  state: {
15568
15470
  taxAmount
15569
15471
  }
15570
- } = useContext(store$g);
15472
+ } = useContext(store$f);
15571
15473
  const {
15572
15474
  plan
15573
15475
  } = usePelcro();
@@ -15731,12 +15633,12 @@ function SubscriptionRenewModal({
15731
15633
  }
15732
15634
  SubscriptionRenewModal.viewId = "subscription-renew";
15733
15635
 
15734
- var _path$k;
15636
+ var _path$j;
15735
15637
 
15736
- 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); }
15638
+ 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); }
15737
15639
 
15738
15640
  function SvgGift(props) {
15739
- return /*#__PURE__*/React.createElement("svg", _extends$m({
15641
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
15740
15642
  className: "plc-w-6 plc-h-6 plc-mr-2",
15741
15643
  fill: "none",
15742
15644
  stroke: "currentColor",
@@ -15745,7 +15647,7 @@ function SvgGift(props) {
15745
15647
  strokeWidth: 2,
15746
15648
  viewBox: "0 0 24 24",
15747
15649
  xmlns: "http://www.w3.org/2000/svg"
15748
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
15650
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
15749
15651
  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"
15750
15652
  })));
15751
15653
  }
@@ -16086,7 +15988,7 @@ class DefaultNewsLetter extends Component {
16086
15988
 
16087
15989
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
16088
15990
 
16089
- const initialState$f = {
15991
+ const initialState$e = {
16090
15992
  didSubToNewslettersBefore: false,
16091
15993
  newsletters: [],
16092
15994
  isListLoading: true,
@@ -16096,10 +15998,10 @@ const initialState$f = {
16096
15998
  content: ""
16097
15999
  }
16098
16000
  };
16099
- const store$f = /*#__PURE__*/createContext(initialState$f);
16001
+ const store$e = /*#__PURE__*/createContext(initialState$e);
16100
16002
  const {
16101
- Provider: Provider$f
16102
- } = store$f;
16003
+ Provider: Provider$e
16004
+ } = store$e;
16103
16005
 
16104
16006
  const NewsletterUpdateContainer = ({
16105
16007
  style,
@@ -16212,7 +16114,7 @@ const NewsletterUpdateContainer = ({
16212
16114
  default:
16213
16115
  return state;
16214
16116
  }
16215
- }, initialState$f);
16117
+ }, initialState$e);
16216
16118
  useEffect(() => {
16217
16119
  const getUserNewsletters = () => {
16218
16120
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -16256,7 +16158,7 @@ const NewsletterUpdateContainer = ({
16256
16158
  style: { ...style
16257
16159
  },
16258
16160
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
16259
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
16161
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
16260
16162
  value: {
16261
16163
  state,
16262
16164
  dispatch
@@ -16264,12 +16166,12 @@ const NewsletterUpdateContainer = ({
16264
16166
  }, children.length ? children.map((child, i) => {
16265
16167
  if (child) {
16266
16168
  return /*#__PURE__*/React__default.cloneElement(child, {
16267
- store: store$f,
16169
+ store: store$e,
16268
16170
  key: i
16269
16171
  });
16270
16172
  }
16271
16173
  }) : /*#__PURE__*/React__default.cloneElement(children, {
16272
- store: store$f
16174
+ store: store$e
16273
16175
  })));
16274
16176
  };
16275
16177
 
@@ -16284,7 +16186,7 @@ const NewsletterUpdateButton = ({
16284
16186
  isSubmitting,
16285
16187
  isListLoading
16286
16188
  }
16287
- } = useContext(store$f);
16189
+ } = useContext(store$e);
16288
16190
  const {
16289
16191
  t
16290
16192
  } = useTranslation("newsletter");
@@ -16314,7 +16216,7 @@ const NewsletterUpdateList = () => {
16314
16216
  newsletters,
16315
16217
  isListLoading
16316
16218
  }
16317
- } = useContext(store$f);
16219
+ } = useContext(store$e);
16318
16220
 
16319
16221
  if (isListLoading) {
16320
16222
  return /*#__PURE__*/React__default.createElement(Loader, {
@@ -16518,7 +16420,7 @@ function SubscriptionCreateModal({
16518
16420
  SubscriptionCreateModal.viewId = "subscription-create";
16519
16421
 
16520
16422
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
16521
- const initialState$e = {
16423
+ const initialState$d = {
16522
16424
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
16523
16425
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
16524
16426
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -16531,10 +16433,10 @@ const initialState$e = {
16531
16433
  content: ""
16532
16434
  }
16533
16435
  };
16534
- const store$e = /*#__PURE__*/createContext(initialState$e);
16436
+ const store$d = /*#__PURE__*/createContext(initialState$d);
16535
16437
  const {
16536
- Provider: Provider$e
16537
- } = store$e;
16438
+ Provider: Provider$d
16439
+ } = store$d;
16538
16440
 
16539
16441
  const UserUpdateContainer = ({
16540
16442
  style,
@@ -16666,27 +16568,27 @@ const UserUpdateContainer = ({
16666
16568
  default:
16667
16569
  return state;
16668
16570
  }
16669
- }, initialState$e);
16571
+ }, initialState$d);
16670
16572
  return /*#__PURE__*/React__default.createElement("div", {
16671
16573
  style: { ...style
16672
16574
  },
16673
16575
  className: `pelcro-container pelcro-user-update-container ${className}`
16674
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
16576
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
16675
16577
  value: {
16676
16578
  state,
16677
16579
  dispatch
16678
16580
  }
16679
16581
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16680
- store: store$e,
16582
+ store: store$d,
16681
16583
  key: i
16682
16584
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16683
- store: store$e
16585
+ store: store$d
16684
16586
  })));
16685
16587
  };
16686
16588
 
16687
16589
  const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
16688
16590
  disabled: true,
16689
- store: store$e
16591
+ store: store$d
16690
16592
  }, props));
16691
16593
 
16692
16594
  const UserUpdateButton = ({
@@ -16699,7 +16601,7 @@ const UserUpdateButton = ({
16699
16601
  buttonDisabled
16700
16602
  },
16701
16603
  dispatch
16702
- } = useContext(store$e);
16604
+ } = useContext(store$d);
16703
16605
  const {
16704
16606
  t
16705
16607
  } = useTranslation("userEdit");
@@ -16716,11 +16618,11 @@ const UserUpdateButton = ({
16716
16618
  };
16717
16619
 
16718
16620
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
16719
- store: store$e
16621
+ store: store$d
16720
16622
  }, props));
16721
16623
 
16722
16624
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
16723
- store: store$e
16625
+ store: store$d
16724
16626
  }, props));
16725
16627
 
16726
16628
  function Phone({
@@ -16749,22 +16651,22 @@ function Phone({
16749
16651
  }
16750
16652
 
16751
16653
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
16752
- store: store$e
16654
+ store: store$d
16753
16655
  }, props));
16754
16656
 
16755
16657
  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";
16756
16658
 
16757
- var _path$j;
16659
+ var _path$i;
16758
16660
 
16759
- 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); }
16661
+ 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); }
16760
16662
 
16761
16663
  function SvgEdit(props) {
16762
- return /*#__PURE__*/React.createElement("svg", _extends$l({
16664
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
16763
16665
  className: "plc-w-6 plc-h-6",
16764
16666
  xmlns: "http://www.w3.org/2000/svg",
16765
16667
  viewBox: "0 0 20 20",
16766
16668
  fill: "currentColor"
16767
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
16669
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
16768
16670
  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"
16769
16671
  })));
16770
16672
  }
@@ -16896,16 +16798,16 @@ function DisplayName({
16896
16798
  }
16897
16799
 
16898
16800
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
16899
- store: store$e
16801
+ store: store$d
16900
16802
  }, props));
16901
16803
 
16902
16804
  const UserUpdateTextInput = props => {
16903
16805
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
16904
- store: store$e
16806
+ store: store$d
16905
16807
  }));
16906
16808
  };
16907
16809
 
16908
- const initialState$d = {
16810
+ const initialState$c = {
16909
16811
  isSubmitting: false,
16910
16812
  firstName: "",
16911
16813
  firstNameError: "",
@@ -16930,10 +16832,10 @@ const initialState$d = {
16930
16832
  content: ""
16931
16833
  }
16932
16834
  };
16933
- const store$d = /*#__PURE__*/createContext(initialState$d);
16835
+ const store$c = /*#__PURE__*/createContext(initialState$c);
16934
16836
  const {
16935
- Provider: Provider$d
16936
- } = store$d;
16837
+ Provider: Provider$c
16838
+ } = store$c;
16937
16839
 
16938
16840
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
16939
16841
 
@@ -17140,7 +17042,7 @@ const AddressCreateContainer = ({
17140
17042
  default:
17141
17043
  return state;
17142
17044
  }
17143
- }, initialState$d);
17045
+ }, initialState$c);
17144
17046
  useEffect(() => {
17145
17047
  const getStates = () => {
17146
17048
  dispatch({
@@ -17172,16 +17074,16 @@ const AddressCreateContainer = ({
17172
17074
  style: { ...style
17173
17075
  },
17174
17076
  className: `pelcro-container pelcro-address-create-container ${className}`
17175
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
17077
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
17176
17078
  value: {
17177
17079
  state,
17178
17080
  dispatch
17179
17081
  }
17180
17082
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17181
- store: store$d,
17083
+ store: store$c,
17182
17084
  key: i
17183
17085
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17184
- store: store$d
17086
+ store: store$c
17185
17087
  })));
17186
17088
  };
17187
17089
 
@@ -17192,7 +17094,7 @@ function AddressCreateFirstName(props) {
17192
17094
  firstName,
17193
17095
  firstNameError
17194
17096
  }
17195
- } = useContext(store$d);
17097
+ } = useContext(store$c);
17196
17098
 
17197
17099
  const handleBlur = () => {
17198
17100
  return dispatch({
@@ -17235,7 +17137,7 @@ function AddressCreateLastName(props) {
17235
17137
  lastName,
17236
17138
  lastNameError
17237
17139
  }
17238
- } = useContext(store$d);
17140
+ } = useContext(store$c);
17239
17141
 
17240
17142
  const handleBlur = () => {
17241
17143
  return dispatch({
@@ -17278,7 +17180,7 @@ function AddressCreateLine1(props) {
17278
17180
  line1,
17279
17181
  line1Error
17280
17182
  }
17281
- } = useContext(store$d);
17183
+ } = useContext(store$c);
17282
17184
 
17283
17185
  const handleBlur = () => {
17284
17186
  return dispatch({
@@ -17321,7 +17223,7 @@ function AddressCreateCity(props) {
17321
17223
  city,
17322
17224
  cityError
17323
17225
  }
17324
- } = useContext(store$d);
17226
+ } = useContext(store$c);
17325
17227
 
17326
17228
  const handleBlur = () => {
17327
17229
  return dispatch({
@@ -17364,7 +17266,7 @@ function AddressCreatePostalCode(props) {
17364
17266
  postalCode,
17365
17267
  postalCodeError
17366
17268
  }
17367
- } = useContext(store$d);
17269
+ } = useContext(store$c);
17368
17270
 
17369
17271
  const handleBlur = () => {
17370
17272
  return dispatch({
@@ -17410,7 +17312,7 @@ const AddressCreateSubmit = ({
17410
17312
  state: {
17411
17313
  isSubmitting
17412
17314
  }
17413
- } = useContext(store$d);
17315
+ } = useContext(store$c);
17414
17316
  const {
17415
17317
  t
17416
17318
  } = useTranslation("address");
@@ -17521,7 +17423,7 @@ function CountrySelect({
17521
17423
  }
17522
17424
 
17523
17425
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
17524
- store: store$d
17426
+ store: store$c
17525
17427
  }, props));
17526
17428
 
17527
17429
  function StateSelect({
@@ -17609,7 +17511,7 @@ function StateSelect({
17609
17511
  }
17610
17512
 
17611
17513
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17612
- store: store$d
17514
+ store: store$c
17613
17515
  }, props));
17614
17516
 
17615
17517
  const AddressCreateView = props => {
@@ -17714,18 +17616,18 @@ AddressCreateModal.viewId = "address-create";
17714
17616
 
17715
17617
  const AddressCreateTextInput = props => {
17716
17618
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17717
- store: store$d
17619
+ store: store$c
17718
17620
  }));
17719
17621
  };
17720
17622
 
17721
17623
  const AddressCreateLine2 = props => {
17722
17624
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17723
17625
  fieldName: "line2",
17724
- store: store$d
17626
+ store: store$c
17725
17627
  }, props));
17726
17628
  };
17727
17629
 
17728
- const initialState$c = {
17630
+ const initialState$b = {
17729
17631
  isSubmitting: false,
17730
17632
  firstName: "",
17731
17633
  firstNameError: "",
@@ -17750,10 +17652,10 @@ const initialState$c = {
17750
17652
  content: ""
17751
17653
  }
17752
17654
  };
17753
- const store$c = /*#__PURE__*/createContext(initialState$c);
17655
+ const store$b = /*#__PURE__*/createContext(initialState$b);
17754
17656
  const {
17755
- Provider: Provider$c
17756
- } = store$c;
17657
+ Provider: Provider$b
17658
+ } = store$b;
17757
17659
 
17758
17660
  const AddressUpdateContainer = ({
17759
17661
  style,
@@ -17805,7 +17707,7 @@ const AddressUpdateContainer = ({
17805
17707
  const thisAddress = addresses[address];
17806
17708
 
17807
17709
  if (+thisAddress.id === +addressId) {
17808
- const newState = { ...initialState$c,
17710
+ const newState = { ...initialState$b,
17809
17711
  firstName: thisAddress.first_name,
17810
17712
  lastName: thisAddress.last_name,
17811
17713
  line1: thisAddress.line1,
@@ -17938,7 +17840,7 @@ const AddressUpdateContainer = ({
17938
17840
  default:
17939
17841
  return state;
17940
17842
  }
17941
- }, initialState$c);
17843
+ }, initialState$b);
17942
17844
  useEffect(() => {
17943
17845
  const getStates = () => {
17944
17846
  dispatch({
@@ -17970,21 +17872,21 @@ const AddressUpdateContainer = ({
17970
17872
  style: { ...style
17971
17873
  },
17972
17874
  className: `pelcro-container pelcro-address-update-container ${className}`
17973
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
17875
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
17974
17876
  value: {
17975
17877
  state,
17976
17878
  dispatch
17977
17879
  }
17978
17880
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17979
- store: store$c,
17881
+ store: store$b,
17980
17882
  key: i
17981
17883
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17982
- store: store$c
17884
+ store: store$b
17983
17885
  })));
17984
17886
  };
17985
17887
 
17986
17888
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
17987
- store: store$c
17889
+ store: store$b
17988
17890
  }, props));
17989
17891
 
17990
17892
  function AddressUpdateFirstName(props) {
@@ -17994,7 +17896,7 @@ function AddressUpdateFirstName(props) {
17994
17896
  firstName,
17995
17897
  firstNameError
17996
17898
  }
17997
- } = useContext(store$c);
17899
+ } = useContext(store$b);
17998
17900
 
17999
17901
  const handleBlur = () => {
18000
17902
  return dispatch({
@@ -18037,7 +17939,7 @@ function AddressUpdateLastName(props) {
18037
17939
  lastName,
18038
17940
  lastNameError
18039
17941
  }
18040
- } = useContext(store$c);
17942
+ } = useContext(store$b);
18041
17943
 
18042
17944
  const handleBlur = () => {
18043
17945
  return dispatch({
@@ -18080,7 +17982,7 @@ function AddressUpdateLine1(props) {
18080
17982
  line1,
18081
17983
  line1Error
18082
17984
  }
18083
- } = useContext(store$c);
17985
+ } = useContext(store$b);
18084
17986
 
18085
17987
  const handleBlur = () => {
18086
17988
  return dispatch({
@@ -18120,7 +18022,7 @@ const AddressUpdateLine2 = props => {
18120
18022
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
18121
18023
  fieldName: "line2"
18122
18024
  }, props, {
18123
- store: store$c
18025
+ store: store$b
18124
18026
  }));
18125
18027
  };
18126
18028
 
@@ -18131,7 +18033,7 @@ function AddressUpdateCity(props) {
18131
18033
  city,
18132
18034
  cityError
18133
18035
  }
18134
- } = useContext(store$c);
18036
+ } = useContext(store$b);
18135
18037
 
18136
18038
  const handleBlur = () => {
18137
18039
  return dispatch({
@@ -18174,7 +18076,7 @@ function AddressUpdatePostalCode(props) {
18174
18076
  postalCode,
18175
18077
  postalCodeError
18176
18078
  }
18177
- } = useContext(store$c);
18079
+ } = useContext(store$b);
18178
18080
 
18179
18081
  const handleBlur = () => {
18180
18082
  return dispatch({
@@ -18220,7 +18122,7 @@ const AddressUpdateSubmit = ({
18220
18122
  state: {
18221
18123
  isSubmitting
18222
18124
  }
18223
- } = useContext(store$c);
18125
+ } = useContext(store$b);
18224
18126
  const {
18225
18127
  t
18226
18128
  } = useTranslation("address");
@@ -18236,7 +18138,7 @@ const AddressUpdateSubmit = ({
18236
18138
  };
18237
18139
 
18238
18140
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
18239
- store: store$c
18141
+ store: store$b
18240
18142
  }, props));
18241
18143
 
18242
18144
  const AddressUpdateView = props => {
@@ -18319,7 +18221,7 @@ AddressUpdateModal.viewId = "address-edit";
18319
18221
 
18320
18222
  const AddressUpdateTextInput = props => {
18321
18223
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
18322
- store: store$c
18224
+ store: store$b
18323
18225
  }));
18324
18226
  };
18325
18227
 
@@ -18402,7 +18304,7 @@ const PaymentMethodUpdateModal = props => {
18402
18304
  };
18403
18305
  PaymentMethodUpdateModal.viewId = "payment-method-update";
18404
18306
 
18405
- const initialState$b = {
18307
+ const initialState$a = {
18406
18308
  email: "",
18407
18309
  password: "",
18408
18310
  passwordError: null,
@@ -18415,10 +18317,10 @@ const initialState$b = {
18415
18317
  content: ""
18416
18318
  }
18417
18319
  };
18418
- const store$b = /*#__PURE__*/createContext(initialState$b);
18320
+ const store$a = /*#__PURE__*/createContext(initialState$a);
18419
18321
  const {
18420
- Provider: Provider$b
18421
- } = store$b;
18322
+ Provider: Provider$a
18323
+ } = store$a;
18422
18324
 
18423
18325
  const PasswordResetContainer = ({
18424
18326
  style,
@@ -18475,7 +18377,7 @@ const PasswordResetContainer = ({
18475
18377
  type: SET_EMAIL,
18476
18378
  payload: window.Pelcro.helpers.getURLParameter("email")
18477
18379
  });
18478
- initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
18380
+ initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
18479
18381
  dispatch({
18480
18382
  type: SET_TOKEN,
18481
18383
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -18535,26 +18437,26 @@ const PasswordResetContainer = ({
18535
18437
  default:
18536
18438
  return state;
18537
18439
  }
18538
- }, initialState$b);
18440
+ }, initialState$a);
18539
18441
  return /*#__PURE__*/React__default.createElement("div", {
18540
18442
  style: { ...style
18541
18443
  },
18542
18444
  className: `pelcro-container pelcro-password-reset-container ${className}`
18543
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
18445
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
18544
18446
  value: {
18545
18447
  state,
18546
18448
  dispatch
18547
18449
  }
18548
18450
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18549
- store: store$b,
18451
+ store: store$a,
18550
18452
  key: i
18551
18453
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18552
- store: store$b
18454
+ store: store$a
18553
18455
  })));
18554
18456
  };
18555
18457
 
18556
18458
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
18557
- store: store$b
18459
+ store: store$a
18558
18460
  }, props));
18559
18461
 
18560
18462
  const PasswordResetButton = ({
@@ -18567,7 +18469,7 @@ const PasswordResetButton = ({
18567
18469
  buttonDisabled
18568
18470
  },
18569
18471
  dispatch
18570
- } = useContext(store$b);
18472
+ } = useContext(store$a);
18571
18473
  const {
18572
18474
  t
18573
18475
  } = useTranslation("passwordReset");
@@ -18584,14 +18486,14 @@ const PasswordResetButton = ({
18584
18486
  };
18585
18487
 
18586
18488
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18587
- store: store$b
18489
+ store: store$a
18588
18490
  }, props, {
18589
18491
  value: window.Pelcro.helpers.getURLParameter("email"),
18590
18492
  disabled: true
18591
18493
  }));
18592
18494
 
18593
18495
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
18594
- store: store$b
18496
+ store: store$a
18595
18497
  }, props));
18596
18498
 
18597
18499
  const PasswordResetView = props => {
@@ -18643,7 +18545,7 @@ const PasswordResetModal = ({
18643
18545
  };
18644
18546
  PasswordResetModal.viewId = "password-reset";
18645
18547
 
18646
- const initialState$a = {
18548
+ const initialState$9 = {
18647
18549
  email: "",
18648
18550
  emailError: null,
18649
18551
  buttonDisabled: false,
@@ -18652,10 +18554,10 @@ const initialState$a = {
18652
18554
  content: ""
18653
18555
  }
18654
18556
  };
18655
- const store$a = /*#__PURE__*/createContext(initialState$a);
18557
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
18656
18558
  const {
18657
- Provider: Provider$a
18658
- } = store$a;
18559
+ Provider: Provider$9
18560
+ } = store$9;
18659
18561
 
18660
18562
  const PasswordForgotContainer = ({
18661
18563
  style,
@@ -18733,21 +18635,21 @@ const PasswordForgotContainer = ({
18733
18635
  default:
18734
18636
  return state;
18735
18637
  }
18736
- }, initialState$a);
18638
+ }, initialState$9);
18737
18639
  return /*#__PURE__*/React__default.createElement("div", {
18738
18640
  style: { ...style
18739
18641
  },
18740
18642
  className: `pelcro-container pelcro-password-forgot-container ${className}`
18741
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
18643
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
18742
18644
  value: {
18743
18645
  state,
18744
18646
  dispatch
18745
18647
  }
18746
18648
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18747
- store: store$a,
18649
+ store: store$9,
18748
18650
  key: i
18749
18651
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18750
- store: store$a
18652
+ store: store$9
18751
18653
  })));
18752
18654
  };
18753
18655
 
@@ -18763,7 +18665,7 @@ const PasswordForgotButton = ({
18763
18665
  emailError
18764
18666
  },
18765
18667
  dispatch
18766
- } = useContext(store$a);
18668
+ } = useContext(store$9);
18767
18669
  const {
18768
18670
  t
18769
18671
  } = useTranslation("passwordForgot");
@@ -18784,7 +18686,7 @@ const PasswordForgotButton = ({
18784
18686
  };
18785
18687
 
18786
18688
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18787
- store: store$a
18689
+ store: store$9
18788
18690
  }, props));
18789
18691
 
18790
18692
  const PasswordForgotView = props => {
@@ -18834,7 +18736,7 @@ const PasswordForgotModal = ({
18834
18736
  };
18835
18737
  PasswordForgotModal.viewId = "password-forgot";
18836
18738
 
18837
- const initialState$9 = {
18739
+ const initialState$8 = {
18838
18740
  currentPassword: "",
18839
18741
  newPassword: "",
18840
18742
  confirmNewPassword: "",
@@ -18848,10 +18750,10 @@ const initialState$9 = {
18848
18750
  content: ""
18849
18751
  }
18850
18752
  };
18851
- const store$9 = /*#__PURE__*/createContext(initialState$9);
18753
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
18852
18754
  const {
18853
- Provider: Provider$9
18854
- } = store$9;
18755
+ Provider: Provider$8
18756
+ } = store$8;
18855
18757
  const PasswordChangeContainer = ({
18856
18758
  style,
18857
18759
  className = "",
@@ -19003,21 +18905,21 @@ const PasswordChangeContainer = ({
19003
18905
  default:
19004
18906
  return state;
19005
18907
  }
19006
- }, initialState$9);
18908
+ }, initialState$8);
19007
18909
  return /*#__PURE__*/React__default.createElement("div", {
19008
18910
  style: { ...style
19009
18911
  },
19010
18912
  className: `pelcro-container pelcro-password-change-container ${className}`
19011
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
18913
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
19012
18914
  value: {
19013
18915
  state,
19014
18916
  dispatch
19015
18917
  }
19016
18918
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19017
- store: store$9,
18919
+ store: store$8,
19018
18920
  key: i
19019
18921
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19020
- store: store$9
18922
+ store: store$8
19021
18923
  })));
19022
18924
  };
19023
18925
 
@@ -19028,7 +18930,7 @@ function PasswordChangeCurrentPassword(props) {
19028
18930
  currentPassword,
19029
18931
  currentPasswordError
19030
18932
  }
19031
- } = useContext(store$9);
18933
+ } = useContext(store$8);
19032
18934
  const handleBlur = useCallback(() => {
19033
18935
  return dispatch({
19034
18936
  type: VALIDATE_PASSWORD
@@ -19062,7 +18964,7 @@ function PasswordChangeNewPassword(props) {
19062
18964
  newPassword,
19063
18965
  newPasswordError
19064
18966
  }
19065
- } = useContext(store$9);
18967
+ } = useContext(store$8);
19066
18968
  const handleBlur = useCallback(() => {
19067
18969
  return dispatch({
19068
18970
  type: VALIDATE_NEW_PASSWORD
@@ -19096,7 +18998,7 @@ function PasswordChangeConfirmNewPassword(props) {
19096
18998
  confirmNewPassword,
19097
18999
  confirmNewPasswordError
19098
19000
  }
19099
- } = useContext(store$9);
19001
+ } = useContext(store$8);
19100
19002
  const handleBlur = useCallback(() => {
19101
19003
  return dispatch({
19102
19004
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -19137,7 +19039,7 @@ const PasswordChangeButton = ({
19137
19039
  confirmNewPasswordError
19138
19040
  },
19139
19041
  dispatch
19140
- } = useContext(store$9);
19042
+ } = useContext(store$8);
19141
19043
  const {
19142
19044
  t
19143
19045
  } = useTranslation("passwordChange");
@@ -19203,17 +19105,17 @@ const PasswordChangeModal = ({
19203
19105
  };
19204
19106
  PasswordChangeModal.viewId = "password-change";
19205
19107
 
19206
- const initialState$8 = {
19108
+ const initialState$7 = {
19207
19109
  buttonDisabled: false,
19208
19110
  alert: {
19209
19111
  type: "error",
19210
19112
  content: ""
19211
19113
  }
19212
19114
  };
19213
- const store$8 = /*#__PURE__*/createContext(initialState$8);
19115
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
19214
19116
  const {
19215
- Provider: Provider$8
19216
- } = store$8;
19117
+ Provider: Provider$7
19118
+ } = store$7;
19217
19119
 
19218
19120
  const CartContainer = ({
19219
19121
  style,
@@ -19304,21 +19206,21 @@ const CartContainer = ({
19304
19206
  default:
19305
19207
  return state;
19306
19208
  }
19307
- }, initialState$8);
19209
+ }, initialState$7);
19308
19210
  return /*#__PURE__*/React__default.createElement("div", {
19309
19211
  style: { ...style
19310
19212
  },
19311
19213
  className: `pelcro-container pelcro-cart-container ${className}`
19312
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
19214
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
19313
19215
  value: {
19314
19216
  state,
19315
19217
  dispatch
19316
19218
  }
19317
19219
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19318
- store: store$8,
19220
+ store: store$7,
19319
19221
  key: i
19320
19222
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19321
- store: store$8
19223
+ store: store$7
19322
19224
  })));
19323
19225
  };
19324
19226
 
@@ -19355,7 +19257,7 @@ const CartSubmit = ({
19355
19257
  buttonDisabled
19356
19258
  },
19357
19259
  dispatch
19358
- } = useContext(store$8);
19260
+ } = useContext(store$7);
19359
19261
  const {
19360
19262
  t
19361
19263
  } = useTranslation("cart");
@@ -19386,7 +19288,7 @@ const CartTotalPrice = () => {
19386
19288
  state: {
19387
19289
  alert
19388
19290
  }
19389
- } = useContext(store$8);
19291
+ } = useContext(store$7);
19390
19292
  const {
19391
19293
  cartItems
19392
19294
  } = usePelcro();
@@ -19699,7 +19601,7 @@ const OrderConfirmModal = props => {
19699
19601
  };
19700
19602
  OrderConfirmModal.viewId = "order-confirm";
19701
19603
 
19702
- const initialState$7 = {
19604
+ const initialState$6 = {
19703
19605
  email: "",
19704
19606
  firstName: "",
19705
19607
  lastName: "",
@@ -19711,10 +19613,10 @@ const initialState$7 = {
19711
19613
  content: ""
19712
19614
  }
19713
19615
  };
19714
- const store$7 = /*#__PURE__*/createContext(initialState$7);
19616
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
19715
19617
  const {
19716
- Provider: Provider$7
19717
- } = store$7;
19618
+ Provider: Provider$6
19619
+ } = store$6;
19718
19620
 
19719
19621
  const GiftCreateContainer = ({
19720
19622
  style,
@@ -19818,21 +19720,21 @@ const GiftCreateContainer = ({
19818
19720
  default:
19819
19721
  return state;
19820
19722
  }
19821
- }, initialState$7);
19723
+ }, initialState$6);
19822
19724
  return /*#__PURE__*/React__default.createElement("div", {
19823
19725
  style: { ...style
19824
19726
  },
19825
19727
  className: `pelcro-container pelcro-gift-create-container ${className}`
19826
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
19728
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
19827
19729
  value: {
19828
19730
  state,
19829
19731
  dispatch
19830
19732
  }
19831
19733
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19832
- store: store$7,
19734
+ store: store$6,
19833
19735
  key: i
19834
19736
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19835
- store: store$7
19737
+ store: store$6
19836
19738
  })));
19837
19739
  };
19838
19740
 
@@ -19846,7 +19748,7 @@ const GiftCreateSubmitButton = ({
19846
19748
  state: {
19847
19749
  disableSubmit
19848
19750
  }
19849
- } = useContext(store$7);
19751
+ } = useContext(store$6);
19850
19752
  const {
19851
19753
  t
19852
19754
  } = useTranslation("register");
@@ -19863,29 +19765,29 @@ const GiftCreateSubmitButton = ({
19863
19765
 
19864
19766
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
19865
19767
  initWithUserEmail: false,
19866
- store: store$7
19768
+ store: store$6
19867
19769
  }, props));
19868
19770
 
19869
19771
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
19870
- store: store$7
19772
+ store: store$6
19871
19773
  }, props));
19872
19774
 
19873
19775
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
19874
- store: store$7
19776
+ store: store$6
19875
19777
  }, props));
19876
19778
 
19877
- var _path$i;
19779
+ var _path$h;
19878
19780
 
19879
- 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); }
19781
+ 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); }
19880
19782
 
19881
19783
  function SvgInfoCircle(props) {
19882
- return /*#__PURE__*/React.createElement("svg", _extends$k({
19784
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
19883
19785
  xmlns: "http://www.w3.org/2000/svg",
19884
19786
  className: "plc-w-5 plc-h-5",
19885
19787
  fill: "none",
19886
19788
  viewBox: "0 0 24 24",
19887
19789
  stroke: "currentColor"
19888
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
19790
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
19889
19791
  strokeLinecap: "round",
19890
19792
  strokeLinejoin: "round",
19891
19793
  strokeWidth: 2,
@@ -19956,7 +19858,7 @@ const GiftCreateStartDate = props => {
19956
19858
  const {
19957
19859
  dispatch,
19958
19860
  state
19959
- } = useContext(store$7);
19861
+ } = useContext(store$6);
19960
19862
 
19961
19863
  const handleInputChange = value => {
19962
19864
  dispatch({
@@ -20029,7 +19931,7 @@ function GiftCreateMessage(props) {
20029
19931
  const {
20030
19932
  dispatch,
20031
19933
  state
20032
- } = useContext(store$7);
19934
+ } = useContext(store$6);
20033
19935
  const MAX_CHARS_COUNT = 200;
20034
19936
  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;
20035
19937
 
@@ -20153,7 +20055,7 @@ const GiftCreateModal = ({
20153
20055
  };
20154
20056
  GiftCreateModal.viewId = "gift-create";
20155
20057
 
20156
- const initialState$6 = {
20058
+ const initialState$5 = {
20157
20059
  giftCode: "",
20158
20060
  buttonDisabled: true,
20159
20061
  alert: {
@@ -20161,10 +20063,10 @@ const initialState$6 = {
20161
20063
  content: ""
20162
20064
  }
20163
20065
  };
20164
- const store$6 = /*#__PURE__*/createContext(initialState$6);
20066
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
20165
20067
  const {
20166
- Provider: Provider$6
20167
- } = store$6;
20068
+ Provider: Provider$5
20069
+ } = store$5;
20168
20070
 
20169
20071
  const GiftRedeemContainer = ({
20170
20072
  style,
@@ -20229,21 +20131,21 @@ const GiftRedeemContainer = ({
20229
20131
  default:
20230
20132
  return state;
20231
20133
  }
20232
- }, initialState$6);
20134
+ }, initialState$5);
20233
20135
  return /*#__PURE__*/React__default.createElement("div", {
20234
20136
  style: { ...style
20235
20137
  },
20236
20138
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
20237
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
20139
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
20238
20140
  value: {
20239
20141
  state,
20240
20142
  dispatch
20241
20143
  }
20242
20144
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20243
- store: store$6,
20145
+ store: store$5,
20244
20146
  key: i
20245
20147
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20246
- store: store$6
20148
+ store: store$5
20247
20149
  })));
20248
20150
  };
20249
20151
 
@@ -20280,7 +20182,7 @@ function GiftCode({
20280
20182
  }
20281
20183
 
20282
20184
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
20283
- store: store$6
20185
+ store: store$5
20284
20186
  }, props));
20285
20187
 
20286
20188
  const GiftRedeemSubmitButton = ({
@@ -20293,7 +20195,7 @@ const GiftRedeemSubmitButton = ({
20293
20195
  state: {
20294
20196
  disableSubmit
20295
20197
  }
20296
- } = useContext(store$6);
20198
+ } = useContext(store$5);
20297
20199
  const {
20298
20200
  t
20299
20201
  } = useTranslation("register");
@@ -20386,7 +20288,7 @@ const moveDefaultAddressToStart = addresses => {
20386
20288
  return [defaultAddress, ...addressesWithoutDefault];
20387
20289
  };
20388
20290
 
20389
- const initialState$5 = {
20291
+ const initialState$4 = {
20390
20292
  addresses: [],
20391
20293
  selectedAddressId: null,
20392
20294
  isSubmitting: false,
@@ -20395,10 +20297,10 @@ const initialState$5 = {
20395
20297
  content: ""
20396
20298
  }
20397
20299
  };
20398
- const store$5 = /*#__PURE__*/createContext(initialState$5);
20300
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
20399
20301
  const {
20400
- Provider: Provider$5
20401
- } = store$5;
20302
+ Provider: Provider$4
20303
+ } = store$4;
20402
20304
 
20403
20305
  const AddressSelectContainer = ({
20404
20306
  style,
@@ -20493,7 +20395,7 @@ const AddressSelectContainer = ({
20493
20395
  default:
20494
20396
  return state;
20495
20397
  }
20496
- }, initialState$5);
20398
+ }, initialState$4);
20497
20399
  useEffect(() => {
20498
20400
  var _window$Pelcro$user$r;
20499
20401
 
@@ -20506,16 +20408,16 @@ const AddressSelectContainer = ({
20506
20408
  style: { ...style
20507
20409
  },
20508
20410
  className: `pelcro-container pelcro-address-select-container ${className}`
20509
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
20411
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
20510
20412
  value: {
20511
20413
  state,
20512
20414
  dispatch
20513
20415
  }
20514
20416
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20515
- store: store$5,
20417
+ store: store$4,
20516
20418
  key: i
20517
20419
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20518
- store: store$5
20420
+ store: store$4
20519
20421
  })));
20520
20422
  };
20521
20423
 
@@ -20526,7 +20428,7 @@ const AddressSelectList = () => {
20526
20428
  addresses,
20527
20429
  selectedAddressId
20528
20430
  }
20529
- } = useContext(store$5);
20431
+ } = useContext(store$4);
20530
20432
 
20531
20433
  const handleAddressSelect = event => {
20532
20434
  dispatch({
@@ -20570,7 +20472,7 @@ const AddressSelectSubmit = ({
20570
20472
  selectedAddressId,
20571
20473
  isSubmitting
20572
20474
  }
20573
- } = useContext(store$5);
20475
+ } = useContext(store$4);
20574
20476
  const {
20575
20477
  t
20576
20478
  } = useTranslation("address");
@@ -20666,7 +20568,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
20666
20568
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
20667
20569
  };
20668
20570
 
20669
- const initialState$4 = {
20571
+ const initialState$3 = {
20670
20572
  paymentMethods: [],
20671
20573
  selectedPaymentMethodId: null,
20672
20574
  isSubmitting: false,
@@ -20675,10 +20577,10 @@ const initialState$4 = {
20675
20577
  content: ""
20676
20578
  }
20677
20579
  };
20678
- const store$4 = /*#__PURE__*/createContext(initialState$4);
20580
+ const store$3 = /*#__PURE__*/createContext(initialState$3);
20679
20581
  const {
20680
- Provider: Provider$4
20681
- } = store$4;
20582
+ Provider: Provider$3
20583
+ } = store$3;
20682
20584
 
20683
20585
  const PaymentMethodSelectContainer = ({
20684
20586
  style,
@@ -20737,7 +20639,7 @@ const PaymentMethodSelectContainer = ({
20737
20639
  default:
20738
20640
  return state;
20739
20641
  }
20740
- }, initialState$4);
20642
+ }, initialState$3);
20741
20643
  useEffect(() => {
20742
20644
  var _window$Pelcro$user$r3;
20743
20645
 
@@ -20750,16 +20652,16 @@ const PaymentMethodSelectContainer = ({
20750
20652
  style: { ...style
20751
20653
  },
20752
20654
  className: `pelcro-container pelcro-payment-select-container ${className}`
20753
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
20655
+ }, /*#__PURE__*/React__default.createElement(Provider$3, {
20754
20656
  value: {
20755
20657
  state,
20756
20658
  dispatch
20757
20659
  }
20758
20660
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
20759
- store: store$4,
20661
+ store: store$3,
20760
20662
  key: i
20761
20663
  })) : /*#__PURE__*/React__default.cloneElement(children, {
20762
- store: store$4
20664
+ store: store$3
20763
20665
  })));
20764
20666
  };
20765
20667
 
@@ -20773,7 +20675,7 @@ const PaymentMethodSelectList = () => {
20773
20675
  paymentMethods,
20774
20676
  selectedPaymentMethodId
20775
20677
  }
20776
- } = useContext(store$4);
20678
+ } = useContext(store$3);
20777
20679
 
20778
20680
  const handlePaymentMethodSelect = event => {
20779
20681
  dispatch({
@@ -20823,7 +20725,7 @@ const PaymentMethodSelectSubmit = ({
20823
20725
  selectedPaymentMethodId,
20824
20726
  isSubmitting
20825
20727
  }
20826
- } = useContext(store$4);
20728
+ } = useContext(store$3);
20827
20729
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
20828
20730
  onClick: () => {
20829
20731
  dispatch({
@@ -20897,8 +20799,8 @@ const PaymentMethodSelectModal = ({
20897
20799
  };
20898
20800
  PaymentMethodSelectModal.viewId = "payment-method-select";
20899
20801
 
20900
- function _extends$j() {
20901
- _extends$j = Object.assign || function (target) {
20802
+ function _extends$i() {
20803
+ _extends$i = Object.assign || function (target) {
20902
20804
  for (var i = 1; i < arguments.length; i++) {
20903
20805
  var source = arguments[i];
20904
20806
 
@@ -20912,7 +20814,7 @@ function _extends$j() {
20912
20814
  return target;
20913
20815
  };
20914
20816
 
20915
- return _extends$j.apply(this, arguments);
20817
+ return _extends$i.apply(this, arguments);
20916
20818
  }
20917
20819
 
20918
20820
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -21096,7 +20998,7 @@ function render(props, propsBag, defaultTag, features, visible) {
21096
20998
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
21097
20999
  return null;
21098
21000
  }, _match[RenderStrategy.Hidden] = function () {
21099
- return _render(_extends$j({}, _rest, {
21001
+ return _render(_extends$i({}, _rest, {
21100
21002
  hidden: true,
21101
21003
  style: {
21102
21004
  display: 'none'
@@ -21624,7 +21526,7 @@ function TransitionChild(props) {
21624
21526
  var passthroughProps = rest;
21625
21527
  return React__default.createElement(NestingContext.Provider, {
21626
21528
  value: nesting
21627
- }, render(_extends$j({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21529
+ }, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21628
21530
  }
21629
21531
 
21630
21532
  function Transition(props) {
@@ -21668,7 +21570,7 @@ function Transition(props) {
21668
21570
  value: nestingBag
21669
21571
  }, React__default.createElement(TransitionContext.Provider, {
21670
21572
  value: transitionBag
21671
- }, render(_extends$j({}, sharedProps, {
21573
+ }, render(_extends$i({}, sharedProps, {
21672
21574
  as: Fragment,
21673
21575
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
21674
21576
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -21795,12 +21697,12 @@ var ActionTypes;
21795
21697
  })(ActionTypes || (ActionTypes = {}));
21796
21698
 
21797
21699
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
21798
- return _extends$j({}, state, {
21700
+ return _extends$i({}, state, {
21799
21701
  activeItemIndex: null,
21800
21702
  menuState: MenuStates.Closed
21801
21703
  });
21802
21704
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
21803
- return _extends$j({}, state, {
21705
+ return _extends$i({}, state, {
21804
21706
  menuState: MenuStates.Open
21805
21707
  });
21806
21708
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -21819,7 +21721,7 @@ var ActionTypes;
21819
21721
  }
21820
21722
  });
21821
21723
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
21822
- return _extends$j({}, state, {
21724
+ return _extends$i({}, state, {
21823
21725
  searchQuery: '',
21824
21726
  activeItemIndex: activeItemIndex
21825
21727
  });
@@ -21830,19 +21732,19 @@ var ActionTypes;
21830
21732
 
21831
21733
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
21832
21734
  });
21833
- if (match === -1 || match === state.activeItemIndex) return _extends$j({}, state, {
21735
+ if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
21834
21736
  searchQuery: searchQuery
21835
21737
  });
21836
- return _extends$j({}, state, {
21738
+ return _extends$i({}, state, {
21837
21739
  searchQuery: searchQuery,
21838
21740
  activeItemIndex: match
21839
21741
  });
21840
21742
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
21841
- return _extends$j({}, state, {
21743
+ return _extends$i({}, state, {
21842
21744
  searchQuery: ''
21843
21745
  });
21844
21746
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
21845
- return _extends$j({}, state, {
21747
+ return _extends$i({}, state, {
21846
21748
  items: [].concat(state.items, [{
21847
21749
  id: action.id,
21848
21750
  dataRef: action.dataRef
@@ -21855,7 +21757,7 @@ var ActionTypes;
21855
21757
  return a.id === action.id;
21856
21758
  });
21857
21759
  if (idx !== -1) nextItems.splice(idx, 1);
21858
- return _extends$j({}, state, {
21760
+ return _extends$i({}, state, {
21859
21761
  items: nextItems,
21860
21762
  activeItemIndex: function () {
21861
21763
  if (idx === state.activeItemIndex) return null;
@@ -21894,19 +21796,19 @@ var ActionTypes$1;
21894
21796
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
21895
21797
  if (state.disabled) return state;
21896
21798
  if (state.listboxState === ListboxStates.Closed) return state;
21897
- return _extends$j({}, state, {
21799
+ return _extends$i({}, state, {
21898
21800
  activeOptionIndex: null,
21899
21801
  listboxState: ListboxStates.Closed
21900
21802
  });
21901
21803
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
21902
21804
  if (state.disabled) return state;
21903
21805
  if (state.listboxState === ListboxStates.Open) return state;
21904
- return _extends$j({}, state, {
21806
+ return _extends$i({}, state, {
21905
21807
  listboxState: ListboxStates.Open
21906
21808
  });
21907
21809
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
21908
21810
  if (state.disabled === action.disabled) return state;
21909
- return _extends$j({}, state, {
21811
+ return _extends$i({}, state, {
21910
21812
  disabled: action.disabled
21911
21813
  });
21912
21814
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -21927,7 +21829,7 @@ var ActionTypes$1;
21927
21829
  }
21928
21830
  });
21929
21831
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
21930
- return _extends$j({}, state, {
21832
+ return _extends$i({}, state, {
21931
21833
  searchQuery: '',
21932
21834
  activeOptionIndex: activeOptionIndex
21933
21835
  });
@@ -21940,10 +21842,10 @@ var ActionTypes$1;
21940
21842
 
21941
21843
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
21942
21844
  });
21943
- if (match === -1 || match === state.activeOptionIndex) return _extends$j({}, state, {
21845
+ if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
21944
21846
  searchQuery: searchQuery
21945
21847
  });
21946
- return _extends$j({}, state, {
21848
+ return _extends$i({}, state, {
21947
21849
  searchQuery: searchQuery,
21948
21850
  activeOptionIndex: match
21949
21851
  });
@@ -21951,11 +21853,11 @@ var ActionTypes$1;
21951
21853
  if (state.disabled) return state;
21952
21854
  if (state.listboxState === ListboxStates.Closed) return state;
21953
21855
  if (state.searchQuery === '') return state;
21954
- return _extends$j({}, state, {
21856
+ return _extends$i({}, state, {
21955
21857
  searchQuery: ''
21956
21858
  });
21957
21859
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
21958
- return _extends$j({}, state, {
21860
+ return _extends$i({}, state, {
21959
21861
  options: [].concat(state.options, [{
21960
21862
  id: action.id,
21961
21863
  dataRef: action.dataRef
@@ -21968,7 +21870,7 @@ var ActionTypes$1;
21968
21870
  return a.id === action.id;
21969
21871
  });
21970
21872
  if (idx !== -1) nextOptions.splice(idx, 1);
21971
- return _extends$j({}, state, {
21873
+ return _extends$i({}, state, {
21972
21874
  options: nextOptions,
21973
21875
  activeOptionIndex: function () {
21974
21876
  if (idx === state.activeOptionIndex) return null;
@@ -22029,18 +21931,18 @@ const getPaymentCardIcon = name => {
22029
21931
  }));
22030
21932
  };
22031
21933
 
22032
- var _path$h;
21934
+ var _path$g;
22033
21935
 
22034
- 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); }
21936
+ 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); }
22035
21937
 
22036
21938
  function SvgChevronRight(props) {
22037
- return /*#__PURE__*/React.createElement("svg", _extends$i({
21939
+ return /*#__PURE__*/React.createElement("svg", _extends$h({
22038
21940
  className: "plc-w-6 plc-h-6",
22039
21941
  xmlns: "http://www.w3.org/2000/svg",
22040
21942
  fill: "none",
22041
21943
  viewBox: "0 0 24 24",
22042
21944
  stroke: "currentColor"
22043
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
21945
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
22044
21946
  strokeLinecap: "round",
22045
21947
  strokeLinejoin: "round",
22046
21948
  strokeWidth: 2,
@@ -22256,18 +22158,18 @@ const SavedItems = ({
22256
22158
  });
22257
22159
  };
22258
22160
 
22259
- var _path$g;
22161
+ var _path$f;
22260
22162
 
22261
- 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); }
22163
+ 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); }
22262
22164
 
22263
22165
  function SvgRefresh(props) {
22264
- return /*#__PURE__*/React.createElement("svg", _extends$h({
22166
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
22265
22167
  className: "plc-w-4 plc-h-4 plc-mr-1",
22266
22168
  xmlns: "http://www.w3.org/2000/svg",
22267
22169
  fill: "none",
22268
22170
  viewBox: "0 0 24 24",
22269
22171
  stroke: "currentColor"
22270
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
22172
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
22271
22173
  strokeLinecap: "round",
22272
22174
  strokeLinejoin: "round",
22273
22175
  strokeWidth: 2,
@@ -22275,35 +22177,35 @@ function SvgRefresh(props) {
22275
22177
  })));
22276
22178
  }
22277
22179
 
22278
- var _path$f;
22180
+ var _path$e;
22279
22181
 
22280
- 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); }
22182
+ 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); }
22281
22183
 
22282
22184
  function SvgCalendar(props) {
22283
- return /*#__PURE__*/React.createElement("svg", _extends$g({
22185
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
22284
22186
  xmlns: "http://www.w3.org/2000/svg",
22285
22187
  className: "plc-h-4 plc-w-4 plc-mr-1",
22286
22188
  viewBox: "0 0 20 20",
22287
22189
  fill: "currentColor"
22288
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
22190
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
22289
22191
  fillRule: "evenodd",
22290
22192
  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",
22291
22193
  clipRule: "evenodd"
22292
22194
  })));
22293
22195
  }
22294
22196
 
22295
- var _path$e;
22197
+ var _path$d;
22296
22198
 
22297
- 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); }
22199
+ 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); }
22298
22200
 
22299
22201
  function SvgPlus(props) {
22300
- return /*#__PURE__*/React.createElement("svg", _extends$f({
22202
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
22301
22203
  className: "plc-w-5 plc-h-5",
22302
22204
  xmlns: "http://www.w3.org/2000/svg",
22303
22205
  fill: "none",
22304
22206
  viewBox: "0 0 24 24",
22305
22207
  stroke: "currentColor"
22306
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
22208
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
22307
22209
  strokeLinecap: "round",
22308
22210
  strokeLinejoin: "round",
22309
22211
  strokeWidth: 2,
@@ -22311,17 +22213,17 @@ function SvgPlus(props) {
22311
22213
  })));
22312
22214
  }
22313
22215
 
22314
- var _path$d;
22216
+ var _path$c;
22315
22217
 
22316
- 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); }
22218
+ 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); }
22317
22219
 
22318
22220
  function SvgCheckMark(props) {
22319
- return /*#__PURE__*/React.createElement("svg", _extends$e({
22221
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
22320
22222
  className: "plc-w-4 plc-h-4 plc-mr-1",
22321
22223
  xmlns: "http://www.w3.org/2000/svg",
22322
22224
  viewBox: "0 0 20 20",
22323
22225
  fill: "currentColor"
22324
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
22226
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
22325
22227
  fillRule: "evenodd",
22326
22228
  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",
22327
22229
  clipRule: "evenodd"
@@ -22385,8 +22287,7 @@ const SubscriptionsItems = ({
22385
22287
  } = useTranslation("dashboard");
22386
22288
  const {
22387
22289
  switchView,
22388
- switchToAddressView,
22389
- switchToPaymentView
22290
+ isAuthenticated
22390
22291
  } = usePelcro();
22391
22292
  const subs = getNonDonationSubs();
22392
22293
  if (subs.length === 0) return null;
@@ -22428,12 +22329,7 @@ const SubscriptionsItems = ({
22428
22329
  const plan = window.Pelcro.plan.getById(plan_id);
22429
22330
  setProductAndPlan(product, plan);
22430
22331
  setSubscriptionIdToRenew(sub.id);
22431
-
22432
- if (product.address_required) {
22433
- return switchToAddressView();
22434
- }
22435
-
22436
- return switchToPaymentView();
22332
+ setView("plan-select");
22437
22333
  };
22438
22334
 
22439
22335
  const getPhases = () => {
@@ -22622,18 +22518,18 @@ Accordion.item = function AccordionItem({
22622
22518
  }, content)) : null;
22623
22519
  };
22624
22520
 
22625
- var _path$c;
22521
+ var _path$b;
22626
22522
 
22627
- 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); }
22523
+ 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); }
22628
22524
 
22629
22525
  function SvgExit(props) {
22630
- return /*#__PURE__*/React.createElement("svg", _extends$d({
22526
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
22631
22527
  className: "plc-w-6 plc-h-6",
22632
22528
  xmlns: "http://www.w3.org/2000/svg",
22633
22529
  fill: "none",
22634
22530
  viewBox: "0 0 24 24",
22635
22531
  stroke: "currentColor"
22636
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
22532
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
22637
22533
  strokeLinecap: "round",
22638
22534
  strokeLinejoin: "round",
22639
22535
  strokeWidth: 2,
@@ -22641,17 +22537,17 @@ function SvgExit(props) {
22641
22537
  })));
22642
22538
  }
22643
22539
 
22644
- var _path$b;
22540
+ var _path$a;
22645
22541
 
22646
- 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); }
22542
+ 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); }
22647
22543
 
22648
22544
  function SvgUser(props) {
22649
- return /*#__PURE__*/React.createElement("svg", _extends$c({
22545
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
22650
22546
  xmlns: "http://www.w3.org/2000/svg",
22651
22547
  fill: "none",
22652
22548
  viewBox: "0 0 24 24",
22653
22549
  stroke: "currentColor"
22654
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
22550
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
22655
22551
  strokeLinecap: "round",
22656
22552
  strokeLinejoin: "round",
22657
22553
  strokeWidth: 2,
@@ -22659,18 +22555,18 @@ function SvgUser(props) {
22659
22555
  })));
22660
22556
  }
22661
22557
 
22662
- var _path$a;
22558
+ var _path$9;
22663
22559
 
22664
- 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); }
22560
+ 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); }
22665
22561
 
22666
22562
  function SvgNewsletter(props) {
22667
- return /*#__PURE__*/React.createElement("svg", _extends$b({
22563
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
22668
22564
  xmlns: "http://www.w3.org/2000/svg",
22669
22565
  className: "plc-h-5 plc-w-5",
22670
22566
  fill: "none",
22671
22567
  viewBox: "0 0 24 24",
22672
22568
  stroke: "currentColor"
22673
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
22569
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
22674
22570
  strokeLinecap: "round",
22675
22571
  strokeLinejoin: "round",
22676
22572
  strokeWidth: 2,
@@ -22678,18 +22574,18 @@ function SvgNewsletter(props) {
22678
22574
  })));
22679
22575
  }
22680
22576
 
22681
- var _path$9;
22577
+ var _path$8;
22682
22578
 
22683
- 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); }
22579
+ 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); }
22684
22580
 
22685
22581
  function SvgDocument(props) {
22686
- return /*#__PURE__*/React.createElement("svg", _extends$a({
22582
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
22687
22583
  xmlns: "http://www.w3.org/2000/svg",
22688
22584
  className: "plc-h-6 plc-w-6 plc-mr-2",
22689
22585
  fill: "none",
22690
22586
  viewBox: "0 0 24 24",
22691
22587
  stroke: "currentColor"
22692
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
22588
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
22693
22589
  strokeLinecap: "round",
22694
22590
  strokeLinejoin: "round",
22695
22591
  strokeWidth: 2,
@@ -22697,18 +22593,18 @@ function SvgDocument(props) {
22697
22593
  })));
22698
22594
  }
22699
22595
 
22700
- var _path$8;
22596
+ var _path$7;
22701
22597
 
22702
- 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); }
22598
+ 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); }
22703
22599
 
22704
22600
  function SvgPaymentCard(props) {
22705
- return /*#__PURE__*/React.createElement("svg", _extends$9({
22601
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
22706
22602
  className: "plc-w-6 plc-h-6 plc-mr-2",
22707
22603
  xmlns: "http://www.w3.org/2000/svg",
22708
22604
  fill: "none",
22709
22605
  viewBox: "0 0 24 24",
22710
22606
  stroke: "currentColor"
22711
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
22607
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
22712
22608
  strokeLinecap: "round",
22713
22609
  strokeLinejoin: "round",
22714
22610
  strokeWidth: 2,
@@ -22716,18 +22612,18 @@ function SvgPaymentCard(props) {
22716
22612
  })));
22717
22613
  }
22718
22614
 
22719
- var _path$7, _path2$1;
22615
+ var _path$6, _path2$1;
22720
22616
 
22721
- 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); }
22617
+ 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); }
22722
22618
 
22723
22619
  function SvgLocationPin(props) {
22724
- return /*#__PURE__*/React.createElement("svg", _extends$8({
22620
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
22725
22621
  className: "plc-w-6 plc-h-6 plc-mr-2",
22726
22622
  xmlns: "http://www.w3.org/2000/svg",
22727
22623
  fill: "none",
22728
22624
  viewBox: "0 0 24 24",
22729
22625
  stroke: "currentColor"
22730
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
22626
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
22731
22627
  strokeLinecap: "round",
22732
22628
  strokeLinejoin: "round",
22733
22629
  strokeWidth: 2,
@@ -22742,10 +22638,10 @@ function SvgLocationPin(props) {
22742
22638
 
22743
22639
  var _switch;
22744
22640
 
22745
- 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); }
22641
+ 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); }
22746
22642
 
22747
22643
  function SvgSubscription(props) {
22748
- return /*#__PURE__*/React.createElement("svg", _extends$7({
22644
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
22749
22645
  xmlns: "http://www.w3.org/2000/svg",
22750
22646
  viewBox: "0 0 100 125",
22751
22647
  fill: "currentColor"
@@ -22760,18 +22656,18 @@ function SvgSubscription(props) {
22760
22656
  }))))));
22761
22657
  }
22762
22658
 
22763
- var _path$6;
22659
+ var _path$5;
22764
22660
 
22765
- 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); }
22661
+ 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); }
22766
22662
 
22767
22663
  function SvgShopping(props) {
22768
- return /*#__PURE__*/React.createElement("svg", _extends$6({
22664
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
22769
22665
  className: "plc-w-6 plc-h-6 plc-mr-2",
22770
22666
  xmlns: "http://www.w3.org/2000/svg",
22771
22667
  fill: "none",
22772
22668
  viewBox: "0 0 24 24",
22773
22669
  stroke: "currentColor"
22774
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
22670
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
22775
22671
  strokeLinecap: "round",
22776
22672
  strokeLinejoin: "round",
22777
22673
  strokeWidth: 2,
@@ -22779,18 +22675,18 @@ function SvgShopping(props) {
22779
22675
  })));
22780
22676
  }
22781
22677
 
22782
- var _path$5;
22678
+ var _path$4;
22783
22679
 
22784
- 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); }
22680
+ 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); }
22785
22681
 
22786
22682
  function SvgBookmark(props) {
22787
- return /*#__PURE__*/React.createElement("svg", _extends$5({
22683
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
22788
22684
  className: "plc-w-6 plc-h-6 plc-mr-2",
22789
22685
  xmlns: "http://www.w3.org/2000/svg",
22790
22686
  fill: "none",
22791
22687
  viewBox: "0 0 24 24",
22792
22688
  stroke: "currentColor"
22793
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
22689
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
22794
22690
  strokeLinecap: "round",
22795
22691
  strokeLinejoin: "round",
22796
22692
  strokeWidth: 2,
@@ -22798,33 +22694,33 @@ function SvgBookmark(props) {
22798
22694
  })));
22799
22695
  }
22800
22696
 
22801
- var _path$4;
22697
+ var _path$3;
22802
22698
 
22803
- 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); }
22699
+ 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); }
22804
22700
 
22805
22701
  function SvgKey(props) {
22806
- return /*#__PURE__*/React.createElement("svg", _extends$4({
22702
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
22807
22703
  xmlns: "http://www.w3.org/2000/svg",
22808
22704
  viewBox: "0 0 20 20",
22809
22705
  fill: "currentColor"
22810
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
22706
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
22811
22707
  fillRule: "evenodd",
22812
22708
  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",
22813
22709
  clipRule: "evenodd"
22814
22710
  })));
22815
22711
  }
22816
22712
 
22817
- var _path$3;
22713
+ var _path$2;
22818
22714
 
22819
- 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); }
22715
+ 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); }
22820
22716
 
22821
22717
  function SvgDonate(props) {
22822
- return /*#__PURE__*/React.createElement("svg", _extends$3({
22718
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
22823
22719
  width: 24,
22824
22720
  height: 24,
22825
22721
  fill: "currentColor",
22826
22722
  xmlns: "http://www.w3.org/2000/svg"
22827
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
22723
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
22828
22724
  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"
22829
22725
  })));
22830
22726
  }
@@ -23151,10 +23047,9 @@ class Dashboard extends Component {
23151
23047
  }) => {
23152
23048
  if (isGift) {
23153
23049
  this.props.setProductAndPlan(null, null, true);
23154
- return this.props.setView("plan-select");
23155
23050
  }
23156
23051
 
23157
- return this.props.setView("subscription-options");
23052
+ return this.props.setView("plan-select");
23158
23053
  });
23159
23054
 
23160
23055
  _defineProperty$3(this, "displayAddressCreate", () => {
@@ -23622,7 +23517,7 @@ const DashboardOpenButton = () => {
23622
23517
  };
23623
23518
  DashboardOpenButton.viewId = "dashboard-open";
23624
23519
 
23625
- const initialState$3 = {
23520
+ const initialState$2 = {
23626
23521
  imageSrc: null,
23627
23522
  crop: {
23628
23523
  x: 0,
@@ -23636,10 +23531,10 @@ const initialState$3 = {
23636
23531
  content: ""
23637
23532
  }
23638
23533
  };
23639
- const store$3 = /*#__PURE__*/createContext(initialState$3);
23534
+ const store$2 = /*#__PURE__*/createContext(initialState$2);
23640
23535
  const {
23641
- Provider: Provider$3
23642
- } = store$3;
23536
+ Provider: Provider$2
23537
+ } = store$2;
23643
23538
 
23644
23539
  const ProfilePicChangeContainer = ({
23645
23540
  style,
@@ -23773,21 +23668,21 @@ const ProfilePicChangeContainer = ({
23773
23668
  default:
23774
23669
  return state;
23775
23670
  }
23776
- }, initialState$3);
23671
+ }, initialState$2);
23777
23672
  return /*#__PURE__*/React__default.createElement("div", {
23778
23673
  style: { ...style
23779
23674
  },
23780
23675
  className: `pelcro-container pelcro-profile-picture-container ${className}`
23781
- }, /*#__PURE__*/React__default.createElement(Provider$3, {
23676
+ }, /*#__PURE__*/React__default.createElement(Provider$2, {
23782
23677
  value: {
23783
23678
  state,
23784
23679
  dispatch
23785
23680
  }
23786
23681
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
23787
- store: store$3,
23682
+ store: store$2,
23788
23683
  key: i
23789
23684
  })) : /*#__PURE__*/React__default.cloneElement(children, {
23790
- store: store$3
23685
+ store: store$2
23791
23686
  })));
23792
23687
  };
23793
23688
  /**
@@ -23849,7 +23744,7 @@ const ProfilePicChangeButton = ({
23849
23744
  isSubmitting
23850
23745
  },
23851
23746
  dispatch
23852
- } = useContext(store$3);
23747
+ } = useContext(store$2);
23853
23748
  const {
23854
23749
  t
23855
23750
  } = useTranslation("userEdit");
@@ -25217,7 +25112,7 @@ const ProfilePicChangeCropper = ({
25217
25112
  zoom
25218
25113
  },
25219
25114
  dispatch
25220
- } = useContext(store$3);
25115
+ } = useContext(store$2);
25221
25116
  return /*#__PURE__*/React__default.createElement("div", {
25222
25117
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
25223
25118
  }, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
@@ -25259,7 +25154,7 @@ const ProfilePicChangeZoom = ({
25259
25154
  zoom
25260
25155
  },
25261
25156
  dispatch
25262
- } = useContext(store$3);
25157
+ } = useContext(store$2);
25263
25158
  const {
25264
25159
  t
25265
25160
  } = useTranslation("userEdit");
@@ -25282,18 +25177,18 @@ const ProfilePicChangeZoom = ({
25282
25177
  }, otherProps)));
25283
25178
  };
25284
25179
 
25285
- var _path$2;
25180
+ var _path$1;
25286
25181
 
25287
- 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); }
25182
+ 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); }
25288
25183
 
25289
25184
  function SvgPhotograph(props) {
25290
- return /*#__PURE__*/React.createElement("svg", _extends$2({
25185
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
25291
25186
  xmlns: "http://www.w3.org/2000/svg",
25292
25187
  className: "plc-h-6 plc-w-6",
25293
25188
  fill: "none",
25294
25189
  viewBox: "0 0 24 24",
25295
25190
  stroke: "currentColor"
25296
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
25191
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
25297
25192
  strokeLinecap: "round",
25298
25193
  strokeLinejoin: "round",
25299
25194
  strokeWidth: 2,
@@ -25311,7 +25206,7 @@ const ProfilePicChangeSelectButton = ({
25311
25206
  state: {
25312
25207
  isSubmitting
25313
25208
  }
25314
- } = useContext(store$3);
25209
+ } = useContext(store$2);
25315
25210
  const {
25316
25211
  t
25317
25212
  } = useTranslation("userEdit");
@@ -25353,7 +25248,7 @@ const ProfilePicChangeRemoveButton = ({
25353
25248
  state: {
25354
25249
  isSubmitting
25355
25250
  }
25356
- } = useContext(store$3);
25251
+ } = useContext(store$2);
25357
25252
  const {
25358
25253
  t
25359
25254
  } = useTranslation("userEdit");
@@ -25376,7 +25271,7 @@ const ProfilePicChangeWrapper = () => {
25376
25271
  state: {
25377
25272
  imageSrc
25378
25273
  }
25379
- } = useContext(store$3);
25274
+ } = useContext(store$2);
25380
25275
  const {
25381
25276
  t
25382
25277
  } = useTranslation("userEdit");
@@ -25438,17 +25333,17 @@ function ProfilePicChangeModal({
25438
25333
  }
25439
25334
  ProfilePicChangeModal.viewId = "profile-picture";
25440
25335
 
25441
- const initialState$2 = {
25336
+ const initialState$1 = {
25442
25337
  isSubmitting: false,
25443
25338
  alert: {
25444
25339
  type: "error",
25445
25340
  content: ""
25446
25341
  }
25447
25342
  };
25448
- const store$2 = /*#__PURE__*/createContext(initialState$2);
25343
+ const store$1 = /*#__PURE__*/createContext(initialState$1);
25449
25344
  const {
25450
- Provider: Provider$2
25451
- } = store$2;
25345
+ Provider: Provider$1
25346
+ } = store$1;
25452
25347
 
25453
25348
  const EmailVerifyContainer = ({
25454
25349
  style,
@@ -25511,21 +25406,21 @@ const EmailVerifyContainer = ({
25511
25406
  default:
25512
25407
  return state;
25513
25408
  }
25514
- }, initialState$2);
25409
+ }, initialState$1);
25515
25410
  return /*#__PURE__*/React__default.createElement("div", {
25516
25411
  style: { ...style
25517
25412
  },
25518
25413
  className: `pelcro-container pelcro-email-verify-container ${className}`
25519
- }, /*#__PURE__*/React__default.createElement(Provider$2, {
25414
+ }, /*#__PURE__*/React__default.createElement(Provider$1, {
25520
25415
  value: {
25521
25416
  state,
25522
25417
  dispatch
25523
25418
  }
25524
25419
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25525
- store: store$2,
25420
+ store: store$1,
25526
25421
  key: i
25527
25422
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25528
- store: store$2
25423
+ store: store$1
25529
25424
  })));
25530
25425
  };
25531
25426
 
@@ -25539,7 +25434,7 @@ const EmailVerifyResendButton = ({
25539
25434
  state: {
25540
25435
  isSubmitting
25541
25436
  }
25542
- } = useContext(store$2);
25437
+ } = useContext(store$1);
25543
25438
  const {
25544
25439
  t
25545
25440
  } = useTranslation("verifyEmail");
@@ -25554,16 +25449,16 @@ const EmailVerifyResendButton = ({
25554
25449
  }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
25555
25450
  };
25556
25451
 
25557
- var _path$1, _path2;
25452
+ var _path, _path2;
25558
25453
 
25559
- 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); }
25454
+ 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); }
25560
25455
 
25561
25456
  function SvgEmailVerify(props) {
25562
- return /*#__PURE__*/React.createElement("svg", _extends$1({
25457
+ return /*#__PURE__*/React.createElement("svg", _extends({
25563
25458
  className: "plc-w-6 plc-h-6",
25564
25459
  viewBox: "0 0 700 700",
25565
25460
  xmlns: "http://www.w3.org/2000/svg"
25566
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
25461
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
25567
25462
  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"
25568
25463
  })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
25569
25464
  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"
@@ -25667,11 +25562,11 @@ const invoicePaymentSubmitButton = props => {
25667
25562
  return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
25668
25563
  };
25669
25564
 
25670
- const initialState$1 = {};
25671
- const store$1 = /*#__PURE__*/createContext(initialState$1);
25565
+ const initialState = {};
25566
+ const store = /*#__PURE__*/createContext(initialState);
25672
25567
  const {
25673
- Provider: Provider$1
25674
- } = store$1;
25568
+ Provider
25569
+ } = store;
25675
25570
 
25676
25571
  const InvoiceDetailsContainer = ({
25677
25572
  style,
@@ -25692,21 +25587,21 @@ const InvoiceDetailsContainer = ({
25692
25587
  default:
25693
25588
  return state;
25694
25589
  }
25695
- }, initialState$1);
25590
+ }, initialState);
25696
25591
  return /*#__PURE__*/React__default.createElement("div", {
25697
25592
  style: { ...style
25698
25593
  },
25699
25594
  className: `pelcro-container pelcro-invoice-details-container ${className}`
25700
- }, /*#__PURE__*/React__default.createElement(Provider$1, {
25595
+ }, /*#__PURE__*/React__default.createElement(Provider, {
25701
25596
  value: {
25702
25597
  state,
25703
25598
  dispatch
25704
25599
  }
25705
25600
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25706
- store: store$1,
25601
+ store,
25707
25602
  key: i
25708
25603
  })) : /*#__PURE__*/React__default.cloneElement(children, {
25709
- store: store$1
25604
+ store
25710
25605
  })));
25711
25606
  };
25712
25607
 
@@ -25738,7 +25633,7 @@ const InvoiceDetailsPayButton = ({
25738
25633
  }) => {
25739
25634
  const {
25740
25635
  dispatch
25741
- } = useContext(store$1);
25636
+ } = useContext(store);
25742
25637
  const {
25743
25638
  t
25744
25639
  } = useTranslation("invoiceDetails");
@@ -25845,230 +25740,4 @@ const InvoiceDetailsModal = ({
25845
25740
  };
25846
25741
  InvoiceDetailsModal.viewId = "invoice-details";
25847
25742
 
25848
- const initialState = {
25849
- selectedOption: ""
25850
- };
25851
- const store = /*#__PURE__*/createContext(initialState);
25852
- const {
25853
- Provider
25854
- } = store;
25855
-
25856
- const SubscriptionOptionsContainer = ({
25857
- style,
25858
- className = "",
25859
- onRenewSubSuccess = () => {},
25860
- onNewSubSuccess = () => {},
25861
- children,
25862
- ...props
25863
- }) => {
25864
- const submit = ({
25865
- selectedOption
25866
- }, dispatch) => {
25867
- if (selectedOption === "renew") return onRenewSubSuccess();
25868
- if (selectedOption === "new") return onNewSubSuccess();
25869
- };
25870
-
25871
- const [state, dispatch] = useReducerWithSideEffects((state, action) => {
25872
- switch (action.type) {
25873
- case SWITCH_TO_NEW:
25874
- return lib_7({ ...state,
25875
- selectedOption: "new"
25876
- });
25877
-
25878
- case SWITCH_TO_RENEW:
25879
- return lib_7({ ...state,
25880
- selectedOption: "renew"
25881
- });
25882
-
25883
- case HANDLE_SUBMIT:
25884
- return lib_4((state, dispatch) => submit(state));
25885
-
25886
- default:
25887
- return state;
25888
- }
25889
- }, initialState);
25890
- return /*#__PURE__*/React__default.createElement("div", {
25891
- style: { ...style
25892
- },
25893
- className: `pelcro-container pelcro-subscription-options-container ${className}`
25894
- }, /*#__PURE__*/React__default.createElement(Provider, {
25895
- value: {
25896
- state,
25897
- dispatch
25898
- }
25899
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
25900
- store,
25901
- key: i
25902
- })) : /*#__PURE__*/React__default.cloneElement(children, {
25903
- store
25904
- })));
25905
- };
25906
-
25907
- var _path;
25908
-
25909
- 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); }
25910
-
25911
- function SvgPlusCircle(props) {
25912
- return /*#__PURE__*/React.createElement("svg", _extends({
25913
- xmlns: "http://www.w3.org/2000/svg",
25914
- className: "plc-h-6 plc-w-6",
25915
- fill: "none",
25916
- viewBox: "0 0 24 24",
25917
- stroke: "currentColor",
25918
- strokeWidth: 2
25919
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
25920
- strokeLinecap: "round",
25921
- strokeLinejoin: "round",
25922
- d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
25923
- })));
25924
- }
25925
-
25926
- const SubscriptionOptionsNewButton = ({
25927
- name,
25928
- onClick,
25929
- ...otherProps
25930
- }) => {
25931
- const {
25932
- dispatch,
25933
- state: {
25934
- selectedOption
25935
- }
25936
- } = useContext(store);
25937
- const {
25938
- t
25939
- } = useTranslation("subscriptionOptions");
25940
- const isChecked = selectedOption === "new";
25941
- return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
25942
- className: "plc-hidden pelcro-new-sub-option",
25943
- 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"}`,
25944
- id: "pelcro-new-sub-option",
25945
- name: "option",
25946
- onChange: () => {
25947
- dispatch({
25948
- type: SWITCH_TO_NEW
25949
- });
25950
- onClick === null || onClick === void 0 ? void 0 : onClick();
25951
- },
25952
- checked: isChecked
25953
- }, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
25954
- className: "plc-w-full plc-h-full plc-mr-0"
25955
- }));
25956
- };
25957
-
25958
- const SubscriptionOptionsRenewButton = ({
25959
- name,
25960
- onClick,
25961
- ...otherProps
25962
- }) => {
25963
- const {
25964
- dispatch,
25965
- state: {
25966
- selectedOption
25967
- }
25968
- } = useContext(store);
25969
- const {
25970
- t
25971
- } = useTranslation("subscriptionOptions");
25972
- const isChecked = selectedOption === "renew";
25973
- return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
25974
- className: "plc-hidden pelcro-renew-sub-option",
25975
- 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"}`,
25976
- id: "pelcro-renew-sub-option",
25977
- name: "option",
25978
- onChange: () => {
25979
- dispatch({
25980
- type: SWITCH_TO_RENEW
25981
- });
25982
- onClick === null || onClick === void 0 ? void 0 : onClick();
25983
- },
25984
- checked: isChecked
25985
- }, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
25986
- className: "plc-w-full plc-h-full plc-mr-0"
25987
- }));
25988
- };
25989
-
25990
- const SubscriptionOptionsSubmit = ({
25991
- name,
25992
- onClick,
25993
- ...otherProps
25994
- }) => {
25995
- const {
25996
- dispatch,
25997
- state: {
25998
- selectedOption
25999
- }
26000
- } = useContext(store);
26001
- const {
26002
- t
26003
- } = useTranslation("subscriptionOptions");
26004
- return /*#__PURE__*/React__default.createElement(Button, Object.assign({
26005
- onClick: () => {
26006
- dispatch({
26007
- type: HANDLE_SUBMIT
26008
- });
26009
- onClick === null || onClick === void 0 ? void 0 : onClick();
26010
- },
26011
- disabled: !selectedOption
26012
- }, otherProps), name !== null && name !== void 0 ? name : t("next"));
26013
- };
26014
-
26015
- const SubscriptionOptionsView = props => {
26016
- const {
26017
- t
26018
- } = useTranslation("subscriptionOptions");
26019
- return /*#__PURE__*/React__default.createElement("div", {
26020
- id: "pelcro-subscription-options-view"
26021
- }, /*#__PURE__*/React__default.createElement("div", {
26022
- className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
26023
- }, /*#__PURE__*/React__default.createElement("h4", {
26024
- className: "plc-text-2xl plc-font-semibold"
26025
- }, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
26026
- action: "javascript:void(0);",
26027
- className: "plc-mt-2 pelcro-form"
26028
- }, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
26029
- className: "plc-flex plc-justify-between plc-items-center"
26030
- }, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
26031
- role: "submit",
26032
- className: "plc-mt-4 plc-w-full",
26033
- name: t("next"),
26034
- id: "pelcro-submit"
26035
- }))));
26036
- };
26037
-
26038
- const SubscriptionOptionsModal = ({
26039
- onDisplay,
26040
- onClose,
26041
- ...otherProps
26042
- }) => {
26043
- const {
26044
- switchView,
26045
- setProductsList
26046
- } = usePelcro();
26047
-
26048
- const onRenewSubSuccess = () => {
26049
- var _otherProps$onRenewSu;
26050
-
26051
- (_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
26052
- setProductsList(getRenewableProducts());
26053
- switchView("_plan-select-renew");
26054
- };
26055
-
26056
- const onNewSubSuccess = () => {
26057
- var _otherProps$onNewSubS;
26058
-
26059
- (_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
26060
- switchView("plan-select");
26061
- };
26062
-
26063
- return /*#__PURE__*/React__default.createElement(Modal, {
26064
- onDisplay: onDisplay,
26065
- onClose: onClose,
26066
- id: "pelcro-subscription-options-modal"
26067
- }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
26068
- onNewSubSuccess: onNewSubSuccess,
26069
- onRenewSubSuccess: onRenewSubSuccess
26070
- }))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
26071
- };
26072
- SubscriptionOptionsModal.viewId = "subscription-options";
26073
-
26074
- 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 };
25743
+ 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 };