@pelcro/react-pelcro-js 2.7.0-beta.10 → 2.7.0-beta.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -3464,7 +3464,7 @@ var paymentMethod_fr = {
3464
3464
  var title$d = "Enter your email to subscribe to our newsletter";
3465
3465
  var updateTitle$1 = "Update newsletter selections";
3466
3466
  var subtitle$7 = "We may use your email for other marketing communication";
3467
- var labels$l = {
3467
+ var labels$n = {
3468
3468
  submit: "Submit",
3469
3469
  firstName: "First name",
3470
3470
  lastName: "Last name",
@@ -3472,7 +3472,7 @@ var labels$l = {
3472
3472
  postalCode: "Postal code",
3473
3473
  required: "required"
3474
3474
  };
3475
- var messages$p = {
3475
+ var messages$r = {
3476
3476
  alreadyHaveAccount: "Already have an account?",
3477
3477
  success: "Newsletters were successfully updated",
3478
3478
  loginHere: "Login here.",
@@ -3483,14 +3483,14 @@ var newsletter_en = {
3483
3483
  title: title$d,
3484
3484
  updateTitle: updateTitle$1,
3485
3485
  subtitle: subtitle$7,
3486
- labels: labels$l,
3487
- messages: messages$p
3486
+ labels: labels$n,
3487
+ messages: messages$r
3488
3488
  };
3489
3489
 
3490
3490
  var title$c = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
3491
3491
  var updateTitle = "Mettre à jour son choix d'infolettres";
3492
3492
  var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
3493
- var labels$k = {
3493
+ var labels$m = {
3494
3494
  submit: "Lire l’article !",
3495
3495
  firstName: "Prénom",
3496
3496
  lastName: "Nom de famille",
@@ -3498,7 +3498,7 @@ var labels$k = {
3498
3498
  postalCode: "Code postal",
3499
3499
  required: "Champs obligatoires"
3500
3500
  };
3501
- var messages$o = {
3501
+ var messages$q = {
3502
3502
  alreadyHaveAccount: "Vous avez déjà un compte ?",
3503
3503
  success: "Votre choix d'infolettres à été mis à jour",
3504
3504
  loginHere: "Connectez-vous ici",
@@ -3509,14 +3509,14 @@ var newsletter_fr = {
3509
3509
  title: title$c,
3510
3510
  updateTitle: updateTitle,
3511
3511
  subtitle: subtitle$6,
3512
- labels: labels$k,
3513
- messages: messages$o
3512
+ labels: labels$m,
3513
+ messages: messages$q
3514
3514
  };
3515
3515
 
3516
- var labels$j = {
3516
+ var labels$l = {
3517
3517
  "continue": "Continue to content"
3518
3518
  };
3519
- var messages$n = {
3519
+ var messages$p = {
3520
3520
  yourFreeTrial: "Subscription successful!",
3521
3521
  youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
3522
3522
  clickToLearn: {
@@ -3538,15 +3538,15 @@ var errors$9 = {
3538
3538
  "": ""
3539
3539
  };
3540
3540
  var success_en = {
3541
- labels: labels$j,
3542
- messages: messages$n,
3541
+ labels: labels$l,
3542
+ messages: messages$p,
3543
3543
  errors: errors$9
3544
3544
  };
3545
3545
 
3546
- var labels$i = {
3546
+ var labels$k = {
3547
3547
  "continue": "Abonnement réussi !"
3548
3548
  };
3549
- var messages$m = {
3549
+ var messages$o = {
3550
3550
  yourFreeTrial: "Votre essai gratuit vient de débuter",
3551
3551
  youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
3552
3552
  clickToLearn: {
@@ -3568,12 +3568,12 @@ var errors$8 = {
3568
3568
  "": ""
3569
3569
  };
3570
3570
  var success_fr = {
3571
- labels: labels$i,
3572
- messages: messages$m,
3571
+ labels: labels$k,
3572
+ messages: messages$o,
3573
3573
  errors: errors$8
3574
3574
  };
3575
3575
 
3576
- var messages$l = {
3576
+ var messages$n = {
3577
3577
  freeVisits: "Free visits left:",
3578
3578
  subscribeNow: "Subscribe",
3579
3579
  alreadyHaveAccount: "Already have an account?",
@@ -3583,11 +3583,11 @@ var errors$7 = {
3583
3583
  "": ""
3584
3584
  };
3585
3585
  var meter_en = {
3586
- messages: messages$l,
3586
+ messages: messages$n,
3587
3587
  errors: errors$7
3588
3588
  };
3589
3589
 
3590
- var messages$k = {
3590
+ var messages$m = {
3591
3591
  freeVisits: "Visites gratuites restantes:",
3592
3592
  subscribeNow: "Abonnez-vous maintenant !",
3593
3593
  alreadyHaveAccount: "Vous avez déjà un compte ?",
@@ -3597,15 +3597,15 @@ var errors$6 = {
3597
3597
  "": ""
3598
3598
  };
3599
3599
  var meter_fr = {
3600
- messages: messages$k,
3600
+ messages: messages$m,
3601
3601
  errors: errors$6
3602
3602
  };
3603
3603
 
3604
- var messages$j = {
3604
+ var messages$l = {
3605
3605
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
3606
3606
  bankRedirection: "Please hold, redirecting you to your bank."
3607
3607
  };
3608
- var labels$h = {
3608
+ var labels$j = {
3609
3609
  card: "Enter card number",
3610
3610
  date: "Expiration date",
3611
3611
  CVC: "CVC",
@@ -3624,15 +3624,15 @@ var labels$h = {
3624
3624
  removeCoupon: "REMOVE"
3625
3625
  };
3626
3626
  var checkoutForm_en = {
3627
- messages: messages$j,
3628
- labels: labels$h
3627
+ messages: messages$l,
3628
+ labels: labels$j
3629
3629
  };
3630
3630
 
3631
- var messages$i = {
3631
+ var messages$k = {
3632
3632
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
3633
3633
  bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
3634
3634
  };
3635
- var labels$g = {
3635
+ var labels$i = {
3636
3636
  card: "Entrez le numéro de carte",
3637
3637
  date: "Date d’expiration",
3638
3638
  CVC: "CVC",
@@ -3651,8 +3651,8 @@ var labels$g = {
3651
3651
  removeCoupon: "RETIRER"
3652
3652
  };
3653
3653
  var checkoutForm_fr = {
3654
- messages: messages$i,
3655
- labels: labels$g
3654
+ messages: messages$k,
3655
+ labels: labels$i
3656
3656
  };
3657
3657
 
3658
3658
  var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
@@ -3685,7 +3685,7 @@ var messages_fr = {
3685
3685
  recaptcha: recaptcha
3686
3686
  };
3687
3687
 
3688
- var labels$f = {
3688
+ var labels$h = {
3689
3689
  email: "Enter email",
3690
3690
  password: "Enter password",
3691
3691
  required: "required",
@@ -3693,7 +3693,7 @@ var labels$f = {
3693
3693
  passwordPlaceholder: "Password",
3694
3694
  login: "Login"
3695
3695
  };
3696
- var messages$h = {
3696
+ var messages$j = {
3697
3697
  loginTo: "Login to your account",
3698
3698
  welcome: "Welcome back, sign in with your existing account.",
3699
3699
  dontHaveAccount: "Don't have an account yet?",
@@ -3712,12 +3712,12 @@ var errors$5 = {
3712
3712
  "": ""
3713
3713
  };
3714
3714
  var login_en = {
3715
- labels: labels$f,
3716
- messages: messages$h,
3715
+ labels: labels$h,
3716
+ messages: messages$j,
3717
3717
  errors: errors$5
3718
3718
  };
3719
3719
 
3720
- var labels$e = {
3720
+ var labels$g = {
3721
3721
  email: "Entrez votre adresse courriel",
3722
3722
  password: "Entrez votre mot de passe",
3723
3723
  required: "Champs obligatoires",
@@ -3725,7 +3725,7 @@ var labels$e = {
3725
3725
  passwordPlaceholder: "Mot de passe",
3726
3726
  login: "Connexion"
3727
3727
  };
3728
- var messages$g = {
3728
+ var messages$i = {
3729
3729
  loginTo: "Connectez-vous à votre compte",
3730
3730
  welcome: "Bienvenue, connectez-vous avec votre compte existant.",
3731
3731
  dontHaveAccount: "Vous n’avez pas encore de compte ?",
@@ -3744,14 +3744,14 @@ var errors$4 = {
3744
3744
  "": ""
3745
3745
  };
3746
3746
  var login_fr = {
3747
- labels: labels$e,
3748
- messages: messages$g,
3747
+ labels: labels$g,
3748
+ messages: messages$i,
3749
3749
  errors: errors$4
3750
3750
  };
3751
3751
 
3752
3752
  var title$b = "Create an account";
3753
3753
  var subtitle$5 = "Enter your email and password below";
3754
- var labels$d = {
3754
+ var labels$f = {
3755
3755
  signUpFacebook: "Sign up with Facebook",
3756
3756
  signUpGoogle: "Sign up with Google",
3757
3757
  signUpEmail: "Sign up with Email",
@@ -3763,7 +3763,7 @@ var labels$d = {
3763
3763
  firstName: "First name",
3764
3764
  lastName: "Last name"
3765
3765
  };
3766
- var messages$f = {
3766
+ var messages$h = {
3767
3767
  alreadyHaveAccount: "Already have an account?",
3768
3768
  createAccount: "Create account",
3769
3769
  loginHere: "login here. ",
@@ -3837,8 +3837,8 @@ var redeem$1 = {
3837
3837
  var register_en = {
3838
3838
  title: title$b,
3839
3839
  subtitle: subtitle$5,
3840
- labels: labels$d,
3841
- messages: messages$f,
3840
+ labels: labels$f,
3841
+ messages: messages$h,
3842
3842
  errors: errors$3,
3843
3843
  gift: gift$1,
3844
3844
  redeem: redeem$1
@@ -3846,7 +3846,7 @@ var register_en = {
3846
3846
 
3847
3847
  var title$a = "Créer un compte";
3848
3848
  var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
3849
- var labels$c = {
3849
+ var labels$e = {
3850
3850
  signUpFacebook: "Inscrivez-vous avec Facebook",
3851
3851
  signUpGoogle: "Inscrivez-vous avec Google",
3852
3852
  signUpEmail: "Inscrivez-vous avec votre courriel",
@@ -3858,7 +3858,7 @@ var labels$c = {
3858
3858
  firstName: "Prénom",
3859
3859
  lastName: "Nom de famille"
3860
3860
  };
3861
- var messages$e = {
3861
+ var messages$g = {
3862
3862
  alreadyHaveAccount: "Vous avez déjà un compte?",
3863
3863
  createAccount: "Créer un compte",
3864
3864
  loginHere: "Connectez-vous ici",
@@ -3933,14 +3933,14 @@ var redeem = {
3933
3933
  var register_fr = {
3934
3934
  title: title$a,
3935
3935
  subtitle: subtitle$4,
3936
- labels: labels$c,
3937
- messages: messages$e,
3936
+ labels: labels$e,
3937
+ messages: messages$g,
3938
3938
  errors: errors$2,
3939
3939
  gift: gift,
3940
3940
  redeem: redeem
3941
3941
  };
3942
3942
 
3943
- var labels$b = {
3943
+ var labels$d = {
3944
3944
  title: "Want to update your profile?",
3945
3945
  subtitle: "Enter your information below to update your profile",
3946
3946
  email: "Email",
@@ -3956,17 +3956,17 @@ var labels$b = {
3956
3956
  removeImage: "Remove current photo",
3957
3957
  zoom: "Zoom"
3958
3958
  };
3959
- var messages$d = {
3959
+ var messages$f = {
3960
3960
  userUpdated: "Thanks! Your profile was updated successfully.",
3961
3961
  pictureRemoved: "Your profile picture was removed successfully.",
3962
3962
  pictureUpdated: "Your profile picture was updated successfully."
3963
3963
  };
3964
3964
  var userEdit_en = {
3965
- labels: labels$b,
3966
- messages: messages$d
3965
+ labels: labels$d,
3966
+ messages: messages$f
3967
3967
  };
3968
3968
 
3969
- var labels$a = {
3969
+ var labels$c = {
3970
3970
  title: "Voulez-vous mettre à jour votre profil ?",
3971
3971
  subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
3972
3972
  email: "Address courriel",
@@ -3982,20 +3982,20 @@ var labels$a = {
3982
3982
  removeImage: "supprimer la photo actuelle",
3983
3983
  zoom: "Zoom"
3984
3984
  };
3985
- var messages$c = {
3985
+ var messages$e = {
3986
3986
  userUpdated: "Votre profil a été mis à jour avec succès.",
3987
3987
  pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
3988
3988
  pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
3989
3989
  };
3990
3990
  var userEdit_fr = {
3991
- labels: labels$a,
3992
- messages: messages$c
3991
+ labels: labels$c,
3992
+ messages: messages$e
3993
3993
  };
3994
3994
 
3995
3995
  var title$9 = "Enter your shipping address";
3996
3996
  var selectAddressTitle$1 = "Please select an address";
3997
3997
  var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
3998
- var labels$9 = {
3998
+ var labels$b = {
3999
3999
  address: "Address",
4000
4000
  code: "Postal Code/Zip",
4001
4001
  city: "City",
@@ -4010,7 +4010,7 @@ var buttons$5 = {
4010
4010
  selectAddress: "Select address",
4011
4011
  addAddress: "Add new address"
4012
4012
  };
4013
- var messages$b = {
4013
+ var messages$d = {
4014
4014
  addressUpdated: "The address was successfully updated!",
4015
4015
  subRedeemed: "Your subscription has been redeemed."
4016
4016
  };
@@ -4018,15 +4018,15 @@ var address_en = {
4018
4018
  title: title$9,
4019
4019
  selectAddressTitle: selectAddressTitle$1,
4020
4020
  selectAddressSubtitle: selectAddressSubtitle$1,
4021
- labels: labels$9,
4021
+ labels: labels$b,
4022
4022
  buttons: buttons$5,
4023
- messages: messages$b
4023
+ messages: messages$d
4024
4024
  };
4025
4025
 
4026
4026
  var title$8 = "Entrez votre adresse de livraison";
4027
4027
  var selectAddressTitle = "Veuillez sélectionner une adresse";
4028
4028
  var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
4029
- var labels$8 = {
4029
+ var labels$a = {
4030
4030
  address: "Adresse",
4031
4031
  code: "Code postal / Zip",
4032
4032
  city: "Ville",
@@ -4041,7 +4041,7 @@ var buttons$4 = {
4041
4041
  selectAddress: "Choisir cette adresse",
4042
4042
  addAddress: "Ajouter une nouvelle adresse"
4043
4043
  };
4044
- var messages$a = {
4044
+ var messages$c = {
4045
4045
  addressUpdated: "Votre adresse a été mise à jour avec succès",
4046
4046
  subRedeemed: "Votre abonnement a bien été activé."
4047
4047
  };
@@ -4049,9 +4049,9 @@ var address_fr = {
4049
4049
  title: title$8,
4050
4050
  selectAddressTitle: selectAddressTitle,
4051
4051
  selectAddressSubtitle: selectAddressSubtitle,
4052
- labels: labels$8,
4052
+ labels: labels$a,
4053
4053
  buttons: buttons$4,
4054
- messages: messages$a
4054
+ messages: messages$c
4055
4055
  };
4056
4056
 
4057
4057
  var title$7 = "Reset your password";
@@ -4098,7 +4098,7 @@ var password$1 = "Password";
4098
4098
  var submit$3 = "Submit";
4099
4099
  var required$3 = "Required";
4100
4100
  var passwordResetEmailSent$1 = "Password reset instructions have been sent to your email";
4101
- var messages$9 = {
4101
+ var messages$b = {
4102
4102
  alreadyHaveAccount: "Already have an account?",
4103
4103
  loginHere: "login here."
4104
4104
  };
@@ -4109,7 +4109,7 @@ var passwordForgot_en = {
4109
4109
  submit: submit$3,
4110
4110
  required: required$3,
4111
4111
  passwordResetEmailSent: passwordResetEmailSent$1,
4112
- messages: messages$9
4112
+ messages: messages$b
4113
4113
  };
4114
4114
 
4115
4115
  var title$4 = "Mot de passe oublié ?";
@@ -4118,7 +4118,7 @@ var password = "Mot de passe";
4118
4118
  var submit$2 = "Soumettre";
4119
4119
  var required$2 = "Champs obligatoires";
4120
4120
  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.";
4121
- var messages$8 = {
4121
+ var messages$a = {
4122
4122
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4123
4123
  loginHere: "Connectez-vous ici"
4124
4124
  };
@@ -4129,7 +4129,7 @@ var passwordForgot_fr = {
4129
4129
  submit: submit$2,
4130
4130
  required: required$2,
4131
4131
  passwordResetEmailSent: passwordResetEmailSent,
4132
- messages: messages$8
4132
+ messages: messages$a
4133
4133
  };
4134
4134
 
4135
4135
  var title$3 = "Change your password";
@@ -4230,7 +4230,7 @@ var buttons$3 = {
4230
4230
  purchase: "Purchase",
4231
4231
  "continue": "Continue"
4232
4232
  };
4233
- var messages$7 = {
4233
+ var messages$9 = {
4234
4234
  orderConfirmed: {
4235
4235
  title: "Order confirmed!",
4236
4236
  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."
@@ -4239,14 +4239,14 @@ var messages$7 = {
4239
4239
  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.",
4240
4240
  currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
4241
4241
  };
4242
- var labels$7 = {
4242
+ var labels$9 = {
4243
4243
  summary: "Order summary",
4244
4244
  total: "total"
4245
4245
  };
4246
4246
  var shop_en = {
4247
4247
  buttons: buttons$3,
4248
- messages: messages$7,
4249
- labels: labels$7
4248
+ messages: messages$9,
4249
+ labels: labels$9
4250
4250
  };
4251
4251
 
4252
4252
  var buttons$2 = {
@@ -4255,7 +4255,7 @@ var buttons$2 = {
4255
4255
  purchase: "Acheter",
4256
4256
  "continue": "Continuer au contenu"
4257
4257
  };
4258
- var messages$6 = {
4258
+ var messages$8 = {
4259
4259
  orderConfirmed: {
4260
4260
  title: "Votre commande est confirmée !",
4261
4261
  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."
@@ -4264,17 +4264,17 @@ var messages$6 = {
4264
4264
  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.",
4265
4265
  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."
4266
4266
  };
4267
- var labels$6 = {
4267
+ var labels$8 = {
4268
4268
  summary: "récapitulatif de commande",
4269
4269
  total: "total"
4270
4270
  };
4271
4271
  var shop_fr = {
4272
4272
  buttons: buttons$2,
4273
- messages: messages$6,
4274
- labels: labels$6
4273
+ messages: messages$8,
4274
+ labels: labels$8
4275
4275
  };
4276
4276
 
4277
- var labels$5 = {
4277
+ var labels$7 = {
4278
4278
  cardNumber: "Numéro de carte",
4279
4279
  securityCode: "Code de sécurité",
4280
4280
  submit: "Soumettre",
@@ -4296,7 +4296,7 @@ var labels$5 = {
4296
4296
  title: "Informations de paiement"
4297
4297
  }
4298
4298
  };
4299
- var messages$5 = {
4299
+ var messages$7 = {
4300
4300
  youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
4301
4301
  cancel: "Annuler votre abonnement en ligne à tout moment.",
4302
4302
  giftSent: "Le cadeau d’abonnement a été envoyé à",
@@ -4309,12 +4309,12 @@ var errors$1 = {
4309
4309
  "": ""
4310
4310
  };
4311
4311
  var payment_fr = {
4312
- labels: labels$5,
4313
- messages: messages$5,
4312
+ labels: labels$7,
4313
+ messages: messages$7,
4314
4314
  errors: errors$1
4315
4315
  };
4316
4316
 
4317
- var labels$4 = {
4317
+ var labels$6 = {
4318
4318
  cardNumber: "Card number",
4319
4319
  securityCode: "Security Code",
4320
4320
  submit: "Submit",
@@ -4336,7 +4336,7 @@ var labels$4 = {
4336
4336
  title: "Payment Information"
4337
4337
  }
4338
4338
  };
4339
- var messages$4 = {
4339
+ var messages$6 = {
4340
4340
  youAreSafe: "You're safe - PCI compliant 128 SSL by",
4341
4341
  cancel: "Cancel your subscription online at anytime.",
4342
4342
  giftSent: "Subscription gift has been sent to",
@@ -4349,12 +4349,12 @@ var errors = {
4349
4349
  "": ""
4350
4350
  };
4351
4351
  var payment_en = {
4352
- labels: labels$4,
4353
- messages: messages$4,
4352
+ labels: labels$6,
4353
+ messages: messages$6,
4354
4354
  errors: errors
4355
4355
  };
4356
4356
 
4357
- var labels$3 = {
4357
+ var labels$5 = {
4358
4358
  menu: "Pelcro Menu",
4359
4359
  name: "Name",
4360
4360
  email: "Email",
@@ -4421,7 +4421,7 @@ var labels$3 = {
4421
4421
  goBack: "Go back"
4422
4422
  }
4423
4423
  };
4424
- var messages$3 = {
4424
+ var messages$5 = {
4425
4425
  noCard: "You don't have a card",
4426
4426
  subCancellation: {
4427
4427
  isSureToCancel: "Are you sure you want to cancel your subscription?",
@@ -4431,11 +4431,11 @@ var messages$3 = {
4431
4431
  }
4432
4432
  };
4433
4433
  var dashboard_en = {
4434
- labels: labels$3,
4435
- messages: messages$3
4434
+ labels: labels$5,
4435
+ messages: messages$5
4436
4436
  };
4437
4437
 
4438
- var labels$2 = {
4438
+ var labels$4 = {
4439
4439
  menu: "Menu Pelcro",
4440
4440
  name: "Nom",
4441
4441
  email: "Courriel",
@@ -4502,7 +4502,7 @@ var labels$2 = {
4502
4502
  goBack: "Retourner"
4503
4503
  }
4504
4504
  };
4505
- var messages$2 = {
4505
+ var messages$4 = {
4506
4506
  noCard: "Vous n’avez pas une carte",
4507
4507
  subCancellation: {
4508
4508
  isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
@@ -4512,16 +4512,16 @@ var messages$2 = {
4512
4512
  }
4513
4513
  };
4514
4514
  var dashboard_fr = {
4515
- labels: labels$2,
4516
- messages: messages$2
4515
+ labels: labels$4,
4516
+ messages: messages$4
4517
4517
  };
4518
4518
 
4519
- var messages$1 = {
4519
+ var messages$3 = {
4520
4520
  alreadyHaveAccount: "Already have an account?",
4521
4521
  loginHere: "Login here",
4522
4522
  checkbox: "Check this box to gift this subscription"
4523
4523
  };
4524
- var labels$1 = {
4524
+ var labels$3 = {
4525
4525
  plan: {
4526
4526
  title: "Subscribe to a plan",
4527
4527
  subtitle: "Select one of the plans below and click on next."
@@ -4544,17 +4544,17 @@ var buttons$1 = {
4544
4544
  back: "Back"
4545
4545
  };
4546
4546
  var select_en = {
4547
- messages: messages$1,
4548
- labels: labels$1,
4547
+ messages: messages$3,
4548
+ labels: labels$3,
4549
4549
  buttons: buttons$1
4550
4550
  };
4551
4551
 
4552
- var messages = {
4552
+ var messages$2 = {
4553
4553
  alreadyHaveAccount: "Vous avez déjà un compte ?",
4554
4554
  loginHere: "Connectez-vous ici",
4555
4555
  checkbox: "Cochez cette case pour offrir cet abonnement"
4556
4556
  };
4557
- var labels = {
4557
+ var labels$2 = {
4558
4558
  plan: {
4559
4559
  title: "Abonnez-vous à un plan",
4560
4560
  subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
@@ -4577,8 +4577,8 @@ var buttons = {
4577
4577
  back: "Retour"
4578
4578
  };
4579
4579
  var select_fr = {
4580
- messages: messages,
4581
- labels: labels,
4580
+ messages: messages$2,
4581
+ labels: labels$2,
4582
4582
  buttons: buttons
4583
4583
  };
4584
4584
 
@@ -4602,6 +4602,34 @@ var notification_fr = {
4602
4602
  confirm: confirm
4603
4603
  };
4604
4604
 
4605
+ var labels$1 = {
4606
+ title: "Verify your e-mail",
4607
+ instructions: "To complete creating your account, you need to verify your e-mail address by opening the verification link we've sent to your email:",
4608
+ resend: "Resend message"
4609
+ };
4610
+ var messages$1 = {
4611
+ resent: "Resent successfully",
4612
+ success: "E-mail verified successfully"
4613
+ };
4614
+ var verifyEmail_en = {
4615
+ labels: labels$1,
4616
+ messages: messages$1
4617
+ };
4618
+
4619
+ var labels = {
4620
+ title: "Verify your e-mail",
4621
+ instructions: "To complete creating your account, you need to verify your e-mail address by opening the verification link we've sent to your email:",
4622
+ resend: "Resend message"
4623
+ };
4624
+ var messages = {
4625
+ resent: "Resent successfully",
4626
+ success: "E-mail verified successfully"
4627
+ };
4628
+ var verifyEmail_fr = {
4629
+ labels: labels,
4630
+ messages: messages
4631
+ };
4632
+
4605
4633
  function create$1(createState) {
4606
4634
  let state;
4607
4635
  const listeners = new Set();
@@ -5951,12 +5979,23 @@ class PelcroActions {
5951
5979
  view,
5952
5980
  cartItems,
5953
5981
  ...otherStateFields
5954
- } = initialState$g;
5982
+ } = initialState$h;
5955
5983
  this.set(otherStateFields);
5956
5984
  });
5957
5985
 
5958
5986
  _defineProperty$3(this, "switchView", view => {
5959
- // view switching guards
5987
+ var _window$Pelcro$site$r, _window$Pelcro$site$r2, _window$Pelcro$user$r, _window$Pelcro$user$r2;
5988
+
5989
+ 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;
5990
+ const isUserEmailVerified = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.email_confirm) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : false;
5991
+ const userMustVerifyEmail = this.get().isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified; // view switching guards
5992
+
5993
+ if (userMustVerifyEmail && !["dashboard", "meter", "login", null].includes(view)) {
5994
+ return this.set({
5995
+ view: "email-verify"
5996
+ });
5997
+ }
5998
+
5960
5999
  if (["login", "register"].includes(view) && this.get().isAuthenticated()) {
5961
6000
  return this.set({
5962
6001
  view: "dashboard"
@@ -6214,7 +6253,7 @@ class PelcroCallbacks {
6214
6253
  }
6215
6254
  });
6216
6255
 
6217
- _defineProperty$3(this, "whenUserReady", callback => {
6256
+ _defineProperty$3(this, "whenUserReady", (callback, listenerOptions) => {
6218
6257
  var _window$Pelcro$user$r;
6219
6258
 
6220
6259
  if ((_window$Pelcro$user$r = window.Pelcro.user.read()) !== null && _window$Pelcro$user$r !== void 0 && _window$Pelcro$user$r.id) {
@@ -6222,7 +6261,7 @@ class PelcroCallbacks {
6222
6261
  } else {
6223
6262
  window.document.addEventListener("PelcroUserLoaded", e => {
6224
6263
  callback(window.Pelcro.user.read());
6225
- });
6264
+ }, listenerOptions);
6226
6265
  }
6227
6266
  });
6228
6267
 
@@ -6241,7 +6280,7 @@ class PelcroCallbacks {
6241
6280
 
6242
6281
  }
6243
6282
 
6244
- const initialState$g = {
6283
+ const initialState$h = {
6245
6284
  // View
6246
6285
  view: null,
6247
6286
  // Plans
@@ -6269,7 +6308,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
6269
6308
  return {
6270
6309
  // Store setter
6271
6310
  set,
6272
- ...initialState$g,
6311
+ ...initialState$h,
6273
6312
  // State actions
6274
6313
  ...actions,
6275
6314
  // Callbacks
@@ -6420,7 +6459,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
6420
6459
  */
6421
6460
 
6422
6461
  const isValidViewFromURL = viewID => {
6423
- 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()) {
6462
+ 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()) {
6424
6463
  return true;
6425
6464
  }
6426
6465
 
@@ -6634,6 +6673,7 @@ const resources = {
6634
6673
  passwordReset: passwordReset_en,
6635
6674
  passwordForgot: passwordForgot_en,
6636
6675
  passwordChange: passwordChange_en,
6676
+ verifyEmail: verifyEmail_en,
6637
6677
  cart: cart_en,
6638
6678
  shop: shop_en,
6639
6679
  payment: payment_en,
@@ -6656,6 +6696,7 @@ const resources = {
6656
6696
  passwordReset: passwordReset_fr,
6657
6697
  passwordForgot: passwordForgot_fr,
6658
6698
  passwordChange: passwordChange_fr,
6699
+ verifyEmail: verifyEmail_fr,
6659
6700
  cart: cart_fr,
6660
6701
  shop: shop_fr,
6661
6702
  payment: payment_fr,
@@ -6945,8 +6986,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
6945
6986
 
6946
6987
  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}}
6947
6988
 
6948
- function _extends$x() {
6949
- _extends$x = Object.assign || function (target) {
6989
+ function _extends$y() {
6990
+ _extends$y = Object.assign || function (target) {
6950
6991
  for (var i = 1; i < arguments.length; i++) {
6951
6992
  var source = arguments[i];
6952
6993
 
@@ -6960,7 +7001,7 @@ function _extends$x() {
6960
7001
  return target;
6961
7002
  };
6962
7003
 
6963
- return _extends$x.apply(this, arguments);
7004
+ return _extends$y.apply(this, arguments);
6964
7005
  }
6965
7006
 
6966
7007
  function _taggedTemplateLiteralLoose(strings, raw) {
@@ -7050,7 +7091,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
7050
7091
  var reducer = function reducer(state, action) {
7051
7092
  switch (action.type) {
7052
7093
  case ActionType.ADD_TOAST:
7053
- return _extends$x({}, state, {
7094
+ return _extends$y({}, state, {
7054
7095
  toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
7055
7096
  });
7056
7097
 
@@ -7060,9 +7101,9 @@ var reducer = function reducer(state, action) {
7060
7101
  clearFromRemoveQueue(action.toast.id);
7061
7102
  }
7062
7103
 
7063
- return _extends$x({}, state, {
7104
+ return _extends$y({}, state, {
7064
7105
  toasts: state.toasts.map(function (t) {
7065
- return t.id === action.toast.id ? _extends$x({}, t, action.toast) : t;
7106
+ return t.id === action.toast.id ? _extends$y({}, t, action.toast) : t;
7066
7107
  })
7067
7108
  });
7068
7109
 
@@ -7089,9 +7130,9 @@ var reducer = function reducer(state, action) {
7089
7130
  });
7090
7131
  }
7091
7132
 
7092
- return _extends$x({}, state, {
7133
+ return _extends$y({}, state, {
7093
7134
  toasts: state.toasts.map(function (t) {
7094
- return t.id === toastId || toastId === undefined ? _extends$x({}, t, {
7135
+ return t.id === toastId || toastId === undefined ? _extends$y({}, t, {
7095
7136
  visible: false
7096
7137
  }) : t;
7097
7138
  })
@@ -7099,28 +7140,28 @@ var reducer = function reducer(state, action) {
7099
7140
 
7100
7141
  case ActionType.REMOVE_TOAST:
7101
7142
  if (action.toastId === undefined) {
7102
- return _extends$x({}, state, {
7143
+ return _extends$y({}, state, {
7103
7144
  toasts: []
7104
7145
  });
7105
7146
  }
7106
7147
 
7107
- return _extends$x({}, state, {
7148
+ return _extends$y({}, state, {
7108
7149
  toasts: state.toasts.filter(function (t) {
7109
7150
  return t.id !== action.toastId;
7110
7151
  })
7111
7152
  });
7112
7153
 
7113
7154
  case ActionType.START_PAUSE:
7114
- return _extends$x({}, state, {
7155
+ return _extends$y({}, state, {
7115
7156
  pausedAt: action.time
7116
7157
  });
7117
7158
 
7118
7159
  case ActionType.END_PAUSE:
7119
7160
  var diff = action.time - (state.pausedAt || 0);
7120
- return _extends$x({}, state, {
7161
+ return _extends$y({}, state, {
7121
7162
  pausedAt: undefined,
7122
7163
  toasts: state.toasts.map(function (t) {
7123
- return _extends$x({}, t, {
7164
+ return _extends$y({}, t, {
7124
7165
  pauseDuration: t.pauseDuration + diff
7125
7166
  });
7126
7167
  })
@@ -7167,12 +7208,12 @@ var useStore = function useStore(toastOptions) {
7167
7208
  var mergedToasts = state.toasts.map(function (t) {
7168
7209
  var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
7169
7210
 
7170
- return _extends$x({}, toastOptions, toastOptions[t.type], t, {
7211
+ return _extends$y({}, toastOptions, toastOptions[t.type], t, {
7171
7212
  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],
7172
- style: _extends$x({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7213
+ style: _extends$y({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
7173
7214
  });
7174
7215
  });
7175
- return _extends$x({}, state, {
7216
+ return _extends$y({}, state, {
7176
7217
  toasts: mergedToasts
7177
7218
  });
7178
7219
  };
@@ -7182,7 +7223,7 @@ var createToast = function createToast(message, type, opts) {
7182
7223
  type = 'blank';
7183
7224
  }
7184
7225
 
7185
- return _extends$x({
7226
+ return _extends$y({
7186
7227
  createdAt: Date.now(),
7187
7228
  visible: true,
7188
7229
  type: type,
@@ -7232,14 +7273,14 @@ toast.remove = function (toastId) {
7232
7273
  };
7233
7274
 
7234
7275
  toast.promise = function (promise, msgs, opts) {
7235
- var id = toast.loading(msgs.loading, _extends$x({}, opts, opts == null ? void 0 : opts.loading));
7276
+ var id = toast.loading(msgs.loading, _extends$y({}, opts, opts == null ? void 0 : opts.loading));
7236
7277
  promise.then(function (p) {
7237
- toast.success(resolveValue(msgs.success, p), _extends$x({
7278
+ toast.success(resolveValue(msgs.success, p), _extends$y({
7238
7279
  id: id
7239
7280
  }, opts, opts == null ? void 0 : opts.success));
7240
7281
  return p;
7241
7282
  })["catch"](function (e) {
7242
- toast.error(resolveValue(msgs.error, e), _extends$x({
7283
+ toast.error(resolveValue(msgs.error, e), _extends$y({
7243
7284
  id: id
7244
7285
  }, opts, opts == null ? void 0 : opts.error));
7245
7286
  });
@@ -7578,7 +7619,7 @@ var ToastBar = /*#__PURE__*/React.memo(function (_ref2) {
7578
7619
  var message = React.createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
7579
7620
  return React.createElement(ToastBarBase, {
7580
7621
  className: toast.className,
7581
- style: _extends$x({}, animationStyle, style, toast.style)
7622
+ style: _extends$y({}, animationStyle, style, toast.style)
7582
7623
  }, typeof children === 'function' ? children({
7583
7624
  icon: icon,
7584
7625
  message: message
@@ -7608,7 +7649,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
7608
7649
  } : position.includes('right') ? {
7609
7650
  justifyContent: 'flex-end'
7610
7651
  } : {};
7611
- return _extends$x({
7652
+ return _extends$y({
7612
7653
  left: 0,
7613
7654
  right: 0,
7614
7655
  display: 'flex',
@@ -7635,7 +7676,7 @@ var Toaster = function Toaster(_ref) {
7635
7676
  handlers = _useToaster.handlers;
7636
7677
 
7637
7678
  return React.createElement("div", {
7638
- style: _extends$x({
7679
+ style: _extends$y({
7639
7680
  position: 'fixed',
7640
7681
  zIndex: 9999,
7641
7682
  top: DEFAULT_OFFSET,
@@ -7670,87 +7711,87 @@ var Toaster = function Toaster(_ref) {
7670
7711
  }));
7671
7712
  };
7672
7713
 
7673
- var _path$u;
7714
+ var _path$v;
7674
7715
 
7675
- 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); }
7716
+ 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); }
7676
7717
 
7677
7718
  function SvgCheckSolid(props) {
7678
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
7719
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
7679
7720
  xmlns: "http://www.w3.org/2000/svg",
7680
7721
  className: "h-5 w-5",
7681
7722
  viewBox: "0 0 20 20",
7682
7723
  fill: "currentColor"
7683
- }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
7724
+ }, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
7684
7725
  fillRule: "evenodd",
7685
7726
  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",
7686
7727
  clipRule: "evenodd"
7687
7728
  })));
7688
7729
  }
7689
7730
 
7690
- var _path$t;
7731
+ var _path$u;
7691
7732
 
7692
- 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); }
7733
+ 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); }
7693
7734
 
7694
7735
  function SvgXIcon(props) {
7695
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
7736
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
7696
7737
  xmlns: "http://www.w3.org/2000/svg",
7697
7738
  viewBox: "0 0 20 20",
7698
7739
  fill: "currentColor"
7699
- }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
7740
+ }, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
7700
7741
  fill: "evenodd",
7701
7742
  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",
7702
7743
  clipRule: "evenodd"
7703
7744
  })));
7704
7745
  }
7705
7746
 
7706
- var _path$s;
7747
+ var _path$t;
7707
7748
 
7708
- 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); }
7749
+ 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); }
7709
7750
 
7710
7751
  function SvgXIconSolid(props) {
7711
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
7752
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
7712
7753
  className: "plc-w-4 plc-h-4",
7713
7754
  fill: "currentColor",
7714
7755
  xmlns: "http://www.w3.org/2000/svg",
7715
7756
  viewBox: "0 0 100 100"
7716
- }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
7757
+ }, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
7717
7758
  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"
7718
7759
  })));
7719
7760
  }
7720
7761
 
7721
- var _path$r;
7762
+ var _path$s;
7722
7763
 
7723
- 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); }
7764
+ 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); }
7724
7765
 
7725
7766
  function SvgExclamation(props) {
7726
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
7767
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
7727
7768
  className: "plc-w-4 plc-h-4 plc-mr-1",
7728
7769
  xmlns: "http://www.w3.org/2000/svg",
7729
7770
  viewBox: "0 0 20 20",
7730
7771
  fill: "currentColor"
7731
- }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
7772
+ }, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
7732
7773
  fillRule: "evenodd",
7733
7774
  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",
7734
7775
  clipRule: "evenodd"
7735
7776
  })));
7736
7777
  }
7737
7778
 
7738
- var _path$q, _path2$3;
7779
+ var _path$r, _path2$4;
7739
7780
 
7740
- 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); }
7781
+ 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); }
7741
7782
 
7742
7783
  function SvgSpinner(props) {
7743
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
7784
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
7744
7785
  className: "plc-animate-spin",
7745
7786
  viewBox: "0 0 24 24",
7746
7787
  fill: "currentColor",
7747
7788
  xmlns: "http://www.w3.org/2000/svg"
7748
- }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
7789
+ }, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
7749
7790
  opacity: 0.2,
7750
7791
  fill: "evenodd",
7751
7792
  clipRule: "evenodd",
7752
7793
  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"
7753
- })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
7794
+ })), _path2$4 || (_path2$4 = /*#__PURE__*/React__namespace.createElement("path", {
7754
7795
  d: "M2 12C2 6.477 6.477 2 12 2v3a7 7 0 00-7 7H2z"
7755
7796
  })));
7756
7797
  }
@@ -8476,53 +8517,113 @@ var pure = pure$1;
8476
8517
  var pure_1 = pure.loadStripe;
8477
8518
 
8478
8519
  /**
8479
- * @typedef {Object} OptionsType
8480
- * @property {boolean} loadPaymentSDKs
8481
- * @property {boolean} enableURLTriggers
8482
- * @property {boolean} enableTheme
8483
- * @property {boolean} enablePaywalls
8484
- * @property {boolean} enableGoogleAnalytics
8485
- */
8486
-
8487
- /**
8488
- * Initializes pelcro features based on the options flag object
8489
- * @param {OptionsType} options
8490
- * @returns
8520
+ * Extracts error message from the response error object
8521
+ * @param {Object} error Error object
8522
+ * @return {string}
8491
8523
  */
8524
+ const getErrorMessages = error => {
8525
+ var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
8492
8526
 
8493
- const optionsController = options => {
8494
- if (!options) {
8495
- return;
8527
+ if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
8528
+ return error.error.message;
8496
8529
  }
8497
8530
 
8498
- const optionsMethodsDict = {
8499
- loadPaymentSDKs: loadPaymentSDKs,
8500
- loadAuth0SDK: loadAuth0SDK,
8501
- enableURLTriggers: initViewFromURL,
8502
- enableTheme: applyPelcroTheme,
8503
- enablePaywalls: initPaywalls,
8504
- loadSecuritySDK: initSecuritySdk,
8505
- enableGoogleAnalytics: initGATracking
8506
- }; // Only execute enabled options
8531
+ 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) {
8532
+ var _error$response2, _error$response2$data;
8507
8533
 
8508
- Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
8509
- var _optionsMethodsDict$k;
8534
+ 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;
8535
+ }
8510
8536
 
8511
- return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
8512
- });
8513
- };
8514
- const initPaywalls = () => {
8515
- var _window$Pelcro$site$r;
8537
+ 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) {
8538
+ var _error$response4, _error$response4$data, _error$response4$data2;
8516
8539
 
8517
- const paywallMethods = window.Pelcro.paywall;
8518
- const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
8540
+ 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;
8541
+ }
8519
8542
 
8520
- if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
8521
- // blur entitlements based content
8522
- const didBlurContent = init(); // Skip paywall if article is not restricted
8543
+ const errorMessages = []; // enumerable error (ex: validation errors)
8523
8544
 
8524
- if (isValidViewFromURL(viewFromURL) || !paywallMethods.isArticleRestricted()) {
8525
- return;
8545
+ 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]) => {
8546
+ errorMessages.push(errorMessage);
8547
+ }); // convert to multiline string
8548
+
8549
+ return errorMessages.join("\n");
8550
+ };
8551
+ /**
8552
+ * Executes function after a wait time of inactivity
8553
+ * @param {function} func
8554
+ * @param {number} waitTime
8555
+ */
8556
+
8557
+ const debounce = (func, waitTime) => {
8558
+ let timeout;
8559
+ return function executedFunction(...args) {
8560
+ // The callback function to be executed after
8561
+ // the debounce time has elapsed
8562
+ const later = () => {
8563
+ // null timeout to indicate the debounce ended
8564
+ timeout = null;
8565
+ func(...args);
8566
+ }; // This will reset the waiting every function execution.
8567
+ // This is the step that prevents the function from
8568
+ // being executed because it will never reach the
8569
+ // inside of the previous setTimeout
8570
+
8571
+
8572
+ clearTimeout(timeout); // Restart the debounce waiting period.
8573
+ // setTimeout returns a truthy value (it differs in web vs Node)
8574
+
8575
+ timeout = setTimeout(later, waitTime);
8576
+ };
8577
+ };
8578
+
8579
+ /**
8580
+ * @typedef {Object} OptionsType
8581
+ * @property {boolean} loadPaymentSDKs
8582
+ * @property {boolean} enableURLTriggers
8583
+ * @property {boolean} enableTheme
8584
+ * @property {boolean} enablePaywalls
8585
+ * @property {boolean} enableGoogleAnalytics
8586
+ */
8587
+
8588
+ /**
8589
+ * Initializes pelcro features based on the options flag object
8590
+ * @param {OptionsType} options
8591
+ * @returns
8592
+ */
8593
+
8594
+ const optionsController = options => {
8595
+ if (!options) {
8596
+ return;
8597
+ }
8598
+
8599
+ const optionsMethodsDict = {
8600
+ loadPaymentSDKs: loadPaymentSDKs,
8601
+ loadAuth0SDK: loadAuth0SDK,
8602
+ enableURLTriggers: initViewFromURL,
8603
+ enableTheme: applyPelcroTheme,
8604
+ enablePaywalls: initPaywalls,
8605
+ loadSecuritySDK: initSecuritySdk,
8606
+ enableGoogleAnalytics: initGATracking
8607
+ }; // Only execute enabled options
8608
+
8609
+ Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
8610
+ var _optionsMethodsDict$k;
8611
+
8612
+ return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
8613
+ });
8614
+ };
8615
+ const initPaywalls = () => {
8616
+ var _window$Pelcro$site$r;
8617
+
8618
+ const paywallMethods = window.Pelcro.paywall;
8619
+ const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
8620
+
8621
+ if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
8622
+ // blur entitlements based content
8623
+ const didBlurContent = init(); // Skip paywall if article is not restricted
8624
+
8625
+ if (isValidViewFromURL(viewFromURL) || !paywallMethods.isArticleRestricted()) {
8626
+ return;
8526
8627
  }
8527
8628
 
8528
8629
  const {
@@ -8715,6 +8816,10 @@ const initViewFromURL = () => {
8715
8816
  return initCartFromUrl();
8716
8817
  }
8717
8818
 
8819
+ if (view === "email-verify") {
8820
+ return verifyEmailTokenFromUrl();
8821
+ }
8822
+
8718
8823
  switchView(view);
8719
8824
  });
8720
8825
  }
@@ -8864,6 +8969,40 @@ const initCartFromUrl = () => {
8864
8969
  });
8865
8970
  };
8866
8971
 
8972
+ const verifyEmailTokenFromUrl = () => {
8973
+ var _window$Pelcro$site$r5, _window$Pelcro$site$r6;
8974
+
8975
+ const {
8976
+ whenUserReady
8977
+ } = usePelcro.getStore();
8978
+ const translations = i18next.t("verifyEmail:messages", {
8979
+ returnObjects: true
8980
+ });
8981
+ const emailToken = window.Pelcro.helpers.getURLParameter("token");
8982
+ 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;
8983
+ if (!emailToken || !isEmailVerificationEnabled) return;
8984
+ /*
8985
+ using whenUserReady means that the verification link needs to be
8986
+ opened on the same device that was used for registeration to guarantee
8987
+ that the user is authenticated. if that's not the case, nothing would show up,
8988
+ this is a limitation caused by the SDK and it's events
8989
+ */
8990
+
8991
+ whenUserReady(() => {
8992
+ window.Pelcro.user.verifyEmailToken({
8993
+ token: emailToken
8994
+ }, (err, res) => {
8995
+ if (err) {
8996
+ return notify.error(getErrorMessages(err));
8997
+ }
8998
+
8999
+ return notify.success(translations.success);
9000
+ });
9001
+ }, {
9002
+ once: true
9003
+ });
9004
+ };
9005
+
8867
9006
  const defaultOptions = {
8868
9007
  loadPaymentSDKs: true,
8869
9008
  loadAuth0SDK: true,
@@ -9203,67 +9342,7 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
9203
9342
  const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
9204
9343
  const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
9205
9344
 
9206
- /**
9207
- * Extracts error message from the response error object
9208
- * @param {Object} error Error object
9209
- * @return {string}
9210
- */
9211
- const getErrorMessages = error => {
9212
- var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
9213
-
9214
- if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
9215
- return error.error.message;
9216
- }
9217
-
9218
- 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) {
9219
- var _error$response2, _error$response2$data;
9220
-
9221
- 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;
9222
- }
9223
-
9224
- 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) {
9225
- var _error$response4, _error$response4$data, _error$response4$data2;
9226
-
9227
- 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;
9228
- }
9229
-
9230
- const errorMessages = []; // enumerable error (ex: validation errors)
9231
-
9232
- 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]) => {
9233
- errorMessages.push(errorMessage);
9234
- }); // convert to multiline string
9235
-
9236
- return errorMessages.join("\n");
9237
- };
9238
- /**
9239
- * Executes function after a wait time of inactivity
9240
- * @param {function} func
9241
- * @param {number} waitTime
9242
- */
9243
-
9244
- const debounce = (func, waitTime) => {
9245
- let timeout;
9246
- return function executedFunction(...args) {
9247
- // The callback function to be executed after
9248
- // the debounce time has elapsed
9249
- const later = () => {
9250
- // null timeout to indicate the debounce ended
9251
- timeout = null;
9252
- func(...args);
9253
- }; // This will reset the waiting every function execution.
9254
- // This is the step that prevents the function from
9255
- // being executed because it will never reach the
9256
- // inside of the previous setTimeout
9257
-
9258
-
9259
- clearTimeout(timeout); // Restart the debounce waiting period.
9260
- // setTimeout returns a truthy value (it differs in web vs Node)
9261
-
9262
- timeout = setTimeout(later, waitTime);
9263
- };
9264
- };
9265
-
9266
- const initialState$f = {
9345
+ const initialState$g = {
9267
9346
  email: "",
9268
9347
  password: "",
9269
9348
  emailError: null,
@@ -9274,10 +9353,10 @@ const initialState$f = {
9274
9353
  content: ""
9275
9354
  }
9276
9355
  };
9277
- const store$f = /*#__PURE__*/React.createContext(initialState$f);
9356
+ const store$g = /*#__PURE__*/React.createContext(initialState$g);
9278
9357
  const {
9279
- Provider: Provider$f
9280
- } = store$f;
9358
+ Provider: Provider$g
9359
+ } = store$g;
9281
9360
 
9282
9361
  const LoginContainer = ({
9283
9362
  style,
@@ -9384,7 +9463,7 @@ const LoginContainer = ({
9384
9463
  });
9385
9464
 
9386
9465
  case RESET_LOGIN_FORM:
9387
- return initialState$f;
9466
+ return initialState$g;
9388
9467
 
9389
9468
  case DISABLE_LOGIN_BUTTON:
9390
9469
  return lib_7({ ...state,
@@ -9402,12 +9481,12 @@ const LoginContainer = ({
9402
9481
  default:
9403
9482
  return state;
9404
9483
  }
9405
- }, initialState$f);
9484
+ }, initialState$g);
9406
9485
  return /*#__PURE__*/React__default['default'].createElement("div", {
9407
9486
  style: { ...style
9408
9487
  },
9409
9488
  className: `pelcro-container pelcro-login-container ${className}`
9410
- }, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
9489
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$g, {
9411
9490
  value: {
9412
9491
  state,
9413
9492
  dispatch
@@ -9415,12 +9494,12 @@ const LoginContainer = ({
9415
9494
  }, children.length ? children.map((child, i) => {
9416
9495
  if (child) {
9417
9496
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
9418
- store: store$f,
9497
+ store: store$g,
9419
9498
  key: i
9420
9499
  });
9421
9500
  }
9422
9501
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
9423
- store: store$f
9502
+ store: store$g
9424
9503
  })));
9425
9504
  };
9426
9505
 
@@ -9665,7 +9744,7 @@ const LoginButton = ({
9665
9744
  buttonDisabled
9666
9745
  },
9667
9746
  dispatch
9668
- } = React.useContext(store$f);
9747
+ } = React.useContext(store$g);
9669
9748
  const {
9670
9749
  t
9671
9750
  } = useTranslation("login");
@@ -9686,23 +9765,23 @@ const LoginButton = ({
9686
9765
  };
9687
9766
 
9688
9767
  const LoginEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
9689
- store: store$f
9768
+ store: store$g
9690
9769
  }, props));
9691
9770
 
9692
9771
  const LoginPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
9693
- store: store$f
9772
+ store: store$g
9694
9773
  }, props));
9695
9774
 
9696
- var _path$p;
9775
+ var _path$q;
9697
9776
 
9698
- 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); }
9777
+ 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); }
9699
9778
 
9700
9779
  function SvgCheck(props) {
9701
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
9780
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
9702
9781
  xmlns: "http://www.w3.org/2000/svg",
9703
9782
  fill: "currentColor",
9704
9783
  viewBox: "0 0 20 20"
9705
- }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
9784
+ }, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
9706
9785
  fillRule: "evenodd",
9707
9786
  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",
9708
9787
  clipRule: "evenodd"
@@ -9767,7 +9846,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
9767
9846
  var FacebookLogin = unwrapExports(facebookLoginRenderProps);
9768
9847
  facebookLoginRenderProps.FacebookLogin;
9769
9848
 
9770
- const initialState$e = {
9849
+ const initialState$f = {
9771
9850
  email: "",
9772
9851
  password: "",
9773
9852
  emailError: null,
@@ -9784,10 +9863,10 @@ const initialState$e = {
9784
9863
  content: ""
9785
9864
  }
9786
9865
  };
9787
- const store$e = /*#__PURE__*/React.createContext(initialState$e);
9866
+ const store$f = /*#__PURE__*/React.createContext(initialState$f);
9788
9867
  const {
9789
- Provider: Provider$e
9790
- } = store$e;
9868
+ Provider: Provider$f
9869
+ } = store$f;
9791
9870
 
9792
9871
  const RegisterContainer = ({
9793
9872
  style,
@@ -9970,7 +10049,7 @@ const RegisterContainer = ({
9970
10049
  });
9971
10050
 
9972
10051
  case RESET_LOGIN_FORM:
9973
- return initialState$e;
10052
+ return initialState$f;
9974
10053
 
9975
10054
  case DISABLE_REGISTRATION_BUTTON:
9976
10055
  return lib_7({ ...state,
@@ -9988,12 +10067,12 @@ const RegisterContainer = ({
9988
10067
  default:
9989
10068
  return state;
9990
10069
  }
9991
- }, initialState$e);
10070
+ }, initialState$f);
9992
10071
  return /*#__PURE__*/React__default['default'].createElement("div", {
9993
10072
  style: { ...style
9994
10073
  },
9995
10074
  className: `pelcro-container pelcro-register-container ${className}`
9996
- }, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
10075
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
9997
10076
  value: {
9998
10077
  state,
9999
10078
  dispatch
@@ -10001,12 +10080,12 @@ const RegisterContainer = ({
10001
10080
  }, children.length ? children.map((child, i) => {
10002
10081
  if (child) {
10003
10082
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
10004
- store: store$e,
10083
+ store: store$f,
10005
10084
  key: i
10006
10085
  });
10007
10086
  }
10008
10087
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
10009
- store: store$e
10088
+ store: store$f
10010
10089
  })));
10011
10090
  };
10012
10091
  /**
@@ -10021,15 +10100,15 @@ function hasSecurityTokenEnabled$1() {
10021
10100
  return hasSecuritySdkLoaded;
10022
10101
  }
10023
10102
 
10024
- var _path$o;
10103
+ var _path$p;
10025
10104
 
10026
- 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); }
10105
+ 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); }
10027
10106
 
10028
10107
  function SvgFacebookLogo(props) {
10029
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
10108
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
10030
10109
  xmlns: "http://www.w3.org/2000/svg",
10031
10110
  viewBox: "88.428 12.828 107.543 207.085"
10032
- }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
10111
+ }, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
10033
10112
  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",
10034
10113
  fill: "#3c5a9a"
10035
10114
  })));
@@ -10046,10 +10125,10 @@ const FacebookLoginButton = ({
10046
10125
  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;
10047
10126
  const {
10048
10127
  dispatch: loginDispatch
10049
- } = React.useContext(store$f);
10128
+ } = React.useContext(store$g);
10050
10129
  const {
10051
10130
  dispatch: registerDispatch
10052
- } = React.useContext(store$e);
10131
+ } = React.useContext(store$f);
10053
10132
 
10054
10133
  const onSuccess = facebookUser => {
10055
10134
  loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
@@ -10102,18 +10181,18 @@ var googleLogin = createCommonjsModule(function (module, exports) {
10102
10181
  unwrapExports(googleLogin);
10103
10182
  var googleLogin_1 = googleLogin.GoogleLogin;
10104
10183
 
10105
- var _path$n, _path2$2, _path3$1, _path4;
10184
+ var _path$o, _path2$3, _path3$1, _path4;
10106
10185
 
10107
- 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); }
10186
+ 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); }
10108
10187
 
10109
10188
  function SvgGoogleLogo(props) {
10110
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
10189
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
10111
10190
  viewBox: "0 0 24 24",
10112
10191
  xmlns: "http://www.w3.org/2000/svg"
10113
- }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
10192
+ }, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
10114
10193
  fill: "#4285F4",
10115
10194
  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"
10116
- })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
10195
+ })), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
10117
10196
  fill: "#34A853",
10118
10197
  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"
10119
10198
  })), _path3$1 || (_path3$1 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -10136,10 +10215,10 @@ const GoogleLoginButton = ({
10136
10215
  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;
10137
10216
  const {
10138
10217
  dispatch: loginDispatch
10139
- } = React.useContext(store$f);
10218
+ } = React.useContext(store$g);
10140
10219
  const {
10141
10220
  dispatch: registerDispatch
10142
- } = React.useContext(store$e);
10221
+ } = React.useContext(store$f);
10143
10222
 
10144
10223
  const onSuccess = response => {
10145
10224
  var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
@@ -10187,15 +10266,15 @@ const GoogleLoginButton = ({
10187
10266
  }) : null;
10188
10267
  };
10189
10268
 
10190
- var _path$m;
10269
+ var _path$n;
10191
10270
 
10192
- 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); }
10271
+ 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); }
10193
10272
 
10194
10273
  function SvgAuth0Logo(props) {
10195
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
10274
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
10196
10275
  viewBox: "0 0 256 285",
10197
10276
  xmlns: "http://www.w3.org/2000/svg"
10198
- }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
10277
+ }, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
10199
10278
  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"
10200
10279
  })));
10201
10280
  }
@@ -10222,10 +10301,10 @@ const Auth0LoginButton = ({
10222
10301
  }, []);
10223
10302
  const {
10224
10303
  dispatch: loginDispatch
10225
- } = React.useContext(store$f);
10304
+ } = React.useContext(store$g);
10226
10305
  const {
10227
10306
  dispatch: registerDispatch
10228
- } = React.useContext(store$e);
10307
+ } = React.useContext(store$f);
10229
10308
 
10230
10309
  function handleClick() {
10231
10310
  var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
@@ -10354,19 +10433,19 @@ function LoginView(props) {
10354
10433
  }, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, null), /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, null), /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, null))))));
10355
10434
  }
10356
10435
 
10357
- var _path$l, _path2$1, _path3;
10436
+ var _path$m, _path2$2, _path3;
10358
10437
 
10359
- 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); }
10438
+ 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); }
10360
10439
 
10361
10440
  function SvgPelcroAuthorship(props) {
10362
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
10441
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
10363
10442
  xmlns: "http://www.w3.org/2000/svg",
10364
10443
  viewBox: "0 -80.652 497.072 179.991"
10365
- }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
10444
+ }, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
10366
10445
  fill: "none",
10367
10446
  stroke: "#4a4a4a",
10368
10447
  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"
10369
- })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
10448
+ })), _path2$2 || (_path2$2 = /*#__PURE__*/React__namespace.createElement("path", {
10370
10449
  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",
10371
10450
  fill: "#4a4a4a"
10372
10451
  })), _path3 || (_path3 = /*#__PURE__*/React__namespace.createElement("path", {
@@ -10509,11 +10588,11 @@ function LoginModal({
10509
10588
  LoginModal.viewId = "login";
10510
10589
 
10511
10590
  const RegisterEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
10512
- store: store$e
10591
+ store: store$f
10513
10592
  }, props));
10514
10593
 
10515
10594
  const RegisterPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
10516
- store: store$e
10595
+ store: store$f
10517
10596
  }, props));
10518
10597
 
10519
10598
  const RegisterButton = ({
@@ -10533,7 +10612,7 @@ const RegisterButton = ({
10533
10612
  buttonDisabled
10534
10613
  },
10535
10614
  dispatch
10536
- } = React.useContext(store$e);
10615
+ } = React.useContext(store$f);
10537
10616
  const {
10538
10617
  t
10539
10618
  } = useTranslation("register");
@@ -10671,7 +10750,7 @@ function FirstName({
10671
10750
  }
10672
10751
 
10673
10752
  const RegisterFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
10674
- store: store$e
10753
+ store: store$f
10675
10754
  }, props));
10676
10755
 
10677
10756
  function LastName({
@@ -10702,7 +10781,7 @@ function LastName({
10702
10781
  }
10703
10782
 
10704
10783
  const RegisterLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
10705
- store: store$e
10784
+ store: store$f
10706
10785
  }, props));
10707
10786
 
10708
10787
  /**
@@ -10826,7 +10905,7 @@ function TextInput({
10826
10905
 
10827
10906
  const RegisterTextInput = props => {
10828
10907
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
10829
- store: store$e
10908
+ store: store$f
10830
10909
  }));
10831
10910
  };
10832
10911
 
@@ -12836,7 +12915,7 @@ class PaypalGateWay {
12836
12915
 
12837
12916
  /** @type {PaymentStateType} */
12838
12917
 
12839
- const initialState$d = {
12918
+ const initialState$e = {
12840
12919
  disableSubmit: false,
12841
12920
  isLoading: false,
12842
12921
  disableCouponButton: false,
@@ -12855,10 +12934,10 @@ const initialState$d = {
12855
12934
  content: ""
12856
12935
  }
12857
12936
  };
12858
- const store$d = /*#__PURE__*/React.createContext(initialState$d);
12937
+ const store$e = /*#__PURE__*/React.createContext(initialState$e);
12859
12938
  const {
12860
- Provider: Provider$d
12861
- } = store$d;
12939
+ Provider: Provider$e
12940
+ } = store$e;
12862
12941
 
12863
12942
  const PaymentMethodContainerWithoutStripe = ({
12864
12943
  style,
@@ -13849,21 +13928,21 @@ const PaymentMethodContainerWithoutStripe = ({
13849
13928
  default:
13850
13929
  return state;
13851
13930
  }
13852
- }, initialState$d);
13931
+ }, initialState$e);
13853
13932
  return /*#__PURE__*/React__default['default'].createElement("div", {
13854
13933
  style: { ...style
13855
13934
  },
13856
13935
  className: `pelcro-container pelcro-payment-container ${className}`
13857
- }, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
13936
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
13858
13937
  value: {
13859
13938
  state,
13860
13939
  dispatch
13861
13940
  }
13862
13941
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
13863
- store: store$d,
13942
+ store: store$e,
13864
13943
  key: i
13865
13944
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
13866
- store: store$d
13945
+ store: store$e
13867
13946
  })));
13868
13947
  };
13869
13948
 
@@ -13885,7 +13964,7 @@ const PaymentMethodContainer = props => {
13885
13964
  stripeAccount: window.Pelcro.site.read().account_id,
13886
13965
  locale: getPageOrDefaultLanguage()
13887
13966
  }, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
13888
- store: store$d
13967
+ store: store$e
13889
13968
  }, props))));
13890
13969
  }
13891
13970
 
@@ -13938,7 +14017,7 @@ const PelcroPaymentRequestButton = props => {
13938
14017
  currentPlan,
13939
14018
  updatedPrice
13940
14019
  }
13941
- } = React.useContext(store$d);
14020
+ } = React.useContext(store$e);
13942
14021
 
13943
14022
  const updatePaymentRequest = () => {
13944
14023
  // Make sure payment request is up to date, eg. user added a coupon code.
@@ -13998,7 +14077,7 @@ const DiscountedPrice = props => {
13998
14077
  taxAmount,
13999
14078
  percentOff
14000
14079
  }
14001
- } = React.useContext(store$d);
14080
+ } = React.useContext(store$e);
14002
14081
  const {
14003
14082
  order,
14004
14083
  plan
@@ -14048,7 +14127,7 @@ const SubmitPaymentMethod = ({
14048
14127
  isLoading,
14049
14128
  updatedPrice
14050
14129
  }
14051
- } = React.useContext(store$d);
14130
+ } = React.useContext(store$e);
14052
14131
  const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
14053
14132
  const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
14054
14133
  const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
@@ -14069,17 +14148,17 @@ const SubmitPaymentMethod = ({
14069
14148
  }, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
14070
14149
  };
14071
14150
 
14072
- var _path$k;
14151
+ var _path$l;
14073
14152
 
14074
- 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); }
14153
+ 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); }
14075
14154
 
14076
14155
  function SvgArrowLeft(props) {
14077
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
14156
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
14078
14157
  xmlns: "http://www.w3.org/2000/svg",
14079
14158
  fill: "none",
14080
14159
  viewBox: "0 0 24 24",
14081
14160
  stroke: "currentColor"
14082
- }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
14161
+ }, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
14083
14162
  strokeLinecap: "round",
14084
14163
  strokeLinejoin: "round",
14085
14164
  strokeWidth: 2,
@@ -14098,7 +14177,7 @@ const ApplyCouponButton = ({
14098
14177
  disableCouponButton
14099
14178
  },
14100
14179
  dispatch
14101
- } = React.useContext(store$d);
14180
+ } = React.useContext(store$e);
14102
14181
  const {
14103
14182
  t
14104
14183
  } = useTranslation("checkoutForm");
@@ -14132,7 +14211,7 @@ const CouponCodeField = props => {
14132
14211
  couponCode,
14133
14212
  couponError
14134
14213
  }
14135
- } = React.useContext(store$d);
14214
+ } = React.useContext(store$e);
14136
14215
 
14137
14216
  const onCouponCodeChange = e => {
14138
14217
  dispatch({
@@ -14161,17 +14240,17 @@ const CouponCodeField = props => {
14161
14240
  }, props));
14162
14241
  };
14163
14242
 
14164
- var _path$j;
14243
+ var _path$k;
14165
14244
 
14166
- 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); }
14245
+ 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); }
14167
14246
 
14168
14247
  function SvgTicket(props) {
14169
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
14248
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
14170
14249
  xmlns: "http://www.w3.org/2000/svg",
14171
14250
  fill: "none",
14172
14251
  viewBox: "0 0 24 24",
14173
14252
  stroke: "currentColor"
14174
- }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
14253
+ }, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
14175
14254
  strokeLinecap: "round",
14176
14255
  strokeLinejoin: "round",
14177
14256
  strokeWidth: 2,
@@ -14188,7 +14267,7 @@ const CouponCode = ({
14188
14267
  state: {
14189
14268
  enableCouponField
14190
14269
  }
14191
- } = React.useContext(store$d);
14270
+ } = React.useContext(store$e);
14192
14271
  const {
14193
14272
  t
14194
14273
  } = useTranslation("checkoutForm");
@@ -14445,7 +14524,7 @@ const PaypalSubscribeButton = props => {
14445
14524
  const {
14446
14525
  dispatch,
14447
14526
  state
14448
- } = React.useContext(store$d);
14527
+ } = React.useContext(store$e);
14449
14528
  const {
14450
14529
  product,
14451
14530
  plan,
@@ -14530,16 +14609,16 @@ const BankRedirection = () => {
14530
14609
  }));
14531
14610
  };
14532
14611
 
14533
- var _path$i;
14612
+ var _path$j;
14534
14613
 
14535
- 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); }
14614
+ 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); }
14536
14615
 
14537
14616
  function SvgLock(props) {
14538
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
14617
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
14539
14618
  xmlns: "http://www.w3.org/2000/svg",
14540
14619
  viewBox: "0 0 20 20",
14541
14620
  fill: "currentColor"
14542
- }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
14621
+ }, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
14543
14622
  fillRule: "evenodd",
14544
14623
  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",
14545
14624
  clipRule: "evenodd"
@@ -14556,7 +14635,7 @@ const SelectedPaymentMethod = () => {
14556
14635
  state: {
14557
14636
  isLoading
14558
14637
  }
14559
- } = React.useContext(store$d);
14638
+ } = React.useContext(store$e);
14560
14639
  const {
14561
14640
  switchView,
14562
14641
  selectedPaymentMethodId
@@ -14598,7 +14677,7 @@ const TaxAmount = () => {
14598
14677
  state: {
14599
14678
  taxAmount
14600
14679
  }
14601
- } = React.useContext(store$d);
14680
+ } = React.useContext(store$e);
14602
14681
  const {
14603
14682
  plan
14604
14683
  } = usePelcro();
@@ -14761,12 +14840,12 @@ function SubscriptionRenewModal({
14761
14840
  }
14762
14841
  SubscriptionRenewModal.viewId = "subscription-renew";
14763
14842
 
14764
- var _path$h;
14843
+ var _path$i;
14765
14844
 
14766
- 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); }
14845
+ 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); }
14767
14846
 
14768
14847
  function SvgGift(props) {
14769
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
14848
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
14770
14849
  className: "plc-w-6 plc-h-6 plc-mr-2",
14771
14850
  fill: "none",
14772
14851
  stroke: "currentColor",
@@ -14775,7 +14854,7 @@ function SvgGift(props) {
14775
14854
  strokeWidth: 2,
14776
14855
  viewBox: "0 0 24 24",
14777
14856
  xmlns: "http://www.w3.org/2000/svg"
14778
- }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
14857
+ }, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
14779
14858
  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"
14780
14859
  })));
14781
14860
  }
@@ -15106,7 +15185,7 @@ class DefaultNewsLetter extends React.Component {
15106
15185
 
15107
15186
  const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
15108
15187
 
15109
- const initialState$c = {
15188
+ const initialState$d = {
15110
15189
  didSubToNewslettersBefore: false,
15111
15190
  newsletters: [],
15112
15191
  isListLoading: true,
@@ -15116,10 +15195,10 @@ const initialState$c = {
15116
15195
  content: ""
15117
15196
  }
15118
15197
  };
15119
- const store$c = /*#__PURE__*/React.createContext(initialState$c);
15198
+ const store$d = /*#__PURE__*/React.createContext(initialState$d);
15120
15199
  const {
15121
- Provider: Provider$c
15122
- } = store$c;
15200
+ Provider: Provider$d
15201
+ } = store$d;
15123
15202
 
15124
15203
  const NewsletterUpdateContainer = ({
15125
15204
  style,
@@ -15232,7 +15311,7 @@ const NewsletterUpdateContainer = ({
15232
15311
  default:
15233
15312
  return state;
15234
15313
  }
15235
- }, initialState$c);
15314
+ }, initialState$d);
15236
15315
  React.useEffect(() => {
15237
15316
  const getUserNewsletters = () => {
15238
15317
  var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
@@ -15276,7 +15355,7 @@ const NewsletterUpdateContainer = ({
15276
15355
  style: { ...style
15277
15356
  },
15278
15357
  className: `pelcro-container pelcro-newsletter-update-container ${className}`
15279
- }, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
15358
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
15280
15359
  value: {
15281
15360
  state,
15282
15361
  dispatch
@@ -15284,12 +15363,12 @@ const NewsletterUpdateContainer = ({
15284
15363
  }, children.length ? children.map((child, i) => {
15285
15364
  if (child) {
15286
15365
  return /*#__PURE__*/React__default['default'].cloneElement(child, {
15287
- store: store$c,
15366
+ store: store$d,
15288
15367
  key: i
15289
15368
  });
15290
15369
  }
15291
15370
  }) : /*#__PURE__*/React__default['default'].cloneElement(children, {
15292
- store: store$c
15371
+ store: store$d
15293
15372
  })));
15294
15373
  };
15295
15374
 
@@ -15304,7 +15383,7 @@ const NewsletterUpdateButton = ({
15304
15383
  isSubmitting,
15305
15384
  isListLoading
15306
15385
  }
15307
- } = React.useContext(store$c);
15386
+ } = React.useContext(store$d);
15308
15387
  const {
15309
15388
  t
15310
15389
  } = useTranslation("newsletter");
@@ -15334,7 +15413,7 @@ const NewsletterUpdateList = () => {
15334
15413
  newsletters,
15335
15414
  isListLoading
15336
15415
  }
15337
- } = React.useContext(store$c);
15416
+ } = React.useContext(store$d);
15338
15417
 
15339
15418
  if (isListLoading) {
15340
15419
  return /*#__PURE__*/React__default['default'].createElement(Loader, {
@@ -15538,7 +15617,7 @@ function SubscriptionCreateModal({
15538
15617
  SubscriptionCreateModal.viewId = "subscription-create";
15539
15618
 
15540
15619
  var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
15541
- const initialState$b = {
15620
+ const initialState$c = {
15542
15621
  email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
15543
15622
  firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
15544
15623
  lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
@@ -15551,10 +15630,10 @@ const initialState$b = {
15551
15630
  content: ""
15552
15631
  }
15553
15632
  };
15554
- const store$b = /*#__PURE__*/React.createContext(initialState$b);
15633
+ const store$c = /*#__PURE__*/React.createContext(initialState$c);
15555
15634
  const {
15556
- Provider: Provider$b
15557
- } = store$b;
15635
+ Provider: Provider$c
15636
+ } = store$c;
15558
15637
 
15559
15638
  const UserUpdateContainer = ({
15560
15639
  style,
@@ -15686,27 +15765,27 @@ const UserUpdateContainer = ({
15686
15765
  default:
15687
15766
  return state;
15688
15767
  }
15689
- }, initialState$b);
15768
+ }, initialState$c);
15690
15769
  return /*#__PURE__*/React__default['default'].createElement("div", {
15691
15770
  style: { ...style
15692
15771
  },
15693
15772
  className: `pelcro-container pelcro-user-update-container ${className}`
15694
- }, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
15773
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
15695
15774
  value: {
15696
15775
  state,
15697
15776
  dispatch
15698
15777
  }
15699
15778
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
15700
- store: store$b,
15779
+ store: store$c,
15701
15780
  key: i
15702
15781
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
15703
- store: store$b
15782
+ store: store$c
15704
15783
  })));
15705
15784
  };
15706
15785
 
15707
15786
  const UserUpdateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
15708
15787
  disabled: true,
15709
- store: store$b
15788
+ store: store$c
15710
15789
  }, props));
15711
15790
 
15712
15791
  const UserUpdateButton = ({
@@ -15719,7 +15798,7 @@ const UserUpdateButton = ({
15719
15798
  buttonDisabled
15720
15799
  },
15721
15800
  dispatch
15722
- } = React.useContext(store$b);
15801
+ } = React.useContext(store$c);
15723
15802
  const {
15724
15803
  t
15725
15804
  } = useTranslation("userEdit");
@@ -15736,11 +15815,11 @@ const UserUpdateButton = ({
15736
15815
  };
15737
15816
 
15738
15817
  const UserUpdateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
15739
- store: store$b
15818
+ store: store$c
15740
15819
  }, props));
15741
15820
 
15742
15821
  const UserUpdateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
15743
- store: store$b
15822
+ store: store$c
15744
15823
  }, props));
15745
15824
 
15746
15825
  function Phone({
@@ -15769,22 +15848,22 @@ function Phone({
15769
15848
  }
15770
15849
 
15771
15850
  const UserUpdatePhone = props => /*#__PURE__*/React__default['default'].createElement(Phone, Object.assign({
15772
- store: store$b
15851
+ store: store$c
15773
15852
  }, props));
15774
15853
 
15775
15854
  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";
15776
15855
 
15777
- var _path$g;
15856
+ var _path$h;
15778
15857
 
15779
- 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); }
15858
+ 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); }
15780
15859
 
15781
15860
  function SvgEdit(props) {
15782
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
15861
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
15783
15862
  className: "plc-w-6 plc-h-6",
15784
15863
  xmlns: "http://www.w3.org/2000/svg",
15785
15864
  viewBox: "0 0 20 20",
15786
15865
  fill: "currentColor"
15787
- }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
15866
+ }, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
15788
15867
  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"
15789
15868
  })));
15790
15869
  }
@@ -15916,16 +15995,16 @@ function DisplayName({
15916
15995
  }
15917
15996
 
15918
15997
  const UserUpdateDisplayName = props => /*#__PURE__*/React__default['default'].createElement(DisplayName, Object.assign({
15919
- store: store$b
15998
+ store: store$c
15920
15999
  }, props));
15921
16000
 
15922
16001
  const UserUpdateTextInput = props => {
15923
16002
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
15924
- store: store$b
16003
+ store: store$c
15925
16004
  }));
15926
16005
  };
15927
16006
 
15928
- const initialState$a = {
16007
+ const initialState$b = {
15929
16008
  isSubmitting: false,
15930
16009
  firstName: "",
15931
16010
  firstNameError: "",
@@ -15950,10 +16029,10 @@ const initialState$a = {
15950
16029
  content: ""
15951
16030
  }
15952
16031
  };
15953
- const store$a = /*#__PURE__*/React.createContext(initialState$a);
16032
+ const store$b = /*#__PURE__*/React.createContext(initialState$b);
15954
16033
  const {
15955
- Provider: Provider$a
15956
- } = store$a;
16034
+ Provider: Provider$b
16035
+ } = store$b;
15957
16036
 
15958
16037
  const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
15959
16038
 
@@ -16160,7 +16239,7 @@ const AddressCreateContainer = ({
16160
16239
  default:
16161
16240
  return state;
16162
16241
  }
16163
- }, initialState$a);
16242
+ }, initialState$b);
16164
16243
  React.useEffect(() => {
16165
16244
  const getStates = () => {
16166
16245
  dispatch({
@@ -16192,16 +16271,16 @@ const AddressCreateContainer = ({
16192
16271
  style: { ...style
16193
16272
  },
16194
16273
  className: `pelcro-container pelcro-address-create-container ${className}`
16195
- }, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
16274
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
16196
16275
  value: {
16197
16276
  state,
16198
16277
  dispatch
16199
16278
  }
16200
16279
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
16201
- store: store$a,
16280
+ store: store$b,
16202
16281
  key: i
16203
16282
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
16204
- store: store$a
16283
+ store: store$b
16205
16284
  })));
16206
16285
  };
16207
16286
 
@@ -16212,7 +16291,7 @@ function AddressCreateFirstName(props) {
16212
16291
  firstName,
16213
16292
  firstNameError
16214
16293
  }
16215
- } = React.useContext(store$a);
16294
+ } = React.useContext(store$b);
16216
16295
 
16217
16296
  const handleBlur = () => {
16218
16297
  return dispatch({
@@ -16255,7 +16334,7 @@ function AddressCreateLastName(props) {
16255
16334
  lastName,
16256
16335
  lastNameError
16257
16336
  }
16258
- } = React.useContext(store$a);
16337
+ } = React.useContext(store$b);
16259
16338
 
16260
16339
  const handleBlur = () => {
16261
16340
  return dispatch({
@@ -16298,7 +16377,7 @@ function AddressCreateLine1(props) {
16298
16377
  line1,
16299
16378
  line1Error
16300
16379
  }
16301
- } = React.useContext(store$a);
16380
+ } = React.useContext(store$b);
16302
16381
 
16303
16382
  const handleBlur = () => {
16304
16383
  return dispatch({
@@ -16341,7 +16420,7 @@ function AddressCreateCity(props) {
16341
16420
  city,
16342
16421
  cityError
16343
16422
  }
16344
- } = React.useContext(store$a);
16423
+ } = React.useContext(store$b);
16345
16424
 
16346
16425
  const handleBlur = () => {
16347
16426
  return dispatch({
@@ -16384,7 +16463,7 @@ function AddressCreatePostalCode(props) {
16384
16463
  postalCode,
16385
16464
  postalCodeError
16386
16465
  }
16387
- } = React.useContext(store$a);
16466
+ } = React.useContext(store$b);
16388
16467
 
16389
16468
  const handleBlur = () => {
16390
16469
  return dispatch({
@@ -16430,7 +16509,7 @@ const AddressCreateSubmit = ({
16430
16509
  state: {
16431
16510
  isSubmitting
16432
16511
  }
16433
- } = React.useContext(store$a);
16512
+ } = React.useContext(store$b);
16434
16513
  const {
16435
16514
  t
16436
16515
  } = useTranslation("address");
@@ -16541,7 +16620,7 @@ function CountrySelect({
16541
16620
  }
16542
16621
 
16543
16622
  const AddressCreateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
16544
- store: store$a
16623
+ store: store$b
16545
16624
  }, props));
16546
16625
 
16547
16626
  function StateSelect({
@@ -16629,7 +16708,7 @@ function StateSelect({
16629
16708
  }
16630
16709
 
16631
16710
  const AddressCreateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
16632
- store: store$a
16711
+ store: store$b
16633
16712
  }, props));
16634
16713
 
16635
16714
  const AddressCreateView = props => {
@@ -16734,18 +16813,18 @@ AddressCreateModal.viewId = "address-create";
16734
16813
 
16735
16814
  const AddressCreateTextInput = props => {
16736
16815
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
16737
- store: store$a
16816
+ store: store$b
16738
16817
  }));
16739
16818
  };
16740
16819
 
16741
16820
  const AddressCreateLine2 = props => {
16742
16821
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
16743
16822
  fieldName: "line2",
16744
- store: store$a
16823
+ store: store$b
16745
16824
  }, props));
16746
16825
  };
16747
16826
 
16748
- const initialState$9 = {
16827
+ const initialState$a = {
16749
16828
  isSubmitting: false,
16750
16829
  firstName: "",
16751
16830
  firstNameError: "",
@@ -16770,10 +16849,10 @@ const initialState$9 = {
16770
16849
  content: ""
16771
16850
  }
16772
16851
  };
16773
- const store$9 = /*#__PURE__*/React.createContext(initialState$9);
16852
+ const store$a = /*#__PURE__*/React.createContext(initialState$a);
16774
16853
  const {
16775
- Provider: Provider$9
16776
- } = store$9;
16854
+ Provider: Provider$a
16855
+ } = store$a;
16777
16856
 
16778
16857
  const AddressUpdateContainer = ({
16779
16858
  style,
@@ -16825,7 +16904,7 @@ const AddressUpdateContainer = ({
16825
16904
  const thisAddress = addresses[address];
16826
16905
 
16827
16906
  if (+thisAddress.id === +addressId) {
16828
- const newState = { ...initialState$9,
16907
+ const newState = { ...initialState$a,
16829
16908
  firstName: thisAddress.first_name,
16830
16909
  lastName: thisAddress.last_name,
16831
16910
  line1: thisAddress.line1,
@@ -16958,7 +17037,7 @@ const AddressUpdateContainer = ({
16958
17037
  default:
16959
17038
  return state;
16960
17039
  }
16961
- }, initialState$9);
17040
+ }, initialState$a);
16962
17041
  React.useEffect(() => {
16963
17042
  const getStates = () => {
16964
17043
  dispatch({
@@ -16990,21 +17069,21 @@ const AddressUpdateContainer = ({
16990
17069
  style: { ...style
16991
17070
  },
16992
17071
  className: `pelcro-container pelcro-address-update-container ${className}`
16993
- }, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
17072
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
16994
17073
  value: {
16995
17074
  state,
16996
17075
  dispatch
16997
17076
  }
16998
17077
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
16999
- store: store$9,
17078
+ store: store$a,
17000
17079
  key: i
17001
17080
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17002
- store: store$9
17081
+ store: store$a
17003
17082
  })));
17004
17083
  };
17005
17084
 
17006
17085
  const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
17007
- store: store$9
17086
+ store: store$a
17008
17087
  }, props));
17009
17088
 
17010
17089
  function AddressUpdateFirstName(props) {
@@ -17014,7 +17093,7 @@ function AddressUpdateFirstName(props) {
17014
17093
  firstName,
17015
17094
  firstNameError
17016
17095
  }
17017
- } = React.useContext(store$9);
17096
+ } = React.useContext(store$a);
17018
17097
 
17019
17098
  const handleBlur = () => {
17020
17099
  return dispatch({
@@ -17057,7 +17136,7 @@ function AddressUpdateLastName(props) {
17057
17136
  lastName,
17058
17137
  lastNameError
17059
17138
  }
17060
- } = React.useContext(store$9);
17139
+ } = React.useContext(store$a);
17061
17140
 
17062
17141
  const handleBlur = () => {
17063
17142
  return dispatch({
@@ -17100,7 +17179,7 @@ function AddressUpdateLine1(props) {
17100
17179
  line1,
17101
17180
  line1Error
17102
17181
  }
17103
- } = React.useContext(store$9);
17182
+ } = React.useContext(store$a);
17104
17183
 
17105
17184
  const handleBlur = () => {
17106
17185
  return dispatch({
@@ -17140,7 +17219,7 @@ const AddressUpdateLine2 = props => {
17140
17219
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
17141
17220
  fieldName: "line2"
17142
17221
  }, props, {
17143
- store: store$9
17222
+ store: store$a
17144
17223
  }));
17145
17224
  };
17146
17225
 
@@ -17151,7 +17230,7 @@ function AddressUpdateCity(props) {
17151
17230
  city,
17152
17231
  cityError
17153
17232
  }
17154
- } = React.useContext(store$9);
17233
+ } = React.useContext(store$a);
17155
17234
 
17156
17235
  const handleBlur = () => {
17157
17236
  return dispatch({
@@ -17194,7 +17273,7 @@ function AddressUpdatePostalCode(props) {
17194
17273
  postalCode,
17195
17274
  postalCodeError
17196
17275
  }
17197
- } = React.useContext(store$9);
17276
+ } = React.useContext(store$a);
17198
17277
 
17199
17278
  const handleBlur = () => {
17200
17279
  return dispatch({
@@ -17240,7 +17319,7 @@ const AddressUpdateSubmit = ({
17240
17319
  state: {
17241
17320
  isSubmitting
17242
17321
  }
17243
- } = React.useContext(store$9);
17322
+ } = React.useContext(store$a);
17244
17323
  const {
17245
17324
  t
17246
17325
  } = useTranslation("address");
@@ -17256,7 +17335,7 @@ const AddressUpdateSubmit = ({
17256
17335
  };
17257
17336
 
17258
17337
  const AddressUpdateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
17259
- store: store$9
17338
+ store: store$a
17260
17339
  }, props));
17261
17340
 
17262
17341
  const AddressUpdateView = props => {
@@ -17339,7 +17418,7 @@ AddressUpdateModal.viewId = "address-edit";
17339
17418
 
17340
17419
  const AddressUpdateTextInput = props => {
17341
17420
  return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
17342
- store: store$9
17421
+ store: store$a
17343
17422
  }));
17344
17423
  };
17345
17424
 
@@ -17422,7 +17501,7 @@ const PaymentMethodUpdateModal = props => {
17422
17501
  };
17423
17502
  PaymentMethodUpdateModal.viewId = "payment-method-update";
17424
17503
 
17425
- const initialState$8 = {
17504
+ const initialState$9 = {
17426
17505
  email: "",
17427
17506
  password: "",
17428
17507
  passwordError: null,
@@ -17435,10 +17514,10 @@ const initialState$8 = {
17435
17514
  content: ""
17436
17515
  }
17437
17516
  };
17438
- const store$8 = /*#__PURE__*/React.createContext(initialState$8);
17517
+ const store$9 = /*#__PURE__*/React.createContext(initialState$9);
17439
17518
  const {
17440
- Provider: Provider$8
17441
- } = store$8;
17519
+ Provider: Provider$9
17520
+ } = store$9;
17442
17521
 
17443
17522
  const PasswordResetContainer = ({
17444
17523
  style,
@@ -17495,7 +17574,7 @@ const PasswordResetContainer = ({
17495
17574
  type: SET_EMAIL,
17496
17575
  payload: window.Pelcro.helpers.getURLParameter("email")
17497
17576
  });
17498
- initialState$8.email = window.Pelcro.helpers.getURLParameter("email");
17577
+ initialState$9.email = window.Pelcro.helpers.getURLParameter("email");
17499
17578
  dispatch({
17500
17579
  type: SET_TOKEN,
17501
17580
  payload: window.Pelcro.helpers.getURLParameter("token")
@@ -17555,26 +17634,26 @@ const PasswordResetContainer = ({
17555
17634
  default:
17556
17635
  return state;
17557
17636
  }
17558
- }, initialState$8);
17637
+ }, initialState$9);
17559
17638
  return /*#__PURE__*/React__default['default'].createElement("div", {
17560
17639
  style: { ...style
17561
17640
  },
17562
17641
  className: `pelcro-container pelcro-password-reset-container ${className}`
17563
- }, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
17642
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
17564
17643
  value: {
17565
17644
  state,
17566
17645
  dispatch
17567
17646
  }
17568
17647
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
17569
- store: store$8,
17648
+ store: store$9,
17570
17649
  key: i
17571
17650
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17572
- store: store$8
17651
+ store: store$9
17573
17652
  })));
17574
17653
  };
17575
17654
 
17576
17655
  const PasswordResetPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
17577
- store: store$8
17656
+ store: store$9
17578
17657
  }, props));
17579
17658
 
17580
17659
  const PasswordResetButton = ({
@@ -17587,7 +17666,7 @@ const PasswordResetButton = ({
17587
17666
  buttonDisabled
17588
17667
  },
17589
17668
  dispatch
17590
- } = React.useContext(store$8);
17669
+ } = React.useContext(store$9);
17591
17670
  const {
17592
17671
  t
17593
17672
  } = useTranslation("passwordReset");
@@ -17604,14 +17683,14 @@ const PasswordResetButton = ({
17604
17683
  };
17605
17684
 
17606
17685
  const PasswordResetEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
17607
- store: store$8
17686
+ store: store$9
17608
17687
  }, props, {
17609
17688
  value: window.Pelcro.helpers.getURLParameter("email"),
17610
17689
  disabled: true
17611
17690
  }));
17612
17691
 
17613
17692
  const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default['default'].createElement(ConfirmPassword, Object.assign({
17614
- store: store$8
17693
+ store: store$9
17615
17694
  }, props));
17616
17695
 
17617
17696
  const PasswordResetView = props => {
@@ -17663,7 +17742,7 @@ const PasswordResetModal = ({
17663
17742
  };
17664
17743
  PasswordResetModal.viewId = "password-reset";
17665
17744
 
17666
- const initialState$7 = {
17745
+ const initialState$8 = {
17667
17746
  email: "",
17668
17747
  emailError: null,
17669
17748
  buttonDisabled: false,
@@ -17672,10 +17751,10 @@ const initialState$7 = {
17672
17751
  content: ""
17673
17752
  }
17674
17753
  };
17675
- const store$7 = /*#__PURE__*/React.createContext(initialState$7);
17754
+ const store$8 = /*#__PURE__*/React.createContext(initialState$8);
17676
17755
  const {
17677
- Provider: Provider$7
17678
- } = store$7;
17756
+ Provider: Provider$8
17757
+ } = store$8;
17679
17758
 
17680
17759
  const PasswordForgotContainer = ({
17681
17760
  style,
@@ -17753,21 +17832,21 @@ const PasswordForgotContainer = ({
17753
17832
  default:
17754
17833
  return state;
17755
17834
  }
17756
- }, initialState$7);
17835
+ }, initialState$8);
17757
17836
  return /*#__PURE__*/React__default['default'].createElement("div", {
17758
17837
  style: { ...style
17759
17838
  },
17760
17839
  className: `pelcro-container pelcro-password-forgot-container ${className}`
17761
- }, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
17840
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
17762
17841
  value: {
17763
17842
  state,
17764
17843
  dispatch
17765
17844
  }
17766
17845
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
17767
- store: store$7,
17846
+ store: store$8,
17768
17847
  key: i
17769
17848
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
17770
- store: store$7
17849
+ store: store$8
17771
17850
  })));
