@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.cjs.js CHANGED
@@ -3461,9 +3461,9 @@ var paymentMethod_fr = {
3461
3461
  select: select
3462
3462
  };
3463
3463
 
3464
- var title$h = "Enter your email to subscribe to our newsletter";
3464
+ var title$f = "Enter your email to subscribe to our newsletter";
3465
3465
  var updateTitle$1 = "Update newsletter selections";
3466
- var subtitle$9 = "We may use your email for other marketing communication";
3466
+ var subtitle$7 = "We may use your email for other marketing communication";
3467
3467
  var labels$p = {
3468
3468
  submit: "Submit",
3469
3469
  firstName: "First name",
@@ -3480,16 +3480,16 @@ var messages$r = {
3480
3480
  here: "here"
3481
3481
  };
3482
3482
  var newsletter_en = {
3483
- title: title$h,
3483
+ title: title$f,
3484
3484
  updateTitle: updateTitle$1,
3485
- subtitle: subtitle$9,
3485
+ subtitle: subtitle$7,
3486
3486
  labels: labels$p,
3487
3487
  messages: messages$r
3488
3488
  };
3489
3489
 
3490
- var title$g = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3490
+ var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3491
3491
  var updateTitle = "Mettre à jour son choix d'infolettres";
3492
- var subtitle$8 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3492
+ var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3493
3493
  var labels$o = {
3494
3494
  submit: "Lire l’article !",
3495
3495
  firstName: "Prénom",
@@ -3506,9 +3506,9 @@ var messages$q = {
3506
3506
  here: "ici"
3507
3507
  };
3508
3508
  var newsletter_fr = {
3509
- title: title$g,
3509
+ title: title$e,
3510
3510
  updateTitle: updateTitle,
3511
- subtitle: subtitle$8,
3511
+ subtitle: subtitle$6,
3512
3512
  labels: labels$o,
3513
3513
  messages: messages$q
3514
3514
  };
@@ -3765,8 +3765,8 @@ var login_fr = {
3765
3765
  errors: errors$4
3766
3766
  };
3767
3767
 
3768
- var title$f = "Create an account";
3769
- var subtitle$7 = "Enter your email and password below";
3768
+ var title$d = "Create an account";
3769
+ var subtitle$5 = "Enter your email and password below";
3770
3770
  var labels$h = {
3771
3771
  signUpFacebook: "Sign up with Facebook",
3772
3772
  signUpGoogle: "Sign up with Google",
@@ -3851,8 +3851,8 @@ var redeem$1 = {
3851
3851
  }
3852
3852
  };
3853
3853
  var register_en = {
3854
- title: title$f,
3855
- subtitle: subtitle$7,
3854
+ title: title$d,
3855
+ subtitle: subtitle$5,
3856
3856
  labels: labels$h,
3857
3857
  messages: messages$h,
3858
3858
  errors: errors$3,
@@ -3860,8 +3860,8 @@ var register_en = {
3860
3860
  redeem: redeem$1
3861
3861
  };
3862
3862
 
3863
- var title$e = "Créer un compte";
3864
- var subtitle$6 = "Entrez votre courriel et votre mot de passe ci-dessous";
3863
+ var title$c = "Créer un compte";
3864
+ var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
3865
3865
  var labels$g = {
3866
3866
  signUpFacebook: "Inscrivez-vous avec Facebook",
3867
3867
  signUpGoogle: "Inscrivez-vous avec Google",
@@ -3947,8 +3947,8 @@ var redeem = {
3947
3947
  }
3948
3948
  };
3949
3949
  var register_fr = {
3950
- title: title$e,
3951
- subtitle: subtitle$6,
3950
+ title: title$c,
3951
+ subtitle: subtitle$4,
3952
3952
  labels: labels$g,
3953
3953
  messages: messages$g,
3954
3954
  errors: errors$2,
@@ -4008,7 +4008,7 @@ var userEdit_fr = {
4008
4008
  messages: messages$e
4009
4009
  };
4010
4010
 
4011
- var title$d = "Enter your shipping address";
4011
+ var title$b = "Enter your shipping address";
4012
4012
  var selectAddressTitle$1 = "Please select an address";
4013
4013
  var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
4014
4014
  var labels$d = {
@@ -4031,7 +4031,7 @@ var messages$d = {
4031
4031
  subRedeemed: "Your subscription has been redeemed."
4032
4032
  };
4033
4033
  var address_en = {
4034
- title: title$d,
4034
+ title: title$b,
4035
4035
  selectAddressTitle: selectAddressTitle$1,
4036
4036
  selectAddressSubtitle: selectAddressSubtitle$1,
4037
4037
  labels: labels$d,
@@ -4039,7 +4039,7 @@ var address_en = {
4039
4039
  messages: messages$d
4040
4040
  };
4041
4041
 
4042
- var title$c = "Entrez votre adresse de livraison";
4042
+ var title$a = "Entrez votre adresse de livraison";
4043
4043
  var selectAddressTitle = "Veuillez sélectionner une adresse";
4044
4044
  var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
4045
4045
  var labels$c = {
@@ -4062,7 +4062,7 @@ var messages$c = {
4062
4062
  subRedeemed: "Votre abonnement a bien été activé."
4063
4063
  };
4064
4064
  var address_fr = {
4065
- title: title$c,
4065
+ title: title$a,
4066
4066
  selectAddressTitle: selectAddressTitle,
4067
4067
  selectAddressSubtitle: selectAddressSubtitle,
4068
4068
  labels: labels$c,
@@ -4070,8 +4070,8 @@ var address_fr = {
4070
4070
  messages: messages$c
4071
4071
  };
4072
4072
 
4073
- var title$b = "Reset your password";
4074
- var subtitle$5 = "Enter a new password below";
4073
+ var title$9 = "Reset your password";
4074
+ var subtitle$3 = "Enter a new password below";
4075
4075
  var email$3 = "Email";
4076
4076
  var password$3 = "Password";
4077
4077
  var confirmPassword$1 = "Confirm password";
@@ -4079,8 +4079,8 @@ var submit$5 = "Submit";
4079
4079
  var required$5 = "Required";
4080
4080
  var passwordUpdated$1 = "Password has been updated, please login with the new password";
4081
4081
  var passwordReset_en = {
4082
- title: title$b,
4083
- subtitle: subtitle$5,
4082
+ title: title$9,
4083
+ subtitle: subtitle$3,
4084
4084
  email: email$3,
4085
4085
  password: password$3,
4086
4086
  confirmPassword: confirmPassword$1,
@@ -4089,8 +4089,8 @@ var passwordReset_en = {
4089
4089
  passwordUpdated: passwordUpdated$1
4090
4090
  };
4091
4091
 
4092
- var title$a = "Réinitialiser votre mot de passe";
4093
- var subtitle$4 = "Entrez un nouveau mot de passe ci-dessous";
4092
+ var title$8 = "Réinitialiser votre mot de passe";
4093
+ var subtitle$2 = "Entrez un nouveau mot de passe ci-dessous";
4094
4094
  var email$2 = "Adresse courriel";
4095
4095
  var password$2 = "Mot de passe";
4096
4096
  var confirmPassword = "Confirmer le mot de passe";
@@ -4098,8 +4098,8 @@ var submit$4 = "Soumettre";
4098
4098
  var required$4 = "Champs obligatoires";
4099
4099
  var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
4100
4100
  var passwordReset_fr = {
4101
- title: title$a,
4102
- subtitle: subtitle$4,
4101
+ title: title$8,
4102
+ subtitle: subtitle$2,
4103
4103
  email: email$2,
4104
4104
  password: password$2,
4105
4105
  confirmPassword: confirmPassword,
@@ -4108,7 +4108,7 @@ var passwordReset_fr = {
4108
4108
  passwordUpdated: passwordUpdated
4109
4109
  };
4110
4110
 
4111
- var title$9 = "Forgot your password?";
4111
+ var title$7 = "Forgot your password?";
4112
4112
  var email$1 = "Email";
4113
4113
  var password$1 = "Password";
4114
4114
  var submit$3 = "Submit";
@@ -4119,7 +4119,7 @@ var messages$b = {
4119
4119
  loginHere: "login here."
4120
4120
  };
4121
4121
  var passwordForgot_en = {
4122
- title: title$9,
4122
+ title: title$7,
4123
4123
  email: email$1,
4124
4124
  password: password$1,
4125
4125
  submit: submit$3,
@@ -4128,7 +4128,7 @@ var passwordForgot_en = {
4128
4128
  messages: messages$b
4129
4129
  };
4130
4130
 
4131
- var title$8 = "Mot de passe oublié ?";
4131
+ var title$6 = "Mot de passe oublié ?";
4132
4132
  var email = "Courriel";
4133
4133
  var password = "Mot de passe";
4134
4134
  var submit$2 = "Soumettre";
@@ -4139,7 +4139,7 @@ var messages$a = {
4139
4139
  loginHere: "Connectez-vous ici"
4140
4140
  };
4141
4141
  var passwordForgot_fr = {
4142
- title: title$8,
4142
+ title: title$6,
4143
4143
  email: email,
4144
4144
  password: password,
4145
4145
  submit: submit$2,
@@ -4148,7 +4148,7 @@ var passwordForgot_fr = {
4148
4148
  messages: messages$a
4149
4149
  };
4150
4150
 
4151
- var title$7 = "Change your password";
4151
+ var title$5 = "Change your password";
4152
4152
  var currentPassword$1 = "Current password";
4153
4153
  var newPassword$1 = "New password";
4154
4154
  var confirmNewPassword$1 = "Confirm new password";
@@ -4158,7 +4158,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
4158
4158
  var passwordsNotMatching$1 = "Passwords don't match";
4159
4159
  var weakPassword$1 = "Your password must contain at least 6 characters";
4160
4160
  var passwordChange_en = {
4161
- title: title$7,
4161
+ title: title$5,
4162
4162
  currentPassword: currentPassword$1,
4163
4163
  newPassword: newPassword$1,
4164
4164
  confirmNewPassword: confirmNewPassword$1,
@@ -4169,7 +4169,7 @@ var passwordChange_en = {
4169
4169
  weakPassword: weakPassword$1
4170
4170
  };
4171
4171
 
4172
- var title$6 = "Changez votre mot de passe";
4172
+ var title$4 = "Changez votre mot de passe";
4173
4173
  var currentPassword = "Mot de passe actuel";
4174
4174
  var newPassword = "Nouveau mot de passe";
4175
4175
  var confirmNewPassword = "Confirmer le nouveau mot de passe";
@@ -4179,7 +4179,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
4179
4179
  var passwordsNotMatching = "Les mots de passe ne correspondent pas";
4180
4180
  var weakPassword = "Votre mot de passe doit contenir au moins 6";
4181
4181
  var passwordChange_fr = {
4182
- title: title$6,
4182
+ title: title$4,
4183
4183
  currentPassword: currentPassword,
4184
4184
  newPassword: newPassword,
4185
4185
  confirmNewPassword: confirmNewPassword,
@@ -4190,8 +4190,8 @@ var passwordChange_fr = {
4190
4190
  weakPassword: weakPassword
4191
4191
  };
4192
4192
 
4193
- var title$5 = "Votre panier";
4194
- var subtitle$3 = "Terminez votre achat ci-dessous";
4193
+ var title$3 = "Votre panier";
4194
+ var subtitle$1 = "Terminez votre achat ci-dessous";
4195
4195
  var name$1 = "Produit";
4196
4196
  var quantity$1 = "Quantité";
4197
4197
  var price$1 = "Prix";
@@ -4202,8 +4202,8 @@ var confirm$3 = "Passer à la caisse";
4202
4202
  var empty$1 = "Votre panier est vide.";
4203
4203
  var removeAll$1 = "Vider";
4204
4204
  var cart_fr = {
4205
- title: title$5,
4206
- subtitle: subtitle$3,
4205
+ title: title$3,
4206
+ subtitle: subtitle$1,
4207
4207
  name: name$1,
4208
4208
  quantity: quantity$1,
4209
4209
  price: price$1,
@@ -4215,8 +4215,8 @@ var cart_fr = {
4215
4215
  removeAll: removeAll$1
4216
4216
  };
4217
4217
 
4218
- var title$4 = "Your shopping cart";
4219
- var subtitle$2 = "Comple your purchase below";
4218
+ var title$2 = "Your shopping cart";
4219
+ var subtitle = "Comple your purchase below";
4220
4220
  var name = "Name";
4221
4221
  var quantity = "Quantity";
4222
4222
  var price = "Price";
@@ -4227,8 +4227,8 @@ var confirm$2 = "Checkout";
4227
4227
  var empty = "Your cart is empty.";
4228
4228
  var removeAll = "Remove all";
4229
4229
  var cart_en = {
4230
- title: title$4,
4231
- subtitle: subtitle$2,
4230
+ title: title$2,
4231
+ subtitle: subtitle,
4232
4232
  name: name,
4233
4233
  quantity: quantity,
4234
4234
  price: price,
@@ -4666,7 +4666,7 @@ var verifyEmail_fr = {
4666
4666
  messages: messages
4667
4667
  };
4668
4668
 
4669
- var title$3 = "Invoice details";
4669
+ var title$1 = "Invoice details";
4670
4670
  var labels$1 = {
4671
4671
  summary: "Summary",
4672
4672
  total: "Total",
@@ -4679,12 +4679,12 @@ var buttons$1 = {
4679
4679
  pay: "Pay now"
4680
4680
  };
4681
4681
  var invoiceDetails_en = {
4682
- title: title$3,
4682
+ title: title$1,
4683
4683
  labels: labels$1,
4684
4684
  buttons: buttons$1
4685
4685
  };
4686
4686
 
4687
- var title$2 = "Détails de la facture";
4687
+ var title = "Détails de la facture";
4688
4688
  var labels = {
4689
4689
  summary: "Résumé",
4690
4690
  total: "Total",
@@ -4697,37 +4697,11 @@ var buttons = {
4697
4697
  pay: "Payer"
4698
4698
  };
4699
4699
  var invoiceDetails_fr = {
4700
- title: title$2,
4700
+ title: title,
4701
4701
  labels: labels,
4702
4702
  buttons: buttons
4703
4703
  };
4704
4704
 
4705
- var title$1 = "Renewal options";
4706
- var subtitle$1 = "Select one of the options below to continue";
4707
- var next$1 = "Next";
4708
- var addNew$1 = "Add Another Subscription";
4709
- var renew$1 = "Renew Existing Subscription";
4710
- var subscriptionOptions_en = {
4711
- title: title$1,
4712
- subtitle: subtitle$1,
4713
- next: next$1,
4714
- addNew: addNew$1,
4715
- renew: renew$1
4716
- };
4717
-
4718
- var title = "Choix de renouvellement";
4719
- var subtitle = "Veuillez choisir un des choix ci-dessous";
4720
- var next = "Prochain";
4721
- var addNew = "S'abonner à un autre forfait maintenant";
4722
- var renew = "Renouveler l'abonnement actuel ";
4723
- var subscriptionOptions_fr = {
4724
- title: title,
4725
- subtitle: subtitle,
4726
- next: next,
4727
- addNew: addNew,
4728
- renew: renew
4729
- };
4730
-
4731
4705
  function create$1(createState) {
4732
4706
  let state;
4733
4707
  const listeners = new Set();
@@ -6077,7 +6051,7 @@ class PelcroActions {
6077
6051
  view,
6078
6052
  cartItems,
6079
6053
  ...otherStateFields
6080
- } = initialState$j;
6054
+ } = initialState$i;
6081
6055
  this.set(otherStateFields);
6082
6056
  });
6083
6057
 
@@ -6101,16 +6075,6 @@ class PelcroActions {
6101
6075
  });
6102
6076
  }
6103
6077
 
6104
- if (view === "subscription-options") {
6105
- const noRenewableProducts = getRenewableProducts().length === 0;
6106
-
6107
- if (noRenewableProducts) {
6108
- return this.set({
6109
- view: "plan-select"
6110
- });
6111
- }
6112
- }
6113
-
6114
6078
  this.set({
6115
6079
  view
6116
6080
  });
@@ -6185,26 +6149,6 @@ class PelcroActions {
6185
6149
  }
6186
6150
  });
6187
6151
 
6188
- _defineProperty$3(this, "setProductsList", products => {
6189
- if (!Array.isArray(products)) {
6190
- return console.error(`setProductsList expects an array of products as an argument, got an argument of type ${typeof products} instead`);
6191
- }
6192
-
6193
- const allowedProducts = window.Pelcro.product.list();
6194
- const validProducts = products.filter(product => {
6195
- 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));
6196
-
6197
- if (!isValidProduct) {
6198
- 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);
6199
- }
6200
-
6201
- return isValidProduct;
6202
- });
6203
- this.set({
6204
- productsList: validProducts
6205
- });
6206
- });
6207
-
6208
6152
  _defineProperty$3(this, "setProduct", id => {
6209
6153
  const product = window.Pelcro.product.getById(id);
6210
6154
  if (!product) return console.error("invalid product id");
@@ -6426,12 +6370,10 @@ class PelcroCallbacks {
6426
6370
 
6427
6371
  }
6428
6372
 
6429
- var _window$Pelcro$produc, _window$Pelcro;
6430
- const initialState$j = {
6373
+ const initialState$i = {
6431
6374
  // View
6432
6375
  view: null,
6433
6376
  // Plans
6434
- 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 : [],
6435
6377
  product: null,
6436
6378
  plan: null,
6437
6379
  isGift: false,
@@ -6458,7 +6400,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6458
6400
  return {
6459
6401
  // Store setter
6460
6402
  set,
6461
- ...initialState$j,
6403
+ ...initialState$i,
6462
6404
  // State actions
6463
6405
  ...actions,
6464
6406
  // Callbacks
@@ -6813,30 +6755,6 @@ function userMustVerifyEmail() {
6813
6755
  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;
6814
6756
  return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
6815
6757
  }
6816
- function getRenewableProducts() {
6817
- var _window$Pelcro$subscr, _window$Pelcro$subscr2;
6818
-
6819
- 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 : [];
6820
- const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
6821
- const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
6822
- const {
6823
- productsList
6824
- } = usePelcro.getStore();
6825
- return productsList.map(product => {
6826
- if (renewableProductsIds.includes(product.id)) {
6827
- const renewablePlans = getRenewablePlansOnly(product);
6828
- return { ...product,
6829
- plans: renewablePlans
6830
- };
6831
- }
6832
- }).filter(product => product);
6833
-
6834
- function getRenewablePlansOnly(product) {
6835
- var _product$plans$filter, _product$plans;
6836
-
6837
- 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 : [];
6838
- }
6839
- }
6840
6758
 
6841
6759
  const resources = {
6842
6760
  en: {
@@ -6861,8 +6779,7 @@ const resources = {
6861
6779
  dashboard: dashboard_en,
6862
6780
  select: select_en,
6863
6781
  notification: notification_en,
6864
- invoiceDetails: invoiceDetails_en,
6865
- subscriptionOptions: subscriptionOptions_en
6782
+ invoiceDetails: invoiceDetails_en
6866
6783
  },
6867
6784
  fr: {
6868
6785
  common: common_fr,
@@ -6886,8 +6803,7 @@ const resources = {
6886
6803
  dashboard: dashboard_fr,
6887
6804
  select: select_fr,
6888
6805
  notification: notification_fr,
6889
- invoiceDetails: invoiceDetails_fr,
6890
- subscriptionOptions: subscriptionOptions_fr
6806
+ invoiceDetails: invoiceDetails_fr
6891
6807
  }
6892
6808
  }; // set UI language to the page language or default to the language in site settings
6893
6809
 
@@ -7178,8 +7094,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
7178
7094
 
7179
7095
  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}}
7180
7096
 
7181
- function _extends$A() {
7182
- _extends$A = Object.assign || function (target) {
7097
+ function _extends$z() {
7098
+ _extends$z = Object.assign || function (target) {
7183
7099
  for (var i = 1; i < arguments.length; i++) {
7184
7100
  var source = arguments[i];
7185
7101
 
@@ -7193,7 +7109,7 @@ function _extends$A() {
7193
7109
  return target;
7194
7110
  };
7195
7111
 
7196
- return _extends$A.apply(this, arguments);
7112
+ return _extends$z.apply(this, arguments);
7197
7113
  }
7198
7114
 
7199
7115
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7283,7 +7199,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7283
7199
  var reducer = function reducer(state, action) {
7284
7200
  switch (action.type) {
7285
7201
  case ActionType.ADD_TOAST:
7286
- return _extends$A({}, state, {
7202
+ return _extends$z({}, state, {
7287
7203
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7288
7204
  });
7289
7205
 
@@ -7293,9 +7209,9 @@ var reducer = function reducer(state, action) {
7293
7209
  clearFromRemoveQueue(action.toast.id);
7294
7210
  }
7295
7211
 
7296
- return _extends$A({}, state, {
7212
+ return _extends$z({}, state, {
7297
7213
  toasts: state.toasts.map(function (t) {
7298
- return t.id === action.toast.id ? _extends$A({}, t, action.toast) : t;
7214
+ return t.id === action.toast.id ? _extends$z({}, t, action.toast) : t;
7299
7215
  })
7300
7216
  });
7301
7217
 
@@ -7322,9 +7238,9 @@ var reducer = function reducer(state, action) {
7322
7238
  });
7323
7239
  }
7324
7240
 
7325
- return _extends$A({}, state, {
7241
+ return _extends$z({}, state, {
7326
7242
  toasts: state.toasts.map(function (t) {
7327
- return t.id === toastId || toastId === undefined ? _extends$A({}, t, {
7243
+ return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
7328
7244
  visible: false
7329
7245
  }) : t;
7330
7246
  })
@@ -7332,28 +7248,28 @@ var reducer = function reducer(state, action) {
7332
7248
 
7333
7249
  case ActionType.REMOVE_TOAST:
7334
7250
  if (action.toastId === undefined) {
7335
- return _extends$A({}, state, {
7251
+ return _extends$z({}, state, {
7336
7252
  toasts: []
7337
7253
  });
7338
7254
  }
7339
7255
 
7340
- return _extends$A({}, state, {
7256
+ return _extends$z({}, state, {
7341
7257
  toasts: state.toasts.filter(function (t) {
7342
7258
  return t.id !== action.toastId;
7343
7259
  })
7344
7260
  });
7345
7261
 
7346
7262
  case ActionType.START_PAUSE:
7347
- return _extends$A({}, state, {
7263
+ return _extends$z({}, state, {
7348
7264
  pausedAt: action.time
7349
7265
  });
7350
7266
 
7351
7267
  case ActionType.END_PAUSE:
7352
7268
  var diff = action.time - (state.pausedAt || 0);
7353
- return _extends$A({}, state, {
7269
+ return _extends$z({}, state, {
7354
7270
  pausedAt: undefined,
7355
7271
  toasts: state.toasts.map(function (t) {
7356
- return _extends$A({}, t, {
7272
+ return _extends$z({}, t, {
7357
7273
  pauseDuration: t.pauseDuration + diff
7358
7274
  });
7359
7275
  })
@@ -7400,12 +7316,12 @@ var useStore = function useStore(toastOptions) {
7400
7316
  var mergedToasts = state.toasts.map(function (t) {
7401
7317
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7402
7318
 
7403
- return _extends$A({}, toastOptions, toastOptions[t.type], t, {
7319
+ return _extends$z({}, toastOptions, toastOptions[t.type], t, {
7404
7320
  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],
7405
- style: _extends$A({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7321
+ style: _extends$z({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7406
7322
  });
7407
7323
  });
7408
- return _extends$A({}, state, {
7324
+ return _extends$z({}, state, {
7409
7325
  toasts: mergedToasts
7410
7326
  });
7411
7327
  };
@@ -7415,7 +7331,7 @@ var createToast = function createToast(message, type, opts) {
7415
7331
  type = 'blank';
7416
7332
  }
7417
7333
 
7418
- return _extends$A({
7334
+ return _extends$z({
7419
7335
  createdAt: Date.now(),
7420
7336
  visible: true,
7421
7337
  type: type,
@@ -7465,14 +7381,14 @@ toast.remove = function (toastId) {
7465
7381
  };
7466
7382
 
7467
7383
  toast.promise = function (promise, msgs, opts) {
7468
- var id = toast.loading(msgs.loading, _extends$A({}, opts, opts == null ? void 0 : opts.loading));
7384
+ var id = toast.loading(msgs.loading, _extends$z({}, opts, opts == null ? void 0 : opts.loading));
7469
7385
  promise.then(function (p) {
7470
- toast.success(resolveValue(msgs.success, p), _extends$A({
7386
+ toast.success(resolveValue(msgs.success, p), _extends$z({
7471
7387
  id: id
7472
7388
  }, opts, opts == null ? void 0 : opts.success));
7473
7389
  return p;
7474
7390
  })["catch"](function (e) {
7475
- toast.error(resolveValue(msgs.error, e), _extends$A({
7391
+ toast.error(resolveValue(msgs.error, e), _extends$z({
7476
7392
  id: id
7477
7393
  }, opts, opts == null ? void 0 : opts.error));
7478
7394
  });
@@ -7811,7 +7727,7 @@ var ToastBar = /*#__PURE__*/React.memo(function (_ref2) {
7811
7727
  var message = React.createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7812
7728
  return React.createElement(ToastBarBase, {
7813
7729
  className: toast.className,
7814
- style: _extends$A({}, animationStyle, style, toast.style)
7730
+ style: _extends$z({}, animationStyle, style, toast.style)
7815
7731
  }, typeof children === 'function' ? children({
7816
7732
  icon: icon,
7817
7733
  message: message
@@ -7841,7 +7757,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7841
7757
  } : position.includes('right') ? {
7842
7758
  justifyContent: 'flex-end'
7843
7759
  } : {};
7844
- return _extends$A({
7760
+ return _extends$z({
7845
7761
  left: 0,
7846
7762
  right: 0,
7847
7763
  display: 'flex',
@@ -7868,7 +7784,7 @@ var Toaster = function Toaster(_ref) {
7868
7784
  handlers = _useToaster.handlers;
7869
7785
 
7870
7786
  return React.createElement("div", {
7871
- style: _extends$A({
7787
+ style: _extends$z({
7872
7788
  position: 'fixed',
7873
7789
  zIndex: 9999,
7874
7790
  top: DEFAULT_OFFSET,
@@ -7903,82 +7819,82 @@ var Toaster = function Toaster(_ref) {
7903
7819
  }));
7904
7820
  };
7905
7821
 
7906
- var _path$x;
7822
+ var _path$w;
7907
7823
 
7908
- 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); }
7824
+ 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); }
7909
7825
 
7910
7826
  function SvgCheckSolid(props) {
7911
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$z({
7827
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
7912
7828
  xmlns: "http://www.w3.org/2000/svg",
7913
7829
  className: "h-5 w-5",
7914
7830
  viewBox: "0 0 20 20",
7915
7831
  fill: "currentColor"
7916
- }, props), _path$x || (_path$x = /*#__PURE__*/React__namespace.createElement("path", {
7832
+ }, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
7917
7833
  fillRule: "evenodd",
7918
7834
  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",
7919
7835
  clipRule: "evenodd"
7920
7836
  })));
7921
7837
  }
7922
7838
 
7923
- var _path$w;
7839
+ var _path$v;
7924
7840
 
7925
- 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); }
7841
+ 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); }
7926
7842
 
7927
7843
  function SvgXIcon(props) {
7928
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
7844
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
7929
7845
  xmlns: "http://www.w3.org/2000/svg",
7930
7846
  viewBox: "0 0 20 20",
7931
7847
  fill: "currentColor"
7932
- }, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
7848
+ }, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
7933
7849
  fill: "evenodd",
7934
7850
  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",
7935
7851
  clipRule: "evenodd"
7936
7852
  })));
7937
7853
  }
7938
7854
 
7939
- var _path$v;
7855
+ var _path$u;
7940
7856
 
7941
- 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); }
7857
+ 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); }
7942
7858
 
7943
7859
  function SvgXIconSolid(props) {
7944
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
7860
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
7945
7861
  className: "plc-w-4 plc-h-4",
7946
7862
  fill: "currentColor",
7947
7863
  xmlns: "http://www.w3.org/2000/svg",
7948
7864
  viewBox: "0 0 100 100"
7949
- }, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
7865
+ }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
7950
7866
  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"
7951
7867
  })));
7952
7868
  }
7953
7869
 
7954
- var _path$u;
7870
+ var _path$t;
7955
7871
 
7956
- 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); }
7872
+ 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); }
7957
7873
 
7958
7874
  function SvgExclamation(props) {
7959
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
7875
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
7960
7876
  className: "plc-w-4 plc-h-4 plc-mr-1",
7961
7877
  xmlns: "http://www.w3.org/2000/svg",
7962
7878
  viewBox: "0 0 20 20",
7963
7879
  fill: "currentColor"
7964
- }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
7880
+ }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
7965
7881
  fillRule: "evenodd",
7966
7882
  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",
7967
7883
  clipRule: "evenodd"
7968
7884
  })));
7969
7885
  }
7970
7886
 
7971
- var _path$t, _path2$4;
7887
+ var _path$s, _path2$4;
7972
7888
 
7973
- 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); }
7889
+ 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); }
7974
7890
 
7975
7891
  function SvgSpinner(props) {
7976
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
7892
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
7977
7893
  className: "plc-animate-spin",
7978
7894
  viewBox: "0 0 24 24",
7979
7895
  fill: "currentColor",
7980
7896
  xmlns: "http://www.w3.org/2000/svg"
7981
- }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
7897
+ }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
7982
7898
  opacity: 0.2,
7983
7899
  fill: "evenodd",
7984
7900
  clipRule: "evenodd",
@@ -8268,9 +8184,7 @@ const init$1 = () => {
8268
8184
  return switchToAddressView();
8269
8185
  });
8270
8186
  } else {
8271
- pelcroSubscribeButtonsByClass[j].addEventListener("click", () => {
8272
- return switchView("subscription-options");
8273
- });
8187
+ pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
8274
8188
  }
8275
8189
  }
8276
8190
  }
@@ -8432,8 +8346,7 @@ function Link({
8432
8346
  const init = () => {
8433
8347
  const {
8434
8348
  switchView,
8435
- set,
8436
- setProductsList
8349
+ set
8437
8350
  } = usePelcro.getStore();
8438
8351
  const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
8439
8352
 
@@ -8484,8 +8397,7 @@ const init = () => {
8484
8397
  }
8485
8398
 
8486
8399
  notify.dismiss(NOTIFICATION_ID);
8487
- setProductsList(window.Pelcro.product.getByEntitlements(entitlements));
8488
- switchView("plan-select");
8400
+ switchView("_plan-select-entitlements");
8489
8401
  }
8490
8402
  }, "Subscribe"), "now to get full page access.")), {
8491
8403
  className: "pelcro-notification-entitlement",
@@ -9320,7 +9232,7 @@ const PelcroModalController = ({
9320
9232
  type
9321
9233
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default['default'].Children.map(children, child => child).find(({
9322
9234
  type
9323
- }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-renew" && React__default['default'].Children.map(children, child => child).find(({
9235
+ }) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default['default'].Children.map(children, child => child).find(({
9324
9236
  type
9325
9237
  }) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default['default'].Children.map(children, child => child).find(({
9326
9238
  type
@@ -9601,10 +9513,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
9601
9513
  const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9602
9514
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9603
9515
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9604
- const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
9605
- const SWITCH_TO_NEW = "SWITCH_TO_NEW";
9606
9516
 
9607
- const initialState$i = {
9517
+ const initialState$h = {
9608
9518
  email: "",
9609
9519
  password: "",
9610
9520
  emailError: null,
@@ -9615,10 +9525,10 @@ const initialState$i = {
9615
9525
  content: ""
9616
9526
  }
9617
9527
  };
9618
- const store$i = /*#__PURE__*/React.createContext(initialState$i);
9528
+ const store$h = /*#__PURE__*/React.createContext(initialState$h);
9619
9529
  const {
9620
- Provider: Provider$i
9621
- } = store$i;
9530
+ Provider: Provider$h
9531
+ } = store$h;
9622
9532
 
9623
9533
  const LoginContainer = ({
9624
9534
  style,
@@ -9725,7 +9635,7 @@ const LoginContainer = ({
9725
9635
  });
9726
9636
 
9727
9637
  case RESET_LOGIN_FORM:
9728
- return initialState$i;
9638
+ return initialState$h;
9729
9639
 
9730
9640
  case DISABLE_LOGIN_BUTTON:
9731
9641
  return lib_7({ ...state,
@@ -9743,12 +9653,12 @@ const LoginContainer = ({
9743
9653
  default:
9744
9654
  return state;
9745
9655
  }
9746
- }, initialState$i);
9656
+ }, initialState$h);
9747
9657
  return /*#__PURE__*/React__default['default'].createElement("div", {
9748
9658
  style: { ...style
9749
9659
  },
9750
9660
  className: `pelcro-container pelcro-login-container ${className}`
9751
- }, /*#__PURE__*/React__default['default'].createElement(Provider$i, {
9661
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$h, {
9752
9662
  value: {
9753
9663
  state,
9754
9664
  dispatch
@@ -9756,12 +9666,12 @@ const LoginContainer = ({
9756
9666
  }, children.length ? children.map((child, i) => {
9757
9667
  if (child) {
9758
9668
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
9759
- store: store$i,
9669
+ store: store$h,
9760
9670
  key: i
9761
9671
  });
9762
9672
  }
9763
9673
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
9764
- store: store$i
9674
+ store: store$h
9765
9675
  })));
9766
9676
  };
9767
9677
 
@@ -10006,7 +9916,7 @@ const LoginButton = ({
10006
9916
  buttonDisabled
10007
9917
  },
10008
9918
  dispatch
10009
- } = React.useContext(store$i);
9919
+ } = React.useContext(store$h);
10010
9920
  const {
10011
9921
  t
10012
9922
  } = useTranslation("login");
@@ -10027,23 +9937,23 @@ const LoginButton = ({
10027
9937
  };
10028
9938
 
10029
9939
  const LoginEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
10030
- store: store$i
9940
+ store: store$h
10031
9941
  }, props));
10032
9942
 
10033
9943
  const LoginPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
10034
- store: store$i
9944
+ store: store$h
10035
9945
  }, props));
10036
9946
 
10037
- var _path$s;
9947
+ var _path$r;
10038
9948
 
10039
- 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); }
9949
+ 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); }
10040
9950
 
10041
9951
  function SvgCheck(props) {
10042
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
9952
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
10043
9953
  xmlns: "http://www.w3.org/2000/svg",
10044
9954
  fill: "currentColor",
10045
9955
  viewBox: "0 0 20 20"
10046
- }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
9956
+ }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
10047
9957
  fillRule: "evenodd",
10048
9958
  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",
10049
9959
  clipRule: "evenodd"
@@ -10108,7 +10018,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
10108
10018
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
10109
10019
  facebookLoginRenderProps.FacebookLogin;
10110
10020
 
10111
- const initialState$h = {
10021
+ const initialState$g = {
10112
10022
  email: "",
10113
10023
  password: "",
10114
10024
  emailError: null,
@@ -10125,10 +10035,10 @@ const initialState$h = {
10125
10035
  content: ""
10126
10036
  }
10127
10037
  };
10128
- const store$h = /*#__PURE__*/React.createContext(initialState$h);
10038
+ const store$g = /*#__PURE__*/React.createContext(initialState$g);
10129
10039
  const {
10130
- Provider: Provider$h
10131
- } = store$h;
10040
+ Provider: Provider$g
10041
+ } = store$g;
10132
10042
 
10133
10043
  const RegisterContainer = ({
10134
10044
  style,
@@ -10311,7 +10221,7 @@ const RegisterContainer = ({
10311
10221
  });
10312
10222
 
10313
10223
  case RESET_LOGIN_FORM:
10314
- return initialState$h;
10224
+ return initialState$g;
10315
10225
 
10316
10226
  case DISABLE_REGISTRATION_BUTTON:
10317
10227
  return lib_7({ ...state,
@@ -10329,12 +10239,12 @@ const RegisterContainer = ({
10329
10239
  default:
10330
10240
  return state;
10331
10241
  }
10332
- }, initialState$h);
10242
+ }, initialState$g);
10333
10243
  return /*#__PURE__*/React__default['default'].createElement("div", {
10334
10244
  style: { ...style
10335
10245
  },
10336
10246
  className: `pelcro-container pelcro-register-container ${className}`
10337
- }, /*#__PURE__*/React__default['default'].createElement(Provider$h, {
10247
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$g, {
10338
10248
  value: {
10339
10249
  state,
10340
10250
  dispatch
@@ -10342,12 +10252,12 @@ const RegisterContainer = ({
10342
10252
  }, children.length ? children.map((child, i) => {
10343
10253
  if (child) {
10344
10254
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
10345
- store: store$h,
10255
+ store: store$g,
10346
10256
  key: i
10347
10257
  });
10348
10258
  }
10349
10259
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
10350
- store: store$h
10260
+ store: store$g
10351
10261
  })));
10352
10262
  };
10353
10263
  /**
@@ -10362,15 +10272,15 @@ function hasSecurityTokenEnabled$1() {
10362
10272
  return hasSecuritySdkLoaded;
10363
10273
  }
10364
10274
 
10365
- var _path$r;
10275
+ var _path$q;
10366
10276
 
10367
- 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); }
10277
+ 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); }
10368
10278
 
10369
10279
  function SvgFacebookLogo(props) {
10370
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
10280
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
10371
10281
  xmlns: "http://www.w3.org/2000/svg",
10372
10282
  viewBox: "88.428 12.828 107.543 207.085"
10373
- }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
10283
+ }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
10374
10284
  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",
10375
10285
  fill: "#3c5a9a"
10376
10286
  })));
@@ -10387,10 +10297,10 @@ const FacebookLoginButton = ({
10387
10297
  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;
10388
10298
  const {
10389
10299
  dispatch: loginDispatch
10390
- } = React.useContext(store$i);
10300
+ } = React.useContext(store$h);
10391
10301
  const {
10392
10302
  dispatch: registerDispatch
10393
- } = React.useContext(store$h);
10303
+ } = React.useContext(store$g);
10394
10304
 
10395
10305
  const onSuccess = facebookUser => {
10396
10306
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10443,15 +10353,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10443
10353
  unwrapExports(googleLogin);
10444
10354
  var googleLogin_1 = googleLogin.GoogleLogin;
10445
10355
 
10446
- var _path$q, _path2$3, _path3$1, _path4;
10356
+ var _path$p, _path2$3, _path3$1, _path4;
10447
10357
 
10448
- 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); }
10358
+ 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); }
10449
10359
 
10450
10360
  function SvgGoogleLogo(props) {
10451
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
10361
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
10452
10362
  viewBox: "0 0 24 24",
10453
10363
  xmlns: "http://www.w3.org/2000/svg"
10454
- }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
10364
+ }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
10455
10365
  fill: "#4285F4",
10456
10366
  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"
10457
10367
  })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -10477,10 +10387,10 @@ const GoogleLoginButton = ({
10477
10387
  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;
10478
10388
  const {
10479
10389
  dispatch: loginDispatch
10480
- } = React.useContext(store$i);
10390
+ } = React.useContext(store$h);
10481
10391
  const {
10482
10392
  dispatch: registerDispatch
10483
- } = React.useContext(store$h);
10393
+ } = React.useContext(store$g);
10484
10394
 
10485
10395
  const onSuccess = response => {
10486
10396
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10528,15 +10438,15 @@ const GoogleLoginButton = ({
10528
10438
  }) : null;
10529
10439
  };
10530
10440
 
10531
- var _path$p;
10441
+ var _path$o;
10532
10442
 
10533
- 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); }
10443
+ 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); }
10534
10444
 
10535
10445
  function SvgAuth0Logo(props) {
10536
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
10446
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
10537
10447
  viewBox: "0 0 256 285",
10538
10448
  xmlns: "http://www.w3.org/2000/svg"
10539
- }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
10449
+ }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
10540
10450
  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"
10541
10451
  })));
10542
10452
  }
@@ -10576,10 +10486,10 @@ const Auth0LoginButton = ({
10576
10486
  }, [auth0Enabled, auth0Loaded]);
10577
10487
  const {
10578
10488
  dispatch: loginDispatch
10579
- } = React.useContext(store$i);
10489
+ } = React.useContext(store$h);
10580
10490
  const {
10581
10491
  dispatch: registerDispatch
10582
- } = React.useContext(store$h);
10492
+ } = React.useContext(store$g);
10583
10493
 
10584
10494
  function handleClick() {
10585
10495
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
@@ -10712,15 +10622,15 @@ function LoginView(props) {
10712
10622
  }, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, null), /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, null), /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, null))))));
10713
10623
  }
10714
10624
 
10715
- var _path$o, _path2$2, _path3;
10625
+ var _path$n, _path2$2, _path3;
10716
10626
 
10717
- 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); }
10627
+ 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); }
10718
10628
 
10719
10629
  function SvgPelcroAuthorship(props) {
10720
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
10630
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
10721
10631
  xmlns: "http://www.w3.org/2000/svg",
10722
10632
  viewBox: "0 -80.652 497.072 179.991"
10723
- }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
10633
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
10724
10634
  fill: "none",
10725
10635
  stroke: "#4a4a4a",
10726
10636
  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"
@@ -10867,11 +10777,11 @@ function LoginModal({
10867
10777
  LoginModal.viewId = "login";
10868
10778
 
10869
10779
  const RegisterEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
10870
- store: store$h
10780
+ store: store$g
10871
10781
  }, props));
10872
10782
 
10873
10783
  const RegisterPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
10874
- store: store$h
10784
+ store: store$g
10875
10785
  }, props));
10876
10786
 
10877
10787
  const RegisterButton = ({
@@ -10891,7 +10801,7 @@ const RegisterButton = ({
10891
10801
  buttonDisabled
10892
10802
  },
10893
10803
  dispatch
10894
- } = React.useContext(store$h);
10804
+ } = React.useContext(store$g);
10895
10805
  const {
10896
10806
  t
10897
10807
  } = useTranslation("register");
@@ -11029,7 +10939,7 @@ function FirstName({
11029
10939
  }
11030
10940
 
11031
10941
  const RegisterFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
11032
- store: store$h
10942
+ store: store$g
11033
10943
  }, props));
11034
10944
 
11035
10945
  function LastName({
@@ -11060,7 +10970,7 @@ function LastName({
11060
10970
  }
11061
10971
 
11062
10972
  const RegisterLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
11063
- store: store$h
10973
+ store: store$g
11064
10974
  }, props));
11065
10975
 
11066
10976
  /**
@@ -11184,7 +11094,7 @@ function TextInput({
11184
11094
 
11185
11095
  const RegisterTextInput = props => {
11186
11096
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
11187
- store: store$h
11097
+ store: store$g
11188
11098
  }));
11189
11099
  };
11190
11100
 
@@ -11331,7 +11241,6 @@ function SelectModalWithHook(props) {
11331
11241
  (_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
11332
11242
  }, []);
11333
11243
  const {
11334
- productsList,
11335
11244
  isGift,
11336
11245
  plan,
11337
11246
  product,
@@ -11341,12 +11250,11 @@ function SelectModalWithHook(props) {
11341
11250
  view,
11342
11251
  set
11343
11252
  } = usePelcro();
11344
- const isRenewingSub = view === "_plan-select-renew";
11253
+ const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
11254
+ const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
11345
11255
  return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
11346
- productsList: productsList,
11347
11256
  isGift: isGift,
11348
- disableGifting: isRenewingGift || isRenewingSub,
11349
- isRenewingSub: isRenewingSub,
11257
+ disableGifting: isRenewingGift,
11350
11258
  plan: plan,
11351
11259
  product: product,
11352
11260
  onClose: () => {
@@ -11360,10 +11268,8 @@ function SelectModalWithHook(props) {
11360
11268
  plan,
11361
11269
  isGift
11362
11270
  }),
11363
- setSubscriptionIdToRenew: subscriptionIdToRenew => set({
11364
- subscriptionIdToRenew
11365
- }),
11366
- setView: switchView
11271
+ setView: switchView,
11272
+ matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
11367
11273
  });
11368
11274
  }
11369
11275
  SelectModalWithHook.viewId = "plan-select";
@@ -11395,10 +11301,10 @@ class SelectModal extends React.Component {
11395
11301
  });
11396
11302
  }
11397
11303
 
11398
- if (this.props.productsList.length === 1) {
11304
+ if (this.state.productList.length === 1) {
11399
11305
  this.setState({
11400
- product: this.props.productsList[0],
11401
- planList: this.props.productsList[0].plans,
11306
+ product: this.state.productList[0],
11307
+ planList: this.state.productList[0].plans,
11402
11308
  mode: "plan"
11403
11309
  });
11404
11310
  }
@@ -11415,7 +11321,7 @@ class SelectModal extends React.Component {
11415
11321
  });
11416
11322
 
11417
11323
  _defineProperty$3(this, "onProductChange", e => {
11418
- const product = productsList[e.target.selectedIndex];
11324
+ const product = window.Pelcro.product.list()[e.target.selectedIndex];
11419
11325
  this.setState({
11420
11326
  product: product,
11421
11327
  plan: product.plans[0]
@@ -11481,7 +11387,7 @@ class SelectModal extends React.Component {
11481
11387
 
11482
11388
  _defineProperty$3(this, "renderProducts", () => {
11483
11389
  const userDidSelectProduct = Boolean(this.state.mode === "plan");
11484
- const productsToShow = userDidSelectProduct ? [this.state.product] : this.props.productsList;
11390
+ const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
11485
11391
  return productsToShow.map((product, index) => {
11486
11392
  return this.renderOneProduct(product, index);
11487
11393
  });
@@ -11494,7 +11400,7 @@ class SelectModal extends React.Component {
11494
11400
  return this.renderOneProduct(this.state.product);
11495
11401
  }
11496
11402
 
11497
- const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(this.props.productsList); // Render normal products if there are no available matching products
11403
+ const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
11498
11404
 
11499
11405
  if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
11500
11406
  return this.renderProducts();
@@ -11510,7 +11416,10 @@ class SelectModal extends React.Component {
11510
11416
  className: "plc-text-sm plc-font-semibold"
11511
11417
  }, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
11512
11418
 
11513
- function productsWithMatchedTaggedFirst(allProducts) {
11419
+ function productsWithMatchedTaggedFirst() {
11420
+ var _window$Pelcro$produc;
11421
+
11422
+ const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11514
11423
  const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11515
11424
  const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
11516
11425
  return [productsThatMatchArticleTag, allProductsMinusMatched];
@@ -11544,7 +11453,7 @@ class SelectModal extends React.Component {
11544
11453
  _defineProperty$3(this, "selectProduct", e => {
11545
11454
  const id = e.target.dataset.key;
11546
11455
 
11547
- for (const product of this.props.productsList) {
11456
+ for (const product of this.state.productList) {
11548
11457
  if (+product.id === +id) {
11549
11458
  var _this$state$plan;
11550
11459
 
@@ -11597,14 +11506,6 @@ class SelectModal extends React.Component {
11597
11506
 
11598
11507
  _defineProperty$3(this, "submitOption", () => {
11599
11508
  this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
11600
-
11601
- if (this.props.isRenewingSub) {
11602
- var _matchingSub$id;
11603
-
11604
- const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
11605
- this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
11606
- }
11607
-
11608
11509
  const {
11609
11510
  product,
11610
11511
  isGift
@@ -11642,7 +11543,8 @@ class SelectModal extends React.Component {
11642
11543
  plan: {},
11643
11544
  isGift: props.isGift,
11644
11545
  disabled: true,
11645
- mode: "product"
11546
+ mode: "product",
11547
+ productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
11646
11548
  };
11647
11549
  this.product = this.props.product || window.Pelcro.paywall.getProduct();
11648
11550
  this.locale = this.props.t;
@@ -11650,7 +11552,7 @@ class SelectModal extends React.Component {
11650
11552
  }
11651
11553
 
11652
11554
  render() {
11653
- var _this$props$productsL, _this$props$productsL2, _window$Pelcro$site$r;
11555
+ var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
11654
11556
 
11655
11557
  const {
11656
11558
  disableGifting
@@ -11684,7 +11586,7 @@ class SelectModal extends React.Component {
11684
11586
  className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
11685
11587
  }, /*#__PURE__*/React__default['default'].createElement("h4", {
11686
11588
  className: "plc-text-2xl plc-font-semibold"
11687
- }, 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['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['default'].createElement("div", {
11589
+ }, 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['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['default'].createElement("div", {
11688
11590
  className: "pelcro-select-products-wrapper"
11689
11591
  }, (_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['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
11690
11592
  className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
@@ -13536,7 +13438,7 @@ class VantivGateway {
13536
13438
 
13537
13439
  /** @type {PaymentStateType} */
13538
13440
 
13539
- const initialState$g = {
13441
+ const initialState$f = {
13540
13442
  disableSubmit: false,
13541
13443
  isLoading: false,
13542
13444
  disableCouponButton: false,
@@ -13555,10 +13457,10 @@ const initialState$g = {
13555
13457
  content: ""
13556
13458
  }
13557
13459
  };
13558
- const store$g = /*#__PURE__*/React.createContext(initialState$g);
13460
+ const store$f = /*#__PURE__*/React.createContext(initialState$f);
13559
13461
  const {
13560
- Provider: Provider$g
13561
- } = store$g;
13462
+ Provider: Provider$f
13463
+ } = store$f;
13562
13464
 
13563
13465
  const PaymentMethodContainerWithoutStripe = ({
13564
13466
  style,
@@ -14810,21 +14712,21 @@ const PaymentMethodContainerWithoutStripe = ({
14810
14712
  default:
14811
14713
  return state;
14812
14714
  }
14813
- }, initialState$g);
14715
+ }, initialState$f);
14814
14716
  return /*#__PURE__*/React__default['default'].createElement("div", {
14815
14717
  style: { ...style
14816
14718
  },
14817
14719
  className: `pelcro-container pelcro-payment-container ${className}`
14818
- }, /*#__PURE__*/React__default['default'].createElement(Provider$g, {
14720
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
14819
14721
  value: {
14820
14722
  state,
14821
14723
  dispatch
14822
14724
  }
14823
14725
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
14824
- store: store$g,
14726
+ store: store$f,
14825
14727
  key: i
14826
14728
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
14827
- store: store$g
14729
+ store: store$f
14828
14730
  })));
14829
14731
  };
14830
14732
 
@@ -14846,7 +14748,7 @@ const PaymentMethodContainer = props => {
14846
14748
  stripeAccount: window.Pelcro.site.read().account_id,
14847
14749
  locale: getPageOrDefaultLanguage()
14848
14750
  }, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
14849
- store: store$g
14751
+ store: store$f
14850
14752
  }, props))));
14851
14753
  }
14852
14754
 
@@ -14899,7 +14801,7 @@ const PelcroPaymentRequestButton = props => {
14899
14801
  currentPlan,
14900
14802
  updatedPrice
14901
14803
  }
14902
- } = React.useContext(store$g);
14804
+ } = React.useContext(store$f);
14903
14805
 
14904
14806
  const updatePaymentRequest = () => {
14905
14807
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -14975,7 +14877,7 @@ const DiscountedPrice = props => {
14975
14877
  taxAmount,
14976
14878
  percentOff
14977
14879
  }
14978
- } = React.useContext(store$g);
14880
+ } = React.useContext(store$f);
14979
14881
  const {
14980
14882
  order,
14981
14883
  plan
@@ -15025,7 +14927,7 @@ const SubmitPaymentMethod = ({
15025
14927
  isLoading,
15026
14928
  updatedPrice
15027
14929
  }
15028
- } = React.useContext(store$g);
14930
+ } = React.useContext(store$f);
15029
14931
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
15030
14932
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
15031
14933
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -15046,17 +14948,17 @@ const SubmitPaymentMethod = ({
15046
14948
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
15047
14949
  };
15048
14950
 
15049
- var _path$n;
14951
+ var _path$m;
15050
14952
 
15051
- 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); }
14953
+ 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); }
15052
14954
 
15053
14955
  function SvgArrowLeft(props) {
15054
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
14956
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
15055
14957
  xmlns: "http://www.w3.org/2000/svg",
15056
14958
  fill: "none",
15057
14959
  viewBox: "0 0 24 24",
15058
14960
  stroke: "currentColor"
15059
- }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
14961
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
15060
14962
  strokeLinecap: "round",
15061
14963
  strokeLinejoin: "round",
15062
14964
  strokeWidth: 2,
@@ -15075,7 +14977,7 @@ const ApplyCouponButton = ({
15075
14977
  disableCouponButton
15076
14978
  },
15077
14979
  dispatch
15078
- } = React.useContext(store$g);
14980
+ } = React.useContext(store$f);
15079
14981
  const {
15080
14982
  t
15081
14983
  } = useTranslation("checkoutForm");
@@ -15109,7 +15011,7 @@ const CouponCodeField = props => {
15109
15011
  couponCode,
15110
15012
  couponError
15111
15013
  }
15112
- } = React.useContext(store$g);
15014
+ } = React.useContext(store$f);
15113
15015
 
15114
15016
  const onCouponCodeChange = e => {
15115
15017
  dispatch({
@@ -15138,17 +15040,17 @@ const CouponCodeField = props => {
15138
15040
  }, props));
15139
15041
  };
15140
15042
 
15141
- var _path$m;
15043
+ var _path$l;
15142
15044
 
15143
- 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); }
15045
+ 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); }
15144
15046
 
15145
15047
  function SvgTicket(props) {
15146
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
15048
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
15147
15049
  xmlns: "http://www.w3.org/2000/svg",
15148
15050
  fill: "none",
15149
15051
  viewBox: "0 0 24 24",
15150
15052
  stroke: "currentColor"
15151
- }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
15053
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
15152
15054
  strokeLinecap: "round",
15153
15055
  strokeLinejoin: "round",
15154
15056
  strokeWidth: 2,
@@ -15165,7 +15067,7 @@ const CouponCode = ({
15165
15067
  state: {
15166
15068
  enableCouponField
15167
15069
  }
15168
- } = React.useContext(store$g);
15070
+ } = React.useContext(store$f);
15169
15071
  const {
15170
15072
  t
15171
15073
  } = useTranslation("checkoutForm");
@@ -15422,7 +15324,7 @@ const PaypalSubscribeButton = props => {
15422
15324
  const {
15423
15325
  dispatch,
15424
15326
  state
15425
- } = React.useContext(store$g);
15327
+ } = React.useContext(store$f);
15426
15328
  const {
15427
15329
  product,
15428
15330
  plan,
@@ -15529,16 +15431,16 @@ const BankRedirection = () => {
15529
15431
  }));
15530
15432
  };
15531
15433
 
15532
- var _path$l;
15434
+ var _path$k;
15533
15435
 
15534
- 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); }
15436
+ 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); }
15535
15437
 
