@pelcro/react-pelcro-js 3.2.0-beta.1 → 3.2.0-beta.4
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 +1302 -562
- package/dist/index.esm.js +1297 -563
- 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
|
};
|
|
@@ -3735,8 +3735,8 @@ var login_fr = {
|
|
|
3735
3735
|
errors: errors$4
|
|
3736
3736
|
};
|
|
3737
3737
|
|
|
3738
|
-
var title$
|
|
3739
|
-
var subtitle$
|
|
3738
|
+
var title$f = "Create an account";
|
|
3739
|
+
var subtitle$7 = "Enter your email and password below";
|
|
3740
3740
|
var labels$h = {
|
|
3741
3741
|
signUpFacebook: "Sign up with Facebook",
|
|
3742
3742
|
signUpGoogle: "Sign up with Google",
|
|
@@ -3821,8 +3821,8 @@ var redeem$1 = {
|
|
|
3821
3821
|
}
|
|
3822
3822
|
};
|
|
3823
3823
|
var register_en = {
|
|
3824
|
-
title: title$
|
|
3825
|
-
subtitle: subtitle$
|
|
3824
|
+
title: title$f,
|
|
3825
|
+
subtitle: subtitle$7,
|
|
3826
3826
|
labels: labels$h,
|
|
3827
3827
|
messages: messages$h,
|
|
3828
3828
|
errors: errors$3,
|
|
@@ -3830,8 +3830,8 @@ var register_en = {
|
|
|
3830
3830
|
redeem: redeem$1
|
|
3831
3831
|
};
|
|
3832
3832
|
|
|
3833
|
-
var title$
|
|
3834
|
-
var subtitle$
|
|
3833
|
+
var title$e = "Créer un compte";
|
|
3834
|
+
var subtitle$6 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3835
3835
|
var labels$g = {
|
|
3836
3836
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3837
3837
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
@@ -3917,8 +3917,8 @@ var redeem = {
|
|
|
3917
3917
|
}
|
|
3918
3918
|
};
|
|
3919
3919
|
var register_fr = {
|
|
3920
|
-
title: title$
|
|
3921
|
-
subtitle: subtitle$
|
|
3920
|
+
title: title$e,
|
|
3921
|
+
subtitle: subtitle$6,
|
|
3922
3922
|
labels: labels$g,
|
|
3923
3923
|
messages: messages$g,
|
|
3924
3924
|
errors: errors$2,
|
|
@@ -3978,7 +3978,7 @@ var userEdit_fr = {
|
|
|
3978
3978
|
messages: messages$e
|
|
3979
3979
|
};
|
|
3980
3980
|
|
|
3981
|
-
var title$
|
|
3981
|
+
var title$d = "Enter your shipping address";
|
|
3982
3982
|
var selectAddressTitle$1 = "Please select an address";
|
|
3983
3983
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
3984
3984
|
var labels$d = {
|
|
@@ -4001,7 +4001,7 @@ var messages$d = {
|
|
|
4001
4001
|
subRedeemed: "Your subscription has been redeemed."
|
|
4002
4002
|
};
|
|
4003
4003
|
var address_en = {
|
|
4004
|
-
title: title$
|
|
4004
|
+
title: title$d,
|
|
4005
4005
|
selectAddressTitle: selectAddressTitle$1,
|
|
4006
4006
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
4007
4007
|
labels: labels$d,
|
|
@@ -4009,7 +4009,7 @@ var address_en = {
|
|
|
4009
4009
|
messages: messages$d
|
|
4010
4010
|
};
|
|
4011
4011
|
|
|
4012
|
-
var title$
|
|
4012
|
+
var title$c = "Entrez votre adresse de livraison";
|
|
4013
4013
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
4014
4014
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4015
4015
|
var labels$c = {
|
|
@@ -4032,7 +4032,7 @@ var messages$c = {
|
|
|
4032
4032
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4033
4033
|
};
|
|
4034
4034
|
var address_fr = {
|
|
4035
|
-
title: title$
|
|
4035
|
+
title: title$c,
|
|
4036
4036
|
selectAddressTitle: selectAddressTitle,
|
|
4037
4037
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4038
4038
|
labels: labels$c,
|
|
@@ -4040,8 +4040,8 @@ var address_fr = {
|
|
|
4040
4040
|
messages: messages$c
|
|
4041
4041
|
};
|
|
4042
4042
|
|
|
4043
|
-
var title$
|
|
4044
|
-
var subtitle$
|
|
4043
|
+
var title$b = "Reset your password";
|
|
4044
|
+
var subtitle$5 = "Enter a new password below";
|
|
4045
4045
|
var email$3 = "Email";
|
|
4046
4046
|
var password$3 = "Password";
|
|
4047
4047
|
var confirmPassword$1 = "Confirm password";
|
|
@@ -4049,8 +4049,8 @@ var submit$5 = "Submit";
|
|
|
4049
4049
|
var required$5 = "Required";
|
|
4050
4050
|
var passwordUpdated$1 = "Password has been updated, please login with the new password";
|
|
4051
4051
|
var passwordReset_en = {
|
|
4052
|
-
title: title$
|
|
4053
|
-
subtitle: subtitle$
|
|
4052
|
+
title: title$b,
|
|
4053
|
+
subtitle: subtitle$5,
|
|
4054
4054
|
email: email$3,
|
|
4055
4055
|
password: password$3,
|
|
4056
4056
|
confirmPassword: confirmPassword$1,
|
|
@@ -4059,8 +4059,8 @@ var passwordReset_en = {
|
|
|
4059
4059
|
passwordUpdated: passwordUpdated$1
|
|
4060
4060
|
};
|
|
4061
4061
|
|
|
4062
|
-
var title$
|
|
4063
|
-
var subtitle$
|
|
4062
|
+
var title$a = "Réinitialiser votre mot de passe";
|
|
4063
|
+
var subtitle$4 = "Entrez un nouveau mot de passe ci-dessous";
|
|
4064
4064
|
var email$2 = "Adresse courriel";
|
|
4065
4065
|
var password$2 = "Mot de passe";
|
|
4066
4066
|
var confirmPassword = "Confirmer le mot de passe";
|
|
@@ -4068,8 +4068,8 @@ var submit$4 = "Soumettre";
|
|
|
4068
4068
|
var required$4 = "Champs obligatoires";
|
|
4069
4069
|
var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
|
|
4070
4070
|
var passwordReset_fr = {
|
|
4071
|
-
title: title$
|
|
4072
|
-
subtitle: subtitle$
|
|
4071
|
+
title: title$a,
|
|
4072
|
+
subtitle: subtitle$4,
|
|
4073
4073
|
email: email$2,
|
|
4074
4074
|
password: password$2,
|
|
4075
4075
|
confirmPassword: confirmPassword,
|
|
@@ -4078,7 +4078,7 @@ var passwordReset_fr = {
|
|
|
4078
4078
|
passwordUpdated: passwordUpdated
|
|
4079
4079
|
};
|
|
4080
4080
|
|
|
4081
|
-
var title$
|
|
4081
|
+
var title$9 = "Forgot your password?";
|
|
4082
4082
|
var email$1 = "Email";
|
|
4083
4083
|
var password$1 = "Password";
|
|
4084
4084
|
var submit$3 = "Submit";
|
|
@@ -4089,7 +4089,7 @@ var messages$b = {
|
|
|
4089
4089
|
loginHere: "login here."
|
|
4090
4090
|
};
|
|
4091
4091
|
var passwordForgot_en = {
|
|
4092
|
-
title: title$
|
|
4092
|
+
title: title$9,
|
|
4093
4093
|
email: email$1,
|
|
4094
4094
|
password: password$1,
|
|
4095
4095
|
submit: submit$3,
|
|
@@ -4098,7 +4098,7 @@ var passwordForgot_en = {
|
|
|
4098
4098
|
messages: messages$b
|
|
4099
4099
|
};
|
|
4100
4100
|
|
|
4101
|
-
var title$
|
|
4101
|
+
var title$8 = "Mot de passe oublié ?";
|
|
4102
4102
|
var email = "Courriel";
|
|
4103
4103
|
var password = "Mot de passe";
|
|
4104
4104
|
var submit$2 = "Soumettre";
|
|
@@ -4109,7 +4109,7 @@ var messages$a = {
|
|
|
4109
4109
|
loginHere: "Connectez-vous ici"
|
|
4110
4110
|
};
|
|
4111
4111
|
var passwordForgot_fr = {
|
|
4112
|
-
title: title$
|
|
4112
|
+
title: title$8,
|
|
4113
4113
|
email: email,
|
|
4114
4114
|
password: password,
|
|
4115
4115
|
submit: submit$2,
|
|
@@ -4118,7 +4118,7 @@ var passwordForgot_fr = {
|
|
|
4118
4118
|
messages: messages$a
|
|
4119
4119
|
};
|
|
4120
4120
|
|
|
4121
|
-
var title$
|
|
4121
|
+
var title$7 = "Change your password";
|
|
4122
4122
|
var currentPassword$1 = "Current password";
|
|
4123
4123
|
var newPassword$1 = "New password";
|
|
4124
4124
|
var confirmNewPassword$1 = "Confirm new password";
|
|
@@ -4128,7 +4128,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
|
|
|
4128
4128
|
var passwordsNotMatching$1 = "Passwords don't match";
|
|
4129
4129
|
var weakPassword$1 = "Your password must contain at least 6 characters";
|
|
4130
4130
|
var passwordChange_en = {
|
|
4131
|
-
title: title$
|
|
4131
|
+
title: title$7,
|
|
4132
4132
|
currentPassword: currentPassword$1,
|
|
4133
4133
|
newPassword: newPassword$1,
|
|
4134
4134
|
confirmNewPassword: confirmNewPassword$1,
|
|
@@ -4139,7 +4139,7 @@ var passwordChange_en = {
|
|
|
4139
4139
|
weakPassword: weakPassword$1
|
|
4140
4140
|
};
|
|
4141
4141
|
|
|
4142
|
-
var title$
|
|
4142
|
+
var title$6 = "Changez votre mot de passe";
|
|
4143
4143
|
var currentPassword = "Mot de passe actuel";
|
|
4144
4144
|
var newPassword = "Nouveau mot de passe";
|
|
4145
4145
|
var confirmNewPassword = "Confirmer le nouveau mot de passe";
|
|
@@ -4149,7 +4149,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
|
|
|
4149
4149
|
var passwordsNotMatching = "Les mots de passe ne correspondent pas";
|
|
4150
4150
|
var weakPassword = "Votre mot de passe doit contenir au moins 6";
|
|
4151
4151
|
var passwordChange_fr = {
|
|
4152
|
-
title: title$
|
|
4152
|
+
title: title$6,
|
|
4153
4153
|
currentPassword: currentPassword,
|
|
4154
4154
|
newPassword: newPassword,
|
|
4155
4155
|
confirmNewPassword: confirmNewPassword,
|
|
@@ -4160,8 +4160,8 @@ var passwordChange_fr = {
|
|
|
4160
4160
|
weakPassword: weakPassword
|
|
4161
4161
|
};
|
|
4162
4162
|
|
|
4163
|
-
var title$
|
|
4164
|
-
var subtitle$
|
|
4163
|
+
var title$5 = "Votre panier";
|
|
4164
|
+
var subtitle$3 = "Terminez votre achat ci-dessous";
|
|
4165
4165
|
var name$1 = "Produit";
|
|
4166
4166
|
var quantity$1 = "Quantité";
|
|
4167
4167
|
var price$1 = "Prix";
|
|
@@ -4172,8 +4172,8 @@ var confirm$3 = "Passer à la caisse";
|
|
|
4172
4172
|
var empty$1 = "Votre panier est vide.";
|
|
4173
4173
|
var removeAll$1 = "Vider";
|
|
4174
4174
|
var cart_fr = {
|
|
4175
|
-
title: title$
|
|
4176
|
-
subtitle: subtitle$
|
|
4175
|
+
title: title$5,
|
|
4176
|
+
subtitle: subtitle$3,
|
|
4177
4177
|
name: name$1,
|
|
4178
4178
|
quantity: quantity$1,
|
|
4179
4179
|
price: price$1,
|
|
@@ -4185,8 +4185,8 @@ var cart_fr = {
|
|
|
4185
4185
|
removeAll: removeAll$1
|
|
4186
4186
|
};
|
|
4187
4187
|
|
|
4188
|
-
var title$
|
|
4189
|
-
var subtitle = "Comple your purchase below";
|
|
4188
|
+
var title$4 = "Your shopping cart";
|
|
4189
|
+
var subtitle$2 = "Comple your purchase below";
|
|
4190
4190
|
var name = "Name";
|
|
4191
4191
|
var quantity = "Quantity";
|
|
4192
4192
|
var price = "Price";
|
|
@@ -4197,8 +4197,8 @@ var confirm$2 = "Checkout";
|
|
|
4197
4197
|
var empty = "Your cart is empty.";
|
|
4198
4198
|
var removeAll = "Remove all";
|
|
4199
4199
|
var cart_en = {
|
|
4200
|
-
title: title$
|
|
4201
|
-
subtitle: subtitle,
|
|
4200
|
+
title: title$4,
|
|
4201
|
+
subtitle: subtitle$2,
|
|
4202
4202
|
name: name,
|
|
4203
4203
|
quantity: quantity,
|
|
4204
4204
|
price: price,
|
|
@@ -4636,7 +4636,7 @@ var verifyEmail_fr = {
|
|
|
4636
4636
|
messages: messages
|
|
4637
4637
|
};
|
|
4638
4638
|
|
|
4639
|
-
var title$
|
|
4639
|
+
var title$3 = "Invoice details";
|
|
4640
4640
|
var labels$1 = {
|
|
4641
4641
|
summary: "Summary",
|
|
4642
4642
|
total: "Total",
|
|
@@ -4649,12 +4649,12 @@ var buttons$1 = {
|
|
|
4649
4649
|
pay: "Pay now"
|
|
4650
4650
|
};
|
|
4651
4651
|
var invoiceDetails_en = {
|
|
4652
|
-
title: title$
|
|
4652
|
+
title: title$3,
|
|
4653
4653
|
labels: labels$1,
|
|
4654
4654
|
buttons: buttons$1
|
|
4655
4655
|
};
|
|
4656
4656
|
|
|
4657
|
-
var title = "Invoice details";
|
|
4657
|
+
var title$2 = "Invoice details";
|
|
4658
4658
|
var labels = {
|
|
4659
4659
|
summary: "Summary",
|
|
4660
4660
|
total: "Total",
|
|
@@ -4667,11 +4667,37 @@ var buttons = {
|
|
|
4667
4667
|
pay: "Pay now"
|
|
4668
4668
|
};
|
|
4669
4669
|
var invoiceDetails_fr = {
|
|
4670
|
-
title: title,
|
|
4670
|
+
title: title$2,
|
|
4671
4671
|
labels: labels,
|
|
4672
4672
|
buttons: buttons
|
|
4673
4673
|
};
|
|
4674
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
|
+
|
|
4675
4701
|
function create$1(createState) {
|
|
4676
4702
|
let state;
|
|
4677
4703
|
const listeners = new Set();
|
|
@@ -6021,7 +6047,7 @@ class PelcroActions {
|
|
|
6021
6047
|
view,
|
|
6022
6048
|
cartItems,
|
|
6023
6049
|
...otherStateFields
|
|
6024
|
-
} = initialState$
|
|
6050
|
+
} = initialState$j;
|
|
6025
6051
|
this.set(otherStateFields);
|
|
6026
6052
|
});
|
|
6027
6053
|
|
|
@@ -6045,6 +6071,16 @@ class PelcroActions {
|
|
|
6045
6071
|
});
|
|
6046
6072
|
}
|
|
6047
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
|
+
|
|
6048
6084
|
this.set({
|
|
6049
6085
|
view
|
|
6050
6086
|
});
|
|
@@ -6119,6 +6155,26 @@ class PelcroActions {
|
|
|
6119
6155
|
}
|
|
6120
6156
|
});
|
|
6121
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
|
+
|
|
6122
6178
|
_defineProperty$3(this, "setProduct", id => {
|
|
6123
6179
|
const product = window.Pelcro.product.getById(id);
|
|
6124
6180
|
if (!product) return console.error("invalid product id");
|
|
@@ -6340,10 +6396,12 @@ class PelcroCallbacks {
|
|
|
6340
6396
|
|
|
6341
6397
|
}
|
|
6342
6398
|
|
|
6343
|
-
|
|
6399
|
+
var _window$Pelcro$produc, _window$Pelcro;
|
|
6400
|
+
const initialState$j = {
|
|
6344
6401
|
// View
|
|
6345
6402
|
view: null,
|
|
6346
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 : [],
|
|
6347
6405
|
product: null,
|
|
6348
6406
|
plan: null,
|
|
6349
6407
|
isGift: false,
|
|
@@ -6370,7 +6428,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6370
6428
|
return {
|
|
6371
6429
|
// Store setter
|
|
6372
6430
|
set,
|
|
6373
|
-
...initialState$
|
|
6431
|
+
...initialState$j,
|
|
6374
6432
|
// State actions
|
|
6375
6433
|
...actions,
|
|
6376
6434
|
// Callbacks
|
|
@@ -6725,6 +6783,28 @@ function userMustVerifyEmail() {
|
|
|
6725
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;
|
|
6726
6784
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6727
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
|
+
}
|
|
6728
6808
|
|
|
6729
6809
|
const resources = {
|
|
6730
6810
|
en: {
|
|
@@ -6749,7 +6829,8 @@ const resources = {
|
|
|
6749
6829
|
dashboard: dashboard_en,
|
|
6750
6830
|
select: select_en,
|
|
6751
6831
|
notification: notification_en,
|
|
6752
|
-
invoiceDetails: invoiceDetails_en
|
|
6832
|
+
invoiceDetails: invoiceDetails_en,
|
|
6833
|
+
subscriptionOptions: subscriptionOptions_en
|
|
6753
6834
|
},
|
|
6754
6835
|
fr: {
|
|
6755
6836
|
common: common_fr,
|
|
@@ -6773,7 +6854,8 @@ const resources = {
|
|
|
6773
6854
|
dashboard: dashboard_fr,
|
|
6774
6855
|
select: select_fr,
|
|
6775
6856
|
notification: notification_fr,
|
|
6776
|
-
invoiceDetails: invoiceDetails_fr
|
|
6857
|
+
invoiceDetails: invoiceDetails_fr,
|
|
6858
|
+
subscriptionOptions: subscriptionOptions_fr
|
|
6777
6859
|
}
|
|
6778
6860
|
}; // set UI language to the page language or default to the language in site settings
|
|
6779
6861
|
|
|
@@ -7064,8 +7146,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
7064
7146
|
|
|
7065
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}}
|
|
7066
7148
|
|
|
7067
|
-
function _extends$
|
|
7068
|
-
_extends$
|
|
7149
|
+
function _extends$A() {
|
|
7150
|
+
_extends$A = Object.assign || function (target) {
|
|
7069
7151
|
for (var i = 1; i < arguments.length; i++) {
|
|
7070
7152
|
var source = arguments[i];
|
|
7071
7153
|
|
|
@@ -7079,7 +7161,7 @@ function _extends$y() {
|
|
|
7079
7161
|
return target;
|
|
7080
7162
|
};
|
|
7081
7163
|
|
|
7082
|
-
return _extends$
|
|
7164
|
+
return _extends$A.apply(this, arguments);
|
|
7083
7165
|
}
|
|
7084
7166
|
|
|
7085
7167
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7169,7 +7251,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7169
7251
|
var reducer = function reducer(state, action) {
|
|
7170
7252
|
switch (action.type) {
|
|
7171
7253
|
case ActionType.ADD_TOAST:
|
|
7172
|
-
return _extends$
|
|
7254
|
+
return _extends$A({}, state, {
|
|
7173
7255
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7174
7256
|
});
|
|
7175
7257
|
|
|
@@ -7179,9 +7261,9 @@ var reducer = function reducer(state, action) {
|
|
|
7179
7261
|
clearFromRemoveQueue(action.toast.id);
|
|
7180
7262
|
}
|
|
7181
7263
|
|
|
7182
|
-
return _extends$
|
|
7264
|
+
return _extends$A({}, state, {
|
|
7183
7265
|
toasts: state.toasts.map(function (t) {
|
|
7184
|
-
return t.id === action.toast.id ? _extends$
|
|
7266
|
+
return t.id === action.toast.id ? _extends$A({}, t, action.toast) : t;
|
|
7185
7267
|
})
|
|
7186
7268
|
});
|
|
7187
7269
|
|
|
@@ -7208,9 +7290,9 @@ var reducer = function reducer(state, action) {
|
|
|
7208
7290
|
});
|
|
7209
7291
|
}
|
|
7210
7292
|
|
|
7211
|
-
return _extends$
|
|
7293
|
+
return _extends$A({}, state, {
|
|
7212
7294
|
toasts: state.toasts.map(function (t) {
|
|
7213
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7295
|
+
return t.id === toastId || toastId === undefined ? _extends$A({}, t, {
|
|
7214
7296
|
visible: false
|
|
7215
7297
|
}) : t;
|
|
7216
7298
|
})
|
|
@@ -7218,28 +7300,28 @@ var reducer = function reducer(state, action) {
|
|
|
7218
7300
|
|
|
7219
7301
|
case ActionType.REMOVE_TOAST:
|
|
7220
7302
|
if (action.toastId === undefined) {
|
|
7221
|
-
return _extends$
|
|
7303
|
+
return _extends$A({}, state, {
|
|
7222
7304
|
toasts: []
|
|
7223
7305
|
});
|
|
7224
7306
|
}
|
|
7225
7307
|
|
|
7226
|
-
return _extends$
|
|
7308
|
+
return _extends$A({}, state, {
|
|
7227
7309
|
toasts: state.toasts.filter(function (t) {
|
|
7228
7310
|
return t.id !== action.toastId;
|
|
7229
7311
|
})
|
|
7230
7312
|
});
|
|
7231
7313
|
|
|
7232
7314
|
case ActionType.START_PAUSE:
|
|
7233
|
-
return _extends$
|
|
7315
|
+
return _extends$A({}, state, {
|
|
7234
7316
|
pausedAt: action.time
|
|
7235
7317
|
});
|
|
7236
7318
|
|
|
7237
7319
|
case ActionType.END_PAUSE:
|
|
7238
7320
|
var diff = action.time - (state.pausedAt || 0);
|
|
7239
|
-
return _extends$
|
|
7321
|
+
return _extends$A({}, state, {
|
|
7240
7322
|
pausedAt: undefined,
|
|
7241
7323
|
toasts: state.toasts.map(function (t) {
|
|
7242
|
-
return _extends$
|
|
7324
|
+
return _extends$A({}, t, {
|
|
7243
7325
|
pauseDuration: t.pauseDuration + diff
|
|
7244
7326
|
});
|
|
7245
7327
|
})
|
|
@@ -7286,12 +7368,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7286
7368
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7287
7369
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7288
7370
|
|
|
7289
|
-
return _extends$
|
|
7371
|
+
return _extends$A({}, toastOptions, toastOptions[t.type], t, {
|
|
7290
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],
|
|
7291
|
-
style: _extends$
|
|
7373
|
+
style: _extends$A({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7292
7374
|
});
|
|
7293
7375
|
});
|
|
7294
|
-
return _extends$
|
|
7376
|
+
return _extends$A({}, state, {
|
|
7295
7377
|
toasts: mergedToasts
|
|
7296
7378
|
});
|
|
7297
7379
|
};
|
|
@@ -7301,7 +7383,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7301
7383
|
type = 'blank';
|
|
7302
7384
|
}
|
|
7303
7385
|
|
|
7304
|
-
return _extends$
|
|
7386
|
+
return _extends$A({
|
|
7305
7387
|
createdAt: Date.now(),
|
|
7306
7388
|
visible: true,
|
|
7307
7389
|
type: type,
|
|
@@ -7351,14 +7433,14 @@ toast.remove = function (toastId) {
|
|
|
7351
7433
|
};
|
|
7352
7434
|
|
|
7353
7435
|
toast.promise = function (promise, msgs, opts) {
|
|
7354
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7436
|
+
var id = toast.loading(msgs.loading, _extends$A({}, opts, opts == null ? void 0 : opts.loading));
|
|
7355
7437
|
promise.then(function (p) {
|
|
7356
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7438
|
+
toast.success(resolveValue(msgs.success, p), _extends$A({
|
|
7357
7439
|
id: id
|
|
7358
7440
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7359
7441
|
return p;
|
|
7360
7442
|
})["catch"](function (e) {
|
|
7361
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7443
|
+
toast.error(resolveValue(msgs.error, e), _extends$A({
|
|
7362
7444
|
id: id
|
|
7363
7445
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7364
7446
|
});
|
|
@@ -7697,7 +7779,7 @@ var ToastBar = /*#__PURE__*/memo(function (_ref2) {
|
|
|
7697
7779
|
var message = createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7698
7780
|
return createElement(ToastBarBase, {
|
|
7699
7781
|
className: toast.className,
|
|
7700
|
-
style: _extends$
|
|
7782
|
+
style: _extends$A({}, animationStyle, style, toast.style)
|
|
7701
7783
|
}, typeof children === 'function' ? children({
|
|
7702
7784
|
icon: icon,
|
|
7703
7785
|
message: message
|
|
@@ -7727,7 +7809,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7727
7809
|
} : position.includes('right') ? {
|
|
7728
7810
|
justifyContent: 'flex-end'
|
|
7729
7811
|
} : {};
|
|
7730
|
-
return _extends$
|
|
7812
|
+
return _extends$A({
|
|
7731
7813
|
left: 0,
|
|
7732
7814
|
right: 0,
|
|
7733
7815
|
display: 'flex',
|
|
@@ -7754,7 +7836,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7754
7836
|
handlers = _useToaster.handlers;
|
|
7755
7837
|
|
|
7756
7838
|
return createElement("div", {
|
|
7757
|
-
style: _extends$
|
|
7839
|
+
style: _extends$A({
|
|
7758
7840
|
position: 'fixed',
|
|
7759
7841
|
zIndex: 9999,
|
|
7760
7842
|
top: DEFAULT_OFFSET,
|
|
@@ -7789,82 +7871,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7789
7871
|
}));
|
|
7790
7872
|
};
|
|
7791
7873
|
|
|
7792
|
-
var _path$
|
|
7874
|
+
var _path$x;
|
|
7793
7875
|
|
|
7794
|
-
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); }
|
|
7795
7877
|
|
|
7796
7878
|
function SvgCheckSolid(props) {
|
|
7797
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7879
|
+
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
7798
7880
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7799
7881
|
className: "h-5 w-5",
|
|
7800
7882
|
viewBox: "0 0 20 20",
|
|
7801
7883
|
fill: "currentColor"
|
|
7802
|
-
}, props), _path$
|
|
7884
|
+
}, props), _path$x || (_path$x = /*#__PURE__*/React.createElement("path", {
|
|
7803
7885
|
fillRule: "evenodd",
|
|
7804
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",
|
|
7805
7887
|
clipRule: "evenodd"
|
|
7806
7888
|
})));
|
|
7807
7889
|
}
|
|
7808
7890
|
|
|
7809
|
-
var _path$
|
|
7891
|
+
var _path$w;
|
|
7810
7892
|
|
|
7811
|
-
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); }
|
|
7812
7894
|
|
|
7813
7895
|
function SvgXIcon(props) {
|
|
7814
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7896
|
+
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
7815
7897
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7816
7898
|
viewBox: "0 0 20 20",
|
|
7817
7899
|
fill: "currentColor"
|
|
7818
|
-
}, props), _path$
|
|
7900
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React.createElement("path", {
|
|
7819
7901
|
fill: "evenodd",
|
|
7820
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",
|
|
7821
7903
|
clipRule: "evenodd"
|
|
7822
7904
|
})));
|
|
7823
7905
|
}
|
|
7824
7906
|
|
|
7825
|
-
var _path$
|
|
7907
|
+
var _path$v;
|
|
7826
7908
|
|
|
7827
|
-
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); }
|
|
7828
7910
|
|
|
7829
7911
|
function SvgXIconSolid(props) {
|
|
7830
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7912
|
+
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
7831
7913
|
className: "plc-w-4 plc-h-4",
|
|
7832
7914
|
fill: "currentColor",
|
|
7833
7915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7834
7916
|
viewBox: "0 0 100 100"
|
|
7835
|
-
}, props), _path$
|
|
7917
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React.createElement("path", {
|
|
7836
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"
|
|
7837
7919
|
})));
|
|
7838
7920
|
}
|
|
7839
7921
|
|
|
7840
|
-
var _path$
|
|
7922
|
+
var _path$u;
|
|
7841
7923
|
|
|
7842
|
-
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); }
|
|
7843
7925
|
|
|
7844
7926
|
function SvgExclamation(props) {
|
|
7845
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7927
|
+
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
7846
7928
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7847
7929
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7848
7930
|
viewBox: "0 0 20 20",
|
|
7849
7931
|
fill: "currentColor"
|
|
7850
|
-
}, props), _path$
|
|
7932
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React.createElement("path", {
|
|
7851
7933
|
fillRule: "evenodd",
|
|
7852
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",
|
|
7853
7935
|
clipRule: "evenodd"
|
|
7854
7936
|
})));
|
|
7855
7937
|
}
|
|
7856
7938
|
|
|
7857
|
-
var _path$
|
|
7939
|
+
var _path$t, _path2$4;
|
|
7858
7940
|
|
|
7859
|
-
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); }
|
|
7860
7942
|
|
|
7861
7943
|
function SvgSpinner(props) {
|
|
7862
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
7944
|
+
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
7863
7945
|
className: "plc-animate-spin",
|
|
7864
7946
|
viewBox: "0 0 24 24",
|
|
7865
7947
|
fill: "currentColor",
|
|
7866
7948
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7867
|
-
}, props), _path$
|
|
7949
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React.createElement("path", {
|
|
7868
7950
|
opacity: 0.2,
|
|
7869
7951
|
fill: "evenodd",
|
|
7870
7952
|
clipRule: "evenodd",
|
|
@@ -8154,7 +8236,9 @@ const init$1 = () => {
|
|
|
8154
8236
|
return switchToAddressView();
|
|
8155
8237
|
});
|
|
8156
8238
|
} else {
|
|
8157
|
-
pelcroSubscribeButtonsByClass[j].addEventListener("click", () =>
|
|
8239
|
+
pelcroSubscribeButtonsByClass[j].addEventListener("click", () => {
|
|
8240
|
+
return switchView("subscription-options");
|
|
8241
|
+
});
|
|
8158
8242
|
}
|
|
8159
8243
|
}
|
|
8160
8244
|
}
|
|
@@ -8316,7 +8400,8 @@ function Link({
|
|
|
8316
8400
|
const init = () => {
|
|
8317
8401
|
const {
|
|
8318
8402
|
switchView,
|
|
8319
|
-
set
|
|
8403
|
+
set,
|
|
8404
|
+
setProductsList
|
|
8320
8405
|
} = usePelcro.getStore();
|
|
8321
8406
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
8322
8407
|
|
|
@@ -8367,7 +8452,8 @@ const init = () => {
|
|
|
8367
8452
|
}
|
|
8368
8453
|
|
|
8369
8454
|
notify.dismiss(NOTIFICATION_ID);
|
|
8370
|
-
|
|
8455
|
+
setProductsList(window.Pelcro.product.getByEntitlements(entitlements));
|
|
8456
|
+
switchView("plan-select");
|
|
8371
8457
|
}
|
|
8372
8458
|
}, "Subscribe"), "now to get full page access.")), {
|
|
8373
8459
|
className: "pelcro-notification-entitlement",
|
|
@@ -8922,8 +9008,7 @@ const initViewFromURL = () => {
|
|
|
8922
9008
|
}
|
|
8923
9009
|
|
|
8924
9010
|
if (view === "invoice-details") {
|
|
8925
|
-
|
|
8926
|
-
return false; // return showInvoiceDetailsFromUrl();
|
|
9011
|
+
return showInvoiceDetailsFromUrl();
|
|
8927
9012
|
}
|
|
8928
9013
|
|
|
8929
9014
|
switchView(view);
|
|
@@ -9102,6 +9187,43 @@ const verifyEmailTokenFromUrl = () => {
|
|
|
9102
9187
|
});
|
|
9103
9188
|
};
|
|
9104
9189
|
|
|
9190
|
+
const showInvoiceDetailsFromUrl = () => {
|
|
9191
|
+
const {
|
|
9192
|
+
isAuthenticated,
|
|
9193
|
+
setInvoice,
|
|
9194
|
+
whenSiteReady,
|
|
9195
|
+
switchView
|
|
9196
|
+
} = usePelcro.getStore();
|
|
9197
|
+
whenSiteReady(() => {
|
|
9198
|
+
if (!isAuthenticated()) {
|
|
9199
|
+
return switchView("login");
|
|
9200
|
+
}
|
|
9201
|
+
|
|
9202
|
+
const invoiceId = window.Pelcro.helpers.getURLParameter("id");
|
|
9203
|
+
const wasSetSuccessfully = setInvoice(invoiceId);
|
|
9204
|
+
|
|
9205
|
+
if (!wasSetSuccessfully) {
|
|
9206
|
+
const errorMessage = i18next.t("messages:invalidInvoice", {
|
|
9207
|
+
returnObjects: true
|
|
9208
|
+
});
|
|
9209
|
+
return notify.error(errorMessage);
|
|
9210
|
+
}
|
|
9211
|
+
|
|
9212
|
+
const {
|
|
9213
|
+
invoice
|
|
9214
|
+
} = usePelcro.getStore();
|
|
9215
|
+
|
|
9216
|
+
if (invoice.total === 0) {
|
|
9217
|
+
const errorMessage = i18next.t("messages:zeroTotalInvoice", {
|
|
9218
|
+
returnObjects: true
|
|
9219
|
+
});
|
|
9220
|
+
return notify.error(errorMessage);
|
|
9221
|
+
}
|
|
9222
|
+
|
|
9223
|
+
return switchView("invoice-details");
|
|
9224
|
+
});
|
|
9225
|
+
};
|
|
9226
|
+
|
|
9105
9227
|
const defaultOptions = {
|
|
9106
9228
|
loadPaymentSDKs: true,
|
|
9107
9229
|
loadAuth0SDK: true,
|
|
@@ -9159,7 +9281,7 @@ const PelcroModalController = ({
|
|
|
9159
9281
|
type
|
|
9160
9282
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default.Children.map(children, child => child).find(({
|
|
9161
9283
|
type
|
|
9162
|
-
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-
|
|
9284
|
+
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-renew" && React__default.Children.map(children, child => child).find(({
|
|
9163
9285
|
type
|
|
9164
9286
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default.Children.map(children, child => child).find(({
|
|
9165
9287
|
type
|
|
@@ -9440,8 +9562,10 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9440
9562
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9441
9563
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9442
9564
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9565
|
+
const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
|
|
9566
|
+
const SWITCH_TO_NEW = "SWITCH_TO_NEW";
|
|
9443
9567
|
|
|
9444
|
-
const initialState$
|
|
9568
|
+
const initialState$i = {
|
|
9445
9569
|
email: "",
|
|
9446
9570
|
password: "",
|
|
9447
9571
|
emailError: null,
|
|
@@ -9452,10 +9576,10 @@ const initialState$h = {
|
|
|
9452
9576
|
content: ""
|
|
9453
9577
|
}
|
|
9454
9578
|
};
|
|
9455
|
-
const store$
|
|
9579
|
+
const store$i = /*#__PURE__*/createContext(initialState$i);
|
|
9456
9580
|
const {
|
|
9457
|
-
Provider: Provider$
|
|
9458
|
-
} = store$
|
|
9581
|
+
Provider: Provider$i
|
|
9582
|
+
} = store$i;
|
|
9459
9583
|
|
|
9460
9584
|
const LoginContainer = ({
|
|
9461
9585
|
style,
|
|
@@ -9562,7 +9686,7 @@ const LoginContainer = ({
|
|
|
9562
9686
|
});
|
|
9563
9687
|
|
|
9564
9688
|
case RESET_LOGIN_FORM:
|
|
9565
|
-
return initialState$
|
|
9689
|
+
return initialState$i;
|
|
9566
9690
|
|
|
9567
9691
|
case DISABLE_LOGIN_BUTTON:
|
|
9568
9692
|
return lib_7({ ...state,
|
|
@@ -9580,12 +9704,12 @@ const LoginContainer = ({
|
|
|
9580
9704
|
default:
|
|
9581
9705
|
return state;
|
|
9582
9706
|
}
|
|
9583
|
-
}, initialState$
|
|
9707
|
+
}, initialState$i);
|
|
9584
9708
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
9585
9709
|
style: { ...style
|
|
9586
9710
|
},
|
|
9587
9711
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9588
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
9712
|
+
}, /*#__PURE__*/React__default.createElement(Provider$i, {
|
|
9589
9713
|
value: {
|
|
9590
9714
|
state,
|
|
9591
9715
|
dispatch
|
|
@@ -9593,12 +9717,12 @@ const LoginContainer = ({
|
|
|
9593
9717
|
}, children.length ? children.map((child, i) => {
|
|
9594
9718
|
if (child) {
|
|
9595
9719
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
9596
|
-
store: store$
|
|
9720
|
+
store: store$i,
|
|
9597
9721
|
key: i
|
|
9598
9722
|
});
|
|
9599
9723
|
}
|
|
9600
9724
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
9601
|
-
store: store$
|
|
9725
|
+
store: store$i
|
|
9602
9726
|
})));
|
|
9603
9727
|
};
|
|
9604
9728
|
|
|
@@ -9843,7 +9967,7 @@ const LoginButton = ({
|
|
|
9843
9967
|
buttonDisabled
|
|
9844
9968
|
},
|
|
9845
9969
|
dispatch
|
|
9846
|
-
} = useContext(store$
|
|
9970
|
+
} = useContext(store$i);
|
|
9847
9971
|
const {
|
|
9848
9972
|
t
|
|
9849
9973
|
} = useTranslation("login");
|
|
@@ -9864,23 +9988,23 @@ const LoginButton = ({
|
|
|
9864
9988
|
};
|
|
9865
9989
|
|
|
9866
9990
|
const LoginEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
9867
|
-
store: store$
|
|
9991
|
+
store: store$i
|
|
9868
9992
|
}, props));
|
|
9869
9993
|
|
|
9870
9994
|
const LoginPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
9871
|
-
store: store$
|
|
9995
|
+
store: store$i
|
|
9872
9996
|
}, props));
|
|
9873
9997
|
|
|
9874
|
-
var _path$
|
|
9998
|
+
var _path$s;
|
|
9875
9999
|
|
|
9876
|
-
function _extends$
|
|
10000
|
+
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); }
|
|
9877
10001
|
|
|
9878
10002
|
function SvgCheck(props) {
|
|
9879
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10003
|
+
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
9880
10004
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9881
10005
|
fill: "currentColor",
|
|
9882
10006
|
viewBox: "0 0 20 20"
|
|
9883
|
-
}, props), _path$
|
|
10007
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React.createElement("path", {
|
|
9884
10008
|
fillRule: "evenodd",
|
|
9885
10009
|
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",
|
|
9886
10010
|
clipRule: "evenodd"
|
|
@@ -9945,7 +10069,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
9945
10069
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
9946
10070
|
facebookLoginRenderProps.FacebookLogin;
|
|
9947
10071
|
|
|
9948
|
-
const initialState$
|
|
10072
|
+
const initialState$h = {
|
|
9949
10073
|
email: "",
|
|
9950
10074
|
password: "",
|
|
9951
10075
|
emailError: null,
|
|
@@ -9962,10 +10086,10 @@ const initialState$g = {
|
|
|
9962
10086
|
content: ""
|
|
9963
10087
|
}
|
|
9964
10088
|
};
|
|
9965
|
-
const store$
|
|
10089
|
+
const store$h = /*#__PURE__*/createContext(initialState$h);
|
|
9966
10090
|
const {
|
|
9967
|
-
Provider: Provider$
|
|
9968
|
-
} = store$
|
|
10091
|
+
Provider: Provider$h
|
|
10092
|
+
} = store$h;
|
|
9969
10093
|
|
|
9970
10094
|
const RegisterContainer = ({
|
|
9971
10095
|
style,
|
|
@@ -10148,7 +10272,7 @@ const RegisterContainer = ({
|
|
|
10148
10272
|
});
|
|
10149
10273
|
|
|
10150
10274
|
case RESET_LOGIN_FORM:
|
|
10151
|
-
return initialState$
|
|
10275
|
+
return initialState$h;
|
|
10152
10276
|
|
|
10153
10277
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10154
10278
|
return lib_7({ ...state,
|
|
@@ -10166,12 +10290,12 @@ const RegisterContainer = ({
|
|
|
10166
10290
|
default:
|
|
10167
10291
|
return state;
|
|
10168
10292
|
}
|
|
10169
|
-
}, initialState$
|
|
10293
|
+
}, initialState$h);
|
|
10170
10294
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
10171
10295
|
style: { ...style
|
|
10172
10296
|
},
|
|
10173
10297
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10174
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
10298
|
+
}, /*#__PURE__*/React__default.createElement(Provider$h, {
|
|
10175
10299
|
value: {
|
|
10176
10300
|
state,
|
|
10177
10301
|
dispatch
|
|
@@ -10179,12 +10303,12 @@ const RegisterContainer = ({
|
|
|
10179
10303
|
}, children.length ? children.map((child, i) => {
|
|
10180
10304
|
if (child) {
|
|
10181
10305
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
10182
|
-
store: store$
|
|
10306
|
+
store: store$h,
|
|
10183
10307
|
key: i
|
|
10184
10308
|
});
|
|
10185
10309
|
}
|
|
10186
10310
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
10187
|
-
store: store$
|
|
10311
|
+
store: store$h
|
|
10188
10312
|
})));
|
|
10189
10313
|
};
|
|
10190
10314
|
/**
|
|
@@ -10199,15 +10323,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
10199
10323
|
return hasSecuritySdkLoaded;
|
|
10200
10324
|
}
|
|
10201
10325
|
|
|
10202
|
-
var _path$
|
|
10326
|
+
var _path$r;
|
|
10203
10327
|
|
|
10204
|
-
function _extends$
|
|
10328
|
+
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); }
|
|
10205
10329
|
|
|
10206
10330
|
function SvgFacebookLogo(props) {
|
|
10207
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10331
|
+
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
10208
10332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10209
10333
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10210
|
-
}, props), _path$
|
|
10334
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React.createElement("path", {
|
|
10211
10335
|
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",
|
|
10212
10336
|
fill: "#3c5a9a"
|
|
10213
10337
|
})));
|
|
@@ -10224,10 +10348,10 @@ const FacebookLoginButton = ({
|
|
|
10224
10348
|
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;
|
|
10225
10349
|
const {
|
|
10226
10350
|
dispatch: loginDispatch
|
|
10227
|
-
} = useContext(store$
|
|
10351
|
+
} = useContext(store$i);
|
|
10228
10352
|
const {
|
|
10229
10353
|
dispatch: registerDispatch
|
|
10230
|
-
} = useContext(store$
|
|
10354
|
+
} = useContext(store$h);
|
|
10231
10355
|
|
|
10232
10356
|
const onSuccess = facebookUser => {
|
|
10233
10357
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10280,15 +10404,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10280
10404
|
unwrapExports(googleLogin);
|
|
10281
10405
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10282
10406
|
|
|
10283
|
-
var _path$
|
|
10407
|
+
var _path$q, _path2$3, _path3$1, _path4;
|
|
10284
10408
|
|
|
10285
|
-
function _extends$
|
|
10409
|
+
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); }
|
|
10286
10410
|
|
|
10287
10411
|
function SvgGoogleLogo(props) {
|
|
10288
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10412
|
+
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
10289
10413
|
viewBox: "0 0 24 24",
|
|
10290
10414
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10291
|
-
}, props), _path$
|
|
10415
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React.createElement("path", {
|
|
10292
10416
|
fill: "#4285F4",
|
|
10293
10417
|
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"
|
|
10294
10418
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React.createElement("path", {
|
|
@@ -10314,10 +10438,10 @@ const GoogleLoginButton = ({
|
|
|
10314
10438
|
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;
|
|
10315
10439
|
const {
|
|
10316
10440
|
dispatch: loginDispatch
|
|
10317
|
-
} = useContext(store$
|
|
10441
|
+
} = useContext(store$i);
|
|
10318
10442
|
const {
|
|
10319
10443
|
dispatch: registerDispatch
|
|
10320
|
-
} = useContext(store$
|
|
10444
|
+
} = useContext(store$h);
|
|
10321
10445
|
|
|
10322
10446
|
const onSuccess = response => {
|
|
10323
10447
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10365,15 +10489,15 @@ const GoogleLoginButton = ({
|
|
|
10365
10489
|
}) : null;
|
|
10366
10490
|
};
|
|
10367
10491
|
|
|
10368
|
-
var _path$
|
|
10492
|
+
var _path$p;
|
|
10369
10493
|
|
|
10370
|
-
function _extends$
|
|
10494
|
+
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); }
|
|
10371
10495
|
|
|
10372
10496
|
function SvgAuth0Logo(props) {
|
|
10373
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10497
|
+
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
10374
10498
|
viewBox: "0 0 256 285",
|
|
10375
10499
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10376
|
-
}, props), _path$
|
|
10500
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React.createElement("path", {
|
|
10377
10501
|
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"
|
|
10378
10502
|
})));
|
|
10379
10503
|
}
|
|
@@ -10413,10 +10537,10 @@ const Auth0LoginButton = ({
|
|
|
10413
10537
|
}, [auth0Enabled, auth0Loaded]);
|
|
10414
10538
|
const {
|
|
10415
10539
|
dispatch: loginDispatch
|
|
10416
|
-
} = useContext(store$
|
|
10540
|
+
} = useContext(store$i);
|
|
10417
10541
|
const {
|
|
10418
10542
|
dispatch: registerDispatch
|
|
10419
|
-
} = useContext(store$
|
|
10543
|
+
} = useContext(store$h);
|
|
10420
10544
|
|
|
10421
10545
|
function handleClick() {
|
|
10422
10546
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10549,15 +10673,15 @@ function LoginView(props) {
|
|
|
10549
10673
|
}, /*#__PURE__*/React__default.createElement(GoogleLoginButton, null), /*#__PURE__*/React__default.createElement(FacebookLoginButton, null), /*#__PURE__*/React__default.createElement(Auth0LoginButton, null))))));
|
|
10550
10674
|
}
|
|
10551
10675
|
|
|
10552
|
-
var _path$
|
|
10676
|
+
var _path$o, _path2$2, _path3;
|
|
10553
10677
|
|
|
10554
|
-
function _extends$
|
|
10678
|
+
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); }
|
|
10555
10679
|
|
|
10556
10680
|
function SvgPelcroAuthorship(props) {
|
|
10557
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
10681
|
+
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
10558
10682
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10559
10683
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10560
|
-
}, props), _path$
|
|
10684
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
10561
10685
|
fill: "none",
|
|
10562
10686
|
stroke: "#4a4a4a",
|
|
10563
10687
|
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"
|
|
@@ -10704,11 +10828,11 @@ function LoginModal({
|
|
|
10704
10828
|
LoginModal.viewId = "login";
|
|
10705
10829
|
|
|
10706
10830
|
const RegisterEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
10707
|
-
store: store$
|
|
10831
|
+
store: store$h
|
|
10708
10832
|
}, props));
|
|
10709
10833
|
|
|
10710
10834
|
const RegisterPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
10711
|
-
store: store$
|
|
10835
|
+
store: store$h
|
|
10712
10836
|
}, props));
|
|
10713
10837
|
|
|
10714
10838
|
const RegisterButton = ({
|
|
@@ -10728,7 +10852,7 @@ const RegisterButton = ({
|
|
|
10728
10852
|
buttonDisabled
|
|
10729
10853
|
},
|
|
10730
10854
|
dispatch
|
|
10731
|
-
} = useContext(store$
|
|
10855
|
+
} = useContext(store$h);
|
|
10732
10856
|
const {
|
|
10733
10857
|
t
|
|
10734
10858
|
} = useTranslation("register");
|
|
@@ -10866,7 +10990,7 @@ function FirstName({
|
|
|
10866
10990
|
}
|
|
10867
10991
|
|
|
10868
10992
|
const RegisterFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
10869
|
-
store: store$
|
|
10993
|
+
store: store$h
|
|
10870
10994
|
}, props));
|
|
10871
10995
|
|
|
10872
10996
|
function LastName({
|
|
@@ -10897,7 +11021,7 @@ function LastName({
|
|
|
10897
11021
|
}
|
|
10898
11022
|
|
|
10899
11023
|
const RegisterLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
10900
|
-
store: store$
|
|
11024
|
+
store: store$h
|
|
10901
11025
|
}, props));
|
|
10902
11026
|
|
|
10903
11027
|
/**
|
|
@@ -11021,7 +11145,7 @@ function TextInput({
|
|
|
11021
11145
|
|
|
11022
11146
|
const RegisterTextInput = props => {
|
|
11023
11147
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
11024
|
-
store: store$
|
|
11148
|
+
store: store$h
|
|
11025
11149
|
}));
|
|
11026
11150
|
};
|
|
11027
11151
|
|
|
@@ -11168,6 +11292,7 @@ function SelectModalWithHook(props) {
|
|
|
11168
11292
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
11169
11293
|
}, []);
|
|
11170
11294
|
const {
|
|
11295
|
+
productsList,
|
|
11171
11296
|
isGift,
|
|
11172
11297
|
plan,
|
|
11173
11298
|
product,
|
|
@@ -11177,11 +11302,12 @@ function SelectModalWithHook(props) {
|
|
|
11177
11302
|
view,
|
|
11178
11303
|
set
|
|
11179
11304
|
} = usePelcro();
|
|
11180
|
-
const
|
|
11181
|
-
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
11305
|
+
const isRenewingSub = view === "_plan-select-renew";
|
|
11182
11306
|
return /*#__PURE__*/React__default.createElement(SelectModalWithTrans, {
|
|
11307
|
+
productsList: productsList,
|
|
11183
11308
|
isGift: isGift,
|
|
11184
|
-
disableGifting: isRenewingGift,
|
|
11309
|
+
disableGifting: isRenewingGift || isRenewingSub,
|
|
11310
|
+
isRenewingSub: isRenewingSub,
|
|
11185
11311
|
plan: plan,
|
|
11186
11312
|
product: product,
|
|
11187
11313
|
onClose: () => {
|
|
@@ -11195,8 +11321,10 @@ function SelectModalWithHook(props) {
|
|
|
11195
11321
|
plan,
|
|
11196
11322
|
isGift
|
|
11197
11323
|
}),
|
|
11198
|
-
|
|
11199
|
-
|
|
11324
|
+
setSubscriptionIdToRenew: subscriptionIdToRenew => set({
|
|
11325
|
+
subscriptionIdToRenew
|
|
11326
|
+
}),
|
|
11327
|
+
setView: switchView
|
|
11200
11328
|
});
|
|
11201
11329
|
}
|
|
11202
11330
|
SelectModalWithHook.viewId = "plan-select";
|
|
@@ -11228,10 +11356,10 @@ class SelectModal extends Component {
|
|
|
11228
11356
|
});
|
|
11229
11357
|
}
|
|
11230
11358
|
|
|
11231
|
-
if (this.
|
|
11359
|
+
if (this.props.productsList.length === 1) {
|
|
11232
11360
|
this.setState({
|
|
11233
|
-
product: this.
|
|
11234
|
-
planList: this.
|
|
11361
|
+
product: this.props.productsList[0],
|
|
11362
|
+
planList: this.props.productsList[0].plans,
|
|
11235
11363
|
mode: "plan"
|
|
11236
11364
|
});
|
|
11237
11365
|
}
|
|
@@ -11248,7 +11376,7 @@ class SelectModal extends Component {
|
|
|
11248
11376
|
});
|
|
11249
11377
|
|
|
11250
11378
|
_defineProperty$3(this, "onProductChange", e => {
|
|
11251
|
-
const product =
|
|
11379
|
+
const product = productsList[e.target.selectedIndex];
|
|
11252
11380
|
this.setState({
|
|
11253
11381
|
product: product,
|
|
11254
11382
|
plan: product.plans[0]
|
|
@@ -11314,7 +11442,7 @@ class SelectModal extends Component {
|
|
|
11314
11442
|
|
|
11315
11443
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11316
11444
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11317
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.
|
|
11445
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.props.productsList;
|
|
11318
11446
|
return productsToShow.map((product, index) => {
|
|
11319
11447
|
return this.renderOneProduct(product, index);
|
|
11320
11448
|
});
|
|
@@ -11327,7 +11455,7 @@ class SelectModal extends Component {
|
|
|
11327
11455
|
return this.renderOneProduct(this.state.product);
|
|
11328
11456
|
}
|
|
11329
11457
|
|
|
11330
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11458
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(this.props.productsList); // Render normal products if there are no available matching products
|
|
11331
11459
|
|
|
11332
11460
|
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11333
11461
|
return this.renderProducts();
|
|
@@ -11343,10 +11471,7 @@ class SelectModal extends Component {
|
|
|
11343
11471
|
className: "plc-text-sm plc-font-semibold"
|
|
11344
11472
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11345
11473
|
|
|
11346
|
-
function productsWithMatchedTaggedFirst() {
|
|
11347
|
-
var _window$Pelcro$produc;
|
|
11348
|
-
|
|
11349
|
-
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11474
|
+
function productsWithMatchedTaggedFirst(allProducts) {
|
|
11350
11475
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11351
11476
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11352
11477
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
@@ -11380,7 +11505,7 @@ class SelectModal extends Component {
|
|
|
11380
11505
|
_defineProperty$3(this, "selectProduct", e => {
|
|
11381
11506
|
const id = e.target.dataset.key;
|
|
11382
11507
|
|
|
11383
|
-
for (const product of this.
|
|
11508
|
+
for (const product of this.props.productsList) {
|
|
11384
11509
|
if (+product.id === +id) {
|
|
11385
11510
|
var _this$state$plan;
|
|
11386
11511
|
|
|
@@ -11433,6 +11558,14 @@ class SelectModal extends Component {
|
|
|
11433
11558
|
|
|
11434
11559
|
_defineProperty$3(this, "submitOption", () => {
|
|
11435
11560
|
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
11561
|
+
|
|
11562
|
+
if (this.props.isRenewingSub) {
|
|
11563
|
+
var _matchingSub$id;
|
|
11564
|
+
|
|
11565
|
+
const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
11566
|
+
this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
|
|
11567
|
+
}
|
|
11568
|
+
|
|
11436
11569
|
const {
|
|
11437
11570
|
product,
|
|
11438
11571
|
isGift
|
|
@@ -11470,8 +11603,7 @@ class SelectModal extends Component {
|
|
|
11470
11603
|
plan: {},
|
|
11471
11604
|
isGift: props.isGift,
|
|
11472
11605
|
disabled: true,
|
|
11473
|
-
mode: "product"
|
|
11474
|
-
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
11606
|
+
mode: "product"
|
|
11475
11607
|
};
|
|
11476
11608
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
11477
11609
|
this.locale = this.props.t;
|
|
@@ -11479,7 +11611,7 @@ class SelectModal extends Component {
|
|
|
11479
11611
|
}
|
|
11480
11612
|
|
|
11481
11613
|
render() {
|
|
11482
|
-
var
|
|
11614
|
+
var _this$props$productsL, _this$props$productsL2, _window$Pelcro$site$r;
|
|
11483
11615
|
|
|
11484
11616
|
const {
|
|
11485
11617
|
disableGifting
|
|
@@ -11513,7 +11645,7 @@ class SelectModal extends Component {
|
|
|
11513
11645
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11514
11646
|
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
11515
11647
|
className: "plc-text-2xl plc-font-semibold"
|
|
11516
|
-
}, this.product && this.product.paywall.select_title || ((
|
|
11648
|
+
}, 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", {
|
|
11517
11649
|
className: "pelcro-select-products-wrapper"
|
|
11518
11650
|
}, (_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", {
|
|
11519
11651
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
@@ -13073,6 +13205,12 @@ var _paymentGateway3 = /*#__PURE__*/new WeakMap();
|
|
|
13073
13205
|
|
|
13074
13206
|
var _createSubscription3 = /*#__PURE__*/new WeakMap();
|
|
13075
13207
|
|
|
13208
|
+
var _renewSubscription2 = /*#__PURE__*/new WeakMap();
|
|
13209
|
+
|
|
13210
|
+
var _createGiftedSubscription3 = /*#__PURE__*/new WeakMap();
|
|
13211
|
+
|
|
13212
|
+
var _renewGiftedSubscription2 = /*#__PURE__*/new WeakMap();
|
|
13213
|
+
|
|
13076
13214
|
class VantivGateway {
|
|
13077
13215
|
constructor() {
|
|
13078
13216
|
_paymentGateway3.set(this, {
|
|
@@ -13087,6 +13225,18 @@ class VantivGateway {
|
|
|
13087
13225
|
case types.CREATE_SUBSCRIPTION:
|
|
13088
13226
|
return _classPrivateFieldGet(this, _createSubscription3).call(this, options, callback);
|
|
13089
13227
|
|
|
13228
|
+
case types.RENEW_SUBSCRIPTION:
|
|
13229
|
+
return _classPrivateFieldGet(this, _renewSubscription2).call(this, options, callback);
|
|
13230
|
+
|
|
13231
|
+
case types.CREATE_GIFTED_SUBSCRIPTION:
|
|
13232
|
+
return _classPrivateFieldGet(this, _createGiftedSubscription3).call(this, options, callback);
|
|
13233
|
+
|
|
13234
|
+
case types.RENEW_GIFTED_SUBSCRIPTION:
|
|
13235
|
+
return _classPrivateFieldGet(this, _renewGiftedSubscription2).call(this, options, callback);
|
|
13236
|
+
// TODO: implement paying invoices as well
|
|
13237
|
+
// case types.PAY_INVOICE:
|
|
13238
|
+
// return this.#payInvoice(options, callback);
|
|
13239
|
+
|
|
13090
13240
|
default:
|
|
13091
13241
|
console.error("Unsupported subscriptiion method: vantiv Gateway");
|
|
13092
13242
|
}
|
|
@@ -13101,46 +13251,151 @@ class VantivGateway {
|
|
|
13101
13251
|
couponCode,
|
|
13102
13252
|
product,
|
|
13103
13253
|
quantity = 1,
|
|
13104
|
-
addressId
|
|
13254
|
+
addressId,
|
|
13255
|
+
isExistingSource
|
|
13105
13256
|
} = options;
|
|
13257
|
+
const params = isExistingSource ? {
|
|
13258
|
+
source_id: token
|
|
13259
|
+
} : {
|
|
13260
|
+
payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
|
|
13261
|
+
gateway_token: token
|
|
13262
|
+
};
|
|
13106
13263
|
window.Pelcro.subscription.create({
|
|
13107
13264
|
quantity,
|
|
13108
|
-
gateway_token: token,
|
|
13109
|
-
payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
|
|
13110
13265
|
auth_token: window.Pelcro.user.read().auth_token,
|
|
13111
13266
|
plan_id: plan.id,
|
|
13112
13267
|
coupon_code: couponCode,
|
|
13113
|
-
address_id: product.address_required ? addressId : null
|
|
13268
|
+
address_id: product.address_required ? addressId : null,
|
|
13269
|
+
...params
|
|
13114
13270
|
}, (err, res) => {
|
|
13115
13271
|
callback(err, res);
|
|
13116
13272
|
});
|
|
13117
13273
|
}
|
|
13118
13274
|
});
|
|
13119
|
-
}
|
|
13120
|
-
|
|
13121
|
-
}
|
|
13122
13275
|
|
|
13123
|
-
|
|
13124
|
-
|
|
13125
|
-
|
|
13126
|
-
|
|
13127
|
-
|
|
13128
|
-
|
|
13129
|
-
|
|
13130
|
-
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
|
|
13134
|
-
|
|
13135
|
-
|
|
13136
|
-
|
|
13137
|
-
|
|
13138
|
-
|
|
13139
|
-
|
|
13276
|
+
_renewSubscription2.set(this, {
|
|
13277
|
+
writable: true,
|
|
13278
|
+
value: (options, callback) => {
|
|
13279
|
+
const {
|
|
13280
|
+
subscriptionIdToRenew,
|
|
13281
|
+
token,
|
|
13282
|
+
plan,
|
|
13283
|
+
couponCode,
|
|
13284
|
+
product,
|
|
13285
|
+
addressId,
|
|
13286
|
+
isExistingSource
|
|
13287
|
+
} = options;
|
|
13288
|
+
const params = isExistingSource ? {
|
|
13289
|
+
source_id: token
|
|
13290
|
+
} : {
|
|
13291
|
+
payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
|
|
13292
|
+
gateway_token: token
|
|
13293
|
+
};
|
|
13294
|
+
window.Pelcro.subscription.renew({
|
|
13295
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
13296
|
+
plan_id: plan.id,
|
|
13297
|
+
coupon_code: couponCode,
|
|
13298
|
+
subscription_id: subscriptionIdToRenew,
|
|
13299
|
+
address_id: product.address_required ? addressId : null,
|
|
13300
|
+
...params
|
|
13301
|
+
}, (err, res) => {
|
|
13302
|
+
callback(err, res);
|
|
13303
|
+
});
|
|
13304
|
+
}
|
|
13305
|
+
});
|
|
13306
|
+
|
|
13307
|
+
_createGiftedSubscription3.set(this, {
|
|
13308
|
+
writable: true,
|
|
13309
|
+
value: (options, callback) => {
|
|
13310
|
+
const {
|
|
13311
|
+
token,
|
|
13312
|
+
plan,
|
|
13313
|
+
couponCode,
|
|
13314
|
+
product,
|
|
13315
|
+
giftRecipient,
|
|
13316
|
+
quantity = 1,
|
|
13317
|
+
addressId,
|
|
13318
|
+
isExistingSource
|
|
13319
|
+
} = options;
|
|
13320
|
+
const params = isExistingSource ? {
|
|
13321
|
+
source_id: token
|
|
13322
|
+
} : {
|
|
13323
|
+
payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
|
|
13324
|
+
gateway_token: token
|
|
13325
|
+
};
|
|
13326
|
+
window.Pelcro.subscription.create({
|
|
13327
|
+
quantity,
|
|
13328
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
13329
|
+
plan_id: plan.id,
|
|
13330
|
+
coupon_code: couponCode,
|
|
13331
|
+
gift_recipient_email: giftRecipient.email,
|
|
13332
|
+
gift_recipient_first_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.firstName,
|
|
13333
|
+
gift_recipient_last_name: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.lastName,
|
|
13334
|
+
gift_start_date: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.startDate,
|
|
13335
|
+
gift_message: giftRecipient === null || giftRecipient === void 0 ? void 0 : giftRecipient.giftMessage,
|
|
13336
|
+
address_id: product.address_required ? addressId : null,
|
|
13337
|
+
...params
|
|
13338
|
+
}, (err, res) => {
|
|
13339
|
+
callback(err, res);
|
|
13340
|
+
});
|
|
13341
|
+
}
|
|
13342
|
+
});
|
|
13343
|
+
|
|
13344
|
+
_renewGiftedSubscription2.set(this, {
|
|
13345
|
+
writable: true,
|
|
13346
|
+
value: (options, callback) => {
|
|
13347
|
+
const {
|
|
13348
|
+
subscriptionIdToRenew,
|
|
13349
|
+
token,
|
|
13350
|
+
product,
|
|
13351
|
+
plan,
|
|
13352
|
+
couponCode,
|
|
13353
|
+
addressId,
|
|
13354
|
+
isExistingSource
|
|
13355
|
+
} = options;
|
|
13356
|
+
const params = isExistingSource ? {
|
|
13357
|
+
source_id: token
|
|
13358
|
+
} : {
|
|
13359
|
+
payment_gateway: _classPrivateFieldGet(this, _paymentGateway3),
|
|
13360
|
+
gateway_token: token
|
|
13361
|
+
};
|
|
13362
|
+
window.Pelcro.subscription.renewGift({
|
|
13363
|
+
auth_token: window.Pelcro.user.read().auth_token,
|
|
13364
|
+
plan_id: plan.id,
|
|
13365
|
+
coupon_code: couponCode,
|
|
13366
|
+
subscription_id: subscriptionIdToRenew,
|
|
13367
|
+
address_id: product.address_required ? addressId : null,
|
|
13368
|
+
...params
|
|
13369
|
+
}, (err, res) => {
|
|
13370
|
+
callback(err, res);
|
|
13371
|
+
});
|
|
13372
|
+
}
|
|
13373
|
+
});
|
|
13374
|
+
}
|
|
13375
|
+
|
|
13376
|
+
}
|
|
13377
|
+
|
|
13378
|
+
/**
|
|
13379
|
+
* @typedef {Object} PaymentStateType
|
|
13380
|
+
* @property {boolean} disableSubmit
|
|
13381
|
+
* @property {boolean} isLoading
|
|
13382
|
+
* @property {boolean} disableCouponButton
|
|
13383
|
+
* @property {object} couponObject
|
|
13384
|
+
* @property {string} couponCode
|
|
13385
|
+
* @property {string} couponError
|
|
13386
|
+
* @property {boolean} enableCouponField
|
|
13387
|
+
* @property {string} percentOff
|
|
13388
|
+
* @property {unknown} canMakePayment
|
|
13389
|
+
* @property {unknown} paymentRequest
|
|
13390
|
+
* @property {number} updatedPrice
|
|
13391
|
+
* @property {number} taxAmount
|
|
13392
|
+
* @property {object} currentPlan
|
|
13393
|
+
* @property {object} alert
|
|
13394
|
+
*/
|
|
13140
13395
|
|
|
13141
13396
|
/** @type {PaymentStateType} */
|
|
13142
13397
|
|
|
13143
|
-
const initialState$
|
|
13398
|
+
const initialState$g = {
|
|
13144
13399
|
disableSubmit: false,
|
|
13145
13400
|
isLoading: false,
|
|
13146
13401
|
disableCouponButton: false,
|
|
@@ -13159,10 +13414,10 @@ const initialState$f = {
|
|
|
13159
13414
|
content: ""
|
|
13160
13415
|
}
|
|
13161
13416
|
};
|
|
13162
|
-
const store$
|
|
13417
|
+
const store$g = /*#__PURE__*/createContext(initialState$g);
|
|
13163
13418
|
const {
|
|
13164
|
-
Provider: Provider$
|
|
13165
|
-
} = store$
|
|
13419
|
+
Provider: Provider$g
|
|
13420
|
+
} = store$g;
|
|
13166
13421
|
|
|
13167
13422
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13168
13423
|
style,
|
|
@@ -13175,7 +13430,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13175
13430
|
onFailure = () => {},
|
|
13176
13431
|
...props
|
|
13177
13432
|
}) => {
|
|
13178
|
-
var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isRenewingGift, _props$invoice;
|
|
13433
|
+
var _props$product, _props$plan, _props$subscriptionId, _props$selectedAddres, _props$giftRecipient, _props$isGift, _props$isRenewingGift, _props$invoice;
|
|
13179
13434
|
|
|
13180
13435
|
const {
|
|
13181
13436
|
t
|
|
@@ -13191,6 +13446,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13191
13446
|
const subscriptionIdToRenew = (_props$subscriptionId = props.subscriptionIdToRenew) !== null && _props$subscriptionId !== void 0 ? _props$subscriptionId : pelcroStore.subscriptionIdToRenew;
|
|
13192
13447
|
const selectedAddressId = (_props$selectedAddres = props.selectedAddressId) !== null && _props$selectedAddres !== void 0 ? _props$selectedAddres : pelcroStore.selectedAddressId;
|
|
13193
13448
|
const giftRecipient = (_props$giftRecipient = props.giftRecipient) !== null && _props$giftRecipient !== void 0 ? _props$giftRecipient : pelcroStore.giftRecipient;
|
|
13449
|
+
const isGift = (_props$isGift = props.isGift) !== null && _props$isGift !== void 0 ? _props$isGift : pelcroStore.isGift;
|
|
13194
13450
|
const isRenewingGift = (_props$isRenewingGift = props.isRenewingGift) !== null && _props$isRenewingGift !== void 0 ? _props$isRenewingGift : pelcroStore.isRenewingGift;
|
|
13195
13451
|
const invoice = (_props$invoice = props.invoice) !== null && _props$invoice !== void 0 ? _props$invoice : pelcroStore.invoice;
|
|
13196
13452
|
useEffect(() => {
|
|
@@ -13208,53 +13464,134 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13208
13464
|
}, []);
|
|
13209
13465
|
|
|
13210
13466
|
function submitVantivPayment() {
|
|
13211
|
-
if (!
|
|
13212
|
-
|
|
13213
|
-
|
|
13467
|
+
if (!selectedPaymentMethodId) {
|
|
13468
|
+
if (!vantivInstanceRef.current) {
|
|
13469
|
+
return console.error("Vantiv sdk script wasn't loaded, you need to load vantiv sdk before rendering the vantiv payment flow");
|
|
13470
|
+
}
|
|
13214
13471
|
|
|
13215
|
-
|
|
13472
|
+
const orderId = `pelcro-${new Date().getTime()}`; // calls handleVantivPayment
|
|
13216
13473
|
|
|
13217
|
-
|
|
13218
|
-
|
|
13219
|
-
|
|
13220
|
-
|
|
13474
|
+
vantivInstanceRef.current.getPaypageRegistrationId({
|
|
13475
|
+
id: orderId,
|
|
13476
|
+
orderId: orderId
|
|
13477
|
+
});
|
|
13478
|
+
} else {
|
|
13479
|
+
handleVantivPayment(null);
|
|
13480
|
+
}
|
|
13221
13481
|
}
|
|
13222
13482
|
|
|
13223
13483
|
function handleVantivPayment(paymentRequest) {
|
|
13224
|
-
|
|
13484
|
+
if (paymentRequest) {
|
|
13485
|
+
const SUCCESS_STATUS = "870";
|
|
13225
13486
|
|
|
13226
|
-
|
|
13227
|
-
|
|
13228
|
-
|
|
13229
|
-
|
|
13487
|
+
if (paymentRequest.response !== SUCCESS_STATUS) {
|
|
13488
|
+
return handlePaymentError({
|
|
13489
|
+
error: new Error(paymentRequest.message)
|
|
13490
|
+
});
|
|
13491
|
+
}
|
|
13230
13492
|
}
|
|
13231
13493
|
|
|
13232
13494
|
const subscription = new Subscription(new VantivGateway());
|
|
13233
|
-
const {
|
|
13234
|
-
couponCode
|
|
13235
|
-
} = state;
|
|
13236
|
-
return subscription.execute({
|
|
13237
|
-
type: SUBSCRIPTION_TYPES.CREATE_SUBSCRIPTION,
|
|
13238
|
-
token: paymentRequest,
|
|
13239
|
-
quantity: plan.quantity,
|
|
13240
|
-
plan,
|
|
13241
|
-
couponCode,
|
|
13242
|
-
product,
|
|
13243
|
-
addressId: selectedAddressId
|
|
13244
|
-
}, (err, res) => {
|
|
13245
|
-
if (err) {
|
|
13246
|
-
return handlePaymentError(err);
|
|
13247
|
-
}
|
|
13248
13495
|
|
|
13249
|
-
|
|
13250
|
-
|
|
13496
|
+
if (type === "createPayment") {
|
|
13497
|
+
handleVantivSubscription();
|
|
13498
|
+
} // TODO: handle other types of payments
|
|
13499
|
+
// } else if (type === "orderCreate") {
|
|
13500
|
+
// purchase(stripeSource, state, dispatch);
|
|
13501
|
+
// } else if (type === "invoicePayment") {
|
|
13502
|
+
// payInvoice(new StripeGateway(), stripeSource.id, dispatch);
|
|
13503
|
+
// }
|
|
13504
|
+
|
|
13505
|
+
|
|
13506
|
+
function handleVantivSubscription() {
|
|
13507
|
+
const createSubscription = !isGift && !subscriptionIdToRenew;
|
|
13508
|
+
const renewSubscription = !isGift && subscriptionIdToRenew;
|
|
13509
|
+
const giftSubscriprition = isGift && !subscriptionIdToRenew;
|
|
13510
|
+
const renewGift = isRenewingGift;
|
|
13511
|
+
const {
|
|
13512
|
+
couponCode
|
|
13513
|
+
} = state;
|
|
13514
|
+
const isUsingExistingPaymentMethod = Boolean(selectedPaymentMethodId);
|
|
13515
|
+
|
|
13516
|
+
if (renewGift) {
|
|
13517
|
+
return subscription.execute({
|
|
13518
|
+
type: SUBSCRIPTION_TYPES.RENEW_GIFTED_SUBSCRIPTION,
|
|
13519
|
+
token: isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest,
|
|
13520
|
+
plan,
|
|
13521
|
+
couponCode,
|
|
13522
|
+
product,
|
|
13523
|
+
isExistingSource: isUsingExistingPaymentMethod,
|
|
13524
|
+
subscriptionIdToRenew,
|
|
13525
|
+
addressId: selectedAddressId
|
|
13526
|
+
}, (err, res) => {
|
|
13527
|
+
if (err) {
|
|
13528
|
+
return handlePaymentError(err);
|
|
13529
|
+
}
|
|
13530
|
+
|
|
13531
|
+
onSuccess(res);
|
|
13532
|
+
});
|
|
13533
|
+
} else if (giftSubscriprition) {
|
|
13534
|
+
return subscription.execute({
|
|
13535
|
+
type: SUBSCRIPTION_TYPES.CREATE_GIFTED_SUBSCRIPTION,
|
|
13536
|
+
token: isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest,
|
|
13537
|
+
quantity: plan.quantity,
|
|
13538
|
+
plan,
|
|
13539
|
+
couponCode,
|
|
13540
|
+
product,
|
|
13541
|
+
isExistingSource: isUsingExistingPaymentMethod,
|
|
13542
|
+
giftRecipient,
|
|
13543
|
+
addressId: selectedAddressId
|
|
13544
|
+
}, (err, res) => {
|
|
13545
|
+
if (err) {
|
|
13546
|
+
return handlePaymentError(err);
|
|
13547
|
+
}
|
|
13548
|
+
|
|
13549
|
+
onSuccess(res);
|
|
13550
|
+
});
|
|
13551
|
+
} else if (renewSubscription) {
|
|
13552
|
+
return subscription.execute({
|
|
13553
|
+
type: SUBSCRIPTION_TYPES.RENEW_SUBSCRIPTION,
|
|
13554
|
+
token: isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest,
|
|
13555
|
+
quantity: plan.quantity,
|
|
13556
|
+
plan,
|
|
13557
|
+
couponCode,
|
|
13558
|
+
product,
|
|
13559
|
+
isExistingSource: isUsingExistingPaymentMethod,
|
|
13560
|
+
subscriptionIdToRenew,
|
|
13561
|
+
addressId: selectedAddressId
|
|
13562
|
+
}, (err, res) => {
|
|
13563
|
+
if (err) {
|
|
13564
|
+
return handlePaymentError(err);
|
|
13565
|
+
}
|
|
13566
|
+
|
|
13567
|
+
onSuccess(res);
|
|
13568
|
+
});
|
|
13569
|
+
} else if (createSubscription) {
|
|
13570
|
+
return subscription.execute({
|
|
13571
|
+
type: SUBSCRIPTION_TYPES.CREATE_SUBSCRIPTION,
|
|
13572
|
+
token: isUsingExistingPaymentMethod ? selectedPaymentMethodId : paymentRequest,
|
|
13573
|
+
quantity: plan.quantity,
|
|
13574
|
+
plan,
|
|
13575
|
+
couponCode,
|
|
13576
|
+
product,
|
|
13577
|
+
isExistingSource: isUsingExistingPaymentMethod,
|
|
13578
|
+
addressId: selectedAddressId
|
|
13579
|
+
}, (err, res) => {
|
|
13580
|
+
if (err) {
|
|
13581
|
+
return handlePaymentError(err);
|
|
13582
|
+
}
|
|
13583
|
+
|
|
13584
|
+
onSuccess(res);
|
|
13585
|
+
});
|
|
13586
|
+
}
|
|
13587
|
+
}
|
|
13251
13588
|
}
|
|
13252
13589
|
|
|
13253
13590
|
const vantivInstanceRef = React__default.useRef(null);
|
|
13254
13591
|
useEffect(() => {
|
|
13255
13592
|
const cardProcessor = getSiteCardProcessor();
|
|
13256
13593
|
|
|
13257
|
-
if (cardProcessor === "vantiv") {
|
|
13594
|
+
if (cardProcessor === "vantiv" && !selectedPaymentMethodId) {
|
|
13258
13595
|
var _window$Pelcro$site$r;
|
|
13259
13596
|
|
|
13260
13597
|
const payPageId = (_window$Pelcro$site$r = window.Pelcro.site.read()) === null || _window$Pelcro$site$r === void 0 ? void 0 : _window$Pelcro$site$r.vantiv_pay_page_id;
|
|
@@ -13277,7 +13614,7 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
13277
13614
|
}
|
|
13278
13615
|
});
|
|
13279
13616
|
}
|
|
13280
|
-
}, []);
|
|
13617
|
+
}, [selectedPaymentMethodId]);
|
|
13281
13618
|
|
|
13282
13619
|
const initPaymentRequest = (state, dispatch) => {
|
|
13283
13620
|
try {
|
|
@@ -14196,6 +14533,10 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14196
14533
|
disableSubmit: true,
|
|
14197
14534
|
isLoading: true
|
|
14198
14535
|
}, (state, dispatch) => {
|
|
14536
|
+
if (getSiteCardProcessor() === "vantiv") {
|
|
14537
|
+
return submitVantivPayment();
|
|
14538
|
+
}
|
|
14539
|
+
|
|
14199
14540
|
if (selectedPaymentMethodId) {
|
|
14200
14541
|
// pay with selected method (source) if exists already
|
|
14201
14542
|
return handlePayment({
|
|
@@ -14208,10 +14549,6 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14208
14549
|
return updatePaymentSource(state, dispatch);
|
|
14209
14550
|
}
|
|
14210
14551
|
|
|
14211
|
-
if (getSiteCardProcessor() === "vantiv") {
|
|
14212
|
-
return submitVantivPayment();
|
|
14213
|
-
}
|
|
14214
|
-
|
|
14215
14552
|
submitPayment(state);
|
|
14216
14553
|
});
|
|
14217
14554
|
|
|
@@ -14280,21 +14617,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14280
14617
|
default:
|
|
14281
14618
|
return state;
|
|
14282
14619
|
}
|
|
14283
|
-
}, initialState$
|
|
14620
|
+
}, initialState$g);
|
|
14284
14621
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
14285
14622
|
style: { ...style
|
|
14286
14623
|
},
|
|
14287
14624
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14288
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
14625
|
+
}, /*#__PURE__*/React__default.createElement(Provider$g, {
|
|
14289
14626
|
value: {
|
|
14290
14627
|
state,
|
|
14291
14628
|
dispatch
|
|
14292
14629
|
}
|
|
14293
14630
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
14294
|
-
store: store$
|
|
14631
|
+
store: store$g,
|
|
14295
14632
|
key: i
|
|
14296
14633
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
14297
|
-
store: store$
|
|
14634
|
+
store: store$g
|
|
14298
14635
|
})));
|
|
14299
14636
|
};
|
|
14300
14637
|
|
|
@@ -14316,7 +14653,7 @@ const PaymentMethodContainer = props => {
|
|
|
14316
14653
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14317
14654
|
locale: getPageOrDefaultLanguage()
|
|
14318
14655
|
}, /*#__PURE__*/React__default.createElement(es_11, null, /*#__PURE__*/React__default.createElement(UnwrappedForm, Object.assign({
|
|
14319
|
-
store: store$
|
|
14656
|
+
store: store$g
|
|
14320
14657
|
}, props))));
|
|
14321
14658
|
}
|
|
14322
14659
|
|
|
@@ -14369,7 +14706,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14369
14706
|
currentPlan,
|
|
14370
14707
|
updatedPrice
|
|
14371
14708
|
}
|
|
14372
|
-
} = useContext(store$
|
|
14709
|
+
} = useContext(store$g);
|
|
14373
14710
|
|
|
14374
14711
|
const updatePaymentRequest = () => {
|
|
14375
14712
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14445,7 +14782,7 @@ const DiscountedPrice = props => {
|
|
|
14445
14782
|
taxAmount,
|
|
14446
14783
|
percentOff
|
|
14447
14784
|
}
|
|
14448
|
-
} = useContext(store$
|
|
14785
|
+
} = useContext(store$g);
|
|
14449
14786
|
const {
|
|
14450
14787
|
order,
|
|
14451
14788
|
plan
|
|
@@ -14495,7 +14832,7 @@ const SubmitPaymentMethod = ({
|
|
|
14495
14832
|
isLoading,
|
|
14496
14833
|
updatedPrice
|
|
14497
14834
|
}
|
|
14498
|
-
} = useContext(store$
|
|
14835
|
+
} = useContext(store$g);
|
|
14499
14836
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
14500
14837
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
14501
14838
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -14516,17 +14853,17 @@ const SubmitPaymentMethod = ({
|
|
|
14516
14853
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
14517
14854
|
};
|
|
14518
14855
|
|
|
14519
|
-
var _path$
|
|
14856
|
+
var _path$n;
|
|
14520
14857
|
|
|
14521
|
-
function _extends$
|
|
14858
|
+
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); }
|
|
14522
14859
|
|
|
14523
14860
|
function SvgArrowLeft(props) {
|
|
14524
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14861
|
+
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
14525
14862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14526
14863
|
fill: "none",
|
|
14527
14864
|
viewBox: "0 0 24 24",
|
|
14528
14865
|
stroke: "currentColor"
|
|
14529
|
-
}, props), _path$
|
|
14866
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
14530
14867
|
strokeLinecap: "round",
|
|
14531
14868
|
strokeLinejoin: "round",
|
|
14532
14869
|
strokeWidth: 2,
|
|
@@ -14545,7 +14882,7 @@ const ApplyCouponButton = ({
|
|
|
14545
14882
|
disableCouponButton
|
|
14546
14883
|
},
|
|
14547
14884
|
dispatch
|
|
14548
|
-
} = useContext(store$
|
|
14885
|
+
} = useContext(store$g);
|
|
14549
14886
|
const {
|
|
14550
14887
|
t
|
|
14551
14888
|
} = useTranslation("checkoutForm");
|
|
@@ -14579,7 +14916,7 @@ const CouponCodeField = props => {
|
|
|
14579
14916
|
couponCode,
|
|
14580
14917
|
couponError
|
|
14581
14918
|
}
|
|
14582
|
-
} = useContext(store$
|
|
14919
|
+
} = useContext(store$g);
|
|
14583
14920
|
|
|
14584
14921
|
const onCouponCodeChange = e => {
|
|
14585
14922
|
dispatch({
|
|
@@ -14608,17 +14945,17 @@ const CouponCodeField = props => {
|
|
|
14608
14945
|
}, props));
|
|
14609
14946
|
};
|
|
14610
14947
|
|
|
14611
|
-
var _path$
|
|
14948
|
+
var _path$m;
|
|
14612
14949
|
|
|
14613
|
-
function _extends$
|
|
14950
|
+
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); }
|
|
14614
14951
|
|
|
14615
14952
|
function SvgTicket(props) {
|
|
14616
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
14953
|
+
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
14617
14954
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14618
14955
|
fill: "none",
|
|
14619
14956
|
viewBox: "0 0 24 24",
|
|
14620
14957
|
stroke: "currentColor"
|
|
14621
|
-
}, props), _path$
|
|
14958
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React.createElement("path", {
|
|
14622
14959
|
strokeLinecap: "round",
|
|
14623
14960
|
strokeLinejoin: "round",
|
|
14624
14961
|
strokeWidth: 2,
|
|
@@ -14635,7 +14972,7 @@ const CouponCode = ({
|
|
|
14635
14972
|
state: {
|
|
14636
14973
|
enableCouponField
|
|
14637
14974
|
}
|
|
14638
|
-
} = useContext(store$
|
|
14975
|
+
} = useContext(store$g);
|
|
14639
14976
|
const {
|
|
14640
14977
|
t
|
|
14641
14978
|
} = useTranslation("checkoutForm");
|
|
@@ -14892,7 +15229,7 @@ const PaypalSubscribeButton = props => {
|
|
|
14892
15229
|
const {
|
|
14893
15230
|
dispatch,
|
|
14894
15231
|
state
|
|
14895
|
-
} = useContext(store$
|
|
15232
|
+
} = useContext(store$g);
|
|
14896
15233
|
const {
|
|
14897
15234
|
product,
|
|
14898
15235
|
plan,
|
|
@@ -14978,16 +15315,16 @@ const BankRedirection = () => {
|
|
|
14978
15315
|
}));
|
|
14979
15316
|
};
|
|
14980
15317
|
|
|
14981
|
-
var _path$
|
|
15318
|
+
var _path$l;
|
|
14982
15319
|
|
|
14983
|
-
function _extends$
|
|
15320
|
+
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); }
|
|
14984
15321
|
|
|
14985
15322
|
function SvgLock(props) {
|
|
14986
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15323
|
+
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
14987
15324
|
xmlns: "http://www.w3.org/2000/svg",
|
|
14988
15325
|
viewBox: "0 0 20 20",
|
|
14989
15326
|
fill: "currentColor"
|
|
14990
|
-
}, props), _path$
|
|
15327
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React.createElement("path", {
|
|
14991
15328
|
fillRule: "evenodd",
|
|
14992
15329
|
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",
|
|
14993
15330
|
clipRule: "evenodd"
|
|
@@ -15004,7 +15341,7 @@ const SelectedPaymentMethod = () => {
|
|
|
15004
15341
|
state: {
|
|
15005
15342
|
isLoading
|
|
15006
15343
|
}
|
|
15007
|
-
} = useContext(store$
|
|
15344
|
+
} = useContext(store$g);
|
|
15008
15345
|
const {
|
|
15009
15346
|
switchView,
|
|
15010
15347
|
selectedPaymentMethodId
|
|
@@ -15046,7 +15383,7 @@ const TaxAmount = () => {
|
|
|
15046
15383
|
state: {
|
|
15047
15384
|
taxAmount
|
|
15048
15385
|
}
|
|
15049
|
-
} = useContext(store$
|
|
15386
|
+
} = useContext(store$g);
|
|
15050
15387
|
const {
|
|
15051
15388
|
plan
|
|
15052
15389
|
} = usePelcro();
|
|
@@ -15210,12 +15547,12 @@ function SubscriptionRenewModal({
|
|
|
15210
15547
|
}
|
|
15211
15548
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
15212
15549
|
|
|
15213
|
-
var _path$
|
|
15550
|
+
var _path$k;
|
|
15214
15551
|
|
|
15215
|
-
function _extends$
|
|
15552
|
+
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); }
|
|
15216
15553
|
|
|
15217
15554
|
function SvgGift(props) {
|
|
15218
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
15555
|
+
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
15219
15556
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
15220
15557
|
fill: "none",
|
|
15221
15558
|
stroke: "currentColor",
|
|
@@ -15224,7 +15561,7 @@ function SvgGift(props) {
|
|
|
15224
15561
|
strokeWidth: 2,
|
|
15225
15562
|
viewBox: "0 0 24 24",
|
|
15226
15563
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15227
|
-
}, props), _path$
|
|
15564
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React.createElement("path", {
|
|
15228
15565
|
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"
|
|
15229
15566
|
})));
|
|
15230
15567
|
}
|
|
@@ -15565,7 +15902,7 @@ class DefaultNewsLetter extends Component {
|
|
|
15565
15902
|
|
|
15566
15903
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
15567
15904
|
|
|
15568
|
-
const initialState$
|
|
15905
|
+
const initialState$f = {
|
|
15569
15906
|
didSubToNewslettersBefore: false,
|
|
15570
15907
|
newsletters: [],
|
|
15571
15908
|
isListLoading: true,
|
|
@@ -15575,10 +15912,10 @@ const initialState$e = {
|
|
|
15575
15912
|
content: ""
|
|
15576
15913
|
}
|
|
15577
15914
|
};
|
|
15578
|
-
const store$
|
|
15915
|
+
const store$f = /*#__PURE__*/createContext(initialState$f);
|
|
15579
15916
|
const {
|
|
15580
|
-
Provider: Provider$
|
|
15581
|
-
} = store$
|
|
15917
|
+
Provider: Provider$f
|
|
15918
|
+
} = store$f;
|
|
15582
15919
|
|
|
15583
15920
|
const NewsletterUpdateContainer = ({
|
|
15584
15921
|
style,
|
|
@@ -15691,7 +16028,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15691
16028
|
default:
|
|
15692
16029
|
return state;
|
|
15693
16030
|
}
|
|
15694
|
-
}, initialState$
|
|
16031
|
+
}, initialState$f);
|
|
15695
16032
|
useEffect(() => {
|
|
15696
16033
|
const getUserNewsletters = () => {
|
|
15697
16034
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -15735,7 +16072,7 @@ const NewsletterUpdateContainer = ({
|
|
|
15735
16072
|
style: { ...style
|
|
15736
16073
|
},
|
|
15737
16074
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
15738
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16075
|
+
}, /*#__PURE__*/React__default.createElement(Provider$f, {
|
|
15739
16076
|
value: {
|
|
15740
16077
|
state,
|
|
15741
16078
|
dispatch
|
|
@@ -15743,12 +16080,12 @@ const NewsletterUpdateContainer = ({
|
|
|
15743
16080
|
}, children.length ? children.map((child, i) => {
|
|
15744
16081
|
if (child) {
|
|
15745
16082
|
return /*#__PURE__*/React__default.cloneElement(child, {
|
|
15746
|
-
store: store$
|
|
16083
|
+
store: store$f,
|
|
15747
16084
|
key: i
|
|
15748
16085
|
});
|
|
15749
16086
|
}
|
|
15750
16087
|
}) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
15751
|
-
store: store$
|
|
16088
|
+
store: store$f
|
|
15752
16089
|
})));
|
|
15753
16090
|
};
|
|
15754
16091
|
|
|
@@ -15763,7 +16100,7 @@ const NewsletterUpdateButton = ({
|
|
|
15763
16100
|
isSubmitting,
|
|
15764
16101
|
isListLoading
|
|
15765
16102
|
}
|
|
15766
|
-
} = useContext(store$
|
|
16103
|
+
} = useContext(store$f);
|
|
15767
16104
|
const {
|
|
15768
16105
|
t
|
|
15769
16106
|
} = useTranslation("newsletter");
|
|
@@ -15793,7 +16130,7 @@ const NewsletterUpdateList = () => {
|
|
|
15793
16130
|
newsletters,
|
|
15794
16131
|
isListLoading
|
|
15795
16132
|
}
|
|
15796
|
-
} = useContext(store$
|
|
16133
|
+
} = useContext(store$f);
|
|
15797
16134
|
|
|
15798
16135
|
if (isListLoading) {
|
|
15799
16136
|
return /*#__PURE__*/React__default.createElement(Loader, {
|
|
@@ -15997,7 +16334,7 @@ function SubscriptionCreateModal({
|
|
|
15997
16334
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
15998
16335
|
|
|
15999
16336
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
16000
|
-
const initialState$
|
|
16337
|
+
const initialState$e = {
|
|
16001
16338
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
16002
16339
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
16003
16340
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -16010,10 +16347,10 @@ const initialState$d = {
|
|
|
16010
16347
|
content: ""
|
|
16011
16348
|
}
|
|
16012
16349
|
};
|
|
16013
|
-
const store$
|
|
16350
|
+
const store$e = /*#__PURE__*/createContext(initialState$e);
|
|
16014
16351
|
const {
|
|
16015
|
-
Provider: Provider$
|
|
16016
|
-
} = store$
|
|
16352
|
+
Provider: Provider$e
|
|
16353
|
+
} = store$e;
|
|
16017
16354
|
|
|
16018
16355
|
const UserUpdateContainer = ({
|
|
16019
16356
|
style,
|
|
@@ -16145,27 +16482,27 @@ const UserUpdateContainer = ({
|
|
|
16145
16482
|
default:
|
|
16146
16483
|
return state;
|
|
16147
16484
|
}
|
|
16148
|
-
}, initialState$
|
|
16485
|
+
}, initialState$e);
|
|
16149
16486
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
16150
16487
|
style: { ...style
|
|
16151
16488
|
},
|
|
16152
16489
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16153
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16490
|
+
}, /*#__PURE__*/React__default.createElement(Provider$e, {
|
|
16154
16491
|
value: {
|
|
16155
16492
|
state,
|
|
16156
16493
|
dispatch
|
|
16157
16494
|
}
|
|
16158
16495
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16159
|
-
store: store$
|
|
16496
|
+
store: store$e,
|
|
16160
16497
|
key: i
|
|
16161
16498
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16162
|
-
store: store$
|
|
16499
|
+
store: store$e
|
|
16163
16500
|
})));
|
|
16164
16501
|
};
|
|
16165
16502
|
|
|
16166
16503
|
const UserUpdateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
16167
16504
|
disabled: true,
|
|
16168
|
-
store: store$
|
|
16505
|
+
store: store$e
|
|
16169
16506
|
}, props));
|
|
16170
16507
|
|
|
16171
16508
|
const UserUpdateButton = ({
|
|
@@ -16178,7 +16515,7 @@ const UserUpdateButton = ({
|
|
|
16178
16515
|
buttonDisabled
|
|
16179
16516
|
},
|
|
16180
16517
|
dispatch
|
|
16181
|
-
} = useContext(store$
|
|
16518
|
+
} = useContext(store$e);
|
|
16182
16519
|
const {
|
|
16183
16520
|
t
|
|
16184
16521
|
} = useTranslation("userEdit");
|
|
@@ -16195,11 +16532,11 @@ const UserUpdateButton = ({
|
|
|
16195
16532
|
};
|
|
16196
16533
|
|
|
16197
16534
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
16198
|
-
store: store$
|
|
16535
|
+
store: store$e
|
|
16199
16536
|
}, props));
|
|
16200
16537
|
|
|
16201
16538
|
const UserUpdateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
16202
|
-
store: store$
|
|
16539
|
+
store: store$e
|
|
16203
16540
|
}, props));
|
|
16204
16541
|
|
|
16205
16542
|
function Phone({
|
|
@@ -16228,22 +16565,22 @@ function Phone({
|
|
|
16228
16565
|
}
|
|
16229
16566
|
|
|
16230
16567
|
const UserUpdatePhone = props => /*#__PURE__*/React__default.createElement(Phone, Object.assign({
|
|
16231
|
-
store: store$
|
|
16568
|
+
store: store$e
|
|
16232
16569
|
}, props));
|
|
16233
16570
|
|
|
16234
16571
|
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";
|
|
16235
16572
|
|
|
16236
|
-
var _path$
|
|
16573
|
+
var _path$j;
|
|
16237
16574
|
|
|
16238
|
-
function _extends$
|
|
16575
|
+
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); }
|
|
16239
16576
|
|
|
16240
16577
|
function SvgEdit(props) {
|
|
16241
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
16578
|
+
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
16242
16579
|
className: "plc-w-6 plc-h-6",
|
|
16243
16580
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16244
16581
|
viewBox: "0 0 20 20",
|
|
16245
16582
|
fill: "currentColor"
|
|
16246
|
-
}, props), _path$
|
|
16583
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React.createElement("path", {
|
|
16247
16584
|
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"
|
|
16248
16585
|
})));
|
|
16249
16586
|
}
|
|
@@ -16375,16 +16712,16 @@ function DisplayName({
|
|
|
16375
16712
|
}
|
|
16376
16713
|
|
|
16377
16714
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default.createElement(DisplayName, Object.assign({
|
|
16378
|
-
store: store$
|
|
16715
|
+
store: store$e
|
|
16379
16716
|
}, props));
|
|
16380
16717
|
|
|
16381
16718
|
const UserUpdateTextInput = props => {
|
|
16382
16719
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
16383
|
-
store: store$
|
|
16720
|
+
store: store$e
|
|
16384
16721
|
}));
|
|
16385
16722
|
};
|
|
16386
16723
|
|
|
16387
|
-
const initialState$
|
|
16724
|
+
const initialState$d = {
|
|
16388
16725
|
isSubmitting: false,
|
|
16389
16726
|
firstName: "",
|
|
16390
16727
|
firstNameError: "",
|
|
@@ -16409,10 +16746,10 @@ const initialState$c = {
|
|
|
16409
16746
|
content: ""
|
|
16410
16747
|
}
|
|
16411
16748
|
};
|
|
16412
|
-
const store$
|
|
16749
|
+
const store$d = /*#__PURE__*/createContext(initialState$d);
|
|
16413
16750
|
const {
|
|
16414
|
-
Provider: Provider$
|
|
16415
|
-
} = store$
|
|
16751
|
+
Provider: Provider$d
|
|
16752
|
+
} = store$d;
|
|
16416
16753
|
|
|
16417
16754
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16418
16755
|
|
|
@@ -16619,7 +16956,7 @@ const AddressCreateContainer = ({
|
|
|
16619
16956
|
default:
|
|
16620
16957
|
return state;
|
|
16621
16958
|
}
|
|
16622
|
-
}, initialState$
|
|
16959
|
+
}, initialState$d);
|
|
16623
16960
|
useEffect(() => {
|
|
16624
16961
|
const getStates = () => {
|
|
16625
16962
|
dispatch({
|
|
@@ -16651,16 +16988,16 @@ const AddressCreateContainer = ({
|
|
|
16651
16988
|
style: { ...style
|
|
16652
16989
|
},
|
|
16653
16990
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
16654
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
16991
|
+
}, /*#__PURE__*/React__default.createElement(Provider$d, {
|
|
16655
16992
|
value: {
|
|
16656
16993
|
state,
|
|
16657
16994
|
dispatch
|
|
16658
16995
|
}
|
|
16659
16996
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
16660
|
-
store: store$
|
|
16997
|
+
store: store$d,
|
|
16661
16998
|
key: i
|
|
16662
16999
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
16663
|
-
store: store$
|
|
17000
|
+
store: store$d
|
|
16664
17001
|
})));
|
|
16665
17002
|
};
|
|
16666
17003
|
|
|
@@ -16671,7 +17008,7 @@ function AddressCreateFirstName(props) {
|
|
|
16671
17008
|
firstName,
|
|
16672
17009
|
firstNameError
|
|
16673
17010
|
}
|
|
16674
|
-
} = useContext(store$
|
|
17011
|
+
} = useContext(store$d);
|
|
16675
17012
|
|
|
16676
17013
|
const handleBlur = () => {
|
|
16677
17014
|
return dispatch({
|
|
@@ -16714,7 +17051,7 @@ function AddressCreateLastName(props) {
|
|
|
16714
17051
|
lastName,
|
|
16715
17052
|
lastNameError
|
|
16716
17053
|
}
|
|
16717
|
-
} = useContext(store$
|
|
17054
|
+
} = useContext(store$d);
|
|
16718
17055
|
|
|
16719
17056
|
const handleBlur = () => {
|
|
16720
17057
|
return dispatch({
|
|
@@ -16757,7 +17094,7 @@ function AddressCreateLine1(props) {
|
|
|
16757
17094
|
line1,
|
|
16758
17095
|
line1Error
|
|
16759
17096
|
}
|
|
16760
|
-
} = useContext(store$
|
|
17097
|
+
} = useContext(store$d);
|
|
16761
17098
|
|
|
16762
17099
|
const handleBlur = () => {
|
|
16763
17100
|
return dispatch({
|
|
@@ -16800,7 +17137,7 @@ function AddressCreateCity(props) {
|
|
|
16800
17137
|
city,
|
|
16801
17138
|
cityError
|
|
16802
17139
|
}
|
|
16803
|
-
} = useContext(store$
|
|
17140
|
+
} = useContext(store$d);
|
|
16804
17141
|
|
|
16805
17142
|
const handleBlur = () => {
|
|
16806
17143
|
return dispatch({
|
|
@@ -16843,7 +17180,7 @@ function AddressCreatePostalCode(props) {
|
|
|
16843
17180
|
postalCode,
|
|
16844
17181
|
postalCodeError
|
|
16845
17182
|
}
|
|
16846
|
-
} = useContext(store$
|
|
17183
|
+
} = useContext(store$d);
|
|
16847
17184
|
|
|
16848
17185
|
const handleBlur = () => {
|
|
16849
17186
|
return dispatch({
|
|
@@ -16889,7 +17226,7 @@ const AddressCreateSubmit = ({
|
|
|
16889
17226
|
state: {
|
|
16890
17227
|
isSubmitting
|
|
16891
17228
|
}
|
|
16892
|
-
} = useContext(store$
|
|
17229
|
+
} = useContext(store$d);
|
|
16893
17230
|
const {
|
|
16894
17231
|
t
|
|
16895
17232
|
} = useTranslation("address");
|
|
@@ -17000,7 +17337,7 @@ function CountrySelect({
|
|
|
17000
17337
|
}
|
|
17001
17338
|
|
|
17002
17339
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17003
|
-
store: store$
|
|
17340
|
+
store: store$d
|
|
17004
17341
|
}, props));
|
|
17005
17342
|
|
|
17006
17343
|
function StateSelect({
|
|
@@ -17088,7 +17425,7 @@ function StateSelect({
|
|
|
17088
17425
|
}
|
|
17089
17426
|
|
|
17090
17427
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17091
|
-
store: store$
|
|
17428
|
+
store: store$d
|
|
17092
17429
|
}, props));
|
|
17093
17430
|
|
|
17094
17431
|
const AddressCreateView = props => {
|
|
@@ -17193,18 +17530,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17193
17530
|
|
|
17194
17531
|
const AddressCreateTextInput = props => {
|
|
17195
17532
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17196
|
-
store: store$
|
|
17533
|
+
store: store$d
|
|
17197
17534
|
}));
|
|
17198
17535
|
};
|
|
17199
17536
|
|
|
17200
17537
|
const AddressCreateLine2 = props => {
|
|
17201
17538
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17202
17539
|
fieldName: "line2",
|
|
17203
|
-
store: store$
|
|
17540
|
+
store: store$d
|
|
17204
17541
|
}, props));
|
|
17205
17542
|
};
|
|
17206
17543
|
|
|
17207
|
-
const initialState$
|
|
17544
|
+
const initialState$c = {
|
|
17208
17545
|
isSubmitting: false,
|
|
17209
17546
|
firstName: "",
|
|
17210
17547
|
firstNameError: "",
|
|
@@ -17229,10 +17566,10 @@ const initialState$b = {
|
|
|
17229
17566
|
content: ""
|
|
17230
17567
|
}
|
|
17231
17568
|
};
|
|
17232
|
-
const store$
|
|
17569
|
+
const store$c = /*#__PURE__*/createContext(initialState$c);
|
|
17233
17570
|
const {
|
|
17234
|
-
Provider: Provider$
|
|
17235
|
-
} = store$
|
|
17571
|
+
Provider: Provider$c
|
|
17572
|
+
} = store$c;
|
|
17236
17573
|
|
|
17237
17574
|
const AddressUpdateContainer = ({
|
|
17238
17575
|
style,
|
|
@@ -17284,7 +17621,7 @@ const AddressUpdateContainer = ({
|
|
|
17284
17621
|
const thisAddress = addresses[address];
|
|
17285
17622
|
|
|
17286
17623
|
if (+thisAddress.id === +addressId) {
|
|
17287
|
-
const newState = { ...initialState$
|
|
17624
|
+
const newState = { ...initialState$c,
|
|
17288
17625
|
firstName: thisAddress.first_name,
|
|
17289
17626
|
lastName: thisAddress.last_name,
|
|
17290
17627
|
line1: thisAddress.line1,
|
|
@@ -17417,7 +17754,7 @@ const AddressUpdateContainer = ({
|
|
|
17417
17754
|
default:
|
|
17418
17755
|
return state;
|
|
17419
17756
|
}
|
|
17420
|
-
}, initialState$
|
|
17757
|
+
}, initialState$c);
|
|
17421
17758
|
useEffect(() => {
|
|
17422
17759
|
const getStates = () => {
|
|
17423
17760
|
dispatch({
|
|
@@ -17449,21 +17786,21 @@ const AddressUpdateContainer = ({
|
|
|
17449
17786
|
style: { ...style
|
|
17450
17787
|
},
|
|
17451
17788
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17452
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
17789
|
+
}, /*#__PURE__*/React__default.createElement(Provider$c, {
|
|
17453
17790
|
value: {
|
|
17454
17791
|
state,
|
|
17455
17792
|
dispatch
|
|
17456
17793
|
}
|
|
17457
17794
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
17458
|
-
store: store$
|
|
17795
|
+
store: store$c,
|
|
17459
17796
|
key: i
|
|
17460
17797
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
17461
|
-
store: store$
|
|
17798
|
+
store: store$c
|
|
17462
17799
|
})));
|
|
17463
17800
|
};
|
|
17464
17801
|
|
|
17465
17802
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default.createElement(CountrySelect, Object.assign({
|
|
17466
|
-
store: store$
|
|
17803
|
+
store: store$c
|
|
17467
17804
|
}, props));
|
|
17468
17805
|
|
|
17469
17806
|
function AddressUpdateFirstName(props) {
|
|
@@ -17473,7 +17810,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17473
17810
|
firstName,
|
|
17474
17811
|
firstNameError
|
|
17475
17812
|
}
|
|
17476
|
-
} = useContext(store$
|
|
17813
|
+
} = useContext(store$c);
|
|
17477
17814
|
|
|
17478
17815
|
const handleBlur = () => {
|
|
17479
17816
|
return dispatch({
|
|
@@ -17516,7 +17853,7 @@ function AddressUpdateLastName(props) {
|
|
|
17516
17853
|
lastName,
|
|
17517
17854
|
lastNameError
|
|
17518
17855
|
}
|
|
17519
|
-
} = useContext(store$
|
|
17856
|
+
} = useContext(store$c);
|
|
17520
17857
|
|
|
17521
17858
|
const handleBlur = () => {
|
|
17522
17859
|
return dispatch({
|
|
@@ -17559,7 +17896,7 @@ function AddressUpdateLine1(props) {
|
|
|
17559
17896
|
line1,
|
|
17560
17897
|
line1Error
|
|
17561
17898
|
}
|
|
17562
|
-
} = useContext(store$
|
|
17899
|
+
} = useContext(store$c);
|
|
17563
17900
|
|
|
17564
17901
|
const handleBlur = () => {
|
|
17565
17902
|
return dispatch({
|
|
@@ -17599,7 +17936,7 @@ const AddressUpdateLine2 = props => {
|
|
|
17599
17936
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({
|
|
17600
17937
|
fieldName: "line2"
|
|
17601
17938
|
}, props, {
|
|
17602
|
-
store: store$
|
|
17939
|
+
store: store$c
|
|
17603
17940
|
}));
|
|
17604
17941
|
};
|
|
17605
17942
|
|
|
@@ -17610,7 +17947,7 @@ function AddressUpdateCity(props) {
|
|
|
17610
17947
|
city,
|
|
17611
17948
|
cityError
|
|
17612
17949
|
}
|
|
17613
|
-
} = useContext(store$
|
|
17950
|
+
} = useContext(store$c);
|
|
17614
17951
|
|
|
17615
17952
|
const handleBlur = () => {
|
|
17616
17953
|
return dispatch({
|
|
@@ -17653,7 +17990,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
17653
17990
|
postalCode,
|
|
17654
17991
|
postalCodeError
|
|
17655
17992
|
}
|
|
17656
|
-
} = useContext(store$
|
|
17993
|
+
} = useContext(store$c);
|
|
17657
17994
|
|
|
17658
17995
|
const handleBlur = () => {
|
|
17659
17996
|
return dispatch({
|
|
@@ -17699,7 +18036,7 @@ const AddressUpdateSubmit = ({
|
|
|
17699
18036
|
state: {
|
|
17700
18037
|
isSubmitting
|
|
17701
18038
|
}
|
|
17702
|
-
} = useContext(store$
|
|
18039
|
+
} = useContext(store$c);
|
|
17703
18040
|
const {
|
|
17704
18041
|
t
|
|
17705
18042
|
} = useTranslation("address");
|
|
@@ -17715,7 +18052,7 @@ const AddressUpdateSubmit = ({
|
|
|
17715
18052
|
};
|
|
17716
18053
|
|
|
17717
18054
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default.createElement(StateSelect, Object.assign({
|
|
17718
|
-
store: store$
|
|
18055
|
+
store: store$c
|
|
17719
18056
|
}, props));
|
|
17720
18057
|
|
|
17721
18058
|
const AddressUpdateView = props => {
|
|
@@ -17798,7 +18135,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
17798
18135
|
|
|
17799
18136
|
const AddressUpdateTextInput = props => {
|
|
17800
18137
|
return /*#__PURE__*/React__default.createElement(TextInput, Object.assign({}, props, {
|
|
17801
|
-
store: store$
|
|
18138
|
+
store: store$c
|
|
17802
18139
|
}));
|
|
17803
18140
|
};
|
|
17804
18141
|
|
|
@@ -17881,7 +18218,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
17881
18218
|
};
|
|
17882
18219
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
17883
18220
|
|
|
17884
|
-
const initialState$
|
|
18221
|
+
const initialState$b = {
|
|
17885
18222
|
email: "",
|
|
17886
18223
|
password: "",
|
|
17887
18224
|
passwordError: null,
|
|
@@ -17894,10 +18231,10 @@ const initialState$a = {
|
|
|
17894
18231
|
content: ""
|
|
17895
18232
|
}
|
|
17896
18233
|
};
|
|
17897
|
-
const store$
|
|
18234
|
+
const store$b = /*#__PURE__*/createContext(initialState$b);
|
|
17898
18235
|
const {
|
|
17899
|
-
Provider: Provider$
|
|
17900
|
-
} = store$
|
|
18236
|
+
Provider: Provider$b
|
|
18237
|
+
} = store$b;
|
|
17901
18238
|
|
|
17902
18239
|
const PasswordResetContainer = ({
|
|
17903
18240
|
style,
|
|
@@ -17954,7 +18291,7 @@ const PasswordResetContainer = ({
|
|
|
17954
18291
|
type: SET_EMAIL,
|
|
17955
18292
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
17956
18293
|
});
|
|
17957
|
-
initialState$
|
|
18294
|
+
initialState$b.email = window.Pelcro.helpers.getURLParameter("email");
|
|
17958
18295
|
dispatch({
|
|
17959
18296
|
type: SET_TOKEN,
|
|
17960
18297
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -18014,26 +18351,26 @@ const PasswordResetContainer = ({
|
|
|
18014
18351
|
default:
|
|
18015
18352
|
return state;
|
|
18016
18353
|
}
|
|
18017
|
-
}, initialState$
|
|
18354
|
+
}, initialState$b);
|
|
18018
18355
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18019
18356
|
style: { ...style
|
|
18020
18357
|
},
|
|
18021
18358
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
18022
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18359
|
+
}, /*#__PURE__*/React__default.createElement(Provider$b, {
|
|
18023
18360
|
value: {
|
|
18024
18361
|
state,
|
|
18025
18362
|
dispatch
|
|
18026
18363
|
}
|
|
18027
18364
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18028
|
-
store: store$
|
|
18365
|
+
store: store$b,
|
|
18029
18366
|
key: i
|
|
18030
18367
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18031
|
-
store: store$
|
|
18368
|
+
store: store$b
|
|
18032
18369
|
})));
|
|
18033
18370
|
};
|
|
18034
18371
|
|
|
18035
18372
|
const PasswordResetPassword = props => /*#__PURE__*/React__default.createElement(Password, Object.assign({
|
|
18036
|
-
store: store$
|
|
18373
|
+
store: store$b
|
|
18037
18374
|
}, props));
|
|
18038
18375
|
|
|
18039
18376
|
const PasswordResetButton = ({
|
|
@@ -18046,7 +18383,7 @@ const PasswordResetButton = ({
|
|
|
18046
18383
|
buttonDisabled
|
|
18047
18384
|
},
|
|
18048
18385
|
dispatch
|
|
18049
|
-
} = useContext(store$
|
|
18386
|
+
} = useContext(store$b);
|
|
18050
18387
|
const {
|
|
18051
18388
|
t
|
|
18052
18389
|
} = useTranslation("passwordReset");
|
|
@@ -18063,14 +18400,14 @@ const PasswordResetButton = ({
|
|
|
18063
18400
|
};
|
|
18064
18401
|
|
|
18065
18402
|
const PasswordResetEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18066
|
-
store: store$
|
|
18403
|
+
store: store$b
|
|
18067
18404
|
}, props, {
|
|
18068
18405
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
18069
18406
|
disabled: true
|
|
18070
18407
|
}));
|
|
18071
18408
|
|
|
18072
18409
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default.createElement(ConfirmPassword, Object.assign({
|
|
18073
|
-
store: store$
|
|
18410
|
+
store: store$b
|
|
18074
18411
|
}, props));
|
|
18075
18412
|
|
|
18076
18413
|
const PasswordResetView = props => {
|
|
@@ -18122,7 +18459,7 @@ const PasswordResetModal = ({
|
|
|
18122
18459
|
};
|
|
18123
18460
|
PasswordResetModal.viewId = "password-reset";
|
|
18124
18461
|
|
|
18125
|
-
const initialState$
|
|
18462
|
+
const initialState$a = {
|
|
18126
18463
|
email: "",
|
|
18127
18464
|
emailError: null,
|
|
18128
18465
|
buttonDisabled: false,
|
|
@@ -18131,10 +18468,10 @@ const initialState$9 = {
|
|
|
18131
18468
|
content: ""
|
|
18132
18469
|
}
|
|
18133
18470
|
};
|
|
18134
|
-
const store$
|
|
18471
|
+
const store$a = /*#__PURE__*/createContext(initialState$a);
|
|
18135
18472
|
const {
|
|
18136
|
-
Provider: Provider$
|
|
18137
|
-
} = store$
|
|
18473
|
+
Provider: Provider$a
|
|
18474
|
+
} = store$a;
|
|
18138
18475
|
|
|
18139
18476
|
const PasswordForgotContainer = ({
|
|
18140
18477
|
style,
|
|
@@ -18212,21 +18549,21 @@ const PasswordForgotContainer = ({
|
|
|
18212
18549
|
default:
|
|
18213
18550
|
return state;
|
|
18214
18551
|
}
|
|
18215
|
-
}, initialState$
|
|
18552
|
+
}, initialState$a);
|
|
18216
18553
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18217
18554
|
style: { ...style
|
|
18218
18555
|
},
|
|
18219
18556
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18220
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18557
|
+
}, /*#__PURE__*/React__default.createElement(Provider$a, {
|
|
18221
18558
|
value: {
|
|
18222
18559
|
state,
|
|
18223
18560
|
dispatch
|
|
18224
18561
|
}
|
|
18225
18562
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18226
|
-
store: store$
|
|
18563
|
+
store: store$a,
|
|
18227
18564
|
key: i
|
|
18228
18565
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18229
|
-
store: store$
|
|
18566
|
+
store: store$a
|
|
18230
18567
|
})));
|
|
18231
18568
|
};
|
|
18232
18569
|
|
|
@@ -18242,7 +18579,7 @@ const PasswordForgotButton = ({
|
|
|
18242
18579
|
emailError
|
|
18243
18580
|
},
|
|
18244
18581
|
dispatch
|
|
18245
|
-
} = useContext(store$
|
|
18582
|
+
} = useContext(store$a);
|
|
18246
18583
|
const {
|
|
18247
18584
|
t
|
|
18248
18585
|
} = useTranslation("passwordForgot");
|
|
@@ -18263,7 +18600,7 @@ const PasswordForgotButton = ({
|
|
|
18263
18600
|
};
|
|
18264
18601
|
|
|
18265
18602
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
18266
|
-
store: store$
|
|
18603
|
+
store: store$a
|
|
18267
18604
|
}, props));
|
|
18268
18605
|
|
|
18269
18606
|
const PasswordForgotView = props => {
|
|
@@ -18313,7 +18650,7 @@ const PasswordForgotModal = ({
|
|
|
18313
18650
|
};
|
|
18314
18651
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18315
18652
|
|
|
18316
|
-
const initialState$
|
|
18653
|
+
const initialState$9 = {
|
|
18317
18654
|
currentPassword: "",
|
|
18318
18655
|
newPassword: "",
|
|
18319
18656
|
confirmNewPassword: "",
|
|
@@ -18327,10 +18664,10 @@ const initialState$8 = {
|
|
|
18327
18664
|
content: ""
|
|
18328
18665
|
}
|
|
18329
18666
|
};
|
|
18330
|
-
const store$
|
|
18667
|
+
const store$9 = /*#__PURE__*/createContext(initialState$9);
|
|
18331
18668
|
const {
|
|
18332
|
-
Provider: Provider$
|
|
18333
|
-
} = store$
|
|
18669
|
+
Provider: Provider$9
|
|
18670
|
+
} = store$9;
|
|
18334
18671
|
const PasswordChangeContainer = ({
|
|
18335
18672
|
style,
|
|
18336
18673
|
className = "",
|
|
@@ -18482,21 +18819,21 @@ const PasswordChangeContainer = ({
|
|
|
18482
18819
|
default:
|
|
18483
18820
|
return state;
|
|
18484
18821
|
}
|
|
18485
|
-
}, initialState$
|
|
18822
|
+
}, initialState$9);
|
|
18486
18823
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18487
18824
|
style: { ...style
|
|
18488
18825
|
},
|
|
18489
18826
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
18490
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
18827
|
+
}, /*#__PURE__*/React__default.createElement(Provider$9, {
|
|
18491
18828
|
value: {
|
|
18492
18829
|
state,
|
|
18493
18830
|
dispatch
|
|
18494
18831
|
}
|
|
18495
18832
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18496
|
-
store: store$
|
|
18833
|
+
store: store$9,
|
|
18497
18834
|
key: i
|
|
18498
18835
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18499
|
-
store: store$
|
|
18836
|
+
store: store$9
|
|
18500
18837
|
})));
|
|
18501
18838
|
};
|
|
18502
18839
|
|
|
@@ -18507,7 +18844,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
18507
18844
|
currentPassword,
|
|
18508
18845
|
currentPasswordError
|
|
18509
18846
|
}
|
|
18510
|
-
} = useContext(store$
|
|
18847
|
+
} = useContext(store$9);
|
|
18511
18848
|
const handleBlur = useCallback(() => {
|
|
18512
18849
|
return dispatch({
|
|
18513
18850
|
type: VALIDATE_PASSWORD
|
|
@@ -18541,7 +18878,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
18541
18878
|
newPassword,
|
|
18542
18879
|
newPasswordError
|
|
18543
18880
|
}
|
|
18544
|
-
} = useContext(store$
|
|
18881
|
+
} = useContext(store$9);
|
|
18545
18882
|
const handleBlur = useCallback(() => {
|
|
18546
18883
|
return dispatch({
|
|
18547
18884
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -18575,7 +18912,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
18575
18912
|
confirmNewPassword,
|
|
18576
18913
|
confirmNewPasswordError
|
|
18577
18914
|
}
|
|
18578
|
-
} = useContext(store$
|
|
18915
|
+
} = useContext(store$9);
|
|
18579
18916
|
const handleBlur = useCallback(() => {
|
|
18580
18917
|
return dispatch({
|
|
18581
18918
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -18616,7 +18953,7 @@ const PasswordChangeButton = ({
|
|
|
18616
18953
|
confirmNewPasswordError
|
|
18617
18954
|
},
|
|
18618
18955
|
dispatch
|
|
18619
|
-
} = useContext(store$
|
|
18956
|
+
} = useContext(store$9);
|
|
18620
18957
|
const {
|
|
18621
18958
|
t
|
|
18622
18959
|
} = useTranslation("passwordChange");
|
|
@@ -18682,17 +19019,17 @@ const PasswordChangeModal = ({
|
|
|
18682
19019
|
};
|
|
18683
19020
|
PasswordChangeModal.viewId = "password-change";
|
|
18684
19021
|
|
|
18685
|
-
const initialState$
|
|
19022
|
+
const initialState$8 = {
|
|
18686
19023
|
buttonDisabled: false,
|
|
18687
19024
|
alert: {
|
|
18688
19025
|
type: "error",
|
|
18689
19026
|
content: ""
|
|
18690
19027
|
}
|
|
18691
19028
|
};
|
|
18692
|
-
const store$
|
|
19029
|
+
const store$8 = /*#__PURE__*/createContext(initialState$8);
|
|
18693
19030
|
const {
|
|
18694
|
-
Provider: Provider$
|
|
18695
|
-
} = store$
|
|
19031
|
+
Provider: Provider$8
|
|
19032
|
+
} = store$8;
|
|
18696
19033
|
|
|
18697
19034
|
const CartContainer = ({
|
|
18698
19035
|
style,
|
|
@@ -18783,21 +19120,21 @@ const CartContainer = ({
|
|
|
18783
19120
|
default:
|
|
18784
19121
|
return state;
|
|
18785
19122
|
}
|
|
18786
|
-
}, initialState$
|
|
19123
|
+
}, initialState$8);
|
|
18787
19124
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
18788
19125
|
style: { ...style
|
|
18789
19126
|
},
|
|
18790
19127
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
18791
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19128
|
+
}, /*#__PURE__*/React__default.createElement(Provider$8, {
|
|
18792
19129
|
value: {
|
|
18793
19130
|
state,
|
|
18794
19131
|
dispatch
|
|
18795
19132
|
}
|
|
18796
19133
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
18797
|
-
store: store$
|
|
19134
|
+
store: store$8,
|
|
18798
19135
|
key: i
|
|
18799
19136
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
18800
|
-
store: store$
|
|
19137
|
+
store: store$8
|
|
18801
19138
|
})));
|
|
18802
19139
|
};
|
|
18803
19140
|
|
|
@@ -18834,7 +19171,7 @@ const CartSubmit = ({
|
|
|
18834
19171
|
buttonDisabled
|
|
18835
19172
|
},
|
|
18836
19173
|
dispatch
|
|
18837
|
-
} = useContext(store$
|
|
19174
|
+
} = useContext(store$8);
|
|
18838
19175
|
const {
|
|
18839
19176
|
t
|
|
18840
19177
|
} = useTranslation("cart");
|
|
@@ -18865,7 +19202,7 @@ const CartTotalPrice = () => {
|
|
|
18865
19202
|
state: {
|
|
18866
19203
|
alert
|
|
18867
19204
|
}
|
|
18868
|
-
} = useContext(store$
|
|
19205
|
+
} = useContext(store$8);
|
|
18869
19206
|
const {
|
|
18870
19207
|
cartItems
|
|
18871
19208
|
} = usePelcro();
|
|
@@ -19178,7 +19515,7 @@ const OrderConfirmModal = props => {
|
|
|
19178
19515
|
};
|
|
19179
19516
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19180
19517
|
|
|
19181
|
-
const initialState$
|
|
19518
|
+
const initialState$7 = {
|
|
19182
19519
|
email: "",
|
|
19183
19520
|
firstName: "",
|
|
19184
19521
|
lastName: "",
|
|
@@ -19190,10 +19527,10 @@ const initialState$6 = {
|
|
|
19190
19527
|
content: ""
|
|
19191
19528
|
}
|
|
19192
19529
|
};
|
|
19193
|
-
const store$
|
|
19530
|
+
const store$7 = /*#__PURE__*/createContext(initialState$7);
|
|
19194
19531
|
const {
|
|
19195
|
-
Provider: Provider$
|
|
19196
|
-
} = store$
|
|
19532
|
+
Provider: Provider$7
|
|
19533
|
+
} = store$7;
|
|
19197
19534
|
|
|
19198
19535
|
const GiftCreateContainer = ({
|
|
19199
19536
|
style,
|
|
@@ -19297,21 +19634,21 @@ const GiftCreateContainer = ({
|
|
|
19297
19634
|
default:
|
|
19298
19635
|
return state;
|
|
19299
19636
|
}
|
|
19300
|
-
}, initialState$
|
|
19637
|
+
}, initialState$7);
|
|
19301
19638
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19302
19639
|
style: { ...style
|
|
19303
19640
|
},
|
|
19304
19641
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19305
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
19642
|
+
}, /*#__PURE__*/React__default.createElement(Provider$7, {
|
|
19306
19643
|
value: {
|
|
19307
19644
|
state,
|
|
19308
19645
|
dispatch
|
|
19309
19646
|
}
|
|
19310
19647
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19311
|
-
store: store$
|
|
19648
|
+
store: store$7,
|
|
19312
19649
|
key: i
|
|
19313
19650
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19314
|
-
store: store$
|
|
19651
|
+
store: store$7
|
|
19315
19652
|
})));
|
|
19316
19653
|
};
|
|
19317
19654
|
|
|
@@ -19325,7 +19662,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19325
19662
|
state: {
|
|
19326
19663
|
disableSubmit
|
|
19327
19664
|
}
|
|
19328
|
-
} = useContext(store$
|
|
19665
|
+
} = useContext(store$7);
|
|
19329
19666
|
const {
|
|
19330
19667
|
t
|
|
19331
19668
|
} = useTranslation("register");
|
|
@@ -19342,29 +19679,29 @@ const GiftCreateSubmitButton = ({
|
|
|
19342
19679
|
|
|
19343
19680
|
const GiftCreateEmail = props => /*#__PURE__*/React__default.createElement(Email, Object.assign({
|
|
19344
19681
|
initWithUserEmail: false,
|
|
19345
|
-
store: store$
|
|
19682
|
+
store: store$7
|
|
19346
19683
|
}, props));
|
|
19347
19684
|
|
|
19348
19685
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default.createElement(FirstName, Object.assign({
|
|
19349
|
-
store: store$
|
|
19686
|
+
store: store$7
|
|
19350
19687
|
}, props));
|
|
19351
19688
|
|
|
19352
19689
|
const GiftCreateLastName = props => /*#__PURE__*/React__default.createElement(LastName, Object.assign({
|
|
19353
|
-
store: store$
|
|
19690
|
+
store: store$7
|
|
19354
19691
|
}, props));
|
|
19355
19692
|
|
|
19356
|
-
var _path$
|
|
19693
|
+
var _path$i;
|
|
19357
19694
|
|
|
19358
|
-
function _extends$
|
|
19695
|
+
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); }
|
|
19359
19696
|
|
|
19360
19697
|
function SvgInfoCircle(props) {
|
|
19361
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
19698
|
+
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
19362
19699
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19363
19700
|
className: "plc-w-5 plc-h-5",
|
|
19364
19701
|
fill: "none",
|
|
19365
19702
|
viewBox: "0 0 24 24",
|
|
19366
19703
|
stroke: "currentColor"
|
|
19367
|
-
}, props), _path$
|
|
19704
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React.createElement("path", {
|
|
19368
19705
|
strokeLinecap: "round",
|
|
19369
19706
|
strokeLinejoin: "round",
|
|
19370
19707
|
strokeWidth: 2,
|
|
@@ -19435,7 +19772,7 @@ const GiftCreateStartDate = props => {
|
|
|
19435
19772
|
const {
|
|
19436
19773
|
dispatch,
|
|
19437
19774
|
state
|
|
19438
|
-
} = useContext(store$
|
|
19775
|
+
} = useContext(store$7);
|
|
19439
19776
|
|
|
19440
19777
|
const handleInputChange = value => {
|
|
19441
19778
|
dispatch({
|
|
@@ -19508,7 +19845,7 @@ function GiftCreateMessage(props) {
|
|
|
19508
19845
|
const {
|
|
19509
19846
|
dispatch,
|
|
19510
19847
|
state
|
|
19511
|
-
} = useContext(store$
|
|
19848
|
+
} = useContext(store$7);
|
|
19512
19849
|
const MAX_CHARS_COUNT = 200;
|
|
19513
19850
|
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;
|
|
19514
19851
|
|
|
@@ -19632,7 +19969,7 @@ const GiftCreateModal = ({
|
|
|
19632
19969
|
};
|
|
19633
19970
|
GiftCreateModal.viewId = "gift-create";
|
|
19634
19971
|
|
|
19635
|
-
const initialState$
|
|
19972
|
+
const initialState$6 = {
|
|
19636
19973
|
giftCode: "",
|
|
19637
19974
|
buttonDisabled: true,
|
|
19638
19975
|
alert: {
|
|
@@ -19640,10 +19977,10 @@ const initialState$5 = {
|
|
|
19640
19977
|
content: ""
|
|
19641
19978
|
}
|
|
19642
19979
|
};
|
|
19643
|
-
const store$
|
|
19980
|
+
const store$6 = /*#__PURE__*/createContext(initialState$6);
|
|
19644
19981
|
const {
|
|
19645
|
-
Provider: Provider$
|
|
19646
|
-
} = store$
|
|
19982
|
+
Provider: Provider$6
|
|
19983
|
+
} = store$6;
|
|
19647
19984
|
|
|
19648
19985
|
const GiftRedeemContainer = ({
|
|
19649
19986
|
style,
|
|
@@ -19708,21 +20045,21 @@ const GiftRedeemContainer = ({
|
|
|
19708
20045
|
default:
|
|
19709
20046
|
return state;
|
|
19710
20047
|
}
|
|
19711
|
-
}, initialState$
|
|
20048
|
+
}, initialState$6);
|
|
19712
20049
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
19713
20050
|
style: { ...style
|
|
19714
20051
|
},
|
|
19715
20052
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
19716
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20053
|
+
}, /*#__PURE__*/React__default.createElement(Provider$6, {
|
|
19717
20054
|
value: {
|
|
19718
20055
|
state,
|
|
19719
20056
|
dispatch
|
|
19720
20057
|
}
|
|
19721
20058
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19722
|
-
store: store$
|
|
20059
|
+
store: store$6,
|
|
19723
20060
|
key: i
|
|
19724
20061
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19725
|
-
store: store$
|
|
20062
|
+
store: store$6
|
|
19726
20063
|
})));
|
|
19727
20064
|
};
|
|
19728
20065
|
|
|
@@ -19759,7 +20096,7 @@ function GiftCode({
|
|
|
19759
20096
|
}
|
|
19760
20097
|
|
|
19761
20098
|
const GiftRedeemCode = props => /*#__PURE__*/React__default.createElement(GiftCode, Object.assign({
|
|
19762
|
-
store: store$
|
|
20099
|
+
store: store$6
|
|
19763
20100
|
}, props));
|
|
19764
20101
|
|
|
19765
20102
|
const GiftRedeemSubmitButton = ({
|
|
@@ -19772,7 +20109,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
19772
20109
|
state: {
|
|
19773
20110
|
disableSubmit
|
|
19774
20111
|
}
|
|
19775
|
-
} = useContext(store$
|
|
20112
|
+
} = useContext(store$6);
|
|
19776
20113
|
const {
|
|
19777
20114
|
t
|
|
19778
20115
|
} = useTranslation("register");
|
|
@@ -19865,7 +20202,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
19865
20202
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
19866
20203
|
};
|
|
19867
20204
|
|
|
19868
|
-
const initialState$
|
|
20205
|
+
const initialState$5 = {
|
|
19869
20206
|
addresses: [],
|
|
19870
20207
|
selectedAddressId: null,
|
|
19871
20208
|
isSubmitting: false,
|
|
@@ -19874,10 +20211,10 @@ const initialState$4 = {
|
|
|
19874
20211
|
content: ""
|
|
19875
20212
|
}
|
|
19876
20213
|
};
|
|
19877
|
-
const store$
|
|
20214
|
+
const store$5 = /*#__PURE__*/createContext(initialState$5);
|
|
19878
20215
|
const {
|
|
19879
|
-
Provider: Provider$
|
|
19880
|
-
} = store$
|
|
20216
|
+
Provider: Provider$5
|
|
20217
|
+
} = store$5;
|
|
19881
20218
|
|
|
19882
20219
|
const AddressSelectContainer = ({
|
|
19883
20220
|
style,
|
|
@@ -19972,7 +20309,7 @@ const AddressSelectContainer = ({
|
|
|
19972
20309
|
default:
|
|
19973
20310
|
return state;
|
|
19974
20311
|
}
|
|
19975
|
-
}, initialState$
|
|
20312
|
+
}, initialState$5);
|
|
19976
20313
|
useEffect(() => {
|
|
19977
20314
|
var _window$Pelcro$user$r;
|
|
19978
20315
|
|
|
@@ -19985,16 +20322,16 @@ const AddressSelectContainer = ({
|
|
|
19985
20322
|
style: { ...style
|
|
19986
20323
|
},
|
|
19987
20324
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
19988
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20325
|
+
}, /*#__PURE__*/React__default.createElement(Provider$5, {
|
|
19989
20326
|
value: {
|
|
19990
20327
|
state,
|
|
19991
20328
|
dispatch
|
|
19992
20329
|
}
|
|
19993
20330
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
19994
|
-
store: store$
|
|
20331
|
+
store: store$5,
|
|
19995
20332
|
key: i
|
|
19996
20333
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
19997
|
-
store: store$
|
|
20334
|
+
store: store$5
|
|
19998
20335
|
})));
|
|
19999
20336
|
};
|
|
20000
20337
|
|
|
@@ -20005,7 +20342,7 @@ const AddressSelectList = () => {
|
|
|
20005
20342
|
addresses,
|
|
20006
20343
|
selectedAddressId
|
|
20007
20344
|
}
|
|
20008
|
-
} = useContext(store$
|
|
20345
|
+
} = useContext(store$5);
|
|
20009
20346
|
|
|
20010
20347
|
const handleAddressSelect = event => {
|
|
20011
20348
|
dispatch({
|
|
@@ -20049,7 +20386,7 @@ const AddressSelectSubmit = ({
|
|
|
20049
20386
|
selectedAddressId,
|
|
20050
20387
|
isSubmitting
|
|
20051
20388
|
}
|
|
20052
|
-
} = useContext(store$
|
|
20389
|
+
} = useContext(store$5);
|
|
20053
20390
|
const {
|
|
20054
20391
|
t
|
|
20055
20392
|
} = useTranslation("address");
|
|
@@ -20145,7 +20482,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
20145
20482
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
20146
20483
|
};
|
|
20147
20484
|
|
|
20148
|
-
const initialState$
|
|
20485
|
+
const initialState$4 = {
|
|
20149
20486
|
paymentMethods: [],
|
|
20150
20487
|
selectedPaymentMethodId: null,
|
|
20151
20488
|
isSubmitting: false,
|
|
@@ -20154,10 +20491,10 @@ const initialState$3 = {
|
|
|
20154
20491
|
content: ""
|
|
20155
20492
|
}
|
|
20156
20493
|
};
|
|
20157
|
-
const store$
|
|
20494
|
+
const store$4 = /*#__PURE__*/createContext(initialState$4);
|
|
20158
20495
|
const {
|
|
20159
|
-
Provider: Provider$
|
|
20160
|
-
} = store$
|
|
20496
|
+
Provider: Provider$4
|
|
20497
|
+
} = store$4;
|
|
20161
20498
|
|
|
20162
20499
|
const PaymentMethodSelectContainer = ({
|
|
20163
20500
|
style,
|
|
@@ -20216,7 +20553,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20216
20553
|
default:
|
|
20217
20554
|
return state;
|
|
20218
20555
|
}
|
|
20219
|
-
}, initialState$
|
|
20556
|
+
}, initialState$4);
|
|
20220
20557
|
useEffect(() => {
|
|
20221
20558
|
var _window$Pelcro$user$r3;
|
|
20222
20559
|
|
|
@@ -20229,16 +20566,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20229
20566
|
style: { ...style
|
|
20230
20567
|
},
|
|
20231
20568
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20232
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
20569
|
+
}, /*#__PURE__*/React__default.createElement(Provider$4, {
|
|
20233
20570
|
value: {
|
|
20234
20571
|
state,
|
|
20235
20572
|
dispatch
|
|
20236
20573
|
}
|
|
20237
20574
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
20238
|
-
store: store$
|
|
20575
|
+
store: store$4,
|
|
20239
20576
|
key: i
|
|
20240
20577
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
20241
|
-
store: store$
|
|
20578
|
+
store: store$4
|
|
20242
20579
|
})));
|
|
20243
20580
|
};
|
|
20244
20581
|
|
|
@@ -20252,7 +20589,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20252
20589
|
paymentMethods,
|
|
20253
20590
|
selectedPaymentMethodId
|
|
20254
20591
|
}
|
|
20255
|
-
} = useContext(store$
|
|
20592
|
+
} = useContext(store$4);
|
|
20256
20593
|
|
|
20257
20594
|
const handlePaymentMethodSelect = event => {
|
|
20258
20595
|
dispatch({
|
|
@@ -20302,7 +20639,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20302
20639
|
selectedPaymentMethodId,
|
|
20303
20640
|
isSubmitting
|
|
20304
20641
|
}
|
|
20305
|
-
} = useContext(store$
|
|
20642
|
+
} = useContext(store$4);
|
|
20306
20643
|
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
20307
20644
|
onClick: () => {
|
|
20308
20645
|
dispatch({
|
|
@@ -20376,8 +20713,8 @@ const PaymentMethodSelectModal = ({
|
|
|
20376
20713
|
};
|
|
20377
20714
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
20378
20715
|
|
|
20379
|
-
function _extends$
|
|
20380
|
-
_extends$
|
|
20716
|
+
function _extends$j() {
|
|
20717
|
+
_extends$j = Object.assign || function (target) {
|
|
20381
20718
|
for (var i = 1; i < arguments.length; i++) {
|
|
20382
20719
|
var source = arguments[i];
|
|
20383
20720
|
|
|
@@ -20391,7 +20728,7 @@ function _extends$h() {
|
|
|
20391
20728
|
return target;
|
|
20392
20729
|
};
|
|
20393
20730
|
|
|
20394
|
-
return _extends$
|
|
20731
|
+
return _extends$j.apply(this, arguments);
|
|
20395
20732
|
}
|
|
20396
20733
|
|
|
20397
20734
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -20575,7 +20912,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
20575
20912
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
20576
20913
|
return null;
|
|
20577
20914
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
20578
|
-
return _render(_extends$
|
|
20915
|
+
return _render(_extends$j({}, _rest, {
|
|
20579
20916
|
hidden: true,
|
|
20580
20917
|
style: {
|
|
20581
20918
|
display: 'none'
|
|
@@ -21103,7 +21440,7 @@ function TransitionChild(props) {
|
|
|
21103
21440
|
var passthroughProps = rest;
|
|
21104
21441
|
return React__default.createElement(NestingContext.Provider, {
|
|
21105
21442
|
value: nesting
|
|
21106
|
-
}, render(_extends$
|
|
21443
|
+
}, render(_extends$j({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
21107
21444
|
}
|
|
21108
21445
|
|
|
21109
21446
|
function Transition(props) {
|
|
@@ -21147,7 +21484,7 @@ function Transition(props) {
|
|
|
21147
21484
|
value: nestingBag
|
|
21148
21485
|
}, React__default.createElement(TransitionContext.Provider, {
|
|
21149
21486
|
value: transitionBag
|
|
21150
|
-
}, render(_extends$
|
|
21487
|
+
}, render(_extends$j({}, sharedProps, {
|
|
21151
21488
|
as: Fragment,
|
|
21152
21489
|
children: React__default.createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
21153
21490
|
}), propsBag, Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -21274,12 +21611,12 @@ var ActionTypes;
|
|
|
21274
21611
|
})(ActionTypes || (ActionTypes = {}));
|
|
21275
21612
|
|
|
21276
21613
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
21277
|
-
return _extends$
|
|
21614
|
+
return _extends$j({}, state, {
|
|
21278
21615
|
activeItemIndex: null,
|
|
21279
21616
|
menuState: MenuStates.Closed
|
|
21280
21617
|
});
|
|
21281
21618
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
21282
|
-
return _extends$
|
|
21619
|
+
return _extends$j({}, state, {
|
|
21283
21620
|
menuState: MenuStates.Open
|
|
21284
21621
|
});
|
|
21285
21622
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -21298,7 +21635,7 @@ var ActionTypes;
|
|
|
21298
21635
|
}
|
|
21299
21636
|
});
|
|
21300
21637
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
21301
|
-
return _extends$
|
|
21638
|
+
return _extends$j({}, state, {
|
|
21302
21639
|
searchQuery: '',
|
|
21303
21640
|
activeItemIndex: activeItemIndex
|
|
21304
21641
|
});
|
|
@@ -21309,19 +21646,19 @@ var ActionTypes;
|
|
|
21309
21646
|
|
|
21310
21647
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
21311
21648
|
});
|
|
21312
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
21649
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$j({}, state, {
|
|
21313
21650
|
searchQuery: searchQuery
|
|
21314
21651
|
});
|
|
21315
|
-
return _extends$
|
|
21652
|
+
return _extends$j({}, state, {
|
|
21316
21653
|
searchQuery: searchQuery,
|
|
21317
21654
|
activeItemIndex: match
|
|
21318
21655
|
});
|
|
21319
21656
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
21320
|
-
return _extends$
|
|
21657
|
+
return _extends$j({}, state, {
|
|
21321
21658
|
searchQuery: ''
|
|
21322
21659
|
});
|
|
21323
21660
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
21324
|
-
return _extends$
|
|
21661
|
+
return _extends$j({}, state, {
|
|
21325
21662
|
items: [].concat(state.items, [{
|
|
21326
21663
|
id: action.id,
|
|
21327
21664
|
dataRef: action.dataRef
|
|
@@ -21334,7 +21671,7 @@ var ActionTypes;
|
|
|
21334
21671
|
return a.id === action.id;
|
|
21335
21672
|
});
|
|
21336
21673
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
21337
|
-
return _extends$
|
|
21674
|
+
return _extends$j({}, state, {
|
|
21338
21675
|
items: nextItems,
|
|
21339
21676
|
activeItemIndex: function () {
|
|
21340
21677
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -21373,19 +21710,19 @@ var ActionTypes$1;
|
|
|
21373
21710
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
21374
21711
|
if (state.disabled) return state;
|
|
21375
21712
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21376
|
-
return _extends$
|
|
21713
|
+
return _extends$j({}, state, {
|
|
21377
21714
|
activeOptionIndex: null,
|
|
21378
21715
|
listboxState: ListboxStates.Closed
|
|
21379
21716
|
});
|
|
21380
21717
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
21381
21718
|
if (state.disabled) return state;
|
|
21382
21719
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
21383
|
-
return _extends$
|
|
21720
|
+
return _extends$j({}, state, {
|
|
21384
21721
|
listboxState: ListboxStates.Open
|
|
21385
21722
|
});
|
|
21386
21723
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
21387
21724
|
if (state.disabled === action.disabled) return state;
|
|
21388
|
-
return _extends$
|
|
21725
|
+
return _extends$j({}, state, {
|
|
21389
21726
|
disabled: action.disabled
|
|
21390
21727
|
});
|
|
21391
21728
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -21406,7 +21743,7 @@ var ActionTypes$1;
|
|
|
21406
21743
|
}
|
|
21407
21744
|
});
|
|
21408
21745
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
21409
|
-
return _extends$
|
|
21746
|
+
return _extends$j({}, state, {
|
|
21410
21747
|
searchQuery: '',
|
|
21411
21748
|
activeOptionIndex: activeOptionIndex
|
|
21412
21749
|
});
|
|
@@ -21419,10 +21756,10 @@ var ActionTypes$1;
|
|
|
21419
21756
|
|
|
21420
21757
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
21421
21758
|
});
|
|
21422
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
21759
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$j({}, state, {
|
|
21423
21760
|
searchQuery: searchQuery
|
|
21424
21761
|
});
|
|
21425
|
-
return _extends$
|
|
21762
|
+
return _extends$j({}, state, {
|
|
21426
21763
|
searchQuery: searchQuery,
|
|
21427
21764
|
activeOptionIndex: match
|
|
21428
21765
|
});
|
|
@@ -21430,11 +21767,11 @@ var ActionTypes$1;
|
|
|
21430
21767
|
if (state.disabled) return state;
|
|
21431
21768
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21432
21769
|
if (state.searchQuery === '') return state;
|
|
21433
|
-
return _extends$
|
|
21770
|
+
return _extends$j({}, state, {
|
|
21434
21771
|
searchQuery: ''
|
|
21435
21772
|
});
|
|
21436
21773
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
21437
|
-
return _extends$
|
|
21774
|
+
return _extends$j({}, state, {
|
|
21438
21775
|
options: [].concat(state.options, [{
|
|
21439
21776
|
id: action.id,
|
|
21440
21777
|
dataRef: action.dataRef
|
|
@@ -21447,7 +21784,7 @@ var ActionTypes$1;
|
|
|
21447
21784
|
return a.id === action.id;
|
|
21448
21785
|
});
|
|
21449
21786
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
21450
|
-
return _extends$
|
|
21787
|
+
return _extends$j({}, state, {
|
|
21451
21788
|
options: nextOptions,
|
|
21452
21789
|
activeOptionIndex: function () {
|
|
21453
21790
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -21508,18 +21845,18 @@ const getPaymentCardIcon = name => {
|
|
|
21508
21845
|
}));
|
|
21509
21846
|
};
|
|
21510
21847
|
|
|
21511
|
-
var _path$
|
|
21848
|
+
var _path$h;
|
|
21512
21849
|
|
|
21513
|
-
function _extends$
|
|
21850
|
+
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); }
|
|
21514
21851
|
|
|
21515
21852
|
function SvgChevronRight(props) {
|
|
21516
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
21853
|
+
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
21517
21854
|
className: "plc-w-6 plc-h-6",
|
|
21518
21855
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21519
21856
|
fill: "none",
|
|
21520
21857
|
viewBox: "0 0 24 24",
|
|
21521
21858
|
stroke: "currentColor"
|
|
21522
|
-
}, props), _path$
|
|
21859
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React.createElement("path", {
|
|
21523
21860
|
strokeLinecap: "round",
|
|
21524
21861
|
strokeLinejoin: "round",
|
|
21525
21862
|
strokeWidth: 2,
|
|
@@ -21735,18 +22072,18 @@ const SavedItems = ({
|
|
|
21735
22072
|
});
|
|
21736
22073
|
};
|
|
21737
22074
|
|
|
21738
|
-
var _path$
|
|
22075
|
+
var _path$g;
|
|
21739
22076
|
|
|
21740
|
-
function _extends$
|
|
22077
|
+
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); }
|
|
21741
22078
|
|
|
21742
22079
|
function SvgRefresh(props) {
|
|
21743
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22080
|
+
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
21744
22081
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21745
22082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21746
22083
|
fill: "none",
|
|
21747
22084
|
viewBox: "0 0 24 24",
|
|
21748
22085
|
stroke: "currentColor"
|
|
21749
|
-
}, props), _path$
|
|
22086
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React.createElement("path", {
|
|
21750
22087
|
strokeLinecap: "round",
|
|
21751
22088
|
strokeLinejoin: "round",
|
|
21752
22089
|
strokeWidth: 2,
|
|
@@ -21754,35 +22091,35 @@ function SvgRefresh(props) {
|
|
|
21754
22091
|
})));
|
|
21755
22092
|
}
|
|
21756
22093
|
|
|
21757
|
-
var _path$
|
|
22094
|
+
var _path$f;
|
|
21758
22095
|
|
|
21759
|
-
function _extends$
|
|
22096
|
+
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); }
|
|
21760
22097
|
|
|
21761
22098
|
function SvgCalendar(props) {
|
|
21762
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22099
|
+
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
21763
22100
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21764
22101
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
21765
22102
|
viewBox: "0 0 20 20",
|
|
21766
22103
|
fill: "currentColor"
|
|
21767
|
-
}, props), _path$
|
|
22104
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React.createElement("path", {
|
|
21768
22105
|
fillRule: "evenodd",
|
|
21769
22106
|
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",
|
|
21770
22107
|
clipRule: "evenodd"
|
|
21771
22108
|
})));
|
|
21772
22109
|
}
|
|
21773
22110
|
|
|
21774
|
-
var _path$
|
|
22111
|
+
var _path$e;
|
|
21775
22112
|
|
|
21776
|
-
function _extends$
|
|
22113
|
+
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); }
|
|
21777
22114
|
|
|
21778
22115
|
function SvgPlus(props) {
|
|
21779
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22116
|
+
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
21780
22117
|
className: "plc-w-5 plc-h-5",
|
|
21781
22118
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21782
22119
|
fill: "none",
|
|
21783
22120
|
viewBox: "0 0 24 24",
|
|
21784
22121
|
stroke: "currentColor"
|
|
21785
|
-
}, props), _path$
|
|
22122
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React.createElement("path", {
|
|
21786
22123
|
strokeLinecap: "round",
|
|
21787
22124
|
strokeLinejoin: "round",
|
|
21788
22125
|
strokeWidth: 2,
|
|
@@ -21790,17 +22127,17 @@ function SvgPlus(props) {
|
|
|
21790
22127
|
})));
|
|
21791
22128
|
}
|
|
21792
22129
|
|
|
21793
|
-
var _path$
|
|
22130
|
+
var _path$d;
|
|
21794
22131
|
|
|
21795
|
-
function _extends$
|
|
22132
|
+
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); }
|
|
21796
22133
|
|
|
21797
22134
|
function SvgCheckMark(props) {
|
|
21798
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22135
|
+
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
21799
22136
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
21800
22137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
21801
22138
|
viewBox: "0 0 20 20",
|
|
21802
22139
|
fill: "currentColor"
|
|
21803
|
-
}, props), _path$
|
|
22140
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React.createElement("path", {
|
|
21804
22141
|
fillRule: "evenodd",
|
|
21805
22142
|
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",
|
|
21806
22143
|
clipRule: "evenodd"
|
|
@@ -21864,7 +22201,8 @@ const SubscriptionsItems = ({
|
|
|
21864
22201
|
} = useTranslation("dashboard");
|
|
21865
22202
|
const {
|
|
21866
22203
|
switchView,
|
|
21867
|
-
|
|
22204
|
+
switchToAddressView,
|
|
22205
|
+
switchToPaymentView
|
|
21868
22206
|
} = usePelcro();
|
|
21869
22207
|
const subs = getNonDonationSubs();
|
|
21870
22208
|
if (subs.length === 0) return null;
|
|
@@ -21906,7 +22244,12 @@ const SubscriptionsItems = ({
|
|
|
21906
22244
|
const plan = window.Pelcro.plan.getById(plan_id);
|
|
21907
22245
|
setProductAndPlan(product, plan);
|
|
21908
22246
|
setSubscriptionIdToRenew(sub.id);
|
|
21909
|
-
|
|
22247
|
+
|
|
22248
|
+
if (product.address_required) {
|
|
22249
|
+
return switchToAddressView();
|
|
22250
|
+
}
|
|
22251
|
+
|
|
22252
|
+
return switchToPaymentView();
|
|
21910
22253
|
};
|
|
21911
22254
|
|
|
21912
22255
|
const getPhases = () => {
|
|
@@ -22095,18 +22438,18 @@ Accordion.item = function AccordionItem({
|
|
|
22095
22438
|
}, content)) : null;
|
|
22096
22439
|
};
|
|
22097
22440
|
|
|
22098
|
-
var _path$
|
|
22441
|
+
var _path$c;
|
|
22099
22442
|
|
|
22100
|
-
function _extends$
|
|
22443
|
+
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); }
|
|
22101
22444
|
|
|
22102
22445
|
function SvgExit(props) {
|
|
22103
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22446
|
+
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
22104
22447
|
className: "plc-w-6 plc-h-6",
|
|
22105
22448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22106
22449
|
fill: "none",
|
|
22107
22450
|
viewBox: "0 0 24 24",
|
|
22108
22451
|
stroke: "currentColor"
|
|
22109
|
-
}, props), _path$
|
|
22452
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React.createElement("path", {
|
|
22110
22453
|
strokeLinecap: "round",
|
|
22111
22454
|
strokeLinejoin: "round",
|
|
22112
22455
|
strokeWidth: 2,
|
|
@@ -22114,17 +22457,17 @@ function SvgExit(props) {
|
|
|
22114
22457
|
})));
|
|
22115
22458
|
}
|
|
22116
22459
|
|
|
22117
|
-
var _path$
|
|
22460
|
+
var _path$b;
|
|
22118
22461
|
|
|
22119
|
-
function _extends$
|
|
22462
|
+
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); }
|
|
22120
22463
|
|
|
22121
22464
|
function SvgUser(props) {
|
|
22122
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22465
|
+
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
22123
22466
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22124
22467
|
fill: "none",
|
|
22125
22468
|
viewBox: "0 0 24 24",
|
|
22126
22469
|
stroke: "currentColor"
|
|
22127
|
-
}, props), _path$
|
|
22470
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React.createElement("path", {
|
|
22128
22471
|
strokeLinecap: "round",
|
|
22129
22472
|
strokeLinejoin: "round",
|
|
22130
22473
|
strokeWidth: 2,
|
|
@@ -22132,18 +22475,18 @@ function SvgUser(props) {
|
|
|
22132
22475
|
})));
|
|
22133
22476
|
}
|
|
22134
22477
|
|
|
22135
|
-
var _path$
|
|
22478
|
+
var _path$a;
|
|
22136
22479
|
|
|
22137
|
-
function _extends$
|
|
22480
|
+
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); }
|
|
22138
22481
|
|
|
22139
22482
|
function SvgNewsletter(props) {
|
|
22140
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22483
|
+
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
22141
22484
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22142
22485
|
className: "plc-h-5 plc-w-5",
|
|
22143
22486
|
fill: "none",
|
|
22144
22487
|
viewBox: "0 0 24 24",
|
|
22145
22488
|
stroke: "currentColor"
|
|
22146
|
-
}, props), _path$
|
|
22489
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React.createElement("path", {
|
|
22147
22490
|
strokeLinecap: "round",
|
|
22148
22491
|
strokeLinejoin: "round",
|
|
22149
22492
|
strokeWidth: 2,
|
|
@@ -22151,18 +22494,37 @@ function SvgNewsletter(props) {
|
|
|
22151
22494
|
})));
|
|
22152
22495
|
}
|
|
22153
22496
|
|
|
22154
|
-
var _path$
|
|
22497
|
+
var _path$9;
|
|
22155
22498
|
|
|
22156
|
-
function _extends$
|
|
22499
|
+
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); }
|
|
22500
|
+
|
|
22501
|
+
function SvgDocument(props) {
|
|
22502
|
+
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
22503
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
22504
|
+
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
22505
|
+
fill: "none",
|
|
22506
|
+
viewBox: "0 0 24 24",
|
|
22507
|
+
stroke: "currentColor"
|
|
22508
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React.createElement("path", {
|
|
22509
|
+
strokeLinecap: "round",
|
|
22510
|
+
strokeLinejoin: "round",
|
|
22511
|
+
strokeWidth: 2,
|
|
22512
|
+
d: "M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"
|
|
22513
|
+
})));
|
|
22514
|
+
}
|
|
22515
|
+
|
|
22516
|
+
var _path$8;
|
|
22517
|
+
|
|
22518
|
+
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); }
|
|
22157
22519
|
|
|
22158
22520
|
function SvgPaymentCard(props) {
|
|
22159
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22521
|
+
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
22160
22522
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22161
22523
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22162
22524
|
fill: "none",
|
|
22163
22525
|
viewBox: "0 0 24 24",
|
|
22164
22526
|
stroke: "currentColor"
|
|
22165
|
-
}, props), _path$
|
|
22527
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React.createElement("path", {
|
|
22166
22528
|
strokeLinecap: "round",
|
|
22167
22529
|
strokeLinejoin: "round",
|
|
22168
22530
|
strokeWidth: 2,
|
|
@@ -22170,18 +22532,18 @@ function SvgPaymentCard(props) {
|
|
|
22170
22532
|
})));
|
|
22171
22533
|
}
|
|
22172
22534
|
|
|
22173
|
-
var _path$
|
|
22535
|
+
var _path$7, _path2$1;
|
|
22174
22536
|
|
|
22175
|
-
function _extends$
|
|
22537
|
+
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); }
|
|
22176
22538
|
|
|
22177
22539
|
function SvgLocationPin(props) {
|
|
22178
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22540
|
+
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
22179
22541
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22180
22542
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22181
22543
|
fill: "none",
|
|
22182
22544
|
viewBox: "0 0 24 24",
|
|
22183
22545
|
stroke: "currentColor"
|
|
22184
|
-
}, props), _path$
|
|
22546
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React.createElement("path", {
|
|
22185
22547
|
strokeLinecap: "round",
|
|
22186
22548
|
strokeLinejoin: "round",
|
|
22187
22549
|
strokeWidth: 2,
|
|
@@ -22196,10 +22558,10 @@ function SvgLocationPin(props) {
|
|
|
22196
22558
|
|
|
22197
22559
|
var _switch;
|
|
22198
22560
|
|
|
22199
|
-
function _extends$
|
|
22561
|
+
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); }
|
|
22200
22562
|
|
|
22201
22563
|
function SvgSubscription(props) {
|
|
22202
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22564
|
+
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
22203
22565
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22204
22566
|
viewBox: "0 0 100 125",
|
|
22205
22567
|
fill: "currentColor"
|
|
@@ -22214,18 +22576,18 @@ function SvgSubscription(props) {
|
|
|
22214
22576
|
}))))));
|
|
22215
22577
|
}
|
|
22216
22578
|
|
|
22217
|
-
var _path$
|
|
22579
|
+
var _path$6;
|
|
22218
22580
|
|
|
22219
|
-
function _extends$
|
|
22581
|
+
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); }
|
|
22220
22582
|
|
|
22221
22583
|
function SvgShopping(props) {
|
|
22222
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22584
|
+
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
22223
22585
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22224
22586
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22225
22587
|
fill: "none",
|
|
22226
22588
|
viewBox: "0 0 24 24",
|
|
22227
22589
|
stroke: "currentColor"
|
|
22228
|
-
}, props), _path$
|
|
22590
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React.createElement("path", {
|
|
22229
22591
|
strokeLinecap: "round",
|
|
22230
22592
|
strokeLinejoin: "round",
|
|
22231
22593
|
strokeWidth: 2,
|
|
@@ -22233,18 +22595,18 @@ function SvgShopping(props) {
|
|
|
22233
22595
|
})));
|
|
22234
22596
|
}
|
|
22235
22597
|
|
|
22236
|
-
var _path$
|
|
22598
|
+
var _path$5;
|
|
22237
22599
|
|
|
22238
|
-
function _extends$
|
|
22600
|
+
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); }
|
|
22239
22601
|
|
|
22240
22602
|
function SvgBookmark(props) {
|
|
22241
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22603
|
+
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
22242
22604
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22243
22605
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22244
22606
|
fill: "none",
|
|
22245
22607
|
viewBox: "0 0 24 24",
|
|
22246
22608
|
stroke: "currentColor"
|
|
22247
|
-
}, props), _path$
|
|
22609
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React.createElement("path", {
|
|
22248
22610
|
strokeLinecap: "round",
|
|
22249
22611
|
strokeLinejoin: "round",
|
|
22250
22612
|
strokeWidth: 2,
|
|
@@ -22252,33 +22614,33 @@ function SvgBookmark(props) {
|
|
|
22252
22614
|
})));
|
|
22253
22615
|
}
|
|
22254
22616
|
|
|
22255
|
-
var _path$
|
|
22617
|
+
var _path$4;
|
|
22256
22618
|
|
|
22257
|
-
function _extends$
|
|
22619
|
+
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); }
|
|
22258
22620
|
|
|
22259
22621
|
function SvgKey(props) {
|
|
22260
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22622
|
+
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
22261
22623
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22262
22624
|
viewBox: "0 0 20 20",
|
|
22263
22625
|
fill: "currentColor"
|
|
22264
|
-
}, props), _path$
|
|
22626
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React.createElement("path", {
|
|
22265
22627
|
fillRule: "evenodd",
|
|
22266
22628
|
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",
|
|
22267
22629
|
clipRule: "evenodd"
|
|
22268
22630
|
})));
|
|
22269
22631
|
}
|
|
22270
22632
|
|
|
22271
|
-
var _path$
|
|
22633
|
+
var _path$3;
|
|
22272
22634
|
|
|
22273
|
-
function _extends$
|
|
22635
|
+
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); }
|
|
22274
22636
|
|
|
22275
22637
|
function SvgDonate(props) {
|
|
22276
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
22638
|
+
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
22277
22639
|
width: 24,
|
|
22278
22640
|
height: 24,
|
|
22279
22641
|
fill: "currentColor",
|
|
22280
22642
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22281
|
-
}, props), _path$
|
|
22643
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React.createElement("path", {
|
|
22282
22644
|
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"
|
|
22283
22645
|
})));
|
|
22284
22646
|
}
|
|
@@ -22314,17 +22676,149 @@ const DonationsMenu = () => {
|
|
|
22314
22676
|
}), subscriptions));
|
|
22315
22677
|
};
|
|
22316
22678
|
|
|
22317
|
-
function getDonationSubs() {
|
|
22318
|
-
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
22679
|
+
function getDonationSubs() {
|
|
22680
|
+
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r, _window$Pelcro$user$r2;
|
|
22681
|
+
|
|
22682
|
+
const donations = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : (_window$Pelcro$subscr3 = _window$Pelcro$subscr2.list()) === null || _window$Pelcro$subscr3 === void 0 ? void 0 : _window$Pelcro$subscr3.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
22683
|
+
const canceledDonations = (_window$Pelcro$user$r = (_window$Pelcro$user$r2 = window.Pelcro.user.read().expired_subscriptions) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.filter(sub => sub.plan.is_donation && !sub.is_gift_donor)) !== null && _window$Pelcro$user$r !== void 0 ? _window$Pelcro$user$r : [];
|
|
22684
|
+
return [...donations, ...canceledDonations];
|
|
22685
|
+
}
|
|
22686
|
+
|
|
22687
|
+
function formatStartDate(date) {
|
|
22688
|
+
const startDate = new Date(date);
|
|
22689
|
+
return new Intl.DateTimeFormat("en-CA").format(startDate);
|
|
22690
|
+
}
|
|
22691
|
+
|
|
22692
|
+
const InvoicesMenu = props => {
|
|
22693
|
+
const {
|
|
22694
|
+
t
|
|
22695
|
+
} = useTranslation("dashboard");
|
|
22696
|
+
return /*#__PURE__*/React__default.createElement("table", {
|
|
22697
|
+
className: "plc-w-full plc-table-fixed"
|
|
22698
|
+
}, /*#__PURE__*/React__default.createElement("thead", {
|
|
22699
|
+
className: "plc-text-xs plc-font-semibold plc-tracking-wider plc-text-gray-400 plc-uppercase "
|
|
22700
|
+
}, /*#__PURE__*/React__default.createElement("tr", null, /*#__PURE__*/React__default.createElement("th", {
|
|
22701
|
+
className: "plc-w-4/12 "
|
|
22702
|
+
}, t("labels.details")), /*#__PURE__*/React__default.createElement("th", {
|
|
22703
|
+
className: "plc-w-4/12 "
|
|
22704
|
+
}, t("labels.status.title")), /*#__PURE__*/React__default.createElement("th", {
|
|
22705
|
+
className: "plc-w-3/12 "
|
|
22706
|
+
}, t("labels.actions")))), /*#__PURE__*/React__default.createElement("tbody", null, /*#__PURE__*/React__default.createElement("tr", {
|
|
22707
|
+
className: "plc-h-4"
|
|
22708
|
+
}), /*#__PURE__*/React__default.createElement(InvoicesItems, props)));
|
|
22709
|
+
};
|
|
22710
|
+
|
|
22711
|
+
const InvoicesItems = () => {
|
|
22712
|
+
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
22713
|
+
|
|
22714
|
+
const {
|
|
22715
|
+
t
|
|
22716
|
+
} = useTranslation("dashboard");
|
|
22717
|
+
const {
|
|
22718
|
+
setInvoice,
|
|
22719
|
+
switchView
|
|
22720
|
+
} = usePelcro();
|
|
22721
|
+
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 : [];
|
|
22722
|
+
|
|
22723
|
+
const showInvoiceDetails = event => {
|
|
22724
|
+
if (setInvoice(event.target.dataset.id)) {
|
|
22725
|
+
switchView("invoice-details");
|
|
22726
|
+
}
|
|
22727
|
+
};
|
|
22728
|
+
|
|
22729
|
+
if (invoices.length === 0) return null;
|
|
22730
|
+
return invoices.sort((a, b) => new Date(b.created_at).getTime() - new Date(a.created_at).getTime()).map(invoice => {
|
|
22731
|
+
const invoiceStatus = getInvoiceStatus(invoice);
|
|
22732
|
+
const formattedCreationDate = new Intl.DateTimeFormat("en-CA").format(new Date(invoice.created_at));
|
|
22733
|
+
return /*#__PURE__*/React__default.createElement("tr", {
|
|
22734
|
+
key: invoice.id,
|
|
22735
|
+
className: `plc-w-full plc-align-middle plc-cursor-pointer accordion-header hover:plc-bg-gray-50`
|
|
22736
|
+
}, /*#__PURE__*/React__default.createElement("td", {
|
|
22737
|
+
className: "plc-truncate"
|
|
22738
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
22739
|
+
className: "plc-font-semibold plc-text-gray-500"
|
|
22740
|
+
}, `#${invoice.id}`), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
22741
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
22742
|
+
}, getFormattedPriceByLocal(invoice.total, invoice.currency, getPageOrDefaultLanguage())), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("span", {
|
|
22743
|
+
className: "plc-text-sm plc-text-gray-500"
|
|
22744
|
+
}, formattedCreationDate)), /*#__PURE__*/React__default.createElement("td", {
|
|
22745
|
+
className: "plc-py-2"
|
|
22746
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
22747
|
+
className: `plc-inline-flex plc-p-1 plc-text-xs plc-font-semibold ${invoiceStatus.bgColor} plc-uppercase ${invoiceStatus.textColor} plc-rounded-lg`
|
|
22748
|
+
}, invoiceStatus.icon, invoiceStatus.title)), /*#__PURE__*/React__default.createElement("td", null, /*#__PURE__*/React__default.createElement(Button, {
|
|
22749
|
+
variant: "ghost",
|
|
22750
|
+
className: "plc-text-blue-400 focus:plc-ring-blue-400 pelcro-dashboard-view-invoice-button",
|
|
22751
|
+
icon: /*#__PURE__*/React__default.createElement(SvgDocument, {
|
|
22752
|
+
className: "plc-w-4 plc-h-4"
|
|
22753
|
+
}),
|
|
22754
|
+
onClick: showInvoiceDetails,
|
|
22755
|
+
"data-id": invoice.id
|
|
22756
|
+
}, t("labels.view"))));
|
|
22757
|
+
});
|
|
22758
|
+
};
|
|
22759
|
+
|
|
22760
|
+
function getInvoiceStatus(invoice) {
|
|
22761
|
+
const translations = i18next.t("dashboard:labels", {
|
|
22762
|
+
returnObjects: true
|
|
22763
|
+
});
|
|
22764
|
+
|
|
22765
|
+
switch (invoice.status) {
|
|
22766
|
+
case "paid":
|
|
22767
|
+
return {
|
|
22768
|
+
textColor: "plc-text-green-700",
|
|
22769
|
+
bgColor: "plc-bg-green-100",
|
|
22770
|
+
icon: /*#__PURE__*/React__default.createElement(SvgCheckMark, null),
|
|
22771
|
+
title: translations.paid
|
|
22772
|
+
};
|
|
22773
|
+
|
|
22774
|
+
case "past_due":
|
|
22775
|
+
return {
|
|
22776
|
+
textColor: "plc-text-orange-700",
|
|
22777
|
+
bgColor: "plc-bg-orange-100",
|
|
22778
|
+
icon: /*#__PURE__*/React__default.createElement(SvgExclamation, null),
|
|
22779
|
+
title: translations.pastDue
|
|
22780
|
+
};
|
|
22319
22781
|
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
|
|
22782
|
+
case "open":
|
|
22783
|
+
return {
|
|
22784
|
+
textColor: "plc-text-yellow-700",
|
|
22785
|
+
bgColor: "plc-bg-yellow-100",
|
|
22786
|
+
icon: /*#__PURE__*/React__default.createElement(SvgExclamation, null),
|
|
22787
|
+
title: translations.open
|
|
22788
|
+
};
|
|
22324
22789
|
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22790
|
+
case "draft":
|
|
22791
|
+
return {
|
|
22792
|
+
textColor: "plc-text-blue-700",
|
|
22793
|
+
bgColor: "plc-bg-blue-100",
|
|
22794
|
+
icon: /*#__PURE__*/React__default.createElement(SvgEdit, null),
|
|
22795
|
+
title: translations.draft
|
|
22796
|
+
};
|
|
22797
|
+
|
|
22798
|
+
case "scheduled":
|
|
22799
|
+
return {
|
|
22800
|
+
textColor: "plc-text-blue-700",
|
|
22801
|
+
bgColor: "plc-bg-blue-100",
|
|
22802
|
+
icon: /*#__PURE__*/React__default.createElement(SvgCalendar, null),
|
|
22803
|
+
title: translations.scheduled
|
|
22804
|
+
};
|
|
22805
|
+
|
|
22806
|
+
case "uncollectible":
|
|
22807
|
+
return {
|
|
22808
|
+
textColor: "plc-text-red-700",
|
|
22809
|
+
bgColor: "plc-bg-red-100",
|
|
22810
|
+
icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
|
|
22811
|
+
title: translations.uncollectible
|
|
22812
|
+
};
|
|
22813
|
+
|
|
22814
|
+
case "void":
|
|
22815
|
+
return {
|
|
22816
|
+
textColor: "plc-text-gray-700",
|
|
22817
|
+
bgColor: "plc-bg-gray-100",
|
|
22818
|
+
icon: /*#__PURE__*/React__default.createElement(SvgXIconSolid, null),
|
|
22819
|
+
title: translations.void
|
|
22820
|
+
};
|
|
22821
|
+
}
|
|
22328
22822
|
}
|
|
22329
22823
|
|
|
22330
22824
|
const SUB_MENUS = {
|
|
@@ -22473,9 +22967,10 @@ class Dashboard extends Component {
|
|
|
22473
22967
|
}) => {
|
|
22474
22968
|
if (isGift) {
|
|
22475
22969
|
this.props.setProductAndPlan(null, null, true);
|
|
22970
|
+
return this.props.setView("plan-select");
|
|
22476
22971
|
}
|
|
22477
22972
|
|
|
22478
|
-
return this.props.setView("
|
|
22973
|
+
return this.props.setView("subscription-options");
|
|
22479
22974
|
});
|
|
22480
22975
|
|
|
22481
22976
|
_defineProperty$3(this, "displayAddressCreate", () => {
|
|
@@ -22880,6 +23375,12 @@ class Dashboard extends Component {
|
|
|
22880
23375
|
icon: /*#__PURE__*/React__default.createElement(SvgShopping, null),
|
|
22881
23376
|
title: this.locale("labels.orders.label"),
|
|
22882
23377
|
content: /*#__PURE__*/React__default.createElement(OrdersMenu, null)
|
|
23378
|
+
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
23379
|
+
show: hasInvoices(),
|
|
23380
|
+
name: SUB_MENUS.INVOICES,
|
|
23381
|
+
icon: /*#__PURE__*/React__default.createElement(SvgDocument, null),
|
|
23382
|
+
title: this.locale("labels.invoices"),
|
|
23383
|
+
content: /*#__PURE__*/React__default.createElement(InvoicesMenu, null)
|
|
22883
23384
|
}), /*#__PURE__*/React__default.createElement(Accordion.item, {
|
|
22884
23385
|
name: SUB_MENUS.SAVED_ITEMS,
|
|
22885
23386
|
icon: /*#__PURE__*/React__default.createElement(SvgBookmark, null),
|
|
@@ -22895,6 +23396,13 @@ class Dashboard extends Component {
|
|
|
22895
23396
|
|
|
22896
23397
|
}
|
|
22897
23398
|
|
|
23399
|
+
function hasInvoices() {
|
|
23400
|
+
var _window$Pelcro$invoic, _window$Pelcro$invoic2;
|
|
23401
|
+
|
|
23402
|
+
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 : [];
|
|
23403
|
+
return invoices.length > 0;
|
|
23404
|
+
}
|
|
23405
|
+
|
|
22898
23406
|
function hasDonationSubs() {
|
|
22899
23407
|
var _window$Pelcro$subscr, _window$Pelcro$subscr2, _window$Pelcro$subscr3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
22900
23408
|
|
|
@@ -22930,7 +23438,7 @@ const DashboardOpenButton = () => {
|
|
|
22930
23438
|
};
|
|
22931
23439
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
22932
23440
|
|
|
22933
|
-
const initialState$
|
|
23441
|
+
const initialState$3 = {
|
|
22934
23442
|
imageSrc: null,
|
|
22935
23443
|
crop: {
|
|
22936
23444
|
x: 0,
|
|
@@ -22944,10 +23452,10 @@ const initialState$2 = {
|
|
|
22944
23452
|
content: ""
|
|
22945
23453
|
}
|
|
22946
23454
|
};
|
|
22947
|
-
const store$
|
|
23455
|
+
const store$3 = /*#__PURE__*/createContext(initialState$3);
|
|
22948
23456
|
const {
|
|
22949
|
-
Provider: Provider$
|
|
22950
|
-
} = store$
|
|
23457
|
+
Provider: Provider$3
|
|
23458
|
+
} = store$3;
|
|
22951
23459
|
|
|
22952
23460
|
const ProfilePicChangeContainer = ({
|
|
22953
23461
|
style,
|
|
@@ -23081,21 +23589,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23081
23589
|
default:
|
|
23082
23590
|
return state;
|
|
23083
23591
|
}
|
|
23084
|
-
}, initialState$
|
|
23592
|
+
}, initialState$3);
|
|
23085
23593
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
23086
23594
|
style: { ...style
|
|
23087
23595
|
},
|
|
23088
23596
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23089
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
23597
|
+
}, /*#__PURE__*/React__default.createElement(Provider$3, {
|
|
23090
23598
|
value: {
|
|
23091
23599
|
state,
|
|
23092
23600
|
dispatch
|
|
23093
23601
|
}
|
|
23094
23602
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
23095
|
-
store: store$
|
|
23603
|
+
store: store$3,
|
|
23096
23604
|
key: i
|
|
23097
23605
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
23098
|
-
store: store$
|
|
23606
|
+
store: store$3
|
|
23099
23607
|
})));
|
|
23100
23608
|
};
|
|
23101
23609
|
/**
|
|
@@ -23157,7 +23665,7 @@ const ProfilePicChangeButton = ({
|
|
|
23157
23665
|
isSubmitting
|
|
23158
23666
|
},
|
|
23159
23667
|
dispatch
|
|
23160
|
-
} = useContext(store$
|
|
23668
|
+
} = useContext(store$3);
|
|
23161
23669
|
const {
|
|
23162
23670
|
t
|
|
23163
23671
|
} = useTranslation("userEdit");
|
|
@@ -24525,7 +25033,7 @@ const ProfilePicChangeCropper = ({
|
|
|
24525
25033
|
zoom
|
|
24526
25034
|
},
|
|
24527
25035
|
dispatch
|
|
24528
|
-
} = useContext(store$
|
|
25036
|
+
} = useContext(store$3);
|
|
24529
25037
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24530
25038
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
24531
25039
|
}, /*#__PURE__*/React__default.createElement(Cropper, Object.assign({
|
|
@@ -24567,7 +25075,7 @@ const ProfilePicChangeZoom = ({
|
|
|
24567
25075
|
zoom
|
|
24568
25076
|
},
|
|
24569
25077
|
dispatch
|
|
24570
|
-
} = useContext(store$
|
|
25078
|
+
} = useContext(store$3);
|
|
24571
25079
|
const {
|
|
24572
25080
|
t
|
|
24573
25081
|
} = useTranslation("userEdit");
|
|
@@ -24590,18 +25098,18 @@ const ProfilePicChangeZoom = ({
|
|
|
24590
25098
|
}, otherProps)));
|
|
24591
25099
|
};
|
|
24592
25100
|
|
|
24593
|
-
var _path$
|
|
25101
|
+
var _path$2;
|
|
24594
25102
|
|
|
24595
|
-
function _extends$
|
|
25103
|
+
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); }
|
|
24596
25104
|
|
|
24597
25105
|
function SvgPhotograph(props) {
|
|
24598
|
-
return /*#__PURE__*/React.createElement("svg", _extends$
|
|
25106
|
+
return /*#__PURE__*/React.createElement("svg", _extends$2({
|
|
24599
25107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
24600
25108
|
className: "plc-h-6 plc-w-6",
|
|
24601
25109
|
fill: "none",
|
|
24602
25110
|
viewBox: "0 0 24 24",
|
|
24603
25111
|
stroke: "currentColor"
|
|
24604
|
-
}, props), _path$
|
|
25112
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React.createElement("path", {
|
|
24605
25113
|
strokeLinecap: "round",
|
|
24606
25114
|
strokeLinejoin: "round",
|
|
24607
25115
|
strokeWidth: 2,
|
|
@@ -24619,7 +25127,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
24619
25127
|
state: {
|
|
24620
25128
|
isSubmitting
|
|
24621
25129
|
}
|
|
24622
|
-
} = useContext(store$
|
|
25130
|
+
} = useContext(store$3);
|
|
24623
25131
|
const {
|
|
24624
25132
|
t
|
|
24625
25133
|
} = useTranslation("userEdit");
|
|
@@ -24661,7 +25169,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
24661
25169
|
state: {
|
|
24662
25170
|
isSubmitting
|
|
24663
25171
|
}
|
|
24664
|
-
} = useContext(store$
|
|
25172
|
+
} = useContext(store$3);
|
|
24665
25173
|
const {
|
|
24666
25174
|
t
|
|
24667
25175
|
} = useTranslation("userEdit");
|
|
@@ -24684,7 +25192,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
24684
25192
|
state: {
|
|
24685
25193
|
imageSrc
|
|
24686
25194
|
}
|
|
24687
|
-
} = useContext(store$
|
|
25195
|
+
} = useContext(store$3);
|
|
24688
25196
|
const {
|
|
24689
25197
|
t
|
|
24690
25198
|
} = useTranslation("userEdit");
|
|
@@ -24746,17 +25254,17 @@ function ProfilePicChangeModal({
|
|
|
24746
25254
|
}
|
|
24747
25255
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
24748
25256
|
|
|
24749
|
-
const initialState$
|
|
25257
|
+
const initialState$2 = {
|
|
24750
25258
|
isSubmitting: false,
|
|
24751
25259
|
alert: {
|
|
24752
25260
|
type: "error",
|
|
24753
25261
|
content: ""
|
|
24754
25262
|
}
|
|
24755
25263
|
};
|
|
24756
|
-
const store$
|
|
25264
|
+
const store$2 = /*#__PURE__*/createContext(initialState$2);
|
|
24757
25265
|
const {
|
|
24758
|
-
Provider: Provider$
|
|
24759
|
-
} = store$
|
|
25266
|
+
Provider: Provider$2
|
|
25267
|
+
} = store$2;
|
|
24760
25268
|
|
|
24761
25269
|
const EmailVerifyContainer = ({
|
|
24762
25270
|
style,
|
|
@@ -24819,21 +25327,21 @@ const EmailVerifyContainer = ({
|
|
|
24819
25327
|
default:
|
|
24820
25328
|
return state;
|
|
24821
25329
|
}
|
|
24822
|
-
}, initialState$
|
|
25330
|
+
}, initialState$2);
|
|
24823
25331
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
24824
25332
|
style: { ...style
|
|
24825
25333
|
},
|
|
24826
25334
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
24827
|
-
}, /*#__PURE__*/React__default.createElement(Provider$
|
|
25335
|
+
}, /*#__PURE__*/React__default.createElement(Provider$2, {
|
|
24828
25336
|
value: {
|
|
24829
25337
|
state,
|
|
24830
25338
|
dispatch
|
|
24831
25339
|
}
|
|
24832
25340
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
24833
|
-
store: store$
|
|
25341
|
+
store: store$2,
|
|
24834
25342
|
key: i
|
|
24835
25343
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
24836
|
-
store: store$
|
|
25344
|
+
store: store$2
|
|
24837
25345
|
})));
|
|
24838
25346
|
};
|
|
24839
25347
|
|
|
@@ -24847,7 +25355,7 @@ const EmailVerifyResendButton = ({
|
|
|
24847
25355
|
state: {
|
|
24848
25356
|
isSubmitting
|
|
24849
25357
|
}
|
|
24850
|
-
} = useContext(store$
|
|
25358
|
+
} = useContext(store$2);
|
|
24851
25359
|
const {
|
|
24852
25360
|
t
|
|
24853
25361
|
} = useTranslation("verifyEmail");
|
|
@@ -24862,16 +25370,16 @@ const EmailVerifyResendButton = ({
|
|
|
24862
25370
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
24863
25371
|
};
|
|
24864
25372
|
|
|
24865
|
-
var _path, _path2;
|
|
25373
|
+
var _path$1, _path2;
|
|
24866
25374
|
|
|
24867
|
-
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); }
|
|
25375
|
+
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); }
|
|
24868
25376
|
|
|
24869
25377
|
function SvgEmailVerify(props) {
|
|
24870
|
-
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25378
|
+
return /*#__PURE__*/React.createElement("svg", _extends$1({
|
|
24871
25379
|
className: "plc-w-6 plc-h-6",
|
|
24872
25380
|
viewBox: "0 0 700 700",
|
|
24873
25381
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24874
|
-
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25382
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React.createElement("path", {
|
|
24875
25383
|
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"
|
|
24876
25384
|
})), _path2 || (_path2 = /*#__PURE__*/React.createElement("path", {
|
|
24877
25385
|
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"
|
|
@@ -24975,11 +25483,11 @@ const invoicePaymentSubmitButton = props => {
|
|
|
24975
25483
|
return /*#__PURE__*/React__default.createElement(SubmitPaymentMethod, props);
|
|
24976
25484
|
};
|
|
24977
25485
|
|
|
24978
|
-
const initialState = {};
|
|
24979
|
-
const store = /*#__PURE__*/createContext(initialState);
|
|
25486
|
+
const initialState$1 = {};
|
|
25487
|
+
const store$1 = /*#__PURE__*/createContext(initialState$1);
|
|
24980
25488
|
const {
|
|
24981
|
-
Provider
|
|
24982
|
-
} = store;
|
|
25489
|
+
Provider: Provider$1
|
|
25490
|
+
} = store$1;
|
|
24983
25491
|
|
|
24984
25492
|
const InvoiceDetailsContainer = ({
|
|
24985
25493
|
style,
|
|
@@ -25000,21 +25508,21 @@ const InvoiceDetailsContainer = ({
|
|
|
25000
25508
|
default:
|
|
25001
25509
|
return state;
|
|
25002
25510
|
}
|
|
25003
|
-
}, initialState);
|
|
25511
|
+
}, initialState$1);
|
|
25004
25512
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
25005
25513
|
style: { ...style
|
|
25006
25514
|
},
|
|
25007
25515
|
className: `pelcro-container pelcro-invoice-details-container ${className}`
|
|
25008
|
-
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25516
|
+
}, /*#__PURE__*/React__default.createElement(Provider$1, {
|
|
25009
25517
|
value: {
|
|
25010
25518
|
state,
|
|
25011
25519
|
dispatch
|
|
25012
25520
|
}
|
|
25013
25521
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25014
|
-
store,
|
|
25522
|
+
store: store$1,
|
|
25015
25523
|
key: i
|
|
25016
25524
|
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25017
|
-
store
|
|
25525
|
+
store: store$1
|
|
25018
25526
|
})));
|
|
25019
25527
|
};
|
|
25020
25528
|
|
|
@@ -25046,7 +25554,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
25046
25554
|
}) => {
|
|
25047
25555
|
const {
|
|
25048
25556
|
dispatch
|
|
25049
|
-
} = useContext(store);
|
|
25557
|
+
} = useContext(store$1);
|
|
25050
25558
|
const {
|
|
25051
25559
|
t
|
|
25052
25560
|
} = useTranslation("invoiceDetails");
|
|
@@ -25151,4 +25659,230 @@ const InvoiceDetailsModal = ({
|
|
|
25151
25659
|
};
|
|
25152
25660
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
25153
25661
|
|
|
25154
|
-
|
|
25662
|
+
const initialState = {
|
|
25663
|
+
selectedOption: ""
|
|
25664
|
+
};
|
|
25665
|
+
const store = /*#__PURE__*/createContext(initialState);
|
|
25666
|
+
const {
|
|
25667
|
+
Provider
|
|
25668
|
+
} = store;
|
|
25669
|
+
|
|
25670
|
+
const SubscriptionOptionsContainer = ({
|
|
25671
|
+
style,
|
|
25672
|
+
className = "",
|
|
25673
|
+
onRenewSubSuccess = () => {},
|
|
25674
|
+
onNewSubSuccess = () => {},
|
|
25675
|
+
children,
|
|
25676
|
+
...props
|
|
25677
|
+
}) => {
|
|
25678
|
+
const submit = ({
|
|
25679
|
+
selectedOption
|
|
25680
|
+
}, dispatch) => {
|
|
25681
|
+
if (selectedOption === "renew") return onRenewSubSuccess();
|
|
25682
|
+
if (selectedOption === "new") return onNewSubSuccess();
|
|
25683
|
+
};
|
|
25684
|
+
|
|
25685
|
+
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25686
|
+
switch (action.type) {
|
|
25687
|
+
case SWITCH_TO_NEW:
|
|
25688
|
+
return lib_7({ ...state,
|
|
25689
|
+
selectedOption: "new"
|
|
25690
|
+
});
|
|
25691
|
+
|
|
25692
|
+
case SWITCH_TO_RENEW:
|
|
25693
|
+
return lib_7({ ...state,
|
|
25694
|
+
selectedOption: "renew"
|
|
25695
|
+
});
|
|
25696
|
+
|
|
25697
|
+
case HANDLE_SUBMIT:
|
|
25698
|
+
return lib_4((state, dispatch) => submit(state));
|
|
25699
|
+
|
|
25700
|
+
default:
|
|
25701
|
+
return state;
|
|
25702
|
+
}
|
|
25703
|
+
}, initialState);
|
|
25704
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25705
|
+
style: { ...style
|
|
25706
|
+
},
|
|
25707
|
+
className: `pelcro-container pelcro-subscription-options-container ${className}`
|
|
25708
|
+
}, /*#__PURE__*/React__default.createElement(Provider, {
|
|
25709
|
+
value: {
|
|
25710
|
+
state,
|
|
25711
|
+
dispatch
|
|
25712
|
+
}
|
|
25713
|
+
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default.cloneElement(child, {
|
|
25714
|
+
store,
|
|
25715
|
+
key: i
|
|
25716
|
+
})) : /*#__PURE__*/React__default.cloneElement(children, {
|
|
25717
|
+
store
|
|
25718
|
+
})));
|
|
25719
|
+
};
|
|
25720
|
+
|
|
25721
|
+
var _path;
|
|
25722
|
+
|
|
25723
|
+
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); }
|
|
25724
|
+
|
|
25725
|
+
function SvgPlusCircle(props) {
|
|
25726
|
+
return /*#__PURE__*/React.createElement("svg", _extends({
|
|
25727
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
25728
|
+
className: "plc-h-6 plc-w-6",
|
|
25729
|
+
fill: "none",
|
|
25730
|
+
viewBox: "0 0 24 24",
|
|
25731
|
+
stroke: "currentColor",
|
|
25732
|
+
strokeWidth: 2
|
|
25733
|
+
}, props), _path || (_path = /*#__PURE__*/React.createElement("path", {
|
|
25734
|
+
strokeLinecap: "round",
|
|
25735
|
+
strokeLinejoin: "round",
|
|
25736
|
+
d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
25737
|
+
})));
|
|
25738
|
+
}
|
|
25739
|
+
|
|
25740
|
+
const SubscriptionOptionsNewButton = ({
|
|
25741
|
+
name,
|
|
25742
|
+
onClick,
|
|
25743
|
+
...otherProps
|
|
25744
|
+
}) => {
|
|
25745
|
+
const {
|
|
25746
|
+
dispatch,
|
|
25747
|
+
state: {
|
|
25748
|
+
selectedOption
|
|
25749
|
+
}
|
|
25750
|
+
} = useContext(store);
|
|
25751
|
+
const {
|
|
25752
|
+
t
|
|
25753
|
+
} = useTranslation("subscriptionOptions");
|
|
25754
|
+
const isChecked = selectedOption === "new";
|
|
25755
|
+
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25756
|
+
className: "plc-hidden pelcro-new-sub-option",
|
|
25757
|
+
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"}`,
|
|
25758
|
+
id: "pelcro-new-sub-option",
|
|
25759
|
+
name: "option",
|
|
25760
|
+
onChange: () => {
|
|
25761
|
+
dispatch({
|
|
25762
|
+
type: SWITCH_TO_NEW
|
|
25763
|
+
});
|
|
25764
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25765
|
+
},
|
|
25766
|
+
checked: isChecked
|
|
25767
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default.createElement(SvgPlusCircle, {
|
|
25768
|
+
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25769
|
+
}));
|
|
25770
|
+
};
|
|
25771
|
+
|
|
25772
|
+
const SubscriptionOptionsRenewButton = ({
|
|
25773
|
+
name,
|
|
25774
|
+
onClick,
|
|
25775
|
+
...otherProps
|
|
25776
|
+
}) => {
|
|
25777
|
+
const {
|
|
25778
|
+
dispatch,
|
|
25779
|
+
state: {
|
|
25780
|
+
selectedOption
|
|
25781
|
+
}
|
|
25782
|
+
} = useContext(store);
|
|
25783
|
+
const {
|
|
25784
|
+
t
|
|
25785
|
+
} = useTranslation("subscriptionOptions");
|
|
25786
|
+
const isChecked = selectedOption === "renew";
|
|
25787
|
+
return /*#__PURE__*/React__default.createElement(Radio, Object.assign({
|
|
25788
|
+
className: "plc-hidden pelcro-renew-sub-option",
|
|
25789
|
+
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"}`,
|
|
25790
|
+
id: "pelcro-renew-sub-option",
|
|
25791
|
+
name: "option",
|
|
25792
|
+
onChange: () => {
|
|
25793
|
+
dispatch({
|
|
25794
|
+
type: SWITCH_TO_RENEW
|
|
25795
|
+
});
|
|
25796
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25797
|
+
},
|
|
25798
|
+
checked: isChecked
|
|
25799
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default.createElement(SvgRefresh, {
|
|
25800
|
+
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25801
|
+
}));
|
|
25802
|
+
};
|
|
25803
|
+
|
|
25804
|
+
const SubscriptionOptionsSubmit = ({
|
|
25805
|
+
name,
|
|
25806
|
+
onClick,
|
|
25807
|
+
...otherProps
|
|
25808
|
+
}) => {
|
|
25809
|
+
const {
|
|
25810
|
+
dispatch,
|
|
25811
|
+
state: {
|
|
25812
|
+
selectedOption
|
|
25813
|
+
}
|
|
25814
|
+
} = useContext(store);
|
|
25815
|
+
const {
|
|
25816
|
+
t
|
|
25817
|
+
} = useTranslation("subscriptionOptions");
|
|
25818
|
+
return /*#__PURE__*/React__default.createElement(Button, Object.assign({
|
|
25819
|
+
onClick: () => {
|
|
25820
|
+
dispatch({
|
|
25821
|
+
type: HANDLE_SUBMIT
|
|
25822
|
+
});
|
|
25823
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25824
|
+
},
|
|
25825
|
+
disabled: !selectedOption
|
|
25826
|
+
}, otherProps), name !== null && name !== void 0 ? name : t("next"));
|
|
25827
|
+
};
|
|
25828
|
+
|
|
25829
|
+
const SubscriptionOptionsView = props => {
|
|
25830
|
+
const {
|
|
25831
|
+
t
|
|
25832
|
+
} = useTranslation("subscriptionOptions");
|
|
25833
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
25834
|
+
id: "pelcro-subscription-options-view"
|
|
25835
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
25836
|
+
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
25837
|
+
}, /*#__PURE__*/React__default.createElement("h4", {
|
|
25838
|
+
className: "plc-text-2xl plc-font-semibold"
|
|
25839
|
+
}, t("title")), /*#__PURE__*/React__default.createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default.createElement("form", {
|
|
25840
|
+
action: "javascript:void(0);",
|
|
25841
|
+
className: "plc-mt-2 pelcro-form"
|
|
25842
|
+
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default.createElement("div", {
|
|
25843
|
+
className: "plc-flex plc-justify-between plc-items-center"
|
|
25844
|
+
}, /*#__PURE__*/React__default.createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default.createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default.createElement(SubscriptionOptionsSubmit, {
|
|
25845
|
+
role: "submit",
|
|
25846
|
+
className: "plc-mt-4 plc-w-full",
|
|
25847
|
+
name: t("next"),
|
|
25848
|
+
id: "pelcro-submit"
|
|
25849
|
+
}))));
|
|
25850
|
+
};
|
|
25851
|
+
|
|
25852
|
+
const SubscriptionOptionsModal = ({
|
|
25853
|
+
onDisplay,
|
|
25854
|
+
onClose,
|
|
25855
|
+
...otherProps
|
|
25856
|
+
}) => {
|
|
25857
|
+
const {
|
|
25858
|
+
switchView,
|
|
25859
|
+
setProductsList
|
|
25860
|
+
} = usePelcro();
|
|
25861
|
+
|
|
25862
|
+
const onRenewSubSuccess = () => {
|
|
25863
|
+
var _otherProps$onRenewSu;
|
|
25864
|
+
|
|
25865
|
+
(_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
|
|
25866
|
+
setProductsList(getRenewableProducts());
|
|
25867
|
+
switchView("_plan-select-renew");
|
|
25868
|
+
};
|
|
25869
|
+
|
|
25870
|
+
const onNewSubSuccess = () => {
|
|
25871
|
+
var _otherProps$onNewSubS;
|
|
25872
|
+
|
|
25873
|
+
(_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
|
|
25874
|
+
switchView("plan-select");
|
|
25875
|
+
};
|
|
25876
|
+
|
|
25877
|
+
return /*#__PURE__*/React__default.createElement(Modal, {
|
|
25878
|
+
onDisplay: onDisplay,
|
|
25879
|
+
onClose: onClose,
|
|
25880
|
+
id: "pelcro-subscription-options-modal"
|
|
25881
|
+
}, /*#__PURE__*/React__default.createElement(ModalBody, null, /*#__PURE__*/React__default.createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
|
|
25882
|
+
onNewSubSuccess: onNewSubSuccess,
|
|
25883
|
+
onRenewSubSuccess: onRenewSubSuccess
|
|
25884
|
+
}))), /*#__PURE__*/React__default.createElement(ModalFooter, null, /*#__PURE__*/React__default.createElement(Authorship, null)));
|
|
25885
|
+
};
|
|
25886
|
+
SubscriptionOptionsModal.viewId = "subscription-options";
|
|
25887
|
+
|
|
25888
|
+
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 };
|