17772
17851
  };
17773
17852
 
@@ -17783,7 +17862,7 @@ const PasswordForgotButton = ({
17783
17862
  emailError
17784
17863
  },
17785
17864
  dispatch
17786
- } = React.useContext(store$7);
17865
+ } = React.useContext(store$8);
17787
17866
  const {
17788
17867
  t
17789
17868
  } = useTranslation("passwordForgot");
@@ -17804,7 +17883,7 @@ const PasswordForgotButton = ({
17804
17883
  };
17805
17884
 
17806
17885
  const PasswordForgotEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
17807
- store: store$7
17886
+ store: store$8
17808
17887
  }, props));
17809
17888
 
17810
17889
  const PasswordForgotView = props => {
@@ -17854,7 +17933,7 @@ const PasswordForgotModal = ({
17854
17933
  };
17855
17934
  PasswordForgotModal.viewId = "password-forgot";
17856
17935
 
17857
- const initialState$6 = {
17936
+ const initialState$7 = {
17858
17937
  currentPassword: "",
17859
17938
  newPassword: "",
17860
17939
  confirmNewPassword: "",
@@ -17868,10 +17947,10 @@ const initialState$6 = {
17868
17947
  content: ""
17869
17948
  }
17870
17949
  };
17871
- const store$6 = /*#__PURE__*/React.createContext(initialState$6);
17950
+ const store$7 = /*#__PURE__*/React.createContext(initialState$7);
17872
17951
  const {
17873
- Provider: Provider$6
17874
- } = store$6;
17952
+ Provider: Provider$7
17953
+ } = store$7;
17875
17954
  const PasswordChangeContainer = ({
17876
17955
  style,
17877
17956
  className = "",
@@ -18023,21 +18102,21 @@ const PasswordChangeContainer = ({
18023
18102
  default:
18024
18103
  return state;
18025
18104
  }
18026
- }, initialState$6);
18105
+ }, initialState$7);
18027
18106
  return /*#__PURE__*/React__default['default'].createElement("div", {
18028
18107
  style: { ...style
18029
18108
  },
18030
18109
  className: `pelcro-container pelcro-password-change-container ${className}`
18031
- }, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
18110
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
18032
18111
  value: {
18033
18112
  state,
18034
18113
  dispatch
18035
18114
  }
18036
18115
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18037
- store: store$6,
18116
+ store: store$7,
18038
18117
  key: i
18039
18118
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18040
- store: store$6
18119
+ store: store$7
18041
18120
  })));