15536
15438
  function SvgLock(props) {
15537
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
15439
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
15538
15440
  xmlns: "http://www.w3.org/2000/svg",
15539
15441
  viewBox: "0 0 20 20",
15540
15442
  fill: "currentColor"
15541
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
15443
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
15542
15444
  fillRule: "evenodd",
15543
15445
  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",
15544
15446
  clipRule: "evenodd"
@@ -15555,7 +15457,7 @@ const SelectedPaymentMethod = () => {
15555
15457
  state: {
15556
15458
  isLoading
15557
15459
  }
15558
- } = React.useContext(store$g);
15460
+ } = React.useContext(store$f);
15559
15461
  const {
15560
15462
  switchView,
15561
15463
  selectedPaymentMethodId
@@ -15597,7 +15499,7 @@ const TaxAmount = () => {
15597
15499
  state: {
15598
15500
  taxAmount
15599
15501
  }
15600
- } = React.useContext(store$g);
15502
+ } = React.useContext(store$f);
15601
15503
  const {
15602
15504
  plan
15603
15505
  } = usePelcro();
@@ -15761,12 +15663,12 @@ function SubscriptionRenewModal({
15761
15663
  }
15762
15664
  SubscriptionRenewModal.viewId = "subscription-renew";
15763
15665
 
15764
- var _path$k;
15666
+ var _path$j;
15765
15667
 
15766
- 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); }
15668
+ 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); }
15767
15669
 
