@pelcro/react-pelcro-js 3.2.0-beta.9 → 3.2.0
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 +522 -834
- package/dist/index.esm.js +523 -829
- package/dist/pelcro.css +0 -22
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -3461,9 +3461,9 @@ var paymentMethod_fr = {
|
|
|
3461
3461
|
select: select
|
|
3462
3462
|
};
|
|
3463
3463
|
|
|
3464
|
-
var title$
|
|
3464
|
+
var title$f = "Enter your email to subscribe to our newsletter";
|
|
3465
3465
|
var updateTitle$1 = "Update newsletter selections";
|
|
3466
|
-
var subtitle$
|
|
3466
|
+
var subtitle$7 = "We may use your email for other marketing communication";
|
|
3467
3467
|
var labels$p = {
|
|
3468
3468
|
submit: "Submit",
|
|
3469
3469
|
firstName: "First name",
|
|
@@ -3480,16 +3480,16 @@ var messages$r = {
|
|
|
3480
3480
|
here: "here"
|
|
3481
3481
|
};
|
|
3482
3482
|
var newsletter_en = {
|
|
3483
|
-
title: title$
|
|
3483
|
+
title: title$f,
|
|
3484
3484
|
updateTitle: updateTitle$1,
|
|
3485
|
-
subtitle: subtitle$
|
|
3485
|
+
subtitle: subtitle$7,
|
|
3486
3486
|
labels: labels$p,
|
|
3487
3487
|
messages: messages$r
|
|
3488
3488
|
};
|
|
3489
3489
|
|
|
3490
|
-
var title$
|
|
3490
|
+
var title$e = "Entrez votre adresse courriel pour vous abonner à notre infolettre";
|
|
3491
3491
|
var updateTitle = "Mettre à jour son choix d'infolettres";
|
|
3492
|
-
var subtitle$
|
|
3492
|
+
var subtitle$6 = "Nous pouvons utiliser votre adresse courriel pour d’autres communications marketing";
|
|
3493
3493
|
var labels$o = {
|
|
3494
3494
|
submit: "Lire l’article !",
|
|
3495
3495
|
firstName: "Prénom",
|
|
@@ -3506,9 +3506,9 @@ var messages$q = {
|
|
|
3506
3506
|
here: "ici"
|
|
3507
3507
|
};
|
|
3508
3508
|
var newsletter_fr = {
|
|
3509
|
-
title: title$
|
|
3509
|
+
title: title$e,
|
|
3510
3510
|
updateTitle: updateTitle,
|
|
3511
|
-
subtitle: subtitle$
|
|
3511
|
+
subtitle: subtitle$6,
|
|
3512
3512
|
labels: labels$o,
|
|
3513
3513
|
messages: messages$q
|
|
3514
3514
|
};
|
|
@@ -3765,8 +3765,8 @@ var login_fr = {
|
|
|
3765
3765
|
errors: errors$4
|
|
3766
3766
|
};
|
|
3767
3767
|
|
|
3768
|
-
var title$
|
|
3769
|
-
var subtitle$
|
|
3768
|
+
var title$d = "Create an account";
|
|
3769
|
+
var subtitle$5 = "Enter your email and password below";
|
|
3770
3770
|
var labels$h = {
|
|
3771
3771
|
signUpFacebook: "Sign up with Facebook",
|
|
3772
3772
|
signUpGoogle: "Sign up with Google",
|
|
@@ -3851,8 +3851,8 @@ var redeem$1 = {
|
|
|
3851
3851
|
}
|
|
3852
3852
|
};
|
|
3853
3853
|
var register_en = {
|
|
3854
|
-
title: title$
|
|
3855
|
-
subtitle: subtitle$
|
|
3854
|
+
title: title$d,
|
|
3855
|
+
subtitle: subtitle$5,
|
|
3856
3856
|
labels: labels$h,
|
|
3857
3857
|
messages: messages$h,
|
|
3858
3858
|
errors: errors$3,
|
|
@@ -3860,8 +3860,8 @@ var register_en = {
|
|
|
3860
3860
|
redeem: redeem$1
|
|
3861
3861
|
};
|
|
3862
3862
|
|
|
3863
|
-
var title$
|
|
3864
|
-
var subtitle$
|
|
3863
|
+
var title$c = "Créer un compte";
|
|
3864
|
+
var subtitle$4 = "Entrez votre courriel et votre mot de passe ci-dessous";
|
|
3865
3865
|
var labels$g = {
|
|
3866
3866
|
signUpFacebook: "Inscrivez-vous avec Facebook",
|
|
3867
3867
|
signUpGoogle: "Inscrivez-vous avec Google",
|
|
@@ -3947,8 +3947,8 @@ var redeem = {
|
|
|
3947
3947
|
}
|
|
3948
3948
|
};
|
|
3949
3949
|
var register_fr = {
|
|
3950
|
-
title: title$
|
|
3951
|
-
subtitle: subtitle$
|
|
3950
|
+
title: title$c,
|
|
3951
|
+
subtitle: subtitle$4,
|
|
3952
3952
|
labels: labels$g,
|
|
3953
3953
|
messages: messages$g,
|
|
3954
3954
|
errors: errors$2,
|
|
@@ -4008,7 +4008,7 @@ var userEdit_fr = {
|
|
|
4008
4008
|
messages: messages$e
|
|
4009
4009
|
};
|
|
4010
4010
|
|
|
4011
|
-
var title$
|
|
4011
|
+
var title$b = "Enter your shipping address";
|
|
4012
4012
|
var selectAddressTitle$1 = "Please select an address";
|
|
4013
4013
|
var selectAddressSubtitle$1 = "Select one of your saved addresses, or add a new one";
|
|
4014
4014
|
var labels$d = {
|
|
@@ -4031,7 +4031,7 @@ var messages$d = {
|
|
|
4031
4031
|
subRedeemed: "Your subscription has been redeemed."
|
|
4032
4032
|
};
|
|
4033
4033
|
var address_en = {
|
|
4034
|
-
title: title$
|
|
4034
|
+
title: title$b,
|
|
4035
4035
|
selectAddressTitle: selectAddressTitle$1,
|
|
4036
4036
|
selectAddressSubtitle: selectAddressSubtitle$1,
|
|
4037
4037
|
labels: labels$d,
|
|
@@ -4039,7 +4039,7 @@ var address_en = {
|
|
|
4039
4039
|
messages: messages$d
|
|
4040
4040
|
};
|
|
4041
4041
|
|
|
4042
|
-
var title$
|
|
4042
|
+
var title$a = "Entrez votre adresse de livraison";
|
|
4043
4043
|
var selectAddressTitle = "Veuillez sélectionner une adresse";
|
|
4044
4044
|
var selectAddressSubtitle = "Choisissez l'une de vos adresses ou créez-en une nouvelle";
|
|
4045
4045
|
var labels$c = {
|
|
@@ -4062,7 +4062,7 @@ var messages$c = {
|
|
|
4062
4062
|
subRedeemed: "Votre abonnement a bien été activé."
|
|
4063
4063
|
};
|
|
4064
4064
|
var address_fr = {
|
|
4065
|
-
title: title$
|
|
4065
|
+
title: title$a,
|
|
4066
4066
|
selectAddressTitle: selectAddressTitle,
|
|
4067
4067
|
selectAddressSubtitle: selectAddressSubtitle,
|
|
4068
4068
|
labels: labels$c,
|
|
@@ -4070,8 +4070,8 @@ var address_fr = {
|
|
|
4070
4070
|
messages: messages$c
|
|
4071
4071
|
};
|
|
4072
4072
|
|
|
4073
|
-
var title$
|
|
4074
|
-
var subtitle$
|
|
4073
|
+
var title$9 = "Reset your password";
|
|
4074
|
+
var subtitle$3 = "Enter a new password below";
|
|
4075
4075
|
var email$3 = "Email";
|
|
4076
4076
|
var password$3 = "Password";
|
|
4077
4077
|
var confirmPassword$1 = "Confirm password";
|
|
@@ -4079,8 +4079,8 @@ var submit$5 = "Submit";
|
|
|
4079
4079
|
var required$5 = "Required";
|
|
4080
4080
|
var passwordUpdated$1 = "Password has been updated, please login with the new password";
|
|
4081
4081
|
var passwordReset_en = {
|
|
4082
|
-
title: title$
|
|
4083
|
-
subtitle: subtitle$
|
|
4082
|
+
title: title$9,
|
|
4083
|
+
subtitle: subtitle$3,
|
|
4084
4084
|
email: email$3,
|
|
4085
4085
|
password: password$3,
|
|
4086
4086
|
confirmPassword: confirmPassword$1,
|
|
@@ -4089,8 +4089,8 @@ var passwordReset_en = {
|
|
|
4089
4089
|
passwordUpdated: passwordUpdated$1
|
|
4090
4090
|
};
|
|
4091
4091
|
|
|
4092
|
-
var title$
|
|
4093
|
-
var subtitle$
|
|
4092
|
+
var title$8 = "Réinitialiser votre mot de passe";
|
|
4093
|
+
var subtitle$2 = "Entrez un nouveau mot de passe ci-dessous";
|
|
4094
4094
|
var email$2 = "Adresse courriel";
|
|
4095
4095
|
var password$2 = "Mot de passe";
|
|
4096
4096
|
var confirmPassword = "Confirmer le mot de passe";
|
|
@@ -4098,8 +4098,8 @@ var submit$4 = "Soumettre";
|
|
|
4098
4098
|
var required$4 = "Champs obligatoires";
|
|
4099
4099
|
var passwordUpdated = "Votre mot de passe a été mis à jour, veuillez vous connecter avec celui-ci";
|
|
4100
4100
|
var passwordReset_fr = {
|
|
4101
|
-
title: title$
|
|
4102
|
-
subtitle: subtitle$
|
|
4101
|
+
title: title$8,
|
|
4102
|
+
subtitle: subtitle$2,
|
|
4103
4103
|
email: email$2,
|
|
4104
4104
|
password: password$2,
|
|
4105
4105
|
confirmPassword: confirmPassword,
|
|
@@ -4108,7 +4108,7 @@ var passwordReset_fr = {
|
|
|
4108
4108
|
passwordUpdated: passwordUpdated
|
|
4109
4109
|
};
|
|
4110
4110
|
|
|
4111
|
-
var title$
|
|
4111
|
+
var title$7 = "Forgot your password?";
|
|
4112
4112
|
var email$1 = "Email";
|
|
4113
4113
|
var password$1 = "Password";
|
|
4114
4114
|
var submit$3 = "Submit";
|
|
@@ -4119,7 +4119,7 @@ var messages$b = {
|
|
|
4119
4119
|
loginHere: "login here."
|
|
4120
4120
|
};
|
|
4121
4121
|
var passwordForgot_en = {
|
|
4122
|
-
title: title$
|
|
4122
|
+
title: title$7,
|
|
4123
4123
|
email: email$1,
|
|
4124
4124
|
password: password$1,
|
|
4125
4125
|
submit: submit$3,
|
|
@@ -4128,7 +4128,7 @@ var passwordForgot_en = {
|
|
|
4128
4128
|
messages: messages$b
|
|
4129
4129
|
};
|
|
4130
4130
|
|
|
4131
|
-
var title$
|
|
4131
|
+
var title$6 = "Mot de passe oublié ?";
|
|
4132
4132
|
var email = "Courriel";
|
|
4133
4133
|
var password = "Mot de passe";
|
|
4134
4134
|
var submit$2 = "Soumettre";
|
|
@@ -4139,7 +4139,7 @@ var messages$a = {
|
|
|
4139
4139
|
loginHere: "Connectez-vous ici"
|
|
4140
4140
|
};
|
|
4141
4141
|
var passwordForgot_fr = {
|
|
4142
|
-
title: title$
|
|
4142
|
+
title: title$6,
|
|
4143
4143
|
email: email,
|
|
4144
4144
|
password: password,
|
|
4145
4145
|
submit: submit$2,
|
|
@@ -4148,7 +4148,7 @@ var passwordForgot_fr = {
|
|
|
4148
4148
|
messages: messages$a
|
|
4149
4149
|
};
|
|
4150
4150
|
|
|
4151
|
-
var title$
|
|
4151
|
+
var title$5 = "Change your password";
|
|
4152
4152
|
var currentPassword$1 = "Current password";
|
|
4153
4153
|
var newPassword$1 = "New password";
|
|
4154
4154
|
var confirmNewPassword$1 = "Confirm new password";
|
|
@@ -4158,7 +4158,7 @@ var passwordChanged$1 = "Password has been changed, please login with the new pa
|
|
|
4158
4158
|
var passwordsNotMatching$1 = "Passwords don't match";
|
|
4159
4159
|
var weakPassword$1 = "Your password must contain at least 6 characters";
|
|
4160
4160
|
var passwordChange_en = {
|
|
4161
|
-
title: title$
|
|
4161
|
+
title: title$5,
|
|
4162
4162
|
currentPassword: currentPassword$1,
|
|
4163
4163
|
newPassword: newPassword$1,
|
|
4164
4164
|
confirmNewPassword: confirmNewPassword$1,
|
|
@@ -4169,7 +4169,7 @@ var passwordChange_en = {
|
|
|
4169
4169
|
weakPassword: weakPassword$1
|
|
4170
4170
|
};
|
|
4171
4171
|
|
|
4172
|
-
var title$
|
|
4172
|
+
var title$4 = "Changez votre mot de passe";
|
|
4173
4173
|
var currentPassword = "Mot de passe actuel";
|
|
4174
4174
|
var newPassword = "Nouveau mot de passe";
|
|
4175
4175
|
var confirmNewPassword = "Confirmer le nouveau mot de passe";
|
|
@@ -4179,7 +4179,7 @@ var passwordChanged = "Le mot de passe a été modifié, veuillez vous connecter
|
|
|
4179
4179
|
var passwordsNotMatching = "Les mots de passe ne correspondent pas";
|
|
4180
4180
|
var weakPassword = "Votre mot de passe doit contenir au moins 6";
|
|
4181
4181
|
var passwordChange_fr = {
|
|
4182
|
-
title: title$
|
|
4182
|
+
title: title$4,
|
|
4183
4183
|
currentPassword: currentPassword,
|
|
4184
4184
|
newPassword: newPassword,
|
|
4185
4185
|
confirmNewPassword: confirmNewPassword,
|
|
@@ -4190,8 +4190,8 @@ var passwordChange_fr = {
|
|
|
4190
4190
|
weakPassword: weakPassword
|
|
4191
4191
|
};
|
|
4192
4192
|
|
|
4193
|
-
var title$
|
|
4194
|
-
var subtitle$
|
|
4193
|
+
var title$3 = "Votre panier";
|
|
4194
|
+
var subtitle$1 = "Terminez votre achat ci-dessous";
|
|
4195
4195
|
var name$1 = "Produit";
|
|
4196
4196
|
var quantity$1 = "Quantité";
|
|
4197
4197
|
var price$1 = "Prix";
|
|
@@ -4202,8 +4202,8 @@ var confirm$3 = "Passer à la caisse";
|
|
|
4202
4202
|
var empty$1 = "Votre panier est vide.";
|
|
4203
4203
|
var removeAll$1 = "Vider";
|
|
4204
4204
|
var cart_fr = {
|
|
4205
|
-
title: title$
|
|
4206
|
-
subtitle: subtitle$
|
|
4205
|
+
title: title$3,
|
|
4206
|
+
subtitle: subtitle$1,
|
|
4207
4207
|
name: name$1,
|
|
4208
4208
|
quantity: quantity$1,
|
|
4209
4209
|
price: price$1,
|
|
@@ -4215,8 +4215,8 @@ var cart_fr = {
|
|
|
4215
4215
|
removeAll: removeAll$1
|
|
4216
4216
|
};
|
|
4217
4217
|
|
|
4218
|
-
var title$
|
|
4219
|
-
var subtitle
|
|
4218
|
+
var title$2 = "Your shopping cart";
|
|
4219
|
+
var subtitle = "Comple your purchase below";
|
|
4220
4220
|
var name = "Name";
|
|
4221
4221
|
var quantity = "Quantity";
|
|
4222
4222
|
var price = "Price";
|
|
@@ -4227,8 +4227,8 @@ var confirm$2 = "Checkout";
|
|
|
4227
4227
|
var empty = "Your cart is empty.";
|
|
4228
4228
|
var removeAll = "Remove all";
|
|
4229
4229
|
var cart_en = {
|
|
4230
|
-
title: title$
|
|
4231
|
-
subtitle: subtitle
|
|
4230
|
+
title: title$2,
|
|
4231
|
+
subtitle: subtitle,
|
|
4232
4232
|
name: name,
|
|
4233
4233
|
quantity: quantity,
|
|
4234
4234
|
price: price,
|
|
@@ -4666,7 +4666,7 @@ var verifyEmail_fr = {
|
|
|
4666
4666
|
messages: messages
|
|
4667
4667
|
};
|
|
4668
4668
|
|
|
4669
|
-
var title$
|
|
4669
|
+
var title$1 = "Invoice details";
|
|
4670
4670
|
var labels$1 = {
|
|
4671
4671
|
summary: "Summary",
|
|
4672
4672
|
total: "Total",
|
|
@@ -4679,12 +4679,12 @@ var buttons$1 = {
|
|
|
4679
4679
|
pay: "Pay now"
|
|
4680
4680
|
};
|
|
4681
4681
|
var invoiceDetails_en = {
|
|
4682
|
-
title: title$
|
|
4682
|
+
title: title$1,
|
|
4683
4683
|
labels: labels$1,
|
|
4684
4684
|
buttons: buttons$1
|
|
4685
4685
|
};
|
|
4686
4686
|
|
|
4687
|
-
var title
|
|
4687
|
+
var title = "Détails de la facture";
|
|
4688
4688
|
var labels = {
|
|
4689
4689
|
summary: "Résumé",
|
|
4690
4690
|
total: "Total",
|
|
@@ -4697,37 +4697,11 @@ var buttons = {
|
|
|
4697
4697
|
pay: "Payer"
|
|
4698
4698
|
};
|
|
4699
4699
|
var invoiceDetails_fr = {
|
|
4700
|
-
title: title
|
|
4700
|
+
title: title,
|
|
4701
4701
|
labels: labels,
|
|
4702
4702
|
buttons: buttons
|
|
4703
4703
|
};
|
|
4704
4704
|
|
|
4705
|
-
var title$1 = "Renewal options";
|
|
4706
|
-
var subtitle$1 = "Select one of the options below to continue";
|
|
4707
|
-
var next$1 = "Next";
|
|
4708
|
-
var addNew$1 = "Add Another Subscription";
|
|
4709
|
-
var renew$1 = "Renew Existing Subscription";
|
|
4710
|
-
var subscriptionOptions_en = {
|
|
4711
|
-
title: title$1,
|
|
4712
|
-
subtitle: subtitle$1,
|
|
4713
|
-
next: next$1,
|
|
4714
|
-
addNew: addNew$1,
|
|
4715
|
-
renew: renew$1
|
|
4716
|
-
};
|
|
4717
|
-
|
|
4718
|
-
var title = "Renewal options";
|
|
4719
|
-
var subtitle = "Select one of the options below to continue";
|
|
4720
|
-
var next = "Next";
|
|
4721
|
-
var addNew = "Add Another Subscription";
|
|
4722
|
-
var renew = "Renew Existing Subscription";
|
|
4723
|
-
var subscriptionOptions_fr = {
|
|
4724
|
-
title: title,
|
|
4725
|
-
subtitle: subtitle,
|
|
4726
|
-
next: next,
|
|
4727
|
-
addNew: addNew,
|
|
4728
|
-
renew: renew
|
|
4729
|
-
};
|
|
4730
|
-
|
|
4731
4705
|
function create$1(createState) {
|
|
4732
4706
|
let state;
|
|
4733
4707
|
const listeners = new Set();
|
|
@@ -6077,7 +6051,7 @@ class PelcroActions {
|
|
|
6077
6051
|
view,
|
|
6078
6052
|
cartItems,
|
|
6079
6053
|
...otherStateFields
|
|
6080
|
-
} = initialState$
|
|
6054
|
+
} = initialState$i;
|
|
6081
6055
|
this.set(otherStateFields);
|
|
6082
6056
|
});
|
|
6083
6057
|
|
|
@@ -6101,16 +6075,6 @@ class PelcroActions {
|
|
|
6101
6075
|
});
|
|
6102
6076
|
}
|
|
6103
6077
|
|
|
6104
|
-
if (view === "subscription-options") {
|
|
6105
|
-
const noRenewableProducts = getRenewableProducts().length === 0;
|
|
6106
|
-
|
|
6107
|
-
if (noRenewableProducts) {
|
|
6108
|
-
return this.set({
|
|
6109
|
-
view: "plan-select"
|
|
6110
|
-
});
|
|
6111
|
-
}
|
|
6112
|
-
}
|
|
6113
|
-
|
|
6114
6078
|
this.set({
|
|
6115
6079
|
view
|
|
6116
6080
|
});
|
|
@@ -6185,26 +6149,6 @@ class PelcroActions {
|
|
|
6185
6149
|
}
|
|
6186
6150
|
});
|
|
6187
6151
|
|
|
6188
|
-
_defineProperty$3(this, "setProductsList", products => {
|
|
6189
|
-
if (!Array.isArray(products)) {
|
|
6190
|
-
return console.error(`setProductsList expects an array of products as an argument, got an argument of type ${typeof products} instead`);
|
|
6191
|
-
}
|
|
6192
|
-
|
|
6193
|
-
const allowedProducts = window.Pelcro.product.list();
|
|
6194
|
-
const validProducts = products.filter(product => {
|
|
6195
|
-
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));
|
|
6196
|
-
|
|
6197
|
-
if (!isValidProduct) {
|
|
6198
|
-
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);
|
|
6199
|
-
}
|
|
6200
|
-
|
|
6201
|
-
return isValidProduct;
|
|
6202
|
-
});
|
|
6203
|
-
this.set({
|
|
6204
|
-
productsList: validProducts
|
|
6205
|
-
});
|
|
6206
|
-
});
|
|
6207
|
-
|
|
6208
6152
|
_defineProperty$3(this, "setProduct", id => {
|
|
6209
6153
|
const product = window.Pelcro.product.getById(id);
|
|
6210
6154
|
if (!product) return console.error("invalid product id");
|
|
@@ -6426,12 +6370,10 @@ class PelcroCallbacks {
|
|
|
6426
6370
|
|
|
6427
6371
|
}
|
|
6428
6372
|
|
|
6429
|
-
|
|
6430
|
-
const initialState$j = {
|
|
6373
|
+
const initialState$i = {
|
|
6431
6374
|
// View
|
|
6432
6375
|
view: null,
|
|
6433
6376
|
// Plans
|
|
6434
|
-
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 : [],
|
|
6435
6377
|
product: null,
|
|
6436
6378
|
plan: null,
|
|
6437
6379
|
isGift: false,
|
|
@@ -6458,7 +6400,7 @@ const createPelcroStore = () => createStore(middleware_3((set, get) => {
|
|
|
6458
6400
|
return {
|
|
6459
6401
|
// Store setter
|
|
6460
6402
|
set,
|
|
6461
|
-
...initialState$
|
|
6403
|
+
...initialState$i,
|
|
6462
6404
|
// State actions
|
|
6463
6405
|
...actions,
|
|
6464
6406
|
// Callbacks
|
|
@@ -6813,30 +6755,6 @@ function userMustVerifyEmail() {
|
|
|
6813
6755
|
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;
|
|
6814
6756
|
return window.Pelcro.user.isAuthenticated() && isEmailVerificationEnabled && !isUserEmailVerified;
|
|
6815
6757
|
}
|
|
6816
|
-
function getRenewableProducts() {
|
|
6817
|
-
var _window$Pelcro$subscr, _window$Pelcro$subscr2;
|
|
6818
|
-
|
|
6819
|
-
const renewableSubs = (_window$Pelcro$subscr = (_window$Pelcro$subscr2 = window.Pelcro.subscription.list()) === null || _window$Pelcro$subscr2 === void 0 ? void 0 : _window$Pelcro$subscr2.filter(sub => sub.status === "active" && sub.cancel_at_period_end === 1)) !== null && _window$Pelcro$subscr !== void 0 ? _window$Pelcro$subscr : [];
|
|
6820
|
-
const renewableProductsIds = [...new Set(renewableSubs.map(sub => sub.plan.product.id))];
|
|
6821
|
-
const renewablePlansIds = [...new Set(renewableSubs.map(sub => sub.plan.id))];
|
|
6822
|
-
const {
|
|
6823
|
-
productsList
|
|
6824
|
-
} = usePelcro.getStore();
|
|
6825
|
-
return productsList.map(product => {
|
|
6826
|
-
if (renewableProductsIds.includes(product.id)) {
|
|
6827
|
-
const renewablePlans = getRenewablePlansOnly(product);
|
|
6828
|
-
return { ...product,
|
|
6829
|
-
plans: renewablePlans
|
|
6830
|
-
};
|
|
6831
|
-
}
|
|
6832
|
-
}).filter(product => product);
|
|
6833
|
-
|
|
6834
|
-
function getRenewablePlansOnly(product) {
|
|
6835
|
-
var _product$plans$filter, _product$plans;
|
|
6836
|
-
|
|
6837
|
-
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 : [];
|
|
6838
|
-
}
|
|
6839
|
-
}
|
|
6840
6758
|
|
|
6841
6759
|
const resources = {
|
|
6842
6760
|
en: {
|
|
@@ -6861,8 +6779,7 @@ const resources = {
|
|
|
6861
6779
|
dashboard: dashboard_en,
|
|
6862
6780
|
select: select_en,
|
|
6863
6781
|
notification: notification_en,
|
|
6864
|
-
invoiceDetails: invoiceDetails_en
|
|
6865
|
-
subscriptionOptions: subscriptionOptions_en
|
|
6782
|
+
invoiceDetails: invoiceDetails_en
|
|
6866
6783
|
},
|
|
6867
6784
|
fr: {
|
|
6868
6785
|
common: common_fr,
|
|
@@ -6886,8 +6803,7 @@ const resources = {
|
|
|
6886
6803
|
dashboard: dashboard_fr,
|
|
6887
6804
|
select: select_fr,
|
|
6888
6805
|
notification: notification_fr,
|
|
6889
|
-
invoiceDetails: invoiceDetails_fr
|
|
6890
|
-
subscriptionOptions: subscriptionOptions_fr
|
|
6806
|
+
invoiceDetails: invoiceDetails_fr
|
|
6891
6807
|
}
|
|
6892
6808
|
}; // set UI language to the page language or default to the language in site settings
|
|
6893
6809
|
|
|
@@ -7178,8 +7094,8 @@ const saveToMetadataButton = new SaveToMetadataButtonClass();
|
|
|
7178
7094
|
|
|
7179
7095
|
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}}
|
|
7180
7096
|
|
|
7181
|
-
function _extends$
|
|
7182
|
-
_extends$
|
|
7097
|
+
function _extends$z() {
|
|
7098
|
+
_extends$z = Object.assign || function (target) {
|
|
7183
7099
|
for (var i = 1; i < arguments.length; i++) {
|
|
7184
7100
|
var source = arguments[i];
|
|
7185
7101
|
|
|
@@ -7193,7 +7109,7 @@ function _extends$A() {
|
|
|
7193
7109
|
return target;
|
|
7194
7110
|
};
|
|
7195
7111
|
|
|
7196
|
-
return _extends$
|
|
7112
|
+
return _extends$z.apply(this, arguments);
|
|
7197
7113
|
}
|
|
7198
7114
|
|
|
7199
7115
|
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
@@ -7283,7 +7199,7 @@ var clearFromRemoveQueue = function clearFromRemoveQueue(toastId) {
|
|
|
7283
7199
|
var reducer = function reducer(state, action) {
|
|
7284
7200
|
switch (action.type) {
|
|
7285
7201
|
case ActionType.ADD_TOAST:
|
|
7286
|
-
return _extends$
|
|
7202
|
+
return _extends$z({}, state, {
|
|
7287
7203
|
toasts: [action.toast].concat(state.toasts).slice(0, TOAST_LIMIT)
|
|
7288
7204
|
});
|
|
7289
7205
|
|
|
@@ -7293,9 +7209,9 @@ var reducer = function reducer(state, action) {
|
|
|
7293
7209
|
clearFromRemoveQueue(action.toast.id);
|
|
7294
7210
|
}
|
|
7295
7211
|
|
|
7296
|
-
return _extends$
|
|
7212
|
+
return _extends$z({}, state, {
|
|
7297
7213
|
toasts: state.toasts.map(function (t) {
|
|
7298
|
-
return t.id === action.toast.id ? _extends$
|
|
7214
|
+
return t.id === action.toast.id ? _extends$z({}, t, action.toast) : t;
|
|
7299
7215
|
})
|
|
7300
7216
|
});
|
|
7301
7217
|
|
|
@@ -7322,9 +7238,9 @@ var reducer = function reducer(state, action) {
|
|
|
7322
7238
|
});
|
|
7323
7239
|
}
|
|
7324
7240
|
|
|
7325
|
-
return _extends$
|
|
7241
|
+
return _extends$z({}, state, {
|
|
7326
7242
|
toasts: state.toasts.map(function (t) {
|
|
7327
|
-
return t.id === toastId || toastId === undefined ? _extends$
|
|
7243
|
+
return t.id === toastId || toastId === undefined ? _extends$z({}, t, {
|
|
7328
7244
|
visible: false
|
|
7329
7245
|
}) : t;
|
|
7330
7246
|
})
|
|
@@ -7332,28 +7248,28 @@ var reducer = function reducer(state, action) {
|
|
|
7332
7248
|
|
|
7333
7249
|
case ActionType.REMOVE_TOAST:
|
|
7334
7250
|
if (action.toastId === undefined) {
|
|
7335
|
-
return _extends$
|
|
7251
|
+
return _extends$z({}, state, {
|
|
7336
7252
|
toasts: []
|
|
7337
7253
|
});
|
|
7338
7254
|
}
|
|
7339
7255
|
|
|
7340
|
-
return _extends$
|
|
7256
|
+
return _extends$z({}, state, {
|
|
7341
7257
|
toasts: state.toasts.filter(function (t) {
|
|
7342
7258
|
return t.id !== action.toastId;
|
|
7343
7259
|
})
|
|
7344
7260
|
});
|
|
7345
7261
|
|
|
7346
7262
|
case ActionType.START_PAUSE:
|
|
7347
|
-
return _extends$
|
|
7263
|
+
return _extends$z({}, state, {
|
|
7348
7264
|
pausedAt: action.time
|
|
7349
7265
|
});
|
|
7350
7266
|
|
|
7351
7267
|
case ActionType.END_PAUSE:
|
|
7352
7268
|
var diff = action.time - (state.pausedAt || 0);
|
|
7353
|
-
return _extends$
|
|
7269
|
+
return _extends$z({}, state, {
|
|
7354
7270
|
pausedAt: undefined,
|
|
7355
7271
|
toasts: state.toasts.map(function (t) {
|
|
7356
|
-
return _extends$
|
|
7272
|
+
return _extends$z({}, t, {
|
|
7357
7273
|
pauseDuration: t.pauseDuration + diff
|
|
7358
7274
|
});
|
|
7359
7275
|
})
|
|
@@ -7400,12 +7316,12 @@ var useStore = function useStore(toastOptions) {
|
|
|
7400
7316
|
var mergedToasts = state.toasts.map(function (t) {
|
|
7401
7317
|
var _toastOptions$t$type, _toastOptions, _toastOptions$t$type2;
|
|
7402
7318
|
|
|
7403
|
-
return _extends$
|
|
7319
|
+
return _extends$z({}, toastOptions, toastOptions[t.type], t, {
|
|
7404
7320
|
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],
|
|
7405
|
-
style: _extends$
|
|
7321
|
+
style: _extends$z({}, toastOptions.style, (_toastOptions$t$type2 = toastOptions[t.type]) == null ? void 0 : _toastOptions$t$type2.style, t.style)
|
|
7406
7322
|
});
|
|
7407
7323
|
});
|
|
7408
|
-
return _extends$
|
|
7324
|
+
return _extends$z({}, state, {
|
|
7409
7325
|
toasts: mergedToasts
|
|
7410
7326
|
});
|
|
7411
7327
|
};
|
|
@@ -7415,7 +7331,7 @@ var createToast = function createToast(message, type, opts) {
|
|
|
7415
7331
|
type = 'blank';
|
|
7416
7332
|
}
|
|
7417
7333
|
|
|
7418
|
-
return _extends$
|
|
7334
|
+
return _extends$z({
|
|
7419
7335
|
createdAt: Date.now(),
|
|
7420
7336
|
visible: true,
|
|
7421
7337
|
type: type,
|
|
@@ -7465,14 +7381,14 @@ toast.remove = function (toastId) {
|
|
|
7465
7381
|
};
|
|
7466
7382
|
|
|
7467
7383
|
toast.promise = function (promise, msgs, opts) {
|
|
7468
|
-
var id = toast.loading(msgs.loading, _extends$
|
|
7384
|
+
var id = toast.loading(msgs.loading, _extends$z({}, opts, opts == null ? void 0 : opts.loading));
|
|
7469
7385
|
promise.then(function (p) {
|
|
7470
|
-
toast.success(resolveValue(msgs.success, p), _extends$
|
|
7386
|
+
toast.success(resolveValue(msgs.success, p), _extends$z({
|
|
7471
7387
|
id: id
|
|
7472
7388
|
}, opts, opts == null ? void 0 : opts.success));
|
|
7473
7389
|
return p;
|
|
7474
7390
|
})["catch"](function (e) {
|
|
7475
|
-
toast.error(resolveValue(msgs.error, e), _extends$
|
|
7391
|
+
toast.error(resolveValue(msgs.error, e), _extends$z({
|
|
7476
7392
|
id: id
|
|
7477
7393
|
}, opts, opts == null ? void 0 : opts.error));
|
|
7478
7394
|
});
|
|
@@ -7811,7 +7727,7 @@ var ToastBar = /*#__PURE__*/React.memo(function (_ref2) {
|
|
|
7811
7727
|
var message = React.createElement(Message, Object.assign({}, toast.ariaProps), resolveValue(toast.message, toast));
|
|
7812
7728
|
return React.createElement(ToastBarBase, {
|
|
7813
7729
|
className: toast.className,
|
|
7814
|
-
style: _extends$
|
|
7730
|
+
style: _extends$z({}, animationStyle, style, toast.style)
|
|
7815
7731
|
}, typeof children === 'function' ? children({
|
|
7816
7732
|
icon: icon,
|
|
7817
7733
|
message: message
|
|
@@ -7841,7 +7757,7 @@ var getPositionStyle = function getPositionStyle(position, offset) {
|
|
|
7841
7757
|
} : position.includes('right') ? {
|
|
7842
7758
|
justifyContent: 'flex-end'
|
|
7843
7759
|
} : {};
|
|
7844
|
-
return _extends$
|
|
7760
|
+
return _extends$z({
|
|
7845
7761
|
left: 0,
|
|
7846
7762
|
right: 0,
|
|
7847
7763
|
display: 'flex',
|
|
@@ -7868,7 +7784,7 @@ var Toaster = function Toaster(_ref) {
|
|
|
7868
7784
|
handlers = _useToaster.handlers;
|
|
7869
7785
|
|
|
7870
7786
|
return React.createElement("div", {
|
|
7871
|
-
style: _extends$
|
|
7787
|
+
style: _extends$z({
|
|
7872
7788
|
position: 'fixed',
|
|
7873
7789
|
zIndex: 9999,
|
|
7874
7790
|
top: DEFAULT_OFFSET,
|
|
@@ -7903,82 +7819,82 @@ var Toaster = function Toaster(_ref) {
|
|
|
7903
7819
|
}));
|
|
7904
7820
|
};
|
|
7905
7821
|
|
|
7906
|
-
var _path$
|
|
7822
|
+
var _path$w;
|
|
7907
7823
|
|
|
7908
|
-
function _extends$
|
|
7824
|
+
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); }
|
|
7909
7825
|
|
|
7910
7826
|
function SvgCheckSolid(props) {
|
|
7911
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
7827
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$y({
|
|
7912
7828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7913
7829
|
className: "h-5 w-5",
|
|
7914
7830
|
viewBox: "0 0 20 20",
|
|
7915
7831
|
fill: "currentColor"
|
|
7916
|
-
}, props), _path$
|
|
7832
|
+
}, props), _path$w || (_path$w = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7917
7833
|
fillRule: "evenodd",
|
|
7918
7834
|
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",
|
|
7919
7835
|
clipRule: "evenodd"
|
|
7920
7836
|
})));
|
|
7921
7837
|
}
|
|
7922
7838
|
|
|
7923
|
-
var _path$
|
|
7839
|
+
var _path$v;
|
|
7924
7840
|
|
|
7925
|
-
function _extends$
|
|
7841
|
+
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); }
|
|
7926
7842
|
|
|
7927
7843
|
function SvgXIcon(props) {
|
|
7928
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
7844
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$x({
|
|
7929
7845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7930
7846
|
viewBox: "0 0 20 20",
|
|
7931
7847
|
fill: "currentColor"
|
|
7932
|
-
}, props), _path$
|
|
7848
|
+
}, props), _path$v || (_path$v = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7933
7849
|
fill: "evenodd",
|
|
7934
7850
|
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",
|
|
7935
7851
|
clipRule: "evenodd"
|
|
7936
7852
|
})));
|
|
7937
7853
|
}
|
|
7938
7854
|
|
|
7939
|
-
var _path$
|
|
7855
|
+
var _path$u;
|
|
7940
7856
|
|
|
7941
|
-
function _extends$
|
|
7857
|
+
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); }
|
|
7942
7858
|
|
|
7943
7859
|
function SvgXIconSolid(props) {
|
|
7944
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
7860
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$w({
|
|
7945
7861
|
className: "plc-w-4 plc-h-4",
|
|
7946
7862
|
fill: "currentColor",
|
|
7947
7863
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7948
7864
|
viewBox: "0 0 100 100"
|
|
7949
|
-
}, props), _path$
|
|
7865
|
+
}, props), _path$u || (_path$u = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7950
7866
|
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"
|
|
7951
7867
|
})));
|
|
7952
7868
|
}
|
|
7953
7869
|
|
|
7954
|
-
var _path$
|
|
7870
|
+
var _path$t;
|
|
7955
7871
|
|
|
7956
|
-
function _extends$
|
|
7872
|
+
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); }
|
|
7957
7873
|
|
|
7958
7874
|
function SvgExclamation(props) {
|
|
7959
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
7875
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$v({
|
|
7960
7876
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
7961
7877
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7962
7878
|
viewBox: "0 0 20 20",
|
|
7963
7879
|
fill: "currentColor"
|
|
7964
|
-
}, props), _path$
|
|
7880
|
+
}, props), _path$t || (_path$t = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7965
7881
|
fillRule: "evenodd",
|
|
7966
7882
|
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",
|
|
7967
7883
|
clipRule: "evenodd"
|
|
7968
7884
|
})));
|
|
7969
7885
|
}
|
|
7970
7886
|
|
|
7971
|
-
var _path$
|
|
7887
|
+
var _path$s, _path2$4;
|
|
7972
7888
|
|
|
7973
|
-
function _extends$
|
|
7889
|
+
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); }
|
|
7974
7890
|
|
|
7975
7891
|
function SvgSpinner(props) {
|
|
7976
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
7892
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$u({
|
|
7977
7893
|
className: "plc-animate-spin",
|
|
7978
7894
|
viewBox: "0 0 24 24",
|
|
7979
7895
|
fill: "currentColor",
|
|
7980
7896
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7981
|
-
}, props), _path$
|
|
7897
|
+
}, props), _path$s || (_path$s = /*#__PURE__*/React__namespace.createElement("path", {
|
|
7982
7898
|
opacity: 0.2,
|
|
7983
7899
|
fill: "evenodd",
|
|
7984
7900
|
clipRule: "evenodd",
|
|
@@ -8268,9 +8184,7 @@ const init$1 = () => {
|
|
|
8268
8184
|
return switchToAddressView();
|
|
8269
8185
|
});
|
|
8270
8186
|
} else {
|
|
8271
|
-
pelcroSubscribeButtonsByClass[j].addEventListener("click", () =>
|
|
8272
|
-
return switchView("subscription-options");
|
|
8273
|
-
});
|
|
8187
|
+
pelcroSubscribeButtonsByClass[j].addEventListener("click", () => switchView("plan-select"));
|
|
8274
8188
|
}
|
|
8275
8189
|
}
|
|
8276
8190
|
}
|
|
@@ -8432,8 +8346,7 @@ function Link({
|
|
|
8432
8346
|
const init = () => {
|
|
8433
8347
|
const {
|
|
8434
8348
|
switchView,
|
|
8435
|
-
set
|
|
8436
|
-
setProductsList
|
|
8349
|
+
set
|
|
8437
8350
|
} = usePelcro.getStore();
|
|
8438
8351
|
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
8439
8352
|
|
|
@@ -8484,8 +8397,7 @@ const init = () => {
|
|
|
8484
8397
|
}
|
|
8485
8398
|
|
|
8486
8399
|
notify.dismiss(NOTIFICATION_ID);
|
|
8487
|
-
|
|
8488
|
-
switchView("plan-select");
|
|
8400
|
+
switchView("_plan-select-entitlements");
|
|
8489
8401
|
}
|
|
8490
8402
|
}, "Subscribe"), "now to get full page access.")), {
|
|
8491
8403
|
className: "pelcro-notification-entitlement",
|
|
@@ -8737,6 +8649,10 @@ const getErrorMessages = error => {
|
|
|
8737
8649
|
return error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.error) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2.message;
|
|
8738
8650
|
}
|
|
8739
8651
|
|
|
8652
|
+
if (error !== null && error !== void 0 && error.message) {
|
|
8653
|
+
return error.message;
|
|
8654
|
+
}
|
|
8655
|
+
|
|
8740
8656
|
const errorMessages = []; // enumerable error (ex: validation errors)
|
|
8741
8657
|
|
|
8742
8658
|
Object.values(error === null || error === void 0 ? void 0 : (_error$response5 = error.response) === null || _error$response5 === void 0 ? void 0 : (_error$response5$data = _error$response5.data) === null || _error$response5$data === void 0 ? void 0 : _error$response5$data.errors).forEach(([errorMessage]) => {
|
|
@@ -9316,7 +9232,7 @@ const PelcroModalController = ({
|
|
|
9316
9232
|
type
|
|
9317
9233
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "dashboard-open"), React__default['default'].Children.map(children, child => child).find(({
|
|
9318
9234
|
type
|
|
9319
|
-
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-
|
|
9235
|
+
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "notification"), view === "_plan-select-entitlements" && React__default['default'].Children.map(children, child => child).find(({
|
|
9320
9236
|
type
|
|
9321
9237
|
}) => (type === null || type === void 0 ? void 0 : type.viewId) === "plan-select"), React__default['default'].Children.map(children, child => child).find(({
|
|
9322
9238
|
type
|
|
@@ -9597,10 +9513,8 @@ const LOAD_PAYMENT_METHODS = "LOAD_PAYMENT_METHODS";
|
|
|
9597
9513
|
const GET_NEWSLETTERS_FETCH = "GET_NEWSLETTERS_FETCH";
|
|
9598
9514
|
const GET_NEWSLETTERS_SUCCESS = "GET_NEWSLETTERS_SUCCESS";
|
|
9599
9515
|
const SWITCH_TO_UPDATE = "SWITCH_TO_UPDATE";
|
|
9600
|
-
const SWITCH_TO_RENEW = "SWITCH_TO_RENEW";
|
|
9601
|
-
const SWITCH_TO_NEW = "SWITCH_TO_NEW";
|
|
9602
9516
|
|
|
9603
|
-
const initialState$
|
|
9517
|
+
const initialState$h = {
|
|
9604
9518
|
email: "",
|
|
9605
9519
|
password: "",
|
|
9606
9520
|
emailError: null,
|
|
@@ -9611,10 +9525,10 @@ const initialState$i = {
|
|
|
9611
9525
|
content: ""
|
|
9612
9526
|
}
|
|
9613
9527
|
};
|
|
9614
|
-
const store$
|
|
9528
|
+
const store$h = /*#__PURE__*/React.createContext(initialState$h);
|
|
9615
9529
|
const {
|
|
9616
|
-
Provider: Provider$
|
|
9617
|
-
} = store$
|
|
9530
|
+
Provider: Provider$h
|
|
9531
|
+
} = store$h;
|
|
9618
9532
|
|
|
9619
9533
|
const LoginContainer = ({
|
|
9620
9534
|
style,
|
|
@@ -9721,7 +9635,7 @@ const LoginContainer = ({
|
|
|
9721
9635
|
});
|
|
9722
9636
|
|
|
9723
9637
|
case RESET_LOGIN_FORM:
|
|
9724
|
-
return initialState$
|
|
9638
|
+
return initialState$h;
|
|
9725
9639
|
|
|
9726
9640
|
case DISABLE_LOGIN_BUTTON:
|
|
9727
9641
|
return lib_7({ ...state,
|
|
@@ -9739,12 +9653,12 @@ const LoginContainer = ({
|
|
|
9739
9653
|
default:
|
|
9740
9654
|
return state;
|
|
9741
9655
|
}
|
|
9742
|
-
}, initialState$
|
|
9656
|
+
}, initialState$h);
|
|
9743
9657
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9744
9658
|
style: { ...style
|
|
9745
9659
|
},
|
|
9746
9660
|
className: `pelcro-container pelcro-login-container ${className}`
|
|
9747
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
9661
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$h, {
|
|
9748
9662
|
value: {
|
|
9749
9663
|
state,
|
|
9750
9664
|
dispatch
|
|
@@ -9752,12 +9666,12 @@ const LoginContainer = ({
|
|
|
9752
9666
|
}, children.length ? children.map((child, i) => {
|
|
9753
9667
|
if (child) {
|
|
9754
9668
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
9755
|
-
store: store$
|
|
9669
|
+
store: store$h,
|
|
9756
9670
|
key: i
|
|
9757
9671
|
});
|
|
9758
9672
|
}
|
|
9759
9673
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
9760
|
-
store: store$
|
|
9674
|
+
store: store$h
|
|
9761
9675
|
})));
|
|
9762
9676
|
};
|
|
9763
9677
|
|
|
@@ -10002,7 +9916,7 @@ const LoginButton = ({
|
|
|
10002
9916
|
buttonDisabled
|
|
10003
9917
|
},
|
|
10004
9918
|
dispatch
|
|
10005
|
-
} = React.useContext(store$
|
|
9919
|
+
} = React.useContext(store$h);
|
|
10006
9920
|
const {
|
|
10007
9921
|
t
|
|
10008
9922
|
} = useTranslation("login");
|
|
@@ -10023,23 +9937,23 @@ const LoginButton = ({
|
|
|
10023
9937
|
};
|
|
10024
9938
|
|
|
10025
9939
|
const LoginEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
10026
|
-
store: store$
|
|
9940
|
+
store: store$h
|
|
10027
9941
|
}, props));
|
|
10028
9942
|
|
|
10029
9943
|
const LoginPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
10030
|
-
store: store$
|
|
9944
|
+
store: store$h
|
|
10031
9945
|
}, props));
|
|
10032
9946
|
|
|
10033
|
-
var _path$
|
|
9947
|
+
var _path$r;
|
|
10034
9948
|
|
|
10035
|
-
function _extends$
|
|
9949
|
+
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); }
|
|
10036
9950
|
|
|
10037
9951
|
function SvgCheck(props) {
|
|
10038
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
9952
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$t({
|
|
10039
9953
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10040
9954
|
fill: "currentColor",
|
|
10041
9955
|
viewBox: "0 0 20 20"
|
|
10042
|
-
}, props), _path$
|
|
9956
|
+
}, props), _path$r || (_path$r = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10043
9957
|
fillRule: "evenodd",
|
|
10044
9958
|
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",
|
|
10045
9959
|
clipRule: "evenodd"
|
|
@@ -10104,7 +10018,7 @@ var facebookLoginRenderProps = createCommonjsModule(function (module, exports) {
|
|
|
10104
10018
|
var FacebookLogin = unwrapExports(facebookLoginRenderProps);
|
|
10105
10019
|
facebookLoginRenderProps.FacebookLogin;
|
|
10106
10020
|
|
|
10107
|
-
const initialState$
|
|
10021
|
+
const initialState$g = {
|
|
10108
10022
|
email: "",
|
|
10109
10023
|
password: "",
|
|
10110
10024
|
emailError: null,
|
|
@@ -10121,10 +10035,10 @@ const initialState$h = {
|
|
|
10121
10035
|
content: ""
|
|
10122
10036
|
}
|
|
10123
10037
|
};
|
|
10124
|
-
const store$
|
|
10038
|
+
const store$g = /*#__PURE__*/React.createContext(initialState$g);
|
|
10125
10039
|
const {
|
|
10126
|
-
Provider: Provider$
|
|
10127
|
-
} = store$
|
|
10040
|
+
Provider: Provider$g
|
|
10041
|
+
} = store$g;
|
|
10128
10042
|
|
|
10129
10043
|
const RegisterContainer = ({
|
|
10130
10044
|
style,
|
|
@@ -10307,7 +10221,7 @@ const RegisterContainer = ({
|
|
|
10307
10221
|
});
|
|
10308
10222
|
|
|
10309
10223
|
case RESET_LOGIN_FORM:
|
|
10310
|
-
return initialState$
|
|
10224
|
+
return initialState$g;
|
|
10311
10225
|
|
|
10312
10226
|
case DISABLE_REGISTRATION_BUTTON:
|
|
10313
10227
|
return lib_7({ ...state,
|
|
@@ -10325,12 +10239,12 @@ const RegisterContainer = ({
|
|
|
10325
10239
|
default:
|
|
10326
10240
|
return state;
|
|
10327
10241
|
}
|
|
10328
|
-
}, initialState$
|
|
10242
|
+
}, initialState$g);
|
|
10329
10243
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
10330
10244
|
style: { ...style
|
|
10331
10245
|
},
|
|
10332
10246
|
className: `pelcro-container pelcro-register-container ${className}`
|
|
10333
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
10247
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$g, {
|
|
10334
10248
|
value: {
|
|
10335
10249
|
state,
|
|
10336
10250
|
dispatch
|
|
@@ -10338,12 +10252,12 @@ const RegisterContainer = ({
|
|
|
10338
10252
|
}, children.length ? children.map((child, i) => {
|
|
10339
10253
|
if (child) {
|
|
10340
10254
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
10341
|
-
store: store$
|
|
10255
|
+
store: store$g,
|
|
10342
10256
|
key: i
|
|
10343
10257
|
});
|
|
10344
10258
|
}
|
|
10345
10259
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
10346
|
-
store: store$
|
|
10260
|
+
store: store$g
|
|
10347
10261
|
})));
|
|
10348
10262
|
};
|
|
10349
10263
|
/**
|
|
@@ -10358,15 +10272,15 @@ function hasSecurityTokenEnabled$1() {
|
|
|
10358
10272
|
return hasSecuritySdkLoaded;
|
|
10359
10273
|
}
|
|
10360
10274
|
|
|
10361
|
-
var _path$
|
|
10275
|
+
var _path$q;
|
|
10362
10276
|
|
|
10363
|
-
function _extends$
|
|
10277
|
+
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); }
|
|
10364
10278
|
|
|
10365
10279
|
function SvgFacebookLogo(props) {
|
|
10366
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10280
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$s({
|
|
10367
10281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10368
10282
|
viewBox: "88.428 12.828 107.543 207.085"
|
|
10369
|
-
}, props), _path$
|
|
10283
|
+
}, props), _path$q || (_path$q = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10370
10284
|
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",
|
|
10371
10285
|
fill: "#3c5a9a"
|
|
10372
10286
|
})));
|
|
@@ -10383,10 +10297,10 @@ const FacebookLoginButton = ({
|
|
|
10383
10297
|
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;
|
|
10384
10298
|
const {
|
|
10385
10299
|
dispatch: loginDispatch
|
|
10386
|
-
} = React.useContext(store$
|
|
10300
|
+
} = React.useContext(store$h);
|
|
10387
10301
|
const {
|
|
10388
10302
|
dispatch: registerDispatch
|
|
10389
|
-
} = React.useContext(store$
|
|
10303
|
+
} = React.useContext(store$g);
|
|
10390
10304
|
|
|
10391
10305
|
const onSuccess = facebookUser => {
|
|
10392
10306
|
loginDispatch === null || loginDispatch === void 0 ? void 0 : loginDispatch({
|
|
@@ -10439,15 +10353,15 @@ var googleLogin = createCommonjsModule(function (module, exports) {
|
|
|
10439
10353
|
unwrapExports(googleLogin);
|
|
10440
10354
|
var googleLogin_1 = googleLogin.GoogleLogin;
|
|
10441
10355
|
|
|
10442
|
-
var _path$
|
|
10356
|
+
var _path$p, _path2$3, _path3$1, _path4;
|
|
10443
10357
|
|
|
10444
|
-
function _extends$
|
|
10358
|
+
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); }
|
|
10445
10359
|
|
|
10446
10360
|
function SvgGoogleLogo(props) {
|
|
10447
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10361
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$r({
|
|
10448
10362
|
viewBox: "0 0 24 24",
|
|
10449
10363
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10450
|
-
}, props), _path$
|
|
10364
|
+
}, props), _path$p || (_path$p = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10451
10365
|
fill: "#4285F4",
|
|
10452
10366
|
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"
|
|
10453
10367
|
})), _path2$3 || (_path2$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
@@ -10473,10 +10387,10 @@ const GoogleLoginButton = ({
|
|
|
10473
10387
|
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;
|
|
10474
10388
|
const {
|
|
10475
10389
|
dispatch: loginDispatch
|
|
10476
|
-
} = React.useContext(store$
|
|
10390
|
+
} = React.useContext(store$h);
|
|
10477
10391
|
const {
|
|
10478
10392
|
dispatch: registerDispatch
|
|
10479
|
-
} = React.useContext(store$
|
|
10393
|
+
} = React.useContext(store$g);
|
|
10480
10394
|
|
|
10481
10395
|
const onSuccess = response => {
|
|
10482
10396
|
var _response$getAuthResp, _profile$getEmail, _profile$getGivenName, _profile$getFamilyNam, _profile$getEmail2, _profile$getGivenName2, _profile$getFamilyNam2;
|
|
@@ -10524,15 +10438,15 @@ const GoogleLoginButton = ({
|
|
|
10524
10438
|
}) : null;
|
|
10525
10439
|
};
|
|
10526
10440
|
|
|
10527
|
-
var _path$
|
|
10441
|
+
var _path$o;
|
|
10528
10442
|
|
|
10529
|
-
function _extends$
|
|
10443
|
+
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); }
|
|
10530
10444
|
|
|
10531
10445
|
function SvgAuth0Logo(props) {
|
|
10532
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10446
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$q({
|
|
10533
10447
|
viewBox: "0 0 256 285",
|
|
10534
10448
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10535
|
-
}, props), _path$
|
|
10449
|
+
}, props), _path$o || (_path$o = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10536
10450
|
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"
|
|
10537
10451
|
})));
|
|
10538
10452
|
}
|
|
@@ -10572,10 +10486,10 @@ const Auth0LoginButton = ({
|
|
|
10572
10486
|
}, [auth0Enabled, auth0Loaded]);
|
|
10573
10487
|
const {
|
|
10574
10488
|
dispatch: loginDispatch
|
|
10575
|
-
} = React.useContext(store$
|
|
10489
|
+
} = React.useContext(store$h);
|
|
10576
10490
|
const {
|
|
10577
10491
|
dispatch: registerDispatch
|
|
10578
|
-
} = React.useContext(store$
|
|
10492
|
+
} = React.useContext(store$g);
|
|
10579
10493
|
|
|
10580
10494
|
function handleClick() {
|
|
10581
10495
|
var _auth0InstanceRef$cur, _auth0InstanceRef$cur2, _auth0InstanceRef$cur3;
|
|
@@ -10708,15 +10622,15 @@ function LoginView(props) {
|
|
|
10708
10622
|
}, /*#__PURE__*/React__default['default'].createElement(GoogleLoginButton, null), /*#__PURE__*/React__default['default'].createElement(FacebookLoginButton, null), /*#__PURE__*/React__default['default'].createElement(Auth0LoginButton, null))))));
|
|
10709
10623
|
}
|
|
10710
10624
|
|
|
10711
|
-
var _path$
|
|
10625
|
+
var _path$n, _path2$2, _path3;
|
|
10712
10626
|
|
|
10713
|
-
function _extends$
|
|
10627
|
+
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); }
|
|
10714
10628
|
|
|
10715
10629
|
function SvgPelcroAuthorship(props) {
|
|
10716
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
10630
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$p({
|
|
10717
10631
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10718
10632
|
viewBox: "0 -80.652 497.072 179.991"
|
|
10719
|
-
}, props), _path$
|
|
10633
|
+
}, props), _path$n || (_path$n = /*#__PURE__*/React__namespace.createElement("path", {
|
|
10720
10634
|
fill: "none",
|
|
10721
10635
|
stroke: "#4a4a4a",
|
|
10722
10636
|
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"
|
|
@@ -10863,11 +10777,11 @@ function LoginModal({
|
|
|
10863
10777
|
LoginModal.viewId = "login";
|
|
10864
10778
|
|
|
10865
10779
|
const RegisterEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
10866
|
-
store: store$
|
|
10780
|
+
store: store$g
|
|
10867
10781
|
}, props));
|
|
10868
10782
|
|
|
10869
10783
|
const RegisterPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
10870
|
-
store: store$
|
|
10784
|
+
store: store$g
|
|
10871
10785
|
}, props));
|
|
10872
10786
|
|
|
10873
10787
|
const RegisterButton = ({
|
|
@@ -10887,7 +10801,7 @@ const RegisterButton = ({
|
|
|
10887
10801
|
buttonDisabled
|
|
10888
10802
|
},
|
|
10889
10803
|
dispatch
|
|
10890
|
-
} = React.useContext(store$
|
|
10804
|
+
} = React.useContext(store$g);
|
|
10891
10805
|
const {
|
|
10892
10806
|
t
|
|
10893
10807
|
} = useTranslation("register");
|
|
@@ -11025,7 +10939,7 @@ function FirstName({
|
|
|
11025
10939
|
}
|
|
11026
10940
|
|
|
11027
10941
|
const RegisterFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
11028
|
-
store: store$
|
|
10942
|
+
store: store$g
|
|
11029
10943
|
}, props));
|
|
11030
10944
|
|
|
11031
10945
|
function LastName({
|
|
@@ -11056,7 +10970,7 @@ function LastName({
|
|
|
11056
10970
|
}
|
|
11057
10971
|
|
|
11058
10972
|
const RegisterLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
11059
|
-
store: store$
|
|
10973
|
+
store: store$g
|
|
11060
10974
|
}, props));
|
|
11061
10975
|
|
|
11062
10976
|
/**
|
|
@@ -11180,7 +11094,7 @@ function TextInput({
|
|
|
11180
11094
|
|
|
11181
11095
|
const RegisterTextInput = props => {
|
|
11182
11096
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
11183
|
-
store: store$
|
|
11097
|
+
store: store$g
|
|
11184
11098
|
}));
|
|
11185
11099
|
};
|
|
11186
11100
|
|
|
@@ -11327,7 +11241,6 @@ function SelectModalWithHook(props) {
|
|
|
11327
11241
|
(_props$onDisplay = props.onDisplay) === null || _props$onDisplay === void 0 ? void 0 : _props$onDisplay.call(props);
|
|
11328
11242
|
}, []);
|
|
11329
11243
|
const {
|
|
11330
|
-
productsList,
|
|
11331
11244
|
isGift,
|
|
11332
11245
|
plan,
|
|
11333
11246
|
product,
|
|
@@ -11337,12 +11250,11 @@ function SelectModalWithHook(props) {
|
|
|
11337
11250
|
view,
|
|
11338
11251
|
set
|
|
11339
11252
|
} = usePelcro();
|
|
11340
|
-
const
|
|
11253
|
+
const entitlementsProtectedElements = document.querySelectorAll("[data-pelcro-entitlements]");
|
|
11254
|
+
const entitlements = entitlementsProtectedElements.length > 0 ? getEntitlementsFromElem(entitlementsProtectedElements[0]) : null;
|
|
11341
11255
|
return /*#__PURE__*/React__default['default'].createElement(SelectModalWithTrans, {
|
|
11342
|
-
productsList: productsList,
|
|
11343
11256
|
isGift: isGift,
|
|
11344
|
-
disableGifting: isRenewingGift
|
|
11345
|
-
isRenewingSub: isRenewingSub,
|
|
11257
|
+
disableGifting: isRenewingGift,
|
|
11346
11258
|
plan: plan,
|
|
11347
11259
|
product: product,
|
|
11348
11260
|
onClose: () => {
|
|
@@ -11356,10 +11268,8 @@ function SelectModalWithHook(props) {
|
|
|
11356
11268
|
plan,
|
|
11357
11269
|
isGift
|
|
11358
11270
|
}),
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
}),
|
|
11362
|
-
setView: switchView
|
|
11271
|
+
setView: switchView,
|
|
11272
|
+
matchingEntitlements: view === "_plan-select-entitlements" ? entitlements : null
|
|
11363
11273
|
});
|
|
11364
11274
|
}
|
|
11365
11275
|
SelectModalWithHook.viewId = "plan-select";
|
|
@@ -11391,10 +11301,10 @@ class SelectModal extends React.Component {
|
|
|
11391
11301
|
});
|
|
11392
11302
|
}
|
|
11393
11303
|
|
|
11394
|
-
if (this.
|
|
11304
|
+
if (this.state.productList.length === 1) {
|
|
11395
11305
|
this.setState({
|
|
11396
|
-
product: this.
|
|
11397
|
-
planList: this.
|
|
11306
|
+
product: this.state.productList[0],
|
|
11307
|
+
planList: this.state.productList[0].plans,
|
|
11398
11308
|
mode: "plan"
|
|
11399
11309
|
});
|
|
11400
11310
|
}
|
|
@@ -11411,7 +11321,7 @@ class SelectModal extends React.Component {
|
|
|
11411
11321
|
});
|
|
11412
11322
|
|
|
11413
11323
|
_defineProperty$3(this, "onProductChange", e => {
|
|
11414
|
-
const product =
|
|
11324
|
+
const product = window.Pelcro.product.list()[e.target.selectedIndex];
|
|
11415
11325
|
this.setState({
|
|
11416
11326
|
product: product,
|
|
11417
11327
|
plan: product.plans[0]
|
|
@@ -11477,7 +11387,7 @@ class SelectModal extends React.Component {
|
|
|
11477
11387
|
|
|
11478
11388
|
_defineProperty$3(this, "renderProducts", () => {
|
|
11479
11389
|
const userDidSelectProduct = Boolean(this.state.mode === "plan");
|
|
11480
|
-
const productsToShow = userDidSelectProduct ? [this.state.product] : this.
|
|
11390
|
+
const productsToShow = userDidSelectProduct ? [this.state.product] : this.state.productList;
|
|
11481
11391
|
return productsToShow.map((product, index) => {
|
|
11482
11392
|
return this.renderOneProduct(product, index);
|
|
11483
11393
|
});
|
|
@@ -11490,7 +11400,7 @@ class SelectModal extends React.Component {
|
|
|
11490
11400
|
return this.renderOneProduct(this.state.product);
|
|
11491
11401
|
}
|
|
11492
11402
|
|
|
11493
|
-
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(
|
|
11403
|
+
const [productsThatMatchArticleTag, allProductsMinusMatched] = productsWithMatchedTaggedFirst(); // Render normal products if there are no available matching products
|
|
11494
11404
|
|
|
11495
11405
|
if (!(productsThatMatchArticleTag !== null && productsThatMatchArticleTag !== void 0 && productsThatMatchArticleTag.length)) {
|
|
11496
11406
|
return this.renderProducts();
|
|
@@ -11506,7 +11416,10 @@ class SelectModal extends React.Component {
|
|
|
11506
11416
|
className: "plc-text-sm plc-font-semibold"
|
|
11507
11417
|
}, this.locale("labels.restrictiveArticles.or")), allProductsMinusMatched.map((product, index) => this.renderOneProduct(product, index))));
|
|
11508
11418
|
|
|
11509
|
-
function productsWithMatchedTaggedFirst(
|
|
11419
|
+
function productsWithMatchedTaggedFirst() {
|
|
11420
|
+
var _window$Pelcro$produc;
|
|
11421
|
+
|
|
11422
|
+
const allProducts = (_window$Pelcro$produc = window.Pelcro.product.list()) !== null && _window$Pelcro$produc !== void 0 ? _window$Pelcro$produc : [];
|
|
11510
11423
|
const productsThatMatchArticleTag = window.Pelcro.product.getByMatchingPageTags();
|
|
11511
11424
|
const allProductsMinusMatched = allProducts.filter(product => !productsThatMatchArticleTag.some(matchedProduct => matchedProduct.id === product.id));
|
|
11512
11425
|
return [productsThatMatchArticleTag, allProductsMinusMatched];
|
|
@@ -11540,7 +11453,7 @@ class SelectModal extends React.Component {
|
|
|
11540
11453
|
_defineProperty$3(this, "selectProduct", e => {
|
|
11541
11454
|
const id = e.target.dataset.key;
|
|
11542
11455
|
|
|
11543
|
-
for (const product of this.
|
|
11456
|
+
for (const product of this.state.productList) {
|
|
11544
11457
|
if (+product.id === +id) {
|
|
11545
11458
|
var _this$state$plan;
|
|
11546
11459
|
|
|
@@ -11593,14 +11506,6 @@ class SelectModal extends React.Component {
|
|
|
11593
11506
|
|
|
11594
11507
|
_defineProperty$3(this, "submitOption", () => {
|
|
11595
11508
|
this.props.setProductAndPlan(this.state.product, this.state.plan, this.state.isGift);
|
|
11596
|
-
|
|
11597
|
-
if (this.props.isRenewingSub) {
|
|
11598
|
-
var _matchingSub$id;
|
|
11599
|
-
|
|
11600
|
-
const matchingSub = window.Pelcro.subscription.list().find(sub => sub.plan.id === this.state.plan.id && sub.status === "active" && sub.cancel_at_period_end === 1);
|
|
11601
|
-
this.props.setSubscriptionIdToRenew((_matchingSub$id = matchingSub === null || matchingSub === void 0 ? void 0 : matchingSub.id) !== null && _matchingSub$id !== void 0 ? _matchingSub$id : null);
|
|
11602
|
-
}
|
|
11603
|
-
|
|
11604
11509
|
const {
|
|
11605
11510
|
product,
|
|
11606
11511
|
isGift
|
|
@@ -11638,7 +11543,8 @@ class SelectModal extends React.Component {
|
|
|
11638
11543
|
plan: {},
|
|
11639
11544
|
isGift: props.isGift,
|
|
11640
11545
|
disabled: true,
|
|
11641
|
-
mode: "product"
|
|
11546
|
+
mode: "product",
|
|
11547
|
+
productList: props.matchingEntitlements ? window.Pelcro.product.getByEntitlements(props.matchingEntitlements) : window.Pelcro.product.list()
|
|
11642
11548
|
};
|
|
11643
11549
|
this.product = this.props.product || window.Pelcro.paywall.getProduct();
|
|
11644
11550
|
this.locale = this.props.t;
|
|
@@ -11646,7 +11552,7 @@ class SelectModal extends React.Component {
|
|
|
11646
11552
|
}
|
|
11647
11553
|
|
|
11648
11554
|
render() {
|
|
11649
|
-
var
|
|
11555
|
+
var _window$Pelcro$produc2, _window$Pelcro$produc3, _window$Pelcro$site$r;
|
|
11650
11556
|
|
|
11651
11557
|
const {
|
|
11652
11558
|
disableGifting
|
|
@@ -11680,7 +11586,7 @@ class SelectModal extends React.Component {
|
|
|
11680
11586
|
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
11681
11587
|
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
11682
11588
|
className: "plc-text-2xl plc-font-semibold"
|
|
11683
|
-
}, this.product && this.product.paywall.select_title || ((
|
|
11589
|
+
}, this.product && this.product.paywall.select_title || ((_window$Pelcro$produc2 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc2 === void 0 ? void 0 : _window$Pelcro$produc2.paywall.select_title)), /*#__PURE__*/React__default['default'].createElement("p", null, this.product && this.product.paywall.select_subtitle || ((_window$Pelcro$produc3 = window.Pelcro.product.list()[0]) === null || _window$Pelcro$produc3 === void 0 ? void 0 : _window$Pelcro$produc3.paywall.select_subtitle))), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11684
11590
|
className: "pelcro-select-products-wrapper"
|
|
11685
11591
|
}, (_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['default'].createElement(React__default['default'].Fragment, null, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
11686
11592
|
className: "plc-overflow-y-scroll plc-max-h-72 pelcro-select-plans-wrapper"
|
|
@@ -13532,7 +13438,7 @@ class VantivGateway {
|
|
|
13532
13438
|
|
|
13533
13439
|
/** @type {PaymentStateType} */
|
|
13534
13440
|
|
|
13535
|
-
const initialState$
|
|
13441
|
+
const initialState$f = {
|
|
13536
13442
|
disableSubmit: false,
|
|
13537
13443
|
isLoading: false,
|
|
13538
13444
|
disableCouponButton: false,
|
|
@@ -13551,10 +13457,10 @@ const initialState$g = {
|
|
|
13551
13457
|
content: ""
|
|
13552
13458
|
}
|
|
13553
13459
|
};
|
|
13554
|
-
const store$
|
|
13460
|
+
const store$f = /*#__PURE__*/React.createContext(initialState$f);
|
|
13555
13461
|
const {
|
|
13556
|
-
Provider: Provider$
|
|
13557
|
-
} = store$
|
|
13462
|
+
Provider: Provider$f
|
|
13463
|
+
} = store$f;
|
|
13558
13464
|
|
|
13559
13465
|
const PaymentMethodContainerWithoutStripe = ({
|
|
13560
13466
|
style,
|
|
@@ -14806,21 +14712,21 @@ const PaymentMethodContainerWithoutStripe = ({
|
|
|
14806
14712
|
default:
|
|
14807
14713
|
return state;
|
|
14808
14714
|
}
|
|
14809
|
-
}, initialState$
|
|
14715
|
+
}, initialState$f);
|
|
14810
14716
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
14811
14717
|
style: { ...style
|
|
14812
14718
|
},
|
|
14813
14719
|
className: `pelcro-container pelcro-payment-container ${className}`
|
|
14814
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
14720
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$f, {
|
|
14815
14721
|
value: {
|
|
14816
14722
|
state,
|
|
14817
14723
|
dispatch
|
|
14818
14724
|
}
|
|
14819
14725
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
14820
|
-
store: store$
|
|
14726
|
+
store: store$f,
|
|
14821
14727
|
key: i
|
|
14822
14728
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
14823
|
-
store: store$
|
|
14729
|
+
store: store$f
|
|
14824
14730
|
})));
|
|
14825
14731
|
};
|
|
14826
14732
|
|
|
@@ -14842,7 +14748,7 @@ const PaymentMethodContainer = props => {
|
|
|
14842
14748
|
stripeAccount: window.Pelcro.site.read().account_id,
|
|
14843
14749
|
locale: getPageOrDefaultLanguage()
|
|
14844
14750
|
}, /*#__PURE__*/React__default['default'].createElement(es_11, null, /*#__PURE__*/React__default['default'].createElement(UnwrappedForm, Object.assign({
|
|
14845
|
-
store: store$
|
|
14751
|
+
store: store$f
|
|
14846
14752
|
}, props))));
|
|
14847
14753
|
}
|
|
14848
14754
|
|
|
@@ -14895,7 +14801,7 @@ const PelcroPaymentRequestButton = props => {
|
|
|
14895
14801
|
currentPlan,
|
|
14896
14802
|
updatedPrice
|
|
14897
14803
|
}
|
|
14898
|
-
} = React.useContext(store$
|
|
14804
|
+
} = React.useContext(store$f);
|
|
14899
14805
|
|
|
14900
14806
|
const updatePaymentRequest = () => {
|
|
14901
14807
|
// Make sure payment request is up to date, eg. user added a coupon code.
|
|
@@ -14971,7 +14877,7 @@ const DiscountedPrice = props => {
|
|
|
14971
14877
|
taxAmount,
|
|
14972
14878
|
percentOff
|
|
14973
14879
|
}
|
|
14974
|
-
} = React.useContext(store$
|
|
14880
|
+
} = React.useContext(store$f);
|
|
14975
14881
|
const {
|
|
14976
14882
|
order,
|
|
14977
14883
|
plan
|
|
@@ -15021,7 +14927,7 @@ const SubmitPaymentMethod = ({
|
|
|
15021
14927
|
isLoading,
|
|
15022
14928
|
updatedPrice
|
|
15023
14929
|
}
|
|
15024
|
-
} = React.useContext(store$
|
|
14930
|
+
} = React.useContext(store$f);
|
|
15025
14931
|
const planQuantity = (_plan$quantity = plan === null || plan === void 0 ? void 0 : plan.quantity) !== null && _plan$quantity !== void 0 ? _plan$quantity : 1;
|
|
15026
14932
|
const price = updatedPrice !== null && updatedPrice !== void 0 ? updatedPrice : plan === null || plan === void 0 ? void 0 : plan.amount;
|
|
15027
14933
|
const priceFormatted = getFormattedPriceByLocal(price * planQuantity, plan === null || plan === void 0 ? void 0 : plan.currency, getPageOrDefaultLanguage());
|
|
@@ -15042,17 +14948,17 @@ const SubmitPaymentMethod = ({
|
|
|
15042
14948
|
}, t("labels.pay"), " ", priceFormatted && priceFormatted) : t("labels.submit"));
|
|
15043
14949
|
};
|
|
15044
14950
|
|
|
15045
|
-
var _path$
|
|
14951
|
+
var _path$m;
|
|
15046
14952
|
|
|
15047
|
-
function _extends$
|
|
14953
|
+
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); }
|
|
15048
14954
|
|
|
15049
14955
|
function SvgArrowLeft(props) {
|
|
15050
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
14956
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$o({
|
|
15051
14957
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15052
14958
|
fill: "none",
|
|
15053
14959
|
viewBox: "0 0 24 24",
|
|
15054
14960
|
stroke: "currentColor"
|
|
15055
|
-
}, props), _path$
|
|
14961
|
+
}, props), _path$m || (_path$m = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15056
14962
|
strokeLinecap: "round",
|
|
15057
14963
|
strokeLinejoin: "round",
|
|
15058
14964
|
strokeWidth: 2,
|
|
@@ -15071,7 +14977,7 @@ const ApplyCouponButton = ({
|
|
|
15071
14977
|
disableCouponButton
|
|
15072
14978
|
},
|
|
15073
14979
|
dispatch
|
|
15074
|
-
} = React.useContext(store$
|
|
14980
|
+
} = React.useContext(store$f);
|
|
15075
14981
|
const {
|
|
15076
14982
|
t
|
|
15077
14983
|
} = useTranslation("checkoutForm");
|
|
@@ -15105,7 +15011,7 @@ const CouponCodeField = props => {
|
|
|
15105
15011
|
couponCode,
|
|
15106
15012
|
couponError
|
|
15107
15013
|
}
|
|
15108
|
-
} = React.useContext(store$
|
|
15014
|
+
} = React.useContext(store$f);
|
|
15109
15015
|
|
|
15110
15016
|
const onCouponCodeChange = e => {
|
|
15111
15017
|
dispatch({
|
|
@@ -15134,17 +15040,17 @@ const CouponCodeField = props => {
|
|
|
15134
15040
|
}, props));
|
|
15135
15041
|
};
|
|
15136
15042
|
|
|
15137
|
-
var _path$
|
|
15043
|
+
var _path$l;
|
|
15138
15044
|
|
|
15139
|
-
function _extends$
|
|
15045
|
+
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); }
|
|
15140
15046
|
|
|
15141
15047
|
function SvgTicket(props) {
|
|
15142
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15048
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$n({
|
|
15143
15049
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15144
15050
|
fill: "none",
|
|
15145
15051
|
viewBox: "0 0 24 24",
|
|
15146
15052
|
stroke: "currentColor"
|
|
15147
|
-
}, props), _path$
|
|
15053
|
+
}, props), _path$l || (_path$l = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15148
15054
|
strokeLinecap: "round",
|
|
15149
15055
|
strokeLinejoin: "round",
|
|
15150
15056
|
strokeWidth: 2,
|
|
@@ -15161,7 +15067,7 @@ const CouponCode = ({
|
|
|
15161
15067
|
state: {
|
|
15162
15068
|
enableCouponField
|
|
15163
15069
|
}
|
|
15164
|
-
} = React.useContext(store$
|
|
15070
|
+
} = React.useContext(store$f);
|
|
15165
15071
|
const {
|
|
15166
15072
|
t
|
|
15167
15073
|
} = useTranslation("checkoutForm");
|
|
@@ -15418,7 +15324,7 @@ const PaypalSubscribeButton = props => {
|
|
|
15418
15324
|
const {
|
|
15419
15325
|
dispatch,
|
|
15420
15326
|
state
|
|
15421
|
-
} = React.useContext(store$
|
|
15327
|
+
} = React.useContext(store$f);
|
|
15422
15328
|
const {
|
|
15423
15329
|
product,
|
|
15424
15330
|
plan,
|
|
@@ -15433,7 +15339,7 @@ const PaypalSubscribeButton = props => {
|
|
|
15433
15339
|
const selectedAddress = getAddressById((_props$selectedAddres = props.selectedAddressId) !== null && _props$selectedAddres !== void 0 ? _props$selectedAddres : selectedAddressId); // initialize paypal client, then render paypal button.
|
|
15434
15340
|
|
|
15435
15341
|
const initializePaypal = async () => {
|
|
15436
|
-
var _props$buttonElementI, _props$product$addres, _props$product
|
|
15342
|
+
var _props$buttonElementI, _props$product$addres, _props$product;
|
|
15437
15343
|
|
|
15438
15344
|
const paypalCheckoutInstance = new PaypalClient({
|
|
15439
15345
|
buttonElementID: (_props$buttonElementI = props.buttonElementID) !== null && _props$buttonElementI !== void 0 ? _props$buttonElementI : "pelcro-paypal-button",
|
|
@@ -15443,12 +15349,33 @@ const PaypalSubscribeButton = props => {
|
|
|
15443
15349
|
displayName: props.merchantDisplayName,
|
|
15444
15350
|
locale: props.locale,
|
|
15445
15351
|
billingAgreementDescription: props.billingDescription
|
|
15446
|
-
});
|
|
15352
|
+
});
|
|
15353
|
+
|
|
15354
|
+
const getProduct = () => {
|
|
15355
|
+
if (invoice) {
|
|
15356
|
+
invoice.plan = null;
|
|
15357
|
+
|
|
15358
|
+
if (invoice.plan) {
|
|
15359
|
+
return invoice.plan;
|
|
15360
|
+
} else {
|
|
15361
|
+
// standalone invoices dont have a plan
|
|
15362
|
+
return {
|
|
15363
|
+
currency: invoice.currency,
|
|
15364
|
+
nickname: `invoice #${invoice.id}`
|
|
15365
|
+
};
|
|
15366
|
+
}
|
|
15367
|
+
} else if (props.plan) {
|
|
15368
|
+
return props.plan;
|
|
15369
|
+
} else {
|
|
15370
|
+
return plan;
|
|
15371
|
+
}
|
|
15372
|
+
}; // Await building paypal instance
|
|
15373
|
+
|
|
15447
15374
|
|
|
15448
15375
|
await paypalCheckoutInstance.build(); // Create paypal payment
|
|
15449
15376
|
|
|
15450
15377
|
paypalCheckoutInstance.createPayment({
|
|
15451
|
-
product:
|
|
15378
|
+
product: getProduct(),
|
|
15452
15379
|
amount: updatedPrice,
|
|
15453
15380
|
address: invoice ? null : selectedAddress,
|
|
15454
15381
|
onButtonClick: () => {
|
|
@@ -15504,16 +15431,16 @@ const BankRedirection = () => {
|
|
|
15504
15431
|
}));
|
|
15505
15432
|
};
|
|
15506
15433
|
|
|
15507
|
-
var _path$
|
|
15434
|
+
var _path$k;
|
|
15508
15435
|
|
|
15509
|
-
function _extends$
|
|
15436
|
+
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); }
|
|
15510
15437
|
|
|
15511
15438
|
function SvgLock(props) {
|
|
15512
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15439
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$m({
|
|
15513
15440
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15514
15441
|
viewBox: "0 0 20 20",
|
|
15515
15442
|
fill: "currentColor"
|
|
15516
|
-
}, props), _path$
|
|
15443
|
+
}, props), _path$k || (_path$k = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15517
15444
|
fillRule: "evenodd",
|
|
15518
15445
|
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",
|
|
15519
15446
|
clipRule: "evenodd"
|
|
@@ -15530,7 +15457,7 @@ const SelectedPaymentMethod = () => {
|
|
|
15530
15457
|
state: {
|
|
15531
15458
|
isLoading
|
|
15532
15459
|
}
|
|
15533
|
-
} = React.useContext(store$
|
|
15460
|
+
} = React.useContext(store$f);
|
|
15534
15461
|
const {
|
|
15535
15462
|
switchView,
|
|
15536
15463
|
selectedPaymentMethodId
|
|
@@ -15572,7 +15499,7 @@ const TaxAmount = () => {
|
|
|
15572
15499
|
state: {
|
|
15573
15500
|
taxAmount
|
|
15574
15501
|
}
|
|
15575
|
-
} = React.useContext(store$
|
|
15502
|
+
} = React.useContext(store$f);
|
|
15576
15503
|
const {
|
|
15577
15504
|
plan
|
|
15578
15505
|
} = usePelcro();
|
|
@@ -15736,12 +15663,12 @@ function SubscriptionRenewModal({
|
|
|
15736
15663
|
}
|
|
15737
15664
|
SubscriptionRenewModal.viewId = "subscription-renew";
|
|
15738
15665
|
|
|
15739
|
-
var _path$
|
|
15666
|
+
var _path$j;
|
|
15740
15667
|
|
|
15741
|
-
function _extends$
|
|
15668
|
+
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); }
|
|
15742
15669
|
|
|
15743
15670
|
function SvgGift(props) {
|
|
15744
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
15671
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$l({
|
|
15745
15672
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
15746
15673
|
fill: "none",
|
|
15747
15674
|
stroke: "currentColor",
|
|
@@ -15750,7 +15677,7 @@ function SvgGift(props) {
|
|
|
15750
15677
|
strokeWidth: 2,
|
|
15751
15678
|
viewBox: "0 0 24 24",
|
|
15752
15679
|
xmlns: "http://www.w3.org/2000/svg"
|
|
15753
|
-
}, props), _path$
|
|
15680
|
+
}, props), _path$j || (_path$j = /*#__PURE__*/React__namespace.createElement("path", {
|
|
15754
15681
|
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"
|
|
15755
15682
|
})));
|
|
15756
15683
|
}
|
|
@@ -16091,7 +16018,7 @@ class DefaultNewsLetter extends React.Component {
|
|
|
16091
16018
|
|
|
16092
16019
|
const NewsLetter = withTranslation("newsletter")(DefaultNewsLetter);
|
|
16093
16020
|
|
|
16094
|
-
const initialState$
|
|
16021
|
+
const initialState$e = {
|
|
16095
16022
|
didSubToNewslettersBefore: false,
|
|
16096
16023
|
newsletters: [],
|
|
16097
16024
|
isListLoading: true,
|
|
@@ -16101,10 +16028,10 @@ const initialState$f = {
|
|
|
16101
16028
|
content: ""
|
|
16102
16029
|
}
|
|
16103
16030
|
};
|
|
16104
|
-
const store$
|
|
16031
|
+
const store$e = /*#__PURE__*/React.createContext(initialState$e);
|
|
16105
16032
|
const {
|
|
16106
|
-
Provider: Provider$
|
|
16107
|
-
} = store$
|
|
16033
|
+
Provider: Provider$e
|
|
16034
|
+
} = store$e;
|
|
16108
16035
|
|
|
16109
16036
|
const NewsletterUpdateContainer = ({
|
|
16110
16037
|
style,
|
|
@@ -16217,7 +16144,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16217
16144
|
default:
|
|
16218
16145
|
return state;
|
|
16219
16146
|
}
|
|
16220
|
-
}, initialState$
|
|
16147
|
+
}, initialState$e);
|
|
16221
16148
|
React.useEffect(() => {
|
|
16222
16149
|
const getUserNewsletters = () => {
|
|
16223
16150
|
var _window$Pelcro$user$r3, _window$Pelcro$user$r4;
|
|
@@ -16261,7 +16188,7 @@ const NewsletterUpdateContainer = ({
|
|
|
16261
16188
|
style: { ...style
|
|
16262
16189
|
},
|
|
16263
16190
|
className: `pelcro-container pelcro-newsletter-update-container ${className}`
|
|
16264
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
16191
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$e, {
|
|
16265
16192
|
value: {
|
|
16266
16193
|
state,
|
|
16267
16194
|
dispatch
|
|
@@ -16269,12 +16196,12 @@ const NewsletterUpdateContainer = ({
|
|
|
16269
16196
|
}, children.length ? children.map((child, i) => {
|
|
16270
16197
|
if (child) {
|
|
16271
16198
|
return /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
16272
|
-
store: store$
|
|
16199
|
+
store: store$e,
|
|
16273
16200
|
key: i
|
|
16274
16201
|
});
|
|
16275
16202
|
}
|
|
16276
16203
|
}) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
16277
|
-
store: store$
|
|
16204
|
+
store: store$e
|
|
16278
16205
|
})));
|
|
16279
16206
|
};
|
|
16280
16207
|
|
|
@@ -16289,7 +16216,7 @@ const NewsletterUpdateButton = ({
|
|
|
16289
16216
|
isSubmitting,
|
|
16290
16217
|
isListLoading
|
|
16291
16218
|
}
|
|
16292
|
-
} = React.useContext(store$
|
|
16219
|
+
} = React.useContext(store$e);
|
|
16293
16220
|
const {
|
|
16294
16221
|
t
|
|
16295
16222
|
} = useTranslation("newsletter");
|
|
@@ -16319,7 +16246,7 @@ const NewsletterUpdateList = () => {
|
|
|
16319
16246
|
newsletters,
|
|
16320
16247
|
isListLoading
|
|
16321
16248
|
}
|
|
16322
|
-
} = React.useContext(store$
|
|
16249
|
+
} = React.useContext(store$e);
|
|
16323
16250
|
|
|
16324
16251
|
if (isListLoading) {
|
|
16325
16252
|
return /*#__PURE__*/React__default['default'].createElement(Loader, {
|
|
@@ -16523,7 +16450,7 @@ function SubscriptionCreateModal({
|
|
|
16523
16450
|
SubscriptionCreateModal.viewId = "subscription-create";
|
|
16524
16451
|
|
|
16525
16452
|
var _window$Pelcro$user$r, _window$Pelcro$user$r2, _window$Pelcro$user$r3, _window$Pelcro$user$r4, _window$Pelcro$user$r5;
|
|
16526
|
-
const initialState$
|
|
16453
|
+
const initialState$d = {
|
|
16527
16454
|
email: (_window$Pelcro$user$r = window.Pelcro.user.read()) === null || _window$Pelcro$user$r === void 0 ? void 0 : _window$Pelcro$user$r.email,
|
|
16528
16455
|
firstName: (_window$Pelcro$user$r2 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r2 === void 0 ? void 0 : _window$Pelcro$user$r2.first_name,
|
|
16529
16456
|
lastName: (_window$Pelcro$user$r3 = window.Pelcro.user.read()) === null || _window$Pelcro$user$r3 === void 0 ? void 0 : _window$Pelcro$user$r3.last_name,
|
|
@@ -16536,10 +16463,10 @@ const initialState$e = {
|
|
|
16536
16463
|
content: ""
|
|
16537
16464
|
}
|
|
16538
16465
|
};
|
|
16539
|
-
const store$
|
|
16466
|
+
const store$d = /*#__PURE__*/React.createContext(initialState$d);
|
|
16540
16467
|
const {
|
|
16541
|
-
Provider: Provider$
|
|
16542
|
-
} = store$
|
|
16468
|
+
Provider: Provider$d
|
|
16469
|
+
} = store$d;
|
|
16543
16470
|
|
|
16544
16471
|
const UserUpdateContainer = ({
|
|
16545
16472
|
style,
|
|
@@ -16671,27 +16598,27 @@ const UserUpdateContainer = ({
|
|
|
16671
16598
|
default:
|
|
16672
16599
|
return state;
|
|
16673
16600
|
}
|
|
16674
|
-
}, initialState$
|
|
16601
|
+
}, initialState$d);
|
|
16675
16602
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
16676
16603
|
style: { ...style
|
|
16677
16604
|
},
|
|
16678
16605
|
className: `pelcro-container pelcro-user-update-container ${className}`
|
|
16679
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
16606
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$d, {
|
|
16680
16607
|
value: {
|
|
16681
16608
|
state,
|
|
16682
16609
|
dispatch
|
|
16683
16610
|
}
|
|
16684
16611
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
16685
|
-
store: store$
|
|
16612
|
+
store: store$d,
|
|
16686
16613
|
key: i
|
|
16687
16614
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
16688
|
-
store: store$
|
|
16615
|
+
store: store$d
|
|
16689
16616
|
})));
|
|
16690
16617
|
};
|
|
16691
16618
|
|
|
16692
16619
|
const UserUpdateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
16693
16620
|
disabled: true,
|
|
16694
|
-
store: store$
|
|
16621
|
+
store: store$d
|
|
16695
16622
|
}, props));
|
|
16696
16623
|
|
|
16697
16624
|
const UserUpdateButton = ({
|
|
@@ -16704,7 +16631,7 @@ const UserUpdateButton = ({
|
|
|
16704
16631
|
buttonDisabled
|
|
16705
16632
|
},
|
|
16706
16633
|
dispatch
|
|
16707
|
-
} = React.useContext(store$
|
|
16634
|
+
} = React.useContext(store$d);
|
|
16708
16635
|
const {
|
|
16709
16636
|
t
|
|
16710
16637
|
} = useTranslation("userEdit");
|
|
@@ -16721,11 +16648,11 @@ const UserUpdateButton = ({
|
|
|
16721
16648
|
};
|
|
16722
16649
|
|
|
16723
16650
|
const UserUpdateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
16724
|
-
store: store$
|
|
16651
|
+
store: store$d
|
|
16725
16652
|
}, props));
|
|
16726
16653
|
|
|
16727
16654
|
const UserUpdateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
16728
|
-
store: store$
|
|
16655
|
+
store: store$d
|
|
16729
16656
|
}, props));
|
|
16730
16657
|
|
|
16731
16658
|
function Phone({
|
|
@@ -16754,22 +16681,22 @@ function Phone({
|
|
|
16754
16681
|
}
|
|
16755
16682
|
|
|
16756
16683
|
const UserUpdatePhone = props => /*#__PURE__*/React__default['default'].createElement(Phone, Object.assign({
|
|
16757
|
-
store: store$
|
|
16684
|
+
store: store$d
|
|
16758
16685
|
}, props));
|
|
16759
16686
|
|
|
16760
16687
|
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";
|
|
16761
16688
|
|
|
16762
|
-
var _path$
|
|
16689
|
+
var _path$i;
|
|
16763
16690
|
|
|
16764
|
-
function _extends$
|
|
16691
|
+
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); }
|
|
16765
16692
|
|
|
16766
16693
|
function SvgEdit(props) {
|
|
16767
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
16694
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$k({
|
|
16768
16695
|
className: "plc-w-6 plc-h-6",
|
|
16769
16696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
16770
16697
|
viewBox: "0 0 20 20",
|
|
16771
16698
|
fill: "currentColor"
|
|
16772
|
-
}, props), _path$
|
|
16699
|
+
}, props), _path$i || (_path$i = /*#__PURE__*/React__namespace.createElement("path", {
|
|
16773
16700
|
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"
|
|
16774
16701
|
})));
|
|
16775
16702
|
}
|
|
@@ -16901,16 +16828,16 @@ function DisplayName({
|
|
|
16901
16828
|
}
|
|
16902
16829
|
|
|
16903
16830
|
const UserUpdateDisplayName = props => /*#__PURE__*/React__default['default'].createElement(DisplayName, Object.assign({
|
|
16904
|
-
store: store$
|
|
16831
|
+
store: store$d
|
|
16905
16832
|
}, props));
|
|
16906
16833
|
|
|
16907
16834
|
const UserUpdateTextInput = props => {
|
|
16908
16835
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
16909
|
-
store: store$
|
|
16836
|
+
store: store$d
|
|
16910
16837
|
}));
|
|
16911
16838
|
};
|
|
16912
16839
|
|
|
16913
|
-
const initialState$
|
|
16840
|
+
const initialState$c = {
|
|
16914
16841
|
isSubmitting: false,
|
|
16915
16842
|
firstName: "",
|
|
16916
16843
|
firstNameError: "",
|
|
@@ -16935,10 +16862,10 @@ const initialState$d = {
|
|
|
16935
16862
|
content: ""
|
|
16936
16863
|
}
|
|
16937
16864
|
};
|
|
16938
|
-
const store$
|
|
16865
|
+
const store$c = /*#__PURE__*/React.createContext(initialState$c);
|
|
16939
16866
|
const {
|
|
16940
|
-
Provider: Provider$
|
|
16941
|
-
} = store$
|
|
16867
|
+
Provider: Provider$c
|
|
16868
|
+
} = store$c;
|
|
16942
16869
|
|
|
16943
16870
|
const getNewlyCreatedAddress = addresses => addresses[addresses.length - 1];
|
|
16944
16871
|
|
|
@@ -17145,7 +17072,7 @@ const AddressCreateContainer = ({
|
|
|
17145
17072
|
default:
|
|
17146
17073
|
return state;
|
|
17147
17074
|
}
|
|
17148
|
-
}, initialState$
|
|
17075
|
+
}, initialState$c);
|
|
17149
17076
|
React.useEffect(() => {
|
|
17150
17077
|
const getStates = () => {
|
|
17151
17078
|
dispatch({
|
|
@@ -17177,16 +17104,16 @@ const AddressCreateContainer = ({
|
|
|
17177
17104
|
style: { ...style
|
|
17178
17105
|
},
|
|
17179
17106
|
className: `pelcro-container pelcro-address-create-container ${className}`
|
|
17180
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
17107
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$c, {
|
|
17181
17108
|
value: {
|
|
17182
17109
|
state,
|
|
17183
17110
|
dispatch
|
|
17184
17111
|
}
|
|
17185
17112
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
17186
|
-
store: store$
|
|
17113
|
+
store: store$c,
|
|
17187
17114
|
key: i
|
|
17188
17115
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
17189
|
-
store: store$
|
|
17116
|
+
store: store$c
|
|
17190
17117
|
})));
|
|
17191
17118
|
};
|
|
17192
17119
|
|
|
@@ -17197,7 +17124,7 @@ function AddressCreateFirstName(props) {
|
|
|
17197
17124
|
firstName,
|
|
17198
17125
|
firstNameError
|
|
17199
17126
|
}
|
|
17200
|
-
} = React.useContext(store$
|
|
17127
|
+
} = React.useContext(store$c);
|
|
17201
17128
|
|
|
17202
17129
|
const handleBlur = () => {
|
|
17203
17130
|
return dispatch({
|
|
@@ -17240,7 +17167,7 @@ function AddressCreateLastName(props) {
|
|
|
17240
17167
|
lastName,
|
|
17241
17168
|
lastNameError
|
|
17242
17169
|
}
|
|
17243
|
-
} = React.useContext(store$
|
|
17170
|
+
} = React.useContext(store$c);
|
|
17244
17171
|
|
|
17245
17172
|
const handleBlur = () => {
|
|
17246
17173
|
return dispatch({
|
|
@@ -17283,7 +17210,7 @@ function AddressCreateLine1(props) {
|
|
|
17283
17210
|
line1,
|
|
17284
17211
|
line1Error
|
|
17285
17212
|
}
|
|
17286
|
-
} = React.useContext(store$
|
|
17213
|
+
} = React.useContext(store$c);
|
|
17287
17214
|
|
|
17288
17215
|
const handleBlur = () => {
|
|
17289
17216
|
return dispatch({
|
|
@@ -17326,7 +17253,7 @@ function AddressCreateCity(props) {
|
|
|
17326
17253
|
city,
|
|
17327
17254
|
cityError
|
|
17328
17255
|
}
|
|
17329
|
-
} = React.useContext(store$
|
|
17256
|
+
} = React.useContext(store$c);
|
|
17330
17257
|
|
|
17331
17258
|
const handleBlur = () => {
|
|
17332
17259
|
return dispatch({
|
|
@@ -17369,7 +17296,7 @@ function AddressCreatePostalCode(props) {
|
|
|
17369
17296
|
postalCode,
|
|
17370
17297
|
postalCodeError
|
|
17371
17298
|
}
|
|
17372
|
-
} = React.useContext(store$
|
|
17299
|
+
} = React.useContext(store$c);
|
|
17373
17300
|
|
|
17374
17301
|
const handleBlur = () => {
|
|
17375
17302
|
return dispatch({
|
|
@@ -17415,7 +17342,7 @@ const AddressCreateSubmit = ({
|
|
|
17415
17342
|
state: {
|
|
17416
17343
|
isSubmitting
|
|
17417
17344
|
}
|
|
17418
|
-
} = React.useContext(store$
|
|
17345
|
+
} = React.useContext(store$c);
|
|
17419
17346
|
const {
|
|
17420
17347
|
t
|
|
17421
17348
|
} = useTranslation("address");
|
|
@@ -17526,7 +17453,7 @@ function CountrySelect({
|
|
|
17526
17453
|
}
|
|
17527
17454
|
|
|
17528
17455
|
const AddressCreateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
|
|
17529
|
-
store: store$
|
|
17456
|
+
store: store$c
|
|
17530
17457
|
}, props));
|
|
17531
17458
|
|
|
17532
17459
|
function StateSelect({
|
|
@@ -17614,7 +17541,7 @@ function StateSelect({
|
|
|
17614
17541
|
}
|
|
17615
17542
|
|
|
17616
17543
|
const AddressCreateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
|
|
17617
|
-
store: store$
|
|
17544
|
+
store: store$c
|
|
17618
17545
|
}, props));
|
|
17619
17546
|
|
|
17620
17547
|
const AddressCreateView = props => {
|
|
@@ -17719,18 +17646,18 @@ AddressCreateModal.viewId = "address-create";
|
|
|
17719
17646
|
|
|
17720
17647
|
const AddressCreateTextInput = props => {
|
|
17721
17648
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
17722
|
-
store: store$
|
|
17649
|
+
store: store$c
|
|
17723
17650
|
}));
|
|
17724
17651
|
};
|
|
17725
17652
|
|
|
17726
17653
|
const AddressCreateLine2 = props => {
|
|
17727
17654
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
|
|
17728
17655
|
fieldName: "line2",
|
|
17729
|
-
store: store$
|
|
17656
|
+
store: store$c
|
|
17730
17657
|
}, props));
|
|
17731
17658
|
};
|
|
17732
17659
|
|
|
17733
|
-
const initialState$
|
|
17660
|
+
const initialState$b = {
|
|
17734
17661
|
isSubmitting: false,
|
|
17735
17662
|
firstName: "",
|
|
17736
17663
|
firstNameError: "",
|
|
@@ -17755,10 +17682,10 @@ const initialState$c = {
|
|
|
17755
17682
|
content: ""
|
|
17756
17683
|
}
|
|
17757
17684
|
};
|
|
17758
|
-
const store$
|
|
17685
|
+
const store$b = /*#__PURE__*/React.createContext(initialState$b);
|
|
17759
17686
|
const {
|
|
17760
|
-
Provider: Provider$
|
|
17761
|
-
} = store$
|
|
17687
|
+
Provider: Provider$b
|
|
17688
|
+
} = store$b;
|
|
17762
17689
|
|
|
17763
17690
|
const AddressUpdateContainer = ({
|
|
17764
17691
|
style,
|
|
@@ -17810,7 +17737,7 @@ const AddressUpdateContainer = ({
|
|
|
17810
17737
|
const thisAddress = addresses[address];
|
|
17811
17738
|
|
|
17812
17739
|
if (+thisAddress.id === +addressId) {
|
|
17813
|
-
const newState = { ...initialState$
|
|
17740
|
+
const newState = { ...initialState$b,
|
|
17814
17741
|
firstName: thisAddress.first_name,
|
|
17815
17742
|
lastName: thisAddress.last_name,
|
|
17816
17743
|
line1: thisAddress.line1,
|
|
@@ -17943,7 +17870,7 @@ const AddressUpdateContainer = ({
|
|
|
17943
17870
|
default:
|
|
17944
17871
|
return state;
|
|
17945
17872
|
}
|
|
17946
|
-
}, initialState$
|
|
17873
|
+
}, initialState$b);
|
|
17947
17874
|
React.useEffect(() => {
|
|
17948
17875
|
const getStates = () => {
|
|
17949
17876
|
dispatch({
|
|
@@ -17975,21 +17902,21 @@ const AddressUpdateContainer = ({
|
|
|
17975
17902
|
style: { ...style
|
|
17976
17903
|
},
|
|
17977
17904
|
className: `pelcro-container pelcro-address-update-container ${className}`
|
|
17978
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
17905
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$b, {
|
|
17979
17906
|
value: {
|
|
17980
17907
|
state,
|
|
17981
17908
|
dispatch
|
|
17982
17909
|
}
|
|
17983
17910
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
17984
|
-
store: store$
|
|
17911
|
+
store: store$b,
|
|
17985
17912
|
key: i
|
|
17986
17913
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
17987
|
-
store: store$
|
|
17914
|
+
store: store$b
|
|
17988
17915
|
})));
|
|
17989
17916
|
};
|
|
17990
17917
|
|
|
17991
17918
|
const AddressUpdateCountrySelect = props => /*#__PURE__*/React__default['default'].createElement(CountrySelect, Object.assign({
|
|
17992
|
-
store: store$
|
|
17919
|
+
store: store$b
|
|
17993
17920
|
}, props));
|
|
17994
17921
|
|
|
17995
17922
|
function AddressUpdateFirstName(props) {
|
|
@@ -17999,7 +17926,7 @@ function AddressUpdateFirstName(props) {
|
|
|
17999
17926
|
firstName,
|
|
18000
17927
|
firstNameError
|
|
18001
17928
|
}
|
|
18002
|
-
} = React.useContext(store$
|
|
17929
|
+
} = React.useContext(store$b);
|
|
18003
17930
|
|
|
18004
17931
|
const handleBlur = () => {
|
|
18005
17932
|
return dispatch({
|
|
@@ -18042,7 +17969,7 @@ function AddressUpdateLastName(props) {
|
|
|
18042
17969
|
lastName,
|
|
18043
17970
|
lastNameError
|
|
18044
17971
|
}
|
|
18045
|
-
} = React.useContext(store$
|
|
17972
|
+
} = React.useContext(store$b);
|
|
18046
17973
|
|
|
18047
17974
|
const handleBlur = () => {
|
|
18048
17975
|
return dispatch({
|
|
@@ -18085,7 +18012,7 @@ function AddressUpdateLine1(props) {
|
|
|
18085
18012
|
line1,
|
|
18086
18013
|
line1Error
|
|
18087
18014
|
}
|
|
18088
|
-
} = React.useContext(store$
|
|
18015
|
+
} = React.useContext(store$b);
|
|
18089
18016
|
|
|
18090
18017
|
const handleBlur = () => {
|
|
18091
18018
|
return dispatch({
|
|
@@ -18125,7 +18052,7 @@ const AddressUpdateLine2 = props => {
|
|
|
18125
18052
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({
|
|
18126
18053
|
fieldName: "line2"
|
|
18127
18054
|
}, props, {
|
|
18128
|
-
store: store$
|
|
18055
|
+
store: store$b
|
|
18129
18056
|
}));
|
|
18130
18057
|
};
|
|
18131
18058
|
|
|
@@ -18136,7 +18063,7 @@ function AddressUpdateCity(props) {
|
|
|
18136
18063
|
city,
|
|
18137
18064
|
cityError
|
|
18138
18065
|
}
|
|
18139
|
-
} = React.useContext(store$
|
|
18066
|
+
} = React.useContext(store$b);
|
|
18140
18067
|
|
|
18141
18068
|
const handleBlur = () => {
|
|
18142
18069
|
return dispatch({
|
|
@@ -18179,7 +18106,7 @@ function AddressUpdatePostalCode(props) {
|
|
|
18179
18106
|
postalCode,
|
|
18180
18107
|
postalCodeError
|
|
18181
18108
|
}
|
|
18182
|
-
} = React.useContext(store$
|
|
18109
|
+
} = React.useContext(store$b);
|
|
18183
18110
|
|
|
18184
18111
|
const handleBlur = () => {
|
|
18185
18112
|
return dispatch({
|
|
@@ -18225,7 +18152,7 @@ const AddressUpdateSubmit = ({
|
|
|
18225
18152
|
state: {
|
|
18226
18153
|
isSubmitting
|
|
18227
18154
|
}
|
|
18228
|
-
} = React.useContext(store$
|
|
18155
|
+
} = React.useContext(store$b);
|
|
18229
18156
|
const {
|
|
18230
18157
|
t
|
|
18231
18158
|
} = useTranslation("address");
|
|
@@ -18241,7 +18168,7 @@ const AddressUpdateSubmit = ({
|
|
|
18241
18168
|
};
|
|
18242
18169
|
|
|
18243
18170
|
const AddressUpdateStateSelect = props => /*#__PURE__*/React__default['default'].createElement(StateSelect, Object.assign({
|
|
18244
|
-
store: store$
|
|
18171
|
+
store: store$b
|
|
18245
18172
|
}, props));
|
|
18246
18173
|
|
|
18247
18174
|
const AddressUpdateView = props => {
|
|
@@ -18324,7 +18251,7 @@ AddressUpdateModal.viewId = "address-edit";
|
|
|
18324
18251
|
|
|
18325
18252
|
const AddressUpdateTextInput = props => {
|
|
18326
18253
|
return /*#__PURE__*/React__default['default'].createElement(TextInput, Object.assign({}, props, {
|
|
18327
|
-
store: store$
|
|
18254
|
+
store: store$b
|
|
18328
18255
|
}));
|
|
18329
18256
|
};
|
|
18330
18257
|
|
|
@@ -18407,7 +18334,7 @@ const PaymentMethodUpdateModal = props => {
|
|
|
18407
18334
|
};
|
|
18408
18335
|
PaymentMethodUpdateModal.viewId = "payment-method-update";
|
|
18409
18336
|
|
|
18410
|
-
const initialState$
|
|
18337
|
+
const initialState$a = {
|
|
18411
18338
|
email: "",
|
|
18412
18339
|
password: "",
|
|
18413
18340
|
passwordError: null,
|
|
@@ -18420,10 +18347,10 @@ const initialState$b = {
|
|
|
18420
18347
|
content: ""
|
|
18421
18348
|
}
|
|
18422
18349
|
};
|
|
18423
|
-
const store$
|
|
18350
|
+
const store$a = /*#__PURE__*/React.createContext(initialState$a);
|
|
18424
18351
|
const {
|
|
18425
|
-
Provider: Provider$
|
|
18426
|
-
} = store$
|
|
18352
|
+
Provider: Provider$a
|
|
18353
|
+
} = store$a;
|
|
18427
18354
|
|
|
18428
18355
|
const PasswordResetContainer = ({
|
|
18429
18356
|
style,
|
|
@@ -18480,7 +18407,7 @@ const PasswordResetContainer = ({
|
|
|
18480
18407
|
type: SET_EMAIL,
|
|
18481
18408
|
payload: window.Pelcro.helpers.getURLParameter("email")
|
|
18482
18409
|
});
|
|
18483
|
-
initialState$
|
|
18410
|
+
initialState$a.email = window.Pelcro.helpers.getURLParameter("email");
|
|
18484
18411
|
dispatch({
|
|
18485
18412
|
type: SET_TOKEN,
|
|
18486
18413
|
payload: window.Pelcro.helpers.getURLParameter("token")
|
|
@@ -18540,26 +18467,26 @@ const PasswordResetContainer = ({
|
|
|
18540
18467
|
default:
|
|
18541
18468
|
return state;
|
|
18542
18469
|
}
|
|
18543
|
-
}, initialState$
|
|
18470
|
+
}, initialState$a);
|
|
18544
18471
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18545
18472
|
style: { ...style
|
|
18546
18473
|
},
|
|
18547
18474
|
className: `pelcro-container pelcro-password-reset-container ${className}`
|
|
18548
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
18475
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$a, {
|
|
18549
18476
|
value: {
|
|
18550
18477
|
state,
|
|
18551
18478
|
dispatch
|
|
18552
18479
|
}
|
|
18553
18480
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
18554
|
-
store: store$
|
|
18481
|
+
store: store$a,
|
|
18555
18482
|
key: i
|
|
18556
18483
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
18557
|
-
store: store$
|
|
18484
|
+
store: store$a
|
|
18558
18485
|
})));
|
|
18559
18486
|
};
|
|
18560
18487
|
|
|
18561
18488
|
const PasswordResetPassword = props => /*#__PURE__*/React__default['default'].createElement(Password, Object.assign({
|
|
18562
|
-
store: store$
|
|
18489
|
+
store: store$a
|
|
18563
18490
|
}, props));
|
|
18564
18491
|
|
|
18565
18492
|
const PasswordResetButton = ({
|
|
@@ -18572,7 +18499,7 @@ const PasswordResetButton = ({
|
|
|
18572
18499
|
buttonDisabled
|
|
18573
18500
|
},
|
|
18574
18501
|
dispatch
|
|
18575
|
-
} = React.useContext(store$
|
|
18502
|
+
} = React.useContext(store$a);
|
|
18576
18503
|
const {
|
|
18577
18504
|
t
|
|
18578
18505
|
} = useTranslation("passwordReset");
|
|
@@ -18589,14 +18516,14 @@ const PasswordResetButton = ({
|
|
|
18589
18516
|
};
|
|
18590
18517
|
|
|
18591
18518
|
const PasswordResetEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
18592
|
-
store: store$
|
|
18519
|
+
store: store$a
|
|
18593
18520
|
}, props, {
|
|
18594
18521
|
value: window.Pelcro.helpers.getURLParameter("email"),
|
|
18595
18522
|
disabled: true
|
|
18596
18523
|
}));
|
|
18597
18524
|
|
|
18598
18525
|
const PasswordResetConfirmPassword = props => /*#__PURE__*/React__default['default'].createElement(ConfirmPassword, Object.assign({
|
|
18599
|
-
store: store$
|
|
18526
|
+
store: store$a
|
|
18600
18527
|
}, props));
|
|
18601
18528
|
|
|
18602
18529
|
const PasswordResetView = props => {
|
|
@@ -18648,7 +18575,7 @@ const PasswordResetModal = ({
|
|
|
18648
18575
|
};
|
|
18649
18576
|
PasswordResetModal.viewId = "password-reset";
|
|
18650
18577
|
|
|
18651
|
-
const initialState$
|
|
18578
|
+
const initialState$9 = {
|
|
18652
18579
|
email: "",
|
|
18653
18580
|
emailError: null,
|
|
18654
18581
|
buttonDisabled: false,
|
|
@@ -18657,10 +18584,10 @@ const initialState$a = {
|
|
|
18657
18584
|
content: ""
|
|
18658
18585
|
}
|
|
18659
18586
|
};
|
|
18660
|
-
const store$
|
|
18587
|
+
const store$9 = /*#__PURE__*/React.createContext(initialState$9);
|
|
18661
18588
|
const {
|
|
18662
|
-
Provider: Provider$
|
|
18663
|
-
} = store$
|
|
18589
|
+
Provider: Provider$9
|
|
18590
|
+
} = store$9;
|
|
18664
18591
|
|
|
18665
18592
|
const PasswordForgotContainer = ({
|
|
18666
18593
|
style,
|
|
@@ -18738,21 +18665,21 @@ const PasswordForgotContainer = ({
|
|
|
18738
18665
|
default:
|
|
18739
18666
|
return state;
|
|
18740
18667
|
}
|
|
18741
|
-
}, initialState$
|
|
18668
|
+
}, initialState$9);
|
|
18742
18669
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
18743
18670
|
style: { ...style
|
|
18744
18671
|
},
|
|
18745
18672
|
className: `pelcro-container pelcro-password-forgot-container ${className}`
|
|
18746
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
18673
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$9, {
|
|
18747
18674
|
value: {
|
|
18748
18675
|
state,
|
|
18749
18676
|
dispatch
|
|
18750
18677
|
}
|
|
18751
18678
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
18752
|
-
store: store$
|
|
18679
|
+
store: store$9,
|
|
18753
18680
|
key: i
|
|
18754
18681
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
18755
|
-
store: store$
|
|
18682
|
+
store: store$9
|
|
18756
18683
|
})));
|
|
18757
18684
|
};
|
|
18758
18685
|
|
|
@@ -18768,7 +18695,7 @@ const PasswordForgotButton = ({
|
|
|
18768
18695
|
emailError
|
|
18769
18696
|
},
|
|
18770
18697
|
dispatch
|
|
18771
|
-
} = React.useContext(store$
|
|
18698
|
+
} = React.useContext(store$9);
|
|
18772
18699
|
const {
|
|
18773
18700
|
t
|
|
18774
18701
|
} = useTranslation("passwordForgot");
|
|
@@ -18789,7 +18716,7 @@ const PasswordForgotButton = ({
|
|
|
18789
18716
|
};
|
|
18790
18717
|
|
|
18791
18718
|
const PasswordForgotEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
18792
|
-
store: store$
|
|
18719
|
+
store: store$9
|
|
18793
18720
|
}, props));
|
|
18794
18721
|
|
|
18795
18722
|
const PasswordForgotView = props => {
|
|
@@ -18839,7 +18766,7 @@ const PasswordForgotModal = ({
|
|
|
18839
18766
|
};
|
|
18840
18767
|
PasswordForgotModal.viewId = "password-forgot";
|
|
18841
18768
|
|
|
18842
|
-
const initialState$
|
|
18769
|
+
const initialState$8 = {
|
|
18843
18770
|
currentPassword: "",
|
|
18844
18771
|
newPassword: "",
|
|
18845
18772
|
confirmNewPassword: "",
|
|
@@ -18853,10 +18780,10 @@ const initialState$9 = {
|
|
|
18853
18780
|
content: ""
|
|
18854
18781
|
}
|
|
18855
18782
|
};
|
|
18856
|
-
const store$
|
|
18783
|
+
const store$8 = /*#__PURE__*/React.createContext(initialState$8);
|
|
18857
18784
|
const {
|
|
18858
|
-
Provider: Provider$
|
|
18859
|
-
} = store$
|
|
18785
|
+
Provider: Provider$8
|
|
18786
|
+
} = store$8;
|
|
18860
18787
|
const PasswordChangeContainer = ({
|
|
18861
18788
|
style,
|
|
18862
18789
|
className = "",
|
|
@@ -19008,21 +18935,21 @@ const PasswordChangeContainer = ({
|
|
|
19008
18935
|
default:
|
|
19009
18936
|
return state;
|
|
19010
18937
|
}
|
|
19011
|
-
}, initialState$
|
|
18938
|
+
}, initialState$8);
|
|
19012
18939
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19013
18940
|
style: { ...style
|
|
19014
18941
|
},
|
|
19015
18942
|
className: `pelcro-container pelcro-password-change-container ${className}`
|
|
19016
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
18943
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$8, {
|
|
19017
18944
|
value: {
|
|
19018
18945
|
state,
|
|
19019
18946
|
dispatch
|
|
19020
18947
|
}
|
|
19021
18948
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
19022
|
-
store: store$
|
|
18949
|
+
store: store$8,
|
|
19023
18950
|
key: i
|
|
19024
18951
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
19025
|
-
store: store$
|
|
18952
|
+
store: store$8
|
|
19026
18953
|
})));
|
|
19027
18954
|
};
|
|
19028
18955
|
|
|
@@ -19033,7 +18960,7 @@ function PasswordChangeCurrentPassword(props) {
|
|
|
19033
18960
|
currentPassword,
|
|
19034
18961
|
currentPasswordError
|
|
19035
18962
|
}
|
|
19036
|
-
} = React.useContext(store$
|
|
18963
|
+
} = React.useContext(store$8);
|
|
19037
18964
|
const handleBlur = React.useCallback(() => {
|
|
19038
18965
|
return dispatch({
|
|
19039
18966
|
type: VALIDATE_PASSWORD
|
|
@@ -19067,7 +18994,7 @@ function PasswordChangeNewPassword(props) {
|
|
|
19067
18994
|
newPassword,
|
|
19068
18995
|
newPasswordError
|
|
19069
18996
|
}
|
|
19070
|
-
} = React.useContext(store$
|
|
18997
|
+
} = React.useContext(store$8);
|
|
19071
18998
|
const handleBlur = React.useCallback(() => {
|
|
19072
18999
|
return dispatch({
|
|
19073
19000
|
type: VALIDATE_NEW_PASSWORD
|
|
@@ -19101,7 +19028,7 @@ function PasswordChangeConfirmNewPassword(props) {
|
|
|
19101
19028
|
confirmNewPassword,
|
|
19102
19029
|
confirmNewPasswordError
|
|
19103
19030
|
}
|
|
19104
|
-
} = React.useContext(store$
|
|
19031
|
+
} = React.useContext(store$8);
|
|
19105
19032
|
const handleBlur = React.useCallback(() => {
|
|
19106
19033
|
return dispatch({
|
|
19107
19034
|
type: VALIDATE_CONFIRM_NEW_PASSWORD
|
|
@@ -19142,7 +19069,7 @@ const PasswordChangeButton = ({
|
|
|
19142
19069
|
confirmNewPasswordError
|
|
19143
19070
|
},
|
|
19144
19071
|
dispatch
|
|
19145
|
-
} = React.useContext(store$
|
|
19072
|
+
} = React.useContext(store$8);
|
|
19146
19073
|
const {
|
|
19147
19074
|
t
|
|
19148
19075
|
} = useTranslation("passwordChange");
|
|
@@ -19208,17 +19135,17 @@ const PasswordChangeModal = ({
|
|
|
19208
19135
|
};
|
|
19209
19136
|
PasswordChangeModal.viewId = "password-change";
|
|
19210
19137
|
|
|
19211
|
-
const initialState$
|
|
19138
|
+
const initialState$7 = {
|
|
19212
19139
|
buttonDisabled: false,
|
|
19213
19140
|
alert: {
|
|
19214
19141
|
type: "error",
|
|
19215
19142
|
content: ""
|
|
19216
19143
|
}
|
|
19217
19144
|
};
|
|
19218
|
-
const store$
|
|
19145
|
+
const store$7 = /*#__PURE__*/React.createContext(initialState$7);
|
|
19219
19146
|
const {
|
|
19220
|
-
Provider: Provider$
|
|
19221
|
-
} = store$
|
|
19147
|
+
Provider: Provider$7
|
|
19148
|
+
} = store$7;
|
|
19222
19149
|
|
|
19223
19150
|
const CartContainer = ({
|
|
19224
19151
|
style,
|
|
@@ -19309,21 +19236,21 @@ const CartContainer = ({
|
|
|
19309
19236
|
default:
|
|
19310
19237
|
return state;
|
|
19311
19238
|
}
|
|
19312
|
-
}, initialState$
|
|
19239
|
+
}, initialState$7);
|
|
19313
19240
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19314
19241
|
style: { ...style
|
|
19315
19242
|
},
|
|
19316
19243
|
className: `pelcro-container pelcro-cart-container ${className}`
|
|
19317
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
19244
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$7, {
|
|
19318
19245
|
value: {
|
|
19319
19246
|
state,
|
|
19320
19247
|
dispatch
|
|
19321
19248
|
}
|
|
19322
19249
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
19323
|
-
store: store$
|
|
19250
|
+
store: store$7,
|
|
19324
19251
|
key: i
|
|
19325
19252
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
19326
|
-
store: store$
|
|
19253
|
+
store: store$7
|
|
19327
19254
|
})));
|
|
19328
19255
|
};
|
|
19329
19256
|
|
|
@@ -19360,7 +19287,7 @@ const CartSubmit = ({
|
|
|
19360
19287
|
buttonDisabled
|
|
19361
19288
|
},
|
|
19362
19289
|
dispatch
|
|
19363
|
-
} = React.useContext(store$
|
|
19290
|
+
} = React.useContext(store$7);
|
|
19364
19291
|
const {
|
|
19365
19292
|
t
|
|
19366
19293
|
} = useTranslation("cart");
|
|
@@ -19391,7 +19318,7 @@ const CartTotalPrice = () => {
|
|
|
19391
19318
|
state: {
|
|
19392
19319
|
alert
|
|
19393
19320
|
}
|
|
19394
|
-
} = React.useContext(store$
|
|
19321
|
+
} = React.useContext(store$7);
|
|
19395
19322
|
const {
|
|
19396
19323
|
cartItems
|
|
19397
19324
|
} = usePelcro();
|
|
@@ -19704,7 +19631,7 @@ const OrderConfirmModal = props => {
|
|
|
19704
19631
|
};
|
|
19705
19632
|
OrderConfirmModal.viewId = "order-confirm";
|
|
19706
19633
|
|
|
19707
|
-
const initialState$
|
|
19634
|
+
const initialState$6 = {
|
|
19708
19635
|
email: "",
|
|
19709
19636
|
firstName: "",
|
|
19710
19637
|
lastName: "",
|
|
@@ -19716,10 +19643,10 @@ const initialState$7 = {
|
|
|
19716
19643
|
content: ""
|
|
19717
19644
|
}
|
|
19718
19645
|
};
|
|
19719
|
-
const store$
|
|
19646
|
+
const store$6 = /*#__PURE__*/React.createContext(initialState$6);
|
|
19720
19647
|
const {
|
|
19721
|
-
Provider: Provider$
|
|
19722
|
-
} = store$
|
|
19648
|
+
Provider: Provider$6
|
|
19649
|
+
} = store$6;
|
|
19723
19650
|
|
|
19724
19651
|
const GiftCreateContainer = ({
|
|
19725
19652
|
style,
|
|
@@ -19823,21 +19750,21 @@ const GiftCreateContainer = ({
|
|
|
19823
19750
|
default:
|
|
19824
19751
|
return state;
|
|
19825
19752
|
}
|
|
19826
|
-
}, initialState$
|
|
19753
|
+
}, initialState$6);
|
|
19827
19754
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
19828
19755
|
style: { ...style
|
|
19829
19756
|
},
|
|
19830
19757
|
className: `pelcro-container pelcro-gift-create-container ${className}`
|
|
19831
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
19758
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$6, {
|
|
19832
19759
|
value: {
|
|
19833
19760
|
state,
|
|
19834
19761
|
dispatch
|
|
19835
19762
|
}
|
|
19836
19763
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
19837
|
-
store: store$
|
|
19764
|
+
store: store$6,
|
|
19838
19765
|
key: i
|
|
19839
19766
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
19840
|
-
store: store$
|
|
19767
|
+
store: store$6
|
|
19841
19768
|
})));
|
|
19842
19769
|
};
|
|
19843
19770
|
|
|
@@ -19851,7 +19778,7 @@ const GiftCreateSubmitButton = ({
|
|
|
19851
19778
|
state: {
|
|
19852
19779
|
disableSubmit
|
|
19853
19780
|
}
|
|
19854
|
-
} = React.useContext(store$
|
|
19781
|
+
} = React.useContext(store$6);
|
|
19855
19782
|
const {
|
|
19856
19783
|
t
|
|
19857
19784
|
} = useTranslation("register");
|
|
@@ -19868,29 +19795,29 @@ const GiftCreateSubmitButton = ({
|
|
|
19868
19795
|
|
|
19869
19796
|
const GiftCreateEmail = props => /*#__PURE__*/React__default['default'].createElement(Email, Object.assign({
|
|
19870
19797
|
initWithUserEmail: false,
|
|
19871
|
-
store: store$
|
|
19798
|
+
store: store$6
|
|
19872
19799
|
}, props));
|
|
19873
19800
|
|
|
19874
19801
|
const GiftCreateFirstName = props => /*#__PURE__*/React__default['default'].createElement(FirstName, Object.assign({
|
|
19875
|
-
store: store$
|
|
19802
|
+
store: store$6
|
|
19876
19803
|
}, props));
|
|
19877
19804
|
|
|
19878
19805
|
const GiftCreateLastName = props => /*#__PURE__*/React__default['default'].createElement(LastName, Object.assign({
|
|
19879
|
-
store: store$
|
|
19806
|
+
store: store$6
|
|
19880
19807
|
}, props));
|
|
19881
19808
|
|
|
19882
|
-
var _path$
|
|
19809
|
+
var _path$h;
|
|
19883
19810
|
|
|
19884
|
-
function _extends$
|
|
19811
|
+
function _extends$j() { _extends$j = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$j.apply(this, arguments); }
|
|
19885
19812
|
|
|
19886
19813
|
function SvgInfoCircle(props) {
|
|
19887
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
19814
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$j({
|
|
19888
19815
|
xmlns: "http://www.w3.org/2000/svg",
|
|
19889
19816
|
className: "plc-w-5 plc-h-5",
|
|
19890
19817
|
fill: "none",
|
|
19891
19818
|
viewBox: "0 0 24 24",
|
|
19892
19819
|
stroke: "currentColor"
|
|
19893
|
-
}, props), _path$
|
|
19820
|
+
}, props), _path$h || (_path$h = /*#__PURE__*/React__namespace.createElement("path", {
|
|
19894
19821
|
strokeLinecap: "round",
|
|
19895
19822
|
strokeLinejoin: "round",
|
|
19896
19823
|
strokeWidth: 2,
|
|
@@ -19961,7 +19888,7 @@ const GiftCreateStartDate = props => {
|
|
|
19961
19888
|
const {
|
|
19962
19889
|
dispatch,
|
|
19963
19890
|
state
|
|
19964
|
-
} = React.useContext(store$
|
|
19891
|
+
} = React.useContext(store$6);
|
|
19965
19892
|
|
|
19966
19893
|
const handleInputChange = value => {
|
|
19967
19894
|
dispatch({
|
|
@@ -20034,7 +19961,7 @@ function GiftCreateMessage(props) {
|
|
|
20034
19961
|
const {
|
|
20035
19962
|
dispatch,
|
|
20036
19963
|
state
|
|
20037
|
-
} = React.useContext(store$
|
|
19964
|
+
} = React.useContext(store$6);
|
|
20038
19965
|
const MAX_CHARS_COUNT = 200;
|
|
20039
19966
|
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;
|
|
20040
19967
|
|
|
@@ -20158,7 +20085,7 @@ const GiftCreateModal = ({
|
|
|
20158
20085
|
};
|
|
20159
20086
|
GiftCreateModal.viewId = "gift-create";
|
|
20160
20087
|
|
|
20161
|
-
const initialState$
|
|
20088
|
+
const initialState$5 = {
|
|
20162
20089
|
giftCode: "",
|
|
20163
20090
|
buttonDisabled: true,
|
|
20164
20091
|
alert: {
|
|
@@ -20166,10 +20093,10 @@ const initialState$6 = {
|
|
|
20166
20093
|
content: ""
|
|
20167
20094
|
}
|
|
20168
20095
|
};
|
|
20169
|
-
const store$
|
|
20096
|
+
const store$5 = /*#__PURE__*/React.createContext(initialState$5);
|
|
20170
20097
|
const {
|
|
20171
|
-
Provider: Provider$
|
|
20172
|
-
} = store$
|
|
20098
|
+
Provider: Provider$5
|
|
20099
|
+
} = store$5;
|
|
20173
20100
|
|
|
20174
20101
|
const GiftRedeemContainer = ({
|
|
20175
20102
|
style,
|
|
@@ -20234,21 +20161,21 @@ const GiftRedeemContainer = ({
|
|
|
20234
20161
|
default:
|
|
20235
20162
|
return state;
|
|
20236
20163
|
}
|
|
20237
|
-
}, initialState$
|
|
20164
|
+
}, initialState$5);
|
|
20238
20165
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
20239
20166
|
style: { ...style
|
|
20240
20167
|
},
|
|
20241
20168
|
className: `pelcro-container pelcro-gift-redeem-container ${className}`
|
|
20242
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20169
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$5, {
|
|
20243
20170
|
value: {
|
|
20244
20171
|
state,
|
|
20245
20172
|
dispatch
|
|
20246
20173
|
}
|
|
20247
20174
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20248
|
-
store: store$
|
|
20175
|
+
store: store$5,
|
|
20249
20176
|
key: i
|
|
20250
20177
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20251
|
-
store: store$
|
|
20178
|
+
store: store$5
|
|
20252
20179
|
})));
|
|
20253
20180
|
};
|
|
20254
20181
|
|
|
@@ -20285,7 +20212,7 @@ function GiftCode({
|
|
|
20285
20212
|
}
|
|
20286
20213
|
|
|
20287
20214
|
const GiftRedeemCode = props => /*#__PURE__*/React__default['default'].createElement(GiftCode, Object.assign({
|
|
20288
|
-
store: store$
|
|
20215
|
+
store: store$5
|
|
20289
20216
|
}, props));
|
|
20290
20217
|
|
|
20291
20218
|
const GiftRedeemSubmitButton = ({
|
|
@@ -20298,7 +20225,7 @@ const GiftRedeemSubmitButton = ({
|
|
|
20298
20225
|
state: {
|
|
20299
20226
|
disableSubmit
|
|
20300
20227
|
}
|
|
20301
|
-
} = React.useContext(store$
|
|
20228
|
+
} = React.useContext(store$5);
|
|
20302
20229
|
const {
|
|
20303
20230
|
t
|
|
20304
20231
|
} = useTranslation("register");
|
|
@@ -20391,7 +20318,7 @@ const moveDefaultAddressToStart = addresses => {
|
|
|
20391
20318
|
return [defaultAddress, ...addressesWithoutDefault];
|
|
20392
20319
|
};
|
|
20393
20320
|
|
|
20394
|
-
const initialState$
|
|
20321
|
+
const initialState$4 = {
|
|
20395
20322
|
addresses: [],
|
|
20396
20323
|
selectedAddressId: null,
|
|
20397
20324
|
isSubmitting: false,
|
|
@@ -20400,10 +20327,10 @@ const initialState$5 = {
|
|
|
20400
20327
|
content: ""
|
|
20401
20328
|
}
|
|
20402
20329
|
};
|
|
20403
|
-
const store$
|
|
20330
|
+
const store$4 = /*#__PURE__*/React.createContext(initialState$4);
|
|
20404
20331
|
const {
|
|
20405
|
-
Provider: Provider$
|
|
20406
|
-
} = store$
|
|
20332
|
+
Provider: Provider$4
|
|
20333
|
+
} = store$4;
|
|
20407
20334
|
|
|
20408
20335
|
const AddressSelectContainer = ({
|
|
20409
20336
|
style,
|
|
@@ -20498,7 +20425,7 @@ const AddressSelectContainer = ({
|
|
|
20498
20425
|
default:
|
|
20499
20426
|
return state;
|
|
20500
20427
|
}
|
|
20501
|
-
}, initialState$
|
|
20428
|
+
}, initialState$4);
|
|
20502
20429
|
React.useEffect(() => {
|
|
20503
20430
|
var _window$Pelcro$user$r;
|
|
20504
20431
|
|
|
@@ -20511,16 +20438,16 @@ const AddressSelectContainer = ({
|
|
|
20511
20438
|
style: { ...style
|
|
20512
20439
|
},
|
|
20513
20440
|
className: `pelcro-container pelcro-address-select-container ${className}`
|
|
20514
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20441
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$4, {
|
|
20515
20442
|
value: {
|
|
20516
20443
|
state,
|
|
20517
20444
|
dispatch
|
|
20518
20445
|
}
|
|
20519
20446
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20520
|
-
store: store$
|
|
20447
|
+
store: store$4,
|
|
20521
20448
|
key: i
|
|
20522
20449
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20523
|
-
store: store$
|
|
20450
|
+
store: store$4
|
|
20524
20451
|
})));
|
|
20525
20452
|
};
|
|
20526
20453
|
|
|
@@ -20531,7 +20458,7 @@ const AddressSelectList = () => {
|
|
|
20531
20458
|
addresses,
|
|
20532
20459
|
selectedAddressId
|
|
20533
20460
|
}
|
|
20534
|
-
} = React.useContext(store$
|
|
20461
|
+
} = React.useContext(store$4);
|
|
20535
20462
|
|
|
20536
20463
|
const handleAddressSelect = event => {
|
|
20537
20464
|
dispatch({
|
|
@@ -20575,7 +20502,7 @@ const AddressSelectSubmit = ({
|
|
|
20575
20502
|
selectedAddressId,
|
|
20576
20503
|
isSubmitting
|
|
20577
20504
|
}
|
|
20578
|
-
} = React.useContext(store$
|
|
20505
|
+
} = React.useContext(store$4);
|
|
20579
20506
|
const {
|
|
20580
20507
|
t
|
|
20581
20508
|
} = useTranslation("address");
|
|
@@ -20671,7 +20598,7 @@ const moveDefaultPaymentMethodToStart = paymentMethods => {
|
|
|
20671
20598
|
return [defaultPaymentMethod, ...paymentMethodsWithoutDefault];
|
|
20672
20599
|
};
|
|
20673
20600
|
|
|
20674
|
-
const initialState$
|
|
20601
|
+
const initialState$3 = {
|
|
20675
20602
|
paymentMethods: [],
|
|
20676
20603
|
selectedPaymentMethodId: null,
|
|
20677
20604
|
isSubmitting: false,
|
|
@@ -20680,10 +20607,10 @@ const initialState$4 = {
|
|
|
20680
20607
|
content: ""
|
|
20681
20608
|
}
|
|
20682
20609
|
};
|
|
20683
|
-
const store$
|
|
20610
|
+
const store$3 = /*#__PURE__*/React.createContext(initialState$3);
|
|
20684
20611
|
const {
|
|
20685
|
-
Provider: Provider$
|
|
20686
|
-
} = store$
|
|
20612
|
+
Provider: Provider$3
|
|
20613
|
+
} = store$3;
|
|
20687
20614
|
|
|
20688
20615
|
const PaymentMethodSelectContainer = ({
|
|
20689
20616
|
style,
|
|
@@ -20742,7 +20669,7 @@ const PaymentMethodSelectContainer = ({
|
|
|
20742
20669
|
default:
|
|
20743
20670
|
return state;
|
|
20744
20671
|
}
|
|
20745
|
-
}, initialState$
|
|
20672
|
+
}, initialState$3);
|
|
20746
20673
|
React.useEffect(() => {
|
|
20747
20674
|
var _window$Pelcro$user$r3;
|
|
20748
20675
|
|
|
@@ -20755,16 +20682,16 @@ const PaymentMethodSelectContainer = ({
|
|
|
20755
20682
|
style: { ...style
|
|
20756
20683
|
},
|
|
20757
20684
|
className: `pelcro-container pelcro-payment-select-container ${className}`
|
|
20758
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
20685
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$3, {
|
|
20759
20686
|
value: {
|
|
20760
20687
|
state,
|
|
20761
20688
|
dispatch
|
|
20762
20689
|
}
|
|
20763
20690
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
20764
|
-
store: store$
|
|
20691
|
+
store: store$3,
|
|
20765
20692
|
key: i
|
|
20766
20693
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
20767
|
-
store: store$
|
|
20694
|
+
store: store$3
|
|
20768
20695
|
})));
|
|
20769
20696
|
};
|
|
20770
20697
|
|
|
@@ -20778,7 +20705,7 @@ const PaymentMethodSelectList = () => {
|
|
|
20778
20705
|
paymentMethods,
|
|
20779
20706
|
selectedPaymentMethodId
|
|
20780
20707
|
}
|
|
20781
|
-
} = React.useContext(store$
|
|
20708
|
+
} = React.useContext(store$3);
|
|
20782
20709
|
|
|
20783
20710
|
const handlePaymentMethodSelect = event => {
|
|
20784
20711
|
dispatch({
|
|
@@ -20828,7 +20755,7 @@ const PaymentMethodSelectSubmit = ({
|
|
|
20828
20755
|
selectedPaymentMethodId,
|
|
20829
20756
|
isSubmitting
|
|
20830
20757
|
}
|
|
20831
|
-
} = React.useContext(store$
|
|
20758
|
+
} = React.useContext(store$3);
|
|
20832
20759
|
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
20833
20760
|
onClick: () => {
|
|
20834
20761
|
dispatch({
|
|
@@ -20902,8 +20829,8 @@ const PaymentMethodSelectModal = ({
|
|
|
20902
20829
|
};
|
|
20903
20830
|
PaymentMethodSelectModal.viewId = "payment-method-select";
|
|
20904
20831
|
|
|
20905
|
-
function _extends$
|
|
20906
|
-
_extends$
|
|
20832
|
+
function _extends$i() {
|
|
20833
|
+
_extends$i = Object.assign || function (target) {
|
|
20907
20834
|
for (var i = 1; i < arguments.length; i++) {
|
|
20908
20835
|
var source = arguments[i];
|
|
20909
20836
|
|
|
@@ -20917,7 +20844,7 @@ function _extends$j() {
|
|
|
20917
20844
|
return target;
|
|
20918
20845
|
};
|
|
20919
20846
|
|
|
20920
|
-
return _extends$
|
|
20847
|
+
return _extends$i.apply(this, arguments);
|
|
20921
20848
|
}
|
|
20922
20849
|
|
|
20923
20850
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
@@ -21101,7 +21028,7 @@ function render(props, propsBag, defaultTag, features, visible) {
|
|
|
21101
21028
|
return match(strategy, (_match = {}, _match[RenderStrategy.Unmount] = function () {
|
|
21102
21029
|
return null;
|
|
21103
21030
|
}, _match[RenderStrategy.Hidden] = function () {
|
|
21104
|
-
return _render(_extends$
|
|
21031
|
+
return _render(_extends$i({}, _rest, {
|
|
21105
21032
|
hidden: true,
|
|
21106
21033
|
style: {
|
|
21107
21034
|
display: 'none'
|
|
@@ -21629,7 +21556,7 @@ function TransitionChild(props) {
|
|
|
21629
21556
|
var passthroughProps = rest;
|
|
21630
21557
|
return React__default['default'].createElement(NestingContext.Provider, {
|
|
21631
21558
|
value: nesting
|
|
21632
|
-
}, render(_extends$
|
|
21559
|
+
}, render(_extends$i({}, passthroughProps, propsWeControl), propsBag, DEFAULT_TRANSITION_CHILD_TAG, TransitionChildRenderFeatures, state === TreeStates.Visible));
|
|
21633
21560
|
}
|
|
21634
21561
|
|
|
21635
21562
|
function Transition(props) {
|
|
@@ -21673,7 +21600,7 @@ function Transition(props) {
|
|
|
21673
21600
|
value: nestingBag
|
|
21674
21601
|
}, React__default['default'].createElement(TransitionContext.Provider, {
|
|
21675
21602
|
value: transitionBag
|
|
21676
|
-
}, render(_extends$
|
|
21603
|
+
}, render(_extends$i({}, sharedProps, {
|
|
21677
21604
|
as: React.Fragment,
|
|
21678
21605
|
children: React__default['default'].createElement(TransitionChild, Object.assign({}, sharedProps, passthroughProps))
|
|
21679
21606
|
}), propsBag, React.Fragment, TransitionChildRenderFeatures, state === TreeStates.Visible)));
|
|
@@ -21800,12 +21727,12 @@ var ActionTypes;
|
|
|
21800
21727
|
})(ActionTypes || (ActionTypes = {}));
|
|
21801
21728
|
|
|
21802
21729
|
(_reducers = {}, _reducers[ActionTypes.CloseMenu] = function (state) {
|
|
21803
|
-
return _extends$
|
|
21730
|
+
return _extends$i({}, state, {
|
|
21804
21731
|
activeItemIndex: null,
|
|
21805
21732
|
menuState: MenuStates.Closed
|
|
21806
21733
|
});
|
|
21807
21734
|
}, _reducers[ActionTypes.OpenMenu] = function (state) {
|
|
21808
|
-
return _extends$
|
|
21735
|
+
return _extends$i({}, state, {
|
|
21809
21736
|
menuState: MenuStates.Open
|
|
21810
21737
|
});
|
|
21811
21738
|
}, _reducers[ActionTypes.GoToItem] = function (state, action) {
|
|
@@ -21824,7 +21751,7 @@ var ActionTypes;
|
|
|
21824
21751
|
}
|
|
21825
21752
|
});
|
|
21826
21753
|
if (state.searchQuery === '' && state.activeItemIndex === activeItemIndex) return state;
|
|
21827
|
-
return _extends$
|
|
21754
|
+
return _extends$i({}, state, {
|
|
21828
21755
|
searchQuery: '',
|
|
21829
21756
|
activeItemIndex: activeItemIndex
|
|
21830
21757
|
});
|
|
@@ -21835,19 +21762,19 @@ var ActionTypes;
|
|
|
21835
21762
|
|
|
21836
21763
|
return ((_item$dataRef$current = item.dataRef.current.textValue) == null ? void 0 : _item$dataRef$current.startsWith(searchQuery)) && !item.dataRef.current.disabled;
|
|
21837
21764
|
});
|
|
21838
|
-
if (match === -1 || match === state.activeItemIndex) return _extends$
|
|
21765
|
+
if (match === -1 || match === state.activeItemIndex) return _extends$i({}, state, {
|
|
21839
21766
|
searchQuery: searchQuery
|
|
21840
21767
|
});
|
|
21841
|
-
return _extends$
|
|
21768
|
+
return _extends$i({}, state, {
|
|
21842
21769
|
searchQuery: searchQuery,
|
|
21843
21770
|
activeItemIndex: match
|
|
21844
21771
|
});
|
|
21845
21772
|
}, _reducers[ActionTypes.ClearSearch] = function (state) {
|
|
21846
|
-
return _extends$
|
|
21773
|
+
return _extends$i({}, state, {
|
|
21847
21774
|
searchQuery: ''
|
|
21848
21775
|
});
|
|
21849
21776
|
}, _reducers[ActionTypes.RegisterItem] = function (state, action) {
|
|
21850
|
-
return _extends$
|
|
21777
|
+
return _extends$i({}, state, {
|
|
21851
21778
|
items: [].concat(state.items, [{
|
|
21852
21779
|
id: action.id,
|
|
21853
21780
|
dataRef: action.dataRef
|
|
@@ -21860,7 +21787,7 @@ var ActionTypes;
|
|
|
21860
21787
|
return a.id === action.id;
|
|
21861
21788
|
});
|
|
21862
21789
|
if (idx !== -1) nextItems.splice(idx, 1);
|
|
21863
|
-
return _extends$
|
|
21790
|
+
return _extends$i({}, state, {
|
|
21864
21791
|
items: nextItems,
|
|
21865
21792
|
activeItemIndex: function () {
|
|
21866
21793
|
if (idx === state.activeItemIndex) return null;
|
|
@@ -21899,19 +21826,19 @@ var ActionTypes$1;
|
|
|
21899
21826
|
(_reducers$1 = {}, _reducers$1[ActionTypes$1.CloseListbox] = function (state) {
|
|
21900
21827
|
if (state.disabled) return state;
|
|
21901
21828
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21902
|
-
return _extends$
|
|
21829
|
+
return _extends$i({}, state, {
|
|
21903
21830
|
activeOptionIndex: null,
|
|
21904
21831
|
listboxState: ListboxStates.Closed
|
|
21905
21832
|
});
|
|
21906
21833
|
}, _reducers$1[ActionTypes$1.OpenListbox] = function (state) {
|
|
21907
21834
|
if (state.disabled) return state;
|
|
21908
21835
|
if (state.listboxState === ListboxStates.Open) return state;
|
|
21909
|
-
return _extends$
|
|
21836
|
+
return _extends$i({}, state, {
|
|
21910
21837
|
listboxState: ListboxStates.Open
|
|
21911
21838
|
});
|
|
21912
21839
|
}, _reducers$1[ActionTypes$1.SetDisabled] = function (state, action) {
|
|
21913
21840
|
if (state.disabled === action.disabled) return state;
|
|
21914
|
-
return _extends$
|
|
21841
|
+
return _extends$i({}, state, {
|
|
21915
21842
|
disabled: action.disabled
|
|
21916
21843
|
});
|
|
21917
21844
|
}, _reducers$1[ActionTypes$1.GoToOption] = function (state, action) {
|
|
@@ -21932,7 +21859,7 @@ var ActionTypes$1;
|
|
|
21932
21859
|
}
|
|
21933
21860
|
});
|
|
21934
21861
|
if (state.searchQuery === '' && state.activeOptionIndex === activeOptionIndex) return state;
|
|
21935
|
-
return _extends$
|
|
21862
|
+
return _extends$i({}, state, {
|
|
21936
21863
|
searchQuery: '',
|
|
21937
21864
|
activeOptionIndex: activeOptionIndex
|
|
21938
21865
|
});
|
|
@@ -21945,10 +21872,10 @@ var ActionTypes$1;
|
|
|
21945
21872
|
|
|
21946
21873
|
return !option.dataRef.current.disabled && ((_option$dataRef$curre = option.dataRef.current.textValue) == null ? void 0 : _option$dataRef$curre.startsWith(searchQuery));
|
|
21947
21874
|
});
|
|
21948
|
-
if (match === -1 || match === state.activeOptionIndex) return _extends$
|
|
21875
|
+
if (match === -1 || match === state.activeOptionIndex) return _extends$i({}, state, {
|
|
21949
21876
|
searchQuery: searchQuery
|
|
21950
21877
|
});
|
|
21951
|
-
return _extends$
|
|
21878
|
+
return _extends$i({}, state, {
|
|
21952
21879
|
searchQuery: searchQuery,
|
|
21953
21880
|
activeOptionIndex: match
|
|
21954
21881
|
});
|
|
@@ -21956,11 +21883,11 @@ var ActionTypes$1;
|
|
|
21956
21883
|
if (state.disabled) return state;
|
|
21957
21884
|
if (state.listboxState === ListboxStates.Closed) return state;
|
|
21958
21885
|
if (state.searchQuery === '') return state;
|
|
21959
|
-
return _extends$
|
|
21886
|
+
return _extends$i({}, state, {
|
|
21960
21887
|
searchQuery: ''
|
|
21961
21888
|
});
|
|
21962
21889
|
}, _reducers$1[ActionTypes$1.RegisterOption] = function (state, action) {
|
|
21963
|
-
return _extends$
|
|
21890
|
+
return _extends$i({}, state, {
|
|
21964
21891
|
options: [].concat(state.options, [{
|
|
21965
21892
|
id: action.id,
|
|
21966
21893
|
dataRef: action.dataRef
|
|
@@ -21973,7 +21900,7 @@ var ActionTypes$1;
|
|
|
21973
21900
|
return a.id === action.id;
|
|
21974
21901
|
});
|
|
21975
21902
|
if (idx !== -1) nextOptions.splice(idx, 1);
|
|
21976
|
-
return _extends$
|
|
21903
|
+
return _extends$i({}, state, {
|
|
21977
21904
|
options: nextOptions,
|
|
21978
21905
|
activeOptionIndex: function () {
|
|
21979
21906
|
if (idx === state.activeOptionIndex) return null;
|
|
@@ -22034,18 +21961,18 @@ const getPaymentCardIcon = name => {
|
|
|
22034
21961
|
}));
|
|
22035
21962
|
};
|
|
22036
21963
|
|
|
22037
|
-
var _path$
|
|
21964
|
+
var _path$g;
|
|
22038
21965
|
|
|
22039
|
-
function _extends$
|
|
21966
|
+
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); }
|
|
22040
21967
|
|
|
22041
21968
|
function SvgChevronRight(props) {
|
|
22042
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
21969
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$h({
|
|
22043
21970
|
className: "plc-w-6 plc-h-6",
|
|
22044
21971
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22045
21972
|
fill: "none",
|
|
22046
21973
|
viewBox: "0 0 24 24",
|
|
22047
21974
|
stroke: "currentColor"
|
|
22048
|
-
}, props), _path$
|
|
21975
|
+
}, props), _path$g || (_path$g = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22049
21976
|
strokeLinecap: "round",
|
|
22050
21977
|
strokeLinejoin: "round",
|
|
22051
21978
|
strokeWidth: 2,
|
|
@@ -22261,18 +22188,18 @@ const SavedItems = ({
|
|
|
22261
22188
|
});
|
|
22262
22189
|
};
|
|
22263
22190
|
|
|
22264
|
-
var _path$
|
|
22191
|
+
var _path$f;
|
|
22265
22192
|
|
|
22266
|
-
function _extends$
|
|
22193
|
+
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); }
|
|
22267
22194
|
|
|
22268
22195
|
function SvgRefresh(props) {
|
|
22269
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22196
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$g({
|
|
22270
22197
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
22271
22198
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22272
22199
|
fill: "none",
|
|
22273
22200
|
viewBox: "0 0 24 24",
|
|
22274
22201
|
stroke: "currentColor"
|
|
22275
|
-
}, props), _path$
|
|
22202
|
+
}, props), _path$f || (_path$f = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22276
22203
|
strokeLinecap: "round",
|
|
22277
22204
|
strokeLinejoin: "round",
|
|
22278
22205
|
strokeWidth: 2,
|
|
@@ -22280,35 +22207,35 @@ function SvgRefresh(props) {
|
|
|
22280
22207
|
})));
|
|
22281
22208
|
}
|
|
22282
22209
|
|
|
22283
|
-
var _path$
|
|
22210
|
+
var _path$e;
|
|
22284
22211
|
|
|
22285
|
-
function _extends$
|
|
22212
|
+
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); }
|
|
22286
22213
|
|
|
22287
22214
|
function SvgCalendar(props) {
|
|
22288
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22215
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$f({
|
|
22289
22216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22290
22217
|
className: "plc-h-4 plc-w-4 plc-mr-1",
|
|
22291
22218
|
viewBox: "0 0 20 20",
|
|
22292
22219
|
fill: "currentColor"
|
|
22293
|
-
}, props), _path$
|
|
22220
|
+
}, props), _path$e || (_path$e = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22294
22221
|
fillRule: "evenodd",
|
|
22295
22222
|
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",
|
|
22296
22223
|
clipRule: "evenodd"
|
|
22297
22224
|
})));
|
|
22298
22225
|
}
|
|
22299
22226
|
|
|
22300
|
-
var _path$
|
|
22227
|
+
var _path$d;
|
|
22301
22228
|
|
|
22302
|
-
function _extends$
|
|
22229
|
+
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); }
|
|
22303
22230
|
|
|
22304
22231
|
function SvgPlus(props) {
|
|
22305
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22232
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$e({
|
|
22306
22233
|
className: "plc-w-5 plc-h-5",
|
|
22307
22234
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22308
22235
|
fill: "none",
|
|
22309
22236
|
viewBox: "0 0 24 24",
|
|
22310
22237
|
stroke: "currentColor"
|
|
22311
|
-
}, props), _path$
|
|
22238
|
+
}, props), _path$d || (_path$d = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22312
22239
|
strokeLinecap: "round",
|
|
22313
22240
|
strokeLinejoin: "round",
|
|
22314
22241
|
strokeWidth: 2,
|
|
@@ -22316,17 +22243,17 @@ function SvgPlus(props) {
|
|
|
22316
22243
|
})));
|
|
22317
22244
|
}
|
|
22318
22245
|
|
|
22319
|
-
var _path$
|
|
22246
|
+
var _path$c;
|
|
22320
22247
|
|
|
22321
|
-
function _extends$
|
|
22248
|
+
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); }
|
|
22322
22249
|
|
|
22323
22250
|
function SvgCheckMark(props) {
|
|
22324
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22251
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$d({
|
|
22325
22252
|
className: "plc-w-4 plc-h-4 plc-mr-1",
|
|
22326
22253
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22327
22254
|
viewBox: "0 0 20 20",
|
|
22328
22255
|
fill: "currentColor"
|
|
22329
|
-
}, props), _path$
|
|
22256
|
+
}, props), _path$c || (_path$c = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22330
22257
|
fillRule: "evenodd",
|
|
22331
22258
|
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",
|
|
22332
22259
|
clipRule: "evenodd"
|
|
@@ -22390,8 +22317,7 @@ const SubscriptionsItems = ({
|
|
|
22390
22317
|
} = useTranslation("dashboard");
|
|
22391
22318
|
const {
|
|
22392
22319
|
switchView,
|
|
22393
|
-
|
|
22394
|
-
switchToPaymentView
|
|
22320
|
+
isAuthenticated
|
|
22395
22321
|
} = usePelcro();
|
|
22396
22322
|
const subs = getNonDonationSubs();
|
|
22397
22323
|
if (subs.length === 0) return null;
|
|
@@ -22433,12 +22359,7 @@ const SubscriptionsItems = ({
|
|
|
22433
22359
|
const plan = window.Pelcro.plan.getById(plan_id);
|
|
22434
22360
|
setProductAndPlan(product, plan);
|
|
22435
22361
|
setSubscriptionIdToRenew(sub.id);
|
|
22436
|
-
|
|
22437
|
-
if (product.address_required) {
|
|
22438
|
-
return switchToAddressView();
|
|
22439
|
-
}
|
|
22440
|
-
|
|
22441
|
-
return switchToPaymentView();
|
|
22362
|
+
setView("plan-select");
|
|
22442
22363
|
};
|
|
22443
22364
|
|
|
22444
22365
|
const getPhases = () => {
|
|
@@ -22627,18 +22548,18 @@ Accordion.item = function AccordionItem({
|
|
|
22627
22548
|
}, content)) : null;
|
|
22628
22549
|
};
|
|
22629
22550
|
|
|
22630
|
-
var _path$
|
|
22551
|
+
var _path$b;
|
|
22631
22552
|
|
|
22632
|
-
function _extends$
|
|
22553
|
+
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); }
|
|
22633
22554
|
|
|
22634
22555
|
function SvgExit(props) {
|
|
22635
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22556
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$c({
|
|
22636
22557
|
className: "plc-w-6 plc-h-6",
|
|
22637
22558
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22638
22559
|
fill: "none",
|
|
22639
22560
|
viewBox: "0 0 24 24",
|
|
22640
22561
|
stroke: "currentColor"
|
|
22641
|
-
}, props), _path$
|
|
22562
|
+
}, props), _path$b || (_path$b = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22642
22563
|
strokeLinecap: "round",
|
|
22643
22564
|
strokeLinejoin: "round",
|
|
22644
22565
|
strokeWidth: 2,
|
|
@@ -22646,17 +22567,17 @@ function SvgExit(props) {
|
|
|
22646
22567
|
})));
|
|
22647
22568
|
}
|
|
22648
22569
|
|
|
22649
|
-
var _path$
|
|
22570
|
+
var _path$a;
|
|
22650
22571
|
|
|
22651
|
-
function _extends$
|
|
22572
|
+
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); }
|
|
22652
22573
|
|
|
22653
22574
|
function SvgUser(props) {
|
|
22654
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22575
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$b({
|
|
22655
22576
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22656
22577
|
fill: "none",
|
|
22657
22578
|
viewBox: "0 0 24 24",
|
|
22658
22579
|
stroke: "currentColor"
|
|
22659
|
-
}, props), _path$
|
|
22580
|
+
}, props), _path$a || (_path$a = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22660
22581
|
strokeLinecap: "round",
|
|
22661
22582
|
strokeLinejoin: "round",
|
|
22662
22583
|
strokeWidth: 2,
|
|
@@ -22664,18 +22585,18 @@ function SvgUser(props) {
|
|
|
22664
22585
|
})));
|
|
22665
22586
|
}
|
|
22666
22587
|
|
|
22667
|
-
var _path$
|
|
22588
|
+
var _path$9;
|
|
22668
22589
|
|
|
22669
|
-
function _extends$
|
|
22590
|
+
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); }
|
|
22670
22591
|
|
|
22671
22592
|
function SvgNewsletter(props) {
|
|
22672
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22593
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$a({
|
|
22673
22594
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22674
22595
|
className: "plc-h-5 plc-w-5",
|
|
22675
22596
|
fill: "none",
|
|
22676
22597
|
viewBox: "0 0 24 24",
|
|
22677
22598
|
stroke: "currentColor"
|
|
22678
|
-
}, props), _path$
|
|
22599
|
+
}, props), _path$9 || (_path$9 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22679
22600
|
strokeLinecap: "round",
|
|
22680
22601
|
strokeLinejoin: "round",
|
|
22681
22602
|
strokeWidth: 2,
|
|
@@ -22683,18 +22604,18 @@ function SvgNewsletter(props) {
|
|
|
22683
22604
|
})));
|
|
22684
22605
|
}
|
|
22685
22606
|
|
|
22686
|
-
var _path$
|
|
22607
|
+
var _path$8;
|
|
22687
22608
|
|
|
22688
|
-
function _extends$
|
|
22609
|
+
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); }
|
|
22689
22610
|
|
|
22690
22611
|
function SvgDocument(props) {
|
|
22691
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22612
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$9({
|
|
22692
22613
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22693
22614
|
className: "plc-h-6 plc-w-6 plc-mr-2",
|
|
22694
22615
|
fill: "none",
|
|
22695
22616
|
viewBox: "0 0 24 24",
|
|
22696
22617
|
stroke: "currentColor"
|
|
22697
|
-
}, props), _path$
|
|
22618
|
+
}, props), _path$8 || (_path$8 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22698
22619
|
strokeLinecap: "round",
|
|
22699
22620
|
strokeLinejoin: "round",
|
|
22700
22621
|
strokeWidth: 2,
|
|
@@ -22702,18 +22623,18 @@ function SvgDocument(props) {
|
|
|
22702
22623
|
})));
|
|
22703
22624
|
}
|
|
22704
22625
|
|
|
22705
|
-
var _path$
|
|
22626
|
+
var _path$7;
|
|
22706
22627
|
|
|
22707
|
-
function _extends$
|
|
22628
|
+
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); }
|
|
22708
22629
|
|
|
22709
22630
|
function SvgPaymentCard(props) {
|
|
22710
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22631
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$8({
|
|
22711
22632
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22712
22633
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22713
22634
|
fill: "none",
|
|
22714
22635
|
viewBox: "0 0 24 24",
|
|
22715
22636
|
stroke: "currentColor"
|
|
22716
|
-
}, props), _path$
|
|
22637
|
+
}, props), _path$7 || (_path$7 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22717
22638
|
strokeLinecap: "round",
|
|
22718
22639
|
strokeLinejoin: "round",
|
|
22719
22640
|
strokeWidth: 2,
|
|
@@ -22721,18 +22642,18 @@ function SvgPaymentCard(props) {
|
|
|
22721
22642
|
})));
|
|
22722
22643
|
}
|
|
22723
22644
|
|
|
22724
|
-
var _path$
|
|
22645
|
+
var _path$6, _path2$1;
|
|
22725
22646
|
|
|
22726
|
-
function _extends$
|
|
22647
|
+
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); }
|
|
22727
22648
|
|
|
22728
22649
|
function SvgLocationPin(props) {
|
|
22729
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22650
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$7({
|
|
22730
22651
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22731
22652
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22732
22653
|
fill: "none",
|
|
22733
22654
|
viewBox: "0 0 24 24",
|
|
22734
22655
|
stroke: "currentColor"
|
|
22735
|
-
}, props), _path$
|
|
22656
|
+
}, props), _path$6 || (_path$6 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22736
22657
|
strokeLinecap: "round",
|
|
22737
22658
|
strokeLinejoin: "round",
|
|
22738
22659
|
strokeWidth: 2,
|
|
@@ -22747,10 +22668,10 @@ function SvgLocationPin(props) {
|
|
|
22747
22668
|
|
|
22748
22669
|
var _switch;
|
|
22749
22670
|
|
|
22750
|
-
function _extends$
|
|
22671
|
+
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); }
|
|
22751
22672
|
|
|
22752
22673
|
function SvgSubscription(props) {
|
|
22753
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22674
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$6({
|
|
22754
22675
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22755
22676
|
viewBox: "0 0 100 125",
|
|
22756
22677
|
fill: "currentColor"
|
|
@@ -22765,18 +22686,18 @@ function SvgSubscription(props) {
|
|
|
22765
22686
|
}))))));
|
|
22766
22687
|
}
|
|
22767
22688
|
|
|
22768
|
-
var _path$
|
|
22689
|
+
var _path$5;
|
|
22769
22690
|
|
|
22770
|
-
function _extends$
|
|
22691
|
+
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); }
|
|
22771
22692
|
|
|
22772
22693
|
function SvgShopping(props) {
|
|
22773
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22694
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$5({
|
|
22774
22695
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22775
22696
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22776
22697
|
fill: "none",
|
|
22777
22698
|
viewBox: "0 0 24 24",
|
|
22778
22699
|
stroke: "currentColor"
|
|
22779
|
-
}, props), _path$
|
|
22700
|
+
}, props), _path$5 || (_path$5 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22780
22701
|
strokeLinecap: "round",
|
|
22781
22702
|
strokeLinejoin: "round",
|
|
22782
22703
|
strokeWidth: 2,
|
|
@@ -22784,18 +22705,18 @@ function SvgShopping(props) {
|
|
|
22784
22705
|
})));
|
|
22785
22706
|
}
|
|
22786
22707
|
|
|
22787
|
-
var _path$
|
|
22708
|
+
var _path$4;
|
|
22788
22709
|
|
|
22789
|
-
function _extends$
|
|
22710
|
+
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); }
|
|
22790
22711
|
|
|
22791
22712
|
function SvgBookmark(props) {
|
|
22792
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22713
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$4({
|
|
22793
22714
|
className: "plc-w-6 plc-h-6 plc-mr-2",
|
|
22794
22715
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22795
22716
|
fill: "none",
|
|
22796
22717
|
viewBox: "0 0 24 24",
|
|
22797
22718
|
stroke: "currentColor"
|
|
22798
|
-
}, props), _path$
|
|
22719
|
+
}, props), _path$4 || (_path$4 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22799
22720
|
strokeLinecap: "round",
|
|
22800
22721
|
strokeLinejoin: "round",
|
|
22801
22722
|
strokeWidth: 2,
|
|
@@ -22803,33 +22724,33 @@ function SvgBookmark(props) {
|
|
|
22803
22724
|
})));
|
|
22804
22725
|
}
|
|
22805
22726
|
|
|
22806
|
-
var _path$
|
|
22727
|
+
var _path$3;
|
|
22807
22728
|
|
|
22808
|
-
function _extends$
|
|
22729
|
+
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); }
|
|
22809
22730
|
|
|
22810
22731
|
function SvgKey(props) {
|
|
22811
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22732
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$3({
|
|
22812
22733
|
xmlns: "http://www.w3.org/2000/svg",
|
|
22813
22734
|
viewBox: "0 0 20 20",
|
|
22814
22735
|
fill: "currentColor"
|
|
22815
|
-
}, props), _path$
|
|
22736
|
+
}, props), _path$3 || (_path$3 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22816
22737
|
fillRule: "evenodd",
|
|
22817
22738
|
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",
|
|
22818
22739
|
clipRule: "evenodd"
|
|
22819
22740
|
})));
|
|
22820
22741
|
}
|
|
22821
22742
|
|
|
22822
|
-
var _path$
|
|
22743
|
+
var _path$2;
|
|
22823
22744
|
|
|
22824
|
-
function _extends$
|
|
22745
|
+
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); }
|
|
22825
22746
|
|
|
22826
22747
|
function SvgDonate(props) {
|
|
22827
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
22748
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$2({
|
|
22828
22749
|
width: 24,
|
|
22829
22750
|
height: 24,
|
|
22830
22751
|
fill: "currentColor",
|
|
22831
22752
|
xmlns: "http://www.w3.org/2000/svg"
|
|
22832
|
-
}, props), _path$
|
|
22753
|
+
}, props), _path$2 || (_path$2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
22833
22754
|
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"
|
|
22834
22755
|
})));
|
|
22835
22756
|
}
|
|
@@ -23156,10 +23077,9 @@ class Dashboard extends React.Component {
|
|
|
23156
23077
|
}) => {
|
|
23157
23078
|
if (isGift) {
|
|
23158
23079
|
this.props.setProductAndPlan(null, null, true);
|
|
23159
|
-
return this.props.setView("plan-select");
|
|
23160
23080
|
}
|
|
23161
23081
|
|
|
23162
|
-
return this.props.setView("
|
|
23082
|
+
return this.props.setView("plan-select");
|
|
23163
23083
|
});
|
|
23164
23084
|
|
|
23165
23085
|
_defineProperty$3(this, "displayAddressCreate", () => {
|
|
@@ -23627,7 +23547,7 @@ const DashboardOpenButton = () => {
|
|
|
23627
23547
|
};
|
|
23628
23548
|
DashboardOpenButton.viewId = "dashboard-open";
|
|
23629
23549
|
|
|
23630
|
-
const initialState$
|
|
23550
|
+
const initialState$2 = {
|
|
23631
23551
|
imageSrc: null,
|
|
23632
23552
|
crop: {
|
|
23633
23553
|
x: 0,
|
|
@@ -23641,10 +23561,10 @@ const initialState$3 = {
|
|
|
23641
23561
|
content: ""
|
|
23642
23562
|
}
|
|
23643
23563
|
};
|
|
23644
|
-
const store$
|
|
23564
|
+
const store$2 = /*#__PURE__*/React.createContext(initialState$2);
|
|
23645
23565
|
const {
|
|
23646
|
-
Provider: Provider$
|
|
23647
|
-
} = store$
|
|
23566
|
+
Provider: Provider$2
|
|
23567
|
+
} = store$2;
|
|
23648
23568
|
|
|
23649
23569
|
const ProfilePicChangeContainer = ({
|
|
23650
23570
|
style,
|
|
@@ -23778,21 +23698,21 @@ const ProfilePicChangeContainer = ({
|
|
|
23778
23698
|
default:
|
|
23779
23699
|
return state;
|
|
23780
23700
|
}
|
|
23781
|
-
}, initialState$
|
|
23701
|
+
}, initialState$2);
|
|
23782
23702
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
23783
23703
|
style: { ...style
|
|
23784
23704
|
},
|
|
23785
23705
|
className: `pelcro-container pelcro-profile-picture-container ${className}`
|
|
23786
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
23706
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$2, {
|
|
23787
23707
|
value: {
|
|
23788
23708
|
state,
|
|
23789
23709
|
dispatch
|
|
23790
23710
|
}
|
|
23791
23711
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
23792
|
-
store: store$
|
|
23712
|
+
store: store$2,
|
|
23793
23713
|
key: i
|
|
23794
23714
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
23795
|
-
store: store$
|
|
23715
|
+
store: store$2
|
|
23796
23716
|
})));
|
|
23797
23717
|
};
|
|
23798
23718
|
/**
|
|
@@ -23854,7 +23774,7 @@ const ProfilePicChangeButton = ({
|
|
|
23854
23774
|
isSubmitting
|
|
23855
23775
|
},
|
|
23856
23776
|
dispatch
|
|
23857
|
-
} = React.useContext(store$
|
|
23777
|
+
} = React.useContext(store$2);
|
|
23858
23778
|
const {
|
|
23859
23779
|
t
|
|
23860
23780
|
} = useTranslation("userEdit");
|
|
@@ -25222,7 +25142,7 @@ const ProfilePicChangeCropper = ({
|
|
|
25222
25142
|
zoom
|
|
25223
25143
|
},
|
|
25224
25144
|
dispatch
|
|
25225
|
-
} = React.useContext(store$
|
|
25145
|
+
} = React.useContext(store$2);
|
|
25226
25146
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25227
25147
|
className: `plc-relative plc-w-full plc-h-52 sm:plc-h-96 ${className}`
|
|
25228
25148
|
}, /*#__PURE__*/React__default['default'].createElement(Cropper, Object.assign({
|
|
@@ -25264,7 +25184,7 @@ const ProfilePicChangeZoom = ({
|
|
|
25264
25184
|
zoom
|
|
25265
25185
|
},
|
|
25266
25186
|
dispatch
|
|
25267
|
-
} = React.useContext(store$
|
|
25187
|
+
} = React.useContext(store$2);
|
|
25268
25188
|
const {
|
|
25269
25189
|
t
|
|
25270
25190
|
} = useTranslation("userEdit");
|
|
@@ -25287,18 +25207,18 @@ const ProfilePicChangeZoom = ({
|
|
|
25287
25207
|
}, otherProps)));
|
|
25288
25208
|
};
|
|
25289
25209
|
|
|
25290
|
-
var _path$
|
|
25210
|
+
var _path$1;
|
|
25291
25211
|
|
|
25292
|
-
function _extends$
|
|
25212
|
+
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); }
|
|
25293
25213
|
|
|
25294
25214
|
function SvgPhotograph(props) {
|
|
25295
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends$
|
|
25215
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends$1({
|
|
25296
25216
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25297
25217
|
className: "plc-h-6 plc-w-6",
|
|
25298
25218
|
fill: "none",
|
|
25299
25219
|
viewBox: "0 0 24 24",
|
|
25300
25220
|
stroke: "currentColor"
|
|
25301
|
-
}, props), _path$
|
|
25221
|
+
}, props), _path$1 || (_path$1 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25302
25222
|
strokeLinecap: "round",
|
|
25303
25223
|
strokeLinejoin: "round",
|
|
25304
25224
|
strokeWidth: 2,
|
|
@@ -25316,7 +25236,7 @@ const ProfilePicChangeSelectButton = ({
|
|
|
25316
25236
|
state: {
|
|
25317
25237
|
isSubmitting
|
|
25318
25238
|
}
|
|
25319
|
-
} = React.useContext(store$
|
|
25239
|
+
} = React.useContext(store$2);
|
|
25320
25240
|
const {
|
|
25321
25241
|
t
|
|
25322
25242
|
} = useTranslation("userEdit");
|
|
@@ -25358,7 +25278,7 @@ const ProfilePicChangeRemoveButton = ({
|
|
|
25358
25278
|
state: {
|
|
25359
25279
|
isSubmitting
|
|
25360
25280
|
}
|
|
25361
|
-
} = React.useContext(store$
|
|
25281
|
+
} = React.useContext(store$2);
|
|
25362
25282
|
const {
|
|
25363
25283
|
t
|
|
25364
25284
|
} = useTranslation("userEdit");
|
|
@@ -25381,7 +25301,7 @@ const ProfilePicChangeWrapper = () => {
|
|
|
25381
25301
|
state: {
|
|
25382
25302
|
imageSrc
|
|
25383
25303
|
}
|
|
25384
|
-
} = React.useContext(store$
|
|
25304
|
+
} = React.useContext(store$2);
|
|
25385
25305
|
const {
|
|
25386
25306
|
t
|
|
25387
25307
|
} = useTranslation("userEdit");
|
|
@@ -25443,17 +25363,17 @@ function ProfilePicChangeModal({
|
|
|
25443
25363
|
}
|
|
25444
25364
|
ProfilePicChangeModal.viewId = "profile-picture";
|
|
25445
25365
|
|
|
25446
|
-
const initialState$
|
|
25366
|
+
const initialState$1 = {
|
|
25447
25367
|
isSubmitting: false,
|
|
25448
25368
|
alert: {
|
|
25449
25369
|
type: "error",
|
|
25450
25370
|
content: ""
|
|
25451
25371
|
}
|
|
25452
25372
|
};
|
|
25453
|
-
const store$
|
|
25373
|
+
const store$1 = /*#__PURE__*/React.createContext(initialState$1);
|
|
25454
25374
|
const {
|
|
25455
|
-
Provider: Provider$
|
|
25456
|
-
} = store$
|
|
25375
|
+
Provider: Provider$1
|
|
25376
|
+
} = store$1;
|
|
25457
25377
|
|
|
25458
25378
|
const EmailVerifyContainer = ({
|
|
25459
25379
|
style,
|
|
@@ -25516,21 +25436,21 @@ const EmailVerifyContainer = ({
|
|
|
25516
25436
|
default:
|
|
25517
25437
|
return state;
|
|
25518
25438
|
}
|
|
25519
|
-
}, initialState$
|
|
25439
|
+
}, initialState$1);
|
|
25520
25440
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25521
25441
|
style: { ...style
|
|
25522
25442
|
},
|
|
25523
25443
|
className: `pelcro-container pelcro-email-verify-container ${className}`
|
|
25524
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider$
|
|
25444
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider$1, {
|
|
25525
25445
|
value: {
|
|
25526
25446
|
state,
|
|
25527
25447
|
dispatch
|
|
25528
25448
|
}
|
|
25529
25449
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
25530
|
-
store: store$
|
|
25450
|
+
store: store$1,
|
|
25531
25451
|
key: i
|
|
25532
25452
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
25533
|
-
store: store$
|
|
25453
|
+
store: store$1
|
|
25534
25454
|
})));
|
|
25535
25455
|
};
|
|
25536
25456
|
|
|
@@ -25544,7 +25464,7 @@ const EmailVerifyResendButton = ({
|
|
|
25544
25464
|
state: {
|
|
25545
25465
|
isSubmitting
|
|
25546
25466
|
}
|
|
25547
|
-
} = React.useContext(store$
|
|
25467
|
+
} = React.useContext(store$1);
|
|
25548
25468
|
const {
|
|
25549
25469
|
t
|
|
25550
25470
|
} = useTranslation("verifyEmail");
|
|
@@ -25559,16 +25479,16 @@ const EmailVerifyResendButton = ({
|
|
|
25559
25479
|
}, otherProps), name !== null && name !== void 0 ? name : t("labels.resend"));
|
|
25560
25480
|
};
|
|
25561
25481
|
|
|
25562
|
-
var _path
|
|
25482
|
+
var _path, _path2;
|
|
25563
25483
|
|
|
25564
|
-
function _extends
|
|
25484
|
+
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); }
|
|
25565
25485
|
|
|
25566
25486
|
function SvgEmailVerify(props) {
|
|
25567
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends
|
|
25487
|
+
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
25568
25488
|
className: "plc-w-6 plc-h-6",
|
|
25569
25489
|
viewBox: "0 0 700 700",
|
|
25570
25490
|
xmlns: "http://www.w3.org/2000/svg"
|
|
25571
|
-
}, props), _path
|
|
25491
|
+
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25572
25492
|
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"
|
|
25573
25493
|
})), _path2 || (_path2 = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25574
25494
|
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"
|
|
@@ -25672,11 +25592,11 @@ const invoicePaymentSubmitButton = props => {
|
|
|
25672
25592
|
return /*#__PURE__*/React__default['default'].createElement(SubmitPaymentMethod, props);
|
|
25673
25593
|
};
|
|
25674
25594
|
|
|
25675
|
-
const initialState
|
|
25676
|
-
const store
|
|
25595
|
+
const initialState = {};
|
|
25596
|
+
const store = /*#__PURE__*/React.createContext(initialState);
|
|
25677
25597
|
const {
|
|
25678
|
-
Provider
|
|
25679
|
-
} = store
|
|
25598
|
+
Provider
|
|
25599
|
+
} = store;
|
|
25680
25600
|
|
|
25681
25601
|
const InvoiceDetailsContainer = ({
|
|
25682
25602
|
style,
|
|
@@ -25697,21 +25617,21 @@ const InvoiceDetailsContainer = ({
|
|
|
25697
25617
|
default:
|
|
25698
25618
|
return state;
|
|
25699
25619
|
}
|
|
25700
|
-
}, initialState
|
|
25620
|
+
}, initialState);
|
|
25701
25621
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25702
25622
|
style: { ...style
|
|
25703
25623
|
},
|
|
25704
25624
|
className: `pelcro-container pelcro-invoice-details-container ${className}`
|
|
25705
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider
|
|
25625
|
+
}, /*#__PURE__*/React__default['default'].createElement(Provider, {
|
|
25706
25626
|
value: {
|
|
25707
25627
|
state,
|
|
25708
25628
|
dispatch
|
|
25709
25629
|
}
|
|
25710
25630
|
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
25711
|
-
store
|
|
25631
|
+
store,
|
|
25712
25632
|
key: i
|
|
25713
25633
|
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
25714
|
-
store
|
|
25634
|
+
store
|
|
25715
25635
|
})));
|
|
25716
25636
|
};
|
|
25717
25637
|
|
|
@@ -25743,7 +25663,7 @@ const InvoiceDetailsPayButton = ({
|
|
|
25743
25663
|
}) => {
|
|
25744
25664
|
const {
|
|
25745
25665
|
dispatch
|
|
25746
|
-
} = React.useContext(store
|
|
25666
|
+
} = React.useContext(store);
|
|
25747
25667
|
const {
|
|
25748
25668
|
t
|
|
25749
25669
|
} = useTranslation("invoiceDetails");
|
|
@@ -25850,232 +25770,6 @@ const InvoiceDetailsModal = ({
|
|
|
25850
25770
|
};
|
|
25851
25771
|
InvoiceDetailsModal.viewId = "invoice-details";
|
|
25852
25772
|
|
|
25853
|
-
const initialState = {
|
|
25854
|
-
selectedOption: ""
|
|
25855
|
-
};
|
|
25856
|
-
const store = /*#__PURE__*/React.createContext(initialState);
|
|
25857
|
-
const {
|
|
25858
|
-
Provider
|
|
25859
|
-
} = store;
|
|
25860
|
-
|
|
25861
|
-
const SubscriptionOptionsContainer = ({
|
|
25862
|
-
style,
|
|
25863
|
-
className = "",
|
|
25864
|
-
onRenewSubSuccess = () => {},
|
|
25865
|
-
onNewSubSuccess = () => {},
|
|
25866
|
-
children,
|
|
25867
|
-
...props
|
|
25868
|
-
}) => {
|
|
25869
|
-
const submit = ({
|
|
25870
|
-
selectedOption
|
|
25871
|
-
}, dispatch) => {
|
|
25872
|
-
if (selectedOption === "renew") return onRenewSubSuccess();
|
|
25873
|
-
if (selectedOption === "new") return onNewSubSuccess();
|
|
25874
|
-
};
|
|
25875
|
-
|
|
25876
|
-
const [state, dispatch] = useReducerWithSideEffects((state, action) => {
|
|
25877
|
-
switch (action.type) {
|
|
25878
|
-
case SWITCH_TO_NEW:
|
|
25879
|
-
return lib_7({ ...state,
|
|
25880
|
-
selectedOption: "new"
|
|
25881
|
-
});
|
|
25882
|
-
|
|
25883
|
-
case SWITCH_TO_RENEW:
|
|
25884
|
-
return lib_7({ ...state,
|
|
25885
|
-
selectedOption: "renew"
|
|
25886
|
-
});
|
|
25887
|
-
|
|
25888
|
-
case HANDLE_SUBMIT:
|
|
25889
|
-
return lib_4((state, dispatch) => submit(state));
|
|
25890
|
-
|
|
25891
|
-
default:
|
|
25892
|
-
return state;
|
|
25893
|
-
}
|
|
25894
|
-
}, initialState);
|
|
25895
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
25896
|
-
style: { ...style
|
|
25897
|
-
},
|
|
25898
|
-
className: `pelcro-container pelcro-subscription-options-container ${className}`
|
|
25899
|
-
}, /*#__PURE__*/React__default['default'].createElement(Provider, {
|
|
25900
|
-
value: {
|
|
25901
|
-
state,
|
|
25902
|
-
dispatch
|
|
25903
|
-
}
|
|
25904
|
-
}, children.length ? children.map((child, i) => /*#__PURE__*/React__default['default'].cloneElement(child, {
|
|
25905
|
-
store,
|
|
25906
|
-
key: i
|
|
25907
|
-
})) : /*#__PURE__*/React__default['default'].cloneElement(children, {
|
|
25908
|
-
store
|
|
25909
|
-
})));
|
|
25910
|
-
};
|
|
25911
|
-
|
|
25912
|
-
var _path;
|
|
25913
|
-
|
|
25914
|
-
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); }
|
|
25915
|
-
|
|
25916
|
-
function SvgPlusCircle(props) {
|
|
25917
|
-
return /*#__PURE__*/React__namespace.createElement("svg", _extends({
|
|
25918
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
25919
|
-
className: "plc-h-6 plc-w-6",
|
|
25920
|
-
fill: "none",
|
|
25921
|
-
viewBox: "0 0 24 24",
|
|
25922
|
-
stroke: "currentColor",
|
|
25923
|
-
strokeWidth: 2
|
|
25924
|
-
}, props), _path || (_path = /*#__PURE__*/React__namespace.createElement("path", {
|
|
25925
|
-
strokeLinecap: "round",
|
|
25926
|
-
strokeLinejoin: "round",
|
|
25927
|
-
d: "M12 9v3m0 0v3m0-3h3m-3 0H9m12 0a9 9 0 11-18 0 9 9 0 0118 0z"
|
|
25928
|
-
})));
|
|
25929
|
-
}
|
|
25930
|
-
|
|
25931
|
-
const SubscriptionOptionsNewButton = ({
|
|
25932
|
-
name,
|
|
25933
|
-
onClick,
|
|
25934
|
-
...otherProps
|
|
25935
|
-
}) => {
|
|
25936
|
-
const {
|
|
25937
|
-
dispatch,
|
|
25938
|
-
state: {
|
|
25939
|
-
selectedOption
|
|
25940
|
-
}
|
|
25941
|
-
} = React.useContext(store);
|
|
25942
|
-
const {
|
|
25943
|
-
t
|
|
25944
|
-
} = useTranslation("subscriptionOptions");
|
|
25945
|
-
const isChecked = selectedOption === "new";
|
|
25946
|
-
return /*#__PURE__*/React__default['default'].createElement(Radio, Object.assign({
|
|
25947
|
-
className: "plc-hidden pelcro-new-sub-option",
|
|
25948
|
-
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"}`,
|
|
25949
|
-
id: "pelcro-new-sub-option",
|
|
25950
|
-
name: "option",
|
|
25951
|
-
onChange: () => {
|
|
25952
|
-
dispatch({
|
|
25953
|
-
type: SWITCH_TO_NEW
|
|
25954
|
-
});
|
|
25955
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25956
|
-
},
|
|
25957
|
-
checked: isChecked
|
|
25958
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("addNew"), /*#__PURE__*/React__default['default'].createElement(SvgPlusCircle, {
|
|
25959
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25960
|
-
}));
|
|
25961
|
-
};
|
|
25962
|
-
|
|
25963
|
-
const SubscriptionOptionsRenewButton = ({
|
|
25964
|
-
name,
|
|
25965
|
-
onClick,
|
|
25966
|
-
...otherProps
|
|
25967
|
-
}) => {
|
|
25968
|
-
const {
|
|
25969
|
-
dispatch,
|
|
25970
|
-
state: {
|
|
25971
|
-
selectedOption
|
|
25972
|
-
}
|
|
25973
|
-
} = React.useContext(store);
|
|
25974
|
-
const {
|
|
25975
|
-
t
|
|
25976
|
-
} = useTranslation("subscriptionOptions");
|
|
25977
|
-
const isChecked = selectedOption === "renew";
|
|
25978
|
-
return /*#__PURE__*/React__default['default'].createElement(Radio, Object.assign({
|
|
25979
|
-
className: "plc-hidden pelcro-renew-sub-option",
|
|
25980
|
-
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"}`,
|
|
25981
|
-
id: "pelcro-renew-sub-option",
|
|
25982
|
-
name: "option",
|
|
25983
|
-
onChange: () => {
|
|
25984
|
-
dispatch({
|
|
25985
|
-
type: SWITCH_TO_RENEW
|
|
25986
|
-
});
|
|
25987
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
25988
|
-
},
|
|
25989
|
-
checked: isChecked
|
|
25990
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("renew"), /*#__PURE__*/React__default['default'].createElement(SvgRefresh, {
|
|
25991
|
-
className: "plc-w-full plc-h-full plc-mr-0"
|
|
25992
|
-
}));
|
|
25993
|
-
};
|
|
25994
|
-
|
|
25995
|
-
const SubscriptionOptionsSubmit = ({
|
|
25996
|
-
name,
|
|
25997
|
-
onClick,
|
|
25998
|
-
...otherProps
|
|
25999
|
-
}) => {
|
|
26000
|
-
const {
|
|
26001
|
-
dispatch,
|
|
26002
|
-
state: {
|
|
26003
|
-
selectedOption
|
|
26004
|
-
}
|
|
26005
|
-
} = React.useContext(store);
|
|
26006
|
-
const {
|
|
26007
|
-
t
|
|
26008
|
-
} = useTranslation("subscriptionOptions");
|
|
26009
|
-
return /*#__PURE__*/React__default['default'].createElement(Button, Object.assign({
|
|
26010
|
-
onClick: () => {
|
|
26011
|
-
dispatch({
|
|
26012
|
-
type: HANDLE_SUBMIT
|
|
26013
|
-
});
|
|
26014
|
-
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
26015
|
-
},
|
|
26016
|
-
disabled: !selectedOption
|
|
26017
|
-
}, otherProps), name !== null && name !== void 0 ? name : t("next"));
|
|
26018
|
-
};
|
|
26019
|
-
|
|
26020
|
-
const SubscriptionOptionsView = props => {
|
|
26021
|
-
const {
|
|
26022
|
-
t
|
|
26023
|
-
} = useTranslation("subscriptionOptions");
|
|
26024
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26025
|
-
id: "pelcro-subscription-options-view"
|
|
26026
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26027
|
-
className: "plc-mb-6 plc-text-center plc-text-gray-900 pelcro-title-wrapper"
|
|
26028
|
-
}, /*#__PURE__*/React__default['default'].createElement("h4", {
|
|
26029
|
-
className: "plc-text-2xl plc-font-semibold"
|
|
26030
|
-
}, t("title")), /*#__PURE__*/React__default['default'].createElement("p", null, t("subtitle"))), /*#__PURE__*/React__default['default'].createElement("form", {
|
|
26031
|
-
action: "javascript:void(0);",
|
|
26032
|
-
className: "plc-mt-2 pelcro-form"
|
|
26033
|
-
}, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsContainer, props, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
26034
|
-
className: "plc-flex plc-justify-between plc-items-center"
|
|
26035
|
-
}, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsRenewButton, null), /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsNewButton, null)), /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsSubmit, {
|
|
26036
|
-
role: "submit",
|
|
26037
|
-
className: "plc-mt-4 plc-w-full",
|
|
26038
|
-
name: t("next"),
|
|
26039
|
-
id: "pelcro-submit"
|
|
26040
|
-
}))));
|
|
26041
|
-
};
|
|
26042
|
-
|
|
26043
|
-
const SubscriptionOptionsModal = ({
|
|
26044
|
-
onDisplay,
|
|
26045
|
-
onClose,
|
|
26046
|
-
...otherProps
|
|
26047
|
-
}) => {
|
|
26048
|
-
const {
|
|
26049
|
-
switchView,
|
|
26050
|
-
setProductsList
|
|
26051
|
-
} = usePelcro();
|
|
26052
|
-
|
|
26053
|
-
const onRenewSubSuccess = () => {
|
|
26054
|
-
var _otherProps$onRenewSu;
|
|
26055
|
-
|
|
26056
|
-
(_otherProps$onRenewSu = otherProps.onRenewSubSuccess) === null || _otherProps$onRenewSu === void 0 ? void 0 : _otherProps$onRenewSu.call(otherProps);
|
|
26057
|
-
setProductsList(getRenewableProducts());
|
|
26058
|
-
switchView("_plan-select-renew");
|
|
26059
|
-
};
|
|
26060
|
-
|
|
26061
|
-
const onNewSubSuccess = () => {
|
|
26062
|
-
var _otherProps$onNewSubS;
|
|
26063
|
-
|
|
26064
|
-
(_otherProps$onNewSubS = otherProps.onNewSubSuccess) === null || _otherProps$onNewSubS === void 0 ? void 0 : _otherProps$onNewSubS.call(otherProps);
|
|
26065
|
-
switchView("plan-select");
|
|
26066
|
-
};
|
|
26067
|
-
|
|
26068
|
-
return /*#__PURE__*/React__default['default'].createElement(Modal, {
|
|
26069
|
-
onDisplay: onDisplay,
|
|
26070
|
-
onClose: onClose,
|
|
26071
|
-
id: "pelcro-subscription-options-modal"
|
|
26072
|
-
}, /*#__PURE__*/React__default['default'].createElement(ModalBody, null, /*#__PURE__*/React__default['default'].createElement(SubscriptionOptionsView, Object.assign({}, otherProps, {
|
|
26073
|
-
onNewSubSuccess: onNewSubSuccess,
|
|
26074
|
-
onRenewSubSuccess: onRenewSubSuccess
|
|
26075
|
-
}))), /*#__PURE__*/React__default['default'].createElement(ModalFooter, null, /*#__PURE__*/React__default['default'].createElement(Authorship, null)));
|
|
26076
|
-
};
|
|
26077
|
-
SubscriptionOptionsModal.viewId = "subscription-options";
|
|
26078
|
-
|
|
26079
25773
|
exports.AddressCreateCity = AddressCreateCity;
|
|
26080
25774
|
exports.AddressCreateContainer = AddressCreateContainer;
|
|
26081
25775
|
exports.AddressCreateCountrySelect = AddressCreateCountrySelect;
|
|
@@ -26253,12 +25947,6 @@ exports.SubmitPaymentMethod = SubmitPaymentMethod;
|
|
|
26253
25947
|
exports.SubscriptionCreateContainer = SubscriptionCreateContainer;
|
|
26254
25948
|
exports.SubscriptionCreateModal = SubscriptionCreateModal;
|
|
26255
25949
|
exports.SubscriptionCreateView = SubscriptionCreateView;
|
|
26256
|
-
exports.SubscriptionOptionsContainer = SubscriptionOptionsContainer;
|
|
26257
|
-
exports.SubscriptionOptionsModal = SubscriptionOptionsModal;
|
|
26258
|
-
exports.SubscriptionOptionsNewButton = SubscriptionOptionsNewButton;
|
|
26259
|
-
exports.SubscriptionOptionsRenewButton = SubscriptionOptionsRenewButton;
|
|
26260
|
-
exports.SubscriptionOptionsSubmit = SubscriptionOptionsSubmit;
|
|
26261
|
-
exports.SubscriptionOptionsView = SubscriptionOptionsView;
|
|
26262
25950
|
exports.SubscriptionRenewContainer = SubscriptionRenewContainer;
|
|
26263
25951
|
exports.SubscriptionRenewModal = SubscriptionRenewModal;
|
|
26264
25952
|
exports.SubscriptionRenewView = SubscriptionRenewView;
|