18042
18121
  };
18043
18122
 
@@ -18048,7 +18127,7 @@ function PasswordChangeCurrentPassword(props) {
18048
18127
  currentPassword,
18049
18128
  currentPasswordError
18050
18129
  }
18051
- } = React.useContext(store$6);
18130
+ } = React.useContext(store$7);
18052
18131
  const handleBlur = React.useCallback(() => {
18053
18132
  return dispatch({
18054
18133
  type: VALIDATE_PASSWORD
@@ -18082,7 +18161,7 @@ function PasswordChangeNewPassword(props) {
18082
18161
  newPassword,
18083
18162
  newPasswordError
18084
18163
  }
18085
- } = React.useContext(store$6);
18164
+ } = React.useContext(store$7);
18086
18165
  const handleBlur = React.useCallback(() => {
18087
18166
  return dispatch({
18088
18167
  type: VALIDATE_NEW_PASSWORD
@@ -18116,7 +18195,7 @@ function PasswordChangeConfirmNewPassword(props) {
18116
18195
  confirmNewPassword,
18117
18196
  confirmNewPasswordError
18118
18197
  }
18119
- } = React.useContext(store$6);
18198
+ } = React.useContext(store$7);
18120
18199
  const handleBlur = React.useCallback(() => {
18121
18200
  return dispatch({
18122
18201
  type: VALIDATE_CONFIRM_NEW_PASSWORD
@@ -18157,7 +18236,7 @@ const PasswordChangeButton = ({
18157
18236
  confirmNewPasswordError
18158
18237
  },
18159
18238
  dispatch
18160
- } = React.useContext(store$6);
18239
+ } = React.useContext(store$7);
18161
18240
  const {
18162
18241
  t
18163
18242
  } = useTranslation("passwordChange");
@@ -18223,17 +18302,17 @@ const PasswordChangeModal = ({
18223
18302
  };
18224
18303
  PasswordChangeModal.viewId = "password-change";
18225
18304
 
18226
- const initialState$5 = {
18305
+ const initialState$6 = {
18227
18306
  buttonDisabled: false,
18228
18307
  alert: {
18229
18308
  type: "error",
18230
18309
  content: ""
18231
18310
  }
18232
18311
  };
18233
- const store$5 = /*#__PURE__*/React.createContext(initialState$5);
18312
+ const store$6 = /*#__PURE__*/React.createContext(initialState$6);
18234
18313
  const {
18235
- Provider: Provider$5
18236
- } = store$5;
18314
+ Provider: Provider$6
18315
+ } = store$6;
18237
18316
 
18238
18317
  const CartContainer = ({
18239
18318
  style,
@@ -18324,21 +18403,21 @@ const CartContainer = ({
18324
18403
  default:
18325
18404
  return state;
18326
18405
  }
18327
- }, initialState$5);
18406
+ }, initialState$6);
18328
18407
  return /*#__PURE__*/React__default['default'].createElement("div", {
18329
18408
  style: { ...style
18330
18409
  },
18331
18410
  className: `pelcro-container pelcro-cart-container ${className}`
18332
- }, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
18411
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
18333
18412
  value: {
18334
18413
  state,
18335
18414
  dispatch
18336
18415
  }
18337
18416
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18338
- store: store$5,
18417
+ store: store$6,
18339
18418
  key: i
18340
18419
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18341
- store: store$5
18420
+ store: store$6
18342
18421
  })));
18343
18422
  };
18344
18423
 
@@ -18375,7 +18454,7 @@ const CartSubmit = ({
18375
18454
  buttonDisabled
18376
18455
  },
18377
18456
  dispatch
18378
- } = React.useContext(store$5);
18457
+ } = React.useContext(store$6);
18379
18458
  const {
18380
18459
  t
18381
18460
  } = useTranslation("cart");
@@ -18406,7 +18485,7 @@ const CartTotalPrice = () => {
18406
18485
  state: {
18407
18486
  alert
18408
18487
  }
18409
- } = React.useContext(store$5);
18488
+ } = React.useContext(store$6);
18410
18489
  const {
18411
18490
  cartItems
18412
18491
  } = usePelcro();
@@ -18719,7 +18798,7 @@ const OrderConfirmModal = props => {
18719
18798
  };
18720
18799
  OrderConfirmModal.viewId = "order-confirm";
18721
18800
 
18722
- const initialState$4 = {
18801
+ const initialState$5 = {
18723
18802
  email: "",
18724
18803
  firstName: "",
18725
18804
  lastName: "",
@@ -18731,10 +18810,10 @@ const initialState$4 = {
18731
18810
  content: ""
18732
18811
  }
18733
18812
  };
18734
- const store$4 = /*#__PURE__*/React.createContext(initialState$4);
18813
+ const store$5 = /*#__PURE__*/React.createContext(initialState$5);
18735
18814
  const {
18736
- Provider: Provider$4
18737
- } = store$4;
18815
+ Provider: Provider$5
18816
+ } = store$5;
18738
18817
 
18739
18818
  const GiftCreateContainer = ({
18740
18819
  style,
@@ -18838,21 +18917,21 @@ const GiftCreateContainer = ({
18838
18917
  default:
18839
18918
  return state;
18840
18919
  }
18841
- }, initialState$4);
18920
+ }, initialState$5);
18842
18921
  return /*#__PURE__*/React__default['default'].createElement("div", {
18843
18922
  style: { ...style
18844
18923
  },
18845
18924
  className: `pelcro-container pelcro-gift-create-container ${className}`
18846
- }, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
18925
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
18847
18926
  value: {
18848
18927
  state,
18849
18928
  dispatch
18850
18929
  }
18851
18930
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
18852
- store: store$4,
18931
+ store: store$5,
18853
18932
  key: i
18854
18933
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
18855
- store: store$4
18934
+ store: store$5
18856
18935
  })));