15768
15670
  function SvgGift(props) {
15769
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
15671
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
15770
15672
  className: "plc-w-6 plc-h-6 plc-mr-2",
15771
15673
  fill: "none",
15772
15674
  stroke: "currentColor",
@@ -15775,7 +15677,7 @@ function SvgGift(props) {
15775
15677
  strokeWidth: 2,
15776
15678
  viewBox: "0 0 24 24",
15777
15679
  xmlns: "http://www.w3.org/2000/svg"
15778
- }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
15680
+ }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
15779
15681
  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"
15780
15682
  })));
15781
15683
  }
@@ -16116,7 +16018,7 @@ class DefaultNewsLetter extends React.Component {
16116
16018
 
16117
16019
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
16118
16020
 
16119
- const initialState$f = {
16021
+ const initialState$e = {
16120
16022
  didSubToNewslettersBefore: false,
16121
16023
  newsletters: [],
16122
16024
  isListLoading: true,
@@ -16126,10 +16028,10 @@ const initialState$f = {
16126
16028
  content: ""
16127
16029
  }
16128
16030
  };
16129
- const store$f = /*#__PURE__*/React.createContext(initialState$f);
16031
+ const store$e = /*#__PURE__*/React.createContext(initialState$e);
16130
16032
  const {
16131
- Provider: Provider$f
16132
- } = store$f;
16033
+ Provider: Provider$e
16034
+ } = store$e;
16133
16035
 
16134
16036
  const NewsletterUpdateContainer = ({
16135
16037
  style,
@@ -16242,7 +16144,7 @@ const NewsletterUpdateContainer = ({
16242
16144
  default:
16243
16145
  return state;
16244
16146
  }
16245
- }, initialState$f);
16147
+ }, initialState$e);
16246
16148
  React.useEffect(() => {
16247
16149
  const getUserNewsletters = () => {
16248
16150
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -16286,7 +16188,7 @@ const NewsletterUpdateContainer = ({
16286
16188
  style: { ...style
16287
16189
  },
16288
16190
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
16289
- }, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
16191
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
16290
16192
  value: {
16291
16193
  state,
16292
16194
  dispatch
@@ -16294,12 +16196,12 @@ const NewsletterUpdateContainer = ({
16294
16196
  }, children.length ? children.map((child, i) => {
16295
16197
  if (child) {
16296
16198
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
16297
- store: store$f,
16199
+ store: store$e,
16298
16200
  key: i
16299
16201
  });
16300
16202
  }
16301
16203
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
16302
- store: store$f
16204
+ store: store$e
16303
16205
  })));
16304
16206
  };
16305
16207
 
@@ -16314,7 +16216,7 @@ const NewsletterUpdateButton = ({
16314
16216
  isSubmitting,
16315
16217
  isListLoading
16316
16218
  }
16317
- } = React.useContext(store$f);
16219
+ } = React.useContext(store$e);
16318
16220
  const {
16319
16221
  t
16320
16222
  } = useTranslation("newsletter");
