@pelcro/react-pelcro-js 2.7.0 → 3.0.0-beta.1

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",
@@ -3590,18 +3590,19 @@ var labels$h = {
3590
3590
  "for": "for",
3591
3591
  interval: "{{count}} {{interval}}",
3592
3592
  interval_plural: "{{count}} {{interval}}s",
3593
- tax: "+ Tax"
3593
+ tax: "+ Tax",
3594
+ removeCoupon: "REMOVE"
3594
3595
  };
3595
3596
  var checkoutForm_en = {
3596
- messages: messages$j,
3597
- labels: labels$h
3597
+ messages: messages$l,
3598
+ labels: labels$j
3598
3599
  };
3599
3600
 
3600
- var messages$i = {
3601
+ var messages$k = {
3601
3602
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
3602
3603
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
3603
3604
  };
3604
- var labels$g = {
3605
+ var labels$i = {
3605
3606
  card: "Entrez le numéro de carte",
3606
3607
  date: "Date d’expiration",
3607
3608
  CVC: "CVC",
@@ -3616,11 +3617,12 @@ var labels$g = {
3616
3617
  "for": "pour",
3617
3618
  interval: "{{count}} {{interval}}",
3618
3619
  interval_plural: "{{count}} {{interval}}s",
3619
- tax: "+ Taxe"
3620
+ tax: "+ Taxe",
3621
+ removeCoupon: "RETIRER"
3620
3622
  };
3621
3623
  var checkoutForm_fr = {
3622
- messages: messages$i,
3623
- labels: labels$g
3624
+ messages: messages$k,
3625
+ labels: labels$i
3624
3626
  };
3625
3627
 
3626
3628
  var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
@@ -3653,7 +3655,7 @@ var messages_fr = {
3653
3655
  recaptcha: recaptcha
3654
3656
  };
3655
3657
 
3656
- var labels$f = {
3658
+ var labels$h = {
3657
3659
  email: "Enter email",
3658
3660
  password: "Enter password",
3659
3661
  required: "required",
@@ -3661,7 +3663,7 @@ var labels$f = {
3661
3663
  passwordPlaceholder: "Password",
3662
3664
  login: "Login"
3663
3665
  };
3664
- var messages$h = {
3666
+ var messages$j = {
3665
3667
  loginTo: "Login to your account",
3666
3668
  welcome: "Welcome back, sign in with your existing account.",
3667
3669
  dontHaveAccount: "Don't have an account yet?",
@@ -3680,12 +3682,12 @@ var errors$5 = {
3680
3682
  "": ""
3681
3683
  };
3682
3684
  var login_en = {
3683
- labels: labels$f,
3684
- messages: messages$h,
3685
+ labels: labels$h,
3686
+ messages: messages$j,
3685
3687
  errors: errors$5
3686
3688
  };
3687
3689
 
3688
- var labels$e = {
3690
+ var labels$g = {
3689
3691
  email: "Entrez votre adresse courriel",
3690
3692
  password: "Entrez votre mot de passe",
3691
3693
  required: "Champs obligatoires",
@@ -3693,7 +3695,7 @@ var labels$e = {
3693
3695
  passwordPlaceholder: "Mot de passe",
3694
3696
  login: "Connexion"
3695
3697
  };
3696
- var messages$g = {
3698
+ var messages$i = {
3697
3699
  loginTo: "Connectez-vous à votre compte",
3698
3700
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
3699
3701
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -3712,14 +3714,14 @@ var errors$4 = {
3712
3714
  "": ""
3713
3715
  };
3714
3716
  var login_fr = {
3715
- labels: labels$e,
3716
- messages: messages$g,
3717
+ labels: labels$g,
3718
+ messages: messages$i,
3717
3719
  errors: errors$4
3718
3720
  };
3719
3721
 
3720
3722
  var title$b = "Create an account";
3721
3723
  var subtitle$5 = "Enter your email and password below";
3722
- var labels$d = {
3724
+ var labels$f = {
3723
3725
  signUpFacebook: "Sign up with Facebook",
3724
3726
  signUpGoogle: "Sign up with Google",
3725
3727
  signUpEmail: "Sign up with Email",
@@ -3731,7 +3733,7 @@ var labels$d = {
3731
3733
  firstName: "First name",
3732
3734
  lastName: "Last name"
3733
3735
  };
3734
- var messages$f = {
3736
+ var messages$h = {
3735
3737
  alreadyHaveAccount: "Already have an account?",
3736
3738
  createAccount: "Create account",
3737
3739
  loginHere: "login here. ",
@@ -3805,8 +3807,8 @@ var redeem$1 = {
3805
3807
  var register_en = {
3806
3808
  title: title$b,
3807
3809
  subtitle: subtitle$5,
3808
- labels: labels$d,
3809
- messages: messages$f,
3810
+ labels: labels$f,
3811
+ messages: messages$h,
3810
3812
  errors: errors$3,
3811
3813
  gift: gift$1,
3812
3814
  redeem: redeem$1
@@ -3814,7 +3816,7 @@ var register_en = {
3814
3816
 
3815
3817
  var title$a = "Créer un compte";
3816
3818
  var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
3817
- var labels$c = {
3819
+ var labels$e = {
3818
3820
  signUpFacebook: "Inscrivez-vous avec Facebook",
3819
3821
  signUpGoogle: "Inscrivez-vous avec Google",
3820
3822
  signUpEmail: "Inscrivez-vous avec votre courriel",
@@ -3826,7 +3828,7 @@ var labels$c = {
3826
3828
  firstName: "Prénom",
3827
3829
  lastName: "Nom de famille"
3828
3830
  };
3829
- var messages$e = {
3831
+ var messages$g = {
3830
3832
  alreadyHaveAccount: "Vous avez déjà un compte?",
3831
3833
  createAccount: "Créer un compte",
3832
3834
  loginHere: "Connectez-vous ici",
@@ -3901,14 +3903,14 @@ var redeem = {
3901
3903
  var register_fr = {
3902
3904
  title: title$a,
3903
3905
  subtitle: subtitle$4,
3904
- labels: labels$c,
3905
- messages: messages$e,
3906
+ labels: labels$e,
3907
+ messages: messages$g,
3906
3908
  errors: errors$2,
3907
3909
  gift: gift,
3908
3910
  redeem: redeem
3909
3911
  };
3910
3912
 
3911
- var labels$b = {
3913
+ var labels$d = {
3912
3914
  title: "Want to update your profile?",
3913
3915
  subtitle: "Enter your information below to update your profile",
3914
3916
  email: "Email",
@@ -3924,17 +3926,17 @@ var labels$b = {
3924
3926
  removeImage: "Remove current photo",
3925
3927
  zoom: "Zoom"
3926
3928
  };
3927
- var messages$d = {
3929
+ var messages$f = {
3928
3930
  userUpdated: "Thanks! Your profile was updated successfully.",
3929
3931
  pictureRemoved: "Your profile picture was removed successfully.",
3930
3932
  pictureUpdated: "Your profile picture was updated successfully."
3931
3933
  };
3932
3934
  var userEdit_en = {
3933
- labels: labels$b,
3934
- messages: messages$d
3935
+ labels: labels$d,
3936
+ messages: messages$f
3935
3937
  };
3936
3938
 
3937
- var labels$a = {
3939
+ var labels$c = {
3938
3940
  title: "Voulez-vous mettre à jour votre profil ?",
3939
3941
  subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
3940
3942
  email: "Address courriel",
@@ -3950,20 +3952,20 @@ var labels$a = {
3950
3952
  removeImage: "supprimer la photo actuelle",
3951
3953
  zoom: "Zoom"
3952
3954
  };
3953
- var messages$c = {
3955
+ var messages$e = {
3954
3956
  userUpdated: "Votre profil a été mis à jour avec succès.",
3955
3957
  pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
3956
3958
  pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
3957
3959
  };
3958
3960
  var userEdit_fr = {
3959
- labels: labels$a,
3960
- messages: messages$c
3961
+ labels: labels$c,
3962
+ messages: messages$e
3961
3963
  };
3962
3964
 
3963
3965
  var title$9 = "Enter your shipping address";
3964
3966
  var selectAddressTitle$1 = "Please select an address";
3965
3967
  var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
3966
- var labels$9 = {
3968
+ var labels$b = {
3967
3969
  address: "Address",
3968
3970
  code: "Postal Code/Zip",
3969
3971
  city: "City",
@@ -3978,7 +3980,7 @@ var buttons$5 = {
3978
3980
  selectAddress: "Select address",
3979
3981
  addAddress: "Add new address"
3980
3982
  };
3981
- var messages$b = {
3983
+ var messages$d = {
3982
3984
  addressUpdated: "The address was successfully updated!",
3983
3985
  subRedeemed: "Your subscription has been redeemed."
3984
3986
  };
@@ -3986,15 +3988,15 @@ var address_en = {
3986
3988
  title: title$9,
3987
3989
  selectAddressTitle: selectAddressTitle$1,
3988
3990
  selectAddressSubtitle: selectAddressSubtitle$1,
3989
- labels: labels$9,
3991
+ labels: labels$b,
3990
3992
  buttons: buttons$5,
3991
- messages: messages$b
3993
+ messages: messages$d
3992
3994
  };
3993
3995
 
3994
3996
  var title$8 = "Entrez votre adresse de livraison";
3995
3997
  var selectAddressTitle = "Veuillez sélectionner une adresse";
3996
3998
  var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
3997
- var labels$8 = {
3999
+ var labels$a = {
3998
4000
  address: "Adresse",
3999
4001
  code: "Code postal / Zip",
4000
4002
  city: "Ville",
@@ -4009,7 +4011,7 @@ var buttons$4 = {
4009
4011
  selectAddress: "Choisir cette adresse",
4010
4012
  addAddress: "Ajouter une nouvelle adresse"
4011
4013
  };
4012
- var messages$a = {
4014
+ var messages$c = {
4013
4015
  addressUpdated: "Votre adresse a été mise à jour avec succès",
4014
4016
  subRedeemed: "Votre abonnement a bien été activé."
4015
4017
  };
@@ -4017,9 +4019,9 @@ var address_fr = {
4017
4019
  title: title$8,
4018
4020
  selectAddressTitle: selectAddressTitle,
4019
4021
  selectAddressSubtitle: selectAddressSubtitle,
4020
- labels: labels$8,
4022
+ labels: labels$a,
4021
4023
  buttons: buttons$4,
4022
- messages: messages$a
4024
+ messages: messages$c
4023
4025
  };
4024
4026
 
4025
4027
  var title$7 = "Reset your password";
@@ -4066,7 +4068,7 @@ var password$1 = "Password";
4066
4068
  var submit$3 = "Submit";
4067
4069
  var required$3 = "Required";
4068
4070
  var passwordResetEmailSent$1 = "Password reset instructions have been sent to your email";
4069
- var messages$9 = {
4071
+ var messages$b = {
4070
4072
  alreadyHaveAccount: "Already have an account?",
4071
4073
  loginHere: "login here."
4072
4074
  };
@@ -4077,7 +4079,7 @@ var passwordForgot_en = {
4077
4079
  submit: submit$3,
4078
4080
  required: required$3,
4079
4081
  passwordResetEmailSent: passwordResetEmailSent$1,
4080
- messages: messages$9
4082
+ messages: messages$b
4081
4083
  };
4082
4084
 
4083
4085
  var title$4 = "Mot de passe oublié ?";
@@ -4086,7 +4088,7 @@ var password = "Mot de passe";
4086
4088
  var submit$2 = "Soumettre";
4087
4089
  var required$2 = "Champs obligatoires";
4088
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.";
4089
- var messages$8 = {
4091
+ var messages$a = {
4090
4092
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4091
4093
  loginHere: "Connectez-vous ici"
4092
4094
  };
@@ -4097,7 +4099,7 @@ var passwordForgot_fr = {
4097
4099
  submit: submit$2,
4098
4100
  required: required$2,
4099
4101
  passwordResetEmailSent: passwordResetEmailSent,
4100
- messages: messages$8
4102
+ messages: messages$a
4101
4103
  };
4102
4104
 
4103
4105
  var title$3 = "Change your password";
@@ -4198,7 +4200,7 @@ var buttons$3 = {
4198
4200
  purchase: "Purchase",
4199
4201
  "continue": "Continue"
4200
4202
  };
4201
- var messages$7 = {
4203
+ var messages$9 = {
4202
4204
  orderConfirmed: {
4203
4205
  title: "Order confirmed!",
4204
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."
@@ -4207,14 +4209,14 @@ var messages$7 = {
4207
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.",
4208
4210
  currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
4209
4211
  };
4210
- var labels$7 = {
4212
+ var labels$9 = {
4211
4213
  summary: "Order summary",
4212
4214
  total: "total"
4213
4215
  };
4214
4216
  var shop_en = {
4215
4217
  buttons: buttons$3,
4216
- messages: messages$7,
4217
- labels: labels$7
4218
+ messages: messages$9,
4219
+ labels: labels$9
4218
4220
  };
4219
4221
 
4220
4222
  var buttons$2 = {
@@ -4223,7 +4225,7 @@ var buttons$2 = {
4223
4225
  purchase: "Acheter",
4224
4226
  "continue": "Continuer au contenu"
4225
4227
  };
4226
- var messages$6 = {
4228
+ var messages$8 = {
4227
4229
  orderConfirmed: {
4228
4230
  title: "Votre commande est confirmée !",
4229
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."
@@ -4232,17 +4234,17 @@ var messages$6 = {
4232
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.",
4233
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."
4234
4236
  };
4235
- var labels$6 = {
4237
+ var labels$8 = {
4236
4238
  summary: "récapitulatif de commande",
4237
4239
  total: "total"
4238
4240
  };
4239
4241
  var shop_fr = {
4240
4242
  buttons: buttons$2,
4241
- messages: messages$6,
4242
- labels: labels$6
4243
+ messages: messages$8,
4244
+ labels: labels$8
4243
4245
  };
4244
4246
 
4245
- var labels$5 = {
4247
+ var labels$7 = {
4246
4248
  cardNumber: "Numéro de carte",
4247
4249
  securityCode: "Code de sécurité",
4248
4250
  submit: "Soumettre",
@@ -4264,7 +4266,7 @@ var labels$5 = {
4264
4266
  title: "Informations de paiement"
4265
4267
  }
4266
4268
  };
4267
- var messages$5 = {
4269
+ var messages$7 = {
4268
4270
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4269
4271
  cancel: "Annuler votre abonnement en ligne à tout moment.",
4270
4272
  giftSent: "Le cadeau d’abonnement a été envoyé à",
@@ -4277,12 +4279,12 @@ var errors$1 = {
4277
4279
  "": ""
4278
4280
  };
4279
4281
  var payment_fr = {
4280
- labels: labels$5,
4281
- messages: messages$5,
4282
+ labels: labels$7,
4283
+ messages: messages$7,
4282
4284
  errors: errors$1
4283
4285
  };
4284
4286
 
4285
- var labels$4 = {
4287
+ var labels$6 = {
4286
4288
  cardNumber: "Card number",
4287
4289
  securityCode: "Security Code",
4288
4290
  submit: "Submit",
@@ -4304,7 +4306,7 @@ var labels$4 = {
4304
4306
  title: "Payment Information"
4305
4307
  }
4306
4308
  };
4307
- var messages$4 = {
4309
+ var messages$6 = {
4308
4310
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
4309
4311
  cancel: "Cancel your subscription online at anytime.",
4310
4312
  giftSent: "Subscription gift has been sent to",
@@ -4317,12 +4319,12 @@ var errors = {
4317
4319
  "": ""
4318
4320
  };
4319
4321
  var payment_en = {
4320
- labels: labels$4,
4321
- messages: messages$4,
4322
+ labels: labels$6,
4323
+ messages: messages$6,
4322
4324
  errors: errors
4323
4325
  };
4324
4326
 
4325
- var labels$3 = {
4327
+ var labels$5 = {
4326
4328
  menu: "Pelcro Menu",
4327
4329
  name: "Name",
4328
4330
  email: "Email",
@@ -4389,7 +4391,7 @@ var labels$3 = {
4389
4391
  goBack: "Go back"
4390
4392
  }
4391
4393
  };
4392
- var messages$3 = {
4394
+ var messages$5 = {
4393
4395
  noCard: "You don't have a card",
4394
4396
  subCancellation: {
4395
4397
  isSureToCancel: "Are you sure you want to cancel your subscription?",
@@ -4399,11 +4401,11 @@ var messages$3 = {
4399
4401
  }
4400
4402
  };
4401
4403
  var dashboard_en = {
4402
- labels: labels$3,
4403
- messages: messages$3
4404
+ labels: labels$5,
4405
+ messages: messages$5
4404
4406
  };
4405
4407
 
4406
- var labels$2 = {
4408
+ var labels$4 = {
4407
4409
  menu: "Menu Pelcro",
4408
4410
  name: "Nom",
4409
4411
  email: "Courriel",
@@ -4470,7 +4472,7 @@ var labels$2 = {
4470
4472
  goBack: "Retourner"
4471
4473
  }
4472
4474
  };
4473
- var messages$2 = {
4475
+ var messages$4 = {
4474
4476
  noCard: "Vous n’avez pas une carte",
4475
4477
  subCancellation: {
4476
4478
  isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
@@ -4480,16 +4482,16 @@ var messages$2 = {
4480
4482
  }
4481
4483
  };
4482
4484
  var dashboard_fr = {
4483
- labels: labels$2,
4484
- messages: messages$2
4485
+ labels: labels$4,
4486
+ messages: messages$4
4485
4487
  };
4486
4488
 
4487
- var messages$1 = {
4489
+ var messages$3 = {
4488
4490
  alreadyHaveAccount: "Already have an account?",
4489
4491
  loginHere: "Login here",
4490
4492
  checkbox: "Check this box to gift this subscription"
4491
4493
  };
4492
- var labels$1 = {
4494
+ var labels$3 = {
4493
4495
  plan: {
4494
4496
  title: "Subscribe to a plan",
4495
4497
  subtitle: "Select one of the plans below and click on next."
@@ -4512,17 +4514,17 @@ var buttons$1 = {
4512
4514
  back: "Back"
4513
4515
  };
4514
4516
  var select_en = {
4515
- messages: messages$1,
4516
- labels: labels$1,
4517
+ messages: messages$3,
4518
+ labels: labels$3,
4517
4519
  buttons: buttons$1
4518
4520
  };
4519
4521
 
4520
- var messages = {
4522
+ var messages$2 = {
4521
4523
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4522
4524
  loginHere: "Connectez-vous ici",
4523
4525
  checkbox: "Cochez cette case pour offrir cet abonnement"
4524
4526
  };
4525
- var labels = {
4527
+ var labels$2 = {
4526
4528
  plan: {
4527
4529
  title: "Abonnez-vous à un plan",
4528
4530
  subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
@@ -4545,8 +4547,8 @@ var buttons = {
4545
4547
  back: "Retour"
4546
4548
  };
4547
4549
  var select_fr = {
4548
- messages: messages,
4549
- labels: labels,
4550
+ messages: messages$2,
4551
+ labels: labels$2,
4550
4552
  buttons: buttons
4551
4553
  };
4552
4554
 
@@ -4570,6 +4572,34 @@ var notification_fr = {
4570
4572
  confirm: confirm
4571
4573
  };
4572
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
+
4573
4603
  function create$1(createState) {
4574
4604
  let state;
4575
4605
  const listeners = new Set();
@@ -5919,12 +5949,18 @@ class PelcroActions {
5919
5949
  view,
5920
5950
  cartItems,
5921
5951
  ...otherStateFields
5922
- } = initialState$g;
5952
+ } = initialState$h;
5923
5953
  this.set(otherStateFields);
5924
5954
  });
5925
5955
 
5926
5956
  _defineProperty$3(this, "switchView", view => {
5927
5957
  // view switching guards
5958
+ if (userMustVerifyEmail() && !["dashboard", "meter", "login", null].includes(view)) {
5959
+ return this.set({
5960
+ view: "email-verify"
5961
+ });
5962
+ }
5963
+
5928
5964
  if (["login", "register"].includes(view) && this.get().isAuthenticated()) {
5929
5965
  return this.set({
5930
5966
  view: "dashboard"
@@ -6182,7 +6218,7 @@ class PelcroCallbacks {
6182
6218
  }
6183
6219
  });
6184
6220
 
6185
- _defineProperty$3(this, "whenUserReady", callback => {
6221
+ _defineProperty$3(this, "whenUserReady", (callback, listenerOptions) => {
6186
6222
  var _window$Pelcro$user$r;
6187
6223
 
6188
6224
  if ((_window$Pelcro$user$r = window.Pelcro.user.read()) !== null && _window$Pelcro$user$r !== void 0 && _window$Pelcro$user$r.id) {
@@ -6190,7 +6226,7 @@ class PelcroCallbacks {
6190
6226
  } else {
6191
6227
  window.document.addEventListener("PelcroUserLoaded", e => {
6192
6228
  callback(window.Pelcro.user.read());
6193
- });
6229
+ }, listenerOptions);
6194
6230
  }
6195
6231
  });
6196
6232
 
@@ -6209,7 +6245,7 @@ class PelcroCallbacks {
6209
6245
 
6210
6246
  }
6211
6247
 
6212
- const initialState$g = {
6248
+ const initialState$h = {
6213
6249
  // View
6214
6250
  view: null,
6215
6251
  // Plans
@@ -6237,7 +6273,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6237
6273
  return {
6238
6274
  // Store setter
6239
6275
  set,
6240
- ...initialState$g,
6276
+ ...initialState$h,
6241
6277
  // State actions
6242
6278
  ...actions,
6243
6279
  // Callbacks
@@ -6388,7 +6424,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
6388
6424
  */
6389
6425
 
6390
6426
  const isValidViewFromURL = viewID => {
6391
- 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()) {
6392
6428
  return true;
6393
6429
  }
6394
6430
 
@@ -6585,6 +6621,13 @@ function getDateWithoutTime(dateObject) {
6585
6621
  date.setHours(0, 0, 0, 0);
6586
6622
  return date;
6587
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
+ }
6588
6631
 
6589
6632
  const resources = {
6590
6633
  en: {
@@ -6602,6 +6645,7 @@ const resources = {
6602
6645
  passwordReset: passwordReset_en,
6603
6646
  passwordForgot: passwordForgot_en,
6604
6647
  passwordChange: passwordChange_en,
6648
+ verifyEmail: verifyEmail_en,
6605
6649
  cart: cart_en,
6606
6650
  shop: shop_en,
6607
6651
  payment: payment_en,
@@ -6624,6 +6668,7 @@ const resources = {
6624
6668
  passwordReset: passwordReset_fr,
6625
6669
  passwordForgot: passwordForgot_fr,
6626
6670
  passwordChange: passwordChange_fr,
6671
+ verifyEmail: verifyEmail_fr,
6627
6672
  cart: cart_fr,
6628
6673
  shop: shop_fr,
6629
6674
  payment: payment_fr,
@@ -6786,11 +6831,18 @@ class SaveToMetadataButtonClass {
6786
6831
 
6787
6832
  const button = event.currentTarget;
6788
6833
  const user = window.Pelcro.user.read();
6834
+ const {
6835
+ switchView
6836
+ } = usePelcro.getStore();
6789
6837
  const {
6790
6838
  key,
6791
6839
  ...buttonMetadata
6792
6840
  } = button.dataset;
6793
6841
 
6842
+ if (userMustVerifyEmail()) {
6843
+ return switchView("email-verify");
6844
+ }
6845
+
6794
6846
  if (_classPrivateFieldGet(this, _isAlreadySaved).call(this, button)) {
6795
6847
  _classPrivateFieldGet(this, _removeMetaData).call(this, event);
6796
6848
 
@@ -6913,8 +6965,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
6913
6965
 
6914
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}}
6915
6967
 
6916
- function _extends$x() {
6917
- _extends$x = Object.assign || function (target) {
6968
+ function _extends$y() {
6969
+ _extends$y = Object.assign || function (target) {
6918
6970
  for (var i = 1; i < arguments.length; i++) {
6919
6971
  var source = arguments[i];
6920
6972
 
@@ -6928,7 +6980,7 @@ function _extends$x() {
6928
6980
  return target;
6929
6981
  };
6930
6982
 
6931
- return _extends$x.apply(this, arguments);
6983
+ return _extends$y.apply(this, arguments);
6932
6984
  }
6933
6985
 
6934
6986
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7018,7 +7070,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7018
7070
  var reducer = function reducer(state, action) {
7019
7071
  switch (action.type) {
7020
7072
  case ActionType.ADD_TOAST:
7021
- return _extends$x({}, state, {
7073
+ return _extends$y({}, state, {
7022
7074
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7023
7075
  });
7024
7076
 
@@ -7028,9 +7080,9 @@ var reducer = function reducer(state, action) {
7028
7080
  clearFromRemoveQueue(action.toast.id);
7029
7081
  }
7030
7082
 
7031
- return _extends$x({}, state, {
7083
+ return _extends$y({}, state, {
7032
7084
  toasts: state.toasts.map(function (t) {
7033
- 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;
7034
7086
  })
7035
7087
  });
7036
7088
 
@@ -7057,9 +7109,9 @@ var reducer = function reducer(state, action) {
7057
7109
  });
7058
7110
  }
7059
7111
 
7060
- return _extends$x({}, state, {
7112
+ return _extends$y({}, state, {
7061
7113
  toasts: state.toasts.map(function (t) {
7062
- return t.id === toastId || toastId === undefined ? _extends$x({}, t, {
7114
+ return t.id === toastId || toastId === undefined ? _extends$y({}, t, {
7063
7115
  visible: false
7064
7116
  }) : t;
7065
7117
  })
@@ -7067,28 +7119,28 @@ var reducer = function reducer(state, action) {
7067
7119
 
7068
7120
  case ActionType.REMOVE_TOAST:
7069
7121
  if (action.toastId === undefined) {
7070
- return _extends$x({}, state, {
7122
+ return _extends$y({}, state, {
7071
7123
  toasts: []
7072
7124
  });
7073
7125
  }
7074
7126
 
7075
- return _extends$x({}, state, {
7127
+ return _extends$y({}, state, {
7076
7128
  toasts: state.toasts.filter(function (t) {
7077
7129
  return t.id !== action.toastId;
7078
7130
  })
7079
7131
  });
7080
7132
 
7081
7133
  case ActionType.START_PAUSE:
7082
- return _extends$x({}, state, {
7134
+ return _extends$y({}, state, {
7083
7135
  pausedAt: action.time
7084
7136
  });
7085
7137
 
7086
7138
  case ActionType.END_PAUSE:
7087
7139
  var diff = action.time - (state.pausedAt || 0);
7088
- return _extends$x({}, state, {
7140
+ return _extends$y({}, state, {
7089
7141
  pausedAt: undefined,
7090
7142
  toasts: state.toasts.map(function (t) {
7091
- return _extends$x({}, t, {
7143
+ return _extends$y({}, t, {
7092
7144
  pauseDuration: t.pauseDuration + diff
7093
7145
  });
7094
7146
  })
@@ -7135,12 +7187,12 @@ var useStore = function useStore(toastOptions) {
7135
7187
  var mergedToasts = state.toasts.map(function (t) {
7136
7188
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7137
7189
 
7138
- return _extends$x({}, toastOptions, toastOptions[t.type], t, {
7190
+ return _extends$y({}, toastOptions, toastOptions[t.type], t, {
7139
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],
7140
- 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)
7141
7193
  });
7142
7194
  });
7143
- return _extends$x({}, state, {
7195
+ return _extends$y({}, state, {
7144
7196
  toasts: mergedToasts
7145
7197
  });
7146
7198
  };
@@ -7150,7 +7202,7 @@ var createToast = function createToast(message, type, opts) {
7150
7202
  type = 'blank';
7151
7203
  }
7152
7204
 
7153
- return _extends$x({
7205
+ return _extends$y({
7154
7206
  createdAt: Date.now(),
7155
7207
  visible: true,
7156
7208
  type: type,
@@ -7200,14 +7252,14 @@ toast.remove = function (toastId) {
7200
7252
  };
7201
7253
 
7202
7254
  toast.promise = function (promise, msgs, opts) {
7203
- 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));
7204
7256
  promise.then(function (p) {
7205
- toast.success(resolveValue(msgs.success, p), _extends$x({
7257
+ toast.success(resolveValue(msgs.success, p), _extends$y({
7206
7258
  id: id
7207
7259
  }, opts, opts == null ? void 0 : opts.success));
7208
7260
  return p;
7209
7261
  })["catch"](function (e) {
7210
- toast.error(resolveValue(msgs.error, e), _extends$x({
7262
+ toast.error(resolveValue(msgs.error, e), _extends$y({
7211
7263
  id: id
7212
7264
  }, opts, opts == null ? void 0 : opts.error));
7213
7265
  });
@@ -7546,7 +7598,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
7546
7598
  var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7547
7599
  return createElement(ToastBarBase, {
7548
7600
  className: toast.className,
7549
- style: _extends$x({}, animationStyle, style, toast.style)
7601
+ style: _extends$y({}, animationStyle, style, toast.style)
7550
7602
  }, typeof children === 'function' ? children({
7551
7603
  icon: icon,
7552
7604
  message: message
@@ -7576,7 +7628,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7576
7628
  } : position.includes('right') ? {
7577
7629
  justifyContent: 'flex-end'
7578
7630
  } : {};
7579
- return _extends$x({
7631
+ return _extends$y({
7580
7632
  left: 0,
7581
7633
  right: 0,
7582
7634
  display: 'flex',
@@ -7603,7 +7655,7 @@ var Toaster = function Toaster(_ref) {
7603
7655
  handlers = _useToaster.handlers;
7604
7656
 
7605
7657
  return createElement("div", {
7606
- style: _extends$x({
7658
+ style: _extends$y({
7607
7659
  position: 'fixed',
7608
7660
  zIndex: 9999,
7609
7661
  top: DEFAULT_OFFSET,
@@ -7638,87 +7690,87 @@ var Toaster = function Toaster(_ref) {
7638
7690
  }));
7639
7691
  };
7640
7692
 
7641
- var _path$u;
7693
+ var _path$v;
7642
7694
 
7643
- 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); }
7644
7696
 
7645
7697
  function SvgCheckSolid(props) {
7646
- return /*#__PURE__*/React.createElement("svg", _extends$w({
7698
+ return /*#__PURE__*/React.createElement("svg", _extends$x({
7647
7699
  xmlns: "http://www.w3.org/2000/svg",
7648
7700
  className: "h-5 w-5",
7649
7701
  viewBox: "0 0 20 20",
7650
7702
  fill: "currentColor"
7651
- }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7703
+ }, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
7652
7704
  fillRule: "evenodd",
7653
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",
7654
7706
  clipRule: "evenodd"
7655
7707
  })));
7656
7708
  }
7657
7709
 
7658
- var _path$t;
7710
+ var _path$u;
7659
7711
 
7660
- 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); }
7661
7713
 
7662
7714
  function SvgXIcon(props) {
7663
- return /*#__PURE__*/React.createElement("svg", _extends$v({
7715
+ return /*#__PURE__*/React.createElement("svg", _extends$w({
7664
7716
  xmlns: "http://www.w3.org/2000/svg",
7665
7717
  viewBox: "0 0 20 20",
7666
7718
  fill: "currentColor"
7667
- }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7719
+ }, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
7668
7720
  fill: "evenodd",
7669
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",
7670
7722
  clipRule: "evenodd"
7671
7723
  })));
7672
7724
  }
7673
7725
 
7674
- var _path$s;
7726
+ var _path$t;
7675
7727
 
7676
- 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); }
7677
7729
 
7678
7730
  function SvgXIconSolid(props) {
7679
- return /*#__PURE__*/React.createElement("svg", _extends$u({
7731
+ return /*#__PURE__*/React.createElement("svg", _extends$v({
7680
7732
  className: "plc-w-4 plc-h-4",
7681
7733
  fill: "currentColor",
7682
7734
  xmlns: "http://www.w3.org/2000/svg",
7683
7735
  viewBox: "0 0 100 100"
7684
- }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7736
+ }, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
7685
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"
7686
7738
  })));
7687
7739
  }
7688
7740
 
7689
- var _path$r;
7741
+ var _path$s;
7690
7742
 
7691
- 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); }
7692
7744
 
7693
7745
  function SvgExclamation(props) {
7694
- return /*#__PURE__*/React.createElement("svg", _extends$t({
7746
+ return /*#__PURE__*/React.createElement("svg", _extends$u({
7695
7747
  className: "plc-w-4 plc-h-4 plc-mr-1",
7696
7748
  xmlns: "http://www.w3.org/2000/svg",
7697
7749
  viewBox: "0 0 20 20",
7698
7750
  fill: "currentColor"
7699
- }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
7751
+ }, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
7700
7752
  fillRule: "evenodd",
7701
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",
7702
7754
  clipRule: "evenodd"
7703
7755
  })));
7704
7756
  }
7705
7757
 
7706
- var _path$q, _path2$3;
7758
+ var _path$r, _path2$4;
7707
7759
 
7708
- 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); }
7709
7761
 
7710
7762
  function SvgSpinner(props) {
7711
- return /*#__PURE__*/React.createElement("svg", _extends$s({
7763
+ return /*#__PURE__*/React.createElement("svg", _extends$t({
7712
7764
  className: "plc-animate-spin",
7713
7765
  viewBox: "0 0 24 24",
7714
7766
  fill: "currentColor",
7715
7767
  xmlns: "http://www.w3.org/2000/svg"
7716
- }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
7768
+ }, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
7717
7769
  opacity: 0.2,
7718
7770
  fill: "evenodd",
7719
7771
  clipRule: "evenodd",
7720
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"
7721
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
7773
+ })), _path2$4 || (_path2$4 = /*#__PURE__*/React.createElement("path", {
7722
7774
  d: "M2 12C2 6.477 6.477 2 12 2v3a7 7 0 00-7 7H2z"
7723
7775
  })));
7724
7776
  }
@@ -8444,50 +8496,110 @@ var pure = pure$1;
8444
8496
  var pure_1 = pure.loadStripe;
8445
8497
 
8446
8498
  /**
8447
- * @typedef {Object} OptionsType
8448
- * @property {boolean} loadPaymentSDKs
8449
- * @property {boolean} enableURLTriggers
8450
- * @property {boolean} enableTheme
8451
- * @property {boolean} enablePaywalls
8452
- * @property {boolean} enableGoogleAnalytics
8453
- */
8454
-
8455
- /**
8456
- * Initializes pelcro features based on the options flag object
8457
- * @param {OptionsType} options
8458
- * @returns
8499
+ * Extracts error message from the response error object
8500
+ * @param {Object} error Error object
8501
+ * @return {string}
8459
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;
8460
8505
 
8461
- const optionsController = options => {
8462
- if (!options) {
8463
- 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;
8464
8508
  }
8465
8509
 
8466
- const optionsMethodsDict = {
8467
- loadPaymentSDKs: loadPaymentSDKs,
8468
- loadAuth0SDK: loadAuth0SDK,
8469
- enableURLTriggers: initViewFromURL,
8470
- enableTheme: applyPelcroTheme,
8471
- enablePaywalls: initPaywalls,
8472
- loadSecuritySDK: initSecuritySdk,
8473
- enableGoogleAnalytics: initGATracking
8474
- }; // 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;
8475
8512
 
8476
- Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
8477
- 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
+ }
8478
8515
 
8479
- return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
8480
- });
8481
- };
8482
- const initPaywalls = () => {
8483
- 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;
8484
8518
 
8485
- const paywallMethods = window.Pelcro.paywall;
8486
- 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
+ }
8487
8521
 
8488
- if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
8489
- // blur entitlements based content
8490
- 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
8491
8603
 
8492
8604
  if (isValidViewFromURL(viewFromURL) || !paywallMethods.isArticleRestricted()) {
8493
8605
  return;
@@ -8683,6 +8795,10 @@ const initViewFromURL = () => {
8683
8795
  return initCartFromUrl();
8684
8796
  }
8685
8797
 
8798
+ if (view === "email-verify") {
8799
+ return verifyEmailTokenFromUrl();
8800
+ }
8801
+
8686
8802
  switchView(view);
8687
8803
  });
8688
8804
  }
@@ -8832,6 +8948,33 @@ const initCartFromUrl = () => {
8832
8948
  });
8833
8949
  };
8834
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
+
8835
8978
  const defaultOptions = {
8836
8979
  loadPaymentSDKs: true,
8837
8980
  loadAuth0SDK: true,
@@ -9114,6 +9257,7 @@ const SUBSCRIBE = "CREATE_SUBSCRIPTION";
9114
9257
  const HANDLE_PAYPAL_SUBSCRIPTION = "HANDLE_PAYPAL_SUBSCRIPTION";
9115
9258
  const DISABLE_COUPON_BUTTON = "DISABLE_COUPON_BUTTON";
9116
9259
  const APPLY_COUPON_CODE = "APPLY_COUPON_CODE";
9260
+ const REMOVE_APPLIED_COUPON = "REMOVE_APPLIED_COUPON";
9117
9261
  const SET_PERCENT_OFF = "SET_PERCENT_OFF";
9118
9262
  const SET_COUPON = "SET_COUPON";
9119
9263
  const SET_COUPON_ERROR = "SET_COUPON_ERROR";
@@ -9170,67 +9314,7 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9170
9314
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9171
9315
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9172
9316
 
9173
- /**
9174
- * Extracts error message from the response error object
9175
- * @param {Object} error Error object
9176
- * @return {string}
9177
- */
9178
- const getErrorMessages = error => {
9179
- var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
9180
-
9181
- if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
9182
- return error.error.message;
9183
- }
9184
-
9185
- 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) {
9186
- var _error$response2, _error$response2$data;
9187
-
9188
- 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;
9189
- }
9190
-
9191
- 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) {
9192
- var _error$response4, _error$response4$data, _error$response4$data2;
9193
-
9194
- 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;
9195
- }
9196
-
9197
- const errorMessages = []; // enumerable error (ex: validation errors)
9198
-
9199
- 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]) => {
9200
- errorMessages.push(errorMessage);
9201
- }); // convert to multiline string
9202
-
9203
- return errorMessages.join("\n");
9204
- };
9205
- /**
9206
- * Executes function after a wait time of inactivity
9207
- * @param {function} func
9208
- * @param {number} waitTime
9209
- */
9210
-
9211
- const debounce = (func, waitTime) => {
9212
- let timeout;
9213
- return function executedFunction(...args) {
9214
- // The callback function to be executed after
9215
- // the debounce time has elapsed
9216
- const later = () => {
9217
- // null timeout to indicate the debounce ended
9218
- timeout = null;
9219
- func(...args);
9220
- }; // This will reset the waiting every function execution.
9221
- // This is the step that prevents the function from
9222
- // being executed because it will never reach the
9223
- // inside of the previous setTimeout
9224
-
9225
-
9226
- clearTimeout(timeout); // Restart the debounce waiting period.
9227
- // setTimeout returns a truthy value (it differs in web vs Node)
9228
-
9229
- timeout = setTimeout(later, waitTime);
9230
- };
9231
- };
9232
-
9233
- const initialState$f = {
9317
+ const initialState$g = {
9234
9318
  email: "",
9235
9319
  password: "",
9236
9320
  emailError: null,
@@ -9241,10 +9325,10 @@ const initialState$f = {
9241
9325
  content: ""
9242
9326
  }
9243
9327
  };
9244
- const store$f = /*#__PURE__*/createContext(initialState$f);
9328
+ const store$g = /*#__PURE__*/createContext(initialState$g);
9245
9329
  const {
9246
- Provider: Provider$f
9247
- } = store$f;
9330
+ Provider: Provider$g
9331
+ } = store$g;
9248
9332
 
9249
9333
  const LoginContainer = ({
9250
9334
  style,
@@ -9351,7 +9435,7 @@ const LoginContainer = ({
9351
9435
  });
9352
9436
 
9353
9437
  case RESET_LOGIN_FORM:
9354
- return initialState$f;
9438
+ return initialState$g;
9355
9439
 
9356
9440
  case DISABLE_LOGIN_BUTTON:
9357
9441
  return lib_7({ ...state,
@@ -9369,12 +9453,12 @@ const LoginContainer = ({
9369
9453
  default:
9370
9454
  return state;
9371
9455
  }
9372
- }, initialState$f);
9456
+ }, initialState$g);
9373
9457
  return /*#__PURE__*/React__default.createElement("div", {
9374
9458
  style: { ...style
9375
9459
  },
9376
9460
  className: `pelcro-container pelcro-login-container ${className}`
9377
- }, /*#__PURE__*/React__default.createElement(Provider$f, {
9461
+ }, /*#__PURE__*/React__default.createElement(Provider$g, {
9378
9462
  value: {
9379
9463
  state,
9380
9464
  dispatch
@@ -9382,12 +9466,12 @@ const LoginContainer = ({
9382
9466
  }, children.length ? children.map((child, i) => {
9383
9467
  if (child) {
9384
9468
  return /*#__PURE__*/React__default.cloneElement(child, {
9385
- store: store$f,
9469
+ store: store$g,
9386
9470
  key: i
9387
9471
  });
9388
9472
  }
9389
9473
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9390
- store: store$f
9474
+ store: store$g
9391
9475
  })));
9392
9476
  };
9393
9477
 
@@ -9632,7 +9716,7 @@ const LoginButton = ({
9632
9716
  buttonDisabled
9633
9717
  },
9634
9718
  dispatch
9635
- } = useContext(store$f);
9719
+ } = useContext(store$g);
9636
9720
  const {
9637
9721
  t
9638
9722
  } = useTranslation("login");
@@ -9653,23 +9737,23 @@ const LoginButton = ({
9653
9737
  };
9654
9738
 
9655
9739
  const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
9656
- store: store$f
9740
+ store: store$g
9657
9741
  }, props));
9658
9742
 
9659
9743
  const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
9660
- store: store$f
9744
+ store: store$g
9661
9745
  }, props));
9662
9746
 
9663
- var _path$p;
9747
+ var _path$q;
9664
9748
 
9665
- 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); }
9666
9750
 
9667
9751
  function SvgCheck(props) {
9668
- return /*#__PURE__*/React.createElement("svg", _extends$r({
9752
+ return /*#__PURE__*/React.createElement("svg", _extends$s({
9669
9753
  xmlns: "http://www.w3.org/2000/svg",
9670
9754
  fill: "currentColor",
9671
9755
  viewBox: "0 0 20 20"
9672
- }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
9756
+ }, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
9673
9757
  fillRule: "evenodd",
9674
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",
9675
9759
  clipRule: "evenodd"
@@ -9734,7 +9818,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
9734
9818
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
9735
9819
  facebookLoginRenderProps.FacebookLogin;
9736
9820
 
9737
- const initialState$e = {
9821
+ const initialState$f = {
9738
9822
  email: "",
9739
9823
  password: "",
9740
9824
  emailError: null,
@@ -9751,10 +9835,10 @@ const initialState$e = {
9751
9835
  content: ""
9752
9836
  }
9753
9837
  };
9754
- const store$e = /*#__PURE__*/createContext(initialState$e);
9838
+ const store$f = /*#__PURE__*/createContext(initialState$f);
9755
9839
  const {
9756
- Provider: Provider$e
9757
- } = store$e;
9840
+ Provider: Provider$f
9841
+ } = store$f;
9758
9842
 
9759
9843
  const RegisterContainer = ({
9760
9844
  style,
@@ -9937,7 +10021,7 @@ const RegisterContainer = ({
9937
10021
  });
9938
10022
 
9939
10023
  case RESET_LOGIN_FORM:
9940
- return initialState$e;
10024
+ return initialState$f;
9941
10025
 
9942
10026
  case DISABLE_REGISTRATION_BUTTON:
9943
10027
  return lib_7({ ...state,
@@ -9955,12 +10039,12 @@ const RegisterContainer = ({
9955
10039
  default:
9956
10040
  return state;
9957
10041
  }
9958
- }, initialState$e);
10042
+ }, initialState$f);
9959
10043
  return /*#__PURE__*/React__default.createElement("div", {
9960
10044
  style: { ...style
9961
10045
  },
9962
10046
  className: `pelcro-container pelcro-register-container ${className}`
9963
- }, /*#__PURE__*/React__default.createElement(Provider$e, {
10047
+ }, /*#__PURE__*/React__default.createElement(Provider$f, {
9964
10048
  value: {
9965
10049
  state,
9966
10050
  dispatch
@@ -9968,12 +10052,12 @@ const RegisterContainer = ({
9968
10052
  }, children.length ? children.map((child, i) => {
9969
10053
  if (child) {
9970
10054
  return /*#__PURE__*/React__default.cloneElement(child, {
9971
- store: store$e,
10055
+ store: store$f,
9972
10056
  key: i
9973
10057
  });
9974
10058
  }
9975
10059
  }) : /*#__PURE__*/React__default.cloneElement(children, {
9976
- store: store$e
10060
+ store: store$f
9977
10061
  })));
9978
10062
  };
9979
10063
  /**
@@ -9988,15 +10072,15 @@ function hasSecurityTokenEnabled$1() {
9988
10072
  return hasSecuritySdkLoaded;
9989
10073
  }
9990
10074
 
9991
- var _path$o;
10075
+ var _path$p;
9992
10076
 
9993
- 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); }
9994
10078
 
9995
10079
  function SvgFacebookLogo(props) {
9996
- return /*#__PURE__*/React.createElement("svg", _extends$q({
10080
+ return /*#__PURE__*/React.createElement("svg", _extends$r({
9997
10081
  xmlns: "http://www.w3.org/2000/svg",
9998
10082
  viewBox: "88.428 12.828 107.543 207.085"
9999
- }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10083
+ }, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
10000
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",
10001
10085
  fill: "#3c5a9a"
10002
10086
  })));
@@ -10013,10 +10097,10 @@ const FacebookLoginButton = ({
10013
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;
10014
10098
  const {
10015
10099
  dispatch: loginDispatch
10016
- } = useContext(store$f);
10100
+ } = useContext(store$g);
10017
10101
  const {
10018
10102
  dispatch: registerDispatch
10019
- } = useContext(store$e);
10103
+ } = useContext(store$f);
10020
10104
 
10021
10105
  const onSuccess = facebookUser => {
10022
10106
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10069,18 +10153,18 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10069
10153
  unwrapExports(googleLogin);
10070
10154
  var googleLogin_1 = googleLogin.GoogleLogin;
10071
10155
 
10072
- var _path$n, _path2$2, _path3$1, _path4;
10156
+ var _path$o, _path2$3, _path3$1, _path4;
10073
10157
 
10074
- 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); }
10075
10159
 
10076
10160
  function SvgGoogleLogo(props) {
10077
- return /*#__PURE__*/React.createElement("svg", _extends$p({
10161
+ return /*#__PURE__*/React.createElement("svg", _extends$q({
10078
10162
  viewBox: "0 0 24 24",
10079
10163
  xmlns: "http://www.w3.org/2000/svg"
10080
- }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10164
+ }, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
10081
10165
  fill: "#4285F4",
10082
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"
10083
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
10167
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
10084
10168
  fill: "#34A853",
10085
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"
10086
10170
  })), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
@@ -10103,10 +10187,10 @@ const GoogleLoginButton = ({
10103
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;
10104
10188
  const {
10105
10189
  dispatch: loginDispatch
10106
- } = useContext(store$f);
10190
+ } = useContext(store$g);
10107
10191
  const {
10108
10192
  dispatch: registerDispatch
10109
- } = useContext(store$e);
10193
+ } = useContext(store$f);
10110
10194
 
10111
10195
  const onSuccess = response => {
10112
10196
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10154,15 +10238,15 @@ const GoogleLoginButton = ({
10154
10238
  }) : null;
10155
10239
  };
10156
10240
 
10157
- var _path$m;
10241
+ var _path$n;
10158
10242
 
10159
- 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); }
10160
10244
 
10161
10245
  function SvgAuth0Logo(props) {
10162
- return /*#__PURE__*/React.createElement("svg", _extends$o({
10246
+ return /*#__PURE__*/React.createElement("svg", _extends$p({
10163
10247
  viewBox: "0 0 256 285",
10164
10248
  xmlns: "http://www.w3.org/2000/svg"
10165
- }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
10249
+ }, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
10166
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"
10167
10251
  })));
10168
10252
  }
@@ -10173,30 +10257,30 @@ const Auth0LoginButton = ({
10173
10257
  labelClassName = "",
10174
10258
  iconClassName = ""
10175
10259
  }) => {
10176
- if (!window.auth0 && window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url) {
10177
- console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
10178
- }
10179
-
10180
- const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url && window.auth0);
10260
+ const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
10181
10261
  const auth0InstanceRef = React__default.useRef(null);
10182
10262
  React__default.useEffect(() => {
10183
- if (auth0Enabled) {
10263
+ if (auth0Enabled && window.auth0 && auth0InstanceRef.current === null) {
10184
10264
  auth0InstanceRef.current = new window.auth0.WebAuth({
10185
10265
  domain: window.Pelcro.site.read().auth0_base_url,
10186
10266
  clientID: window.Pelcro.site.read().auth0_client_id
10187
10267
  });
10188
10268
  }
10189
- }, []);
10269
+ }, [auth0Enabled, window.auth0]);
10190
10270
  const {
10191
10271
  dispatch: loginDispatch
10192
- } = useContext(store$f);
10272
+ } = useContext(store$g);
10193
10273
  const {
10194
10274
  dispatch: registerDispatch
10195
- } = useContext(store$e);
10275
+ } = useContext(store$f);
10196
10276
 
10197
10277
  function handleClick() {
10198
10278
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
10199
10279
 
10280
+ if (!window.auth0) {
10281
+ return console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
10282
+ }
10283
+
10200
10284
  (_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, {
10201
10285
  responseType: "token id_token",
10202
10286
  owp: true // close popup when finished
@@ -10321,19 +10405,19 @@ function LoginView(props) {
10321
10405
  }, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
10322
10406
  }
10323
10407
 
10324
- var _path$l, _path2$1, _path3;
10408
+ var _path$m, _path2$2, _path3;
10325
10409
 
10326
- 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); }
10410
+ 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); }
10327
10411
 
10328
10412
  function SvgPelcroAuthorship(props) {
10329
- return /*#__PURE__*/React.createElement("svg", _extends$n({
10413
+ return /*#__PURE__*/React.createElement("svg", _extends$o({
10330
10414
  xmlns: "http://www.w3.org/2000/svg",
10331
10415
  viewBox: "0 -80.652 497.072 179.991"
10332
- }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
10416
+ }, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
10333
10417
  fill: "none",
10334
10418
  stroke: "#4a4a4a",
10335
10419
  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"
10336
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
10420
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
10337
10421
  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",
10338
10422
  fill: "#4a4a4a"
10339
10423
  })), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
@@ -10476,11 +10560,11 @@ function LoginModal({
10476
10560
  LoginModal.viewId = "login";
10477
10561
 
10478
10562
  const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
10479
- store: store$e
10563
+ store: store$f
10480
10564
  }, props));
10481
10565
 
10482
10566
  const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
10483
- store: store$e
10567
+ store: store$f
10484
10568
  }, props));
10485
10569
 
10486
10570
  const RegisterButton = ({
@@ -10500,7 +10584,7 @@ const RegisterButton = ({
10500
10584
  buttonDisabled
10501
10585
  },
10502
10586
  dispatch
10503
- } = useContext(store$e);
10587
+ } = useContext(store$f);
10504
10588
  const {
10505
10589
  t
10506
10590
  } = useTranslation("register");
@@ -10638,7 +10722,7 @@ function FirstName({
10638
10722
  }
10639
10723
 
10640
10724
  const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
10641
- store: store$e
10725
+ store: store$f
10642
10726
  }, props));
10643
10727
 
10644
10728
  function LastName({
@@ -10669,7 +10753,7 @@ function LastName({
10669
10753
  }
10670
10754
 
10671
10755
  const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
10672
- store: store$e
10756
+ store: store$f
10673
10757
  }, props));
10674
10758
 
10675
10759
  /**
@@ -10793,7 +10877,7 @@ function TextInput({
10793
10877
 
10794
10878
  const RegisterTextInput = props => {
10795
10879
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
10796
- store: store$e
10880
+ store: store$f
10797
10881
  }));
10798
10882
  };
10799
10883
 
@@ -10836,15 +10920,21 @@ function RegisterModal(props) {
10836
10920
  };
10837
10921
 
10838
10922
  const handleAfterRegistrationLogic = () => {
10839
- var _ReactGA$event;
10923
+ var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
10840
10924
 
10841
10925
  ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
10842
10926
  category: "ACTIONS",
10843
10927
  action: "Registered",
10844
10928
  nonInteraction: true
10845
- }); // If product and plan are not selected
10929
+ });
10930
+ 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;
10931
+
10932
+ if (isEmailVerificationEnabled) {
10933
+ return switchView("email-verify");
10934
+ }
10846
10935
 
10847
10936
  if (!product && !order && !giftCode) {
10937
+ // If product and plan are not selected
10848
10938
  return resetView();
10849
10939
  } // If this is a redeem gift
10850
10940
 
@@ -11114,7 +11204,7 @@ class SelectModal extends Component {
11114
11204
 
11115
11205
  const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
11116
11206
  const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
11117
- const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.find(matchedProduct => matchedProduct.id !== product.id));
11207
+ const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
11118
11208
  return [productsThatMatchArticleTag, allProductsMinusMatched];
11119
11209
  }
11120
11210
  });
@@ -12803,7 +12893,7 @@ class PaypalGateWay {
12803
12893
 
12804
12894
  /** @type {PaymentStateType} */
12805
12895
 
12806
- const initialState$d = {
12896
+ const initialState$e = {
12807
12897
  disableSubmit: false,
12808
12898
  isLoading: false,
12809
12899
  disableCouponButton: false,
@@ -12822,10 +12912,10 @@ const initialState$d = {
12822
12912
  content: ""
12823
12913
  }
12824
12914
  };
12825
- const store$d = /*#__PURE__*/createContext(initialState$d);
12915
+ const store$e = /*#__PURE__*/createContext(initialState$e);
12826
12916
  const {
12827
- Provider: Provider$d
12828
- } = store$d;
12917
+ Provider: Provider$e
12918
+ } = store$e;
12829
12919
 
12830
12920
  const PaymentMethodContainerWithoutStripe = ({
12831
12921
  style,
@@ -12987,15 +13077,50 @@ const PaymentMethodContainerWithoutStripe = ({
12987
13077
  });
12988
13078
 
12989
13079
  if (err) {
13080
+ onFailure(err);
13081
+ dispatch({
13082
+ type: SET_COUPON_ERROR,
13083
+ payload: getErrorMessages(err)
13084
+ }); // remove current coupon
13085
+
13086
+ dispatch({
13087
+ type: SET_COUPON,
13088
+ payload: null
13089
+ });
12990
13090
  dispatch({
12991
13091
  type: SET_PERCENT_OFF,
12992
13092
  payload: ""
12993
13093
  });
12994
- onFailure(err);
12995
- return dispatch({
12996
- type: SET_COUPON_ERROR,
12997
- payload: getErrorMessages(err)
13094
+ dispatch({
13095
+ type: SET_UPDATED_PRICE,
13096
+ payload: null
13097
+ });
13098
+ dispatch({
13099
+ type: SET_TAX_AMOUNT,
13100
+ payload: null
12998
13101
  });
13102
+ const {
13103
+ currentPlan
13104
+ } = state;
13105
+
13106
+ if (currentPlan) {
13107
+ var _currentPlan$quantity;
13108
+
13109
+ const quantity = (_currentPlan$quantity = currentPlan.quantity) !== null && _currentPlan$quantity !== void 0 ? _currentPlan$quantity : 1;
13110
+ const price = currentPlan.amount;
13111
+ dispatch({
13112
+ type: SET_UPDATED_PRICE,
13113
+ // set original plan price
13114
+ payload: price * quantity
13115
+ });
13116
+ dispatch({
13117
+ type: UPDATE_PAYMENT_REQUEST
13118
+ }); // update the new amount with taxes if site has taxes enabled
13119
+
13120
+ updateTotalAmountWithTax();
13121
+ }
13122
+
13123
+ return;
12999
13124
  }
13000
13125
 
13001
13126
  dispatch({
@@ -13085,6 +13210,54 @@ const PaymentMethodContainerWithoutStripe = ({
13085
13210
 
13086
13211
  const debouncedApplyCouponCode = useRef(debounce(onApplyCouponCode, 1000)).current;
13087
13212
 
13213
+ const removeAppliedCoupon = state => {
13214
+ state.couponCode = "";
13215
+ dispatch({
13216
+ type: SET_COUPON_ERROR,
13217
+ payload: ""
13218
+ });
13219
+ dispatch({
13220
+ type: SHOW_COUPON_FIELD,
13221
+ payload: false
13222
+ });
13223
+ dispatch({
13224
+ type: SET_COUPON,
13225
+ payload: null
13226
+ });
13227
+ dispatch({
13228
+ type: SET_PERCENT_OFF,
13229
+ payload: ""
13230
+ });
13231
+ dispatch({
13232
+ type: SET_UPDATED_PRICE,
13233
+ payload: null
13234
+ });
13235
+ dispatch({
13236
+ type: SET_TAX_AMOUNT,
13237
+ payload: null
13238
+ });
13239
+ const {
13240
+ currentPlan
13241
+ } = state;
13242
+
13243
+ if (currentPlan) {
13244
+ var _currentPlan$quantity2;
13245
+
13246
+ const quantity = (_currentPlan$quantity2 = currentPlan.quantity) !== null && _currentPlan$quantity2 !== void 0 ? _currentPlan$quantity2 : 1;
13247
+ const price = currentPlan.amount;
13248
+ dispatch({
13249
+ type: SET_UPDATED_PRICE,
13250
+ // set original plan price
13251
+ payload: price * quantity
13252
+ });
13253
+ dispatch({
13254
+ type: UPDATE_PAYMENT_REQUEST
13255
+ }); // update the new amount with taxes if site has taxes enabled
13256
+
13257
+ updateTotalAmountWithTax();
13258
+ }
13259
+ };
13260
+
13088
13261
  const subscribe = (stripeSource, state, dispatch) => {
13089
13262
  const {
13090
13263
  couponCode
@@ -13702,6 +13875,9 @@ const PaymentMethodContainerWithoutStripe = ({
13702
13875
  disableCouponButton: true
13703
13876
  }, (state, dispatch) => onApplyCouponCode(state, dispatch));
13704
13877
 
13878
+ case REMOVE_APPLIED_COUPON:
13879
+ return lib_5(state, () => removeAppliedCoupon(state));
13880
+
13705
13881
  case SET_COUPON:
13706
13882
  return lib_7({ ...state,
13707
13883
  couponObject: action.payload
@@ -13730,21 +13906,21 @@ const PaymentMethodContainerWithoutStripe = ({
13730
13906
  default:
13731
13907
  return state;
13732
13908
  }
13733
- }, initialState$d);
13909
+ }, initialState$e);
13734
13910
  return /*#__PURE__*/React__default.createElement("div", {
13735
13911
  style: { ...style
13736
13912
  },
13737
13913
  className: `pelcro-container pelcro-payment-container ${className}`
13738
- }, /*#__PURE__*/React__default.createElement(Provider$d, {
13914
+ }, /*#__PURE__*/React__default.createElement(Provider$e, {
13739
13915
  value: {
13740
13916
  state,
13741
13917
  dispatch
13742
13918
  }
13743
13919
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
13744
- store: store$d,
13920
+ store: store$e,
13745
13921
  key: i
13746
13922
  })) : /*#__PURE__*/React__default.cloneElement(children, {
13747
- store: store$d
13923
+ store: store$e
13748
13924
  })));
13749
13925
  };
13750
13926
 
@@ -13766,7 +13942,7 @@ const PaymentMethodContainer = props => {
13766
13942
  stripeAccount: window.Pelcro.site.read().account_id,
13767
13943
  locale: getPageOrDefaultLanguage()
13768
13944
  }, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
13769
- store: store$d
13945
+ store: store$e
13770
13946
  }, props))));
13771
13947
  }
13772
13948
 
@@ -13819,7 +13995,7 @@ const PelcroPaymentRequestButton = props => {
13819
13995
  currentPlan,
13820
13996
  updatedPrice
13821
13997
  }
13822
- } = useContext(store$d);
13998
+ } = useContext(store$e);
13823
13999
 
13824
14000
  const updatePaymentRequest = () => {
13825
14001
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -13870,12 +14046,16 @@ const DiscountedPrice = props => {
13870
14046
  var _order$currency, _order$, _plan$quantity;
13871
14047
 
13872
14048
  const {
14049
+ t
14050
+ } = useTranslation("checkoutForm");
14051
+ const {
14052
+ dispatch,
13873
14053
  state: {
13874
14054
  updatedPrice,
13875
14055
  taxAmount,
13876
14056
  percentOff
13877
14057
  }
13878
- } = useContext(store$d);
14058
+ } = useContext(store$e);
13879
14059
  const {
13880
14060
  order,
13881
14061
  plan
@@ -13885,12 +14065,22 @@ const DiscountedPrice = props => {
13885
14065
  const discountedPriceWithoutTax = updatedPrice - taxAmount;
13886
14066
  const priceFormatted = getFormattedPriceByLocal(order ? updatedPrice : discountedPriceWithoutTax * planQuantity, ecommOrderCurrency !== null && ecommOrderCurrency !== void 0 ? ecommOrderCurrency : plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
13887
14067
 
14068
+ const onCouponRemove = () => {
14069
+ dispatch({
14070
+ type: REMOVE_APPLIED_COUPON
14071
+ });
14072
+ };
14073
+
13888
14074
  if (percentOff) {
13889
14075
  return /*#__PURE__*/React__default.createElement("div", Object.assign({
13890
- className: "plc-flex plc-justify-center plc-mt-2 pelcro-discount"
13891
- }, props), "(-", percentOff, ")", " ", /*#__PURE__*/React__default.createElement("span", {
13892
- className: "plc-font-bold pelcro-discounted-price"
13893
- }, priceFormatted));
14076
+ className: "plc-flex plc-items-center plc-justify-center plc-mt-2 pelcro-discount"
14077
+ }, props), "(-", percentOff, ")", /*#__PURE__*/React__default.createElement("span", {
14078
+ className: "plc-ml-1 plc-font-bold pelcro-discounted-price"
14079
+ }, priceFormatted), /*#__PURE__*/React__default.createElement(Button, {
14080
+ variant: "ghost",
14081
+ className: "plc-ml-2 plc-text-red-500 focus:plc-ring-red-500 pelcro-dashboard-sub-cancel-button",
14082
+ onClick: onCouponRemove
14083
+ }, "\u2715 ", t("labels.removeCoupon")));
13894
14084
  }
13895
14085
 
13896
14086
  return "";
@@ -13915,7 +14105,7 @@ const SubmitPaymentMethod = ({
13915
14105
  isLoading,
13916
14106
  updatedPrice
13917
14107
  }
13918
- } = useContext(store$d);
14108
+ } = useContext(store$e);
13919
14109
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
13920
14110
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
13921
14111
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -13936,17 +14126,17 @@ const SubmitPaymentMethod = ({
13936
14126
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
13937
14127
  };
13938
14128
 
13939
- var _path$k;
14129
+ var _path$l;
13940
14130
 
13941
- 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); }
14131
+ 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); }
13942
14132
 
13943
14133
  function SvgArrowLeft(props) {
13944
- return /*#__PURE__*/React.createElement("svg", _extends$m({
14134
+ return /*#__PURE__*/React.createElement("svg", _extends$n({
13945
14135
  xmlns: "http://www.w3.org/2000/svg",
13946
14136
  fill: "none",
13947
14137
  viewBox: "0 0 24 24",
13948
14138
  stroke: "currentColor"
13949
- }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
14139
+ }, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
13950
14140
  strokeLinecap: "round",
13951
14141
  strokeLinejoin: "round",
13952
14142
  strokeWidth: 2,
@@ -13965,7 +14155,7 @@ const ApplyCouponButton = ({
13965
14155
  disableCouponButton
13966
14156
  },
13967
14157
  dispatch
13968
- } = useContext(store$d);
14158
+ } = useContext(store$e);
13969
14159
  const {
13970
14160
  t
13971
14161
  } = useTranslation("checkoutForm");
@@ -13999,7 +14189,7 @@ const CouponCodeField = props => {
13999
14189
  couponCode,
14000
14190
  couponError
14001
14191
  }
14002
- } = useContext(store$d);
14192
+ } = useContext(store$e);
14003
14193
 
14004
14194
  const onCouponCodeChange = e => {
14005
14195
  dispatch({
@@ -14028,17 +14218,17 @@ const CouponCodeField = props => {
14028
14218
  }, props));
14029
14219
  };
14030
14220
 
14031
- var _path$j;
14221
+ var _path$k;
14032
14222
 
14033
- 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); }
14223
+ 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); }
14034
14224
 
14035
14225
  function SvgTicket(props) {
14036
- return /*#__PURE__*/React.createElement("svg", _extends$l({
14226
+ return /*#__PURE__*/React.createElement("svg", _extends$m({
14037
14227
  xmlns: "http://www.w3.org/2000/svg",
14038
14228
  fill: "none",
14039
14229
  viewBox: "0 0 24 24",
14040
14230
  stroke: "currentColor"
14041
- }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
14231
+ }, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
14042
14232
  strokeLinecap: "round",
14043
14233
  strokeLinejoin: "round",
14044
14234
  strokeWidth: 2,
@@ -14055,7 +14245,7 @@ const CouponCode = ({
14055
14245
  state: {
14056
14246
  enableCouponField
14057
14247
  }
14058
- } = useContext(store$d);
14248
+ } = useContext(store$e);
14059
14249
  const {
14060
14250
  t
14061
14251
  } = useTranslation("checkoutForm");
@@ -14312,7 +14502,7 @@ const PaypalSubscribeButton = props => {
14312
14502
  const {
14313
14503
  dispatch,
14314
14504
  state
14315
- } = useContext(store$d);
14505
+ } = useContext(store$e);
14316
14506
  const {
14317
14507
  product,
14318
14508
  plan,
@@ -14397,16 +14587,16 @@ const BankRedirection = () => {
14397
14587
  }));
14398
14588
  };
14399
14589
 
14400
- var _path$i;
14590
+ var _path$j;
14401
14591
 
14402
- 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); }
14592
+ 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); }
14403
14593
 
14404
14594
  function SvgLock(props) {
14405
- return /*#__PURE__*/React.createElement("svg", _extends$k({
14595
+ return /*#__PURE__*/React.createElement("svg", _extends$l({
14406
14596
  xmlns: "http://www.w3.org/2000/svg",
14407
14597
  viewBox: "0 0 20 20",
14408
14598
  fill: "currentColor"
14409
- }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
14599
+ }, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
14410
14600
  fillRule: "evenodd",
14411
14601
  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",
14412
14602
  clipRule: "evenodd"
@@ -14423,7 +14613,7 @@ const SelectedPaymentMethod = () => {
14423
14613
  state: {
14424
14614
  isLoading
14425
14615
  }
14426
- } = useContext(store$d);
14616
+ } = useContext(store$e);
14427
14617
  const {
14428
14618
  switchView,
14429
14619
  selectedPaymentMethodId
@@ -14465,7 +14655,7 @@ const TaxAmount = () => {
14465
14655
  state: {
14466
14656
  taxAmount
14467
14657
  }
14468
- } = useContext(store$d);
14658
+ } = useContext(store$e);
14469
14659
  const {
14470
14660
  plan
14471
14661
  } = usePelcro();
@@ -14628,12 +14818,12 @@ function SubscriptionRenewModal({
14628
14818
  }
14629
14819
  SubscriptionRenewModal.viewId = "subscription-renew";
14630
14820
 
14631
- var _path$h;
14821
+ var _path$i;
14632
14822
 
14633
- 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); }
14823
+ 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); }
14634
14824
 
14635
14825
  function SvgGift(props) {
14636
- return /*#__PURE__*/React.createElement("svg", _extends$j({
14826
+ return /*#__PURE__*/React.createElement("svg", _extends$k({
14637
14827
  className: "plc-w-6 plc-h-6 plc-mr-2",
14638
14828
  fill: "none",
14639
14829
  stroke: "currentColor",
@@ -14642,7 +14832,7 @@ function SvgGift(props) {
14642
14832
  strokeWidth: 2,
14643
14833
  viewBox: "0 0 24 24",
14644
14834
  xmlns: "http://www.w3.org/2000/svg"
14645
- }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
14835
+ }, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
14646
14836
  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"
14647
14837
  })));
14648
14838
  }
@@ -14973,7 +15163,7 @@ class DefaultNewsLetter extends Component {
14973
15163
 
14974
15164
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
14975
15165
 
14976
- const initialState$c = {
15166
+ const initialState$d = {
14977
15167
  didSubToNewslettersBefore: false,
14978
15168
  newsletters: [],
14979
15169
  isListLoading: true,
@@ -14983,10 +15173,10 @@ const initialState$c = {
14983
15173
  content: ""
14984
15174
  }
14985
15175
  };
14986
- const store$c = /*#__PURE__*/createContext(initialState$c);
15176
+ const store$d = /*#__PURE__*/createContext(initialState$d);
14987
15177
  const {
14988
- Provider: Provider$c
14989
- } = store$c;
15178
+ Provider: Provider$d
15179
+ } = store$d;
14990
15180
 
14991
15181
  const NewsletterUpdateContainer = ({
14992
15182
  style,
@@ -15099,7 +15289,7 @@ const NewsletterUpdateContainer = ({
15099
15289
  default:
15100
15290
  return state;
15101
15291
  }
15102
- }, initialState$c);
15292
+ }, initialState$d);
15103
15293
  useEffect(() => {
15104
15294
  const getUserNewsletters = () => {
15105
15295
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -15143,7 +15333,7 @@ const NewsletterUpdateContainer = ({
15143
15333
  style: { ...style
15144
15334
  },
15145
15335
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
15146
- }, /*#__PURE__*/React__default.createElement(Provider$c, {
15336
+ }, /*#__PURE__*/React__default.createElement(Provider$d, {
15147
15337
  value: {
15148
15338
  state,
15149
15339
  dispatch
@@ -15151,12 +15341,12 @@ const NewsletterUpdateContainer = ({
15151
15341
  }, children.length ? children.map((child, i) => {
15152
15342
  if (child) {
15153
15343
  return /*#__PURE__*/React__default.cloneElement(child, {
15154
- store: store$c,
15344
+ store: store$d,
15155
15345
  key: i
15156
15346
  });
15157
15347
  }
15158
15348
  }) : /*#__PURE__*/React__default.cloneElement(children, {
15159
- store: store$c
15349
+ store: store$d
15160
15350
  })));
15161
15351
  };
15162
15352
 
@@ -15171,7 +15361,7 @@ const NewsletterUpdateButton = ({
15171
15361
  isSubmitting,
15172
15362
  isListLoading
15173
15363
  }
15174
- } = useContext(store$c);
15364
+ } = useContext(store$d);
15175
15365
  const {
15176
15366
  t
15177
15367
  } = useTranslation("newsletter");
@@ -15201,7 +15391,7 @@ const NewsletterUpdateList = () => {
15201
15391
  newsletters,
15202
15392
  isListLoading
15203
15393
  }
15204
- } = useContext(store$c);
15394
+ } = useContext(store$d);
15205
15395
 
15206
15396
  if (isListLoading) {
15207
15397
  return /*#__PURE__*/React__default.createElement(Loader, {
@@ -15405,7 +15595,7 @@ function SubscriptionCreateModal({
15405
15595
  SubscriptionCreateModal.viewId = "subscription-create";
15406
15596
 
15407
15597
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
15408
- const initialState$b = {
15598
+ const initialState$c = {
15409
15599
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
15410
15600
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
15411
15601
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -15418,10 +15608,10 @@ const initialState$b = {
15418
15608
  content: ""
15419
15609
  }
15420
15610
  };
15421
- const store$b = /*#__PURE__*/createContext(initialState$b);
15611
+ const store$c = /*#__PURE__*/createContext(initialState$c);
15422
15612
  const {
15423
- Provider: Provider$b
15424
- } = store$b;
15613
+ Provider: Provider$c
15614
+ } = store$c;
15425
15615
 
15426
15616
  const UserUpdateContainer = ({
15427
15617
  style,
@@ -15553,27 +15743,27 @@ const UserUpdateContainer = ({
15553
15743
  default:
15554
15744
  return state;
15555
15745
  }
15556
- }, initialState$b);
15746
+ }, initialState$c);
15557
15747
  return /*#__PURE__*/React__default.createElement("div", {
15558
15748
  style: { ...style
15559
15749
  },
15560
15750
  className: `pelcro-container pelcro-user-update-container ${className}`
15561
- }, /*#__PURE__*/React__default.createElement(Provider$b, {
15751
+ }, /*#__PURE__*/React__default.createElement(Provider$c, {
15562
15752
  value: {
15563
15753
  state,
15564
15754
  dispatch
15565
15755
  }
15566
15756
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
15567
- store: store$b,
15757
+ store: store$c,
15568
15758
  key: i
15569
15759
  })) : /*#__PURE__*/React__default.cloneElement(children, {
15570
- store: store$b
15760
+ store: store$c
15571
15761
  })));
15572
15762
  };
15573
15763
 
15574
15764
  const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
15575
15765
  disabled: true,
15576
- store: store$b
15766
+ store: store$c
15577
15767
  }, props));
15578
15768
 
15579
15769
  const UserUpdateButton = ({
@@ -15586,7 +15776,7 @@ const UserUpdateButton = ({
15586
15776
  buttonDisabled
15587
15777
  },
15588
15778
  dispatch
15589
- } = useContext(store$b);
15779
+ } = useContext(store$c);
15590
15780
  const {
15591
15781
  t
15592
15782
  } = useTranslation("userEdit");
@@ -15603,11 +15793,11 @@ const UserUpdateButton = ({
15603
15793
  };
15604
15794
 
15605
15795
  const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
15606
- store: store$b
15796
+ store: store$c
15607
15797
  }, props));
15608
15798
 
15609
15799
  const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
15610
- store: store$b
15800
+ store: store$c
15611
15801
  }, props));
15612
15802
 
15613
15803
  function Phone({
@@ -15636,22 +15826,22 @@ function Phone({
15636
15826
  }
15637
15827
 
15638
15828
  const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
15639
- store: store$b
15829
+ store: store$c
15640
15830
  }, props));
15641
15831
 
15642
15832
  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";
15643
15833
 
15644
- var _path$g;
15834
+ var _path$h;
15645
15835
 
15646
- 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); }
15836
+ 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); }
15647
15837
 
15648
15838
  function SvgEdit(props) {
15649
- return /*#__PURE__*/React.createElement("svg", _extends$i({
15839
+ return /*#__PURE__*/React.createElement("svg", _extends$j({
15650
15840
  className: "plc-w-6 plc-h-6",
15651
15841
  xmlns: "http://www.w3.org/2000/svg",
15652
15842
  viewBox: "0 0 20 20",
15653
15843
  fill: "currentColor"
15654
- }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
15844
+ }, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
15655
15845
  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"
15656
15846
  })));
15657
15847
  }
@@ -15783,16 +15973,16 @@ function DisplayName({
15783
15973
  }
15784
15974
 
15785
15975
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
15786
- store: store$b
15976
+ store: store$c
15787
15977
  }, props));
15788
15978
 
15789
15979
  const UserUpdateTextInput = props => {
15790
15980
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
15791
- store: store$b
15981
+ store: store$c
15792
15982
  }));
15793
15983
  };
15794
15984
 
15795
- const initialState$a = {
15985
+ const initialState$b = {
15796
15986
  isSubmitting: false,
15797
15987
  firstName: "",
15798
15988
  firstNameError: "",
@@ -15817,10 +16007,10 @@ const initialState$a = {
15817
16007
  content: ""
15818
16008
  }
15819
16009
  };
15820
- const store$a = /*#__PURE__*/createContext(initialState$a);
16010
+ const store$b = /*#__PURE__*/createContext(initialState$b);
15821
16011
  const {
15822
- Provider: Provider$a
15823
- } = store$a;
16012
+ Provider: Provider$b
16013
+ } = store$b;
15824
16014
 
15825
16015
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
15826
16016
 
@@ -16027,7 +16217,7 @@ const AddressCreateContainer = ({
16027
16217
  default:
16028
16218
  return state;
16029
16219
  }
16030
- }, initialState$a);
16220
+ }, initialState$b);
16031
16221
  useEffect(() => {
16032
16222
  const getStates = () => {
16033
16223
  dispatch({
@@ -16059,16 +16249,16 @@ const AddressCreateContainer = ({
16059
16249
  style: { ...style
16060
16250
  },
16061
16251
  className: `pelcro-container pelcro-address-create-container ${className}`
16062
- }, /*#__PURE__*/React__default.createElement(Provider$a, {
16252
+ }, /*#__PURE__*/React__default.createElement(Provider$b, {
16063
16253
  value: {
16064
16254
  state,
16065
16255
  dispatch
16066
16256
  }
16067
16257
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16068
- store: store$a,
16258
+ store: store$b,
16069
16259
  key: i
16070
16260
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16071
- store: store$a
16261
+ store: store$b
16072
16262
  })));
16073
16263
  };
16074
16264
 
@@ -16079,7 +16269,7 @@ function AddressCreateFirstName(props) {
16079
16269
  firstName,
16080
16270
  firstNameError
16081
16271
  }
16082
- } = useContext(store$a);
16272
+ } = useContext(store$b);
16083
16273
 
16084
16274
  const handleBlur = () => {
16085
16275
  return dispatch({
@@ -16122,7 +16312,7 @@ function AddressCreateLastName(props) {
16122
16312
  lastName,
16123
16313
  lastNameError
16124
16314
  }
16125
- } = useContext(store$a);
16315
+ } = useContext(store$b);
16126
16316
 
16127
16317
  const handleBlur = () => {
16128
16318
  return dispatch({
@@ -16165,7 +16355,7 @@ function AddressCreateLine1(props) {
16165
16355
  line1,
16166
16356
  line1Error
16167
16357
  }
16168
- } = useContext(store$a);
16358
+ } = useContext(store$b);
16169
16359
 
16170
16360
  const handleBlur = () => {
16171
16361
  return dispatch({
@@ -16208,7 +16398,7 @@ function AddressCreateCity(props) {
16208
16398
  city,
16209
16399
  cityError
16210
16400
  }
16211
- } = useContext(store$a);
16401
+ } = useContext(store$b);
16212
16402
 
16213
16403
  const handleBlur = () => {
16214
16404
  return dispatch({
@@ -16251,7 +16441,7 @@ function AddressCreatePostalCode(props) {
16251
16441
  postalCode,
16252
16442
  postalCodeError
16253
16443
  }
16254
- } = useContext(store$a);
16444
+ } = useContext(store$b);
16255
16445
 
16256
16446
  const handleBlur = () => {
16257
16447
  return dispatch({
@@ -16297,7 +16487,7 @@ const AddressCreateSubmit = ({
16297
16487
  state: {
16298
16488
  isSubmitting
16299
16489
  }
16300
- } = useContext(store$a);
16490
+ } = useContext(store$b);
16301
16491
  const {
16302
16492
  t
16303
16493
  } = useTranslation("address");
@@ -16408,7 +16598,7 @@ function CountrySelect({
16408
16598
  }
16409
16599
 
16410
16600
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
16411
- store: store$a
16601
+ store: store$b
16412
16602
  }, props));
16413
16603
 
16414
16604
  function StateSelect({
@@ -16496,7 +16686,7 @@ function StateSelect({
16496
16686
  }
16497
16687
 
16498
16688
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
16499
- store: store$a
16689
+ store: store$b
16500
16690
  }, props));
16501
16691
 
16502
16692
  const AddressCreateView = props => {
@@ -16601,18 +16791,18 @@ AddressCreateModal.viewId = "address-create";
16601
16791
 
16602
16792
  const AddressCreateTextInput = props => {
16603
16793
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
16604
- store: store$a
16794
+ store: store$b
16605
16795
  }));
16606
16796
  };
16607
16797
 
16608
16798
  const AddressCreateLine2 = props => {
16609
16799
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
16610
16800
  fieldName: "line2",
16611
- store: store$a
16801
+ store: store$b
16612
16802
  }, props));
16613
16803
  };
16614
16804
 
16615
- const initialState$9 = {
16805
+ const initialState$a = {
16616
16806
  isSubmitting: false,
16617
16807
  firstName: "",
16618
16808
  firstNameError: "",
@@ -16637,10 +16827,10 @@ const initialState$9 = {
16637
16827
  content: ""
16638
16828
  }
16639
16829
  };
16640
- const store$9 = /*#__PURE__*/createContext(initialState$9);
16830
+ const store$a = /*#__PURE__*/createContext(initialState$a);
16641
16831
  const {
16642
- Provider: Provider$9
16643
- } = store$9;
16832
+ Provider: Provider$a
16833
+ } = store$a;
16644
16834
 
16645
16835
  const AddressUpdateContainer = ({
16646
16836
  style,
@@ -16692,7 +16882,7 @@ const AddressUpdateContainer = ({
16692
16882
  const thisAddress = addresses[address];
16693
16883
 
16694
16884
  if (+thisAddress.id === +addressId) {
16695
- const newState = { ...initialState$9,
16885
+ const newState = { ...initialState$a,
16696
16886
  firstName: thisAddress.first_name,
16697
16887
  lastName: thisAddress.last_name,
16698
16888
  line1: thisAddress.line1,
@@ -16825,7 +17015,7 @@ const AddressUpdateContainer = ({
16825
17015
  default:
16826
17016
  return state;
16827
17017
  }
16828
- }, initialState$9);
17018
+ }, initialState$a);
16829
17019
  useEffect(() => {
16830
17020
  const getStates = () => {
16831
17021
  dispatch({
@@ -16857,21 +17047,21 @@ const AddressUpdateContainer = ({
16857
17047
  style: { ...style
16858
17048
  },
16859
17049
  className: `pelcro-container pelcro-address-update-container ${className}`
16860
- }, /*#__PURE__*/React__default.createElement(Provider$9, {
17050
+ }, /*#__PURE__*/React__default.createElement(Provider$a, {
16861
17051
  value: {
16862
17052
  state,
16863
17053
  dispatch
16864
17054
  }
16865
17055
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
16866
- store: store$9,
17056
+ store: store$a,
16867
17057
  key: i
16868
17058
  })) : /*#__PURE__*/React__default.cloneElement(children, {
16869
- store: store$9
17059
+ store: store$a
16870
17060
  })));
16871
17061
  };
16872
17062
 
16873
17063
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
16874
- store: store$9
17064
+ store: store$a
16875
17065
  }, props));
16876
17066
 
16877
17067
  function AddressUpdateFirstName(props) {
@@ -16881,7 +17071,7 @@ function AddressUpdateFirstName(props) {
16881
17071
  firstName,
16882
17072
  firstNameError
16883
17073
  }
16884
- } = useContext(store$9);
17074
+ } = useContext(store$a);
16885
17075
 
16886
17076
  const handleBlur = () => {
16887
17077
  return dispatch({
@@ -16924,7 +17114,7 @@ function AddressUpdateLastName(props) {
16924
17114
  lastName,
16925
17115
  lastNameError
16926
17116
  }
16927
- } = useContext(store$9);
17117
+ } = useContext(store$a);
16928
17118
 
16929
17119
  const handleBlur = () => {
16930
17120
  return dispatch({
@@ -16967,7 +17157,7 @@ function AddressUpdateLine1(props) {
16967
17157
  line1,
16968
17158
  line1Error
16969
17159
  }
16970
- } = useContext(store$9);
17160
+ } = useContext(store$a);
16971
17161
 
16972
17162
  const handleBlur = () => {
16973
17163
  return dispatch({
@@ -17007,7 +17197,7 @@ const AddressUpdateLine2 = props => {
17007
17197
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
17008
17198
  fieldName: "line2"
17009
17199
  }, props, {
17010
- store: store$9
17200
+ store: store$a
17011
17201
  }));
17012
17202
  };
17013
17203
 
@@ -17018,7 +17208,7 @@ function AddressUpdateCity(props) {
17018
17208
  city,
17019
17209
  cityError
17020
17210
  }
17021
- } = useContext(store$9);
17211
+ } = useContext(store$a);
17022
17212
 
17023
17213
  const handleBlur = () => {
17024
17214
  return dispatch({
@@ -17061,7 +17251,7 @@ function AddressUpdatePostalCode(props) {
17061
17251
  postalCode,
17062
17252
  postalCodeError
17063
17253
  }
17064
- } = useContext(store$9);
17254
+ } = useContext(store$a);
17065
17255
 
17066
17256
  const handleBlur = () => {
17067
17257
  return dispatch({
@@ -17107,7 +17297,7 @@ const AddressUpdateSubmit = ({
17107
17297
  state: {
17108
17298
  isSubmitting
17109
17299
  }
17110
- } = useContext(store$9);
17300
+ } = useContext(store$a);
17111
17301
  const {
17112
17302
  t
17113
17303
  } = useTranslation("address");
@@ -17123,7 +17313,7 @@ const AddressUpdateSubmit = ({
17123
17313
  };
17124
17314
 
17125
17315
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
17126
- store: store$9
17316
+ store: store$a
17127
17317
  }, props));
17128
17318
 
17129
17319
  const AddressUpdateView = props => {
@@ -17206,7 +17396,7 @@ AddressUpdateModal.viewId = "address-edit";
17206
17396
 
17207
17397
  const AddressUpdateTextInput = props => {
17208
17398
  return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
17209
- store: store$9
17399
+ store: store$a
17210
17400
  }));
17211
17401
  };
17212
17402
 
@@ -17289,7 +17479,7 @@ const PaymentMethodUpdateModal = props => {
17289
17479
  };
17290
17480
  PaymentMethodUpdateModal.viewId = "payment-method-update";
17291
17481
 
17292
- const initialState$8 = {
17482
+ const initialState$9 = {
17293
17483
  email: "",
17294
17484
  password: "",
17295
17485
  passwordError: null,
@@ -17302,10 +17492,10 @@ const initialState$8 = {
17302
17492
  content: ""
17303
17493
  }
17304
17494
  };
17305
- const store$8 = /*#__PURE__*/createContext(initialState$8);
17495
+ const store$9 = /*#__PURE__*/createContext(initialState$9);
17306
17496
  const {
17307
- Provider: Provider$8
17308
- } = store$8;
17497
+ Provider: Provider$9
17498
+ } = store$9;
17309
17499
 
17310
17500
  const PasswordResetContainer = ({
17311
17501
  style,
@@ -17362,7 +17552,7 @@ const PasswordResetContainer = ({
17362
17552
  type: SET_EMAIL,
17363
17553
  payload: window.Pelcro.helpers.getURLParameter("email")
17364
17554
  });
17365
- initialState$8.email = window.Pelcro.helpers.getURLParameter("email");
17555
+ initialState$9.email = window.Pelcro.helpers.getURLParameter("email");
17366
17556
  dispatch({
17367
17557
  type: SET_TOKEN,
17368
17558
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -17422,26 +17612,26 @@ const PasswordResetContainer = ({
17422
17612
  default:
17423
17613
  return state;
17424
17614
  }
17425
- }, initialState$8);
17615
+ }, initialState$9);
17426
17616
  return /*#__PURE__*/React__default.createElement("div", {
17427
17617
  style: { ...style
17428
17618
  },
17429
17619
  className: `pelcro-container pelcro-password-reset-container ${className}`
17430
- }, /*#__PURE__*/React__default.createElement(Provider$8, {
17620
+ }, /*#__PURE__*/React__default.createElement(Provider$9, {
17431
17621
  value: {
17432
17622
  state,
17433
17623
  dispatch
17434
17624
  }
17435
17625
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17436
- store: store$8,
17626
+ store: store$9,
17437
17627
  key: i
17438
17628
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17439
- store: store$8
17629
+ store: store$9
17440
17630
  })));
17441
17631
  };
17442
17632
 
17443
17633
  const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
17444
- store: store$8
17634
+ store: store$9
17445
17635
  }, props));
17446
17636
 
17447
17637
  const PasswordResetButton = ({
@@ -17454,7 +17644,7 @@ const PasswordResetButton = ({
17454
17644
  buttonDisabled
17455
17645
  },
17456
17646
  dispatch
17457
- } = useContext(store$8);
17647
+ } = useContext(store$9);
17458
17648
  const {
17459
17649
  t
17460
17650
  } = useTranslation("passwordReset");
@@ -17471,14 +17661,14 @@ const PasswordResetButton = ({
17471
17661
  };
17472
17662
 
17473
17663
  const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
17474
- store: store$8
17664
+ store: store$9
17475
17665
  }, props, {
17476
17666
  value: window.Pelcro.helpers.getURLParameter("email"),
17477
17667
  disabled: true
17478
17668
  }));
17479
17669
 
17480
17670
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
17481
- store: store$8
17671
+ store: store$9
17482
17672
  }, props));
17483
17673
 
17484
17674
  const PasswordResetView = props => {
@@ -17530,7 +17720,7 @@ const PasswordResetModal = ({
17530
17720
  };
17531
17721
  PasswordResetModal.viewId = "password-reset";
17532
17722
 
17533
- const initialState$7 = {
17723
+ const initialState$8 = {
17534
17724
  email: "",
17535
17725
  emailError: null,
17536
17726
  buttonDisabled: false,
@@ -17539,10 +17729,10 @@ const initialState$7 = {
17539
17729
  content: ""
17540
17730
  }
17541
17731
  };
17542
- const store$7 = /*#__PURE__*/createContext(initialState$7);
17732
+ const store$8 = /*#__PURE__*/createContext(initialState$8);
17543
17733
  const {
17544
- Provider: Provider$7
17545
- } = store$7;
17734
+ Provider: Provider$8
17735
+ } = store$8;
17546
17736
 
17547
17737
  const PasswordForgotContainer = ({
17548
17738
  style,
@@ -17620,21 +17810,21 @@ const PasswordForgotContainer = ({
17620
17810
  default:
17621
17811
  return state;
17622
17812
  }
17623
- }, initialState$7);
17813
+ }, initialState$8);
17624
17814
  return /*#__PURE__*/React__default.createElement("div", {
17625
17815
  style: { ...style
17626
17816
  },
17627
17817
  className: `pelcro-container pelcro-password-forgot-container ${className}`
17628
- }, /*#__PURE__*/React__default.createElement(Provider$7, {
17818
+ }, /*#__PURE__*/React__default.createElement(Provider$8, {
17629
17819
  value: {
17630
17820
  state,
17631
17821
  dispatch
17632
17822
  }
17633
17823
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17634
- store: store$7,
17824
+ store: store$8,
17635
17825
  key: i
17636
17826
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17637
- store: store$7
17827
+ store: store$8
17638
17828
  })));
17639
17829
  };
17640
17830
 
@@ -17650,7 +17840,7 @@ const PasswordForgotButton = ({
17650
17840
  emailError
17651
17841
  },
17652
17842
  dispatch
17653
- } = useContext(store$7);
17843
+ } = useContext(store$8);
17654
17844
  const {
17655
17845
  t
17656
17846
  } = useTranslation("passwordForgot");
@@ -17671,7 +17861,7 @@ const PasswordForgotButton = ({
17671
17861
  };
17672
17862
 
17673
17863
  const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
17674
- store: store$7
17864
+ store: store$8
17675
17865
  }, props));
17676
17866
 
17677
17867
  const PasswordForgotView = props => {
@@ -17721,7 +17911,7 @@ const PasswordForgotModal = ({
17721
17911
  };
17722
17912
  PasswordForgotModal.viewId = "password-forgot";
17723
17913
 
17724
- const initialState$6 = {
17914
+ const initialState$7 = {
17725
17915
  currentPassword: "",
17726
17916
  newPassword: "",
17727
17917
  confirmNewPassword: "",
@@ -17735,10 +17925,10 @@ const initialState$6 = {
17735
17925
  content: ""
17736
17926
  }
17737
17927
  };
17738
- const store$6 = /*#__PURE__*/createContext(initialState$6);
17928
+ const store$7 = /*#__PURE__*/createContext(initialState$7);
17739
17929
  const {
17740
- Provider: Provider$6
17741
- } = store$6;
17930
+ Provider: Provider$7
17931
+ } = store$7;
17742
17932
  const PasswordChangeContainer = ({
17743
17933
  style,
17744
17934
  className = "",
@@ -17890,21 +18080,21 @@ const PasswordChangeContainer = ({
17890
18080
  default:
17891
18081
  return state;
17892
18082
  }
17893
- }, initialState$6);
18083
+ }, initialState$7);
17894
18084
  return /*#__PURE__*/React__default.createElement("div", {
17895
18085
  style: { ...style
17896
18086
  },
17897
18087
  className: `pelcro-container pelcro-password-change-container ${className}`
17898
- }, /*#__PURE__*/React__default.createElement(Provider$6, {
18088
+ }, /*#__PURE__*/React__default.createElement(Provider$7, {
17899
18089
  value: {
17900
18090
  state,
17901
18091
  dispatch
17902
18092
  }
17903
18093
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
17904
- store: store$6,
18094
+ store: store$7,
17905
18095
  key: i
17906
18096
  })) : /*#__PURE__*/React__default.cloneElement(children, {
17907
- store: store$6
18097
+ store: store$7
17908
18098
  })));
17909
18099
  };
17910
18100
 
@@ -17915,7 +18105,7 @@ function PasswordChangeCurrentPassword(props) {
17915
18105
  currentPassword,
17916
18106
  currentPasswordError
17917
18107
  }
17918
- } = useContext(store$6);
18108
+ } = useContext(store$7);
17919
18109
  const handleBlur = useCallback(() => {
17920
18110
  return dispatch({
17921
18111
  type: VALIDATE_PASSWORD
@@ -17949,7 +18139,7 @@ function PasswordChangeNewPassword(props) {
17949
18139
  newPassword,
17950
18140
  newPasswordError
17951
18141
  }
17952
- } = useContext(store$6);
18142
+ } = useContext(store$7);
17953
18143
  const handleBlur = useCallback(() => {
17954
18144
  return dispatch({
17955
18145
  type: VALIDATE_NEW_PASSWORD
@@ -17983,7 +18173,7 @@ function PasswordChangeConfirmNewPassword(props) {
17983
18173
  confirmNewPassword,
17984
18174
  confirmNewPasswordError
17985
18175
  }
17986
- } = useContext(store$6);
18176
+ } = useContext(store$7);
17987
18177
  const handleBlur = useCallback(() => {
17988
18178
  return dispatch({
17989
18179
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -18024,7 +18214,7 @@ const PasswordChangeButton = ({
18024
18214
  confirmNewPasswordError
18025
18215
  },
18026
18216
  dispatch
18027
- } = useContext(store$6);
18217
+ } = useContext(store$7);
18028
18218
  const {
18029
18219
  t
18030
18220
  } = useTranslation("passwordChange");
@@ -18090,17 +18280,17 @@ const PasswordChangeModal = ({
18090
18280
  };
18091
18281
  PasswordChangeModal.viewId = "password-change";
18092
18282
 
18093
- const initialState$5 = {
18283
+ const initialState$6 = {
18094
18284
  buttonDisabled: false,
18095
18285
  alert: {
18096
18286
  type: "error",
18097
18287
  content: ""
18098
18288
  }
18099
18289
  };
18100
- const store$5 = /*#__PURE__*/createContext(initialState$5);
18290
+ const store$6 = /*#__PURE__*/createContext(initialState$6);
18101
18291
  const {
18102
- Provider: Provider$5
18103
- } = store$5;
18292
+ Provider: Provider$6
18293
+ } = store$6;
18104
18294
 
18105
18295
  const CartContainer = ({
18106
18296
  style,
@@ -18191,21 +18381,21 @@ const CartContainer = ({
18191
18381
  default:
18192
18382
  return state;
18193
18383
  }
18194
- }, initialState$5);
18384
+ }, initialState$6);
18195
18385
  return /*#__PURE__*/React__default.createElement("div", {
18196
18386
  style: { ...style
18197
18387
  },
18198
18388
  className: `pelcro-container pelcro-cart-container ${className}`
18199
- }, /*#__PURE__*/React__default.createElement(Provider$5, {
18389
+ }, /*#__PURE__*/React__default.createElement(Provider$6, {
18200
18390
  value: {
18201
18391
  state,
18202
18392
  dispatch
18203
18393
  }
18204
18394
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18205
- store: store$5,
18395
+ store: store$6,
18206
18396
  key: i
18207
18397
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18208
- store: store$5
18398
+ store: store$6
18209
18399
  })));
18210
18400
  };
18211
18401
 
@@ -18242,7 +18432,7 @@ const CartSubmit = ({
18242
18432
  buttonDisabled
18243
18433
  },
18244
18434
  dispatch
18245
- } = useContext(store$5);
18435
+ } = useContext(store$6);
18246
18436
  const {
18247
18437
  t
18248
18438
  } = useTranslation("cart");
@@ -18273,7 +18463,7 @@ const CartTotalPrice = () => {
18273
18463
  state: {
18274
18464
  alert
18275
18465
  }
18276
- } = useContext(store$5);
18466
+ } = useContext(store$6);
18277
18467
  const {
18278
18468
  cartItems
18279
18469
  } = usePelcro();
@@ -18586,7 +18776,7 @@ const OrderConfirmModal = props => {
18586
18776
  };
18587
18777
  OrderConfirmModal.viewId = "order-confirm";
18588
18778
 
18589
- const initialState$4 = {
18779
+ const initialState$5 = {
18590
18780
  email: "",
18591
18781
  firstName: "",
18592
18782
  lastName: "",
@@ -18598,10 +18788,10 @@ const initialState$4 = {
18598
18788
  content: ""
18599
18789
  }
18600
18790
  };
18601
- const store$4 = /*#__PURE__*/createContext(initialState$4);
18791
+ const store$5 = /*#__PURE__*/createContext(initialState$5);
18602
18792
  const {
18603
- Provider: Provider$4
18604
- } = store$4;
18793
+ Provider: Provider$5
18794
+ } = store$5;
18605
18795
 
18606
18796
  const GiftCreateContainer = ({
18607
18797
  style,
@@ -18705,21 +18895,21 @@ const GiftCreateContainer = ({
18705
18895
  default:
18706
18896
  return state;
18707
18897
  }
18708
- }, initialState$4);
18898
+ }, initialState$5);
18709
18899
  return /*#__PURE__*/React__default.createElement("div", {
18710
18900
  style: { ...style
18711
18901
  },
18712
18902
  className: `pelcro-container pelcro-gift-create-container ${className}`
18713
- }, /*#__PURE__*/React__default.createElement(Provider$4, {
18903
+ }, /*#__PURE__*/React__default.createElement(Provider$5, {
18714
18904
  value: {
18715
18905
  state,
18716
18906
  dispatch
18717
18907
  }
18718
18908
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
18719
- store: store$4,
18909
+ store: store$5,
18720
18910
  key: i
18721
18911
  })) : /*#__PURE__*/React__default.cloneElement(children, {
18722
- store: store$4
18912
+ store: store$5
18723
18913
  })));
18724
18914
  };
18725
18915
 
@@ -18733,7 +18923,7 @@ const GiftCreateSubmitButton = ({
18733
18923
  state: {
18734
18924
  disableSubmit
18735
18925
  }
18736
- } = useContext(store$4);
18926
+ } = useContext(store$5);
18737
18927
  const {
18738
18928
  t
18739
18929
  } = useTranslation("register");
@@ -18750,29 +18940,29 @@ const GiftCreateSubmitButton = ({
18750
18940
 
18751
18941
  const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
18752
18942
  initWithUserEmail: false,
18753
- store: store$4
18943
+ store: store$5
18754
18944
  }, props));
18755
18945
 
18756
18946
  const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
18757
- store: store$4
18947
+ store: store$5
18758
18948
  }, props));
18759
18949
 
18760
18950
  const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
18761
- store: store$4
18951
+ store: store$5
18762
18952
  }, props));
18763
18953
 
18764
- var _path$f;
18954
+ var _path$g;
18765
18955
 
18766
- 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); }
18956
+ 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); }
18767
18957
 
18768
18958
  function SvgInfoCircle(props) {
18769
- return /*#__PURE__*/React.createElement("svg", _extends$h({
18959
+ return /*#__PURE__*/React.createElement("svg", _extends$i({
18770
18960
  xmlns: "http://www.w3.org/2000/svg",
18771
18961
  className: "plc-w-5 plc-h-5",
18772
18962
  fill: "none",
18773
18963
  viewBox: "0 0 24 24",
18774
18964
  stroke: "currentColor"
18775
- }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
18965
+ }, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
18776
18966
  strokeLinecap: "round",
18777
18967
  strokeLinejoin: "round",
18778
18968
  strokeWidth: 2,
@@ -18843,7 +19033,7 @@ const GiftCreateStartDate = props => {
18843
19033
  const {
18844
19034
  dispatch,
18845
19035
  state
18846
- } = useContext(store$4);
19036
+ } = useContext(store$5);
18847
19037
 
18848
19038
  const handleInputChange = value => {
18849
19039
  dispatch({
@@ -18914,7 +19104,7 @@ function GiftCreateMessage(props) {
18914
19104
  const {
18915
19105
  dispatch,
18916
19106
  state
18917
- } = useContext(store$4);
19107
+ } = useContext(store$5);
18918
19108
 
18919
19109
  const handleInputChange = value => {
18920
19110
  dispatch({
@@ -19034,7 +19224,7 @@ const GiftCreateModal = ({
19034
19224
  };
19035
19225
  GiftCreateModal.viewId = "gift-create";
19036
19226
 
19037
- const initialState$3 = {
19227
+ const initialState$4 = {
19038
19228
  giftCode: "",
19039
19229
  buttonDisabled: true,
19040
19230
  alert: {
@@ -19042,10 +19232,10 @@ const initialState$3 = {
19042
19232
  content: ""
19043
19233
  }
19044
19234
  };
19045
- const store$3 = /*#__PURE__*/createContext(initialState$3);
19235
+ const store$4 = /*#__PURE__*/createContext(initialState$4);
19046
19236
  const {
19047
- Provider: Provider$3
19048
- } = store$3;
19237
+ Provider: Provider$4
19238
+ } = store$4;
19049
19239
 
19050
19240
  const GiftRedeemContainer = ({
19051
19241
  style,
@@ -19110,21 +19300,21 @@ const GiftRedeemContainer = ({
19110
19300
  default:
19111
19301
  return state;
19112
19302
  }
19113
- }, initialState$3);
19303
+ }, initialState$4);
19114
19304
  return /*#__PURE__*/React__default.createElement("div", {
19115
19305
  style: { ...style
19116
19306
  },
19117
19307
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
19118
- }, /*#__PURE__*/React__default.createElement(Provider$3, {
19308
+ }, /*#__PURE__*/React__default.createElement(Provider$4, {
19119
19309
  value: {
19120
19310
  state,
19121
19311
  dispatch
19122
19312
  }
19123
19313
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19124
- store: store$3,
19314
+ store: store$4,
19125
19315
  key: i
19126
19316
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19127
- store: store$3
19317
+ store: store$4
19128
19318
  })));
19129
19319
  };
19130
19320
 
@@ -19161,7 +19351,7 @@ function GiftCode({
19161
19351
  }
19162
19352
 
19163
19353
  const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
19164
- store: store$3
19354
+ store: store$4
19165
19355
  }, props));
19166
19356
 
19167
19357
  const GiftRedeemSubmitButton = ({
@@ -19174,7 +19364,7 @@ const GiftRedeemSubmitButton = ({
19174
19364
  state: {
19175
19365
  disableSubmit
19176
19366
  }
19177
- } = useContext(store$3);
19367
+ } = useContext(store$4);
19178
19368
  const {
19179
19369
  t
19180
19370
  } = useTranslation("register");
@@ -19267,7 +19457,7 @@ const moveDefaultAddressToStart = addresses => {
19267
19457
  return [defaultAddress, ...addressesWithoutDefault];
19268
19458
  };
19269
19459
 
19270
- const initialState$2 = {
19460
+ const initialState$3 = {
19271
19461
  addresses: [],
19272
19462
  selectedAddressId: null,
19273
19463
  isSubmitting: false,
@@ -19276,10 +19466,10 @@ const initialState$2 = {
19276
19466
  content: ""
19277
19467
  }
19278
19468
  };
19279
- const store$2 = /*#__PURE__*/createContext(initialState$2);
19469
+ const store$3 = /*#__PURE__*/createContext(initialState$3);
19280
19470
  const {
19281
- Provider: Provider$2
19282
- } = store$2;
19471
+ Provider: Provider$3
19472
+ } = store$3;
19283
19473
 
19284
19474
  const AddressSelectContainer = ({
19285
19475
  style,
@@ -19374,7 +19564,7 @@ const AddressSelectContainer = ({
19374
19564
  default:
19375
19565
  return state;
19376
19566
  }
19377
- }, initialState$2);
19567
+ }, initialState$3);
19378
19568
  useEffect(() => {
19379
19569
  var _window$Pelcro$user$r;
19380
19570
 
@@ -19387,16 +19577,16 @@ const AddressSelectContainer = ({
19387
19577
  style: { ...style
19388
19578
  },
19389
19579
  className: `pelcro-container pelcro-address-select-container ${className}`
19390
- }, /*#__PURE__*/React__default.createElement(Provider$2, {
19580
+ }, /*#__PURE__*/React__default.createElement(Provider$3, {
19391
19581
  value: {
19392
19582
  state,
19393
19583
  dispatch
19394
19584
  }
19395
19585
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19396
- store: store$2,
19586
+ store: store$3,
19397
19587
  key: i
19398
19588
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19399
- store: store$2
19589
+ store: store$3
19400
19590
  })));
19401
19591
  };
19402
19592
 
@@ -19407,7 +19597,7 @@ const AddressSelectList = () => {
19407
19597
  addresses,
19408
19598
  selectedAddressId
19409
19599
  }
19410
- } = useContext(store$2);
19600
+ } = useContext(store$3);
19411
19601
 
19412
19602
  const handleAddressSelect = event => {
19413
19603
  dispatch({
@@ -19451,7 +19641,7 @@ const AddressSelectSubmit = ({
19451
19641
  selectedAddressId,
19452
19642
  isSubmitting
19453
19643
  }
19454
- } = useContext(store$2);
19644
+ } = useContext(store$3);
19455
19645
  const {
19456
19646
  t
19457
19647
  } = useTranslation("address");
@@ -19542,7 +19732,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
19542
19732
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
19543
19733
  };
19544
19734
 
19545
- const initialState$1 = {
19735
+ const initialState$2 = {
19546
19736
  paymentMethods: [],
19547
19737
  selectedPaymentMethodId: null,
19548
19738
  isSubmitting: false,
@@ -19551,10 +19741,10 @@ const initialState$1 = {
19551
19741
  content: ""
19552
19742
  }
19553
19743
  };
19554
- const store$1 = /*#__PURE__*/createContext(initialState$1);
19744
+ const store$2 = /*#__PURE__*/createContext(initialState$2);
19555
19745
  const {
19556
- Provider: Provider$1
19557
- } = store$1;
19746
+ Provider: Provider$2
19747
+ } = store$2;
19558
19748
 
19559
19749
  const PaymentMethodSelectContainer = ({
19560
19750
  style,
@@ -19599,7 +19789,7 @@ const PaymentMethodSelectContainer = ({
19599
19789
  default:
19600
19790
  return state;
19601
19791
  }
19602
- }, initialState$1);
19792
+ }, initialState$2);
19603
19793
  useEffect(() => {
19604
19794
  var _window$Pelcro$user$r4;
19605
19795
 
@@ -19612,16 +19802,16 @@ const PaymentMethodSelectContainer = ({
19612
19802
  style: { ...style
19613
19803
  },
19614
19804
  className: `pelcro-container pelcro-payment-select-container ${className}`
19615
- }, /*#__PURE__*/React__default.createElement(Provider$1, {
19805
+ }, /*#__PURE__*/React__default.createElement(Provider$2, {
19616
19806
  value: {
19617
19807
  state,
19618
19808
  dispatch
19619
19809
  }
19620
19810
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
19621
- store: store$1,
19811
+ store: store$2,
19622
19812
  key: i
19623
19813
  })) : /*#__PURE__*/React__default.cloneElement(children, {
19624
- store: store$1
19814
+ store: store$2
19625
19815
  })));
19626
19816
  };
19627
19817
 
@@ -19635,7 +19825,7 @@ const PaymentMethodSelectList = () => {
19635
19825
  paymentMethods,
19636
19826
  selectedPaymentMethodId
19637
19827
  }
19638
- } = useContext(store$1);
19828
+ } = useContext(store$2);
19639
19829
 
19640
19830
  const handlePaymentMethodSelect = event => {
19641
19831
  dispatch({
@@ -19685,7 +19875,7 @@ const PaymentMethodSelectSubmit = ({
19685
19875
  selectedPaymentMethodId,
19686
19876
  isSubmitting
19687
19877
  }
19688
- } = useContext(store$1);
19878
+ } = useContext(store$2);
19689
19879
  return /*#__PURE__*/React__default.createElement(Button, Object.assign({
19690
19880
  onClick: () => {
19691
19881
  dispatch({
@@ -19759,8 +19949,8 @@ const PaymentMethodSelectModal = ({
19759
19949
  };
19760
19950
  PaymentMethodSelectModal.viewId = "payment-method-select";
19761
19951
 
19762
- function _extends$g() {
19763
- _extends$g = Object.assign || function (target) {
19952
+ function _extends$h() {
19953
+ _extends$h = Object.assign || function (target) {
19764
19954
  for (var i = 1; i < arguments.length; i++) {
19765
19955
  var source = arguments[i];
19766
19956
 
@@ -19774,7 +19964,7 @@ function _extends$g() {
19774
19964
  return target;
19775
19965
  };
19776
19966
 
19777
- return _extends$g.apply(this, arguments);
19967
+ return _extends$h.apply(this, arguments);
19778
19968
  }
19779
19969
 
19780
19970
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -19958,7 +20148,7 @@ function render(props, propsBag, defaultTag, features, visible) {
19958
20148
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
19959
20149
  return null;
19960
20150
  }, _match[RenderStrategy.Hidden] = function () {
19961
- return _render(_extends$g({}, _rest, {
20151
+ return _render(_extends$h({}, _rest, {
19962
20152
  hidden: true,
19963
20153
  style: {
19964
20154
  display: 'none'
@@ -20486,7 +20676,7 @@ function TransitionChild(props) {
20486
20676
  var passthroughProps = rest;
20487
20677
  return React__default.createElement(NestingContext.Provider, {
20488
20678
  value: nesting
20489
- }, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20679
+ }, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20490
20680
  }
20491
20681
 
20492
20682
  function Transition(props) {
@@ -20530,7 +20720,7 @@ function Transition(props) {
20530
20720
  value: nestingBag
20531
20721
  }, React__default.createElement(TransitionContext.Provider, {
20532
20722
  value: transitionBag
20533
- }, render(_extends$g({}, sharedProps, {
20723
+ }, render(_extends$h({}, sharedProps, {
20534
20724
  as: Fragment,
20535
20725
  children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
20536
20726
  }), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -20657,12 +20847,12 @@ var ActionTypes;
20657
20847
  })(ActionTypes || (ActionTypes = {}));
20658
20848
 
20659
20849
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
20660
- return _extends$g({}, state, {
20850
+ return _extends$h({}, state, {
20661
20851
  activeItemIndex: null,
20662
20852
  menuState: MenuStates.Closed
20663
20853
  });
20664
20854
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
20665
- return _extends$g({}, state, {
20855
+ return _extends$h({}, state, {
20666
20856
  menuState: MenuStates.Open
20667
20857
  });
20668
20858
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -20681,7 +20871,7 @@ var ActionTypes;
20681
20871
  }
20682
20872
  });
20683
20873
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
20684
- return _extends$g({}, state, {
20874
+ return _extends$h({}, state, {
20685
20875
  searchQuery: '',
20686
20876
  activeItemIndex: activeItemIndex
20687
20877
  });
@@ -20692,19 +20882,19 @@ var ActionTypes;
20692
20882
 
20693
20883
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
20694
20884
  });
20695
- if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
20885
+ if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
20696
20886
  searchQuery: searchQuery
20697
20887
  });
20698
- return _extends$g({}, state, {
20888
+ return _extends$h({}, state, {
20699
20889
  searchQuery: searchQuery,
20700
20890
  activeItemIndex: match
20701
20891
  });
20702
20892
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
20703
- return _extends$g({}, state, {
20893
+ return _extends$h({}, state, {
20704
20894
  searchQuery: ''
20705
20895
  });
20706
20896
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
20707
- return _extends$g({}, state, {
20897
+ return _extends$h({}, state, {
20708
20898
  items: [].concat(state.items, [{
20709
20899
  id: action.id,
20710
20900
  dataRef: action.dataRef
@@ -20717,7 +20907,7 @@ var ActionTypes;
20717
20907
  return a.id === action.id;
20718
20908
  });
20719
20909
  if (idx !== -1) nextItems.splice(idx, 1);
20720
- return _extends$g({}, state, {
20910
+ return _extends$h({}, state, {
20721
20911
  items: nextItems,
20722
20912
  activeItemIndex: function () {
20723
20913
  if (idx === state.activeItemIndex) return null;
@@ -20756,19 +20946,19 @@ var ActionTypes$1;
20756
20946
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
20757
20947
  if (state.disabled) return state;
20758
20948
  if (state.listboxState === ListboxStates.Closed) return state;
20759
- return _extends$g({}, state, {
20949
+ return _extends$h({}, state, {
20760
20950
  activeOptionIndex: null,
20761
20951
  listboxState: ListboxStates.Closed
20762
20952
  });
20763
20953
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
20764
20954
  if (state.disabled) return state;
20765
20955
  if (state.listboxState === ListboxStates.Open) return state;
20766
- return _extends$g({}, state, {
20956
+ return _extends$h({}, state, {
20767
20957
  listboxState: ListboxStates.Open
20768
20958
  });
20769
20959
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
20770
20960
  if (state.disabled === action.disabled) return state;
20771
- return _extends$g({}, state, {
20961
+ return _extends$h({}, state, {
20772
20962
  disabled: action.disabled
20773
20963
  });
20774
20964
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -20789,7 +20979,7 @@ var ActionTypes$1;
20789
20979
  }
20790
20980
  });
20791
20981
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
20792
- return _extends$g({}, state, {
20982
+ return _extends$h({}, state, {
20793
20983
  searchQuery: '',
20794
20984
  activeOptionIndex: activeOptionIndex
20795
20985
  });
@@ -20802,10 +20992,10 @@ var ActionTypes$1;
20802
20992
 
20803
20993
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
20804
20994
  });
20805
- if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
20995
+ if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
20806
20996
  searchQuery: searchQuery
20807
20997
  });
20808
- return _extends$g({}, state, {
20998
+ return _extends$h({}, state, {
20809
20999
  searchQuery: searchQuery,
20810
21000
  activeOptionIndex: match
20811
21001
  });
@@ -20813,11 +21003,11 @@ var ActionTypes$1;
20813
21003
  if (state.disabled) return state;
20814
21004
  if (state.listboxState === ListboxStates.Closed) return state;
20815
21005
  if (state.searchQuery === '') return state;
20816
- return _extends$g({}, state, {
21006
+ return _extends$h({}, state, {
20817
21007
  searchQuery: ''
20818
21008
  });
20819
21009
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
20820
- return _extends$g({}, state, {
21010
+ return _extends$h({}, state, {
20821
21011
  options: [].concat(state.options, [{
20822
21012
  id: action.id,
20823
21013
  dataRef: action.dataRef
@@ -20830,7 +21020,7 @@ var ActionTypes$1;
20830
21020
  return a.id === action.id;
20831
21021
  });
20832
21022
  if (idx !== -1) nextOptions.splice(idx, 1);
20833
- return _extends$g({}, state, {
21023
+ return _extends$h({}, state, {
20834
21024
  options: nextOptions,
20835
21025
  activeOptionIndex: function () {
20836
21026
  if (idx === state.activeOptionIndex) return null;
@@ -20891,18 +21081,18 @@ const getPaymentCardIcon = name => {
20891
21081
  }));
20892
21082
  };
20893
21083
 
20894
- var _path$e;
21084
+ var _path$f;
20895
21085
 
20896
- 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); }
21086
+ 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); }
20897
21087
 
20898
21088
  function SvgChevronRight(props) {
20899
- return /*#__PURE__*/React.createElement("svg", _extends$f({
21089
+ return /*#__PURE__*/React.createElement("svg", _extends$g({
20900
21090
  className: "plc-w-6 plc-h-6",
20901
21091
  xmlns: "http://www.w3.org/2000/svg",
20902
21092
  fill: "none",
20903
21093
  viewBox: "0 0 24 24",
20904
21094
  stroke: "currentColor"
20905
- }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21095
+ }, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
20906
21096
  strokeLinecap: "round",
20907
21097
  strokeLinejoin: "round",
20908
21098
  strokeWidth: 2,
@@ -21118,18 +21308,18 @@ const SavedItems = ({
21118
21308
  });
21119
21309
  };
21120
21310
 
21121
- var _path$d;
21311
+ var _path$e;
21122
21312
 
21123
- 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); }
21313
+ 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); }
21124
21314
 
21125
21315
  function SvgRefresh(props) {
21126
- return /*#__PURE__*/React.createElement("svg", _extends$e({
21316
+ return /*#__PURE__*/React.createElement("svg", _extends$f({
21127
21317
  className: "plc-w-4 plc-h-4 plc-mr-1",
21128
21318
  xmlns: "http://www.w3.org/2000/svg",
21129
21319
  fill: "none",
21130
21320
  viewBox: "0 0 24 24",
21131
21321
  stroke: "currentColor"
21132
- }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21322
+ }, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
21133
21323
  strokeLinecap: "round",
21134
21324
  strokeLinejoin: "round",
21135
21325
  strokeWidth: 2,
@@ -21137,35 +21327,35 @@ function SvgRefresh(props) {
21137
21327
  })));
21138
21328
  }
21139
21329
 
21140
- var _path$c;
21330
+ var _path$d;
21141
21331
 
21142
- 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); }
21332
+ 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); }
21143
21333
 
21144
21334
  function SvgCalendar(props) {
21145
- return /*#__PURE__*/React.createElement("svg", _extends$d({
21335
+ return /*#__PURE__*/React.createElement("svg", _extends$e({
21146
21336
  xmlns: "http://www.w3.org/2000/svg",
21147
21337
  className: "plc-h-4 plc-w-4 plc-mr-1",
21148
21338
  viewBox: "0 0 20 20",
21149
21339
  fill: "currentColor"
21150
- }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
21340
+ }, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
21151
21341
  fillRule: "evenodd",
21152
21342
  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",
21153
21343
  clipRule: "evenodd"
21154
21344
  })));
21155
21345
  }
21156
21346
 
21157
- var _path$b;
21347
+ var _path$c;
21158
21348
 
21159
- 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); }
21349
+ 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); }
21160
21350
 
21161
21351
  function SvgPlus(props) {
21162
- return /*#__PURE__*/React.createElement("svg", _extends$c({
21352
+ return /*#__PURE__*/React.createElement("svg", _extends$d({
21163
21353
  className: "plc-w-5 plc-h-5",
21164
21354
  xmlns: "http://www.w3.org/2000/svg",
21165
21355
  fill: "none",
21166
21356
  viewBox: "0 0 24 24",
21167
21357
  stroke: "currentColor"
21168
- }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
21358
+ }, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
21169
21359
  strokeLinecap: "round",
21170
21360
  strokeLinejoin: "round",
21171
21361
  strokeWidth: 2,
@@ -21173,17 +21363,17 @@ function SvgPlus(props) {
21173
21363
  })));
21174
21364
  }
21175
21365
 
21176
- var _path$a;
21366
+ var _path$b;
21177
21367
 
21178
- 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); }
21368
+ 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); }
21179
21369
 
21180
21370
  function SvgCheckMark(props) {
21181
- return /*#__PURE__*/React.createElement("svg", _extends$b({
21371
+ return /*#__PURE__*/React.createElement("svg", _extends$c({
21182
21372
  className: "plc-w-4 plc-h-4 plc-mr-1",
21183
21373
  xmlns: "http://www.w3.org/2000/svg",
21184
21374
  viewBox: "0 0 20 20",
21185
21375
  fill: "currentColor"
21186
- }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
21376
+ }, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
21187
21377
  fillRule: "evenodd",
21188
21378
  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",
21189
21379
  clipRule: "evenodd"
@@ -21245,12 +21435,20 @@ const SubscriptionsItems = ({
21245
21435
  const {
21246
21436
  t
21247
21437
  } = useTranslation("dashboard");
21438
+ const {
21439
+ switchView,
21440
+ isAuthenticated
21441
+ } = usePelcro();
21248
21442
  const subs = getNonDonationSubs();
21249
21443
  if (subs.length === 0) return null;
21250
21444
  return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
21251
21445
  const isActive = activeMenu === sub.id; // Cancel button click handlers
21252
21446
 
21253
21447
  const onCancelClick = () => {
21448
+ if (userMustVerifyEmail()) {
21449
+ return switchView("email-verify");
21450
+ }
21451
+
21254
21452
  onClose === null || onClose === void 0 ? void 0 : onClose();
21255
21453
  notify.confirm((onSuccess, onFailure) => {
21256
21454
  cancelSubscription(sub.id, onSuccess, onFailure);
@@ -21266,6 +21464,10 @@ const SubscriptionsItems = ({
21266
21464
 
21267
21465
 
21268
21466
  const onReactivateClick = () => {
21467
+ if (userMustVerifyEmail()) {
21468
+ return switchView("email-verify");
21469
+ }
21470
+
21269
21471
  reactivateSubscription(sub.id);
21270
21472
  }; // Renew click
21271
21473
 
@@ -21466,18 +21668,18 @@ Accordion.item = function AccordionItem({
21466
21668
  }, content)) : null;
21467
21669
  };
21468
21670
 
21469
- var _path$9;
21671
+ var _path$a;
21470
21672
 
21471
- 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); }
21673
+ 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); }
21472
21674
 
21473
21675
  function SvgExit(props) {
21474
- return /*#__PURE__*/React.createElement("svg", _extends$a({
21676
+ return /*#__PURE__*/React.createElement("svg", _extends$b({
21475
21677
  className: "plc-w-6 plc-h-6",
21476
21678
  xmlns: "http://www.w3.org/2000/svg",
21477
21679
  fill: "none",
21478
21680
  viewBox: "0 0 24 24",
21479
21681
  stroke: "currentColor"
21480
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
21682
+ }, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
21481
21683
  strokeLinecap: "round",
21482
21684
  strokeLinejoin: "round",
21483
21685
  strokeWidth: 2,
@@ -21485,17 +21687,17 @@ function SvgExit(props) {
21485
21687
  })));
21486
21688
  }
21487
21689
 
21488
- var _path$8;
21690
+ var _path$9;
21489
21691
 
21490
- 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); }
21692
+ 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); }
21491
21693
 
21492
21694
  function SvgUser(props) {
21493
- return /*#__PURE__*/React.createElement("svg", _extends$9({
21695
+ return /*#__PURE__*/React.createElement("svg", _extends$a({
21494
21696
  xmlns: "http://www.w3.org/2000/svg",
21495
21697
  fill: "none",
21496
21698
  viewBox: "0 0 24 24",
21497
21699
  stroke: "currentColor"
21498
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
21700
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
21499
21701
  strokeLinecap: "round",
21500
21702
  strokeLinejoin: "round",
21501
21703
  strokeWidth: 2,
@@ -21503,18 +21705,18 @@ function SvgUser(props) {
21503
21705
  })));
21504
21706
  }
21505
21707
 
21506
- var _path$7;
21708
+ var _path$8;
21507
21709
 
21508
- 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); }
21710
+ 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); }
21509
21711
 
21510
21712
  function SvgNewsletter(props) {
21511
- return /*#__PURE__*/React.createElement("svg", _extends$8({
21713
+ return /*#__PURE__*/React.createElement("svg", _extends$9({
21512
21714
  xmlns: "http://www.w3.org/2000/svg",
21513
21715
  className: "plc-h-5 plc-w-5",
21514
21716
  fill: "none",
21515
21717
  viewBox: "0 0 24 24",
21516
21718
  stroke: "currentColor"
21517
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
21719
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
21518
21720
  strokeLinecap: "round",
21519
21721
  strokeLinejoin: "round",
21520
21722
  strokeWidth: 2,
@@ -21522,18 +21724,18 @@ function SvgNewsletter(props) {
21522
21724
  })));
21523
21725
  }
21524
21726
 
21525
- var _path$6;
21727
+ var _path$7;
21526
21728
 
21527
- 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); }
21729
+ 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); }
21528
21730
 
21529
21731
  function SvgPaymentCard(props) {
21530
- return /*#__PURE__*/React.createElement("svg", _extends$7({
21732
+ return /*#__PURE__*/React.createElement("svg", _extends$8({
21531
21733
  className: "plc-w-6 plc-h-6 plc-mr-2",
21532
21734
  xmlns: "http://www.w3.org/2000/svg",
21533
21735
  fill: "none",
21534
21736
  viewBox: "0 0 24 24",
21535
21737
  stroke: "currentColor"
21536
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
21738
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
21537
21739
  strokeLinecap: "round",
21538
21740
  strokeLinejoin: "round",
21539
21741
  strokeWidth: 2,
@@ -21541,23 +21743,23 @@ function SvgPaymentCard(props) {
21541
21743
  })));
21542
21744
  }
21543
21745
 
21544
- var _path$5, _path2;
21746
+ var _path$6, _path2$1;
21545
21747
 
21546
- 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); }
21748
+ 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); }
21547
21749
 
21548
21750
  function SvgLocationPin(props) {
21549
- return /*#__PURE__*/React.createElement("svg", _extends$6({
21751
+ return /*#__PURE__*/React.createElement("svg", _extends$7({
21550
21752
  className: "plc-w-6 plc-h-6 plc-mr-2",
21551
21753
  xmlns: "http://www.w3.org/2000/svg",
21552
21754
  fill: "none",
21553
21755
  viewBox: "0 0 24 24",
21554
21756
  stroke: "currentColor"
21555
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
21757
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
21556
21758
  strokeLinecap: "round",
21557
21759
  strokeLinejoin: "round",
21558
21760
  strokeWidth: 2,
21559
21761
  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"
21560
- })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
21762
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
21561
21763
  strokeLinecap: "round",
21562
21764
  strokeLinejoin: "round",
21563
21765
  strokeWidth: 2,
@@ -21567,10 +21769,10 @@ function SvgLocationPin(props) {
21567
21769
 
21568
21770
  var _switch;
21569
21771
 
21570
- 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); }
21772
+ 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); }
21571
21773
 
21572
21774
  function SvgSubscription(props) {
21573
- return /*#__PURE__*/React.createElement("svg", _extends$5({
21775
+ return /*#__PURE__*/React.createElement("svg", _extends$6({
21574
21776
  xmlns: "http://www.w3.org/2000/svg",
21575
21777
  viewBox: "0 0 100 125",
21576
21778
  fill: "currentColor"
@@ -21585,18 +21787,18 @@ function SvgSubscription(props) {
21585
21787
  }))))));
21586
21788
  }
21587
21789
 
21588
- var _path$4;
21790
+ var _path$5;
21589
21791
 
21590
- 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); }
21792
+ 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); }
21591
21793
 
21592
21794
  function SvgShopping(props) {
21593
- return /*#__PURE__*/React.createElement("svg", _extends$4({
21795
+ return /*#__PURE__*/React.createElement("svg", _extends$5({
21594
21796
  className: "plc-w-6 plc-h-6 plc-mr-2",
21595
21797
  xmlns: "http://www.w3.org/2000/svg",
21596
21798
  fill: "none",
21597
21799
  viewBox: "0 0 24 24",
21598
21800
  stroke: "currentColor"
21599
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
21801
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
21600
21802
  strokeLinecap: "round",
21601
21803
  strokeLinejoin: "round",
21602
21804
  strokeWidth: 2,
@@ -21604,18 +21806,18 @@ function SvgShopping(props) {
21604
21806
  })));
21605
21807
  }
21606
21808
 
21607
- var _path$3;
21809
+ var _path$4;
21608
21810
 
21609
- 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); }
21811
+ 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); }
21610
21812
 
21611
21813
  function SvgBookmark(props) {
21612
- return /*#__PURE__*/React.createElement("svg", _extends$3({
21814
+ return /*#__PURE__*/React.createElement("svg", _extends$4({
21613
21815
  className: "plc-w-6 plc-h-6 plc-mr-2",
21614
21816
  xmlns: "http://www.w3.org/2000/svg",
21615
21817
  fill: "none",
21616
21818
  viewBox: "0 0 24 24",
21617
21819
  stroke: "currentColor"
21618
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
21820
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
21619
21821
  strokeLinecap: "round",
21620
21822
  strokeLinejoin: "round",
21621
21823
  strokeWidth: 2,
@@ -21623,33 +21825,33 @@ function SvgBookmark(props) {
21623
21825
  })));
21624
21826
  }
21625
21827
 
21626
- var _path$2;
21828
+ var _path$3;
21627
21829
 
21628
- 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); }
21830
+ 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); }
21629
21831
 
21630
21832
  function SvgKey(props) {
21631
- return /*#__PURE__*/React.createElement("svg", _extends$2({
21833
+ return /*#__PURE__*/React.createElement("svg", _extends$3({
21632
21834
  xmlns: "http://www.w3.org/2000/svg",
21633
21835
  viewBox: "0 0 20 20",
21634
21836
  fill: "currentColor"
21635
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
21837
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
21636
21838
  fillRule: "evenodd",
21637
21839
  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",
21638
21840
  clipRule: "evenodd"
21639
21841
  })));
21640
21842
  }
21641
21843
 
21642
- var _path$1;
21844
+ var _path$2;
21643
21845
 
21644
- 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); }
21846
+ 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); }
21645
21847
 
21646
21848
  function SvgDonate(props) {
21647
- return /*#__PURE__*/React.createElement("svg", _extends$1({
21849
+ return /*#__PURE__*/React.createElement("svg", _extends$2({
21648
21850
  width: 24,
21649
21851
  height: 24,
21650
21852
  fill: "currentColor",
21651
21853
  xmlns: "http://www.w3.org/2000/svg"
21652
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
21854
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
21653
21855
  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"
21654
21856
  })));
21655
21857
  }
@@ -22295,7 +22497,7 @@ const DashboardOpenButton = () => {
22295
22497
  };
22296
22498
  DashboardOpenButton.viewId = "dashboard-open";
22297
22499
 
22298
- const initialState = {
22500
+ const initialState$1 = {
22299
22501
  imageSrc: null,
22300
22502
  crop: {
22301
22503
  x: 0,
@@ -22309,10 +22511,10 @@ const initialState = {
22309
22511
  content: ""
22310
22512
  }
22311
22513
  };
22312
- const store = /*#__PURE__*/createContext(initialState);
22514
+ const store$1 = /*#__PURE__*/createContext(initialState$1);
22313
22515
  const {
22314
- Provider
22315
- } = store;
22516
+ Provider: Provider$1
22517
+ } = store$1;
22316
22518
 
22317
22519
  const ProfilePicChangeContainer = ({
22318
22520
  style,
@@ -22446,21 +22648,21 @@ const ProfilePicChangeContainer = ({
22446
22648
  default:
22447
22649
  return state;
22448
22650
  }
22449
- }, initialState);
22651
+ }, initialState$1);
22450
22652
  return /*#__PURE__*/React__default.createElement("div", {
22451
22653
  style: { ...style
22452
22654
  },
22453
22655
  className: `pelcro-container pelcro-profile-picture-container ${className}`
22454
- }, /*#__PURE__*/React__default.createElement(Provider, {
22656
+ }, /*#__PURE__*/React__default.createElement(Provider$1, {
22455
22657
  value: {
22456
22658
  state,
22457
22659
  dispatch
22458
22660
  }
22459
22661
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
22460
- store,
22662
+ store: store$1,
22461
22663
  key: i
22462
22664
  })) : /*#__PURE__*/React__default.cloneElement(children, {
22463
- store
22665
+ store: store$1
22464
22666
  })));
22465
22667
  };
22466
22668
  /**
@@ -22522,7 +22724,7 @@ const ProfilePicChangeButton = ({
22522
22724
  isSubmitting
22523
22725
  },
22524
22726
  dispatch
22525
- } = useContext(store);
22727
+ } = useContext(store$1);
22526
22728
  const {
22527
22729
  t
22528
22730
  } = useTranslation("userEdit");
@@ -23890,7 +24092,7 @@ const ProfilePicChangeCropper = ({
23890
24092
  zoom
23891
24093
  },
23892
24094
  dispatch
23893
- } = useContext(store);
24095
+ } = useContext(store$1);
23894
24096
  return /*#__PURE__*/React__default.createElement("div", {
23895
24097
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
23896
24098
  }, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
@@ -23932,7 +24134,7 @@ const ProfilePicChangeZoom = ({
23932
24134
  zoom
23933
24135
  },
23934
24136
  dispatch
23935
- } = useContext(store);
24137
+ } = useContext(store$1);
23936
24138
  const {
23937
24139
  t
23938
24140
  } = useTranslation("userEdit");
@@ -23955,18 +24157,18 @@ const ProfilePicChangeZoom = ({
23955
24157
  }, otherProps)));
23956
24158
  };
23957
24159
 
23958
- var _path;
24160
+ var _path$1;
23959
24161
 
23960
- 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); }
24162
+ 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); }
23961
24163
 
23962
24164
  function SvgPhotograph(props) {
23963
- return /*#__PURE__*/React.createElement("svg", _extends({
24165
+ return /*#__PURE__*/React.createElement("svg", _extends$1({
23964
24166
  xmlns: "http://www.w3.org/2000/svg",
23965
24167
  className: "plc-h-6 plc-w-6",
23966
24168
  fill: "none",
23967
24169
  viewBox: "0 0 24 24",
23968
24170
  stroke: "currentColor"
23969
- }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
24171
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
23970
24172
  strokeLinecap: "round",
23971
24173
  strokeLinejoin: "round",
23972
24174
  strokeWidth: 2,
@@ -23984,7 +24186,7 @@ const ProfilePicChangeSelectButton = ({
23984
24186
  state: {
23985
24187
  isSubmitting
23986
24188
  }
23987
- } = useContext(store);
24189
+ } = useContext(store$1);
23988
24190
  const {
23989
24191
  t
23990
24192
  } = useTranslation("userEdit");
@@ -24026,7 +24228,7 @@ const ProfilePicChangeRemoveButton = ({
24026
24228
  state: {
24027
24229
  isSubmitting
24028
24230
  }
24029
- } = useContext(store);
24231
+ } = useContext(store$1);
24030
24232
  const {
24031
24233
  t
24032
24234
  } = useTranslation("userEdit");
@@ -24049,7 +24251,7 @@ const ProfilePicChangeWrapper = () => {
24049
24251
  state: {
24050
24252
  imageSrc
24051
24253
  }
24052
- } = useContext(store);
24254
+ } = useContext(store$1);
24053
24255
  const {
24054
24256
  t
24055
24257
  } = useTranslation("userEdit");
@@ -24111,4 +24313,180 @@ function ProfilePicChangeModal({
24111
24313
  }
24112
24314
  ProfilePicChangeModal.viewId = "profile-picture";
24113
24315
 
24114
- 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 };
24316
+ const initialState = {
24317
+ isSubmitting: false,
24318
+ alert: {
24319
+ type: "error",
24320
+ content: ""
24321
+ }
24322
+ };
24323
+ const store = /*#__PURE__*/createContext(initialState);
24324
+ const {
24325
+ Provider
24326
+ } = store;
24327
+
24328
+ const EmailVerifyContainer = ({
24329
+ style,
24330
+ className = "",
24331
+ onSuccess = () => {},
24332
+ onFailure = () => {},
24333
+ children,
24334
+ ...props
24335
+ }) => {
24336
+ const {
24337
+ t
24338
+ } = useTranslation("verifyEmail");
24339
+
24340
+ const submit = () => {
24341
+ window.Pelcro.user.resendEmailVerification((err, res) => {
24342
+ dispatch({
24343
+ type: LOADING,
24344
+ payload: false
24345
+ });
24346
+
24347
+ if (err) {
24348
+ dispatch({
24349
+ type: SHOW_ALERT,
24350
+ payload: {
24351
+ type: "error",
24352
+ content: getErrorMessages(err)
24353
+ }
24354
+ });
24355
+ return onFailure(err);
24356
+ }
24357
+
24358
+ dispatch({
24359
+ type: SHOW_ALERT,
24360
+ payload: {
24361
+ type: "success",
24362
+ content: t("messages.resent")
24363
+ }
24364
+ });
24365
+ return onSuccess(res);
24366
+ });
24367
+ };
24368
+
24369
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
24370
+ switch (action.type) {
24371
+ case SHOW_ALERT:
24372
+ return lib_7({ ...state,
24373
+ alert: action.payload
24374
+ });
24375
+
24376
+ case LOADING:
24377
+ return lib_7({ ...state,
24378
+ isSubmitting: action.payload
24379
+ });
24380
+
24381
+ case HANDLE_SUBMIT:
24382
+ return lib_5({ ...state,
24383
+ isSubmitting: true
24384
+ }, (state, dispatch) => submit());
24385
+
24386
+ default:
24387
+ return state;
24388
+ }
24389
+ }, initialState);
24390
+ return /*#__PURE__*/React__default.createElement("div", {
24391
+ style: { ...style
24392
+ },
24393
+ className: `pelcro-container pelcro-email-verify-container ${className}`
24394
+ }, /*#__PURE__*/React__default.createElement(Provider, {
24395
+ value: {
24396
+ state,
24397
+ dispatch
24398
+ }
24399
+ }, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
24400
+ store,
24401
+ key: i
24402
+ })) : /*#__PURE__*/React__default.cloneElement(children, {
24403
+ store
24404
+ })));
24405
+ };
24406
+
24407
+ const EmailVerifyResendButton = ({
24408
+ name,
24409
+ onClick,
24410
+ ...otherProps
24411
+ }) => {
24412
+ const {
24413
+ dispatch,
24414
+ state: {
24415
+ isSubmitting
24416
+ }
24417
+ } = useContext(store);
24418
+ const {
24419
+ t
24420
+ } = useTranslation("verifyEmail");
24421
+ return /*#__PURE__*/React__default.createElement(Button, Object.assign({
24422
+ onClick: () => {
24423
+ dispatch({
24424
+ type: HANDLE_SUBMIT
24425
+ });
24426
+ onClick === null || onClick === void 0 ? void 0 : onClick();
24427
+ },
24428
+ isLoading: isSubmitting
24429
+ }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
24430
+ };
24431
+
24432
+ var _path, _path2;
24433
+
24434
+ 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); }
24435
+
24436
+ function SvgEmailVerify(props) {
24437
+ return /*#__PURE__*/React.createElement("svg", _extends({
24438
+ className: "plc-w-6 plc-h-6",
24439
+ viewBox: "0 0 700 700",
24440
+ xmlns: "http://www.w3.org/2000/svg"
24441
+ }, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
24442
+ 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"
24443
+ })), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
24444
+ 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"
24445
+ })));
24446
+ }
24447
+
24448
+ const EmailVerifyView = props => {
24449
+ var _window$Pelcro$user$r;
24450
+
24451
+ const {
24452
+ t
24453
+ } = useTranslation("verifyEmail");
24454
+ return /*#__PURE__*/React__default.createElement("div", {
24455
+ id: "pelcro-email-verify-view"
24456
+ }, /*#__PURE__*/React__default.createElement("div", {
24457
+ className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
24458
+ }, /*#__PURE__*/React__default.createElement("h4", {
24459
+ className: "plc-text-2xl plc-font-semibold"
24460
+ }, t("labels.title"))), /*#__PURE__*/React__default.createElement("form", {
24461
+ action: "javascript:void(0);",
24462
+ className: "plc-mt-2 pelcro-form"
24463
+ }, /*#__PURE__*/React__default.createElement(EmailVerifyContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), /*#__PURE__*/React__default.createElement("div", {
24464
+ className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
24465
+ }, /*#__PURE__*/React__default.createElement(SvgEmailVerify, {
24466
+ className: "plc-w-32 plc-h-32"
24467
+ }), /*#__PURE__*/React__default.createElement("p", {
24468
+ className: "plc-mb-1 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
24469
+ }, t("labels.instructions"), " ", /*#__PURE__*/React__default.createElement("span", {
24470
+ className: "plc-font-bold"
24471
+ }, (_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, {
24472
+ role: "submit",
24473
+ className: "plc-mt-4 plc-w-full",
24474
+ name: t("labels.resend"),
24475
+ id: "pelcro-submit"
24476
+ }))));
24477
+ };
24478
+
24479
+ const EmailVerifyModal = ({
24480
+ onDisplay,
24481
+ onClose,
24482
+ ...otherProps
24483
+ }) => {
24484
+ return /*#__PURE__*/React__default.createElement(Modal, {
24485
+ onDisplay: onDisplay,
24486
+ onClose: onClose,
24487
+ id: "pelcro-email-verify-modal"
24488
+ }, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
24489
+ };
24490
+ EmailVerifyModal.viewId = "email-verify";
24491
+
24492
+ 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 };