18857
18936
  };
18858
18937
 
@@ -18866,7 +18945,7 @@ const GiftCreateSubmitButton = ({
18866
18945
  state: {
18867
18946
  disableSubmit
18868
18947
  }
18869
- } = React.useContext(store$4);
18948
+ } = React.useContext(store$5);
18870
18949
  const {
18871
18950
  t
18872
18951
  } = useTranslation("register");
@@ -18883,29 +18962,29 @@ const GiftCreateSubmitButton = ({
18883
18962
 
18884
18963
  const GiftCreateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
18885
18964
  initWithUserEmail: false,
18886
- store: store$4
18965
+ store: store$5
18887
18966
  }, props));
18888
18967
 
18889
18968
  const GiftCreateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
18890
- store: store$4
18969
+ store: store$5
18891
18970
  }, props));
18892
18971
 
18893
18972
  const GiftCreateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
18894
- store: store$4
18973
+ store: store$5
18895
18974
  }, props));
18896
18975
 
18897
- var _path$f;
18976
+ var _path$g;
18898
18977
 
18899
- 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); }
18978
+ 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); }
18900
18979
 
18901
18980
  function SvgInfoCircle(props) {
18902
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
18981
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$i({
18903
18982
  xmlns: "http://www.w3.org/2000/svg",
18904
18983
  className: "plc-w-5 plc-h-5",
18905
18984
  fill: "none",
18906
18985
  viewBox: "0 0 24 24",
18907
18986
  stroke: "currentColor"
18908
- }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
18987
+ }, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
18909
18988
  strokeLinecap: "round",
18910
18989
  strokeLinejoin: "round",
18911
18990
  strokeWidth: 2,
@@ -18976,7 +19055,7 @@ const GiftCreateStartDate = props => {
18976
19055
  const {
18977
19056
  dispatch,
18978
19057
  state
18979
- } = React.useContext(store$4);
19058
+ } = React.useContext(store$5);
18980
19059
 
18981
19060
  const handleInputChange = value => {
18982
19061
  dispatch({
@@ -19047,7 +19126,7 @@ function GiftCreateMessage(props) {
19047
19126
  const {
19048
19127
  dispatch,
19049
19128
  state
19050
- } = React.useContext(store$4);
19129
+ } = React.useContext(store$5);
19051
19130
 
19052
19131
  const handleInputChange = value => {
19053
19132
  dispatch({
@@ -19167,7 +19246,7 @@ const GiftCreateModal = ({
19167
19246
  };
19168
19247
  GiftCreateModal.viewId = "gift-create";
19169
19248
 
19170
- const initialState$3 = {
19249
+ const initialState$4 = {
19171
19250
  giftCode: "",
19172
19251
  buttonDisabled: true,
19173
19252
  alert: {
@@ -19175,10 +19254,10 @@ const initialState$3 = {
19175
19254
  content: ""
19176
19255
  }
19177
19256
  };
19178
- const store$3 = /*#__PURE__*/React.createContext(initialState$3);
19257
+ const store$4 = /*#__PURE__*/React.createContext(initialState$4);
19179
19258
  const {
19180
- Provider: Provider$3
19181
- } = store$3;
19259
+ Provider: Provider$4
19260
+ } = store$4;
19182
19261
 
19183
19262
  const GiftRedeemContainer = ({
19184
19263
  style,
@@ -19243,21 +19322,21 @@ const GiftRedeemContainer = ({
19243
19322
  default:
19244
19323
  return state;
19245
19324
  }
19246
- }, initialState$3);
19325
+ }, initialState$4);
19247
19326
  return /*#__PURE__*/React__default['default'].createElement("div", {
19248
19327
  style: { ...style
19249
19328
  },
19250
19329
  className: `pelcro-container pelcro-gift-redeem-container ${className}`
19251
- }, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
19330
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
19252
19331
  value: {
19253
19332
  state,
19254
19333
  dispatch
19255
19334
  }
19256
19335
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19257
- store: store$3,
19336
+ store: store$4,
19258
19337
  key: i
19259
19338
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19260
- store: store$3
19339
+ store: store$4
19261
19340
  })));
19262
19341
  };
19263
19342
 
@@ -19294,7 +19373,7 @@ function GiftCode({
19294
19373
  }
19295
19374
 
19296
19375
  const GiftRedeemCode = props => /*#__PURE__*/React__default['default'].createElement(GiftCode, Object.assign({
19297
- store: store$3
19376
+ store: store$4
19298
19377
  }, props));
19299
19378
 
19300
19379
  const GiftRedeemSubmitButton = ({
@@ -19307,7 +19386,7 @@ const GiftRedeemSubmitButton = ({
19307
19386
  state: {
19308
19387
  disableSubmit
19309
19388
  }
19310
- } = React.useContext(store$3);
19389
+ } = React.useContext(store$4);
19311
19390
  const {
19312
19391
  t
19313
19392
  } = useTranslation("register");
@@ -19400,7 +19479,7 @@ const moveDefaultAddressToStart = addresses => {
19400
19479
  return [defaultAddress, ...addressesWithoutDefault];
19401
19480
  };
19402
19481
 
19403
- const initialState$2 = {
19482
+ const initialState$3 = {
19404
19483
  addresses: [],
19405
19484
  selectedAddressId: null,
19406
19485
  isSubmitting: false,
@@ -19409,10 +19488,10 @@ const initialState$2 = {
19409
19488
  content: ""
19410
19489
  }
19411
19490
  };
19412
- const store$2 = /*#__PURE__*/React.createContext(initialState$2);
19491
+ const store$3 = /*#__PURE__*/React.createContext(initialState$3);
19413
19492
  const {
19414
- Provider: Provider$2
19415
- } = store$2;
19493
+ Provider: Provider$3
19494
+ } = store$3;
19416
19495
 
19417
19496
  const AddressSelectContainer = ({
19418
19497
  style,
@@ -19507,7 +19586,7 @@ const AddressSelectContainer = ({
19507
19586
  default:
19508
19587
  return state;
19509
19588
  }
19510
- }, initialState$2);
19589
+ }, initialState$3);
19511
19590
  React.useEffect(() => {
19512
19591
  var _window$Pelcro$user$r;
19513
19592
 
@@ -19520,16 +19599,16 @@ const AddressSelectContainer = ({
19520
19599
  style: { ...style
19521
19600
  },
19522
19601
  className: `pelcro-container pelcro-address-select-container ${className}`
19523
- }, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
19602
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
19524
19603
  value: {
19525
19604
  state,
19526
19605
  dispatch
19527
19606
  }
19528
19607
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19529
- store: store$2,
19608
+ store: store$3,
19530
19609
  key: i
19531
19610
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19532
- store: store$2
19611
+ store: store$3
19533
19612
  })));
19534
19613
  };
19535
19614
 
@@ -19540,7 +19619,7 @@ const AddressSelectList = () => {
19540
19619
  addresses,
19541
19620
  selectedAddressId
19542
19621
  }
19543
- } = React.useContext(store$2);
19622
+ } = React.useContext(store$3);
19544
19623
 
19545
19624
  const handleAddressSelect = event => {
19546
19625
  dispatch({
@@ -19584,7 +19663,7 @@ const AddressSelectSubmit = ({
19584
19663
  selectedAddressId,
19585
19664
  isSubmitting
19586
19665
  }
19587
- } = React.useContext(store$2);
19666
+ } = React.useContext(store$3);
19588
19667
  const {
19589
19668
  t
19590
19669
  } = useTranslation("address");
@@ -19675,7 +19754,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
19675
19754
  return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
19676
19755
  };
19677
19756
 
19678
- const initialState$1 = {
19757
+ const initialState$2 = {
19679
19758
  paymentMethods: [],
19680
19759
  selectedPaymentMethodId: null,
19681
19760
  isSubmitting: false,
@@ -19684,10 +19763,10 @@ const initialState$1 = {
19684
19763
  content: ""
19685
19764
  }
19686
19765
  };
19687
- const store$1 = /*#__PURE__*/React.createContext(initialState$1);
19766
+ const store$2 = /*#__PURE__*/React.createContext(initialState$2);
19688
19767
  const {
19689
- Provider: Provider$1
19690
- } = store$1;
19768
+ Provider: Provider$2
19769
+ } = store$2;
19691
19770
 
19692
19771
  const PaymentMethodSelectContainer = ({
19693
19772
  style,
@@ -19732,7 +19811,7 @@ const PaymentMethodSelectContainer = ({
19732
19811
  default:
19733
19812
  return state;
19734
19813
  }
19735
- }, initialState$1);
19814
+ }, initialState$2);
19736
19815
  React.useEffect(() => {
19737
19816
  var _window$Pelcro$user$r4;
19738
19817
 
@@ -19745,16 +19824,16 @@ const PaymentMethodSelectContainer = ({
19745
19824
  style: { ...style
19746
19825
  },
19747
19826
  className: `pelcro-container pelcro-payment-select-container ${className}`
19748
- }, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
19827
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
19749
19828
  value: {
19750
19829
  state,
19751
19830
  dispatch
19752
19831
  }
19753
19832
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
19754
- store: store$1,
19833
+ store: store$2,
19755
19834
  key: i
19756
19835
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
19757
- store: store$1
19836
+ store: store$2
19758
19837
  })));
19759
19838
  };