@@ -16344,7 +16246,7 @@ const NewsletterUpdateList = () => {
16344
16246
  newsletters,
16345
16247
  isListLoading
16346
16248
  }
16347
- } = React.useContext(store$f);
16249
+ } = React.useContext(store$e);
16348
16250
 
16349
16251
  if (isListLoading) {
16350
16252
  return /*#__PURE__*/React__default['default'].createElement(Loader, {
@@ -16548,7 +16450,7 @@ function SubscriptionCreateModal({
16548
16450
  SubscriptionCreateModal.viewId = "subscription-create";
16549
16451
 
16550
16452
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
16551
- const initialState$e = {
16453
+ const initialState$d = {
16552
16454
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
16553
16455
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
16554
16456
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -16561,10 +16463,10 @@ const initialState$e = {
16561
16463
  content: ""
16562
16464
  }
16563
16465
  };
16564
- const store$e = /*#__PURE__*/React.createContext(initialState$e);
16466
+ const store$d = /*#__PURE__*/React.createContext(initialState$d);
16565
16467
  const {
16566
- Provider: Provider$e
16567
- } = store$e;
16468
+ Provider: Provider$d
16469
+ } = store$d;
16568
16470
 
16569
16471
  const UserUpdateContainer = ({
16570
16472
  style,
@@ -16696,27 +16598,27 @@ const UserUpdateContainer = ({
16696
16598
  default:
16697
16599
  return state;
16698
16600
  }
16699
- }, initialState$e);
16601
+ }, initialState$d);
16700
16602
  return /*#__PURE__*/React__default['default'].createElement("div", {
16701
16603
  style: { ...style
16702
16604
  },
16703
16605
  className: `pelcro-container pelcro-user-update-container ${className}`
16704
- }, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
16606
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
16705
16607
  value: {
16706
16608
  state,
16707
16609
  dispatch
16708
16610
  }
16709
16611
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
16710
- store: store$e,
16612
+ store: store$d,
16711
16613
  key: i
16712
16614
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
16713
- store: store$e
16615
+ store: store$d
16714
16616
  })));
16715
16617
  };
16716
16618
 
16717
16619
  const UserUpdateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
16718
16620
  disabled: true,
16719
- store: store$e
16621
+ store: store$d
16720
16622
  }, props));
16721
16623
 
16722
16624
  const UserUpdateButton = ({
@@ -16729,7 +16631,7 @@ const UserUpdateButton = ({
16729
16631
  buttonDisabled
16730
16632
  },
16731
16633
  dispatch
16732
- } = React.useContext(store$e);
16634
+ } = React.useContext(store$d);
16733
16635
  const {
16734
16636
  t
16735
16637
  } = useTranslation("userEdit");
@@ -16746,11 +16648,11 @@ const UserUpdateButton = ({
16746
16648
  };
16747
16649
 
16748
16650
  const UserUpdateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
16749
- store: store$e
16651
+ store: store$d
16750
16652
  }, props));
16751
16653
 
16752
16654
  const UserUpdateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
16753
- store: store$e
16655
+ store: store$d
16754
16656
  }, props));
16755
16657
 
16756
16658
  function Phone({
@@ -16779,22 +16681,22 @@ function Phone({
16779
16681
  }
16780
16682
 
16781
16683
  const UserUpdatePhone = props => /*#__PURE__*/React__default['default'].createElement(Phone, Object.assign({
16782
- store: store$e
16684
+ store: store$d
16783
16685
  }, props));
16784
16686
 
16785
16687
  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";
16786
16688
 
16787
- var _path$j;
16689
+ var _path$i;
16788
16690
 
16789
- 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); }
16691
+ 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); }
16790
16692
 
16791
16693
  function SvgEdit(props) {
16792
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
16694
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
16793
16695
  className: "plc-w-6 plc-h-6",
16794
16696
  xmlns: "http://www.w3.org/2000/svg",
16795
16697
  viewBox: "0 0 20 20",
16796
16698
  fill: "currentColor"
16797
- }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
16699
+ }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
16798
16700
  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"
16799
16701
  })));
16800
16702
  }
@@ -16926,16 +16828,16 @@ function DisplayName({
16926
16828
  }
16927
16829
 
16928
16830
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default['default'].createElement(DisplayName, Object.assign({
16929
- store: store$e
16831
+ store: store$d
16930
16832
  }, props));
16931
16833
 
16932
16834
  const UserUpdateTextInput = props => {
16933
16835
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
16934
- store: store$e
16836
+ store: store$d
16935
16837
  }));
16936
16838
  };
16937
16839
 
16938
- const initialState$d = {
16840
+ const initialState$c = {
16939
16841
  isSubmitting: false,
16940
16842
  firstName: "",
16941
16843
  firstNameError: "",
@@ -16960,10 +16862,10 @@ const initialState$d = {
16960
16862
  content: ""
16961
16863
  }
16962
16864
  };
16963
- const store$d = /*#__PURE__*/React.createContext(initialState$d);
16865
+ const store$c = /*#__PURE__*/React.createContext(initialState$c);
16964
16866
  const {
16965
- Provider: Provider$d
16966
- } = store$d;
16867
+ Provider: Provider$c
16868
+ } = store$c;
16967
16869
 
16968
16870
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
16969
16871
 
@@ -17170,7 +17072,7 @@ const AddressCreateContainer = ({
17170
17072
  default:
17171
17073
  return state;
17172
17074
  }
17173
- }, initialState$d);
17075
+ }, initialState$c);
17174
17076
  React.useEffect(() => {
17175
17077
  const getStates = () => {
17176
17078
  dispatch({
@@ -17202,16 +17104,16 @@ const AddressCreateContainer = ({
17202
17104
  style: { ...style
17203
17105
  },
17204
17106
  className: `pelcro-container pelcro-address-create-container ${className}`
17205
- }, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
17107
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
17206
17108
  value: {
17207
17109
  state,
17208
17110
  dispatch
17209
17111
  }
17210
17112
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
17211
- store: store$d,
17113
+ store: store$c,
17212
17114
  key: i
17213
17115
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17214
- store: store$d
17116
+ store: store$c
17215
17117
  })));
17216
17118
  };
17217
17119
 
@@ -17222,7 +17124,7 @@ function AddressCreateFirstName(props) {
17222
17124
  firstName,
17223
17125
  firstNameError
17224
17126
  }
17225
- } = React.useContext(store$d);
17127
+ } = React.useContext(store$c);
17226
17128
 
17227
17129
  const handleBlur = () => {
17228
17130
  return dispatch({
@@ -17265,7 +17167,7 @@ function AddressCreateLastName(props) {
17265
17167
  lastName,
17266
17168
  lastNameError
17267
17169
  }
17268
- } = React.useContext(store$d);
17170
+ } = React.useContext(store$c);
17269
17171
 
17270
17172
  const handleBlur = () => {
17271
17173
  return dispatch({
@@ -17308,7 +17210,7 @@ function AddressCreateLine1(props) {
17308
17210
  line1,
17309
17211
  line1Error
17310
17212
  }
17311
- } = React.useContext(store$d);
17213
+ } = React.useContext(store$c);
17312
17214
 
17313
17215
  const handleBlur = () => {
17314
17216
  return dispatch({
@@ -17351,7 +17253,7 @@ function AddressCreateCity(props) {
17351
17253
  city,
17352
17254
  cityError
17353
17255
  }
17354
- } = React.useContext(store$d);
17256
+ } = React.useContext(store$c);
17355
17257
 
17356
17258
  const handleBlur = () => {
17357
17259
  return dispatch({
@@ -17394,7 +17296,7 @@ function AddressCreatePostalCode(props) {
17394
17296
  postalCode,
17395
17297
  postalCodeError
17396
17298
  }
17397
- } = React.useContext(store$d);
17299
+ } = React.useContext(store$c);
17398
17300
 
17399
17301
  const handleBlur = () => {
17400
17302
  return dispatch({
@@ -17440,7 +17342,7 @@ const AddressCreateSubmit = ({
17440
17342
  state: {
17441
17343
  isSubmitting
17442
17344
  }
17443
- } = React.useContext(store$d);
17345
+ } = React.useContext(store$c);
17444
17346
  const {
17445
17347
  t
17446
17348
  } = useTranslation("address");
@@ -17551,7 +17453,7 @@ function CountrySelect({
17551
17453
  }
17552
17454
 
17553
17455
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
17554
- store: store$d
17456
+ store: store$c
17555
17457
  }, props));
17556
17458
 
17557
17459
  function StateSelect({
@@ -17639,7 +17541,7 @@ function StateSelect({
17639
17541
  }
17640
17542
 
17641
17543
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
17642
- store: store$d
17544
+ store: store$c
17643
17545
  }, props));
17644
17546
 
17645
17547
  const AddressCreateView = props => {
@@ -17744,18 +17646,18 @@ AddressCreateModal.viewId = "address-create";
17744
17646
 
17745
17647
  const AddressCreateTextInput = props => {
17746
17648
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
17747
- store: store$d
17649
+ store: store$c
17748
17650
  }));
17749
17651
  };
17750
17652
 
17751
17653
  const AddressCreateLine2 = props => {
17752
17654
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
17753
17655
  fieldName: "line2",
17754
- store: store$d
17656
+ store: store$c
17755
17657
  }, props));
17756
17658
  };
