@pelcro/react-pelcro-js 3.0.0-beta.9 → 3.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +873 -514
- package/dist/index.esm.js +868 -515
- package/dist/pelcro.css +22 -0
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -3431,9 +3431,9 @@ var paymentMethod_fr = {
|
|
|
3431
3431
|
select: select
|
|
3432
3432
|
};
|
|
3433
3433
|
|
|
3434
|
-
var title$
|
|
3434
|
+
var title$h = "Enter your email to subscribe to our newsletter";
|
|
3435
3435
|
var updateTitle$1 = "Update newsletter selections";
|
|
3436
|
-
var subtitle$
|
|
3436
|
+
var subtitle$9 = "We may use your email for other marketing communication";
|
|
3437
3437
|
var labels$p = {
|
|
3438
3438
|
submit: "Submit",
|
|
3439
3439
|
firstName: "First name",
|
|
@@ -3450,16 +3450,16 @@ var messages$r = {
|
|
|
3450
3450
|
here: "here"
|
|
3451
3451
|
};
|
|
3452
3452
|
var newsletter_en = {
|
|
3453
|
-
title: title$
|
|
3453
|
+
title: title$h,
|
|
3454
3454
|
updateTitle: updateTitle$1,
|
|
3455
|
-
subtitle: subtitle$
|
|
3455
|
+
subtitle: subtitle$9,
|
|
3456
3456
|
labels: labels$p,
|
|
3457
3457
|
messages: messages$r
|
|
3458
3458
|
};
|
|
3459
3459
|
|
|
3460
|
-
var title$
|
|
3460
|
+
var title$g = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3461
3461
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3462
|
-
var subtitle$
|
|
3462
|
+
var subtitle$8 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3463
3463
|
var labels$o = {
|
|
3464
3464
|
submit: "Lire l’article !",
|
|
3465
3465
|
firstName: "Prénom",
|
|
@@ -3476,9 +3476,9 @@ var messages$q = {
|
|
|
3476
3476
|
here: "ici"
|
|
3477
3477
|
};
|
|
3478
3478
|
var newsletter_fr = {
|
|
3479
|
-
title: title$
|
|
3479
|
+
title: title$g,
|
|
3480
3480
|
updateTitle: updateTitle,
|
|
3481
|
-
subtitle: subtitle$
|
|
3481
|
+
subtitle: subtitle$8,
|
|
3482
3482
|
labels: labels$o,
|
|
3483
3483
|
messages: messages$q
|
|
3484
3484
|
};
|
|
@@ -3640,6 +3640,7 @@ var successfully$1 = "successfully";
|
|
|
3640
3640
|
var entitlement$1 = "Some of the content on this page is available with one or more of our plans. <1>Subscribe</1> now to get full page access.";
|
|
3641
3641
|
var recaptcha$1 = "This site is protected by reCAPTCHA and the Google <1>Privacy Policy</1> and <3>Terms of Service</3> apply.";
|
|
3642
3642
|
var invalidInvoice$1 = "Invalid invoice ID, please contact support";
|
|
3643
|
+
var zeroTotalInvoice$1 = "You can't view an invoice of 0$";
|
|
3643
3644
|
var messages_en = {
|
|
3644
3645
|
youAreSafe: youAreSafe$1,
|
|
3645
3646
|
cancel: cancel$1,
|
|
@@ -3647,7 +3648,8 @@ var messages_en = {
|
|
|
3647
3648
|
successfully: successfully$1,
|
|
3648
3649
|
entitlement: entitlement$1,
|
|
3649
3650
|
recaptcha: recaptcha$1,
|
|
3650
|
-
invalidInvoice: invalidInvoice$1
|
|
3651
|
+
invalidInvoice: invalidInvoice$1,
|
|
3652
|
+
zeroTotalInvoice: zeroTotalInvoice$1
|
|
3651
3653
|
};
|
|
3652
3654
|
|
|
3653
3655
|
var youAreSafe = "Vous êtes en sécurité - PCI conforme 128 SSL par";
|
|
@@ -3657,6 +3659,7 @@ var successfully = "avec succès.";
|
|
|
3657
3659
|
var entitlement = "Une partie du contenu de cette page est disponible sous un ou plusieurs de nos plans. <1>Abonnez-vous</1> à l'un de nos plans disponibles pour accéder à plus de contenu";
|
|
3658
3660
|
var recaptcha = "Ce site est protégé par reCAPTCHA - les <1>règles de confidentialité</1> Google ainsi que les <3>conditions d'utilisation</3> s'appliquent.";
|
|
3659
3661
|
var invalidInvoice = "Invalid invoice ID, please contact support";
|
|
3662
|
+
var zeroTotalInvoice = "You can't view an invoice of 0$";
|
|
3660
3663
|
var messages_fr = {
|
|
3661
3664
|
youAreSafe: youAreSafe,
|
|
3662
3665
|
cancel: cancel,
|
|
@@ -3664,7 +3667,8 @@ var messages_fr = {
|
|
|
3664
3667
|
successfully: successfully,
|
|
3665
3668
|
entitlement: entitlement,
|
|
3666
3669
|
recaptcha: recaptcha,
|
|
3667
|
-
invalidInvoice: invalidInvoice
|
|
3670
|
+
invalidInvoice: invalidInvoice,
|
|
3671
|
+
zeroTotalInvoice: zeroTotalInvoice
|
|
3668
3672
|
};
|
|
3669
3673
|
|
|
3670
3674
|
var labels$j = {
|
|
@@ -3731,8 +3735,8 @@ var login_fr = {
|
|
|
3731
3735
|
errors: errors$4
|
|
3732
3736
|
};
|
|
3733
3737
|
|
|
3734
|
-
var title$
|
|
3735
|
-
var subtitle$
|
|
3738
|
+
var title$f = "Create an account";
|
|
3739
|
+
var subtitle$7 = "Enter your email and password below";
|
|
3736
3740
|
var labels$h = {
|
|
3737
3741
|
signUpFacebook: "Sign up with Facebook",
|
|
3738
3742
|
signUpGoogle: "Sign up with Google",
|
|
@@ -3778,7 +3782,7 @@ var gift$1 = {
|
|
|
3778
3782
|
lastName: "Last name",
|
|
3779
3783
|
email: "Email",
|
|
3780
3784
|
startDate: "Gift date",
|
|
3781
|
-
giftMessage: "Gift message (
|
|
3785
|
+
giftMessage: "Gift message ({{count}} characters remaining)",
|
|
3782
3786
|
required: "required",
|
|
3783
3787
|
firstNamePlaceholder: "First name",
|
|
3784
3788
|
lastNamePlaceholder: "Last name",
|
|
@@ -3817,8 +3821,8 @@ var redeem$1 = {
|
|
|
3817
3821
|
}
|
|
3818
3822
|
};
|
|
3819
3823
|
var register_en = {
|
|
3820
|
-
title: title$
|
|
3821
|
-
subtitle: subtitle$
|
|
3824
|
+
title: title$f,
|
|
3825
|
+
subtitle: subtitle$7,
|
|
3822
3826
|
labels: labels$h,
|
|
3823
3827
|
messages: messages$h,
|
|
3824
3828
|
errors: errors$3,
|
|
@@ -3826,8 +3830,8 @@ var register_en = {
|
|
|
3826
3830
|
redeem: redeem$1
|
|
3827
3831
|
};
|
|
3828
3832
|
|
|
3829
|
-
var title$
|
|
3830
|
-
var subtitle$
|
|
3833
|
+
var title$e = "Créer un compte";
|
|
3834
|
+
var subtitle$6 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3831
3835
|
var labels$g = {
|
|
3832
3836
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3833
3837
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
@@ -3874,7 +3878,7 @@ var gift = {
|
|
|
3874
3878
|
lastName: "Nom de famille",
|
|
3875
3879
|
email: "Adresse courriel",
|
|
3876
3880
|
startDate: "Date de début",
|
|
3877
|
-
giftMessage: "Message du cadeau (
|
|
3881
|
+
giftMessage: "Message du cadeau ({{count}} caractères restants)",
|
|
3878
3882
|
required: "Champs obligatoires",
|
|
3879
3883
|
firstNamePlaceholder: "Prénom",
|
|
3880
3884
|
lastNamePlaceholder: "Nom de famille",
|
|
@@ -3913,8 +3917,8 @@ var redeem = {
|
|
|
3913
3917
|
}
|
|
3914
3918
|
};
|
|
3915
3919
|
var register_fr = {
|
|
3916
|
-
title: title$
|
|
3917
|
-
subtitle: subtitle$
|
|
3920
|
+
title: title$e,
|
|
3921
|
+
subtitle: subtitle$6,
|
|
3918
3922
|
labels: labels$g,
|
|
3919
3923
|
messages: messages$g,
|
|
3920
3924
|
errors: errors$2,
|
|
@@ -3974,7 +3978,7 @@ var userEdit_fr = {
|
|
|
3974
3978
|
messages: messages$e
|
|
3975
3979
|
};
|
|
3976
3980
|
|
|
3977
|
-
var title$
|
|
3981
|
+
var title$d = "Enter your shipping address";
|
|
3978
3982
|
var selectAddressTitle$1 = "Please select an address";
|
|
3979
3983
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
3980
3984
|
var labels$d = {
|
|
@@ -3997,7 +4001,7 @@ var messages$d = {
|
|
|
3997
4001
|
subRedeemed: "Your subscription has been redeemed."
|
|
3998
4002
|
};
|
|
3999
4003
|
var address_en = {
|
|
4000
|
-
title: title$
|
|
4004
|
+
title: title$d,
|
|
4001
4005
|
selectAddressTitle: selectAddressTitle$1,
|
|
4002
4006
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
4003
4007
|
labels: labels$d,
|
|
@@ -4005,7 +4009,7 @@ var address_en = {
|
|
|
4005
4009
|
messages: messages$d
|
|
4006
4010
|
};
|
|
4007
4011
|
|
|
4008
|
-
var title$
|
|
4012
|
+
var title$c = "Entrez votre adresse de livraison";
|
|
4009
4013
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
4010
4014
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4011
4015
|
var labels$c = {
|
|
@@ -4028,7 +4032,7 @@ var messages$c = {
|
|
|
4028
4032
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4029
4033
|
};
|
|
4030
4034
|
var address_fr = {
|
|
4031
|
-
title: title$
|
|
4035
|
+
title: title$c,
|
|
4032
4036
|
selectAddressTitle: selectAddressTitle,
|
|
4033
4037
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4034
4038
|
labels: labels$c,
|
|
@@ -4036,8 +4040,8 @@ var address_fr = {
|
|
|
4036
4040
|
messages: messages$c
|
|
4037
4041
|
};
|
|
4038
4042
|
|
|
4039
|
-
var title$
|
|
4040
|
-
var subtitle$
|
|
4043
|
+
var title$b = "Reset your password";
|
|
4044
|
+
var subtitle$5 = "Enter a new password below";
|
|
4041
4045
|
var email$3 = "Email";
|
|
4042
4046
|
var password$3 = "Password";
|
|
4043
4047
|
var confirmPassword$1 = "Confirm password";
|
|
@@ -4045,8 +4049,8 @@ var submit$5 = "Submit";
|
|
|
4045
4049
|
var required$5 = "Required";
|
|
4046
4050
|
var passwordUpdated$1 = "Password has been updated, please login with the new password";
|
|
4047
4051
|
var passwordReset_en = {
|
|
4048
|
-
title: title$
|
|
4049
|
-
subtitle: subtitle$
|
|
4052
|
+
title: title$b,
|
|
4053
|
+
subtitle: subtitle$5,
|
|
4050
4054
|
email: email$3,
|
|
4051
4055
|
password: password$3,
|
|
4052
4056
|
confirmPassword: confirmPassword$1,
|
|
@@ -4055,8 +4059,8 @@ var passwordReset_en = {
|
|
|
4055
4059
|
passwordUpdated: passwordUpdated$1
|
|
4056
4060
|
};
|
|
4057
4061
|
|
|
4058
|
-
var title$
|
|
4059
|
-
var subtitle$
|
|
4062
|
+
var title$a = "Réinitialiser votre mot de passe";
|
|
4063
|
+
var subtitle$4 = "Entrez un nouveau mot de passe ci-dessous";
|
|
4060
4064
|
var email$2 = "Adresse courriel";
|
|
4061
4065
|
var password$2 = "Mot de passe";
|
|
4062
4066
|
var confirmPassword = "Confirmer le mot de passe";
|
|
@@ -4064,8 +4068,8 @@ var submit$4 = "Soumettre";
|
|
|
4064
4068
|
var required$4 = "Champs obligatoires";
|
|
4065
4069
|
var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
|
|
4066
4070
|
var passwordReset_fr = {
|
|
4067
|
-
title: title$
|
|
4068
|
-
subtitle: subtitle$
|
|
4071
|
+
title: title$a,
|
|
4072
|
+
subtitle: subtitle$4,
|
|
4069
4073
|
email: email$2,
|
|
4070
4074
|
password: password$2,
|
|
4071
4075
|
confirmPassword: confirmPassword,
|
|
@@ -4074,7 +4078,7 @@ var passwordReset_fr = {
|
|
|
4074
4078
|
passwordUpdated: passwordUpdated
|
|
4075
4079
|
};
|
|
4076
4080
|
|
|
4077
|
-
var title$
|
|
4081
|
+
var title$9 = "Forgot your password?";
|
|
4078
4082
|
var email$1 = "Email";
|
|
4079
4083
|
var password$1 = "Password";
|
|
4080
4084
|
var submit$3 = "Submit";
|
|
@@ -4085,7 +4089,7 @@ var messages$b = {
|
|
|
4085
4089
|
loginHere: "login here."
|
|
4086
4090
|
};
|
|
4087
4091
|
var passwordForgot_en = {
|
|
4088
|
-
title: title$
|
|
4092
|
+
title: title$9,
|
|
4089
4093
|
email: email$1,
|
|
4090
4094
|
password: password$1,
|
|
4091
4095
|
submit: submit$3,
|
|
@@ -4094,7 +4098,7 @@ var passwordForgot_en = {
|
|
|
4094
4098
|
messages: messages$b
|
|
4095
4099
|
};
|
|
4096
4100
|
|
|
4097
|
-
var title$
|
|
4101
|
+
var title$8 = "Mot de passe oublié ?";
|
|
4098
4102
|
var email = "Courriel";
|
|
4099
4103
|
var password = "Mot de passe";
|
|
4100
4104
|
var submit$2 = "Soumettre";
|
|
@@ -4105,7 +4109,7 @@ var messages$a = {
|
|
|
4105
4109
|
loginHere: "Connectez-vous ici"
|
|
4106
4110
|
};
|
|
4107
4111
|
var passwordForgot_fr = {
|
|
4108
|
-
title: title$
|
|
4112
|
+
title: title$8,
|
|
4109
4113
|
email: email,
|
|
4110
4114
|
password: password,
|
|
4111
4115
|
submit: submit$2,
|
|
@@ -4114,7 +4118,7 @@ var passwordForgot_fr = {
|
|
|
4114
4118
|
messages: messages$a
|
|
4115
4119
|
};
|
|
4116
4120
|
|
|
4117
|
-
var title$
|
|
4121
|
+
var title$7 = "Change your password";
|
|
4118
4122
|
var currentPassword$1 = "Current password";
|
|
4119
4123
|
var newPassword$1 = "New password";
|
|
4120
4124
|
var confirmNewPassword$1 = "Confirm new password";
|
|
@@ -4124,7 +4128,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
|
|
|
4124
4128
|
var passwordsNotMatching$1 = "Passwords don't match";
|
|
4125
4129
|
var weakPassword$1 = "Your password must contain at least 6 characters";
|
|
4126
4130
|
var passwordChange_en = {
|
|
4127
|
-
title: title$
|
|
4131
|
+
title: title$7,
|
|
4128
4132
|
currentPassword: currentPassword$1,
|
|
4129
4133
|
newPassword: newPassword$1,
|
|
4130
4134
|
confirmNewPassword: confirmNewPassword$1,
|
|
@@ -4135,7 +4139,7 @@ var passwordChange_en = {
|
|
|
4135
4139
|
weakPassword: weakPassword$1
|
|
4136
4140
|
};
|
|
4137
4141
|
|
|
4138
|
-
var title$
|
|
4142
|
+
var title$6 = "Changez votre mot de passe";
|
|
4139
4143
|
var currentPassword = "Mot de passe actuel";
|
|
4140
4144
|
var newPassword = "Nouveau mot de passe";
|
|
4141
4145
|
var confirmNewPassword = "Confirmer le nouveau mot de passe";
|
|
@@ -4145,7 +4149,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
|
|
|
4145
4149
|
var passwordsNotMatching = "Les mots de passe ne correspondent pas";
|
|
4146
4150
|
var weakPassword = "Votre mot de passe doit contenir au moins 6";
|
|
4147
4151
|
var passwordChange_fr = {
|
|
4148
|
-
title: title$
|
|
4152
|
+
title: title$6,
|
|
4149
4153
|
currentPassword: currentPassword,
|
|
4150
4154
|
newPassword: newPassword,
|
|
4151
4155
|
confirmNewPassword: confirmNewPassword,
|
|
@@ -4156,8 +4160,8 @@ var passwordChange_fr = {
|
|
|
4156
4160
|
weakPassword: weakPassword
|
|
4157
4161
|
};
|
|
4158
4162
|
|
|
4159
|
-
var title$
|
|
4160
|
-
var subtitle$
|
|
4163
|
+
var title$5 = "Votre panier";
|
|
4164
|
+
var subtitle$3 = "Terminez votre achat ci-dessous";
|
|
4161
4165
|
var name$1 = "Produit";
|
|
4162
4166
|
var quantity$1 = "Quantité";
|
|
4163
4167
|
var price$1 = "Prix";
|
|
@@ -4168,8 +4172,8 @@ var confirm$3 = "Passer à la caisse";
|
|
|
4168
4172
|
var empty$1 = "Votre panier est vide.";
|
|
4169
4173
|
var removeAll$1 = "Vider";
|
|
4170
4174
|
var cart_fr = {
|
|
4171
|
-
title: title$
|
|
4172
|
-
subtitle: subtitle$
|
|
4175
|
+
title: title$5,
|
|
4176
|
+
subtitle: subtitle$3,
|
|
4173
4177
|
name: name$1,
|
|
4174
4178
|
quantity: quantity$1,
|
|
4175
4179
|
price: price$1,
|
|
@@ -4181,8 +4185,8 @@ var cart_fr = {
|
|
|
4181
4185
|
removeAll: removeAll$1
|
|
4182
4186
|
};
|
|
4183
4187
|
|
|
4184
|
-
var title$
|
|
4185
|
-
var subtitle = "Comple your purchase below";
|
|
4188
|
+
var title$4 = "Your shopping cart";
|
|
4189
|
+
var subtitle$2 = "Comple your purchase below";
|
|
4186
4190
|
var name = "Name";
|
|
4187
4191
|
var quantity = "Quantity";
|
|
4188
4192
|
var price = "Price";
|
|
@@ -4193,8 +4197,8 @@ var confirm$2 = "Checkout";
|
|
|
4193
4197
|
var empty = "Your cart is empty.";
|
|
4194
4198
|
var removeAll = "Remove all";
|
|
4195
4199
|
var cart_en = {
|
|
4196
|
-
title: title$
|
|
4197
|
-
subtitle: subtitle,
|
|
4200
|
+
title: title$4,
|
|
4201
|
+
subtitle: subtitle$2,
|
|
4198
4202
|
name: name,
|
|
4199
4203
|
quantity: quantity,
|
|
4200
4204
|
price: price,
|
|
@@ -4632,7 +4636,7 @@ var verifyEmail_fr = {
|
|
|
4632
4636
|
messages: messages
|
|
4633
4637
|
};
|
|
4634
4638
|
|
|
4635
|
-
var title$
|
|
4639
|
+
var title$3 = "Invoice details";
|
|
4636
4640
|
var labels$1 = {
|
|
4637
4641
|
summary: "Summary",
|
|
4638
4642
|
total: "Total",
|
|
@@ -4645,12 +4649,12 @@ var buttons$1 = {
|
|
|
4645
4649
|
pay: "Pay now"
|
|
4646
4650
|
};
|
|
4647
4651
|
var invoiceDetails_en = {
|
|
4648
|
-
title: title$
|
|
4652
|
+
title: title$3,
|
|
4649
4653
|
labels: labels$1,
|
|
4650
4654
|
buttons: buttons$1
|
|
4651
4655
|
};
|
|
4652
4656
|
|
|
4653
|
-
var title = "Invoice details";
|
|
4657
|
+
var title$2 = "Invoice details";
|
|
4654
4658
|
var labels = {
|
|
4655
4659
|
summary: "Summary",
|
|
4656
4660
|
total: "Total",
|
|
@@ -4663,11 +4667,37 @@ var buttons = {
|
|
|
4663
4667
|
pay: "Pay now"
|
|
4664
4668
|
};
|
|
4665
4669
|
var invoiceDetails_fr = {
|
|
4666
|
-
title: title,
|
|
4670
|
+
title: title$2,
|
|
4667
4671
|
labels: labels,
|
|
4668
4672
|
buttons: buttons
|
|
4669
4673
|
};
|
|
4670
4674
|
|
|
4675
|
+
var title$1 = "Renewal options";
|
|
4676
|
+
var subtitle$1 = "Select one of the options below to continue";
|
|
4677
|
+
var next$1 = "Next";
|
|
4678
|
+
var addNew$1 = "Add Another Subscription";
|
|
4679
|
+
var renew$1 = "Renew Existing Subscription";
|
|
4680
|
+
var subscriptionOptions_en = {
|
|
4681
|
+
title: title$1,
|
|
4682
|
+
subtitle: subtitle$1,
|
|
4683
|
+
next: next$1,
|
|
4684
|
+
addNew: addNew$1,
|
|
4685
|
+
renew: renew$1
|
|
4686
|
+
};
|
|
4687
|
+
|
|
4688
|
+
var title = "Renewal options";
|
|
4689
|
+
var subtitle = "Select one of the options below to continue";
|
|
4690
|
+
var next = "Next";
|
|
4691
|
+
var addNew = "Add Another Subscription";
|
|
4692
|
+
var renew = "Renew Existing Subscription";
|
|
4693
|
+
var subscriptionOptions_fr = {
|
|
4694
|
+
title: title,
|
|
4695
|
+
subtitle: subtitle,
|
|
4696
|
+
next: next,
|
|
4697
|
+
addNew: addNew,
|
|
4698
|
+
renew: renew
|
|
4699
|
+
};
|
|
4700
|
+
|
|
4671
4701
|
function create$1(createState) {
|
|
4672
4702
|
let state;
|
|
4673
4703
|
const listeners = new Set();
|
|
@@ -6017,7 +6047,7 @@ class PelcroActions {
|
|
|
6017
6047
|
view,
|
|
6018
6048
|
cartItems,
|
|
6019
6049
|
...otherStateFields
|
|
6020
|
-
} = initialState$
|
|
6050
|
+
} = initialState$j;
|
|
6021
6051
|
this.set(otherStateFields);
|
|
6022
6052
|
});
|
|
6023
6053
|
|
|
@@ -6041,6 +6071,16 @@ class PelcroActions {
|
|
|
6041
6071
|
});
|
|
6042
6072
|
}
|
|
6043
6073
|
|
|
6074
|
+
if (view === "subscription-options") {
|
|
6075
|
+
const noRenewableProducts = getRenewableProducts().length === 0;
|
|
6076
|
+
|
|
6077
|
+
if (noRenewableProducts) {
|
|
6078
|
+
return this.set({
|
|
6079
|
+
view: "plan-select"
|
|
6080
|
+
});
|
|
6081
|
+
}
|
|
6082
|
+
}
|
|
6083
|
+
|
|
6044
6084
|
this.set({
|
|
6045
6085
|
view
|
|
6046
6086
|
});
|
|
@@ -6115,6 +6155,26 @@ class PelcroActions {
|
|
|
6115
6155
|
}
|
|
6116
6156
|
});
|
|
6117
6157
|
|
|
6158
|
+
_defineProperty$3(this, "setProductsList", products => {
|
|
6159
|
+
if (!Array.isArray(products)) {
|
|
6160
|
+
return console.error(`setProductsList expects an array of products as an argument, got an argument of type ${typeof products} instead`);
|
|
6161
|
+
}
|
|
6162
|
+
|
|
6163
|
+
const allowedProducts = window.Pelcro.product.list();
|
|
6164
|
+
const validProducts = products.filter(product => {
|
|
6165
|
+
const isValidProduct = allowedProducts.some(allowedProduct => allowedProduct.id === (product === null || product === void 0 ? void 0 : product.id) && allowedProduct.name === (product === null || product === void 0 ? void 0 : product.name));
|
|
6166
|
+
|
|
6167
|
+
if (!isValidProduct) {
|
|
6168
|
+
console.warn(`setProductsList expects an array of products that exist in the list of valid products (window.Pelcro.product.list()), but it recieved a product which doesn't exist in that list:`, product);
|
|
6169
|
+
}
|
|
6170
|
+
|
|
6171
|
+
return isValidProduct;
|
|
6172
|
+
});
|
|
6173
|
+
this.set({
|
|
6174
|
+
productsList: validProducts
|
|
6175
|
+
});
|
|
6176
|
+
});
|
|
6177
|
+
|
|
6118
6178
|
_defineProperty$3(this, "setProduct", id => {
|
|
6119
6179
|
const product = window.Pelcro.product.getById(id);
|
|
6120
6180
|
if (!product) return console.error("invalid product id");
|
|
@@ -6336,10 +6396,12 @@ class PelcroCallbacks {
|
|
|
6336
6396
|
|
|
6337
6397
|
}
|
|
6338
6398
|
|
|
6339
|
-
|
|
6399
|
+
var _window$Pelcro$produc, _window$Pelcro;
|
|
6400
|
+
const initialState$j = {
|
|
6340
6401
|
// View
|
|
6341
6402
|
view: null,
|
|
6342
6403
|
// Plans
|
|
6404
|
+
productsList: (_window$Pelcro$produc = (_window$Pelcro = window.Pelcro) === null || _window$Pelcro === void 0 ? void 0 : _window$Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [],
|
|
6343
6405
|
product: null,
|
|
6344
6406
|
plan: null,
|
|
6345
6407
|
isGift: false,
|
|
@@ -6366,7 +6428,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6366
6428
|
return {
|
|
6367
6429
|
// Store setter
|
|
6368
6430
|
set,
|
|
6369
|
-
...initialState$
|
|
6431
|
+
...initialState$j,
|
|
6370
6432
|
// State actions
|
|
6371
6433
|
...actions,
|
|
6372
6434
|
// Callbacks
|
|
@@ -6721,6 +6783,28 @@ function userMustVerifyEmail() {
|
|
|
6721
6783
|
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;
|
|
6722
6784
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6723
6785
|
}
|
|
6786
|
+
function getRenewableProducts() {
|
|
6787
|
+
const renewableSubs = window.Pelcro.subscription.list().filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
6788
|
+
const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
|
|
6789
|
+
const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
|
|
6790
|
+
const {
|
|
6791
|
+
productsList
|
|
6792
|
+
} = usePelcro.getStore();
|
|
6793
|
+
return productsList.map(product => {
|
|
6794
|
+
if (renewableProductsIds.includes(product.id)) {
|
|
6795
|
+
const renewablePlans = getRenewablePlansOnly(product);
|
|
6796
|
+
return { ...product,
|
|
6797
|
+
plans: renewablePlans
|
|
6798
|
+
};
|
|
6799
|
+
}
|
|
6800
|
+
}).filter(product => product);
|
|
6801
|
+
|
|
6802
|
+
function getRenewablePlansOnly(product) {
|
|
6803
|
+
var _product$plans$filter, _product$plans;
|
|
6804
|
+
|
|
6805
|
+
return (_product$plans$filter = product === null || product === void 0 ? void 0 : (_product$plans = product.plans) === null || _product$plans === void 0 ? void 0 : _product$plans.filter(plan => renewablePlansIds.includes(plan.id))) !== null && _product$plans$filter !== void 0 ? _product$plans$filter : [];
|
|
6806
|
+
}
|
|
6807
|
+
}
|
|
6724
6808
|
|
|
6725
6809
|
const resources = {
|
|
6726
6810
|
en: {
|
|
@@ -6745,7 +6829,8 @@ const resources = {
|
|
|
6745
6829
|
dashboard: dashboard_en,
|
|
6746
6830
|
select: select_en,
|
|
6747
6831
|
notification: notification_en,
|
|
6748
|
-
invoiceDetails: invoiceDetails_en
|
|
6832
|
+
invoiceDetails: invoiceDetails_en,
|
|
6833
|
+
subscriptionOptions: subscriptionOptions_en
|
|
6749
6834
|
},
|
|
6750
6835
|
fr: {
|
|
6751
6836
|
common: common_fr,
|
|
@@ -6769,7 +6854,8 @@ const resources = {
|
|
|
6769
6854
|
dashboard: dashboard_fr,
|
|
6770
6855
|
select: select_fr,
|
|
6771
6856
|
notification: notification_fr,
|
|
6772
|
-
invoiceDetails: invoiceDetails_fr
|
|
6857
|
+
invoiceDetails: invoiceDetails_fr,
|
|
6858
|
+
subscriptionOptions: subscriptionOptions_fr
|
|
6773
6859
|
}
|
|
6774
6860
|
}; // set UI language to the page language or default to the language in site settings
|
|
6775
6861
|
|
|
@@ -7060,8 +7146,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
7060
7146
|
|
|
7061
7147
|
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}}
|
|
7062
7148
|
|
|
7063
|
-
function _extends$
|
|
7064
|
-
_extends$
|
|
7149
|
+
function _extends$A() {
|
|
7150
|
+
_extends$A = Object.assign || function (target) {
|
|
7065
7151
|
for (var i = 1; i < arguments.length; i++) {
|
|
7066
7152
|
var source = arguments[i];
|
|
7067
7153
|
|
|
@@ -7075,7 +7161,7 @@ function _extends$z() {
|
|
|
7075
7161
|
return target;
|
|
7076
7162
|
};
|
|
7077
7163
|
|
|
7078
|
-
return _extends$
|
|
7164
|
+
return _extends$A.apply(this, arguments);
|
|
7079
7165
|
}
|
|
7080
7166
|
|
|
7081
7167
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7165,7 +7251,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7165
7251
|
var reducer = function reducer(state, action) {
|
|
7166
7252
|
switch (action.type) {
|
|
7167
7253
|
case ActionType.ADD_TOAST:
|
|
7168
|
-
return _extends$
|
|
7254
|
+
return _extends$A({}, state, {
|
|
7169
7255
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7170
7256
|
});
|
|
7171
7257
|
|
|
@@ -7175,9 +7261,9 @@ var reducer = function reducer(state, action) {
|
|
|
7175
7261
|
clearFromRemoveQueue(action.toast.id);
|
|
7176
7262
|
}
|
|
7177
7263
|
|
|
7178
|
-
return _extends$
|
|
7264
|
+
return _extends$A({}, state, {
|
|
7179
7265
|
toasts: state.toasts.map(function (t) {
|
|
7180
|
-
return t.id === action.toast.id ? _extends$
|
|
7266
|
+
return t.id === action.toast.id ? _extends$A({}, t, action.toast) : t;
|
|
7181
7267
|
})
|
|
7182
7268
|
});
|
|
7183
7269
|
|
|
@@ -7204,9 +7290,9 @@ var reducer = function reducer(state, action) {
|
|
|
7204
7290
|
});
|
|
7205
7291
|
}
|
|
7206
7292
|
|
|
7207
|
-
return _extends$
|
|
7293
|
+
return _extends$A({}, state, {
|
|
7208
7294
|
toasts: state.toasts.map(function (t) {
|
|
7209
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7295
|
+
return t.id === toastId || toastId === undefined ? _extends$A({}, t, {
|
|
7210
7296
|
visible: false
|
|
7211
7297
|
}) : t;
|
|
7212
7298
|
})
|
|
@@ -7214,28 +7300,28 @@ var reducer = function reducer(state, action) {
|
|
|
7214
7300
|
|
|
7215
7301
|
case ActionType.REMOVE_TOAST:
|
|
7216
7302
|
if (action.toastId === undefined) {
|
|
7217
|
-
return _extends$
|
|
7303
|
+
return _extends$A({}, state, {
|
|
7218
7304
|
toasts: []
|
|
7219
7305
|
});
|
|
7220
7306
|
}
|
|
7221
7307
|
|
|
7222
|
-
return _extends$
|
|
7308
|
+
return _extends$A({}, state, {
|
|
7223
7309
|
toasts: state.toasts.filter(function (t) {
|
|
7224
7310
|
return t.id !== action.toastId;
|
|
7225
7311
|
})
|
|
7226
7312
|
});
|
|
7227
7313
|
|
|
7228
7314
|
case ActionType.START_PAUSE:
|
|
7229
|
-
return _extends$
|
|
7315
|
+
return _extends$A({}, state, {
|
|
7230
7316
|
pausedAt: action.time
|
|
7231
7317
|
});
|
|
7232
7318
|
|
|
7233
7319
|
case ActionType.END_PAUSE:
|
|
7234
7320
|
var diff = action.time - (state.pausedAt || 0);
|
|
7235
|
-
return _extends$
|
|
7321
|
+
return _extends$A({}, state, {
|
|
7236
7322
|
pausedAt: undefined,
|
|
7237
7323
|
toasts: state.toasts.map(function (t) {
|
|
7238
|
-
return _extends$
|
|
7324
|
+
return _extends$A({}, t, {
|
|
7239
7325
|
pauseDuration: t.pauseDuration + diff
|
|
7240
7326
|
});
|
|
7241
7327
|
})
|
|
@@ -7282,12 +7368,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7282
7368
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7283
7369
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7284
7370
|
|
|
7285
|
-
return _extends$
|
|
7371
|
+
return _extends$A({}, toastOptions, toastOptions[t.type], t, {
|
|
7286
7372
|
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],
|
|
7287
|
-
style: _extends$
|
|
7373
|
+
style: _extends$A({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7288
7374
|
});
|
|
7289
7375
|
});
|
|
7290
|
-
return _extends$
|
|
7376
|
+
return _extends$A({}, state, {
|
|
7291
7377
|
toasts: mergedToasts
|
|
7292
7378
|
});
|
|
7293
7379
|
};
|
|
@@ -7297,7 +7383,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7297
7383
|
type = 'blank';
|
|
7298
7384
|
}
|
|
7299
7385
|
|
|
7300
|
-
return _extends$
|
|
7386
|
+
return _extends$A({
|
|
7301
7387
|
createdAt: Date.now(),
|
|
7302
7388
|
visible: true,
|
|
7303
7389
|
type: type,
|
|
@@ -7347,14 +7433,14 @@ toast.remove = function (toastId) {
|
|
|
7347
7433
|
};
|
|
7348
7434
|
|
|
7349
7435
|
toast.promise = function (promise, msgs, opts) {
|
|
7350
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7436
|
+
var id = toast.loading(msgs.loading, _extends$A({}, opts, opts == null ? void 0 : opts.loading));
|
|
7351
7437
|
promise.then(function (p) {
|
|
7352
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7438
|
+
toast.success(resolveValue(msgs.success, p), _extends$A({
|
|
7353
7439
|
id: id
|
|
7354
7440
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7355
7441
|
return p;
|
|
7356
7442
|
})["catch"](function (e) {
|
|
7357
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7443
|
+
toast.error(resolveValue(msgs.error, e), _extends$A({
|
|
7358
7444
|
id: id
|
|
7359
7445
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7360
7446
|
});
|
|
@@ -7693,7 +7779,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7693
7779
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7694
7780
|
return createElement(ToastBarBase, {
|
|
7695
7781
|
className: toast.className,
|
|
7696
|
-
style: _extends$
|
|
7782
|
+
style: _extends$A({}, animationStyle, style, toast.style)
|
|
7697
7783
|
}, typeof children === 'function' ? children({
|
|
7698
7784
|
icon: icon,
|
|
7699
7785
|
message: message
|
|
@@ -7723,7 +7809,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7723
7809
|
} : position.includes('right') ? {
|
|
7724
7810
|
justifyContent: 'flex-end'
|
|
7725
7811
|
} : {};
|
|
7726
|
-
return _extends$
|
|
7812
|
+
return _extends$A({
|
|
7727
7813
|
left: 0,
|
|
7728
7814
|
right: 0,
|
|
7729
7815
|
display: 'flex',
|
|
@@ -7750,7 +7836,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7750
7836
|
handlers = _useToaster.handlers;
|
|
7751
7837
|
|
|
7752
7838
|
return createElement("div", {
|
|
7753
|
-
style: _extends$
|
|
7839
|
+
style: _extends$A({
|
|
7754
7840
|
position: 'fixed',
|
|
7755
7841
|
zIndex: 9999,
|
|
7756
7842
|
top: DEFAULT_OFFSET,
|
|
@@ -7785,82 +7871,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7785
7871
|
}));
|
|
7786
7872
|
};
|
|
7787
7873
|
|
|
7788
|
-
var _path$
|
|
7874
|
+
var _path$x;
|
|
7789
7875
|
|
|
7790
|
-
function _extends$
|
|
7876
|
+
function _extends$z() { _extends$z = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$z.apply(this, arguments); }
|
|
7791
7877
|
|
|
7792
7878
|
function SvgCheckSolid(props) {
|
|
7793
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7879
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
7794
7880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7795
7881
|
className: "h-5 w-5",
|
|
7796
7882
|
viewBox: "0 0 20 20",
|
|
7797
7883
|
fill: "currentColor"
|
|
7798
|
-
}, props), _path$
|
|
7884
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
7799
7885
|
fillRule: "evenodd",
|
|
7800
7886
|
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",
|
|
7801
7887
|
clipRule: "evenodd"
|
|
7802
7888
|
})));
|
|
7803
7889
|
}
|
|
7804
7890
|
|
|
7805
|
-
var _path$
|
|
7891
|
+
var _path$w;
|
|
7806
7892
|
|
|
7807
|
-
function _extends$
|
|
7893
|
+
function _extends$y() { _extends$y = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$y.apply(this, arguments); }
|
|
7808
7894
|
|
|
7809
7895
|
function SvgXIcon(props) {
|
|
7810
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7896
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
7811
7897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7812
7898
|
viewBox: "0 0 20 20",
|
|
7813
7899
|
fill: "currentColor"
|
|
7814
|
-
}, props), _path$
|
|
7900
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
7815
7901
|
fill: "evenodd",
|
|
7816
7902
|
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",
|
|
7817
7903
|
clipRule: "evenodd"
|
|
7818
7904
|
})));
|
|
7819
7905
|
}
|
|
7820
7906
|
|
|
7821
|
-
var _path$
|
|
7907
|
+
var _path$v;
|
|
7822
7908
|
|
|
7823
|
-
function _extends$
|
|
7909
|
+
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); }
|
|
7824
7910
|
|
|
7825
7911
|
function SvgXIconSolid(props) {
|
|
7826
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7912
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
7827
7913
|
className: "plc-w-4 plc-h-4",
|
|
7828
7914
|
fill: "currentColor",
|
|
7829
7915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7830
7916
|
viewBox: "0 0 100 100"
|
|
7831
|
-
}, props), _path$
|
|
7917
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
7832
7918
|
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"
|
|
7833
7919
|
})));
|
|
7834
7920
|
}
|
|
7835
7921
|
|
|
7836
|
-
var _path$
|
|
7922
|
+
var _path$u;
|
|
7837
7923
|
|
|
7838
|
-
function _extends$
|
|
7924
|
+
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); }
|
|
7839
7925
|
|
|
7840
7926
|
function SvgExclamation(props) {
|
|
7841
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7927
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7842
7928
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7843
7929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7844
7930
|
viewBox: "0 0 20 20",
|
|
7845
7931
|
fill: "currentColor"
|
|
7846
|
-
}, props), _path$
|
|
7932
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7847
7933
|
fillRule: "evenodd",
|
|
7848
7934
|
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",
|
|
7849
7935
|
clipRule: "evenodd"
|
|
7850
7936
|
})));
|
|
7851
7937
|
}
|
|
7852
7938
|
|
|
7853
|
-
var _path$
|
|
7939
|
+
var _path$t, _path2$4;
|
|
7854
7940
|
|
|
7855
|
-
function _extends$
|
|
7941
|
+
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); }
|
|
7856
7942
|
|
|
7857
7943
|
function SvgSpinner(props) {
|
|
7858
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7944
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7859
7945
|
className: "plc-animate-spin",
|
|
7860
7946
|
viewBox: "0 0 24 24",
|
|
7861
7947
|
fill: "currentColor",
|
|
7862
7948
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7863
|
-
}, props), _path$
|
|
7949
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7864
7950
|
opacity: 0.2,
|
|
7865
7951
|
fill: "evenodd",
|
|
7866
7952
|
clipRule: "evenodd",
|
|
@@ -8150,7 +8236,9 @@ const init$1 = () => {
|
|
|
8150
8236
|
return switchToAddressView();
|
|
8151
8237
|
});
|
|
8152
8238
|
} else {
|
|
8153
|
-
pelcroSubscribeButtonsByClass[j].addEventListener("click", () =>
|
|
8239
|
+
pelcroSubscribeButtonsByClass[j].addEventListener("click", () => {
|
|
8240
|
+
return switchView("subscription-options");
|
|
8241
|
+
});
|
|
8154
8242
|
}
|
|
8155
8243
|
}
|
|
8156
8244
|
}
|
|
@@ -8312,7 +8400,8 @@ function Link({
|
|
|
8312
8400
|
const init = () => {
|
|
8313
8401
|
const {
|
|
8314
8402
|
switchView,
|
|
8315
|
-
set
|
|
8403
|
+
set,
|
|
8404
|
+
setProductsList
|
|
8316
8405
|
} = usePelcro.getStore();
|
|
8317
8406
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
8318
8407
|
|
|
@@ -8363,7 +8452,8 @@ const init = () => {
|
|
|
8363
8452
|
}
|
|
8364
8453
|
|
|
8365
8454
|
notify.dismiss(NOTIFICATION_ID);
|
|
8366
|
-
|
|
8455
|
+
setProductsList(window.Pelcro.product.getByEntitlements(entitlements));
|
|
8456
|
+
switchView("plan-select");
|
|
8367
8457
|
}
|
|
8368
8458
|
}, "Subscribe"), "now to get full page access.")), {
|
|
8369
8459
|
className: "pelcro-notification-entitlement",
|
|
@@ -9096,6 +9186,17 @@ const showInvoiceDetailsFromUrl = () => {
|
|
|
9096
9186
|
return notify.error(errorMessage);
|
|
9097
9187
|
}
|
|
9098
9188
|
|
|
9189
|
+
const {
|
|
9190
|
+
invoice
|
|
9191
|
+
} = usePelcro.getStore();
|
|
9192
|
+
|
|
9193
|
+
if (invoice.total === 0) {
|
|
9194
|
+
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
9195
|
+
returnObjects: true
|
|
9196
|
+
});
|
|
9197
|
+
return notify.error(errorMessage);
|
|
9198
|
+
}
|
|
9199
|
+
|
|
9099
9200
|
return switchView("invoice-details");
|
|
9100
9201
|
});
|
|
9101
9202
|
};
|
|
@@ -9157,7 +9258,7 @@ const PelcroModalController = ({
|
|
|
9157
9258
|
type
|
|
9158
9259
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
|
|
9159
9260
|
type
|
|
9160
|
-
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-
|
|
9261
|
+
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-renew" && React__default.Children.map(children, child => child).find(({
|
|
9161
9262
|
type
|
|
9162
9263
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
|
|
9163
9264
|
type
|
|
@@ -9438,8 +9539,10 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9438
9539
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9439
9540
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9440
9541
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9542
|
+
const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
|
|
9543
|
+
const SWITCH_TO_NEW = "SWITCH_TO_NEW";
|
|
9441
9544
|
|
|
9442
|
-
const initialState$
|
|
9545
|
+
const initialState$i = {
|
|
9443
9546
|
email: "",
|
|
9444
9547
|
password: "",
|
|
9445
9548
|
emailError: null,
|
|
@@ -9450,10 +9553,10 @@ const initialState$h = {
|
|
|
9450
9553
|
content: ""
|
|
9451
9554
|
}
|
|
9452
9555
|
};
|
|
9453
|
-
const store$
|
|
9556
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
9454
9557
|
const {
|
|
9455
|
-
Provider: Provider$
|
|
9456
|
-
} = store$
|
|
9558
|
+
Provider: Provider$i
|
|
9559
|
+
} = store$i;
|
|
9457
9560
|
|
|
9458
9561
|
const LoginContainer = ({
|
|
9459
9562
|
style,
|
|
@@ -9560,7 +9663,7 @@ const LoginContainer = ({
|
|
|
9560
9663
|
});
|
|
9561
9664
|
|
|
9562
9665
|
case RESET_LOGIN_FORM:
|
|
9563
|
-
return initialState$
|
|
9666
|
+
return initialState$i;
|
|
9564
9667
|
|
|
9565
9668
|
case DISABLE_LOGIN_BUTTON:
|
|
9566
9669
|
return lib_7({ ...state,
|
|
@@ -9578,12 +9681,12 @@ const LoginContainer = ({
|
|
|
9578
9681
|
default:
|
|
9579
9682
|
return state;
|
|
9580
9683
|
}
|
|
9581
|
-
}, initialState$
|
|
9684
|
+
}, initialState$i);
|
|
9582
9685
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9583
9686
|
style: { ...style
|
|
9584
9687
|
},
|
|
9585
9688
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9586
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
9689
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
9587
9690
|
value: {
|
|
9588
9691
|
state,
|
|
9589
9692
|
dispatch
|
|
@@ -9591,12 +9694,12 @@ const LoginContainer = ({
|
|
|
9591
9694
|
}, children.length ? children.map((child, i) => {
|
|
9592
9695
|
if (child) {
|
|
9593
9696
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9594
|
-
store: store$
|
|
9697
|
+
store: store$i,
|
|
9595
9698
|
key: i
|
|
9596
9699
|
});
|
|
9597
9700
|
}
|
|
9598
9701
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9599
|
-
store: store$
|
|
9702
|
+
store: store$i
|
|
9600
9703
|
})));
|
|
9601
9704
|
};
|
|
9602
9705
|
|
|
@@ -9841,7 +9944,7 @@ const LoginButton = ({
|
|
|
9841
9944
|
buttonDisabled
|
|
9842
9945
|
},
|
|
9843
9946
|
dispatch
|
|
9844
|
-
} = useContext(store$
|
|
9947
|
+
} = useContext(store$i);
|
|
9845
9948
|
const {
|
|
9846
9949
|
t
|
|
9847
9950
|
} = useTranslation("login");
|
|
@@ -9862,23 +9965,23 @@ const LoginButton = ({
|
|
|
9862
9965
|
};
|
|
9863
9966
|
|
|
9864
9967
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
9865
|
-
store: store$
|
|
9968
|
+
store: store$i
|
|
9866
9969
|
}, props));
|
|
9867
9970
|
|
|
9868
9971
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
9869
|
-
store: store$
|
|
9972
|
+
store: store$i
|
|
9870
9973
|
}, props));
|
|
9871
9974
|
|
|
9872
|
-
var _path$
|
|
9975
|
+
var _path$s;
|
|
9873
9976
|
|
|
9874
|
-
function _extends$
|
|
9977
|
+
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); }
|
|
9875
9978
|
|
|
9876
9979
|
function SvgCheck(props) {
|
|
9877
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
9980
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
9878
9981
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9879
9982
|
fill: "currentColor",
|
|
9880
9983
|
viewBox: "0 0 20 20"
|
|
9881
|
-
}, props), _path$
|
|
9984
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
9882
9985
|
fillRule: "evenodd",
|
|
9883
9986
|
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",
|
|
9884
9987
|
clipRule: "evenodd"
|
|
@@ -9943,7 +10046,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
9943
10046
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
9944
10047
|
facebookLoginRenderProps.FacebookLogin;
|
|
9945
10048
|
|
|
9946
|
-
const initialState$
|
|
10049
|
+
const initialState$h = {
|
|
9947
10050
|
email: "",
|
|
9948
10051
|
password: "",
|
|
9949
10052
|
emailError: null,
|
|
@@ -9960,10 +10063,10 @@ const initialState$g = {
|
|
|
9960
10063
|
content: ""
|
|
9961
10064
|
}
|
|
9962
10065
|
};
|
|
9963
|
-
const store$
|
|
10066
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
9964
10067
|
const {
|
|
9965
|
-
Provider: Provider$
|
|
9966
|
-
} = store$
|
|
10068
|
+
Provider: Provider$h
|
|
10069
|
+
} = store$h;
|
|
9967
10070
|
|
|
9968
10071
|
const RegisterContainer = ({
|
|
9969
10072
|
style,
|
|
@@ -10146,7 +10249,7 @@ const RegisterContainer = ({
|
|
|
10146
10249
|
});
|
|
10147
10250
|
|
|
10148
10251
|
case RESET_LOGIN_FORM:
|
|
10149
|
-
return initialState$
|
|
10252
|
+
return initialState$h;
|
|
10150
10253
|
|
|
10151
10254
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10152
10255
|
return lib_7({ ...state,
|
|
@@ -10164,12 +10267,12 @@ const RegisterContainer = ({
|
|
|
10164
10267
|
default:
|
|
10165
10268
|
return state;
|
|
10166
10269
|
}
|
|
10167
|
-
}, initialState$
|
|
10270
|
+
}, initialState$h);
|
|
10168
10271
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10169
10272
|
style: { ...style
|
|
10170
10273
|
},
|
|
10171
10274
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10172
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10275
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
10173
10276
|
value: {
|
|
10174
10277
|
state,
|
|
10175
10278
|
dispatch
|
|
@@ -10177,12 +10280,12 @@ const RegisterContainer = ({
|
|
|
10177
10280
|
}, children.length ? children.map((child, i) => {
|
|
10178
10281
|
if (child) {
|
|
10179
10282
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10180
|
-
store: store$
|
|
10283
|
+
store: store$h,
|
|
10181
10284
|
key: i
|
|
10182
10285
|
});
|
|
10183
10286
|
}
|
|
10184
10287
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10185
|
-
store: store$
|
|
10288
|
+
store: store$h
|
|
10186
10289
|
})));
|
|
10187
10290
|
};
|
|
10188
10291
|
/**
|
|
@@ -10197,15 +10300,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
10197
10300
|
return hasSecuritySdkLoaded;
|
|
10198
10301
|
}
|
|
10199
10302
|
|
|
10200
|
-
var _path$
|
|
10303
|
+
var _path$r;
|
|
10201
10304
|
|
|
10202
|
-
function _extends$
|
|
10305
|
+
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); }
|
|
10203
10306
|
|
|
10204
10307
|
function SvgFacebookLogo(props) {
|
|
10205
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10308
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
10206
10309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10207
10310
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10208
|
-
}, props), _path$
|
|
10311
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
10209
10312
|
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",
|
|
10210
10313
|
fill: "#3c5a9a"
|
|
10211
10314
|
})));
|
|
@@ -10222,10 +10325,10 @@ const FacebookLoginButton = ({
|
|
|
10222
10325
|
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;
|
|
10223
10326
|
const {
|
|
10224
10327
|
dispatch: loginDispatch
|
|
10225
|
-
} = useContext(store$
|
|
10328
|
+
} = useContext(store$i);
|
|
10226
10329
|
const {
|
|
10227
10330
|
dispatch: registerDispatch
|
|
10228
|
-
} = useContext(store$
|
|
10331
|
+
} = useContext(store$h);
|
|
10229
10332
|
|
|
10230
10333
|
const onSuccess = facebookUser => {
|
|
10231
10334
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10278,15 +10381,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10278
10381
|
unwrapExports(googleLogin);
|
|
10279
10382
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10280
10383
|
|
|
10281
|
-
var _path$
|
|
10384
|
+
var _path$q, _path2$3, _path3$1, _path4;
|
|
10282
10385
|
|
|
10283
|
-
function _extends$
|
|
10386
|
+
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); }
|
|
10284
10387
|
|
|
10285
10388
|
function SvgGoogleLogo(props) {
|
|
10286
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10389
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
10287
10390
|
viewBox: "0 0 24 24",
|
|
10288
10391
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10289
|
-
}, props), _path$
|
|
10392
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
10290
10393
|
fill: "#4285F4",
|
|
10291
10394
|
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"
|
|
10292
10395
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10312,10 +10415,10 @@ const GoogleLoginButton = ({
|
|
|
10312
10415
|
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;
|
|
10313
10416
|
const {
|
|
10314
10417
|
dispatch: loginDispatch
|
|
10315
|
-
} = useContext(store$
|
|
10418
|
+
} = useContext(store$i);
|
|
10316
10419
|
const {
|
|
10317
10420
|
dispatch: registerDispatch
|
|
10318
|
-
} = useContext(store$
|
|
10421
|
+
} = useContext(store$h);
|
|
10319
10422
|
|
|
10320
10423
|
const onSuccess = response => {
|
|
10321
10424
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10363,15 +10466,15 @@ const GoogleLoginButton = ({
|
|
|
10363
10466
|
}) : null;
|
|
10364
10467
|
};
|
|
10365
10468
|
|
|
10366
|
-
var _path$
|
|
10469
|
+
var _path$p;
|
|
10367
10470
|
|
|
10368
|
-
function _extends$
|
|
10471
|
+
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); }
|
|
10369
10472
|
|
|
10370
10473
|
function SvgAuth0Logo(props) {
|
|
10371
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10474
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
10372
10475
|
viewBox: "0 0 256 285",
|
|
10373
10476
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10374
|
-
}, props), _path$
|
|
10477
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
10375
10478
|
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"
|
|
10376
10479
|
})));
|
|
10377
10480
|
}
|
|
@@ -10411,10 +10514,10 @@ const Auth0LoginButton = ({
|
|
|
10411
10514
|
}, [auth0Enabled, auth0Loaded]);
|
|
10412
10515
|
const {
|
|
10413
10516
|
dispatch: loginDispatch
|
|
10414
|
-
} = useContext(store$
|
|
10517
|
+
} = useContext(store$i);
|
|
10415
10518
|
const {
|
|
10416
10519
|
dispatch: registerDispatch
|
|
10417
|
-
} = useContext(store$
|
|
10520
|
+
} = useContext(store$h);
|
|
10418
10521
|
|
|
10419
10522
|
function handleClick() {
|
|
10420
10523
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10547,15 +10650,15 @@ function LoginView(props) {
|
|
|
10547
10650
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10548
10651
|
}
|
|
10549
10652
|
|
|
10550
|
-
var _path$
|
|
10653
|
+
var _path$o, _path2$2, _path3;
|
|
10551
10654
|
|
|
10552
|
-
function _extends$
|
|
10655
|
+
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); }
|
|
10553
10656
|
|
|
10554
10657
|
function SvgPelcroAuthorship(props) {
|
|
10555
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10658
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
10556
10659
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10557
10660
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10558
|
-
}, props), _path$
|
|
10661
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
10559
10662
|
fill: "none",
|
|
10560
10663
|
stroke: "#4a4a4a",
|
|
10561
10664
|
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"
|
|
@@ -10702,11 +10805,11 @@ function LoginModal({
|
|
|
10702
10805
|
LoginModal.viewId = "login";
|
|
10703
10806
|
|
|
10704
10807
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10705
|
-
store: store$
|
|
10808
|
+
store: store$h
|
|
10706
10809
|
}, props));
|
|
10707
10810
|
|
|
10708
10811
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10709
|
-
store: store$
|
|
10812
|
+
store: store$h
|
|
10710
10813
|
}, props));
|
|
10711
10814
|
|
|
10712
10815
|
const RegisterButton = ({
|
|
@@ -10726,7 +10829,7 @@ const RegisterButton = ({
|
|
|
10726
10829
|
buttonDisabled
|
|
10727
10830
|
},
|
|
10728
10831
|
dispatch
|
|
10729
|
-
} = useContext(store$
|
|
10832
|
+
} = useContext(store$h);
|
|
10730
10833
|
const {
|
|
10731
10834
|
t
|
|
10732
10835
|
} = useTranslation("register");
|
|
@@ -10864,7 +10967,7 @@ function FirstName({
|
|
|
10864
10967
|
}
|
|
10865
10968
|
|
|
10866
10969
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
10867
|
-
store: store$
|
|
10970
|
+
store: store$h
|
|
10868
10971
|
}, props));
|
|
10869
10972
|
|
|
10870
10973
|
function LastName({
|
|
@@ -10895,7 +10998,7 @@ function LastName({
|
|
|
10895
10998
|
}
|
|
10896
10999
|
|
|
10897
11000
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
10898
|
-
store: store$
|
|
11001
|
+
store: store$h
|
|
10899
11002
|
}, props));
|
|
10900
11003
|
|
|
10901
11004
|
/**
|
|
@@ -11019,7 +11122,7 @@ function TextInput({
|
|
|
11019
11122
|
|
|
11020
11123
|
const RegisterTextInput = props => {
|
|
11021
11124
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
11022
|
-
store: store$
|
|
11125
|
+
store: store$h
|
|
11023
11126
|
}));
|
|
11024
11127
|
};
|
|
11025
11128
|
|
|
@@ -11166,6 +11269,7 @@ function SelectModalWithHook(props) {
|
|
|
11166
11269
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
11167
11270
|
}, []);
|
|
11168
11271
|
const {
|
|
11272
|
+
productsList,
|
|
11169
11273
|
isGift,
|
|
11170
11274
|
plan,
|
|
11171
11275
|
product,
|
|
@@ -11175,11 +11279,12 @@ function SelectModalWithHook(props) {
|
|
|
11175
11279
|
view,
|
|
11176
11280
|
set
|
|
11177
11281
|
} = usePelcro();
|
|
11178
|
-
const
|
|
11179
|
-
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
11282
|
+
const isRenewingSub = view === "_plan-select-renew";
|
|
11180
11283
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
11284
|
+
productsList: productsList,
|
|
11181
11285
|
isGift: isGift,
|
|
11182
|
-
disableGifting: isRenewingGift,
|
|
11286
|
+
disableGifting: isRenewingGift || isRenewingSub,
|
|
11287
|
+
isRenewingSub: isRenewingSub,
|
|
11183
11288
|
plan: plan,
|
|
11184
11289
|
product: product,
|
|
11185
11290
|
onClose: () => {
|
|
@@ -11193,8 +11298,10 @@ function SelectModalWithHook(props) {
|
|
|
11193
11298
|
plan,
|
|
11194
11299
|
isGift
|
|
11195
11300
|
}),
|
|
11196
|
-
|
|
11197
|
-
|
|
11301
|
+
setSubscriptionIdToRenew: subscriptionIdToRenew => set({
|
|
11302
|
+
subscriptionIdToRenew
|
|
11303
|
+
}),
|
|
11304
|
+
setView: switchView
|
|
11198
11305
|
});
|
|
11199
11306
|
}
|
|
11200
11307
|
SelectModalWithHook.viewId = "plan-select";
|
|
@@ -11226,10 +11333,10 @@ class SelectModal extends Component {
|
|
|
11226
11333
|
});
|
|
11227
11334
|
}
|
|
11228
11335
|
|
|
11229
|
-
if (this.
|
|
11336
|
+
if (this.props.productsList.length === 1) {
|
|
11230
11337
|
this.setState({
|
|
11231
|
-
product: this.
|
|
11232
|
-
planList: this.
|
|
11338
|
+
product: this.props.productsList[0],
|
|
11339
|
+
planList: this.props.productsList[0].plans,
|
|
11233
11340
|
mode: "plan"
|
|
11234
11341
|
});
|
|
11235
11342
|
}
|
|
@@ -11246,7 +11353,7 @@ class SelectModal extends Component {
|
|
|
11246
11353
|
});
|
|
11247
11354
|
|
|
11248
11355
|
_defineProperty$3(this, "onProductChange", e => {
|
|
11249
|
-
const product =
|
|
11356
|
+
const product = productsList[e.target.selectedIndex];
|
|
11250
11357
|
this.setState({
|
|
11251
11358
|
product: product,
|
|
11252
11359
|
plan: product.plans[0]
|
|
@@ -11312,7 +11419,7 @@ class SelectModal extends Component {
|
|
|
11312
11419
|
|
|
11313
11420
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11314
11421
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11315
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.
|
|
11422
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.props.productsList;
|
|
11316
11423
|
return productsToShow.map((product, index) => {
|
|
11317
11424
|
return this.renderOneProduct(product, index);
|
|
11318
11425
|
});
|
|
@@ -11325,7 +11432,7 @@ class SelectModal extends Component {
|
|
|
11325
11432
|
return this.renderOneProduct(this.state.product);
|
|
11326
11433
|
}
|
|
11327
11434
|
|
|
11328
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11435
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(this.props.productsList); // Render normal products if there are no available matching products
|
|
11329
11436
|
|
|
11330
11437
|
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11331
11438
|
return this.renderProducts();
|
|
@@ -11341,10 +11448,7 @@ class SelectModal extends Component {
|
|
|
11341
11448
|
className: "plc-text-sm plc-font-semibold"
|
|
11342
11449
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11343
11450
|
|
|
11344
|
-
function productsWithMatchedTaggedFirst() {
|
|
11345
|
-
var _window$Pelcro$produc;
|
|
11346
|
-
|
|
11347
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11451
|
+
function productsWithMatchedTaggedFirst(allProducts) {
|
|
11348
11452
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11349
11453
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11350
11454
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
@@ -11378,7 +11482,7 @@ class SelectModal extends Component {
|
|
|
11378
11482
|
_defineProperty$3(this, "selectProduct", e => {
|
|
11379
11483
|
const id = e.target.dataset.key;
|
|
11380
11484
|
|
|
11381
|
-
for (const product of this.
|
|
11485
|
+
for (const product of this.props.productsList) {
|
|
11382
11486
|
if (+product.id === +id) {
|
|
11383
11487
|
var _this$state$plan;
|
|
11384
11488
|
|
|
@@ -11431,6 +11535,14 @@ class SelectModal extends Component {
|
|
|
11431
11535
|
|
|
11432
11536
|
_defineProperty$3(this, "submitOption", () => {
|
|
11433
11537
|
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
11538
|
+
|
|
11539
|
+
if (this.props.isRenewingSub) {
|
|
11540
|
+
var _matchingSub$id;
|
|
11541
|
+
|
|
11542
|
+
const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
11543
|
+
this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
|
|
11544
|
+
}
|
|
11545
|
+
|
|
11434
11546
|
const {
|
|
11435
11547
|
product,
|
|
11436
11548
|
isGift
|
|
@@ -11468,8 +11580,7 @@ class SelectModal extends Component {
|
|
|
11468
11580
|
plan: {},
|
|
11469
11581
|
isGift: props.isGift,
|
|
11470
11582
|
disabled: true,
|
|
11471
|
-
mode: "product"
|
|
11472
|
-
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
11583
|
+
mode: "product"
|
|
11473
11584
|
};
|
|
11474
11585
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
11475
11586
|
this.locale = this.props.t;
|
|
@@ -11477,7 +11588,7 @@ class SelectModal extends Component {
|
|
|
11477
11588
|
}
|
|
11478
11589
|
|
|
11479
11590
|
render() {
|
|
11480
|
-
var
|
|
11591
|
+
var _this$props$productsL, _this$props$productsL2, _window$Pelcro$site$r;
|
|
11481
11592
|
|
|
11482
11593
|
const {
|
|
11483
11594
|
disableGifting
|
|
@@ -11511,7 +11622,7 @@ class SelectModal extends Component {
|
|
|
11511
11622
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11512
11623
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11513
11624
|
className: "plc-text-2xl plc-font-semibold"
|
|
11514
|
-
}, this.product && this.product.paywall.select_title || ((
|
|
11625
|
+
}, this.product && this.product.paywall.select_title || ((_this$props$productsL = this.props.productsList[0]) === null || _this$props$productsL === void 0 ? void 0 : _this$props$productsL.paywall.select_title)), /*#__PURE__*/React__default.createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_this$props$productsL2 = this.props.productsList[0]) === null || _this$props$productsL2 === void 0 ? void 0 : _this$props$productsL2.paywall.select_subtitle))), /*#__PURE__*/React__default.createElement("div", {
|
|
11515
11626
|
className: "pelcro-select-products-wrapper"
|
|
11516
11627
|
}, (_window$Pelcro$site$r = window.Pelcro.site.read()) !== null && _window$Pelcro$site$r !== void 0 && _window$Pelcro$site$r.restrictive_paywall_metatags_enabled ? this.renderMatchingProductsFirst() : this.renderProducts()), this.state.mode === "plan" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
11517
11628
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
@@ -12752,6 +12863,7 @@ class Subscription {
|
|
|
12752
12863
|
* @property {number} [quantity]
|
|
12753
12864
|
* @property {string} addressId
|
|
12754
12865
|
* @property {number} invoiceId
|
|
12866
|
+
* @property {boolean} isExistingSource
|
|
12755
12867
|
*/
|
|
12756
12868
|
|
|
12757
12869
|
/**
|
|
@@ -12936,11 +13048,15 @@ class StripeGateway {
|
|
|
12936
13048
|
token,
|
|
12937
13049
|
invoiceId
|
|
12938
13050
|
} = options;
|
|
12939
|
-
|
|
13051
|
+
const params = options.isExistingSource ? {
|
|
13052
|
+
source_id: token,
|
|
13053
|
+
invoice_id: invoiceId
|
|
13054
|
+
} : {
|
|
12940
13055
|
payment_gateway: _classPrivateFieldGet(this, _paymentGateway),
|
|
12941
13056
|
gateway_token: token,
|
|
12942
13057
|
invoice_id: invoiceId
|
|
12943
|
-
}
|
|
13058
|
+
};
|
|
13059
|
+
window.Pelcro.invoice.pay(params, (err, res) => {
|
|
12944
13060
|
callback(err, res);
|
|
12945
13061
|
});
|
|
12946
13062
|
}
|
|
@@ -13081,7 +13197,7 @@ class PaypalGateWay {
|
|
|
13081
13197
|
|
|
13082
13198
|
/** @type {PaymentStateType} */
|
|
13083
13199
|
|
|
13084
|
-
const initialState$
|
|
13200
|
+
const initialState$g = {
|
|
13085
13201
|
disableSubmit: false,
|
|
13086
13202
|
isLoading: false,
|
|
13087
13203
|
disableCouponButton: false,
|
|
@@ -13100,10 +13216,10 @@ const initialState$f = {
|
|
|
13100
13216
|
content: ""
|
|
13101
13217
|
}
|
|
13102
13218
|
};
|
|
13103
|
-
const store$
|
|
13219
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
13104
13220
|
const {
|
|
13105
|
-
Provider: Provider$
|
|
13106
|
-
} = store$
|
|
13221
|
+
Provider: Provider$g
|
|
13222
|
+
} = store$g;
|
|
13107
13223
|
|
|
13108
13224
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13109
13225
|
style,
|
|
@@ -13707,6 +13823,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13707
13823
|
return subscription.execute({
|
|
13708
13824
|
type: SUBSCRIPTION_TYPES.PAY_INVOICE,
|
|
13709
13825
|
token: gatewayToken,
|
|
13826
|
+
isExistingSource: Boolean(selectedPaymentMethodId),
|
|
13710
13827
|
invoiceId: invoice.id
|
|
13711
13828
|
}, (err, res) => {
|
|
13712
13829
|
dispatch({
|
|
@@ -13729,9 +13846,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13729
13846
|
});
|
|
13730
13847
|
}
|
|
13731
13848
|
|
|
13732
|
-
set({
|
|
13733
|
-
invoice: null
|
|
13734
|
-
});
|
|
13735
13849
|
onSuccess(res);
|
|
13736
13850
|
});
|
|
13737
13851
|
};
|
|
@@ -13836,7 +13950,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13836
13950
|
}, 0);
|
|
13837
13951
|
};
|
|
13838
13952
|
|
|
13839
|
-
const totalAmount = (_ref = (_ref2 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref2 !== void 0 ? _ref2 : invoice.amount_remaining) !== null && _ref !== void 0 ? _ref : getOrderItemsTotal();
|
|
13953
|
+
const totalAmount = (_ref = (_ref2 = (_state$updatedPrice = state === null || state === void 0 ? void 0 : state.updatedPrice) !== null && _state$updatedPrice !== void 0 ? _state$updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount) !== null && _ref2 !== void 0 ? _ref2 : invoice === null || invoice === void 0 ? void 0 : invoice.amount_remaining) !== null && _ref !== void 0 ? _ref : getOrderItemsTotal();
|
|
13840
13954
|
|
|
13841
13955
|
if ((source === null || source === void 0 ? void 0 : (_source$card3 = source.card) === null || _source$card3 === void 0 ? void 0 : _source$card3.three_d_secure) === "required" && totalAmount > 0) {
|
|
13842
13956
|
return resolveTaxCalculation().then(res => {
|
|
@@ -14083,7 +14197,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14083
14197
|
case HANDLE_PAYPAL_SUBSCRIPTION:
|
|
14084
14198
|
return lib_5(state, (state, dispatch) => {
|
|
14085
14199
|
if (type === "invoicePayment") {
|
|
14086
|
-
payInvoice(new
|
|
14200
|
+
payInvoice(new PaypalGateway(), action.payload, dispatch);
|
|
14087
14201
|
} else {
|
|
14088
14202
|
handlePaypalSubscription(state, action.payload);
|
|
14089
14203
|
}
|
|
@@ -14145,21 +14259,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14145
14259
|
default:
|
|
14146
14260
|
return state;
|
|
14147
14261
|
}
|
|
14148
|
-
}, initialState$
|
|
14262
|
+
}, initialState$g);
|
|
14149
14263
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14150
14264
|
style: { ...style
|
|
14151
14265
|
},
|
|
14152
14266
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14153
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
14267
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
14154
14268
|
value: {
|
|
14155
14269
|
state,
|
|
14156
14270
|
dispatch
|
|
14157
14271
|
}
|
|
14158
14272
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
14159
|
-
store: store$
|
|
14273
|
+
store: store$g,
|
|
14160
14274
|
key: i
|
|
14161
14275
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
14162
|
-
store: store$
|
|
14276
|
+
store: store$g
|
|
14163
14277
|
})));
|
|
14164
14278
|
};
|
|
14165
14279
|
|
|
@@ -14181,7 +14295,7 @@ const PaymentMethodContainer = props => {
|
|
|
14181
14295
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14182
14296
|
locale: getPageOrDefaultLanguage()
|
|
14183
14297
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
14184
|
-
store: store$
|
|
14298
|
+
store: store$g
|
|
14185
14299
|
}, props))));
|
|
14186
14300
|
}
|
|
14187
14301
|
|
|
@@ -14234,7 +14348,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14234
14348
|
currentPlan,
|
|
14235
14349
|
updatedPrice
|
|
14236
14350
|
}
|
|
14237
|
-
} = useContext(store$
|
|
14351
|
+
} = useContext(store$g);
|
|
14238
14352
|
|
|
14239
14353
|
const updatePaymentRequest = () => {
|
|
14240
14354
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14294,7 +14408,7 @@ const DiscountedPrice = props => {
|
|
|
14294
14408
|
taxAmount,
|
|
14295
14409
|
percentOff
|
|
14296
14410
|
}
|
|
14297
|
-
} = useContext(store$
|
|
14411
|
+
} = useContext(store$g);
|
|
14298
14412
|
const {
|
|
14299
14413
|
order,
|
|
14300
14414
|
plan
|
|
@@ -14344,7 +14458,7 @@ const SubmitPaymentMethod = ({
|
|
|
14344
14458
|
isLoading,
|
|
14345
14459
|
updatedPrice
|
|
14346
14460
|
}
|
|
14347
|
-
} = useContext(store$
|
|
14461
|
+
} = useContext(store$g);
|
|
14348
14462
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
14349
14463
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
14350
14464
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -14365,17 +14479,17 @@ const SubmitPaymentMethod = ({
|
|
|
14365
14479
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
14366
14480
|
};
|
|
14367
14481
|
|
|
14368
|
-
var _path$
|
|
14482
|
+
var _path$n;
|
|
14369
14483
|
|
|
14370
|
-
function _extends$
|
|
14484
|
+
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); }
|
|
14371
14485
|
|
|
14372
14486
|
function SvgArrowLeft(props) {
|
|
14373
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14487
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
14374
14488
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14375
14489
|
fill: "none",
|
|
14376
14490
|
viewBox: "0 0 24 24",
|
|
14377
14491
|
stroke: "currentColor"
|
|
14378
|
-
}, props), _path$
|
|
14492
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
14379
14493
|
strokeLinecap: "round",
|
|
14380
14494
|
strokeLinejoin: "round",
|
|
14381
14495
|
strokeWidth: 2,
|
|
@@ -14394,7 +14508,7 @@ const ApplyCouponButton = ({
|
|
|
14394
14508
|
disableCouponButton
|
|
14395
14509
|
},
|
|
14396
14510
|
dispatch
|
|
14397
|
-
} = useContext(store$
|
|
14511
|
+
} = useContext(store$g);
|
|
14398
14512
|
const {
|
|
14399
14513
|
t
|
|
14400
14514
|
} = useTranslation("checkoutForm");
|
|
@@ -14428,7 +14542,7 @@ const CouponCodeField = props => {
|
|
|
14428
14542
|
couponCode,
|
|
14429
14543
|
couponError
|
|
14430
14544
|
}
|
|
14431
|
-
} = useContext(store$
|
|
14545
|
+
} = useContext(store$g);
|
|
14432
14546
|
|
|
14433
14547
|
const onCouponCodeChange = e => {
|
|
14434
14548
|
dispatch({
|
|
@@ -14457,17 +14571,17 @@ const CouponCodeField = props => {
|
|
|
14457
14571
|
}, props));
|
|
14458
14572
|
};
|
|
14459
14573
|
|
|
14460
|
-
var _path$
|
|
14574
|
+
var _path$m;
|
|
14461
14575
|
|
|
14462
|
-
function _extends$
|
|
14576
|
+
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); }
|
|
14463
14577
|
|
|
14464
14578
|
function SvgTicket(props) {
|
|
14465
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14579
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
14466
14580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14467
14581
|
fill: "none",
|
|
14468
14582
|
viewBox: "0 0 24 24",
|
|
14469
14583
|
stroke: "currentColor"
|
|
14470
|
-
}, props), _path$
|
|
14584
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
14471
14585
|
strokeLinecap: "round",
|
|
14472
14586
|
strokeLinejoin: "round",
|
|
14473
14587
|
strokeWidth: 2,
|
|
@@ -14484,7 +14598,7 @@ const CouponCode = ({
|
|
|
14484
14598
|
state: {
|
|
14485
14599
|
enableCouponField
|
|
14486
14600
|
}
|
|
14487
|
-
} = useContext(store$
|
|
14601
|
+
} = useContext(store$g);
|
|
14488
14602
|
const {
|
|
14489
14603
|
t
|
|
14490
14604
|
} = useTranslation("checkoutForm");
|
|
@@ -14741,7 +14855,7 @@ const PaypalSubscribeButton = props => {
|
|
|
14741
14855
|
const {
|
|
14742
14856
|
dispatch,
|
|
14743
14857
|
state
|
|
14744
|
-
} = useContext(store$
|
|
14858
|
+
} = useContext(store$g);
|
|
14745
14859
|
const {
|
|
14746
14860
|
product,
|
|
14747
14861
|
plan,
|
|
@@ -14827,16 +14941,16 @@ const BankRedirection = () => {
|
|
|
14827
14941
|
}));
|
|
14828
14942
|
};
|
|
14829
14943
|
|
|
14830
|
-
var _path$
|
|
14944
|
+
var _path$l;
|
|
14831
14945
|
|
|
14832
|
-
function _extends$
|
|
14946
|
+
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); }
|
|
14833
14947
|
|
|
14834
14948
|
function SvgLock(props) {
|
|
14835
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14949
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
14836
14950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14837
14951
|
viewBox: "0 0 20 20",
|
|
14838
14952
|
fill: "currentColor"
|
|
14839
|
-
}, props), _path$
|
|
14953
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
14840
14954
|
fillRule: "evenodd",
|
|
14841
14955
|
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",
|
|
14842
14956
|
clipRule: "evenodd"
|
|
@@ -14853,7 +14967,7 @@ const SelectedPaymentMethod = () => {
|
|
|
14853
14967
|
state: {
|
|
14854
14968
|
isLoading
|
|
14855
14969
|
}
|
|
14856
|
-
} = useContext(store$
|
|
14970
|
+
} = useContext(store$g);
|
|
14857
14971
|
const {
|
|
14858
14972
|
switchView,
|
|
14859
14973
|
selectedPaymentMethodId
|
|
@@ -14895,7 +15009,7 @@ const TaxAmount = () => {
|
|
|
14895
15009
|
state: {
|
|
14896
15010
|
taxAmount
|
|
14897
15011
|
}
|
|
14898
|
-
} = useContext(store$
|
|
15012
|
+
} = useContext(store$g);
|
|
14899
15013
|
const {
|
|
14900
15014
|
plan
|
|
14901
15015
|
} = usePelcro();
|
|
@@ -15058,12 +15172,12 @@ function SubscriptionRenewModal({
|
|
|
15058
15172
|
}
|
|
15059
15173
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
15060
15174
|
|
|
15061
|
-
var _path$
|
|
15175
|
+
var _path$k;
|
|
15062
15176
|
|
|
15063
|
-
function _extends$
|
|
15177
|
+
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); }
|
|
15064
15178
|
|
|
15065
15179
|
function SvgGift(props) {
|
|
15066
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15180
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
15067
15181
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
15068
15182
|
fill: "none",
|
|
15069
15183
|
stroke: "currentColor",
|
|
@@ -15072,7 +15186,7 @@ function SvgGift(props) {
|
|
|
15072
15186
|
strokeWidth: 2,
|
|
15073
15187
|
viewBox: "0 0 24 24",
|
|
15074
15188
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15075
|
-
}, props), _path$
|
|
15189
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
15076
15190
|
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"
|
|
15077
15191
|
})));
|
|
15078
15192
|
}
|
|
@@ -15413,7 +15527,7 @@ class DefaultNewsLetter extends Component {
|
|
|
15413
15527
|
|
|
15414
15528
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
15415
15529
|
|
|
15416
|
-
const initialState$
|
|
15530
|
+
const initialState$f = {
|
|
15417
15531
|
didSubToNewslettersBefore: false,
|
|
15418
15532
|
newsletters: [],
|
|
15419
15533
|
isListLoading: true,
|
|
@@ -15423,10 +15537,10 @@ const initialState$e = {
|
|
|
15423
15537
|
content: ""
|
|
15424
15538
|
}
|
|
15425
15539
|
};
|
|
15426
|
-
const store$
|
|
15540
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
15427
15541
|
const {
|
|
15428
|
-
Provider: Provider$
|
|
15429
|
-
} = store$
|
|
15542
|
+
Provider: Provider$f
|
|
15543
|
+
} = store$f;
|
|
15430
15544
|
|
|
15431
15545
|
const NewsletterUpdateContainer = ({
|
|
15432
15546
|
style,
|
|
@@ -15539,7 +15653,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15539
15653
|
default:
|
|
15540
15654
|
return state;
|
|
15541
15655
|
}
|
|
15542
|
-
}, initialState$
|
|
15656
|
+
}, initialState$f);
|
|
15543
15657
|
useEffect(() => {
|
|
15544
15658
|
const getUserNewsletters = () => {
|
|
15545
15659
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -15583,7 +15697,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15583
15697
|
style: { ...style
|
|
15584
15698
|
},
|
|
15585
15699
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
15586
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
15700
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
15587
15701
|
value: {
|
|
15588
15702
|
state,
|
|
15589
15703
|
dispatch
|
|
@@ -15591,12 +15705,12 @@ const NewsletterUpdateContainer = ({
|
|
|
15591
15705
|
}, children.length ? children.map((child, i) => {
|
|
15592
15706
|
if (child) {
|
|
15593
15707
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
15594
|
-
store: store$
|
|
15708
|
+
store: store$f,
|
|
15595
15709
|
key: i
|
|
15596
15710
|
});
|
|
15597
15711
|
}
|
|
15598
15712
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15599
|
-
store: store$
|
|
15713
|
+
store: store$f
|
|
15600
15714
|
})));
|
|
15601
15715
|
};
|
|
15602
15716
|
|
|
@@ -15611,7 +15725,7 @@ const NewsletterUpdateButton = ({
|
|
|
15611
15725
|
isSubmitting,
|
|
15612
15726
|
isListLoading
|
|
15613
15727
|
}
|
|
15614
|
-
} = useContext(store$
|
|
15728
|
+
} = useContext(store$f);
|
|
15615
15729
|
const {
|
|
15616
15730
|
t
|
|
15617
15731
|
} = useTranslation("newsletter");
|
|
@@ -15641,7 +15755,7 @@ const NewsletterUpdateList = () => {
|
|
|
15641
15755
|
newsletters,
|
|
15642
15756
|
isListLoading
|
|
15643
15757
|
}
|
|
15644
|
-
} = useContext(store$
|
|
15758
|
+
} = useContext(store$f);
|
|
15645
15759
|
|
|
15646
15760
|
if (isListLoading) {
|
|
15647
15761
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
@@ -15845,7 +15959,7 @@ function SubscriptionCreateModal({
|
|
|
15845
15959
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
15846
15960
|
|
|
15847
15961
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
15848
|
-
const initialState$
|
|
15962
|
+
const initialState$e = {
|
|
15849
15963
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
15850
15964
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
15851
15965
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -15858,10 +15972,10 @@ const initialState$d = {
|
|
|
15858
15972
|
content: ""
|
|
15859
15973
|
}
|
|
15860
15974
|
};
|
|
15861
|
-
const store$
|
|
15975
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
15862
15976
|
const {
|
|
15863
|
-
Provider: Provider$
|
|
15864
|
-
} = store$
|
|
15977
|
+
Provider: Provider$e
|
|
15978
|
+
} = store$e;
|
|
15865
15979
|
|
|
15866
15980
|
const UserUpdateContainer = ({
|
|
15867
15981
|
style,
|
|
@@ -15993,27 +16107,27 @@ const UserUpdateContainer = ({
|
|
|
15993
16107
|
default:
|
|
15994
16108
|
return state;
|
|
15995
16109
|
}
|
|
15996
|
-
}, initialState$
|
|
16110
|
+
}, initialState$e);
|
|
15997
16111
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
15998
16112
|
style: { ...style
|
|
15999
16113
|
},
|
|
16000
16114
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16001
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16115
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
16002
16116
|
value: {
|
|
16003
16117
|
state,
|
|
16004
16118
|
dispatch
|
|
16005
16119
|
}
|
|
16006
16120
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16007
|
-
store: store$
|
|
16121
|
+
store: store$e,
|
|
16008
16122
|
key: i
|
|
16009
16123
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16010
|
-
store: store$
|
|
16124
|
+
store: store$e
|
|
16011
16125
|
})));
|
|
16012
16126
|
};
|
|
16013
16127
|
|
|
16014
16128
|
const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
16015
16129
|
disabled: true,
|
|
16016
|
-
store: store$
|
|
16130
|
+
store: store$e
|
|
16017
16131
|
}, props));
|
|
16018
16132
|
|
|
16019
16133
|
const UserUpdateButton = ({
|
|
@@ -16026,7 +16140,7 @@ const UserUpdateButton = ({
|
|
|
16026
16140
|
buttonDisabled
|
|
16027
16141
|
},
|
|
16028
16142
|
dispatch
|
|
16029
|
-
} = useContext(store$
|
|
16143
|
+
} = useContext(store$e);
|
|
16030
16144
|
const {
|
|
16031
16145
|
t
|
|
16032
16146
|
} = useTranslation("userEdit");
|
|
@@ -16043,11 +16157,11 @@ const UserUpdateButton = ({
|
|
|
16043
16157
|
};
|
|
16044
16158
|
|
|
16045
16159
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
16046
|
-
store: store$
|
|
16160
|
+
store: store$e
|
|
16047
16161
|
}, props));
|
|
16048
16162
|
|
|
16049
16163
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
16050
|
-
store: store$
|
|
16164
|
+
store: store$e
|
|
16051
16165
|
}, props));
|
|
16052
16166
|
|
|
16053
16167
|
function Phone({
|
|
@@ -16076,22 +16190,22 @@ function Phone({
|
|
|
16076
16190
|
}
|
|
16077
16191
|
|
|
16078
16192
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
16079
|
-
store: store$
|
|
16193
|
+
store: store$e
|
|
16080
16194
|
}, props));
|
|
16081
16195
|
|
|
16082
16196
|
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";
|
|
16083
16197
|
|
|
16084
|
-
var _path$
|
|
16198
|
+
var _path$j;
|
|
16085
16199
|
|
|
16086
|
-
function _extends$
|
|
16200
|
+
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); }
|
|
16087
16201
|
|
|
16088
16202
|
function SvgEdit(props) {
|
|
16089
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
16203
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
16090
16204
|
className: "plc-w-6 plc-h-6",
|
|
16091
16205
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16092
16206
|
viewBox: "0 0 20 20",
|
|
16093
16207
|
fill: "currentColor"
|
|
16094
|
-
}, props), _path$
|
|
16208
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
16095
16209
|
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"
|
|
16096
16210
|
})));
|
|
16097
16211
|
}
|
|
@@ -16223,16 +16337,16 @@ function DisplayName({
|
|
|
16223
16337
|
}
|
|
16224
16338
|
|
|
16225
16339
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
16226
|
-
store: store$
|
|
16340
|
+
store: store$e
|
|
16227
16341
|
}, props));
|
|
16228
16342
|
|
|
16229
16343
|
const UserUpdateTextInput = props => {
|
|
16230
16344
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
16231
|
-
store: store$
|
|
16345
|
+
store: store$e
|
|
16232
16346
|
}));
|
|
16233
16347
|
};
|
|
16234
16348
|
|
|
16235
|
-
const initialState$
|
|
16349
|
+
const initialState$d = {
|
|
16236
16350
|
isSubmitting: false,
|
|
16237
16351
|
firstName: "",
|
|
16238
16352
|
firstNameError: "",
|
|
@@ -16257,10 +16371,10 @@ const initialState$c = {
|
|
|
16257
16371
|
content: ""
|
|
16258
16372
|
}
|
|
16259
16373
|
};
|
|
16260
|
-
const store$
|
|
16374
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
16261
16375
|
const {
|
|
16262
|
-
Provider: Provider$
|
|
16263
|
-
} = store$
|
|
16376
|
+
Provider: Provider$d
|
|
16377
|
+
} = store$d;
|
|
16264
16378
|
|
|
16265
16379
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16266
16380
|
|
|
@@ -16467,7 +16581,7 @@ const AddressCreateContainer = ({
|
|
|
16467
16581
|
default:
|
|
16468
16582
|
return state;
|
|
16469
16583
|
}
|
|
16470
|
-
}, initialState$
|
|
16584
|
+
}, initialState$d);
|
|
16471
16585
|
useEffect(() => {
|
|
16472
16586
|
const getStates = () => {
|
|
16473
16587
|
dispatch({
|
|
@@ -16499,16 +16613,16 @@ const AddressCreateContainer = ({
|
|
|
16499
16613
|
style: { ...style
|
|
16500
16614
|
},
|
|
16501
16615
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
16502
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16616
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
16503
16617
|
value: {
|
|
16504
16618
|
state,
|
|
16505
16619
|
dispatch
|
|
16506
16620
|
}
|
|
16507
16621
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16508
|
-
store: store$
|
|
16622
|
+
store: store$d,
|
|
16509
16623
|
key: i
|
|
16510
16624
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16511
|
-
store: store$
|
|
16625
|
+
store: store$d
|
|
16512
16626
|
})));
|
|
16513
16627
|
};
|
|
16514
16628
|
|
|
@@ -16519,7 +16633,7 @@ function AddressCreateFirstName(props) {
|
|
|
16519
16633
|
firstName,
|
|
16520
16634
|
firstNameError
|
|
16521
16635
|
}
|
|
16522
|
-
} = useContext(store$
|
|
16636
|
+
} = useContext(store$d);
|
|
16523
16637
|
|
|
16524
16638
|
const handleBlur = () => {
|
|
16525
16639
|
return dispatch({
|
|
@@ -16562,7 +16676,7 @@ function AddressCreateLastName(props) {
|
|
|
16562
16676
|
lastName,
|
|
16563
16677
|
lastNameError
|
|
16564
16678
|
}
|
|
16565
|
-
} = useContext(store$
|
|
16679
|
+
} = useContext(store$d);
|
|
16566
16680
|
|
|
16567
16681
|
const handleBlur = () => {
|
|
16568
16682
|
return dispatch({
|
|
@@ -16605,7 +16719,7 @@ function AddressCreateLine1(props) {
|
|
|
16605
16719
|
line1,
|
|
16606
16720
|
line1Error
|
|
16607
16721
|
}
|
|
16608
|
-
} = useContext(store$
|
|
16722
|
+
} = useContext(store$d);
|
|
16609
16723
|
|
|
16610
16724
|
const handleBlur = () => {
|
|
16611
16725
|
return dispatch({
|
|
@@ -16648,7 +16762,7 @@ function AddressCreateCity(props) {
|
|
|
16648
16762
|
city,
|
|
16649
16763
|
cityError
|
|
16650
16764
|
}
|
|
16651
|
-
} = useContext(store$
|
|
16765
|
+
} = useContext(store$d);
|
|
16652
16766
|
|
|
16653
16767
|
const handleBlur = () => {
|
|
16654
16768
|
return dispatch({
|
|
@@ -16691,7 +16805,7 @@ function AddressCreatePostalCode(props) {
|
|
|
16691
16805
|
postalCode,
|
|
16692
16806
|
postalCodeError
|
|
16693
16807
|
}
|
|
16694
|
-
} = useContext(store$
|
|
16808
|
+
} = useContext(store$d);
|
|
16695
16809
|
|
|
16696
16810
|
const handleBlur = () => {
|
|
16697
16811
|
return dispatch({
|
|
@@ -16737,7 +16851,7 @@ const AddressCreateSubmit = ({
|
|
|
16737
16851
|
state: {
|
|
16738
16852
|
isSubmitting
|
|
16739
16853
|
}
|
|
16740
|
-
} = useContext(store$
|
|
16854
|
+
} = useContext(store$d);
|
|
16741
16855
|
const {
|
|
16742
16856
|
t
|
|
16743
16857
|
} = useTranslation("address");
|
|
@@ -16848,7 +16962,7 @@ function CountrySelect({
|
|
|
16848
16962
|
}
|
|
16849
16963
|
|
|
16850
16964
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
16851
|
-
store: store$
|
|
16965
|
+
store: store$d
|
|
16852
16966
|
}, props));
|
|
16853
16967
|
|
|
16854
16968
|
function StateSelect({
|
|
@@ -16936,7 +17050,7 @@ function StateSelect({
|
|
|
16936
17050
|
}
|
|
16937
17051
|
|
|
16938
17052
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
16939
|
-
store: store$
|
|
17053
|
+
store: store$d
|
|
16940
17054
|
}, props));
|
|
16941
17055
|
|
|
16942
17056
|
const AddressCreateView = props => {
|
|
@@ -17041,18 +17155,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17041
17155
|
|
|
17042
17156
|
const AddressCreateTextInput = props => {
|
|
17043
17157
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17044
|
-
store: store$
|
|
17158
|
+
store: store$d
|
|
17045
17159
|
}));
|
|
17046
17160
|
};
|
|
17047
17161
|
|
|
17048
17162
|
const AddressCreateLine2 = props => {
|
|
17049
17163
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17050
17164
|
fieldName: "line2",
|
|
17051
|
-
store: store$
|
|
17165
|
+
store: store$d
|
|
17052
17166
|
}, props));
|
|
17053
17167
|
};
|
|
17054
17168
|
|
|
17055
|
-
const initialState$
|
|
17169
|
+
const initialState$c = {
|
|
17056
17170
|
isSubmitting: false,
|
|
17057
17171
|
firstName: "",
|
|
17058
17172
|
firstNameError: "",
|
|
@@ -17077,10 +17191,10 @@ const initialState$b = {
|
|
|
17077
17191
|
content: ""
|
|
17078
17192
|
}
|
|
17079
17193
|
};
|
|
17080
|
-
const store$
|
|
17194
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
17081
17195
|
const {
|
|
17082
|
-
Provider: Provider$
|
|
17083
|
-
} = store$
|
|
17196
|
+
Provider: Provider$c
|
|
17197
|
+
} = store$c;
|
|
17084
17198
|
|
|
17085
17199
|
const AddressUpdateContainer = ({
|
|
17086
17200
|
style,
|
|
@@ -17132,7 +17246,7 @@ const AddressUpdateContainer = ({
|
|
|
17132
17246
|
const thisAddress = addresses[address];
|
|
17133
17247
|
|
|
17134
17248
|
if (+thisAddress.id === +addressId) {
|
|
17135
|
-
const newState = { ...initialState$
|
|
17249
|
+
const newState = { ...initialState$c,
|
|
17136
17250
|
firstName: thisAddress.first_name,
|
|
17137
17251
|
lastName: thisAddress.last_name,
|
|
17138
17252
|
line1: thisAddress.line1,
|
|
@@ -17265,7 +17379,7 @@ const AddressUpdateContainer = ({
|
|
|
17265
17379
|
default:
|
|
17266
17380
|
return state;
|
|
17267
17381
|
}
|
|
17268
|
-
}, initialState$
|
|
17382
|
+
}, initialState$c);
|
|
17269
17383
|
useEffect(() => {
|
|
17270
17384
|
const getStates = () => {
|
|
17271
17385
|
dispatch({
|
|
@@ -17297,21 +17411,21 @@ const AddressUpdateContainer = ({
|
|
|
17297
17411
|
style: { ...style
|
|
17298
17412
|
},
|
|
17299
17413
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17300
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17414
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
17301
17415
|
value: {
|
|
17302
17416
|
state,
|
|
17303
17417
|
dispatch
|
|
17304
17418
|
}
|
|
17305
17419
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17306
|
-
store: store$
|
|
17420
|
+
store: store$c,
|
|
17307
17421
|
key: i
|
|
17308
17422
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17309
|
-
store: store$
|
|
17423
|
+
store: store$c
|
|
17310
17424
|
})));
|
|
17311
17425
|
};
|
|
17312
17426
|
|
|
17313
17427
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17314
|
-
store: store$
|
|
17428
|
+
store: store$c
|
|
17315
17429
|
}, props));
|
|
17316
17430
|
|
|
17317
17431
|
function AddressUpdateFirstName(props) {
|
|
@@ -17321,7 +17435,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17321
17435
|
firstName,
|
|
17322
17436
|
firstNameError
|
|
17323
17437
|
}
|
|
17324
|
-
} = useContext(store$
|
|
17438
|
+
} = useContext(store$c);
|
|
17325
17439
|
|
|
17326
17440
|
const handleBlur = () => {
|
|
17327
17441
|
return dispatch({
|
|
@@ -17364,7 +17478,7 @@ function AddressUpdateLastName(props) {
|
|
|
17364
17478
|
lastName,
|
|
17365
17479
|
lastNameError
|
|
17366
17480
|
}
|
|
17367
|
-
} = useContext(store$
|
|
17481
|
+
} = useContext(store$c);
|
|
17368
17482
|
|
|
17369
17483
|
const handleBlur = () => {
|
|
17370
17484
|
return dispatch({
|
|
@@ -17407,7 +17521,7 @@ function AddressUpdateLine1(props) {
|
|
|
17407
17521
|
line1,
|
|
17408
17522
|
line1Error
|
|
17409
17523
|
}
|
|
17410
|
-
} = useContext(store$
|
|
17524
|
+
} = useContext(store$c);
|
|
17411
17525
|
|
|
17412
17526
|
const handleBlur = () => {
|
|
17413
17527
|
return dispatch({
|
|
@@ -17447,7 +17561,7 @@ const AddressUpdateLine2 = props => {
|
|
|
17447
17561
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17448
17562
|
fieldName: "line2"
|
|
17449
17563
|
}, props, {
|
|
17450
|
-
store: store$
|
|
17564
|
+
store: store$c
|
|
17451
17565
|
}));
|
|
17452
17566
|
};
|
|
17453
17567
|
|
|
@@ -17458,7 +17572,7 @@ function AddressUpdateCity(props) {
|
|
|
17458
17572
|
city,
|
|
17459
17573
|
cityError
|
|
17460
17574
|
}
|
|
17461
|
-
} = useContext(store$
|
|
17575
|
+
} = useContext(store$c);
|
|
17462
17576
|
|
|
17463
17577
|
const handleBlur = () => {
|
|
17464
17578
|
return dispatch({
|
|
@@ -17501,7 +17615,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
17501
17615
|
postalCode,
|
|
17502
17616
|
postalCodeError
|
|
17503
17617
|
}
|
|
17504
|
-
} = useContext(store$
|
|
17618
|
+
} = useContext(store$c);
|
|
17505
17619
|
|
|
17506
17620
|
const handleBlur = () => {
|
|
17507
17621
|
return dispatch({
|
|
@@ -17547,7 +17661,7 @@ const AddressUpdateSubmit = ({
|
|
|
17547
17661
|
state: {
|
|
17548
17662
|
isSubmitting
|
|
17549
17663
|
}
|
|
17550
|
-
} = useContext(store$
|
|
17664
|
+
} = useContext(store$c);
|
|
17551
17665
|
const {
|
|
17552
17666
|
t
|
|
17553
17667
|
} = useTranslation("address");
|
|
@@ -17563,7 +17677,7 @@ const AddressUpdateSubmit = ({
|
|
|
17563
17677
|
};
|
|
17564
17678
|
|
|
17565
17679
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17566
|
-
store: store$
|
|
17680
|
+
store: store$c
|
|
17567
17681
|
}, props));
|
|
17568
17682
|
|
|
17569
17683
|
const AddressUpdateView = props => {
|
|
@@ -17646,7 +17760,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
17646
17760
|
|
|
17647
17761
|
const AddressUpdateTextInput = props => {
|
|
17648
17762
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17649
|
-
store: store$
|
|
17763
|
+
store: store$c
|
|
17650
17764
|
}));
|
|
17651
17765
|
};
|
|
17652
17766
|
|
|
@@ -17729,7 +17843,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
17729
17843
|
};
|
|
17730
17844
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
17731
17845
|
|
|
17732
|
-
const initialState$
|
|
17846
|
+
const initialState$b = {
|
|
17733
17847
|
email: "",
|
|
17734
17848
|
password: "",
|
|
17735
17849
|
passwordError: null,
|
|
@@ -17742,10 +17856,10 @@ const initialState$a = {
|
|
|
17742
17856
|
content: ""
|
|
17743
17857
|
}
|
|
17744
17858
|
};
|
|
17745
|
-
const store$
|
|
17859
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
17746
17860
|
const {
|
|
17747
|
-
Provider: Provider$
|
|
17748
|
-
} = store$
|
|
17861
|
+
Provider: Provider$b
|
|
17862
|
+
} = store$b;
|
|
17749
17863
|
|
|
17750
17864
|
const PasswordResetContainer = ({
|
|
17751
17865
|
style,
|
|
@@ -17802,7 +17916,7 @@ const PasswordResetContainer = ({
|
|
|
17802
17916
|
type: SET_EMAIL,
|
|
17803
17917
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
17804
17918
|
});
|
|
17805
|
-
initialState$
|
|
17919
|
+
initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
|
|
17806
17920
|
dispatch({
|
|
17807
17921
|
type: SET_TOKEN,
|
|
17808
17922
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -17862,26 +17976,26 @@ const PasswordResetContainer = ({
|
|
|
17862
17976
|
default:
|
|
17863
17977
|
return state;
|
|
17864
17978
|
}
|
|
17865
|
-
}, initialState$
|
|
17979
|
+
}, initialState$b);
|
|
17866
17980
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
17867
17981
|
style: { ...style
|
|
17868
17982
|
},
|
|
17869
17983
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
17870
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17984
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
17871
17985
|
value: {
|
|
17872
17986
|
state,
|
|
17873
17987
|
dispatch
|
|
17874
17988
|
}
|
|
17875
17989
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17876
|
-
store: store$
|
|
17990
|
+
store: store$b,
|
|
17877
17991
|
key: i
|
|
17878
17992
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17879
|
-
store: store$
|
|
17993
|
+
store: store$b
|
|
17880
17994
|
})));
|
|
17881
17995
|
};
|
|
17882
17996
|
|
|
17883
17997
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
17884
|
-
store: store$
|
|
17998
|
+
store: store$b
|
|
17885
17999
|
}, props));
|
|
17886
18000
|
|
|
17887
18001
|
const PasswordResetButton = ({
|
|
@@ -17894,7 +18008,7 @@ const PasswordResetButton = ({
|
|
|
17894
18008
|
buttonDisabled
|
|
17895
18009
|
},
|
|
17896
18010
|
dispatch
|
|
17897
|
-
} = useContext(store$
|
|
18011
|
+
} = useContext(store$b);
|
|
17898
18012
|
const {
|
|
17899
18013
|
t
|
|
17900
18014
|
} = useTranslation("passwordReset");
|
|
@@ -17911,14 +18025,14 @@ const PasswordResetButton = ({
|
|
|
17911
18025
|
};
|
|
17912
18026
|
|
|
17913
18027
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
17914
|
-
store: store$
|
|
18028
|
+
store: store$b
|
|
17915
18029
|
}, props, {
|
|
17916
18030
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
17917
18031
|
disabled: true
|
|
17918
18032
|
}));
|
|
17919
18033
|
|
|
17920
18034
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
17921
|
-
store: store$
|
|
18035
|
+
store: store$b
|
|
17922
18036
|
}, props));
|
|
17923
18037
|
|
|
17924
18038
|
const PasswordResetView = props => {
|
|
@@ -17970,7 +18084,7 @@ const PasswordResetModal = ({
|
|
|
17970
18084
|
};
|
|
17971
18085
|
PasswordResetModal.viewId = "password-reset";
|
|
17972
18086
|
|
|
17973
|
-
const initialState$
|
|
18087
|
+
const initialState$a = {
|
|
17974
18088
|
email: "",
|
|
17975
18089
|
emailError: null,
|
|
17976
18090
|
buttonDisabled: false,
|
|
@@ -17979,10 +18093,10 @@ const initialState$9 = {
|
|
|
17979
18093
|
content: ""
|
|
17980
18094
|
}
|
|
17981
18095
|
};
|
|
17982
|
-
const store$
|
|
18096
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
17983
18097
|
const {
|
|
17984
|
-
Provider: Provider$
|
|
17985
|
-
} = store$
|
|
18098
|
+
Provider: Provider$a
|
|
18099
|
+
} = store$a;
|
|
17986
18100
|
|
|
17987
18101
|
const PasswordForgotContainer = ({
|
|
17988
18102
|
style,
|
|
@@ -18060,21 +18174,21 @@ const PasswordForgotContainer = ({
|
|
|
18060
18174
|
default:
|
|
18061
18175
|
return state;
|
|
18062
18176
|
}
|
|
18063
|
-
}, initialState$
|
|
18177
|
+
}, initialState$a);
|
|
18064
18178
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18065
18179
|
style: { ...style
|
|
18066
18180
|
},
|
|
18067
18181
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18068
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18182
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
18069
18183
|
value: {
|
|
18070
18184
|
state,
|
|
18071
18185
|
dispatch
|
|
18072
18186
|
}
|
|
18073
18187
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18074
|
-
store: store$
|
|
18188
|
+
store: store$a,
|
|
18075
18189
|
key: i
|
|
18076
18190
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18077
|
-
store: store$
|
|
18191
|
+
store: store$a
|
|
18078
18192
|
})));
|
|
18079
18193
|
};
|
|
18080
18194
|
|
|
@@ -18090,7 +18204,7 @@ const PasswordForgotButton = ({
|
|
|
18090
18204
|
emailError
|
|
18091
18205
|
},
|
|
18092
18206
|
dispatch
|
|
18093
|
-
} = useContext(store$
|
|
18207
|
+
} = useContext(store$a);
|
|
18094
18208
|
const {
|
|
18095
18209
|
t
|
|
18096
18210
|
} = useTranslation("passwordForgot");
|
|
@@ -18111,7 +18225,7 @@ const PasswordForgotButton = ({
|
|
|
18111
18225
|
};
|
|
18112
18226
|
|
|
18113
18227
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18114
|
-
store: store$
|
|
18228
|
+
store: store$a
|
|
18115
18229
|
}, props));
|
|
18116
18230
|
|
|
18117
18231
|
const PasswordForgotView = props => {
|
|
@@ -18161,7 +18275,7 @@ const PasswordForgotModal = ({
|
|
|
18161
18275
|
};
|
|
18162
18276
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18163
18277
|
|
|
18164
|
-
const initialState$
|
|
18278
|
+
const initialState$9 = {
|
|
18165
18279
|
currentPassword: "",
|
|
18166
18280
|
newPassword: "",
|
|
18167
18281
|
confirmNewPassword: "",
|
|
@@ -18175,10 +18289,10 @@ const initialState$8 = {
|
|
|
18175
18289
|
content: ""
|
|
18176
18290
|
}
|
|
18177
18291
|
};
|
|
18178
|
-
const store$
|
|
18292
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
18179
18293
|
const {
|
|
18180
|
-
Provider: Provider$
|
|
18181
|
-
} = store$
|
|
18294
|
+
Provider: Provider$9
|
|
18295
|
+
} = store$9;
|
|
18182
18296
|
const PasswordChangeContainer = ({
|
|
18183
18297
|
style,
|
|
18184
18298
|
className = "",
|
|
@@ -18330,21 +18444,21 @@ const PasswordChangeContainer = ({
|
|
|
18330
18444
|
default:
|
|
18331
18445
|
return state;
|
|
18332
18446
|
}
|
|
18333
|
-
}, initialState$
|
|
18447
|
+
}, initialState$9);
|
|
18334
18448
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18335
18449
|
style: { ...style
|
|
18336
18450
|
},
|
|
18337
18451
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
18338
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18452
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
18339
18453
|
value: {
|
|
18340
18454
|
state,
|
|
18341
18455
|
dispatch
|
|
18342
18456
|
}
|
|
18343
18457
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18344
|
-
store: store$
|
|
18458
|
+
store: store$9,
|
|
18345
18459
|
key: i
|
|
18346
18460
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18347
|
-
store: store$
|
|
18461
|
+
store: store$9
|
|
18348
18462
|
})));
|
|
18349
18463
|
};
|
|
18350
18464
|
|
|
@@ -18355,7 +18469,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
18355
18469
|
currentPassword,
|
|
18356
18470
|
currentPasswordError
|
|
18357
18471
|
}
|
|
18358
|
-
} = useContext(store$
|
|
18472
|
+
} = useContext(store$9);
|
|
18359
18473
|
const handleBlur = useCallback(() => {
|
|
18360
18474
|
return dispatch({
|
|
18361
18475
|
type: VALIDATE_PASSWORD
|
|
@@ -18389,7 +18503,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
18389
18503
|
newPassword,
|
|
18390
18504
|
newPasswordError
|
|
18391
18505
|
}
|
|
18392
|
-
} = useContext(store$
|
|
18506
|
+
} = useContext(store$9);
|
|
18393
18507
|
const handleBlur = useCallback(() => {
|
|
18394
18508
|
return dispatch({
|
|
18395
18509
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -18423,7 +18537,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
18423
18537
|
confirmNewPassword,
|
|
18424
18538
|
confirmNewPasswordError
|
|
18425
18539
|
}
|
|
18426
|
-
} = useContext(store$
|
|
18540
|
+
} = useContext(store$9);
|
|
18427
18541
|
const handleBlur = useCallback(() => {
|
|
18428
18542
|
return dispatch({
|
|
18429
18543
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -18464,7 +18578,7 @@ const PasswordChangeButton = ({
|
|
|
18464
18578
|
confirmNewPasswordError
|
|
18465
18579
|
},
|
|
18466
18580
|
dispatch
|
|
18467
|
-
} = useContext(store$
|
|
18581
|
+
} = useContext(store$9);
|
|
18468
18582
|
const {
|
|
18469
18583
|
t
|
|
18470
18584
|
} = useTranslation("passwordChange");
|
|
@@ -18530,17 +18644,17 @@ const PasswordChangeModal = ({
|
|
|
18530
18644
|
};
|
|
18531
18645
|
PasswordChangeModal.viewId = "password-change";
|
|
18532
18646
|
|
|
18533
|
-
const initialState$
|
|
18647
|
+
const initialState$8 = {
|
|
18534
18648
|
buttonDisabled: false,
|
|
18535
18649
|
alert: {
|
|
18536
18650
|
type: "error",
|
|
18537
18651
|
content: ""
|
|
18538
18652
|
}
|
|
18539
18653
|
};
|
|
18540
|
-
const store$
|
|
18654
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
18541
18655
|
const {
|
|
18542
|
-
Provider: Provider$
|
|
18543
|
-
} = store$
|
|
18656
|
+
Provider: Provider$8
|
|
18657
|
+
} = store$8;
|
|
18544
18658
|
|
|
18545
18659
|
const CartContainer = ({
|
|
18546
18660
|
style,
|
|
@@ -18631,21 +18745,21 @@ const CartContainer = ({
|
|
|
18631
18745
|
default:
|
|
18632
18746
|
return state;
|
|
18633
18747
|
}
|
|
18634
|
-
}, initialState$
|
|
18748
|
+
}, initialState$8);
|
|
18635
18749
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18636
18750
|
style: { ...style
|
|
18637
18751
|
},
|
|
18638
18752
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
18639
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18753
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
18640
18754
|
value: {
|
|
18641
18755
|
state,
|
|
18642
18756
|
dispatch
|
|
18643
18757
|
}
|
|
18644
18758
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18645
|
-
store: store$
|
|
18759
|
+
store: store$8,
|
|
18646
18760
|
key: i
|
|
18647
18761
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18648
|
-
store: store$
|
|
18762
|
+
store: store$8
|
|
18649
18763
|
})));
|
|
18650
18764
|
};
|
|
18651
18765
|
|
|
@@ -18682,7 +18796,7 @@ const CartSubmit = ({
|
|
|
18682
18796
|
buttonDisabled
|
|
18683
18797
|
},
|
|
18684
18798
|
dispatch
|
|
18685
|
-
} = useContext(store$
|
|
18799
|
+
} = useContext(store$8);
|
|
18686
18800
|
const {
|
|
18687
18801
|
t
|
|
18688
18802
|
} = useTranslation("cart");
|
|
@@ -18713,7 +18827,7 @@ const CartTotalPrice = () => {
|
|
|
18713
18827
|
state: {
|
|
18714
18828
|
alert
|
|
18715
18829
|
}
|
|
18716
|
-
} = useContext(store$
|
|
18830
|
+
} = useContext(store$8);
|
|
18717
18831
|
const {
|
|
18718
18832
|
cartItems
|
|
18719
18833
|
} = usePelcro();
|
|
@@ -19026,7 +19140,7 @@ const OrderConfirmModal = props => {
|
|
|
19026
19140
|
};
|
|
19027
19141
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19028
19142
|
|
|
19029
|
-
const initialState$
|
|
19143
|
+
const initialState$7 = {
|
|
19030
19144
|
email: "",
|
|
19031
19145
|
firstName: "",
|
|
19032
19146
|
lastName: "",
|
|
@@ -19038,10 +19152,10 @@ const initialState$6 = {
|
|
|
19038
19152
|
content: ""
|
|
19039
19153
|
}
|
|
19040
19154
|
};
|
|
19041
|
-
const store$
|
|
19155
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
19042
19156
|
const {
|
|
19043
|
-
Provider: Provider$
|
|
19044
|
-
} = store$
|
|
19157
|
+
Provider: Provider$7
|
|
19158
|
+
} = store$7;
|
|
19045
19159
|
|
|
19046
19160
|
const GiftCreateContainer = ({
|
|
19047
19161
|
style,
|
|
@@ -19145,21 +19259,21 @@ const GiftCreateContainer = ({
|
|
|
19145
19259
|
default:
|
|
19146
19260
|
return state;
|
|
19147
19261
|
}
|
|
19148
|
-
}, initialState$
|
|
19262
|
+
}, initialState$7);
|
|
19149
19263
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19150
19264
|
style: { ...style
|
|
19151
19265
|
},
|
|
19152
19266
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19153
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19267
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
19154
19268
|
value: {
|
|
19155
19269
|
state,
|
|
19156
19270
|
dispatch
|
|
19157
19271
|
}
|
|
19158
19272
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19159
|
-
store: store$
|
|
19273
|
+
store: store$7,
|
|
19160
19274
|
key: i
|
|
19161
19275
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19162
|
-
store: store$
|
|
19276
|
+
store: store$7
|
|
19163
19277
|
})));
|
|
19164
19278
|
};
|
|
19165
19279
|
|
|
@@ -19173,7 +19287,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19173
19287
|
state: {
|
|
19174
19288
|
disableSubmit
|
|
19175
19289
|
}
|
|
19176
|
-
} = useContext(store$
|
|
19290
|
+
} = useContext(store$7);
|
|
19177
19291
|
const {
|
|
19178
19292
|
t
|
|
19179
19293
|
} = useTranslation("register");
|
|
@@ -19190,29 +19304,29 @@ const GiftCreateSubmitButton = ({
|
|
|
19190
19304
|
|
|
19191
19305
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
19192
19306
|
initWithUserEmail: false,
|
|
19193
|
-
store: store$
|
|
19307
|
+
store: store$7
|
|
19194
19308
|
}, props));
|
|
19195
19309
|
|
|
19196
19310
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
19197
|
-
store: store$
|
|
19311
|
+
store: store$7
|
|
19198
19312
|
}, props));
|
|
19199
19313
|
|
|
19200
19314
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
19201
|
-
store: store$
|
|
19315
|
+
store: store$7
|
|
19202
19316
|
}, props));
|
|
19203
19317
|
|
|
19204
|
-
var _path$
|
|
19318
|
+
var _path$i;
|
|
19205
19319
|
|
|
19206
|
-
function _extends$
|
|
19320
|
+
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); }
|
|
19207
19321
|
|
|
19208
19322
|
function SvgInfoCircle(props) {
|
|
19209
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
19323
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
19210
19324
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19211
19325
|
className: "plc-w-5 plc-h-5",
|
|
19212
19326
|
fill: "none",
|
|
19213
19327
|
viewBox: "0 0 24 24",
|
|
19214
19328
|
stroke: "currentColor"
|
|
19215
|
-
}, props), _path$
|
|
19329
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
19216
19330
|
strokeLinecap: "round",
|
|
19217
19331
|
strokeLinejoin: "round",
|
|
19218
19332
|
strokeWidth: 2,
|
|
@@ -19283,7 +19397,7 @@ const GiftCreateStartDate = props => {
|
|
|
19283
19397
|
const {
|
|
19284
19398
|
dispatch,
|
|
19285
19399
|
state
|
|
19286
|
-
} = useContext(store$
|
|
19400
|
+
} = useContext(store$7);
|
|
19287
19401
|
|
|
19288
19402
|
const handleInputChange = value => {
|
|
19289
19403
|
dispatch({
|
|
@@ -19348,13 +19462,17 @@ function TextArea({
|
|
|
19348
19462
|
*/
|
|
19349
19463
|
|
|
19350
19464
|
function GiftCreateMessage(props) {
|
|
19465
|
+
var _ref, _state$giftMessage;
|
|
19466
|
+
|
|
19351
19467
|
const {
|
|
19352
19468
|
t
|
|
19353
19469
|
} = useTranslation("register");
|
|
19354
19470
|
const {
|
|
19355
19471
|
dispatch,
|
|
19356
19472
|
state
|
|
19357
|
-
} = useContext(store$
|
|
19473
|
+
} = useContext(store$7);
|
|
19474
|
+
const MAX_CHARS_COUNT = 200;
|
|
19475
|
+
const remainingCharsCount = (_ref = MAX_CHARS_COUNT - ((_state$giftMessage = state.giftMessage) === null || _state$giftMessage === void 0 ? void 0 : _state$giftMessage.length)) !== null && _ref !== void 0 ? _ref : 0;
|
|
19358
19476
|
|
|
19359
19477
|
const handleInputChange = value => {
|
|
19360
19478
|
dispatch({
|
|
@@ -19372,6 +19490,9 @@ function GiftCreateMessage(props) {
|
|
|
19372
19490
|
value: state.giftMessage,
|
|
19373
19491
|
maxLength: "200",
|
|
19374
19492
|
rows: 3,
|
|
19493
|
+
label: t("gift.labels.giftMessage", {
|
|
19494
|
+
count: remainingCharsCount
|
|
19495
|
+
}),
|
|
19375
19496
|
tooltipText: t("gift.messages.giftMessageInfo")
|
|
19376
19497
|
}, props));
|
|
19377
19498
|
}
|
|
@@ -19421,8 +19542,7 @@ const GiftCreateView = props => {
|
|
|
19421
19542
|
}, /*#__PURE__*/React__default.createElement(GiftCreateMessage, {
|
|
19422
19543
|
autoComplete: "gift-message",
|
|
19423
19544
|
id: "pelcro-input-gift-message",
|
|
19424
|
-
errorId: "pelcro-input-gift-message-error"
|
|
19425
|
-
label: t("gift.labels.giftMessage")
|
|
19545
|
+
errorId: "pelcro-input-gift-message-error"
|
|
19426
19546
|
})), /*#__PURE__*/React__default.createElement("p", {
|
|
19427
19547
|
className: "plc-text-gray-900 pelcro-footnote"
|
|
19428
19548
|
}, "* ", t("gift.labels.required")), /*#__PURE__*/React__default.createElement(GiftCreateSubmitButton, {
|
|
@@ -19474,7 +19594,7 @@ const GiftCreateModal = ({
|
|
|
19474
19594
|
};
|
|
19475
19595
|
GiftCreateModal.viewId = "gift-create";
|
|
19476
19596
|
|
|
19477
|
-
const initialState$
|
|
19597
|
+
const initialState$6 = {
|
|
19478
19598
|
giftCode: "",
|
|
19479
19599
|
buttonDisabled: true,
|
|
19480
19600
|
alert: {
|
|
@@ -19482,10 +19602,10 @@ const initialState$5 = {
|
|
|
19482
19602
|
content: ""
|
|
19483
19603
|
}
|
|
19484
19604
|
};
|
|
19485
|
-
const store$
|
|
19605
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
19486
19606
|
const {
|
|
19487
|
-
Provider: Provider$
|
|
19488
|
-
} = store$
|
|
19607
|
+
Provider: Provider$6
|
|
19608
|
+
} = store$6;
|
|
19489
19609
|
|
|
19490
19610
|
const GiftRedeemContainer = ({
|
|
19491
19611
|
style,
|
|
@@ -19550,21 +19670,21 @@ const GiftRedeemContainer = ({
|
|
|
19550
19670
|
default:
|
|
19551
19671
|
return state;
|
|
19552
19672
|
}
|
|
19553
|
-
}, initialState$
|
|
19673
|
+
}, initialState$6);
|
|
19554
19674
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19555
19675
|
style: { ...style
|
|
19556
19676
|
},
|
|
19557
19677
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
19558
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19678
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
19559
19679
|
value: {
|
|
19560
19680
|
state,
|
|
19561
19681
|
dispatch
|
|
19562
19682
|
}
|
|
19563
19683
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19564
|
-
store: store$
|
|
19684
|
+
store: store$6,
|
|
19565
19685
|
key: i
|
|
19566
19686
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19567
|
-
store: store$
|
|
19687
|
+
store: store$6
|
|
19568
19688
|
})));
|
|
19569
19689
|
};
|
|
19570
19690
|
|
|
@@ -19601,7 +19721,7 @@ function GiftCode({
|
|
|
19601
19721
|
}
|
|
19602
19722
|
|
|
19603
19723
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
19604
|
-
store: store$
|
|
19724
|
+
store: store$6
|
|
19605
19725
|
}, props));
|
|
19606
19726
|
|
|
19607
19727
|
const GiftRedeemSubmitButton = ({
|
|
@@ -19614,7 +19734,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
19614
19734
|
state: {
|
|
19615
19735
|
disableSubmit
|
|
19616
19736
|
}
|
|
19617
|
-
} = useContext(store$
|
|
19737
|
+
} = useContext(store$6);
|
|
19618
19738
|
const {
|
|
19619
19739
|
t
|
|
19620
19740
|
} = useTranslation("register");
|
|
@@ -19707,7 +19827,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
19707
19827
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
19708
19828
|
};
|
|
19709
19829
|
|
|
19710
|
-
const initialState$
|
|
19830
|
+
const initialState$5 = {
|
|
19711
19831
|
addresses: [],
|
|
19712
19832
|
selectedAddressId: null,
|
|
19713
19833
|
isSubmitting: false,
|
|
@@ -19716,10 +19836,10 @@ const initialState$4 = {
|
|
|
19716
19836
|
content: ""
|
|
19717
19837
|
}
|
|
19718
19838
|
};
|
|
19719
|
-
const store$
|
|
19839
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
19720
19840
|
const {
|
|
19721
|
-
Provider: Provider$
|
|
19722
|
-
} = store$
|
|
19841
|
+
Provider: Provider$5
|
|
19842
|
+
} = store$5;
|
|
19723
19843
|
|
|
19724
19844
|
const AddressSelectContainer = ({
|
|
19725
19845
|
style,
|
|
@@ -19814,7 +19934,7 @@ const AddressSelectContainer = ({
|
|
|
19814
19934
|
default:
|
|
19815
19935
|
return state;
|
|
19816
19936
|
}
|
|
19817
|
-
}, initialState$
|
|
19937
|
+
}, initialState$5);
|
|
19818
19938
|
useEffect(() => {
|
|
19819
19939
|
var _window$Pelcro$user$r;
|
|
19820
19940
|
|
|
@@ -19827,16 +19947,16 @@ const AddressSelectContainer = ({
|
|
|
19827
19947
|
style: { ...style
|
|
19828
19948
|
},
|
|
19829
19949
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
19830
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19950
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
19831
19951
|
value: {
|
|
19832
19952
|
state,
|
|
19833
19953
|
dispatch
|
|
19834
19954
|
}
|
|
19835
19955
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19836
|
-
store: store$
|
|
19956
|
+
store: store$5,
|
|
19837
19957
|
key: i
|
|
19838
19958
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19839
|
-
store: store$
|
|
19959
|
+
store: store$5
|
|
19840
19960
|
})));
|
|
19841
19961
|
};
|
|
19842
19962
|
|
|
@@ -19847,7 +19967,7 @@ const AddressSelectList = () => {
|
|
|
19847
19967
|
addresses,
|
|
19848
19968
|
selectedAddressId
|
|
19849
19969
|
}
|
|
19850
|
-
} = useContext(store$
|
|
19970
|
+
} = useContext(store$5);
|
|
19851
19971
|
|
|
19852
19972
|
const handleAddressSelect = event => {
|
|
19853
19973
|
dispatch({
|
|
@@ -19891,7 +20011,7 @@ const AddressSelectSubmit = ({
|
|
|
19891
20011
|
selectedAddressId,
|
|
19892
20012
|
isSubmitting
|
|
19893
20013
|
}
|
|
19894
|
-
} = useContext(store$
|
|
20014
|
+
} = useContext(store$5);
|
|
19895
20015
|
const {
|
|
19896
20016
|
t
|
|
19897
20017
|
} = useTranslation("address");
|
|
@@ -19987,7 +20107,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
19987
20107
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
19988
20108
|
};
|
|
19989
20109
|
|
|
19990
|
-
const initialState$
|
|
20110
|
+
const initialState$4 = {
|
|
19991
20111
|
paymentMethods: [],
|
|
19992
20112
|
selectedPaymentMethodId: null,
|
|
19993
20113
|
isSubmitting: false,
|
|
@@ -19996,10 +20116,10 @@ const initialState$3 = {
|
|
|
19996
20116
|
content: ""
|
|
19997
20117
|
}
|
|
19998
20118
|
};
|
|
19999
|
-
const store$
|
|
20119
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
20000
20120
|
const {
|
|
20001
|
-
Provider: Provider$
|
|
20002
|
-
} = store$
|
|
20121
|
+
Provider: Provider$4
|
|
20122
|
+
} = store$4;
|
|
20003
20123
|
|
|
20004
20124
|
const PaymentMethodSelectContainer = ({
|
|
20005
20125
|
style,
|
|
@@ -20044,7 +20164,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20044
20164
|
default:
|
|
20045
20165
|
return state;
|
|
20046
20166
|
}
|
|
20047
|
-
}, initialState$
|
|
20167
|
+
}, initialState$4);
|
|
20048
20168
|
useEffect(() => {
|
|
20049
20169
|
var _window$Pelcro$user$r4;
|
|
20050
20170
|
|
|
@@ -20057,16 +20177,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20057
20177
|
style: { ...style
|
|
20058
20178
|
},
|
|
20059
20179
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20060
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20180
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
20061
20181
|
value: {
|
|
20062
20182
|
state,
|
|
20063
20183
|
dispatch
|
|
20064
20184
|
}
|
|
20065
20185
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20066
|
-
store: store$
|
|
20186
|
+
store: store$4,
|
|
20067
20187
|
key: i
|
|
20068
20188
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20069
|
-
store: store$
|
|
20189
|
+
store: store$4
|
|
20070
20190
|
})));
|
|
20071
20191
|
};
|
|
20072
20192
|
|
|
@@ -20080,7 +20200,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20080
20200
|
paymentMethods,
|
|
20081
20201
|
selectedPaymentMethodId
|
|
20082
20202
|
}
|
|
20083
|
-
} = useContext(store$
|
|
20203
|
+
} = useContext(store$4);
|
|
20084
20204
|
|
|
20085
20205
|
const handlePaymentMethodSelect = event => {
|
|
20086
20206
|
dispatch({
|
|
@@ -20130,7 +20250,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20130
20250
|
selectedPaymentMethodId,
|
|
20131
20251
|
isSubmitting
|
|
20132
20252
|
}
|
|
20133
|
-
} = useContext(store$
|
|
20253
|
+
} = useContext(store$4);
|
|
20134
20254
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
20135
20255
|
onClick: () => {
|
|
20136
20256
|
dispatch({
|
|
@@ -20204,8 +20324,8 @@ const PaymentMethodSelectModal = ({
|
|
|
20204
20324
|
};
|
|
20205
20325
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
20206
20326
|
|
|
20207
|
-
function _extends$
|
|
20208
|
-
_extends$
|
|
20327
|
+
function _extends$j() {
|
|
20328
|
+
_extends$j = Object.assign || function (target) {
|
|
20209
20329
|
for (var i = 1; i < arguments.length; i++) {
|
|
20210
20330
|
var source = arguments[i];
|
|
20211
20331
|
|
|
@@ -20219,7 +20339,7 @@ function _extends$i() {
|
|
|
20219
20339
|
return target;
|
|
20220
20340
|
};
|
|
20221
20341
|
|
|
20222
|
-
return _extends$
|
|
20342
|
+
return _extends$j.apply(this, arguments);
|
|
20223
20343
|
}
|
|
20224
20344
|
|
|
20225
20345
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -20403,7 +20523,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
20403
20523
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
20404
20524
|
return null;
|
|
20405
20525
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
20406
|
-
return _render(_extends$
|
|
20526
|
+
return _render(_extends$j({}, _rest, {
|
|
20407
20527
|
hidden: true,
|
|
20408
20528
|
style: {
|
|
20409
20529
|
display: 'none'
|
|
@@ -20931,7 +21051,7 @@ function TransitionChild(props) {
|
|
|
20931
21051
|
var passthroughProps = rest;
|
|
20932
21052
|
return React__default.createElement(NestingContext.Provider, {
|
|
20933
21053
|
value: nesting
|
|
20934
|
-
}, render(_extends$
|
|
21054
|
+
}, render(_extends$j({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
20935
21055
|
}
|
|
20936
21056
|
|
|
20937
21057
|
function Transition(props) {
|
|
@@ -20975,7 +21095,7 @@ function Transition(props) {
|
|
|
20975
21095
|
value: nestingBag
|
|
20976
21096
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
20977
21097
|
value: transitionBag
|
|
20978
|
-
}, render(_extends$
|
|
21098
|
+
}, render(_extends$j({}, sharedProps, {
|
|
20979
21099
|
as: Fragment,
|
|
20980
21100
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
20981
21101
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -21102,12 +21222,12 @@ var ActionTypes;
|
|
|
21102
21222
|
})(ActionTypes || (ActionTypes = {}));
|
|
21103
21223
|
|
|
21104
21224
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
21105
|
-
return _extends$
|
|
21225
|
+
return _extends$j({}, state, {
|
|
21106
21226
|
activeItemIndex: null,
|
|
21107
21227
|
menuState: MenuStates.Closed
|
|
21108
21228
|
});
|
|
21109
21229
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
21110
|
-
return _extends$
|
|
21230
|
+
return _extends$j({}, state, {
|
|
21111
21231
|
menuState: MenuStates.Open
|
|
21112
21232
|
});
|
|
21113
21233
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -21126,7 +21246,7 @@ var ActionTypes;
|
|
|
21126
21246
|
}
|
|
21127
21247
|
});
|
|
21128
21248
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
21129
|
-
return _extends$
|
|
21249
|
+
return _extends$j({}, state, {
|
|
21130
21250
|
searchQuery: '',
|
|
21131
21251
|
activeItemIndex: activeItemIndex
|
|
21132
21252
|
});
|
|
@@ -21137,19 +21257,19 @@ var ActionTypes;
|
|
|
21137
21257
|
|
|
21138
21258
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
21139
21259
|
});
|
|
21140
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
21260
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$j({}, state, {
|
|
21141
21261
|
searchQuery: searchQuery
|
|
21142
21262
|
});
|
|
21143
|
-
return _extends$
|
|
21263
|
+
return _extends$j({}, state, {
|
|
21144
21264
|
searchQuery: searchQuery,
|
|
21145
21265
|
activeItemIndex: match
|
|
21146
21266
|
});
|
|
21147
21267
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
21148
|
-
return _extends$
|
|
21268
|
+
return _extends$j({}, state, {
|
|
21149
21269
|
searchQuery: ''
|
|
21150
21270
|
});
|
|
21151
21271
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
21152
|
-
return _extends$
|
|
21272
|
+
return _extends$j({}, state, {
|
|
21153
21273
|
items: [].concat(state.items, [{
|
|
21154
21274
|
id: action.id,
|
|
21155
21275
|
dataRef: action.dataRef
|
|
@@ -21162,7 +21282,7 @@ var ActionTypes;
|
|
|
21162
21282
|
return a.id === action.id;
|
|
21163
21283
|
});
|
|
21164
21284
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
21165
|
-
return _extends$
|
|
21285
|
+
return _extends$j({}, state, {
|
|
21166
21286
|
items: nextItems,
|
|
21167
21287
|
activeItemIndex: function () {
|
|
21168
21288
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -21201,19 +21321,19 @@ var ActionTypes$1;
|
|
|
21201
21321
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
21202
21322
|
if (state.disabled) return state;
|
|
21203
21323
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21204
|
-
return _extends$
|
|
21324
|
+
return _extends$j({}, state, {
|
|
21205
21325
|
activeOptionIndex: null,
|
|
21206
21326
|
listboxState: ListboxStates.Closed
|
|
21207
21327
|
});
|
|
21208
21328
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
21209
21329
|
if (state.disabled) return state;
|
|
21210
21330
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
21211
|
-
return _extends$
|
|
21331
|
+
return _extends$j({}, state, {
|
|
21212
21332
|
listboxState: ListboxStates.Open
|
|
21213
21333
|
});
|
|
21214
21334
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
21215
21335
|
if (state.disabled === action.disabled) return state;
|
|
21216
|
-
return _extends$
|
|
21336
|
+
return _extends$j({}, state, {
|
|
21217
21337
|
disabled: action.disabled
|
|
21218
21338
|
});
|
|
21219
21339
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -21234,7 +21354,7 @@ var ActionTypes$1;
|
|
|
21234
21354
|
}
|
|
21235
21355
|
});
|
|
21236
21356
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
21237
|
-
return _extends$
|
|
21357
|
+
return _extends$j({}, state, {
|
|
21238
21358
|
searchQuery: '',
|
|
21239
21359
|
activeOptionIndex: activeOptionIndex
|
|
21240
21360
|
});
|
|
@@ -21247,10 +21367,10 @@ var ActionTypes$1;
|
|
|
21247
21367
|
|
|
21248
21368
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
21249
21369
|
});
|
|
21250
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
21370
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$j({}, state, {
|
|
21251
21371
|
searchQuery: searchQuery
|
|
21252
21372
|
});
|
|
21253
|
-
return _extends$
|
|
21373
|
+
return _extends$j({}, state, {
|
|
21254
21374
|
searchQuery: searchQuery,
|
|
21255
21375
|
activeOptionIndex: match
|
|
21256
21376
|
});
|
|
@@ -21258,11 +21378,11 @@ var ActionTypes$1;
|
|
|
21258
21378
|
if (state.disabled) return state;
|
|
21259
21379
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21260
21380
|
if (state.searchQuery === '') return state;
|
|
21261
|
-
return _extends$
|
|
21381
|
+
return _extends$j({}, state, {
|
|
21262
21382
|
searchQuery: ''
|
|
21263
21383
|
});
|
|
21264
21384
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
21265
|
-
return _extends$
|
|
21385
|
+
return _extends$j({}, state, {
|
|
21266
21386
|
options: [].concat(state.options, [{
|
|
21267
21387
|
id: action.id,
|
|
21268
21388
|
dataRef: action.dataRef
|
|
@@ -21275,7 +21395,7 @@ var ActionTypes$1;
|
|
|
21275
21395
|
return a.id === action.id;
|
|
21276
21396
|
});
|
|
21277
21397
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
21278
|
-
return _extends$
|
|
21398
|
+
return _extends$j({}, state, {
|
|
21279
21399
|
options: nextOptions,
|
|
21280
21400
|
activeOptionIndex: function () {
|
|
21281
21401
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -21336,18 +21456,18 @@ const getPaymentCardIcon = name => {
|
|
|
21336
21456
|
}));
|
|
21337
21457
|
};
|
|
21338
21458
|
|
|
21339
|
-
var _path$
|
|
21459
|
+
var _path$h;
|
|
21340
21460
|
|
|
21341
|
-
function _extends$
|
|
21461
|
+
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); }
|
|
21342
21462
|
|
|
21343
21463
|
function SvgChevronRight(props) {
|
|
21344
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21464
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
21345
21465
|
className: "plc-w-6 plc-h-6",
|
|
21346
21466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21347
21467
|
fill: "none",
|
|
21348
21468
|
viewBox: "0 0 24 24",
|
|
21349
21469
|
stroke: "currentColor"
|
|
21350
|
-
}, props), _path$
|
|
21470
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
21351
21471
|
strokeLinecap: "round",
|
|
21352
21472
|
strokeLinejoin: "round",
|
|
21353
21473
|
strokeWidth: 2,
|
|
@@ -21563,18 +21683,18 @@ const SavedItems = ({
|
|
|
21563
21683
|
});
|
|
21564
21684
|
};
|
|
21565
21685
|
|
|
21566
|
-
var _path$
|
|
21686
|
+
var _path$g;
|
|
21567
21687
|
|
|
21568
|
-
function _extends$
|
|
21688
|
+
function _extends$h() { _extends$h = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$h.apply(this, arguments); }
|
|
21569
21689
|
|
|
21570
21690
|
function SvgRefresh(props) {
|
|
21571
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21691
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
21572
21692
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21573
21693
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21574
21694
|
fill: "none",
|
|
21575
21695
|
viewBox: "0 0 24 24",
|
|
21576
21696
|
stroke: "currentColor"
|
|
21577
|
-
}, props), _path$
|
|
21697
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
21578
21698
|
strokeLinecap: "round",
|
|
21579
21699
|
strokeLinejoin: "round",
|
|
21580
21700
|
strokeWidth: 2,
|
|
@@ -21582,35 +21702,35 @@ function SvgRefresh(props) {
|
|
|
21582
21702
|
})));
|
|
21583
21703
|
}
|
|
21584
21704
|
|
|
21585
|
-
var _path$
|
|
21705
|
+
var _path$f;
|
|
21586
21706
|
|
|
21587
|
-
function _extends$
|
|
21707
|
+
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); }
|
|
21588
21708
|
|
|
21589
21709
|
function SvgCalendar(props) {
|
|
21590
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21710
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
21591
21711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21592
21712
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21593
21713
|
viewBox: "0 0 20 20",
|
|
21594
21714
|
fill: "currentColor"
|
|
21595
|
-
}, props), _path$
|
|
21715
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
21596
21716
|
fillRule: "evenodd",
|
|
21597
21717
|
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",
|
|
21598
21718
|
clipRule: "evenodd"
|
|
21599
21719
|
})));
|
|
21600
21720
|
}
|
|
21601
21721
|
|
|
21602
|
-
var _path$
|
|
21722
|
+
var _path$e;
|
|
21603
21723
|
|
|
21604
|
-
function _extends$
|
|
21724
|
+
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); }
|
|
21605
21725
|
|
|
21606
21726
|
function SvgPlus(props) {
|
|
21607
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21727
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
21608
21728
|
className: "plc-w-5 plc-h-5",
|
|
21609
21729
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21610
21730
|
fill: "none",
|
|
21611
21731
|
viewBox: "0 0 24 24",
|
|
21612
21732
|
stroke: "currentColor"
|
|
21613
|
-
}, props), _path$
|
|
21733
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
21614
21734
|
strokeLinecap: "round",
|
|
21615
21735
|
strokeLinejoin: "round",
|
|
21616
21736
|
strokeWidth: 2,
|
|
@@ -21618,17 +21738,17 @@ function SvgPlus(props) {
|
|
|
21618
21738
|
})));
|
|
21619
21739
|
}
|
|
21620
21740
|
|
|
21621
|
-
var _path$
|
|
21741
|
+
var _path$d;
|
|
21622
21742
|
|
|
21623
|
-
function _extends$
|
|
21743
|
+
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); }
|
|
21624
21744
|
|
|
21625
21745
|
function SvgCheckMark(props) {
|
|
21626
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21746
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21627
21747
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21628
21748
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21629
21749
|
viewBox: "0 0 20 20",
|
|
21630
21750
|
fill: "currentColor"
|
|
21631
|
-
}, props), _path$
|
|
21751
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21632
21752
|
fillRule: "evenodd",
|
|
21633
21753
|
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",
|
|
21634
21754
|
clipRule: "evenodd"
|
|
@@ -21692,7 +21812,8 @@ const SubscriptionsItems = ({
|
|
|
21692
21812
|
} = useTranslation("dashboard");
|
|
21693
21813
|
const {
|
|
21694
21814
|
switchView,
|
|
21695
|
-
|
|
21815
|
+
switchToAddressView,
|
|
21816
|
+
switchToPaymentView
|
|
21696
21817
|
} = usePelcro();
|
|
21697
21818
|
const subs = getNonDonationSubs();
|
|
21698
21819
|
if (subs.length === 0) return null;
|
|
@@ -21734,7 +21855,12 @@ const SubscriptionsItems = ({
|
|
|
21734
21855
|
const plan = window.Pelcro.plan.getById(plan_id);
|
|
21735
21856
|
setProductAndPlan(product, plan);
|
|
21736
21857
|
setSubscriptionIdToRenew(sub.id);
|
|
21737
|
-
|
|
21858
|
+
|
|
21859
|
+
if (product.address_required) {
|
|
21860
|
+
return switchToAddressView();
|
|
21861
|
+
}
|
|
21862
|
+
|
|
21863
|
+
return switchToPaymentView();
|
|
21738
21864
|
};
|
|
21739
21865
|
|
|
21740
21866
|
const getPhases = () => {
|
|
@@ -21923,18 +22049,18 @@ Accordion.item = function AccordionItem({
|
|
|
21923
22049
|
}, content)) : null;
|
|
21924
22050
|
};
|
|
21925
22051
|
|
|
21926
|
-
var _path$
|
|
22052
|
+
var _path$c;
|
|
21927
22053
|
|
|
21928
|
-
function _extends$
|
|
22054
|
+
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); }
|
|
21929
22055
|
|
|
21930
22056
|
function SvgExit(props) {
|
|
21931
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22057
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
21932
22058
|
className: "plc-w-6 plc-h-6",
|
|
21933
22059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21934
22060
|
fill: "none",
|
|
21935
22061
|
viewBox: "0 0 24 24",
|
|
21936
22062
|
stroke: "currentColor"
|
|
21937
|
-
}, props), _path$
|
|
22063
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
21938
22064
|
strokeLinecap: "round",
|
|
21939
22065
|
strokeLinejoin: "round",
|
|
21940
22066
|
strokeWidth: 2,
|
|
@@ -21942,17 +22068,17 @@ function SvgExit(props) {
|
|
|
21942
22068
|
})));
|
|
21943
22069
|
}
|
|
21944
22070
|
|
|
21945
|
-
var _path$
|
|
22071
|
+
var _path$b;
|
|
21946
22072
|
|
|
21947
|
-
function _extends$
|
|
22073
|
+
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); }
|
|
21948
22074
|
|
|
21949
22075
|
function SvgUser(props) {
|
|
21950
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22076
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
21951
22077
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21952
22078
|
fill: "none",
|
|
21953
22079
|
viewBox: "0 0 24 24",
|
|
21954
22080
|
stroke: "currentColor"
|
|
21955
|
-
}, props), _path$
|
|
22081
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
21956
22082
|
strokeLinecap: "round",
|
|
21957
22083
|
strokeLinejoin: "round",
|
|
21958
22084
|
strokeWidth: 2,
|
|
@@ -21960,18 +22086,18 @@ function SvgUser(props) {
|
|
|
21960
22086
|
})));
|
|
21961
22087
|
}
|
|
21962
22088
|
|
|
21963
|
-
var _path$
|
|
22089
|
+
var _path$a;
|
|
21964
22090
|
|
|
21965
|
-
function _extends$
|
|
22091
|
+
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); }
|
|
21966
22092
|
|
|
21967
22093
|
function SvgNewsletter(props) {
|
|
21968
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22094
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
21969
22095
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21970
22096
|
className: "plc-h-5 plc-w-5",
|
|
21971
22097
|
fill: "none",
|
|
21972
22098
|
viewBox: "0 0 24 24",
|
|
21973
22099
|
stroke: "currentColor"
|
|
21974
|
-
}, props), _path$
|
|
22100
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
21975
22101
|
strokeLinecap: "round",
|
|
21976
22102
|
strokeLinejoin: "round",
|
|
21977
22103
|
strokeWidth: 2,
|
|
@@ -21979,18 +22105,18 @@ function SvgNewsletter(props) {
|
|
|
21979
22105
|
})));
|
|
21980
22106
|
}
|
|
21981
22107
|
|
|
21982
|
-
var _path$
|
|
22108
|
+
var _path$9;
|
|
21983
22109
|
|
|
21984
|
-
function _extends$
|
|
22110
|
+
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); }
|
|
21985
22111
|
|
|
21986
22112
|
function SvgDocument(props) {
|
|
21987
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22113
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
21988
22114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21989
22115
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
21990
22116
|
fill: "none",
|
|
21991
22117
|
viewBox: "0 0 24 24",
|
|
21992
22118
|
stroke: "currentColor"
|
|
21993
|
-
}, props), _path$
|
|
22119
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
21994
22120
|
strokeLinecap: "round",
|
|
21995
22121
|
strokeLinejoin: "round",
|
|
21996
22122
|
strokeWidth: 2,
|
|
@@ -21998,18 +22124,18 @@ function SvgDocument(props) {
|
|
|
21998
22124
|
})));
|
|
21999
22125
|
}
|
|
22000
22126
|
|
|
22001
|
-
var _path$
|
|
22127
|
+
var _path$8;
|
|
22002
22128
|
|
|
22003
|
-
function _extends$
|
|
22129
|
+
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); }
|
|
22004
22130
|
|
|
22005
22131
|
function SvgPaymentCard(props) {
|
|
22006
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22132
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
22007
22133
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22008
22134
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22009
22135
|
fill: "none",
|
|
22010
22136
|
viewBox: "0 0 24 24",
|
|
22011
22137
|
stroke: "currentColor"
|
|
22012
|
-
}, props), _path$
|
|
22138
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
22013
22139
|
strokeLinecap: "round",
|
|
22014
22140
|
strokeLinejoin: "round",
|
|
22015
22141
|
strokeWidth: 2,
|
|
@@ -22017,18 +22143,18 @@ function SvgPaymentCard(props) {
|
|
|
22017
22143
|
})));
|
|
22018
22144
|
}
|
|
22019
22145
|
|
|
22020
|
-
var _path$
|
|
22146
|
+
var _path$7, _path2$1;
|
|
22021
22147
|
|
|
22022
|
-
function _extends$
|
|
22148
|
+
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); }
|
|
22023
22149
|
|
|
22024
22150
|
function SvgLocationPin(props) {
|
|
22025
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22151
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
22026
22152
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22027
22153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22028
22154
|
fill: "none",
|
|
22029
22155
|
viewBox: "0 0 24 24",
|
|
22030
22156
|
stroke: "currentColor"
|
|
22031
|
-
}, props), _path$
|
|
22157
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
22032
22158
|
strokeLinecap: "round",
|
|
22033
22159
|
strokeLinejoin: "round",
|
|
22034
22160
|
strokeWidth: 2,
|
|
@@ -22043,10 +22169,10 @@ function SvgLocationPin(props) {
|
|
|
22043
22169
|
|
|
22044
22170
|
var _switch;
|
|
22045
22171
|
|
|
22046
|
-
function _extends$
|
|
22172
|
+
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); }
|
|
22047
22173
|
|
|
22048
22174
|
function SvgSubscription(props) {
|
|
22049
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22175
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
22050
22176
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22051
22177
|
viewBox: "0 0 100 125",
|
|
22052
22178
|
fill: "currentColor"
|
|
@@ -22061,18 +22187,18 @@ function SvgSubscription(props) {
|
|
|
22061
22187
|
}))))));
|
|
22062
22188
|
}
|
|
22063
22189
|
|
|
22064
|
-
var _path$
|
|
22190
|
+
var _path$6;
|
|
22065
22191
|
|
|
22066
|
-
function _extends$
|
|
22192
|
+
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); }
|
|
22067
22193
|
|
|
22068
22194
|
function SvgShopping(props) {
|
|
22069
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22195
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
22070
22196
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22071
22197
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22072
22198
|
fill: "none",
|
|
22073
22199
|
viewBox: "0 0 24 24",
|
|
22074
22200
|
stroke: "currentColor"
|
|
22075
|
-
}, props), _path$
|
|
22201
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
22076
22202
|
strokeLinecap: "round",
|
|
22077
22203
|
strokeLinejoin: "round",
|
|
22078
22204
|
strokeWidth: 2,
|
|
@@ -22080,18 +22206,18 @@ function SvgShopping(props) {
|
|
|
22080
22206
|
})));
|
|
22081
22207
|
}
|
|
22082
22208
|
|
|
22083
|
-
var _path$
|
|
22209
|
+
var _path$5;
|
|
22084
22210
|
|
|
22085
|
-
function _extends$
|
|
22211
|
+
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); }
|
|
22086
22212
|
|
|
22087
22213
|
function SvgBookmark(props) {
|
|
22088
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22214
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
22089
22215
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22090
22216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22091
22217
|
fill: "none",
|
|
22092
22218
|
viewBox: "0 0 24 24",
|
|
22093
22219
|
stroke: "currentColor"
|
|
22094
|
-
}, props), _path$
|
|
22220
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
22095
22221
|
strokeLinecap: "round",
|
|
22096
22222
|
strokeLinejoin: "round",
|
|
22097
22223
|
strokeWidth: 2,
|
|
@@ -22099,33 +22225,33 @@ function SvgBookmark(props) {
|
|
|
22099
22225
|
})));
|
|
22100
22226
|
}
|
|
22101
22227
|
|
|
22102
|
-
var _path$
|
|
22228
|
+
var _path$4;
|
|
22103
22229
|
|
|
22104
|
-
function _extends$
|
|
22230
|
+
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); }
|
|
22105
22231
|
|
|
22106
22232
|
function SvgKey(props) {
|
|
22107
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22233
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
22108
22234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22109
22235
|
viewBox: "0 0 20 20",
|
|
22110
22236
|
fill: "currentColor"
|
|
22111
|
-
}, props), _path$
|
|
22237
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
22112
22238
|
fillRule: "evenodd",
|
|
22113
22239
|
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",
|
|
22114
22240
|
clipRule: "evenodd"
|
|
22115
22241
|
})));
|
|
22116
22242
|
}
|
|
22117
22243
|
|
|
22118
|
-
var _path$
|
|
22244
|
+
var _path$3;
|
|
22119
22245
|
|
|
22120
|
-
function _extends$
|
|
22246
|
+
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); }
|
|
22121
22247
|
|
|
22122
22248
|
function SvgDonate(props) {
|
|
22123
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22249
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
22124
22250
|
width: 24,
|
|
22125
22251
|
height: 24,
|
|
22126
22252
|
fill: "currentColor",
|
|
22127
22253
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22128
|
-
}, props), _path$
|
|
22254
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
22129
22255
|
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"
|
|
22130
22256
|
})));
|
|
22131
22257
|
}
|
|
@@ -22194,7 +22320,7 @@ const InvoicesMenu = props => {
|
|
|
22194
22320
|
};
|
|
22195
22321
|
|
|
22196
22322
|
const InvoicesItems = () => {
|
|
22197
|
-
var _window$Pelcro$invoic;
|
|
22323
|
+
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
22198
22324
|
|
|
22199
22325
|
const {
|
|
22200
22326
|
t
|
|
@@ -22203,7 +22329,7 @@ const InvoicesItems = () => {
|
|
|
22203
22329
|
setInvoice,
|
|
22204
22330
|
switchView
|
|
22205
22331
|
} = usePelcro();
|
|
22206
|
-
const invoices = (_window$Pelcro$invoic = window.Pelcro.invoice.list()) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
22332
|
+
const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
22207
22333
|
|
|
22208
22334
|
const showInvoiceDetails = event => {
|
|
22209
22335
|
if (setInvoice(event.target.dataset.id)) {
|
|
@@ -22452,9 +22578,10 @@ class Dashboard extends Component {
|
|
|
22452
22578
|
}) => {
|
|
22453
22579
|
if (isGift) {
|
|
22454
22580
|
this.props.setProductAndPlan(null, null, true);
|
|
22581
|
+
return this.props.setView("plan-select");
|
|
22455
22582
|
}
|
|
22456
22583
|
|
|
22457
|
-
return this.props.setView("
|
|
22584
|
+
return this.props.setView("subscription-options");
|
|
22458
22585
|
});
|
|
22459
22586
|
|
|
22460
22587
|
_defineProperty$3(this, "displayAddressCreate", () => {
|
|
@@ -22879,9 +23006,9 @@ class Dashboard extends Component {
|
|
|
22879
23006
|
}
|
|
22880
23007
|
|
|
22881
23008
|
function hasInvoices() {
|
|
22882
|
-
var _window$Pelcro$invoic;
|
|
23009
|
+
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
22883
23010
|
|
|
22884
|
-
const invoices = (_window$Pelcro$invoic = window.Pelcro.invoice.list()) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
23011
|
+
const invoices = (_window$Pelcro$invoic = (_window$Pelcro$invoic2 = window.Pelcro.invoice.list()) === null || _window$Pelcro$invoic2 === void 0 ? void 0 : _window$Pelcro$invoic2.filter(invoice => invoice.total > 0)) !== null && _window$Pelcro$invoic !== void 0 ? _window$Pelcro$invoic : [];
|
|
22885
23012
|
return invoices.length > 0;
|
|
22886
23013
|
}
|
|
22887
23014
|
|
|
@@ -22920,7 +23047,7 @@ const DashboardOpenButton = () => {
|
|
|
22920
23047
|
};
|
|
22921
23048
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
22922
23049
|
|
|
22923
|
-
const initialState$
|
|
23050
|
+
const initialState$3 = {
|
|
22924
23051
|
imageSrc: null,
|
|
22925
23052
|
crop: {
|
|
22926
23053
|
x: 0,
|
|
@@ -22934,10 +23061,10 @@ const initialState$2 = {
|
|
|
22934
23061
|
content: ""
|
|
22935
23062
|
}
|
|
22936
23063
|
};
|
|
22937
|
-
const store$
|
|
23064
|
+
const store$3 = /*#__PURE__*/createContext(initialState$3);
|
|
22938
23065
|
const {
|
|
22939
|
-
Provider: Provider$
|
|
22940
|
-
} = store$
|
|
23066
|
+
Provider: Provider$3
|
|
23067
|
+
} = store$3;
|
|
22941
23068
|
|
|
22942
23069
|
const ProfilePicChangeContainer = ({
|
|
22943
23070
|
style,
|
|
@@ -23071,21 +23198,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23071
23198
|
default:
|
|
23072
23199
|
return state;
|
|
23073
23200
|
}
|
|
23074
|
-
}, initialState$
|
|
23201
|
+
}, initialState$3);
|
|
23075
23202
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23076
23203
|
style: { ...style
|
|
23077
23204
|
},
|
|
23078
23205
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23079
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23206
|
+
}, /*#__PURE__*/React__default.createElement(Provider$3, {
|
|
23080
23207
|
value: {
|
|
23081
23208
|
state,
|
|
23082
23209
|
dispatch
|
|
23083
23210
|
}
|
|
23084
23211
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
23085
|
-
store: store$
|
|
23212
|
+
store: store$3,
|
|
23086
23213
|
key: i
|
|
23087
23214
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23088
|
-
store: store$
|
|
23215
|
+
store: store$3
|
|
23089
23216
|
})));
|
|
23090
23217
|
};
|
|
23091
23218
|
/**
|
|
@@ -23147,7 +23274,7 @@ const ProfilePicChangeButton = ({
|
|
|
23147
23274
|
isSubmitting
|
|
23148
23275
|
},
|
|
23149
23276
|
dispatch
|
|
23150
|
-
} = useContext(store$
|
|
23277
|
+
} = useContext(store$3);
|
|
23151
23278
|
const {
|
|
23152
23279
|
t
|
|
23153
23280
|
} = useTranslation("userEdit");
|
|
@@ -24515,7 +24642,7 @@ const ProfilePicChangeCropper = ({
|
|
|
24515
24642
|
zoom
|
|
24516
24643
|
},
|
|
24517
24644
|
dispatch
|
|
24518
|
-
} = useContext(store$
|
|
24645
|
+
} = useContext(store$3);
|
|
24519
24646
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24520
24647
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
24521
24648
|
}, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
|
|
@@ -24557,7 +24684,7 @@ const ProfilePicChangeZoom = ({
|
|
|
24557
24684
|
zoom
|
|
24558
24685
|
},
|
|
24559
24686
|
dispatch
|
|
24560
|
-
} = useContext(store$
|
|
24687
|
+
} = useContext(store$3);
|
|
24561
24688
|
const {
|
|
24562
24689
|
t
|
|
24563
24690
|
} = useTranslation("userEdit");
|
|
@@ -24580,18 +24707,18 @@ const ProfilePicChangeZoom = ({
|
|
|
24580
24707
|
}, otherProps)));
|
|
24581
24708
|
};
|
|
24582
24709
|
|
|
24583
|
-
var _path$
|
|
24710
|
+
var _path$2;
|
|
24584
24711
|
|
|
24585
|
-
function _extends$
|
|
24712
|
+
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); }
|
|
24586
24713
|
|
|
24587
24714
|
function SvgPhotograph(props) {
|
|
24588
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
24715
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
24589
24716
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24590
24717
|
className: "plc-h-6 plc-w-6",
|
|
24591
24718
|
fill: "none",
|
|
24592
24719
|
viewBox: "0 0 24 24",
|
|
24593
24720
|
stroke: "currentColor"
|
|
24594
|
-
}, props), _path$
|
|
24721
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
24595
24722
|
strokeLinecap: "round",
|
|
24596
24723
|
strokeLinejoin: "round",
|
|
24597
24724
|
strokeWidth: 2,
|
|
@@ -24609,7 +24736,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
24609
24736
|
state: {
|
|
24610
24737
|
isSubmitting
|
|
24611
24738
|
}
|
|
24612
|
-
} = useContext(store$
|
|
24739
|
+
} = useContext(store$3);
|
|
24613
24740
|
const {
|
|
24614
24741
|
t
|
|
24615
24742
|
} = useTranslation("userEdit");
|
|
@@ -24651,7 +24778,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
24651
24778
|
state: {
|
|
24652
24779
|
isSubmitting
|
|
24653
24780
|
}
|
|
24654
|
-
} = useContext(store$
|
|
24781
|
+
} = useContext(store$3);
|
|
24655
24782
|
const {
|
|
24656
24783
|
t
|
|
24657
24784
|
} = useTranslation("userEdit");
|
|
@@ -24674,7 +24801,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
24674
24801
|
state: {
|
|
24675
24802
|
imageSrc
|
|
24676
24803
|
}
|
|
24677
|
-
} = useContext(store$
|
|
24804
|
+
} = useContext(store$3);
|
|
24678
24805
|
const {
|
|
24679
24806
|
t
|
|
24680
24807
|
} = useTranslation("userEdit");
|
|
@@ -24736,17 +24863,17 @@ function ProfilePicChangeModal({
|
|
|
24736
24863
|
}
|
|
24737
24864
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
24738
24865
|
|
|
24739
|
-
const initialState$
|
|
24866
|
+
const initialState$2 = {
|
|
24740
24867
|
isSubmitting: false,
|
|
24741
24868
|
alert: {
|
|
24742
24869
|
type: "error",
|
|
24743
24870
|
content: ""
|
|
24744
24871
|
}
|
|
24745
24872
|
};
|
|
24746
|
-
const store$
|
|
24873
|
+
const store$2 = /*#__PURE__*/createContext(initialState$2);
|
|
24747
24874
|
const {
|
|
24748
|
-
Provider: Provider$
|
|
24749
|
-
} = store$
|
|
24875
|
+
Provider: Provider$2
|
|
24876
|
+
} = store$2;
|
|
24750
24877
|
|
|
24751
24878
|
const EmailVerifyContainer = ({
|
|
24752
24879
|
style,
|
|
@@ -24809,21 +24936,21 @@ const EmailVerifyContainer = ({
|
|
|
24809
24936
|
default:
|
|
24810
24937
|
return state;
|
|
24811
24938
|
}
|
|
24812
|
-
}, initialState$
|
|
24939
|
+
}, initialState$2);
|
|
24813
24940
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24814
24941
|
style: { ...style
|
|
24815
24942
|
},
|
|
24816
24943
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
24817
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
24944
|
+
}, /*#__PURE__*/React__default.createElement(Provider$2, {
|
|
24818
24945
|
value: {
|
|
24819
24946
|
state,
|
|
24820
24947
|
dispatch
|
|
24821
24948
|
}
|
|
24822
24949
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24823
|
-
store: store$
|
|
24950
|
+
store: store$2,
|
|
24824
24951
|
key: i
|
|
24825
24952
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24826
|
-
store: store$
|
|
24953
|
+
store: store$2
|
|
24827
24954
|
})));
|
|
24828
24955
|
};
|
|
24829
24956
|
|
|
@@ -24837,7 +24964,7 @@ const EmailVerifyResendButton = ({
|
|
|
24837
24964
|
state: {
|
|
24838
24965
|
isSubmitting
|
|
24839
24966
|
}
|
|
24840
|
-
} = useContext(store$
|
|
24967
|
+
} = useContext(store$2);
|
|
24841
24968
|
const {
|
|
24842
24969
|
t
|
|
24843
24970
|
} = useTranslation("verifyEmail");
|
|
@@ -24852,16 +24979,16 @@ const EmailVerifyResendButton = ({
|
|
|
24852
24979
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
24853
24980
|
};
|
|
24854
24981
|
|
|
24855
|
-
var _path, _path2;
|
|
24982
|
+
var _path$1, _path2;
|
|
24856
24983
|
|
|
24857
|
-
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); }
|
|
24984
|
+
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); }
|
|
24858
24985
|
|
|
24859
24986
|
function SvgEmailVerify(props) {
|
|
24860
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
24987
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
24861
24988
|
className: "plc-w-6 plc-h-6",
|
|
24862
24989
|
viewBox: "0 0 700 700",
|
|
24863
24990
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24864
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
24991
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
24865
24992
|
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"
|
|
24866
24993
|
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
24867
24994
|
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"
|
|
@@ -24965,11 +25092,11 @@ const invoicePaymentSubmitButton = props => {
|
|
|
24965
25092
|
return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
|
|
24966
25093
|
};
|
|
24967
25094
|
|
|
24968
|
-
const initialState = {};
|
|
24969
|
-
const store = /*#__PURE__*/createContext(initialState);
|
|
25095
|
+
const initialState$1 = {};
|
|
25096
|
+
const store$1 = /*#__PURE__*/createContext(initialState$1);
|
|
24970
25097
|
const {
|
|
24971
|
-
Provider
|
|
24972
|
-
} = store;
|
|
25098
|
+
Provider: Provider$1
|
|
25099
|
+
} = store$1;
|
|
24973
25100
|
|
|
24974
25101
|
const InvoiceDetailsContainer = ({
|
|
24975
25102
|
style,
|
|
@@ -24990,21 +25117,21 @@ const InvoiceDetailsContainer = ({
|
|
|
24990
25117
|
default:
|
|
24991
25118
|
return state;
|
|
24992
25119
|
}
|
|
24993
|
-
}, initialState);
|
|
25120
|
+
}, initialState$1);
|
|
24994
25121
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24995
25122
|
style: { ...style
|
|
24996
25123
|
},
|
|
24997
25124
|
className: `pelcro-container pelcro-invoice-details-container ${className}`
|
|
24998
|
-
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25125
|
+
}, /*#__PURE__*/React__default.createElement(Provider$1, {
|
|
24999
25126
|
value: {
|
|
25000
25127
|
state,
|
|
25001
25128
|
dispatch
|
|
25002
25129
|
}
|
|
25003
25130
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25004
|
-
store,
|
|
25131
|
+
store: store$1,
|
|
25005
25132
|
key: i
|
|
25006
25133
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25007
|
-
store
|
|
25134
|
+
store: store$1
|
|
25008
25135
|
})));
|
|
25009
25136
|
};
|
|
25010
25137
|
|
|
@@ -25036,7 +25163,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
25036
25163
|
}) => {
|
|
25037
25164
|
const {
|
|
25038
25165
|
dispatch
|
|
25039
|
-
} = useContext(store);
|
|
25166
|
+
} = useContext(store$1);
|
|
25040
25167
|
const {
|
|
25041
25168
|
t
|
|
25042
25169
|
} = useTranslation("invoiceDetails");
|
|
@@ -25076,11 +25203,11 @@ const InvoiceDetailsView = props => {
|
|
|
25076
25203
|
}, t("labels.summary")), invoice && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("p", {
|
|
25077
25204
|
className: "plc-mr-2 pelcro-invoice-creation-date"
|
|
25078
25205
|
}, `${t("labels.creationDate")} ${formattedCreationDate}`), /*#__PURE__*/React__default.createElement("div", {
|
|
25079
|
-
className: "plc-flex plc-items-center plc-pt-2 plc-mt-2 plc-border-t plc-border-gray-400 plc-min-h-12 plc-justify-
|
|
25206
|
+
className: "plc-flex plc-items-center plc-pt-2 plc-mt-2 plc-border-t plc-border-gray-400 plc-min-h-12 plc-justify-between pelcro-invoice-plan-wrapper"
|
|
25080
25207
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25081
|
-
className: "plc-
|
|
25208
|
+
className: "plc-break-words pelcro-invoice-plan-name"
|
|
25082
25209
|
}, invoice.plan.nickname), /*#__PURE__*/React__default.createElement("div", {
|
|
25083
|
-
className: "plc-
|
|
25210
|
+
className: "plc-text-center pelcro-invoice-summary-price"
|
|
25084
25211
|
}, calcAndFormatItemsTotal([invoice.plan], invoice.currency))), /*#__PURE__*/React__default.createElement("div", {
|
|
25085
25212
|
className: "plc-flex plc-justify-end plc-pt-2 plc-mt-2 plc-font-bold plc-border-t plc-border-gray-400 pelcro-invoice-total-wrapper"
|
|
25086
25213
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -25141,4 +25268,230 @@ const InvoiceDetailsModal = ({
|
|
|
25141
25268
|
};
|
|
25142
25269
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
25143
25270
|
|
|
25144
|
-
|
|
25271
|
+
const initialState = {
|
|
25272
|
+
selectedOption: ""
|
|
25273
|
+
};
|
|
25274
|
+
const store = /*#__PURE__*/createContext(initialState);
|
|
25275
|
+
const {
|
|
25276
|
+
Provider
|
|
25277
|
+
} = store;
|
|
25278
|
+
|
|
25279
|
+
const SubscriptionOptionsContainer = ({
|
|
25280
|
+
style,
|
|
25281
|
+
className = "",
|
|
25282
|
+
onRenewSubSuccess = () => {},
|
|
25283
|
+
onNewSubSuccess = () => {},
|
|
25284
|
+
children,
|
|
25285
|
+
...props
|
|
25286
|
+
}) => {
|
|
25287
|
+
const submit = ({
|
|
25288
|
+
selectedOption
|
|
25289
|
+
}, dispatch) => {
|
|
25290
|
+
if (selectedOption === "renew") return onRenewSubSuccess();
|
|
25291
|
+
if (selectedOption === "new") return onNewSubSuccess();
|
|
25292
|
+
};
|
|
25293
|
+
|
|
25294
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25295
|
+
switch (action.type) {
|
|
25296
|
+
case SWITCH_TO_NEW:
|
|
25297
|
+
return lib_7({ ...state,
|
|
25298
|
+
selectedOption: "new"
|
|
25299
|
+
});
|
|
25300
|
+
|
|
25301
|
+
case SWITCH_TO_RENEW:
|
|
25302
|
+
return lib_7({ ...state,
|
|
25303
|
+
selectedOption: "renew"
|
|
25304
|
+
});
|
|
25305
|
+
|
|
25306
|
+
case HANDLE_SUBMIT:
|
|
25307
|
+
return lib_4((state, dispatch) => submit(state));
|
|
25308
|
+
|
|
25309
|
+
default:
|
|
25310
|
+
return state;
|
|
25311
|
+
}
|
|
25312
|
+
}, initialState);
|
|
25313
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25314
|
+
style: { ...style
|
|
25315
|
+
},
|
|
25316
|
+
className: `pelcro-container pelcro-subscription-options-container ${className}`
|
|
25317
|
+
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25318
|
+
value: {
|
|
25319
|
+
state,
|
|
25320
|
+
dispatch
|
|
25321
|
+
}
|
|
25322
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25323
|
+
store,
|
|
25324
|
+
key: i
|
|
25325
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25326
|
+
store
|
|
25327
|
+
})));
|
|
25328
|
+
};
|
|
25329
|
+
|
|
25330
|
+
var _path;
|
|
25331
|
+
|
|
25332
|
+
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); }
|
|
25333
|
+
|
|
25334
|
+
function SvgPlusCircle(props) {
|
|
25335
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25336
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25337
|
+
className: "plc-h-6 plc-w-6",
|
|
25338
|
+
fill: "none",
|
|
25339
|
+
viewBox: "0 0 24 24",
|
|
25340
|
+
stroke: "currentColor",
|
|
25341
|
+
strokeWidth: 2
|
|
25342
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25343
|
+
strokeLinecap: "round",
|
|
25344
|
+
strokeLinejoin: "round",
|
|
25345
|
+
d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
25346
|
+
})));
|
|
25347
|
+
}
|
|
25348
|
+
|
|
25349
|
+
const SubscriptionOptionsNewButton = ({
|
|
25350
|
+
name,
|
|
25351
|
+
onClick,
|
|
25352
|
+
...otherProps
|
|
25353
|
+
}) => {
|
|
25354
|
+
const {
|
|
25355
|
+
dispatch,
|
|
25356
|
+
state: {
|
|
25357
|
+
selectedOption
|
|
25358
|
+
}
|
|
25359
|
+
} = useContext(store);
|
|
25360
|
+
const {
|
|
25361
|
+
t
|
|
25362
|
+
} = useTranslation("subscriptionOptions");
|
|
25363
|
+
const isChecked = selectedOption === "new";
|
|
25364
|
+
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25365
|
+
className: "plc-hidden pelcro-new-sub-option",
|
|
25366
|
+
labelClassName: `plc-flex plc-flex-col plc-items-center plc-justify-center plc-text-lg plc-font-semibold plc-ml-0 plc-w-52 plc-h-52 plc-text-black plc-p-2 hover:plc-bg-gray-200 pelcro-new-sub-option-label plc-border-2 plc-text-center ${isChecked ? "plc-border-black" : "plc-border-gray-300"}`,
|
|
25367
|
+
id: "pelcro-new-sub-option",
|
|
25368
|
+
name: "option",
|
|
25369
|
+
onChange: () => {
|
|
25370
|
+
dispatch({
|
|
25371
|
+
type: SWITCH_TO_NEW
|
|
25372
|
+
});
|
|
25373
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25374
|
+
},
|
|
25375
|
+
checked: isChecked
|
|
25376
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
|
|
25377
|
+
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25378
|
+
}));
|
|
25379
|
+
};
|
|
25380
|
+
|
|
25381
|
+
const SubscriptionOptionsRenewButton = ({
|
|
25382
|
+
name,
|
|
25383
|
+
onClick,
|
|
25384
|
+
...otherProps
|
|
25385
|
+
}) => {
|
|
25386
|
+
const {
|
|
25387
|
+
dispatch,
|
|
25388
|
+
state: {
|
|
25389
|
+
selectedOption
|
|
25390
|
+
}
|
|
25391
|
+
} = useContext(store);
|
|
25392
|
+
const {
|
|
25393
|
+
t
|
|
25394
|
+
} = useTranslation("subscriptionOptions");
|
|
25395
|
+
const isChecked = selectedOption === "renew";
|
|
25396
|
+
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25397
|
+
className: "plc-hidden pelcro-renew-sub-option",
|
|
25398
|
+
labelClassName: `plc-flex plc-flex-col plc-items-center plc-justify-center plc-text-lg plc-font-semibold plc-ml-0 plc-w-52 plc-h-52 plc-text-black plc-p-2 hover:plc-bg-gray-200 pelcro-renew-sub-option-label plc-border-2 plc-text-center ${isChecked ? "plc-border-black" : "plc-border-gray-300"}`,
|
|
25399
|
+
id: "pelcro-renew-sub-option",
|
|
25400
|
+
name: "option",
|
|
25401
|
+
onChange: () => {
|
|
25402
|
+
dispatch({
|
|
25403
|
+
type: SWITCH_TO_RENEW
|
|
25404
|
+
});
|
|
25405
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25406
|
+
},
|
|
25407
|
+
checked: isChecked
|
|
25408
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
|
|
25409
|
+
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25410
|
+
}));
|
|
25411
|
+
};
|
|
25412
|
+
|
|
25413
|
+
const SubscriptionOptionsSubmit = ({
|
|
25414
|
+
name,
|
|
25415
|
+
onClick,
|
|
25416
|
+
...otherProps
|
|
25417
|
+
}) => {
|
|
25418
|
+
const {
|
|
25419
|
+
dispatch,
|
|
25420
|
+
state: {
|
|
25421
|
+
selectedOption
|
|
25422
|
+
}
|
|
25423
|
+
} = useContext(store);
|
|
25424
|
+
const {
|
|
25425
|
+
t
|
|
25426
|
+
} = useTranslation("subscriptionOptions");
|
|
25427
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
25428
|
+
onClick: () => {
|
|
25429
|
+
dispatch({
|
|
25430
|
+
type: HANDLE_SUBMIT
|
|
25431
|
+
});
|
|
25432
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25433
|
+
},
|
|
25434
|
+
disabled: !selectedOption
|
|
25435
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("next"));
|
|
25436
|
+
};
|
|
25437
|
+
|
|
25438
|
+
const SubscriptionOptionsView = props => {
|
|
25439
|
+
const {
|
|
25440
|
+
t
|
|
25441
|
+
} = useTranslation("subscriptionOptions");
|
|
25442
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25443
|
+
id: "pelcro-subscription-options-view"
|
|
25444
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25445
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
25446
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25447
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
25448
|
+
}, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
|
|
25449
|
+
action: "javascript:void(0);",
|
|
25450
|
+
className: "plc-mt-2 pelcro-form"
|
|
25451
|
+
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
25452
|
+
className: "plc-flex plc-justify-between plc-items-center"
|
|
25453
|
+
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
|
|
25454
|
+
role: "submit",
|
|
25455
|
+
className: "plc-mt-4 plc-w-full",
|
|
25456
|
+
name: t("next"),
|
|
25457
|
+
id: "pelcro-submit"
|
|
25458
|
+
}))));
|
|
25459
|
+
};
|
|
25460
|
+
|
|
25461
|
+
const SubscriptionOptionsModal = ({
|
|
25462
|
+
onDisplay,
|
|
25463
|
+
onClose,
|
|
25464
|
+
...otherProps
|
|
25465
|
+
}) => {
|
|
25466
|
+
const {
|
|
25467
|
+
switchView,
|
|
25468
|
+
setProductsList
|
|
25469
|
+
} = usePelcro();
|
|
25470
|
+
|
|
25471
|
+
const onRenewSubSuccess = () => {
|
|
25472
|
+
var _otherProps$onRenewSu;
|
|
25473
|
+
|
|
25474
|
+
(_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
|
|
25475
|
+
setProductsList(getRenewableProducts());
|
|
25476
|
+
switchView("_plan-select-renew");
|
|
25477
|
+
};
|
|
25478
|
+
|
|
25479
|
+
const onNewSubSuccess = () => {
|
|
25480
|
+
var _otherProps$onNewSubS;
|
|
25481
|
+
|
|
25482
|
+
(_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
|
|
25483
|
+
switchView("plan-select");
|
|
25484
|
+
};
|
|
25485
|
+
|
|
25486
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
25487
|
+
onDisplay: onDisplay,
|
|
25488
|
+
onClose: onClose,
|
|
25489
|
+
id: "pelcro-subscription-options-modal"
|
|
25490
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
|
|
25491
|
+
onNewSubSuccess: onNewSubSuccess,
|
|
25492
|
+
onRenewSubSuccess: onRenewSubSuccess
|
|
25493
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
25494
|
+
};
|
|
25495
|
+
SubscriptionOptionsModal.viewId = "subscription-options";
|
|
25496
|
+
|
|
25497
|
+
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, InvoiceDetailsContainer, InvoiceDetailsDownloadButton, InvoiceDetailsModal, InvoiceDetailsPayButton, InvoiceDetailsView, InvoicePaymentContainer, InvoicePaymentModal, InvoicePaymentView, 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, SubscriptionOptionsContainer, SubscriptionOptionsModal, SubscriptionOptionsNewButton, SubscriptionOptionsRenewButton, SubscriptionOptionsSubmit, SubscriptionOptionsView, 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, invoicePaymentSubmitButton, notify, unauthenticatedButtons, usePelcro };
|