19760
19839
 
@@ -19768,7 +19847,7 @@ const PaymentMethodSelectList = () => {
19768
19847
  paymentMethods,
19769
19848
  selectedPaymentMethodId
19770
19849
  }
19771
- } = React.useContext(store$1);
19850
+ } = React.useContext(store$2);
19772
19851
 
19773
19852
  const handlePaymentMethodSelect = event => {
19774
19853
  dispatch({
@@ -19818,7 +19897,7 @@ const PaymentMethodSelectSubmit = ({
19818
19897
  selectedPaymentMethodId,
19819
19898
  isSubmitting
19820
19899
  }
19821
- } = React.useContext(store$1);
19900
+ } = React.useContext(store$2);
19822
19901
  return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
19823
19902
  onClick: () => {
19824
19903
  dispatch({
@@ -19892,8 +19971,8 @@ const PaymentMethodSelectModal = ({
19892
19971
  };
19893
19972
  PaymentMethodSelectModal.viewId = "payment-method-select";
19894
19973
 
19895
- function _extends$g() {
19896
- _extends$g = Object.assign || function (target) {
19974
+ function _extends$h() {
19975
+ _extends$h = Object.assign || function (target) {
19897
19976
  for (var i = 1; i < arguments.length; i++) {
19898
19977
  var source = arguments[i];
19899
19978
 
@@ -19907,7 +19986,7 @@ function _extends$g() {
19907
19986
  return target;
19908
19987
  };
19909
19988
 
19910
- return _extends$g.apply(this, arguments);
19989
+ return _extends$h.apply(this, arguments);
19911
19990
  }
19912
19991
 
19913
19992
  function _objectWithoutPropertiesLoose(source, excluded) {
@@ -20091,7 +20170,7 @@ function render(props, propsBag, defaultTag, features, visible) {
20091
20170
  return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
20092
20171
  return null;
20093
20172
  }, _match[RenderStrategy.Hidden] = function () {
20094
- return _render(_extends$g({}, _rest, {
20173
+ return _render(_extends$h({}, _rest, {
20095
20174
  hidden: true,
20096
20175
  style: {
20097
20176
  display: 'none'
@@ -20619,7 +20698,7 @@ function TransitionChild(props) {
20619
20698
  var passthroughProps = rest;
20620
20699
  return React__default['default'].createElement(NestingContext.Provider, {
20621
20700
  value: nesting
20622
- }, render(_extends$g({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20701
+ }, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
20623
20702
  }
20624
20703
 
20625
20704
  function Transition(props) {
@@ -20663,7 +20742,7 @@ function Transition(props) {
20663
20742
  value: nestingBag
20664
20743
  }, React__default['default'].createElement(TransitionContext.Provider, {
20665
20744
  value: transitionBag
20666
- }, render(_extends$g({}, sharedProps, {
20745
+ }, render(_extends$h({}, sharedProps, {
20667
20746
  as: React.Fragment,
20668
20747
  children: React__default['default'].createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
20669
20748
  }), propsBag, React.Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
@@ -20790,12 +20869,12 @@ var ActionTypes;
20790
20869
  })(ActionTypes || (ActionTypes = {}));
20791
20870
 
20792
20871
  (_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
20793
- return _extends$g({}, state, {
20872
+ return _extends$h({}, state, {
20794
20873
  activeItemIndex: null,
20795
20874
  menuState: MenuStates.Closed
20796
20875
  });
20797
20876
  }, _reducers[ActionTypes.OpenMenu] = function (state) {
20798
- return _extends$g({}, state, {
20877
+ return _extends$h({}, state, {
20799
20878
  menuState: MenuStates.Open
20800
20879
  });
20801
20880
  }, _reducers[ActionTypes.GoToItem] = function (state, action) {
@@ -20814,7 +20893,7 @@ var ActionTypes;
20814
20893
  }
20815
20894
  });
20816
20895
  if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
20817
- return _extends$g({}, state, {
20896
+ return _extends$h({}, state, {
20818
20897
  searchQuery: '',
20819
20898
  activeItemIndex: activeItemIndex
20820
20899
  });
@@ -20825,19 +20904,19 @@ var ActionTypes;
20825
20904
 
20826
20905
  return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
20827
20906
  });
20828
- if (match === -1 || match === state.activeItemIndex) return _extends$g({}, state, {
20907
+ if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
20829
20908
  searchQuery: searchQuery
20830
20909
  });
20831
- return _extends$g({}, state, {
20910
+ return _extends$h({}, state, {
20832
20911
  searchQuery: searchQuery,
20833
20912
  activeItemIndex: match
20834
20913
  });
20835
20914
  }, _reducers[ActionTypes.ClearSearch] = function (state) {
20836
- return _extends$g({}, state, {
20915
+ return _extends$h({}, state, {
20837
20916
  searchQuery: ''
20838
20917
  });
20839
20918
  }, _reducers[ActionTypes.RegisterItem] = function (state, action) {
20840
- return _extends$g({}, state, {
20919
+ return _extends$h({}, state, {
20841
20920
  items: [].concat(state.items, [{
20842
20921
  id: action.id,
20843
20922
  dataRef: action.dataRef
@@ -20850,7 +20929,7 @@ var ActionTypes;
20850
20929
  return a.id === action.id;
20851
20930
  });
20852
20931
  if (idx !== -1) nextItems.splice(idx, 1);
20853
- return _extends$g({}, state, {
20932
+ return _extends$h({}, state, {
20854
20933
  items: nextItems,
20855
20934
  activeItemIndex: function () {
20856
20935
  if (idx === state.activeItemIndex) return null;
@@ -20889,19 +20968,19 @@ var ActionTypes$1;
20889
20968
  (_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
20890
20969
  if (state.disabled) return state;
20891
20970
  if (state.listboxState === ListboxStates.Closed) return state;
20892
- return _extends$g({}, state, {
20971
+ return _extends$h({}, state, {
20893
20972
  activeOptionIndex: null,
20894
20973
  listboxState: ListboxStates.Closed
20895
20974
  });
20896
20975
  }, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
20897
20976
  if (state.disabled) return state;
20898
20977
  if (state.listboxState === ListboxStates.Open) return state;
20899
- return _extends$g({}, state, {
20978
+ return _extends$h({}, state, {
20900
20979
  listboxState: ListboxStates.Open
20901
20980
  });
20902
20981
  }, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
20903
20982
  if (state.disabled === action.disabled) return state;
20904
- return _extends$g({}, state, {
20983
+ return _extends$h({}, state, {
20905
20984
  disabled: action.disabled
20906
20985
  });
20907
20986
  }, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
@@ -20922,7 +21001,7 @@ var ActionTypes$1;
20922
21001
  }
20923
21002
  });
20924
21003
  if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
20925
- return _extends$g({}, state, {
21004
+ return _extends$h({}, state, {
20926
21005
  searchQuery: '',
20927
21006
  activeOptionIndex: activeOptionIndex
20928
21007
  });
@@ -20935,10 +21014,10 @@ var ActionTypes$1;
20935
21014
 
20936
21015
  return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
20937
21016
  });
20938
- if (match === -1 || match === state.activeOptionIndex) return _extends$g({}, state, {
21017
+ if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
20939
21018
  searchQuery: searchQuery
20940
21019
  });
20941
- return _extends$g({}, state, {
21020
+ return _extends$h({}, state, {
20942
21021
  searchQuery: searchQuery,
20943
21022
  activeOptionIndex: match
20944
21023
  });
@@ -20946,11 +21025,11 @@ var ActionTypes$1;
20946
21025
  if (state.disabled) return state;
20947
21026
  if (state.listboxState === ListboxStates.Closed) return state;
20948
21027
  if (state.searchQuery === '') return state;
20949
- return _extends$g({}, state, {
21028
+ return _extends$h({}, state, {
20950
21029
  searchQuery: ''
20951
21030
  });
20952
21031
  }, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
20953
- return _extends$g({}, state, {
21032
+ return _extends$h({}, state, {
20954
21033
  options: [].concat(state.options, [{
20955
21034
  id: action.id,
20956
21035
  dataRef: action.dataRef
@@ -20963,7 +21042,7 @@ var ActionTypes$1;
20963
21042
  return a.id === action.id;
20964
21043
  });
20965
21044
  if (idx !== -1) nextOptions.splice(idx, 1);
20966
- return _extends$g({}, state, {
21045
+ return _extends$h({}, state, {
20967
21046
  options: nextOptions,
20968
21047
  activeOptionIndex: function () {
20969
21048
  if (idx === state.activeOptionIndex) return null;
@@ -21024,18 +21103,18 @@ const getPaymentCardIcon = name => {
21024
21103
  }));
21025
21104
  };
21026
21105
 
21027
- var _path$e;
21106
+ var _path$f;
21028
21107
 
21029
- 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); }
21108
+ 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); }
21030
21109
 
21031
21110
  function SvgChevronRight(props) {
21032
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
21111
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
21033
21112
  className: "plc-w-6 plc-h-6",
21034
21113
  xmlns: "http://www.w3.org/2000/svg",
21035
21114
  fill: "none",
21036
21115
  viewBox: "0 0 24 24",
21037
21116
  stroke: "currentColor"
21038
- }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
21117
+ }, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
21039
21118
  strokeLinecap: "round",
21040
21119
  strokeLinejoin: "round",
21041
21120
  strokeWidth: 2,
@@ -21251,18 +21330,18 @@ const SavedItems = ({
21251
21330
  });
21252
21331
  };
21253
21332
 
21254
- var _path$d;
21333
+ var _path$e;
21255
21334
 
21256
- 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); }
21335
+ 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); }
21257
21336
 
21258
21337
  function SvgRefresh(props) {
21259
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
21338
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
21260
21339
  className: "plc-w-4 plc-h-4 plc-mr-1",
21261
21340
  xmlns: "http://www.w3.org/2000/svg",
21262
21341
  fill: "none",
21263
21342
  viewBox: "0 0 24 24",
21264
21343
  stroke: "currentColor"
21265
- }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
21344
+ }, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
21266
21345
  strokeLinecap: "round",
21267
21346
  strokeLinejoin: "round",
21268
21347
  strokeWidth: 2,
@@ -21270,35 +21349,35 @@ function SvgRefresh(props) {
21270
21349
  })));
21271
21350
  }
21272
21351
 
21273
- var _path$c;
21352
+ var _path$d;
21274
21353
 
21275
- 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); }
21354
+ 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); }
21276
21355
 
21277
21356
  function SvgCalendar(props) {
21278
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
21357
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
21279
21358
  xmlns: "http://www.w3.org/2000/svg",
21280
21359
  className: "plc-h-4 plc-w-4 plc-mr-1",
21281
21360
  viewBox: "0 0 20 20",
21282
21361
  fill: "currentColor"
21283
- }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
21362
+ }, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
21284
21363
  fillRule: "evenodd",
21285
21364
  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",
21286
21365
  clipRule: "evenodd"
21287
21366
  })));
21288
21367
  }
21289
21368
 
21290
- var _path$b;
21369
+ var _path$c;
21291
21370
 
21292
- 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); }
21371
+ 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); }
21293
21372
 
21294
21373
  function SvgPlus(props) {
21295
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
21374
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
21296
21375
  className: "plc-w-5 plc-h-5",
21297
21376
  xmlns: "http://www.w3.org/2000/svg",
21298
21377
  fill: "none",
21299
21378
  viewBox: "0 0 24 24",
21300
21379
  stroke: "currentColor"
21301
- }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
21380
+ }, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
21302
21381
  strokeLinecap: "round",
21303
21382
  strokeLinejoin: "round",
21304
21383
  strokeWidth: 2,
@@ -21306,17 +21385,17 @@ function SvgPlus(props) {
21306
21385
  })));
21307
21386
  }
21308
21387
 
21309
- var _path$a;
21388
+ var _path$b;
21310
21389
 
21311
- 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); }
21390
+ 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); }
21312
21391
 
21313
21392
  function SvgCheckMark(props) {
21314
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
21393
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
21315
21394
  className: "plc-w-4 plc-h-4 plc-mr-1",
21316
21395
  xmlns: "http://www.w3.org/2000/svg",
21317
21396
  viewBox: "0 0 20 20",
21318
21397
  fill: "currentColor"
21319
- }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
21398
+ }, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
21320
21399
  fillRule: "evenodd",
21321
21400
  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",
21322
21401
  clipRule: "evenodd"
@@ -21599,18 +21678,18 @@ Accordion.item = function AccordionItem({
21599
21678
  }, content)) : null;
21600
21679
  };
21601
21680
 
21602
- var _path$9;
21681
+ var _path$a;
21603
21682
 
21604
- 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); }
21683
+ 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); }
21605
21684
 
21606
21685
  function SvgExit(props) {
21607
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
21686
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
21608
21687
  className: "plc-w-6 plc-h-6",
21609
21688
  xmlns: "http://www.w3.org/2000/svg",
21610
21689
  fill: "none",
21611
21690
  viewBox: "0 0 24 24",
21612
21691
  stroke: "currentColor"
21613
- }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
21692
+ }, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
21614
21693
  strokeLinecap: "round",
21615
21694
  strokeLinejoin: "round",
21616
21695
  strokeWidth: 2,
@@ -21618,17 +21697,17 @@ function SvgExit(props) {
21618
21697
  })));
21619
21698
  }
21620
21699
 
21621
- var _path$8;
21700
+ var _path$9;
21622
21701
 
21623
- 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); }
21702
+ 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); }
21624
21703
 