17757
17659
 
17758
- const initialState$c = {
17660
+ const initialState$b = {
17759
17661
  isSubmitting: false,
17760
17662
  firstName: "",
17761
17663
  firstNameError: "",
@@ -17780,10 +17682,10 @@ const initialState$c = {
17780
17682
  content: ""
17781
17683
  }
17782
17684
  };
17783
- const store$c = /*#__PURE__*/React.createContext(initialState$c);
17685
+ const store$b = /*#__PURE__*/React.createContext(initialState$b);
17784
17686
  const {
17785
- Provider: Provider$c
17786
- } = store$c;
17687
+ Provider: Provider$b
17688
+ } = store$b;
17787
17689
 
17788
17690
  const AddressUpdateContainer = ({
17789
17691
  style,
@@ -17835,7 +17737,7 @@ const AddressUpdateContainer = ({
17835
17737
  const thisAddress = addresses[address];
17836
17738
 
17837
17739
  if (+thisAddress.id === +addressId) {
17838
- const newState = { ...initialState$c,
17740
+ const newState = { ...initialState$b,
17839
17741
  firstName: thisAddress.first_name,
17840
17742
  lastName: thisAddress.last_name,
17841
17743
  line1: thisAddress.line1,
@@ -17968,7 +17870,7 @@ const AddressUpdateContainer = ({
17968
17870
  default:
17969
17871
  return state;
17970
17872
  }
17971
- }, initialState$c);
17873
+ }, initialState$b);
17972
17874
  React.useEffect(() => {
17973
17875
  const getStates = () => {
17974
17876
  dispatch({
@@ -18000,21 +17902,21 @@ const AddressUpdateContainer = ({
18000
17902
  style: { ...style
18001
17903
  },
18002
17904
  className: `pelcro-container pelcro-address-update-container ${className}`
18003
- }, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
17905
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
18004
17906
  value: {
18005
17907
  state,
18006
17908
  dispatch
18007
17909
  }
18008
17910
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18009
- store: store$c,
17911
+ store: store$b,
18010
17912
  key: i
18011
17913
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18012
- store: store$c
17914
+ store: store$b
18013
17915
  })));
18014
17916
  };
18015
17917
 
18016
17918
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
18017
- store: store$c
17919
+ store: store$b
18018
17920
  }, props));
18019
17921
 
18020
17922
  function AddressUpdateFirstName(props) {
@@ -18024,7 +17926,7 @@ function AddressUpdateFirstName(props) {
18024
17926
  firstName,
18025
17927
  firstNameError
18026
17928
  }
18027
- } = React.useContext(store$c);
17929
+ } = React.useContext(store$b);
18028
17930
 
18029
17931
  const handleBlur = () => {
18030
17932
  return dispatch({
@@ -18067,7 +17969,7 @@ function AddressUpdateLastName(props) {
18067
17969
  lastName,
18068
17970
  lastNameError
18069
17971
  }
18070
- } = React.useContext(store$c);
17972
+ } = React.useContext(store$b);
18071
17973
 
18072
17974
  const handleBlur = () => {
18073
17975
  return dispatch({
@@ -18110,7 +18012,7 @@ function AddressUpdateLine1(props) {
18110
18012
  line1,
18111
18013
  line1Error
18112
18014
  }
18113
- } = React.useContext(store$c);
18015
+ } = React.useContext(store$b);
18114
18016
 
18115
18017
  const handleBlur = () => {
18116
18018
  return dispatch({
@@ -18150,7 +18052,7 @@ const AddressUpdateLine2 = props => {
18150
18052
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
18151
18053
  fieldName: "line2"
18152
18054
  }, props, {
18153
- store: store$c
18055
+ store: store$b
18154
18056
  }));
18155
18057
  };
18156
18058
 
@@ -18161,7 +18063,7 @@ function AddressUpdateCity(props) {
18161
18063
  city,
18162
18064
  cityError
18163
18065
  }
18164
- } = React.useContext(store$c);
18066
+ } = React.useContext(store$b);
18165
18067
 
18166
18068
  const handleBlur = () => {
18167
18069
  return dispatch({
@@ -18204,7 +18106,7 @@ function AddressUpdatePostalCode(props) {
18204
18106
  postalCode,
18205
18107
  postalCodeError
18206
18108
  }
18207
- } = React.useContext(store$c);
18109
+ } = React.useContext(store$b);
18208
18110
 
18209
18111
  const handleBlur = () => {
18210
18112
  return dispatch({
@@ -18250,7 +18152,7 @@ const AddressUpdateSubmit = ({
18250
18152
  state: {
18251
18153
  isSubmitting
18252
18154
  }
18253
- } = React.useContext(store$c);
18155
+ } = React.useContext(store$b);
18254
18156
  const {
18255
18157
  t
18256
18158
  } = useTranslation("address");
@@ -18266,7 +18168,7 @@ const AddressUpdateSubmit = ({
18266
18168
  };
18267
18169
 
18268
18170
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
18269
- store: store$c
18171
+ store: store$b
18270
18172
  }, props));
18271
18173
 
18272
18174
  const AddressUpdateView = props => {
@@ -18349,7 +18251,7 @@ AddressUpdateModal.viewId = "address-edit";
18349
18251
 
18350
18252
  const AddressUpdateTextInput = props => {
18351
18253
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
18352
- store: store$c
18254
+ store: store$b
18353
18255
  }));
18354
18256
  };
18355
18257
 
@@ -18432,7 +18334,7 @@ const PaymentMethodUpdateModal = props => {
18432
18334
  };
18433
18335
  PaymentMethodUpdateModal.viewId = "payment-method-update";
18434
18336
 
18435
- const initialState$b = {
18337
+ const initialState$a = {
18436
18338
  email: "",
18437
18339
  password: "",
18438
18340
  passwordError: null,
@@ -18445,10 +18347,10 @@ const initialState$b = {
18445
18347
  content: ""
18446
18348
  }
18447
18349
  };
18448
- const store$b = /*#__PURE__*/React.createContext(initialState$b);
18350
+ const store$a = /*#__PURE__*/React.createContext(initialState$a);
18449
18351
  const {
18450
- Provider: Provider$b
18451
- } = store$b;
18352
+ Provider: Provider$a
18353
+ } = store$a;
18452
18354
 
18453
18355
  const PasswordResetContainer = ({
18454
18356
  style,
@@ -18505,7 +18407,7 @@ const PasswordResetContainer = ({
18505
18407
  type: SET_EMAIL,
18506
18408
  payload: window.Pelcro.helpers.getURLParameter("email")
18507
18409
  });
18508
- initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
18410
+ initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
18509
18411
  dispatch({
18510
18412
  type: SET_TOKEN,
18511
18413
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -18565,26 +18467,26 @@ const PasswordResetContainer = ({
18565
18467
  default:
18566
18468
  return state;
18567
18469
  }
18568
- }, initialState$b);
18470
+ }, initialState$a);
18569
18471
  return /*#__PURE__*/React__default['default'].createElement("div", {
18570
18472
  style: { ...style
18571
18473
  },
18572
18474
  className: `pelcro-container pelcro-password-reset-container ${className}`
18573
- }, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
18475
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
18574
18476
  value: {
18575
18477
  state,
18576
18478
  dispatch
18577
18479
  }
18578
18480
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18579
- store: store$b,
18481
+ store: store$a,
18580
18482
  key: i
18581
18483
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18582
- store: store$b
18484
+ store: store$a
18583
18485
  })));
18584
18486
  };
18585
18487
 
18586
18488
  const PasswordResetPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
18587
- store: store$b
18489
+ store: store$a
18588
18490
  }, props));
18589
18491
 
18590
18492
  const PasswordResetButton = ({
@@ -18597,7 +18499,7 @@ const PasswordResetButton = ({
18597
18499
  buttonDisabled
18598
18500
  },
18599
18501
  dispatch
18600
- } = React.useContext(store$b);
18502
+ } = React.useContext(store$a);
18601
18503
  const {
18602
18504
  t
18603
18505
  } = useTranslation("passwordReset");
@@ -18614,14 +18516,14 @@ const PasswordResetButton = ({
18614
18516
  };
18615
18517
 
18616
18518
  const PasswordResetEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
18617
- store: store$b
18519
+ store: store$a
18618
18520
  }, props, {
18619
18521
  value: window.Pelcro.helpers.getURLParameter("email"),
18620
18522
  disabled: true
18621
18523
  }));
18622
18524
 
18623
18525
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default['default'].createElement(ConfirmPassword, Object.assign({
18624
- store: store$b
18526
+ store: store$a
18625
18527
  }, props));
18626
18528
 
18627
18529
  const PasswordResetView = props => {
@@ -18673,7 +18575,7 @@ const PasswordResetModal = ({
18673
18575
  };
18674
18576
  PasswordResetModal.viewId = "password-reset";
18675
18577
 
18676
- const initialState$a = {
18578
+ const initialState$9 = {
18677
18579
  email: "",
18678
18580
  emailError: null,
18679
18581
  buttonDisabled: false,
@@ -18682,10 +18584,10 @@ const initialState$a = {
18682
18584
  content: ""
18683
18585
  }
18684
18586
  };
18685
- const store$a = /*#__PURE__*/React.createContext(initialState$a);
18587
+ const store$9 = /*#__PURE__*/React.createContext(initialState$9);
18686
18588
  const {
18687
- Provider: Provider$a
18688
- } = store$a;
18589
+ Provider: Provider$9
18590
+ } = store$9;
18689
18591
 
18690
18592
  const PasswordForgotContainer = ({
18691
18593
  style,
@@ -18763,21 +18665,21 @@ const PasswordForgotContainer = ({
18763
18665
  default:
18764
18666
  return state;
18765
18667
  }
18766
- }, initialState$a);
18668
+ }, initialState$9);
18767
18669
  return /*#__PURE__*/React__default['default'].createElement("div", {
18768
18670
  style: { ...style
18769
18671
  },
18770
18672
  className: `pelcro-container pelcro-password-forgot-container ${className}`
18771
- }, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
18673
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
18772
18674
  value: {
18773
18675
  state,
18774
18676
  dispatch
18775
18677
  }
18776
18678
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18777
- store: store$a,
18679
+ store: store$9,
18778
18680
  key: i
18779
18681
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18780
- store: store$a
18682
+ store: store$9
18781
18683
  })));
18782
18684
  };
18783
18685
 
@@ -18793,7 +18695,7 @@ const PasswordForgotButton = ({
18793
18695
  emailError
18794
18696
  },
18795
18697
  dispatch
18796
- } = React.useContext(store$a);
18698
+ } = React.useContext(store$9);
18797
18699
  const {
18798
18700
  t
18799
18701
  } = useTranslation("passwordForgot");
@@ -18814,7 +18716,7 @@ const PasswordForgotButton = ({
18814
18716
  };
18815
18717
 
18816
18718
  const PasswordForgotEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
18817
- store: store$a
18719
+ store: store$9
18818
18720
  }, props));
18819
18721
 
18820
18722
  const PasswordForgotView = props => {
@@ -18864,7 +18766,7 @@ const PasswordForgotModal = ({
18864
18766
  };
18865
18767
  PasswordForgotModal.viewId = "password-forgot";
18866
18768
 
18867
- const initialState$9 = {
18769
+ const initialState$8 = {
18868
18770
  currentPassword: "",
18869
18771
  newPassword: "",
18870
18772
  confirmNewPassword: "",
@@ -18878,10 +18780,10 @@ const initialState$9 = {
18878
18780
  content: ""
18879
18781
  }
18880
18782
  };
18881
- const store$9 = /*#__PURE__*/React.createContext(initialState$9);
18783
+ const store$8 = /*#__PURE__*/React.createContext(initialState$8);
18882
18784
  const {
18883
- Provider: Provider$9
18884
- } = store$9;
18785
+ Provider: Provider$8
18786
+ } = store$8;
18885
18787
  const PasswordChangeContainer = ({
18886
18788
  style,
18887
18789
  className = "",
@@ -19033,21 +18935,21 @@ const PasswordChangeContainer = ({
19033
18935
  default:
19034
18936
  return state;
19035
18937
  }
19036
- }, initialState$9);
18938
+ }, initialState$8);
19037
18939
  return /*#__PURE__*/React__default['default'].createElement("div", {
19038
18940
  style: { ...style
19039
18941
  },
19040
18942
  className: `pelcro-container pelcro-password-change-container ${className}`
19041
- }, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
18943
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
19042
18944
  value: {
19043
18945
  state,
19044
18946
  dispatch
19045
18947
  }
19046
18948
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19047
- store: store$9,
18949
+ store: store$8,
19048
18950
  key: i
19049
18951
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19050
- store: store$9
18952
+ store: store$8
19051
18953
  })));
19052
18954
  };
19053
18955
 
@@ -19058,7 +18960,7 @@ function PasswordChangeCurrentPassword(props) {
19058
18960
  currentPassword,
19059
18961
  currentPasswordError
19060
18962
  }
19061
- } = React.useContext(store$9);
18963
+ } = React.useContext(store$8);
19062
18964
  const handleBlur = React.useCallback(() => {
19063
18965
  return dispatch({
19064
18966
  type: VALIDATE_PASSWORD
@@ -19092,7 +18994,7 @@ function PasswordChangeNewPassword(props) {
19092
18994
  newPassword,
19093
18995
  newPasswordError
19094
18996
  }
19095
- } = React.useContext(store$9);
18997
+ } = React.useContext(store$8);
19096
18998
  const handleBlur = React.useCallback(() => {
19097
18999
  return dispatch({
19098
19000
  type: VALIDATE_NEW_PASSWORD
@@ -19126,7 +19028,7 @@ function PasswordChangeConfirmNewPassword(props) {
19126
19028
  confirmNewPassword,
19127
19029
  confirmNewPasswordError
19128
19030
  }
19129
- } = React.useContext(store$9);
19031
+ } = React.useContext(store$8);
19130
19032
  const handleBlur = React.useCallback(() => {
19131
19033
  return dispatch({
19132
19034
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -19167,7 +19069,7 @@ const PasswordChangeButton = ({
19167
19069
  confirmNewPasswordError
19168
19070
  },
19169
19071
  dispatch
19170
- } = React.useContext(store$9);
19072
+ } = React.useContext(store$8);
19171
19073
  const {
19172
19074
  t
19173
19075
  } = useTranslation("passwordChange");
@@ -19233,17 +19135,17 @@ const PasswordChangeModal = ({
19233
19135
  };
19234
19136
  PasswordChangeModal.viewId = "password-change";
19235
19137
 
19236
- const initialState$8 = {
19138
+ const initialState$7 = {
19237
19139
  buttonDisabled: false,
19238
19140
  alert: {
19239
19141
  type: "error",
19240
19142
  content: ""
19241
19143
  }
19242
19144
  };
19243
- const store$8 = /*#__PURE__*/React.createContext(initialState$8);
19145
+ const store$7 = /*#__PURE__*/React.createContext(initialState$7);
19244
19146
  const {
19245
- Provider: Provider$8
19246
- } = store$8;
19147
+ Provider: Provider$7
19148
+ } = store$7;
19247
19149
 
19248
19150
  const CartContainer = ({
19249
19151
  style,
@@ -19334,21 +19236,21 @@ const CartContainer = ({
19334
19236
  default:
19335
19237
  return state;
19336
19238
  }
19337
- }, initialState$8);
19239
+ }, initialState$7);
19338
19240
  return /*#__PURE__*/React__default['default'].createElement("div", {
19339
19241
  style: { ...style
19340
19242
  },
19341
19243
  className: `pelcro-container pelcro-cart-container ${className}`
19342
- }, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
19244
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
19343
19245
  value: {
19344
19246
  state,
19345
19247
  dispatch
19346
19248
  }
19347
19249
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19348
- store: store$8,
19250
+ store: store$7,
19349
19251
  key: i
19350
19252
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19351
- store: store$8
19253
+ store: store$7
19352
19254
  })));
19353
19255
  };
19354
19256
 
@@ -19385,7 +19287,7 @@ const CartSubmit = ({
19385
19287
  buttonDisabled
19386
19288
  },
19387
19289
  dispatch
19388
- } = React.useContext(store$8);
19290
+ } = React.useContext(store$7);
19389
19291
  const {
19390
19292
  t
19391
19293
  } = useTranslation("cart");
@@ -19416,7 +19318,7 @@ const CartTotalPrice = () => {
19416
19318
  state: {
19417
19319
  alert
19418
19320
  }
19419
- } = React.useContext(store$8);
19321
+ } = React.useContext(store$7);
19420
19322
  const {
19421
19323
  cartItems
19422
19324
  } = usePelcro();
@@ -19729,7 +19631,7 @@ const OrderConfirmModal = props => {
19729
19631
  };
19730
19632
  OrderConfirmModal.viewId = "order-confirm";
19731
19633
 
19732
- const initialState$7 = {
19634
+ const initialState$6 = {
19733
19635
  email: "",
19734
19636
  firstName: "",
19735
19637
  lastName: "",
@@ -19741,10 +19643,10 @@ const initialState$7 = {
19741
19643
  content: ""
19742
19644
  }
19743
19645
  };
19744
- const store$7 = /*#__PURE__*/React.createContext(initialState$7);
19646
+ const store$6 = /*#__PURE__*/React.createContext(initialState$6);
19745
19647
  const {
19746
- Provider: Provider$7
19747
- } = store$7;
19648
+ Provider: Provider$6
19649
+ } = store$6;
19748
19650
 
19749
19651
  const GiftCreateContainer = ({
19750
19652
  style,
@@ -19848,21 +19750,21 @@ const GiftCreateContainer = ({
19848
19750
  default:
19849
19751
  return state;
19850
19752
  }
19851
- }, initialState$7);
19753
+ }, initialState$6);
19852
19754
  return /*#__PURE__*/React__default['default'].createElement("div", {
19853
19755
  style: { ...style
19854
19756
  },
19855
19757
  className: `pelcro-container pelcro-gift-create-container ${className}`
19856
- }, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
19758
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
19857
19759
  value: {
19858
19760
  state,
19859
19761
  dispatch
19860
19762
  }
19861
19763
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19862
- store: store$7,
19764
+ store: store$6,
19863
19765
  key: i
19864
19766
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19865
- store: store$7
19767
+ store: store$6
19866
19768
  })));
