@pelcro/react-pelcro-js 2.7.0-beta.9 → 3.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -3434,7 +3434,7 @@ var paymentMethod_fr = {
3434
3434
  var title$d = "Enter your email to subscribe to our newsletter";
3435
3435
  var updateTitle$1 = "Update newsletter selections";
3436
3436
  var subtitle$7 = "We may use your email for other marketing communication";
3437
- var labels$l = {
3437
+ var labels$n = {
3438
3438
  submit: "Submit",
3439
3439
  firstName: "First name",
3440
3440
  lastName: "Last name",
@@ -3442,7 +3442,7 @@ var labels$l = {
3442
3442
  postalCode: "Postal code",
3443
3443
  required: "required"
3444
3444
  };
3445
- var messages$p = {
3445
+ var messages$r = {
3446
3446
  alreadyHaveAccount: "Already have an account?",
3447
3447
  success: "Newsletters were successfully updated",
3448
3448
  loginHere: "Login here.",
@@ -3453,14 +3453,14 @@ var newsletter_en = {
3453
3453
  title: title$d,
3454
3454
  updateTitle: updateTitle$1,
3455
3455
  subtitle: subtitle$7,
3456
- labels: labels$l,
3457
- messages: messages$p
3456
+ labels: labels$n,
3457
+ messages: messages$r
3458
3458
  };
3459
3459
 
3460
3460
  var title$c = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3461
3461
  var updateTitle = "Mettre à jour son choix d'infolettres";
3462
3462
  var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3463
- var labels$k = {
3463
+ var labels$m = {
3464
3464
  submit: "Lire l’article !",
3465
3465
  firstName: "Prénom",
3466
3466
  lastName: "Nom de famille",
@@ -3468,7 +3468,7 @@ var labels$k = {
3468
3468
  postalCode: "Code postal",
3469
3469
  required: "Champs obligatoires"
3470
3470
  };
3471
- var messages$o = {
3471
+ var messages$q = {
3472
3472
  alreadyHaveAccount: "Vous avez déjà un compte ?",
3473
3473
  success: "Votre choix d'infolettres à été mis à jour",
3474
3474
  loginHere: "Connectez-vous ici",
@@ -3479,14 +3479,14 @@ var newsletter_fr = {
3479
3479
  title: title$c,
3480
3480
  updateTitle: updateTitle,
3481
3481
  subtitle: subtitle$6,
3482
- labels: labels$k,
3483
- messages: messages$o
3482
+ labels: labels$m,
3483
+ messages: messages$q
3484
3484
  };
3485
3485
 
3486
- var labels$j = {
3486
+ var labels$l = {
3487
3487
  "continue": "Continue to content"
3488
3488
  };
3489
- var messages$n = {
3489
+ var messages$p = {
3490
3490
  yourFreeTrial: "Subscription successful!",
3491
3491
  youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
3492
3492
  clickToLearn: {
@@ -3508,15 +3508,15 @@ var errors$9 = {
3508
3508
  "": ""
3509
3509
  };
3510
3510
  var success_en = {
3511
- labels: labels$j,
3512
- messages: messages$n,
3511
+ labels: labels$l,
3512
+ messages: messages$p,
3513
3513
  errors: errors$9
3514
3514
  };
3515
3515
 
3516
- var labels$i = {
3516
+ var labels$k = {
3517
3517
  "continue": "Abonnement réussi !"
3518
3518
  };
3519
- var messages$m = {
3519
+ var messages$o = {
3520
3520
  yourFreeTrial: "Votre essai gratuit vient de débuter",
3521
3521
  youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
3522
3522
  clickToLearn: {
@@ -3538,12 +3538,12 @@ var errors$8 = {
3538
3538
  "": ""
3539
3539
  };
3540
3540
  var success_fr = {
3541
- labels: labels$i,
3542
- messages: messages$m,
3541
+ labels: labels$k,
3542
+ messages: messages$o,
3543
3543
  errors: errors$8
3544
3544
  };
3545
3545
 
3546
- var messages$l = {
3546
+ var messages$n = {
3547
3547
  freeVisits: "Free visits left:",
3548
3548
  subscribeNow: "Subscribe",
3549
3549
  alreadyHaveAccount: "Already have an account?",
@@ -3553,11 +3553,11 @@ var errors$7 = {
3553
3553
  "": ""
3554
3554
  };
3555
3555
  var meter_en = {
3556
- messages: messages$l,
3556
+ messages: messages$n,
3557
3557
  errors: errors$7
3558
3558
  };
3559
3559
 
3560
- var messages$k = {
3560
+ var messages$m = {
3561
3561
  freeVisits: "Visites gratuites restantes:",
3562
3562
  subscribeNow: "Abonnez-vous maintenant !",
3563
3563
  alreadyHaveAccount: "Vous avez déjà un compte ?",
@@ -3567,15 +3567,15 @@ var errors$6 = {
3567
3567
  "": ""
3568
3568
  };
3569
3569
  var meter_fr = {
3570
- messages: messages$k,
3570
+ messages: messages$m,
3571
3571
  errors: errors$6
3572
3572
  };
3573
3573
 
3574
- var messages$j = {
3574
+ var messages$l = {
3575
3575
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
3576
3576
  bankRedirection: "Please hold, redirecting you to your bank."
3577
3577
  };
3578
- var labels$h = {
3578
+ var labels$j = {
3579
3579
  card: "Enter card number",
3580
3580
  date: "Expiration date",
3581
3581
  CVC: "CVC",
@@ -3594,15 +3594,15 @@ var labels$h = {
3594
3594
  removeCoupon: "REMOVE"
3595
3595
  };
3596
3596
  var checkoutForm_en = {
3597
- messages: messages$j,
3598
- labels: labels$h
3597
+ messages: messages$l,
3598
+ labels: labels$j
3599
3599
  };
3600
3600
 
3601
- var messages$i = {
3601
+ var messages$k = {
3602
3602
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
3603
3603
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
3604
3604
  };
3605
- var labels$g = {
3605
+ var labels$i = {
3606
3606
  card: "Entrez le numéro de carte",
3607
3607
  date: "Date d’expiration",
3608
3608
  CVC: "CVC",
@@ -3621,8 +3621,8 @@ var labels$g = {
3621
3621
  removeCoupon: "RETIRER"
3622
3622
  };
3623
3623
  var checkoutForm_fr = {
3624
- messages: messages$i,
3625
- labels: labels$g
3624
+ messages: messages$k,
3625
+ labels: labels$i
3626
3626
  };
3627
3627
 
3628
3628
  var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
@@ -3655,7 +3655,7 @@ var messages_fr = {
3655
3655
  recaptcha: recaptcha
3656
3656
  };
3657
3657
 
3658
- var labels$f = {
3658
+ var labels$h = {
3659
3659
  email: "Enter email",
3660
3660
  password: "Enter password",
3661
3661
  required: "required",
@@ -3663,7 +3663,7 @@ var labels$f = {
3663
3663
  passwordPlaceholder: "Password",
3664
3664
  login: "Login"
3665
3665
  };
3666
- var messages$h = {
3666
+ var messages$j = {
3667
3667
  loginTo: "Login to your account",
3668
3668
  welcome: "Welcome back, sign in with your existing account.",
3669
3669
  dontHaveAccount: "Don't have an account yet?",
@@ -3682,12 +3682,12 @@ var errors$5 = {
3682
3682
  "": ""
3683
3683
  };
3684
3684
  var login_en = {
3685
- labels: labels$f,
3686
- messages: messages$h,
3685
+ labels: labels$h,
3686
+ messages: messages$j,
3687
3687
  errors: errors$5
3688
3688
  };
3689
3689
 
3690
- var labels$e = {
3690
+ var labels$g = {
3691
3691
  email: "Entrez votre adresse courriel",
3692
3692
  password: "Entrez votre mot de passe",
3693
3693
  required: "Champs obligatoires",
@@ -3695,7 +3695,7 @@ var labels$e = {
3695
3695
  passwordPlaceholder: "Mot de passe",
3696
3696
  login: "Connexion"
3697
3697
  };
3698
- var messages$g = {
3698
+ var messages$i = {
3699
3699
  loginTo: "Connectez-vous à votre compte",
3700
3700
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
3701
3701
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -3714,14 +3714,14 @@ var errors$4 = {
3714
3714
  "": ""
3715
3715
  };
3716
3716
  var login_fr = {
3717
- labels: labels$e,
3718
- messages: messages$g,
3717
+ labels: labels$g,
3718
+ messages: messages$i,
3719
3719
  errors: errors$4
3720
3720
  };
3721
3721
 
3722
3722
  var title$b = "Create an account";
3723
3723
  var subtitle$5 = "Enter your email and password below";
3724
- var labels$d = {
3724
+ var labels$f = {
3725
3725
  signUpFacebook: "Sign up with Facebook",
3726
3726
  signUpGoogle: "Sign up with Google",
3727
3727
  signUpEmail: "Sign up with Email",
@@ -3733,7 +3733,7 @@ var labels$d = {
3733
3733
  firstName: "First name",
3734
3734
  lastName: "Last name"
3735
3735
  };
3736
- var messages$f = {
3736
+ var messages$h = {
3737
3737
  alreadyHaveAccount: "Already have an account?",
3738
3738
  createAccount: "Create account",
3739
3739
  loginHere: "login here. ",
@@ -3807,8 +3807,8 @@ var redeem$1 = {
3807
3807
  var register_en = {
3808
3808
  title: title$b,
3809
3809
  subtitle: subtitle$5,
3810
- labels: labels$d,
3811
- messages: messages$f,
3810
+ labels: labels$f,
3811
+ messages: messages$h,
3812
3812
  errors: errors$3,
3813
3813
  gift: gift$1,
3814
3814
  redeem: redeem$1
@@ -3816,7 +3816,7 @@ var register_en = {
3816
3816
 
3817
3817
  var title$a = "Créer un compte";
3818
3818
  var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
3819
- var labels$c = {
3819
+ var labels$e = {
3820
3820
  signUpFacebook: "Inscrivez-vous avec Facebook",
3821
3821
  signUpGoogle: "Inscrivez-vous avec Google",
3822
3822
  signUpEmail: "Inscrivez-vous avec votre courriel",
@@ -3828,7 +3828,7 @@ var labels$c = {
3828
3828
  firstName: "Prénom",
3829
3829
  lastName: "Nom de famille"
3830
3830
  };
3831
- var messages$e = {
3831
+ var messages$g = {
3832
3832
  alreadyHaveAccount: "Vous avez déjà un compte?",
3833
3833
  createAccount: "Créer un compte",
3834
3834
  loginHere: "Connectez-vous ici",
@@ -3903,14 +3903,14 @@ var redeem = {
3903
3903
  var register_fr = {
3904
3904
  title: title$a,
3905
3905
  subtitle: subtitle$4,
3906
- labels: labels$c,
3907
- messages: messages$e,
3906
+ labels: labels$e,
3907
+ messages: messages$g,
3908
3908
  errors: errors$2,
3909
3909
  gift: gift,
3910
3910
  redeem: redeem
3911
3911
  };
3912
3912
 
3913
- var labels$b = {
3913
+ var labels$d = {
3914
3914
  title: "Want to update your profile?",
3915
3915
  subtitle: "Enter your information below to update your profile",
3916
3916
  email: "Email",
@@ -3926,17 +3926,17 @@ var labels$b = {
3926
3926
  removeImage: "Remove current photo",
3927
3927
  zoom: "Zoom"
3928
3928
  };
3929
- var messages$d = {
3929
+ var messages$f = {
3930
3930
  userUpdated: "Thanks! Your profile was updated successfully.",
3931
3931
  pictureRemoved: "Your profile picture was removed successfully.",
3932
3932
  pictureUpdated: "Your profile picture was updated successfully."
3933
3933
  };
3934
3934
  var userEdit_en = {
3935
- labels: labels$b,
3936
- messages: messages$d
3935
+ labels: labels$d,
3936
+ messages: messages$f
3937
3937
  };
3938
3938
 
3939
- var labels$a = {
3939
+ var labels$c = {
3940
3940
  title: "Voulez-vous mettre à jour votre profil ?",
3941
3941
  subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
3942
3942
  email: "Address courriel",
@@ -3952,20 +3952,20 @@ var labels$a = {
3952
3952
  removeImage: "supprimer la photo actuelle",
3953
3953
  zoom: "Zoom"
3954
3954
  };
3955
- var messages$c = {
3955
+ var messages$e = {
3956
3956
  userUpdated: "Votre profil a été mis à jour avec succès.",
3957
3957
  pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
3958
3958
  pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
3959
3959
  };
3960
3960
  var userEdit_fr = {
3961
- labels: labels$a,
3962
- messages: messages$c
3961
+ labels: labels$c,
3962
+ messages: messages$e
3963
3963
  };
3964
3964
 
3965
3965
  var title$9 = "Enter your shipping address";
3966
3966
  var selectAddressTitle$1 = "Please select an address";
3967
3967
  var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
3968
- var labels$9 = {
3968
+ var labels$b = {
3969
3969
  address: "Address",
3970
3970
  code: "Postal Code/Zip",
3971
3971
  city: "City",
@@ -3980,7 +3980,7 @@ var buttons$5 = {
3980
3980
  selectAddress: "Select address",
3981
3981
  addAddress: "Add new address"
3982
3982
  };
3983
- var messages$b = {
3983
+ var messages$d = {
3984
3984
  addressUpdated: "The address was successfully updated!",
3985
3985
  subRedeemed: "Your subscription has been redeemed."
3986
3986
  };
@@ -3988,15 +3988,15 @@ var address_en = {
3988
3988
  title: title$9,
3989
3989
  selectAddressTitle: selectAddressTitle$1,
3990
3990
  selectAddressSubtitle: selectAddressSubtitle$1,
3991
- labels: labels$9,
3991
+ labels: labels$b,
3992
3992
  buttons: buttons$5,
3993
- messages: messages$b
3993
+ messages: messages$d
3994
3994
  };
3995
3995
 
3996
3996
  var title$8 = "Entrez votre adresse de livraison";
3997
3997
  var selectAddressTitle = "Veuillez sélectionner une adresse";
3998
3998
  var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
3999
- var labels$8 = {
3999
+ var labels$a = {
4000
4000
  address: "Adresse",
4001
4001
  code: "Code postal / Zip",
4002
4002
  city: "Ville",
@@ -4011,7 +4011,7 @@ var buttons$4 = {
4011
4011
  selectAddress: "Choisir cette adresse",
4012
4012
  addAddress: "Ajouter une nouvelle adresse"
4013
4013
  };
4014
- var messages$a = {
4014
+ var messages$c = {
4015
4015
  addressUpdated: "Votre adresse a été mise à jour avec succès",
4016
4016
  subRedeemed: "Votre abonnement a bien été activé."
4017
4017
  };
@@ -4019,9 +4019,9 @@ var address_fr = {
4019
4019
  title: title$8,
4020
4020
  selectAddressTitle: selectAddressTitle,
4021
4021
  selectAddressSubtitle: selectAddressSubtitle,
4022
- labels: labels$8,
4022
+ labels: labels$a,
4023
4023
  buttons: buttons$4,
4024
- messages: messages$a
4024
+ messages: messages$c
4025
4025
  };
4026
4026
 
4027
4027
  var title$7 = "Reset your password";
@@ -4068,7 +4068,7 @@ var password$1 = "Password";
4068
4068
  var submit$3 = "Submit";
4069
4069
  var required$3 = "Required";
4070
4070
  var passwordResetEmailSent$1 = "Password reset instructions have been sent to your email";
4071
- var messages$9 = {
4071
+ var messages$b = {
4072
4072
  alreadyHaveAccount: "Already have an account?",
4073
4073
  loginHere: "login here."
4074
4074
  };
@@ -4079,7 +4079,7 @@ var passwordForgot_en = {
4079
4079
  submit: submit$3,
4080
4080
  required: required$3,
4081
4081
  passwordResetEmailSent: passwordResetEmailSent$1,
4082
- messages: messages$9
4082
+ messages: messages$b
4083
4083
  };
4084
4084
 
4085
4085
  var title$4 = "Mot de passe oublié ?";
@@ -4088,7 +4088,7 @@ var password = "Mot de passe";
4088
4088
  var submit$2 = "Soumettre";
4089
4089
  var required$2 = "Champs obligatoires";
4090
4090
  var passwordResetEmailSent = "Un lien pour réinitialiser votre mot de passe vous a été envoyé. Si vous ne le recevez pas, vérifier votre courrier indésirable.";
4091
- var messages$8 = {
4091
+ var messages$a = {
4092
4092
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4093
4093
  loginHere: "Connectez-vous ici"
4094
4094
  };
@@ -4099,7 +4099,7 @@ var passwordForgot_fr = {
4099
4099
  submit: submit$2,
4100
4100
  required: required$2,
4101
4101
  passwordResetEmailSent: passwordResetEmailSent,
4102
- messages: messages$8
4102
+ messages: messages$a
4103
4103
  };
4104
4104
 
4105
4105
  var title$3 = "Change your password";
@@ -4200,7 +4200,7 @@ var buttons$3 = {
4200
4200
  purchase: "Purchase",
4201
4201
  "continue": "Continue"
4202
4202
  };
4203
- var messages$7 = {
4203
+ var messages$9 = {
4204
4204
  orderConfirmed: {
4205
4205
  title: "Order confirmed!",
4206
4206
  body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
@@ -4209,14 +4209,14 @@ var messages$7 = {
4209
4209
  multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
4210
4210
  currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
4211
4211
  };
4212
- var labels$7 = {
4212
+ var labels$9 = {
4213
4213
  summary: "Order summary",
4214
4214
  total: "total"
4215
4215
  };
4216
4216
  var shop_en = {
4217
4217
  buttons: buttons$3,
4218
- messages: messages$7,
4219
- labels: labels$7
4218
+ messages: messages$9,
4219
+ labels: labels$9
4220
4220
  };
4221
4221
 
4222
4222
  var buttons$2 = {
@@ -4225,7 +4225,7 @@ var buttons$2 = {
4225
4225
  purchase: "Acheter",
4226
4226
  "continue": "Continuer au contenu"
4227
4227
  };
4228
- var messages$6 = {
4228
+ var messages$8 = {
4229
4229
  orderConfirmed: {
4230
4230
  title: "Votre commande est confirmée !",
4231
4231
  body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
@@ -4234,17 +4234,17 @@ var messages$6 = {
4234
4234
  multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
4235
4235
  currencyMismatch: "Les articles sélectionnés ne sont pas compatibles avec la devise associée à votre compte ({{currency}}). Veuillez choisir des articles uniquement offerts dans cette devise."
4236
4236
  };
4237
- var labels$6 = {
4237
+ var labels$8 = {
4238
4238
  summary: "récapitulatif de commande",
4239
4239
  total: "total"
4240
4240
  };
4241
4241
  var shop_fr = {
4242
4242
  buttons: buttons$2,
4243
- messages: messages$6,
4244
- labels: labels$6
4243
+ messages: messages$8,
4244
+ labels: labels$8
4245
4245
  };
4246
4246
 
4247
- var labels$5 = {
4247
+ var labels$7 = {
4248
4248
  cardNumber: "Numéro de carte",
4249
4249
  securityCode: "Code de sécurité",
4250
4250
  submit: "Soumettre",
@@ -4266,7 +4266,7 @@ var labels$5 = {
4266
4266
  title: "Informations de paiement"
4267
4267
  }
4268
4268
  };
4269
- var messages$5 = {
4269
+ var messages$7 = {
4270
4270
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4271
4271
  cancel: "Annuler votre abonnement en ligne à tout moment.",
4272
4272
  giftSent: "Le cadeau d’abonnement a été envoyé à",
@@ -4279,12 +4279,12 @@ var errors$1 = {
4279
4279
  "": ""
4280
4280
  };
4281
4281
  var payment_fr = {
4282
- labels: labels$5,
4283
- messages: messages$5,
4282
+ labels: labels$7,
4283
+ messages: messages$7,
4284
4284
  errors: errors$1
4285
4285
  };
4286
4286
 
4287
- var labels$4 = {
4287
+ var labels$6 = {
4288
4288
  cardNumber: "Card number",
4289
4289
  securityCode: "Security Code",
4290
4290
  submit: "Submit",
@@ -4306,7 +4306,7 @@ var labels$4 = {
4306
4306
  title: "Payment Information"
4307
4307
  }
4308
4308
  };
4309
- var messages$4 = {
4309
+ var messages$6 = {
4310
4310
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
4311
4311
  cancel: "Cancel your subscription online at anytime.",
4312
4312
  giftSent: "Subscription gift has been sent to",
@@ -4319,12 +4319,12 @@ var errors = {
4319
4319
  "": ""
4320
4320
  };
4321
4321
  var payment_en = {
4322
- labels: labels$4,
4323
- messages: messages$4,
4322
+ labels: labels$6,
4323
+ messages: messages$6,
4324
4324
  errors: errors
4325
4325
  };
4326
4326
 
4327
- var labels$3 = {
4327
+ var labels$5 = {
4328
4328
  menu: "Pelcro Menu",
4329
4329
  name: "Name",
4330
4330
  email: "Email",
@@ -4391,7 +4391,7 @@ var labels$3 = {
4391
4391
  goBack: "Go back"
4392
4392
  }
4393
4393
  };
4394
- var messages$3 = {
4394
+ var messages$5 = {
4395
4395
  noCard: "You don't have a card",
4396
4396
  subCancellation: {
4397
4397
  isSureToCancel: "Are you sure you want to cancel your subscription?",
@@ -4401,11 +4401,11 @@ var messages$3 = {
4401
4401
  }
4402
4402
  };
4403
4403
  var dashboard_en = {
4404
- labels: labels$3,
4405
- messages: messages$3
4404
+ labels: labels$5,
4405
+ messages: messages$5
4406
4406
  };
4407
4407
 
4408
- var labels$2 = {
4408
+ var labels$4 = {
4409
4409
  menu: "Menu Pelcro",
4410
4410
  name: "Nom",
4411
4411
  email: "Courriel",
@@ -4472,7 +4472,7 @@ var labels$2 = {
4472
4472
  goBack: "Retourner"
4473
4473
  }
4474
4474
  };
4475
- var messages$2 = {
4475
+ var messages$4 = {
4476
4476
  noCard: "Vous n’avez pas une carte",
4477
4477
  subCancellation: {
4478
4478
  isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
@@ -4482,16 +4482,16 @@ var messages$2 = {
4482
4482
  }
4483
4483
  };
4484
4484
  var dashboard_fr = {
4485
- labels: labels$2,
4486
- messages: messages$2
4485
+ labels: labels$4,
4486
+ messages: messages$4
4487
4487
  };
4488
4488
 
4489
- var messages$1 = {
4489
+ var messages$3 = {
4490
4490
  alreadyHaveAccount: "Already have an account?",
4491
4491
  loginHere: "Login here",
4492
4492
  checkbox: "Check this box to gift this subscription"
4493
4493
  };
4494
- var labels$1 = {
4494
+ var labels$3 = {
4495
4495
  plan: {
4496
4496
  title: "Subscribe to a plan",
4497
4497
  subtitle: "Select one of the plans below and click on next."
@@ -4514,17 +4514,17 @@ var buttons$1 = {
4514
4514
  back: "Back"
4515
4515
  };
4516
4516
  var select_en = {
4517
- messages: messages$1,
4518
- labels: labels$1,
4517
+ messages: messages$3,
4518
+ labels: labels$3,
4519
4519
  buttons: buttons$1
4520
4520
  };
4521
4521
 
4522
- var messages = {
4522
+ var messages$2 = {
4523
4523
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4524
4524
  loginHere: "Connectez-vous ici",
4525
4525
  checkbox: "Cochez cette case pour offrir cet abonnement"
4526
4526
  };
4527
- var labels = {
4527
+ var labels$2 = {
4528
4528
  plan: {
4529
4529
  title: "Abonnez-vous à un plan",
4530
4530
  subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
@@ -4547,8 +4547,8 @@ var buttons = {
4547
4547
  back: "Retour"
4548
4548
  };
4549
4549
  var select_fr = {
4550
- messages: messages,
4551
- labels: labels,
4550
+ messages: messages$2,
4551
+ labels: labels$2,
4552
4552
  buttons: buttons
4553
4553
  };
4554
4554
 
@@ -4572,6 +4572,34 @@ var notification_fr = {
4572
4572
  confirm: confirm
4573
4573
  };
4574
4574
 
4575
+ var labels$1 = {
4576
+ title: "Verify your email",
4577
+ instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
4578
+ resend: "Resend email"
4579
+ };
4580
+ var messages$1 = {
4581
+ resent: "Resent successfully",
4582
+ success: "Email verified successfully!"
4583
+ };
4584
+ var verifyEmail_en = {
4585
+ labels: labels$1,
4586
+ messages: messages$1
4587
+ };
4588
+
4589
+ var labels = {
4590
+ title: "Vérifiez votre e-mail",
4591
+ instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
4592
+ resend: "Ré-envoyer l'email"
4593
+ };
4594
+ var messages = {
4595
+ resent: "Renvoyé avec succès",
4596
+ success: "Email vérifié avec succès!"
4597
+ };
4598
+ var verifyEmail_fr = {
4599
+ labels: labels,
4600
+ messages: messages
4601
+ };
4602
+
4575
4603
  function create$1(createState) {
4576
4604
  let state;
4577
4605
  const listeners = new Set();
@@ -5921,12 +5949,18 @@ class PelcroActions {
5921
5949
  view,
5922
5950
  cartItems,
5923
5951
  ...otherStateFields
5924
- } = initialState$g;
5952
+ } = initialState$h;
5925
5953
  this.set(otherStateFields);
5926
5954
  });
5927
5955
 
5928
5956
  _defineProperty$3(this, "switchView", view => {
5929
5957
  // view switching guards
5958
+ if (userMustVerifyEmail() && !["dashboard", "meter", "login", null].includes(view)) {
5959
+ return this.set({
5960
+ view: "email-verify"
5961
+ });
5962
+ }
5963
+
5930
5964
  if (["login", "register"].includes(view) && this.get().isAuthenticated()) {
5931
5965
  return this.set({
5932
5966
  view: "dashboard"
@@ -6184,7 +6218,7 @@ class PelcroCallbacks {
6184
6218
  }
6185
6219
  });
6186
6220
 
6187
- _defineProperty$3(this, "whenUserReady", callback => {
6221
+ _defineProperty$3(this, "whenUserReady", (callback, listenerOptions) => {
6188
6222
  var _window$Pelcro$user$r;
6189
6223
 
6190
6224
  if ((_window$Pelcro$user$r = window.Pelcro.user.read()) !== null && _window$Pelcro$user$r !== void 0 && _window$Pelcro$user$r.id) {
@@ -6192,7 +6226,7 @@ class PelcroCallbacks {
6192
6226
  } else {
6193
6227
  window.document.addEventListener("PelcroUserLoaded", e => {
6194
6228
  callback(window.Pelcro.user.read());
6195
- });
6229
+ }, listenerOptions);
6196
6230
  }
6197
6231
  });
6198
6232
 
@@ -6211,7 +6245,7 @@ class PelcroCallbacks {
6211
6245
 
6212
6246
  }
6213
6247
 
6214
- const initialState$g = {
6248
+ const initialState$h = {
6215
6249
  // View
6216
6250
  view: null,
6217
6251
  // Plans
@@ -6239,7 +6273,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6239
6273
  return {
6240
6274
  // Store setter
6241
6275
  set,
6242
- ...initialState$g,
6276
+ ...initialState$h,
6243
6277
  // State actions
6244
6278
  ...actions,
6245
6279
  // Callbacks
@@ -6390,7 +6424,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
6390
6424
  */
6391
6425
 
6392
6426
  const isValidViewFromURL = viewID => {
6393
- if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
6427
+ if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
6394
6428
  return true;
6395
6429
  }
6396
6430
 
@@ -6587,6 +6621,13 @@ function getDateWithoutTime(dateObject) {
6587
6621
  date.setHours(0, 0, 0, 0);
6588
6622
  return date;
6589
6623
  }
6624
+ function userMustVerifyEmail() {
6625
+ var _window$Pelcro$site$r3, _window$Pelcro$site$r4, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
6626
+
6627
+ const isEmailVerificationEnabled = (_window$Pelcro$site$r3 = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.email_verify_enabled) !== null && _window$Pelcro$site$r3 !== void 0 ? _window$Pelcro$site$r3 : false;
6628
+ 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;
6629
+ return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
6630
+ }
6590
6631
 
6591
6632
  const resources = {
6592
6633
  en: {
@@ -6604,6 +6645,7 @@ const resources = {
6604
6645
  passwordReset: passwordReset_en,
6605
6646
  passwordForgot: passwordForgot_en,
6606
6647
  passwordChange: passwordChange_en,
6648
+ verifyEmail: verifyEmail_en,
6607
6649
  cart: cart_en,
6608
6650
  shop: shop_en,
6609
6651
  payment: payment_en,
@@ -6626,6 +6668,7 @@ const resources = {
6626
6668
  passwordReset: passwordReset_fr,
6627
6669
  passwordForgot: passwordForgot_fr,
6628
6670
  passwordChange: passwordChange_fr,
6671
+ verifyEmail: verifyEmail_fr,
6629
6672
  cart: cart_fr,
6630
6673
  shop: shop_fr,
6631
6674
  payment: payment_fr,
@@ -6788,11 +6831,18 @@ class SaveToMetadataButtonClass {
6788
6831
 
6789
6832
  const button = event.currentTarget;
6790
6833
  const user = window.Pelcro.user.read();
6834
+ const {
6835
+ switchView
6836
+ } = usePelcro.getStore();
6791
6837
  const {
6792
6838
  key,
6793
6839
  ...buttonMetadata
6794
6840
  } = button.dataset;
6795
6841
 
6842
+ if (userMustVerifyEmail()) {
6843
+ return switchView("email-verify");
6844
+ }
6845
+
6796
6846
  if (_classPrivateFieldGet(this, _isAlreadySaved).call(this, button)) {
6797
6847
  _classPrivateFieldGet(this, _removeMetaData).call(this, event);
6798
6848
 
@@ -6915,8 +6965,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
6915
6965
 
6916
6966
  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}}
6917
6967
 
6918
- function _extends$x() {
6919
- _extends$x = Object.assign || function (target) {
6968
+ function _extends$y() {
6969
+ _extends$y = Object.assign || function (target) {
6920
6970
  for (var i = 1; i < arguments.length; i++) {
6921
6971
  var source = arguments[i];
6922
6972
 
@@ -6930,7 +6980,7 @@ function _extends$x() {
6930
6980
  return target;
6931
6981
  };
6932
6982
 
6933
- return _extends$x.apply(this, arguments);
6983
+ return _extends$y.apply(this, arguments);
6934
6984
  }
6935
6985
 
6936
6986
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7020,7 +7070,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7020
7070
  var reducer = function reducer(state, action) {
7021
7071
  switch (action.type) {
7022
7072
  case ActionType.ADD_TOAST:
7023
- return _extends$x({}, state, {
7073
+ return _extends$y({}, state, {
7024
7074
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7025
7075
  });
7026
7076
 
@@ -7030,9 +7080,9 @@ var reducer = function reducer(state, action) {
7030
7080
  clearFromRemoveQueue(action.toast.id);
7031
7081
  }
7032
7082
 
7033
- return _extends$x({}, state, {
7083
+ return _extends$y({}, state, {
7034
7084
  toasts: state.toasts.map(function (t) {
7035
- return t.id === action.toast.id ? _extends$x({}, t, action.toast) : t;
7085
+ return t.id === action.toast.id ? _extends$y({}, t, action.toast) : t;
7036
7086
  })
7037
7087
  });
7038
7088
 
@@ -7059,9 +7109,9 @@ var reducer = function reducer(state, action) {
7059
7109
  });
7060
7110
  }
7061
7111
 
7062
- return _extends$x({}, state, {
7112
+ return _extends$y({}, state, {
7063
7113
  toasts: state.toasts.map(function (t) {
7064
- return t.id === toastId || toastId === undefined ? _extends$x({}, t, {
7114
+ return t.id === toastId || toastId === undefined ? _extends$y({}, t, {
7065
7115
  visible: false
7066
7116
  }) : t;
7067
7117
  })
@@ -7069,28 +7119,28 @@ var reducer = function reducer(state, action) {
7069
7119
 
7070
7120
  case ActionType.REMOVE_TOAST:
7071
7121
  if (action.toastId === undefined) {
7072
- return _extends$x({}, state, {
7122
+ return _extends$y({}, state, {
7073
7123
  toasts: []
7074
7124
  });
7075
7125
  }
7076
7126
 
7077
- return _extends$x({}, state, {
7127
+ return _extends$y({}, state, {
7078
7128
  toasts: state.toasts.filter(function (t) {
7079
7129
  return t.id !== action.toastId;
7080
7130
  })
7081
7131
  });
7082
7132
 
7083
7133
  case ActionType.START_PAUSE:
7084
- return _extends$x({}, state, {
7134
+ return _extends$y({}, state, {
7085
7135
  pausedAt: action.time
7086
7136
  });
7087
7137
 
7088
7138
  case ActionType.END_PAUSE:
7089
7139
  var diff = action.time - (state.pausedAt || 0);
7090
- return _extends$x({}, state, {
7140
+ return _extends$y({}, state, {
7091
7141
  pausedAt: undefined,
7092
7142
  toasts: state.toasts.map(function (t) {
7093
- return _extends$x({}, t, {
7143
+ return _extends$y({}, t, {
7094
7144
  pauseDuration: t.pauseDuration + diff
7095
7145
  });
7096
7146
  })
@@ -7137,12 +7187,12 @@ var useStore = function useStore(toastOptions) {
7137
7187
  var mergedToasts = state.toasts.map(function (t) {
7138
7188
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7139
7189
 
7140
- return _extends$x({}, toastOptions, toastOptions[t.type], t, {
7190
+ return _extends$y({}, toastOptions, toastOptions[t.type], t, {
7141
7191
  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],
7142
- style: _extends$x({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7192
+ style: _extends$y({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7143
7193
  });
7144
7194
  });
7145
- return _extends$x({}, state, {
7195
+ return _extends$y({}, state, {
7146
7196
  toasts: mergedToasts
7147
7197
  });
7148
7198
  };
@@ -7152,7 +7202,7 @@ var createToast = function createToast(message, type, opts) {
7152
7202
  type = 'blank';
7153
7203
  }
7154
7204
 
7155
- return _extends$x({
7205
+ return _extends$y({
7156
7206
  createdAt: Date.now(),
7157
7207
  visible: true,
7158
7208
  type: type,
@@ -7202,14 +7252,14 @@ toast.remove = function (toastId) {
7202
7252
  };
7203
7253
 
7204
7254
  toast.promise = function (promise, msgs, opts) {
7205
- var id = toast.loading(msgs.loading, _extends$x({}, opts, opts == null ? void 0 : opts.loading));
7255
+ var id = toast.loading(msgs.loading, _extends$y({}, opts, opts == null ? void 0 : opts.loading));
7206
7256
  promise.then(function (p) {
7207
- toast.success(resolveValue(msgs.success, p), _extends$x({
7257
+ toast.success(resolveValue(msgs.success, p), _extends$y({
7208
7258
  id: id
7209
7259
  }, opts, opts == null ? void 0 : opts.success));
7210
7260
  return p;
7211
7261
  })["catch"](function (e) {
7212
- toast.error(resolveValue(msgs.error, e), _extends$x({
7262
+ toast.error(resolveValue(msgs.error, e), _extends$y({
7213
7263
  id: id
7214
7264
  }, opts, opts == null ? void 0 : opts.error));
7215
7265
  });
@@ -7548,7 +7598,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
7548
7598
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7549
7599
  return createElement(ToastBarBase, {
7550
7600
  className: toast.className,
7551
- style: _extends$x({}, animationStyle, style, toast.style)
7601
+ style: _extends$y({}, animationStyle, style, toast.style)
7552
7602
  }, typeof children === 'function' ? children({
7553
7603
  icon: icon,
7554
7604
  message: message
@@ -7578,7 +7628,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7578
7628
  } : position.includes('right') ? {
7579
7629
  justifyContent: 'flex-end'
7580
7630
  } : {};
7581
- return _extends$x({
7631
+ return _extends$y({
7582
7632
  left: 0,
7583
7633
  right: 0,
7584
7634
  display: 'flex',
@@ -7605,7 +7655,7 @@ var Toaster = function Toaster(_ref) {
7605
7655
  handlers = _useToaster.handlers;
7606
7656
 
7607
7657
  return createElement("div", {
7608
- style: _extends$x({
7658
+ style: _extends$y({
7609
7659
  position: 'fixed',
7610
7660
  zIndex: 9999,
7611
7661
  top: DEFAULT_OFFSET,
@@ -7640,87 +7690,87 @@ var Toaster = function Toaster(_ref) {
7640
7690
  }));
7641
7691
  };
7642
7692
 
7643
- var _path$u;
7693
+ var _path$v;
7644
7694
 
7645
- 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); }
7695
+ 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); }
7646
7696
 
7647
7697
  function SvgCheckSolid(props) {
7648
- return /*#__PURE__*/React.createElement("svg", _extends$w({
7698
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
7649
7699
  xmlns: "http://www.w3.org/2000/svg",
7650
7700
  className: "h-5 w-5",
7651
7701
  viewBox: "0 0 20 20",
7652
7702
  fill: "currentColor"
7653
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7703
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7654
7704
  fillRule: "evenodd",
7655
7705
  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",
7656
7706
  clipRule: "evenodd"
7657
7707
  })));
7658
7708
  }
7659
7709
 
7660
- var _path$t;
7710
+ var _path$u;
7661
7711
 
7662
- 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); }
7712
+ 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); }
7663
7713
 
7664
7714
  function SvgXIcon(props) {
7665
- return /*#__PURE__*/React.createElement("svg", _extends$v({
7715
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
7666
7716
  xmlns: "http://www.w3.org/2000/svg",
7667
7717
  viewBox: "0 0 20 20",
7668
7718
  fill: "currentColor"
7669
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7719
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7670
7720
  fill: "evenodd",
7671
7721
  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",
7672
7722
  clipRule: "evenodd"
7673
7723
  })));
7674
7724
  }
7675
7725
 
7676
- var _path$s;
7726
+ var _path$t;
7677
7727
 
7678
- 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); }
7728
+ 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); }
7679
7729
 
7680
7730
  function SvgXIconSolid(props) {
7681
- return /*#__PURE__*/React.createElement("svg", _extends$u({
7731
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
7682
7732
  className: "plc-w-4 plc-h-4",
7683
7733
  fill: "currentColor",
7684
7734
  xmlns: "http://www.w3.org/2000/svg",
7685
7735
  viewBox: "0 0 100 100"
7686
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7736
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7687
7737
  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"
7688
7738
  })));
7689
7739
  }
7690
7740
 
7691
- var _path$r;
7741
+ var _path$s;
7692
7742
 
7693
- 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); }
7743
+ 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); }
7694
7744
 
7695
7745
  function SvgExclamation(props) {
7696
- return /*#__PURE__*/React.createElement("svg", _extends$t({
7746
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
7697
7747
  className: "plc-w-4 plc-h-4 plc-mr-1",
7698
7748
  xmlns: "http://www.w3.org/2000/svg",
7699
7749
  viewBox: "0 0 20 20",
7700
7750
  fill: "currentColor"
7701
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
7751
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7702
7752
  fillRule: "evenodd",
7703
7753
  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",
7704
7754
  clipRule: "evenodd"
7705
7755
  })));
7706
7756
  }
7707
7757
 
7708
- var _path$q, _path2$3;
7758
+ var _path$r, _path2$4;
7709
7759
 
7710
- 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); }
7760
+ 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); }
7711
7761
 
7712
7762
  function SvgSpinner(props) {
7713
- return /*#__PURE__*/React.createElement("svg", _extends$s({
7763
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
7714
7764
  className: "plc-animate-spin",
7715
7765
  viewBox: "0 0 24 24",
7716
7766
  fill: "currentColor",
7717
7767
  xmlns: "http://www.w3.org/2000/svg"
7718
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
7768
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
7719
7769
  opacity: 0.2,
7720
7770
  fill: "evenodd",
7721
7771
  clipRule: "evenodd",
7722
7772
  d: "M12 19a7 7 0 100-14 7 7 0 000 14zm0 3c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"
7723
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
7773
+ })), _path2$4 || (_path2$4 = /*#__PURE__*/React.createElement("path", {
7724
7774
  d: "M2 12C2 6.477 6.477 2 12 2v3a7 7 0 00-7 7H2z"
7725
7775
  })));
7726
7776
  }
@@ -8446,50 +8496,110 @@ var pure = pure$1;
8446
8496
  var pure_1 = pure.loadStripe;
8447
8497
 
8448
8498
  /**
8449
- * @typedef {Object} OptionsType
8450
- * @property {boolean} loadPaymentSDKs
8451
- * @property {boolean} enableURLTriggers
8452
- * @property {boolean} enableTheme
8453
- * @property {boolean} enablePaywalls
8454
- * @property {boolean} enableGoogleAnalytics
8455
- */
8456
-
8457
- /**
8458
- * Initializes pelcro features based on the options flag object
8459
- * @param {OptionsType} options
8460
- * @returns
8499
+ * Extracts error message from the response error object
8500
+ * @param {Object} error Error object
8501
+ * @return {string}
8461
8502
  */
8503
+ const getErrorMessages = error => {
8504
+ var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
8462
8505
 
8463
- const optionsController = options => {
8464
- if (!options) {
8465
- return;
8506
+ if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
8507
+ return error.error.message;
8466
8508
  }
8467
8509
 
8468
- const optionsMethodsDict = {
8469
- loadPaymentSDKs: loadPaymentSDKs,
8470
- loadAuth0SDK: loadAuth0SDK,
8471
- enableURLTriggers: initViewFromURL,
8472
- enableTheme: applyPelcroTheme,
8473
- enablePaywalls: initPaywalls,
8474
- loadSecuritySDK: initSecuritySdk,
8475
- enableGoogleAnalytics: initGATracking
8476
- }; // Only execute enabled options
8510
+ if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
8511
+ var _error$response2, _error$response2$data;
8477
8512
 
8478
- Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
8479
- var _optionsMethodsDict$k;
8513
+ return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
8514
+ }
8480
8515
 
8481
- return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
8482
- });
8483
- };
8484
- const initPaywalls = () => {
8485
- var _window$Pelcro$site$r;
8516
+ if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
8517
+ var _error$response4, _error$response4$data, _error$response4$data2;
8486
8518
 
8487
- const paywallMethods = window.Pelcro.paywall;
8488
- const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
8519
+ return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
8520
+ }
8489
8521
 
8490
- if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
8491
- // blur entitlements based content
8492
- const didBlurContent = init(); // Skip paywall if article is not restricted
8522
+ const errorMessages = []; // enumerable error (ex: validation errors)
8523
+
8524
+ Object.values(error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : _error$response5$data.errors).forEach(([errorMessage]) => {
8525
+ errorMessages.push(errorMessage);
8526
+ }); // convert to multiline string
8527
+
8528
+ return errorMessages.join("\n");
8529
+ };
8530
+ /**
8531
+ * Executes function after a wait time of inactivity
8532
+ * @param {function} func
8533
+ * @param {number} waitTime
8534
+ */
8535
+
8536
+ const debounce = (func, waitTime) => {
8537
+ let timeout;
8538
+ return function executedFunction(...args) {
8539
+ // The callback function to be executed after
8540
+ // the debounce time has elapsed
8541
+ const later = () => {
8542
+ // null timeout to indicate the debounce ended
8543
+ timeout = null;
8544
+ func(...args);
8545
+ }; // This will reset the waiting every function execution.
8546
+ // This is the step that prevents the function from
8547
+ // being executed because it will never reach the
8548
+ // inside of the previous setTimeout
8549
+
8550
+
8551
+ clearTimeout(timeout); // Restart the debounce waiting period.
8552
+ // setTimeout returns a truthy value (it differs in web vs Node)
8553
+
8554
+ timeout = setTimeout(later, waitTime);
8555
+ };
8556
+ };
8557
+
8558
+ /**
8559
+ * @typedef {Object} OptionsType
8560
+ * @property {boolean} loadPaymentSDKs
8561
+ * @property {boolean} enableURLTriggers
8562
+ * @property {boolean} enableTheme
8563
+ * @property {boolean} enablePaywalls
8564
+ * @property {boolean} enableGoogleAnalytics
8565
+ */
8566
+
8567
+ /**
8568
+ * Initializes pelcro features based on the options flag object
8569
+ * @param {OptionsType} options
8570
+ * @returns
8571
+ */
8572
+
8573
+ const optionsController = options => {
8574
+ if (!options) {
8575
+ return;
8576
+ }
8577
+
8578
+ const optionsMethodsDict = {
8579
+ loadPaymentSDKs: loadPaymentSDKs,
8580
+ loadAuth0SDK: loadAuth0SDK,
8581
+ enableURLTriggers: initViewFromURL,
8582
+ enableTheme: applyPelcroTheme,
8583
+ enablePaywalls: initPaywalls,
8584
+ loadSecuritySDK: initSecuritySdk,
8585
+ enableGoogleAnalytics: initGATracking
8586
+ }; // Only execute enabled options
8587
+
8588
+ Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
8589
+ var _optionsMethodsDict$k;
8590
+
8591
+ return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
8592
+ });
8593
+ };
8594
+ const initPaywalls = () => {
8595
+ var _window$Pelcro$site$r;
8596
+
8597
+ const paywallMethods = window.Pelcro.paywall;
8598
+ const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
8599
+
8600
+ if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
8601
+ // blur entitlements based content
8602
+ const didBlurContent = init(); // Skip paywall if article is not restricted
8493
8603
 
8494
8604
  if (isValidViewFromURL(viewFromURL) || !paywallMethods.isArticleRestricted()) {
8495
8605
  return;
@@ -8685,6 +8795,10 @@ const initViewFromURL = () => {
8685
8795
  return initCartFromUrl();
8686
8796
  }
8687
8797
 
8798
+ if (view === "email-verify") {
8799
+ return verifyEmailTokenFromUrl();
8800
+ }
8801
+
8688
8802
  switchView(view);
8689
8803
  });
8690
8804
  }
@@ -8834,6 +8948,33 @@ const initCartFromUrl = () => {
8834
8948
  });
8835
8949
  };
8836
8950
 
8951
+ const verifyEmailTokenFromUrl = () => {
8952
+ var _window$Pelcro$site$r5, _window$Pelcro$site$r6;
8953
+
8954
+ const {
8955
+ whenSiteReady
8956
+ } = usePelcro.getStore();
8957
+ const translations = i18next.t("verifyEmail:messages", {
8958
+ returnObjects: true
8959
+ });
8960
+ const emailToken = window.Pelcro.helpers.getURLParameter("token");
8961
+ const isEmailVerificationEnabled = (_window$Pelcro$site$r5 = (_window$Pelcro$site$r6 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r6 === void 0 ? void 0 : _window$Pelcro$site$r6.email_verify_enabled) !== null && _window$Pelcro$site$r5 !== void 0 ? _window$Pelcro$site$r5 : false;
8962
+ if (!emailToken || !isEmailVerificationEnabled) return;
8963
+ whenSiteReady(() => {
8964
+ window.Pelcro.user.verifyEmailToken({
8965
+ token: emailToken
8966
+ }, (err, res) => {
8967
+ if (err) {
8968
+ return notify.error(getErrorMessages(err));
8969
+ }
8970
+
8971
+ return notify.success(translations.success);
8972
+ });
8973
+ }, {
8974
+ once: true
8975
+ });
8976
+ };
8977
+
8837
8978
  const defaultOptions = {
8838
8979
  loadPaymentSDKs: true,
8839
8980
  loadAuth0SDK: true,
@@ -9173,67 +9314,7 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9173
9314
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9174
9315
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9175
9316
 
9176
- /**
9177
- * Extracts error message from the response error object
9178
- * @param {Object} error Error object
9179
- * @return {string}
9180
- */
9181
- const getErrorMessages = error => {
9182
- var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
9183
-
9184
- if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
9185
- return error.error.message;
9186
- }
9187
-
9188
- if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
9189
- var _error$response2, _error$response2$data;
9190
-
9191
- return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
9192
- }
9193
-
9194
- if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
9195
- var _error$response4, _error$response4$data, _error$response4$data2;
9196
-
9197
- return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
9198
- }
9199
-
9200
- const errorMessages = []; // enumerable error (ex: validation errors)
9201
-
9202
- Object.values(error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : _error$response5$data.errors).forEach(([errorMessage]) => {
9203
- errorMessages.push(errorMessage);
9204
- }); // convert to multiline string
9205
-
9206
- return errorMessages.join("\n");
9207
- };
9208
- /**
9209
- * Executes function after a wait time of inactivity
9210
- * @param {function} func
9211
- * @param {number} waitTime
9212
- */
9213
-
9214
- const debounce = (func, waitTime) => {
9215
- let timeout;
9216
- return function executedFunction(...args) {
9217
- // The callback function to be executed after
9218
- // the debounce time has elapsed
9219
- const later = () => {
9220
- // null timeout to indicate the debounce ended
9221
- timeout = null;
9222
- func(...args);
9223
- }; // This will reset the waiting every function execution.
9224
- // This is the step that prevents the function from
9225
- // being executed because it will never reach the
9226
- // inside of the previous setTimeout
9227
-
9228
-
9229
- clearTimeout(timeout); // Restart the debounce waiting period.
9230
- // setTimeout returns a truthy value (it differs in web vs Node)
9231
-
9232
- timeout = setTimeout(later, waitTime);
9233
- };
9234
- };
9235
-
9236
- const initialState$f = {
9317
+ const initialState$g = {
9237
9318
  email: "",
9238
9319
  password: "",
9239
9320
  emailError: null,
@@ -9244,10 +9325,10 @@ const initialState$f = {
9244
9325
  content: ""
9245
9326
  }
9246
9327
  };
9247
- const store$f = /*#__PURE__*/createContext(initialState$f);
9328
+ const store$g = /*#__PURE__*/createContext(initialState$g);
9248
9329
  const {
9249
- Provider: Provider$f
9250
- } = store$f;
9330
+ Provider: Provider$g
9331
+ } = store$g;
9251
9332
 
9252
9333
  const LoginContainer = ({
9253
9334
  style,
@@ -9354,7 +9435,7 @@ const LoginContainer = ({
9354
9435
  });
9355
9436
 
9356
9437
  case RESET_LOGIN_FORM:
9357
- return initialState$f;
9438
+ return initialState$g;
9358
9439
 
9359
9440
  case DISABLE_LOGIN_BUTTON:
9360
9441
  return lib_7({ ...state,
@@ -9372,12 +9453,12 @@ const LoginContainer = ({
9372
9453
  default:
9373
9454
  return state;
9374
9455
  }
9375
- }, initialState$f);
9456
+ }, initialState$g);
9376
9457
  return /*#__PURE__*/React__default.createElement("div", {
9377
9458
  style: { ...style
9378
9459
  },
9379
9460
  className: `pelcro-container pelcro-login-container ${className}`
9380
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
9461
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
9381
9462
  value: {
9382
9463
  state,
9383
9464
  dispatch
@@ -9385,12 +9466,12 @@ const LoginContainer = ({
9385
9466
  }, children.length ? children.map((child, i) => {
9386
9467
  if (child) {
9387
9468
  return /*#__PURE__*/React__default.cloneElement(child, {
9388
- store: store$f,
9469
+ store: store$g,
9389
9470
  key: i
9390
9471
  });
9391
9472
  }
9392
9473
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9393
- store: store$f
9474
+ store: store$g
9394
9475
  })));
9395
9476
  };
9396
9477
 
@@ -9635,7 +9716,7 @@ const LoginButton = ({
9635
9716
  buttonDisabled
9636
9717
  },
9637
9718
  dispatch
9638
- } = useContext(store$f);
9719
+ } = useContext(store$g);
9639
9720
  const {
9640
9721
  t
9641
9722
  } = useTranslation("login");
@@ -9656,23 +9737,23 @@ const LoginButton = ({
9656
9737
  };
9657
9738
 
9658
9739
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
9659
- store: store$f
9740
+ store: store$g
9660
9741
  }, props));
9661
9742
 
9662
9743
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
9663
- store: store$f
9744
+ store: store$g
9664
9745
  }, props));
9665
9746
 
9666
- var _path$p;
9747
+ var _path$q;
9667
9748
 
9668
- 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); }
9749
+ 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); }
9669
9750
 
9670
9751
  function SvgCheck(props) {
9671
- return /*#__PURE__*/React.createElement("svg", _extends$r({
9752
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
9672
9753
  xmlns: "http://www.w3.org/2000/svg",
9673
9754
  fill: "currentColor",
9674
9755
  viewBox: "0 0 20 20"
9675
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
9756
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
9676
9757
  fillRule: "evenodd",
9677
9758
  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",
9678
9759
  clipRule: "evenodd"
@@ -9737,7 +9818,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
9737
9818
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
9738
9819
  facebookLoginRenderProps.FacebookLogin;
9739
9820
 
9740
- const initialState$e = {
9821
+ const initialState$f = {
9741
9822
  email: "",
9742
9823
  password: "",
9743
9824
  emailError: null,
@@ -9754,10 +9835,10 @@ const initialState$e = {
9754
9835
  content: ""
9755
9836
  }
9756
9837
  };
9757
- const store$e = /*#__PURE__*/createContext(initialState$e);
9838
+ const store$f = /*#__PURE__*/createContext(initialState$f);
9758
9839
  const {
9759
- Provider: Provider$e
9760
- } = store$e;
9840
+ Provider: Provider$f
9841
+ } = store$f;
9761
9842
 
9762
9843
  const RegisterContainer = ({
9763
9844
  style,
@@ -9940,7 +10021,7 @@ const RegisterContainer = ({
9940
10021
  });
9941
10022
 
9942
10023
  case RESET_LOGIN_FORM:
9943
- return initialState$e;
10024
+ return initialState$f;
9944
10025
 
9945
10026
  case DISABLE_REGISTRATION_BUTTON:
9946
10027
  return lib_7({ ...state,
@@ -9958,12 +10039,12 @@ const RegisterContainer = ({
9958
10039
  default:
9959
10040
  return state;
9960
10041
  }
9961
- }, initialState$e);
10042
+ }, initialState$f);
9962
10043
  return /*#__PURE__*/React__default.createElement("div", {
9963
10044
  style: { ...style
9964
10045
  },
9965
10046
  className: `pelcro-container pelcro-register-container ${className}`
9966
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
10047
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
9967
10048
  value: {
9968
10049
  state,
9969
10050
  dispatch
@@ -9971,12 +10052,12 @@ const RegisterContainer = ({
9971
10052
  }, children.length ? children.map((child, i) => {
9972
10053
  if (child) {
9973
10054
  return /*#__PURE__*/React__default.cloneElement(child, {
9974
- store: store$e,
10055
+ store: store$f,
9975
10056
  key: i
9976
10057
  });
9977
10058
  }
9978
10059
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9979
- store: store$e
10060
+ store: store$f
9980
10061
  })));
9981
10062
  };
9982
10063
  /**
@@ -9991,15 +10072,15 @@ function hasSecurityTokenEnabled$1() {
9991
10072
  return hasSecuritySdkLoaded;
9992
10073
  }
9993
10074
 
9994
- var _path$o;
10075
+ var _path$p;
9995
10076
 
9996
- 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); }
10077
+ 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); }
9997
10078
 
9998
10079
  function SvgFacebookLogo(props) {
9999
- return /*#__PURE__*/React.createElement("svg", _extends$q({
10080
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
10000
10081
  xmlns: "http://www.w3.org/2000/svg",
10001
10082
  viewBox: "88.428 12.828 107.543 207.085"
10002
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10083
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10003
10084
  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",
10004
10085
  fill: "#3c5a9a"
10005
10086
  })));
@@ -10016,10 +10097,10 @@ const FacebookLoginButton = ({
10016
10097
  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;
10017
10098
  const {
10018
10099
  dispatch: loginDispatch
10019
- } = useContext(store$f);
10100
+ } = useContext(store$g);
10020
10101
  const {
10021
10102
  dispatch: registerDispatch
10022
- } = useContext(store$e);
10103
+ } = useContext(store$f);
10023
10104
 
10024
10105
  const onSuccess = facebookUser => {
10025
10106
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10072,18 +10153,18 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10072
10153
  unwrapExports(googleLogin);
10073
10154
  var googleLogin_1 = googleLogin.GoogleLogin;
10074
10155
 
10075
- var _path$n, _path2$2, _path3$1, _path4;
10156
+ var _path$o, _path2$3, _path3$1, _path4;
10076
10157
 
10077
- 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); }
10158
+ 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); }
10078
10159
 
10079
10160
  function SvgGoogleLogo(props) {
10080
- return /*#__PURE__*/React.createElement("svg", _extends$p({
10161
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
10081
10162
  viewBox: "0 0 24 24",
10082
10163
  xmlns: "http://www.w3.org/2000/svg"
10083
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10164
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10084
10165
  fill: "#4285F4",
10085
10166
  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"
10086
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
10167
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
10087
10168
  fill: "#34A853",
10088
10169
  d: "M12.255 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96h-3.98v3.09C3.515 21.3 7.565 24 12.255 24z"
10089
10170
  })), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
@@ -10106,10 +10187,10 @@ const GoogleLoginButton = ({
10106
10187
  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;
10107
10188
  const {
10108
10189
  dispatch: loginDispatch
10109
- } = useContext(store$f);
10190
+ } = useContext(store$g);
10110
10191
  const {
10111
10192
  dispatch: registerDispatch
10112
- } = useContext(store$e);
10193
+ } = useContext(store$f);
10113
10194
 
10114
10195
  const onSuccess = response => {
10115
10196
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10157,15 +10238,15 @@ const GoogleLoginButton = ({
10157
10238
  }) : null;
10158
10239
  };
10159
10240
 
10160
- var _path$m;
10241
+ var _path$n;
10161
10242
 
10162
- 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); }
10243
+ 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); }
10163
10244
 
10164
10245
  function SvgAuth0Logo(props) {
10165
- return /*#__PURE__*/React.createElement("svg", _extends$o({
10246
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
10166
10247
  viewBox: "0 0 256 285",
10167
10248
  xmlns: "http://www.w3.org/2000/svg"
10168
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
10249
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10169
10250
  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"
10170
10251
  })));
10171
10252
  }
@@ -10176,30 +10257,45 @@ const Auth0LoginButton = ({
10176
10257
  labelClassName = "",
10177
10258
  iconClassName = ""
10178
10259
  }) => {
10179
- if (!window.auth0 && window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url) {
10180
- console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
10181
- }
10260
+ const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
10261
+ const auth0Script = document.querySelector("#auth0-sdk");
10262
+ const [auth0Loaded, setAuth0Loaded] = useState(Boolean(window.auth0));
10263
+ React__default.useEffect(() => {
10264
+ function handleScriptLoaded() {
10265
+ setAuth0Loaded(true);
10266
+ }
10267
+
10268
+ if (auth0Enabled && !auth0Loaded) {
10269
+ auth0Script.addEventListener("load", handleScriptLoaded);
10270
+ }
10182
10271
 
10183
- const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url && window.auth0);
10272
+ return () => {
10273
+ auth0Script.removeEventListener("load", handleScriptLoaded);
10274
+ };
10275
+ }, [auth0Script, auth0Enabled, auth0Loaded]);
10184
10276
  const auth0InstanceRef = React__default.useRef(null);
10185
10277
  React__default.useEffect(() => {
10186
- if (auth0Enabled) {
10278
+ if (auth0Enabled && auth0Loaded && auth0InstanceRef.current === null) {
10187
10279
  auth0InstanceRef.current = new window.auth0.WebAuth({
10188
10280
  domain: window.Pelcro.site.read().auth0_base_url,
10189
10281
  clientID: window.Pelcro.site.read().auth0_client_id
10190
10282
  });
10191
10283
  }
10192
- }, []);
10284
+ }, [auth0Enabled, auth0Loaded]);
10193
10285
  const {
10194
10286
  dispatch: loginDispatch
10195
- } = useContext(store$f);
10287
+ } = useContext(store$g);
10196
10288
  const {
10197
10289
  dispatch: registerDispatch
10198
- } = useContext(store$e);
10290
+ } = useContext(store$f);
10199
10291
 
10200
10292
  function handleClick() {
10201
10293
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
10202
10294
 
10295
+ if (!auth0Loaded) {
10296
+ return console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
10297
+ }
10298
+
10203
10299
  (_auth0InstanceRef$cur = auth0InstanceRef.current) === null || _auth0InstanceRef$cur === void 0 ? void 0 : (_auth0InstanceRef$cur2 = _auth0InstanceRef$cur.popup) === null || _auth0InstanceRef$cur2 === void 0 ? void 0 : (_auth0InstanceRef$cur3 = _auth0InstanceRef$cur2.authorize) === null || _auth0InstanceRef$cur3 === void 0 ? void 0 : _auth0InstanceRef$cur3.call(_auth0InstanceRef$cur2, {
10204
10300
  responseType: "token id_token",
10205
10301
  owp: true // close popup when finished
@@ -10324,19 +10420,19 @@ function LoginView(props) {
10324
10420
  }, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
10325
10421
  }
10326
10422
 
10327
- var _path$l, _path2$1, _path3;
10423
+ var _path$m, _path2$2, _path3;
10328
10424
 
10329
- 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); }
10425
+ 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); }
10330
10426
 
10331
10427
  function SvgPelcroAuthorship(props) {
10332
- return /*#__PURE__*/React.createElement("svg", _extends$n({
10428
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
10333
10429
  xmlns: "http://www.w3.org/2000/svg",
10334
10430
  viewBox: "0 -80.652 497.072 179.991"
10335
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
10431
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
10336
10432
  fill: "none",
10337
10433
  stroke: "#4a4a4a",
10338
10434
  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"
10339
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
10435
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
10340
10436
  d: "M46.875-5.564h7.294c.88 0 1.805.102 2.77.307s1.844.55 2.643 1.05 1.455 1.186 1.967 2.057.768 1.96.768 3.274c0 1.144-.207 2.132-.626 2.964s-.979 1.519-1.68 2.055-1.515.935-2.428 1.196c-.921.263-1.877.394-2.88.394h-5.468v12.009h-2.36V-5.564zm2.359 11.153h5.363a8.35 8.35 0 001.966-.232c.644-.155 1.216-.405 1.715-.751s.905-.805 1.219-1.377c.308-.572.464-1.273.464-2.107 0-.811-.163-1.501-.485-2.074s-.737-1.044-1.25-1.411-1.101-.638-1.769-.805a8.16 8.16 0 00-2.001-.252h-5.218l-.004 9.01zm16.625 5.897c0-1.262.212-2.423.642-3.484a8.39 8.39 0 011.787-2.755 7.967 7.967 0 012.754-1.803c1.073-.43 2.241-.642 3.502-.642s2.425.212 3.485.642a8.25 8.25 0 012.751 1.803c.775.771 1.378 1.692 1.805 2.755s.645 2.222.645 3.484-.217 2.428-.645 3.484-1.028 1.979-1.805 2.756a8.17 8.17 0 01-2.751 1.805c-1.061.428-2.223.641-3.485.641s-2.432-.213-3.502-.641c-1.073-.436-1.989-1.034-2.754-1.805-.762-.777-1.357-1.696-1.787-2.756s-.642-2.217-.642-3.484zm2.144 0c0 .932.148 1.809.447 2.631a6.18 6.18 0 001.306 2.146c.572.605 1.263 1.089 2.073 1.446s1.716.536 2.717.536 1.905-.179 2.717-.536 1.501-.84 2.071-1.446 1.007-1.324 1.305-2.146a7.66 7.66 0 00.446-2.631c0-.926-.149-1.803-.446-2.625s-.734-1.537-1.305-2.147-1.265-1.089-2.071-1.446c-.812-.36-1.717-.538-2.717-.538s-1.906.178-2.717.538-1.501.837-2.073 1.446a6.15 6.15 0 00-1.306 2.147 7.66 7.66 0 00-.447 2.625zm17.694-8.257h2.362l4.003 13.833h.071l4.612-13.833h2.039l4.896 13.833h.072l3.897-13.833h2.145l-4.859 16.514h-2.218L97.781 6.229h-.07L93.1 19.743h-2.214L85.697 3.229zm42.076 13.408c-.834 1.261-1.865 2.165-3.093 2.715s-2.582.825-4.058.825c-1.264 0-2.408-.217-3.431-.644a7.78 7.78 0 01-2.647-1.807c-.739-.777-1.305-1.695-1.7-2.751s-.59-2.234-.59-3.521c0-1.237.204-2.384.609-3.432s.978-1.962 1.715-2.734a8.06 8.06 0 012.61-1.825c.999-.437 2.108-.66 3.323-.66 1.266 0 2.377.223 3.342.66.965.444 1.775 1.026 2.431 1.754a7.4 7.4 0 011.483 2.483c.336.929.502 1.871.502 2.824v1.5h-13.871c0 .453.093 1.033.271 1.732.177.704.504 1.389.981 2.058s1.113 1.236 1.912 1.718c.798.475 1.829.712 3.094.712 1.095 0 2.158-.259 3.181-.787s1.808-1.238 2.358-2.146l1.578 1.326zm-1.645-6.543a4.84 4.84 0 00-.448-2.072 5.46 5.46 0 00-1.214-1.697 5.813 5.813 0 00-1.822-1.166 5.87 5.87 0 00-2.233-.429c-1.168 0-2.138.239-2.914.717s-1.389 1.021-1.84 1.644-.775 1.222-.967 1.802-.285.986-.285 1.197l11.723.004zm6.933-2.218l-.035-1.126-.052-1.336-.055-1.272-.035-.914h2.146l.053 1.787c.01.574.043.943.089 1.111.548-.979 1.249-1.777 2.108-2.396s1.907-.928 3.148-.928c.212 0 .423.016.624.055l.626.121-.249 2.111a2.53 2.53 0 00-.821-.146c-.93 0-1.734.146-2.414.448s-1.238.708-1.68 1.232-.768 1.137-.983 1.842-.321 1.46-.321 2.271v9.006h-2.146l-.003-11.866zm25.845 8.761c-.836 1.261-1.866 2.165-3.092 2.715s-2.58.825-4.059.825c-1.265 0-2.407-.217-3.431-.644a7.7 7.7 0 01-2.646-1.807 7.95 7.95 0 01-1.698-2.751c-.394-1.059-.59-2.234-.59-3.521 0-1.237.2-2.384.608-3.432s.978-1.962 1.717-2.734 1.609-1.383 2.609-1.825c.999-.437 2.107-.66 3.322-.66 1.264 0 2.376.223 3.344.66.963.444 1.773 1.026 2.429 1.754a7.49 7.49 0 011.485 2.483 8.34 8.34 0 01.498 2.824v1.5h-13.869c0 .453.089 1.033.268 1.732.178.704.506 1.389.983 2.058s1.111 1.236 1.91 1.718c.8.475 1.829.712 3.092.712 1.096 0 2.158-.259 3.183-.787s1.81-1.238 2.361-2.146l1.576 1.326zm-1.643-6.543c0-.739-.147-1.432-.447-2.072a5.58 5.58 0 00-1.215-1.697 5.875 5.875 0 00-4.054-1.595c-1.171 0-2.139.239-2.914.717s-1.387 1.021-1.84 1.644-.776 1.222-.968 1.802-.288.986-.288 1.197l11.727.004zm21.38 6.756h-.073a5.427 5.427 0 01-1.249 1.48 7.44 7.44 0 01-1.627 1.04 8.182 8.182 0 01-1.84.604 9.2 9.2 0 01-1.894.199c-1.264 0-2.432-.213-3.506-.641-1.071-.436-1.988-1.034-2.751-1.805-.76-.777-1.358-1.696-1.786-2.756s-.642-2.219-.642-3.484.212-2.423.642-3.484 1.026-1.979 1.786-2.755 1.68-1.378 2.751-1.803c1.074-.43 2.242-.642 3.506-.642.618 0 1.251.065 1.894.196a8.34 8.34 0 011.84.606 7.65 7.65 0 011.627 1.038 5.58 5.58 0 011.249 1.484h.073V-7.278h2.143v27.023h-2.143V16.85zm.211-5.364c0-.926-.177-1.803-.536-2.625a6.7 6.7 0 00-1.467-2.147c-.617-.609-1.344-1.089-2.181-1.446s-1.738-.538-2.714-.538c-1.002 0-1.908.178-2.717.538s-1.504.837-2.076 1.446a6.16 6.16 0 00-1.305 2.147 7.65 7.65 0 00-.446 2.625 7.66 7.66 0 00.446 2.631c.298.822.734 1.537 1.305 2.146s1.266 1.089 2.076 1.446 1.715.536 2.717.536c.976 0 1.88-.179 2.714-.536s1.563-.84 2.181-1.446 1.109-1.324 1.467-2.146a6.5 6.5 0 00.536-2.631zm16.015-18.764h2.146V6.126h.068a5.64 5.64 0 011.255-1.484 7.606 7.606 0 011.626-1.038 8.22 8.22 0 011.84-.606 9.56 9.56 0 011.895-.196c1.263 0 2.422.212 3.486.642s1.976 1.032 2.75 1.803a8.18 8.18 0 011.806 2.755c.43 1.061.645 2.222.645 3.484s-.217 2.428-.645 3.484a8.28 8.28 0 01-1.806 2.756c-.773.777-1.691 1.376-2.75 1.805s-2.224.641-3.486.641a9.194 9.194 0 01-1.895-.199c-.644-.13-1.256-.332-1.84-.604s-1.128-.618-1.626-1.04a5.56 5.56 0 01-1.255-1.48h-.068v2.893h-2.146v-27.02zm1.932 18.764c0 .932.177 1.809.538 2.631a6.7 6.7 0 001.464 2.146 7.018 7.018 0 002.182 1.446 6.85 6.85 0 002.715.536c1.003 0 1.907-.179 2.718-.536s1.501-.84 2.071-1.446a6.12 6.12 0 001.306-2.146 7.636 7.636 0 00.447-2.631c0-.926-.148-1.803-.447-2.625s-.733-1.537-1.306-2.147-1.263-1.089-2.071-1.446-1.715-.538-2.718-.538c-.978 0-1.879.178-2.715.538a6.96 6.96 0 00-2.182 1.446 6.725 6.725 0 00-1.464 2.147 6.46 6.46 0 00-.538 2.625zm25.023 13.37c-.405 1.073-.966 1.921-1.681 2.541s-1.668.93-2.858.93a6.71 6.71 0 01-1.072-.093 8.006 8.006 0 01-1.035-.233l.21-2 .951.264a3.64 3.64 0 00.982.127c.379 0 .72-.082 1.017-.251a2.61 2.61 0 00.771-.64c.212-.262.396-.55.554-.881a9.86 9.86 0 00.409-.974l1.504-3.827-6.722-16.59h2.394l5.473 13.907 5.325-13.907h2.289l-8.511 21.627z",
10341
10437
  fill: "#4a4a4a"
10342
10438
  })), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
@@ -10479,11 +10575,11 @@ function LoginModal({
10479
10575
  LoginModal.viewId = "login";
10480
10576
 
10481
10577
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10482
- store: store$e
10578
+ store: store$f
10483
10579
  }, props));
10484
10580
 
10485
10581
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10486
- store: store$e
10582
+ store: store$f
10487
10583
  }, props));
10488
10584
 
10489
10585
  const RegisterButton = ({
@@ -10503,7 +10599,7 @@ const RegisterButton = ({
10503
10599
  buttonDisabled
10504
10600
  },
10505
10601
  dispatch
10506
- } = useContext(store$e);
10602
+ } = useContext(store$f);
10507
10603
  const {
10508
10604
  t
10509
10605
  } = useTranslation("register");
@@ -10641,7 +10737,7 @@ function FirstName({
10641
10737
  }
10642
10738
 
10643
10739
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
10644
- store: store$e
10740
+ store: store$f
10645
10741
  }, props));
10646
10742
 
10647
10743
  function LastName({
@@ -10672,7 +10768,7 @@ function LastName({
10672
10768
  }
10673
10769
 
10674
10770
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
10675
- store: store$e
10771
+ store: store$f
10676
10772
  }, props));
10677
10773
 
10678
10774
  /**
@@ -10796,7 +10892,7 @@ function TextInput({
10796
10892
 
10797
10893
  const RegisterTextInput = props => {
10798
10894
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
10799
- store: store$e
10895
+ store: store$f
10800
10896
  }));
10801
10897
  };
10802
10898
 
@@ -10839,15 +10935,21 @@ function RegisterModal(props) {
10839
10935
  };
10840
10936
 
10841
10937
  const handleAfterRegistrationLogic = () => {
10842
- var _ReactGA$event;
10938
+ var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
10843
10939
 
10844
10940
  ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
10845
10941
  category: "ACTIONS",
10846
10942
  action: "Registered",
10847
10943
  nonInteraction: true
10848
- }); // If product and plan are not selected
10944
+ });
10945
+ const isEmailVerificationEnabled = (_window$Pelcro$site$r = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.email_verify_enabled) !== null && _window$Pelcro$site$r !== void 0 ? _window$Pelcro$site$r : false;
10946
+
10947
+ if (isEmailVerificationEnabled) {
10948
+ return switchView("email-verify");
10949
+ }
10849
10950
 
10850
10951
  if (!product && !order && !giftCode) {
10952
+ // If product and plan are not selected
10851
10953
  return resetView();
10852
10954
  } // If this is a redeem gift
10853
10955
 
@@ -11117,7 +11219,7 @@ class SelectModal extends Component {
11117
11219
 
11118
11220
  const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11119
11221
  const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11120
- const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.find(matchedProduct => matchedProduct.id !== product.id));
11222
+ const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
11121
11223
  return [productsThatMatchArticleTag, allProductsMinusMatched];
11122
11224
  }
11123
11225
  });
@@ -12806,7 +12908,7 @@ class PaypalGateWay {
12806
12908
 
12807
12909
  /** @type {PaymentStateType} */
12808
12910
 
12809
- const initialState$d = {
12911
+ const initialState$e = {
12810
12912
  disableSubmit: false,
12811
12913
  isLoading: false,
12812
12914
  disableCouponButton: false,
@@ -12825,10 +12927,10 @@ const initialState$d = {
12825
12927
  content: ""
12826
12928
  }
12827
12929
  };
12828
- const store$d = /*#__PURE__*/createContext(initialState$d);
12930
+ const store$e = /*#__PURE__*/createContext(initialState$e);
12829
12931
  const {
12830
- Provider: Provider$d
12831
- } = store$d;
12932
+ Provider: Provider$e
12933
+ } = store$e;
12832
12934
 
12833
12935
  const PaymentMethodContainerWithoutStripe = ({
12834
12936
  style,
@@ -13819,21 +13921,21 @@ const PaymentMethodContainerWithoutStripe = ({
13819
13921
  default:
13820
13922
  return state;
13821
13923
  }
13822
- }, initialState$d);
13924
+ }, initialState$e);
13823
13925
  return /*#__PURE__*/React__default.createElement("div", {
13824
13926
  style: { ...style
13825
13927
  },
13826
13928
  className: `pelcro-container pelcro-payment-container ${className}`
13827
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
13929
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
13828
13930
  value: {
13829
13931
  state,
13830
13932
  dispatch
13831
13933
  }
13832
13934
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
13833
- store: store$d,
13935
+ store: store$e,
13834
13936
  key: i
13835
13937
  })) : /*#__PURE__*/React__default.cloneElement(children, {
13836
- store: store$d
13938
+ store: store$e
13837
13939
  })));
13838
13940
  };
13839
13941
 
@@ -13855,7 +13957,7 @@ const PaymentMethodContainer = props => {
13855
13957
  stripeAccount: window.Pelcro.site.read().account_id,
13856
13958
  locale: getPageOrDefaultLanguage()
13857
13959
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
13858
- store: store$d
13960
+ store: store$e
13859
13961
  }, props))));
13860
13962
  }
13861
13963
 
@@ -13908,7 +14010,7 @@ const PelcroPaymentRequestButton = props => {
13908
14010
  currentPlan,
13909
14011
  updatedPrice
13910
14012
  }
13911
- } = useContext(store$d);
14013
+ } = useContext(store$e);
13912
14014
 
13913
14015
  const updatePaymentRequest = () => {
13914
14016
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -13968,7 +14070,7 @@ const DiscountedPrice = props => {
13968
14070
  taxAmount,
13969
14071
  percentOff
13970
14072
  }
13971
- } = useContext(store$d);
14073
+ } = useContext(store$e);
13972
14074
  const {
13973
14075
  order,
13974
14076
  plan
@@ -14018,7 +14120,7 @@ const SubmitPaymentMethod = ({
14018
14120
  isLoading,
14019
14121
  updatedPrice
14020
14122
  }
14021
- } = useContext(store$d);
14123
+ } = useContext(store$e);
14022
14124
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
14023
14125
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
14024
14126
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -14039,17 +14141,17 @@ const SubmitPaymentMethod = ({
14039
14141
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
14040
14142
  };
14041
14143
 
14042
- var _path$k;
14144
+ var _path$l;
14043
14145
 
14044
- 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); }
14146
+ 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); }
14045
14147
 
14046
14148
  function SvgArrowLeft(props) {
14047
- return /*#__PURE__*/React.createElement("svg", _extends$m({
14149
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
14048
14150
  xmlns: "http://www.w3.org/2000/svg",
14049
14151
  fill: "none",
14050
14152
  viewBox: "0 0 24 24",
14051
14153
  stroke: "currentColor"
14052
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
14154
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
14053
14155
  strokeLinecap: "round",
14054
14156
  strokeLinejoin: "round",
14055
14157
  strokeWidth: 2,
@@ -14068,7 +14170,7 @@ const ApplyCouponButton = ({
14068
14170
  disableCouponButton
14069
14171
  },
14070
14172
  dispatch
14071
- } = useContext(store$d);
14173
+ } = useContext(store$e);
14072
14174
  const {
14073
14175
  t
14074
14176
  } = useTranslation("checkoutForm");
@@ -14102,7 +14204,7 @@ const CouponCodeField = props => {
14102
14204
  couponCode,
14103
14205
  couponError
14104
14206
  }
14105
- } = useContext(store$d);
14207
+ } = useContext(store$e);
14106
14208
 
14107
14209
  const onCouponCodeChange = e => {
14108
14210
  dispatch({
@@ -14131,17 +14233,17 @@ const CouponCodeField = props => {
14131
14233
  }, props));
14132
14234
  };
14133
14235
 
14134
- var _path$j;
14236
+ var _path$k;
14135
14237
 
14136
- 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); }
14238
+ 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); }
14137
14239
 
14138
14240
  function SvgTicket(props) {
14139
- return /*#__PURE__*/React.createElement("svg", _extends$l({
14241
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
14140
14242
  xmlns: "http://www.w3.org/2000/svg",
14141
14243
  fill: "none",
14142
14244
  viewBox: "0 0 24 24",
14143
14245
  stroke: "currentColor"
14144
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
14246
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
14145
14247
  strokeLinecap: "round",
14146
14248
  strokeLinejoin: "round",
14147
14249
  strokeWidth: 2,
@@ -14158,7 +14260,7 @@ const CouponCode = ({
14158
14260
  state: {
14159
14261
  enableCouponField
14160
14262
  }
14161
- } = useContext(store$d);
14263
+ } = useContext(store$e);
14162
14264
  const {
14163
14265
  t
14164
14266
  } = useTranslation("checkoutForm");
@@ -14415,7 +14517,7 @@ const PaypalSubscribeButton = props => {
14415
14517
  const {
14416
14518
  dispatch,
14417
14519
  state
14418
- } = useContext(store$d);
14520
+ } = useContext(store$e);
14419
14521
  const {
14420
14522
  product,
14421
14523
  plan,
@@ -14500,16 +14602,16 @@ const BankRedirection = () => {
14500
14602
  }));
14501
14603
  };
14502
14604
 
14503
- var _path$i;
14605
+ var _path$j;
14504
14606
 
14505
- 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); }
14607
+ 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); }
14506
14608
 
14507
14609
  function SvgLock(props) {
14508
- return /*#__PURE__*/React.createElement("svg", _extends$k({
14610
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
14509
14611
  xmlns: "http://www.w3.org/2000/svg",
14510
14612
  viewBox: "0 0 20 20",
14511
14613
  fill: "currentColor"
14512
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
14614
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
14513
14615
  fillRule: "evenodd",
14514
14616
  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",
14515
14617
  clipRule: "evenodd"
@@ -14526,7 +14628,7 @@ const SelectedPaymentMethod = () => {
14526
14628
  state: {
14527
14629
  isLoading
14528
14630
  }
14529
- } = useContext(store$d);
14631
+ } = useContext(store$e);
14530
14632
  const {
14531
14633
  switchView,
14532
14634
  selectedPaymentMethodId
@@ -14568,7 +14670,7 @@ const TaxAmount = () => {
14568
14670
  state: {
14569
14671
  taxAmount
14570
14672
  }
14571
- } = useContext(store$d);
14673
+ } = useContext(store$e);
14572
14674
  const {
14573
14675
  plan
14574
14676
  } = usePelcro();
@@ -14731,12 +14833,12 @@ function SubscriptionRenewModal({
14731
14833
  }
14732
14834
  SubscriptionRenewModal.viewId = "subscription-renew";
14733
14835
 
14734
- var _path$h;
14836
+ var _path$i;
14735
14837
 
14736
- 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); }
14838
+ 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); }
14737
14839
 
14738
14840
  function SvgGift(props) {
14739
- return /*#__PURE__*/React.createElement("svg", _extends$j({
14841
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
14740
14842
  className: "plc-w-6 plc-h-6 plc-mr-2",
14741
14843
  fill: "none",
14742
14844
  stroke: "currentColor",
@@ -14745,7 +14847,7 @@ function SvgGift(props) {
14745
14847
  strokeWidth: 2,
14746
14848
  viewBox: "0 0 24 24",
14747
14849
  xmlns: "http://www.w3.org/2000/svg"
14748
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
14850
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
14749
14851
  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"
14750
14852
  })));
14751
14853
  }
@@ -15076,7 +15178,7 @@ class DefaultNewsLetter extends Component {
15076
15178
 
15077
15179
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
15078
15180
 
15079
- const initialState$c = {
15181
+ const initialState$d = {
15080
15182
  didSubToNewslettersBefore: false,
15081
15183
  newsletters: [],
15082
15184
  isListLoading: true,
@@ -15086,10 +15188,10 @@ const initialState$c = {
15086
15188
  content: ""
15087
15189
  }
15088
15190
  };
15089
- const store$c = /*#__PURE__*/createContext(initialState$c);
15191
+ const store$d = /*#__PURE__*/createContext(initialState$d);
15090
15192
  const {
15091
- Provider: Provider$c
15092
- } = store$c;
15193
+ Provider: Provider$d
15194
+ } = store$d;
15093
15195
 
15094
15196
  const NewsletterUpdateContainer = ({
15095
15197
  style,
@@ -15202,7 +15304,7 @@ const NewsletterUpdateContainer = ({
15202
15304
  default:
15203
15305
  return state;
15204
15306
  }
15205
- }, initialState$c);
15307
+ }, initialState$d);
15206
15308
  useEffect(() => {
15207
15309
  const getUserNewsletters = () => {
15208
15310
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -15246,7 +15348,7 @@ const NewsletterUpdateContainer = ({
15246
15348
  style: { ...style
15247
15349
  },
15248
15350
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
15249
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
15351
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
15250
15352
  value: {
15251
15353
  state,
15252
15354
  dispatch
@@ -15254,12 +15356,12 @@ const NewsletterUpdateContainer = ({
15254
15356
  }, children.length ? children.map((child, i) => {
15255
15357
  if (child) {
15256
15358
  return /*#__PURE__*/React__default.cloneElement(child, {
15257
- store: store$c,
15359
+ store: store$d,
15258
15360
  key: i
15259
15361
  });
15260
15362
  }
15261
15363
  }) : /*#__PURE__*/React__default.cloneElement(children, {
15262
- store: store$c
15364
+ store: store$d
15263
15365
  })));
15264
15366
  };
15265
15367
 
@@ -15274,7 +15376,7 @@ const NewsletterUpdateButton = ({
15274
15376
  isSubmitting,
15275
15377
  isListLoading
15276
15378
  }
15277
- } = useContext(store$c);
15379
+ } = useContext(store$d);
15278
15380
  const {
15279
15381
  t
15280
15382
  } = useTranslation("newsletter");
@@ -15304,7 +15406,7 @@ const NewsletterUpdateList = () => {
15304
15406
  newsletters,
15305
15407
  isListLoading
15306
15408
  }
15307
- } = useContext(store$c);
15409
+ } = useContext(store$d);
15308
15410
 
15309
15411
  if (isListLoading) {
15310
15412
  return /*#__PURE__*/React__default.createElement(Loader, {
@@ -15508,7 +15610,7 @@ function SubscriptionCreateModal({
15508
15610
  SubscriptionCreateModal.viewId = "subscription-create";
15509
15611
 
15510
15612
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
15511
- const initialState$b = {
15613
+ const initialState$c = {
15512
15614
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
15513
15615
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
15514
15616
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -15521,10 +15623,10 @@ const initialState$b = {
15521
15623
  content: ""
15522
15624
  }
15523
15625
  };
15524
- const store$b = /*#__PURE__*/createContext(initialState$b);
15626
+ const store$c = /*#__PURE__*/createContext(initialState$c);
15525
15627
  const {
15526
- Provider: Provider$b
15527
- } = store$b;
15628
+ Provider: Provider$c
15629
+ } = store$c;
15528
15630
 
15529
15631
  const UserUpdateContainer = ({
15530
15632
  style,
@@ -15656,27 +15758,27 @@ const UserUpdateContainer = ({
15656
15758
  default:
15657
15759
  return state;
15658
15760
  }
15659
- }, initialState$b);
15761
+ }, initialState$c);
15660
15762
  return /*#__PURE__*/React__default.createElement("div", {
15661
15763
  style: { ...style
15662
15764
  },
15663
15765
  className: `pelcro-container pelcro-user-update-container ${className}`
15664
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
15766
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
15665
15767
  value: {
15666
15768
  state,
15667
15769
  dispatch
15668
15770
  }
15669
15771
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
15670
- store: store$b,
15772
+ store: store$c,
15671
15773
  key: i
15672
15774
  })) : /*#__PURE__*/React__default.cloneElement(children, {
15673
- store: store$b
15775
+ store: store$c
15674
15776
  })));
15675
15777
  };
15676
15778
 
15677
15779
  const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
15678
15780
  disabled: true,
15679
- store: store$b
15781
+ store: store$c
15680
15782
  }, props));
15681
15783
 
15682
15784
  const UserUpdateButton = ({
@@ -15689,7 +15791,7 @@ const UserUpdateButton = ({
15689
15791
  buttonDisabled
15690
15792
  },
15691
15793
  dispatch
15692
- } = useContext(store$b);
15794
+ } = useContext(store$c);
15693
15795
  const {
15694
15796
  t
15695
15797
  } = useTranslation("userEdit");
@@ -15706,11 +15808,11 @@ const UserUpdateButton = ({
15706
15808
  };
15707
15809
 
15708
15810
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
15709
- store: store$b
15811
+ store: store$c
15710
15812
  }, props));
15711
15813
 
15712
15814
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
15713
- store: store$b
15815
+ store: store$c
15714
15816
  }, props));
15715
15817
 
15716
15818
  function Phone({
@@ -15739,22 +15841,22 @@ function Phone({
15739
15841
  }
15740
15842
 
15741
15843
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
15742
- store: store$b
15844
+ store: store$c
15743
15845
  }, props));
15744
15846
 
15745
15847
  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";
15746
15848
 
15747
- var _path$g;
15849
+ var _path$h;
15748
15850
 
15749
- 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); }
15851
+ 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); }
15750
15852
 
15751
15853
  function SvgEdit(props) {
15752
- return /*#__PURE__*/React.createElement("svg", _extends$i({
15854
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
15753
15855
  className: "plc-w-6 plc-h-6",
15754
15856
  xmlns: "http://www.w3.org/2000/svg",
15755
15857
  viewBox: "0 0 20 20",
15756
15858
  fill: "currentColor"
15757
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
15859
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
15758
15860
  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"
15759
15861
  })));
15760
15862
  }
@@ -15886,16 +15988,16 @@ function DisplayName({
15886
15988
  }
15887
15989
 
15888
15990
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
15889
- store: store$b
15991
+ store: store$c
15890
15992
  }, props));
15891
15993
 
15892
15994
  const UserUpdateTextInput = props => {
15893
15995
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
15894
- store: store$b
15996
+ store: store$c
15895
15997
  }));
15896
15998
  };
15897
15999
 
15898
- const initialState$a = {
16000
+ const initialState$b = {
15899
16001
  isSubmitting: false,
15900
16002
  firstName: "",
15901
16003
  firstNameError: "",
@@ -15920,10 +16022,10 @@ const initialState$a = {
15920
16022
  content: ""
15921
16023
  }
15922
16024
  };
15923
- const store$a = /*#__PURE__*/createContext(initialState$a);
16025
+ const store$b = /*#__PURE__*/createContext(initialState$b);
15924
16026
  const {
15925
- Provider: Provider$a
15926
- } = store$a;
16027
+ Provider: Provider$b
16028
+ } = store$b;
15927
16029
 
15928
16030
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
15929
16031
 
@@ -16130,7 +16232,7 @@ const AddressCreateContainer = ({
16130
16232
  default:
16131
16233
  return state;
16132
16234
  }
16133
- }, initialState$a);
16235
+ }, initialState$b);
16134
16236
  useEffect(() => {
16135
16237
  const getStates = () => {
16136
16238
  dispatch({
@@ -16162,16 +16264,16 @@ const AddressCreateContainer = ({
16162
16264
  style: { ...style
16163
16265
  },
16164
16266
  className: `pelcro-container pelcro-address-create-container ${className}`
16165
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
16267
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
16166
16268
  value: {
16167
16269
  state,
16168
16270
  dispatch
16169
16271
  }
16170
16272
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16171
- store: store$a,
16273
+ store: store$b,
16172
16274
  key: i
16173
16275
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16174
- store: store$a
16276
+ store: store$b
16175
16277
  })));
16176
16278
  };
16177
16279
 
@@ -16182,7 +16284,7 @@ function AddressCreateFirstName(props) {
16182
16284
  firstName,
16183
16285
  firstNameError
16184
16286
  }
16185
- } = useContext(store$a);
16287
+ } = useContext(store$b);
16186
16288
 
16187
16289
  const handleBlur = () => {
16188
16290
  return dispatch({
@@ -16225,7 +16327,7 @@ function AddressCreateLastName(props) {
16225
16327
  lastName,
16226
16328
  lastNameError
16227
16329
  }
16228
- } = useContext(store$a);
16330
+ } = useContext(store$b);
16229
16331
 
16230
16332
  const handleBlur = () => {
16231
16333
  return dispatch({
@@ -16268,7 +16370,7 @@ function AddressCreateLine1(props) {
16268
16370
  line1,
16269
16371
  line1Error
16270
16372
  }
16271
- } = useContext(store$a);
16373
+ } = useContext(store$b);
16272
16374
 
16273
16375
  const handleBlur = () => {
16274
16376
  return dispatch({
@@ -16311,7 +16413,7 @@ function AddressCreateCity(props) {
16311
16413
  city,
16312
16414
  cityError
16313
16415
  }
16314
- } = useContext(store$a);
16416
+ } = useContext(store$b);
16315
16417
 
16316
16418
  const handleBlur = () => {
16317
16419
  return dispatch({
@@ -16354,7 +16456,7 @@ function AddressCreatePostalCode(props) {
16354
16456
  postalCode,
16355
16457
  postalCodeError
16356
16458
  }
16357
- } = useContext(store$a);
16459
+ } = useContext(store$b);
16358
16460
 
16359
16461
  const handleBlur = () => {
16360
16462
  return dispatch({
@@ -16400,7 +16502,7 @@ const AddressCreateSubmit = ({
16400
16502
  state: {
16401
16503
  isSubmitting
16402
16504
  }
16403
- } = useContext(store$a);
16505
+ } = useContext(store$b);
16404
16506
  const {
16405
16507
  t
16406
16508
  } = useTranslation("address");
@@ -16511,7 +16613,7 @@ function CountrySelect({
16511
16613
  }
16512
16614
 
16513
16615
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
16514
- store: store$a
16616
+ store: store$b
16515
16617
  }, props));
16516
16618
 
16517
16619
  function StateSelect({
@@ -16599,7 +16701,7 @@ function StateSelect({
16599
16701
  }
16600
16702
 
16601
16703
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
16602
- store: store$a
16704
+ store: store$b
16603
16705
  }, props));
16604
16706
 
16605
16707
  const AddressCreateView = props => {
@@ -16704,18 +16806,18 @@ AddressCreateModal.viewId = "address-create";
16704
16806
 
16705
16807
  const AddressCreateTextInput = props => {
16706
16808
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
16707
- store: store$a
16809
+ store: store$b
16708
16810
  }));
16709
16811
  };
16710
16812
 
16711
16813
  const AddressCreateLine2 = props => {
16712
16814
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
16713
16815
  fieldName: "line2",
16714
- store: store$a
16816
+ store: store$b
16715
16817
  }, props));
16716
16818
  };
16717
16819
 
16718
- const initialState$9 = {
16820
+ const initialState$a = {
16719
16821
  isSubmitting: false,
16720
16822
  firstName: "",
16721
16823
  firstNameError: "",
@@ -16740,10 +16842,10 @@ const initialState$9 = {
16740
16842
  content: ""
16741
16843
  }
16742
16844
  };
16743
- const store$9 = /*#__PURE__*/createContext(initialState$9);
16845
+ const store$a = /*#__PURE__*/createContext(initialState$a);
16744
16846
  const {
16745
- Provider: Provider$9
16746
- } = store$9;
16847
+ Provider: Provider$a
16848
+ } = store$a;
16747
16849
 
16748
16850
  const AddressUpdateContainer = ({
16749
16851
  style,
@@ -16795,7 +16897,7 @@ const AddressUpdateContainer = ({
16795
16897
  const thisAddress = addresses[address];
16796
16898
 
16797
16899
  if (+thisAddress.id === +addressId) {
16798
- const newState = { ...initialState$9,
16900
+ const newState = { ...initialState$a,
16799
16901
  firstName: thisAddress.first_name,
16800
16902
  lastName: thisAddress.last_name,
16801
16903
  line1: thisAddress.line1,
@@ -16928,7 +17030,7 @@ const AddressUpdateContainer = ({
16928
17030
  default:
16929
17031
  return state;
16930
17032
  }
16931
- }, initialState$9);
17033
+ }, initialState$a);
16932
17034
  useEffect(() => {
16933
17035
  const getStates = () => {
16934
17036
  dispatch({
@@ -16960,21 +17062,21 @@ const AddressUpdateContainer = ({
16960
17062
  style: { ...style
16961
17063
  },
16962
17064
  className: `pelcro-container pelcro-address-update-container ${className}`
16963
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
17065
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
16964
17066
  value: {
16965
17067
  state,
16966
17068
  dispatch
16967
17069
  }
16968
17070
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16969
- store: store$9,
17071
+ store: store$a,
16970
17072
  key: i
16971
17073
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16972
- store: store$9
17074
+ store: store$a
16973
17075
  })));
16974
17076
  };
16975
17077
 
16976
17078
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
16977
- store: store$9
17079
+ store: store$a
16978
17080
  }, props));
16979
17081
 
16980
17082
  function AddressUpdateFirstName(props) {
@@ -16984,7 +17086,7 @@ function AddressUpdateFirstName(props) {
16984
17086
  firstName,
16985
17087
  firstNameError
16986
17088
  }
16987
- } = useContext(store$9);
17089
+ } = useContext(store$a);
16988
17090
 
16989
17091
  const handleBlur = () => {
16990
17092
  return dispatch({
@@ -17027,7 +17129,7 @@ function AddressUpdateLastName(props) {
17027
17129
  lastName,
17028
17130
  lastNameError
17029
17131
  }
17030
- } = useContext(store$9);
17132
+ } = useContext(store$a);
17031
17133
 
17032
17134
  const handleBlur = () => {
17033
17135
  return dispatch({
@@ -17070,7 +17172,7 @@ function AddressUpdateLine1(props) {
17070
17172
  line1,
17071
17173
  line1Error
17072
17174
  }
17073
- } = useContext(store$9);
17175
+ } = useContext(store$a);
17074
17176
 
17075
17177
  const handleBlur = () => {
17076
17178
  return dispatch({
@@ -17110,7 +17212,7 @@ const AddressUpdateLine2 = props => {
17110
17212
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17111
17213
  fieldName: "line2"
17112
17214
  }, props, {
17113
- store: store$9
17215
+ store: store$a
17114
17216
  }));
17115
17217
  };
17116
17218
 
@@ -17121,7 +17223,7 @@ function AddressUpdateCity(props) {
17121
17223
  city,
17122
17224
  cityError
17123
17225
  }
17124
- } = useContext(store$9);
17226
+ } = useContext(store$a);
17125
17227
 
17126
17228
  const handleBlur = () => {
17127
17229
  return dispatch({
@@ -17164,7 +17266,7 @@ function AddressUpdatePostalCode(props) {
17164
17266
  postalCode,
17165
17267
  postalCodeError
17166
17268
  }
17167
- } = useContext(store$9);
17269
+ } = useContext(store$a);
17168
17270
 
17169
17271
  const handleBlur = () => {
17170
17272
  return dispatch({
@@ -17210,7 +17312,7 @@ const AddressUpdateSubmit = ({
17210
17312
  state: {
17211
17313
  isSubmitting
17212
17314
  }
17213
- } = useContext(store$9);
17315
+ } = useContext(store$a);
17214
17316
  const {
17215
17317
  t
17216
17318
  } = useTranslation("address");
@@ -17226,7 +17328,7 @@ const AddressUpdateSubmit = ({
17226
17328
  };
17227
17329
 
17228
17330
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17229
- store: store$9
17331
+ store: store$a
17230
17332
  }, props));
17231
17333
 
17232
17334
  const AddressUpdateView = props => {
@@ -17309,7 +17411,7 @@ AddressUpdateModal.viewId = "address-edit";
17309
17411
 
17310
17412
  const AddressUpdateTextInput = props => {
17311
17413
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17312
- store: store$9
17414
+ store: store$a
17313
17415
  }));
17314
17416
  };
17315
17417
 
@@ -17392,7 +17494,7 @@ const PaymentMethodUpdateModal = props => {
17392
17494
  };
17393
17495
  PaymentMethodUpdateModal.viewId = "payment-method-update";
17394
17496
 
17395
- const initialState$8 = {
17497
+ const initialState$9 = {
17396
17498
  email: "",
17397
17499
  password: "",
17398
17500
  passwordError: null,
@@ -17405,10 +17507,10 @@ const initialState$8 = {
17405
17507
  content: ""
17406
17508
  }
17407
17509
  };
17408
- const store$8 = /*#__PURE__*/createContext(initialState$8);
17510
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
17409
17511
  const {
17410
- Provider: Provider$8
17411
- } = store$8;
17512
+ Provider: Provider$9
17513
+ } = store$9;
17412
17514
 
17413
17515
  const PasswordResetContainer = ({
17414
17516
  style,
@@ -17465,7 +17567,7 @@ const PasswordResetContainer = ({
17465
17567
  type: SET_EMAIL,
17466
17568
  payload: window.Pelcro.helpers.getURLParameter("email")
17467
17569
  });
17468
- initialState$8.email = window.Pelcro.helpers.getURLParameter("email");
17570
+ initialState$9.email = window.Pelcro.helpers.getURLParameter("email");
17469
17571
  dispatch({
17470
17572
  type: SET_TOKEN,
17471
17573
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -17525,26 +17627,26 @@ const PasswordResetContainer = ({
17525
17627
  default:
17526
17628
  return state;
17527
17629
  }
17528
- }, initialState$8);
17630
+ }, initialState$9);
17529
17631
  return /*#__PURE__*/React__default.createElement("div", {
17530
17632
  style: { ...style
17531
17633
  },
17532
17634
  className: `pelcro-container pelcro-password-reset-container ${className}`
17533
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
17635
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
17534
17636
  value: {
17535
17637
  state,
17536
17638
  dispatch
17537
17639
  }
17538
17640
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17539
- store: store$8,
17641
+ store: store$9,
17540
17642
  key: i
17541
17643
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17542
- store: store$8
17644
+ store: store$9
17543
17645
  })));
17544
17646
  };
17545
17647
 
17546
17648
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
17547
- store: store$8
17649
+ store: store$9
17548
17650
  }, props));
17549
17651
 
17550
17652
  const PasswordResetButton = ({
@@ -17557,7 +17659,7 @@ const PasswordResetButton = ({
17557
17659
  buttonDisabled
17558
17660
  },
17559
17661
  dispatch
17560
- } = useContext(store$8);
17662
+ } = useContext(store$9);
17561
17663
  const {
17562
17664
  t
17563
17665
  } = useTranslation("passwordReset");
@@ -17574,14 +17676,14 @@ const PasswordResetButton = ({
17574
17676
  };
17575
17677
 
17576
17678
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
17577
- store: store$8
17679
+ store: store$9
17578
17680
  }, props, {
17579
17681
  value: window.Pelcro.helpers.getURLParameter("email"),
17580
17682
  disabled: true
17581
17683
  }));
17582
17684
 
17583
17685
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
17584
- store: store$8
17686
+ store: store$9
17585
17687
  }, props));
17586
17688
 
17587
17689
  const PasswordResetView = props => {
@@ -17633,7 +17735,7 @@ const PasswordResetModal = ({
17633
17735
  };
17634
17736
  PasswordResetModal.viewId = "password-reset";
17635
17737
 
17636
- const initialState$7 = {
17738
+ const initialState$8 = {
17637
17739
  email: "",
17638
17740
  emailError: null,
17639
17741
  buttonDisabled: false,
@@ -17642,10 +17744,10 @@ const initialState$7 = {
17642
17744
  content: ""
17643
17745
  }
17644
17746
  };
17645
- const store$7 = /*#__PURE__*/createContext(initialState$7);
17747
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
17646
17748
  const {
17647
- Provider: Provider$7
17648
- } = store$7;
17749
+ Provider: Provider$8
17750
+ } = store$8;
17649
17751
 
17650
17752
  const PasswordForgotContainer = ({
17651
17753
  style,
@@ -17723,21 +17825,21 @@ const PasswordForgotContainer = ({
17723
17825
  default:
17724
17826
  return state;
17725
17827
  }
17726
- }, initialState$7);
17828
+ }, initialState$8);
17727
17829
  return /*#__PURE__*/React__default.createElement("div", {
17728
17830
  style: { ...style
17729
17831
  },
17730
17832
  className: `pelcro-container pelcro-password-forgot-container ${className}`
17731
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
17833
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
17732
17834
  value: {
17733
17835
  state,
17734
17836
  dispatch
17735
17837
  }
17736
17838
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17737
- store: store$7,
17839
+ store: store$8,
17738
17840
  key: i
17739
17841
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17740
- store: store$7
17842
+ store: store$8
17741
17843
  })));
17742
17844
  };
17743
17845
 
@@ -17753,7 +17855,7 @@ const PasswordForgotButton = ({
17753
17855
  emailError
17754
17856
  },
17755
17857
  dispatch
17756
- } = useContext(store$7);
17858
+ } = useContext(store$8);
17757
17859
  const {
17758
17860
  t
17759
17861
  } = useTranslation("passwordForgot");
@@ -17774,7 +17876,7 @@ const PasswordForgotButton = ({
17774
17876
  };
17775
17877
 
17776
17878
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
17777
- store: store$7
17879
+ store: store$8
17778
17880
  }, props));
17779
17881
 
17780
17882
  const PasswordForgotView = props => {
@@ -17824,7 +17926,7 @@ const PasswordForgotModal = ({
17824
17926
  };
17825
17927
  PasswordForgotModal.viewId = "password-forgot";
17826
17928
 
17827
- const initialState$6 = {
17929
+ const initialState$7 = {
17828
17930
  currentPassword: "",
17829
17931
  newPassword: "",
17830
17932
  confirmNewPassword: "",
@@ -17838,10 +17940,10 @@ const initialState$6 = {
17838
17940
  content: ""
17839
17941
  }
17840
17942
  };
17841
- const store$6 = /*#__PURE__*/createContext(initialState$6);
17943
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
17842
17944
  const {
17843
- Provider: Provider$6
17844
- } = store$6;
17945
+ Provider: Provider$7
17946
+ } = store$7;
17845
17947
  const PasswordChangeContainer = ({
17846
17948
  style,
17847
17949
  className = "",
@@ -17993,21 +18095,21 @@ const PasswordChangeContainer = ({
17993
18095
  default:
17994
18096
  return state;
17995
18097
  }
17996
- }, initialState$6);
18098
+ }, initialState$7);
17997
18099
  return /*#__PURE__*/React__default.createElement("div", {
17998
18100
  style: { ...style
17999
18101
  },
18000
18102
  className: `pelcro-container pelcro-password-change-container ${className}`
18001
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
18103
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
18002
18104
  value: {
18003
18105
  state,
18004
18106
  dispatch
18005
18107
  }
18006
18108
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18007
- store: store$6,
18109
+ store: store$7,
18008
18110
  key: i
18009
18111
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18010
- store: store$6
18112
+ store: store$7
18011
18113
  })));
18012
18114
  };
18013
18115
 
@@ -18018,7 +18120,7 @@ function PasswordChangeCurrentPassword(props) {
18018
18120
  currentPassword,
18019
18121
  currentPasswordError
18020
18122
  }
18021
- } = useContext(store$6);
18123
+ } = useContext(store$7);
18022
18124
  const handleBlur = useCallback(() => {
18023
18125
  return dispatch({
18024
18126
  type: VALIDATE_PASSWORD
@@ -18052,7 +18154,7 @@ function PasswordChangeNewPassword(props) {
18052
18154
  newPassword,
18053
18155
  newPasswordError
18054
18156
  }
18055
- } = useContext(store$6);
18157
+ } = useContext(store$7);
18056
18158
  const handleBlur = useCallback(() => {
18057
18159
  return dispatch({
18058
18160
  type: VALIDATE_NEW_PASSWORD
@@ -18086,7 +18188,7 @@ function PasswordChangeConfirmNewPassword(props) {
18086
18188
  confirmNewPassword,
18087
18189
  confirmNewPasswordError
18088
18190
  }
18089
- } = useContext(store$6);
18191
+ } = useContext(store$7);
18090
18192
  const handleBlur = useCallback(() => {
18091
18193
  return dispatch({
18092
18194
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -18127,7 +18229,7 @@ const PasswordChangeButton = ({
18127
18229
  confirmNewPasswordError
18128
18230
  },
18129
18231
  dispatch
18130
- } = useContext(store$6);
18232
+ } = useContext(store$7);
18131
18233
  const {
18132
18234
  t
18133
18235
  } = useTranslation("passwordChange");
@@ -18193,17 +18295,17 @@ const PasswordChangeModal = ({
18193
18295
  };
18194
18296
  PasswordChangeModal.viewId = "password-change";
18195
18297
 
18196
- const initialState$5 = {
18298
+ const initialState$6 = {
18197
18299
  buttonDisabled: false,
18198
18300
  alert: {
18199
18301
  type: "error",
18200
18302
  content: ""
18201
18303
  }
18202
18304
  };
18203
- const store$5 = /*#__PURE__*/createContext(initialState$5);
18305
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
18204
18306
  const {
18205
- Provider: Provider$5
18206
- } = store$5;
18307
+ Provider: Provider$6
18308
+ } = store$6;
18207
18309
 
18208
18310
  const CartContainer = ({
18209
18311
  style,
@@ -18294,21 +18396,21 @@ const CartContainer = ({
18294
18396
  default:
18295
18397
  return state;
18296
18398
  }
18297
- }, initialState$5);
18399
+ }, initialState$6);
18298
18400
  return /*#__PURE__*/React__default.createElement("div", {
18299
18401
  style: { ...style
18300
18402
  },
18301
18403
  className: `pelcro-container pelcro-cart-container ${className}`
18302
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
18404
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
18303
18405
  value: {
18304
18406
  state,
18305
18407
  dispatch
18306
18408
  }
18307
18409
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18308
- store: store$5,
18410
+ store: store$6,
18309
18411
  key: i
18310
18412
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18311
- store: store$5
18413
+ store: store$6
18312
18414
  })));
18313
18415
  };
18314
18416
 
@@ -18345,7 +18447,7 @@ const CartSubmit = ({
18345
18447
  buttonDisabled
18346
18448
  },
18347
18449
  dispatch
18348
- } = useContext(store$5);
18450
+ } = useContext(store$6);
18349
18451
  const {
18350
18452
  t
18351
18453
  } = useTranslation("cart");
@@ -18376,7 +18478,7 @@ const CartTotalPrice = () => {
18376
18478
  state: {
18377
18479
  alert
18378
18480
  }
18379
- } = useContext(store$5);
18481
+ } = useContext(store$6);
18380
18482
  const {
18381
18483
  cartItems
18382
18484
  } = usePelcro();
@@ -18689,7 +18791,7 @@ const OrderConfirmModal = props => {
18689
18791
  };
18690
18792
  OrderConfirmModal.viewId = "order-confirm";
18691
18793
 
18692
- const initialState$4 = {
18794
+ const initialState$5 = {
18693
18795
  email: "",
18694
18796
  firstName: "",
18695
18797
  lastName: "",
@@ -18701,10 +18803,10 @@ const initialState$4 = {
18701
18803
  content: ""
18702
18804
  }
18703
18805
  };
18704
- const store$4 = /*#__PURE__*/createContext(initialState$4);
18806
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
18705
18807
  const {
18706
- Provider: Provider$4
18707
- } = store$4;
18808
+ Provider: Provider$5
18809
+ } = store$5;
18708
18810
 
18709
18811
  const GiftCreateContainer = ({
18710
18812
  style,
@@ -18808,21 +18910,21 @@ const GiftCreateContainer = ({
18808
18910
  default:
18809
18911
  return state;
18810
18912
  }
18811
- }, initialState$4);
18913
+ }, initialState$5);
18812
18914
  return /*#__PURE__*/React__default.createElement("div", {
18813
18915
  style: { ...style
18814
18916
  },
18815
18917
  className: `pelcro-container pelcro-gift-create-container ${className}`
18816
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
18918
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
18817
18919
  value: {
18818
18920
  state,
18819
18921
  dispatch
18820
18922
  }
18821
18923
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18822
- store: store$4,
18924
+ store: store$5,
18823
18925
  key: i
18824
18926
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18825
- store: store$4
18927
+ store: store$5
18826
18928
  })));
18827
18929
  };
18828
18930
 
@@ -18836,7 +18938,7 @@ const GiftCreateSubmitButton = ({
18836
18938
  state: {
18837
18939
  disableSubmit
18838
18940
  }
18839
- } = useContext(store$4);
18941
+ } = useContext(store$5);
18840
18942
  const {
18841
18943
  t
18842
18944
  } = useTranslation("register");
@@ -18853,29 +18955,29 @@ const GiftCreateSubmitButton = ({
18853
18955
 
18854
18956
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18855
18957
  initWithUserEmail: false,
18856
- store: store$4
18958
+ store: store$5
18857
18959
  }, props));
18858
18960
 
18859
18961
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
18860
- store: store$4
18962
+ store: store$5
18861
18963
  }, props));
18862
18964
 
18863
18965
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
18864
- store: store$4
18966
+ store: store$5
18865
18967
  }, props));
18866
18968
 
18867
- var _path$f;
18969
+ var _path$g;
18868
18970
 
18869
- 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); }
18971
+ 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); }
18870
18972
 
18871
18973
  function SvgInfoCircle(props) {
18872
- return /*#__PURE__*/React.createElement("svg", _extends$h({
18974
+ return /*#__PURE__*/React.createElement("svg", _extends$i({
18873
18975
  xmlns: "http://www.w3.org/2000/svg",
18874
18976
  className: "plc-w-5 plc-h-5",
18875
18977
  fill: "none",
18876
18978
  viewBox: "0 0 24 24",
18877
18979
  stroke: "currentColor"
18878
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
18980
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
18879
18981
  strokeLinecap: "round",
18880
18982
  strokeLinejoin: "round",
18881
18983
  strokeWidth: 2,
@@ -18946,7 +19048,7 @@ const GiftCreateStartDate = props => {
18946
19048
  const {
18947
19049
  dispatch,
18948
19050
  state
18949
- } = useContext(store$4);
19051
+ } = useContext(store$5);
18950
19052
 
18951
19053
  const handleInputChange = value => {
18952
19054
  dispatch({
@@ -19017,7 +19119,7 @@ function GiftCreateMessage(props) {
19017
19119
  const {
19018
19120
  dispatch,
19019
19121
  state
19020
- } = useContext(store$4);
19122
+ } = useContext(store$5);
19021
19123
 
19022
19124
  const handleInputChange = value => {
19023
19125
  dispatch({
@@ -19137,7 +19239,7 @@ const GiftCreateModal = ({
19137
19239
  };
19138
19240
  GiftCreateModal.viewId = "gift-create";
19139
19241
 
19140
- const initialState$3 = {
19242
+ const initialState$4 = {
19141
19243
  giftCode: "",
19142
19244
  buttonDisabled: true,
19143
19245
  alert: {
@@ -19145,10 +19247,10 @@ const initialState$3 = {
19145
19247
  content: ""
19146
19248
  }
19147
19249
  };
19148
- const store$3 = /*#__PURE__*/createContext(initialState$3);
19250
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
19149
19251
  const {
19150
- Provider: Provider$3
19151
- } = store$3;
19252
+ Provider: Provider$4
19253
+ } = store$4;
19152
19254
 
19153
19255
  const GiftRedeemContainer = ({
19154
19256
  style,
@@ -19213,21 +19315,21 @@ const GiftRedeemContainer = ({
19213
19315
  default:
19214
19316
  return state;
19215
19317
  }
19216
- }, initialState$3);
19318
+ }, initialState$4);
19217
19319
  return /*#__PURE__*/React__default.createElement("div", {
19218
19320
  style: { ...style
19219
19321
  },
19220
19322
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
19221
- }, /*#__PURE__*/React__default.createElement(Provider$3, {
19323
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
19222
19324
  value: {
19223
19325
  state,
19224
19326
  dispatch
19225
19327
  }
19226
19328
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19227
- store: store$3,
19329
+ store: store$4,
19228
19330
  key: i
19229
19331
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19230
- store: store$3
19332
+ store: store$4
19231
19333
  })));
19232
19334
  };
19233
19335
 
@@ -19264,7 +19366,7 @@ function GiftCode({
19264
19366
  }
19265
19367
 
19266
19368
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
19267
- store: store$3
19369
+ store: store$4
19268
19370
  }, props));
19269
19371
 
19270
19372
  const GiftRedeemSubmitButton = ({
@@ -19277,7 +19379,7 @@ const GiftRedeemSubmitButton = ({
19277
19379
  state: {
19278
19380
  disableSubmit
19279
19381
  }
19280
- } = useContext(store$3);
19382
+ } = useContext(store$4);
19281
19383
  const {
19282
19384
  t
19283
19385
  } = useTranslation("register");
@@ -19370,7 +19472,7 @@ const moveDefaultAddressToStart = addresses => {
19370
19472
  return [defaultAddress, ...addressesWithoutDefault];
19371
19473
  };
19372
19474
 
19373
- const initialState$2 = {
19475
+ const initialState$3 = {
19374
19476
  addresses: [],
19375
19477
  selectedAddressId: null,
19376
19478
  isSubmitting: false,
@@ -19379,10 +19481,10 @@ const initialState$2 = {
19379
19481
  content: ""
19380
19482
  }
19381
19483
  };
19382
- const store$2 = /*#__PURE__*/createContext(initialState$2);
19484
+ const store$3 = /*#__PURE__*/createContext(initialState$3);
19383
19485
  const {
19384
- Provider: Provider$2
19385
- } = store$2;
19486
+ Provider: Provider$3
19487
+ } = store$3;
19386
19488
 
19387
19489
  const AddressSelectContainer = ({
19388
19490
  style,
@@ -19477,7 +19579,7 @@ const AddressSelectContainer = ({
19477
19579
  default:
19478
19580
  return state;
19479
19581
  }
19480
- }, initialState$2);
19582
+ }, initialState$3);
19481
19583
  useEffect(() => {
19482
19584
  var _window$Pelcro$user$r;
19483
19585
 
@@ -19490,16 +19592,16 @@ const AddressSelectContainer = ({
19490
19592
  style: { ...style
19491
19593
  },
19492
19594
  className: `pelcro-container pelcro-address-select-container ${className}`
19493
- }, /*#__PURE__*/React__default.createElement(Provider$2, {
19595
+ }, /*#__PURE__*/React__default.createElement(Provider$3, {
19494
19596
  value: {
19495
19597
  state,
19496
19598
  dispatch
19497
19599
  }
19498
19600
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19499
- store: store$2,
19601
+ store: store$3,
19500
19602
  key: i
19501
19603
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19502
- store: store$2
19604
+ store: store$3
19503
19605
  })));
19504
19606
  };
19505
19607
 
@@ -19510,7 +19612,7 @@ const AddressSelectList = () => {
19510
19612
  addresses,
19511
19613
  selectedAddressId
19512
19614
  }
19513
- } = useContext(store$2);
19615
+ } = useContext(store$3);
19514
19616
 
19515
19617
  const handleAddressSelect = event => {
19516
19618
  dispatch({
@@ -19554,7 +19656,7 @@ const AddressSelectSubmit = ({
19554
19656
  selectedAddressId,
19555
19657
  isSubmitting
19556
19658
  }
19557
- } = useContext(store$2);
19659
+ } = useContext(store$3);
19558
19660
  const {
19559
19661
  t
19560
19662
  } = useTranslation("address");
@@ -19642,10 +19744,15 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
19642
19744
 
19643
19745
  const defaultPaymentMethod = (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.source;
19644
19746
  const paymentMethodsWithoutDefault = paymentMethods.filter(paymentMethod => paymentMethod.id !== defaultPaymentMethod.id);
19747
+
19748
+ if (defaultPaymentMethod.status !== "chargeable") {
19749
+ return paymentMethodsWithoutDefault;
19750
+ }
19751
+
19645
19752
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
19646
19753
  };
19647
19754
 
19648
- const initialState$1 = {
19755
+ const initialState$2 = {
19649
19756
  paymentMethods: [],
19650
19757
  selectedPaymentMethodId: null,
19651
19758
  isSubmitting: false,
@@ -19654,10 +19761,10 @@ const initialState$1 = {
19654
19761
  content: ""
19655
19762
  }
19656
19763
  };
19657
- const store$1 = /*#__PURE__*/createContext(initialState$1);
19764
+ const store$2 = /*#__PURE__*/createContext(initialState$2);
19658
19765
  const {
19659
- Provider: Provider$1
19660
- } = store$1;
19766
+ Provider: Provider$2
19767
+ } = store$2;
19661
19768
 
19662
19769
  const PaymentMethodSelectContainer = ({
19663
19770
  style,
@@ -19702,7 +19809,7 @@ const PaymentMethodSelectContainer = ({
19702
19809
  default:
19703
19810
  return state;
19704
19811
  }
19705
- }, initialState$1);
19812
+ }, initialState$2);
19706
19813
  useEffect(() => {
19707
19814
  var _window$Pelcro$user$r4;
19708
19815
 
@@ -19715,16 +19822,16 @@ const PaymentMethodSelectContainer = ({
19715
19822
  style: { ...style
19716
19823
  },
19717
19824
  className: `pelcro-container pelcro-payment-select-container ${className}`
19718
- }, /*#__PURE__*/React__default.createElement(Provider$1, {
19825
+ }, /*#__PURE__*/React__default.createElement(Provider$2, {
19719
19826
  value: {
19720
19827
  state,
19721
19828
  dispatch
19722
19829
  }
19723
19830
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19724
- store: store$1,
19831
+ store: store$2,
19725
19832
  key: i
19726
19833
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19727
- store: store$1
19834
+ store: store$2
19728
19835
  })));
19729
19836
  };
19730
19837
 
@@ -19738,7 +19845,7 @@ const PaymentMethodSelectList = () => {
19738
19845
  paymentMethods,
19739
19846
  selectedPaymentMethodId
19740
19847
  }
19741
- } = useContext(store$1);
19848
+ } = useContext(store$2);
19742
19849
 
19743
19850
  const handlePaymentMethodSelect = event => {
19744
19851
  dispatch({
@@ -19788,7 +19895,7 @@ const PaymentMethodSelectSubmit = ({
19788
19895
  selectedPaymentMethodId,
19789
19896
  isSubmitting
19790
19897
  }
19791
- } = useContext(store$1);
19898
+ } = useContext(store$2);
19792
19899
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
19793
19900
  onClick: () => {
19794
19901
  dispatch({
@@ -19862,8 +19969,8 @@ const PaymentMethodSelectModal = ({
19862
19969
  };
19863
19970
  PaymentMethodSelectModal.viewId = "payment-method-select";
19864
19971
 
19865
- function _extends$g() {
19866
- _extends$g = Object.assign || function (target) {
19972
+ function _extends$h() {
19973
+ _extends$h = Object.assign || function (target) {
19867
19974
  for (var i = 1; i < arguments.length; i++) {
19868
19975
  var source = arguments[i];
19869
19976
 
@@ -19877,7 +19984,7 @@ function _extends$g() {
19877
19984
  return target;
19878
19985
  };
19879
19986
 
19880
- return _extends$g.apply(this, arguments);
19987
+ return _extends$h.apply(this, arguments);
19881
19988
  }
19882
19989
 
19883
19990
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -20061,7 +20168,7 @@ function render(props, propsBag, defaultTag, features, visible) {
20061
20168
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
20062
20169
  return null;
20063
20170
  }, _match[RenderStrategy.Hidden] = function () {
20064
- return _render(_extends$g({}, _rest, {
20171
+ return _render(_extends$h({}, _rest, {
20065
20172
  hidden: true,
20066
20173
  style: {
20067
20174
  display: 'none'
@@ -20589,7 +20696,7 @@ function TransitionChild(props) {
20589
20696
  var passthroughProps = rest;
20590
20697
  return React__default.createElement(NestingContext.Provider, {
20591
20698
  value: nesting
20592
- }, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20699
+ }, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20593
20700
  }
20594
20701
 
20595
20702
  function Transition(props) {
@@ -20633,7 +20740,7 @@ function Transition(props) {
20633
20740
  value: nestingBag
20634
20741
  }, React__default.createElement(TransitionContext.Provider, {
20635
20742
  value: transitionBag
20636
- }, render(_extends$g({}, sharedProps, {
20743
+ }, render(_extends$h({}, sharedProps, {
20637
20744
  as: Fragment,
20638
20745
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
20639
20746
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -20760,12 +20867,12 @@ var ActionTypes;
20760
20867
  })(ActionTypes || (ActionTypes = {}));
20761
20868
 
20762
20869
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
20763
- return _extends$g({}, state, {
20870
+ return _extends$h({}, state, {
20764
20871
  activeItemIndex: null,
20765
20872
  menuState: MenuStates.Closed
20766
20873
  });
20767
20874
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
20768
- return _extends$g({}, state, {
20875
+ return _extends$h({}, state, {
20769
20876
  menuState: MenuStates.Open
20770
20877
  });
20771
20878
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -20784,7 +20891,7 @@ var ActionTypes;
20784
20891
  }
20785
20892
  });
20786
20893
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
20787
- return _extends$g({}, state, {
20894
+ return _extends$h({}, state, {
20788
20895
  searchQuery: '',
20789
20896
  activeItemIndex: activeItemIndex
20790
20897
  });
@@ -20795,19 +20902,19 @@ var ActionTypes;
20795
20902
 
20796
20903
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
20797
20904
  });
20798
- if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
20905
+ if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
20799
20906
  searchQuery: searchQuery
20800
20907
  });
20801
- return _extends$g({}, state, {
20908
+ return _extends$h({}, state, {
20802
20909
  searchQuery: searchQuery,
20803
20910
  activeItemIndex: match
20804
20911
  });
20805
20912
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
20806
- return _extends$g({}, state, {
20913
+ return _extends$h({}, state, {
20807
20914
  searchQuery: ''
20808
20915
  });
20809
20916
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
20810
- return _extends$g({}, state, {
20917
+ return _extends$h({}, state, {
20811
20918
  items: [].concat(state.items, [{
20812
20919
  id: action.id,
20813
20920
  dataRef: action.dataRef
@@ -20820,7 +20927,7 @@ var ActionTypes;
20820
20927
  return a.id === action.id;
20821
20928
  });
20822
20929
  if (idx !== -1) nextItems.splice(idx, 1);
20823
- return _extends$g({}, state, {
20930
+ return _extends$h({}, state, {
20824
20931
  items: nextItems,
20825
20932
  activeItemIndex: function () {
20826
20933
  if (idx === state.activeItemIndex) return null;
@@ -20859,19 +20966,19 @@ var ActionTypes$1;
20859
20966
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
20860
20967
  if (state.disabled) return state;
20861
20968
  if (state.listboxState === ListboxStates.Closed) return state;
20862
- return _extends$g({}, state, {
20969
+ return _extends$h({}, state, {
20863
20970
  activeOptionIndex: null,
20864
20971
  listboxState: ListboxStates.Closed
20865
20972
  });
20866
20973
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
20867
20974
  if (state.disabled) return state;
20868
20975
  if (state.listboxState === ListboxStates.Open) return state;
20869
- return _extends$g({}, state, {
20976
+ return _extends$h({}, state, {
20870
20977
  listboxState: ListboxStates.Open
20871
20978
  });
20872
20979
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
20873
20980
  if (state.disabled === action.disabled) return state;
20874
- return _extends$g({}, state, {
20981
+ return _extends$h({}, state, {
20875
20982
  disabled: action.disabled
20876
20983
  });
20877
20984
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -20892,7 +20999,7 @@ var ActionTypes$1;
20892
20999
  }
20893
21000
  });
20894
21001
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
20895
- return _extends$g({}, state, {
21002
+ return _extends$h({}, state, {
20896
21003
  searchQuery: '',
20897
21004
  activeOptionIndex: activeOptionIndex
20898
21005
  });
@@ -20905,10 +21012,10 @@ var ActionTypes$1;
20905
21012
 
20906
21013
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
20907
21014
  });
20908
- if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
21015
+ if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
20909
21016
  searchQuery: searchQuery
20910
21017
  });
20911
- return _extends$g({}, state, {
21018
+ return _extends$h({}, state, {
20912
21019
  searchQuery: searchQuery,
20913
21020
  activeOptionIndex: match
20914
21021
  });
@@ -20916,11 +21023,11 @@ var ActionTypes$1;
20916
21023
  if (state.disabled) return state;
20917
21024
  if (state.listboxState === ListboxStates.Closed) return state;
20918
21025
  if (state.searchQuery === '') return state;
20919
- return _extends$g({}, state, {
21026
+ return _extends$h({}, state, {
20920
21027
  searchQuery: ''
20921
21028
  });
20922
21029
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
20923
- return _extends$g({}, state, {
21030
+ return _extends$h({}, state, {
20924
21031
  options: [].concat(state.options, [{
20925
21032
  id: action.id,
20926
21033
  dataRef: action.dataRef
@@ -20933,7 +21040,7 @@ var ActionTypes$1;
20933
21040
  return a.id === action.id;
20934
21041
  });
20935
21042
  if (idx !== -1) nextOptions.splice(idx, 1);
20936
- return _extends$g({}, state, {
21043
+ return _extends$h({}, state, {
20937
21044
  options: nextOptions,
20938
21045
  activeOptionIndex: function () {
20939
21046
  if (idx === state.activeOptionIndex) return null;
@@ -20994,18 +21101,18 @@ const getPaymentCardIcon = name => {
20994
21101
  }));
20995
21102
  };
20996
21103
 
20997
- var _path$e;
21104
+ var _path$f;
20998
21105
 
20999
- 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); }
21106
+ 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); }
21000
21107
 
21001
21108
  function SvgChevronRight(props) {
21002
- return /*#__PURE__*/React.createElement("svg", _extends$f({
21109
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
21003
21110
  className: "plc-w-6 plc-h-6",
21004
21111
  xmlns: "http://www.w3.org/2000/svg",
21005
21112
  fill: "none",
21006
21113
  viewBox: "0 0 24 24",
21007
21114
  stroke: "currentColor"
21008
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21115
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
21009
21116
  strokeLinecap: "round",
21010
21117
  strokeLinejoin: "round",
21011
21118
  strokeWidth: 2,
@@ -21221,18 +21328,18 @@ const SavedItems = ({
21221
21328
  });
21222
21329
  };
21223
21330
 
21224
- var _path$d;
21331
+ var _path$e;
21225
21332
 
21226
- 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); }
21333
+ 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); }
21227
21334
 
21228
21335
  function SvgRefresh(props) {
21229
- return /*#__PURE__*/React.createElement("svg", _extends$e({
21336
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
21230
21337
  className: "plc-w-4 plc-h-4 plc-mr-1",
21231
21338
  xmlns: "http://www.w3.org/2000/svg",
21232
21339
  fill: "none",
21233
21340
  viewBox: "0 0 24 24",
21234
21341
  stroke: "currentColor"
21235
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21342
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21236
21343
  strokeLinecap: "round",
21237
21344
  strokeLinejoin: "round",
21238
21345
  strokeWidth: 2,
@@ -21240,35 +21347,35 @@ function SvgRefresh(props) {
21240
21347
  })));
21241
21348
  }
21242
21349
 
21243
- var _path$c;
21350
+ var _path$d;
21244
21351
 
21245
- 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); }
21352
+ 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); }
21246
21353
 
21247
21354
  function SvgCalendar(props) {
21248
- return /*#__PURE__*/React.createElement("svg", _extends$d({
21355
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
21249
21356
  xmlns: "http://www.w3.org/2000/svg",
21250
21357
  className: "plc-h-4 plc-w-4 plc-mr-1",
21251
21358
  viewBox: "0 0 20 20",
21252
21359
  fill: "currentColor"
21253
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
21360
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21254
21361
  fillRule: "evenodd",
21255
21362
  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",
21256
21363
  clipRule: "evenodd"
21257
21364
  })));
21258
21365
  }
21259
21366
 
21260
- var _path$b;
21367
+ var _path$c;
21261
21368
 
21262
- 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); }
21369
+ 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); }
21263
21370
 
21264
21371
  function SvgPlus(props) {
21265
- return /*#__PURE__*/React.createElement("svg", _extends$c({
21372
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
21266
21373
  className: "plc-w-5 plc-h-5",
21267
21374
  xmlns: "http://www.w3.org/2000/svg",
21268
21375
  fill: "none",
21269
21376
  viewBox: "0 0 24 24",
21270
21377
  stroke: "currentColor"
21271
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
21378
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
21272
21379
  strokeLinecap: "round",
21273
21380
  strokeLinejoin: "round",
21274
21381
  strokeWidth: 2,
@@ -21276,17 +21383,17 @@ function SvgPlus(props) {
21276
21383
  })));
21277
21384
  }
21278
21385
 
21279
- var _path$a;
21386
+ var _path$b;
21280
21387
 
21281
- 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); }
21388
+ 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); }
21282
21389
 
21283
21390
  function SvgCheckMark(props) {
21284
- return /*#__PURE__*/React.createElement("svg", _extends$b({
21391
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
21285
21392
  className: "plc-w-4 plc-h-4 plc-mr-1",
21286
21393
  xmlns: "http://www.w3.org/2000/svg",
21287
21394
  viewBox: "0 0 20 20",
21288
21395
  fill: "currentColor"
21289
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
21396
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
21290
21397
  fillRule: "evenodd",
21291
21398
  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",
21292
21399
  clipRule: "evenodd"
@@ -21348,12 +21455,20 @@ const SubscriptionsItems = ({
21348
21455
  const {
21349
21456
  t
21350
21457
  } = useTranslation("dashboard");
21458
+ const {
21459
+ switchView,
21460
+ isAuthenticated
21461
+ } = usePelcro();
21351
21462
  const subs = getNonDonationSubs();
21352
21463
  if (subs.length === 0) return null;
21353
21464
  return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
21354
21465
  const isActive = activeMenu === sub.id; // Cancel button click handlers
21355
21466
 
21356
21467
  const onCancelClick = () => {
21468
+ if (userMustVerifyEmail()) {
21469
+ return switchView("email-verify");
21470
+ }
21471
+
21357
21472
  onClose === null || onClose === void 0 ? void 0 : onClose();
21358
21473
  notify.confirm((onSuccess, onFailure) => {
21359
21474
  cancelSubscription(sub.id, onSuccess, onFailure);
@@ -21369,6 +21484,10 @@ const SubscriptionsItems = ({
21369
21484
 
21370
21485
 
21371
21486
  const onReactivateClick = () => {
21487
+ if (userMustVerifyEmail()) {
21488
+ return switchView("email-verify");
21489
+ }
21490
+
21372
21491
  reactivateSubscription(sub.id);
21373
21492
  }; // Renew click
21374
21493
 
@@ -21569,18 +21688,18 @@ Accordion.item = function AccordionItem({
21569
21688
  }, content)) : null;
21570
21689
  };
21571
21690
 
21572
- var _path$9;
21691
+ var _path$a;
21573
21692
 
21574
- 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); }
21693
+ 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); }
21575
21694
 
21576
21695
  function SvgExit(props) {
21577
- return /*#__PURE__*/React.createElement("svg", _extends$a({
21696
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
21578
21697
  className: "plc-w-6 plc-h-6",
21579
21698
  xmlns: "http://www.w3.org/2000/svg",
21580
21699
  fill: "none",
21581
21700
  viewBox: "0 0 24 24",
21582
21701
  stroke: "currentColor"
21583
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
21702
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
21584
21703
  strokeLinecap: "round",
21585
21704
  strokeLinejoin: "round",
21586
21705
  strokeWidth: 2,
@@ -21588,17 +21707,17 @@ function SvgExit(props) {
21588
21707
  })));
21589
21708
  }
21590
21709
 
21591
- var _path$8;
21710
+ var _path$9;
21592
21711
 
21593
- 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); }
21712
+ 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); }
21594
21713
 
21595
21714
  function SvgUser(props) {
21596
- return /*#__PURE__*/React.createElement("svg", _extends$9({
21715
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
21597
21716
  xmlns: "http://www.w3.org/2000/svg",
21598
21717
  fill: "none",
21599
21718
  viewBox: "0 0 24 24",
21600
21719
  stroke: "currentColor"
21601
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
21720
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
21602
21721
  strokeLinecap: "round",
21603
21722
  strokeLinejoin: "round",
21604
21723
  strokeWidth: 2,
@@ -21606,18 +21725,18 @@ function SvgUser(props) {
21606
21725
  })));
21607
21726
  }
21608
21727
 
21609
- var _path$7;
21728
+ var _path$8;
21610
21729
 
21611
- 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); }
21730
+ 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); }
21612
21731
 
21613
21732
  function SvgNewsletter(props) {
21614
- return /*#__PURE__*/React.createElement("svg", _extends$8({
21733
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
21615
21734
  xmlns: "http://www.w3.org/2000/svg",
21616
21735
  className: "plc-h-5 plc-w-5",
21617
21736
  fill: "none",
21618
21737
  viewBox: "0 0 24 24",
21619
21738
  stroke: "currentColor"
21620
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
21739
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
21621
21740
  strokeLinecap: "round",
21622
21741
  strokeLinejoin: "round",
21623
21742
  strokeWidth: 2,
@@ -21625,18 +21744,18 @@ function SvgNewsletter(props) {
21625
21744
  })));
21626
21745
  }
21627
21746
 
21628
- var _path$6;
21747
+ var _path$7;
21629
21748
 
21630
- 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); }
21749
+ 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); }
21631
21750
 
21632
21751
  function SvgPaymentCard(props) {
21633
- return /*#__PURE__*/React.createElement("svg", _extends$7({
21752
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
21634
21753
  className: "plc-w-6 plc-h-6 plc-mr-2",
21635
21754
  xmlns: "http://www.w3.org/2000/svg",
21636
21755
  fill: "none",
21637
21756
  viewBox: "0 0 24 24",
21638
21757
  stroke: "currentColor"
21639
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
21758
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
21640
21759
  strokeLinecap: "round",
21641
21760
  strokeLinejoin: "round",
21642
21761
  strokeWidth: 2,
@@ -21644,23 +21763,23 @@ function SvgPaymentCard(props) {
21644
21763
  })));
21645
21764
  }
21646
21765
 
21647
- var _path$5, _path2;
21766
+ var _path$6, _path2$1;
21648
21767
 
21649
- 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); }
21768
+ 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); }
21650
21769
 
21651
21770
  function SvgLocationPin(props) {
21652
- return /*#__PURE__*/React.createElement("svg", _extends$6({
21771
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
21653
21772
  className: "plc-w-6 plc-h-6 plc-mr-2",
21654
21773
  xmlns: "http://www.w3.org/2000/svg",
21655
21774
  fill: "none",
21656
21775
  viewBox: "0 0 24 24",
21657
21776
  stroke: "currentColor"
21658
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
21777
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
21659
21778
  strokeLinecap: "round",
21660
21779
  strokeLinejoin: "round",
21661
21780
  strokeWidth: 2,
21662
21781
  d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
21663
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
21782
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
21664
21783
  strokeLinecap: "round",
21665
21784
  strokeLinejoin: "round",
21666
21785
  strokeWidth: 2,
@@ -21670,10 +21789,10 @@ function SvgLocationPin(props) {
21670
21789
 
21671
21790
  var _switch;
21672
21791
 
21673
- 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); }
21792
+ 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); }
21674
21793
 
21675
21794
  function SvgSubscription(props) {
21676
- return /*#__PURE__*/React.createElement("svg", _extends$5({
21795
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
21677
21796
  xmlns: "http://www.w3.org/2000/svg",
21678
21797
  viewBox: "0 0 100 125",
21679
21798
  fill: "currentColor"
@@ -21688,18 +21807,18 @@ function SvgSubscription(props) {
21688
21807
  }))))));
21689
21808
  }
21690
21809
 
21691
- var _path$4;
21810
+ var _path$5;
21692
21811
 
21693
- 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); }
21812
+ 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); }
21694
21813
 
21695
21814
  function SvgShopping(props) {
21696
- return /*#__PURE__*/React.createElement("svg", _extends$4({
21815
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
21697
21816
  className: "plc-w-6 plc-h-6 plc-mr-2",
21698
21817
  xmlns: "http://www.w3.org/2000/svg",
21699
21818
  fill: "none",
21700
21819
  viewBox: "0 0 24 24",
21701
21820
  stroke: "currentColor"
21702
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
21821
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
21703
21822
  strokeLinecap: "round",
21704
21823
  strokeLinejoin: "round",
21705
21824
  strokeWidth: 2,
@@ -21707,18 +21826,18 @@ function SvgShopping(props) {
21707
21826
  })));
21708
21827
  }
21709
21828
 
21710
- var _path$3;
21829
+ var _path$4;
21711
21830
 
21712
- 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); }
21831
+ 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); }
21713
21832
 
21714
21833
  function SvgBookmark(props) {
21715
- return /*#__PURE__*/React.createElement("svg", _extends$3({
21834
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
21716
21835
  className: "plc-w-6 plc-h-6 plc-mr-2",
21717
21836
  xmlns: "http://www.w3.org/2000/svg",
21718
21837
  fill: "none",
21719
21838
  viewBox: "0 0 24 24",
21720
21839
  stroke: "currentColor"
21721
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
21840
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
21722
21841
  strokeLinecap: "round",
21723
21842
  strokeLinejoin: "round",
21724
21843
  strokeWidth: 2,
@@ -21726,33 +21845,33 @@ function SvgBookmark(props) {
21726
21845
  })));
21727
21846
  }
21728
21847
 
21729
- var _path$2;
21848
+ var _path$3;
21730
21849
 
21731
- 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); }
21850
+ 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); }
21732
21851
 
21733
21852
  function SvgKey(props) {
21734
- return /*#__PURE__*/React.createElement("svg", _extends$2({
21853
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
21735
21854
  xmlns: "http://www.w3.org/2000/svg",
21736
21855
  viewBox: "0 0 20 20",
21737
21856
  fill: "currentColor"
21738
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
21857
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
21739
21858
  fillRule: "evenodd",
21740
21859
  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",
21741
21860
  clipRule: "evenodd"
21742
21861
  })));
21743
21862
  }
21744
21863
 
21745
- var _path$1;
21864
+ var _path$2;
21746
21865
 
21747
- 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); }
21866
+ 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); }
21748
21867
 
21749
21868
  function SvgDonate(props) {
21750
- return /*#__PURE__*/React.createElement("svg", _extends$1({
21869
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
21751
21870
  width: 24,
21752
21871
  height: 24,
21753
21872
  fill: "currentColor",
21754
21873
  xmlns: "http://www.w3.org/2000/svg"
21755
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
21874
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
21756
21875
  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"
21757
21876
  })));
21758
21877
  }
@@ -22398,7 +22517,7 @@ const DashboardOpenButton = () => {
22398
22517
  };
22399
22518
  DashboardOpenButton.viewId = "dashboard-open";
22400
22519
 
22401
- const initialState = {
22520
+ const initialState$1 = {
22402
22521
  imageSrc: null,
22403
22522
  crop: {
22404
22523
  x: 0,
@@ -22412,10 +22531,10 @@ const initialState = {
22412
22531
  content: ""
22413
22532
  }
22414
22533
  };
22415
- const store = /*#__PURE__*/createContext(initialState);
22534
+ const store$1 = /*#__PURE__*/createContext(initialState$1);
22416
22535
  const {
22417
- Provider
22418
- } = store;
22536
+ Provider: Provider$1
22537
+ } = store$1;
22419
22538
 
22420
22539
  const ProfilePicChangeContainer = ({
22421
22540
  style,
@@ -22549,21 +22668,21 @@ const ProfilePicChangeContainer = ({
22549
22668
  default:
22550
22669
  return state;
22551
22670
  }
22552
- }, initialState);
22671
+ }, initialState$1);
22553
22672
  return /*#__PURE__*/React__default.createElement("div", {
22554
22673
  style: { ...style
22555
22674
  },
22556
22675
  className: `pelcro-container pelcro-profile-picture-container ${className}`
22557
- }, /*#__PURE__*/React__default.createElement(Provider, {
22676
+ }, /*#__PURE__*/React__default.createElement(Provider$1, {
22558
22677
  value: {
22559
22678
  state,
22560
22679
  dispatch
22561
22680
  }
22562
22681
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
22563
- store,
22682
+ store: store$1,
22564
22683
  key: i
22565
22684
  })) : /*#__PURE__*/React__default.cloneElement(children, {
22566
- store
22685
+ store: store$1
22567
22686
  })));
22568
22687
  };
22569
22688
  /**
@@ -22625,7 +22744,7 @@ const ProfilePicChangeButton = ({
22625
22744
  isSubmitting
22626
22745
  },
22627
22746
  dispatch
22628
- } = useContext(store);
22747
+ } = useContext(store$1);
22629
22748
  const {
22630
22749
  t
22631
22750
  } = useTranslation("userEdit");
@@ -23993,7 +24112,7 @@ const ProfilePicChangeCropper = ({
23993
24112
  zoom
23994
24113
  },
23995
24114
  dispatch
23996
- } = useContext(store);
24115
+ } = useContext(store$1);
23997
24116
  return /*#__PURE__*/React__default.createElement("div", {
23998
24117
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
23999
24118
  }, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
@@ -24035,7 +24154,7 @@ const ProfilePicChangeZoom = ({
24035
24154
  zoom
24036
24155
  },
24037
24156
  dispatch
24038
- } = useContext(store);
24157
+ } = useContext(store$1);
24039
24158
  const {
24040
24159
  t
24041
24160
  } = useTranslation("userEdit");
@@ -24058,18 +24177,18 @@ const ProfilePicChangeZoom = ({
24058
24177
  }, otherProps)));
24059
24178
  };
24060
24179
 
24061
- var _path;
24180
+ var _path$1;
24062
24181
 
24063
- 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); }
24182
+ 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); }
24064
24183
 
24065
24184
  function SvgPhotograph(props) {
24066
- return /*#__PURE__*/React.createElement("svg", _extends({
24185
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
24067
24186
  xmlns: "http://www.w3.org/2000/svg",
24068
24187
  className: "plc-h-6 plc-w-6",
24069
24188
  fill: "none",
24070
24189
  viewBox: "0 0 24 24",
24071
24190
  stroke: "currentColor"
24072
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
24191
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
24073
24192
  strokeLinecap: "round",
24074
24193
  strokeLinejoin: "round",
24075
24194
  strokeWidth: 2,
@@ -24087,7 +24206,7 @@ const ProfilePicChangeSelectButton = ({
24087
24206
  state: {
24088
24207
  isSubmitting
24089
24208
  }
24090
- } = useContext(store);
24209
+ } = useContext(store$1);
24091
24210
  const {
24092
24211
  t
24093
24212
  } = useTranslation("userEdit");
@@ -24129,7 +24248,7 @@ const ProfilePicChangeRemoveButton = ({
24129
24248
  state: {
24130
24249
  isSubmitting
24131
24250
  }
24132
- } = useContext(store);
24251
+ } = useContext(store$1);
24133
24252
  const {
24134
24253
  t
24135
24254
  } = useTranslation("userEdit");
@@ -24152,7 +24271,7 @@ const ProfilePicChangeWrapper = () => {
24152
24271
  state: {
24153
24272
  imageSrc
24154
24273
  }
24155
- } = useContext(store);
24274
+ } = useContext(store$1);
24156
24275
  const {
24157
24276
  t
24158
24277
  } = useTranslation("userEdit");
@@ -24214,4 +24333,180 @@ function ProfilePicChangeModal({
24214
24333
  }
24215
24334
  ProfilePicChangeModal.viewId = "profile-picture";
24216
24335
 
24217
- export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, notify, unauthenticatedButtons, usePelcro };
24336
+ const initialState = {
24337
+ isSubmitting: false,
24338
+ alert: {
24339
+ type: "error",
24340
+ content: ""
24341
+ }
24342
+ };
24343
+ const store = /*#__PURE__*/createContext(initialState);
24344
+ const {
24345
+ Provider
24346
+ } = store;
24347
+
24348
+ const EmailVerifyContainer = ({
24349
+ style,
24350
+ className = "",
24351
+ onSuccess = () => {},
24352
+ onFailure = () => {},
24353
+ children,
24354
+ ...props
24355
+ }) => {
24356
+ const {
24357
+ t
24358
+ } = useTranslation("verifyEmail");
24359
+
24360
+ const submit = () => {
24361
+ window.Pelcro.user.resendEmailVerification((err, res) => {
24362
+ dispatch({
24363
+ type: LOADING,
24364
+ payload: false
24365
+ });
24366
+
24367
+ if (err) {
24368
+ dispatch({
24369
+ type: SHOW_ALERT,
24370
+ payload: {
24371
+ type: "error",
24372
+ content: getErrorMessages(err)
24373
+ }
24374
+ });
24375
+ return onFailure(err);
24376
+ }
24377
+
24378
+ dispatch({
24379
+ type: SHOW_ALERT,
24380
+ payload: {
24381
+ type: "success",
24382
+ content: t("messages.resent")
24383
+ }
24384
+ });
24385
+ return onSuccess(res);
24386
+ });
24387
+ };
24388
+
24389
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
24390
+ switch (action.type) {
24391
+ case SHOW_ALERT:
24392
+ return lib_7({ ...state,
24393
+ alert: action.payload
24394
+ });
24395
+
24396
+ case LOADING:
24397
+ return lib_7({ ...state,
24398
+ isSubmitting: action.payload
24399
+ });
24400
+
24401
+ case HANDLE_SUBMIT:
24402
+ return lib_5({ ...state,
24403
+ isSubmitting: true
24404
+ }, (state, dispatch) => submit());
24405
+
24406
+ default:
24407
+ return state;
24408
+ }
24409
+ }, initialState);
24410
+ return /*#__PURE__*/React__default.createElement("div", {
24411
+ style: { ...style
24412
+ },
24413
+ className: `pelcro-container pelcro-email-verify-container ${className}`
24414
+ }, /*#__PURE__*/React__default.createElement(Provider, {
24415
+ value: {
24416
+ state,
24417
+ dispatch
24418
+ }
24419
+ }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
24420
+ store,
24421
+ key: i
24422
+ })) : /*#__PURE__*/React__default.cloneElement(children, {
24423
+ store
24424
+ })));
24425
+ };
24426
+
24427
+ const EmailVerifyResendButton = ({
24428
+ name,
24429
+ onClick,
24430
+ ...otherProps
24431
+ }) => {
24432
+ const {
24433
+ dispatch,
24434
+ state: {
24435
+ isSubmitting
24436
+ }
24437
+ } = useContext(store);
24438
+ const {
24439
+ t
24440
+ } = useTranslation("verifyEmail");
24441
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
24442
+ onClick: () => {
24443
+ dispatch({
24444
+ type: HANDLE_SUBMIT
24445
+ });
24446
+ onClick === null || onClick === void 0 ? void 0 : onClick();
24447
+ },
24448
+ isLoading: isSubmitting
24449
+ }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
24450
+ };
24451
+
24452
+ var _path, _path2;
24453
+
24454
+ 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); }
24455
+
24456
+ function SvgEmailVerify(props) {
24457
+ return /*#__PURE__*/React.createElement("svg", _extends({
24458
+ className: "plc-w-6 plc-h-6",
24459
+ viewBox: "0 0 700 700",
24460
+ xmlns: "http://www.w3.org/2000/svg"
24461
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
24462
+ 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"
24463
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
24464
+ 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"
24465
+ })));
24466
+ }
24467
+
24468
+ const EmailVerifyView = props => {
24469
+ var _window$Pelcro$user$r;
24470
+
24471
+ const {
24472
+ t
24473
+ } = useTranslation("verifyEmail");
24474
+ return /*#__PURE__*/React__default.createElement("div", {
24475
+ id: "pelcro-email-verify-view"
24476
+ }, /*#__PURE__*/React__default.createElement("div", {
24477
+ className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
24478
+ }, /*#__PURE__*/React__default.createElement("h4", {
24479
+ className: "plc-text-2xl plc-font-semibold"
24480
+ }, t("labels.title"))), /*#__PURE__*/React__default.createElement("form", {
24481
+ action: "javascript:void(0);",
24482
+ className: "plc-mt-2 pelcro-form"
24483
+ }, /*#__PURE__*/React__default.createElement(EmailVerifyContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), /*#__PURE__*/React__default.createElement("div", {
24484
+ className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
24485
+ }, /*#__PURE__*/React__default.createElement(SvgEmailVerify, {
24486
+ className: "plc-w-32 plc-h-32"
24487
+ }), /*#__PURE__*/React__default.createElement("p", {
24488
+ className: "plc-mb-1 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
24489
+ }, t("labels.instructions"), " ", /*#__PURE__*/React__default.createElement("span", {
24490
+ className: "plc-font-bold"
24491
+ }, (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email))), /*#__PURE__*/React__default.createElement(EmailVerifyResendButton, {
24492
+ role: "submit",
24493
+ className: "plc-mt-4 plc-w-full",
24494
+ name: t("labels.resend"),
24495
+ id: "pelcro-submit"
24496
+ }))));
24497
+ };
24498
+
24499
+ const EmailVerifyModal = ({
24500
+ onDisplay,
24501
+ onClose,
24502
+ ...otherProps
24503
+ }) => {
24504
+ return /*#__PURE__*/React__default.createElement(Modal, {
24505
+ onDisplay: onDisplay,
24506
+ onClose: onClose,
24507
+ id: "pelcro-email-verify-modal"
24508
+ }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
24509
+ };
24510
+ EmailVerifyModal.viewId = "email-verify";
24511
+
24512
+ export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, notify, unauthenticatedButtons, usePelcro };