21625
21704
  function SvgUser(props) {
21626
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
21705
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
21627
21706
  xmlns: "http://www.w3.org/2000/svg",
21628
21707
  fill: "none",
21629
21708
  viewBox: "0 0 24 24",
21630
21709
  stroke: "currentColor"
21631
- }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
21710
+ }, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
21632
21711
  strokeLinecap: "round",
21633
21712
  strokeLinejoin: "round",
21634
21713
  strokeWidth: 2,
@@ -21636,18 +21715,18 @@ function SvgUser(props) {
21636
21715
  })));
21637
21716
  }
21638
21717
 
21639
- var _path$7;
21718
+ var _path$8;
21640
21719
 
21641
- 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); }
21720
+ 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); }
21642
21721
 
21643
21722
  function SvgNewsletter(props) {
21644
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
21723
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
21645
21724
  xmlns: "http://www.w3.org/2000/svg",
21646
21725
  className: "plc-h-5 plc-w-5",
21647
21726
  fill: "none",
21648
21727
  viewBox: "0 0 24 24",
21649
21728
  stroke: "currentColor"
21650
- }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
21729
+ }, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
21651
21730
  strokeLinecap: "round",
21652
21731
  strokeLinejoin: "round",
21653
21732
  strokeWidth: 2,
@@ -21655,18 +21734,18 @@ function SvgNewsletter(props) {
21655
21734
  })));