19867
19769
  };
19868
19770
 
@@ -19876,7 +19778,7 @@ const GiftCreateSubmitButton = ({
19876
19778
  state: {
19877
19779
  disableSubmit
19878
19780
  }
19879
- } = React.useContext(store$7);
19781
+ } = React.useContext(store$6);
19880
19782
  const {
19881
19783
  t
19882
19784
  } = useTranslation("register");
@@ -19893,29 +19795,29 @@ const GiftCreateSubmitButton = ({
19893
19795
 
19894
19796
  const GiftCreateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
19895
19797
  initWithUserEmail: false,
19896
- store: store$7
19798
+ store: store$6
19897
19799
  }, props));
19898
19800
 
19899
19801
  const GiftCreateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
19900
- store: store$7
19802
+ store: store$6
19901
19803
  }, props));
19902
19804
 
19903
19805
  const GiftCreateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
19904
- store: store$7
19806
+ store: store$6
19905
19807
  }, props));
19906
19808
 
19907
- var _path$i;
19809
+ var _path$h;
19908
19810
 
19909
- 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); }
19811
+ 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); }
19910
19812
 
19911
19813
  function SvgInfoCircle(props) {
19912
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
19814
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
19913
19815
  xmlns: "http://www.w3.org/2000/svg",
19914
19816
  className: "plc-w-5 plc-h-5",
19915
19817
  fill: "none",
19916
19818
  viewBox: "0 0 24 24",
19917
19819
  stroke: "currentColor"
19918
- }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
19820
+ }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
19919
19821
  strokeLinecap: "round",
19920
19822
  strokeLinejoin: "round",
19921
19823
  strokeWidth: 2,
@@ -19986,7 +19888,7 @@ const GiftCreateStartDate = props => {
19986
19888
  const {
19987
19889
  dispatch,
19988
19890
  state
19989
- } = React.useContext(store$7);
19891
+ } = React.useContext(store$6);
19990
19892
 
19991
19893
  const handleInputChange = value => {
19992
19894
  dispatch({
@@ -20059,7 +19961,7 @@ function GiftCreateMessage(props) {
20059
19961
  const {
20060
19962
  dispatch,
20061
19963
  state
20062
- } = React.useContext(store$7);
19964
+ } = React.useContext(store$6);
20063
19965
  const MAX_CHARS_COUNT = 200;
20064
19966
  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;
20065
19967
 
@@ -20183,7 +20085,7 @@ const GiftCreateModal = ({
20183
20085
  };
20184
20086
  GiftCreateModal.viewId = "gift-create";
20185
20087
 
20186
- const initialState$6 = {
20088
+ const initialState$5 = {
20187
20089
  giftCode: "",
20188
20090
  buttonDisabled: true,
20189
20091
  alert: {
@@ -20191,10 +20093,10 @@ const initialState$6 = {
20191
20093
  content: ""
20192
20094
  }
20193
20095
  };
20194
- const store$6 = /*#__PURE__*/React.createContext(initialState$6);
20096
+ const store$5 = /*#__PURE__*/React.createContext(initialState$5);
20195
20097
  const {
20196
- Provider: Provider$6
20197
- } = store$6;
20098
+ Provider: Provider$5
20099
+ } = store$5;
20198
20100
 
20199
20101
  const GiftRedeemContainer = ({
20200
20102
  style,
@@ -20259,21 +20161,21 @@ const GiftRedeemContainer = ({
20259
20161
  default:
20260
20162
  return state;
20261
20163
  }
20262
- }, initialState$6);
20164
+ }, initialState$5);
20263
20165
  return /*#__PURE__*/React__default['default'].createElement("div", {
20264
20166
  style: { ...style
20265
20167
  },
20266
20168
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
20267
- }, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
20169
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
20268
20170
  value: {
20269
20171
  state,
20270
20172
  dispatch
20271
20173
  }
20272
20174
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
20273
- store: store$6,
20175
+ store: store$5,
20274
20176
  key: i
20275
20177
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
20276
- store: store$6
20178
+ store: store$5
20277
20179
  })));
20278
20180
  };
20279
20181
 
@@ -20310,7 +20212,7 @@ function GiftCode({
20310
20212
  }
20311
20213
 
20312
20214
  const GiftRedeemCode = props => /*#__PURE__*/React__default['default'].createElement(GiftCode, Object.assign({
20313
- store: store$6
20215
+ store: store$5
20314
20216
  }, props));
20315
20217
 
20316
20218
  const GiftRedeemSubmitButton = ({
@@ -20323,7 +20225,7 @@ const GiftRedeemSubmitButton = ({
20323
20225
  state: {
20324
20226
  disableSubmit
20325
20227
  }
20326
- } = React.useContext(store$6);
20228
+ } = React.useContext(store$5);
20327
20229
  const {
20328
20230
  t
20329
20231
  } = useTranslation("register");
@@ -20416,7 +20318,7 @@ const moveDefaultAddressToStart = addresses => {
20416
20318
  return [defaultAddress, ...addressesWithoutDefault];
20417
20319
  };
20418
20320
 
20419
- const initialState$5 = {
20321
+ const initialState$4 = {
20420
20322
  addresses: [],
20421
20323
  selectedAddressId: null,
20422
20324
  isSubmitting: false,
@@ -20425,10 +20327,10 @@ const initialState$5 = {
20425
20327
  content: ""
20426
20328
  }
20427
20329
  };
20428
- const store$5 = /*#__PURE__*/React.createContext(initialState$5);
20330
+ const store$4 = /*#__PURE__*/React.createContext(initialState$4);
20429
20331
  const {
20430
- Provider: Provider$5
20431
- } = store$5;
20332
+ Provider: Provider$4
20333
+ } = store$4;
20432
20334
 
20433
20335
  const AddressSelectContainer = ({
20434
20336
  style,
@@ -20523,7 +20425,7 @@ const AddressSelectContainer = ({
20523
20425
  default:
20524
20426
  return state;
20525
20427
  }
20526
- }, initialState$5);
20428
+ }, initialState$4);
20527
20429
  React.useEffect(() => {
20528
20430
  var _window$Pelcro$user$r;
20529
20431
 
@@ -20536,16 +20438,16 @@ const AddressSelectContainer = ({
20536
20438
  style: { ...style
20537
20439
  },
20538
20440
  className: `pelcro-container pelcro-address-select-container ${className}`
20539
- }, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
20441
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
20540
20442
  value: {
20541
20443
  state,
20542
20444
  dispatch
20543
20445
  }
20544
20446
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
20545
- store: store$5,
20447
+ store: store$4,
20546
20448
  key: i
20547
20449
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
20548
- store: store$5
20450
+ store: store$4
20549
20451
  })));
20550
20452
  };
20551
20453
 
@@ -20556,7 +20458,7 @@ const AddressSelectList = () => {
20556
20458
  addresses,
20557
20459
  selectedAddressId
20558
20460
  }
20559
- } = React.useContext(store$5);
20461
+ } = React.useContext(store$4);
20560
20462
 
20561
20463
  const handleAddressSelect = event => {
20562
20464
  dispatch({
@@ -20600,7 +20502,7 @@ const AddressSelectSubmit = ({
20600
20502
  selectedAddressId,
20601
20503
  isSubmitting
20602
20504
  }
20603
- } = React.useContext(store$5);
20505
+ } = React.useContext(store$4);
20604
20506
  const {
20605
20507
  t
20606
20508
  } = useTranslation("address");
@@ -20696,7 +20598,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
20696
20598
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
20697
20599
  };
20698
20600
 
20699
- const initialState$4 = {
20601
+ const initialState$3 = {
20700
20602
  paymentMethods: [],
20701
20603
  selectedPaymentMethodId: null,
20702
20604
  isSubmitting: false,
@@ -20705,10 +20607,10 @@ const initialState$4 = {
20705
20607
  content: ""
20706
20608
  }
20707
20609
  };
20708
- const store$4 = /*#__PURE__*/React.createContext(initialState$4);
20610
+ const store$3 = /*#__PURE__*/React.createContext(initialState$3);
20709
20611
  const {
20710
- Provider: Provider$4
20711
- } = store$4;
20612
+ Provider: Provider$3
20613
+ } = store$3;
20712
20614
 
20713
20615
  const PaymentMethodSelectContainer = ({
20714
20616
  style,
@@ -20767,7 +20669,7 @@ const PaymentMethodSelectContainer = ({
20767
20669
  default:
20768
20670
  return state;
20769
20671
  }
20770
- }, initialState$4);
20672
+ }, initialState$3);
20771
20673
  React.useEffect(() => {
20772
20674
  var _window$Pelcro$user$r3;
20773
20675
 
@@ -20780,16 +20682,16 @@ const PaymentMethodSelectContainer = ({
20780
20682
  style: { ...style
20781
20683
  },
20782
20684
  className: `pelcro-container pelcro-payment-select-container ${className}`
20783
- }, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
20685
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
20784
20686
  value: {
20785
20687
  state,
20786
20688
  dispatch
20787
20689
  }
20788
20690
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
20789
- store: store$4,
20691
+ store: store$3,
20790
20692
  key: i
20791
20693
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
20792
- store: store$4
20694
+ store: store$3
20793
20695
  })));
20794
20696
  };
20795
20697
 
@@ -20803,7 +20705,7 @@ const PaymentMethodSelectList = () => {
20803
20705
  paymentMethods,
20804
20706
  selectedPaymentMethodId
20805
20707
  }
20806
- } = React.useContext(store$4);
20708
+ } = React.useContext(store$3);
20807
20709
 
