@pelcro/react-pelcro-js 2.7.0-beta.8 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +921 -603
- package/dist/index.esm.js +918 -604
- package/dist/pelcro.css +8 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3434,7 +3434,7 @@ var paymentMethod_fr = {
|
|
|
3434
3434
|
var title$d = "Enter your email to subscribe to our newsletter";
|
|
3435
3435
|
var updateTitle$1 = "Update newsletter selections";
|
|
3436
3436
|
var subtitle$7 = "We may use your email for other marketing communication";
|
|
3437
|
-
var labels$
|
|
3437
|
+
var labels$n = {
|
|
3438
3438
|
submit: "Submit",
|
|
3439
3439
|
firstName: "First name",
|
|
3440
3440
|
lastName: "Last name",
|
|
@@ -3442,7 +3442,7 @@ var labels$l = {
|
|
|
3442
3442
|
postalCode: "Postal code",
|
|
3443
3443
|
required: "required"
|
|
3444
3444
|
};
|
|
3445
|
-
var messages$
|
|
3445
|
+
var messages$r = {
|
|
3446
3446
|
alreadyHaveAccount: "Already have an account?",
|
|
3447
3447
|
success: "Newsletters were successfully updated",
|
|
3448
3448
|
loginHere: "Login here.",
|
|
@@ -3453,14 +3453,14 @@ var newsletter_en = {
|
|
|
3453
3453
|
title: title$d,
|
|
3454
3454
|
updateTitle: updateTitle$1,
|
|
3455
3455
|
subtitle: subtitle$7,
|
|
3456
|
-
labels: labels$
|
|
3457
|
-
messages: messages$
|
|
3456
|
+
labels: labels$n,
|
|
3457
|
+
messages: messages$r
|
|
3458
3458
|
};
|
|
3459
3459
|
|
|
3460
3460
|
var title$c = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3461
3461
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3462
3462
|
var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3463
|
-
var labels$
|
|
3463
|
+
var labels$m = {
|
|
3464
3464
|
submit: "Lire l’article !",
|
|
3465
3465
|
firstName: "Prénom",
|
|
3466
3466
|
lastName: "Nom de famille",
|
|
@@ -3468,7 +3468,7 @@ var labels$k = {
|
|
|
3468
3468
|
postalCode: "Code postal",
|
|
3469
3469
|
required: "Champs obligatoires"
|
|
3470
3470
|
};
|
|
3471
|
-
var messages$
|
|
3471
|
+
var messages$q = {
|
|
3472
3472
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
3473
3473
|
success: "Votre choix d'infolettres à été mis à jour",
|
|
3474
3474
|
loginHere: "Connectez-vous ici",
|
|
@@ -3479,14 +3479,14 @@ var newsletter_fr = {
|
|
|
3479
3479
|
title: title$c,
|
|
3480
3480
|
updateTitle: updateTitle,
|
|
3481
3481
|
subtitle: subtitle$6,
|
|
3482
|
-
labels: labels$
|
|
3483
|
-
messages: messages$
|
|
3482
|
+
labels: labels$m,
|
|
3483
|
+
messages: messages$q
|
|
3484
3484
|
};
|
|
3485
3485
|
|
|
3486
|
-
var labels$
|
|
3486
|
+
var labels$l = {
|
|
3487
3487
|
"continue": "Continue to content"
|
|
3488
3488
|
};
|
|
3489
|
-
var messages$
|
|
3489
|
+
var messages$p = {
|
|
3490
3490
|
yourFreeTrial: "Subscription successful!",
|
|
3491
3491
|
youHaveAccess: "Hope you enjoy the subscription. Please contact us if you have any questions or concerns.",
|
|
3492
3492
|
clickToLearn: {
|
|
@@ -3508,15 +3508,15 @@ var errors$9 = {
|
|
|
3508
3508
|
"": ""
|
|
3509
3509
|
};
|
|
3510
3510
|
var success_en = {
|
|
3511
|
-
labels: labels$
|
|
3512
|
-
messages: messages$
|
|
3511
|
+
labels: labels$l,
|
|
3512
|
+
messages: messages$p,
|
|
3513
3513
|
errors: errors$9
|
|
3514
3514
|
};
|
|
3515
3515
|
|
|
3516
|
-
var labels$
|
|
3516
|
+
var labels$k = {
|
|
3517
3517
|
"continue": "Abonnement réussi !"
|
|
3518
3518
|
};
|
|
3519
|
-
var messages$
|
|
3519
|
+
var messages$o = {
|
|
3520
3520
|
yourFreeTrial: "Votre essai gratuit vient de débuter",
|
|
3521
3521
|
youHaveAccess: "Nous espérons que vous allez apprécier votre abonnement. Veuillez nous contacter si vous avez des questions ou des préoccupations.",
|
|
3522
3522
|
clickToLearn: {
|
|
@@ -3538,12 +3538,12 @@ var errors$8 = {
|
|
|
3538
3538
|
"": ""
|
|
3539
3539
|
};
|
|
3540
3540
|
var success_fr = {
|
|
3541
|
-
labels: labels$
|
|
3542
|
-
messages: messages$
|
|
3541
|
+
labels: labels$k,
|
|
3542
|
+
messages: messages$o,
|
|
3543
3543
|
errors: errors$8
|
|
3544
3544
|
};
|
|
3545
3545
|
|
|
3546
|
-
var messages$
|
|
3546
|
+
var messages$n = {
|
|
3547
3547
|
freeVisits: "Free visits left:",
|
|
3548
3548
|
subscribeNow: "Subscribe",
|
|
3549
3549
|
alreadyHaveAccount: "Already have an account?",
|
|
@@ -3553,11 +3553,11 @@ var errors$7 = {
|
|
|
3553
3553
|
"": ""
|
|
3554
3554
|
};
|
|
3555
3555
|
var meter_en = {
|
|
3556
|
-
messages: messages$
|
|
3556
|
+
messages: messages$n,
|
|
3557
3557
|
errors: errors$7
|
|
3558
3558
|
};
|
|
3559
3559
|
|
|
3560
|
-
var messages$
|
|
3560
|
+
var messages$m = {
|
|
3561
3561
|
freeVisits: "Visites gratuites restantes:",
|
|
3562
3562
|
subscribeNow: "Abonnez-vous maintenant !",
|
|
3563
3563
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
@@ -3567,15 +3567,15 @@ var errors$6 = {
|
|
|
3567
3567
|
"": ""
|
|
3568
3568
|
};
|
|
3569
3569
|
var meter_fr = {
|
|
3570
|
-
messages: messages$
|
|
3570
|
+
messages: messages$m,
|
|
3571
3571
|
errors: errors$6
|
|
3572
3572
|
};
|
|
3573
3573
|
|
|
3574
|
-
var messages$
|
|
3574
|
+
var messages$l = {
|
|
3575
3575
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
3576
3576
|
bankRedirection: "Please hold, redirecting you to your bank."
|
|
3577
3577
|
};
|
|
3578
|
-
var labels$
|
|
3578
|
+
var labels$j = {
|
|
3579
3579
|
card: "Enter card number",
|
|
3580
3580
|
date: "Expiration date",
|
|
3581
3581
|
CVC: "CVC",
|
|
@@ -3594,15 +3594,15 @@ var labels$h = {
|
|
|
3594
3594
|
removeCoupon: "REMOVE"
|
|
3595
3595
|
};
|
|
3596
3596
|
var checkoutForm_en = {
|
|
3597
|
-
messages: messages$
|
|
3598
|
-
labels: labels$
|
|
3597
|
+
messages: messages$l,
|
|
3598
|
+
labels: labels$j
|
|
3599
3599
|
};
|
|
3600
3600
|
|
|
3601
|
-
var messages$
|
|
3601
|
+
var messages$k = {
|
|
3602
3602
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
3603
3603
|
bankRedirection: "Veuillez patienter, nous vous redirigeons vers votre banque."
|
|
3604
3604
|
};
|
|
3605
|
-
var labels$
|
|
3605
|
+
var labels$i = {
|
|
3606
3606
|
card: "Entrez le numéro de carte",
|
|
3607
3607
|
date: "Date d’expiration",
|
|
3608
3608
|
CVC: "CVC",
|
|
@@ -3621,8 +3621,8 @@ var labels$g = {
|
|
|
3621
3621
|
removeCoupon: "RETIRER"
|
|
3622
3622
|
};
|
|
3623
3623
|
var checkoutForm_fr = {
|
|
3624
|
-
messages: messages$
|
|
3625
|
-
labels: labels$
|
|
3624
|
+
messages: messages$k,
|
|
3625
|
+
labels: labels$i
|
|
3626
3626
|
};
|
|
3627
3627
|
|
|
3628
3628
|
var youAreSafe$1 = "You're safe - PCI compliant 128 SSL by";
|
|
@@ -3655,7 +3655,7 @@ var messages_fr = {
|
|
|
3655
3655
|
recaptcha: recaptcha
|
|
3656
3656
|
};
|
|
3657
3657
|
|
|
3658
|
-
var labels$
|
|
3658
|
+
var labels$h = {
|
|
3659
3659
|
email: "Enter email",
|
|
3660
3660
|
password: "Enter password",
|
|
3661
3661
|
required: "required",
|
|
@@ -3663,7 +3663,7 @@ var labels$f = {
|
|
|
3663
3663
|
passwordPlaceholder: "Password",
|
|
3664
3664
|
login: "Login"
|
|
3665
3665
|
};
|
|
3666
|
-
var messages$
|
|
3666
|
+
var messages$j = {
|
|
3667
3667
|
loginTo: "Login to your account",
|
|
3668
3668
|
welcome: "Welcome back, sign in with your existing account.",
|
|
3669
3669
|
dontHaveAccount: "Don't have an account yet?",
|
|
@@ -3682,12 +3682,12 @@ var errors$5 = {
|
|
|
3682
3682
|
"": ""
|
|
3683
3683
|
};
|
|
3684
3684
|
var login_en = {
|
|
3685
|
-
labels: labels$
|
|
3686
|
-
messages: messages$
|
|
3685
|
+
labels: labels$h,
|
|
3686
|
+
messages: messages$j,
|
|
3687
3687
|
errors: errors$5
|
|
3688
3688
|
};
|
|
3689
3689
|
|
|
3690
|
-
var labels$
|
|
3690
|
+
var labels$g = {
|
|
3691
3691
|
email: "Entrez votre adresse courriel",
|
|
3692
3692
|
password: "Entrez votre mot de passe",
|
|
3693
3693
|
required: "Champs obligatoires",
|
|
@@ -3695,7 +3695,7 @@ var labels$e = {
|
|
|
3695
3695
|
passwordPlaceholder: "Mot de passe",
|
|
3696
3696
|
login: "Connexion"
|
|
3697
3697
|
};
|
|
3698
|
-
var messages$
|
|
3698
|
+
var messages$i = {
|
|
3699
3699
|
loginTo: "Connectez-vous à votre compte",
|
|
3700
3700
|
welcome: "Bienvenue, connectez-vous avec votre compte existant.",
|
|
3701
3701
|
dontHaveAccount: "Vous n’avez pas encore de compte ?",
|
|
@@ -3714,14 +3714,14 @@ var errors$4 = {
|
|
|
3714
3714
|
"": ""
|
|
3715
3715
|
};
|
|
3716
3716
|
var login_fr = {
|
|
3717
|
-
labels: labels$
|
|
3718
|
-
messages: messages$
|
|
3717
|
+
labels: labels$g,
|
|
3718
|
+
messages: messages$i,
|
|
3719
3719
|
errors: errors$4
|
|
3720
3720
|
};
|
|
3721
3721
|
|
|
3722
3722
|
var title$b = "Create an account";
|
|
3723
3723
|
var subtitle$5 = "Enter your email and password below";
|
|
3724
|
-
var labels$
|
|
3724
|
+
var labels$f = {
|
|
3725
3725
|
signUpFacebook: "Sign up with Facebook",
|
|
3726
3726
|
signUpGoogle: "Sign up with Google",
|
|
3727
3727
|
signUpEmail: "Sign up with Email",
|
|
@@ -3733,7 +3733,7 @@ var labels$d = {
|
|
|
3733
3733
|
firstName: "First name",
|
|
3734
3734
|
lastName: "Last name"
|
|
3735
3735
|
};
|
|
3736
|
-
var messages$
|
|
3736
|
+
var messages$h = {
|
|
3737
3737
|
alreadyHaveAccount: "Already have an account?",
|
|
3738
3738
|
createAccount: "Create account",
|
|
3739
3739
|
loginHere: "login here. ",
|
|
@@ -3807,8 +3807,8 @@ var redeem$1 = {
|
|
|
3807
3807
|
var register_en = {
|
|
3808
3808
|
title: title$b,
|
|
3809
3809
|
subtitle: subtitle$5,
|
|
3810
|
-
labels: labels$
|
|
3811
|
-
messages: messages$
|
|
3810
|
+
labels: labels$f,
|
|
3811
|
+
messages: messages$h,
|
|
3812
3812
|
errors: errors$3,
|
|
3813
3813
|
gift: gift$1,
|
|
3814
3814
|
redeem: redeem$1
|
|
@@ -3816,7 +3816,7 @@ var register_en = {
|
|
|
3816
3816
|
|
|
3817
3817
|
var title$a = "Créer un compte";
|
|
3818
3818
|
var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3819
|
-
var labels$
|
|
3819
|
+
var labels$e = {
|
|
3820
3820
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3821
3821
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
3822
3822
|
signUpEmail: "Inscrivez-vous avec votre courriel",
|
|
@@ -3828,7 +3828,7 @@ var labels$c = {
|
|
|
3828
3828
|
firstName: "Prénom",
|
|
3829
3829
|
lastName: "Nom de famille"
|
|
3830
3830
|
};
|
|
3831
|
-
var messages$
|
|
3831
|
+
var messages$g = {
|
|
3832
3832
|
alreadyHaveAccount: "Vous avez déjà un compte?",
|
|
3833
3833
|
createAccount: "Créer un compte",
|
|
3834
3834
|
loginHere: "Connectez-vous ici",
|
|
@@ -3903,14 +3903,14 @@ var redeem = {
|
|
|
3903
3903
|
var register_fr = {
|
|
3904
3904
|
title: title$a,
|
|
3905
3905
|
subtitle: subtitle$4,
|
|
3906
|
-
labels: labels$
|
|
3907
|
-
messages: messages$
|
|
3906
|
+
labels: labels$e,
|
|
3907
|
+
messages: messages$g,
|
|
3908
3908
|
errors: errors$2,
|
|
3909
3909
|
gift: gift,
|
|
3910
3910
|
redeem: redeem
|
|
3911
3911
|
};
|
|
3912
3912
|
|
|
3913
|
-
var labels$
|
|
3913
|
+
var labels$d = {
|
|
3914
3914
|
title: "Want to update your profile?",
|
|
3915
3915
|
subtitle: "Enter your information below to update your profile",
|
|
3916
3916
|
email: "Email",
|
|
@@ -3926,17 +3926,17 @@ var labels$b = {
|
|
|
3926
3926
|
removeImage: "Remove current photo",
|
|
3927
3927
|
zoom: "Zoom"
|
|
3928
3928
|
};
|
|
3929
|
-
var messages$
|
|
3929
|
+
var messages$f = {
|
|
3930
3930
|
userUpdated: "Thanks! Your profile was updated successfully.",
|
|
3931
3931
|
pictureRemoved: "Your profile picture was removed successfully.",
|
|
3932
3932
|
pictureUpdated: "Your profile picture was updated successfully."
|
|
3933
3933
|
};
|
|
3934
3934
|
var userEdit_en = {
|
|
3935
|
-
labels: labels$
|
|
3936
|
-
messages: messages$
|
|
3935
|
+
labels: labels$d,
|
|
3936
|
+
messages: messages$f
|
|
3937
3937
|
};
|
|
3938
3938
|
|
|
3939
|
-
var labels$
|
|
3939
|
+
var labels$c = {
|
|
3940
3940
|
title: "Voulez-vous mettre à jour votre profil ?",
|
|
3941
3941
|
subtitle: "Entrez vos informations ci-dessous pour mettre à jour votre profil",
|
|
3942
3942
|
email: "Address courriel",
|
|
@@ -3952,20 +3952,20 @@ var labels$a = {
|
|
|
3952
3952
|
removeImage: "supprimer la photo actuelle",
|
|
3953
3953
|
zoom: "Zoom"
|
|
3954
3954
|
};
|
|
3955
|
-
var messages$
|
|
3955
|
+
var messages$e = {
|
|
3956
3956
|
userUpdated: "Votre profil a été mis à jour avec succès.",
|
|
3957
3957
|
pictureRemoved: "Votre photo de profil a été supprimée avec succès.",
|
|
3958
3958
|
pictureUpdated: "Votre photo de profil a été mise à jour avec succès."
|
|
3959
3959
|
};
|
|
3960
3960
|
var userEdit_fr = {
|
|
3961
|
-
labels: labels$
|
|
3962
|
-
messages: messages$
|
|
3961
|
+
labels: labels$c,
|
|
3962
|
+
messages: messages$e
|
|
3963
3963
|
};
|
|
3964
3964
|
|
|
3965
3965
|
var title$9 = "Enter your shipping address";
|
|
3966
3966
|
var selectAddressTitle$1 = "Please select an address";
|
|
3967
3967
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
3968
|
-
var labels$
|
|
3968
|
+
var labels$b = {
|
|
3969
3969
|
address: "Address",
|
|
3970
3970
|
code: "Postal Code/Zip",
|
|
3971
3971
|
city: "City",
|
|
@@ -3980,7 +3980,7 @@ var buttons$5 = {
|
|
|
3980
3980
|
selectAddress: "Select address",
|
|
3981
3981
|
addAddress: "Add new address"
|
|
3982
3982
|
};
|
|
3983
|
-
var messages$
|
|
3983
|
+
var messages$d = {
|
|
3984
3984
|
addressUpdated: "The address was successfully updated!",
|
|
3985
3985
|
subRedeemed: "Your subscription has been redeemed."
|
|
3986
3986
|
};
|
|
@@ -3988,15 +3988,15 @@ var address_en = {
|
|
|
3988
3988
|
title: title$9,
|
|
3989
3989
|
selectAddressTitle: selectAddressTitle$1,
|
|
3990
3990
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
3991
|
-
labels: labels$
|
|
3991
|
+
labels: labels$b,
|
|
3992
3992
|
buttons: buttons$5,
|
|
3993
|
-
messages: messages$
|
|
3993
|
+
messages: messages$d
|
|
3994
3994
|
};
|
|
3995
3995
|
|
|
3996
3996
|
var title$8 = "Entrez votre adresse de livraison";
|
|
3997
3997
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
3998
3998
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
3999
|
-
var labels$
|
|
3999
|
+
var labels$a = {
|
|
4000
4000
|
address: "Adresse",
|
|
4001
4001
|
code: "Code postal / Zip",
|
|
4002
4002
|
city: "Ville",
|
|
@@ -4011,7 +4011,7 @@ var buttons$4 = {
|
|
|
4011
4011
|
selectAddress: "Choisir cette adresse",
|
|
4012
4012
|
addAddress: "Ajouter une nouvelle adresse"
|
|
4013
4013
|
};
|
|
4014
|
-
var messages$
|
|
4014
|
+
var messages$c = {
|
|
4015
4015
|
addressUpdated: "Votre adresse a été mise à jour avec succès",
|
|
4016
4016
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4017
4017
|
};
|
|
@@ -4019,9 +4019,9 @@ var address_fr = {
|
|
|
4019
4019
|
title: title$8,
|
|
4020
4020
|
selectAddressTitle: selectAddressTitle,
|
|
4021
4021
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4022
|
-
labels: labels$
|
|
4022
|
+
labels: labels$a,
|
|
4023
4023
|
buttons: buttons$4,
|
|
4024
|
-
messages: messages$
|
|
4024
|
+
messages: messages$c
|
|
4025
4025
|
};
|
|
4026
4026
|
|
|
4027
4027
|
var title$7 = "Reset your password";
|
|
@@ -4068,7 +4068,7 @@ var password$1 = "Password";
|
|
|
4068
4068
|
var submit$3 = "Submit";
|
|
4069
4069
|
var required$3 = "Required";
|
|
4070
4070
|
var passwordResetEmailSent$1 = "Password reset instructions have been sent to your email";
|
|
4071
|
-
var messages$
|
|
4071
|
+
var messages$b = {
|
|
4072
4072
|
alreadyHaveAccount: "Already have an account?",
|
|
4073
4073
|
loginHere: "login here."
|
|
4074
4074
|
};
|
|
@@ -4079,7 +4079,7 @@ var passwordForgot_en = {
|
|
|
4079
4079
|
submit: submit$3,
|
|
4080
4080
|
required: required$3,
|
|
4081
4081
|
passwordResetEmailSent: passwordResetEmailSent$1,
|
|
4082
|
-
messages: messages$
|
|
4082
|
+
messages: messages$b
|
|
4083
4083
|
};
|
|
4084
4084
|
|
|
4085
4085
|
var title$4 = "Mot de passe oublié ?";
|
|
@@ -4088,7 +4088,7 @@ var password = "Mot de passe";
|
|
|
4088
4088
|
var submit$2 = "Soumettre";
|
|
4089
4089
|
var required$2 = "Champs obligatoires";
|
|
4090
4090
|
var passwordResetEmailSent = "Un lien pour réinitialiser votre mot de passe vous a été envoyé. Si vous ne le recevez pas, vérifier votre courrier indésirable.";
|
|
4091
|
-
var messages$
|
|
4091
|
+
var messages$a = {
|
|
4092
4092
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4093
4093
|
loginHere: "Connectez-vous ici"
|
|
4094
4094
|
};
|
|
@@ -4099,7 +4099,7 @@ var passwordForgot_fr = {
|
|
|
4099
4099
|
submit: submit$2,
|
|
4100
4100
|
required: required$2,
|
|
4101
4101
|
passwordResetEmailSent: passwordResetEmailSent,
|
|
4102
|
-
messages: messages$
|
|
4102
|
+
messages: messages$a
|
|
4103
4103
|
};
|
|
4104
4104
|
|
|
4105
4105
|
var title$3 = "Change your password";
|
|
@@ -4200,7 +4200,7 @@ var buttons$3 = {
|
|
|
4200
4200
|
purchase: "Purchase",
|
|
4201
4201
|
"continue": "Continue"
|
|
4202
4202
|
};
|
|
4203
|
-
var messages$
|
|
4203
|
+
var messages$9 = {
|
|
4204
4204
|
orderConfirmed: {
|
|
4205
4205
|
title: "Order confirmed!",
|
|
4206
4206
|
body: "Your order has been confirmed and will be shipped within the next few days. You'll shortly receive an email confirmation of this order."
|
|
@@ -4209,14 +4209,14 @@ var messages$7 = {
|
|
|
4209
4209
|
multipleCurrencies: "Your cart currently contains items which are available in different currencies. In order to proceed with the checkout, please make sure that all items have the same currency.",
|
|
4210
4210
|
currencyMismatch: "The selected item(s) do not match your current default currency ({{currency}}). Please choose item(s) only matching this currency."
|
|
4211
4211
|
};
|
|
4212
|
-
var labels$
|
|
4212
|
+
var labels$9 = {
|
|
4213
4213
|
summary: "Order summary",
|
|
4214
4214
|
total: "total"
|
|
4215
4215
|
};
|
|
4216
4216
|
var shop_en = {
|
|
4217
4217
|
buttons: buttons$3,
|
|
4218
|
-
messages: messages$
|
|
4219
|
-
labels: labels$
|
|
4218
|
+
messages: messages$9,
|
|
4219
|
+
labels: labels$9
|
|
4220
4220
|
};
|
|
4221
4221
|
|
|
4222
4222
|
var buttons$2 = {
|
|
@@ -4225,7 +4225,7 @@ var buttons$2 = {
|
|
|
4225
4225
|
purchase: "Acheter",
|
|
4226
4226
|
"continue": "Continuer au contenu"
|
|
4227
4227
|
};
|
|
4228
|
-
var messages$
|
|
4228
|
+
var messages$8 = {
|
|
4229
4229
|
orderConfirmed: {
|
|
4230
4230
|
title: "Votre commande est confirmée !",
|
|
4231
4231
|
body: "Votre commande a été confirmée et vous sera expédiée dans les prochains jours. Vous recevrez un courriel de confirmation sous peu."
|
|
@@ -4234,17 +4234,17 @@ var messages$6 = {
|
|
|
4234
4234
|
multipleCurrencies: "Votre panier contient des articles disponibles dans différentes devises. Avant de passer à la caisse, veuillez vous assurer que tous les articles ont la même devise.",
|
|
4235
4235
|
currencyMismatch: "Les articles sélectionnés ne sont pas compatibles avec la devise associée à votre compte ({{currency}}). Veuillez choisir des articles uniquement offerts dans cette devise."
|
|
4236
4236
|
};
|
|
4237
|
-
var labels$
|
|
4237
|
+
var labels$8 = {
|
|
4238
4238
|
summary: "récapitulatif de commande",
|
|
4239
4239
|
total: "total"
|
|
4240
4240
|
};
|
|
4241
4241
|
var shop_fr = {
|
|
4242
4242
|
buttons: buttons$2,
|
|
4243
|
-
messages: messages$
|
|
4244
|
-
labels: labels$
|
|
4243
|
+
messages: messages$8,
|
|
4244
|
+
labels: labels$8
|
|
4245
4245
|
};
|
|
4246
4246
|
|
|
4247
|
-
var labels$
|
|
4247
|
+
var labels$7 = {
|
|
4248
4248
|
cardNumber: "Numéro de carte",
|
|
4249
4249
|
securityCode: "Code de sécurité",
|
|
4250
4250
|
submit: "Soumettre",
|
|
@@ -4266,7 +4266,7 @@ var labels$5 = {
|
|
|
4266
4266
|
title: "Informations de paiement"
|
|
4267
4267
|
}
|
|
4268
4268
|
};
|
|
4269
|
-
var messages$
|
|
4269
|
+
var messages$7 = {
|
|
4270
4270
|
youAreSafe: "Vous êtes en sécurité - PCI conforme 128 SSL par",
|
|
4271
4271
|
cancel: "Annuler votre abonnement en ligne à tout moment.",
|
|
4272
4272
|
giftSent: "Le cadeau d’abonnement a été envoyé à",
|
|
@@ -4279,12 +4279,12 @@ var errors$1 = {
|
|
|
4279
4279
|
"": ""
|
|
4280
4280
|
};
|
|
4281
4281
|
var payment_fr = {
|
|
4282
|
-
labels: labels$
|
|
4283
|
-
messages: messages$
|
|
4282
|
+
labels: labels$7,
|
|
4283
|
+
messages: messages$7,
|
|
4284
4284
|
errors: errors$1
|
|
4285
4285
|
};
|
|
4286
4286
|
|
|
4287
|
-
var labels$
|
|
4287
|
+
var labels$6 = {
|
|
4288
4288
|
cardNumber: "Card number",
|
|
4289
4289
|
securityCode: "Security Code",
|
|
4290
4290
|
submit: "Submit",
|
|
@@ -4306,7 +4306,7 @@ var labels$4 = {
|
|
|
4306
4306
|
title: "Payment Information"
|
|
4307
4307
|
}
|
|
4308
4308
|
};
|
|
4309
|
-
var messages$
|
|
4309
|
+
var messages$6 = {
|
|
4310
4310
|
youAreSafe: "You're safe - PCI compliant 128 SSL by",
|
|
4311
4311
|
cancel: "Cancel your subscription online at anytime.",
|
|
4312
4312
|
giftSent: "Subscription gift has been sent to",
|
|
@@ -4319,12 +4319,12 @@ var errors = {
|
|
|
4319
4319
|
"": ""
|
|
4320
4320
|
};
|
|
4321
4321
|
var payment_en = {
|
|
4322
|
-
labels: labels$
|
|
4323
|
-
messages: messages$
|
|
4322
|
+
labels: labels$6,
|
|
4323
|
+
messages: messages$6,
|
|
4324
4324
|
errors: errors
|
|
4325
4325
|
};
|
|
4326
4326
|
|
|
4327
|
-
var labels$
|
|
4327
|
+
var labels$5 = {
|
|
4328
4328
|
menu: "Pelcro Menu",
|
|
4329
4329
|
name: "Name",
|
|
4330
4330
|
email: "Email",
|
|
@@ -4391,7 +4391,7 @@ var labels$3 = {
|
|
|
4391
4391
|
goBack: "Go back"
|
|
4392
4392
|
}
|
|
4393
4393
|
};
|
|
4394
|
-
var messages$
|
|
4394
|
+
var messages$5 = {
|
|
4395
4395
|
noCard: "You don't have a card",
|
|
4396
4396
|
subCancellation: {
|
|
4397
4397
|
isSureToCancel: "Are you sure you want to cancel your subscription?",
|
|
@@ -4401,11 +4401,11 @@ var messages$3 = {
|
|
|
4401
4401
|
}
|
|
4402
4402
|
};
|
|
4403
4403
|
var dashboard_en = {
|
|
4404
|
-
labels: labels$
|
|
4405
|
-
messages: messages$
|
|
4404
|
+
labels: labels$5,
|
|
4405
|
+
messages: messages$5
|
|
4406
4406
|
};
|
|
4407
4407
|
|
|
4408
|
-
var labels$
|
|
4408
|
+
var labels$4 = {
|
|
4409
4409
|
menu: "Menu Pelcro",
|
|
4410
4410
|
name: "Nom",
|
|
4411
4411
|
email: "Courriel",
|
|
@@ -4472,7 +4472,7 @@ var labels$2 = {
|
|
|
4472
4472
|
goBack: "Retourner"
|
|
4473
4473
|
}
|
|
4474
4474
|
};
|
|
4475
|
-
var messages$
|
|
4475
|
+
var messages$4 = {
|
|
4476
4476
|
noCard: "Vous n’avez pas une carte",
|
|
4477
4477
|
subCancellation: {
|
|
4478
4478
|
isSureToCancel: "Êtes-vous certain de vouloir annuler votre abonnement?",
|
|
@@ -4482,16 +4482,16 @@ var messages$2 = {
|
|
|
4482
4482
|
}
|
|
4483
4483
|
};
|
|
4484
4484
|
var dashboard_fr = {
|
|
4485
|
-
labels: labels$
|
|
4486
|
-
messages: messages$
|
|
4485
|
+
labels: labels$4,
|
|
4486
|
+
messages: messages$4
|
|
4487
4487
|
};
|
|
4488
4488
|
|
|
4489
|
-
var messages$
|
|
4489
|
+
var messages$3 = {
|
|
4490
4490
|
alreadyHaveAccount: "Already have an account?",
|
|
4491
4491
|
loginHere: "Login here",
|
|
4492
4492
|
checkbox: "Check this box to gift this subscription"
|
|
4493
4493
|
};
|
|
4494
|
-
var labels$
|
|
4494
|
+
var labels$3 = {
|
|
4495
4495
|
plan: {
|
|
4496
4496
|
title: "Subscribe to a plan",
|
|
4497
4497
|
subtitle: "Select one of the plans below and click on next."
|
|
@@ -4514,17 +4514,17 @@ var buttons$1 = {
|
|
|
4514
4514
|
back: "Back"
|
|
4515
4515
|
};
|
|
4516
4516
|
var select_en = {
|
|
4517
|
-
messages: messages$
|
|
4518
|
-
labels: labels$
|
|
4517
|
+
messages: messages$3,
|
|
4518
|
+
labels: labels$3,
|
|
4519
4519
|
buttons: buttons$1
|
|
4520
4520
|
};
|
|
4521
4521
|
|
|
4522
|
-
var messages = {
|
|
4522
|
+
var messages$2 = {
|
|
4523
4523
|
alreadyHaveAccount: "Vous avez déjà un compte ?",
|
|
4524
4524
|
loginHere: "Connectez-vous ici",
|
|
4525
4525
|
checkbox: "Cochez cette case pour offrir cet abonnement"
|
|
4526
4526
|
};
|
|
4527
|
-
var labels = {
|
|
4527
|
+
var labels$2 = {
|
|
4528
4528
|
plan: {
|
|
4529
4529
|
title: "Abonnez-vous à un plan",
|
|
4530
4530
|
subtitle: "Sélectionnez l’un des plans ci-dessous et cliquez sur suivant."
|
|
@@ -4547,8 +4547,8 @@ var buttons = {
|
|
|
4547
4547
|
back: "Retour"
|
|
4548
4548
|
};
|
|
4549
4549
|
var select_fr = {
|
|
4550
|
-
messages: messages,
|
|
4551
|
-
labels: labels,
|
|
4550
|
+
messages: messages$2,
|
|
4551
|
+
labels: labels$2,
|
|
4552
4552
|
buttons: buttons
|
|
4553
4553
|
};
|
|
4554
4554
|
|
|
@@ -4572,6 +4572,34 @@ var notification_fr = {
|
|
|
4572
4572
|
confirm: confirm
|
|
4573
4573
|
};
|
|
4574
4574
|
|
|
4575
|
+
var labels$1 = {
|
|
4576
|
+
title: "Verify your email",
|
|
4577
|
+
instructions: "You're on your way!\nLet's confirm your email address.\nClick on the verification link we've sent to your email:",
|
|
4578
|
+
resend: "Resend email"
|
|
4579
|
+
};
|
|
4580
|
+
var messages$1 = {
|
|
4581
|
+
resent: "Resent successfully",
|
|
4582
|
+
success: "Email verified successfully!"
|
|
4583
|
+
};
|
|
4584
|
+
var verifyEmail_en = {
|
|
4585
|
+
labels: labels$1,
|
|
4586
|
+
messages: messages$1
|
|
4587
|
+
};
|
|
4588
|
+
|
|
4589
|
+
var labels = {
|
|
4590
|
+
title: "Vérifiez votre e-mail",
|
|
4591
|
+
instructions: "Vous êtes en route!\nConfirmons votre adresse e-mail.\nCliquez sur le lien de vérification que nous vous avons envoyé par e-mail:",
|
|
4592
|
+
resend: "Ré-envoyer l'email"
|
|
4593
|
+
};
|
|
4594
|
+
var messages = {
|
|
4595
|
+
resent: "Renvoyé avec succès",
|
|
4596
|
+
success: "Email vérifié avec succès!"
|
|
4597
|
+
};
|
|
4598
|
+
var verifyEmail_fr = {
|
|
4599
|
+
labels: labels,
|
|
4600
|
+
messages: messages
|
|
4601
|
+
};
|
|
4602
|
+
|
|
4575
4603
|
function create$1(createState) {
|
|
4576
4604
|
let state;
|
|
4577
4605
|
const listeners = new Set();
|
|
@@ -5921,12 +5949,18 @@ class PelcroActions {
|
|
|
5921
5949
|
view,
|
|
5922
5950
|
cartItems,
|
|
5923
5951
|
...otherStateFields
|
|
5924
|
-
} = initialState$
|
|
5952
|
+
} = initialState$h;
|
|
5925
5953
|
this.set(otherStateFields);
|
|
5926
5954
|
});
|
|
5927
5955
|
|
|
5928
5956
|
_defineProperty$3(this, "switchView", view => {
|
|
5929
5957
|
// view switching guards
|
|
5958
|
+
if (userMustVerifyEmail() && !["dashboard", "meter", "login", null].includes(view)) {
|
|
5959
|
+
return this.set({
|
|
5960
|
+
view: "email-verify"
|
|
5961
|
+
});
|
|
5962
|
+
}
|
|
5963
|
+
|
|
5930
5964
|
if (["login", "register"].includes(view) && this.get().isAuthenticated()) {
|
|
5931
5965
|
return this.set({
|
|
5932
5966
|
view: "dashboard"
|
|
@@ -6184,7 +6218,7 @@ class PelcroCallbacks {
|
|
|
6184
6218
|
}
|
|
6185
6219
|
});
|
|
6186
6220
|
|
|
6187
|
-
_defineProperty$3(this, "whenUserReady", callback => {
|
|
6221
|
+
_defineProperty$3(this, "whenUserReady", (callback, listenerOptions) => {
|
|
6188
6222
|
var _window$Pelcro$user$r;
|
|
6189
6223
|
|
|
6190
6224
|
if ((_window$Pelcro$user$r = window.Pelcro.user.read()) !== null && _window$Pelcro$user$r !== void 0 && _window$Pelcro$user$r.id) {
|
|
@@ -6192,7 +6226,7 @@ class PelcroCallbacks {
|
|
|
6192
6226
|
} else {
|
|
6193
6227
|
window.document.addEventListener("PelcroUserLoaded", e => {
|
|
6194
6228
|
callback(window.Pelcro.user.read());
|
|
6195
|
-
});
|
|
6229
|
+
}, listenerOptions);
|
|
6196
6230
|
}
|
|
6197
6231
|
});
|
|
6198
6232
|
|
|
@@ -6211,7 +6245,7 @@ class PelcroCallbacks {
|
|
|
6211
6245
|
|
|
6212
6246
|
}
|
|
6213
6247
|
|
|
6214
|
-
const initialState$
|
|
6248
|
+
const initialState$h = {
|
|
6215
6249
|
// View
|
|
6216
6250
|
view: null,
|
|
6217
6251
|
// Plans
|
|
@@ -6239,7 +6273,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6239
6273
|
return {
|
|
6240
6274
|
// Store setter
|
|
6241
6275
|
set,
|
|
6242
|
-
...initialState$
|
|
6276
|
+
...initialState$h,
|
|
6243
6277
|
// State actions
|
|
6244
6278
|
...actions,
|
|
6245
6279
|
// Callbacks
|
|
@@ -6390,7 +6424,7 @@ const calcAndFormatItemsTotal = (items, currency) => {
|
|
|
6390
6424
|
*/
|
|
6391
6425
|
|
|
6392
6426
|
const isValidViewFromURL = viewID => {
|
|
6393
|
-
if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
6427
|
+
if (["login", "register", "plan-select", "gift-redeem", "password-forgot", "password-reset", "password-change", "payment-method-update", "user-edit", "newsletter", "address-create", "order-create", "cart", "email-verify"].includes(viewID) || hasValidNewsletterUpdateUrl()) {
|
|
6394
6428
|
return true;
|
|
6395
6429
|
}
|
|
6396
6430
|
|
|
@@ -6587,6 +6621,13 @@ function getDateWithoutTime(dateObject) {
|
|
|
6587
6621
|
date.setHours(0, 0, 0, 0);
|
|
6588
6622
|
return date;
|
|
6589
6623
|
}
|
|
6624
|
+
function userMustVerifyEmail() {
|
|
6625
|
+
var _window$Pelcro$site$r3, _window$Pelcro$site$r4, _window$Pelcro$user$r9, _window$Pelcro$user$r10;
|
|
6626
|
+
|
|
6627
|
+
const isEmailVerificationEnabled = (_window$Pelcro$site$r3 = (_window$Pelcro$site$r4 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r4 === void 0 ? void 0 : _window$Pelcro$site$r4.email_verify_enabled) !== null && _window$Pelcro$site$r3 !== void 0 ? _window$Pelcro$site$r3 : false;
|
|
6628
|
+
const isUserEmailVerified = (_window$Pelcro$user$r9 = (_window$Pelcro$user$r10 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r10 === void 0 ? void 0 : _window$Pelcro$user$r10.email_confirm) !== null && _window$Pelcro$user$r9 !== void 0 ? _window$Pelcro$user$r9 : false;
|
|
6629
|
+
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6630
|
+
}
|
|
6590
6631
|
|
|
6591
6632
|
const resources = {
|
|
6592
6633
|
en: {
|
|
@@ -6604,6 +6645,7 @@ const resources = {
|
|
|
6604
6645
|
passwordReset: passwordReset_en,
|
|
6605
6646
|
passwordForgot: passwordForgot_en,
|
|
6606
6647
|
passwordChange: passwordChange_en,
|
|
6648
|
+
verifyEmail: verifyEmail_en,
|
|
6607
6649
|
cart: cart_en,
|
|
6608
6650
|
shop: shop_en,
|
|
6609
6651
|
payment: payment_en,
|
|
@@ -6626,6 +6668,7 @@ const resources = {
|
|
|
6626
6668
|
passwordReset: passwordReset_fr,
|
|
6627
6669
|
passwordForgot: passwordForgot_fr,
|
|
6628
6670
|
passwordChange: passwordChange_fr,
|
|
6671
|
+
verifyEmail: verifyEmail_fr,
|
|
6629
6672
|
cart: cart_fr,
|
|
6630
6673
|
shop: shop_fr,
|
|
6631
6674
|
payment: payment_fr,
|
|
@@ -6788,11 +6831,18 @@ class SaveToMetadataButtonClass {
|
|
|
6788
6831
|
|
|
6789
6832
|
const button = event.currentTarget;
|
|
6790
6833
|
const user = window.Pelcro.user.read();
|
|
6834
|
+
const {
|
|
6835
|
+
switchView
|
|
6836
|
+
} = usePelcro.getStore();
|
|
6791
6837
|
const {
|
|
6792
6838
|
key,
|
|
6793
6839
|
...buttonMetadata
|
|
6794
6840
|
} = button.dataset;
|
|
6795
6841
|
|
|
6842
|
+
if (userMustVerifyEmail()) {
|
|
6843
|
+
return switchView("email-verify");
|
|
6844
|
+
}
|
|
6845
|
+
|
|
6796
6846
|
if (_classPrivateFieldGet(this, _isAlreadySaved).call(this, button)) {
|
|
6797
6847
|
_classPrivateFieldGet(this, _removeMetaData).call(this, event);
|
|
6798
6848
|
|
|
@@ -6915,8 +6965,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
6915
6965
|
|
|
6916
6966
|
let e={data:""},t=t=>"undefined"!=typeof window?((t?t.querySelector("#_goober"):window._goober)||Object.assign((t||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:t||e,l=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(})/g,a=/\/\*[^]*?\*\/|\s\s+|\n/g,n=(e,t)=>{let r,l="",a="",o="";for(let c in e){let s=e[c];"object"==typeof s?(r=t?t.replace(/([^,])+/g,e=>c.replace(/([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):c,a+="@"==c[0]?"f"==c[1]?n(s,c):c+"{"+n(s,"k"==c[1]?"":t)+"}":n(s,r)):"@"==c[0]&&"i"==c[1]?l=c+" "+s+";":(c=c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=n.p?n.p(c,s):c+":"+s+";");}return o[0]?(r=t?t+"{"+o+"}":o,l+r+a):l+a},o={},c=e=>{let t="";for(let r in e)t+=r+("object"==typeof e[r]?c(e[r]):e[r]);return t},s=(e,t,r,s,i)=>{let p="object"==typeof e?c(e):e,u=o[p]||(o[p]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return "go"+r})(p));if(!o[u]){let t="object"==typeof e?e:(e=>{let t,r=[{}];for(;t=l.exec(e.replace(a,""));)t[4]&&r.shift(),t[3]?r.unshift(r[0][t[3]]=r[0][t[3]]||{}):t[4]||(r[0][t[1]]=t[2]);return r[0]})(e);o[u]=n(i?{["@keyframes "+u]:t}:t,r?"":"."+u);}return ((e,t,r)=>{-1==t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e);})(o[u],t,s),u},i=(e,t,r)=>e.reduce((e,l,a)=>{let o=t[a];if(o&&o.call){let e=o(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;o=t?"."+t:e&&"object"==typeof e?e.props?"":n(e,""):e;}return e+l+(null==o?"":o)},"");function p(e){let r=this||{},l=e.call?e(r.p):e;return s(l.unshift?l.raw?i(l,[].slice.call(arguments,1),r.p):l.reduce((e,t)=>t?Object.assign(e,t.call?t(r.p):t):e,{}):l,t(r.target),r.g,r.o,r.k)}let u,f,d;p.bind({g:1});let b=p.bind({k:1});function h(e,t,r,l){n.p=t,u=e,f=r,d=l;}function y(e,t){let r=this||{};return function(){let l=arguments;function a(n,o){let c=Object.assign({},n),s=c.className||a.className;r.p=Object.assign({theme:f&&f()},c),r.o=/ *go\d+/.test(s),c.className=p.apply(r,l)+(s?" "+s:""),t&&(c.ref=o);let i=c.as||e;return d&&i[0]&&d(c),u(i,c)}return t?t(a):a}}
|
|
6917
6967
|
|
|
6918
|
-
function _extends$
|
|
6919
|
-
_extends$
|
|
6968
|
+
function _extends$y() {
|
|
6969
|
+
_extends$y = Object.assign || function (target) {
|
|
6920
6970
|
for (var i = 1; i < arguments.length; i++) {
|
|
6921
6971
|
var source = arguments[i];
|
|
6922
6972
|
|
|
@@ -6930,7 +6980,7 @@ function _extends$x() {
|
|
|
6930
6980
|
return target;
|
|
6931
6981
|
};
|
|
6932
6982
|
|
|
6933
|
-
return _extends$
|
|
6983
|
+
return _extends$y.apply(this, arguments);
|
|
6934
6984
|
}
|
|
6935
6985
|
|
|
6936
6986
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7020,7 +7070,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7020
7070
|
var reducer = function reducer(state, action) {
|
|
7021
7071
|
switch (action.type) {
|
|
7022
7072
|
case ActionType.ADD_TOAST:
|
|
7023
|
-
return _extends$
|
|
7073
|
+
return _extends$y({}, state, {
|
|
7024
7074
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7025
7075
|
});
|
|
7026
7076
|
|
|
@@ -7030,9 +7080,9 @@ var reducer = function reducer(state, action) {
|
|
|
7030
7080
|
clearFromRemoveQueue(action.toast.id);
|
|
7031
7081
|
}
|
|
7032
7082
|
|
|
7033
|
-
return _extends$
|
|
7083
|
+
return _extends$y({}, state, {
|
|
7034
7084
|
toasts: state.toasts.map(function (t) {
|
|
7035
|
-
return t.id === action.toast.id ? _extends$
|
|
7085
|
+
return t.id === action.toast.id ? _extends$y({}, t, action.toast) : t;
|
|
7036
7086
|
})
|
|
7037
7087
|
});
|
|
7038
7088
|
|
|
@@ -7059,9 +7109,9 @@ var reducer = function reducer(state, action) {
|
|
|
7059
7109
|
});
|
|
7060
7110
|
}
|
|
7061
7111
|
|
|
7062
|
-
return _extends$
|
|
7112
|
+
return _extends$y({}, state, {
|
|
7063
7113
|
toasts: state.toasts.map(function (t) {
|
|
7064
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7114
|
+
return t.id === toastId || toastId === undefined ? _extends$y({}, t, {
|
|
7065
7115
|
visible: false
|
|
7066
7116
|
}) : t;
|
|
7067
7117
|
})
|
|
@@ -7069,28 +7119,28 @@ var reducer = function reducer(state, action) {
|
|
|
7069
7119
|
|
|
7070
7120
|
case ActionType.REMOVE_TOAST:
|
|
7071
7121
|
if (action.toastId === undefined) {
|
|
7072
|
-
return _extends$
|
|
7122
|
+
return _extends$y({}, state, {
|
|
7073
7123
|
toasts: []
|
|
7074
7124
|
});
|
|
7075
7125
|
}
|
|
7076
7126
|
|
|
7077
|
-
return _extends$
|
|
7127
|
+
return _extends$y({}, state, {
|
|
7078
7128
|
toasts: state.toasts.filter(function (t) {
|
|
7079
7129
|
return t.id !== action.toastId;
|
|
7080
7130
|
})
|
|
7081
7131
|
});
|
|
7082
7132
|
|
|
7083
7133
|
case ActionType.START_PAUSE:
|
|
7084
|
-
return _extends$
|
|
7134
|
+
return _extends$y({}, state, {
|
|
7085
7135
|
pausedAt: action.time
|
|
7086
7136
|
});
|
|
7087
7137
|
|
|
7088
7138
|
case ActionType.END_PAUSE:
|
|
7089
7139
|
var diff = action.time - (state.pausedAt || 0);
|
|
7090
|
-
return _extends$
|
|
7140
|
+
return _extends$y({}, state, {
|
|
7091
7141
|
pausedAt: undefined,
|
|
7092
7142
|
toasts: state.toasts.map(function (t) {
|
|
7093
|
-
return _extends$
|
|
7143
|
+
return _extends$y({}, t, {
|
|
7094
7144
|
pauseDuration: t.pauseDuration + diff
|
|
7095
7145
|
});
|
|
7096
7146
|
})
|
|
@@ -7137,12 +7187,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7137
7187
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7138
7188
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7139
7189
|
|
|
7140
|
-
return _extends$
|
|
7190
|
+
return _extends$y({}, toastOptions, toastOptions[t.type], t, {
|
|
7141
7191
|
duration: t.duration || ((_toastOptions$t$type = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type.duration) || ((_toastOptions = toastOptions) == null ? void 0 : _toastOptions.duration) || defaultTimeouts[t.type],
|
|
7142
|
-
style: _extends$
|
|
7192
|
+
style: _extends$y({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7143
7193
|
});
|
|
7144
7194
|
});
|
|
7145
|
-
return _extends$
|
|
7195
|
+
return _extends$y({}, state, {
|
|
7146
7196
|
toasts: mergedToasts
|
|
7147
7197
|
});
|
|
7148
7198
|
};
|
|
@@ -7152,7 +7202,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7152
7202
|
type = 'blank';
|
|
7153
7203
|
}
|
|
7154
7204
|
|
|
7155
|
-
return _extends$
|
|
7205
|
+
return _extends$y({
|
|
7156
7206
|
createdAt: Date.now(),
|
|
7157
7207
|
visible: true,
|
|
7158
7208
|
type: type,
|
|
@@ -7202,14 +7252,14 @@ toast.remove = function (toastId) {
|
|
|
7202
7252
|
};
|
|
7203
7253
|
|
|
7204
7254
|
toast.promise = function (promise, msgs, opts) {
|
|
7205
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7255
|
+
var id = toast.loading(msgs.loading, _extends$y({}, opts, opts == null ? void 0 : opts.loading));
|
|
7206
7256
|
promise.then(function (p) {
|
|
7207
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7257
|
+
toast.success(resolveValue(msgs.success, p), _extends$y({
|
|
7208
7258
|
id: id
|
|
7209
7259
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7210
7260
|
return p;
|
|
7211
7261
|
})["catch"](function (e) {
|
|
7212
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7262
|
+
toast.error(resolveValue(msgs.error, e), _extends$y({
|
|
7213
7263
|
id: id
|
|
7214
7264
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7215
7265
|
});
|
|
@@ -7548,7 +7598,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7548
7598
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7549
7599
|
return createElement(ToastBarBase, {
|
|
7550
7600
|
className: toast.className,
|
|
7551
|
-
style: _extends$
|
|
7601
|
+
style: _extends$y({}, animationStyle, style, toast.style)
|
|
7552
7602
|
}, typeof children === 'function' ? children({
|
|
7553
7603
|
icon: icon,
|
|
7554
7604
|
message: message
|
|
@@ -7578,7 +7628,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7578
7628
|
} : position.includes('right') ? {
|
|
7579
7629
|
justifyContent: 'flex-end'
|
|
7580
7630
|
} : {};
|
|
7581
|
-
return _extends$
|
|
7631
|
+
return _extends$y({
|
|
7582
7632
|
left: 0,
|
|
7583
7633
|
right: 0,
|
|
7584
7634
|
display: 'flex',
|
|
@@ -7605,7 +7655,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7605
7655
|
handlers = _useToaster.handlers;
|
|
7606
7656
|
|
|
7607
7657
|
return createElement("div", {
|
|
7608
|
-
style: _extends$
|
|
7658
|
+
style: _extends$y({
|
|
7609
7659
|
position: 'fixed',
|
|
7610
7660
|
zIndex: 9999,
|
|
7611
7661
|
top: DEFAULT_OFFSET,
|
|
@@ -7640,87 +7690,87 @@ var Toaster = function Toaster(_ref) {
|
|
|
7640
7690
|
}));
|
|
7641
7691
|
};
|
|
7642
7692
|
|
|
7643
|
-
var _path$
|
|
7693
|
+
var _path$v;
|
|
7644
7694
|
|
|
7645
|
-
function _extends$
|
|
7695
|
+
function _extends$x() { _extends$x = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$x.apply(this, arguments); }
|
|
7646
7696
|
|
|
7647
7697
|
function SvgCheckSolid(props) {
|
|
7648
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7698
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
7649
7699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7650
7700
|
className: "h-5 w-5",
|
|
7651
7701
|
viewBox: "0 0 20 20",
|
|
7652
7702
|
fill: "currentColor"
|
|
7653
|
-
}, props), _path$
|
|
7703
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
7654
7704
|
fillRule: "evenodd",
|
|
7655
7705
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
7656
7706
|
clipRule: "evenodd"
|
|
7657
7707
|
})));
|
|
7658
7708
|
}
|
|
7659
7709
|
|
|
7660
|
-
var _path$
|
|
7710
|
+
var _path$u;
|
|
7661
7711
|
|
|
7662
|
-
function _extends$
|
|
7712
|
+
function _extends$w() { _extends$w = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$w.apply(this, arguments); }
|
|
7663
7713
|
|
|
7664
7714
|
function SvgXIcon(props) {
|
|
7665
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7715
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7666
7716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7667
7717
|
viewBox: "0 0 20 20",
|
|
7668
7718
|
fill: "currentColor"
|
|
7669
|
-
}, props), _path$
|
|
7719
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7670
7720
|
fill: "evenodd",
|
|
7671
7721
|
d: "M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",
|
|
7672
7722
|
clipRule: "evenodd"
|
|
7673
7723
|
})));
|
|
7674
7724
|
}
|
|
7675
7725
|
|
|
7676
|
-
var _path$
|
|
7726
|
+
var _path$t;
|
|
7677
7727
|
|
|
7678
|
-
function _extends$
|
|
7728
|
+
function _extends$v() { _extends$v = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$v.apply(this, arguments); }
|
|
7679
7729
|
|
|
7680
7730
|
function SvgXIconSolid(props) {
|
|
7681
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7731
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7682
7732
|
className: "plc-w-4 plc-h-4",
|
|
7683
7733
|
fill: "currentColor",
|
|
7684
7734
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7685
7735
|
viewBox: "0 0 100 100"
|
|
7686
|
-
}, props), _path$
|
|
7736
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7687
7737
|
d: "M94.842 48.408c0 24.852-20.148 44.999-45.002 44.999-24.851 0-44.997-20.146-44.997-44.999 0-24.854 20.146-45 44.997-45 24.853 0 45.002 20.146 45.002 45zM71.073 64.841L54.73 48.497l16.344-16.344-4.979-4.979-16.343 16.345-16.343-16.344-4.799 4.799 16.344 16.344L28.61 64.661l4.979 4.978 16.344-16.344 16.343 16.344 4.797-4.798z"
|
|
7688
7738
|
})));
|
|
7689
7739
|
}
|
|
7690
7740
|
|
|
7691
|
-
var _path$
|
|
7741
|
+
var _path$s;
|
|
7692
7742
|
|
|
7693
|
-
function _extends$
|
|
7743
|
+
function _extends$u() { _extends$u = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$u.apply(this, arguments); }
|
|
7694
7744
|
|
|
7695
7745
|
function SvgExclamation(props) {
|
|
7696
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7746
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
7697
7747
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7698
7748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7699
7749
|
viewBox: "0 0 20 20",
|
|
7700
7750
|
fill: "currentColor"
|
|
7701
|
-
}, props), _path$
|
|
7751
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
7702
7752
|
fillRule: "evenodd",
|
|
7703
7753
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7 4a1 1 0 11-2 0 1 1 0 012 0zm-1-9a1 1 0 00-1 1v4a1 1 0 102 0V6a1 1 0 00-1-1z",
|
|
7704
7754
|
clipRule: "evenodd"
|
|
7705
7755
|
})));
|
|
7706
7756
|
}
|
|
7707
7757
|
|
|
7708
|
-
var _path$
|
|
7758
|
+
var _path$r, _path2$4;
|
|
7709
7759
|
|
|
7710
|
-
function _extends$
|
|
7760
|
+
function _extends$t() { _extends$t = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$t.apply(this, arguments); }
|
|
7711
7761
|
|
|
7712
7762
|
function SvgSpinner(props) {
|
|
7713
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7763
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
7714
7764
|
className: "plc-animate-spin",
|
|
7715
7765
|
viewBox: "0 0 24 24",
|
|
7716
7766
|
fill: "currentColor",
|
|
7717
7767
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7718
|
-
}, props), _path$
|
|
7768
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
7719
7769
|
opacity: 0.2,
|
|
7720
7770
|
fill: "evenodd",
|
|
7721
7771
|
clipRule: "evenodd",
|
|
7722
7772
|
d: "M12 19a7 7 0 100-14 7 7 0 000 14zm0 3c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10z"
|
|
7723
|
-
})), _path2$
|
|
7773
|
+
})), _path2$4 || (_path2$4 = /*#__PURE__*/React.createElement("path", {
|
|
7724
7774
|
d: "M2 12C2 6.477 6.477 2 12 2v3a7 7 0 00-7 7H2z"
|
|
7725
7775
|
})));
|
|
7726
7776
|
}
|
|
@@ -8446,50 +8496,110 @@ var pure = pure$1;
|
|
|
8446
8496
|
var pure_1 = pure.loadStripe;
|
|
8447
8497
|
|
|
8448
8498
|
/**
|
|
8449
|
-
*
|
|
8450
|
-
* @
|
|
8451
|
-
* @
|
|
8452
|
-
* @property {boolean} enableTheme
|
|
8453
|
-
* @property {boolean} enablePaywalls
|
|
8454
|
-
* @property {boolean} enableGoogleAnalytics
|
|
8455
|
-
*/
|
|
8456
|
-
|
|
8457
|
-
/**
|
|
8458
|
-
* Initializes pelcro features based on the options flag object
|
|
8459
|
-
* @param {OptionsType} options
|
|
8460
|
-
* @returns
|
|
8499
|
+
* Extracts error message from the response error object
|
|
8500
|
+
* @param {Object} error Error object
|
|
8501
|
+
* @return {string}
|
|
8461
8502
|
*/
|
|
8503
|
+
const getErrorMessages = error => {
|
|
8504
|
+
var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
|
|
8462
8505
|
|
|
8463
|
-
|
|
8464
|
-
|
|
8465
|
-
return;
|
|
8506
|
+
if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
|
|
8507
|
+
return error.error.message;
|
|
8466
8508
|
}
|
|
8467
8509
|
|
|
8468
|
-
|
|
8469
|
-
|
|
8470
|
-
loadAuth0SDK: loadAuth0SDK,
|
|
8471
|
-
enableURLTriggers: initViewFromURL,
|
|
8472
|
-
enableTheme: applyPelcroTheme,
|
|
8473
|
-
enablePaywalls: initPaywalls,
|
|
8474
|
-
loadSecuritySDK: initSecuritySdk,
|
|
8475
|
-
enableGoogleAnalytics: initGATracking
|
|
8476
|
-
}; // Only execute enabled options
|
|
8510
|
+
if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
|
|
8511
|
+
var _error$response2, _error$response2$data;
|
|
8477
8512
|
|
|
8478
|
-
|
|
8479
|
-
|
|
8513
|
+
return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
|
|
8514
|
+
}
|
|
8480
8515
|
|
|
8481
|
-
|
|
8482
|
-
|
|
8483
|
-
};
|
|
8484
|
-
const initPaywalls = () => {
|
|
8485
|
-
var _window$Pelcro$site$r;
|
|
8516
|
+
if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
|
|
8517
|
+
var _error$response4, _error$response4$data, _error$response4$data2;
|
|
8486
8518
|
|
|
8487
|
-
|
|
8488
|
-
|
|
8519
|
+
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
8520
|
+
}
|
|
8489
8521
|
|
|
8490
|
-
|
|
8491
|
-
|
|
8492
|
-
|
|
8522
|
+
const errorMessages = []; // enumerable error (ex: validation errors)
|
|
8523
|
+
|
|
8524
|
+
Object.values(error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : _error$response5$data.errors).forEach(([errorMessage]) => {
|
|
8525
|
+
errorMessages.push(errorMessage);
|
|
8526
|
+
}); // convert to multiline string
|
|
8527
|
+
|
|
8528
|
+
return errorMessages.join("\n");
|
|
8529
|
+
};
|
|
8530
|
+
/**
|
|
8531
|
+
* Executes function after a wait time of inactivity
|
|
8532
|
+
* @param {function} func
|
|
8533
|
+
* @param {number} waitTime
|
|
8534
|
+
*/
|
|
8535
|
+
|
|
8536
|
+
const debounce = (func, waitTime) => {
|
|
8537
|
+
let timeout;
|
|
8538
|
+
return function executedFunction(...args) {
|
|
8539
|
+
// The callback function to be executed after
|
|
8540
|
+
// the debounce time has elapsed
|
|
8541
|
+
const later = () => {
|
|
8542
|
+
// null timeout to indicate the debounce ended
|
|
8543
|
+
timeout = null;
|
|
8544
|
+
func(...args);
|
|
8545
|
+
}; // This will reset the waiting every function execution.
|
|
8546
|
+
// This is the step that prevents the function from
|
|
8547
|
+
// being executed because it will never reach the
|
|
8548
|
+
// inside of the previous setTimeout
|
|
8549
|
+
|
|
8550
|
+
|
|
8551
|
+
clearTimeout(timeout); // Restart the debounce waiting period.
|
|
8552
|
+
// setTimeout returns a truthy value (it differs in web vs Node)
|
|
8553
|
+
|
|
8554
|
+
timeout = setTimeout(later, waitTime);
|
|
8555
|
+
};
|
|
8556
|
+
};
|
|
8557
|
+
|
|
8558
|
+
/**
|
|
8559
|
+
* @typedef {Object} OptionsType
|
|
8560
|
+
* @property {boolean} loadPaymentSDKs
|
|
8561
|
+
* @property {boolean} enableURLTriggers
|
|
8562
|
+
* @property {boolean} enableTheme
|
|
8563
|
+
* @property {boolean} enablePaywalls
|
|
8564
|
+
* @property {boolean} enableGoogleAnalytics
|
|
8565
|
+
*/
|
|
8566
|
+
|
|
8567
|
+
/**
|
|
8568
|
+
* Initializes pelcro features based on the options flag object
|
|
8569
|
+
* @param {OptionsType} options
|
|
8570
|
+
* @returns
|
|
8571
|
+
*/
|
|
8572
|
+
|
|
8573
|
+
const optionsController = options => {
|
|
8574
|
+
if (!options) {
|
|
8575
|
+
return;
|
|
8576
|
+
}
|
|
8577
|
+
|
|
8578
|
+
const optionsMethodsDict = {
|
|
8579
|
+
loadPaymentSDKs: loadPaymentSDKs,
|
|
8580
|
+
loadAuth0SDK: loadAuth0SDK,
|
|
8581
|
+
enableURLTriggers: initViewFromURL,
|
|
8582
|
+
enableTheme: applyPelcroTheme,
|
|
8583
|
+
enablePaywalls: initPaywalls,
|
|
8584
|
+
loadSecuritySDK: initSecuritySdk,
|
|
8585
|
+
enableGoogleAnalytics: initGATracking
|
|
8586
|
+
}; // Only execute enabled options
|
|
8587
|
+
|
|
8588
|
+
Object.entries(options).filter(([_, value]) => value === true).forEach(([key]) => {
|
|
8589
|
+
var _optionsMethodsDict$k;
|
|
8590
|
+
|
|
8591
|
+
return (_optionsMethodsDict$k = optionsMethodsDict[key]) === null || _optionsMethodsDict$k === void 0 ? void 0 : _optionsMethodsDict$k.call(optionsMethodsDict);
|
|
8592
|
+
});
|
|
8593
|
+
};
|
|
8594
|
+
const initPaywalls = () => {
|
|
8595
|
+
var _window$Pelcro$site$r;
|
|
8596
|
+
|
|
8597
|
+
const paywallMethods = window.Pelcro.paywall;
|
|
8598
|
+
const viewFromURL = getStableViewID(window.Pelcro.helpers.getURLParameter("view"));
|
|
8599
|
+
|
|
8600
|
+
if (((_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.settings) === "subscription") {
|
|
8601
|
+
// blur entitlements based content
|
|
8602
|
+
const didBlurContent = init(); // Skip paywall if article is not restricted
|
|
8493
8603
|
|
|
8494
8604
|
if (isValidViewFromURL(viewFromURL) || !paywallMethods.isArticleRestricted()) {
|
|
8495
8605
|
return;
|
|
@@ -8685,6 +8795,10 @@ const initViewFromURL = () => {
|
|
|
8685
8795
|
return initCartFromUrl();
|
|
8686
8796
|
}
|
|
8687
8797
|
|
|
8798
|
+
if (view === "email-verify") {
|
|
8799
|
+
return verifyEmailTokenFromUrl();
|
|
8800
|
+
}
|
|
8801
|
+
|
|
8688
8802
|
switchView(view);
|
|
8689
8803
|
});
|
|
8690
8804
|
}
|
|
@@ -8834,6 +8948,33 @@ const initCartFromUrl = () => {
|
|
|
8834
8948
|
});
|
|
8835
8949
|
};
|
|
8836
8950
|
|
|
8951
|
+
const verifyEmailTokenFromUrl = () => {
|
|
8952
|
+
var _window$Pelcro$site$r5, _window$Pelcro$site$r6;
|
|
8953
|
+
|
|
8954
|
+
const {
|
|
8955
|
+
whenSiteReady
|
|
8956
|
+
} = usePelcro.getStore();
|
|
8957
|
+
const translations = i18next.t("verifyEmail:messages", {
|
|
8958
|
+
returnObjects: true
|
|
8959
|
+
});
|
|
8960
|
+
const emailToken = window.Pelcro.helpers.getURLParameter("token");
|
|
8961
|
+
const isEmailVerificationEnabled = (_window$Pelcro$site$r5 = (_window$Pelcro$site$r6 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r6 === void 0 ? void 0 : _window$Pelcro$site$r6.email_verify_enabled) !== null && _window$Pelcro$site$r5 !== void 0 ? _window$Pelcro$site$r5 : false;
|
|
8962
|
+
if (!emailToken || !isEmailVerificationEnabled) return;
|
|
8963
|
+
whenSiteReady(() => {
|
|
8964
|
+
window.Pelcro.user.verifyEmailToken({
|
|
8965
|
+
token: emailToken
|
|
8966
|
+
}, (err, res) => {
|
|
8967
|
+
if (err) {
|
|
8968
|
+
return notify.error(getErrorMessages(err));
|
|
8969
|
+
}
|
|
8970
|
+
|
|
8971
|
+
return notify.success(translations.success);
|
|
8972
|
+
});
|
|
8973
|
+
}, {
|
|
8974
|
+
once: true
|
|
8975
|
+
});
|
|
8976
|
+
};
|
|
8977
|
+
|
|
8837
8978
|
const defaultOptions = {
|
|
8838
8979
|
loadPaymentSDKs: true,
|
|
8839
8980
|
loadAuth0SDK: true,
|
|
@@ -9173,67 +9314,7 @@ const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
|
9173
9314
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9174
9315
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9175
9316
|
|
|
9176
|
-
|
|
9177
|
-
* Extracts error message from the response error object
|
|
9178
|
-
* @param {Object} error Error object
|
|
9179
|
-
* @return {string}
|
|
9180
|
-
*/
|
|
9181
|
-
const getErrorMessages = error => {
|
|
9182
|
-
var _error$error, _error$response, _error$response$data, _error$response3, _error$response3$data, _error$response3$data2, _error$response5, _error$response5$data;
|
|
9183
|
-
|
|
9184
|
-
if (error !== null && error !== void 0 && (_error$error = error.error) !== null && _error$error !== void 0 && _error$error.message) {
|
|
9185
|
-
return error.error.message;
|
|
9186
|
-
}
|
|
9187
|
-
|
|
9188
|
-
if (error !== null && error !== void 0 && (_error$response = error.response) !== null && _error$response !== void 0 && (_error$response$data = _error$response.data) !== null && _error$response$data !== void 0 && _error$response$data.message) {
|
|
9189
|
-
var _error$response2, _error$response2$data;
|
|
9190
|
-
|
|
9191
|
-
return error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : _error$response2$data.message;
|
|
9192
|
-
}
|
|
9193
|
-
|
|
9194
|
-
if (error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.error) !== null && _error$response3$data2 !== void 0 && _error$response3$data2.message) {
|
|
9195
|
-
var _error$response4, _error$response4$data, _error$response4$data2;
|
|
9196
|
-
|
|
9197
|
-
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
9198
|
-
}
|
|
9199
|
-
|
|
9200
|
-
const errorMessages = []; // enumerable error (ex: validation errors)
|
|
9201
|
-
|
|
9202
|
-
Object.values(error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : _error$response5$data.errors).forEach(([errorMessage]) => {
|
|
9203
|
-
errorMessages.push(errorMessage);
|
|
9204
|
-
}); // convert to multiline string
|
|
9205
|
-
|
|
9206
|
-
return errorMessages.join("\n");
|
|
9207
|
-
};
|
|
9208
|
-
/**
|
|
9209
|
-
* Executes function after a wait time of inactivity
|
|
9210
|
-
* @param {function} func
|
|
9211
|
-
* @param {number} waitTime
|
|
9212
|
-
*/
|
|
9213
|
-
|
|
9214
|
-
const debounce = (func, waitTime) => {
|
|
9215
|
-
let timeout;
|
|
9216
|
-
return function executedFunction(...args) {
|
|
9217
|
-
// The callback function to be executed after
|
|
9218
|
-
// the debounce time has elapsed
|
|
9219
|
-
const later = () => {
|
|
9220
|
-
// null timeout to indicate the debounce ended
|
|
9221
|
-
timeout = null;
|
|
9222
|
-
func(...args);
|
|
9223
|
-
}; // This will reset the waiting every function execution.
|
|
9224
|
-
// This is the step that prevents the function from
|
|
9225
|
-
// being executed because it will never reach the
|
|
9226
|
-
// inside of the previous setTimeout
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
clearTimeout(timeout); // Restart the debounce waiting period.
|
|
9230
|
-
// setTimeout returns a truthy value (it differs in web vs Node)
|
|
9231
|
-
|
|
9232
|
-
timeout = setTimeout(later, waitTime);
|
|
9233
|
-
};
|
|
9234
|
-
};
|
|
9235
|
-
|
|
9236
|
-
const initialState$f = {
|
|
9317
|
+
const initialState$g = {
|
|
9237
9318
|
email: "",
|
|
9238
9319
|
password: "",
|
|
9239
9320
|
emailError: null,
|
|
@@ -9244,10 +9325,10 @@ const initialState$f = {
|
|
|
9244
9325
|
content: ""
|
|
9245
9326
|
}
|
|
9246
9327
|
};
|
|
9247
|
-
const store$
|
|
9328
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
9248
9329
|
const {
|
|
9249
|
-
Provider: Provider$
|
|
9250
|
-
} = store$
|
|
9330
|
+
Provider: Provider$g
|
|
9331
|
+
} = store$g;
|
|
9251
9332
|
|
|
9252
9333
|
const LoginContainer = ({
|
|
9253
9334
|
style,
|
|
@@ -9354,7 +9435,7 @@ const LoginContainer = ({
|
|
|
9354
9435
|
});
|
|
9355
9436
|
|
|
9356
9437
|
case RESET_LOGIN_FORM:
|
|
9357
|
-
return initialState$
|
|
9438
|
+
return initialState$g;
|
|
9358
9439
|
|
|
9359
9440
|
case DISABLE_LOGIN_BUTTON:
|
|
9360
9441
|
return lib_7({ ...state,
|
|
@@ -9372,12 +9453,12 @@ const LoginContainer = ({
|
|
|
9372
9453
|
default:
|
|
9373
9454
|
return state;
|
|
9374
9455
|
}
|
|
9375
|
-
}, initialState$
|
|
9456
|
+
}, initialState$g);
|
|
9376
9457
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9377
9458
|
style: { ...style
|
|
9378
9459
|
},
|
|
9379
9460
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9380
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
9461
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
9381
9462
|
value: {
|
|
9382
9463
|
state,
|
|
9383
9464
|
dispatch
|
|
@@ -9385,12 +9466,12 @@ const LoginContainer = ({
|
|
|
9385
9466
|
}, children.length ? children.map((child, i) => {
|
|
9386
9467
|
if (child) {
|
|
9387
9468
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9388
|
-
store: store$
|
|
9469
|
+
store: store$g,
|
|
9389
9470
|
key: i
|
|
9390
9471
|
});
|
|
9391
9472
|
}
|
|
9392
9473
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9393
|
-
store: store$
|
|
9474
|
+
store: store$g
|
|
9394
9475
|
})));
|
|
9395
9476
|
};
|
|
9396
9477
|
|
|
@@ -9635,7 +9716,7 @@ const LoginButton = ({
|
|
|
9635
9716
|
buttonDisabled
|
|
9636
9717
|
},
|
|
9637
9718
|
dispatch
|
|
9638
|
-
} = useContext(store$
|
|
9719
|
+
} = useContext(store$g);
|
|
9639
9720
|
const {
|
|
9640
9721
|
t
|
|
9641
9722
|
} = useTranslation("login");
|
|
@@ -9656,23 +9737,23 @@ const LoginButton = ({
|
|
|
9656
9737
|
};
|
|
9657
9738
|
|
|
9658
9739
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
9659
|
-
store: store$
|
|
9740
|
+
store: store$g
|
|
9660
9741
|
}, props));
|
|
9661
9742
|
|
|
9662
9743
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
9663
|
-
store: store$
|
|
9744
|
+
store: store$g
|
|
9664
9745
|
}, props));
|
|
9665
9746
|
|
|
9666
|
-
var _path$
|
|
9747
|
+
var _path$q;
|
|
9667
9748
|
|
|
9668
|
-
function _extends$
|
|
9749
|
+
function _extends$s() { _extends$s = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$s.apply(this, arguments); }
|
|
9669
9750
|
|
|
9670
9751
|
function SvgCheck(props) {
|
|
9671
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9752
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
9672
9753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9673
9754
|
fill: "currentColor",
|
|
9674
9755
|
viewBox: "0 0 20 20"
|
|
9675
|
-
}, props), _path$
|
|
9756
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
9676
9757
|
fillRule: "evenodd",
|
|
9677
9758
|
d: "M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z",
|
|
9678
9759
|
clipRule: "evenodd"
|
|
@@ -9737,7 +9818,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
9737
9818
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
9738
9819
|
facebookLoginRenderProps.FacebookLogin;
|
|
9739
9820
|
|
|
9740
|
-
const initialState$
|
|
9821
|
+
const initialState$f = {
|
|
9741
9822
|
email: "",
|
|
9742
9823
|
password: "",
|
|
9743
9824
|
emailError: null,
|
|
@@ -9754,10 +9835,10 @@ const initialState$e = {
|
|
|
9754
9835
|
content: ""
|
|
9755
9836
|
}
|
|
9756
9837
|
};
|
|
9757
|
-
const store$
|
|
9838
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
9758
9839
|
const {
|
|
9759
|
-
Provider: Provider$
|
|
9760
|
-
} = store$
|
|
9840
|
+
Provider: Provider$f
|
|
9841
|
+
} = store$f;
|
|
9761
9842
|
|
|
9762
9843
|
const RegisterContainer = ({
|
|
9763
9844
|
style,
|
|
@@ -9940,7 +10021,7 @@ const RegisterContainer = ({
|
|
|
9940
10021
|
});
|
|
9941
10022
|
|
|
9942
10023
|
case RESET_LOGIN_FORM:
|
|
9943
|
-
return initialState$
|
|
10024
|
+
return initialState$f;
|
|
9944
10025
|
|
|
9945
10026
|
case DISABLE_REGISTRATION_BUTTON:
|
|
9946
10027
|
return lib_7({ ...state,
|
|
@@ -9958,12 +10039,12 @@ const RegisterContainer = ({
|
|
|
9958
10039
|
default:
|
|
9959
10040
|
return state;
|
|
9960
10041
|
}
|
|
9961
|
-
}, initialState$
|
|
10042
|
+
}, initialState$f);
|
|
9962
10043
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9963
10044
|
style: { ...style
|
|
9964
10045
|
},
|
|
9965
10046
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
9966
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10047
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
9967
10048
|
value: {
|
|
9968
10049
|
state,
|
|
9969
10050
|
dispatch
|
|
@@ -9971,12 +10052,12 @@ const RegisterContainer = ({
|
|
|
9971
10052
|
}, children.length ? children.map((child, i) => {
|
|
9972
10053
|
if (child) {
|
|
9973
10054
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9974
|
-
store: store$
|
|
10055
|
+
store: store$f,
|
|
9975
10056
|
key: i
|
|
9976
10057
|
});
|
|
9977
10058
|
}
|
|
9978
10059
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9979
|
-
store: store$
|
|
10060
|
+
store: store$f
|
|
9980
10061
|
})));
|
|
9981
10062
|
};
|
|
9982
10063
|
/**
|
|
@@ -9991,15 +10072,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
9991
10072
|
return hasSecuritySdkLoaded;
|
|
9992
10073
|
}
|
|
9993
10074
|
|
|
9994
|
-
var _path$
|
|
10075
|
+
var _path$p;
|
|
9995
10076
|
|
|
9996
|
-
function _extends$
|
|
10077
|
+
function _extends$r() { _extends$r = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$r.apply(this, arguments); }
|
|
9997
10078
|
|
|
9998
10079
|
function SvgFacebookLogo(props) {
|
|
9999
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10080
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
10000
10081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10001
10082
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10002
|
-
}, props), _path$
|
|
10083
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
10003
10084
|
d: "M158.232 219.912v-94.461h31.707l4.747-36.813h-36.454V65.134c0-10.658 2.96-17.922 18.245-17.922l19.494-.009V14.278c-3.373-.447-14.944-1.449-28.406-1.449-28.106 0-47.348 17.155-47.348 48.661v27.149H88.428v36.813h31.788v94.461l38.016-.001z",
|
|
10004
10085
|
fill: "#3c5a9a"
|
|
10005
10086
|
})));
|
|
@@ -10016,10 +10097,10 @@ const FacebookLoginButton = ({
|
|
|
10016
10097
|
const facebookLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.facebook_app_id;
|
|
10017
10098
|
const {
|
|
10018
10099
|
dispatch: loginDispatch
|
|
10019
|
-
} = useContext(store$
|
|
10100
|
+
} = useContext(store$g);
|
|
10020
10101
|
const {
|
|
10021
10102
|
dispatch: registerDispatch
|
|
10022
|
-
} = useContext(store$
|
|
10103
|
+
} = useContext(store$f);
|
|
10023
10104
|
|
|
10024
10105
|
const onSuccess = facebookUser => {
|
|
10025
10106
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10072,18 +10153,18 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10072
10153
|
unwrapExports(googleLogin);
|
|
10073
10154
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10074
10155
|
|
|
10075
|
-
var _path$
|
|
10156
|
+
var _path$o, _path2$3, _path3$1, _path4;
|
|
10076
10157
|
|
|
10077
|
-
function _extends$
|
|
10158
|
+
function _extends$q() { _extends$q = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$q.apply(this, arguments); }
|
|
10078
10159
|
|
|
10079
10160
|
function SvgGoogleLogo(props) {
|
|
10080
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10161
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
10081
10162
|
viewBox: "0 0 24 24",
|
|
10082
10163
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10083
|
-
}, props), _path$
|
|
10164
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
10084
10165
|
fill: "#4285F4",
|
|
10085
10166
|
d: "M23.745 12.27c0-.79-.07-1.54-.19-2.27h-11.3v4.51h6.47c-.29 1.48-1.14 2.73-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82z"
|
|
10086
|
-
})), _path2$
|
|
10167
|
+
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
10087
10168
|
fill: "#34A853",
|
|
10088
10169
|
d: "M12.255 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96h-3.98v3.09C3.515 21.3 7.565 24 12.255 24z"
|
|
10089
10170
|
})), _path3$1 || (_path3$1 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10106,10 +10187,10 @@ const GoogleLoginButton = ({
|
|
|
10106
10187
|
const googleLoginEnabled = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.google_app_id;
|
|
10107
10188
|
const {
|
|
10108
10189
|
dispatch: loginDispatch
|
|
10109
|
-
} = useContext(store$
|
|
10190
|
+
} = useContext(store$g);
|
|
10110
10191
|
const {
|
|
10111
10192
|
dispatch: registerDispatch
|
|
10112
|
-
} = useContext(store$
|
|
10193
|
+
} = useContext(store$f);
|
|
10113
10194
|
|
|
10114
10195
|
const onSuccess = response => {
|
|
10115
10196
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10157,15 +10238,15 @@ const GoogleLoginButton = ({
|
|
|
10157
10238
|
}) : null;
|
|
10158
10239
|
};
|
|
10159
10240
|
|
|
10160
|
-
var _path$
|
|
10241
|
+
var _path$n;
|
|
10161
10242
|
|
|
10162
|
-
function _extends$
|
|
10243
|
+
function _extends$p() { _extends$p = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$p.apply(this, arguments); }
|
|
10163
10244
|
|
|
10164
10245
|
function SvgAuth0Logo(props) {
|
|
10165
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10246
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
10166
10247
|
viewBox: "0 0 256 285",
|
|
10167
10248
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10168
|
-
}, props), _path$
|
|
10249
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
10169
10250
|
d: "M220.412 0h-92.415l28.562 89.006h92.416l-74.77 53.077 28.57 89.511c48.128-35.06 63.854-88.12 46.208-142.588L220.413 0zM7.018 89.006h92.416L127.997 0H35.589L7.019 89.006c-17.655 54.468-1.92 107.529 46.207 142.588l28.563-89.51-74.77-53.078zm46.208 142.588l74.77 52.97 74.77-52.97-74.77-53.847-74.77 53.847z"
|
|
10170
10251
|
})));
|
|
10171
10252
|
}
|
|
@@ -10176,30 +10257,30 @@ const Auth0LoginButton = ({
|
|
|
10176
10257
|
labelClassName = "",
|
|
10177
10258
|
iconClassName = ""
|
|
10178
10259
|
}) => {
|
|
10179
|
-
|
|
10180
|
-
console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
|
|
10181
|
-
}
|
|
10182
|
-
|
|
10183
|
-
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url && window.auth0);
|
|
10260
|
+
const auth0Enabled = Boolean(window.Pelcro.site.read().auth0_client_id && window.Pelcro.site.read().auth0_base_url);
|
|
10184
10261
|
const auth0InstanceRef = React__default.useRef(null);
|
|
10185
10262
|
React__default.useEffect(() => {
|
|
10186
|
-
if (auth0Enabled) {
|
|
10263
|
+
if (auth0Enabled && window.auth0 && auth0InstanceRef.current === null) {
|
|
10187
10264
|
auth0InstanceRef.current = new window.auth0.WebAuth({
|
|
10188
10265
|
domain: window.Pelcro.site.read().auth0_base_url,
|
|
10189
10266
|
clientID: window.Pelcro.site.read().auth0_client_id
|
|
10190
10267
|
});
|
|
10191
10268
|
}
|
|
10192
|
-
}, []);
|
|
10269
|
+
}, [auth0Enabled, window.auth0]);
|
|
10193
10270
|
const {
|
|
10194
10271
|
dispatch: loginDispatch
|
|
10195
|
-
} = useContext(store$
|
|
10272
|
+
} = useContext(store$g);
|
|
10196
10273
|
const {
|
|
10197
10274
|
dispatch: registerDispatch
|
|
10198
|
-
} = useContext(store$
|
|
10275
|
+
} = useContext(store$f);
|
|
10199
10276
|
|
|
10200
10277
|
function handleClick() {
|
|
10201
10278
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
10202
10279
|
|
|
10280
|
+
if (!window.auth0) {
|
|
10281
|
+
return console.error("Auth0 sdk script wasn't loaded, you need to load auth0 sdk before rendering the Auth0LoginButton");
|
|
10282
|
+
}
|
|
10283
|
+
|
|
10203
10284
|
(_auth0InstanceRef$cur = auth0InstanceRef.current) === null || _auth0InstanceRef$cur === void 0 ? void 0 : (_auth0InstanceRef$cur2 = _auth0InstanceRef$cur.popup) === null || _auth0InstanceRef$cur2 === void 0 ? void 0 : (_auth0InstanceRef$cur3 = _auth0InstanceRef$cur2.authorize) === null || _auth0InstanceRef$cur3 === void 0 ? void 0 : _auth0InstanceRef$cur3.call(_auth0InstanceRef$cur2, {
|
|
10204
10285
|
responseType: "token id_token",
|
|
10205
10286
|
owp: true // close popup when finished
|
|
@@ -10324,19 +10405,19 @@ function LoginView(props) {
|
|
|
10324
10405
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10325
10406
|
}
|
|
10326
10407
|
|
|
10327
|
-
var _path$
|
|
10408
|
+
var _path$m, _path2$2, _path3;
|
|
10328
10409
|
|
|
10329
|
-
function _extends$
|
|
10410
|
+
function _extends$o() { _extends$o = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$o.apply(this, arguments); }
|
|
10330
10411
|
|
|
10331
10412
|
function SvgPelcroAuthorship(props) {
|
|
10332
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10413
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
10333
10414
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10334
10415
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10335
|
-
}, props), _path$
|
|
10416
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
10336
10417
|
fill: "none",
|
|
10337
10418
|
stroke: "#4a4a4a",
|
|
10338
10419
|
d: "M487.89 42.299c0 13.158-10.671 23.829-23.829 23.829H37.074c-13.162 0-23.832-10.671-23.832-23.829v-63.552c0-13.158 10.67-23.831 23.832-23.831H464.06c13.158 0 23.829 10.672 23.829 23.831l.001 63.552z"
|
|
10339
|
-
})), _path2$
|
|
10420
|
+
})), _path2$2 || (_path2$2 = /*#__PURE__*/React.createElement("path", {
|
|
10340
10421
|
d: "M46.875-5.564h7.294c.88 0 1.805.102 2.77.307s1.844.55 2.643 1.05 1.455 1.186 1.967 2.057.768 1.96.768 3.274c0 1.144-.207 2.132-.626 2.964s-.979 1.519-1.68 2.055-1.515.935-2.428 1.196c-.921.263-1.877.394-2.88.394h-5.468v12.009h-2.36V-5.564zm2.359 11.153h5.363a8.35 8.35 0 001.966-.232c.644-.155 1.216-.405 1.715-.751s.905-.805 1.219-1.377c.308-.572.464-1.273.464-2.107 0-.811-.163-1.501-.485-2.074s-.737-1.044-1.25-1.411-1.101-.638-1.769-.805a8.16 8.16 0 00-2.001-.252h-5.218l-.004 9.01zm16.625 5.897c0-1.262.212-2.423.642-3.484a8.39 8.39 0 011.787-2.755 7.967 7.967 0 012.754-1.803c1.073-.43 2.241-.642 3.502-.642s2.425.212 3.485.642a8.25 8.25 0 012.751 1.803c.775.771 1.378 1.692 1.805 2.755s.645 2.222.645 3.484-.217 2.428-.645 3.484-1.028 1.979-1.805 2.756a8.17 8.17 0 01-2.751 1.805c-1.061.428-2.223.641-3.485.641s-2.432-.213-3.502-.641c-1.073-.436-1.989-1.034-2.754-1.805-.762-.777-1.357-1.696-1.787-2.756s-.642-2.217-.642-3.484zm2.144 0c0 .932.148 1.809.447 2.631a6.18 6.18 0 001.306 2.146c.572.605 1.263 1.089 2.073 1.446s1.716.536 2.717.536 1.905-.179 2.717-.536 1.501-.84 2.071-1.446 1.007-1.324 1.305-2.146a7.66 7.66 0 00.446-2.631c0-.926-.149-1.803-.446-2.625s-.734-1.537-1.305-2.147-1.265-1.089-2.071-1.446c-.812-.36-1.717-.538-2.717-.538s-1.906.178-2.717.538-1.501.837-2.073 1.446a6.15 6.15 0 00-1.306 2.147 7.66 7.66 0 00-.447 2.625zm17.694-8.257h2.362l4.003 13.833h.071l4.612-13.833h2.039l4.896 13.833h.072l3.897-13.833h2.145l-4.859 16.514h-2.218L97.781 6.229h-.07L93.1 19.743h-2.214L85.697 3.229zm42.076 13.408c-.834 1.261-1.865 2.165-3.093 2.715s-2.582.825-4.058.825c-1.264 0-2.408-.217-3.431-.644a7.78 7.78 0 01-2.647-1.807c-.739-.777-1.305-1.695-1.7-2.751s-.59-2.234-.59-3.521c0-1.237.204-2.384.609-3.432s.978-1.962 1.715-2.734a8.06 8.06 0 012.61-1.825c.999-.437 2.108-.66 3.323-.66 1.266 0 2.377.223 3.342.66.965.444 1.775 1.026 2.431 1.754a7.4 7.4 0 011.483 2.483c.336.929.502 1.871.502 2.824v1.5h-13.871c0 .453.093 1.033.271 1.732.177.704.504 1.389.981 2.058s1.113 1.236 1.912 1.718c.798.475 1.829.712 3.094.712 1.095 0 2.158-.259 3.181-.787s1.808-1.238 2.358-2.146l1.578 1.326zm-1.645-6.543a4.84 4.84 0 00-.448-2.072 5.46 5.46 0 00-1.214-1.697 5.813 5.813 0 00-1.822-1.166 5.87 5.87 0 00-2.233-.429c-1.168 0-2.138.239-2.914.717s-1.389 1.021-1.84 1.644-.775 1.222-.967 1.802-.285.986-.285 1.197l11.723.004zm6.933-2.218l-.035-1.126-.052-1.336-.055-1.272-.035-.914h2.146l.053 1.787c.01.574.043.943.089 1.111.548-.979 1.249-1.777 2.108-2.396s1.907-.928 3.148-.928c.212 0 .423.016.624.055l.626.121-.249 2.111a2.53 2.53 0 00-.821-.146c-.93 0-1.734.146-2.414.448s-1.238.708-1.68 1.232-.768 1.137-.983 1.842-.321 1.46-.321 2.271v9.006h-2.146l-.003-11.866zm25.845 8.761c-.836 1.261-1.866 2.165-3.092 2.715s-2.58.825-4.059.825c-1.265 0-2.407-.217-3.431-.644a7.7 7.7 0 01-2.646-1.807 7.95 7.95 0 01-1.698-2.751c-.394-1.059-.59-2.234-.59-3.521 0-1.237.2-2.384.608-3.432s.978-1.962 1.717-2.734 1.609-1.383 2.609-1.825c.999-.437 2.107-.66 3.322-.66 1.264 0 2.376.223 3.344.66.963.444 1.773 1.026 2.429 1.754a7.49 7.49 0 011.485 2.483 8.34 8.34 0 01.498 2.824v1.5h-13.869c0 .453.089 1.033.268 1.732.178.704.506 1.389.983 2.058s1.111 1.236 1.91 1.718c.8.475 1.829.712 3.092.712 1.096 0 2.158-.259 3.183-.787s1.81-1.238 2.361-2.146l1.576 1.326zm-1.643-6.543c0-.739-.147-1.432-.447-2.072a5.58 5.58 0 00-1.215-1.697 5.875 5.875 0 00-4.054-1.595c-1.171 0-2.139.239-2.914.717s-1.387 1.021-1.84 1.644-.776 1.222-.968 1.802-.288.986-.288 1.197l11.727.004zm21.38 6.756h-.073a5.427 5.427 0 01-1.249 1.48 7.44 7.44 0 01-1.627 1.04 8.182 8.182 0 01-1.84.604 9.2 9.2 0 01-1.894.199c-1.264 0-2.432-.213-3.506-.641-1.071-.436-1.988-1.034-2.751-1.805-.76-.777-1.358-1.696-1.786-2.756s-.642-2.219-.642-3.484.212-2.423.642-3.484 1.026-1.979 1.786-2.755 1.68-1.378 2.751-1.803c1.074-.43 2.242-.642 3.506-.642.618 0 1.251.065 1.894.196a8.34 8.34 0 011.84.606 7.65 7.65 0 011.627 1.038 5.58 5.58 0 011.249 1.484h.073V-7.278h2.143v27.023h-2.143V16.85zm.211-5.364c0-.926-.177-1.803-.536-2.625a6.7 6.7 0 00-1.467-2.147c-.617-.609-1.344-1.089-2.181-1.446s-1.738-.538-2.714-.538c-1.002 0-1.908.178-2.717.538s-1.504.837-2.076 1.446a6.16 6.16 0 00-1.305 2.147 7.65 7.65 0 00-.446 2.625 7.66 7.66 0 00.446 2.631c.298.822.734 1.537 1.305 2.146s1.266 1.089 2.076 1.446 1.715.536 2.717.536c.976 0 1.88-.179 2.714-.536s1.563-.84 2.181-1.446 1.109-1.324 1.467-2.146a6.5 6.5 0 00.536-2.631zm16.015-18.764h2.146V6.126h.068a5.64 5.64 0 011.255-1.484 7.606 7.606 0 011.626-1.038 8.22 8.22 0 011.84-.606 9.56 9.56 0 011.895-.196c1.263 0 2.422.212 3.486.642s1.976 1.032 2.75 1.803a8.18 8.18 0 011.806 2.755c.43 1.061.645 2.222.645 3.484s-.217 2.428-.645 3.484a8.28 8.28 0 01-1.806 2.756c-.773.777-1.691 1.376-2.75 1.805s-2.224.641-3.486.641a9.194 9.194 0 01-1.895-.199c-.644-.13-1.256-.332-1.84-.604s-1.128-.618-1.626-1.04a5.56 5.56 0 01-1.255-1.48h-.068v2.893h-2.146v-27.02zm1.932 18.764c0 .932.177 1.809.538 2.631a6.7 6.7 0 001.464 2.146 7.018 7.018 0 002.182 1.446 6.85 6.85 0 002.715.536c1.003 0 1.907-.179 2.718-.536s1.501-.84 2.071-1.446a6.12 6.12 0 001.306-2.146 7.636 7.636 0 00.447-2.631c0-.926-.148-1.803-.447-2.625s-.733-1.537-1.306-2.147-1.263-1.089-2.071-1.446-1.715-.538-2.718-.538c-.978 0-1.879.178-2.715.538a6.96 6.96 0 00-2.182 1.446 6.725 6.725 0 00-1.464 2.147 6.46 6.46 0 00-.538 2.625zm25.023 13.37c-.405 1.073-.966 1.921-1.681 2.541s-1.668.93-2.858.93a6.71 6.71 0 01-1.072-.093 8.006 8.006 0 01-1.035-.233l.21-2 .951.264a3.64 3.64 0 00.982.127c.379 0 .72-.082 1.017-.251a2.61 2.61 0 00.771-.64c.212-.262.396-.55.554-.881a9.86 9.86 0 00.409-.974l1.504-3.827-6.722-16.59h2.394l5.473 13.907 5.325-13.907h2.289l-8.511 21.627z",
|
|
10341
10422
|
fill: "#4a4a4a"
|
|
10342
10423
|
})), _path3 || (_path3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10479,11 +10560,11 @@ function LoginModal({
|
|
|
10479
10560
|
LoginModal.viewId = "login";
|
|
10480
10561
|
|
|
10481
10562
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10482
|
-
store: store$
|
|
10563
|
+
store: store$f
|
|
10483
10564
|
}, props));
|
|
10484
10565
|
|
|
10485
10566
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10486
|
-
store: store$
|
|
10567
|
+
store: store$f
|
|
10487
10568
|
}, props));
|
|
10488
10569
|
|
|
10489
10570
|
const RegisterButton = ({
|
|
@@ -10503,7 +10584,7 @@ const RegisterButton = ({
|
|
|
10503
10584
|
buttonDisabled
|
|
10504
10585
|
},
|
|
10505
10586
|
dispatch
|
|
10506
|
-
} = useContext(store$
|
|
10587
|
+
} = useContext(store$f);
|
|
10507
10588
|
const {
|
|
10508
10589
|
t
|
|
10509
10590
|
} = useTranslation("register");
|
|
@@ -10641,7 +10722,7 @@ function FirstName({
|
|
|
10641
10722
|
}
|
|
10642
10723
|
|
|
10643
10724
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
10644
|
-
store: store$
|
|
10725
|
+
store: store$f
|
|
10645
10726
|
}, props));
|
|
10646
10727
|
|
|
10647
10728
|
function LastName({
|
|
@@ -10672,7 +10753,7 @@ function LastName({
|
|
|
10672
10753
|
}
|
|
10673
10754
|
|
|
10674
10755
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
10675
|
-
store: store$
|
|
10756
|
+
store: store$f
|
|
10676
10757
|
}, props));
|
|
10677
10758
|
|
|
10678
10759
|
/**
|
|
@@ -10796,7 +10877,7 @@ function TextInput({
|
|
|
10796
10877
|
|
|
10797
10878
|
const RegisterTextInput = props => {
|
|
10798
10879
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
10799
|
-
store: store$
|
|
10880
|
+
store: store$f
|
|
10800
10881
|
}));
|
|
10801
10882
|
};
|
|
10802
10883
|
|
|
@@ -10839,15 +10920,21 @@ function RegisterModal(props) {
|
|
|
10839
10920
|
};
|
|
10840
10921
|
|
|
10841
10922
|
const handleAfterRegistrationLogic = () => {
|
|
10842
|
-
var _ReactGA$event;
|
|
10923
|
+
var _ReactGA$event, _window$Pelcro$site$r, _window$Pelcro$site$r2;
|
|
10843
10924
|
|
|
10844
10925
|
ReactGA === null || ReactGA === void 0 ? void 0 : (_ReactGA$event = ReactGA.event) === null || _ReactGA$event === void 0 ? void 0 : _ReactGA$event.call(ReactGA, {
|
|
10845
10926
|
category: "ACTIONS",
|
|
10846
10927
|
action: "Registered",
|
|
10847
10928
|
nonInteraction: true
|
|
10848
|
-
});
|
|
10929
|
+
});
|
|
10930
|
+
const isEmailVerificationEnabled = (_window$Pelcro$site$r = (_window$Pelcro$site$r2 = window.Pelcro.site.read()) === null || _window$Pelcro$site$r2 === void 0 ? void 0 : _window$Pelcro$site$r2.email_verify_enabled) !== null && _window$Pelcro$site$r !== void 0 ? _window$Pelcro$site$r : false;
|
|
10931
|
+
|
|
10932
|
+
if (isEmailVerificationEnabled) {
|
|
10933
|
+
return switchView("email-verify");
|
|
10934
|
+
}
|
|
10849
10935
|
|
|
10850
10936
|
if (!product && !order && !giftCode) {
|
|
10937
|
+
// If product and plan are not selected
|
|
10851
10938
|
return resetView();
|
|
10852
10939
|
} // If this is a redeem gift
|
|
10853
10940
|
|
|
@@ -11117,7 +11204,7 @@ class SelectModal extends Component {
|
|
|
11117
11204
|
|
|
11118
11205
|
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11119
11206
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11120
|
-
const allProductsMinusMatched = allProducts.filter(product => productsThatMatchArticleTag.
|
|
11207
|
+
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11121
11208
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
11122
11209
|
}
|
|
11123
11210
|
});
|
|
@@ -12806,7 +12893,7 @@ class PaypalGateWay {
|
|
|
12806
12893
|
|
|
12807
12894
|
/** @type {PaymentStateType} */
|
|
12808
12895
|
|
|
12809
|
-
const initialState$
|
|
12896
|
+
const initialState$e = {
|
|
12810
12897
|
disableSubmit: false,
|
|
12811
12898
|
isLoading: false,
|
|
12812
12899
|
disableCouponButton: false,
|
|
@@ -12825,10 +12912,10 @@ const initialState$d = {
|
|
|
12825
12912
|
content: ""
|
|
12826
12913
|
}
|
|
12827
12914
|
};
|
|
12828
|
-
const store$
|
|
12915
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
12829
12916
|
const {
|
|
12830
|
-
Provider: Provider$
|
|
12831
|
-
} = store$
|
|
12917
|
+
Provider: Provider$e
|
|
12918
|
+
} = store$e;
|
|
12832
12919
|
|
|
12833
12920
|
const PaymentMethodContainerWithoutStripe = ({
|
|
12834
12921
|
style,
|
|
@@ -12991,10 +13078,49 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
12991
13078
|
|
|
12992
13079
|
if (err) {
|
|
12993
13080
|
onFailure(err);
|
|
12994
|
-
|
|
13081
|
+
dispatch({
|
|
12995
13082
|
type: SET_COUPON_ERROR,
|
|
12996
13083
|
payload: getErrorMessages(err)
|
|
13084
|
+
}); // remove current coupon
|
|
13085
|
+
|
|
13086
|
+
dispatch({
|
|
13087
|
+
type: SET_COUPON,
|
|
13088
|
+
payload: null
|
|
13089
|
+
});
|
|
13090
|
+
dispatch({
|
|
13091
|
+
type: SET_PERCENT_OFF,
|
|
13092
|
+
payload: ""
|
|
13093
|
+
});
|
|
13094
|
+
dispatch({
|
|
13095
|
+
type: SET_UPDATED_PRICE,
|
|
13096
|
+
payload: null
|
|
13097
|
+
});
|
|
13098
|
+
dispatch({
|
|
13099
|
+
type: SET_TAX_AMOUNT,
|
|
13100
|
+
payload: null
|
|
12997
13101
|
});
|
|
13102
|
+
const {
|
|
13103
|
+
currentPlan
|
|
13104
|
+
} = state;
|
|
13105
|
+
|
|
13106
|
+
if (currentPlan) {
|
|
13107
|
+
var _currentPlan$quantity;
|
|
13108
|
+
|
|
13109
|
+
const quantity = (_currentPlan$quantity = currentPlan.quantity) !== null && _currentPlan$quantity !== void 0 ? _currentPlan$quantity : 1;
|
|
13110
|
+
const price = currentPlan.amount;
|
|
13111
|
+
dispatch({
|
|
13112
|
+
type: SET_UPDATED_PRICE,
|
|
13113
|
+
// set original plan price
|
|
13114
|
+
payload: price * quantity
|
|
13115
|
+
});
|
|
13116
|
+
dispatch({
|
|
13117
|
+
type: UPDATE_PAYMENT_REQUEST
|
|
13118
|
+
}); // update the new amount with taxes if site has taxes enabled
|
|
13119
|
+
|
|
13120
|
+
updateTotalAmountWithTax();
|
|
13121
|
+
}
|
|
13122
|
+
|
|
13123
|
+
return;
|
|
12998
13124
|
}
|
|
12999
13125
|
|
|
13000
13126
|
dispatch({
|
|
@@ -13115,9 +13241,9 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13115
13241
|
} = state;
|
|
13116
13242
|
|
|
13117
13243
|
if (currentPlan) {
|
|
13118
|
-
var _currentPlan$
|
|
13244
|
+
var _currentPlan$quantity2;
|
|
13119
13245
|
|
|
13120
|
-
const quantity = (_currentPlan$
|
|
13246
|
+
const quantity = (_currentPlan$quantity2 = currentPlan.quantity) !== null && _currentPlan$quantity2 !== void 0 ? _currentPlan$quantity2 : 1;
|
|
13121
13247
|
const price = currentPlan.amount;
|
|
13122
13248
|
dispatch({
|
|
13123
13249
|
type: SET_UPDATED_PRICE,
|
|
@@ -13780,21 +13906,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13780
13906
|
default:
|
|
13781
13907
|
return state;
|
|
13782
13908
|
}
|
|
13783
|
-
}, initialState$
|
|
13909
|
+
}, initialState$e);
|
|
13784
13910
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
13785
13911
|
style: { ...style
|
|
13786
13912
|
},
|
|
13787
13913
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
13788
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
13914
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
13789
13915
|
value: {
|
|
13790
13916
|
state,
|
|
13791
13917
|
dispatch
|
|
13792
13918
|
}
|
|
13793
13919
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
13794
|
-
store: store$
|
|
13920
|
+
store: store$e,
|
|
13795
13921
|
key: i
|
|
13796
13922
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
13797
|
-
store: store$
|
|
13923
|
+
store: store$e
|
|
13798
13924
|
})));
|
|
13799
13925
|
};
|
|
13800
13926
|
|
|
@@ -13816,7 +13942,7 @@ const PaymentMethodContainer = props => {
|
|
|
13816
13942
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
13817
13943
|
locale: getPageOrDefaultLanguage()
|
|
13818
13944
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
13819
|
-
store: store$
|
|
13945
|
+
store: store$e
|
|
13820
13946
|
}, props))));
|
|
13821
13947
|
}
|
|
13822
13948
|
|
|
@@ -13869,7 +13995,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
13869
13995
|
currentPlan,
|
|
13870
13996
|
updatedPrice
|
|
13871
13997
|
}
|
|
13872
|
-
} = useContext(store$
|
|
13998
|
+
} = useContext(store$e);
|
|
13873
13999
|
|
|
13874
14000
|
const updatePaymentRequest = () => {
|
|
13875
14001
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -13929,7 +14055,7 @@ const DiscountedPrice = props => {
|
|
|
13929
14055
|
taxAmount,
|
|
13930
14056
|
percentOff
|
|
13931
14057
|
}
|
|
13932
|
-
} = useContext(store$
|
|
14058
|
+
} = useContext(store$e);
|
|
13933
14059
|
const {
|
|
13934
14060
|
order,
|
|
13935
14061
|
plan
|
|
@@ -13979,7 +14105,7 @@ const SubmitPaymentMethod = ({
|
|
|
13979
14105
|
isLoading,
|
|
13980
14106
|
updatedPrice
|
|
13981
14107
|
}
|
|
13982
|
-
} = useContext(store$
|
|
14108
|
+
} = useContext(store$e);
|
|
13983
14109
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
13984
14110
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
13985
14111
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -14000,17 +14126,17 @@ const SubmitPaymentMethod = ({
|
|
|
14000
14126
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
14001
14127
|
};
|
|
14002
14128
|
|
|
14003
|
-
var _path$
|
|
14129
|
+
var _path$l;
|
|
14004
14130
|
|
|
14005
|
-
function _extends$
|
|
14131
|
+
function _extends$n() { _extends$n = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$n.apply(this, arguments); }
|
|
14006
14132
|
|
|
14007
14133
|
function SvgArrowLeft(props) {
|
|
14008
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14134
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
14009
14135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14010
14136
|
fill: "none",
|
|
14011
14137
|
viewBox: "0 0 24 24",
|
|
14012
14138
|
stroke: "currentColor"
|
|
14013
|
-
}, props), _path$
|
|
14139
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
14014
14140
|
strokeLinecap: "round",
|
|
14015
14141
|
strokeLinejoin: "round",
|
|
14016
14142
|
strokeWidth: 2,
|
|
@@ -14029,7 +14155,7 @@ const ApplyCouponButton = ({
|
|
|
14029
14155
|
disableCouponButton
|
|
14030
14156
|
},
|
|
14031
14157
|
dispatch
|
|
14032
|
-
} = useContext(store$
|
|
14158
|
+
} = useContext(store$e);
|
|
14033
14159
|
const {
|
|
14034
14160
|
t
|
|
14035
14161
|
} = useTranslation("checkoutForm");
|
|
@@ -14063,7 +14189,7 @@ const CouponCodeField = props => {
|
|
|
14063
14189
|
couponCode,
|
|
14064
14190
|
couponError
|
|
14065
14191
|
}
|
|
14066
|
-
} = useContext(store$
|
|
14192
|
+
} = useContext(store$e);
|
|
14067
14193
|
|
|
14068
14194
|
const onCouponCodeChange = e => {
|
|
14069
14195
|
dispatch({
|
|
@@ -14092,17 +14218,17 @@ const CouponCodeField = props => {
|
|
|
14092
14218
|
}, props));
|
|
14093
14219
|
};
|
|
14094
14220
|
|
|
14095
|
-
var _path$
|
|
14221
|
+
var _path$k;
|
|
14096
14222
|
|
|
14097
|
-
function _extends$
|
|
14223
|
+
function _extends$m() { _extends$m = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$m.apply(this, arguments); }
|
|
14098
14224
|
|
|
14099
14225
|
function SvgTicket(props) {
|
|
14100
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14226
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
14101
14227
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14102
14228
|
fill: "none",
|
|
14103
14229
|
viewBox: "0 0 24 24",
|
|
14104
14230
|
stroke: "currentColor"
|
|
14105
|
-
}, props), _path$
|
|
14231
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
14106
14232
|
strokeLinecap: "round",
|
|
14107
14233
|
strokeLinejoin: "round",
|
|
14108
14234
|
strokeWidth: 2,
|
|
@@ -14119,7 +14245,7 @@ const CouponCode = ({
|
|
|
14119
14245
|
state: {
|
|
14120
14246
|
enableCouponField
|
|
14121
14247
|
}
|
|
14122
|
-
} = useContext(store$
|
|
14248
|
+
} = useContext(store$e);
|
|
14123
14249
|
const {
|
|
14124
14250
|
t
|
|
14125
14251
|
} = useTranslation("checkoutForm");
|
|
@@ -14376,7 +14502,7 @@ const PaypalSubscribeButton = props => {
|
|
|
14376
14502
|
const {
|
|
14377
14503
|
dispatch,
|
|
14378
14504
|
state
|
|
14379
|
-
} = useContext(store$
|
|
14505
|
+
} = useContext(store$e);
|
|
14380
14506
|
const {
|
|
14381
14507
|
product,
|
|
14382
14508
|
plan,
|
|
@@ -14461,16 +14587,16 @@ const BankRedirection = () => {
|
|
|
14461
14587
|
}));
|
|
14462
14588
|
};
|
|
14463
14589
|
|
|
14464
|
-
var _path$
|
|
14590
|
+
var _path$j;
|
|
14465
14591
|
|
|
14466
|
-
function _extends$
|
|
14592
|
+
function _extends$l() { _extends$l = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$l.apply(this, arguments); }
|
|
14467
14593
|
|
|
14468
14594
|
function SvgLock(props) {
|
|
14469
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14595
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
14470
14596
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14471
14597
|
viewBox: "0 0 20 20",
|
|
14472
14598
|
fill: "currentColor"
|
|
14473
|
-
}, props), _path$
|
|
14599
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
14474
14600
|
fillRule: "evenodd",
|
|
14475
14601
|
d: "M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",
|
|
14476
14602
|
clipRule: "evenodd"
|
|
@@ -14487,7 +14613,7 @@ const SelectedPaymentMethod = () => {
|
|
|
14487
14613
|
state: {
|
|
14488
14614
|
isLoading
|
|
14489
14615
|
}
|
|
14490
|
-
} = useContext(store$
|
|
14616
|
+
} = useContext(store$e);
|
|
14491
14617
|
const {
|
|
14492
14618
|
switchView,
|
|
14493
14619
|
selectedPaymentMethodId
|
|
@@ -14529,7 +14655,7 @@ const TaxAmount = () => {
|
|
|
14529
14655
|
state: {
|
|
14530
14656
|
taxAmount
|
|
14531
14657
|
}
|
|
14532
|
-
} = useContext(store$
|
|
14658
|
+
} = useContext(store$e);
|
|
14533
14659
|
const {
|
|
14534
14660
|
plan
|
|
14535
14661
|
} = usePelcro();
|
|
@@ -14692,12 +14818,12 @@ function SubscriptionRenewModal({
|
|
|
14692
14818
|
}
|
|
14693
14819
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
14694
14820
|
|
|
14695
|
-
var _path$
|
|
14821
|
+
var _path$i;
|
|
14696
14822
|
|
|
14697
|
-
function _extends$
|
|
14823
|
+
function _extends$k() { _extends$k = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$k.apply(this, arguments); }
|
|
14698
14824
|
|
|
14699
14825
|
function SvgGift(props) {
|
|
14700
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14826
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
14701
14827
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
14702
14828
|
fill: "none",
|
|
14703
14829
|
stroke: "currentColor",
|
|
@@ -14706,7 +14832,7 @@ function SvgGift(props) {
|
|
|
14706
14832
|
strokeWidth: 2,
|
|
14707
14833
|
viewBox: "0 0 24 24",
|
|
14708
14834
|
xmlns: "http://www.w3.org/2000/svg"
|
|
14709
|
-
}, props), _path$
|
|
14835
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
14710
14836
|
d: "M20 12v10H4V12M2 7h20v5H2zM12 22V7M12 7H7.5a2.5 2.5 0 010-5C11 2 12 7 12 7zM12 7h4.5a2.5 2.5 0 000-5C13 2 12 7 12 7z"
|
|
14711
14837
|
})));
|
|
14712
14838
|
}
|
|
@@ -15037,7 +15163,7 @@ class DefaultNewsLetter extends Component {
|
|
|
15037
15163
|
|
|
15038
15164
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
15039
15165
|
|
|
15040
|
-
const initialState$
|
|
15166
|
+
const initialState$d = {
|
|
15041
15167
|
didSubToNewslettersBefore: false,
|
|
15042
15168
|
newsletters: [],
|
|
15043
15169
|
isListLoading: true,
|
|
@@ -15047,10 +15173,10 @@ const initialState$c = {
|
|
|
15047
15173
|
content: ""
|
|
15048
15174
|
}
|
|
15049
15175
|
};
|
|
15050
|
-
const store$
|
|
15176
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
15051
15177
|
const {
|
|
15052
|
-
Provider: Provider$
|
|
15053
|
-
} = store$
|
|
15178
|
+
Provider: Provider$d
|
|
15179
|
+
} = store$d;
|
|
15054
15180
|
|
|
15055
15181
|
const NewsletterUpdateContainer = ({
|
|
15056
15182
|
style,
|
|
@@ -15163,7 +15289,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15163
15289
|
default:
|
|
15164
15290
|
return state;
|
|
15165
15291
|
}
|
|
15166
|
-
}, initialState$
|
|
15292
|
+
}, initialState$d);
|
|
15167
15293
|
useEffect(() => {
|
|
15168
15294
|
const getUserNewsletters = () => {
|
|
15169
15295
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -15207,7 +15333,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15207
15333
|
style: { ...style
|
|
15208
15334
|
},
|
|
15209
15335
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
15210
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15336
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
15211
15337
|
value: {
|
|
15212
15338
|
state,
|
|
15213
15339
|
dispatch
|
|
@@ -15215,12 +15341,12 @@ const NewsletterUpdateContainer = ({
|
|
|
15215
15341
|
}, children.length ? children.map((child, i) => {
|
|
15216
15342
|
if (child) {
|
|
15217
15343
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
15218
|
-
store: store$
|
|
15344
|
+
store: store$d,
|
|
15219
15345
|
key: i
|
|
15220
15346
|
});
|
|
15221
15347
|
}
|
|
15222
15348
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15223
|
-
store: store$
|
|
15349
|
+
store: store$d
|
|
15224
15350
|
})));
|
|
15225
15351
|
};
|
|
15226
15352
|
|
|
@@ -15235,7 +15361,7 @@ const NewsletterUpdateButton = ({
|
|
|
15235
15361
|
isSubmitting,
|
|
15236
15362
|
isListLoading
|
|
15237
15363
|
}
|
|
15238
|
-
} = useContext(store$
|
|
15364
|
+
} = useContext(store$d);
|
|
15239
15365
|
const {
|
|
15240
15366
|
t
|
|
15241
15367
|
} = useTranslation("newsletter");
|
|
@@ -15265,7 +15391,7 @@ const NewsletterUpdateList = () => {
|
|
|
15265
15391
|
newsletters,
|
|
15266
15392
|
isListLoading
|
|
15267
15393
|
}
|
|
15268
|
-
} = useContext(store$
|
|
15394
|
+
} = useContext(store$d);
|
|
15269
15395
|
|
|
15270
15396
|
if (isListLoading) {
|
|
15271
15397
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
@@ -15469,7 +15595,7 @@ function SubscriptionCreateModal({
|
|
|
15469
15595
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
15470
15596
|
|
|
15471
15597
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
15472
|
-
const initialState$
|
|
15598
|
+
const initialState$c = {
|
|
15473
15599
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
15474
15600
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
15475
15601
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -15482,10 +15608,10 @@ const initialState$b = {
|
|
|
15482
15608
|
content: ""
|
|
15483
15609
|
}
|
|
15484
15610
|
};
|
|
15485
|
-
const store$
|
|
15611
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
15486
15612
|
const {
|
|
15487
|
-
Provider: Provider$
|
|
15488
|
-
} = store$
|
|
15613
|
+
Provider: Provider$c
|
|
15614
|
+
} = store$c;
|
|
15489
15615
|
|
|
15490
15616
|
const UserUpdateContainer = ({
|
|
15491
15617
|
style,
|
|
@@ -15617,27 +15743,27 @@ const UserUpdateContainer = ({
|
|
|
15617
15743
|
default:
|
|
15618
15744
|
return state;
|
|
15619
15745
|
}
|
|
15620
|
-
}, initialState$
|
|
15746
|
+
}, initialState$c);
|
|
15621
15747
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15622
15748
|
style: { ...style
|
|
15623
15749
|
},
|
|
15624
15750
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
15625
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15751
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
15626
15752
|
value: {
|
|
15627
15753
|
state,
|
|
15628
15754
|
dispatch
|
|
15629
15755
|
}
|
|
15630
15756
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
15631
|
-
store: store$
|
|
15757
|
+
store: store$c,
|
|
15632
15758
|
key: i
|
|
15633
15759
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15634
|
-
store: store$
|
|
15760
|
+
store: store$c
|
|
15635
15761
|
})));
|
|
15636
15762
|
};
|
|
15637
15763
|
|
|
15638
15764
|
const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
15639
15765
|
disabled: true,
|
|
15640
|
-
store: store$
|
|
15766
|
+
store: store$c
|
|
15641
15767
|
}, props));
|
|
15642
15768
|
|
|
15643
15769
|
const UserUpdateButton = ({
|
|
@@ -15650,7 +15776,7 @@ const UserUpdateButton = ({
|
|
|
15650
15776
|
buttonDisabled
|
|
15651
15777
|
},
|
|
15652
15778
|
dispatch
|
|
15653
|
-
} = useContext(store$
|
|
15779
|
+
} = useContext(store$c);
|
|
15654
15780
|
const {
|
|
15655
15781
|
t
|
|
15656
15782
|
} = useTranslation("userEdit");
|
|
@@ -15667,11 +15793,11 @@ const UserUpdateButton = ({
|
|
|
15667
15793
|
};
|
|
15668
15794
|
|
|
15669
15795
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
15670
|
-
store: store$
|
|
15796
|
+
store: store$c
|
|
15671
15797
|
}, props));
|
|
15672
15798
|
|
|
15673
15799
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
15674
|
-
store: store$
|
|
15800
|
+
store: store$c
|
|
15675
15801
|
}, props));
|
|
15676
15802
|
|
|
15677
15803
|
function Phone({
|
|
@@ -15700,22 +15826,22 @@ function Phone({
|
|
|
15700
15826
|
}
|
|
15701
15827
|
|
|
15702
15828
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
15703
|
-
store: store$
|
|
15829
|
+
store: store$c
|
|
15704
15830
|
}, props));
|
|
15705
15831
|
|
|
15706
15832
|
var userSolidIcon = "data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20class%3D%22plc-h-5%20plc-w-5%22%20viewBox%3D%220%200%2020%2020%22%20fill%3D%22white%22%3E%20%20%3Cpath%20transform%3D%22translate%280%2C2%29%22%20fill-rule%3D%22evenodd%22%20d%3D%22M10%209a3%203%200%20100-6%203%203%200%20000%206zm-7%209a7%207%200%201114%200H3z%22%20clip-rule%3D%22evenodd%22%20%2F%3E%3C%2Fsvg%3E";
|
|
15707
15833
|
|
|
15708
|
-
var _path$
|
|
15834
|
+
var _path$h;
|
|
15709
15835
|
|
|
15710
|
-
function _extends$
|
|
15836
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
15711
15837
|
|
|
15712
15838
|
function SvgEdit(props) {
|
|
15713
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15839
|
+
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
15714
15840
|
className: "plc-w-6 plc-h-6",
|
|
15715
15841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15716
15842
|
viewBox: "0 0 20 20",
|
|
15717
15843
|
fill: "currentColor"
|
|
15718
|
-
}, props), _path$
|
|
15844
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
15719
15845
|
d: "M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zm-2.207 2.207L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"
|
|
15720
15846
|
})));
|
|
15721
15847
|
}
|
|
@@ -15847,16 +15973,16 @@ function DisplayName({
|
|
|
15847
15973
|
}
|
|
15848
15974
|
|
|
15849
15975
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
15850
|
-
store: store$
|
|
15976
|
+
store: store$c
|
|
15851
15977
|
}, props));
|
|
15852
15978
|
|
|
15853
15979
|
const UserUpdateTextInput = props => {
|
|
15854
15980
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
15855
|
-
store: store$
|
|
15981
|
+
store: store$c
|
|
15856
15982
|
}));
|
|
15857
15983
|
};
|
|
15858
15984
|
|
|
15859
|
-
const initialState$
|
|
15985
|
+
const initialState$b = {
|
|
15860
15986
|
isSubmitting: false,
|
|
15861
15987
|
firstName: "",
|
|
15862
15988
|
firstNameError: "",
|
|
@@ -15881,10 +16007,10 @@ const initialState$a = {
|
|
|
15881
16007
|
content: ""
|
|
15882
16008
|
}
|
|
15883
16009
|
};
|
|
15884
|
-
const store$
|
|
16010
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
15885
16011
|
const {
|
|
15886
|
-
Provider: Provider$
|
|
15887
|
-
} = store$
|
|
16012
|
+
Provider: Provider$b
|
|
16013
|
+
} = store$b;
|
|
15888
16014
|
|
|
15889
16015
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
15890
16016
|
|
|
@@ -16091,7 +16217,7 @@ const AddressCreateContainer = ({
|
|
|
16091
16217
|
default:
|
|
16092
16218
|
return state;
|
|
16093
16219
|
}
|
|
16094
|
-
}, initialState$
|
|
16220
|
+
}, initialState$b);
|
|
16095
16221
|
useEffect(() => {
|
|
16096
16222
|
const getStates = () => {
|
|
16097
16223
|
dispatch({
|
|
@@ -16123,16 +16249,16 @@ const AddressCreateContainer = ({
|
|
|
16123
16249
|
style: { ...style
|
|
16124
16250
|
},
|
|
16125
16251
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
16126
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16252
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
16127
16253
|
value: {
|
|
16128
16254
|
state,
|
|
16129
16255
|
dispatch
|
|
16130
16256
|
}
|
|
16131
16257
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16132
|
-
store: store$
|
|
16258
|
+
store: store$b,
|
|
16133
16259
|
key: i
|
|
16134
16260
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16135
|
-
store: store$
|
|
16261
|
+
store: store$b
|
|
16136
16262
|
})));
|
|
16137
16263
|
};
|
|
16138
16264
|
|
|
@@ -16143,7 +16269,7 @@ function AddressCreateFirstName(props) {
|
|
|
16143
16269
|
firstName,
|
|
16144
16270
|
firstNameError
|
|
16145
16271
|
}
|
|
16146
|
-
} = useContext(store$
|
|
16272
|
+
} = useContext(store$b);
|
|
16147
16273
|
|
|
16148
16274
|
const handleBlur = () => {
|
|
16149
16275
|
return dispatch({
|
|
@@ -16186,7 +16312,7 @@ function AddressCreateLastName(props) {
|
|
|
16186
16312
|
lastName,
|
|
16187
16313
|
lastNameError
|
|
16188
16314
|
}
|
|
16189
|
-
} = useContext(store$
|
|
16315
|
+
} = useContext(store$b);
|
|
16190
16316
|
|
|
16191
16317
|
const handleBlur = () => {
|
|
16192
16318
|
return dispatch({
|
|
@@ -16229,7 +16355,7 @@ function AddressCreateLine1(props) {
|
|
|
16229
16355
|
line1,
|
|
16230
16356
|
line1Error
|
|
16231
16357
|
}
|
|
16232
|
-
} = useContext(store$
|
|
16358
|
+
} = useContext(store$b);
|
|
16233
16359
|
|
|
16234
16360
|
const handleBlur = () => {
|
|
16235
16361
|
return dispatch({
|
|
@@ -16272,7 +16398,7 @@ function AddressCreateCity(props) {
|
|
|
16272
16398
|
city,
|
|
16273
16399
|
cityError
|
|
16274
16400
|
}
|
|
16275
|
-
} = useContext(store$
|
|
16401
|
+
} = useContext(store$b);
|
|
16276
16402
|
|
|
16277
16403
|
const handleBlur = () => {
|
|
16278
16404
|
return dispatch({
|
|
@@ -16315,7 +16441,7 @@ function AddressCreatePostalCode(props) {
|
|
|
16315
16441
|
postalCode,
|
|
16316
16442
|
postalCodeError
|
|
16317
16443
|
}
|
|
16318
|
-
} = useContext(store$
|
|
16444
|
+
} = useContext(store$b);
|
|
16319
16445
|
|
|
16320
16446
|
const handleBlur = () => {
|
|
16321
16447
|
return dispatch({
|
|
@@ -16361,7 +16487,7 @@ const AddressCreateSubmit = ({
|
|
|
16361
16487
|
state: {
|
|
16362
16488
|
isSubmitting
|
|
16363
16489
|
}
|
|
16364
|
-
} = useContext(store$
|
|
16490
|
+
} = useContext(store$b);
|
|
16365
16491
|
const {
|
|
16366
16492
|
t
|
|
16367
16493
|
} = useTranslation("address");
|
|
@@ -16472,7 +16598,7 @@ function CountrySelect({
|
|
|
16472
16598
|
}
|
|
16473
16599
|
|
|
16474
16600
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
16475
|
-
store: store$
|
|
16601
|
+
store: store$b
|
|
16476
16602
|
}, props));
|
|
16477
16603
|
|
|
16478
16604
|
function StateSelect({
|
|
@@ -16560,7 +16686,7 @@ function StateSelect({
|
|
|
16560
16686
|
}
|
|
16561
16687
|
|
|
16562
16688
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
16563
|
-
store: store$
|
|
16689
|
+
store: store$b
|
|
16564
16690
|
}, props));
|
|
16565
16691
|
|
|
16566
16692
|
const AddressCreateView = props => {
|
|
@@ -16665,18 +16791,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
16665
16791
|
|
|
16666
16792
|
const AddressCreateTextInput = props => {
|
|
16667
16793
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
16668
|
-
store: store$
|
|
16794
|
+
store: store$b
|
|
16669
16795
|
}));
|
|
16670
16796
|
};
|
|
16671
16797
|
|
|
16672
16798
|
const AddressCreateLine2 = props => {
|
|
16673
16799
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
16674
16800
|
fieldName: "line2",
|
|
16675
|
-
store: store$
|
|
16801
|
+
store: store$b
|
|
16676
16802
|
}, props));
|
|
16677
16803
|
};
|
|
16678
16804
|
|
|
16679
|
-
const initialState$
|
|
16805
|
+
const initialState$a = {
|
|
16680
16806
|
isSubmitting: false,
|
|
16681
16807
|
firstName: "",
|
|
16682
16808
|
firstNameError: "",
|
|
@@ -16701,10 +16827,10 @@ const initialState$9 = {
|
|
|
16701
16827
|
content: ""
|
|
16702
16828
|
}
|
|
16703
16829
|
};
|
|
16704
|
-
const store$
|
|
16830
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
16705
16831
|
const {
|
|
16706
|
-
Provider: Provider$
|
|
16707
|
-
} = store$
|
|
16832
|
+
Provider: Provider$a
|
|
16833
|
+
} = store$a;
|
|
16708
16834
|
|
|
16709
16835
|
const AddressUpdateContainer = ({
|
|
16710
16836
|
style,
|
|
@@ -16756,7 +16882,7 @@ const AddressUpdateContainer = ({
|
|
|
16756
16882
|
const thisAddress = addresses[address];
|
|
16757
16883
|
|
|
16758
16884
|
if (+thisAddress.id === +addressId) {
|
|
16759
|
-
const newState = { ...initialState$
|
|
16885
|
+
const newState = { ...initialState$a,
|
|
16760
16886
|
firstName: thisAddress.first_name,
|
|
16761
16887
|
lastName: thisAddress.last_name,
|
|
16762
16888
|
line1: thisAddress.line1,
|
|
@@ -16889,7 +17015,7 @@ const AddressUpdateContainer = ({
|
|
|
16889
17015
|
default:
|
|
16890
17016
|
return state;
|
|
16891
17017
|
}
|
|
16892
|
-
}, initialState$
|
|
17018
|
+
}, initialState$a);
|
|
16893
17019
|
useEffect(() => {
|
|
16894
17020
|
const getStates = () => {
|
|
16895
17021
|
dispatch({
|
|
@@ -16921,21 +17047,21 @@ const AddressUpdateContainer = ({
|
|
|
16921
17047
|
style: { ...style
|
|
16922
17048
|
},
|
|
16923
17049
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
16924
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17050
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
16925
17051
|
value: {
|
|
16926
17052
|
state,
|
|
16927
17053
|
dispatch
|
|
16928
17054
|
}
|
|
16929
17055
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16930
|
-
store: store$
|
|
17056
|
+
store: store$a,
|
|
16931
17057
|
key: i
|
|
16932
17058
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16933
|
-
store: store$
|
|
17059
|
+
store: store$a
|
|
16934
17060
|
})));
|
|
16935
17061
|
};
|
|
16936
17062
|
|
|
16937
17063
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
16938
|
-
store: store$
|
|
17064
|
+
store: store$a
|
|
16939
17065
|
}, props));
|
|
16940
17066
|
|
|
16941
17067
|
function AddressUpdateFirstName(props) {
|
|
@@ -16945,7 +17071,7 @@ function AddressUpdateFirstName(props) {
|
|
|
16945
17071
|
firstName,
|
|
16946
17072
|
firstNameError
|
|
16947
17073
|
}
|
|
16948
|
-
} = useContext(store$
|
|
17074
|
+
} = useContext(store$a);
|
|
16949
17075
|
|
|
16950
17076
|
const handleBlur = () => {
|
|
16951
17077
|
return dispatch({
|
|
@@ -16988,7 +17114,7 @@ function AddressUpdateLastName(props) {
|
|
|
16988
17114
|
lastName,
|
|
16989
17115
|
lastNameError
|
|
16990
17116
|
}
|
|
16991
|
-
} = useContext(store$
|
|
17117
|
+
} = useContext(store$a);
|
|
16992
17118
|
|
|
16993
17119
|
const handleBlur = () => {
|
|
16994
17120
|
return dispatch({
|
|
@@ -17031,7 +17157,7 @@ function AddressUpdateLine1(props) {
|
|
|
17031
17157
|
line1,
|
|
17032
17158
|
line1Error
|
|
17033
17159
|
}
|
|
17034
|
-
} = useContext(store$
|
|
17160
|
+
} = useContext(store$a);
|
|
17035
17161
|
|
|
17036
17162
|
const handleBlur = () => {
|
|
17037
17163
|
return dispatch({
|
|
@@ -17071,7 +17197,7 @@ const AddressUpdateLine2 = props => {
|
|
|
17071
17197
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17072
17198
|
fieldName: "line2"
|
|
17073
17199
|
}, props, {
|
|
17074
|
-
store: store$
|
|
17200
|
+
store: store$a
|
|
17075
17201
|
}));
|
|
17076
17202
|
};
|
|
17077
17203
|
|
|
@@ -17082,7 +17208,7 @@ function AddressUpdateCity(props) {
|
|
|
17082
17208
|
city,
|
|
17083
17209
|
cityError
|
|
17084
17210
|
}
|
|
17085
|
-
} = useContext(store$
|
|
17211
|
+
} = useContext(store$a);
|
|
17086
17212
|
|
|
17087
17213
|
const handleBlur = () => {
|
|
17088
17214
|
return dispatch({
|
|
@@ -17125,7 +17251,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
17125
17251
|
postalCode,
|
|
17126
17252
|
postalCodeError
|
|
17127
17253
|
}
|
|
17128
|
-
} = useContext(store$
|
|
17254
|
+
} = useContext(store$a);
|
|
17129
17255
|
|
|
17130
17256
|
const handleBlur = () => {
|
|
17131
17257
|
return dispatch({
|
|
@@ -17171,7 +17297,7 @@ const AddressUpdateSubmit = ({
|
|
|
17171
17297
|
state: {
|
|
17172
17298
|
isSubmitting
|
|
17173
17299
|
}
|
|
17174
|
-
} = useContext(store$
|
|
17300
|
+
} = useContext(store$a);
|
|
17175
17301
|
const {
|
|
17176
17302
|
t
|
|
17177
17303
|
} = useTranslation("address");
|
|
@@ -17187,7 +17313,7 @@ const AddressUpdateSubmit = ({
|
|
|
17187
17313
|
};
|
|
17188
17314
|
|
|
17189
17315
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17190
|
-
store: store$
|
|
17316
|
+
store: store$a
|
|
17191
17317
|
}, props));
|
|
17192
17318
|
|
|
17193
17319
|
const AddressUpdateView = props => {
|
|
@@ -17270,7 +17396,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
17270
17396
|
|
|
17271
17397
|
const AddressUpdateTextInput = props => {
|
|
17272
17398
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17273
|
-
store: store$
|
|
17399
|
+
store: store$a
|
|
17274
17400
|
}));
|
|
17275
17401
|
};
|
|
17276
17402
|
|
|
@@ -17353,7 +17479,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
17353
17479
|
};
|
|
17354
17480
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
17355
17481
|
|
|
17356
|
-
const initialState$
|
|
17482
|
+
const initialState$9 = {
|
|
17357
17483
|
email: "",
|
|
17358
17484
|
password: "",
|
|
17359
17485
|
passwordError: null,
|
|
@@ -17366,10 +17492,10 @@ const initialState$8 = {
|
|
|
17366
17492
|
content: ""
|
|
17367
17493
|
}
|
|
17368
17494
|
};
|
|
17369
|
-
const store$
|
|
17495
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
17370
17496
|
const {
|
|
17371
|
-
Provider: Provider$
|
|
17372
|
-
} = store$
|
|
17497
|
+
Provider: Provider$9
|
|
17498
|
+
} = store$9;
|
|
17373
17499
|
|
|
17374
17500
|
const PasswordResetContainer = ({
|
|
17375
17501
|
style,
|
|
@@ -17426,7 +17552,7 @@ const PasswordResetContainer = ({
|
|
|
17426
17552
|
type: SET_EMAIL,
|
|
17427
17553
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
17428
17554
|
});
|
|
17429
|
-
initialState$
|
|
17555
|
+
initialState$9.email = window.Pelcro.helpers.getURLParameter("email");
|
|
17430
17556
|
dispatch({
|
|
17431
17557
|
type: SET_TOKEN,
|
|
17432
17558
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -17486,26 +17612,26 @@ const PasswordResetContainer = ({
|
|
|
17486
17612
|
default:
|
|
17487
17613
|
return state;
|
|
17488
17614
|
}
|
|
17489
|
-
}, initialState$
|
|
17615
|
+
}, initialState$9);
|
|
17490
17616
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
17491
17617
|
style: { ...style
|
|
17492
17618
|
},
|
|
17493
17619
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
17494
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17620
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
17495
17621
|
value: {
|
|
17496
17622
|
state,
|
|
17497
17623
|
dispatch
|
|
17498
17624
|
}
|
|
17499
17625
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17500
|
-
store: store$
|
|
17626
|
+
store: store$9,
|
|
17501
17627
|
key: i
|
|
17502
17628
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17503
|
-
store: store$
|
|
17629
|
+
store: store$9
|
|
17504
17630
|
})));
|
|
17505
17631
|
};
|
|
17506
17632
|
|
|
17507
17633
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
17508
|
-
store: store$
|
|
17634
|
+
store: store$9
|
|
17509
17635
|
}, props));
|
|
17510
17636
|
|
|
17511
17637
|
const PasswordResetButton = ({
|
|
@@ -17518,7 +17644,7 @@ const PasswordResetButton = ({
|
|
|
17518
17644
|
buttonDisabled
|
|
17519
17645
|
},
|
|
17520
17646
|
dispatch
|
|
17521
|
-
} = useContext(store$
|
|
17647
|
+
} = useContext(store$9);
|
|
17522
17648
|
const {
|
|
17523
17649
|
t
|
|
17524
17650
|
} = useTranslation("passwordReset");
|
|
@@ -17535,14 +17661,14 @@ const PasswordResetButton = ({
|
|
|
17535
17661
|
};
|
|
17536
17662
|
|
|
17537
17663
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
17538
|
-
store: store$
|
|
17664
|
+
store: store$9
|
|
17539
17665
|
}, props, {
|
|
17540
17666
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
17541
17667
|
disabled: true
|
|
17542
17668
|
}));
|
|
17543
17669
|
|
|
17544
17670
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
17545
|
-
store: store$
|
|
17671
|
+
store: store$9
|
|
17546
17672
|
}, props));
|
|
17547
17673
|
|
|
17548
17674
|
const PasswordResetView = props => {
|
|
@@ -17594,7 +17720,7 @@ const PasswordResetModal = ({
|
|
|
17594
17720
|
};
|
|
17595
17721
|
PasswordResetModal.viewId = "password-reset";
|
|
17596
17722
|
|
|
17597
|
-
const initialState$
|
|
17723
|
+
const initialState$8 = {
|
|
17598
17724
|
email: "",
|
|
17599
17725
|
emailError: null,
|
|
17600
17726
|
buttonDisabled: false,
|
|
@@ -17603,10 +17729,10 @@ const initialState$7 = {
|
|
|
17603
17729
|
content: ""
|
|
17604
17730
|
}
|
|
17605
17731
|
};
|
|
17606
|
-
const store$
|
|
17732
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
17607
17733
|
const {
|
|
17608
|
-
Provider: Provider$
|
|
17609
|
-
} = store$
|
|
17734
|
+
Provider: Provider$8
|
|
17735
|
+
} = store$8;
|
|
17610
17736
|
|
|
17611
17737
|
const PasswordForgotContainer = ({
|
|
17612
17738
|
style,
|
|
@@ -17684,21 +17810,21 @@ const PasswordForgotContainer = ({
|
|
|
17684
17810
|
default:
|
|
17685
17811
|
return state;
|
|
17686
17812
|
}
|
|
17687
|
-
}, initialState$
|
|
17813
|
+
}, initialState$8);
|
|
17688
17814
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
17689
17815
|
style: { ...style
|
|
17690
17816
|
},
|
|
17691
17817
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
17692
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17818
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
17693
17819
|
value: {
|
|
17694
17820
|
state,
|
|
17695
17821
|
dispatch
|
|
17696
17822
|
}
|
|
17697
17823
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17698
|
-
store: store$
|
|
17824
|
+
store: store$8,
|
|
17699
17825
|
key: i
|
|
17700
17826
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17701
|
-
store: store$
|
|
17827
|
+
store: store$8
|
|
17702
17828
|
})));
|
|
17703
17829
|
};
|
|
17704
17830
|
|
|
@@ -17714,7 +17840,7 @@ const PasswordForgotButton = ({
|
|
|
17714
17840
|
emailError
|
|
17715
17841
|
},
|
|
17716
17842
|
dispatch
|
|
17717
|
-
} = useContext(store$
|
|
17843
|
+
} = useContext(store$8);
|
|
17718
17844
|
const {
|
|
17719
17845
|
t
|
|
17720
17846
|
} = useTranslation("passwordForgot");
|
|
@@ -17735,7 +17861,7 @@ const PasswordForgotButton = ({
|
|
|
17735
17861
|
};
|
|
17736
17862
|
|
|
17737
17863
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
17738
|
-
store: store$
|
|
17864
|
+
store: store$8
|
|
17739
17865
|
}, props));
|
|
17740
17866
|
|
|
17741
17867
|
const PasswordForgotView = props => {
|
|
@@ -17785,7 +17911,7 @@ const PasswordForgotModal = ({
|
|
|
17785
17911
|
};
|
|
17786
17912
|
PasswordForgotModal.viewId = "password-forgot";
|
|
17787
17913
|
|
|
17788
|
-
const initialState$
|
|
17914
|
+
const initialState$7 = {
|
|
17789
17915
|
currentPassword: "",
|
|
17790
17916
|
newPassword: "",
|
|
17791
17917
|
confirmNewPassword: "",
|
|
@@ -17799,10 +17925,10 @@ const initialState$6 = {
|
|
|
17799
17925
|
content: ""
|
|
17800
17926
|
}
|
|
17801
17927
|
};
|
|
17802
|
-
const store$
|
|
17928
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
17803
17929
|
const {
|
|
17804
|
-
Provider: Provider$
|
|
17805
|
-
} = store$
|
|
17930
|
+
Provider: Provider$7
|
|
17931
|
+
} = store$7;
|
|
17806
17932
|
const PasswordChangeContainer = ({
|
|
17807
17933
|
style,
|
|
17808
17934
|
className = "",
|
|
@@ -17954,21 +18080,21 @@ const PasswordChangeContainer = ({
|
|
|
17954
18080
|
default:
|
|
17955
18081
|
return state;
|
|
17956
18082
|
}
|
|
17957
|
-
}, initialState$
|
|
18083
|
+
}, initialState$7);
|
|
17958
18084
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
17959
18085
|
style: { ...style
|
|
17960
18086
|
},
|
|
17961
18087
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
17962
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18088
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
17963
18089
|
value: {
|
|
17964
18090
|
state,
|
|
17965
18091
|
dispatch
|
|
17966
18092
|
}
|
|
17967
18093
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17968
|
-
store: store$
|
|
18094
|
+
store: store$7,
|
|
17969
18095
|
key: i
|
|
17970
18096
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17971
|
-
store: store$
|
|
18097
|
+
store: store$7
|
|
17972
18098
|
})));
|
|
17973
18099
|
};
|
|
17974
18100
|
|
|
@@ -17979,7 +18105,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
17979
18105
|
currentPassword,
|
|
17980
18106
|
currentPasswordError
|
|
17981
18107
|
}
|
|
17982
|
-
} = useContext(store$
|
|
18108
|
+
} = useContext(store$7);
|
|
17983
18109
|
const handleBlur = useCallback(() => {
|
|
17984
18110
|
return dispatch({
|
|
17985
18111
|
type: VALIDATE_PASSWORD
|
|
@@ -18013,7 +18139,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
18013
18139
|
newPassword,
|
|
18014
18140
|
newPasswordError
|
|
18015
18141
|
}
|
|
18016
|
-
} = useContext(store$
|
|
18142
|
+
} = useContext(store$7);
|
|
18017
18143
|
const handleBlur = useCallback(() => {
|
|
18018
18144
|
return dispatch({
|
|
18019
18145
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -18047,7 +18173,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
18047
18173
|
confirmNewPassword,
|
|
18048
18174
|
confirmNewPasswordError
|
|
18049
18175
|
}
|
|
18050
|
-
} = useContext(store$
|
|
18176
|
+
} = useContext(store$7);
|
|
18051
18177
|
const handleBlur = useCallback(() => {
|
|
18052
18178
|
return dispatch({
|
|
18053
18179
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -18088,7 +18214,7 @@ const PasswordChangeButton = ({
|
|
|
18088
18214
|
confirmNewPasswordError
|
|
18089
18215
|
},
|
|
18090
18216
|
dispatch
|
|
18091
|
-
} = useContext(store$
|
|
18217
|
+
} = useContext(store$7);
|
|
18092
18218
|
const {
|
|
18093
18219
|
t
|
|
18094
18220
|
} = useTranslation("passwordChange");
|
|
@@ -18154,17 +18280,17 @@ const PasswordChangeModal = ({
|
|
|
18154
18280
|
};
|
|
18155
18281
|
PasswordChangeModal.viewId = "password-change";
|
|
18156
18282
|
|
|
18157
|
-
const initialState$
|
|
18283
|
+
const initialState$6 = {
|
|
18158
18284
|
buttonDisabled: false,
|
|
18159
18285
|
alert: {
|
|
18160
18286
|
type: "error",
|
|
18161
18287
|
content: ""
|
|
18162
18288
|
}
|
|
18163
18289
|
};
|
|
18164
|
-
const store$
|
|
18290
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
18165
18291
|
const {
|
|
18166
|
-
Provider: Provider$
|
|
18167
|
-
} = store$
|
|
18292
|
+
Provider: Provider$6
|
|
18293
|
+
} = store$6;
|
|
18168
18294
|
|
|
18169
18295
|
const CartContainer = ({
|
|
18170
18296
|
style,
|
|
@@ -18255,21 +18381,21 @@ const CartContainer = ({
|
|
|
18255
18381
|
default:
|
|
18256
18382
|
return state;
|
|
18257
18383
|
}
|
|
18258
|
-
}, initialState$
|
|
18384
|
+
}, initialState$6);
|
|
18259
18385
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18260
18386
|
style: { ...style
|
|
18261
18387
|
},
|
|
18262
18388
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
18263
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18389
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
18264
18390
|
value: {
|
|
18265
18391
|
state,
|
|
18266
18392
|
dispatch
|
|
18267
18393
|
}
|
|
18268
18394
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18269
|
-
store: store$
|
|
18395
|
+
store: store$6,
|
|
18270
18396
|
key: i
|
|
18271
18397
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18272
|
-
store: store$
|
|
18398
|
+
store: store$6
|
|
18273
18399
|
})));
|
|
18274
18400
|
};
|
|
18275
18401
|
|
|
@@ -18306,7 +18432,7 @@ const CartSubmit = ({
|
|
|
18306
18432
|
buttonDisabled
|
|
18307
18433
|
},
|
|
18308
18434
|
dispatch
|
|
18309
|
-
} = useContext(store$
|
|
18435
|
+
} = useContext(store$6);
|
|
18310
18436
|
const {
|
|
18311
18437
|
t
|
|
18312
18438
|
} = useTranslation("cart");
|
|
@@ -18337,7 +18463,7 @@ const CartTotalPrice = () => {
|
|
|
18337
18463
|
state: {
|
|
18338
18464
|
alert
|
|
18339
18465
|
}
|
|
18340
|
-
} = useContext(store$
|
|
18466
|
+
} = useContext(store$6);
|
|
18341
18467
|
const {
|
|
18342
18468
|
cartItems
|
|
18343
18469
|
} = usePelcro();
|
|
@@ -18650,7 +18776,7 @@ const OrderConfirmModal = props => {
|
|
|
18650
18776
|
};
|
|
18651
18777
|
OrderConfirmModal.viewId = "order-confirm";
|
|
18652
18778
|
|
|
18653
|
-
const initialState$
|
|
18779
|
+
const initialState$5 = {
|
|
18654
18780
|
email: "",
|
|
18655
18781
|
firstName: "",
|
|
18656
18782
|
lastName: "",
|
|
@@ -18662,10 +18788,10 @@ const initialState$4 = {
|
|
|
18662
18788
|
content: ""
|
|
18663
18789
|
}
|
|
18664
18790
|
};
|
|
18665
|
-
const store$
|
|
18791
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
18666
18792
|
const {
|
|
18667
|
-
Provider: Provider$
|
|
18668
|
-
} = store$
|
|
18793
|
+
Provider: Provider$5
|
|
18794
|
+
} = store$5;
|
|
18669
18795
|
|
|
18670
18796
|
const GiftCreateContainer = ({
|
|
18671
18797
|
style,
|
|
@@ -18769,21 +18895,21 @@ const GiftCreateContainer = ({
|
|
|
18769
18895
|
default:
|
|
18770
18896
|
return state;
|
|
18771
18897
|
}
|
|
18772
|
-
}, initialState$
|
|
18898
|
+
}, initialState$5);
|
|
18773
18899
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18774
18900
|
style: { ...style
|
|
18775
18901
|
},
|
|
18776
18902
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
18777
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18903
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
18778
18904
|
value: {
|
|
18779
18905
|
state,
|
|
18780
18906
|
dispatch
|
|
18781
18907
|
}
|
|
18782
18908
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18783
|
-
store: store$
|
|
18909
|
+
store: store$5,
|
|
18784
18910
|
key: i
|
|
18785
18911
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18786
|
-
store: store$
|
|
18912
|
+
store: store$5
|
|
18787
18913
|
})));
|
|
18788
18914
|
};
|
|
18789
18915
|
|
|
@@ -18797,7 +18923,7 @@ const GiftCreateSubmitButton = ({
|
|
|
18797
18923
|
state: {
|
|
18798
18924
|
disableSubmit
|
|
18799
18925
|
}
|
|
18800
|
-
} = useContext(store$
|
|
18926
|
+
} = useContext(store$5);
|
|
18801
18927
|
const {
|
|
18802
18928
|
t
|
|
18803
18929
|
} = useTranslation("register");
|
|
@@ -18814,29 +18940,29 @@ const GiftCreateSubmitButton = ({
|
|
|
18814
18940
|
|
|
18815
18941
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18816
18942
|
initWithUserEmail: false,
|
|
18817
|
-
store: store$
|
|
18943
|
+
store: store$5
|
|
18818
18944
|
}, props));
|
|
18819
18945
|
|
|
18820
18946
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
18821
|
-
store: store$
|
|
18947
|
+
store: store$5
|
|
18822
18948
|
}, props));
|
|
18823
18949
|
|
|
18824
18950
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
18825
|
-
store: store$
|
|
18951
|
+
store: store$5
|
|
18826
18952
|
}, props));
|
|
18827
18953
|
|
|
18828
|
-
var _path$
|
|
18954
|
+
var _path$g;
|
|
18829
18955
|
|
|
18830
|
-
function _extends$
|
|
18956
|
+
function _extends$i() { _extends$i = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$i.apply(this, arguments); }
|
|
18831
18957
|
|
|
18832
18958
|
function SvgInfoCircle(props) {
|
|
18833
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
18959
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
18834
18960
|
xmlns: "http://www.w3.org/2000/svg",
|
|
18835
18961
|
className: "plc-w-5 plc-h-5",
|
|
18836
18962
|
fill: "none",
|
|
18837
18963
|
viewBox: "0 0 24 24",
|
|
18838
18964
|
stroke: "currentColor"
|
|
18839
|
-
}, props), _path$
|
|
18965
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
18840
18966
|
strokeLinecap: "round",
|
|
18841
18967
|
strokeLinejoin: "round",
|
|
18842
18968
|
strokeWidth: 2,
|
|
@@ -18907,7 +19033,7 @@ const GiftCreateStartDate = props => {
|
|
|
18907
19033
|
const {
|
|
18908
19034
|
dispatch,
|
|
18909
19035
|
state
|
|
18910
|
-
} = useContext(store$
|
|
19036
|
+
} = useContext(store$5);
|
|
18911
19037
|
|
|
18912
19038
|
const handleInputChange = value => {
|
|
18913
19039
|
dispatch({
|
|
@@ -18978,7 +19104,7 @@ function GiftCreateMessage(props) {
|
|
|
18978
19104
|
const {
|
|
18979
19105
|
dispatch,
|
|
18980
19106
|
state
|
|
18981
|
-
} = useContext(store$
|
|
19107
|
+
} = useContext(store$5);
|
|
18982
19108
|
|
|
18983
19109
|
const handleInputChange = value => {
|
|
18984
19110
|
dispatch({
|
|
@@ -19098,7 +19224,7 @@ const GiftCreateModal = ({
|
|
|
19098
19224
|
};
|
|
19099
19225
|
GiftCreateModal.viewId = "gift-create";
|
|
19100
19226
|
|
|
19101
|
-
const initialState$
|
|
19227
|
+
const initialState$4 = {
|
|
19102
19228
|
giftCode: "",
|
|
19103
19229
|
buttonDisabled: true,
|
|
19104
19230
|
alert: {
|
|
@@ -19106,10 +19232,10 @@ const initialState$3 = {
|
|
|
19106
19232
|
content: ""
|
|
19107
19233
|
}
|
|
19108
19234
|
};
|
|
19109
|
-
const store$
|
|
19235
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
19110
19236
|
const {
|
|
19111
|
-
Provider: Provider$
|
|
19112
|
-
} = store$
|
|
19237
|
+
Provider: Provider$4
|
|
19238
|
+
} = store$4;
|
|
19113
19239
|
|
|
19114
19240
|
const GiftRedeemContainer = ({
|
|
19115
19241
|
style,
|
|
@@ -19174,21 +19300,21 @@ const GiftRedeemContainer = ({
|
|
|
19174
19300
|
default:
|
|
19175
19301
|
return state;
|
|
19176
19302
|
}
|
|
19177
|
-
}, initialState$
|
|
19303
|
+
}, initialState$4);
|
|
19178
19304
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19179
19305
|
style: { ...style
|
|
19180
19306
|
},
|
|
19181
19307
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
19182
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19308
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
19183
19309
|
value: {
|
|
19184
19310
|
state,
|
|
19185
19311
|
dispatch
|
|
19186
19312
|
}
|
|
19187
19313
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19188
|
-
store: store$
|
|
19314
|
+
store: store$4,
|
|
19189
19315
|
key: i
|
|
19190
19316
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19191
|
-
store: store$
|
|
19317
|
+
store: store$4
|
|
19192
19318
|
})));
|
|
19193
19319
|
};
|
|
19194
19320
|
|
|
@@ -19225,7 +19351,7 @@ function GiftCode({
|
|
|
19225
19351
|
}
|
|
19226
19352
|
|
|
19227
19353
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
19228
|
-
store: store$
|
|
19354
|
+
store: store$4
|
|
19229
19355
|
}, props));
|
|
19230
19356
|
|
|
19231
19357
|
const GiftRedeemSubmitButton = ({
|
|
@@ -19238,7 +19364,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
19238
19364
|
state: {
|
|
19239
19365
|
disableSubmit
|
|
19240
19366
|
}
|
|
19241
|
-
} = useContext(store$
|
|
19367
|
+
} = useContext(store$4);
|
|
19242
19368
|
const {
|
|
19243
19369
|
t
|
|
19244
19370
|
} = useTranslation("register");
|
|
@@ -19331,7 +19457,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
19331
19457
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
19332
19458
|
};
|
|
19333
19459
|
|
|
19334
|
-
const initialState$
|
|
19460
|
+
const initialState$3 = {
|
|
19335
19461
|
addresses: [],
|
|
19336
19462
|
selectedAddressId: null,
|
|
19337
19463
|
isSubmitting: false,
|
|
@@ -19340,10 +19466,10 @@ const initialState$2 = {
|
|
|
19340
19466
|
content: ""
|
|
19341
19467
|
}
|
|
19342
19468
|
};
|
|
19343
|
-
const store$
|
|
19469
|
+
const store$3 = /*#__PURE__*/createContext(initialState$3);
|
|
19344
19470
|
const {
|
|
19345
|
-
Provider: Provider$
|
|
19346
|
-
} = store$
|
|
19471
|
+
Provider: Provider$3
|
|
19472
|
+
} = store$3;
|
|
19347
19473
|
|
|
19348
19474
|
const AddressSelectContainer = ({
|
|
19349
19475
|
style,
|
|
@@ -19438,7 +19564,7 @@ const AddressSelectContainer = ({
|
|
|
19438
19564
|
default:
|
|
19439
19565
|
return state;
|
|
19440
19566
|
}
|
|
19441
|
-
}, initialState$
|
|
19567
|
+
}, initialState$3);
|
|
19442
19568
|
useEffect(() => {
|
|
19443
19569
|
var _window$Pelcro$user$r;
|
|
19444
19570
|
|
|
@@ -19451,16 +19577,16 @@ const AddressSelectContainer = ({
|
|
|
19451
19577
|
style: { ...style
|
|
19452
19578
|
},
|
|
19453
19579
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
19454
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19580
|
+
}, /*#__PURE__*/React__default.createElement(Provider$3, {
|
|
19455
19581
|
value: {
|
|
19456
19582
|
state,
|
|
19457
19583
|
dispatch
|
|
19458
19584
|
}
|
|
19459
19585
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19460
|
-
store: store$
|
|
19586
|
+
store: store$3,
|
|
19461
19587
|
key: i
|
|
19462
19588
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19463
|
-
store: store$
|
|
19589
|
+
store: store$3
|
|
19464
19590
|
})));
|
|
19465
19591
|
};
|
|
19466
19592
|
|
|
@@ -19471,7 +19597,7 @@ const AddressSelectList = () => {
|
|
|
19471
19597
|
addresses,
|
|
19472
19598
|
selectedAddressId
|
|
19473
19599
|
}
|
|
19474
|
-
} = useContext(store$
|
|
19600
|
+
} = useContext(store$3);
|
|
19475
19601
|
|
|
19476
19602
|
const handleAddressSelect = event => {
|
|
19477
19603
|
dispatch({
|
|
@@ -19515,7 +19641,7 @@ const AddressSelectSubmit = ({
|
|
|
19515
19641
|
selectedAddressId,
|
|
19516
19642
|
isSubmitting
|
|
19517
19643
|
}
|
|
19518
|
-
} = useContext(store$
|
|
19644
|
+
} = useContext(store$3);
|
|
19519
19645
|
const {
|
|
19520
19646
|
t
|
|
19521
19647
|
} = useTranslation("address");
|
|
@@ -19606,7 +19732,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
19606
19732
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
19607
19733
|
};
|
|
19608
19734
|
|
|
19609
|
-
const initialState$
|
|
19735
|
+
const initialState$2 = {
|
|
19610
19736
|
paymentMethods: [],
|
|
19611
19737
|
selectedPaymentMethodId: null,
|
|
19612
19738
|
isSubmitting: false,
|
|
@@ -19615,10 +19741,10 @@ const initialState$1 = {
|
|
|
19615
19741
|
content: ""
|
|
19616
19742
|
}
|
|
19617
19743
|
};
|
|
19618
|
-
const store$
|
|
19744
|
+
const store$2 = /*#__PURE__*/createContext(initialState$2);
|
|
19619
19745
|
const {
|
|
19620
|
-
Provider: Provider$
|
|
19621
|
-
} = store$
|
|
19746
|
+
Provider: Provider$2
|
|
19747
|
+
} = store$2;
|
|
19622
19748
|
|
|
19623
19749
|
const PaymentMethodSelectContainer = ({
|
|
19624
19750
|
style,
|
|
@@ -19663,7 +19789,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
19663
19789
|
default:
|
|
19664
19790
|
return state;
|
|
19665
19791
|
}
|
|
19666
|
-
}, initialState$
|
|
19792
|
+
}, initialState$2);
|
|
19667
19793
|
useEffect(() => {
|
|
19668
19794
|
var _window$Pelcro$user$r4;
|
|
19669
19795
|
|
|
@@ -19676,16 +19802,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
19676
19802
|
style: { ...style
|
|
19677
19803
|
},
|
|
19678
19804
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
19679
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19805
|
+
}, /*#__PURE__*/React__default.createElement(Provider$2, {
|
|
19680
19806
|
value: {
|
|
19681
19807
|
state,
|
|
19682
19808
|
dispatch
|
|
19683
19809
|
}
|
|
19684
19810
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19685
|
-
store: store$
|
|
19811
|
+
store: store$2,
|
|
19686
19812
|
key: i
|
|
19687
19813
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19688
|
-
store: store$
|
|
19814
|
+
store: store$2
|
|
19689
19815
|
})));
|
|
19690
19816
|
};
|
|
19691
19817
|
|
|
@@ -19699,7 +19825,7 @@ const PaymentMethodSelectList = () => {
|
|
|
19699
19825
|
paymentMethods,
|
|
19700
19826
|
selectedPaymentMethodId
|
|
19701
19827
|
}
|
|
19702
|
-
} = useContext(store$
|
|
19828
|
+
} = useContext(store$2);
|
|
19703
19829
|
|
|
19704
19830
|
const handlePaymentMethodSelect = event => {
|
|
19705
19831
|
dispatch({
|
|
@@ -19749,7 +19875,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
19749
19875
|
selectedPaymentMethodId,
|
|
19750
19876
|
isSubmitting
|
|
19751
19877
|
}
|
|
19752
|
-
} = useContext(store$
|
|
19878
|
+
} = useContext(store$2);
|
|
19753
19879
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
19754
19880
|
onClick: () => {
|
|
19755
19881
|
dispatch({
|
|
@@ -19823,8 +19949,8 @@ const PaymentMethodSelectModal = ({
|
|
|
19823
19949
|
};
|
|
19824
19950
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
19825
19951
|
|
|
19826
|
-
function _extends$
|
|
19827
|
-
_extends$
|
|
19952
|
+
function _extends$h() {
|
|
19953
|
+
_extends$h = Object.assign || function (target) {
|
|
19828
19954
|
for (var i = 1; i < arguments.length; i++) {
|
|
19829
19955
|
var source = arguments[i];
|
|
19830
19956
|
|
|
@@ -19838,7 +19964,7 @@ function _extends$g() {
|
|
|
19838
19964
|
return target;
|
|
19839
19965
|
};
|
|
19840
19966
|
|
|
19841
|
-
return _extends$
|
|
19967
|
+
return _extends$h.apply(this, arguments);
|
|
19842
19968
|
}
|
|
19843
19969
|
|
|
19844
19970
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -20022,7 +20148,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
20022
20148
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
20023
20149
|
return null;
|
|
20024
20150
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
20025
|
-
return _render(_extends$
|
|
20151
|
+
return _render(_extends$h({}, _rest, {
|
|
20026
20152
|
hidden: true,
|
|
20027
20153
|
style: {
|
|
20028
20154
|
display: 'none'
|
|
@@ -20550,7 +20676,7 @@ function TransitionChild(props) {
|
|
|
20550
20676
|
var passthroughProps = rest;
|
|
20551
20677
|
return React__default.createElement(NestingContext.Provider, {
|
|
20552
20678
|
value: nesting
|
|
20553
|
-
}, render(_extends$
|
|
20679
|
+
}, render(_extends$h({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
20554
20680
|
}
|
|
20555
20681
|
|
|
20556
20682
|
function Transition(props) {
|
|
@@ -20594,7 +20720,7 @@ function Transition(props) {
|
|
|
20594
20720
|
value: nestingBag
|
|
20595
20721
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
20596
20722
|
value: transitionBag
|
|
20597
|
-
}, render(_extends$
|
|
20723
|
+
}, render(_extends$h({}, sharedProps, {
|
|
20598
20724
|
as: Fragment,
|
|
20599
20725
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
20600
20726
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -20721,12 +20847,12 @@ var ActionTypes;
|
|
|
20721
20847
|
})(ActionTypes || (ActionTypes = {}));
|
|
20722
20848
|
|
|
20723
20849
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
20724
|
-
return _extends$
|
|
20850
|
+
return _extends$h({}, state, {
|
|
20725
20851
|
activeItemIndex: null,
|
|
20726
20852
|
menuState: MenuStates.Closed
|
|
20727
20853
|
});
|
|
20728
20854
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
20729
|
-
return _extends$
|
|
20855
|
+
return _extends$h({}, state, {
|
|
20730
20856
|
menuState: MenuStates.Open
|
|
20731
20857
|
});
|
|
20732
20858
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -20745,7 +20871,7 @@ var ActionTypes;
|
|
|
20745
20871
|
}
|
|
20746
20872
|
});
|
|
20747
20873
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
20748
|
-
return _extends$
|
|
20874
|
+
return _extends$h({}, state, {
|
|
20749
20875
|
searchQuery: '',
|
|
20750
20876
|
activeItemIndex: activeItemIndex
|
|
20751
20877
|
});
|
|
@@ -20756,19 +20882,19 @@ var ActionTypes;
|
|
|
20756
20882
|
|
|
20757
20883
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
20758
20884
|
});
|
|
20759
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
20885
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$h({}, state, {
|
|
20760
20886
|
searchQuery: searchQuery
|
|
20761
20887
|
});
|
|
20762
|
-
return _extends$
|
|
20888
|
+
return _extends$h({}, state, {
|
|
20763
20889
|
searchQuery: searchQuery,
|
|
20764
20890
|
activeItemIndex: match
|
|
20765
20891
|
});
|
|
20766
20892
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
20767
|
-
return _extends$
|
|
20893
|
+
return _extends$h({}, state, {
|
|
20768
20894
|
searchQuery: ''
|
|
20769
20895
|
});
|
|
20770
20896
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
20771
|
-
return _extends$
|
|
20897
|
+
return _extends$h({}, state, {
|
|
20772
20898
|
items: [].concat(state.items, [{
|
|
20773
20899
|
id: action.id,
|
|
20774
20900
|
dataRef: action.dataRef
|
|
@@ -20781,7 +20907,7 @@ var ActionTypes;
|
|
|
20781
20907
|
return a.id === action.id;
|
|
20782
20908
|
});
|
|
20783
20909
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
20784
|
-
return _extends$
|
|
20910
|
+
return _extends$h({}, state, {
|
|
20785
20911
|
items: nextItems,
|
|
20786
20912
|
activeItemIndex: function () {
|
|
20787
20913
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -20820,19 +20946,19 @@ var ActionTypes$1;
|
|
|
20820
20946
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
20821
20947
|
if (state.disabled) return state;
|
|
20822
20948
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20823
|
-
return _extends$
|
|
20949
|
+
return _extends$h({}, state, {
|
|
20824
20950
|
activeOptionIndex: null,
|
|
20825
20951
|
listboxState: ListboxStates.Closed
|
|
20826
20952
|
});
|
|
20827
20953
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
20828
20954
|
if (state.disabled) return state;
|
|
20829
20955
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
20830
|
-
return _extends$
|
|
20956
|
+
return _extends$h({}, state, {
|
|
20831
20957
|
listboxState: ListboxStates.Open
|
|
20832
20958
|
});
|
|
20833
20959
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
20834
20960
|
if (state.disabled === action.disabled) return state;
|
|
20835
|
-
return _extends$
|
|
20961
|
+
return _extends$h({}, state, {
|
|
20836
20962
|
disabled: action.disabled
|
|
20837
20963
|
});
|
|
20838
20964
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -20853,7 +20979,7 @@ var ActionTypes$1;
|
|
|
20853
20979
|
}
|
|
20854
20980
|
});
|
|
20855
20981
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
20856
|
-
return _extends$
|
|
20982
|
+
return _extends$h({}, state, {
|
|
20857
20983
|
searchQuery: '',
|
|
20858
20984
|
activeOptionIndex: activeOptionIndex
|
|
20859
20985
|
});
|
|
@@ -20866,10 +20992,10 @@ var ActionTypes$1;
|
|
|
20866
20992
|
|
|
20867
20993
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
20868
20994
|
});
|
|
20869
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
20995
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$h({}, state, {
|
|
20870
20996
|
searchQuery: searchQuery
|
|
20871
20997
|
});
|
|
20872
|
-
return _extends$
|
|
20998
|
+
return _extends$h({}, state, {
|
|
20873
20999
|
searchQuery: searchQuery,
|
|
20874
21000
|
activeOptionIndex: match
|
|
20875
21001
|
});
|
|
@@ -20877,11 +21003,11 @@ var ActionTypes$1;
|
|
|
20877
21003
|
if (state.disabled) return state;
|
|
20878
21004
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
20879
21005
|
if (state.searchQuery === '') return state;
|
|
20880
|
-
return _extends$
|
|
21006
|
+
return _extends$h({}, state, {
|
|
20881
21007
|
searchQuery: ''
|
|
20882
21008
|
});
|
|
20883
21009
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
20884
|
-
return _extends$
|
|
21010
|
+
return _extends$h({}, state, {
|
|
20885
21011
|
options: [].concat(state.options, [{
|
|
20886
21012
|
id: action.id,
|
|
20887
21013
|
dataRef: action.dataRef
|
|
@@ -20894,7 +21020,7 @@ var ActionTypes$1;
|
|
|
20894
21020
|
return a.id === action.id;
|
|
20895
21021
|
});
|
|
20896
21022
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
20897
|
-
return _extends$
|
|
21023
|
+
return _extends$h({}, state, {
|
|
20898
21024
|
options: nextOptions,
|
|
20899
21025
|
activeOptionIndex: function () {
|
|
20900
21026
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -20955,18 +21081,18 @@ const getPaymentCardIcon = name => {
|
|
|
20955
21081
|
}));
|
|
20956
21082
|
};
|
|
20957
21083
|
|
|
20958
|
-
var _path$
|
|
21084
|
+
var _path$f;
|
|
20959
21085
|
|
|
20960
|
-
function _extends$
|
|
21086
|
+
function _extends$g() { _extends$g = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$g.apply(this, arguments); }
|
|
20961
21087
|
|
|
20962
21088
|
function SvgChevronRight(props) {
|
|
20963
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21089
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
20964
21090
|
className: "plc-w-6 plc-h-6",
|
|
20965
21091
|
xmlns: "http://www.w3.org/2000/svg",
|
|
20966
21092
|
fill: "none",
|
|
20967
21093
|
viewBox: "0 0 24 24",
|
|
20968
21094
|
stroke: "currentColor"
|
|
20969
|
-
}, props), _path$
|
|
21095
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
20970
21096
|
strokeLinecap: "round",
|
|
20971
21097
|
strokeLinejoin: "round",
|
|
20972
21098
|
strokeWidth: 2,
|
|
@@ -21182,18 +21308,18 @@ const SavedItems = ({
|
|
|
21182
21308
|
});
|
|
21183
21309
|
};
|
|
21184
21310
|
|
|
21185
|
-
var _path$
|
|
21311
|
+
var _path$e;
|
|
21186
21312
|
|
|
21187
|
-
function _extends$
|
|
21313
|
+
function _extends$f() { _extends$f = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$f.apply(this, arguments); }
|
|
21188
21314
|
|
|
21189
21315
|
function SvgRefresh(props) {
|
|
21190
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21316
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
21191
21317
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21192
21318
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21193
21319
|
fill: "none",
|
|
21194
21320
|
viewBox: "0 0 24 24",
|
|
21195
21321
|
stroke: "currentColor"
|
|
21196
|
-
}, props), _path$
|
|
21322
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
21197
21323
|
strokeLinecap: "round",
|
|
21198
21324
|
strokeLinejoin: "round",
|
|
21199
21325
|
strokeWidth: 2,
|
|
@@ -21201,35 +21327,35 @@ function SvgRefresh(props) {
|
|
|
21201
21327
|
})));
|
|
21202
21328
|
}
|
|
21203
21329
|
|
|
21204
|
-
var _path$
|
|
21330
|
+
var _path$d;
|
|
21205
21331
|
|
|
21206
|
-
function _extends$
|
|
21332
|
+
function _extends$e() { _extends$e = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$e.apply(this, arguments); }
|
|
21207
21333
|
|
|
21208
21334
|
function SvgCalendar(props) {
|
|
21209
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21335
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21210
21336
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21211
21337
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21212
21338
|
viewBox: "0 0 20 20",
|
|
21213
21339
|
fill: "currentColor"
|
|
21214
|
-
}, props), _path$
|
|
21340
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21215
21341
|
fillRule: "evenodd",
|
|
21216
21342
|
d: "M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",
|
|
21217
21343
|
clipRule: "evenodd"
|
|
21218
21344
|
})));
|
|
21219
21345
|
}
|
|
21220
21346
|
|
|
21221
|
-
var _path$
|
|
21347
|
+
var _path$c;
|
|
21222
21348
|
|
|
21223
|
-
function _extends$
|
|
21349
|
+
function _extends$d() { _extends$d = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$d.apply(this, arguments); }
|
|
21224
21350
|
|
|
21225
21351
|
function SvgPlus(props) {
|
|
21226
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21352
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
21227
21353
|
className: "plc-w-5 plc-h-5",
|
|
21228
21354
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21229
21355
|
fill: "none",
|
|
21230
21356
|
viewBox: "0 0 24 24",
|
|
21231
21357
|
stroke: "currentColor"
|
|
21232
|
-
}, props), _path$
|
|
21358
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
21233
21359
|
strokeLinecap: "round",
|
|
21234
21360
|
strokeLinejoin: "round",
|
|
21235
21361
|
strokeWidth: 2,
|
|
@@ -21237,17 +21363,17 @@ function SvgPlus(props) {
|
|
|
21237
21363
|
})));
|
|
21238
21364
|
}
|
|
21239
21365
|
|
|
21240
|
-
var _path$
|
|
21366
|
+
var _path$b;
|
|
21241
21367
|
|
|
21242
|
-
function _extends$
|
|
21368
|
+
function _extends$c() { _extends$c = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$c.apply(this, arguments); }
|
|
21243
21369
|
|
|
21244
21370
|
function SvgCheckMark(props) {
|
|
21245
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21371
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
21246
21372
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21247
21373
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21248
21374
|
viewBox: "0 0 20 20",
|
|
21249
21375
|
fill: "currentColor"
|
|
21250
|
-
}, props), _path$
|
|
21376
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
21251
21377
|
fillRule: "evenodd",
|
|
21252
21378
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z",
|
|
21253
21379
|
clipRule: "evenodd"
|
|
@@ -21309,12 +21435,20 @@ const SubscriptionsItems = ({
|
|
|
21309
21435
|
const {
|
|
21310
21436
|
t
|
|
21311
21437
|
} = useTranslation("dashboard");
|
|
21438
|
+
const {
|
|
21439
|
+
switchView,
|
|
21440
|
+
isAuthenticated
|
|
21441
|
+
} = usePelcro();
|
|
21312
21442
|
const subs = getNonDonationSubs();
|
|
21313
21443
|
if (subs.length === 0) return null;
|
|
21314
21444
|
return subs.sort((a, b) => a.expires_at - b.expires_at).sort((a, b) => a.renews_at - b.renews_at).map(sub => {
|
|
21315
21445
|
const isActive = activeMenu === sub.id; // Cancel button click handlers
|
|
21316
21446
|
|
|
21317
21447
|
const onCancelClick = () => {
|
|
21448
|
+
if (userMustVerifyEmail()) {
|
|
21449
|
+
return switchView("email-verify");
|
|
21450
|
+
}
|
|
21451
|
+
|
|
21318
21452
|
onClose === null || onClose === void 0 ? void 0 : onClose();
|
|
21319
21453
|
notify.confirm((onSuccess, onFailure) => {
|
|
21320
21454
|
cancelSubscription(sub.id, onSuccess, onFailure);
|
|
@@ -21330,6 +21464,10 @@ const SubscriptionsItems = ({
|
|
|
21330
21464
|
|
|
21331
21465
|
|
|
21332
21466
|
const onReactivateClick = () => {
|
|
21467
|
+
if (userMustVerifyEmail()) {
|
|
21468
|
+
return switchView("email-verify");
|
|
21469
|
+
}
|
|
21470
|
+
|
|
21333
21471
|
reactivateSubscription(sub.id);
|
|
21334
21472
|
}; // Renew click
|
|
21335
21473
|
|
|
@@ -21530,18 +21668,18 @@ Accordion.item = function AccordionItem({
|
|
|
21530
21668
|
}, content)) : null;
|
|
21531
21669
|
};
|
|
21532
21670
|
|
|
21533
|
-
var _path$
|
|
21671
|
+
var _path$a;
|
|
21534
21672
|
|
|
21535
|
-
function _extends$
|
|
21673
|
+
function _extends$b() { _extends$b = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$b.apply(this, arguments); }
|
|
21536
21674
|
|
|
21537
21675
|
function SvgExit(props) {
|
|
21538
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21676
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
21539
21677
|
className: "plc-w-6 plc-h-6",
|
|
21540
21678
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21541
21679
|
fill: "none",
|
|
21542
21680
|
viewBox: "0 0 24 24",
|
|
21543
21681
|
stroke: "currentColor"
|
|
21544
|
-
}, props), _path$
|
|
21682
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
21545
21683
|
strokeLinecap: "round",
|
|
21546
21684
|
strokeLinejoin: "round",
|
|
21547
21685
|
strokeWidth: 2,
|
|
@@ -21549,17 +21687,17 @@ function SvgExit(props) {
|
|
|
21549
21687
|
})));
|
|
21550
21688
|
}
|
|
21551
21689
|
|
|
21552
|
-
var _path$
|
|
21690
|
+
var _path$9;
|
|
21553
21691
|
|
|
21554
|
-
function _extends$
|
|
21692
|
+
function _extends$a() { _extends$a = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$a.apply(this, arguments); }
|
|
21555
21693
|
|
|
21556
21694
|
function SvgUser(props) {
|
|
21557
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21695
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
21558
21696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21559
21697
|
fill: "none",
|
|
21560
21698
|
viewBox: "0 0 24 24",
|
|
21561
21699
|
stroke: "currentColor"
|
|
21562
|
-
}, props), _path$
|
|
21700
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
21563
21701
|
strokeLinecap: "round",
|
|
21564
21702
|
strokeLinejoin: "round",
|
|
21565
21703
|
strokeWidth: 2,
|
|
@@ -21567,18 +21705,18 @@ function SvgUser(props) {
|
|
|
21567
21705
|
})));
|
|
21568
21706
|
}
|
|
21569
21707
|
|
|
21570
|
-
var _path$
|
|
21708
|
+
var _path$8;
|
|
21571
21709
|
|
|
21572
|
-
function _extends$
|
|
21710
|
+
function _extends$9() { _extends$9 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$9.apply(this, arguments); }
|
|
21573
21711
|
|
|
21574
21712
|
function SvgNewsletter(props) {
|
|
21575
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21713
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
21576
21714
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21577
21715
|
className: "plc-h-5 plc-w-5",
|
|
21578
21716
|
fill: "none",
|
|
21579
21717
|
viewBox: "0 0 24 24",
|
|
21580
21718
|
stroke: "currentColor"
|
|
21581
|
-
}, props), _path$
|
|
21719
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
21582
21720
|
strokeLinecap: "round",
|
|
21583
21721
|
strokeLinejoin: "round",
|
|
21584
21722
|
strokeWidth: 2,
|
|
@@ -21586,18 +21724,18 @@ function SvgNewsletter(props) {
|
|
|
21586
21724
|
})));
|
|
21587
21725
|
}
|
|
21588
21726
|
|
|
21589
|
-
var _path$
|
|
21727
|
+
var _path$7;
|
|
21590
21728
|
|
|
21591
|
-
function _extends$
|
|
21729
|
+
function _extends$8() { _extends$8 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$8.apply(this, arguments); }
|
|
21592
21730
|
|
|
21593
21731
|
function SvgPaymentCard(props) {
|
|
21594
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21732
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
21595
21733
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21596
21734
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21597
21735
|
fill: "none",
|
|
21598
21736
|
viewBox: "0 0 24 24",
|
|
21599
21737
|
stroke: "currentColor"
|
|
21600
|
-
}, props), _path$
|
|
21738
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
21601
21739
|
strokeLinecap: "round",
|
|
21602
21740
|
strokeLinejoin: "round",
|
|
21603
21741
|
strokeWidth: 2,
|
|
@@ -21605,23 +21743,23 @@ function SvgPaymentCard(props) {
|
|
|
21605
21743
|
})));
|
|
21606
21744
|
}
|
|
21607
21745
|
|
|
21608
|
-
var _path$
|
|
21746
|
+
var _path$6, _path2$1;
|
|
21609
21747
|
|
|
21610
|
-
function _extends$
|
|
21748
|
+
function _extends$7() { _extends$7 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$7.apply(this, arguments); }
|
|
21611
21749
|
|
|
21612
21750
|
function SvgLocationPin(props) {
|
|
21613
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21751
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
21614
21752
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21615
21753
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21616
21754
|
fill: "none",
|
|
21617
21755
|
viewBox: "0 0 24 24",
|
|
21618
21756
|
stroke: "currentColor"
|
|
21619
|
-
}, props), _path$
|
|
21757
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
21620
21758
|
strokeLinecap: "round",
|
|
21621
21759
|
strokeLinejoin: "round",
|
|
21622
21760
|
strokeWidth: 2,
|
|
21623
21761
|
d: "M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z"
|
|
21624
|
-
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
21762
|
+
})), _path2$1 || (_path2$1 = /*#__PURE__*/React.createElement("path", {
|
|
21625
21763
|
strokeLinecap: "round",
|
|
21626
21764
|
strokeLinejoin: "round",
|
|
21627
21765
|
strokeWidth: 2,
|
|
@@ -21631,10 +21769,10 @@ function SvgLocationPin(props) {
|
|
|
21631
21769
|
|
|
21632
21770
|
var _switch;
|
|
21633
21771
|
|
|
21634
|
-
function _extends$
|
|
21772
|
+
function _extends$6() { _extends$6 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$6.apply(this, arguments); }
|
|
21635
21773
|
|
|
21636
21774
|
function SvgSubscription(props) {
|
|
21637
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21775
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
21638
21776
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21639
21777
|
viewBox: "0 0 100 125",
|
|
21640
21778
|
fill: "currentColor"
|
|
@@ -21649,18 +21787,18 @@ function SvgSubscription(props) {
|
|
|
21649
21787
|
}))))));
|
|
21650
21788
|
}
|
|
21651
21789
|
|
|
21652
|
-
var _path$
|
|
21790
|
+
var _path$5;
|
|
21653
21791
|
|
|
21654
|
-
function _extends$
|
|
21792
|
+
function _extends$5() { _extends$5 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$5.apply(this, arguments); }
|
|
21655
21793
|
|
|
21656
21794
|
function SvgShopping(props) {
|
|
21657
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21795
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
21658
21796
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21659
21797
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21660
21798
|
fill: "none",
|
|
21661
21799
|
viewBox: "0 0 24 24",
|
|
21662
21800
|
stroke: "currentColor"
|
|
21663
|
-
}, props), _path$
|
|
21801
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
21664
21802
|
strokeLinecap: "round",
|
|
21665
21803
|
strokeLinejoin: "round",
|
|
21666
21804
|
strokeWidth: 2,
|
|
@@ -21668,18 +21806,18 @@ function SvgShopping(props) {
|
|
|
21668
21806
|
})));
|
|
21669
21807
|
}
|
|
21670
21808
|
|
|
21671
|
-
var _path$
|
|
21809
|
+
var _path$4;
|
|
21672
21810
|
|
|
21673
|
-
function _extends$
|
|
21811
|
+
function _extends$4() { _extends$4 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$4.apply(this, arguments); }
|
|
21674
21812
|
|
|
21675
21813
|
function SvgBookmark(props) {
|
|
21676
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21814
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
21677
21815
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
21678
21816
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21679
21817
|
fill: "none",
|
|
21680
21818
|
viewBox: "0 0 24 24",
|
|
21681
21819
|
stroke: "currentColor"
|
|
21682
|
-
}, props), _path$
|
|
21820
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
21683
21821
|
strokeLinecap: "round",
|
|
21684
21822
|
strokeLinejoin: "round",
|
|
21685
21823
|
strokeWidth: 2,
|
|
@@ -21687,33 +21825,33 @@ function SvgBookmark(props) {
|
|
|
21687
21825
|
})));
|
|
21688
21826
|
}
|
|
21689
21827
|
|
|
21690
|
-
var _path$
|
|
21828
|
+
var _path$3;
|
|
21691
21829
|
|
|
21692
|
-
function _extends$
|
|
21830
|
+
function _extends$3() { _extends$3 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$3.apply(this, arguments); }
|
|
21693
21831
|
|
|
21694
21832
|
function SvgKey(props) {
|
|
21695
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21833
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
21696
21834
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21697
21835
|
viewBox: "0 0 20 20",
|
|
21698
21836
|
fill: "currentColor"
|
|
21699
|
-
}, props), _path$
|
|
21837
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
21700
21838
|
fillRule: "evenodd",
|
|
21701
21839
|
d: "M18 8a6 6 0 01-7.743 5.743L10 14l-1 1-1 1H6v2H2v-4l4.257-4.257A6 6 0 1118 8zm-6-4a1 1 0 100 2 2 2 0 012 2 1 1 0 102 0 4 4 0 00-4-4z",
|
|
21702
21840
|
clipRule: "evenodd"
|
|
21703
21841
|
})));
|
|
21704
21842
|
}
|
|
21705
21843
|
|
|
21706
|
-
var _path$
|
|
21844
|
+
var _path$2;
|
|
21707
21845
|
|
|
21708
|
-
function _extends$
|
|
21846
|
+
function _extends$2() { _extends$2 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$2.apply(this, arguments); }
|
|
21709
21847
|
|
|
21710
21848
|
function SvgDonate(props) {
|
|
21711
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21849
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
21712
21850
|
width: 24,
|
|
21713
21851
|
height: 24,
|
|
21714
21852
|
fill: "currentColor",
|
|
21715
21853
|
xmlns: "http://www.w3.org/2000/svg"
|
|
21716
|
-
}, props), _path$
|
|
21854
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
21717
21855
|
d: "M4 21h9.62a3.995 3.995 0 003.037-1.397l5.102-5.952a1 1 0 00-.442-1.6l-1.968-.656a3.043 3.043 0 00-2.823.503l-3.185 2.547-.617-1.235A3.98 3.98 0 009.146 11H4c-1.103 0-2 .897-2 2v6c0 1.103.897 2 2 2zm0-8h5.146c.763 0 1.448.423 1.789 1.105l.447.895H7v2h6.014a.996.996 0 00.442-.11l.003-.001.004-.002h.003l.002-.001h.004l.001-.001c.009.003.003-.001.003-.001.01 0 .002-.001.002-.001h.001l.002-.001.003-.001.002-.001.002-.001.003-.001.002-.001c.003 0 .001-.001.002-.001l.003-.002.002-.001.002-.001.003-.001.002-.001h.001l.002-.001h.001l.002-.001.002-.001c.009-.001.003-.001.003-.001l.002-.001a.915.915 0 00.11-.078l4.146-3.317c.262-.208.623-.273.94-.167l.557.186-4.133 4.823a2.029 2.029 0 01-1.52.688H4v-6zM16 2h-.017c-.163.002-1.006.039-1.983.705-.951-.648-1.774-.7-1.968-.704L12.002 2h-.004c-.801 0-1.555.313-2.119.878C9.313 3.445 9 4.198 9 5s.313 1.555.861 2.104l3.414 3.586a1.006 1.006 0 001.45-.001l3.396-3.568C18.688 6.555 19 5.802 19 5s-.313-1.555-.878-2.121A2.978 2.978 0 0016.002 2H16zm1 3c0 .267-.104.518-.311.725L14 8.55l-2.707-2.843C11.104 5.518 11 5.267 11 5s.104-.518.294-.708A.977.977 0 0111.979 4c.025.001.502.032 1.067.485.081.065.163.139.247.222l.707.707.707-.707c.084-.083.166-.157.247-.222.529-.425.976-.478 1.052-.484a.987.987 0 01.701.292c.189.189.293.44.293.707z"
|
|
21718
21856
|
})));
|
|
21719
21857
|
}
|
|
@@ -22359,7 +22497,7 @@ const DashboardOpenButton = () => {
|
|
|
22359
22497
|
};
|
|
22360
22498
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
22361
22499
|
|
|
22362
|
-
const initialState = {
|
|
22500
|
+
const initialState$1 = {
|
|
22363
22501
|
imageSrc: null,
|
|
22364
22502
|
crop: {
|
|
22365
22503
|
x: 0,
|
|
@@ -22373,10 +22511,10 @@ const initialState = {
|
|
|
22373
22511
|
content: ""
|
|
22374
22512
|
}
|
|
22375
22513
|
};
|
|
22376
|
-
const store = /*#__PURE__*/createContext(initialState);
|
|
22514
|
+
const store$1 = /*#__PURE__*/createContext(initialState$1);
|
|
22377
22515
|
const {
|
|
22378
|
-
Provider
|
|
22379
|
-
} = store;
|
|
22516
|
+
Provider: Provider$1
|
|
22517
|
+
} = store$1;
|
|
22380
22518
|
|
|
22381
22519
|
const ProfilePicChangeContainer = ({
|
|
22382
22520
|
style,
|
|
@@ -22510,21 +22648,21 @@ const ProfilePicChangeContainer = ({
|
|
|
22510
22648
|
default:
|
|
22511
22649
|
return state;
|
|
22512
22650
|
}
|
|
22513
|
-
}, initialState);
|
|
22651
|
+
}, initialState$1);
|
|
22514
22652
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
22515
22653
|
style: { ...style
|
|
22516
22654
|
},
|
|
22517
22655
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
22518
|
-
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
22656
|
+
}, /*#__PURE__*/React__default.createElement(Provider$1, {
|
|
22519
22657
|
value: {
|
|
22520
22658
|
state,
|
|
22521
22659
|
dispatch
|
|
22522
22660
|
}
|
|
22523
22661
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
22524
|
-
store,
|
|
22662
|
+
store: store$1,
|
|
22525
22663
|
key: i
|
|
22526
22664
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
22527
|
-
store
|
|
22665
|
+
store: store$1
|
|
22528
22666
|
})));
|
|
22529
22667
|
};
|
|
22530
22668
|
/**
|
|
@@ -22586,7 +22724,7 @@ const ProfilePicChangeButton = ({
|
|
|
22586
22724
|
isSubmitting
|
|
22587
22725
|
},
|
|
22588
22726
|
dispatch
|
|
22589
|
-
} = useContext(store);
|
|
22727
|
+
} = useContext(store$1);
|
|
22590
22728
|
const {
|
|
22591
22729
|
t
|
|
22592
22730
|
} = useTranslation("userEdit");
|
|
@@ -23954,7 +24092,7 @@ const ProfilePicChangeCropper = ({
|
|
|
23954
24092
|
zoom
|
|
23955
24093
|
},
|
|
23956
24094
|
dispatch
|
|
23957
|
-
} = useContext(store);
|
|
24095
|
+
} = useContext(store$1);
|
|
23958
24096
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23959
24097
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
23960
24098
|
}, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
|
|
@@ -23996,7 +24134,7 @@ const ProfilePicChangeZoom = ({
|
|
|
23996
24134
|
zoom
|
|
23997
24135
|
},
|
|
23998
24136
|
dispatch
|
|
23999
|
-
} = useContext(store);
|
|
24137
|
+
} = useContext(store$1);
|
|
24000
24138
|
const {
|
|
24001
24139
|
t
|
|
24002
24140
|
} = useTranslation("userEdit");
|
|
@@ -24019,18 +24157,18 @@ const ProfilePicChangeZoom = ({
|
|
|
24019
24157
|
}, otherProps)));
|
|
24020
24158
|
};
|
|
24021
24159
|
|
|
24022
|
-
var _path;
|
|
24160
|
+
var _path$1;
|
|
24023
24161
|
|
|
24024
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24162
|
+
function _extends$1() { _extends$1 = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1.apply(this, arguments); }
|
|
24025
24163
|
|
|
24026
24164
|
function SvgPhotograph(props) {
|
|
24027
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
24165
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
24028
24166
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24029
24167
|
className: "plc-h-6 plc-w-6",
|
|
24030
24168
|
fill: "none",
|
|
24031
24169
|
viewBox: "0 0 24 24",
|
|
24032
24170
|
stroke: "currentColor"
|
|
24033
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
24171
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
24034
24172
|
strokeLinecap: "round",
|
|
24035
24173
|
strokeLinejoin: "round",
|
|
24036
24174
|
strokeWidth: 2,
|
|
@@ -24048,7 +24186,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
24048
24186
|
state: {
|
|
24049
24187
|
isSubmitting
|
|
24050
24188
|
}
|
|
24051
|
-
} = useContext(store);
|
|
24189
|
+
} = useContext(store$1);
|
|
24052
24190
|
const {
|
|
24053
24191
|
t
|
|
24054
24192
|
} = useTranslation("userEdit");
|
|
@@ -24090,7 +24228,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
24090
24228
|
state: {
|
|
24091
24229
|
isSubmitting
|
|
24092
24230
|
}
|
|
24093
|
-
} = useContext(store);
|
|
24231
|
+
} = useContext(store$1);
|
|
24094
24232
|
const {
|
|
24095
24233
|
t
|
|
24096
24234
|
} = useTranslation("userEdit");
|
|
@@ -24113,7 +24251,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
24113
24251
|
state: {
|
|
24114
24252
|
imageSrc
|
|
24115
24253
|
}
|
|
24116
|
-
} = useContext(store);
|
|
24254
|
+
} = useContext(store$1);
|
|
24117
24255
|
const {
|
|
24118
24256
|
t
|
|
24119
24257
|
} = useTranslation("userEdit");
|
|
@@ -24175,4 +24313,180 @@ function ProfilePicChangeModal({
|
|
|
24175
24313
|
}
|
|
24176
24314
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
24177
24315
|
|
|
24178
|
-
|
|
24316
|
+
const initialState = {
|
|
24317
|
+
isSubmitting: false,
|
|
24318
|
+
alert: {
|
|
24319
|
+
type: "error",
|
|
24320
|
+
content: ""
|
|
24321
|
+
}
|
|
24322
|
+
};
|
|
24323
|
+
const store = /*#__PURE__*/createContext(initialState);
|
|
24324
|
+
const {
|
|
24325
|
+
Provider
|
|
24326
|
+
} = store;
|
|
24327
|
+
|
|
24328
|
+
const EmailVerifyContainer = ({
|
|
24329
|
+
style,
|
|
24330
|
+
className = "",
|
|
24331
|
+
onSuccess = () => {},
|
|
24332
|
+
onFailure = () => {},
|
|
24333
|
+
children,
|
|
24334
|
+
...props
|
|
24335
|
+
}) => {
|
|
24336
|
+
const {
|
|
24337
|
+
t
|
|
24338
|
+
} = useTranslation("verifyEmail");
|
|
24339
|
+
|
|
24340
|
+
const submit = () => {
|
|
24341
|
+
window.Pelcro.user.resendEmailVerification((err, res) => {
|
|
24342
|
+
dispatch({
|
|
24343
|
+
type: LOADING,
|
|
24344
|
+
payload: false
|
|
24345
|
+
});
|
|
24346
|
+
|
|
24347
|
+
if (err) {
|
|
24348
|
+
dispatch({
|
|
24349
|
+
type: SHOW_ALERT,
|
|
24350
|
+
payload: {
|
|
24351
|
+
type: "error",
|
|
24352
|
+
content: getErrorMessages(err)
|
|
24353
|
+
}
|
|
24354
|
+
});
|
|
24355
|
+
return onFailure(err);
|
|
24356
|
+
}
|
|
24357
|
+
|
|
24358
|
+
dispatch({
|
|
24359
|
+
type: SHOW_ALERT,
|
|
24360
|
+
payload: {
|
|
24361
|
+
type: "success",
|
|
24362
|
+
content: t("messages.resent")
|
|
24363
|
+
}
|
|
24364
|
+
});
|
|
24365
|
+
return onSuccess(res);
|
|
24366
|
+
});
|
|
24367
|
+
};
|
|
24368
|
+
|
|
24369
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
24370
|
+
switch (action.type) {
|
|
24371
|
+
case SHOW_ALERT:
|
|
24372
|
+
return lib_7({ ...state,
|
|
24373
|
+
alert: action.payload
|
|
24374
|
+
});
|
|
24375
|
+
|
|
24376
|
+
case LOADING:
|
|
24377
|
+
return lib_7({ ...state,
|
|
24378
|
+
isSubmitting: action.payload
|
|
24379
|
+
});
|
|
24380
|
+
|
|
24381
|
+
case HANDLE_SUBMIT:
|
|
24382
|
+
return lib_5({ ...state,
|
|
24383
|
+
isSubmitting: true
|
|
24384
|
+
}, (state, dispatch) => submit());
|
|
24385
|
+
|
|
24386
|
+
default:
|
|
24387
|
+
return state;
|
|
24388
|
+
}
|
|
24389
|
+
}, initialState);
|
|
24390
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24391
|
+
style: { ...style
|
|
24392
|
+
},
|
|
24393
|
+
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
24394
|
+
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
24395
|
+
value: {
|
|
24396
|
+
state,
|
|
24397
|
+
dispatch
|
|
24398
|
+
}
|
|
24399
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24400
|
+
store,
|
|
24401
|
+
key: i
|
|
24402
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24403
|
+
store
|
|
24404
|
+
})));
|
|
24405
|
+
};
|
|
24406
|
+
|
|
24407
|
+
const EmailVerifyResendButton = ({
|
|
24408
|
+
name,
|
|
24409
|
+
onClick,
|
|
24410
|
+
...otherProps
|
|
24411
|
+
}) => {
|
|
24412
|
+
const {
|
|
24413
|
+
dispatch,
|
|
24414
|
+
state: {
|
|
24415
|
+
isSubmitting
|
|
24416
|
+
}
|
|
24417
|
+
} = useContext(store);
|
|
24418
|
+
const {
|
|
24419
|
+
t
|
|
24420
|
+
} = useTranslation("verifyEmail");
|
|
24421
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
24422
|
+
onClick: () => {
|
|
24423
|
+
dispatch({
|
|
24424
|
+
type: HANDLE_SUBMIT
|
|
24425
|
+
});
|
|
24426
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
24427
|
+
},
|
|
24428
|
+
isLoading: isSubmitting
|
|
24429
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
24430
|
+
};
|
|
24431
|
+
|
|
24432
|
+
var _path, _path2;
|
|
24433
|
+
|
|
24434
|
+
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
24435
|
+
|
|
24436
|
+
function SvgEmailVerify(props) {
|
|
24437
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
24438
|
+
className: "plc-w-6 plc-h-6",
|
|
24439
|
+
viewBox: "0 0 700 700",
|
|
24440
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
24441
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
24442
|
+
d: "M583.01 231.93a15.008 15.008 0 00-.887-3.875c-.562-1.254-1.129-2.508-1.695-3.762a14.686 14.686 0 00-1.898-1.789c-.438-.437-.653-1.027-1.153-1.414l-56.266-44.164v-52.484a15.555 15.555 0 00-15.554-15.555H434.56l-74.945-58.895a15.547 15.547 0 00-19.227 0l-74.945 58.895h-70.996a15.555 15.555 0 00-15.555 15.555v52.484l-56.266 44.16c-.496.39-.715.996-1.152 1.43v.004a13.37 13.37 0 00-1.898 1.773c-.22.426-.414.86-.59 1.305a14.158 14.158 0 00-1.106 2.457 15.009 15.009 0 00-.886 3.875c0 .48-.329.918-.329 1.398l.004 264.45a15.555 15.555 0 0015.555 15.555h435.55a15.555 15.555 0 0015.555-15.555v-264.45c0-.48-.278-.918-.325-1.398zm-41.176.809l-20.723 14.809v-31.11zm-191.83-150.73l34.223 26.883h-68.445zm-140 57.992h280v124.45c.07 1.593.383 3.168.934 4.664l-140.93 100.66-140.46-100.33c.214-.77.37-1.555.464-2.348zm-31.109 107.55l-20.719-14.81 20.719-16.27zm-31.113 234.67V263.56l193.18 137.99a15.562 15.562 0 0018.078 0l193.18-137.99v218.66z"
|
|
24443
|
+
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
24444
|
+
d: "M324.33 291.81a15.56 15.56 0 0020.582-.297l85.555-77.777a15.56 15.56 0 00-20.938-23.023l-75.398 68.539-44.023-37.723a15.54 15.54 0 00-11.46-4.106 15.553 15.553 0 00-8.758 27.718z"
|
|
24445
|
+
})));
|
|
24446
|
+
}
|
|
24447
|
+
|
|
24448
|
+
const EmailVerifyView = props => {
|
|
24449
|
+
var _window$Pelcro$user$r;
|
|
24450
|
+
|
|
24451
|
+
const {
|
|
24452
|
+
t
|
|
24453
|
+
} = useTranslation("verifyEmail");
|
|
24454
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
24455
|
+
id: "pelcro-email-verify-view"
|
|
24456
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
24457
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
24458
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
24459
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
24460
|
+
}, t("labels.title"))), /*#__PURE__*/React__default.createElement("form", {
|
|
24461
|
+
action: "javascript:void(0);",
|
|
24462
|
+
className: "plc-mt-2 pelcro-form"
|
|
24463
|
+
}, /*#__PURE__*/React__default.createElement(EmailVerifyContainer, props, /*#__PURE__*/React__default.createElement(AlertWithContext, null), /*#__PURE__*/React__default.createElement("div", {
|
|
24464
|
+
className: "plc-flex plc-flex-col plc-items-center plc-justify-center plc-mt-4"
|
|
24465
|
+
}, /*#__PURE__*/React__default.createElement(SvgEmailVerify, {
|
|
24466
|
+
className: "plc-w-32 plc-h-32"
|
|
24467
|
+
}), /*#__PURE__*/React__default.createElement("p", {
|
|
24468
|
+
className: "plc-mb-1 plc-text-gray-900 plc-text-center plc-whitespace-pre-line"
|
|
24469
|
+
}, t("labels.instructions"), " ", /*#__PURE__*/React__default.createElement("span", {
|
|
24470
|
+
className: "plc-font-bold"
|
|
24471
|
+
}, (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email))), /*#__PURE__*/React__default.createElement(EmailVerifyResendButton, {
|
|
24472
|
+
role: "submit",
|
|
24473
|
+
className: "plc-mt-4 plc-w-full",
|
|
24474
|
+
name: t("labels.resend"),
|
|
24475
|
+
id: "pelcro-submit"
|
|
24476
|
+
}))));
|
|
24477
|
+
};
|
|
24478
|
+
|
|
24479
|
+
const EmailVerifyModal = ({
|
|
24480
|
+
onDisplay,
|
|
24481
|
+
onClose,
|
|
24482
|
+
...otherProps
|
|
24483
|
+
}) => {
|
|
24484
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
24485
|
+
onDisplay: onDisplay,
|
|
24486
|
+
onClose: onClose,
|
|
24487
|
+
id: "pelcro-email-verify-modal"
|
|
24488
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(EmailVerifyView, otherProps)), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
24489
|
+
};
|
|
24490
|
+
EmailVerifyModal.viewId = "email-verify";
|
|
24491
|
+
|
|
24492
|
+
export { AddressCreateCity, AddressCreateContainer, AddressCreateCountrySelect, AddressCreateFirstName, AddressCreateLastName, AddressCreateLine1, AddressCreateLine2, AddressCreateModal, AddressCreatePostalCode, AddressCreateStateSelect, AddressCreateSubmit, AddressCreateTextInput, AddressCreateView, AddressSelectContainer, AddressSelectList, AddressSelectModal, AddressSelectSubmit, AddressSelectView, AddressUpdateCity, AddressUpdateContainer, AddressUpdateCountrySelect, AddressUpdateFirstName, AddressUpdateLastName, AddressUpdateLine1, AddressUpdateLine2, AddressUpdateModal, AddressUpdatePostalCode, AddressUpdateStateSelect, AddressUpdateSubmit, AddressUpdateTextInput, AddressUpdateView, AlertWithContext as Alert, Alert as AlertElement, ApplyCouponButton, Auth0LoginButton, Badge, BankRedirection, Button, CartContainer, CartModal, CartRemoveItemButton, CartSubmit, CartTotalPrice, CartView, Checkbox, CheckoutForm, ConfirmPassword, CouponCode, CouponCodeField, DashboardWithHook as Dashboard, DashboardOpenButton, DatePicker, DiscountedPrice, Email, EmailVerifyContainer, EmailVerifyModal, EmailVerifyResendButton, EmailVerifyView, FacebookLoginButton, GiftCreateContainer, GiftCreateEmail, GiftCreateFirstName, GiftCreateLastName, GiftCreateMessage, GiftCreateModal, GiftCreateStartDate, GiftCreateSubmitButton, GiftCreateView, GiftRedeemCode, GiftRedeemContainer, GiftRedeemModal, GiftRedeemSubmitButton, GiftRedeemView, GoogleLoginButton, Input, Link, LoginButton, LoginContainer, LoginEmail, LoginModal, LoginPassword, LoginView, Logout, MeterModal, MeterView, Modal, ModalBody, ModalFooter, NewsletterWithHook as NewsLetter, NewsletterUpdateButton, NewsletterUpdateContainer, NewsletterUpdateList, NewsletterUpdateModal, NewsletterUpdateView, Notification, OrderConfirmModal, OrderCreateContainer, OrderCreateModal, OrderCreateSubmitButton, OrderCreateView, Password, PasswordChangeButton, PasswordChangeConfirmNewPassword, PasswordChangeContainer, PasswordChangeCurrentPassword, PasswordChangeModal, PasswordChangeNewPassword, PasswordChangeView, PasswordForgotButton, PasswordForgotContainer, PasswordForgotEmail, PasswordForgotModal, PasswordForgotView, PasswordResetButton, PasswordResetConfirmPassword, PasswordResetContainer, PasswordResetEmail, PasswordResetModal, PasswordResetPassword, PasswordResetView, PaymentCreateContainer, PaymentCreateView, PaymentMethodContainer, PaymentMethodSelectContainer, PaymentMethodSelectList, PaymentMethodSelectModal, PaymentMethodSelectSubmit, PaymentMethodSelectView, PaymentMethodUpdateContainer, PaymentMethodUpdateModal, PaymentMethodUpdateView, PaymentMethodView, PaymentSuccessModal, PaymentSuccessView, PaypalSubscribeButton, PelcroCardCVC, PelcroCardExpiry, PelcroCardNumber, PelcroModalController, PelcroPaymentRequestButton, ProfilePicChangeButton, ProfilePicChangeContainer, ProfilePicChangeCropper, ProfilePicChangeModal, ProfilePicChangeRemoveButton, ProfilePicChangeSelectButton, ProfilePicChangeView, ProfilePicChangeZoom, Radio, RegisterButton, RegisterCompany, RegisterContainer, RegisterEmail, RegisterFirstName, RegisterJobTitle, RegisterLastName, RegisterModal, RegisterPassword, RegisterView, Select, SelectModalWithHook as SelectModal, SelectedPaymentMethod, ShopPurchaseButton, ShopSelectProductButton, ShopView, SubmitPaymentMethod, SubscriptionCreateContainer, SubscriptionCreateModal, SubscriptionCreateView, SubscriptionRenewContainer, SubscriptionRenewModal, SubscriptionRenewView, TaxAmount, TextArea, Tooltip, UserUpdateButton, UserUpdateContainer, UserUpdateDisplayName, UserUpdateEmail, UserUpdateFirstName, UserUpdateLastName, UserUpdateModal, UserUpdatePhone, UserUpdateProfilePic, UserUpdateTextInput, UserUpdateView, authenticatedButtons, i18next as i18n, init$1 as initButtons, init as initContentEntitlement, notify, unauthenticatedButtons, usePelcro };
|