21656
21735
  }
21657
21736
 
21658
- var _path$6;
21737
+ var _path$7;
21659
21738
 
21660
- 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); }
21739
+ 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); }
21661
21740
 
21662
21741
  function SvgPaymentCard(props) {
21663
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
21742
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
21664
21743
  className: "plc-w-6 plc-h-6 plc-mr-2",
21665
21744
  xmlns: "http://www.w3.org/2000/svg",
21666
21745
  fill: "none",
21667
21746
  viewBox: "0 0 24 24",
21668
21747
  stroke: "currentColor"
21669
- }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
21748
+ }, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
21670
21749
  strokeLinecap: "round",
21671
21750
  strokeLinejoin: "round",
21672
21751
  strokeWidth: 2,
@@ -21674,23 +21753,23 @@ function SvgPaymentCard(props) {
21674
21753
  })));
21675
21754
  }
21676
21755
 
21677
- var _path$5, _path2;
21756
+ var _path$6, _path2$1;
21678
21757
 
21679
- 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); }
21758
+ 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); }
21680
21759
 
21681
21760
  function SvgLocationPin(props) {
21682
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
21761
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
21683
21762
  className: "plc-w-6 plc-h-6 plc-mr-2",
21684
21763
  xmlns: "http://www.w3.org/2000/svg",
21685
21764
  fill: "none",
21686
21765
  viewBox: "0 0 24 24",
21687
21766
  stroke: "currentColor"
21688
- }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
21767
+ }, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
21689
21768
  strokeLinecap: "round",