20808
20710
  const handlePaymentMethodSelect = event => {
20809
20711
  dispatch({
@@ -20853,7 +20755,7 @@ const PaymentMethodSelectSubmit = ({
20853
20755
  selectedPaymentMethodId,
20854
20756
  isSubmitting
20855
20757
  }
20856
- } = React.useContext(store$4);
20758
+ } = React.useContext(store$3);
20857
20759
  return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
20858
20760
  onClick: () => {
20859
20761
  dispatch({
@@ -20927,8 +20829,8 @@ const PaymentMethodSelectModal = ({
20927
20829
  };
20928
20830
  PaymentMethodSelectModal.viewId = "payment-method-select";
20929
20831
 
20930
- function _extends$j() {
20931
- _extends$j = Object.assign || function (target) {
20832
+ function _extends$i() {
20833
+ _extends$i = Object.assign || function (target) {
20932
20834
  for (var i = 1; i < arguments.length; i++) {
20933
20835
  var source = arguments[i];
20934
20836
 
@@ -20942,7 +20844,7 @@ function _extends$j() {
20942
20844
  return target;
20943
20845
  };
20944
20846
 
20945
- return _extends$j.apply(this, arguments);
20847
+ return _extends$i.apply(this, arguments);
20946
20848
  }
20947
20849
 
20948
20850
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -21126,7 +21028,7 @@ function render(props, propsBag, defaultTag, features, visible) {
21126
21028
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
21127
21029
  return null;
21128
21030
  }, _match[RenderStrategy.Hidden] = function () {
21129
- return _render(_extends$j({}, _rest, {
21031
+ return _render(_extends$i({}, _rest, {
21130
21032
  hidden: true,
21131
21033
  style: {
21132
21034
  display: 'none'
@@ -21654,7 +21556,7 @@ function TransitionChild(props) {
21654
21556
  var passthroughProps = rest;
21655
21557
  return React__default['default'].createElement(NestingContext.Provider, {
21656
21558
  value: nesting
21657
- }, render(_extends$j({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21559
+ }, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
21658
21560
  }
21659
21561
 
21660
21562
  function Transition(props) {
@@ -21698,7 +21600,7 @@ function Transition(props) {
21698
21600
  value: nestingBag
21699
21601
  }, React__default['default'].createElement(TransitionContext.Provider, {
21700
21602
  value: transitionBag
21701
- }, render(_extends$j({}, sharedProps, {
21603
+ }, render(_extends$i({}, sharedProps, {
21702
21604
  as: React.Fragment,
21703
21605
  children: React__default['default'].createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
21704
21606
  }), propsBag, React.Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -21825,12 +21727,12 @@ var ActionTypes;
21825
21727
  })(ActionTypes || (ActionTypes = {}));
21826
21728
 
21827
21729
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
21828
- return _extends$j({}, state, {
21730
+ return _extends$i({}, state, {
21829
21731
  activeItemIndex: null,
21830
21732
  menuState: MenuStates.Closed
21831
21733
  });
21832
21734
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
21833
- return _extends$j({}, state, {
21735
+ return _extends$i({}, state, {
21834
21736
  menuState: MenuStates.Open
21835
21737
  });
21836
21738
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -21849,7 +21751,7 @@ var ActionTypes;
21849
21751
  }
21850
21752
  });
21851
21753
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
21852
- return _extends$j({}, state, {
21754
+ return _extends$i({}, state, {
21853
21755
  searchQuery: '',
21854
21756
  activeItemIndex: activeItemIndex
21855
21757
  });
@@ -21860,19 +21762,19 @@ var ActionTypes;
21860
21762
 
21861
21763
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
21862
21764
  });
21863
- if (match === -1 || match === state.activeItemIndex) return _extends$j({}, state, {
21765
+ if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
21864
21766
  searchQuery: searchQuery
21865
21767
  });
21866
- return _extends$j({}, state, {
21768
+ return _extends$i({}, state, {
21867
21769
  searchQuery: searchQuery,
21868
21770
  activeItemIndex: match
21869
21771
  });
21870
21772
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
21871
- return _extends$j({}, state, {
21773
+ return _extends$i({}, state, {
21872
21774
  searchQuery: ''
21873
21775
  });
21874
21776
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
21875
- return _extends$j({}, state, {
21777
+ return _extends$i({}, state, {
21876
21778
  items: [].concat(state.items, [{
21877
21779
  id: action.id,
21878
21780
  dataRef: action.dataRef
@@ -21885,7 +21787,7 @@ var ActionTypes;
21885
21787
  return a.id === action.id;
21886
21788
  });
21887
21789
  if (idx !== -1) nextItems.splice(idx, 1);
21888
- return _extends$j({}, state, {
21790
+ return _extends$i({}, state, {
21889
21791
  items: nextItems,
21890
21792
  activeItemIndex: function () {
21891
21793
  if (idx === state.activeItemIndex) return null;
@@ -21924,19 +21826,19 @@ var ActionTypes$1;
21924
21826
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
21925
21827
  if (state.disabled) return state;
21926
21828
  if (state.listboxState === ListboxStates.Closed) return state;
21927
- return _extends$j({}, state, {
21829
+ return _extends$i({}, state, {
21928
21830
  activeOptionIndex: null,
21929
21831
  listboxState: ListboxStates.Closed
21930
21832
  });
21931
21833
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
21932
21834
  if (state.disabled) return state;
21933
21835
  if (state.listboxState === ListboxStates.Open) return state;
21934
- return _extends$j({}, state, {
21836
+ return _extends$i({}, state, {
21935
21837
  listboxState: ListboxStates.Open
21936
21838
  });
21937
21839
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
21938
21840
  if (state.disabled === action.disabled) return state;
21939
- return _extends$j({}, state, {
21841
+ return _extends$i({}, state, {
21940
21842
  disabled: action.disabled
21941
21843
  });
21942
21844
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -21957,7 +21859,7 @@ var ActionTypes$1;
21957
21859
  }
21958
21860
  });
21959
21861
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
21960
- return _extends$j({}, state, {
21862
+ return _extends$i({}, state, {
21961
21863
  searchQuery: '',
21962
21864
  activeOptionIndex: activeOptionIndex
21963
21865
  });
@@ -21970,10 +21872,10 @@ var ActionTypes$1;
21970
21872
 
21971
21873
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
21972
21874
  });
21973
- if (match === -1 || match === state.activeOptionIndex) return _extends$j({}, state, {
21875
+ if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
21974
21876
  searchQuery: searchQuery
21975
21877
  });
21976
- return _extends$j({}, state, {
21878
+ return _extends$i({}, state, {
21977
21879
  searchQuery: searchQuery,
21978
21880
  activeOptionIndex: match
21979
21881
  });
@@ -21981,11 +21883,11 @@ var ActionTypes$1;
21981
21883
  if (state.disabled) return state;
21982
21884
  if (state.listboxState === ListboxStates.Closed) return state;
21983
21885
  if (state.searchQuery === '') return state;
21984
- return _extends$j({}, state, {
21886
+ return _extends$i({}, state, {
21985
21887
  searchQuery: ''
21986
21888
  });
21987
21889
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
21988
- return _extends$j({}, state, {
21890
+ return _extends$i({}, state, {
21989
21891
  options: [].concat(state.options, [{
21990
21892
  id: action.id,
21991
21893
  dataRef: action.dataRef
@@ -21998,7 +21900,7 @@ var ActionTypes$1;
21998
21900
  return a.id === action.id;
21999
21901
  });
22000
21902
  if (idx !== -1) nextOptions.splice(idx, 1);
22001
- return _extends$j({}, state, {
21903
+ return _extends$i({}, state, {
22002
21904
  options: nextOptions,
22003
21905
  activeOptionIndex: function () {
22004
21906
  if (idx === state.activeOptionIndex) return null;
@@ -22059,18 +21961,18 @@ const getPaymentCardIcon = name => {
22059
21961
  }));
22060
21962
  };
22061
21963
 
22062
- var _path$h;
21964
+ var _path$g;
22063
21965
 
22064
- 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); }
21966
+ 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); }
22065
21967
 
22066
21968
  function SvgChevronRight(props) {
22067
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
21969
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
22068
21970
  className: "plc-w-6 plc-h-6",
22069
21971
  xmlns: "http://www.w3.org/2000/svg",
22070
21972
  fill: "none",
22071
21973
  viewBox: "0 0 24 24",
22072
21974
  stroke: "currentColor"
22073
- }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
21975
+ }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
22074
21976
  strokeLinecap: "round",
22075
21977
  strokeLinejoin: "round",
22076
21978
  strokeWidth: 2,
@@ -22286,18 +22188,18 @@ const SavedItems = ({
22286
22188
  });
22287
22189
  };
22288
22190
 
22289
- var _path$g;
22191
+ var _path$f;
22290
22192
 
22291
- 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); }
22193
+ 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); }
22292
22194
 
22293
22195
  function SvgRefresh(props) {
22294
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
22196
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
22295
22197
  className: "plc-w-4 plc-h-4 plc-mr-1",
22296
22198
  xmlns: "http://www.w3.org/2000/svg",
22297
22199
  fill: "none",
22298
22200
  viewBox: "0 0 24 24",
22299
22201
  stroke: "currentColor"
22300
- }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
22202
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
22301
22203
  strokeLinecap: "round",
22302
22204
  strokeLinejoin: "round",
22303
22205
  strokeWidth: 2,
@@ -22305,35 +22207,35 @@ function SvgRefresh(props) {
22305
22207
  })));
22306
22208
  }
22307
22209
 
22308
- var _path$f;
22210
+ var _path$e;
22309
22211
 
22310
- 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); }
22212
+ 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); }
22311
22213
 
22312
22214
  function SvgCalendar(props) {
22313
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
22215
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
22314
22216
  xmlns: "http://www.w3.org/2000/svg",
22315
22217
  className: "plc-h-4 plc-w-4 plc-mr-1",
22316
22218
  viewBox: "0 0 20 20",
22317
22219
  fill: "currentColor"
22318
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
22220
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
22319
22221
  fillRule: "evenodd",
22320
22222
  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",
22321
22223
  clipRule: "evenodd"
22322
22224
  })));
22323
22225
  }
22324
22226
 
22325
- var _path$e;
22227
+ var _path$d;
22326
22228
 
22327
- 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); }
22229
+ 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); }
22328
22230
 
22329
22231
  function SvgPlus(props) {
22330
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
22232
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
22331
22233
  className: "plc-w-5 plc-h-5",
22332
22234
  xmlns: "http://www.w3.org/2000/svg",
22333
22235
  fill: "none",
22334
22236
  viewBox: "0 0 24 24",
22335
22237
  stroke: "currentColor"
22336
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
22238
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
22337
22239
  strokeLinecap: "round",
22338
22240
  strokeLinejoin: "round",
22339
22241
  strokeWidth: 2,
@@ -22341,17 +22243,17 @@ function SvgPlus(props) {
22341
22243
  })));
22342
22244
  }
22343
22245
 
22344
- var _path$d;
22246
+ var _path$c;
22345
22247
 
22346
- 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); }
22248
+ 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); }
22347
22249
 
22348
22250
  function SvgCheckMark(props) {
22349
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
22251
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
22350
22252
  className: "plc-w-4 plc-h-4 plc-mr-1",
22351
22253
  xmlns: "http://www.w3.org/2000/svg",
22352
22254
  viewBox: "0 0 20 20",
22353
22255
  fill: "currentColor"
22354
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
22256
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
22355
22257
  fillRule: "evenodd",
22356
22258
  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",
22357
22259
  clipRule: "evenodd"
@@ -22415,8 +22317,7 @@ const SubscriptionsItems = ({
22415
22317
  } = useTranslation("dashboard");
22416
22318
  const {
22417
22319
  switchView,
22418
- switchToAddressView,
22419
- switchToPaymentView
22320
+ isAuthenticated
22420
22321
  } = usePelcro();
22421
22322
  const subs = getNonDonationSubs();
22422
22323
  if (subs.length === 0) return null;
@@ -22458,12 +22359,7 @@ const SubscriptionsItems = ({
22458
22359
  const plan = window.Pelcro.plan.getById(plan_id);
22459
22360
  setProductAndPlan(product, plan);
22460
22361
  setSubscriptionIdToRenew(sub.id);
22461
-
22462
- if (product.address_required) {
22463
- return switchToAddressView();
22464
- }
22465
-
22466
- return switchToPaymentView();
22362
+ setView("plan-select");
22467
22363
  };
22468
22364
 
22469
22365
  const getPhases = () => {
@@ -22652,18 +22548,18 @@ Accordion.item = function AccordionItem({
22652
22548
  }, content)) : null;
22653
22549
  };
22654
22550
 
22655
- var _path$c;
22551
+ var _path$b;
22656
22552
 
22657
- 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); }
22553
+ 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); }
22658
22554
 
22659
22555
  function SvgExit(props) {
22660
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
22556
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22661
22557
  className: "plc-w-6 plc-h-6",
22662
22558
  xmlns: "http://www.w3.org/2000/svg",
22663
22559
  fill: "none",
22664
22560
  viewBox: "0 0 24 24",
22665
22561
  stroke: "currentColor"
22666
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
22562
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
22667
22563
  strokeLinecap: "round",
22668
22564
  strokeLinejoin: "round",
22669
22565
  strokeWidth: 2,
@@ -22671,17 +22567,17 @@ function SvgExit(props) {
22671
22567
  })));
22672
22568
  }
22673
22569
 
22674
- var _path$b;
22570
+ var _path$a;
22675
22571
 
22676
- 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); }
22572
+ 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); }
22677
22573
 
22678
22574
  function SvgUser(props) {
22679
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
22575
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22680
22576
  xmlns: "http://www.w3.org/2000/svg",
22681
22577
  fill: "none",
22682
22578
  viewBox: "0 0 24 24",
22683
22579
  stroke: "currentColor"
22684
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
22580
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
22685
22581
  strokeLinecap: "round",
22686
22582
  strokeLinejoin: "round",
22687
22583
  strokeWidth: 2,
@@ -22689,18 +22585,18 @@ function SvgUser(props) {
22689
22585
  })));
22690
22586
  }
22691
22587
 
22692
- var _path$a;
22588
+ var _path$9;
22693
22589
 
22694
- 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); }
22590
+ 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); }
22695
22591
 
22696
22592
  function SvgNewsletter(props) {
22697
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
22593
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22698
22594
  xmlns: "http://www.w3.org/2000/svg",
22699
22595
  className: "plc-h-5 plc-w-5",
22700
22596
  fill: "none",
22701
22597
  viewBox: "0 0 24 24",
22702
22598
  stroke: "currentColor"
22703
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
22599
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
22704
22600
  strokeLinecap: "round",
22705
22601
  strokeLinejoin: "round",
22706
22602
  strokeWidth: 2,
@@ -22708,18 +22604,18 @@ function SvgNewsletter(props) {
22708
22604
  })));
22709
22605
  }
22710
22606
 
22711
- var _path$9;
22607
+ var _path$8;
22712
22608
 
22713
- 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); }
22609
+ 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); }
22714
22610
 
22715
22611
  function SvgDocument(props) {
22716
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
22612
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
22717
22613
  xmlns: "http://www.w3.org/2000/svg",
22718
22614
  className: "plc-h-6 plc-w-6 plc-mr-2",
22719
22615
  fill: "none",
22720
22616
  viewBox: "0 0 24 24",
22721
22617
  stroke: "currentColor"
22722
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
22618
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
22723
22619
  strokeLinecap: "round",
22724
22620
  strokeLinejoin: "round",
22725
22621
  strokeWidth: 2,
@@ -22727,18 +22623,18 @@ function SvgDocument(props) {
22727
22623
  })));
22728
22624
  }
22729
22625
 
22730
- var _path$8;
22626
+ var _path$7;
22731
22627
 
22732
- 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); }
22628
+ 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); }
22733
22629
 
22734
22630
  function SvgPaymentCard(props) {
22735
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
22631
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22736
22632
  className: "plc-w-6 plc-h-6 plc-mr-2",
22737
22633
  xmlns: "http://www.w3.org/2000/svg",
22738
22634
  fill: "none",
22739
22635
  viewBox: "0 0 24 24",
22740
22636
  stroke: "currentColor"
22741
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
22637
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
22742
22638
  strokeLinecap: "round",
22743
22639
  strokeLinejoin: "round",
22744
22640
  strokeWidth: 2,
@@ -22746,18 +22642,18 @@ function SvgPaymentCard(props) {
22746
22642
  })));
22747
22643
  }
22748
22644
 
22749
- var _path$7, _path2$1;
22645
+ var _path$6, _path2$1;
22750
22646
 
22751
- 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); }
22647
+ 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); }
22752
22648
 
22753
22649
  function SvgLocationPin(props) {
22754
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
22650
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22755
22651
  className: "plc-w-6 plc-h-6 plc-mr-2",
22756
22652
  xmlns: "http://www.w3.org/2000/svg",
22757
22653
  fill: "none",
22758
22654
  viewBox: "0 0 24 24",
22759
22655
  stroke: "currentColor"
22760
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
22656
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
22761
22657
  strokeLinecap: "round",
22762
22658
  strokeLinejoin: "round",
22763
22659
  strokeWidth: 2,
@@ -22772,10 +22668,10 @@ function SvgLocationPin(props) {
22772
22668
 
22773
22669
  var _switch;
22774
22670
 
22775
- 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); }
22671
+ 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); }
22776
22672
 
22777
22673
  function SvgSubscription(props) {
22778
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
22674
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22779
22675
  xmlns: "http://www.w3.org/2000/svg",
22780
22676
  viewBox: "0 0 100 125",
22781
22677
  fill: "currentColor"
@@ -22790,18 +22686,18 @@ function SvgSubscription(props) {
22790
22686
  }))))));
22791
22687
  }
22792
22688
 
22793
- var _path$6;
22689
+ var _path$5;
22794
22690
 
22795
- 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); }
22691
+ 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); }
22796
22692
 
22797
22693
  function SvgShopping(props) {
22798
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
22694
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22799
22695
  className: "plc-w-6 plc-h-6 plc-mr-2",
22800
22696
  xmlns: "http://www.w3.org/2000/svg",
22801
22697
  fill: "none",
22802
22698
  viewBox: "0 0 24 24",
22803
22699
  stroke: "currentColor"
22804
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
22700
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
22805
22701
  strokeLinecap: "round",
22806
22702
  strokeLinejoin: "round",
22807
22703
  strokeWidth: 2,
@@ -22809,18 +22705,18 @@ function SvgShopping(props) {
22809
22705
  })));
22810
22706
  }
22811
22707
 
22812
- var _path$5;
22708
+ var _path$4;
22813
22709
 
22814
- 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); }
22710
+ 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); }
22815
22711
 
22816
22712
  function SvgBookmark(props) {
22817
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
22713
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22818
22714
  className: "plc-w-6 plc-h-6 plc-mr-2",
22819
22715
  xmlns: "http://www.w3.org/2000/svg",
22820
22716
  fill: "none",
22821
22717
  viewBox: "0 0 24 24",
22822
22718
  stroke: "currentColor"
22823
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
22719
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
22824
22720
  strokeLinecap: "round",
22825
22721
  strokeLinejoin: "round",
22826
22722
  strokeWidth: 2,
@@ -22828,33 +22724,33 @@ function SvgBookmark(props) {
22828
22724
  })));
22829
22725
  }
22830
22726
 
22831
- var _path$4;
22727
+ var _path$3;
22832
22728
 
22833
- 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); }
22729
+ 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); }
22834
22730
 
22835
22731
  function SvgKey(props) {
22836
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
22732
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22837
22733
  xmlns: "http://www.w3.org/2000/svg",
22838
22734
  viewBox: "0 0 20 20",
22839
22735
  fill: "currentColor"
22840
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
22736
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
22841
22737
  fillRule: "evenodd",
22842
22738
  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",
22843
22739
  clipRule: "evenodd"
22844
22740
  })));
22845
22741
  }
22846
22742
 
22847
- var _path$3;
22743
+ var _path$2;
22848
22744
 
22849
- 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); }
22745
+ 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); }
22850
22746
 
22851
22747
  function SvgDonate(props) {
22852
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
22748
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
22853
22749
  width: 24,
22854
22750
  height: 24,
22855
22751
  fill: "currentColor",
22856
22752
  xmlns: "http://www.w3.org/2000/svg"
22857
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
22753
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
22858
22754
  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"
22859
22755
  })));
22860
22756
  }
@@ -23181,10 +23077,9 @@ class Dashboard extends React.Component {
23181
23077
  }) => {
23182
23078
  if (isGift) {
23183
23079
  this.props.setProductAndPlan(null, null, true);
23184
- return this.props.setView("plan-select");
23185
23080
  }
23186
23081
 
23187
- return this.props.setView("subscription-options");
23082
+ return this.props.setView("plan-select");
23188
23083
  });
23189
23084
 
23190
23085
  _defineProperty$3(this, "displayAddressCreate", () => {
@@ -23652,7 +23547,7 @@ const DashboardOpenButton = () => {
23652
23547
  };
23653
23548
  DashboardOpenButton.viewId = "dashboard-open";
23654
23549
 
23655
- const initialState$3 = {
23550
+ const initialState$2 = {
23656
23551
  imageSrc: null,
23657
23552
  crop: {
23658
23553
  x: 0,
@@ -23666,10 +23561,10 @@ const initialState$3 = {
23666
23561
  content: ""
23667
23562
  }
23668
23563
  };
23669
- const store$3 = /*#__PURE__*/React.createContext(initialState$3);
23564
+ const store$2 = /*#__PURE__*/React.createContext(initialState$2);
23670
23565
  const {
23671
- Provider: Provider$3
23672
- } = store$3;
23566
+ Provider: Provider$2
23567
+ } = store$2;
23673
23568
 
23674
23569
  const ProfilePicChangeContainer = ({
23675
23570
  style,
@@ -23803,21 +23698,21 @@ const ProfilePicChangeContainer = ({
23803
23698
  default:
23804
23699
  return state;
23805
23700
  }
23806
- }, initialState$3);
23701
+ }, initialState$2);
23807
23702
  return /*#__PURE__*/React__default['default'].createElement("div", {
23808
23703
  style: { ...style
23809
23704
  },
23810
23705
  className: `pelcro-container pelcro-profile-picture-container ${className}`
23811
- }, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
23706
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
23812
23707
  value: {
23813
23708
  state,
23814
23709
  dispatch
23815
23710
  }
23816
23711
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
23817
- store: store$3,
23712
+ store: store$2,
23818
23713
  key: i
23819
23714
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
23820
- store: store$3
23715
+ store: store$2
23821
23716
  })));