21690
21769
  strokeLinejoin: "round",
21691
21770
  strokeWidth: 2,
21692
21771
  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"
21693
- })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
21772
+ })), _path2$1 || (_path2$1 = /*#__PURE__*/React__namespace.createElement("path", {
21694
21773
  strokeLinecap: "round",
21695
21774
  strokeLinejoin: "round",
21696
21775
  strokeWidth: 2,
@@ -21700,10 +21779,10 @@ function SvgLocationPin(props) {
21700
21779
 
21701
21780
  var _switch;
21702
21781
 
21703
- 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); }
21782
+ 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); }
21704
21783
 
21705
21784
  function SvgSubscription(props) {
21706
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
21785
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
21707
21786
  xmlns: "http://www.w3.org/2000/svg",
21708
21787
  viewBox: "0 0 100 125",
21709
21788
  fill: "currentColor"
@@ -21718,18 +21797,18 @@ function SvgSubscription(props) {
21718
21797
  }))))));
21719
21798
  }
21720
21799
 
21721
- var _path$4;
21800
+ var _path$5;
21722
21801
 
21723
- 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); }
21802
+ 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); }
21724
21803
 
21725
21804
  function SvgShopping(props) {
21726
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
21805
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
21727
21806
  className: "plc-w-6 plc-h-6 plc-mr-2",
21728
21807
  xmlns: "http://www.w3.org/2000/svg",
21729
21808
  fill: "none",
21730
21809
  viewBox: "0 0 24 24",
21731
21810
  stroke: "currentColor"
21732
- }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
21811
+ }, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
21733
21812
  strokeLinecap: "round",
21734
21813
  strokeLinejoin: "round",
21735
21814
  strokeWidth: 2,
@@ -21737,18 +21816,18 @@ function SvgShopping(props) {
21737
21816
  })));
21738
21817
  }
21739
21818
 
21740
- var _path$3;
21819
+ var _path$4;
21741
21820
 
21742
- 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); }
21821
+ 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); }
21743
21822
 
21744
21823
  function SvgBookmark(props) {
21745
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
21824
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
21746
21825
  className: "plc-w-6 plc-h-6 plc-mr-2",
21747
21826
  xmlns: "http://www.w3.org/2000/svg",
21748
21827
  fill: "none",
21749
21828
  viewBox: "0 0 24 24",
21750
21829
  stroke: "currentColor"
21751
- }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
21830
+ }, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
21752
21831
  strokeLinecap: "round",
21753
21832
  strokeLinejoin: "round",
21754
21833
  strokeWidth: 2,
@@ -21756,33 +21835,33 @@ function SvgBookmark(props) {
21756
21835
  })));
21757
21836
  }
21758
21837
 
21759
- var _path$2;
21838
+ var _path$3;
21760
21839
 
21761
- 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); }
21840
+ 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); }
21762
21841
 
21763
21842
  function SvgKey(props) {
21764
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
21843
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
21765
21844
  xmlns: "http://www.w3.org/2000/svg",
21766
21845
  viewBox: "0 0 20 20",
21767
21846
  fill: "currentColor"
21768
- }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
21847
+ }, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
21769
21848
  fillRule: "evenodd",
21770
21849
  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",
21771
21850
  clipRule: "evenodd"
21772
21851
  })));
21773
21852
  }
21774
21853
 
21775
- var _path$1;
21854
+ var _path$2;
21776
21855
 
21777
- 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); }
21856
+ 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); }
21778
21857
 
21779
21858
  function SvgDonate(props) {
21780
- return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
21859
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
21781
21860
  width: 24,
21782
21861
  height: 24,
21783
21862
  fill: "currentColor",
21784
21863
  xmlns: "http://www.w3.org/2000/svg"
21785
- }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
21864
+ }, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
21786
21865
  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"
21787
21866
  })));
21788
21867
  }
@@ -22428,7 +22507,7 @@ const DashboardOpenButton = () => {
22428
22507
  };
22429
22508
  DashboardOpenButton.viewId = "dashboard-open";
22430
22509
 
22431
- const initialState = {
22510
+ const initialState$1 = {
22432
22511
  imageSrc: null,
22433
22512
  crop: {
22434
22513
  x: 0,
@@ -22442,10 +22521,10 @@ const initialState = {
22442
22521
  content: ""
22443
22522
  }
22444
22523
  };
22445
- const store = /*#__PURE__*/React.createContext(initialState);
22524
+ const store$1 = /*#__PURE__*/React.createContext(initialState$1);
22446
22525
  const {
22447
- Provider
22448
- } = store;
22526
+ Provider: Provider$1
22527
+ } = store$1;
22449
22528
 
22450
22529
  const ProfilePicChangeContainer = ({
22451
22530
  style,
@@ -22579,21 +22658,21 @@ const ProfilePicChangeContainer = ({
22579
22658
  default:
22580
22659
  return state;
22581
22660
  }
22582
- }, initialState);
22661
+ }, initialState$1);
22583
22662
  return /*#__PURE__*/React__default['default'].createElement("div", {
22584
22663
  style: { ...style
22585
22664
  },
22586
22665
  className: `pelcro-container pelcro-profile-picture-container ${className}`
22587
- }, /*#__PURE__*/React__default['default'].createElement(Provider, {
22666
+ }, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
22588
22667
  value: {
22589
22668
  state,
22590
22669
  dispatch
22591
22670
  }
22592
22671
  }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
22593
- store,
22672
+ store: store$1,
22594
22673
  key: i
22595
22674
  })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
22596
- store
22675
+ store: store$1
22597
22676
  })));
22598
22677
  };
22599
22678
  /**
@@ -22655,7 +22734,7 @@ const ProfilePicChangeButton = ({
22655
22734
  isSubmitting
22656
22735
  },
22657
22736
  dispatch
22658
- } = React.useContext(store);
22737
+ } = React.useContext(store$1);
22659
22738
  const {
22660
22739
  t
22661
22740
  } = useTranslation("userEdit");
@@ -24023,7 +24102,7 @@ const ProfilePicChangeCropper = ({
24023
24102
  zoom
24024
24103
  },
24025
24104
  dispatch
24026
- } = React.useContext(store);
24105
+ } = React.useContext(store$1);
24027
24106
  return /*#__PURE__*/React__default['default'].createElement("div", {
24028
24107
  className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
24029
24108
  }, /*#__PURE__*/React__default['default'].createElement(Cropper, Object.assign({
@@ -24065,7 +24144,7 @@ const ProfilePicChangeZoom = ({
24065
24144
  zoom
24066
24145
  },
24067
24146
  dispatch
24068
- } = React.useContext(store);
24147
+ } = React.useContext(store$1);
24069
24148
  const {
24070
24149
  t
24071
24150
  } = useTranslation("userEdit");
@@ -24088,18 +24167,18 @@ const ProfilePicChangeZoom = ({
24088
24167
  }, otherProps)));
24089
24168
  };
24090
24169
 
24091
- var _path;
24170
+ var _path$1;
24092
24171
 
24093
- 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); }
24172
+ 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); }
24094
24173
 
24095
24174
  function SvgPhotograph(props) {
24096
- return /*#__PURE__*/React__namespace.createElement("svg", _extends({
24175
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
24097
24176
  xmlns: "http://www.w3.org/2000/svg",
24098
24177
  className: "plc-h-6 plc-w-6",
24099
24178
  fill: "none",
24100
24179
  viewBox: "0 0 24 24",
24101
24180
  stroke: "currentColor"
24102
- }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
24181
+ }, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
24103
24182
  strokeLinecap: "round",
24104
24183
  strokeLinejoin: "round",
24105
24184
  strokeWidth: 2,
@@ -24117,7 +24196,7 @@ const ProfilePicChangeSelectButton = ({
24117
24196
  state: {
24118
24197
  isSubmitting
24119
24198
  }
24120
- } = React.useContext(store);
24199
+ } = React.useContext(store$1);
24121
24200
  const {
24122
24201
  t
24123
24202
  } = useTranslation("userEdit");
@@ -24159,7 +24238,7 @@ const ProfilePicChangeRemoveButton = ({
24159
24238
  state: {
24160
24239
  isSubmitting
24161
24240
  }
24162
- } = React.useContext(store);
24241
+ } = React.useContext(store$1);
24163
24242
  const {
24164
24243
  t
24165
24244
  } = useTranslation("userEdit");
@@ -24182,7 +24261,7 @@ const ProfilePicChangeWrapper = () => {
24182
24261
  state: {
24183
24262
  imageSrc
24184
24263
  }
24185
- } = React.useContext(store);
24264
+ } = React.useContext(store$1);
24186
24265
  const {
24187
24266
  t
24188
24267
  } = useTranslation("userEdit");
@@ -24244,6 +24323,182 @@ function ProfilePicChangeModal({
24244
24323
  }
24245
24324
  ProfilePicChangeModal.viewId = "profile-picture";
24246
24325
 
24326
+ const initialState = {
24327
+ isSubmitting: false,
24328
+ alert: {
24329
+ type: "error",
24330
+ content: ""
24331
+ }
24332
+ };
24333
+ const store = /*#__PURE__*/React.createContext(initialState);
24334
+ const {
24335
+ Provider
24336
+ } = store;
24337
+
24338
+ const EmailVerifyContainer = ({
24339
+ style,
24340
+ className = "",
24341
+ onSuccess = () => {},
24342
+ onFailure = () => {},
24343
+ children,
24344
+ ...props
24345
+ }) => {
24346
+ const {
24347
+ t
24348
+ } = useTranslation("verifyEmail");
24349
+
24350
+ const submit = () => {
24351
+ window.Pelcro.user.resendEmailVerificationToken((err, res) => {
24352
+ dispatch({
24353
+ type: LOADING,
24354
+ payload: false
24355
+ });
24356
+
24357
+ if (err) {
24358
+ dispatch({
24359
+ type: SHOW_ALERT,
24360
+ payload: {
24361
+ type: "error",
24362
+ content: getErrorMessages(err)
24363
+ }
24364
+ });
24365
+ return onFailure(err);
24366
+ }
24367
+
24368
+ dispatch({
24369
+ type: SHOW_ALERT,
24370
+ payload: {
24371
+ type: "success",
24372
+ content: t("messages.resent")
24373
+ }
24374
+ });
24375
+ return onSuccess(res);
24376
+ });
24377
+ };
24378
+
24379
+ const [state, dispatch] = useReducerWithSideEffects((state, action) => {
24380
+ switch (action.type) {
24381
+ case SHOW_ALERT:
24382
+ return lib_7({ ...state,
24383
+ alert: action.payload
24384
+ });
24385
+
24386
+ case LOADING:
24387
+ return lib_7({ ...state,
24388
+ isSubmitting: action.payload
24389
+ });
24390
+
24391
+ case HANDLE_SUBMIT:
24392
+ return lib_5({ ...state,
24393
+ isSubmitting: true
24394
+ }, (state, dispatch) => submit());
24395
+
24396
+ default:
24397
+ return state;
24398
+ }
24399
+ }, initialState);
24400
+ return /*#__PURE__*/React__default['default'].createElement("div", {
24401
+ style: { ...style
24402
+ },
24403
+ className: `pelcro-container pelcro-email-verify-container ${className}`
24404
+ }, /*#__PURE__*/React__default['default'].createElement(Provider, {
24405
+ value: {
24406
+ state,
24407
+ dispatch
24408
+ }
24409
+ }, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
24410
+ store,
24411
+ key: i
24412
+ })) : /*#__PURE__*/React__default['default'].cloneElement(children, {
24413
+ store
24414
+ })));
24415
+ };
24416
+
24417
+ const EmailVerifyResendButton = ({
24418
+ name,
24419
+ onClick,
24420
+ ...otherProps
24421
+ }) => {
24422
+ const {
24423
+ dispatch,
24424
+ state: {
24425
+ isSubmitting
24426
+ }
24427
+ } = React.useContext(store);
24428
+ const {
24429
+ t
24430
+ } = useTranslation("verifyEmail");
24431
+ return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
24432
+ onClick: () => {
24433
+ dispatch({
24434
+ type: HANDLE_SUBMIT
24435
+ });
24436
+ onClick === null || onClick === void 0 ? void 0 : onClick();
24437
+ },
24438
+ isLoading: isSubmitting
24439
+ }, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
24440
+ };
24441
+
24442
+ var _path, _path2;
24443
+
24444
+ 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); }
24445
+
24446
+ function SvgEmailVerify(props) {
24447
+ return /*#__PURE__*/React__namespace.createElement("svg", _extends({
24448
+ className: "plc-w-6 plc-h-6",
24449
+ viewBox: "0 0 700 700",
24450
+ xmlns: "http://www.w3.org/2000/svg"
24451
+ }, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
24452
+ 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"
24453
+ })), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
24454
+ 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"
24455
+ })));
24456
+ }
24457
+
24458
+ const EmailVerifyView = props => {
24459
+ var _window$Pelcro$user$r;
24460
+
24461
+ const {
24462
+ t
24463
+ } = useTranslation("verifyEmail");
24464
+ return /*#__PURE__*/React__default['default'].createElement("div", {
24465
+ id: "pelcro-email-verify-view"
24466
+ }, /*#__PURE__*/React__default['default'].createElement("div", {
24467
+ className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
24468
+ }, /*#__PURE__*/React__default['default'].createElement("h4", {
24469
+ className: "plc-text-2xl plc-font-semibold"
24470
+ }, t("labels.title"))), /*#__PURE__*/React__default['default'].createElement("form", {
24471
+ action: "javascript:void(0);",
24472
+ className: "plc-mt-2 pelcro-form"
24473
+ }, /*#__PURE__*/React__default['default'].createElement(EmailVerifyContainer, props, /*#__PURE__*/React__default['default'].createElement(AlertWithContext, null), /*#__PURE__*/React__default['default'].createElement("div", {
24474
+ className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
24475
+ }, /*#__PURE__*/React__default['default'].createElement(SvgEmailVerify, {
24476
+ className: "plc-w-32 plc-h-32"
24477
+ }), /*#__PURE__*/React__default['default'].createElement("p", {
24478
+ className: "plc-mb-1 plc-text-gray-900"
24479
+ }, t("labels.instructions"), " ", /*#__PURE__*/React__default['default'].createElement("span", {
24480
+ className: "plc-font-bold"
24481
+ }, (_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['default'].createElement(EmailVerifyResendButton, {
24482
+ role: "submit",
24483
+ className: "plc-mt-4 plc-w-full",
24484
+ name: t("labels.resend"),
24485
+ id: "pelcro-submit"
24486
+ }))));
24487
+ };
24488
+
24489
+ const EmailVerifyModal = ({
24490
+ onDisplay,
24491
+ onClose,
24492
+ ...otherProps
24493
+ }) => {
24494
+ return /*#__PURE__*/React__default['default'].createElement(Modal, {
24495
+ onDisplay: onDisplay,
24496
+ onClose: onClose,
24497
+ id: "pelcro-email-verify-modal"
24498
+ }, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(EmailVerifyView, otherProps)), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
24499
+ };
24500
+ EmailVerifyModal.viewId = "email-verify";
24501
+
24247
24502
  exports.AddressCreateCity = AddressCreateCity;
24248
24503
  exports.AddressCreateContainer = AddressCreateContainer;
24249
24504
  exports.AddressCreateCountrySelect = AddressCreateCountrySelect;
@@ -24298,6 +24553,10 @@ exports.DashboardOpenButton = DashboardOpenButton;
24298
24553
  exports.DatePicker = DatePicker;
24299
24554
  exports.DiscountedPrice = DiscountedPrice;
24300
24555
  exports.Email = Email;
24556
+ exports.EmailVerifyContainer = EmailVerifyContainer;
24557
+ exports.EmailVerifyModal = EmailVerifyModal;
24558
+ exports.EmailVerifyResendButton = EmailVerifyResendButton;
24559
+ exports.EmailVerifyView = EmailVerifyView;
24301
24560
  exports.FacebookLoginButton = FacebookLoginButton;
24302
24561
  exports.GiftCreateContainer = GiftCreateContainer;
24303
24562
  exports.GiftCreateEmail = GiftCreateEmail;