23822
23717
  };
23823
23718
  /**
@@ -23879,7 +23774,7 @@ const ProfilePicChangeButton = ({
23879
23774
  isSubmitting
23880
23775
  },
23881
23776
  dispatch
23882
- } = React.useContext(store$3);
23777
+ } = React.useContext(store$2);
23883
23778
  const {
23884
23779
  t
23885
23780
  } = useTranslation("userEdit");
@@ -25247,7 +25142,7 @@ const ProfilePicChangeCropper = ({
25247
25142
  zoom
25248
25143
  },
25249
25144
  dispatch
25250
- } = React.useContext(store$3);
25145
+ } = React.useContext(store$2);
25251
25146
  return /*#__PURE__*/React__default['default'].createElement("div", {
25252
25147
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
25253
25148
  }, /*#__PURE__*/React__default['default'].createElement(Cropper, Object.assign({
@@ -25289,7 +25184,7 @@ const ProfilePicChangeZoom = ({
25289
25184
  zoom
25290
25185
  },
25291
25186
  dispatch
25292
- } = React.useContext(store$3);
25187
+ } = React.useContext(store$2);
25293
25188
  const {
25294
25189
  t
25295
25190
  } = useTranslation("userEdit");
@@ -25312,18 +25207,18 @@ const ProfilePicChangeZoom = ({
25312
25207
  }, otherProps)));
25313
25208
  };
25314
25209
 
25315
- var _path$2;
25210
+ var _path$1;
25316
25211
 
25317
- 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); }
25212
+ 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); }
25318
25213
 
25319
25214
  function SvgPhotograph(props) {
25320
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
25215
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
25321
25216
  xmlns: "http://www.w3.org/2000/svg",
25322
25217
  className: "plc-h-6 plc-w-6",
25323
25218
  fill: "none",
25324
25219
  viewBox: "0 0 24 24",
25325
25220
  stroke: "currentColor"
25326
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
25221
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
25327
25222
  strokeLinecap: "round",
25328
25223
  strokeLinejoin: "round",
25329
25224
  strokeWidth: 2,
@@ -25341,7 +25236,7 @@ const ProfilePicChangeSelectButton = ({
25341
25236
  state: {
25342
25237
  isSubmitting
25343
25238
  }
25344
- } = React.useContext(store$3);
25239
+ } = React.useContext(store$2);
25345
25240
  const {
25346
25241
  t
25347
25242
  } = useTranslation("userEdit");
@@ -25383,7 +25278,7 @@ const ProfilePicChangeRemoveButton = ({
25383
25278
  state: {
25384
25279
  isSubmitting
25385
25280
  }
25386
- } = React.useContext(store$3);
25281
+ } = React.useContext(store$2);
25387
25282
  const {
25388
25283
  t
25389
25284
  } = useTranslation("userEdit");
@@ -25406,7 +25301,7 @@ const ProfilePicChangeWrapper = () => {
25406
25301
  state: {
25407
25302
  imageSrc
25408
25303
  }
25409
- } = React.useContext(store$3);
25304
+ } = React.useContext(store$2);
25410
25305
  const {
25411
25306
  t
25412
25307
  } = useTranslation("userEdit");
@@ -25468,17 +25363,17 @@ function ProfilePicChangeModal({
25468
25363
  }
25469
25364
  ProfilePicChangeModal.viewId = "profile-picture";
25470
25365
 
25471
- const initialState$2 = {
25366
+ const initialState$1 = {
25472
25367
  isSubmitting: false,
25473
25368
  alert: {
25474
25369
  type: "error",
25475
25370
  content: ""
25476
25371
  }
25477
25372
  };
25478
- const store$2 = /*#__PURE__*/React.createContext(initialState$2);
25373
+ const store$1 = /*#__PURE__*/React.createContext(initialState$1);
25479
25374
  const {
25480
- Provider: Provider$2
25481
- } = store$2;
25375
+ Provider: Provider$1
25376
+ } = store$1;
25482
25377
 
25483
25378
  const EmailVerifyContainer = ({
25484
25379
  style,
@@ -25541,21 +25436,21 @@ const EmailVerifyContainer = ({
25541
25436
  default:
25542
25437
  return state;
25543
25438
  }
25544
- }, initialState$2);
25439
+ }, initialState$1);
25545
25440
  return /*#__PURE__*/React__default['default'].createElement("div", {
25546
25441
  style: { ...style
25547
25442
  },
25548
25443
  className: `pelcro-container pelcro-email-verify-container ${className}`
25549
- }, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
25444
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
25550
25445
  value: {
25551
25446
  state,
25552
25447
  dispatch
25553
25448
  }
25554
25449
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
25555
- store: store$2,
25450
+ store: store$1,
25556
25451
  key: i
25557
25452
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
25558
- store: store$2
25453
+ store: store$1
25559
25454
  })));
25560
25455
  };
25561
25456
 
@@ -25569,7 +25464,7 @@ const EmailVerifyResendButton = ({
25569
25464
  state: {
25570
25465
  isSubmitting
25571
25466
  }
25572
- } = React.useContext(store$2);
25467
+ } = React.useContext(store$1);
25573
25468
  const {
25574
25469
  t
25575
25470
  } = useTranslation("verifyEmail");
@@ -25584,16 +25479,16 @@ const EmailVerifyResendButton = ({
25584
25479
  }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
25585
25480
  };
25586
25481
 
25587
- var _path$1, _path2;
25482
+ var _path, _path2;
25588
25483
 
25589
- 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); }
25484
+ 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); }
25590
25485
 
25591
25486
  function SvgEmailVerify(props) {
25592
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
25487
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
25593
25488
  className: "plc-w-6 plc-h-6",
25594
25489
  viewBox: "0 0 700 700",
25595
25490
  xmlns: "http://www.w3.org/2000/svg"
25596
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
25491
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
25597
25492
  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"
25598
25493
  })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
25599
25494
  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"
@@ -25697,11 +25592,11 @@ const invoicePaymentSubmitButton = props => {
25697
25592
  return /*#__PURE__*/React__default['default'].createElement(SubmitPaymentMethod, props);
25698
25593
  };
25699
25594
 
25700
- const initialState$1 = {};
25701
- const store$1 = /*#__PURE__*/React.createContext(initialState$1);
25595
+ const initialState = {};
25596
+ const store = /*#__PURE__*/React.createContext(initialState);
25702
25597
  const {
25703
- Provider: Provider$1
25704
- } = store$1;
25598
+ Provider
25599
+ } = store;
25705
25600
 
25706
25601
  const InvoiceDetailsContainer = ({
25707
25602
  style,
@@ -25722,21 +25617,21 @@ const InvoiceDetailsContainer = ({
25722
25617
  default:
25723
25618
  return state;
25724
25619
  }
25725
- }, initialState$1);
25620
+ }, initialState);
25726
25621
  return /*#__PURE__*/React__default['default'].createElement("div", {
25727
25622
  style: { ...style
25728
25623
  },
25729
25624
  className: `pelcro-container pelcro-invoice-details-container ${className}`
25730
- }, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
25625
+ }, /*#__PURE__*/React__default['default'].createElement(Provider, {
25731
25626
  value: {
25732
25627
  state,
25733
25628
  dispatch
25734
25629
  }
25735
25630
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
25736
- store: store$1,
25631
+ store,
25737
25632
  key: i
25738
25633
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
25739
- store: store$1
25634
+ store
25740
25635
  })));
25741
25636
  };
25742
25637
 
@@ -25768,7 +25663,7 @@ const InvoiceDetailsPayButton = ({
25768
25663
  }) => {
25769
25664
  const {
25770
25665
  dispatch
25771
- } = React.useContext(store$1);
25666
+ } = React.useContext(store);
25772
25667
  const {
25773
25668
  t
25774
25669
  } = useTranslation("invoiceDetails");
@@ -25875,232 +25770,6 @@ const InvoiceDetailsModal = ({
25875
25770
  };
25876
25771
  InvoiceDetailsModal.viewId = "invoice-details";
25877
25772
 
25878
- const initialState = {
25879
- selectedOption: ""
25880
- };
25881
- const store = /*#__PURE__*/React.createContext(initialState);
25882
- const {
25883
- Provider
25884
- } = store;
25885
-
25886
- const SubscriptionOptionsContainer = ({
25887
- style,
25888
- className = "",
25889
- onRenewSubSuccess = () => {},
25890
- onNewSubSuccess = () => {},
25891
- children,
25892
- ...props
25893
- }) => {
25894
- const submit = ({
25895
- selectedOption
25896
- }, dispatch) => {
25897
- if (selectedOption === "renew") return onRenewSubSuccess();
25898
- if (selectedOption === "new") return onNewSubSuccess();
25899
- };
25900
-
25901
- const [state, dispatch] = useReducerWithSideEffects((state, action) => {
25902
- switch (action.type) {
25903
- case SWITCH_TO_NEW:
25904
- return lib_7({ ...state,
25905
- selectedOption: "new"
25906
- });
25907
-
25908
- case SWITCH_TO_RENEW:
25909
- return lib_7({ ...state,
25910
- selectedOption: "renew"
25911
- });
25912
-
25913
- case HANDLE_SUBMIT:
25914
- return lib_4((state, dispatch) => submit(state));
25915
-
25916
- default:
25917
- return state;
25918
- }
25919
- }, initialState);
25920
- return /*#__PURE__*/React__default['default'].createElement("div", {
25921
- style: { ...style
25922
- },
25923
- className: `pelcro-container pelcro-subscription-options-container ${className}`
25924
- }, /*#__PURE__*/React__default['default'].createElement(Provider, {
25925
- value: {
25926
- state,
25927
- dispatch
25928
- }
25929
- }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
25930
- store,
25931
- key: i
25932
- })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
25933
- store
25934
- })));
25935
- };
25936
-
25937
- var _path;
25938
-
25939
- 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); }
25940
-
25941
- function SvgPlusCircle(props) {
25942
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
25943
- xmlns: "http://www.w3.org/2000/svg",
25944
- className: "plc-h-6 plc-w-6",
25945
- fill: "none",
25946
- viewBox: "0 0 24 24",
25947
- stroke: "currentColor",
25948
- strokeWidth: 2
25949
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
25950
- strokeLinecap: "round",
25951
- strokeLinejoin: "round",
25952
- d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
25953
- })));
25954
- }
25955
-
25956
- const SubscriptionOptionsNewButton = ({
25957
- name,
25958
- onClick,
25959
- ...otherProps
25960
- }) => {
25961
- const {
25962
- dispatch,
25963
- state: {
25964
- selectedOption
25965
- }
25966
- } = React.useContext(store);
25967
- const {
25968
- t
25969
- } = useTranslation("subscriptionOptions");
25970
- const isChecked = selectedOption === "new";
25971
- return /*#__PURE__*/React__default['default'].createElement(Radio, Object.assign({
25972
- className: "plc-hidden pelcro-new-sub-option",
25973
- 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"}`,
25974
- id: "pelcro-new-sub-option",
25975
- name: "option",
25976
- onChange: () => {
25977
- dispatch({
25978
- type: SWITCH_TO_NEW
25979
- });
25980
- onClick === null || onClick === void 0 ? void 0 : onClick();
25981
- },
25982
- checked: isChecked
25983
- }, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default['default'].createElement(SvgPlusCircle, {
25984
- className: "plc-w-full plc-h-full plc-mr-0"
25985
- }));
25986
- };
25987
-
25988
- const SubscriptionOptionsRenewButton = ({
25989
- name,
25990
- onClick,
25991
- ...otherProps
25992
- }) => {
25993
- const {
25994
- dispatch,
25995
- state: {
25996
- selectedOption
25997
- }
25998
- } = React.useContext(store);
25999
- const {
26000
- t
26001
- } = useTranslation("subscriptionOptions");
26002
- const isChecked = selectedOption === "renew";
26003
- return /*#__PURE__*/React__default['default'].createElement(Radio, Object.assign({
26004
- className: "plc-hidden pelcro-renew-sub-option",
26005
- 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"}`,
26006
- id: "pelcro-renew-sub-option",
26007
- name: "option",
26008
- onChange: () => {
26009
- dispatch({
26010
- type: SWITCH_TO_RENEW
26011
- });
26012
- onClick === null || onClick === void 0 ? void 0 : onClick();
26013
- },
26014
- checked: isChecked
26015
- }, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default['default'].createElement(SvgRefresh, {
26016
- className: "plc-w-full plc-h-full plc-mr-0"
26017
- }));
26018
- };
26019
-
26020
- const SubscriptionOptionsSubmit = ({
26021
- name,
26022
- onClick,
26023
- ...otherProps
26024
- }) => {
26025
- const {
26026
- dispatch,
26027
- state: {
26028
- selectedOption
26029
- }
26030
- } = React.useContext(store);
26031
- const {
26032
- t
26033
- } = useTranslation("subscriptionOptions");
26034
- return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
26035
- onClick: () => {
26036
- dispatch({
26037
- type: HANDLE_SUBMIT
26038
- });
26039
- onClick === null || onClick === void 0 ? void 0 : onClick();
26040
- },
26041
- disabled: !selectedOption
26042
- }, otherProps), name !== null && name !== void 0 ? name : t("next"));
26043
- };
26044
-
26045
- const SubscriptionOptionsView = props => {
26046
- const {
26047
- t
26048
- } = useTranslation("subscriptionOptions");
26049
- return /*#__PURE__*/React__default['default'].createElement("div", {
26050
- id: "pelcro-subscription-options-view"
26051
- }, /*#__PURE__*/React__default['default'].createElement("div", {
26052
- className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
26053
- }, /*#__PURE__*/React__default['default'].createElement("h4", {
26054
- className: "plc-text-2xl plc-font-semibold"
26055
- }, t("title")), /*#__PURE__*/React__default['default'].createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default['default'].createElement("form", {
26056
- action: "javascript:void(0);",
26057
- className: "plc-mt-2 pelcro-form"
26058
- }, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default['default'].createElement("div", {
26059
- className: "plc-flex plc-justify-between plc-items-center"
26060
- }, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsSubmit, {
26061
- role: "submit",
26062
- className: "plc-mt-4 plc-w-full",
26063
- name: t("next"),
26064
- id: "pelcro-submit"
26065
- }))));
26066
- };
26067
-
26068
- const SubscriptionOptionsModal = ({
26069
- onDisplay,
26070
- onClose,
26071
- ...otherProps
26072
- }) => {
26073
- const {
26074
- switchView,
26075
- setProductsList
26076
- } = usePelcro();
26077
-
26078
- const onRenewSubSuccess = () => {
26079
- var _otherProps$onRenewSu;
26080
-
26081
- (_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
26082
- setProductsList(getRenewableProducts());
26083
- switchView("_plan-select-renew");
26084
- };
26085
-
26086
- const onNewSubSuccess = () => {
26087
- var _otherProps$onNewSubS;
26088
-
26089
- (_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
26090
- switchView("plan-select");
26091
- };
26092
-
26093
- return /*#__PURE__*/React__default['default'].createElement(Modal, {
26094
- onDisplay: onDisplay,
26095
- onClose: onClose,
26096
- id: "pelcro-subscription-options-modal"
26097
- }, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
26098
- onNewSubSuccess: onNewSubSuccess,
26099
- onRenewSubSuccess: onRenewSubSuccess
26100
- }))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
26101
- };
26102
- SubscriptionOptionsModal.viewId = "subscription-options";
26103
-
26104
25773
  exports.AddressCreateCity = AddressCreateCity;
26105
25774
  exports.AddressCreateContainer = AddressCreateContainer;
26106
25775
  exports.AddressCreateCountrySelect = AddressCreateCountrySelect;
@@ -26278,12 +25947,6 @@ exports.SubmitPaymentMethod = SubmitPaymentMethod;
26278
25947
  exports.SubscriptionCreateContainer = SubscriptionCreateContainer;
26279
25948
  exports.SubscriptionCreateModal = SubscriptionCreateModal;
26280
25949
  exports.SubscriptionCreateView = SubscriptionCreateView;
26281
- exports.SubscriptionOptionsContainer = SubscriptionOptionsContainer;
26282
- exports.SubscriptionOptionsModal = SubscriptionOptionsModal;
26283
- exports.SubscriptionOptionsNewButton = SubscriptionOptionsNewButton;
26284
- exports.SubscriptionOptionsRenewButton = SubscriptionOptionsRenewButton;
26285
- exports.SubscriptionOptionsSubmit = SubscriptionOptionsSubmit;
26286
- exports.SubscriptionOptionsView = SubscriptionOptionsView;
26287
25950
  exports.SubscriptionRenewContainer = SubscriptionRenewContainer;
26288
25951
  exports.SubscriptionRenewModal = SubscriptionRenewModal;
26289
25952
  exports.SubscriptionRenewView = SubscriptionRenewView;